(self["webpackChunkfront"]=self["webpackChunkfront"]||[]).push([[747,947],{90520:function(t,e,i){"use strict"; /*! * devextreme-vue * Version: 22.2.3 * Build date: Mon Dec 05 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-vue */var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.DxTooltipBorder=e.DxTooltip=e.DxTitle=e.DxSubtitle=e.DxSmallValuesGrouping=e.DxSize=e.DxShadow=e.DxSeriesTemplate=e.DxSeriesBorder=e.DxSeries=e.DxSelectionStyle=e.DxPieChartTitleSubtitle=e.DxPieChartTitle=e.DxMargin=e.DxLoadingIndicator=e.DxLegendTitleSubtitle=e.DxLegendTitle=e.DxLegend=e.DxLabel=e.DxImage=e.DxHoverStyle=e.DxHatching=e.DxFormat=e.DxFont=e.DxExport=e.DxConnector=e.DxCommonSeriesSettings=e.DxCommonAnnotationSettings=e.DxBorder=e.DxArgumentFormat=e.DxAnnotationBorder=e.DxAnnotation=e.DxAnimation=e.DxAdaptiveLayout=e.DxPieChart=void 0;var n=r(i(22710)),o=i(45536),a=i(45536),s=o.createComponent({props:{adaptiveLayout:Object,animation:[Boolean,Object],annotations:Array,centerTemplate:{},commonAnnotationSettings:Object,commonSeriesSettings:{},customizeAnnotation:Function,customizeLabel:Function,customizePoint:Function,dataSource:{},diameter:Number,disabled:Boolean,elementAttr:Object,export:Object,innerRadius:Number,legend:Object,loadingIndicator:Object,margin:Object,minDiameter:Number,onDisposing:Function,onDone:Function,onDrawn:Function,onExported:Function,onExporting:Function,onFileSaving:Function,onIncidentOccurred:Function,onInitialized:Function,onLegendClick:Function,onOptionChanged:Function,onPointClick:Function,onPointHoverChanged:Function,onPointSelectionChanged:Function,onTooltipHidden:Function,onTooltipShown:Function,palette:[Array,String],paletteExtensionMode:String,pathModified:Boolean,pointSelectionMode:String,redrawOnResize:Boolean,resolveLabelOverlapping:String,rtlEnabled:Boolean,segmentsDirection:String,series:[Array,Object],seriesTemplate:Object,size:Object,sizeGroup:String,startAngle:Number,theme:String,title:[Object,String],tooltip:Object,type:String},emits:{"update:isActive":null,"update:hoveredElement":null,"update:adaptiveLayout":null,"update:animation":null,"update:annotations":null,"update:centerTemplate":null,"update:commonAnnotationSettings":null,"update:commonSeriesSettings":null,"update:customizeAnnotation":null,"update:customizeLabel":null,"update:customizePoint":null,"update:dataSource":null,"update:diameter":null,"update:disabled":null,"update:elementAttr":null,"update:export":null,"update:innerRadius":null,"update:legend":null,"update:loadingIndicator":null,"update:margin":null,"update:minDiameter":null,"update:onDisposing":null,"update:onDone":null,"update:onDrawn":null,"update:onExported":null,"update:onExporting":null,"update:onFileSaving":null,"update:onIncidentOccurred":null,"update:onInitialized":null,"update:onLegendClick":null,"update:onOptionChanged":null,"update:onPointClick":null,"update:onPointHoverChanged":null,"update:onPointSelectionChanged":null,"update:onTooltipHidden":null,"update:onTooltipShown":null,"update:palette":null,"update:paletteExtensionMode":null,"update:pathModified":null,"update:pointSelectionMode":null,"update:redrawOnResize":null,"update:resolveLabelOverlapping":null,"update:rtlEnabled":null,"update:segmentsDirection":null,"update:series":null,"update:seriesTemplate":null,"update:size":null,"update:sizeGroup":null,"update:startAngle":null,"update:theme":null,"update:title":null,"update:tooltip":null,"update:type":null},computed:{instance:function(){return this.$_instance}},beforeCreate:function(){this.$_WidgetClass=n.default,this.$_hasAsyncTemplate=!0,this.$_expectedChildren={adaptiveLayout:{isCollectionItem:!1,optionName:"adaptiveLayout"},animation:{isCollectionItem:!1,optionName:"animation"},annotation:{isCollectionItem:!0,optionName:"annotations"},commonAnnotationSettings:{isCollectionItem:!1,optionName:"commonAnnotationSettings"},commonSeriesSettings:{isCollectionItem:!1,optionName:"commonSeriesSettings"},export:{isCollectionItem:!1,optionName:"export"},legend:{isCollectionItem:!1,optionName:"legend"},loadingIndicator:{isCollectionItem:!1,optionName:"loadingIndicator"},margin:{isCollectionItem:!1,optionName:"margin"},pieChartTitle:{isCollectionItem:!1,optionName:"title"},series:{isCollectionItem:!0,optionName:"series"},seriesTemplate:{isCollectionItem:!1,optionName:"seriesTemplate"},size:{isCollectionItem:!1,optionName:"size"},title:{isCollectionItem:!1,optionName:"title"},tooltip:{isCollectionItem:!1,optionName:"tooltip"}}}});e.DxPieChart=s;var l=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:height":null,"update:keepLabels":null,"update:width":null},props:{height:Number,keepLabels:Boolean,width:Number}});e.DxAdaptiveLayout=l,l.$_optionName="adaptiveLayout";var u=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:duration":null,"update:easing":null,"update:enabled":null,"update:maxPointCountSupported":null},props:{duration:Number,easing:String,enabled:Boolean,maxPointCountSupported:Number}});e.DxAnimation=u,u.$_optionName="animation";var h=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:allowDragging":null,"update:argument":null,"update:arrowLength":null,"update:arrowWidth":null,"update:border":null,"update:color":null,"update:customizeTooltip":null,"update:data":null,"update:description":null,"update:font":null,"update:height":null,"update:image":null,"update:location":null,"update:name":null,"update:offsetX":null,"update:offsetY":null,"update:opacity":null,"update:paddingLeftRight":null,"update:paddingTopBottom":null,"update:series":null,"update:shadow":null,"update:template":null,"update:text":null,"update:textOverflow":null,"update:tooltipEnabled":null,"update:tooltipTemplate":null,"update:type":null,"update:width":null,"update:wordWrap":null,"update:x":null,"update:y":null},props:{allowDragging:Boolean,argument:{},arrowLength:Number,arrowWidth:Number,border:Object,color:String,customizeTooltip:Function,data:{},description:String,font:Object,height:Number,image:[Object,String],location:String,name:String,offsetX:Number,offsetY:Number,opacity:Number,paddingLeftRight:Number,paddingTopBottom:Number,series:String,shadow:Object,template:{},text:String,textOverflow:String,tooltipEnabled:Boolean,tooltipTemplate:{},type:String,width:Number,wordWrap:String,x:Number,y:Number}});e.DxAnnotation=h,h.$_optionName="annotations",h.$_isCollectionItem=!0,h.$_expectedChildren={annotationBorder:{isCollectionItem:!1,optionName:"border"},border:{isCollectionItem:!1,optionName:"border"},font:{isCollectionItem:!1,optionName:"font"},image:{isCollectionItem:!1,optionName:"image"},shadow:{isCollectionItem:!1,optionName:"shadow"}};var c=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:color":null,"update:cornerRadius":null,"update:dashStyle":null,"update:opacity":null,"update:visible":null,"update:width":null},props:{color:String,cornerRadius:Number,dashStyle:String,opacity:Number,visible:Boolean,width:Number}});e.DxAnnotationBorder=c,c.$_optionName="border";var d=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:currency":null,"update:formatter":null,"update:parser":null,"update:precision":null,"update:type":null,"update:useCurrencyAccountingStyle":null},props:{currency:String,formatter:Function,parser:Function,precision:Number,type:String,useCurrencyAccountingStyle:Boolean}});e.DxArgumentFormat=d,d.$_optionName="argumentFormat";var p=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:color":null,"update:cornerRadius":null,"update:dashStyle":null,"update:opacity":null,"update:visible":null,"update:width":null},props:{color:String,cornerRadius:Number,dashStyle:String,opacity:Number,visible:Boolean,width:Number}});e.DxBorder=p,p.$_optionName="border";var g=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:allowDragging":null,"update:argument":null,"update:arrowLength":null,"update:arrowWidth":null,"update:border":null,"update:color":null,"update:customizeTooltip":null,"update:data":null,"update:description":null,"update:font":null,"update:height":null,"update:image":null,"update:location":null,"update:offsetX":null,"update:offsetY":null,"update:opacity":null,"update:paddingLeftRight":null,"update:paddingTopBottom":null,"update:series":null,"update:shadow":null,"update:template":null,"update:text":null,"update:textOverflow":null,"update:tooltipEnabled":null,"update:tooltipTemplate":null,"update:type":null,"update:width":null,"update:wordWrap":null,"update:x":null,"update:y":null},props:{allowDragging:Boolean,argument:{},arrowLength:Number,arrowWidth:Number,border:Object,color:String,customizeTooltip:Function,data:{},description:String,font:Object,height:Number,image:[Object,String],location:String,offsetX:Number,offsetY:Number,opacity:Number,paddingLeftRight:Number,paddingTopBottom:Number,series:String,shadow:Object,template:{},text:String,textOverflow:String,tooltipEnabled:Boolean,tooltipTemplate:{},type:String,width:Number,wordWrap:String,x:Number,y:Number}});e.DxCommonAnnotationSettings=g,g.$_optionName="commonAnnotationSettings";var f=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:argumentField":null,"update:argumentType":null,"update:border":null,"update:color":null,"update:hoverMode":null,"update:hoverStyle":null,"update:label":null,"update:maxLabelCount":null,"update:minSegmentSize":null,"update:selectionMode":null,"update:selectionStyle":null,"update:smallValuesGrouping":null,"update:tagField":null,"update:valueField":null},props:{argumentField:String,argumentType:String,border:Object,color:String,hoverMode:String,hoverStyle:Object,label:Object,maxLabelCount:Number,minSegmentSize:Number,selectionMode:String,selectionStyle:Object,smallValuesGrouping:Object,tagField:String,valueField:String}});e.DxCommonSeriesSettings=f,f.$_optionName="commonSeriesSettings",f.$_expectedChildren={border:{isCollectionItem:!1,optionName:"border"},hoverStyle:{isCollectionItem:!1,optionName:"hoverStyle"},label:{isCollectionItem:!1,optionName:"label"},selectionStyle:{isCollectionItem:!1,optionName:"selectionStyle"},seriesBorder:{isCollectionItem:!1,optionName:"border"},smallValuesGrouping:{isCollectionItem:!1,optionName:"smallValuesGrouping"}};var m=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:color":null,"update:visible":null,"update:width":null},props:{color:String,visible:Boolean,width:Number}});e.DxConnector=m,m.$_optionName="connector";var _=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:backgroundColor":null,"update:enabled":null,"update:fileName":null,"update:formats":null,"update:margin":null,"update:printingEnabled":null,"update:svgToCanvas":null},props:{backgroundColor:String,enabled:Boolean,fileName:String,formats:Array,margin:Number,printingEnabled:Boolean,svgToCanvas:Function}});e.DxExport=_,_.$_optionName="export";var v=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:color":null,"update:family":null,"update:opacity":null,"update:size":null,"update:weight":null},props:{color:String,family:String,opacity:Number,size:[Number,String],weight:Number}});e.DxFont=v,v.$_optionName="font";var b=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:currency":null,"update:formatter":null,"update:parser":null,"update:precision":null,"update:type":null,"update:useCurrencyAccountingStyle":null},props:{currency:String,formatter:Function,parser:Function,precision:Number,type:String,useCurrencyAccountingStyle:Boolean}});e.DxFormat=b,b.$_optionName="format";var y=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:direction":null,"update:opacity":null,"update:step":null,"update:width":null},props:{direction:String,opacity:Number,step:Number,width:Number}});e.DxHatching=y,y.$_optionName="hatching";var x=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:border":null,"update:color":null,"update:hatching":null},props:{border:Object,color:String,hatching:Object}});e.DxHoverStyle=x,x.$_optionName="hoverStyle",x.$_expectedChildren={border:{isCollectionItem:!1,optionName:"border"},hatching:{isCollectionItem:!1,optionName:"hatching"},seriesBorder:{isCollectionItem:!1,optionName:"border"}};var w=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:height":null,"update:url":null,"update:width":null},props:{height:Number,url:String,width:Number}});e.DxImage=w,w.$_optionName="image";var C=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:argumentFormat":null,"update:backgroundColor":null,"update:border":null,"update:connector":null,"update:customizeText":null,"update:displayFormat":null,"update:font":null,"update:format":null,"update:position":null,"update:radialOffset":null,"update:rotationAngle":null,"update:textOverflow":null,"update:visible":null,"update:wordWrap":null},props:{argumentFormat:[Object,Function,String],backgroundColor:String,border:Object,connector:Object,customizeText:Function,displayFormat:String,font:Object,format:[Object,Function,String],position:String,radialOffset:Number,rotationAngle:Number,textOverflow:String,visible:Boolean,wordWrap:String}});e.DxLabel=C,C.$_optionName="label",C.$_expectedChildren={argumentFormat:{isCollectionItem:!1,optionName:"argumentFormat"},border:{isCollectionItem:!1,optionName:"border"},connector:{isCollectionItem:!1,optionName:"connector"},font:{isCollectionItem:!1,optionName:"font"},format:{isCollectionItem:!1,optionName:"format"},seriesBorder:{isCollectionItem:!1,optionName:"border"}};var S=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:backgroundColor":null,"update:border":null,"update:columnCount":null,"update:columnItemSpacing":null,"update:customizeHint":null,"update:customizeItems":null,"update:customizeText":null,"update:font":null,"update:horizontalAlignment":null,"update:hoverMode":null,"update:itemsAlignment":null,"update:itemTextPosition":null,"update:margin":null,"update:markerSize":null,"update:markerTemplate":null,"update:orientation":null,"update:paddingLeftRight":null,"update:paddingTopBottom":null,"update:rowCount":null,"update:rowItemSpacing":null,"update:title":null,"update:verticalAlignment":null,"update:visible":null},props:{backgroundColor:String,border:Object,columnCount:Number,columnItemSpacing:Number,customizeHint:Function,customizeItems:Function,customizeText:Function,font:Object,horizontalAlignment:String,hoverMode:String,itemsAlignment:String,itemTextPosition:String,margin:[Number,Object],markerSize:Number,markerTemplate:{},orientation:String,paddingLeftRight:Number,paddingTopBottom:Number,rowCount:Number,rowItemSpacing:Number,title:[Object,String],verticalAlignment:String,visible:Boolean}});e.DxLegend=S,S.$_optionName="legend",S.$_expectedChildren={annotationBorder:{isCollectionItem:!1,optionName:"border"},border:{isCollectionItem:!1,optionName:"border"},font:{isCollectionItem:!1,optionName:"font"},legendTitle:{isCollectionItem:!1,optionName:"title"},margin:{isCollectionItem:!1,optionName:"margin"},title:{isCollectionItem:!1,optionName:"title"}};var k=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:font":null,"update:horizontalAlignment":null,"update:margin":null,"update:placeholderSize":null,"update:subtitle":null,"update:text":null,"update:verticalAlignment":null},props:{font:Object,horizontalAlignment:String,margin:Object,placeholderSize:Number,subtitle:[Object,String],text:String,verticalAlignment:String}});e.DxLegendTitle=k,k.$_optionName="title",k.$_expectedChildren={font:{isCollectionItem:!1,optionName:"font"},legendTitleSubtitle:{isCollectionItem:!1,optionName:"subtitle"},margin:{isCollectionItem:!1,optionName:"margin"},subtitle:{isCollectionItem:!1,optionName:"subtitle"}};var A=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:font":null,"update:offset":null,"update:text":null},props:{font:Object,offset:Number,text:String}});e.DxLegendTitleSubtitle=A,A.$_optionName="subtitle",A.$_expectedChildren={font:{isCollectionItem:!1,optionName:"font"}};var T=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:backgroundColor":null,"update:enabled":null,"update:font":null,"update:show":null,"update:text":null},props:{backgroundColor:String,enabled:Boolean,font:Object,show:Boolean,text:String}});e.DxLoadingIndicator=T,T.$_optionName="loadingIndicator",T.$_expectedChildren={font:{isCollectionItem:!1,optionName:"font"}};var E=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:bottom":null,"update:left":null,"update:right":null,"update:top":null},props:{bottom:Number,left:Number,right:Number,top:Number}});e.DxMargin=E,E.$_optionName="margin";var O=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:font":null,"update:horizontalAlignment":null,"update:margin":null,"update:placeholderSize":null,"update:subtitle":null,"update:text":null,"update:textOverflow":null,"update:verticalAlignment":null,"update:wordWrap":null},props:{font:Object,horizontalAlignment:String,margin:[Number,Object],placeholderSize:Number,subtitle:[Object,String],text:String,textOverflow:String,verticalAlignment:String,wordWrap:String}});e.DxPieChartTitle=O,O.$_optionName="title",O.$_expectedChildren={font:{isCollectionItem:!1,optionName:"font"},margin:{isCollectionItem:!1,optionName:"margin"},pieChartTitleSubtitle:{isCollectionItem:!1,optionName:"subtitle"},subtitle:{isCollectionItem:!1,optionName:"subtitle"}};var P=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:font":null,"update:offset":null,"update:text":null,"update:textOverflow":null,"update:wordWrap":null},props:{font:Object,offset:Number,text:String,textOverflow:String,wordWrap:String}});e.DxPieChartTitleSubtitle=P,P.$_optionName="subtitle",P.$_expectedChildren={font:{isCollectionItem:!1,optionName:"font"}};var I=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:border":null,"update:color":null,"update:hatching":null},props:{border:Object,color:String,hatching:Object}});e.DxSelectionStyle=I,I.$_optionName="selectionStyle",I.$_expectedChildren={border:{isCollectionItem:!1,optionName:"border"},hatching:{isCollectionItem:!1,optionName:"hatching"},seriesBorder:{isCollectionItem:!1,optionName:"border"}};var L=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:argumentField":null,"update:argumentType":null,"update:border":null,"update:color":null,"update:hoverMode":null,"update:hoverStyle":null,"update:label":null,"update:maxLabelCount":null,"update:minSegmentSize":null,"update:name":null,"update:selectionMode":null,"update:selectionStyle":null,"update:smallValuesGrouping":null,"update:tag":null,"update:tagField":null,"update:valueField":null},props:{argumentField:String,argumentType:String,border:Object,color:String,hoverMode:String,hoverStyle:Object,label:Object,maxLabelCount:Number,minSegmentSize:Number,name:String,selectionMode:String,selectionStyle:Object,smallValuesGrouping:Object,tag:{},tagField:String,valueField:String}});e.DxSeries=L,L.$_optionName="series",L.$_isCollectionItem=!0;var B=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:color":null,"update:dashStyle":null,"update:visible":null,"update:width":null},props:{color:String,dashStyle:String,visible:Boolean,width:Number}});e.DxSeriesBorder=B,B.$_optionName="border";var R=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:customizeSeries":null,"update:nameField":null},props:{customizeSeries:Function,nameField:String}});e.DxSeriesTemplate=R,R.$_optionName="seriesTemplate";var V=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:blur":null,"update:color":null,"update:offsetX":null,"update:offsetY":null,"update:opacity":null},props:{blur:Number,color:String,offsetX:Number,offsetY:Number,opacity:Number}});e.DxShadow=V,V.$_optionName="shadow";var D=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:height":null,"update:width":null},props:{height:Number,width:Number}});e.DxSize=D,D.$_optionName="size";var z=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:groupName":null,"update:mode":null,"update:threshold":null,"update:topCount":null},props:{groupName:String,mode:String,threshold:Number,topCount:Number}});e.DxSmallValuesGrouping=z,z.$_optionName="smallValuesGrouping";var M=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:font":null,"update:offset":null,"update:text":null,"update:textOverflow":null,"update:wordWrap":null},props:{font:Object,offset:Number,text:String,textOverflow:String,wordWrap:String}});e.DxSubtitle=M,M.$_optionName="subtitle";var F=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:font":null,"update:horizontalAlignment":null,"update:margin":null,"update:placeholderSize":null,"update:subtitle":null,"update:text":null,"update:textOverflow":null,"update:verticalAlignment":null,"update:wordWrap":null},props:{font:Object,horizontalAlignment:String,margin:Object,placeholderSize:Number,subtitle:[Object,String],text:String,textOverflow:String,verticalAlignment:String,wordWrap:String}});e.DxTitle=F,F.$_optionName="title";var N=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:argumentFormat":null,"update:arrowLength":null,"update:border":null,"update:color":null,"update:container":null,"update:contentTemplate":null,"update:cornerRadius":null,"update:customizeTooltip":null,"update:enabled":null,"update:font":null,"update:format":null,"update:interactive":null,"update:opacity":null,"update:paddingLeftRight":null,"update:paddingTopBottom":null,"update:shadow":null,"update:shared":null,"update:zIndex":null},props:{argumentFormat:[Object,Function,String],arrowLength:Number,border:Object,color:String,container:{},contentTemplate:{},cornerRadius:Number,customizeTooltip:Function,enabled:Boolean,font:Object,format:[Object,Function,String],interactive:Boolean,opacity:Number,paddingLeftRight:Number,paddingTopBottom:Number,shadow:Object,shared:Boolean,zIndex:Number}});e.DxTooltip=N,N.$_optionName="tooltip",N.$_expectedChildren={argumentFormat:{isCollectionItem:!1,optionName:"argumentFormat"},border:{isCollectionItem:!1,optionName:"border"},font:{isCollectionItem:!1,optionName:"font"},format:{isCollectionItem:!1,optionName:"format"},shadow:{isCollectionItem:!1,optionName:"shadow"},tooltipBorder:{isCollectionItem:!1,optionName:"border"}};var G=a.createConfigurationComponent({emits:{"update:isActive":null,"update:hoveredElement":null,"update:color":null,"update:dashStyle":null,"update:opacity":null,"update:visible":null,"update:width":null},props:{color:String,dashStyle:String,opacity:Number,visible:Boolean,width:Number}});e.DxTooltipBorder=G,G.$_optionName="border",e["default"]=s},22710:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return my}});var r={};i.r(r),i.d(r,{donut:function(){return gp},doughnut:function(){return pp},pie:function(){return dp}});var n={};i.r(n),i.d(n,{candlestick:function(){return vp},stock:function(){return _p}});var o={};i.r(o),i.d(o,{ChartTracker:function(){return af},PieTracker:function(){return sf}});var a={events:{mouseover:"mouseover",mouseout:"mouseout",mousemove:"mousemove",touchstart:"touchstart",touchmove:"touchmove",touchend:"touchend",mousedown:"mousedown",mouseup:"mouseup",click:"click",selectSeries:"selectseries",deselectSeries:"deselectseries",selectPoint:"selectpoint",deselectPoint:"deselectpoint",showPointTooltip:"showpointtooltip",hidePointTooltip:"hidepointtooltip"},states:{hover:"hover",normal:"normal",selection:"selection",normalMark:0,hoverMark:1,selectedMark:2,applyHover:"applyHover",applySelected:"applySelected",resetItem:"resetItem"},radialLabelIndent:30,pieLabelSpacing:10,pieSeriesSpacing:4},s=i(72264),l=i(50450),u=i(44099),h=i(63419),c=i(94381),d=i(14435),p={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},g=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10)]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*\.*\d+)\)$/,process:function(t){return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10),parseFloat(t[4])]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){var e=parseInt(t[1],10),i=parseInt(t[2],10),r=parseInt(t[3],10),n=x(e,i,r);return[n[0],n[1],n[2],1,[e,i,r]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){var e=parseInt(t[1],10),i=parseInt(t[2],10),r=parseInt(t[3],10),n=T(e,i,r);return[n[0],n[1],n[2],1,null,[e,i,r]]}}],f=Math.round;function m(t){var e;this.baseColor=t,t&&(e=String(t).toLowerCase().replace(/ /g,""),e=p[e]?"#"+p[e]:e,e=_(e)),e||(this.colorIsInvalid=!0),e=e||{},this.r=v(e[0]),this.g=v(e[1]),this.b=v(e[2]),this.a=v(e[3],1,1),e[4]?this.hsv={h:e[4][0],s:e[4][1],v:e[4][2]}:this.hsv=y(this.r,this.g,this.b),e[5]?this.hsl={h:e[5][0],s:e[5][1],l:e[5][2]}:this.hsl=C(this.r,this.g,this.b)}function _(t){if("transparent"===t)return[0,0,0,0];for(var e,i=0,r=g.length;ii?i:t}function b(t,e,i){return"#"+(16777216|t<<16|e<<8|i).toString(16).slice(1)}function y(t,e,i){var r,n,o=Math.max(t,e,i),a=Math.min(t,e,i),s=o-a,l=o;if(n=0===o?0:1-a/o,o===a)r=0;else switch(o){case t:r=(e-i)/s*60,e.5?u/(2-s):u/s,r=w(t,e,i,u),r/=6}return{h:f(360*r),s:f(100*n),l:f(100*l)}}function S(t,e){var i=e;return"r"===t&&(i=e+1/3),"b"===t&&(i=e-1/3),i}function k(t){return t<0&&(t+=1),t>1&&(t-=1),t}function A(t,e,i){return i=k(i),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function T(t,e,i){var r,n,o;if(t=E(t,360),e=E(e,100),i=E(i,100),0===e)r=n=o=i;else{var a=i<.5?i*(1+e):i+e-i*e,s=2*i-a;r=A(s,a,S("r",t)),n=A(s,a,S("g",t)),o=A(s,a,S("b",t))}return[f(255*r),f(255*n),f(255*o)]}function E(t,e){return t=Math.min(e,Math.max(0,parseFloat(t))),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function O(t,e,i){return e=e||0,i=i||255,!(t%1!==0||ti||"number"!==typeof t||isNaN(t))}m.prototype={constructor:m,highlight:function(t){return t=t||10,this.alter(t).toHex()},darken:function(t){return t=t||10,this.alter(-t).toHex()},alter:function(t){var e=new m;return e.r=v(this.r+t),e.g=v(this.g+t),e.b=v(this.b+t),e},blend:function(t,e){var i=t instanceof m?t:new m(t),r=new m;return r.r=v(f(this.r*(1-e)+i.r*e)),r.g=v(f(this.g*(1-e)+i.g*e)),r.b=v(f(this.b*(1-e)+i.b*e)),r},toHex:function(){return b(this.r,this.g,this.b)},getPureColor:function(){var t=x(this.hsv.h,100,100);return new m("rgb("+t.join(",")+")")},isValidHex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},isValidRGB:function(t,e,i){return!!(O(t)&&O(e)&&O(i))},isValidAlpha:function(t){return!(isNaN(t)||t<0||t>1||"number"!==typeof t)},colorIsInvalid:!1,fromHSL:function(t){var e=new m,i=T(t.h,t.s,t.l);return e.r=i[0],e.g=i[1],e.b=i[2],e}};var P=m,{PI:I,LN10:L,abs:B,log:R,floor:V,ceil:D,pow:z,sqrt:M,atan2:F}=Math,N=(Math.min,Math.max,Math.cos),G=Math.sin,H=Math.round,Z=(d.Z.dateToMilliseconds,1e10),$=I/180,X=(isNaN,Number),Y=NaN,j=function(t,e){return t?R(t)/R(e):Y},K=function(t,e){return z(e,t)},U=function(t){return(t%360+360)%360},W=function(t){return I*t/180},q=function(t){var e=W(t);return{cos:N(e),sin:G(e)}},J=function(t,e,i,r){var n=i-t,o=r-e;return M(o*o+n*n)};function Q(t,e){var i,r=0,n=t.length,o=[];while(r0?r:0;i=(0,l.$K)(i)?i+e-90:0;var o=q(i);return{x:H(t.x+n*o.cos),y:H(t.y+n*o.sin)}}var ut=function(t,e,i){var r=J(t.x,t.y,e,i),n=F(i-t.y,e-t.x);return{phi:H(U(180*n/I)),r:H(r)}},ht=function(t,e){var i,r,n,o=(0,l.mf)(t.customizeSeries)?t.customizeSeries:s.ZT,a=t.nameField,h={},c=[],d=0;for(e=e||[],r=e.length;d=i.x,n=(r?t.x:t.x+t.width)-i.x,o=t.y-i.y,a=o+e,s=H(M(n*n+o*o-a*a)),l=(r?+s:-s)||n;return{x:i.x+(r?l:l-t.width),y:t.y+e}};function pt(t,e){return"datetime"===t.dataType?function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return new Date(t.getTime()+i*e)}:"logarithmic"===t.axisType?function(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=gt(e,t.base)+r*i;return ft(n,t.base)}:function(t,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t+r*i;return e&&n*t<=0?0:n}}function gt(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;if(!i)return j(t,e);if(0===t)return 0;var n=j(B(t),e)-(r-1);return n<0?0:(0,c.zB)((0,c.Xx)(t)*n,Number(z(e,r-1).toFixed(B(r))))}function ft(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;if(!i)return K(t,e);if(0===t)return 0;var n=K(B(t)+(r-1),e);return n<0?0:(0,c.zB)((0,c.Xx)(t)*n,Number(z(e,r).toFixed(B(r))))}function mt(t,e,i){return e>=t.left&&e<=t.right&&i>=t.top&&i<=t.bottom}var _t=l.$K,vt=l.J_,bt=l.mf,yt="min",xt="max",wt="minVisible",Ct="maxVisible",St="base",kt="axisType";function At(t,e){return et}function Et(t,e,i,r){var n=_t(e);_t(t)?n&&r(t,e)&&i(e):n&&i(e)}var Ot=function(t){t&&(0,u.l)(this,t)},Pt=Ot;Pt.prototype={constructor:Pt,addRange:function(t){var e=this,i=e.categories,r=t.categories,n="discrete"===e[kt],o=function(i,r){Et(e[i],t[i],(function(t){e[i]=t}),r)},a=function(t,i,r){Et(e[t],e[i],(function(i){_t(e[t])&&(e[t]=i)}),r)},s=function(i){e[i]=e[i]||t[i]};return s("invert"),s("containsConstantLine"),s(kt),s("dataType"),s("isSpacedMargin"),"logarithmic"===e[kt]?s(St):e[St]=void 0,o(yt,At),o(xt,Tt),n?(s(wt),s(Ct)):(o(wt,At),o(Ct,Tt)),o("interval",At),n||(a(yt,wt,At),a(yt,Ct,At),a(xt,Ct,Tt),a(xt,wt,Tt)),e.categories=void 0===i?r:r?ct(i.concat(r)):i,"logarithmic"===e[kt]&&(s("allowNegatives"),o("linearThreshold",At)),e},isEmpty:function(){return(!_t(this[yt])||!_t(this[xt]))&&(!this.categories||0===this.categories.length)},correctValueZeroLevel:function(){var t=this;if(vt(t[xt])||vt(t[yt]))return t;function e(e,i){t[e]<0&&t[i]<0&&(t[i]=0),t[e]>0&&t[i]>0&&(t[e]=0)}return e(yt,xt),e(wt,Ct),t},sortCategories(t){if(!1!==t&&this.categories)if(Array.isArray(t)){var e=t.map((t=>t.valueOf())),i=this.categories.filter((t=>-1===e.indexOf(t.valueOf())));this.categories=t.concat(i)}else{var r=!bt(t);r&&"string"!==this.dataType?t=(t,e)=>t.valueOf()-e.valueOf():r&&(t=!1),t&&this.categories.sort(t)}}};var It,Lt=i(652),Bt=i(52376),Rt=i(78172),Vt=i(57678),Dt=i(18274),zt=i(71389),Mt=i(49784),Ft=Math.floor,Nt=Math.ceil,Gt=Array.isArray,Ht=50,Zt="material",$t={simpleSet:["#5f8b95","#ba4d51","#af8a53","#955f71","#859666","#7e688c"],indicatingSet:["#a3b97c","#e1b676","#ec7f83"],gradientSet:["#5f8b95","#ba4d51"],accentColor:"#ba4d51"},Xt={[Zt]:{simpleSet:["#1db2f5","#f5564a","#97c95c","#ffc720","#eb3573","#a63db8"],indicatingSet:["#97c95c","#ffc720","#f5564a"],gradientSet:["#1db2f5","#97c95c"],accentColor:"#1db2f5"},office:$t,"harmony light":{simpleSet:["#fcb65e","#679ec5","#ad79ce","#7abd5c","#e18e92","#b6d623","#b7abea","#85dbd5"],indicatingSet:["#b6d623","#fcb65e","#e18e92"],gradientSet:["#7abd5c","#fcb65e"],accentColor:"#679ec5"},"soft pastel":{simpleSet:["#60a69f","#78b6d9","#6682bb","#a37182","#eeba69","#90ba58","#456c68","#7565a4"],indicatingSet:["#90ba58","#eeba69","#a37182"],gradientSet:["#78b6d9","#eeba69"],accentColor:"#60a69f"},pastel:{simpleSet:["#bb7862","#70b3a1","#bb626a","#057d85","#ab394b","#dac599","#153459","#b1d2c6"],indicatingSet:["#70b3a1","#dac599","#bb626a"],gradientSet:["#bb7862","#70b3a1"],accentColor:"#bb7862"},bright:{simpleSet:["#70c92f","#f8ca00","#bd1550","#e97f02","#9d419c","#7e4452","#9ab57e","#36a3a6"],indicatingSet:["#70c92f","#f8ca00","#bd1550"],gradientSet:["#e97f02","#f8ca00"],accentColor:"#e97f02"},soft:{simpleSet:["#cbc87b","#9ab57e","#e55253","#7e4452","#e8c267","#565077","#6babac","#ad6082"],indicatingSet:["#9ab57e","#e8c267","#e55253"],gradientSet:["#9ab57e","#e8c267"],accentColor:"#565077"},ocean:{simpleSet:["#75c099","#acc371","#378a8a","#5fa26a","#064970","#38c5d2","#00a7c6","#6f84bb"],indicatingSet:["#c8e394","#7bc59d","#397c8b"],gradientSet:["#acc371","#38c5d2"],accentColor:"#378a8a"},vintage:{simpleSet:["#dea484","#efc59c","#cb715e","#eb9692","#a85c4c","#f2c0b5","#c96374","#dd956c"],indicatingSet:["#ffe5c6","#f4bb9d","#e57660"],gradientSet:["#efc59c","#cb715e"],accentColor:"#cb715e"},violet:{simpleSet:["#d1a1d1","#eeacc5","#7b5685","#7e7cad","#a13d73","#5b41ab","#e287e2","#689cc1"],indicatingSet:["#d8e2f6","#d0b2da","#d56a8a"],gradientSet:["#eeacc5","#7b5685"],accentColor:"#7b5685"},carmine:{simpleSet:["#fb7764","#73d47f","#fed85e","#d47683","#dde392","#757ab2"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#fb7764","#73d47f"],accentColor:"#f05b41"},"dark moon":{simpleSet:["#4ddac1","#f4c99a","#80dd9b","#f998b3","#4aaaa0","#a5aef1"],indicatingSet:["#59d8a4","#f0ad4e","#f9517e"],gradientSet:["#4ddac1","#f4c99a"],accentColor:"#3debd3"},"soft blue":{simpleSet:["#7ab8eb","#97da97","#facb86","#e78683","#839bda","#4db7be"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#7ab8eb","#97da97"],accentColor:"#7ab8eb"},"dark violet":{simpleSet:["#9c63ff","#64c064","#eead51","#d2504b","#4b6bbf","#2da7b0"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#9c63ff","#64c064"],accentColor:"#9c63ff"},"green mist":{simpleSet:["#3cbab2","#8ed962","#5b9d95","#efcc7c","#f1929f","#4d8dab"],indicatingSet:["#72d63c","#ffc852","#f74a5e"],gradientSet:["#3cbab2","#8ed962"],accentColor:"#3cbab2"}};function Yt(t){if(void 0===t)return It||Zt;t=tt(t),It=t in Xt?t:void 0}function jt(t,e){var i;e=e||{},t=t||(void 0===It?e.themeDefault:Yt());var r=e.type;return Gt(t)?t.slice(0):((0,l.HD)(t)&&(i=Xt[tt(t)]),i||(i=Xt[Yt()]),r?i[r].slice(0):i)}function Kt(t,e){return t=jt(t,{themeDefault:e}),t.accentColor||t[0]}function Ut(t){var e=0;this.next=function(){var i=t[e++];return e===t.length&&this.reset(),i},this.reset=function(){e=0}}function Wt(t,e){var i=e.useHighlight?Ht:0,r=new Ut([0,i,-i]),n=[];function o(){var e=r.next();n=e?te(t,e):t.slice(0)}return{getColor:function(e){var i=n[e%t.length];return e%t.length===t.length-1&&o(),i},generateColors:function(t){var i=[];t=t||e.count;for(var r=0;r1?function(t,e,i){var r=new P(t).hsl,n=r.l/100,o=i-1/i,a=n-.5*o,s=n+.5*o,l=(i-1)/2,u=e-l;return aMath.max(.8,n+.15*(1-n))&&(s=Math.max(.8,n+.15*(1-n))),u<0?n-=(a-n)*u/l:n+=u/l*(s-n),r.l=100*n,P.prototype.fromHSL(r).toHex()}(o,Ft(e/r),n):o},generateColors:function(t){var i=[];t=t||e.count;for(var r=0;r0&&(o+=1,s--),n=o>2?Math.floor(o/2):0,r.push(l+n),l+=o;return r.sort((function(t,e){return t-e}))}function o(t,e,i){e=(i+e)%i;for(var r=0,n=e;n<2*i;n+=1){var o=(i+n)%i;if(t[o])return[t[o],r];r++}}function a(r){if(r<=i)return t;var a=[],s=i-2,l=0,u=[];u=e.keepLastColorInEnd?n(r-2,s,1,[0,r-1]):n(r-1,i-1,1,[0]);for(var h=0;h-1&&(a[h]=t[l++]);return a=function(t,e){for(var i=0;ii){for(var n=a(i),o=0;o0?a(t).slice(0,t):[]},reset:function(){}}}function Qt(t,e,i){var r={dispose(){this._extensionStrategy=null},getNextColor(t){return this._extensionStrategy.getColor(this._currentColor++,t)},generateColors(t,e){return this._extensionStrategy.generateColors(t,(e||{}).repeat)},reset(){return this._currentColor=0,this._extensionStrategy.reset(),this}};e=e||{};var n=(e.extensionMode||"").toLowerCase(),o=jt(t,{type:e.type||"simpleSet",themeDefault:i});return r._extensionStrategy="alternate"===n?Wt(o,e):"extrapolate"===n?qt(o,e):Jt(o,e),r.reset(),r}function te(t,e){var i,r=[],n=t.length;for(i=0;i200||r<55)&&(i=new P(t).alter(-e/2)),i.toHex()}function ie(t){return.3*t.r+.59*t.g+.11*t.b}function re(t,e,i){var r=e>0?ne(jt(t,{type:"gradientSet",themeDefault:i}),e):[];return{getColor:function(t){return r[t]||null}}}function ne(t,e){var i,r=e-1,n=t.length-1,o=[],a=[];function s(t){var e=n*t,i=Ft(e),r=Nt(e);a.push(o[i].blend(o[r],e-i).toHex())}for(i=0;i<=n;++i)o.push(new P(t[i]));if(r>0)for(i=0;i<=r;++i)s(i/r);else s(.5);return a}function oe(t,e){var i=jt(t,{type:"gradientSet",themeDefault:e}),r=new P(i[0]),n=new P(i[1]);return{getColor:function(t){return 0<=t&&t<=1?r.blend(n,t).toHex():null}}}var ae=i(53970),se="#ffffff",le="#000000",ue="#d3d3d3",he="#303030",ce="#2b2b2b",de="#ff0000",pe="#232323",ge="#767676",fe="none",me="solid",_e="top",ve="right",be="bottom",ye="left",xe="center",we="inside",Ce="outside",Se=[{theme:{name:"generic.light",isDefault:!0,font:{color:ge,family:"'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:400,size:12,cursor:"default"},redrawOnResize:!0,backgroundColor:se,primaryTitleColor:pe,secondaryTitleColor:ge,gridColor:ue,axisColor:ge,title:{backgroundColor:se,font:{size:28,family:"'Segoe UI Light', 'Helvetica Neue Light', 'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:200},subtitle:{font:{size:16},offset:0,wordWrap:"normal",textOverflow:"ellipsis"},wordWrap:"normal",textOverflow:"ellipsis"},loadingIndicator:{text:"Loading..."},export:{backgroundColor:se,margin:10,font:{size:14,color:pe,weight:400},button:{margin:{top:8,left:10,right:10,bottom:8},default:{color:"#333",borderColor:"#ddd",backgroundColor:se},hover:{color:"#333",borderColor:"#bebebe",backgroundColor:"#e6e6e6"},focus:{color:le,borderColor:"#9d9d9d",backgroundColor:"#e6e6e6"},active:{color:"#333",borderColor:"#9d9d9d",backgroundColor:"#d4d4d4"}},shadowColor:ue},tooltip:{enabled:!1,border:{width:1,color:ue,dashStyle:me,visible:!0},font:{color:pe},color:se,arrowLength:10,paddingLeftRight:18,paddingTopBottom:15,textAlignment:"center",shared:!1,location:xe,shadow:{opacity:.4,offsetX:0,offsetY:4,blur:2,color:le},interactive:!1},legend:{hoverMode:"includePoints",verticalAlignment:_e,horizontalAlignment:ve,position:Ce,visible:!0,margin:10,markerSize:12,border:{visible:!1,width:1,cornerRadius:0,dashStyle:me},paddingLeftRight:20,paddingTopBottom:15,columnCount:0,rowCount:0,columnItemSpacing:20,rowItemSpacing:8,title:{backgroundColor:se,margin:{left:0,bottom:9,right:0,top:0},font:{size:18,weight:200},subtitle:{offset:0,font:{size:14},wordWrap:"none",textOverflow:"ellipsis"},wordWrap:"none",textOverflow:"ellipsis"}},"chart:common":{animation:{enabled:!0,duration:1e3,easing:"easeOutCubic",maxPointCountSupported:300},commonSeriesSettings:{border:{visible:!1,width:2},showInLegend:!0,visible:!0,hoverMode:"nearestPoint",selectionMode:"includePoints",hoverStyle:{hatching:{direction:ve,width:2,step:6,opacity:.75},border:{visible:!1,width:3}},selectionStyle:{hatching:{direction:ve,width:2,step:6,opacity:.5},border:{visible:!1,width:3}},valueErrorBar:{displayMode:"auto",value:1,color:le,lineWidth:2,edgeLength:8},label:{visible:!1,alignment:xe,rotationAngle:0,horizontalOffset:0,verticalOffset:0,radialOffset:0,showForZeroValues:!0,customizeText:void 0,maxLabelCount:void 0,position:Ce,font:{color:se},border:{visible:!1,width:1,color:ue,dashStyle:me},connector:{visible:!1,width:1}}},seriesSelectionMode:"single",pointSelectionMode:"single",equalRowHeight:!0,dataPrepareSettings:{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},_rtl:{legend:{itemTextPosition:ye}},resolveLabelOverlapping:fe},"chart:common:axis":{visible:!0,valueMarginsEnabled:!0,placeholderSize:null,logarithmBase:10,discreteAxisDivisionMode:"betweenLabels",aggregatedPointsPosition:"betweenTicks",width:1,label:{visible:!0},grid:{visible:!1,width:1},minorGrid:{visible:!1,width:1,opacity:.3},tick:{visible:!0,width:1,length:7,shift:3},minorTick:{visible:!1,width:1,opacity:.3,length:7,shift:3},stripStyle:{paddingLeftRight:10,paddingTopBottom:5},constantLineStyle:{width:1,color:le,dashStyle:me,label:{visible:!0,position:we}},marker:{label:{}}},"chart:common:annotation":{font:{color:"#333333"},tooltipEnabled:!0,border:{width:1,color:"#dddddd",dashStyle:me,visible:!0},color:se,opacity:.9,arrowLength:14,arrowWidth:14,paddingLeftRight:10,paddingTopBottom:10,shadow:{opacity:.15,offsetX:0,offsetY:1,blur:4,color:le},image:{width:30,height:30},wordWrap:"normal",textOverflow:"ellipsis",allowDragging:!1},chart:{commonSeriesSettings:{type:"line",stack:"default",aggregation:{enabled:void 0},point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4}},selectionStyle:{border:{visible:!0,width:4}}},scatter:{},line:{width:2,dashStyle:me,hoverStyle:{width:3,hatching:{direction:fe}},selectionStyle:{width:3}},stackedline:{width:2,dashStyle:me,hoverStyle:{width:3,hatching:{direction:fe}},selectionStyle:{width:3}},stackedspline:{width:2,dashStyle:me,hoverStyle:{width:3,hatching:{direction:fe}},selectionStyle:{width:3}},fullstackedline:{width:2,dashStyle:me,hoverStyle:{width:3,hatching:{direction:fe}},selectionStyle:{width:3}},fullstackedspline:{width:2,dashStyle:me,hoverStyle:{width:3,hatching:{direction:fe}},selectionStyle:{width:3}},stepline:{width:2,dashStyle:me,hoverStyle:{width:3,hatching:{direction:fe}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedarea:{point:{visible:!1},opacity:.5},fullstackedarea:{point:{visible:!1},opacity:.5},fullstackedsplinearea:{point:{visible:!1},opacity:.5},steparea:{border:{visible:!0,width:2},point:{visible:!1},hoverStyle:{border:{visible:!0,width:3}},selectionStyle:{border:{visible:!0,width:3}},opacity:.5},spline:{width:2,hoverStyle:{width:3,hatching:{direction:fe}},selectionStyle:{width:3}},splinearea:{point:{visible:!1},opacity:.5},stackedsplinearea:{point:{visible:!1},opacity:.5},bar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},stackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:we}},fullstackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:we}},rangebar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},rangearea:{point:{visible:!1},opacity:.5},rangesplinearea:{point:{visible:!1},opacity:.5},bubble:{opacity:.5,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},candlestick:{width:1,reduction:{color:de},hoverStyle:{width:3,hatching:{direction:fe}},selectionStyle:{width:3},point:{border:{visible:!0}}},stock:{width:1,reduction:{color:de},hoverStyle:{width:3,hatching:{direction:fe}},selectionStyle:{width:3},point:{border:{visible:!0}}}},crosshair:{enabled:!1,color:"#f05b41",width:1,dashStyle:me,label:{visible:!1,font:{color:se,size:12}},verticalLine:{visible:!0},horizontalLine:{visible:!0}},commonAxisSettings:{multipleAxesSpacing:5,forceUserTickInterval:!1,breakStyle:{width:5,color:"#ababab",line:"waved"},label:{displayMode:"standard",overlappingBehavior:"hide",indentFromAxis:10,wordWrap:"normal",textOverflow:"none"},title:{font:{size:16},margin:6,alignment:xe},constantLineStyle:{paddingLeftRight:10,paddingTopBottom:10}},horizontalAxis:{position:be,axisDivisionFactor:70,label:{rotationAngle:90,staggeringSpacing:5,alignment:xe},stripStyle:{label:{horizontalAlignment:xe,verticalAlignment:_e}},constantLineStyle:{label:{horizontalAlignment:ve,verticalAlignment:_e}},constantLines:[]},verticalAxis:{position:ye,axisDivisionFactor:40,label:{alignment:ve},stripStyle:{label:{horizontalAlignment:ye,verticalAlignment:xe}},constantLineStyle:{label:{horizontalAlignment:ye,verticalAlignment:_e}},constantLines:[]},argumentAxis:{endOnTick:!1,workWeek:[1,2,3,4,5]},valueAxis:{grid:{visible:!0},autoBreaksEnabled:!1,maxAutoBreakCount:4},commonPaneSettings:{backgroundColor:fe,border:{color:ue,width:1,visible:!1,top:!0,bottom:!0,left:!0,right:!0,dashStyle:me}},scrollBar:{visible:!1,offset:5,color:"gray",width:10},adjustOnZoom:!0,autoHidePointMarkers:!0,rotated:!1,synchronizeMultiAxes:!0,stickyHovering:!0,barGroupPadding:.3,minBubbleSize:12,maxBubbleSize:.2,zoomAndPan:{dragBoxStyle:{color:"#2a2a2a",opacity:.2},panKey:"shift",allowMouseWheel:!0,allowTouchGestures:!0}},pie:{innerRadius:.5,minDiameter:.5,type:"pie",dataPrepareSettings:{_skipArgumentSorting:!0},commonSeriesSettings:{pie:{border:{visible:!1,width:2,color:se},hoverStyle:{hatching:{direction:ve,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:ve,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},doughnut:{border:{visible:!1,width:2,color:se},hoverStyle:{hatching:{direction:ve,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:ve,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},donut:{border:{visible:!1,width:2,color:se},hoverStyle:{hatching:{direction:ve,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:ve,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},label:{textOverflow:"ellipsis",wordWrap:"normal"}},legend:{hoverMode:"allArgumentPoints",backgroundColor:fe},adaptiveLayout:{keepLabels:!1}},gauge:{scale:{tick:{visible:!0,length:5,width:2,opacity:1},minorTick:{visible:!1,length:3,width:1,opacity:1},label:{visible:!0,alignment:xe,hideFirstOrLast:"last",overlappingBehavior:"hide"},position:_e,endOnTick:!1},rangeContainer:{offset:0,width:5,backgroundColor:"#808080"},valueIndicators:{_default:{color:"#c2c2c2"},rangebar:{space:2,size:10,color:"#cbc5cf",backgroundColor:fe,text:{indent:0,font:{size:14,color:null}}},twocolorneedle:{secondColor:"#e18e92"},trianglemarker:{space:2,length:14,width:13,color:"#8798a5"},textcloud:{arrowLength:5,horizontalOffset:6,verticalOffset:3,color:"#679ec5",text:{font:{color:se,size:18}}}},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:xe,verticalAlignment:be},text:{font:{size:18}}},_circular:{scale:{scaleDivisionFactor:17,orientation:Ce,label:{indentFromTick:10}},rangeContainer:{orientation:Ce},valueIndicatorType:"rectangleneedle",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangleneedle",_default:{offset:20,indentFromCenter:0,width:2,spindleSize:14,spindleGapSize:10,beginAdaptingAtRadius:50},triangleneedle:{width:4},twocolorneedle:{space:2,secondFraction:.4},rangebar:{offset:30},trianglemarker:{offset:6},textcloud:{offset:-6}}},_linear:{scale:{scaleDivisionFactor:25,horizontalOrientation:ve,verticalOrientation:be,label:{indentFromTick:-10}},rangeContainer:{horizontalOrientation:ve,verticalOrientation:be},valueIndicatorType:"rangebar",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangle",_default:{offset:2.5,length:15,width:15},rectangle:{width:10},rangebar:{offset:10,horizontalOrientation:ve,verticalOrientation:be},trianglemarker:{offset:10,horizontalOrientation:ye,verticalOrientation:_e},textcloud:{offset:-1,horizontalOrientation:ye,verticalOrientation:_e}}}},barGauge:{backgroundColor:"#e0e0e0",relativeInnerRadius:.3,barSpacing:4,resolveLabelOverlapping:"hide",label:{indent:20,connectorWidth:2,font:{size:16}},legend:{visible:!1},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:xe,verticalAlignment:be},text:{font:{size:18}}}},rangeSelector:{scale:{valueMarginsEnabled:!0,width:1,color:le,opacity:.1,showCustomBoundaryTicks:!0,label:{overlappingBehavior:"hide",alignment:xe,visible:!0,topIndent:7,font:{size:11}},tick:{width:1,color:le,opacity:.17,visible:!0,length:12},minorTick:{width:1,color:le,opacity:.05,visible:!0,length:12},marker:{width:1,color:"#000000",opacity:.1,visible:!0,separatorHeight:33,topIndent:10,textLeftIndent:7,textTopIndent:11,label:{}},logarithmBase:10,workWeek:[1,2,3,4,5],breakStyle:{width:5,color:"#ababab",line:"waved"},endOnTick:!1},selectedRangeColor:"#606060",sliderMarker:{visible:!0,paddingTopBottom:2,paddingLeftRight:4,color:"#606060",invalidRangeColor:de,font:{color:se,size:11}},sliderHandle:{width:1,color:le,opacity:.2},shutter:{opacity:.75},background:{color:"#c0bae1",visible:!0,image:{location:"full"}},behavior:{snapToTicks:!0,animationEnabled:!0,moveSelectedRangeByClick:!0,manualRangeSelectionEnabled:!0,allowSlidersSwap:!0,callValueChanged:"onMovingComplete"},redrawOnResize:!0,chart:{barGroupPadding:.3,minBubbleSize:12,maxBubbleSize:.2,topIndent:.1,bottomIndent:0,valueAxis:{inverted:!1,logarithmBase:10},commonSeriesSettings:{type:"area",aggregation:{enabled:void 0},point:{visible:!1},scatter:{point:{visible:!0}}}}},map:{title:{margin:10},background:{borderWidth:1,borderColor:"#cacaca"},layer:{label:{enabled:!1,stroke:se,"stroke-width":1,"stroke-opacity":.7,font:{color:ce,size:12}}},"layer:area":{borderWidth:1,borderColor:se,color:"#d2d2d2",hoveredBorderColor:he,selectedBorderWidth:2,selectedBorderColor:he,label:{"stroke-width":2,font:{size:16}}},"layer:line":{borderWidth:2,color:"#ba8365",hoveredColor:"#a94813",selectedBorderWidth:3,selectedColor:"#e55100",label:{"stroke-width":2,font:{size:16}}},"layer:marker":{label:{enabled:!0,"stroke-width":1,font:{size:12}}},"layer:marker:dot":{borderWidth:2,borderColor:se,size:8,selectedStep:2,backStep:18,backColor:se,backOpacity:.32,shadow:!0},"layer:marker:bubble":{minSize:20,maxSize:50,hoveredBorderWidth:1,hoveredBorderColor:he,selectedBorderWidth:2,selectedBorderColor:he},"layer:marker:pie":{size:50,hoveredBorderWidth:1,hoveredBorderColor:he,selectedBorderWidth:2,selectedBorderColor:he},"layer:marker:image":{size:20},legend:{verticalAlignment:be,horizontalAlignment:ve,position:we,backgroundOpacity:.65,border:{visible:!0},paddingLeftRight:16,paddingTopBottom:12},controlBar:{borderColor:"#5d5d5d",borderWidth:3,color:se,margin:20,opacity:.3},_rtl:{legend:{itemTextPosition:ye}}},treeMap:{tile:{border:{width:1,opacity:.2,color:"#000000"},color:"#5f8b95",hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:"right"},border:{opacity:1}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,font:{color:"#ffffff",weight:600},shadow:{opacity:.6,offsetX:0,offsetY:1,blur:2,color:"#000000"},wordWrap:"normal",textOverflow:"ellipsis"}},group:{padding:4,border:{width:1},color:"#eeeeee",hoverStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,font:{color:ge,weight:600},textOverflow:"ellipsis"}},title:{subtitle:{}},tooltip:{},loadingIndicator:{}},sparkline:{lineColor:"#666666",lineWidth:2,areaOpacity:.2,minColor:"#e8c267",maxColor:"#e55253",barPositiveColor:"#a9a9a9",barNegativeColor:"#d7d7d7",winColor:"#a9a9a9",lossColor:"#d7d7d7",firstLastColor:"#666666",pointSymbol:"circle",pointColor:se,pointSize:4,type:"line",argumentField:"arg",valueField:"val",winlossThreshold:0,showFirstLast:!0,showMinMax:!1,tooltip:{enabled:!0}},bullet:{color:"#e8c267",targetColor:"#666666",targetWidth:4,showTarget:!0,showZeroLevel:!0,tooltip:{enabled:!0}},polar:{commonSeriesSettings:{type:"scatter",closed:!0,point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4},size:12},selectionStyle:{border:{visible:!0,width:4},size:12}},scatter:{},line:{width:2,dashStyle:me,hoverStyle:{width:3,hatching:{direction:fe}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedline:{width:2},bar:{opacity:.8},stackedbar:{opacity:.8}},adaptiveLayout:{width:80,height:80,keepLabels:!0},barGroupPadding:.3,commonAxisSettings:{visible:!0,forceUserTickInterval:!1,label:{overlappingBehavior:"hide",indentFromAxis:5},grid:{visible:!0},minorGrid:{visible:!0},tick:{visible:!0},title:{font:{size:16},margin:10}},argumentAxis:{startAngle:0,firstPointOnStartAngle:!1,period:void 0},valueAxis:{endOnTick:!1,tick:{visible:!1}},horizontalAxis:{position:_e,axisDivisionFactor:50,label:{alignment:xe}},verticalAxis:{position:_e,axisDivisionFactor:30,label:{alignment:ve}}},funnel:{sortData:!0,valueField:"val",colorField:"color",argumentField:"arg",hoverEnabled:!0,selectionMode:"single",item:{border:{visible:!1,width:2,color:se},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:ve},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:ve},border:{}}},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},legend:{visible:!1},_rtl:{legend:{itemTextPosition:ye}},tooltip:{customizeTooltip:function(t){return{text:t.item.argument+" "+t.valueText}}},inverted:!1,algorithm:"dynamicSlope",neckWidth:0,neckHeight:0,resolveLabelOverlapping:"shift",label:{textOverflow:"ellipsis",wordWrap:"normal",visible:!0,horizontalAlignment:ve,horizontalOffset:0,verticalOffset:0,showForZeroValues:!1,customizeText:function(t){return t.item.argument+" "+t.valueText},position:"columns",font:{color:se},border:{visible:!1,width:1,color:ue,dashStyle:me},connector:{visible:!0,width:1,opacity:.5}}},sankey:{sourceField:"source",targetField:"target",weightField:"weight",hoverEnabled:!0,alignment:xe,adaptiveLayout:{width:80,height:80,keepLabels:!0},label:{visible:!0,horizontalOffset:8,verticalOffset:0,overlappingBehavior:"ellipsis",useNodeColors:!1,font:{color:le,weight:500},border:{visible:!1,width:2,color:se},customizeText:function(t){return t.title},shadow:{opacity:.2,offsetX:0,offsetY:1,blur:1,color:se}},title:{margin:10,font:{size:28,weight:200},subtitle:{font:{size:16}}},tooltip:{enabled:!0},node:{padding:30,width:8,opacity:1,border:{color:se,width:1,visible:!1},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:ve},border:{}}},link:{color:"#888888",colorMode:"none",opacity:.3,border:{color:se,width:1,visible:!1},hoverStyle:{opacity:.5,hatching:{opacity:.75,step:6,width:2,direction:ve},border:{}}}}},baseThemeName:void 0},{theme:{name:"generic.light.compact"},baseThemeName:"generic.light"}],ke="#f05b41",Ae="#fff",Te="#333",Ee="#8899a8",Oe="#707070",Pe="#dee1e3",Ie=[{theme:{name:"generic.carmine",defaultPalette:"Carmine",backgroundColor:Ae,primaryTitleColor:Te,secondaryTitleColor:Ee,gridColor:Pe,axisColor:Oe,export:{backgroundColor:Ae,font:{color:Te},button:{default:{color:Te,borderColor:"#b1b7bd",backgroundColor:Ae},hover:{color:Te,borderColor:"#b1b7bd",backgroundColor:"#faf2f0"},focus:{color:Te,borderColor:"#6d7781",backgroundColor:"#faf2f0"},active:{color:Te,borderColor:"#6d7781",backgroundColor:"#f5e7e4"}}},legend:{font:{color:Oe}},tooltip:{color:Ae,border:{color:Pe},font:{color:Te}},"chart:common":{commonSeriesSettings:{label:{border:{color:Pe}}}},"chart:common:annotation":{font:{color:Te},border:{color:Pe},color:Ae},chart:{commonPaneSettings:{border:{color:Pe}},commonAxisSettings:{breakStyle:{color:"#c1c5c7"}}},rangeSelector:{scale:{breakStyle:{color:"#c1c5c7"},tick:{opacity:.12}},selectedRangeColor:ke,sliderMarker:{color:ke},sliderHandle:{color:ke,opacity:.5}},sparkline:{pointColor:Ae,minColor:"#f0ad4e",maxColor:"#f74d61"},treeMap:{group:{color:Pe,label:{font:{color:Ee}}}},bullet:{color:ke},gauge:{valueIndicators:{rangebar:{color:ke},textcloud:{color:ke}}}},baseThemeName:"generic.light"},{theme:{name:"generic.carmine.compact"},baseThemeName:"generic.carmine"}],Le="#ffffff",Be="#000000",Re="#2b2b2b",Ve="#b5b5b5",De="#303030",ze="#686868",Me="#c7c7c7",Fe="#8e8e8e",Ne="#b8b8b8",Ge="#494949",He=[{theme:{name:"generic.dark",font:{color:"#808080"},backgroundColor:"#2a2a2a",primaryTitleColor:"#dedede",secondaryTitleColor:"#a3a3a3",gridColor:"#555555",axisColor:"#a3a3a3",export:{backgroundColor:"#2a2a2a",font:{color:"#dbdbdb"},button:{default:{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:"#2e2e2e"},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#444"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#444444"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#555555"}},shadowColor:"#292929"},tooltip:{color:Re,border:{color:Ge},font:{color:"#929292"}},"chart:common":{commonSeriesSettings:{label:{border:{color:Ge}},valueErrorBar:{color:Le}}},"chart:common:axis":{constantLineStyle:{color:Le}},"chart:common:annotation":{font:{color:"#929292"},border:{color:Ge},color:Re,shadow:{opacity:.008,offsetY:4,blur:8}},chart:{commonPaneSettings:{border:{color:Ge}},commonAxisSettings:{breakStyle:{color:"#818181"}},zoomAndPan:{dragBoxStyle:{color:Le}}},gauge:{rangeContainer:{backgroundColor:Ve},valueIndicators:{_default:{color:Ve},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:Le,opacity:.32},minorTick:{color:Le,opacity:.1},breakStyle:{color:"#818181"}},selectedRangeColor:Ve,sliderMarker:{color:Ve,font:{color:De}},sliderHandle:{color:Le,opacity:.2},shutter:{color:Re,opacity:.9}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:Be,font:{color:Le}}},"layer:area":{borderColor:De,color:ze,hoveredBorderColor:Le,selectedBorderColor:Le},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:Le,selectedBorderColor:Le},"layer:marker:pie":{hoveredBorderColor:Le,selectedBorderColor:Le},legend:{border:{color:"#3f3f3f"},font:{color:Le}},controlBar:{borderColor:Me,color:De}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:Me,firstLastColor:Me,barPositiveColor:Ne,barNegativeColor:Fe,winColor:Ne,lossColor:Fe,pointColor:De},bullet:{targetColor:Fe},funnel:{item:{border:{color:"#2a2a2a"}}},sankey:{label:{font:{color:Le},shadow:{opacity:0}},node:{border:{color:"#2a2a2a"}},link:{color:"#888888",border:{color:"#2a2a2a"},hoverStyle:{color:"#bbbbbb"}}}},baseThemeName:"generic.light"},{theme:{name:"generic.dark.compact"},baseThemeName:"generic.dark"}],Ze="#ffffff",$e="#000000",Xe="#cf00da",Ye="#f8ca00",je="#686868",Ke=[{theme:{name:"generic.contrast",defaultPalette:"Bright",font:{color:Ze},backgroundColor:$e,primaryTitleColor:Ze,secondaryTitleColor:Ze,gridColor:Ze,axisColor:Ze,export:{backgroundColor:$e,font:{color:Ze},button:{default:{color:Ze,borderColor:Ze,backgroundColor:$e},hover:{color:Ze,borderColor:Ze,backgroundColor:"#cf00d7"},focus:{color:Ze,borderColor:"#cf00d7",backgroundColor:$e},active:{color:$e,borderColor:Ze,backgroundColor:Ze}},borderColor:Ze,menuButtonColor:$e,activeBackgroundColor:Ze,activeColor:$e,selectedBorderColor:Xe,selectedColor:Xe,shadowColor:"none"},tooltip:{border:{color:Ze},font:{color:Ze},color:$e},"chart:common":{commonSeriesSettings:{valueErrorBar:{color:Ze},hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}},label:{font:{color:Ze},border:{color:Ze}}}},"chart:common:axis":{constantLineStyle:{color:Ze}},"chart:common:annotation":{font:{color:Ze},border:{color:Ze},color:$e},chart:{commonSeriesSettings:{},crosshair:{color:"#cf00d7"},commonPaneSettings:{backgroundColor:$e,border:{color:Ze}},scrollBar:{color:Ze},commonAxisSettings:{breakStyle:{color:"#cf00d7"}},zoomAndPan:{dragBoxStyle:{color:Ze,opacity:.7}}},pie:{commonSeriesSettings:{pie:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},doughnut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},donut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}}}},gauge:{rangeContainer:{backgroundColor:Ze},valueIndicators:{_default:{color:Ze},rangebar:{color:Ze,backgroundColor:$e},twocolorneedle:{secondColor:Ze},trianglemarker:{color:Ze},textcloud:{color:Ze,text:{font:{color:$e}}}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:Ze,opacity:.4},minorTick:{color:Ze,opacity:.12},breakStyle:{color:"#cf00d7"}},selectedRangeColor:Xe,sliderMarker:{color:Xe},sliderHandle:{color:Xe,opacity:1},shutter:{opacity:.75},background:{color:$e}},map:{background:{borderColor:Ze},layer:{label:{stroke:$e,font:{color:Ze}}},"layer:area":{borderColor:$e,color:je,hoveredBorderColor:Ze,selectedBorderColor:Ze,label:{font:{opacity:1}}},"layer:line":{color:"#267cff",hoveredColor:"#f613ff",selectedColor:Ze},"layer:marker:dot":{borderColor:$e,color:Ye,backColor:$e,backOpacity:.32},"layer:marker:bubble":{color:Ye,hoveredBorderColor:Ze,selectedBorderColor:Ze},"layer:marker:pie":{hoveredBorderColor:Ze,selectedBorderColor:Ze},controlBar:{borderColor:Ze,color:$e,opacity:.3}},treeMap:{tile:{color:"#70c92f"},group:{color:"#797979",label:{font:{color:Ze}}}},sparkline:{pointColor:$e},bullet:{},polar:{commonSeriesSettings:{}},funnel:{label:{connector:{opacity:1}}},sankey:{label:{font:{color:Ze},shadow:{opacity:0}},node:{border:{visible:!0,width:1,color:Ze}},link:{opacity:.5,border:{visible:!0,width:1,color:Ze},hoverStyle:{opacity:.9}}}},baseThemeName:"generic.light"},{theme:{name:"generic.contrast.compact"},baseThemeName:"generic.contrast"}],Ue="#3debd3",We="#465672",qe="#fff",Je="#919bac",Qe="#c7ccd4",ti="#596980",ei=[{theme:{name:"generic.darkmoon",defaultPalette:"Dark Moon",backgroundColor:We,primaryTitleColor:qe,secondaryTitleColor:Je,gridColor:ti,axisColor:Qe,export:{backgroundColor:We,font:{color:qe},button:{default:{color:qe,borderColor:"#7a889e",backgroundColor:We},hover:{color:qe,borderColor:"#9da8b8",backgroundColor:"#596e92"},focus:{color:qe,borderColor:"#c4cad4",backgroundColor:"#596e92"},active:{color:qe,borderColor:"#c4cad4",backgroundColor:"#6b80a4"}}},legend:{font:{color:Qe}},tooltip:{color:"#62789e",border:{color:ti},font:{color:qe}},"chart:common":{commonSeriesSettings:{label:{border:{color:ti}}}},"chart:common:annotation":{font:{color:qe},border:{color:ti},color:"#62789e"},chart:{commonPaneSettings:{border:{color:ti}},commonAxisSettings:{breakStyle:{color:"#73869e"}}},gauge:{valueIndicators:{rangebar:{color:Ue},textcloud:{color:Ue,text:{font:{color:We}}}}},barGauge:{backgroundColor:"#526280"},funnel:{item:{border:{color:We}}},sparkline:{pointColor:We,minColor:"#f0ad4e",maxColor:"#f9517e"},treeMap:{group:{color:ti,label:{font:{color:qe}}}},map:{background:{borderColor:ti},"layer:area":{color:"#97a3b6",borderColor:We}},rangeSelector:{shutter:{color:We},scale:{breakStyle:{color:"#73869e"},tick:{opacity:.2}},selectedRangeColor:Ue,sliderMarker:{color:Ue,font:{color:"#000"}},sliderHandle:{color:Ue,opacity:.5}},bullet:{color:Ue},sankey:{link:{border:{color:We}},node:{border:{color:We}}}},baseThemeName:"generic.dark"},{theme:{name:"generic.darkmoon.compact"},baseThemeName:"generic.darkmoon"}],ii="#9c63ff",ri="#17171f",ni="#f5f6f7",oi="#fff",ai="#b2b2b6",si="#343840",li=[{theme:{name:"generic.darkviolet",defaultPalette:"Dark Violet",backgroundColor:ri,primaryTitleColor:ni,secondaryTitleColor:oi,gridColor:si,axisColor:ai,export:{backgroundColor:ri,font:{color:ni},button:{default:{color:ni,borderColor:"#414152",backgroundColor:ri},hover:{color:ni,borderColor:"#5c5c74",backgroundColor:"#2d2d3c"},focus:{color:ni,borderColor:"#7c7c97",backgroundColor:"#2d2d3c"},active:{color:ni,borderColor:"#7c7c97",backgroundColor:"#3c3c51"}}},legend:{font:{color:ai}},tooltip:{color:ri,border:{color:"#414152"},font:{color:ni}},"chart:common":{commonSeriesSettings:{label:{border:{color:si}}}},"chart:common:annotation":{font:{color:ni},border:{color:"#414152"},color:ri},chart:{commonPaneSettings:{border:{color:si}},commonAxisSettings:{breakStyle:{color:"#575e6b"}}},funnel:{item:{border:{color:ri}}},sparkline:{pointColor:ri,minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:si,label:{font:{color:oi}}}},rangeSelector:{shutter:{color:ri},scale:{breakStyle:{color:"#575e6b"},tick:{opacity:.2}},selectedRangeColor:ii,sliderMarker:{color:ii,font:{color:"#fff"}},sliderHandle:{color:ii,opacity:.5}},bullet:{color:ii},gauge:{valueIndicators:{rangebar:{color:ii},textcloud:{color:ii}}},sankey:{link:{border:{color:ri}},node:{border:{color:ri}}}},baseThemeName:"generic.dark"},{theme:{name:"generic.darkviolet.compact"},baseThemeName:"generic.darkviolet"}],ui="#3cbab2",hi="#f5f5f5",ci="#28484f",di="#7eb2be",pi="#657c80",gi="#dedede",fi=[{theme:{name:"generic.greenmist",defaultPalette:"Green Mist",backgroundColor:hi,primaryTitleColor:ci,secondaryTitleColor:di,gridColor:gi,axisColor:pi,export:{backgroundColor:hi,font:{color:ci},button:{default:{color:ci,borderColor:"#a2b4b8",backgroundColor:hi},hover:{color:ci,borderColor:"#7f989e",backgroundColor:"rgba(222, 222, 222, 0.4)"},focus:{color:ci,borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.4)"},active:{color:ci,borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.8)"}}},legend:{font:{color:pi}},tooltip:{color:"#fff",border:{color:gi},font:{color:ci}},"chart:common":{commonSeriesSettings:{label:{border:{color:gi}}}},"chart:common:annotation":{color:"#fff",border:{color:gi},font:{color:ci}},chart:{commonPaneSettings:{border:{color:gi}},commonAxisSettings:{breakStyle:{color:"#c1c1c1"}}},funnel:{item:{border:{color:hi}}},sparkline:{pointColor:hi,minColor:"#ffc852",maxColor:"#f74a5e"},treeMap:{group:{color:gi,label:{font:{color:di}}}},rangeSelector:{shutter:{color:hi},scale:{breakStyle:{color:"#c1c1c1"},tick:{opacity:.12}},selectedRangeColor:ui,sliderMarker:{color:ui},sliderHandle:{color:ui,opacity:.5}},bullet:{color:ui},gauge:{valueIndicators:{rangebar:{color:ui},textcloud:{color:ui}}}},baseThemeName:"generic.light"},{theme:{name:"generic.greenmist.compact"},baseThemeName:"generic.greenmist"}],mi="#7ab8eb",_i="#fff",vi="#333",bi="#99a1a8",yi="#707070",xi="#e8eaeb",wi=[{theme:{name:"generic.softblue",defaultPalette:"Soft Blue",backgroundColor:_i,primaryTitleColor:vi,secondaryTitleColor:bi,gridColor:xi,axisColor:yi,export:{backgroundColor:_i,font:{color:vi},button:{default:{color:vi,borderColor:"#c9d0d4",backgroundColor:_i},hover:{color:vi,borderColor:"#a7b2b9",backgroundColor:"#e6e6e6"},focus:{color:vi,borderColor:"#82929b",backgroundColor:"#e6e6e6"},active:{color:vi,borderColor:"#82929b",backgroundColor:"#d4d4d4"}}},legend:{font:{color:yi}},tooltip:{color:_i,border:{color:xi},font:{color:vi}},"chart:common":{commonSeriesSettings:{label:{border:{color:xi}}}},"chart:common:annotation":{color:_i,border:{color:xi},font:{color:vi}},chart:{commonPaneSettings:{border:{color:xi}},commonAxisSettings:{breakStyle:{color:"#cfd2d3"}}},rangeSelector:{scale:{breakStyle:{color:"#cfd2d3"},tick:{opacity:.12}},selectedRangeColor:mi,sliderMarker:{color:mi},sliderHandle:{color:mi,opacity:.5}},sparkline:{pointColor:_i,minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:xi,label:{font:{color:bi}}}},bullet:{color:mi},gauge:{valueIndicators:{rangebar:{color:mi},textcloud:{color:mi}}}},baseThemeName:"generic.light"},{theme:{name:"generic.softblue.compact"},baseThemeName:"generic.softblue"}],Ci="'Roboto', 'RobotoFallback', 'Helvetica', 'Arial', sans-serif",Si="rgba(0,0,0,0.87)",ki="rgba(0,0,0,0.54)",Ai="rgba(255,255,255,0.87)",Ti="rgba(255,255,255,0.54)",Ei="#363640",Oi="#ffffff",Pi="#000000",Ii="#b5b5b5",Li="#686868",Bi="#c7c7c7",Ri="#8e8e8e",Vi="#b8b8b8",Di="#494949",zi="#818181",Mi=[{theme:{name:"material",defaultPalette:"Material",font:{family:Ci},title:{margin:{top:20,bottom:20,left:0,right:0},font:{size:20,family:Ci,weight:500},horizontalAlignment:"left",subtitle:{font:{size:14},horizontalAlignment:"left"}},tooltip:{shadow:{opacity:0},border:{visible:!1},paddingLeftRight:8,paddingTopBottom:6,arrowLength:0,location:"edge",color:"#616161",font:{color:Oi},cornerRadius:4},chart:{commonAxisSettings:{minorTick:{opacity:.5},label:{font:{size:11}}},commonAnnotationSettings:{font:{color:Oi},border:{color:"#616161"},color:"#616161",arrowLength:14,arrowWidth:0,shadow:{opacity:.08,offsetY:4,blur:8},cornerRadius:4}},pie:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},polar:{commonAxisSettings:{minorTick:{opacity:.5}},title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},funnel:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},gauge:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},barGauge:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},rangeSelector:{sliderHandle:{opacity:.5}},treeMap:{group:{label:{font:{weight:500}}}}},baseThemeName:"generic.light"},{theme:{name:"material.light",gridColor:"#e0e0e0",axisColor:ki,primaryTitleColor:Si,legend:{font:{color:ki}},chart:{scrollBar:{color:"#bfbfbf",opacity:.7}},gauge:{rangeContainer:{backgroundColor:"rgba(0,0,0,0.2)"}},barGauge:{backgroundColor:"#efefef"}},baseThemeName:"material"},{theme:{name:"material.dark",gridColor:"#515159",backgroundColor:Ei,axisColor:Ti,font:{color:Ti},primaryTitleColor:Ai,secondaryTitleColor:Ai,tooltip:{color:"#000"},export:{backgroundColor:Ei,font:{color:"#dbdbdb"},button:{default:{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:Ei},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#3f3f4b"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#494956"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#494956"}},shadowColor:"#292929"},"chart:common":{commonSeriesSettings:{label:{border:{color:Di}},valueErrorBar:{color:Oi}}},"chart:common:axis":{constantLineStyle:{color:Oi}},"chart:common:annotation":{border:{color:"#000"},color:"#000"},chart:{commonPaneSettings:{border:{color:Di}},commonAxisSettings:{breakStyle:{color:zi}},zoomAndPan:{dragBoxStyle:{color:Oi}}},gauge:{rangeContainer:{backgroundColor:Ii},valueIndicators:{_default:{color:Ii},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:Oi,opacity:.32},minorTick:{color:Oi,opacity:.1},breakStyle:{color:zi}},selectedRangeColor:Ii,sliderMarker:{color:Ii,font:{color:Ei}},sliderHandle:{color:Oi,opacity:.2},shutter:{color:Oi,opacity:.1}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:Pi,font:{color:Oi}}},"layer:area":{borderColor:Ei,color:Li,hoveredBorderColor:Oi,selectedBorderColor:Oi},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:Oi,selectedBorderColor:Oi},"layer:marker:pie":{hoveredBorderColor:Oi,selectedBorderColor:Oi},legend:{border:{color:"#3f3f3f"},font:{color:Oi}},controlBar:{borderColor:Bi,color:Ei}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:Bi,firstLastColor:Bi,barPositiveColor:Vi,barNegativeColor:Ri,winColor:Vi,lossColor:Ri,pointColor:Ei},bullet:{targetColor:Ri},funnel:{item:{border:{color:Ei}}},sankey:{label:{font:{color:Oi}}}},baseThemeName:"material"}];function Fi(t,e,i){return{theme:{name:"material."+t+"."+e,rangeSelector:{selectedRangeColor:i,sliderMarker:{color:i},sliderHandle:{color:i}},map:{"layer:marker:dot":{color:i},"layer:marker:bubble":{color:i},legend:{markerColor:i}},bullet:{color:i},gauge:{valueIndicators:{rangebar:{color:i},textcloud:{color:i}}}},baseThemeName:"material."+e}}var Ni={blue:"#03a9f4",lime:"#cddc39",orange:"#ff5722",purple:"#9c27b0",teal:"#009688"};for(var Gi in Ni)if(Object.prototype.hasOwnProperty.call(Ni,Gi)){var Hi=Ni[Gi];Mi.push(Fi(Gi,"light",Hi),Fi(Gi,"dark",Hi),{theme:{name:"material.".concat(Gi,".light.compact")},baseThemeName:"material.".concat(Gi,".light")},{theme:{name:"material.".concat(Gi,".dark.compact")},baseThemeName:"material.".concat(Gi,".dark")})}var Zi,$i=Mi,Xi={},Yi={},ji={},Ki=u.l,Ui=h.S6,Wi=null,qi=0,Ji={};function Qi(t){var e=tt(t);return Xi[e]||Xi[Yi[e]||ir()]}function tr(t,e){return Yi[t+"."+e]||ji[t+"."+e]||Yi[t]}function er(t,e,i){return tr(t+e,i)||tr(t,i)}function ir(t,e){if(!arguments.length)return Wi||tr((0,ae.Vk)())||Zi;var i=tt(e);return Wi=(t&&t.platform?er(tt(t.platform),t.version,i):tr(tt(t),i))||Wi,this}function rr(t,e){var i=t.indexOf(e);return i>0?{name:t.substring(0,i),scheme:t.substring(i+1)}:null}function nr(t,e){var i=rr(t,".")||{name:t},r=i.name,n=i.scheme;n?(Yi[r]=Yi[r]||e,Yi[r+"."+n]=e):Yi[r]=e}function or(t,e){var i=tt(t&&t.name);i&&(t.isDefault&&(Zi=i),nr(i,i),Xi[i]=Ki(!0,{},Qi(e),lr(t)))}function ar(t,e,i,r){var n=i?i[e]:r;void 0!==n&&void 0===t[e]&&(t[e]=n)}function sr(t,e,i,r){var n=i?i[e]:r;void 0!==n&&(t[e]=Ki(!0,{},n,t[e]))}function lr(t){return t=Ki(!0,{loadingIndicator:{font:{}},export:{font:{}},legend:{font:{},border:{}},title:{font:{}},tooltip:{font:{}},"chart:common":{},"chart:common:axis":{grid:{},minorGrid:{},tick:{},minorTick:{},title:{font:{}},label:{font:{}}},"chart:common:annotation":{font:{},border:{}},chart:{commonSeriesSettings:{candlestick:{}}},pie:{},polar:{},gauge:{scale:{tick:{},minorTick:{},label:{font:{}}}},barGauge:{},funnel:{},sankey:{},map:{background:{}},treeMap:{tile:{selectionStyle:{border:{}}},group:{border:{},selectionStyle:{border:{}},label:{font:{}}}},rangeSelector:{scale:{tick:{},minorTick:{},label:{font:{}}},chart:{}},sparkline:{},bullet:{}},t),ar(t.loadingIndicator,"backgroundColor",t),ar(t.chart.commonSeriesSettings.candlestick,"innerColor",null,t.backgroundColor),ar(t.map.background,"color",null,t.backgroundColor),ar(t.title.font,"color",null,t.primaryTitleColor),sr(t.title,"subtitle",null,t.title),ar(t.legend.font,"color",null,t.secondaryTitleColor),ar(t.legend.border,"color",null,t.gridColor),ur(t),Ui(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sparkline","bullet","sankey"],(function(e,i){ar(t[i],"redrawOnResize",t),ar(t[i],"containerBackgroundColor",null,t.backgroundColor),sr(t[i],"tooltip",t),sr(t[i],"export",t)})),Ui(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sankey"],(function(e,i){sr(t[i],"loadingIndicator",t),sr(t[i],"legend",t),sr(t[i],"title",t)})),Ui(["chart","pie","polar"],(function(e,i){sr(t,i,null,t["chart:common"])})),Ui(["chart","polar"],(function(e,i){t[i]=t[i]||{},sr(t[i],"commonAxisSettings",null,t["chart:common:axis"])})),Ui(["chart","polar","map","pie"],(function(e,i){t[i]=t[i]||{},sr(t[i],"commonAnnotationSettings",null,t["chart:common:annotation"])})),sr(t.rangeSelector.chart,"commonSeriesSettings",t.chart),sr(t.rangeSelector.chart,"dataPrepareSettings",t.chart),ar(t.treeMap.group.border,"color",null,t.gridColor),ar(t.treeMap.tile.selectionStyle.border,"color",null,t.primaryTitleColor),ar(t.treeMap.group.selectionStyle.border,"color",null,t.primaryTitleColor),ar(t.map.legend,"backgroundColor",t),hr(t),t}function ur(t){var e=t["chart:common:axis"];Ui([e.grid,e.minorGrid],(function(e,i){ar(i,"color",null,t.gridColor)})),Ui([e,e.tick,e.minorTick,e.label.font],(function(e,i){ar(i,"color",null,t.axisColor)})),ar(e.title.font,"color",null,t.secondaryTitleColor),ar(t.gauge.scale.label.font,"color",null,t.axisColor),ar(t.gauge.scale.tick,"color",null,t.backgroundColor),ar(t.gauge.scale.minorTick,"color",null,t.backgroundColor),ar(t.rangeSelector.scale.label.font,"color",null,t.axisColor)}function hr(t){var e=t.map;Ui(["area","line","marker"],(function(t,i){sr(e,"layer:"+i,null,e.layer)})),Ui(["dot","bubble","pie","image"],(function(t,i){sr(e,"layer:marker:"+i,null,e["layer:marker"])}))}function cr(t){var e=++qi;t._cache=e,Ji[e]=t}function dr(t){delete Ji[t._cache]}(0,l.Qr)(Xi)&&(0,l.Qr)(Yi)&&!Zi&&[].concat(Se,Ie,He,Ke,ei,li,fi,wi,$i).forEach((t=>{or(t.theme,t.baseThemeName)}));var pr=Qi,gr=cr,fr=dr,mr=u.l,_r=h.S6;function vr(t,e){var i=t;return e&&_r(e.split("."),(function(t,e){return i=i[e]})),i}var br=Mt.Z.inherit({ctor:function(t){this._themeSection=t.themeSection,this._fontFields=t.fontFields||[],gr(this)},dispose:function(){return fr(this),this._callback=this._theme=this._font=null,this},setCallback:function(t){return this._callback=t,this},setTheme:function(t,e){return this._current=t,this._rtl=e,this.refresh()},refresh:function(){var t=this._current||{},e=pr(t.name||t);return this._themeName=e.name,this._defaultPalette=e.defaultPalette,this._font=mr({},e.font,t.font),this._themeSection&&_r(this._themeSection.split("."),(function(t,i){e=mr(!0,{},e[i])})),this._theme=mr(!0,{},e,(0,l.HD)(t)?{}:t),this._initializeTheme(),ot(this._rtl,this._theme.rtlEnabled)&&mr(!0,this._theme,this._theme._rtl),this._callback(),this},theme:function(t){return vr(this._theme,t)},themeName:function(){return this._themeName},createPalette:function(t,e){return Qt(t,e,this._defaultPalette)},createDiscretePalette:function(t,e){return re(t,e,this._defaultPalette)},createGradientPalette:function(t){return oe(t,this._defaultPalette)},getAccentColor:function(t){return Kt(t,this._defaultPalette)},_initializeTheme:function(){var t=this;_r(t._fontFields||[],(function(e,i){t._initializeFont(vr(t._theme,i))}))},_initializeFont:function(t){mr(t,this._font,mr({},t))}}),yr=i(19728),xr=!(0,Dt.Ym)();function wr(){this.reset()}function Cr(t,e){return t!==e?(0,u.l)({},t,e):(0,u.l)({},t)}function Sr(t,e){return t!==e?t.concat(e):t.slice()}function kr(t){t._totalChangesOrder=t._optionChangesOrder.concat(t._layoutChangesOrder,t._customChangesOrder)}function Ar(t){var e=this.prototype,i=t.code;e["_change_"+i]=t.handler,t.isThemeDependent&&e._themeDependentChanges.push(i),t.option&&(e._optionChangesMap[t.option]=i),(t.isOptionChange?e._optionChangesOrder:e._customChangesOrder).push(i),kr(e)}function Tr(){var t=function t(){var e,i,r=t._chain.length;for(e=0;e0},count:function(){return Object.keys(this._flags).length},reset:function(){this._flags={}}};var Pr=xr?function(t){var e=t.inherit;t.inherit=function(){var t=e.apply(this,arguments),i=t.prototype;return["_plugins","_eventsMap","_initialChanges","_themeDependentChanges","_optionChangesMap","_optionChangesOrder","_layoutChangesOrder","_customChangesOrder","_totalChangesOrder"].forEach((function(t){i[t]={}})),t.addPlugin=s.ZT,t},t.addChange=s.ZT,t.addPlugin=s.ZT}:function(t){var e=t.inherit;t.inherit=function(){var t=this.prototype,i=t._plugins,r=t._fontFields,n=t._eventsMap,o=t._initialChanges,a=t._themeDependentChanges,s=t._optionChangesMap,l=t._partialOptionChangesMap,u=t._partialOptionChangesPath,h=t._optionChangesOrder,c=t._layoutChangesOrder,d=t._customChangesOrder,p=e.apply(this,arguments);return t=p.prototype,t._plugins=Sr(i,t._plugins),t._fontFields=Sr(r,t._fontFields),t._eventsMap=Cr(n,t._eventsMap),t._initialChanges=Sr(o,t._initialChanges),t._themeDependentChanges=Sr(a,t._themeDependentChanges),t._optionChangesMap=Cr(s,t._optionChangesMap),t._partialOptionChangesMap=Cr(l,t._partialOptionChangesMap),t._partialOptionChangesPath=Cr(u,t._partialOptionChangesPath),t._optionChangesOrder=Sr(h,t._optionChangesOrder),t._layoutChangesOrder=Sr(c,t._layoutChangesOrder),t._customChangesOrder=Sr(d,t._customChangesOrder),kr(t),p.addPlugin=Or,p},t.prototype._plugins=[],t.prototype._fontFields=[],t.addChange=Ar,t.addPlugin=Or};function Ir(){return new wr}var Lr=i(2695),Br=i(33734),Rr=(0,Lr.Z)(Br.Z.ERROR_MESSAGES,{E2001:"Invalid data source",E2002:"Axis type and data type are incompatible",E2003:'The "{0}" data source field contains data of unsupported type',E2004:'The "{0}" data source field is inconsistent',E2005:'The value field "{0}" is absent in the data source or all its values are negative',E2006:"A cycle is detected in provided data",E2007:'The value field "{0}" is absent in the data source',E2008:'The value field "{0}" must be a string',E2009:'The value field "{0}" must be a positive numeric value',E2101:"Unknown series type: {0}",E2102:"Ambiguity occurred between two value axes with the same name",E2103:'The "{0}" option is given an invalid value. Assign a function instead',E2104:"Invalid logarithm base",E2105:'Invalid value of a "{0}"',E2202:"Invalid {0} scale value",E2203:"The range you are trying to set is invalid",W2002:"The {0} series cannot be drawn because the {1} data field is missing",W2003:"Tick interval is too small",W2101:'The "{0}" pane does not exist; the last pane is used by default',W2102:'A value axis with the "{0}" name was created automatically',W2103:"The chart title was hidden due to the container size",W2104:"The legend was hidden due to the container size",W2105:'The title of the "{0}" axis was hidden due to the container size',W2106:'The labels of the "{0}" axis were hidden due to the container size',W2107:"The export menu was hidden due to the container size",W2108:"The browser does not support exporting images to {0} format.",W2301:"Invalid value range"}),Vr=i(48714),Dr=(0,Dt.Jj)();function zr(t,e){var i=zt["default"].createElement("div"),r=t.cloneNode(!0);return e&&(0,Vt.Z)(r).css("backgroundColor",e),i.appendChild(r),i.innerHTML}function Mr(t){var e=!0;return-1===t.indexOf("xmlns:xlink")&&(t=t.replace("1)for(l=1;l=this.delay&&(this.tick=jr),!0}function Ur(t){return this._startTime=t,this.tick=this.delay?Kr:jr,!0}function Wr(t,e,i){this._progress=0,this.element=t,this.params=e,this.options=i,this.duration=i.partitionDuration?i.duration*i.partitionDuration:i.duration,this.delay=i.delay&&i.duration*i.delay||0,this._animateStep=i.animateStep||Yr,this._easing=Xr[i.easing]||Xr.easeOutCubic,this._currentParams={},this.tick=Ur}function qr(t){this._animationCount=0,this._timerId=null,this._animations={},this.element=t}Wr.prototype={_calcProgress:function(t){return Math.min(1,(t-this.delay-this._startTime)/this.duration)},stop:function(t){var e=this.options,i=this._animateStep;this.stop=this.tick=$r,i.complete&&i.complete(this.element,this._currentParams),e.complete&&!t&&e.complete()}},qr.prototype={_loop:function(){var t,e=this,i=e._animations,r=0,n=(new Date).getTime(),o=e._endAnimation;for(t in i)i[t].tick(n)||delete i[t],r++;if(0===r)return e.stop(),void(e._endAnimationTimer=o&&setTimeout((function(){0===e._animationCount&&(o(),e._endAnimation=null)})));e._timerId=Zr.U.call(null,(function(){e._loop()}),e.element)},addAnimation:function(t){var e=this;e._animations[e._animationCount++]=t,clearTimeout(e._endAnimationTimer),e._timerId||(clearTimeout(e._startDelay),e._startDelay=setTimeout((function(){e._timerId=1,e._loop()}),0))},animateElement:function(t,e,i){t&&e&&i&&(t.animation&&t.animation.stop(),this.addAnimation(t.animation=new Wr(t,e,i)))},onEndAnimation:function(t){this._animationCount?this._endAnimation=t:t()},dispose:function(){this.stop(),this.element=null},stop:function(){this._animations={},this._animationCount=0,(0,Zr.W)(this._timerId),clearTimeout(this._startDelay),clearTimeout(this._endAnimationTimer),this._timerId=null},lock:function(){var t,e,i,r=this._animations;for(t in r)e=r[t].options.unstoppable,i=i||e,e||(r[t].stop(!0),delete r[t]);!i&&this.stop()}};var Jr=(0,Dt.Jj)(),{max:Qr,min:tn,floor:en,round:rn,sin:nn,cos:on,abs:an,PI:sn}=Math,ln=sn/180,un=.5,hn=5,cn={"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,widows:!0,"z-index":!0,zoom:!0},dn="text",pn="stroke",gn="stroke-width",fn="stroke-opacity",mn="font-size",_n="font-style",vn="font-weight",bn="text-decoration",yn="textsAlignment",xn="none",wn=12,Cn="...",Sn=function(){return Object.create?function(t){return Object.create(t)}:function(t){var e=function(){};return e.prototype=t,new e}}(),kn={scaleX:1,scaleY:1,"pointer-events":null},An=(0,Vr.Z)((function(){var t=zt["default"].createElement("div");return t.style.left="-9999px",t.style.position="absolute",{backupContainer:t,backupCounter:0}}));function Tn(t){0===An().backupCounter&&zt["default"].getBody().appendChild(An().backupContainer),++An().backupCounter,t.append({element:An().backupContainer})}function En(t,e){t.append({element:e}),--An().backupCounter,0===An().backupCounter&&zt["default"].getBody().removeChild(An().backupContainer)}var On=function(){var t=1;return function(){return"DevExpress_"+t++}}();function Pn(t){return t&&"string"!==typeof t}function In(t){return zt["default"].createElementNS("http://www.w3.org/2000/svg",t)}function Ln(t,e){return null!==t?"url("+(e?Jr.location.href.split("#")[0]:"")+"#"+t+")":t}function Bn(t,e){var i;for(i in e)t[i]=e[i];return t}function Rn(t,e){return t=t.toString().split("e"),t=rn(+(t[0]+"e"+(t[1]?+t[1]+e:e))),t=t.toString().split("e"),+(t[0]+"e"+(t[1]?+t[1]-e:-e))}var Vn={full:xn,lefttop:"xMinYMin",leftcenter:"xMinYMid",leftbottom:"xMinYMax",centertop:"xMidYMin",center:"xMidYMid",centerbottom:"xMidYMax",righttop:"xMaxYMin",rightcenter:"xMaxYMid",rightbottom:"xMaxYMax"};function Dn(t,e){return e.hatching&&"none"!==tt(e.hatching.direction)?(e=Bn({},e),e.fill=t._hatching=t.renderer.lockHatching(e.fill,e.hatching,t._hatching),delete e.hatching):t._hatching&&(t.renderer.releaseHatching(t._hatching),t._hatching=null),e}function zn(t,e,i,r,n,o){var a,s=!0,l=Rn(o,3)-Rn(n,3);return l&&(an(l)%360===0&&(n=0,o=360,a=!0,o-=.01),n>360&&(n%=360),o>360&&(o%=360),n>o&&(n-=360),s=!1),n*=ln,o*=ln,[t,e,tn(r,i),Qr(r,i),on(n),nn(n),on(o),nn(o),a,en(an(o-n)/sn)%2?"1":"0",s]}var Mn=function(t,e,i,r,n,o,a,s,l,u){return["M",(t+r*n).toFixed(hn),(e-r*o).toFixed(hn),"A",r.toFixed(hn),r.toFixed(hn),0,u,0,(t+r*a).toFixed(hn),(e-r*s).toFixed(hn),l?"M":"L",(t+i*a).toFixed(5),(e-i*s).toFixed(hn),"A",i.toFixed(hn),i.toFixed(hn),0,u,1,(t+i*n).toFixed(hn),(e-i*o).toFixed(hn),"Z"].join(" ")};function Fn(t,e){var i=[["M",0,0]];switch(e){case"line":i=Nn(t);break;case"area":i=Nn(t,!0);break;case"bezier":i=Gn(t);break;case"bezierarea":i=Gn(t,!0)}return i}function Nn(t,e){return Hn(t,Zn,e)}function Gn(t,e){return Hn(t,$n,e)}function Hn(t,e,i){var r,n,o,a=[];if(null!==(r=t[0])&&void 0!==r&&r.length)for(n=0,o=t.length;na&&(n=e.slice(0),s(e,t,i));return n}function jn(t,e){var i=t[t.length-2],r=t[t.length-1];switch(e){case"line":case"area":t[0]="L";break;case"bezier":case"bezierarea":t[0]="C",t[1]=t[3]=t[5]=i,t[2]=t[4]=t[6]=r}}function Kn(t,e,i){var r=t[t.length-1].slice(),n=t.length;for(jn(r,i);n|\/>)/gi,(function(t,i,r,n){return r=(r&&r.match(e)||[]).map((function(t){return t})).join(" "),i+r+n}))}function so(t){var e=[],i=zt["default"].createElement("div");return i.innerHTML=t.replace(/\r/g,"").replace(/\n/g,"
"),no(e,0,i,{},""),oo(e),e}function lo(t){for(var e=t.replace(/\r/g,"").split(/\n/g),i=0,r=[];it)for(t-c<0?t=0:t-=c,e=bo(this.element,this._texts,t),i=0,r=e.length;it&&Oo(s);return h.remove(),this._hasEllipsis=u,u}function po(t){var e;return t&&(e=t.cloneNode(),e.removeAttribute("y"),e.removeAttribute("x")),e||t}function go(t){for(var e=zt["default"].querySelectorAll(t,"title"),i=0;i{for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:{},r=this,n=[],o=!1,a=!1,s=t;ho.call(r);var l=fo(this.element),u=r.renderer.text(Cn).attr(r._styles).append(r.renderer.root),h=u.getBBox().width,{width:c,height:d}=r._getElementBBox();return(c||d)&&(c>t||e&&d>e)&&(t-h<0?s=0:s-=h,n=To(r.element,r._texts,t,s,i),n=Ao(n,s,i,e,parseFloat(this._getLineHeight())),this._texts=n.reduce(((t,e)=>t.concat(e.parts)),[]).filter((t=>""!==t.value)).map((t=>(t.stroke&&t.tspan.parentNode.appendChild(t.stroke),t))).map((t=>(t.tspan.parentNode.appendChild(t.tspan),t))),!this._texts.length&&(this._texts=null),o=!0,this._texts?Bo(this):(this.element.textContent="",a=!0)),u.remove(),r._hasEllipsis=o,l(),{rowCount:n.length,textChanged:o,textIsEmpty:a}}function _o(t,e,i,r){var n,o;if(i<=e&&r>e)for(n=1,o=t.value.length;n<=o;++n)if(i+t.tspan.getSubStringLength(0,n)>e)return n-1}function vo(t){return t.value.length?t.tspan.getSubStringLength(0,t.value.length):0}function bo(t,e,i){var r,n,o,a,s,l=[];if(e)for(r=0,n=e.length;r0?[0]:[],r=t.value.split("").reduce(((t,e,i)=>(" "===e&&t.push(i),t)),i),n=0;while(void 0!==r[n+1]&&t.startBox+t.tspan.getSubStringLength(0,r[n+1])e)return i}function wo(t,e){var{hideOverflowEllipsis:i}=e;return i&&0===t?"":Cn}function Co(t,e,i){var r=wo(e,i);if(t.value.length&&t.tspan.parentNode)for(var n=t.value.length-1;n>=1;n--){if(t.startBox+t.tspan.getSubStringLength(0,n)e&&(l=So(s,e,i,r,o),!l.length))return[]}}if(t.value.length){if("ellipsis"===r.textOverflow&&t.tspan.getSubStringLength(0,t.value.length)>e&&Co(t,i,r),"hide"===r.textOverflow&&t.tspan.getSubStringLength(0,t.value.length)>e)return[]}else t.tspan.parentNode.removeChild(t.tspan);var d=[];return s&&d.push(s),[{commonLength:a.length,parts:d}].concat(l)}function ko(t,e){return t.parts.reduce(((t,i)=>Qr(t,Lo(i,e))),0)}function Ao(t,e,i,r,n){var o=i.textOverflow;if(!isFinite(r)||0===Number(r)||"none"===o)return t;var a=t.reduce(((t,a,s,l)=>{var[u,h]=t,c=ko(a,n);if(h+=c,h{Oo(t)})),"ellipsis"===o){var d=l[s-1];if(d){var p=d.parts[d.parts.length-1];p.hasEllipsis||(0===e||p.endBoxr?(a[0].forEach((t=>{t.parts.forEach((t=>{Oo(t)}))})),[]):a[0]}function To(t,e,i,r,n){if(!e){var o=t.textContent,a={value:o,height:0,line:0};t.textContent="",uo([a],t,"tspan"),e=[a]}return e.reduce(((t,e)=>{var[o,a,s,u,h]=t,c=o[o.length-1];if(u)return[o,a,s,u];if(c&&e.line===h){if(e.startBox=a,a>r&&"none"===n.wordWrap&&"ellipsis"===n.textOverflow)return Oo(e),[o,a,s,u,h];c.parts.push(e),c.commonLength+=e.value.length}else e.startBox=a=0,o.push({commonLength:e.value.length,parts:[e]});if(e.endBox=s=a+vo(e),a=s,(0,l.$K)(i)&&s>i){var d=So(e,i,r,n);d.length?o=o.concat(d.filter((t=>t.parts.length>0))):(o=[],u=!0)}return[o,a,s,u,e.line]}),[[],0,0,!1,0])[0]}function Eo(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Cn,r=t.value.substr(0,e)+i;t.value=t.tspan.textContent=r,t.stroke&&(t.stroke.textContent=r),i===Cn&&(t.hasEllipsis=!0)}function Oo(t){t.tspan.parentNode&&t.tspan.parentNode.removeChild(t.tspan),t.stroke&&t.stroke.parentNode&&t.stroke.parentNode.removeChild(t.stroke)}function Po(t,e,i){var r,n;t._texts=null,t.clear(),null!==e&&(e=""+e,t.renderer.encodeHtml||!/<[a-z][\s\S]*>/i.test(e)&&-1===e.indexOf("&")?/\n/g.test(e)?r=lo(e):i&&(r=[{value:e.trim(),height:0}]):(n=ao(e),r=so(n)),r?r.length&&(t._texts=r,i&&uo(r,t.element,pn),uo(r,t.element,"tspan")):t.element.appendChild(zt["default"].createTextNode(e)))}function Io(t,e,i){t.tspan.setAttribute(e,i),t.stroke&&t.stroke.setAttribute(e,i)}function Lo(t,e){return t.inherits?Vo(t.height,e):t.height||e}function Bo(t){if(t._texts){var e,i,r=t._texts,n=t._settings.x,o=t._getLineHeight(),a=r[0];for(Io(a,"x",n),Io(a,"y",t._settings.y),e=1,i=r.length;e=0){Io(a,"x",n);var s=Lo(a,o);Io(a,"dy",s)}}}function Ro(t,e){if(t._texts&&"center"!==e)for(var i=t._texts,r="left"===e?-1:1,n=Math.max.apply(Math,i.map((t=>vo(t)))),o=0;oo?isNaN(i)?n:t:isNaN(r)?o:e}function Do(t){if(t._texts){var e,i,r,n=t._texts,o=t._settings[pn],a=t._settings[gn],s=t._settings[fn]||1;for(i=0,r=n.length;i=0&&e>=0&&this.root.attr({width:t,height:e}),this},dispose:function(){var t;for(t in this.root.dispose(),this._defs.dispose(),this._animationController.dispose(),Jo.removeByRenderer(this),this)this[t]=null;return this},animationEnabled:function(){return!!this._animation.enabled},updateAnimationOptions:function(t){return Bn(this._animation,t),this},stopAllAnimations:function(t){return this._animationController[t?"lock":"stop"](),this},animateElement:function(t,e,i){return this._animationController.animateElement(t,e,i),this},svg:function(){return this.root.markup()},getRootOffset:function(){return this.root.getOffset()},onEndAnimation:function(t){this._animationController.onEndAnimation(t)},rect:function(t,e,i,r){var n=new Xo(this);return n.attr({x:t||0,y:e||0,width:i||0,height:r||0})},simpleRect:function(){return this._createElement("rect")},circle:function(t,e,i){return this._createElement("circle",{cx:t||0,cy:e||0,r:i||0})},g:function(){return this._createElement("g")},image:function(t,e,i,r,n,o){var a=this._createElement("image",{x:t||0,y:e||0,width:i||0,height:r||0,preserveAspectRatio:Vn[tt(o)]||xn});return a.element.setAttributeNS("http://www.w3.org/1999/xlink","href",n||""),a},path:function(t,e){var i=new Zo(this,e);return i.attr({points:t||[]})},arc:function(t,e,i,r,n,o){var a=new $o(this);return a.attr({x:t||0,y:e||0,innerRadius:i||0,outerRadius:r||0,startAngle:n||0,endAngle:o||0})},text:function(t,e,i){var r=new Yo(this);return r.attr({text:t,x:e||0,y:i||0})},linearGradient:function(t){var e=On(),i=this,r=i._createElement("linearGradient",{id:e}).append(i._defs);return r.id=e,t.forEach((t=>{i._createElement("stop",{offset:t.offset,"stop-color":t["stop-color"]}).append(r)})),r},pattern:function(t,e,i){e=e||{};var r=e.step||6,n=r/2,o=1.5*r,a=i||On(),s="right"===tt(e.direction)?"M "+n+" "+-n+" L "+-n+" "+n+" M 0 "+r+" L "+r+" 0 M "+o+" "+n+" L "+n+" "+o:"M 0 0 L "+r+" "+r+" M "+-n+" "+n+" L "+n+" "+o+" M "+n+" "+-n+" L "+o+" "+n,l=this._createElement("pattern",{id:a,width:r,height:r,patternUnits:"userSpaceOnUse"}).append(this._defs);return l.id=a,this.rect(0,0,r,r).attr({fill:t,opacity:e.opacity}).append(l),new Zo(this).attr({d:s,"stroke-width":e.width||1,stroke:t}).append(l),l},_getPointsWithYOffset:function(t,e){return t.map((function(t,i){return i%2!==0?t+e:t}))},clipShape:function(t,e){var i=On(),r=this._createElement("clipPath",{id:i}).append(this._defs),n=t.apply(this,e).append(r);return n.id=i,n.remove=function(){throw"Not implemented"},n.dispose=function(){return r.dispose(),r=null,this},n},clipRect(t,e,i,r){return this.clipShape(this.rect,arguments)},clipCircle(t,e,i){return this.clipShape(this.circle,arguments)},shadowFilter:function(t,e,i,r,n,o,a,s,l){var u=On(),h=this._createElement("filter",{id:u,x:t||0,y:e||0,width:i||0,height:r||0}).append(this._defs),c=this._createElement("feGaussianBlur",{in:"SourceGraphic",result:"gaussianBlurResult",stdDeviation:a||0}).append(h),d=this._createElement("feOffset",{in:"gaussianBlurResult",result:"offsetResult",dx:n||0,dy:o||0}).append(h),p=this._createElement("feFlood",{result:"floodResult","flood-color":s||"","flood-opacity":l}).append(h),g=this._createElement("feComposite",{in:"floodResult",in2:"offsetResult",operator:"in",result:"compositeResult"}).append(h),f=this._createElement("feComposite",{in:"SourceGraphic",in2:"compositeResult",operator:"over"}).append(h);return h.id=u,h.gaussianBlur=c,h.offset=d,h.flood=p,h.composite=g,h.finalComposite=f,h.attr=function(t){var e={},i={},r={};return"x"in t&&(e.x=t.x),"y"in t&&(e.y=t.y),"width"in t&&(e.width=t.width),"height"in t&&(e.height=t.height),Jn(this,e),"blur"in t&&this.gaussianBlur.attr({stdDeviation:t.blur}),"offsetX"in t&&(i.dx=t.offsetX),"offsetY"in t&&(i.dy=t.offsetY),this.offset.attr(i),"color"in t&&(r["flood-color"]=t.color),"opacity"in t&&(r["flood-opacity"]=t.opacity),this.flood.attr(r),this},h},brightFilter:function(t,e){var i=On(),r=this._createElement("filter",{id:i}).append(this._defs),n=this._createElement("feComponentTransfer").append(r),o={type:t,slope:e};return r.id=i,this._createElement("feFuncR",o).append(n),this._createElement("feFuncG",o).append(n),this._createElement("feFuncB",o).append(n),r},getGrayScaleFilter:function(){if(this._grayScaleFilter)return this._grayScaleFilter;var t=On(),e=this._createElement("filter",{id:t}).append(this._defs);return this._createElement("feColorMatrix").attr({type:"matrix",values:"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 0.6 0"}).append(e),e.id=t,this._grayScaleFilter=e,e},initHatching:function(){var t,e=this._hatchingStorage=this._hatchingStorage||{byHash:{},baseId:On()},i=e.byHash;for(t in i)i[t].pattern.dispose();e.byHash={},e.refToHash={},e.nextId=0},lockHatching:function(t,e,i){var r,n,o=this._hatchingStorage,a=qo(t,e);return o.refToHash[i]!==a&&(i&&this.releaseHatching(i),r=o.byHash[a],r||(n=this.pattern(t,e,o.baseId+"-hatching-"+o.nextId++),r=o.byHash[a]={pattern:n,count:0},o.refToHash[n.id]=a),++r.count,i=r.pattern.id),i},releaseHatching:function(t){var e=this._hatchingStorage,i=e.refToHash[t],r=e.byHash[i];r&&0===--r.count&&(r.pattern.dispose(),delete e.byHash[i],delete e.refToHash[t])}};var Jo=function(){var t=[];return{add:function(e){t.push(e)},remove:function(e){t=t.filter((function(t){return t!==e}))},removeByRenderer:function(e){t=t.filter((function(t){return t.renderer!==e}))},fire:function(){t.forEach((function(t){t()}))}}}(),Qo=i(30057),ta=Math.min,ea=Math.max,ia=Math.round,ra=0,na=1,oa=2,aa={left:ra,center:na,right:oa},sa={top:ra,center:na,bottom:oa},la={horizontal:0,vertical:1},ua={},ha=2;function ca(t,e,i){var r=tt(t);return r in e?e[r]:i}function da(t){var e=ca(t.side,la,1),i=[ca(t.horizontalAlignment,aa,na),ca(t.verticalAlignment,sa,ra)];return{side:e,primary:pa(i[e]),secondary:i[1-e],weak:t.weak,priority:t.priority||0,header:t.header,position:t.position}}function pa(t){return t<2?0:2}function ga(t){return 1-t}function fa(t,e,i,r){return ua[t](e,i,r)}function ma(t,e){return(t>0?-1:1)*e}function _a(t,e,i){var r=t.side,n=t.element.measure([e[2]-e[0],e[3]-e[1]]),o="indside"===t.position?0:i[r],a=n[r]0?(n[t.side]-=t.size[t.side],o[t.primary+t.side]=a[t.primary+t.side],t.element.freeSpace()):t.element.move(a,s)}function ya(){this._targets=[]}function xa(t){var e,i,r=t.length,n=[];for(e=0;ei[2+t.primary]-i[t.primary]&&(i[2+e.primary]=r[2+e.primary]);var a=Ca(t,i);a[2+e.primary]>r[2+e.primary]&&(i[2+e.primary]=r[2+e.primary],a=Ca(t,i)),e.element.move(n),t.element.move(a,o)}},freeSpace:function(){t.element.freeSpace(),e.element.freeSpace()}}}}ua[ra]=function(t,e,i){return[t,ta(e,t+i)]},ua[na]=function(t,e,i){return[ea(t,(t+e-i)/2),ta(e,(t+e+i)/2)]},ua[oa]=function(t,e,i){return[ea(t,e-i),e]},ya.prototype={constructor:ya,dispose:function(){this._targets=null},add:function(t){this._targets.push(t)},forward:function(t,e){var i,r=t.slice(),n=xa(this._targets),o=n.length,a=[];for(i=0;i2&&void 0!==arguments[2]?arguments[2]:[0,0],o=t.slice(),a=t.slice(),s=this._cache,l=0,u=s.length;for(r=0;r{var{handler:r,dispose:n}=Da(t,i);return e(r),n}}function Da(t,e){var i,r=function(){clearTimeout(i),i=setTimeout(t,100)};return{handler:r,dispose(){clearTimeout(i),e(r)}}}function za(t,e,i){var r,n=Va(i);return"windowonly"===tt(e)?r=n((t=>Pa.Z.add(t)),(t=>Pa.Z.remove(t))):!0===e&&(r=n((e=>Ia.Z.observe(t,e)),(()=>Ia.Z.unobserve(t)))),r}var Ma=Math.floor,Fa=Rr.log,Na="rtlEnabled",Ga="dx-sized-element",Ha=yr.Z.prototype.option;function Za(){return!0}function $a(){return!1}function Xa(t,e){return!(t.width===e.width&&t.height===e.height&&t.left===e.left&&t.top===e.top&&t.right===e.right&&t.bottom===e.bottom)}function Ya(t){t.component._eventsStrategy.hasEvent("incidentOccurred")||Fa.apply(null,[t.target.id].concat(t.target.args||[]))}function ja(t){return t.reduce((function(t,e){return e>0&&!t?e:t}),0)}var Ka=function(){var t={_initTemplates(){},ctor(t,e){this.callBase(t,e);var i=zt["default"].createElement("div"),r=e&&(0,l.kE)(e.width)?e.width+"px":"100%",n=e&&(0,l.kE)(e.height)?e.height+"px":this._getDefaultSize().height+"px";zt["default"].setStyle(i,"width",r),zt["default"].setStyle(i,"height",n),zt["default"].setClass(i,Ga),zt["default"].insertElement(t,i)}},e=yr.Z.inherit(t),i=e.inherit;return e.inherit=function(t){for(var e in t)((0,l.mf)(t[e])&&"_"!==e.substr(0,1)&&"option"!==e||"_dispose"===e||"_optionChanged"===e)&&(t[e]=s.ZT);return i.call(this,t)},e};function Ua(t){t.forEach((t=>t()))}var Wa=!(0,Dt.Ym)();function qa(t){return(0,l.$K)(t)&&t>0}var Ja=Wa?Ka():yr.Z.inherit({_eventsMap:{onIncidentOccurred:{name:"incidentOccurred",actionSettings:{excludeValidators:["disabled"]}},onDrawn:{name:"drawn",actionSettings:{excludeValidators:["disabled"]}}},_getDefaultOptions:function(){return(0,u.l)(this.callBase(),{onIncidentOccurred:Ya})},_useLinks:!0,_init:function(){var t=this;t._$element.children("."+Ga).remove(),t.callBase.apply(t,arguments),t._changesLocker=0,t._optionChangedLocker=0,t._asyncFirstDrawing=!0,t._changes=Ir(),t._suspendChanges(),t._themeManager=t._createThemeManager(),t._themeManager.setCallback((function(){t._requestChange(t._themeDependentChanges)})),t._renderElementAttributes(),t._initRenderer();var e=t._useLinks&&t._renderer.root;e&&e.enableLinks().virtualLink("core").virtualLink("peripheral"),t._renderVisibilityChange(),t._attachVisibilityChangeHandlers(),t._toggleParentsScrollSubscription(this._isVisible()),t._initEventTrigger(),t._incidentOccurred=Ra(t.NAME,t._eventTrigger),t._layout=new ka,e&&e.linkAfter("core"),t._initPlugins(),t._initCore(),e&&e.linkAfter(),t._change(t._initialChanges)},_createThemeManager(){return new br(this._getThemeManagerOptions())},_getThemeManagerOptions(){return{themeSection:this._themeSection,fontFields:this._fontFields}},_initialChanges:["LAYOUT","RESIZE_HANDLER","THEME","DISABLED"],_initPlugins:function(){var t=this;(0,h.S6)(t._plugins,(function(e,i){i.init.call(t)}))},_disposePlugins:function(){var t=this;(0,h.S6)(t._plugins.slice().reverse(),(function(e,i){i.dispose.call(t)}))},_change:function(t){this._changes.add(t)},_suspendChanges:function(){++this._changesLocker},_resumeChanges:function(){0===--this._changesLocker&&this._changes.count()>0&&!this._applyingChanges&&(this._renderer.lock(),this._applyingChanges=!0,this._applyChanges(),this._changes.reset(),this._applyingChanges=!1,this._changesApplied(),this._renderer.unlock(),this._optionsQueue&&this._applyQueuedOptions(),this.resolveItemsDeferred(this._legend?[this._legend]:[]),this._optionChangedLocker++,this._notify(),this._optionChangedLocker--)},resolveItemsDeferred(t){this._resolveDeferred(this._getTemplatesItems(t))},_collectTemplatesFromItems:t=>t.reduce(((t,e)=>({items:t.items.concat(e.getTemplatesDef()),groups:t.groups.concat(e.getTemplatesGroups())})),{items:[],groups:[]}),_getTemplatesItems(t){var e=this._collectTemplatesFromItems(t),i=this._getExtraTemplatesItems();return{items:i.items.concat(e.items),groups:i.groups.concat(e.groups),launchRequest:[i.launchRequest],doneRequest:[i.doneRequest]}},_getExtraTemplatesItems:()=>({items:[],groups:[],launchRequest:()=>{},doneRequest:()=>{}}),_resolveDeferred(t){var{items:e,launchRequest:i,doneRequest:r,groups:n}=t,o=this;if(o._setGroupsVisibility(n,"hidden"),o._changesApplying)return o._changesApplying=!1,void Ua(r);var a=!0;Ta.gx.apply(o,e).done((()=>{if(a)o._setGroupsVisibility(n,"visible");else{Ua(i),o._changesApplying=!0;var t=["LAYOUT","FULL_RENDER"];o._asyncFirstDrawing?(t.push("FORCE_FIRST_DRAWING"),o._asyncFirstDrawing=!1):t.push("FORCE_DRAWING"),o._requestChange(t),o._setGroupsVisibility(n,"visible")}})),a=!1},_setGroupsVisibility(t,e){t.forEach((t=>t.attr({visibility:e})))},_applyQueuedOptions:function(){var t=this._optionsQueue;this._optionsQueue=null,this.beginUpdate(),(0,h.S6)(t,(function(t,e){e()})),this.endUpdate()},_requestChange:function(t){this._suspendChanges(),this._change(t),this._resumeChanges()},_applyChanges:function(){var t,e=this._changes,i=this._totalChangesOrder,r=i.length;for(t=0;t{if(qa(e[i])||!(0,Dt.Ym)())return 0;var n=r(t._$element);return n<=1?0:n},o=n(e,"width",(t=>(0,Qo.dz)(t))),a=n(e,"height",(t=>(0,Qo.Cr)(t))),s={width:e.width<=0?0:Ma(ja([e.width,o,r.width])),height:e.height<=0?0:Ma(ja([e.height,a,r.height])),left:ja([i.left,r.left]),top:ja([i.top,r.top]),right:ja([i.right,r.right]),bottom:ja([i.bottom,r.bottom])};return(s.width-s.left-s.right<=0||s.height-s.top-s.bottom<=0)&&(s={width:0,height:0}),s},_updateSize:function(){var t=this._calculateCanvas();(Xa(this._canvas,t)||this.__forceRender)&&(this._canvas=t,this._recreateSizeDependentObjects(!0),this._renderer.resize(t.width,t.height),this._change(["LAYOUT"]))},_recreateSizeDependentObjects:s.ZT,_getMinSize:function(){return[0,0]},_getAlignmentRect:s.ZT,_setContentSize:function(){var t=this._canvas,e=this._layout,i=t.width>0&&t.height>0?[t.left,t.top,t.width-t.right,t.height-t.bottom]:[0,0,0,0];i=e.forward(i,this._getMinSize());var r=this._applySize(i)||i;e.backward(r,this._getAlignmentRect()||r)},_getOption:function(t,e){var i=this._themeManager.theme(t),r=this.option(t);return e?void 0!==r?r:i:(0,u.l)(!0,{},i,r)},_setupResizeHandler:function(){var t=this,e=ot(t._getOption("redrawOnResize",!0),!0);t._disposeResizeHandler&&t._removeResizeHandler(),t._disposeResizeHandler=za(t._$element[0],e,(()=>t._requestChange(["CONTAINER_SIZE"])))},_removeResizeHandler:function(){this._disposeResizeHandler&&(this._disposeResizeHandler(),this._disposeResizeHandler=null)},_onBeginUpdate:s.ZT,beginUpdate:function(){var t=this;return t._initialized&&t._isUpdateAllowed()&&(t._onBeginUpdate(),t._suspendChanges()),t.callBase.apply(t,arguments),t},endUpdate:function(){return this.callBase(),this._isUpdateAllowed()&&this._resumeChanges(),this},option:function(t){var e=this;if(!(e._initialized&&e._applyingChanges&&(arguments.length>1||(0,l.Kn)(t))))return Ha.apply(e,arguments);e._optionsQueue=e._optionsQueue||[],e._optionsQueue.push(e._getActionForUpdating(arguments))},_getActionForUpdating:function(t){var e=this;return function(){Ha.apply(e,t)}},_clean:s.ZT,_render:s.ZT,_optionChanged:function(t){var e=this;if(!e._optionChangedLocker){var i=e.getPartialChangeOptionsName(t),r=[];i.length>0?i.forEach((t=>r.push(e._partialOptionChangesMap[t]))):r.push(e._optionChangesMap[t.name]),r=r.filter((t=>!!t)),e._eventTrigger.change(t.name)?e._change(["EVENTS"]):r.length>0?e._change(r):e.callBase.apply(e,arguments)}},_notify:s.ZT,_changesApplied:s.ZT,_optionChangesMap:{size:"CONTAINER_SIZE",margin:"CONTAINER_SIZE",redrawOnResize:"RESIZE_HANDLER",theme:"THEME",rtlEnabled:"THEME",encodeHtml:"THEME",elementAttr:"ELEMENT_ATTR",disabled:"DISABLED"},_partialOptionChangesMap:{},_partialOptionChangesPath:{},getPartialChangeOptionsName:function(t){var e=this,i=t.fullName,r=i.split(/[.]/),n=t.name,o=t.value,a=this._partialOptionChangesPath[n],s=[];return a&&(!0===a?s.push(n):(a.forEach((t=>{i.indexOf(t)>=0&&s.push(t)})),1===r.length&&("object"===(0,l.dt)(o)?e._addOptionsNameForPartialUpdate(o,a,s):"array"===(0,l.dt)(o)&&o.length>0&&o.every((t=>e._checkOptionsForPartialUpdate(t,a)))&&o.forEach((t=>e._addOptionsNameForPartialUpdate(t,a,s)))))),s.filter(((t,e,i)=>i.indexOf(t)===e))},_checkOptionsForPartialUpdate:function(t,e){return!Object.keys(t).some((t=>-1===e.indexOf(t)))},_addOptionsNameForPartialUpdate:function(t,e,i){var r=Object.keys(t);this._checkOptionsForPartialUpdate(t,e)&&r.forEach((t=>e.indexOf(t)>-1&&i.push(t)))},_visibilityChanged:function(){this.render()},_setThemeAndRtl:function(){this._themeManager.setTheme(this.option("theme"),this.option(Na))},_getRendererOptions:function(){return{rtl:this.option(Na),encodeHtml:this.option("encodeHtml"),animation:this._getAnimationOptions()}},_setRendererOptions:function(){this._renderer.setOptions(this._getRendererOptions())},svg:function(){return this._renderer.svg()},getSize:function(){var t=this._canvas||{};return{width:t.width,height:t.height}},isReady:$a,_dataIsReady:Za,_resetIsReady:function(){this.isReady=$a},_drawn:function(){var t=this;t.isReady=$a,t._dataIsReady()&&t._renderer.onEndAnimation((function(){t.isReady=Za})),t._eventTrigger("drawn",{})}}),Qa=Ja;Pr(Ja);var ts=i(63370),es=Math.round,is={horizontal:0,vertical:0},rs={center:.5,right:1,bottom:1,left:0,top:0};function ns(t){this._options=t}function os(t,e){this._renderElement=t,this._cacheBBox=e}ns.prototype={constructor:ns,position:function(t){var e=t.of.getLayoutOptions(),i=this.getLayoutOptions(),r=t.at,n=t.my,o=t.offset||is,a=-rs[n.horizontal]*i.width+e.x+rs[r.horizontal]*e.width+parseInt(o.horizontal),s=-rs[n.vertical]*i.height+e.y+rs[r.vertical]*e.height+parseInt(o.vertical);this.shift(es(a),es(s))},getLayoutOptions:s.ZT};var as=os.prototype=(0,ts.d9)(ns.prototype);as.constructor=os,as.getLayoutOptions=function(){return this._cacheBBox||this._renderElement.getBBox()},as.shift=function(t,e){var i=this.getLayoutOptions();this._renderElement.move(es(t-i.x),es(e-i.y))};var ss=Number,ls=at(["left","center","right"]),us=at(["top","bottom"]),hs=10;function cs(t){return!!(t&&String(t).length>0)}function ds(t,e,i,r,n){t.attr({text:e}).setMaxSize(i,n,r).textChanged&&t.setTitle(e)}function ps(t){return t>=0?ss(t):hs}function gs(t){var e;return t>=0?e={left:ss(t),top:ss(t),right:ss(t),bottom:ss(t)}:(t=t||{},e={left:ps(t.left),top:ps(t.top),right:ps(t.right),bottom:ps(t.bottom)}),e}function fs(t,e){return t[2]-t[0]e&&this.freeSpace()),this},_correctTitleLength:function(t){var e=this._options,i=e.margin,r=t-i.left-i.right,n=e.placeholderSize;ds(this._titleElement,e.text,r,e,n),this._subtitleElement&&(ss(n)>0&&(n-=this._titleElement.getBBox().height),ds(this._subtitleElement,e.subtitle.text,r,e.subtitle,n),this._shiftSubtitle()),this._updateBoundingRect();var{x:o,y:a,height:s}=this.getCorrectedLayoutOptions();this._clipRect.attr({x:o,y:a,width:t,height:s})},getLayoutOptions:function(){return this._boundingRect||null},shift:function(t,e){var i=this.getLayoutOptions();return this._group.move(t-i.x,e-i.y),this},_updateBoundingRect:function(){var t=this._options,e=t.margin,i=this._boundingRect,r=this._hasText?this._group.getBBox():{width:0,height:0,x:0,y:0,isEmpty:!0};r.isEmpty||(r.height+=e.top+e.bottom-this._baseLineCorrection,r.width+=e.left+e.right,r.x-=e.left,r.y+=this._baseLineCorrection-e.top),t.placeholderSize>0&&(r.height=t.placeholderSize),i.height=r.height,i.width=r.width,i.x=r.x,i.y=r.y},getCorrectedLayoutOptions(){var t=this.getLayoutOptions(),e=this._baseLineCorrection;return(0,u.l)({},t,{y:t.y-e,height:t.height+e})},layoutOptions:function(){return this._hasText?{horizontalAlignment:this._boundingRect.horizontalAlignment,verticalAlignment:this._boundingRect.verticalAlignment,priority:0}:null},measure:function(t){return this.draw(t[0],t[1]),[this._boundingRect.width,this._boundingRect.height]},move:function(t,e){var i=this._boundingRect;fs(t,i)?this.shift(e[0],e[1]):this.shift(Math.round(t[0]),Math.round(t[1]))},freeSpace:function(){this._params.incidentOccurred("W2103"),this._group.linkRemove(),this._boundingRect.width=this._boundingRect.height=0},getOptions:function(){return this._options},changeLink:function(t){this._group.linkRemove(),this._group.linkOn(t,"title")}});var vs={name:"title",init:function(){this._title=new ms({renderer:this._renderer,cssClass:this._rootClassPrefix+"-title",incidentOccurred:this._incidentOccurred}),this._layout.add(this._title)},dispose:function(){this._title.dispose(),this._title=null},customize:function(t){t.addChange({code:"TITLE",handler:function(){this._title.update(this._themeManager.theme("title"),this.option("title"))&&this._change(["LAYOUT"])},isThemeDependent:!0,option:"title",isOptionChange:!0})},fontFields:["title.font","title.subtitle.font"]},bs=Number,ys=Math,xs=ys.round,ws=ys.max,Cs=ys.min,Ss=ys.ceil,ks=l.$K,As=l.mf,Ts=at,Es=tt,Os=u.l,Ps=10,Is=2,Ls=5,Bs="center",Rs="right",Vs="left",Ds="top",zs="bottom",Ms="horizontal",Fs="vertical",Ns="inside",Gs="outside",Hs="none",Zs="height",$s="width",Xs=Ts([Vs,Bs,Rs]),Ys=Ts([Ds,zs]),js=Ts([Fs,Ms]),Ks=Ts([Vs,Rs,Ds,zs]),Us=Ts([Gs,Ns]),Ws=Ts([Vs,Bs,Rs]);function qs(t,e,i){if(t){var r=t.fill;return(0,u.l)({},{state:i,fill:r===Hs?e:r,opacity:t.opacity,hatching:Os({},t.hatching,{step:Ls,width:Is})})}}function Js(t,e,i){var r=Dn(t,e);return r.fill&&0===r.fill.indexOf("DevExpress")&&(r.fill=Ln(r.fill)),r.opacity=r.opacity>=0?r.opacity:1,(0,u.l)({},r,{size:i})}function Qs(t){var e=t.margin;e>=0?(e=bs(t.margin),e={top:e,bottom:e,left:e,right:e}):e={top:e.top>=0?bs(e.top):Ps,bottom:e.bottom>=0?bs(e.bottom):Ps,left:e.left>=0?bs(e.left):Ps,right:e.right>=0?bs(e.right):Ps},t.margin=e}function tl(t,e,i){var r,n;switch(t.itemTextPosition){case Vs:case Rs:r=e.width+7+i.width,n=ws(e.height,i.height);break;case Ds:case zs:r=ws(e.width,i.width),n=e.height+4+i.height}return{width:r,height:n}}function el(t,e){var i={};return i.left=Cs(t.x,e.x),i.top=Cs(t.y,e.y),i.right=ws(t.x+t.width,e.x+e.width),i.bottom=ws(t.y+t.height,e.y+e.height),i}function il(t,e,i,r){var n=e&&i[e[t]];n&&n.renderMarker(n.states[r])}function rl(t,e,i){return t?(Qs(t),t.horizontalAlignment=Xs(t.horizontalAlignment,Rs),t.verticalAlignment=Ys(t.verticalAlignment,t.horizontalAlignment===Bs?zs:Ds),t.orientation=js(t.orientation,t.horizontalAlignment===Bs?Ms:Fs),t.itemTextPosition=Ks(t.itemTextPosition,t.orientation===Ms?zs:Rs),t.position=i?Us(t.position,Gs):Gs,t.itemsAlignment=Ws(t.itemsAlignment,null),t.hoverMode=Es(t.hoverMode),t.customizeText=As(t.customizeText)?t.customizeText:function(){return this[e]},t.customizeHint=As(t.customizeHint)?t.customizeHint:s.ZT,t._incidentOccurred=t._incidentOccurred||s.ZT,t):null}function nl(t,e){return t.rect(0,0,e,e)}function ol(t,e){return t.circle(e/2,e/2,e/2)}function al(t){return"circle"===Es(t)}function sl(t,e,i){return e>=t.left&&e<=t.right&&i>=t.top&&i<=t.bottom}function ll(t,e,i,r){var n={x:0,y:0},o=0,a=0,s=0;if(s="y"===e.direction?r.top+r.bottom:r.left+r.right,t.forEach((function(t,i){var r=t[0],s=t.length;t.forEach((function(t,i){var r=t.offset||e.spacing;n[e.direction]+=t[e.measure]+(i!==s-1?r:0),o=ws(o,n[e.direction])})),n[e.direction]=0,n[e.altDirection]+=r[e.altMeasure]+r.altOffset||e.altSpacing,a=ws(a,n[e.altDirection])})),o+s>e.length)return e.countItem=ul(e,i),!0}function ul(t,e){return t.altCountItem++,Ss(e/t.altCountItem)}function hl(t,e){return t.reduce(((t,i)=>{var r=i.offset||e.spacing;return t+i[e.measure]+r}),0)}function cl(t,e){return t.reduce(((t,i)=>ws(t,hl(i,e))),0)}function dl(t,e,i){var r,n=hl(t,e);switch(e.itemsAlignment){case Rs:r=i-n;break;case Bs:r=(i-n)/2;break;default:r=0}return r}function pl(t){switch(t.itemTextPosition){case zs:return{horizontal:Bs,vertical:Ds};case Ds:return{horizontal:Bs,vertical:zs};case Vs:return{horizontal:Rs,vertical:Bs};case Rs:return{horizontal:Vs,vertical:Bs}}}function gl(t,e,i){var r={};return i%e.countItem===0&&(e.markerOffset?t.push([],[]):t.push([])),e.markerOffset?(r.firstLine=t[t.length-1],r.secondLine=t[t.length-2]):r.firstLine=r.secondLine=t[t.length-1],r}function fl(t,e){var i=t.reduce(((t,i)=>{var r=i?i[e]:t;return ws(t,r)}),0);t.forEach((t=>{t&&(t[e]=i)}))}function ml(t){var e,i,r=t.length,n=t[0].length,o=[];for(e=0;e0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this;e=r._options=rl(e,r._textField,r._allowInsidePosition)||{};var n=e.markerSize;if(this._updated=!0,this._data=t.map((t=>(t.size=bs(t.size>0?t.size:n),t.marker=Js(t,t.states.normal),Object.defineProperty(t.marker,"size",{get:()=>t.size,set(e){t.size=e}}),Object.defineProperty(t.marker,"opacity",{get:()=>t.states.normal.opacity,set(e){t.states.normal.opacity=t.states.hover.opacity=t.states.selection.opacity=e}}),t))),e.customizeItems&&(r._data=e.customizeItems(t.slice())||t),r._boundingRect={width:0,height:0,x:0,y:0},r.isVisible()&&!r._title&&(r._title=new ms({renderer:r._renderer,cssClass:r._titleGroupClass,root:r._legendGroup})),r._title){var o=e.title;i.horizontalAlignment=bl(e),r._title.update(i,o)}return this.erase(),r},isVisible:function(){return this._options&&this._options.visible},draw:function(t,e){var i=this._getItemData();if(this.erase(),!(this.isVisible()&&i&&i.length))return this;if(this._insideLegendGroup=this._renderer.g().enableLinks().append(this._legendGroup),this._title.changeLink(this._insideLegendGroup),this._createBackground(),this._title.hasText()){var r=this._background?2*this._options.paddingLeftRight:0;this._title.draw(t-r,e)}return this._markersGroup=this._renderer.g().attr({class:this._itemGroupClass}).append(this._insideLegendGroup),this._createItems(i),this._updateElementsPosition(t,e),this},_measureElements:function(){var t=this._options,e=0;this._items.forEach((i=>{var r=i.label.getBBox(),n=i.marker.getBBox();i.markerBBox=n,i.markerSize=Math.max(n.width,n.height);var o=tl(t,n,r);i.labelBBox=r,i.bBox=o,e=ws(e,o.height)})),t.equalRowHeight&&this._items.forEach((t=>t.bBox.height=e))},_updateElementsPosition:function(t,e){var i=this._options;this._size={width:t,height:e},this._measureElements(),this._locateElements(i),this._finalUpdate(i);var r=this.getLayoutOptions();(r.width>t||r.height>e)&&this.freeSpace()},_createItems:function(t){var e=this,i=e._options,r=e._renderer,n=vl(i.markerShape);e._markersId={};var o=i.markerTemplate?i.markerTemplate:(t,e)=>{var i=t.marker;n(r,i.size).attr({fill:i.fill,opacity:i.opacity}).append({element:e})},a=e._widget._getTemplate(o),s=e._markersGroup;s.css(st(i.font)),e._deferredItems=[],e._templatesGroups=[],e._items=(t||[]).map(((t,n)=>{var o=t.states,l=o.normal,h=l.fill;t.size=t.marker.size;var c={normal:(0,u.l)(l,{fill:h||i.markerColor||i.defaultColor,state:"normal"}),hover:qs(o.hover,h,"hovered"),selection:qs(o.selection,h,"selected")};t.states=c;var d=r.g().append(s),p=r.g().attr({class:"dxl-marker"}).append(d);e._deferredItems[n]=new Ta.BH,e._templatesGroups.push(p);var g={label:e._createLabel(t,d),marker:p,renderer:r,group:d,tracker:{id:t.id,argument:t.argument,argumentIndex:t.argumentIndex},states:c,itemTextPosition:i.itemTextPosition,markerOffset:0,bBoxes:[],renderMarker(i){t.marker=Js(g,i,t.size),p.clear(),a.render({model:t,container:p.element,onRendered:e._deferredItems[n].resolve})}};return g.renderMarker(c.normal),e._createHint(t,d),void 0!==t.id&&(e._markersId[t.id]=n),g}))},getTemplatesGroups:function(){return this._templatesGroups||[]},getTemplatesDef:function(){return this._deferredItems||[]},_getItemData:function(){var t=this._data||[],e=this._options||{};return e.inverted&&(t=t.slice().reverse()),t.filter((t=>t.visible))},_finalUpdate:function(t){this._adjustBackgroundSettings(t),this._setBoundingRect(t.margin)},erase:function(){var t=this._insideLegendGroup;return t&&t.dispose(),this._insideLegendGroup=this._markersGroup=this._x1=this._x2=this._y2=this._y2=null,this},_locateElements:function(t){this._moveInInitialValues(),this._locateRowsColumns(t)},_moveInInitialValues:function(){this._title.hasText()&&this._title.move([0,0]),this._legendGroup&&this._legendGroup.move(0,0),this._background&&this._background.attr({x:0,y:0,width:0,height:0})},applySelected:function(t){return il(t,this._markersId,this._items,"selection"),this},applyHover:function(t){return il(t,this._markersId,this._items,"hover"),this},resetItem:function(t){return il(t,this._markersId,this._items,"normal"),this},_createLabel:function(t,e){var i=this._getCustomizeObject(t),r=this._options,n=_l(r.itemTextPosition),o=r.customizeText.call(i,i),a=ks(t.textOpacity)?{color:r.font.color,opacity:t.textOpacity}:{};return this._renderer.text(o,0,0).css(st(a)).attr({align:n,class:r.cssClass}).append(e)},_createHint:function(t,e){var i=this._getCustomizeObject(t),r=this._options.customizeHint.call(i,i);ks(r)&&""!==r&&e.setTitle(r)},_createBackground:function(){var t=this._options.position===Ns,e=this._options.backgroundColor,i=e||(t?this._options.containerBackgroundColor:Hs);(this._options.border.visible||(t||e)&&e!==Hs)&&(this._background=this._renderer.rect(0,0,0,0).attr({fill:i,class:this._backgroundClass}).append(this._insideLegendGroup))},_locateRowsColumns:function(t){var e,i=0,r=this._getItemsLayoutOptions(),n=this._items.length;do{e=[],this._createLines(e,r),this._alignLines(e,r),i++}while(ll(e,r,n,t.margin)&&i{var n,o,a=gl(t,e,r),s={width:i.labelBBox.width,height:i.labelBBox.height,element:i.label,bBox:i.labelBBox,pos:pl(e),itemIndex:r},l={width:i.markerBBox.width,height:i.markerBBox.height,element:i.marker,pos:{horizontal:Bs,vertical:Bs},bBox:{width:i.markerBBox.width,height:i.markerBBox.height,x:i.markerBBox.x,y:i.markerBBox.y},itemIndex:r},u=e.markerOffset?"altOffset":"offset";e.inverseLabelPosition?(n=s,o=l):(n=l,o=s),n[u]=e.labelOffset,a.secondLine.push(n),a.firstLine.push(o)}))},_alignLines:function(t,e){var i,r=e.altMeasure;if(t.forEach((t=>fl(t,r))),r=e.measure,e.itemsAlignment){if(e.markerOffset)for(i=0;i{var o=t[0],a=o.altOffset||e.altSpacing;r[e.direction]=dl(t,e,n),t.forEach((t=>{var n=t.offset||e.spacing,o=new os(t.element,t.bBox),a={x:r.x,y:r.y,width:t.width,height:t.height},s=new os(null,a),l=i._items[t.itemIndex];o.position({of:s,my:t.pos,at:t.pos}),l.bBoxes.push(s),r[e.direction]+=t[e.measure]+n})),r[e.altDirection]+=o[e.altMeasure]+a})),this._items.forEach((t=>{var e=el(t.bBoxes[0].getLayoutOptions(),t.bBoxes[1].getLayoutOptions()),r=i._options.columnItemSpacing/2,n=i._options.rowItemSpacing/2;t.tracker.left=e.left-r,t.tracker.right=e.right+r,t.tracker.top=e.top-n,t.tracker.bottom=e.bottom+n}))},_getItemsLayoutOptions:function(){var t=this._options,e=t.orientation,i={itemsAlignment:t.itemsAlignment,orientation:t.orientation},r=this._size.width-(this._background?2*t.paddingLeftRight:0),n=this._size.height-(this._background?2*t.paddingTopBottom:0);return e===Ms?(i.length=r,i.spacing=t.columnItemSpacing,i.direction="x",i.measure=$s,i.altMeasure=Zs,i.altDirection="y",i.altSpacing=t.rowItemSpacing,i.countItem=t.columnCount,i.altCountItem=t.rowCount,i.marginTextLabel=4,i.labelOffset=7,t.itemTextPosition!==zs&&t.itemTextPosition!==Ds||(i.labelOffset=4,i.markerOffset=!0)):(i.length=n,i.spacing=t.rowItemSpacing,i.direction="y",i.measure=Zs,i.altMeasure=$s,i.altDirection="x",i.altSpacing=t.columnItemSpacing,i.countItem=t.rowCount,i.altCountItem=t.columnCount,i.marginTextLabel=7,i.labelOffset=4,t.itemTextPosition!==Rs&&t.itemTextPosition!==Vs||(i.labelOffset=7,i.markerOffset=!0)),i.countItem||(i.altCountItem?i.countItem=Ss(this._items.length/i.altCountItem):i.countItem=this._items.length),t.itemTextPosition!==Ds&&t.itemTextPosition!==Vs||(i.inverseLabelPosition=!0),i.itemTextPosition=t.itemTextPosition,i.altCountItem=i.altCountItem||Ss(this._items.length/i.countItem),i},_adjustBackgroundSettings:function(t){if(this._background){var e=t.border,i=this._calculateTotalBox(),r={x:xs(i.x-t.paddingLeftRight),y:xs(i.y-t.paddingTopBottom),width:xs(i.width)+2*t.paddingLeftRight,height:xs(i.height),opacity:t.backgroundOpacity};e.visible&&e.width&&e.color&&e.color!==Hs&&(r["stroke-width"]=e.width,r.stroke=e.color,r["stroke-opacity"]=e.opacity,r.dashStyle=e.dashStyle,r.rx=e.cornerRadius||0,r.ry=e.cornerRadius||0),this._background.attr(r)}},_setBoundingRect:function(t){if(this._insideLegendGroup){var e=this._calculateTotalBox();e.height+=t.top+t.bottom,e.widthWithoutMargins=e.width,e.width+=t.left+t.right,e.x-=t.left,e.y-=t.top,this._boundingRect=e}},_calculateTotalBox:function(){var t=this._markersGroup.getBBox(),e=this._title.getCorrectedLayoutOptions(),i=this._insideLegendGroup.getBBox(),r=this._background?2*this._options.paddingTopBottom:0;return i.height=t.height+e.height+r,e.width>i.width&&(i.width=e.width),i},getActionCallback:function(t){var e=this;return e._options.visible?function(i){e[i](t.index)}:s.ZT},getLayoutOptions:function(){var t=this._options,e=this._insideLegendGroup?this._boundingRect:{width:0,height:0,x:0,y:0};return t?(e.verticalAlignment=t.verticalAlignment,e.horizontalAlignment=t.horizontalAlignment,t.orientation===Ms||t.horizontalAlignment===Bs?(e.cutLayoutSide=t.verticalAlignment,e.cutSide="vertical"):(e.cutLayoutSide=t.horizontalAlignment,e.cutSide="horizontal"),e.position={horizontal:t.horizontalAlignment,vertical:t.verticalAlignment},e):null},shift:function(t,e){var i={};return this._insideLegendGroup&&this._insideLegendGroup.attr({translateX:t-this._boundingRect.x,translateY:e-this._boundingRect.y}),this._title&&this._shiftTitle(this._boundingRect.widthWithoutMargins),this._markersGroup&&this._shiftMarkers(),this._insideLegendGroup&&(i=this._legendGroup.getBBox()),this._x1=i.x,this._y1=i.y,this._x2=i.x+i.width,this._y2=i.y+i.height,this},_shiftTitle:function(t){var e=this._title,i=e.getCorrectedLayoutOptions();if(i&&e.hasText()){var r=t-(this._background?2*this._options.paddingLeftRight:0),n=e.getOptions(),o=i.y+n.margin.top,a=0;n.verticalAlignment===zs&&this._markersGroup&&(o+=this._markersGroup.getBBox().height),n.horizontalAlignment===Rs?a=r-i.width:n.horizontalAlignment===Bs&&(a=(r-i.width)/2),e.shift(a,o)}},_shiftMarkers:function(){var t=this._title.getLayoutOptions(),e=this._markersGroup.getBBox(),i=this._title.getOptions()||{},r=0,n=0;t.width>e.width&&this._options.horizontalAlignment===Bs&&(r=t.width/2-e.width/2),i.verticalAlignment===Ds&&(n=t.height),0===r&&0===n||(this._markersGroup.attr({translateX:r,translateY:n}),this._items.forEach((t=>{t.tracker.left+=r,t.tracker.right+=r,t.tracker.top+=n,t.tracker.bottom+=n})))},getPosition:function(){return this._options.position},coordsIn:function(t,e){return t>=this._x1&&t<=this._x2&&e>=this._y1&&e<=this._y2},getItemByCoord:function(t,e){var i=this._items,r=this._insideLegendGroup;t-=r.attr("translateX"),e-=r.attr("translateY");for(var n=0;n{t.bBoxes=[]})),this._updateElementsPosition(t[0],t[1]));var e=this.getLayoutOptions();return[e.width,e.height]},move:function(t){this.shift(t[0],t[1])},freeSpace:function(){this._options._incidentOccurred("W2104"),this.erase()}});var Cl=i(22561),Sl={string:function(t){return(0,l.$K)(t)?""+t:t},numeric:function(t){if(!(0,l.$K)(t))return t;var e=Number(t);return isNaN(e)&&(e=void 0),e},datetime:function(t){if(!(0,l.$K)(t))return t;var e,i=Number(t);return e=isNaN(i)?Cl.Z.deserializeDate(t):new Date(i),isNaN(Number(e))&&(e=void 0),e}};function kl(t){return"numeric"===t||"datetime"===t||"string"===t?t:""}var Al=function(t){return Sl[kl(t)]||s.ZT},Tl="string",El="numeric",Ol="datetime",Pl="discrete",Il="semidiscrete",Ll="continuous",Bl="logarithmic",Rl="valueType",Vl="argumentType",Dl=at([Tl,El,Ol]),zl=Array.isArray;function Ml(t,e,i,r){r>=0&&t.slice(r).forEach((function(t){(0,l.$K)(t[i])&&(e[i]+=t[i],t[i]=void 0)}))}function Fl(t){t.forEach((function(t){t.valueType=t.valueAxisType=null,t.series.forEach((function(t){t.updateDataType({})})),t.valueAxis&&t.valueAxis.resetTypes(Rl)}))}function Nl(t,e,i){var r=e?function(t,e){return t-e}:function(t,e){return e-t};return t.sort((function(t,e){var n=i(t),o=i(e),a=(0,l.$K)(n)?1:0,s=(0,l.$K)(o)?1:0;return a&&s?r(n,o):r(a,s)})),t}function Gl(t){t&&t.forEach((function(t){t.resetTypes(Vl)}))}function Hl(t,e){var i=[];return t.forEach((function(t){var r=e(t);void 0!==r&&i.push(r)})),i}function Zl(t,e){var i=t.argumentOptions&&t.argumentOptions.categories;t.groups.forEach((function(t,i){var r=t.valueOptions&&t.valueOptions.categories;r&&(t.valueOptions.categories=Hl(r,e[i+1]))})),i&&(t.argumentOptions.categories=Hl(i,e[0]))}function $l(t){return t}function Xl(t,e){var i=e;return e===Tl||(0,l.HD)(t)?i=Tl:e===Ol||(0,l.J_)(t)?i=Ol:(0,l.kE)(t)&&(i=El),i}function Yl(t,e,i,r){return t!==Tl||e!==Ll&&e!==Bl&&e!==Il||r("E2002"),e===Bl?Bl:i||e===Pl||t===Tl?Pl:e===Il?Il:Ll}function jl(t,e,i){t&&i((0,l.kE)(t)||(0,l.J_)(t)||(0,l.HD)(t)?"E2004":"E2003",[e])}function Kl(t,e,i){var r=t?Al(t):$l,n=e!==Pl?function(t){return isFinite(t)||void 0===t?t:null}:$l;return function(t,e){var o=n(r(t));return void 0===o&&jl(t,e,i),o}}function Ul(t,e){var i,r,n=Kl(t.argumentType,t.argumentAxisType,e),o=[n],a={},s=[];for(var l in t.groups.forEach((function(t,s){t.series.forEach((function(l){r=Kl(t.valueType,t.valueAxisType,e),i=Kl(El,Ll,e),a[l.getArgumentField()]=n,l.getValueFields().forEach((function(t){o[s+1]=r,a[t]=r})),l.getSizeField()&&(a[l.getSizeField()]=i)}))})),a)s.push([l,a[l]]);return s.length&&Zl(t,o),s}function Wl(t,e){var i,r,n,o=e.length,a=(0,u.l)({},t);for(i=0;in)break;return r}function Ql(t,e,i,r){r=r||{};var n=r.mode,o={};if(n&&"none"!==n){o[e]=String(r.groupName||"others"),o[i]=0;var a=Nl(t.slice(),!1,(function(t){return t[i]}));Ml(a,o,i,"smallValueThreshold"===n?Jl(a,i,r.threshold):r.topCount),o[i]&&t.push(o)}}function tu(t,e){var i=e.groups[0]&&e.groups[0].series[0],r=i&&("pie"===i.type||"doughnut"===i.type||"donut"===i.type);r&&e.groups.forEach((function(e){e.series.forEach((function(e){Ql(t,e.getArgumentField(),e.getValueFields()[0],e.getOptions().smallValuesGrouping)}))}))}function eu(t,e,i){i[t]||(e.push(t),i[t]=!0)}function iu(t){var e=[],i={};return t.groups.forEach((function(t){t.series.forEach((function(t){eu(t.getArgumentField(),e,i)}))})),e}function ru(t,e){var i=t-e;return isNaN(i)?(0,l.$K)(t)?(0,l.$K)(e)?0:-1:1:i}function nu(t,e){return t.slice().sort((function(t,i){return ru(t[e],i[e])}))}function ou(t,e){return t.slice().sort(e)}function au(t,e){return t.series.forEach((function(i){i.getValueFields().forEach((function(i){t.valueType=Xl(e[i],t.valueType)}))})),t.valueType}function su(t){var e={};return t.forEach((function(t,i){e[t]=i})),function(t,i){return Nl(t.slice(),!0,(function(t){return e[t[i]]}))}}function lu(t,e,i,r){var n,o={},a=e.argumentAxisType===Pl,s=a&&e.argumentOptions&&e.argumentOptions.categories,u=function(t){return t},h=i.sortingMethod;return!s&&(0,l.mf)(h)&&(t=ou(t,h)),a&&(e.categories=hu(t,r,s)),s||!(0,l.mf)(h)&&e.argumentType===Tl&&!i._skipArgumentSorting?u=su(e.categories):!0===h&&e.argumentType!==Tl&&(u=nu,n=a),r.forEach((function(e){o[e]=u(t,e)})),n&&(e.categories=e.categories.sort(ru)),o}function uu(t,e){return-1===t.map((function(t){return t.valueOf()})).indexOf(e.valueOf())}function hu(t,e,i){var r=i?i.slice():[];return e.forEach((function(e){t.forEach((function(t){var i=t[e];(0,l.$K)(i)&&uu(r,i)&&r.push(i)}))})),r}function cu(t,e,i){return t.forEach((function(t){i.argumentType=Xl(e[t.getArgumentField()],i.argumentType)})),i.argumentType}function du(t,e,i){var r,n=[],o=[],a=e.argumentOptions&&Dl(e.argumentOptions.argumentType);e.groups.forEach((function(t){if(t.series.length){var i=t.valueOptions&&Dl(t.valueOptions.valueType);t.valueType=i,e.argumentType=a,!i&&n.push(t),!a&&o.push(t)}})),(n.length||o.length)&&(r=n.map((function(t,e){return e})),t.some((function(t){var a;if(n.forEach((function(e,i){au(e,t)&&r.indexOf(i)>=0&&r.splice(i,1)})),a||o.forEach((function(i){a=cu(i.series,t,e)})),!i&&a&&0===r.length)return!0})))}function pu(t,e){var i=t.argumentOptions||{},r=i&&i.categories||[],n=Yl(t.argumentType,i.type,!!r.length,e);t.groups.forEach((function(i){var r=i.valueOptions||{},o=r.categories||[],a=Yl(i.valueType,r.type,!!o.length,e);i.series.forEach((function(e){var o={};o.argumentAxisType=n,o.valueAxisType=a,t.argumentAxisType=t.argumentAxisType||o.argumentAxisType,i.valueAxisType=i.valueAxisType||o.valueAxisType,o.argumentType=t.argumentType,o.valueType=i.valueType,o.showZero=r.showZero,e.updateDataType(o)})),i.valueAxisType=i.valueAxisType||a,i.valueAxis&&(i.valueAxis.setTypes(i.valueAxisType,i.valueType,Rl),i.valueAxis.validate())})),t.argumentAxisType=t.argumentAxisType||n,t.argumentAxes&&t.argumentAxes.forEach((function(e){e.setTypes(t.argumentAxisType,t.argumentType,Vl),e.validate()}))}function gu(t,e){var i,r,n,o,a=[],s=(0,l.$K)(t),u=s&&!zl(t);if(s&&!u)for(i=0,r=t.length,n=0;i0&&(i=t.substr(r+1),t=t.substr(0,r)),xu(e[t],i)}function Cu(t,e){var i=t,r=!0;while(r){var n=i.indexOf(vu),o=i.indexOf(bu);if(n>=0&&o>0){var a=i.substring(n+1,o),s=wu(a,e);i=i.substr(0,n)+s+i.substr(o+1)}else r=!1}return i}var Su=mu.Z.format,ku=Math,Au=ku.round,Tu=ku.floor,Eu=ku.abs,Ou=12,Pu=8,Iu=4;function Lu(t,e){var i,r=1/0;return(0,h.S6)(e,(function(e,n){var o=t[0]-n[0],a=t[1]-n[1],s=o*o+a*a;sa&&n[0]u&&n[1]e.x+e.width||t.x+t.widthe.x+e.r||t.x+t.width=u&&u>=s||n<=u&&u<=s)&&t.push([(u-n)*(o-r)/(s-n)+r,u]):(r>=a&&a>=o||r<=a&&a<=o)&&t.push([a,(a-r)*(s-n)/(o-r)+n]),t}),[]),h},isHorizontal:function(t,e){return t.x>e.x||e.x>t.x+t.width},getFigureCenter:Vu.getFigureCenter,findFigurePoint:function(t,e,i){if(!i)return[t.x,t.y];var r=e[0],n=Au(t.x+(t.y-e[1])/Math.tan(W(t.angle))),o=[t.x,t.y,n,e[1]];return t.x<=n&&n<=r||r<=n&&n<=t.x||(Eu(t.x-r)0&&t.stroke&&"none"!==t.stroke)}function Nu(t){return t&&t["stroke-width"]>0&&t.stroke&&"none"!==t.stroke}function Gu(t,e){var i=e.format;return t.valueText=Su(t.value,i),t.argumentText=Su(t.argument,e.argumentFormat),void 0!==t.percent&&(t.percentText=Su(t.percent,{type:"percent",precision:i&&i.percentPrecision})),void 0!==t.total&&(t.totalText=Su(t.total,i)),void 0!==t.openValue&&(t.openValueText=Su(t.openValue,i)),void 0!==t.closeValue&&(t.closeValueText=Su(t.closeValue,i)),void 0!==t.lowValue&&(t.lowValueText=Su(t.lowValue,i)),void 0!==t.highValue&&(t.highValueText=Su(t.highValue,i)),void 0!==t.reductionValue&&(t.reductionValueText=Su(t.reductionValue,i)),e.customizeText?e.customizeText.call(t,t):e.displayFormat?Cu(e.displayFormat,t):t.valueText}function Hu(t){this._renderer=t.renderer,this._container=t.labelsGroup,this._point=t.point,this._strategy=t.strategy,this._rowCount=1}Hu.prototype={constructor:Hu,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(){Mu(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=Gu(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?st(i.attributes.font):{}),Fu(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})):Mu(this,"_background"),Nu(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})):Mu(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-=Pu,t.y-=Iu,t.width+=2*Pu,t.height+=2*Iu,this._background.attr(t)),this._bBoxWithoutRotation=(0,u.l)({},t);var e=this._options.rotationAngle||0;this._insideGroup.rotate(e,t.x+t.width/2,t.y+t.height/2),t=nt(t,[t.x+t.width/2,t.y+t.height/2],-e),this._bBox=t},getFigureCenter(){var t=this._figure,e=this._strategy||zu(t);return e.getFigureCenter(t)},_getConnectorPoints:function(){var t,e,i=this._figure,r=this._options,n=this._strategy||zu(i),o=this._shiftBBox(this._bBoxWithoutRotation),a=this.getBoundingRect(),s=[];if(!n.isLabelInside(o,i,"inside"!==r.position)){e=n.isHorizontal(o,i);var l=this.getFigureCenter();s=n.prepareLabelPoints(o,a,e,-r.rotationAngle||0,l),t=Lu(l,s),s=n.findFigurePoint(i,t,e),s=s.concat(t)}return n.adjustPoints(s)},fit:function(t){var e=this._background?2*Pu: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&&Mu(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=Au(t-this._bBox.x),translateY:this._y=Au(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:Fu(t.background),horizontalOffset:t.horizontalOffset,verticalOffset:t.verticalOffset,radialOffset:t.radialOffset,position:t.position,connectorOffset:(Nu(t.connector)?Ou:0)+(Fu(t.background)?Pu:0)}}};var Zu=(0,Dt.Jj)(),$u=u.l,Xu=Math,Yu=Xu.round,ju=Xu.floor,Ku=Xu.ceil,Uu=20,Wu=20,qu=10,Ju="canvas_position_default";function Qu(t){return[-t,-t,t,-t,t,t,-t,t,-t,-t]}function th(t){var e=Ku(t);return[-e,0,0,-e,e,0,0,e,-e,0]}function eh(t){var e=Ku(t),i=ju(e/2),r=Ku(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 ih(t){return[-t,-t,t,-t,0,t,-t,-t]}function rh(t){return[-t,t,t,t,0,-t,-t,t]}var nh={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 Hu({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(0,l.$K)(t)&&("string"===typeof t||(0,l.$K)(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,o=this._checkImage(t.image)!==this._checkImage(e.image);return!(!n&&!o)},_populatePointShape:function(t,e){switch(t){case"square":return Qu(e);case"polygon":return th(e);case"triangle":case"triangleDown":return ih(e);case"triangleUp":return rh(e);case"cross":return eh(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=Ju},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||Uu,n=i.height||Wu;return t.image(-Yu(.5*r),-Yu(.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||Uu,n=i.height||Wu;return{x:t-Yu(r/2),y:e-Yu(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.ZT,_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(Yu(e.x),Yu(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),o=this._getGraphicBBox(),a="inside"===t.getLayoutOptions().position,s=qu;return this._isPointInVisibleArea(i,o)&&(this._options.rotated?(i.minX>e.x&&(e.x=a?i.minX:n.x+n.width+s),i.maxXe.y&&(e.y=i.minY),i.maxYe.x&&(e.x=i.minX),i.maxXe.y&&(e.y=a?i.minY:n.y+n.height+s),i.maxY0&&(m=this._getErrorBarBaseEdgeLength()*n.edgeLength),m=ju(parseInt(m)/2),g&&(u=this._baseErrorBarPos),f&&(s=this._baseErrorBarPos),"none"!==c&&(0,l.$K)(s)&&(0,l.$K)(u)&&(0,l.$K)(a)?(!f&&o.push([a-m,s,a+m,s]),o.push([a,s,a,u]),!g&&o.push([a+m,u,a-m,u]),r.rotated&&(0,h.S6)(o,(function(t,e){e.reverse()})),i=this._getErrorBarSettings(n),this._errorBar?(i.points=o,this._errorBar.attr(i)):this._errorBar=t.path(o,"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,o=this.minValue/t||0,a=n-o;this._label.setDataField("percent",a),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=o||this.minValue)},_storeTrackerR:function(){var t=Zu.navigator,e=this._options.styles.normal.r,i=(0,Dt.l$)("ontouchstart")||t.msPointerEnabled&&t.msMaxTouchPoints||t.pointerEnabled&&t.maxTouchPoints?20:6;return this._options.trackerR=e0?t?"right":"top":t?"left":"bottom"},_getFormatObject:function(t){var e=this._label.getData();return $u({},e,{argumentText:t.formatValue(this.initialArgument,"argument"),valueText:t.formatValue(this.initialValue)},(0,l.$K)(e.percent)?{percentText:t.formatValue(e.percent,"percent")}:{},(0,l.$K)(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&&(0,l.$K)(this.lowError)?this.lowError:this.value,n="low"!==i&&(0,l.$K)(this.highError)?this.highError:this.value;return rn?r:n}return this.value}},oh=u.l,ah=Math,sh=ah.floor,lh=ah.abs,uh="canvas_position_default",hh=9,ch=4,dh="right",ph="left",gh="top",fh="bottom";function mh(t){var e=t.initialValue,i=t._getValTranslator().getBusinessRange().invert,r="discrete"===t.series.valueAxisType,n=t.series.isFullStackedSeries(),o=!r&&(e>=0&&!i||e<0&&i)||r&&!i||n;return o?gh:fh}var _h=oh({},nh,{correctCoordinates(t){var e=sh(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=mh(this);return this._options.rotated&&(t=t===gh?dh:ph),t},_getLabelCoords:function(t){var e;return e=0===this.initialValue&&this.series.isFullStackedSeries()?this._options.rotated?this._getLabelCoordOfPosition(t,dh):this._getLabelCoordOfPosition(t,gh):"inside"===t.getLayoutOptions().position?this._getLabelCoordOfPosition(t,"inside"):nh._getLabelCoords.call(this,t),e},_drawLabel:function(){this._label.pointPosition="inside"!==this._label.getLayoutOptions().position&&mh(this),nh._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.heighti.x+i.width||e.x+r.width=0,r=this._getValTranslator().getBusinessRange().invert,{x:n,y:o,width:a,height:s}=this;return this._options.rotated?(e=o+s/2,t=r?i?n:n+a:i?n+a:n):(t=n+a/2,e=r?i?o+s:o:i?o:o+s),{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:te[1]?e[1]:t},_getErrorBarBaseEdgeLength(){return this._options.rotated?this.height:this.width},_translateErrorBars:function(t){nh._translateErrorBars.call(this),(this._errorBarPost[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",o=this._getArgTranslator(),a=this._getValTranslator(),s=this.series.getArgumentAxis().getVisibleArea(),l=this.series.getValueAxis().getVisibleArea(),u=o.translate(this.argument),h=a.translate(this.value,1),c=a.translate(this.minValue,-1);this[i]=u=null===u?u:u+(this[i+"Correction"]||0),this["v"+e]=h,this["v"+i]=u+this[n]/2,h=this._truncateCoord(h,l),c=this._truncateCoord(c,l),this[r]=lh(h-c),h=hs[1]&&(this[n]=s[1]-this[i]))},_updateMarker:function(t,e){this.graphic.smartAttr(oh({},e,t?{}:this.getMarkerCoords()))},getMarkerCoords:function(){var t=this.x,e=this.y,i=this.width,r=this.height,n=this.series.getArgumentAxis(),o=this._options.rotated;if(n.getAxisPosition){var a=n.getOptions(),s=Math.round(a.width/2),l=n.getAxisPosition();if(a.visible)if(o){var u=this.minX===this.defaultX&&this.minX===l-n.getAxisShift();t+=u?s:0,i-=u?s:0,i<0&&(i=0)}else r-=this.minY===this.defaultY&&this.minY===l-n.getAxisShift()?s: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}}),vh=u.l,bh=20,yh=vh({},nh,{correctCoordinates:function(t){this.bubbleSize=t/2},_drawMarker:function(t,e,i){var r=vh({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:i3&&void 0!==arguments[3]?arguments[3]:{x:0,y:0,width:0,height:0},a=this,s=q(a.middleAngle),l=a.radiusInner,u=a.radiusOuter,h="columns"===t;return"inside"===t?(r=l+(u-l)/2+i,n=a.centerX+r*s.cos-o.width/2):(r=e+i,n=s.cos>.1||h&&s.cos>=0?a.centerX+r*s.cos:s.cos<-.1||h&&s.cos<0?a.centerX+r*s.cos-o.width:a.centerX+r*s.cos-o.width/2),{x:n,y:wh(a.centerY-r*s.sin-o.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,o=i.getLayoutOptions(),a=this._getVisibleArea(),s=a.maxX-n,l=a.minX,u=U(this.middleAngle),h=this.centerX,c=o.connectorOffset,d=t.x;return"columns"===o.position?(d=u<=90||u>=270?s:l,t.x=d):"inside"!==o.position&&e&&(u<=90||u>=270?d-ch&&(d=h-n-c),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(wh(i.x),wh(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.yi.maxX?r=i.maxX-e.width:t.x0?o=r.maxX-this.centerX-this.radiusLabels:"inside"===n?o>r.maxX-r.minX&&(o=r.maxX-r.minX):t&&i.xthis.centerX?o=Math.floor((r.maxX-r.minX)/2):i.x+o>r.maxX?o=r.maxX-i.x:i.xthis.radiusOuter||0===o)&&(i=Sh(r/o)*kh*(n>0?-1:1),i<0&&(i+=360),a===s&&Ah(this.toAngle-this.fromAngle)>1e-4||(a>=s?i<=a&&i>=s:!(i>=a&&i<=s)))}}),Oh=u.l,Ph=Math,Ih=Ph.abs,Lh=Ph.min,Bh=Ph.max,Rh=Ph.round,Vh=20,Dh=20,zh=Oh({},nh,{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 Hu(t),this._bottomLabel=new Hu(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),o=this._getPositionFromLocation(t);return e=i.visible?n?this._getImageBBox(o.x,o.y):this._getSymbolBBox(o.x,o.y,i.styles.normal.r):{x:o.x,y:o.y,width:0,height:0},e},_getPositionFromLocation:function(t){var e,i,r="top"===t;return this._options.rotated?(e=r?Bh(this.x,this.minX):Lh(this.x,this.minX),i=this.y):(e=this.x,i=r?Lh(this.y,this.minY):Bh(this.y,this.minY)),{x:e,y:i}},_checkOverlay:function(t,e,i){return ts&&(l=s-h-e[n],u+=l,h+=l),{coord1:u,coord2:h}},_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.yn,c=u[0]>a&&u[0]>o||u[1]a,i=u[0]=o,r&&(t=e,e=i,i=t)),this.visibleTopMarker=e,this.visibleBottomMarker=i,s},getTooltipParams:function(){var t,e,i=this._options.rotated,r=i?Lh(this.x,this.minX):Lh(this.y,this.minY),n=i?"width":"height",o=this._getVisibleArea(),a=i?o.minX:o.minY,s=i?o.maxX:o.maxY,l=Bh(a,r),u=Lh(s,r+this[n]);return i?(e=this.y,t=l+(u-l)/2):(t=this.x,e=l+(u-l)/2),{x:t,y:e,offset:0}},_translate:function(){var t=this._options.rotated;nh._translate.call(this),this.height=t?0:Ih(this.minY-this.y),this.width=t?Ih(this.x-this.minX):0},hasCoords:function(){return nh.hasCoords.call(this)&&!(null===this.minX||null===this.minY)},_updateData:function(t){nh._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||Vh,height:e.height||Dh,translateX:t.translateX,translateY:t.translateY}},getCrosshairData:function(t,e){var i=this._options.rotated,r=this.minX,n=this.minY,o=this.vx,a=this.vy,s=this.value,l=this.minValue,u=this.argument,h={axis:this.series.axis,x:o,y:a,yValue:s,xValue:u};return i?(h.yValue=u,Ih(o-t)=Ih(n-e)&&(h.y=n,h.yValue=l),h},_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),o=t.formatValue(i);return{argument:r,argumentText:t.formatValue(r,"argument"),valueText:n+" - "+o,rangeValue1Text:n,rangeValue2Text:o,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.ZT,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.minValue10?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,o=this.lowY,a=this._options.rotated;return n===o&&(n=a?n+Xh:n-Xh,o=a?o-Xh:o+Xh),a?(t=Hh(o,n),e=this.x-this.width/2,i=Gh(o-n),r=this.width):(t=this.x-this.width/2,e=Hh(o,n),i=this.width,r=Gh(o-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,o=this.highY;if(t){var a=this.series.getValueAxis().getVisibleArea();o=this._truncateCoord(o,a),n=this._truncateCoord(n,a)}var s={x:e?n:i-$h(r/2),y:e?i-$h(r/2):o,width:e?o-n:r,height:e?r:n-o};if(t){var l="top"===t;this._options.rotated?(s.x=l?s.x+s.width:s.x,s.width=0):(s.y=l?s.y:s.y+s.height,s.height=0)}return s},getTooltipParams:function(t){if(this.graphic){var e=Hh(this.lowY,this.highY),i=Zh(this.lowY,this.highY),r=this._getVisibleArea(),n=this._options.rotated,o=n?r.minX:r.minY,a=n?r.maxX:r.maxY,s=Zh(o,e),l=Hh(a,i),u=this.getCenterCoord();return"edge"===t&&(u[n?"x":"y"]=n?l:s),u.offset=0,u}},getCenterCoord(){if(this.graphic){var t,e,i=Hh(this.lowY,this.highY),r=Zh(this.lowY,this.highY),n=this._getVisibleArea(),o=this._options.rotated,a=o?n.minX:n.minY,s=o?n.maxX:n.maxY,l=Zh(a,i),u=Hh(s,r),h=l+(u-l)/2;return o?(e=this.x,t=h):(t=this.x,e=h),{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=Hh(this.lowY,this.highY)+Gh(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,o=n?t:e,a=this.argument,s="low";return Gh(this.lowY-o)=Gh(this.openY-o)&&(i=this.openY,s="open"),Gh(i-o)>=Gh(this.highY-o)&&(i=this.highY,s="high"),r=n?{y:this.vy,x:i,xValue:this[s+"Value"],yValue:a}:{x:this.vx,y:i,xValue:a,yValue:this[s+"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.openValuer&&(r=e.minX),e.maxXn&&(n=e.minY),e.maxY=0?e.radius:null;this.vx=U(e.angle),this.vy=this.radiusOuter=this.radiusLabels=n,this.radiusLabels+=Qh,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)=>(0,l.$K)(t)&&t<=e,_translateErrorBars:function(){var t=this._options.errorBars,e=this._getValTranslator();t&&((0,l.$K)(this.lowError)&&(this._lowErrorCoord=this.centerY-e.translate(this.lowError)),(0,l.$K)(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=q(-this.angle),e=this._getValTranslator().translate(rc),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=nh._getErrorBarSettings.call(this,t,e);return i.rotate=tc-this.angle,i.rotateX=this.centerX,i.rotateY=this.centerY,i},getCoords:function(t){return t?this.getDefaultCoords():{x:this.x,y:this.y}}}),oc=Wh({},_h,{_translateErrorBars:nc._translateErrorBars,_getErrorBarSettings:nc._getErrorBarSettings,_moveLabelOnCanvas:nc._moveLabelOnCanvas,_getLabelCoords:Eh._getLabelCoords,_getElementCoords:Eh._getElementCoords,_getLabelConnector:Eh._getLabelConnector,getTooltipParams:Eh.getTooltipParams,_getLabelPosition:Eh._getLabelPosition,_getCoords:nc._getCoords,_translate(){var t=this._getValTranslator(),e=t.getBusinessRange(),i=t.isInverted()?t.translate(ec):t.translate(ic);this.radiusInner=t.translate(this.minValue),nc._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=Jh(this.radiusInner,this.radius),this.radiusLabels+=Qh,this.radiusInner=this.defaultRadius=qh.min(this.radiusInner,this.radius),this.middleAngle=this.angle=-U(this.middleAngleCorrection-this.angle)},_checkRadiusForVisibleArea(t){return(0,l.$K)(t)||this._getValTranslator().translate(this.minValue)>0},_getErrorBarBaseEdgeLength(){var t=this.getMarkerCoords();return qh.PI*t.outerRadius*qh.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(),o=n.innerRadius,a=n.outerRadius,s=this._getCoords(this.argument,rc),l=n.x,u=n.y;i&&(o=0,a=0,l=s.x,u=s.y),this.graphic=t.arc(l,u,o,a,n.startAngle,n.endAngle).attr(r).data({"chart-data-point":this}).append(e)},_checkLabelPosition:function(t,e){var i=this._getVisibleArea(),r=q(this.middleAngle),n=this.centerX+this.defaultRadius*r.cos,o=this.centerY-this.defaultRadius*r.sin;return n>i.minX&&ni.minY&&o=r.startAngle&&-i.phi<=r.endAngle:-i.phi<=r.startAngle&&-i.phi>=r.endAngle;return i.r>=r.innerRadius&&i.r<=r.outerRadius&&n}}),ac={},sc=u.l,lc=a.states,uc="symbolPoint",hc="polarSymbolPoint",cc="barPoint",dc="polarBarPoint",pc="piePoint",gc=lc.selectedMark,fc=lc.hoverMark,mc=lc.normalMark,_c=lc.hover,vc=lc.normal,bc=lc.selection,yc={chart:{scatter:uc,line:uc,spline:uc,stepline:uc,stackedline:uc,fullstackedline:uc,stackedspline:uc,fullstackedspline:uc,stackedsplinearea:uc,fullstackedsplinearea:uc,area:uc,splinearea:uc,steparea:uc,stackedarea:uc,fullstackedarea:uc,rangearea:"rangeSymbolPoint",bar:cc,stackedbar:cc,fullstackedbar:cc,rangebar:"rangeBarPoint",bubble:"bubblePoint",stock:"stockPoint",candlestick:"candlestickPoint"},pie:{pie:pc,doughnut:pc,donut:pc},polar:{scatter:hc,line:hc,area:hc,bar:dc,stackedbar:dc}};function xc(t){return"none"===tt(t)}function wc(t,e,i){this.fullState=mc,this.series=t,this.update(e,i),this._viewCounters={hover:0,selection:0},this._emptySettings={fill:null,stroke:null,dashStyle:null}}ac.symbolPoint=nh,ac.barPoint=_h,ac.bubblePoint=yh,ac.piePoint=Eh,ac.rangeSymbolPoint=zh,ac.rangeBarPoint=Fh,ac.candlestickPoint=Yh,ac.stockPoint=Uh,ac.polarSymbolPoint=nc,ac.polarBarPoint=oc,wc.prototype={constructor:wc,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=mc,e=this.fullState,i=[vc,_c,bc,bc];return this._viewCounters.hover&&(t|=fc),this._viewCounters.selection&&(t|=gc),xc(this.getOptions().selectionMode)&&(e&=~gc),xc(this.getOptions().hoverMode)&&(e&=~fc),t|=e,i[t]},applyView:function(t){var e=this._getViewStyle();this._currentStyle=e,this.graphic||!this.getMarkerVisibility()||!this.series.autoHidePointMarkers||e!==bc&&e!==_c||this._drawMarker(this.series.getRenderer(),this.series.getMarkersGroup()),this.graphic&&(this.series.autoHidePointMarkers&&e!==bc&&e!==_c?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,o=yc[i][n];r!==n?(this._needDeletingOnDraw=!0,this._needClearingOnDraw=!1,r&&(this._checkLabelsChanging(r,n)&&this.deleteLabel(),this._resetType(ac[yc[r]])),this._setType(ac[o])):(this._needDeletingOnDraw=this._checkSymbol(e,t),this._needClearingOnDraw=this._checkCustomize(e,t)),this._options=t,this._fillStyle(),this._updateLabelOptions(o)}},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&gc)},isHovered:function(){return!!(this.fullState&fc)},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(),o=this._options.rotated;n.minX>t+(i||0)||n.maxXe+(r||0)||n.maxY{if(e.isVisible()){var i=e._getFormatObject(t);n.push(i),r.push(i.seriesName+": "+i.valueText)}})),sc(i,{points:n,valueText:r.join("\n"),stackName:this.series.getStackName()||null}));var o=this.aggregationInfo;if(o){var a=this.series.getArgumentAxis(),s=a.formatRange(o.intervalStart,o.intervalEnd,o.aggregationInterval,t.getOptions().argumentFormat);s&&(i.valueText+="\n".concat(s))}return i},setHole:function(t,e){var i=isFinite(this.minValue)?this.minValue:0;(0,l.$K)(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}}};var Cc="discrete",{abs:Sc,floor:kc,ceil:Ac,min:Tc}=Math;function Ec(t,e,i){t.min=t.mini?t.max:i}function Oc(t,e){if("logarithmic"!==t)return null;var i=e.getOptions().logarithmBase;return t=>{var e=j(Sc(t),i),r=e<0?kc:Ac;return r(e)}}function Pc(t,e,i){var r=Ec;return t===Cc?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{var o=[];r(t,e,n),0!==e&&o.push(i(e)),0!==n&&o.push(i(n));var a=Tc.apply(null,o);t.linearThreshold=t.linearThreshold=0||t.type.toLowerCase().indexOf("area")>=0}function Dc(t){var e=Pc(t.valueAxisType),i=t.getArgumentAxis(),r=i&&t.getArgumentAxis().visualRange()||{},n=Vc(t)?Rc:s.ZT;if(i&&i.getMarginOptions().checkInterval){var o=t.getArgumentAxis().getTranslator().getBusinessRange(),a=pt(o,!1),u=o.interval;isFinite(u)&&(0,l.$K)(r.startValue)&&(0,l.$K)(r.endValue)&&(r.startValue=a(r.startValue,u,-1),r.endValue=a(r.endValue,u))}var h=zc(r);return function(t,i,o,a){var s=i.argument;return i.hasValue()?(h(s)?(t.startCalc||(t.startCalc=!0,n(e,t,i,a[o-1],r.startValue)),e(t,i.getMinValue(),i.getMaxValue())):!r.categories&&(0,l.$K)(r.startValue)&&s>r.startValue&&(t.startCalc||n(e,t,i,a[o-1],r.startValue),t.endCalc=!0,n(e,t,i,a[o-1],r.endValue)),t):t}}function zc(t){if(t.categories){var e=t.categories.reduce(((t,e)=>(t[e.valueOf()]=!0,t)),{});return t=>(0,l.$K)(t)&&e[t.valueOf()]}return(0,l.$K)(t.startValue)||(0,l.$K)(t.endValue)?(0,l.$K)(t.endValue)?(0,l.$K)(t.startValue)?e=>e>=t.startValue&&e<=t.endValue:e=>e<=t.endValue:e=>e>=t.startValue:()=>!0}var Mc={getViewPortFilter:zc,getArgumentRange:function(t){var e=t._data||[],i={};if(e.length)if(t.argumentAxisType===Cc)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),o=t.getArgumentAxis().calculateInterval(e[e.length-1].argument,e[e.length-2].argument);r=Tc(n,o)}i={min:e[0].argument,max:e[e.length-1].argument,interval:r}}return Lc(i)},getRangeData:function(t){var e=t.getPoints(),i=t.useAggregation(),r=t.getArgumentAxis(),n=Pc(t.argumentAxisType,e.length>1&&r,Oc(t.argumentAxisType,r)),o=Pc(t.valueAxisType,null,Oc(t.valueAxisType,t.getValueAxis())),a=Dc(t),s=e.reduce((function(t,e,i,r){var s=e.argument;return e.isArgumentCorrect()?(n(t.arg,s,s),e.hasValue()&&(o(t.val,e.getMinValue(),e.getMaxValue()),a(t.viewport,e,i,r)),t):t}),{arg:Ic(t.argumentAxisType,t.argumentType,null!==r&&void 0!==r&&r.aggregatedPointBetweenTicks()?void 0:t.getArgumentRangeInitialValue()),val:Ic(t.valueAxisType,t.valueType,e.length?t.getValueRangeInitialValue():void 0),viewport:Ic(t.valueAxisType,t.valueType,e.length?t.getValueRangeInitialValue():void 0)});if(i){var u=this.getArgumentRange(t);if(t.argumentAxisType===Cc)s.arg=u;else{var h=r.getViewport();((0,l.$K)(h.startValue)||(0,l.$K)(h.length))&&n(s.arg,u.min,u.min),((0,l.$K)(h.endValue)||(0,l.$K)(h.length)&&(0,l.$K)(h.startValue))&&n(s.arg,u.max,u.max)}}return Lc(s.arg),Lc(s.val),s},getViewport:function(t){var e,i=t.getPoints(),r=Dc(t);return e=Ic(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=zc(t.getArgumentAxis().visualRange()||{}),i=t.getValueAxis().visualRange()||{},r=zc(i),n=t.getPoints(),o=function(t,e,n){var o=e.getMinValue(),a=e.getMaxValue(),s=r(o),l=r(a);s&&t.push(o),a!==o&&l&&t.push(a),!n||s||l||(t.length?t.push(i.endValue):t.push(i.startValue))},a=Vc(t)?function(t,i,r){var n=i[r],a=i[r-1],s=i[r+1];s&&e(s.argument)&&o(t[1],n,!0),a&&e(a.argument)&&o(t[1],n,!0)}:s.ZT;return n.reduce((function(t,i,r){return e(i.argument)?o(t[0],i):a(t,n,r),t}),[[],[]])}},Fc=Math,Nc=Fc.abs,Gc=Fc.sqrt,Hc=Fc.max,Zc=12,$c=400,Xc="highError",Yc="lowError",jc="variance",Kc="stddeviation",Uc="stderror",Wc="percent",qc="fixed",Jc="undefined",Qc="discrete",td="logarithmic",ed="datetime",id={},rd={};function nd(t){var e=0;return(0,h.S6)(t,(function(t,i){e+=i})),e}function od(t){return[qc,Wc,jc,Kc,Uc].includes(t)}function ad(t,e){return nd(Q(t,(function(t){return(t-e)*(t-e)})))/t.length}function sd(t,e,i){var r=i.getOptions().valueErrorBar,n=i.getValueFields()[0],o=r.lowValueField||Yc,a=r.highValueField||Xc;if(i.areErrorBarsVisible()&&void 0===r.type){var s=e.reduce((function(t,e){return(0,l.$K)(e[o])&&(t[0]+=e[n]-e[o],t[1]++),(0,l.$K)(e[a])&&(t[2]+=e[a]-e[n],t[3]++),t}),[0,0,0,0]);s[1]&&(t[o]=t[n]-s[0]/s[1]),s[2]&&(t[a]=t[n]+s[2]/s[3])}return t}function ld(t,e,i){var r=i.getOptions().valueErrorBar,n=r.lowValueField||Yc,o=r.highValueField||Xc;return i.areErrorBarsVisible()&&void 0===r.type&&(t[n]=0,t[o]=0,t=e.reduce((function(t,e){return t[n]+=e[n],t[o]+=e[o],t}),t)),t}function ud(t){return(e,i)=>{var{intervalStart:r,intervalEnd:n,data:o}=e,a=i.getValueFields()[0],s=o[0];return s=o.reduce(((e,i)=>{var r=i[a];return null===e[a]&&(e=i),null!==r&&t(r,e[a])?i:e}),s),(0,u.l)({},s,{[i.getArgumentField()]:i._getIntervalCenter(r,n)})}}function hd(t,e,i){var r=!0;for(var n in e){var o="argument"===n;if(o||"size"===n?!(0,l.$K)(t[n]):void 0===t[n]){var a=e[n];o||(i[a]=(i[a]||0)+1),r=!1}}return r}var cd={_defaultDuration:$c,_defaultTrackerWidth:Zc,_applyStyle:s.ZT,_updateOptions:s.ZT,_parseStyle:s.ZT,_prepareSegment:s.ZT,_drawSegment:s.ZT,_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup)},_createLegendState:function(t,e){return{fill:t.color||e,hatching:t.hatching?(0,u.l)({},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&&(od(tt(t.type))||(0,l.$K)(t.lowValueField)||(0,l.$K)(t.highValueField))},groupPointsByCoords(t){var e=[];return(0,h.S6)(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=(0,u.l)(!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||{},o=void 0!==t.size?t.size:r;return{fill:t.color||e,stroke:n.color||i,"stroke-width":n.visible?n.width:0,r:o/2+(n.visible&&0!==o&&~~(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(),hd(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 Mc.getRangeData(this)},_getPointDataSelector:function(){var t,e,i=this.getValueFields()[0],r=this.getArgumentField(),n=this.getTagField(),o=this.areErrorBarsVisible();if(o){var a=this._options.valueErrorBar;t=a.lowValueField||Yc,e=a.highValueField||Xc}return a=>{var s={value:this._processEmptyValue(a[i]),argument:a[r],tag:a[n],data:a};return o&&(s.lowError=a[t],s.highError=a[e]),s}},_errorBarsEnabled:function(){return this.valueAxisType!==Qc&&this.valueAxisType!==td&&this.valueType!==ed},_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;(0,h.S6)(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 o=e.getValueFields()[0],a=i.reduce(((t,e)=>{var i=e[o];return(0,l.$K)(i)?(t[0]+=i,t[1]++):null===i&&t[2]++,t}),[0,0,0]);return sd({[o]:a[2]===i.length?null:a[0]/a[1],[e.getArgumentField()]:e._getIntervalCenter(r,n)},i,e)}},sum(t,e){var{intervalStart:i,intervalEnd:r,data:n}=t;if(n.length){var o=e.getValueFields()[0],a=n.reduce(((t,e)=>{var i=e[o];return void 0!==i&&(t[0]+=i),null===i?t[1]++:void 0===i&&t[2]++,t}),[0,0,0]),s=a[0];if(a[1]===n.length&&(s=null),a[2]!==n.length)return ld({[o]:s,[e.getArgumentField()]:e._getIntervalCenter(i,r)},n,e)}},count(t,e){var{data:i,intervalStart:r,intervalEnd:n}=t,o=e.getValueFields()[0];return{[e.getArgumentField()]:e._getIntervalCenter(r,n),[o]:i.filter((t=>void 0!==t[o])).length}},min:ud(((t,e)=>tt>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,(0,l.HD)(t)&&n.push(t),(0,l.HD)(e)&&n.push(e)),n},_calculateErrorBars:function(t){if(this.areErrorBarsVisible()){var e,i,r,n,o,a=this._options,s=a.valueErrorBar,u=tt(s.type),c=parseFloat(s.value),d=this.getValueFields()[0],p=s.lowValueField||Yc,g=s.highValueField||Xc,f=function(t,i){e=i.value,i.lowError=e-c,i.highError=e+c};switch(u){case qc:o=f;break;case Wc:o=function(t,i){e=i.value;var r=e*c/100;i.lowError=e-r,i.highError=e+r};break;case Jc:o=function(t,e){e.lowError=e.data[p],e.highError=e.data[g]};break;default:switch(i=Q(t,(function(t){return(0,l.$K)(t.data[d])?t.data[d]:null})),r=i.length,c=c||1,u){case jc:c=ad(i,nd(i)/r)*c,o=f;break;case Kc:n=nd(i)/r,c=Gc(ad(i,n))*c,o=function(t,e){e.lowError=n-c,e.highError=n+c};break;case Uc:c=Gc(ad(i,nd(i)/r)/r)*c,o=f}}o&&(0,h.S6)(t,o)}},_patchMarginOptions:function(t){var e=this._getCreatingPointOptions(),i=e.styles,r=[i.normal,i.hover,i.selection].reduce((function(t,e){return Hc(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};id=(0,u.l)({},cd,{drawTrackers:function(){var t,e,i=this,r=i._segments||[],n=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),(0,h.S6)(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(n))},_checkAxisVisibleAreaCoord(t,e){var i=t?this.getArgumentAxis():this.getValueAxis(),r=i.getVisibleArea();return(0,l.$K)(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",o=r?"vx":"vy",a=this.getVisiblePoints(),s=0;s[t,e],_getBezierPoints:()=>[],_getNearestPointsByCoord(t,e){var i=this,r=i.getOptions().rotated,n=!e&&!r||e&&r,o=n?"vy":"vx",a=i.getPoints(),s=i._getBezierPoints(),l=[];return a.length>1?a.forEach(((e,r)=>{var n=a[r+1];n&&(e[o]<=t&&n[o]>=t||e[o]>=t&&n[o]<=t)&&l.push(i._getNearestPoints(e,n,s))})):l.push([a[0],a[0]]),l},getNeighborPoint:function(t,e){var i,r=this._options.rotated?e:t,n=r,o=this._trackersTranslator,a=null,s=this._options.rotated?t:e,l=this._options.rotated?"vx":"vy";if(this.isVisible()&&o){a=o[r];do{a=o[n]||o[r],r--,n++}while((r>=0||n=r&&(i=r,a=e)})))}return a},_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}}),rd=(0,u.l)({},cd,{drawTrackers:function(){id.drawTrackers.call(this);var t,e=this._trackersTranslator;this.isVisible()&&((0,h.S6)(e,(function(e,i){if(i)return t=e,!1})),e[t+360]=e[t])},getNeighborPoint:function(t,e){var i=ut(this.getValueAxis().getCenter(),t,e);return id.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(),o=0;o!0,_applyGroupSettings:function(t,e,i){e=(0,u.l)(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),id._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),id._createGroups.call(this)},_areBordersVisible:function(){return!1},_getDefaultSegment:function(t){return{line:Q(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),(0,h.S6)(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},o=t.line;i?o.animate(n,{},r):o.attr(n)},_animateComplete:function(){id._animateComplete.call(this),this._markersGroup&&this._markersGroup.animate({opacity:1},{duration:this._defaultDuration})},_animate:function(){var t=this,e=t._graphics.length-1;(0,h.S6)(t._graphics||[],(function(i,r){var n;i===e&&(n=function(){t._animateComplete()}),t._updateElement(r,t._segments[i],!0,n)}))},_drawPoint:function(t){id._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,o=this._prepareSegment(t,n,r);this._segments.push(o),this._graphics[i]?e||this._updateElement(this._graphics[i],o):this._graphics[i]=this._drawElement(e?this._getDefaultSegment(o):o,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(!id.checkSeriesViewportCoord.call(this))return!1;var i=t.isArgumentAxis?this.getArgumentRange():this.getViewport(),r=t.getTranslator().translate(i.categories?i.categories[0]:i.min),n=t.getTranslator().translate(i.categories?i.categories[i.categories.length-1]:i.max),o=this.getOptions().rotated,a=t.getOptions().inverted;return t.isArgumentAxis&&(!o&&!a||o&&a)||!t.isArgumentAxis&&(o&&!a||!o&&a)?e>=r&&e<=n:e>=n&&e<=r}},kd=bd.line=(0,u.l)({},id,Sd,{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,o=0;oe&&i>t||t=y.y&&C>=x.y)||e&&(w<=y.x&&w<=x.x||w>=y.x&&w>=x.x));if(S)e?(l=a=w,u=(C+x.y)/2,s=(C+y.y)/2):(u=s=C,l=(w+x.x)/2,a=(w+y.x)/2);else{if(g=p-d,f=h-c,m=d*c-h*p,e){if(!g)return void i.push(t,t,t);v=C,_=-1*(f*v+m)/g,b=_-w,h-=b,c-=b}else{if(!f)return void i.push(t,t,t);_=w,v=-1*(g*_+m)/f,b=v-C,d-=b,p-=b}l=(w+.5*c)/1.5,u=(C+.5*p)/1.5,a=(w+.5*h)/1.5,s=(C+.5*d)/1.5}e?(a=n(y.x,w,a),l=n(x.x,w,l)):(s=n(y.y,C,s),u=n(x.y,C,u));var k=xd(t,a,s),A=xd(t,l,u);i.push(k,t,A)}else i.push(t,t)})):i.push(r[0]),i},_prepareSegment:function(t,e){return kd._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",o=r?"y":"x",a=r?"vx":"vy",s=r?"x":"y",l=e?this.getValueAxis():this.getArgumentAxis(),u=l.getVisibleArea(),h=this._getNearestPointsByCoord(t,e),c=function(e){var r=h[e];if(1===r.length)u[0]<=r[0][a]&&u[1]>=r[0][a]&&(i=r[0][a]);else{var l=Cd(t,r[0][n],r[1][o],r[2][o],r[3][n]);l.forEach((t=>{if(t>=0&&t<=1){var e=Math.pow(1-t,3)*r[0][a]+3*Math.pow(1-t,2)*t*r[1][s]+3*(1-t)*t*t*r[2][s]+t*t*t*r[3][a];u[0]<=e&&u[1]>=e&&(i=e)}}))}if(null!==i)return"break"},d=0;d0?this._segments.reduce(((t,e)=>t.concat(e.line)),[]):[]}}),yd.line=(0,u.l)({},rd,Sd,{_sortPoints:function(t){return t},_prepareSegment:function(t,e,i){var r,n=[],o=this.getValueAxis().getCenter();if(i&&this._closeSegment(t),this.argumentAxisType===dd||this.valueAxisType===dd)return kd._prepareSegment.call(this,t);for(r=1;r=0?360-e:-e},_closeSegment(t){var e;e=this._segments.length?this._segments[0].line[0]:xd(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(U(pd(e.angle))===U(pd(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,o=[],a=Math.round(e.angle-t.angle),s=(e.radius-t.radius)/a;if(0===a)o=[e,t];else if(a>0){var l=r?a:a-1;for(n=l;n>=0;n--)o.push(wd(t,e,i,s,n))}else{var u=r?a:a+1;for(n=0;n>=u;n--)o.push(wd(t,e,i,s,a-n))}return o},getSeriesPairCoord(t,e){var i,r=this.getArgumentAxis(),n=e?"angle":"radius",o=t[n],a=r.getCenter(),s=(t,e,i)=>{var n,o,{x:s,y:l}=i;return n={x:s,y:l},o=a,gd(fd(n.x-o.x,2)+fd(n.y-o.y,2))<=r.getRadius()&&md(t.x,e.x)<=s&&_d(t.x,e.x)>=s&&md(t.y,e.y)<=l&&_d(t.y,e.y)>=l},l=this.getNeighborPoints(o,n);if(1===l.length)i=l[0];else if(l.length>1){var u,h,d=l[0],p=l[1];if(this.argumentAxisType!==dd&&this.valueAxisType!==dd)e?(u=(d.radius-p.radius)/(d.angle-p.angle),h=o-p.angle):(u=(d.radius-p.radius)/(d.angle-p.angle),h=(o-p.radius)/u),i=wd(p,d,a,u,h);else if(e){var g=q(-o),f=(p.y-d.y)/(p.x-d.x),m=d.y-d.x*f,_=g.sin/g.cos,v=a.y-_*a.x,b=(v-m)/(f-_),y=f*b+m;if(s(d,p,{x:b,y:y})){var x=vd((0,c.RF)((360+o)/90)%4);(0===x&&b>=a.x&&y<=a.y||1===x&&b<=a.x&&y<=a.y||2===x&&b<=a.x&&y>=a.y||3===x&&b>=a.x&&y>=a.y)&&(i={x:b,y:y})}}else{var w=(p.y-d.y)/(p.x-d.x),C=d.y-d.x*w,S=1+w*w,k=-2*a.x+2*w*C-2*w*a.y,A=-fd(o,2)+fd(C-a.y,2)+fd(a.x,2),T=k*k-4*S*A;if(T>=0){var E=(-k-gd(T))/(2*S),O=(-k+gd(T))/(2*S),P=w*E+C,I=w*O+C;i=s(d,p,{x:E,y:P})?{x:E,y:P}:s(d,p,{x:O,y:I})?{x:O,y:I}:void 0}}}return i},getNeighborPoints(t,e){var i=this.getPoints(),r=[];if(this.getOptions().closed){i=(0,u.l)(!0,[],i);var n=i[i.length-1],o=xd(i[0],i[0].x,i[0].y,i[0].angle),a=xd(n,n.x,n.y,n.angle),s=this._modifyReflectedPoint(o,n),l=this._modifyReflectedPoint(a,i[0]);l&&i.unshift(l),s&&i.push(s)}for(var h=1;ht&&i[h-1][e]t&&i[h][e]0)break;return r}});var Ad=bd.line,Td=yd.line,Ed=u.l,Od=bd.spline._calculateBezierPoints,Pd={},Id={},Ld={_createBorderElement:Ad._createMainElement,_createLegendState:function(t,e){return{fill:t.color||e,opacity:t.opacity,hatching:t.hatching}},getValueRangeInitialValue:function(){return"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType&&!1!==this.showZero?0:id.getValueRangeInitialValue.call(this)},_getDefaultSegment:function(t){var e=Ad._getDefaultSegment(t);return e.area=e.line.concat(e.line.slice().reverse()),e},_updateElement:function(t,e,i,r){var n={points:e.line},o={points:e.area},a=t.line;i?(a&&a.animate(n),t.area.animate(o,{},r)):(a&&a.attr(n),t.area.attr(o))},_removeElement:function(t){t.line&&t.line.remove(),t.area.remove()},_drawElement:function(t){return{line:this._bordersGroup&&this._createBorderElement(t.line,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),area:this._createMainElement(t.area).append(this._elementsGroup)}},_applyStyle:function(t){this._elementsGroup&&this._elementsGroup.smartAttr(t.elements),this._bordersGroup&&this._bordersGroup.attr(t.border),(this._graphics||[]).forEach((function(e){e.line&&e.line.attr({"stroke-width":t.border["stroke-width"]}).sharp()}))},_parseStyle:function(t,e,i){var r=t.border||{},n=Ad._parseLineOptions(r,i);return n.stroke=r.visible&&n["stroke-width"]?n.stroke:"none",n["stroke-width"]=n["stroke-width"]||1,{border:n,elements:{stroke:"none",fill:t.color||e,hatching:t.hatching,opacity:t.opacity}}},_areBordersVisible:function(){var t=this._options;return t.border.visible||t.hoverStyle.border.visible||t.selectionStyle.border.visible},_createMainElement:function(t,e){return this._renderer.path(t,"area").attr(e)},_getTrackerSettings:function(t){return{"stroke-width":t.singlePointSegment?this._defaultTrackerWidth:0}},_getMainPointsFromSegment:function(t){return t.area}};function Bd(t){return Q(t,(function(t){return t.getCoords()})).concat(Q(t.slice().reverse(),(function(t){return t.getCoords(!0)})))}var Rd=Pd.area=Ed({},Ad,Ld,{_prepareSegment(t,e){var i=this._processSinglePointsAreaSegment(t,e),r=Bd(i),n=this.getArgumentAxis();if(n.getAxisPosition){var o=n.getAxisPosition(),a=n.getOptions(),s=(e?1:-1)*Math.round(a.width/2);a.visible&&r.forEach(((i,a)=>{if(i){var l=1===t.length?0:a!1};Nd.bar=Md({},Dd,Hd,{_getAffineCoordOptions:function(){var t=this._options.rotated,e=t?"X":"Y",i={scaleX:t?.001:1,scaleY:t?1:.001};return i["translate"+e]=this.getValueAxis().getTranslator().translate("canvas_position_default"),i},_animatePoints:function(t,e,i){this._markersGroup.animate({scaleX:1,scaleY:1,translateY:0,translateX:0},void 0,e),t||i(this._drawnPoints,e)},checkSeriesViewportCoord(t,e){if(!Dd.checkSeriesViewportCoord.call(this))return!1;if(t.isArgumentAxis)return!0;var i=t.getTranslator(),r=this.getViewport(),n=i.translate(r.categories?r.categories[0]:r.min),o=i.translate(r.categories?r.categories[r.categories.length-1]:r.max),a=this.getOptions().rotated,s=t.getOptions().inverted;return a&&!s||!a&&s?e>=n&&e<=o:e>=o&&e<=n},getSeriesPairCoord(t,e){for(var i=null,{rotated:r}=this._options,n=!e&&!r||e&&r,o=n?"vy":"vx",a=n?"vx":"vy",s=this.getPoints(),l=0;l({tag:t[n],minValue:this._processEmptyValue(t[i]),value:this._processEmptyValue(t[r]),argument:t[o],data:t})},_defaultAggregator:"range",_aggregators:{range(t,e){var{intervalStart:i,intervalEnd:r,data:n}=t;if(n.length){var o=e.getValueFields(),a=o[0],s=o[1],u=n.reduce(((t,e)=>{var i=e[a],r=e[s];return(0,l.$K)(i)&&(0,l.$K)(r)?(t[a]=Math.min(t[a],Math.min(i,r)),t[s]=Math.max(t[s],Math.max(i,r)),t):t}),{[a]:1/0,[s]:-1/0,[e.getArgumentField()]:e._getIntervalCenter(i,r)});if(!isFinite(u[a])||!isFinite(u[s])){if(n.filter((t=>null===t[a]&&null===t[s])).length!==n.length)return;u[a]=u[s]=null}return u}}},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,o=n?"vy":"vx",a=r?"minX":"minY",s=n?"vx":"vy",l=this.getPoints(),u=0;u=d[0]&&t<=d[1]?h[s]:void 0}if(this._checkAxisVisibleAreaCoord(!e,c)){i=c;break}}return i}};Yd.rangebar=Zd({},$d,jd),Yd.rangearea=Zd({},Xd,{_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=Q(i,(function(t){return t.getCoords(!0)}));return{line:i,bottomLine:r,area:Q(i,(function(t){return t.getCoords()})).concat(r.slice().reverse()),singlePointSegment:i!==t}},_getDefaultSegment:function(t){var e=Xd._getDefaultSegment.call(this,t);return e.bottomLine=e.line,e},_removeElement:function(t){Xd._removeElement.call(this,t),t.bottomLine&&t.bottomLine.remove()},_drawElement:function(t,e){var i=Xd._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},o=t.bottomLine;Xd._updateElement.apply(this,arguments),o&&(i?o.animate(n):o.attr(n))}},jd);var Kd=bd.line,Ud=Pd.area,Wd=Nd.bar,qd=Gd.bar,Jd=u.l,Qd=h.S6,tp=s.ZT,ep={};ep.bubble=Jd({},id,{_calculateErrorBars:tp,_getMainColor:Wd._getMainColor,_createPointStyles:Wd._createPointStyles,_updatePointsVisibility:Wd._updatePointsVisibility,_getOptionsForPoint:Wd._getOptionsForPoint,_applyMarkerClipRect:Kd._applyElementsClipRect,_parsePointStyle:qd._parsePointStyle,_createLegendState:Ud._createLegendState,_setMarkerGroupSettings:qd._setMarkerGroupSettings,areErrorBarsVisible:tp,_createErrorBarGroup:tp,_checkData:function(t,e){return id._checkData.call(this,t,e,{value:this.getValueFields()[0],size:this.getSizeField()})},_getPointDataSelector:function(t,e){var i=this.getSizeField(),r=id._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 o=e.getValueFields()[0],a=e.getSizeField(),s=i.reduce(((t,e)=>(t[0]+=e[o],t[1]+=e[a],t[2]++,t)),[0,0,0]);return{[o]:s[0]/s[2],[a]:s[1]/s[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})};Qd(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}});var ip=id,rp=Nd.bar,np=u.l,op=h.S6,ap=s.ZT,sp=Q,lp=isFinite,up=Math.max,hp=.7,cp="inside",dp=np({},rp,{_setGroupsSettings:function(){ip._setGroupsSettings.apply(this,arguments),this._labelsGroup.attr({"pointer-events":null})},_createErrorBarGroup:ap,_drawPoint:function(t){var e=t.point,i=this._legendCallback;ip._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:ap,getColor:ap,areErrorBarsVisible:ap,drawLabelsWOPoints:function(){return this._options.label.position!==cp&&(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=rp._checkData.call(this,t,e,{value:this.getValueFields()[0]});return this._options.paintNullPoints?i:i&&null!==t.value},_createGroups:ip._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,op(t,(function(t,o){o.isVisible()&&(o.normalInitialValue{var e=t[i],o=!1;return(0,l.$K)(e)&&((0,l.$K)(r)&&(o=e{var{intervalStart:i,intervalEnd:r,data:n}=t;if(n.length){var o={},a=e.getValueFields(),s=a[1],l=a[2];return o[s]=-1/0,o[l]=1/0,o=n.reduce((function(t,e){return null!==e[s]&&(t[s]=Math.max(t[s],e[s])),null!==e[l]&&(t[l]=Math.min(t[l],e[l])),t}),o),o[a[0]]=n[0][a[0]],o[a[3]]=n[n.length-1][a[3]],isFinite(o[s])||(o[s]=null),isFinite(o[l])||(o[l]=null),o[e.getArgumentField()]=e._getIntervalCenter(i,r),o}}},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=mp+r,t.sizePointNormalState=mp,t},getSeriesPairCoord(t,e){for(var i=null,r=this.getVisiblePoints(),n=0;n=s[0]&&t<=s[1]?o.vx:void 0}if(this._checkAxisVisibleAreaCoord(!e,a)){i=a;break}}return i},usePointsToDefineAutoHiding:()=>!1}),vp=(0,u.l)({},_p,{_parsePointStyle:function(t,e,i){var r=t.color||i,n=_p._parsePointStyle.call(this,t,e,r);return n.fill=r,n.hatching=t.hatching,n}}),bp=Pd.area,yp=Nd.bar,xp={_calculateErrorBars:s.ZT,_updateOptions:function(t){this._stackName="axis_"+(t.axis||"default")}},wp={},Cp={};wp.stackedline=(0,u.l)({},bd.line,xp,{}),wp.stackedspline=(0,u.l)({},bd.spline,xp,{}),wp.fullstackedline=(0,u.l)({},bd.line,xp,{getValueRangeInitialValue:Pd.area.getValueRangeInitialValue}),wp.fullstackedspline=(0,u.l)({},bd.spline,xp,{getValueRangeInitialValue:Pd.area.getValueRangeInitialValue});var Sp=wp.stackedbar=(0,u.l)({},yp,xp,{_updateOptions:function(t){xp._updateOptions.call(this,t),this._stackName=this._stackName+"_stack_"+(t.stack||"default")}});function kp(t,e,i,r){return t=(0,ts.d9)(t),t.value=e,t.minValue=i,t.translate(),t.argument=t.argument+r,t}function Ap(t){var e,i,r=0,n=[],o=t.length;while(rt>0:()=>!0}Ep.mixins={chart:{},pie:{},polar:{}},Ep.mixins.chart.scatter=id,Ep.mixins.polar.scatter=rd,(0,u.l)(Ep.mixins.pie,r),(0,u.l)(Ep.mixins.chart,bd,Pd,Nd,Yd,ep,n,wp),(0,u.l)(Ep.mixins.polar,yd,Id,Gd,Cp),ug.prototype={constructor:ug,_createLegendState:s.ZT,getLegendStyles:function(){return this._styles.legendStyles},_createStyles:function(t){var e=t.mainSeriesColor;this._styles={normal:this._parseStyle(t,e,e),hover:this._parseStyle(t.hoverStyle||{},e,e),selection:this._parseStyle(t.selectionStyle||{},e,e),legendStyles:{normal:this._createLegendState(t,e),hover:this._createLegendState(t.hoverStyle||{},e),selection:this._createLegendState(t.selectionStyle||{},e)}}},setClippingParams(t,e,i){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this._paneClipRectID=t,this._widePaneClipRectID=e,this._forceClipping=i,this._clipLabels=r},applyClip:function(){this._group.attr({"clip-path":this._paneClipRectID})},resetClip:function(){this._group.attr({"clip-path":null})},getTagField:function(){return this._options.tagField||"tag"},getValueFields:s.ZT,getSizeField:s.ZT,getArgumentField:s.ZT,getPoints:function(){return this._points},getPointsInViewPort:function(){return Mc.getPointsInViewPort(this)},_createPoint:function(t,e,i){t.index=e;var r=this.pointsByArgument,n=this._getCreatingPointOptions(t),o=t.argument.valueOf(),a=i;a?a.update(t,n):(a=new wc(this,t,n),this.isSelected()&&eg(this.lastSelectionMode)&&a.setView(Vp));var s=r[o];return s?s.push(a):r[o]=[a],a.hasValue()&&this.customizePoint(a,t),a},getRangeData:function(){return this._visible?this._getRangeData():Qp()},getArgumentRange:function(){return this._visible?Mc.getArgumentRange(this):Qp()},getViewport:function(){return Mc.getViewport(this)},_deleteGroup:function(t){var e=this[t];e&&(e.dispose(),this[t]=null)},updateOptions(t,e){var i=t.widgetType,r=this.type,n=t.type;if(this.type=n&&tt(n.toString()),!this._checkType(i)||this._checkPolarBarType(i,t))return this.dispose(),void(this.isUpdated=!1);r!==this.type?(this._firstDrawing=!0,this._resetType(r,i),this._setType(this.type,i)):this._defineDrawingState(),this._options=t,this._pointOptions=null,this.name=t.name,this.pane=t.pane,this.tag=t.tag,e&&(this._seriesModes=e.commonSeriesModes||this._seriesModes,this._valueAxis=e.valueAxis||this._valueAxis,this.axis=this._valueAxis&&this._valueAxis.name,this._argumentAxis=e.argumentAxis||this._argumentAxis),this._createStyles(t),this._stackName=null,this._updateOptions(t),this._visible=t.visible,this.isUpdated=!0,this.stack=t.stack,this.barOverlapGroup=t.barOverlapGroup,this._createGroups(),this._processEmptyValue=t.ignoreEmptyPoints?t=>null===t?void 0:t:t=>t},_defineDrawingState(){this._firstDrawing=!0},_disposePoints:function(t){(0,h.S6)(t||[],(function(t,e){e.dispose()}))},updateDataType:function(t){return this.argumentType=t.argumentType,this.valueType=t.valueType,this.argumentAxisType=t.argumentAxisType,this.valueAxisType=t.valueAxisType,this.showZero=t.showZero,this._argumentChecker=cg(t.argumentAxisType,this.getArgumentAxis()),this._valueChecker=cg(t.valueAxisType,this.getValueAxis()),this},_argumentChecker:function(){return!0},_valueChecker:function(){return!0},getOptions:function(){return this._options},_getOldPoint:function(t,e,i){var r=t.argument&&t.argument.valueOf(),n=(e[r]||[])[0];return n&&e[r].splice(0,1),n},updateData:function(t){var e=this._options,i=e.nameField;t=t||[],t.length&&(this._canRenderCompleteHandle=!0);var r=this._getPointDataSelector(),n=0;this._data=t.reduce(((t,o,a)=>{var s=r(o);return(0,l.$K)(s.argument)?i&&o[i]!==e.nameFieldValue||(s.index=a,t.push(s)):n++,t}),[]),n&&n===t.length&&this._incidentOccurred("W2002",[this.name,this.getArgumentField()]),this._endUpdateData()},_getData(){var t=this._data||[];return this.useAggregation()&&(t=this._resample(this.getArgumentAxis().getAggregationInfo(this._useAllAggregatedPoints,this.argumentAxisType!==Pp?this.getArgumentRange():{}),t)),t},useAggregation:function(){var t=this.getOptions().aggregation;return t&&t.enabled},autoHidePointMarkersEnabled:s.ZT,usePointsToDefineAutoHiding:s.ZT,createPoints(t){this._normalizeUsingAllAggregatedPoints(t),this._createPoints()},_normalizeUsingAllAggregatedPoints:function(t){this._useAllAggregatedPoints=this.useAggregation()&&(this.argumentAxisType===Pp||(this._data||[]).length>1&&!!t)},_createPoints:function(){var t=this,e=t.pointsByArgument||{},i=t._getData();t.pointsByArgument={},t._calculateErrorBars(i);var r={},n=i.reduce(((i,n)=>{if(t._checkData(n,r)){var o=i.length,a=t._getOldPoint(n,e,o),s=t._createPoint(n,o,a);i.push(s)}return i}),[]);for(var o in r)r[o]===i.length&&t._incidentOccurred("W2002",[t.name,o]);Object.keys(e).forEach((i=>t._disposePoints(e[i]))),t._points=n},_removeOldSegments:function(){var t=this,e=t._segments.length;(0,h.S6)(t._graphics.splice(e,t._graphics.length)||[],(function(e,i){t._removeElement(i)})),t._trackers&&(0,h.S6)(t._trackers.splice(e,t._trackers.length)||[],(function(t,e){e.remove()}))},_drawElements:function(t,e,i){var r=this,n=r._points||[],o=n[0]&&n[0].hasValue()&&r._options.closed,a={markers:r._markersGroup,errorBars:r._errorBarGroup};r._drawnPoints=[],r._graphics=r._graphics||[],r._segments=[];var s=n.reduce((function(n,o){var s=n[n.length-1];return o.translated&&!i||(o.translate(),!i&&o.setDefaultCoords()),o.hasValue()&&o.hasCoords()?(i&&r._drawPoint({point:o,groups:a,hasAnimation:t,firstDrawing:e}),s.push(o)):o.hasValue()?o.setInvisibility():s.length&&n.push([]),n}),[[]]);s.forEach((function(e,i){e.length&&r._drawSegment(e,t,i,o&&i===this.length-1)}),s),r._firstDrawing=!n.length,r._removeOldSegments(),t&&r._animate(e)},draw:function(t,e,i){var r=this._firstDrawing;this._legendCallback=i||this._legendCallback,this._visible?(this._appendInGroup(),this._applyVisibleArea(),this._setGroupsSettings(t,r),!r&&!this._resetApplyingAnimation&&this._drawElements(!1,r,!1),this._drawElements(t,r,!0),e&&this.hideLabels(),this.isSelected()?this._changeStyle(this.lastSelectionMode,void 0,!0):this.isHovered()?this._changeStyle(this.lastHoverMode,void 0,!0):this._applyStyle(this._styles.normal),this._resetApplyingAnimation=!1):this._group.remove()},_setLabelGroupSettings:function(t){var e={class:"dxc-labels","pointer-events":"none"};this._clipLabels&&this._applyElementsClipRect(e),this._applyClearingSettings(e),t&&(e.opacity=.001),this._labelsGroup.attr(e).append(this._extGroups.labelsGroup)},_checkType:function(t){return!!Ep.mixins[t][this.type]},_checkPolarBarType:function(t,e){return"polar"===t&&e.spiderWidget&&-1!==this.type.indexOf("bar")},_resetType:function(t,e){var i,r;if(t)for(i in r=Ep.mixins[e][t],r)delete this[i]},_setType:function(t,e){var i,r=Ep.mixins[e][t];for(i in r)this[i]=r[i]},_setPointsView:function(t,e){this.getPoints().forEach((function(i){e!==i&&i.setView(t)}))},_resetPointsView:function(t,e){this.getPoints().forEach((function(i){e!==i&&i.resetView(t)}))},_resetNearestPoint:function(){this._nearestPoint&&null!==this._nearestPoint.series&&this._nearestPoint.resetView(Bp),this._nearestPoint=null},_setSelectedState:function(t){this.lastSelectionMode=tt(t||this._options.selectionMode),this.fullState=this.fullState|Ip,this._resetNearestPoint(),this._changeStyle(this.lastSelectionMode),this.lastSelectionMode!==Fp&&this.isHovered()&&eg(this.lastHoverMode)&&this._resetPointsView(Bp)},_releaseSelectedState:function(){this.fullState=this.fullState&~Ip,this._changeStyle(this.lastSelectionMode,Vp),this.lastSelectionMode!==Fp&&this.isHovered()&&eg(this.lastHoverMode)&&this._setPointsView(Bp)},isFullStackedSeries:function(){return 0===this.type.indexOf("fullstacked")},isStackedSeries:function(){return 0===this.type.indexOf("stacked")},resetApplyingAnimation:function(t){this._resetApplyingAnimation=!0,t&&(this._firstDrawing=!0)},isFinancialSeries:function(){return"stock"===this.type||"candlestick"===this.type},_canChangeView:function(){return!this.isSelected()&&tt(this._options.hoverMode)!==Fp},_changeStyle:function(t,e,i){var r=this.fullState,n=[Rp,Bp,Vp,Vp];"none"===this.lastHoverMode&&(r&=~Lp),"none"===this.lastSelectionMode&&(r&=~Ip),eg(t)&&!i&&(e?this._resetPointsView(e):this._setPointsView(n[r])),this._legendCallback([Mp,zp,Dp,Dp][r]),this._applyStyle(this._styles[n[r]])},updateHover:function(t,e){var i=this._nearestPoint,r=this.isHovered()&&this.lastHoverMode===Gp&&this.getNeighborPoint(t,e);r===i||this.isSelected()&&this.lastSelectionMode!==Fp||(this._resetNearestPoint(),r&&(r.setView(Bp),this._nearestPoint=r))},_getMainAxisName:function(){return this._options.rotated?"X":"Y"},areLabelsVisible:function(){return!(0,l.$K)(this._options.maxLabelCount)||this._points.length<=this._options.maxLabelCount},getLabelVisibility:function(){return this.areLabelsVisible()&&this._options.label&&this._options.label.visible},customizePoint:function(t,e){var i,r,n,o,a,s,h=this._options,c=h.customizePoint,d=h.customizeLabel;d&&d.call&&(i=(0,u.l)({seriesName:this.name},e),i.series=this,n=d.call(i,i),a=n&&!(0,l.Qr)(n),n=a?(0,u.l)(!0,{},h.label,n):null),c&&c.call&&(i=i||(0,u.l)({seriesName:this.name},e),i.series=this,o=c.call(i,i),s=o&&!(0,l.Qr)(o)),(a||s)&&(r=this._parsePointOptions(this._preparePointOptions(o),n||h.label,e,t),r.styles.useLabelCustomOptions=a,r.styles.usePointCustomOptions=s,t.updateOptions(r))},show:function(){this._visible||this._changeVisibility(!0)},hide:function(){this._visible&&this._changeVisibility(!1)},_changeVisibility:function(t){this._visible=this._options.visible=t,this._updatePointsVisibility(),this.hidePointTooltip(),this._options.visibilityChanged(this)},_updatePointsVisibility:s.ZT,hideLabels:function(){(0,h.S6)(this._points,(function(t,e){e._label.draw(!1)}))},_parsePointOptions:function(t,e,i,r){var n=this._options,o=this._createPointStyles(t,i,r),a=(0,u.l)({},t,{type:n.type,rotated:n.rotated,styles:o,widgetType:n.widgetType,visibilityChanged:n.visibilityChanged});return a.label=ig(e,o.normal.fill),this.areErrorBarsVisible()&&(a.errorBars=n.valueErrorBar),a},_preparePointOptions:function(t){var e=this._getOptionsForPoint();return t?lg(e,t):e},_getMarkerGroupOptions:function(){return(0,u.l)(!1,{},this._getOptionsForPoint(),{hoverStyle:{},selectionStyle:{}})},_getAggregationMethod:function(t,e){var i,r=this.getOptions().aggregation,n=tt(r.method),o="custom"===n&&r.calculate;return i=t&&!e?t=>{var{data:e}=t;return e[0]}:this._aggregators[n]||this._aggregators[this._defaultAggregator],o||i},_resample(t,e){var{interval:i,ticks:r,aggregateByCategory:n}=t,o=this,a=o.argumentAxisType===Pp||o.valueAxisType===Pp,s=0,l=this._getPointDataSelector(),u=o.getOptions(),h=(t,e,i)=>{if(e){var r=e=>{var r=e&&l(e,u);r&&o._checkData(r)&&(r.aggregationInfo=i,t.push(r))};Array.isArray(e)?e.forEach(r):r(e)}},c=this._getAggregationMethod(a,n);if(a){if(n){var d=this.getArgumentAxis().getTranslator().getBusinessRange().categories,p=d.reduce(((t,e)=>(t[e.valueOf()]=[],t)),{});return e.forEach((t=>{p[t.argument.valueOf()].push(t)})),d.reduce(((t,e)=>(h(t,c({aggregationInterval:null,intervalStart:e,intervalEnd:e,data:p[e.valueOf()].map(hg)},o)),t)),[])}return e.reduce(((t,e,r,n)=>{if(t[1].push(e),r===n.length-1||(r+1)%i===0){var a=t[1],s={aggregationInterval:i,data:a.map(hg)};h(t[0],c(s,o)),t[1]=[]}return t}),[[],[]])[0]}var g=[];if(1===r.length){var f={intervalStart:r[0],intervalEnd:r[0],aggregationInterval:null,data:e.map(hg)};h(g,c(f,o),f)}else for(var m=1;m=v&&b.push(e[s]),s++;var y={intervalStart:v,intervalEnd:_,aggregationInterval:i,data:b.map(hg)};h(g,c(y,o),y)}return o._endUpdateData(),g},canRenderCompleteHandle:function(){var t=this._canRenderCompleteHandle;return delete this._canRenderCompleteHandle,!!t},isHovered:function(){return!!(1&this.fullState)},isSelected:function(){return!!(2&this.fullState)},isVisible:function(){return this._visible},getAllPoints:function(){return this._createAllAggregatedPoints(),(this._points||[]).slice()},getPointByPos:function(t){return this._createAllAggregatedPoints(),(this._points||[])[t]},getVisiblePoints:function(){return(this._drawnPoints||[]).slice()},selectPoint:function(t){t.isSelected()||(og(t,this._legendCallback),this._eventPipe({action:qp,target:t}),this._eventTrigger(Zp,{target:t}))},deselectPoint:function(t){t.isSelected()&&(ag(t,this._legendCallback),this._eventPipe({action:Jp,target:t}),this._eventTrigger(Zp,{target:t}))},hover:function(t){var e=this._eventTrigger;this.isHovered()||(this.lastHoverMode=tt(t||this._options.hoverMode),this.fullState=this.fullState|Lp,this._changeStyle(this.lastHoverMode,void 0,this.isSelected()&&this.lastSelectionMode!==Fp),e($p,{target:this}))},clearHover:function(){var t=this._eventTrigger;this.isHovered()&&(this._resetNearestPoint(),this.fullState=this.fullState&~Lp,this._changeStyle(this.lastHoverMode,Bp,this.isSelected()&&this.lastSelectionMode!==Fp),t($p,{target:this}))},hoverPoint:function(t){t.isHovered()||(t.clearHover(),rg(t,this._legendCallback),this._canChangeView()&&this._applyStyle(this._styles.hover),this._eventPipe({action:Kp,target:t}),this._eventTrigger(Xp,{target:t}))},clearPointHover:function(){var t=this;t.getPoints().some((function(e){return!!e.isHovered()&&(ng(e,t._legendCallback),t._canChangeView()&&t._applyStyle(t._styles.normal),t._eventPipe({action:Up,target:e}),t._eventTrigger(Xp,{target:e}),!0)}))},showPointTooltip:function(t){tg(this._extGroups.seriesGroup,"showpointtooltip",t)},hidePointTooltip:function(t){tg(this._extGroups.seriesGroup,"hidepointtooltip",t)},select:function(){this.isSelected()||(this._setSelectedState(this._options.selectionMode),this._eventPipe({action:Wp,target:this}),this._group.toForeground(),this._eventTrigger(Hp,{target:this}))},clearSelection:function(){this.isSelected()&&(this._releaseSelectedState(),this._eventTrigger(Hp,{target:this}))},getPointsByArg:function(t,e){var i=t.valueOf(),r=this.pointsByArgument[i];return r||e||!this._createAllAggregatedPoints()||(r=this.pointsByArgument[i]),r||[]},_createAllAggregatedPoints:function(){return!(!this.useAggregation()||this._useAllAggregatedPoints)&&(this.createPoints(!0),!0)},getPointsByKeys:function(t){return this.getPointsByArg(t)},notify:function(t){var e=this,i=t.action,r=e._seriesModes,n=t.target,o=n.getOptions(),a=tt(o.hoverMode),s=tt(o.selectionMode);i===Kp?e._hoverPointHandler(n,a,t.notifyLegend):i===Up?e._clearPointHoverHandler(n,a,t.notifyLegend):i===Wp?n!==e&&"single"===r.seriesSelectionMode&&e.clearSelection():i===qp?("single"===r.pointSelectionMode&&e.getPoints().some((function(t){return!(t===n||!t.isSelected())&&(e.deselectPoint(t),!0)})),e._selectPointHandler(n,s)):i===Jp&&e._deselectPointHandler(n,s)},_selectPointHandler:function(t,e){e===Yp?t.series===this&&this._setPointsView(Vp,t):e===jp&&this.getPointsByKeys(t.argument,t.argumentIndex).forEach((function(e){e!==t&&e.setView(Vp)}))},_deselectPointHandler:function(t,e){e===Yp?t.series===this&&this._resetPointsView(Vp,t):e===jp&&this.getPointsByKeys(t.argument,t.argumentIndex).forEach((function(e){e!==t&&e.resetView(Vp)}))},_hoverPointHandler:function(t,e,i){t.series!==this&&e===jp?(this.getPointsByKeys(t.argument,t.argumentIndex).forEach((function(t){t.setView(Bp)})),i&&this._legendCallback(t)):e===Yp&&t.series===this&&this._setPointsView(Bp,t)},_clearPointHoverHandler:function(t,e,i){e===jp?(t.series!==this&&this.getPointsByKeys(t.argument,t.argumentIndex).forEach((function(t){t.resetView(Bp)})),i&&this._legendCallback(t)):e===Yp&&t.series===this&&this._resetPointsView(Bp,t)},_deletePoints:function(){this._disposePoints(this._points),this._points=this._drawnPoints=null},_deleteTrackers:function(){(0,h.S6)(this._trackers||[],(function(t,e){e.remove()})),this._trackersGroup&&this._trackersGroup.dispose(),this._trackers=this._trackersGroup=null},dispose:function(){this._deletePoints(),this._group.dispose(),this._labelsGroup&&this._labelsGroup.dispose(),this._errorBarGroup&&this._errorBarGroup.dispose(),this._deleteTrackers(),this._group=this._extGroups=this._markersGroup=this._elementsGroup=this._bordersGroup=this._labelsGroup=this._errorBarGroup=this._graphics=this._rangeData=this._renderer=this._styles=this._options=this._pointOptions=this._drawnPoints=this.pointsByArgument=this._segments=this._prevSeries=null},correctPosition:s.ZT,drawTrackers:s.ZT,getNeighborPoint:s.ZT,areErrorBarsVisible:s.ZT,getMarginOptions:function(){return this._patchMarginOptions({percentStick:this.isFullStackedSeries()})},getColor:function(){return this.getLegendStyles().normal.fill},getOpacity:function(){return this._options.opacity},getStackName:function(){return this._stackName},getBarOverlapGroup:function(){return this._options.barOverlapGroup},getPointByCoord:function(t,e){var i=this.getNeighborPoint(t,e);return null!==i&&void 0!==i&&i.coordsIn(t,e)?i:null},getValueAxis:function(){return this._valueAxis},getArgumentAxis:function(){return this._argumentAxis},getMarkersGroup(){return this._markersGroup},getRenderer(){return this._renderer},removePointElements(){this._markersGroup&&((0,h.S6)(this._points,((t,e)=>e.deleteMarker())),this._markersGroup.dispose(),this._markersGroup=null)},removeGraphicElements(){var t=this;t._elementsGroup&&(t._elementsGroup.dispose(),t._elementsGroup=null),(0,h.S6)(t._graphics||[],((e,i)=>{t._removeElement(i)})),t._graphics=null},removeBordersGroup(){this._bordersGroup&&(this._bordersGroup.dispose(),this._bordersGroup=null)}};Ep.mixins;var dg=br.inherit(function(){var t=function(t){return t?(t=(0,u.l)(!0,{},t),t.title=(e=t.title,(0,l.HD)(e)?{text:e}:e),("logarithmic"===t.type&&t.logarithmBase<=0||t.logarithmBase&&!(0,l.kE)(t.logarithmBase))&&(t.logarithmBase=void 0,t.logarithmBaseError=!0),t.label&&t.label.alignment&&(t.label.userAlignment=!0),t):{};var e},e=function(e,i,r){var n=this._theme,o=r^"valueAxis"===e?"verticalAxis":"horizontalAxis",a=t(i),s=t(this._userOptions.commonAxisSettings),h=(0,u.l)(!0,{},n.commonAxisSettings,n[o],n[e],s,a);return h.workWeek=a.workWeek||n[e].workWeek,h.forceUserTickInterval|=(0,l.$K)(a.tickInterval)&&!(0,l.$K)(a.axisDivisionFactor),h},i=function(t,e){e=e||this._userOptions[t];var i=this._theme[t],r=this._mergedSettings[t];return r||(r=(0,l.PO)(i)&&(0,l.PO)(e)?(0,u.l)(!0,{},i,e):(0,l.$K)(e)?e:i,this._mergedSettings[t]=r,r)},r={base:i,argumentAxis:e,valueAxisRangeSelector:function(){return i.call(this,"valueAxis")},valueAxis:e,series:function(t,e,i){var n,o,a=this,s=a._theme,l=a._userOptions.commonSeriesSettings||{},h=s.commonSeriesSettings,c=a._themeSection.split(".").slice(-1)[0],d=tt(e.type||l.type||h.type||"pie"===c&&s.type),p=a.palette,g=~d.indexOf("bar"),f=~d.indexOf("line"),m=~d.indexOf("area"),_="bubble"===d,v=a.getOptions("resolveLabelsOverlapping"),b=a.getOptions("containerBackgroundColor"),y=r.seriesTemplate.call(this);(g||_)&&(e=(0,u.l)(!0,{},l,l[d],e),o=e.visible,l={type:{}},(0,u.l)(!0,e,e.point),e.visible=o);var x=(0,u.l)(!0,{aggregation:{}},h,h[d],l,l[d],e);return x.aggregation.enabled="chart"===c&&!!x.aggregation.enabled,x.type=d,x.widgetType=c,x.containerBackgroundColor=b,n="pie"!==c?x.color||p.getNextColor(i):function(t,e,i){var r="".concat(t,"-").concat(e);return a._multiPieColors[r]||(a._multiPieColors[r]=p.getNextColor(i)),a._multiPieColors[r]},x.mainSeriesColor=n,x.resolveLabelsOverlapping=v,x.label&&(f||m&&"rangearea"!==d||"scatter"===d)&&(x.label.position="outside"),y&&(x.nameField=y.nameField),x},animation:function(t){var e=this._userOptions[t];return e=(0,l.PO)(e)?e:(0,l.$K)(e)?{enabled:!!e}:{},i.call(this,t,e)},seriesTemplate(){var t=i.call(this,"seriesTemplate");return t&&(t.nameField=t.nameField||"series"),t},zoomAndPan(){function t(t){t=tt(t);var e="pan"===t||"both"===t,i="zoom"===t||"both"===t;return{pan:e,zoom:i,none:!e&&!i}}var e=i.call(this,"zoomAndPan");return{valueAxis:t(e.valueAxis),argumentAxis:t(e.argumentAxis),dragToZoom:!!e.dragToZoom,dragBoxStyle:{class:"dxc-shutter",fill:e.dragBoxStyle.color,opacity:e.dragBoxStyle.opacity},panKey:e.panKey,allowMouseWheel:!!e.allowMouseWheel,allowTouchGestures:!!e.allowTouchGestures}}};return{_themeSection:"chart",ctor:function(t){var e=this;e.callBase.apply(e,arguments);var i=t.options||{};e._userOptions=i,e._mergeAxisTitleOptions=[],e._multiPieColors={},e._callback=s.ZT},dispose:function(){var t=this;return t.palette&&t.palette.dispose(),t.palette=t._userOptions=t._mergedSettings=t._multiPieColors=null,t.callBase.apply(t,arguments)},resetPalette:function(){this.palette.reset(),this._multiPieColors={}},getOptions:function(t){return(r[t]||r.base).apply(this,arguments)},refresh:function(){return this._mergedSettings={},this.callBase.apply(this,arguments)},_initializeTheme:function(){var t=this;t.callBase.apply(t,arguments),t.updatePalette()},resetOptions:function(t){this._mergedSettings[t]=null},update:function(t){this._userOptions=t},updatePalette:function(){this.palette=this.createPalette(this.getOptions("palette"),{useHighlight:!0,extensionMode:this.getOptions("paletteExtensionMode")})}}}()),{floor:pg,sqrt:gg}=Math,fg=Math.min,mg=Math.max,_g=.5,vg=a.radialLabelIndent;function bg(t,e,i){var r;return r=it&&(t=i.width),t}),0),r=i;return i&&(t.outerLabelsCount++,t.outerLabelsCount>1&&(i+=a.pieLabelSpacing),r+=a.pieLabelSpacing),t.sizes.push(i),t.rSizes.push(r),t.common+=i,t}),{sizes:[],rSizes:[],common:0,outerLabelsCount:0})}function Cg(t,e,i,r,n,o){var a,s,l=0,u=t.sizes,h=t.rSizes;for(s=0;s0?i.common+vg:0)}function Og(t,e,i,r,n,o){var a,s=wg(i),l=Eg(n,e,s);return la&&(r=Tg(e.centerX,e.radiusOuter,i,n)),Cg(n,o,t,i,r,e.centerX)},needMoreSpaceForPanesCanvas(t,e,i){var r=this._options,n=r.width,o=r.height,a=r.piePercentage,s=(0,l.kE)(a),u=0,h=0;return t.forEach((t=>{var r=t.canvas,l=s?fg(r.width,r.height)*a:void 0,c=i?i(t):{width:!1,height:!1},d=c.width?0:(s?l:n)-(r.width-r.left-r.right),p=c.height?0:(s?l:o)-(r.height-r.top-r.bottom);e?(u+=d>0?d:0,h=mg(p>0?p:0,h)):(u=mg(d>0?d:0,u),h+=p>0?p:0)})),(u>0||h>0)&&{width:u,height:h}},layoutInsideLegend:function(t,e){var i=t.getLayoutOptions();if(i){var r=i.position,n=i.cutSide,o={horizontal:r.horizontal,vertical:r.vertical};e[i.cutLayoutSide]+="horizontal"===i.cutSide?i.width:i.height,o[n]={left:"right",right:"left",top:"bottom",bottom:"top",center:"center"}[o[n]],t.position({of:Pg(e),my:o,at:r})}}};var Ig=i(50812),Lg=i(91866),Bg=Math.floor,Rg=a.events,Vg=a.states,Dg=Vg.hoverMark,zg=Vg.normalMark,Mg="dxChartTracker",Fg="."+Mg,Ng=(0,Rt.V4)([Lg.Z.down,Lg.Z.move],Mg),Gg="legendClick",Hg="seriesClick",Zg="pointClick",$g="chart-data-point",Xg="chart-data-series",Yg="chart-data-argument",jg=100,Kg=300,Ug="none",Wg="allargumentpoints",qg="includepoints",Jg="excludepoints",Qg=[qg,Jg,Ug];function tf(t,e,i){var r=t.target;if("tspan"===r.tagName)return r.parentNode[e];var n=r[e];return i&&!(0,l.$K)(n)?function t(i){if(i.parentNode)return(0,l.$K)(i.parentNode[e])?i.parentNode[e]:t(i.parentNode)}(r):n}function ef(t,e,i){var{event:r,cancel:n}=t,o=r.cancel,a=n||o;return o&&Br.Z.log("W0003","".concat(i,"Ckick handler argument"),"event.cancel","22.1","Use the 'cancel' field instead"),a||!e.getOptions()}function rf(t){return Qg.indexOf(t)>-1?t:qg}function nf(t){var e=t.getOptions().hoverMode;return e===Ug?e:Wg}var of={ctor:function(t){var e=this,i={tracker:e};e._renderer=t.renderer,e._legend=t.legend,e._tooltip=t.tooltip,e._eventTrigger=t.eventTrigger,e._seriesGroup=t.seriesGroup,t.seriesGroup.off(Fg).on((0,Rt.V4)(Rg.showPointTooltip,Mg),i,e._showPointTooltip).on((0,Rt.V4)(Rg.hidePointTooltip,Mg),i,e._hidePointTooltip),e._renderer.root.off(Fg).on(Ng,i,e._pointerHandler).on((0,Rt.V4)(Lg.Z.up,Mg),(()=>clearTimeout(e._holdTimer))).on((0,Rt.V4)(Ig.u,Mg),i,e._clickHandler)},update:function(t){this._chart=t.chart},updateSeries(t,e){var i=this,r=!(null!==t&&void 0!==t&&t.some((t=>t===i.hoveredSeries))||i._hoveredPoint&&i._hoveredPoint.series);i._storedSeries!==t&&(i._storedSeries=t||[]),r&&(i._clean(),i._renderer.initHatching()),e&&(i.clearSelection(),r||(i._hideTooltip(i.pointAtShownTooltip),i.clearHover()))},setCanvases:function(t,e){this._mainCanvas=t,this._canvases=e},repairTooltip:function(){var t=this.pointAtShownTooltip;t&&t.series&&t.isVisible()?this._showTooltip(t):this._hideTooltip(t,!0)},_setHoveredPoint:function(t){t!==this._hoveredPoint&&(this._releaseHoveredPoint(),t.hover(),this._hoveredPoint=t)},_releaseHoveredPoint:function(t){this._hoveredPoint&&this._hoveredPoint.getOptions()&&(this._hoveredPoint.clearHover(),this._hoveredPoint=null,this._tooltip.isEnabled()&&this._hideTooltip(this._hoveredPoint,!1,t))},_setHoveredSeries:function(t,e){this._releaseHoveredSeries(),this._releaseHoveredPoint(),t.hover(e),this.hoveredSeries=t},_releaseHoveredSeries(){this.hoveredSeries&&(this.hoveredSeries.clearHover(),this.hoveredSeries=null)},clearSelection(){this._storedSeries.forEach((t=>{t&&(t.clearSelection(),t.getPoints().forEach((t=>t.clearSelection())))}))},_clean:function(){this.hoveredPoint=this.hoveredSeries=this._hoveredArgumentPoints=null,this._hideTooltip(this.pointAtShownTooltip)},clearHover:function(t){this._resetHoveredArgument(),this._releaseHoveredSeries(),this._releaseHoveredPoint(t)},_hideTooltip:function(t,e,i){!this._tooltip||t&&this.pointAtShownTooltip!==t||(!e&&this.pointAtShownTooltip&&(this.pointAtShownTooltip=null),this._tooltip.hide(!!i))},_showTooltip:function(t){var e,i=this,r={target:t};if(null!==t&&void 0!==t&&t.getOptions()){if(e=t.getTooltipFormatObject(i._tooltip,i._tooltip.isShared()&&i._chart.getStackedPoints(t)),!(0,l.$K)(e.valueText)&&!e.points||!t.isVisible())return;var n=t.getTooltipParams(i._tooltip.getLocation()),o=i._renderer.getRootOffset();n.x+=o.left,n.y+=o.top;var a=e=>{e&&(i.pointAtShownTooltip=t)};a(i._tooltip.show(e,n,r,void 0,a))}},_showPointTooltip:function(t,e){var i=t.data.tracker,r=i.pointAtShownTooltip;r&&r!==e&&i._hideTooltip(r),i._showTooltip(e)},_hidePointTooltip:function(t,e){t.data.tracker._hideTooltip(e,!1,!0)},_enableOutHandler:function(){if(!this._outHandler){var t=this,e=function(e){var i=t._renderer.getRootOffset(),r=Bg(e.pageX-i.left),n=Bg(e.pageY-i.top);mt(t._mainCanvas,r,n)||t._isCursorOnTooltip(e)||(t._pointerOut(),t._disableOutHandler())};Bt.Z.on(zt["default"].getDocument(),Ng,e),this._outHandler=e}},_isCursorOnTooltip:function(t){return this._tooltip.isEnabled()&&this._tooltip.isCursorOnTooltip(t.pageX,t.pageY)},_disableOutHandler:function(){this._outHandler&&Bt.Z.off(zt["default"].getDocument(),Ng,this._outHandler),this._outHandler=null},stopCurrentHandling:function(){this._pointerOut(!0)},_pointerOut:function(t){this.clearHover(!0),(t||this._tooltip.isEnabled())&&this._hideTooltip(this.pointAtShownTooltip,!1,!0)},_triggerLegendClick:function(t,e){var i=this._eventTrigger;i(Gg,t,(function(){!ef(t,t.target,"Legend")&&i(e,t)}))},_hoverLegendItem:function(t,e){var i,r=this._legend.getItemByCoord(t,e),n=rf(this._legend.getOptions().hoverMode);r?(i=this._storedSeries[r.id],i.isHovered()&&i.lastHoverMode===n||this._setHoveredSeries(i,n),this._tooltip.isEnabled()&&this._hideTooltip(this.pointAtShownTooltip)):this.clearHover()},_hoverArgument:function(t,e){var i=this._getArgumentHoverMode();(0,l.$K)(t)&&(this._releaseHoveredPoint(),this._hoveredArgument=t,this._argumentIndex=e,this._notifySeries({action:"pointHover",notifyLegend:this._notifyLegendOnHoverArgument,target:{argument:t,fullState:Dg,argumentIndex:e,getOptions:function(){return{hoverMode:i}}}}))},_resetHoveredArgument:function(){var t;(0,l.$K)(this._hoveredArgument)&&(t=this._getArgumentHoverMode(),this._notifySeries({action:"clearPointHover",notifyLegend:this._notifyLegendOnHoverArgument,target:{fullState:zg,argumentIndex:this._argumentIndex,argument:this._hoveredArgument,getOptions:function(){return{hoverMode:t}}}}),this._hoveredArgument=null)},_notifySeries:function(t){this._storedSeries.forEach((function(e){e.notify(t)}))},_pointerHandler:function(t){var e,i=t.data.tracker,r=i._renderer.getRootOffset(),n=Bg(t.pageX-r.left),o=Bg(t.pageY-r.top),a=i._getCanvas(n,o),s=tf(t,Xg),l=tf(t,$g)||(null===(e=s)||void 0===e?void 0:e.getPointByCoord(n,o));if(i._isHolding=!1,clearTimeout(i._holdTimer),t.type===Lg.Z.down&&(i._holdTimer=setTimeout((()=>i._isHolding=!0),Kg)),l&&!l.getMarkerVisibility()&&(l=void 0),i._enableOutHandler(),i._legend.coordsIn(n,o))i._hoverLegendItem(n,o);else if(i.hoveredSeries&&i.hoveredSeries!==i._stuckSeries&&i._releaseHoveredSeries(),!i._hoverArgumentAxis(n,o,t)&&(i._isPointerOut(a,l)&&i._pointerOut(),a||l)){if(s&&!l){if(l=s.getNeighborPoint(n,o),i._stickyHovering||!l||l.coordsIn(n,o)||(l=null),s!==i.hoveredSeries)return void i._setTimeout((function(){i._setHoveredSeries(s),i._setStuckSeries(t,s,n,o),i._pointerComplete(l,n,o)}),s)}else{if(l){if(t.type!==Lg.Z.move&&"touch"!==t.pointerType)return;return void(i.hoveredSeries?i._setTimeout((()=>i._pointerOnPoint(l,n,o,t)),l):i._pointerOnPoint(l,n,o,t))}var u;i._setStuckSeries(t,void 0,n,o)&&i._stickyHovering?(s=i._stuckSeries,l=s.getNeighborPoint(n,o),i._releaseHoveredSeries(),(null===(u=l)||void 0===u?void 0:u.getMarkerVisibility())&&i._setHoveredPoint(l)):i._stickyHovering||i._pointerOut()}i._pointerComplete(l,n,o)}},_pointerOnPoint:function(t,e,i){this._resetHoveredArgument(),this._setHoveredPoint(t),this._pointerComplete(t,e,i)},_pointerComplete:function(t){this.pointAtShownTooltip!==t&&this._tooltip.isEnabled()&&this._showTooltip(t)},_clickHandler:function(t){var e,i=t.data.tracker;if(!i._isHolding){var r=i._renderer.getRootOffset(),n=Bg(t.pageX-r.left),o=Bg(t.pageY-r.top),a=tf(t,$g),s=i._stuckSeries||tf(t,Xg)||(null===(e=a)||void 0===e?void 0:e.series),u=i._argumentAxis;if(i._legend.coordsIn(n,o)){var h=i._legend.getItemByCoord(n,o);h&&i._legendClick(h,t)}else if(null!==u&&void 0!==u&&u.coordsIn(n,o)){var c=tf(t,Yg,!0);(0,l.$K)(c)&&i._eventTrigger("argumentAxisClick",{argument:c,event:t})}else if(s){var d;a=a||s.getPointByCoord(n,o),null!==(d=a)&&void 0!==d&&d.getMarkerVisibility()?i._pointClick(a,t):tf(t,Xg)&&i._eventTrigger(Hg,{target:s,event:t})}}},dispose:function(){this._disableOutHandler(),this._renderer.root.off(Fg),this._seriesGroup.off(Fg)}},af=function(t){this.ctor(t)};(0,u.l)(af.prototype,of,{_pointClick:function(t,e){var i=this._eventTrigger,r=t.series,n={target:t,event:e};i(Zg,n,(function(){!ef(n,r,"Point")&&i(Hg,{target:r,event:e})}))},update:function(t){of.update.call(this,t),this._argumentAxis=t.argumentAxis||{},this._axisHoverEnabled=this._argumentAxis&&tt(this._argumentAxis.getOptions().hoverMode)===Wg,this._rotated=t.rotated,this._crosshair=t.crosshair,this._stickyHovering=t.stickyHovering},_getCanvas:function(t,e){for(var i=this._canvases||[],r=0;ri.push.apply(i,e.getPointsByKeys(t.argument,t.argumentIndex)))),this._eventTrigger(Gg,{target:t.argument,points:i,event:e})},_pointClick:function(t,e){this._eventTrigger(Zg,{target:t,event:e})},_hoverLegendItem:function(t,e){var i=this._legend.getItemByCoord(t,e);i&&this._hoveredArgument!==i.argument?(this._resetHoveredArgument(),this._hoverArgument(i.argument,i.argumentIndex)):i||this.clearHover()},_getArgumentHoverMode:function(){return nf(this._legend)},_hoverArgumentAxis:s.ZT,_setStuckSeries:s.ZT,_getCanvas:s.ZT,_notifyLegendOnHoverArgument:!0});var lf=i(27238),uf=i(99915),hf=(0,Dt.Jj)(),cf=(0,Dt.jW)(),df={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},pf={CSS:"text/css",EXCEL:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PNG:"image/png",JPEG:"image/jpeg",GIF:"image/gif",SVG:"image/svg+xml",PDF:"application/pdf"},gf={_revokeObjectURLTimeout:3e4,_getDataUri:function(t,e){var i=this._getMimeType(t);return"data:".concat(i,";base64,").concat(e)},_getMimeType:function(t){return pf[t]||"application/octet-stream"},_linkDownloader:function(t,e){var i=zt["default"].createElement("a");return i.download=t,i.href=e,i.target="_blank",i},_winJSBlobSave:function(t,e,i){var r=new Windows.Storage.Pickers.FileSavePicker;r.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary;var n=df[i];if(n){var o=this._getMimeType(i);r.fileTypeChoices.insert(o,["."+n])}r.suggestedFileName=e,r.pickSaveFileAsync().then((function(e){e&&e.openAsync(Windows.Storage.FileAccessMode.readWrite).then((function(e){var i=t.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(i,e).then((function(){e.flushAsync().done((function(){i.close(),e.close()}))}))}))}))},_click:function(t){try{t.dispatchEvent(new MouseEvent("click",{cancelable:!0}))}catch(i){var e=zt["default"].getDocument().createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,hf,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}},_saveBlobAs:function(t,e,i){if(this._blobSaved=!1,(0,l.$K)(cf.msSaveOrOpenBlob))cf.msSaveOrOpenBlob(i,t),this._blobSaved=!0;else if((0,l.$K)(hf.WinJS))this._winJSBlobSave(i,t,e),this._blobSaved=!0;else{var r=hf.URL||hf.webkitURL||hf.mozURL||hf.msURL||hf.oURL;if((0,l.$K)(r)){var n=r.createObjectURL(i),o=this._linkDownloader(t,n);setTimeout((()=>{r.revokeObjectURL(n),this._objectUrlRevoked=!0}),this._revokeObjectURLTimeout),this._click(o)}else uf.k.warn("window.URL || window.webkitURL || window.mozURL || window.msURL || window.oURL is not defined")}},saveAs:function(t,e,i){var r=df[e];if(r&&(t+="."+r),(0,l.mf)(hf.Blob))this._saveBlobAs(t,e,i);else{(0,l.$K)(cf.userAgent.match(/iPad/i))||lf.Z.log("E1034");var n=this._linkDownloader(t,this._getDataUri(e,i));this._click(n)}}},ff=i(55733),mf=i.n(ff),_f=i(46282),vf=i(66713),bf=i(69992),yf=i(57495),xf={ar:1,bg:2,ca:3,"zh-Hans":4,cs:5,da:6,de:7,el:8,en:9,es:10,fi:11,fr:12,he:13,hu:14,is:15,it:16,ja:17,ko:18,nl:19,no:20,pl:21,pt:22,rm:23,ro:24,ru:25,hr:26,sk:27,sq:28,sv:29,th:30,tr:31,ur:32,id:33,uk:34,be:35,sl:36,et:37,lv:38,lt:39,tg:40,fa:41,vi:42,hy:43,az:44,eu:45,hsb:46,mk:47,tn:50,xh:52,zu:53,af:54,ka:55,fo:56,hi:57,mt:58,se:59,ga:60,ms:62,kk:63,ky:64,sw:65,tk:66,uz:67,tt:68,bn:69,pa:70,gu:71,or:72,ta:73,te:74,kn:75,ml:76,as:77,mr:78,sa:79,mn:80,bo:81,cy:82,km:83,lo:84,gl:86,kok:87,syr:90,si:91,iu:93,am:94,tzm:95,ne:97,fy:98,ps:99,fil:100,dv:101,ha:104,yo:106,quz:107,nso:108,ba:109,lb:110,kl:111,ig:112,ii:120,arn:122,moh:124,br:126,ug:128,mi:129,oc:130,co:131,gsw:132,sah:133,qut:134,rw:135,wo:136,prs:140,gd:145,"ar-SA":1025,"bg-BG":1026,"ca-ES":1027,"zh-TW":1028,"cs-CZ":1029,"da-DK":1030,"de-DE":1031,"el-GR":1032,"en-US":1033,"fi-FI":1035,"fr-FR":1036,"he-IL":1037,"hu-HU":1038,"is-IS":1039,"it-IT":1040,"ja-JP":1041,"ko-KR":1042,"nl-NL":1043,"nb-NO":1044,"pl-PL":1045,"pt-BR":1046,"rm-CH":1047,"ro-RO":1048,"ru-RU":1049,"hr-HR":1050,"sk-SK":1051,"sq-AL":1052,"sv-SE":1053,"th-TH":1054,"tr-TR":1055,"ur-PK":1056,"id-ID":1057,"uk-UA":1058,"be-BY":1059,"sl-SI":1060,"et-EE":1061,"lv-LV":1062,"lt-LT":1063,"tg-Cyrl-TJ":1064,"fa-IR":1065,"vi-VN":1066,"hy-AM":1067,"az-Latn-AZ":1068,"eu-ES":1069,"hsb-DE":1070,"mk-MK":1071,"tn-ZA":1074,"xh-ZA":1076,"zu-ZA":1077,"af-ZA":1078,"ka-GE":1079,"fo-FO":1080,"hi-IN":1081,"mt-MT":1082,"se-NO":1083,"ms-MY":1086,"kk-KZ":1087,"ky-KG":1088,"sw-KE":1089,"tk-TM":1090,"uz-Latn-UZ":1091,"tt-RU":1092,"bn-IN":1093,"pa-IN":1094,"gu-IN":1095,"or-IN":1096,"ta-IN":1097,"te-IN":1098,"kn-IN":1099,"ml-IN":1100,"as-IN":1101,"mr-IN":1102,"sa-IN":1103,"mn-MN":1104,"bo-CN":1105,"cy-GB":1106,"km-KH":1107,"lo-LA":1108,"gl-ES":1110,"kok-IN":1111,"syr-SY":1114,"si-LK":1115,"iu-Cans-CA":1117,"am-ET":1118,"ne-NP":1121,"fy-NL":1122,"ps-AF":1123,"fil-PH":1124,"dv-MV":1125,"ha-Latn-NG":1128,"yo-NG":1130,"quz-BO":1131,"nso-ZA":1132,"ba-RU":1133,"lb-LU":1134,"kl-GL":1135,"ig-NG":1136,"ii-CN":1144,"arn-CL":1146,"moh-CA":1148,"br-FR":1150,"ug-CN":1152,"mi-NZ":1153,"oc-FR":1154,"co-FR":1155,"gsw-FR":1156,"sah-RU":1157,"qut-GT":1158,"rw-RW":1159,"wo-SN":1160,"prs-AF":1164,"gd-GB":1169,"ar-IQ":2049,"zh-CN":2052,"de-CH":2055,"en-GB":2057,"es-MX":2058,"fr-BE":2060,"it-CH":2064,"nl-BE":2067,"nn-NO":2068,"pt-PT":2070,"sr-Latn-CS":2074,"sv-FI":2077,"az-Cyrl-AZ":2092,"dsb-DE":2094,"se-SE":2107,"ga-IE":2108,"ms-BN":2110,"uz-Cyrl-UZ":2115,"bn-BD":2117,"mn-Mong-CN":2128,"iu-Latn-CA":2141,"tzm-Latn-DZ":2143,"quz-EC":2155,"ar-EG":3073,"zh-HK":3076,"de-AT":3079,"en-AU":3081,"es-ES":3082,"fr-CA":3084,"sr-Cyrl-CS":3098,"se-FI":3131,"quz-PE":3179,"ar-LY":4097,"zh-SG":4100,"de-LU":4103,"en-CA":4105,"es-GT":4106,"fr-CH":4108,"hr-BA":4122,"smj-NO":4155,"ar-DZ":5121,"zh-MO":5124,"de-LI":5127,"en-NZ":5129,"es-CR":5130,"fr-LU":5132,"bs-Latn-BA":5146,"smj-SE":5179,"ar-MA":6145,"en-IE":6153,"es-PA":6154,"fr-MC":6156,"sr-Latn-BA":6170,"sma-NO":6203,"ar-TN":7169,"en-ZA":7177,"es-DO":7178,"sr-Cyrl-BA":7194,"sma-SE":7227,"ar-OM":8193,"en-JM":8201,"es-VE":8202,"bs-Cyrl-BA":8218,"sms-FI":8251,"ar-YE":9217,"en-029":9225,"es-CO":9226,"sr-Latn-RS":9242,"smn-FI":9275,"ar-SY":10241,"en-BZ":10249,"es-PE":10250,"sr-Cyrl-RS":10266,"ar-JO":11265,"en-TT":11273,"es-AR":11274,"sr-Latn-ME":11290,"ar-LB":12289,"en-ZW":12297,"es-EC":12298,"sr-Cyrl-ME":12314,"ar-KW":13313,"en-PH":13321,"es-CL":13322,"ar-AE":14337,"es-UY":14346,"ar-BH":15361,"es-PY":15370,"ar-QA":16385,"en-IN":16393,"es-BO":16394,"en-MY":17417,"es-SV":17418,"en-SG":18441,"es-HN":18442,"es-NI":19466,"es-PR":20490,"es-US":21514,"bs-Cyrl":25626,"bs-Latn":26650,"sr-Cyrl":27674,"sr-Latn":28698,smn:28731,"az-Cyrl":29740,sms:29755,zh:30724,nn:30740,bs:30746,"az-Latn":30764,sma:30779,"uz-Cyrl":30787,"mn-Cyrl":30800,"iu-Cans":30813,"zh-Hant":31748,nb:31764,sr:31770,"tg-Cyrl":31784,dsb:31790,smj:31803,"uz-Latn":31811,"mn-Mong":31824,"iu-Latn":31837,"tzm-Latn":31839,"ha-Latn":31848};function wf(){return xf[yf.Z.locale()]}i(52977);var Cf=1632,Sf={thousands:"#,##0{0},"K"",millions:"#,##0{0},,"M"",billions:"#,##0{0},,,"B"",trillions:"#,##0{0},,,,"T"",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},kf=/a+/g,Af=/E/g,Tf=/dE+/g,Ef=/L/g,Of=/h/g,Pf=/./g,If={_applyPrecision:function(t,e){var i,r;if(e>0){for(i="decimal"!==t?".":"",r=0;r=Cf&&evf.Z.format(e,t)));return i&&(i=this._convertDateFormatToOpenXml(i),i=this._getLanguageInfo(e)+i),i},_getLanguageInfo:function(t){var e=wf(),i=e?e.toString(16):"",r="";if(this._hasArabicDigits(t)){while(i.length<3)i="0"+i;r="[$-2010"+i+"]"}else i&&(r="[$-"+i+"]");return r},_convertNumberFormat:function(t,e,i){var r,n;return n="currency"===t?_f.Z.getOpenXmlCurrencyFormat(i):Sf[t.toLowerCase()],n&&(r=(0,Oa.WU)(n,this._applyPrecision(t,e))),r},convertFormat:function(t,e,i,r){if((0,l.$K)(t)){if("date"===i)return If._convertDateFormat(t);if((0,l.HD)(t)&&Sf[t.toLowerCase()])return If._convertNumberFormat(t,e,r)}}},Lf=If,Bf={toXml:function(t,e,i){var r=["<",t];for(var n in e){var o=e[n];(0,l.$K)(o)&&r.push(" ",n,'="',o,'"')}return(0,l.$K)(i)&&""!==i?r.push(">",i,""):r.push(" />"),r.join("")}},Rf=Bf,Vf={tryCreateTag:function(t){var e=null;return(0,l.$K)(t)&&(e={vertical:t.vertical,wrapText:t.wrapText,horizontal:t.horizontal},Vf.isEmpty(e)&&(e=null)),e},copy:function(t){var e=null;return(0,l.$K)(t)&&(e={},void 0!==t.horizontal&&(e.horizontal=t.horizontal),void 0!==t.vertical&&(e.vertical=t.vertical),void 0!==t.wrapText&&(e.wrapText=t.wrapText)),e},areEqual:function(t,e){return Vf.isEmpty(t)&&Vf.isEmpty(e)||(0,l.$K)(t)&&(0,l.$K)(e)&&t.vertical===e.vertical&&t.wrapText===e.wrapText&&t.horizontal===e.horizontal},isEmpty:function(t){return!(0,l.$K)(t)||!(0,l.$K)(t.vertical)&&!(0,l.$K)(t.wrapText)&&!(0,l.$K)(t.horizontal)},toXml:function(t){return Rf.toXml("alignment",{vertical:t.vertical,wrapText:(0,l.$K)(t.wrapText)?Number(t.wrapText):void 0,horizontal:t.horizontal})}},Df=Vf,zf={_tryConvertColor:function(t){if("string"!==typeof t)return t;var e;if(t.length>0&&"#"===t[0]){var i=t.substr(1,t.length);e=6===i.length?"FF"+i:8===i.length?i[6]+i[7]+i.substr(0,6):i}else e=t;return e},tryCreateTag:function(t){var e=null;return(0,l.$K)(t)&&(e="string"===typeof t?{rgb:this._tryConvertColor(t)}:{rgb:this._tryConvertColor(t.rgb),theme:t.theme},zf.isEmpty(e)&&(e=null)),e},copy:function(t){var e=null;return(0,l.$K)(t)&&("string"===typeof t?e=t:(e={},void 0!==t.rgb&&(e.rgb=t.rgb),void 0!==t.theme&&(e.theme=t.theme))),e},isEmpty:function(t){return!(0,l.$K)(t)||!(0,l.$K)(t.rgb)&&!(0,l.$K)(t.theme)},areEqual:function(t,e){return zf.isEmpty(t)&&zf.isEmpty(e)||(0,l.$K)(t)&&(0,l.$K)(e)&&t.rgb===e.rgb&&t.theme===e.theme},toXml:function(t,e){return Rf.toXml(t,{rgb:e.rgb,theme:e.theme})}},Mf=zf,Ff={tryCreateTag:function(t){var e=null;return(0,l.$K)(t)&&(e={patternType:t.patternType,backgroundColor:Mf.tryCreateTag(t.backgroundColor),foregroundColor:Mf.tryCreateTag(t.foregroundColor)},Ff.isEmpty(e)&&(e=null)),e},copy:function(t){var e=null;return(0,l.$K)(t)&&(e={},void 0!==t.patternType&&(e.patternType=t.patternType),void 0!==t.backgroundColor&&(e.backgroundColor=Mf.copy(t.backgroundColor)),void 0!==t.foregroundColor&&(e.foregroundColor=Mf.copy(t.foregroundColor))),e},areEqual:function(t,e){return Ff.isEmpty(t)&&Ff.isEmpty(e)||(0,l.$K)(t)&&(0,l.$K)(e)&&t.patternType===e.patternType&&Mf.areEqual(t.backgroundColor,e.backgroundColor)&&Mf.areEqual(t.foregroundColor,e.foregroundColor)},isEmpty:function(t){return!(0,l.$K)(t)||!(0,l.$K)(t.patternType)},toXml:function(t){var e=[(0,l.$K)(t.foregroundColor)?Mf.toXml("fgColor",t.foregroundColor):"",(0,l.$K)(t.backgroundColor)?Mf.toXml("bgColor",t.backgroundColor):""].join("");return Rf.toXml("patternFill",{patternType:t.patternType},e)}},Nf=Ff,Gf={tryCreateTag:function(t){var e=null;return(0,l.$K)(t)&&(e={patternFill:Nf.tryCreateTag(t.patternFill)},Gf.isEmpty(e)&&(e=null)),e},tryCreateFillFromSimpleFormat:function(){var{backgroundColor:t,fillPatternType:e,fillPatternColor:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!(0,l.$K)(t)||(0,l.$K)(e)&&(0,l.$K)(i)?(0,l.$K)(e)&&(0,l.$K)(i)?{patternFill:{patternType:e,foregroundColor:{rgb:i},backgroundColor:{rgb:t}}}:void 0:{patternFill:{patternType:"solid",foregroundColor:{rgb:t}}}},copySimpleFormat:function(t,e){void 0!==t.backgroundColor&&(e.backgroundColor=t.backgroundColor),void 0!==t.fillPatternType&&(e.fillPatternType=t.fillPatternType),void 0!==t.fillPatternColor&&(e.fillPatternColor=t.fillPatternColor)},copy:function(t){var e=null;return(0,l.$K)(t)&&(e={},void 0!==t.patternFill&&(e.patternFill=Nf.copy(t.patternFill))),e},areEqual:function(t,e){return Gf.isEmpty(t)&&Gf.isEmpty(e)||(0,l.$K)(t)&&(0,l.$K)(e)&&Nf.areEqual(t.patternFill,e.patternFill)},isEmpty:function(t){return!(0,l.$K)(t)||Nf.isEmpty(t.patternFill)},toXml:function(t){return Rf.toXml("fill",{},Nf.toXml(t.patternFill))}},Hf=Gf,Zf={tryCreateTag:function(t){var e=null;return(0,l.$K)(t)&&(e={size:t.size,name:t.name,family:t.family,scheme:t.scheme,bold:t.bold,italic:t.italic,underline:t.underline,color:Mf.tryCreateTag(t.color)},Zf.isEmpty(e)&&(e=null)),e},copy:function(t){var e=null;return(0,l.$K)(t)&&(e={},void 0!==t.size&&(e.size=t.size),void 0!==t.name&&(e.name=t.name),void 0!==t.family&&(e.family=t.family),void 0!==t.scheme&&(e.scheme=t.scheme),void 0!==t.bold&&(e.bold=t.bold),void 0!==t.italic&&(e.italic=t.italic),void 0!==t.underline&&(e.underline=t.underline),void 0!==t.color&&(e.color=Mf.copy(t.color))),e},areEqual:function(t,e){return Zf.isEmpty(t)&&Zf.isEmpty(e)||(0,l.$K)(t)&&(0,l.$K)(e)&&t.size===e.size&&t.name===e.name&&t.family===e.family&&t.scheme===e.scheme&&(t.bold===e.bold||!t.bold===!e.bold)&&(t.italic===e.italic||!t.italic===!e.italic)&&t.underline===e.underline&&Mf.areEqual(t.color,e.color)},isEmpty:function(t){return!(0,l.$K)(t)||!(0,l.$K)(t.size)&&!(0,l.$K)(t.name)&&!(0,l.$K)(t.family)&&!(0,l.$K)(t.scheme)&&(!(0,l.$K)(t.bold)||!t.bold)&&(!(0,l.$K)(t.italic)||!t.italic)&&!(0,l.$K)(t.underline)&&Mf.isEmpty(t.color)},toXml:function(t){var e=[(0,l.$K)(t.bold)&&t.bold?Rf.toXml("b",{}):"",(0,l.$K)(t.size)?Rf.toXml("sz",{val:t.size}):"",(0,l.$K)(t.color)?Mf.toXml("color",t.color):"",(0,l.$K)(t.name)?Rf.toXml("name",{val:t.name}):"",(0,l.$K)(t.family)?Rf.toXml("family",{val:t.family}):"",(0,l.$K)(t.scheme)?Rf.toXml("scheme",{val:t.scheme}):"",(0,l.$K)(t.italic)&&t.italic?Rf.toXml("i",{}):"",(0,l.$K)(t.underline)?Rf.toXml("u",{val:t.underline}):""].join("");return Rf.toXml("font",{},e)}},$f=Zf,Xf={tryCreateTag:function(t,e){var i=null;if((0,l.$K)(t)){var r;r="number"===typeof t.numberFormat?t.numberFormat:e.registerNumberFormat(t.numberFormat);var n=t.fill;(0,l.$K)(n)||(n=Hf.tryCreateFillFromSimpleFormat(t)),i={numberFormatId:r,alignment:Df.tryCreateTag(t.alignment),fontId:e.registerFont(t.font),fillId:e.registerFill(n)},Xf.isEmpty(i)&&(i=null)}return i},copy:function(t){var e;return null===t?e=null:(0,l.$K)(t)&&(e={},void 0!==t.numberFormat&&(e.numberFormat=t.numberFormat),void 0!==t.fill?e.fill=Hf.copy(t.fill):Hf.copySimpleFormat(t,e),void 0!==t.alignment&&(e.alignment=Df.copy(t.alignment)),void 0!==t.font&&(e.font=$f.copy(t.font))),e},areEqual:function(t,e){return Xf.isEmpty(t)&&Xf.isEmpty(e)||(0,l.$K)(t)&&(0,l.$K)(e)&&t.fontId===e.fontId&&t.numberFormatId===e.numberFormatId&&t.fillId===e.fillId&&Df.areEqual(t.alignment,e.alignment)},isEmpty:function(t){return!(0,l.$K)(t)||!(0,l.$K)(t.fontId)&&!(0,l.$K)(t.numberFormatId)&&!(0,l.$K)(t.fillId)&&Df.isEmpty(t.alignment)},toXml:function(t){var e,i=Df.isEmpty(t.alignment);return(0,l.$K)(t.numberFormatId)&&(e=t.numberFormatId>0?1:0),Rf.toXml("xf",{xfId:0,applyAlignment:i?null:1,fontId:t.fontId,applyNumberFormat:e,fillId:t.fillId,numFmtId:t.numberFormatId},i?null:Df.toXml(t.alignment))}},Yf=Xf,jf={ID_PROPERTY_NAME:"id",tryCreateTag:function(t){var e=null;return"string"===typeof t&&(e={formatCode:t},jf.isEmpty(e)&&(e=null)),e},areEqual:function(t,e){return jf.isEmpty(t)&&jf.isEmpty(e)||(0,l.$K)(t)&&(0,l.$K)(e)&&t.formatCode===e.formatCode},isEmpty:function(t){return!(0,l.$K)(t)||!(0,l.$K)(t.formatCode)||""===t.formatCode},toXml:function(t){return Rf.toXml("numFmt",{numFmtId:t[jf.ID_PROPERTY_NAME],formatCode:t.formatCode})}},Kf=jf;class Uf{constructor(){this._cellFormatTags=[],this._fillTags=[],this._fontTags=[],this._numberFormatTags=[],this._fillTags.push(Hf.tryCreateTag({patternFill:{patternType:"none"}}))}registerCellFormat(t){var e,i=Yf.tryCreateTag(t,{registerFill:this.registerFill.bind(this),registerFont:this.registerFont.bind(this),registerNumberFormat:this.registerNumberFormat.bind(this)});if((0,l.$K)(i)){for(var r=0;rYf.toXml(t)));return Rf.toXml("cellXfs",{count:t.length},t.join(""))}registerFill(t){var e,i=Hf.tryCreateTag(t);if((0,l.$K)(i)){for(var r=0;rHf.toXml(t)));return Rf.toXml("fills",{count:t.length},t.join(""))}registerFont(t){var e,i=$f.tryCreateTag(t);if((0,l.$K)(i)){for(var r=0;r$f.toXml(t)));return Rf.toXml("fonts",{count:t.length},t.join(""))}_convertNumberFormatIndexToId(t){return 165+t}registerNumberFormat(t){var e,i=Kf.tryCreateTag(t);if((0,l.$K)(i)){for(var r=0;r0){var t=this._numberFormatTags.map((t=>Kf.toXml(t)));return Rf.toXml("numFmts",{count:t.length},t.join(""))}return""}}var Wf='',qf='',Jf="",Qf='',tm="http://schemas.openxmlformats.org",em="rels",im="xl",rm="workbook.xml",nm="[Content_Types].xml",om="sharedStrings.xml",am="styles.xml",sm="worksheets",lm="sheet1.xml",um='',hm={boolean:"b",date:"d",number:"n",string:"s"},cm=Date.UTC(1899,11,30),dm=60,pm=7,gm={quarter:"shortDate",quarterAndYear:"shortDate",minute:"longTime",millisecond:"longTime"},fm=Mt.Z.inherit({_getXMLTag:function(t,e,i){var r,n,o="<"+t,a=e.length;for(r=0;r"+i+"":o+" />"},_convertToExcelCellRef:function(t,e){var i,r,n="";while(!r)i=65+(e>=26?e%26:Math.ceil(e)),n=String.fromCharCode(i)+n,e>=26?e=Math.floor(e/26)-1:r=!0;return n+(t+1)},_convertToExcelCellRefAndTrackMaxIndex:function(t,e){return this._maxRowIndex0&&(this._needSheetPr=!0),o.push(i)}return o},_calculateWidth:function(t){return t=parseInt(t,10),(!t||t<5)&&(t=100),Math.min(255,Math.floor((t-5)/pm*100+.5)/100)},_prepareStyleData:function(){var t=this,e=t._dataProvider.getStyles();t._dataProvider.getColumns().forEach((function(e){t._colsArray.push(t._calculateWidth(e.width))}));var i=[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!1},{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!0}];this._excelFile.registerFont(i[0]),this._excelFile.registerFont(i[1]),e.forEach((function(e){var r=t._tryConvertToExcelNumberFormat(e.format,e.dataType);(0,l.$K)(r)||(r=0),t._styleArray.push({font:i[Number(!!e.bold)],numberFormat:r,alignment:{vertical:"top",wrapText:!!e.wrapText,horizontal:e.alignment||"left"}})})),t._styleArrayIndexToCellStyleIdMap=t._styleArray.map((t=>this._excelFile.registerCellFormat(t)))},_prepareCellData:function(){this._cellsArray=this._getDataArray()},_createXMLRelationships:function(t){return this._getXMLTag("Relationships",[{name:"xmlns",value:tm+"/package/2006/relationships"}],t)},_createXMLRelationship:function(t,e,i){return this._getXMLTag("Relationship",[{name:"Id",value:"rId"+t},{name:"Type",value:tm+"/officeDocument/2006/relationships/"+e},{name:"Target",value:i}])},_getWorkbookContent:function(){return Wf+this._getXMLTag("workbook",[{name:"xmlns:r",value:tm+"/officeDocument/2006/relationships"},{name:"xmlns",value:tm+"/spreadsheetml/2006/main"}],'Sheet!$1:$1')},_getContentTypesContent:function(){return Wf+''},_generateStylesXML:function(){var t=this._zip.folder(im),e="";e+=this._excelFile.generateNumberFormatsXml(),e+=this._excelFile.generateFontsXml(),e+=this._excelFile.generateFillsXml(),e+=Qf,e+=this._excelFile.generateCellFormatsXml(),e+=this._getXMLTag("cellStyles",[{name:"count",value:1}],this._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),e=Wf+this._getXMLTag("styleSheet",[{name:"xmlns",value:tm+"/spreadsheetml/2006/main"}],e),t.file(am,e),this._styleArray=[]},_generateStringsXML:function(){var t,e=this._zip.folder(im),i=this._stringArray.length,r=Wf;for(t=0;t':""},_generateWorksheetXML:function(){var t,e,i,r,n,o=[],a=this._cellsArray.length,s=this._colsArray.length,u="1:"+s,h=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,c=[um];for(c.push(this._needSheetPr?qf:Jf),c.push(''),c.push("'),c.push(this._getPaneXML()),c.push(""),c.push(''),t=0;t"),e=0;e=h?this._dataProvider.getGroupLevel(e):0},{name:"x14ac:dyDescent",value:"0.25"}],r.join(""))),this._cellsArray[e]=null,o.length>1e4&&(c.push(o.join("")),o=[])}c.push(o.join(""));var d=this._convertToExcelCellRef(this._maxRowIndex,this._maxColumnIndex);c.push(""+this._getAutoFilterXML(d)+this._generateMergingXML()+""),this._zip.folder(im).folder(sm).file(lm,c.join("")),this._colsArray=[],this._cellsArray=[]},_generateMergingXML:function(){var t,e,i,r,n,o=(0,l.$K)(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),a=this._dataProvider.getColumns().length,s=[],u=[],h="";for(r=0;r1?n.scaleY=Om(i[1]):n.scaleY=n.scaleX)),Gm(t,n,e),n}function Mm(t,e){var i=e.x,r=e.y,n=e.width,o=e.height,a=e.rx;a?(a=wm(a,n/2,o/2),t.save(),t.translate(i,r),t.moveTo(n/2,0),t.arcTo(n,0,n,o,a),t.arcTo(n,o,0,o,a),t.arcTo(0,o,0,0,a),t.arcTo(0,0,a,0,a),t.lineTo(n/2,0),t.restore()):t.rect(i,r,n,o)}function Fm(t,e,i){var r=new Ta.BH,n=new bm.Image;return n.onload=function(){t.save(),t.globalAlpha=e.globalAlpha,Jm(t,e),Qm(t,e,i),t.drawImage(n,e.x||0,e.y||0,e.width,e.height),t.restore(),r.resolve()},n.onerror=function(){r.resolve()},n.setAttribute("crossOrigin","anonymous"),n.src=e.href||e["xlink:href"],r}function Nm(t,e){var i,r,n,o=e.replace(/,/g," ").split(/([A-Z])/i).filter((t=>""!==t.trim())),a=0;do{switch(i=(o[a+1]||"").trim().split(" "),o[a]){case"M":t.moveTo(Om(i[0]),Om(i[1])),a+=2;break;case"L":for(var s=0;s{var e=parseInt(t.offset.replace(/%/,""));s.addColorStop(e/100,t.stopColor)})),t.globalAlpha=e.opacity,t.fillStyle=s,t.fill()}}}function qm(t,e,i){var r,n=Hm(e.filter);n&&(r=i.filters[n],r||(r={offsetX:0,offsetY:0,blur:0,color:"#000"}),t.shadowOffsetX=r.offsetX,t.shadowOffsetY=r.offsetY,t.shadowColor=r.color,t.shadowBlur=r.blur)}function Jm(t,e){t.translate(e.translateX||0,e.translateY||0),e.translateX=void 0,e.translateY=void 0,e.rotationAngle&&(t.translate(e.rotationX||0,e.rotationY||0),t.rotate(e.rotationAngle*xm/180),t.translate(-(e.rotationX||0),-(e.rotationY||0)),e.rotationAngle=void 0,e.rotationX=void 0,e.rotationY=void 0),isFinite(e.scaleX)&&(t.scale(e.scaleX,e.scaleY),e.scaleX=void 0,e.scaleY=void 0)}function Qm(t,e,i){e["clip-path"]&&(Um(i.clipPaths[Hm(e["clip-path"])],t,{},i),t.clip(),e["clip-path"]=void 0)}function t_(t,e){var i=new P(t);return"rgba("+i.r+","+i.g+","+i.b+","+e+")"}function e_(t){var e=[];return(0,h.S6)(t.childNodes,((t,i)=>{var{attributes:r}=i;e.push({offset:r.offset.value,stopColor:r["stop-color"].value})})),e}function i_(t){var e,i,r={};return(0,h.S6)(t.childNodes,(function(t,n){var o=n.attributes;if(o.result)switch(o.result.value){case"gaussianBlurResult":r.blur=Om(o.stdDeviation.value);break;case"offsetResult":r.offsetX=Om(o.dx.value),r.offsetY=Om(o.dy.value);break;case"floodResult":e=o["flood-color"]?o["flood-color"].value:"#000",i=o["flood-opacity"]?o["flood-opacity"].value:1,r.color=t_(e,i)}})),r}function r_(t,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Ta.BH,r=0;r{r_(Array.prototype.slice.call(t,r+1),e,i)}));break}}return r===t.length&&i.resolve(),i}function n_(t,e,i,r){return r_(t,(function(t){switch(t.tagName&&t.tagName.toLowerCase()){case"g":case"svg":var n=(0,u.l)({},i,zm(t,r.rootAppended));e.save(),Jm(e,n),Qm(e,n,r);var o=()=>{e.restore()},a=n_(t.childNodes,e,n,r);return(0,l.tI)(a)?a.then(o):o(),a;case"defs":return n_(t.childNodes,e,{},r);case"clippath":r.clipPaths[t.attributes.id.textContent]=t.childNodes[0];break;case"pattern":r.patterns[t.attributes.id.textContent]=t;break;case"filter":r.filters[t.id]=i_(t);break;case"lineargradient":r.gradients[t.attributes.id.textContent]=e_(t);break;default:return Um(t,e,i,r)}}))}function o_(t,e){var i=e["stroke-dasharray"]&&e["stroke-dasharray"].match(/(\d+)/g);i&&i.length&&(i=(0,h.UI)(i,(function(t){return Om(t)})),t.setLineDash(i))}function a_(t,e,i){var r=e.stroke;r&&"none"!==r&&0!==e["stroke-width"]&&(o_(t,e),t.lineJoin=e["stroke-linejoin"],t.lineWidth=e["stroke-width"],t.globalAlpha=e.strokeOpacity,t.strokeStyle=r,i?t.strokeText(e.text,e.x,e.y):t.stroke(),t.globalAlpha=1)}function s_(t,e,i){var r=zm(e,i.rootAppended),n=p_._createCanvas(r.width,r.height,0),o=n.getContext("2d");return n_(e.childNodes,o,r,i),t.createPattern(n,"repeat")}function l_(t,e,i){var r=e.fill;if(r&&"none"!==r){if(-1===r.search(/url/))t.fillStyle=r;else{var n=i.patterns[Hm(r)];if(!n)return;t.fillStyle=s_(t,n,i)}t.globalAlpha=e.fillOpacity,t.fill(),t.globalAlpha=1}}function u_(t,e,i,r,n){t.fillStyle=r||"#ffffff",t.fillRect(-n,-n,e+2*n,i+2*n)}function h_(){var t=zt["default"].createElement("div");return t.style.left="-9999px",t.style.position="absolute",t}function c_(t,e,i){return n_(t.childNodes,e.getContext("2d"),{},{clipPaths:{},patterns:{},filters:{},gradients:{},rootAppended:i})}function d_(t,e){var{width:i,height:r,backgroundColor:n,margin:o,svgToCanvas:a=c_}=e,s=m_(i,r),l=p_._createCanvas(s.width,s.height,o),u=l.getContext("2d");u.setTransform(s.pixelRatio,0,0,s.pixelRatio,0,0);var h,c=Hr(t),d=zt["default"].isElementNode(t);return u.translate(o,o),zt["default"].getBody().appendChild(l),d||(h=h_(),h.appendChild(c),zt["default"].getBody().appendChild(h)),c.attributes.direction&&(l.dir=c.attributes.direction.textContent),u_(u,i,r,n,o),(0,Ta.p4)(a(c,l,d&&(0,_m.r3)(zt["default"].getBody(),t))).then((()=>l)).always((()=>{h&&zt["default"].getBody().removeChild(h),zt["default"].getBody().removeChild(l)}))}mm=function(t){var e,i={};return(0,h.S6)(t,(function(t,r){e=r.textContent,isFinite(e)&&(e=Om(e)),i[r.name.toLowerCase()]=e})),i};var p_={getImageData:function(t,e){var i="image/"+e.format;return(0,l.mf)(e.__parseAttributesFn)&&(mm=e.__parseAttributesFn),d_(t,e).then((t=>Vm(t,i)))},getData:function(t,e){var i=this;return p_.getImageData(t,e).then((t=>{var r="image/"+e.format,n=(0,l.mf)(bm.Blob)?i._getBlob(t,r):i._getBase64(t);return n}))},_getBlob:function(t,e){var i,r=new Uint8Array(t.length);for(i=0;i")[0];return r.width=t+2*i,r.height=e+2*i,r.hidden=!0,r}};function g_(t,e){return p_.getData(t,e)}function f_(t){var e=p_._createCanvas(100,100,0);return t.reduce((function(t,i){var r=("image/"+i).toLowerCase();return-1!==e.toDataURL(r).indexOf(r)?t.supported.push(i):t.unsupported.push(i),t}),{supported:[],unsupported:[]})}function m_(t,e){var i=bm.devicePixelRatio||1;return{pixelRatio:i,width:t*i,height:e*i}}var __=i(43318),v_=(0,Dt.Jj)(),b_={_markup:"",_imageArray:{},_imageDeferreds:[],_getBinaryFile:function(t,e){__.Z.sendRequest({url:t,method:"GET",responseType:"arraybuffer"}).done(e).fail((function(){e(!1)}))},_loadImages:function(){var t=this;(0,h.S6)(t._imageArray,(function(e){var i=new Ta.BH;t._imageDeferreds.push(i),t._getBinaryFile(e,(function(r){if(!r)return delete t._imageArray[e],void i.resolve();var n,o="",a=new Uint8Array(r),s=a.byteLength;for(n=0;n((0,h.S6)(r._imageArray,(function(t,e){var r="href=['|\"]".concat(t,"['|\"]");i=i.replace(new RegExp(r,"gi"),'href="'.concat(e,'"'))})),(0,l.mf)(v_.Blob)?r._getBlob(i):r._getBase64(i))))},_getBlob:function(t){return new v_.Blob([t],{type:"image/svg+xml"})},_getBase64:function(t){return v_.btoa(t)}};function y_(t,e){return b_.getData(t,e)}var x_=(0,Dt.Jj)(),w_="%PDF-1.3\r\n2 0 obj\r\n<>>>\r\nendobj\r\n4 0 obj\r\n<>\r\nendobj\r\n7 0 obj\r\n<>\r\nendobj\r\n1 0 obj\r\n<>\r\nendobj\r\n",C_="3 0 obj\r\n<>stream\r\n0.20 w\n0 G\nq _width_ 0 0 _height_ 0.00 0.00 cm /I0 Do Q\r\nendstream\r\nendobj\r\n",S_="6 0 obj\r\n<>\r\nendobj\r\n",k_="5 0 obj\r\n<>stream\r\n",A_="\r\nendstream\r\nendobj\r\n",T_="trailer\r\n<<\r\n/Size 8\r\n/Root 7 0 R\r\n/Info 6 0 R\r\n>>\r\nstartxref\r\n_length_\r\n%%EOF",E_="xref\r\n0 8\r\n0000000000 65535 f\r\n0000000241 00000 n\r\n0000000010 00000 n\r\n_main_ 00000 n\r\n0000000089 00000 n\r\n_image_ 00000 n\r\n_info_ 00000 n\r\n0000000143 00000 n\r\n",O_=function t(e,i){return e.length{var i=P_(t,e,L_()),r=(0,l.mf)(x_.Blob)?B_(i):R_(i);return r}))}function D_(t,e,i){if(!t)return(new Ta.BH).resolve();var r=e.exportingAction,n=e.exportedAction,o=e.fileSavingAction,a={fileName:e.fileName,format:e.format,cancel:!1};return(0,l.jn)(e.selectedRowsOnly)&&(a.selectedRowsOnly=e.selectedRowsOnly),(0,l.mf)(r)&&r(a),a.cancel?(new Ta.BH).resolve():i(t,e).then((t=>{if((0,l.mf)(n)&&n(),(0,l.mf)(o)&&(a.data=t,o(a)),!a.cancel){var i="xlsx"===e.format?"EXCEL":e.format;gf.saveAs(a.fileName,i,t)}}))}var z_={creator:p_,getData:g_,testFormats:f_},M_={getData:V_},F_={creator:b_,getData:y_},N_=i(44417),G_=i(80647),H_=[Lg.Z.down,Lg.Z.move].join(" "),Z_=35,$_=[[9,12,26,12,26,14,9,14],[9,17,26,17,26,19,9,19],[9,22,26,22,26,24,9,24]],X_=4,Y_=120,j_=8,K_=15,U_=30,W_=1,q_=10,J_=2,Q_=3,tv="PNG",ev=[tv,"JPEG","GIF"],iv=["PDF","SVG"],rv="dx-export-menu",nv="21cm",ov="export-element-type",av="export-element-format";function sv(){var t=z_.testFormats(ev);return{unsupported:t.unsupported,supported:t.supported.concat(iv)}}function lv(t,e,i){if(i=i||sv(),t=String(t).toUpperCase(),-1!==i.supported.indexOf(t))return t;-1!==i.unsupported.indexOf(t)&&e&&e("W2108",[t])}function uv(t){return"SVG"===t?F_.getData:"PDF"===t?M_.getData:z_.getData}function hv(t,e){var i=(0,Dt.Jj)().document,r=i.createElement("iframe");r.onload=dv(t,e),r.style.position="fixed",r.style.width="0",r.style.height="0",r.style.right="0",r.style.bottom="0",i.body.appendChild(r)}function cv(t){t.style.width=nv;var e=(0,Qo.dz)(t);return t.style.width="",e}function dv(t,e){return function(){var i=this.contentWindow,r=i.document.createElement("img");i.document.body.appendChild(r);var n=cv(i.document.body)/e.width;n<1&&(i.document.body.style.transform="scale(".concat(n,")"),i.document.body.style["transform-origin"]="0 0");var o=()=>{this.parentElement.removeChild(this)};r.addEventListener("load",(()=>{i.focus(),i.print()})),r.addEventListener("error",o),i.addEventListener("afterprint",(()=>{setTimeout(o,0)})),r.src=t}}function pv(t,e,i){var r=Z_-Y_,n=Z_+X_+W_+i*U_,o={rect:{width:Y_-2*W_,height:U_,x:r+W_,y:n},text:{x:r+(t.rtl?Y_-K_:K_),y:n+U_-j_}};return"printing"===e&&(o.separator={stroke:t.button.default.borderColor,"stroke-width":W_,cursor:"pointer",sharp:"v",d:"M "+r+" "+(n+U_-W_)+" L "+(r+Y_)+" "+(n+U_-W_)}),o}function gv(t,e,i){var r={},n=i.type,o=i.format,a=pv(e,n,i.itemIndex),s=st(e.font);s["pointer-events"]="none";var l=t.g().attr({class:rv+"-list-item"});r[ov]=n,o&&(r[av]=o);var u=t.rect();u.attr(a.rect).css({cursor:"pointer","pointer-events":"all"}).data(r),u.on(G_.B+".export",(()=>u.attr({fill:e.button.hover.backgroundColor}))).on(G_.u+".export",(()=>u.attr({fill:null}))),u.append(l);var h=t.text(i.text).css(s).attr(a.text).append(l);return"printing"===n&&t.path(null,"line").attr(a.separator).append(l),{g:l,rect:u,resetState:()=>u.attr({fill:null}),fixPosition:()=>{var t=h.getBBox();h.move(a.text.x-t.x-(e.rtl?t.width:0))}}}function fv(t,e){var i=[];return e.printingEnabled&&i.push(gv(t,e,{type:"printing",text:N_.Z.format("vizExport-printingButtonText"),itemIndex:i.length})),i=e.formats.reduce(((i,r)=>(i.push(gv(t,e,{type:"exporting",text:N_.Z.getFormatter("vizExport-exportButtonText")(r),format:r,itemIndex:i.length})),i)),i),i}var mv=function(t){var e=this._renderer=t.renderer;this._incidentOccurred=t.incidentOccurred,this._exportTo=t.exportTo,this._print=t.print,this._shadow=e.shadowFilter("-50%","-50%","200%","200%",J_,6,Q_),this._shadow.attr({opacity:.8}),this._group=e.g().attr({class:rv,[Nr]:!0}).linkOn(e.root,{name:"export-menu",after:"peripheral"}),this._buttonGroup=e.g().attr({class:rv+"-button"}).append(this._group),this._listGroup=e.g().attr({class:rv+"-list"}).append(this._group),this._overlay=e.rect(-Y_+Z_,Z_+X_,Y_,0),this._overlay.attr({"stroke-width":W_,cursor:"pointer",rx:4,ry:4,filter:this._shadow.id}),this._overlay.data({"export-element-type":"list"}),this.validFormats=sv(),this._subscribeEvents()};function _v(t,e,i,r){(r||e.format)&&(r=lv(r||e.format,t._incidentOccurred));var{width:n,height:o}=t.getSize();return{format:r||tv,fileName:i||e.fileName||"file",backgroundColor:e.backgroundColor,width:n,height:o,margin:e.margin,svgToCanvas:e.svgToCanvas,exportingAction:t._createActionByOption("onExporting",{excludeValidators:["disabled"]}),exportedAction:t._createActionByOption("onExported",{excludeValidators:["disabled"]}),fileSavingAction:t._createActionByOption("onFileSaving",{excludeValidators:["disabled"]})}}(0,u.l)(mv.prototype,{getLayoutOptions(){if(this._hiddenDueToLayout)return{width:0,height:0,cutSide:"vertical",cutLayoutSide:"top"};var t=this._buttonGroup.getBBox();return t.cutSide="vertical",t.cutLayoutSide="top",t.height+=q_,t.position={vertical:"top",horizontal:"right"},t.verticalAlignment="top",t.horizontalAlignment="right",t},shift(t,e){this._group.attr({translateY:this._group.attr("translateY")+e})},draw(t,e,i){this._group.move(t-Z_-J_-Q_+i.left,Math.floor(e/2-Z_/2));var r=this.getLayoutOptions();return(r.width>t||r.height>e)&&this.freeSpace(),this},show(){this._group.linkAppend()},hide(){this._group.linkRemove()},setOptions(t){this._options=t,t.formats?t.formats=t.formats.reduce(((t,e)=>(e=lv(e,this._incidentOccurred,this.validFormats),e&&t.push(e),t)),[]):t.formats=this.validFormats.supported.slice(),t.printingEnabled=void 0===t.printingEnabled||t.printingEnabled,t.enabled&&(t.formats.length||t.printingEnabled)?(this.show(),this._updateButton(),this._updateList(),this._hideList()):this.hide()},dispose(){this._unsubscribeEvents(),this._group.linkRemove().linkOff(),this._group.dispose(),this._shadow.dispose()},layoutOptions(){return this._options.enabled&&{horizontalAlignment:"right",verticalAlignment:"top",weak:!0}},measure(){this._fillSpace();var t=this._options.button.margin;return[Z_+t.left+t.right,Z_+t.top+t.bottom]},move(t){var e=this._options.button.margin;this._group.attr({translateX:Math.round(t[0])+e.left,translateY:Math.round(t[1])+e.top})},_fillSpace(){this._hiddenDueToLayout=!1,this.show()},freeSpace(){this._incidentOccurred("W2107"),this._hiddenDueToLayout=!0,this.hide()},_hideList(){this._listGroup.remove(),this._listShown=!1,this._setButtonState("default"),this._menuItems.forEach((t=>t.resetState()))},_showList(){this._listGroup.append(this._group),this._listShown=!0,this._menuItems.forEach((t=>t.fixPosition()))},_setButtonState(t){var e=this._options.button[t];this._button.attr({stroke:e.borderColor,fill:e.backgroundColor}),this._icon.attr({fill:e.color})},_subscribeEvents(){this._renderer.root.on(Lg.Z.up+".export",(t=>{var e=t.target[ov];e?"button"===e?this._listShown?(this._setButtonState("default"),this._hideList()):(this._setButtonState("focus"),this._showList()):"printing"===e?(this._print(),this._hideList()):"exporting"===e&&(this._exportTo(t.target[av]),this._hideList()):this._button&&this._hideList()})),this._listGroup.on(H_,(t=>t.stopPropagation())),this._buttonGroup.on(Lg.Z.enter,(()=>this._setButtonState("hover"))),this._buttonGroup.on(Lg.Z.leave,(()=>this._setButtonState(this._listShown?"focus":"default"))),this._buttonGroup.on(Lg.Z.down+".export",(()=>this._setButtonState("active")))},_unsubscribeEvents(){this._renderer.root.off(".export"),this._listGroup.off(),this._buttonGroup.off()},_updateButton(){var t=this._renderer,e=this._options,i={"export-element-type":"button"};this._button||(this._button=t.rect(0,0,Z_,Z_).append(this._buttonGroup),this._button.attr({rx:4,ry:4,fill:e.button.default.backgroundColor,stroke:e.button.default.borderColor,"stroke-width":1,cursor:"pointer"}),this._button.data(i),this._icon=t.path($_).append(this._buttonGroup),this._icon.attr({fill:e.button.default.color,cursor:"pointer"}),this._icon.data(i),this._buttonGroup.setTitle(N_.Z.format("vizExport-titleMenuText")))},_updateList(){var t=this._options,e=t.button.default,i=this._listGroup,r=fv(this._renderer,t);this._shadow.attr({color:t.shadowColor}),this._overlay.attr({height:r.length*U_+2*W_,fill:e.backgroundColor,stroke:e.borderColor}),i.clear(),this._overlay.append(i),r.forEach((t=>t.g.append(i))),this._menuItems=r}});var vv,bv={name:"export",init(){this._exportMenu=new mv({renderer:this._renderer,incidentOccurred:this._incidentOccurred,print:()=>this.print(),exportTo:t=>this.exportTo(void 0,t)}),this._layout.add(this._exportMenu)},dispose(){this._exportMenu.dispose()},members:{_getExportMenuOptions(){return(0,u.l)({},this._getOption("export"),{rtl:this._getOption("rtlEnabled",!0)})},_disablePointerEvents(){var t=this._renderer.root.attr("pointer-events");return this._renderer.root.attr({"pointer-events":"none"}),t},exportTo(t,e){var i=this._exportMenu,r=_v(this,this._getOption("export")||{},t,e);i&&i.hide();var n=this._disablePointerEvents(),o=D_(this._renderer.root.element,r,uv(r.format)).fail(uf.k.error).always((()=>{this._renderer.root.attr({"pointer-events":n})}));return i&&i.show(),o},print(){var t=this._exportMenu,e=_v(this,this._getOption("export")||{});e.exportingAction=null,e.exportedAction=null,e.margin=0,e.format="PNG",e.fileSavingAction=t=>{hv("data:image/png;base64,".concat(t.data),{width:e.width,__test:e.__test}),t.cancel=!0};var i=this._disablePointerEvents();t&&t.hide();var r=D_(this._renderer.root.element,e,uv(e.format)).fail(uf.k.error).always((()=>{this._renderer.root.attr({"pointer-events":i})}));return t&&t.show(),r}},customize(t){var e=t.prototype;t.addChange({code:"EXPORT",handler(){this._exportMenu.setOptions(this._getExportMenuOptions()),this._change(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:"export"}),e._optionChangesMap.onExporting="EXPORT",e._optionChangesMap.onExported="EXPORT",e._optionChangesMap.onFileSaving="EXPORT"},fontFields:["export.font"]},yv=i(95060),xv=yv.Z.postCtor,wv={_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceOptions:function(){return{paginate:!1}},_updateDataSource:function(){this._refreshDataSource(),this.option("dataSource")||this._dataSourceChangedHandler()},_dataIsLoaded:function(){return!this._dataSource||this._dataSource.isLoaded()},_dataSourceItems:function(){return this._dataSource&&this._dataSource.items()}};for(vv in yv.Z)"postCtor"!==vv&&(wv[vv]=yv.Z[vv]);var Cv={name:"data_source",init:function(){xv.call(this)},dispose:s.ZT,members:wv},Sv=i(39299),kv=i(3802),Av=["x","y","canvas","offsetX","offsetY","offset"],Tv=Math,Ev=Tv.round,Ov=Tv.max,Pv=Tv.min,Iv=Tv.sin,Lv=Tv.cos,Bv=Tv.asin,Rv=Tv.PI,Vv=function(){for(var t=arguments.length,e=new Array(t),i=0;i=h&&r<=u&&nu&&n>d||r>=h&&r<=u&&n>d?90:rd||r=c&&n<=d?180:0}function Hv(t,e,i,r,n,o,a){var s,{width:l,height:u}=t,{arrowWidth:h,cornerRadius:c=0}=o,d=h/2,p=l/2,g=u/2,f=Math.ceil(e+p),m=Math.floor(e-p),_=Math.floor(i-g),v=Math.ceil(i+g),b=[m,_],y=[f,_],x=[f,v],w=[m,v],C=r<=m?m:f<=r?f:r,S=n<=_?_:v<=n?v:n,k=Pv(S+d,v),A=Ov(S-d,_),T=Ov(C-d,m);if(c=Math.min(l/2,u/2,c),b[1]+=c,y[0]-=c,x[1]-=c,w[0]+=c,!a||m<=r&&r<=f&&_<=n&&n<=v)s=Vv(b,Dv(c,1,-1),"L",y,Dv(c,1,1),"L",x,Dv(c,-1,1),"L",w,Dv(c,-1,-1));else if(r>f&&n<_){var E=h/c||0,O=Rv/4+E/2,P=Rv/4-E/2,I=y[0]+Lv(P)*c,L=y[1]+(1-Iv(P))*c,B=Vv("L",y,Dv(c,Lv(O),1-Iv(O)),"L",[r,n,I,L],zv(c,y[0]+c,y[1]+c));Math.abs(O)>Rv/2&&(B=Vv("L",[T,_,r,n,f,k])),s=Vv(b,Dv(c,1,-1),B,"L",x,Dv(c,-1,1),"L",w,Dv(c,-1,-1))}else if(r>f&&n>=_&&n<=v){var R;if(A>=y[1]+c&&k<=x[1])R=Vv(Dv(c,1,1),"L",[f,A,r,n,f,k],"L",x,Dv(c,-1,1));else if(A=y[1]+c&&k<=x[1]){var V=y[1]+c-A,D=V/c,z=y[0]+Lv(D)*c,M=y[1]+(1-Iv(D))*c;R=Vv(Dv(c,Lv(D),1-Iv(D)),"L",[z,M,r,n,f,k],"L",x,Dv(c,-1,1))}else if(A=x[1]){var j=Bv((y[1]+c-A)/c),K=y[0]+c*Lv(j),U=y[1]+c*(1-Iv(j)),W=Bv((k-x[1])/c),q=x[0]+c*(Lv(W)-1),J=x[1]+c*Iv(W);R=Vv(Dv(c,Lv(j),1-Iv(j)),"L",[K,U,r,n,q,J],zv(c,x[0]-c,x[1]+c))}else if(A>y[1]+c&&A<=x[1]&&k>x[1]){var Q=Bv((k-x[1])/c),tt=x[0]+c*(Lv(Q)-1),et=x[1]+c*Iv(Q);R=Vv(Dv(c,1,1),"L",[f,A,r,n,tt,et],zv(c,x[0]-c,x[1]+c))}else if(A>y[1]+c&&k>x[1]){var it=Bv((k-x[1])/c),rt=x[0]+c*(Lv(it)-1),nt=x[1]+c*Iv(it),ot=Bv((A-x[1])/c),at=x[0]+c*(Lv(ot)-1),st=x[1]+c*Iv(ot);R=Vv(Dv(c,1,1),"L",x,Dv(c,Lv(ot)-1,Iv(ot)),"L",[at,st,r,n,rt,nt],zv(c,x[0]-c,x[1]+c))}s=Vv(b,Dv(c,1,-1),"L",y,R,"L",w,Dv(c,-1,-1))}return Vv("M",s,"Z")}class Zv{constructor(t,e,i,r){var n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:(t,e)=>e.getBBox(),a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:(t,e,i,r)=>e.move(i,r);this.widget=e,this.options=t,this.root=i,this.contentTemplate=r,this.bonded=n,this.measureContent=o,this.moveContentGroup=a}draw(t){var{x:e,y:i,canvas:r={},offsetX:n,offsetY:o,offset:a=0}=t,s=(0,kv.Z)(t,Av),h=this.options,{x:c,y:d}=h,p=r.left,g=r.width-r.right,f=r.width-r.right-r.left,m=r.top,_=r.height-r.bottom,v=r.height-r.bottom-r.top;if((!(0,l.$K)(e)||!(0,l.$K)(i))&&(!(0,l.$K)(c)||!(0,l.$K)(d)))return!1;if((0,l.$K)(e)&&(e0?h.width:null,x=h.height>0?h.height:null,w=()=>{var t,r=this._contentBBox=this.measureContent(this.widget,this._contentGroup),s=this._size={width:Ov(y,r.width)+2*h.paddingLeftRight,height:Ov(x,r.height)+2*h.paddingTopBottom,offset:a},u=b.offsetX,w=b.offsetY,C=2*b.blur+1,S=Ov(C-u,0),k=Ov(C+u,0),A=Ov(C-w,0),T=Ov(C+w,0);if(this.margins={lm:S,rm:k,tm:A,bm:T},(0,l.$K)(c)?(c+=n||0,(0,l.$K)(e)||(e=c)):c=(0,l.$K)(n)?e+n:f").css({position:"relative",display:"inline-block",padding:0,margin:0,border:"0px solid transparent"})}function Qv(t){t.forEach((t=>t.remove()))}var tb=function(t){this._eventTrigger=t.eventTrigger,this._widgetRoot=t.widgetRoot,this._widget=t.widget,this._textHtmlContainers=[],this._wrapper=(0,Vt.Z)("
").css({position:"absolute",overflow:"hidden",pointerEvents:"none"}).addClass(t.cssClass);var e=this._renderer=new Wo({pathModified:t.pathModified,container:this._wrapper[0]}),i=e.root;i.attr({"pointer-events":"none"}),this._text=e.text(void 0,0,0),this._textGroupHtml=(0,Vt.Z)("
").css({position:"absolute",padding:0,margin:0,border:"0px solid transparent"}).appendTo(this._wrapper),this._textHtml=Jv().appendTo(this._textGroupHtml)};tb.prototype={constructor:tb,dispose:function(){this._wrapper.remove(),this._renderer.dispose(),this._options=this._widgetRoot=null},_getContainer:function(){var t=this._options,e=(0,Vt.Z)(this._widgetRoot).closest(t.container);return 0===e.length&&(e=(0,Vt.Z)(t.container)),(e.length?e:(0,Vt.Z)("body")).get(0)},setTemplate(t){this._template=t?this._widget._getTemplate(t):null},setOptions:function(t){t=t||{};var e=this;e._options=t,e._textFontStyles=st(t.font),e._textFontStyles.color=e._textFontStyles.fill,e._wrapper.css({zIndex:t.zIndex}),e._customizeTooltip=t.customizeTooltip;var i=e._textGroupHtml;this.plaque&&this.plaque.clear(),this.setTemplate(t.contentTemplate);var r=t.interactive?"auto":"none";return t.interactive&&this._renderer.root.css({"-ms-user-select":"auto","-moz-user-select":"auto","-webkit-user-select":"auto"}),this.plaque=new Zv({opacity:e._options.opacity,color:e._options.color,border:e._options.border,paddingLeftRight:e._options.paddingLeftRight,paddingTopBottom:e._options.paddingTopBottom,arrowLength:e._options.arrowLength,arrowWidth:20,shadow:e._options.shadow,cornerRadius:e._options.cornerRadius},e,e._renderer.root,(n=>{var{group:o,onRender:a,eventData:s,isMoving:l,templateCallback:u=(()=>{})}=n,h=e._state;if(!l){var c=e._template,d=c&&!h.formatObject.skipTemplate;if(h.html||d){if(i.css({color:h.textColor,width:Uv,pointerEvents:r}),d){var p=e._textHtmlContainers,g=Jv().appendTo(e._textGroupHtml);return p.push(g),void c.render({model:h.formatObject,container:g,onRendered:()=>{if(Qv(p.splice(0,p.length-1)),e._textHtml=(0,_m.dL)(e._textHtml,g),h.html=e._textHtml.html(),0===(0,Qo.dz)(e._textHtml)&&0===(0,Qo.Cr)(e._textHtml))return this.plaque.clear(),void u(!1);a(),e._riseEvents(s),e._moveWrapper(),e.plaque.customizeCloud({fill:h.color,stroke:h.borderColor,"pointer-events":r}),u(!0),e._textHtmlContainers=[]}})}e._text.attr({text:""}),e._textHtml.html(h.html)}else e._text.css({fill:h.textColor}).attr({text:h.text,class:t.cssClass,"pointer-events":r}).append(o.attr({align:t.textAlignment}));e._riseEvents(s),e.plaque.customizeCloud({fill:h.color,stroke:h.borderColor,"pointer-events":r})}return a(),e._moveWrapper(),!0}),!0,((t,i)=>{var r=t._state;if(r.html){var n=Kv.getComputedStyle(e._textHtml.get(0));return n={x:0,y:0,width:Xv(parseFloat(n.width)),height:Xv(parseFloat(n.height))},n}return i.getBBox()}),((t,i,r,n)=>{var o=t._state;o.html?e._textGroupHtml.css({left:r,top:n}):i.move(r,n)})),e},_riseEvents:function(t){this._eventData&&this._eventTrigger("tooltipHidden",this._eventData),this._eventData=t,this._eventTrigger("tooltipShown",this._eventData)},setRendererOptions:function(t){return this._renderer.setOptions(t),this._textGroupHtml.css({direction:t.rtl?"rtl":"ltr"}),this},update:function(t){this.setOptions(t),Wv(this._wrapper);var e={};for(var i in this._textFontStyles)e[(0,vm._A)(i)]=this._textFontStyles[i];return this._textGroupHtml.css(e),this._text.css(this._textFontStyles),this._eventData=null,this},_prepare:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._customizeTooltip,r=this._options,n={};return(0,l.mf)(i)&&(n=i.call(t,t),n=(0,l.PO)(n)?n:{},"text"in n&&(e.text=(0,l.$K)(n.text)?String(n.text):""),"html"in n&&(e.html=(0,l.$K)(n.html)?String(n.html):"")),"text"in e||"html"in e||(e.text=t.valueText||t.description||""),e.color=n.color||r.color,e.borderColor=n.borderColor||(r.border||{}).color,e.textColor=n.fontColor||(this._textFontStyles||{}).color,!!e.text||!!e.html||!!this._template},show:function(t,e,i,r,n){if(this._options.forceEvents)return i.x=e.x,i.y=e.y-e.offset,this._riseEvents(i),!0;var o={formatObject:t,eventData:i,templateCallback:n};if(!this._prepare(t,o,r))return!1;this._state=o,this._wrapper.appendTo(this._getContainer()),this._clear();var a=(0,u.l)({},this._options,{canvas:this._getCanvas()},o,{x:e.x,y:e.y,offset:e.offset});return this.plaque.clear().draw(a)},isCursorOnTooltip:function(t,e){if(this._options.interactive){var i=this.plaque.getBBox();return t>i.x&&ti.y&&e5&&void 0!==arguments[5]?arguments[5]:()=>0,s=[],l={start:i?e.left:e.top,end:i?e.width-e.right:e.height-e.bottom},u=!1;if(t.forEach((function(t){t&&(u=u||t.series.isStackedSeries()||t.series.isFullStackedSeries(),t.getLabels().forEach((function(t){t.isVisible()&&s.push(new Pb(t,i,n))})))})),u)!i^r&&s.reverse(),o=r?s:Ab(s);else{var h=s.slice();o=s.sort((function(t,e){return a(t,e)||t.getInitialPosition()-e.getInitialPosition()||h.indexOf(t)-h.indexOf(e)}))}return!!Cb(o)&&(xb(o,l),Tb(o),o.reverse(),Eb(o,l),!0)}function kb(t,e,i){if(t&&e){var r=t.getBoundingRect(),n=e.getBoundingRect(),o=!i||(r.oppositeStart<=n.oppositeStart&&r.oppositeEnd>n.oppositeStart||n.oppositeStart<=r.oppositeStart&&n.oppositeEnd>r.oppositeStart);return r.end>n.start&&o}}function Ab(t){var e=[],i=[];return t.forEach((t=>{t.value()>0?e.push(t):i.unshift(t)})),e.concat(i)}function Tb(t){var e,i,r;for(e=0;ea.start-(a.end-e.end))){o.toChain(n),t[i]=n=null;break}n&&n.setRollingStockInCanvas(e)}}function Ob(t,e){return t&&t.getBoundingRect().end>e.end}function Pb(t,e,i){var r=t.getBoundingRect(),n=r.x,o=r.y,a=r.x+r.width,s=r.y+r.height;return this.labels=[t],this.shiftFunction=i,this._bBox={start:e?n:o,width:e?r.width:r.height,end:e?a:s,oppositeStart:e?o:n,oppositeEnd:e?s:a},this._initialPosition=e?r.x:r.y,this}function Ib(t){return{nameField:t+"Name",colorField:t+"Color",indexField:t+"Index"}}function Lb(t){var e=Ib(t);return{getFormatObject:function(t){var i={};return i[e.indexField]=t.id,i[e.colorField]=t.states.normal.fill,i[e.nameField]=t.text,i},textField:e.nameField}}function Bb(t,e){return(t.x<=e.x&&e.x<=t.x+t.width||t.x>=e.x&&t.x<=e.x+e.width)&&(t.y<=e.y&&e.y<=t.y+t.height||t.y>=e.y&&t.y<=e.y+e.height)}Pb.prototype={toChain:function(t){var e=t.getBoundingRect();t.shift(e.start-this._bBox.end),this._changeBoxWidth(e.width),this.labels=this.labels.concat(t.labels)},getBoundingRect:function(){return this._bBox},shift:function(t){var e=this.shiftFunction;(0,h.S6)(this.labels,(function(i,r){var n=r.getBoundingRect(),o=e(n,t);r.hideInsideLabel(o)||r.shift(o.x,o.y)})),this._bBox.end-=t,this._bBox.start-=t},setRollingStockInCanvas:function(t){this._bBox.end>t.end&&this.shift(this._bBox.end-t.end)},getLabels:function(){return this.labels},value(){return this.labels[0].getData().value},getInitialPosition:function(){return this._initialPosition},_changeBoxWidth:function(t){this._bBox.end+=t,this._bBox.width+=t}};var Rb={resolveLabelOverlappingInOneDirection:Sb},Vb=Qa.inherit({_eventsMap:{onSeriesClick:{name:"seriesClick"},onPointClick:{name:"pointClick"},onArgumentAxisClick:{name:"argumentAxisClick"},onLegendClick:{name:"legendClick"},onSeriesSelectionChanged:{name:"seriesSelectionChanged"},onPointSelectionChanged:{name:"pointSelectionChanged"},onSeriesHoverChanged:{name:"seriesHoverChanged"},onPointHoverChanged:{name:"pointHoverChanged"},onDone:{name:"done",actionSettings:{excludeValidators:["disabled"]}},onZoomStart:{name:"zoomStart"},onZoomEnd:{name:"zoomEnd"}},_fontFields:["legend."+yb,"legend.title."+yb,"legend.title.subtitle."+yb,"commonSeriesSettings.label."+yb],_rootClassPrefix:"dxc",_rootClass:"dxc-chart",_initialChanges:["INIT"],_themeDependentChanges:["REFRESH_SERIES_REINIT"],_getThemeManagerOptions(){var t=this.callBase.apply(this,arguments);return t.options=this.option(),t},_createThemeManager:function(){var t=this.option(),e=new dg(this._getThemeManagerOptions());return e.setTheme(t.theme,t.rtlEnabled),e},_initCore:function(){this._canvasClipRect=this._renderer.clipRect(),this._createHtmlStructure(),this._createLegend(),this._createTracker(),this._needHandleRenderComplete=!0,this.layoutManager=new Ag,this._createScrollBar(),Bt.Z.on(this._$element,"contextmenu",(function(t){((0,Rt.z6)(t)||(0,Rt.bX)(t))&&t.preventDefault()})),Bt.Z.on(this._$element,"MSHoldVisual",(function(t){t.preventDefault()}))},_getLayoutItems:s.ZT,_layoutManagerOptions:function(){return this._themeManager.getOptions("adaptiveLayout")},_reinit(){et(this._canvas),this._reinitAxes(),this._requestChange(["DATA_SOURCE","DATA_INIT","CORRECT_AXIS","FULL_RENDER"])},_correctAxes:s.ZT,_createHtmlStructure:function(){var t=this,e=t._renderer,i=e.root,r=function(){return e.g().attr({class:"dxc-constant-lines-group"}).linkOn(i,"constant-lines")};t._constantLinesGroup={dispose:function(){this.under.dispose(),this.above.dispose()},linkOff:function(){this.under.linkOff(),this.above.linkOff()},clear:function(){this.under.linkRemove().clear(),this.above.linkRemove().clear()},linkAppend:function(){this.under.linkAppend(),this.above.linkAppend()}},t._labelsAxesGroup=e.g().attr({class:"dxc-elements-axes-group"});var n=()=>{t._labelsAxesGroup.linkOn(i,"elements")};t._backgroundRect=e.rect().attr({fill:"gray",opacity:1e-4}).append(i),t._panesBackgroundGroup=e.g().attr({class:"dxc-background"}).append(i),t._stripsGroup=e.g().attr({class:"dxc-strips-group"}).linkOn(i,"strips"),t._gridGroup=e.g().attr({class:"dxc-grids-group"}).linkOn(i,"grids"),t._panesBorderGroup=e.g().attr({class:"dxc-border"}).linkOn(i,"border"),t._axesGroup=e.g().attr({class:"dxc-axes-group"}).linkOn(i,"axes"),t._executeAppendBeforeSeries(n),t._stripLabelAxesGroup=e.g().attr({class:"dxc-strips-labels-group"}).linkOn(i,"strips-labels"),t._constantLinesGroup.under=r(),t._seriesGroup=e.g().attr({class:"dxc-series-group"}).linkOn(i,"series"),t._executeAppendAfterSeries(n),t._constantLinesGroup.above=r(),t._scaleBreaksGroup=e.g().attr({class:"dxc-scale-breaks"}).linkOn(i,"scale-breaks"),t._labelsGroup=e.g().attr({class:"dxc-labels-group"}).linkOn(i,"labels"),t._crosshairCursorGroup=e.g().attr({class:"dxc-crosshair-cursor"}).linkOn(i,"crosshair"),t._legendGroup=e.g().attr({class:"dxc-legend","clip-path":t._getCanvasClipRectID()}).linkOn(i,"legend").linkAppend(i).enableLinks(),t._scrollBarGroup=e.g().attr({class:"dxc-scroll-bar"}).linkOn(i,"scroll-bar")},_executeAppendBeforeSeries(){},_executeAppendAfterSeries(){},_disposeObjectsInArray:function(t,e){(0,h.S6)(this[t]||[],(function(t,i){e&&i?(0,h.S6)(e,(function(t,e){i[e]&&i[e].dispose()})):i&&i.dispose()})),this[t]=null},_disposeCore:function(){var t=this,e=function(e){t[e]&&(t[e].dispose(),t[e]=null)},i=function(e){t[e].linkOff()},r=this._disposeObjectsInArray;t._renderer.stopAllAnimations(),r.call(t,"series"),e("_tracker"),e("_crosshair"),t.layoutManager=t._userOptions=t._canvas=t._groupsData=null,i("_stripsGroup"),i("_gridGroup"),i("_axesGroup"),i("_constantLinesGroup"),i("_stripLabelAxesGroup"),i("_panesBorderGroup"),i("_seriesGroup"),i("_labelsGroup"),i("_crosshairCursorGroup"),i("_legendGroup"),i("_scrollBarGroup"),i("_scaleBreaksGroup"),e("_canvasClipRect"),e("_panesBackgroundGroup"),e("_backgroundRect"),e("_stripsGroup"),e("_gridGroup"),e("_axesGroup"),e("_constantLinesGroup"),e("_stripLabelAxesGroup"),e("_panesBorderGroup"),e("_seriesGroup"),e("_labelsGroup"),e("_crosshairCursorGroup"),e("_legendGroup"),e("_scrollBarGroup"),e("_scaleBreaksGroup")},_getAnimationOptions:function(){return this._themeManager.getOptions("animation")},_getDefaultSize:function(){return{width:400,height:400}},_getOption:function(t){return this._themeManager.getOptions(t)},_applySize:function(t){this._rect=t.slice(),this._changes.has("FULL_RENDER")||this._processRefreshData(gb)},_resize:function(){this._doRender(this.__renderOptions||{animate:!1,isResize:!0})},_trackerType:"ChartTracker",_createTracker:function(){this._tracker=new o[this._trackerType]({seriesGroup:this._seriesGroup,renderer:this._renderer,tooltip:this._tooltip,legend:this._legend,eventTrigger:this._eventTrigger})},_getTrackerSettings:function(){return(0,u.l)({chart:this},this._getSelectionModes())},_getSelectionModes:function(){var t=this._themeManager;return{seriesSelectionMode:t.getOptions("seriesSelectionMode"),pointSelectionMode:t.getOptions("pointSelectionMode")}},_updateTracker:function(t){this._tracker.update(this._getTrackerSettings()),this._tracker.setCanvases({left:0,right:this._canvas.width,top:0,bottom:this._canvas.height},t)},_createCanvasFromRect(t){var e=this._canvas;return et({left:t[0],top:t[1],right:e.width-t[2],bottom:e.height-t[3],width:e.width,height:e.height})},_doRender:function(t){if(0!==this._canvas.width||0!==this._canvas.height){this._resetIsReady();var e=this._prepareDrawOptions(t),i=e.recreateCanvas;this._preserveOriginalCanvas(),i?this.__currentCanvas=this._canvas:this._canvas=this.__currentCanvas,i&&this._updateCanvasClipRect(this._canvas),this._canvas=this._createCanvasFromRect(this._rect),this._renderer.stopAllAnimations(!0),this._cleanGroups();var r=new Date;this._renderElements(e),this._lastRenderingTime=new Date-r}},_preserveOriginalCanvas(){this.__originalCanvas=this._canvas,this._canvas=(0,u.l)({},this._canvas)},_layoutAxes:s.ZT,_renderElements:function(t){var e,i,r,n=this,o=n._prepareToRender(t),a=n._isRotated(),s=n._isLegendInside(),l=[];(0,u.l)({},n._canvas),n._renderer.lock(),t.drawLegend&&n._legend&&n._legendGroup.linkAppend(),n.layoutManager.setOptions(n._layoutManagerOptions());var h=n._getLayoutTargets();this._layoutAxes((e=>{var i=e?(0,u.l)({},t,{animate:!1,recreateCanvas:!0}):t,r=n._renderAxes(i,o);n._shrinkAxes(e,r)})),n._applyClipRects(o),n._appendSeriesGroups(),n._createCrosshairCursor(),h.forEach((t=>{var{canvas:e}=t;l.push({left:e.left,right:e.width-e.right,top:e.top,bottom:e.height-e.bottom})})),n._scrollBar&&(e=n._argumentAxes[0].getTranslator().getBusinessRange(),"discrete"===e.axisType&&e.categories&&e.categories.length<=1||"discrete"!==e.axisType&&e.min===e.max?i=r=void 0:(i=e.minVisible,r=e.maxVisible),n._scrollBar.init(e,!n._argumentAxes[0].getOptions().valueMarginsEnabled).setPosition(i,r)),n._updateTracker(l),n._updateLegendPosition(t,s),n._applyPointMarkersAutoHiding(),n._renderSeries(t,a,s),n._renderer.unlock()},_updateLegendPosition:s.ZT,_createCrosshairCursor:s.ZT,_appendSeriesGroups:function(){this._seriesGroup.linkAppend(),this._labelsGroup.linkAppend(),this._appendAdditionalSeriesGroups()},_renderSeries:function(t,e,i){this._calculateSeriesLayout(t,e),this._renderSeriesElements(t,i)},_calculateSeriesLayout:function(t,e){t.hideLayoutLabels=this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),e)&&!this._themeManager.getOptions("adaptiveLayout").keepLabels,this._updateSeriesDimensions(t)},_getArgFilter:()=>()=>!0,_getValFilter:t=>()=>!0,_getPointsToAnimation(t){var e=this._getArgFilter();return t.map((t=>{var i=this._getValFilter(t);return t.getPoints().filter((t=>t.getOptions().visible&&e(t.argument)&&(i(t.getMinValue(!0))||i(t.getMaxValue(!0))))).length}))},_renderSeriesElements:function(t,e){var i,r,n=this.series,o=n.length,a=this._themeManager.getOptions("resolveLabelOverlapping"),s=this._getPointsToAnimation(n);for(i=0;i!1,_createLegend:function(){var t=Lb(this._legendDataField);this._legend=new yl({renderer:this._renderer,widget:this,group:this._legendGroup,backgroundClass:"dxc-border",itemGroupClass:"dxc-item",titleGroupClass:"dxc-title",textField:t.textField,getFormatObject:t.getFormatObject,allowInsidePosition:this._allowLegendInsidePosition()}),this._updateLegend(),this._layout.add(this._legend)},_updateLegend:function(){var t=this._themeManager,e=t.getOptions("legend"),i=this._getLegendData();e.containerBackgroundColor=t.getOptions("containerBackgroundColor"),e._incidentOccurred=this._incidentOccurred,this._legend.update(i,e,t.theme("legend").title),this._change(["LAYOUT"])},_prepareDrawOptions:function(t){var e=this._getAnimationOptions(),i=(0,u.l)({},{force:!1,adjustAxes:!0,drawLegend:!0,drawTitle:!0,animate:e.enabled,animationPointsLimit:e.maxPointCountSupported},t,this.__renderOptions);return(0,l.$K)(i.recreateCanvas)||(i.recreateCanvas=i.adjustAxes&&i.drawLegend&&i.drawTitle),i},_processRefreshData:function(t){var e=fb.indexOf(this._currentRefreshData),i=fb.indexOf(t);(!this._currentRefreshData||e>=0&&imb)&&(r=mb),e.textOpacity=mb);var n={opacity:r};return e.states={hover:(0,u.l)({},i.hover,n),selection:(0,u.l)({},i.selection,n),normal:(0,u.l)({},i.normal,n)},e}))},_getLegendOptions:function(t){return{legendData:{text:t[this._legendItemTextField],id:t.index,visible:!0},getLegendStyles:t.getLegendStyles(),visible:t.isVisible()}},_disposeSeries(t){var e;this.series&&((0,l.$K)(t)?(this.series[t].dispose(),this.series.splice(t,1)):((0,h.S6)(this.series,((t,e)=>e.dispose())),this.series.length=0)),null!==(e=this.series)&&void 0!==e&&e.length||(this.series=[])},_disposeSeriesFamilies(){(0,h.S6)(this.seriesFamilies||[],(function(t,e){e.dispose()})),this.seriesFamilies=null,this._needHandleRenderComplete=!0},_optionChanged:function(t){this._themeManager.resetOptions(t.name),this.callBase.apply(this,arguments)},_applyChanges(){this._themeManager.update(this._options.silent()),this.callBase.apply(this,arguments)},_optionChangesMap:{animation:"ANIMATION",dataSource:"DATA_SOURCE",palette:"PALETTE",paletteExtensionMode:"PALETTE",legend:"FORCE_DATA_INIT",seriesTemplate:"FORCE_DATA_INIT",export:"FORCE_RENDER",valueAxis:"AXES_AND_PANES",argumentAxis:"AXES_AND_PANES",commonAxisSettings:"AXES_AND_PANES",panes:"AXES_AND_PANES",commonPaneSettings:"AXES_AND_PANES",defaultPane:"AXES_AND_PANES",containerBackgroundColor:"AXES_AND_PANES",rotated:"ROTATED",autoHidePointMarkers:"REFRESH_SERIES_REINIT",customizePoint:"REFRESH_SERIES_REINIT",customizeLabel:"REFRESH_SERIES_REINIT",scrollBar:"SCROLL_BAR"},_optionChangesOrder:["ROTATED","PALETTE","REFRESH_SERIES_REINIT","USE_SPIDER_WEB","AXES_AND_PANES","INIT","REINIT","DATA_SOURCE","REFRESH_SERIES_DATA_INIT","DATA_INIT","FORCE_DATA_INIT","REFRESH_AXES","CORRECT_AXIS"],_customChangesOrder:["ANIMATION","REFRESH_SERIES_FAMILIES","FORCE_FIRST_DRAWING","FORCE_DRAWING","FORCE_RENDER","VISUAL_RANGE","SCROLL_BAR","REINIT","REFRESH","FULL_RENDER"],_change_ANIMATION:function(){this._renderer.updateAnimationOptions(this._getAnimationOptions())},_change_DATA_SOURCE:function(){this._needHandleRenderComplete=!0,this._updateDataSource()},_change_PALETTE:function(){this._themeManager.updatePalette(),this._refreshSeries("DATA_INIT")},_change_REFRESH_SERIES_DATA_INIT:function(){this._refreshSeries("DATA_INIT")},_change_DATA_INIT:function(){this.series&&!this.needToPopulateSeries||this._changes.has("FORCE_DATA_INIT")||this._dataInit()},_change_FORCE_DATA_INIT:function(){this._dataInit()},_change_REFRESH_SERIES_FAMILIES:function(){this._processSeriesFamilies(),this._populateBusinessRange(),this._processRefreshData(pb)},_change_FORCE_RENDER:function(){this._processRefreshData(pb)},_change_AXES_AND_PANES:function(){this._refreshSeries("INIT")},_change_ROTATED:function(){this._createScrollBar(),this._refreshSeries("INIT")},_change_REFRESH_SERIES_REINIT:function(){this._refreshSeries("INIT")},_change_REFRESH_AXES(){et(this._canvas),this._reinitAxes(),this._requestChange(["CORRECT_AXIS","FULL_RENDER"])},_change_SCROLL_BAR:function(){this._createScrollBar(),this._processRefreshData(pb)},_change_REINIT:function(){this._processRefreshData(hb)},_change_FORCE_DRAWING:function(){this._resetComponentsAnimation()},_change_FORCE_FIRST_DRAWING:function(){this._resetComponentsAnimation(!0)},_resetComponentsAnimation:function(t){this.series.forEach((e=>{e.resetApplyingAnimation(t)})),this._resetAxesAnimation(t)},_resetAxesAnimation:s.ZT,_refreshSeries:function(t){this.needToPopulateSeries=!0,this._requestChange([t])},_change_CORRECT_AXIS(){this._correctAxes()},_doRefresh:function(){var t=this._currentRefreshData;t&&(this._currentRefreshData=null,this._renderer.stopAllAnimations(!0),this[t]())},_updateCanvasClipRect:function(t){var e=Math.max(t.width-t.left-t.right,0),i=Math.max(t.height-t.top-t.bottom,0);this._canvasClipRect.attr({x:t.left,y:t.top,width:e,height:i}),this._backgroundRect.attr({x:t.left,y:t.top,width:e,height:i})},_getCanvasClipRectID:function(){return this._canvasClipRect.id},_dataSourceChangedHandler:function(){this._changes.has("INIT")?this._requestChange(["DATA_INIT"]):this._requestChange(["FORCE_DATA_INIT"])},_dataInit:function(){this._dataSpecificInit(!0)},_processSingleSeries:function(t){t.createPoints(!1)},_handleSeriesDataUpdated(){this._getVisibleSeries().some((t=>t.useAggregation()))&&this._populateMarginOptions(),this.series.forEach((t=>this._processSingleSeries(t)),this)},_dataSpecificInit(t){this.series&&!this.needToPopulateSeries||(this.series=this._populateSeries()),this._repopulateSeries(),this._seriesPopulatedHandlerCore(),this._populateBusinessRange(),this._tracker.updateSeries(this.series,this._changes.has("INIT")),this._updateLegend(),t&&this._requestChange(["FULL_RENDER"])},_forceRender:function(){this._doRender({force:!0})},_repopulateSeries:function(){var t=this._themeManager,e=this._dataSourceItems(),i=t.getOptions("dataPrepareSettings"),r=t.getOptions("seriesTemplate");r&&this._populateSeries(e),this._groupSeries();var n=fu(e,this._groupsData,this._incidentOccurred,i);t.resetPalette(),this.series.forEach((function(t){t.updateData(n[t.getArgumentField()])})),this._handleSeriesDataUpdated()},_renderCompleteHandler:function(){var t=!0;this._needHandleRenderComplete&&((0,h.S6)(this.series,(function(e,i){t=t&&i.canRenderCompleteHandle()})),t&&(this._needHandleRenderComplete=!1,this._eventTrigger("done",{target:this})))},_dataIsReady:function(){return(0,l.$K)(this.option("dataSource"))&&this._dataIsLoaded()},_populateSeriesOptions(t){for(var e,i,r=this,n=r._themeManager,o=n.getOptions("seriesTemplate"),a=o?ht(o,t||[]):r.option("series"),s=ub(a)?a:a?[a]:[],h=r._getExtraOptions(),c=[],d=t=>{r._specialProcessSeries(),r._populateBusinessRange(t&&t.getValueAxis(),!0),r._renderer.stopAllAnimations(!0),r._updateLegend(),r._requestChange(["FULL_RENDER"])},p=0;p{var i=r.series&&r.series.filter((t=>t.name===e.name&&-1===n.map((t=>t.series)).indexOf(t)))[0];i&&i.type===e.type?n.push({series:i,options:e}):(n.push({options:e}),s=!0)})),0!==(null===(e=r.series)||void 0===e?void 0:e.length)&&r._tracker.clearHover(),(0,h.iY)(r.series,((t,e)=>{n.some((t=>e===t.series))||(r._disposeSeries(t),s=!0)})),!s&&(s=n.some((t=>t.series.name!==a[t.series.index].name))),r.series=[],s&&r._disposeSeriesFamilies(),r._themeManager.resetPalette();var l=function(t){r.series.forEach((function(e){e.notify(t)}))};return(0,h.S6)(n,((t,e)=>{var n,a,s=e.options,h=null!==(n=null===(a=r._argumentAxes)||void 0===a?void 0:a.filter((t=>t.pane===s.pane))[0])&&void 0!==n?n:r.getArgumentAxis(),c={commonSeriesModes:r._getSelectionModes(),argumentAxis:h,valueAxis:r._getValueAxis(s.pane,s.axis)};e.series?(i=e.series,i.updateOptions(s,c)):i=new ug((0,u.l)({renderer:r._renderer,seriesGroup:r._seriesGroup,labelsGroup:r._labelsGroup,eventTrigger:r._eventTrigger,eventPipe:l,incidentOccurred:o},c),s),i.isUpdated?(i.index=r.series.length,r.series.push(i)):o("E2101",[s.type])})),r.series},getStackedPoints:function(t){var e=t.series.getStackName();return this._getVisibleSeries().reduce(((i,r)=>((0,l.$K)(r.getStackName())&&(0,l.$K)(e)&&e!==r.getStackName()||(i=i.concat(r.getPointsByArg(t.argument))),i)),[])},getAllSeries:function(){return(this.series||[]).slice()},getSeriesByName:function(t){var e=null;return(0,h.S6)(this.series,(function(i,r){if(r.name===t)return e=r,!1})),e},getSeriesByPos:function(t){return(this.series||[])[t]},clearSelection:function(){this._tracker.clearSelection()},hideTooltip:function(){this._tracker._hideTooltip()},clearHover(){this._tracker.clearHover()},render:function(t){var e=this;return e.__renderOptions=t,e.__forceRender=t&&t.force,e.callBase.apply(e,arguments),e.__renderOptions=e.__forceRender=null,e},refresh:function(){this._disposeSeries(),this._disposeSeriesFamilies(),this._requestChange(["CONTAINER_SIZE","REFRESH_SERIES_REINIT"])},_getMinSize(){var t=this._layoutManagerOptions();return[t.width,t.height]},_change_REFRESH(){this._changes.has("INIT")?this._currentRefreshData=null:this._doRefresh()},_change_FULL_RENDER(){this._forceRender()},_change_INIT(){this._reinit()},_stopCurrentHandling:function(){this._tracker.stopCurrentHandling()}});_b.forEach((function(t){Vb.prototype._optionChangesMap[t]="REFRESH_SERIES_DATA_INIT"})),bb.forEach((function(t){Vb.prototype._optionChangesMap[t]="FORCE_RENDER"})),vb.forEach((function(t){Vb.prototype._optionChangesMap[t]="REFRESH_SERIES_FAMILIES"})),Vb.addPlugin(bv),Vb.addPlugin(vs),Vb.addPlugin(Cv),Vb.addPlugin(eb),Vb.addPlugin(lb);var Db=Vb.prototype._change_TITLE;Vb.prototype._change_TITLE=function(){Db.apply(this,arguments),this._change(["FORCE_RENDER"])};var zb=Number;function Mb(){this.setDomain(arguments[0],arguments[1]).setCodomain(arguments[2],arguments[3]).setInverted(!1)}Mb.prototype={constructor:Mb,setDomain:function(t,e){return this._domain1=zb(t),this._domain2=zb(e),this._domainDelta=this._domain2-this._domain1,this},setCodomain:function(t,e){return this._codomain1=zb(t),this._codomain2=zb(e),this._codomainDelta=this._codomain2-this._codomain1,this},setInverted(t){this.inverted=t},getDomain:function(){return[this._domain1,this._domain2]},getCodomain:function(){return[this._codomain1,this._codomain2]},getDomainStart:function(){return this._domain1},getDomainEnd:function(){return this._domain2},getCodomainStart:function(){return this._codomain1},getCodomainEnd:function(){return this._codomain2},getDomainRange:function(){return this._domainDelta},getCodomainRange:function(){return this._codomainDelta},translate:function(t){var e=(zb(t)-this._domain1)/this._domainDelta;return this.inverted&&(e=1-e),0<=e&&e<=1?this._codomain1+e*this._codomainDelta:NaN},adjust:function(t){var e=(zb(t)-this._domain1)/this._domainDelta,i=NaN;return e<0?i=this._domain1:e>1?i=this._domain2:0<=e&&e<=1&&(i=zb(t)),i}};var Fb=i(98267),Nb=zt["default"].getDocument,Gb="annotations",Hb="."+Gb,Zb=(0,Rt.V4)([Lg.Z.down,Lg.Z.move],Gb),$b=(0,Rt.V4)(Lg.Z.up,Gb),Xb=Fb.BL+Hb,Yb=Fb.pB+Hb,jb=Fb.ut+Hb;function Kb(t,e){return{draw:function(i,r){var n=i._renderer.g().append(r).css(st(t.font));this.plaque&&this.plaque.clear(),this.plaque=new Zv((0,u.l)(!0,{},t,{cornerRadius:(t.border||{}).cornerRadius}),i,n,e,i._isAnnotationBounded(t)),this.plaque.draw(i._getAnnotationCoords(this)),t.allowDragging&&n.on(Xb,{immediate:!0},(t=>{this._dragOffsetX=this.plaque.x-t.pageX,this._dragOffsetY=this.plaque.y-t.pageY})).on(Yb,(t=>{this.plaque.move(t.pageX+this._dragOffsetX,t.pageY+this._dragOffsetY)})).on(jb,(t=>{this.offsetX=(this.offsetX||0)+t.offset.x,this.offsetY=(this.offsetY||0)+t.offset.y}))},hitTest(t,e){return this.plaque.hitTest(t,e)},showTooltip(t,e){var{x:i,y:r}=e,n=this,o=n.options;if(t.annotation!==n){t.setTemplate(o.tooltipTemplate);var a=e=>{e&&(t.annotation=n)};a(t.show(o,{x:i,y:r},{target:o},o.customizeTooltip,a))}else t.isCursorOnTooltip(i,r)||t.move(i,r)}}}function Ub(t,e){var i;return"text"===t.type?i=function(t,i){var r=e._renderer.text(t.text).attr({class:t.cssClass}).append({element:i});(t.width>0||t.height>0)&&r.setMaxSize(t.width,t.height,{wordWrap:t.wordWrap,textOverflow:t.textOverflow})}:"image"===t.type?i=function(t,i){var{width:r,height:n,url:o,location:a}=t.image||{},{width:s,height:l}=t,u=s>0?Math.min(r,s):r,h=l>0?Math.min(n,l):n;e._renderer.image(0,0,u,h,o,a||"center").append({element:i})}:"custom"===t.type&&(i=t.template),i}function Wb(t){return"string"===typeof t?{url:t}:t}var qb=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,o=Wb(i.image);return e.reduce(((e,a)=>{var s=Wb(a.image),h=(0,l.mf)(r)?r(a):{};h&&(h.image=Wb(h.image));var c=(0,u.l)(!0,{},i,a,{image:o},{image:s},h),d=Ub(c,t),p=d&&(0,u.l)(!0,n(c),Kb(c,t._getTemplate(d)));return p&&e.push(p),e}),[])},Jb={name:"annotations_chart",init(){},dispose(){},members:{_getAnnotationCoords(t){var e,i,r,n,o={offsetX:t.offsetX,offsetY:t.offsetY},a=this._options.silent("rotated")?"y":"x",s=this._options.silent("rotated")?"x":"y",u=this.getArgumentAxis(),h=u.validateUnit(t.argument),c=this.getValueAxis(t.axis),d=null===(e=c)||void 0===e?void 0:e.pane;t.series&&(r=this.series.filter((e=>e.name===t.series))[0],c=null===(n=r)||void 0===n?void 0:n.getValueAxis(),(0,l.$K)(c)&&(d=c.pane));if((0,l.$K)(h)){if(r){var p=r.getPointCenterByArg(h);p&&(o[a]=p[a])}else o[a]=u.getTranslator().translate(h);!(0,l.$K)(d)&&(d=u.pane)}var g,f,m=null===(i=c)||void 0===i?void 0:i.validateUnit(t.value);(0,l.$K)(m)&&(o[s]=null===(g=c)||void 0===g?void 0:g.getTranslator().translate(m),!(0,l.$K)(d)&&(0,l.$K)(c)&&(d=c.pane));(o.canvas=this._getCanvasForPane(d),(0,l.$K)(o[a])&&!(0,l.$K)(m))&&((0,l.$K)(c)||(0,l.$K)(r)?(0,l.$K)(c)&&!(0,l.$K)(r)?o[s]=this._argumentAxes.filter((t=>t.pane===c.pane))[0].getAxisPosition():null!==(f=r)&&void 0!==f&&f.checkSeriesViewportCoord(u,o[a])&&(o[s]=r.getSeriesPairCoord(o[a],!0)):o[s]=u.getAxisPosition());return!(0,l.$K)(h)&&(0,l.$K)(o[s])&&((0,l.$K)(c)&&!(0,l.$K)(r)?o[a]=c.getAxisPosition():(0,l.$K)(r)&&r.checkSeriesViewportCoord(c,o[s])&&(o[a]=r.getSeriesPairCoord(o[s],!1))),o},_annotationsPointerEventHandler(t){if(!this._disposed){var e=t.originalEvent||{},i=e.touches&&e.touches[0]||{},r=this._renderer.getRootOffset(),n={x:i.pageX||e.pageX||t.pageX,y:i.pageY||e.pageY||t.pageY},o=this._annotations.items.filter((t=>t.hitTest(n.x-r.left,n.y-r.top)))[0];o&&o.options.tooltipEnabled?(this._clear(),o.options.allowDragging&&t.type===Lg.Z.down&&(this._annotations._hideToolTipForDrag=!0),this._annotations._hideToolTipForDrag||(o.showTooltip(this._annotations.tooltip,n),t.stopPropagation())):this._annotations.hideTooltip()}},_isAnnotationBounded:t=>(0,l.$K)(t.value)||(0,l.$K)(t.argument),_pullOptions:t=>({type:t.type,name:t.name,x:t.x,y:t.y,value:t.value,argument:t.argument,axis:t.axis,series:t.series,options:t,offsetX:t.offsetX,offsetY:t.offsetY}),_forceAnnotationRender(){this._change(["FORCE_RENDER"])},_clear(){this.hideTooltip(),this.clearHover()}}},Qb={name:"annotations_polar_chart",init(){},dispose(){},members:{_getAnnotationCoords(t){var e,i,r={offsetX:t.offsetX,offsetY:t.offsetY,canvas:this._calcCanvas()},n=this.getArgumentAxis(),o=n.validateUnit(t.argument),a=this.getValueAxis().validateUnit(t.value),s=t.radius,h=t.angle;return t.series&&(i=this.series.filter((e=>e.name===t.series))[0]),(0,u.l)(!0,r,this.getXYFromPolar(h,s,o,a)),(0,l.$K)(i)&&(!(0,l.$K)(r.angle)||(0,l.$K)(a)||(0,l.$K)(s)?!(0,l.$K)(r.radius)||(0,l.$K)(o)||(0,l.$K)(h)||(e=i.getSeriesPairCoord({radius:r.radius},!1)):((0,l.$K)(o)||(o=n.getTranslator().from(isFinite(h)?this.getActualAngle(h):r.angle)),e=i.getSeriesPairCoord({argument:o,angle:-r.angle},!0)),(0,l.$K)(e)&&(r.x=e.x,r.y=e.y)),t.series&&!(0,l.$K)(e)&&(r.x=r.y=void 0),r},_annotationsPointerEventHandler:Jb.members._annotationsPointerEventHandler,_isAnnotationBounded:Jb.members._isAnnotationBounded,_pullOptions(t){var e=(0,u.l)({},{radius:t.radius,angle:t.angle},Jb.members._pullOptions(t));return delete e.axis,e},_forceAnnotationRender:Jb.members._forceAnnotationRender,_clear:Jb.members._clear}},ty={name:"annotations_vector_map",init(){},dispose(){this._annotations._offTracker(),this._annotations._offTracker=null},members:{_getAnnotationCoords(t){var e={offsetX:t.offsetX,offsetY:t.offsetY};if(e.canvas=this._projection.getCanvas(),t.coordinates){var i=this._projection.toScreenPoint(t.coordinates);e.x=i[0],e.y=i[1]}return e},_annotationsPointerEventHandler:Jb.members._annotationsPointerEventHandler,_isAnnotationBounded:t=>(0,l.$K)(t.coordinates),_pullOptions(t){var e=(0,u.l)({},{coordinates:t.coordinates},Jb.members._pullOptions(t));return delete e.axis,delete e.series,delete e.argument,delete e.value,e},_forceAnnotationRender(){this._change(["EXTRA_ELEMENTS"])},_getAnnotationStyles:()=>({"text-anchor":"start"}),_clear(){}},extenders:{_prepareExtraElements(){var t=this,e=()=>{t._renderExtraElements()};t._annotations._offTracker=t._tracker.on({move:e,zoom:e,end:e})}}},ey={name:"annotations_pie_chart",init(){},dispose(){},members:{_getAnnotationCoords(t){var e,i={offsetX:t.offsetX,offsetY:t.offsetY,canvas:this._canvas};if(t.argument){e=t.series?this.getSeriesByName(t.series):this.series[0];var r=e.getPointsByArg(t.argument)[0],{x:n,y:o}=r.getAnnotationCoords(t.location);i.x=n,i.y=o}return i},_isAnnotationBounded:t=>t.argument,_annotationsPointerEventHandler:Jb.members._annotationsPointerEventHandler,_pullOptions(t){var e=(0,u.l)({},{location:t.location},Jb.members._pullOptions(t));return delete e.axis,e},_clear:Jb.members._clear,_forceAnnotationRender:Jb.members._forceAnnotationRender}},iy={name:"annotations_core",init(){this._annotations={items:[],_hideToolTipForDrag:!1,tooltip:new tb({cssClass:"".concat(this._rootClassPrefix,"-annotation-tooltip"),eventTrigger:this._eventTrigger,widgetRoot:this.element(),widget:this}),hideTooltip(){this.tooltip.annotation=null,this.tooltip.hide()},clearItems(){this.items.forEach((t=>t.plaque.clear())),this.items=[]}},this._annotations.tooltip.setRendererOptions(this._getRendererOptions())},dispose(){this._annotationsGroup.linkRemove().linkOff(),Bt.Z.off(Nb(),Hb),this._annotationsGroup.off(Hb),this._annotations.tooltip&&this._annotations.tooltip.dispose()},extenders:{_createHtmlStructure(){this._annotationsGroup=this._renderer.g().attr({class:"".concat(this._rootClassPrefix,"-annotations")}).css(this._getAnnotationStyles()).linkOn(this._renderer.root,"annotations").linkAppend(),Bt.Z.on(Nb(),Zb,(t=>{this._disposed||this._annotations.tooltip.isCursorOnTooltip(t.pageX,t.pageY)||this._annotations.hideTooltip()})),Bt.Z.on(Nb(),$b,(t=>{this._annotations._hideToolTipForDrag=!1,this._annotationsPointerEventHandler(t)})),this._annotationsGroup.on(Zb,this._annotationsPointerEventHandler.bind(this))},_renderExtraElements(){this._annotationsGroup.clear(),this._annotations.items.forEach((t=>t.draw(this,this._annotationsGroup)))},_stopCurrentHandling(){this._annotations.hideTooltip()}},members:{_buildAnnotations(){this._annotations.clearItems();var t=this._getOption("annotations",!0);null!==t&&void 0!==t&&t.length&&(this._annotations.items=qb(this,t,this._getOption("commonAnnotationSettings"),this._getOption("customizeAnnotation",!0),this._pullOptions))},_setAnnotationTooltipOptions(){var t=(0,u.l)({},this._getOption("tooltip"));t.contentTemplate=t.customizeTooltip=void 0,this._annotations.tooltip.update(t)},_getAnnotationCoords:()=>({}),_pullOptions:()=>({}),_getAnnotationStyles:()=>({})},customize(t){t.addChange({code:"ANNOTATIONITEMS",handler(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"annotations"}),t.addChange({code:"ANNOTATIONSSETTINGS",handler(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"commonAnnotationSettings"}),t.addChange({code:"ANNOTATIONS",handler(){this._buildAnnotations(),this._setAnnotationTooltipOptions(),this._forceAnnotationRender()},isThemeDependent:!0,isOptionChange:!0})},fontFields:["commonAnnotationSettings.font"]},ry={core:iy,chart:Jb,polarChart:Qb,vectorMap:ty,pieChart:ey},{states:ny}=a,oy=a.pieSeriesSpacing,ay=["startAngle","innerRadius","segmentsDirection","type"],sy=ny.normalMark,ly=ny.hoverMark,uy=ny.selectedMark,hy=5,cy=[ny.resetItem,ny.applyHover,ny.applySelected,ny.applySelected];function dy(t){var e=sy;return t.forEach((t=>{var i,r=null===(i=t.series)||void 0===i?void 0:i.getOptions(),n=t.fullState;"none"===(null===r||void 0===r?void 0:r.hoverMode)&&(n&=~ly),"none"===(null===r||void 0===r?void 0:r.selectionMode)&&(n&=~uy),e|=n})),cy[e]}function py(t){return(0,l.kE)(t)?t>1?t=1:t<0&&(t=0):t=void 0,t}var gy=function(){function t(t,e){return t.filter((function(t){return t!==e}))}var e=[],i={};return{queue:function(r){var n,o,a=r.getSizeGroup();n=e,o=r,e=t(n,o).concat(o),clearTimeout(i[a]),i[a]=setTimeout((function(){!function(t,e){var i=e.filter((e=>e._isVisible()&&e.getSizeGroup()===t)),r=Math.min.apply(null,i.map((t=>t.getSizeGroupLayout().radius))),n=i.filter((t=>t.getSizeGroupLayout().radius===r));i.forEach((t=>t.render({force:!0,sizeGroupLayout:n.length?n[0].getSizeGroupLayout():{}})))}(a,e)}))},remove:function(r){e=t(e,r),e.length||(i={})}}}(),fy=Vb.inherit({_themeSection:"pie",_layoutManagerOptions:function(){return(0,u.l)(!0,{},this.callBase(),{piePercentage:py(this._themeManager.getOptions("diameter")),minPiePercentage:py(this._themeManager.getOptions("minDiameter"))})},_customChangesOrder:["CENTER_TEMPLATE"],_optionChangesMap:{diameter:"REINIT",minDiameter:"REINIT",sizeGroup:"REINIT",centerTemplate:"CENTER_TEMPLATE"},_change_CENTER_TEMPLATE(){this._renderCenterTemplate()},_disposeCore:function(){gy.remove(this),this.callBase(),this._centerTemplateGroup.linkOff().dispose()},_groupSeries:function(){var t=this.series;this._groupsData={groups:[{series:t,valueOptions:{valueType:"numeric"}}],argumentOptions:t[0]&&t[0].getOptions()}},getArgumentAxis:function(){return null},_getValueAxis:function(){var t=(new Mb).setCodomain(360,0);return{getTranslator:function(){return t},setBusinessRange:function(e){t.setDomain(e.min,e.max)}}},_populateBusinessRange:function(){this.series.map((function(t){var e=new Ot;return e.addRange(t.getRangeData().val),t.getValueAxis().setBusinessRange(e),e}))},_specialProcessSeries:function(){(0,h.S6)(this.series,(function(t,e){e.arrangePoints()}))},_checkPaneName:function(){return!0},_processSingleSeries:function(t){this.callBase(t),t.arrangePoints()},_handleSeriesDataUpdated:function(){var t=0;this.series.forEach((function(e){t=Math.max(e.getPointsCount(),t)})),this.series.forEach((function(e){e.setMaxPointsCount(t)})),this.callBase()},_getLegendOptions:function(t){var e=this.callBase(t),i=e.legendData;return i.argument=t.argument,i.argumentIndex=t.argumentIndex,i.points=[t],e},_getLegendTargets:function(){var t=this,e={};(t.series||[]).forEach((function(t){t.getPoints().forEach((function(i){var r=i.argument.valueOf(),n=t.getPointsByArg(r).indexOf(i),o=r.valueOf().toString()+n;e[o]=e[o]||[];var a=e[o].push(i);i.index=e[o][a-2]?e[o][a-2].index:Object.keys(e).length-1,i.argumentIndex=n}))}));var i=[];return(0,h.S6)(e,(function(e,r){r.forEach((function(e,r){if(0!==r){var n=i[i.length-1];n.legendData.points.push(e),n.visible||(n.visible=e.isVisible())}else i.push(t._getLegendOptions(e))}))})),i},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getLayoutSeries:function(t,e){var i,r=this._canvas,n=!1;return i=this.layoutManager.applyPieChartSeriesLayout(r,t,!0),t.forEach((function(t){t.correctPosition(i,r),n=t.drawLabelsWOPoints()||n})),n&&(i=this.layoutManager.applyPieChartSeriesLayout(r,t,e.hideLayoutLabels)),t.forEach((function(t){t.hideLabels()})),this._sizeGroupLayout={x:i.centerX,y:i.centerY,radius:i.radiusOuter,drawOptions:e},i},_getLayoutSeriesForEqualPies:function(t,e){var i=this._canvas,r=this.layoutManager.applyEqualPieChartLayout(t,e);return t.forEach((function(t){t.correctPosition(r,i),t.drawLabelsWOPoints()})),this.layoutManager.correctPieLabelRadius(t,r,i),r},_updateSeriesDimensions:function(t){var e,i,r,n=this._getVisibleSeries(),o=n.length,a=t.sizeGroupLayout;o&&(r=a?this._getLayoutSeriesForEqualPies(n,a):this._getLayoutSeries(n,t),i=(r.radiusOuter-r.radiusInner-oy*(o-1))/o,e=r.radiusInner,this._setGeometry(r),n.forEach((function(t){t.correctRadius({radiusInner:e,radiusOuter:e+i}),e+=i+oy})))},_renderSeries:function(t,e,i){if(this._calculateSeriesLayout(t,e),!t.sizeGroupLayout&&this.getSizeGroup())return gy.queue(this),void this._clearCanvas();this._renderSeriesElements(t,i)},_createHtmlStructure(){this.callBase(),this._centerTemplateGroup=this._renderer.g().attr({class:"dxc-hole-template"}).linkOn(this._renderer.root,"center-template").css(st(this._themeManager._font)).linkAppend()},_renderExtraElements(){this._requestChange(["CENTER_TEMPLATE"])},_renderCenterTemplate(){var t=this.option("centerTemplate"),e=this._centerTemplateGroup.clear();t&&(e.attr({visibility:"hidden"}),t=this._getTemplate(t),t.render({model:this,container:e.element,onRendered:()=>{var t=e,i=t.getBBox();t.move(this._center.x-(i.x+i.width/2),this._center.y-(i.y+i.height/2)),t.attr({visibility:"visible"})}}))},getInnerRadius(){return this._innerRadius},_getLegendCallBack:function(){var t=this,e=this._legend,i=this._getLegendTargets().map((function(t){return t.legendData}));return function(r){i.forEach((function(i){var n=[],o=e.getActionCallback({index:i.id});t.series.forEach((function(t){var e=t.getPointsByKeys(i.argument,i.argumentIndex);n.push.apply(n,e)})),r&&r.argument===i.argument&&r.argumentIndex===i.argumentIndex&&n.push(r),o(dy(n))}))}},_locateLabels(t){var e,i,r=0;do{i=this._adjustSeriesLabels("shift"===t),e=this._resolveLabelOverlapping(t)}while((e||i)&&++ri.adjustLabels(t)||e),!1)},_applyExtraSettings:s.ZT,_resolveLabelOverlappingShift:function(){var t=this,e="anticlockwise"===t.option("segmentsDirection"),i=t.series.reduce((function(t,e){return(t[e.getOptions().label.position]||t.outside).push(e),t}),{inside:[],columns:[],outside:[]}),r=!1;return i.inside.length>0&&(r=o(i.inside.reduce((function(t,e){return e.getVisiblePoints().reduce((function(t,e){return t.left.push(e),t}),t)}),{left:[],right:[]}),a)||r),r=i.columns.reduce(((t,e)=>o(n(e),a)||t),r),i.outside.length>0&&(r=o(i.outside.reduce((function(t,e){return n(e,t)}),null),(function(e,i){return dt(e,-i,t._center)}))||r),r;function n(t,e){return t.getVisiblePoints().reduce((function(t,e){var i=U(e.middleAngle);return(i<=90||i>=270?t.right:t.left).push(e),t}),e||{left:[],right:[]})}function o(i,r){var n;return e&&(i.left.reverse(),i.right.reverse()),n=Rb.resolveLabelOverlappingInOneDirection(i.left,t._canvas,!1,!1,r),Rb.resolveLabelOverlappingInOneDirection(i.right,t._canvas,!1,!1,r)||n}function a(t,e){return{x:t.x,y:t.y-e}}},_setGeometry:function(t){var{centerX:e,centerY:i,radiusInner:r}=t;this._center={x:e,y:i},this._innerRadius=r},_disposeSeries(t){this.callBase.apply(this,arguments),this._abstractSeries=null},_legendDataField:"point",_legendItemTextField:"argument",_applyPointMarkersAutoHiding:s.ZT,_renderTrackers:s.ZT,_trackerType:"PieTracker",_createScrollBar:s.ZT,_updateAxesLayout:s.ZT,_applyClipRects:s.ZT,_appendAdditionalSeriesGroups:s.ZT,_prepareToRender:s.ZT,_isLegendInside:s.ZT,_renderAxes:s.ZT,_shrinkAxes:s.ZT,_isRotated:s.ZT,_seriesPopulatedHandlerCore:s.ZT,_reinitAxes:s.ZT,_correctAxes:s.ZT,_getExtraOptions:function(){return{startAngle:this.option("startAngle"),innerRadius:this.option("innerRadius"),segmentsDirection:this.option("segmentsDirection"),type:this.option("type")}},getSizeGroup:function(){return this._themeManager.getOptions("sizeGroup")},getSizeGroupLayout:function(){return this._sizeGroupLayout||{}}});(0,h.S6)(ay,(function(t,e){fy.prototype._optionChangesMap[e]="REFRESH_SERIES_DATA_INIT"})),fy.addPlugin(ry.core),fy.addPlugin(ry.pieChart),(0,Lt.Z)("dxPieChart",fy);var my=fy},55733:function(t,e,i){ /*! JSZip v3.10.1 - A JavaScript class for generating and reading zip files (c) 2009-2016 Stuart Knightley Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. JSZip uses the library pako released under the MIT license : https://github.com/nodeca/pako/blob/main/LICENSE */ !function(e){t.exports=e()}((function(){return function t(e,i,r){function n(a,s){if(!i[a]){if(!e[a]){var l=void 0;if(!s&&l)return require(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var h=i[a]={exports:{}};e[a][0].call(h.exports,(function(t){var i=e[a][1][t];return n(i||t)}),h,h.exports,t,e,i,r)}return i[a].exports}for(var o=void 0,a=0;a>2,s=(3&e)<<4|i>>4,l=1>6:64,u=2>4,i=(15&a)<<4|(s=o.indexOf(t.charAt(u++)))>>2,r=(3&s)<<6|(l=o.indexOf(t.charAt(u++))),d[h++]=e,64!==s&&(d[h++]=i),64!==l&&(d[h++]=r);return d}},{"./support":30,"./utils":32}],2:[function(t,e,i){"use strict";var r=t("./external"),n=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),a=t("./stream/DataLengthProbe");function s(t,e,i,r,n){this.compressedSize=t,this.uncompressedSize=e,this.crc32=i,this.compression=r,this.compressedContent=n}s.prototype={getContentWorker:function(){var t=new n(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new n(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,e,i){return t.pipe(new o).pipe(new a("uncompressedSize")).pipe(e.compressWorker(i)).pipe(new a("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,i){"use strict";var r=t("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},i.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,i){"use strict";var r=t("./utils"),n=function(){for(var t,e=[],i=0;i<256;i++){t=i;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[i]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==r.getTypeOf(t)?function(t,e,i,r){var o=n,a=r+i;t^=-1;for(var s=r;s>>8^o[255&(t^e[s])];return-1^t}(0|e,t,t.length,0):function(t,e,i,r){var o=n,a=r+i;t^=-1;for(var s=r;s>>8^o[255&(t^e.charCodeAt(s))];return-1^t}(0|e,t,t.length,0):0}},{"./utils":32}],5:[function(t,e,i){"use strict";i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(t,e,i){"use strict";var r=null;r="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:r}},{lie:37}],7:[function(t,e,i){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,n=t("pako"),o=t("./utils"),a=t("./stream/GenericWorker"),s=r?"uint8array":"array";function l(t,e){a.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}i.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,t.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new n[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},i.compressWorker=function(t){return new l("Deflate",t)},i.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,i){"use strict";function r(t,e){var i,r="";for(i=0;i>>=8;return r}function n(t,e,i,n,a,h){var c,d,p=t.file,g=t.compression,f=h!==s.utf8encode,m=o.transformTo("string",h(p.name)),_=o.transformTo("string",s.utf8encode(p.name)),v=p.comment,b=o.transformTo("string",h(v)),y=o.transformTo("string",s.utf8encode(v)),x=_.length!==p.name.length,w=y.length!==v.length,C="",S="",k="",A=p.dir,T=p.date,E={crc32:0,compressedSize:0,uncompressedSize:0};e&&!i||(E.crc32=t.crc32,E.compressedSize=t.compressedSize,E.uncompressedSize=t.uncompressedSize);var O=0;e&&(O|=8),f||!x&&!w||(O|=2048);var P=0,I=0;A&&(P|=16),"UNIX"===a?(I=798,P|=function(t,e){var i=t;return t||(i=e?16893:33204),(65535&i)<<16}(p.unixPermissions,A)):(I=20,P|=function(t){return 63&(t||0)}(p.dosPermissions)),c=T.getUTCHours(),c<<=6,c|=T.getUTCMinutes(),c<<=5,c|=T.getUTCSeconds()/2,d=T.getUTCFullYear()-1980,d<<=4,d|=T.getUTCMonth()+1,d<<=5,d|=T.getUTCDate(),x&&(S=r(1,1)+r(l(m),4)+_,C+="up"+r(S.length,2)+S),w&&(k=r(1,1)+r(l(b),4)+y,C+="uc"+r(k.length,2)+k);var L="";return L+="\n\0",L+=r(O,2),L+=g.magic,L+=r(c,2),L+=r(d,2),L+=r(E.crc32,4),L+=r(E.compressedSize,4),L+=r(E.uncompressedSize,4),L+=r(m.length,2),L+=r(C.length,2),{fileRecord:u.LOCAL_FILE_HEADER+L+m+C,dirRecord:u.CENTRAL_FILE_HEADER+r(I,2)+L+r(b.length,2)+"\0\0\0\0"+r(P,4)+r(n,4)+m+C+b}}var o=t("../utils"),a=t("../stream/GenericWorker"),s=t("../utf8"),l=t("../crc32"),u=t("../signature");function h(t,e,i,r){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=i,this.encodeFileName=r,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(h,a),h.prototype.push=function(t){var e=t.meta.percent||0,i=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:i?(e+100*(i-r-1))/i:100}}))},h.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var i=n(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:i.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,i=n(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(i.dirRecord),e)this.push({data:function(t){return u.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:i.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e=this.index;e--)i=(i<<8)+this.byteAt(e);return this.index+=t,i},readString:function(t){return r.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=n},{"../utils":32}],19:[function(t,e,i){"use strict";var r=t("./Uint8ArrayReader");function n(t){r.call(this,t)}t("../utils").inherits(n,r),n.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,i){"use strict";var r=t("./DataReader");function n(t){r.call(this,t)}t("../utils").inherits(n,r),n.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},n.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},n.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},n.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=n},{"../utils":32,"./DataReader":18}],21:[function(t,e,i){"use strict";var r=t("./ArrayReader");function n(t){r.call(this,t)}t("../utils").inherits(n,r),n.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,i){"use strict";var r=t("../utils"),n=t("../support"),o=t("./ArrayReader"),a=t("./StringReader"),s=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=r.getTypeOf(t);return r.checkSupport(e),"string"!==e||n.uint8array?"nodebuffer"===e?new s(t):n.uint8array?new l(r.transformTo("uint8array",t)):new o(r.transformTo("array",t)):new a(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,i){"use strict";i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,i){"use strict";var r=t("./GenericWorker"),n=t("../utils");function o(t){r.call(this,"ConvertWorker to "+t),this.destType=t}n.inherits(o,r),o.prototype.processChunk=function(t){this.push({data:n.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,i){"use strict";var r=t("./GenericWorker"),n=t("../crc32");function o(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,r),o.prototype.processChunk=function(t){this.streamInfo.crc32=n(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,i){"use strict";var r=t("../utils"),n=t("./GenericWorker");function o(t){n.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}r.inherits(o,n),o.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}n.prototype.processChunk.call(this,t)},e.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,i){"use strict";var r=t("../utils"),n=t("./GenericWorker");function o(t){n.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=r.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}r.inherits(o,n),o.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,i){"use strict";function r(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var i=0;i "+t:t}},e.exports=r},{}],29:[function(t,e,i){"use strict";var r=t("../utils"),n=t("./ConvertWorker"),o=t("./GenericWorker"),a=t("../base64"),s=t("../support"),l=t("../external"),u=null;if(s.nodestream)try{u=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function h(t,e){return new l.Promise((function(i,n){var o=[],s=t._internalType,l=t._outputType,u=t._mimeType;t.on("data",(function(t,i){o.push(t),e&&e(i)})).on("error",(function(t){o=[],n(t)})).on("end",(function(){try{var t=function(t,e,i){switch(t){case"blob":return r.newBlob(r.transformTo("arraybuffer",e),i);case"base64":return a.encode(e);default:return r.transformTo(t,e)}}(l,function(t,e){var i,r=0,n=null,o=0;for(i=0;i>>6:(i<65536?e[a++]=224|i>>>12:(e[a++]=240|i>>>18,e[a++]=128|i>>>12&63),e[a++]=128|i>>>6&63),e[a++]=128|63&i);return e}(t)},i.utf8decode=function(t){return n.nodebuffer?r.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,i,n,o,a=t.length,l=new Array(2*a);for(e=i=0;e>10&1023,l[i++]=56320|1023&n)}return l.length!==i&&(l.subarray?l=l.subarray(0,i):l.length=i),r.applyFromCharCode(l)}(t=r.transformTo(n.uint8array?"uint8array":"array",t))},r.inherits(u,a),u.prototype.processChunk=function(t){var e=r.transformTo(n.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(n.uint8array){var o=e;(e=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),e.set(o,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var a=function(t,e){var i;for((e=e||t.length)>t.length&&(e=t.length),i=e-1;0<=i&&128==(192&t[i]);)i--;return i<0||0===i?e:i+s[t[i]]>e?i:e}(e),l=e;a!==e.length&&(n.uint8array?(l=e.subarray(0,a),this.leftOver=e.subarray(a,e.length)):(l=e.slice(0,a),this.leftOver=e.slice(a,e.length))),this.push({data:i.utf8decode(l),meta:t.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=u,r.inherits(h,a),h.prototype.processChunk=function(t){this.push({data:i.utf8encode(t.data),meta:t.meta})},i.Utf8EncodeWorker=h},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,i){"use strict";var r=t("./support"),n=t("./base64"),o=t("./nodejsUtils"),a=t("./external");function s(t){return t}function l(t,e){for(var i=0;i>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=r(this.extraFields[1].value);this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,i,r,n=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4>>6:(i<65536?e[a++]=224|i>>>12:(e[a++]=240|i>>>18,e[a++]=128|i>>>12&63),e[a++]=128|i>>>6&63),e[a++]=128|63&i);return e},i.buf2binstring=function(t){return l(t,t.length)},i.binstring2buf=function(t){for(var e=new r.Buf8(t.length),i=0,n=e.length;i>10&1023,u[r++]=56320|1023&n)}return l(u,r)},i.utf8border=function(t,e){var i;for((e=e||t.length)>t.length&&(e=t.length),i=e-1;0<=i&&128==(192&t[i]);)i--;return i<0||0===i?e:i+a[t[i]]>e?i:e}},{"./common":41}],43:[function(t,e,i){"use strict";e.exports=function(t,e,i,r){for(var n=65535&t|0,o=t>>>16&65535|0,a=0;0!==i;){for(i-=a=2e3>>1:t>>>1;e[i]=t}return e}();e.exports=function(t,e,i,n){var o=r,a=n+i;t^=-1;for(var s=n;s>>8^o[255&(t^e[s])];return-1^t}},{}],46:[function(t,e,i){"use strict";var r,n=t("../utils/common"),o=t("./trees"),a=t("./adler32"),s=t("./crc32"),l=t("./messages"),u=0,h=4,c=0,d=-2,p=-1,g=4,f=2,m=8,_=9,v=286,b=30,y=19,x=2*v+1,w=15,C=3,S=258,k=S+C+1,A=42,T=113,E=1,O=2,P=3,I=4;function L(t,e){return t.msg=l[e],e}function B(t){return(t<<1)-(4t.avail_out&&(i=t.avail_out),0!==i&&(n.arraySet(t.output,e.pending_buf,e.pending_out,i,t.next_out),t.next_out+=i,e.pending_out+=i,t.total_out+=i,t.avail_out-=i,e.pending-=i,0===e.pending&&(e.pending_out=0))}function D(t,e){o._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,V(t.strm)}function z(t,e){t.pending_buf[t.pending++]=e}function M(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function F(t,e){var i,r,n=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-k?t.strstart-(t.w_size-k):0,u=t.window,h=t.w_mask,c=t.prev,d=t.strstart+S,p=u[o+a-1],g=u[o+a];t.prev_length>=t.good_match&&(n>>=2),s>t.lookahead&&(s=t.lookahead);do{if(u[(i=e)+a]===g&&u[i+a-1]===p&&u[i]===u[o]&&u[++i]===u[o+1]){o+=2,i++;do{}while(u[++o]===u[++i]&&u[++o]===u[++i]&&u[++o]===u[++i]&&u[++o]===u[++i]&&u[++o]===u[++i]&&u[++o]===u[++i]&&u[++o]===u[++i]&&u[++o]===u[++i]&&ol&&0!=--n);return a<=t.lookahead?a:t.lookahead}function N(t){var e,i,r,o,l,u,h,c,d,p,g=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=g+(g-k)){for(n.arraySet(t.window,t.window,g,g,0),t.match_start-=g,t.strstart-=g,t.block_start-=g,e=i=t.hash_size;r=t.head[--e],t.head[e]=g<=r?r-g:0,--i;);for(e=i=g;r=t.prev[--e],t.prev[e]=g<=r?r-g:0,--i;);o+=g}if(0===t.strm.avail_in)break;if(u=t.strm,h=t.window,c=t.strstart+t.lookahead,d=o,p=void 0,p=u.avail_in,d=C)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<=C&&(t.ins_h=(t.ins_h<=C)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-C),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=C){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=C&&(t.ins_h=(t.ins_h<=C&&t.match_length<=t.prev_length){for(n=t.strstart+t.lookahead-C,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-C),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=n&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(i=t.pending_buf_size-5);;){if(t.lookahead<=1){if(N(t),0===t.lookahead&&e===u)return E;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+i;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,D(t,!1),0===t.strm.avail_out))return E;if(t.strstart-t.block_start>=t.w_size-k&&(D(t,!1),0===t.strm.avail_out))return E}return t.insert=0,e===h?(D(t,!0),0===t.strm.avail_out?P:I):(t.strstart>t.block_start&&(D(t,!1),t.strm.avail_out),E)})),new Z(4,4,8,4,G),new Z(4,5,16,8,G),new Z(4,6,32,32,G),new Z(4,4,16,16,H),new Z(8,16,32,32,H),new Z(8,16,128,128,H),new Z(8,32,128,256,H),new Z(32,128,258,1024,H),new Z(32,258,258,4096,H)],i.deflateInit=function(t,e){return j(t,e,m,15,8,0)},i.deflateInit2=j,i.deflateReset=Y,i.deflateResetKeep=X,i.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?d:(t.state.gzhead=e,c):d},i.deflate=function(t,e){var i,n,a,l;if(!t||!t.state||5>8&255),z(n,n.gzhead.time>>16&255),z(n,n.gzhead.time>>24&255),z(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),z(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(z(n,255&n.gzhead.extra.length),z(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=s(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(z(n,0),z(n,0),z(n,0),z(n,0),z(n,0),z(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),z(n,3),n.status=T);else{var p=m+(n.w_bits-8<<4)<<8;p|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(p|=32),p+=31-p%31,n.status=T,M(n,p),0!==n.strstart&&(M(n,t.adler>>>16),M(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(a=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>a&&(t.adler=s(t.adler,n.pending_buf,n.pending-a,a)),V(t),a=n.pending,n.pending!==n.pending_buf_size));)z(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(t.adler=s(t.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=s(t.adler,n.pending_buf,n.pending-a,a)),V(t),a=n.pending,n.pending===n.pending_buf_size)){l=1;break}l=n.gzindexa&&(t.adler=s(t.adler,n.pending_buf,n.pending-a,a)),0===l&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=s(t.adler,n.pending_buf,n.pending-a,a)),V(t),a=n.pending,n.pending===n.pending_buf_size)){l=1;break}l=n.gzindexa&&(t.adler=s(t.adler,n.pending_buf,n.pending-a,a)),0===l&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&V(t),n.pending+2<=n.pending_buf_size&&(z(n,255&t.adler),z(n,t.adler>>8&255),t.adler=0,n.status=T)):n.status=T),0!==n.pending){if(V(t),0===t.avail_out)return n.last_flush=-1,c}else if(0===t.avail_in&&B(e)<=B(i)&&e!==h)return L(t,-5);if(666===n.status&&0!==t.avail_in)return L(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==u&&666!==n.status){var g=2===n.strategy?function(t,e){for(var i;;){if(0===t.lookahead&&(N(t),0===t.lookahead)){if(e===u)return E;break}if(t.match_length=0,i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&&(D(t,!1),0===t.strm.avail_out))return E}return t.insert=0,e===h?(D(t,!0),0===t.strm.avail_out?P:I):t.last_lit&&(D(t,!1),0===t.strm.avail_out)?E:O}(n,e):3===n.strategy?function(t,e){for(var i,r,n,a,s=t.window;;){if(t.lookahead<=S){if(N(t),t.lookahead<=S&&e===u)return E;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=C&&0t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=C?(i=o._tr_tally(t,1,t.match_length-C),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),i&&(D(t,!1),0===t.strm.avail_out))return E}return t.insert=0,e===h?(D(t,!0),0===t.strm.avail_out?P:I):t.last_lit&&(D(t,!1),0===t.strm.avail_out)?E:O}(n,e):r[n.level].func(n,e);if(g!==P&&g!==I||(n.status=666),g===E||g===P)return 0===t.avail_out&&(n.last_flush=-1),c;if(g===O&&(1===e?o._tr_align(n):5!==e&&(o._tr_stored_block(n,0,0,!1),3===e&&(R(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),V(t),0===t.avail_out))return n.last_flush=-1,c}return e!==h?c:n.wrap<=0?1:(2===n.wrap?(z(n,255&t.adler),z(n,t.adler>>8&255),z(n,t.adler>>16&255),z(n,t.adler>>24&255),z(n,255&t.total_in),z(n,t.total_in>>8&255),z(n,t.total_in>>16&255),z(n,t.total_in>>24&255)):(M(n,t.adler>>>16),M(n,65535&t.adler)),V(t),0=i.w_size&&(0===s&&(R(i.head),i.strstart=0,i.block_start=0,i.insert=0),p=new n.Buf8(i.w_size),n.arraySet(p,e,g-i.w_size,i.w_size,0),e=p,g=i.w_size),l=t.avail_in,u=t.next_in,h=t.input,t.avail_in=g,t.next_in=0,t.input=e,N(i);i.lookahead>=C;){for(r=i.strstart,o=i.lookahead-(C-1);i.ins_h=(i.ins_h<>>=y=b>>>24,g-=y,0===(y=b>>>16&255))A[o++]=65535&b;else{if(!(16&y)){if(0==(64&y)){b=f[(65535&b)+(p&(1<>>=y,g-=y),g<15&&(p+=k[r++]<>>=y=b>>>24,g-=y,!(16&(y=b>>>16&255))){if(0==(64&y)){b=m[(65535&b)+(p&(1<>>=y,g-=y,(y=o-a)>3,p&=(1<<(g-=x<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function _(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=d,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(p),e.distcode=e.distdyn=new r.Buf32(g),e.sane=1,e.back=-1,h):c}function v(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,_(t)):c}function b(t,e){var i,r;return t&&t.state?(r=t.state,e<0?(i=0,e=-e):(i=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15=a.wsize?(r.arraySet(a.window,e,i-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(n<(o=a.wsize-a.wnext)&&(o=n),r.arraySet(a.window,e,i-n,o,a.wnext),(n-=o)?(r.arraySet(a.window,e,i-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,i.check=o(i.check,N,2,0),x=y=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&y)<<8)+(y>>8))%31){t.msg="incorrect header check",i.mode=30;break}if(8!=(15&y)){t.msg="unknown compression method",i.mode=30;break}if(x-=4,V=8+(15&(y>>>=4)),0===i.wbits)i.wbits=V;else if(V>i.wbits){t.msg="invalid window size",i.mode=30;break}i.dmax=1<>8&1),512&i.flags&&(N[0]=255&y,N[1]=y>>>8&255,i.check=o(i.check,N,2,0)),x=y=0,i.mode=3;case 3:for(;x<32;){if(0===v)break t;v--,y+=p[m++]<>>8&255,N[2]=y>>>16&255,N[3]=y>>>24&255,i.check=o(i.check,N,4,0)),x=y=0,i.mode=4;case 4:for(;x<16;){if(0===v)break t;v--,y+=p[m++]<>8),512&i.flags&&(N[0]=255&y,N[1]=y>>>8&255,i.check=o(i.check,N,2,0)),x=y=0,i.mode=5;case 5:if(1024&i.flags){for(;x<16;){if(0===v)break t;v--,y+=p[m++]<>>8&255,i.check=o(i.check,N,2,0)),x=y=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&(v<(A=i.length)&&(A=v),A&&(i.head&&(V=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),r.arraySet(i.head.extra,p,m,A,V)),512&i.flags&&(i.check=o(i.check,p,A,m)),v-=A,m+=A,i.length-=A),i.length))break t;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===v)break t;for(A=0;V=p[m+A++],i.head&&V&&i.length<65536&&(i.head.name+=String.fromCharCode(V)),V&&A>9&1,i.head.done=!0),t.adler=i.check=0,i.mode=12;break;case 10:for(;x<32;){if(0===v)break t;v--,y+=p[m++]<>>=7&x,x-=7&x,i.mode=27;break}for(;x<3;){if(0===v)break t;v--,y+=p[m++]<>>=1)){case 0:i.mode=14;break;case 1:if(S(i),i.mode=20,6!==e)break;y>>>=2,x-=2;break t;case 2:i.mode=17;break;case 3:t.msg="invalid block type",i.mode=30}y>>>=2,x-=2;break;case 14:for(y>>>=7&x,x-=7&x;x<32;){if(0===v)break t;v--,y+=p[m++]<>>16^65535)){t.msg="invalid stored block lengths",i.mode=30;break}if(i.length=65535&y,x=y=0,i.mode=15,6===e)break t;case 15:i.mode=16;case 16:if(A=i.length){if(v>>=5,x-=5,i.ndist=1+(31&y),y>>>=5,x-=5,i.ncode=4+(15&y),y>>>=4,x-=4,286>>=3,x-=3}for(;i.have<19;)i.lens[G[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,z={bits:i.lenbits},D=s(0,i.lens,0,19,i.lencode,0,i.work,z),i.lenbits=z.bits,D){t.msg="invalid code lengths set",i.mode=30;break}i.have=0,i.mode=19;case 19:for(;i.have>>16&255,I=65535&F,!((O=F>>>24)<=x);){if(0===v)break t;v--,y+=p[m++]<>>=O,x-=O,i.lens[i.have++]=I;else{if(16===I){for(M=O+2;x>>=O,x-=O,0===i.have){t.msg="invalid bit length repeat",i.mode=30;break}V=i.lens[i.have-1],A=3+(3&y),y>>>=2,x-=2}else if(17===I){for(M=O+3;x>>=O)),y>>>=3,x-=3}else{for(M=O+7;x>>=O)),y>>>=7,x-=7}if(i.have+A>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=30;break}for(;A--;)i.lens[i.have++]=V}}if(30===i.mode)break;if(0===i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=30;break}if(i.lenbits=9,z={bits:i.lenbits},D=s(l,i.lens,0,i.nlen,i.lencode,0,i.work,z),i.lenbits=z.bits,D){t.msg="invalid literal/lengths set",i.mode=30;break}if(i.distbits=6,i.distcode=i.distdyn,z={bits:i.distbits},D=s(u,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,z),i.distbits=z.bits,D){t.msg="invalid distances set",i.mode=30;break}if(i.mode=20,6===e)break t;case 20:i.mode=21;case 21:if(6<=v&&258<=b){t.next_out=_,t.avail_out=b,t.next_in=m,t.avail_in=v,i.hold=y,i.bits=x,a(t,C),_=t.next_out,g=t.output,b=t.avail_out,m=t.next_in,p=t.input,v=t.avail_in,y=i.hold,x=i.bits,12===i.mode&&(i.back=-1);break}for(i.back=0;P=(F=i.lencode[y&(1<>>16&255,I=65535&F,!((O=F>>>24)<=x);){if(0===v)break t;v--,y+=p[m++]<>L)])>>>16&255,I=65535&F,!(L+(O=F>>>24)<=x);){if(0===v)break t;v--,y+=p[m++]<>>=L,x-=L,i.back+=L}if(y>>>=O,x-=O,i.back+=O,i.length=I,0===P){i.mode=26;break}if(32&P){i.back=-1,i.mode=12;break}if(64&P){t.msg="invalid literal/length code",i.mode=30;break}i.extra=15&P,i.mode=22;case 22:if(i.extra){for(M=i.extra;x>>=i.extra,x-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;P=(F=i.distcode[y&(1<>>16&255,I=65535&F,!((O=F>>>24)<=x);){if(0===v)break t;v--,y+=p[m++]<>L)])>>>16&255,I=65535&F,!(L+(O=F>>>24)<=x);){if(0===v)break t;v--,y+=p[m++]<>>=L,x-=L,i.back+=L}if(y>>>=O,x-=O,i.back+=O,64&P){t.msg="invalid distance code",i.mode=30;break}i.offset=I,i.extra=15&P,i.mode=24;case 24:if(i.extra){for(M=i.extra;x>>=i.extra,x-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){t.msg="invalid distance too far back",i.mode=30;break}i.mode=25;case 25:if(0===b)break t;if(A=C-b,i.offset>A){if((A=i.offset-A)>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=30;break}T=A>i.wnext?(A-=i.wnext,i.wsize-A):i.wnext-A,A>i.length&&(A=i.length),E=i.window}else E=g,T=_-i.offset,A=i.length;for(bv?(y=z[M+c[S]],B[R+c[S]]):(y=96,0),p=1<>O)+(g-=p)]=b<<24|y<<16|x|0,0!==g;);for(p=1<>=1;if(0!==p?(L&=p-1,L+=p):L=0,S++,0==--V[C]){if(C===A)break;C=e[i+c[S]]}if(T>>7)]}function z(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function M(t,e,i){t.bi_valid>f-i?(t.bi_buf|=e<>f-t.bi_valid,t.bi_valid+=i-f):(t.bi_buf|=e<>>=1,i<<=1,0<--e;);return i>>>1}function G(t,e,i){var r,n,o=new Array(g+1),a=0;for(r=1;r<=g;r++)o[r]=a=a+i[r-1]<<1;for(n=0;n<=e;n++){var s=t[2*n+1];0!==s&&(t[2*n]=N(o[s]++,s))}}function H(t){var e;for(e=0;e>1;1<=i;i--)X(t,o,i);for(n=l;i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],X(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=r,o[2*n]=o[2*i]+o[2*r],t.depth[n]=(t.depth[i]>=t.depth[r]?t.depth[i]:t.depth[r])+1,o[2*i+1]=o[2*r+1]=n,t.heap[1]=n++,X(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var i,r,n,o,a,s,l=e.dyn_tree,u=e.max_code,h=e.stat_desc.static_tree,c=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,m=e.stat_desc.max_length,_=0;for(o=0;o<=g;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,i=t.heap_max+1;i>=7;r>>=1)if(1&i&&0!==t.dyn_ltree[2*e])return n;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return o;for(e=32;e>>3,(s=t.static_len+3+7>>>3)<=a&&(a=s)):a=s=i+5,i+4<=a&&-1!==e?q(t,e,i,r):4===t.strategy||s===a?(M(t,2+(r?1:0),3),Y(t,k,A)):(M(t,4+(r?1:0),3),function(t,e,i,r){var n;for(M(t,e-257,5),M(t,i-1,5),M(t,r-4,4),n=0;n>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&i,t.last_lit++,0===e?t.dyn_ltree[2*i]++:(t.matches++,e--,t.dyn_ltree[2*(E[i]+u+1)]++,t.dyn_dtree[2*D(e)]++),t.last_lit===t.lit_bufsize-1},i._tr_align=function(t){M(t,2,3),F(t,_,k),function(t){16===t.bi_valid?(z(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,i){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,r){(function(t){!function(t,e){"use strict";if(!t.setImmediate){var i,r,n,o,a=1,s={},l=!1,u=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,i="[object process]"==={}.toString.call(t.process)?function(t){process.nextTick((function(){d(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,i=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=i,e}}()?(o="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",p,!1):t.attachEvent("onmessage",p),function(e){t.postMessage(o+e,"*")}):t.MessageChannel?((n=new MessageChannel).port1.onmessage=function(t){d(t.data)},function(t){n.port2.postMessage(t)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,function(t){var e=u.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):function(t){setTimeout(d,0,t)},h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;rthis.inputIndeterminate=t))},inputIndeterminate(t){this.$emit("update:indeterminate",t)},isActive(){this.indeterminate&&(this.inputIndeterminate=!1)}},methods:{genCheckbox(){const{title:t,...e}=this.attrs$;return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(r.Z,this.setTextColor(this.validationState,{props:{dense:this.dense,dark:this.dark,light:this.light}}),this.computedIcon),this.genInput("checkbox",{...e,"aria-checked":this.inputIndeterminate?"mixed":this.isActive.toString()}),this.genRipple(this.setTextColor(this.rippleState))])},genDefaultSlot(){return[this.genCheckbox(),this.genLabel()]}}})},31625:function(t,e,i){"use strict";i.d(e,{Z:function(){return u}});var r=i(17808),n=r.Z,o=i(44127),a=i(75352),s=i(74808),l=i(51767),u=n.extend({name:"v-file-input",model:{prop:"value",event:"change"},props:{chips:Boolean,clearable:{type:Boolean,default:!0},counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,placeholder:String,prependIcon:{type:String,default:"$file"},readonly:{type:Boolean,default:!1},showSize:{type:[Boolean,Number],default:!1,validator:t=>"boolean"===typeof t||[1e3,1024].includes(t)},smallChips:Boolean,truncateLength:{type:[Number,String],default:22},type:{type:String,default:"file"},value:{default:void 0,validator:t=>(0,a.TI)(t).every((t=>null!=t&&"object"===typeof t))}},computed:{classes(){return{...n.options.computed.classes.call(this),"v-file-input":!0}},computedCounterValue(){const t=this.multiple&&this.lazyValue?this.lazyValue.length:this.lazyValue instanceof File?1:0;if(!this.showSize)return this.$vuetify.lang.t(this.counterString,t);const e=this.internalArrayValue.reduce(((t,{size:e=0})=>t+e),0);return this.$vuetify.lang.t(this.counterSizeString,t,(0,a.XE)(e,1024===this.base))},internalArrayValue(){return(0,a.TI)(this.internalValue)},internalValue:{get(){return this.lazyValue},set(t){this.lazyValue=t,this.$emit("change",this.lazyValue)}},isDirty(){return this.internalArrayValue.length>0},isLabelActive(){return this.isDirty},text(){return this.isDirty||!this.persistentPlaceholder&&!this.isFocused&&this.hasLabel?this.internalArrayValue.map((t=>{const{name:e="",size:i=0}=t,r=this.truncateText(e);return this.showSize?`${r} (${(0,a.XE)(i,1024===this.base)})`:r})):[this.placeholder]},base(){return"boolean"!==typeof this.showSize?this.showSize:void 0},hasChips(){return this.chips||this.smallChips}},watch:{readonly:{handler(t){!0===t&&(0,s.N6)("readonly is not supported on ",this)},immediate:!0},value(t){const e=this.multiple?t:t?[t]:[];(0,a.vZ)(e,this.$refs.input.files)||(this.$refs.input.value="")}},methods:{clearableCallback(){this.internalValue=this.multiple?[]:null,this.$refs.input.value=""},genChips(){return this.isDirty?this.text.map(((t,e)=>this.$createElement(o.Z,{props:{small:this.smallChips},on:{"click:close":()=>{const t=this.internalValue;t.splice(e,1),this.internalValue=t}}},[t]))):[]},genControl(){const t=n.options.methods.genControl.call(this);return this.hideInput&&(t.data.style=(0,l.y0)(t.data.style,{display:"none"})),t},genInput(){const t=n.options.methods.genInput.call(this);return t.data.attrs.multiple=this.multiple,delete t.data.domProps.value,delete t.data.on.input,t.data.on.change=this.onInput,[this.genSelections(),t]},genPrependSlot(){if(!this.prependIcon)return null;const t=this.genIcon("prepend",(()=>{this.$refs.input.click()}));return this.genSlot("prepend","outer",[t])},genSelectionText(){const t=this.text.length;return t<2?this.text:this.showSize&&!this.counter?[this.computedCounterValue]:[this.$vuetify.lang.t(this.counterString,t)]},genSelections(){const t=[];return this.isDirty&&this.$scopedSlots.selection?this.internalArrayValue.forEach(((e,i)=>{this.$scopedSlots.selection&&t.push(this.$scopedSlots.selection({text:this.text[i],file:e,index:i}))})):t.push(this.hasChips&&this.isDirty?this.genChips():this.genSelectionText()),this.$createElement("div",{staticClass:"v-file-input__text",class:{"v-file-input__text--placeholder":this.placeholder&&!this.isDirty,"v-file-input__text--chips":this.hasChips&&!this.$scopedSlots.selection}},t)},genTextFieldSlot(){const t=n.options.methods.genTextFieldSlot.call(this);return t.data.on={...t.data.on||{},click:t=>{t.target&&"LABEL"===t.target.nodeName||this.$refs.input.click()}},t},onInput(t){const e=[...t.target.files||[]];this.internalValue=this.multiple?e:e[0],this.initialValue=this.internalValue},onKeyDown(t){this.$emit("keydown",t)},truncateText(t){if(t.lengththis.valueComparator(e,t))):void 0===this.trueValue||void 0===this.falseValue?t?this.valueComparator(t,e):Boolean(e):this.valueComparator(e,this.trueValue)},isDirty(){return this.isActive},rippleState(){return this.isDisabled||this.validationState?this.validationState:void 0}},watch:{inputValue(t){this.lazyValue=t,this.hasColor=t}},methods:{genLabel(){const t=r.Z.options.methods.genLabel.call(this);return t?(t.data.on={click:s},t):t},genInput(t,e){return this.$createElement("input",{attrs:Object.assign({"aria-checked":this.isActive.toString(),disabled:this.isDisabled,id:this.computedId,role:t,type:t},e),domProps:{value:this.value,checked:this.isActive},on:{blur:this.onBlur,change:this.onChange,focus:this.onFocus,keydown:this.onKeydown,click:s},ref:"input"})},onClick(t){this.onChange(),this.$emit("click",t)},onChange(){if(!this.isInteractive)return;const t=this.value;let e=this.internalValue;if(this.isMultiple){Array.isArray(e)||(e=[]);const i=e.length;e=e.filter((e=>!this.valueComparator(e,t))),e.length===i&&e.push(t)}else e=void 0!==this.trueValue&&void 0!==this.falseValue?this.valueComparator(e,this.trueValue)?this.falseValue:this.trueValue:t?this.valueComparator(e,t)?null:t:!e;this.validate(!0,e),this.internalValue=e,this.hasColor=e},onFocus(t){this.isFocused=!0,this.$emit("focus",t)},onBlur(t){this.isFocused=!1,this.$emit("blur",t)},onKeydown(t){}}})},24563:function(t,e,i){"use strict";var r=i(18241),n=i(20629);const o=(0,n._p)("projectstate");e["Z"]={title:"ui",mixins:[r.Z],computed:{...o.mapGetters(["allpersons"]),checkALL(){return!0}},methods:{searchid(t){try{return this.allpersons.find((e=>e.role.id===t)).user.id}catch{return 0}},respons(t){let e=this.searchid(t);if(e>0){let t=this.searchUserFullName(e,this.allpersons);return t}return 0},exhibitor(t){let e=this.allpersons.filter((e=>e.role.id===t));return e}}}},1313:function(t,e){"use strict";e["Z"]={title:"wtaps",data:()=>({show_info:!0}),methods:{deletefile(t){t.length>0?t.forEach((t=>{this.ws.send({action:"deletefile",payload:{id:t.id,filepath:t.filepath}})})):this.ws.send({action:"deletefile",payload:{id:t.id,filepath:t.filepath}})},allCard(){this.show_info=!this.show_info,this.chatview=this.show_info}}}},54417:function(t,e,i){"use strict";i.d(e,{Z:function(){return f}});var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-row",{staticClass:"h-0"},[i("v-col",{staticClass:"flex-col h-100"},[i("DxPieChart",{staticClass:"flex-col h-100",attrs:{id:"pie","data-source":t.data,palette:"Bright",type:"doughnut","inner-radius":.4},on:{"point-click":function(e){return t.pointClickHandler(e)},"legend-click":function(e){return t.legendClickHandler(e)}}},[i("DxTitle",{attrs:{text:t.title,font:{size:18}}}),i("DxSeries",{attrs:{"argument-field":"title","value-field":"percent"}},[i("DxLabel",{attrs:{visible:!0,"customize-text":t.formatLabel,format:"fixedPoint"}},[i("DxConnector",{attrs:{visible:!0,width:.5}})],1),i("DxSmallValuesGrouping",{attrs:{threshold:4.5,mode:"smallValueThreshold"}})],1),i("DxLegend",{attrs:{"horizontal-alignment":"center","vertical-alignment":"bottom"}}),i("DxExport",{attrs:{enabled:!0,"file-name":t.title,"printing-enabled":!1}})],1)],1)],1)},n=[],o=i(90520),a=i.n(o),s={name:"work-pie-chart",components:{DxTitle:o.DxTitle,DxPieChart:a(),DxSeries:o.DxSeries,DxLabel:o.DxLabel,DxConnector:o.DxConnector,DxSmallValuesGrouping:o.DxSmallValuesGrouping,DxLegend:o.DxLegend,DxExport:o.DxExport},props:{title:{type:String,default:""},data:{type:Array,default:()=>[]}},methods:{formatLabel(t){return`${t.argumentText}: ${t.valueText}%`},pointClickHandler(t){this.toggleVisibility(t.target)},legendClickHandler(t){const e=t.target,i=t.component.getAllSeries()[0].getPointsByArg(e)[0];this.toggleVisibility(i)},toggleVisibility(t){t.isVisible()?t.hide():t.show()}}},l=s,u=i(43736),h=i(43453),c=i.n(h),d=i(60266),p=i(11713),g=(0,u.Z)(l,r,n,!1,null,null,null),f=g.exports;c()(g,{VCol:d.Z,VRow:p.Z})},70606:function(t,e,i){"use strict";i.d(e,{Z:function(){return P}});var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("row-pirow",{attrs:{title:"История:"},scopedSlots:t._u([{key:"leftcol",fn:function(){return[t._v(" "+t._s(t.history.slice(0,5).length>0?"":"История отсутсвует")+" ")]},proxy:!0}])}),t.history.slice(0,5).length>0?i("div",[i("v-row",{staticClass:"flex-grow-0 mt-0"},[i("v-col",[i("v-simple-table",{attrs:{dense:""},scopedSlots:t._u([{key:"default",fn:function(){return[i("tbody",t._l(t.history.slice(0,5),(function(e,r){return i("tr",{key:r,staticClass:"pointer",on:{click:function(e){e.stopPropagation(),t.historydetail=!0}}},[i("td",{staticClass:"px-0",attrs:{width:"12%",height:"1%"}},[t._v(" "+t._s(t.momentdatetime(e.new.createdate))+" ")]),0==t.indx?i("td",{attrs:{width:"30%",height:"1%"}},[t._v(" "+t._s(t.factordict[e.new.level])),i("br"),t._v(" "+t._s(e.new.info.name)+" ")]):t._e(),i("td",{attrs:{width:"15%",height:"1%"}},[t._v(" "+t._s(e.new.author.sn)+" ")]),i("td",{attrs:{width:"20%",height:"1%"}},[t._v(" "+t._s(e.new.action.name)+" ")]),i("td",{attrs:{id:"td_history",height:"1%"}},[i("v-textarea",{staticClass:"unip",attrs:{id:"something","background-color":"transparent",readonly:"","hide-details":"","auto-grow":"",rows:"1",solo:"",flat:"",value:e.new.comment}})],1)])})),0)]},proxy:!0}],null,!1,3229652371)})],1)],1)],1):t._e(),i("v-dialog",{model:{value:t.historydetail,callback:function(e){t.historydetail=e},expression:"historydetail"}},[i("v-card",[i("v-card-title",{staticClass:"text-h5"},[t._v(" История "+t._s(t.todo.name)+" ")]),i("v-card-text",t._l(t.history,(function(e){return i("v-row",{key:e.id},[i("v-col",{attrs:{cols:"2"}},[t._v(" "+t._s(t.momentdatetime(e.new.createdate))+" ")]),0==t.indx?i("v-col",[t._v(" "+t._s(t.factordict[e.new.level])+":"),i("br"),i("strong",[t._v(t._s(e.new.info.name))])]):t._e(),i("v-col",[i("span",{staticClass:"pointer",on:{click:function(i){return t.showuserinfo(e.new.author.id)}}},[t._v(t._s(e.new.author.sn))])]),i("v-col",[t._v(" "+t._s(e.new.action.name)+" ")]),i("v-col",t._l(Object.entries(e.new.info),(function(r){var n=r[0],o=r[1];return i("div",{key:n},[["status"].includes(n)&&void 0!=e.old&&o.id!=e.old.info[n].id?i("div",[t._v(t._s(t.dictoffields[n])+":"+t._s(e.old.info[n].name)+" "),i("v-icon",{attrs:{color:"btns","x-small":""}},[t._v("mdi-arrow-right")]),t._v(t._s(o.name))],1):["status"].includes(n)&&void 0==e.old?i("div",[t._v(t._s(t.dictoffields[n])+": "),i("v-icon",{attrs:{color:"btns","x-small":""}},[t._v("mdi-plus")]),t._v(" "+t._s(null==o?"НЕ СУЩЕСТВУЕТ":o.name))],1):["responsible"].includes(n)&&void 0!=e.old&&o.id!=e.old.info[n].id?i("div",[t._v(t._s(t.dictoffields[n])+":"),i("span",{staticClass:"pointer",on:{click:function(i){return t.showuserinfo(e.old.info[n].id)}}},[t._v(t._s(e.old.info[n].sn)+" ")]),i("v-icon",{attrs:{color:"btns","x-small":""}},[t._v("mdi-arrow-right")]),i("span",{staticClass:"pointer",on:{click:function(e){return t.showuserinfo(o.id)}}},[t._v(t._s(o.sn)+" ")])],1):["responsible"].includes(n)&&void 0==e.old?i("div",[t._v(t._s(t.dictoffields[n])+":"),i("v-icon",{attrs:{color:"btns","x-small":""}},[t._v("mdi-plus")]),i("span",{staticClass:"pointer",on:{click:function(e){return t.showuserinfo(o.id)}}},[t._v(t._s(o.sn))])],1):["datestart","dateend"].includes(n)&&void 0!=e.old&&o!=e.old.info[n]?i("div",[t._v(t._s(t.dictoffields[n])+":"+t._s(t.momentedDay(e.old.info[n]))+" "),i("v-icon",{attrs:{color:"btns","x-small":""}},[t._v("mdi-arrow-right")]),t._v(" "+t._s(t.momentedDay(o))+" ")],1):["datestart","dateend"].includes(n)&&void 0==e.old?i("div",[t._v(t._s(t.dictoffields[n])+": "),i("v-icon",{attrs:{color:"btns","x-small":""}},[t._v("mdi-plus")]),t._v(" "+t._s(t.momentedDay(o))+" ")],1):"string"!=typeof o&&"number"!=typeof o||void 0==e.old||o==e.old.info[n]?"string"!=typeof o&&"number"!=typeof o||void 0!=e.old?t._e():i("div",[t._v(t._s(t.dictoffields[n])+": "),i("v-icon",{attrs:{color:"btns","x-small":""}},[t._v("mdi-plus")]),t._v(t._s(o))],1):i("div",[t._v(t._s(t.dictoffields[n])+": "+t._s(e.old.info[n])+" "),i("v-icon",{attrs:{color:"btns","x-small":""}},[t._v("mdi-arrow-right")]),t._v(t._s(o))],1)])})),0),i("v-col",[t._v(" "+t._s(e.new.comment)+" ")])],1)})),1),i("v-card-actions",[i("v-spacer"),i("v-btn",{attrs:{color:"green darken-1",text:""},on:{click:function(e){t.historydetail=!1}}},[t._v(" Закрыть ")])],1)],1)],1)],1)},n=[],o=i(20629),a=i(30381),s=i.n(a),l=i(18241),u=i(67761);const{mapGetters:h}=(0,o._p)("auth"),c=(0,o._p)("workstate"),d=(0,o._p)("taskstate"),p=(0,o._p)("projectstate");var g={name:"history-min-card",mixins:[l.Z],components:{rowPirow:u.Z},props:{level:{type:Number,default:1},indx:{type:Number,default:0}},data(){return{todo:{},historydetail:!1,factordict:["","Проект","Задача","Работа","Поручение"],level_helper:[{},{text:"Проект",store:"getProject"},{text:"Задача",store:"gettasks"},{text:"Работа",store:"getworks"},{text:"Поручение",store:"getworks"}],dictoffields:{longname:"Название",name:"Краткое название",responsible:"Ответственный",datestart:"Начало",dateend:"Окончание",description:"Описание",status:"Статус",filepath:"Загружен",filedel:"Удален",iditit:"Результат",difficult:"Сложность"}}},mounted(){s().locale("ru"),console.log(this.gettasks,"TATATASKS")},computed:{...h(["getUser"]),...c.mapGetters(["getworks"]),...p.mapGetters(["allpersons","getProject"]),...d.mapGetters(["gettasks"]),history(){return 4==this.level?(this.todo=this.getworks.work_assignment[this.indx-1],this.todo.history=this.getworks.history.filter((t=>4==t.level&&t.assignment==this.getworks.work_assignment[this.indx-1].id))):this.todo=this[this.level_helper[this.level].store],this.historydetailer()}},methods:{historydetailer(){let t=[],e=["","project","task","work","assignment"];return this.todo.history.forEach(((i,r)=>{let n={new:i,old:this.todo.history.slice(r+1).find((t=>i.level==t.level&&t[e[t.level]]===i[e[i.level]]))};t.push(n)})),console.log(t,"DETAL"),t},momentdatetime(t){return s()(t).format("HH:mm DD.MM.YYYY")},showuserinfo(t){this.$emit("showuserinfo",t)}}},f=g,m=i(43736),_=i(43453),v=i.n(_),b=i(16190),y=i(34145),x=i(54886),w=i(60266),C=i(34061),S=i(4324),k=i(11713),A=i(9449),T=i(13687),E=i(92648),O=(0,m.Z)(f,r,n,!1,null,null,null),P=O.exports;v()(O,{VBtn:b.Z,VCard:y.Z,VCardActions:x.h7,VCardText:x.ZB,VCardTitle:x.EB,VCol:w.Z,VDialog:C.Z,VIcon:S.Z,VRow:k.Z,VSimpleTable:A.Z,VSpacer:T.Z,VTextarea:E.Z})},55322:function(t,e,i){"use strict";i.d(e,{Z:function(){return v}});var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-menu",{attrs:{"close-on-content-click":!1,"offset-y":"","max-width":"300"},scopedSlots:t._u([{key:"activator",fn:function(e){var r=e.on,n=e.attrs;return[i("div",t._g(t._b({},"div",n,!1),r),[t._t("default")],2)]}}],null,!0),model:{value:t.menu,callback:function(e){t.menu=e},expression:"menu"}},[i("v-card",{staticClass:"flex-col flex-grow-1 py-3 pb-1 pl-2",attrs:{color:"inyand","elevation-3":""}},t._l(t.daysrok,(function(e,r){return i("v-list",{key:r,attrs:{dense:""}},[i("v-list-item",{attrs:{dense:""}},[i("v-list-item-icon",{staticClass:"mr-2 my-0"},[i("v-icon",{attrs:{color:e.color,dense:""}},[t._v(" mdi-checkbox-blank ")])],1),i("v-list-item-content",{staticClass:"pb-1 pt-0"},[i("v-list-item-title",[t._v(" "+t._s(e.text)+" ")])],1)],1)],1)})),1)],1)},n=[],o={name:"periodInfo",props:{srok:{type:Number,requiered:!0}},data:()=>({menu:!1,prinfo:[]}),computed:{daysrok(){let t="дней";return[2,3,4].includes(this.srok)?t=" дня":[1].includes(this.srok)&&(t=" день"),this.prinfo=[{color:"prliniarelse",text:"до окончания более "+this.srok+" "+t},{color:"prliniar85",text:"до окончания меньше "+this.srok+" "+t},{color:"prliniar100",text:"срок сегодня или просрочено"},{color:"prliniarstop",text:"проект приостановлен"}],this.prinfo}}},a=o,s=i(43736),l=i(43453),u=i.n(l),h=i(34145),c=i(4324),d=i(65808),p=i(54525),g=i(79500),f=i(74611),m=i(44568),_=(0,s.Z)(a,r,n,!1,null,null,null),v=_.exports;u()(_,{VCard:h.Z,VIcon:c.Z,VList:d.Z,VListItem:p.Z,VListItemContent:g.km,VListItemIcon:f.Z,VListItemTitle:g.V9,VMenu:m.Z})},53502:function(t,e,i){"use strict";i.d(e,{Z:function(){return P}});var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"flex-col d-flex flex-grow-1"},[i("v-row",{staticClass:"flex-grow-0 align-center"},[(""+t.statid).includes(t.status)?i("v-col",{staticClass:"py-0",attrs:{id:"fileinput",xl:"6",lg:"6",md:"6"}},[i("v-file-input",{staticClass:"text-caption font-weight-normal inputext",attrs:{dense:"",flat:"","hide-details":"","show-size":1e3,multiple:"",placeholder:"Выберите файлы","prepend-icon":"mdi-paperclip","clear-icon":"mdi-close"},scopedSlots:t._u([{key:"append-outer",fn:function(){return[i("MyIco",{attrs:{disabled:null===t.filesinput||0==t.filesinput.length,icons:"mdi-chevron-double-up"},on:{click:t.uploadfile}})]},proxy:!0}],null,!1,1417477694),model:{value:t.filesinput,callback:function(e){t.filesinput=e},expression:"filesinput"}})],1):t._e(),(""+t.statid).includes(t.status)?i("v-divider",{attrs:{vertical:""}}):t._e(),i("v-col",{staticClass:"flex-grow-0 py-2"},[i("v-icon",{attrs:{color:"btns",dense:""}},[t._v(" mdi-file-multiple ")])],1),i("v-col",{staticClass:"py-1 text-subtitle-2 font-weight-regular"},[t._v(" Всего файлов загружено: "+t._s(t.files.filter((function(e){return"1"==e.visible[t.level-1]&&e[t.levelkey[t.level]].id==t.currentid})).length)+" ")])],1),i("v-row",{staticClass:"flex-grow-0 sticky px-2"},[i("v-col",{staticClass:"flex-col d-flex pa-0"},[i("v-divider")],1)],1),i("v-row",{staticClass:"overflow-auto h-0"},[i("v-col",{staticClass:"pa-0"},[i("v-list",{staticClass:"py-0",attrs:{dense:""}},t._l(t.files,(function(e,r){return i("div",{key:r,staticClass:"inyand"},["1"!=e.visible[t.level-1]&&e.sender.id!=t.getUser.id||!t.filepainter(e)?t._e():i("v-list-item",{staticClass:"pa-0"},[i("v-col",{staticClass:"pb-0 pt-2"},[i("v-list-item-content",{staticClass:"py-0"},[i("v-list-item-title",{staticClass:"pointer",on:{click:function(i){return i.preventDefault(),t.downloadItem(e)}}},[t._v(" "+t._s(t.filename(e.filepath))+" ")]),i("v-list-item-subtitle",[t._v(" "+t._s(t.momentedtime(e.datetime))+" ")])],1)],1),i("v-list-item-action-text",{staticClass:"mx-5 ml-8"},[t._v(" Скачано: "+t._s(e.counter)+" ")]),i("v-list-item-action-text",{staticClass:"ml-0 mr-1"},[t._v(" Загрузил(а): "+t._s(t.reName(e.sender))+" ")]),i("v-list-item-action",{staticClass:"my-0 mr-1"},["1"!=e.visible[t.level-1]&&e.sender.id!=t.getUser.id||!t.filepainter(e)?t._e():i("v-menu",{ref:"filemenu",refInFor:!0,attrs:{"close-on-content-click":!1,absolute:"","offset-y":"","max-width":"300"},scopedSlots:t._u([{key:"activator",fn:function(e){var r=e.on,n=e.attrs;return[i("v-btn",t._g(t._b({attrs:{icon:""}},"v-btn",n,!1),r),[i("v-icon",{attrs:{small:"",color:"greym lighten-1"}},[t._v("mdi-menu")])],1)]}}],null,!0)},[i("v-card",{staticClass:"flex-col d-flex flex-grow-1",attrs:{color:"inyand","elevation-1":""}},[i("div",{staticClass:"d-flex flex-col flex-grow-1"},[i("v-row",[t.getUser.id==e.sender.id?i("v-col",[i("v-list",{staticClass:"pa-0",attrs:{color:"inyand"}},[i("v-list-item",{staticClass:"pl-0 pr-1"},[i("v-list-item-avatar",{staticClass:"mr-1"},[i("v-icon",{attrs:{color:"btns"}},[t._v("mdi-file")])],1),i("v-list-item-content",{staticClass:"pb-0"},[i("v-list-item-title",{staticClass:"caption font-weight-bold"},[t._v(" "+t._s(t.filename(e.filepath))+" ")]),i("v-list-item-subtitle",{staticClass:"caption"},[t._v(" "+t._s(t.reName(e.sender))+" ")]),i("v-list-item-subtitle",{staticClass:"caption"},[t._v(" "+t._s(t.momentedtime(e.datetime))+" ")])],1),i("v-list-item-action",{staticClass:"align-self-end mb-0"},[i("v-icon",{attrs:{color:"btns",small:""},on:{click:function(i){return t.deleter(e)}}},[t._v(" mdi-delete ")])],1)],1)],1)],1):t._e()],1),i("v-row",{staticClass:"ma-1 pa-1 main_theme"},t._l(e.visible,(function(r,n){return i("v-col",{key:n,staticClass:"caption pa-0",attrs:{xl:"6",lg:"6",md:"6",sm:"6",cols:"6"}},[i("v-row",{staticClass:"pa-2 align-items-center inyand"},[i("v-col",{staticClass:"flex-grow-0 pa-2 "},[i("v-container",{staticClass:"pa-0",attrs:{id:"cheks",fluid:"","hide-details":""}},[i("v-checkbox",{staticClass:"mt-0 pt-0",attrs:{disabled:null===e[t.textlevels[n].field],color:"btns","hide-details":"",dense:"","true-value":"1","false-value":"0"},on:{click:function(i){return t.$emit("VisSwitcher",e)}},model:{value:e.visible[n],callback:function(i){t.$set(e.visible,n,i)},expression:"file.visible[ind]"}})],1)],1),i("v-col",{staticClass:"pa-0"},[i("span",{class:null===e[t.textlevels[n].field]?"disableds--text":""},[t._v(" "+t._s(t.textlevels[n].text)+" ")])])],1)],1)})),1)],1)])],1)],1)],1)],1)})),0)],1)],1),i("v-row",{staticClass:"flex-grow-0 pb-2 px-2"},[i("v-col",{staticClass:"pa-0"},[i("v-divider")],1)],1)],1)},n=[],o=i(45296),a=i(20629),s=i(18241);const{mapGetters:l}=(0,a._p)("auth");var u={name:"filelist",mixins:[s.Z],props:{files:{type:Array,default:()=>[]},level:{type:Number,default:1},status:{type:Number,default:0},currentid:{type:Number,default:0},statid:{type:Array,default:()=>[1,2,3]}},computed:{...l(["getUser"])},data(){return{levelkey:["","project","task","work","assignment"],filesinput:null,textlevels:[{field:"project",text:"В проекте"},{field:"task",text:"В задаче"},{field:"work",text:"В работе"},{field:"assignment",text:"В поручении"}]}},methods:{deleter(t){this.$refs.filemenu.forEach((t=>t.save())),this.$emit("deletefile",t)},async downloadItem(t){let e=await o.be.get("/main/getfile/?id="+t.id);const i=new Blob([e.data]);document.createElement("a");var r=window.URL.createObjectURL(i),n=document.createElement("a");n.href=r,n.download=this.filename(t.filepath),n.click(),n.remove()},uploadfile(){let t=new FormData;this.filesinput.forEach((e=>{t.append("file",e)})),this.filesinput=null,this.$emit("uploadfile",t)},filepainter(t){return console.log(this.currentid,this.level,this.files),null!=t[this.levelkey[this.level]]&&t[this.levelkey[this.level]].id==this.currentid}}},h=u,c=i(43736),d=i(43453),p=i.n(d),g=i(16190),f=i(34145),m=i(63486),_=i(60266),v=i(82118),b=i(99223),y=i(31625),x=i(4324),w=i(65808),C=i(54525),S=i(45187),k=i(79500),A=i(66900),T=i(44568),E=i(11713),O=(0,c.Z)(h,r,n,!1,null,null,null),P=O.exports;p()(O,{VBtn:g.Z,VCard:f.Z,VCheckbox:m.Z,VCol:_.Z,VContainer:v.Z,VDivider:b.Z,VFileInput:y.Z,VIcon:x.Z,VList:w.Z,VListItem:C.Z,VListItemAction:S.Z,VListItemActionText:k.k4,VListItemAvatar:A.Z,VListItemContent:k.km,VListItemSubtitle:k.oZ,VListItemTitle:k.V9,VMenu:T.Z,VRow:E.Z})},87941:function(t,e,i){"use strict";i.d(e,{Z:function(){return $}});var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-row",{staticClass:"overflow-auto overflow-x-hidden h-0 mx-2"},[i("v-col",{staticClass:"pa-1 px-2"},[i("v-list",{attrs:{dense:""}},t._l(t.todo,(function(e,r){return i("div",{key:r,staticClass:"pt-2"},[i("v-list-item",{staticClass:"pl-1 pr-0"},[i("v-list-item-content",{staticClass:"pa-0 colorfont"},[i("v-list-item-title",{staticClass:" text-body-2 pointer",on:{click:function(e){return t.listchangetab(r)}}},[t._v(" "+t._s(e.name)+" ")]),i("v-row",[i("v-col",{staticClass:"pb-0 text-nowrap "},[i("span",{staticClass:"caption pointer",on:{click:function(i){return t.$emit("showuserinfo",e.responsible.id)}}},[t._v(" ("+t._s(e.responsible.sn)+") ")]),i("span",{staticClass:"caption "},[t._v(" "+t._s(e.status.name)+" ")])]),i("v-col",{staticClass:"pb-0 flex-grow-1 text-nowrap"},[i("v-row",{staticClass:"mr-0 justify-end"},[i("v-col",{staticClass:"gaps flex-grow-0 pt-3 px-0"},[i("v-menu",{attrs:{"min-width":"600px","close-on-content-click":!1,"close-on-click":!1},scopedSlots:t._u([{key:"activator",fn:function(r){var n=r.on,o=r.attrs;return[i("div",t._g(t._b({directives:[{name:"show",rawName:"v-show",value:e.status.id<5,expression:"val.status.id<5"}]},"div",o,!1),n),[i("MyIco",{attrs:{size:"large",color:3!=e.status.id?"paused":"open_icons",icons:3!=e.status.id?"mdi-motion-pause-outline":"mdi-play-speed",tooltip:!0,text_tool:3!=e.status.id?"Приостановить":"Взять в работу"}})],1)]}}],null,!0),model:{value:e.menu,callback:function(i){t.$set(e,"menu",i)},expression:"val.menu"}},[i("DialogNewAssigment",{attrs:{text:3!=e.status.id?"Приостановить ":"Открыть "},scopedSlots:t._u([{key:"textarea",fn:function(){return[i("v-textarea",{staticClass:"py-0 inputext",attrs:{"background-color":"inyand","auto-grow":"",rows:"3",solo:"",flat:"",placeholder:"Комментарий"},model:{value:t.comment,callback:function(e){t.comment=e},expression:"comment"}})]},proxy:!0},{key:"btn2",fn:function(){return[i("BtnsOut",{attrs:{title:3!=e.status.id?"Приостановить":"Открыть",width:160},on:{click:function(i){3!=e.status.id?t.confirmation({elm:e,res:3,text:"Приостановлено"}):t.confirmation({elm:e,res:2,text:"Открыто"})}}})]},proxy:!0}],null,!0)})],1)],1),i("v-col",{directives:[{name:"show",rawName:"v-show",value:[4,5].includes(e.status.id),expression:"[4,5].includes(val.status.id)"}],staticClass:" flex-grow-0 px-0 pl-1"},[i("v-menu",{staticClass:"menu2",attrs:{"min-width":"1400px","close-on-click":!1,"close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(r){var n=r.on,o=r.attrs;return[i("div",t._g(t._b({directives:[{name:"show",rawName:"v-show",value:[4,5].includes(e.status.id),expression:"[4,5].includes(val.status.id)"}]},"div",o,!1),n),[i("MyIco",{attrs:{size:"large",color:5==e.status.id?"open_icons":"close_icons",icons:5==e.status.id?"mdi-progress-check":"mdi-progress-question",tooltip:!0,text_tool:5==e.status.id?"Выполнено":"Утвердить/отклонить"}})],1)]}}],null,!0),model:{value:e.action_confirm,callback:function(i){t.$set(e,"action_confirm",i)},expression:"val.action_confirm"}},[i("DialogNewAssigment",{attrs:{min_height:500},scopedSlots:t._u([{key:"texts",fn:function(){return[i("div",{staticClass:"d-flex justify-space-between"},[i("span",[t._v(t._s(e.name))]),i("v-icon",{on:{click:function(t){e.action_confirm=!1}}},[t._v(" mdi-close ")])],1)]},proxy:!0},{key:"textarea",fn:function(){return[i("v-row",{staticClass:"flex-grow-1 "},[i("v-col",{staticClass:"d-flex flex-col"},[i("v-row",{staticClass:"flex-grow-0"},[i("v-col",{staticClass:"py-0"},[t._v(" Комментарий исполнителю ")])],1),i("v-row",[i("v-col",{staticClass:"py-0 d-flex flex-col"},[i("v-textarea",{staticClass:"py-0 inputext flex-grow-1",attrs:{"background-color":"inyand","auto-grow":"",solo:"",placeholder:"Введите текст"},model:{value:t.comment,callback:function(e){t.comment=e},expression:"comment"}})],1)],1),i("v-row",{staticClass:"flex-grow-0"},[i("v-col",{staticClass:"py-0"},[i("span",[t._v("Комментарий для отчетности")])]),i("v-col",{staticClass:"py-0 flex-grow-0 text-nowrap"},[i("v-checkbox",{staticClass:"ma-0",attrs:{"hide-details":"",label:"Отправлять"},model:{value:t.send_up,callback:function(e){t.send_up=e},expression:"send_up"}})],1)],1),i("v-row",[i("v-col",{staticClass:"py-0"},[i("v-textarea",{staticClass:"py-0 inputext",attrs:{"background-color":"inyand","auto-grow":"",solo:"",placeholder:"Введите текст"},model:{value:t.comment_up,callback:function(e){t.comment_up=e},expression:"comment_up"}})],1)],1),i("v-row",{staticClass:"flex-grow-0"},[i("v-col",{},[i("v-row",{staticClass:"flex-grow-0"},[i("v-col",{},[i("span",{staticClass:"caption text--secondary"},[t._v(t._s(t.level_helper[t.level].r_text))]),i("br"),i("span",{staticClass:"pt-4 pointer",on:{click:function(i){return t.$emit("showuserinfo",e.responsible.id)}}},[t._v(" "+t._s(e.responsible.sn)+" "+t._s(e.responsible.givenName)+" ")])]),i("v-col",{staticClass:"flex-grow-0 text-nowrap"},[i("span",{staticClass:"caption text--secondary"},[t._v("Оцените")]),i("v-rating",{attrs:{color:"warning","empty-icon":"mdi-star-outline","full-icon":"mdi-star","half-icon":"mdi-star-half-full",hover:"",length:"5",size:"18"},model:{value:t.r_rating,callback:function(e){t.r_rating=e},expression:"r_rating"}})],1)],1)],1)],1)],1),i("v-col",{staticClass:"flex-col d-flex"},[i("v-row",{staticClass:"flex-grow-1 h-0 overflow-auto overflow-x"},[i("v-col",[i("v-timeline",t._l(t.history(e.id),(function(e){return i("v-timeline-item",{key:e.id,attrs:{large:""},scopedSlots:t._u([{key:"icon",fn:function(){return[i("v-avatar",[i("img",{attrs:{src:"http://"+t.serverurl+e.author.avatar}})])]},proxy:!0},{key:"opposite",fn:function(){return[i("span",{staticClass:"pointer",on:{click:function(i){return t.$emit("showuserinfo",e.author.id)}}},[t._v(t._s(e.author.sn))])]},proxy:!0}],null,!0)},[i("div",{staticClass:"caption text--disabled "},[t._v("Создано:"+t._s(t.momentedtime(e.createdate)))]),i("v-card",{staticClass:"elevation-2"},[i("v-card-text",{staticClass:"pb-0"},[!Object.is(e.comment,null)&&e.comment.length>0?i("p",[t._v(t._s(e.comment))]):t._e(),i("span",{staticClass:"caption text--secondary"},[t._v(t._s(e.action.name)+"->"+t._s(e.info.status.name))])])],1)],1)})),1)],1)],1)],1)],1)]},proxy:!0},{key:"btn1",fn:function(){return[i("BtnsOut",{attrs:{title:"Отклонить"},on:{click:function(i){return t.confirmation({elm:e,res:2,text:"Отклонена"})}}})]},proxy:!0},{key:"btn2",fn:function(){return[i("BtnsOut",{attrs:{title:"Принять"},on:{click:function(i){return t.confirmation({elm:e,res:5,text:"Принята"})}}})]},proxy:!0}],null,!0)})],1)],1)],1)],1)],1),i("v-row",{staticClass:"mt-0 mb-1"},[i("v-progress-linear",{attrs:{value:t.calcdays(e.datestart,e.dateend,e.status,3,5).progress,color:t.calcdays(e.datestart,e.dateend,e.status,3,5).color}})],1)],1)],1),i("v-divider",{staticClass:"py-0"})],1)})),0)],1)],1)},n=[],o=i(20629),a=i(18241),s=i(30381),l=i.n(s),u=i(24563),h=i(45296),c=i(60441);const{mapGetters:d}=(0,o._p)("auth"),p=(0,o._p)("workstate"),g=(0,o._p)("taskstate"),f=(0,o._p)("projectstate");var m={name:"leftList",mixins:[a.Z,u.Z],components:{infousercard:c.Z},props:{level:{type:Number,default:1}},data(){return{r_rating:3,send_up:!1,serverurl:h.Jx,comment_up:"",comment:"",level_helper:[{},{type:"Задачи",r_text:"Ответственный",store:"getProject",child:"tasks"},{type:"Задачи",r_text:"Ответственный",store:"gettasks",child:"task_work"},{type:"Работы",r_text:"Ответственный",store:"getworks",child:"work_assignment"},{type:"Поручения",r_text:"Исполнитель",store:"getworks"}]}},computed:{...d(["getUser"]),...p.mapGetters(["getworks"]),...f.mapGetters(["allpersons","getProject"]),...g.mapGetters(["gettasks"]),todo(){return console.log(this.getProject,"----------------"),this[this.level_helper[this.level].store][this.level_helper[this.level].child]}},methods:{history(t){return console.log(this.level,t),this.level<3?this[this.level_helper[this.level].store].history.filter((t=>[4,7].includes(t.action.id)&&t.level==this.level+1)):this[this.level_helper[this.level].store].history.filter((e=>!Object.is(e.assignment,null)&&e.assignment.id==t&&[4,7].includes(e.action.id)))},confirmation(t){let e={id:t.elm.id,status:t.res,commentadd:this.comment,comment_up:this.send_up?this.comment_up:"",r_rating:this.r_rating};console.log(),t.elm.menu=!1,this.comment_up="",this.comment="",this.$emit("confirmation",e)},listchangetab(t){3==this.level?this.$emit("listchangetab",Number(t)+1):this.$emit("rout",this[this.level_helper[this.level].store][this.level_helper[this.level].child][t].id)}},mounted(){l().locale("ru")}},_=m,v=i(43736),b=i(43453),y=i.n(b),x=i(43423),w=i(34145),C=i(54886),S=i(63486),k=i(60266),A=i(99223),T=i(4324),E=i(65808),O=i(54525),P=i(79500),I=i(44568),L=i(29592),B=i(73905),R=i(11713),V=i(92648),D=i(67678),z=i(96669),M=(0,D.Z)(z.Z).extend({name:"v-timeline",provide(){return{timeline:this}},props:{alignTop:Boolean,dense:Boolean,reverse:Boolean},computed:{classes(){return{"v-timeline--align-top":this.alignTop,"v-timeline--dense":this.dense,"v-timeline--reverse":this.reverse,...this.themeClasses}}},render(t){return t("div",{staticClass:"v-timeline",class:this.classes},this.$slots.default)}}),F=i(42240),N=i(16878);const G=(0,D.Z)(N.Z,z.Z);var H=G.extend().extend({name:"v-timeline-item",inject:["timeline"],props:{color:{type:String,default:"primary"},fillDot:Boolean,hideDot:Boolean,icon:String,iconColor:String,large:Boolean,left:Boolean,right:Boolean,small:Boolean},computed:{hasIcon(){return!!this.icon||!!this.$slots.icon}},methods:{genBody(){return this.$createElement("div",{staticClass:"v-timeline-item__body"},this.$slots.default)},genIcon(){return this.$slots.icon?this.$slots.icon:this.$createElement(F.Z,{props:{color:this.iconColor,dark:!this.theme.isDark,small:this.small}},this.icon)},genInnerDot(){const t=this.setBackgroundColor(this.color);return this.$createElement("div",{staticClass:"v-timeline-item__inner-dot",...t},[this.hasIcon&&this.genIcon()])},genDot(){return this.$createElement("div",{staticClass:"v-timeline-item__dot",class:{"v-timeline-item__dot--small":this.small,"v-timeline-item__dot--large":this.large}},[this.genInnerDot()])},genDivider(){const t=[];return this.hideDot||t.push(this.genDot()),this.$createElement("div",{staticClass:"v-timeline-item__divider"},t)},genOpposite(){return this.$createElement("div",{staticClass:"v-timeline-item__opposite"},this.$slots.opposite)}},render(t){const e=[this.genBody(),this.genDivider()];return this.$slots.opposite&&e.push(this.genOpposite()),t("div",{staticClass:"v-timeline-item",class:{"v-timeline-item--fill-dot":this.fillDot,"v-timeline-item--before":this.timeline.reverse?this.right:this.left,"v-timeline-item--after":this.timeline.reverse?this.left:this.right,...this.themeClasses}},e)}}),Z=(0,v.Z)(_,r,n,!1,null,null,null),$=Z.exports;y()(Z,{VAvatar:x.Z,VCard:w.Z,VCardText:C.ZB,VCheckbox:S.Z,VCol:k.Z,VDivider:A.Z,VIcon:T.Z,VList:E.Z,VListItem:O.Z,VListItemContent:P.km,VListItemTitle:P.V9,VMenu:I.Z,VProgressLinear:L.Z,VRating:B.Z,VRow:R.Z,VTextarea:V.Z,VTimeline:M,VTimelineItem:H})},67761:function(t,e,i){"use strict";i.d(e,{Z:function(){return p}});var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-row",{staticClass:"flex-grow-0 mt-0",class:t.rowclass},[i("v-col",{staticClass:"py-1",class:t.myclass,attrs:{xl:t.colls[t.variant].xl,lg:t.colls[t.variant].lg,md:t.colls[t.variant].md,sm:t.colls[t.variant].sm,cols:t.colls[t.variant].cols}},[i("strong",[t._v(" "+t._s(t.title)+" ")])]),i("v-col",{staticClass:"py-1 text-nowrap flex-grow-1 flex-col",class:t.leftcol,on:{click:function(e){return t.$emit(t.stroka)}}},[t._t("leftcol")],2),t.rightcolUsed?i("v-col",{staticClass:"text-nowrap py-1 flex-grow-0 flex-row align-self-center justify-content-end"},[t._t("rightcol")],2):t._e()],1)},n=[],o={name:"row-pirow",data(){return{colls:{36:{xl:4,lg:4,md:6,sm:6,cols:6},0:{xl:0,lg:0,md:0,sm:0,cols:0},12:{xl:12,lg:12,md:12,sm:12,cols:12}}}},props:{rightcolUsed:{type:Boolean,default:!1},title:{type:String,default:""},leftcol:{type:String,default:""},myclass:{type:String,default:""},rowclass:{type:String,default:"pb-1"},variant:{type:Number,default:36},stroka:{type:String,default:""}}},a=o,s=i(43736),l=i(43453),u=i.n(l),h=i(60266),c=i(11713),d=(0,s.Z)(a,r,n,!1,null,null,null),p=d.exports;u()(d,{VCol:h.Z,VRow:c.Z})}}]); //# sourceMappingURL=747.e3c27ea6.js.map