Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-svg-base

Package Overview
Dependencies
1
Maintainers
3
Versions
112
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 19.2.60 to 19.3.43

dist/ts/svg-render/canvas-renderer.ts

2

.eslintrc.json

@@ -244,2 +244,2 @@ {

]
}
}

@@ -5,4 +5,2 @@ # Changelog

## 19.2.44 (2021-06-30)
### Svg Base

@@ -9,0 +7,0 @@

/*!
* filename: ej2-svg-base.umd.min.js
* version : 19.2.60
* version : 19.3.43
* Copyright Syncfusion Inc. 2001 - 2020. 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":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;case"Tailwind":e={tooltipFill:"#111827",tooltipBoldLabel:"#D1D5DB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#6B7280"};break;case"TailwindDark":e={tooltipFill:"#F9FAFB",tooltipBoldLabel:"#6B7280",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#9CA3AF"};break;default:e={tooltipFill:"rgba(0, 8, 22, 0.75)",tooltipBoldLabel:"#ffffff",tooltipLightLabel:"#dbdbdb",tooltipHeaderLine:"#ffffff"}}return e}function r(t,i){var r=t||"",o=document.getElementById("chartmeasuretext");if(null===o&&(o=e.createElement("text",{id:"chartmeasuretext"}),document.body.appendChild(o)),"string"==typeof t&&(t.indexOf("<")>-1||t.indexOf(">")>-1)){for(var n=t.split(" "),s=0;s<n.length;s++)-1===n[s].indexOf("<br/>")&&(n[s]=n[s].replace(/[<>]/g,"&"));t=n.join(" ")}return o.innerHTML=r.indexOf("<br>")>-1||r.indexOf("<br/>")>-1?r:t,o.style.position="fixed",o.style.fontSize=i.size,o.style.fontWeight=i.fontWeight,o.style.fontStyle=i.fontStyle,o.style.fontFamily=i.fontFamily,o.style.visibility="hidden",o.style.top="-100",o.style.left="0",o.style.whiteSpace="nowrap",o.style.lineHeight="normal",new u(o.clientWidth,o.clientHeight)}function o(t,e,i,r,o,n,s,a,l,h,d){var p="",c=i.x,u=i.y,y=i.x+i.width,f=i.y+i.height;return d=d||0,n?(p=(p=p.concat("M "+c+" "+(u+e)+" Q "+c+" "+u+" "+(c+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&&(p=(p=p.concat(" L "+(r.x+o/2)+" "+f)).concat(" L "+(l+d)+" "+(f+o-d)),p+=" Q "+l+" "+(f+o)+" "+(l-d)+" "+(f+o-d)),p=r.x-o/2>c?p.concat(" L "+(r.x-o/2)+" "+f+" L "+(c+t)+" "+f+" Q "+c+" "+f+" "+c+" "+(f-e)+" z"):0===o?p.concat(" L "+(c+t)+" "+f+" Q "+c+" "+f+" "+c+" "+(f-e)+" z"):p.concat(" L "+c+" "+(f+e)+" z")):s?(p=(p=p.concat("M "+c+" "+(u+e)+" Q "+c+" "+u+" "+(c+t)+" "+u+" L "+(r.x-o/2)+" "+u)).concat(" L "+(l-d)+" "+(r.y+d)),p=(p=(p+=" Q "+l+" "+r.y+" "+(l+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 "+(c+t)+" "+f+" Q "+c+" "+f+" "+c+" "+(f-e)+" z")):a?(p=(p=(p=p.concat("M "+c+" "+(u+e)+" Q "+c+" "+u+" "+(c+t)+" "+u)).concat(" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e)+" L "+y+" "+(r.y-o/2))).concat(" L "+(y+o-d)+" "+(h-d)),p=(p=(p+=" Q "+(y+o)+" "+h+" "+(y+o-d)+" "+(h+d)).concat(" L "+y+" "+(r.y+o/2)+" L "+y+" "+(f-e)+" Q "+y+" "+f+" "+(y-t)+" "+f)).concat(" L "+(c+t)+" "+f+" Q "+c+" "+f+" "+c+" "+(f-e)+" z")):(p=(p=p.concat("M "+(c+t)+" "+u+" Q "+c+" "+u+" "+c+" "+(u+e)+" L "+c+" "+(r.y-o/2))).concat(" L "+(c-o+d)+" "+(h-d)),p=(p=(p+=" Q "+(c-o)+" "+h+" "+(c-o+d)+" "+(h+d)).concat(" L "+c+" "+(r.y+o/2)+" L "+c+" "+(f-e)+" Q "+c+" "+f+" "+(c+t)+" "+f)).concat(" L "+(y-t)+" "+f+" Q "+y+" "+f+" "+y+" "+(f-e)+" L "+y+" "+(u+e)+" Q "+y+" "+u+" "+(y-t)+" "+u+" z")),p}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=l(t,i,e,o,r),h=s["draw"+a.functionName](a.renderOption);return h.setAttribute("aria-label",n),h}function l(t,i,r,o,n){var s,a="Path",l=i.width,h=i.height,d=t.x,p=t.y,c=t.x+-l/2,u=t.y+-h/2;switch(r){case"Circle":case"Bubble":a="Ellipse",e.merge(o,{rx:l/2,ry:h/2,cx:d,cy:p});break;case"Cross":s="M "+c+" "+p+" L "+(d+l/2)+" "+p+" M "+d+" "+(p+h/2)+" L "+d+" "+(p+-h/2),e.merge(o,{d:s});break;case"HorizontalLine":s="M "+c+" "+p+" L "+(d+l/2)+" "+p,e.merge(o,{d:s});break;case"VerticalLine":s="M "+d+" "+(p+h/2)+" L "+d+" "+(p+-h/2),e.merge(o,{d:s});break;case"Diamond":s="M "+c+" "+p+" L "+d+" "+(p+-h/2)+" L "+(d+l/2)+" "+p+" L "+d+" "+(p+h/2)+" L "+c+" "+p+" z",e.merge(o,{d:s});break;case"Rectangle":s="M "+c+" "+(p+-h/2)+" L "+(d+l/2)+" "+(p+-h/2)+" L "+(d+l/2)+" "+(p+h/2)+" L "+c+" "+(p+h/2)+" L "+c+" "+(p+-h/2)+" z",e.merge(o,{d:s});break;case"Triangle":s="M "+c+" "+(p+h/2)+" L "+d+" "+(p+-h/2)+" L "+(d+l/2)+" "+(p+h/2)+" L "+c+" "+(p+h/2)+" z",e.merge(o,{d:s});break;case"InvertedTriangle":s="M "+(d+l/2)+" "+(p-h/2)+" L "+d+" "+(p+h/2)+" L "+(d-l/2)+" "+(p-h/2)+" L "+(d+l/2)+" "+(p-h/2)+" z",e.merge(o,{d:s});break;case"Pentagon":for(var y=void 0,f=void 0,g=0;g<=5;g++)y=l/2*Math.cos(Math.PI/180*(72*g)),f=h/2*Math.sin(Math.PI/180*(72*g)),s=0===g?"M "+(d+y)+" "+(p+f)+" ":s.concat("L "+(d+y)+" "+(p+f)+" ");s=s.concat("Z"),e.merge(o,{d:s});break;case"Image":a="Image",e.merge(o,{href:n,height:h,width:l,x:c,y:u})}return{renderOption:o,functionName:a}}function h(t,e,i,r){var o={},n=new d("");o={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};var s="string"==typeof t.text?t.text:t.text[0],a=n.createText(o,s);return a.style.fontFamily=e.fontFamily,a.style.fontStyle=e.fontStyle,a.style.fontSize=e.size,a.style.fontWeight=e.fontWeight,a.style.color=e.color,r.appendChild(a),a}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,i,r){var o=this.createDefs(),n=document.createElementNS(this.svgLink,t);n=this.setElementAttributes(i,n);for(var s=0;s<r.length;s++){var a=document.createElementNS(this.svgLink,"stop");a.setAttribute("offset",r[s].colorStop),a.setAttribute("stop-color",r[s].color),a.setAttribute("stop-opacity",r[s].opacity?r[s].opacity:"1"),e.isNullOrUndefined(r[s].style)||a.setAttribute("style",r[s].style),n.appendChild(a)}return o.appendChild(n),o},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.prototype.createCanvas=function(){return null},t}(),p=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()},t.prototype.drawRectangle=function(t,e){var i=this.ctx,r=t.rx;return this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=this.getOptionValue(t,"opacity"),this.setAttributes(t),this.ctx.rect(t.x,t.y,t.width,t.height),null!==r&&r>=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=i,this.canvasObj},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()},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]),l=parseFloat(i[s+2]);switch(i[s]){case"M":t.innerR||t.cx||this.ctx.moveTo(a,l);break;case"L":t.innerR||this.ctx.lineTo(a,l);break;case"Q":var h=parseFloat(i[s+3]),d=parseFloat(i[s+4]);this.ctx.quadraticCurveTo(a,l,h,d),s+=2;break;case"C":var p=parseFloat(i[s+3]),c=parseFloat(i[s+4]),u=parseFloat(i[s+5]),y=parseFloat(i[s+6]);this.ctx.bezierCurveTo(a,l,p,c,u,y),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":case"Z":this.ctx.closePath(),s-=2}}return"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.canvasObj},t.prototype.createText=function(t,i,r,o,n,s){var a=this.getOptionValue(t,"font-weight");e.isNullOrUndefined(a)||"regular"!==a.toLowerCase()||(a="normal");var l=this.getOptionValue(t,"font-size"),h=this.getOptionValue(t,"font-family"),d=this.getOptionValue(t,"font-style").toLowerCase()+" "+a+" "+l+" "+h,p=this.getOptionValue(t,"text-anchor"),c=void 0!==t.opacity?t.opacity:1;if("middle"===p&&(p="center"),this.ctx.save(),this.ctx.fillStyle=t.fill,this.ctx.font=d,this.ctx.textAlign=p,this.ctx.globalAlpha=c,t.baseline&&(this.ctx.textBaseline=t.baseline),!s){this.ctx.translate(t.x+0+(r||0),t.y+(o||0)),this.ctx.rotate(t.labelRotation*Math.PI/180)}return this.ctx.fillText(i,s?t.x:0,s?n:0),this.ctx.restore(),this.canvasObj},t.prototype.drawCircle=function(t,e){var i=this.ctx;return 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(),e&&this.ctx.translate(e[0],e[1]),this.setAttributes(t),this.ctx.stroke(),this.ctx.restore(),this.ctx=i,this.canvasObj},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()},t.prototype.drawEllipse=function(t,e){var i=this.ctx,r=Math.max(t.rx,t.ry),o=t.rx/r,n=t.ry/r;this.ctx.save(),this.ctx.beginPath(),this.ctx.translate(t.cx,t.cy),e&&this.ctx.translate(e[0],e[1]),this.ctx.save(),this.ctx.scale(o,n),this.ctx.arc(0,0,r,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=i},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()},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 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 null},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.prototype.clearRect=function(t){this.ctx.restore(),this.ctx.clearRect(t.x,t.y,t.width,t.height)},t.prototype.createGroup=function(){return null},t.prototype.drawClipPath=function(){return null},t.prototype.canvasClip=function(t){this.ctx.save(),this.ctx.fillStyle="transparent",this.ctx.rect(t.x,t.y,t.width,t.height),this.ctx.fill(),this.ctx.clip()},t.prototype.canvasRestore=function(){this.ctx.restore()},t.prototype.drawPolygon=function(){return null},t.prototype.createDefs=function(){return null},t.prototype.createClipPath=function(){return null},t.prototype.createSvg=function(){return null},t}(),c=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,l){void 0===s&&(s="");var h=t.call(this,e)||this;return h.transform="",h.baseLine="auto",h.labelRotation=0,h.x=i,h.y=r,h.anchor=o,h.text=n,h.transform=s,h.baseLine=a,h.labelRotation=l,h}return c(e,t),e}(g),x=function(t){function e(e,i,r,o,n,s,a){var l=t.call(this,e)||this;return l.opacity=n,l.fill=i,l.stroke=o,l["stroke-width"]=r,l["stroke-dasharray"]=s,l.d=a,l}return c(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),P=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),L=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),T=function(t){function l(e,i){return t.call(this,e,i)||this}return b(l,t),l.prototype.preRender=function(){this.allowServerDataBinding=!1,this.initPrivateVariable(),this.isCanvas||this.removeSVG(),this.createTooltipElement()},l.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=[]},l.prototype.removeSVG=function(){var t=document.getElementById(this.element.id+"_svg"),i=document.getElementById(this.element.id+"parent_template");this.blazorTemplate&&e.resetBlazorTemplate(this.element.id+"parent_template_blazorTemplate"),t&&t.parentNode&&e.remove(t),i&&i.parentNode&&e.remove(i)},l.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),this.allowServerDataBinding=!0},l.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=document.getElementById(this.element.id+"_group");e||(e=this.renderer.createGroup({id:this.element.id+"_group"})).setAttribute("transform","translate(0,0)"),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:"TailwindDark"!==this.theme&&"Tailwind"!==this.theme||.75!==this.opacity?this.opacity:1,stroke:this.border.color});e.appendChild(i)}},l.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"}),l=n(this.element.id+"_group"),h=2*this.marginX+i/2+(e?this.arrowPadding:0),d=0,p=this.shapes;d<p.length;d++){var c=p[d];"None"!==c&&(r=new x(this.element.id+"_Trackball_"+o,this.palette[o],1,"#cccccc",1,null),this.markerPoint[o]&&s.appendChild(a(new v(h,this.markerPoint[o]-this.padding+(t?this.arrowPadding:0)),c,new u(i,i),"",r,null)),o++)}l.appendChild(s)},l.prototype.renderTooltipElement=function(t,i){var s,a=n(this.element.id),l=new v(0,0),h=new v(0,0),d=n(this.element.id+"_svg"),p=n(this.element.id+"_group"),c=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,l,h),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.isWrap?this.wrappedText:this.header,this.textStyle).height+2*this.marginY+(m?this.arrowPadding:0)+(this.isWrap?5: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,P=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:.8,stroke:this.themeStyle.tooltipHeaderLine,d:S});p.appendChild(P)}var L=this.border.width/2,O=new y(L+x,L+b,s.width-L,s.height-L);if(p.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)+5).toString()),d.setAttribute("width",(s.width+this.border.width+(this.inverted?this.arrowPadding:0)+5).toString()),d.setAttribute("opacity","1"),e.isNullOrUndefined(this.tooltipPlacement)||(u=this.tooltipPlacement.indexOf("Top")>-1,m=this.tooltipPlacement.indexOf("Bottom")>-1,g=this.tooltipPlacement.indexOf("Left")>-1),c.setAttribute("d",o(this.rx,this.ry,O,l,this.arrowPadding,u,m,g,h.x,h.y,this.tipRadius)),this.enableShadow&&"Bootstrap4"!==this.theme){var T=this.element.id+"_shadow";"Tailwind"===this.theme||"TailwindDark"===this.theme?c.setAttribute("box-shadow","0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)"):c.setAttribute("filter",e.Browser.isIE?"":"url(#"+T+")");var A='<filter id="'+T+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';A+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',A+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var C=this.renderer.createDefs();C.setAttribute("id",this.element.id+"SVG_tooltip_definition"),p.appendChild(C),C.innerHTML=A}return c.setAttribute("stroke",this.border.color),this.changeText(new v(x,b),m,!g&&!u&&!m),new f(m,!g&&!u&&!m)},l.prototype.changeText=function(t,e,i){var r=document.getElementById(this.element.id+"_text");e&&r.setAttribute("transform","translate(0,"+this.arrowPadding+")"),i&&r.setAttribute("transform","translate("+this.arrowPadding+" 0)")},l.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)},l.prototype.renderText=function(t){var i,o,a,l,d,p=0,c=0,y=0,f=e.extend({},this.textStyle,null,!0).properties,g=n(this.element.id+"_group"),x="";this.findFormattedText();var v="rtl"===document.body.getAttribute("dir")?"end":"start";this.leftSpace=this.areaBounds.x+this.location.x,this.rightSpace=this.areaBounds.x+this.areaBounds.width-this.leftSpace;var b=this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim(),w=this.header.indexOf("<b>")>-1&&this.header.indexOf("</b>")>-1,S=r(this.formattedText[0],f).width+2*this.marginX+this.arrowPadding,P=this.location.x-S<this.location.x,L=this.areaBounds.x+this.areaBounds.width<this.location.x+S,O=""!==b?this.marginY:0,T=!0,A=!0;this.markerPoint=[];var C,k=this.shapes.length>0?10:0,E=this.shapes.length>0?5:0,B="Normal",N=this.themeStyle.tooltipLightLabel,z=22/parseFloat("13px")*parseFloat(f.size);t&&!this.isCanvas||(s(this.element.id+"_text"),s(this.element.id+"_header_path"),s(this.element.id+"_trackball_group"),s(this.element.id+"SVG_tooltip_definition"));for(var _=new m(this.element.id+"_text",2*this.marginX,2*this.marginY+2*this.padding+(2===this.marginY?3:0),v,""),F=h(_,f,null,g),I=1===this.formattedText.length&&this.formattedText[0].indexOf(" : <b>")>-1,R=""!==this.header,j=R&&w?16:13,M=0,D=this.formattedText.length;M<D;M++)if(a=this.formattedText[M].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g),0===M&&!I&&this.isTextWrap&&(this.leftSpace<S||P)&&(this.rightSpace<S||L)&&(C=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/j:this.rightSpace/j),a=(""!==b?b:this.formattedText[M]).match(new RegExp(".{1,"+C+"}","g")),this.wrappedText=w?"<b>"+a.join("<br>")+"</b>":a.join("<br>"),this.isWrap=a.length>1),""!==a[0]){0===M&&""!==b||this.markerPoint.push((""!==b?this.marginY:0)+_.y+p);for(var V=0,G=a.length;V<G;V++){y=0,A=!0,p+=z;for(var U=0,W=(i=a[V].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,"<br>‎:<br>").split("<br>")).length;U<W;U++)l=i[U],/\S/.test(l)||""===l||(l=" "),(!A&&" "===l||""!==l.replace(/<b>/g,"").replace(/<\/b>/g,"").trim())&&(y+=" "!==l?4:0,A&&!T?(d={x:2*this.marginX+(k+E),dy:z+(A?O:0),fill:""},O=null):d=T&&A?{x:""===b?2*this.marginX+(k+E):2*this.marginX+(this.isWrap?k+E:0)}:{},A=!1,o=this.renderer.createTSpan(d,""),F.appendChild(o),l.indexOf("<b>")>-1||w&&0===U&&0===M&&(R||this.isWrap)?(B="bold",N=this.themeStyle.tooltipBoldLabel,x="font-weight:"+B,f.fontWeight=B,o.setAttribute("fill",this.textStyle.color||N)):(x="bold"===B?"font-weight:"+B:"",f.fontWeight=B,o.setAttribute("fill",this.textStyle.color||N)),(l.indexOf("</b>")>-1||w&&U===W-1&&0===M&&(R||this.isWrap))&&(B="Normal",N=this.themeStyle.tooltipLightLabel),o.textContent=l=this.getTooltipTextContent(l),y+=r(l,f).width,""!==x&&(o.style.fontWeight=x.split("font-weight:")[1],o.style.color=o.getAttribute("fill")),o.style.fontFamily="inherit",o.style.fontStyle="inherit",o.style.fontSize="inherit",T=!1);y-=4,c=Math.max(c,y)}}this.elementSize=new u(c+(c>0?2*this.marginX:0),p),this.elementSize.width+=k+E;var Q=F.childNodes[0];if(""!==b&&Q&&!this.isWrap){f.fontWeight="bold";var H=(this.elementSize.width+2*this.padding)/2-r(b,f).width/2;Q.setAttribute("x",H.toString())}},l.prototype.getTooltipTextContent=function(t){var i=t.match(/<[a-zA-Z\/](.|\n)*?>/g);if(e.isNullOrUndefined(i))return t;for(var r=/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t),o=0;o<i.length;o++)this.isValidHTMLElement(i[o].replace("<","").replace("/","").replace(">","").trim())&&(t=t.replace(i[o],r?"‎":""));return t},l.prototype.isValidHTMLElement=function(t){return"[object HTMLUnknownElement]"!=document.createElement(t).toString()},l.prototype.createTemplate=function(t,i){var r={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",r);var o=document.getElementById(this.element.id);this.isCanvas&&this.removeSVG();var s=o.firstElementChild;if(s&&e.remove(s),r.cancel)e.remove(n(this.element.id+"_tooltip"));else{for(var a=e.createElement("div",{id:this.element.id+"parent_template"}),l=this.templateFn(this.data,this.controlInstance,a.id,a.id+"_blazorTemplate","");l&&l.length>0;)e.isBlazor()||1===l.length?(a.appendChild(l[0]),l=null):a.appendChild(l[0]);o.appendChild(a);var h=this.isCanvas?a:this.element,d=h.getBoundingClientRect();this.padding=0,this.elementSize=new u(d.width,d.height);var p=this.shared?this.sharedTooltipLocation(t,this.location.x,this.location.y):this.tooltipLocation(t,i,new v(0,0),new v(0,0));if(!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(h,p.x,p.y):this.animateTooltipDiv(this.element,p),this.blazorTemplate){var c=function(){var e=n(y.element.id).getBoundingClientRect();y.elementSize=new u(e.width,e.height);var r=y.tooltipLocation(t,i,new v(0,0),new v(0,0));y.updateDiv(n(y.element.id),r.x,r.y)},y=this;c.bind(y,t,i),e.updateBlazorTemplate(this.element.id+"parent_template_blazorTemplate",this.blazorTemplate.name,this.blazorTemplate.parent,void 0,c)}}},l.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},l.prototype.getCurrentPosition=function(t,e,i,r){var o=this.tooltipPlacement,n=this.clipBounds.x,s=this.clipBounds.y,a=this.offset,l=this.elementSize.width+2*this.marginX,h=this.elementSize.height+2*this.marginY,d=new v(e.x,e.y);return"Top"===o||"Bottom"===o?(d=new v(d.x+n-this.elementSize.width/2-this.padding,d.y+s-this.elementSize.height-2*this.padding-this.arrowPadding-a),i.x=r.x=l/2,"Bottom"===o&&(d.y=e.y+s+a),t.x+t.width<d.x+l?(d.x=t.width>l?t.x+t.width-l+6:t.x,i.x=r.x=t.width>l?t.x+e.x-d.x:e.x):t.x>d.x&&(d.x=t.x,i.x=r.x=e.x)):(d=new v(d.x+n+a,d.y+s-this.elementSize.height/2-this.padding),i.y=r.y=h/2,"Left"===o&&(d.x=e.x+n-a-(l+this.arrowPadding)),t.y+t.height<d.y+h?(d.y=t.height>h?t.y+t.height-h+6:t.y,i.y=r.y=t.height>h?t.y+e.y-d.y:e.y):t.y>d.y&&(d.y=t.y,i.y=r.y=e.y)),new y(d.x,d.y,l,h)},l.prototype.tooltipLocation=function(t,i,r,o){if(!e.isNullOrUndefined(this.tooltipPlacement)){return this.getCurrentPosition(t,i,r,o)}var n=new v(i.x,i.y),s=this.elementSize.width+2*this.marginX,a=this.elementSize.height+2*this.marginY,l=this.offset,h=this.clipBounds.x,d=this.clipBounds.y,p=t.x,c=t.y;return this.inverted?(n=new v(n.x+h+l,n.y+d-this.elementSize.height/2-this.padding),r.y=o.y=a/2,(n.x+s+this.arrowPadding>p+t.width||this.isNegative)&&(n.x=(i.x>t.width?t.width:i.x)+h-l-(s+this.arrowPadding)),n.x<p&&(n.x=(i.x<0?0:i.x)+h+l),n.y<=c&&(r.y-=c-n.y,o.y-=c-n.y,n.y=c),n.y+a>=c+t.height&&(r.y+=n.y+a-(c+t.height),o.y+=n.y+a-(c+t.height),n.y-=n.y+a-(c+t.height)),r.y+this.arrowPadding/2>a-this.ry&&(r.y=a-this.ry-this.arrowPadding/2,o.y=a,this.tipRadius=0),r.y-this.arrowPadding/2<this.ry&&(r.y=this.ry+this.arrowPadding/2,o.y=0,this.tipRadius=0)):(n=new v(n.x+h-this.elementSize.width/2-this.padding,n.y+d-this.elementSize.height-2*this.padding-this.arrowPadding-l),r.x=o.x=s/2,(n.y<c||this.isNegative)&&(n.y=(i.y<0?0:i.y)+d+l),n.y+a+this.arrowPadding>c+t.height&&(n.y=Math.min(i.y,c+t.height)+d-this.elementSize.height-2*this.padding-this.arrowPadding-l),o.x=s/2,n.x<p&&(r.x-=p-n.x,o.x-=p-n.x,n.x=p),n.x+s>p+t.width&&(r.x+=n.x+s-(p+t.width),o.x+=n.x+s-(p+t.width),n.x-=n.x+s-(p+t.width)),r.x+this.arrowPadding/2>s-this.rx&&(r.x=s-this.rx-this.arrowPadding/2,o.x=s,this.tipRadius=0),r.x-this.arrowPadding/2<this.rx&&(r.x=this.rx+this.arrowPadding/2,o.x=0,this.tipRadius=0)),new y(n.x,n.y,s,a)},l.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:this.duration,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})}})},l.prototype.updateDiv=function(t,e,i){t.style.left=e+"px",t.style.top=i+"px"},l.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)}},l.prototype.fadeOut=function(){var t=this,i=this.isCanvas&&!this.template?n(this.element.id+"_svg"):n(this.element.id);if(i){var r=i.firstChild;if(this.isCanvas&&!this.template&&(r=document.getElementById(this.element.id+"_group")?document.getElementById(this.element.id+"_group"):r),!r)return null;var 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(){t.fadeOuted=!0,t.endAnimation(r)}})}},l.prototype.progressAnimation=function(t,e,i){t.style.animation="",t.setAttribute("opacity",(e-i).toString())},l.prototype.endAnimation=function(t){t.setAttribute("opacity","0"),this.template&&(t.style.display="none"),this.trigger("animationComplete",{tooltip:this})},l.prototype.getPersistData=function(){return this.addOnPersist([])},l.prototype.getModuleName=function(){return"tooltip"},l.prototype.destroy=function(){t.prototype.destroy.call(this),this.element.classList.remove("e-tooltip")},l.prototype.onPropertyChanged=function(t,i){this.blazorTemplate&&e.resetBlazorTemplate(this.element.id+"parent_template_blazorTemplate"),this.isFirst=!1,this.render()},w([e.Property(!1)],l.prototype,"enable",void 0),w([e.Property(!1)],l.prototype,"shared",void 0),w([e.Property(!0)],l.prototype,"enableShadow",void 0),w([e.Property(null)],l.prototype,"fill",void 0),w([e.Property("")],l.prototype,"header",void 0),w([e.Property(.75)],l.prototype,"opacity",void 0),w([e.Complex({size:"13px",fontWeight:"Normal",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"},S)],l.prototype,"textStyle",void 0),w([e.Property(null)],l.prototype,"template",void 0),w([e.Property(!0)],l.prototype,"enableAnimation",void 0),w([e.Property(300)],l.prototype,"duration",void 0),w([e.Property(!1)],l.prototype,"inverted",void 0),w([e.Property(!1)],l.prototype,"isNegative",void 0),w([e.Complex({color:"#cccccc",width:.5},P)],l.prototype,"border",void 0),w([e.Property([])],l.prototype,"content",void 0),w([e.Property(10)],l.prototype,"markerSize",void 0),w([e.Complex({x:0,y:0},O)],l.prototype,"clipBounds",void 0),w([e.Property([])],l.prototype,"palette",void 0),w([e.Property([])],l.prototype,"shapes",void 0),w([e.Complex({x:0,y:0},O)],l.prototype,"location",void 0),w([e.Property(0)],l.prototype,"offset",void 0),w([e.Property(2)],l.prototype,"rx",void 0),w([e.Property(2)],l.prototype,"ry",void 0),w([e.Property(5)],l.prototype,"marginX",void 0),w([e.Property(5)],l.prototype,"marginY",void 0),w([e.Property(12)],l.prototype,"arrowPadding",void 0),w([e.Property(null)],l.prototype,"data",void 0),w([e.Property("Material")],l.prototype,"theme",void 0),w([e.Complex({x:0,y:0,width:0,height:0},L)],l.prototype,"areaBounds",void 0),w([e.Property(null)],l.prototype,"availableSize",void 0),w([e.Property()],l.prototype,"blazorTemplate",void 0),w([e.Property(!1)],l.prototype,"isCanvas",void 0),w([e.Property(!1)],l.prototype,"isTextWrap",void 0),w([e.Property(null)],l.prototype,"tooltipPlacement",void 0),w([e.Property(null)],l.prototype,"controlInstance",void 0),w([e.Event()],l.prototype,"tooltipRender",void 0),w([e.Event()],l.prototype,"loaded",void 0),w([e.Event()],l.prototype,"animationComplete",void 0),l=w([e.NotifyPropertyChanges],l)}(e.Component);t.TextStyle=S,t.TooltipBorder=P,t.AreaBounds=L,t.ToolLocation=O,t.Tooltip=T,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=l,t.PathOption=x,t.textElement=h,t.TooltipLocation=v,t.SvgRenderer=d,t.CanvasRenderer=p,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":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;case"Tailwind":e={tooltipFill:"#111827",tooltipBoldLabel:"#D1D5DB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#6B7280"};break;case"TailwindDark":e={tooltipFill:"#F9FAFB",tooltipBoldLabel:"#6B7280",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#9CA3AF"};break;case"Bootstrap5":e={tooltipFill:"#212529",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#9CA3AF"};break;case"Bootstrap5Dark":e={tooltipFill:"#E9ECEF",tooltipBoldLabel:"#212529",tooltipLightLabel:"#212529",tooltipHeaderLine:"#ADB5BD"};break;default:e={tooltipFill:"rgba(0, 8, 22, 0.75)",tooltipBoldLabel:"#ffffff",tooltipLightLabel:"#dbdbdb",tooltipHeaderLine:"#ffffff"}}return e}function r(t,i){var r=t||"",o=document.getElementById("chartmeasuretext");if(null===o&&(o=e.createElement("text",{id:"chartmeasuretext"}),document.body.appendChild(o)),"string"==typeof t&&(t.indexOf("<")>-1||t.indexOf(">")>-1)){for(var n=t.split(" "),a=0;a<n.length;a++)-1===n[a].indexOf("<br/>")&&(n[a]=n[a].replace(/[<>]/g,"&"));t=n.join(" ")}return o.innerHTML=r.indexOf("<br>")>-1||r.indexOf("<br/>")>-1?r:t,o.style.position="fixed",o.style.fontSize=i.size,o.style.fontWeight=i.fontWeight,o.style.fontStyle=i.fontStyle,o.style.fontFamily=i.fontFamily,o.style.visibility="hidden",o.style.top="-100",o.style.left="0",o.style.whiteSpace="nowrap",o.style.lineHeight="normal",new u(o.clientWidth,o.clientHeight)}function o(t,e,i,r,o,n,a,s,l,h,p){var d="",c=i.x,u=i.y,y=i.x+i.width,f=i.y+i.height;return p=p||0,n?(d=(d=d.concat("M "+c+" "+(u+e)+" Q "+c+" "+u+" "+(c+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&&(d=(d=d.concat(" L "+(r.x+o/2)+" "+f)).concat(" L "+(l+p)+" "+(f+o-p)),d+=" Q "+l+" "+(f+o)+" "+(l-p)+" "+(f+o-p)),d=r.x-o/2>c?d.concat(" L "+(r.x-o/2)+" "+f+" L "+(c+t)+" "+f+" Q "+c+" "+f+" "+c+" "+(f-e)+" z"):0===o?d.concat(" L "+(c+t)+" "+f+" Q "+c+" "+f+" "+c+" "+(f-e)+" z"):d.concat(" L "+c+" "+(f+e)+" z")):a?(d=(d=d.concat("M "+c+" "+(u+e)+" Q "+c+" "+u+" "+(c+t)+" "+u+" L "+(r.x-o/2)+" "+u)).concat(" L "+(l-p)+" "+(r.y+p)),d=(d=(d+=" Q "+l+" "+r.y+" "+(l+p)+" "+(r.y+p)).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 "+(c+t)+" "+f+" Q "+c+" "+f+" "+c+" "+(f-e)+" z")):s?(d=(d=(d=d.concat("M "+c+" "+(u+e)+" Q "+c+" "+u+" "+(c+t)+" "+u)).concat(" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e)+" L "+y+" "+(r.y-o/2))).concat(" L "+(y+o-p)+" "+(h-p)),d=(d=(d+=" Q "+(y+o)+" "+h+" "+(y+o-p)+" "+(h+p)).concat(" L "+y+" "+(r.y+o/2)+" L "+y+" "+(f-e)+" Q "+y+" "+f+" "+(y-t)+" "+f)).concat(" L "+(c+t)+" "+f+" Q "+c+" "+f+" "+c+" "+(f-e)+" z")):(d=(d=d.concat("M "+(c+t)+" "+u+" Q "+c+" "+u+" "+c+" "+(u+e)+" L "+c+" "+(r.y-o/2))).concat(" L "+(c-o+p)+" "+(h-p)),d=(d=(d+=" Q "+(c-o)+" "+h+" "+(c-o+p)+" "+(h+p)).concat(" L "+c+" "+(r.y+o/2)+" L "+c+" "+(f-e)+" Q "+c+" "+f+" "+(c+t)+" "+f)).concat(" L "+(y-t)+" "+f+" Q "+y+" "+f+" "+y+" "+(f-e)+" L "+y+" "+(u+e)+" Q "+y+" "+u+" "+(y-t)+" "+u+" z")),d}function n(t){return document.getElementById(t)}function a(t){var i=n(t);i&&e.remove(i)}function s(t,e,i,r,o,n){var a=new p(""),s=l(t,i,e,o,r),h=a["draw"+s.functionName](s.renderOption);return h.setAttribute("aria-label",n),h}function l(t,i,r,o,n){var a,s="Path",l=i.width,h=i.height,p=t.x,d=t.y,c=t.x+-l/2,u=t.y+-h/2;switch(r){case"Circle":case"Bubble":s="Ellipse",e.merge(o,{rx:l/2,ry:h/2,cx:p,cy:d});break;case"Cross":a="M "+c+" "+d+" L "+(p+l/2)+" "+d+" M "+p+" "+(d+h/2)+" L "+p+" "+(d+-h/2),e.merge(o,{d:a});break;case"HorizontalLine":a="M "+c+" "+d+" L "+(p+l/2)+" "+d,e.merge(o,{d:a});break;case"VerticalLine":a="M "+p+" "+(d+h/2)+" L "+p+" "+(d+-h/2),e.merge(o,{d:a});break;case"Diamond":a="M "+c+" "+d+" L "+p+" "+(d+-h/2)+" L "+(p+l/2)+" "+d+" L "+p+" "+(d+h/2)+" L "+c+" "+d+" z",e.merge(o,{d:a});break;case"Rectangle":a="M "+c+" "+(d+-h/2)+" L "+(p+l/2)+" "+(d+-h/2)+" L "+(p+l/2)+" "+(d+h/2)+" L "+c+" "+(d+h/2)+" L "+c+" "+(d+-h/2)+" z",e.merge(o,{d:a});break;case"Triangle":a="M "+c+" "+(d+h/2)+" L "+p+" "+(d+-h/2)+" L "+(p+l/2)+" "+(d+h/2)+" L "+c+" "+(d+h/2)+" z",e.merge(o,{d:a});break;case"InvertedTriangle":a="M "+(p+l/2)+" "+(d-h/2)+" L "+p+" "+(d+h/2)+" L "+(p-l/2)+" "+(d-h/2)+" L "+(p+l/2)+" "+(d-h/2)+" z",e.merge(o,{d:a});break;case"Pentagon":for(var y=void 0,f=void 0,g=0;g<=5;g++)y=l/2*Math.cos(Math.PI/180*(72*g)),f=h/2*Math.sin(Math.PI/180*(72*g)),a=0===g?"M "+(p+y)+" "+(d+f)+" ":a.concat("L "+(p+y)+" "+(d+f)+" ");a=a.concat("Z"),e.merge(o,{d:a});break;case"Image":s="Image",e.merge(o,{href:n,height:h,width:l,x:c,y:u})}return{renderOption:o,functionName:s}}function h(t,e,i,r){var o={},n=new p("");o={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};var a="string"==typeof t.text?t.text:t.text[0],s=n.createText(o,a);return s.style.fontFamily=e.fontFamily,s.style.fontStyle=e.fontStyle,s.style.fontSize=e.size,s.style.fontWeight=e.fontWeight,s.style.color=e.color,r.appendChild(s),s}var p=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,i,r){var o=this.createDefs(),n=document.createElementNS(this.svgLink,t);n=this.setElementAttributes(i,n);for(var a=0;a<r.length;a++){var s=document.createElementNS(this.svgLink,"stop");s.setAttribute("offset",r[a].colorStop),s.setAttribute("stop-color",r[a].color),s.setAttribute("stop-opacity",r[a].opacity?r[a].opacity:"1"),e.isNullOrUndefined(r[a].style)||s.setAttribute("style",r[a].style),n.appendChild(s)}return o.appendChild(n),o},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.prototype.createCanvas=function(){return null},t}(),d=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()},t.prototype.drawRectangle=function(t,e){var i=this.ctx,r=t.rx;return this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=this.getOptionValue(t,"opacity"),this.setAttributes(t),this.ctx.rect(t.x,t.y,t.width,t.height),null!==r&&r>=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=i,this.canvasObj},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()},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 a=0;a<i.length;a+=3){var s=parseFloat(i[a+1]),l=parseFloat(i[a+2]);switch(i[a]){case"M":t.innerR||t.cx||this.ctx.moveTo(s,l);break;case"L":t.innerR||this.ctx.lineTo(s,l);break;case"Q":var h=parseFloat(i[a+3]),p=parseFloat(i[a+4]);this.ctx.quadraticCurveTo(s,l,h,p),a+=2;break;case"C":var d=parseFloat(i[a+3]),c=parseFloat(i[a+4]),u=parseFloat(i[a+5]),y=parseFloat(i[a+6]);this.ctx.bezierCurveTo(s,l,d,c,u,y),a+=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)),a+=5;break;case"z":case"Z":this.ctx.closePath(),a-=2}}return"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.canvasObj},t.prototype.createText=function(t,i,r,o,n,a){var s=this.getOptionValue(t,"font-weight");e.isNullOrUndefined(s)||"regular"!==s.toLowerCase()||(s="normal");var l=this.getOptionValue(t,"font-size"),h=this.getOptionValue(t,"font-family"),p=this.getOptionValue(t,"font-style").toLowerCase()+" "+s+" "+l+" "+h,d=this.getOptionValue(t,"text-anchor"),c=void 0!==t.opacity?t.opacity:1;if("middle"===d&&(d="center"),this.ctx.save(),this.ctx.fillStyle=t.fill,this.ctx.font=p,this.ctx.textAlign=d,this.ctx.globalAlpha=c,t.baseline&&(this.ctx.textBaseline=t.baseline),!a){this.ctx.translate(t.x+0+(r||0),t.y+(o||0)),this.ctx.rotate(t.labelRotation*Math.PI/180)}return this.ctx.fillText(i,a?t.x:0,a?n:0),this.ctx.restore(),this.canvasObj},t.prototype.drawCircle=function(t,e){var i=this.ctx;return 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(),e&&this.ctx.translate(e[0],e[1]),this.setAttributes(t),this.ctx.stroke(),this.ctx.restore(),this.ctx=i,this.canvasObj},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()},t.prototype.drawEllipse=function(t,e){var i=this.ctx,r=Math.max(t.rx,t.ry),o=t.rx/r,n=t.ry/r;this.ctx.save(),this.ctx.beginPath(),this.ctx.translate(t.cx,t.cy),e&&this.ctx.translate(e[0],e[1]),this.ctx.save(),this.ctx.scale(o,n),this.ctx.arc(0,0,r,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=i},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()},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,a=t[o].colorStop.slice(0,-1),s=parseInt(a,10)/100;i.addColorStop(s,n)}r=i.toString()}return 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 null},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.prototype.clearRect=function(t){this.ctx.restore(),this.ctx.clearRect(t.x,t.y,t.width,t.height)},t.prototype.createGroup=function(){return null},t.prototype.drawClipPath=function(){return null},t.prototype.canvasClip=function(t){this.ctx.save(),this.ctx.fillStyle="transparent",this.ctx.rect(t.x,t.y,t.width,t.height),this.ctx.fill(),this.ctx.clip()},t.prototype.canvasRestore=function(){this.ctx.restore()},t.prototype.drawPolygon=function(){return null},t.prototype.createDefs=function(){return null},t.prototype.createClipPath=function(){return null},t.prototype.createSvg=function(){return null},t}(),c=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,a,s,l){void 0===a&&(a="");var h=t.call(this,e)||this;return h.transform="",h.baseLine="auto",h.labelRotation=0,h.x=i,h.y=r,h.anchor=o,h.text=n,h.transform=a,h.baseLine=s,h.labelRotation=l,h}return c(e,t),e}(g),x=function(t){function e(e,i,r,o,n,a,s){var l=t.call(this,e)||this;return l.opacity=n,l.fill=i,l.stroke=o,l["stroke-width"]=r,l["stroke-dasharray"]=a,l.d=s,l}return c(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,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a},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),P=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),L=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 l(e,i){return t.call(this,e,i)||this}return b(l,t),l.prototype.preRender=function(){this.allowServerDataBinding=!1,this.initPrivateVariable(),this.isCanvas||this.removeSVG(),this.createTooltipElement()},l.prototype.initPrivateVariable=function(){this.renderer=new p(this.element.id),this.themeStyle=i(this.theme),this.formattedText=[],this.padding=5,this.isFirst=!0,this.markerPoint=[]},l.prototype.removeSVG=function(){var t=document.getElementById(this.element.id+"_svg"),i=document.getElementById(this.element.id+"parent_template");this.blazorTemplate&&e.resetBlazorTemplate(this.element.id+"parent_template_blazorTemplate"),t&&t.parentNode&&e.remove(t),i&&i.parentNode&&e.remove(i)},l.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),this.allowServerDataBinding=!0},l.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=document.getElementById(this.element.id+"_group");e||(e=this.renderer.createGroup({id:this.element.id+"_group"})).setAttribute("transform","translate(0,0)"),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:"TailwindDark"!==this.theme&&"Tailwind"!==this.theme&&"Bootstrap5"!==this.theme&&"Bootstrap5Dark"!==this.theme||.75!==this.opacity?this.opacity:1,stroke:this.border.color});e.appendChild(i)}},l.prototype.drawMarker=function(t,e,i){if(this.shapes.length<=0)return null;for(var r,o=0,a=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),l=n(this.element.id+"_group"),h=2*this.marginX+i/2+(e?this.arrowPadding:0),p=0,d=this.shapes;p<d.length;p++){var c=d[p];"None"!==c&&(r=new x(this.element.id+"_Trackball_"+o,this.palette[o],1,"#cccccc",1,null),this.markerPoint[o]&&a.appendChild(s(new v(h,this.markerPoint[o]-this.padding+(t?this.arrowPadding:0)),c,new u(i,i),"",r,null)),o++)}l.appendChild(a)},l.prototype.renderTooltipElement=function(t,i){var a,s=n(this.element.id),l=new v(0,0),h=new v(0,0),p=n(this.element.id+"_svg"),d=n(this.element.id+"_group"),c=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?(a=this.sharedTooltipLocation(t,this.location.x,this.location.y),u=!0):(a=this.tooltipLocation(t,i,l,h),this.inverted?x=(g=a.x<i.x+this.clipBounds.x)?0:this.arrowPadding:(m=!(u=a.y<i.y+this.clipBounds.y),b=u?0:this.arrowPadding)),""!==this.header){var w=r(this.isWrap?this.wrappedText:this.header,this.textStyle).height+2*this.marginY+(m?this.arrowPadding:0)+(this.isWrap?5:0),S="M "+(3*this.marginX+(g||u||m?0:this.arrowPadding))+" "+w+"L "+(a.width+(g||u||m?0:this.arrowPadding)-2*this.marginX)+" "+w,P=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:.8,stroke:this.themeStyle.tooltipHeaderLine,d:S});d.appendChild(P)}var L=this.border.width/2,O=new y(L+x,L+b,a.width-L,a.height-L);if(d.setAttribute("opacity","1"),!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(s,a.x,a.y):this.animateTooltipDiv(s,a),p.setAttribute("height",(a.height+this.border.width+(this.inverted?0:this.arrowPadding)+5).toString()),p.setAttribute("width",(a.width+this.border.width+(this.inverted?this.arrowPadding:0)+5).toString()),p.setAttribute("opacity","1"),e.isNullOrUndefined(this.tooltipPlacement)||(u=this.tooltipPlacement.indexOf("Top")>-1,m=this.tooltipPlacement.indexOf("Bottom")>-1,g=this.tooltipPlacement.indexOf("Left")>-1),c.setAttribute("d",o(this.rx,this.ry,O,l,this.arrowPadding,u,m,g,h.x,h.y,this.tipRadius)),this.enableShadow&&"Bootstrap4"!==this.theme){var A=this.element.id+"_shadow";"Tailwind"===this.theme||"TailwindDark"===this.theme||"Bootstrap5"===this.theme||"Bootstrap5Dark"===this.theme?c.setAttribute("box-shadow","0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)"):c.setAttribute("filter",e.Browser.isIE?"":"url(#"+A+")");var T='<filter id="'+A+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';T+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',T+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var k=this.renderer.createDefs();k.setAttribute("id",this.element.id+"SVG_tooltip_definition"),d.appendChild(k),k.innerHTML=T}return c.setAttribute("stroke",this.border.color),this.changeText(new v(x,b),m,!g&&!u&&!m),new f(m,!g&&!u&&!m)},l.prototype.changeText=function(t,e,i){var r=document.getElementById(this.element.id+"_text");e&&r.setAttribute("transform","translate(0,"+this.arrowPadding+")"),i&&r.setAttribute("transform","translate("+this.arrowPadding+" 0)")},l.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)},l.prototype.renderText=function(t){var i,o,s,l,p,d=0,c=0,y=0,f=e.extend({},this.textStyle,null,!0).properties,g=n(this.element.id+"_group"),x="";this.findFormattedText();var v="rtl"===document.body.getAttribute("dir")?"end":"start";this.leftSpace=this.areaBounds.x+this.location.x,this.rightSpace=this.areaBounds.x+this.areaBounds.width-this.leftSpace;var b=this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim(),w=this.header.indexOf("<b>")>-1&&this.header.indexOf("</b>")>-1,S=r(this.formattedText[0],f).width+2*this.marginX+this.arrowPadding,P=this.location.x-S<this.location.x,L=this.areaBounds.x+this.areaBounds.width<this.location.x+S,O=""!==b?this.marginY:0,A=!0,T=!0;this.markerPoint=[];var k,C=this.shapes.length>0?10:0,E=this.shapes.length>0?5:0,B="Normal",F=this.themeStyle.tooltipLightLabel,N=22/parseFloat("13px")*parseFloat(f.size);t&&!this.isCanvas||(a(this.element.id+"_text"),a(this.element.id+"_header_path"),a(this.element.id+"_trackball_group"),a(this.element.id+"SVG_tooltip_definition"));for(var z=new m(this.element.id+"_text",2*this.marginX,2*this.marginY+2*this.padding+(2===this.marginY?3:0),v,""),_=h(z,f,null,g),I=1===this.formattedText.length&&this.formattedText[0].indexOf(" : <b>")>-1,R=""!==this.header,j=R&&w?16:13,M=0,D=this.formattedText.length;M<D;M++)if(s=this.formattedText[M].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g),0===M&&!I&&this.isTextWrap&&(this.leftSpace<S||P)&&(this.rightSpace<S||L)&&(k=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/j:this.rightSpace/j),s=(""!==b?b:this.formattedText[M]).match(new RegExp(".{1,"+k+"}","g")),this.wrappedText=w?"<b>"+s.join("<br>")+"</b>":s.join("<br>"),this.isWrap=s.length>1),""!==s[0]){0===M&&""!==b||this.markerPoint.push((""!==b?this.marginY:0)+z.y+d);for(var V=0,G=s.length;V<G;V++){y=0,T=!0,d+=N;for(var U=0,W=(i=s[V].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,"<br>‎:<br>").split("<br>")).length;U<W;U++)l=i[U],/\S/.test(l)||""===l||(l=" "),(!T&&" "===l||""!==l.replace(/<b>/g,"").replace(/<\/b>/g,"").trim())&&(y+=" "!==l?4:0,T&&!A?(p={x:2*this.marginX+(C+E),dy:N+(T?O:0),fill:""},O=null):p=A&&T?{x:""===b?2*this.marginX+(C+E):2*this.marginX+(this.isWrap?C+E:0)}:{},T=!1,o=this.renderer.createTSpan(p,""),_.appendChild(o),l.indexOf("<b>")>-1||w&&0===U&&0===M&&(R||this.isWrap)?(B="bold",F=this.themeStyle.tooltipBoldLabel,x="font-weight:"+B,f.fontWeight=B,o.setAttribute("fill",this.textStyle.color||F)):(x="bold"===B?"font-weight:"+B:"",f.fontWeight=B,o.setAttribute("fill",this.textStyle.color||F)),(l.indexOf("</b>")>-1||w&&U===W-1&&0===M&&(R||this.isWrap))&&(B="Normal",F=this.themeStyle.tooltipLightLabel),o.textContent=l=this.getTooltipTextContent(l),y+=r(l,f).width,""!==x&&(o.style.fontWeight=x.split("font-weight:")[1],o.style.color=o.getAttribute("fill")),o.style.fontFamily="inherit",o.style.fontStyle="inherit",o.style.fontSize="inherit",A=!1);y-=4,c=Math.max(c,y)}}this.elementSize=new u(c+(c>0?2*this.marginX:0),d),this.elementSize.width+=C+E;var Q=_.childNodes[0];if(""!==b&&Q&&!this.isWrap){f.fontWeight="bold";var H=(this.elementSize.width+2*this.padding)/2-r(b,f).width/2;Q.setAttribute("x",H.toString())}},l.prototype.getTooltipTextContent=function(t){var i=t.match(/<[a-zA-Z\/](.|\n)*?>/g);if(e.isNullOrUndefined(i))return t;for(var r=/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t),o=0;o<i.length;o++)this.isValidHTMLElement(i[o].replace("<","").replace("/","").replace(">","").trim())&&(t=t.replace(i[o],r?"‎":""));return t},l.prototype.isValidHTMLElement=function(t){return"[object HTMLUnknownElement]"!=document.createElement(t).toString()},l.prototype.createTemplate=function(t,i){var r={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",r);var o=document.getElementById(this.element.id);this.isCanvas&&this.removeSVG();var a=o.firstElementChild;if(a&&e.remove(a),r.cancel)e.remove(n(this.element.id+"_tooltip"));else{for(var s=e.createElement("div",{id:this.element.id+"parent_template"}),l=this.templateFn(this.data,this.controlInstance,s.id,s.id+"_blazorTemplate","");l&&l.length>0;)e.isBlazor()||1===l.length?(s.appendChild(l[0]),l=null):s.appendChild(l[0]);o.appendChild(s);var h=this.isCanvas?s:this.element,p=h.getBoundingClientRect();this.padding=0,this.elementSize=new u(p.width,p.height);var d=this.shared?this.sharedTooltipLocation(t,this.location.x,this.location.y):this.tooltipLocation(t,i,new v(0,0),new v(0,0));if(!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(h,d.x,d.y):this.animateTooltipDiv(this.element,d),this.blazorTemplate){var c=function(){var e=n(y.element.id).getBoundingClientRect();y.elementSize=new u(e.width,e.height);var r=y.tooltipLocation(t,i,new v(0,0),new v(0,0));y.updateDiv(n(y.element.id),r.x,r.y)},y=this;c.bind(y,t,i),e.updateBlazorTemplate(this.element.id+"parent_template_blazorTemplate",this.blazorTemplate.name,this.blazorTemplate.parent,void 0,c)}}},l.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},l.prototype.getCurrentPosition=function(t,e,i,r){var o=this.tooltipPlacement,n=this.clipBounds.x,a=this.clipBounds.y,s=this.offset,l=this.elementSize.width+2*this.marginX,h=this.elementSize.height+2*this.marginY,p=new v(e.x,e.y);return"Top"===o||"Bottom"===o?(p=new v(p.x+n-this.elementSize.width/2-this.padding,p.y+a-this.elementSize.height-2*this.padding-this.arrowPadding-s),i.x=r.x=l/2,"Bottom"===o&&(p.y=e.y+a+s),t.x+t.width<p.x+l?(p.x=t.width>l?t.x+t.width-l+6:t.x,i.x=r.x=t.width>l?t.x+e.x-p.x:e.x):t.x>p.x&&(p.x=t.x,i.x=r.x=e.x)):(p=new v(p.x+n+s,p.y+a-this.elementSize.height/2-this.padding),i.y=r.y=h/2,"Left"===o&&(p.x=e.x+n-s-(l+this.arrowPadding)),t.y+t.height<p.y+h?(p.y=t.height>h?t.y+t.height-h+6:t.y,i.y=r.y=t.height>h?t.y+e.y-p.y:e.y):t.y>p.y&&(p.y=t.y,i.y=r.y=e.y)),new y(p.x,p.y,l,h)},l.prototype.tooltipLocation=function(t,i,r,o){if(!e.isNullOrUndefined(this.tooltipPlacement)){return this.getCurrentPosition(t,i,r,o)}var n=new v(i.x,i.y),a=this.elementSize.width+2*this.marginX,s=this.elementSize.height+2*this.marginY,l=this.offset,h=this.clipBounds.x,p=this.clipBounds.y,d=t.x,c=t.y;return this.inverted?(n=new v(n.x+h+l,n.y+p-this.elementSize.height/2-this.padding),r.y=o.y=s/2,(n.x+a+this.arrowPadding>d+t.width||this.isNegative)&&(n.x=(i.x>t.width?t.width:i.x)+h-l-(a+this.arrowPadding)),n.x<d&&(n.x=(i.x<0?0:i.x)+h+l),n.y<=c&&(r.y-=c-n.y,o.y-=c-n.y,n.y=c),n.y+s>=c+t.height&&(r.y+=n.y+s-(c+t.height),o.y+=n.y+s-(c+t.height),n.y-=n.y+s-(c+t.height)),r.y+this.arrowPadding/2>s-this.ry&&(r.y=s-this.ry-this.arrowPadding/2,o.y=s,this.tipRadius=0),r.y-this.arrowPadding/2<this.ry&&(r.y=this.ry+this.arrowPadding/2,o.y=0,this.tipRadius=0)):(n=new v(n.x+h-this.elementSize.width/2-this.padding,n.y+p-this.elementSize.height-2*this.padding-this.arrowPadding-l),r.x=o.x=a/2,(n.y<c||this.isNegative)&&(n.y=(i.y<0?0:i.y)+p+l),n.y+s+this.arrowPadding>c+t.height&&(n.y=Math.min(i.y,c+t.height)+p-this.elementSize.height-2*this.padding-this.arrowPadding-l),o.x=a/2,n.x<d&&(r.x-=d-n.x,o.x-=d-n.x,n.x=d),n.x+a>d+t.width&&(r.x+=n.x+a-(d+t.width),o.x+=n.x+a-(d+t.width),n.x-=n.x+a-(d+t.width)),r.x+this.arrowPadding/2>a-this.rx&&(r.x=a-this.rx-this.arrowPadding/2,o.x=a,this.tipRadius=0),r.x-this.arrowPadding/2<this.rx&&(r.x=this.rx+this.arrowPadding/2,o.x=0,this.tipRadius=0)),new y(n.x,n.y,a,s)},l.prototype.animateTooltipDiv=function(t,i){var r,o=this,n=parseFloat(t.style.left),a=parseFloat(t.style.top);new e.Animation({}).animate(t,{duration:this.duration,progress:function(e){r=e.timeStamp/e.duration,t.style.animation=null,t.style.left=n+r*(i.x-n)+"px",t.style.top=a+r*(i.y-a)+"px"},end:function(e){o.updateDiv(t,i.x,i.y),o.trigger("animationComplete",{tooltip:o})}})},l.prototype.updateDiv=function(t,e,i){t.style.left=e+"px",t.style.top=i+"px"},l.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)}},l.prototype.fadeOut=function(){var t=this,i=this.isCanvas&&!this.template?n(this.element.id+"_svg"):n(this.element.id);if(i){var r=i.firstChild;if(this.isCanvas&&!this.template&&(r=document.getElementById(this.element.id+"_group")?document.getElementById(this.element.id+"_group"):r),!r)return null;var o=parseFloat(r.getAttribute("opacity"));o=e.isNullOrUndefined(o)?1:o,new e.Animation({}).animate(r,{duration:200,progress:function(e){t.progressAnimation(r,o,e.timeStamp/e.duration)},end:function(){t.fadeOuted=!0,t.endAnimation(r)}})}},l.prototype.progressAnimation=function(t,e,i){t.style.animation="",t.setAttribute("opacity",(e-i).toString())},l.prototype.endAnimation=function(t){t.setAttribute("opacity","0"),this.template&&(t.style.display="none"),this.trigger("animationComplete",{tooltip:this})},l.prototype.getPersistData=function(){return this.addOnPersist([])},l.prototype.getModuleName=function(){return"tooltip"},l.prototype.destroy=function(){t.prototype.destroy.call(this),this.element.classList.remove("e-tooltip")},l.prototype.onPropertyChanged=function(t,i){this.blazorTemplate&&e.resetBlazorTemplate(this.element.id+"parent_template_blazorTemplate"),this.isFirst=!1,this.render()},w([e.Property(!1)],l.prototype,"enable",void 0),w([e.Property(!1)],l.prototype,"shared",void 0),w([e.Property(!0)],l.prototype,"enableShadow",void 0),w([e.Property(null)],l.prototype,"fill",void 0),w([e.Property("")],l.prototype,"header",void 0),w([e.Property(.75)],l.prototype,"opacity",void 0),w([e.Complex({size:"13px",fontWeight:"Normal",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"},S)],l.prototype,"textStyle",void 0),w([e.Property(null)],l.prototype,"template",void 0),w([e.Property(!0)],l.prototype,"enableAnimation",void 0),w([e.Property(300)],l.prototype,"duration",void 0),w([e.Property(!1)],l.prototype,"inverted",void 0),w([e.Property(!1)],l.prototype,"isNegative",void 0),w([e.Complex({color:"#cccccc",width:.5},P)],l.prototype,"border",void 0),w([e.Property([])],l.prototype,"content",void 0),w([e.Property(10)],l.prototype,"markerSize",void 0),w([e.Complex({x:0,y:0},O)],l.prototype,"clipBounds",void 0),w([e.Property([])],l.prototype,"palette",void 0),w([e.Property([])],l.prototype,"shapes",void 0),w([e.Complex({x:0,y:0},O)],l.prototype,"location",void 0),w([e.Property(0)],l.prototype,"offset",void 0),w([e.Property(2)],l.prototype,"rx",void 0),w([e.Property(2)],l.prototype,"ry",void 0),w([e.Property(5)],l.prototype,"marginX",void 0),w([e.Property(5)],l.prototype,"marginY",void 0),w([e.Property(12)],l.prototype,"arrowPadding",void 0),w([e.Property(null)],l.prototype,"data",void 0),w([e.Property("Material")],l.prototype,"theme",void 0),w([e.Complex({x:0,y:0,width:0,height:0},L)],l.prototype,"areaBounds",void 0),w([e.Property(null)],l.prototype,"availableSize",void 0),w([e.Property()],l.prototype,"blazorTemplate",void 0),w([e.Property(!1)],l.prototype,"isCanvas",void 0),w([e.Property(!1)],l.prototype,"isTextWrap",void 0),w([e.Property(null)],l.prototype,"tooltipPlacement",void 0),w([e.Property(null)],l.prototype,"controlInstance",void 0),w([e.Event()],l.prototype,"tooltipRender",void 0),w([e.Event()],l.prototype,"loaded",void 0),w([e.Event()],l.prototype,"animationComplete",void 0),l=w([e.NotifyPropertyChanges],l)}(e.Component);t.TextStyle=S,t.TooltipBorder=P,t.AreaBounds=L,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=a,t.drawSymbol=s,t.calculateShapes=l,t.PathOption=x,t.textElement=h,t.TooltipLocation=v,t.SvgRenderer=p,t.CanvasRenderer=d,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=ej2-svg-base.umd.min.js.map
/*!
* filename: ej2-svg-base.min.js
* version : 19.2.60
* version : 19.3.43
* Copyright Syncfusion Inc. 2001 - 2020. 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":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;case"Tailwind":e={tooltipFill:"#111827",tooltipBoldLabel:"#D1D5DB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#6B7280"};break;case"TailwindDark":e={tooltipFill:"#F9FAFB",tooltipBoldLabel:"#6B7280",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#9CA3AF"};break;default:e={tooltipFill:"rgba(0, 8, 22, 0.75)",tooltipBoldLabel:"#ffffff",tooltipLightLabel:"#dbdbdb",tooltipHeaderLine:"#ffffff"}}return e}function r(t,i){var r=t||"",o=document.getElementById("chartmeasuretext");if(null===o&&(o=e.createElement("text",{id:"chartmeasuretext"}),document.body.appendChild(o)),"string"==typeof t&&(t.indexOf("<")>-1||t.indexOf(">")>-1)){for(var n=t.split(" "),s=0;s<n.length;s++)-1===n[s].indexOf("<br/>")&&(n[s]=n[s].replace(/[<>]/g,"&"));t=n.join(" ")}return o.innerHTML=r.indexOf("<br>")>-1||r.indexOf("<br/>")>-1?r:t,o.style.position="fixed",o.style.fontSize=i.size,o.style.fontWeight=i.fontWeight,o.style.fontStyle=i.fontStyle,o.style.fontFamily=i.fontFamily,o.style.visibility="hidden",o.style.top="-100",o.style.left="0",o.style.whiteSpace="nowrap",o.style.lineHeight="normal",new u(o.clientWidth,o.clientHeight)}function o(t,e,i,r,o,n,s,a,h,l,p){var d="",c=i.x,u=i.y,y=i.x+i.width,g=i.y+i.height;return p=p||0,n?(d=(d=d.concat("M "+c+" "+(u+e)+" Q "+c+" "+u+" "+(c+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&&(d=(d=d.concat(" L "+(r.x+o/2)+" "+g)).concat(" L "+(h+p)+" "+(g+o-p)),d+=" Q "+h+" "+(g+o)+" "+(h-p)+" "+(g+o-p)),d=r.x-o/2>c?d.concat(" L "+(r.x-o/2)+" "+g+" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):0===o?d.concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):d.concat(" L "+c+" "+(g+e)+" z")):s?(d=(d=d.concat("M "+c+" "+(u+e)+" Q "+c+" "+u+" "+(c+t)+" "+u+" L "+(r.x-o/2)+" "+u)).concat(" L "+(h-p)+" "+(r.y+p)),d=(d=(d+=" Q "+h+" "+r.y+" "+(h+p)+" "+(r.y+p)).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 "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z")):a?(d=(d=(d=d.concat("M "+c+" "+(u+e)+" Q "+c+" "+u+" "+(c+t)+" "+u)).concat(" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e)+" L "+y+" "+(r.y-o/2))).concat(" L "+(y+o-p)+" "+(l-p)),d=(d=(d+=" Q "+(y+o)+" "+l+" "+(y+o-p)+" "+(l+p)).concat(" L "+y+" "+(r.y+o/2)+" L "+y+" "+(g-e)+" Q "+y+" "+g+" "+(y-t)+" "+g)).concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z")):(d=(d=d.concat("M "+(c+t)+" "+u+" Q "+c+" "+u+" "+c+" "+(u+e)+" L "+c+" "+(r.y-o/2))).concat(" L "+(c-o+p)+" "+(l-p)),d=(d=(d+=" Q "+(c-o)+" "+l+" "+(c-o+p)+" "+(l+p)).concat(" L "+c+" "+(r.y+o/2)+" L "+c+" "+(g-e)+" Q "+c+" "+g+" "+(c+t)+" "+g)).concat(" L "+(y-t)+" "+g+" Q "+y+" "+g+" "+y+" "+(g-e)+" L "+y+" "+(u+e)+" Q "+y+" "+u+" "+(y-t)+" "+u+" z")),d}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 p(""),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,p=t.x,d=t.y,c=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:p,cy:d});break;case"Cross":s="M "+c+" "+d+" L "+(p+h/2)+" "+d+" M "+p+" "+(d+l/2)+" L "+p+" "+(d+-l/2),e.merge(o,{d:s});break;case"HorizontalLine":s="M "+c+" "+d+" L "+(p+h/2)+" "+d,e.merge(o,{d:s});break;case"VerticalLine":s="M "+p+" "+(d+l/2)+" L "+p+" "+(d+-l/2),e.merge(o,{d:s});break;case"Diamond":s="M "+c+" "+d+" L "+p+" "+(d+-l/2)+" L "+(p+h/2)+" "+d+" L "+p+" "+(d+l/2)+" L "+c+" "+d+" z",e.merge(o,{d:s});break;case"Rectangle":s="M "+c+" "+(d+-l/2)+" L "+(p+h/2)+" "+(d+-l/2)+" L "+(p+h/2)+" "+(d+l/2)+" L "+c+" "+(d+l/2)+" L "+c+" "+(d+-l/2)+" z",e.merge(o,{d:s});break;case"Triangle":s="M "+c+" "+(d+l/2)+" L "+p+" "+(d+-l/2)+" L "+(p+h/2)+" "+(d+l/2)+" L "+c+" "+(d+l/2)+" z",e.merge(o,{d:s});break;case"InvertedTriangle":s="M "+(p+h/2)+" "+(d-l/2)+" L "+p+" "+(d+l/2)+" L "+(p-h/2)+" "+(d-l/2)+" L "+(p+h/2)+" "+(d-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 "+(p+y)+" "+(d+g)+" ":s.concat("L "+(p+y)+" "+(d+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:c,y:u})}return{renderOption:o,functionName:a}}function l(t,e,i,r){var o={},n=new p("");o={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};var s="string"==typeof t.text?t.text:t.text[0],a=n.createText(o,s);return a.style.fontFamily=e.fontFamily,a.style.fontStyle=e.fontStyle,a.style.fontSize=e.size,a.style.fontWeight=e.fontWeight,a.style.color=e.color,r.appendChild(a),a}var p=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,i,r){var o=this.createDefs(),n=document.createElementNS(this.svgLink,t);n=this.setElementAttributes(i,n);for(var s=0;s<r.length;s++){var a=document.createElementNS(this.svgLink,"stop");a.setAttribute("offset",r[s].colorStop),a.setAttribute("stop-color",r[s].color),a.setAttribute("stop-opacity",r[s].opacity?r[s].opacity:"1"),e.isNullOrUndefined(r[s].style)||a.setAttribute("style",r[s].style),n.appendChild(a)}return o.appendChild(n),o},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.prototype.createCanvas=function(){return null},t}(),d=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()},t.prototype.drawRectangle=function(t,e){var i=this.ctx,r=t.rx;return this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=this.getOptionValue(t,"opacity"),this.setAttributes(t),this.ctx.rect(t.x,t.y,t.width,t.height),null!==r&&r>=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=i,this.canvasObj},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()},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"Q":var l=parseFloat(i[s+3]),p=parseFloat(i[s+4]);this.ctx.quadraticCurveTo(a,h,l,p),s+=2;break;case"C":var d=parseFloat(i[s+3]),c=parseFloat(i[s+4]),u=parseFloat(i[s+5]),y=parseFloat(i[s+6]);this.ctx.bezierCurveTo(a,h,d,c,u,y),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":case"Z":this.ctx.closePath(),s-=2}}return"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.canvasObj},t.prototype.createText=function(t,i,r,o,n,s){var a=this.getOptionValue(t,"font-weight");e.isNullOrUndefined(a)||"regular"!==a.toLowerCase()||(a="normal");var h=this.getOptionValue(t,"font-size"),l=this.getOptionValue(t,"font-family"),p=this.getOptionValue(t,"font-style").toLowerCase()+" "+a+" "+h+" "+l,d=this.getOptionValue(t,"text-anchor"),c=void 0!==t.opacity?t.opacity:1;if("middle"===d&&(d="center"),this.ctx.save(),this.ctx.fillStyle=t.fill,this.ctx.font=p,this.ctx.textAlign=d,this.ctx.globalAlpha=c,t.baseline&&(this.ctx.textBaseline=t.baseline),!s){this.ctx.translate(t.x+0+(r||0),t.y+(o||0)),this.ctx.rotate(t.labelRotation*Math.PI/180)}return this.ctx.fillText(i,s?t.x:0,s?n:0),this.ctx.restore(),this.canvasObj},t.prototype.drawCircle=function(t,e){var i=this.ctx;return 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(),e&&this.ctx.translate(e[0],e[1]),this.setAttributes(t),this.ctx.stroke(),this.ctx.restore(),this.ctx=i,this.canvasObj},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()},t.prototype.drawEllipse=function(t,e){var i=this.ctx,r=Math.max(t.rx,t.ry),o=t.rx/r,n=t.ry/r;this.ctx.save(),this.ctx.beginPath(),this.ctx.translate(t.cx,t.cy),e&&this.ctx.translate(e[0],e[1]),this.ctx.save(),this.ctx.scale(o,n),this.ctx.arc(0,0,r,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=i},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()},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 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 null},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.prototype.clearRect=function(t){this.ctx.restore(),this.ctx.clearRect(t.x,t.y,t.width,t.height)},t.prototype.createGroup=function(){return null},t.prototype.drawClipPath=function(){return null},t.prototype.canvasClip=function(t){this.ctx.save(),this.ctx.fillStyle="transparent",this.ctx.rect(t.x,t.y,t.width,t.height),this.ctx.fill(),this.ctx.clip()},t.prototype.canvasRestore=function(){this.ctx.restore()},t.prototype.drawPolygon=function(){return null},t.prototype.createDefs=function(){return null},t.prototype.createClipPath=function(){return null},t.prototype.createSvg=function(){return null},t}(),c=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,h){void 0===s&&(s="");var l=t.call(this,e)||this;return l.transform="",l.baseLine="auto",l.labelRotation=0,l.x=i,l.y=r,l.anchor=o,l.text=n,l.transform=s,l.baseLine=a,l.labelRotation=h,l}return c(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 c(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),P=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),L=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),T=function(t){function h(e,i){return t.call(this,e,i)||this}return b(h,t),h.prototype.preRender=function(){this.allowServerDataBinding=!1,this.initPrivateVariable(),this.isCanvas||this.removeSVG(),this.createTooltipElement()},h.prototype.initPrivateVariable=function(){this.renderer=new p(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");this.blazorTemplate&&e.resetBlazorTemplate(this.element.id+"parent_template_blazorTemplate"),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),this.allowServerDataBinding=!0},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=document.getElementById(this.element.id+"_group");e||(e=this.renderer.createGroup({id:this.element.id+"_group"})).setAttribute("transform","translate(0,0)"),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:"TailwindDark"!==this.theme&&"Tailwind"!==this.theme||.75!==this.opacity?this.opacity:1,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),p=0,d=this.shapes;p<d.length;p++){var c=d[p];"None"!==c&&(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)),c,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),p=n(this.element.id+"_svg"),d=n(this.element.id+"_group"),c=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.isWrap?this.wrappedText:this.header,this.textStyle).height+2*this.marginY+(m?this.arrowPadding:0)+(this.isWrap?5: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,P=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:.8,stroke:this.themeStyle.tooltipHeaderLine,d:S});d.appendChild(P)}var L=this.border.width/2,O=new y(L+x,L+b,s.width-L,s.height-L);if(d.setAttribute("opacity","1"),!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(a,s.x,s.y):this.animateTooltipDiv(a,s),p.setAttribute("height",(s.height+this.border.width+(this.inverted?0:this.arrowPadding)+5).toString()),p.setAttribute("width",(s.width+this.border.width+(this.inverted?this.arrowPadding:0)+5).toString()),p.setAttribute("opacity","1"),e.isNullOrUndefined(this.tooltipPlacement)||(u=this.tooltipPlacement.indexOf("Top")>-1,m=this.tooltipPlacement.indexOf("Bottom")>-1,f=this.tooltipPlacement.indexOf("Left")>-1),c.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 T=this.element.id+"_shadow";"Tailwind"===this.theme||"TailwindDark"===this.theme?c.setAttribute("box-shadow","0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)"):c.setAttribute("filter",e.Browser.isIE?"":"url(#"+T+")");var A='<filter id="'+T+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';A+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',A+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var C=this.renderer.createDefs();C.setAttribute("id",this.element.id+"SVG_tooltip_definition"),d.appendChild(C),C.innerHTML=A}return c.setAttribute("stroke",this.border.color),this.changeText(new v(x,b),m,!f&&!u&&!m),new g(m,!f&&!u&&!m)},h.prototype.changeText=function(t,e,i){var r=document.getElementById(this.element.id+"_text");e&&r.setAttribute("transform","translate(0,"+this.arrowPadding+")"),i&&r.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,p,d=0,c=0,y=0,g=e.extend({},this.textStyle,null,!0).properties,f=n(this.element.id+"_group"),x="";this.findFormattedText();var v="rtl"===document.body.getAttribute("dir")?"end":"start";this.leftSpace=this.areaBounds.x+this.location.x,this.rightSpace=this.areaBounds.x+this.areaBounds.width-this.leftSpace;var b=this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim(),w=this.header.indexOf("<b>")>-1&&this.header.indexOf("</b>")>-1,S=r(this.formattedText[0],g).width+2*this.marginX+this.arrowPadding,P=this.location.x-S<this.location.x,L=this.areaBounds.x+this.areaBounds.width<this.location.x+S,O=""!==b?this.marginY:0,T=!0,A=!0;this.markerPoint=[];var C,k=this.shapes.length>0?10:0,E=this.shapes.length>0?5:0,B="Normal",N=this.themeStyle.tooltipLightLabel,z=22/parseFloat("13px")*parseFloat(g.size);t&&!this.isCanvas||(s(this.element.id+"_text"),s(this.element.id+"_header_path"),s(this.element.id+"_trackball_group"),s(this.element.id+"SVG_tooltip_definition"));for(var F=new m(this.element.id+"_text",2*this.marginX,2*this.marginY+2*this.padding+(2===this.marginY?3:0),v,""),_=l(F,g,null,f),I=1===this.formattedText.length&&this.formattedText[0].indexOf(" : <b>")>-1,R=""!==this.header,j=R&&w?16:13,M=0,D=this.formattedText.length;M<D;M++)if(a=this.formattedText[M].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g),0===M&&!I&&this.isTextWrap&&(this.leftSpace<S||P)&&(this.rightSpace<S||L)&&(C=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/j:this.rightSpace/j),a=(""!==b?b:this.formattedText[M]).match(new RegExp(".{1,"+C+"}","g")),this.wrappedText=w?"<b>"+a.join("<br>")+"</b>":a.join("<br>"),this.isWrap=a.length>1),""!==a[0]){0===M&&""!==b||this.markerPoint.push((""!==b?this.marginY:0)+F.y+d);for(var V=0,G=a.length;V<G;V++){y=0,A=!0,d+=z;for(var U=0,W=(i=a[V].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,"<br>‎:<br>").split("<br>")).length;U<W;U++)h=i[U],/\S/.test(h)||""===h||(h=" "),(!A&&" "===h||""!==h.replace(/<b>/g,"").replace(/<\/b>/g,"").trim())&&(y+=" "!==h?4:0,A&&!T?(p={x:2*this.marginX+(k+E),dy:z+(A?O:0),fill:""},O=null):p=T&&A?{x:""===b?2*this.marginX+(k+E):2*this.marginX+(this.isWrap?k+E:0)}:{},A=!1,o=this.renderer.createTSpan(p,""),_.appendChild(o),h.indexOf("<b>")>-1||w&&0===U&&0===M&&(R||this.isWrap)?(B="bold",N=this.themeStyle.tooltipBoldLabel,x="font-weight:"+B,g.fontWeight=B,o.setAttribute("fill",this.textStyle.color||N)):(x="bold"===B?"font-weight:"+B:"",g.fontWeight=B,o.setAttribute("fill",this.textStyle.color||N)),(h.indexOf("</b>")>-1||w&&U===W-1&&0===M&&(R||this.isWrap))&&(B="Normal",N=this.themeStyle.tooltipLightLabel),o.textContent=h=this.getTooltipTextContent(h),y+=r(h,g).width,""!==x&&(o.style.fontWeight=x.split("font-weight:")[1],o.style.color=o.getAttribute("fill")),o.style.fontFamily="inherit",o.style.fontStyle="inherit",o.style.fontSize="inherit",T=!1);y-=4,c=Math.max(c,y)}}this.elementSize=new u(c+(c>0?2*this.marginX:0),d),this.elementSize.width+=k+E;var Q=_.childNodes[0];if(""!==b&&Q&&!this.isWrap){g.fontWeight="bold";var H=(this.elementSize.width+2*this.padding)/2-r(b,g).width/2;Q.setAttribute("x",H.toString())}},h.prototype.getTooltipTextContent=function(t){var i=t.match(/<[a-zA-Z\/](.|\n)*?>/g);if(e.isNullOrUndefined(i))return t;for(var r=/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t),o=0;o<i.length;o++)this.isValidHTMLElement(i[o].replace("<","").replace("/","").replace(">","").trim())&&(t=t.replace(i[o],r?"‎":""));return t},h.prototype.isValidHTMLElement=function(t){return"[object HTMLUnknownElement]"!=document.createElement(t).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);this.isCanvas&&this.removeSVG();var s=o.firstElementChild;if(s&&e.remove(s),r.cancel)e.remove(n(this.element.id+"_tooltip"));else{for(var a=e.createElement("div",{id:this.element.id+"parent_template"}),h=this.templateFn(this.data,this.controlInstance,a.id,a.id+"_blazorTemplate","");h&&h.length>0;)e.isBlazor()||1===h.length?(a.appendChild(h[0]),h=null):a.appendChild(h[0]);o.appendChild(a);var l=this.isCanvas?a:this.element,p=l.getBoundingClientRect();this.padding=0,this.elementSize=new u(p.width,p.height);var d=this.shared?this.sharedTooltipLocation(t,this.location.x,this.location.y):this.tooltipLocation(t,i,new v(0,0),new v(0,0));if(!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(l,d.x,d.y):this.animateTooltipDiv(this.element,d),this.blazorTemplate){var c=function(){var e=n(y.element.id).getBoundingClientRect();y.elementSize=new u(e.width,e.height);var r=y.tooltipLocation(t,i,new v(0,0),new v(0,0));y.updateDiv(n(y.element.id),r.x,r.y)},y=this;c.bind(y,t,i),e.updateBlazorTemplate(this.element.id+"parent_template_blazorTemplate",this.blazorTemplate.name,this.blazorTemplate.parent,void 0,c)}}},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.getCurrentPosition=function(t,e,i,r){var o=this.tooltipPlacement,n=this.clipBounds.x,s=this.clipBounds.y,a=this.offset,h=this.elementSize.width+2*this.marginX,l=this.elementSize.height+2*this.marginY,p=new v(e.x,e.y);return"Top"===o||"Bottom"===o?(p=new v(p.x+n-this.elementSize.width/2-this.padding,p.y+s-this.elementSize.height-2*this.padding-this.arrowPadding-a),i.x=r.x=h/2,"Bottom"===o&&(p.y=e.y+s+a),t.x+t.width<p.x+h?(p.x=t.width>h?t.x+t.width-h+6:t.x,i.x=r.x=t.width>h?t.x+e.x-p.x:e.x):t.x>p.x&&(p.x=t.x,i.x=r.x=e.x)):(p=new v(p.x+n+a,p.y+s-this.elementSize.height/2-this.padding),i.y=r.y=l/2,"Left"===o&&(p.x=e.x+n-a-(h+this.arrowPadding)),t.y+t.height<p.y+l?(p.y=t.height>l?t.y+t.height-l+6:t.y,i.y=r.y=t.height>l?t.y+e.y-p.y:e.y):t.y>p.y&&(p.y=t.y,i.y=r.y=e.y)),new y(p.x,p.y,h,l)},h.prototype.tooltipLocation=function(t,i,r,o){if(!e.isNullOrUndefined(this.tooltipPlacement))return this.getCurrentPosition(t,i,r,o);var n=new v(i.x,i.y),s=this.elementSize.width+2*this.marginX,a=this.elementSize.height+2*this.marginY,h=this.offset,l=this.clipBounds.x,p=this.clipBounds.y,d=t.x,c=t.y;return this.inverted?(n=new v(n.x+l+h,n.y+p-this.elementSize.height/2-this.padding),r.y=o.y=a/2,(n.x+s+this.arrowPadding>d+t.width||this.isNegative)&&(n.x=(i.x>t.width?t.width:i.x)+l-h-(s+this.arrowPadding)),n.x<d&&(n.x=(i.x<0?0:i.x)+l+h),n.y<=c&&(r.y-=c-n.y,o.y-=c-n.y,n.y=c),n.y+a>=c+t.height&&(r.y+=n.y+a-(c+t.height),o.y+=n.y+a-(c+t.height),n.y-=n.y+a-(c+t.height)),r.y+this.arrowPadding/2>a-this.ry&&(r.y=a-this.ry-this.arrowPadding/2,o.y=a,this.tipRadius=0),r.y-this.arrowPadding/2<this.ry&&(r.y=this.ry+this.arrowPadding/2,o.y=0,this.tipRadius=0)):(n=new v(n.x+l-this.elementSize.width/2-this.padding,n.y+p-this.elementSize.height-2*this.padding-this.arrowPadding-h),r.x=o.x=s/2,(n.y<c||this.isNegative)&&(n.y=(i.y<0?0:i.y)+p+h),n.y+a+this.arrowPadding>c+t.height&&(n.y=Math.min(i.y,c+t.height)+p-this.elementSize.height-2*this.padding-this.arrowPadding-h),o.x=s/2,n.x<d&&(r.x-=d-n.x,o.x-=d-n.x,n.x=d),n.x+s>d+t.width&&(r.x+=n.x+s-(d+t.width),o.x+=n.x+s-(d+t.width),n.x-=n.x+s-(d+t.width)),r.x+this.arrowPadding/2>s-this.rx&&(r.x=s-this.rx-this.arrowPadding/2,o.x=s,this.tipRadius=0),r.x-this.arrowPadding/2<this.rx&&(r.x=this.rx+this.arrowPadding/2,o.x=0,this.tipRadius=0)),new y(n.x,n.y,s,a)},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:this.duration,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.isCanvas&&!this.template?this.element.id+"_svg":this.element.id);if(i){var r=i.firstChild;if(this.isCanvas&&!this.template&&(r=document.getElementById(this.element.id+"_group")?document.getElementById(this.element.id+"_group"):r),!r)return null;var 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(){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&&(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,i){this.blazorTemplate&&e.resetBlazorTemplate(this.element.id+"parent_template_blazorTemplate"),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(300)],h.prototype,"duration",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},P)],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},L)],h.prototype,"areaBounds",void 0),w([e.Property(null)],h.prototype,"availableSize",void 0),w([e.Property()],h.prototype,"blazorTemplate",void 0),w([e.Property(!1)],h.prototype,"isCanvas",void 0),w([e.Property(!1)],h.prototype,"isTextWrap",void 0),w([e.Property(null)],h.prototype,"tooltipPlacement",void 0),w([e.Property(null)],h.prototype,"controlInstance",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=P,t.AreaBounds=L,t.ToolLocation=O,t.Tooltip=T,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=p,t.CanvasRenderer=d,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":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;case"Tailwind":e={tooltipFill:"#111827",tooltipBoldLabel:"#D1D5DB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#6B7280"};break;case"TailwindDark":e={tooltipFill:"#F9FAFB",tooltipBoldLabel:"#6B7280",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#9CA3AF"};break;case"Bootstrap5":e={tooltipFill:"#212529",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#9CA3AF"};break;case"Bootstrap5Dark":e={tooltipFill:"#E9ECEF",tooltipBoldLabel:"#212529",tooltipLightLabel:"#212529",tooltipHeaderLine:"#ADB5BD"};break;default:e={tooltipFill:"rgba(0, 8, 22, 0.75)",tooltipBoldLabel:"#ffffff",tooltipLightLabel:"#dbdbdb",tooltipHeaderLine:"#ffffff"}}return e}function r(t,i){var r=t||"",o=document.getElementById("chartmeasuretext");if(null===o&&(o=e.createElement("text",{id:"chartmeasuretext"}),document.body.appendChild(o)),"string"==typeof t&&(t.indexOf("<")>-1||t.indexOf(">")>-1)){for(var n=t.split(" "),a=0;a<n.length;a++)-1===n[a].indexOf("<br/>")&&(n[a]=n[a].replace(/[<>]/g,"&"));t=n.join(" ")}return o.innerHTML=r.indexOf("<br>")>-1||r.indexOf("<br/>")>-1?r:t,o.style.position="fixed",o.style.fontSize=i.size,o.style.fontWeight=i.fontWeight,o.style.fontStyle=i.fontStyle,o.style.fontFamily=i.fontFamily,o.style.visibility="hidden",o.style.top="-100",o.style.left="0",o.style.whiteSpace="nowrap",o.style.lineHeight="normal",new u(o.clientWidth,o.clientHeight)}function o(t,e,i,r,o,n,a,s,l,h,p){var d="",c=i.x,u=i.y,y=i.x+i.width,g=i.y+i.height;return p=p||0,n?(d=(d=d.concat("M "+c+" "+(u+e)+" Q "+c+" "+u+" "+(c+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&&(d=(d=d.concat(" L "+(r.x+o/2)+" "+g)).concat(" L "+(l+p)+" "+(g+o-p)),d+=" Q "+l+" "+(g+o)+" "+(l-p)+" "+(g+o-p)),d=r.x-o/2>c?d.concat(" L "+(r.x-o/2)+" "+g+" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):0===o?d.concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):d.concat(" L "+c+" "+(g+e)+" z")):a?(d=(d=d.concat("M "+c+" "+(u+e)+" Q "+c+" "+u+" "+(c+t)+" "+u+" L "+(r.x-o/2)+" "+u)).concat(" L "+(l-p)+" "+(r.y+p)),d=(d=(d+=" Q "+l+" "+r.y+" "+(l+p)+" "+(r.y+p)).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 "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z")):s?(d=(d=(d=d.concat("M "+c+" "+(u+e)+" Q "+c+" "+u+" "+(c+t)+" "+u)).concat(" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e)+" L "+y+" "+(r.y-o/2))).concat(" L "+(y+o-p)+" "+(h-p)),d=(d=(d+=" Q "+(y+o)+" "+h+" "+(y+o-p)+" "+(h+p)).concat(" L "+y+" "+(r.y+o/2)+" L "+y+" "+(g-e)+" Q "+y+" "+g+" "+(y-t)+" "+g)).concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z")):(d=(d=d.concat("M "+(c+t)+" "+u+" Q "+c+" "+u+" "+c+" "+(u+e)+" L "+c+" "+(r.y-o/2))).concat(" L "+(c-o+p)+" "+(h-p)),d=(d=(d+=" Q "+(c-o)+" "+h+" "+(c-o+p)+" "+(h+p)).concat(" L "+c+" "+(r.y+o/2)+" L "+c+" "+(g-e)+" Q "+c+" "+g+" "+(c+t)+" "+g)).concat(" L "+(y-t)+" "+g+" Q "+y+" "+g+" "+y+" "+(g-e)+" L "+y+" "+(u+e)+" Q "+y+" "+u+" "+(y-t)+" "+u+" z")),d}function n(t){return document.getElementById(t)}function a(t){var i=n(t);i&&e.remove(i)}function s(t,e,i,r,o,n){var a=new p(""),s=l(t,i,e,o,r),h=a["draw"+s.functionName](s.renderOption);return h.setAttribute("aria-label",n),h}function l(t,i,r,o,n){var a,s="Path",l=i.width,h=i.height,p=t.x,d=t.y,c=t.x+-l/2,u=t.y+-h/2;switch(r){case"Circle":case"Bubble":s="Ellipse",e.merge(o,{rx:l/2,ry:h/2,cx:p,cy:d});break;case"Cross":a="M "+c+" "+d+" L "+(p+l/2)+" "+d+" M "+p+" "+(d+h/2)+" L "+p+" "+(d+-h/2),e.merge(o,{d:a});break;case"HorizontalLine":a="M "+c+" "+d+" L "+(p+l/2)+" "+d,e.merge(o,{d:a});break;case"VerticalLine":a="M "+p+" "+(d+h/2)+" L "+p+" "+(d+-h/2),e.merge(o,{d:a});break;case"Diamond":a="M "+c+" "+d+" L "+p+" "+(d+-h/2)+" L "+(p+l/2)+" "+d+" L "+p+" "+(d+h/2)+" L "+c+" "+d+" z",e.merge(o,{d:a});break;case"Rectangle":a="M "+c+" "+(d+-h/2)+" L "+(p+l/2)+" "+(d+-h/2)+" L "+(p+l/2)+" "+(d+h/2)+" L "+c+" "+(d+h/2)+" L "+c+" "+(d+-h/2)+" z",e.merge(o,{d:a});break;case"Triangle":a="M "+c+" "+(d+h/2)+" L "+p+" "+(d+-h/2)+" L "+(p+l/2)+" "+(d+h/2)+" L "+c+" "+(d+h/2)+" z",e.merge(o,{d:a});break;case"InvertedTriangle":a="M "+(p+l/2)+" "+(d-h/2)+" L "+p+" "+(d+h/2)+" L "+(p-l/2)+" "+(d-h/2)+" L "+(p+l/2)+" "+(d-h/2)+" z",e.merge(o,{d:a});break;case"Pentagon":for(var y=void 0,g=void 0,f=0;f<=5;f++)y=l/2*Math.cos(Math.PI/180*(72*f)),g=h/2*Math.sin(Math.PI/180*(72*f)),a=0===f?"M "+(p+y)+" "+(d+g)+" ":a.concat("L "+(p+y)+" "+(d+g)+" ");a=a.concat("Z"),e.merge(o,{d:a});break;case"Image":s="Image",e.merge(o,{href:n,height:h,width:l,x:c,y:u})}return{renderOption:o,functionName:s}}function h(t,e,i,r){var o={},n=new p("");o={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};var a="string"==typeof t.text?t.text:t.text[0],s=n.createText(o,a);return s.style.fontFamily=e.fontFamily,s.style.fontStyle=e.fontStyle,s.style.fontSize=e.size,s.style.fontWeight=e.fontWeight,s.style.color=e.color,r.appendChild(s),s}var p=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,i,r){var o=this.createDefs(),n=document.createElementNS(this.svgLink,t);n=this.setElementAttributes(i,n);for(var a=0;a<r.length;a++){var s=document.createElementNS(this.svgLink,"stop");s.setAttribute("offset",r[a].colorStop),s.setAttribute("stop-color",r[a].color),s.setAttribute("stop-opacity",r[a].opacity?r[a].opacity:"1"),e.isNullOrUndefined(r[a].style)||s.setAttribute("style",r[a].style),n.appendChild(s)}return o.appendChild(n),o},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.prototype.createCanvas=function(){return null},t}(),d=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()},t.prototype.drawRectangle=function(t,e){var i=this.ctx,r=t.rx;return this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=this.getOptionValue(t,"opacity"),this.setAttributes(t),this.ctx.rect(t.x,t.y,t.width,t.height),null!==r&&r>=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=i,this.canvasObj},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()},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 a=0;a<i.length;a+=3){var s=parseFloat(i[a+1]),l=parseFloat(i[a+2]);switch(i[a]){case"M":t.innerR||t.cx||this.ctx.moveTo(s,l);break;case"L":t.innerR||this.ctx.lineTo(s,l);break;case"Q":var h=parseFloat(i[a+3]),p=parseFloat(i[a+4]);this.ctx.quadraticCurveTo(s,l,h,p),a+=2;break;case"C":var d=parseFloat(i[a+3]),c=parseFloat(i[a+4]),u=parseFloat(i[a+5]),y=parseFloat(i[a+6]);this.ctx.bezierCurveTo(s,l,d,c,u,y),a+=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)),a+=5;break;case"z":case"Z":this.ctx.closePath(),a-=2}}return"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.canvasObj},t.prototype.createText=function(t,i,r,o,n,a){var s=this.getOptionValue(t,"font-weight");e.isNullOrUndefined(s)||"regular"!==s.toLowerCase()||(s="normal");var l=this.getOptionValue(t,"font-size"),h=this.getOptionValue(t,"font-family"),p=this.getOptionValue(t,"font-style").toLowerCase()+" "+s+" "+l+" "+h,d=this.getOptionValue(t,"text-anchor"),c=void 0!==t.opacity?t.opacity:1;if("middle"===d&&(d="center"),this.ctx.save(),this.ctx.fillStyle=t.fill,this.ctx.font=p,this.ctx.textAlign=d,this.ctx.globalAlpha=c,t.baseline&&(this.ctx.textBaseline=t.baseline),!a){this.ctx.translate(t.x+0+(r||0),t.y+(o||0)),this.ctx.rotate(t.labelRotation*Math.PI/180)}return this.ctx.fillText(i,a?t.x:0,a?n:0),this.ctx.restore(),this.canvasObj},t.prototype.drawCircle=function(t,e){var i=this.ctx;return 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(),e&&this.ctx.translate(e[0],e[1]),this.setAttributes(t),this.ctx.stroke(),this.ctx.restore(),this.ctx=i,this.canvasObj},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()},t.prototype.drawEllipse=function(t,e){var i=this.ctx,r=Math.max(t.rx,t.ry),o=t.rx/r,n=t.ry/r;this.ctx.save(),this.ctx.beginPath(),this.ctx.translate(t.cx,t.cy),e&&this.ctx.translate(e[0],e[1]),this.ctx.save(),this.ctx.scale(o,n),this.ctx.arc(0,0,r,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=i},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()},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,a=t[o].colorStop.slice(0,-1),s=parseInt(a,10)/100;i.addColorStop(s,n)}r=i.toString()}return 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 null},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.prototype.clearRect=function(t){this.ctx.restore(),this.ctx.clearRect(t.x,t.y,t.width,t.height)},t.prototype.createGroup=function(){return null},t.prototype.drawClipPath=function(){return null},t.prototype.canvasClip=function(t){this.ctx.save(),this.ctx.fillStyle="transparent",this.ctx.rect(t.x,t.y,t.width,t.height),this.ctx.fill(),this.ctx.clip()},t.prototype.canvasRestore=function(){this.ctx.restore()},t.prototype.drawPolygon=function(){return null},t.prototype.createDefs=function(){return null},t.prototype.createClipPath=function(){return null},t.prototype.createSvg=function(){return null},t}(),c=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,a,s,l){void 0===a&&(a="");var h=t.call(this,e)||this;return h.transform="",h.baseLine="auto",h.labelRotation=0,h.x=i,h.y=r,h.anchor=o,h.text=n,h.transform=a,h.baseLine=s,h.labelRotation=l,h}return c(e,t),e}(f),x=function(t){function e(e,i,r,o,n,a,s){var l=t.call(this,e)||this;return l.opacity=n,l.fill=i,l.stroke=o,l["stroke-width"]=r,l["stroke-dasharray"]=a,l.d=s,l}return c(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,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a},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),P=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),L=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),A=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),O=function(t){function l(e,i){return t.call(this,e,i)||this}return b(l,t),l.prototype.preRender=function(){this.allowServerDataBinding=!1,this.initPrivateVariable(),this.isCanvas||this.removeSVG(),this.createTooltipElement()},l.prototype.initPrivateVariable=function(){this.renderer=new p(this.element.id),this.themeStyle=i(this.theme),this.formattedText=[],this.padding=5,this.isFirst=!0,this.markerPoint=[]},l.prototype.removeSVG=function(){var t=document.getElementById(this.element.id+"_svg"),i=document.getElementById(this.element.id+"parent_template");this.blazorTemplate&&e.resetBlazorTemplate(this.element.id+"parent_template_blazorTemplate"),t&&t.parentNode&&e.remove(t),i&&i.parentNode&&e.remove(i)},l.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),this.allowServerDataBinding=!0},l.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=document.getElementById(this.element.id+"_group");e||(e=this.renderer.createGroup({id:this.element.id+"_group"})).setAttribute("transform","translate(0,0)"),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:"TailwindDark"!==this.theme&&"Tailwind"!==this.theme&&"Bootstrap5"!==this.theme&&"Bootstrap5Dark"!==this.theme||.75!==this.opacity?this.opacity:1,stroke:this.border.color});e.appendChild(i)}},l.prototype.drawMarker=function(t,e,i){if(this.shapes.length<=0)return null;for(var r,o=0,a=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),l=n(this.element.id+"_group"),h=2*this.marginX+i/2+(e?this.arrowPadding:0),p=0,d=this.shapes;p<d.length;p++){var c=d[p];"None"!==c&&(r=new x(this.element.id+"_Trackball_"+o,this.palette[o],1,"#cccccc",1,null),this.markerPoint[o]&&a.appendChild(s(new v(h,this.markerPoint[o]-this.padding+(t?this.arrowPadding:0)),c,new u(i,i),"",r,null)),o++)}l.appendChild(a)},l.prototype.renderTooltipElement=function(t,i){var a,s=n(this.element.id),l=new v(0,0),h=new v(0,0),p=n(this.element.id+"_svg"),d=n(this.element.id+"_group"),c=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?(a=this.sharedTooltipLocation(t,this.location.x,this.location.y),u=!0):(a=this.tooltipLocation(t,i,l,h),this.inverted?x=(f=a.x<i.x+this.clipBounds.x)?0:this.arrowPadding:(m=!(u=a.y<i.y+this.clipBounds.y),b=u?0:this.arrowPadding)),""!==this.header){var w=r(this.isWrap?this.wrappedText:this.header,this.textStyle).height+2*this.marginY+(m?this.arrowPadding:0)+(this.isWrap?5:0),S="M "+(3*this.marginX+(f||u||m?0:this.arrowPadding))+" "+w+"L "+(a.width+(f||u||m?0:this.arrowPadding)-2*this.marginX)+" "+w,P=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:.8,stroke:this.themeStyle.tooltipHeaderLine,d:S});d.appendChild(P)}var L=this.border.width/2,A=new y(L+x,L+b,a.width-L,a.height-L);if(d.setAttribute("opacity","1"),!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(s,a.x,a.y):this.animateTooltipDiv(s,a),p.setAttribute("height",(a.height+this.border.width+(this.inverted?0:this.arrowPadding)+5).toString()),p.setAttribute("width",(a.width+this.border.width+(this.inverted?this.arrowPadding:0)+5).toString()),p.setAttribute("opacity","1"),e.isNullOrUndefined(this.tooltipPlacement)||(u=this.tooltipPlacement.indexOf("Top")>-1,m=this.tooltipPlacement.indexOf("Bottom")>-1,f=this.tooltipPlacement.indexOf("Left")>-1),c.setAttribute("d",o(this.rx,this.ry,A,l,this.arrowPadding,u,m,f,h.x,h.y,this.tipRadius)),this.enableShadow&&"Bootstrap4"!==this.theme){var O=this.element.id+"_shadow";"Tailwind"===this.theme||"TailwindDark"===this.theme||"Bootstrap5"===this.theme||"Bootstrap5Dark"===this.theme?c.setAttribute("box-shadow","0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)"):c.setAttribute("filter",e.Browser.isIE?"":"url(#"+O+")");var T='<filter id="'+O+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';T+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',T+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var k=this.renderer.createDefs();k.setAttribute("id",this.element.id+"SVG_tooltip_definition"),d.appendChild(k),k.innerHTML=T}return c.setAttribute("stroke",this.border.color),this.changeText(new v(x,b),m,!f&&!u&&!m),new g(m,!f&&!u&&!m)},l.prototype.changeText=function(t,e,i){var r=document.getElementById(this.element.id+"_text");e&&r.setAttribute("transform","translate(0,"+this.arrowPadding+")"),i&&r.setAttribute("transform","translate("+this.arrowPadding+" 0)")},l.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)},l.prototype.renderText=function(t){var i,o,s,l,p,d=0,c=0,y=0,g=e.extend({},this.textStyle,null,!0).properties,f=n(this.element.id+"_group"),x="";this.findFormattedText();var v="rtl"===document.body.getAttribute("dir")?"end":"start";this.leftSpace=this.areaBounds.x+this.location.x,this.rightSpace=this.areaBounds.x+this.areaBounds.width-this.leftSpace;var b=this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim(),w=this.header.indexOf("<b>")>-1&&this.header.indexOf("</b>")>-1,S=r(this.formattedText[0],g).width+2*this.marginX+this.arrowPadding,P=this.location.x-S<this.location.x,L=this.areaBounds.x+this.areaBounds.width<this.location.x+S,A=""!==b?this.marginY:0,O=!0,T=!0;this.markerPoint=[];var k,C=this.shapes.length>0?10:0,E=this.shapes.length>0?5:0,B="Normal",F=this.themeStyle.tooltipLightLabel,N=22/parseFloat("13px")*parseFloat(g.size);t&&!this.isCanvas||(a(this.element.id+"_text"),a(this.element.id+"_header_path"),a(this.element.id+"_trackball_group"),a(this.element.id+"SVG_tooltip_definition"));for(var z=new m(this.element.id+"_text",2*this.marginX,2*this.marginY+2*this.padding+(2===this.marginY?3:0),v,""),_=h(z,g,null,f),I=1===this.formattedText.length&&this.formattedText[0].indexOf(" : <b>")>-1,R=""!==this.header,j=R&&w?16:13,M=0,D=this.formattedText.length;M<D;M++)if(s=this.formattedText[M].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g),0===M&&!I&&this.isTextWrap&&(this.leftSpace<S||P)&&(this.rightSpace<S||L)&&(k=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/j:this.rightSpace/j),s=(""!==b?b:this.formattedText[M]).match(new RegExp(".{1,"+k+"}","g")),this.wrappedText=w?"<b>"+s.join("<br>")+"</b>":s.join("<br>"),this.isWrap=s.length>1),""!==s[0]){0===M&&""!==b||this.markerPoint.push((""!==b?this.marginY:0)+z.y+d);for(var V=0,G=s.length;V<G;V++){y=0,T=!0,d+=N;for(var U=0,W=(i=s[V].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,"<br>‎:<br>").split("<br>")).length;U<W;U++)l=i[U],/\S/.test(l)||""===l||(l=" "),(!T&&" "===l||""!==l.replace(/<b>/g,"").replace(/<\/b>/g,"").trim())&&(y+=" "!==l?4:0,T&&!O?(p={x:2*this.marginX+(C+E),dy:N+(T?A:0),fill:""},A=null):p=O&&T?{x:""===b?2*this.marginX+(C+E):2*this.marginX+(this.isWrap?C+E:0)}:{},T=!1,o=this.renderer.createTSpan(p,""),_.appendChild(o),l.indexOf("<b>")>-1||w&&0===U&&0===M&&(R||this.isWrap)?(B="bold",F=this.themeStyle.tooltipBoldLabel,x="font-weight:"+B,g.fontWeight=B,o.setAttribute("fill",this.textStyle.color||F)):(x="bold"===B?"font-weight:"+B:"",g.fontWeight=B,o.setAttribute("fill",this.textStyle.color||F)),(l.indexOf("</b>")>-1||w&&U===W-1&&0===M&&(R||this.isWrap))&&(B="Normal",F=this.themeStyle.tooltipLightLabel),o.textContent=l=this.getTooltipTextContent(l),y+=r(l,g).width,""!==x&&(o.style.fontWeight=x.split("font-weight:")[1],o.style.color=o.getAttribute("fill")),o.style.fontFamily="inherit",o.style.fontStyle="inherit",o.style.fontSize="inherit",O=!1);y-=4,c=Math.max(c,y)}}this.elementSize=new u(c+(c>0?2*this.marginX:0),d),this.elementSize.width+=C+E;var Q=_.childNodes[0];if(""!==b&&Q&&!this.isWrap){g.fontWeight="bold";var H=(this.elementSize.width+2*this.padding)/2-r(b,g).width/2;Q.setAttribute("x",H.toString())}},l.prototype.getTooltipTextContent=function(t){var i=t.match(/<[a-zA-Z\/](.|\n)*?>/g);if(e.isNullOrUndefined(i))return t;for(var r=/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t),o=0;o<i.length;o++)this.isValidHTMLElement(i[o].replace("<","").replace("/","").replace(">","").trim())&&(t=t.replace(i[o],r?"‎":""));return t},l.prototype.isValidHTMLElement=function(t){return"[object HTMLUnknownElement]"!=document.createElement(t).toString()},l.prototype.createTemplate=function(t,i){var r={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",r);var o=document.getElementById(this.element.id);this.isCanvas&&this.removeSVG();var a=o.firstElementChild;if(a&&e.remove(a),r.cancel)e.remove(n(this.element.id+"_tooltip"));else{for(var s=e.createElement("div",{id:this.element.id+"parent_template"}),l=this.templateFn(this.data,this.controlInstance,s.id,s.id+"_blazorTemplate","");l&&l.length>0;)e.isBlazor()||1===l.length?(s.appendChild(l[0]),l=null):s.appendChild(l[0]);o.appendChild(s);var h=this.isCanvas?s:this.element,p=h.getBoundingClientRect();this.padding=0,this.elementSize=new u(p.width,p.height);var d=this.shared?this.sharedTooltipLocation(t,this.location.x,this.location.y):this.tooltipLocation(t,i,new v(0,0),new v(0,0));if(!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(h,d.x,d.y):this.animateTooltipDiv(this.element,d),this.blazorTemplate){var c=function(){var e=n(y.element.id).getBoundingClientRect();y.elementSize=new u(e.width,e.height);var r=y.tooltipLocation(t,i,new v(0,0),new v(0,0));y.updateDiv(n(y.element.id),r.x,r.y)},y=this;c.bind(y,t,i),e.updateBlazorTemplate(this.element.id+"parent_template_blazorTemplate",this.blazorTemplate.name,this.blazorTemplate.parent,void 0,c)}}},l.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},l.prototype.getCurrentPosition=function(t,e,i,r){var o=this.tooltipPlacement,n=this.clipBounds.x,a=this.clipBounds.y,s=this.offset,l=this.elementSize.width+2*this.marginX,h=this.elementSize.height+2*this.marginY,p=new v(e.x,e.y);return"Top"===o||"Bottom"===o?(p=new v(p.x+n-this.elementSize.width/2-this.padding,p.y+a-this.elementSize.height-2*this.padding-this.arrowPadding-s),i.x=r.x=l/2,"Bottom"===o&&(p.y=e.y+a+s),t.x+t.width<p.x+l?(p.x=t.width>l?t.x+t.width-l+6:t.x,i.x=r.x=t.width>l?t.x+e.x-p.x:e.x):t.x>p.x&&(p.x=t.x,i.x=r.x=e.x)):(p=new v(p.x+n+s,p.y+a-this.elementSize.height/2-this.padding),i.y=r.y=h/2,"Left"===o&&(p.x=e.x+n-s-(l+this.arrowPadding)),t.y+t.height<p.y+h?(p.y=t.height>h?t.y+t.height-h+6:t.y,i.y=r.y=t.height>h?t.y+e.y-p.y:e.y):t.y>p.y&&(p.y=t.y,i.y=r.y=e.y)),new y(p.x,p.y,l,h)},l.prototype.tooltipLocation=function(t,i,r,o){if(!e.isNullOrUndefined(this.tooltipPlacement))return this.getCurrentPosition(t,i,r,o);var n=new v(i.x,i.y),a=this.elementSize.width+2*this.marginX,s=this.elementSize.height+2*this.marginY,l=this.offset,h=this.clipBounds.x,p=this.clipBounds.y,d=t.x,c=t.y;return this.inverted?(n=new v(n.x+h+l,n.y+p-this.elementSize.height/2-this.padding),r.y=o.y=s/2,(n.x+a+this.arrowPadding>d+t.width||this.isNegative)&&(n.x=(i.x>t.width?t.width:i.x)+h-l-(a+this.arrowPadding)),n.x<d&&(n.x=(i.x<0?0:i.x)+h+l),n.y<=c&&(r.y-=c-n.y,o.y-=c-n.y,n.y=c),n.y+s>=c+t.height&&(r.y+=n.y+s-(c+t.height),o.y+=n.y+s-(c+t.height),n.y-=n.y+s-(c+t.height)),r.y+this.arrowPadding/2>s-this.ry&&(r.y=s-this.ry-this.arrowPadding/2,o.y=s,this.tipRadius=0),r.y-this.arrowPadding/2<this.ry&&(r.y=this.ry+this.arrowPadding/2,o.y=0,this.tipRadius=0)):(n=new v(n.x+h-this.elementSize.width/2-this.padding,n.y+p-this.elementSize.height-2*this.padding-this.arrowPadding-l),r.x=o.x=a/2,(n.y<c||this.isNegative)&&(n.y=(i.y<0?0:i.y)+p+l),n.y+s+this.arrowPadding>c+t.height&&(n.y=Math.min(i.y,c+t.height)+p-this.elementSize.height-2*this.padding-this.arrowPadding-l),o.x=a/2,n.x<d&&(r.x-=d-n.x,o.x-=d-n.x,n.x=d),n.x+a>d+t.width&&(r.x+=n.x+a-(d+t.width),o.x+=n.x+a-(d+t.width),n.x-=n.x+a-(d+t.width)),r.x+this.arrowPadding/2>a-this.rx&&(r.x=a-this.rx-this.arrowPadding/2,o.x=a,this.tipRadius=0),r.x-this.arrowPadding/2<this.rx&&(r.x=this.rx+this.arrowPadding/2,o.x=0,this.tipRadius=0)),new y(n.x,n.y,a,s)},l.prototype.animateTooltipDiv=function(t,i){var r,o=this,n=parseFloat(t.style.left),a=parseFloat(t.style.top);new e.Animation({}).animate(t,{duration:this.duration,progress:function(e){r=e.timeStamp/e.duration,t.style.animation=null,t.style.left=n+r*(i.x-n)+"px",t.style.top=a+r*(i.y-a)+"px"},end:function(e){o.updateDiv(t,i.x,i.y),o.trigger("animationComplete",{tooltip:o})}})},l.prototype.updateDiv=function(t,e,i){t.style.left=e+"px",t.style.top=i+"px"},l.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)}},l.prototype.fadeOut=function(){var t=this,i=n(this.isCanvas&&!this.template?this.element.id+"_svg":this.element.id);if(i){var r=i.firstChild;if(this.isCanvas&&!this.template&&(r=document.getElementById(this.element.id+"_group")?document.getElementById(this.element.id+"_group"):r),!r)return null;var o=parseFloat(r.getAttribute("opacity"));o=e.isNullOrUndefined(o)?1:o,new e.Animation({}).animate(r,{duration:200,progress:function(e){t.progressAnimation(r,o,e.timeStamp/e.duration)},end:function(){t.fadeOuted=!0,t.endAnimation(r)}})}},l.prototype.progressAnimation=function(t,e,i){t.style.animation="",t.setAttribute("opacity",(e-i).toString())},l.prototype.endAnimation=function(t){t.setAttribute("opacity","0"),this.template&&(t.style.display="none"),this.trigger("animationComplete",{tooltip:this})},l.prototype.getPersistData=function(){var t=[];return this.addOnPersist(t)},l.prototype.getModuleName=function(){return"tooltip"},l.prototype.destroy=function(){t.prototype.destroy.call(this),this.element.classList.remove("e-tooltip")},l.prototype.onPropertyChanged=function(t,i){this.blazorTemplate&&e.resetBlazorTemplate(this.element.id+"parent_template_blazorTemplate"),this.isFirst=!1,this.render()},w([e.Property(!1)],l.prototype,"enable",void 0),w([e.Property(!1)],l.prototype,"shared",void 0),w([e.Property(!0)],l.prototype,"enableShadow",void 0),w([e.Property(null)],l.prototype,"fill",void 0),w([e.Property("")],l.prototype,"header",void 0),w([e.Property(.75)],l.prototype,"opacity",void 0),w([e.Complex({size:"13px",fontWeight:"Normal",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"},S)],l.prototype,"textStyle",void 0),w([e.Property(null)],l.prototype,"template",void 0),w([e.Property(!0)],l.prototype,"enableAnimation",void 0),w([e.Property(300)],l.prototype,"duration",void 0),w([e.Property(!1)],l.prototype,"inverted",void 0),w([e.Property(!1)],l.prototype,"isNegative",void 0),w([e.Complex({color:"#cccccc",width:.5},P)],l.prototype,"border",void 0),w([e.Property([])],l.prototype,"content",void 0),w([e.Property(10)],l.prototype,"markerSize",void 0),w([e.Complex({x:0,y:0},A)],l.prototype,"clipBounds",void 0),w([e.Property([])],l.prototype,"palette",void 0),w([e.Property([])],l.prototype,"shapes",void 0),w([e.Complex({x:0,y:0},A)],l.prototype,"location",void 0),w([e.Property(0)],l.prototype,"offset",void 0),w([e.Property(2)],l.prototype,"rx",void 0),w([e.Property(2)],l.prototype,"ry",void 0),w([e.Property(5)],l.prototype,"marginX",void 0),w([e.Property(5)],l.prototype,"marginY",void 0),w([e.Property(12)],l.prototype,"arrowPadding",void 0),w([e.Property(null)],l.prototype,"data",void 0),w([e.Property("Material")],l.prototype,"theme",void 0),w([e.Complex({x:0,y:0,width:0,height:0},L)],l.prototype,"areaBounds",void 0),w([e.Property(null)],l.prototype,"availableSize",void 0),w([e.Property()],l.prototype,"blazorTemplate",void 0),w([e.Property(!1)],l.prototype,"isCanvas",void 0),w([e.Property(!1)],l.prototype,"isTextWrap",void 0),w([e.Property(null)],l.prototype,"tooltipPlacement",void 0),w([e.Property(null)],l.prototype,"controlInstance",void 0),w([e.Event()],l.prototype,"tooltipRender",void 0),w([e.Event()],l.prototype,"loaded",void 0),w([e.Event()],l.prototype,"animationComplete",void 0),l=w([e.NotifyPropertyChanges],l)}(e.Component);return t.TextStyle=S,t.TooltipBorder=P,t.AreaBounds=L,t.ToolLocation=A,t.Tooltip=O,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=a,t.drawSymbol=s,t.calculateShapes=l,t.PathOption=x,t.textElement=h,t.TooltipLocation=v,t.SvgRenderer=p,t.CanvasRenderer=d,t}({},ej.base),this.ejs=ej;
//# sourceMappingURL=ej2-svg-base.min.js.map
/*!
* filename: index.d.ts
* version : 19.2.60
* version : 19.3.43
* Copyright Syncfusion Inc. 2001 - 2020. 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@19.2.44",
"_id": "@syncfusion/ej2-svg-base@1.81.5",
"_inBundle": false,
"_integrity": "sha512-MFGdlAt849CSfc7dt295BigNmwMvSYSmh0eZnXtAnS8TQcmzxLjtEIk00BBo+L4ZVXfq++gxfG73VemS4hYy/g==",
"_integrity": "sha512-3EoN2XlNzDXc8VslYzGSYqlhCD0mZjjT1fF5teye1TXXu47dEC9TwNc5HnyYFS/sKtkdgWT1NcP6TfFldv9mcQ==",
"_location": "/@syncfusion/ej2-svg-base",

@@ -31,4 +31,4 @@ "_phantomChildren": {},

],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-svg-base/-/ej2-svg-base-19.2.44.tgz",
"_shasum": "24d984bad321d8c02917602bef1342d7f3c4059d",
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-svg-base/-/ej2-svg-base-1.81.5.tgz",
"_shasum": "a471b9b3afff36224c1ef20fcddb1272139b8352",
"_spec": "@syncfusion/ej2-svg-base@*",

@@ -44,3 +44,3 @@ "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",

"dependencies": {
"@syncfusion/ej2-base": "~19.2.60"
"@syncfusion/ej2-base": "~19.3.43"
},

@@ -66,4 +66,4 @@ "deprecated": false,

"typings": "index.d.ts",
"version": "19.2.60",
"version": "19.3.43",
"sideEffects": true
}

@@ -64,3 +64,7 @@ /**

/** Render a chart with TailwindDark theme. */
'TailwindDark';
'TailwindDark' |
/** Render a chart with Bootstrap5 theme. */
'Bootstrap5' |
/** Render a chart with Bootstrap5Dark theme. */
'Bootstrap5Dark';
/**

@@ -67,0 +71,0 @@ * Defines the tooltip position.

@@ -48,2 +48,18 @@ /** @private */

