UNPKG

@syncfusion/ej2-charts

Version:

Feature-rich chart control with built-in support for over 25 chart types, technical indictors, trendline, zooming, tooltip, selection, crosshair and trackball.

1 lines 1.89 MB
this.ej=this.ej||{},this.ej.charts=function(e,t,i,o,r,n,a,l,s){"use strict";function h(e,i,o){for(var r=t.extend([],e,null),n=0;n<r.length;n++)for(var a=0;a<i.length;a++)r[n][i[a]]instanceof Date&&(r[n][i[a]]=r[n][i[a]].getTime());return r.sort(function(e,t){for(var r=0,n=0,a=0;a<i.length;a++)r+=e[i[a]],n+=t[i[a]];return!o&&r<n||o&&r>n?-1:r===n?0:1}),r}function c(e){return-1!==e.indexOf("<br>")}function d(e){for(var i,o=t.extend([],e.points,null,!0),r=[],n=0,a=0;a<o.length;a++)i=o[a],t.isNullOrUndefined(i.x)||(i.index=n++,r.push(i));return r}function p(e,t){var o=e.component,r=0,n=0,a="Top"===o.titleStyle.position||"Bottom"===o.titleStyle.position&&!o.legendSettings.visible?15:5;o.title&&(r=i.measureText(o.title,o.titleStyle,o.themeStyle.chartTitleFont).height*o.titleCollection.length+a,o.subTitle&&(n=i.measureText(o.subTitle,o.subTitleStyle,o.themeStyle.chartSubTitleFont).height*o.subTitleCollection.length));var l;return t?"Top"===e.axis.scrollbarSettings.position?(l=o.margin.top+5+(e.height+5)*o.scrollBarModule.topScrollBarCount+("Top"===o.titleStyle.position?r+o.titleStyle.border.width:0)+("Top"===o.subTitleStyle.position?o.subTitleStyle.border.width+n:0),o.scrollBarModule.topScrollBarCount++):"Bottom"===e.axis.scrollbarSettings.position&&(l=o.availableSize.height-((e.height+5)*o.scrollBarModule.bottomScrollBarCount+e.height+o.margin.bottom+5+("Bottom"===o.titleStyle.position?r+o.titleStyle.border.width:0)+("Bottom"===o.subTitleStyle.position?o.subTitleStyle.border.width+n:0)),o.scrollBarModule.bottomScrollBarCount++):"Right"===e.axis.scrollbarSettings.position?(l=o.availableSize.width-((e.height+5)*o.scrollBarModule.rightScrollBarCount+e.height+5+o.margin.right+("Right"===o.titleStyle.position?r+o.titleStyle.border.width:0)+("Right"===o.subTitleStyle.position?o.subTitleStyle.border.width+n:0)),o.scrollBarModule.rightScrollBarCount++):"Left"===e.axis.scrollbarSettings.position&&(l=o.margin.left+5+(e.height+5)*o.scrollBarModule.leftScrollBarCount+("Left"===o.titleStyle.position?r+o.titleStyle.border.width:0)+("Left"===o.subTitleStyle.position?o.subTitleStyle.border.width+n:0),o.scrollBarModule.leftScrollBarCount++),l}function u(e,o,r,n,a){var l=n.element.style.transform;l&&(n.element.style.transform="");var s,h,d,p,u,g=new i.SvgRenderer(n.element.id),m=[],y={id:"rotate_text",x:n.initialClipRect.x,y:n.initialClipRect.y,"font-size":e.size||a.size,"font-style":e.fontStyle||a.fontStyle,"font-family":e.fontFamily,"font-weight":e.fontWeight||a.fontWeight,transform:"rotate("+r+", 0, 0)","text-anchor":"middle"};s=c(o)?(m=o.split("<br>"))[0]:o;var f=g.createText(y,s);if(n.delayRedraw||n.redraw||n.stockChart||n.element.appendChild(n.svgObject),"string"!=typeof m&&m.length>1)for(var v=1,b=m.length;v<b;v++)h=i.measureText(m[v],e,n.themeStyle.axisLabelFont).height,d=y.y+v*h,p=m[v],u=g.createTSpan({x:y.x,id:y.id,y:d},p),f.appendChild(u);var x=n.svgRenderer.createSvg({id:"AxisLabelMax_svg",width:n.availableSize.width,height:n.availableSize.height});document.body.appendChild(x),x.appendChild(f);var S=f.getBoundingClientRect();if(l&&(n.element.style.transform=l),t.remove(x),n.delayRedraw||n.redraw||n.stockChart||n.pointsAdded||t.remove(n.svgObject),n.enableCanvas){var F=i.measureText(o,e,n.themeStyle.axisLabelFont).width,C=i.measureText(o,e,n.themeStyle.axisLabelFont).height,w=r*Math.PI/180,L=Math.abs(Math.cos(w)*F)+Math.abs(Math.sin(w)*C),A=Math.abs(Math.sin(w)*F)+Math.abs(Math.cos(w)*C);return new i.Size(L,A)}return new i.Size(S.right-S.left,S.bottom-S.top)}function g(e){if(!e)return null;var i="string"==typeof e?he(e):e;i&&t.remove(i)}function m(e,t){return Math.log(e)/Math.log(t)}function y(e,o,r,n,a,l,s,h,c){var d=document.getElementById(a),p=i.measureText(e,{fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"Regular"}),u=p.width+5;o=o+u>n?o-(u+15):o,c&&o<c.x&&(o=c.x),r=h?r-p.height/2:r+15,c&&r+p.height>c.y+c.height&&(r-=r+p.height-(c.y+c.height)),d?(d.innerText=e.replace(/&lt;br\/?&gt;/gi,"\n"),d.style.top=r.toString()+"px",d.style.left=(o+15).toString()+"px"):((d=t.createElement("div",{id:a,styles:"top:"+r.toString()+"px;left:"+(o+15).toString()+'px;background-color: rgb(255, 255, 255) !important; color:black !important; position:absolute;border:1px solid rgb(112, 112, 112); padding-left : 3px; padding-right : 2px;padding-bottom : 2px; padding-top : 2px; font-size:12px; font-family: "Segoe UI"'})).innerText=e.replace(/&lt;br\/?&gt;/gi,"\n"),l.appendChild(d),parseInt(d.style.left.replace("px",""),10)<0&&(d.style.left="0px")),s&&setTimeout(function(){g(a)},1500)}function f(e,t){return e<t.max&&e>t.min}function v(e,t){return e<=t.max&&e>=t.min}function b(e,t){return"Logarithmic"===t.valueType?m(e,t.logBase):e}function x(e,t,i,o){if(o.chart.zoomModule&&o.chart.zoomSettings.enableAnimation)return!0;var r=b(t.xValue,o.xAxis),n=e?b(e.xValue,o.xAxis):r,a=i?b(i.xValue,o.xAxis):r,l=Math.floor(o.xAxis.visibleRange.min),s=Math.ceil(o.xAxis.visibleRange.max);return n>=l&&n<=s||r>=l&&r<=s||a>=l&&a<=s||l>=n&&l<=a}function S(e){for(var t=0,i=0,o=e;i<o.length;i++)t+=o[i];return t}function F(e,i,o,r,n){var a=0,l=0;if(null!==r)for(s=i+1;s<o;s++)-1===r.indexOf(s)&&(s===n.intermediateSumIndexes[l]||n.intermediateSumIndexes[n.intermediateSumIndexes.length-1]<s)&&(a+=e[s][n.yName],s===n.intermediateSumIndexes[l]&&(l+=1));else for(var s=i+1;s<o;s++)t.isNullOrUndefined(e[s][n.yName])||t.isNullOrUndefined(n.sumIndexes)||-1!==n.sumIndexes.indexOf(s)||(a+=e[s][n.yName]);return a}function C(e,t){return e.x+=t.left,e.y+=t.top,e.width-=t.left+t.right,e.height-=t.top+t.bottom,e}function w(e,t){return e.x+=t.x,e.y+=t.y,e.width-=t.x+t.width,e.height-=t.y+t.height,e}function L(e,t,i){var o=e*Math.PI/180;return new Ro(Math.cos(o)*t+i.x,Math.sin(o)*t+i.y)}function A(e){return e*(Math.PI/180)}function P(e,t,i,o){for(var r=[],n=0;n<4;n++){var a=e[n],l=a.x-t,s=a.y-i,h=l*Math.cos(A(o))-s*Math.sin(A(o)),c=l*Math.sin(A(o))+s*Math.cos(A(o));a.x=h+t,a.y=c+i,r.push(new Ro(a.x,a.y))}return r}function M(e,i){var o,r,n,a,l,s,h,c,d=[e,i];for(a=0;a<d.length;a++){var p=d[a];for(l=0;l<p.length;l++){var u=(l+1)%p.length,g=p[l],m=p[u],y=new Ro(m.y-g.y,g.x-m.x);for(o=r=void 0,s=0;s<e.length;s++)n=y.x*e[s].x+y.y*e[s].y,(t.isNullOrUndefined(o)||n<o)&&(o=n),(t.isNullOrUndefined(r)||n>r)&&(r=n);for(h=c=void 0,s=0;s<i.length;s++)n=y.x*i[s].x+y.y*i[s].y,(t.isNullOrUndefined(h)||n<h)&&(h=n),(t.isNullOrUndefined(c)||n>c)&&(c=n);if(r<h||c<o)return!1}}return!0}function k(e,t,i,o,r){var n=L(270,i,new Ro(e,t)),a=L(270,i,new Ro(e+r/10,t));return"M "+e+" "+t+" L "+(e+i)+" "+t+" A "+i+" "+i+" 0 1 1 "+n.x+" "+n.y+" Z M "+(e+r/10)+" "+(t-o/10)+" L"+(e+i)+" "+(t-o/10)+" A "+i+" "+i+" 0 0 0 "+a.x+" "+a.y+" Z"}function D(e,t){var i=Math.atan2(t.y-e.y,t.x-e.x);return(i=i<0?6.283+i:i)*(180/Math.PI)}function T(e,t){for(var i=[],o=0;o<=t-1;o++)i.push(e[o]);return i}function R(e,t){var i,o=t.visibleRange;return i=0===o.delta?.5:(e-o.min)/o.delta,(t.isChart?t.isAxisInverse:t.isInversed)?1-i:i}function E(e,t,i,o,r,n){e="Logarithmic"===i.valueType?m(e>1?e:1,i.logBase):e,t="Logarithmic"===o.valueType?m(t>1?t:1,o.logBase):t,e+="Category"===i.valueType&&"BetweenTicks"===i.labelPlacement&&"Radar"!==n.type?.5:0;var a=n.chart.radius*R(t,o),l=I(O(e,i),n.chart.primaryXAxis.startAngle);return{x:n.clipRect.width/2+n.clipRect.x+a*l.x,y:n.clipRect.height/2+n.clipRect.y+a*l.y}}function _(e,t){void 0===t&&(t=!1);var i=["NaN","NaN"];return e.indexOf("_polygon")>-1?i=["NaN","NaN"]:e.indexOf("_Point_")>-1?i=e.split("_Series_")[1].split("_Point_"):e.indexOf("_shape_")>-1&&(!t||t&&-1===e.indexOf("_legend_"))?(i=e.split("_shape_"))[0]="0":e.indexOf("_text_")>-1&&(!t||t&&-1===e.indexOf("_legend_"))?(i=e.split("_text_"))[0]="0":e.indexOf("_datalabel_")>-1?(i=e.split("_datalabel_")[1].split("_g_"))[0]=i[0].replace("Series_",""):e.indexOf("TextGroup")>-1?(i=e.split("TextGroup"))[0]=i[1]:e.indexOf("ShapeGroup")>-1&&((i=e.split("ShapeGroup"))[0]=i[1]),new ji(parseInt(i[0],10),parseInt(i[1],10))}function I(e,t){t=t<0?t+360:t;var i=Math.PI*(1.5-2*e);return i+=t*Math.PI/180,{x:Math.cos(i),y:Math.sin(i)}}function O(e,t){var i,o,r=t.visibleRange;return"Category"!==t.valueType?(i=r.max-("DateTime"===t.valueType?t.dateTimeInterval:r.interval)-r.min,o=t.visibleLabels.length-1,i=0===i?1:i):(i=1===t.visibleLabels.length?1:t.visibleLabels[t.visibleLabels.length-1].value-t.visibleLabels[0].value,o=t.visibleLabels.length),t.isAxisInverse?(e-r.min)/i*(1-1/o):1-(e-r.min)/i*(1-1/o)}function z(e,i,o,r,n,a){var l=he(e),s="top:"+o.toString()+"px;left:"+r.toString()+"px;color:black !important; background:#FFFFFF !important; position:absolute;border:1px solid #707070;font-size:"+n+";border-radius:2px; z-index:1";l?(l.setAttribute("innerHTML","&nbsp;"+i+"&nbsp;"),l.style.cssText=s):(l=t.createElement("div",{id:e,innerHTML:"&nbsp;"+i+"&nbsp;",styles:s}),he(a).appendChild(l))}function B(e,o,r,n,a,l){for(var s,h,c,d,p,u,g=o.isAxisOpposedPosition,m=e.enableRtl?"end":a?"start":"auto",y=e.availableSize.width,f=o.scrollbarSettings.enable||o.zoomingScrollBar&&o.zoomingScrollBar.svgObject?o.scrollBarHeight:0,v=e.enableRtl&&!a&&!o.isInversed||o.isInversed&&!(e.enableRtl&&!a),b=0;b<2;b++){if(s=i.measureText(b?v?o.startLabel:o.endLabel:v?o.endLabel:o.startLabel,o.labelStyle,e.themeStyle.axisLabelFont),a?(p=b?new Ro(l.x-f,l.y+3):new Ro(o.rect.x-f,l.y+l.height-3),c=l.x+(g?l.width+5+f:-(s.width+5+5+f)),d=l.y+(b?0:l.height-s.height-5),c+=c<0||y<c+s.width+5?g?-s.width/2:s.width/2:0,u=N(3,3,new i.Rect(c,d,s.width+5,s.height+5),p,5,!1,!1,!g,p.x,p.y+(b?-3:3))):(p=b?new Ro(l.x+l.width-3,l.y+l.height+f):new Ro(l.x+3,l.y+l.height+f),c=l.x+(b?l.width-s.width-5:0),d=g?l.y-s.height-10-f:l.y+l.height+5+f,u=N(3,3,new i.Rect(c,d,s.width+5,s.height+5),p,5,g,!g,!1,p.x+(b?3:-3),p.y)),c+=2.5,d=d+s.height/4*3+2.5,h=e.renderer.drawPath({id:e.element.id+"_Zoom_"+n+"_AxisLabel_Shape_"+b,fill:e.themeStyle.crosshairFill,width:2,color:e.themeStyle.crosshairFill,opacity:1,"stroke-dasharray":null,d:u},null),r.appendChild(h),"Fluent"===e.theme||"FluentDark"===e.theme){var x=e.element.id+"_shadow";h.setAttribute("filter",t.Browser.isIE?"":"url(#"+x+")");var S='<filter id="'+x+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';S+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',S+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var F=e.renderer.createDefs();F.setAttribute("id",e.element.id+"SVG_tooltip_definition"),r.appendChild(F),F.innerHTML=S,h.setAttribute("stroke","#cccccc"),h.setAttribute("stroke-width","0.5")}je(e.renderer,new i.TextOption(e.element.id+"_Zoom_"+n+"_AxisLabel_"+b,c,d,m,b?v?o.startLabel:o.endLabel:v?o.endLabel:o.startLabel),{color:e.themeStyle.crosshairLabelFont.color,fontFamily:"Segoe UI",fontWeight:"Regular",size:"11px"},e.themeStyle.crosshairLabelFont.color,r,null,null,null,null,null,null,null,null,null,null,e.themeStyle.crosshairLabelFont)}return r}function N(e,t,i,o,r,n,a,l,s,h){var c="",d=i.x,p=i.y,u=i.x+i.width,g=i.y+i.height;return n?(c=(c=(c=c.concat("M "+d+" "+(p+t)+" Q "+d+" "+p+" "+(d+e)+" "+p)).concat(" L "+(u-e)+" "+p+" Q "+u+" "+p+" "+u+" "+(p+t))).concat(" L "+u+" "+(g-t)+" Q "+u+" "+g+" "+(u-e)+" "+g),0!==r&&(c=(c=c.concat(" L "+(o.x+r/2)+" "+g)).concat(" L "+s+" "+(g+r)+" L "+(o.x-r/2)+" "+g)),c=o.x-r/2>d?c.concat(" L "+(d+e)+" "+g+" Q "+d+" "+g+" "+d+" "+(g-t)+" z"):0===r?c.concat(" L "+(d+e)+" "+g+" Q "+d+" "+g+" "+d+" "+(g-t)+" z"):c.concat(" L "+d+" "+(g+t)+" z")):c=a?(c=(c=(c=(c=(c=c.concat("M "+d+" "+(p+t)+" Q "+d+" "+p+" "+(d+e)+" "+p+" L "+(o.x-r/2)+" "+p)).concat(" L "+s+" "+o.y)).concat(" L "+(o.x+r/2)+" "+p)).concat(" L "+(u-e)+" "+p+" Q "+u+" "+p+" "+u+" "+(p+t))).concat(" L "+u+" "+(g-t)+" Q "+u+" "+g+" "+(u-e)+" "+g)).concat(" L "+(d+e)+" "+g+" Q "+d+" "+g+" "+d+" "+(g-t)+" z"):l?(c=(c=(c=(c=(c=c.concat("M "+d+" "+(p+t)+" Q "+d+" "+p+" "+(d+e)+" "+p)).concat(" L "+(u-e)+" "+p+" Q "+u+" "+p+" "+u+" "+(p+t)+" L "+u+" "+(o.y-r/2))).concat(" L "+(u+r)+" "+h)).concat(" L "+u+" "+(o.y+r/2))).concat(" L "+u+" "+(g-t)+" Q "+u+" "+g+" "+(u-e)+" "+g)).concat(" L "+(d+e)+" "+g+" Q "+d+" "+g+" "+d+" "+(g-t)+" z"):(c=(c=(c=(c=(c=c.concat("M "+(d+e)+" "+p+" Q "+d+" "+p+" "+d+" "+(p+t)+" L "+d+" "+(o.y-r/2))).concat(" L "+(d-r)+" "+h)).concat(" L "+d+" "+(o.y+r/2))).concat(" L "+d+" "+(g-t)+" Q "+d+" "+g+" "+(d+e)+" "+g)).concat(" L "+(u-e)+" "+g+" Q "+u+" "+g+" "+u+" "+(g-t))).concat(" L "+u+" "+(p+t)+" Q "+u+" "+p+" "+(u-e)+" "+p+" z"),c}function V(e,t,i,o,r){return void 0===o&&(o=0),void 0===r&&(r=0),e>=i.x-o&&e<=i.x+i.width+o&&t>=i.y-r&&t<=i.y+i.height+r}function H(e,t,i){return(i.isAxisInverse?1-e/t:e/t)*i.visibleRange.delta+i.visibleRange.min}function W(e,t,i){return(i.isAxisInverse?e/t:1-e/t)*i.visibleRange.delta+i.visibleRange.min}function j(e,t){void 0===t&&(t=!1);var i=e.clipRect;!t||"Polar"!==e.type&&"Radar"!==e.type?e.chart.requireInvertedAxis?(i.x=e.yAxis.rect.x,i.y=e.xAxis.rect.y,i.width=e.yAxis.rect.width,i.height=e.xAxis.rect.height):(i.x=e.xAxis.rect.x,i.y=e.yAxis.rect.y,i.width=e.xAxis.rect.width,i.height=e.yAxis.rect.height):"Scatter"===e.drawType?(i.x=e.xAxis.rect.x,i.y=e.yAxis.rect.y,i.width=e.xAxis.rect.width,i.height=e.yAxis.rect.height):(i.x=e.xAxis.rect.x/2,i.y=e.yAxis.rect.y/2,i.width=e.xAxis.rect.width,i.height=e.yAxis.rect.height)}function U(e){return e.substr(0,1).toLowerCase()+e.substr(1)}function G(e,t,o){var r,n,a,l;return o?(r=t.rect.x,n=e.rect.y,a=t.rect.width,l=e.rect.height):(r=e.rect.x,n=t.rect.y,a=e.rect.width,l=t.rect.height),new i.Rect(r,n,a,l)}function X(e,i){for(var o,r,n,a=Number.MAX_VALUE,l=!0,s=[],h=0,c=i;h<c.length;h++)if((p=c[h]).visible&&1!==p.points.map(function(e){return e.xValue}).length){l=!1;break}for(var d=0;d<i.length;d++){var p=i[d];if(o=[],p.visible&&(e.name===p.xAxisName||"primaryXAxis"===e.name&&null===p.xAxisName||e.name===p.chart.primaryXAxis.name&&!p.xAxisName))if(p.type.indexOf("Stacking")>-1&&-1===s.indexOf(p.stackingGroup)&&s.push(p.stackingGroup),(o=p.points.map(function(e){return e.xValue})).sort(function(e,t){return e-t}),1===o.length&&l)if("DateTime"===e.valueType){var u=1===i.length?2592e4:2592e6;n=p.xMin===p.xMax?p.xMin-u:p.xMin,0!==(r=o[0]-(t.isNullOrUndefined(n)?e.visibleRange.min:n))&&(a=Math.min(a,r))}else n=p.xMin,0!==(r=o[0]-(t.isNullOrUndefined(n)?e.visibleRange.min:n))&&(a=Math.min(a,r));else for(var g=0;g<o.length;g++){var m=o[g];g>0&&m&&0!==(r=p.type.indexOf("Stacking")>-1&&"Category"===e.valueType?s.length:m-o[g-1])&&(a=Math.min(a,r))}}return a===Number.MAX_VALUE&&(a=1),a}function Y(e){var t;switch(e){case"Linear":t=Z}return t}function Z(e,t,i,o){return-i*Math.cos(e/o*(Math.PI/2))+i+t}function q(e,i,o,r,n,a,l){var s=!!r.accumulation;e.style.visibility="hidden";var h=e.getAttribute("transform");new t.Animation({}).animate(e,{duration:o,delay:i,progress:function(t){if(t.timeStamp>t.delay&&(t.element.style.visibility="visible"),s?t.element.id.indexOf("_datalabel_Series_")>-1:(t.element.parentElement.parentElement.id.indexOf("DataLabel")>-1||e.id.indexOf("StackLabel")>-1)&&!(r.chart.stackLabels.visible&&e.getAttribute("data-collide"))){t.element.style.visibility="visible";var i=s?r.opacity:r.marker.dataLabel.opacity,o=t.timeStamp/500*i;s||e.id.indexOf("StackLabel")>-1?e.setAttribute("opacity",Math.min(o,i).toString()):(r.textElement.setAttribute("opacity",Math.min(o,i).toString()),r.shapeElement.setAttribute("opacity",Math.min(o,i).toString()))}},end:function(){"Scatter"!==r.type&&"Bubble"!==r.type||!r.lastValueLabelElement||r.lastValueLabelElement.setAttribute("visibility","visible");var t=document.getElementById(r.chart.element.id+"_Annotation_Collections");t&&"Line"!==r.type&&(t.style.visibility="visible"),(e.parentElement.parentElement.id.indexOf("DataLabel")>-1||e.id.indexOf("_datalabel_Series_")>-1||e.id.indexOf("StackLabel")>-1)&&(s||e.id.indexOf("StackLabel")>-1?e.setAttribute("opacity",r.opacity.toString()):(r.textElement.setAttribute("opacity",r.marker.dataLabel.opacity.toString()),r.shapeElement.setAttribute("opacity",r.marker.dataLabel.opacity.toString()))),r.chart.stackLabels.visible&&e.getAttribute("data-collide")||(e.style.visibility=""),e.setAttribute("transform",h||""),"Scatter"!==r.type&&"Bubble"!==r.type||l||n!==r.points.length-1||r.chart.trigger("animationComplete",{series:r})}})}function Q(e,o,r,n,a){var l=function(t){e.setAttribute("x",t.x+""),e.setAttribute("y",t.y+""),e.setAttribute("width",t.width+""),e.setAttribute("height",t.height+"")};new t.Animation({}).animate(t.createElement("div"),{duration:r,delay:o,progress:function(e){l(new i.Rect(Z(e.timeStamp,a.x,n.x-a.x,e.duration),Z(e.timeStamp,a.y,n.y-a.y,e.duration),Z(e.timeStamp,a.width,n.width-a.width,e.duration),Z(e.timeStamp,a.height,n.height-a.height,e.duration)))},end:function(){l(n)}})}function $(e,i,o,r,n){if(!o||!r&&!e)return null;var a=300;t.isNullOrUndefined(n)||(a=n);var l,s,h,c=r||e.getAttribute("d"),d=c.split(/(?=[LMCZAQ])/),p=i.split(/(?=[LMCZAQ])/),u=[],g=[];e.setAttribute("d",c),new t.Animation({}).animate(t.createElement("div"),{duration:a,progress:function(t){l="",d.map(function(e,i){if(u=e.split(" "),g=p[i]?p[i].split(" "):u,"Z"===u[0]?l+="Z ":""===u[0]?l="":l+=u[0]+" "+Z(t.timeStamp,+u[1],+g[1]-+u[1],t.duration)+" "+Z(t.timeStamp,+u[2],+g[2]-+u[2],t.duration)+" ","C"===u[0]||"Q"===u[0])for(s=3,h="Q"===u[0]?4:6;s<h;)l+=Z(t.timeStamp,+u[s],+g[s]-+u[s],t.duration)+" "+Z(t.timeStamp,+u[++s],+g[s]-+u[s],t.duration)+" ",++s;"A"===u[0]&&(l+="0 0 1 "+Z(t.timeStamp,+u[6],+g[6]-+u[6],t.duration)+" "+Z(t.timeStamp,+u[7],+g[7]-+u[7],t.duration)+" ")}),e.setAttribute("d",l)},end:function(){e.setAttribute("d",i)}})}function K(e,i,o,r,n,a,l){if(!o||!r&&!e)return null;var s=300;t.isNullOrUndefined(n)||(s=n);var h=r||e.getAttribute("d"),c=i,d="";e.setAttribute("d",h),new t.Animation({}).animate(t.createElement("div"),{duration:s,progress:function(t){d="";for(var i=h.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),o=c.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),r=Math.max(i.length,o.length),n=0;n<r;n++){for(var a=i[n]||"",p=o[n]||"",u=a.trim().split(/\s+/),g=p.trim().split(/\s+/),m=[],y=1;y<u.length;y++){var f=parseFloat(u[y]),v=parseFloat(g[y]);if(!isNaN(f)&&!isNaN(v)&&(u.length===g.length||l)){var b=Z(t.timeStamp,f,v-f,s);m.push(b)}}m.length>0&&u.length!==g.length?d+="L":m.length>0&&(d+=u[0]),d+=" "+m.join(" "),d+=" "}e.setAttribute("d",d)},end:function(){e.setAttribute("d",a||i)}})}function J(e,t,i,o){void 0===o&&(o="drawClipPath");var r=Ve(e,t.id,t,i);if(r){var n=i.createDefs();return n.appendChild(r),n}return i[o](t)}function ee(e,t,i,o,r){var n={cancel:!1,name:qi,axis:r,text:i,value:t,labelStyle:o};if(e.trigger(qi,n),!n.cancel){var a=-1!==n.text.indexOf("<br>"),l=r.enableTrim?a?Be(r.maximumLabelWidth,n.text,r.labelStyle,e.themeStyle.axisLabelFont):ze(r.maximumLabelWidth,n.text,r.labelStyle,e.enableRtl,e.themeStyle.axisLabelFont):n.text;r.visibleLabels.push(new Fo(l,n.value,n.labelStyle,n.text))}}function te(e){return null!=e.minimum&&null!=e.maximum}function ie(e){return e.zoomFactor<1&&e.zoomPosition>=0}function oe(e,i){var o="Horizontal"===i.orientation?e.width:e.height;if(t.isNullOrUndefined(i.desiredIntervals)){var r=("Horizontal"===i.orientation?.533:1)*i.maximumLabels;return r=Math.max(o*(r/100),1)}return i.desiredIntervals}function re(e,i,o,r,n){new t.Animation({}).animate(e,{duration:o,delay:i,name:r,progress:function(e){e.element.style.visibility="visible"},end:function(e){n?t.remove(e.element):e.element.style.visibility="visible"}})}function ne(e,t,o,r,n,a,l,s,h,c){var d=l||new i.SvgRenderer(""),p=ae(e,o,t,n,r,h,c);return d["draw"+p.functionName](p.renderOption,s?new Int32Array([s.x,s.y]):null)}function ae(e,o,r,n,a,l,s){var h,c,d,p="Path",u=l,g=u&&"Circle"===r?o.width-2:o.width,m=u&&"Circle"===r?o.height-2:o.height,y=u?s.targetWidth:0,f=e.x,v=e.y,b=e.y+-m/2,x=e.x+-g/2;switch(r){case"Bubble":case"Circle":p="Ellipse",t.merge(n,{rx:g/2,ry:m/2,cx:f,cy:v});break;case"Plus":h="M "+x+" "+v+" L "+(f+g/2)+" "+v+" M "+f+" "+(v+m/2)+" L "+f+" "+(v+-m/2),t.merge(n,{d:h});break;case"Cross":h="M "+x+" "+(v+-m/2)+" L "+(f+g/2)+" "+(v+m/2)+" M "+x+" "+(v+m/2)+" L "+(f+g/2)+" "+(v+-m/2),t.merge(n,{d:h});break;case"Multiply":h="M "+(f-y)+" "+(v-y)+" L "+(f+y)+" "+(v+y)+" M "+(f-y)+" "+(v+y)+" L "+(f+y)+" "+(v-y),t.merge(n,{d:h,stroke:n.fill});break;case"HorizontalLine":h="M "+x+" "+v+" L "+(f+g/2)+" "+v,t.merge(n,{d:h});break;case"VerticalLine":h="M "+f+" "+(v+m/2)+" L "+f+" "+(v+-m/2),t.merge(n,{d:h});break;case"Diamond":h="M "+x+" "+v+" L "+f+" "+(v+-m/2)+" L "+(f+g/2)+" "+v+" L "+f+" "+(v+m/2)+" L "+x+" "+v+" z",t.merge(n,{d:h});break;case"ActualRect":h="M "+x+" "+(v+-m/8)+" L "+(f+y)+" "+(v+-m/8)+" L "+(f+y)+" "+(v+m/8)+" L "+x+" "+(v+m/8)+" L "+x+" "+(v+-m/8)+" z",t.merge(n,{d:h});break;case"TargetRect":h="M "+(x+y)+" "+(v+-m/2)+" L "+(f+y/2)+" "+(v+-m/2)+" L "+(f+y/2)+" "+(v+m/2)+" L "+(x+y)+" "+(v+m/2)+" L "+(x+y)+" "+(v+-m/2)+" z",t.merge(n,{d:h});break;case"Rectangle":case"Hilo":case"HiloOpenClose":case"Candle":case"Waterfall":case"BoxAndWhisker":case"StepArea":case"RangeStepArea":case"StackingStepArea":case"Square":case"Flag":h="M "+x+" "+(v+-m/2)+" L "+(f+g/2)+" "+(v+-m/2)+" L "+(f+g/2)+" "+(v+m/2)+" L "+x+" "+(v+m/2)+" L "+x+" "+(v+-m/2)+" z",t.merge(n,{d:h});break;case"Pyramid":case"Triangle":h="M "+x+" "+(v+m/2)+" L "+f+" "+(v+-m/2)+" L "+(f+g/2)+" "+(v+m/2)+" L "+x+" "+(v+m/2)+" z",t.merge(n,{d:h});break;case"Funnel":case"InvertedTriangle":h="M "+(f+g/2)+" "+(v-m/2)+" L "+f+" "+(v+m/2)+" L "+(f-g/2)+" "+(v-m/2)+" L "+(f+g/2)+" "+(v-m/2)+" z",t.merge(n,{d:h});break;case"Pentagon":for(L=0;L<=5;L++)c=g/2*Math.cos(Math.PI/180*(72*L)),d=m/2*Math.sin(Math.PI/180*(72*L)),h=0===L?"M "+(f+c)+" "+(v+d)+" ":h.concat("L "+(f+c)+" "+(v+d)+" ");h=h.concat("Z"),t.merge(n,{d:h});break;case"Image":p="Image",t.merge(n,{href:a,height:m,width:g,x:x,y:b});break;case"Star":for(var S=Math.min(g,m)/2,F=S/2,C=Math.PI/5,w="",L=0;L<10;L++){var A=L%2==0?S:F,P=f+A*Math.cos(L*C-Math.PI/2),M=v+A*Math.sin(L*C-Math.PI/2);w+=(0===L?"M":"L")+P+","+M}w+="Z",t.merge(n,{d:w})}return n=Oe(e,new i.Size(g,m),r,n).renderOption,{renderOption:n,functionName:p}}function le(e,t,o){var r=t.x<o.x?o.x:t.x>o.x+o.width?o.x+o.width:t.x,n=t.y<o.y?o.y:t.y>o.y+o.height?o.y+o.height:t.y;return new i.Rect(r>e.x?e.x:r,n>e.y?e.y:n,Math.abs(r-e.x),Math.abs(n-e.y))}function se(e,t,i){return e>i?i:e<t?t:e}function he(e){return document.getElementById(e)}function ce(e){var i=null;try{i="function"!=typeof e&&document.querySelectorAll(e).length?t.compile(document.querySelector(e).innerHTML.trim()):t.compile(e)}catch(o){i=t.compile(e)}return i}function de(e,t,i,o,r,n,a,l,s,h){var c=e.getBoundingClientRect();t.accumulationDataLabelModule.calculateLabelSize(i,e,n,o,r,a,l,s,h,c,!0)}function pe(e,t,i,o,r,n){var a=document.getElementById(t.element.id+"_Series_"+(void 0===o.index?o.category:o.index)+"_DataLabelCollections");a&&(0===i.index&&(t.dataLabelCollections=[]),t.dataLabelModule.calculateTemplateLabelSize(a,e,i,o,o.marker.dataLabel,r,o.clipRect,n,!0))}function ue(e,t,i,o,r,n,a,l,s,h,c,d,p,u,g){var m,y=ce(i);try{var f={chart:o,series:n,point:r};e.id.indexOf("AxisLabelTemplate")>-1&&(f={value:r.value,label:r.text});var v=a?a+"_template":"template",b=y?y(f,o,v,a||e.id.replace(/[^a-zA-Z0-9]/g,"")):[];if(b.length)for(var x=(m=Array.prototype.slice.call(b)).length,S=0;S<x;S++)e.appendChild(m[S]);var F=void 0;"accumulationchart"===o.getModuleName()?(F=c.length&&c[t]?de.bind(this,e,o,h,c,s,c[t],d,p,u,g):F,o.isReact&&o.renderReactTemplates(F)):"chart"===o.getModuleName()&&(F=r&&n?pe.bind(this,e,o,r,n,l,g):F,o.isReact&&o.renderReactTemplates(F))}catch(t){return e}return e}function ge(e,t){return"font-size:"+(e.size||t.size)+"; font-style:"+(e.fontStyle||t.fontStyle)+"; font-weight:"+(e.fontWeight||t.fontWeight)+"; font-family:"+e.fontFamily+";opacity:"+e.opacity+"; color:"+e.color+";"}function me(e,i,o){void 0===i&&(i=!1),o||document.body.appendChild(e);var r=e.getBoundingClientRect();return i?t.remove(e):o||g(e.id),r}function ye(e,t){for(var i,o=0,r=e.length;o<r;o++)e[o].id.indexOf(t)>-1&&(i=e[o]);return i}function fe(e,t,i,o,r){e="Logarithmic"===i.valueType?m(e>0?e:Math.pow(i.logBase,i.visibleRange.min),i.logBase):e,t="Logarithmic"===o.valueType?m(t>0?t:Math.pow(o.logBase,o.visibleRange.min),o.logBase):t,e=R(e,i),t=R(t,o);var n=r?i.rect.height:i.rect.width,a=r?o.rect.width:o.rect.height;return new Ro(r?t*a:e*n,r?(1-e)*n:(1-t)*a)}function ve(e,t,i,o,r,n,a){if(void 0===i&&(i=!1),void 0===o&&(o=!1),void 0===r&&(r="x"),void 0===n&&(n="y"),!(e&&e.hasChildNodes()&&t))return null;be(!1,t,e,i,o,r,n,void 0,void 0,void 0,void 0,void 0,a)}function be(e,o,r,n,a,l,s,h,c,d,p,u,g,m,y,f,v){if(void 0===a&&(a=!1),void 0===l&&(l="x"),void 0===s&&(s="y"),void 0===d&&(d=!1),void 0===p&&(p=!1),void 0===u&&(u=null),void 0===m&&(m=!1),void 0===y&&(y=0),e)return null;var b=m?null:o.querySelector("#"+r.id),x=b||he(r.id),S=r,F=t.isNullOrUndefined(g)?300:g;if(n&&a&&x)if(h=h||("DIV"===x.tagName?new Ro(+x.style[l].split("px")[0],+x.style[s].split("px")[0]):new Ro(+x.getAttribute(l),+x.getAttribute(s))),c&&"undefined"!==c)$(r,r.getAttribute("d"),n,c,F);else if(p&&u)Q(S,0,F,new i.Rect(+x.getAttribute("x"),+x.getAttribute("y"),+x.getAttribute("width"),+x.getAttribute("height")),u);else{var C="DIV"===S.tagName?new Ro(+S.style[l].split("px")[0],+S.style[s].split("px")[0]):new Ro(+S.getAttribute(l),+S.getAttribute(s)),w=x.getAttribute("transform");He(S,F,h,C,l,s,y,f,void 0!==v?new Ro(v.match(/\d+/g).map(Number)[0],v.match(/\d+/g).map(Number)[1]):w?new Ro(parseFloat(w.split(",")[1]),parseFloat(w.split(",")[2])):new Ro(0,0),void 0!==v)}else n&&a&&!x&&d&&re(S,0,600,"FadeIn");b?o.replaceChild(S,x):o.appendChild(S)}function xe(e,t,o,r,n){var a=Math.abs(e-o),l=Math.abs(t-r),s=Math.max(Se(Math.min(e,o),a,n.x,n.width),n.x),h=Math.max(Se(Math.min(t,r),l,n.y,n.height),n.y);return new i.Rect(s,h,Math.min(a,n.width),Math.min(l,n.height))}function Se(e,t,i,o){return e<i?e=i:e+t>o+i&&(e=o+i-t),e}function Fe(e,t,i){var o=t.marker.dataLabel.format?t.marker.dataLabel.format:t.yAxis.labelFormat,r=[],n=null!==o.match("{value}");switch(t.seriesType){case"XY":"PolarRadar"===t.chart.chartAreaType?-1!==t.drawType.indexOf("Stacking")?("Logarithmic"===t.yAxis.valueType&&b(t.stackedValues.endValues[e.index],t.yAxis)||v(t.stackedValues.endValues[e.index],t.yAxis.visibleRange))&&r.push(e.text||e.yValue.toString()):("Logarithmic"===t.yAxis.valueType&&b(e.yValue,t.yAxis)||v(e.yValue,t.yAxis.visibleRange))&&r.push(e.text||e.yValue.toString()):r.push(e.text||e.yValue.toString());break;case"HighLow":r.push(e.text||Math.max(e.high,e.low).toString()),r.push(e.text||Math.min(e.high,e.low).toString());break;case"HighLowOpenClose":r.push(e.text||Math.max(e.high,e.low).toString()),r.push(e.text||Math.min(e.high,e.low).toString()),r.push(e.text||Math.max(e.open,e.close).toString()),r.push(e.text||Math.min(e.open,e.close).toString());break;case"BoxPlot":r.push(e.text||e.median.toString()),r.push(e.text||e.maximum.toString()),r.push(e.text||e.minimum.toString()),r.push(e.text||e.upperQuartile.toString()),r.push(e.text||e.lowerQuartile.toString());for(var a=0,l=e.outliers;a<l.length;a++){var s=l[a];r.push(e.text||s.toString())}}if((o||i.useGroupingSeparator)&&!e.text){var h="DateTime"===t.yAxis.valueType&&/[yMdHhms]/.test(o||"");t.yAxis.format=h?i.intl.getDateFormat({format:n?"":o}):i.intl.getNumberFormat({format:n?"":o,useGrouping:i.useGroupingSeparator});for(var c=0;c<r.length;c++){var d=h?t.yAxis.format(new Date(Number(r[c]))):t.yAxis.format(parseFloat(r[c]));r[c]=n?o.replace("{value}",d):d}}return r}function Ce(e){window.clearInterval(e)}function we(e,t,o){var r=new i.Rect(e.x+o.x,e.y+o.y,e.width,e.height);return t.some(function(e){return r.x<e.x+e.width&&r.x+r.width>e.x&&r.y<e.y+e.height&&r.height+r.y>e.y})}function Le(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.height+e.y>t.y}function Ae(e,t){return e.x<=t.x&&e.x+e.width>=t.x+t.width&&e.y<=t.y&&e.height+e.y>=t.y+t.height}function Pe(e,t,o){return new i.Rect(e.x-t.width/2-o.left,e.y-t.height/2-o.top,t.width+o.left+o.right,t.height+o.top+o.bottom)}function Me(e){return"#"+ke(e.r)+ke(e.g)+ke(e.b)}function ke(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function De(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?new Io(parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)):new Io(255,255,255)}function Te(e){e="transparent"===e?"white":e;var i=document.getElementById("chartmeasuretext");i||(i=t.createElement("text",{id:"chartmeasuretext"}),document.body.appendChild(i)),i.style.color=e,e=window.getComputedStyle(i).color,i.style.color="";var o;if(0!==e.indexOf("rgb")&&0!==e.indexOf("hsl")||(o=(e=e.replace(/\s/g,"").replace(/[()]/g,"")).slice(3).split(",")),o&&o.length){var r=o.map(function(e){return parseInt(e,10)}),n=r[0],a=r[1],l=r[2];return Me(new Io(n,a,l))}return""}function Re(e){if(0===e.indexOf("rgba(")||0===e.indexOf("rgb(")){var t=e.substring(e.indexOf("(")+1,e.lastIndexOf(")")).split(",");if(3===t.length||4===t.length)return t.every(function(e){var t=parseFloat(e);return!isNaN(t)&&t>=0&&t<=255})}else if(0===e.indexOf("#")){var i=e.substring(1);return(3===i.length||6===i.length)&&/^[0-9A-Fa-f]{3,6}$/.test(i)}return!1}function Ee(e,t){(e=(e=Te(e)).replace(/[^0-9a-f]/gi,"")).length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;for(var i,o="#",r=0;r<3;r++)i=parseInt(e.substr(2*r,2),16),o+=("00"+(i=Math.round(Math.min(Math.max(0,i+i*t),255))).toString(16)).substr(i.toString(16).length);return o}function _e(e,t){var i=De(e);return i.r=parseInt(Math.floor(i.r*t).toString(),10),i.g=parseInt(Math.floor(i.g*t).toString(),10),i.b=parseInt(Math.floor(i.b*t).toString(),10),"#"+ke(i.r).toUpperCase()+ke(i.g).toUpperCase()+ke(i.b).toUpperCase()}function Ie(e){var t=Math.floor(e.length/2);return e.length%2?e[t]:(e[t-1]+e[t])/2}function Oe(e,i,o,r){var n="",a=i.height,l=i.width,s=e.x,h=e.y;switch(o){case"MultiColoredLine":case"Line":case"StackingLine":case"StackingLine100":n="M "+(s+.75*-l)+" "+h+" L "+(s+.75*l)+" "+h,t.merge(r,{d:n});break;case"StepLine":r.fill="transparent",n="M "+(s+-l/2-2.5)+" "+(h+a/2)+" L "+(s+-l/2+l/10)+" "+(h+a/2)+" L "+(s+-l/2+l/10)+" "+h+" L "+(s+-l/10)+" "+h+" L "+(s+-l/10)+" "+(h+a/2)+" L "+(s+l/5)+" "+(h+a/2)+" L "+(s+l/5)+" "+(h+-a/2)+" L "+(s+l/2)+" "+(h+-a/2)+"L "+(s+l/2)+" "+(h+a/2)+" L"+(s+l/2+2.5)+" "+(h+a/2),t.merge(r,{d:n});break;case"UpArrow":r.fill=r.stroke,r.stroke="transparent",n="M "+(s+-l/2)+" "+(h+a/2)+" L "+s+" "+(h-a/2)+" L "+(s+l/2)+" "+(h+a/2)+"L "+(s+l/2-2)+" "+(h+a/2)+" L "+s+" "+(h-a/2+4)+"L"+(s-l/2+2)+" "+(h+a/2)+" Z",t.merge(r,{d:n});break;case"DownArrow":n="M "+(s-l/2)+" "+(h-a/2)+" L "+s+" "+(h+a/2)+" L "+(s+l/2)+" "+(h-a/2)+"L "+(s+l/2-2)+" "+(h-a/2)+" L "+s+" "+(h+a/2-4)+"L"+(s-l/2+2)+" "+(h-a/2)+" Z",t.merge(r,{d:n});break;case"RightArrow":n="M "+(s+-l/2)+" "+(h-a/2)+" L "+(s+l/2)+" "+h+" L "+(s+-l/2)+" "+(h+a/2)+" L "+(s+-l/2)+" "+(h+a/2-2)+" L "+(s+l/2-4)+" "+h+" L"+(s+-l/2)+" "+(h-a/2+2)+" Z",t.merge(r,{d:n});break;case"LeftArrow":r.fill=r.stroke,r.stroke="transparent",n="M "+(s+l/2)+" "+(h-a/2)+" L "+(s+-l/2)+" "+h+" L "+(s+l/2)+" "+(h+a/2)+" L "+(s+l/2)+" "+(h+a/2-2)+" L "+(s+-l/2+4)+" "+h+" L"+(s+l/2)+" "+(h-a/2+2)+" Z",t.merge(r,{d:n});break;case"Column":case"Pareto":case"StackingColumn":case"StackingColumn100":case"RangeColumn":case"Histogram":n="M "+(s-l/5*3)+" "+(h-a/5)+" L "+(s+-l/10*3)+" "+(h-a/5)+" L "+(s+-l/10*3)+" "+(h+a/2)+" L "+(s-l/5*3)+" "+(h+a/2)+" Z M "+(s+-l/10-l/20)+" "+(h-a/4-5)+" L "+(s+l/10+l/20)+" "+(h-a/4-5)+" L "+(s+l/10+l/20)+" "+(h+a/2)+" L "+(s+-l/10-l/20)+" "+(h+a/2)+" Z M "+(s+l/10*3)+" "+h+" L "+(s+l/5*3)+" "+h+" L "+(s+l/5*3)+" "+(h+a/2)+" L "+(s+l/10*3)+" "+(h+a/2)+" Z",t.merge(r,{d:n});break;case"Bar":case"StackingBar":case"StackingBar100":n="M "+(s+-l/2+-2.5)+" "+(h-a/5*3)+" L "+(s+l/10*3)+" "+(h-a/5*3)+" L "+(s+l/10*3)+" "+(h-a/10*3)+" L "+(s-l/2-2.5)+" "+(h-a/10*3)+" Z M "+(s+-l/2+-2.5)+" "+(h-a/5+.5)+" L "+(s+l/2+2.5)+" "+(h-a/5+.5)+" L "+(s+l/2+2.5)+" "+(h+a/10+.5)+" L "+(s-l/2-2.5)+" "+(h+a/10+.5)+" Z M "+(s-l/2-2.5)+" "+(h+a/5+1)+" L "+(s+-l/4)+" "+(h+a/5+1)+" L "+(s+-l/4)+" "+(h+a/2+1)+" L "+(s-l/2-2.5)+" "+(h+a/2+1)+" Z",t.merge(r,{d:n});break;case"Spline":r.fill="transparent",n="M "+(s-l/2)+" "+(h+a/5)+" Q "+s+" "+(h-a)+" "+s+" "+(h+a/5)+" M "+s+" "+(h+a/5)+" Q "+(s+l/2)+" "+(h+a/2)+" "+(s+l/2)+" "+(h-a/2),t.merge(r,{d:n});break;case"Area":case"MultiColoredArea":case"RangeArea":case"StackingArea":case"StackingArea100":n="M "+(s-l/2-2.5)+" "+(h+a/2)+" L "+(s+-l/4+-1.25)+" "+(h-a/2)+" L "+s+" "+(h+a/4)+" L "+(s+l/4+1.25)+" "+(h+-a/2+a/4)+" L "+(s+a/2+2.5)+" "+(h+a/2)+" Z",t.merge(r,{d:n});break;case"SplineArea":case"SplineRangeArea":n="M "+(s-l/2)+" "+(h+a/5)+" Q "+s+" "+(h-a)+" "+s+" "+(h+a/5)+" Z M "+s+" "+(h+a/5)+" Q "+(s+l/2)+" "+(h+a/2)+" "+(s+l/2)+" "+(h-a/2)+" Z",t.merge(r,{d:n});break;case"Pie":case"Doughnut":r.stroke="transparent",n=k(s,h,Math.min(a,l)/2,a,l),t.merge(r,{d:n})}return{renderOption:r}}function ze(e,t,o,r,n,a){var l=t,s=a?a.width:i.measureText(t,o,n).width;if(s>e)for(var h=t.length-1;h>=0;--h)if(l=r?"..."+t.substring(0,h):t.substring(0,h)+"...",(s=i.measureText(l,o,n).width)<=e)return l;return l}function Be(e,t,o,r){for(var n=[],a=t.split("<br>"),l=0;l<a.length;l++){t=a[l];var s=i.measureText(t,o,r).width;if(s>e){for(var h=t.length-1;h>=0;--h)if(t=t.substring(0,h)+"...",(s=i.measureText(t,o,r).width)<=e){n.push(t);break}}else n.push(t)}return n}function Ne(e,t){return null!==e&&void 0!==e?-1!==e.indexOf("%")?t/100*parseInt(e,10):parseInt(e,10):null}function Ve(e,t,i,o){if(!e)return null;var r=he(t);return r&&i&&o.setElementAttributes(i,"clipPath"===r.tagName?r.childNodes[0]:r),r}function He(e,i,o,r,n,a,l,s,h,c){void 0===n&&(n="x"),void 0===a&&(a="y"),void 0===l&&(l=0),void 0===s&&(s=new Ro(0,0)),void 0===h&&(h=new Ro(0,0));var d="DIV"===e.tagName,p=function(t,i,o,r){d?(e.style[n]=t+"px",e.style[a]=i+"px"):(e.setAttribute(n,t+""),e.setAttribute(a,i+""),l&&s.x&&s.y&&h.x&&h.y&&o&&r&&e.setAttribute("transform","rotate("+l+","+o+","+r+")"),c&&e.setAttribute("transform","translate("+o+","+r+")"))};p(o.x,o.y,h.x,h.y),new t.Animation({}).animate(t.createElement("div"),{duration:i,progress:function(e){p(Z(e.timeStamp,o.x,r.x-o.x,e.duration),Z(e.timeStamp,o.y,r.y-o.y,e.duration),Z(e.timeStamp,h.x,s.x-h.x,e.duration),Z(e.timeStamp,h.y,s.y-h.y,e.duration))},end:function(){p(r.x,r.y,s.x,s.y)}})}function We(e,i,o,r,n){if(e&&o&&r){var a=function(e){return n?n.replace("{value}",e.toString()):e.toString()};new t.Animation({}).animate(t.createElement("div"),{duration:i,progress:function(t){e.style.animation="";var i=t.timeStamp/t.duration,n=o+(r-o)*i;n=o%1!=0||r%1!=0?parseFloat(n.toFixed(1)):Math.round(n),e.textContent=a(n)},end:function(){e.textContent=a(r)}})}}function je(e,t,o,r,n,a,l,s,h,c,d,p,u,g,m,y,f,v){void 0===a&&(a=!1),void 0===h&&(h=!1);var b,x,S,F,C,w={},L=0,A=0;if(t.text.length>1&&m){for(var P=0,M=t.text.length;P<M;P++)A=Math.max(A,i.measureText(t.text[P],o,y).width);L=i.measureText(t.text[0],o,y).width}C=t.text.length>1&&m?t.x+A/2-L/2:t.x,w={id:t.id,x:C,y:t.y,fill:r||"black","font-size":o.size||y.size,"font-style":o.fontStyle||y.fontStyle,"font-family":o.fontFamily||y.fontFamily,"font-weight":o.fontWeight||y.fontWeight,"text-anchor":t.anchor,labelRotation:t.labelRotation,transform:t.transform,opacity:o.opacity,"dominant-baseline":t.baseLine};var k="string"==typeof t.text?t.text:a?t.text[t.text.length-1]:t.text[0],D=d?d.x:0,T=d?d.y:0,R=e.createText(w,k,D,T);if("string"!=typeof t.text&&t.text.length>1)for(var P=1,M=t.text.length;P<M;P++)x=i.measureText(t.text[P],o,y).height,L=i.measureText(t.text[P],o,y).width,S=t.y+(a?-P*x:P*x),C=m?t.x+A/2-L/2:t.x,F=a?t.text[t.text.length-(P+1)]:t.text[P],g?b=e.createText(w,F,null,null,S,!0):(b=e.createTSpan({x:C,id:t.id,y:S},F),R.appendChild(b));return u||be(e instanceof i.CanvasRenderer,n,R,l,s,"x","y",null,null,h,!1,null,c,!1,t.labelRotation,f,v),R}function Ue(e){var o=e.element.clientWidth||e.element.offsetWidth,r=e.element.clientHeight;e.stockChart&&(o=e.stockChart.availableSize.width,r=e.stockChart.availableSize.height);var n,a=450;if("rangeNavigator"===e.getModuleName()){var l=e,s=l.tooltip.enable?35:0,h=l.periodSelectorSettings.periods.length?l.periodSelectorSettings.height:0;n=l.margin.top+l.margin.bottom+s;var c=i.measureText("tempString",l.labelStyle,l.themeStyle.axisLabelFont).height;if(a=(e.series.length?t.Browser.isDevice?80:120:(l.enableGrouping?55+c:40)+n)+h,l.disableRangeSelector&&(a=h),e.stockChart&&e.stockChart.chart&&"Outside"===e.stockChart.chart.axisCollections[1].labelPosition){var d=e.stockChart.chart.axisCollections[1].labelPadding+.5*e.stockChart.chart.axisCollections[1].lineStyle.width;e.width=(e.stockChart.availableSize.width-(e.stockChart.chart.axisCollections[1].maxLabelSize.width+d)).toString()}}e.availableSize=new i.Size(Ne(e.width,o)||o||600,Ne(e.height,r||a)||r||a),"chart"===e.getModuleName()&&(e.scaleX=1,e.scaleY=1)}function Ge(e){e.canvasRender=new i.CanvasRenderer(e.element.id),e.renderer=e.enableCanvas?e.canvasRender:new i.SvgRenderer(e.element.id),Ue(e),e.stockChart&&"chart"===e.getModuleName()?e.svgObject=e.stockChart.chartObject:e.stockChart&&"rangeNavigator"===e.getModuleName()&&e.stockChart.selectorObject?e.svgObject=e.stockChart.selectorObject:e.enableCanvas?e.svgObject=e.renderer.createCanvas({id:e.element.id+"_canvas",width:e.availableSize.width,height:e.availableSize.height}):(e.svgObject=e.renderer.createSvg({id:e.element.id+"_svg",width:e.availableSize.width,height:e.availableSize.height}),e.svgObject.setAttribute("aria-label","Interactive chart")),e.enableCanvas&&(e.renderer.ctx.direction=e.enableRtl?"rtl":"ltr")}function Xe(e,t,i,o,r){var n=[];switch(t.textOverflow){case"Wrap":n=Ze(e,i,t,o,e.indexOf(" ")<0||null,null,r);break;case"Trim":n.push(ze(i,e,t,o,r));break;default:n.push(e)}return n}function Ye(e,t){return"Near"===t.textAlignment?e.x:"Center"===t.textAlignment?e.x+e.width/2:e.x+e.width}function Ze(e,t,o,r,n,a,l,s){if(n)return qe(e,t,o,l);for(var h,c=e.split(" "),d="",p=[],u=i.measureText("chartMeasureText",o,l).height,g=0,m=0,y=c.length;m<y;m++){if(h=c[m],i.measureText(d.concat(""===d?"":" "+h),o,l).width<t)d=d.concat((""===d?"":" ")+h);else if(""!==d){if(g+=u,s&&g>s)return p[p.length-1]+="...",p;p.push(a?d:ze(t,d,o,r,l)),d=h}else{if(g+=u,s&&g>s)return p[p.length-1]+="...",p;p.push(a?h:ze(t,h,o,r,l))}if(d&&m===y-1){if(g+=u,s&&g>s)return p[p.length-1]+="...",p;p.push(a?d:ze(t,d,o,r,l))}}return p}function qe(e,t,o,r){var n=i.measureText(e,o,r).width,a=[];if(n>t){for(var l="",s=0,h=1;h<e.length;)l=e.substring(s,h),(n=i.measureText(l,o,r).width)<t?h++:n===t?(s=h,a.push(l),h++,l=""):n>t&&(l=l.slice(0,-1),s=h-1,a.push(l),l="");l.length>0&&a.push(l)}else a.push(e);return a}function Qe(e,t){for(var i=e.replace(t," "),o=e.match(t),r=" ",n=" ",a=0,l={0:"₀",1:"₁",2:"₂",3:"₃",4:"₄",5:"₅",6:"₆",7:"₇",8:"₈",9:"₉"},s={0:"⁰",1:"¹",2:"²",3:"³",4:"⁴",5:"⁵",6:"⁶",7:"⁷",8:"⁸",9:"⁹"},h=0;h<=i.length-1;h++)if(" "===i[h]){r=t===Qi?o[a].replace(/~/g,""):o[a].replace(/\^/g,"");for(var c=0;c<r.length;c++)n+=t===Qi?l[r[c]]:s[r[c]];a++}else n+=i[h];return n.trim()}function $e(e,t){return Number(t)===e.start?e.colors[0]:Number(t)===e.end?e.colors[e.colors.length-1]:Me(Ke(Number(t),e))}function Ke(e,t){var i=t.start,o=t.end,r=0,n=o-i;r=(e-i)/n;var a,l;if(t.colors.length<=2)a="#"===t.colors[0].charAt(0)?t.colors[0]:Te(t.colors[0]),l="#"===t.colors[t.colors.length-1].charAt(0)?t.colors[t.colors.length-1]:Te(t.colors[t.colors.length-1]);else{a="#"===t.colors[0].charAt(0)?t.colors[0]:Te(t.colors[0]),l="#"===t.colors[t.colors.length-1].charAt(0)?t.colors[t.colors.length-1]:Te(t.colors[t.colors.length-1]);for(var s=n/(t.colors.length-1),h=t.colors.length-1,c=[],d={},p=1;p<h;p++)d={b:i+p*s,color:t.colors[p]},c.push(d);for(var u=0;u<c.length;u++)i<=e&&e<=c[u].b&&0===u?(l="#"===c[u].color.charAt(0)?c[u].color:Te(c[u].color),r=e<=c[u].b?1-Math.abs((e-c[u].b)/s):(e-c[u].b)/s):c[u].b<=e&&e<=o&&u===c.length-1&&(a="#"===c[u].color.charAt(0)?c[u].color:Te(c[u].color),r=e<c[u].b?1-Math.abs((e-c[u].b)/s):(e-c[u].b)/s),u!==c.length-1&&u<c.length&&c[u].b<=e&&e<=c[u+1].b&&(a="#"===c[u].color.charAt(0)?c[u].color:Te(c[u].color),l="#"===c[u+1].color.charAt(0)?c[u+1].color:Te(c[u+1].color),r=Math.abs(e-c[u+1].b)/s)}return Je(r,a,l)}function Je(e,t,i){var o=i.split("#")[1],r=t.split("#")[1],n=et(e,parseInt(r.substr(0,2),16),parseInt(o.substr(0,2),16)),a=et(e,parseInt(r.substr(2,2),16),parseInt(o.substr(2,2),16)),l=et(e,parseInt(r.substr(4,2),16),parseInt(o.substr(4,2),16));return new Io(n,a,l)}function et(e,t,i){var o=i-t;return Math.round(t+o*e)}function tt(e,t){switch(e){case"Near":return t?"end":"start";case"Far":return t?"start":"end";default:return"middle"}}function it(e,t){var i=e.target.closest('[id^="'+t+'_template_"]');return i&&i.id?i.id:null}function ot(e,o,r,n){var a=ue(t.createElement("div",{id:e+r,styles:"position:absolute;visibility:hidden;top:0;left:0;pointer-events:none;"}),r,o.enableHtmlSanitizer?o.sanitize(o.legendSettings.template):o.legendSettings.template,o,"accumulationchart"===o.getModuleName()?o.visibleSeries[r].points[n.index]:null,o.visibleSeries[r],e+r,null);"accumulationchart"===o.getModuleName()&&(o.accumulationLegendModule.legendCollections[n.index].template=a);var l=me(a,o.redraw);return new i.Size(l.width,l.height)}function rt(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function nt(e,i){if(t.isNullOrUndefined(e))return e||"#000000";var o=e;if("#"!==e.charAt(0)&&(o=Te(e)),t.isNullOrUndefined(o))return e;3===(o=o.replace(/^#/,"")).length&&(o=o[0]+o[0]+o[1]+o[1]+o[2]+o[2]);var r=parseInt(o.substring(0,2),16),n=parseInt(o.substring(2,4),16),a=parseInt(o.substring(4,6),16),l=Math.min(1,i);return r=Math.round(r+(255-r)*l),n=Math.round(n+(255-n)*l),a=Math.round(a+(255-a)*l),"#"+rt(r)+rt(n)+rt(a)}function at(e,i){if(t.isNullOrUndefined(e))return e||"#000000";var o=e;if("#"!==e.charAt(0)&&(o=Te(e)),t.isNullOrUndefined(o))return e;3===(o=o.replace(/^#/,"")).length&&(o=o[0]+o[0]+o[1]+o[1]+o[2]+o[2]);var r=parseInt(o.substring(0,2),16),n=parseInt(o.substring(2,4),16),a=parseInt(o.substring(4,6),16),l=1+Math.max(-1,Math.min(1,i));return r=Math.round(r*l),n=Math.round(n*l),a=Math.round(a*l),r=Math.max(0,Math.min(255,r)),n=Math.max(0,Math.min(255,n)),a=Math.max(0,Math.min(255,a)),"#"+rt(r)+rt(n)+rt(a)}function lt(e){if(!e||0===e.length)return[];for(var i=[],o=0,r=e;o<r.length;o++){var n=r[o];if(null!==n.offset&&void 0!==n.offset&&!isNaN(n.offset)){var a=Math.min(100,Math.max(0,n.offset));if(n.color&&""!==n.color){var l=t.isNullOrUndefined(n.opacity)?1:Math.min(1,Math.max(0,n.opacity)),s=t.isNullOrUndefined(n.lighten)?0:Math.min(1,Math.max(0,n.lighten)),h=t.isNullOrUndefined(n.brighten)?0:Math.min(1,Math.max(-1,n.brighten));i.push({offset:a,color:n.color,opacity:l,lighten:s,brighten:h})}}}return i.sort(function(e,t){return e.offset-t.offset}),i}function st(e){return t.SanitizeHtmlHelper.sanitize(e)||"#000000"}function ht(e){if(!e)return null;var t=e,i=t.querySelector("defs");return i||(i=document.createElementNS("http://www.w3.org/2000/svg","defs"),t.appendChild(i)),i}function ct(e,t){if(e&&t){var i=e.querySelector("#"+t);i&&i.remove()}}function dt(e,t,i,o){var r=lt(t.gradientColorStop);if(0!==r.length){var n=ht(i);if(n){var a=o.id+"_series_"+e.index+"_linear_gradient";ct(n,a);var l="http://www.w3.org/2000/svg",s=document.createElementNS(l,"linearGradient");s.setAttribute("id",a),s.setAttribute("gradientUnits","objectBoundingBox"),s.setAttribute("x1",String(t.x1)),s.setAttribute("y1",String(t.y1)),s.setAttribute("x2",String(t.x2)),s.setAttribute("y2",String(t.y2));for(var h=0,c=r;h<c.length;h++){var d=c[h],p=document.createElementNS(l,"stop");p.setAttribute("offset",d.offset+"%");var u=st(d.color);d.lighten&&d.lighten>0&&d.lighten<=1&&(u=nt(u,d.lighten)),d.brighten&&d.brighten>=-1&&0!==d.brighten&&d.brighten<=1&&(u=at(u,d.brighten)),p.setAttribute("stop-color",u),p.setAttribute("stop-opacity",String(d.opacity)),s.appendChild(p)}n.appendChild(s),e.gradientId=a,e.interior="url(#"+a+")"}}}function pt(e,i,o,r){var n=lt(i.gradientColorStop);if(0!==n.length){var a=ht(o);if(a){var l=r.id+"_series_"+e.index+"_radial_gradient";ct(a,l);var s="http://www.w3.org/2000/svg",h=document.createElementNS(s,"radialGradient"),c=t.isNullOrUndefined(i.fx)?i.cx:i.fx,d=t.isNullOrUndefined(i.fy)?i.cy:i.fy;h.setAttribute("id",l),h.setAttribute("gradientUnits","objectBoundingBox"),h.setAttribute("cx",String(i.cx)),h.setAttribute("cy",String(i.cy)),h.setAttribute("fx",String(c)),h.setAttribute("fy",String(d)),h.setAttribute("r",String(i.r));for(var p=0,u=n;p<u.length;p++){var g=u[p],m=document.createElementNS(s,"stop");m.setAttribute("offset",g.offset+"%");var y=st(g.color);g.lighten&&g.lighten>0&&g.lighten<=1&&(y=nt(y,g.lighten)),g.brighten&&g.brighten>=-1&&0!==g.brighten&&g.brighten<=1&&(y=at(y,g.brighten)),m.setAttribute("stop-color",y),m.setAttribute("stop-opacity",String(g.opacity)),h.appendChild(m)}a.appendChild(h),e.gradientId=l,e.interior="url(#"+l+")"}}}function ut(e,i,o,r){if(!i&&e)for(var n=0,a=o;n<a.length;n++){var l=a[n];if(!t.isNullOrUndefined(l)){var s=l.linearGradient&&l.linearGradient.gradientColorStop&&l.linearGradient.gradientColorStop.length>0,h=l.radialGradient&&l.radialGradient.gradientColorStop&&l.radialGradient.gradientColorStop.length>0;s?dt(l,l.linearGradient,e,r):h&&pt(l,l.radialGradient,e,r)}}}function gt(e){var t;switch(e){case"Fabric":t=["#4472c4","#ed7d31","#ffc000","#70ad47","#5b9bd5","#c1c1c1","#6f6fe2","#e269ae","#9e480e","#997300"];break;case"Bootstrap4":case"Bootstrap":t=["#a16ee5","#f7ce69","#55a5c2","#7ddf1e","#ff6ea6","#7953ac","#b99b4f","#407c92","#5ea716","#b91c52"];break;case"HighContrastLight":case"HighContrast":t=["#79ECE4","#E98272","#DFE6B6","#C6E773","#BA98FF","#FA83C3","#00C27A","#43ACEF","#D681EF","#D8BC6E"];break;case"MaterialDark":t=["#9ECB08","#56AEFF","#C57AFF","#61EAA9","#EBBB3E","#F45C5C","#8A77FF","#63C7FF","#FF84B0","#F7C928"];break;case"FabricDark":t=["#4472c4","#ed7d31","#ffc000","#70ad47","#5b9bd5","#c1c1c1","#6f6fe2","#e269ae","#9e480e","#997300"];break;case"BootstrapDark":t=["#a16ee5","#f7ce69","#55a5c2","#7ddf1e","#ff6ea6","#7953ac","#b99b4f","#407c92","#5ea716","#b91c52"];break;case"Tailwind3":t=["#2F4074","#03B4B4","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind3Dark":t=["#8029F1","#1ABC9C","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind":t=["#5A61F6","#65A30D","#334155","#14B8A6","#8B5CF6","#0369A1","#F97316","#9333EA","#F59E0B","#15803D"];break;case"TailwindDark":t=["#8B5CF6","#22D3EE","#F87171","#4ADE80","#E879F9","#FCD34D","#F97316","#2DD4BF","#F472B6","#10B981"];break;case"Bootstrap5Dark":case"Bootstrap5":t=["#FD7E14","#6610F2","#6F42C1","#D63384","#DC3545","#FFC107","#198754","#0DCAF0"];break;case"FluentDark":case"Fluent":t=["#1AC9E6","#DA4CB2","#EDBB40","#AF4BCF","#FF7266","#1BD565","#EE993D","#5887FF","#EC548D","#7D39C0"];break;case"Fluent2":t=["#6200EE","#09AF74","#0076E5","#CB3587","#E7910F","#0364DE","#66CD15","#F3A93C","#107C10","#C19C00"];break;case"Fluent2Dark":case"Fluent2HighContrast":t=["#9BB449","#2A72D5","#43B786","#3F579A","#584EC6","#E85F9C","#6E7A89","#EA6266","#0B6A0B","#C19C00"];break;case"Material3":t=["#6355C7","#00AEE0","#FFB400","#F7523F","#963C70","#FD7400","#4BE0BC","#2196F5","#DE3D8A","#162F88"];break;case"Material3Dark":t=["#4EAAFF","#FA4EAB","#FFF500","#17EA58","#38FFE7","#FF9E45","#B3F32F","#B93CE4","#FC5664","#9B55FF"];break;default:t=["#00bdae","#404041","#357cd2","#e56590","#f8b883","#70ad47","#dd8abd","#7f84e8","#7bb4eb","#ea7a57"]}return t}function mt(e,t,o){var r,n="MaterialDark"===e?"#383838":"FabricDark"===e?"#242424":"#1b1b1b";switch(e){case"HighContrastLight":case"HighContrast":r={axisLabel:"#ffffff",axisTitle:"#ffffff",axisLine:"#ffffff",majorGridLine:"#BFBFBF",minorGridLine:"#969696",majorTickLine:"#BFBFBF",minorTickLine:"#969696",chartTitle:"#ffffff",legendLabel:"#ffffff",background:t?"#000000":"transparent",areaBorder:"#ffffff",errorBar:"#ffffff",crosshairLine:"#ffffff",crosshairBackground:"rgba(255, 255, 255, 0.1)",crosshairFill:"#ffffff",crosshairLabel:"#000000",tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696",markerShadow:"#BFBFBF",selectionRectFill:"rgba(255, 217, 57, 0.3)",selectionRectStroke:"#ffffff",selectionCircleStroke:"#FFD939",tabColor:"#FFD939",bearFillColor:"#2ecd71",bullFillColor:"#e74c3d",toolkitSelectionColor:"#FFD939",toolkitFill:"#737373",toolkitIconRectOverFill:"transparent",toolkitIconRectSelectionFill:"transparent",toolkitIconRect:new i.Rect(0,0,16,16),chartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#000000",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},seriesLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},datalabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"#000000",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":r={axisLabel:"#DADADA",axisTitle:"#ffffff",axisLine:" #6F6C6C",majorGridLine:"#414040",minorGridLine:"#514F4F",majorTickLine:"#414040",minorTickLine:" #4A4848",chartTitle:"#ffffff",legendLabel:"#DADADA",background: