Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-svg-base

Package Overview
Dependencies
Maintainers
3
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-svg-base - npm Package Compare versions

Comparing version 17.1.32-beta to 17.1.38

4

dist/ej2-svg-base.umd.min.js
/*!
* filename: ej2-svg-base.umd.min.js
* version : 17.1.32-beta
* version : 17.1.38
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved.

@@ -10,3 +10,3 @@ * Use of this code is subject to the terms of our license.

*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-base"],e):e(t.ej={},t.ej2Base)}(this,function(t,e){"use strict";function i(t){var e;switch(t){case"Highcontrast":e={tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696"};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":e={tooltipFill:"#F4F4F4",tooltipBoldLabel:"#282727",tooltipLightLabel:"#333232",tooltipHeaderLine:"#9A9A9A"};break;case"Bootstrap4":e={tooltipFill:"rgba(0, 0, 0, 0.9)",tooltipBoldLabel:"rgba(255, 255, 255)",tooltipLightLabel:"rgba(255, 255, 255, 0.9)",tooltipHeaderLine:"rgba(255, 255, 255, 0.2)"};break;default:e={tooltipFill:"rgba(0, 8, 22, 0.75)",tooltipBoldLabel:"#ffffff",tooltipLightLabel:"#dbdbdb",tooltipHeaderLine:"#ffffff"}}return e}function r(t,i){var r=document.getElementById("chartmeasuretext");return null===r&&(r=e.createElement("text",{id:"chartmeasuretext"}),document.body.appendChild(r)),r.innerHTML=t,r.style.position="absolute",r.style.fontSize=i.size,r.style.fontWeight=i.fontWeight,r.style.fontStyle=i.fontStyle,r.style.fontFamily=i.fontFamily,r.style.visibility="hidden",r.style.top="-100",r.style.left="0",r.style.whiteSpace="nowrap",r.style.lineHeight="normal",new u(r.clientWidth,r.clientHeight)}function o(t,e,i,r,o,n,s,a,h,l,d){var c="",p=i.x,u=i.y,y=i.x+i.width,f=i.y+i.height;return d=d||0,n?(c=(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u+" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e))).concat(" L "+y+" "+(f-e)+" Q "+y+" "+f+" "+(y-t)+" "+f),0!==o&&(c=(c=c.concat(" L "+(r.x+o/2)+" "+f)).concat(" L "+(h+d)+" "+(f+o-d)),c+=" Q "+h+" "+(f+o)+" "+(h-d)+" "+(f+o-d)),c=r.x-o/2>p?c.concat(" L "+(r.x-o/2)+" "+f+" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z"):0===o?c.concat(" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z"):c.concat(" L "+p+" "+(f+e)+" z")):s?(c=(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u+" L "+(r.x-o/2)+" "+u)).concat(" L "+(h-d)+" "+(r.y+d)),c=(c=(c+=" Q "+h+" "+r.y+" "+(h+d)+" "+(r.y+d)).concat(" L "+(r.x+o/2)+" "+u+" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e))).concat(" L "+y+" "+(f-e)+" Q "+y+" "+f+" "+(y-t)+" "+f+" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z")):a?(c=(c=(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u)).concat(" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e)+" L "+y+" "+(r.y-o/2))).concat(" L "+(y+o-d)+" "+(l-d)),c=(c=(c+=" Q "+(y+o)+" "+l+" "+(y+o-d)+" "+(l+d)).concat(" L "+y+" "+(r.y+o/2)+" L "+y+" "+(f-e)+" Q "+y+" "+f+" "+(y-t)+" "+f)).concat(" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z")):(c=(c=c.concat("M "+(p+t)+" "+u+" Q "+p+" "+u+" "+p+" "+(u+e)+" L "+p+" "+(r.y-o/2))).concat(" L "+(p-o+d)+" "+(l-d)),c=(c=(c+=" Q "+(p-o)+" "+l+" "+(p-o+d)+" "+(l+d)).concat(" L "+p+" "+(r.y+o/2)+" L "+p+" "+(f-e)+" Q "+p+" "+f+" "+(p+t)+" "+f)).concat(" L "+(y-t)+" "+f+" Q "+y+" "+f+" "+y+" "+(f-e)+" L "+y+" "+(u+e)+" Q "+y+" "+u+" "+(y-t)+" "+u+" z")),c}function n(t){return document.getElementById(t)}function s(t){var i=n(t);i&&e.remove(i)}function a(t,e,i,r,o,n){var s=new d(""),a=h(t,i,e,o,r),l=s["draw"+a.functionName](a.renderOption);return l.setAttribute("aria-label",n),l}function h(t,i,r,o,n){var s,a="Path",h=i.width,l=i.height,d=t.x,c=t.y,p=t.x+-h/2,u=t.y+-l/2;switch(r){case"Circle":case"Bubble":a="Ellipse",e.merge(o,{rx:h/2,ry:l/2,cx:d,cy:c});break;case"Cross":s="M "+p+" "+c+" L "+(d+h/2)+" "+c+" M "+d+" "+(c+l/2)+" L "+d+" "+(c+-l/2),e.merge(o,{d:s});break;case"HorizontalLine":s="M "+p+" "+c+" L "+(d+h/2)+" "+c,e.merge(o,{d:s});break;case"VerticalLine":s="M "+d+" "+(c+l/2)+" L "+d+" "+(c+-l/2),e.merge(o,{d:s});break;case"Diamond":s="M "+p+" "+c+" L "+d+" "+(c+-l/2)+" L "+(d+h/2)+" "+c+" L "+d+" "+(c+l/2)+" L "+p+" "+c+" z",e.merge(o,{d:s});break;case"Rectangle":s="M "+p+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+l/2)+" L "+p+" "+(c+l/2)+" L "+p+" "+(c+-l/2)+" z",e.merge(o,{d:s});break;case"Triangle":s="M "+p+" "+(c+l/2)+" L "+d+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+l/2)+" L "+p+" "+(c+l/2)+" z",e.merge(o,{d:s});break;case"InvertedTriangle":s="M "+(d+h/2)+" "+(c-l/2)+" L "+d+" "+(c+l/2)+" L "+(d-h/2)+" "+(c-l/2)+" L "+(d+h/2)+" "+(c-l/2)+" z",e.merge(o,{d:s});break;case"Pentagon":for(var y=void 0,f=void 0,g=0;g<=5;g++)y=h/2*Math.cos(Math.PI/180*(72*g)),f=l/2*Math.sin(Math.PI/180*(72*g)),s=0===g?"M "+(d+y)+" "+(c+f)+" ":s.concat("L "+(d+y)+" "+(c+f)+" ");s=s.concat("Z"),e.merge(o,{d:s});break;case"Image":a="Image",e.merge(o,{href:n,height:l,width:h,x:p,y:u})}return{renderOption:o,functionName:a}}function l(t,e,i,r){var o,n,s={},a=new d("");return s={id:t.id,x:t.x,y:t.y,fill:i,"font-size":e.size,"font-style":e.fontStyle,"font-family":e.fontFamily,"font-weight":e.fontWeight,"text-anchor":t.anchor,transform:t.transform,opacity:e.opacity,"dominant-baseline":t.baseLine},n="string"==typeof t.text?t.text:t.text[0],o=a.createText(s,n),r.appendChild(o),o}var d=function(){function t(t){this.svgLink="http://www.w3.org/2000/svg",this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createSvg=function(t){return e.isNullOrUndefined(t.id)&&(t.id=this.rootId+"_svg"),this.svgObj=document.getElementById(t.id),e.isNullOrUndefined(document.getElementById(t.id))&&(this.svgObj=document.createElementNS(this.svgLink,"svg")),this.svgObj=this.setElementAttributes(t,this.svgObj),this.setSVGSize(t.width,t.height),this.svgObj},t.prototype.setSVGSize=function(t,i){var r=document.getElementById(this.rootId),o=e.isNullOrUndefined(r)?null:r.getBoundingClientRect();e.isNullOrUndefined(this.width)||this.width<=0?this.svgObj.setAttribute("width",t?t.toString():o.width.toString()):this.svgObj.setAttribute("width",this.width.toString()),e.isNullOrUndefined(this.height)||this.height<=0?this.svgObj.setAttribute("height",i?i.toString():"450"):this.svgObj.setAttribute("height",this.height.toString())},t.prototype.drawPath=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"path")),e=this.setElementAttributes(t,e)},t.prototype.drawLine=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"line")),e=this.setElementAttributes(t,e)},t.prototype.drawRectangle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"rect")),e=this.setElementAttributes(t,e)},t.prototype.drawCircle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"circle")),e=this.setElementAttributes(t,e)},t.prototype.drawPolyline=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polyline")),e=this.setElementAttributes(t,e)},t.prototype.drawEllipse=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"ellipse")),e=this.setElementAttributes(t,e)},t.prototype.drawPolygon=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polygon")),e=this.setElementAttributes(t,e)},t.prototype.drawImage=function(t){var i=document.createElementNS(this.svgLink,"image");return i.setAttributeNS(null,"height",t.height.toString()),i.setAttributeNS(null,"width",t.width.toString()),i.setAttributeNS("http://www.w3.org/1999/xlink","href",t.href),i.setAttributeNS(null,"x",t.x.toString()),i.setAttributeNS(null,"y",t.y.toString()),i.setAttributeNS(null,"id",t.id),i.setAttributeNS(null,"visibility",t.visibility),e.isNullOrUndefined(this.getOptionValue(t,"clip-path"))||i.setAttributeNS(null,"clip-path",this.getOptionValue(t,"clip-path")),e.isNullOrUndefined(t.preserveAspectRatio)||i.setAttributeNS(null,"preserveAspectRatio",t.preserveAspectRatio),i},t.prototype.createText=function(t,i){var r=document.createElementNS(this.svgLink,"text");return r=this.setElementAttributes(t,r),e.isNullOrUndefined(i)||(r.textContent=i),r},t.prototype.createTSpan=function(t,i){var r=document.createElementNS(this.svgLink,"tspan");return r=this.setElementAttributes(t,r),e.isNullOrUndefined(i)||(r.textContent=i),r},t.prototype.createTitle=function(t){var e=document.createElementNS(this.svgLink,"title");return e.textContent=t,e},t.prototype.createDefs=function(){return document.createElementNS(this.svgLink,"defs")},t.prototype.createClipPath=function(t){var e=document.createElementNS(this.svgLink,"clipPath");return e=this.setElementAttributes(t,e)},t.prototype.createForeignObject=function(t){var e=document.createElementNS(this.svgLink,"foreignObject");return e=this.setElementAttributes(t,e)},t.prototype.createGroup=function(t){var e=document.createElementNS(this.svgLink,"g");return e=this.setElementAttributes(t,e)},t.prototype.createPattern=function(t,e){var i=document.createElementNS(this.svgLink,e);return i=this.setElementAttributes(t,i)},t.prototype.createRadialGradient=function(t,i,r){var o;if(e.isNullOrUndefined(t[0].colorStop))o=t[0].color.toString();else{var n={id:this.rootId+"_"+i+"radialGradient",cx:r.cx+"%",cy:r.cy+"%",r:r.r+"%",fx:r.fx+"%",fy:r.fy+"%"};this.drawGradient("radialGradient",n,t),o="url(#"+this.rootId+"_"+i+"radialGradient)"}return o},t.prototype.createLinearGradient=function(t,i,r){var o;if(e.isNullOrUndefined(t[0].colorStop))o=t[0].color.toString();else{var n={id:this.rootId+"_"+i+"linearGradient",x1:r.x1+"%",y1:r.y1+"%",x2:r.x2+"%",y2:r.y2+"%"};this.drawGradient("linearGradient",n,t),o="url(#"+this.rootId+"_"+i+"linearGradient)"}return o},t.prototype.drawGradient=function(t,e,i){var r=this.createDefs(),o=document.createElementNS(this.svgLink,t);o=this.setElementAttributes(e,o);for(var n=0;n<i.length;n++){var s=document.createElementNS(this.svgLink,"stop");s.setAttribute("offset",i[n].colorStop),s.setAttribute("stop-color",i[n].color),s.setAttribute("stop-opacity","1"),o.appendChild(s)}return r.appendChild(o),r},t.prototype.drawClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Rect";var r=this.drawRectangle(t);return i.appendChild(r),e.appendChild(i),e},t.prototype.drawCircularClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Circle";var r=this.drawCircle(t);return i.appendChild(r),e.appendChild(i),e},t.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=0;r<i.length;r++)e.setAttribute(i[r],t[i[r]]);return e},t}(),c=function(){function t(t){this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createCanvas=function(t){var e=document.createElement("canvas");return e.setAttribute("id",this.rootId+"_canvas"),this.ctx=e.getContext("2d"),this.canvasObj=e,this.setCanvasSize(t.width,t.height),this.canvasObj},t.prototype.setCanvasSize=function(t,i){var r=document.getElementById(this.rootId),o=e.isNullOrUndefined(r)?null:r.getBoundingClientRect();e.isNullOrUndefined(this.width)?this.canvasObj.setAttribute("width",t?t.toString():o.width.toString()):this.canvasObj.setAttribute("width",this.width.toString()),e.isNullOrUndefined(this.height)?this.canvasObj.setAttribute("height",i?i.toString():"450"):this.canvasObj.setAttribute("height",this.height.toString())},t.prototype.setAttributes=function(t){this.ctx.lineWidth=this.getOptionValue(t,"stroke-width");var i=this.getOptionValue(t,"stroke-dasharray");if(!e.isNullOrUndefined(i)){var r=i.split(",");this.ctx.setLineDash([parseInt(r[0],10),parseInt(r[1],10)])}this.ctx.strokeStyle=this.getOptionValue(t,"stroke")},t.prototype.drawLine=function(t){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.moveTo(t.x1,t.y1),this.ctx.lineTo(t.x2,t.y2),this.ctx.stroke(),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawRectangle=function(t){var e=this.ctx,i=t.rx;this.ctx.save(),this.ctx.beginPath(),this.ctx.globalAlpha=this.getOptionValue(t,"opacity"),this.setAttributes(t),this.ctx.rect(t.x,t.y,t.width,t.height),null!==i&&i>=0?this.drawCornerRadius(t):("none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,this.ctx.fillRect(t.x,t.y,t.width,t.height),this.ctx.stroke()),this.ctx.restore(),this.ctx=e,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawCornerRadius=function(t){var e=t.rx,i=t.x,r=t.y,o=t.width,n=t.height;"none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,o<2*e&&(e=o/2),n<2*e&&(e=n/2),this.ctx.beginPath(),this.ctx.moveTo(i+o-e,r),this.ctx.arcTo(i+o,r,i+o,r+n,e),this.ctx.arcTo(i+o,r+n,i,r+n,e),this.ctx.arcTo(i,r+n,i,r,e),this.ctx.arcTo(i,r,i+o,r,e),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawPath=function(t,e){var i=t.d.split(" "),r=this.getOptionValue(t,"stroke-width"),o=this.ctx,n=!0;this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=t.opacity?t.opacity:this.getOptionValue(t,"fill-opacity"),this.setAttributes(t);for(var s=0;s<i.length;s+=3){var a=parseFloat(i[s+1]),h=parseFloat(i[s+2]);switch(i[s]){case"M":t.innerR||t.cx||this.ctx.moveTo(a,h);break;case"L":t.innerR||this.ctx.lineTo(a,h);break;case"C":var l=parseFloat(i[s+3]),d=parseFloat(i[s+4]),c=parseFloat(i[s+5]),p=parseFloat(i[s+6]);this.ctx.bezierCurveTo(a,h,l,d,c,p),s+=4;break;case"A":t.innerR?n&&(this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.arc(t.x,t.y,t.innerR,t.end,t.start,!t.counterClockWise),n=!1):t.cx?this.ctx.arc(t.cx,t.cy,t.radius,0,2*Math.PI,t.counterClockWise):(this.ctx.moveTo(t.x,t.y),this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.lineTo(t.x,t.y)),s+=5;break;case"z":this.ctx.closePath()}}"none"!==t.fill&&void 0!==t.fill&&(this.ctx.fillStyle=t.fill,this.ctx.fill()),r>0&&this.ctx.stroke(),this.ctx.restore(),this.ctx=o,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawText=function(t,i){var r=this.getOptionValue(t,"font-weight");e.isNullOrUndefined(r)||"regular"!==r.toLowerCase()||(r="normal");var o=this.getOptionValue(t,"font-size"),n=this.getOptionValue(t,"font-family"),s=this.getOptionValue(t,"font-style").toLowerCase()+" "+r+" "+o+" "+n,a=this.getOptionValue(t,"text-anchor"),h=void 0!==t.opacity?t.opacity:1;"middle"===a&&(a="center"),this.ctx.save(),this.ctx.fillStyle=t.fill,this.ctx.font=s,this.ctx.textAlign=a,this.ctx.globalAlpha=h,t.baseline&&(this.ctx.textBaseline=t.baseline);this.ctx.translate(t.x+0,t.y),this.ctx.rotate(t.labelRotation*Math.PI/180),this.ctx.fillText(i,0,0),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawCircle=function(t){var e=this.ctx;this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.cx,t.cy,t.r,0,2*Math.PI),this.ctx.fillStyle=t.fill,this.ctx.globalAlpha=t.opacity,this.ctx.fill(),this.setAttributes(t),this.ctx.stroke(),this.ctx.restore(),this.ctx=e,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawPolyline=function(t){this.ctx.save(),this.ctx.beginPath();for(var e=t.points.split(" "),i=0;i<e.length-1;i++){var r=e[i].split(","),o=parseFloat(r[0]),n=parseFloat(r[1]);0===i?this.ctx.moveTo(o,n):this.ctx.lineTo(o,n)}this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawEllipse=function(t){var e=this.ctx,i=Math.max(t.rx,t.ry),r=t.rx/i,o=t.ry/i;this.ctx.save(),this.ctx.beginPath(),this.ctx.translate(t.cx,t.cy),this.ctx.save(),this.ctx.scale(r,o),this.ctx.arc(0,0,i,0,2*Math.PI,!1),this.ctx.fillStyle=t.fill,this.ctx.fill(),this.ctx.restore(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore(),this.ctx=e,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawImage=function(t){this.ctx.save();var i=new Image;e.isNullOrUndefined(t.href)||(i.src=t.href,this.ctx.drawImage(i,t.x,t.y,t.width,t.height)),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.createLinearGradient=function(t){var i;e.isNullOrUndefined(t[0].colorStop)||(i=this.ctx.createLinearGradient(0,0,0,this.canvasObj.height));return this.setGradientValues(t,i)},t.prototype.createRadialGradient=function(t){var i;e.isNullOrUndefined(t[0].colorStop)||(i=this.ctx.createRadialGradient(0,0,0,0,0,this.canvasObj.height));return this.setGradientValues(t,i)},t.prototype.setGradientValues=function(t,i){var r;if(e.isNullOrUndefined(t[0].colorStop))r=t[0].color.toString();else{for(var o=0;o<=t.length-1;o++){var n=t[o].color,s=t[o].colorStop.slice(0,-1),a=parseInt(s,10)/100;i.addColorStop(a,n)}r=i.toString()}return this.dataUrl=this.canvasObj.toDataURL(),r},t.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=Object.keys(t).map(function(e){return t[e]}),o=0;o<i.length;o++)e.setAttribute(i[o],r[o]);return e},t.prototype.updateCanvasAttributes=function(t){this.setElementAttributes(t,this.canvasObj);var i=this.ctx;if(!e.isNullOrUndefined(this.dataUrl)){var r=new Image;r.onload=function(){i.drawImage(r,0,0)},r.src=this.dataUrl}},t}(),p=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),u=function(){return function(t,e){this.width=t,this.height=e}}(),y=function(){return function(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r}}(),f=function(){return function(t,e){this.isRight=e,this.isBottom=t}}(),g=function(){return function(t){this.id=t}}(),m=function(t){function e(e,i,r,o,n,s,a){void 0===s&&(s="");var h=t.call(this,e)||this;return h.transform="",h.baseLine="auto",h.x=i,h.y=r,h.anchor=o,h.text=n,h.transform=s,h.baseLine=a,h}return p(e,t),e}(g),x=function(t){function e(e,i,r,o,n,s,a){var h=t.call(this,e)||this;return h.opacity=n,h.fill=i,h.stroke=o,h["stroke-width"]=r,h["stroke-dasharray"]=s,h.d=a,h}return p(e,t),e}(g),v=function(){return function(t,e){this.x=t,this.y=e}}(),b=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),w=function(t,e,i,r){var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s},S=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property(null)],i.prototype,"size",void 0),w([e.Property("")],i.prototype,"color",void 0),w([e.Property("Segoe UI")],i.prototype,"fontFamily",void 0),w([e.Property("Normal")],i.prototype,"fontWeight",void 0),w([e.Property("Normal")],i.prototype,"fontStyle",void 0),w([e.Property(1)],i.prototype,"opacity",void 0),i}(e.ChildProperty),L=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property("")],i.prototype,"color",void 0),w([e.Property(1)],i.prototype,"width",void 0),i}(e.ChildProperty),P=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property(0)],i.prototype,"x",void 0),w([e.Property(0)],i.prototype,"y",void 0),w([e.Property(0)],i.prototype,"width",void 0),w([e.Property(0)],i.prototype,"height",void 0),i}(e.ChildProperty),O=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property(0)],i.prototype,"x",void 0),w([e.Property(0)],i.prototype,"y",void 0),i}(e.ChildProperty),A=function(t){function h(e,i){return t.call(this,e,i)||this}return b(h,t),h.prototype.preRender=function(){this.initPrivateVariable(),this.removeSVG(),this.createTooltipElement()},h.prototype.initPrivateVariable=function(){this.renderer=new d(this.element.id),this.themeStyle=i(this.theme),this.formattedText=[],this.padding=5,this.isFirst=!0,this.markerPoint=[]},h.prototype.removeSVG=function(){var t=document.getElementById(this.element.id+"_svg"),i=document.getElementById(this.element.id+"parent_template");t&&t.parentNode&&e.remove(t),i&&i.parentNode&&e.remove(i)},h.prototype.render=function(){if(this.fadeOuted=!1,this.template)this.updateTemplateFn(),this.createTemplate(this.areaBounds,this.location);else{this.renderText(this.isFirst);var t={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",t);var i=this.renderTooltipElement(this.areaBounds,this.location);this.drawMarker(i.isBottom,i.isRight,this.markerSize)}this.trigger("loaded",{tooltip:this});var r=document.getElementById("chartmeasuretext");r&&e.remove(r)},h.prototype.createTooltipElement=function(){if(this.textElements=[],!this.template||this.shared){var t=this.renderer.createSvg({id:this.element.id+"_svg"});this.element.appendChild(t);var e=this.renderer.createGroup({id:this.element.id+"_group"});t.appendChild(e);var i=this.renderer.drawPath({id:this.element.id+"_path","stroke-width":this.border.width,fill:this.fill||this.themeStyle.tooltipFill,opacity:this.opacity,stroke:this.border.color});e.appendChild(i)}},h.prototype.drawMarker=function(t,e,i){if(this.shapes.length<=0)return null;for(var r,o=0,s=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),h=n(this.element.id+"_group"),l=2*this.marginX+i/2+(e?this.arrowPadding:0),d=0,c=this.shapes;d<c.length;d++){var p=c[d];r=new x(this.element.id+"_Trackball_"+o,this.palette[o],1,"#cccccc",1,null),this.markerPoint[o]&&s.appendChild(a(new v(l,this.markerPoint[o]-this.padding+(t?this.arrowPadding:0)),p,new u(i,i),"",r,null)),o++}h.appendChild(s)},h.prototype.renderTooltipElement=function(t,i){var s,a=n(this.element.id),h=new v(0,0),l=new v(0,0),d=n(this.element.id+"_svg"),c=n(this.element.id+"_group"),p=n(this.element.id+"_path"),u=!1,g=!1,m=!1,x=0,b=0;if(this.tipRadius=1,""!==this.header&&(this.elementSize.height+=this.marginY),this.content.length>1?(s=this.sharedTooltipLocation(t,this.location.x,this.location.y),u=!0):(s=this.tooltipLocation(t,i,h,l),this.inverted?x=(g=s.x<i.x+this.clipBounds.x)?0:this.arrowPadding:(m=!(u=s.y<i.y+this.clipBounds.y),b=u?0:this.arrowPadding)),""!==this.header){var w=r(this.header,this.textStyle).height+2*this.marginY+(m?this.arrowPadding:0),S="M "+(3*this.marginX+(g||u||m?0:this.arrowPadding))+" "+w+"L "+(s.width+(g||u||m?0:this.arrowPadding)-2*this.marginX)+" "+w,L=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:.8,stroke:this.themeStyle.tooltipHeaderLine,d:S});c.appendChild(L)}var P=this.border.width/2,O=new y(P+x,P+b,s.width-P,s.height-P);if(c.setAttribute("opacity","1"),!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(a,s.x,s.y):this.animateTooltipDiv(a,s),d.setAttribute("height",(s.height+this.border.width+(this.inverted?0:this.arrowPadding)).toString()),d.setAttribute("width",(s.width+this.border.width+(this.inverted?this.arrowPadding:0)).toString()),d.setAttribute("opacity","1"),p.setAttribute("d",o(this.rx,this.ry,O,h,this.arrowPadding,u,m,g,l.x,l.y,this.tipRadius)),this.enableShadow){var A=this.element.id+"_shadow";p.setAttribute("filter",e.Browser.isIE?"":"url(#"+A+")");var k='<filter id="'+A+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';k+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',k+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var C=this.renderer.createDefs();C.setAttribute("id","SVG_tooltip_definition"),c.appendChild(C),C.innerHTML=k}return p.setAttribute("stroke",this.border.color),this.changeText(new v(x,b),m,!g&&!u&&!m,s),new f(m,!g&&!u&&!m)},h.prototype.changeText=function(t,e,i,r){var o=document.getElementById(this.element.id+"_text");e&&o.setAttribute("transform","translate(0,"+this.arrowPadding+")"),i&&o.setAttribute("transform","translate("+this.arrowPadding+" 0)")},h.prototype.findFormattedText=function(){this.formattedText=[],""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()&&(this.formattedText=this.formattedText.concat(this.header)),this.formattedText=this.formattedText.concat(this.content)},h.prototype.renderText=function(t){var i,o,a,h,d=0,c=0,p=0,y=e.extend({},this.textStyle,null,!0).properties,f=n(this.element.id+"_group"),g="";this.findFormattedText();var x=this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim(),v=""!==x?this.marginY:0,b=!0,w=!0;this.markerPoint=[];var S=this.shapes.length>0?10:0,L=this.shapes.length>0?5:0,P="Normal",O=this.themeStyle.tooltipLightLabel,A=22/parseFloat("13px")*parseFloat(y.size);t||(s(this.element.id+"_text"),s(this.element.id+"_header_path"),s(this.element.id+"_trackball_group"),s("SVG_tooltip_definition"));for(var k=new m(this.element.id+"_text",2*this.marginX,2*this.marginY+2*this.padding+(2===this.marginY?3:0),"start",""),C=l(k,y,null,f),E=0,N=this.formattedText.length;E<N;E++){var T=this.formattedText[E].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g);if(""!==T[0]){r(this.formattedText[E],y),0===E&&""!==x||this.markerPoint.push((""!==x?this.marginY:0)+k.y+d);for(var _=0,R=T.length;_<R;_++){p=0,w=!0,d+=A;for(var I=0,j=(i=T[_].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,"<br>‎:<br>").split("<br>")).length;I<j;I++)a=i[I],/\S/.test(a)||""===a||(a=" "),(!w&&" "===a||""!==a.replace(/<b>/g,"").replace(/<\/b>/g,"").trim())&&(p+=" "!==a?4:0,w&&!b?(h={x:2*this.marginX+(S+L),dy:A+(w?v:0),fill:""},v=null):h=b&&w?{x:""===x?2*this.marginX+(S+L):2*this.marginX}:{},w=!1,o=this.renderer.createTSpan(h,""),C.appendChild(o),a.indexOf("<b>")>-1?(P="bold",O=this.themeStyle.tooltipBoldLabel,g="font-weight:"+P,y.fontWeight=P,o.setAttribute("fill",this.textStyle.color||O)):(g="bold"===P?"font-weight:"+P:"",y.fontWeight=P,o.setAttribute("fill",this.textStyle.color||O)),a.indexOf("</b>")>-1&&(P="Normal",O=this.themeStyle.tooltipLightLabel),o.textContent=a=a.replace(/<[a-zA-Z\/](.|\n)*?>/g,""),p+=r(a,y).width,""!==g&&o.setAttribute("style",g),b=!1);p-=4,c=Math.max(c,p)}}}this.elementSize=new u(c+(c>0?2*this.marginX:0),d),this.elementSize.width+=S+L;var B=C.childNodes[0];if(""!==x&&B){y.fontWeight="bold";var U=(this.elementSize.width+2*this.padding)/2-r(x,y).width/2;B.setAttribute("x",U.toString())}},h.prototype.createTemplate=function(t,i){var r={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",r);var o=document.getElementById(this.element.id),s=o.firstElementChild;if(s&&e.remove(s),r.cancel)e.remove(n(this.element.id+"_tooltip"));else{for(var a=this.templateFn(this.data),h=e.createElement("div",{id:this.element.id+"parent_template"});a&&a.length>0;)h.appendChild(a[0]);o.appendChild(h);var l=this.element.getBoundingClientRect();this.padding=0,this.elementSize=new u(l.width,l.height);var d=this.tooltipLocation(t,i,new v(0,0),new v(0,0));!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(this.element,d.x,d.y):this.animateTooltipDiv(this.element,d)}},h.prototype.sharedTooltipLocation=function(t,e,i){var r=this.elementSize.width+2*this.marginX,o=this.elementSize.height+2*this.marginY,n=new y(e+2*this.padding,i-o-this.padding,r,o);return n.y<t.y&&(n.y+=n.height+2*this.padding),n.x+n.width>t.x+t.width&&(n.x-=n.width+4*this.padding),n},h.prototype.tooltipLocation=function(t,e,i,r){var o=new v(e.x,e.y),n=this.elementSize.width+2*this.marginX,s=this.elementSize.height+2*this.marginY,a=this.offset,h=this.clipBounds.x,l=this.clipBounds.y,d=t.x,c=t.y;return this.inverted?(o=new v(o.x+h+a,o.y+l-this.elementSize.height/2-this.padding),i.y=r.y=s/2,(o.x+n+this.arrowPadding>d+t.width||this.isNegative)&&(o.x=(e.x>t.width?t.width:e.x)+h-a-(n+this.arrowPadding)),o.x<d&&(o.x=(e.x<0?0:e.x)+h+a),o.y<=c&&(i.y-=c-o.y,r.y-=c-o.y,o.y=c),o.y+s>=c+t.height&&(i.y+=o.y+s-(c+t.height),r.y+=o.y+s-(c+t.height),o.y-=o.y+s-(c+t.height)),i.y+this.arrowPadding/2>s-this.ry&&(i.y=s-this.ry-this.arrowPadding/2,r.y=s,this.tipRadius=0),i.y-this.arrowPadding/2<this.ry&&(i.y=this.ry+this.arrowPadding/2,r.y=0,this.tipRadius=0)):(o=new v(o.x+h-this.elementSize.width/2-this.padding,o.y+l-this.elementSize.height-2*this.padding-this.arrowPadding-a),i.x=r.x=n/2,(o.y<c||this.isNegative)&&(o.y=(e.y<0?0:e.y)+l+a),o.y+s+this.arrowPadding>c+t.height&&(o.y=(e.y>t.height?t.height:e.y)+l-this.elementSize.height-2*this.padding-this.arrowPadding-a),r.x=n/2,o.x<d&&(i.x-=d-o.x,r.x-=d-o.x,o.x=d),o.x+n>d+t.width&&(i.x+=o.x+n-(d+t.width),r.x+=o.x+n-(d+t.width),o.x-=o.x+n-(d+t.width)),i.x+this.arrowPadding/2>n-this.rx&&(i.x=n-this.rx-this.arrowPadding/2,r.x=n,this.tipRadius=0),i.x-this.arrowPadding/2<this.rx&&(i.x=this.rx+this.arrowPadding/2,r.x=0,this.tipRadius=0)),new y(o.x,o.y,n,s)},h.prototype.animateTooltipDiv=function(t,i){var r,o=this,n=parseFloat(t.style.left),s=parseFloat(t.style.top);new e.Animation({}).animate(t,{duration:300,progress:function(e){r=e.timeStamp/e.duration,t.style.animation=null,t.style.left=n+r*(i.x-n)+"px",t.style.top=s+r*(i.y-s)+"px"},end:function(e){o.updateDiv(t,i.x,i.y),o.trigger("animationComplete",{tooltip:o})}})},h.prototype.updateDiv=function(t,e,i){t.style.left=e+"px",t.style.top=i+"px"},h.prototype.updateTemplateFn=function(){if(this.template)try{document.querySelectorAll(this.template).length&&(this.templateFn=e.compile(document.querySelector(this.template).innerHTML.trim()))}catch(t){this.templateFn=e.compile(this.template)}},h.prototype.fadeOut=function(){var t=this,i=n(this.element.id);if(i){var r=i.firstChild,o=parseFloat(r.getAttribute("opacity"))||1;new e.Animation({}).animate(r,{duration:200,progress:function(e){t.progressAnimation(r,o,e.timeStamp/e.duration)},end:function(e){t.fadeOuted=!0,t.endAnimation(r)}})}},h.prototype.progressAnimation=function(t,e,i){t.style.animation="",t.setAttribute("opacity",(e-i).toString())},h.prototype.endAnimation=function(t){t.setAttribute("opacity","0"),this.template&&!this.shared&&(t.style.display="none"),this.trigger("animationComplete",{tooltip:this})},h.prototype.getPersistData=function(){return this.addOnPersist([])},h.prototype.getModuleName=function(){return"tooltip"},h.prototype.destroy=function(){t.prototype.destroy.call(this),this.element.classList.remove("e-tooltip")},h.prototype.onPropertyChanged=function(t,e){this.isFirst=!1,this.render()},w([e.Property(!1)],h.prototype,"enable",void 0),w([e.Property(!1)],h.prototype,"shared",void 0),w([e.Property(!0)],h.prototype,"enableShadow",void 0),w([e.Property(null)],h.prototype,"fill",void 0),w([e.Property("")],h.prototype,"header",void 0),w([e.Property(.75)],h.prototype,"opacity",void 0),w([e.Complex({size:"13px",fontWeight:"Normal",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"},S)],h.prototype,"textStyle",void 0),w([e.Property(null)],h.prototype,"template",void 0),w([e.Property(!0)],h.prototype,"enableAnimation",void 0),w([e.Property(!1)],h.prototype,"inverted",void 0),w([e.Property(!1)],h.prototype,"isNegative",void 0),w([e.Complex({color:"#cccccc",width:.5},L)],h.prototype,"border",void 0),w([e.Property([])],h.prototype,"content",void 0),w([e.Property(10)],h.prototype,"markerSize",void 0),w([e.Complex({x:0,y:0},O)],h.prototype,"clipBounds",void 0),w([e.Property([])],h.prototype,"palette",void 0),w([e.Property([])],h.prototype,"shapes",void 0),w([e.Complex({x:0,y:0},O)],h.prototype,"location",void 0),w([e.Property(0)],h.prototype,"offset",void 0),w([e.Property(2)],h.prototype,"rx",void 0),w([e.Property(2)],h.prototype,"ry",void 0),w([e.Property(5)],h.prototype,"marginX",void 0),w([e.Property(5)],h.prototype,"marginY",void 0),w([e.Property(12)],h.prototype,"arrowPadding",void 0),w([e.Property(null)],h.prototype,"data",void 0),w([e.Property("Material")],h.prototype,"theme",void 0),w([e.Complex({x:0,y:0,width:0,height:0},P)],h.prototype,"areaBounds",void 0),w([e.Event()],h.prototype,"tooltipRender",void 0),w([e.Event()],h.prototype,"loaded",void 0),w([e.Event()],h.prototype,"animationComplete",void 0),h=w([e.NotifyPropertyChanges],h)}(e.Component);t.TextStyle=S,t.TooltipBorder=L,t.AreaBounds=P,t.ToolLocation=O,t.Tooltip=A,t.getTooltipThemeColor=i,t.measureText=r,t.findDirection=o,t.Size=u,t.Rect=y,t.Side=f,t.CustomizeOption=g,t.TextOption=m,t.getElement=n,t.removeElement=s,t.drawSymbol=a,t.calculateShapes=h,t.PathOption=x,t.textElement=l,t.TooltipLocation=v,t.SvgRenderer=d,t.CanvasRenderer=c,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-base"],e):e(t.ej={},t.ej2Base)}(this,function(t,e){"use strict";function i(t){var e;switch(t){case"Highcontrast":e={tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696"};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":e={tooltipFill:"#F4F4F4",tooltipBoldLabel:"#282727",tooltipLightLabel:"#333232",tooltipHeaderLine:"#9A9A9A"};break;case"Bootstrap4":e={tooltipFill:"rgba(0, 0, 0, 0.9)",tooltipBoldLabel:"rgba(255, 255, 255)",tooltipLightLabel:"rgba(255, 255, 255, 0.9)",tooltipHeaderLine:"rgba(255, 255, 255, 0.2)"};break;default:e={tooltipFill:"rgba(0, 8, 22, 0.75)",tooltipBoldLabel:"#ffffff",tooltipLightLabel:"#dbdbdb",tooltipHeaderLine:"#ffffff"}}return e}function r(t,i){var r=document.getElementById("chartmeasuretext");return null===r&&(r=e.createElement("text",{id:"chartmeasuretext"}),document.body.appendChild(r)),r.innerHTML=t,r.style.position="absolute",r.style.fontSize=i.size,r.style.fontWeight=i.fontWeight,r.style.fontStyle=i.fontStyle,r.style.fontFamily=i.fontFamily,r.style.visibility="hidden",r.style.top="-100",r.style.left="0",r.style.whiteSpace="nowrap",r.style.lineHeight="normal",new u(r.clientWidth,r.clientHeight)}function o(t,e,i,r,o,n,s,a,h,l,d){var c="",p=i.x,u=i.y,y=i.x+i.width,f=i.y+i.height;return d=d||0,n?(c=(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u+" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e))).concat(" L "+y+" "+(f-e)+" Q "+y+" "+f+" "+(y-t)+" "+f),0!==o&&(c=(c=c.concat(" L "+(r.x+o/2)+" "+f)).concat(" L "+(h+d)+" "+(f+o-d)),c+=" Q "+h+" "+(f+o)+" "+(h-d)+" "+(f+o-d)),c=r.x-o/2>p?c.concat(" L "+(r.x-o/2)+" "+f+" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z"):0===o?c.concat(" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z"):c.concat(" L "+p+" "+(f+e)+" z")):s?(c=(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u+" L "+(r.x-o/2)+" "+u)).concat(" L "+(h-d)+" "+(r.y+d)),c=(c=(c+=" Q "+h+" "+r.y+" "+(h+d)+" "+(r.y+d)).concat(" L "+(r.x+o/2)+" "+u+" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e))).concat(" L "+y+" "+(f-e)+" Q "+y+" "+f+" "+(y-t)+" "+f+" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z")):a?(c=(c=(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u)).concat(" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e)+" L "+y+" "+(r.y-o/2))).concat(" L "+(y+o-d)+" "+(l-d)),c=(c=(c+=" Q "+(y+o)+" "+l+" "+(y+o-d)+" "+(l+d)).concat(" L "+y+" "+(r.y+o/2)+" L "+y+" "+(f-e)+" Q "+y+" "+f+" "+(y-t)+" "+f)).concat(" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z")):(c=(c=c.concat("M "+(p+t)+" "+u+" Q "+p+" "+u+" "+p+" "+(u+e)+" L "+p+" "+(r.y-o/2))).concat(" L "+(p-o+d)+" "+(l-d)),c=(c=(c+=" Q "+(p-o)+" "+l+" "+(p-o+d)+" "+(l+d)).concat(" L "+p+" "+(r.y+o/2)+" L "+p+" "+(f-e)+" Q "+p+" "+f+" "+(p+t)+" "+f)).concat(" L "+(y-t)+" "+f+" Q "+y+" "+f+" "+y+" "+(f-e)+" L "+y+" "+(u+e)+" Q "+y+" "+u+" "+(y-t)+" "+u+" z")),c}function n(t){return document.getElementById(t)}function s(t){var i=n(t);i&&e.remove(i)}function a(t,e,i,r,o,n){var s=new d(""),a=h(t,i,e,o,r),l=s["draw"+a.functionName](a.renderOption);return l.setAttribute("aria-label",n),l}function h(t,i,r,o,n){var s,a="Path",h=i.width,l=i.height,d=t.x,c=t.y,p=t.x+-h/2,u=t.y+-l/2;switch(r){case"Circle":case"Bubble":a="Ellipse",e.merge(o,{rx:h/2,ry:l/2,cx:d,cy:c});break;case"Cross":s="M "+p+" "+c+" L "+(d+h/2)+" "+c+" M "+d+" "+(c+l/2)+" L "+d+" "+(c+-l/2),e.merge(o,{d:s});break;case"HorizontalLine":s="M "+p+" "+c+" L "+(d+h/2)+" "+c,e.merge(o,{d:s});break;case"VerticalLine":s="M "+d+" "+(c+l/2)+" L "+d+" "+(c+-l/2),e.merge(o,{d:s});break;case"Diamond":s="M "+p+" "+c+" L "+d+" "+(c+-l/2)+" L "+(d+h/2)+" "+c+" L "+d+" "+(c+l/2)+" L "+p+" "+c+" z",e.merge(o,{d:s});break;case"Rectangle":s="M "+p+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+l/2)+" L "+p+" "+(c+l/2)+" L "+p+" "+(c+-l/2)+" z",e.merge(o,{d:s});break;case"Triangle":s="M "+p+" "+(c+l/2)+" L "+d+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+l/2)+" L "+p+" "+(c+l/2)+" z",e.merge(o,{d:s});break;case"InvertedTriangle":s="M "+(d+h/2)+" "+(c-l/2)+" L "+d+" "+(c+l/2)+" L "+(d-h/2)+" "+(c-l/2)+" L "+(d+h/2)+" "+(c-l/2)+" z",e.merge(o,{d:s});break;case"Pentagon":for(var y=void 0,f=void 0,g=0;g<=5;g++)y=h/2*Math.cos(Math.PI/180*(72*g)),f=l/2*Math.sin(Math.PI/180*(72*g)),s=0===g?"M "+(d+y)+" "+(c+f)+" ":s.concat("L "+(d+y)+" "+(c+f)+" ");s=s.concat("Z"),e.merge(o,{d:s});break;case"Image":a="Image",e.merge(o,{href:n,height:l,width:h,x:p,y:u})}return{renderOption:o,functionName:a}}function l(t,e,i,r){var o,n,s={},a=new d("");return s={id:t.id,x:t.x,y:t.y,fill:i,"font-size":e.size,"font-style":e.fontStyle,"font-family":e.fontFamily,"font-weight":e.fontWeight,"text-anchor":t.anchor,transform:t.transform,opacity:e.opacity,"dominant-baseline":t.baseLine},n="string"==typeof t.text?t.text:t.text[0],o=a.createText(s,n),r.appendChild(o),o}var d=function(){function t(t){this.svgLink="http://www.w3.org/2000/svg",this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createSvg=function(t){return e.isNullOrUndefined(t.id)&&(t.id=this.rootId+"_svg"),this.svgObj=document.getElementById(t.id),e.isNullOrUndefined(document.getElementById(t.id))&&(this.svgObj=document.createElementNS(this.svgLink,"svg")),this.svgObj=this.setElementAttributes(t,this.svgObj),this.setSVGSize(t.width,t.height),this.svgObj},t.prototype.setSVGSize=function(t,i){var r=document.getElementById(this.rootId),o=e.isNullOrUndefined(r)?null:r.getBoundingClientRect();e.isNullOrUndefined(this.width)||this.width<=0?this.svgObj.setAttribute("width",t?t.toString():o.width.toString()):this.svgObj.setAttribute("width",this.width.toString()),e.isNullOrUndefined(this.height)||this.height<=0?this.svgObj.setAttribute("height",i?i.toString():"450"):this.svgObj.setAttribute("height",this.height.toString())},t.prototype.drawPath=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"path")),e=this.setElementAttributes(t,e)},t.prototype.drawLine=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"line")),e=this.setElementAttributes(t,e)},t.prototype.drawRectangle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"rect")),e=this.setElementAttributes(t,e)},t.prototype.drawCircle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"circle")),e=this.setElementAttributes(t,e)},t.prototype.drawPolyline=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polyline")),e=this.setElementAttributes(t,e)},t.prototype.drawEllipse=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"ellipse")),e=this.setElementAttributes(t,e)},t.prototype.drawPolygon=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polygon")),e=this.setElementAttributes(t,e)},t.prototype.drawImage=function(t){var i=document.createElementNS(this.svgLink,"image");return i.setAttributeNS(null,"height",t.height.toString()),i.setAttributeNS(null,"width",t.width.toString()),i.setAttributeNS("http://www.w3.org/1999/xlink","href",t.href),i.setAttributeNS(null,"x",t.x.toString()),i.setAttributeNS(null,"y",t.y.toString()),i.setAttributeNS(null,"id",t.id),i.setAttributeNS(null,"visibility",t.visibility),e.isNullOrUndefined(this.getOptionValue(t,"clip-path"))||i.setAttributeNS(null,"clip-path",this.getOptionValue(t,"clip-path")),e.isNullOrUndefined(t.preserveAspectRatio)||i.setAttributeNS(null,"preserveAspectRatio",t.preserveAspectRatio),i},t.prototype.createText=function(t,i){var r=document.createElementNS(this.svgLink,"text");return r=this.setElementAttributes(t,r),e.isNullOrUndefined(i)||(r.textContent=i),r},t.prototype.createTSpan=function(t,i){var r=document.createElementNS(this.svgLink,"tspan");return r=this.setElementAttributes(t,r),e.isNullOrUndefined(i)||(r.textContent=i),r},t.prototype.createTitle=function(t){var e=document.createElementNS(this.svgLink,"title");return e.textContent=t,e},t.prototype.createDefs=function(){return document.createElementNS(this.svgLink,"defs")},t.prototype.createClipPath=function(t){var e=document.createElementNS(this.svgLink,"clipPath");return e=this.setElementAttributes(t,e)},t.prototype.createForeignObject=function(t){var e=document.createElementNS(this.svgLink,"foreignObject");return e=this.setElementAttributes(t,e)},t.prototype.createGroup=function(t){var e=document.createElementNS(this.svgLink,"g");return e=this.setElementAttributes(t,e)},t.prototype.createPattern=function(t,e){var i=document.createElementNS(this.svgLink,e);return i=this.setElementAttributes(t,i)},t.prototype.createRadialGradient=function(t,i,r){var o;if(e.isNullOrUndefined(t[0].colorStop))o=t[0].color.toString();else{var n={id:this.rootId+"_"+i+"radialGradient",cx:r.cx+"%",cy:r.cy+"%",r:r.r+"%",fx:r.fx+"%",fy:r.fy+"%"};this.drawGradient("radialGradient",n,t),o="url(#"+this.rootId+"_"+i+"radialGradient)"}return o},t.prototype.createLinearGradient=function(t,i,r){var o;if(e.isNullOrUndefined(t[0].colorStop))o=t[0].color.toString();else{var n={id:this.rootId+"_"+i+"linearGradient",x1:r.x1+"%",y1:r.y1+"%",x2:r.x2+"%",y2:r.y2+"%"};this.drawGradient("linearGradient",n,t),o="url(#"+this.rootId+"_"+i+"linearGradient)"}return o},t.prototype.drawGradient=function(t,e,i){var r=this.createDefs(),o=document.createElementNS(this.svgLink,t);o=this.setElementAttributes(e,o);for(var n=0;n<i.length;n++){var s=document.createElementNS(this.svgLink,"stop");s.setAttribute("offset",i[n].colorStop),s.setAttribute("stop-color",i[n].color),s.setAttribute("stop-opacity","1"),o.appendChild(s)}return r.appendChild(o),r},t.prototype.drawClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Rect";var r=this.drawRectangle(t);return i.appendChild(r),e.appendChild(i),e},t.prototype.drawCircularClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Circle";var r=this.drawCircle(t);return i.appendChild(r),e.appendChild(i),e},t.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=0;r<i.length;r++)e.setAttribute(i[r],t[i[r]]);return e},t}(),c=function(){function t(t){this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createCanvas=function(t){var e=document.createElement("canvas");return e.setAttribute("id",this.rootId+"_canvas"),this.ctx=e.getContext("2d"),this.canvasObj=e,this.setCanvasSize(t.width,t.height),this.canvasObj},t.prototype.setCanvasSize=function(t,i){var r=document.getElementById(this.rootId),o=e.isNullOrUndefined(r)?null:r.getBoundingClientRect();e.isNullOrUndefined(this.width)?this.canvasObj.setAttribute("width",t?t.toString():o.width.toString()):this.canvasObj.setAttribute("width",this.width.toString()),e.isNullOrUndefined(this.height)?this.canvasObj.setAttribute("height",i?i.toString():"450"):this.canvasObj.setAttribute("height",this.height.toString())},t.prototype.setAttributes=function(t){this.ctx.lineWidth=this.getOptionValue(t,"stroke-width");var i=this.getOptionValue(t,"stroke-dasharray");if(!e.isNullOrUndefined(i)){var r=i.split(",");this.ctx.setLineDash([parseInt(r[0],10),parseInt(r[1],10)])}this.ctx.strokeStyle=this.getOptionValue(t,"stroke")},t.prototype.drawLine=function(t){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.moveTo(t.x1,t.y1),this.ctx.lineTo(t.x2,t.y2),this.ctx.stroke(),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawRectangle=function(t){var e=this.ctx,i=t.rx;this.ctx.save(),this.ctx.beginPath(),this.ctx.globalAlpha=this.getOptionValue(t,"opacity"),this.setAttributes(t),this.ctx.rect(t.x,t.y,t.width,t.height),null!==i&&i>=0?this.drawCornerRadius(t):("none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,this.ctx.fillRect(t.x,t.y,t.width,t.height),this.ctx.stroke()),this.ctx.restore(),this.ctx=e,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawCornerRadius=function(t){var e=t.rx,i=t.x,r=t.y,o=t.width,n=t.height;"none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,o<2*e&&(e=o/2),n<2*e&&(e=n/2),this.ctx.beginPath(),this.ctx.moveTo(i+o-e,r),this.ctx.arcTo(i+o,r,i+o,r+n,e),this.ctx.arcTo(i+o,r+n,i,r+n,e),this.ctx.arcTo(i,r+n,i,r,e),this.ctx.arcTo(i,r,i+o,r,e),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawPath=function(t,e){var i=t.d.split(" "),r=this.getOptionValue(t,"stroke-width"),o=this.ctx,n=!0;this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=t.opacity?t.opacity:this.getOptionValue(t,"fill-opacity"),this.setAttributes(t);for(var s=0;s<i.length;s+=3){var a=parseFloat(i[s+1]),h=parseFloat(i[s+2]);switch(i[s]){case"M":t.innerR||t.cx||this.ctx.moveTo(a,h);break;case"L":t.innerR||this.ctx.lineTo(a,h);break;case"C":var l=parseFloat(i[s+3]),d=parseFloat(i[s+4]),c=parseFloat(i[s+5]),p=parseFloat(i[s+6]);this.ctx.bezierCurveTo(a,h,l,d,c,p),s+=4;break;case"A":t.innerR?n&&(this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.arc(t.x,t.y,t.innerR,t.end,t.start,!t.counterClockWise),n=!1):t.cx?this.ctx.arc(t.cx,t.cy,t.radius,0,2*Math.PI,t.counterClockWise):(this.ctx.moveTo(t.x,t.y),this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.lineTo(t.x,t.y)),s+=5;break;case"z":this.ctx.closePath()}}"none"!==t.fill&&void 0!==t.fill&&(this.ctx.fillStyle=t.fill,this.ctx.fill()),r>0&&this.ctx.stroke(),this.ctx.restore(),this.ctx=o,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawText=function(t,i){var r=this.getOptionValue(t,"font-weight");e.isNullOrUndefined(r)||"regular"!==r.toLowerCase()||(r="normal");var o=this.getOptionValue(t,"font-size"),n=this.getOptionValue(t,"font-family"),s=this.getOptionValue(t,"font-style").toLowerCase()+" "+r+" "+o+" "+n,a=this.getOptionValue(t,"text-anchor"),h=void 0!==t.opacity?t.opacity:1;"middle"===a&&(a="center"),this.ctx.save(),this.ctx.fillStyle=t.fill,this.ctx.font=s,this.ctx.textAlign=a,this.ctx.globalAlpha=h,t.baseline&&(this.ctx.textBaseline=t.baseline);this.ctx.translate(t.x+0,t.y),this.ctx.rotate(t.labelRotation*Math.PI/180),this.ctx.fillText(i,0,0),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawCircle=function(t){var e=this.ctx;this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.cx,t.cy,t.r,0,2*Math.PI),this.ctx.fillStyle=t.fill,this.ctx.globalAlpha=t.opacity,this.ctx.fill(),this.setAttributes(t),this.ctx.stroke(),this.ctx.restore(),this.ctx=e,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawPolyline=function(t){this.ctx.save(),this.ctx.beginPath();for(var e=t.points.split(" "),i=0;i<e.length-1;i++){var r=e[i].split(","),o=parseFloat(r[0]),n=parseFloat(r[1]);0===i?this.ctx.moveTo(o,n):this.ctx.lineTo(o,n)}this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawEllipse=function(t){var e=this.ctx,i=Math.max(t.rx,t.ry),r=t.rx/i,o=t.ry/i;this.ctx.save(),this.ctx.beginPath(),this.ctx.translate(t.cx,t.cy),this.ctx.save(),this.ctx.scale(r,o),this.ctx.arc(0,0,i,0,2*Math.PI,!1),this.ctx.fillStyle=t.fill,this.ctx.fill(),this.ctx.restore(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore(),this.ctx=e,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawImage=function(t){this.ctx.save();var i=new Image;e.isNullOrUndefined(t.href)||(i.src=t.href,this.ctx.drawImage(i,t.x,t.y,t.width,t.height)),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.createLinearGradient=function(t){var i;e.isNullOrUndefined(t[0].colorStop)||(i=this.ctx.createLinearGradient(0,0,0,this.canvasObj.height));return this.setGradientValues(t,i)},t.prototype.createRadialGradient=function(t){var i;e.isNullOrUndefined(t[0].colorStop)||(i=this.ctx.createRadialGradient(0,0,0,0,0,this.canvasObj.height));return this.setGradientValues(t,i)},t.prototype.setGradientValues=function(t,i){var r;if(e.isNullOrUndefined(t[0].colorStop))r=t[0].color.toString();else{for(var o=0;o<=t.length-1;o++){var n=t[o].color,s=t[o].colorStop.slice(0,-1),a=parseInt(s,10)/100;i.addColorStop(a,n)}r=i.toString()}return this.dataUrl=this.canvasObj.toDataURL(),r},t.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=Object.keys(t).map(function(e){return t[e]}),o=0;o<i.length;o++)e.setAttribute(i[o],r[o]);return e},t.prototype.updateCanvasAttributes=function(t){this.setElementAttributes(t,this.canvasObj);var i=this.ctx;if(!e.isNullOrUndefined(this.dataUrl)){var r=new Image;r.onload=function(){i.drawImage(r,0,0)},r.src=this.dataUrl}},t}(),p=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),u=function(){return function(t,e){this.width=t,this.height=e}}(),y=function(){return function(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r}}(),f=function(){return function(t,e){this.isRight=e,this.isBottom=t}}(),g=function(){return function(t){this.id=t}}(),m=function(t){function e(e,i,r,o,n,s,a){void 0===s&&(s="");var h=t.call(this,e)||this;return h.transform="",h.baseLine="auto",h.x=i,h.y=r,h.anchor=o,h.text=n,h.transform=s,h.baseLine=a,h}return p(e,t),e}(g),x=function(t){function e(e,i,r,o,n,s,a){var h=t.call(this,e)||this;return h.opacity=n,h.fill=i,h.stroke=o,h["stroke-width"]=r,h["stroke-dasharray"]=s,h.d=a,h}return p(e,t),e}(g),v=function(){return function(t,e){this.x=t,this.y=e}}(),b=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),w=function(t,e,i,r){var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s},S=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property(null)],i.prototype,"size",void 0),w([e.Property("")],i.prototype,"color",void 0),w([e.Property("Segoe UI")],i.prototype,"fontFamily",void 0),w([e.Property("Normal")],i.prototype,"fontWeight",void 0),w([e.Property("Normal")],i.prototype,"fontStyle",void 0),w([e.Property(1)],i.prototype,"opacity",void 0),i}(e.ChildProperty),L=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property("")],i.prototype,"color",void 0),w([e.Property(1)],i.prototype,"width",void 0),i}(e.ChildProperty),P=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property(0)],i.prototype,"x",void 0),w([e.Property(0)],i.prototype,"y",void 0),w([e.Property(0)],i.prototype,"width",void 0),w([e.Property(0)],i.prototype,"height",void 0),i}(e.ChildProperty),O=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property(0)],i.prototype,"x",void 0),w([e.Property(0)],i.prototype,"y",void 0),i}(e.ChildProperty),A=function(t){function h(e,i){return t.call(this,e,i)||this}return b(h,t),h.prototype.preRender=function(){this.initPrivateVariable(),this.removeSVG(),this.createTooltipElement()},h.prototype.initPrivateVariable=function(){this.renderer=new d(this.element.id),this.themeStyle=i(this.theme),this.formattedText=[],this.padding=5,this.isFirst=!0,this.markerPoint=[]},h.prototype.removeSVG=function(){var t=document.getElementById(this.element.id+"_svg"),i=document.getElementById(this.element.id+"parent_template");t&&t.parentNode&&e.remove(t),i&&i.parentNode&&e.remove(i)},h.prototype.render=function(){if(this.fadeOuted=!1,this.template)this.updateTemplateFn(),this.createTemplate(this.areaBounds,this.location);else{this.renderText(this.isFirst);var t={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",t);var i=this.renderTooltipElement(this.areaBounds,this.location);this.drawMarker(i.isBottom,i.isRight,this.markerSize)}this.trigger("loaded",{tooltip:this});var r=document.getElementById("chartmeasuretext");r&&e.remove(r)},h.prototype.createTooltipElement=function(){if(this.textElements=[],!this.template||this.shared){var t=this.renderer.createSvg({id:this.element.id+"_svg"});this.element.appendChild(t);var e=this.renderer.createGroup({id:this.element.id+"_group"});t.appendChild(e);var i=this.renderer.drawPath({id:this.element.id+"_path","stroke-width":"Bootstrap4"===this.theme?0:this.border.width,fill:this.fill||this.themeStyle.tooltipFill,opacity:"Bootstrap4"===this.theme?.9:this.opacity,stroke:this.border.color});e.appendChild(i)}},h.prototype.drawMarker=function(t,e,i){if(this.shapes.length<=0)return null;for(var r,o=0,s=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),h=n(this.element.id+"_group"),l=2*this.marginX+i/2+(e?this.arrowPadding:0),d=0,c=this.shapes;d<c.length;d++){var p=c[d];r=new x(this.element.id+"_Trackball_"+o,this.palette[o],1,"#cccccc",1,null),this.markerPoint[o]&&s.appendChild(a(new v(l,this.markerPoint[o]-this.padding+(t?this.arrowPadding:0)),p,new u(i,i),"",r,null)),o++}h.appendChild(s)},h.prototype.renderTooltipElement=function(t,i){var s,a=n(this.element.id),h=new v(0,0),l=new v(0,0),d=n(this.element.id+"_svg"),c=n(this.element.id+"_group"),p=n(this.element.id+"_path"),u=!1,g=!1,m=!1,x=0,b=0;if(this.tipRadius=1,""!==this.header&&(this.elementSize.height+=this.marginY),this.content.length>1?(s=this.sharedTooltipLocation(t,this.location.x,this.location.y),u=!0):(s=this.tooltipLocation(t,i,h,l),this.inverted?x=(g=s.x<i.x+this.clipBounds.x)?0:this.arrowPadding:(m=!(u=s.y<i.y+this.clipBounds.y),b=u?0:this.arrowPadding)),""!==this.header){var w=r(this.header,this.textStyle).height+2*this.marginY+(m?this.arrowPadding:0),S="M "+(3*this.marginX+(g||u||m?0:this.arrowPadding))+" "+w+"L "+(s.width+(g||u||m?0:this.arrowPadding)-2*this.marginX)+" "+w,L=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:.8,stroke:this.themeStyle.tooltipHeaderLine,d:S});c.appendChild(L)}var P=this.border.width/2,O=new y(P+x,P+b,s.width-P,s.height-P);if(c.setAttribute("opacity","1"),!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(a,s.x,s.y):this.animateTooltipDiv(a,s),d.setAttribute("height",(s.height+this.border.width+(this.inverted?0:this.arrowPadding)).toString()),d.setAttribute("width",(s.width+this.border.width+(this.inverted?this.arrowPadding:0)).toString()),d.setAttribute("opacity","1"),p.setAttribute("d",o(this.rx,this.ry,O,h,this.arrowPadding,u,m,g,l.x,l.y,this.tipRadius)),this.enableShadow&&"Bootstrap4"!==this.theme){var A=this.element.id+"_shadow";p.setAttribute("filter",e.Browser.isIE?"":"url(#"+A+")");var k='<filter id="'+A+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';k+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',k+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var C=this.renderer.createDefs();C.setAttribute("id","SVG_tooltip_definition"),c.appendChild(C),C.innerHTML=k}return p.setAttribute("stroke",this.border.color),this.changeText(new v(x,b),m,!g&&!u&&!m,s),new f(m,!g&&!u&&!m)},h.prototype.changeText=function(t,e,i,r){var o=document.getElementById(this.element.id+"_text");e&&o.setAttribute("transform","translate(0,"+this.arrowPadding+")"),i&&o.setAttribute("transform","translate("+this.arrowPadding+" 0)")},h.prototype.findFormattedText=function(){this.formattedText=[],""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()&&(this.formattedText=this.formattedText.concat(this.header)),this.formattedText=this.formattedText.concat(this.content)},h.prototype.renderText=function(t){var i,o,a,h,d=0,c=0,p=0,y=e.extend({},this.textStyle,null,!0).properties,f=n(this.element.id+"_group"),g="";this.findFormattedText();var x=this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim(),v=""!==x?this.marginY:0,b=!0,w=!0;this.markerPoint=[];var S=this.shapes.length>0?10:0,L=this.shapes.length>0?5:0,P="Normal",O=this.themeStyle.tooltipLightLabel,A=22/parseFloat("13px")*parseFloat(y.size);t||(s(this.element.id+"_text"),s(this.element.id+"_header_path"),s(this.element.id+"_trackball_group"),s("SVG_tooltip_definition"));for(var k=new m(this.element.id+"_text",2*this.marginX,2*this.marginY+2*this.padding+(2===this.marginY?3:0),"start",""),C=l(k,y,null,f),E=0,N=this.formattedText.length;E<N;E++){var T=this.formattedText[E].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g);if(""!==T[0]){r(this.formattedText[E],y),0===E&&""!==x||this.markerPoint.push((""!==x?this.marginY:0)+k.y+d);for(var _=0,R=T.length;_<R;_++){p=0,w=!0,d+=A;for(var I=0,B=(i=T[_].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,"<br>‎:<br>").split("<br>")).length;I<B;I++)a=i[I],/\S/.test(a)||""===a||(a=" "),(!w&&" "===a||""!==a.replace(/<b>/g,"").replace(/<\/b>/g,"").trim())&&(p+=" "!==a?4:0,w&&!b?(h={x:2*this.marginX+(S+L),dy:A+(w?v:0),fill:""},v=null):h=b&&w?{x:""===x?2*this.marginX+(S+L):2*this.marginX}:{},w=!1,o=this.renderer.createTSpan(h,""),C.appendChild(o),a.indexOf("<b>")>-1?(P="bold",O=this.themeStyle.tooltipBoldLabel,g="font-weight:"+P,y.fontWeight=P,o.setAttribute("fill",this.textStyle.color||O)):(g="bold"===P?"font-weight:"+P:"",y.fontWeight=P,o.setAttribute("fill",this.textStyle.color||O)),a.indexOf("</b>")>-1&&(P="Normal",O=this.themeStyle.tooltipLightLabel),o.textContent=a=a.replace(/<[a-zA-Z\/](.|\n)*?>/g,""),p+=r(a,y).width,""!==g&&o.setAttribute("style",g),b=!1);p-=4,c=Math.max(c,p)}}}this.elementSize=new u(c+(c>0?2*this.marginX:0),d),this.elementSize.width+=S+L;var j=C.childNodes[0];if(""!==x&&j){y.fontWeight="bold";var U=(this.elementSize.width+2*this.padding)/2-r(x,y).width/2;j.setAttribute("x",U.toString())}},h.prototype.createTemplate=function(t,i){var r={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",r);var o=document.getElementById(this.element.id),s=o.firstElementChild;if(s&&e.remove(s),r.cancel)e.remove(n(this.element.id+"_tooltip"));else{for(var a=this.templateFn(this.data),h=e.createElement("div",{id:this.element.id+"parent_template"});a&&a.length>0;)h.appendChild(a[0]);o.appendChild(h);var l=this.element.getBoundingClientRect();this.padding=0,this.elementSize=new u(l.width,l.height);var d=this.tooltipLocation(t,i,new v(0,0),new v(0,0));!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(this.element,d.x,d.y):this.animateTooltipDiv(this.element,d)}},h.prototype.sharedTooltipLocation=function(t,e,i){var r=this.elementSize.width+2*this.marginX,o=this.elementSize.height+2*this.marginY,n=new y(e+2*this.padding,i-o-this.padding,r,o);return n.y<t.y&&(n.y+=n.height+2*this.padding),n.x+n.width>t.x+t.width&&(n.x-=n.width+4*this.padding),n},h.prototype.tooltipLocation=function(t,e,i,r){var o=new v(e.x,e.y),n=this.elementSize.width+2*this.marginX,s=this.elementSize.height+2*this.marginY,a=this.offset,h=this.clipBounds.x,l=this.clipBounds.y,d=t.x,c=t.y;return this.inverted?(o=new v(o.x+h+a,o.y+l-this.elementSize.height/2-this.padding),i.y=r.y=s/2,(o.x+n+this.arrowPadding>d+t.width||this.isNegative)&&(o.x=(e.x>t.width?t.width:e.x)+h-a-(n+this.arrowPadding)),o.x<d&&(o.x=(e.x<0?0:e.x)+h+a),o.y<=c&&(i.y-=c-o.y,r.y-=c-o.y,o.y=c),o.y+s>=c+t.height&&(i.y+=o.y+s-(c+t.height),r.y+=o.y+s-(c+t.height),o.y-=o.y+s-(c+t.height)),i.y+this.arrowPadding/2>s-this.ry&&(i.y=s-this.ry-this.arrowPadding/2,r.y=s,this.tipRadius=0),i.y-this.arrowPadding/2<this.ry&&(i.y=this.ry+this.arrowPadding/2,r.y=0,this.tipRadius=0)):(o=new v(o.x+h-this.elementSize.width/2-this.padding,o.y+l-this.elementSize.height-2*this.padding-this.arrowPadding-a),i.x=r.x=n/2,(o.y<c||this.isNegative)&&(o.y=(e.y<0?0:e.y)+l+a),o.y+s+this.arrowPadding>c+t.height&&(o.y=(e.y>t.height?t.height:e.y)+l-this.elementSize.height-2*this.padding-this.arrowPadding-a),r.x=n/2,o.x<d&&(i.x-=d-o.x,r.x-=d-o.x,o.x=d),o.x+n>d+t.width&&(i.x+=o.x+n-(d+t.width),r.x+=o.x+n-(d+t.width),o.x-=o.x+n-(d+t.width)),i.x+this.arrowPadding/2>n-this.rx&&(i.x=n-this.rx-this.arrowPadding/2,r.x=n,this.tipRadius=0),i.x-this.arrowPadding/2<this.rx&&(i.x=this.rx+this.arrowPadding/2,r.x=0,this.tipRadius=0)),new y(o.x,o.y,n,s)},h.prototype.animateTooltipDiv=function(t,i){var r,o=this,n=parseFloat(t.style.left),s=parseFloat(t.style.top);new e.Animation({}).animate(t,{duration:300,progress:function(e){r=e.timeStamp/e.duration,t.style.animation=null,t.style.left=n+r*(i.x-n)+"px",t.style.top=s+r*(i.y-s)+"px"},end:function(e){o.updateDiv(t,i.x,i.y),o.trigger("animationComplete",{tooltip:o})}})},h.prototype.updateDiv=function(t,e,i){t.style.left=e+"px",t.style.top=i+"px"},h.prototype.updateTemplateFn=function(){if(this.template)try{document.querySelectorAll(this.template).length&&(this.templateFn=e.compile(document.querySelector(this.template).innerHTML.trim()))}catch(t){this.templateFn=e.compile(this.template)}},h.prototype.fadeOut=function(){var t=this,i=n(this.element.id);if(i){var r=i.firstChild,o=parseFloat(r.getAttribute("opacity"))||1;new e.Animation({}).animate(r,{duration:200,progress:function(e){t.progressAnimation(r,o,e.timeStamp/e.duration)},end:function(e){t.fadeOuted=!0,t.endAnimation(r)}})}},h.prototype.progressAnimation=function(t,e,i){t.style.animation="",t.setAttribute("opacity",(e-i).toString())},h.prototype.endAnimation=function(t){t.setAttribute("opacity","0"),this.template&&!this.shared&&(t.style.display="none"),this.trigger("animationComplete",{tooltip:this})},h.prototype.getPersistData=function(){return this.addOnPersist([])},h.prototype.getModuleName=function(){return"tooltip"},h.prototype.destroy=function(){t.prototype.destroy.call(this),this.element.classList.remove("e-tooltip")},h.prototype.onPropertyChanged=function(t,e){this.isFirst=!1,this.render()},w([e.Property(!1)],h.prototype,"enable",void 0),w([e.Property(!1)],h.prototype,"shared",void 0),w([e.Property(!0)],h.prototype,"enableShadow",void 0),w([e.Property(null)],h.prototype,"fill",void 0),w([e.Property("")],h.prototype,"header",void 0),w([e.Property(.75)],h.prototype,"opacity",void 0),w([e.Complex({size:"13px",fontWeight:"Normal",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"},S)],h.prototype,"textStyle",void 0),w([e.Property(null)],h.prototype,"template",void 0),w([e.Property(!0)],h.prototype,"enableAnimation",void 0),w([e.Property(!1)],h.prototype,"inverted",void 0),w([e.Property(!1)],h.prototype,"isNegative",void 0),w([e.Complex({color:"#cccccc",width:.5},L)],h.prototype,"border",void 0),w([e.Property([])],h.prototype,"content",void 0),w([e.Property(10)],h.prototype,"markerSize",void 0),w([e.Complex({x:0,y:0},O)],h.prototype,"clipBounds",void 0),w([e.Property([])],h.prototype,"palette",void 0),w([e.Property([])],h.prototype,"shapes",void 0),w([e.Complex({x:0,y:0},O)],h.prototype,"location",void 0),w([e.Property(0)],h.prototype,"offset",void 0),w([e.Property(2)],h.prototype,"rx",void 0),w([e.Property(2)],h.prototype,"ry",void 0),w([e.Property(5)],h.prototype,"marginX",void 0),w([e.Property(5)],h.prototype,"marginY",void 0),w([e.Property(12)],h.prototype,"arrowPadding",void 0),w([e.Property(null)],h.prototype,"data",void 0),w([e.Property("Material")],h.prototype,"theme",void 0),w([e.Complex({x:0,y:0,width:0,height:0},P)],h.prototype,"areaBounds",void 0),w([e.Event()],h.prototype,"tooltipRender",void 0),w([e.Event()],h.prototype,"loaded",void 0),w([e.Event()],h.prototype,"animationComplete",void 0),h=w([e.NotifyPropertyChanges],h)}(e.Component);t.TextStyle=S,t.TooltipBorder=L,t.AreaBounds=P,t.ToolLocation=O,t.Tooltip=A,t.getTooltipThemeColor=i,t.measureText=r,t.findDirection=o,t.Size=u,t.Rect=y,t.Side=f,t.CustomizeOption=g,t.TextOption=m,t.getElement=n,t.removeElement=s,t.drawSymbol=a,t.calculateShapes=h,t.PathOption=x,t.textElement=l,t.TooltipLocation=v,t.SvgRenderer=d,t.CanvasRenderer=c,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=ej2-svg-base.umd.min.js.map
/*!
* filename: ej2-svg-base.min.js
* version : 17.1.32-beta
* version : 17.1.38
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved.

@@ -10,3 +10,3 @@ * Use of this code is subject to the terms of our license.

*/
this.ej=this.ej||{},this.ej.svgbase=function(t,e){"use strict";function i(t){var e;switch(t){case"Highcontrast":e={tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696"};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":e={tooltipFill:"#F4F4F4",tooltipBoldLabel:"#282727",tooltipLightLabel:"#333232",tooltipHeaderLine:"#9A9A9A"};break;case"Bootstrap4":e={tooltipFill:"rgba(0, 0, 0, 0.9)",tooltipBoldLabel:"rgba(255, 255, 255)",tooltipLightLabel:"rgba(255, 255, 255, 0.9)",tooltipHeaderLine:"rgba(255, 255, 255, 0.2)"};break;default:e={tooltipFill:"rgba(0, 8, 22, 0.75)",tooltipBoldLabel:"#ffffff",tooltipLightLabel:"#dbdbdb",tooltipHeaderLine:"#ffffff"}}return e}function r(t,i){var r=document.getElementById("chartmeasuretext");return null===r&&(r=e.createElement("text",{id:"chartmeasuretext"}),document.body.appendChild(r)),r.innerHTML=t,r.style.position="absolute",r.style.fontSize=i.size,r.style.fontWeight=i.fontWeight,r.style.fontStyle=i.fontStyle,r.style.fontFamily=i.fontFamily,r.style.visibility="hidden",r.style.top="-100",r.style.left="0",r.style.whiteSpace="nowrap",r.style.lineHeight="normal",new u(r.clientWidth,r.clientHeight)}function o(t,e,i,r,o,n,s,a,h,l,d){var c="",p=i.x,u=i.y,y=i.x+i.width,g=i.y+i.height;return d=d||0,n?(c=(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u+" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e))).concat(" L "+y+" "+(g-e)+" Q "+y+" "+g+" "+(y-t)+" "+g),0!==o&&(c=(c=c.concat(" L "+(r.x+o/2)+" "+g)).concat(" L "+(h+d)+" "+(g+o-d)),c+=" Q "+h+" "+(g+o)+" "+(h-d)+" "+(g+o-d)),c=r.x-o/2>p?c.concat(" L "+(r.x-o/2)+" "+g+" L "+(p+t)+" "+g+" Q "+p+" "+g+" "+p+" "+(g-e)+" z"):0===o?c.concat(" L "+(p+t)+" "+g+" Q "+p+" "+g+" "+p+" "+(g-e)+" z"):c.concat(" L "+p+" "+(g+e)+" z")):s?(c=(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u+" L "+(r.x-o/2)+" "+u)).concat(" L "+(h-d)+" "+(r.y+d)),c=(c=(c+=" Q "+h+" "+r.y+" "+(h+d)+" "+(r.y+d)).concat(" L "+(r.x+o/2)+" "+u+" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e))).concat(" L "+y+" "+(g-e)+" Q "+y+" "+g+" "+(y-t)+" "+g+" L "+(p+t)+" "+g+" Q "+p+" "+g+" "+p+" "+(g-e)+" z")):a?(c=(c=(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u)).concat(" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e)+" L "+y+" "+(r.y-o/2))).concat(" L "+(y+o-d)+" "+(l-d)),c=(c=(c+=" Q "+(y+o)+" "+l+" "+(y+o-d)+" "+(l+d)).concat(" L "+y+" "+(r.y+o/2)+" L "+y+" "+(g-e)+" Q "+y+" "+g+" "+(y-t)+" "+g)).concat(" L "+(p+t)+" "+g+" Q "+p+" "+g+" "+p+" "+(g-e)+" z")):(c=(c=c.concat("M "+(p+t)+" "+u+" Q "+p+" "+u+" "+p+" "+(u+e)+" L "+p+" "+(r.y-o/2))).concat(" L "+(p-o+d)+" "+(l-d)),c=(c=(c+=" Q "+(p-o)+" "+l+" "+(p-o+d)+" "+(l+d)).concat(" L "+p+" "+(r.y+o/2)+" L "+p+" "+(g-e)+" Q "+p+" "+g+" "+(p+t)+" "+g)).concat(" L "+(y-t)+" "+g+" Q "+y+" "+g+" "+y+" "+(g-e)+" L "+y+" "+(u+e)+" Q "+y+" "+u+" "+(y-t)+" "+u+" z")),c}function n(t){return document.getElementById(t)}function s(t){var i=n(t);i&&e.remove(i)}function a(t,e,i,r,o,n){var s=new d(""),a=h(t,i,e,o,r),l=s["draw"+a.functionName](a.renderOption);return l.setAttribute("aria-label",n),l}function h(t,i,r,o,n){var s,a="Path",h=i.width,l=i.height,d=t.x,c=t.y,p=t.x+-h/2,u=t.y+-l/2;switch(r){case"Circle":case"Bubble":a="Ellipse",e.merge(o,{rx:h/2,ry:l/2,cx:d,cy:c});break;case"Cross":s="M "+p+" "+c+" L "+(d+h/2)+" "+c+" M "+d+" "+(c+l/2)+" L "+d+" "+(c+-l/2),e.merge(o,{d:s});break;case"HorizontalLine":s="M "+p+" "+c+" L "+(d+h/2)+" "+c,e.merge(o,{d:s});break;case"VerticalLine":s="M "+d+" "+(c+l/2)+" L "+d+" "+(c+-l/2),e.merge(o,{d:s});break;case"Diamond":s="M "+p+" "+c+" L "+d+" "+(c+-l/2)+" L "+(d+h/2)+" "+c+" L "+d+" "+(c+l/2)+" L "+p+" "+c+" z",e.merge(o,{d:s});break;case"Rectangle":s="M "+p+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+l/2)+" L "+p+" "+(c+l/2)+" L "+p+" "+(c+-l/2)+" z",e.merge(o,{d:s});break;case"Triangle":s="M "+p+" "+(c+l/2)+" L "+d+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+l/2)+" L "+p+" "+(c+l/2)+" z",e.merge(o,{d:s});break;case"InvertedTriangle":s="M "+(d+h/2)+" "+(c-l/2)+" L "+d+" "+(c+l/2)+" L "+(d-h/2)+" "+(c-l/2)+" L "+(d+h/2)+" "+(c-l/2)+" z",e.merge(o,{d:s});break;case"Pentagon":for(var y=void 0,g=void 0,f=0;f<=5;f++)y=h/2*Math.cos(Math.PI/180*(72*f)),g=l/2*Math.sin(Math.PI/180*(72*f)),s=0===f?"M "+(d+y)+" "+(c+g)+" ":s.concat("L "+(d+y)+" "+(c+g)+" ");s=s.concat("Z"),e.merge(o,{d:s});break;case"Image":a="Image",e.merge(o,{href:n,height:l,width:h,x:p,y:u})}return{renderOption:o,functionName:a}}function l(t,e,i,r){var o,n,s={},a=new d("");return s={id:t.id,x:t.x,y:t.y,fill:i,"font-size":e.size,"font-style":e.fontStyle,"font-family":e.fontFamily,"font-weight":e.fontWeight,"text-anchor":t.anchor,transform:t.transform,opacity:e.opacity,"dominant-baseline":t.baseLine},n="string"==typeof t.text?t.text:t.text[0],o=a.createText(s,n),r.appendChild(o),o}var d=function(){function t(t){this.svgLink="http://www.w3.org/2000/svg",this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createSvg=function(t){return e.isNullOrUndefined(t.id)&&(t.id=this.rootId+"_svg"),this.svgObj=document.getElementById(t.id),e.isNullOrUndefined(document.getElementById(t.id))&&(this.svgObj=document.createElementNS(this.svgLink,"svg")),this.svgObj=this.setElementAttributes(t,this.svgObj),this.setSVGSize(t.width,t.height),this.svgObj},t.prototype.setSVGSize=function(t,i){var r=document.getElementById(this.rootId),o=e.isNullOrUndefined(r)?null:r.getBoundingClientRect();e.isNullOrUndefined(this.width)||this.width<=0?this.svgObj.setAttribute("width",t?t.toString():o.width.toString()):this.svgObj.setAttribute("width",this.width.toString()),e.isNullOrUndefined(this.height)||this.height<=0?this.svgObj.setAttribute("height",i?i.toString():"450"):this.svgObj.setAttribute("height",this.height.toString())},t.prototype.drawPath=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"path")),e=this.setElementAttributes(t,e)},t.prototype.drawLine=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"line")),e=this.setElementAttributes(t,e)},t.prototype.drawRectangle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"rect")),e=this.setElementAttributes(t,e)},t.prototype.drawCircle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"circle")),e=this.setElementAttributes(t,e)},t.prototype.drawPolyline=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polyline")),e=this.setElementAttributes(t,e)},t.prototype.drawEllipse=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"ellipse")),e=this.setElementAttributes(t,e)},t.prototype.drawPolygon=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polygon")),e=this.setElementAttributes(t,e)},t.prototype.drawImage=function(t){var i=document.createElementNS(this.svgLink,"image");return i.setAttributeNS(null,"height",t.height.toString()),i.setAttributeNS(null,"width",t.width.toString()),i.setAttributeNS("http://www.w3.org/1999/xlink","href",t.href),i.setAttributeNS(null,"x",t.x.toString()),i.setAttributeNS(null,"y",t.y.toString()),i.setAttributeNS(null,"id",t.id),i.setAttributeNS(null,"visibility",t.visibility),e.isNullOrUndefined(this.getOptionValue(t,"clip-path"))||i.setAttributeNS(null,"clip-path",this.getOptionValue(t,"clip-path")),e.isNullOrUndefined(t.preserveAspectRatio)||i.setAttributeNS(null,"preserveAspectRatio",t.preserveAspectRatio),i},t.prototype.createText=function(t,i){var r=document.createElementNS(this.svgLink,"text");return r=this.setElementAttributes(t,r),e.isNullOrUndefined(i)||(r.textContent=i),r},t.prototype.createTSpan=function(t,i){var r=document.createElementNS(this.svgLink,"tspan");return r=this.setElementAttributes(t,r),e.isNullOrUndefined(i)||(r.textContent=i),r},t.prototype.createTitle=function(t){var e=document.createElementNS(this.svgLink,"title");return e.textContent=t,e},t.prototype.createDefs=function(){return document.createElementNS(this.svgLink,"defs")},t.prototype.createClipPath=function(t){var e=document.createElementNS(this.svgLink,"clipPath");return e=this.setElementAttributes(t,e)},t.prototype.createForeignObject=function(t){var e=document.createElementNS(this.svgLink,"foreignObject");return e=this.setElementAttributes(t,e)},t.prototype.createGroup=function(t){var e=document.createElementNS(this.svgLink,"g");return e=this.setElementAttributes(t,e)},t.prototype.createPattern=function(t,e){var i=document.createElementNS(this.svgLink,e);return i=this.setElementAttributes(t,i)},t.prototype.createRadialGradient=function(t,i,r){var o;if(e.isNullOrUndefined(t[0].colorStop))o=t[0].color.toString();else{var n={id:this.rootId+"_"+i+"radialGradient",cx:r.cx+"%",cy:r.cy+"%",r:r.r+"%",fx:r.fx+"%",fy:r.fy+"%"};this.drawGradient("radialGradient",n,t),o="url(#"+this.rootId+"_"+i+"radialGradient)"}return o},t.prototype.createLinearGradient=function(t,i,r){var o;if(e.isNullOrUndefined(t[0].colorStop))o=t[0].color.toString();else{var n={id:this.rootId+"_"+i+"linearGradient",x1:r.x1+"%",y1:r.y1+"%",x2:r.x2+"%",y2:r.y2+"%"};this.drawGradient("linearGradient",n,t),o="url(#"+this.rootId+"_"+i+"linearGradient)"}return o},t.prototype.drawGradient=function(t,e,i){var r=this.createDefs(),o=document.createElementNS(this.svgLink,t);o=this.setElementAttributes(e,o);for(var n=0;n<i.length;n++){var s=document.createElementNS(this.svgLink,"stop");s.setAttribute("offset",i[n].colorStop),s.setAttribute("stop-color",i[n].color),s.setAttribute("stop-opacity","1"),o.appendChild(s)}return r.appendChild(o),r},t.prototype.drawClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Rect";var r=this.drawRectangle(t);return i.appendChild(r),e.appendChild(i),e},t.prototype.drawCircularClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Circle";var r=this.drawCircle(t);return i.appendChild(r),e.appendChild(i),e},t.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=0;r<i.length;r++)e.setAttribute(i[r],t[i[r]]);return e},t}(),c=function(){function t(t){this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createCanvas=function(t){var e=document.createElement("canvas");return e.setAttribute("id",this.rootId+"_canvas"),this.ctx=e.getContext("2d"),this.canvasObj=e,this.setCanvasSize(t.width,t.height),this.canvasObj},t.prototype.setCanvasSize=function(t,i){var r=document.getElementById(this.rootId),o=e.isNullOrUndefined(r)?null:r.getBoundingClientRect();e.isNullOrUndefined(this.width)?this.canvasObj.setAttribute("width",t?t.toString():o.width.toString()):this.canvasObj.setAttribute("width",this.width.toString()),e.isNullOrUndefined(this.height)?this.canvasObj.setAttribute("height",i?i.toString():"450"):this.canvasObj.setAttribute("height",this.height.toString())},t.prototype.setAttributes=function(t){this.ctx.lineWidth=this.getOptionValue(t,"stroke-width");var i=this.getOptionValue(t,"stroke-dasharray");if(!e.isNullOrUndefined(i)){var r=i.split(",");this.ctx.setLineDash([parseInt(r[0],10),parseInt(r[1],10)])}this.ctx.strokeStyle=this.getOptionValue(t,"stroke")},t.prototype.drawLine=function(t){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.moveTo(t.x1,t.y1),this.ctx.lineTo(t.x2,t.y2),this.ctx.stroke(),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawRectangle=function(t){var e=this.ctx,i=t.rx;this.ctx.save(),this.ctx.beginPath(),this.ctx.globalAlpha=this.getOptionValue(t,"opacity"),this.setAttributes(t),this.ctx.rect(t.x,t.y,t.width,t.height),null!==i&&i>=0?this.drawCornerRadius(t):("none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,this.ctx.fillRect(t.x,t.y,t.width,t.height),this.ctx.stroke()),this.ctx.restore(),this.ctx=e,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawCornerRadius=function(t){var e=t.rx,i=t.x,r=t.y,o=t.width,n=t.height;"none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,o<2*e&&(e=o/2),n<2*e&&(e=n/2),this.ctx.beginPath(),this.ctx.moveTo(i+o-e,r),this.ctx.arcTo(i+o,r,i+o,r+n,e),this.ctx.arcTo(i+o,r+n,i,r+n,e),this.ctx.arcTo(i,r+n,i,r,e),this.ctx.arcTo(i,r,i+o,r,e),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawPath=function(t,e){var i=t.d.split(" "),r=this.getOptionValue(t,"stroke-width"),o=this.ctx,n=!0;this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=t.opacity?t.opacity:this.getOptionValue(t,"fill-opacity"),this.setAttributes(t);for(var s=0;s<i.length;s+=3){var a=parseFloat(i[s+1]),h=parseFloat(i[s+2]);switch(i[s]){case"M":t.innerR||t.cx||this.ctx.moveTo(a,h);break;case"L":t.innerR||this.ctx.lineTo(a,h);break;case"C":var l=parseFloat(i[s+3]),d=parseFloat(i[s+4]),c=parseFloat(i[s+5]),p=parseFloat(i[s+6]);this.ctx.bezierCurveTo(a,h,l,d,c,p),s+=4;break;case"A":t.innerR?n&&(this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.arc(t.x,t.y,t.innerR,t.end,t.start,!t.counterClockWise),n=!1):t.cx?this.ctx.arc(t.cx,t.cy,t.radius,0,2*Math.PI,t.counterClockWise):(this.ctx.moveTo(t.x,t.y),this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.lineTo(t.x,t.y)),s+=5;break;case"z":this.ctx.closePath()}}"none"!==t.fill&&void 0!==t.fill&&(this.ctx.fillStyle=t.fill,this.ctx.fill()),r>0&&this.ctx.stroke(),this.ctx.restore(),this.ctx=o,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawText=function(t,i){var r=this.getOptionValue(t,"font-weight");e.isNullOrUndefined(r)||"regular"!==r.toLowerCase()||(r="normal");var o=this.getOptionValue(t,"font-size"),n=this.getOptionValue(t,"font-family"),s=this.getOptionValue(t,"font-style").toLowerCase()+" "+r+" "+o+" "+n,a=this.getOptionValue(t,"text-anchor"),h=void 0!==t.opacity?t.opacity:1;"middle"===a&&(a="center"),this.ctx.save(),this.ctx.fillStyle=t.fill,this.ctx.font=s,this.ctx.textAlign=a,this.ctx.globalAlpha=h,t.baseline&&(this.ctx.textBaseline=t.baseline);this.ctx.translate(t.x+0,t.y),this.ctx.rotate(t.labelRotation*Math.PI/180),this.ctx.fillText(i,0,0),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawCircle=function(t){var e=this.ctx;this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.cx,t.cy,t.r,0,2*Math.PI),this.ctx.fillStyle=t.fill,this.ctx.globalAlpha=t.opacity,this.ctx.fill(),this.setAttributes(t),this.ctx.stroke(),this.ctx.restore(),this.ctx=e,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawPolyline=function(t){this.ctx.save(),this.ctx.beginPath();for(var e=t.points.split(" "),i=0;i<e.length-1;i++){var r=e[i].split(","),o=parseFloat(r[0]),n=parseFloat(r[1]);0===i?this.ctx.moveTo(o,n):this.ctx.lineTo(o,n)}this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawEllipse=function(t){var e=this.ctx,i=Math.max(t.rx,t.ry),r=t.rx/i,o=t.ry/i;this.ctx.save(),this.ctx.beginPath(),this.ctx.translate(t.cx,t.cy),this.ctx.save(),this.ctx.scale(r,o),this.ctx.arc(0,0,i,0,2*Math.PI,!1),this.ctx.fillStyle=t.fill,this.ctx.fill(),this.ctx.restore(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore(),this.ctx=e,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawImage=function(t){this.ctx.save();var i=new Image;e.isNullOrUndefined(t.href)||(i.src=t.href,this.ctx.drawImage(i,t.x,t.y,t.width,t.height)),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.createLinearGradient=function(t){var i;return e.isNullOrUndefined(t[0].colorStop)||(i=this.ctx.createLinearGradient(0,0,0,this.canvasObj.height)),this.setGradientValues(t,i)},t.prototype.createRadialGradient=function(t){var i;return e.isNullOrUndefined(t[0].colorStop)||(i=this.ctx.createRadialGradient(0,0,0,0,0,this.canvasObj.height)),this.setGradientValues(t,i)},t.prototype.setGradientValues=function(t,i){var r;if(e.isNullOrUndefined(t[0].colorStop))r=t[0].color.toString();else{for(var o=0;o<=t.length-1;o++){var n=t[o].color,s=t[o].colorStop.slice(0,-1),a=parseInt(s,10)/100;i.addColorStop(a,n)}r=i.toString()}return this.dataUrl=this.canvasObj.toDataURL(),r},t.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=Object.keys(t).map(function(e){return t[e]}),o=0;o<i.length;o++)e.setAttribute(i[o],r[o]);return e},t.prototype.updateCanvasAttributes=function(t){this.setElementAttributes(t,this.canvasObj);var i=this.ctx;if(!e.isNullOrUndefined(this.dataUrl)){var r=new Image;r.onload=function(){i.drawImage(r,0,0)},r.src=this.dataUrl}},t}(),p=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),u=function(){function t(t,e){this.width=t,this.height=e}return t}(),y=function(){function t(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r}return t}(),g=function(){function t(t,e){this.isRight=e,this.isBottom=t}return t}(),f=function(){function t(t){this.id=t}return t}(),m=function(t){function e(e,i,r,o,n,s,a){void 0===s&&(s="");var h=t.call(this,e)||this;return h.transform="",h.baseLine="auto",h.x=i,h.y=r,h.anchor=o,h.text=n,h.transform=s,h.baseLine=a,h}return p(e,t),e}(f),x=function(t){function e(e,i,r,o,n,s,a){var h=t.call(this,e)||this;return h.opacity=n,h.fill=i,h.stroke=o,h["stroke-width"]=r,h["stroke-dasharray"]=s,h.d=a,h}return p(e,t),e}(f),v=function(){function t(t,e){this.x=t,this.y=e}return t}(),b=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),w=function(t,e,i,r){var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s},S=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property(null)],i.prototype,"size",void 0),w([e.Property("")],i.prototype,"color",void 0),w([e.Property("Segoe UI")],i.prototype,"fontFamily",void 0),w([e.Property("Normal")],i.prototype,"fontWeight",void 0),w([e.Property("Normal")],i.prototype,"fontStyle",void 0),w([e.Property(1)],i.prototype,"opacity",void 0),i}(e.ChildProperty),L=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property("")],i.prototype,"color",void 0),w([e.Property(1)],i.prototype,"width",void 0),i}(e.ChildProperty),P=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property(0)],i.prototype,"x",void 0),w([e.Property(0)],i.prototype,"y",void 0),w([e.Property(0)],i.prototype,"width",void 0),w([e.Property(0)],i.prototype,"height",void 0),i}(e.ChildProperty),O=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property(0)],i.prototype,"x",void 0),w([e.Property(0)],i.prototype,"y",void 0),i}(e.ChildProperty),A=function(t){function h(e,i){return t.call(this,e,i)||this}return b(h,t),h.prototype.preRender=function(){this.initPrivateVariable(),this.removeSVG(),this.createTooltipElement()},h.prototype.initPrivateVariable=function(){this.renderer=new d(this.element.id),this.themeStyle=i(this.theme),this.formattedText=[],this.padding=5,this.isFirst=!0,this.markerPoint=[]},h.prototype.removeSVG=function(){var t=document.getElementById(this.element.id+"_svg"),i=document.getElementById(this.element.id+"parent_template");t&&t.parentNode&&e.remove(t),i&&i.parentNode&&e.remove(i)},h.prototype.render=function(){if(this.fadeOuted=!1,this.template)this.updateTemplateFn(),this.createTemplate(this.areaBounds,this.location);else{this.renderText(this.isFirst);var t={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",t);var i=this.renderTooltipElement(this.areaBounds,this.location);this.drawMarker(i.isBottom,i.isRight,this.markerSize)}this.trigger("loaded",{tooltip:this});var r=document.getElementById("chartmeasuretext");r&&e.remove(r)},h.prototype.createTooltipElement=function(){if(this.textElements=[],!this.template||this.shared){var t=this.renderer.createSvg({id:this.element.id+"_svg"});this.element.appendChild(t);var e=this.renderer.createGroup({id:this.element.id+"_group"});t.appendChild(e);var i=this.renderer.drawPath({id:this.element.id+"_path","stroke-width":this.border.width,fill:this.fill||this.themeStyle.tooltipFill,opacity:this.opacity,stroke:this.border.color});e.appendChild(i)}},h.prototype.drawMarker=function(t,e,i){if(this.shapes.length<=0)return null;for(var r,o=0,s=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),h=n(this.element.id+"_group"),l=2*this.marginX+i/2+(e?this.arrowPadding:0),d=0,c=this.shapes;d<c.length;d++){var p=c[d];r=new x(this.element.id+"_Trackball_"+o,this.palette[o],1,"#cccccc",1,null),this.markerPoint[o]&&s.appendChild(a(new v(l,this.markerPoint[o]-this.padding+(t?this.arrowPadding:0)),p,new u(i,i),"",r,null)),o++}h.appendChild(s)},h.prototype.renderTooltipElement=function(t,i){var s,a=n(this.element.id),h=new v(0,0),l=new v(0,0),d=n(this.element.id+"_svg"),c=n(this.element.id+"_group"),p=n(this.element.id+"_path"),u=!1,f=!1,m=!1,x=0,b=0;if(this.tipRadius=1,""!==this.header&&(this.elementSize.height+=this.marginY),this.content.length>1?(s=this.sharedTooltipLocation(t,this.location.x,this.location.y),u=!0):(s=this.tooltipLocation(t,i,h,l),this.inverted?x=(f=s.x<i.x+this.clipBounds.x)?0:this.arrowPadding:(m=!(u=s.y<i.y+this.clipBounds.y),b=u?0:this.arrowPadding)),""!==this.header){var w=r(this.header,this.textStyle).height+2*this.marginY+(m?this.arrowPadding:0),S="M "+(3*this.marginX+(f||u||m?0:this.arrowPadding))+" "+w+"L "+(s.width+(f||u||m?0:this.arrowPadding)-2*this.marginX)+" "+w,L=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:.8,stroke:this.themeStyle.tooltipHeaderLine,d:S});c.appendChild(L)}var P=this.border.width/2,O=new y(P+x,P+b,s.width-P,s.height-P);if(c.setAttribute("opacity","1"),!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(a,s.x,s.y):this.animateTooltipDiv(a,s),d.setAttribute("height",(s.height+this.border.width+(this.inverted?0:this.arrowPadding)).toString()),d.setAttribute("width",(s.width+this.border.width+(this.inverted?this.arrowPadding:0)).toString()),d.setAttribute("opacity","1"),p.setAttribute("d",o(this.rx,this.ry,O,h,this.arrowPadding,u,m,f,l.x,l.y,this.tipRadius)),this.enableShadow){var A=this.element.id+"_shadow";p.setAttribute("filter",e.Browser.isIE?"":"url(#"+A+")");var k='<filter id="'+A+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';k+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',k+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var C=this.renderer.createDefs();C.setAttribute("id","SVG_tooltip_definition"),c.appendChild(C),C.innerHTML=k}return p.setAttribute("stroke",this.border.color),this.changeText(new v(x,b),m,!f&&!u&&!m,s),new g(m,!f&&!u&&!m)},h.prototype.changeText=function(t,e,i,r){var o=document.getElementById(this.element.id+"_text");e&&o.setAttribute("transform","translate(0,"+this.arrowPadding+")"),i&&o.setAttribute("transform","translate("+this.arrowPadding+" 0)")},h.prototype.findFormattedText=function(){this.formattedText=[],""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()&&(this.formattedText=this.formattedText.concat(this.header)),this.formattedText=this.formattedText.concat(this.content)},h.prototype.renderText=function(t){var i,o,a,h,d=0,c=0,p=0,y=e.extend({},this.textStyle,null,!0).properties,g=n(this.element.id+"_group"),f="";this.findFormattedText();var x=this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim(),v=""!==x?this.marginY:0,b=!0,w=!0;this.markerPoint=[];var S=this.shapes.length>0?10:0,L=this.shapes.length>0?5:0,P="Normal",O=this.themeStyle.tooltipLightLabel,A=22/parseFloat("13px")*parseFloat(y.size);t||(s(this.element.id+"_text"),s(this.element.id+"_header_path"),s(this.element.id+"_trackball_group"),s("SVG_tooltip_definition"));for(var k=new m(this.element.id+"_text",2*this.marginX,2*this.marginY+2*this.padding+(2===this.marginY?3:0),"start",""),C=l(k,y,null,g),E=0,N=this.formattedText.length;E<N;E++){var T=this.formattedText[E].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g);if(""!==T[0]){r(this.formattedText[E],y),0===E&&""!==x||this.markerPoint.push((""!==x?this.marginY:0)+k.y+d);for(var _=0,R=T.length;_<R;_++){p=0,w=!0,d+=A;for(var I=0,j=(i=T[_].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,"<br>‎:<br>").split("<br>")).length;I<j;I++)a=i[I],/\S/.test(a)||""===a||(a=" "),(!w&&" "===a||""!==a.replace(/<b>/g,"").replace(/<\/b>/g,"").trim())&&(p+=" "!==a?4:0,w&&!b?(h={x:2*this.marginX+(S+L),dy:A+(w?v:0),fill:""},v=null):h=b&&w?{x:""===x?2*this.marginX+(S+L):2*this.marginX}:{},w=!1,o=this.renderer.createTSpan(h,""),C.appendChild(o),a.indexOf("<b>")>-1?(P="bold",O=this.themeStyle.tooltipBoldLabel,f="font-weight:"+P,y.fontWeight=P,o.setAttribute("fill",this.textStyle.color||O)):(f="bold"===P?"font-weight:"+P:"",y.fontWeight=P,o.setAttribute("fill",this.textStyle.color||O)),a.indexOf("</b>")>-1&&(P="Normal",O=this.themeStyle.tooltipLightLabel),o.textContent=a=a.replace(/<[a-zA-Z\/](.|\n)*?>/g,""),p+=r(a,y).width,""!==f&&o.setAttribute("style",f),b=!1);p-=4,c=Math.max(c,p)}}}this.elementSize=new u(c+(c>0?2*this.marginX:0),d),this.elementSize.width+=S+L;var B=C.childNodes[0];if(""!==x&&B){y.fontWeight="bold";var U=(this.elementSize.width+2*this.padding)/2-r(x,y).width/2;B.setAttribute("x",U.toString())}},h.prototype.createTemplate=function(t,i){var r={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",r);var o=document.getElementById(this.element.id),s=o.firstElementChild;if(s&&e.remove(s),r.cancel)e.remove(n(this.element.id+"_tooltip"));else{for(var a=this.templateFn(this.data),h=e.createElement("div",{id:this.element.id+"parent_template"});a&&a.length>0;)h.appendChild(a[0]);o.appendChild(h);var l=this.element.getBoundingClientRect();this.padding=0,this.elementSize=new u(l.width,l.height);var d=this.tooltipLocation(t,i,new v(0,0),new v(0,0));!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(this.element,d.x,d.y):this.animateTooltipDiv(this.element,d)}},h.prototype.sharedTooltipLocation=function(t,e,i){var r=this.elementSize.width+2*this.marginX,o=this.elementSize.height+2*this.marginY,n=new y(e+2*this.padding,i-o-this.padding,r,o);return n.y<t.y&&(n.y+=n.height+2*this.padding),n.x+n.width>t.x+t.width&&(n.x-=n.width+4*this.padding),n},h.prototype.tooltipLocation=function(t,e,i,r){var o=new v(e.x,e.y),n=this.elementSize.width+2*this.marginX,s=this.elementSize.height+2*this.marginY,a=this.offset,h=this.clipBounds.x,l=this.clipBounds.y,d=t.x,c=t.y;return this.inverted?(o=new v(o.x+h+a,o.y+l-this.elementSize.height/2-this.padding),i.y=r.y=s/2,(o.x+n+this.arrowPadding>d+t.width||this.isNegative)&&(o.x=(e.x>t.width?t.width:e.x)+h-a-(n+this.arrowPadding)),o.x<d&&(o.x=(e.x<0?0:e.x)+h+a),o.y<=c&&(i.y-=c-o.y,r.y-=c-o.y,o.y=c),o.y+s>=c+t.height&&(i.y+=o.y+s-(c+t.height),r.y+=o.y+s-(c+t.height),o.y-=o.y+s-(c+t.height)),i.y+this.arrowPadding/2>s-this.ry&&(i.y=s-this.ry-this.arrowPadding/2,r.y=s,this.tipRadius=0),i.y-this.arrowPadding/2<this.ry&&(i.y=this.ry+this.arrowPadding/2,r.y=0,this.tipRadius=0)):(o=new v(o.x+h-this.elementSize.width/2-this.padding,o.y+l-this.elementSize.height-2*this.padding-this.arrowPadding-a),i.x=r.x=n/2,(o.y<c||this.isNegative)&&(o.y=(e.y<0?0:e.y)+l+a),o.y+s+this.arrowPadding>c+t.height&&(o.y=(e.y>t.height?t.height:e.y)+l-this.elementSize.height-2*this.padding-this.arrowPadding-a),r.x=n/2,o.x<d&&(i.x-=d-o.x,r.x-=d-o.x,o.x=d),o.x+n>d+t.width&&(i.x+=o.x+n-(d+t.width),r.x+=o.x+n-(d+t.width),o.x-=o.x+n-(d+t.width)),i.x+this.arrowPadding/2>n-this.rx&&(i.x=n-this.rx-this.arrowPadding/2,r.x=n,this.tipRadius=0),i.x-this.arrowPadding/2<this.rx&&(i.x=this.rx+this.arrowPadding/2,r.x=0,this.tipRadius=0)),new y(o.x,o.y,n,s)},h.prototype.animateTooltipDiv=function(t,i){var r,o=this,n=parseFloat(t.style.left),s=parseFloat(t.style.top);new e.Animation({}).animate(t,{duration:300,progress:function(e){r=e.timeStamp/e.duration,t.style.animation=null,t.style.left=n+r*(i.x-n)+"px",t.style.top=s+r*(i.y-s)+"px"},end:function(e){o.updateDiv(t,i.x,i.y),o.trigger("animationComplete",{tooltip:o})}})},h.prototype.updateDiv=function(t,e,i){t.style.left=e+"px",t.style.top=i+"px"},h.prototype.updateTemplateFn=function(){if(this.template)try{document.querySelectorAll(this.template).length&&(this.templateFn=e.compile(document.querySelector(this.template).innerHTML.trim()))}catch(t){this.templateFn=e.compile(this.template)}},h.prototype.fadeOut=function(){var t=this,i=n(this.element.id);if(i){var r=i.firstChild,o=parseFloat(r.getAttribute("opacity"))||1;new e.Animation({}).animate(r,{duration:200,progress:function(e){t.progressAnimation(r,o,e.timeStamp/e.duration)},end:function(e){t.fadeOuted=!0,t.endAnimation(r)}})}},h.prototype.progressAnimation=function(t,e,i){t.style.animation="",t.setAttribute("opacity",(e-i).toString())},h.prototype.endAnimation=function(t){t.setAttribute("opacity","0"),this.template&&!this.shared&&(t.style.display="none"),this.trigger("animationComplete",{tooltip:this})},h.prototype.getPersistData=function(){var t=[];return this.addOnPersist(t)},h.prototype.getModuleName=function(){return"tooltip"},h.prototype.destroy=function(){t.prototype.destroy.call(this),this.element.classList.remove("e-tooltip")},h.prototype.onPropertyChanged=function(t,e){this.isFirst=!1,this.render()},w([e.Property(!1)],h.prototype,"enable",void 0),w([e.Property(!1)],h.prototype,"shared",void 0),w([e.Property(!0)],h.prototype,"enableShadow",void 0),w([e.Property(null)],h.prototype,"fill",void 0),w([e.Property("")],h.prototype,"header",void 0),w([e.Property(.75)],h.prototype,"opacity",void 0),w([e.Complex({size:"13px",fontWeight:"Normal",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"},S)],h.prototype,"textStyle",void 0),w([e.Property(null)],h.prototype,"template",void 0),w([e.Property(!0)],h.prototype,"enableAnimation",void 0),w([e.Property(!1)],h.prototype,"inverted",void 0),w([e.Property(!1)],h.prototype,"isNegative",void 0),w([e.Complex({color:"#cccccc",width:.5},L)],h.prototype,"border",void 0),w([e.Property([])],h.prototype,"content",void 0),w([e.Property(10)],h.prototype,"markerSize",void 0),w([e.Complex({x:0,y:0},O)],h.prototype,"clipBounds",void 0),w([e.Property([])],h.prototype,"palette",void 0),w([e.Property([])],h.prototype,"shapes",void 0),w([e.Complex({x:0,y:0},O)],h.prototype,"location",void 0),w([e.Property(0)],h.prototype,"offset",void 0),w([e.Property(2)],h.prototype,"rx",void 0),w([e.Property(2)],h.prototype,"ry",void 0),w([e.Property(5)],h.prototype,"marginX",void 0),w([e.Property(5)],h.prototype,"marginY",void 0),w([e.Property(12)],h.prototype,"arrowPadding",void 0),w([e.Property(null)],h.prototype,"data",void 0),w([e.Property("Material")],h.prototype,"theme",void 0),w([e.Complex({x:0,y:0,width:0,height:0},P)],h.prototype,"areaBounds",void 0),w([e.Event()],h.prototype,"tooltipRender",void 0),w([e.Event()],h.prototype,"loaded",void 0),w([e.Event()],h.prototype,"animationComplete",void 0),h=w([e.NotifyPropertyChanges],h)}(e.Component);return t.TextStyle=S,t.TooltipBorder=L,t.AreaBounds=P,t.ToolLocation=O,t.Tooltip=A,t.getTooltipThemeColor=i,t.measureText=r,t.findDirection=o,t.Size=u,t.Rect=y,t.Side=g,t.CustomizeOption=f,t.TextOption=m,t.getElement=n,t.removeElement=s,t.drawSymbol=a,t.calculateShapes=h,t.PathOption=x,t.textElement=l,t.TooltipLocation=v,t.SvgRenderer=d,t.CanvasRenderer=c,t}({},ej.base),this.ejs=ej;
this.ej=this.ej||{},this.ej.svgbase=function(t,e){"use strict";function i(t){var e;switch(t){case"Highcontrast":e={tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696"};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":e={tooltipFill:"#F4F4F4",tooltipBoldLabel:"#282727",tooltipLightLabel:"#333232",tooltipHeaderLine:"#9A9A9A"};break;case"Bootstrap4":e={tooltipFill:"rgba(0, 0, 0, 0.9)",tooltipBoldLabel:"rgba(255, 255, 255)",tooltipLightLabel:"rgba(255, 255, 255, 0.9)",tooltipHeaderLine:"rgba(255, 255, 255, 0.2)"};break;default:e={tooltipFill:"rgba(0, 8, 22, 0.75)",tooltipBoldLabel:"#ffffff",tooltipLightLabel:"#dbdbdb",tooltipHeaderLine:"#ffffff"}}return e}function r(t,i){var r=document.getElementById("chartmeasuretext");return null===r&&(r=e.createElement("text",{id:"chartmeasuretext"}),document.body.appendChild(r)),r.innerHTML=t,r.style.position="absolute",r.style.fontSize=i.size,r.style.fontWeight=i.fontWeight,r.style.fontStyle=i.fontStyle,r.style.fontFamily=i.fontFamily,r.style.visibility="hidden",r.style.top="-100",r.style.left="0",r.style.whiteSpace="nowrap",r.style.lineHeight="normal",new u(r.clientWidth,r.clientHeight)}function o(t,e,i,r,o,n,s,a,h,l,d){var c="",p=i.x,u=i.y,y=i.x+i.width,g=i.y+i.height;return d=d||0,n?(c=(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u+" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e))).concat(" L "+y+" "+(g-e)+" Q "+y+" "+g+" "+(y-t)+" "+g),0!==o&&(c=(c=c.concat(" L "+(r.x+o/2)+" "+g)).concat(" L "+(h+d)+" "+(g+o-d)),c+=" Q "+h+" "+(g+o)+" "+(h-d)+" "+(g+o-d)),c=r.x-o/2>p?c.concat(" L "+(r.x-o/2)+" "+g+" L "+(p+t)+" "+g+" Q "+p+" "+g+" "+p+" "+(g-e)+" z"):0===o?c.concat(" L "+(p+t)+" "+g+" Q "+p+" "+g+" "+p+" "+(g-e)+" z"):c.concat(" L "+p+" "+(g+e)+" z")):s?(c=(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u+" L "+(r.x-o/2)+" "+u)).concat(" L "+(h-d)+" "+(r.y+d)),c=(c=(c+=" Q "+h+" "+r.y+" "+(h+d)+" "+(r.y+d)).concat(" L "+(r.x+o/2)+" "+u+" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e))).concat(" L "+y+" "+(g-e)+" Q "+y+" "+g+" "+(y-t)+" "+g+" L "+(p+t)+" "+g+" Q "+p+" "+g+" "+p+" "+(g-e)+" z")):a?(c=(c=(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u)).concat(" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e)+" L "+y+" "+(r.y-o/2))).concat(" L "+(y+o-d)+" "+(l-d)),c=(c=(c+=" Q "+(y+o)+" "+l+" "+(y+o-d)+" "+(l+d)).concat(" L "+y+" "+(r.y+o/2)+" L "+y+" "+(g-e)+" Q "+y+" "+g+" "+(y-t)+" "+g)).concat(" L "+(p+t)+" "+g+" Q "+p+" "+g+" "+p+" "+(g-e)+" z")):(c=(c=c.concat("M "+(p+t)+" "+u+" Q "+p+" "+u+" "+p+" "+(u+e)+" L "+p+" "+(r.y-o/2))).concat(" L "+(p-o+d)+" "+(l-d)),c=(c=(c+=" Q "+(p-o)+" "+l+" "+(p-o+d)+" "+(l+d)).concat(" L "+p+" "+(r.y+o/2)+" L "+p+" "+(g-e)+" Q "+p+" "+g+" "+(p+t)+" "+g)).concat(" L "+(y-t)+" "+g+" Q "+y+" "+g+" "+y+" "+(g-e)+" L "+y+" "+(u+e)+" Q "+y+" "+u+" "+(y-t)+" "+u+" z")),c}function n(t){return document.getElementById(t)}function s(t){var i=n(t);i&&e.remove(i)}function a(t,e,i,r,o,n){var s=new d(""),a=h(t,i,e,o,r),l=s["draw"+a.functionName](a.renderOption);return l.setAttribute("aria-label",n),l}function h(t,i,r,o,n){var s,a="Path",h=i.width,l=i.height,d=t.x,c=t.y,p=t.x+-h/2,u=t.y+-l/2;switch(r){case"Circle":case"Bubble":a="Ellipse",e.merge(o,{rx:h/2,ry:l/2,cx:d,cy:c});break;case"Cross":s="M "+p+" "+c+" L "+(d+h/2)+" "+c+" M "+d+" "+(c+l/2)+" L "+d+" "+(c+-l/2),e.merge(o,{d:s});break;case"HorizontalLine":s="M "+p+" "+c+" L "+(d+h/2)+" "+c,e.merge(o,{d:s});break;case"VerticalLine":s="M "+d+" "+(c+l/2)+" L "+d+" "+(c+-l/2),e.merge(o,{d:s});break;case"Diamond":s="M "+p+" "+c+" L "+d+" "+(c+-l/2)+" L "+(d+h/2)+" "+c+" L "+d+" "+(c+l/2)+" L "+p+" "+c+" z",e.merge(o,{d:s});break;case"Rectangle":s="M "+p+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+l/2)+" L "+p+" "+(c+l/2)+" L "+p+" "+(c+-l/2)+" z",e.merge(o,{d:s});break;case"Triangle":s="M "+p+" "+(c+l/2)+" L "+d+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+l/2)+" L "+p+" "+(c+l/2)+" z",e.merge(o,{d:s});break;case"InvertedTriangle":s="M "+(d+h/2)+" "+(c-l/2)+" L "+d+" "+(c+l/2)+" L "+(d-h/2)+" "+(c-l/2)+" L "+(d+h/2)+" "+(c-l/2)+" z",e.merge(o,{d:s});break;case"Pentagon":for(var y=void 0,g=void 0,f=0;f<=5;f++)y=h/2*Math.cos(Math.PI/180*(72*f)),g=l/2*Math.sin(Math.PI/180*(72*f)),s=0===f?"M "+(d+y)+" "+(c+g)+" ":s.concat("L "+(d+y)+" "+(c+g)+" ");s=s.concat("Z"),e.merge(o,{d:s});break;case"Image":a="Image",e.merge(o,{href:n,height:l,width:h,x:p,y:u})}return{renderOption:o,functionName:a}}function l(t,e,i,r){var o,n,s={},a=new d("");return s={id:t.id,x:t.x,y:t.y,fill:i,"font-size":e.size,"font-style":e.fontStyle,"font-family":e.fontFamily,"font-weight":e.fontWeight,"text-anchor":t.anchor,transform:t.transform,opacity:e.opacity,"dominant-baseline":t.baseLine},n="string"==typeof t.text?t.text:t.text[0],o=a.createText(s,n),r.appendChild(o),o}var d=function(){function t(t){this.svgLink="http://www.w3.org/2000/svg",this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createSvg=function(t){return e.isNullOrUndefined(t.id)&&(t.id=this.rootId+"_svg"),this.svgObj=document.getElementById(t.id),e.isNullOrUndefined(document.getElementById(t.id))&&(this.svgObj=document.createElementNS(this.svgLink,"svg")),this.svgObj=this.setElementAttributes(t,this.svgObj),this.setSVGSize(t.width,t.height),this.svgObj},t.prototype.setSVGSize=function(t,i){var r=document.getElementById(this.rootId),o=e.isNullOrUndefined(r)?null:r.getBoundingClientRect();e.isNullOrUndefined(this.width)||this.width<=0?this.svgObj.setAttribute("width",t?t.toString():o.width.toString()):this.svgObj.setAttribute("width",this.width.toString()),e.isNullOrUndefined(this.height)||this.height<=0?this.svgObj.setAttribute("height",i?i.toString():"450"):this.svgObj.setAttribute("height",this.height.toString())},t.prototype.drawPath=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"path")),e=this.setElementAttributes(t,e)},t.prototype.drawLine=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"line")),e=this.setElementAttributes(t,e)},t.prototype.drawRectangle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"rect")),e=this.setElementAttributes(t,e)},t.prototype.drawCircle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"circle")),e=this.setElementAttributes(t,e)},t.prototype.drawPolyline=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polyline")),e=this.setElementAttributes(t,e)},t.prototype.drawEllipse=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"ellipse")),e=this.setElementAttributes(t,e)},t.prototype.drawPolygon=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polygon")),e=this.setElementAttributes(t,e)},t.prototype.drawImage=function(t){var i=document.createElementNS(this.svgLink,"image");return i.setAttributeNS(null,"height",t.height.toString()),i.setAttributeNS(null,"width",t.width.toString()),i.setAttributeNS("http://www.w3.org/1999/xlink","href",t.href),i.setAttributeNS(null,"x",t.x.toString()),i.setAttributeNS(null,"y",t.y.toString()),i.setAttributeNS(null,"id",t.id),i.setAttributeNS(null,"visibility",t.visibility),e.isNullOrUndefined(this.getOptionValue(t,"clip-path"))||i.setAttributeNS(null,"clip-path",this.getOptionValue(t,"clip-path")),e.isNullOrUndefined(t.preserveAspectRatio)||i.setAttributeNS(null,"preserveAspectRatio",t.preserveAspectRatio),i},t.prototype.createText=function(t,i){var r=document.createElementNS(this.svgLink,"text");return r=this.setElementAttributes(t,r),e.isNullOrUndefined(i)||(r.textContent=i),r},t.prototype.createTSpan=function(t,i){var r=document.createElementNS(this.svgLink,"tspan");return r=this.setElementAttributes(t,r),e.isNullOrUndefined(i)||(r.textContent=i),r},t.prototype.createTitle=function(t){var e=document.createElementNS(this.svgLink,"title");return e.textContent=t,e},t.prototype.createDefs=function(){return document.createElementNS(this.svgLink,"defs")},t.prototype.createClipPath=function(t){var e=document.createElementNS(this.svgLink,"clipPath");return e=this.setElementAttributes(t,e)},t.prototype.createForeignObject=function(t){var e=document.createElementNS(this.svgLink,"foreignObject");return e=this.setElementAttributes(t,e)},t.prototype.createGroup=function(t){var e=document.createElementNS(this.svgLink,"g");return e=this.setElementAttributes(t,e)},t.prototype.createPattern=function(t,e){var i=document.createElementNS(this.svgLink,e);return i=this.setElementAttributes(t,i)},t.prototype.createRadialGradient=function(t,i,r){var o;if(e.isNullOrUndefined(t[0].colorStop))o=t[0].color.toString();else{var n={id:this.rootId+"_"+i+"radialGradient",cx:r.cx+"%",cy:r.cy+"%",r:r.r+"%",fx:r.fx+"%",fy:r.fy+"%"};this.drawGradient("radialGradient",n,t),o="url(#"+this.rootId+"_"+i+"radialGradient)"}return o},t.prototype.createLinearGradient=function(t,i,r){var o;if(e.isNullOrUndefined(t[0].colorStop))o=t[0].color.toString();else{var n={id:this.rootId+"_"+i+"linearGradient",x1:r.x1+"%",y1:r.y1+"%",x2:r.x2+"%",y2:r.y2+"%"};this.drawGradient("linearGradient",n,t),o="url(#"+this.rootId+"_"+i+"linearGradient)"}return o},t.prototype.drawGradient=function(t,e,i){var r=this.createDefs(),o=document.createElementNS(this.svgLink,t);o=this.setElementAttributes(e,o);for(var n=0;n<i.length;n++){var s=document.createElementNS(this.svgLink,"stop");s.setAttribute("offset",i[n].colorStop),s.setAttribute("stop-color",i[n].color),s.setAttribute("stop-opacity","1"),o.appendChild(s)}return r.appendChild(o),r},t.prototype.drawClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Rect";var r=this.drawRectangle(t);return i.appendChild(r),e.appendChild(i),e},t.prototype.drawCircularClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Circle";var r=this.drawCircle(t);return i.appendChild(r),e.appendChild(i),e},t.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=0;r<i.length;r++)e.setAttribute(i[r],t[i[r]]);return e},t}(),c=function(){function t(t){this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createCanvas=function(t){var e=document.createElement("canvas");return e.setAttribute("id",this.rootId+"_canvas"),this.ctx=e.getContext("2d"),this.canvasObj=e,this.setCanvasSize(t.width,t.height),this.canvasObj},t.prototype.setCanvasSize=function(t,i){var r=document.getElementById(this.rootId),o=e.isNullOrUndefined(r)?null:r.getBoundingClientRect();e.isNullOrUndefined(this.width)?this.canvasObj.setAttribute("width",t?t.toString():o.width.toString()):this.canvasObj.setAttribute("width",this.width.toString()),e.isNullOrUndefined(this.height)?this.canvasObj.setAttribute("height",i?i.toString():"450"):this.canvasObj.setAttribute("height",this.height.toString())},t.prototype.setAttributes=function(t){this.ctx.lineWidth=this.getOptionValue(t,"stroke-width");var i=this.getOptionValue(t,"stroke-dasharray");if(!e.isNullOrUndefined(i)){var r=i.split(",");this.ctx.setLineDash([parseInt(r[0],10),parseInt(r[1],10)])}this.ctx.strokeStyle=this.getOptionValue(t,"stroke")},t.prototype.drawLine=function(t){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.moveTo(t.x1,t.y1),this.ctx.lineTo(t.x2,t.y2),this.ctx.stroke(),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawRectangle=function(t){var e=this.ctx,i=t.rx;this.ctx.save(),this.ctx.beginPath(),this.ctx.globalAlpha=this.getOptionValue(t,"opacity"),this.setAttributes(t),this.ctx.rect(t.x,t.y,t.width,t.height),null!==i&&i>=0?this.drawCornerRadius(t):("none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,this.ctx.fillRect(t.x,t.y,t.width,t.height),this.ctx.stroke()),this.ctx.restore(),this.ctx=e,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawCornerRadius=function(t){var e=t.rx,i=t.x,r=t.y,o=t.width,n=t.height;"none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,o<2*e&&(e=o/2),n<2*e&&(e=n/2),this.ctx.beginPath(),this.ctx.moveTo(i+o-e,r),this.ctx.arcTo(i+o,r,i+o,r+n,e),this.ctx.arcTo(i+o,r+n,i,r+n,e),this.ctx.arcTo(i,r+n,i,r,e),this.ctx.arcTo(i,r,i+o,r,e),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawPath=function(t,e){var i=t.d.split(" "),r=this.getOptionValue(t,"stroke-width"),o=this.ctx,n=!0;this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=t.opacity?t.opacity:this.getOptionValue(t,"fill-opacity"),this.setAttributes(t);for(var s=0;s<i.length;s+=3){var a=parseFloat(i[s+1]),h=parseFloat(i[s+2]);switch(i[s]){case"M":t.innerR||t.cx||this.ctx.moveTo(a,h);break;case"L":t.innerR||this.ctx.lineTo(a,h);break;case"C":var l=parseFloat(i[s+3]),d=parseFloat(i[s+4]),c=parseFloat(i[s+5]),p=parseFloat(i[s+6]);this.ctx.bezierCurveTo(a,h,l,d,c,p),s+=4;break;case"A":t.innerR?n&&(this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.arc(t.x,t.y,t.innerR,t.end,t.start,!t.counterClockWise),n=!1):t.cx?this.ctx.arc(t.cx,t.cy,t.radius,0,2*Math.PI,t.counterClockWise):(this.ctx.moveTo(t.x,t.y),this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.lineTo(t.x,t.y)),s+=5;break;case"z":this.ctx.closePath()}}"none"!==t.fill&&void 0!==t.fill&&(this.ctx.fillStyle=t.fill,this.ctx.fill()),r>0&&this.ctx.stroke(),this.ctx.restore(),this.ctx=o,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawText=function(t,i){var r=this.getOptionValue(t,"font-weight");e.isNullOrUndefined(r)||"regular"!==r.toLowerCase()||(r="normal");var o=this.getOptionValue(t,"font-size"),n=this.getOptionValue(t,"font-family"),s=this.getOptionValue(t,"font-style").toLowerCase()+" "+r+" "+o+" "+n,a=this.getOptionValue(t,"text-anchor"),h=void 0!==t.opacity?t.opacity:1;"middle"===a&&(a="center"),this.ctx.save(),this.ctx.fillStyle=t.fill,this.ctx.font=s,this.ctx.textAlign=a,this.ctx.globalAlpha=h,t.baseline&&(this.ctx.textBaseline=t.baseline);this.ctx.translate(t.x+0,t.y),this.ctx.rotate(t.labelRotation*Math.PI/180),this.ctx.fillText(i,0,0),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawCircle=function(t){var e=this.ctx;this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.cx,t.cy,t.r,0,2*Math.PI),this.ctx.fillStyle=t.fill,this.ctx.globalAlpha=t.opacity,this.ctx.fill(),this.setAttributes(t),this.ctx.stroke(),this.ctx.restore(),this.ctx=e,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawPolyline=function(t){this.ctx.save(),this.ctx.beginPath();for(var e=t.points.split(" "),i=0;i<e.length-1;i++){var r=e[i].split(","),o=parseFloat(r[0]),n=parseFloat(r[1]);0===i?this.ctx.moveTo(o,n):this.ctx.lineTo(o,n)}this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawEllipse=function(t){var e=this.ctx,i=Math.max(t.rx,t.ry),r=t.rx/i,o=t.ry/i;this.ctx.save(),this.ctx.beginPath(),this.ctx.translate(t.cx,t.cy),this.ctx.save(),this.ctx.scale(r,o),this.ctx.arc(0,0,i,0,2*Math.PI,!1),this.ctx.fillStyle=t.fill,this.ctx.fill(),this.ctx.restore(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore(),this.ctx=e,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawImage=function(t){this.ctx.save();var i=new Image;e.isNullOrUndefined(t.href)||(i.src=t.href,this.ctx.drawImage(i,t.x,t.y,t.width,t.height)),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.createLinearGradient=function(t){var i;return e.isNullOrUndefined(t[0].colorStop)||(i=this.ctx.createLinearGradient(0,0,0,this.canvasObj.height)),this.setGradientValues(t,i)},t.prototype.createRadialGradient=function(t){var i;return e.isNullOrUndefined(t[0].colorStop)||(i=this.ctx.createRadialGradient(0,0,0,0,0,this.canvasObj.height)),this.setGradientValues(t,i)},t.prototype.setGradientValues=function(t,i){var r;if(e.isNullOrUndefined(t[0].colorStop))r=t[0].color.toString();else{for(var o=0;o<=t.length-1;o++){var n=t[o].color,s=t[o].colorStop.slice(0,-1),a=parseInt(s,10)/100;i.addColorStop(a,n)}r=i.toString()}return this.dataUrl=this.canvasObj.toDataURL(),r},t.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=Object.keys(t).map(function(e){return t[e]}),o=0;o<i.length;o++)e.setAttribute(i[o],r[o]);return e},t.prototype.updateCanvasAttributes=function(t){this.setElementAttributes(t,this.canvasObj);var i=this.ctx;if(!e.isNullOrUndefined(this.dataUrl)){var r=new Image;r.onload=function(){i.drawImage(r,0,0)},r.src=this.dataUrl}},t}(),p=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),u=function(){function t(t,e){this.width=t,this.height=e}return t}(),y=function(){function t(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r}return t}(),g=function(){function t(t,e){this.isRight=e,this.isBottom=t}return t}(),f=function(){function t(t){this.id=t}return t}(),m=function(t){function e(e,i,r,o,n,s,a){void 0===s&&(s="");var h=t.call(this,e)||this;return h.transform="",h.baseLine="auto",h.x=i,h.y=r,h.anchor=o,h.text=n,h.transform=s,h.baseLine=a,h}return p(e,t),e}(f),x=function(t){function e(e,i,r,o,n,s,a){var h=t.call(this,e)||this;return h.opacity=n,h.fill=i,h.stroke=o,h["stroke-width"]=r,h["stroke-dasharray"]=s,h.d=a,h}return p(e,t),e}(f),v=function(){function t(t,e){this.x=t,this.y=e}return t}(),b=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),w=function(t,e,i,r){var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s},S=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property(null)],i.prototype,"size",void 0),w([e.Property("")],i.prototype,"color",void 0),w([e.Property("Segoe UI")],i.prototype,"fontFamily",void 0),w([e.Property("Normal")],i.prototype,"fontWeight",void 0),w([e.Property("Normal")],i.prototype,"fontStyle",void 0),w([e.Property(1)],i.prototype,"opacity",void 0),i}(e.ChildProperty),L=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property("")],i.prototype,"color",void 0),w([e.Property(1)],i.prototype,"width",void 0),i}(e.ChildProperty),P=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property(0)],i.prototype,"x",void 0),w([e.Property(0)],i.prototype,"y",void 0),w([e.Property(0)],i.prototype,"width",void 0),w([e.Property(0)],i.prototype,"height",void 0),i}(e.ChildProperty),O=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property(0)],i.prototype,"x",void 0),w([e.Property(0)],i.prototype,"y",void 0),i}(e.ChildProperty),A=function(t){function h(e,i){return t.call(this,e,i)||this}return b(h,t),h.prototype.preRender=function(){this.initPrivateVariable(),this.removeSVG(),this.createTooltipElement()},h.prototype.initPrivateVariable=function(){this.renderer=new d(this.element.id),this.themeStyle=i(this.theme),this.formattedText=[],this.padding=5,this.isFirst=!0,this.markerPoint=[]},h.prototype.removeSVG=function(){var t=document.getElementById(this.element.id+"_svg"),i=document.getElementById(this.element.id+"parent_template");t&&t.parentNode&&e.remove(t),i&&i.parentNode&&e.remove(i)},h.prototype.render=function(){if(this.fadeOuted=!1,this.template)this.updateTemplateFn(),this.createTemplate(this.areaBounds,this.location);else{this.renderText(this.isFirst);var t={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",t);var i=this.renderTooltipElement(this.areaBounds,this.location);this.drawMarker(i.isBottom,i.isRight,this.markerSize)}this.trigger("loaded",{tooltip:this});var r=document.getElementById("chartmeasuretext");r&&e.remove(r)},h.prototype.createTooltipElement=function(){if(this.textElements=[],!this.template||this.shared){var t=this.renderer.createSvg({id:this.element.id+"_svg"});this.element.appendChild(t);var e=this.renderer.createGroup({id:this.element.id+"_group"});t.appendChild(e);var i=this.renderer.drawPath({id:this.element.id+"_path","stroke-width":"Bootstrap4"===this.theme?0:this.border.width,fill:this.fill||this.themeStyle.tooltipFill,opacity:"Bootstrap4"===this.theme?.9:this.opacity,stroke:this.border.color});e.appendChild(i)}},h.prototype.drawMarker=function(t,e,i){if(this.shapes.length<=0)return null;for(var r,o=0,s=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),h=n(this.element.id+"_group"),l=2*this.marginX+i/2+(e?this.arrowPadding:0),d=0,c=this.shapes;d<c.length;d++){var p=c[d];r=new x(this.element.id+"_Trackball_"+o,this.palette[o],1,"#cccccc",1,null),this.markerPoint[o]&&s.appendChild(a(new v(l,this.markerPoint[o]-this.padding+(t?this.arrowPadding:0)),p,new u(i,i),"",r,null)),o++}h.appendChild(s)},h.prototype.renderTooltipElement=function(t,i){var s,a=n(this.element.id),h=new v(0,0),l=new v(0,0),d=n(this.element.id+"_svg"),c=n(this.element.id+"_group"),p=n(this.element.id+"_path"),u=!1,f=!1,m=!1,x=0,b=0;if(this.tipRadius=1,""!==this.header&&(this.elementSize.height+=this.marginY),this.content.length>1?(s=this.sharedTooltipLocation(t,this.location.x,this.location.y),u=!0):(s=this.tooltipLocation(t,i,h,l),this.inverted?x=(f=s.x<i.x+this.clipBounds.x)?0:this.arrowPadding:(m=!(u=s.y<i.y+this.clipBounds.y),b=u?0:this.arrowPadding)),""!==this.header){var w=r(this.header,this.textStyle).height+2*this.marginY+(m?this.arrowPadding:0),S="M "+(3*this.marginX+(f||u||m?0:this.arrowPadding))+" "+w+"L "+(s.width+(f||u||m?0:this.arrowPadding)-2*this.marginX)+" "+w,L=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:.8,stroke:this.themeStyle.tooltipHeaderLine,d:S});c.appendChild(L)}var P=this.border.width/2,O=new y(P+x,P+b,s.width-P,s.height-P);if(c.setAttribute("opacity","1"),!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(a,s.x,s.y):this.animateTooltipDiv(a,s),d.setAttribute("height",(s.height+this.border.width+(this.inverted?0:this.arrowPadding)).toString()),d.setAttribute("width",(s.width+this.border.width+(this.inverted?this.arrowPadding:0)).toString()),d.setAttribute("opacity","1"),p.setAttribute("d",o(this.rx,this.ry,O,h,this.arrowPadding,u,m,f,l.x,l.y,this.tipRadius)),this.enableShadow&&"Bootstrap4"!==this.theme){var A=this.element.id+"_shadow";p.setAttribute("filter",e.Browser.isIE?"":"url(#"+A+")");var k='<filter id="'+A+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';k+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',k+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var C=this.renderer.createDefs();C.setAttribute("id","SVG_tooltip_definition"),c.appendChild(C),C.innerHTML=k}return p.setAttribute("stroke",this.border.color),this.changeText(new v(x,b),m,!f&&!u&&!m,s),new g(m,!f&&!u&&!m)},h.prototype.changeText=function(t,e,i,r){var o=document.getElementById(this.element.id+"_text");e&&o.setAttribute("transform","translate(0,"+this.arrowPadding+")"),i&&o.setAttribute("transform","translate("+this.arrowPadding+" 0)")},h.prototype.findFormattedText=function(){this.formattedText=[],""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()&&(this.formattedText=this.formattedText.concat(this.header)),this.formattedText=this.formattedText.concat(this.content)},h.prototype.renderText=function(t){var i,o,a,h,d=0,c=0,p=0,y=e.extend({},this.textStyle,null,!0).properties,g=n(this.element.id+"_group"),f="";this.findFormattedText();var x=this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim(),v=""!==x?this.marginY:0,b=!0,w=!0;this.markerPoint=[];var S=this.shapes.length>0?10:0,L=this.shapes.length>0?5:0,P="Normal",O=this.themeStyle.tooltipLightLabel,A=22/parseFloat("13px")*parseFloat(y.size);t||(s(this.element.id+"_text"),s(this.element.id+"_header_path"),s(this.element.id+"_trackball_group"),s("SVG_tooltip_definition"));for(var k=new m(this.element.id+"_text",2*this.marginX,2*this.marginY+2*this.padding+(2===this.marginY?3:0),"start",""),C=l(k,y,null,g),E=0,N=this.formattedText.length;E<N;E++){var T=this.formattedText[E].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g);if(""!==T[0]){r(this.formattedText[E],y),0===E&&""!==x||this.markerPoint.push((""!==x?this.marginY:0)+k.y+d);for(var _=0,R=T.length;_<R;_++){p=0,w=!0,d+=A;for(var I=0,B=(i=T[_].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,"<br>‎:<br>").split("<br>")).length;I<B;I++)a=i[I],/\S/.test(a)||""===a||(a=" "),(!w&&" "===a||""!==a.replace(/<b>/g,"").replace(/<\/b>/g,"").trim())&&(p+=" "!==a?4:0,w&&!b?(h={x:2*this.marginX+(S+L),dy:A+(w?v:0),fill:""},v=null):h=b&&w?{x:""===x?2*this.marginX+(S+L):2*this.marginX}:{},w=!1,o=this.renderer.createTSpan(h,""),C.appendChild(o),a.indexOf("<b>")>-1?(P="bold",O=this.themeStyle.tooltipBoldLabel,f="font-weight:"+P,y.fontWeight=P,o.setAttribute("fill",this.textStyle.color||O)):(f="bold"===P?"font-weight:"+P:"",y.fontWeight=P,o.setAttribute("fill",this.textStyle.color||O)),a.indexOf("</b>")>-1&&(P="Normal",O=this.themeStyle.tooltipLightLabel),o.textContent=a=a.replace(/<[a-zA-Z\/](.|\n)*?>/g,""),p+=r(a,y).width,""!==f&&o.setAttribute("style",f),b=!1);p-=4,c=Math.max(c,p)}}}this.elementSize=new u(c+(c>0?2*this.marginX:0),d),this.elementSize.width+=S+L;var j=C.childNodes[0];if(""!==x&&j){y.fontWeight="bold";var U=(this.elementSize.width+2*this.padding)/2-r(x,y).width/2;j.setAttribute("x",U.toString())}},h.prototype.createTemplate=function(t,i){var r={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",r);var o=document.getElementById(this.element.id),s=o.firstElementChild;if(s&&e.remove(s),r.cancel)e.remove(n(this.element.id+"_tooltip"));else{for(var a=this.templateFn(this.data),h=e.createElement("div",{id:this.element.id+"parent_template"});a&&a.length>0;)h.appendChild(a[0]);o.appendChild(h);var l=this.element.getBoundingClientRect();this.padding=0,this.elementSize=new u(l.width,l.height);var d=this.tooltipLocation(t,i,new v(0,0),new v(0,0));!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(this.element,d.x,d.y):this.animateTooltipDiv(this.element,d)}},h.prototype.sharedTooltipLocation=function(t,e,i){var r=this.elementSize.width+2*this.marginX,o=this.elementSize.height+2*this.marginY,n=new y(e+2*this.padding,i-o-this.padding,r,o);return n.y<t.y&&(n.y+=n.height+2*this.padding),n.x+n.width>t.x+t.width&&(n.x-=n.width+4*this.padding),n},h.prototype.tooltipLocation=function(t,e,i,r){var o=new v(e.x,e.y),n=this.elementSize.width+2*this.marginX,s=this.elementSize.height+2*this.marginY,a=this.offset,h=this.clipBounds.x,l=this.clipBounds.y,d=t.x,c=t.y;return this.inverted?(o=new v(o.x+h+a,o.y+l-this.elementSize.height/2-this.padding),i.y=r.y=s/2,(o.x+n+this.arrowPadding>d+t.width||this.isNegative)&&(o.x=(e.x>t.width?t.width:e.x)+h-a-(n+this.arrowPadding)),o.x<d&&(o.x=(e.x<0?0:e.x)+h+a),o.y<=c&&(i.y-=c-o.y,r.y-=c-o.y,o.y=c),o.y+s>=c+t.height&&(i.y+=o.y+s-(c+t.height),r.y+=o.y+s-(c+t.height),o.y-=o.y+s-(c+t.height)),i.y+this.arrowPadding/2>s-this.ry&&(i.y=s-this.ry-this.arrowPadding/2,r.y=s,this.tipRadius=0),i.y-this.arrowPadding/2<this.ry&&(i.y=this.ry+this.arrowPadding/2,r.y=0,this.tipRadius=0)):(o=new v(o.x+h-this.elementSize.width/2-this.padding,o.y+l-this.elementSize.height-2*this.padding-this.arrowPadding-a),i.x=r.x=n/2,(o.y<c||this.isNegative)&&(o.y=(e.y<0?0:e.y)+l+a),o.y+s+this.arrowPadding>c+t.height&&(o.y=(e.y>t.height?t.height:e.y)+l-this.elementSize.height-2*this.padding-this.arrowPadding-a),r.x=n/2,o.x<d&&(i.x-=d-o.x,r.x-=d-o.x,o.x=d),o.x+n>d+t.width&&(i.x+=o.x+n-(d+t.width),r.x+=o.x+n-(d+t.width),o.x-=o.x+n-(d+t.width)),i.x+this.arrowPadding/2>n-this.rx&&(i.x=n-this.rx-this.arrowPadding/2,r.x=n,this.tipRadius=0),i.x-this.arrowPadding/2<this.rx&&(i.x=this.rx+this.arrowPadding/2,r.x=0,this.tipRadius=0)),new y(o.x,o.y,n,s)},h.prototype.animateTooltipDiv=function(t,i){var r,o=this,n=parseFloat(t.style.left),s=parseFloat(t.style.top);new e.Animation({}).animate(t,{duration:300,progress:function(e){r=e.timeStamp/e.duration,t.style.animation=null,t.style.left=n+r*(i.x-n)+"px",t.style.top=s+r*(i.y-s)+"px"},end:function(e){o.updateDiv(t,i.x,i.y),o.trigger("animationComplete",{tooltip:o})}})},h.prototype.updateDiv=function(t,e,i){t.style.left=e+"px",t.style.top=i+"px"},h.prototype.updateTemplateFn=function(){if(this.template)try{document.querySelectorAll(this.template).length&&(this.templateFn=e.compile(document.querySelector(this.template).innerHTML.trim()))}catch(t){this.templateFn=e.compile(this.template)}},h.prototype.fadeOut=function(){var t=this,i=n(this.element.id);if(i){var r=i.firstChild,o=parseFloat(r.getAttribute("opacity"))||1;new e.Animation({}).animate(r,{duration:200,progress:function(e){t.progressAnimation(r,o,e.timeStamp/e.duration)},end:function(e){t.fadeOuted=!0,t.endAnimation(r)}})}},h.prototype.progressAnimation=function(t,e,i){t.style.animation="",t.setAttribute("opacity",(e-i).toString())},h.prototype.endAnimation=function(t){t.setAttribute("opacity","0"),this.template&&!this.shared&&(t.style.display="none"),this.trigger("animationComplete",{tooltip:this})},h.prototype.getPersistData=function(){var t=[];return this.addOnPersist(t)},h.prototype.getModuleName=function(){return"tooltip"},h.prototype.destroy=function(){t.prototype.destroy.call(this),this.element.classList.remove("e-tooltip")},h.prototype.onPropertyChanged=function(t,e){this.isFirst=!1,this.render()},w([e.Property(!1)],h.prototype,"enable",void 0),w([e.Property(!1)],h.prototype,"shared",void 0),w([e.Property(!0)],h.prototype,"enableShadow",void 0),w([e.Property(null)],h.prototype,"fill",void 0),w([e.Property("")],h.prototype,"header",void 0),w([e.Property(.75)],h.prototype,"opacity",void 0),w([e.Complex({size:"13px",fontWeight:"Normal",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"},S)],h.prototype,"textStyle",void 0),w([e.Property(null)],h.prototype,"template",void 0),w([e.Property(!0)],h.prototype,"enableAnimation",void 0),w([e.Property(!1)],h.prototype,"inverted",void 0),w([e.Property(!1)],h.prototype,"isNegative",void 0),w([e.Complex({color:"#cccccc",width:.5},L)],h.prototype,"border",void 0),w([e.Property([])],h.prototype,"content",void 0),w([e.Property(10)],h.prototype,"markerSize",void 0),w([e.Complex({x:0,y:0},O)],h.prototype,"clipBounds",void 0),w([e.Property([])],h.prototype,"palette",void 0),w([e.Property([])],h.prototype,"shapes",void 0),w([e.Complex({x:0,y:0},O)],h.prototype,"location",void 0),w([e.Property(0)],h.prototype,"offset",void 0),w([e.Property(2)],h.prototype,"rx",void 0),w([e.Property(2)],h.prototype,"ry",void 0),w([e.Property(5)],h.prototype,"marginX",void 0),w([e.Property(5)],h.prototype,"marginY",void 0),w([e.Property(12)],h.prototype,"arrowPadding",void 0),w([e.Property(null)],h.prototype,"data",void 0),w([e.Property("Material")],h.prototype,"theme",void 0),w([e.Complex({x:0,y:0,width:0,height:0},P)],h.prototype,"areaBounds",void 0),w([e.Event()],h.prototype,"tooltipRender",void 0),w([e.Event()],h.prototype,"loaded",void 0),w([e.Event()],h.prototype,"animationComplete",void 0),h=w([e.NotifyPropertyChanges],h)}(e.Component);return t.TextStyle=S,t.TooltipBorder=L,t.AreaBounds=P,t.ToolLocation=O,t.Tooltip=A,t.getTooltipThemeColor=i,t.measureText=r,t.findDirection=o,t.Size=u,t.Rect=y,t.Side=g,t.CustomizeOption=f,t.TextOption=m,t.getElement=n,t.removeElement=s,t.drawSymbol=a,t.calculateShapes=h,t.PathOption=x,t.textElement=l,t.TooltipLocation=v,t.SvgRenderer=d,t.CanvasRenderer=c,t}({},ej.base),this.ejs=ej;
//# sourceMappingURL=ej2-svg-base.min.js.map
/*!
* filename: index.d.ts
* version : 17.1.32-beta
* version : 17.1.38
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved.

@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license.

{
"_from": "@syncfusion/ej2-svg-base@*",
"_id": "@syncfusion/ej2-svg-base@17.1.1",
"_inBundle": false,
"_integrity": "sha512-KDagupfZIQvHyowNbuFtxvBAquv5L9UmZPySOhL2a2vIKLrz/IjK0oWwEeVLOK3VNl7I2WJ0bapEqEqCIyCBaA==",
"_location": "/@syncfusion/ej2-svg-base",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@syncfusion/ej2-svg-base@*",
"name": "@syncfusion/ej2-svg-base",
"escapedName": "@syncfusion%2fej2-svg-base",
"scope": "@syncfusion",
"rawSpec": "*",
"saveSpec": null,
"fetchSpec": "*"
},
"_requiredBy": [
"/",
"/@syncfusion/ej2",
"/@syncfusion/ej2-charts",
"/@syncfusion/ej2-circulargauge",
"/@syncfusion/ej2-heatmap",
"/@syncfusion/ej2-lineargauge",
"/@syncfusion/ej2-maps",
"/@syncfusion/ej2-pivotview",
"/@syncfusion/ej2-treemap"
],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-production/@syncfusion/ej2-svg-base/-/ej2-svg-base-17.1.1.tgz",
"_shasum": "f12f7eebf081a38270ecc7ca659e6660f3d57c36",
"_spec": "@syncfusion/ej2-svg-base@*",
"_where": "D:\\important\\apps\\nexus-rp\\release",
"author": {
"name": "Syncfusion Inc."
},
"bugs": {
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/issues"
},
"bundleDependencies": false,
"name": "@syncfusion/ej2-svg-base",
"version": "17.1.38",
"description": "Essential JS 2 SVG Base Components",
"author": "Syncfusion Inc.",
"license": "SEE LICENSE IN license",
"dependencies": {
"@syncfusion/ej2-base": "~17.1.32-beta"
"@syncfusion/ej2-base": "~17.1.38"
},
"deprecated": false,
"description": "Essential JS 2 SVG Base Components",
"devDependencies": {},
"es2015": "./dist/es6/ej2-svg-base.es2015.js",
"homepage": "https://github.com/syncfusion/ej2-javascript-ui-controls#readme",
"keywords": [

@@ -54,12 +16,10 @@ "ej2",

],
"license": "SEE LICENSE IN license",
"main": "./dist/ej2-svg-base.umd.min.js",
"module": "./index.js",
"name": "@syncfusion/ej2-svg-base",
"repository": {
"type": "git",
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls.git"
},
"version": "17.1.32-beta",
"main": "./dist/ej2-svg-base.umd.min.js",
"module": "./index.js",
"es2015": "./dist/es6/ej2-svg-base.es2015.js",
"sideEffects": true
}

@@ -198,4 +198,4 @@ var __extends = (this && this.__extends) || (function () {

var pathElement = this.renderer.drawPath({
'id': this.element.id + '_path', 'stroke-width': this.border.width,
'fill': this.fill || this.themeStyle.tooltipFill, 'opacity': this.opacity,
'id': this.element.id + '_path', 'stroke-width': this.theme === 'Bootstrap4' ? 0 : this.border.width,
'fill': this.fill || this.themeStyle.tooltipFill, 'opacity': this.theme === 'Bootstrap4' ? 0.9 : this.opacity,
'stroke': this.border.color

@@ -285,3 +285,3 @@ });

pathElement.setAttribute('d', findDirection(this.rx, this.ry, pointRect, arrowLocation, this.arrowPadding, isTop, isBottom, isLeft, tipLocation.x, tipLocation.y, this.tipRadius));
if (this.enableShadow) {
if (this.enableShadow && this.theme !== 'Bootstrap4') {
// To fix next chart initial tooltip opacity issue in tab control

@@ -288,0 +288,0 @@ var shadowId = this.element.id + '_shadow';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc