PageSourceSearch

https://www.lenus.ie/6083.b5330aca5ea4adde.js

js lenus.ie collected 2026-10-02 04:13:10 UTC 323,551 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdspace_angular=self.webpackChunkdspace_angular||[]).push([[6083],{36083:(pr,Gt,k)=>{k.r(Gt),k.d(Gt,{Axis:()=>Re.RD,AxisBreak:()=>Jt.f,AxisBullet:()=>vt._,AxisDataItem:()=>Re.M4,AxisFill:()=>ei.u,AxisFillCircular:()=>pt,AxisLabel:()=>ii.k,AxisLabelCircular:()=>Ve,AxisLine:()=>ir.$,AxisRenderer:()=>qt.Y,AxisRendererCircular:()=>yt,AxisRendererRadial:()=>mt,AxisRendererX:()=>De.n,AxisRendererX3D:()=>Xt,AxisRendererY:()=>ge.j,AxisRendererY3D:()=>gi,AxisTick:()=>tr.T,Bullet:()=>pe.g,Candlestick:()=>ke,CandlestickSeries:()=>Yt,CandlestickSeriesDataItem:()=>Qe,CategoryAxis:()=>U,CategoryAxisBreak:()=>ot,CategoryAxisDataItem:()=>lt,Chart:()=>We.d,ChartDataItem:()=>We.k,ChordDiagram:()=>fi,ChordDiagramDataItem:()=>pi,ChordLink:()=>wt,ChordNode:()=>Nt,CircleBullet:()=>ki,ClockHand:()=>bt,Column:()=>ue,Column3D:()=>Mt,ColumnSeries:()=>de,ColumnSeries3D:()=>Ge,ColumnSeries3DDataItem:()=>mi,ColumnSeriesDataItem:()=>se,ConeColumn:()=>Ht,ConeSeries:()=>Fi,ConeSeriesDataItem:()=>Vi,Cursor:()=>Zt,CurvedColumn:()=>Ut,CurvedColumnSeries:()=>Oi,CurvedColumnSeriesDataItem:()=>Ii,DateAxis:()=>B,DateAxisBreak:()=>nt,DateAxisDataItem:()=>st,DurationAxis:()=>Le,DurationAxisDataItem:()=>$t,ErrorBullet:()=>Ri,FlowDiagram:()=>He,FlowDiagramDataItem:()=>Ee,FlowDiagramLink:()=>Oe,FlowDiagramNode:()=>Ie,FunnelSeries:()=>Bt,FunnelSeriesDataItem:()=>qe,FunnelSlice:()=>$e,GaugeChart:()=>ai,GaugeChartDataItem:()=>zi,Grid:()=>ti.r,GridCircular:()=>ft,HeatLegend:()=>qi.T,LabelBullet:()=>Ue,Legend:()=>ze.De,LegendDataItem:()=>ze.UQ,LegendSettings:()=>ze.BZ,LineSeries:()=>Xe,LineSeriesDataItem:()=>Se,LineSeriesSegment:()=>we,NavigationBar:()=>Li,NavigationBarDataItem:()=>wi,OHLC:()=>Je,OHLCSeries:()=>bi,OHLCSeriesDataItem:()=>jt,PictorialStackedSeries:()=>Si,PictorialStackedSeriesDataItem:()=>Et,PieChart:()=>Vt,PieChart3D:()=>ni,PieChart3DDataItem:()=>Ui,PieChartDataItem:()=>St,PieSeries:()=>_e,PieSeries3D:()=>It,PieSeries3DDataItem:()=>Ft,PieSeriesDataItem:()=>je,PieTick:()=>Tt,PyramidSeries:()=>zt,PyramidSeriesDataItem:()=>et,RadarChart:()=>xt,RadarChartDataItem:()=>ri,RadarColumn:()=>Wt,RadarColumnSeries:()=>Ai,RadarColumnSeriesDataItem:()=>Di,RadarCursor:()=>Xi,RadarSeries:()=>dt,RadarSeriesDataItem:()=>ut,SankeyDiagram:()=>ci,SankeyDiagramDataItem:()=>di,SankeyLink:()=>Rt,SankeyNode:()=>kt,SerialChart:()=>ye.j,SerialChartDataItem:()=>ye.c,Series:()=>me.F,SeriesDataItem:()=>me.m,SlicedChart:()=>oi,SlicedChartDataItem:()=>si,StepLineSeries:()=>Pi,StepLineSeriesDataItem:()=>_t,Tick:()=>Me.d,TreeMap:()=>yi,TreeMapDataItem:()=>vi,TreeMapSeries:()=>Ze,TreeMapSeriesDataItem:()=>Lt,ValueAxis:()=>M.m,ValueAxisBreak:()=>Qt.Z,ValueAxisDataItem:()=>M.J,XYChart:()=>re,XYChart3D:()=>xi,XYChart3DDataItem:()=>$i,XYChartDataItem:()=>Ne,XYChartScrollbar:()=>he,XYCursor:()=>Kt,XYSeries:()=>le,XYSeriesDataItem:()=>Ae});var D=k(19845),ye=k(48455),K=k(6668),W=k(23962),q=k(61346),M=k(33528),te=k(5863),Qt=k(14867),F=k(9450),nt=function(h){function r(){var e=h.call(this)||this;return e.className="DateAxisBreak",e.applyTheme(),e}return(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"startDate",{get:function(){return this.getPropertyValue("startDate")},set:function(e){this.setPropertyValue("startDate",e)&&(this.startValue=e.getTime(),this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries()))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endDate",{get:function(){return this.getPropertyValue("endDate")},set:function(e){this.setPropertyValue("endDate",e)&&(this.endValue=e.getTime(),this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries()))},enumerable:!0,configurable:!0}),r}(Qt.Z);F.i.registeredClasses.DateAxisBreak=nt;var N=k(80732),v=k(89196),I=k(43856),p=k(90868),z=k(17478),E=k(50954),O=k(86234),Mi=k(8136),st=function(h){function r(){var e=h.call(this)||this;return e.className="DateAxisDataItem",e.applyTheme(),e.values.date={},e.values.endDate={},e}return(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"date",{get:function(){return this.dates.date},set:function(e){this.setDate("date",e),this.value=e.getTime()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endDate",{get:function(){return this.dates.endDate},set:function(e){this.setDate("endDate",e),this.endValue=e.getTime()},enumerable:!0,configurable:!0}),r}(M.J),B=function(h){function r(){var e=h.call(this)||this;return e._gapBreaks=!1,e.gridIntervals=new W.aV,e.groupIntervals=new W.aV,e.dateFormats=new te.Xy,e.periodChangeDateFormats=new te.Xy,e._baseIntervalReal
1={timeUnit:"day",count:1},e._prevSeriesTime={},e._minDifference={},e._firstWeekDay=1,e.groupMin={},e.groupMax={},e._intervalMax={},e._intervalMin={},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(0,D.ZT)(r,h),r.prototype.fillRule=function(e){var t=e.value,i=e.component,a=i._gridInterval,n=N.getDuration(a.timeUnit,a.count);e.axisFill.__disabled=Math.round((t-i.min)/n)/2==Math.round(Math.round((t-i.min)/n)/2)},r.prototype.applyInternalDefaults=function(){h.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"))},r.prototype.createDataItem=function(){return new st},r.prototype.createAxisBreak=function(){return new nt},r.prototype.validateDataItems=function(){var e=this.start,t=this.end,i=this.baseDuration,a=(this.max-this.min)/i;this._firstWeekDay=this.getFirstWeekDay(),this.getDFFormatter(),h.prototype.validateDataItems.call(this);var n=N.getDuration(this.mainBaseInterval.timeUnit,this.mainBaseInterval.count);this.maxZoomFactor=Math.max(1,(this.max-this.min)/n),this._deltaMinMax=this.baseDuration/2,this.zoom({start:e+=(t-e)*(1-a/((this.max-this.min)/i)),end:t},!1,!0)},r.prototype.handleSelectionExtremesChange=function(){},r.prototype.getIntervalMax=function(e){return this._intervalMax[e.timeUnit+e.count]},r.prototype.getIntervalMin=function(e){return this._intervalMin[e.timeUnit+e.count]},r.prototype.calculateZoom=function(){var e=this;h.prototype.calculateZoom.call(this);var t=this.adjustDifference(this._minZoomed,this._maxZoomed),i=!1;if(this.groupData&&v.hasValue(t)){var a=this.mainBaseInterval,n=this.getIntervalMin(a),s=this.getIntervalMax(a),u=this.adjustDifference(n+(s-n)*this.start,n+(s-n)*this.end)+(this.startLocation+(1-this.endLocation))*this.baseDuration,c=void 0;this.groupInterval?c=(0,D.pi)({},this.groupInterval):(c=this.chooseInterval(0,u,this.groupCount,this.groupIntervals),N.getDuration(c.timeUnit,c.count)<N.getDuration(a.timeUnit,a.count)&&(c=(0,D.pi)({},a))),this._groupInterval=c;var f=c.timeUnit+c.count;this._currentDataSetId!=f&&(this._currentDataSetId=f,this.dispatch("groupperiodchanged")),this.series.each(function(g){g.baseAxis==e&&g.setDataSet(e._currentDataSetId)&&(i=!0)})}var y=this.chooseInterval(0,t,this._gridCount);N.getDuration(y.timeUnit,y.count)<this.baseDuration&&(y=(0,D.pi)({},this.baseInterval)),this._gridInterval=y,this._nextGridUnit=N.getNextUnit(y.timeUnit),this._intervalDuration=N.getDuration(y.timeUnit,y.count),this._gridDate=N.round(new Date(this.minZoomed-N.getDuration(y.timeUnit,y.count)),y.timeUnit,y.count,this._firstWeekDay,this._df.utc,new Date(this.min),this._df.timezoneMinutes,this._df.timezone),I.each(this.series.iterator(),function(g){if(g.baseAxis==e){var m=g.getAxisField(e),x=N.round(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(),b=x.toString(),P=g.dataItemsByAxis.getKey(e.uid).getKey(b+g.currentDataSetId),S=0;0!=e.start&&(S=P?(P=e.findFirst(P,x,m)).index:g.dataItems.findClosestIndex(e._minZoomed,function(H){return H[m]},"left"));var A=e.baseInterval,V=N.add(N.round(new Date(e._maxZoomed),A.timeUnit,A.count,e._firstWeekDay,e._df.utc,void 0,e._df.timezoneMinutes,e._df.timezone),A.timeUnit,A.count,e._df.utc).getTime(),T=V.toString(),L=g.dataItemsByAxis.getKey(e.uid).getKey(T+g.currentDataSetId),w=g.dataItems.length;1!=e.end&&(L?w=L.index:(w=g.dataItems.findClosestIndex(V-=1,function(H){return H[m]},"right"),w++)),g.max(e)<x?(g.startIndex=g.dataItems.length,g.endIndex=g.dataItems.length,g.outOfRange=!0):g.min(e)>V?(g.startIndex=0,g.endIndex=0,g.outOfRange=!0):(g.outOfRange=!1,g.startIndex=S,g.endIndex=w),!i&&g.dataRangeInvalid&&g.validateDataRange()}})},r.prototype.findFirst=function(e,t,i){var a=e.index;if(a>0){var s=e.component.dataItems.getIndex(a-1),o=s[i];return!o||o.getTime()<t?e:this.findFirst(s,t,i)}return e},r.prototype.validateData=function(){h.prototype.validateData.call(this),v.isNumber(this.baseInterval.count)||(this.baseInterval.count=1)},Object.defineProperty(r.prototype,"minDifference",{get:function(){var e=this,t=Number.MAX_VALUE;return this.series.each(function(i){t>e._minDifference[i.uid]&&(t=e._minDifference[i.uid])}),(t==Number.MAX_VALUE||0==t)&&(t=N.getDuration("day")),t},enumerable:!0,configurable:!0}),r.prototype.seriesDataChangeUpdate=function(e){this._minDifference[e.uid]=Number.MAX_VALUE}
1,r.prototype.postProcessSeriesDataItems=function(e){var t=this;this._firstWeekDay=this.getFirstWeekDay(),e?this.seriesGroupUpdate(e):this.series.each(function(i){t.seriesGroupUpdate(i)}),this.addEmptyUnitsBreaks()},r.prototype.seriesGroupUpdate=function(e){var t=this;JSON.stringify(e._baseInterval[this.uid])!=JSON.stringify(this.mainBaseInterval)&&(e._baseInterval[this.uid]=this.mainBaseInterval,e.mainDataSet.each(function(i){t.postProcessSeriesDataItem(i)}),this.groupData&&this.groupSeriesData(e))},r.prototype.groupSeriesData=function(e){var t=this;if(e.baseAxis==this&&e.dataItems.length>0&&!e.dataGrouped){e.bulletsContainer.removeChildren();var i=[],a=this.mainBaseInterval,n=N.getDuration(a.timeUnit,a.count);this.groupIntervals.each(function(s){var o=N.getDuration(s.timeUnit,s.count);(o>n&&o<t.max-t.min||t.groupInterval)&&i.push(s)}),e._dataSets&&(e._dataSets.each(function(s,o){o.each(function(l){l.dispose()}),o.clear()}),e._dataSets.clear()),e.dataGrouped=!0,z.each(i,function(s){var o="date"+t.axisLetter,l=s.timeUnit+s.count,d=new Mi.IK(e.mainDataSet.template.clone());e.dataSets.setKey(l,d);var y,m,u=e.mainDataSet,c=Number.NEGATIVE_INFINITY,f=0,g=[];E.each(e.dataFields,function(x,b){var P=x;P!=o&&-1==P.indexOf("Show")&&g.push(P)}),u.each(function(x){var b=x.getDate(o);if(b){var P=b.getTime(),S=(m=N.round(new Date(P),s.timeUnit,s.count,t._df.firstDayOfWeek,t._df.utc,void 0,t._df.timezoneMinutes,t._df.timezone)).getTime();c<S?(y&&e._adapterO&&z.each(g,function(A){y.values[A].value=e._adapterO.apply("groupDataItem",{dataItem:y,interval:s,dataField:A,date:m,value:y.values[A].value}).value,y.values[A].workingValue=y.values[A].value}),(y=d.create()).dataContext={},y.setWorkingLocation("dateX",e.dataItems.template.locations.dateX,0),y.setWorkingLocation("openDateX",e.dataItems.template.locations.openDateX,0),y.setWorkingLocation("dateY",e.dataItems.template.locations.dateY,0),y.setWorkingLocation("openDateY",e.dataItems.template.locations.openDateY,0),y.component=e,y.setDate(o,m),y._index=f,f++,z.each(g,function(A){var V=x.values[A];if(V){var T=V.value;e._adapterO&&(T=e._adapterO.apply("groupValue",{dataItem:x,interval:s,dataField:A,date:m,value:T}).value);var L=y.values[A];v.isNumber(T)?(L.value=T,L.workingValue=T,L.open=T,L.close=T,L.low=T,L.high=T,L.sum=T,L.average=T,L.count=1):L.count=0}}),t.postProcessSeriesDataItem(y,s),E.each(e.propertyFields,function(A,V){var T=A,L=x.properties[A];v.hasValue(L)&&(y.hasProperties=!0,y.setProperty(T,L))}),y.groupDataItems=[x],c=S):y&&(z.each(g,function(A){var V=e.groupFields[A],T=x.values[A];if(T){var L=T.value;if(e._adapterO&&(L=e._adapterO.apply("groupValue",{dataItem:x,interval:s,dataField:A,date:m,value:L}).value),v.isNumber(L)){var w=y.values[A];v.isNumber(w.open)||(w.open=L),w.close=L,(w.low>L||!v.isNumber(w.low))&&(w.low=L),(w.high<L||!v.isNumber(w.high))&&(w.high=L),v.isNumber(w.sum)?w.sum+=L:w.sum=L,w.count++,w.average=w.sum/w.count,v.isNumber(w[V])&&(w.value=w[V],w.workingValue=w.value)}}}),O.copyProperties(x.properties,y.properties),E.each(e.propertyFields,function(A,V){var T=A,L=x.properties[A];v.hasValue(L)&&(y.hasProperties=!0,y.setProperty(T,L))}),y.groupDataItems.push(x))}y&&O.copyProperties(x.dataContext,y.dataContext)}),y&&e._adapterO&&z.each(g,function(x){y.values[x].value=e._adapterO.apply("groupDataItem",{dataItem:y,interval:s,dataField:x,date:m,value:y.values[x].value}).value,y.values[x].workingValue=y.values[x].value})}),this.calculateZoom()}},r.prototype.getDFFormatter=function(){this._df=this.dateFormatter},r.prototype.postProcessSeriesDataItem=function(e,t){var i=this,a="";t?a=t.timeUnit+t.count:t=this.mainBaseInterval;var s=e.component.dataItemsByAxis.getKey(this.uid);E.each(e.dates,function(o){var d=e.getDate(o).getTime(),c=N.round(new Date(d),t.timeUnit,t.count,i._firstWeekDay,i._df.utc,void 0,i._df.timezoneMinutes,i._df.timezone).getTime(),f=N.add(new Date(c),t.timeUnit,t.count,i._df.utc);e.setCalculatedValue(o,c,"open"),e.setCalculatedValue(o,f.getTime(),"close"),s.setKey(c+a,e)})},r.prototype.addEmptyUnitsBreaks=function(){var e=this;if(this.skipEmptyPeriods&&v.isNumber(this.min)&&v.isNumber(this.max)){var t=this.baseInterval.timeUnit,i=this.baseInterval.count;this._axisBreaks&&this._axisBreaks.clear();for(var a=N.round(new Date(this.min),t,i,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),n=void 0,s=function(){N.add(a,t,i,o._df.utc);var l=a.getTime(),d=l.toString();I.contains(o.series.iterator(),function(c){return!!c.dataItemsByAxis.getKey(e.uid).getKey(d+c.currentDataSetId)})?n&&(n.endDate=new Date(l-1),n=void 0):n||((n=o.axisBreaks.create()).startDate=new Date(l),o._gapBreaks=!0)},o=this;a.getTime()<this.max-this.baseDuration;)s()}},r.prototype.fixAxisBreaks=function(){var e=this;h.prototype.fixAxisBreaks.call(this);var t=this._axisBreaks;t&&t.length>0&&t.each(function(i){var a=Math.ceil(e._gridCount*(Math.min(e.end,i.endPosition)-Math.max(e.start,i.startPosition))/(e.end-e.start));
1i.gridInterval=e.chooseInterval(0,i.adjustedEndValue-i.adjustedStartValue,a);var n=N.round(new Date(i.adjustedStartValue),i.gridInterval.timeUnit,i.gridInterval.count,e._firstWeekDay,e._df.utc,void 0,e._df.timezoneMinutes,e._df.timezone);n.getTime()>i.startDate.getTime()&&N.add(n,i.gridInterval.timeUnit,i.gridInterval.count,e._df.utc),i.gridDate=n})},r.prototype.getFirstWeekDay=function(){return this._df?this._df.firstDayOfWeek:1},r.prototype.getGridDate=function(e,t){var i=this._gridInterval.timeUnit,a=this._gridInterval.count;N.round(e,i,1,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone);var n=e.getTime(),s=N.copy(e),o=N.add(s,i,t,this._df.utc).getTime(),l=this.isInBreak(o);l&&l.endDate&&(s=new Date(l.endDate.getTime()),N.round(s,i,a,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),s.getTime()<l.endDate.getTime()&&N.add(s,i,a,this._df.utc),o=s.getTime());var d=this.adjustDifference(n,o);return Math.round(d/N.getDuration(i))<a?this.getGridDate(e,t+a):s},r.prototype.getBreaklessDate=function(e,t,i){var a=new Date(e.endValue);N.round(a,t,i,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),N.add(a,t,i,this._df.utc);var n=a.getTime();return(e=this.isInBreak(n))?this.getBreaklessDate(e,t,i):a},r.prototype.validateAxisElements=function(){var e=this;if(v.isNumber(this.max)&&v.isNumber(this.min)){this.calculateZoom();var t=this._gridDate.getTime(),i=this._gridInterval.timeUnit,a=this._gridInterval.count,n=N.copy(this._gridDate),s=this._dataItemsIterator;this.resetIterators();for(var o=function(){var u=l.getGridDate(N.copy(n),a);t=u.getTime();var c=N.copy(u);c=N.add(c,i,a,l._df.utc);var f=l.dateFormats.getKey(i);l.markUnitChange&&n&&N.checkChange(u,n,l._nextGridUnit,l._df.utc)&&"year"!==i&&(f=l.periodChangeDateFormats.getKey(i));var y=l._df.format(u,f),g=s.find(function(m){return m.text===y});g.__disabled&&(g.__disabled=!1),l.appendDataItem(g),g.axisBreak=void 0,g.date=u,g.endDate=c,g.text=y,l.validateDataElement(g),n=u},l=this;t<=this._maxZoomed;)o();var d=this.renderer;this._axisBreaks&&I.each(this._axisBreaks.iterator(),function(u){if(u.breakSize>0){var c=u.gridInterval.timeUnit,f=u.gridInterval.count;if(p.getDistance(u.startPoint,u.endPoint)>4*d.minGridDistance)for(var g,y=u.gridDate.getTime(),m=0,x=function(){var b=N.copy(u.gridDate);if(y=N.add(b,c,f*m,e._df.utc).getTime(),m++,y>u.adjustedStartValue&&y<u.adjustedEndValue){var P=N.copy(b);P=N.add(P,c,f,e._df.utc);var S=e.dateFormats.getKey(c);e.markUnitChange&&g&&N.checkChange(b,g,e._nextGridUnit,e._df.utc)&&"year"!==c&&(S=e.periodChangeDateFormats.getKey(c));var A=e._df.format(b,S),V=s.find(function(T){return T.text===A});V.__disabled&&(V.__disabled=!1),e.appendDataItem(V),V.axisBreak=u,u.dataItems.moveValue(V),V.date=b,V.endDate=P,V.text=A,g=b,e.validateDataElement(V)}};y<=u.adjustedMax;)x()}})}},r.prototype.validateDataElement=function(e){if(e.itemIndex=this._axisItemCount,this._axisItemCount++,v.isNumber(this.max)&&v.isNumber(this.min)){var t=this.renderer,i=e.value,a=e.endValue;v.isNumber(a)||(a=i);var n=this.valueToPosition(i),s=this.valueToPosition(a),o=s;!e.isRange&&this._gridInterval.count>this.baseInterval.count&&(s=n+(s-n)/(this._gridInterval.count/this.baseInterval.count)),e.position=n;var l=e.tick;l&&!l.disabled&&t.updateTickElement(l,n,s);var d=e.grid;d&&!d.disabled&&t.updateGridElement(d,n,s);var u=e.axisFill;u&&!u.disabled&&(t.updateFillElement(u,n,o),e.isRange||this.fillRule(e));var c=e.mask;c&&t.updateFillElement(c,n,s),e.bullet&&t.updateBullet(e.bullet,n,s);var f=e.label;if(f&&!f.disabled){var y=f.location;0==y&&(y=1!=this._gridInterval.count||"week"==this._gridInterval.timeUnit||e.isRange?0:.5),t.updateLabelElement(f,n,s,y)}}},Object.defineProperty(r.prototype,"baseDuration",{get:function(){return N.getDuration(this.baseInterval.timeUnit,this.baseInterval.count)},enumerable:!0,configurable:!0}),r.prototype.adjustMinMax=function(e,t){return{min:e,max:t,step:this.baseDuration}},r.prototype.fixMin=function(e){var t=this.baseInterval,i=N.round(new Date(e),t.timeUnit,t.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone).getTime();return i+(N.add(new Date(i),t.timeUnit,t.count,this._df.utc).getTime()-i)*this.startLocation},r.prototype.fixMax=function(e){var t=this.baseInterval,i=N.round(new Date(e),t.timeUnit,t.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone).getTime();return i+(N.add(new Date(i),t.timeUnit,t.count,this._df.utc).getTime()-i)*this.endLocation},r.prototype.chooseInterval=function(e,t,i,a){a||(a=this.gridIntervals);var n=a.getIndex(e),s=N.getDuration(n.timeUnit,n.count),o=a.length-1;if(e>=o)return(0,D.pi)({},a.getIndex(o));var l=Math.ceil(t/s);return t<s&&e>0?(0,D.pi)({},a.getIndex(e-1)):l<=i?(0,D.pi)({},a.getIndex(e)):e+1<a.length?this.chooseInterval(e+1,t,i,a):(0,D.pi)({},a.getIndex(e))},r.prototype.formatLabel=function(e){return this._df.format(e)},r.prototype.dateToPosition=function(e){return this.valueToPosition(e.getTime())},r.prototype.anyToPosition=function(e){return e instanceof Date?this.dateToPosition(e):this.valueToPosition(e)},r.prototype.dateToPoint=function(e){var t=this.dateToPosition(e),i=this.renderer.positionToPoint(t),a=this.renderer.positionToAngle(t);return{x:i.x,y:i.y,angle:a}},r.prototype.anyToPoint=function(e){return e instanceof Date?this.dateToPoint(e):this.valueToPoint(e)},r.prototype.positionToDate=function(e){return new Date(this.positionToValue(e))},r.prototype.getPositionX=function(e,t,i,a,n){var s=this.getTimeByLocation(e,t,i);v.isNumber(s)||(s=this.baseValue);var o=this.valueToPosition(s);return n&&(o=p.fitToRange(o,n.start,n.end)),o},r.prototype.getPositionY=function(e,t,i,a,n){var s=this.getTimeByLocation(e,t,i),o=e.getValue("valueX","stack");v.isNumber(s)||(s=this.baseValue);var l=this.valueToPosition(s+o);return n&&(l=p.fitToRange(l,n.start,n.end)),l},r.prototype.getAngle=function(e,t,i,a,n){var s=this.getTimeByLocation(e,t,i),o=e.getValue(a,"stack");v.isNumber(s)||(s=this.baseValue);var l=this.valueToPosition(s+o);return n&&(l=p.fitToRange(l,n.start,n.end)),this.positionToAngle(l)},r.prototype.getTimeByLocation=function(e,t,i){if(v.hasValue(t)){v.isNumber(i)||v.isNumber(i=e.workingLocations[t])||(i=0);var a=e.values[t].open,n=e.values[t].close,l=e.values[t].value-e.values[t].workingValue;if(n-=l,v.isNumber(a-=l)&&v.isNumber(n))return a+(n-a)*i}}
1,r.prototype.processSeriesDataItem=function(e,t){var a,i=e.component,n=e["date"+t];if(v.isNumber(this.timezoneOffset)?(n.setTime(n.getTime()+6e4*(n.getTimezoneOffset()-this.timezoneOffset)),e.setValue("date"+t,n.getTime(),0)):v.hasValue(this.timezone)&&(n=N.setTimezone(n,this.timezone),e.setValue("date"+t,n.getTime(),0),e["date"+t]=n),n){a=n.getTime();var l,s=e["openDate"+t],o=this._prevSeriesTime[i.uid];if(s&&(l=s.getTime()),v.isNumber(l)){var d=Math.abs(a-l);this._minDifference[i.uid]>d&&(this._minDifference[i.uid]=d)}var u=a-o;u>0&&this._minDifference[i.uid]>u&&(this._minDifference[i.uid]=u),this._prevSeriesTime[i.uid]=a,i._baseInterval[this.uid]&&this.postProcessSeriesDataItem(e)}},r.prototype.updateAxisBySeries=function(){h.prototype.updateAxisBySeries.call(this);var e=this.chooseInterval(0,this.minDifference,1);this.minDifference>=N.getDuration("day",27)&&"week"==e.timeUnit&&(e.timeUnit="month",e.count=1),"month"==e.timeUnit&&(this.minDifference>=N.getDuration("day",58)&&1==e.count&&(e.count=2),this.minDifference>=N.getDuration("day",87)&&2==e.count&&(e.count=3),this.minDifference>=N.getDuration("day",174)&&5==e.count&&(e.count=6)),this.minDifference>=N.getDuration("hour",23)&&"hour"==e.timeUnit&&(e.timeUnit="day",e.count=1),this.minDifference>=N.getDuration("week",1)-N.getDuration("hour",1)&&"day"==e.timeUnit&&(e.timeUnit="week",e.count=1),this.minDifference>=N.getDuration("year",1)-N.getDuration("day",1.01)&&"month"==e.timeUnit&&(e.timeUnit="year",e.count=1),this._baseIntervalReal=e,this._mainBaseInterval=e},Object.defineProperty(r.prototype,"baseInterval",{get:function(){return this._groupInterval?this._groupInterval:this._baseInterval?this._baseInterval:this._baseIntervalReal},set:function(e){JSON.stringify(this._baseInterval)!=JSON.stringify(e)&&(this._baseInterval=e,this._mainBaseInterval=e,v.isNumber(e.count)||(e.count=1),this.invalidate(),this.postProcessSeriesDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"mainBaseInterval",{get:function(){return this._baseInterval?this._baseInterval:this._mainBaseInterval?this._mainBaseInterval:this._baseIntervalReal},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"skipEmptyPeriods",{get:function(){return this.getPropertyValue("skipEmptyPeriods")},set:function(e){if(e){var t=this.axisBreaks.template;t.startLine.disabled=!0,t.endLine.disabled=!0,t.fillShape.disabled=!0,t.breakSize=0}else this._gapBreaks&&(this.axisBreaks.clear(),this._gapBreaks=!1);this.setPropertyValue("skipEmptyPeriods",e)&&(this.invalidate(),this.postProcessSeriesDataItems(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tooltipDateFormat",{get:function(){return this.getPropertyValue("tooltipDateFormat")},set:function(e){this.setPropertyValue("tooltipDateFormat",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"markUnitChange",{get:function(){return this.getPropertyValue("markUnitChange")},set:function(e){this.setPropertyValue("markUnitChange",e)&&this.invalidateData()},enumerable:!0,configurable:!0}),r.prototype.getTooltipText=function(e){var t,i=this.positionToDate(e);if(i=N.round(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,v.hasValue(this.tooltipDateFormat))t=this._df.format(i,this.tooltipDateFormat,-1==["day","month","week","year"].indexOf(this.baseInterval.timeUnit));else{var a=this.dateFormats.getKey(this.baseInterval.timeUnit);t=a?this._df.format(i,a):this.getPositionLabel(e)}return this._adapterO?this._adapterO.apply("getTooltipText",t):t},r.prototype.roundPosition=function(e,t,i){var a=this.baseInterval,n=a.timeUnit,s=a.count,o=this.positionToDate(e);if(N.round(o,n,s,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),t>0&&N.add(o,n,t*s,this._df.utc),i>0&&i<1&&o.setTime(o.getTime()+this.baseDuration*i),this.isInBreak(o.getTime()))for(;o.getTime()<this.max&&(N.add(o,n,s,this._df.utc),this.isInBreak(o.getTime())););return this.dateToPosition(o)},r.prototype.getCellStartPosition=function(e){return this.roundPosition(e,0)},r.prototype.getCellEndPosition=function(e){return this.roundPosition(e,1)},r.prototype.getSeriesDataItem=function(e,t,i){var a=this.positionToValue(t),s=a-("Y"==this.axisLetter?e.dataItems.template.locations.dateY:e.dataItems.template.locations.dateX)*this.baseDuration,o=N.round(new Date(a),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),l=N.round(new Date(a+this.baseDuration),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone);l.getTime()>o.getTime()&&Math.abs(l.getTime()-s)<Math.abs(s-o.getTime())&&(o=l);var c,u=e.dataItemsByAxis.getKey(this.uid).getKey(o.getTime()+e.currentDataSetId);return!u&&i&&(c="Y"==this.axisLetter?"dateY":"dateX",u=e.dataItems.getIndex(e.dataItems.findClosestIndex(o.getTime(),function(f){return f[c]?f[c].getTime():-1/0},"any"))),u},r.prototype.getPositionLabel=function(e){var t=this.positionToDate(e);return this._df.format(t,this.getCurrentLabelFormat())},r.prototype.getCurrentLabelFormat=function(){return this.dateFormats.getKey(this._gridInterval?this._gridInterval.timeUnit:"day")},r.prototype.initRenderer=function(){h.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(r.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),r.prototype.animateMinMax=function(e,t){var i=this,a=this.animate([{property:"_minAdjusted",from:this._minAdjusted,to:e},{property:"_maxAdjusted",from:this._maxAdjusted,to:t}],this.rangeChangeDuration,this.rangeChangeEasing);return a.events.on("animationprogress",function(){i.dispatch("extremeschanged")}),a},r.prototype.handleExtremesChange=function(){if(h.prototype.handleExtremesChange.call(this),this.groupData){var e=this.baseInterval.timeUnit+this.baseInterval.count;this.groupMin[e]=this._finalMin,this.groupMax[e]=this._finalMax}},r.prototype.zoomToDates=function(e,t,i,a,n){e=this._df.parse(e),t=this._df.parse(t),this.zoomToValues(e.getTime(),t.getTime(),i,a,n)},r.prototype.zoomToValues=function(e,t,i,a,n){var s=this;if(this.groupData){var d=this.adjustDifference(e,t),u=!1;t==this.max&&(u=!0);var c=!1;if(e==this.min&&(c=!0),v.hasValue(d)){var f=this.mainBaseInterval,y=this.chooseInterval(0,d,this.groupCount,this.groupIntervals);(y.timeUnit==f.timeUnit&&y.count<f.count||N.getDuration(y.timeUnit,1)<N.getDuration(f.timeUnit,1))&&(y=(0,D.pi)({},f));var g=y.timeUnit+y.count,m=this.groupMin[g],x=this.groupMax[g];(!v.isNumber(m)||!v.isNumber(x))&&(m=Number.POSITIVE_INFINITY,x=Number.NEGATIVE_INFINITY,this.series.each(function(S){var A=S.min(s),V=S.max(s);if(S._dataSets){var T=S._dataSets.getKey(y.timeUnit+y.count);if(T){var L=T.getIndex(0),w=T.getIndex(T.length-1);L&&(S.xAxis==s?A=L.dateX.getTime():S.yAxis==s&&(A=L.dateY.getTime())),w&&(S.xAxis==s?V=w.dateX.getTime():S.yAxis==s&&(V=w.dateY.getTime()))}}V=N.round(N.add(new Date(V),y.timeUnit,1,s._df.utc),y.timeUnit,1,s._df.firstDayOfWeek,s._df.utc,void 0,s._df.timezoneMinutes,s._df.timezone).getTime(),A<m&&(m=A),V>x&&(x=V)}),this.groupMin[g]=m,this.groupMax[g]=x),e=p.fitToRange(e,m,x),t=p.fitToRange(t,m,x),n&&(u&&(e=p.fitToRange(e=t-d,m,x)),c&&(t=p.fitToRange(t=e+d,m,x))),this.zoom({start:o=(e-m)/(x-m),end:l=(t-m)/(x-m)},i,a)}}else{var o=this.valueToPosition(e),l=this.valueToPosition(t);this.zoom({start:o,end:l},i,a)}},r.prototype.asIs=function(e){return"baseInterval"==e||h.prototype.asIs.call(this,e)},r.prototype.copyFrom=function(e){var t=this;h.prototype.copyFrom.call(this,e),this.dateFormats=e.dateFormats,this.periodChangeDateFormats=e.periodChangeDateFormats,this.groupIntervals.clear(),e.groupIntervals.each(function(i){t.groupIntervals.push((0,D.pi)({},i))}),this.gridIntervals.clear(),e.gridIntervals.each(function(i){t.gridIntervals.push((0,D.pi)({},i))}),e._baseInterval&&(this.baseInterval=e._baseInterval)},r.prototype.showTooltipAtPosition=function(e,t){var i=this;if(t||(e=this.toAxisPosition(e)),this.snapTooltip){var s,n=this.positionToDate(e).getTime();if(this.series.each(function(d){if(d.baseAxis==i){var u=i.getSeriesDataItem(d,e,!0);if(u){var c=void 0;d.xAxis==i&&(c=u.dateX),d.yAxis==i&&(c=u.dateY),s?Math.abs(s.getTime()-n)>Math.abs(c.getTime()-n)&&(s=c):s=c}}}),s){var o=s.getTime();s=N.round(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(d){var u=d.dataItemsByAxis.getKey(i.uid).getKey(o+d.currentDataSetId),c=d.showTooltipAtDataItem(u);c?i.chart._seriesPoints.push({series:d,point:c}):(d.tooltipText||d.tooltipHTML)&&d.hideTooltip()})}}h.prototype.showTooltipAtPosition.call(this,e,!0)},Object.defineProperty(r.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(e){this.setPropertyValue("snapTooltip",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"groupData",{get:function(){return this.getPropertyValue("groupData")},set:function(e){var t=this;this.setPropertyValue("groupData",e)&&(this.series.each(function(i){i.setDataSet(""),e&&!i.dataGrouped&&i.inited&&(i._baseInterval[t.uid]=t.mainBaseInterval,t.groupSeriesD
1ata(i))}),this._currentDataSetId="",this._groupInterval=void 0,this.invalidate(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"groupInterval",{get:function(){return this.getPropertyValue("groupInterval")},set:function(e){this.setPropertyValue("groupInterval",e)&&(this.invalidate(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"groupCount",{get:function(){return this.getPropertyValue("groupCount")},set:function(e){this.setPropertyValue("groupCount",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"timezoneOffset",{get:function(){return this.getPropertyValue("timezoneOffset")},set:function(e){this.setPropertyValue("timezoneOffset",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"timezone",{get:function(){return this.getPropertyValue("timezone")},set:function(e){this.setPropertyValue("timezone",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"gridInterval",{get:function(){return this._gridInterval},enumerable:!0,configurable:!0}),r.prototype.makeGap=function(e,t){var i=e.component;if(e&&t&&!i.connect&&v.isNumber(i.autoGapCount)&&i.baseAxis==this){var a=e.dates["date"+this.axisLetter],n=t.dates["date"+this.axisLetter];if(a&&n&&a.getTime()-n.getTime()>i.autoGapCount*this.baseDuration)return!0}return!1},Object.defineProperty(r.prototype,"baseValue",{get:function(){return this.min},enumerable:!0,configurable:!0}),r.prototype._saveMinMax=function(e,t){var i=this.groupInterval;i||(i=this.mainBaseInterval);var a=i.timeUnit+i.count;this._intervalMin[a]=e,this._intervalMax[a]=t},r}(M.m);F.i.registeredClasses.DateAxis=B,F.i.registeredClasses.DateAxisDataItem=st;var De=k(72074),ge=k(44755),Re=k(64634),Jt=k(33391),ot=function(h){function r(){var e=h.call(this)||this;return e.className="CategoryAxisBreak",e.properties.startLocation=.5,e.properties.endLocation=.5,e.applyTheme(),e}return(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedStartValue,this.startLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedEndValue,this.endLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"startCategory",{get:function(){return this.getPropertyValue("startCategory")},set:function(e){this.setPropertyValue("startCategory",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endCategory",{get:function(){return this.getPropertyValue("endCategory")},set:function(e){this.setPropertyValue("endCategory",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"startValue",{get:function(){var e=this.getPropertyValue("startCategory");return e?this.axis.categoryToIndex(e):this.getPropertyValue("startValue")},set:function(e){this.setPropertyValue("startValue",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endValue",{get:function(){var e=this.getPropertyValue("endCategory");return e?this.axis.categoryToIndex(e):this.getPropertyValue("endValue")},set:function(e){this.setPropertyValue("endValue",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(e){this.setPropertyValue("startLocation",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(e){this.setPropertyValue("endLocation",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),r}(Jt.f);F.i.registeredClasses.CategoryAxisBreak=ot;var lt=function(h){function r(){var e=h.call(this)||this;return e.seriesDataItems={}
1,e.className="CategoryAxisDataItem",e.text="{category}",e.locations.category=0,e.locations.endCategory=1,e.deltaPosition=0,e.applyTheme(),e}return(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"category",{get:function(){return this._adapterO&&this._adapterO.isEnabled("category")?this._adapterO.apply("category",this.properties.category):this.properties.category},set:function(e){var t=this.properties.category;this.setProperty("category",e),v.hasValue(t)&&t!=e&&this.component&&this.component.validateDataElement(this)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endCategory",{get:function(){return this.properties.endCategory},set:function(e){this.setProperty("endCategory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"deltaPosition",{get:function(){return this.properties.deltaCoordinate},set:function(e){e!=this.properties.deltaCoordinate&&(this.setProperty("deltaCoordinate",e),this.component&&(this.component.invalidateDataItems(),this.component.invalidateSeries()))},enumerable:!0,configurable:!0}),r}(Re.M4),U=function(h){function r(){var e=h.call(this)||this;e.dataItemsByCategory=new te.Xy,e.className="CategoryAxis",e.axisFieldName="category",e._lastDataItem=e.createDataItem(),e._lastDataItem.component=e,e._disposers.push(e._lastDataItem),e.applyTheme();var t=e.dataItemsByCategory;return e.addDisposer(e.mainDataSet.events.on("removed",function(i){t.removeKey(i.oldValue.category)})),e}return(0,D.ZT)(r,h),r.prototype.createDataItem=function(){return new lt},r.prototype.createAxisBreak=function(){return new ot},r.prototype.processSeriesDataItem=function(e,t){h.prototype.processSeriesDataItem.call(this,e,t);var i=e["category"+this.axisLetter];if(v.hasValue(i)){var a=this.dataItemsByCategory.getKey(i);if(a){var n=e.component.uid,s=a.seriesDataItems[n];s||(a.seriesDataItems[n]=s=[]),s.push(e)}}else e.component.dataItems.remove(e)},r.prototype.validateDataRange=function(){var e=this;h.prototype.validateDataRange.call(this),I.each(this._series.iterator(),function(t){if(t.xAxis instanceof r&&t.yAxis instanceof r)t.invalidateDataRange();else{var i=e.positionToIndex(e.start),a=e.positionToIndex(e.end);a>=e.dataItems.length&&a--;for(var n=t.uid,s=void 0,o=void 0,l=i;l<=a;l++){var d=e.dataItems.getIndex(l);if(d){var u=d.seriesDataItems[n];if(u)for(var c=0;c<u.length;c++){var f=u[c];if(f){var y=f.index;(!v.isNumber(s)||y<s)&&(s=y),(!v.isNumber(o)||y>o)&&(o=y)}}}}v.isNumber(s)?t.startIndex=s:t.start=e.start,v.isNumber(o)?t.endIndex=o+1:t.end=e.end,e._axisBreaks&&e._axisBreaks.length>0&&t.invalidateDataRange()}})},r.prototype.validate=function(){var e=this;h.prototype.validate.call(this);var t=this.dataItems.length,i=p.fitToRange(Math.floor(this.start*t-1),0,t),a=p.fitToRange(Math.ceil(this.end*t),0,t);this.renderer.invalid&&this.renderer.validate();var n=this.renderer.axisLength/Math.max(this.renderer.minGridDistance,1/Number.MAX_SAFE_INTEGER),s=Math.min(this.dataItems.length,Math.ceil((a-i)/n));if(this._startIndex=Math.floor(i/s)*s,this._endIndex=Math.ceil(this.end*t),this.fixAxisBreaks(),this._startIndex==this._endIndex&&this._endIndex++,this._frequency=s,!(this.axisLength<=0)){this.maxZoomFactor=this.dataItems.length,this.dataItems.length<=0&&(this.maxZoomFactor=1),this.resetIterators(),i=p.max(0,this._startIndex-this._frequency),a=p.min(this.dataItems.length,this._endIndex+this._frequency);for(var o=0,l=0;l<i;l++)(d=this.dataItems.getIndex(l)).__disabled=!0;l=a;for(var u=this.dataItems.length;l<u;l++)(d=this.dataItems.getIndex(l)).__disabled=!0;for(l=i;l<a;l++)if(l<this.dataItems.length){var d=this.dataItems.getIndex(l);l/this._frequency==Math.round(l/this._frequency)?(this.isInBreak(l)||(this.appendDataItem(d),this.validateDataElement(d,o)),o++):d.__disabled=!0}this.appendDataItem(this._lastDataItem),this.validateDataElement(this._lastDataItem,o+1,this.dataItems.length),this._axisBreaks&&this._axisBreaks.each(function(y){var g=y.adjustedStartValue,m=y.adjustedEndValue;if(p.intersect({start:g,end:m},{start:e._startIndex,end:e._endIndex})){for(var x=g;x<=m;x++)(b=e.dataItems.getIndex(x)).__disabled=!0;var P=p.fitToRange(Math.ceil(e._frequency/y.breakSize),1,m-g),S=0;if(y.breakSize>0)for(x=g;x<=m;x+=P){var b;
1(b=e.dataItems.getIndex(x)).__disabled=!1,e.appendDataItem(b),e.validateDataElement(b,S),S++}}}),this.validateBreaks(),this.validateAxisRanges(),this.ghostLabel.invalidate(),this.renderer.invalidateLayout()}},r.prototype.validateDataElement=function(e,t,i){h.prototype.validateDataElement.call(this,e),e.itemIndex=this._axisItemCount,this._axisItemCount++;var a=this.renderer;v.isNumber(i)||(i=this.categoryToIndex(e.category));var n=this.categoryToIndex(e.endCategory);v.isNumber(n)||(n=i);var l,d,u,s=this.indexToPosition(i,e.locations.category),o=this.indexToPosition(n,e.locations.endCategory);e.position=s,e.isRange&&(l=n,d=this.indexToPosition(i,e.locations.category),u=this.indexToPosition(l,e.locations.endCategory)),e.point=a.positionToPoint(s);var c=e.tick;c&&!c.disabled&&a.updateTickElement(c,s,o);var f=e.grid;f&&!f.disabled&&a.updateGridElement(f,s,o);var y=e.label;y&&!y.disabled&&((!e.isRange||null==y.text)&&(e.text=e.text),a.updateLabelElement(y,s,o),(a instanceof ge.j&&e.label.measuredWidth>this.ghostLabel.measuredWidth||a instanceof De.n&&e.label.measuredHeight>this.ghostLabel.measuredHeight)&&(e.label.html?this.ghostLabel.html=e.label.currentText:this.ghostLabel.text=e.label.currentText));var g=e.axisFill;g&&!g.disabled&&(e.isRange||(l=i+this._frequency,d=this.indexToPosition(i,g.location),u=this.indexToPosition(l,g.location)),a.updateFillElement(g,d,u),e.isRange||this.fillRule(e,t)),e.bullet&&a.updateBullet(e.bullet,s,o);var m=e.mask;m&&a.updateFillElement(m,d,u)},r.prototype.disposeData=function(){this.dataItemsByCategory.clear(),h.prototype.disposeData.call(this)},r.prototype.processDataItem=function(e,t){e&&(h.prototype.processDataItem.call(this,e,t),v.hasValue(e.category)&&this.dataItemsByCategory.setKey(e.category,e))},r.prototype.getDataItem=function(e){var t=e[this.dataFields.category];if(v.hasValue(t))return this.dataItemsByCategory.getKey(t)||this.dataItems.create()},r.prototype.indexToPosition=function(e,t){v.isNumber(t)||(t=.5);var i=this.startIndex,a=this.endIndex,n=this.adjustDifference(i,a),s=this.startLocation;n-=s,n-=1-this.endLocation,this._axisBreaks&&I.eachContinue(this._axisBreaks.iterator(),function(c){var f=c.adjustedStartValue,y=c.adjustedEndValue;if(e<i||!v.isNumber(f)||!v.isNumber(y))return!1;if(p.intersect({start:f,end:y},{start:i,end:a})){f=Math.max(i,f),y=Math.min(a,y);var g=c.breakSize;e>y?i+=(y-f)*(1-g):e<f||(e=f+(e-f)*g)}return!0});var d=0,u=this.dataItems.getIndex(e);return u&&(d=u.deltaPosition),p.round(d+(e+t-s-i)/n,5)},r.prototype.categoryToPosition=function(e,t){var i=this.categoryToIndex(e);return this.indexToPosition(i,t)},r.prototype.categoryToPoint=function(e,t){var i=this.categoryToPosition(e,t),a=this.renderer.positionToPoint(i),n=this.renderer.positionToAngle(i);return{x:a.x,y:a.y,angle:n}},r.prototype.anyToPoint=function(e,t){return this.categoryToPoint(e,t)},r.prototype.anyToPosition=function(e,t){return this.categoryToPosition(e,t)},r.prototype.categoryToIndex=function(e){if(v.hasValue(e)){var t=this.dataItemsByCategory.getKey(e);if(t)return t.index}},r.prototype.zoomToCategories=function(e,t){this.zoomToIndexes(this.categoryToIndex(e),this.categoryToIndex(t)+1)},r.prototype.getAnyRangePath=function(e,t,i,a){var n=this.categoryToPosition(e,i),s=this.categoryToPosition(t,a);return this.getPositionRangePath(n,s)},r.prototype.roundPosition=function(e,t){var i=this.positionToIndex(e);return this.indexToPosition(i,t)},r.prototype.getFirstSeriesDataItem=function(e,t){for(var i=0;i<e.dataItems.length;i++){var a=e.dataItems.getIndex(i);if(e.xAxis==this&&a.categoryX==t||e.yAxis==this&&a.categoryY==t)return a}},r.prototype.getLastSeriesDataItem=function(e,t){for(var i=e.dataItems.length-1;i>=0;i--){var a=e.dataItems.getIndex(i);if(e.xAxis==this&&a.categoryX==t||e.yAxis==this&&a.categoryY==t)return a}},r.prototype.getSeriesDataItemByCategory=function(e,t){var a,i=this;return t.dataItems.each(function(n){t.xAxis==i?n.categoryX==e&&(a=n):t.yAxis==i&&n.categoryY==e&&(a=n)}),a},r.prototype.getSeriesDataItem=function(e,t,i){var a=this;if(v.isNumber(t)){var n=this.positionToIndex(t);n>=this.dataItems.length&&n--;var s=this.dataItems.getIndex(n);if(s){var l,o=s.category,d=e.dataItems.getIndex(n);return d&&(e.xAxis==this&&d.categoryX==o||e.yAxis==this&&d.categoryY==o)?d:(e.dataItems.each(function(u){e.xAxis==a&&u.categoryX==o&&(l||(l=u),Math.abs(n-l.index)>Math.abs(n-u.index)&&(l=u)),e.yAxis==a&&u.categoryY==o&&(l||(l=u),Math.abs(n-l.index)>Math.abs(n-u.index)&&(l=u))}),l)}}},r.prototype.getX=function(e,t,i,a,n){var s=this.getPositionX(e,t,i,a,n);return v.isNaN(s)?this.basePoint.x:this.renderer.positionToPoint(s).x},r.prototype.getPositionX=function(e,t,i,a,n){var s;return v.hasValue(t)&&(s=this.categoryToPosition(e.categories[t],i)),n&&(s=p.fitToRange(s,n.start,n.end)),s},r.prototype.getY=function(e,t,i,a,n){var s=this.getPositionY(e,t,i,a,n);return v.isNaN(s)?this.basePoint.y:this.renderer.positionToPoint(s).y},r.prototype.getPositionY=function(e,t,i,a,n){var s;return v.hasValue(t)&&(s=this.categoryToPosition(e.categories[t],i)),n&&(s=p.fitToRange(s,n.start,n.end)),s},r.prototype.getAngle=function(e,t,i,a,n){var s=this.categoryToPosition(e.categories[t],i);return n&&(s=p.fitToRange(s,n.start,n.end)),this.positionToAngle(s)},r.prototype.getCellStartPosition=function(e){return this.roundPosition(e,0)},r.prototype.getCellEndPosition=function(e){return this.roundPosition(e,1)},r.prototype.getTooltipText=function(e){var t=this.dataItems.getIndex(this.positionToIndex(e));if(t)return this.tooltipDataItem=t,this.tooltip.dataItem=t,this.tooltipText?this.tooltipText:this._adapterO?this._adapterO.apply("getTooltipText",t.category):t.category}
1,r.prototype.positionToIndex=function(e){(e=p.round(e,10))<0&&(e=0),e>1&&(e=1);var t=this.startIndex,i=this.endIndex,a=i-t-this.startLocation-(1-this.endLocation);e+=1/a*this.startLocation;var n=null;return this._axisBreaks&&I.eachContinue(this._axisBreaks.iterator(),function(o){var l=o.startPosition,d=o.endPosition,u=o.adjustedStartValue,c=o.adjustedEndValue;u=p.max(u,t),c=p.min(c,i);var f=o.breakSize;if(a-=(c-u)*(1-f),e>d)t+=(c-u)*(1-f);else if(!(e<l))return n=u+Math.round((e-l)/(d-l)*(c-u)),!1;return!0}),v.isNumber(n)||(n=Math.floor(e*a+t)),n>=this.dataItems.length&&(n=this.dataItems.length-1),n},r.prototype.positionToCategory=function(e){return this.getPositionLabel(e)},r.prototype.getPositionLabel=function(e){var t=this.dataItems.getIndex(this.positionToIndex(e));if(t)return t.category},Object.defineProperty(r.prototype,"basePoint",{get:function(){return this.renderer.positionToPoint(1)},enumerable:!0,configurable:!0}),r.prototype.initRenderer=function(){h.prototype.initRenderer.call(this),this.renderer.baseGrid.disabled=!0},Object.defineProperty(r.prototype,"frequency",{get:function(){return this._frequency},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sortBySeries",{get:function(){return this.getPropertyValue("sortBySeries")},set:function(e){this.setPropertyValue("sortBySeries",e,!0)},enumerable:!0,configurable:!0}),r.prototype.processConfig=function(e){e&&v.hasValue(e.sortBySeries)&&v.isString(e.sortBySeries)&&(this.map.hasKey(e.sortBySeries)?e.sortBySeries=this.map.getKey(e.sortBySeries):(this.addDelayedMap("sortBySeries",e.sortBySeries),delete e.sortBySeries)),h.prototype.processConfig.call(this,e)},r}(Re.RD);F.i.registeredClasses.CategoryAxis=U,F.i.registeredClasses.CategoryAxisDataItem=lt;var me=k(84984),_=k(31991),Z=k(75080),C=k(70181),xe=k(15241),Ae=function(h){function r(){var e=h.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(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"valueX",{get:function(){return this.values.valueX.value},set:function(e){this.setValue("valueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"customValue",{get:function(){return this.values.customValue.value},set:function(e){this.setValue("customValue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"valueY",{get:function(){return this.values.valueY.value},set:function(e){this.setValue("valueY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"dateX",{get:function(){return this.getDate("dateX")},set:function(e){this.setDate("dateX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"dateY",{get:function(){return this.getDate("dateY")},set:function(e){this.setDate("dateY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"categoryX",{get:function(){return this.categories.categoryX},set:function(e){this.setCategory("categoryX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"categoryY",{get:function(){return this.categories.categoryY},set:function(e){this.setCategory("categoryY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"openValueX",{get:function(){return this.values.openValueX.value},set:function(e){this.setValue("openValueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"openValueY",{get:function(){return this.values.openValueY.value},set:function(e){this.setValue("openValueY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"openDateX",{get:function(){return this.getDate("openD
1ateX")},set:function(e){this.setDate("openDateX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"openDateY",{get:function(){return this.getDate("openDateY")},set:function(e){this.setDate("openDateY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"openCategoryX",{get:function(){return this.categories.openCategoryX},set:function(e){this.setCategory("openCategoryX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"openCategoryY",{get:function(){return this.categories.openCategoryY},set:function(e){this.setCategory("openCategoryY",e)},enumerable:!0,configurable:!0}),r.prototype.getMin=function(e,t,i){var n,a=this;return v.isNumber(i)||(i=0),z.each(e,function(s){var o;o=t?a.getWorkingValue(s):a.getValue(s),((o+=i)<n||!v.isNumber(n))&&(n=o)}),n},r.prototype.getMax=function(e,t,i){var n,a=this;return v.isNumber(i)||(i=0),z.each(e,function(s){var o;o=t?a.getWorkingValue(s):a.getValue(s),((o+=i)>n||!v.isNumber(n))&&(n=o)}),n},r}(me.m),le=function(h){function r(){var e=h.call(this)||this;return e.groupFields={},e._xAxis=new Z.cx,e._yAxis=new Z.cx,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 _.jy,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(_.hh,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(0,D.ZT)(r,h),r.prototype.applyInternalDefaults=function(){h.prototype.applyInternalDefaults.call(this),v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("X/Y Series"))},r.prototype.createDataItem=function(){return new Ae},r.prototype.resetExtremes=function(){this._tmin.clear(),this._tmax.clear(),this._smin.clear(),this._smax.clear()},r.prototype.dataChangeUpdate=function(){this.dataGrouped=!1,this._baseInterval={},this._currentDataSetId="",this.resetExtremes(),this.xAxis&&this.xAxis.seriesDataChangeUpdate(this),this.yAxis&&this.yAxis.seriesDataChangeUpdate(this)},r.prototype.validateData=function(){this._baseInterval={};var e=this.dataFields;if(this.usesShowFields=!!(e.valueYShow||e.openValueXShow||e.openValueXShow||e.openValueYShow),this.defineFields(),this.data.length>0&&this.dataChangeUpdate(),h.prototype.validateData.call(this),this.updateItemReaderText(),this.chart&&(!v.hasValue(this.dataFields[this._xField])||!v.hasValue(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},r.prototype.processDataItem=function(e,t){try{h.prototype.processDataItem.call(this,e,t),this.xAxis.processSeriesDataItem(e,"X"),this.yAxis.processSeriesDataItem(e,"Y"),this.setInitialWorkingValues(e)}catch(i){this._chart&&this._chart.raiseCriticalError(i)}},r.prototype.updateDataItem=function(e){h.prototype.updateDataItem.call(this,e),this.xAxis.processSeriesDataItem(e,"X"),this.yAxis.processSeriesDataItem(e,"Y")},r.prototype.setInitialWorkingValues=function(e){},r.prototype.disposeData=function(){h.prototype.disposeData.call(this);var e=this.xAxis,t=this.yAxis;if(e){var i=this.dataItemsByAxis.getKey(e.uid);i&&i.clear(),e instanceof U&&this.clearCatAxis(e)}if(t){var a=this.dataItemsByAxis.getKey(t.uid);a&&a.clear(),t instanceof U&&this.clearCatAxis(t)}},r.prototype.clearCatAxis=function(e){var t=this.uid;e.dataItems.each(function(i){i.seriesDataItems[t]&&(i.seriesDataItems[t]=[])})},r.prototype.defineFields=function(){var e=this.xAxis,t=this.yAxis;if(e&&t){var i=e.axisFieldName,a=i+"X",n="open"+O.capitalize(i)+"X",s=t.axisFieldName,o=s+"Y",l="open"+O.capitalize(s)+"Y";this._xField=a,this._yField=o,this.dataFields[n]&&(this._xOpenField=n),this.dataFields[l]&&(this._yOpenField=l),!this.dataFields[l]&&this.baseAxis==t&&(this._yOpenField=o),!this.dataFields[n]&&this.baseAxis==e&&(this._xOpenField=a),this.stacked&&this.baseAxis==e&&(this._xOpenField=a),this.stacked&&this.baseAxis==t&&(this._yOpenField=o),e instanceof U&&t instanceof U&&(this._yOpenField||(this._yOpenField=o)),this._xValueFields=[],this._yValueFields=[],this.addValueField(e,this._xValueFields,this._xField),this.addValueField(e,this._xValueFields,this._xOpenField),this.addValueField(t,this._yValueFields,this._yField),this.addValueField(t,this._yValueFields,this._yOpenField)}},r.prototype.addValueField=function(e,t,i){e instanceof M.m&&v.hasValue(this.dataFields[i])&&-1==t.indexOf(i)&&t.push(i)},r.prototype.setCategoryAxisField=function(e,t){v.hasValue(this.dataFields[e])||(this.dataFields[e]=t.dataFields.category)},r.prototype.setDateAxisField=function(e,t){v.hasValue(this.dataFields[e])||(this.dataFields[e]=t.dataFields.date)},r.prototype.afterDraw=function(){h.prototype.afterDraw.call(this),this.createMask()},r.prototype.createMask=function(){if(this.mainContainer.mask){var e=this.getMaskPath();I.each(this.axisRanges.iterator(),function(t){t.axisFill.fillPath&&(t.axisFill.validate(),e+=t.axisFill.fillPath)}),this.mainContainer.mask.path=e}},r.prototype.getMaskPath=function(){return this.xAxis&&this.yAxis?C.rectToPath({x:0,y:0,width:this.xAxis.axisLength,height:this.yAxis.axisLength}):""},r.prototype.getAxisField=function(e){return e==this.xAxis?this.xField:e==this.yAxis?this.yField:void 0},r.prototype.validateDataItems=function(){var e=this.chart;
1e&&(this._maxxX=p.max(1e5,2*e.plotContainer.maxWidth),this._maxxY=p.max(1e5,2*e.plotContainer.maxHeight));var t=this.xAxis,i=this.yAxis;t&&i&&(t.updateAxisBySeries(),i.updateAxisBySeries()),h.prototype.validateDataItems.call(this),t&&i&&(t.postProcessSeriesDataItems(this),i.postProcessSeriesDataItems(this))},r.prototype.validateDataRange=function(){var e=this.xAxis,t=this.yAxis;e&&t&&(e.dataRangeInvalid&&e.validateDataRange(),t.dataRangeInvalid&&t.validateDataRange()),h.prototype.validateDataRange.call(this)},r.prototype.validate=function(){var e=this.xAxis,t=this.yAxis;if(e&&t){e.invalid&&e.validate(),t.invalid&&t.validate(),this.y=t.pixelY,this.x=e.pixelX,this._showBullets=!0;var i=this.minBulletDistance;v.isNumber(i)&&this.baseAxis.axisLength/(this.endIndex-this.startIndex)<i&&(this._showBullets=!1)}if(this.updateTooltip(),!(e instanceof B&&e.groupData&&!this.dataGrouped||t instanceof B&&t.groupData&&!this.dataGrouped)){h.prototype.validate.call(this);var a=this.chart;a&&this.maskBullets&&"XYChart"==a.className&&(("vertical"==a.leftAxesContainer.layout||"vertical"==a.rightAxesContainer.layout)&&(this.bulletsContainer.mask=this.yAxis?this.yAxis.renderer.gridContainer:void 0),("horizontal"==a.topAxesContainer.layout||"horizontal"==a.bottomAxesContainer.layout)&&(this.bulletsContainer.mask=this.xAxis?this.xAxis.renderer.gridContainer:void 0))}},Object.defineProperty(r.prototype,"xAxis",{get:function(){if(this.chart){if(!this._xAxis.get()){var e=this.chart.xAxes.getIndex(0);if(!e)throw Error("There are no X axes on chart.");this.xAxis=e}return this._xAxis.get()}},set:function(e){this.setXAxis(e)},enumerable:!0,configurable:!0}),r.prototype.setXAxis=function(e){var t=this._xAxis.get();t!=e&&(t&&(this.dataItemsByAxis.removeKey(t.uid),this._xAxis.dispose(),t.series.removeValue(this)),this._xAxis.set(e,e.registerSeries(this)),this.dataItemsByAxis.setKey(e.uid,new te.Xy),this.invalidateData())},Object.defineProperty(r.prototype,"yAxis",{get:function(){if(this.chart){if(!this._yAxis.get()){var e=this.chart.yAxes.getIndex(0);if(!e)throw Error("There are no Y axes on chart.");this.yAxis=e}return this._yAxis.get()}},set:function(e){this.setYAxis(e)},enumerable:!0,configurable:!0}),r.prototype.setYAxis=function(e){var t=this._yAxis.get();t!=e&&(t&&(this.dataItemsByAxis.removeKey(t.uid),this._yAxis.dispose(),t.series.removeValue(this)),this._yAxis.set(e,e.registerSeries(this)),e.chart instanceof re&&e.chart.handleYAxisSet(this),this.dataItemsByAxis.setKey(e.uid,new te.Xy),this.invalidateData())},Object.defineProperty(r.prototype,"baseAxis",{get:function(){var e=this.xAxis,t=this.yAxis;return!this._baseAxis&&e&&t&&(t instanceof B&&(this._baseAxis=t),e instanceof B&&(this._baseAxis=e),t instanceof U&&(this._baseAxis=t),e instanceof U&&(this._baseAxis=e),this._baseAxis||(this._baseAxis=e)),this._baseAxis},set:function(e){this._baseAxis!=e&&(this._baseAxis=e,this.invalidate())},enumerable:!0,configurable:!0}),r.prototype.addData=function(e,t,i){h.prototype.addData.call(this,e,t,i),this.scrollbarSeries&&(this.scrollbarSeries.addData(e,t,!0),this.scrollbarSeries._parseDataFrom=this._parseDataFrom)},r.prototype.setData=function(e){h.prototype.setData.call(this,e),this.scrollbarSeries&&this.scrollbarSeries.setData(e)},r.prototype.setDataSet=function(e){var t=h.prototype.setDataSet.call(this,e);if(t){this._dataSetChanged=!0;var i=this.dataItems;if(this.resetExtremes(),i&&i.length>0){var a=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),a instanceof B&&a==this.baseAxis&&(this._tmin.setKey(a.uid,i.getIndex(0).dateX.getTime()),this._tmax.setKey(a.uid,i.getIndex(i.length-1).dateX.getTime()),this.dispatch("extremeschanged")),n instanceof B&&n==this.baseAxis&&(this._tmin.setKey(n.uid,i.getIndex(0).dateY.getTime()),this._tmax.setKey(n.uid,i.getIndex(i.length-1).dateY.getTime()),this.dispatch("extremeschanged"))}}return t},r.prototype.processValues=function(e){h.prototype.processValues.call(this,e);var t=this.xAxis,i=this.yAxis;if(t&&i){var a=this.dataItems,n=1/0,s=-1/0,o=1/0,l=-1/0,d=this.startIndex,u=this.endIndex,c=d,f=u;e||(d=0,u=this.dataItems.length);for(var y=d;y<u;y++){var g=a.getIndex(y);
1this.getStackValue(g,e);var m=g.getValue("valueX","stack"),x=g.getValue("valueY","stack");e||(m=g.getValue("valueX","stackTrue"),x=g.getValue("valueY","stackTrue")),n=p.min(g.getMin(this._xValueFields,e,m),n),o=p.min(g.getMin(this._yValueFields,e,x),o),s=p.max(g.getMax(this._xValueFields,e,m),s),l=p.max(g.getMax(this._yValueFields,e,x),l),this.stacked&&(this.baseAxis==t&&(x<o&&(o=x),x>l&&(l=x)),this.baseAxis==i&&(m<n&&(n=m),m>s&&(s=m)))}t.processSeriesDataItems(),i.processSeriesDataItems();var b=t.uid,P=i.uid;if(this.xAxis instanceof M.m&&(n==1/0||s==-1/0))return this._smin.setKey(b,void 0),this._smax.setKey(b,void 0),void this.dispatchImmediately("selectionextremeschanged");if(this.yAxis instanceof M.m&&(o==1/0||l==-1/0))return this._smin.setKey(P,void 0),this._smax.setKey(P,void 0),void this.dispatchImmediately("selectionextremeschanged");if(!e&&(this._tmin.getKey(b)!=n||this._tmax.getKey(b)!=s||this._tmin.getKey(P)!=o||this._tmax.getKey(P)!=l)){this._tmin.setKey(b,n),this._tmax.setKey(b,s),this._tmin.setKey(P,o),this._tmax.setKey(P,l);var S=this.stackedSeries;S&&(S.isDisposed()?this.stackedSeries=void 0:S.processValues(!1)),this.dispatchImmediately("extremeschanged")}if(d!=c||u!=f)for(n=1/0,s=-1/0,o=1/0,l=-1/0,y=c;y<f;y++)g=a.getIndex(y),this.getStackValue(g,e),m=g.getValue("valueX","stack"),x=g.getValue("valueY","stack"),e||(m=g.getValue("valueX","stackTrue"),x=g.getValue("valueY","stackTrue")),n=p.min(g.getMin(this._xValueFields,e,m),n),o=p.min(g.getMin(this._yValueFields,e,x),o),s=p.max(g.getMax(this._xValueFields,e,m),s),l=p.max(g.getMax(this._yValueFields,e,x),l),this.stacked&&(this.baseAxis==t&&(x<o&&(o=x),x>l&&(l=x)),this.baseAxis==i&&(m<n&&(n=m),m>s&&(s=m)));if(this.xAxis instanceof M.m&&(n==1/0||s==-1/0))return this._smin.setKey(b,void 0),this._smax.setKey(b,void 0),void this.dispatchImmediately("selectionextremeschanged");if(this.yAxis instanceof M.m&&(o==1/0||l==-1/0))return this._smin.setKey(P,void 0),this._smax.setKey(P,void 0),void this.dispatchImmediately("selectionextremeschanged");if((this._smin.getKey(b)!=n||this._smax.getKey(b)!=s||this._smin.getKey(P)!=o||this._smax.getKey(P)!=l)&&(this._smin.setKey(b,n),this._smax.setKey(b,s),this._smin.setKey(P,o),this._smax.setKey(P,l),this.appeared||0!=this.start||1!=this.end||this.dataItems!=this.mainDataSet)){var A=!1;if(i instanceof M.m&&!(i instanceof B)){var V=this._tmin.getKey(P);(!v.isNumber(V)||(this.usesShowFields||this._dataSetChanged||t instanceof B&&t.groupData&&this.isShowing)&&o<V||this.stackedSeries&&!this.isHidden&&!e)&&(this._tmin.setKey(P,o),A=!0);var T=this._tmax.getKey(P);(!v.isNumber(T)||(this.usesShowFields||this._dataSetChanged||t instanceof B&&t.groupData&&this.isShowing)&&l>T||this.stackedSeries&&!this.isHidden&&!e)&&(this._tmax.setKey(P,l),A=!0)}t instanceof M.m&&!(t instanceof B)&&(V=this._tmin.getKey(b),(!v.isNumber(V)||(this.usesShowFields||this._dataSetChanged||i instanceof B&&i.groupData&&this.isShowing)&&n<V||this.stackedSeries&&!this.isHidden&&!e)&&(this._tmin.setKey(b,n),A=!0),T=this._tmax.getKey(b),(!v.isNumber(T)||(this.usesShowFields||this._dataSetChanged||i instanceof B&&i.groupData&&this.isShowing)&&s>T||this.stackedSeries&&!this.isHidden&&!e)&&(this._tmax.setKey(b,s),A=!0)),A&&this.dispatchImmediately("extremeschanged"),0==this.start&&1==this.end&&(this._dataSetChanged=!1),this.dispatchImmediately("selectionextremeschanged")}!e&&this.stacked&&this.processValues(!0)}},r.prototype.hideTooltip=function(e){h.prototype.hideTooltip.call(this,e),this.returnBulletDefaultState(),this._prevTooltipDataItem=void 0},r.prototype.showTooltipAtPosition=function(e,t){var i;if(this.visible&&!this.isHiding&&!this.isShowing){var a=this._xAxis.get(),n=this._yAxis.get();a==this.baseAxis&&(i=a.getSeriesDataItem(this,a.toAxisPosition(e),this.snapTooltip)),n==this.baseAxis&&(i=n.getSeriesDataItem(this,n.toAxisPosition(t),this.snapTooltip));var s=this.showTooltipAtDataItem(i);if(s)return s;if(!this.tooltipText&&!this.tooltipHTML)return}this.hideTooltip()},r.prototype.getAdjustedXLocation=function(e,t,i){return e.locations[t]},r.prototype.getAdjustedYLocation=function(e,t,i){return e.locations[t]},r.prototype.showTooltipAtDataItem=function(e){var t,i,a=this.chart.cursor;if(a&&a.hideSeriesTooltipsOnSelection&&a.selection.visible&&a.downPoint)this.hideTooltip();else if(this.returnBulletDefaultState(e),e&&e.visible){if(this.updateLegendValue(e),this.cursorTooltipEnabled){this.tooltipDataItem=e;var n=this.tooltipXField,s=this.tooltipYField;if(v.hasValue(e[n])&&v.hasValue(e[s])){var o=this.getPoint(e,n,s,this.getAdjustedXLocation(e,n),this.getAdjustedYLocation(e,s));if(o&&("XYChart"!=this.chart.className||!(o.y<-1||o.y>this.yAxis.pixelHeight+1||o.x<-1||o.x>this.xAxis.pixelWidth+1))){if(this.tooltipX=o.x,this.tooltipY=o.y,this._prevTooltipDataItem!=e&&(this.dispatchImmediately("tooltipshownat",{type:"tooltipshownat",target:this,dataItem:e}),this._prevTooltipDataItem=e),this.cursorHoverEnabled)try{for(var l=(0,D.XA)(e.sprites),d=l.next();!d.done;d=l.next()){var u=d.value;!u.parent.visible||u.isHidden||u.__disabled||u.disabled||u.isHiding||(u.interactions.isRealHover||(u.dispatchImmediately("over"),u.interactions.isRealHover=!0),u.isHover=!0)}}catch(c){t={error:c}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(t)throw t.error}}return this.showTooltip()?O.spritePointToSvg({x:o.x,y:o.y},this):void 0}}}}else this.updateLegendValue(e,!0)},r.prototype.returnBulletDefaultState=function(e){var t,i;if(this._prevTooltipDataItem&&this._prevTooltipDataItem!=e)try{for(var a=(0,D.XA)(this._prevTooltipDataItem.sprites),n=a.next();!n.done;n=a.next()){var s=n.value;if(s.isDisposed())this._prevTooltipDataItem=void 0;else{var o=s.interactions.isRealHover;s.isHover=!1,o&&s.dispatchImmediately("out")}}}
1catch(l){t={error:l}}finally{try{n&&!n.done&&(i=a.return)&&i.call(a)}finally{if(t)throw t.error}}},r.prototype.shouldCreateBullet=function(e,t){var i=t.xField;v.hasValue(i)||(i=this.xField);var a=t.yField;if(v.hasValue(a)||(a=this.yField),this.xAxis instanceof M.m&&!e.hasValue([i])||this.yAxis instanceof M.m&&!e.hasValue([a]))return!1;if(t.disabled){var s=e.dataContext;return!(!s||!1!==s[t.propertyFields.disabled])}return!0},r.prototype.updateTooltip=function(){!this.hideTooltipWhileZooming&&this.tooltip&&!this.tooltip.isHidden&&!this.isHiding&&!this.isHidden&&this.tooltipDataItem&&this.showTooltipAtDataItem(this.tooltipDataItem)},r.prototype.positionBullet=function(e){h.prototype.positionBullet.call(this,e);var t=e.dataItem,i=e.xField;v.hasValue(i)||(i=this.xField);var a=e.yField;v.hasValue(a)||(a=this.yField);var n=this.xAxis,s=this.yAxis;if(n instanceof M.m&&!t.hasValue([i])||s instanceof M.m&&!t.hasValue([a]))e.visible=!1;else{var o=this.getBulletLocationX(e,i),l=this.getBulletLocationY(e,a);if(this.getPoint(t,i,a,o,l)){var u=this.xOpenField,c=this.yOpenField,f=void 0,y=void 0;if(n instanceof B){v.isNumber(o)||(o=0);var g=void 0,m=t.getWorkingValue(i);if(u?g=t.getWorkingValue(u):n==this.baseAxis&&(g=n.baseValue),v.isNumber(g)||(g=m),(g+=x=t.getValue("valueX","stack"))==(m+=x)){var b=n.baseInterval,P=n.dateFormatter;g=N.round(new Date(g),b.timeUnit,b.count,P.firstDayOfWeek,P.utc,void 0,P.timezoneMinutes,P.timezone).getTime(),m=N.add(new Date(g),b.timeUnit,b.count,P.utc).getTime()}f=n.valueToPosition(n==this.baseAxis?g+(m-g)*o:g+(m-g)*(1-o))}else if(n instanceof M.m)v.isNumber(o)||(o=0),g=void 0,m=t.getWorkingValue(i),g=u?t.getWorkingValue(u):n.baseValue,g+=x=t.getValue("valueX","stack"),f=n.valueToPosition(g+((m+=x)-g)*(1-o));else if(n instanceof U){var A=this.getAdjustedXLocation(t,i,e.locationX),V=this.getAdjustedXLocation(t,u,e.locationX);f=n.categoryToPosition(t[i],A);var T=void 0;u&&(T=n.categoryToPosition(t[u],V)),v.isNumber(T)||(T=1),f=T+(f-T)*o}if(s instanceof B)v.isNumber(l)||(l=0),g=void 0,m=t.getWorkingValue(a),c?g=t.getWorkingValue(c):s==this.baseAxis&&(g=s.baseValue),v.isNumber(g)||(g=m),(g+=x=t.getValue("valueY","stack"))==(m+=x)&&(b=s.baseInterval,P=s.dateFormatter,g=N.round(new Date(g),b.timeUnit,b.count,P.firstDayOfWeek,P.utc,void 0,P.timezoneMinutes,P.timezone).getTime(),m=N.add(new Date(g),b.timeUnit,b.count,P.utc).getTime()),y=s.valueToPosition(s==this.baseAxis?g+(m-g)*l:g+(m-g)*(1-l));else if(s instanceof M.m){var x;v.isNumber(l)||(l=0),g=void 0,m=t.getWorkingValue(a),g=c?t.getWorkingValue(c):s.baseValue,g+=x=t.getValue("valueY","stack"),y=s.valueToPosition(g+((m+=x)-g)*(1-l))}else if(s instanceof U){y=s.categoryToPosition(t[a],l);var L=this.getAdjustedYLocation(t,a,e.locationY),w=this.getAdjustedYLocation(t,c,e.locationY);y=s.categoryToPosition(t[a],L);var H=void 0;c&&(H=s.categoryToPosition(t[c],w)),v.isNumber(H)||(H=1),y=H+(y-H)*l}e.visible=!0,this.positionBulletReal(e,f,y)}else e.visible=!1}},r.prototype.positionBulletReal=function(e,t,i){e.x=this.xAxis.renderer.positionToPoint(t,i).x,e.y=this.yAxis.renderer.positionToPoint(i,t).y},r.prototype.getBulletLocationX=function(e,t){var i=e.locationX,a=e.dataItem;return v.isNumber(i)||(i=a.workingLocations[t]),i},r.prototype.getBulletLocationY=function(e,t){var i=e.locationY,a=e.dataItem;return v.isNumber(i)||(i=a.workingLocations[t]),i},r.prototype.updateStacking=function(){var e=this;this.invalidateDataItems(),this.chart&&this.chart.series.each(function(t){t.baseAxis==e.baseAxis&&(t.stackedSeries=void 0,t.invalidateDataItems(),t.invalidateProcessedData())})},Object.defineProperty(r.prototype,"stacked",{get:function(){return this.getPropertyValue("stacked")},set:function(e){if(this.setPropertyValue("stacked",e,!0)){this.updateStacking();var a,t=this.xAxis,i=this.yAxis;e||(t!=this.baseAxis&&t instanceof M.m&&(a=this.xField),i!=this.baseAxis&&i instanceof M.m&&(a=this.yField),a&&this.dataItems.each(function(n){n.setCalculatedValue(a,0,"stack"),n.setCalculatedValue(a,0,"stackTrue")}))}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(e){this.setPropertyValue("snapTooltip",e)},enumerable:!0,configurable:!0}),r.prototype.show=function(e){var i,t=this;this.isHidden&&(this.appeared&&this.xAxis instanceof B&&this.xAxis.groupData&&(this._tmin.setKey(this.yAxis.uid,void 0),this._tmax.setKey(this.yAxis.uid,void 0)),this.appeared&&this.yAxis instanceof B&&this.yAxis.groupData&&(this._tmin.setKey(this.xAxis.uid,void 0),this._tmax.setKey(this.xAxis.uid,void 0))),this.xAxis instanceof M.m&&this.xAxis!=this.baseAxis&&(i=this._xValueFields),this.yAxis instanceof M.m&&this.yAxis!=this.baseAxis&&(i=this._yValueFields);var l,a=this.startIndex,n=this.endIndex,s=0,o=this.defaultState.transitionDuration;v.isNumber(e)&&(o=e),xe.Y.animationsEnabled||(o=0),I.each(I.indexed(this.dataItems.iterator()),function(u){var c=u[0],y=o;(c<t.startIndex-10||c>t.endIndex+10)&&(y=0,s=0),t.sequencedInterpolation&&y>0&&(s=t.sequencedInterpolationDelay*c+o*(c-a)/(n-a)),l=u[1].show(y,s,i)}),this.dataSets.each(function(u,c){c!=t.dataItems&&c.each(function(f){f.events.disable(),f.show(0,0,i),f.events.enable()})}),this.mainDataSet!=this.dataItems&&this.mainDataSet.each(function(u){u.events.disable(),u.show(0,0,i),u.events.enable()});var d=h.prototype.show.call(this,e);return l&&!l.isFinished()&&(d=l),this.hidden&&(this.dispatchImmediately("selectionextremeschanged"),this.hidden=!1),d},r.prototype.hide=function(e){var i,a,t=this,n=this.xAxis;n instanceof M.m&&n!=this.baseAxis&&(i=this._xValueFields,a=this.stacked||n.minZ
1oomed<n.baseValue&&n.maxZoomed>n.baseValue||this.stackedSeries?n.baseValue:n.min);var s=this.yAxis;s instanceof M.m&&s!=this.baseAxis&&(i=this._yValueFields,a=this.stacked||s.minZoomed<s.baseValue&&s.maxZoomed>s.baseValue||this.stackedSeries?s.baseValue:s.min);var o=this.startIndex,l=this.endIndex,d=this.hiddenState.transitionDuration;v.isNumber(e)&&(d=e),xe.Y.animationsEnabled||(d=0);var c,u=0;I.each(I.indexed(this.dataItems.iterator()),function(y){var g=y[0],m=y[1],x=d;(g<t.startIndex-10||g>t.endIndex+10)&&(x=0),0==x?m.hide(0,0,a,i):(t.sequencedInterpolation&&x>0&&(u=t.sequencedInterpolationDelay*g+d*(g-o)/(l-o)),c=m.hide(x,u,a,i))}),this.dataSets.each(function(y,g){g!=t.dataItems&&g.each(function(m){m.events.disable(),m.hide(0,0,a,i),m.events.enable()})}),this.mainDataSet!=this.dataItems&&this.mainDataSet.each(function(y){y.events.disable(),y.hide(0,0,a,i),y.events.enable()});var f=h.prototype.hide.call(this,d);return f&&!f.isFinished()&&f.delay(u),c&&!c.isFinished()&&(f=c),this.appeared&&this.dispatch("selectionextremeschanged"),this.validateDataElements(),f},r.prototype.handleDataItemWorkingValueChange=function(e,t){h.prototype.handleDataItemWorkingValueChange.call(this,e,t),I.each(this.baseAxis.series.iterator(),function(a){(a.stacked||a.stackedSeries)&&a.invalidateProcessedData()})},r.prototype.getStackValue=function(e,t){var i=this,a=this.xAxis,n=this.yAxis;if(this.stacked&&a&&n){var l,s=this.chart,o=s.series.indexOf(this);if(a!=this.baseAxis&&a instanceof M.m&&(l=this.xField),n!=this.baseAxis&&n instanceof M.m&&(l=this.yField),!l)return;e.setCalculatedValue(l,0,"stack"),e.setCalculatedValue(l,0,"stackTrue"),I.eachContinue(s.series.range(0,o).backwards().iterator(),function(d){if(d.xAxis==a&&d.yAxis==n&&d.className==i.className){d.stackedSeries=i;var u=d.dataItems.getIndex(e.index);if(u&&u.hasValue(i._xValueFields)&&u.hasValue(i._yValueFields)){var f,c=e.getValue(l),y=u.getValue(l,"stackTrue");null==y&&(y=0);var g=u.getValue(l)+y;if(f=u.getWorkingValue(l)+u.getValue(l,"stack"),!i.stackToNegative)return e.setCalculatedValue(l,f,"stack"),e.setCalculatedValue(l,g,"stackTrue"),!1;if(c>=0&&g>=0||c<0&&g<0)return e.setCalculatedValue(l,f,"stack"),e.setCalculatedValue(l,g,"stackTrue"),!1;if(!d.stacked)return!1}else if(!d.stacked)return!1}return!0})}},Object.defineProperty(r.prototype,"stackToNegative",{get:function(){return this.getPropertyValue("stackToNegative")},set:function(e){this.setPropertyValue("stackToNegative",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"xField",{get:function(){return this._xField},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"yField",{get:function(){return this._yField},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"xOpenField",{get:function(){return this._xOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"yOpenField",{get:function(){return this._yOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tooltipXField",{get:function(){return this._tooltipXField?this._tooltipXField:this._xField},set:function(e){this._tooltipXField=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tooltipYField",{get:function(){return this._tooltipYField?this._tooltipYField:this._yField},set:function(e){this._tooltipYField=e},enumerable:!0,configurable:!0}),r.prototype.min=function(e){return this._tmin.getKey(e.uid)},r.prototype.max=function(e){return this._tmax.getKey(e.uid)},r.prototype.selectionMin=function(e){return this._smin.getKey(e.uid)},r.prototype.selectionMax=function(e){return this._smax.getKey(e.uid)},r.prototype.processConfig=function(e){if(e){if(v.hasValue(e.baseAxis)&&v.isString(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)),v.hasValue(e.xAxis)&&v.isString(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)),v.hasValue(e.yAxis)&&v.isString(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)),v.hasValue(e.axisRanges)&&v.isArray(e.axisRanges))for(var t=0,i=e.axisRanges.length;t<i;t++){var a=e.axisRanges[t];v.hasValue(a.type)||(a.type="AxisDataItem"),v.hasValue(a.axis)&&v.isString(a.axis)&&this.map.hasKey(a.axis)?a.component=this.map.getKey(a.axis):v.hasValue(a.component)&&v.isString(a.component)&&this.map.hasKey(a.component)&&(a.component=this.map.getKey(a.component))}(!v.hasValue(e.dataFields)||!v.isObject(e.dataFields))&&this.processingErrors.push("`dataFields` is not set for series ["+(this.name||"unnamed")+"]")}h.prototype.processConfig.call(this,e)},r.prototype.getPoint=function(e,t,i,a,n,s,o){if(this.xAxis&&this.yAxis){var l=this.xAxis.getX(e,t,a),d=this.yAxis.getY(e,i,n);
1return{x:l=p.fitToRange(l,-this._maxxX,this._maxxX),y:d=p.fitToRange(d,-this._maxxY,this._maxxY)}}},r.prototype.updateItemReaderText=function(){if(!this._itemReaderTextChanged){var e="";E.each(this.dataFields,function(t,i){e+="{"+t+"} "}),this.itemReaderText=e,this._itemReaderTextChanged=!1}},Object.defineProperty(r.prototype,"cursorTooltipEnabled",{get:function(){return this.getPropertyValue("cursorTooltipEnabled")},set:function(e){this.setPropertyValue("cursorTooltipEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"cursorHoverEnabled",{get:function(){return this.getPropertyValue("cursorHoverEnabled")},set:function(e){this.setPropertyValue("cursorHoverEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"excludeFromTotal",{get:function(){return this.getPropertyValue("excludeFromTotal")},set:function(e){this.setPropertyValue("excludeFromTotal",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hideTooltipWhileZooming",{get:function(){return this.getPropertyValue("hideTooltipWhileZooming")},set:function(e){this.setPropertyValue("hideTooltipWhileZooming",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(e){this.setPropertyValue("maskBullets",e);var t=this.chart;t&&(this.bulletsContainer.parent=e?t.bulletsContainer:t.axisBulletsContainer)},enumerable:!0,configurable:!0}),r.prototype.copyFrom=function(e){this.groupFields=O.copyProperties(e.groupFields,{}),h.prototype.copyFrom.call(this,e)},r.prototype.dispose=function(){this.scrollbarSeries&&this.scrollbarSeries.dispose(),h.prototype.dispose.call(this)},r}(me.F);F.i.registeredClasses.XYSeries=le,F.i.registeredClasses.XYSeriesDataItem=Ae;var Yi=k(56229),R=k(27481),ji=k(23572),J=k(94131),_i=k(15020),he=function(h){function r(){var e=h.call(this)||this;e._chart=new Z.cx,e.className="XYChartScrollbar";var t=new J.h;e.padding(0,0,0,0);var i=e.createChild(re);if(i.shouldClone=!1,i.margin(0,0,0,0),i.padding(0,0,0,0),i.interactionsEnabled=!1,e._scrollbarChart=i,!O.isIE()){var a=new _i.q;a.filterUnits="userSpaceOnUse",i.plotContainer.filters.push(a)}e._disposers.push(e._scrollbarChart),e.minHeight=60,e.minWidth=60;var n=e.createChild(_.jy);n.shouldClone=!1,n.setElement(e.paper.add("path")),n.fill=t.getFor("background"),n.fillOpacity=.8,n.interactionsEnabled=!1,n.isMeasured=!1,n.toBack(),e._unselectedOverlay=n,e._disposers.push(e._unselectedOverlay),i.toBack(),e.background.cornerRadius(0,0,0,0);var s=e.thumb.background;s.cornerRadius(0,0,0,0),s.fillOpacity=0,s.fill=t.getFor("background");var o=s.states.getKey("hover");o&&(o.properties.fillOpacity=.2);var l=s.states.getKey("down");return l&&(l.properties.fillOpacity=.4),e._disposers.push(e._chart),e.applyTheme(),e}return(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"series",{get:function(){return this._series||(this._series=new W.aV,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}),r.prototype.handleSeriesAdded=function(e){var t=this,i=e.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 n=!0,s=!0;I.each(this.series.iterator(),function(P){P!=i&&(P.xAxis==i.xAxis&&t.scrollbarChart.xAxes.length>0&&(n=!1),P.yAxis==i.yAxis&&t.scrollbarChart.yAxes.length>0&&(s=!1))}),i.events.on("beforedisposed",function(){t.series.removeValue(i)});var o=new J.h,l=i.clone();if((xe.Y.onlyShowOnViewport||xe.Y.queue)&&this.addDisposer(this.chart.events.on("removedfromqueue",function(){a.invalidateData()})),O.isIE()&&(l.stroke=(0,q.$_)("#aaaaaa"),l.fill=l.stroke,l.propertyFields.fill=void 0,l.propertyFields.stroke=void 0),i.scrollbarSeries=l,n){var d=i.xAxis.clone();if(a.xAxes.moveValue(d),d.title.disabled=!0,d.rangeChangeDuration=0,(u=d.renderer).ticks.template.disabled=!0,u.inside=!0,u.labels.template.inside=!0,u.line.strokeOpacity=0,u.minLabelPosition=.02,u.maxLabelPosition=.98,u.line.disabled=!0,u.axisFills.template.disabled=!0,u.baseGrid.disabled=!0,u.grid.template.strokeOpacity=.05,u.minWidth=void 0,u.minHeight=void 0,u.padding(0,0,0,0),u.chart=
1a,u.margin(0,0,0,0),d.width=(0,R.aQ)(100),u.labels.template.fillOpacity=.5,d.maxZoomCount=void 0,d.minZoomCount=void 0,d instanceof B){var f=d;f.groupCount=5*i.xAxis.groupCount,f.min=void 0,f.max=void 0,this._disposers.push(f.clonedFrom.events.on("extremeschanged",function(){v.isNumber(f.clonedFrom.minDefined)&&(f.min=f.clonedFrom.minDefined),v.isNumber(f.clonedFrom.maxDefined)&&(f.max=f.clonedFrom.maxDefined)},void 0,!1))}else if(d instanceof M.m){var g=d;g.min=void 0,g.max=void 0,v.isNumber(g.clonedFrom.minDefined)||(g.min=void 0),v.isNumber(g.clonedFrom.maxDefined)||(g.max=void 0),this._disposers.push(g.clonedFrom.events.on("extremeschanged",function(){v.isNumber(g.clonedFrom.minDefined)&&(g.min=g.clonedFrom.min),v.isNumber(g.clonedFrom.maxDefined)&&(g.max=g.clonedFrom.max)},void 0,!1))}l.xAxis=d}else this.scrollbarChart.xAxes.each(function(P){P.clonedFrom==i.xAxis&&(l.xAxis=P)});if(s){var u,m=i.yAxis.clone();if(a.yAxes.moveValue(m),m.title.disabled=!0,m.rangeChangeDuration=0,(u=m.renderer).ticks.template.disabled=!0,u.inside=!0,u.labels.template.inside=!0,u.line.strokeOpacity=0,u.minLabelPosition=.02,u.maxLabelPosition=.98,u.line.disabled=!0,u.axisFills.template.disabled=!0,u.grid.template.stroke=o.getFor("background"),u.baseGrid.disabled=!0,u.grid.template.strokeOpacity=.05,u.minWidth=void 0,u.minHeight=void 0,u.chart=a,u.padding(0,0,0,0),u.margin(0,0,0,0),m.height=(0,R.aQ)(100),u.labels.template.fillOpacity=.5,l.yAxis=m,m.maxZoomCount=void 0,m.minZoomCount=void 0,m instanceof B){var x=m;x.min=void 0,x.max=void 0,m.groupCount=5*i.yAxis.groupCount,this._disposers.push(x.clonedFrom.events.on("extremeschanged",function(){v.isNumber(x.clonedFrom.minDefined)&&(x.min=x.clonedFrom.minDefined),v.isNumber(x.clonedFrom.maxDefined)&&(x.max=x.clonedFrom.maxDefined)}))}else if(m instanceof M.m){var b=m;b.min=void 0,b.max=void 0,v.isNumber(b.clonedFrom.minDefined)||(b.min=void 0),v.isNumber(b.clonedFrom.maxDefined)||(b.max=void 0),this._disposers.push(b.clonedFrom.events.on("extremeschanged",function(){v.isNumber(b.clonedFrom.minDefined)&&(b.min=b.clonedFrom.minDefined),v.isNumber(b.clonedFrom.maxDefined)&&(b.max=b.clonedFrom.maxDefined)}))}}else this.scrollbarChart.yAxes.each(function(P){P.clonedFrom==i.yAxis&&(l.yAxis=P)});l.rangeChangeDuration=0,l.interpolationDuration=0,l.defaultState.transitionDuration=0,l.showOnInit=!1,this._disposers.push(l.events.on("validated",this.zoomOutAxes,this,!1)),this._disposers.push(i.events.on("datavalidated",function(){l.data!=i.data&&(l.data=i.data)},void 0,!1)),l.defaultState.properties.visible=!0,a.series.push(l),this.updateByOrientation()}},r.prototype.updateByOrientation=function(){var e=this;this._scrollbarChart&&(I.each(this._scrollbarChart.xAxes.iterator(),function(t){var i=t.renderer;"vertical"==e.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=t.clonedFrom.renderer.minGridDistance)}),I.each(this._scrollbarChart.yAxes.iterator(),function(t){var i=t.renderer;"horizontal"==e.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=t.clonedFrom.renderer.minGridDistance)}))},r.prototype.handleSeriesRemoved=function(e){var t=e.oldValue,i=this.scrollbarChart;i.series.each(function(a){a&&a.clonedFrom==t&&i.series.removeValue(a)}),0==i.series.length&&(i.xAxes.clear(),i.yAxes.clear());try{t.events.off("validated",this.zoomOutAxes,this)}catch{}},Object.defineProperty(r.prototype,"scrollbarChart",{get:function(){return this._scrollbarChart},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){this._chart.get()!==e&&(this._chart.set(e,e.events.on("datavalidated",this.handleDataChanged,this,!1)),this.handleDataChanged(),this._scrollbarChart.dataProvider=e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"unselectedOverlay",{get:function(){return this._unselectedOverlay},enumerable:!0,configurable:!0}),r.prototype.handleDataChanged=function(){this.chart.data!=this.scrollbarChart.data?this.scrollbarChart.data=this.chart.data:this.scrollbarChart.invalidateRawData()},r.prototype.zoomOutAxes=function(){var e=this.scrollbarChart;I.each(e.xAxes.iterator(),function(t){t.zoom({start:0,end:1},!0,!0)}),I.each(e.yAxes.iterator(),function(t){t.zoom({start:0,end:1},!0,!0)})},r.prototype.updateThumb=function(e){if(void 0===e&&(e=!0),h.prototype.updateThumb.call(this,e),this._unselectedOverlay){var t=this.thumb,i=t.pixelX||0,a=t.pixelY||0,n=t.pixelWidth||0,s=t.pixelHeight||0,o="";"horizontal"==this.orientation?(o=C.rectToPath({x:-1,y:0,width:i,height:s}),o+=C.rectToPath({x:i+n,y:0,width:(this.pixelWidth||0)-i-n,height:s})):(o=C.rectToPath({x:0,y:0,width:n,height:a}),o+=C.rectToPath({x:0,y:a+s,width:n,height:(this.pixelHeight||0)-a-s})),this._unselectedOverlay.path=o}},r.prototype.processConfig=function(e){if(e&&v.hasValue(e.series)&&v.isArray(e.series))for(var t=0,i=e.series.length;t<i;t++){var a=e.series[t];
1if(v.hasValue(a)&&v.isString(a)){if(!this.map.hasKey(a))throw Error("XYChartScrollbar error: Series with id `"+a+"` does not exist.");e.series[t]=this.map.getKey(a)}}h.prototype.processConfig.call(this,e)},r}(ji.L);F.i.registeredClasses.XYChartScrollbar=he;var Te=k(96376),be=k(59625),Ne=function(h){function r(){var e=h.call(this)||this;return e.className="XYChartDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),r}(ye.c),re=function(h){function r(){var e=h.call(this)||this;e._axisRendererX=De.n,e._axisRendererY=ge.j,e._seriesPoints=[],e.className="XYChart",e.maskBullets=!0,e.arrangeTooltips=!0;var t=e.chartContainer;t.layout="vertical",e.padding(15,15,15,15);var i=t.createChild(K.W);i.shouldClone=!1,i.layout="vertical",i.width=(0,R.aQ)(100),i.zIndex=1,e.topAxesContainer=i;var a=t.createChild(K.W);a.shouldClone=!1,a.layout="horizontal",a.width=(0,R.aQ)(100),a.height=(0,R.aQ)(100),a.zIndex=0,e.yAxesAndPlotContainer=a;var n=t.createChild(K.W);n.shouldClone=!1,n.width=(0,R.aQ)(100),n.layout="vertical",n.zIndex=1,e.bottomAxesContainer=n;var s=a.createChild(K.W);s.shouldClone=!1,s.layout="horizontal",s.height=(0,R.aQ)(100),s.contentAlign="right",s.events.on("transformed",e.updateXAxesMargins,e,!1),s.zIndex=1,e.leftAxesContainer=s;var o=a.createChild(K.W);o.shouldClone=!1,o.height=(0,R.aQ)(100),o.width=(0,R.aQ)(100),o.background.fillOpacity=0,e.plotContainer=o,e.mouseWheelBehavior="none",e._cursorContainer=o;var l=a.createChild(K.W);l.shouldClone=!1,l.layout="horizontal",l.height=(0,R.aQ)(100),l.zIndex=1,l.events.on("transformed",e.updateXAxesMargins,e,!1),e.rightAxesContainer=l,e.seriesContainer.parent=o,e.bulletsContainer.parent=o;var d=o.createChild(Yi.x);d.shouldClone=!1,d.align="right",d.valign="top",d.zIndex=Number.MAX_SAFE_INTEGER,d.marginTop=5,d.marginRight=5,d.hide(0),e.zoomOutButton=d;var u=e.plotContainer.createChild(K.W);return u.shouldClone=!1,u.width=(0,R.aQ)(100),u.height=(0,R.aQ)(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(c){c.dataGrouped=!1,c._baseInterval={}})},e,!1),e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.applyInternalDefaults=function(){h.prototype.applyInternalDefaults.call(this),this.zoomOutButton.exportable=!1,v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("X/Y chart"))},r.prototype.draw=function(){h.prototype.draw.call(this),this.seriesContainer.toFront(),this.bulletsContainer.toFront(),this.maskBullets&&(this.bulletsContainer.mask=this._bulletMask),this.updateSeriesLegend()},r.prototype.updatePlotElements=function(){I.each(this.series.iterator(),function(e){e.invalidate()})},r.prototype.validateData=function(){0==this._parseDataFrom&&(I.each(this.xAxes.iterator(),function(e){e.dataChangeUpdate()}),I.each(this.yAxes.iterator(),function(e){e.dataChangeUpdate()}),I.each(this.series.iterator(),function(e){e.dataChangeUpdate()})),h.prototype.validateData.call(this)},r.prototype.updateXAxesMargins=function(){var e=this.leftAxesContainer.measuredWidth,t=this.rightAxesContainer.measuredWidth,i=this.bottomAxesContainer;(i.paddingLeft!=e||i.paddingRight!=t)&&(i.paddingLeft=e,i.paddingRight=t);var a=this.topAxesContainer;(a.paddingLeft!=e||a.paddingRight!=t)&&(a.paddingLeft=e,a.paddingRight=t)},r.prototype.reinit=function(){h.prototype.reinit.call(this),this.series.each(function(e){e.appeared=!1})},r.prototype.handleXAxisChange=function(e){this.updateXAxis(e.target)},r.prototype.handleYAxisChange=function(e){this.updateYAxis(e.target)},r.prototype.processXAxis=function(e){var t=e.newValue;t.chart=this,t.renderer||(t.renderer=new this._axisRendererX,t.renderer.observe(["opposite","inside","inversed","minGridDistance"],this.handleXAxisChange,this,!1)),t.axisLetter="X",t.events.on("startendchanged",this.handleXAxisRangeChange,this,!1),t.dataProvider=this,this.updateXAxis(t.renderer),this.processAxis(t)},r.prototype.processYAxis=function(e){var t=e.newValue;t.chart=this,t.renderer||(t.renderer=new this._axisRendererY,t.renderer.observe(["opposite","inside","inversed","minGridDistance"],this.handleYAxisChange,this,
1!1)),t.axisLetter="Y",t.events.on("startendchanged",this.handleYAxisRangeChange,this,!1),t.dataProvider=this,this.updateYAxis(t.renderer),this.processAxis(t)},r.prototype.handleXAxisRangeChange=function(){var e=this.getCommonAxisRange(this.xAxes);this.scrollbarX&&this.zoomAxes(this.xAxes,e,!0),this.toggleZoomOutButton(),this.updateScrollbar(this.scrollbarX,e)},r.prototype.toggleZoomOutButton=function(){if(this.zoomOutButton){var e=!1;I.eachContinue(this.xAxes.iterator(),function(t){if(t.toggleZoomOutButton)if(t.maxZoomCount>0){var i=t.maxZoomFactor/t.maxZoomCount;if(p.round(t.end-t.start,3)<1/i)return e=!0,!1}else if(p.round(t.start,3)>0||p.round(t.end,3)<1)return e=!0,!1;return!0}),I.eachContinue(this.yAxes.iterator(),function(t){if(t.toggleZoomOutButton){if(t.maxZoomCount>0){var i=t.maxZoomFactor/t.maxZoomCount;if(p.round(t.end-t.start,3)<1/i)return e=!0,!1}else if(p.round(t.start,3)>0||p.round(t.end,3)<1)return e=!0,!1;return!0}}),this.seriesAppeared||(e=!1),e?this.zoomOutButton.show():this.zoomOutButton.hide()}},r.prototype.seriesAppeared=function(){var e=!1;return I.each(this.series.iterator(),function(t){if(!t.appeared)return e=!1,!1}),e},r.prototype.handleYAxisRangeChange=function(){var e=this.getCommonAxisRange(this.yAxes);this.scrollbarY&&this.zoomAxes(this.yAxes,e,!0),this.toggleZoomOutButton(),this.updateScrollbar(this.scrollbarY,e)},r.prototype.updateScrollbar=function(e,t){e&&(e.skipRangeEvents(),e.start=t.start,e.end=t.end)},r.prototype.getCommonAxisRange=function(e){var t,i;return e.each(function(a){if(a.zoomable&&!(a instanceof M.m&&a.syncWithAxis)){var n=a.start,s=a.end;a.renderer.inversed&&(n=1-a.end,s=1-a.start),(!v.isNumber(t)||n<t)&&(t=n),(!v.isNumber(i)||s>i)&&(i=s)}}),{start:t,end:i}},r.prototype.updateXAxis=function(e){var t=e.axis;e.opposite?(t.parent=this.topAxesContainer,t.toFront()):(t.parent=this.bottomAxesContainer,t.toBack()),t.renderer&&t.renderer.processRenderer()},r.prototype.updateYAxis=function(e){var t=e.axis;e.opposite?(t.parent=this.rightAxesContainer,t.toBack()):(t.parent=this.leftAxesContainer,t.toFront()),t.renderer&&t.renderer.processRenderer()},r.prototype.processAxis=function(e){var t=this;e instanceof U&&this._dataUsers.moveValue(e);var i=e.renderer;i.gridContainer.parent=this.plotContainer,i.gridContainer.toBack(),i.breakContainer.parent=this.plotContainer,i.breakContainer.toFront(),i.breakContainer.zIndex=10,e.addDisposer(new Z.ku(function(){t.dataUsers.removeValue(e)})),i.bulletsContainer.parent=this.axisBulletsContainer,this._disposers.push(e.events.on("positionchanged",function(){var a=O.spritePointToSprite({x:0,y:0},e,t.axisBulletsContainer);e.renderer instanceof ge.j&&(i.bulletsContainer.y=a.y),e.renderer instanceof De.n&&(i.bulletsContainer.x=a.x)},void 0,!1)),this.plotContainer.events.on("maxsizechanged",function(){t.inited&&(e.invalidateDataItems(),t.updateSeriesMasks())},e,!1)},r.prototype.updateSeriesMasks=function(){O.isIE()&&this.series.each(function(e){var t=e.mainContainer.mask;e.mainContainer.mask=void 0,e.mainContainer.mask=t})},r.prototype.handleSeriesRemoved=function(e){var t=e.oldValue;t&&(t.xAxis&&(t.xAxis.series.removeValue(t),t.xAxis.invalidateProcessedData()),t.yAxis&&(t.yAxis.series.removeValue(t),t.yAxis.invalidateProcessedData()),this.series.each(function(i){i.resetExtremes()})),h.prototype.handleSeriesRemoved.call(this,e)},Object.defineProperty(r.prototype,"xAxes",{get:function(){return this._xAxes||(this._xAxes=new W.aV,this._xAxes.events.on("inserted",this.processXAxis,this,!1),this._xAxes.events.on("removed",this.handleAxisRemoval,this,!1),this._disposers.push(new W.zQ(this._xAxes,!1))),this._xAxes},enumerable:!0,configurable:!0}),r.prototype.handleAxisRemoval=function(e){var t=e.oldValue;this.dataUsers.removeValue(t),t.autoDispose&&t.dispose()},Object.defineProperty(r.prototype,"yAxes",{get:function(){return this._yAxes||(this._yAxes=new W.aV,this._yAxes.events.on("inserted",this.processYAxis,this,!1),this._yAxes.events.on("removed",this.handleAxisRemoval,this,!1),this._disposers.push(new W.zQ(this._yAxes,!1))),this._yAxes},enumerable:!0,configurable:!0}),r.prototype.handleSeriesAdded=function(e){try{h.prototype.handleSeriesAdded.call(this,e);var t=e.newValue;(0==this.xAxes.length||0==this.yAxes.length)&&(F.i.removeFromInvalidComponents(t),t.dataInvalid=!1),O.used(t.xAxis),O.used(t.yAxis),t.maskBullets=t.maskBullets,null==t.fill&&(this.patterns?(v.hasValue(t.stroke)||(t.stroke=this.colors.next()),t.fill=this.patterns.next(),v.hasValue(t.fillOpacity)&&(t.fill.backgroundOpacity=t.fillOpacity),t.stroke instanceof q.Il&&(t.fill.stroke=t.stroke,t.fill.fill=t.
1stroke)):t.fill=this.colors.next()),v.hasValue(t.stroke)||(t.stroke=t.fill)}catch(i){this.raiseCriticalError(i)}},Object.defineProperty(r.prototype,"cursor",{get:function(){return this._cursor},set:function(e){this._cursor!=e&&(this._cursor&&this.removeDispose(this._cursor),this._cursor=e,e&&(this._disposers.push(e),e.chart=this,e.shouldClone=!1,e.parent=this._cursorContainer,e.events.on("cursorpositionchanged",this.handleCursorPositionChange,this,!1),e.events.on("zoomstarted",this.handleCursorZoomStart,this,!1),e.events.on("zoomended",this.handleCursorZoomEnd,this,!1),e.events.on("panstarted",this.handleCursorPanStart,this,!1),e.events.on("panning",this.handleCursorPanning,this,!1),e.events.on("panended",this.handleCursorPanEnd,this,!1),e.events.on("behaviorcanceled",this.handleCursorCanceled,this,!1),e.events.on("hidden",this.handleHideCursor,this,!1),e.zIndex=Number.MAX_SAFE_INTEGER-1,this.tapToActivate&&this.setTapToActivate(this.tapToActivate)))},enumerable:!0,configurable:!0}),r.prototype.handleCursorPositionChange=function(){var e=this.cursor;if(e.visible&&!e.isHiding){var t=this.cursor.xPosition,i=this.cursor.yPosition;this.showSeriesTooltip({x:t,y:i});var a=[],n=e.snapToSeries;if(n&&!e.downPoint){n instanceof le&&(n=[n]);var s=[];z.each(n,function(l){if(!l.isHidden&&!l.isHiding){var d=l.xAxis,u=l.yAxis;d instanceof M.m&&!(d instanceof B)&&u instanceof M.m&&!(u instanceof B)?(l.dataItems.each(function(c){s.push(c)}),z.move(a,l.yAxis),z.move(a,l.xAxis)):(l.baseAxis==l.xAxis&&(z.move(a,l.yAxis),s.push(d.getSeriesDataItem(l,d.toAxisPosition(t),!0))),l.baseAxis==l.yAxis&&(z.move(a,l.xAxis),s.push(u.getSeriesDataItem(l,u.toAxisPosition(i),!0))))}});var o=this.getClosest(s,t,i);o&&(this.series.each(function(l){var d=o.component;l!=d&&(l.hideTooltip(),l.xAxis!=d.xAxis&&(l.xAxis.hideTooltip(),a.push(l.xAxis)),l.yAxis!=d.yAxis&&(l.yAxis.hideTooltip(),a.push(l.yAxis)))}),o.component.showTooltipAtDataItem(o),e.handleSnap(o.component))}this._seriesPoints=[],this._cursorXPosition!=t&&this.showAxisTooltip(this.xAxes,t,a),this._cursorYPosition!=i&&this.showAxisTooltip(this.yAxes,i,a),this.arrangeTooltips&&this.sortSeriesTooltips(this._seriesPoints),this.legend&&this.legend.afterDraw()}},r.prototype.getClosest=function(e,t,i){var n,a=1/0;return z.eachContinue(e,function(s){if(s){var o=s.component.xAxis,l=s.component.yAxis,d=o.positionToCoordinate(o.toGlobalPosition(o.toAxisPosition(t))),u=l.positionToCoordinate(l.toGlobalPosition(l.toAxisPosition(i))),c=s.component.xField,f=s.component.yField;if(o instanceof M.m&&!v.isNumber(s.getValue(c))||l instanceof M.m&&!v.isNumber(s.getValue(f)))return!0;var y=o.positionToCoordinate(o.toGlobalPosition(o.getPositionX(s,c,s.locations[c],"valueX"))),g=l.positionToCoordinate(l.toGlobalPosition(l.getPositionY(s,f,s.locations[f],"valueY"))),m=Math.sqrt(Math.pow(d-y,2)+Math.pow(u-g,2));return m<a&&(a=m,n=s),!0}}),n},r.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()},r.prototype.updateSeriesLegend=function(){I.each(this.series.iterator(),function(e){e.updateLegendValue()})},r.prototype.hideObjectTooltip=function(e){I.each(e.iterator(),function(t){t.cursorTooltipEnabled&&t.hideTooltip(0)})},r.prototype.showSeriesTooltip=function(e){var t=this;if(e){var i=[];this.series.each(function(a){if(!(a.xAxis instanceof B&&a.xAxis.snapTooltip||a.yAxis instanceof B&&a.yAxis.snapTooltip)){var n=a.showTooltipAtPosition(e.x,e.y);n&&(a.tooltip.setBounds(O.spriteRectToSvg({x:0,y:0,width:t.pixelWidth,height:t.pixelHeight},t)),i.push({series:a,point:n}))}}),this.arrangeTooltips&&this.sortSeriesTooltips(i)}else this.series.each(function(a){a.hideTooltip()})},r.prototype.sortSeriesTooltips=function(e){if(e.length>0){var t=this.cursor;if(t&&v.isNumber(t.maxTooltipDistance)){var a,n,i=O.spritePointToSvg({x:t.point.x,y:t.point.y},t),s=1/0;z.each(e,function(Y){var X=Y.series,ee=Y.point;if(ee){var ce={x:ee.x,y:ee.y},ie=Math.abs(p.getDistance(ce,i));ie<s&&(n=ce,s=ie,a=X)}});var o=[];a&&(z.each(e,function(Y){if(Math.abs(p.getDistance(Y.point,n))<=Math.abs(t.maxTooltipDistance))o.push({series:Y.series,point:Y.point});else{var X=Y.series.tooltipDataItem;X&&z.each(X.sprites,function(ee){ee.isHover=!1,ee.handleOutReal()}),Y.series.hideTooltip(0)}}),t.maxTooltipDistance<0&&(o.length>0&&z.each(o,function(Y){a!=Y.series&&Y.series.hideTooltip(0)}),o=[{series:a,point:n}])),e=o}var l=O.spritePointToSvg({x:-.5,y:-.5},this.plotContainer),d=O.spritePointToSvg({x:this.plotContainer.pixelWidth+.5,y:this.plotContainer.pixelHeight+.5},this.plotContainer),u=0,c=[];z.each(e,function(Y){var X=Y.point;X&&p.isInRectangle(X,{x:l.x,y:l.y,width:d.x-l.x,height:d.y-l.y})&&(c.push({point:X,series:Y.series}),u+=X.y)}),e=c;var f=this.series.getIndex(0),y=!1;f&&f.yAxis&&f.yAxis.renderer.inversed&&(y=!0),y?e.sort(function(Y,X){return Te.order(Y.point.y,X.point.y)}):(e.sort(function(Y,X){return Te.order(X.point.y,Y.point.y)}),e.reverse());var g=u/e.length,m=O.svgPointToDocument({x:0,y:0},this.svgContainer.SVGContainer).y;if(e.length>0){var x=l.y,b=d.y;O.spritePointToDocument({x:0,y:x},this);var P=!1;
1if(g>x+(b-x)/2)for(var S=b,A=e.length-1;A>=0;A--){var L=e[A].point.y;if((T=e[A].series.tooltip).setBounds({x:0,y:-m,width:this.pixelWidth,height:S+m}),T.invalid&&T.validate(),T.toBack(),(S=O.spritePointToSvg({x:0,y:T.label.pixelY-T.pixelY+L-T.pixelMarginTop},T).y)<-m){P=!0;break}}if(g<=x+(b-x)/2||P)for(var w=x,H=(A=0,e.length);A<H;A++){var T;L=e[A].point.y,(T=e[A].series.tooltip).setBounds({x:0,y:w,width:this.pixelWidth,height:b}),T.invalid&&T.validate(),T.toBack(),w=O.spritePointToSvg({x:0,y:T.label.pixelY+T.label.measuredHeight-T.pixelY+L+T.pixelMarginBottom},T).y}}}},r.prototype.showAxisTooltip=function(e,t,i){var a=this;I.each(e.iterator(),function(n){(!i||-1==i.indexOf(n))&&(a.dataItems.length>0||n.dataItems.length>0)&&n.showTooltipAtPosition(t)})},r.prototype.getUpdatedRange=function(e,t){if(e){var i,a;e.renderer.inversed?(p.invertRange(t),i=1-e.end,a=1-e.start):(i=e.start,a=e.end);var s=a-i;return{start:i+t.start*s,end:i+t.end*s}}},r.prototype.handleCursorZoomEnd=function(e){var t=this.cursor,i=t.behavior;if("zoomX"==i||"zoomXY"==i){var a=t.xRange;a&&this.xAxes.length>0&&((a=this.getUpdatedRange(this.xAxes.getIndex(0),a)).priority="start",this.zoomAxes(this.xAxes,a))}if("zoomY"==i||"zoomXY"==i){var n=t.yRange;n&&this.yAxes.length>0&&((n=this.getUpdatedRange(this.yAxes.getIndex(0),n)).priority="start",this.zoomAxes(this.yAxes,n))}this.handleHideCursor()},r.prototype.handleCursorPanStart=function(e){var t=this.xAxes.getIndex(0);t&&(this._panStartXRange={start:t.start,end:t.end},t.renderer.inversed&&(this._panStartXRange=p.invertRange(this._panStartXRange)));var i=this.yAxes.getIndex(0);i&&(this._panStartYRange={start:i.start,end:i.end},i.renderer.inversed&&(this._panStartYRange=p.invertRange(this._panStartYRange)))},r.prototype.handleCursorPanEnd=function(e){var a,t=this.cursor,i=t.behavior;if(this._panEndXRange&&("panX"==i||"panXY"==i)){var n=this._panStartXRange,s=0;(a=this._panEndXRange).start<0&&(s=a.start),n.end>1?a.end>n.end&&(s=a.end-n.end):a.end>1&&(s=a.end-1),this.zoomAxes(this.xAxes,{start:a.start-s,end:a.end-s},!1,t.snapOnPan),this._panEndXRange=void 0,this._panStartXRange=void 0}!this._panEndYRange||"panY"!=i&&"panXY"!=i||(s=0,(a=this._panEndYRange).start<0&&(s=a.start),a.end>1&&(s=a.end-1),this.zoomAxes(this.yAxes,{start:a.start-s,end:a.end-s},!1,t.snapOnPan),this._panEndYRange=void 0,this._panStartYRange=void 0)},r.prototype.handleCursorCanceled=function(){this._panEndXRange=void 0,this._panStartXRange=void 0},r.prototype.handleCursorPanning=function(e){var f,t=this.cursor,i=t.behavior,a=t.maxPanOut;if(this._panStartXRange&&("panX"==i||"panXY"==i)){var n=this._panStartXRange,s=t.xRange,o=this.getCommonAxisRange(this.xAxes),l=n.end-n.start,d=s.start*(o.end-o.start),u=Math.max(-a,d+n.start),c=Math.min(d+n.end,1+a);u<=0&&(c=u+l),c>=1&&(u=c-l),this._panEndXRange=f={start:u,end:c},this.zoomAxes(this.xAxes,f,!1,!1,t.maxPanOut)}!this._panStartYRange||"panY"!=i&&"panXY"!=i||(n=this._panStartYRange,s=t.yRange,o=this.getCommonAxisRange(this.yAxes),l=n.end-n.start,d=s.start*(o.end-o.start),u=Math.max(-a,d+n.start),c=Math.min(d+n.end,1+a),u<=0&&(c=u+l),c>=1&&(u=c-l),this._panEndYRange=f={start:u,end:c},this.zoomAxes(this.yAxes,f,!1,!1,t.maxPanOut));this.handleHideCursor()},r.prototype.handleYAxisSet=function(e){},r.prototype.handleCursorZoomStart=function(e){},Object.defineProperty(r.prototype,"scrollbarX",{get:function(){return this._scrollbarX},set:function(e){var t=this;this._scrollbarX&&this.removeDispose(this._scrollbarX),this._scrollbarX=e,e&&(this._disposers.push(e),e.parent=this.topAxesContainer,e.shouldClone=!1,e.startGrip.exportable=!1,e.endGrip.exportable=!1,e.toBack(),e.orientation="horizontal",e.events.on("rangechanged",this.handleXScrollbarChange,this,!1),this.events.on("datavalidated",function(){return e.updateThumb(!1)},this,!1),e.adapter.add("positionValue",function(i){var a=t.xAxes.getIndex(0);return a&&(i.value=a.getPositionLabel(a.renderer.inversed?1-i.position:i.position)),i}),e.adapter.add("positionValueDirection",function(i){var a=t.xAxes.getIndex(0);return a&&(i.flipped=a.renderer.inversed),i}))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"scrollbarY",{get:function(){return this._scrollbarY},set:function(e){var t=this;this._scrollbarY&&this.removeDispose(this._scrollbarY),this._scrollbarY=e,e&&(this._disposers.push(e),e.parent=this.rightAxesContainer,e.startGrip.exportable=!1,e.shouldClone=!1,e.endGrip.exportable=!1,e.toFront(),e.orientation="vertical",e.events.on("rangechanged",this.handleYScrollbarChange,this,
1!1),this.events.on("datavalidated",function(){return e.updateThumb(!1)},this,!1),e.adapter.add("positionValue",function(i){var a=t.yAxes.getIndex(0);return a&&(i.value=a.getPositionLabel(a.renderer.inversed?i.position:1-i.position)),i}),e.adapter.add("positionValueDirection",function(i){var a=t.yAxes.getIndex(0);return a&&(i.flipped=!a.renderer.inversed),i}))},enumerable:!0,configurable:!0}),r.prototype.handleXScrollbarChange=function(e){if(this.inited){var t=e.target,i=t.range;0==i.start&&(i.priority="start"),1==i.end&&(i.priority="end"),i=this.zoomAxes(this.xAxes,i),t.fixRange(i)}},r.prototype.handleYScrollbarChange=function(e){if(this.inited){var t=e.target,i=t.range;1==i.end&&(i.priority="end"),0==i.start&&(i.priority="start"),i=this.zoomAxes(this.yAxes,i),t.fixRange(i)}},r.prototype.zoomAxes=function(e,t,i,a,n,s){var o={start:0,end:1};this.showSeriesTooltip();var l=t;return this.dataInvalid||I.each(e.iterator(),function(d){var u=d.maxZoomFactor;if(v.isNumber(d.minZoomCount)&&(u/=d.minZoomCount),!(s&&1/(t.end-t.start)>=u)&&d.zoomable){if(t=d.renderer.inversed?p.invertRange(l):l,d.hideTooltip(0),a)if(d instanceof U){var c=d.getCellEndPosition(0)-d.getCellStartPosition(0);t.start=d.roundPosition(t.start+c/2-d.startLocation*c,d.startLocation),t.end=d.roundPosition(t.end-c/2+(1-d.endLocation)*c,d.endLocation)}else{var f=1e-4;t.start=d.roundPosition(t.start+f,0,d.startLocation),t.end=d.roundPosition(t.end+f,0,d.endLocation)}var y=d.zoom(t,i,i,n);d.renderer.inversed&&(y=p.invertRange(y)),o=y}}),o},Object.defineProperty(r.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(e){this.setPropertyValue("maskBullets",e,!0)&&this.bulletsContainer&&(this.bulletsContainer.mask=e?this._bulletMask:void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"arrangeTooltips",{get:function(){return this.getPropertyValue("arrangeTooltips")},set:function(e){this.setPropertyValue("arrangeTooltips",e,!0)},enumerable:!0,configurable:!0}),r.prototype.handleWheel=function(e){var t=this.plotContainer,i=O.documentPointToSvg(e.point,this.htmlContainer,this.svgContainer.cssScale),a=O.svgPointToSprite(i,t);this.handleWheelReal(e.shift.y,this.mouseWheelBehavior,a)},r.prototype.handleHorizontalWheel=function(e){var t=this.plotContainer,i=O.documentPointToSvg(e.point,this.htmlContainer,this.svgContainer.cssScale),a=O.svgPointToSprite(i,t);this.handleWheelReal(e.shift.x,this.horizontalMouseWheelBehavior,a)},r.prototype.handleWheelReal=function(e,t,i){if(0!=e){var a=this.plotContainer,n=this.getCommonAxisRange(this.xAxes),s=this.getCommonAxisRange(this.yAxes),o=.1;if("panX"==t||"panXY"==t){var d=this.xAxes.getIndex(0),u=!1,c=o;d instanceof U&&(c=.5/((n.end-n.start)*d.dataItems.length),u=!0),o=Math.max(.2,c);var f=n.end-n.start,y=Math.max(-0,n.start+o*e/100*(n.end-n.start)),g=Math.min(n.end+o*e/100*(n.end-n.start),1);y<=0&&(g=y+f),g>=1&&(y=g-f),this.zoomAxes(this.xAxes,{start:y,end:g},void 0,u)}if("panY"==t||"panXY"==t){var m=this.yAxes.getIndex(0);c=o,u=!1,m instanceof U&&(c=.5/((n.end-n.start)*m.dataItems.length),u=!0),o=Math.max(.2,c),e*=-1;var x=s.end-s.start,b=Math.max(-0,s.start+o*e/100*(s.end-s.start)),P=Math.min(s.end+o*e/100*(s.end-s.start),1);b<=0&&(P=b+x),P>=1&&(b=P-x),this.zoomAxes(this.yAxes,{start:b,end:P},void 0,u)}if("zoomX"==t||"zoomXY"==t){var S=i.x/a.maxWidth,A=this.xAxes.getIndex(0).toAxisPosition(S);y=Math.max(-0,n.start-o*(n.end-n.start)*e/100*S),y=Math.min(y,A),g=Math.min(n.end+o*(n.end-n.start)*e/100*(1-S),1),g=Math.max(g,A),this.zoomAxes(this.xAxes,{start:y,end:g},void 0)}if("zoomY"==t||"zoomXY"==t){var V=i.y/a.maxHeight,T=this.yAxes.getIndex(0).toAxisPosition(V);b=Math.max(-0,s.start-o*(s.end-s.start)*e/100*(1-V)),b=Math.min(b,T),P=Math.min(s.end+o*e/100*V*(s.end-s.start),1),P=Math.max(P,T),this.zoomAxes(this.yAxes,{start:b,end:P},void 0)}}},Object.defineProperty(r.prototype,"mouseWheelBehavior",{get:function(){return this.getPropertyValue("mouseWheelBehavior")},set:function(e){this.setPropertyValue("mouseWheelBehavior",e)&&("none"!=e?(this._mouseWheelDisposer=this.plotContainer.events.on("wheel",this.handleWheel,this,
1!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(r.prototype,"horizontalMouseWheelBehavior",{get:function(){return this.getPropertyValue("horizontalMouseWheelBehavior")},set:function(e){this.setPropertyValue("horizontalMouseWheelBehavior",e)&&("none"!=e?(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}),r.prototype.dataSourceDateFields=function(e){var t=this;return e=h.prototype.dataSourceDateFields.call(this,e),I.each(this.series.iterator(),function(i){e=t.populateDataSourceFields(e,i.dataFields,["dateX","dateY","openDateX","openDateY"])}),e},r.prototype.dataSourceNumberFields=function(e){var t=this;return e=h.prototype.dataSourceDateFields.call(this,e),I.each(this.series.iterator(),function(i){e=t.populateDataSourceFields(e,i.dataFields,["valueX","valueY","openValueX","openValueY"])}),e},r.prototype.processConfig=function(e){if(e){var t=[],i=[];if(v.hasValue(e.xAxes)&&v.isArray(e.xAxes))for(var a=0,n=e.xAxes.length;a<n;a++){if(!e.xAxes[a].type)throw Error("[XYChart error] No type set for xAxes["+a+"].");if(v.hasValue(e.xAxes[a].axisRanges)){for(var s=0,o=e.xAxes[a].axisRanges.length;s<o;s++)v.hasValue((l=e.xAxes[a].axisRanges[s]).date)&&v.isString(l.date)&&(l.date=this.dateFormatter.parse(l.date)),v.hasValue(l.endDate)&&v.isString(l.endDate)&&(l.endDate=this.dateFormatter.parse(l.endDate));t.push({axisRanges:e.xAxes[a].axisRanges,index:a}),delete e.xAxes[a].axisRanges}}if(v.hasValue(e.yAxes)&&v.isArray(e.yAxes))for(a=0,n=e.yAxes.length;a<n;a++){if(!e.yAxes[a].type)throw Error("[XYChart error] No type set for yAxes["+a+"].");if(v.hasValue(e.yAxes[a].axisRanges)){s=0;for(var d=e.yAxes[a].axisRanges.length;s<d;s++){var l;v.hasValue((l=e.yAxes[a].axisRanges[s]).date)&&v.isString(l.date)&&(l.date=this.dateFormatter.parse(l.date)),v.hasValue(l.endDate)&&v.isString(l.endDate)&&(l.endDate=this.dateFormatter.parse(l.endDate))}i.push({axisRanges:e.yAxes[a].axisRanges,index:a}),delete e.yAxes[a].axisRanges}}if(v.hasValue(e.series)&&v.isArray(e.series))for(a=0,n=e.series.length;a<n;a++)e.series[a].type=e.series[a].type||"LineSeries";if(v.hasValue(e.cursor)&&!v.hasValue(e.cursor.type)&&(e.cursor.type="XYCursor"),v.hasValue(e.scrollbarX)&&!v.hasValue(e.scrollbarX.type)&&(e.scrollbarX.type="Scrollbar"),v.hasValue(e.scrollbarY)&&!v.hasValue(e.scrollbarY.type)&&(e.scrollbarY.type="Scrollbar"),h.prototype.processConfig.call(this,e),i.length)for(a=0,n=i.length;a<n;a++)this.yAxes.getIndex(i[a].index).config={axisRanges:i[a].axisRanges};if(t.length)for(a=0,n=t.length;a<n;a++)this.xAxes.getIndex(t[a].index).config={axisRanges:t[a].axisRanges}}},r.prototype.configOrder=function(e,t){return e==t?0:"scrollbarX"==e?1:"scrollbarX"==t?-1:"scrollbarY"==e?1:"scrollbarY"==t?-1:"cursor"==e?1:"cursor"==t?-1:"series"==e?1:"series"==t?-1:h.prototype.configOrder.call(this,e,t)},r.prototype.createSeries=function(){return new le},Object.defineProperty(r.prototype,"zoomOutButton",{get:function(){return this._zoomOutButton},set:function(e){var t=this;this._zoomOutButton=e,e&&e.events.on("hit",function(){t.zoomAxes(t.xAxes,{start:0,end:1}),t.zoomAxes(t.yAxes,{start:0,end:1})},void 0,!1)},enumerable:!0,configurable:!0}),r.prototype.copyFrom=function(e){var t=this;e.xAxes.each(function(i){var a=t.xAxes.push(i.clone());a.chart=t,a.renderer.chart=t}),e.yAxes.each(function(i){var a=t.yAxes.push(i.clone());a.renderer.chart=t,a.chart=t}),h.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())},r.prototype.disposeData=function(){h.prototype.disposeData.call(this);var e=this.scrollbarX;
1e&&e instanceof he&&e.scrollbarChart.disposeData();var t=this.scrollbarY;t&&t instanceof he&&t.scrollbarChart.disposeData(),this.xAxes.each(function(i){i instanceof U&&i.disposeData()}),this.yAxes.each(function(i){i instanceof U&&i.disposeData()})},r.prototype.addData=function(e,t){this.scrollbarX instanceof he&&this.addScrollbarData(this.scrollbarX,t),this.scrollbarY instanceof he&&this.addScrollbarData(this.scrollbarY,t),h.prototype.addData.call(this,e,t)},r.prototype.addScrollbarData=function(e,t){var i=e.scrollbarChart;i._parseDataFrom=i.data.length,i.invalidateData()},r.prototype.removeScrollbarData=function(e,t){var i=e.scrollbarChart;if(v.isNumber(t)){for(;t>0;){var a=this.dataItems.getIndex(0);a&&i.dataItems.remove(a),i.dataUsers.each(function(n){var s=n.dataItems.getIndex(0);s&&n.dataItems.remove(s)}),i._parseDataFrom--,t--}i.invalidateData()}},r.prototype.removeData=function(e){this.scrollbarX instanceof he&&this.removeScrollbarData(this.scrollbarX,e),this.scrollbarY instanceof he&&this.removeScrollbarData(this.scrollbarY,e),h.prototype.removeData.call(this,e)},r.prototype.setTapToActivate=function(e){h.prototype.setTapToActivate.call(this,e),this.cursor&&(this.cursor.interactions.isTouchProtected=e,this.plotContainer.interactions.isTouchProtected=e)},r.prototype.handleTapToActivate=function(){h.prototype.handleTapToActivate.call(this),this.cursor&&(this.cursor.interactions.isTouchProtected=!1,this.plotContainer.interactions.isTouchProtected=!1)},r.prototype.handleTapToActivateDeactivation=function(){h.prototype.handleTapToActivateDeactivation.call(this),this.cursor&&(this.cursor.interactions.isTouchProtected=!0,this.plotContainer.interactions.isTouchProtected=!0)},r}(ye.j);
1F.i.registeredClasses.XYChart=re,be.IH.push({relevant:be.Xf.maybeXS,state:function(h,r){if(h instanceof re&&h.scrollbarX){var e=h.states.create(r);return h.scrollbarX.states.create(r).properties.disabled=!0,e}return null}}),be.IH.push({relevant:be.Xf.maybeXS,state:function(h,r){if(h instanceof re&&h.scrollbarY){var e=h.states.create(r);return h.scrollbarY.states.create(r).properties.disabled=!0,e}return null}});var ae=k(50364),we=function(h){function r(){var e=h.call(this)||this;e.className="LineSeriesSegment",e.isMeasured=!1,e.interactionsEnabled=!1,e.layout="none";var t=e.createChild(_.jy);e.fillSprite=t,t.shouldClone=!1,t.setElement(e.paper.add("path")),t.isMeasured=!1,e._disposers.push(t);var i=e.createChild(_.jy);return e.strokeSprite=i,i.shouldClone=!1,i.fill=(0,q.$_)(),i.setElement(e.paper.add("path")),i.isMeasured=!1,e._disposers.push(i),e}return(0,D.ZT)(r,h),r.prototype.drawSegment=function(e,t,i,a){if(!this.disabled)if(e.length>0&&t.length>0&&v.isNumber(e[0].x)&&v.isNumber(e[0].y)){var n=C.moveTo({x:e[0].x-.2,y:e[0].y-.2})+C.moveTo(e[0]),s=this.series;"bezier"==s.smoothing?n+=new ae.Jb(i,a).smooth(e):"monotoneX"==s.smoothing?n+=new ae.Yi({closed:!1}
1).smooth(e):"monotoneY"==s.smoothing&&(n+=new ae.br({closed:!1}).smooth(e)),0==this.strokeOpacity||0==this.strokeSprite.strokeOpacity||(this.strokeSprite.path=n),(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&v.isNumber(t[0].x)&&v.isNumber(t[0].y)&&(n+=C.lineTo(t[0]),"bezier"==s.smoothing?n+=new ae.Jb(i,a).smooth(t):"monotoneX"==s.smoothing?n+=new ae.Yi({closed:!1}).smooth(t):"monotoneY"==s.smoothing&&(n+=new ae.br({closed:!1}).smooth(t)),n+=C.lineTo(e[0]),n+=C.closePath(),this.fillSprite.path=n)}else this.fillSprite.path="",this.strokeSprite.path=""},r.prototype.copyFrom=function(e){h.prototype.copyFrom.call(this,e);var t=this.strokeSprite;E.copyProperties(e,t.properties,_.hh),t.events.copyFrom(e.strokeSprite.events),t.fillOpacity=0;var i=this.fillSprite;E.copyProperties(e,i.properties,_.hh),i.events.copyFrom(e.fillSprite.events),i.strokeOpacity=0},r}(K.W);F.i.registeredClasses.LineSeriesSegment=we;var $t=function(h){function r(){var e=h.call(this)||this;return e.className="DurationAxisDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),r}(M.J),Le=function(h){function r(){var e=h.call(this)||this;return e._baseUnit="second",e.className="DurationAxis",e.setPropertyValue("maxZoomFactor",1e6),e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.formatLabel=function(e,t){return this.durationFormatter.format(e,t||this.axisDurationFormat)},r.prototype.adjustMinMax=function(e,t,i,a,n){var s,o,l,d=this.baseUnit;if(this.setPropertyValue("maxPrecision",0),"millisecond"==d||"second"==d||"minute"==d||"hour"==d){a<=1&&(a=1),a=Math.round(a);var u=e,c=t;0===i&&(i=Math.abs(t));var f,y=[60,30,20,15,10,2,1],g=1;"hour"==d&&(y=[24,12,6,4,2,1]);try{for(var m=(0,D.XA)(y),x=m.next();!x.done;x=m.next()){var b=x.value;if(i/b>a){g=b;break}}}catch(L){s={error:L}}finally{try{x&&!x.done&&(o=m.return)&&o.call(m)}finally{if(s)throw s.error}}var P=Math.ceil((t-e)/g/a),S=Math.log(Math.abs(P))*Math.LOG10E,A=Math.pow(10,Math.floor(S))/10,T=p.closest(y,P/A);this.durationFormatter.getValueUnit(f=g*(P=T*A),this.baseUnit),e=Math.floor(e/f)*f,t=Math.ceil(t/f)*f,n&&((e-=f)<0&&u>=0&&(e=0),(t+=f)>0&&c<=0&&(t=0)),l={min:e,max:t,step:f}}else l=h.prototype.adjustMinMax.call(this,e,t,i,a,n);return this.axisDurationFormat=this.durationFormatter.getFormat(l.step,l.max,this.baseUnit),l},Object.defineProperty(r.prototype,"tooltipDurationFormat",{get:function(){return this._tooltipDurationFormat},set:function(e){this._tooltipDurationFormat=e},enumerable:!0,configurable:!0}),r.prototype.getTooltipText=function(e){var t=p.round(this.positionToValue(e),this._stepDecimalPlaces),i=this.formatLabel(t,this.tooltipDurationFormat);return this._adapterO?this._adapterO.apply("getTooltipText",i):i},Object.defineProperty(r.prototype,"baseUnit",{get:function(){return this._baseUnit},set:function(e){this._baseUnit!=e&&(this._baseUnit=e,this.durationFormatter.baseUnit=e,this.invalidate())},enumerable:!0,configurable:!0}),r.prototype.copyFrom=function(e){h.prototype.copyFrom.call(this,e),this.baseUnit=e.baseUnit},r}(M.m);F.i.registeredClasses.DurationAxis=Le,F.i.registeredClasses.DurationAxisDataItem=$t;var ne=k(93993),ht=k(81646),Wi=k(85044),pe=k(82443),Se=function(h){function r(){var e=h.call(this)||this;return e.className="LineSeriesDataItem",e}return(0,D.ZT)(r,h),r}(Ae),Xe=function(h){function r(){var e=h.call(this)||this;return e.minDistance=.5,e.segments=new W.o(e.createSegment()),e.segments.template.applyOnClones=!0,e._disposers.push(new W.zQ(e.segments)),e._disposers.push(e.segments.template),e._segmentsIterator=new I.ListIterator(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(K.W),e.segmentsContainer.isMeasured=!1,e.bulletsContainer.toFront(),e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.applyInternalDefaults=function(){h.prototype.applyInternalDefaults.call(this),v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Line Series"))},r.prototype.createSegment=function(){return new we},r.prototype.createDataItem=function(){return new Se},r.prototype.setInitialWorkingValues=function(e){var t=this._yAxis.get(),i=this._xAxis.get();if(this.appeared&&this.visible){var a=this.dataItems.getIndex(e.index-1);if(e.component=this,this.baseAxis==i&&t instanceof M.m){var n=t.minZoomed;
1if(a&&(n=a.values.valueY.workingValue),e.setWorkingValue("valueY",n,0),e.setWorkingValue("valueY",e.values.valueY.value),i instanceof B)e.setWorkingLocation("dateX",e.locations.dateX-1,0),e.setWorkingLocation("dateX",e.locations.dateX);else if(i instanceof Le&&a){var s=e.valueX;e.setWorkingValue("valueX",a.valueX,0),e.setWorkingValue("valueX",s)}}if(this.baseAxis==t&&i instanceof M.m){var o=i.minZoomed;a&&(o=a.values.valueX.workingValue),e.setWorkingValue("valueX",o,0),e.setWorkingValue("valueX",e.values.valueX.value),t instanceof B?(e.setWorkingLocation("dateY",e.locations.dateX-1,0),e.setWorkingLocation("dateY",e.locations.dateY)):t instanceof Le&&a&&(s=e.valueY,e.setWorkingValue("valueY",a.valueY,0),e.setWorkingValue("valueY",s))}}else this.baseAxis==i&&t instanceof M.m&&(i instanceof B&&e.setWorkingLocation("dateX",e.locations.dateX),i instanceof U&&e.setWorkingLocation("categoryX",e.locations.categoryX)),this.baseAxis==t&&i instanceof M.m&&(t instanceof B&&e.setWorkingLocation("dateY",e.locations.dateY),t instanceof U&&e.setWorkingLocation("categoryY",e.locations.categoryY))},r.prototype.updateLegendValue=function(e,t){h.prototype.updateLegendValue.call(this,e,t),e&&e.segment&&(this.tooltipColorSource=e.segment)},r.prototype.validate=function(){var e=this;h.prototype.validate.call(this),this.xAxis&&this.yAxis&&(this._segmentsIterator.reset(),this.openSegmentWrapper(this._adjustedStartIndex),I.each(this.axisRanges.iterator(),function(t){e.openSegmentWrapper(e._adjustedStartIndex,t)}),I.each(this._segmentsIterator.iterator(),function(t){t.__disabled=!0}))},r.prototype.sliceData=function(){for(var e=this.startIndex,t=this.endIndex,i=this.startIndex-1;i>=0;i--)if((a=this.dataItems.getIndex(i))&&a.hasValue(this._xValueFields)&&a.hasValue(this._yValueFields)){e=i;break}this._adjustedStartIndex=this.findAdjustedIndex(e,["stroke","strokeWidth","strokeDasharray","strokeOpacity","fill","fillOpacity","opacity"]),i=this.endIndex;for(var n=this.dataItems.length;i<n;i++){var a;if((a=this.dataItems.getIndex(i))&&a.hasValue(this._xValueFields)&&a.hasValue(this._yValueFields)){t=i+1;break}}this._workingStartIndex=e,this._workingEndIndex=t},r.prototype.findAdjustedIndex=function(e,t){var i=this,a=this.propertyFields,n=e;return z.each(t,function(s){if(v.hasValue(a[s]))for(var o=n;o>=0;o--){var l=i.dataItems.getIndex(o);if(l&&v.hasValue(l.properties[s])){e>o&&(e=o);break}}}),e},r.prototype.openSegmentWrapper=function(e,t){var i={index:e,axisRange:t};do{i=this.openSegment(i.index,i.axisRange)}while(i)},r.prototype.getSegment=function(){var e=this._segmentsIterator.getFirst();return e.series=this,e.isDisposed()?(this.segments.removeValue(e),this.getSegment()):e},r.prototype.openSegment=function(e,t){var i=!1,a=[];e=Math.min(e,this.dataItems.length);var n=Math.min(this._workingEndIndex,this.dataItems.length);this._workingEndIndex=Math.min(this._workingEndIndex,this.dataItems.length);var s,o=!1,l=this.getSegment();l.strokeDasharray=void 0,l.__disabled=!1,t?(l.parent=t.contents,E.copyProperties(t.contents,l,_.hh)):(E.copyProperties(this,l,_.hh),l.filters.clear(),l.parent=this.segmentsContainer),this.group.node.removeAttribute("fill");for(var d=this.connect,u=!1,c=e;c<n;c++){var f=this.dataItems.getIndex(c);if(f.segment=l,f.hasProperties&&(c==e?this.updateSegmentProperties(f.properties,l):o=this.updateSegmentProperties(f.properties,l,!0)),f.hasValue(this._xValueFields)&&f.hasValue(this._yValueFields))this.addPoints(a,f,this.xField,this.yField),u=!0;else{if(c==e)continue;if(!d&&u){s=c;break}}if(s=c,this.baseAxis instanceof B){var y=this.dataItems.getIndex(c+1);if(y&&this.baseAxis.makeGap(y,f)){i=!0;break}}if(o)break}return this.closeSegment(l,a,e,s,t,i)},r.prototype.addPoints=function(e,t,i,a,n){var s=this.getPoint(t,i,a,t.workingLocations[i],t.workingLocations[a]);n||(t.point=s),e.push(s)},r.prototype.closeSegment=function(e,t,i,a,n,s){var o=[];if(this.dataFields[this._xOpenField]||this.dataFields[this._yOpenField]||this.stacked)for(var l=a;l>=i;l--){var d=this.dataItems.getIndex(l);d.hasValue(this._xValueFields)&&d.hasValue(this._yValueFields)&&this.addPoints(o,d,this.xOpenField,this.yOpenField,!0)}else{var c=t.length,f=this.xAxis,y=this.yAxis;c>0&&(this.baseAxis==f?(o.push({x:t[c-1].x,y:y.basePoint.y}),o.push({x:t[0].x,y:y.basePoint.y})):(o.push({x:f.basePoint.x,y:t[c-1].y}),o.push({x:f.basePoint.x,y:t[0].y})))}return this.drawSegment(e,t,o),s&&a++,a<this._workingEndIndex-1?{index:a,axisRange:n}:null},r.prototype.drawSegment=function(e,t,i){e.drawSegment(t,i,this.tensionX,this.tensionY)},r.prototype.updateSegmentProperties=function(e,t,i){var a=!1;return E.each(e,function(n,s){if(v.hasValue(s)){var o=t[n],l=void 0;o&&(l=o.toString?o.toString():o);var d=void 0;s&&(d=s.toString?s.toString():s),o==s||null!=l&&null!=d&&l==d||(i||(t[n]=s),a=!0)}}),a},Object.defineProperty(r.prototype,"connect",{get:function(){return this.getPropertyValue("connect")}
1,set:function(e){this.setPropertyValue("connect",e)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tensionX",{get:function(){return this.getPropertyValue("tensionX")},set:function(e){this.setPropertyValue("tensionX",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tensionY",{get:function(){return this.getPropertyValue("tensionY")},set:function(e){this.setPropertyValue("tensionY",e,!0)},enumerable:!0,configurable:!0}),r.prototype.createLegendMarker=function(e){var t=this,i=e.pixelWidth,a=e.pixelHeight;e.disposeChildren();var n=e.createChild(ne.x);if(n.shouldClone=!1,E.copyProperties(this,n,_.hh),n.x2=i,n.y=a/2,n.y2=1e-5,n.visible=!0,this.fillOpacity>0){var s=e.createChild(Wi.A);E.copyProperties(this,s,_.hh),s.width=i,s.height=a,s.y=0,s.strokeOpacity=0,s.visible=!0,n.y=0}var o=e.dataItem;o.color=this.stroke,o.colorOrig=this.fill,I.eachContinue(this.bullets.iterator(),function(l){if(l instanceof pe.g&&!l.copyToLegendMarker)return!1;var d=!1;if(l instanceof K.W&&I.each(l.children.iterator(),function(c){if(c instanceof ht._)return d=!0,!0}),!d){var u=l.clone();return u.parent=e,u.isMeasured=!0,u.tooltipText=void 0,u.x=i/2,u.y=t.fillOpacity>0?0:a/2,u.visible=!0,v.hasValue(u.fill)||(u.fill=t.fill),v.hasValue(u.stroke)||(u.stroke=t.stroke),!1}})},r.prototype.disposeData=function(){h.prototype.disposeData.call(this),this.segments.clear()},Object.defineProperty(r.prototype,"autoGapCount",{get:function(){return this.getPropertyValue("autoGapCount")},set:function(e){this.setPropertyValue("autoGapCount",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"smoothing",{get:function(){return this.getPropertyValue("smoothing")},set:function(e){this.setPropertyValue("smoothing",e,!0)},enumerable:!0,configurable:!0}),r}(le);F.i.registeredClasses.LineSeries=Xe,F.i.registeredClasses.LineSeriesDataItem=Se;var ut=function(h){function r(){var e=h.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(0,D.ZT)(r,h),r}(Se),dt=function(h){function r(){var e=h.call(this)||this;return e.className="RadarSeries",e.connectEnds=!0,e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),h.prototype.validate.call(this)},r.prototype.createDataItem=function(){return new ut},r.prototype.getPoint=function(e,t,i,a,n,s,o){s||(s="valueX"),o||(o="valueY");var l=this.yAxis.getX(e,i,n,o),d=this.yAxis.getY(e,i,n,o),u=p.getDistance({x:l,y:d});0==u&&(u=1e-5);var c=this.xAxis.getAngle(e,t,a,s);if(!(c<this.chart.startAngle||c>this.chart.endAngle))return{x:u*p.cos(c),y:u*p.sin(c)}},r.prototype.addPoints=function(e,t,i,a,n){var s=this.getPoint(t,i,a,t.locations[i],t.locations[a]);s&&e.push(s)},r.prototype.getMaskPath=function(){var e=this.yAxis.renderer;return C.arc(e.startAngle,e.endAngle-e.startAngle,e.pixelRadius,e.pixelInnerRadius)},r.prototype.drawSegment=function(e,t,i){var n=this.yAxis.renderer;this.connectEnds&&360==Math.abs(n.endAngle-n.startAngle)&&(this.dataFields[this._xOpenField]||this.dataFields[this._yOpenField]||this.stacked)&&(t.push(t[0]),i.length>0&&i.unshift(i[i.length-1])),h.prototype.drawSegment.call(this,e,t,i)},Object.defineProperty(r.prototype,"connectEnds",{get:function(){return this.getPropertyValue("connectEnds")},set:function(e){this.setPropertyValue("connectEnds",e,!0)},enumerable:!0,configurable:!0}),r.prototype.positionBulletReal=function(e,t,i){var a=this.xAxis,n=this.yAxis;(t<a.start||t>a.end||i<n.start||i>n.end)&&(e.visible=!1),e.moveTo(this.xAxis.renderer.positionToPoint(t,i))},r.prototype.setXAxis=function(e){h.prototype.setXAxis.call(this,e),this.updateRendererRefs()},r.prototype.setYAxis=function(e){h.prototype.setYAxis.call(this,e),this.updateRendererRefs()},r.prototype.updateRendererRefs=function(){this.xAxis.renderer.axisRendererY=this.yAxis.renderer},r}(Xe);F.i.registeredClasses.RadarSeries=dt,F.i.registeredClasses.RadarSeriesDataItem=ut;var ct=k(799),qt=k(21287),ei=k(89653),pt=function(h){function r(e){var t=h.call(this,e)||this;return t.className="AxisFillCircular",t.element=t.paper.add("path"),t.radiu
1s=(0,R.aQ)(100),t.applyTheme(),t}return(0,D.ZT)(r,h),r.prototype.draw=function(){if(h.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,v.hasValue(this.innerRadius)?this.innerRadius:e.innerRadius,this.cornerRadius),this.path=this.fillPath}},Object.defineProperty(r.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(e){this.setPropertyValue("cornerRadius",e,!0)},enumerable:!0,configurable:!0}),r}(ei.u);F.i.registeredClasses.AxisFillCircular=pt;var ti=k(6389),ft=function(h){function r(){var e=h.call(this)||this;return e.className="GridCircular",e.pixelPerfect=!1,e.applyTheme(),e}return(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),r}(ti.r);F.i.registeredClasses.GridCircular=ft;var ii=k(86180),Ve=function(h){function r(){var e=h.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(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"relativeRotation",{get:function(){return this.getPropertyValue("relativeRotation")},set:function(e){if(this.setPropertyValue("relativeRotation",e,!0),!v.hasValue(e)){this.rotation=void 0;var t=this.dataItem;t&&t.component&&t.component.invalidateDataItems()}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"bent",{get:function(){return this.getPropertyValue("bent")},set:function(e){this.setPropertyValue("bent",e,!0),this.setPropertyValue("wrap",!1),this.setPropertyValue("horizontalCenter","none"),this.setPropertyValue("verticalCenter","none"),e?(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}),r.prototype.pixelRadius=function(e){var t=1;return this.inside&&(t=-1),O.relativeToValue(this.radius,e)*t},r.prototype.pixelRadiusY=function(e,t){var i=1;this.inside&&(i=-1);var a=this.radius;return v.isNumber(a)?O.relativeToValue(a*=t/e,e)*i:O.relativeToValue(a,t)*i},r.prototype.fixPosition=function(e,t,i,a,n){v.isNumber(i)||(i=t),v.isNumber(a)||(a=0),v.isNumber(n)||(n=0);var s={x:t*p.cos(e),y:i*p.sin(e)};this.invalid&&this.validate();var o=!1,l=this.radius;(l instanceof R.gG&&l.value<0||l<0)&&(o=!0);var d=this.relativeRotation,u=this.pixelRadius(t);if(this.bent){var c={x:(t+u)*p.cos(e+180),y:(i+u*i/t)*p.sin(e+180)};return this.path=C.moveTo(c)+C.arcTo(e+180,360,t+u,i+u*i/t),void(this.textPathElement&&this.textPathElement.attr({startOffset:100*this.locationOnPath+"%"}))}if(v.isNumber(d)){this.horizontalCenter="none",this.verticalCenter="none",e=p.fitAngleToRange(e,-180,180);var f=this.bbox.width,y=this.bbox.height,g=this.pixelPaddingBottom,m=this.pixelPaddingTop,x=this.pixelPaddingLeft,b=this.pixelPaddingRight;e>90||e<-90?-90==d&&(d=90,f=0):(-90==d&&(y=-y),90==d&&(d=-90,f=-x-b,y=-y-m-g)),this.rotation=d+e+90;var P=p.sin(d)/2,S=p.cos(d)/2,A=this.rotation;this.dx=y*P*p.sin(A)-f*S*p.cos(A),this.dy=-y*P*p.cos(A)-f*S*p.sin(A),this.inside?e>90||e<-90?u-=(g+m)*p.cos(d)+(x+b)*p.sin(d):u+=(g+this.bbox.height+m)*p.cos(d)+(x+b+this.bbox.width)*p.sin(d):u+=(y+g+m)*p.cos(d)+(f+x+b)*p.sin(d),s.x+=p.cos(e)*u,s.y+=p.sin(e)*u*i/t}else this.horizontalCenter="middle",this.verticalCenter="middle",o?(this.dx=0,this.dy=0,s.x=(t+u)*p.cos(e),s.y=(i+u*i/t)*p.sin(e)):(this.dy=this._measuredHeight/2*p.sin(e),this.dx=this._measuredWidth/2*p.cos(e),s.x+=p.cos(e)*u,s.y+=p.sin(e)*u*i/t);s.x+=a,s.y+=n,this.fdx=this.dx,this.fdy=this.dy,this.moveTo(s)},r}(ii.k);F.i.registeredClasses.AxisLabelCircular=Ve;var vt=k(61365),yt=function(h){function r(){var e=h.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=(0,R.aQ)(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.a
1pplyTheme(),e}return(0,D.ZT)(r,h),r.prototype.setAxis=function(e){var t=this;h.prototype.setAxis.call(this,e),e.isMeasured=!1;var i=e.tooltip;i.adapter.add("dx",function(a,n){var s=O.svgPointToSprite({x:n.pixelX,y:n.pixelY},t);return t.pixelRadius*Math.cos(Math.atan2(s.y,s.x))-s.x}),i.adapter.add("dy",function(a,n){var s=O.svgPointToSprite({x:n.pixelX,y:n.pixelY},t);return t.pixelRadius*Math.sin(Math.atan2(s.y,s.x))-s.y})},r.prototype.validate=function(){this.chart&&this.chart.invalid&&this.chart.validate(),h.prototype.validate.call(this)},Object.defineProperty(r.prototype,"axisLength",{get:function(){return 2*Math.PI*this.pixelRadius},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pixelRadius",{get:function(){return O.relativeRadiusToValue(this.radius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"innerRadius",{get:function(){var e=this.chart,t=this.getPropertyValue("innerRadius");if(e){if(v.hasValue(t)){if(t instanceof R.gG&&e){var i=e.mr,a=t.value;a=Math.max(i*a,i-Math.min(e.plotContainer.innerHeight,e.plotContainer.innerWidth))/i,t=(0,R.aQ)(100*a)}}else(t=e.innerRadius)instanceof R.gG&&e&&(t=(0,R.aQ)(t.value*e.innerRadiusModifyer*100));return t}},set:function(e){this.setPercentProperty("innerRadius",e,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"useChartAngles",{get:function(){return this.getPropertyValue("useChartAngles")},set:function(e){this.setPropertyValue("useChartAngles",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pixelInnerRadius",{get:function(){return O.relativeRadiusToValue(this.innerRadius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),r.prototype.positionToPoint=function(e,t){v.isNumber(t)||(t=1);var i=this.positionToCoordinate(e),a=this.startAngle+(this.endAngle-this.startAngle)*i/this.axisLength,n=this.pixelRadius,s=this.pixelInnerRadius;if(this.axisRendererY){var o=p.fitToRange(this.axisRendererY.positionToCoordinate(t),0,1/0);return 0==o&&(o=1e-6),{x:o*p.cos(a),y:o*p.sin(a)}}return{x:p.cos(a)*s+(n-s)*p.cos(a)*t,y:p.sin(a)*s+(n-s)*p.sin(a)*t}},r.prototype.positionToAngle=function(e){var t=this.axis,i=(this.endAngle-this.startAngle)/(t.end-t.start);return p.round(t.renderer.inversed?this.startAngle+(t.end-e)*i:this.startAngle+(e-t.start)*i,3)},r.prototype.angleToPosition=function(e){var t=this.axis,i=(this.endAngle-this.startAngle)/(t.end-t.start);return p.round(t.renderer.inversed?t.end-(e-this.startAngle)/i:(e-this.startAngle)/i+t.start,5)},r.prototype.updateAxisLine=function(){var e=this.pixelRadius,t=this.startAngle,a=p.min(360,this.endAngle-t);this.line.path=C.moveTo({x:e*p.cos(t),y:e*p.sin(t)})+C.arcTo(t,a,e,e)},r.prototype.updateGridElement=function(e,t,i){var a=this.positionToPoint(t+=(i-t)*e.location);if(v.isNumber(a.x)&&v.isNumber(a.y)&&e.element){var n=p.DEGREES*Math.atan2(a.y,a.x),s=O.relativeRadiusToValue(v.hasValue(e.radiu
1s)?e.radius:(0,R.aQ)(100),this.pixelRadius),o=O.relativeRadiusToValue(e.innerRadius,this.pixelRadius);e.zIndex=0;var l=O.relativeRadiusToValue(v.isNumber(o)?o:this.innerRadius,this.pixelRadiusReal,!0);v.isNumber(l)||(l=0),e.path=C.moveTo({x:l*p.cos(n),y:l*p.sin(n)})+C.lineTo({x:s*p.cos(n),y:s*p.sin(n)})}this.toggleVisibility(e,t,0,1)},r.prototype.updateTickElement=function(e,t,i){var a=this.positionToPoint(t+=(i-t)*e.location);if(e.element){var n=this.pixelRadius,s=p.DEGREES*Math.atan2(a.y,a.x),o=e.length;e.inside&&(o=-o),e.zIndex=1,e.path=C.moveTo({x:n*p.cos(s),y:n*p.sin(s)})+C.lineTo({x:(n+o)*p.cos(s),y:(n+o)*p.sin(s)})}this.toggleVisibility(e,t,0,1)},r.prototype.updateBullet=function(e,t,i){var a=.5;e instanceof vt._&&(a=e.location);var n=this.positionToPoint(t+=(i-t)*a),s=this.pixelRadius,o=p.DEGREES*Math.atan2(n.y,n.x);n={x:s*p.cos(o),y:s*p.sin(o)},this.positionItem(e,n),this.toggleVisibility(e,t,0,1)},r.prototype.updateLabelElement=function(e,t,i,a){v.hasValue(a)||(a=e.location),e.fixPosition(this.positionToAngle(t+=(i-t)*a),this.pixelRadius),e.zIndex=2,this.toggleVisibility(e,t,this.minLabelPosition,this.maxLabelPosition)},r.prototype.fitsToBounds=function(e){return!0},Object.defineProperty(r.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e)&&(this.invalidateAxisItems(),this.axis&&this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e)&&(this.invalidateAxisItems(),this.axis&&this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),r.prototype.getPositionRangePath=function(e,t,i,a,n){var s="";if(v.isNumber(e)&&v.isNumber(t)){v.hasValue(i)||(i=this.radius),e=p.max(e,this.axis.start),(t=p.min(t,this.axis.end))<e&&(t=e);var o=O.relativeRadiusToValue(i,this.pixelRadius),l=O.relativeRadiusToValue(a,this.pixelRadius,!0),d=this.positionToAngle(e),u=this.positionToAngle(t);s=C.arc(d,u-d,o,l,o,n)}return s},r.prototype.createGrid=function(){return new ft},r.prototype.createFill=function(e){return new pt(e)},r.prototype.createLabel=function(){return new Ve},r.prototype.pointToPosition=function(e){var t=p.fitAngleToRange(p.getAngle(e),this.startAngle,this.endAngle);return this.coordinateToPosition((t-this.startAngle)/360*this.axisLength)},r}(qt.Y);F.i.registeredClasses.AxisRendererCircular=yt;var gt=k(70325),mt=function(h){function r(){var e=h.call(this)||this;return e._chart=new Z.cx,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=(0,R.aQ)(100),e.line.strokeOpacity=0,e.labels.template.horizontalCenter="middle",e._disposers.push(e._chart),e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.validate=function(){this.chart&&this.chart.invalid&&this.chart.validate(),h.prototype.validate.call(this)},Object.defineProperty(r.prototype,"axisLength",{get:function(){return this.pixelRadius-this.pixelInnerRadius},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pixelRadius",{get:function(){return O.relativeRadiusToValue(this.radius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"innerRadius",{get:function(){var e=this.chart,t=this.getPropertyValue("innerRadius");if(e)if(v.hasValue(t)){if(t instanceof R.gG&&e){var i=e.mr,a=t.value;a=Math.max(i*a,i-Math.min(e.plotContainer.innerHeight,e.plotContainer.innerWidth))/i,t=(0,R.aQ)(100*a)}}else(t=e.innerRadius)instanceof R.gG&&e&&(t=(0,R.aQ)(t.value*e.innerRadiusModifyer*100));return t},set:function(e){this.setPercentProperty("innerRadius",e,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pixelInnerRadius",{get:function(){return O.relativeRadiusToValue(this.innerRadius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),r.prototype.positionToPoint=function(e,t){var i=p.fitToRange(this.positionToCoordinate(e),0,1/0);return{x:i*p.cos(this.axisAngle),y:i*p.sin(this.axisAngle)}},r.prototype.updateAxisLine=function(){this.line.path=C.moveTo({x:this.pixelInnerRadius*p.cos(this.axisAngle),y:this.pixelInnerRadius*p.sin(this.axisAngle)})+C.lineTo({x:this.pixelRadius*p.cos(this.axisAngle),y:this.pixelRadius*p.sin(this.axisAngle)});var e=this.axis.title;e.valign="none",e.horizontalCenter="middle",e.verticalCenter="bottom",e.y=-this.axisLength/2;var t=90;this.opposite?this.inside||(t=-90):this.inside&&(t=-90),e.rotation=t},r.prototype.updateGridElement=function(e,t,i){var n,a=this.positionToPoint(t+=(i-t)*e.location),s=p.getDistance(a),o=this.startAngle,l=this.endAngle,d=this.chart;if(v.isNumber(s)&&e.element&&d){var u=d.xAxes.getIndex(0),c=0,f=d.series.getIndex(0);if(f&&(c=f.dataItems.length),"polygons"==this.gridType&&c>0&&f&&u&&u instanceof U){var y=u.renderer.grid.template.location,g=u.getAngle(f.dataItems.getIndex(0),"categoryX",y);n=C.moveTo({x:s*p.cos(g),y:s*p.sin(g)});for(var m=1;m<c;m++)g=u.getAngle(f.dataItems.getIndex(m),"categoryX",y),n+=C.lineTo({x:s*p.cos(g),y:s*p.sin(g)});g=u.getAngle(f.dataItems.getIndex(c-1),"categoryX",u.renderer.cellEndLocation),n+=C.lineTo({x:s*p.cos(g),y:s*p.sin(g)})}else n=C.moveTo({x:s*p.cos(o),y:s*p.sin(o)})+C.arcTo(o,l-o,s,s);e.path=n}this.toggleVisibility(e,t,0,1)},r.prototype.updateLabelElement=function(e,t,i,a){v.hasValue(a)||(a=e.location);var n=this.positionToPoint(t+=(i-t)*a);this.positionItem(e,n),this.toggleVisibility(e,t,this.minLabelPosition,this.maxLabelPosition)},r.prototype.updateBaseGridElement=function(){},r.prototype.fitsToBounds=function(e){return!0},Object.defineProperty(r.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")}
1,set:function(e){this.setPropertyValue("startAngle",e)&&this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e)&&this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"axisAngle",{get:function(){return this.getPropertyValue("axisAngle")},set:function(e){this.setPropertyValue("axisAngle",p.normalizeAngle(e)),this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"gridType",{get:function(){return this.chart.xAxes.getIndex(0)instanceof U?this.getPropertyValue("gridType"):"circles"},set:function(e){this.setPropertyValue("gridType",e,!0)},enumerable:!0,configurable:!0}),r.prototype.getPositionRangePath=function(e,t){var u,i=this.pixelInnerRadius,a=this.axisLength+i,n=p.fitToRange(this.positionToCoordinate(e),i,a),s=p.fitToRange(this.positionToCoordinate(t),i,a),o=this.startAngle,d=this.endAngle-o,c=this.chart,f=c.xAxes.getIndex(0),y=c.series.getIndex(0),g=0;if(y&&(g=y.dataItems.length),"polygons"==this.gridType&&g>0&&y&&f&&f instanceof U){var m=f.renderer.grid.template.location,x=f.getAngle(y.dataItems.getIndex(0),"categoryX",m);u=C.moveTo({x:s*p.cos(x),y:s*p.sin(x)});for(var b=1;b<g;b++)x=f.getAngle(y.dataItems.getIndex(b),"categoryX",m),u+=C.lineTo({x:s*p.cos(x),y:s*p.sin(x)});for(x=f.getAngle(y.dataItems.getIndex(g-1),"categoryX",f.renderer.cellEndLocation),u+=C.lineTo({x:s*p.cos(x),y:s*p.sin(x)}),u+=C.moveTo({x:n*p.cos(x),y:n*p.sin(x)}),b=g-1;b>=0;b--)x=f.getAngle(y.dataItems.getIndex(b),"categoryX",m),u+=C.lineTo({x:n*p.cos(x),y:n*p.sin(x)})}else u=C.arc(o,d,s,n);return u},r.prototype.updateBreakElement=function(e){var i=e.endLine,a=e.fillShape,n=e.startPoint,s=e.endPoint;e.startLine.radius=Math.abs(n.y),i.radius=Math.abs(s.y),a.radius=Math.abs(s.y),a.innerRadius=Math.abs(n.y)},r.prototype.createBreakSprites=function(e){e.startLine=new gt.U,e.endLine=new gt.U,e.fillShape=new gt.U},r.prototype.updateTooltip=function(){if(this.axis){var o=this.axisAngle;o<0&&(o+=360);var l="vertical";(o>45&&o<135||o>225&&o<315)&&(l="horizontal"),this.axis.updateTooltip(l,{x:-4e3,y:-4e3,width:8e3,height:8e3})}},r.prototype.updateTickElement=function(e,t,i){var a=this.positionToPoint(t+=(i-t)*e.location);if(e.element){var n=p.normalizeAngle(this.axisAngle+90);e.pixelPerfect=n/90==Math.round(n/90);var s=-e.length;e.inside&&(s*=-1),e.path=C.moveTo({x:0,y:0})+C.lineTo({x:s*p.cos(n),y:s*p.sin(n)})}this.positionItem(e,a),this.toggleVisibility(e,t,0,1)},r.prototype.updateBullet=function(e,t,i){var a=.5;e instanceof vt._&&(a=e.location);var n=this.positionToPoint(t+=(i-t)*a);this.positionItem(e,n),this.toggleVisibility(e,t,0,1)},r.prototype.positionToCoordinate=function(e){var i=this.axis,a=i.axisFullLength,n=this.pixelInnerRadius;return p.round(i.renderer.inversed?(i.end-e)*a+n:(e-i.start)*a+n,1)},r.prototype.pointToPosition=function(e){var t=p.getDistance(e)-this.pixelInnerRadius;return this.coordinateToPosition(t)},Object.defineProperty(r.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){this._chart.set(e,null)},enumerable:!0,configurable:!0}),r}(ge.j);F.i.registeredClasses.AxisRendererRadial=mt;var ri=function(h){function r(){var e=h.call(this)||this;return e.className="RadarChartDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),r}(Ne),xt=function(h){function r(){var e=h.call(this)||this;e._axisRendererX=yt,e._axisRendererY=mt,e.innerRadiusModifyer=1,e.mr=1,e.className="RadarChart",e.startAngle=-90,e.endAngle=270,e.radius=(0,R.aQ)(80),e.innerRadius=0;var t=e.plotContainer.createChild(K.W);return t.shouldClone=!1,t.layout="absolute",t.align="center",t.valign="middle",e.seriesContainer.parent=t,e.radarContainer=t,e.bulletsContainer.parent=t,e.axisBulletsContainer=t,e._cursorContainer=t,e.chartContainer.events.on("maxsizechanged",e.invalidate,e,!1),e._bulletMask=t.createChild(ct.C),e._bulletMask.shouldClone=!1,e._bulletMask.element=e.paper.add("path"),e._bulletMask.opacity=0,e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.applyInternalDefaults=function(){h.prototype.applyInternalDefaults.call(this),v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Radar chart"))},r.prototype.processAxis=function(e){h.prototype.processAxis.call(this,e);var t=e.renderer;t.gridContainer.parent=t,t.breakContainer.parent=t,e.parent=this.radarContainer,t.toBack()}
1,r.prototype.handleXAxisRangeChange=function(){h.prototype.handleXAxisRangeChange.call(this),I.each(this.yAxes.iterator(),function(e){e.invalidate()})},r.prototype.handleYAxisRangeChange=function(){h.prototype.handleYAxisRangeChange.call(this),I.each(this.xAxes.iterator(),function(e){e.invalidate()})},r.prototype.processConfig=function(e){if(e&&(v.hasValue(e.cursor)&&!v.hasValue(e.cursor.type)&&(e.cursor.type="RadarCursor"),v.hasValue(e.series)&&v.isArray(e.series)))for(var t=0,i=e.series.length;t<i;t++)e.series[t].type=e.series[t].type||"RadarSeries";h.prototype.processConfig.call(this,e)},r.prototype.beforeDraw=function(){h.prototype.beforeDraw.call(this);var e=this.plotContainer,t=p.getArcRect(this.startAngle,this.endAngle,1),i={x:0,y:0,width:0,height:0},s=this.innerRadius;if(s instanceof R.gG){var o=s.value,l=Math.min(e.innerWidth/t.width,e.innerHeight/t.height);this.mr=l,o=Math.max(l*o,l-Math.min(e.innerHeight,e.innerWidth))/l,i=p.getArcRect(this.startAngle,this.endAngle,o),this.innerRadiusModifyer=o/s.value,s=(0,R.aQ)(100*o)}t=p.getCommonRectangle([t,i]);var d=Math.min(e.innerWidth/t.width,e.innerHeight/t.height),u=2*O.relativeRadiusToValue(this.radius,d)||0,c=u/2,f=this.startAngle,y=this.endAngle;this._pixelInnerRadius=O.relativeRadiusToValue(s,c),this._bulletMask.path=C.arc(f,y-f,c,this._pixelInnerRadius),I.each(this.xAxes.iterator(),function(m){m.renderer.useChartAngles&&(m.renderer.startAngle=f,m.renderer.endAngle=y),m.width=u,m.height=u,m.renderer.pixelRadiusReal=c}),I.each(this.yAxes.iterator(),function(m){m.renderer.startAngle=f,m.renderer.endAngle=y,m.width=u,m.height=u,m.renderer.pixelRadiusReal=c});var g=this.cursor;g&&(g.width=u,g.height=u,g.startAngle=f,g.endAngle=y),this.radarContainer.definedBBox={x:c*t.x,y:c*t.y,width:c*t.width,height:c*t.height},this.radarContainer.validatePosition()},r.prototype.createSeries=function(){return new dt},Object.defineProperty(r.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pixelInnerRadius",{get:function(){return this._pixelInnerRadius},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),r.prototype.updateXAxis=function(e){e&&e.processRenderer()},r.prototype.updateYAxis=function(e){e&&e.processRenderer()},r}(re);F.i.registeredClasses.RadarChart=xt;var Bi=k(42059),bt=function(h){function r(){var e=h.call(this)||this;e._axis=new Z.cx,e.className="ClockHand";var t=new J.h;e.fill=t.getFor("alternativeBackground"),e.stroke=e.fill;var i=new ct.C;i.radius=5,e.pin=i,e.isMeasured=!1,e.startWidth=5,e.endWidth=1,e.width=(0,R.aQ)(100),e.height=(0,R.aQ)(100),e.radius=(0,R.aQ)(100),e.innerRadius=(0,R.aQ)(0);var a=new Bi.Z;return e.hand=a,e._disposers.push(e._axis),e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.validate=function(){h.prototype.validate.call(this);var e=this.hand;e.width=this.pixelWidth;var t=Math.max(this.startWidth,this.endWidth);if(e.height=t,e.leftSide=(0,R.aQ)(this.startWidth/t*100),e.rightSide=(0,R.aQ)(this.endWidth/t*100),this.axis){var i=this.axis.renderer,a=O.relativeRadiusToValue(this.innerRadius,i.pixelRadius),n=O.relativeRadiusToValue(this.radius,i.pixelRadius);e.x=a,e.y=-t/2,e.width=n-a}},Object.defineProperty(r.prototype,"pin",{get:function(){return this._pin},set:function(e){this._pin&&this.removeDispose(this._pin),e&&(this._pin=e,e.parent=this,this._disposers.push(e))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hand",{get:function(){return this._hand},set:function(e){this._hand&&this.removeDispose(this._hand),e&&(this._hand=e,e.parent=this,this._disposers.push(e))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"radius",{get:function(){return this.getPropertyValue("radius")}
1,set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"startWidth",{get:function(){return this.getPropertyValue("startWidth")},set:function(e){this.setPropertyValue("startWidth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endWidth",{get:function(){return this.getPropertyValue("endWidth")},set:function(e){this.setPropertyValue("endWidth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rotationDirection",{get:function(){return this.getPropertyValue("rotationDirection")},set:function(e){this.setPropertyValue("rotationDirection",e)},enumerable:!0,configurable:!0}),r.prototype.showValue=function(e,t,i){if(this._value=e,null!=e&&(v.isNumber(t)||(t=0),this.axis)){var n=this.axis.renderer.positionToAngle(this.axis.anyToPosition(e)),s=this.rotation;"clockWise"==this.rotationDirection&&n<s&&(this.rotation=s-360),"counterClockWise"==this.rotationDirection&&n>s&&(this.rotation=s+360),this.animate({property:"rotation",to:n},t,i)}},Object.defineProperty(r.prototype,"currentPosition",{get:function(){if(this.axis)return this.axis.renderer.angleToPosition(this.rotation)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"value",{get:function(){return this._value},set:function(e){this.showValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"axis",{get:function(){return this._axis.get()},set:function(e){if(this.axis!=e&&this._axis.set(e,new Z.FV([e.events.on("datavalidated",this.updateValue,this,
1!1),e.events.on("datarangechanged",this.updateValue,this,!1),e.events.on("dataitemsvalidated",this.updateValue,this,!1),e.events.on("propertychanged",this.invalidate,this,!1)])),e){var t=e.chart;t&&(this.rotation=t.startAngle)}this.parent=e.renderer,this.zIndex=5},enumerable:!0,configurable:!0}),r.prototype.updateValue=function(){this.value=this.value},r.prototype.processConfig=function(e){e&&v.hasValue(e.axis)&&v.isString(e.axis)&&this.map.hasKey(e.axis)&&(e.axis=this.map.getKey(e.axis)),h.prototype.processConfig.call(this,e)},r}(K.W);F.i.registeredClasses.ClockHand=bt;var zi=function(h){function r(){var e=h.call(this)||this;return e.className="GaugeChartDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),r}(ri),ai=function(h){function r(){var e=h.call(this)||this;return e.className="GaugeChart",e.startAngle=180,e.endAngle=360,e.hands=new W.o(new bt),e.hands.events.on("inserted",e.processHand,e,!1),e._disposers.push(new W.zQ(e.hands)),e._disposers.push(e.hands.template),e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.applyInternalDefaults=function(){h.prototype.applyInternalDefaults.call(this),v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Gauge chart"))},r.prototype.processHand=function(e){var t=e.newValue;t.axis||(t.axis=this.xAxes.getIndex(0))},r.prototype.configOrder=function(e,t){return e==t?0:"hands"==e?1:"hands"==t?-1:h.prototype.configOrder.call(this,e,t)},r}(xt);F.i.registeredClasses.GaugeChart=ai;var Me=k(51280),Ct=k(6114),Ei=k(71834),Ye=function(h){function r(){var e=h.call(this)||this;return e.className="PercentSeriesDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.uidAttr=function(){return this.slice.uidAttr()},r.prototype.hide=function(e,t,i,a){return a||(a=["value"]),h.prototype.hide.call(this,e,t,0,a)},r.prototype.setVisibility=function(e,t){t||this.setWorkingValue("value",e?this.values.value.value:0,0,0),h.prototype.setVisibility.call(this,e,t)},r.prototype.show=function(e,t,i){return i||(i=["value"]),h.prototype.show.call(this,e,t,i)},Object.defineProperty(r.prototype,"category",{get:function(){return this.properties.category},set:function(e){this.setProperty("category",e)},enumerable:!0,configurable:!0}),r.prototype.createLegendMarker=function(e){this.component.createLegendMarker(e,this)},Object.defineProperty(r.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(e){this._legendDataItem=e,e.label&&(e.label.dataItem=this),e.valueLabel&&(e.valueLabel.dataItem=this)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tick",{get:function(){var e=this;if(!this._tick){var t=this.component.ticks.create();this._tick=t,this.addSprite(t),this._disposers.push(t),t.parent=this.component.ticksContainer,this._disposers.push(new Z.ku(function(){e.component&&e.component.ticks.removeValue(t)})),t.visible=this.visible}return this._tick},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"label",{get:function(){var e=this;if(!this._label){var t=this.component.labels.create();this.addSprite(t),this._label=t,this._disposers.push(t),t.parent=this.component.labelsContainer,this._disposers.push(new Z.ku(function(){e.component&&e.component.labels.removeValue(t)})),t.visible=this.visible}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"slice",{get:function(){var e=this;if(!this._slice){var t=this.component,i=t.slices.create();this.addSprite(i),this._slice=i,this._disposers.push(i),i.parent=t.slicesContainer,this._disposers.push(new Z.ku(function(){t.slices.removeValue(i)})),i.visible=this.visible,t.itemsFocusable()?(v.hasValue(this.component.role)||(this.component.role="menu"),v.hasValue(i.role)||(i.role="menuitem"),i.focusable=!0):(v.hasValue(this.component.role)||(this.component.role="list"),v.hasValue(i.role)||(i.role="listitem"),i.focusable=!1),i.focusable&&(i.events.on("focus",function(a){i.readerTitle=t.populateString(t.itemReaderText,e)},void 0,!1),i.events.on("blur",function(a){i.readerTitle=""},void 0,!1)),i.hoverable&&(i.events.on("over",function(a){i.readerTitle=t.populateString(t.itemReaderText,e)},void 0,!1),i.events.on("out",function(a){i.readerTitle=""},void 0,!1))}return this._slice},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hiddenInLegend",{get:function(){return this.properties.hiddenInLegend},set:function(e){this.setProperty("hiddenInLegend",e)},enumerable:!0,configurable:!0}),r}(me.m),Fe=function(h){function r(){var e=h.call(this)||this;e.className="PercentSeries",e._addAllDataItems=!1,e.colors=new Ct.U,e.colors.step=1,e.isMeasured=!0,e.calculatePercent=!0;var t=e.createChild(K.W);t.shouldClone=!1,t.isMeasured=!1,e.slicesContainer=t;var i=e.createChild(K.W);i.shouldClone=!1,i.isMeasured=!1,i.layout="none",e.ticksContainer=i;var a=e.createChild(K.W);return a.shouldClone=!1,a.isMeasured=!1,a.layout="none",e.labelsContainer=a,e.alignLabels=!1,e.bulletsContainer.toFront(),e.skipFocusThreshold=50,e.defaultState.transitionEasing=Ei.sinOut,e.itemReaderText="{category}: {value.percent.formatNumber('#.#p')}",e.applyTheme(),e}
1return(0,D.ZT)(r,h),r.prototype.createSlice=function(){return new _.jy},r.prototype.createTick=function(){return new Me.d},r.prototype.createLabel=function(){return new ht._},Object.defineProperty(r.prototype,"slices",{get:function(){if(!this._slices){var e=this.createSlice();e.applyOnClones=!0,this._disposers.push(e),this.initSlice(e),this._slices=new W.o(e),this._disposers.push(new W.zQ(this._slices))}return this._slices},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"ticks",{get:function(){if(!this._ticks){var e=this.createTick();e.applyOnClones=!0,this._disposers.push(e),this.initTick(e),this._ticks=new W.o(e),this._disposers.push(new W.zQ(this._ticks))}return this._ticks},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"labels",{get:function(){if(!this._labels){var e=this.createLabel();e.applyOnClones=!0,this._disposers.push(e),this.initLabel(e),this._labels=new W.o(e),this._disposers.push(new W.zQ(this._labels))}return this._labels},enumerable:!0,configurable:!0}),r.prototype.createDataItem=function(){return new Ye},r.prototype.initSlice=function(e){},r.prototype.initLabel=function(e){e.text="{category}: {value.percent.formatNumber('#.0p')}",e.isMeasured=!1,e.padding(5,5,5,5)},r.prototype.initTick=function(e){},r.prototype.validateDataItems=function(){this.colors.reset(),this.patterns&&this.patterns.reset(),h.prototype.validateDataItems.call(this)},r.prototype.validateDataElement=function(e){var t=e.slice;t&&(null==t.fill?this.patterns?(v.hasValue(t.stroke)||(t.stroke=this.colors.next()),t.fill=this.patterns.next(),v.hasValue(t.fillOpacity)&&(t.fill.backgroundOpacity=t.fillOpacity),t.stroke instanceof q.Il&&(t.fill.stroke=t.stroke,t.fill.fill=t.
1stroke)):t.fill=this.colors.next():this.colors.currentStep+=this.colors.step,null==t.stroke&&(t.stroke=t.fill)),h.prototype.validateDataElement.call(this,e),t&&e.bullets.each(function(i,a){null==a.fill&&(a.fill=t.fill),null==a.stroke&&(a.stroke=t.stroke)}),this.updateLegendValue(e)},r.prototype.validateData=function(){h.prototype.validateData.call(this),this.chart&&this.chart.feedLegend()},r.prototype.arrangeLabels=function(e){for(var t=0,i=e.length;t<i;t++){var n=e[t].label;if(n){n.invalid&&n.validate();var s=n.measuredHeight;n.visible||(s=0),n.pixelY-s/2<-this.maxHeight/2&&(n.y=-this.maxHeight/2+s/2);var o=this.getNextLabel(t+1,e),l=n.pixelY+s/2;if(o){o.invalid&&o.validate();var d=o.measuredHeight;o.visible||(d=0);var u=o.pixelY;null==u&&(u=0),u-d/2<l&&(o.y=l+d/2)}}}},r.prototype.arrangeLabels2=function(e){for(var t=this.maxHeight/2,i=e.length-1;i>=0;i--){var n=e[i].label;if(n){n.invalid&&n.validate();var s=n.measuredHeight;n.visible||(s=0),n.pixelY+s/2>t&&(n.y=t-s/2,t=n.y-s/2)}}},r.prototype.getNextLabel=function(e,t){if(t.length>=e){var i=t[e];if(i)return i.label&&i.visible?i.label:this.getNextLabel(e+1,t)}},Object.defineProperty(r.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(e){this.setPropertyValue("colors",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"patterns",{get:function(){return this.getPropertyValue("patterns")},set:function(e){this.setPropertyValue("patterns",e,!0)},enumerable:!0,configurable:!0}),r.prototype.createLegendMarker=function(e,t){I.each(e.children.iterator(),function(i){var a=t.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,null==i.fill&&(i.__disabled=!0);var n=e.dataItem;n.color=a.fill,n.colorOrig=a.fill,i.addDisposer(a.events.on("propertychanged",function(s){"fill"==s.property&&(i.__disabled=!1,i.isActive||(i.fill=a.fill),i.defaultState.properties.fill=a.fill,n.color=a.fill,n.colorOrig=a.fill),"stroke"==s.property&&(i.isActive||(i.stroke=a.stroke),i.defaultState.properties.stroke=a.stroke),"strokeOpacity"==s.property&&(i.isActive||(i.strokeOpacity=a.strokeOpacity),i.defaultState.properties.strokeOpacity=a.strokeOpacity)},void 0,!1))})},r.prototype.handleSliceScale=function(e){var t=this,a=e.target.dataItem;a&&a.bullets&&I.each(a.bullets.iterator(),function(n){t.positionBullet(n[1])})},r.prototype.handleSliceMove=function(e){},r.prototype.copyFrom=function(e){h.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(r.prototype,"alignLabels",{get:function(){return this.getPropertyValue("alignLabels")},set:function(e){this.setAlignLabels(e)},enumerable:!0,configurable:!0}),r.prototype.setAlignLabels=function(e){this.setPropertyValue("alignLabels",e,!0)},Object.defineProperty(r.prototype,"ignoreZeroValues",{get:function(){return this.getPropertyValue("ignoreZeroValues")},set:function(e){this.setPropertyValue("ignoreZeroValues",e,!0)},enumerable:!0,configurable:!0}),r.prototype.updateLegendValue=function(e){if(e){var t=e.legendDataItem,i=e.legendSettings;t&&i&&i&&(i.labelText&&(t.label.text=i.labelText),i.itemLabelText&&(t.label.text=i.itemLabelText),i.valueText&&(t.valueLabel.text=i.valueText),i.itemValueText&&(t.valueLabel.text=i.itemValueText))}},r}(me.F);F.i.registeredClasses.PercentSeries=Fe,F.i.registeredClasses.PercentSeriesDataItem=Ye,be.IH.push({relevant:be.Xf.maybeXS,state:function(h,r){if(h instanceof Fe){var e=h.states.create(r);return h.labels.template.states.create(r).properties.disabled=!0,h.ticks.template.states.create(r).properties.disabled=!0,e}return null}});var Pt=function(h){function r(){var e=h.call(this)||this;return e.className="PercentChartDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),r}(ye.c),Dt=function(h){function r(){var e=h.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(0,D.ZT)(r,h),r.prototype.validateData=function(){h.prototype.validateData.call(this),this.feedLegend()},r.prototype.feedLegend=function(){var e=this.legend;if(e){var t=[];I.each(this.series.iterator(),function(i){i.hiddenInLegend||I.each(i.dataItems.iterator(),function(a){a.hiddenInLegend||(t.push(a),a.legendSettings||(a.legendSettings=i.legendSettings))})}),e.data=t,e.dataFields.name="category"}},r.prototype.createSeries=function(){return new Fe},r.prototype.setLegend=function(e){h.prototype.setLegend.call(this,e),e&&(e.labels.template.text="{category}",e.valueLabels.template.text="{value.percent.formatNumber('#.0p')}",e.itemContainers.template.events.on("over",function(t){var i=t.target.dataItem.dataContext;if(i.visible&&!i.isHiding){var a=i.slice;a.dispatchImmediately("over"),a.isHover=!0,a.interactions.isRealHover=!0}}
1),e.itemContainers.template.events.on("out",function(t){var a=t.target.dataItem.dataContext.slice;a.dispatchImmediately("out"),a.isHover=!1}))},r}(ye.j);F.i.registeredClasses.PercentChart=Dt,F.i.registeredClasses.PercentChartDataItem=Pt;var At=k(52301),Tt=function(h){function r(){var e=h.call(this)||this;return e._label=new Z.cx,e._slice=new Z.cx,e.className="PieTick",e.element=e.paper.add("polyline"),e._disposers.push(e._label),e._disposers.push(e._slice),e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.draw=function(){h.prototype.draw.call(this);var e=this.slice,t=this.label;if(e&&e.radius>0&&t&&t.text){var a=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,s=void 0,o=void 0,l=void 0,d=void 0;if(e.dataItem.component.alignLabels)s=t.pixelX-this.length,l=t.pixelX,d=o=t.pixelY,"right"==t.horizontalCenter&&(l=(s+=2*this.length)-this.length);else{var u=t.pixelRadius(e.radius);l=s=a+u*e.ix,d=o=n+u*e.iy}this.element.attr({points:[a,n,s,o,l,d]})}},Object.defineProperty(r.prototype,"slice",{get:function(){return this._slice.get()},set:function(e){this._slice.set(e,new Z.FV([e.events.on("transformed",this.invalidate,this),e.events.on("validated",this.invalidate,this)]))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"label",{get:function(){return this._label.get()},set:function(e){this._label.set(e,e.events.on("transformed",this.invalidate,this,!1))},enumerable:!0,configurable:!0}),r}(Me.d);F.i.registeredClasses.PieTick=Tt;var je=function(h){function r(){var e=h.call(this)||this;return e.className="PieSeriesDataItem",e.values.radiusValue={},e.applyTheme(),e}return(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"radiusValue",{get:function(){return this.values.radiusValue.value},set:function(e){this.setValue("radiusValue",e)},enumerable:!0,configurable:!0}),r.prototype.hide=function(e,t,i,a){return h.prototype.hide.call(this,e,t,0,["value","radiusValue"])},r.prototype.show=function(e,t,i){return h.prototype.show.call(this,e,t,["value","radiusValue"])},r}(Ye),_e=function(h){function r(){var e=h.call(this)||this;return e.className="PieSeries",e.alignLabels=!0,e.layout="none",e.labels.template.radius=(0,R.aQ)(5),e.addDisposer(e.labels.template.events.on("enabled",e.invalidate,e,!1)),e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.createSlice=function(){return new At.p},r.prototype.createTick=function(){return new Tt},r.prototype.createLabel=function(){return new Ve},r.prototype.applyInternalDefaults=function(){h.prototype.applyInternalDefaults.call(this),v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Pie Slice Series"))},r.prototype.createDataItem=function(){return new je},r.prototype.initSlice=function(e){e.isMeasured=!1,e.defaultState.properties.scale=1,e.observe("scale",this.handleSliceScale,this),e.observe(["dx","dy","x","y","shiftRadius"],this.handleSliceMove,this),e.tooltipText="{category}: {value.percent.formatNumber('#.#p')} ({value.value})",e.states.create("hover").properties.scale=1.05,e.defaultState.properties.shiftRadius=0,e.togglable=!0,e.events.on("toggled",function(n){n.target.hideTooltip(),n.target.interactions.lastHitPointer&&n.target.interactions.lastHitPointer.touch&&!n.target.isActive&&(n.target.isHover=!1)}),e.states.create("active").properties.shiftRadius=.1},r.prototype.validate=function(){this._leftItems=[],this._rightItems=[],this._currentStartAngle=this.startAngle,this._arcRect=p.getArcRect(this.startAngle,this.endAngle),this._maxRadiusPercent=0;for(var e=this.startIndex;e<this.endIndex;e++){var i=this.dataItems.getIndex(e).values.radiusValue.percent;i>this._maxRadiusPercent&&(this._maxRadiusPercent=i)}h.prototype.validate.call(this),this.alignLabels&&(this.startAngle>this.endAngle?this._rightItems.reverse():this._leftItems.reverse(),this._rightItems.sort(function(a,n){var s=(a.slice.middleAngle+360)%360,o=(n.slice.middleAngle+360)%360;return s>270&&(s-=360),o>270&&(o-=360),s<o?-1:s>o?1:0}),this._leftItems.sort(function(a,n){var s=(a.slice.middleAngle+360)%360,o=(n.slice.middleAngle+360)%360;return s<o?1:s>o?-1:0}),this.arrangeLabels(this._rightItems),this.arrangeLabels2(this._rightItems),this.arrangeLabels(this._leftItems),this.arrangeLabels2(this._leftItems))},r.prototype.validateDataElement=function(e){if(this.pixelRadius>0){e.__disabled=!(!this.ignoreZeroValues||0!=e.value&&null!=e.value);var t=e.slice;
1if(t.radius=this.pixelRadius,v.isNumber(e.radiusValue)&&(t.radius=this.pixelInnerRadius+(this.pixelRadius-this.pixelInnerRadius)*e.values.radiusValue.percent/this._maxRadiusPercent),t.innerRadius instanceof R.gG||(t.innerRadius=this.pixelInnerRadius),t.startAngle=this._currentStartAngle,t.arc=Math.abs(e.values.value.percent)*(this.endAngle-this.startAngle)/100,!this.labels.template.disabled){var i=e.label,a=e.tick;a.slice=t,a.label=i;var n=(t.middleAngle+360)%360;if(this.alignLabels){var o=i.pixelRadius(t.radius),l=a.length+o;i.dx=0,i.dy=0,i.verticalCenter="middle";var d=this._arcRect;n>270||n<=90?(l+=(d.width+d.x)*this.pixelRadius,i.horizontalCenter="left",this._rightItems.push(e)):(l-=d.x*this.pixelRadius,i.horizontalCenter="right",this._leftItems.push(e),l*=-1),i.moveTo({x:l,y:t.iy*(t.radius+a.length+o)})}else{var c=t.depth;v.isNumber(c)||(c=0),i.fixPosition(t.middleAngle,t.radius,t.radiusY,0,-c)}}this._currentStartAngle+=t.arc,h.prototype.validateDataElement.call(this,e)}},Object.defineProperty(r.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pixelRadius",{get:function(){return this._pixelRadius},set:function(e){this._pixelRadius!=e&&(this._pixelRadius=e,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pixelInnerRadius",{get:function(){return this._pixelInnerRadius},set:function(e){this._pixelInnerRadius!=e&&(this._pixelInnerRadius=e,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"startAngle",{get:function(){var e=this.getPropertyValue("startAngle");return v.isNumber(e)?e:this._startAngleInternal},set:function(e){this.setPropertyValue("startAngle",p.normalizeAngle(e),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endAngle",{get:function(){var e=this.getPropertyValue("endAngle");return v.isNumber(e)?e:this._endAngleInternal},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),r.prototype.positionBullet=function(e){h.prototype.positionBullet.call(this,e);var i=e.dataItem.slice,a=e.locationX;v.isNumber(a)||(a=.5);var n=e.locationY;v.isNumber(n)||(n=1);var s=i.startAngle+i.arc*a;e.x=n*i.radius*p.cos(s),e.y=n*i.radiusY*p.sin(s)},r.prototype.handleSliceMove=function(e){if(!this.alignLabels){var t=e.target,i=t.dataItem;if(i){var a=i.label;a&&(a.dx=a.fdx+t.dx+t.pixelX,a.dy=a.fdy+t.dy+t.pixelY)}}},Object.defineProperty(r.prototype,"bbox",{get:function(){if(this.definedBBox)return this.definedBBox;var e=this.chart;return e?p.getArcRect(e.startAngle,e.endAngle,this.pixelRadius):p.getArcRect(this.startAngle,this.endAngle,this.pixelRadius)},enumerable:!0,configurable:!0}),r}(Fe);F.i.registeredClasses.PieSeries=_e,F.i.registeredClasses.PieSeriesDataItem=je;var St=function(h){function r(){var e=h.call(this)||this;return e.className="PieChartDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),r}(Pt),Vt=function(h){function r(){var e=h.call(this)||this;e.className="PieChart",e.innerRadius=0,e.radius=(0,R.aQ)(80),e.align="none",e.valign="none",e.startAngle=-90,e.endAngle=270;var t=e.seriesContainer;return t.isMeasured=!0,t.valign="middle",t.align="center",t.layout="absolute",t.width=void 0,t.height=void 0,e.chartContainer.minHeight=50,e.chartContainer.minWidth=50,e.chartContainer.events.on("maxsizechanged",e.updateRadius,e,!1),e._disposers.push(e.seriesContainer.events.on("positionchanged",function(){e.bulletsContainer.x=e.seriesContainer.x,e.bulletsContainer.y=e.seriesContainer.y})),e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.applyInternalDefaults=function(){h.prototype.applyInternalDefaults.call(this),v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Pie chart"))},r.prototype.validateLayout=function(){h.prototype.validateLayout.call(this),this.updateRadius()},r.prototype.handleSeriesAdded=function(e){h.prototype.handleSeriesAdded.call(this,e),this._chartPixelRadius=void 0,this.updateSeriesAngles()},r.prototype.updateSeriesAngles=function(){var e=this;this.series.each(function(t){t._startAngleInternal=e.startAngle,t._endAngleInternal=e.endAngle})},r.prototype.updateRadius=function(){var e=this.chartContainer,t=p.getArcRect(this.startAngle,this.endAngle,1),i={x:0,y:0,width:0,height:0},a=this.innerRadius;a instanceof R.gG&&(i=p.getArcRect(this.startAngle,this.endAngle,a.value)),t=p.getCommonRectangle([t,i]);
1var n=Math.min(e.innerWidth/t.width,e.innerHeight/t.height);v.isNumber(n)||(n=0);var s=O.relativeRadiusToValue(this.radius,n),o=O.relativeRadiusToValue(this.innerRadius,n),l=(s-o)/this.series.length;(s!=this._chartPixelRadius||o!=this._chartPixelInnerRadius)&&(this._chartPixelRadius=s,this._chartPixelInnerRadius=o,I.each(I.indexed(this.series.iterator()),function(d){var u=d[0],c=d[1],f=o+O.relativeRadiusToValue(c.radius,s-o),y=o+O.relativeRadiusToValue(c.innerRadius,s-o);v.isNumber(f)||(f=o+l*(u+1)),v.isNumber(y)||(y=o+l*u),c.pixelRadius=f,c.pixelInnerRadius=y}),this.seriesContainer.definedBBox={x:s*t.x,y:s*t.y,width:s*t.width,height:s*t.height},this.seriesContainer.invalidateLayout())},Object.defineProperty(r.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),r.prototype.createSeries=function(){return new _e},Object.defineProperty(r.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),r}(Dt);F.i.registeredClasses.PieChart=Vt,F.i.registeredClasses.PieChartDataItem=St;var Hi=k(25035),Ft=function(h){function r(){var e=h.call(this)||this;return e.className="PieSeries3DDataItem",e.values.depthValue={},e.applyTheme(),e}return(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"depthValue",{get:function(){return this.values.depthValue.value},set:function(e){this.setValue("depthValue",e)},enumerable:!0,configurable:!0}),r}(je),It=function(h){function r(){var e=h.call(this)||this;return e.className="PieSeries3D",e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.createDataItem=function(){return new Ft},r.prototype.createSlice=function(){return new Hi.V},r.prototype.validateDataElement=function(e){var t=e.slice,i=this.depth;v.isNumber(i)||(i=this.chart.depth);var a=e.values.depthValue.percent;v.isNumber(a)||(a=100),t.depth=a*i/100;var n=this.angle;v.isNumber(n)||(n=this.chart.angle),t.angle=n,h.prototype.validateDataElement.call(this,e)},r.prototype.validate=function(){h.prototype.validate.call(this);for(var e=this._workingStartIndex;e<this._workingEndIndex;e++){var i=this.dataItems.getIndex(e).slice,a=i.startAngle;a>=-90&&a<90?i.toFront():a>=90&&i.toBack()}},Object.defineProperty(r.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){this.setPropertyValue("angle",e)},enumerable:!0,configurable:!0}),r.prototype.positionBullet=function(e){h.prototype.positionBullet.call(this,e),e.y=e.pixelY-e.dataItem.slice.depth},r}(_e);F.i.registeredClasses.PieSeries3D=It,F.i.registeredClasses.PieSeries3DDataItem=Ft;var Ui=function(h){function r(){var e=h.call(this)||this;return e.className="PieChart3DDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),r}(St),ni=function(h){function r(){var e=h.call(this)||this;return e.className="PieChart3D",e.depth=20,e.angle=10,e.applyTheme(),e}return(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e)&&this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){e=p.fitToRange(e,0,90),this.setPropertyValue("angle",e)&&this.invalidateDataUsers()},enumerable:!0,configurable:!0}),r.prototype.createSeries=function(){return new It},r}(Vt);F.i.registeredClasses.PieChart3D=ni;var si=function(h){function r(){var e=h.call(this)||this;return e.className="SlicedChartDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),r}(Pt),oi=function(h){function r(){var e=h.call(this)||this;return e.className="SlicedChart",e.seriesContainer.layout="horizontal",e.padding(15,15,15,15),e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.applyInternalDefaults=function(){h.prototype.applyInternalDefaults.call(this),v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Sliced chart"))},r.prototype.validate=function(){h.prototype.validate.call(this)},r}(Dt);F.i.registeredClasses.SlicedChart=oi,F.i.registeredClasses.SlicedChartDataItem=si;var We=k(19856),li=k(37923),Ot=k(86324),Be=k(68049),ze=k(73020),Ie=function(h){function r(){var e=h.call(this)||this;return e.legendSettings=new ze.BZ,e.className="FlowDiagramNode",e.isMeasured=!1,new J.h,e.draggable=!0,e.inert=!0,e.setStateOnChildren=!0,e.events.on("positionchanged",e.invali
1dateLinks,e,!1),e.events.on("sizechanged",e.invalidateLinks,e,!1),e}return(0,D.ZT)(r,h),r.prototype.handleHit=function(e){this.isHidden||this.isHiding?this.show():this.hide()},r.prototype.show=function(e){var t=h.prototype.show.call(this,e);return this.outgoingDataItems.each(function(i){(!i.toNode||i.toNode&&!i.toNode.isHidden)&&(i.setWorkingValue("value",i.getValue("value"),e),i.link.show())}),this.incomingDataItems.each(function(i){(!i.fromNode||i.fromNode&&!i.fromNode.isHidden)&&(i.setWorkingValue("value",i.getValue("value"),e),i.link.show())}),t},r.prototype.hide=function(e){var t=h.prototype.hide.call(this,e);return this.outgoingDataItems.each(function(i){i.setWorkingValue("value",0,e),i.link.hide()}),this.incomingDataItems.each(function(i){i.setWorkingValue("value",0,e),i.link.hide()}),t},r.prototype.validate=function(){this.isDisposed()||(h.prototype.validate.call(this),this.invalidateLinks())},r.prototype.invalidateLinks=function(){var e=this;this.outgoingDataItems.each(function(t){var i=t.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=e.color,i.gradient.validate())}}),this.incomingDataItems.each(function(t){var i=t.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=e.color,i.gradient.validate())}})},Object.defineProperty(r.prototype,"incomingDataItems",{get:function(){var e=this;if(!this._incomingDataItems){var t=new W.aV;t.events.on("inserted",function(){e._incomingSorted="name"==e.chart.sortBy?I.sort(e._incomingDataItems.iterator(),function(i,a){return li.order(i.fromName,a.fromName)}):"value"==e.chart.sortBy?I.sort(e._incomingDataItems.iterator(),function(i,a){return Ot.G(Te.order(i.value,a.value))}):e._incomingDataItems.iterator()},void 0,!1),this._incomingDataItems=t}return this._incomingDataItems},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"outgoingDataItems",{get:function(){var e=this;if(!this._outgoingDataItems){var t=new W.aV;t.events.on("inserted",function(){e._outgoingSorted="name"==e.chart.sortBy?I.sort(e._outgoingDataItems.iterator(),function(i,a){return li.order(i.fromName,a.fromName)}):"value"==e.chart.sortBy?I.sort(e._outgoingDataItems.iterator(),function(i,a){return Ot.G(Te.order(i.value,a.value))}):e._outgoingDataItems.iterator()},void 0,!1),this._outgoingDataItems=t}return this._outgoingDataItems},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return this.getPropertyValue("name")},set:function(e){this.setPropertyValue("name",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"total",{get:function(){return this.getPropertyValue("total")},set:function(e){this.setPropertyValue("total",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"totalIncoming",{get:function(){return this.getPropertyValue("totalIncoming")},set:function(e){this.setPropertyValue("totalIncoming",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"totalOutgoing",{get:function(){return this.getPropertyValue("totalOutgoing")},set:function(e){this.setPropertyValue("totalOutgoing",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"color",{get:function(){return this.getPropertyValue("color")}
1,set:function(e){this.setColorProperty("color",e),this._background&&(this._background.fill=e),this.fill=e},enumerable:!0,configurable:!0}),r.prototype.createLegendMarker=function(e){var t=e.pixelWidth,i=e.pixelHeight;e.removeChildren();var a=e.createChild(Be.c);a.shouldClone=!1,E.copyProperties(this,a,_.hh),a.stroke=this.fill,a.copyFrom(this),a.padding(0,0,0,0),a.width=t,a.height=i;var n=e.dataItem;n.color=a.fill,n.colorOrig=a.fill},Object.defineProperty(r.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(e){this._legendDataItem=e,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),r}(K.W);F.i.registeredClasses.FlowDiagramNode=Ie;var Zi=k(75150),hi=k(67775),Oe=function(h){function r(){var e=h.call(this)||this;e.className="FlowDiagramLink";var t=new J.h;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}\u2192{toName}:{value.value}",e.tooltipLocation=.5,e.link=e.createChild(_.jy),e.link.shouldClone=!1,e.link.setElement(e.paper.add("path")),e.link.isMeasured=!1,e.fillOpacity=.2,e.fill=t.getFor("alternativeBackground"),e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.positionBullets=function(){var e=this;I.each(this.bullets.iterator(),function(t){t.parent=e.bulletsContainer,t.maxWidth=e.maxWidth,t.maxHeight=e.maxHeight,e.positionBullet(t)})},Object.defineProperty(r.prototype,"bulletsContainer",{get:function(){if(!this._bulletsContainer){var e=this.createChild(K.W);e.shouldClone=!1,e.layout="none",this._bulletsContainer=e}return this._bulletsContainer},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"bulletsMask",{get:function(){if(!this._bulletsMask){var e=this.createChild(_.jy);e.shouldClone=!1,e.setElement(this.paper.add("path")),e.isMeasured=!1,this._bulletsMask=e}return this._bulletsMask},enumerable:!0,configurable:!0}),r.prototype.positionBullet=function(e){var t=e.locationX;v.isNumber(t)||(t=e.locationY),v.isNumber(t)||(t=.5);var n,i=this.middleLine.positionToPoint(t);e.moveTo(i),e.dataItem&&(n=e.dataItem.dataContext[e.propertyFields.rotation]),v.isNumber(n)||(n=i.angle),e.rotation=n},Object.defineProperty(r.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"colorMode",{get:function(){return this.getPropertyValue("colorMode")},set:function(e){if("gradient"==e){var t=this.fill;this.gradient.stops.clear(),t instanceof q.Il&&(this.gradient.addColor(t),this.gradient.addColor(t)),this.fill=this.gradient,this.stroke=this.gradient}this.setPropertyValue("colorMode",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(e){this.setPropertyValue("maskBullets",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(e){this.setPropertyValue("tooltipLocation",e,!0)},enumerable:!0,configurable:!0}),r.prototype.setFill=function(e){h.prototype.setFill.call(this,e);var t=this._gradient;t&&e instanceof q.Il&&(t.stops.clear(),t.addColor(e),t.addColor(e))},r.prototype.measureElement=function(){},Object.defineProperty(r.prototype,"bullets",{get:function(){var e=this;return this._bullets||(this._bullets=new W.o(new pe.g),this._disposers.push(new W.zQ(this._bullets)),this._disposers.push(this._bullets.template),this._bullets.events.on("inserted",function(t){t.newValue.events.on("propertychanged",function(i){("locationX"==i.property||"locationY"==i.property)&&e.positionBullet(i.target)},void 0,!1)},void 0,!1)),this._bullets},enumerable:!0,configurable:!0}),r.prototype.copyFrom=function(e){h.prototype.copyFrom.call(this,e),this.bullets.copyFrom(e.bullets);var t=this.middleLine;t&&(t instanceof ne.x&&e.middleLine instanceof ne.x&&t.copyFrom(e.middleLine),t instanceof hi.a&&e.middleLine instanceof hi.a&&t.copyFrom(e.middleLine)),this.link.copyFrom(e.link)},r.prototype.getTooltipX=function(){if(this.middleLine)return this.middleLine.positionToPoint(this.tooltipLocation).x}
1,r.prototype.getTooltipY=function(){if(this.middleLine)return this.middleLine.positionToPoint(this.tooltipLocation).y},Object.defineProperty(r.prototype,"gradient",{get:function(){return this._gradient||(this._gradient=new Zi.o),this._gradient},enumerable:!0,configurable:!0}),r}(K.W);F.i.registeredClasses.FlowDiagramLink=Oe;var ui=k(99445),Ee=function(h){function r(){var e=h.call(this)||this;return e.className="FlowDiagramDataItem",e.values.value={},e.applyTheme(),e}return(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"fromName",{get:function(){return this.properties.fromName},set:function(e){this.setProperty("fromName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"toName",{get:function(){return this.properties.toName},set:function(e){this.setProperty("toName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"color",{get:function(){return this.properties.color},set:function(e){this.setProperty("color",(0,q.p9)(e))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"value",{get:function(){return this.values.value.value},set:function(e){this.setValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"link",{get:function(){var e=this;if(!this._link){var t=this.component.links.create();this._link=t,this.addSprite(t),this._disposers.push(new Z.ku(function(){e.component&&e.component.links.removeValue(t)}))}return this._link},enumerable:!0,configurable:!0}),r}(We.k),He=function(h){function r(){var e=h.call(this)||this;e.colors=new Ct.U,e.className="FlowDiagram",e.nodePadding=20,e.sortBy="none",e.sequencedInterpolation=!0,e.colors.step=2,e.minNodeSize=.02;var t=e.chartContainer.createChild(K.W);t.shouldClone=!1,t.layout="none",t.isMeasured=!1,e.linksContainer=t;var i=e.chartContainer.createChild(K.W);return i.shouldClone=!1,i.layout="none",i.isMeasured=!1,e.nodesContainer=i,e.dataItem=e.createDataItem(),e.dataItem.component=e,e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.dispose=function(){h.prototype.dispose.call(this),this.dataItem.dispose()},r.prototype.validateData=function(){var e=this;0==this._parseDataFrom&&this.nodes.clear(),this.sortNodes(),this.colors.reset(),h.prototype.validateData.call(this);var a,n,t=0,i=0;I.each(this.dataItems.iterator(),function(o){var l=o.fromName;l&&((d=e.nodes.getKey(l))||((d=e.nodes.create(l)).name=l,d.chart=e,d.dataItem=o),o.fromNode=d,o.fromNode.outgoingDataItems.push(o));var d,u=o.toName;if(u&&((d=e.nodes.getKey(u))||((d=e.nodes.create(u)).name=u,d.chart=e,d.dataItem=o),o.toNode=d,o.toNode.incomingDataItems.push(o)),!o.fromNode){var c=new ui.Y;c.opacities=[0,1],o.link.strokeModifier=c}if(!o.toNode){var f=new ui.Y;f.opacities=[1,0],o.link.strokeModifier=f}var y=o.value;v.isNumber(y)&&(t+=y,i++,(a>y||!v.isNumber(a))&&(a=y),(n<y||!v.isNumber(n))&&(n=y))});var s="value";this.dataItem.setCalculatedValue(s,n,"high"),this.dataItem.setCalculatedValue(s,a,"low"),this.dataItem.setCalculatedValue(s,t,"sum"),this.dataItem.setCalculatedValue(s,t/i,"average"),this.dataItem.setCalculatedValue(s,i,"count"),I.each(this.nodes.iterator(),function(o){var l=o[1];l.fill instanceof q.Il&&(l.color=l.fill),null==l.color&&(l.color=e.colors.next()),null!=l.dataItem.color&&(l.color=l.dataItem.color),l.dataItem.visible||l.hide(0),e.getNodeValue(l)}),this.sortNodes(),this.feedLegend()},r.prototype.handleDataItemWorkingValueChange=function(e,t){this.invalidate()},r.prototype.sortNodes=function(){this._sorted="name"==this.sortBy?this.nodes.sortedIterator():"value"==this.sortBy?I.sort(this.nodes.iterator(),function(e,t){return Ot.G(Te.order(e[1].total,t[1].total))}):this.nodes.iterator()},r.prototype.getNodeValue=function(e){var t=0,i=0;I.each(e.incomingDataItems.iterator(),function(a){var n=a.getWorkingValue("value");v.isNumber(n)&&(t+=n)}),I.each(e.outgoingDataItems.iterator(),function(a){var n=a.getWorkingValue("value");v.isNumber(n)&&(i+=n)}),e.total=t+i,e.totalIncoming=t,e.totalOutgoing=i},r.prototype.changeSorting=function(){this.sortNodes()},r.prototype.applyInternalDefaults=function(){h.prototype.applyInternalDefaults.call(this),v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Flow diagram"))},r.prototype.createDataItem=function(){return new Ee},Object.defineProperty(r.prototype,"nodePadding",{get:function(){return this.getPropertyValue("nodePadding")}
1,set:function(e){this.setPropertyValue("nodePadding",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sortBy",{get:function(){return this.getPropertyValue("sortBy")},set:function(e){this.setPropertyValue("sortBy",e),this.changeSorting()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"minNodeSize",{get:function(){return this.getPropertyValue("minNodeSize")},set:function(e){this.setPropertyValue("minNodeSize",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"nodes",{get:function(){if(!this._nodes){var e=this.createNode();e.events.on("hit",function(t){t.target.handleHit(t)}),this._nodes=new te.NE(e),this._disposers.push(new te.a7(this._nodes))}return this._nodes},enumerable:!0,configurable:!0}),r.prototype.createNode=function(){var e=new Ie;return this._disposers.push(e),e},Object.defineProperty(r.prototype,"links",{get:function(){return this._links||(this._links=new W.o(this.createLink()),this._disposers.push(new W.zQ(this._links))),this._links},enumerable:!0,configurable:!0}),r.prototype.createLink=function(){var e=new Oe;return this._disposers.push(e),e},r.prototype.feedLegend=function(){var e=this.legend;if(e){var t=[];this.nodes.each(function(i,a){t.push(a)}),e.data=t,e.dataFields.name="name"}},r.prototype.disposeData=function(){h.prototype.disposeData.call(this),this.nodes.clear()},r}(We.d);F.i.registeredClasses.FlowDiagram=He;var Ue=function(h){function r(){var e=h.call(this)||this;e.className="LabelBullet";var t=e.createChild(ht._);return t.shouldClone=!1,t.verticalCenter="middle",t.horizontalCenter="middle",t.truncate=!0,t.hideOversized=!1,t.maxWidth=500,t.maxHeight=500,t.stroke=(0,q.$_)(),t.strokeOpacity=0,t.fill=(new J.h).getFor("text"),e.events.on("maxsizechanged",e.handleMaxSize,e,!1),e.label=t,e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.handleMaxSize=function(){this.label.maxWidth=this.maxWidth,this.label.maxHeight=this.maxHeight},r.prototype.copyFrom=function(e){h.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label)},r}(pe.g);F.i.registeredClasses.LabelBullet=Ue;var kt=function(h){function r(){var e=h.call(this)||this;e.nextInCoord=0,e.nextOutCoord=0,e.className="SankeyNode",e.width=10,e.height=10;var t=e.createChild(Ue);t.shouldClone=!1,t.locationX=1,t.locationY=.5,t.label.text="{name}",t.width=150,t.height=150,t.label.horizontalCenter="left",t.label.padding(0,5,0,5),e.nameLabel=t;var i=e.createChild(Ue);i.shouldClone=!1,i.label.hideOversized=!1,i.locationX=.5,i.locationY=.5,i.width=150,i.height=150,i.label.horizontalCenter="middle",e.valueLabel=i;var a=e.hiddenState;return a.properties.fill=(new J.h).getFor("disabledBackground"),a.properties.opacity=.5,a.properties.visible=!0,e.background.hiddenState.copyFrom(a),e}return(0,D.ZT)(r,h),r.prototype.invalidateLinks=function(){var e=this;h.prototype.invalidateLinks.call(this),this.nextInCoord=0,this.nextOutCoord=0;var t=this.chart;if(t){var i=t.orientation;this._incomingSorted&&I.each(this._incomingSorted,function(a){var n=a.link,s=a.getWorkingValue("value");if(v.isNumber(s)){n.parent=e.chart.linksContainer;var o=void 0,l=void 0,d=void 0;if("horizontal"==i?(o=e.pixelX+e.dx,l=e.nextInCoord+e.pixelY+e.dy,d=0):(l=e.pixelY+e.dy,o=e.nextInCoord+e.pixelX+e.dx,d=90),n.endX=o,n.endY=l,n.startAngle=d,n.endAngle=d,n.gradient.rotation=d,n.linkWidth=s*t.valueHeight,!a.fromNode){"horizontal"==i?(n.maxWidth=200,n.startX=e.pixelX+e.dx-n.maxWidth,n.startY=n.endY):(n.maxHeight=200,n.startX=n.endX,n.startY=e.pixelY+e.dy-n.maxHeight),O.used(n.gradient),n.fill=a.toNode.color;var u=n.gradient.stops.getIndex(0);u&&("gradient"==n.colorMode&&(u.color=e.color),u.opacity=0,n.fill=n.gradient,n.stroke=n.gradient,n.gradient.validate())}e.nextInCoord+=n.linkWidth}}),this._outgoingSorted&&I.each(this._outgoingSorted,function(a){var n=a.link;n.parent=e.chart.linksContainer;var s=a.getWorkingValue("value");if(v.isNumber(s)){var o=void 0,l=void 0,d=void 0;if("horizontal"==i?(d=0,o=e.pixelX+e.pixelWidth+e.dx-1,l=e.nextOutCoord+e.pixelY+e.dy):(d=90,o=e.nextOutCoord+e.pixelX+e.dx,l=e.pixelY+e.pixelHeight+e.dy-1),n.startX=o,n.startY=l,n.startAngle=d,n.endAngle=d,n.gradient.rotation=d,n.linkWidth=s*e.chart.valueHeight,!a.toNode){"horizontal"==i?(n.maxWidth=200,n.endX=e.pixelX+n.maxWidth+e.dx,n.endY=n.startY):(n.maxHeight=200,n.endX=n.startX,n.endY=e.pixelY+n.maxHeight+e.dy),n.opacity=e.opacity;var u=n.gradient.stops.getIndex(1);u&&("gradient"==n.colorMode&&(u.color=e.color),u.opacity=0,n.fill=n.gradient,n.stroke=n.gradient,n.gradient.validate())}e.nextOutCoord+=n.linkWidth}})}this.positionBullet(this.nameLabel),this.positionBullet(this.valueLabel)},r.prototype.positionBullet=function(e){e&&(e.x=this.measuredWidth*e.locationX,e.y=this.measuredHeight*e.locationY)},Object.defineProperty(r.prototype,"level",{get:function(){return this.getPropertyValue("level")}
1,set:function(e){this.setPropertyValue("level",e,!0)},enumerable:!0,configurable:!0}),r.prototype.copyFrom=function(e){h.prototype.copyFrom.call(this,e),this.nameLabel.copyFrom(e.nameLabel),this.valueLabel.copyFrom(e.valueLabel)},r}(Ie);F.i.registeredClasses.SankeyNode=kt;var Ki=k(56644),Rt=function(h){function r(){var e=h.call(this)||this;return e.className="SankeyLink",new J.h,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(Ki.o),e.middleLine.shouldClone=!1,e.middleLine.strokeOpacity=0,e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.makeBackwards=function(){null!=this.states.getKey("backwards")&&this.setState("backwards")},r.prototype.validate=function(){var e,t,i,a;if(h.prototype.validate.call(this),!this.isTemplate){var n=this.startX,s=this.startY,o=this.endX,l=this.endY;if(this.states.getKey("backwards")&&this.setState("default"),this.dataItem){var d=this.dataItem.component;d&&("horizontal"==d.orientation?o<n&&(n=(e=(0,D.CR)([o,n],2))[0],o=e[1],s=(t=(0,D.CR)([l,s],2))[0],l=t[1],this.makeBackwards()):l<s&&(s=(i=(0,D.CR)([l,s],2))[0],l=i[1],n=(a=(0,D.CR)([o,n],2))[0],o=a[1],this.makeBackwards()))}v.isNumber(o)||(o=n),v.isNumber(l)||(l=s);var u=this.startAngle,c=this.endAngle,f=this.linkWidth,y="",g=n,m=s,x=o,b=l,P=n+f*p.sin(u),S=o+f*p.sin(c),A=s+f*p.cos(u),V=l+f*p.cos(c),T=n+f/2*p.sin(u),L=o+f/2*p.sin(c),w=s+f/2*p.cos(u),H=l+f/2*p.cos(c);this.zIndex=this.zIndex||this.dataItem.index;var Y=this.tension+(1-this.tension)*p.sin(u),X=this.tension+(1-this.tension)*p.cos(u);if(this.middleLine.tensionX=Y,this.middleLine.tensionY=X,v.isNumber(f)&&v.isNumber(n)&&v.isNumber(o)&&v.isNumber(s)&&v.isNumber(l)){p.round(g,3)==p.round(x,3)&&(x+=.01),p.round(m,3)==p.round(b,3)&&(b+=.01),p.round(P,3)==p.round(S,3)&&(S+=.01),p.round(A,3)==p.round(V,3)&&(V+=.01);var ee=Math.min(P,S,g,x),ce=Math.min(A,V,m,b),ie=Math.max(P,S,g,x),tt=Math.max(A,V,m,b);this._bbox={x:ee,y:ce,width:ie-ee,height:tt-ce};var Q=this.controlPointDistance,fe=g+(x-g)*Q*p.cos(u),ve=m+(b-m)*Q*p.sin(u),Ce=x-(x-g)*Q*p.cos(c),Pe=b-(b-m)*Q*p.sin(c),j=T+(L-T)*Q*p.cos(u),$=w+(H-w)*Q*p.sin(u),G=L-(L-T)*Q*p.cos(c),lr=H-(H-w)*Q*p.sin(c),it=p.getAngle({x:fe,y:ve},{x:Ce,y:Pe}),rt=(f/p.cos(it)-f)/p.tan(it)*p.cos(u),at=(f/p.sin(it)-f)*p.tan(it)*p.sin(u),hr=-rt/2+P+(S-P)*Q*p.cos(u),ur=-at/2+A+(V-A)*Q*p.sin(u),dr=-rt/2+S-(S-P)*Q*p.cos(c),cr=-at/2+V-(V-A)*Q*p.sin(c);H==w&&(H+=.01),this.middleLine.segments=[[{x:T,y:w},{x:j,y:$},{x:G,y:lr},{x:L,y:H}]],fe+=rt/2,ve+=at/2,Ce+=rt/2,Pe+=at/2,y+=C.moveTo({x:g,y:m}),y+=new ae.Jb(Y,X).smooth([{x:g,y:m},{x:fe,y:ve},{x:Ce,y:Pe},{x,y:b}]),y+=C.lineTo({x:S,y:V}),y+=new ae.Jb(Y,X).smooth([{x:S,y:V},{x:dr,y:cr},{x:hr,y:ur},{x:P,y:A}]),y+=C.closePath()}this.link.path=y,this.maskBullets&&(this.bulletsMask.path=y,this.bulletsContainer.mask=this.bulletsMask),this.positionBullets()}},Object.defineProperty(r.prototype,"startX",{get:function(){return this.getPropertyValue("startX")},set:function(e){this.setPropertyValue("startX",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endX",{get:function(){return this.getPropertyValue("endX")},set:function(e){this.setPropertyValue("endX",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"startY",{get:function(){return this.getPropertyValue("startY")},set:function(e){this.setPropertyValue("startY",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endY",{get:function(){return this.getPropertyValue("endY")},set:function(e){this.setPropertyValue("endY",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"linkWidth",{get:function(){return this.getPropertyValue("linkWidth")},set:function(e){this.setPropertyValue("linkWidth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"controlPointDistance",{get:function(){return this.getPropertyValue("controlPointDistance")},set:function(e){this.setPropertyValue("controlPointDistance",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e,!0)},enumerable:!0,configurable:!0}),r}(Oe);F.i.registeredClasses.SankeyLink=Rt;var Gi=k(11920),di=function(h){function r(){var e=h.call(this)||this;return e.className="SankeyDiagramDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),r}(Ee),ci=function(h){function r(){var e=h.call(this)||this;return e.className="SankeyDiagram",e.orientation="horizontal",e.nodeAlign="middle",e.nodesContainer.width=(0,R.aQ)(100),e.nodesContainer.height=(0,R.aQ)(100),e.linksContainer.width=(0,R.aQ)(100),e.linksContainer.height=(0,R.aQ)(100),e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.validateData=function(){var e=this;this._valueHeight=void 0,h.prototype.validateData.call(this),this._levelCount=0,this.nodes.each(function(t,i){i.level=void 0}),this.nodes.each(function(t,i){i.level=e.getNodeLevel(i,0),e._levelCount=p.max(e._levelCount,i.level)})},r.prototype.getNodeLevel=function(e,t){var i=this,a=[t];return I.each(e.incomingDataItems.iterator(),function(n){n.fromNode&&(v.isNumber(n.fromNode.level)?a.push(n.fromNode.level+1):(i._counter=0,i.checkLoop(n.fromNode),i._counter<i.dataItems.length&&a.push(i.getNodeLevel(n.fromNode,t+1))))}),Math.max.apply(Math,(0,D.fl)(a))},r.prototype.checkLoop=function(e){var t=this;this._counter++,!(this._counter>this.dataItems.length)&&I.each(e.incomingDataItems.iterator(),function(i){t.checkLoop(i.fromNode)})},r.prototype.calculateValueHeight=function(){var e=this;this._levelSum={},this._levelNodesCount={},this.maxSum=0;var i,a,n,t=this.dataItem.values.value.sum;I.each(this._sorted,function(u){e.getNodeValue(u[1])}),this.nodes.each(function(u,c){var f=c.level,y=Math.max(c.totalIncoming,c.totalOutgoing);y/t<e.minNodeSize&&(y=t*e.minNodeSize),v.isNumber(e._levelSum[f])?e._levelSum[f]+=y:e._levelSum[f]=y,v.isNumber(e._levelNodesCount[f])?e._levelNodesCount[f]++:e._levelNodesCount[f]=1}),i="horizontal"==this.orientation?this.chartContainer.maxHeight-1:this.chartContainer.maxWidth-1,E.each(this._levelSum,function(u,c){var f=c,g=(i-(e._levelNodesCount[u]-1)*e.nodePadding)/f;g==1/0&&(g=0),(n>g||!v.isNumber(n))&&(n=g,e.maxSum=f,a=v.toNumber(u))}),this._maxSumLevel=a;var o=(i-(this._levelNodesCount[this._maxSumLevel]-1)*this.nodePadding)/this.maxSum;if(o==1/0&&(o=0),v.isNumber(this.valueHeight)){var l=void 0;try{l=this._heightAnimation.animationOptions[0].to}catch{}if(l!=o){var d=this.interpolationDuration;try{d=this.nodes.template.states.getKey("active").transitionDuration}catch{}this._heightAnimation=new Gi.fw(this,{property:"valueHeight",from:this.valueHeight,to:o},d,this.interpolationEasing).start(),this._disposers.push(this._heightAnimation)}}else this.valueHeight=o},r.prototype.validate=function(){var e=this;h.prototype.validate.call(this),this.calculateValueHeight();var s,t=this.nodesContainer,i={},a=this._levelNodesCount[this._maxSumLevel],n=this.dataItem.values.value.sum;s="horizontal"==this.orientation?this.chartContainer.maxHeight-1:this.chartContainer.maxWidth-1,I.each(this._sorted,function(o){var l=o[1],d=l.level,u=0,c=e._levelNodesCount[d];switch(e.nodeAlign){case"bottom":u=(e.maxSum-e._levelSum[d])*e.valueHeight-(c-a)*e.nodePadding;break;case"middle":u=(e.maxSum-e._levelSum[d])*e.valueHeight/2-(c-a)*e.nodePadding/2}if(0==e.maxSum)switch(e.nodeAlign){case"bottom":u=s-c*(e.minNodeSize*s+e.nodePadding);break;case"middle":u=s/2-c/2*(e.minNodeSize*s+e.nodePadding)}l.parent=t;var y,g,m=Math.max(l.totalIncoming,l.totalOutgoing);if(m/n<e.minNodeSize&&(m=n*e.minNodeSize),"horizontal"==e.orientation){y=(e.innerWidth-l.pixelWidth)/e._levelCount*l.level,g=i[d]||u;var x=m*e.valueHeight;0==n&&0==x&&(x=e.minNodeSize*s),l.height=x,l.minX=y,l.maxX=y,i[d]=g+x+e.nodePadding}
1else{y=i[d]||u,g=(e.innerHeight-l.pixelHeight)/e._levelCount*l.level;var b=m*e.valueHeight;0==n&&0==b&&(b=e.minNodeSize*s),l.width=b,l.minY=g,l.maxY=g,i[d]=y+b+e.nodePadding}l.x=y,l.y=g})},r.prototype.showReal=function(e){var t=this;if(!this.preventShow){if(this.interpolationDuration>0){var i=this.nodesContainer,a=0;I.each(this.links.iterator(),function(n){n.hide(0)}),I.each(this._sorted,function(n){var o,s=n[1];"horizontal"==t.orientation?(s.dx=-(i.pixelWidth-s.pixelWidth)/Math.max(t._levelCount,1),o="dx"):(s.dy=-(i.pixelHeight-s.pixelHeight)/Math.max(t._levelCount,1),o="dy");var l=0;t.sequencedInterpolation&&(l=t.sequencedInterpolationDelay*a+t.interpolationDuration*a/I.length(t.nodes.iterator())),s.opacity=0,s.invalidateLinks(),s.animate([{property:"opacity",from:0,to:1},{property:o,to:0}],t.interpolationDuration,t.interpolationEasing).delay(l),I.each(s.outgoingDataItems.iterator(),function(u){var c=u.link.show(t.interpolationDuration);c&&!c.isFinished()&&c.delay(l)}),I.each(s.incomingDataItems.iterator(),function(u){if(!u.fromNode){var c=u.link.show(t.interpolationDuration);c&&!c.isFinished()&&c.delay(l)}}),a++})}return h.prototype.showReal.call(this)}},r.prototype.changeSorting=function(){var e=this;this.sortNodes();var t={};I.each(this._sorted,function(i){var o,l,a=i[1],n=a.level,s=(e.maxSum-e._levelSum[n])*e.valueHeight/2;"horizontal"==e.orientation?(o="y",l=a.pixelHeight):(o="x",l=a.pixelWidth),a.animate({property:o,to:t[n]||s},e.interpolationDuration,e.interpolationEasing),t[n]=(t[n]||s)+l+e.nodePadding,a.invalidateLinks()})},r.prototype.applyInternalDefaults=function(){h.prototype.applyInternalDefaults.call(this),v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Sankey diagram"))},r.prototype.createDataItem=function(){return new di},Object.defineProperty(r.prototype,"nodeAlign",{get:function(){return this.getPropertyValue("nodeAlign")},set:function(e){this.setPropertyValue("nodeAlign",e),this.changeSorting()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0);var t=this.nodes.template.nameLabel;"vertical"==e?(this.nodes.template.width=void 0,t.label.horizontalCenter="middle",t.locationX=.5):(this.nodes.template.height=void 0,t.label.horizontalCenter="left",t.locationX=1)},enumerable:!0,configurable:!0}),r.prototype.createNode=function(){var e=new kt;return this._disposers.push(e),e},r.prototype.createLink=function(){var e=new Rt;return this._disposers.push(e),e},Object.defineProperty(r.prototype,"valueHeight",{get:function(){return this._valueHeight},set:function(e){e!=this._valueHeight&&(this._valueHeight=e,this.invalidate())},enumerable:!0,configurable:!0}),r.prototype.disposeData=function(){h.prototype.disposeData.call(this),this._sorted=this.nodes.iterator()},r}(He);F.i.registeredClasses.SankeyDiagram=ci;var Nt=function(h){function r(){var e=h.call(this)||this;e.className="ChordNode";var t=e.createChild(Ve);t.location=.5,t.radius=5,t.text="{name}",t.zIndex=1,t.shouldClone=!1,e.label=t,e.layout="none",e.events.on("positionchanged",e.updateRotation,e,!1),e.isMeasured=!1,e.slice=e.createChild(At.p),e.slice.isMeasured=!1;var i=e.hiddenState;return i.properties.fill=(new J.h).getFor("disabledBackground"),i.properties.opacity=.5,i.properties.visible=!0,e.setStateOnChildren=!1,e.slice.hiddenState.properties.visible=!0,e.adapter.add("tooltipX",function(a,n){return n.slice.ix*(n.slice.radius-(n.slice.radius-n.slice.pixelInnerRadius)/2)}),e.adapter.add("tooltipY",function(a,n){return n.slice.iy*(n.slice.radius-(n.slice.radius-n.slice.pixelInnerRadius)/2)}),e}return(0,D.ZT)(r,h),r.prototype.invalidateLinks=function(){var e=this;h.prototype.invalidateLinks.call(this);var t=this.label,i=this.slice,a=this.chart;if(a&&i){var n=this.total,s=i.arc,o=i.startAngle;this.children.each(function(u){if(u instanceof pe.g){var c=u.locationX;v.isNumber(c)||(c=.5);var f=u.locationY;v.isNumber(f)||(f=1);var y=o+s*c,g=f*i.radius;u.x=g*p.cos(y),u.y=g*p.sin(y)}});var l=o+s*t.location,d=o+(1-n/this.adjustedTotal)*s*.5;v.isNaN(d)&&(d=o),t.fixPosition(l,i.radius),this.nextAngle=d,this._outgoingSorted&&I.each(this._outgoingSorted,function(u){var c=u.link;c.parent=e.chart.linksContainer;var f=u.getWorkingValue("value");if(v.isNumber(f)){if(a.nonRibbon){var y=c.percentWidth;v.isNumber(y)||(y=5),c.startAngle=o+s/2-s/2*(y/=100),c.arc=s*y}else c.arc=f*a.valueAngle,c.startAngle=e.nextAngle,e.nextAngle+=c.arc;u.toNode||(c.endAngle=c.startAngle),c.radius=i.pixelInnerRadius}}),this._incomingSorted&&I.each(this._incomingSorted,function(u){var c=u.link;if(c.radius=i.pixelInnerRadius,a.nonRibbon){var f=c.percentWidth;v.isNumber(f)||(f=5),c.endAngle=o+s/2-s/2*(f/=100),c.arc=s*f}else{c.endAngle=e.nextAngle;var y=u.getWorkingValue("value");v.isNumber(y)&&(c.arc=y*a.valueAngle,e.nextAngle+=c.arc)}u.fromNode||(c.startAngle=c.endAngle)})}},r.prototype.updateRotation=function(){var e=this.slice,t=this.trueStartAngle+e.arc/2,i=e.radius,a=i*p.cos(t),n=i*p.sin(t),s=p.getAngle({x:a+this.pixelX,y:n+this.pixelY});e.startAngle=this.trueStartAngle+(s-t),this.dx=-this.pixelX,this.dy=-this.pixelY},r.prototype.copyFrom=function(e){h.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label),this.slice.copyFrom(e.slice)},r}(Ie);F.i.registeredClasses.ChordNode=Nt;var Qi=function(h){function r(){var e=h.call(this)||this;return e.className="QuadraticCurve",e.element=e.paper.add("path"),e.pixelPerfect=!1,e.fill=(0,q.$_)(),e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.draw=function(){if(v.isNumber(this.x1+this.x2+this.y1+this.y2+this.cpx+this.cpy)){var t={x:this.x2,y:this.y2},i={x:this.cpx,y:this.cpy},a=C.moveTo({x:this.x1,y:this.y1})+C.quadraticCurveTo(t,i);this.path=a}},Object.defineProperty(r.prototype,"cpx",{get:function(){return this.getPropertyValue("cpx")},set:function(e){this.setPropertyValue("cpx",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"cpy",{get:function(){return this.getPropertyValue("cpy")},set:function(e){this.setPropertyValue("cpy",e,!0)},enumerable:!0,configurable:!0}),r.prototype.positionToPoint=function(e){var t={x:this.x1,y:this.y1},i={x:this.cpx,y:this.cpy},a={x:this.x2,y:this.y2},n=p.getPointOnQuadraticCurve(t,a,i,e),s=p.getPointOnQuadraticCurve(t,a,i,e+.001);return{x:n.x,y:n.y,angle:p.getAngle(n,s)}},r}(ne.x),wt=function(h){function r(){var e=h.call(this)||this;return e.className="ChordLink",e.middleLine=e.createChild(Qi),e.middleLine.shouldClone=!1,e.middleLine.strokeOpacity=0,e.a
1pplyTheme(),e}return(0,D.ZT)(r,h),r.prototype.validate=function(){if(h.prototype.validate.call(this),!this.isTemplate){var e=this.startAngle,t=this.endAngle,i=this.arc,a=this.radius,n=this.dataItem.fromNode,s=this.dataItem.toNode,o=0,l=0;n&&(o=n.pixelX+n.dx,l=n.pixelY+n.dy);var d=0,u=0;if(s&&(d=s.pixelX+s.dx,u=s.pixelY+s.dy),a>0){var c=a*p.cos(e)+o,f=a*p.sin(e)+l,y=a*p.cos(t)+d,g=a*p.sin(t)+u,m={x:0,y:0},x=C.moveTo({x:c,y:f});x+=C.arcTo(e,i,a),x+=C.quadraticCurveTo({x:y,y:g},m),x+=C.arcTo(t,i,a),x+=C.quadraticCurveTo({x:c,y:f},m),this.link.path=i>0?x:"",this.maskBullets&&(this.bulletsMask.path=x,this.bulletsContainer.mask=this.bulletsMask);var b=e+i/2,P=t+i/2,S=this.middleLine;S.x1=a*p.cos(b)+o,S.y1=a*p.sin(b)+l,S.x2=a*p.cos(P)+d,S.y2=a*p.sin(P)+u,S.cpx=0,S.cpy=0,S.stroke=this.fill,this.positionBullets()}}},Object.defineProperty(r.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPropertyValue("radius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(e){this.setPropertyValue("arc",e,!0)},enumerable:!0,configurable:!0}),r}(Oe);F.i.registeredClasses.ChordLink=wt;var pi=function(h){function r(){var e=h.call(this)||this;return e.className="ChordDiagramDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),r}(Ee),fi=function(h){function r(){var e=h.call(this)||this;e.valueAngle=0,e.className="ChordDiagram",e.startAngle=-90,e.endAngle=270,e.radius=(0,R.aQ)(80),e.innerRadius=-15,e.nodePadding=5;var t=e.chartContainer.createChild(K.W);return t.align="center",t.valign="middle",t.shouldClone=!1,t.layout="absolute",e.chordContainer=t,e.nodesContainer.parent=t,e.linksContainer.parent=t,e.chartContainer.events.on("maxsizechanged",e.invalidate,e,!1),e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.validate=function(){var e=this,t=this.chartContainer,i=this.endAngle,a=this.startAngle+this.nodePadding/2,n=p.getArcRect(this.startAngle,this.endAngle,1);n=p.getCommonRectangle([n,{x:0,y:0,width:0,height:0}]);var o=Math.min(t.innerWidth/n.width,t.innerHeight/n.height);v.isNumber(o)||(o=0);var l=O.relativeRadiusToValue(this.radius,o),d=O.relativeRadiusToValue(this.innerRadius,l,!0),u=this.dataItem.values.value.sum,c=0,f=0;I.each(this._sorted,function(y){var g=y[1];e.getNodeValue(g),c++;var m=g.total;g.total/u<e.minNodeSize&&(m=u*e.minNodeSize),f+=m}),this.valueAngle=(i-this.startAngle-this.nodePadding*c)/f,I.each(this._sorted,function(y){var g=y[1],m=g.slice;m.radius=l,m.innerRadius=d;var b,x=g.total;g.total/u<e.minNodeSize&&(x=u*e.minNodeSize),g.adjustedTotal=x,m.arc=b=e.nonRibbon?(i-e.startAngle)/c-e.nodePadding:e.valueAngle*x,m.startAngle=a,g.trueStartAngle=a,g.parent=e.nodesContainer,g.validate(),a+=b+e.nodePadding}),this.chordContainer.definedBBox={x:l*n.x,y:l*n.y,width:l*n.width,height:l*n.height},this.chordContainer.invalidateLayout(),h.prototype.validate.call(this)},r.prototype.applyInternalDefaults=function(){h.prototype.applyInternalDefaults.call(this),v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Chord diagram"))},r.prototype.createDataItem=function(){return new pi},Object.defineProperty(r.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"nonRibbon",{get:function(){return this.getPropertyValue("nonRibbon")},set:function(e){this.setPropertyValue("nonRibbon",e,!0),this.links.template.middleLine.strokeOpacity=1,this.links.template.link.fillOpacity=0}
1,enumerable:!0,configurable:!0}),r.prototype.createNode=function(){var e=new Nt;return this._disposers.push(e),e},r.prototype.createLink=function(){var e=new wt;return this._disposers.push(e),e},r}(He);F.i.registeredClasses.ChordDiagram=fi;var ue=function(h){function r(){var e=h.call(this)||this;return e.className="Column",e.width=(0,R.aQ)(80),e.height=(0,R.aQ)(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(0,D.ZT)(r,h),r.prototype.handleKidAdded=function(){"none"==this.layout&&(this.layout="absolute")},r.prototype.createAssets=function(){this.column=this.createChild(Be.c),this.column.shouldClone=!1,this.column.isMeasured=!1,this.column.cornerRadius(0,0,0,0),this._disposers.push(this.column)},r.prototype.validate=function(){h.prototype.validate.call(this);var e=this.column;e&&(e.width=p.min(this.pixelWidth,this.maxWidth),e.height=p.min(this.pixelHeight,this.maxHeight),e.invalid&&e.validate())},r.prototype.copyFrom=function(e){h.prototype.copyFrom.call(this,e),this.column&&this.column.copyFrom(e.column)},Object.defineProperty(r.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:p.min(this.pixelWidth,this.maxWidth),height:p.min(this.pixelHeight,this.maxHeight)}},enumerable:!0,configurable:!0}),r}(K.W);F.i.registeredClasses.Column=ue;var se=function(h){function r(){var e=h.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(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"column",{get:function(){return this._column},set:function(e){this.setColumn(e)},enumerable:!0,configurable:!0}),r.prototype.setColumn=function(e){var t=this;if(this._column&&e!=this._column&&z.remove(this.sprites,this._column),this._column=e,e){var i=e.dataItem;i&&i!=this&&(i.column=void 0),this.addSprite(e),this._disposers.push(new Z.ku(function(){t.component&&t.component.columns.removeValue(e)}))}},Object.defineProperty(r.prototype,"width",{get:function(){var e=this.properties.width;return this._adapterO&&(e=this._adapterO.apply("width",e)),e},set:function(e){this.properties.width!=e&&(this.properties.width=e,this.component&&this.component.validateDataElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){var e=this.properties.height;return this._adapterO&&(e=this._adapterO.apply("height",e)),e},set:function(e){this.properties.height!=e&&(this.properties.height=e,this.component&&this.component.validateDataElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rangesColumns",{get:function(){return this._rangesColumns||(this._rangesColumns=new te.Xy),this._rangesColumns},enumerable:!0,configurable:!0}),r}(Ae),de=function(h){function r(){var e=h.call(this)||this;e._startLocation=0,e._endLocation=1,e.className="ColumnSeries",e.width=(0,R.aQ)(100),e.height=(0,R.aQ)(100),e.strokeOpacity=0,e.fillOpacity=1,e.clustered=!0;var t=e.mainContainer.createChild(K.W);return t.shouldClone=!1,t.isMeasured=!1,t.layout="none",e._columnsContainer=t,e.columns.template.pixelPerfect=!1,e.tooltipColorSource=e.columns.template,e.applyTheme(),e}return(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"columnsContainer",{get:function(){return this._columnsContainer},enumerable:!0,configurable:!0}),r.prototype.applyInternalDefaults=function(){h.prototype.applyInternalDefaults.call(this),v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Column Series"))},r.prototype.createDataItem=function(){return new se},r.prototype.validate=function(){var e=this;if(this.group.node.removeAttribute("fill"),this.chart&&this.xAxis&&this.yAxis){var s,i=0,a=0,n=[];I.each(this.chart.series.iterator(),function(g){var m;g instanceof r&&e.baseAxis==g.baseAxis&&(m=e.baseAxis==e.xAxis?e.chart.yAxes.indexOf(g.yAxis):e.chart.xAxes.indexOf(g.xAxis),n.push({series:g,axis:m}))}),n.sort(function(g,m){return g.axis-m.axis}),z.each(n,function(g){var m=g.series;m instanceof r&&((!m.stacked&&m.clustered||s!=g.axis&&m.clustered)&&i++,m==e&&(a=i-1)),s=g.axis}),this.clustered||(a=0,i=1);var o=this.baseAxis.renderer,l=o.cellStartLocation,d=o.cellEndLocation;this._startLocation=l+a/i*(d-l),this._endLocation=l+(a+1)/i*(d-l);var u=this.xAxis,c=this.yAxis;u instanceof U&&c instanceof M.m&&u.sortBySeries==this&&this.sortCategoryAxis(u,"valueY"),c instanceof U&&u instanceof M.m&&c.sortBySeries==this&&this.sortCategoryAxis(c,"valueX")}h.prototype.validate.call(this);for(var f=0;f<this.startIndex;f++){var y=this.dataItems.getIndex(f);this.disableUnusedColumns(y)}for(f=this.dataItems.length-1;f>this.endIndex;f--)y=this.dataItems.getIndex(f),this.disableUnusedColumns(y);this._propertiesChanged=!1},r.prototype.sortCategoryAxis=function(e,t){var i=this;this.dataItems.values.sort(function(n,s){return s.values[t].workingValue-n.values[t].workingValue});var a=0;this.dataItems.each(function(n){n._index=a,a++}),e.dataItems.each(function(n){var s=n.component,o=s.categoryToPosition(n.category)-n.deltaPosition,l=s.getSeriesDataItemByCategory(n.category,i);if(l){var d=i.dataItems.indexOf(l);n._index=d;var u=p.round((d+.5)/i.dataItems.length-o,3);n.deltaAnimation&&!n.deltaAnimation.isDisposed()&&n.deltaAnimation.animationOptions[0].to==u||u!=p.round(n.deltaPosition,3)&&(n.deltaAnimation&&n.deltaAnimation.stop(),n.deltaAnimation=n.animate({property:"deltaPosition",from:-u,to:0},s.interpolationDuration,s.interpolationEasing),i._disposers.push(n.deltaAnimation))}}),e.dataItems.values.sort(function(n,s){return n.index-s.index})},r.prototype.validateDataElement=function(e){this.chart&&this.xAxis&&this.yAxis&&(this.validateDataElementReal(e),h.prototype.validateDataElement.call(this,e))},r.prototype.getStartLocation=function(e){return this._startLocation+(this.baseAxis==this.xAxis?e.locations[this.xOpenField]-.5:e.locations[this.yOpenField]-.5)},r.prototype.getEndLocation=function(e){return this._endLocation+(this.baseAxis==this.xAxis?e.locations[this.xField]-.5:e.locations[this.yField]-.5)},r.prototype.validateDataElementReal=function(e){var i,a,n,s,t=this,o=this.getStartLocation(e),l=this.getEndLocation(e),d=this.xField,u=this.xOpenField,c=this.yField,f=this.yOpenField,y=this.columns.template,g=y.percentWidth,m=y.percentHeight,x=y.pixelWidth,b=y.pixelHeight,P=y.maxWidth,S=y.maxHeight,A=y.pixelPaddingLeft,V=y.pixelPaddingRight,T=y.pixelPaddingTop,L=y.pixelPaddingBottom,w=!1,H=e.width;v.hasValue(H)&&(v.isNumber(H)&&(x=H),H instanceof R.gG&&(g=100*H.value));var Y=e.height;if(v.hasValue(Y)&&(v.isNumber(Y)&&(b=Y),Y instanceof R.gG&&(m=100*Y.value)),this.xAxis instanceof U&&this.yAxis instanceof U){if
1(!e.hasValue(this._xValueFields)||!e.hasValue(this._yValueFields))return;o=0,l=1,v.isNaN(g)||(o+=X=p.round((l-o)*(1-g/100)/2,5),l-=X),i=this.xAxis.getX(e,u,o),a=this.xAxis.getX(e,d,l),v.isNaN(g)&&(i+=X=(a-i-x)/2,a-=X),!v.isNaN(P)&&P<Math.abs(a-i)&&(i+=X=(a-i-P)/2,a-=X),o=0,l=1,v.isNaN(m)||(o+=X=p.round((1-m/100)/2,5),l-=X),n=this.yAxis.getY(e,f,o),s=this.yAxis.getY(e,c,l),v.isNaN(m)&&(s+=X=(s-n-b)/2,n-=X),!v.isNaN(S)&&S<Math.abs(s-n)&&(s+=X=(s-n-S)/2,n-=X),a=this.fixHorizontalCoordinate(a),i=this.fixHorizontalCoordinate(i),n=this.fixVerticalCoordinate(n),s=this.fixVerticalCoordinate(s)}else if(this.baseAxis==this.xAxis){if(!e.hasValue(this._yValueFields))return;v.isNaN(g)||(o+=X=p.round((l-o)*(1-g/100)/2,5),l-=X),i=this.xAxis.getX(e,u,o),a=this.xAxis.getX(e,d,l),v.isNaN(g)&&(i+=X=(a-i-x)/2,a-=X),!v.isNaN(P)&&P<Math.abs(a-i)&&(i+=X=(a-i-P)/2,a-=X);var ee=e.locations[f],ce=e.locations[c];this.yAxis instanceof M.m&&this.dataFields[this.yField]!=this.dataFields[this.yOpenField]&&(ee=0,ce=0),s=this.yAxis.getY(e,f,ee),n=this.yAxis.getY(e,c,ce);var ie=Math.ceil(this.yAxis.axisLength);(n<0&&s<0||n>ie&&s>ie)&&(w=!0),n=this.fixVerticalCoordinate(n),s=this.fixVerticalCoordinate(s),Math.abs(a-i)-A-V==0&&(w=!0)}else{if(!e.hasValue(this._xValueFields))return;var X;v.isNaN(m)||(o+=X=p.round((l-o)*(1-m/100)/2,5),l-=X),n=this.yAxis.getY(e,f,o),s=this.yAxis.getY(e,c,l),v.isNaN(m)&&(s-=X=(s-n-b)/2,n+=X),!v.isNaN(S)&&S<Math.abs(s-n)&&(s-=X=(s-n-S)/2,n+=X);var tt=e.locations[d],Q=e.locations[u];this.xAxis instanceof M.m&&this.dataFields[this.xField]!=this.dataFields[this.xOpenField]&&(tt=0,Q=0),a=this.xAxis.getX(e,d,tt),i=this.xAxis.getX(e,u,Q),ie=Math.ceil(this.xAxis.axisLength),(a<0&&i<0||a>ie&&i>ie)&&(w=!0),a=this.fixHorizontalCoordinate(a),i=this.fixHorizontalCoordinate(i),Math.abs(n-s)-T-L==0&&(w=!0)}var j,fe=Math.abs(a-i),ve=Math.abs(s-n),Ce=Math.min(i,a),Pe=Math.min(n,s);w?this.disableUnusedColumns(e):(e.column?(j=e.column,this._propertiesChanged&&(E.copyProperties(this,j,_.hh),E.copyProperties(this.columns.template,j,_.hh),z.each(_.hh,function($){j[$]=j[$]}))):(j=this.columns.create(),E.copyProperties(this,j,_.hh),E.copyProperties(this.columns.template,j,_.hh),e.addSprite(j),e.column=j,j.paper=this.paper,this.itemsFocusable()?(v.hasValue(this.role)||(this.role="menu"),v.hasValue(j.role)||(j.role="menuitem"),j.focusable=!0):(v.hasValue(this.role)||(this.role="list"),v.hasValue(j.role)||(j.role="listitem"),j.focusable=!1),j.focusable&&(j.events.on("focus",function($){j.readerTitle=t.populateString(t.itemReaderText,e)},void 0,!1),j.events.on("blur",function($){j.readerTitle=""},void 0,!1)),j.hoverable&&(j.events.on("over",function($){j.readerTitle=t.populateString(t.itemReaderText,e)},void 0,!1),j.events.on("out",function($){j.readerTitle=""},void 0,!1)),j.parent=this.columnsContainer,j.virtualParent=this),j.width=fe,j.height=ve,j.x=Ce,j.y=Pe,j.realX=i,j.realY=n,j.realWidth=a-i,j.realHeight=s-n,this.setColumnStates(j),j.invalid&&j.validate(),j.__disabled=!1,I.each(this.axisRanges.iterator(),function($){var G=e.rangesColumns.getKey($.uid);G||(G=t.columns.create(),E.copyProperties($.contents,G,_.hh),e.addSprite(G),e.rangesColumns.setKey($.uid,G),G.paper=t.paper),G.parent=$.contents,G.width=fe,G.height=ve,G.x=Ce,G.y=Pe,t.setColumnStates(G),G.invalid&&G.validate(),G.__disabled=!1})),e.itemWidth=fe,e.itemHeight=ve},r.prototype.disableUnusedColumns=function(e){e&&(e.column&&(e.column.width=0,e.column.height=0,e.column.__disabled=!0),I.each(this.axisRanges.iterator(),function(t){var i=e.rangesColumns.getKey(t.uid);i&&(i.width=0,i.height=0,i.__disabled=!0)}))},r.prototype.setColumnStates=function(e){if(this._dropFromOpenState||this._dropFromPreviousState||this._riseFromOpenState||this._riseFromPreviousState){var t=e.dataItem;if(this.xAxis instanceof M.m||this.yAxis instanceof M.m){var i,a=void 0,n=void 0;this.baseAxis==this.yAxis?(this.xOpenField&&this.xField&&this.xAxis instanceof M.m&&(i=t.getValue(this.xOpenField),a=t.getValue(this.xField)),n=t.getValue(this.xAxis.axisFieldName+"X","previousChange")):(this.yOpenField&&this.yField&&this.yAxis instanceof M.m&&(i=t.getValue(this.yOpenField),a=t.getValue(this.yField)),n=t.getValue(this.yAxis.axisFieldName+"Y","previousChange")),a<i?(t.droppedFromOpen=!0,e.defaultState.copyFrom(this._dropFromOpenState),e.setState(this._dropFromOpenState,0)):(t.droppedFromOpen=!1,e.defaultState.copyFrom(this._riseFromOpenState),e.setState(this._riseFromOpenState,0)),n<0?(t.droppedFromPrevious=!0,e.defaultState.copyFrom(this._dropFromPreviousState),e.setState(this._dropFromPreviousState,0)):(t.droppedFromPrevious=!1,e.defaultState.copyFrom(this._riseFromPreviousState),e.setState(this._riseFromPreviousState,0))}}},Object.defineProperty(r.prototype,"columns",{get:function(){return this._columns||(this._columns=new W.o(this.createColumnTemplate()),this._disposers.push(new W.zQ(this._columns)),this._disposers.push(this._columns.template)),this._columns},enumerable:!0,configurable:!0}),r.prototype.createColumnTemplate=function(){return new ue},Object.defineProperty(r.prototype,"clustered",{get:function(){return this.getPropertyValue("clustered")},set:function(e){this.setPropertyValue("clustered",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"dropFromOpenState",{get:function(){return this._dropFromOpenState||(this._dropFromOpenState=this.states.create("dropFromOpenState")),this._dropFromOpenState},set:function(e){this._dropFromOpenState=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"dropFromPreviousState",{get:function(){return this._dropFromPreviousState||(this._dropFromPreviousState=this.states.create("dropFromPreviousState")),this._dropFromPreviousState},set:function(e){this._dropFromPreviousState=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"riseFromOpenState",{get:function(){return this._riseFromOpenState||(this._riseFromOpenState=this.states.create("riseFromOpenState")),this._riseFromOpenState},set:function(e){this._riseFromOpenState=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"riseFromPreviousState",{get:function(){return this._riseFromPreviousState||(this._riseFromPreviousState=this.states.create("riseFromPreviousState")),this._riseFromPreviousState},set:function(e){this._riseFromPreviousState=e},enumerable:!0,configurable:!0}),r.prototype.updateLegendValue=function(e,t){var n,s,i=this;h.prototype.updateLegendValue.call(this,e,t),this.legendDataItem&&(e&&(n=e.droppedFromOpen?this._dropFromOpenState:this._riseFromOpenState,s=e.droppedFromPrevious?this._dropFromPreviousState:this._riseFromPreviousState),I.each(this.legendDataItem.marker.children.iterator(),function(o){e?(o.setState(s),o.setState(n)):(o.setState(i._riseFromPreviousState),o.setState(i._riseFromOpenState))}))},r.prototype.createLegendMarker=function(e){var t=e.pixelWidth,i=e.pixelHeight;e.removeChildren();var a=e.createChild(Be.c);a.shouldClone=!1,E.copyProperties(this,a,_.hh),a.copyFrom(this.columns.template),a.padding(0,0,0,0),a.width=t,a.height=i;var n=e.dataItem;n.color=this.fill,n.colorOrig=this.fill},r.prototype.copyFrom=function(e){h.prototype.copyFrom.call(this,e),this.columns.template.copyFrom(e.columns.template)},r.prototype.getBulletLocationX=function(e,t){if(this.baseAxis==this.xAxis){var i=e.locationX;v.isNumber(i)||(i=.5);var a=this.getEndLocation(e.dataItem);return a-(a-this.getStartLocation(e.dataItem))*i}return h.prototype.getBulletLocationX.call(this,e,t)},r.prototype.getBulletLocationY=function(e,t){if(this.baseAxis==this.yAxis){var i=e.locationY;v.isNumber(i)||(i=.5);var a=this.getEndLocation(e.dataItem);return a-(a-this.getStartLocation(e.dataItem))*i}return h.prototype.getBulletLocationY.call(this,e,t)},r.prototype.getAdjustedXLocation=function(e,t,i){return v.isNumber(i)||(i=e?e.locations[t]:.5),this._endLocation-(this._endLocation-this._startLocation)*(1-i)},r.prototype.getAdjustedYLocation=function(e,t,i){return v.isNumber(i)||(i=e?e.locations[t]:.5),this._endLocation-(this._endLocation-this._startLocation)*i},r.prototype.fixVerticalCoordinate=function(e){return p.fitToRange(e,-this.columns.template.pixelPaddingTop,this.yAxis.axisLength+this.columns.template.pixelPaddingBottom)},r.prototype.fixHorizontalCoordinate=function(e){return p.fitToRange(e,-this.columns.template.pixelPaddingLeft,this.xAxis.axisLength+this.columns.template.pixelPaddingRight)},r.prototype.disposeData=function(){h.prototype.disposeData.call(this),this.columns.clear()},r}(le);F.i.registeredClasses.ColumnSeries=de,F.i.registeredClasses.ColumnSeriesDataItem=se;var Lt=function(h){function r(){var e=h.call(this)||this;return e.className="TreeMapSeriesDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"parentName",{get:function(){var e=this.treeMapDataItem;if(e&&e.parent)return e.parent.name},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"value",{get:function(){var e=this.treeMapDataItem;if(e)return e.value},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"treeMapDataItem",{get:function(){return this._dataContext},enumerable:!0,configurable:!0}),r.prototype.hide=function(e,t,i,a){var n=this.treeMapDataItem;return n&&n.hide(e),h.prototype.hide.call(this,e,t,i,a)},r.prototype.show=function(e,t,i){var a=this.treeMapDataItem;return a&&a.show(e,t,i),h.prototype.show.call(this,e,t,i)},r}(se),Ze=function(h){function r(){var e=h.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 t=new J.h;return e.stroke=t.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(0,D.ZT)(r,h),r.prototype.processDataItem=function(e,t){t.seriesDataItem=e,h.prototype.processDataItem.call(this,e,t)},r.prototype.createDataItem=function(){return new Lt},r.prototype.show=function(e){if(!this.preventShow){var t=this.defaultState.transitionDuration;return v.isNumber(e)&&(t=e),this.dataItems.each(function(i){i.show(e)}),h.prototype.showReal.call(this,t)}},r.prototype.hide=function(e){var t=this.defaultState.transitionDuration;v.isNumber(e)&&(t=e);var i=h.prototype.hideReal.call(this,t);return this.dataItems.each(function(a){a.hide(e)}),i},r.prototype.processValues=function(){},r.prototype.getStartLocation=function(e){return 0},r.prototype.getEndLocation=function(e){return 1},r.prototype.dataChangeUpdate=function(){},r.prototype.processConfig=function(e){e&&(!v.hasValue(e.dataFields)||!v.isObject(e.dataFields))&&(e.dataFields={}),h.prototype.processConfig.call(this,e)},r.prototype.createLegendMarker=function(e){var t=e.pixelWidth,i=e.pixelHeight;e.removeChildren();var a=e.createChild(Be.c);a.shouldClone=!1,E.copyProperties(this,a,_.hh),a.padding(0,0,0,0),a.width=t,a.height=i;var n=e.dataItem;n.color=a.fill,n.colorOrig=a.fill},r.prototype.disableUnusedColumns=function(e){h.prototype.disableUnusedColumns.call(this,e),e.column&&(e.column.__disabled=!1)},r}(de);F.i.registeredClasses.TreeMapSeries=Ze,F.i.registeredClasses.TreeMapSeriesDataItem=Lt;var Ke=k(9976),vi=function(h){function r(){var e=h.call(this)||this;return e.rows=[],e.className="TreeMapDataItem",e.values.value={workingValue:0},e.values.x0={},e.values.y0={},e.values.x1={},e.values.y1={},e.hasChildren.children=!0,e.applyTheme(),e}return(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(e){this._legendDataItem=e,e.label&&(e.label.dataItem=this),e.valueLabel&&(e.valueLabel.dataItem=this)},enumerable:!0,configurable:!0}),r.prototype.getDuration=function(){return 0},Object.defineProperty(r.prototype,"value",{get:function(){var e=0;return this.children&&0!=this.children.length?I.each(this.children.iterator(),function(t){var i=t.value;v.isNumber(i)&&(e+=i)}):e=this.values.value.workingValue,e},set:function(e){this.setValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"percent",{get:function(){return this.parent?this.value/this.parent.value*100:100},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"x0",{get:function(){return this.values.x0.value},set:function(e){this.setValue("x0",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"x1",{get:function(){return this.values.x1.value},set:function(e){this.setValue("x1",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"y0",{get:function(){return this.values.y0.value},set:function(e){this.setValue("y0",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"y1",{get:function(){return this.values.y1.value},set:function(e){this.setValue("y1",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return this.properties.name},set:function(e){this.setProperty("name",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"children",{get:function(){return this.properties.children},set:function(e){this.setProperty("children",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"level",{get:function(){return this.parent?this.parent.level+1:0},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"color",{get:function(){var e=this.properties.color;return null==e&&this.parent&&(e=this.parent.color),null==e&&this.component&&(e=this.component.colors.getIndex(this.component.colors.step*this.index)),e},set:function(e){this.setProperty("color",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fill",{get:function(){return this.color},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"series",{get:function(){return this._series},set:function(e){e!=this._series&&(this._series&&(this.component.series.removeValue(this._series),this._series.dispose()),this._series=e,this._disposers.push(e))},enumerable:!0,configurable:!0}),r.prototype.hide=function(e,t,i,a){this.setWorkingValue("value",0),this.children&&this.children.each(function(s){s.hide(e,t,i,a)});var n=this.seriesDataItem;return n&&n.bullets.each(function(s,o){o.hide(),o.preventShow=!0}),h.prototype.hide.call(this,e,t,i,a)},r.prototype.show=function(e,t,i){this.setWorkingValue("value",this.values.value.value),this.children&&this.children.each(function(n){n.show(e,t,i)});var a=this.seriesDataItem;return a&&a.bullets.each(function(n,s){s.preventShow=!1}),h.prototype.show.call(this,e,t,i)},r}(Ne),yi=function(h){function r(){var e=h.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 Ct.U,e.sorting="descending";var t=e.xAxes.push(new M.m);t.title.disabled=!0,t.strictMinMax=!0;var i=t.renderer;i.inside=!0,i.labels.template.disabled=!0,i.ticks.template.disabled=!0,i.grid.template.disabled=!0,i.axisFills.template.disabled=!0,i.minGridDistance=100,i.line.disabled=!0,i.baseGrid.disabled=!0;var a=e.yAxes.push(new M.m);a.title.disabled=!0,a.strictMinMax=!0;var n=a.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=t,e.yAxis=a;var s=new Ze;return e.seriesTemplates=new te.NE(s),s.virtualParent=e,e._disposers.push(new te.a7(e.seriesTemplates)),e._disposers.push(s),e.zoomOutButton.events.on("hit",function(){e.zoomToChartDataItem(e._homeDataItem)},void 0,!1),e.seriesTemplates.events.on("insertKey",function(o){o.newValue.isTemplate=!0},void 0,!1),e.applyTheme(),e}return(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"navigationBar",{get:function(){return this._navigationBar},set:function(e){var t=this;this._navigationBar!=e&&(this._navigationBar=e,e.parent=this,e.toBack(),e.links.template.events.on("hit",function(i){var a=i.target.dataItem.dataContext;a.isDisposed()||(t.zoomToChartDataItem(a),t.createTreeSeries(a))},void 0,!0),this._disposers.push(e))},enumerable:!0,configurable:!0}),r.prototype.validateData=function(){this.series.clear(),this._tempSeries=[],h.prototype.validateData.call(this),this._homeDataItem&&this._homeDataItem.dispose();var e=this.dataItems.template.cl
1one();this._homeDataItem=e,I.each(this.dataItems.iterator(),function(a){a.parent=e}),e.children=this.dataItems,e.x0=0,e.y0=0,e.name=this._homeText;var t=1e3,i=10*Math.round(t*this.pixelHeight/this.pixelWidth/10)||1e3;e.x1=t,e.y1=i,this.xAxis.min=0,this.xAxis.max=t,this.xAxis.getMinMax(),this.yAxis.min=0,this.yAxis.max=i,this.yAxis.getMinMax(),this.layoutItems(e),this.createTreeSeries(e),this.feedLegend()},r.prototype.layoutItems=function(e,t){if(e){var i=e.children;t||(t=this.sorting),"ascending"==t&&i.values.sort(function(o,l){return o.value-l.value}),"descending"==t&&i.values.sort(function(o,l){return l.value-o.value}),this._updateDataItemIndexes(0),this.layoutAlgorithm(e);for(var a=0,n=i.length;a<n;a++){var s=i.getIndex(a);s.children&&this.layoutItems(s)}}},r.prototype.createTreeSeries=function(e){var t=this;this._tempSeries=[];for(var i=[e],a=e.parent;null!=a;)this.initSeries(a),i.push(a),a=a.parent;i.reverse(),this.navigationBar&&(this.navigationBar.data=i),this.createTreeSeriesReal(e),z.each(this._tempSeries,function(n){-1==t.series.indexOf(n)&&t.series.push(n),n.zIndex=n.level})},r.prototype.createTreeSeriesReal=function(e){if(e.children&&e.level<this.currentLevel+this.maxLevels){this.initSeries(e);for(var i=0;i<e.children.length;i++){var a=e.children.getIndex(i);a.children&&this.createTreeSeriesReal(a)}}},r.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,h.prototype.setData.call(this,e)},r.prototype.seriesAppeared=function(){return!0},r.prototype.initSeries=function(e){var t=this;if(!e.series){var i=void 0,a=this.seriesTemplates.getKey(e.level.toString());(i=a?a.clone():this.series.create()).dataItem.dataContext=e,i.name=e.name,i.parentDataItem=e,e.series=i,i.level=e.level;var s=e.dataContext;s&&(i.config=s.config),this.dataUsers.removeValue(i),i.data=e.children.values,i.fill=e.color,i.columnsContainer.hide(0),i.bulletsContainer.hide(0),i.columns.template.adapter.add("fill",function(o,l){var d=l.dataItem;if(d){var u=d.treeMapDataItem;if(u)return l.fill=u.color,l.adapter.remove("fill"),u.color}}),this.zoomable&&(e.level>this.currentLevel||e.children&&e.children.length>0)&&(i.columns.template.cursorOverStyle=Ke.c.pointer,this.zoomable&&i.columns.template.events.on("hit",function(o){var l=o.target.dataItem;e.level>t.currentLevel?t.zoomToChartDataItem(l.treeMapDataItem.parent):t.zoomToSeriesD
1ataItem(l)},this,void 0))}this._tempSeries.push(e.series)},r.prototype.toggleBullets=function(e){var t=this;I.each(this.series.iterator(),function(i){-1==t._tempSeries.indexOf(i)?(i.columnsContainer.hide(),i.bulletsContainer.hide(e)):(i.columnsContainer.show(),i.bulletsContainer.show(e),i.dataItems.each(function(a){a.bullets.each(function(n,s){s.show()})}),i.level<t.currentLevel?(t.hideParentColumns&&i.columnsContainer.hide(),i.bulletsContainer.hide(e)):i.level==t.currentLevel&&t.maxLevels>1&&i.dataItems.each(function(a){a.treeMapDataItem.children&&a.bullets.each(function(n,s){s.hide()})}))})},r.prototype.zoomToSeriesDataItem=function(e){this.zoomToChartDataItem(e.treeMapDataItem)},r.prototype.zoomToChartDataItem=function(e){var t=this;e||(e=this._homeDataItem);var i=this.zoomOutButton;if(i&&(e!=this._homeDataItem?i.show():i.hide()),e&&e.children){this.xAxis.zoomToValues(e.x0,e.x1),this.yAxis.zoomToValues(e.y0,e.y1),this.currentLevel=e.level,this.currentlyZoomed=e,this.createTreeSeries(e);var a=this.xAxis.rangeChangeAnimation||this.yAxis.rangeChangeAnimation;!a||a.isDisposed()||a.isFinished()?this.toggleBullets():(this._dataDisposers.push(a),a.events.once("animationended",function(){t.toggleBullets()}))}},r.prototype.applyInternalDefaults=function(){h.prototype.applyInternalDefaults.call(this),v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("TreeMap chart"))},r.prototype.createDataItem=function(){return new vi},Object.defineProperty(r.prototype,"maxLevels",{get:function(){return this.getPropertyValue("maxLevels")},set:function(e){this.setPropertyValue("maxLevels",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"currentLevel",{get:function(){return this.getPropertyValue("currentLevel")},set:function(e){this.setPropertyValue("currentLevel",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hideParentColumns",{get:function(){return this.getPropertyValue("hideParentColumns")},set:function(e){this.setPropertyValue("hideParentColumns",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sorting",{get:function(){return this.getPropertyValue("sorting")},set:function(e){this.setPropertyValue("sorting",e,!0)},enumerable:!0,configurable:!0}),r.prototype.createSeries=function(){return new Ze},Object.defineProperty(r.prototype,"homeText",{get:function(){return this._homeText},set:function(e){this._homeText=e,this._homeDataItem&&(this._homeDataItem.name=this._homeText)},enumerable:!0,configurable:!0}),r.prototype.processConfig=function(e){if(e){if(v.hasValue(e.layoutAlgorithm)&&v.isString(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}v.hasValue(e.navigationBar)&&!v.hasValue(e.navigationBar.type)&&(e.navigationBar.type="NavigationBar"),h.prototype.processConfig.call(this,e)}},r.prototype.validateLayout=function(){h.prototype.validateLayout.call(this),this.layoutItems(this.currentlyZoomed)},r.prototype.validateDataItems=function(){h.prototype.validateDataItems.call(this),this.layoutItems(this._homeDataItem),I.each(this.series.iterator(),function(e){e.validateRawData()}),this.zoomToChartDataItem(this._homeDataItem)},r.prototype.binaryTree=function(e){var i,n,t=e.children,a=t.length,s=new Array(a+1);for(s[0]=n=i=0;i<a;++i)s[i+1]=n+=t.getIndex(i).value;a>0&&function o(l,d,u,c,f,y,g){if(l>=d-1)return(m=t.getIndex(l)).x0=c,m.y0=f,m.x1=y,void(m.y1=g);for(var x=s[l],b=u/2+x,P=l+1,S=d-1;P<S;){var A=P+S>>>1;s[A]<b?P=A+1:S=A}b-s[P-1]<s[P]-b&&l+1<P&&--P;var m,V=s[P]-x,T=u-V;if(0==u)return(m=t.getIndex(l)).x0=c,m.y0=f,m.x1=y,void(m.y1=g);if(y-c>g-f){var L=(c*T+y*V)/u;o(l,P,V,c,f,L,g),o(P,d,T,L,f,y,g)}else{var w=(f*T+g*V)/u;o(l,P,V,c,f,y,w),o(P,d,T,c,w,y,g)}}(0,a,e.value,e.x0,e.y0,e.x1,e.y1)},r.prototype.slice=function(e){for(var o,t=e.x0,i=e.x1,a=e.y0,s=e.children,l=-1,d=s.length,u=e.value&&(e.y1-a)/e.value;++l<d;)(o=s.getIndex(l)).x0=t,o.x1=i,o.y0=a,o.y1=a+=o.value*u},r.prototype.dice=function(e){for(var o,t=e.x0,a=e.y0,n=e.y1,s=e.children,l=-1,d=s.length,u=e.value&&(e.x1-t)/e.value;++l<d;)(o=s.getIndex(l)).y0=a,o.y1=n,o.x0=t,o.x1=t+=o.value*u},r.prototype.sliceDice=function(e){1&e.level?this.slice(e):this.dice(e)},r.prototype.squarify=function(e){for(var l,f,y,m,x,b,P,S,A,V,t=(1+Math.sqrt(5))/2,i=e.x0,a=e.x1,n=e.y0,s=e.y1,o=e.children,d=0,u=0,c=o.length,g=e.value;d<c;){f=a-i,y=s-n;do{m=o.getIndex(u++).value}while(!m&&u<c);for(x=b=m,V=m*m*(A=Math.max(y/f,f/y)/(g*t)),S=Math.max(b/V,V/x);u<c;++u){if(m+=l=o.getIndex(u).value,l<x&&(x=l),l>b&&(b=l),V=m*m*A,(P=Math.max(b/V,V/x))>S){m-=l;break}S=P}var T=this.dataItems.template.clone();T.value=m,T.dice=f<y,T.children=o.slice(d,u),T.x0=i,T.y0=n,T.x1=a,T.y1=s,T.dice?(T.y1=g?n+=y*m/g:s,this.dice(T)):(T.x1=g?i+=f*m/g:a,this.slice(T)),g-=m,d=u}},r.prototype.handleSeriesAdded2=function(){},r.prototype.handleDataItemValueChange=function(e,t){"value"==t&&this.invalidateDataItems()},r.prototype.handleDataItemWorkingValueChange=function(e,t){"value"==t&&this.invalidateDataItems()},r.prototype.getLegendLevel=function(e){if(e&&e.children){if(e.children.length>1)return e;if(1==e.children.length){var t=e.children.getIndex(0);return t.children?this.getLegendLevel(t):e}return e}},r.prototype.handleLegendSeriesAdded=function(e){},Object.defineProperty(r.prototype,"homeDataItem",{get:function(){return this._homeDataItem},enumerable:!0,configurable:!0}),r.prototype.feedLegend=function(){var e=this.legend;if(e){e.dataFields.name="name";var t=this.getLegendLevel(this._homeDataItem);if(t){var i=[];t.children.each(function(a){i.push(a)}),e.data=i}}},r.prototype.disposeData=function(){h.prototype.disposeData.call(this),this._homeDataItem=void 0,this.series.clear(),this.navigationBar&&this.navigationBar.disposeData(),this.xAxis.disposeData(),this.yAxis.disposeData()},r.prototype.getExporting=function(){var e=this,t=h.prototype.getExporting.call(this);return t.adapter.add("formatDataFields",function(i){return("csv"==i.format||"xlsx"==i.format)&&v.hasValue(e.dataFields.children)&&delete i.dataFields[e.dataFields.children],i}),t},r}(re);F.i.registeredClasses.TreeMap=yi;var Xt=function(h){function r(){var e=h.call(this)||this;return e._chart=new Z.cx,e.className="AxisRendererX3D",e._disposers.push(e._chart),e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.updateGridElement=function(e,t,i){var a=this.positionToPoint(t+=(i-t)*e.location);if(e.element){var n=this.chart.dx3D||0,s=this.chart.dy3D||0,o=this.getHeight();e.path=C.moveTo({x:n,y:s})+C.lineTo({x:n,y:o+s})+C.lineTo({x:0,y:o})}this.positionItem(e,a),this.toggleVisibility(e,t,0,1)},r.prototype.updateBaseGridElement=function(){h.prototype.updateBaseGridElement.call(this);var e=this.getHeight();this.baseGrid.path=C.moveTo({x:this.chart.dx3D||0,y:this.chart.dy3D||0})+C.lineTo({x:0,y:0})+C.lineTo({x:0,y:e})},Object.defineProperty(r.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){e&&this._chart.set(e,e.events.on("propertychanged",this.handle3DChanged,this,!1))},enumerable:!0,configurable:!0}),r.prototype.handle3DChanged=function(e){("depth"==e.property||"angle"==e.property)&&this.invalidate()},r}(De.n);F.i.registeredClasses.AxisRendererX3D=Xt;var gi=function(h){function r(){var e=h.call(this)||this;return e._chart=new Z.cx,e.className="AxisRendererY3D",e._disposers.push(e._chart),e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.updateGridElement=function(e,t,i){var a=this.positionToPoint(t+=(i-t)*e.location);if(e.element){var n=this.chart.dx3D||0,s=this.chart.dy3D||0,o=this.getWidth();e.path=C.moveTo({x:0,y:0})+C.lineTo({x:n,y:s})+C.lineTo({x:o+n,y:s})}this.positionItem(e,a),this.toggleVisibility(e,t,0,1)},r.prototype.updateBaseGridElement=function(){h.prototype.updateBaseGridElement.call(this);var e=this.chart.dx3D||0,t=this.chart.dy3D||0,i=this.getWidth();this.baseGrid.path=C.moveTo({x:0,y:0})+C.lineTo({x:i,y:0})+C.lineTo({x:i+e,y:t})},Object.defineProperty(r.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){e&&this._chart.set(e,e.events.on("propertychanged",this.handle3DChanged,this,!1))},enumerable:!0,configurable:!0}),r.prototype.handle3DChanged=function(e){("depth"==e.property||"angle"==e.property)&&this.invalidate()},r}(ge.j),Ji=k(83904),Mt=function(h){function r(){var e=h.call(this)||this;return e.className="Column3D",e}return(0,D.ZT)(r,h),r.prototype.createAssets=function(){this.column3D=this.createChild(Ji.l),this.column3D.shouldClone=!1,this.column3D.strokeOpacity=0,this.column=this.column3D},r.prototype.validate=function(){h.prototype.validate.call(this),this.column3D&&(this.column3D.width=this.pixelWidth,this.column3D.height=this.pixelHeight,this.column3D.invalid&&this.column3D.validate())},r.prototype.copyFrom=function(e){h.prototype.copyFrom.call(this,e),this.column3D&&this.column3D.copyFrom(e.column3D)},r.prototype.setFill=function(e){h.prototype.setFill.call(this,e),this.column.fill=e},r}(ue);F.i.registeredClasses.Column3D=Mt;var mi=function(h){function r(){var e=h.call(this)||this;return e.className="ColumnSeries3DDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),r}(se),Ge=function(h){function r(){var e=h.call(this)||this;return e.className="ColumnSeries3D",e.columns.template.column3D.applyOnClones=!0,e.columns.template.hiddenState.properties.visible=!0,e.applyTheme(),e}return(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"columnsContainer",{get:function(){var e=this.chart;return e&&e.columnsContainer&&"vertical"!=e.leftAxesContainer.layout&&"vertical"!=e.rightAxesContainer.layout&&"horizontal"!=e.bottomAxesContainer.layout&&"horizontal"!=e.topAxesContainer.layout?e.columnsContainer:this._columnsContainer},enumerable:!0,configurable:!0}),r.prototype.validateDataElementReal=function(e){h.prototype.validateDataElementReal.call(this,e),e.column&&(e.column.dx=this.dx,e.column.dy=this.dy,e.column.visible=this.visible)},r.prototype.validateDataElements=function(){h.prototype.validateDataElements.call(this),this.chart&&this.chart.invalidateLayout()},r.prototype.createColumnTemplate=function(){return new Mt},Object.defineProperty(r.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e,!0),this.columns.template.column3D.depth=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"angle",{get:function(){return this.getPropertyValue("angle")}
1,set:function(e){this.setPropertyValue("angle",e),this.columns.template.column3D.angle=e},enumerable:!0,configurable:!0}),r}(de);F.i.registeredClasses.ColumnSeries3D=Ge,F.i.registeredClasses.ColumnSeries3DDataItem=mi;var $i=function(h){function r(){var e=h.call(this)||this;return e.className="XYChart3DDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),r}(Ne),xi=function(h){function r(){var e=h.call(this)||this;e._axisRendererX=Xt,e._axisRendererY=gi,e.className="XYChart3D",e.depth=30,e.angle=30;var t=e.seriesContainer.createChild(K.W);return t.shouldClone=!1,t.isMeasured=!1,t.layout="none",e.columnsContainer=t,e.columnsContainer.mask=e.createChild(_.jy),e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.updateSeriesMasks=function(){if(h.prototype.updateSeriesMasks.call(this),O.isIE()){var e=this.columnsContainer,t=e.mask;e.mask=void 0,e.mask=t}},Object.defineProperty(r.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){this.setPropertyValue("angle",e),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"dx3D",{get:function(){return p.cos(this.angle)*this.depth},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"dy3D",{get:function(){return-p.sin(this.angle)*this.depth},enumerable:!0,configurable:!0}),r.prototype.validateLayout=function(){h.prototype.validateLayout.call(this),this.fixColumns()},r.prototype.fixLayout=function(){this.chartContainer.paddingTop=-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(),h.prototype.fixLayout.call(this)},r.prototype.fixColumns=function(){var e=this,t=1,i=0;I.each(this.series.iterator(),function(n){n instanceof Ge&&(!n.clustered&&i>0&&t++,n.depthIndex=t-1,i++)});var a=0;I.each(this.series.iterator(),function(n){if(n instanceof Ge){n.depth=e.depth/t,n.angle=e.angle,n.columnsContainer==e.columnsContainer&&(n.dx=e.depth/t*p.cos(e.angle)*n.depthIndex,n.dy=-e.depth/t*p.sin(e.angle)*n.depthIndex);var s=!1;(n.baseAxis==n.xAxis&&n.xAxis.renderer.inversed||n.baseAxis==n.yAxis&&n.yAxis.renderer.inversed)&&(s=!0);var o=1;n.dataItems.each(function(l){var d=l.column;d&&(d.zIndex=s?1e3*(1e3-o)+a-100*n.depthIndex:1e3*o+a-100*n.depthIndex),o++}),s?a--:a++}}),this.maskColumns()},r.prototype.processConfig=function(e){if(e&&v.hasValue(e.series)&&v.isArray(e.series))for(var t=0,i=e.series.length;t<i;t++)e.series[t].type=e.series[t].type||"ColumnSeries3D";h.prototype.processConfig.call(this,e)},r.prototype.maskColumns=function(){var e=this.plotContainer.pixelWidth,t=this.plotContainer.pixelHeight,i=this.dx3D,a=this.dy3D,n=C.moveTo({x:0,y:0})+C.lineTo({x:i,y:a})+C.lineTo({x:e+i,y:a})+C.lineTo({x:e+i,y:t+a})+C.lineTo({x:e,y:t})+C.lineTo({x:e,y:t})+C.lineTo({x:0,y:t})+C.closePath(),s=this.columnsContainer;s&&s.mask&&(s.mask.path=n)},r}(re);F.i.registeredClasses.XYChart3D=xi;var qi=k(42767),ke=function(h){function r(){var e=h.call(this)||this;return e.className="Candlestick",e.layout="none",e}return(0,D.ZT)(r,h),r.prototype.createAssets=function(){h.prototype.createAssets.call(this),this.lowLine=this.createChild(ne.x),this.lowLine.shouldClone=!1,this.highLine=this.createChild(ne.x),this.highLine.shouldClone=!1},r.prototype.copyFrom=function(e){h.prototype.copyFrom.call(this,e),this.lowLine&&this.lowLine.copyFrom(e.lowLine),this.highLine&&this.highLine.copyFrom(e.highLine)},r}(ue);F.i.registeredClasses.Candlestick=ke;var Qe=function(h){function r(){var e=h.call(this)||this;return e.values.lowValueX={},e.values.lowValueY={},e.values.highValueX={},e.values.highValueY={},e.className="CandlestickSeriesDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"lowValueX",{get:function(){return this.values.lowValueX.value},set:function(e){this.setValue("lowValueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"lowValueY",{get:function(){return this.values.lowValueY.value},set:function(e){this.setValue("lowValueY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"highValueX",{get:function(){return this.values.highValueX.value},set:function(e){this.setValue("highValueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"highValueY",{get:function(){return this.values.highValueY.value},set:function(e){this.setValue("highValueY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"closeValueX",{get:function(){return this.values.valueX.value},set:function(e){this.setValue("valueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"closeValueY",{get:function(){return this.values.valueY.value},set:function(e){this.setValue("valueY",e)},enumerable:!0,configurable:!0}),r}(se),Yt=function(h){function r(){var e=h.call(this)||this;
1e.className="CandlestickSeries",e.groupFields.lowValueX="low",e.groupFields.lowValueY="low",e.groupFields.highValueX="high",e.groupFields.highValueY="high",e.strokeOpacity=1;var t=new J.h,i=t.getFor("positive"),a=t.getFor("negative");return e.dropFromOpenState.properties.fill=a,e.dropFromOpenState.properties.stroke=a,e.riseFromOpenState.properties.fill=i,e.riseFromOpenState.properties.stroke=i,e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.applyInternalDefaults=function(){h.prototype.applyInternalDefaults.call(this),v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Candlestick Series"))},r.prototype.createDataItem=function(){return new Qe},r.prototype.validateDataElementReal=function(e){h.prototype.validateDataElementReal.call(this,e),this.validateCandlestick(e)},r.prototype.validateCandlestick=function(e){var t=e.column;if(t){var i=t.lowLine,a=t.highLine;if(this.baseAxis==this.xAxis){var n=t.pixelWidth/2;i.x=n,a.x=n;var s=e.getWorkingValue(this.yOpenField),o=e.getWorkingValue(this.yField),l=this.yAxis.getY(e,this.yOpenField),d=this.yAxis.getY(e,this.yField),u=this.yAxis.getY(e,this.yLowField),c=this.yAxis.getY(e,this.yHighField),f=t.pixelY;i.y1=u-f,a.y1=c-f,s<o?(i.y2=l-f,a.y2=d-f):(i.y2=d-f,a.y2=l-f)}if(this.baseAxis==this.yAxis){var y=t.pixelHeight/2;i.y=y,a.y=y;var g=e.getWorkingValue(this.xOpenField),m=e.getWorkingValue(this.xField),x=this.xAxis.getX(e,this.xOpenField),b=this.xAxis.getX(e,this.xField),P=this.xAxis.getX(e,this.xLowField),S=this.xAxis.getX(e,this.xHighField),A=t.pixelX;i.x1=P-A,a.x1=S-A,g<m?(i.x2=x-A,a.x2=b-A):(i.x2=b-A,a.x2=x-A)}I.each(this.axisRanges.iterator(),function(V){var T=e.rangesColumns.getKey(V.uid);if(T){var L=T.lowLine;L.x=i.x,L.y=i.y,L.x1=i.x1,L.x2=i.x2,L.y1=i.y1,L.y2=i.y2;var w=T.highLine;w.x=a.x,w.y=a.y,w.x1=a.x1,w.x2=a.x2,w.y1=a.y1,w.y2=a.y2}})}},Object.defineProperty(r.prototype,"xLowField",{get:function(){return this._xLowField},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"yLowField",{get:function(){return this._yLowField},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"xHighField",{get:function(){return this._xHighField},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"yHighField",{get:function(){return this._yHighField},enumerable:!0,configurable:!0}),r.prototype.defineFields=function(){h.prototype.defineFields.call(this);var e=this.xAxis,t=this.yAxis;if(e&&t){if(this.baseAxis==e){var i=O.capitalize(t.axisFieldName);this._yLowField="low"+i+"Y",this._yHighField="high"+i+"Y"}if(this.baseAxis==t){var a=O.capitalize(e.axisFieldName);this._xLowField="low"+a+"X",this._xHighField="high"+a+"X"}this.addValueField(e,this._xValueFields,this._xLowField),this.addValueField(e,this._xValueFields,this._xHighField),this.addValueField(t,this._yValueFields,this._yLowField),this.addValueField(t,this._yValueFields,this._yHighField)}},r.prototype.createLegendMarker=function(e){var t=e.pixelWidth,i=e.pixelHeight;e.removeChildren();var a=e.createChild(ke);a.shouldClone=!1,a.copyFrom(this.columns.template);var n,s,o=a.lowLine,l=a.highLine;this.baseAxis==this.yAxis?(n=t/3,s=i,o.y=i/2,l.y=i/2,o.x2=t/3,l.x2=t/3,l.x=t/3*2,a.column.x=t/3):(n=t,s=i/3,o.x=t/2,l.x=t/2,o.y2=i/3,l.y2=i/3,l.y=i/3*2,a.column.y=i/3),a.width=n,a.height=s,E.copyProperties(this,e,_.hh),E.copyProperties(this.columns.template,a,_.hh),a.stroke=this.riseFromOpenState.properties.stroke,a.fill=a.stroke;var d=e.dataItem;d.color=a.fill,d.colorOrig=a.fill},r.prototype.createColumnTemplate=function(){return new ke},r}(de);F.i.registeredClasses.CandlestickSeries=Yt,F.i.registeredClasses.CandlestickSeriesDataItem=Qe;var Je=function(h){function r(){var e=h.call(this)||this;return e.className="OHLC",e.layout="none",e}return(0,D.ZT)(r,h),r.prototype.createAssets=function(){this.openLine=this.createChild(ne.x),this.openLine.shouldClone=!1,this.highLowLine=this.createChild(ne.x),this.highLowLine.shouldClone=!1,this.closeLine=this.createChild(ne.x),this.closeLine.shouldClone=!1},r.prototype.copyFrom=function(e){h.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)},r}(ke);F.i.registeredClasses.OHLC=Je;var jt=function(h){function r(){var e=h.call(this)||this;
1return e.className="OHLCSeriesDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),r}(Qe),bi=function(h){function r(){var e=h.call(this)||this;return e.className="OHLCSeries",e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.applyInternalDefaults=function(){h.prototype.applyInternalDefaults.call(this),v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("OHLC Series"))},r.prototype.createDataItem=function(){return new jt},r.prototype.validateCandlestick=function(e){var t=e.column;if(t){var i=t.openLine,a=t.highLowLine,n=t.closeLine;if(this.baseAxis==this.xAxis){var s=t.pixelWidth/2;a.x=s,e.getWorkingValue(this.yOpenField),e.getWorkingValue(this.yField);var o=this.yAxis.getY(e,this.yOpenField),l=this.yAxis.getY(e,this.yField),d=this.yAxis.getY(e,this.yLowField),u=this.yAxis.getY(e,this.yHighField),c=t.pixelY;i.y1=o-c,i.y2=o-c,i.x1=0,i.x2=s,n.y1=l-c,n.y2=l-c,n.x1=s,n.x2=2*s,a.y1=u-c,a.y2=d-c}if(this.baseAxis==this.yAxis){var f=t.pixelHeight/2;a.y=f,e.getWorkingValue(this.xOpenField),e.getWorkingValue(this.xField);var y=this.xAxis.getX(e,this.xOpenField),g=this.xAxis.getX(e,this.xField),m=this.xAxis.getX(e,this.xLowField),x=this.xAxis.getX(e,this.xHighField),b=t.pixelX;i.x1=y-b,i.x2=y-b,i.y1=f,i.y2=2*f,n.x1=g-b,n.x2=g-b,n.y1=0,n.y2=f,a.x1=x-b,a.x2=m-b}I.each(this.axisRanges.iterator(),function(P){var S=e.rangesColumns.getKey(P.uid);if(S){var A=S.openLine;A.x=i.x,A.y=i.y,A.x1=i.x1,A.x2=i.x2,A.y1=i.y1,A.y2=i.y2;var V=S.closeLine;V.x=n.x,V.y=n.y,V.x1=n.x1,V.x2=n.x2,V.y1=n.y1,V.y2=n.y2;var T=S.highLowLine;T.x=a.x,T.y=a.y,T.x1=a.x1,T.x2=a.x2,T.y1=a.y1,T.y2=a.y2}})}},r.prototype.createLegendMarker=function(e){var t=e.pixelWidth,i=e.pixelHeight;e.removeChildren();var a=e.createChild(Je);a.shouldClone=!1,a.copyFrom(this.columns.template);var n,s,o=a.openLine,l=a.closeLine,d=a.highLowLine;this.baseAxis==this.yAxis?(n=t/3,s=i,d.y=i/2,d.x2=t,o.x=t/3*2,o.y2=i/2,l.x=t/3,l.y2=i,l.y1=i/2):(n=t,s=i/3,d.x=t/2,d.y2=i,o.y=i/3*2,o.x2=t/2,l.y=i/3,l.x2=t,l.x1=t/2),a.width=n,a.height=s,E.copyProperties(this,e,_.hh),E.copyProperties(this.columns.template,a,_.hh),a.stroke=this.riseFromOpenState.properties.stroke;var u=e.dataItem;u.color=a.stroke,u.colorOrig=a.stroke},r.prototype.createColumnTemplate=function(){return new Je},r}(Yt);F.i.registeredClasses.OHLCSeries=bi,F.i.registeredClasses.OHLCSeriesDataItem=jt;var Ci=function(h){function r(){var e=h.call(this)||this;return e.className="StepLineSeriesSegment",e}return(0,D.ZT)(r,h),r.prototype.drawSegment=function(e,t,i,a,n,s){if(e.length>0&&t.length>0)if(n){var o=C.moveTo(e[0]);if(e.length>0)for(var l=1;l<e.length;l++){var d=e[l];l/2==Math.round(l/2)?o+=C.moveTo(d):o+=C.lineTo(d)}this.strokeSprite.path=o,(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(o=C.moveTo(e[0])+C.polyline(e),o+=C.lineTo(t[0])+C.polyline(t),o+=C.lineTo(e[0]),o+=C.closePath(),this.fillSprite.path=o)}else o=C.moveTo(e[0])+C.polyline(e),this.strokeSprite.path=o,(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(o+=C.lineTo(t[0])+C.polyline(t),o+=C.lineTo(e[0]),o+=C.closePath(),this.fillSprite.path=o);else this.strokeSprite.path="",this.fillSprite.path=""},r}(we);F.i.registeredClasses.StepLineSeriesSegment=Ci;var _t=function(h){function r(){var e=h.call(this)||this;return e.className="StepLineSeriesDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),r}(Se),Pi=function(h){function r(){var e=h.call(this)||this;return e.className="StepLineSeries",e.applyTheme(),e.startLocation=0,e.endLocation=1,e}return(0,D.ZT)(r,h),r.prototype.createDataItem=function(){return new _t},r.prototype.addPoints=function(e,t,i,a,n){var s,o,l,d;this.baseAxis==this.xAxis&&(s=this.startLocation,o=this.endLocation,l=this.getAdjustedXLocation(t,this.yOpenField),d=this.getAdjustedXLocation(t,this.yField)),this.baseAxis==this.yAxis&&(l=this.startLocation,d=this.endLocation,s=this.getAdjustedXLocation(t,this.xOpenField),o=this.getAdjustedXLocation(t,this.xField));var u=this.xAxis.getX(t,i,s),c=this.yAxis.getY(t,a,l),f=this.xAxis.getX(t,i,o),y=this.yAxis.getY(t,a,d);if(u=p.fitToRange(u,-1e5,1e5),c=p.fitToRange(c,-1e5,1e5),f=p.fitToRange(f,-1e5,1e5),y=p.fitToRange(y,-1e5,1e5),!this.noRisers&&e.length>1){var g=e[e.length-1];this.baseAxis==this.xAxis&&e.push(n?{x:g.x,y}:{x:u,y:g.y}),this.baseAxis==this.yAxis&&e.push(n?{x:f,y:g.y}:{x:g.x,y:c})}var m={x:u,y:c},x={x:f,y};n?e.push(x,m):e.push(m,x)},r.prototype.drawSegment=function(e,t,i){var a=!1;this.yAxis==this.baseAxis&&(a=!0),e.drawSegment(t,i,this.tensionX,this.tensionY,this.noRisers,a)},r.prototype.createSegment=function(){return new Ci},Object.defineProperty(r.prototype,"noRisers",{get:function(){return this.getPropertyValue("noRisers")},set:function(e){this.setPropertyValue("noRisers",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(e){this.setPropertyValue("startLocation",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(e){this.setPropertyValue("endLocation",e,!0)},enumerable:!0,configurable:!0}),r}(Xe);F.i.registeredClasses.StepLineSeries=Pi,F.i.registeredClasses.StepLineSeriesDataItem=_t;var Wt=function(h){function r(){var e=h.call(this)||this;return e.className="RadarColumn",e}return(0,D.ZT)(r,h),r.prototype.createAssets=function(){this.radarColumn=this.createChild(At.p),this.radarColumn.shouldClone=!1,this.radarColumn.strokeOpacity=void 0,this.column=this.radarColumn},r.prototype.copyFrom=function(e){h.prototype.copyFrom.call(this,e),this.radarColumn&&this.radarColumn.copyFrom(e.radarColumn)},r.prototype.getTooltipX=function(){var e=this.getPropertyValue("tooltipX");return v.isNumber(e)?e:this.radarColumn.getTooltipX()}
1,r.prototype.getTooltipY=function(){var e=this.getPropertyValue("tooltipX");return v.isNumber(e)?e:this.radarColumn.getTooltipY()},r}(ue);F.i.registeredClasses.RadarColumn=Wt;var Di=function(h){function r(){var e=h.call(this)||this;return e.className="ColumnSeriesDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),r}(se),Ai=function(h){function r(){var e=h.call(this)||this;return e.className="RadarColumnSeries",e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.createColumnTemplate=function(){return new Wt},r.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),h.prototype.validate.call(this)},r.prototype.disableUnusedColumns=function(e){e&&(e.column&&(e.column.__disabled=!0),I.each(this.axisRanges.iterator(),function(t){var i=e.rangesColumns.getKey(t.uid);i&&(i.__disabled=!0)}))},r.prototype.validateDataElementReal=function(e){var d,u,c,f,t=this,i=this.chart.startAngle,a=this.chart.endAngle,n=this.yField,s=this.yOpenField,o=this.xField,l=this.xOpenField,y=this.getStartLocation(e),g=this.getEndLocation(e),m=(a-i)/(this.dataItems.length*(this.end-this.start)),x=e.column;x||(x=this.columns.create(),e.column=x,E.copyProperties(this,x,_.hh
1),E.copyProperties(this.columns.template,x,_.hh),e.addSprite(x),x.paper=this.paper,this.setColumnStates(x));var b=x.width,P=100;b instanceof R.gG&&(P=b.percent);var S=p.round((g-y)*(1-P/100)/2,5);if(y+=S,g-=S,this.xAxis instanceof U&&this.yAxis instanceof U)c=p.getDistance({x:this.yAxis.getX(e,n,0,"valueY"),y:this.yAxis.getY(e,n,0,"valueY")}),f=p.getDistance({x:this.yAxis.getX(e,s,1,"valueY"),y:this.yAxis.getY(e,s,1,"valueY")}),d=this.xAxis.getAngle(e,l,0,"valueX"),u=this.xAxis.getAngle(e,o,1,"valueX"),i+=y*m,a-=(1-g)*m;else if(this.baseAxis==this.xAxis)c=p.getDistance({x:this.yAxis.getX(e,n,e.locations[n],"valueY"),y:this.yAxis.getY(e,n,e.locations[n],"valueY")}),f=p.getDistance({x:this.yAxis.getX(e,s,e.locations[s],"valueY"),y:this.yAxis.getY(e,s,e.locations[s],"valueY")}),d=this.xAxis.getAngle(e,l,y,"valueX"),u=this.xAxis.getAngle(e,o,g,"valueX"),i+=y*m,a-=(1-g)*m;else{if(c=p.getDistance({x:this.yAxis.getX(e,n,y,"valueY"),y:this.yAxis.getY(e,n,y,"valueY")}),f=p.getDistance({x:this.yAxis.getX(e,s,g,"valueY"),y:this.yAxis.getY(e,s,g,"valueY")}),v.isNumber(b)){var A=Math.abs(c-f);if(A>b){var V=(A-b)/2;c+=V,f-=V}}d=this.xAxis.getAngle(e,o,e.locations[o],"valueX"),u=this.xAxis.getAngle(e,l,e.locations[l],"valueX")}if(u<d){var T=u;u=d,d=T}d=p.fitToRange(d,i,a),u=p.fitToRange(u,i,a);var L=x.radarColumn;L.startAngle=d;var w=u-d;w>0?(L.arc=w,L.radius=c,L.innerRadius=f,x.__disabled=!1,x.parent=this.columnsContainer,I.each(this.axisRanges.iterator(),function(H){var Y=e.rangesColumns.getKey(H.uid);Y||(Y=t.columns.create(),E.forceCopyProperties(t.columns.template,Y,_.hh),E.copyProperties(H.contents,Y,_.hh),Y.dataItem&&z.remove(Y.dataItem.sprites,Y),e.addSprite(Y),Y.paper=t.paper,t.setColumnStates(Y),e.rangesColumns.setKey(H.uid,Y));var X=Y.radarColumn;X.startAngle=d,X.arc=w,X.radius=c,X.innerRadius=f,X.invalid&&(X.paper=t.paper,X.validate()),Y.__disabled=!1,Y.parent=H.contents})):this.disableUnusedColumns(e)},r.prototype.getPoint=function(e,t,i,a,n,s,o){s||(s="valueX"),o||(o="valueY");var l=this.yAxis.getX(e,i,n,o),d=this.yAxis.getY(e,i,n,o),u=p.getDistance({x:l,y:d});0==u&&(u=1e-5);var c=this.xAxis.getAngle(e,t,a,s);return{x:u*p.cos(c),y:u*p.sin(c)}},r.prototype.getMaskPath=function(){var e=this.yAxis.renderer;return C.arc(e.startAngle,e.endAngle-e.startAngle,e.pixelRadius,e.pixelInnerRadius)},r.prototype.positionBulletReal=function(e,t,i){var a=this.xAxis,n=this.yAxis;(t<a.start||t>a.end||i<n.start||i>n.end)&&(e.visible=!1),e.moveTo(this.xAxis.renderer.positionToPoint(t,i))},r.prototype.setXAxis=function(e){h.prototype.setXAxis.call(this,e),this.updateRendererRefs()},r.prototype.setYAxis=function(e){h.prototype.setYAxis.call(this,e),this.updateRendererRefs()},r.prototype.updateRendererRefs=function(){this.xAxis.renderer.axisRendererY=this.yAxis.renderer},r}(de);F.i.registeredClasses.RadarColumnSeries=Ai,F.i.registeredClasses.RadarColumnSeriesDataItem=Di;var $e=function(h){function r(){var e=h.call(this)||this;return e.slice=e.createChild(_.jy),e.slice.shouldClone=!1,e.slice.setElement(e.paper.add("path")),e.slice.isMeasured=!1,e.orientation="vertical",e.bottomWidth=(0,R.aQ)(100),e.topWidth=(0,R.aQ)(100),e.isMeasured=!1,e.width=10,e.height=10,e.expandDistance=0,e.className="FunnelSlice",e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.draw=function(){h.prototype.draw.call(this);var e=this.pixelPaddingTop,a=this.pixelPaddingLeft,n=this.pixelWidth-this.pixelPaddingRight-a,s=this.pixelHeight-e-this.pixelPaddingBottom,o=this.expandDistance,l="";if("vertical"==this.orientation){var c={x:(n-(d=O.relativeToValue(this.topWidth,n)))/2+a,y:e},f={x:(n+d)/2+a,y:e},y={x:(n+(u=O.relativeToValue(this.bottomWidth,n)))/2+a,y:e+s},g={x:(n-u)/2+a,y:e+s},m={x:f.x+(y.x-f.x)/2+o*s,y:f.y+.5*s},x={x:c.x+(g.x-c.x)/2-o*s,y:c.y+.5*s},b=C.lineTo(y),P=C.lineTo(c);0!=o&&(b=C.quadraticCurveTo(y,m),P=C.quadraticCurveTo(c,x)),l=C.moveTo(c)+C.lineTo(f)+b+C.lineTo(g)+P,this.tickPoint={x:f.x+(y.x-f.x)/2,y:f.y+(y.y-f.y)/2}}else{var d,u,S={x:a,y:(s-(d=O.relativeToValue(this.topWidth,s)))/2+e},A={x:a,y:(s+d)/2+e},V={x:a+n,y:(s-(u=O.relativeToValue(this.bottomWidth,s)))/2+e},T={x:a+n,y:(s+u)/2+e};m={y:S.y+(V.y-S.y)/2-o*n,x:S.x+.5*n},x={y:A.y+(T.y-A.y)/2+o*n,x:A.x+.5*n},b=C.lineTo(V),P=C.lineTo(A),0!=o&&(b=C.quadraticCurveTo(V,m),P=C.quadraticCurveTo(A,x)),l=C.moveTo(A)+C.lineTo(S)+b
1+C.lineTo(T)+P,this.tickPoint={y:A.y+(T.y-A.y)/2,x:A.x+(T.x-A.x)/2}}this.slice.path=l,this.invalidateLayout()},r.prototype.getPoint=function(e,t){var i=this.pixelPaddingTop,s=this.pixelPaddingLeft,o=this.pixelWidth-this.pixelPaddingRight-s,l=this.pixelHeight-i-this.pixelPaddingBottom;if("vertical"==this.orientation){var c={x:(o-(d=O.relativeToValue(this.topWidth,o)))/2+s,y:i},f={x:(o+d)/2+s,y:i},y={x:(o+(u=O.relativeToValue(this.bottomWidth,o)))/2+s,y:i+l},m=c.x+((o-u)/2+s-c.x)*t;return{x:m+(f.x+(y.x-f.x)*t-m)*e,y:f.y+(y.y-f.y)*t}}var d,u,b_x=s,b_y=(l-(d=O.relativeToValue(this.topWidth,l)))/2+i,P_y=(l+d)/2+i,S_x=s+o,V=b_y+((l-(u=O.relativeToValue(this.bottomWidth,l)))/2+i-b_y)*e;return{y:V+(P_y+((l+u)/2+i-P_y)*e-V)*t,x:b_x+(S_x-b_x)*e}},Object.defineProperty(r.prototype,"bottomWidth",{get:function(){return this.getPropertyValue("bottomWidth")},set:function(e){this.setPercentProperty("bottomWidth",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"topWidth",{get:function(){return this.getPropertyValue("topWidth")},set:function(e){this.setPercentProperty("topWidth",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"expandDistance",{get:function(){return this.getPropertyValue("expandDistance")},set:function(e){this.setPropertyValue("expandDistance",e,!0)},enumerable:!0,configurable:!0}),r.prototype.copyFrom=function(e){h.prototype.copyFrom.call(this,e),this.slice&&this.slice.copyFrom(e.slice)},r}(K.W);F.i.registeredClasses.FunnelSlice=$e;var Ti=function(h){function r(){var e=h.call(this)||this;return e._label=new Z.cx,e._slice=new Z.cx,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(0,D.ZT)(r,h),r.prototype.draw=function(){h.prototype.draw.call(this);var e=this.slice,t=e.getPoint(this.locationX,this.locationY);if(t){var i=this.label,a=e.dataItem.component,n=void 0,s=void 0,o=void 0;if("vertical"==a.orientation){var l=i.pixelX,d=i.pixelY;a.labelsOpposite||(l+=i.maxRight),n=O.spritePointToSprite(t,e,this.parent),o=O.spritePointToSprite({x:l,y:d},i.parent,this.parent),s={x:i.parent.pixelX-this.length,y:o.y},a.labelsOpposite||(s.x=i.parent.measuredWidth+this.length)}else l=i.pixelX,d=i.pixelY,a.labelsOpposite||(d+=i.maxBottom),n=O.spritePointToSprite(t,e,this.parent),s={x:(o=O.spritePointToSprite({x:l,y:d},i.parent,this.parent)).x,y:i.parent.pixelY-this.length},a.labelsOpposite||(s.y=i.parent.measuredHeight+this.length);this.path=C.moveTo(n)+C.lineTo(s)+C.lineTo(o)}},Object.defineProperty(r.prototype,"slice",{get:function(){return this._slice.get()},set:function(e){this._slice.set(e,new Z.FV([e.events.on("transformed",this.invalidate,this,!1),e.events.on("validated",this.invalidate,this,!1)]))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"label",{get:function(){return this._label.get()},set:function(e){this._label.set(e,e.events.on("transformed",this.invalidate,this,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(e){this.setPropertyValue("locationX",e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(e){this.setPropertyValue("locationY",e,!1,!0)},enumerable:!0,configurable:!0}),r}(Me.d);F.i.registeredClasses.FunnelTick=Ti;var qe=function(h){function r(){var e=h.call(this)||this;return e.className="FunnelSeriesDataItem",e.events.on("visibilitychanged",function(){e.component&&e.component.invalidateDataItems()},e,!1),e.applyTheme(),e}return(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"sliceLink",{get:function(){var e=this;if(!this._sliceLink){var t=this.component.sliceLinks.create();this._sliceLink=t,this._disposers.push(t),t.parent=this.component.slicesContainer,this._disposers.push(new Z.ku(function(){e.component&&e.component.sliceLinks.removeValue(t)})),this.addSprite(t),t.visible=this.visible}return this._sliceLink},enumerable:!0,configurable:!0}),r}(Ye),Bt=function(h){function r(){var e=h.call(this)||this;return e._nextY=0,e.className="FunnelSeries",e.orientation="vertical",e.width=(0,R.aQ)(100),e.height=(0,R.aQ)(100),e.slicesContainer.width=(0,R.aQ)(100),e.slicesContainer.height=(0,R.aQ)(100),e._disposers.push(e.slicesContainer.events.on("maxsizechanged",e.invali
1dateDataItems,e,!1)),e.labelsOpposite=!0,e.labelsContainer.layout="absolute",e.bottomRatio=0,e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.createSlice=function(){return new $e},r.prototype.createTick=function(){return new Ti},r.prototype.applyInternalDefaults=function(){h.prototype.applyInternalDefaults.call(this),v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Funnel Series"))},r.prototype.createDataItem=function(){return new qe},r.prototype.initSlice=function(e){e.isMeasured=!1,e.defaultState.properties.scale=1,e.observe("scale",this.handleSliceScale,this),e.observe(["dx","dy","x","y"],this.handleSliceMove,this),e.tooltipText="{category}: {value.percent.formatNumber('#.#p')} ({value.value})",e.states.create("hover").properties.expandDistance=.2},r.prototype.initLabel=function(e){h.prototype.initLabel.call(this,e),e.verticalCenter="middle",e.horizontalCenter="middle",e.isMeasured=!0,e.padding(5,5,5,5)},r.prototype.validate=function(){h.prototype.validate.call(this),this._nextY=0},r.prototype.validateDataElements=function(){var e=this,t=this.slice
1sContainer,i=this.labelsContainer,a=this.labels.template;this.alignLabels?(a.interactionsEnabled=!0,t.isMeasured=!0,i.isMeasured=!0):(a.interactionsEnabled=!1,t.isMeasured=!1,i.isMeasured=!1);var n=0,s=0;this.dataItems.each(function(o){v.hasValue(o.value)&&(s++,o.value>0?n+=Math.abs(o.getWorkingValue("value")/o.value):e.ignoreZeroValues||!o.visible||o.__disabled||o.isHiding?s--:n+=1)}),this._total=1/s*n,this._count=s,h.prototype.validateDataElements.call(this),this.arrangeLabels()},r.prototype.getNextValue=function(e){var t=e.index,i=e.getWorkingValue("value");if(t<this.dataItems.length-1){var a=this.dataItems.getIndex(t+1);if(i=a.getWorkingValue("value"),!a.visible||a.isHiding||a.__disabled||0==a.value&&this.ignoreZeroValues)return this.getNextValue(a)}return i},r.prototype.formDataElement=function(){},r.prototype.validateDataElement=function(e){var t=this,i=e.slice;i.orientation=this.orientation;var a=e.sliceLink;a.orientation=this.orientation;var n=e.tick,s=e.label;n.slice=i,n.label=s,v.hasValue(e.value)?(this.decorateSlice(e),z.each(e.sprites,function(o){o.__disabled=!(0!=e.value||!t.ignoreZeroValues)})):z.each(e.sprites,function(o){o.__disabled=!0}),e.index==this.dataItems.length-1&&(a.disabled=!0),h.prototype.validateDataElement.call(this,e),a.fill=i.fill},r.prototype.decorateSlice=function(e){var t=e.slice,i=e.sliceLink,a=e.label,n=e.tick,s=this.slicesContainer.innerWidth,o=this.slicesContainer.innerHeight,l=this.getNextValue(e),d=Math.abs(e.getWorkingValue("value")),u=this.bottomRatio,c=1;if(0!=e.value?c=d/Math.abs(e.value):(e.__disabled||e.isHiding||!e.visible)&&(c=1e-6),this.ignoreZeroValues&&0==e.value)e.__disabled=!0;else if(e.__disabled=!1,this._nextY==1/0&&(this._nextY=0),"vertical"==this.orientation){var f=i.pixelHeight*c;o+=f,t.topWidth=d/this.dataItem.values.value.high*s,t.bottomWidth=(d-(d-l)*u)/this.dataItem.values.value.high*s,i.topWidth=t.bottomWidth,i.bottomWidth=(d-(d-l))/this.dataItem.values.value.high*s,t.y=this._nextY,t.height=Math.min(1e5,p.max(0,o/this._count*c/this._total-f)),t.x=s/2,a.x=this.alignLabels?void 0:t.x,a.y=t.pixelY+t.pixelHeight*n.locationY,this._nextY+=t.pixelHeight+f,i.y=this._nextY-f,i.x=t.x}else{var y=i.pixelWidth*c;s+=y,t.topWidth=d/this.dataItem.values.value.high*o,t.bottomWidth=(d-(d-l)*u)/this.dataItem.values.value.high*o,i.topWidth=t.bottomWidth,i.bottomWidth=(d-(d-l))/this.dataItem.values.value.high*o,t.x=this._nextY,t.width=Math.min(1e5,s/this._count*c*1/this._total-y),t.y=o/2,a.y=this.alignLabels?this.labelsContainer.measuredHeight:t.y,a.x=t.pixelX+t.pixelWidth*n.locationX,this._nextY+=t.pixelWidth+y,i.x=this._nextY-y,i.y=t.y}},r.prototype.getLastLabel=function(e){if(e>0){var t=this.labels.getIndex(e);return t.__disabled||!t.visible?this.getLastLabel(e-1):t}},r.prototype.arrangeLabels=function(){if(this.alignLabels){var e=this.labels.length;if(e>1){var t=this.getLastLabel(e-1);if(t){var i=t.pixelY,a=t.pixelX;if(e>1){for(var n=e-2;n>=0;n--)(s=this.labels.getIndex(n)).visible&&!s.__disabled&&(s.invalid&&s.validate(),"vertical"==this.orientation?s.pixelY+s.measuredHeight>i&&(s.y=Math.min(1e6,i-s.measuredHeight)):s.pixelX+s.measuredWidth>a&&(s.x=Math.min(1e6,a-s.measuredWidth)),i=s.pixelY,a=s.pixelX);for(i=0,a=0,n=0;n<e;n++){var s;(s=this.labels.getIndex(n)).visible&&!s.__disabled&&(s.invalid&&s.validate(),"vertical"==this.orientation?s.pixelY<i&&(s.y=Math.min(1e6,i)):s.pixelX<a&&(s.x=Math.min(1e6,a)),i+=s.measuredHeight,a+=s.measuredWidth)}}}}}},r.prototype.positionBullet=function(e){h.prototype.positionBullet.call(this,e);var i=e.dataItem.slice,a=e.locationX;v.isNumber(a)||(a=.5);var n=e.locationY;v.isNumber(n)||(n=1),e.x=i.pixelX+i.measuredWidth*a,e.y=i.pixelY+i.measuredHeight*n},Object.defineProperty(r.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e)&&(this.labelsOpposite=this.labelsOpposite,this.invalidate(),"vertical"==e?(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(r.prototype,"bottomRatio",{get:function(){return this.getPropertyValue("bottomRatio")},set:function(e){this.setPropertyValue("bottomRatio",e)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sliceLinks",{get:function(){if(!this._sliceLinks){var e=new $e;e.applyOnClones=!0,e.fillOpacity=.5,e.expandDistance=-.3,e.hiddenState.properties.opacity=0,this._disposers.push(e),this._sliceLinks=new W.o(e),this._disposers.push(new W.zQ(this._sliceLinks))}return this._sliceLinks},enumerable:!0,configurable:!0}),r.prototype.show=function(e){var t=this,i=this.startIndex,a=this.endIndex,n=this.defaultState.transitionDuration;v.isNumber(e)&&(n=e),xe.Y.animationsEnabled||(n=0);var s=0;return I.each(I.indexed(this.dataItems.iterator()),function(l){var d=l[0];t.sequencedInterpolation&&(s=t.sequencedInterpolationDelay*d+n*(d-i)/(a-i)),l[1].show(n,s,["value"])}),h.prototype.show.call(this,e)},r.prototype.hide=function(e){var t=this,i=["value"],n=this.startIndex,s=this.endIndex,o=0,l=this.hiddenState.transitionDuration;v.isNumber(e)&&(l=e),xe.Y.animationsEnabled||(l=0),I.each(I.indexed(this.dataItems.iterator()),function(u){var c=u[0];t.sequencedInterpolation&&(o=t.sequencedInterpolationDelay*c+l*(c-n)/(s-n)),u[1].hide(l,o,0,i)});var d=h.prototype.hide.call(this,e);return d&&!d.isFinished()&&d.delay(o),d},r.prototype.setAlignLabels=function(e){h.prototype.setAlignLabels.call(this,e),this.ticks.template.disabled=!e;var t=this.labelsContainer;t&&(e?(t.height=void 0,t.width=void 0,t.margin(10,10,10,10)):(t.width=(0,R.aQ)(100),t.height=(0,R.aQ)(100))),this.labelsOpposite=this.labelsOpposite},Object.defineProperty(r.prototype,"labelsOpposite",{get:function(){return this.getPropertyValue("labelsOpposite")}
1,set:function(e){this.setPropertyValue("labelsOpposite",e);var t=this.labels.template,i="none",a="none";this.alignLabels?e?(this.labelsContainer.toFront(),"vertical"==this.orientation?(this.ticks.template.locationX=1,t.horizontalCenter="left",i="right"):(this.ticks.template.locationY=1,t.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",t.align=i,t.valign=a,this.validateLayout(),this.ticks.each(function(n){n.invalidate()}),this.invalidateDataItems()},enumerable:!0,configurable:!0}),r}(Fe);F.i.registeredClasses.FunnelSeries=Bt,F.i.registeredClasses.FunnelSeriesDataItem=qe;var et=function(h){function r(){var e=h.call(this)||this;return e.className="PyramidSeriesDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),r}(qe),zt=function(h){function r(){var e=h.call(this)||this;return e.className="PyramidSeries",e.topWidth=(0,R.aQ)(0),e.bottomWidth=(0,R.aQ)(100),e.pyramidHeight=(0,R.aQ)(100),e.valueIs="area",e.sliceLinks.template.width=0,e.sliceLinks.template.height=0,e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.applyInternalDefaults=function(){h.prototype.applyInternalDefaults.call(this),v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Pyramid Series"))},r.prototype.createDataItem=function(){return new et},r.prototype.validate=function(){h.prototype.validate.call(this),this._nextWidth=void 0},r.prototype.getNextValue=function(e){var t=e.index,i=e.getWorkingValue("value");return t<this.dataItems.length-1&&(i=this.dataItems.getIndex(t+1).getWorkingValue("value")),0==i&&(i=1e-6),i},r.prototype.validateDataElements=function(){var e=this,t=this.slice
1sContainer.innerWidth,i=this.slicesContainer.innerHeight;if(this.dataItems.each(function(s){if(s.value>0){var o=s.getWorkingValue("value")/s.value,l=s.sliceLink;"vertical"==e.orientation?i-=l.pixelHeight*o:t-=l.pixelWidth*o}}),this._pyramidHeight=O.relativeToValue(this.pyramidHeight,i),this._pyramidWidth=O.relativeToValue(this.pyramidHeight,t),"vertical"==this.orientation){var a=(i-this._pyramidHeight)/2;this.slicesContainer.y=a,this.labelsContainer.y=a,this.ticksContainer.y=a}else{var n=(t-this._pyramidWidth)/2;this.slicesContainer.x=n,this.labelsContainer.x=n,this.ticksContainer.x=n}h.prototype.validateDataElements.call(this)},r.prototype.decorateSlice=function(e){var t=this.dataItem.values.value.absoluteSum;if(0!=t){var i=e.slice,a=e.sliceLink,n=e.label,s=e.tick;this.getNextValue(e);var o=Math.abs(e.getWorkingValue("value")),l=this._pyramidWidth,d=this._pyramidHeight,u=this.slicesContainer.innerWidth,c=this.slicesContainer.innerHeight,f=a.pixelWidth,y=a.pixelHeight;if(e.__disabled=!(0!=e.value&&null!=e.value||!this.ignoreZeroValues),"vertical"==this.orientation){var g=O.relativeToValue(this.topWidth,u);v.isNumber(this._nextWidth)||(this._nextWidth=g);var m=O.relativeToValue(this.bottomWidth,u),x=this._nextWidth,b=Math.atan2(d,g-m);0==(P=Math.tan(Math.PI/2-b))&&(P=1e-8);var S=void 0,A=void 0;if("area"==this.valueIs){var T=(g+m)/2*d*o/t,L=Math.abs(x*x-2*T*P);A=(S=(x-Math.sqrt(L))/P)>0?(2*T-S*x)/S:x}else A=x-(S=d*o/t)*P;i.height=S,i.width=u,i.bottomWidth=A,i.topWidth=x,a.topWidth=i.bottomWidth,a.bottomWidth=i.bottomWidth,i.y=this._nextY,n.x=this.alignLabels?0:u/2,n.y=i.pixelY+i.pixelHeight*s.locationY+i.dy,this._nextY+=i.pixelHeight+y*o/Math.max(Math.abs(e.value),1e-8),a.y=this._nextY-y,a.x=u/2}else{var P;g=O.relativeToValue(this.topWidth,c),v.isNumber(this._nextWidth)||(this._nextWidth=g),m=O.relativeToValue(this.bottomWidth,c),x=this._nextWidth,b=Math.atan2(l,g-m),0==(P=Math.tan(Math.PI/2-b))&&(P=1e-8);var w=void 0;A=void 0,A="area"==this.valueIs?(2*(T=(g+m)/2*l*o/t)-(w=(x-Math.sqrt(x*x-2*T*P))/P)*x)/w:x-(w=l*o/t)*P,i.width=w,i.height=c,i.bottomWidth=A,i.topWidth=x,a.topWidth=i.bottomWidth,a.bottomWidth=i.bottomWidth,i.x=this._nextY,n.y=this.alignLabels?this.labelsContainer.measuredHeight:c/2,n.x=i.pixelX+i.pixelWidth*s.locationX+i.dx,this._nextY+=i.pixelWidth+f*o/Math.max(Math.abs(e.value),1e-8),a.x=this._nextY-f,a.y=c/2}this._nextWidth=i.bottomWidth}},Object.defineProperty(r.prototype,"topWidth",{get:function(){return this.getPropertyValue("topWidth")},set:function(e){this.setPercentProperty("topWidth",e,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pyramidHeight",{get:function(){return this.getPropertyValue("pyramidHeight")},set:function(e){this.setPercentProperty("pyramidHeight",e,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"bottomWidth",{get:function(){return this.getPropertyValue("bottomWidth")},set:function(e){this.setPercentProperty("bottomWidth",e,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"valueIs",{get:function(){return this.getPropertyValue("valueIs")},set:function(e){this.setPropertyValue("valueIs",e)&&this.invalidate()},enumerable:!0,configurable:!0}),r}(Bt);F.i.registeredClasses.PyramidSeries=zt,F.i.registeredClasses.PyramidSeriesDataItem=et;var Et=function(h){function r(){var e=h.call(this)||this;return e.className="PictorialStackedSeriesDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),r}(et),Si=function(h){function r(){var e=h.call(this)||this;return e.className="PictorialStackedSeries",e.topWidth=(0,R.aQ)(100),e.bottomWidth=(0,R.aQ)(100),e.valueIs="height",e.applyTheme(),e.startLocation=0,e.endLocation=1,e.align="center",e.valign="middle",e._maskSprite=e.slicesContainer.createChild(_.jy),e._maskSprite.visible=!1,e._maskSprite.zIndex=100,e._maskSprite.shouldClone=!1,e}return(0,D.ZT)(r,h),r.prototype.validateDataElements=function(){var e=this.slicesContainer.maxWidth,t=this.slice
1sContainer.maxHeight,i=this._maskSprite,a=i.measuredWidth/i.scale,n=i.measuredHeight/i.scale,s=p.min(t/n,e/a);s==1/0&&(s=1),s=p.max(.001,s);var c,f,o=this.startLocation,l=this.endLocation,d=p.min(e,a*s),u=p.min(t,n*s);i.scale=s,"vertical"==this.orientation?(this.topWidth=d+4,this.bottomWidth=d+4,this.pyramidHeight=u*(l-o),i.x=e/2,i.y=u/2):(this.topWidth=u+4,this.bottomWidth=u+4,this.pyramidHeight=d*(l-o),i.valign="middle",i.x=d/2,i.y=t/2),i.verticalCenter="middle",i.horizontalCenter="middle",h.prototype.validateDataElements.call(this),"vertical"==this.orientation?("bottom"==this.valign&&(c=t-u),"middle"==this.valign&&(c=(t-u)/2),"top"==this.valign&&(c=0),"left"==this.align&&(f=-(e-d)/2),"center"==this.align&&(f=0),"right"==this.align&&(f=(e-d)/2),this.slices.template.dy=o*u,this.alignLabels&&(this.slicesContainer.dx=f)):("bottom"==this.valign&&(c=(t-u)/2),"middle"==this.valign&&(c=0),"top"==this.valign&&(c=-(t-u)/2),"left"==this.align&&(f=0),"center"==this.align&&(f=(e-d)/2),"right"==this.align&&(f=e-d),this.slices.template.dx=o*d,this.alignLabels&&(this.slice
1sContainer.dy=c)),this.slicesContainer.x=f,this.labelsContainer.x=f,this.ticksContainer.x=f,this.slicesContainer.y=c,this.labelsContainer.y=c,this.ticksContainer.y=c,d>0&&u>0&&(this.slicesContainer.mask=i)},r.prototype.applyInternalDefaults=function(){h.prototype.applyInternalDefaults.call(this),v.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Pyramid Series"))},r.prototype.createDataItem=function(){return new Et},Object.defineProperty(r.prototype,"maskSprite",{get:function(){return this._maskSprite},enumerable:!0,configurable:!0}),r.prototype.initSlice=function(e){h.prototype.initSlice.call(this,e);var t=e.states.getKey("hover");t&&(t.properties.expandDistance=0)},Object.defineProperty(r.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(e){this.setPropertyValue("startLocation",e)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(e){this.setPropertyValue("endLocation",e)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),r}(zt);F.i.registeredClasses.PictorialStackedSeries=Si,F.i.registeredClasses.PictorialStackedSeriesDataItem=Et;var er=k(77731),Ht=function(h){function r(){var e=h.call(this)||this;return e.className="ConeColumn",e}return(0,D.ZT)(r,h),r.prototype.createAssets=function(){this.coneColumn=this.createChild(er.Q),this.coneColumn.shouldClone=!1,this.column=this.coneColumn},r.prototype.copyFrom=function(e){h.prototype.copyFrom.call(this,e),this.coneColumn&&this.coneColumn.copyFrom(e.coneColumn)},r}(ue);F.i.registeredClasses.ConeColumn=Ht;var Vi=function(h){function r(){var e=h.call(this)||this;return e.className="ConeSeriesDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),r}(se),Fi=function(h){function r(){var e=h.call(this)||this;return e.className="ConeSeries",e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.createColumnTemplate=function(){return new Ht},r.prototype.getMaskPath=function(){var e=0,t=0,i=this.columns.getIndex(0);if(i)return this.baseAxis==this.xAxis?t=i.coneColumn.innerWidth/2+1:e=i.coneColumn.innerHeight/2+1,C.rectToPath({x:-e,y:0,width:this.xAxis.axisLength+e,height:this.yAxis.axisLength+t})},r.prototype.validateDataElementReal=function(e){if(h.prototype.validateDataElementReal.call(this,e),e.column){var i=e.column.coneColumn;i.fill=e.column.fill,i.orientation=this.baseAxis==this.yAxis?"horizontal":"vertical"}},r}(de);F.i.registeredClasses.ConeSeries=Fi,F.i.registeredClasses.ConeSeriesDataItem=Vi;var Ut=function(h){function r(){var e=h.call(this)||this;return e.className="CurvedColumn",e}return(0,D.ZT)(r,h),r.prototype.createAssets=function(){this.curvedColumn=this.createChild(_.jy),this.curvedColumn.shouldClone=!1,this.setPropertyValue("tension",.7),this.width=(0,R.aQ)(120),this.height=(0,R.aQ)(120),this.column=this.curvedColumn},r.prototype.draw=function(){h.prototype.draw.call(this);var n,e=this.realWidth,t=this.realHeight,i=this.realX-this.pixelX,a=this.realY-this.pixelY;O.used(this.width);var s=1,o=1;"vertical"==this.orientation?(s=this.tension,n=[{x:0,y:t+a},{x:e/2,y:a},{x:e,y:t+a}]):(o=this.tension,n=[{x:i,y:t=Math.abs(t)},{x:i+e,y:t/2},{x:i,y:0}]);var l=C.moveTo(n[0])+new ae.Jb(s,o).smooth(n);this.column.path=l},r.prototype.copyFrom=function(e){h.prototype.copyFrom.call(this,e),this.curvedColumn&&this.curvedColumn.copyFrom(e.curvedColumn)},Object.defineProperty(r.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0)},enumerable:!0,configurable:!0}),r}(ue);F.i.registeredClasses.CurvedColumn=Ut;var Ii=function(h){function r(){var e=h.call(this)||this;return e.className="CurvedColumnSeriesDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),r}(se),Oi=function(h){function r(){var e=h.call(this)||this;return e.className="CurvedColumnSeries",e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.createColumnTemplate=function(){return new Ut},r.prototype.validateDataElementReal=function(e){h.prototype.validateDataElementReal.call(this,e);var t=e.column;(t=e.column)&&(e.column.curvedColumn.fill=e.column.fill,t.orientation=this.baseAxis==this.yAxis?"horizontal":"vertical")},r}(de);F.i.registeredClasses.CurvedColumnSeries=Oi,F.i.registeredClasses.CurvedColumnSeriesDataItem=Ii;var tr=k(9169),ir=k(82921),ki=function(h){function r(){var e=h.call(this)||this;e.className="CircleBullet";var t=e.createChild(ct.C);
1return t.shouldClone=!1,t.radius=5,t.isMeasured=!1,e.circle=t,e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.copyFrom=function(e){h.prototype.copyFrom.call(this,e),this.circle.copyFrom(e.circle)},r}(pe.g);F.i.registeredClasses.CircleBullet=ki;var Ri=function(h){function r(){var e=h.call(this)||this;return e.className="ErrorBullet",e.errorLine=e.createChild(_.jy),e.errorLine.shouldClone=!1,e.width=20,e.height=20,e.strokeOpacity=1,e.isDynamic=!0,e}return(0,D.ZT)(r,h),r.prototype.validatePosition=function(){h.prototype.validatePosition.call(this);var e=this.pixelWidth/2,t=this.pixelHeight/2;this.errorLine.path=C.moveTo({x:-e,y:-t})+C.lineTo({x:e,y:-t})+C.moveTo({x:0,y:-t})+C.lineTo({x:0,y:t})+C.moveTo({x:-e,y:t})+C.lineTo({x:e,y:t})},r.prototype.copyFrom=function(e){h.prototype.copyFrom.call(this,e),this.errorLine.copyFrom(e.errorLine)},r}(pe.g);F.i.registeredClasses.ErrorBullet=Ri;var rr=k(33160),ar=k(49601),Ni=k(67557),nr=k(45955),wi=function(h){function r(){var e=h.call(this)||this;return e.className="NavigationBarDataItem",e.applyTheme(),e}return(0,D.ZT)(r,h),Object.defineProperty(r.prototype,"name",{get:function(){return this.properties.name},set:function(e){this.setProperty("name",e)},enumerable:!0,configurable:!0}),r}(ar.z),Li=function(h){function r(){var e=h.call(this)||this;e.className="NavigationBar";var t=new J.h,i=new Ni.h;i.valign="middle",i.paddingTop=8,i.paddingBottom=8,e.paddingBottom=2,e.links=new W.o(i),e._disposers.push(new W.zQ(e.links)),e._disposers.push(i),e._linksIterator=new I.ListIterator(e.links,function(){return e.links.create()}),e._linksIterator.createNewItems=!0;var a=new nr.C;a.direction="right",a.width=8,a.height=12,a.fill=t.getFor("alternativeBackground"),a.fillOpacity=.5,a.valign="middle",a.marginLeft=10,a.marginRight=10,e.separators=new W.o(a),e._disposers.push(new W.zQ(e.separators)),e._disposers.push(a);var n=new Ni.h;return e.activeLink=n,n.copyFrom(i),n.valign="middle",n.fontWeight="bold",e.width=(0,R.aQ)(100),e.layout="grid",e.dataFields.name="name",e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.validateDataElements=function(){this.removeChildren(),this._linksIterator.reset(),h.prototype.validateDataElements.call(this)},r.prototype.validateDataElement=function(e){var t;if(h.prototype.validateDataElement.call(this,e),e.index<this.dataItems.length-1){(t=this._linksIterator.getLast()).parent=this;var i=this.separators.create();i.parent=this,i.valign="middle"}else(t=this.activeLink).events.copyFrom(this.links.template.events),t.hide(0),t.show(),t.parent=this;t.dataItem=e,t.text=e.name,t.validate()},r}(rr.w);F.i.registeredClasses.NavigationBar=Li,F.i.registeredClasses.NavigationBarDataItem=wi;var oe=k(23282),sr=k(47744),or=k(22964),Zt=function(h){function r(){var e=h.call(this)||this;e.point={x:0,y:0},e._stick="none",e.className="Cursor",e.width=(0,R.aQ)(100),e.height=(0,R.aQ)(100),e.shouldClone=!1,e.hide(0),e.trackable=!0,e.clickable=!0,e.isMeasured=!1;var t=(0,oe.S)();return e._disposers.push(t.body.events.on("down",e.handleCursorDown,e)),e._disposers.push(t.body.events.on("up",e.handleCursorUp,e)),e._disposers.push(t.body.events.on("track",e.handleCursorMove,e)),e.applyTheme(),e}return(0,D.ZT)(r,h),r.prototype.handleCursorMove=function(e){if(!(!this.interactionsEnabled||this.interactions.isTouchProtected&&e.touch)){if(("zoom"!=this._generalBehavior&&"pan"!=this._generalBehavior||!this.downPoint)&&!(0,oe.S)().isLocalElement(e.pointer,this.paper.svg,this.uid))return void((!this.isHidden||!this.isHiding)&&this.hide());var t=O.documentPointToSprite(e.pointer.point,this);return"hard"==this._stick&&this._stickPoint&&(t=this._stickPoint),"soft"==this._stick&&this._stickPoint&&(this.fitsToBounds(t)||(t=this._stickPoint)),this._adapterO&&this._adapterO.apply("cursorPoint",t),this.triggerMove(t),t}},r.prototype.hideReal=function(e){if("hard"!=this._stick&&"soft"!=this._stick||!this._stickPoint)return h.prototype.hideReal.call(this,e)},r.prototype.triggerMove=function(e,t,i){e.x=p.round(e.x,1),e.y=p.round(e.y,1),t&&(this._stick=t),("hard"==t||"soft"==t)&&(this._stickPoint=e),this.triggerMoveReal(e,i)},r.prototype.triggerMoveReal=function(e,t){(this.point.x!=e.x||this.point.y!=e.y||t)&&(this.point=e,this.invalidatePosition(),this.fitsToBounds(e)?this.show(0):this.downPoint||this.hide(0),this.visible&&(this.getPositions(),this.dispatch("cursorpositionchanged")))},r.prototype.triggerDown=function(e){this.triggerDownReal(e)},r.prototype.triggerDownReal=function(e){switch(this._generalBehavior){case"zoom":this.dispatchImmediately("zoomstarted");break;case"select":this.dispatchImmediately("selectstarted");break;case"pan":this.dispatchImmediately("panstarted"),(0,oe.S)().setGlobalStyle(Ke.c.grabbing)}},r.prototype.triggerUp=function(e){this.triggerUpReal(e)},r.prototype.triggerUpReal=function(e){or.B.requestFrame(),this.updatePoint(this.upPoint);var t=(0,oe.S)();if(p.getDistance(this._upPointOrig,this._downPointOrig)>t.getHitOption(this.interactions,"hitTolerance")){switch(this._generalBehavior){case"zoom":this.dispatch("zoomended");break;case"select":this.dispatch("selectended");break;case"pan":this.dispatch("panended"),t.setGlobalStyle(Ke.c.default)}this.downPoint=void 0,this.updateSelection()}},r.prototype.updateSelection=function(){},r.prototype.getPositions=function(){this.xPosition=this.point.x/this.innerWidth,this.yPosition=1-this.point.y/this.innerHeight},r.prototype.handleCursorDown=function(e){if(!(!this.interactionsEnabled||this.interactions.isTouchProtected&&e.touch)&&(0,oe.S)().isLocalElement(e.pointer,this.paper.svg,this.uid)){sr.yv();var t=O.documentPointToSprite(e.pointer.point,this);"hard"==this._stick&&this._stickPoint&&(t=this._stickPoint),this._adapterO&&this._adapterO.apply("cursorPoint",t),this.fitsToBounds(t)&&(this._downPointOrig={x:t.x,y:t.y},e.event.cancelable&&this.shouldPreventGestures(e.touch)&&this.fitsToBounds(t)&&e.event.preventDefault(),this.triggerMove(t),this.triggerDown(t))}},r.prototype.shouldPreventGestures=function(e){return!0},r.prototype.updatePoint=function(e){},r.prototype.handleCursorUp=function(e){if(this.interactionsEnabled&&(this.downPoint||(0,oe.S)().isLocalElement(e.pointer,this.paper.svg,this.uid))){var t=O.documentPointToSprite(e.pointer.point,this);this._adapterO&&this._adapterO.apply("cursorPoint",t),this.downPoint&&this.fitsToBounds(this.downPoint)&&("hard"==this._stick&&this._stickPoint&&(t=this._stickPoint),this._upPointOrig={x:t.x,y:t.y},this.triggerMove(t),this.triggerUp(t))}},Object.defineProperty(r.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e,v.hasValue(this._chart.plotContainer)&&(0,oe.S)().lockElement(this._chart.plotContainer.interactions)},enumerable:!0,configurable:!0}),r}(K.W);F.i.registeredClasses.Cursor=Zt;var Kt=function(h){function r(){var e=h.call(this)||this;e._lineX=new Z.cx,e._lineY=new Z.cx,e._xAxis=new Z.cx,e._yAxis=new Z.cx,e._snapToDisposers=[],e.className="XYCursor",e.behavior="zoomX",e.maxPanOut=.1;var t=new J.h;e.snapOnPan=!0;var i=e.createChild(_.jy);i.shouldClone=!1,i.fillOpacity=.2,i.fill=t.getFor("alternativeBackgroun
1d"),i.isMeasured=!1,i.visible=!1,i.interactionsEnabled=!1,e.selection=i,e._disposers.push(e.selection);var a=e.createChild(_.jy);a.shouldClone=!1,a.stroke=t.getFor("grid"),a.fill=(0,q.$_)(),a.strokeDasharray="3,3",a.isMeasured=!1,a.strokeOpacity=.4,a.interactionsEnabled=!1,a.y=0,e.lineX=a,e._disposers.push(e.lineX);var n=e.createChild(_.jy);return n.shouldClone=!1,n.stroke=t.getFor("grid"),n.fill=(0,q.$_)(),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(0,D.ZT)(r,h),r.prototype.updateSize=function(){this.lineX&&(this.lineX.path=C.moveTo({x:0,y:0})+C.lineTo({x:0,y:this.innerHeight})),this.lineY&&(this.lineY.path=C.moveTo({x:0,y:0})+C.lineTo({x:this.innerWidth,y:0}))},r.prototype.updateSelection=function(){if(this._usesSelection){var e=this.downPoint,t=this.behavior;if(e){var i=this.point;this.lineX&&(i.x=this.lineX.pixelX),this.lineY&&(i.y=this.lineY.pixelY);var a=this.selection,n=Math.min(i.x,e.x),s=Math.min(i.y,e.y),o=p.round(Math.abs(e.x-i.x),this._positionPrecision),l=p.round(Math.abs(e.y-i.y),this._positionPrecision);switch(t){case"zoomX":case"selectX":s=0,l=this.pixelHeight;break;case"zoomY":case"selectY":n=0,o=this.pixelWidth}a.x=n,a.y=s,a.path=C.rectangle(o,l),a.validatePosition()}else"select"!=this._generalBehavior&&this.selection.hide()}},r.prototype.fixPoint=function(e){return e.x=Math.max(0,e.x),e.y=Math.max(0,e.y),e.x=Math.min(this.pixelWidth,e.x),e.y=Math.min(this.pixelHeight,e.y),e},r.prototype.triggerMoveReal=function(e,t){h.prototype.triggerMoveReal.call(this,e,t);var i=this.snapToSeries;if(i&&!this.downPoint)if(i instanceof le)i.isHidden&&this.updateLinePositions(e);else{var a=!0;z.each(i,function(n){n.isHidden||(a=!1)}),a&&this.updateLinePositions(e)}else this.updateLinePositions(e);this.downPoint&&p.getDistance(this.downPoint,e)>3&&"pan"==this._generalBehavior&&(this.getPanningRanges(),this.dispatch("panning"))},r.prototype.updateLinePositions=function(e){e=this.fixPoint(this.point),this.lineX&&this.lineX.visible&&!this.xAxis&&(this.lineX.x=e.x),this.lineY&&this.lineY.visible&&!this.yAxis&&(this.lineY.y=e.y),this.updateSelection()},r.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 t=this.selection,a=this.downPoint.y;this._usesSelection&&(t.x=this.downPoint.x,t.y=a,t.path="",t.show()),h.prototype.triggerDownReal.call(this,e)}else this.downPoint=void 0;else this.downPoint=void 0},r.prototype.updatePoint=function(e){this.lineX&&(e.x=this.lineX.pixelX),this.lineY&&(e.y=this.lineY.pixelY)},r.prototype.triggerUpReal=function(e){this.hasMoved()?this.downPoint&&(this.upPoint=e,this.updatePoint(this.upPoint),"pan"!=this._generalBehavior&&this.getRanges(),"select"!=this._generalBehavior&&this.selection.hide(),h.prototype.triggerUpReal.call(this,e)):("select"!=this._generalBehavior?this.selection.hide(0):(this.xRange=void 0,this.yRange=void 0,this.dispatchImmediately("selectended")),"pan"==this._generalBehavior&&(0,oe.S)().setGlobalStyle(Ke.c.default),this.dispatchImmediately("behaviorcanceled")),this.downPoint=void 0,this.dispatch("cursorpositionchanged")},r.prototype.hasMoved=function(){return("zoomX"==this.behavior||"panX"==this.behavior?p.getHorizontalDistance(this._upPointOrig,this._downPointOrig):"zoomY"==this.behavior||"panY"==this.behavior?p.getVerticalDistance(this._upPointOrig,this._downPointOrig):p.getDistance(this._upPointOrig,this._downPointOrig))>(0,oe.S)().getHitOption(this.interactions,"hitTolerance")},r.prototype.getPanningRanges=function(){var e=p.round(this.downPoint.x/this.innerWidth,5),t=1-p.round(this.downPoint.y/this.innerHeight,5),n=e-p.round(this.point.x/this.innerWidth,5),s=t-(1-p.round(this.point.y/this.innerHeight,5));this.xRange={start:n,end:1+n},this.yRange={start:s,end:1+s},"panX"==this.behavior&&(this.yRange.start=0,this.yRange.end=1),"panY"==this.behavior&&(this.xRange.start=0,this.xRange.end=1)},r.prototype.getRanges=function(){this.lineX&&(this.upPoint.x=this.lineX.pixelX),this.lineY&&(this.upPoint.y=this.lineY.pixelY),O.used(this.selection);
1var e=p.round(this.downPoint.x/this.innerWidth,5),t=p.round(this.upPoint.x/this.innerWidth,5),i=1-p.round(this.downPoint.y/this.innerHeight,5),a=1-p.round(this.upPoint.y/this.innerHeight,5);this.xRange={start:p.min(e,t),end:p.max(e,t)},this.yRange={start:p.min(i,a),end:p.max(i,a)}},Object.defineProperty(r.prototype,"behavior",{get:function(){return this.getPropertyValue("behavior")},set:function(e){this.setPropertyValue("behavior",e,!0),this._usesSelection=!1,-1!=e.indexOf("zoom")&&(this._generalBehavior="zoom",this._usesSelection=!0),-1!=e.indexOf("select")&&(this._generalBehavior="select",this._usesSelection=!0),-1!=e.indexOf("pan")&&(this._generalBehavior="pan",this._usesSelection=!1)},enumerable:!0,configurable:!0}),r.prototype.shouldPreventGestures=function(e){return!(this.interactions.isTouchProtected&&e||"none"==this.behavior)},Object.defineProperty(r.prototype,"fullWidthLineX",{get:function(){return this.getPropertyValue("fullWidthLineX")},set:function(e){this.setPropertyValue("fullWidthLineX",e),e||this.updateSize()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fullWidthLineY",{get:function(){return this.getPropertyValue("fullWidthLineY")},set:function(e){this.setPropertyValue("fullWidthLineY",e),e||this.updateSize()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hideSeriesTooltipsOnSelection",{get:function(){return this.getPropertyValue("hideSeriesTooltipsOnSelection")},set:function(e){this.setPropertyValue("hideSeriesTooltipsOnSelection",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"maxTooltipDistance",{get:function(){return this.getPropertyValue("maxTooltipDistance")},set:function(e){this.setPropertyValue("maxTooltipDistance",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"maxPanOut",{get:function(){return this.getPropertyValue("maxPanOut")},set:function(e){this.setPropertyValue("maxPanOut",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"xAxis",{get:function(){return this._xAxis.get()},set:function(e){var t=this;this._xAxis.get()!=e&&this._xAxis.set(e,new Z.FV([e.tooltip.events.on("positionchanged",this.handleXTooltipPosition,this,!1),e.events.on("rangechangestarted",function(i){t.hide(0),t.preventShow=!0},void 0,!1),e.events.on("rangechangeended",function(i){t.preventShow=!1,t.hide(0),t.dispatch("cursorpositionchanged")},void 0,!1)]))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"yAxis",{get:function(){return this._yAxis.get()},set:function(e){var t=this;this._yAxis.get()!=e&&this._yAxis.set(e,new Z.FV([e.tooltip.events.on("positionchanged",this.handleYTooltipPosition,this,!1),e.events.on("rangechangestarted",function(i){t.hide(0),t.__disabled=!0},void 0,!1),e.events.on("rangechangeended",function(i){t.__disabled=!1,t.hide(0),t.dispatch("cursorpositionchanged")},void 0,!1)]))},enumerable:!0,configurable:!0}),r.prototype.handleXTooltipPosition=function(e){var t=this.xAxis.tooltip,i=O.svgPointToSprite({x:t.pixelX,y:t.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 n=this.xAxis.currentItemStartPoint,s=this.xAxis.currentItemEndPoint;if(n&&s){this.lineX.x=a;var o=s.x-n.x;this.lineX.path=C.rectangle(o,this.innerHeight,-o/2)}}},r.prototype.handleYTooltipPosition=function(e){var t=this.yAxis.tooltip,i=O.svgPointToSprite({x:t.pixelX,y:t.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 n=this.yAxis.currentItemStartPoint,s=this.yAxis.currentItemEndPoint;if(n&&s){this.lineY.y=a;var o=s.y-n.y;this.lineY.path=C.rectangle(this.innerWidth,o,0,-o/2)}}},Object.defineProperty(r.prototype,"lineX",{get:function(){return this._lineX.get()},set:function(e){e?(e.setElement(this.paper.add("path")),this._lineX.set(e,e.events.on("positionchanged",this.updateSelection,this,!1)),e.interactionsEnabled=!1,e.parent=this):this._lineX.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"lineY",{get:function(){return this._lineY.get()},set:function(e){e?(e.setElement(this.paper.add("path")),this._lineY.set(e,e.events.on("positionchanged",this.updateSelection,this,!1)),e.parent=this,e.interactionsEnabled=!1):this._lineY.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"selection",{get:function(){return this._selection},set:function(e){this._selection=e,e&&(e.element=this.paper.add("path"),e.parent=this)},enumerable:!0,configurable:!0}),r.prototype.processConfig=function(e){var t=this;if(e&&(v.hasValue(e.xAxis)&&v.isString(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)),v.hasValue(e.yAxis)&&v.isString(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)),v.hasValue(e.snapToSeries))){var i=v.isArray(e.snapToSeries)?e.snapToSeries:[e.snapToSeries],a=!1;z.each(i,function(n,s){v.isString(n)&&(t.map.hasKey(n)?i[s]=t.map.getKey(n):(t.processingErrors.push('[XYCursor] No series with id "'+n+'" found for `series`'),a=!0))}),a?delete e.snapToSeries:e.snapToSeries=i}h.prototype.processConfig.call(this,e)},Object.defineProperty(r.prototype,"snapToSeries",{get:function(){return this.getPropertyValue("snapToSeries")},set:function(e){var t=this;this.setPropertyValue("snapToSeries",e)&&(e instanceof le&&(e=[e]),this._snapToDisposers&&z.each(this._snapToDisposers,function(i){i.dispose()}),this._snapToDisposers=[],e&&z.each(e,function(i){t._snapToDisposers.push(i.events.on("tooltipshownat",function(){t.handleSnap(i)},void 0,!1))}))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"snapOnPan",{get:function(){return this.getPropertyValue("snapOnPan")},set:function(e){this.setPropertyValue("snapOnPan",e)},enumerable:!0,configurable:!0}),r.prototype.handleSnap=function(e){if(!this.downPoint){var t=e.getTooltipX()+e.xAxis.pixelX,i=e.getTooltipY()+e.yAxis.pixelY,a=e.xAxis,n=e.yAxis;a&&a.renderer.opposite&&(i-=this.pixelHeight),this.point={x:t,y:i},this.getPositions();var s=t,o=i;t-=this.pixelWidth,n&&n.renderer.opposite&&(t+=this.pixelWidth);var l=e.tooltip,d=l.animationDuration,u=l.animationEasing;a instanceof M.m&&!(a instanceof B)&&n instanceof M.m&&!(n instanceof B)?(e.yAxis.showTooltipAtPosition(this.yPosition),e.xAxis.showTooltipAtPosition(this.xPosition)):(e.baseAxis==e.xAxis&&e.yAxis.showTooltipAtPosition(this.yPosition),e.baseAxis==e.yAxis&&e.xAxis.showTooltipAtPosition(this.xPosition)),this.lineY.x=t,this.lineX.y=i,this.xAxis||this.lineX.animate([{property:"x",to:s}],d,u),this.yAxis||this.lineY.animate([{property:"y",to:o}],d,u)}},r.prototype.dispose=function(){this.hide(0),h.prototype.dispose.call(this)},r}(Zt);
1F.i.registeredClasses.XYCursor=Kt;var Xi=function(h){function r(){var e=h.call(this)||this;return e.className="RadarCursor",e.radius=(0,R.aQ)(100),e.innerRadius=(0,R.aQ)(0),e.applyTheme(),e.mask=void 0,e}return(0,D.ZT)(r,h),r.prototype.fitsToBounds=function(e){var t=p.getDistance(e);return t<this.truePixelRadius+1&&t>this.pixelInnerRadius-1},Object.defineProperty(r.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),r.prototype.triggerMoveReal=function(e,t){(!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(),h.prototype.triggerMoveReal.call(this,e,t)},r.prototype.updateLineX=function(e){var t=this.pixelRadius,i=this.startAngle,a=this.endAngle,n=this.pixelInnerRadius;if(t>0&&v.isNumber(i)&&v.isNumber(a)&&v.isNumber(n)){var s=p.fitAngleToRange(p.getAngle(e),i,a),o=void 0;if(this.lineX&&this.lineX.visible){if(this.lineX.moveTo({x:0,y:0}),this.xAxis&&this.fullWidthLineX){var l=this.xAxis.currentItemStartPoint,d=this.xAxis.currentItemEndPoint;if(l&&d){var u=p.fitAngleToRange(p.getAngle(l),i,a),f=p.fitAngleToRange(p.getAngle(d),i,a)-u;i<a?f<0&&(f+=360):f>0&&(f-=360),o=C.moveTo({x:n*p.cos(s-=f/2),y:n*p.sin(s)})+C.lineTo({x:t*p.cos(s),y:t*p.sin(s)})+C.arcTo(s,f,t)+C.lineTo({x:n*p.cos(s+f),y:n*p.sin(s+f)})+C.arcTo(s+f,-f,n)}}o||(o=C.moveTo({x:n*p.cos(s),y:n*p.sin(s)})+C.lineTo({x:t*p.cos(s),y:t*p.sin(s)})),this.lineX.path=o}}},r.prototype.updateLineY=function(e){if(this.lineY&&this.lineY.visible){var t=this.startAngle,i=this.endAngle,a=this.truePixelRadius,n=p.fitToRange(p.getDistance(e),0,this.truePixelRadius);if(v.isNumber(n)&&v.isNumber(t)){this.lineY.moveTo({x:0,y:0});var s=void 0,o=i-t;if(this.yAxis&&this.fullWidthLineY){var l=this.yAxis.currentItemStartPoint,d=this.yAxis.currentItemEndPoint;if(l&&d){var u=p.fitToRange(p.getDistance(l),0,a);n=p.fitToRange(p.getDistance(d),0,a),s=C.moveTo({x:n*p.cos(t),y:n*p.sin(t)})+C.arcTo(t,o,n),s+=C.moveTo({x:u*p.cos(i),y:u*p.sin(i)})+C.arcTo(i,-o,u)}}s||(s=C.moveTo({x:n*p.cos(t),y:n*p.sin(t)})+C.arcTo(t,i-t,n)),this.lineY.path=s}}},r.prototype.updateSelection=function(){if(this._usesSelection){var e=this.downPoint;if(e){var t=this.point,i=this.pixelRadius,a=this.truePixelRadius,n=this.pixelInnerRadius,s=Math.min(this.startAngle,this.endAngle),o=Math.max(this.startAngle,this.endAngle),l=p.fitAngleToRange(p.getAngle(e),s,o),d=p.fitAngleToRange(p.getAngle(t),s,o),u=p.getDistance(e);if(u<a){var c=p.fitToRange(p.getDistance(t),0,a);this._prevAngle=d;var f=C.moveTo({x:0,y:0}),y=p.sin(l),g=p.cos(l),m=p.sin(d),x=p.cos(d),b=this.behavior;"zoomX"==b||"selectX"==b?f+=C.lineTo({x:i*g,y:i*y})+C.arcTo(l,d-l,i)+C.lineTo({x:n*x,y:n*m})+C.arcTo(d,l-d,n):"zoomY"==b||"selectY"==b?f=C.moveTo({x:c*p.cos(s),y:c*p.sin(s)})+C.arcTo(s,o-s,c)+C.lineTo({x:u*p.cos(o),y:u*p.sin(o)})+C.arcTo(o,s-o,u)+C.closePath():"zoomXY"==b&&(f=C.moveTo({x:c*p.cos(l),y:c*p.sin(l)})+C.arcTo(l,d-l,c)+C.lineTo({x:u*p.cos(d),y:u*p.sin(d)})+C.arcTo(d,l-d,u)+C.closePath()),this.selection.path=f}this.selection.moveTo({x:0,y:0})}}},r.prototype.getPositions=function(){if(this.chart){var t=this.pixelInnerRadius,i=this.truePixelRadius-t,a=this.startAngle,n=this.endAngle,s=p.fitAngleToRange(p.getAngle(this.point),a,n);this.xPosition=(s-a)/(n-a),this.yPosition=p.fitToRange((p.getDistance(this.point)-t)/i,0,1)}},r.prototype.updatePoint=function(e){},r.prototype.handleXTooltipPosition=function(e){if(this.xAxis.cursorTooltipEnabled){var t=this.xAxis.tooltip;this.updateLineX(O.svgPointToSprite({x:t.pixelX,y:t.pixelY},this))}},r.prototype.handleYTooltipPosition=function(e){if(this.yAxis.cursorTooltipEnabled){var t=this.yAxis.tooltip;this.updateLineY(O.svgPointToSprite({x:t.pixelX,y:t.pixelY},this))}},r.prototype.updateLinePositions=function(e){},r.prototype.getRanges=function(){var e=this.downPoint;if(e){var t=this.upPoint;if(this.chart){var a=this.pixelRadius,n=this.startAngle,s=this.endAngle,o=p.fitAngleToRange(p.getAngle(e),this.startAngle,this.endAngle),l=p.fitAngleToRange(p.getAngle(t),this.startAngle,this.endAngle),d=p.fitToRange(p.getDistance(e),0,a),u=p.fitToRange(p.getDistance(t),0,a),c=0,f=1,y=0,g=1,m=this.behavior;if("zoomX"==m||"selectX"==m||"zoomXY"==m||"selectXY"==m){var x=s-n;
1c=p.round((o-n)/x,5),f=p.round((l-n)/x,5)}("zoomY"==m||"selectY"==m||"zoomXY"==m||"selectXY"==m)&&(y=p.round(d/a,5),g=p.round(u/a,5)),this.xRange={start:Math.min(c,f),end:Math.max(c,f)},this.yRange={start:Math.min(y,g),end:Math.max(y,g)},"selectX"==this.behavior||"selectY"==this.behavior||"selectXY"==this.behavior||this.selection.hide()}}},r.prototype.updateSize=function(){},Object.defineProperty(r.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pixelRadius",{get:function(){return O.relativeRadiusToValue(this.radius,this.truePixelRadius)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"truePixelRadius",{get:function(){return O.relativeToValue((0,R.aQ)(100),p.min(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pixelInnerRadius",{get:function(){var e=this.innerRadius;return e instanceof R.gG&&(e=(0,R.aQ)(100*e.value*this.chart.innerRadiusModifyer)),O.relativeRadiusToValue(e,this.truePixelRadius)||0},enumerable:!0,configurable:!0}),r.prototype.fixPoint=function(e){return e},r}(Kt);F.i.registeredClasses.RadarCursor=Xi}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.