break;
case 'Bootstrap5':
style = {
tooltipFill: '#212529',
tooltipBoldLabel: '#F9FAFB',
tooltipLightLabel: '#F9FAFB',
tooltipHeaderLine: '#9CA3AF',
};
break;
case 'Bootstrap5Dark':
style = {
tooltipFill: '#E9ECEF',
tooltipBoldLabel: '#212529',
tooltipLightLabel: '#212529',
tooltipHeaderLine: '#ADB5BD',
};
break;
default:

@@ -50,0 +66,0 @@ style = {

@@ -221,3 +221,3 @@ var __extends = (this && this.__extends) || (function () {

'id': this.element.id + '_path', 'stroke-width': this.border.width,
'fill': this.fill || this.themeStyle.tooltipFill, 'opacity': ((this.theme === 'TailwindDark' || this.theme === 'Tailwind') && this.opacity === 0.75) ?
'fill': this.fill || this.themeStyle.tooltipFill, 'opacity': ((this.theme === 'TailwindDark' || this.theme === 'Tailwind' || this.theme === 'Bootstrap5' || this.theme === 'Bootstrap5Dark') && this.opacity === 0.75) ?
1 : this.opacity,

@@ -318,3 +318,4 @@ 'stroke': this.border.color

var shadowId = this.element.id + '_shadow';
if (this.theme === 'Tailwind' || this.theme === 'TailwindDark') {
if (this.theme === 'Tailwind' || this.theme === 'TailwindDark'
|| this.theme === 'Bootstrap5' || this.theme === 'Bootstrap5Dark') {
pathElement.setAttribute('box-shadow', '0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)');

@@ -747,3 +748,4 @@ }

}
var opacity_1 = parseFloat(tooltipGroup_1.getAttribute('opacity')) || 1;
var opacity_1 = parseFloat(tooltipGroup_1.getAttribute('opacity'));
opacity_1 = !isNullOrUndefined(opacity_1) ? opacity_1 : 1;
new Animation({}).animate(tooltipGroup_1, {

@@ -750,0 +752,0 @@ duration: 200,

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc