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 20.4.48 to 20.4.53

7

CHANGELOG.md

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

### Svg Base
#### Bug Fixes
- `#I439673` - Resolved an issue where tooltip text was getting cut off when the text was longer.
- `#I440991` - Fixed an issue where the Donut chart tooltip was being cropped when displayed outside of the area bounds.
## 20.4.42 (2023-01-04)

@@ -7,0 +14,0 @@

4

dist/ej2-svg-base.min.js
/*!
* filename: ej2-svg-base.min.js
* version : 20.4.48
* version : 20.4.53
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.

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

*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("SyncfusionBase")):"function"==typeof define&&define.amd?define(["SyncfusionBase"],e):"object"==typeof exports?exports.SyncfusionSvgBase=e(require("SyncfusionBase")):t.SyncfusionSvgBase=e(t.SyncfusionBase)}(this,function(t){return function(t){function e(r){if(i[r])return i[r].exports;var n=i[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,r){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=5)}([function(e,i){e.exports=t},function(t,e,i){"use strict";var r=i(7);i.d(e,"a",function(){return r.a});var n=i(6);i.d(e,"b",function(){return n.a})},function(t,e,i){"use strict";function r(t,e){var r=t||"",n=document.getElementById("chartmeasuretext");if(null===n&&(n=i.i(p.createElement)("text",{id:"chartmeasuretext"}),document.body.appendChild(n)),"string"==typeof t&&(t.indexOf("<")>-1||t.indexOf(">")>-1)){for(var o=t.split(" "),a=0;a<o.length;a++)-1===o[a].indexOf("<br/>")&&(o[a]=o[a].replace(/[<>]/g,"&"));t=o.join(" ")}return n.innerHTML=r.indexOf("<br>")>-1||r.indexOf("<br/>")>-1?r:t,n.style.position="fixed",n.style.fontSize=e.size,n.style.fontWeight=e.fontWeight,n.style.fontStyle=e.fontStyle,n.style.fontFamily=e.fontFamily,n.style.visibility="hidden",n.style.top="-100",n.style.left="0",n.style.whiteSpace="nowrap",n.style.lineHeight="normal",new y(n.clientWidth,n.clientHeight)}function n(t,e,i,r,n){return void 0===r&&(r=0),void 0===n&&(n=0),t>=i.x-r&&t<=i.x+i.width+r&&e>=i.y-n&&e<=i.y+i.height+n}function o(t,e,i,r,n,o,a,s,h,l,d){void 0===d&&(d="");var c="",p=i.x,u=i.y,y=i.x+i.width,f=i.y+i.height;return o?(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u+" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e)),c=c.concat(" L "+y+" "+(f-e)+" Q "+y+" "+f+" "+(y-t)+" "+f),0!==n&&("RangeNavigator"===d?r.x-n>y/2?(c=c.concat(" L "+(r.x+n)+" "+f),c=c.concat(" L "+(h+n)+" "+(f+n)+" L "+r.x+" "+f)):(c=c.concat(" L "+r.x+" "+f),c=c.concat(" L "+(h-n)+" "+(f+n)+" L "+(r.x-n)+" "+f)):(c=c.concat(" L "+(r.x+n)+" "+f),c=c.concat(" L "+h+" "+(f+n)+" L "+(r.x-n)+" "+f))),c=r.x-n>p?c.concat(" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z"):0===n?c.concat(" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z"):c.concat(" L "+p+" "+(f+e)+" z")):a?(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u+" L "+(r.x-n)+" "+u),c=c.concat(" L "+h+" "+r.y),c=c.concat(" L "+(r.x+n)+" "+u),c=c.concat(" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e)),c=c.concat(" L "+y+" "+(f-e)+" Q "+y+" "+f+" "+(y-t)+" "+f+" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z")):s?(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u),c=c.concat(" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e)+" L "+y+" "+(r.y-n)),c="RangeNavigator"===d?c.concat(" L "+(y+n)+" "+(l-n)):c.concat(" L "+(y+n)+" "+l),c="RangeNavigator"===d?c.concat(" L "+y+" "+r.y):c.concat(" L "+y+" "+(r.y+n)),c=c.concat(" L "+y+" "+(f-e)+" Q "+y+" "+f+" "+(y-t)+" "+f),c=c.concat(" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z")):(c=c.concat("M "+(p+t)+" "+u+" Q "+p+" "+u+" "+p+" "+(u+e)+" L "+p+" "+(r.y-n)),c="RangeNavigator"===d?c.concat(" L "+(p-n)+" "+(l-n)):c.concat(" L "+(p-n)+" "+l),c="RangeNavigator"===d?c.concat(" L "+p+" "+r.y):c.concat(" L "+p+" "+(r.y+n)),c=c.concat(" L "+p+" "+(f-e)+" Q "+p+" "+f+" "+(p+t)+" "+f),c=c.concat(" L "+(y-t)+" "+f+" Q "+y+" "+f+" "+y+" "+(f-e)+" L "+y+" "+(u+e)+" Q "+y+" "+u+" "+(y-t)+" "+u+" z")),c}function a(t){return document.getElementById(t)}function s(t){var e=a(t);e&&i.i(p.remove)(e)}function h(t,e,i,r,n,o){var a=new c.a(""),s=l(t,i,e,n,r),h=a["draw"+s.functionName](s.renderOption);return h.setAttribute("aria-label",o),h}function l(t,e,r,n,o){var a,s="Path",h=e.width,l=e.height,d=t.x,c=t.y,u=t.x+-h/2,y=t.y+-l/2;switch(r){case"Circle":case"Bubble":s="Ellipse",i.i(p.merge)(n,{rx:h/2,ry:l/2,cx:d,cy:c});break;case"Cross":a="M "+u+" "+c+" L "+(d+h/2)+" "+c+" M "+d+" "+(c+l/2)+" L "+d+" "+(c+-l/2),i.i(p.merge)(n,{d:a});break;case"HorizontalLine":a="M "+u+" "+c+" L "+(d+h/2)+" "+c,i.i(p.merge)(n,{d:a});break;case"VerticalLine":a="M "+d+" "+(c+l/2)+" L "+d+" "+(c+-l/2),i.i(p.merge)(n,{d:a});break;case"Diamond":a="M "+u+" "+c+" L "+d+" "+(c+-l/2)+" L "+(d+h/2)+" "+c+" L "+d+" "+(c+l/2)+" L "+u+" "+c+" z",i.i(p.merge)(n,{d:a});break;case"Rectangle":a="M "+u+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+l/2)+" L "+u+" "+(c+l/2)+" L "+u+" "+(c+-l/2)+" z",i.i(p.merge)(n,{d:a});break;case"Triangle":a="M "+u+" "+(c+l/2)+" L "+d+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+l/2)+" L "+u+" "+(c+l/2)+" z",i.i(p.merge)(n,{d:a});break;case"InvertedTriangle":a="M "+(d+h/2)+" "+(c-l/2)+" L "+d+" "+(c+l/2)+" L "+(d-h/2)+" "+(c-l/2)+" L "+(d+h/2)+" "+(c-l/2)+" z",i.i(p.merge)(n,{d:a});break;case"Pentagon":for(var f=void 0,g=void 0,x=0;x<=5;x++)f=h/2*Math.cos(Math.PI/180*(72*x)),g=l/2*Math.sin(Math.PI/180*(72*x)),a=0===x?"M "+(d+f)+" "+(c+g)+" ":a.concat("L "+(d+f)+" "+(c+g)+" ");a=a.concat("Z"),i.i(p.merge)(n,{d:a});break;case"Image":s="Image",i.i(p.merge)(n,{href:o,height:l,width:h,x:u,y:y})}return{renderOption:n,functionName:s}}function d(t,e,i,r){var n={},o=new c.a("");n={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=o.createText(n,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}e.a=r,e.b=n,e.c=o,i.d(e,"d",function(){return y}),i.d(e,"e",function(){return f}),i.d(e,"f",function(){return g}),i.d(e,"g",function(){return x}),i.d(e,"h",function(){return m}),e.i=a,e.j=s,e.k=h,e.l=l,i.d(e,"m",function(){return v}),e.n=d,i.d(e,"o",function(){return b});var c=i(1),p=i(0),u=(i.n(p),this&&this.__extends||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)}}()),y=function(){function t(t,e){this.width=t,this.height=e}return t}(),f=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}(),x=function(){function t(t){this.id=t}return t}(),m=function(t){function e(e,i,r,n,o,a,s,h){void 0===a&&(a="");var l=t.call(this,e)||this;return l.transform="",l.baseLine="auto",l.labelRotation=0,l.x=i,l.y=r,l.anchor=n,l.text=o,l.transform=a,l.baseLine=s,l.labelRotation=h,l}return u(e,t),e}(x),v=function(t){function e(e,i,r,n,o,a,s){var h=t.call(this,e)||this;return h.opacity=o,h.fill=i,h.stroke=n,h["stroke-width"]=r,h["stroke-dasharray"]=a,h.d=s,h}return u(e,t),e}(x),b=function(){function t(t,e){this.x=t,this.y=e}return t}()},function(t,e,i){"use strict";function r(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:"#020202",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;case"Fluent":e={tooltipFill:"#FFFFFF",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE"};break;case"FluentDark":e={tooltipFill:"#252423",tooltipBoldLabel:"#F3F2F1",tooltipLightLabel:"#F3F2F1",tooltipHeaderLine:"#3B3A39"};break;default:e={tooltipFill:"#000816",tooltipBoldLabel:"#ffffff",tooltipLightLabel:"#dbdbdb",tooltipHeaderLine:"#ffffff"}}return e}e.a=r},function(t,e,i){"use strict";var r=i(8);i.d(e,"a",function(){return r.a}),i.d(e,"b",function(){return r.b}),i.d(e,"c",function(){return r.c}),i.d(e,"d",function(){return r.d}),i.d(e,"e",function(){return r.e});var n=i(3);i.d(e,"f",function(){return n.a});var o=i(2);i.d(e,"g",function(){return o.a}),i.d(e,"h",function(){return o.b}),i.d(e,"i",function(){return o.c}),i.d(e,"j",function(){return o.d}),i.d(e,"k",function(){return o.e}),i.d(e,"l",function(){return o.f}),i.d(e,"m",function(){return o.g}),i.d(e,"n",function(){return o.h}),i.d(e,"o",function(){return o.i}),i.d(e,"p",function(){return o.j}),i.d(e,"q",function(){return o.k}),i.d(e,"r",function(){return o.l}),i.d(e,"s",function(){return o.m}),i.d(e,"t",function(){return o.n}),i.d(e,"u",function(){return o.o})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(4);i.d(e,"TextStyle",function(){return r.a}),i.d(e,"TooltipBorder",function(){return r.b}),i.d(e,"AreaBounds",function(){return r.c}),i.d(e,"ToolLocation",function(){return r.d}),i.d(e,"Tooltip",function(){return r.e}),i.d(e,"getTooltipThemeColor",function(){return r.f}),i.d(e,"measureText",function(){return r.g}),i.d(e,"withInAreaBounds",function(){return r.h}),i.d(e,"findDirection",function(){return r.i}),i.d(e,"Size",function(){return r.j}),i.d(e,"Rect",function(){return r.k}),i.d(e,"Side",function(){return r.l}),i.d(e,"CustomizeOption",function(){return r.m}),i.d(e,"TextOption",function(){return r.n}),i.d(e,"getElement",function(){return r.o}),i.d(e,"removeElement",function(){return r.p}),i.d(e,"drawSymbol",function(){return r.q}),i.d(e,"calculateShapes",function(){return r.r}),i.d(e,"PathOption",function(){return r.s}),i.d(e,"textElement",function(){return r.t}),i.d(e,"TooltipLocation",function(){return r.u});var n=i(1);i.d(e,"SvgRenderer",function(){return n.a}),i.d(e,"CanvasRenderer",function(){return n.b})},function(t,e,i){"use strict";i.d(e,"a",function(){return n});var r=i(0),n=(i.n(r),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,e){var n=document.getElementById(this.rootId),o=i.i(r.isNullOrUndefined)(n)?null:n.getBoundingClientRect();i.i(r.isNullOrUndefined)(this.width)?this.canvasObj.setAttribute("width",t?t.toString():o.width.toString()):this.canvasObj.setAttribute("width",this.width.toString()),i.i(r.isNullOrUndefined)(this.height)?this.canvasObj.setAttribute("height",e?e.toString():"450"):this.canvasObj.setAttribute("height",this.height.toString())},t.prototype.setAttributes=function(t){this.ctx.lineWidth=this.getOptionValue(t,"stroke-width");var e=this.getOptionValue(t,"stroke-dasharray");if(!i.i(r.isNullOrUndefined)(e)){var n=e.split(",");this.ctx.setLineDash([parseInt(n[0],10),parseInt(n[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,n=t.width,o=t.height;"none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,n<2*e&&(e=n/2),o<2*e&&(e=o/2),this.ctx.beginPath(),this.ctx.moveTo(i+n-e,r),this.ctx.arcTo(i+n,r,i+n,r+o,e),this.ctx.arcTo(i+n,r+o,i,r+o,e),this.ctx.arcTo(i,r+o,i,r,e),this.ctx.arcTo(i,r,i+n,r,e),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke()},t.prototype.drawPath=function(t,e){var i=t.d,r=i.split(" "),n=this.getOptionValue(t,"stroke-width"),o=this.ctx,a=!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<r.length;s+=3){var h=parseFloat(r[s+1]),l=parseFloat(r[s+2]);switch(r[s]){case"M":t.innerR||t.cx||this.ctx.moveTo(h,l);break;case"L":t.innerR||this.ctx.lineTo(h,l);break;case"Q":var d=parseFloat(r[s+3]),c=parseFloat(r[s+4]);this.ctx.quadraticCurveTo(h,l,d,c),s+=2;break;case"C":var p=parseFloat(r[s+3]),u=parseFloat(r[s+4]),y=parseFloat(r[s+5]),f=parseFloat(r[s+6]);this.ctx.bezierCurveTo(h,l,p,u,y,f),s+=4;break;case"A":t.innerR?a&&(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),a=!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()),n>0&&this.ctx.stroke(),this.ctx.restore(),this.ctx=o,this.canvasObj},t.prototype.createText=function(t,e,n,o,a,s){var h=this.getOptionValue(t,"font-weight");i.i(r.isNullOrUndefined)(h)||"regular"!==h.toLowerCase()||(h="normal");var l=this.getOptionValue(t,"font-size"),d=this.getOptionValue(t,"font-family"),c=this.getOptionValue(t,"font-style").toLowerCase(),p=c+" "+h+" "+l+" "+d,u=this.getOptionValue(t,"text-anchor"),y=void 0!==t.opacity?t.opacity:1;if("middle"===u&&(u="center"),this.ctx.save(),this.ctx.fillStyle=t.fill,this.ctx.font=p,this.ctx.textAlign=u,this.ctx.globalAlpha=y,t.baseline&&(this.ctx.textBaseline=t.baseline),!s){this.ctx.translate(t.x+0+(n||0),t.y+(o||0)),this.ctx.rotate(t.labelRotation*Math.PI/180)}return this.ctx.fillText(e,s?t.x:0,s?a: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(","),n=parseFloat(r[0]),o=parseFloat(r[1]);0===i?this.ctx.moveTo(n,o):this.ctx.lineTo(n,o)}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),n=t.rx/r,o=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(n,o),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 e=new Image;i.i(r.isNullOrUndefined)(t.href)||(e.src=t.href,this.ctx.drawImage(e,t.x,t.y,t.width,t.height)),this.ctx.restore()},t.prototype.createLinearGradient=function(t){var e;return i.i(r.isNullOrUndefined)(t[0].colorStop)||(e=this.ctx.createLinearGradient(0,0,0,this.canvasObj.height)),this.setGradientValues(t,e)},t.prototype.createRadialGradient=function(t){var e;return i.i(r.isNullOrUndefined)(t[0].colorStop)||(e=this.ctx.createRadialGradient(0,0,0,0,0,this.canvasObj.height)),this.setGradientValues(t,e)},t.prototype.setGradientValues=function(t,e){var n;if(i.i(r.isNullOrUndefined)(t[0].colorStop))n=t[0].color.toString();else{for(var o=0;o<=t.length-1;o++){var a=t[o].color,s=t[o].colorStop.slice(0,-1),h=parseInt(s,10)/100;e.addColorStop(h,a)}n=e.toString()}return n},t.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=Object.keys(t).map(function(e){return t[e]}),n=0;n<i.length;n++)e.setAttribute(i[n],r[n]);return null},t.prototype.updateCanvasAttributes=function(t){this.setElementAttributes(t,this.canvasObj);var e=this.ctx;if(!i.i(r.isNullOrUndefined)(this.dataUrl)){var n=new Image;n.onload=function(){e.drawImage(n,0,0)},n.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.drawCircularClipPath=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}())},function(t,e,i){"use strict";i.d(e,"a",function(){return n});var r=i(0),n=(i.n(r),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 i.i(r.isNullOrUndefined)(t.id)&&(t.id=this.rootId+"_svg"),this.svgObj=document.getElementById(t.id),i.i(r.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,e){var n=document.getElementById(this.rootId),o=i.i(r.isNullOrUndefined)(n)?null:n.getBoundingClientRect();i.i(r.isNullOrUndefined)(this.width)||this.width<=0?this.svgObj.setAttribute("width",t?t.toString():o.width.toString()):this.svgObj.setAttribute("width",this.width.toString()),i.i(r.isNullOrUndefined)(this.height)||this.height<=0?this.svgObj.setAttribute("height",e?e.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 e=document.createElementNS(this.svgLink,"image");return e.setAttributeNS(null,"height",t.height.toString()),e.setAttributeNS(null,"width",t.width.toString()),e.setAttributeNS("http://www.w3.org/1999/xlink","href",t.href),e.setAttributeNS(null,"x",t.x.toString()),e.setAttributeNS(null,"y",t.y.toString()),e.setAttributeNS(null,"id",t.id),e.setAttributeNS(null,"visibility",t.visibility),i.i(r.isNullOrUndefined)(this.getOptionValue(t,"clip-path"))||e.setAttributeNS(null,"clip-path",this.getOptionValue(t,"clip-path")),i.i(r.isNullOrUndefined)(t.preserveAspectRatio)||e.setAttributeNS(null,"preserveAspectRatio",t.preserveAspectRatio),e},t.prototype.createText=function(t,e){var n=document.createElementNS(this.svgLink,"text");return n=this.setElementAttributes(t,n),i.i(r.isNullOrUndefined)(e)||(n.textContent=e),n},t.prototype.createTSpan=function(t,e){var n=document.createElementNS(this.svgLink,"tspan");return n=this.setElementAttributes(t,n),i.i(r.isNullOrUndefined)(e)||(n.textContent=e),n},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,e,n){var o;if(i.i(r.isNullOrUndefined)(t[0].colorStop))o=t[0].color.toString();else{var a={id:this.rootId+"_"+e+"radialGradient",cx:n.cx+"%",cy:n.cy+"%",r:n.r+"%",fx:n.fx+"%",fy:n.fy+"%"};this.drawGradient("radialGradient",a,t),o="url(#"+this.rootId+"_"+e+"radialGradient)"}return o},t.prototype.createLinearGradient=function(t,e,n){var o;if(i.i(r.isNullOrUndefined)(t[0].colorStop))o=t[0].color.toString();else{var a={id:this.rootId+"_"+e+"linearGradient",x1:n.x1+"%",y1:n.y1+"%",x2:n.x2+"%",y2:n.y2+"%"};this.drawGradient("linearGradient",a,t),o="url(#"+this.rootId+"_"+e+"linearGradient)"}return o},t.prototype.drawGradient=function(t,e,n){var o=this.createDefs(),a=document.createElementNS(this.svgLink,t);a=this.setElementAttributes(e,a);for(var s=0;s<n.length;s++){var h=document.createElementNS(this.svgLink,"stop");h.setAttribute("offset",n[s].colorStop),h.setAttribute("stop-color",n[s].color),h.setAttribute("stop-opacity",n[s].opacity?n[s].opacity:"1"),i.i(r.isNullOrUndefined)(n[s].style)||(h.style.cssText=n[s].style),a.appendChild(h)}return o.appendChild(a),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++)"style"===i[r]?e.style.cssText=t[i[r]]:e.setAttribute(i[r],t[i[r]]);return e},t.prototype.createCanvas=function(){return null},t}())},function(t,e,i){"use strict";i.d(e,"a",function(){return l}),i.d(e,"b",function(){return d}),i.d(e,"c",function(){return c}),i.d(e,"d",function(){return p}),i.d(e,"e",function(){return u});var r=i(0),n=(i.n(r),i(1)),o=i(3),a=i(2),s=this&&this.__extends||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)}}(),h=this&&this.__decorate||function(t,e,i,r){var n,o=arguments.length,a=o<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--)(n=t[s])&&(a=(o<3?n(a):o>3?n(e,i,a):n(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),h([i.i(r.Property)(null)],e.prototype,"size",void 0),h([i.i(r.Property)("")],e.prototype,"color",void 0),h([i.i(r.Property)("Segoe UI")],e.prototype,"fontFamily",void 0),h([i.i(r.Property)("Normal")],e.prototype,"fontWeight",void 0),h([i.i(r.Property)("Normal")],e.prototype,"fontStyle",void 0),h([i.i(r.Property)(1)],e.prototype,"opacity",void 0),e}(r.ChildProperty),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),h([i.i(r.Property)("")],e.prototype,"color",void 0),h([i.i(r.Property)(1)],e.prototype,"width",void 0),h([i.i(r.Property)("")],e.prototype,"dashArray",void 0),e}(r.ChildProperty),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),h([i.i(r.Property)(0)],e.prototype,"x",void 0),h([i.i(r.Property)(0)],e.prototype,"y",void 0),h([i.i(r.Property)(0)],e.prototype,"width",void 0),h([i.i(r.Property)(0)],e.prototype,"height",void 0),e}(r.ChildProperty),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),h([i.i(r.Property)(0)],e.prototype,"x",void 0),h([i.i(r.Property)(0)],e.prototype,"y",void 0),e}(r.ChildProperty),u=function(t){function e(e,i){return t.call(this,e,i)||this}return s(e,t),e.prototype.preRender=function(){this.allowServerDataBinding=!1,this.initPrivateVariable(),this.isCanvas||this.removeSVG(),this.createTooltipElement()},e.prototype.initPrivateVariable=function(){this.renderer=new n.a(this.element.id),this.themeStyle=i.i(o.a)(this.theme),this.formattedText=[],this.padding=5,this.areaMargin=10,this.isFirst=!0,this.markerPoint=[]},e.prototype.removeSVG=function(){var t=document.getElementById(this.element.id+"_svg"),e=document.getElementById(this.element.id+"parent_template");this.blazorTemplate&&i.i(r.resetBlazorTemplate)(this.element.id+"parent_template_blazorTemplate"),t&&t.parentNode&&i.i(r.remove)(t),e&&e.parentNode&&i.i(r.remove)(e)},e.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 e=this.renderTooltipElement(this.areaBounds,this.location);this.drawMarker(e.isBottom,e.isRight,this.markerSize)}this.trigger("loaded",{tooltip:this});var n=document.getElementById("chartmeasuretext");n&&i.i(r.remove)(n),this.allowServerDataBinding=!0},e.prototype.createTooltipElement=function(){if(this.textElements=[],!this.template||this.shared){this.enableRTL&&this.element.setAttribute("dir","ltr");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"}),e.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)}},e.prototype.drawMarker=function(t,e,r){if(this.shapes.length<=0)return null;for(var n,o=0,s=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),h=i.i(a.i)(this.element.id+"_group"),l=(this.enableRTL?this.elementSize.width-r/2:2*this.marginX+r/2)+(e?this.arrowPadding:0),d=0,c=this.shapes;d<c.length;d++){var p=c[d];if("None"!==p){if(n=new a.m(this.element.id+"_Trackball_"+o,this.palette[o],1,"#cccccc",1,null),this.markerPoint[o]){var u=0;this.header.indexOf("<br")>-1&&(u=this.header.split(/<br.*?>/g).length+o),s.appendChild(i.i(a.k)(new a.o(l,this.markerPoint[o]-this.padding+(t?this.arrowPadding:u)),p,new a.d(r,r),"",n,null))}o++}}h.appendChild(s)},e.prototype.renderTooltipElement=function(t,e){var n,o=i.i(a.i)(this.element.id),s=new a.o(0,0),h=new a.o(0,0),l=i.i(a.i)(this.element.id+"_svg"),d=i.i(a.i)(this.element.id+"_group"),c=i.i(a.i)(this.element.id+"_path"),p=!1,u=!1,y=!1,f=0,g=0;if(""!==this.header&&(this.elementSize.height+=this.marginY),this.content.length>1?(n=this.sharedTooltipLocation(t,this.location.x,this.location.y),p=!0):(n=this.tooltipLocation(t,e,s,h),this.inverted?(u=n.x<e.x+this.clipBounds.x,f=u?0:this.arrowPadding):(p=n.y<e.y+this.clipBounds.y,y=!p,g=p?0:this.arrowPadding)),""!==this.header){var x=2,m=0,v=this.isWrap?this.wrappedText:this.header;if(this.isWrap&&"string"==typeof v&&(v.indexOf("<")>-1||v.indexOf(">")>-1)){x=v.split("<br>").length}this.header.indexOf("<br")>-1&&(m=5*(this.header.split(/<br.*?>/g).length-1));var b=i.i(a.a)(this.isWrap?this.wrappedText:this.header,this.textStyle).height+this.marginY*x+(y?this.arrowPadding:0)+(this.isWrap?5:m),w=3*this.marginX+(u||p||y?0:this.arrowPadding),S="M "+w+" "+b+"L "+(n.width+(u||p||y?0:this.arrowPadding)-2*this.marginX)+" "+b,L=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:.8,stroke:this.themeStyle.tooltipHeaderLine,d:S});d.appendChild(L)}var P=this.border.width/2,T=new a.e(P+f,P+g,n.width-P,n.height-P);if(d.setAttribute("opacity","1"),!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(o,n.x,n.y):this.animateTooltipDiv(o,n),l.setAttribute("height",(n.height+this.border.width+(this.inverted?0:this.arrowPadding)+5).toString()),l.setAttribute("width",(n.width+this.border.width+(this.inverted?this.arrowPadding:0)+5).toString()),l.setAttribute("opacity","1"),i.i(r.isNullOrUndefined)(this.tooltipPlacement)||(p=this.tooltipPlacement.indexOf("Top")>-1,y=this.tooltipPlacement.indexOf("Bottom")>-1,u=this.tooltipPlacement.indexOf("Left")>-1),c.setAttribute("d",i.i(a.c)(this.rx,this.ry,T,s,this.arrowPadding,p,y,u,h.x,h.y,this.controlName)),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",r.Browser.isIE?"":"url(#"+O+")");var A='<filter id="'+O+'" 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 k=this.renderer.createDefs();k.setAttribute("id",this.element.id+"SVG_tooltip_definition"),d.appendChild(k),k.innerHTML=A}var C="Fluent"===this.theme?"#FFFFFF":"FluentDark"===this.theme?"#323130":this.border.color;return c.setAttribute("stroke",C),i.i(r.isNullOrUndefined)(this.border.dashArray)||c.setAttribute("stroke-dasharray",this.border.dashArray),this.changeText(new a.o(f,g),y,!u&&!p&&!y),this.revert&&(this.inverted=!this.inverted,this.revert=!1),new a.f(y,!u&&!p&&!y)},e.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)")},e.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)},e.prototype.renderText=function(t){var e,n,o,s,h,l=0,d=0,c=0,p=i.i(r.extend)({},this.textStyle,null,!0).properties,u=i.i(a.i)(this.element.id+"_group"),y="";this.findFormattedText(),this.isWrap=!1;var f="rtl"===document.body.getAttribute("dir"),g=f&&!this.enableRTL?"end":"start";this.leftSpace=this.areaBounds.x+this.location.x,this.rightSpace=this.areaBounds.x+this.areaBounds.width-this.leftSpace;var x,m=this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim(),v=this.header.indexOf("<b>")>-1&&this.header.indexOf("</b>")>-1,b=i.i(a.a)(this.formattedText[0],p).width+2*this.marginX+this.arrowPadding,w=this.location.x-b<this.location.x,S=this.areaBounds.x+this.areaBounds.width<this.location.x+b,L=""!==m?this.marginY:0,P=!0,T=!0;this.markerPoint=[];var O,A=this.shapes.length>0?10:0,k=this.shapes.length>0?5:0,C="Normal",B=this.themeStyle.tooltipLightLabel,F=22/parseFloat("13px")*parseFloat(p.size),E=[];t&&!this.isCanvas||(i.i(a.j)(this.element.id+"_text"),i.i(a.j)(this.element.id+"_header_path"),i.i(a.j)(this.element.id+"_trackball_group"),i.i(a.j)(this.element.id+"SVG_tooltip_definition"));for(var N=new a.h(this.element.id+"_text",2*this.marginX,2*this.marginY+2*this.padding+(2===this.marginY?3:0),g,""),_=i.i(a.n)(N,p,null,u),z=1===this.formattedText.length&&this.formattedText[0].indexOf(" : <b>")>-1,R=""!==this.header,I=R&&v?16:13,j=0,M=this.formattedText.length;j<M;j++)if(o=this.formattedText[j].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g),0===j&&!z&&this.isTextWrap&&(this.leftSpace<b||w)&&(this.rightSpace<b||S)&&(O=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/I:this.rightSpace/I),x=""!==m?m:this.formattedText[j],o=x.match(new RegExp(".{1,"+O+"}","g")),this.wrappedText=v?"<b>"+o.join("<br>")+"</b>":o.join("<br>"),this.isWrap=o.length>1),""!==o[0]){0===j&&""!==m||this.markerPoint.push((""!==m?this.marginY:0)+N.y+l);for(var D=0,U=o.length;D<U;D++){e=o[D].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,this.enableRTL?"<br>‎: <br>":"<br>‎:<br>").split("<br>"),this.enableRTL&&e.length>0&&o[D].match(/:/g)&&(e[0]=e[0].trim(),e.reverse()),c=0,T=!0,l+=F;for(var V=0,W=e.length;V<W;V++)s=e[V],this.enableRTL&&""!==s&&this.isRTLText(s)&&(s=s.concat("‎")),/\S/.test(s)||""===s||(s=" "),(!T&&" "===s||""!==s.replace(/<b>/g,"").replace(/<\/b>/g,"").trim())&&(c+=" "!==s?4:0,T&&!P?(this.header.indexOf("<br")>-1&&0!==j&&(L+=this.header.split(/<br.*?>/g).length),h={x:2*this.marginX+(A+k),dy:F+(T?L:0),fill:""},L=null):h=P&&T?{x:""===m?2*this.marginX+(A+k):2*this.marginX+(this.isWrap?A+k:0)}:{},T=!1,n=this.renderer.createTSpan(h,""),_.appendChild(n),s.indexOf("<b>")>-1||v&&0===V&&0===j&&(R||this.isWrap)?(C="bold",B=this.themeStyle.tooltipBoldLabel,y="font-weight:"+C,p.fontWeight=C,n.setAttribute("fill",this.textStyle.color||B)):(y="bold"===C?"font-weight:"+C:"",p.fontWeight=C,n.setAttribute("fill",this.textStyle.color||B)),(s.indexOf("</b>")>-1||v&&V===W-1&&0===j&&(R||this.isWrap))&&(C="Normal",B=this.themeStyle.tooltipLightLabel),n.textContent=s=this.getTooltipTextContent(s),c+=i.i(a.a)(s,p).width,""!==y&&(n.style.fontWeight=y.split("font-weight:")[1],n.style.color=n.getAttribute("fill")),n.style.fontFamily="inherit",n.style.fontStyle="inherit",n.style.fontSize="inherit",P=!1);c-=4,d=Math.max(d,c),E.push(c)}}this.elementSize=new a.d(d+(d>0?2*this.marginX:0),l),this.elementSize.width+=A+k;var G=_.childNodes[0];if(""!==m&&G&&!this.isWrap){p.fontWeight="bold";var H=(this.elementSize.width+2*this.padding)/2-i.i(a.a)(m,p).width/2;G.setAttribute("x",H.toString())}this.renderContentRTL(_,R,A+k,E)},e.prototype.renderContentRTL=function(t,e,n,o){if(this.enableRTL)for(var a=void 0,s=e?1:0,h=0;h<t.childNodes.length;h++)a=t.childNodes[h],e&&!(h>0)||i.i(r.isNullOrUndefined)(a.getAttribute("x"))||(a.setAttribute("x",(this.elementSize.width-(n+o[s])).toString()),s++)},e.prototype.getTooltipTextContent=function(t){var e=t.match(/<[a-zA-Z\/](.|\n)*?>/g);if(i.i(r.isNullOrUndefined)(e))return t;for(var n=this.isRTLText(t),o=0;o<e.length;o++)this.isValidHTMLElement(e[o].replace("<","").replace("/","").replace(">","").trim())&&(t=t.replace(e[o],n?"‎":""));return t},e.prototype.isValidHTMLElement=function(t){return"[object HTMLUnknownElement]"!=document.createElement(t).toString()},e.prototype.isRTLText=function(t){return/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t)},e.prototype.createTemplate=function(t,e){var n={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",n);var o=document.getElementById(this.element.id);this.isCanvas&&this.removeSVG();var s=o.firstElementChild;if(s&&i.i(r.remove)(s),n.cancel)i.i(r.remove)(i.i(a.i)(this.element.id+"_tooltip"));else{for(var h=i.i(r.createElement)("div",{id:this.element.id+"parent_template"}),l=this.templateFn(this.data,this.controlInstance,h.id,h.id+"_blazorTemplate","");l&&l.length>0;)i.i(r.isBlazor)()||1===l.length?(h.appendChild(l[0]),l=null):h.appendChild(l[0]);o.appendChild(h);var d=this.isCanvas?h:this.element,c=d.getBoundingClientRect();this.padding=0,this.elementSize=new a.d(c.width,c.height);var p=this.shared?this.sharedTooltipLocation(t,this.location.x,this.location.y):this.tooltipLocation(t,e,new a.o(0,0),new a.o(0,0));if(!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(d,p.x,p.y):this.animateTooltipDiv(this.element,p),this.blazorTemplate){var u=function(){var r=i.i(a.i)(y.element.id).getBoundingClientRect();y.elementSize=new a.d(r.width,r.height);var n=y.tooltipLocation(t,e,new a.o(0,0),new a.o(0,0));y.updateDiv(i.i(a.i)(y.element.id),n.x,n.y)},y=this;u.bind(y,t,e),i.i(r.updateBlazorTemplate)(this.element.id+"parent_template_blazorTemplate",this.blazorTemplate.name,this.blazorTemplate.parent,void 0,u)}}},e.prototype.sharedTooltipLocation=function(t,e,i){var r=this.elementSize.width+2*this.marginX,n=this.elementSize.height+2*this.marginY,o=new a.e(e+2*this.padding,i-n-this.padding,r,n);return o.y<t.y&&(o.y+=o.height+2*this.padding),o.x+o.width>t.x+t.width&&(o.x-=o.width+4*this.padding),o.x<t.x&&(o.x=t.x),o},e.prototype.getCurrentPosition=function(t,e,i,r){var n=this.tooltipPlacement,o=this.clipBounds.x,s=this.clipBounds.y,h=this.offset,l=this.elementSize.width+2*this.marginX,d=this.elementSize.height+2*this.marginY,c=new a.o(e.x,e.y);return"Top"===n||"Bottom"===n?(c=new a.o(c.x+o-this.elementSize.width/2-this.padding,c.y+s-this.elementSize.height-2*this.padding-this.arrowPadding-h),i.x=r.x=l/2,"Bottom"===n&&(c.y=e.y+s+h),t.x+t.width<c.x+l?(c.x=t.width>l?t.x+t.width-l+6:t.x,i.x=r.x=t.width>l?t.x+e.x-c.x:e.x):t.x>c.x&&(c.x=t.x,i.x=r.x=e.x)):(c=new a.o(c.x+o+h,c.y+s-this.elementSize.height/2-this.padding),i.y=r.y=d/2,"Left"===n&&(c.x=e.x+o-h-(l+this.arrowPadding)),t.y+t.height<c.y+d?(c.y=t.height>d?t.y+t.height-d+6:t.y,i.y=r.y=t.height>d?t.y+e.y-c.y:e.y):t.y>c.y&&(c.y=t.y,i.y=r.y=e.y)),new a.e(c.x,c.y,l,d)},e.prototype.tooltipLocation=function(t,e,n,o){if(!i.i(r.isNullOrUndefined)(this.tooltipPlacement)){return this.getCurrentPosition(t,e,n,o)}var s=new a.o(e.x,e.y),h=this.elementSize.width+2*this.marginX,l=this.elementSize.height+2*this.marginY,d=this.offset,c=this.clipBounds.x,p=this.clipBounds.y,u=t.x,y=t.y;return this.outOfBounds=!1,this.inverted?(s=new a.o(s.x+c+d,s.y+p-this.elementSize.height/2-this.padding),n.y=o.y=l/2,(s.x+h+this.arrowPadding>u+t.width||this.isNegative)&&(s.x=(e.x>t.width+t.x?t.width:e.x)+c-d-(h+this.arrowPadding)),s.x<u&&(s.x=(e.x<0?0:e.x)+c+d),s.y<=y&&(n.y-=y-s.y,o.y-=y-s.y,s.y=y),s.y+l>=y+t.height&&(n.y+=s.y+l-(y+t.height),o.y+=s.y+l-(y+t.height),s.y-=s.y+l-(y+t.height)),n.y+this.arrowPadding>l-this.ry&&(n.y=l-this.ry-this.arrowPadding,o.y=l),n.y-this.arrowPadding<this.ry&&(n.y=o.y=this.ry+this.arrowPadding),"Chart"===this.controlName&&((s.y+n.y<this.areaMargin+this.arrowPadding||t.y+t.height-(s.y+n.y)<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),i.i(a.b)(s.x,s.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,s=new a.o(e.x+c-this.padding-this.elementSize.width/2,e.y+p-this.elementSize.height-2*this.padding-d-this.arrowPadding),this.revert=!0,o.x=n.x=h/2,o.y=n.y=0,(s.y<y||this.isNegative)&&(s.y=(e.y<0?0:e.y)+d+p),s.y+this.arrowPadding+l>y+t.height&&(s.y=Math.min(e.y,y+t.height)+p-this.elementSize.height-2*this.padding-d-this.arrowPadding),o.x=h/2,s.x<u&&(o.x-=u-s.x,n.x-=u-s.x,s.x=u),s.x+h>t.width+u&&(n.x+=s.x+h-(t.width+u),o.x+=s.x+h-(t.width+u),s.x-=s.x+h-(t.width+u)),this.arrowPadding+n.x>h-this.rx&&(o.x=h-this.rx-this.arrowPadding,n.x=h-this.rx-this.arrowPadding),n.x-this.arrowPadding<this.rx&&(n.x=o.x=this.rx+this.arrowPadding)))):(s=new a.o(s.x+c-this.elementSize.width/2-this.padding,s.y+p-this.elementSize.height-2*this.padding-this.arrowPadding-d),n.x=o.x=h/2,(s.y<y||this.isNegative)&&(s.y=(e.y<0?0:e.y)+p+d),s.y+l+this.arrowPadding>y+t.height&&(s.y=Math.min(e.y,y+t.height)+p-this.elementSize.height-2*this.padding-this.arrowPadding-d),o.x=h/2,s.x<u&&(n.x-=u-s.x,o.x-=u-s.x,s.x=u),s.x+h>u+t.width&&(n.x+=s.x+h-(u+t.width),o.x+=s.x+h-(u+t.width),s.x-=s.x+h-(u+t.width)),n.x+this.arrowPadding>h-this.rx&&(n.x=h-this.rx-this.arrowPadding,o.x=h-this.rx-this.arrowPadding),n.x-this.arrowPadding<this.rx&&(n.x=o.x=this.rx+this.arrowPadding),"Chart"===this.controlName&&((t.x+t.width-(s.x+n.x)<this.areaMargin+this.arrowPadding||s.x+n.x<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),i.i(a.b)(s.x,s.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,this.revert=!0,s=new a.o(e.x+d+c,e.y+p-this.elementSize.height/2-this.padding),o.x=n.x=0,o.y=n.y=l/2,(s.x+this.arrowPadding+h>u+t.width||this.isNegative)&&(s.x=(e.x>t.width?t.width:e.x)+c-d-(this.arrowPadding+h)),s.x<u&&(s.x=(e.x<0?0:e.x)+d+c),s.y<=y&&(o.y-=y-s.y,n.y-=y-s.y,s.y=y),s.y+l>=t.height+y&&(n.y+=s.y+l-(t.height+y),o.y+=s.y+l-(t.height+y),s.y-=s.y+l-(t.height+y)),this.arrowPadding+n.y>l-this.ry&&(n.y=l-this.arrowPadding-this.ry,o.y=l),n.y-this.arrowPadding<this.ry&&(n.y=this.arrowPadding+this.ry,o.y=0)))),new a.e(s.x,s.y,h,l)},e.prototype.animateTooltipDiv=function(t,e){var i,n=this,o=parseFloat(t.style.left),a=parseFloat(t.style.top);new r.Animation({}).animate(t,{duration:this.duration,progress:function(r){i=r.timeStamp/r.duration,t.style.animation=null,"Chart"===n.controlName&&n.shared&&!n.enableRTL?(t.style.transition="transform 0.1s",t.style.transform="translate("+(o+i*(e.x-o))+"px,"+(a+i*(e.y-a))+"px)"):(t.style.left=o+i*(e.x-o)+"px",t.style.top=a+i*(e.y-a)+"px")},end:function(i){n.updateDiv(t,e.x,e.y),n.trigger("animationComplete",{tooltip:n})}})},e.prototype.updateDiv=function(t,e,i){"Chart"!==this.controlName||!this.shared||this.crosshair||this.enableRTL?(t.style.left=e+"px",t.style.top=i+"px"):t.style.transform="translate("+e+"px,"+i+"px)"},e.prototype.updateTemplateFn=function(){if(this.template)try{document.querySelectorAll(this.template).length?this.templateFn=i.i(r.compile)(document.querySelector(this.template).innerHTML.trim()):this.templateFn=i.i(r.compile)(this.template)}catch(t){this.templateFn=i.i(r.compile)(this.template)}},e.prototype.fadeOut=function(){var t=this,e=this.isCanvas&&!this.template?i.i(a.i)(this.element.id+"_svg"):i.i(a.i)(this.element.id),n=i.i(a.i)(this.element.id);if(e){var o=e.firstChild;if(o.nodeType!=Node.ELEMENT_NODE&&(o=e.firstElementChild),this.isCanvas&&!this.template&&(o=document.getElementById(this.element.id+"_group")?document.getElementById(this.element.id+"_group"):o),!o)return null;var s=parseFloat(o.getAttribute("opacity"));s=i.i(r.isNullOrUndefined)(s)?1:s,new r.Animation({}).animate(o,{duration:200,progress:function(e){t.progressAnimation(o,s,e.timeStamp/e.duration)},end:function(){t.fadeOuted=!0,t.endAnimation(o),n.style.transition=""}})}},e.prototype.progressAnimation=function(t,e,i){t.style.animation="",t.setAttribute("opacity",(e-i).toString())},e.prototype.endAnimation=function(t){t.setAttribute("opacity","0"),this.template&&(t.style.display="none"),this.trigger("animationComplete",{tooltip:this})},e.prototype.getPersistData=function(){var t=[];return this.addOnPersist(t)},e.prototype.getModuleName=function(){return"tooltip"},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.element.classList.remove("e-tooltip")},e.prototype.onPropertyChanged=function(t,e){this.blazorTemplate&&i.i(r.resetBlazorTemplate)(this.element.id+"parent_template_blazorTemplate"),this.isFirst=!1,this.render()},h([i.i(r.Property)(!1)],e.prototype,"enable",void 0),h([i.i(r.Property)(!1)],e.prototype,"shared",void 0),h([i.i(r.Property)(!1)],e.prototype,"crosshair",void 0),h([i.i(r.Property)(!0)],e.prototype,"enableShadow",void 0),h([i.i(r.Property)(null)],e.prototype,"fill",void 0),h([i.i(r.Property)("")],e.prototype,"header",void 0),h([i.i(r.Property)(.75)],e.prototype,"opacity",void 0),h([i.i(r.Complex)({size:"13px",fontWeight:"Normal",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"},l)],e.prototype,"textStyle",void 0),h([i.i(r.Property)(null)],e.prototype,"template",void 0),h([i.i(r.Property)(!0)],e.prototype,"enableAnimation",void 0),h([i.i(r.Property)(300)],e.prototype,"duration",void 0),h([i.i(r.Property)(!1)],e.prototype,"inverted",void 0),h([i.i(r.Property)(!1)],e.prototype,"isNegative",void 0),h([i.i(r.Complex)({color:"#cccccc",width:.5},d)],e.prototype,"border",void 0),h([i.i(r.Property)([])],e.prototype,"content",void 0),h([i.i(r.Property)(10)],e.prototype,"markerSize",void 0),h([i.i(r.Complex)({x:0,y:0},p)],e.prototype,"clipBounds",void 0),h([i.i(r.Property)([])],e.prototype,"palette",void 0),h([i.i(r.Property)([])],e.prototype,"shapes",void 0),h([i.i(r.Complex)({x:0,y:0},p)],e.prototype,"location",void 0),h([i.i(r.Property)(0)],e.prototype,"offset",void 0),h([i.i(r.Property)(4)],e.prototype,"rx",void 0),h([i.i(r.Property)(4)],e.prototype,"ry",void 0),h([i.i(r.Property)(5)],e.prototype,"marginX",void 0),h([i.i(r.Property)(5)],e.prototype,"marginY",void 0),h([i.i(r.Property)(7)],e.prototype,"arrowPadding",void 0),h([i.i(r.Property)(null)],e.prototype,"data",void 0),h([i.i(r.Property)("Material")],e.prototype,"theme",void 0),h([i.i(r.Complex)({x:0,y:0,width:0,height:0},c)],e.prototype,"areaBounds",void 0),h([i.i(r.Property)(null)],e.prototype,"availableSize",void 0),h([i.i(r.Property)()],e.prototype,"blazorTemplate",void 0),h([i.i(r.Property)(!1)],e.prototype,"isCanvas",void 0),h([i.i(r.Property)(!1)],e.prototype,"isTextWrap",void 0),h([i.i(r.Property)(null)],e.prototype,"tooltipPlacement",void 0),h([i.i(r.Property)(null)],e.prototype,"controlInstance",void 0),h([i.i(r.Property)("")],e.prototype,"controlName",void 0),h([i.i(r.Event)()],e.prototype,"tooltipRender",void 0),h([i.i(r.Event)()],e.prototype,"loaded",void 0),h([i.i(r.Event)()],e.prototype,"animationComplete",void 0),h([i.i(r.Property)(!1)],e.prototype,"enableRTL",void 0),e=h([r.NotifyPropertyChanges],e)}(r.Component)}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("SyncfusionBase")):"function"==typeof define&&define.amd?define(["SyncfusionBase"],e):"object"==typeof exports?exports.SyncfusionSvgBase=e(require("SyncfusionBase")):t.SyncfusionSvgBase=e(t.SyncfusionBase)}(this,function(t){return function(t){function e(r){if(i[r])return i[r].exports;var n=i[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,r){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=5)}([function(e,i){e.exports=t},function(t,e,i){"use strict";var r=i(7);i.d(e,"a",function(){return r.a});var n=i(6);i.d(e,"b",function(){return n.a})},function(t,e,i){"use strict";function r(t,e){var r=t||"",n=document.getElementById("chartmeasuretext");if(null===n&&(n=i.i(p.createElement)("text",{id:"chartmeasuretext"}),document.body.appendChild(n)),"string"==typeof t&&(t.indexOf("<")>-1||t.indexOf(">")>-1)){for(var o=t.split(" "),a=0;a<o.length;a++)-1===o[a].indexOf("<br/>")&&(o[a]=o[a].replace(/[<>]/g,"&"));t=o.join(" ")}return n.innerHTML=r.indexOf("<br>")>-1||r.indexOf("<br/>")>-1?r:t,n.style.position="fixed",n.style.fontSize=e.size,n.style.fontWeight=e.fontWeight,n.style.fontStyle=e.fontStyle,n.style.fontFamily=e.fontFamily,n.style.visibility="hidden",n.style.top="-100",n.style.left="0",n.style.whiteSpace="nowrap",n.style.lineHeight="normal",new y(n.clientWidth,n.clientHeight)}function n(t,e,i,r,n){return void 0===r&&(r=0),void 0===n&&(n=0),t>=i.x-r&&t<=i.x+i.width+r&&e>=i.y-n&&e<=i.y+i.height+n}function o(t,e,i,r,n,o,a,s,h,l,d){void 0===d&&(d="");var c="",p=i.x,u=i.y,y=i.x+i.width,f=i.y+i.height;return o?(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u+" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e)),c=c.concat(" L "+y+" "+(f-e)+" Q "+y+" "+f+" "+(y-t)+" "+f),0!==n&&("RangeNavigator"===d?r.x-n>y/2?(c=c.concat(" L "+(r.x+n)+" "+f),c=c.concat(" L "+(h+n)+" "+(f+n)+" L "+r.x+" "+f)):(c=c.concat(" L "+r.x+" "+f),c=c.concat(" L "+(h-n)+" "+(f+n)+" L "+(r.x-n)+" "+f)):(c=c.concat(" L "+(r.x+n)+" "+f),c=c.concat(" L "+h+" "+(f+n)+" L "+(r.x-n)+" "+f))),c=r.x-n>p?c.concat(" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z"):0===n?c.concat(" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z"):c.concat(" L "+p+" "+(f+e)+" z")):a?(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u+" L "+(r.x-n)+" "+u),c=c.concat(" L "+h+" "+r.y),c=c.concat(" L "+(r.x+n)+" "+u),c=c.concat(" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e)),c=c.concat(" L "+y+" "+(f-e)+" Q "+y+" "+f+" "+(y-t)+" "+f+" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z")):s?(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u),c=c.concat(" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e)+" L "+y+" "+(r.y-n)),c="RangeNavigator"===d?c.concat(" L "+(y+n)+" "+(l-n)):c.concat(" L "+(y+n)+" "+l),c="RangeNavigator"===d?c.concat(" L "+y+" "+r.y):c.concat(" L "+y+" "+(r.y+n)),c=c.concat(" L "+y+" "+(f-e)+" Q "+y+" "+f+" "+(y-t)+" "+f),c=c.concat(" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z")):(c=c.concat("M "+(p+t)+" "+u+" Q "+p+" "+u+" "+p+" "+(u+e)+" L "+p+" "+(r.y-n)),c="RangeNavigator"===d?c.concat(" L "+(p-n)+" "+(l-n)):c.concat(" L "+(p-n)+" "+l),c="RangeNavigator"===d?c.concat(" L "+p+" "+r.y):c.concat(" L "+p+" "+(r.y+n)),c=c.concat(" L "+p+" "+(f-e)+" Q "+p+" "+f+" "+(p+t)+" "+f),c=c.concat(" L "+(y-t)+" "+f+" Q "+y+" "+f+" "+y+" "+(f-e)+" L "+y+" "+(u+e)+" Q "+y+" "+u+" "+(y-t)+" "+u+" z")),c}function a(t){return document.getElementById(t)}function s(t){var e=a(t);e&&i.i(p.remove)(e)}function h(t,e,i,r,n,o){var a=new c.a(""),s=l(t,i,e,n,r),h=a["draw"+s.functionName](s.renderOption);return h.setAttribute("aria-label",o),h}function l(t,e,r,n,o){var a,s="Path",h=e.width,l=e.height,d=t.x,c=t.y,u=t.x+-h/2,y=t.y+-l/2;switch(r){case"Circle":case"Bubble":s="Ellipse",i.i(p.merge)(n,{rx:h/2,ry:l/2,cx:d,cy:c});break;case"Cross":a="M "+u+" "+c+" L "+(d+h/2)+" "+c+" M "+d+" "+(c+l/2)+" L "+d+" "+(c+-l/2),i.i(p.merge)(n,{d:a});break;case"HorizontalLine":a="M "+u+" "+c+" L "+(d+h/2)+" "+c,i.i(p.merge)(n,{d:a});break;case"VerticalLine":a="M "+d+" "+(c+l/2)+" L "+d+" "+(c+-l/2),i.i(p.merge)(n,{d:a});break;case"Diamond":a="M "+u+" "+c+" L "+d+" "+(c+-l/2)+" L "+(d+h/2)+" "+c+" L "+d+" "+(c+l/2)+" L "+u+" "+c+" z",i.i(p.merge)(n,{d:a});break;case"Rectangle":a="M "+u+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+l/2)+" L "+u+" "+(c+l/2)+" L "+u+" "+(c+-l/2)+" z",i.i(p.merge)(n,{d:a});break;case"Triangle":a="M "+u+" "+(c+l/2)+" L "+d+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+l/2)+" L "+u+" "+(c+l/2)+" z",i.i(p.merge)(n,{d:a});break;case"InvertedTriangle":a="M "+(d+h/2)+" "+(c-l/2)+" L "+d+" "+(c+l/2)+" L "+(d-h/2)+" "+(c-l/2)+" L "+(d+h/2)+" "+(c-l/2)+" z",i.i(p.merge)(n,{d:a});break;case"Pentagon":for(var f=void 0,g=void 0,x=0;x<=5;x++)f=h/2*Math.cos(Math.PI/180*(72*x)),g=l/2*Math.sin(Math.PI/180*(72*x)),a=0===x?"M "+(d+f)+" "+(c+g)+" ":a.concat("L "+(d+f)+" "+(c+g)+" ");a=a.concat("Z"),i.i(p.merge)(n,{d:a});break;case"Image":s="Image",i.i(p.merge)(n,{href:o,height:l,width:h,x:u,y:y})}return{renderOption:n,functionName:s}}function d(t,e,i,r){var n={},o=new c.a("");n={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=o.createText(n,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}e.a=r,e.b=n,e.c=o,i.d(e,"d",function(){return y}),i.d(e,"e",function(){return f}),i.d(e,"f",function(){return g}),i.d(e,"g",function(){return x}),i.d(e,"h",function(){return m}),e.i=a,e.j=s,e.k=h,e.l=l,i.d(e,"m",function(){return v}),e.n=d,i.d(e,"o",function(){return b});var c=i(1),p=i(0),u=(i.n(p),this&&this.__extends||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)}}()),y=function(){function t(t,e){this.width=t,this.height=e}return t}(),f=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}(),x=function(){function t(t){this.id=t}return t}(),m=function(t){function e(e,i,r,n,o,a,s,h){void 0===a&&(a="");var l=t.call(this,e)||this;return l.transform="",l.baseLine="auto",l.labelRotation=0,l.x=i,l.y=r,l.anchor=n,l.text=o,l.transform=a,l.baseLine=s,l.labelRotation=h,l}return u(e,t),e}(x),v=function(t){function e(e,i,r,n,o,a,s){var h=t.call(this,e)||this;return h.opacity=o,h.fill=i,h.stroke=n,h["stroke-width"]=r,h["stroke-dasharray"]=a,h.d=s,h}return u(e,t),e}(x),b=function(){function t(t,e){this.x=t,this.y=e}return t}()},function(t,e,i){"use strict";function r(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:"#020202",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;case"Fluent":e={tooltipFill:"#FFFFFF",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE"};break;case"FluentDark":e={tooltipFill:"#252423",tooltipBoldLabel:"#F3F2F1",tooltipLightLabel:"#F3F2F1",tooltipHeaderLine:"#3B3A39"};break;default:e={tooltipFill:"#000816",tooltipBoldLabel:"#ffffff",tooltipLightLabel:"#dbdbdb",tooltipHeaderLine:"#ffffff"}}return e}e.a=r},function(t,e,i){"use strict";var r=i(8);i.d(e,"a",function(){return r.a}),i.d(e,"b",function(){return r.b}),i.d(e,"c",function(){return r.c}),i.d(e,"d",function(){return r.d}),i.d(e,"e",function(){return r.e});var n=i(3);i.d(e,"f",function(){return n.a});var o=i(2);i.d(e,"g",function(){return o.a}),i.d(e,"h",function(){return o.b}),i.d(e,"i",function(){return o.c}),i.d(e,"j",function(){return o.d}),i.d(e,"k",function(){return o.e}),i.d(e,"l",function(){return o.f}),i.d(e,"m",function(){return o.g}),i.d(e,"n",function(){return o.h}),i.d(e,"o",function(){return o.i}),i.d(e,"p",function(){return o.j}),i.d(e,"q",function(){return o.k}),i.d(e,"r",function(){return o.l}),i.d(e,"s",function(){return o.m}),i.d(e,"t",function(){return o.n}),i.d(e,"u",function(){return o.o})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=i(4);i.d(e,"TextStyle",function(){return r.a}),i.d(e,"TooltipBorder",function(){return r.b}),i.d(e,"AreaBounds",function(){return r.c}),i.d(e,"ToolLocation",function(){return r.d}),i.d(e,"Tooltip",function(){return r.e}),i.d(e,"getTooltipThemeColor",function(){return r.f}),i.d(e,"measureText",function(){return r.g}),i.d(e,"withInAreaBounds",function(){return r.h}),i.d(e,"findDirection",function(){return r.i}),i.d(e,"Size",function(){return r.j}),i.d(e,"Rect",function(){return r.k}),i.d(e,"Side",function(){return r.l}),i.d(e,"CustomizeOption",function(){return r.m}),i.d(e,"TextOption",function(){return r.n}),i.d(e,"getElement",function(){return r.o}),i.d(e,"removeElement",function(){return r.p}),i.d(e,"drawSymbol",function(){return r.q}),i.d(e,"calculateShapes",function(){return r.r}),i.d(e,"PathOption",function(){return r.s}),i.d(e,"textElement",function(){return r.t}),i.d(e,"TooltipLocation",function(){return r.u});var n=i(1);i.d(e,"SvgRenderer",function(){return n.a}),i.d(e,"CanvasRenderer",function(){return n.b})},function(t,e,i){"use strict";i.d(e,"a",function(){return n});var r=i(0),n=(i.n(r),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,e){var n=document.getElementById(this.rootId),o=i.i(r.isNullOrUndefined)(n)?null:n.getBoundingClientRect();i.i(r.isNullOrUndefined)(this.width)?this.canvasObj.setAttribute("width",t?t.toString():o.width.toString()):this.canvasObj.setAttribute("width",this.width.toString()),i.i(r.isNullOrUndefined)(this.height)?this.canvasObj.setAttribute("height",e?e.toString():"450"):this.canvasObj.setAttribute("height",this.height.toString())},t.prototype.setAttributes=function(t){this.ctx.lineWidth=this.getOptionValue(t,"stroke-width");var e=this.getOptionValue(t,"stroke-dasharray");if(!i.i(r.isNullOrUndefined)(e)){var n=e.split(",");this.ctx.setLineDash([parseInt(n[0],10),parseInt(n[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,n=t.width,o=t.height;"none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,n<2*e&&(e=n/2),o<2*e&&(e=o/2),this.ctx.beginPath(),this.ctx.moveTo(i+n-e,r),this.ctx.arcTo(i+n,r,i+n,r+o,e),this.ctx.arcTo(i+n,r+o,i,r+o,e),this.ctx.arcTo(i,r+o,i,r,e),this.ctx.arcTo(i,r,i+n,r,e),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke()},t.prototype.drawPath=function(t,e){var i=t.d,r=i.split(" "),n=this.getOptionValue(t,"stroke-width"),o=this.ctx,a=!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<r.length;s+=3){var h=parseFloat(r[s+1]),l=parseFloat(r[s+2]);switch(r[s]){case"M":t.innerR||t.cx||this.ctx.moveTo(h,l);break;case"L":t.innerR||this.ctx.lineTo(h,l);break;case"Q":var d=parseFloat(r[s+3]),c=parseFloat(r[s+4]);this.ctx.quadraticCurveTo(h,l,d,c),s+=2;break;case"C":var p=parseFloat(r[s+3]),u=parseFloat(r[s+4]),y=parseFloat(r[s+5]),f=parseFloat(r[s+6]);this.ctx.bezierCurveTo(h,l,p,u,y,f),s+=4;break;case"A":t.innerR?a&&(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),a=!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()),n>0&&this.ctx.stroke(),this.ctx.restore(),this.ctx=o,this.canvasObj},t.prototype.createText=function(t,e,n,o,a,s){var h=this.getOptionValue(t,"font-weight");i.i(r.isNullOrUndefined)(h)||"regular"!==h.toLowerCase()||(h="normal");var l=this.getOptionValue(t,"font-size"),d=this.getOptionValue(t,"font-family"),c=this.getOptionValue(t,"font-style").toLowerCase(),p=c+" "+h+" "+l+" "+d,u=this.getOptionValue(t,"text-anchor"),y=void 0!==t.opacity?t.opacity:1;if("middle"===u&&(u="center"),this.ctx.save(),this.ctx.fillStyle=t.fill,this.ctx.font=p,this.ctx.textAlign=u,this.ctx.globalAlpha=y,t.baseline&&(this.ctx.textBaseline=t.baseline),!s){this.ctx.translate(t.x+0+(n||0),t.y+(o||0)),this.ctx.rotate(t.labelRotation*Math.PI/180)}return this.ctx.fillText(e,s?t.x:0,s?a: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(","),n=parseFloat(r[0]),o=parseFloat(r[1]);0===i?this.ctx.moveTo(n,o):this.ctx.lineTo(n,o)}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),n=t.rx/r,o=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(n,o),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 e=new Image;i.i(r.isNullOrUndefined)(t.href)||(e.src=t.href,this.ctx.drawImage(e,t.x,t.y,t.width,t.height)),this.ctx.restore()},t.prototype.createLinearGradient=function(t){var e;return i.i(r.isNullOrUndefined)(t[0].colorStop)||(e=this.ctx.createLinearGradient(0,0,0,this.canvasObj.height)),this.setGradientValues(t,e)},t.prototype.createRadialGradient=function(t){var e;return i.i(r.isNullOrUndefined)(t[0].colorStop)||(e=this.ctx.createRadialGradient(0,0,0,0,0,this.canvasObj.height)),this.setGradientValues(t,e)},t.prototype.setGradientValues=function(t,e){var n;if(i.i(r.isNullOrUndefined)(t[0].colorStop))n=t[0].color.toString();else{for(var o=0;o<=t.length-1;o++){var a=t[o].color,s=t[o].colorStop.slice(0,-1),h=parseInt(s,10)/100;e.addColorStop(h,a)}n=e.toString()}return n},t.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=Object.keys(t).map(function(e){return t[e]}),n=0;n<i.length;n++)e.setAttribute(i[n],r[n]);return null},t.prototype.updateCanvasAttributes=function(t){this.setElementAttributes(t,this.canvasObj);var e=this.ctx;if(!i.i(r.isNullOrUndefined)(this.dataUrl)){var n=new Image;n.onload=function(){e.drawImage(n,0,0)},n.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.drawCircularClipPath=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}())},function(t,e,i){"use strict";i.d(e,"a",function(){return n});var r=i(0),n=(i.n(r),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 i.i(r.isNullOrUndefined)(t.id)&&(t.id=this.rootId+"_svg"),this.svgObj=document.getElementById(t.id),i.i(r.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,e){var n=document.getElementById(this.rootId),o=i.i(r.isNullOrUndefined)(n)?null:n.getBoundingClientRect();i.i(r.isNullOrUndefined)(this.width)||this.width<=0?this.svgObj.setAttribute("width",t?t.toString():o.width.toString()):this.svgObj.setAttribute("width",this.width.toString()),i.i(r.isNullOrUndefined)(this.height)||this.height<=0?this.svgObj.setAttribute("height",e?e.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 e=document.createElementNS(this.svgLink,"image");return e.setAttributeNS(null,"height",t.height.toString()),e.setAttributeNS(null,"width",t.width.toString()),e.setAttributeNS("http://www.w3.org/1999/xlink","href",t.href),e.setAttributeNS(null,"x",t.x.toString()),e.setAttributeNS(null,"y",t.y.toString()),e.setAttributeNS(null,"id",t.id),e.setAttributeNS(null,"visibility",t.visibility),i.i(r.isNullOrUndefined)(this.getOptionValue(t,"clip-path"))||e.setAttributeNS(null,"clip-path",this.getOptionValue(t,"clip-path")),i.i(r.isNullOrUndefined)(t.preserveAspectRatio)||e.setAttributeNS(null,"preserveAspectRatio",t.preserveAspectRatio),e},t.prototype.createText=function(t,e){var n=document.createElementNS(this.svgLink,"text");return n=this.setElementAttributes(t,n),i.i(r.isNullOrUndefined)(e)||(n.textContent=e),n},t.prototype.createTSpan=function(t,e){var n=document.createElementNS(this.svgLink,"tspan");return n=this.setElementAttributes(t,n),i.i(r.isNullOrUndefined)(e)||(n.textContent=e),n},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,e,n){var o;if(i.i(r.isNullOrUndefined)(t[0].colorStop))o=t[0].color.toString();else{var a={id:this.rootId+"_"+e+"radialGradient",cx:n.cx+"%",cy:n.cy+"%",r:n.r+"%",fx:n.fx+"%",fy:n.fy+"%"};this.drawGradient("radialGradient",a,t),o="url(#"+this.rootId+"_"+e+"radialGradient)"}return o},t.prototype.createLinearGradient=function(t,e,n){var o;if(i.i(r.isNullOrUndefined)(t[0].colorStop))o=t[0].color.toString();else{var a={id:this.rootId+"_"+e+"linearGradient",x1:n.x1+"%",y1:n.y1+"%",x2:n.x2+"%",y2:n.y2+"%"};this.drawGradient("linearGradient",a,t),o="url(#"+this.rootId+"_"+e+"linearGradient)"}return o},t.prototype.drawGradient=function(t,e,n){var o=this.createDefs(),a=document.createElementNS(this.svgLink,t);a=this.setElementAttributes(e,a);for(var s=0;s<n.length;s++){var h=document.createElementNS(this.svgLink,"stop");h.setAttribute("offset",n[s].colorStop),h.setAttribute("stop-color",n[s].color),h.setAttribute("stop-opacity",n[s].opacity?n[s].opacity:"1"),i.i(r.isNullOrUndefined)(n[s].style)||(h.style.cssText=n[s].style),a.appendChild(h)}return o.appendChild(a),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++)"style"===i[r]?e.style.cssText=t[i[r]]:e.setAttribute(i[r],t[i[r]]);return e},t.prototype.createCanvas=function(){return null},t}())},function(t,e,i){"use strict";i.d(e,"a",function(){return l}),i.d(e,"b",function(){return d}),i.d(e,"c",function(){return c}),i.d(e,"d",function(){return p}),i.d(e,"e",function(){return u});var r=i(0),n=(i.n(r),i(1)),o=i(3),a=i(2),s=this&&this.__extends||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)}}(),h=this&&this.__decorate||function(t,e,i,r){var n,o=arguments.length,a=o<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--)(n=t[s])&&(a=(o<3?n(a):o>3?n(e,i,a):n(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),h([i.i(r.Property)(null)],e.prototype,"size",void 0),h([i.i(r.Property)("")],e.prototype,"color",void 0),h([i.i(r.Property)("Segoe UI")],e.prototype,"fontFamily",void 0),h([i.i(r.Property)("Normal")],e.prototype,"fontWeight",void 0),h([i.i(r.Property)("Normal")],e.prototype,"fontStyle",void 0),h([i.i(r.Property)(1)],e.prototype,"opacity",void 0),e}(r.ChildProperty),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),h([i.i(r.Property)("")],e.prototype,"color",void 0),h([i.i(r.Property)(1)],e.prototype,"width",void 0),h([i.i(r.Property)("")],e.prototype,"dashArray",void 0),e}(r.ChildProperty),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),h([i.i(r.Property)(0)],e.prototype,"x",void 0),h([i.i(r.Property)(0)],e.prototype,"y",void 0),h([i.i(r.Property)(0)],e.prototype,"width",void 0),h([i.i(r.Property)(0)],e.prototype,"height",void 0),e}(r.ChildProperty),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),h([i.i(r.Property)(0)],e.prototype,"x",void 0),h([i.i(r.Property)(0)],e.prototype,"y",void 0),e}(r.ChildProperty),u=function(t){function e(e,i){return t.call(this,e,i)||this}return s(e,t),e.prototype.preRender=function(){this.allowServerDataBinding=!1,this.initPrivateVariable(),this.isCanvas||this.removeSVG(),this.createTooltipElement()},e.prototype.initPrivateVariable=function(){this.renderer=new n.a(this.element.id),this.themeStyle=i.i(o.a)(this.theme),this.formattedText=[],this.padding=5,this.areaMargin=10,this.isFirst=!0,this.markerPoint=[]},e.prototype.removeSVG=function(){var t=document.getElementById(this.element.id+"_svg"),e=document.getElementById(this.element.id+"parent_template");this.blazorTemplate&&i.i(r.resetBlazorTemplate)(this.element.id+"parent_template_blazorTemplate"),t&&t.parentNode&&i.i(r.remove)(t),e&&e.parentNode&&i.i(r.remove)(e)},e.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 e=this.renderTooltipElement(this.areaBounds,this.location);this.drawMarker(e.isBottom,e.isRight,this.markerSize)}this.trigger("loaded",{tooltip:this});var n=document.getElementById("chartmeasuretext");n&&i.i(r.remove)(n),this.allowServerDataBinding=!0},e.prototype.createTooltipElement=function(){if(this.textElements=[],!this.template||this.shared){this.enableRTL&&this.element.setAttribute("dir","ltr");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"}),e.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)}},e.prototype.drawMarker=function(t,e,r){if(this.shapes.length<=0)return null;for(var n,o=0,s=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),h=i.i(a.i)(this.element.id+"_group"),l=(this.enableRTL?this.elementSize.width-r/2:2*this.marginX+r/2)+(e?this.arrowPadding:0),d=0,c=this.shapes;d<c.length;d++){var p=c[d];if("None"!==p){if(n=new a.m(this.element.id+"_Trackball_"+o,this.palette[o],1,"#cccccc",1,null),this.markerPoint[o]){var u=0;this.header.indexOf("<br")>-1&&(u=this.header.split(/<br.*?>/g).length+o),s.appendChild(i.i(a.k)(new a.o(l,this.markerPoint[o]-this.padding+(t?this.arrowPadding:u)),p,new a.d(r,r),"",n,null))}o++}}h.appendChild(s)},e.prototype.renderTooltipElement=function(t,e){var n,o=i.i(a.i)(this.element.id),s=new a.o(0,0),h=new a.o(0,0),l=i.i(a.i)(this.element.id+"_svg"),d=i.i(a.i)(this.element.id+"_group"),c=i.i(a.i)(this.element.id+"_path"),p=!1,u=!1,y=!1,f=0,g=0;if(""!==this.header&&(this.elementSize.height+=this.marginY),this.content.length>1?(n=this.sharedTooltipLocation(t,this.location.x,this.location.y),p=!0):(n=this.tooltipLocation(t,e,s,h),this.inverted?(u=n.x<e.x+this.clipBounds.x,f=u?0:this.arrowPadding):(p=n.y<e.y+this.clipBounds.y,y=!p,g=p?0:this.arrowPadding)),""!==this.header){var x=2,m=0,v=this.isWrap?this.wrappedText:this.header;if(this.isWrap&&"string"==typeof v&&(v.indexOf("<")>-1||v.indexOf(">")>-1)){x=v.split("<br>").length}this.header.indexOf("<br")>-1&&(m=5*(this.header.split(/<br.*?>/g).length-1));var b=i.i(a.a)(this.isWrap?this.wrappedText:this.header,this.textStyle).height+this.marginY*x+(y?this.arrowPadding:0)+(this.isWrap?5:m),w=3*this.marginX+(u||p||y?0:this.arrowPadding),S="M "+w+" "+b+"L "+(n.width+(u||p||y?0:this.arrowPadding)-2*this.marginX)+" "+b,L=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:.8,stroke:this.themeStyle.tooltipHeaderLine,d:S});d.appendChild(L)}var P=this.border.width/2,T=new a.e(P+f,P+g,n.width-P,n.height-P);if(d.setAttribute("opacity","1"),!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(o,n.x,n.y):this.animateTooltipDiv(o,n),l.setAttribute("height",(n.height+this.border.width+(this.inverted?0:this.arrowPadding)+5).toString()),l.setAttribute("width",(n.width+this.border.width+(this.inverted?this.arrowPadding:0)+5).toString()),l.setAttribute("opacity","1"),i.i(r.isNullOrUndefined)(this.tooltipPlacement)||(p=this.tooltipPlacement.indexOf("Top")>-1,y=this.tooltipPlacement.indexOf("Bottom")>-1,u=this.tooltipPlacement.indexOf("Left")>-1),c.setAttribute("d",i.i(a.c)(this.rx,this.ry,T,s,this.arrowPadding,p,y,u,h.x,h.y,this.controlName)),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",r.Browser.isIE?"":"url(#"+O+")");var A='<filter id="'+O+'" 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 k=this.renderer.createDefs();k.setAttribute("id",this.element.id+"SVG_tooltip_definition"),d.appendChild(k),k.innerHTML=A}var C="Fluent"===this.theme?"#FFFFFF":"FluentDark"===this.theme?"#323130":this.border.color;return c.setAttribute("stroke",C),i.i(r.isNullOrUndefined)(this.border.dashArray)||c.setAttribute("stroke-dasharray",this.border.dashArray),this.changeText(new a.o(f,g),y,!u&&!p&&!y),this.revert&&(this.inverted=!this.inverted,this.revert=!1),new a.f(y,!u&&!p&&!y)},e.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)")},e.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)},e.prototype.renderText=function(t){var e,n,o,s,h,l=0,d=0,c=0,p=i.i(r.extend)({},this.textStyle,null,!0).properties,u=i.i(a.i)(this.element.id+"_group"),y="";this.findFormattedText(),this.isWrap=!1;var f="rtl"===document.body.getAttribute("dir"),g=f&&!this.enableRTL?"end":"start";this.leftSpace=this.areaBounds.x+this.location.x,this.rightSpace=this.areaBounds.x+this.areaBounds.width-this.leftSpace;var x,m=this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim(),v=this.header.indexOf("<b>")>-1&&this.header.indexOf("</b>")>-1,b=i.i(a.a)(this.formattedText[0],p).width+2*this.marginX+this.arrowPadding,w=this.location.x-b<this.location.x,S=this.areaBounds.x+this.areaBounds.width<this.location.x+b,L=""!==m?this.marginY:0,P=!0,T=!0;this.markerPoint=[];var O,A=this.shapes.length>0?10:0,k=this.shapes.length>0?5:0,C="Normal",B=this.themeStyle.tooltipLightLabel,F=22/parseFloat("13px")*parseFloat(p.size),E=[];t&&!this.isCanvas||(i.i(a.j)(this.element.id+"_text"),i.i(a.j)(this.element.id+"_header_path"),i.i(a.j)(this.element.id+"_trackball_group"),i.i(a.j)(this.element.id+"SVG_tooltip_definition"));for(var N=new a.h(this.element.id+"_text",2*this.marginX,2*this.marginY+2*this.padding+(2===this.marginY?3:0),g,""),_=i.i(a.n)(N,p,null,u),z=1===this.formattedText.length&&this.formattedText[0].indexOf(" : <b>")>-1,R=""!==this.header,I=R&&v?16:13,j=0,M=this.formattedText.length;j<M;j++)if(o=this.formattedText[j].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g),0===j&&!z&&this.isTextWrap&&(this.leftSpace<b||w)&&(this.rightSpace<b||S)&&(O=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/I:this.rightSpace/I),x=""!==m?m:this.formattedText[j],o=x.match(new RegExp(".{1,"+O+"}","g")),this.wrappedText=v?"<b>"+o.join("<br>")+"</b>":o.join("<br>"),this.isWrap=o.length>1),""!==o[0]){0===j&&""!==m||this.markerPoint.push((""!==m?this.marginY:0)+N.y+l);for(var D=0,U=o.length;D<U;D++){e=o[D].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,this.enableRTL?"<br>‎: <br>":"<br>‎:<br>").split("<br>"),this.enableRTL&&e.length>0&&o[D].match(/:/g)&&(e[0]=e[0].trim(),e.reverse()),c=0,T=!0,l+=F;for(var V=0,W=e.length;V<W;V++)s=e[V],this.enableRTL&&""!==s&&this.isRTLText(s)&&(s=s.concat("‎")),/\S/.test(s)||""===s||(s=" "),(!T&&" "===s||""!==s.replace(/<b>/g,"").replace(/<\/b>/g,"").trim())&&(c+=" "!==s?4:0,T&&!P?(this.header.indexOf("<br")>-1&&0!==j&&(L+=this.header.split(/<br.*?>/g).length),h={x:2*this.marginX+(A+k),dy:F+(T?L:0),fill:""},L=null):h=P&&T?{x:""===m?2*this.marginX+(A+k):2*this.marginX+(this.isWrap?A+k:0)}:{},T=!1,n=this.renderer.createTSpan(h,""),_.appendChild(n),s.indexOf("<b>")>-1||v&&0===V&&0===j&&(R||this.isWrap)?(C="bold",B=this.themeStyle.tooltipBoldLabel,y="font-weight:"+C,p.fontWeight=C,n.setAttribute("fill",this.textStyle.color||B)):(y="bold"===C?"font-weight:"+C:"",p.fontWeight=C,n.setAttribute("fill",this.textStyle.color||B)),(s.indexOf("</b>")>-1||v&&V===W-1&&0===j&&(R||this.isWrap))&&(C="Normal",B=this.themeStyle.tooltipLightLabel),n.textContent=s=this.getTooltipTextContent(s),c+=i.i(a.a)(s,p).width,""!==y&&(n.style.fontWeight=y.split("font-weight:")[1],n.style.color=n.getAttribute("fill")),n.style.fontFamily="inherit",n.style.fontStyle="inherit",n.style.fontSize="inherit",P=!1);c-=4,d=Math.max(d,c),E.push(c)}}this.elementSize=new a.d(d+(d>0?2*this.marginX:0),l),this.elementSize.width+=A+k;var G=_.childNodes[0];if(""!==m&&G&&!this.isWrap){p.fontWeight="bold";var H=(this.elementSize.width+2*this.padding)/2-i.i(a.a)(m,p).width/2;G.setAttribute("x",H.toString())}this.renderContentRTL(_,R,A+k,E)},e.prototype.renderContentRTL=function(t,e,n,o){if(this.enableRTL)for(var a=void 0,s=e?1:0,h=0;h<t.childNodes.length;h++)a=t.childNodes[h],e&&!(h>0)||i.i(r.isNullOrUndefined)(a.getAttribute("x"))||(a.setAttribute("x",(this.elementSize.width-(n+o[s])).toString()),s++)},e.prototype.getTooltipTextContent=function(t){var e=t.match(/<[a-zA-Z\/](.|\n)*?>/g);if(i.i(r.isNullOrUndefined)(e))return t;for(var n=this.isRTLText(t),o=0;o<e.length;o++)this.isValidHTMLElement(e[o].replace("<","").replace("/","").replace(">","").trim())&&(t=t.replace(e[o],n?"‎":""));return t},e.prototype.isValidHTMLElement=function(t){return"[object HTMLUnknownElement]"!=document.createElement(t).toString()},e.prototype.isRTLText=function(t){return/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t)},e.prototype.createTemplate=function(t,e){var n={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",n);var o=document.getElementById(this.element.id);this.isCanvas&&this.removeSVG();var s=o.firstElementChild;if(s&&i.i(r.remove)(s),n.cancel)i.i(r.remove)(i.i(a.i)(this.element.id+"_tooltip"));else{for(var h=i.i(r.createElement)("div",{id:this.element.id+"parent_template"}),l=this.templateFn(this.data,this.controlInstance,h.id,h.id+"_blazorTemplate","");l&&l.length>0;)i.i(r.isBlazor)()||1===l.length?(h.appendChild(l[0]),l=null):h.appendChild(l[0]);o.appendChild(h);var d=this.isCanvas?h:this.element,c=d.getBoundingClientRect();this.padding=0,this.elementSize=new a.d(c.width,c.height);var p=this.shared?this.sharedTooltipLocation(t,this.location.x,this.location.y):this.tooltipLocation(t,e,new a.o(0,0),new a.o(0,0));if(!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(d,p.x,p.y):this.animateTooltipDiv(this.element,p),this.blazorTemplate){var u=function(){var r=i.i(a.i)(y.element.id).getBoundingClientRect();y.elementSize=new a.d(r.width,r.height);var n=y.tooltipLocation(t,e,new a.o(0,0),new a.o(0,0));y.updateDiv(i.i(a.i)(y.element.id),n.x,n.y)},y=this;u.bind(y,t,e),i.i(r.updateBlazorTemplate)(this.element.id+"parent_template_blazorTemplate",this.blazorTemplate.name,this.blazorTemplate.parent,void 0,u)}}},e.prototype.sharedTooltipLocation=function(t,e,i){var r=this.elementSize.width+2*this.marginX,n=this.elementSize.height+2*this.marginY,o=new a.e(e+2*this.padding,i-n-this.padding,r,n);return o.y<t.y&&(o.y+=o.height+2*this.padding),o.x+o.width>t.x+t.width&&(o.x-=o.width+4*this.padding),o.x<t.x&&(o.x=t.x),o},e.prototype.getCurrentPosition=function(t,e,i,r){var n=this.tooltipPlacement,o=this.clipBounds.x,s=this.clipBounds.y,h=this.offset,l=this.elementSize.width+2*this.marginX,d=this.elementSize.height+2*this.marginY,c=new a.o(e.x,e.y);return"Top"===n||"Bottom"===n?(c=new a.o(c.x+o-this.elementSize.width/2-this.padding,c.y+s-this.elementSize.height-2*this.padding-this.arrowPadding-h),i.x=r.x=l/2,"Bottom"===n&&(c.y=e.y+s+h),t.x+t.width<c.x+l?(c.x=t.width>l?t.x+t.width-l+6:t.x,i.x=r.x=t.width>l?t.x+e.x-c.x:e.x):t.x>c.x&&(c.x=t.x,i.x=r.x=e.x)):(c=new a.o(c.x+o+h,c.y+s-this.elementSize.height/2-this.padding),i.y=r.y=d/2,"Left"===n&&(c.x=e.x+o-h-(l+this.arrowPadding)),t.y+t.height<c.y+d?(c.y=t.height>d?t.y+t.height-d+6:t.y,i.y=r.y=t.height>d?t.y+e.y-c.y:e.y):t.y>c.y&&(c.y=t.y,i.y=r.y=e.y)),new a.e(c.x,c.y,l,d)},e.prototype.tooltipLocation=function(t,e,n,o){if(!i.i(r.isNullOrUndefined)(this.tooltipPlacement)){return this.getCurrentPosition(t,e,n,o)}var s=new a.o(e.x,e.y),h=this.elementSize.width+2*this.marginX,l=this.elementSize.height+2*this.marginY,d=this.offset,c=this.clipBounds.x,p=this.clipBounds.y,u=t.x,y=t.y;return this.outOfBounds=!1,this.inverted?(s=new a.o(s.x+c+d,s.y+p-this.elementSize.height/2-this.padding),n.y=o.y=l/2,(s.x+h+this.arrowPadding>u+t.width||this.isNegative)&&(s.x=(e.x>t.width+t.x?t.width:e.x)+c-d-(h+this.arrowPadding)),s.x<u&&(s.x=(e.x<0?0:e.x)+c+d),s.x+h+this.arrowPadding>u+t.width&&(s.x=(e.x>t.width+t.x?t.width:e.x)+c-d-(h+this.arrowPadding)),s.y<=y&&(n.y-=y-s.y,o.y-=y-s.y,s.y=y),s.y+l>=y+t.height&&(n.y+=s.y+l-(y+t.height),o.y+=s.y+l-(y+t.height),s.y-=s.y+l-(y+t.height)),n.y+this.arrowPadding>l-this.ry&&(n.y=l-this.ry-this.arrowPadding,o.y=l),n.y-this.arrowPadding<this.ry&&(n.y=o.y=this.ry+this.arrowPadding),"Chart"===this.controlName&&((s.y+n.y<this.areaMargin+this.arrowPadding||t.y+t.height-(s.y+n.y)<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),i.i(a.b)(s.x,s.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,s=new a.o(e.x+c-this.padding-this.elementSize.width/2,e.y+p-this.elementSize.height-2*this.padding-d-this.arrowPadding),this.revert=!0,o.x=n.x=h/2,o.y=n.y=0,(s.y<y||this.isNegative)&&(s.y=(e.y<0?0:e.y)+d+p),s.y+this.arrowPadding+l>y+t.height&&(s.y=Math.min(e.y,y+t.height)+p-this.elementSize.height-2*this.padding-d-this.arrowPadding),o.x=h/2,s.x<u&&(o.x-=u-s.x,n.x-=u-s.x,s.x=u),s.x+h>t.width+u&&(n.x+=s.x+h-(t.width+u),o.x+=s.x+h-(t.width+u),s.x-=s.x+h-(t.width+u)),this.arrowPadding+n.x>h-this.rx&&(o.x=h-this.rx-this.arrowPadding,n.x=h-this.rx-this.arrowPadding),n.x-this.arrowPadding<this.rx&&(n.x=o.x=this.rx+this.arrowPadding)))):(s=new a.o(s.x+c-this.elementSize.width/2-this.padding,s.y+p-this.elementSize.height-2*this.padding-this.arrowPadding-d),n.x=o.x=h/2,(s.y<y||this.isNegative)&&(s.y=(e.y<0?0:e.y)+p+d),s.y+l+this.arrowPadding>y+t.height&&(s.y=Math.min(e.y,y+t.height)+p-this.elementSize.height-2*this.padding-this.arrowPadding-d),(s.x+h>u+t.width&&s.y<y||this.isNegative)&&(s.y=(e.y<0?0:e.y)+p+d),o.x=h/2,s.x<u&&(n.x-=u-s.x,o.x-=u-s.x,s.x=u),s.x+h>u+t.width&&(n.x+=s.x+h-(u+t.width),o.x+=s.x+h-(u+t.width),s.x-=s.x+h-(u+t.width)),s.x<u&&(n.x-=u-s.x,o.x-=u-s.x,s.x=u),n.x+this.arrowPadding>h-this.rx&&(n.x=h-this.rx-this.arrowPadding,o.x=h-this.rx-this.arrowPadding),n.x-this.arrowPadding<this.rx&&(n.x=o.x=this.rx+this.arrowPadding),"Chart"===this.controlName&&((t.x+t.width-(s.x+n.x)<this.areaMargin+this.arrowPadding||s.x+n.x<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),i.i(a.b)(s.x,s.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,this.revert=!0,s=new a.o(e.x+d+c,e.y+p-this.elementSize.height/2-this.padding),o.x=n.x=0,o.y=n.y=l/2,(s.x+this.arrowPadding+h>u+t.width||this.isNegative)&&(s.x=(e.x>t.width?t.width:e.x)+c-d-(this.arrowPadding+h)),s.x<u&&(s.x=(e.x<0?0:e.x)+d+c),s.y<=y&&(o.y-=y-s.y,n.y-=y-s.y,s.y=y),s.y+l>=t.height+y&&(n.y+=s.y+l-(t.height+y),o.y+=s.y+l-(t.height+y),s.y-=s.y+l-(t.height+y)),this.arrowPadding+n.y>l-this.ry&&(n.y=l-this.arrowPadding-this.ry,o.y=l),n.y-this.arrowPadding<this.ry&&(n.y=this.arrowPadding+this.ry,o.y=0)))),new a.e(s.x,s.y,h,l)},e.prototype.animateTooltipDiv=function(t,e){var i,n=this,o=parseFloat(t.style.left),a=parseFloat(t.style.top);new r.Animation({}).animate(t,{duration:this.duration,progress:function(r){i=r.timeStamp/r.duration,t.style.animation=null,"Chart"===n.controlName&&n.shared&&!n.enableRTL?(t.style.transition="transform 0.1s",t.style.transform="translate("+(o+i*(e.x-o))+"px,"+(a+i*(e.y-a))+"px)"):(t.style.left=o+i*(e.x-o)+"px",t.style.top=a+i*(e.y-a)+"px")},end:function(i){n.updateDiv(t,e.x,e.y),n.trigger("animationComplete",{tooltip:n})}})},e.prototype.updateDiv=function(t,e,i){"Chart"!==this.controlName||!this.shared||this.crosshair||this.enableRTL?(t.style.left=e+"px",t.style.top=i+"px"):t.style.transform="translate("+e+"px,"+i+"px)"},e.prototype.updateTemplateFn=function(){if(this.template)try{document.querySelectorAll(this.template).length?this.templateFn=i.i(r.compile)(document.querySelector(this.template).innerHTML.trim()):this.templateFn=i.i(r.compile)(this.template)}catch(t){this.templateFn=i.i(r.compile)(this.template)}},e.prototype.fadeOut=function(){var t=this,e=this.isCanvas&&!this.template?i.i(a.i)(this.element.id+"_svg"):i.i(a.i)(this.element.id),n=i.i(a.i)(this.element.id);if(e){var o=e.firstChild;if(o.nodeType!=Node.ELEMENT_NODE&&(o=e.firstElementChild),this.isCanvas&&!this.template&&(o=document.getElementById(this.element.id+"_group")?document.getElementById(this.element.id+"_group"):o),!o)return null;var s=parseFloat(o.getAttribute("opacity"));s=i.i(r.isNullOrUndefined)(s)?1:s,new r.Animation({}).animate(o,{duration:200,progress:function(e){t.progressAnimation(o,s,e.timeStamp/e.duration)},end:function(){t.fadeOuted=!0,t.endAnimation(o),n.style.transition=""}})}},e.prototype.progressAnimation=function(t,e,i){t.style.animation="",t.setAttribute("opacity",(e-i).toString())},e.prototype.endAnimation=function(t){t.setAttribute("opacity","0"),this.template&&(t.style.display="none"),this.trigger("animationComplete",{tooltip:this})},e.prototype.getPersistData=function(){var t=[];return this.addOnPersist(t)},e.prototype.getModuleName=function(){return"tooltip"},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.element.classList.remove("e-tooltip")},e.prototype.onPropertyChanged=function(t,e){this.blazorTemplate&&i.i(r.resetBlazorTemplate)(this.element.id+"parent_template_blazorTemplate"),this.isFirst=!1,this.render()},h([i.i(r.Property)(!1)],e.prototype,"enable",void 0),h([i.i(r.Property)(!1)],e.prototype,"shared",void 0),h([i.i(r.Property)(!1)],e.prototype,"crosshair",void 0),h([i.i(r.Property)(!0)],e.prototype,"enableShadow",void 0),h([i.i(r.Property)(null)],e.prototype,"fill",void 0),h([i.i(r.Property)("")],e.prototype,"header",void 0),h([i.i(r.Property)(.75)],e.prototype,"opacity",void 0),h([i.i(r.Complex)({size:"13px",fontWeight:"Normal",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"},l)],e.prototype,"textStyle",void 0),h([i.i(r.Property)(null)],e.prototype,"template",void 0),h([i.i(r.Property)(!0)],e.prototype,"enableAnimation",void 0),h([i.i(r.Property)(300)],e.prototype,"duration",void 0),h([i.i(r.Property)(!1)],e.prototype,"inverted",void 0),h([i.i(r.Property)(!1)],e.prototype,"isNegative",void 0),h([i.i(r.Complex)({color:"#cccccc",width:.5},d)],e.prototype,"border",void 0),h([i.i(r.Property)([])],e.prototype,"content",void 0),h([i.i(r.Property)(10)],e.prototype,"markerSize",void 0),h([i.i(r.Complex)({x:0,y:0},p)],e.prototype,"clipBounds",void 0),h([i.i(r.Property)([])],e.prototype,"palette",void 0),h([i.i(r.Property)([])],e.prototype,"shapes",void 0),h([i.i(r.Complex)({x:0,y:0},p)],e.prototype,"location",void 0),h([i.i(r.Property)(0)],e.prototype,"offset",void 0),h([i.i(r.Property)(4)],e.prototype,"rx",void 0),h([i.i(r.Property)(4)],e.prototype,"ry",void 0),h([i.i(r.Property)(5)],e.prototype,"marginX",void 0),h([i.i(r.Property)(5)],e.prototype,"marginY",void 0),h([i.i(r.Property)(7)],e.prototype,"arrowPadding",void 0),h([i.i(r.Property)(null)],e.prototype,"data",void 0),h([i.i(r.Property)("Material")],e.prototype,"theme",void 0),h([i.i(r.Complex)({x:0,y:0,width:0,height:0},c)],e.prototype,"areaBounds",void 0),h([i.i(r.Property)(null)],e.prototype,"availableSize",void 0),h([i.i(r.Property)()],e.prototype,"blazorTemplate",void 0),h([i.i(r.Property)(!1)],e.prototype,"isCanvas",void 0),h([i.i(r.Property)(!1)],e.prototype,"isTextWrap",void 0),h([i.i(r.Property)(null)],e.prototype,"tooltipPlacement",void 0),h([i.i(r.Property)(null)],e.prototype,"controlInstance",void 0),h([i.i(r.Property)("")],e.prototype,"controlName",void 0),h([i.i(r.Event)()],e.prototype,"tooltipRender",void 0),h([i.i(r.Event)()],e.prototype,"loaded",void 0),h([i.i(r.Event)()],e.prototype,"animationComplete",void 0),h([i.i(r.Property)(!1)],e.prototype,"enableRTL",void 0),e=h([r.NotifyPropertyChanges],e)}(r.Component)}])});
/*!
* filename: ej2-svg-base.umd.min.js
* version : 20.4.48
* version : 20.4.53
* 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:"#020202",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;case"Fluent":e={tooltipFill:"#FFFFFF",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE"};break;case"FluentDark":e={tooltipFill:"#252423",tooltipBoldLabel:"#F3F2F1",tooltipLightLabel:"#F3F2F1",tooltipHeaderLine:"#3B3A39"};break;default:e={tooltipFill:"#000816",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 y(o.clientWidth,o.clientHeight)}function o(t,e,i,r,o){return void 0===r&&(r=0),void 0===o&&(o=0),t>=i.x-r&&t<=i.x+i.width+r&&e>=i.y-o&&e<=i.y+i.height+o}function n(t,e,i,r,o,n,a,s,h,l,d){void 0===d&&(d="");var p="",c=i.x,u=i.y,y=i.x+i.width,g=i.y+i.height;return 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+" "+(g-e)+" Q "+y+" "+g+" "+(y-t)+" "+g),0!==o&&(p="RangeNavigator"===d?r.x-o>y/2?(p=p.concat(" L "+(r.x+o)+" "+g)).concat(" L "+(h+o)+" "+(g+o)+" L "+r.x+" "+g):(p=p.concat(" L "+r.x+" "+g)).concat(" L "+(h-o)+" "+(g+o)+" L "+(r.x-o)+" "+g):(p=p.concat(" L "+(r.x+o)+" "+g)).concat(" L "+h+" "+(g+o)+" L "+(r.x-o)+" "+g)),p=r.x-o>c?p.concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):0===o?p.concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):p.concat(" L "+c+" "+(g+e)+" z")):a?p=(p=(p=(p=(p=p.concat("M "+c+" "+(u+e)+" Q "+c+" "+u+" "+(c+t)+" "+u+" L "+(r.x-o)+" "+u)).concat(" L "+h+" "+r.y)).concat(" L "+(r.x+o)+" "+u)).concat(" 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?(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)),p="RangeNavigator"===d?p.concat(" L "+(y+o)+" "+(l-o)):p.concat(" L "+(y+o)+" "+l),p=(p=(p="RangeNavigator"===d?p.concat(" L "+y+" "+r.y):p.concat(" L "+y+" "+(r.y+o))).concat(" L "+y+" "+(g-e)+" Q "+y+" "+g+" "+(y-t)+" "+g)).concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z")):(p=p.concat("M "+(c+t)+" "+u+" Q "+c+" "+u+" "+c+" "+(u+e)+" L "+c+" "+(r.y-o)),p="RangeNavigator"===d?p.concat(" L "+(c-o)+" "+(l-o)):p.concat(" L "+(c-o)+" "+l),p=(p=(p="RangeNavigator"===d?p.concat(" L "+c+" "+r.y):p.concat(" L "+c+" "+(r.y+o))).concat(" 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")),p}function a(t){return document.getElementById(t)}function s(t){var i=a(t);i&&e.remove(i)}function h(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",h=i.width,l=i.height,d=t.x,p=t.y,c=t.x+-h/2,u=t.y+-l/2;switch(r){case"Circle":case"Bubble":s="Ellipse",e.merge(o,{rx:h/2,ry:l/2,cx:d,cy:p});break;case"Cross":a="M "+c+" "+p+" L "+(d+h/2)+" "+p+" M "+d+" "+(p+l/2)+" L "+d+" "+(p+-l/2),e.merge(o,{d:a});break;case"HorizontalLine":a="M "+c+" "+p+" L "+(d+h/2)+" "+p,e.merge(o,{d:a});break;case"VerticalLine":a="M "+d+" "+(p+l/2)+" L "+d+" "+(p+-l/2),e.merge(o,{d:a});break;case"Diamond":a="M "+c+" "+p+" L "+d+" "+(p+-l/2)+" L "+(d+h/2)+" "+p+" L "+d+" "+(p+l/2)+" L "+c+" "+p+" z",e.merge(o,{d:a});break;case"Rectangle":a="M "+c+" "+(p+-l/2)+" L "+(d+h/2)+" "+(p+-l/2)+" L "+(d+h/2)+" "+(p+l/2)+" L "+c+" "+(p+l/2)+" L "+c+" "+(p+-l/2)+" z",e.merge(o,{d:a});break;case"Triangle":a="M "+c+" "+(p+l/2)+" L "+d+" "+(p+-l/2)+" L "+(d+h/2)+" "+(p+l/2)+" L "+c+" "+(p+l/2)+" z",e.merge(o,{d:a});break;case"InvertedTriangle":a="M "+(d+h/2)+" "+(p-l/2)+" L "+d+" "+(p+l/2)+" L "+(d-h/2)+" "+(p-l/2)+" L "+(d+h/2)+" "+(p-l/2)+" z",e.merge(o,{d:a});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)),a=0===f?"M "+(d+y)+" "+(p+g)+" ":a.concat("L "+(d+y)+" "+(p+g)+" ");a=a.concat("Z"),e.merge(o,{d:a});break;case"Image":s="Image",e.merge(o,{href:n,height:l,width:h,x:c,y:u})}return{renderOption:o,functionName:s}}function d(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.style.cssText=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++)"style"===i[r]?e.style.cssText=t[i[r]]:e.setAttribute(i[r],t[i[r]]);return e},t.prototype.createCanvas=function(){return null},t}(),c=function(){function t(t){this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createCanvas=function(t){var e=document.createElement("canvas");return e.setAttribute("id",this.rootId+"_canvas"),this.ctx=e.getContext("2d"),this.canvasObj=e,this.setCanvasSize(t.width,t.height),this.canvasObj},t.prototype.setCanvasSize=function(t,i){var r=document.getElementById(this.rootId),o=e.isNullOrUndefined(r)?null:r.getBoundingClientRect();e.isNullOrUndefined(this.width)?this.canvasObj.setAttribute("width",t?t.toString():o.width.toString()):this.canvasObj.setAttribute("width",this.width.toString()),e.isNullOrUndefined(this.height)?this.canvasObj.setAttribute("height",i?i.toString():"450"):this.canvasObj.setAttribute("height",this.height.toString())},t.prototype.setAttributes=function(t){this.ctx.lineWidth=this.getOptionValue(t,"stroke-width");var i=this.getOptionValue(t,"stroke-dasharray");if(!e.isNullOrUndefined(i)){var r=i.split(",");this.ctx.setLineDash([parseInt(r[0],10),parseInt(r[1],10)])}this.ctx.strokeStyle=this.getOptionValue(t,"stroke")},t.prototype.drawLine=function(t){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.moveTo(t.x1,t.y1),this.ctx.lineTo(t.x2,t.y2),this.ctx.stroke(),this.ctx.restore()},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]),h=parseFloat(i[a+2]);switch(i[a]){case"M":t.innerR||t.cx||this.ctx.moveTo(s,h);break;case"L":t.innerR||this.ctx.lineTo(s,h);break;case"Q":var l=parseFloat(i[a+3]),d=parseFloat(i[a+4]);this.ctx.quadraticCurveTo(s,h,l,d),a+=2;break;case"C":var p=parseFloat(i[a+3]),c=parseFloat(i[a+4]),u=parseFloat(i[a+5]),y=parseFloat(i[a+6]);this.ctx.bezierCurveTo(s,h,p,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 h=this.getOptionValue(t,"font-size"),l=this.getOptionValue(t,"font-family"),d=this.getOptionValue(t,"font-style").toLowerCase()+" "+s+" "+h+" "+l,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),!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.drawCircularClipPath=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}(),u=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)}}(),y=function(){return function(t,e){this.width=t,this.height=e}}(),g=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}}(),x=function(){return function(t){this.id=t}}(),m=function(t){function e(e,i,r,o,n,a,s,h){void 0===a&&(a="");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=a,l.baseLine=s,l.labelRotation=h,l}return u(e,t),e}(x),v=function(t){function e(e,i,r,o,n,a,s){var h=t.call(this,e)||this;return h.opacity=n,h.fill=i,h.stroke=o,h["stroke-width"]=r,h["stroke-dasharray"]=a,h.d=s,h}return u(e,t),e}(x),b=function(){return function(t,e){this.x=t,this.y=e}}(),w=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)}}(),L=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 w(i,t),L([e.Property(null)],i.prototype,"size",void 0),L([e.Property("")],i.prototype,"color",void 0),L([e.Property("Segoe UI")],i.prototype,"fontFamily",void 0),L([e.Property("Normal")],i.prototype,"fontWeight",void 0),L([e.Property("Normal")],i.prototype,"fontStyle",void 0),L([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 w(i,t),L([e.Property("")],i.prototype,"color",void 0),L([e.Property(1)],i.prototype,"width",void 0),L([e.Property("")],i.prototype,"dashArray",void 0),i}(e.ChildProperty),T=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return w(i,t),L([e.Property(0)],i.prototype,"x",void 0),L([e.Property(0)],i.prototype,"y",void 0),L([e.Property(0)],i.prototype,"width",void 0),L([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 w(i,t),L([e.Property(0)],i.prototype,"x",void 0),L([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 w(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.areaMargin=10,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){this.enableRTL&&this.element.setAttribute("dir","ltr");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,n=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),s=a(this.element.id+"_group"),l=(this.enableRTL?this.elementSize.width-i/2:2*this.marginX+i/2)+(e?this.arrowPadding:0),d=0,p=this.shapes;d<p.length;d++){var c=p[d];if("None"!==c){if(r=new v(this.element.id+"_Trackball_"+o,this.palette[o],1,"#cccccc",1,null),this.markerPoint[o]){var u=0;this.header.indexOf("<br")>-1&&(u=this.header.split(/<br.*?>/g).length+o),n.appendChild(h(new b(l,this.markerPoint[o]-this.padding+(t?this.arrowPadding:u)),c,new y(i,i),"",r,null))}o++}}s.appendChild(n)},l.prototype.renderTooltipElement=function(t,i){var o,s=a(this.element.id),h=new b(0,0),l=new b(0,0),d=a(this.element.id+"_svg"),p=a(this.element.id+"_group"),c=a(this.element.id+"_path"),u=!1,y=!1,x=!1,m=0,v=0;if(""!==this.header&&(this.elementSize.height+=this.marginY),this.content.length>1?(o=this.sharedTooltipLocation(t,this.location.x,this.location.y),u=!0):(o=this.tooltipLocation(t,i,h,l),this.inverted?m=(y=o.x<i.x+this.clipBounds.x)?0:this.arrowPadding:(x=!(u=o.y<i.y+this.clipBounds.y),v=u?0:this.arrowPadding)),""!==this.header){var w=2,L=0,S=this.isWrap?this.wrappedText:this.header;if(this.isWrap&&"string"==typeof S&&(S.indexOf("<")>-1||S.indexOf(">")>-1)){w=S.split("<br>").length}this.header.indexOf("<br")>-1&&(L=5*(this.header.split(/<br.*?>/g).length-1));var P=r(this.isWrap?this.wrappedText:this.header,this.textStyle).height+this.marginY*w+(x?this.arrowPadding:0)+(this.isWrap?5:L),T="M "+(3*this.marginX+(y||u||x?0:this.arrowPadding))+" "+P+"L "+(o.width+(y||u||x?0:this.arrowPadding)-2*this.marginX)+" "+P,O=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:.8,stroke:this.themeStyle.tooltipHeaderLine,d:T});p.appendChild(O)}var A=this.border.width/2,C=new g(A+m,A+v,o.width-A,o.height-A);if(p.setAttribute("opacity","1"),!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(s,o.x,o.y):this.animateTooltipDiv(s,o),d.setAttribute("height",(o.height+this.border.width+(this.inverted?0:this.arrowPadding)+5).toString()),d.setAttribute("width",(o.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,x=this.tooltipPlacement.indexOf("Bottom")>-1,y=this.tooltipPlacement.indexOf("Left")>-1),c.setAttribute("d",n(this.rx,this.ry,C,h,this.arrowPadding,u,x,y,l.x,l.y,this.controlName)),this.enableShadow&&"Bootstrap4"!==this.theme){var k=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(#"+k+")");var F='<filter id="'+k+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';F+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',F+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var B=this.renderer.createDefs();B.setAttribute("id",this.element.id+"SVG_tooltip_definition"),p.appendChild(B),B.innerHTML=F}var E="Fluent"===this.theme?"#FFFFFF":"FluentDark"===this.theme?"#323130":this.border.color;return c.setAttribute("stroke",E),e.isNullOrUndefined(this.border.dashArray)||c.setAttribute("stroke-dasharray",this.border.dashArray),this.changeText(new b(m,v),x,!y&&!u&&!x),this.revert&&(this.inverted=!this.inverted,this.revert=!1),new f(x,!y&&!u&&!x)},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,n,h,l,p=0,c=0,u=0,g=e.extend({},this.textStyle,null,!0).properties,f=a(this.element.id+"_group"),x="";this.findFormattedText(),this.isWrap=!1;var v="rtl"===document.body.getAttribute("dir")&&!this.enableRTL?"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,L=r(this.formattedText[0],g).width+2*this.marginX+this.arrowPadding,S=this.location.x-L<this.location.x,P=this.areaBounds.x+this.areaBounds.width<this.location.x+L,T=""!==b?this.marginY:0,O=!0,A=!0;this.markerPoint=[];var C,k=this.shapes.length>0?10:0,F=this.shapes.length>0?5:0,B="Normal",E=this.themeStyle.tooltipLightLabel,N=22/parseFloat("13px")*parseFloat(g.size),z=[];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,""),R=d(_,g,null,f),I=1===this.formattedText.length&&this.formattedText[0].indexOf(" : <b>")>-1,M=""!==this.header,j=M&&w?16:13,D=0,U=this.formattedText.length;D<U;D++)if(n=this.formattedText[D].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g),0===D&&!I&&this.isTextWrap&&(this.leftSpace<L||S)&&(this.rightSpace<L||P)&&(C=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/j:this.rightSpace/j),n=(""!==b?b:this.formattedText[D]).match(new RegExp(".{1,"+C+"}","g")),this.wrappedText=w?"<b>"+n.join("<br>")+"</b>":n.join("<br>"),this.isWrap=n.length>1),""!==n[0]){0===D&&""!==b||this.markerPoint.push((""!==b?this.marginY:0)+_.y+p);for(var V=0,W=n.length;V<W;V++){i=n[V].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,this.enableRTL?"<br>‎: <br>":"<br>‎:<br>").split("<br>"),this.enableRTL&&i.length>0&&n[V].match(/:/g)&&(i[0]=i[0].trim(),i.reverse()),u=0,A=!0,p+=N;for(var G=0,H=i.length;G<H;G++)h=i[G],this.enableRTL&&""!==h&&this.isRTLText(h)&&(h=h.concat("‎")),/\S/.test(h)||""===h||(h=" "),(!A&&" "===h||""!==h.replace(/<b>/g,"").replace(/<\/b>/g,"").trim())&&(u+=" "!==h?4:0,A&&!O?(this.header.indexOf("<br")>-1&&0!==D&&(T+=this.header.split(/<br.*?>/g).length),l={x:2*this.marginX+(k+F),dy:N+(A?T:0),fill:""},T=null):l=O&&A?{x:""===b?2*this.marginX+(k+F):2*this.marginX+(this.isWrap?k+F:0)}:{},A=!1,o=this.renderer.createTSpan(l,""),R.appendChild(o),h.indexOf("<b>")>-1||w&&0===G&&0===D&&(M||this.isWrap)?(B="bold",E=this.themeStyle.tooltipBoldLabel,x="font-weight:"+B,g.fontWeight=B,o.setAttribute("fill",this.textStyle.color||E)):(x="bold"===B?"font-weight:"+B:"",g.fontWeight=B,o.setAttribute("fill",this.textStyle.color||E)),(h.indexOf("</b>")>-1||w&&G===H-1&&0===D&&(M||this.isWrap))&&(B="Normal",E=this.themeStyle.tooltipLightLabel),o.textContent=h=this.getTooltipTextContent(h),u+=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",O=!1);u-=4,c=Math.max(c,u),z.push(u)}}this.elementSize=new y(c+(c>0?2*this.marginX:0),p),this.elementSize.width+=k+F;var Q=R.childNodes[0];if(""!==b&&Q&&!this.isWrap){g.fontWeight="bold";var X=(this.elementSize.width+2*this.padding)/2-r(b,g).width/2;Q.setAttribute("x",X.toString())}this.renderContentRTL(R,M,k+F,z)},l.prototype.renderContentRTL=function(t,i,r,o){if(this.enableRTL)for(var n=void 0,a=i?1:0,s=0;s<t.childNodes.length;s++)n=t.childNodes[s],i&&!(s>0)||e.isNullOrUndefined(n.getAttribute("x"))||(n.setAttribute("x",(this.elementSize.width-(r+o[a])).toString()),a++)},l.prototype.getTooltipTextContent=function(t){var i=t.match(/<[a-zA-Z\/](.|\n)*?>/g);if(e.isNullOrUndefined(i))return t;for(var r=this.isRTLText(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.isRTLText=function(t){return/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t)},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 n=o.firstElementChild;if(n&&e.remove(n),r.cancel)e.remove(a(this.element.id+"_tooltip"));else{for(var s=e.createElement("div",{id:this.element.id+"parent_template"}),h=this.templateFn(this.data,this.controlInstance,s.id,s.id+"_blazorTemplate","");h&&h.length>0;)e.isBlazor()||1===h.length?(s.appendChild(h[0]),h=null):s.appendChild(h[0]);o.appendChild(s);var l=this.isCanvas?s:this.element,d=l.getBoundingClientRect();this.padding=0,this.elementSize=new y(d.width,d.height);var p=this.shared?this.sharedTooltipLocation(t,this.location.x,this.location.y):this.tooltipLocation(t,i,new b(0,0),new b(0,0));if(!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(l,p.x,p.y):this.animateTooltipDiv(this.element,p),this.blazorTemplate){var c=function(){var e=a(u.element.id).getBoundingClientRect();u.elementSize=new y(e.width,e.height);var r=u.tooltipLocation(t,i,new b(0,0),new b(0,0));u.updateDiv(a(u.element.id),r.x,r.y)},u=this;c.bind(u,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 g(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.x<t.x&&(n.x=t.x),n},l.prototype.getCurrentPosition=function(t,e,i,r){var o=this.tooltipPlacement,n=this.clipBounds.x,a=this.clipBounds.y,s=this.offset,h=this.elementSize.width+2*this.marginX,l=this.elementSize.height+2*this.marginY,d=new b(e.x,e.y);return"Top"===o||"Bottom"===o?(d=new b(d.x+n-this.elementSize.width/2-this.padding,d.y+a-this.elementSize.height-2*this.padding-this.arrowPadding-s),i.x=r.x=h/2,"Bottom"===o&&(d.y=e.y+a+s),t.x+t.width<d.x+h?(d.x=t.width>h?t.x+t.width-h+6:t.x,i.x=r.x=t.width>h?t.x+e.x-d.x:e.x):t.x>d.x&&(d.x=t.x,i.x=r.x=e.x)):(d=new b(d.x+n+s,d.y+a-this.elementSize.height/2-this.padding),i.y=r.y=l/2,"Left"===o&&(d.x=e.x+n-s-(h+this.arrowPadding)),t.y+t.height<d.y+l?(d.y=t.height>l?t.y+t.height-l+6:t.y,i.y=r.y=t.height>l?t.y+e.y-d.y:e.y):t.y>d.y&&(d.y=t.y,i.y=r.y=e.y)),new g(d.x,d.y,h,l)},l.prototype.tooltipLocation=function(t,i,r,n){if(!e.isNullOrUndefined(this.tooltipPlacement)){return this.getCurrentPosition(t,i,r,n)}var a=new b(i.x,i.y),s=this.elementSize.width+2*this.marginX,h=this.elementSize.height+2*this.marginY,l=this.offset,d=this.clipBounds.x,p=this.clipBounds.y,c=t.x,u=t.y;return this.outOfBounds=!1,this.inverted?(a=new b(a.x+d+l,a.y+p-this.elementSize.height/2-this.padding),r.y=n.y=h/2,(a.x+s+this.arrowPadding>c+t.width||this.isNegative)&&(a.x=(i.x>t.width+t.x?t.width:i.x)+d-l-(s+this.arrowPadding)),a.x<c&&(a.x=(i.x<0?0:i.x)+d+l),a.y<=u&&(r.y-=u-a.y,n.y-=u-a.y,a.y=u),a.y+h>=u+t.height&&(r.y+=a.y+h-(u+t.height),n.y+=a.y+h-(u+t.height),a.y-=a.y+h-(u+t.height)),r.y+this.arrowPadding>h-this.ry&&(r.y=h-this.ry-this.arrowPadding,n.y=h),r.y-this.arrowPadding<this.ry&&(r.y=n.y=this.ry+this.arrowPadding),"Chart"===this.controlName&&((a.y+r.y<this.areaMargin+this.arrowPadding||t.y+t.height-(a.y+r.y)<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),o(a.x,a.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,a=new b(i.x+d-this.padding-this.elementSize.width/2,i.y+p-this.elementSize.height-2*this.padding-l-this.arrowPadding),this.revert=!0,n.x=r.x=s/2,n.y=r.y=0,(a.y<u||this.isNegative)&&(a.y=(i.y<0?0:i.y)+l+p),a.y+this.arrowPadding+h>u+t.height&&(a.y=Math.min(i.y,u+t.height)+p-this.elementSize.height-2*this.padding-l-this.arrowPadding),n.x=s/2,a.x<c&&(n.x-=c-a.x,r.x-=c-a.x,a.x=c),a.x+s>t.width+c&&(r.x+=a.x+s-(t.width+c),n.x+=a.x+s-(t.width+c),a.x-=a.x+s-(t.width+c)),this.arrowPadding+r.x>s-this.rx&&(n.x=s-this.rx-this.arrowPadding,r.x=s-this.rx-this.arrowPadding),r.x-this.arrowPadding<this.rx&&(r.x=n.x=this.rx+this.arrowPadding)))):(a=new b(a.x+d-this.elementSize.width/2-this.padding,a.y+p-this.elementSize.height-2*this.padding-this.arrowPadding-l),r.x=n.x=s/2,(a.y<u||this.isNegative)&&(a.y=(i.y<0?0:i.y)+p+l),a.y+h+this.arrowPadding>u+t.height&&(a.y=Math.min(i.y,u+t.height)+p-this.elementSize.height-2*this.padding-this.arrowPadding-l),n.x=s/2,a.x<c&&(r.x-=c-a.x,n.x-=c-a.x,a.x=c),a.x+s>c+t.width&&(r.x+=a.x+s-(c+t.width),n.x+=a.x+s-(c+t.width),a.x-=a.x+s-(c+t.width)),r.x+this.arrowPadding>s-this.rx&&(r.x=s-this.rx-this.arrowPadding,n.x=s-this.rx-this.arrowPadding),r.x-this.arrowPadding<this.rx&&(r.x=n.x=this.rx+this.arrowPadding),"Chart"===this.controlName&&((t.x+t.width-(a.x+r.x)<this.areaMargin+this.arrowPadding||a.x+r.x<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),o(a.x,a.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,this.revert=!0,a=new b(i.x+l+d,i.y+p-this.elementSize.height/2-this.padding),n.x=r.x=0,n.y=r.y=h/2,(a.x+this.arrowPadding+s>c+t.width||this.isNegative)&&(a.x=(i.x>t.width?t.width:i.x)+d-l-(this.arrowPadding+s)),a.x<c&&(a.x=(i.x<0?0:i.x)+l+d),a.y<=u&&(n.y-=u-a.y,r.y-=u-a.y,a.y=u),a.y+h>=t.height+u&&(r.y+=a.y+h-(t.height+u),n.y+=a.y+h-(t.height+u),a.y-=a.y+h-(t.height+u)),this.arrowPadding+r.y>h-this.ry&&(r.y=h-this.arrowPadding-this.ry,n.y=h),r.y-this.arrowPadding<this.ry&&(r.y=this.arrowPadding+this.ry,n.y=0)))),new g(a.x,a.y,s,h)},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,"Chart"===o.controlName&&o.shared&&!o.enableRTL?(t.style.transition="transform 0.1s",t.style.transform="translate("+(n+r*(i.x-n))+"px,"+(a+r*(i.y-a))+"px)"):(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){"Chart"!==this.controlName||!this.shared||this.crosshair||this.enableRTL?(t.style.left=e+"px",t.style.top=i+"px"):t.style.transform="translate("+e+"px,"+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()):this.templateFn=e.compile(this.template)}catch(t){this.templateFn=e.compile(this.template)}},l.prototype.fadeOut=function(){var t=this,i=this.isCanvas&&!this.template?a(this.element.id+"_svg"):a(this.element.id),r=a(this.element.id);if(i){var o=i.firstChild;if(o.nodeType!=Node.ELEMENT_NODE&&(o=i.firstElementChild),this.isCanvas&&!this.template&&(o=document.getElementById(this.element.id+"_group")?document.getElementById(this.element.id+"_group"):o),!o)return null;var n=parseFloat(o.getAttribute("opacity"));n=e.isNullOrUndefined(n)?1:n,new e.Animation({}).animate(o,{duration:200,progress:function(e){t.progressAnimation(o,n,e.timeStamp/e.duration)},end:function(){t.fadeOuted=!0,t.endAnimation(o),r.style.transition=""}})}},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()},L([e.Property(!1)],l.prototype,"enable",void 0),L([e.Property(!1)],l.prototype,"shared",void 0),L([e.Property(!1)],l.prototype,"crosshair",void 0),L([e.Property(!0)],l.prototype,"enableShadow",void 0),L([e.Property(null)],l.prototype,"fill",void 0),L([e.Property("")],l.prototype,"header",void 0),L([e.Property(.75)],l.prototype,"opacity",void 0),L([e.Complex({size:"13px",fontWeight:"Normal",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"},S)],l.prototype,"textStyle",void 0),L([e.Property(null)],l.prototype,"template",void 0),L([e.Property(!0)],l.prototype,"enableAnimation",void 0),L([e.Property(300)],l.prototype,"duration",void 0),L([e.Property(!1)],l.prototype,"inverted",void 0),L([e.Property(!1)],l.prototype,"isNegative",void 0),L([e.Complex({color:"#cccccc",width:.5},P)],l.prototype,"border",void 0),L([e.Property([])],l.prototype,"content",void 0),L([e.Property(10)],l.prototype,"markerSize",void 0),L([e.Complex({x:0,y:0},O)],l.prototype,"clipBounds",void 0),L([e.Property([])],l.prototype,"palette",void 0),L([e.Property([])],l.prototype,"shapes",void 0),L([e.Complex({x:0,y:0},O)],l.prototype,"location",void 0),L([e.Property(0)],l.prototype,"offset",void 0),L([e.Property(4)],l.prototype,"rx",void 0),L([e.Property(4)],l.prototype,"ry",void 0),L([e.Property(5)],l.prototype,"marginX",void 0),L([e.Property(5)],l.prototype,"marginY",void 0),L([e.Property(7)],l.prototype,"arrowPadding",void 0),L([e.Property(null)],l.prototype,"data",void 0),L([e.Property("Material")],l.prototype,"theme",void 0),L([e.Complex({x:0,y:0,width:0,height:0},T)],l.prototype,"areaBounds",void 0),L([e.Property(null)],l.prototype,"availableSize",void 0),L([e.Property()],l.prototype,"blazorTemplate",void 0),L([e.Property(!1)],l.prototype,"isCanvas",void 0),L([e.Property(!1)],l.prototype,"isTextWrap",void 0),L([e.Property(null)],l.prototype,"tooltipPlacement",void 0),L([e.Property(null)],l.prototype,"controlInstance",void 0),L([e.Property("")],l.prototype,"controlName",void 0),L([e.Event()],l.prototype,"tooltipRender",void 0),L([e.Event()],l.prototype,"loaded",void 0),L([e.Event()],l.prototype,"animationComplete",void 0),L([e.Property(!1)],l.prototype,"enableRTL",void 0),l=L([e.NotifyPropertyChanges],l)}(e.Component);t.TextStyle=S,t.TooltipBorder=P,t.AreaBounds=T,t.ToolLocation=O,t.Tooltip=A,t.getTooltipThemeColor=i,t.measureText=r,t.withInAreaBounds=o,t.findDirection=n,t.Size=y,t.Rect=g,t.Side=f,t.CustomizeOption=x,t.TextOption=m,t.getElement=a,t.removeElement=s,t.drawSymbol=h,t.calculateShapes=l,t.PathOption=v,t.textElement=d,t.TooltipLocation=b,t.SvgRenderer=p,t.CanvasRenderer=c,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-base"],e):e(t.ej={},t.ej2Base)}(this,function(t,e){"use strict";function i(t){var e;switch(t){case"Highcontrast":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:"#020202",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;case"Fluent":e={tooltipFill:"#FFFFFF",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE"};break;case"FluentDark":e={tooltipFill:"#252423",tooltipBoldLabel:"#F3F2F1",tooltipLightLabel:"#F3F2F1",tooltipHeaderLine:"#3B3A39"};break;default:e={tooltipFill:"#000816",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 y(o.clientWidth,o.clientHeight)}function o(t,e,i,r,o){return void 0===r&&(r=0),void 0===o&&(o=0),t>=i.x-r&&t<=i.x+i.width+r&&e>=i.y-o&&e<=i.y+i.height+o}function n(t,e,i,r,o,n,a,s,h,l,d){void 0===d&&(d="");var p="",c=i.x,u=i.y,y=i.x+i.width,g=i.y+i.height;return 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+" "+(g-e)+" Q "+y+" "+g+" "+(y-t)+" "+g),0!==o&&(p="RangeNavigator"===d?r.x-o>y/2?(p=p.concat(" L "+(r.x+o)+" "+g)).concat(" L "+(h+o)+" "+(g+o)+" L "+r.x+" "+g):(p=p.concat(" L "+r.x+" "+g)).concat(" L "+(h-o)+" "+(g+o)+" L "+(r.x-o)+" "+g):(p=p.concat(" L "+(r.x+o)+" "+g)).concat(" L "+h+" "+(g+o)+" L "+(r.x-o)+" "+g)),p=r.x-o>c?p.concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):0===o?p.concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):p.concat(" L "+c+" "+(g+e)+" z")):a?p=(p=(p=(p=(p=p.concat("M "+c+" "+(u+e)+" Q "+c+" "+u+" "+(c+t)+" "+u+" L "+(r.x-o)+" "+u)).concat(" L "+h+" "+r.y)).concat(" L "+(r.x+o)+" "+u)).concat(" 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?(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)),p="RangeNavigator"===d?p.concat(" L "+(y+o)+" "+(l-o)):p.concat(" L "+(y+o)+" "+l),p=(p=(p="RangeNavigator"===d?p.concat(" L "+y+" "+r.y):p.concat(" L "+y+" "+(r.y+o))).concat(" L "+y+" "+(g-e)+" Q "+y+" "+g+" "+(y-t)+" "+g)).concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z")):(p=p.concat("M "+(c+t)+" "+u+" Q "+c+" "+u+" "+c+" "+(u+e)+" L "+c+" "+(r.y-o)),p="RangeNavigator"===d?p.concat(" L "+(c-o)+" "+(l-o)):p.concat(" L "+(c-o)+" "+l),p=(p=(p="RangeNavigator"===d?p.concat(" L "+c+" "+r.y):p.concat(" L "+c+" "+(r.y+o))).concat(" 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")),p}function a(t){return document.getElementById(t)}function s(t){var i=a(t);i&&e.remove(i)}function h(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",h=i.width,l=i.height,d=t.x,p=t.y,c=t.x+-h/2,u=t.y+-l/2;switch(r){case"Circle":case"Bubble":s="Ellipse",e.merge(o,{rx:h/2,ry:l/2,cx:d,cy:p});break;case"Cross":a="M "+c+" "+p+" L "+(d+h/2)+" "+p+" M "+d+" "+(p+l/2)+" L "+d+" "+(p+-l/2),e.merge(o,{d:a});break;case"HorizontalLine":a="M "+c+" "+p+" L "+(d+h/2)+" "+p,e.merge(o,{d:a});break;case"VerticalLine":a="M "+d+" "+(p+l/2)+" L "+d+" "+(p+-l/2),e.merge(o,{d:a});break;case"Diamond":a="M "+c+" "+p+" L "+d+" "+(p+-l/2)+" L "+(d+h/2)+" "+p+" L "+d+" "+(p+l/2)+" L "+c+" "+p+" z",e.merge(o,{d:a});break;case"Rectangle":a="M "+c+" "+(p+-l/2)+" L "+(d+h/2)+" "+(p+-l/2)+" L "+(d+h/2)+" "+(p+l/2)+" L "+c+" "+(p+l/2)+" L "+c+" "+(p+-l/2)+" z",e.merge(o,{d:a});break;case"Triangle":a="M "+c+" "+(p+l/2)+" L "+d+" "+(p+-l/2)+" L "+(d+h/2)+" "+(p+l/2)+" L "+c+" "+(p+l/2)+" z",e.merge(o,{d:a});break;case"InvertedTriangle":a="M "+(d+h/2)+" "+(p-l/2)+" L "+d+" "+(p+l/2)+" L "+(d-h/2)+" "+(p-l/2)+" L "+(d+h/2)+" "+(p-l/2)+" z",e.merge(o,{d:a});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)),a=0===f?"M "+(d+y)+" "+(p+g)+" ":a.concat("L "+(d+y)+" "+(p+g)+" ");a=a.concat("Z"),e.merge(o,{d:a});break;case"Image":s="Image",e.merge(o,{href:n,height:l,width:h,x:c,y:u})}return{renderOption:o,functionName:s}}function d(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.style.cssText=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++)"style"===i[r]?e.style.cssText=t[i[r]]:e.setAttribute(i[r],t[i[r]]);return e},t.prototype.createCanvas=function(){return null},t}(),c=function(){function t(t){this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createCanvas=function(t){var e=document.createElement("canvas");return e.setAttribute("id",this.rootId+"_canvas"),this.ctx=e.getContext("2d"),this.canvasObj=e,this.setCanvasSize(t.width,t.height),this.canvasObj},t.prototype.setCanvasSize=function(t,i){var r=document.getElementById(this.rootId),o=e.isNullOrUndefined(r)?null:r.getBoundingClientRect();e.isNullOrUndefined(this.width)?this.canvasObj.setAttribute("width",t?t.toString():o.width.toString()):this.canvasObj.setAttribute("width",this.width.toString()),e.isNullOrUndefined(this.height)?this.canvasObj.setAttribute("height",i?i.toString():"450"):this.canvasObj.setAttribute("height",this.height.toString())},t.prototype.setAttributes=function(t){this.ctx.lineWidth=this.getOptionValue(t,"stroke-width");var i=this.getOptionValue(t,"stroke-dasharray");if(!e.isNullOrUndefined(i)){var r=i.split(",");this.ctx.setLineDash([parseInt(r[0],10),parseInt(r[1],10)])}this.ctx.strokeStyle=this.getOptionValue(t,"stroke")},t.prototype.drawLine=function(t){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.moveTo(t.x1,t.y1),this.ctx.lineTo(t.x2,t.y2),this.ctx.stroke(),this.ctx.restore()},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]),h=parseFloat(i[a+2]);switch(i[a]){case"M":t.innerR||t.cx||this.ctx.moveTo(s,h);break;case"L":t.innerR||this.ctx.lineTo(s,h);break;case"Q":var l=parseFloat(i[a+3]),d=parseFloat(i[a+4]);this.ctx.quadraticCurveTo(s,h,l,d),a+=2;break;case"C":var p=parseFloat(i[a+3]),c=parseFloat(i[a+4]),u=parseFloat(i[a+5]),y=parseFloat(i[a+6]);this.ctx.bezierCurveTo(s,h,p,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 h=this.getOptionValue(t,"font-size"),l=this.getOptionValue(t,"font-family"),d=this.getOptionValue(t,"font-style").toLowerCase()+" "+s+" "+h+" "+l,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),!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.drawCircularClipPath=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}(),u=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)}}(),y=function(){return function(t,e){this.width=t,this.height=e}}(),g=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}}(),x=function(){return function(t){this.id=t}}(),m=function(t){function e(e,i,r,o,n,a,s,h){void 0===a&&(a="");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=a,l.baseLine=s,l.labelRotation=h,l}return u(e,t),e}(x),v=function(t){function e(e,i,r,o,n,a,s){var h=t.call(this,e)||this;return h.opacity=n,h.fill=i,h.stroke=o,h["stroke-width"]=r,h["stroke-dasharray"]=a,h.d=s,h}return u(e,t),e}(x),b=function(){return function(t,e){this.x=t,this.y=e}}(),w=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)}}(),L=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 w(i,t),L([e.Property(null)],i.prototype,"size",void 0),L([e.Property("")],i.prototype,"color",void 0),L([e.Property("Segoe UI")],i.prototype,"fontFamily",void 0),L([e.Property("Normal")],i.prototype,"fontWeight",void 0),L([e.Property("Normal")],i.prototype,"fontStyle",void 0),L([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 w(i,t),L([e.Property("")],i.prototype,"color",void 0),L([e.Property(1)],i.prototype,"width",void 0),L([e.Property("")],i.prototype,"dashArray",void 0),i}(e.ChildProperty),T=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return w(i,t),L([e.Property(0)],i.prototype,"x",void 0),L([e.Property(0)],i.prototype,"y",void 0),L([e.Property(0)],i.prototype,"width",void 0),L([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 w(i,t),L([e.Property(0)],i.prototype,"x",void 0),L([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 w(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.areaMargin=10,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){this.enableRTL&&this.element.setAttribute("dir","ltr");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,n=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),s=a(this.element.id+"_group"),l=(this.enableRTL?this.elementSize.width-i/2:2*this.marginX+i/2)+(e?this.arrowPadding:0),d=0,p=this.shapes;d<p.length;d++){var c=p[d];if("None"!==c){if(r=new v(this.element.id+"_Trackball_"+o,this.palette[o],1,"#cccccc",1,null),this.markerPoint[o]){var u=0;this.header.indexOf("<br")>-1&&(u=this.header.split(/<br.*?>/g).length+o),n.appendChild(h(new b(l,this.markerPoint[o]-this.padding+(t?this.arrowPadding:u)),c,new y(i,i),"",r,null))}o++}}s.appendChild(n)},l.prototype.renderTooltipElement=function(t,i){var o,s=a(this.element.id),h=new b(0,0),l=new b(0,0),d=a(this.element.id+"_svg"),p=a(this.element.id+"_group"),c=a(this.element.id+"_path"),u=!1,y=!1,x=!1,m=0,v=0;if(""!==this.header&&(this.elementSize.height+=this.marginY),this.content.length>1?(o=this.sharedTooltipLocation(t,this.location.x,this.location.y),u=!0):(o=this.tooltipLocation(t,i,h,l),this.inverted?m=(y=o.x<i.x+this.clipBounds.x)?0:this.arrowPadding:(x=!(u=o.y<i.y+this.clipBounds.y),v=u?0:this.arrowPadding)),""!==this.header){var w=2,L=0,S=this.isWrap?this.wrappedText:this.header;if(this.isWrap&&"string"==typeof S&&(S.indexOf("<")>-1||S.indexOf(">")>-1)){w=S.split("<br>").length}this.header.indexOf("<br")>-1&&(L=5*(this.header.split(/<br.*?>/g).length-1));var P=r(this.isWrap?this.wrappedText:this.header,this.textStyle).height+this.marginY*w+(x?this.arrowPadding:0)+(this.isWrap?5:L),T="M "+(3*this.marginX+(y||u||x?0:this.arrowPadding))+" "+P+"L "+(o.width+(y||u||x?0:this.arrowPadding)-2*this.marginX)+" "+P,O=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:.8,stroke:this.themeStyle.tooltipHeaderLine,d:T});p.appendChild(O)}var A=this.border.width/2,C=new g(A+m,A+v,o.width-A,o.height-A);if(p.setAttribute("opacity","1"),!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(s,o.x,o.y):this.animateTooltipDiv(s,o),d.setAttribute("height",(o.height+this.border.width+(this.inverted?0:this.arrowPadding)+5).toString()),d.setAttribute("width",(o.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,x=this.tooltipPlacement.indexOf("Bottom")>-1,y=this.tooltipPlacement.indexOf("Left")>-1),c.setAttribute("d",n(this.rx,this.ry,C,h,this.arrowPadding,u,x,y,l.x,l.y,this.controlName)),this.enableShadow&&"Bootstrap4"!==this.theme){var k=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(#"+k+")");var F='<filter id="'+k+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';F+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',F+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var B=this.renderer.createDefs();B.setAttribute("id",this.element.id+"SVG_tooltip_definition"),p.appendChild(B),B.innerHTML=F}var E="Fluent"===this.theme?"#FFFFFF":"FluentDark"===this.theme?"#323130":this.border.color;return c.setAttribute("stroke",E),e.isNullOrUndefined(this.border.dashArray)||c.setAttribute("stroke-dasharray",this.border.dashArray),this.changeText(new b(m,v),x,!y&&!u&&!x),this.revert&&(this.inverted=!this.inverted,this.revert=!1),new f(x,!y&&!u&&!x)},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,n,h,l,p=0,c=0,u=0,g=e.extend({},this.textStyle,null,!0).properties,f=a(this.element.id+"_group"),x="";this.findFormattedText(),this.isWrap=!1;var v="rtl"===document.body.getAttribute("dir")&&!this.enableRTL?"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,L=r(this.formattedText[0],g).width+2*this.marginX+this.arrowPadding,S=this.location.x-L<this.location.x,P=this.areaBounds.x+this.areaBounds.width<this.location.x+L,T=""!==b?this.marginY:0,O=!0,A=!0;this.markerPoint=[];var C,k=this.shapes.length>0?10:0,F=this.shapes.length>0?5:0,B="Normal",E=this.themeStyle.tooltipLightLabel,N=22/parseFloat("13px")*parseFloat(g.size),z=[];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,""),R=d(_,g,null,f),I=1===this.formattedText.length&&this.formattedText[0].indexOf(" : <b>")>-1,M=""!==this.header,j=M&&w?16:13,D=0,U=this.formattedText.length;D<U;D++)if(n=this.formattedText[D].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g),0===D&&!I&&this.isTextWrap&&(this.leftSpace<L||S)&&(this.rightSpace<L||P)&&(C=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/j:this.rightSpace/j),n=(""!==b?b:this.formattedText[D]).match(new RegExp(".{1,"+C+"}","g")),this.wrappedText=w?"<b>"+n.join("<br>")+"</b>":n.join("<br>"),this.isWrap=n.length>1),""!==n[0]){0===D&&""!==b||this.markerPoint.push((""!==b?this.marginY:0)+_.y+p);for(var V=0,W=n.length;V<W;V++){i=n[V].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,this.enableRTL?"<br>‎: <br>":"<br>‎:<br>").split("<br>"),this.enableRTL&&i.length>0&&n[V].match(/:/g)&&(i[0]=i[0].trim(),i.reverse()),u=0,A=!0,p+=N;for(var G=0,H=i.length;G<H;G++)h=i[G],this.enableRTL&&""!==h&&this.isRTLText(h)&&(h=h.concat("‎")),/\S/.test(h)||""===h||(h=" "),(!A&&" "===h||""!==h.replace(/<b>/g,"").replace(/<\/b>/g,"").trim())&&(u+=" "!==h?4:0,A&&!O?(this.header.indexOf("<br")>-1&&0!==D&&(T+=this.header.split(/<br.*?>/g).length),l={x:2*this.marginX+(k+F),dy:N+(A?T:0),fill:""},T=null):l=O&&A?{x:""===b?2*this.marginX+(k+F):2*this.marginX+(this.isWrap?k+F:0)}:{},A=!1,o=this.renderer.createTSpan(l,""),R.appendChild(o),h.indexOf("<b>")>-1||w&&0===G&&0===D&&(M||this.isWrap)?(B="bold",E=this.themeStyle.tooltipBoldLabel,x="font-weight:"+B,g.fontWeight=B,o.setAttribute("fill",this.textStyle.color||E)):(x="bold"===B?"font-weight:"+B:"",g.fontWeight=B,o.setAttribute("fill",this.textStyle.color||E)),(h.indexOf("</b>")>-1||w&&G===H-1&&0===D&&(M||this.isWrap))&&(B="Normal",E=this.themeStyle.tooltipLightLabel),o.textContent=h=this.getTooltipTextContent(h),u+=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",O=!1);u-=4,c=Math.max(c,u),z.push(u)}}this.elementSize=new y(c+(c>0?2*this.marginX:0),p),this.elementSize.width+=k+F;var Q=R.childNodes[0];if(""!==b&&Q&&!this.isWrap){g.fontWeight="bold";var X=(this.elementSize.width+2*this.padding)/2-r(b,g).width/2;Q.setAttribute("x",X.toString())}this.renderContentRTL(R,M,k+F,z)},l.prototype.renderContentRTL=function(t,i,r,o){if(this.enableRTL)for(var n=void 0,a=i?1:0,s=0;s<t.childNodes.length;s++)n=t.childNodes[s],i&&!(s>0)||e.isNullOrUndefined(n.getAttribute("x"))||(n.setAttribute("x",(this.elementSize.width-(r+o[a])).toString()),a++)},l.prototype.getTooltipTextContent=function(t){var i=t.match(/<[a-zA-Z\/](.|\n)*?>/g);if(e.isNullOrUndefined(i))return t;for(var r=this.isRTLText(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.isRTLText=function(t){return/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t)},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 n=o.firstElementChild;if(n&&e.remove(n),r.cancel)e.remove(a(this.element.id+"_tooltip"));else{for(var s=e.createElement("div",{id:this.element.id+"parent_template"}),h=this.templateFn(this.data,this.controlInstance,s.id,s.id+"_blazorTemplate","");h&&h.length>0;)e.isBlazor()||1===h.length?(s.appendChild(h[0]),h=null):s.appendChild(h[0]);o.appendChild(s);var l=this.isCanvas?s:this.element,d=l.getBoundingClientRect();this.padding=0,this.elementSize=new y(d.width,d.height);var p=this.shared?this.sharedTooltipLocation(t,this.location.x,this.location.y):this.tooltipLocation(t,i,new b(0,0),new b(0,0));if(!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(l,p.x,p.y):this.animateTooltipDiv(this.element,p),this.blazorTemplate){var c=function(){var e=a(u.element.id).getBoundingClientRect();u.elementSize=new y(e.width,e.height);var r=u.tooltipLocation(t,i,new b(0,0),new b(0,0));u.updateDiv(a(u.element.id),r.x,r.y)},u=this;c.bind(u,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 g(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.x<t.x&&(n.x=t.x),n},l.prototype.getCurrentPosition=function(t,e,i,r){var o=this.tooltipPlacement,n=this.clipBounds.x,a=this.clipBounds.y,s=this.offset,h=this.elementSize.width+2*this.marginX,l=this.elementSize.height+2*this.marginY,d=new b(e.x,e.y);return"Top"===o||"Bottom"===o?(d=new b(d.x+n-this.elementSize.width/2-this.padding,d.y+a-this.elementSize.height-2*this.padding-this.arrowPadding-s),i.x=r.x=h/2,"Bottom"===o&&(d.y=e.y+a+s),t.x+t.width<d.x+h?(d.x=t.width>h?t.x+t.width-h+6:t.x,i.x=r.x=t.width>h?t.x+e.x-d.x:e.x):t.x>d.x&&(d.x=t.x,i.x=r.x=e.x)):(d=new b(d.x+n+s,d.y+a-this.elementSize.height/2-this.padding),i.y=r.y=l/2,"Left"===o&&(d.x=e.x+n-s-(h+this.arrowPadding)),t.y+t.height<d.y+l?(d.y=t.height>l?t.y+t.height-l+6:t.y,i.y=r.y=t.height>l?t.y+e.y-d.y:e.y):t.y>d.y&&(d.y=t.y,i.y=r.y=e.y)),new g(d.x,d.y,h,l)},l.prototype.tooltipLocation=function(t,i,r,n){if(!e.isNullOrUndefined(this.tooltipPlacement)){return this.getCurrentPosition(t,i,r,n)}var a=new b(i.x,i.y),s=this.elementSize.width+2*this.marginX,h=this.elementSize.height+2*this.marginY,l=this.offset,d=this.clipBounds.x,p=this.clipBounds.y,c=t.x,u=t.y;return this.outOfBounds=!1,this.inverted?(a=new b(a.x+d+l,a.y+p-this.elementSize.height/2-this.padding),r.y=n.y=h/2,(a.x+s+this.arrowPadding>c+t.width||this.isNegative)&&(a.x=(i.x>t.width+t.x?t.width:i.x)+d-l-(s+this.arrowPadding)),a.x<c&&(a.x=(i.x<0?0:i.x)+d+l),a.x+s+this.arrowPadding>c+t.width&&(a.x=(i.x>t.width+t.x?t.width:i.x)+d-l-(s+this.arrowPadding)),a.y<=u&&(r.y-=u-a.y,n.y-=u-a.y,a.y=u),a.y+h>=u+t.height&&(r.y+=a.y+h-(u+t.height),n.y+=a.y+h-(u+t.height),a.y-=a.y+h-(u+t.height)),r.y+this.arrowPadding>h-this.ry&&(r.y=h-this.ry-this.arrowPadding,n.y=h),r.y-this.arrowPadding<this.ry&&(r.y=n.y=this.ry+this.arrowPadding),"Chart"===this.controlName&&((a.y+r.y<this.areaMargin+this.arrowPadding||t.y+t.height-(a.y+r.y)<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),o(a.x,a.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,a=new b(i.x+d-this.padding-this.elementSize.width/2,i.y+p-this.elementSize.height-2*this.padding-l-this.arrowPadding),this.revert=!0,n.x=r.x=s/2,n.y=r.y=0,(a.y<u||this.isNegative)&&(a.y=(i.y<0?0:i.y)+l+p),a.y+this.arrowPadding+h>u+t.height&&(a.y=Math.min(i.y,u+t.height)+p-this.elementSize.height-2*this.padding-l-this.arrowPadding),n.x=s/2,a.x<c&&(n.x-=c-a.x,r.x-=c-a.x,a.x=c),a.x+s>t.width+c&&(r.x+=a.x+s-(t.width+c),n.x+=a.x+s-(t.width+c),a.x-=a.x+s-(t.width+c)),this.arrowPadding+r.x>s-this.rx&&(n.x=s-this.rx-this.arrowPadding,r.x=s-this.rx-this.arrowPadding),r.x-this.arrowPadding<this.rx&&(r.x=n.x=this.rx+this.arrowPadding)))):(a=new b(a.x+d-this.elementSize.width/2-this.padding,a.y+p-this.elementSize.height-2*this.padding-this.arrowPadding-l),r.x=n.x=s/2,(a.y<u||this.isNegative)&&(a.y=(i.y<0?0:i.y)+p+l),a.y+h+this.arrowPadding>u+t.height&&(a.y=Math.min(i.y,u+t.height)+p-this.elementSize.height-2*this.padding-this.arrowPadding-l),(a.x+s>c+t.width&&a.y<u||this.isNegative)&&(a.y=(i.y<0?0:i.y)+p+l),n.x=s/2,a.x<c&&(r.x-=c-a.x,n.x-=c-a.x,a.x=c),a.x+s>c+t.width&&(r.x+=a.x+s-(c+t.width),n.x+=a.x+s-(c+t.width),a.x-=a.x+s-(c+t.width)),a.x<c&&(r.x-=c-a.x,n.x-=c-a.x,a.x=c),r.x+this.arrowPadding>s-this.rx&&(r.x=s-this.rx-this.arrowPadding,n.x=s-this.rx-this.arrowPadding),r.x-this.arrowPadding<this.rx&&(r.x=n.x=this.rx+this.arrowPadding),"Chart"===this.controlName&&((t.x+t.width-(a.x+r.x)<this.areaMargin+this.arrowPadding||a.x+r.x<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),o(a.x,a.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,this.revert=!0,a=new b(i.x+l+d,i.y+p-this.elementSize.height/2-this.padding),n.x=r.x=0,n.y=r.y=h/2,(a.x+this.arrowPadding+s>c+t.width||this.isNegative)&&(a.x=(i.x>t.width?t.width:i.x)+d-l-(this.arrowPadding+s)),a.x<c&&(a.x=(i.x<0?0:i.x)+l+d),a.y<=u&&(n.y-=u-a.y,r.y-=u-a.y,a.y=u),a.y+h>=t.height+u&&(r.y+=a.y+h-(t.height+u),n.y+=a.y+h-(t.height+u),a.y-=a.y+h-(t.height+u)),this.arrowPadding+r.y>h-this.ry&&(r.y=h-this.arrowPadding-this.ry,n.y=h),r.y-this.arrowPadding<this.ry&&(r.y=this.arrowPadding+this.ry,n.y=0)))),new g(a.x,a.y,s,h)},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,"Chart"===o.controlName&&o.shared&&!o.enableRTL?(t.style.transition="transform 0.1s",t.style.transform="translate("+(n+r*(i.x-n))+"px,"+(a+r*(i.y-a))+"px)"):(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){"Chart"!==this.controlName||!this.shared||this.crosshair||this.enableRTL?(t.style.left=e+"px",t.style.top=i+"px"):t.style.transform="translate("+e+"px,"+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()):this.templateFn=e.compile(this.template)}catch(t){this.templateFn=e.compile(this.template)}},l.prototype.fadeOut=function(){var t=this,i=this.isCanvas&&!this.template?a(this.element.id+"_svg"):a(this.element.id),r=a(this.element.id);if(i){var o=i.firstChild;if(o.nodeType!=Node.ELEMENT_NODE&&(o=i.firstElementChild),this.isCanvas&&!this.template&&(o=document.getElementById(this.element.id+"_group")?document.getElementById(this.element.id+"_group"):o),!o)return null;var n=parseFloat(o.getAttribute("opacity"));n=e.isNullOrUndefined(n)?1:n,new e.Animation({}).animate(o,{duration:200,progress:function(e){t.progressAnimation(o,n,e.timeStamp/e.duration)},end:function(){t.fadeOuted=!0,t.endAnimation(o),r.style.transition=""}})}},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()},L([e.Property(!1)],l.prototype,"enable",void 0),L([e.Property(!1)],l.prototype,"shared",void 0),L([e.Property(!1)],l.prototype,"crosshair",void 0),L([e.Property(!0)],l.prototype,"enableShadow",void 0),L([e.Property(null)],l.prototype,"fill",void 0),L([e.Property("")],l.prototype,"header",void 0),L([e.Property(.75)],l.prototype,"opacity",void 0),L([e.Complex({size:"13px",fontWeight:"Normal",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"},S)],l.prototype,"textStyle",void 0),L([e.Property(null)],l.prototype,"template",void 0),L([e.Property(!0)],l.prototype,"enableAnimation",void 0),L([e.Property(300)],l.prototype,"duration",void 0),L([e.Property(!1)],l.prototype,"inverted",void 0),L([e.Property(!1)],l.prototype,"isNegative",void 0),L([e.Complex({color:"#cccccc",width:.5},P)],l.prototype,"border",void 0),L([e.Property([])],l.prototype,"content",void 0),L([e.Property(10)],l.prototype,"markerSize",void 0),L([e.Complex({x:0,y:0},O)],l.prototype,"clipBounds",void 0),L([e.Property([])],l.prototype,"palette",void 0),L([e.Property([])],l.prototype,"shapes",void 0),L([e.Complex({x:0,y:0},O)],l.prototype,"location",void 0),L([e.Property(0)],l.prototype,"offset",void 0),L([e.Property(4)],l.prototype,"rx",void 0),L([e.Property(4)],l.prototype,"ry",void 0),L([e.Property(5)],l.prototype,"marginX",void 0),L([e.Property(5)],l.prototype,"marginY",void 0),L([e.Property(7)],l.prototype,"arrowPadding",void 0),L([e.Property(null)],l.prototype,"data",void 0),L([e.Property("Material")],l.prototype,"theme",void 0),L([e.Complex({x:0,y:0,width:0,height:0},T)],l.prototype,"areaBounds",void 0),L([e.Property(null)],l.prototype,"availableSize",void 0),L([e.Property()],l.prototype,"blazorTemplate",void 0),L([e.Property(!1)],l.prototype,"isCanvas",void 0),L([e.Property(!1)],l.prototype,"isTextWrap",void 0),L([e.Property(null)],l.prototype,"tooltipPlacement",void 0),L([e.Property(null)],l.prototype,"controlInstance",void 0),L([e.Property("")],l.prototype,"controlName",void 0),L([e.Event()],l.prototype,"tooltipRender",void 0),L([e.Event()],l.prototype,"loaded",void 0),L([e.Event()],l.prototype,"animationComplete",void 0),L([e.Property(!1)],l.prototype,"enableRTL",void 0),l=L([e.NotifyPropertyChanges],l)}(e.Component);t.TextStyle=S,t.TooltipBorder=P,t.AreaBounds=T,t.ToolLocation=O,t.Tooltip=A,t.getTooltipThemeColor=i,t.measureText=r,t.withInAreaBounds=o,t.findDirection=n,t.Size=y,t.Rect=g,t.Side=f,t.CustomizeOption=x,t.TextOption=m,t.getElement=a,t.removeElement=s,t.drawSymbol=h,t.calculateShapes=l,t.PathOption=v,t.textElement=d,t.TooltipLocation=b,t.SvgRenderer=p,t.CanvasRenderer=c,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=ej2-svg-base.umd.min.js.map
/*!
* filename: ej2-svg-base.min.js
* version : 20.4.48
* version : 20.4.53
* 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:"#020202",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;case"Fluent":e={tooltipFill:"#FFFFFF",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE"};break;case"FluentDark":e={tooltipFill:"#252423",tooltipBoldLabel:"#F3F2F1",tooltipLightLabel:"#F3F2F1",tooltipHeaderLine:"#3B3A39"};break;default:e={tooltipFill:"#000816",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 y(o.clientWidth,o.clientHeight)}function o(t,e,i,r,o){return void 0===r&&(r=0),void 0===o&&(o=0),t>=i.x-r&&t<=i.x+i.width+r&&e>=i.y-o&&e<=i.y+i.height+o}function n(t,e,i,r,o,n,a,s,h,l,d){void 0===d&&(d="");var p="",c=i.x,u=i.y,y=i.x+i.width,g=i.y+i.height;return 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+" "+(g-e)+" Q "+y+" "+g+" "+(y-t)+" "+g),0!==o&&(p="RangeNavigator"===d?r.x-o>y/2?(p=p.concat(" L "+(r.x+o)+" "+g)).concat(" L "+(h+o)+" "+(g+o)+" L "+r.x+" "+g):(p=p.concat(" L "+r.x+" "+g)).concat(" L "+(h-o)+" "+(g+o)+" L "+(r.x-o)+" "+g):(p=p.concat(" L "+(r.x+o)+" "+g)).concat(" L "+h+" "+(g+o)+" L "+(r.x-o)+" "+g)),p=r.x-o>c?p.concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):0===o?p.concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):p.concat(" L "+c+" "+(g+e)+" z")):a?p=(p=(p=(p=(p=p.concat("M "+c+" "+(u+e)+" Q "+c+" "+u+" "+(c+t)+" "+u+" L "+(r.x-o)+" "+u)).concat(" L "+h+" "+r.y)).concat(" L "+(r.x+o)+" "+u)).concat(" 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?(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)),p="RangeNavigator"===d?p.concat(" L "+(y+o)+" "+(l-o)):p.concat(" L "+(y+o)+" "+l),p=(p=(p="RangeNavigator"===d?p.concat(" L "+y+" "+r.y):p.concat(" L "+y+" "+(r.y+o))).concat(" L "+y+" "+(g-e)+" Q "+y+" "+g+" "+(y-t)+" "+g)).concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z")):(p=p.concat("M "+(c+t)+" "+u+" Q "+c+" "+u+" "+c+" "+(u+e)+" L "+c+" "+(r.y-o)),p="RangeNavigator"===d?p.concat(" L "+(c-o)+" "+(l-o)):p.concat(" L "+(c-o)+" "+l),p=(p=(p="RangeNavigator"===d?p.concat(" L "+c+" "+r.y):p.concat(" L "+c+" "+(r.y+o))).concat(" 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")),p}function a(t){return document.getElementById(t)}function s(t){var i=a(t);i&&e.remove(i)}function h(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",h=i.width,l=i.height,d=t.x,p=t.y,c=t.x+-h/2,u=t.y+-l/2;switch(r){case"Circle":case"Bubble":s="Ellipse",e.merge(o,{rx:h/2,ry:l/2,cx:d,cy:p});break;case"Cross":a="M "+c+" "+p+" L "+(d+h/2)+" "+p+" M "+d+" "+(p+l/2)+" L "+d+" "+(p+-l/2),e.merge(o,{d:a});break;case"HorizontalLine":a="M "+c+" "+p+" L "+(d+h/2)+" "+p,e.merge(o,{d:a});break;case"VerticalLine":a="M "+d+" "+(p+l/2)+" L "+d+" "+(p+-l/2),e.merge(o,{d:a});break;case"Diamond":a="M "+c+" "+p+" L "+d+" "+(p+-l/2)+" L "+(d+h/2)+" "+p+" L "+d+" "+(p+l/2)+" L "+c+" "+p+" z",e.merge(o,{d:a});break;case"Rectangle":a="M "+c+" "+(p+-l/2)+" L "+(d+h/2)+" "+(p+-l/2)+" L "+(d+h/2)+" "+(p+l/2)+" L "+c+" "+(p+l/2)+" L "+c+" "+(p+-l/2)+" z",e.merge(o,{d:a});break;case"Triangle":a="M "+c+" "+(p+l/2)+" L "+d+" "+(p+-l/2)+" L "+(d+h/2)+" "+(p+l/2)+" L "+c+" "+(p+l/2)+" z",e.merge(o,{d:a});break;case"InvertedTriangle":a="M "+(d+h/2)+" "+(p-l/2)+" L "+d+" "+(p+l/2)+" L "+(d-h/2)+" "+(p-l/2)+" L "+(d+h/2)+" "+(p-l/2)+" z",e.merge(o,{d:a});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)),a=0===f?"M "+(d+y)+" "+(p+g)+" ":a.concat("L "+(d+y)+" "+(p+g)+" ");a=a.concat("Z"),e.merge(o,{d:a});break;case"Image":s="Image",e.merge(o,{href:n,height:l,width:h,x:c,y:u})}return{renderOption:o,functionName:s}}function d(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.style.cssText=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++)"style"===i[r]?e.style.cssText=t[i[r]]:e.setAttribute(i[r],t[i[r]]);return e},t.prototype.createCanvas=function(){return null},t}(),c=function(){function t(t){this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createCanvas=function(t){var e=document.createElement("canvas");return e.setAttribute("id",this.rootId+"_canvas"),this.ctx=e.getContext("2d"),this.canvasObj=e,this.setCanvasSize(t.width,t.height),this.canvasObj},t.prototype.setCanvasSize=function(t,i){var r=document.getElementById(this.rootId),o=e.isNullOrUndefined(r)?null:r.getBoundingClientRect();e.isNullOrUndefined(this.width)?this.canvasObj.setAttribute("width",t?t.toString():o.width.toString()):this.canvasObj.setAttribute("width",this.width.toString()),e.isNullOrUndefined(this.height)?this.canvasObj.setAttribute("height",i?i.toString():"450"):this.canvasObj.setAttribute("height",this.height.toString())},t.prototype.setAttributes=function(t){this.ctx.lineWidth=this.getOptionValue(t,"stroke-width");var i=this.getOptionValue(t,"stroke-dasharray");if(!e.isNullOrUndefined(i)){var r=i.split(",");this.ctx.setLineDash([parseInt(r[0],10),parseInt(r[1],10)])}this.ctx.strokeStyle=this.getOptionValue(t,"stroke")},t.prototype.drawLine=function(t){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.moveTo(t.x1,t.y1),this.ctx.lineTo(t.x2,t.y2),this.ctx.stroke(),this.ctx.restore()},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]),h=parseFloat(i[a+2]);switch(i[a]){case"M":t.innerR||t.cx||this.ctx.moveTo(s,h);break;case"L":t.innerR||this.ctx.lineTo(s,h);break;case"Q":var l=parseFloat(i[a+3]),d=parseFloat(i[a+4]);this.ctx.quadraticCurveTo(s,h,l,d),a+=2;break;case"C":var p=parseFloat(i[a+3]),c=parseFloat(i[a+4]),u=parseFloat(i[a+5]),y=parseFloat(i[a+6]);this.ctx.bezierCurveTo(s,h,p,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 h=this.getOptionValue(t,"font-size"),l=this.getOptionValue(t,"font-family"),d=this.getOptionValue(t,"font-style").toLowerCase()+" "+s+" "+h+" "+l,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),!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.drawCircularClipPath=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}(),u=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)}}(),y=function(){function t(t,e){this.width=t,this.height=e}return t}(),g=function(){function t(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r}return t}(),f=function(){function t(t,e){this.isRight=e,this.isBottom=t}return t}(),m=function(){function t(t){this.id=t}return t}(),x=function(t){function e(e,i,r,o,n,a,s,h){void 0===a&&(a="");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=a,l.baseLine=s,l.labelRotation=h,l}return u(e,t),e}(m),v=function(t){function e(e,i,r,o,n,a,s){var h=t.call(this,e)||this;return h.opacity=n,h.fill=i,h.stroke=o,h["stroke-width"]=r,h["stroke-dasharray"]=a,h.d=s,h}return u(e,t),e}(m),b=function(){function t(t,e){this.x=t,this.y=e}return t}(),w=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)}}(),L=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 w(i,t),L([e.Property(null)],i.prototype,"size",void 0),L([e.Property("")],i.prototype,"color",void 0),L([e.Property("Segoe UI")],i.prototype,"fontFamily",void 0),L([e.Property("Normal")],i.prototype,"fontWeight",void 0),L([e.Property("Normal")],i.prototype,"fontStyle",void 0),L([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 w(i,t),L([e.Property("")],i.prototype,"color",void 0),L([e.Property(1)],i.prototype,"width",void 0),L([e.Property("")],i.prototype,"dashArray",void 0),i}(e.ChildProperty),T=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return w(i,t),L([e.Property(0)],i.prototype,"x",void 0),L([e.Property(0)],i.prototype,"y",void 0),L([e.Property(0)],i.prototype,"width",void 0),L([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 w(i,t),L([e.Property(0)],i.prototype,"x",void 0),L([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 w(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.areaMargin=10,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){this.enableRTL&&this.element.setAttribute("dir","ltr");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,n=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),s=a(this.element.id+"_group"),l=(this.enableRTL?this.elementSize.width-i/2:2*this.marginX+i/2)+(e?this.arrowPadding:0),d=0,p=this.shapes;d<p.length;d++){var c=p[d];if("None"!==c){if(r=new v(this.element.id+"_Trackball_"+o,this.palette[o],1,"#cccccc",1,null),this.markerPoint[o]){var u=0;this.header.indexOf("<br")>-1&&(u=this.header.split(/<br.*?>/g).length+o),n.appendChild(h(new b(l,this.markerPoint[o]-this.padding+(t?this.arrowPadding:u)),c,new y(i,i),"",r,null))}o++}}s.appendChild(n)},l.prototype.renderTooltipElement=function(t,i){var o,s=a(this.element.id),h=new b(0,0),l=new b(0,0),d=a(this.element.id+"_svg"),p=a(this.element.id+"_group"),c=a(this.element.id+"_path"),u=!1,y=!1,m=!1,x=0,v=0;if(""!==this.header&&(this.elementSize.height+=this.marginY),this.content.length>1?(o=this.sharedTooltipLocation(t,this.location.x,this.location.y),u=!0):(o=this.tooltipLocation(t,i,h,l),this.inverted?x=(y=o.x<i.x+this.clipBounds.x)?0:this.arrowPadding:(m=!(u=o.y<i.y+this.clipBounds.y),v=u?0:this.arrowPadding)),""!==this.header){var w=2,L=0,S=this.isWrap?this.wrappedText:this.header;this.isWrap&&"string"==typeof S&&(S.indexOf("<")>-1||S.indexOf(">")>-1)&&(w=S.split("<br>").length),this.header.indexOf("<br")>-1&&(L=5*(this.header.split(/<br.*?>/g).length-1));var P=r(this.isWrap?this.wrappedText:this.header,this.textStyle).height+this.marginY*w+(m?this.arrowPadding:0)+(this.isWrap?5:L),T="M "+(3*this.marginX+(y||u||m?0:this.arrowPadding))+" "+P+"L "+(o.width+(y||u||m?0:this.arrowPadding)-2*this.marginX)+" "+P,O=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:.8,stroke:this.themeStyle.tooltipHeaderLine,d:T});p.appendChild(O)}var A=this.border.width/2,C=new g(A+x,A+v,o.width-A,o.height-A);if(p.setAttribute("opacity","1"),!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(s,o.x,o.y):this.animateTooltipDiv(s,o),d.setAttribute("height",(o.height+this.border.width+(this.inverted?0:this.arrowPadding)+5).toString()),d.setAttribute("width",(o.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,y=this.tooltipPlacement.indexOf("Left")>-1),c.setAttribute("d",n(this.rx,this.ry,C,h,this.arrowPadding,u,m,y,l.x,l.y,this.controlName)),this.enableShadow&&"Bootstrap4"!==this.theme){var k=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(#"+k+")");var F='<filter id="'+k+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';F+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',F+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var B=this.renderer.createDefs();B.setAttribute("id",this.element.id+"SVG_tooltip_definition"),p.appendChild(B),B.innerHTML=F}var E="Fluent"===this.theme?"#FFFFFF":"FluentDark"===this.theme?"#323130":this.border.color;return c.setAttribute("stroke",E),e.isNullOrUndefined(this.border.dashArray)||c.setAttribute("stroke-dasharray",this.border.dashArray),this.changeText(new b(x,v),m,!y&&!u&&!m),this.revert&&(this.inverted=!this.inverted,this.revert=!1),new f(m,!y&&!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,n,h,l,p=0,c=0,u=0,g=e.extend({},this.textStyle,null,!0).properties,f=a(this.element.id+"_group"),m="";this.findFormattedText(),this.isWrap=!1;var v="rtl"===document.body.getAttribute("dir")&&!this.enableRTL?"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,L=r(this.formattedText[0],g).width+2*this.marginX+this.arrowPadding,S=this.location.x-L<this.location.x,P=this.areaBounds.x+this.areaBounds.width<this.location.x+L,T=""!==b?this.marginY:0,O=!0,A=!0;this.markerPoint=[];var C,k=this.shapes.length>0?10:0,F=this.shapes.length>0?5:0,B="Normal",E=this.themeStyle.tooltipLightLabel,N=22/parseFloat("13px")*parseFloat(g.size),z=[];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 x(this.element.id+"_text",2*this.marginX,2*this.marginY+2*this.padding+(2===this.marginY?3:0),v,""),R=d(_,g,null,f),I=1===this.formattedText.length&&this.formattedText[0].indexOf(" : <b>")>-1,M=""!==this.header,j=M&&w?16:13,D=0,U=this.formattedText.length;D<U;D++)if(n=this.formattedText[D].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g),0===D&&!I&&this.isTextWrap&&(this.leftSpace<L||S)&&(this.rightSpace<L||P)&&(C=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/j:this.rightSpace/j),n=(""!==b?b:this.formattedText[D]).match(new RegExp(".{1,"+C+"}","g")),this.wrappedText=w?"<b>"+n.join("<br>")+"</b>":n.join("<br>"),this.isWrap=n.length>1),""!==n[0]){0===D&&""!==b||this.markerPoint.push((""!==b?this.marginY:0)+_.y+p);for(var V=0,W=n.length;V<W;V++){i=n[V].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,this.enableRTL?"<br>‎: <br>":"<br>‎:<br>").split("<br>"),this.enableRTL&&i.length>0&&n[V].match(/:/g)&&(i[0]=i[0].trim(),i.reverse()),u=0,A=!0,p+=N;for(var G=0,H=i.length;G<H;G++)h=i[G],this.enableRTL&&""!==h&&this.isRTLText(h)&&(h=h.concat("‎")),/\S/.test(h)||""===h||(h=" "),(!A&&" "===h||""!==h.replace(/<b>/g,"").replace(/<\/b>/g,"").trim())&&(u+=" "!==h?4:0,A&&!O?(this.header.indexOf("<br")>-1&&0!==D&&(T+=this.header.split(/<br.*?>/g).length),l={x:2*this.marginX+(k+F),dy:N+(A?T:0),fill:""},T=null):l=O&&A?{x:""===b?2*this.marginX+(k+F):2*this.marginX+(this.isWrap?k+F:0)}:{},A=!1,o=this.renderer.createTSpan(l,""),R.appendChild(o),h.indexOf("<b>")>-1||w&&0===G&&0===D&&(M||this.isWrap)?(B="bold",E=this.themeStyle.tooltipBoldLabel,m="font-weight:"+B,g.fontWeight=B,o.setAttribute("fill",this.textStyle.color||E)):(m="bold"===B?"font-weight:"+B:"",g.fontWeight=B,o.setAttribute("fill",this.textStyle.color||E)),(h.indexOf("</b>")>-1||w&&G===H-1&&0===D&&(M||this.isWrap))&&(B="Normal",E=this.themeStyle.tooltipLightLabel),o.textContent=h=this.getTooltipTextContent(h),u+=r(h,g).width,""!==m&&(o.style.fontWeight=m.split("font-weight:")[1],o.style.color=o.getAttribute("fill")),o.style.fontFamily="inherit",o.style.fontStyle="inherit",o.style.fontSize="inherit",O=!1);u-=4,c=Math.max(c,u),z.push(u)}}this.elementSize=new y(c+(c>0?2*this.marginX:0),p),this.elementSize.width+=k+F;var Q=R.childNodes[0];if(""!==b&&Q&&!this.isWrap){g.fontWeight="bold";var X=(this.elementSize.width+2*this.padding)/2-r(b,g).width/2;Q.setAttribute("x",X.toString())}this.renderContentRTL(R,M,k+F,z)},l.prototype.renderContentRTL=function(t,i,r,o){if(this.enableRTL)for(var n=void 0,a=i?1:0,s=0;s<t.childNodes.length;s++)n=t.childNodes[s],i&&!(s>0)||e.isNullOrUndefined(n.getAttribute("x"))||(n.setAttribute("x",(this.elementSize.width-(r+o[a])).toString()),a++)},l.prototype.getTooltipTextContent=function(t){var i=t.match(/<[a-zA-Z\/](.|\n)*?>/g);if(e.isNullOrUndefined(i))return t;for(var r=this.isRTLText(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.isRTLText=function(t){return/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t)},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 n=o.firstElementChild;if(n&&e.remove(n),r.cancel)e.remove(a(this.element.id+"_tooltip"));else{for(var s=e.createElement("div",{id:this.element.id+"parent_template"}),h=this.templateFn(this.data,this.controlInstance,s.id,s.id+"_blazorTemplate","");h&&h.length>0;)e.isBlazor()||1===h.length?(s.appendChild(h[0]),h=null):s.appendChild(h[0]);o.appendChild(s);var l=this.isCanvas?s:this.element,d=l.getBoundingClientRect();this.padding=0,this.elementSize=new y(d.width,d.height);var p=this.shared?this.sharedTooltipLocation(t,this.location.x,this.location.y):this.tooltipLocation(t,i,new b(0,0),new b(0,0));if(!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(l,p.x,p.y):this.animateTooltipDiv(this.element,p),this.blazorTemplate){var c=function(){var e=a(u.element.id).getBoundingClientRect();u.elementSize=new y(e.width,e.height);var r=u.tooltipLocation(t,i,new b(0,0),new b(0,0));u.updateDiv(a(u.element.id),r.x,r.y)},u=this;c.bind(u,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 g(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.x<t.x&&(n.x=t.x),n},l.prototype.getCurrentPosition=function(t,e,i,r){var o=this.tooltipPlacement,n=this.clipBounds.x,a=this.clipBounds.y,s=this.offset,h=this.elementSize.width+2*this.marginX,l=this.elementSize.height+2*this.marginY,d=new b(e.x,e.y);return"Top"===o||"Bottom"===o?(d=new b(d.x+n-this.elementSize.width/2-this.padding,d.y+a-this.elementSize.height-2*this.padding-this.arrowPadding-s),i.x=r.x=h/2,"Bottom"===o&&(d.y=e.y+a+s),t.x+t.width<d.x+h?(d.x=t.width>h?t.x+t.width-h+6:t.x,i.x=r.x=t.width>h?t.x+e.x-d.x:e.x):t.x>d.x&&(d.x=t.x,i.x=r.x=e.x)):(d=new b(d.x+n+s,d.y+a-this.elementSize.height/2-this.padding),i.y=r.y=l/2,"Left"===o&&(d.x=e.x+n-s-(h+this.arrowPadding)),t.y+t.height<d.y+l?(d.y=t.height>l?t.y+t.height-l+6:t.y,i.y=r.y=t.height>l?t.y+e.y-d.y:e.y):t.y>d.y&&(d.y=t.y,i.y=r.y=e.y)),new g(d.x,d.y,h,l)},l.prototype.tooltipLocation=function(t,i,r,n){if(!e.isNullOrUndefined(this.tooltipPlacement))return this.getCurrentPosition(t,i,r,n);var a=new b(i.x,i.y),s=this.elementSize.width+2*this.marginX,h=this.elementSize.height+2*this.marginY,l=this.offset,d=this.clipBounds.x,p=this.clipBounds.y,c=t.x,u=t.y;return this.outOfBounds=!1,this.inverted?(a=new b(a.x+d+l,a.y+p-this.elementSize.height/2-this.padding),r.y=n.y=h/2,(a.x+s+this.arrowPadding>c+t.width||this.isNegative)&&(a.x=(i.x>t.width+t.x?t.width:i.x)+d-l-(s+this.arrowPadding)),a.x<c&&(a.x=(i.x<0?0:i.x)+d+l),a.y<=u&&(r.y-=u-a.y,n.y-=u-a.y,a.y=u),a.y+h>=u+t.height&&(r.y+=a.y+h-(u+t.height),n.y+=a.y+h-(u+t.height),a.y-=a.y+h-(u+t.height)),r.y+this.arrowPadding>h-this.ry&&(r.y=h-this.ry-this.arrowPadding,n.y=h),r.y-this.arrowPadding<this.ry&&(r.y=n.y=this.ry+this.arrowPadding),"Chart"===this.controlName&&((a.y+r.y<this.areaMargin+this.arrowPadding||t.y+t.height-(a.y+r.y)<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),o(a.x,a.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,a=new b(i.x+d-this.padding-this.elementSize.width/2,i.y+p-this.elementSize.height-2*this.padding-l-this.arrowPadding),this.revert=!0,n.x=r.x=s/2,n.y=r.y=0,(a.y<u||this.isNegative)&&(a.y=(i.y<0?0:i.y)+l+p),a.y+this.arrowPadding+h>u+t.height&&(a.y=Math.min(i.y,u+t.height)+p-this.elementSize.height-2*this.padding-l-this.arrowPadding),n.x=s/2,a.x<c&&(n.x-=c-a.x,r.x-=c-a.x,a.x=c),a.x+s>t.width+c&&(r.x+=a.x+s-(t.width+c),n.x+=a.x+s-(t.width+c),a.x-=a.x+s-(t.width+c)),this.arrowPadding+r.x>s-this.rx&&(n.x=s-this.rx-this.arrowPadding,r.x=s-this.rx-this.arrowPadding),r.x-this.arrowPadding<this.rx&&(r.x=n.x=this.rx+this.arrowPadding)))):(a=new b(a.x+d-this.elementSize.width/2-this.padding,a.y+p-this.elementSize.height-2*this.padding-this.arrowPadding-l),r.x=n.x=s/2,(a.y<u||this.isNegative)&&(a.y=(i.y<0?0:i.y)+p+l),a.y+h+this.arrowPadding>u+t.height&&(a.y=Math.min(i.y,u+t.height)+p-this.elementSize.height-2*this.padding-this.arrowPadding-l),n.x=s/2,a.x<c&&(r.x-=c-a.x,n.x-=c-a.x,a.x=c),a.x+s>c+t.width&&(r.x+=a.x+s-(c+t.width),n.x+=a.x+s-(c+t.width),a.x-=a.x+s-(c+t.width)),r.x+this.arrowPadding>s-this.rx&&(r.x=s-this.rx-this.arrowPadding,n.x=s-this.rx-this.arrowPadding),r.x-this.arrowPadding<this.rx&&(r.x=n.x=this.rx+this.arrowPadding),"Chart"===this.controlName&&((t.x+t.width-(a.x+r.x)<this.areaMargin+this.arrowPadding||a.x+r.x<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),o(a.x,a.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,this.revert=!0,a=new b(i.x+l+d,i.y+p-this.elementSize.height/2-this.padding),n.x=r.x=0,n.y=r.y=h/2,(a.x+this.arrowPadding+s>c+t.width||this.isNegative)&&(a.x=(i.x>t.width?t.width:i.x)+d-l-(this.arrowPadding+s)),a.x<c&&(a.x=(i.x<0?0:i.x)+l+d),a.y<=u&&(n.y-=u-a.y,r.y-=u-a.y,a.y=u),a.y+h>=t.height+u&&(r.y+=a.y+h-(t.height+u),n.y+=a.y+h-(t.height+u),a.y-=a.y+h-(t.height+u)),this.arrowPadding+r.y>h-this.ry&&(r.y=h-this.arrowPadding-this.ry,n.y=h),r.y-this.arrowPadding<this.ry&&(r.y=this.arrowPadding+this.ry,n.y=0)))),new g(a.x,a.y,s,h)},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,"Chart"===o.controlName&&o.shared&&!o.enableRTL?(t.style.transition="transform 0.1s",t.style.transform="translate("+(n+r*(i.x-n))+"px,"+(a+r*(i.y-a))+"px)"):(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){"Chart"!==this.controlName||!this.shared||this.crosshair||this.enableRTL?(t.style.left=e+"px",t.style.top=i+"px"):t.style.transform="translate("+e+"px,"+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()):this.templateFn=e.compile(this.template)}catch(t){this.templateFn=e.compile(this.template)}},l.prototype.fadeOut=function(){var t=this,i=a(this.isCanvas&&!this.template?this.element.id+"_svg":this.element.id),r=a(this.element.id);if(i){var o=i.firstChild;if(o.nodeType!=Node.ELEMENT_NODE&&(o=i.firstElementChild),this.isCanvas&&!this.template&&(o=document.getElementById(this.element.id+"_group")?document.getElementById(this.element.id+"_group"):o),!o)return null;var n=parseFloat(o.getAttribute("opacity"));n=e.isNullOrUndefined(n)?1:n,new e.Animation({}).animate(o,{duration:200,progress:function(e){t.progressAnimation(o,n,e.timeStamp/e.duration)},end:function(){t.fadeOuted=!0,t.endAnimation(o),r.style.transition=""}})}},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()},L([e.Property(!1)],l.prototype,"enable",void 0),L([e.Property(!1)],l.prototype,"shared",void 0),L([e.Property(!1)],l.prototype,"crosshair",void 0),L([e.Property(!0)],l.prototype,"enableShadow",void 0),L([e.Property(null)],l.prototype,"fill",void 0),L([e.Property("")],l.prototype,"header",void 0),L([e.Property(.75)],l.prototype,"opacity",void 0),L([e.Complex({size:"13px",fontWeight:"Normal",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"},S)],l.prototype,"textStyle",void 0),L([e.Property(null)],l.prototype,"template",void 0),L([e.Property(!0)],l.prototype,"enableAnimation",void 0),L([e.Property(300)],l.prototype,"duration",void 0),L([e.Property(!1)],l.prototype,"inverted",void 0),L([e.Property(!1)],l.prototype,"isNegative",void 0),L([e.Complex({color:"#cccccc",width:.5},P)],l.prototype,"border",void 0),L([e.Property([])],l.prototype,"content",void 0),L([e.Property(10)],l.prototype,"markerSize",void 0),L([e.Complex({x:0,y:0},O)],l.prototype,"clipBounds",void 0),L([e.Property([])],l.prototype,"palette",void 0),L([e.Property([])],l.prototype,"shapes",void 0),L([e.Complex({x:0,y:0},O)],l.prototype,"location",void 0),L([e.Property(0)],l.prototype,"offset",void 0),L([e.Property(4)],l.prototype,"rx",void 0),L([e.Property(4)],l.prototype,"ry",void 0),L([e.Property(5)],l.prototype,"marginX",void 0),L([e.Property(5)],l.prototype,"marginY",void 0),L([e.Property(7)],l.prototype,"arrowPadding",void 0),L([e.Property(null)],l.prototype,"data",void 0),L([e.Property("Material")],l.prototype,"theme",void 0),L([e.Complex({x:0,y:0,width:0,height:0},T)],l.prototype,"areaBounds",void 0),L([e.Property(null)],l.prototype,"availableSize",void 0),L([e.Property()],l.prototype,"blazorTemplate",void 0),L([e.Property(!1)],l.prototype,"isCanvas",void 0),L([e.Property(!1)],l.prototype,"isTextWrap",void 0),L([e.Property(null)],l.prototype,"tooltipPlacement",void 0),L([e.Property(null)],l.prototype,"controlInstance",void 0),L([e.Property("")],l.prototype,"controlName",void 0),L([e.Event()],l.prototype,"tooltipRender",void 0),L([e.Event()],l.prototype,"loaded",void 0),L([e.Event()],l.prototype,"animationComplete",void 0),L([e.Property(!1)],l.prototype,"enableRTL",void 0),l=L([e.NotifyPropertyChanges],l)}(e.Component);return t.TextStyle=S,t.TooltipBorder=P,t.AreaBounds=T,t.ToolLocation=O,t.Tooltip=A,t.getTooltipThemeColor=i,t.measureText=r,t.withInAreaBounds=o,t.findDirection=n,t.Size=y,t.Rect=g,t.Side=f,t.CustomizeOption=m,t.TextOption=x,t.getElement=a,t.removeElement=s,t.drawSymbol=h,t.calculateShapes=l,t.PathOption=v,t.textElement=d,t.TooltipLocation=b,t.SvgRenderer=p,t.CanvasRenderer=c,t}({},ej.base),this.ejs=ej;
this.ej=this.ej||{},this.ej.svgbase=function(t,e){"use strict";function i(t){var e;switch(t){case"Highcontrast":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:"#020202",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;case"Fluent":e={tooltipFill:"#FFFFFF",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE"};break;case"FluentDark":e={tooltipFill:"#252423",tooltipBoldLabel:"#F3F2F1",tooltipLightLabel:"#F3F2F1",tooltipHeaderLine:"#3B3A39"};break;default:e={tooltipFill:"#000816",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 y(o.clientWidth,o.clientHeight)}function o(t,e,i,r,o){return void 0===r&&(r=0),void 0===o&&(o=0),t>=i.x-r&&t<=i.x+i.width+r&&e>=i.y-o&&e<=i.y+i.height+o}function n(t,e,i,r,o,n,a,s,h,l,d){void 0===d&&(d="");var p="",c=i.x,u=i.y,y=i.x+i.width,g=i.y+i.height;return 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+" "+(g-e)+" Q "+y+" "+g+" "+(y-t)+" "+g),0!==o&&(p="RangeNavigator"===d?r.x-o>y/2?(p=p.concat(" L "+(r.x+o)+" "+g)).concat(" L "+(h+o)+" "+(g+o)+" L "+r.x+" "+g):(p=p.concat(" L "+r.x+" "+g)).concat(" L "+(h-o)+" "+(g+o)+" L "+(r.x-o)+" "+g):(p=p.concat(" L "+(r.x+o)+" "+g)).concat(" L "+h+" "+(g+o)+" L "+(r.x-o)+" "+g)),p=r.x-o>c?p.concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):0===o?p.concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z"):p.concat(" L "+c+" "+(g+e)+" z")):a?p=(p=(p=(p=(p=p.concat("M "+c+" "+(u+e)+" Q "+c+" "+u+" "+(c+t)+" "+u+" L "+(r.x-o)+" "+u)).concat(" L "+h+" "+r.y)).concat(" L "+(r.x+o)+" "+u)).concat(" 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?(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)),p="RangeNavigator"===d?p.concat(" L "+(y+o)+" "+(l-o)):p.concat(" L "+(y+o)+" "+l),p=(p=(p="RangeNavigator"===d?p.concat(" L "+y+" "+r.y):p.concat(" L "+y+" "+(r.y+o))).concat(" L "+y+" "+(g-e)+" Q "+y+" "+g+" "+(y-t)+" "+g)).concat(" L "+(c+t)+" "+g+" Q "+c+" "+g+" "+c+" "+(g-e)+" z")):(p=p.concat("M "+(c+t)+" "+u+" Q "+c+" "+u+" "+c+" "+(u+e)+" L "+c+" "+(r.y-o)),p="RangeNavigator"===d?p.concat(" L "+(c-o)+" "+(l-o)):p.concat(" L "+(c-o)+" "+l),p=(p=(p="RangeNavigator"===d?p.concat(" L "+c+" "+r.y):p.concat(" L "+c+" "+(r.y+o))).concat(" 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")),p}function a(t){return document.getElementById(t)}function s(t){var i=a(t);i&&e.remove(i)}function h(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",h=i.width,l=i.height,d=t.x,p=t.y,c=t.x+-h/2,u=t.y+-l/2;switch(r){case"Circle":case"Bubble":s="Ellipse",e.merge(o,{rx:h/2,ry:l/2,cx:d,cy:p});break;case"Cross":a="M "+c+" "+p+" L "+(d+h/2)+" "+p+" M "+d+" "+(p+l/2)+" L "+d+" "+(p+-l/2),e.merge(o,{d:a});break;case"HorizontalLine":a="M "+c+" "+p+" L "+(d+h/2)+" "+p,e.merge(o,{d:a});break;case"VerticalLine":a="M "+d+" "+(p+l/2)+" L "+d+" "+(p+-l/2),e.merge(o,{d:a});break;case"Diamond":a="M "+c+" "+p+" L "+d+" "+(p+-l/2)+" L "+(d+h/2)+" "+p+" L "+d+" "+(p+l/2)+" L "+c+" "+p+" z",e.merge(o,{d:a});break;case"Rectangle":a="M "+c+" "+(p+-l/2)+" L "+(d+h/2)+" "+(p+-l/2)+" L "+(d+h/2)+" "+(p+l/2)+" L "+c+" "+(p+l/2)+" L "+c+" "+(p+-l/2)+" z",e.merge(o,{d:a});break;case"Triangle":a="M "+c+" "+(p+l/2)+" L "+d+" "+(p+-l/2)+" L "+(d+h/2)+" "+(p+l/2)+" L "+c+" "+(p+l/2)+" z",e.merge(o,{d:a});break;case"InvertedTriangle":a="M "+(d+h/2)+" "+(p-l/2)+" L "+d+" "+(p+l/2)+" L "+(d-h/2)+" "+(p-l/2)+" L "+(d+h/2)+" "+(p-l/2)+" z",e.merge(o,{d:a});break;case"Pentagon":for(var y=void 0,g=void 0,x=0;x<=5;x++)y=h/2*Math.cos(Math.PI/180*(72*x)),g=l/2*Math.sin(Math.PI/180*(72*x)),a=0===x?"M "+(d+y)+" "+(p+g)+" ":a.concat("L "+(d+y)+" "+(p+g)+" ");a=a.concat("Z"),e.merge(o,{d:a});break;case"Image":s="Image",e.merge(o,{href:n,height:l,width:h,x:c,y:u})}return{renderOption:o,functionName:s}}function d(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.style.cssText=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++)"style"===i[r]?e.style.cssText=t[i[r]]:e.setAttribute(i[r],t[i[r]]);return e},t.prototype.createCanvas=function(){return null},t}(),c=function(){function t(t){this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createCanvas=function(t){var e=document.createElement("canvas");return e.setAttribute("id",this.rootId+"_canvas"),this.ctx=e.getContext("2d"),this.canvasObj=e,this.setCanvasSize(t.width,t.height),this.canvasObj},t.prototype.setCanvasSize=function(t,i){var r=document.getElementById(this.rootId),o=e.isNullOrUndefined(r)?null:r.getBoundingClientRect();e.isNullOrUndefined(this.width)?this.canvasObj.setAttribute("width",t?t.toString():o.width.toString()):this.canvasObj.setAttribute("width",this.width.toString()),e.isNullOrUndefined(this.height)?this.canvasObj.setAttribute("height",i?i.toString():"450"):this.canvasObj.setAttribute("height",this.height.toString())},t.prototype.setAttributes=function(t){this.ctx.lineWidth=this.getOptionValue(t,"stroke-width");var i=this.getOptionValue(t,"stroke-dasharray");if(!e.isNullOrUndefined(i)){var r=i.split(",");this.ctx.setLineDash([parseInt(r[0],10),parseInt(r[1],10)])}this.ctx.strokeStyle=this.getOptionValue(t,"stroke")},t.prototype.drawLine=function(t){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.moveTo(t.x1,t.y1),this.ctx.lineTo(t.x2,t.y2),this.ctx.stroke(),this.ctx.restore()},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]),h=parseFloat(i[a+2]);switch(i[a]){case"M":t.innerR||t.cx||this.ctx.moveTo(s,h);break;case"L":t.innerR||this.ctx.lineTo(s,h);break;case"Q":var l=parseFloat(i[a+3]),d=parseFloat(i[a+4]);this.ctx.quadraticCurveTo(s,h,l,d),a+=2;break;case"C":var p=parseFloat(i[a+3]),c=parseFloat(i[a+4]),u=parseFloat(i[a+5]),y=parseFloat(i[a+6]);this.ctx.bezierCurveTo(s,h,p,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 h=this.getOptionValue(t,"font-size"),l=this.getOptionValue(t,"font-family"),d=this.getOptionValue(t,"font-style").toLowerCase()+" "+s+" "+h+" "+l,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),!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.drawCircularClipPath=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}(),u=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)}}(),y=function(){function t(t,e){this.width=t,this.height=e}return t}(),g=function(){function t(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r}return t}(),x=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,h){void 0===a&&(a="");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=a,l.baseLine=s,l.labelRotation=h,l}return u(e,t),e}(f),v=function(t){function e(e,i,r,o,n,a,s){var h=t.call(this,e)||this;return h.opacity=n,h.fill=i,h.stroke=o,h["stroke-width"]=r,h["stroke-dasharray"]=a,h.d=s,h}return u(e,t),e}(f),b=function(){function t(t,e){this.x=t,this.y=e}return t}(),w=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)}}(),L=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 w(i,t),L([e.Property(null)],i.prototype,"size",void 0),L([e.Property("")],i.prototype,"color",void 0),L([e.Property("Segoe UI")],i.prototype,"fontFamily",void 0),L([e.Property("Normal")],i.prototype,"fontWeight",void 0),L([e.Property("Normal")],i.prototype,"fontStyle",void 0),L([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 w(i,t),L([e.Property("")],i.prototype,"color",void 0),L([e.Property(1)],i.prototype,"width",void 0),L([e.Property("")],i.prototype,"dashArray",void 0),i}(e.ChildProperty),T=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return w(i,t),L([e.Property(0)],i.prototype,"x",void 0),L([e.Property(0)],i.prototype,"y",void 0),L([e.Property(0)],i.prototype,"width",void 0),L([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 w(i,t),L([e.Property(0)],i.prototype,"x",void 0),L([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 w(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.areaMargin=10,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){this.enableRTL&&this.element.setAttribute("dir","ltr");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,n=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),s=a(this.element.id+"_group"),l=(this.enableRTL?this.elementSize.width-i/2:2*this.marginX+i/2)+(e?this.arrowPadding:0),d=0,p=this.shapes;d<p.length;d++){var c=p[d];if("None"!==c){if(r=new v(this.element.id+"_Trackball_"+o,this.palette[o],1,"#cccccc",1,null),this.markerPoint[o]){var u=0;this.header.indexOf("<br")>-1&&(u=this.header.split(/<br.*?>/g).length+o),n.appendChild(h(new b(l,this.markerPoint[o]-this.padding+(t?this.arrowPadding:u)),c,new y(i,i),"",r,null))}o++}}s.appendChild(n)},l.prototype.renderTooltipElement=function(t,i){var o,s=a(this.element.id),h=new b(0,0),l=new b(0,0),d=a(this.element.id+"_svg"),p=a(this.element.id+"_group"),c=a(this.element.id+"_path"),u=!1,y=!1,f=!1,m=0,v=0;if(""!==this.header&&(this.elementSize.height+=this.marginY),this.content.length>1?(o=this.sharedTooltipLocation(t,this.location.x,this.location.y),u=!0):(o=this.tooltipLocation(t,i,h,l),this.inverted?m=(y=o.x<i.x+this.clipBounds.x)?0:this.arrowPadding:(f=!(u=o.y<i.y+this.clipBounds.y),v=u?0:this.arrowPadding)),""!==this.header){var w=2,L=0,S=this.isWrap?this.wrappedText:this.header;this.isWrap&&"string"==typeof S&&(S.indexOf("<")>-1||S.indexOf(">")>-1)&&(w=S.split("<br>").length),this.header.indexOf("<br")>-1&&(L=5*(this.header.split(/<br.*?>/g).length-1));var P=r(this.isWrap?this.wrappedText:this.header,this.textStyle).height+this.marginY*w+(f?this.arrowPadding:0)+(this.isWrap?5:L),T="M "+(3*this.marginX+(y||u||f?0:this.arrowPadding))+" "+P+"L "+(o.width+(y||u||f?0:this.arrowPadding)-2*this.marginX)+" "+P,O=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:.8,stroke:this.themeStyle.tooltipHeaderLine,d:T});p.appendChild(O)}var A=this.border.width/2,C=new g(A+m,A+v,o.width-A,o.height-A);if(p.setAttribute("opacity","1"),!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(s,o.x,o.y):this.animateTooltipDiv(s,o),d.setAttribute("height",(o.height+this.border.width+(this.inverted?0:this.arrowPadding)+5).toString()),d.setAttribute("width",(o.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,f=this.tooltipPlacement.indexOf("Bottom")>-1,y=this.tooltipPlacement.indexOf("Left")>-1),c.setAttribute("d",n(this.rx,this.ry,C,h,this.arrowPadding,u,f,y,l.x,l.y,this.controlName)),this.enableShadow&&"Bootstrap4"!==this.theme){var k=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(#"+k+")");var F='<filter id="'+k+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';F+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',F+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var B=this.renderer.createDefs();B.setAttribute("id",this.element.id+"SVG_tooltip_definition"),p.appendChild(B),B.innerHTML=F}var E="Fluent"===this.theme?"#FFFFFF":"FluentDark"===this.theme?"#323130":this.border.color;return c.setAttribute("stroke",E),e.isNullOrUndefined(this.border.dashArray)||c.setAttribute("stroke-dasharray",this.border.dashArray),this.changeText(new b(m,v),f,!y&&!u&&!f),this.revert&&(this.inverted=!this.inverted,this.revert=!1),new x(f,!y&&!u&&!f)},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,n,h,l,p=0,c=0,u=0,g=e.extend({},this.textStyle,null,!0).properties,x=a(this.element.id+"_group"),f="";this.findFormattedText(),this.isWrap=!1;var v="rtl"===document.body.getAttribute("dir")&&!this.enableRTL?"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,L=r(this.formattedText[0],g).width+2*this.marginX+this.arrowPadding,S=this.location.x-L<this.location.x,P=this.areaBounds.x+this.areaBounds.width<this.location.x+L,T=""!==b?this.marginY:0,O=!0,A=!0;this.markerPoint=[];var C,k=this.shapes.length>0?10:0,F=this.shapes.length>0?5:0,B="Normal",E=this.themeStyle.tooltipLightLabel,N=22/parseFloat("13px")*parseFloat(g.size),z=[];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,""),R=d(_,g,null,x),I=1===this.formattedText.length&&this.formattedText[0].indexOf(" : <b>")>-1,M=""!==this.header,j=M&&w?16:13,D=0,U=this.formattedText.length;D<U;D++)if(n=this.formattedText[D].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g),0===D&&!I&&this.isTextWrap&&(this.leftSpace<L||S)&&(this.rightSpace<L||P)&&(C=Math.round(this.leftSpace>this.rightSpace?this.leftSpace/j:this.rightSpace/j),n=(""!==b?b:this.formattedText[D]).match(new RegExp(".{1,"+C+"}","g")),this.wrappedText=w?"<b>"+n.join("<br>")+"</b>":n.join("<br>"),this.isWrap=n.length>1),""!==n[0]){0===D&&""!==b||this.markerPoint.push((""!==b?this.marginY:0)+_.y+p);for(var V=0,W=n.length;V<W;V++){i=n[V].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,this.enableRTL?"<br>‎: <br>":"<br>‎:<br>").split("<br>"),this.enableRTL&&i.length>0&&n[V].match(/:/g)&&(i[0]=i[0].trim(),i.reverse()),u=0,A=!0,p+=N;for(var G=0,H=i.length;G<H;G++)h=i[G],this.enableRTL&&""!==h&&this.isRTLText(h)&&(h=h.concat("‎")),/\S/.test(h)||""===h||(h=" "),(!A&&" "===h||""!==h.replace(/<b>/g,"").replace(/<\/b>/g,"").trim())&&(u+=" "!==h?4:0,A&&!O?(this.header.indexOf("<br")>-1&&0!==D&&(T+=this.header.split(/<br.*?>/g).length),l={x:2*this.marginX+(k+F),dy:N+(A?T:0),fill:""},T=null):l=O&&A?{x:""===b?2*this.marginX+(k+F):2*this.marginX+(this.isWrap?k+F:0)}:{},A=!1,o=this.renderer.createTSpan(l,""),R.appendChild(o),h.indexOf("<b>")>-1||w&&0===G&&0===D&&(M||this.isWrap)?(B="bold",E=this.themeStyle.tooltipBoldLabel,f="font-weight:"+B,g.fontWeight=B,o.setAttribute("fill",this.textStyle.color||E)):(f="bold"===B?"font-weight:"+B:"",g.fontWeight=B,o.setAttribute("fill",this.textStyle.color||E)),(h.indexOf("</b>")>-1||w&&G===H-1&&0===D&&(M||this.isWrap))&&(B="Normal",E=this.themeStyle.tooltipLightLabel),o.textContent=h=this.getTooltipTextContent(h),u+=r(h,g).width,""!==f&&(o.style.fontWeight=f.split("font-weight:")[1],o.style.color=o.getAttribute("fill")),o.style.fontFamily="inherit",o.style.fontStyle="inherit",o.style.fontSize="inherit",O=!1);u-=4,c=Math.max(c,u),z.push(u)}}this.elementSize=new y(c+(c>0?2*this.marginX:0),p),this.elementSize.width+=k+F;var Q=R.childNodes[0];if(""!==b&&Q&&!this.isWrap){g.fontWeight="bold";var X=(this.elementSize.width+2*this.padding)/2-r(b,g).width/2;Q.setAttribute("x",X.toString())}this.renderContentRTL(R,M,k+F,z)},l.prototype.renderContentRTL=function(t,i,r,o){if(this.enableRTL)for(var n=void 0,a=i?1:0,s=0;s<t.childNodes.length;s++)n=t.childNodes[s],i&&!(s>0)||e.isNullOrUndefined(n.getAttribute("x"))||(n.setAttribute("x",(this.elementSize.width-(r+o[a])).toString()),a++)},l.prototype.getTooltipTextContent=function(t){var i=t.match(/<[a-zA-Z\/](.|\n)*?>/g);if(e.isNullOrUndefined(i))return t;for(var r=this.isRTLText(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.isRTLText=function(t){return/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t)},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 n=o.firstElementChild;if(n&&e.remove(n),r.cancel)e.remove(a(this.element.id+"_tooltip"));else{for(var s=e.createElement("div",{id:this.element.id+"parent_template"}),h=this.templateFn(this.data,this.controlInstance,s.id,s.id+"_blazorTemplate","");h&&h.length>0;)e.isBlazor()||1===h.length?(s.appendChild(h[0]),h=null):s.appendChild(h[0]);o.appendChild(s);var l=this.isCanvas?s:this.element,d=l.getBoundingClientRect();this.padding=0,this.elementSize=new y(d.width,d.height);var p=this.shared?this.sharedTooltipLocation(t,this.location.x,this.location.y):this.tooltipLocation(t,i,new b(0,0),new b(0,0));if(!this.enableAnimation||this.isFirst||this.crosshair?this.updateDiv(l,p.x,p.y):this.animateTooltipDiv(this.element,p),this.blazorTemplate){var c=function(){var e=a(u.element.id).getBoundingClientRect();u.elementSize=new y(e.width,e.height);var r=u.tooltipLocation(t,i,new b(0,0),new b(0,0));u.updateDiv(a(u.element.id),r.x,r.y)},u=this;c.bind(u,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 g(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.x<t.x&&(n.x=t.x),n},l.prototype.getCurrentPosition=function(t,e,i,r){var o=this.tooltipPlacement,n=this.clipBounds.x,a=this.clipBounds.y,s=this.offset,h=this.elementSize.width+2*this.marginX,l=this.elementSize.height+2*this.marginY,d=new b(e.x,e.y);return"Top"===o||"Bottom"===o?(d=new b(d.x+n-this.elementSize.width/2-this.padding,d.y+a-this.elementSize.height-2*this.padding-this.arrowPadding-s),i.x=r.x=h/2,"Bottom"===o&&(d.y=e.y+a+s),t.x+t.width<d.x+h?(d.x=t.width>h?t.x+t.width-h+6:t.x,i.x=r.x=t.width>h?t.x+e.x-d.x:e.x):t.x>d.x&&(d.x=t.x,i.x=r.x=e.x)):(d=new b(d.x+n+s,d.y+a-this.elementSize.height/2-this.padding),i.y=r.y=l/2,"Left"===o&&(d.x=e.x+n-s-(h+this.arrowPadding)),t.y+t.height<d.y+l?(d.y=t.height>l?t.y+t.height-l+6:t.y,i.y=r.y=t.height>l?t.y+e.y-d.y:e.y):t.y>d.y&&(d.y=t.y,i.y=r.y=e.y)),new g(d.x,d.y,h,l)},l.prototype.tooltipLocation=function(t,i,r,n){if(!e.isNullOrUndefined(this.tooltipPlacement))return this.getCurrentPosition(t,i,r,n);var a=new b(i.x,i.y),s=this.elementSize.width+2*this.marginX,h=this.elementSize.height+2*this.marginY,l=this.offset,d=this.clipBounds.x,p=this.clipBounds.y,c=t.x,u=t.y;return this.outOfBounds=!1,this.inverted?(a=new b(a.x+d+l,a.y+p-this.elementSize.height/2-this.padding),r.y=n.y=h/2,(a.x+s+this.arrowPadding>c+t.width||this.isNegative)&&(a.x=(i.x>t.width+t.x?t.width:i.x)+d-l-(s+this.arrowPadding)),a.x<c&&(a.x=(i.x<0?0:i.x)+d+l),a.x+s+this.arrowPadding>c+t.width&&(a.x=(i.x>t.width+t.x?t.width:i.x)+d-l-(s+this.arrowPadding)),a.y<=u&&(r.y-=u-a.y,n.y-=u-a.y,a.y=u),a.y+h>=u+t.height&&(r.y+=a.y+h-(u+t.height),n.y+=a.y+h-(u+t.height),a.y-=a.y+h-(u+t.height)),r.y+this.arrowPadding>h-this.ry&&(r.y=h-this.ry-this.arrowPadding,n.y=h),r.y-this.arrowPadding<this.ry&&(r.y=n.y=this.ry+this.arrowPadding),"Chart"===this.controlName&&((a.y+r.y<this.areaMargin+this.arrowPadding||t.y+t.height-(a.y+r.y)<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),o(a.x,a.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,a=new b(i.x+d-this.padding-this.elementSize.width/2,i.y+p-this.elementSize.height-2*this.padding-l-this.arrowPadding),this.revert=!0,n.x=r.x=s/2,n.y=r.y=0,(a.y<u||this.isNegative)&&(a.y=(i.y<0?0:i.y)+l+p),a.y+this.arrowPadding+h>u+t.height&&(a.y=Math.min(i.y,u+t.height)+p-this.elementSize.height-2*this.padding-l-this.arrowPadding),n.x=s/2,a.x<c&&(n.x-=c-a.x,r.x-=c-a.x,a.x=c),a.x+s>t.width+c&&(r.x+=a.x+s-(t.width+c),n.x+=a.x+s-(t.width+c),a.x-=a.x+s-(t.width+c)),this.arrowPadding+r.x>s-this.rx&&(n.x=s-this.rx-this.arrowPadding,r.x=s-this.rx-this.arrowPadding),r.x-this.arrowPadding<this.rx&&(r.x=n.x=this.rx+this.arrowPadding)))):(a=new b(a.x+d-this.elementSize.width/2-this.padding,a.y+p-this.elementSize.height-2*this.padding-this.arrowPadding-l),r.x=n.x=s/2,(a.y<u||this.isNegative)&&(a.y=(i.y<0?0:i.y)+p+l),a.y+h+this.arrowPadding>u+t.height&&(a.y=Math.min(i.y,u+t.height)+p-this.elementSize.height-2*this.padding-this.arrowPadding-l),(a.x+s>c+t.width&&a.y<u||this.isNegative)&&(a.y=(i.y<0?0:i.y)+p+l),n.x=s/2,a.x<c&&(r.x-=c-a.x,n.x-=c-a.x,a.x=c),a.x+s>c+t.width&&(r.x+=a.x+s-(c+t.width),n.x+=a.x+s-(c+t.width),a.x-=a.x+s-(c+t.width)),a.x<c&&(r.x-=c-a.x,n.x-=c-a.x,a.x=c),r.x+this.arrowPadding>s-this.rx&&(r.x=s-this.rx-this.arrowPadding,n.x=s-this.rx-this.arrowPadding),r.x-this.arrowPadding<this.rx&&(r.x=n.x=this.rx+this.arrowPadding),"Chart"===this.controlName&&((t.x+t.width-(a.x+r.x)<this.areaMargin+this.arrowPadding||a.x+r.x<this.areaMargin+this.arrowPadding)&&(this.outOfBounds=!0),o(a.x,a.y,t)&&!this.outOfBounds||(this.inverted=!this.inverted,this.revert=!0,a=new b(i.x+l+d,i.y+p-this.elementSize.height/2-this.padding),n.x=r.x=0,n.y=r.y=h/2,(a.x+this.arrowPadding+s>c+t.width||this.isNegative)&&(a.x=(i.x>t.width?t.width:i.x)+d-l-(this.arrowPadding+s)),a.x<c&&(a.x=(i.x<0?0:i.x)+l+d),a.y<=u&&(n.y-=u-a.y,r.y-=u-a.y,a.y=u),a.y+h>=t.height+u&&(r.y+=a.y+h-(t.height+u),n.y+=a.y+h-(t.height+u),a.y-=a.y+h-(t.height+u)),this.arrowPadding+r.y>h-this.ry&&(r.y=h-this.arrowPadding-this.ry,n.y=h),r.y-this.arrowPadding<this.ry&&(r.y=this.arrowPadding+this.ry,n.y=0)))),new g(a.x,a.y,s,h)},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,"Chart"===o.controlName&&o.shared&&!o.enableRTL?(t.style.transition="transform 0.1s",t.style.transform="translate("+(n+r*(i.x-n))+"px,"+(a+r*(i.y-a))+"px)"):(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){"Chart"!==this.controlName||!this.shared||this.crosshair||this.enableRTL?(t.style.left=e+"px",t.style.top=i+"px"):t.style.transform="translate("+e+"px,"+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()):this.templateFn=e.compile(this.template)}catch(t){this.templateFn=e.compile(this.template)}},l.prototype.fadeOut=function(){var t=this,i=a(this.isCanvas&&!this.template?this.element.id+"_svg":this.element.id),r=a(this.element.id);if(i){var o=i.firstChild;if(o.nodeType!=Node.ELEMENT_NODE&&(o=i.firstElementChild),this.isCanvas&&!this.template&&(o=document.getElementById(this.element.id+"_group")?document.getElementById(this.element.id+"_group"):o),!o)return null;var n=parseFloat(o.getAttribute("opacity"));n=e.isNullOrUndefined(n)?1:n,new e.Animation({}).animate(o,{duration:200,progress:function(e){t.progressAnimation(o,n,e.timeStamp/e.duration)},end:function(){t.fadeOuted=!0,t.endAnimation(o),r.style.transition=""}})}},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()},L([e.Property(!1)],l.prototype,"enable",void 0),L([e.Property(!1)],l.prototype,"shared",void 0),L([e.Property(!1)],l.prototype,"crosshair",void 0),L([e.Property(!0)],l.prototype,"enableShadow",void 0),L([e.Property(null)],l.prototype,"fill",void 0),L([e.Property("")],l.prototype,"header",void 0),L([e.Property(.75)],l.prototype,"opacity",void 0),L([e.Complex({size:"13px",fontWeight:"Normal",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"},S)],l.prototype,"textStyle",void 0),L([e.Property(null)],l.prototype,"template",void 0),L([e.Property(!0)],l.prototype,"enableAnimation",void 0),L([e.Property(300)],l.prototype,"duration",void 0),L([e.Property(!1)],l.prototype,"inverted",void 0),L([e.Property(!1)],l.prototype,"isNegative",void 0),L([e.Complex({color:"#cccccc",width:.5},P)],l.prototype,"border",void 0),L([e.Property([])],l.prototype,"content",void 0),L([e.Property(10)],l.prototype,"markerSize",void 0),L([e.Complex({x:0,y:0},O)],l.prototype,"clipBounds",void 0),L([e.Property([])],l.prototype,"palette",void 0),L([e.Property([])],l.prototype,"shapes",void 0),L([e.Complex({x:0,y:0},O)],l.prototype,"location",void 0),L([e.Property(0)],l.prototype,"offset",void 0),L([e.Property(4)],l.prototype,"rx",void 0),L([e.Property(4)],l.prototype,"ry",void 0),L([e.Property(5)],l.prototype,"marginX",void 0),L([e.Property(5)],l.prototype,"marginY",void 0),L([e.Property(7)],l.prototype,"arrowPadding",void 0),L([e.Property(null)],l.prototype,"data",void 0),L([e.Property("Material")],l.prototype,"theme",void 0),L([e.Complex({x:0,y:0,width:0,height:0},T)],l.prototype,"areaBounds",void 0),L([e.Property(null)],l.prototype,"availableSize",void 0),L([e.Property()],l.prototype,"blazorTemplate",void 0),L([e.Property(!1)],l.prototype,"isCanvas",void 0),L([e.Property(!1)],l.prototype,"isTextWrap",void 0),L([e.Property(null)],l.prototype,"tooltipPlacement",void 0),L([e.Property(null)],l.prototype,"controlInstance",void 0),L([e.Property("")],l.prototype,"controlName",void 0),L([e.Event()],l.prototype,"tooltipRender",void 0),L([e.Event()],l.prototype,"loaded",void 0),L([e.Event()],l.prototype,"animationComplete",void 0),L([e.Property(!1)],l.prototype,"enableRTL",void 0),l=L([e.NotifyPropertyChanges],l)}(e.Component);return t.TextStyle=S,t.TooltipBorder=P,t.AreaBounds=T,t.ToolLocation=O,t.Tooltip=A,t.getTooltipThemeColor=i,t.measureText=r,t.withInAreaBounds=o,t.findDirection=n,t.Size=y,t.Rect=g,t.Side=x,t.CustomizeOption=f,t.TextOption=m,t.getElement=a,t.removeElement=s,t.drawSymbol=h,t.calculateShapes=l,t.PathOption=v,t.textElement=d,t.TooltipLocation=b,t.SvgRenderer=p,t.CanvasRenderer=c,t}({},ej.base),this.ejs=ej;
//# sourceMappingURL=ej2-svg-base.min.js.map
/*!
* filename: index.d.ts
* version : 20.4.48
* version : 20.4.53
* 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@20.4.42",
"_id": "@syncfusion/ej2-svg-base@20.4.48",
"_inBundle": false,
"_integrity": "sha512-snUzCzvOZi3y8STBjWCe+HkgIibtWEnRifoel0VQKIoiiFg59O02EebpzqCu5GgTOdTGMOH3J05FPDrBtk82PA==",
"_integrity": "sha512-k4f2Ax2XAVaV/2HIYlcPi4UPDgwaVxA4e7FeNSaptkS10D5cwJ/pg9bsrBgk8ZZ4Ko4fhDQA0JoXaYp9EWNOaw==",
"_location": "/@syncfusion/ej2-svg-base",

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

],
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-svg-base/-/ej2-svg-base-20.4.42.tgz",
"_shasum": "dfad1a64a982489bcc1222479b89b7062e20e312",
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-svg-base/-/ej2-svg-base-20.4.48.tgz",
"_shasum": "0917ef26d53c6d6d981ff1d310ed74fa0436a06a",
"_spec": "@syncfusion/ej2-svg-base@*",

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

"dependencies": {
"@syncfusion/ej2-base": "~20.4.48"
"@syncfusion/ej2-base": "~20.4.51"
},

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

"typings": "index.d.ts",
"version": "20.4.48",
"version": "20.4.53",
"sideEffects": true
}

@@ -705,2 +705,5 @@ var __extends = (this && this.__extends) || (function () {

}
if ((location.x + width > boundsX + bounds.width) && location.y < boundsY || (this.isNegative)) {
location.y = (symbolLocation.y < 0 ? 0 : symbolLocation.y) + clipY + markerHeight;
}
tipLocation.x = width / 2;

@@ -717,2 +720,7 @@ if (location.x < boundsX) {

}
if (location.x < boundsX) {
arrowLocation.x -= (boundsX - location.x);
tipLocation.x -= (boundsX - location.x);
location.x = boundsX;
}
if (arrowLocation.x + this.arrowPadding > width - this.rx) {

@@ -773,2 +781,6 @@ arrowLocation.x = width - this.rx - this.arrowPadding;

}
if ((location.x + width + this.arrowPadding > boundsX + bounds.width)) {
location.x = (symbolLocation.x > bounds.width + bounds.x ? bounds.width : symbolLocation.x)
+ clipX - markerHeight - (width + this.arrowPadding);
}
if (location.y <= boundsY) {

@@ -775,0 +787,0 @@ arrowLocation.y -= (boundsY - location.y);

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