(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors~38066cc1"],{"1b36":function(t,e,i){"use strict";i.d(e,"a",(function(){return d}));var r=i("b9af"),n=i("bf95"),a=i("bf7a"),s=i("6bc7"),o=i("ab8f"),l=i("d97f"),h=i("057e"),u=r["a"],c=l["a"].bar,g=h["a"].area,d={},_={areErrorBarsVisible:s["n"],_createErrorBarGroup:s["n"],_checkData:function(t,e){var i=this.getValueFields();return o["a"]._checkData.call(this,t,e,{minValue:i[0],value:i[1]})&&t.minValue===t.minValue},getValueRangeInitialValue:o["a"].getValueRangeInitialValue,_getPointDataSelector:function(t){var e=this.getValueFields(),i=e[0],r=e[1],n=this.getTagField(),a=this.getArgumentField();return t=>({tag:t[n],minValue:this._processEmptyValue(t[i]),value:this._processEmptyValue(t[r]),argument:t[a],data:t})},_defaultAggregator:"range",_aggregators:{range(t,e){var{intervalStart:i,intervalEnd:r,data:a}=t;if(a.length){var s=e.getValueFields(),o=s[0],l=s[1],h=a.reduce((t,e)=>{var i=e[o],r=e[l];return Object(n["d"])(i)&&Object(n["d"])(r)?(t[o]=Math.min(t[o],Math.min(i,r)),t[l]=Math.max(t[l],Math.max(i,r)),t):t},{[o]:1/0,[l]:-1/0,[e.getArgumentField()]:e._getIntervalCenter(i,r)});if(!isFinite(h[o])||!isFinite(h[l])){if(a.filter(t=>null===t[o]&&null===t[l]).length!==a.length)return;h[o]=h[l]=null}return h}}},getValueFields:function(){return[this._options.rangeValue1Field||"val1",this._options.rangeValue2Field||"val2"]},getSeriesPairCoord(t,e){for(var i=null,{rotated:r}=this._options,n=!e&&!r||e&&r,a=n?"vy":"vx",s=r?"minX":"minY",o=n?"vx":"vy",l=this.getPoints(),h=0;h<l.length;h++){var u=l[h],c=void 0;if(e)c=u.getCenterCoord()[a[1]]===t?u[o]:void 0;else{var g=[Math.min(u[a],u[s]),Math.max(u[a],u[s])];c=t>=g[0]&&t<=g[1]?u[o]:void 0}if(this._checkAxisVisibleAreaCoord(!e,c)){i=c;break}}return i}};d.rangebar=u({},c,_),d.rangearea=u({},g,{_drawPoint:function(t){var e=t.point;e.isInVisibleArea()?(e.clearVisibility(),e.draw(this._renderer,t.groups),this._drawnPoints.push(e),e.visibleTopMarker||e.hideMarker("top"),e.visibleBottomMarker||e.hideMarker("bottom")):e.setInvisibility()},_prepareSegment:function(t,e){var i=this._processSinglePointsAreaSegment(t,e),r=Object(a["u"])(i,(function(t){return t.getCoords(!0)}));return{line:i,bottomLine:r,area:Object(a["u"])(i,(function(t){return t.getCoords()})).concat(r.slice().reverse()),singlePointSegment:i!==t}},_getDefaultSegment:function(t){var e=g._getDefaultSegment.call(this,t);return e.bottomLine=e.line,e},_removeElement:function(t){g._removeElement.call(this,t),t.bottomLine&&t.bottomLine.remove()},_drawElement:function(t,e){var i=g._drawElement.call(this,t,e);return i.bottomLine=this._bordersGroup&&this._createBorderElement(t.bottomLine,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),i},_applyStyle:function(t){var e=this._elementsGroup,i=this._bordersGroup;e&&e.smartAttr(t.elements),i&&i.attr(t.border),(this._graphics||[]).forEach((function(e){e.line&&e.line.attr({"stroke-width":t.border["stroke-width"]}),e.bottomLine&&e.bottomLine.attr({"stroke-width":t.border["stroke-width"]})}))},_updateElement:function(t,e,i,r){var n={points:e.bottomLine},a=t.bottomLine;g._updateElement.apply(this,arguments),a&&(i?a.animate(n):a.attr(n))}},_)},"1b7e":function(t,e,i){"use strict";i.r(e),i.d(e,"pie",(function(){return v})),i.d(e,"doughnut",(function(){return y})),i.d(e,"donut",(function(){return x}));var r=i("6bc7"),n=i("b144"),a=i("ab8f"),s=i("bf7a"),o=i("b9af"),l=i("d97f"),h=a["a"],u=l["a"].bar,c=o["a"],g=n["a"],d=r["n"],_=s["u"],p=isFinite,f=Math.max,b=.7,m="inside",v=c({},u,{_setGroupsSettings:function(){h._setGroupsSettings.apply(this,arguments),this._labelsGroup.attr({"pointer-events":null})},_createErrorBarGroup:d,_drawPoint:function(t){var e=t.point,i=this._legendCallback;h._drawPoint.call(this,t),!e.isVisible()&&e.setInvisibility(),e.isSelected()&&i()},_getOldPoint:function(t,e,i){var r=(this._points||[])[i];return r&&(e[r.argument.valueOf()]=e[r.argument.valueOf()].filter(t=>t!==r)),r},adjustLabels:function(t){return(this._points||[]).reduce((e,i)=>{if(i._label.isVisible())return i.setLabelTrackerData(),e=i.applyWordWrap(t)||e,i.updateLabelCoord(t),e},!1)},_applyElementsClipRect:d,getColor:d,areErrorBarsVisible:d,drawLabelsWOPoints:function(){return this._options.label.position!==m&&(this._labelsGroup.append(this._extGroups.labelsGroup),(this._points||[]).forEach((function(t){t.drawLabel()})),!0)},getPointsCount:function(){return this._data.filter(t=>this._checkData(t)).length},setMaxPointsCount:function(t){this._pointsCount=t},_getCreatingPointOptions:function(t,e){return this._getPointOptions(t,e)},_updateOptions:function(t){this.labelSpace=0,this.innerRadius="pie"===this.type?0:t.innerRadius},_checkData:function(t,e){var i=u._checkData.call(this,t,e,{value:this.getValueFields()[0]});return this._options.paintNullPoints?i:i&&null!==t.value},_createGroups:h._createGroups,_setMarkerGroupSettings:function(){this._markersGroup.attr({class:"dxc-markers"})},_getMainColor(t,e){var i=this.getPointsByArg(t.argument),r=e?i.indexOf(e):i.length;return this._options.mainSeriesColor(t.argument,r,this._pointsCount)},_getPointOptions:function(t){return this._parsePointOptions(this._preparePointOptions(),this._options.label,t)},_getRangeData:function(){return this._rangeData},_createPointStyles:function(t,e,i){var r=t.color||this._getMainColor(e,i);return{normal:this._parsePointStyle(t,r,r),hover:this._parsePointStyle(t.hoverStyle,r,r),selection:this._parsePointStyle(t.selectionStyle,r,r),legendStyles:{normal:this._createLegendState(t,r),hover:this._createLegendState(t.hoverStyle,r),selection:this._createLegendState(t.selectionStyle,r)}}},_getArrangeMinShownValue:function(t,e){var i=this._options.minSegmentSize,r=0,n=0;return e=e||t.length,g(t,(function(t,a){a.isVisible()&&(a.normalInitialValue<i*e/360?r+=i:n+=a.normalInitialValue)})),r<360?i*n/(360-r):0},_applyArrangeCorrection:function(t,e,i){var r,n=this._options,a="anticlockwise"!==n.segmentsDirection,o=p(n.startAngle)?Object(s["w"])(n.startAngle):0,l=n.minSegmentSize,h=0,u=0;0===i&&(i=t.filter((function(t){return t.isVisible()})).length,u=1),g(a?t:t.concat([]).reverse(),(function(t,n){var a,s=n.isVisible()?u||n.normalInitialValue:0;l&&n.isVisible()&&s<e&&(a=e),r=s/i,n.correctValue(h,r,u+(a||0)),n.shiftedAngle=o,h+=a||s})),this._rangeData={val:{min:0,max:h}}},_removePoint:function(t){var e=this.getPointsByArg(t.argument);e.splice(e.indexOf(t),1),t.dispose()},arrangePoints:function(){var t,e=this,i=e._points||[],r=e._options.minSegmentSize,n=!0,a=0,s=i.length;while(a<s&&n)n=i[a].value<=0,a++;var o=e._points=_(i,(function(t){return null===t.value||!n&&t.value<0?(e._removePoint(t),null):t})),l=o.reduce((function(t,e){return f(t,Math.abs(e.initialValue))}),0);o.forEach((function(t){t.normalInitialValue=t.initialValue/(0!==l?l:1)}));var h=o.reduce((function(t,e){return t+(e.isVisible()?e.normalInitialValue:0)}),0);r&&(t=this._getArrangeMinShownValue(o,h)),e._applyArrangeCorrection(o,t,h)},correctPosition:function(t,e){g(this._points,(function(e,i){i.correctPosition(t)})),this.setVisibleArea(e)},correctRadius:function(t){this._points.forEach((function(e){e.correctRadius(t)}))},correctLabelRadius:function(t){this._points.forEach((function(e){e.correctLabelRadius(t)}))},setVisibleArea:function(t){this._visibleArea={minX:t.left,maxX:t.width-t.right,minY:t.top,maxY:t.height-t.bottom}},_applyVisibleArea:d,_animate:function(t){var e,i=this,r=i._points,n=r&&r.length,a=function(){i._animateComplete()};e=t?function(t,e){t.animate(e===n-1?a:void 0,b,(1-b)*e/(n-1))}:function(t,e){t.animate(e===n-1?a:void 0)},r.forEach(e)},getVisiblePoints:function(){return _(this._points,(function(t){return t.isVisible()?t:null}))},getPointsByKeys:function(t,e){var i=this.getPointsByArg(t);return i[e]&&[i[e]]||[]}}),y=v,x=v},"370c":function(t,e,i){"use strict";i.d(e,"a",(function(){return B}));var r=i("9e0d"),n=i("bf7a"),a=i("b144"),s=i("b9af"),o=i("9e40"),l="{",h="}",u=":";function c(t,e){if(e){if(t instanceof Date)return Object(o["a"])(t,e);if("number"===typeof t)return Object(o["b"])(t,e)}return t}function g(t,e){var i="",r=t.indexOf(u);return r>0&&(i=t.substr(r+1),t=t.substr(0,r)),c(e[t],i)}function d(t,e){var i=t,r=!0;while(r){var n=i.indexOf(l),a=i.indexOf(h);if(n>=0&&a>0){var s=i.substring(n+1,a),o=g(s,e);i=i.substr(0,n)+o+i.substr(a+1)}else r=!1}return i}var _=r["a"].format,p=Math,f=p.round,b=p.floor,m=p.abs,v=12,y=8,x=4;function V(t,e){var i,r=1/0;return Object(a["a"])(e,(function(e,n){var a=t[0]-n[0],s=t[1]-n[1],o=a*a+s*s;o<r&&(r=o,i=n)})),[b(i[0]),b(i[1])]}function w(t,e,i){return(e-t[0+i])/(t[2+i]-t[0+i])*(t[3-i]-t[1-i])+t[1-i]}var k={isLabelInside:function(t,e){var i=t.x+t.width/2,r=t.y+t.height/2;return e.x<=i&&i<=e.x+e.width&&e.y<=r&&r<=e.y+e.height},prepareLabelPoints:function(t,e,i,r,n){var a,s=e.x,o=s+e.width/2,l=s+e.width-1,h=e.y,u=h+e.height/2,c=h+e.height-1,g=m(r)%90===0;return a=n[0]>s&&n[0]<l?g?[[n[0],m(n[1]-h)<m(n[1]-c)?h:c]]:[[n[0],w([s,h,l,c],n[0],0)]]:n[1]>h&&n[1]<c?g?[[m(n[0]-s)<m(n[0]-l)?s:l,n[1]]]:[[w([s,h,l,c],n[1],1),n[1]]]:g?[[s,h],[i?s:o,i?u:h],[l,h],[s,c],[i?l:o,i?u:c],[l,c]]:[[o,u]],a},isHorizontal:function(t,e){return t.x>e.x+e.width||t.x+t.width<e.x},getFigureCenter:function(t){return[b(t.x+t.width/2),b(t.y+t.height/2)]},findFigurePoint:function(t,e){var i=k.getFigureCenter(t),r=V(e,[[t.x,i[1]],[i[0],t.y+t.height],[t.x+t.width,i[1]],[i[0],t.y]]);return r},adjustPoints:function(t){var e=m(t[1]-t[3])<=1,i=m(t[0]-t[2])<=1;return i&&(t[0]=t[2]),e&&(t[1]=t[3]),t}},O={isLabelInside:function(){return!1},prepareLabelPoints:k.prepareLabelPoints,isHorizontal:function(t,e){return t.x>e.x+e.r||t.x+t.width<e.x-e.r},getFigureCenter:function(t){return[t.x,t.y]},findFigurePoint:function(t,e){var i=Math.atan2(t.y-e[1],e[0]-t.x);return[f(t.x+t.r*Math.cos(i)),f(t.y-t.r*Math.sin(i))]},adjustPoints:k.adjustPoints},P={isLabelInside:function(t,e,i){return!i},prepareLabelPoints:function(t,e,i,r){var a=t.x,s=a+t.width,o=a+f(t.width/2),l=t.y,h=l+t.height,u=l+f(t.height/2),c=[[[a,l],[s,l]],[[s,l],[s,h]],[[s,h],[a,h]],[[a,h],[a,l]]],g=Object(n["m"])(r);return c=0===r?i?[[a,u],[s,u]]:[[o,l],[o,h]]:c.map((function(t){return t.map((function(t){return[f((t[0]-o)*g.cos+(t[1]-u)*g.sin+o),f(-(t[0]-o)*g.sin+(t[1]-u)*g.cos+u)]}))})).reduce((function(t,e){var r=e[0][0],n=e[0][1],a=e[1][0],s=e[1][1];return i?(n>=u&&u>=s||n<=u&&u<=s)&&t.push([(u-n)*(a-r)/(s-n)+r,u]):(r>=o&&o>=a||r<=o&&o<=a)&&t.push([o,(o-r)*(s-n)/(a-r)+n]),t}),[]),c},isHorizontal:function(t,e){return t.x>e.x||e.x>t.x+t.width},getFigureCenter:O.getFigureCenter,findFigurePoint:function(t,e,i){if(!i)return[t.x,t.y];var r=e[0],a=f(t.x+(t.y-e[1])/Math.tan(Object(n["g"])(t.angle))),s=[t.x,t.y,a,e[1]];return t.x<=a&&a<=r||r<=a&&a<=t.x||(m(t.x-r)<v?s=[t.x,t.y]:t.x<=r?s[2]=t.x+v:s[2]=t.x-v),s},adjustPoints:function(t){return t}};function C(t){return void 0!==t.angle&&P||void 0!==t.r&&O||k}function A(t,e){t[e]&&t[e].dispose(),t[e]=null}function L(t){return t&&(t.fill&&"none"!==t.fill||t["stroke-width"]>0&&t.stroke&&"none"!==t.stroke)}function S(t){return t&&t["stroke-width"]>0&&t.stroke&&"none"!==t.stroke}function M(t,e){var i=e.format;return t.valueText=_(t.value,i),t.argumentText=_(t.argument,e.argumentFormat),void 0!==t.percent&&(t.percentText=_(t.percent,{type:"percent",precision:i&&i.percentPrecision})),void 0!==t.total&&(t.totalText=_(t.total,i)),void 0!==t.openValue&&(t.openValueText=_(t.openValue,i)),void 0!==t.closeValue&&(t.closeValueText=_(t.closeValue,i)),void 0!==t.lowValue&&(t.lowValueText=_(t.lowValue,i)),void 0!==t.highValue&&(t.highValueText=_(t.highValue,i)),void 0!==t.reductionValue&&(t.reductionValueText=_(t.reductionValue,i)),e.customizeText?e.customizeText.call(t,t):e.displayFormat?d(e.displayFormat,t):t.valueText}function B(t){this._renderer=t.renderer,this._container=t.labelsGroup,this._point=t.point,this._strategy=t.strategy,this._rowCount=1}B.prototype={constructor:B,setColor:function(t){this._color=t},setOptions:function(t){this._options=t},setData:function(t){this._data=t},setDataField:function(t,e){this._data=this._data||{},this._data[t]=e},getData:function(){return this._data},setFigureToDrawConnector:function(t){this._figure=t},dispose:function(){A(this,"_group"),this._data=this._options=this._textContent=this._visible=this._insideGroup=this._text=this._background=this._connector=this._figure=null},_setVisibility:function(t,e){this._group&&this._group.attr({visibility:t}),this._visible=e},isVisible:function(){return this._visible},hide:function(t){this._holdVisibility=!!t,this._hide()},_hide:function(){this._setVisibility("hidden",!1)},show:function(t){var e=!this._drawn;this._point.hasValue()&&(this._holdVisibility=!!t,this._show(),e&&this._point.correctLabelPosition(this))},_show:function(){var t=this._renderer,e=this._container,i=this._options||{},r=this._textContent=M(this._data,i)||null;r?(this._group||(this._group=t.g().append(e),this._insideGroup=t.g().append(this._group),this._text=t.text("",0,0).append(this._insideGroup)),this._text.css(i.attributes?Object(n["B"])(i.attributes.font):{}),L(i.background)?(this._background=this._background||t.rect().append(this._insideGroup).toBackground(),this._background.attr(i.background),this._color&&this._background.attr({fill:this._color})):A(this,"_background"),S(i.connector)?(this._connector=this._connector||t.path([],"line").sharp().append(this._group).toBackground(),this._connector.attr(i.connector),this._color&&this._connector.attr({stroke:this._color})):A(this,"_connector"),this._text.attr({text:r,align:i.textAlignment,class:i.cssClass}),this._updateBackground(this._text.getBBox()),this._setVisibility("visible",!0),this._drawn=!0):this._hide()},_getLabelVisibility:function(t){return this._holdVisibility?this.isVisible():t},draw:function(t){return this._getLabelVisibility(t)?(this._show(),this._point&&this._point.correctLabelPosition(this)):(this._drawn=!1,this._hide()),this},_updateBackground:function(t){this._background&&(t.x-=y,t.y-=x,t.width+=2*y,t.height+=2*x,this._background.attr(t)),this._bBoxWithoutRotation=Object(s["a"])({},t);var e=this._options.rotationAngle||0;this._insideGroup.rotate(e,t.x+t.width/2,t.y+t.height/2),t=Object(n["H"])(t,[t.x+t.width/2,t.y+t.height/2],-e),this._bBox=t},getFigureCenter(){var t=this._figure,e=this._strategy||C(t);return e.getFigureCenter(t)},_getConnectorPoints:function(){var t,e,i=this._figure,r=this._options,n=this._strategy||C(i),a=this._shiftBBox(this._bBoxWithoutRotation),s=this.getBoundingRect(),o=[];if(!n.isLabelInside(a,i,"inside"!==r.position)){e=n.isHorizontal(a,i);var l=this.getFigureCenter();o=n.prepareLabelPoints(a,s,e,-r.rotationAngle||0,l),t=V(l,o),o=n.findFigurePoint(i,t,e),o=o.concat(t)}return n.adjustPoints(o)},fit:function(t){var e=this._background?2*y:0,i=!1;if(this._text){var r=this._text.setMaxSize(t-e,void 0,this._options),n=r.rowCount;0===n&&(n=1),n!==this._rowCount&&(i=!0,this._rowCount=n),r.textIsEmpty&&A(this,"_background")}return this._updateBackground(this._text.getBBox()),i},resetEllipsis:function(){this._text&&this._text.restoreText(),this._updateBackground(this._text.getBBox())},setTrackerData:function(t){this._text.data({"chart-data-point":t}),this._background&&this._background.data({"chart-data-point":t})},hideInsideLabel:function(t){return this._point.hideInsideLabel(this,t)},getPoint(){return this._point},shift:function(t,e){return this._textContent&&(this._insideGroup.attr({translateX:this._x=f(t-this._bBox.x),translateY:this._y=f(e-this._bBox.y)}),this._connector&&this._connector.attr({points:this._getConnectorPoints()})),this},getBoundingRect:function(){return this._shiftBBox(this._bBox)},_shiftBBox:function(t){return this._textContent?{x:t.x+this._x,y:t.y+this._y,width:t.width,height:t.height}:{}},getLayoutOptions:function(){var t=this._options;return{alignment:t.alignment,background:L(t.background),horizontalOffset:t.horizontalOffset,verticalOffset:t.verticalOffset,radialOffset:t.radialOffset,position:t.position,connectorOffset:(S(t.connector)?v:0)+(L(t.background)?y:0)}}}},"37bb":function(t,e,i){"use strict";i.r(e),i.d(e,"stock",(function(){return c})),i.d(e,"candlestick",(function(){return g}));var r=i("ab8f"),n=i("d97f"),a=i("b9af"),s=i("bf95"),o=i("bf7a"),l=i("6bc7"),h=n["a"].bar,u=10,c=Object(a["a"])({},r["a"],{_animate:l["n"],_applyMarkerClipRect:function(t){t["clip-path"]=this._forceClipping?this._paneClipRectID:this._widePaneClipRectID},_updatePointsVisibility:h._updatePointsVisibility,_getOptionsForPoint:h._getOptionsForPoint,_createErrorBarGroup:l["n"],areErrorBarsVisible:l["n"],_createGroups:r["a"]._createGroups,_setMarkerGroupSettings:function(){var t=this._markersGroup,e=this._createPointStyles(this._getMarkerGroupOptions()),i=Object(a["a"])(e.normal,{class:"default-markers"}),r=Object(a["a"])(e.positive.normal,{class:"default-positive-markers"}),n=Object(a["a"])(e.reduction.normal,{class:"reduction-markers"}),s=Object(a["a"])(e.reductionPositive.normal,{class:"reduction-positive-markers"}),o={class:"dxc-markers"};this._applyMarkerClipRect(o),t.attr(o),this._createGroup("defaultMarkersGroup",t,t,i),this._createGroup("reductionMarkersGroup",t,t,n),this._createGroup("defaultPositiveMarkersGroup",t,t,r),this._createGroup("reductionPositiveMarkersGroup",t,t,s)},_setGroupsSettings:function(){r["a"]._setGroupsSettings.call(this,!1)},_getCreatingPointOptions:function(){var t,e=this._predefinedPointOptions;return e||(t=this._getPointOptions(),this._predefinedPointOptions=e=Object(a["a"])(!0,{styles:{}},t),e.styles.normal=e.styles.positive.normal=e.styles.reduction.normal=e.styles.reductionPositive.normal={"stroke-width":t.styles&&t.styles.normal&&t.styles.normal["stroke-width"]}),e},_checkData:function(t,e){var i=this.getValueFields();return r["a"]._checkData.call(this,t,e,{openValue:i[0],highValue:i[1],lowValue:i[2],closeValue:i[3]})&&t.highValue===t.highValue&&t.lowValue===t.lowValue},_getPointDataSelector:function(t,e){var i,r,n=this,a=n.getValueFields(),l=n.getArgumentField(),h=a[0],u=a[1],c=a[2],g=a[3];switch(n.level=n._options.reduction.level,Object(o["y"])(n.level)){case"open":i=h;break;case"high":i=u;break;case"low":i=c;break;default:i=g,n.level="close"}return t=>{var e=t[i],a=!1;return Object(s["d"])(e)&&(Object(s["d"])(r)&&(a=e<r),r=e),{argument:t[l],highValue:this._processEmptyValue(t[u]),lowValue:this._processEmptyValue(t[c]),closeValue:this._processEmptyValue(t[g]),openValue:this._processEmptyValue(t[h]),reductionValue:e,tag:t[n.getTagField()],isReduction:a,data:t}}},_parsePointStyle:function(t,e,i){return{stroke:t.color||e,"stroke-width":t.width,fill:t.color||i}},_getDefaultStyle:function(t){var e=t.color||this._options.mainSeriesColor;return{normal:this._parsePointStyle(t,e,e),hover:this._parsePointStyle(t.hoverStyle,e,e),selection:this._parsePointStyle(t.selectionStyle,e,e)}},_getReductionStyle:function(t){var e=t.reduction.color;return{normal:this._parsePointStyle({color:e,width:t.width,hatching:t.hatching},e,e),hover:this._parsePointStyle(t.hoverStyle,e,e),selection:this._parsePointStyle(t.selectionStyle,e,e)}},_createPointStyles:function(t){var e=this._options.innerColor,i=this._getDefaultStyle(t),r=Object(a["a"])(!0,{},i),n=this._getReductionStyle(t),s=Object(a["a"])(!0,{},n);return r.normal.fill=r.hover.fill=r.selection.fill=e,s.normal.fill=s.hover.fill=s.selection.fill=e,i.positive=r,i.reduction=n,i.reductionPositive=s,i},_endUpdateData:function(){delete this._predefinedPointOptions},_defaultAggregator:"ohlc",_aggregators:{ohlc:(t,e)=>{var{intervalStart:i,intervalEnd:r,data:n}=t;if(n.length){var a={},s=e.getValueFields(),o=s[1],l=s[2];return a[o]=-1/0,a[l]=1/0,a=n.reduce((function(t,e){return null!==e[o]&&(t[o]=Math.max(t[o],e[o])),null!==e[l]&&(t[l]=Math.min(t[l],e[l])),t}),a),a[s[0]]=n[0][s[0]],a[s[3]]=n[n.length-1][s[3]],isFinite(a[o])||(a[o]=null),isFinite(a[l])||(a[l]=null),a[e.getArgumentField()]=e._getIntervalCenter(i,r),a}}},getValueFields:function(){var t=this._options;return[t.openValueField||"open",t.highValueField||"high",t.lowValueField||"low",t.closeValueField||"close"]},getArgumentField:function(){return this._options.argumentField||"date"},_patchMarginOptions:function(t){var e=this._getCreatingPointOptions(),i=e.styles,r=[i.normal,i.hover,i.selection].reduce((function(t,e){return Math.max(t,e["stroke-width"])}),0);return t.size=u+r,t.sizePointNormalState=u,t},getSeriesPairCoord(t,e){for(var i=null,r=this.getVisiblePoints(),n=0;n<r.length;n++){var a=r[n],s=void 0;if(e)s=a.vx===t?(a.openY+a.closeY)/2:void 0;else{var o=[Math.min(a.lowY,a.highY),Math.max(a.lowY,a.highY)];s=t>=o[0]&&t<=o[1]?a.vx:void 0}if(this._checkAxisVisibleAreaCoord(!e,s)){i=s;break}}return i},usePointsToDefineAutoHiding:()=>!1}),g=Object(a["a"])({},c,{_parsePointStyle:function(t,e,i){var r=t.color||i,n=c._parsePointStyle.call(this,t,e,r);return n.fill=r,n.hatching=t.hatching,n}})},"65c0":function(t,e,i){"use strict";i.d(e,"a",(function(){return Ht}));var r=i("5d0e"),n=i("b9af"),a=i("b144"),s=i("6bc7"),o=i("45f8"),l=i("370c"),h=i("bf95"),u=i("bf7a"),c=Object(o["d"])(),g=n["a"],d=Math,_=d.round,p=d.floor,f=d.ceil,b=20,m=20,v=10,y="canvas_position_default";function x(t){return[-t,-t,t,-t,t,t,-t,t,-t,-t]}function V(t){var e=f(t);return[-e,0,0,-e,e,0,0,e,-e,0]}function w(t){var e=f(t),i=p(e/2),r=f(e/2);return[-e,-i,-i,-e,0,-r,i,-e,e,-i,r,0,e,i,i,e,0,r,-i,e,-e,i,-r,0]}function k(t){return[-t,-t,t,-t,0,t,-t,-t]}function O(t){return[-t,t,t,t,0,-t,-t,t]}var P={deleteLabel:function(){this._label.dispose(),this._label=null},_hasGraphic:function(){return this.graphic},clearVisibility:function(){var t=this.graphic;t&&t.attr("visibility")&&t.attr({visibility:null})},isVisible:function(){return this.inVisibleArea&&this.series.isVisible()},setInvisibility:function(){var t=this.graphic;t&&"hidden"!==t.attr("visibility")&&t.attr({visibility:"hidden"}),this._errorBar&&this._errorBar.attr({visibility:"hidden"}),this._label.draw(!1)},clearMarker:function(){var t=this.graphic;t&&t.attr(this._emptySettings)},_createLabel:function(){this._label=new l["a"]({renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this})},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_updateLabelOptions:function(){!this._label&&this._createLabel(),this._label.setOptions(this._options.label)},_checkImage:function(t){return Object(h["d"])(t)&&("string"===typeof t||Object(h["d"])(t.url))},_fillStyle:function(){this._styles=this._options.styles},_checkSymbol:function(t,e){var i=t.symbol,r=e.symbol,n="circle"===i&&"circle"!==r||"circle"!==i&&"circle"===r,a=this._checkImage(t.image)!==this._checkImage(e.image);return!(!n&&!a)},_populatePointShape:function(t,e){switch(t){case"square":return x(e);case"polygon":return V(e);case"triangle":case"triangleDown":return k(e);case"triangleUp":return O(e);case"cross":return w(e)}},hasCoords:function(){return null!==this.x&&null!==this.y},correctValue:function(t){var e=this.series.getValueAxis();this.hasValue()&&(this.value=this.properValue=e.validateUnit(this.initialValue.valueOf()+t.valueOf()),this.minValue=e.validateUnit(t))},resetCorrection:function(){this.value=this.properValue=this.initialValue,this.minValue=y},resetValue:function(){this.hasValue()&&(this.value=this.properValue=this.initialValue=0,this.minValue=0,this._label.setDataField("value",this.value))},_getTranslates:function(t){var e=this.x,i=this.y;return t&&(this._options.rotated?e=this.defaultX:i=this.defaultY),{x:e,y:i}},_createImageMarker:function(t,e,i){var r=i.width||b,n=i.height||m;return t.image(-_(.5*r),-_(.5*n),r,n,i.url?i.url.toString():i.toString(),"center").attr({translateX:e.translateX,translateY:e.translateY,visibility:e.visibility})},_createSymbolMarker:function(t,e){var i,r=this._options.symbol;return"circle"===r?(delete e.points,i=t.circle().attr(e)):"square"!==r&&"polygon"!==r&&"triangle"!==r&&"triangleDown"!==r&&"triangleUp"!==r&&"cross"!==r||(i=t.path([],"area").attr(e).sharp()),i},_createMarker:function(t,e,i,r){var n=this._checkImage(i)?this._createImageMarker(t,r,i):this._createSymbolMarker(t,r);return n&&n.data({"chart-data-point":this}).append(e),n},_getSymbolBBox:function(t,e,i){return{x:t-i,y:e-i,width:2*i,height:2*i}},_getImageBBox:function(t,e){var i=this._options.image,r=i.width||b,n=i.height||m;return{x:t-_(r/2),y:e-_(n/2),width:r,height:n}},_getGraphicBBox:function(){var t,e=this._options,i=this.x,r=this.y;return t=e.visible?this._checkImage(e.image)?this._getImageBBox(i,r):this._getSymbolBBox(i,r,e.styles.normal.r):{x:i,y:r,width:0,height:0},t},hideInsideLabel:s["n"],_getShiftLabelCoords:function(t){var e=this._addLabelAlignmentAndOffset(t,this._getLabelCoords(t));return this._checkLabelPosition(t,e)},_drawLabel:function(){var t=this._getCustomLabelVisibility(),e=this._label,i=this._showForZeroValues()&&this.hasValue()&&!1!==t&&(this.series.getLabelVisibility()||t);e.draw(!!i)},correctLabelPosition:function(t){var e=this._getShiftLabelCoords(t);this.hideInsideLabel(t,e)||(t.setFigureToDrawConnector(this._getLabelConnector(t.pointPosition)),t.shift(_(e.x),_(e.y)))},_showForZeroValues:function(){return!0},_getLabelConnector:function(t){var e=this._getGraphicBBox(t),i=e.width/2,r=e.height/2;return{x:e.x+i,y:e.y+r,r:this._options.visible?Math.max(i,r):0}},_getPositionFromLocation:function(){return{x:this.x,y:this.y}},_isPointInVisibleArea:function(t,e){return t.minX<=e.x+e.width&&t.maxX>=e.x&&t.minY<=e.y+e.height&&t.maxY>=e.y},_checkLabelPosition:function(t,e){var i=this._getVisibleArea(),r=t.getBoundingRect(),n=this._getGraphicBBox(t.pointPosition),a=this._getGraphicBBox(),s="inside"===t.getLayoutOptions().position,o=v;return this._isPointInVisibleArea(i,a)&&(this._options.rotated?(i.minX>e.x&&(e.x=s?i.minX:n.x+n.width+o),i.maxX<e.x+r.width&&(e.x=s?i.maxX-r.width:n.x-o-r.width),i.minY>e.y&&(e.y=i.minY),i.maxY<e.y+r.height&&(e.y=i.maxY-r.height)):(i.minX>e.x&&(e.x=i.minX),i.maxX<e.x+r.width&&(e.x=i.maxX-r.width),i.minY>e.y&&(e.y=s?i.minY:n.y+n.height+o),i.maxY<e.y+r.height&&(e.y=s?i.maxY-r.height:n.y-r.height-o))),e},_addLabelAlignmentAndOffset:function(t,e){var i=t.getBoundingRect(),r=t.getLayoutOptions();return this._options.rotated||("left"===r.alignment?e.x+=i.width/2:"right"===r.alignment&&(e.x-=i.width/2)),e.x+=r.horizontalOffset,e.y+=r.verticalOffset,e},_getLabelCoords:function(t){return this._getLabelCoordOfPosition(t,this._getLabelPosition(t.pointPosition))},_getLabelCoordOfPosition:function(t,e){var i=t.getBoundingRect(),r=this._getGraphicBBox(t.pointPosition),n=v,a=r.height/2-i.height/2,s=r.width/2-i.width/2,o=r.x,l=r.y;switch(e){case"left":o-=i.width+n,l+=a;break;case"right":o+=r.width+n,l+=a;break;case"top":o+=s,l-=i.height+n;break;case"bottom":o+=s,l+=r.height+n;break;case"inside":o+=s,l+=a}return{x:o,y:l}},_drawMarker:function(t,e,i){var r=this._options,n=this._getTranslates(i),a=this._getStyle();this.graphic=this._createMarker(t,e,r.image,g({translateX:n.x,translateY:n.y,points:this._populatePointShape(r.symbol,a.r)},a))},_getErrorBarSettings:function(){return{visibility:"visible"}},_getErrorBarBaseEdgeLength(){return 2*this.getPointRadius()},_drawErrorBar:function(t,e){if(this._options.errorBars){var i,r=this._options,n=r.errorBars,s=[],o=this._errorBarPos,l=this._highErrorCoord,c=this._lowErrorCoord,g=Object(u["y"])(n.displayMode),d="high"===g,_="low"===g,f=(d||!Object(h["d"])(c))&&Object(h["d"])(l)&&!_,b=(_||!Object(h["d"])(l))&&Object(h["d"])(c)&&!d,m=n.edgeLength;m<=1&&m>0&&(m=this._getErrorBarBaseEdgeLength()*n.edgeLength),m=p(parseInt(m)/2),f&&(c=this._baseErrorBarPos),b&&(l=this._baseErrorBarPos),"none"!==g&&Object(h["d"])(l)&&Object(h["d"])(c)&&Object(h["d"])(o)?(!b&&s.push([o-m,l,o+m,l]),s.push([o,l,o,c]),!f&&s.push([o+m,c,o-m,c]),r.rotated&&Object(a["a"])(s,(function(t,e){e.reverse()})),i=this._getErrorBarSettings(n),this._errorBar?(i.points=s,this._errorBar.attr(i)):this._errorBar=t.path(s,"line").attr(i).append(e)):this._errorBar&&this._errorBar.attr({visibility:"hidden"})}},getTooltipParams:function(){var t=this.graphic;return{x:this.x,y:this.y,offset:t?t.getBBox().height/2:0}},setPercentValue:function(t,e,i,r){var n=this.value/t||0,a=this.minValue/t||0,s=n-a;this._label.setDataField("percent",s),this._label.setDataField("total",e),this.series.isFullStackedSeries()&&this.hasValue()&&(this.leftHole&&(this.leftHole/=t-i,this.minLeftHole/=t-i),this.rightHole&&(this.rightHole/=t-r,this.minRightHole/=t-r),this.value=this.properValue=n,this.minValue=a||this.minValue)},_storeTrackerR:function(){var t=c.navigator,e=this._options.styles.normal.r,i=Object(o["e"])("ontouchstart")||t.msPointerEnabled&&t.msMaxTouchPoints||t.pointerEnabled&&t.maxTouchPoints?20:6;return this._options.trackerR=e<i?i:e,this._options.trackerR},_translateErrorBars:function(){var t=this._options,e=t.rotated,i=t.errorBars,r=this._getValTranslator();i&&(Object(h["d"])(this.lowError)&&(this._lowErrorCoord=r.translate(this.lowError)),Object(h["d"])(this.highError)&&(this._highErrorCoord=r.translate(this.highError)),this._errorBarPos=p(e?this.vy:this.vx),this._baseErrorBarPos="stdDeviation"===i.type?this._lowErrorCoord+(this._highErrorCoord-this._lowErrorCoord)/2:e?this.vx:this.vy)},_translate:function(){var t=this._getValTranslator(),e=this._getArgTranslator();this._options.rotated?(this.vx=this.x=t.translate(this.value),this.vy=this.y=e.translate(this.argument),this.minX=t.translate(this.minValue),this.defaultX=t.translate(y)):(this.vy=this.y=t.translate(this.value),this.vx=this.x=e.translate(this.argument),this.minY=t.translate(this.minValue),this.defaultY=t.translate(y)),this._translateErrorBars(),this._calculateVisibility(this.x,this.y)},_updateData:function(t){this.value=this.properValue=this.initialValue=this.originalValue=t.value,this.minValue=this.initialMinValue=this.originalMinValue=Object(h["d"])(t.minValue)?t.minValue:y},_getImageSettings:function(t){return{href:t.url||t.toString(),width:t.width||b,height:t.height||m}},getCrosshairData:function(){var t=this._options.rotated,e=this.properValue,i=this.argument;return{x:this.vx,y:this.vy,xValue:t?e:i,yValue:t?i:e,axis:this.series.axis}},getPointRadius:function(){var t,e=this._getStyle(),i=this._options,r=e.r,n=i.symbol,a="square"===n,s="triangle"===n||"triangleDown"===n||"triangleUp"===n;return i.visible&&!i.image&&r?(t=e["stroke-width"]/2,(a||s?1.4*r:r)+t):0},_updateMarker:function(t,e){var i,r=this._options,n=r.image,a=this.isVisible()?{}:{visibility:"hidden"};i=this._checkImage(n)?g({},{visibility:e.visibility},a,this._getImageSettings(n)):g({},e,a,{points:this._populatePointShape(r.symbol,e.r)}),t||(i.translateX=this.x,i.translateY=this.y),this.graphic.attr(i).sharp()},_getLabelFormatObject:function(){return{argument:this.initialArgument,value:this.initialValue,originalArgument:this.originalArgument,originalValue:this.originalValue,seriesName:this.series.name,lowErrorValue:this.lowError,highErrorValue:this.highError,point:this}},_getLabelPosition:function(){var t=this._options.rotated;return this.initialValue>0?t?"right":"top":t?"left":"bottom"},_getFormatObject:function(t){var e=this._label.getData();return g({},e,{argumentText:t.formatValue(this.initialArgument,"argument"),valueText:t.formatValue(this.initialValue)},Object(h["d"])(e.percent)?{percentText:t.formatValue(e.percent,"percent")}:{},Object(h["d"])(e.total)?{totalText:t.formatValue(e.total)}:{})},getMarkerVisibility:function(){return this._options.visible},coordsIn:function(t,e){var i=this._storeTrackerR();return t>=this.x-i&&t<=this.x+i&&e>=this.y-i&&e<=this.y+i},getMinValue:function(t){var e=this._options.errorBars;if(e&&!t){var i=e.displayMode,r="high"!==i&&Object(h["d"])(this.lowError)?this.lowError:this.value,n="low"!==i&&Object(h["d"])(this.highError)?this.highError:this.value;return r<n?r:n}return this.value},getMaxValue:function(t){var e=this._options.errorBars;if(e&&!t){var i=e.displayMode,r="high"!==i&&Object(h["d"])(this.lowError)?this.lowError:this.value,n="low"!==i&&Object(h["d"])(this.highError)?this.highError:this.value;return r>n?r:n}return this.value}},C=n["a"],A=Math,L=A.floor,S=A.abs,M="canvas_position_default",B=9,j=4,E="right",T="left",Y="top",F="bottom";function I(t){var e=t.initialValue,i=t._getValTranslator().getBusinessRange().invert,r="discrete"===t.series.valueAxisType,n=t.series.isFullStackedSeries(),a=!r&&(e>=0&&!i||e<0&&i)||r&&!i||n;return a?Y:F}var G=C({},P,{correctCoordinates(t){var e=L(t.offset-t.width/2);this._options.rotated?(this.height=t.width,this.yCorrection=e,this.xCorrection=null):(this.width=t.width,this.xCorrection=e,this.yCorrection=null)},_getGraphicBBox:function(t){var e={x:this.x,y:this.y,width:this.width,height:this.height};if(t){var i="top"===t;this._options.rotated?(e.x=i?e.x+e.width:e.x,e.width=0):(e.y=i?e.y:e.y+e.height,e.height=0)}return e},_getLabelConnector:function(t){return this._getGraphicBBox(t)},_getLabelPosition:function(){var t=I(this);return this._options.rotated&&(t=t===Y?E:T),t},_getLabelCoords:function(t){var e;return e=0===this.initialValue&&this.series.isFullStackedSeries()?this._options.rotated?this._getLabelCoordOfPosition(t,E):this._getLabelCoordOfPosition(t,Y):"inside"===t.getLayoutOptions().position?this._getLabelCoordOfPosition(t,"inside"):P._getLabelCoords.call(this,t),e},_drawLabel:function(){this._label.pointPosition="inside"!==this._label.getLayoutOptions().position&&I(this),P._drawLabel.call(this)},hideInsideLabel:function(t,e){var i=this._getGraphicBBox(),r=t.getBoundingRect();return!(!this._options.resolveLabelsOverlapping||!(e.y<=i.y&&e.y+r.height>=i.y+i.height||e.x<=i.x&&e.x+r.width>=i.x+i.width)||e.y>i.y+i.height||e.y+r.height<i.y||e.x>i.x+i.width||e.x+r.width<i.x)&&(t.draw(!1),!0)},_showForZeroValues:function(){return this._options.label.showForZeroValues||this.initialValue},_drawMarker(t,e,i){var r=this._getStyle(),n=this._options.cornerRadius,a=this._options.rotated,{x:s,y:o,width:l,height:h}=this.getMarkerCoords();i&&(a?(l=0,s=this.defaultX):(h=0,o=this.defaultY)),this.graphic=t.rect(s,o,l,h).attr({rx:n,ry:n}).smartAttr(r).data({"chart-data-point":this}).append(e)},_getSettingsForTracker:function(){var t=this.y,e=this.height,i=this.x,r=this.width;return this._options.rotated?1===r&&(r=B,i-=j):1===e&&(e=B,t-=j),{x:i,y:t,width:r,height:e}},getGraphicSettings:function(){var t=this.graphic;return{x:t.attr("x"),y:t.attr("y"),height:t.attr("height"),width:t.attr("width")}},_getEdgeTooltipParams(){var t,e,i=this.value>=0,r=this._getValTranslator().getBusinessRange().invert,{x:n,y:a,width:s,height:o}=this;return this._options.rotated?(e=a+o/2,t=r?i?n:n+s:i?n+s:n):(t=n+s/2,e=r?i?a+o:a:i?a:a+o),{x:t,y:e,offset:0}},getTooltipParams:function(t){if("edge"===t)return this._getEdgeTooltipParams();var e=this.getCenterCoord();return e.offset=0,e},getCenterCoord(){var{width:t,height:e,x:i,y:r}=this;return{x:i+t/2,y:r+e/2}},_truncateCoord:function(t,e){return null===t?t:t<e[0]?e[0]:t>e[1]?e[1]:t},_getErrorBarBaseEdgeLength(){return this._options.rotated?this.height:this.width},_translateErrorBars:function(t){P._translateErrorBars.call(this),(this._errorBarPos<t[0]||this._errorBarPos>t[1])&&(this._errorBarPos=void 0)},_translate:function(){var t=this._options.rotated,e=t?"x":"y",i=t?"y":"x",r=t?"width":"height",n=t?"height":"width",a=this._getArgTranslator(),s=this._getValTranslator(),o=this.series.getArgumentAxis().getVisibleArea(),l=this.series.getValueAxis().getVisibleArea(),h=a.translate(this.argument),u=s.translate(this.value,1),c=s.translate(this.minValue);this[i]=h=null===h?h:h+(this[i+"Correction"]||0),this["v"+e]=u,this["v"+i]=h+this[n]/2,u=this._truncateCoord(u,l),c=this._truncateCoord(c,l),this[r]=S(u-c),u=u<c?u:c,this._calculateVisibility(t?u:h,t?h:u,this.width,this.height),this[e]=null===u?u:u+(this[e+"Correction"]||0),this["min"+e.toUpperCase()]=null===c?c:c+(this[e+"Correction"]||0),this["default"+e.toUpperCase()]=s.translate(M),this._translateErrorBars(o),this.inVisibleArea&&null!==this[i]&&(this[i]<o[0]&&(this[n]=this[n]-(o[0]-this[i]),this[i]=o[0]),this[i]+this[n]>o[1]&&(this[n]=o[1]-this[i]))},_updateMarker:function(t,e){this.graphic.smartAttr(C({},e,t?{}:this.getMarkerCoords()))},getMarkerCoords:function(){var t=this.x,e=this.y,i=this.width,r=this.height,n=this.series.getArgumentAxis(),a=this._options.rotated;if(n.getAxisPosition){var s=n.getOptions(),o=Math.round(s.width/2),l=n.getAxisPosition();if(s.visible)if(a){var h=this.minX===this.defaultX&&this.minX===l-n.getAxisShift();t+=h?o:0,i-=h?o:0,i<0&&(i=0)}else r-=this.minY===this.defaultY&&this.minY===l-n.getAxisShift()?o:0,r<0&&(r=0)}return{x:t,y:e,width:i,height:r}},coordsIn:function(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height}}),R=n["a"],D=20,X=R({},P,{correctCoordinates:function(t){this.bubbleSize=t/2},_drawMarker:function(t,e,i){var r=R({translateX:this.x,translateY:this.y},this._getStyle());this.graphic=t.circle(0,0,i?0:this.bubbleSize).smartAttr(r).data({"chart-data-point":this}).append(e)},getTooltipParams:function(t){var e=this.graphic;if(e){var i=e.getBBox().height;return{x:this.x,y:this.y,offset:i<D||"edge"===t?i/2:0}}},_getLabelFormatObject:function(){var t=P._getLabelFormatObject.call(this);return t.size=this.initialSize,t},_updateData:function(t){P._updateData.call(this,t),this.size=this.initialSize=t.size},_getGraphicBBox:function(){return this._getSymbolBBox(this.x,this.y,this.bubbleSize)},_updateMarker:function(t,e){t||(e=R({r:this.bubbleSize,translateX:this.x,translateY:this.y},e)),this.graphic.smartAttr(e)},_getFormatObject:function(t){var e=P._getFormatObject.call(this,t);return e.sizeText=t.formatValue(this.initialSize),e},_storeTrackerR:function(){return this.bubbleSize},_getLabelCoords:function(t){var e;return e="inside"===t.getLayoutOptions().position?this._getLabelCoordOfPosition(t,"inside"):P._getLabelCoords.call(this,t),e}}),z=n["a"],H=Math.round,N=Math.sqrt,W=Math.acos,q=180/Math.PI,U=Math.abs,Z=r["a"].radialLabelIndent,J=z({},P,{_updateData:function(t,e){P._updateData.call(this,t),!e&&Object(h["d"])(this._visible)||(this._visible=!0),this.minValue=this.initialMinValue=this.originalMinValue=Object(h["d"])(t.minValue)?t.minValue:0},animate:function(t,e,i){this.graphic.animate({x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.radiusInner,startAngle:this.toAngle,endAngle:this.fromAngle},{delay:i,partitionDuration:e},t)},correctPosition:function(t){this.correctRadius(t),this.correctLabelRadius(t.radiusOuter+Z),this.centerX=t.centerX,this.centerY=t.centerY},correctRadius:function(t){this.radiusInner=t.radiusInner,this.radiusOuter=t.radiusOuter},correctLabelRadius:function(t){this.radiusLabels=t},correctValue:function(t,e,i){this.value=(i||this.normalInitialValue)+t,this.minValue=t,this.percent=e,this._label.setDataField("percent",e)},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_getShiftLabelCoords:function(){var t=this._label.getBoundingRect(),e=this._getLabelCoords(this._label),i=this._getVisibleArea();return this._isLabelDrawingWithoutPoints?this._checkLabelPosition(e,t,i):this._getLabelExtraCoord(e,this._checkVerticalLabelPosition(e,t,i),t)},_getLabelPosition:function(t){return t.position},getAnnotationCoords:function(t){return this._getElementCoords("edge"!==t?"inside":"outside",this.radiusOuter,0)},_getElementCoords:function(t,e,i){var r,n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{x:0,y:0,width:0,height:0},s=this,o=Object(u["m"])(s.middleAngle),l=s.radiusInner,h=s.radiusOuter,c="columns"===t;return"inside"===t?(r=l+(h-l)/2+i,n=s.centerX+r*o.cos-a.width/2):(r=e+i,n=o.cos>.1||c&&o.cos>=0?s.centerX+r*o.cos:o.cos<-.1||c&&o.cos<0?s.centerX+r*o.cos-a.width:s.centerX+r*o.cos-a.width/2),{x:n,y:H(s.centerY-r*o.sin-a.height/2)}},_getLabelCoords:function(t){var e=t.getBoundingRect(),i=t.getLayoutOptions(),r=this._getLabelPosition(i);return this._getElementCoords(r,this.radiusLabels,i.radialOffset,e)},_correctLabelCoord:function(t,e){var i=this._label,r=i.getBoundingRect(),n=r.width,a=i.getLayoutOptions(),s=this._getVisibleArea(),o=s.maxX-n,l=s.minX,h=Object(u["w"])(this.middleAngle),c=this.centerX,g=a.connectorOffset,d=t.x;return"columns"===a.position?(d=h<=90||h>=270?o:l,t.x=d):"inside"!==a.position&&e&&(h<=90||h>=270?d-g<c&&(d=c+g):d+n+g>c&&(d=c-n-g),t.x=d),t},drawLabel:function(){this.translate(),this._isLabelDrawingWithoutPoints=!0,this._drawLabel(),this._isLabelDrawingWithoutPoints=!1},updateLabelCoord:function(t){var e=this._label.getBoundingRect(),i=this._correctLabelCoord(e,t);i=this._checkHorizontalLabelPosition(i,e,this._getVisibleArea()),this._label.shift(H(i.x),H(e.y))},_checkVerticalLabelPosition:function(t,e,i){var r=t.x,n=t.y;return t.y+e.height>i.maxY?n=i.maxY-e.height:t.y<i.minY&&(n=i.minY),{x:r,y:n}},_getLabelExtraCoord:function(t,e,i){return t.y!==e.y?Object(u["r"])({x:t.x,y:t.y,width:i.width,height:i.height},e.y-t.y,{x:this.centerX,y:this.centerY}):t},_checkHorizontalLabelPosition:function(t,e,i){var r=t.x,n=t.y;return t.x+e.width>i.maxX?r=i.maxX-e.width:t.x<i.minX&&(r=i.minX),{x:r,y:n}},applyWordWrap:function(t){var e=this._label,i=e.getBoundingRect(),r=this._getVisibleArea(),n=e.getLayoutOptions().position,a=i.width,s=!1;return"columns"===n&&this.series.index>0?a=r.maxX-this.centerX-this.radiusLabels:"inside"===n?a>r.maxX-r.minX&&(a=r.maxX-r.minX):t&&i.x<this.centerX&&i.width+i.x>this.centerX?a=Math.floor((r.maxX-r.minX)/2):i.x+a>r.maxX?a=r.maxX-i.x:i.x<r.minX&&(a=i.x+a-r.minX),a<i.width&&(s=e.fit(a)),s},setLabelTrackerData:function(){this._label.setTrackerData(this)},_checkLabelPosition:function(t,e,i){return t=this._checkHorizontalLabelPosition(t,e,i),this._checkVerticalLabelPosition(t,e,i)},_getLabelConnector:function(){var t=this.radiusOuter,e=this._options.styles.normal,i=e["stroke-width"]/2,r=this.series.getOptions().containerBackgroundColor===e.stroke?H(i):H(-i),n=Object(u["m"])(H(this.middleAngle));return{x:H(this.centerX+(t-r)*n.cos),y:H(this.centerY-(t-r)*n.sin),angle:this.middleAngle}},_drawMarker:function(t,e,i,r){var n=this.radiusOuter,a=this.radiusInner,s=this.fromAngle,o=this.toAngle;i&&(a=n=0,r||(s=o=this.shiftedAngle)),this.graphic=t.arc(this.centerX,this.centerY,a,n,o,s).attr({"stroke-linejoin":"round"}).smartAttr(this._getStyle()).data({"chart-data-point":this}).sharp().append(e)},getTooltipParams:function(){var t=Object(u["m"])(this.middleAngle),e=this.radiusInner,i=this.radiusOuter;return{x:this.centerX+(e+(i-e)/2)*t.cos,y:this.centerY-(e+(i-e)/2)*t.sin,offset:0}},_translate:function(){var t=this.shiftedAngle||0,e=this.value,i=this.minValue,r=this._getValTranslator();this.fromAngle=r.translate(i)+t,this.toAngle=r.translate(e)+t,this.middleAngle=r.translate((e-i)/2+i)+t,this.isVisible()||(this.middleAngle=this.toAngle=this.fromAngle=this.fromAngle||t)},getMarkerVisibility:function(){return!0},_updateMarker:function(t,e,i,r){t||(e=z({x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.radiusInner,startAngle:this.toAngle,endAngle:this.fromAngle},e)),this.graphic.smartAttr(e).sharp(),r&&r()},getLegendStyles:function(){return this._styles.legendStyles},isInVisibleArea:function(){return!0},hide:function(){this._visible&&(this._visible=!1,this.hideTooltip(),this._options.visibilityChanged())},show:function(){this._visible||(this._visible=!0,this._options.visibilityChanged())},setInvisibility:function(){this._label.draw(!1)},isVisible:function(){return this._visible},_getFormatObject:function(t){var e=P._getFormatObject.call(this,t),i=this.percent;return e.percent=i,e.percentText=t.formatValue(i,"percent"),e},getColor:function(){return this._styles.normal.fill},coordsIn:function(t,e){var i,r=t-this.centerX,n=e-this.centerY,a=N(r*r+n*n),s=this.fromAngle%360,o=this.toAngle%360;return!(a<this.radiusInner||a>this.radiusOuter||0===a)&&(i=W(r/a)*q*(n>0?-1:1),i<0&&(i+=360),s===o&&U(this.toAngle-this.fromAngle)>1e-4||(s>=o?i<=s&&i>=o:!(i>=s&&i<=o)))}}),K=n["a"],Q=Math,$=Q.abs,tt=Q.min,et=Q.max,it=Q.round,rt=20,nt=20,at=K({},P,{deleteLabel:function(){this._topLabel.dispose(),this._topLabel=null,this._bottomLabel.dispose(),this._bottomLabel=null},hideMarker:function(t){var e=this.graphic,i=e&&e[t+"Marker"],r=this["_"+t+"Label"];i&&"hidden"!==i.attr("visibility")&&i.attr({visibility:"hidden"}),r.draw(!1)},setInvisibility:function(){this.hideMarker("top"),this.hideMarker("bottom")},clearVisibility:function(){var t=this.graphic,e=t&&t.topMarker,i=t&&t.bottomMarker;e&&e.attr("visibility")&&e.attr({visibility:null}),i&&i.attr("visibility")&&i.attr({visibility:null})},clearMarker:function(){var t=this.graphic,e=t&&t.topMarker,i=t&&t.bottomMarker,r=this._emptySettings;e&&e.attr(r),i&&i.attr(r)},_getLabelPosition:function(t){var e,i="inside"===this._options.label.position;return e=this._options.rotated?"top"===t^i?"right":"left":"top"===t^i?"top":"bottom",e},_getLabelMinFormatObject:function(){return{index:0,argument:this.initialArgument,value:this.initialMinValue,seriesName:this.series.name,originalValue:this.originalMinValue,originalArgument:this.originalArgument,point:this}},_updateLabelData:function(){var t=this._getLabelFormatObject();t.index=1,this._topLabel.setData(t),this._bottomLabel.setData(this._getLabelMinFormatObject())},_updateLabelOptions:function(){var t=this._options.label;(!this._topLabel||!this._bottomLabel)&&this._createLabel(),this._topLabel.setOptions(t),this._bottomLabel.setOptions(t)},_createLabel:function(){var t={renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this};this._topLabel=new l["a"](t),this._bottomLabel=new l["a"](t)},_getGraphicBBox:function(t){var e,i=this._options,r=this._getImage(i.image),n="top"===t?this._checkImage(r.top):this._checkImage(r.bottom),a=this._getPositionFromLocation(t);return e=i.visible?n?this._getImageBBox(a.x,a.y):this._getSymbolBBox(a.x,a.y,i.styles.normal.r):{x:a.x,y:a.y,width:0,height:0},e},_getPositionFromLocation:function(t){var e,i,r="top"===t;return this._options.rotated?(e=r?et(this.x,this.minX):tt(this.x,this.minX),i=this.y):(e=this.x,i=r?tt(this.y,this.minY):et(this.y,this.minY)),{x:e,y:i}},_checkOverlay:function(t,e,i){return t<e+i},_getOverlayCorrections:function(t,e){var i=this._options.rotated,r=i?"x":"y",n=i?"width":"height",a=this.series.getValueAxis().getVisibleArea(),s=a[0],o=a[1],l=it((t[r]+t[n]-e[r])/2),h=t[r]-l,u=e[r]+l;return h<s?(l=s-h,h+=l,u+=l):u+e[n]>o&&(l=o-u-e[n],h+=l,u+=l),{coord1:h,coord2:u}},_checkLabelsOverlay:function(t){var e=this._topLabel.getBoundingRect(),i=this._bottomLabel.getBoundingRect(),r={};this._options.rotated?"top"===t?this._checkOverlay(e.x,i.x,i.width)&&(r=this._getOverlayCorrections(i,e),this._topLabel.shift(r.coord2,e.y),this._bottomLabel.shift(r.coord1,i.y)):this._checkOverlay(i.x,e.x,e.width)&&(r=this._getOverlayCorrections(e,i),this._topLabel.shift(r.coord1,e.y),this._bottomLabel.shift(r.coord2,i.y)):"top"===t?this._checkOverlay(i.y,e.y,e.height)&&(r=this._getOverlayCorrections(e,i),this._topLabel.shift(e.x,r.coord1),this._bottomLabel.shift(i.x,r.coord2)):this._checkOverlay(e.y,i.y,i.height)&&(r=this._getOverlayCorrections(i,e),this._topLabel.shift(e.x,r.coord2),this._bottomLabel.shift(i.x,r.coord1))},_drawLabel:function(){var t=[],e=this._options.rotated?this.x>=this.minX:this.y<this.minY,i=this._getCustomLabelVisibility(),r=this._topLabel,n=this._bottomLabel;r.pointPosition=e?"top":"bottom",n.pointPosition=e?"bottom":"top",(this.series.getLabelVisibility()||i)&&this.hasValue()&&!1!==i?(!1!==this.visibleTopMarker&&t.push(r),!1!==this.visibleBottomMarker&&t.push(n),Object(a["a"])(t,(function(t,e){e.draw(!0)})),this._checkLabelsOverlay(this._topLabel.pointPosition)):(r.draw(!1),n.draw(!1))},_getImage:function(t){var e={};return Object(h["d"])(t)&&("string"===typeof t?e.top=e.bottom=t:(e.top={url:"string"===typeof t.url?t.url:t.url&&t.url.rangeMaxPoint,width:"number"===typeof t.width?t.width:t.width&&t.width.rangeMaxPoint,height:"number"===typeof t.height?t.height:t.height&&t.height.rangeMaxPoint},e.bottom={url:"string"===typeof t.url?t.url:t.url&&t.url.rangeMinPoint,width:"number"===typeof t.width?t.width:t.width&&t.width.rangeMinPoint,height:"number"===typeof t.height?t.height:t.height&&t.height.rangeMinPoint})),e},_checkSymbol:function(t,e){var i=t.symbol,r=e.symbol,n="circle"===i&&"circle"!==r||"circle"!==i&&"circle"===r,a=this._getImage(t.image),s=this._getImage(e.image),o=this._checkImage(a.top)!==this._checkImage(s.top),l=this._checkImage(a.bottom)!==this._checkImage(s.bottom);return n||o||l},_getSettingsForTwoMarkers:function(t){var e=this._options,i={},r=e.rotated?tt(this.x,this.minX):this.x,n=e.rotated?this.y:tt(this.y,this.minY),a=t.r,s=this._populatePointShape(e.symbol,a);return i.top=K({translateX:r+this.width,translateY:n,r:a},t),i.bottom=K({translateX:r,translateY:n+this.height,r:a},t),s&&(i.top.points=i.bottom.points=s),i},_hasGraphic:function(){return this.graphic&&this.graphic.topMarker&&this.graphic.bottomMarker},_drawOneMarker:function(t,e,i,r){var n=this.graphic;n[e]?this._updateOneMarker(e,r):n[e]=this._createMarker(t,n,i,r)},_drawMarker:function(t,e,i,r,n){var a=this._getSettingsForTwoMarkers(n||this._getStyle()),s=this._getImage(this._options.image);this._checkImage(s.top)&&(a.top=this._getImageSettings(a.top,s.top)),this._checkImage(s.bottom)&&(a.bottom=this._getImageSettings(a.bottom,s.bottom)),this.graphic=this.graphic||t.g().append(e),this.visibleTopMarker&&this._drawOneMarker(t,"topMarker",s.top,a.top),this.visibleBottomMarker&&this._drawOneMarker(t,"bottomMarker",s.bottom,a.bottom)},_getSettingsForTracker:function(t){var e=this._options.rotated;return{translateX:e?tt(this.x,this.minX)-t:this.x-t,translateY:e?this.y-t:tt(this.y,this.minY)-t,width:this.width+2*t,height:this.height+2*t}},isInVisibleArea:function(){var t,e,i,r=this._options.rotated,n=r?this.y:this.x,a=r?et(this.minX,this.x):et(this.minY,this.y),s=r?tt(this.minX,this.x):tt(this.minY,this.y),o=!0,l=this.series.getArgumentAxis().getVisibleArea(),h=this.series.getValueAxis().getVisibleArea(),u=l[1]<n||l[0]>n,c=h[0]>s&&h[0]>a||h[1]<s&&h[1]<a;return u||c?e=i=o=!1:(e=h[0]<=s&&h[1]>s,i=h[0]<a&&h[1]>=a,r&&(t=e,e=i,i=t)),this.visibleTopMarker=e,this.visibleBottomMarker=i,o},getTooltipParams:function(){var t,e,i=this._options.rotated,r=i?tt(this.x,this.minX):tt(this.y,this.minY),n=i?"width":"height",a=this._getVisibleArea(),s=i?a.minX:a.minY,o=i?a.maxX:a.maxY,l=et(s,r),h=tt(o,r+this[n]);return i?(e=this.y,t=l+(h-l)/2):(t=this.x,e=l+(h-l)/2),{x:t,y:e,offset:0}},_translate:function(){var t=this._options.rotated;P._translate.call(this),this.height=t?0:$(this.minY-this.y),this.width=t?$(this.x-this.minX):0},hasCoords:function(){return P.hasCoords.call(this)&&!(null===this.minX||null===this.minY)},_updateData:function(t){P._updateData.call(this,t),this.minValue=this.initialMinValue=this.originalMinValue=t.minValue},_getImageSettings:function(t,e){return{href:e.url||e.toString(),width:e.width||rt,height:e.height||nt,translateX:t.translateX,translateY:t.translateY}},getCrosshairData:function(t,e){var i=this._options.rotated,r=this.minX,n=this.minY,a=this.vx,s=this.vy,o=this.value,l=this.minValue,h=this.argument,u={axis:this.series.axis,x:a,y:s,yValue:o,xValue:h};return i?(u.yValue=h,$(a-t)<$(r-t)?u.xValue=o:(u.x=r,u.xValue=l)):$(s-e)>=$(n-e)&&(u.y=n,u.yValue=l),u},_updateOneMarker:function(t,e){this.graphic&&this.graphic[t]&&this.graphic[t].attr(e)},_updateMarker:function(t,e){this._drawMarker(void 0,void 0,!1,!1,e)},_getFormatObject:function(t){var e=this.initialMinValue,i=this.initialValue,r=this.initialArgument,n=t.formatValue(e),a=t.formatValue(i);return{argument:r,argumentText:t.formatValue(r,"argument"),valueText:n+" - "+a,rangeValue1Text:n,rangeValue2Text:a,rangeValue1:e,rangeValue2:i,seriesName:this.series.name,point:this,originalMinValue:this.originalMinValue,originalValue:this.originalValue,originalArgument:this.originalArgument}},getLabel:function(){return[this._topLabel,this._bottomLabel]},getLabels:function(){return[this._topLabel,this._bottomLabel]},getBoundingRect:s["n"],coordsIn:function(t,e){var i=this._storeTrackerR(),r=t>=this.x-i&&t<=this.x+i,n=e>=this.y-i&&e<=this.y+i;return this._options.rotated?n&&(r||t>=this.minX-i&&t<=this.minX+i):r&&(n||e>=this.minY-i&&e<=this.minY+i)},getMaxValue:function(){return"discrete"!==this.series.valueAxisType&&this.minValue>this.value?this.minValue:this.value},getMinValue:function(){return"discrete"!==this.series.valueAxisType?this.minValue<this.value?this.minValue:this.value:this.minValue}}),st=n["a"],ot=st({},G,{deleteLabel:at.deleteLabel,_getFormatObject:at._getFormatObject,clearVisibility:function(){var t=this.graphic;t&&t.attr("visibility")&&t.attr({visibility:null})},setInvisibility:function(){var t=this.graphic;t&&"hidden"!==t.attr("visibility")&&t.attr({visibility:"hidden"}),this._topLabel.draw(!1),this._bottomLabel.draw(!1)},getTooltipParams:function(t){var e,i,r="edge"===t;return this._options.rotated?(e=r?this.x+this.width:this.x+this.width/2,i=this.y+this.height/2):(e=this.x+this.width/2,i=r?this.y:this.y+this.height/2),{x:e,y:i,offset:0}},_translate:function(){var t=G;t._translate.call(this),this._options.rotated?this.width=this.width||1:this.height=this.height||1},hasCoords:at.hasCoords,_updateData:at._updateData,_getLabelPosition:at._getLabelPosition,_getLabelMinFormatObject:at._getLabelMinFormatObject,_updateLabelData:at._updateLabelData,_updateLabelOptions:at._updateLabelOptions,getCrosshairData:at.getCrosshairData,_createLabel:at._createLabel,_checkOverlay:at._checkOverlay,_checkLabelsOverlay:at._checkLabelsOverlay,_getOverlayCorrections:at._getOverlayCorrections,_drawLabel:at._drawLabel,_getLabelCoords:at._getLabelCoords,getLabel:at.getLabel,getLabels:at.getLabels,getBoundingRect:s["n"],getMinValue:at.getMinValue,getMaxValue:at.getMaxValue}),lt=Math,ht=lt.abs,ut=lt.min,ct=lt.max,gt=lt.round,dt=2,_t=Object(n["a"])({},G,{_getContinuousPoints:function(t,e){var i,r=this.x,n=this._options.rotated?function(t,e){return[e,t]}:function(t,e){return[t,e]},a=this.width,s=this.highY,o=ht(s-t)<ht(s-e)?t:e,l=o===e?t:e;return i=l===o?[].concat(n(r,this.highY)).concat(n(r,this.lowY)).concat(n(r,this.closeY)).concat(n(r-a/2,this.closeY)).concat(n(r+a/2,this.closeY)).concat(n(r,this.closeY)):[].concat(n(r,this.highY)).concat(n(r,o)).concat(n(r+a/2,o)).concat(n(r+a/2,l)).concat(n(r,l)).concat(n(r,this.lowY)).concat(n(r,l)).concat(n(r-a/2,l)).concat(n(r-a/2,o)).concat(n(r,o)),i},_getCrockPoints:function(t){var e=this.x,i=this._options.rotated?function(t,e){return[e,t]}:function(t,e){return[t,e]};return[].concat(i(e,this.highY)).concat(i(e,this.lowY)).concat(i(e,t)).concat(i(e-this.width/2,t)).concat(i(e+this.width/2,t)).concat(i(e,t))},_getPoints:function(){var t,e=this.closeY,i=this.openY;return t=null!==e&&null!==i?this._getContinuousPoints(i,e):i===e?[this.x,this.highY,this.x,this.lowY]:this._getCrockPoints(null!==i?i:e),t},getColor:function(){return this._isReduction?this._options.reduction.color:this._styles.normal.stroke||this.series.getColor()},_drawMarkerInGroup:function(t,e,i){this.graphic=i.path(this._getPoints(),"area").attr({"stroke-linecap":"square"}).attr(e).data({"chart-data-point":this}).sharp().append(t)},_fillStyle:function(){var t=this._options.styles;this._isReduction&&this._isPositive?this._styles=t.reductionPositive:this._isReduction?this._styles=t.reduction:this._isPositive?this._styles=t.positive:this._styles=t},_getMinTrackerWidth:function(){return 2+2*this._styles.normal["stroke-width"]},correctCoordinates:function(t){var e=this._getMinTrackerWidth(),i=t.width;i=i<e?e:i>10?10:i,this.width=i+i%2,this.xCorrection=t.offset},_getMarkerGroup:function(t){var e;return e=this._isReduction&&this._isPositive?t.reductionPositiveMarkersGroup:this._isReduction?t.reductionMarkersGroup:this._isPositive?t.defaultPositiveMarkersGroup:t.defaultMarkersGroup,e},_drawMarker:function(t,e){this._drawMarkerInGroup(this._getMarkerGroup(e),this._getStyle(),t)},_getSettingsForTracker:function(){var t,e,i,r,n=this.highY,a=this.lowY,s=this._options.rotated;return n===a&&(n=s?n+dt:n-dt,a=s?a-dt:a+dt),s?(t=ut(a,n),e=this.x-this.width/2,i=ht(a-n),r=this.width):(t=this.x-this.width/2,e=ut(a,n),i=this.width,r=ht(a-n)),{x:t,y:e,width:i,height:r}},_getGraphicBBox:function(t){var e=this._options.rotated,i=this.x,r=this.width,n=this.lowY,a=this.highY;if(t){var s=this.series.getValueAxis().getVisibleArea();a=this._truncateCoord(a,s),n=this._truncateCoord(n,s)}var o={x:e?n:i-gt(r/2),y:e?i-gt(r/2):a,width:e?a-n:r,height:e?r:n-a};if(t){var l="top"===t;this._options.rotated?(o.x=l?o.x+o.width:o.x,o.width=0):(o.y=l?o.y:o.y+o.height,o.height=0)}return o},getTooltipParams:function(t){if(this.graphic){var e=ut(this.lowY,this.highY),i=ct(this.lowY,this.highY),r=this._getVisibleArea(),n=this._options.rotated,a=n?r.minX:r.minY,s=n?r.maxX:r.maxY,o=ct(a,e),l=ut(s,i),h=this.getCenterCoord();return"edge"===t&&(h[n?"x":"y"]=n?l:o),h.offset=0,h}},getCenterCoord(){if(this.graphic){var t,e,i=ut(this.lowY,this.highY),r=ct(this.lowY,this.highY),n=this._getVisibleArea(),a=this._options.rotated,s=a?n.minX:n.minY,o=a?n.maxX:n.maxY,l=ct(s,i),h=ut(o,r),u=l+(h-l)/2;return a?(e=this.x,t=u):(t=this.x,e=u),{x:t,y:e}}},hasValue:function(){return null!==this.highValue&&null!==this.lowValue},hasCoords:function(){return null!==this.x&&null!==this.lowY&&null!==this.highY},_translate:function(){var t=this._options.rotated,e=this._getValTranslator(),i=this._getArgTranslator().translate(this.argument);this.vx=this.vy=this.x=null===i?i:i+(this.xCorrection||0),this.openY=null!==this.openValue?e.translate(this.openValue):null,this.highY=e.translate(this.highValue),this.lowY=e.translate(this.lowValue),this.closeY=null!==this.closeValue?e.translate(this.closeValue):null;var r=ut(this.lowY,this.highY)+ht(this.lowY-this.highY)/2;this._calculateVisibility(t?r:this.x,t?this.x:r)},getCrosshairData:function(t,e){var i,r,n=this._options.rotated,a=n?t:e,s=this.argument,o="low";return ht(this.lowY-a)<ht(this.closeY-a)?i=this.lowY:(i=this.closeY,o="close"),ht(i-a)>=ht(this.openY-a)&&(i=this.openY,o="open"),ht(i-a)>=ht(this.highY-a)&&(i=this.highY,o="high"),r=n?{y:this.vy,x:i,xValue:this[o+"Value"],yValue:s}:{x:this.vx,y:i,xValue:s,yValue:this[o+"Value"]},r.axis=this.series.axis,r},_updateData:function(t){var e=this._label,i=this._options.reduction.color;this.value=this.initialValue=t.reductionValue,this.originalValue=t.value,this.lowValue=this.originalLowValue=t.lowValue,this.highValue=this.originalHighValue=t.highValue,this.openValue=this.originalOpenValue=t.openValue,this.closeValue=this.originalCloseValue=t.closeValue,this._isPositive=t.openValue<t.closeValue,this._isReduction=t.isReduction,this._isReduction&&e.setColor(i)},_updateMarker:function(t,e,i){var r=this.graphic;r.attr({points:this._getPoints()}).smartAttr(e).sharp(),i&&r.append(this._getMarkerGroup(i))},_getLabelFormatObject:function(){return{openValue:this.openValue,highValue:this.highValue,lowValue:this.lowValue,closeValue:this.closeValue,reductionValue:this.initialValue,argument:this.initialArgument,value:this.initialValue,seriesName:this.series.name,originalOpenValue:this.originalOpenValue,originalCloseValue:this.originalCloseValue,originalLowValue:this.originalLowValue,originalHighValue:this.originalHighValue,originalArgument:this.originalArgument,point:this}},_getFormatObject:function(t){var e=t.formatValue(this.highValue),i=t.formatValue(this.openValue),r=t.formatValue(this.closeValue),a=t.formatValue(this.lowValue),s=P,o=s._getFormatObject.call(this,t);return Object(n["a"])({},o,{valueText:"h: "+e+(""!==i?" o: "+i:"")+(""!==r?" c: "+r:"")+" l: "+a,highValueText:e,openValueText:i,closeValueText:r,lowValueText:a})},getMaxValue:function(){return this.highValue},getMinValue:function(){return this.lowValue}}),pt=n["a"],ft=h["i"],bt=pt({},_t,{_getPoints:function(){var t=this._options.rotated?function(t,e){return[e,t]}:function(t,e){return[t,e]},e=ft(this.openY),i=ft(this.closeY),r=this.x,n=this.width,a=[].concat(t(r,this.highY));return e&&(a=a.concat(t(r,this.openY))),e&&(a=a.concat(t(r-n/2,this.openY))),e&&(a=a.concat(t(r,this.openY))),i&&(a=a.concat(t(r,this.closeY))),i&&(a=a.concat(t(r+n/2,this.closeY))),i&&(a=a.concat(t(r,this.closeY))),a=a.concat(t(r,this.lowY)),a},_drawMarkerInGroup:function(t,e,i){this.graphic=i.path(this._getPoints(),"line").attr({"stroke-linecap":"square"}).attr(e).data({"chart-data-point":this}).sharp().append(t)},_getMinTrackerWidth:function(){var t=2+this._styles.normal["stroke-width"];return t+t%2}}),mt=n["a"],vt=Math,yt=vt.max,xt=r["a"].radialLabelIndent,Vt=90,wt="canvas_position_start",kt="canvas_position_end",Ot="canvas_position_default",Pt=mt({},P,{_getLabelCoords:J._getLabelCoords,_getElementCoords:J._getElementCoords,_moveLabelOnCanvas:function(t,e,i){var r=t.x,n=t.y;return e.minX>r&&(r=e.minX),e.maxX<r+i.width&&(r=e.maxX-i.width),e.minY>n&&(n=e.minY),e.maxY<n+i.height&&(n=e.maxY-i.height),{x:r,y:n}},_getLabelPosition:function(){return"outside"},_getCoords:function(t,e){var i=this.series.getValueAxis(),r=i.getAngles()[0],n=this._getArgTranslator().translate(t),a=this._getValTranslator().translate(e),s=Object(u["d"])(i.getCenter(),i.getAngles()[0],n,a);return s.angle=n+r-90,s.radius=a,s},_translate(){var t=this.series.getValueAxis().getCenter(),e=this._getCoords(this.argument,this.value),i=this._getValTranslator(),r=i.isInverted()?i.translate(wt):i.translate(kt),n=Object(h["d"])(e.radius)&&e.radius>=0?e.radius:null;this.vx=Object(u["w"])(e.angle),this.vy=this.radiusOuter=this.radiusLabels=n,this.radiusLabels+=xt,this.radius=n,this.middleAngle=-e.angle,this.angle=-e.angle,this.x=e.x,this.y=e.y,this.defaultX=this.centerX=t.x,this.defaultY=this.centerY=t.y,this._translateErrorBars(),this.inVisibleArea=this._checkRadiusForVisibleArea(n,r)},_checkRadiusForVisibleArea:(t,e)=>Object(h["d"])(t)&&t<=e,_translateErrorBars:function(){var t=this._options.errorBars,e=this._getValTranslator();t&&(Object(h["d"])(this.lowError)&&(this._lowErrorCoord=this.centerY-e.translate(this.lowError)),Object(h["d"])(this.highError)&&(this._highErrorCoord=this.centerY-e.translate(this.highError)),this._errorBarPos=this.centerX,this._baseErrorBarPos="stdDeviation"===t.type?this._lowErrorCoord+(this._highErrorCoord-this._lowErrorCoord)/2:this.centerY-this.radius)},_getTranslates:function(t){return t?this.getDefaultCoords():{x:this.x,y:this.y}},getDefaultCoords:function(){var t=Object(u["m"])(-this.angle),e=this._getValTranslator().translate(Ot),i=this.defaultX+e*t.cos,r=this.defaultY+e*t.sin;return{x:i,y:r}},_addLabelAlignmentAndOffset:function(t,e){return e},_checkLabelPosition:function(t,e){var i=this._getVisibleArea(),r=this._getGraphicBBox();return this._isPointInVisibleArea(i,r)&&(e=this._moveLabelOnCanvas(e,i,t.getBoundingRect())),e},_getErrorBarSettings:function(t,e){var i=P._getErrorBarSettings.call(this,t,e);return i.rotate=Vt-this.angle,i.rotateX=this.centerX,i.rotateY=this.centerY,i},getCoords:function(t){return t?this.getDefaultCoords():{x:this.x,y:this.y}}}),Ct=mt({},G,{_translateErrorBars:Pt._translateErrorBars,_getErrorBarSettings:Pt._getErrorBarSettings,_moveLabelOnCanvas:Pt._moveLabelOnCanvas,_getLabelCoords:J._getLabelCoords,_getElementCoords:J._getElementCoords,_getLabelConnector:J._getLabelConnector,getTooltipParams:J.getTooltipParams,_getLabelPosition:J._getLabelPosition,_getCoords:Pt._getCoords,_translate(){var t=this._getValTranslator(),e=t.getBusinessRange(),i=t.isInverted()?t.translate(wt):t.translate(kt);this.radiusInner=t.translate(this.minValue),Pt._translate.call(this),null===this.radiusInner?this.radiusInner=this.radius=i:null===this.radius?this.radius=this.value>=e.minVisible?i:0:this.radius>i&&(this.radius=i),this.radiusOuter=this.radiusLabels=yt(this.radiusInner,this.radius),this.radiusLabels+=xt,this.radiusInner=this.defaultRadius=vt.min(this.radiusInner,this.radius),this.middleAngle=this.angle=-Object(u["w"])(this.middleAngleCorrection-this.angle)},_checkRadiusForVisibleArea(t){return Object(h["d"])(t)||this._getValTranslator().translate(this.minValue)>0},_getErrorBarBaseEdgeLength(){var t=this.getMarkerCoords();return vt.PI*t.outerRadius*vt.abs(t.startAngle-t.endAngle)/180},getMarkerCoords:function(){return{x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.defaultRadius,startAngle:this.middleAngle-this.interval/2,endAngle:this.middleAngle+this.interval/2}},_drawMarker:function(t,e,i){var r=this._getStyle(),n=this.getMarkerCoords(),a=n.innerRadius,s=n.outerRadius,o=this._getCoords(this.argument,Ot),l=n.x,h=n.y;i&&(a=0,s=0,l=o.x,h=o.y),this.graphic=t.arc(l,h,a,s,n.startAngle,n.endAngle).attr(r).data({"chart-data-point":this}).append(e)},_checkLabelPosition:function(t,e){var i=this._getVisibleArea(),r=Object(u["m"])(this.middleAngle),n=this.centerX+this.defaultRadius*r.cos,a=this.centerY-this.defaultRadius*r.sin;return n>i.minX&&n<i.maxX&&a>i.minY&&a<i.maxY&&(e=this._moveLabelOnCanvas(e,i,t.getBoundingRect())),e},_addLabelAlignmentAndOffset:function(t,e){return e},correctCoordinates:function(t){this.middleAngleCorrection=t.offset,this.interval=t.width},coordsIn:function(t,e){var i=Object(u["f"])(this.series.getValueAxis().getCenter(),t,e),r=this.getMarkerCoords(),n=r.startAngle<r.endAngle?-i.phi>=r.startAngle&&-i.phi<=r.endAngle:-i.phi<=r.startAngle&&-i.phi>=r.endAngle;return i.r>=r.innerRadius&&i.r<=r.outerRadius&&n}}),At={},Lt=n["a"],St=r["a"].states,Mt="symbolPoint",Bt="polarSymbolPoint",jt="barPoint",Et="polarBarPoint",Tt="piePoint",Yt=St.selectedMark,Ft=St.hoverMark,It=St.normalMark,Gt=St.hover,Rt=St.normal,Dt=St.selection,Xt={chart:{scatter:Mt,line:Mt,spline:Mt,stepline:Mt,stackedline:Mt,fullstackedline:Mt,stackedspline:Mt,fullstackedspline:Mt,stackedsplinearea:Mt,fullstackedsplinearea:Mt,area:Mt,splinearea:Mt,steparea:Mt,stackedarea:Mt,fullstackedarea:Mt,rangearea:"rangeSymbolPoint",bar:jt,stackedbar:jt,fullstackedbar:jt,rangebar:"rangeBarPoint",bubble:"bubblePoint",stock:"stockPoint",candlestick:"candlestickPoint"},pie:{pie:Tt,doughnut:Tt,donut:Tt},polar:{scatter:Bt,line:Bt,area:Bt,bar:Et,stackedbar:Et}};function zt(t){return"none"===Object(u["y"])(t)}function Ht(t,e,i){this.fullState=It,this.series=t,this.update(e,i),this._viewCounters={hover:0,selection:0},this._emptySettings={fill:null,stroke:null,dashStyle:null}}At.symbolPoint=P,At.barPoint=G,At.bubblePoint=X,At.piePoint=J,At.rangeSymbolPoint=at,At.rangeBarPoint=ot,At.candlestickPoint=_t,At.stockPoint=bt,At.polarSymbolPoint=Pt,At.polarBarPoint=Ct,Ht.prototype={constructor:Ht,getColor:function(){return this.hasValue()||this._styles.usePointCustomOptions||this.series.customizePoint(this,this._dataItem),this._styles.normal.fill||this.series.getColor()},_getStyle:function(){return this._styles[this._currentStyle||"normal"]},update:function(t,e){this.updateOptions(e),this.updateData(t)},updateData:function(t){var e=this.argument!==t.argument;this.argument=this.initialArgument=this.originalArgument=t.argument,this.tag=t.tag,this.index=t.index,this._dataItem=t,this.data=t.data,this.lowError=t.lowError,this.highError=t.highError,this.aggregationInfo=t.aggregationInfo,this._updateData(t,e),!this.hasValue()&&this.setInvisibility(),this._fillStyle(),this._updateLabelData()},deleteMarker:function(){this.graphic&&this.graphic.dispose(),this.graphic=null},draw:function(t,e,i,r){return(this._needDeletingOnDraw||this.series.autoHidePointMarkers&&!this.isSelected())&&(this.deleteMarker(),this._needDeletingOnDraw=!1),this._needClearingOnDraw&&(this.clearMarker(),this._needClearingOnDraw=!1),this._hasGraphic()?this._updateMarker(i,this._getStyle(),e.markers):this.getMarkerVisibility()&&!this.series.autoHidePointMarkers&&this._drawMarker(t,e.markers,i,r),this._drawLabel(),this._drawErrorBar(t,e.errorBars,i),this},_getViewStyle:function(){var t=It,e=this.fullState,i=[Rt,Gt,Dt,Dt];return this._viewCounters.hover&&(t|=Ft),this._viewCounters.selection&&(t|=Yt),zt(this.getOptions().selectionMode)&&(e&=~Yt),zt(this.getOptions().hoverMode)&&(e&=~Ft),t|=e,i[t]},applyView:function(t){var e=this._getViewStyle();this._currentStyle=e,this.graphic||!this.getMarkerVisibility()||!this.series.autoHidePointMarkers||e!==Dt&&e!==Gt||this._drawMarker(this.series.getRenderer(),this.series.getMarkersGroup()),this.graphic&&(this.series.autoHidePointMarkers&&e!==Dt&&e!==Gt?this.deleteMarker():("normal"===e?this.clearMarker():this.graphic.toForeground(),this._updateMarker(!0,this._styles[e],void 0,t)))},setView:function(t){this._viewCounters[t]++,this.applyView()},resetView:function(t){var e=this._viewCounters;--e[t],e[t]<0&&(e[t]=0),this.applyView()},releaseHoverState:function(){this.graphic&&!this.isSelected()&&this.graphic.toBackground()},select:function(){this.series.selectPoint(this)},clearSelection:function(){this.series.deselectPoint(this)},hover:function(){this.series.hoverPoint(this)},clearHover:function(){this.series.clearPointHover()},showTooltip:function(){this.series.showPointTooltip(this)},hideTooltip:function(){this.series.hidePointTooltip(this)},_checkLabelsChanging:function(t,e){var i=~e.indexOf("range"),r=~t.indexOf("range");return r&&!i||!r&&i},updateOptions:function(t){if(t){var e=this._options,i=t.widgetType,r=e&&e.type,n=t.type,a=Xt[i][n];r!==n?(this._needDeletingOnDraw=!0,this._needClearingOnDraw=!1,r&&(this._checkLabelsChanging(r,n)&&this.deleteLabel(),this._resetType(At[Xt[r]])),this._setType(At[a])):(this._needDeletingOnDraw=this._checkSymbol(e,t),this._needClearingOnDraw=this._checkCustomize(e,t)),this._options=t,this._fillStyle(),this._updateLabelOptions(a)}},translate:function(){this.hasValue()&&(this._translate(),this.translated=!0)},_checkCustomize:function(t,e){return t.styles.usePointCustomOptions&&!e.styles.usePointCustomOptions},_getCustomLabelVisibility:function(){return this._styles.useLabelCustomOptions?!!this._options.label.visible:null},getBoundingRect:function(){return this._getGraphicBBox()},_resetType:function(t){for(var e in t)delete this[e]},_setType:function(t){for(var e in t)this[e]=t[e]},isInVisibleArea:function(){return this.inVisibleArea},isSelected:function(){return!!(this.fullState&Yt)},isHovered:function(){return!!(this.fullState&Ft)},getOptions:function(){return this._options},animate:function(t,e,i){this.graphic?this.graphic.animate(e,{partitionDuration:i},t):t&&t()},getCoords:function(t){return t?this._options.rotated?{x:this.minX-(this.x-this.minX?0:1),y:this.y}:{x:this.x,y:this.minY+(this.y-this.minY?0:1)}:{x:this.x,y:this.y}},getDefaultCoords:function(){return this._options.rotated?{x:this.defaultX,y:this.y}:{x:this.x,y:this.defaultY}},setDefaultCoords(){var t=this.getDefaultCoords();this.x=t.x,this.y=t.y},_getVisibleArea:function(){return this.series.getVisibleArea()},_getArgTranslator:function(){return this.series.getArgumentAxis().getTranslator()},_getValTranslator:function(){return this.series.getValueAxis().getTranslator()},_calculateVisibility:function(t,e,i,r){var n=this._getVisibleArea(),a=this._options.rotated;n.minX>t+(i||0)||n.maxX<t||n.minY>e+(r||0)||n.maxY<e||a&&Object(h["d"])(i)&&0!==i&&(n.minX===t+i||n.maxX===t)||!a&&Object(h["d"])(r)&&0!==r&&(n.minY===e+r||n.maxY===e)?this.inVisibleArea=!1:this.inVisibleArea=!0},isArgumentCorrect(){return this.series._argumentChecker(this.argument)},isValueCorrect(){var t=this.series._valueChecker;return t(this.getMinValue())&&t(this.getMaxValue())},hasValue:function(){return null!==this.value&&null!==this.minValue&&this.isArgumentCorrect()&&this.isValueCorrect()},hasCoords:s["n"],correctPosition:s["n"],correctRadius:s["n"],correctLabelRadius:s["n"],getCrosshairData:s["n"],getPointRadius:s["n"],_populatePointShape:s["n"],_checkSymbol:s["n"],getMarkerCoords:s["n"],hide:s["n"],show:s["n"],hideMarker:s["n"],setInvisibility:s["n"],clearVisibility:s["n"],isVisible:s["n"],resetCorrection:s["n"],correctValue:s["n"],resetValue:s["n"],setPercentValue:s["n"],correctCoordinates:s["n"],coordsIn:s["n"],getTooltipParams:s["n"],applyWordWrap:s["n"],setLabelTrackerData:s["n"],updateLabelCoord:s["n"],drawLabel:s["n"],correctLabelPosition:s["n"],getMinValue:s["n"],getMaxValue:s["n"],_drawErrorBar:s["n"],getMarkerVisibility:s["n"],dispose:function(){this.deleteMarker(),this.deleteLabel(),this._errorBar&&this._errorBar.dispose(),this._options=this._styles=this.series=this._errorBar=null},getTooltipFormatObject:function(t,e){var i=this._getFormatObject(t),r=[],n=[];e&&(e.forEach(e=>{if(e.isVisible()){var i=e._getFormatObject(t);n.push(i),r.push(i.seriesName+": "+i.valueText)}}),Lt(i,{points:n,valueText:r.join("\n"),stackName:this.series.getStackName()||null}));var a=this.aggregationInfo;if(a){var s=this.series.getArgumentAxis(),o=s.formatRange(a.intervalStart,a.intervalEnd,a.aggregationInterval,t.getOptions().argumentFormat);o&&(i.valueText+="\n".concat(o))}return i},setHole:function(t,e){var i=isFinite(this.minValue)?this.minValue:0;Object(h["d"])(t)&&("left"===e?(this.leftHole=this.value-t,this.minLeftHole=i-t):(this.rightHole=this.value-t,this.minRightHole=i-t))},resetHoles:function(){this.leftHole=null,this.minLeftHole=null,this.rightHole=null,this.minRightHole=null},getLabel:function(){return this._label},getLabels:function(){return[this._label]},getCenterCoord(){return{x:this.x,y:this.y}}}},7872:function(t,e,i){"use strict";i.d(e,"a",(function(){return f})),i.d(e,"b",(function(){return b}));var r=i("ab8f"),n=i("0aaf"),a=i("b9af"),s=i("b144"),o=i("bf7a"),l=i("61a5"),h="discrete",{round:u,sqrt:c,pow:g,min:d,max:_,abs:p}=Math,f={},b={};function m(t,e,i,r){var a=Object(n["a"])(t);return a.x=e,a.y=i,a.angle=r,a}function v(t,e,i,r,n){var a=t.angle+n,s=Object(o["m"])(a),l=i.x+(t.radius+r*n)*s.cos,h=i.y-(t.radius+r*n)*s.sin;return m(e,l,h,a)}function y(t,e,i,r,n){var a=e-t,s=3*i-3*e,o=3*r-6*i+3*e,h=n-3*r+3*i-e;return Object(l["k"])(h,o,s,a)}var x={autoHidePointMarkersEnabled:()=>!0,_applyGroupSettings:function(t,e,i){e=Object(a["a"])(e,t),this._applyElementsClipRect(e),i.attr(e)},_setGroupsSettings:function(t){var e=this._styles.normal;this._applyGroupSettings(e.elements,{class:"dxc-elements"},this._elementsGroup),this._bordersGroup&&this._applyGroupSettings(e.border,{class:"dxc-borders"},this._bordersGroup),r["a"]._setGroupsSettings.call(this,t),t&&this._markersGroup&&this._markersGroup.attr({opacity:.001})},_createGroups:function(){this._createGroup("_elementsGroup",this,this._group),this._areBordersVisible()&&this._createGroup("_bordersGroup",this,this._group),r["a"]._createGroups.call(this)},_areBordersVisible:function(){return!1},_getDefaultSegment:function(t){return{line:Object(o["u"])(t.line||[],(function(t){return t.getDefaultCoords()}))}},_prepareSegment:function(t){return{line:t}},_parseLineOptions:function(t,e){return{stroke:t.color||e,"stroke-width":t.width,dashStyle:t.dashStyle||"solid"}},_parseStyle:function(t,e){return{elements:this._parseLineOptions(t,e)}},_applyStyle:function(t){this._elementsGroup&&this._elementsGroup.attr(t.elements),Object(s["a"])(this._graphics||[],(function(e,i){i.line&&i.line.attr({"stroke-width":t.elements["stroke-width"]}).sharp()}))},_drawElement:function(t,e){return{line:this._createMainElement(t.line,{"stroke-width":this._styles.normal.elements["stroke-width"]}).append(e)}},_removeElement:function(t){t.line.remove()},_updateElement:function(t,e,i,r){var n={points:e.line},a=t.line;i?a.animate(n,{},r):a.attr(n)},_animateComplete:function(){r["a"]._animateComplete.call(this),this._markersGroup&&this._markersGroup.animate({opacity:1},{duration:this._defaultDuration})},_animate:function(){var t=this,e=t._graphics.length-1;Object(s["a"])(t._graphics||[],(function(i,r){var n;i===e&&(n=function(){t._animateComplete()}),t._updateElement(r,t._segments[i],!0,n)}))},_drawPoint:function(t){r["a"]._drawPoint.call(this,{point:t.point,groups:t.groups})},_createMainElement:function(t,e){return this._renderer.path(t,"line").attr(e)},_sortPoints:function(t,e){return e?t.sort((function(t,e){return e.y-t.y})):t.sort((function(t,e){return t.x-e.x}))},_drawSegment:function(t,e,i,r){var n=this._options.rotated,a=this._prepareSegment(t,n,r);this._segments.push(a),this._graphics[i]?e||this._updateElement(this._graphics[i],a):this._graphics[i]=this._drawElement(e?this._getDefaultSegment(a):a,this._elementsGroup)},_getTrackerSettings:function(){var t=this._defaultTrackerWidth,e=this._styles.normal.elements["stroke-width"];return{"stroke-width":e>t?e:t,fill:"none"}},_getMainPointsFromSegment:function(t){return t.line},_drawTrackerElement:function(t){return this._createMainElement(this._getMainPointsFromSegment(t),this._getTrackerSettings(t))},_updateTrackerElement:function(t,e){var i=this._getTrackerSettings(t);i.points=this._getMainPointsFromSegment(t),e.attr(i)},checkSeriesViewportCoord(t,e){if(!r["a"].checkSeriesViewportCoord.call(this))return!1;var i=t.isArgumentAxis?this.getArgumentRange():this.getViewport(),n=t.getTranslator().translate(i.categories?i.categories[0]:i.min),a=t.getTranslator().translate(i.categories?i.categories[i.categories.length-1]:i.max),s=this.getOptions().rotated,o=t.getOptions().inverted;return t.isArgumentAxis&&(!s&&!o||s&&o)||!t.isArgumentAxis&&(s&&!o||!s&&o)?e>=n&&e<=a:e>=a&&e<=n}},V=f.line=Object(a["a"])({},r["a"],x,{getPointCenterByArg(t){var e=this.getArgumentAxis().getTranslator().translate(t);return{x:e,y:e}},getSeriesPairCoord(t,e){for(var i=null,r=this._getNearestPointsByCoord(t,e),n=e&&!this._options.rotated||!e&&this._options.rotated,a=0;a<r.length;a++){var s=r[a],o=(s[1].vy-s[0].vy)/(s[1].vx-s[0].vx),l=s[0].vy-s[0].vx*o,h=void 0;if(h=s[1].vx-s[0].vx===0?n?s[0].vy:s[0].vx:n?o*t+l:(t-l)/o,this._checkAxisVisibleAreaCoord(!e,h)){i=h;break}}return i}});f.stepline=Object(a["a"])({},V,{_calculateStepLinePoints(t){var e=[],i=this._options.rotated?"x":"y";return Object(s["a"])(t,(function(t,r){var a;if(t){var s=e[e.length-1][i];s!==r[i]&&(a=Object(n["a"])(r),a[i]=s,e.push(a)),e.push(r)}else e.push(r)})),e},_prepareSegment:function(t){return V._prepareSegment(this._calculateStepLinePoints(t))},getSeriesPairCoord(t,e){for(var i,r=this._options.rotated,n=!e&&!r||e&&r,a=n?"vy":"vx",s=n?"vx":"vy",o=this._getNearestPointsByCoord(t,e),l=0;l<o.length;l++){var h=o[l],u=void 0;if(u=e?t!==h[1][a]?h[0][s]:h[1][s]:t===h[0][a]?h[0][s]:h[1][s],this._checkAxisVisibleAreaCoord(!e,u)){i=u;break}}return i}}),f.spline=Object(a["a"])({},V,{_calculateBezierPoints:function(t,e){var i=[],r=t,n=function(t,e,i){return t>e&&i>t||t<e&&i<t?t:i};return 1!==r.length?r.forEach((function(t,a){var s,o,l,h,u,c,g,d,_,p,f,b,v,y,x=r[a-1],V=r[a+1];if(a&&a!==r.length-1){var w=t.x,k=t.y;u=x.x,c=V.x,g=x.y,d=V.y;var O=!!(!e&&(k<=x.y&&k<=V.y||k>=x.y&&k>=V.y)||e&&(w<=x.x&&w<=V.x||w>=x.x&&w>=V.x));if(O)e?(l=s=w,h=(k+V.y)/2,o=(k+x.y)/2):(h=o=k,l=(w+V.x)/2,s=(w+x.x)/2);else{if(_=d-g,p=u-c,f=g*c-u*d,e){if(!_)return void i.push(t,t,t);v=k,b=-1*(p*v+f)/_,y=b-w,u-=y,c-=y}else{if(!p)return void i.push(t,t,t);b=w,v=-1*(_*b+f)/p,y=v-k,g-=y,d-=y}l=(w+.5*c)/1.5,h=(k+.5*d)/1.5,s=(w+.5*u)/1.5,o=(k+.5*g)/1.5}e?(s=n(x.x,w,s),l=n(V.x,w,l)):(o=n(x.y,k,o),h=n(V.y,k,h));var P=m(t,s,o),C=m(t,l,h);i.push(P,t,C)}else i.push(t,t)})):i.push(r[0]),i},_prepareSegment:function(t,e){return V._prepareSegment(this._calculateBezierPoints(t,e))},_createMainElement:function(t,e){return this._renderer.path(t,"bezier").attr(e)},getSeriesPairCoord(t,e){for(var i=null,r=!e&&!this._options.rotated||e&&this._options.rotated,n=r?"vy":"vx",a=r?"y":"x",s=r?"vx":"vy",o=r?"x":"y",l=e?this.getValueAxis():this.getArgumentAxis(),h=l.getVisibleArea(),u=this._getNearestPointsByCoord(t,e),c=function(e){var r=u[e];if(1===r.length)h[0]<=r[0][s]&&h[1]>=r[0][s]&&(i=r[0][s]);else{var l=y(t,r[0][n],r[1][a],r[2][a],r[3][n]);l.forEach(t=>{if(t>=0&&t<=1){var e=Math.pow(1-t,3)*r[0][s]+3*Math.pow(1-t,2)*t*r[1][o]+3*(1-t)*t*t*r[2][o]+t*t*t*r[3][s];h[0]<=e&&h[1]>=e&&(i=e)}})}if(null!==i)return"break"},g=0;g<u.length;g++){var d=c(g);if("break"===d)break}return i},_getNearestPoints(t,e,i){var r=i.indexOf(t);return[t,i[r+1],i[r+2],e]},_getBezierPoints(){return this._segments.length>0?this._segments.reduce((t,e)=>t.concat(e.line),[]):[]}}),b.line=Object(a["a"])({},r["b"],x,{_sortPoints:function(t){return t},_prepareSegment:function(t,e,i){var r,n=[],a=this.getValueAxis().getCenter();if(i&&this._closeSegment(t),this.argumentAxisType===h||this.valueAxisType===h)return V._prepareSegment.call(this,t);for(r=1;r<t.length;r++)n=n.concat(this._getTangentPoints(t[r],t[r-1],a,r===t.length-1));return n.length||(n=t),{line:n}},_getRemainingAngle:function(t){var e=Object(o["w"])(t);return t>=0?360-e:-e},_closeSegment(t){var e;e=this._segments.length?this._segments[0].line[0]:m(t[0],t[0].x,t[0].y,t[0].angle),e=this._modifyReflectedPoint(e,t[t.length-1]),e&&t.push(e)},_modifyReflectedPoint(t,e){if(e.angle!==t.angle){if(Object(o["w"])(u(e.angle))===Object(o["w"])(u(t.angle)))t.angle=e.angle;else{var i=e.angle-t.angle;t.angle=e.angle+this._getRemainingAngle(i)}return t}},_getTangentPoints:function(t,e,i,r){var n,a=[],s=Math.round(e.angle-t.angle),o=(e.radius-t.radius)/s;if(0===s)a=[e,t];else if(s>0){var l=r?s:s-1;for(n=l;n>=0;n--)a.push(v(t,e,i,o,n))}else{var h=r?s:s+1;for(n=0;n>=h;n--)a.push(v(t,e,i,o,s-n))}return a},getSeriesPairCoord(t,e){var i,r=this.getArgumentAxis(),n=e?"angle":"radius",a=t[n],s=r.getCenter(),u=(t,e,i)=>{var n,a,{x:o,y:l}=i;return n={x:o,y:l},a=s,c(g(n.x-a.x,2)+g(n.y-a.y,2))<=r.getRadius()&&d(t.x,e.x)<=o&&_(t.x,e.x)>=o&&d(t.y,e.y)<=l&&_(t.y,e.y)>=l},f=this.getNeighborPoints(a,n);if(1===f.length)i=f[0];else if(f.length>1){var b,m,y=f[0],x=f[1];if(this.argumentAxisType!==h&&this.valueAxisType!==h)e?(b=(y.radius-x.radius)/(y.angle-x.angle),m=a-x.angle):(b=(y.radius-x.radius)/(y.angle-x.angle),m=(a-x.radius)/b),i=v(x,y,s,b,m);else if(e){var V=Object(o["m"])(-a),w=(x.y-y.y)/(x.x-y.x),k=y.y-y.x*w,O=V.sin/V.cos,P=s.y-O*s.x,C=(P-k)/(w-O),A=w*C+k;if(u(y,x,{x:C,y:A})){var L=p(Object(l["l"])((360+a)/90)%4);(0===L&&C>=s.x&&A<=s.y||1===L&&C<=s.x&&A<=s.y||2===L&&C<=s.x&&A>=s.y||3===L&&C>=s.x&&A>=s.y)&&(i={x:C,y:A})}}else{var S=(x.y-y.y)/(x.x-y.x),M=y.y-y.x*S,B=1+S*S,j=-2*s.x+2*S*M-2*S*s.y,E=-g(a,2)+g(M-s.y,2)+g(s.x,2),T=j*j-4*B*E;if(T>=0){var Y=(-j-c(T))/(2*B),F=(-j+c(T))/(2*B),I=S*Y+M,G=S*F+M;i=u(y,x,{x:Y,y:I})?{x:Y,y:I}:u(y,x,{x:F,y:G})?{x:F,y:G}:void 0}}}return i},getNeighborPoints(t,e){var i=this.getPoints(),r=[];if(this.getOptions().closed){i=Object(a["a"])(!0,[],i);var n=i[i.length-1],s=m(i[0],i[0].x,i[0].y,i[0].angle),o=m(n,n.x,n.y,n.angle),l=this._modifyReflectedPoint(s,n),h=this._modifyReflectedPoint(o,i[0]);h&&i.unshift(h),l&&i.push(l)}for(var u=1;u<i.length;u++)if(i[u-1][e]===t?r.push(i[u-1]):i[u][e]===t?r.push(i[u]):(i[u][e]>t&&i[u-1][e]<t||i[u-1][e]>t&&i[u][e]<t)&&(r.push(i[u-1]),r.push(i[u])),r.length>0)break;return r}})},"7d39":function(t,e,i){"use strict";i.d(e,"a",(function(){return b}));var r=i("7872"),n=i("ab8f"),a=i("057e"),s=i("d97f"),o=i("b9af"),l=i("b144"),h=i("6bc7"),u=r["a"].line,c=a["a"].area,g=s["a"].bar,d=s["b"].bar,_=o["a"],p=l["a"],f=h["n"],b={};b.bubble=_({},n["a"],{_calculateErrorBars:f,_getMainColor:g._getMainColor,_createPointStyles:g._createPointStyles,_updatePointsVisibility:g._updatePointsVisibility,_getOptionsForPoint:g._getOptionsForPoint,_applyMarkerClipRect:u._applyElementsClipRect,_parsePointStyle:d._parsePointStyle,_createLegendState:c._createLegendState,_setMarkerGroupSettings:d._setMarkerGroupSettings,areErrorBarsVisible:f,_createErrorBarGroup:f,_checkData:function(t,e){return n["a"]._checkData.call(this,t,e,{value:this.getValueFields()[0],size:this.getSizeField()})},_getPointDataSelector:function(t,e){var i=this.getSizeField(),r=n["a"]._getPointDataSelector.call(this);return t=>{var e=r(t);return e.size=t[i],e}},_aggregators:{avg(t,e){var{data:i,intervalStart:r,intervalEnd:n}=t;if(i.length){var a=e.getValueFields()[0],s=e.getSizeField(),o=i.reduce((t,e)=>(t[0]+=e[a],t[1]+=e[s],t[2]++,t),[0,0,0]);return{[a]:o[0]/o[2],[s]:o[1]/o[2],[e.getArgumentField()]:e._getIntervalCenter(r,n)}}}},getValueFields:function(){return[this._options.valueField||"val"]},getSizeField:function(){return this._options.sizeField||"size"},_animate:function(){var t=this,e=t._drawnPoints.length-1,i=t._labelsGroup,r=function(){i&&i.animate({opacity:1},{duration:t._defaultDuration})};p(t._drawnPoints||[],(function(t,i){i.animate(t===e?r:void 0,{r:i.bubbleSize,translateX:i.x,translateY:i.y})}))},_patchMarginOptions:function(t){return t.processBubbleSize=!0,t}})},ab8f:function(t,e,i){"use strict";i.d(e,"a",(function(){return P})),i.d(e,"b",(function(){return C}));var r=i("b9af"),n=i("b144"),a=i("d21d"),s=i("bf95"),o=i("bf7a"),l=i("6bc7"),h=Math,u=h.abs,c=h.sqrt,g=h.max,d=12,_=400,p="highError",f="lowError",b="variance",m="stddeviation",v="stderror",y="percent",x="fixed",V="undefined",w="discrete",k="logarithmic",O="datetime",P={},C={};function A(t){var e=0;return Object(n["a"])(t,(function(t,i){e+=i})),e}function L(t){return[x,y,b,m,v].includes(t)}function S(t,e){return A(Object(o["u"])(t,(function(t){return(t-e)*(t-e)})))/t.length}function M(t,e,i){var r=i.getOptions().valueErrorBar,n=i.getValueFields()[0],a=r.lowValueField||f,o=r.highValueField||p;if(i.areErrorBarsVisible()&&void 0===r.type){var l=e.reduce((function(t,e){return Object(s["d"])(e[a])&&(t[0]+=e[n]-e[a],t[1]++),Object(s["d"])(e[o])&&(t[2]+=e[o]-e[n],t[3]++),t}),[0,0,0,0]);l[1]&&(t[a]=t[n]-l[0]/l[1]),l[2]&&(t[o]=t[n]+l[2]/l[3])}return t}function B(t,e,i){var r=i.getOptions().valueErrorBar,n=r.lowValueField||f,a=r.highValueField||p;return i.areErrorBarsVisible()&&void 0===r.type&&(t[n]=0,t[a]=0,t=e.reduce((function(t,e){return t[n]+=e[n],t[a]+=e[a],t}),t)),t}function j(t){return(e,i)=>{var{intervalStart:n,intervalEnd:a,data:s}=e,o=i.getValueFields()[0],l=s[0];return l=s.reduce((e,i)=>{var r=i[o];return null===e[o]&&(e=i),null!==r&&t(r,e[o])?i:e},l),Object(r["a"])({},l,{[i.getArgumentField()]:i._getIntervalCenter(n,a)})}}function E(t,e,i){var r=!0;for(var n in e){var a="argument"===n;if(a||"size"===n?!Object(s["d"])(t[n]):void 0===t[n]){var o=e[n];a||(i[o]=(i[o]||0)+1),r=!1}}return r}var T={_defaultDuration:_,_defaultTrackerWidth:d,_applyStyle:l["n"],_updateOptions:l["n"],_parseStyle:l["n"],_prepareSegment:l["n"],_drawSegment:l["n"],_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup)},_createLegendState:function(t,e){return{fill:t.color||e,hatching:t.hatching?Object(r["a"])({},t.hatching,{direction:"right"}):void 0}},_applyElementsClipRect:function(t){t["clip-path"]=this._paneClipRectID},_applyMarkerClipRect:function(t){t["clip-path"]=this._forceClipping?this._paneClipRectID:null},_createGroup:function(t,e,i,r){var n=e[t]=e[t]||this._renderer.g();i&&n.append(i),r&&n.attr(r)},_applyClearingSettings:function(t){t.opacity=null,t.scale=null,this._options.rotated?t.translateX=null:t.translateY=null},_createGroups:function(){this._createGroup("_markersGroup",this,this._group),this._createGroup("_labelsGroup",this)},_setMarkerGroupSettings:function(){var t=this._createPointStyles(this._getMarkerGroupOptions()).normal;t.class="dxc-markers",t.opacity=1,this._applyMarkerClipRect(t),this._markersGroup.attr(t)},getVisibleArea:function(){return this._visibleArea},areErrorBarsVisible:function(){var t=this._options.valueErrorBar;return t&&this._errorBarsEnabled()&&"none"!==t.displayMode&&(L(Object(o["y"])(t.type))||Object(s["d"])(t.lowValueField)||Object(s["d"])(t.highValueField))},groupPointsByCoords(t){var e=[];return Object(n["a"])(this.getVisiblePoints(),(function(i,r){var n=parseInt(t?r.vy:r.vx);e[n]?Array.isArray(e[n])?e[n].push(r):e[n]=[e[n],r]:e[n]=r})),e},_createErrorBarGroup:function(t){var e,i=this._options.valueErrorBar;this.areErrorBarsVisible()&&(e={class:"dxc-error-bars",stroke:i.color,"stroke-width":i.lineWidth,opacity:t?.001:i.opacity||1,"stroke-linecap":"square",sharp:!0,"clip-path":this._forceClipping?this._paneClipRectID:this._widePaneClipRectID},this._createGroup("_errorBarGroup",this,this._group,e))},_setGroupsSettings:function(t){this._setMarkerGroupSettings(),this._setLabelGroupSettings(t),this._createErrorBarGroup(t)},_getCreatingPointOptions:function(){var t,e,i=this._predefinedPointOptions;return i||(t=this._getPointOptions(),this._predefinedPointOptions=i=Object(r["a"])(!0,{styles:{}},t),e=t.styles&&t.styles.normal||{},i.styles=i.styles||{},i.styles.normal={"stroke-width":e["stroke-width"],r:e.r,opacity:e.opacity}),i},_getPointOptions:function(){return this._parsePointOptions(this._preparePointOptions(),this._options.label)},_getOptionsForPoint:function(){return this._options.point},_parsePointStyle:function(t,e,i,r){var n=t.border||{},a=void 0!==t.size?t.size:r;return{fill:t.color||e,stroke:n.color||i,"stroke-width":n.visible?n.width:0,r:a/2+(n.visible&&0!==a&&~~(n.width/2)||0)}},_createPointStyles:function(t){var e=t.color||this._options.mainSeriesColor,i=this._options.containerBackgroundColor,r=this._parsePointStyle(t,e,e);return r.visibility=t.visible?"visible":"hidden",{normal:r,hover:this._parsePointStyle(t.hoverStyle,i,e,t.size),selection:this._parsePointStyle(t.selectionStyle,i,e,t.size)}},_checkData:function(t,e,i){return i=i||{value:this.getValueFields()[0]},i.argument=this.getArgumentField(),E(t,i,e||{})&&t.value===t.value},getArgumentRangeInitialValue(){var t,e,i=this.getPoints();if(this.useAggregation()&&i.length)return{min:null===(t=i[0].aggregationInfo)||void 0===t?void 0:t.intervalStart,max:null===(e=i[i.length-1].aggregationInfo)||void 0===e?void 0:e.intervalEnd}},getValueRangeInitialValue:function(){},_getRangeData:function(){return a["a"].getRangeData(this)},_getPointDataSelector:function(){var t,e,i=this.getValueFields()[0],r=this.getArgumentField(),n=this.getTagField(),a=this.areErrorBarsVisible();if(a){var s=this._options.valueErrorBar;t=s.lowValueField||f,e=s.highValueField||p}return s=>{var o={value:this._processEmptyValue(s[i]),argument:s[r],tag:s[n],data:s};return a&&(o.lowError=s[t],o.highError=s[e]),o}},_errorBarsEnabled:function(){return this.valueAxisType!==w&&this.valueAxisType!==k&&this.valueType!==O},_drawPoint:function(t){var e=t.point;e.isInVisibleArea()?(e.clearVisibility(),e.draw(this._renderer,t.groups,t.hasAnimation,t.firstDrawing),this._drawnPoints.push(e)):e.setInvisibility()},_animateComplete:function(){var t={duration:this._defaultDuration};this._labelsGroup&&this._labelsGroup.animate({opacity:1},t),this._errorBarGroup&&this._errorBarGroup.animate({opacity:this._options.valueErrorBar.opacity||1},t)},_animate:function(){var t=this,e=t._drawnPoints.length-1;Object(n["a"])(t._drawnPoints||[],(function(i,r){r.animate(i===e?function(){t._animateComplete()}:void 0,{translateX:r.x,translateY:r.y})}))},_getIntervalCenter(t,e){var i=this.getArgumentAxis(),r=i.getOptions();return i.aggregatedPointBetweenTicks()?t:"discrete"!==r.type?i.getVisualRangeCenter({minVisible:t,maxVisible:e},!0):t},_defaultAggregator:"avg",_aggregators:{avg(t,e){var{data:i,intervalStart:r,intervalEnd:n}=t;if(i.length){var a=e.getValueFields()[0],o=i.reduce((t,e)=>{var i=e[a];return Object(s["d"])(i)?(t[0]+=i,t[1]++):null===i&&t[2]++,t},[0,0,0]);return M({[a]:o[2]===i.length?null:o[0]/o[1],[e.getArgumentField()]:e._getIntervalCenter(r,n)},i,e)}},sum(t,e){var{intervalStart:i,intervalEnd:r,data:n}=t;if(n.length){var a=e.getValueFields()[0],s=n.reduce((t,e)=>{var i=e[a];return void 0!==i&&(t[0]+=i),null===i?t[1]++:void 0===i&&t[2]++,t},[0,0,0]),o=s[0];if(s[1]===n.length&&(o=null),s[2]!==n.length)return B({[a]:o,[e.getArgumentField()]:e._getIntervalCenter(i,r)},n,e)}},count(t,e){var{data:i,intervalStart:r,intervalEnd:n}=t,a=e.getValueFields()[0];return{[e.getArgumentField()]:e._getIntervalCenter(r,n),[a]:i.filter(t=>void 0!==t[a]).length}},min:j((t,e)=>t<e),max:j((t,e)=>t>e)},_endUpdateData:function(){delete this._predefinedPointOptions},getArgumentField:function(){return this._options.argumentField||"arg"},getValueFields:function(){var t,e,i=this._options,r=i.valueErrorBar,n=[i.valueField||"val"];return r&&(t=r.lowValueField,e=r.highValueField,Object(s["o"])(t)&&n.push(t),Object(s["o"])(e)&&n.push(e)),n},_calculateErrorBars:function(t){if(this.areErrorBarsVisible()){var e,i,r,a,l,h=this._options,u=h.valueErrorBar,g=Object(o["y"])(u.type),d=parseFloat(u.value),_=this.getValueFields()[0],w=u.lowValueField||f,k=u.highValueField||p,O=function(t,i){e=i.value,i.lowError=e-d,i.highError=e+d};switch(g){case x:l=O;break;case y:l=function(t,i){e=i.value;var r=e*d/100;i.lowError=e-r,i.highError=e+r};break;case V:l=function(t,e){e.lowError=e.data[w],e.highError=e.data[k]};break;default:switch(i=Object(o["u"])(t,(function(t){return Object(s["d"])(t.data[_])?t.data[_]:null})),r=i.length,d=d||1,g){case b:d=S(i,A(i)/r)*d,l=O;break;case m:a=A(i)/r,d=c(S(i,a))*d,l=function(t,e){e.lowError=a-d,e.highError=a+d};break;case v:d=c(S(i,A(i)/r)/r)*d,l=O}}l&&Object(n["a"])(t,l)}},_patchMarginOptions:function(t){var e=this._getCreatingPointOptions(),i=e.styles,r=[i.normal,i.hover,i.selection].reduce((function(t,e){return g(t,2*e.r+e["stroke-width"])}),0);return t.size=e.visible?r:0,t.sizePointNormalState=e.visible?2*i.normal.r+i.normal["stroke-width"]:2,t},usePointsToDefineAutoHiding:()=>!0};P=Object(r["a"])({},T,{drawTrackers:function(){var t,e,i=this,r=i._segments||[],a=i._options.rotated;i.isVisible()&&(r.length&&(t=i._trackers=i._trackers||[],e=i._trackersGroup=(i._trackersGroup||i._renderer.g().attr({fill:"gray",opacity:.001,stroke:"gray",class:"dxc-trackers"})).attr({"clip-path":this._paneClipRectID||null}).append(i._group),Object(n["a"])(r,(function(r,n){t[r]?i._updateTrackerElement(n,t[r]):t[r]=i._drawTrackerElement(n).data({"chart-data-series":i}).append(e)}))),i._trackersTranslator=i.groupPointsByCoords(a))},_checkAxisVisibleAreaCoord(t,e){var i=t?this.getArgumentAxis():this.getValueAxis(),r=i.getVisibleArea();return Object(s["d"])(e)&&r[0]<=e&&r[1]>=e},checkSeriesViewportCoord(t,e){return this.getPoints().length&&this.isVisible()},getSeriesPairCoord(t,e){for(var i=null,r=!e&&!this._options.rotated||e&&this._options.rotated,n=r?"vy":"vx",a=r?"vx":"vy",s=this.getVisiblePoints(),o=0;o<s.length;o++){var l=s[o],h=l[n]===t?l[a]:void 0;if(this._checkAxisVisibleAreaCoord(!e,h)){i=h;break}}return i},_getNearestPoints:(t,e)=>[t,e],_getBezierPoints:()=>[],_getNearestPointsByCoord(t,e){var i=this,r=i.getOptions().rotated,n=!e&&!r||e&&r,a=n?"vy":"vx",s=i.getPoints(),o=i._getBezierPoints(),l=[];return s.length>1?s.forEach((e,r)=>{var n=s[r+1];n&&(e[a]<=t&&n[a]>=t||e[a]>=t&&n[a]<=t)&&l.push(i._getNearestPoints(e,n,o))}):l.push([s[0],s[0]]),l},getNeighborPoint:function(t,e){var i,r=this._options.rotated?e:t,a=r,s=this._trackersTranslator,o=null,l=this._options.rotated?t:e,h=this._options.rotated?"vx":"vy";if(this.isVisible()&&s){o=s[r];do{o=s[a]||s[r],r--,a++}while((r>=0||a<s.length)&&!o);Array.isArray(o)&&(i=u(o[0][h]-l),Object(n["a"])(o,(function(t,e){var r=u(e[h]-l);i>=r&&(i=r,o=e)})))}return o},_applyVisibleArea:function(){var t=this._options.rotated,e=(t?this.getValueAxis():this.getArgumentAxis()).getVisibleArea(),i=(t?this.getArgumentAxis():this.getValueAxis()).getVisibleArea();this._visibleArea={minX:e[0],maxX:e[1],minY:i[0],maxY:i[1]}},getPointCenterByArg(t){var e=this.getPointsByArg(t)[0];return e?e.getCenterCoord():void 0}}),C=Object(r["a"])({},T,{drawTrackers:function(){P.drawTrackers.call(this);var t,e=this._trackersTranslator;this.isVisible()&&(Object(n["a"])(e,(function(e,i){if(i)return t=e,!1})),e[t+360]=e[t])},getNeighborPoint:function(t,e){var i=Object(o["f"])(this.getValueAxis().getCenter(),t,e);return P.getNeighborPoint.call(this,i.phi,i.r)},_applyVisibleArea:function(){var t=this.getValueAxis().getCanvas();this._visibleArea={minX:t.left,maxX:t.width-t.right,minY:t.top,maxY:t.height-t.bottom}},getSeriesPairCoord(t,e){for(var i=null,r=e?"argument":"radius",n=this.getVisiblePoints(),a=0;a<n.length;a++){var o=n[a],l=Object(s["d"])(o[r])&&Object(s["d"])(t[r])&&o[r].valueOf()===t[r].valueOf()?{x:o.x,y:o.y}:void 0;if(Object(s["d"])(l)){i=l;break}}return i}})},c1fc:function(t,e,i){"use strict";i.d(e,"a",(function(){return _})),i.d(e,"b",(function(){return p}));var r=i("6bc7"),n=i("b9af"),a=i("b144"),s=i("057e"),o=i("d97f"),l=i("7872"),h=i("bf7a"),u=i("0aaf"),c=s["a"].area,g=o["a"].bar,d={_calculateErrorBars:r["n"],_updateOptions:function(t){this._stackName="axis_"+(t.axis||"default")}},_={},p={};_.stackedline=Object(n["a"])({},l["a"].line,d,{}),_.stackedspline=Object(n["a"])({},l["a"].spline,d,{}),_.fullstackedline=Object(n["a"])({},l["a"].line,d,{getValueRangeInitialValue:s["a"].area.getValueRangeInitialValue}),_.fullstackedspline=Object(n["a"])({},l["a"].spline,d,{getValueRangeInitialValue:s["a"].area.getValueRangeInitialValue});var f=_.stackedbar=Object(n["a"])({},g,d,{_updateOptions:function(t){d._updateOptions.call(this,t),this._stackName=this._stackName+"_stack_"+(t.stack||"default")}});function b(t,e,i,r){return t=Object(u["a"])(t),t.value=e,t.minValue=i,t.translate(),t.argument=t.argument+r,t}function m(t){var e,i,r=0,n=[],a=t.length;while(r<a)e=t[r],i=[e],e.leftHole&&(i=[b(e,e.leftHole,e.minLeftHole,"left"),e]),e.rightHole&&i.push(b(e,e.rightHole,e.minRightHole,"right")),n.push(i),r++;return[].concat.apply([],n)}function v(t,e){var i;while(!i&&t)i=t._segmentByArg&&t._segmentByArg[e],t=t._prevSeries;return i}_.fullstackedbar=Object(n["a"])({},g,d,{_updateOptions:f._updateOptions}),_.stackedarea=Object(n["a"])({},c,d,{_prepareSegment:function(t,e){return c._prepareSegment.call(this,m(t),e)},_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup).toBackground()}}),_.stackedsplinearea=Object(n["a"])({},s["a"].splinearea,d,{_prepareSegment:function(t,e){var i,r=this;if(t=m(t),this._prevSeries&&1!==t.length){var n=l["a"].spline._calculateBezierPoints(t,e),o=Object(h["u"])(t,(function(t){var e=t.getCoords(!0);return e.argument=t.argument,e})),u=[],c={},g=0,d=r._prevSeries._segments.length;while(g<d)u=u.concat(r._prevSeries._segments[g].line),g++;Object(a["a"])(u,(function(t,e){if(null!==e.argument){var i=e.argument.valueOf();c[i]?c[i].push(e):c[i]=[e]}})),r._prevSeries._segmentByArg=c,o=l["a"].spline._calculateBezierPoints(o,e),Object(a["a"])(o,(function(t,e){var i,n=e.argument.valueOf();t%3===0&&(i=c[n]||v(r._prevSeries,n),i&&(o[t-1]&&i[0]&&(o[t-1]=i[0]),o[t+1]&&(o[t+1]=i[2]||e)))})),i={line:n,area:n.concat(o.reverse())},r._areaPointsToSplineAreaPoints(i.area)}else i=s["a"].splinearea._prepareSegment.call(this,t,e);return i},_appendInGroup:_.stackedarea._appendInGroup}),_.fullstackedarea=Object(n["a"])({},c,d,{_prepareSegment:_.stackedarea._prepareSegment,_appendInGroup:_.stackedarea._appendInGroup}),_.fullstackedsplinearea=Object(n["a"])({},s["a"].splinearea,d,{_prepareSegment:_.stackedsplinearea._prepareSegment,_appendInGroup:_.stackedarea._appendInGroup}),p.stackedbar=Object(n["a"])({},o["b"].bar,d,{})},d21d:function(t,e,i){"use strict";var r=i("bf7a"),n=i("bf95"),a=i("6bc7"),s="discrete",{abs:o,floor:l,ceil:h,min:u}=Math;function c(t,e,i){t.min=t.min<e?t.min:e,t.max=t.max>i?t.max:i}function g(t,e){if("logarithmic"!==t)return null;var i=e.getOptions().logarithmBase;return t=>{var e=Object(r["o"])(o(t),i),n=e<0?l:h;return n(e)}}function d(t,e,i){var r=c;return t===s?r=function(t,e,i){e!==i&&t.categories.push(i),t.categories.push(e)}:e&&(r=function(t,i){var r=e.calculateInterval(i,t.prevValue),n=t.interval;t.interval=(n<r?n:r)||n,t.prevValue=i,c(t,i,i)}),i?(t,e,n)=>{var a=[];r(t,e,n),0!==e&&a.push(i(e)),0!==n&&a.push(i(n));var s=u.apply(null,a);t.linearThreshold=t.linearThreshold<s?t.linearThreshold:s}:r}function _(t,e,i){var r={axisType:t,dataType:e};return t===s?r.categories=[]:(r.min=Object(n["j"])(i)?i.min:i,r.max=Object(n["j"])(i)?i.max:i),r}function p(t){return t.categories&&(t.categories=Object(r["J"])(t.categories)),t}function f(t,e,i,r){if(e&&Object(n["d"])(e.value)){var a=t.value,s=e.value,o=t.argument,l=e.argument,h=(i-o)*(s-a)/(l-o)+a.valueOf();return"datetime"===r.dataType?new Date(h):h}return t.value}function b(t,e,i,r,n){var a=f(i,r,n,e);t(e,a,a)}function m(t){return t.type.toLowerCase().indexOf("line")>=0||t.type.toLowerCase().indexOf("area")>=0}function v(t){var e=d(t.valueAxisType),i=t.getArgumentAxis(),s=i&&t.getArgumentAxis().visualRange()||{},o=m(t)?b:a["n"];if(i&&i.getMarginOptions().checkInterval){var l=t.getArgumentAxis().getTranslator().getBusinessRange(),h=Object(r["i"])(l,!1),u=l.interval;isFinite(u)&&Object(n["d"])(s.startValue)&&Object(n["d"])(s.endValue)&&(s.startValue=h(s.startValue,u,-1),s.endValue=h(s.endValue,u))}var c=y(s);return function(t,i,r,a){var l=i.argument;return i.hasValue()?(c(l)?(t.startCalc||(t.startCalc=!0,o(e,t,i,a[r-1],s.startValue)),e(t,i.getMinValue(),i.getMaxValue())):!s.categories&&Object(n["d"])(s.startValue)&&l>s.startValue&&(t.startCalc||o(e,t,i,a[r-1],s.startValue),t.endCalc=!0,o(e,t,i,a[r-1],s.endValue)),t):t}}function y(t){if(t.categories){var e=t.categories.reduce((t,e)=>(t[e.valueOf()]=!0,t),{});return t=>Object(n["d"])(t)&&e[t.valueOf()]}return Object(n["d"])(t.startValue)||Object(n["d"])(t.endValue)?Object(n["d"])(t.endValue)?Object(n["d"])(t.startValue)?e=>e>=t.startValue&&e<=t.endValue:e=>e<=t.endValue:e=>e>=t.startValue:()=>!0}e["a"]={getViewPortFilter:y,getArgumentRange:function(t){var e=t._data||[],i={};if(e.length)if(t.argumentAxisType===s)i={categories:e.map(t=>t.argument)};else{var r;if(e.length>1){var n=t.getArgumentAxis().calculateInterval(e[0].argument,e[1].argument),a=t.getArgumentAxis().calculateInterval(e[e.length-1].argument,e[e.length-2].argument);r=u(n,a)}i={min:e[0].argument,max:e[e.length-1].argument,interval:r}}return p(i)},getRangeData:function(t){var e=t.getPoints(),i=t.useAggregation(),r=t.getArgumentAxis(),a=d(t.argumentAxisType,e.length>1&&r,g(t.argumentAxisType,r)),o=d(t.valueAxisType,null,g(t.valueAxisType,t.getValueAxis())),l=v(t),h=e.reduce((function(t,e,i,r){var n=e.argument;return e.isArgumentCorrect()?(a(t.arg,n,n),e.hasValue()&&(o(t.val,e.getMinValue(),e.getMaxValue()),l(t.viewport,e,i,r)),t):t}),{arg:_(t.argumentAxisType,t.argumentType,null!==r&&void 0!==r&&r.aggregatedPointBetweenTicks()?void 0:t.getArgumentRangeInitialValue()),val:_(t.valueAxisType,t.valueType,e.length?t.getValueRangeInitialValue():void 0),viewport:_(t.valueAxisType,t.valueType,e.length?t.getValueRangeInitialValue():void 0)});if(i){var u=this.getArgumentRange(t);if(t.argumentAxisType===s)h.arg=u;else{var c=r.getViewport();(Object(n["d"])(c.startValue)||Object(n["d"])(c.length))&&a(h.arg,u.min,u.min),(Object(n["d"])(c.endValue)||Object(n["d"])(c.length)&&Object(n["d"])(c.startValue))&&a(h.arg,u.max,u.max)}}return p(h.arg),p(h.val),h},getViewport:function(t){var e,i=t.getPoints(),r=v(t);return e=_(t.valueAxisType,t.valueType,i.length?t.getValueRangeInitialValue():void 0),i.some((function(t,n){return r(e,t,n,i),e.endCalc})),e},getPointsInViewPort:function(t){var e=y(t.getArgumentAxis().visualRange()||{}),i=t.getValueAxis().visualRange()||{},r=y(i),n=t.getPoints(),s=function(t,e,n){var a=e.getMinValue(),s=e.getMaxValue(),o=r(a),l=r(s);o&&t.push(a),s!==a&&l&&t.push(s),!n||o||l||(t.length?t.push(i.endValue):t.push(i.startValue))},o=m(t)?function(t,i,r){var n=i[r],a=i[r-1],o=i[r+1];o&&e(o.argument)&&s(t[1],n,!0),a&&e(a.argument)&&s(t[1],n,!0)}:a["n"];return n.reduce((function(t,i,r){return e(i.argument)?s(t[0],i):o(t,n,r),t}),[[],[]])}}}}]);