New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fusioncharts/core

Package Overview
Dependencies
Maintainers
0
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fusioncharts/core - npm Package Compare versions

Comparing version 1.9.0 to 1.9.1-beta.3

6

package.json
{
"name": "@fusioncharts/core",
"version": "1.9.0",
"version": "1.9.1-beta.3",
"description": "JavaScript Data Visualisation Library",

@@ -26,3 +26,3 @@ "author": "FusionCharts, Inc. <support@fusioncharts.com>",

"@babel/runtime": "^7.9.2",
"@fusioncharts/utils": "^1.9.0",
"@fusioncharts/utils": "^1.9.1-beta.3",
"core-js": "^3.0.1",

@@ -47,3 +47,3 @@ "ramda": "^0.29.0"

],
"gitHead": "4305fc37009cae4ff22131c4ca2864f7bdd18245"
"gitHead": "654df8c200e93a3d25da4d6682243d5679fc6c77"
}

@@ -1,1 +0,1 @@

"use strict";exports.__esModule=true;exports.default=_default;var _raphael=require("./raphael.lib");function _default(R){if(R.svg){var has="hasOwnProperty",tSpanStr="tspan",vAlignStr="vertical-align",lineHeightStr="line-height",fontSizeStr="font-size",imageStr="image",noneStr="none",notToTuneStr="_do-not-tune",textStr="text",textPathStr="textpath",rtlStr="rtl",hasSup=false,hasSub=false,arrayStr="array",middleStr="middle",bottomStr="bottom",topStr="top",pxStr="px",initialStr="initial",fnStr="function",brStr="<br>",hiddenStr="hidden",visibleStr="visible",objectStr="object",fillStr="fill",transformStr="transform",visibilityStr="visibility",IESplTspanAttr={visibility:hiddenStr,"font-size":"0px"},Str=String,VERTICAL="vertical",HORIZONTAL="horizontal",PRESERVESTRING="pre",BLANKSTRING="",toFloat=parseFloat,toInt=parseInt,vAlignMultiplier={top:0,bottom:-1,middle:-.5},win=R._g.win,navigator=win.navigator,isIE=false||!!document.documentMode,math=Math,UNDEF,mmax=math.max,abs=math.abs,pow=math.pow,sqrt=math.sqrt,xlinkRegx=/^xlink:/,separator=/[, ]+/,textBreakRegx=/\n|<br\s*?\/?>/i,ltgtbrRegex=/&lt|&gt|&quot|&#039|&#034|<br/i,nbspRegex=/&nbsp;|&#160;|&#xA0;/g,arrayShift=Array.prototype.shift,zeroStrokeFix=!!(/AppleWebKit/.test(navigator.userAgent)&&(!/Chrome/.test(navigator.userAgent)||navigator.appVersion.match(/Chrome\/(\d+)\./)[1]<29)),eve=R.eve,E="",S=" ",xlink="http://www.w3.org/1999/xlink",svgNSStr="http://www.w3.org/2000/svg",isIpad=!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform),typeStringSTR="string",markers={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},shapeRenderingAttrs={speed:"optimizeSpeed",crisp:"crispEdges",precision:"geometricPrecision"},nav=navigator.userAgent.toLowerCase(),isIE9=function(){var verIE=nav.indexOf("msie")!=-1?parseInt(nav.split("msie")[1]):false;if(verIE&&verIE===9){return true}else{return false}}(),supportsPointer=R.supportsPointer,supportsTouch=R.supportsTouch,markerCounter={},preLoad=function preLoad(elem,ig,isURL,paper){R._preload(isURL[1],(function(){var w=this.offsetWidth,h=this.offsetHeight;$(elem,{width:w,height:h});$(ig,{width:w,height:h});paper.safari()}))},quickExtend=function quickExtend(obj1,obj2){if(obj2){for(var key in obj2){obj1[key]=obj2[key]}}},lastHoveredInfo={elementInfo:[]},doc=R._g.doc,win=R._g.win,safeMouseEventMapping={mouseover:"touchstart",mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove",mouseout:"touchend"},createValidTextNode=function createValidTextNode(text,abbrArr){var underlineRegex=/<under>/g,underlineEndRegex=/<\/under>/g,boldRegex=/<bold>/g,boldEndRegex=/<\/bold>/g,emphasisRegex=/<em>/g,emphasisEndRegex=/<\/em>/g,strikeRegex=/<strike>/g,strikeEndRegex=/<\/strike>/g,subscriptRegex=/<sub[\s]+([^>]+)>|<sub>/g,subscriptEndRegex=/<\/sub>/g,superscriptRegex=/<sup[\s]+([^>]+)>|<sup>/g,superscriptEndRegex=/<\/sup>/g,abbrRegex=/<abbr[\s]+([^>]+)>/g,abbrEndRegex=/<\/abbr>/g,spanRegex=/<span[\s]+([^>]+)>|<span>/g,spanEndRegex=/<\/span>/g,anchorRegex=/<a[\s]+([^>]+)>/g,anchorEndRegex=/<\/a>/g,lastAttrList=[],index,subtext,tspanArray=[],startIndex=0,sortedIndices,underlinetagIndices=getTagIndices(underlineRegex,underlineEndRegex,text,"<under>","</under>"),boldtagIndices=getTagIndices(boldRegex,boldEndRegex,text,"<bold>","</bold>"),emtagIndices=getTagIndices(emphasisRegex,emphasisEndRegex,text,"<em>","</em>"),strikeTagIndices=getTagIndices(strikeRegex,strikeEndRegex,text,"<strike>","</strike>"),subscriptTagIndices=getSubSupTagIndices(subscriptRegex,subscriptEndRegex,text,"<sub>","</sub>"),superscriptTagIndices=getSubSupTagIndices(superscriptRegex,superscriptEndRegex,text,"<sup>","</sup>"),abbrTagIndices=getAbbrTagIndices(abbrRegex,abbrEndRegex,text,"<abbr>","</abbr>"),anchorTagIndices=getAnchorTagIndices(anchorRegex,anchorEndRegex,text,"<a>","</a>"),spanTagIndices=getSpanTagIndices(spanRegex,spanEndRegex,text,"<span>","</span>"),sortedIndices=sortTags(underlinetagIndices,boldtagIndices,emtagIndices,strikeTagIndices,subscriptTagIndices,superscriptTagIndices,abbrTagIndices,anchorTagIndices,spanTagIndices);if(sortedIndices.length){if(sortedIndices[0].index>startIndex){subtext=text.substring(startIndex,sortedIndices[0].index);tspanArray=createtspanArray(tspanArray,subtext,lastAttrList,abbrArr,sortedIndices);startIndex=sortedIndices[0].index+sortedIndices[0].tagName.length}for(index=0;index<sortedIndices.length;index++){if(sortedIndices[index+1]!==UNDEF){lastAttrList=createAttrList(lastAttrList,sortedIndices[index]);if(startIndex===0&&sortedIndices[index].index===0){subtext=text.substring(startIndex+sortedIndices[index].tagName.length,sortedIndices[index+1].index)}else{subtext=text.substring(startIndex,sortedIndices[index+1].index)}tspanArray=createtspanArray(tspanArray,subtext,lastAttrList,sortedIndices[index],abbrArr,sortedIndices);startIndex=sortedIndices[index+1].index+sortedIndices[index+1].tagName.length}}if(startIndex<text.length){subtext=text.substring(startIndex,text.length);tspanArray=createtspanArray(tspanArray,subtext,[],abbrArr,sortedIndices)}}return tspanArray},tagHash={"<bold>":{action:"add",tagAttr:"font-weight",tagAttrVal:"bold"},"</bold>":{action:"remove",actionTag:"<bold>"},"<under>":{action:"add",tagAttr:"text-decoration",tagAttrVal:"underline"},"</under>":{action:"remove",actionTag:"<under>"},"<em>":{action:"add",tagAttr:"font-style",tagAttrVal:"italic"},"</em>":{action:"remove",actionTag:"<em>"},"<strike>":{action:"add",tagAttr:"text-decoration",tagAttrVal:"line-through"},"</strike>":{action:"remove",actionTag:"<strike>"},"<sub>":{action:"add",tagAttr:"baseline-shift",tagAttrVal:"sub"},"</sub>":{action:"remove",actionTag:"<sub>"},"<sup>":{action:"add",tagAttr:"baseline-shift",tagAttrVal:"super"},"</sup>":{action:"remove",actionTag:"<sup>"},"<abbr>":{action:"add",tagAttr:"text-decoration",tagAttrVal:"underline"},"</abbr>":{action:"remove",actionTag:"<abbr>"},"<a>":{action:"add"},"</a>":{action:"remove",actionTag:"<a>"},"<span>":{action:"add"},"</span>":{action:"remove",actionTag:"<span>"}},createAttrList=function createAttrList(attrArr,sortedIndex){var i,abbrReg=/<abbr[\s]+([^>]+)>/g,anchorReg=/<a[\s]+([^>]+)>/g,spanReg=/<span[\s]+([^>]+)>/g,subReg=/<sub[\s]+([^>]+)>/g,supReg=/<sup[\s]+([^>]+)>/g,obj;if(sortedIndex.tagName.match(abbrReg)){obj=MergeRecursive({tag:"<abbr>",sortedIndex:sortedIndex});attrArr.push(obj)}else if(sortedIndex.tagName.match(anchorReg)){obj=MergeRecursive({tag:"<a>",sortedIndex:sortedIndex});attrArr.push(obj)}else if(sortedIndex.tagName.match(spanReg)){obj=MergeRecursive({tag:"<span>",sortedIndex:sortedIndex});attrArr.push(obj)}else if(sortedIndex.tagName.match(subReg)){obj=MergeRecursive({tag:"<sub>",sortedIndex:sortedIndex});attrArr.push(obj)}else if(sortedIndex.tagName.match(supReg)){obj=MergeRecursive({tag:"<sup>",sortedIndex:sortedIndex});attrArr.push(obj)}else if(tagHash[sortedIndex.tagName].action==="add"){obj=MergeRecursive({tag:sortedIndex.tagName,sortedIndex:sortedIndex});attrArr.push(obj)}else if(tagHash[sortedIndex.tagName].action==="remove"){for(i=attrArr.length-1;i>=0;i--){if(attrArr[i].tag===tagHash[sortedIndex.tagName].actionTag){attrArr.splice(i,1);break}}}return attrArr},createtspanArray=function createtspanArray(tspanArray,str,lastAttr,indicesObj,abbrArr,sortedIndices){var textNode=R._g.doc.createTextNode(str),obj={},hasAnchor=false,hasAbbr=false,hasSpan=false,title="",style,anchor,tspan,i,j;if(isIE||_raphael.isFirefox){if(hasSub){obj["dy"]=-6;hasSub=false}if(hasSup){obj["dy"]=6;hasSup=false}}if(!lastAttr.length){tspan=$("tspan",obj);tspan.appendChild(textNode);tspanArray.push(tspan)}else{for(i=0;i<lastAttr.length;i++){if(lastAttr[i].tag==="<abbr>"){hasAbbr=true;title=lastAttr[i].sortedIndex.title}else if(lastAttr[i].tag==="<a>"){hasAnchor=true;if(lastAttr[i].href!==""){obj["href"]=lastAttr[i].sortedIndex.href}if(indicesObj.target!==""){obj["target"]=lastAttr[i].sortedIndex.target}if(indicesObj.hreflang!==""){obj["hreflang"]=lastAttr[i].sortedIndex.hreflang}if(indicesObj.referrerpolicy!==""){obj["referrerpolicy"]=lastAttr[i].sortedIndex.referrerpolicy}if(indicesObj.rel!==""){obj["rel"]=lastAttr[i].sortedIndex.rel}anchor=$("a",obj)}else if(lastAttr[i].tag==="<span>"){hasSpan=true;style=lastAttr[i].sortedIndex.style}else if(lastAttr[i].tag==="<sub>"){hasSub=true;style=lastAttr[i].sortedIndex.style}else if(lastAttr[i].tag==="<sup>"){hasSup=true;style=lastAttr[i].sortedIndex.style}if(tagHash[lastAttr[i].tag].tagAttr&&tagHash[lastAttr[i].tag].tagAttrVal){if(isIE||_raphael.isFirefox){if(lastAttr[i].tag==="<sup>"){obj["dy"]=-6;hasSup=true}else if(lastAttr[i].tag==="<sub>"){obj["dy"]=6;hasSub=true}}obj[tagHash[lastAttr[i].tag].tagAttr]=tagHash[lastAttr[i].tag].tagAttrVal}}if(hasAnchor){if(str!==""){tspan=$("tspan",obj);tspan.appendChild(textNode);anchor.appendChild(tspan);tspanArray.push(anchor);hasAnchor=false}}else if(hasAbbr){if(str!==""){tspan=$("tspan",obj);tspan.appendChild(textNode);abbrArr.push({tspan:tspan,title:title});tspanArray.push(tspan)}}else if(hasSpan){if(str!==""){obj=MergeRecursive(obj,style);tspan=$("tspan",obj);tspan.appendChild(textNode);tspanArray.push(tspan)}}else if(hasSub||hasSup){if(str!==""){obj=MergeRecursive(obj,style);tspan=$("tspan",obj);tspan.appendChild(textNode);tspanArray.push(tspan)}}else{if(str!==""){tspan=$("tspan",obj);tspan.appendChild(textNode);tspanArray.push(tspan)}}}return tspanArray},MergeRecursive=function MergeRecursive(obj1,obj2){for(var p in obj2){try{if(obj2[p].constructor==Object){obj1[p]=MergeRecursive(obj1[p],obj2[p])}else{obj1[p]=obj2[p]}}catch(e){obj1[p]=obj2[p]}}return obj1},sortTags=function sortTags(u,b,em,strike,sub,sup,abbr,a,sp){var i,j,tagArr=[u,b,em,strike,sub,sup,abbr,a,sp],res=[];for(j=0;j<tagArr.length;j++){for(var key in tagArr[j]){if(tagArr[j][key].length){for(i=0;i<tagArr[j][key].length;i++){res.push(tagArr[j][key][i])}}}}res=res.sort((function(a,b){return a.index-b.index}));return res},getAbbrTagIndices=function getAbbrTagIndices(abbrRegex,abbrEndRegex,text,tagText,endtagText){var tagindices=[],result,dummyNode,testAbbr,title,endtagindices=[];while(result=abbrRegex.exec(text)){dummyNode=document.createElement("p");testAbbr=result[0]+"Dummy</abbr>";dummyNode.innerHTML=testAbbr;title=dummyNode.childNodes[0]?dummyNode.childNodes[0].title:"";tagindices.push({tagName:result[0],index:result.index,title:title?title:""})}while(result=abbrEndRegex.exec(text)){endtagindices.push({tagName:endtagText,index:result.index})}return{tag:tagindices,endtag:endtagindices}},getStyles=function getStyles(el){var output={};if(!el||!el.style||!el.style.cssText){return output}var camelize=function camelize(str){return str.replace(/(?:^|[-])(\w)/g,(function(a,c){c=a.substr(0,1)==="-"?c.toUpperCase():c;return c?c:""}))};var style=el.style.cssText.split(";");for(var i=0;i<style.length;++i){var rule=style[i].trim();if(rule){var ruleParts=rule.split(":");var key=ruleParts[0].trim();output[key]=ruleParts[1].trim()}}return output},getSpanTagIndices=function getSpanTagIndices(spanRegex,spanEndRegex,text,tagText,endtagText){var tagindices=[],result,dummySpan,testSpan,styleObj,endtagindices=[];while(result=spanRegex.exec(text)){dummySpan=document.createElement("p");testSpan=result[0]+"Dummy</span>";dummySpan.innerHTML=testSpan;styleObj=getStyles(dummySpan.childNodes[0]);tagindices.push({tagName:result[0],index:result.index,style:styleObj?styleObj:""})}while(result=spanEndRegex.exec(text)){endtagindices.push({tagName:endtagText,index:result.index})}return{tag:tagindices,endtag:endtagindices}},getSubSupTagIndices=function getSubSupTagIndices(subSupRegex,subSupEndRegex,text,tagText,endtagText){var tagindices=[],result,dummySpan,testSpan,styleObj,endtagindices=[];while(result=subSupRegex.exec(text)){dummySpan=document.createElement("p");testSpan=result[0]+"Dummy"+endtagText;dummySpan.innerHTML=testSpan;styleObj=getStyles(dummySpan.childNodes[0]);tagindices.push({tagName:result[0],index:result.index,style:styleObj?styleObj:""})}while(result=subSupEndRegex.exec(text)){endtagindices.push({tagName:endtagText,index:result.index})}return{tag:tagindices,endtag:endtagindices}},isUrlValid=function isUrlValid(userInput){var res=userInput.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&=]*)/g);if(!res)return false;else return true},getAnchorTagIndices=function getAnchorTagIndices(anchorRegex,anchorEndRegex,text,tagText,endtagText){var tagindices=[],result,dummyAnchor,testAnchor,isValidHref,endtagindices=[];while(result=anchorRegex.exec(text)){dummyAnchor=document.createElement("p");testAnchor=result[0]+"</a>";dummyAnchor.innerHTML=testAnchor;isValidHref=isUrlValid(encodeURIComponent(dummyAnchor.childNodes[0].href));tagindices.push({tagName:result[0],index:result.index,href:isValidHref?dummyAnchor.childNodes[0].href:"",target:dummyAnchor.childNodes[0].target?dummyAnchor.childNodes[0].target:"",hreflang:dummyAnchor.childNodes[0].hreflang?dummyAnchor.childNodes[0].hreflang:"",referrerpolicy:dummyAnchor.childNodes[0].referrerpolicy?dummyAnchor.childNodes[0].referrerpolicy:"",rel:dummyAnchor.childNodes[0].rel?dummyAnchor.childNodes[0].rel:""})}while(result=anchorEndRegex.exec(text)){endtagindices.push({tagName:endtagText,index:result.index})}return{tag:tagindices,endtag:endtagindices}},getTagIndices=function getTagIndices(tagRegex,endTagRegex,text,tagText,endtagText){var tagindices=[],result,endtagindices=[];while(result=tagRegex.exec(text)){tagindices.push({tagName:tagText,index:result.index})}while(result=endTagRegex.exec(text)){endtagindices.push({tagName:endtagText,index:result.index})}return{tag:tagindices,endtag:endtagindices}},allPossibleAttrs={"accent-height":true,accumulate:true,additive:true,"alignment-baseline":true,alphabetic:true,amplitude:true,"arabic-form":true,ascent:true,azimuth:true,"baseline-shift":true,bbox:true,begin:true,bias:true,by:true,"cap-height":true,class:true,clip:true,"clip-path":true,"clip-rule":true,color:true,"color-interpolation":true,"color-interpolation-filters":true,"color-profile":true,"color-rendering":true,cursor:true,cx:true,cy:true,d:true,decelerate:true,descent:true,direction:true,display:true,divisor:true,"dominant-baseline":true,dur:true,dx:true,dy:true,elevation:true,"enable-background":true,end:true,exponent:true,fill:true,"fill-opacity":true,"fill-rule":true,filter:true,"flood-color":true,"flood-opacity":true,"font-family":true,"font-size":true,"font-size-adjust":true,"font-stretch":true,"font-style":true,"font-variant":true,"font-weight":true,format:true,fr:true,from:true,fx:true,fy:true,g1:true,g2:true,"glyph-name":true,"glyph-orientation-horizontal":true,"glyph-orientation-vertical":true,hanging:true,height:true,"horiz-adv-x":true,"horiz-origin-x":true,href:true,hreflang:true,id:true,ideographic:true,"image-rendering":true,in2:true,in:true,intercept:true,k1:true,k2:true,k3:true,k4:true,k:true,kerning:true,lang:true,"letter-spacing":true,"lighting-color":true,local:true,"marker-end":true,"marker-mid":true,"marker-start":true,mask:true,mathematical:true,max:true,media:true,method:true,min:true,mode:true,name:true,offset:true,opacity:true,operator:true,order:true,orient:true,orientation:true,origin:true,overflow:true,"overline-position":true,"overline-thickness":true,"paint-order":true,"panose-1":true,path:true,ping:true,"pointer-events":true,points:true,r:true,radius:true,rel:true,"rendering-intent":true,restart:true,result:true,rotate:true,rx:true,ry:true,scale:true,seed:true,"shape-rendering":true,slope:true,spacing:true,speed:true,stemh:true,stemv:true,"stop-color":true,"stop-opacity":true,"strikethrough-position":true,"strikethrough-thickness":true,string:true,stroke:true,"stroke-dasharray":true,"stroke-dashoffset":true,"stroke-linecap":true,"stroke-linejoin":true,"stroke-miterlimit":true,"stroke-opacity":true,"stroke-width":true,style:true,tabindex:true,target:true,"text-anchor":true,"text-decoration":true,"text-rendering":true,to:true,transform:true,type:true,u1:true,u2:true,"underline-position":true,"underline-thickness":true,unicode:true,"unicode-bidi":true,"unicode-range":true,"units-per-em":true,"v-alphabetic":true,"v-hanging":true,"v-ideographic":true,"v-mathematical":true,values:true,"vector-effect":true,version:true,"vert-adv-y":true,"vert-origin-x":true,"vert-origin-y":true,visibility:true,width:true,widths:true,"word-spacing":true,"writing-mode":true,x1:true,x2:true,x:true,"x-height":true,"xlink:actuate":true,"xlink:arcrole":true,"xlink:href":true,"xlink:role":true,"xlink:show":true,"xlink:title":true,"xlink:type":true,"xml:base":true,"xml:lang":true,"xml:space":true,y1:true,y2:true,y:true,z:true};if(supportsTouch){doc.addEventListener(supportsPointer?"pointerover":"touchstart",(function(e){if(lastHoveredInfo.srcElement&&lastHoveredInfo.srcElement!==(e.srcElement||e.target)){var elementInfo=lastHoveredInfo.elementInfo,ii=elementInfo.length,elementInfo,elems,i;for(i=0;i<ii;i++){elems=elementInfo[i];elems.callback.call(elems.el,e)}}lastHoveredInfo={elementInfo:[]}}),true)}R.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};R._url=E;var updateGradientReference=function updateGradientReference(element,newGradient,attr){if(attr===void 0){attr="fill"}var gradient=attr==="fill"?element.gradient:element["stroke-gradient"];if(gradient){if(gradient===newGradient){return}gradient.refCount--;if(!gradient.refCount){gradient.parentNode.removeChild(gradient)}attr==="fill"?delete element.gradient:delete element["stroke-gradient"]}if(newGradient){attr==="fill"?element.gradient=newGradient:element["stroke-gradient"]=newGradient;newGradient.refCount++}};var $=R._createNode=function(el,attr){if(typeof el===typeStringSTR){el=R._g.doc.createElementNS(svgNSStr,el)}if(attr){var key,value;for(key in attr){value=isIE9?Str(attr[key]):attr[key];if(xlinkRegx.test(key)){el.setAttributeNS(xlink,key.replace(xlinkRegx,E),value)}else{el.setAttribute(key,value)}}}return el},gradientUnitNames={userSpaceOnUse:"userSpaceOnUse",objectBoundingBox:"objectBoundingBox"},gradientSpreadNames={pad:"pad",redlect:"reflect",repeat:"repeat"},addGradient=function addGradient(element,gradient,attr){var _$;if(attr===void 0){attr="fill"}if(!element.paper||!element.paper.defs){return 0}var type="linear",SVG=element.paper,id=R.getElementID((SVG.id+"-"+gradient).replace(/[()\s%:,\xb0#]/g,"_")),fx=.5,fy=.5,r,cx,cy,units,spread,o=element.node,s=o.style,el=R._g.doc.getElementById(id),vector;if(!el){gradient=Str(gradient).replace(R._radial_gradient,(function(all,opts){type="radial";opts=opts?opts.split(","):[];units=opts[5];spread=opts[6];var _fx=opts[0],_fy=opts[1],_r=opts[2],_cx=opts[3],_cy=opts[4],shifted=_fx&&_fy,dir,sqx;if(_r){r=/%/.test(_r)?_r:toFloat(_r)}if(units===gradientUnitNames.userSpaceOnUse){if(shifted){fx=_fx;fy=_fy}if(_cx&&_cy){cx=_cx;cy=_cy;if(!shifted){fx=cx;fy=cy}}return E}if(shifted){fx=toFloat(_fx);fy=toFloat(_fy);dir=(fy>.5)*2-1;(sqx=pow(fx-.5,2))+pow(fy-.5,2)>.25&&sqx<.25&&(fy=sqrt(.25-sqx)*dir+.5)&&fy!==.5&&(fy=fy.toFixed(5)-1e-5*dir)}if(_cx&&_cy){cx=toFloat(_cx);cy=toFloat(_cy);dir=(cy>.5)*2-1;(sqx=pow(cx-.5,2))+pow(cy-.5,2)>.25&&sqx<.25&&(cy=sqrt(.25-sqx)*dir+.5)&&cy!==.5&&(cy=cy.toFixed(5)-1e-5*dir);if(!shifted){fx=cx;fy=cy}}return E}));gradient=gradient.split(/\s*-\s*/);if(type==="linear"){var angle=gradient.shift(),specs=angle.match(/\((.*)\)/),max;specs=specs&&specs[1]&&specs[1].split(/\s*,\s*/);angle=-toFloat(angle);if(isNaN(angle)){return null}if(specs&&specs.length){if(specs[0]in gradientUnitNames){units=specs.shift();specs[0]in gradientSpreadNames&&(spread=specs.shift())}else{specs[4]&&(units=specs[4]);specs[5]&&(spread=specs[5])}vector=[specs[0]||"0%",specs[1]||"0%",specs[2]||"100%",specs[3]||"0%"]}else{vector=[0,0,math.cos(R.rad(angle)),math.sin(R.rad(angle))];max=1/(mmax(abs(vector[2]),abs(vector[3]))||1);vector[2]*=max;vector[3]*=max;if(vector[2]<0){vector[0]=-vector[2];vector[2]=0}if(vector[3]<0){vector[1]=-vector[3];vector[3]=0}}}var dots=R._parseDots(gradient);if(!dots){return null}el=$(type+"Gradient",{id:id});el.refCount=0;units in gradientUnitNames&&el.setAttribute("gradientUnits",Str(units));spread in gradientSpreadNames&&el.setAttribute("spreadMethod",Str(spread));if(type==="radial"){r!==undefined&&el.setAttribute("r",Str(r));if(cx!==undefined&&cy!==undefined){el.setAttribute("cx",Str(cx));el.setAttribute("cy",Str(cy))}el.setAttribute("fx",Str(fx));el.setAttribute("fy",Str(fy))}else{$(el,{x1:vector[0],y1:vector[1],x2:vector[2],y2:vector[3]})}for(var i=0,ii=dots.length;i<ii;i++){el.appendChild($("stop",{offset:dots[i].offset?dots[i].offset:i?"100%":"0%","stop-color":dots[i].color||"#fff","stop-opacity":dots[i].opacity===undefined?1:dots[i].opacity}))}SVG.defs.appendChild(el)}updateGradientReference(element,el,attr);$(o,(_$={},_$[attr]="url('"+R._url+"#"+id+"')",_$[attr+"-opacity"]=1,_$));s.fill=E;return 1},updatePosition=function updatePosition(o){var bbox=o.getBBox(1);$(o.pattern,{patternTransform:o.matrix.invert()+" translate("+bbox.x+","+bbox.y+")"})},addArrow=function addArrow(o,value,isEnd){if(o.type=="path"){var values=Str(value).toLowerCase().split("-"),p=o.paper,se=isEnd?"end":"start",node=o.node,attrs=o.attrs,stroke=attrs["stroke-width"],i=values.length,type="classic",from,to,dx,refX,attr,w=3,h=3,t=5;while(i--){switch(values[i]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":type=values[i];break;case"wide":h=5;break;case"narrow":h=2;break;case"long":w=5;break;case"short":w=2;break}}if(type=="open"){w+=2;h+=2;t+=2;dx=1;refX=isEnd?4:1;attr={fill:"none",stroke:attrs.stroke}}else{refX=dx=w/2;attr={fill:attrs.stroke,stroke:"none"}}if(o._.arrows){if(isEnd){o._.arrows.endPath&&markerCounter[o._.arrows.endPath]--;o._.arrows.endMarker&&markerCounter[o._.arrows.endMarker]--}else{o._.arrows.startPath&&markerCounter[o._.arrows.startPath]--;o._.arrows.startMarker&&markerCounter[o._.arrows.startMarker]--}}else{o._.arrows={}}if(type!="none"){var pathId="raphael-marker-"+type,markerId="raphael-marker-"+se+type+w+h+"-obj"+o.id;if(!R._g.doc.getElementById(pathId)){p.defs.appendChild($($("path"),{"stroke-linecap":"round",d:markers[type],id:pathId}));markerCounter[pathId]=1}else{markerCounter[pathId]++}var marker=R._g.doc.getElementById(markerId),use;if(!marker){marker=$($("marker"),{id:markerId,markerHeight:h,markerWidth:w,orient:"auto",refX:refX,refY:h/2});use=$($("use"),{"xlink:href":"#"+pathId,transform:(isEnd?"rotate(180 "+w/2+" "+h/2+") ":E)+"scale("+w/t+","+h/t+")","stroke-width":(1/((w/t+h/t)/2)).toFixed(4)});marker.appendChild(use);p.defs.appendChild(marker);markerCounter[markerId]=1}else{markerCounter[markerId]++;use=marker.getElementsByTagName("use")[0]}$(use,attr);var delta=dx*(type!="diamond"&&type!="oval");if(isEnd){from=o._.arrows.startdx*stroke||0;to=R.getTotalLength(attrs.path)-delta*stroke}else{from=delta*stroke;to=R.getTotalLength(attrs.path)-(o._.arrows.enddx*stroke||0)}attr={};attr["marker-"+se]="url('"+R._url+"#"+markerId+"')";if(to||from){attr.d=R.getSubpath(attrs.path,from,to)}$(node,attr);o._.arrows[se+"Path"]=pathId;o._.arrows[se+"Marker"]=markerId;o._.arrows[se+"dx"]=delta;o._.arrows[se+"Type"]=type;o._.arrows[se+"String"]=value}else{if(isEnd){from=o._.arrows.startdx*stroke||0;to=R.getTotalLength(attrs.path)-from}else{from=0;to=R.getTotalLength(attrs.path)-(o._.arrows.enddx*stroke||0)}o._.arrows[se+"Path"]&&$(node,{d:R.getSubpath(attrs.path,from,to)});delete o._.arrows[se+"Path"];delete o._.arrows[se+"Marker"];delete o._.arrows[se+"dx"];delete o._.arrows[se+"Type"];delete o._.arrows[se+"String"]}for(attr in markerCounter){if(markerCounter[has](attr)&&!markerCounter[attr]){var item=R._g.doc.getElementById(attr);item&&item.parentNode.removeChild(item)}}}},dasharray={"":[noneStr],none:[noneStr],"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},addDashes=function addDashes(o,value,params){if(value!==undefined){var predefValue=dasharray[value.toLowerCase&&value.toLowerCase()],calculatedValues,width,butt,i,widthFactor;value=predefValue||[].concat(value);if(R.is(value,arrayStr)){width=params["stroke-width"]||o.attrs["stroke-width"]||1;butt={round:width,square:width,butt:0}[params["stroke-linecap"]||o.attrs["stroke-linecap"]]||0;i=value.length;widthFactor=predefValue?width:1;if(value[0]===noneStr){calculatedValues=value}else{calculatedValues=[];while(i--){calculatedValues[i]=value[i]*widthFactor+(i%2?1:-1)*butt;calculatedValues[i]<=0&&(calculatedValues[i]=.01+(width<=1?butt:0));if(isNaN(calculatedValues[i])){calculatedValues[i]=0}}}return{"stroke-dasharray":calculatedValues.join(",")}}}},setFillAndStroke=R._setFillAndStroke=function(o,params){if(!o.paper.canvas){return}var node=o.node,attrs=o.attrs,paper=o.paper,el,att,finalAttr={},finalS={},ignoreAttrs={"clip-rect":true},value,pathClip,urlArr,rect;if(o.type===imageStr){(0,_raphael.loadRefImage)(o,params)}for(att in params){if(att in R._availableAttrs){value=params[att];if(value===E&&att in attrs){delete attrs[att];node.removeAttribute(att==="src"?"href":att)}else if(value===null&&!ignoreAttrs[att]){if(att in attrs){delete attrs[att];node.removeAttribute(att==="src"?"href":att)}}else{attrs[att]=value;switch(att){case"blur":o.blur(value);break;case"href":case"title":case"target":var pn=node.parentNode;if(pn.tagName.toLowerCase()!=="a"){if(value===E){break}var hl=$("a");hl.raphael=true;hl.raphaelid=node.raphaelid;pn.insertBefore(hl,node);hl.appendChild(node);pn=hl}if(att==="target"){pn.setAttributeNS(xlink,"show",value==="blank"?"new":value)}else{pn.setAttributeNS(xlink,att,value)}node.titleNode=pn;break;case"cursor":finalS.cursor=value;break;case"transform":o.transform(value);break;case"rotation":if(R.is(value,arrayStr)){o.rotate.apply(o,value)}else{o.rotate(value)}break;case"arrow-start":addArrow(o,value);break;case"arrow-end":addArrow(o,value,1);break;case"clip-path":pathClip=true;case"clip-rect":rect=!pathClip&&Str(value).split(separator);o._.clipispath=!!pathClip;if(pathClip||rect.length===4){o.clip&&o.clip.parentNode.parentNode.removeChild(o.clip.parentNode);var rc=$(pathClip?"path":"rect");el=$("clipPath");el.id=R.getElementID(R.createUUID());$(rc,pathClip?{d:value?attrs["clip-path"]=R._pathToAbsolute(value):R._availableAttrs.path,fill:noneStr}:{x:rect[0],y:rect[1],width:rect[2],height:rect[3],transform:o.matrix.invert()});el.appendChild(rc);paper.defs.appendChild(el);finalAttr["clip-path"]="url('"+R._url+"#"+el.id+"')";o.clip=rc}if(!value){var path=node.getAttribute("clip-path");if(path){var clip=R._g.doc.getElementById(path.replace(/(^url\(#|\)$)/g,E));clip&&clip.parentNode.removeChild(clip);finalAttr["clip-path"]=E;document.documentMode===11&&node.removeAttribute("clip-path");delete o.clip}}break;case"path":if(o.type==="path"){finalAttr.d=value?attrs.path=R._stopabsolutePath?R.sanitizePath(value):R._pathToAbsolute(value):R._availableAttrs.path;o._.dirty=1;if(o._.arrows){"startString"in o._.arrows&&addArrow(o,o._.arrows.startString);"endString"in o._.arrows&&addArrow(o,o._.arrows.endString,1)}}break;case"width":finalAttr[att]=value;o._.dirty=1;if(attrs.fx){att="x";value=attrs.x}else{break}case"x":if(attrs.fx){value=-attrs.x-(attrs.width||0)}case"rx":if(att==="rx"&&o.type==="rect"){break}case"cx":finalAttr[att]=value;o.pattern&&updatePosition(o);o._.dirty=1;break;case"height":finalAttr[att]=value;o._.dirty=1;if(attrs.fy){att="y";value=attrs.y}else{break}case"y":if(o.type===textStr){break}if(attrs.fy){value=-attrs.y-(attrs.height||0)}case"ry":if(att==="ry"&&o.type==="rect"){break}case"cy":finalAttr[att]=value;o.pattern&&updatePosition(o);o._.dirty=1;break;case"r":if(o.type==="rect"){finalAttr.rx=finalAttr.ry=value}else{finalAttr[att]=value}o._.dirty=1;break;case"src":if(o.type===imageStr){node.setAttributeNS(xlink,"href",value)}break;case"stroke-width":if(o._.sx!==1||o._.sy!==1){value/=mmax(abs(o._.sx),abs(o._.sy))||1}if(paper._vbSize){value*=paper._vbSize}if(zeroStrokeFix&&value===0){value=1e-6}finalAttr[att]=value;if(!params["stroke-dasharray"]&&attrs["stroke-dasharray"]&&params["stroke-dasharray"]!==""){quickExtend(finalAttr,addDashes(o,attrs["stroke-dasharray"],params))}if(o._.arrows){"startString"in o._.arrows&&R.addArrow&&R.addArrow(o,o._.arrows.startString);"endString"in o._.arrows&&R.addArrow&&R.addArrow(o,o._.arrows.endString,1)}break;case"stroke-dasharray":quickExtend(finalAttr,addDashes(o,value,params));break;case"fill":var isURL=R._ISURL.test(value);if(isURL){urlArr=value.split(R._ISURL);el=$("pattern");var ig=$(imageStr);el.id=R.getElementID(R.createUUID());$(el,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});$(ig,{x:0,y:0,"xlink:href":urlArr[1]});el.appendChild(ig);preLoad(el,ig,urlArr,paper);paper.defs.appendChild(el);finalAttr.fill="url('"+R._url+urlArr[1]+"')";o.pattern=el;o.pattern&&updatePosition(o);break}var clr=R.getRGB(value);if(!clr.error){delete params.gradient;delete attrs.gradient;!R.is(attrs["fill-opacity"],"undefined")&&R.is(params["fill-opacity"],"undefined")&&(finalAttr["fill-opacity"]=attrs["fill-opacity"]);o.gradient&&updateGradientReference(o)}else if((o.type==="circle"||o.type==="ellipse"||Str(value).charAt()!=="r")&&addGradient(o,value)){attrs.gradient=value;break}if(clr[has]("opacity")){finalAttr["fill-opacity"]=clr.opacity>1?clr.opacity/100:clr.opacity;o._.fillOpacityDirty=true}else if(o._.fillOpacityDirty&&R.is(attrs["fill-opacity"],"undefined")&&R.is(params["fill-opacity"],"undefined")){node.removeAttribute("fill-opacity");delete o._.fillOpacityDirty}case"stroke":clr=R.getRGB(value);if(clr.error){if(o.type==="circle"||o.type==="ellipse"||Str(value).charAt()!=="r"){addGradient(o,value,"stroke")}}else{finalAttr[att]=clr.hex;updateGradientReference(o,UNDEF,att)}if(att==="stroke"){if(clr[has]("opacity")){finalAttr["stroke-opacity"]=clr.opacity>1?clr.opacity/100:clr.opacity;o._.strokeOpacityDirty=true}else if(o._.strokeOpacityDirty&&R.is(attrs["stroke-opacity"],"undefined")&&R.is(params["stroke-opacity"],"undefined")){node.removeAttribute("stroke-opacity");delete o._.strokeOpacityDirty}if(o._.arrows){"startString"in o._.arrows&&addArrow(o,o._.arrows.startString);"endString"in o._.arrows&&addArrow(o,o._.arrows.endString,1)}}break;case"gradient":(o.type==="circle"||o.type==="ellipse"||Str(value).charAt()!=="r")&&addGradient(o,value);break;case"visibility":value===hiddenStr?o.hide():o.show();break;case"opacity":value=value>1?value/100:value;finalAttr.opacity=value;break;case"fill-opacity":value=value>1?value/100:value;finalAttr["fill-opacity"]=value;break;case"shape-rendering":o.attrs[att]=value=shapeRenderingAttrs[value]||value||"auto";finalAttr[att]=value;node.style.shapeRendering=value;break;case"line-height":case"vertical-align":break;default:att===fontSizeStr&&(value=toInt(value,10)+"px");o._.dirty=1;finalAttr[att]=value;if(_raphael.dashedAttr2CSSMap[att]){finalS[_raphael.dashedAttr2CSSMap[att]]=value}break}}}else if(att in allPossibleAttrs){if(value===E&&att in attrs){delete attrs[att];node.removeAttribute(att)}else{attrs[att]=value;finalS[att]=value}}}for(att in finalS){node.style[att]=finalS[att]}for(att in finalAttr){node.setAttribute(att,finalAttr[att])}o.type===textStr&&!params[notToTuneStr]&&tuneText(o,params)},updateFollowers=R._updateFollowers=function(){var i,ii,followerElem,args=(0,_raphael.getArrayCopy)(arguments),o=arrayShift.call(args),fnName=arrayShift.call(args);for(i=0,ii=o.followers.length;i<ii;i++){followerElem=o.followers[i].el;followerElem[fnName].apply(followerElem,args)}},leading=1.2,tuneText=function tuneText(el,params){if(el.type!==textStr||!(params[has](textStr)||params[has]("font")||params[has](fontSizeStr)||params[has]("x")||params[has]("y")||params[has](lineHeightStr)||params[has](vAlignStr)||params[has](textPathStr))){return}var a=el.attrs,defs=el.paper.defs,group=el.parent,node=el.node,fontSize,oldAttr=el._oldAttr=el._oldAttr||{baseLineDiff:8,valign:-.5},lineHeight=toFloat(params[lineHeightStr]||a[lineHeightStr]),direction=params.direction||a.direction||group&&group.attrs&&group.attrs.direction||oldAttr.direction||initialStr,valign,updateNode=false,tspanAttr,updateTspan=false,i,spanArr=[],abbrindx,dummyEl,tspanArr=[],abbrArr=[],hasTags=false,l,ii,j=!isIE&&direction===rtlStr?2:1,texts,tempIESpan,tspan,updateAlignment=false,tspans,text,textChanged=false,removeAllChild,hasnbsp=function hasnbsp(text){return text&&nbspRegex.test(text)},spacify=function spacify(text){return text.replace(/\s+/g," ").trim().replace(nbspRegex," ")};if(params[has](textPathStr)){var rUUID=R.getElementID(R.createUUID()),textPathParams=params[textPathStr];var textPath,tSpan,txtNode,dy=0,textPathProps={};for(var key in textPathParams){if(textPathParams.hasOwnProperty(key)){if(key==="path"&&!("href"in textPathParams)){if(oldAttr.textPathStr!==textPathParams[key]){if(el.textPathDef){el.textPathDef.setAttribute("d",textPathParams[key]||E);textPathProps.href="#"+el.textPathDef.getAttribute("id");textPathProps["xlink:href"]="#"+el.textPathDef.getAttribute("id")}else{el.textPathDef=defs.appendChild($("path",{id:rUUID,d:textPathParams[key]||E}));textPathProps.href="#"+rUUID;textPathProps["xlink:href"]="#"+rUUID}oldAttr.textPathStr=textPathParams[key]}else{textPathProps.href="#"+el.textPathDef.getAttribute("id");textPathProps["xlink:href"]="#"+el.textPathDef.getAttribute("id")}}else{textPathProps[key]=textPathParams[key]}}}if(params[has](textStr)){txtNode=R._g.doc.createTextNode(params[textStr]||E);oldAttr.pathText=a.text=params[textStr]||E}else{txtNode=R._g.doc.createTextNode(oldAttr.pathText||oldAttr.text||E);oldAttr.pathText=oldAttr.pathText||oldAttr.text||E;delete oldAttr.text}if(params[has](vAlignStr)){if(params[vAlignStr]===middleStr){dy=.3;oldAttr.valign=-.5}else if(params[vAlignStr]===bottomStr){dy=.7;oldAttr.valign=-1}else if(params[vAlignStr]===topStr){oldAttr.valign=0}tSpan=$("tspan",{dy:dy+"em"});tSpan.appendChild(txtNode);oldAttr.tSpan=tSpan}else{if(oldAttr.tSpan&&(oldAttr.tSpan.textContent===params[textStr]||typeof params[textStr]!==typeStringSTR)){tSpan=oldAttr.tSpan}else{if(oldAttr.valign===-.5){dy=.3}else if(oldAttr.valign===-1){dy=.7}else{dy=0}tSpan=$("tspan",{dy:dy+"em"});tSpan.appendChild(txtNode);oldAttr.tSpan=tSpan}}if(params[textStr]!==UNDEF){delete oldAttr.x;delete oldAttr.y;node.removeAttribute("x");node.removeAttribute("y");textPath=$("textPath",textPathProps);textPath.appendChild(tSpan||txtNode);while(node.firstChild){node.removeChild(node.firstChild)}node.appendChild(textPath)}}else{oldAttr.direction=direction;if(el.textPathDef&&defs){el.textPathDef.parentNode.removeChild(el.textPathDef);delete el.textPathDef}delete oldAttr.txtNode;delete oldAttr.tSpan;delete oldAttr.textPathStr;if(!lineHeight){fontSize=params.fontSize||params[fontSizeStr]||a[fontSizeStr]||group&&group.attrs&&group.attrs.fontSize;fontSize=fontSize?fontSize.toString().replace(pxStr,E):10;lineHeight=fontSize*leading}if(params[has](textStr)||oldAttr.pathText){if(R.is(params.text,arrayStr)){text=params.text.join(brStr)}else if(params.text==null){text=oldAttr.pathText}else{text=params.text}delete oldAttr.pathText;text=text.toString();if(text!==oldAttr.text){textChanged=true;if(text&&ltgtbrRegex.test(text)){text=text.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;|&#034;/g,'"').replace(/&#039;/g,"'").replace(/&<br\/>lt;|&l<br\/>t;|&lt<br\/>;/g,"<<br/>").replace(/&<br\/>gt;|&g<br\/>t;|&gt<br\/>;/g,"><br/>")}text=text.replace(/<u>/g,"<under>").replace(/<\/u>/g,"</under>").replace(/<b>/g,"<bold>").replace(/<\/b>/g,"</bold>").replace(/<strong>/g,"<bold>").replace(/<\/strong>/g,"</bold>").replace(/<em>/g,"<em>").replace(/<\/em>/g,"</em>").replace(/<i>/g,"<em>").replace(/<\/i>/g,"</em>").replace(/<strike>/g,"<strike>").replace(/<\/strike>/g,"</strike>").replace(/<s>/g,"<strike>").replace(/<\/s>/g,"</strike>").replace(/<del>/g,"<strike>").replace(/<\/del>/g,"</strike>").replace(/<sub>/g,"<sub>").replace(/<\/sub>/g,"</sub>").replace(/<sup>/g,"<sup>").replace(/<\/sup>/g,"</sup>");oldAttr.text=a.text=text;if(textBreakRegx.test(text)){if(oldAttr.noTSpan){oldAttr.noTSpan=!(removeAllChild=true)}texts=Str(text).split(textBreakRegx);l=texts.length}else{removeAllChild=true;oldAttr.noTSpan=true;l=1}if(oldAttr.lineCount!==l){oldAttr.lineCount=l;updateAlignment=true}}}if(lineHeight!==oldAttr.lineHeight){oldAttr.lineHeight=lineHeight;oldAttr.baseLineDiff=lineHeight*.75;updateAlignment=true}if(removeAllChild){while(node.firstChild){node.removeChild(node.firstChild)}}if(oldAttr.lineCount>1){if(node.style.whiteSpace===PRESERVESTRING){node.style.whiteSpace=BLANKSTRING}tspanAttr={};if(!oldAttr.tspanAttr){oldAttr.tspanAttr={};oldAttr.tspan0Attr={}}if(oldAttr.tspanAttr.dy!==oldAttr.lineHeight){oldAttr.tspanAttr.dy=tspanAttr.dy=oldAttr.lineHeight;updateTspan=true}if(params[has]("x")&&oldAttr.tspanAttr.x!==params.x){oldAttr.tspan0Attr.x=oldAttr.tspanAttr.x=tspanAttr.x=a.x;updateTspan=true}if(textChanged){tspans=node.childNodes;for(i=0;i<l;i++){tspan=tspans[i*j];spanArr=createValidTextNode(texts[i],abbrArr);if(tspan){tspan.innerHTML=E;if(isIE){while(tspan.firstChild){tspan.removeChild(tspan.firstChild)}}if(updateTspan){$(tspan,i?tspanAttr:oldAttr.tspan0Attr)}}else{tspan=$(tSpanStr,i?oldAttr.tspanAttr:oldAttr.tspan0Attr);node.appendChild(tspan);if(!isIE&&direction===rtlStr){tempIESpan=$(tSpanStr,IESplTspanAttr);tempIESpan.appendChild(R._g.doc.createTextNode("i"));node.appendChild(tempIESpan)}}if(!texts[i]){tspan.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");texts[i]=S}if(hasnbsp(texts[i])){texts[i]=spacify(texts[i]);tspan.style.whiteSpace=PRESERVESTRING}else if(tspan.style.whiteSpace===PRESERVESTRING){tspan.style.whiteSpace=BLANKSTRING}if(spanArr.length){for(var indx=0;indx<spanArr.length;indx++){tspan.appendChild(spanArr[indx])}}else{tspan.appendChild(R._g.doc.createTextNode(texts[i]))}if(abbrArr.length){for(abbrindx=0;abbrindx<abbrArr.length;abbrindx++){dummyEl=el.paper["text"]({display:"none"});dummyEl.node=abbrArr[abbrindx].tspan;if(!el.abbrArr){el.abbrArr=[]}el.abbrArr.push({el:dummyEl,title:abbrArr[abbrindx].title})}}}}else if(updateTspan){tspans=node.childNodes;ii=tspans.length;for(i=0;i<ii;i+=j){$(tspans[i],i?tspanAttr:oldAttr.tspan0Attr)}}ii=l*j;if(node.childNodes.length>ii){for(i=node.childNodes.length-1;i>=ii;i-=1){node.removeChild(node.childNodes[i])}}}else if(textChanged){if(hasnbsp(text)){text=spacify(text);node.style.whiteSpace=PRESERVESTRING}else if(node.style.whiteSpace===PRESERVESTRING){node.style.whiteSpace=BLANKSTRING}tspanArr=createValidTextNode(text,abbrArr);if(tspanArr.length){for(var index=0;index<tspanArr.length;index++){node.appendChild(tspanArr[index])}}else{node.appendChild(R._g.doc.createTextNode(text))}if(abbrArr.length){for(abbrindx=0;abbrindx<abbrArr.length;abbrindx++){dummyEl=el.paper["text"]({display:"none"});dummyEl.node=abbrArr[abbrindx].tspan;if(!el.abbrArr){el.abbrArr=[]}el.abbrArr.push({el:dummyEl,title:abbrArr[abbrindx].title})}}}if(params[vAlignStr]){valign=vAlignMultiplier[a[vAlignStr]]||0;if(valign!==oldAttr.valign){oldAttr.valign=valign;updateAlignment=true}}if(updateAlignment){oldAttr.shift=oldAttr.baseLineDiff+oldAttr.lineCount*oldAttr.lineHeight*oldAttr.valign;updateNode=true}if((params.y||params.y===0)&&oldAttr.y!==params.y){oldAttr.y=a.y;updateNode=true}if(updateNode&&(oldAttr.y||oldAttr.y===0)&&(oldAttr.shift||oldAttr.shift===0)){$(node,{y:Math.round(oldAttr.y+oldAttr.shift)})}}},Element=function Element(node,svg,group){var o=this,parent=group||svg;parent.canvas&&parent.canvas.appendChild(node);o.node=o[0]=node;node.raphael=true;node.raphaelid=o.id=R._oid++;o.matrix=R.matrix();o.realPath=null;o.attrs=o.attrs||{};o.followers=o.followers||[];o.paper=svg;o.ca=o.customAttributes=o.customAttributes||new svg._CustomAttributes;o._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1};o.parent=parent;!parent.bottom&&(parent.bottom=o);o.prev=parent.top;parent.top&&(parent.top.next=o);parent.top=o;o.next=null},getTouchDistance=function getTouchDistance(touch1,touch2,isY){var select=isY?"pageY":"pageX";return Math.abs(touch2[select]-touch1[select])},storeHandlers=R.storeHandlers=function(elem,handler,fn){elem._actualListners||(elem._actualListners=[]);elem._derivedListeners||(elem._derivedListeners=[]);elem._actualListners.push(handler);elem._derivedListeners.push(fn)},removeHandlers=function removeHandlers(elem,handler){var index=elem._actualListners.indexOf(handler),derivedHandler;if(index!==-1){derivedHandler=elem._derivedListeners[index];elem._actualListners.splice(index,1);elem._derivedListeners.splice(index,1)}return derivedHandler},elproto=R.el;Element.prototype=elproto;elproto.constructor=Element;R._engine.getNode=function(el){var node=el.node||el[0].node;return node.titleNode||node};R._engine.getLastNode=function(el){var node=el.node||el[el.length-1].node;return node.titleNode||node};elproto.rotate=function(deg,cx,cy){var o=this,bbox;if(o.removed){return o}updateFollowers(o,"rotate",deg,cx,cy);deg=Str(deg).split(separator);if(deg.length-1){cx=toFloat(deg[1]);cy=toFloat(deg[2])}deg=toFloat(deg[0]);cy==null&&(cx=cy);if(cx==null||cy==null){bbox=o.getBBox(1);cx=bbox.x+bbox.width/2;cy=bbox.y+bbox.height/2}o.transform(o._.transform.concat([["r",deg,cx,cy]]));return o};elproto.scale=function(sx,sy,cx,cy){var o=this,bbox;if(o.removed){return o}updateFollowers(o,"scale",sx,sy,cx,cy);sx=Str(sx).split(separator);if(sx.length-1){sy=toFloat(sx[1]);cx=toFloat(sx[2]);cy=toFloat(sx[3])}sx=toFloat(sx[0]);sy==null&&(sy=sx);cy==null&&(cx=cy);if(cx==null||cy==null){bbox=o.getBBox(1)}cx=cx==null?bbox.x+bbox.width/2:cx;cy=cy==null?bbox.y+bbox.height/2:cy;o.transform(o._.transform.concat([["s",sx,sy,cx,cy]]));return o};elproto.translate=function(dx,dy){var o=this;if(o.removed){return o}updateFollowers(o,"translate",dx,dy);dx=Str(dx).split(separator);if(dx.length-1){dy=toFloat(dx[1])}dx=toFloat(dx[0])||0;dy=+dy||0;o.transform(o._.transform.concat([["t",dx,dy]]));return o};elproto.transform=function(tstr){var o=this,_=o._,sw;if(tstr==null){return _.transform}R._extractTransform(o,tstr);o.clip&&!_.clipispath&&$(o.clip,{transform:o.matrix.invert()});o.pattern&&updatePosition(o);o.node&&$(o.node,{transform:o.matrix});if(_.sx!==1||_.sy!==1){sw=o.attrs["stroke-width"];sw&&o.attr({"stroke-width":sw})}return o};elproto.hide=function(){var o=this;updateFollowers(o,"hide");!o.removed&&o.paper.safari(o.node.style.display=noneStr);return o};elproto.show=function(){var o=this;updateFollowers(o,"show");!o.removed&&o.paper.safari(o.node.style.display=E);return o};elproto.remove=function(){if(this.removed||!this.parent.canvas){return}var o=this,node=R._engine.getNode(o),paper=o.paper,defs=paper.defs,i;paper.__set__&&paper.__set__.exclude(o);eve.unbind("raphael.*.*."+o.id);if(o.gradient&&defs){updateGradientReference(o)}if(o["stroke-gradient"]&&defs){updateGradientReference(o,UNDEF,"stroke")}if(o.textPathDef&&defs){o.textPathDef.parentNode.removeChild(o.textPathDef);delete o.textPathDef}while(i=o.followers.pop()){i.el.remove()}while(i=o.bottom){i.remove()}if(o._drag){o.undrag()}if(o.events){while(i=o.events.pop()){i.unbind()}}o.parent.canvas.contains(node)&&o.parent.canvas.removeChild(node);o.removeData();delete paper._elementsById[o.id];R._tear(o,o.parent);for(i in o){o[i]=typeof o[i]===fnStr?R._removedFactory(i):null}o.removed=true};elproto._getBBox=function(){var fn,o=this,node=o.node,bbox={},a=o.attrs,align,hide,isText=o.type===textStr;if(isIE&&isText){fn=(0,_raphael.showRecursively)(o)}else{if(node.style.display===noneStr){o.show();hide=true}}try{bbox=node.getBBox();if(isText){if(bbox.x===undefined){bbox.isCalculated=true;align=a["text-anchor"];bbox.x=(a.x||0)-bbox.width*(align==="start"?0:align===middleStr?.5:1)}if(bbox.y===undefined){bbox.isCalculated=true;align=a[vAlignStr];bbox.y=(a.y||0)-bbox.height*(align===bottomStr?1:align===middleStr?.5:0)}}}catch(e){}finally{bbox=bbox||{}}isIE&&isText?fn&&fn():hide&&o.hide();return bbox};elproto.attr=function(name,value){if(this.removed){return this}var elem=this,attrs=this.attrs,key,finalParam={},i,ii,params,subkey,par,follower,invokedCa=elem._invokedCa||(elem._invokedCa={}),ca,caObj=this.ca;if(name==null){var res={};for(key in attrs){if(attrs[has](key)){res[key]=attrs[key]}}res.gradient&&res.fill===noneStr&&(res.fill=res.gradient)&&delete res.gradient;res.transform=this._.transform;res.visibility=this.node.style.display===noneStr?hiddenStr:visibleStr;return res}else{if(value==null){if(R.is(name,objectStr)){params=name}else if(R.is(name,typeStringSTR)){if(name===fillStr&&attrs.fill===noneStr&&attrs.gradient){return attrs.gradient}if(name===transformStr){return this._.transform}if(name===visibilityStr){return this.node.style.display===noneStr?hiddenStr:visibleStr}if(name in attrs){return attrs[name]}else if(R.is(caObj[name],fnStr)){return caObj[name].def}return R._availableAttrs[name]}}else{params={};params[name]=value}if(!R.stopPartialEventPropagation){for(key in params){eve("raphael.attr."+key+"."+this.id,this,params[key],key)}}for(key in params){ca=caObj[key];if(ca&&!invokedCa[key]&&R.is(ca,fnStr)){invokedCa[key]=true;par=ca.apply(this,[].concat(params[key]));invokedCa[key]=false;for(subkey in par){finalParam[subkey]=par[subkey]}attrs[key]=params[key]}else{finalParam[key]=params[key]}}setFillAndStroke(this,finalParam);for(i=0,ii=this.followers.length;i<ii;i++){follower=this.followers[i];follower.cb&&!follower.cb.call(follower.el,finalParam,this)||follower.el.attr(finalParam)}return this}};elproto.pinchstart=function(handler,context){var elem=this,dummyEve={},fn=function fn(e){if(e.touches&&e.touches.length===2){var touch1=e.touches[0],touch2=e.touches[1];elem._blockDrag=true;e&&e.preventDefault();R.makeSelectiveCopy(dummyEve,e);dummyEve.data={finger0:touch1,finger1:touch2,distanceX:getTouchDistance(touch1,touch2),distanceY:getTouchDistance(touch1,touch2,true)};handler.call(context||elem,dummyEve)}else{elem._blockDrag=false}};storeHandlers(elem,handler,fn);elem.node.addEventListener("touchstart",fn)};elproto.unpinchstart=function(handler){var elem=this,derivedHandler=removeHandlers(elem,handler);elem.__blockDrag=false;elem._pinchDragStarted=false;derivedHandler&&elem.node.removeEventListener("touchstart",derivedHandler)};elproto.pinchmove=function(handler,context){var elem=this,dummyEve={},fn=function fn(e){if(e.touches&&e.touches.length===2){var touch1=e.touches[0],touch2=e.touches[1];e&&e.preventDefault();elem._pinchDragStarted=true;R.makeSelectiveCopy(dummyEve,e);dummyEve.data={finger0:touch1,finger1:touch2,distanceX:getTouchDistance(touch1,touch2),distanceY:getTouchDistance(touch1,touch2,true)};handler.call(context||elem,dummyEve)}};storeHandlers(elem,handler,fn);elem.node.addEventListener("touchmove",fn)};elproto.unpinchmove=function(handler){var elem=this,derivedHandler=removeHandlers(elem,handler);derivedHandler&&elem.node.removeEventListener("touchmove",derivedHandler)};elproto.pinchend=function(handler,context){var elem=this,fn=function fn(e){if(elem._pinchDragStarted){elem._pinchDragStarted=false;handler.call(context||elem,e)}};storeHandlers(elem,handler,fn);elem.node.addEventListener("touchend",fn)};elproto.unpinchend=function(handler){var elem=this,derivedHandler=removeHandlers(elem,handler);elem._pinchDragStarted=false;derivedHandler&&elem.node.removeEventListener("touchend",derivedHandler)};elproto.pinch=function(pinchstarthandler,pinchinhandler,pinchendhandler){elproto.pinchstart.call(this,pinchstarthandler);elproto.pinchin.call(this,pinchinhandler);elproto.pinchend.call(this,pinchendhandler)};elproto.unpinch=function(pinchstarthandler,pinchinhandler,pinchendhandler){elproto.unpinchstart.call(this,pinchstarthandler);elproto.unpinchin.call(this,pinchinhandler);elproto.unpinchend.call(this,pinchendhandler)};elproto.fcwheel=function(handler,context){var elem=this,dummyEve={},fn=function fn(e){e&&e.preventDefault();R.makeSelectiveCopy(dummyEve,e);handler.call(context||elem,dummyEve)};storeHandlers(elem,handler,fn);elem.node.addEventListener("wheel",fn)};elproto.fcunwheel=function(handler){var elem=this,derivedHandler=removeHandlers(elem,handler);derivedHandler&&elem.node.removeEventListener("wheel",derivedHandler)};elproto.on=function(eventType,handler,context){if(!handler||!eventType){return}var elem=this,node,actualEventType,isSafe=eventType.match(/fc-/),fn=handler;if(this.removed){return this}elem._actualListners||(elem._actualListners=[]);elem._derivedListeners||(elem._derivedListeners=[]);switch(eventType){case"fc-dragstart":elem.drag(null,handler);return elem;case"fc-dragmove":elem.drag(handler);return elem;case"fc-dragend":elem.drag(null,null,handler);return elem;case"fc-dbclick":elem.dbclick(handler,context);return elem;case"fc-pinchstart":elem.pinchstart(handler,context);return elem;case"fc-pinchmove":elem.pinchmove(handler,context);return elem;case"fc-pinchend":elem.pinchend(handler,context);return elem;case"fc-click":elem.fcclick(handler,context);return elem;case"fc-wheel":elem.fcwheel(handler,context);return elem}isSafe&&(eventType=eventType.replace(/fc-/,""));if(isSafe){if(supportsTouch){actualEventType=eventType;eventType=(supportsPointer?R.safePointerEventMapping[eventType]:safeMouseEventMapping[eventType])||eventType;if(actualEventType==="mouseout"){fn=function fn(e){if(!(supportsPointer&&supportsTouch&&!e.isPrimary)){lastHoveredInfo.elementInfo.push({el:context||elem,callback:handler});lastHoveredInfo.srcElement=e.srcElement||e.target}};eventType=supportsPointer?"pointerover":"touchstart"}}}if(this._&&this._.RefImg&&(eventType==="load"||eventType==="error")){node=this._.RefImg;fn=function fn(e){!elem.removed&&handler.call(elem,e)}}else{node=this.node}if(fn===handler){fn=function fn(e){!(supportsPointer&&supportsTouch&&!e.isPrimary)&&handler.call(context||elem,e)}}elem._actualListners.push(handler);elem._derivedListeners.push(fn);if(node.addEventListener){node.addEventListener(eventType,fn)}else{node["on"+eventType]=fn}return this};elproto.off=function(eventType,handler){var elem=this,fn=handler,actualEventType,index,isSafe=eventType.match(/fc-/),node;if(this.removed||!elem._actualListners||!eventType||!handler){return this}switch(eventType){case"fc-dragstart":elem.undragstart(handler);return elem;case"fc-dragmove":elem.undragmove(handler);return elem;case"fc-dragend":elem.undragend(handler);return elem;case"fc-dbclick":elem.undbclick(handler);return elem;case"fc-pinchstart":elem.unpinchstart(handler);return elem;case"fc-pinchmove":elem.unpinchmove(handler);return elem;case"fc-pinchend":elem.unpinchend(handler);return elem;case"fc-click":elem.fcunclick(handler);return elem;case"fc-wheel":elem.fcunwheel(handler);return elem}isSafe&&(eventType=eventType.replace(/fc-/,""));fn=handler;if(isSafe){if(supportsTouch){actualEventType=eventType;eventType=(supportsPointer?R.safePointerEventMapping[eventType]:safeMouseEventMapping[eventType])||eventType;if(actualEventType==="mouseout"){eventType=supportsPointer?"pointerover":"touchstart"}}}if(this._&&this._.RefImg){node=this._.RefImg}else{node=this.node}index=elem._actualListners.indexOf(fn);if(index!==-1){fn=elem._derivedListeners[index];elem._actualListners.splice(index,1);elem._derivedListeners.splice(index,1)}if(node.removeEventListener){node.removeEventListener(eventType,fn)}else{node["on"+eventType]=null}return this};R._engine.path=function(svg,attrs,group){var el=$("path"),res=new Element(el,svg,group);res.type="path";attrs&&res.attr(attrs);return res};R._engine.group=function(svg,id,group,overrideId){var el=$("g"),res=new Element(el,svg,group);res.type="group";res.canvas=res.node;res.top=res.bottom=null;res._id=id||E;if(id){if(overrideId){el.setAttribute("class","raphael-group-"+id)}else{el.setAttribute("class","raphael-group-"+res.id+"-"+id)}}return res};R._engine.circle=function(svg,attrs,group){var el=$("circle"),res=new Element(el,svg,group);res.type="circle";attrs&&res.attr(attrs);return res};R._engine.rect=function(svg,attrs,group){var el=$("rect"),res=new Element(el,svg,group);res.type="rect";attrs.rx=attrs.ry=attrs.r;attrs&&res.attr(attrs);return res};R._engine.ellipse=function(svg,attrs,group){var el=$("ellipse"),res=new Element(el,svg,group);res.type="ellipse";attrs&&res.attr(attrs);return res};R._engine.image=function(svg,attrs,group){var el=$(imageStr),res=new Element(el,svg,group,true);res._.group=group||svg;res.type=imageStr;el.setAttribute("preserveAspectRatio",noneStr);attrs&&res.attr(attrs);return res};R._engine.text=function(svg,attrs,group,css){var el=$(textStr),res=new Element(el,svg,group);res.type=textStr;css&&res.css&&res.css(css,undefined,true);attrs&&res.attr(attrs);return res};R._engine.setSize=function(width,height){this.width=width||this.width;this.height=height||this.height;this.canvas.setAttribute("width",this.width);this.canvas.setAttribute("height",this.height);if(this._viewBox){this.setViewBox.apply(this,this._viewBox)}return this};R._engine.create=function(){var con=R._getContainer.apply(0,arguments),container=con&&con.container,x=con.x,y=con.y,width=con.width,height=con.height,paper;if(!container){throw new Error("SVG container not found.")}var cnvs=$("svg"),css="overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);"+"-webkit-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;"+"-ms-user-select:none;user-select:none;-o-user-select:none;cursor:default;"+"vertical-align:middle;",isFloating;if(supportsTouch){if(R.isIE10){css+="-ms-touch-action:pan-y;"}else{css+="touch-action:pan-y;"}}x=x||0;y=y||0;width=width||512;height=height||342;$(cnvs,{height:height,version:1.1,width:width,xmlns:svgNSStr});if(container===1){cnvs.style.cssText=css+"position:absolute;left:"+x+"px;top:"+y+pxStr;container=R._g.doc.body;container.appendChild(cnvs);isFloating=1}else{cnvs.style.cssText=css+"position:relative";if(container.firstChild){container.insertBefore(cnvs,container.firstChild)}else{container.appendChild(cnvs)}}paper=new R._Paper;paper.width=width;paper.height=height;paper.canvas=cnvs;paper.container=container;$(cnvs,{id:"raphael-paper-"+paper.id});paper.clear();paper._left=paper._top=0;isFloating&&(paper.renderfix=function(){});paper.renderfix();return paper};R._engine.setViewBox=function(x,y,w,h,fit){eve("raphael.setViewBox",this,this._viewBox,[x,y,w,h,fit]);var size=mmax(w/this.width,h/this.height),top=this.top,aspectRatio=fit?"meet":"xMinYMin",vb,sw;if(x==null){if(this._vbSize){size=1}delete this._vbSize;vb="0 0 "+this.width+S+this.height}else{this._vbSize=size;vb=x+S+y+S+w+S+h}$(this.canvas,{viewBox:vb,preserveAspectRatio:aspectRatio});if(size){while(top){sw="stroke-width"in top.attrs?top.attrs["stroke-width"]:1;top.attr({"stroke-width":sw});top._.dirty=1;top._.dirtyT=1;top=top.prev}}this._viewBox=[x,y,w,h,!!fit];return this};R.prototype.detachPaper=function(){if(this._detached!==false){this.container.removeChild(this.canvas);this._detached=true}};R.prototype.attachPaper=function(){if(this._detached){this.container.appendChild(this.canvas);this._detached=false}};R.prototype.renderfix=function(){var cnvs=this.canvas,s=cnvs.style,pos;try{pos=cnvs.getScreenCTM()||cnvs.createSVGMatrix()}catch(e){pos=cnvs.createSVGMatrix()}var left=-pos.e%1,top=-pos.f%1;if(left||top){if(left){this._left=(this._left+left)%1;s.left=this._left+pxStr}if(top){this._top=(this._top+top)%1;s.top=this._top+pxStr}}};R.prototype._desc=function(txt){var desc=this.desc;if(!desc){this.desc=desc=$("desc");this.canvas.appendChild(desc)}else{while(desc.firstChild){desc.removeChild(desc.firstChild)}}desc.appendChild(R._g.doc.createTextNode(R.is(txt,typeStringSTR)?txt:"Created with Red Raphaël "+R.version))};R.prototype.clear=function(){var c;eve("raphael.clear",this);while(c=this.bottom){c.remove()}c=this.canvas;while(c.firstChild){c.removeChild(c.firstChild)}this.bottom=this.top=null;c.appendChild(this.desc=$("desc"));c.appendChild(this.defs=$("defs"))};R.prototype.remove=function(){var i;eve("raphael.remove",this);while(i=this.bottom){i.remove()}this.defs&&this.defs.parentNode.removeChild(this.defs);this.desc&&this.desc.parentNode.removeChild(this.desc);this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(i in this){this[i]=typeof this[i]===fnStr?R._removedFactory(i):null}this.removed=true};R.prototype.setHTMLClassName=function(){}}}
"use strict";exports.__esModule=true;exports.default=_default;var _raphael=require("./raphael.lib");function _default(R){if(R.svg){var has="hasOwnProperty",tSpanStr="tspan",vAlignStr="vertical-align",lineHeightStr="line-height",fontSizeStr="font-size",imageStr="image",noneStr="none",notToTuneStr="_do-not-tune",textStr="text",textPathStr="textpath",rtlStr="rtl",hasSup=false,hasSub=false,arrayStr="array",middleStr="middle",bottomStr="bottom",topStr="top",pxStr="px",initialStr="initial",fnStr="function",brStr="<br>",hiddenStr="hidden",visibleStr="visible",objectStr="object",fillStr="fill",transformStr="transform",visibilityStr="visibility",IESplTspanAttr={visibility:hiddenStr,"font-size":"0px"},Str=String,VERTICAL="vertical",HORIZONTAL="horizontal",PRESERVESTRING="pre",BLANKSTRING="",toFloat=parseFloat,toInt=parseInt,vAlignMultiplier={top:0,bottom:-1,middle:-.5},win=R._g.win,navigator=win.navigator,isIE=false||!!document.documentMode,math=Math,UNDEF,mmax=math.max,abs=math.abs,pow=math.pow,sqrt=math.sqrt,xlinkRegx=/^xlink:/,separator=/[, ]+/,textBreakRegx=/\n|<br\s*?\/?>/i,ltgtbrRegex=/&lt|&gt|&quot|&#039|&#034|<br/i,nbspRegex=/&nbsp;|&#160;|&#xA0;/g,arrayShift=Array.prototype.shift,zeroStrokeFix=!!(/AppleWebKit/.test(navigator.userAgent)&&(!/Chrome/.test(navigator.userAgent)||navigator.appVersion.match(/Chrome\/(\d+)\./)[1]<29)),eve=R.eve,E="",S=" ",xlink="http://www.w3.org/1999/xlink",svgNSStr="http://www.w3.org/2000/svg",isIpad=!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform),typeStringSTR="string",markers={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},shapeRenderingAttrs={speed:"optimizeSpeed",crisp:"crispEdges",precision:"geometricPrecision"},nav=navigator.userAgent.toLowerCase(),isIE9=function(){var verIE=nav.indexOf("msie")!=-1?parseInt(nav.split("msie")[1]):false;if(verIE&&verIE===9){return true}else{return false}}(),supportsPointer=R.supportsPointer,supportsTouch=R.supportsTouch,markerCounter={},preLoad=function preLoad(elem,ig,isURL,paper){R._preload(isURL[1],(function(){var w=this.offsetWidth,h=this.offsetHeight;$(elem,{width:w,height:h});$(ig,{width:w,height:h});paper.safari()}))},quickExtend=function quickExtend(obj1,obj2){if(obj2){for(var key in obj2){obj1[key]=obj2[key]}}},lastHoveredInfo={elementInfo:[]},doc=R._g.doc,win=R._g.win,safeMouseEventMapping={mouseover:"touchstart",mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove",mouseout:"touchend"},createValidTextNode=function createValidTextNode(text,abbrArr){var underlineRegex=/<under>/g,underlineEndRegex=/<\/under>/g,boldRegex=/<bold>/g,boldEndRegex=/<\/bold>/g,emphasisRegex=/<em>/g,emphasisEndRegex=/<\/em>/g,strikeRegex=/<strike>/g,strikeEndRegex=/<\/strike>/g,subscriptRegex=/<sub[\s]+([^>]+)>|<sub>/g,subscriptEndRegex=/<\/sub>/g,superscriptRegex=/<sup[\s]+([^>]+)>|<sup>/g,superscriptEndRegex=/<\/sup>/g,abbrRegex=/<abbr[\s]+([^>]+)>/g,abbrEndRegex=/<\/abbr>/g,spanRegex=/<span[\s]+([^>]+)>|<span>/g,spanEndRegex=/<\/span>/g,anchorRegex=/<a[\s]+([^>]+)>/g,anchorEndRegex=/<\/a>/g,lastAttrList=[],index,subtext,tspanArray=[],startIndex=0,sortedIndices,underlinetagIndices=getTagIndices(underlineRegex,underlineEndRegex,text,"<under>","</under>"),boldtagIndices=getTagIndices(boldRegex,boldEndRegex,text,"<bold>","</bold>"),emtagIndices=getTagIndices(emphasisRegex,emphasisEndRegex,text,"<em>","</em>"),strikeTagIndices=getTagIndices(strikeRegex,strikeEndRegex,text,"<strike>","</strike>"),subscriptTagIndices=getSubSupTagIndices(subscriptRegex,subscriptEndRegex,text,"<sub>","</sub>"),superscriptTagIndices=getSubSupTagIndices(superscriptRegex,superscriptEndRegex,text,"<sup>","</sup>"),abbrTagIndices=getAbbrTagIndices(abbrRegex,abbrEndRegex,text,"<abbr>","</abbr>"),anchorTagIndices=getAnchorTagIndices(anchorRegex,anchorEndRegex,text,"<a>","</a>"),spanTagIndices=getSpanTagIndices(spanRegex,spanEndRegex,text,"<span>","</span>"),sortedIndices=sortTags(underlinetagIndices,boldtagIndices,emtagIndices,strikeTagIndices,subscriptTagIndices,superscriptTagIndices,abbrTagIndices,anchorTagIndices,spanTagIndices);if(sortedIndices.length){if(sortedIndices[0].index>startIndex){subtext=text.substring(startIndex,sortedIndices[0].index);tspanArray=createtspanArray(tspanArray,subtext,lastAttrList,abbrArr,sortedIndices);startIndex=sortedIndices[0].index+sortedIndices[0].tagName.length}for(index=0;index<sortedIndices.length;index++){if(sortedIndices[index+1]!==UNDEF){lastAttrList=createAttrList(lastAttrList,sortedIndices[index]);if(startIndex===0&&sortedIndices[index].index===0){subtext=text.substring(startIndex+sortedIndices[index].tagName.length,sortedIndices[index+1].index)}else{subtext=text.substring(startIndex,sortedIndices[index+1].index)}tspanArray=createtspanArray(tspanArray,subtext,lastAttrList,sortedIndices[index],abbrArr,sortedIndices);startIndex=sortedIndices[index+1].index+sortedIndices[index+1].tagName.length}}if(startIndex<text.length){subtext=text.substring(startIndex,text.length);tspanArray=createtspanArray(tspanArray,subtext,[],abbrArr,sortedIndices)}}return tspanArray},tagHash={"<bold>":{action:"add",tagAttr:"font-weight",tagAttrVal:"bold"},"</bold>":{action:"remove",actionTag:"<bold>"},"<under>":{action:"add",tagAttr:"text-decoration",tagAttrVal:"underline"},"</under>":{action:"remove",actionTag:"<under>"},"<em>":{action:"add",tagAttr:"font-style",tagAttrVal:"italic"},"</em>":{action:"remove",actionTag:"<em>"},"<strike>":{action:"add",tagAttr:"text-decoration",tagAttrVal:"line-through"},"</strike>":{action:"remove",actionTag:"<strike>"},"<sub>":{action:"add",tagAttr:"baseline-shift",tagAttrVal:"sub"},"</sub>":{action:"remove",actionTag:"<sub>"},"<sup>":{action:"add",tagAttr:"baseline-shift",tagAttrVal:"super"},"</sup>":{action:"remove",actionTag:"<sup>"},"<abbr>":{action:"add",tagAttr:"text-decoration",tagAttrVal:"underline"},"</abbr>":{action:"remove",actionTag:"<abbr>"},"<a>":{action:"add"},"</a>":{action:"remove",actionTag:"<a>"},"<span>":{action:"add"},"</span>":{action:"remove",actionTag:"<span>"}},createAttrList=function createAttrList(attrArr,sortedIndex){var i,abbrReg=/<abbr[\s]+([^>]+)>/g,anchorReg=/<a[\s]+([^>]+)>/g,spanReg=/<span[\s]+([^>]+)>/g,subReg=/<sub[\s]+([^>]+)>/g,supReg=/<sup[\s]+([^>]+)>/g,obj;if(sortedIndex.tagName.match(abbrReg)){obj=MergeRecursive({tag:"<abbr>",sortedIndex:sortedIndex});attrArr.push(obj)}else if(sortedIndex.tagName.match(anchorReg)){obj=MergeRecursive({tag:"<a>",sortedIndex:sortedIndex});attrArr.push(obj)}else if(sortedIndex.tagName.match(spanReg)){obj=MergeRecursive({tag:"<span>",sortedIndex:sortedIndex});attrArr.push(obj)}else if(sortedIndex.tagName.match(subReg)){obj=MergeRecursive({tag:"<sub>",sortedIndex:sortedIndex});attrArr.push(obj)}else if(sortedIndex.tagName.match(supReg)){obj=MergeRecursive({tag:"<sup>",sortedIndex:sortedIndex});attrArr.push(obj)}else if(tagHash[sortedIndex.tagName].action==="add"){obj=MergeRecursive({tag:sortedIndex.tagName,sortedIndex:sortedIndex});attrArr.push(obj)}else if(tagHash[sortedIndex.tagName].action==="remove"){for(i=attrArr.length-1;i>=0;i--){if(attrArr[i].tag===tagHash[sortedIndex.tagName].actionTag){attrArr.splice(i,1);break}}}return attrArr},createtspanArray=function createtspanArray(tspanArray,str,lastAttr,indicesObj,abbrArr,sortedIndices){var textNode=R._g.doc.createTextNode(str),obj={},hasAnchor=false,hasAbbr=false,hasSpan=false,title="",style,anchor,tspan,i,j;if(isIE||_raphael.isFirefox){if(hasSub){obj["dy"]=-6;hasSub=false}if(hasSup){obj["dy"]=6;hasSup=false}}if(!lastAttr.length){tspan=$("tspan",obj);tspan.appendChild(textNode);tspanArray.push(tspan)}else{for(i=0;i<lastAttr.length;i++){if(lastAttr[i].tag==="<abbr>"){hasAbbr=true;title=lastAttr[i].sortedIndex.title}else if(lastAttr[i].tag==="<a>"){hasAnchor=true;if(lastAttr[i].href!==""){obj["href"]=lastAttr[i].sortedIndex.href}if(indicesObj.target!==""){obj["target"]=lastAttr[i].sortedIndex.target}if(indicesObj.hreflang!==""){obj["hreflang"]=lastAttr[i].sortedIndex.hreflang}if(indicesObj.referrerpolicy!==""){obj["referrerpolicy"]=lastAttr[i].sortedIndex.referrerpolicy}if(indicesObj.rel!==""){obj["rel"]=lastAttr[i].sortedIndex.rel}anchor=$("a",obj)}else if(lastAttr[i].tag==="<span>"){hasSpan=true;style=lastAttr[i].sortedIndex.style}else if(lastAttr[i].tag==="<sub>"){hasSub=true;style=lastAttr[i].sortedIndex.style}else if(lastAttr[i].tag==="<sup>"){hasSup=true;style=lastAttr[i].sortedIndex.style}if(tagHash[lastAttr[i].tag].tagAttr&&tagHash[lastAttr[i].tag].tagAttrVal){if(isIE||_raphael.isFirefox){if(lastAttr[i].tag==="<sup>"){obj["dy"]=-6;hasSup=true}else if(lastAttr[i].tag==="<sub>"){obj["dy"]=6;hasSub=true}}obj[tagHash[lastAttr[i].tag].tagAttr]=tagHash[lastAttr[i].tag].tagAttrVal}}if(hasAnchor){if(str!==""){tspan=$("tspan",obj);tspan.appendChild(textNode);anchor.appendChild(tspan);tspanArray.push(anchor);hasAnchor=false}}else if(hasAbbr){if(str!==""){tspan=$("tspan",obj);tspan.appendChild(textNode);abbrArr.push({tspan:tspan,title:title});tspanArray.push(tspan)}}else if(hasSpan){if(str!==""){obj=MergeRecursive(obj,style);tspan=$("tspan",obj);tspan.appendChild(textNode);tspanArray.push(tspan)}}else if(hasSub||hasSup){if(str!==""){obj=MergeRecursive(obj,style);tspan=$("tspan",obj);tspan.appendChild(textNode);tspanArray.push(tspan)}}else{if(str!==""){tspan=$("tspan",obj);tspan.appendChild(textNode);tspanArray.push(tspan)}}}return tspanArray},MergeRecursive=function MergeRecursive(obj1,obj2){for(var p in obj2){try{if(obj2[p].constructor==Object){obj1[p]=MergeRecursive(obj1[p],obj2[p])}else{obj1[p]=obj2[p]}}catch(e){obj1[p]=obj2[p]}}return obj1},sortTags=function sortTags(u,b,em,strike,sub,sup,abbr,a,sp){var i,j,tagArr=[u,b,em,strike,sub,sup,abbr,a,sp],res=[];for(j=0;j<tagArr.length;j++){for(var key in tagArr[j]){if(tagArr[j][key].length){for(i=0;i<tagArr[j][key].length;i++){res.push(tagArr[j][key][i])}}}}res=res.sort((function(a,b){return a.index-b.index}));return res},getAbbrTagIndices=function getAbbrTagIndices(abbrRegex,abbrEndRegex,text,tagText,endtagText){var tagindices=[],result,dummyNode,testAbbr,title,endtagindices=[];while(result=abbrRegex.exec(text)){dummyNode=document.createElement("p");testAbbr=result[0]+"Dummy</abbr>";dummyNode.innerHTML=testAbbr;title=dummyNode.childNodes[0]?dummyNode.childNodes[0].title:"";tagindices.push({tagName:result[0],index:result.index,title:title?title:""})}while(result=abbrEndRegex.exec(text)){endtagindices.push({tagName:endtagText,index:result.index})}return{tag:tagindices,endtag:endtagindices}},getStyles=function getStyles(el){var output={};if(!el||!el.style||!el.style.cssText){return output}var camelize=function camelize(str){return str.replace(/(?:^|[-])(\w)/g,(function(a,c){c=a.substr(0,1)==="-"?c.toUpperCase():c;return c?c:""}))};var style=el.style.cssText.split(";");for(var i=0;i<style.length;++i){var rule=style[i].trim();if(rule){var ruleParts=rule.split(":");var key=ruleParts[0].trim();output[key]=ruleParts[1].trim()}}return output},getSpanTagIndices=function getSpanTagIndices(spanRegex,spanEndRegex,text,tagText,endtagText){var tagindices=[],result,dummySpan,testSpan,styleObj,endtagindices=[];while(result=spanRegex.exec(text)){dummySpan=document.createElement("p");testSpan=result[0]+"Dummy</span>";dummySpan.innerHTML=testSpan;styleObj=getStyles(dummySpan.childNodes[0]);tagindices.push({tagName:result[0],index:result.index,style:styleObj?styleObj:""})}while(result=spanEndRegex.exec(text)){endtagindices.push({tagName:endtagText,index:result.index})}return{tag:tagindices,endtag:endtagindices}},getSubSupTagIndices=function getSubSupTagIndices(subSupRegex,subSupEndRegex,text,tagText,endtagText){var tagindices=[],result,dummySpan,testSpan,styleObj,endtagindices=[];while(result=subSupRegex.exec(text)){dummySpan=document.createElement("p");testSpan=result[0]+"Dummy"+endtagText;dummySpan.innerHTML=testSpan;styleObj=getStyles(dummySpan.childNodes[0]);tagindices.push({tagName:result[0],index:result.index,style:styleObj?styleObj:""})}while(result=subSupEndRegex.exec(text)){endtagindices.push({tagName:endtagText,index:result.index})}return{tag:tagindices,endtag:endtagindices}},isUrlValid=function isUrlValid(userInput){var res=userInput.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&=]*)/g);if(!res)return false;else return true},getAnchorTagIndices=function getAnchorTagIndices(anchorRegex,anchorEndRegex,text,tagText,endtagText){var tagindices=[],result,dummyAnchor,testAnchor,isValidHref,endtagindices=[];while(result=anchorRegex.exec(text)){dummyAnchor=document.createElement("p");testAnchor=result[0]+"</a>";dummyAnchor.innerHTML=testAnchor;isValidHref=isUrlValid(encodeURIComponent(dummyAnchor.childNodes[0].href));tagindices.push({tagName:result[0],index:result.index,href:isValidHref?dummyAnchor.childNodes[0].href:"",target:dummyAnchor.childNodes[0].target?dummyAnchor.childNodes[0].target:"",hreflang:dummyAnchor.childNodes[0].hreflang?dummyAnchor.childNodes[0].hreflang:"",referrerpolicy:dummyAnchor.childNodes[0].referrerpolicy?dummyAnchor.childNodes[0].referrerpolicy:"",rel:dummyAnchor.childNodes[0].rel?dummyAnchor.childNodes[0].rel:""})}while(result=anchorEndRegex.exec(text)){endtagindices.push({tagName:endtagText,index:result.index})}return{tag:tagindices,endtag:endtagindices}},getTagIndices=function getTagIndices(tagRegex,endTagRegex,text,tagText,endtagText){var tagindices=[],result,endtagindices=[];while(result=tagRegex.exec(text)){tagindices.push({tagName:tagText,index:result.index})}while(result=endTagRegex.exec(text)){endtagindices.push({tagName:endtagText,index:result.index})}return{tag:tagindices,endtag:endtagindices}},allPossibleAttrs={"accent-height":true,accumulate:true,additive:true,"alignment-baseline":true,alphabetic:true,amplitude:true,"arabic-form":true,ascent:true,azimuth:true,"baseline-shift":true,bbox:true,begin:true,bias:true,by:true,"cap-height":true,class:true,clip:true,"clip-path":true,"clip-rule":true,color:true,"color-interpolation":true,"color-interpolation-filters":true,"color-profile":true,"color-rendering":true,cursor:true,cx:true,cy:true,d:true,decelerate:true,descent:true,direction:true,display:true,divisor:true,"dominant-baseline":true,dur:true,dx:true,dy:true,elevation:true,"enable-background":true,end:true,exponent:true,fill:true,"fill-opacity":true,"fill-rule":true,filter:true,"flood-color":true,"flood-opacity":true,"font-family":true,"font-size":true,"font-size-adjust":true,"font-stretch":true,"font-style":true,"font-variant":true,"font-weight":true,format:true,fr:true,from:true,fx:true,fy:true,g1:true,g2:true,"glyph-name":true,"glyph-orientation-horizontal":true,"glyph-orientation-vertical":true,hanging:true,height:true,"horiz-adv-x":true,"horiz-origin-x":true,href:true,hreflang:true,id:true,ideographic:true,"image-rendering":true,in2:true,in:true,intercept:true,k1:true,k2:true,k3:true,k4:true,k:true,kerning:true,lang:true,"letter-spacing":true,"lighting-color":true,local:true,"marker-end":true,"marker-mid":true,"marker-start":true,mask:true,mathematical:true,max:true,media:true,method:true,min:true,mode:true,name:true,offset:true,opacity:true,operator:true,order:true,orient:true,orientation:true,origin:true,overflow:true,"overline-position":true,"overline-thickness":true,"paint-order":true,"panose-1":true,path:true,ping:true,"pointer-events":true,points:true,r:true,radius:true,rel:true,"rendering-intent":true,restart:true,result:true,rotate:true,rx:true,ry:true,scale:true,seed:true,"shape-rendering":true,slope:true,spacing:true,speed:true,stemh:true,stemv:true,"stop-color":true,"stop-opacity":true,"strikethrough-position":true,"strikethrough-thickness":true,string:true,stroke:true,"stroke-dasharray":true,"stroke-dashoffset":true,"stroke-linecap":true,"stroke-linejoin":true,"stroke-miterlimit":true,"stroke-opacity":true,"stroke-width":true,style:true,tabindex:true,target:true,"text-anchor":true,"text-decoration":true,"text-rendering":true,to:true,transform:true,type:true,u1:true,u2:true,"underline-position":true,"underline-thickness":true,unicode:true,"unicode-bidi":true,"unicode-range":true,"units-per-em":true,"v-alphabetic":true,"v-hanging":true,"v-ideographic":true,"v-mathematical":true,values:true,"vector-effect":true,version:true,"vert-adv-y":true,"vert-origin-x":true,"vert-origin-y":true,visibility:true,width:true,widths:true,"word-spacing":true,"writing-mode":true,x1:true,x2:true,x:true,"x-height":true,"xlink:actuate":true,"xlink:arcrole":true,"xlink:href":true,"xlink:role":true,"xlink:show":true,"xlink:title":true,"xlink:type":true,"xml:base":true,"xml:lang":true,"xml:space":true,y1:true,y2:true,y:true,z:true};if(supportsTouch){doc.addEventListener(supportsPointer?"pointerover":"touchstart",(function(e){if(lastHoveredInfo.srcElement&&lastHoveredInfo.srcElement!==(e.srcElement||e.target)){var elementInfo=lastHoveredInfo.elementInfo,ii=elementInfo.length,elementInfo,elems,i;for(i=0;i<ii;i++){elems=elementInfo[i];elems.callback.call(elems.el,e)}}lastHoveredInfo={elementInfo:[]}}),true)}R.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};R._url=E;var updateGradientReference=function updateGradientReference(element,newGradient,attr){if(attr===void 0){attr="fill"}var gradient=attr==="fill"?element.gradient:element["stroke-gradient"];if(gradient){if(gradient===newGradient){return}gradient.refCount--;if(!gradient.refCount){gradient.parentNode.removeChild(gradient)}attr==="fill"?delete element.gradient:delete element["stroke-gradient"]}if(newGradient){attr==="fill"?element.gradient=newGradient:element["stroke-gradient"]=newGradient;newGradient.refCount++}};var $=R._createNode=function(el,attr){if(typeof el===typeStringSTR){el=R._g.doc.createElementNS(svgNSStr,el)}if(attr){var key,value;for(key in attr){value=isIE9?Str(attr[key]):attr[key];if(xlinkRegx.test(key)){el.setAttributeNS(xlink,key.replace(xlinkRegx,E),value)}else{el.setAttribute(key,value)}}}return el},gradientUnitNames={userSpaceOnUse:"userSpaceOnUse",objectBoundingBox:"objectBoundingBox"},gradientSpreadNames={pad:"pad",redlect:"reflect",repeat:"repeat"},addGradient=function addGradient(element,gradient,attr){var _$;if(attr===void 0){attr="fill"}if(!element.paper||!element.paper.defs){return 0}var type="linear",SVG=element.paper,id=R.getElementID((SVG.id+"-"+gradient).replace(/[()\s%:,\xb0#]/g,"_")),fx=.5,fy=.5,r,cx,cy,units,spread,o=element.node,s=o.style,el=R._g.doc.getElementById(id),vector;if(!el){gradient=Str(gradient).replace(R._radial_gradient,(function(all,opts){type="radial";opts=opts?opts.split(","):[];units=opts[5];spread=opts[6];var _fx=opts[0],_fy=opts[1],_r=opts[2],_cx=opts[3],_cy=opts[4],shifted=_fx&&_fy,dir,sqx;if(_r){r=/%/.test(_r)?_r:toFloat(_r)}if(units===gradientUnitNames.userSpaceOnUse){if(shifted){fx=_fx;fy=_fy}if(_cx&&_cy){cx=_cx;cy=_cy;if(!shifted){fx=cx;fy=cy}}return E}if(shifted){fx=toFloat(_fx);fy=toFloat(_fy);dir=(fy>.5)*2-1;(sqx=pow(fx-.5,2))+pow(fy-.5,2)>.25&&sqx<.25&&(fy=sqrt(.25-sqx)*dir+.5)&&fy!==.5&&(fy=fy.toFixed(5)-1e-5*dir)}if(_cx&&_cy){cx=toFloat(_cx);cy=toFloat(_cy);dir=(cy>.5)*2-1;(sqx=pow(cx-.5,2))+pow(cy-.5,2)>.25&&sqx<.25&&(cy=sqrt(.25-sqx)*dir+.5)&&cy!==.5&&(cy=cy.toFixed(5)-1e-5*dir);if(!shifted){fx=cx;fy=cy}}return E}));gradient=gradient.split(/\s*-\s*/);if(type==="linear"){var angle=gradient.shift(),specs=angle.match(/\((.*)\)/),max;specs=specs&&specs[1]&&specs[1].split(/\s*,\s*/);angle=-toFloat(angle);if(isNaN(angle)){return null}if(specs&&specs.length){if(specs[0]in gradientUnitNames){units=specs.shift();specs[0]in gradientSpreadNames&&(spread=specs.shift())}else{specs[4]&&(units=specs[4]);specs[5]&&(spread=specs[5])}vector=[specs[0]||"0%",specs[1]||"0%",specs[2]||"100%",specs[3]||"0%"]}else{vector=[0,0,math.cos(R.rad(angle)),math.sin(R.rad(angle))];max=1/(mmax(abs(vector[2]),abs(vector[3]))||1);vector[2]*=max;vector[3]*=max;if(vector[2]<0){vector[0]=-vector[2];vector[2]=0}if(vector[3]<0){vector[1]=-vector[3];vector[3]=0}}}var dots=R._parseDots(gradient);if(!dots){return null}el=$(type+"Gradient",{id:id});el.refCount=0;units in gradientUnitNames&&el.setAttribute("gradientUnits",Str(units));spread in gradientSpreadNames&&el.setAttribute("spreadMethod",Str(spread));if(type==="radial"){r!==undefined&&el.setAttribute("r",Str(r));if(cx!==undefined&&cy!==undefined){el.setAttribute("cx",Str(cx));el.setAttribute("cy",Str(cy))}el.setAttribute("fx",Str(fx));el.setAttribute("fy",Str(fy))}else{$(el,{x1:vector[0],y1:vector[1],x2:vector[2],y2:vector[3]})}for(var i=0,ii=dots.length;i<ii;i++){el.appendChild($("stop",{offset:dots[i].offset?dots[i].offset:i?"100%":"0%","stop-color":dots[i].color||"#fff","stop-opacity":dots[i].opacity===undefined?1:dots[i].opacity}))}SVG.defs.appendChild(el)}updateGradientReference(element,el,attr);$(o,(_$={},_$[attr]="url('"+R._url+"#"+id+"')",_$[attr+"-opacity"]=1,_$));s.fill=E;return 1},updatePosition=function updatePosition(o){var bbox=o.getBBox(1);$(o.pattern,{patternTransform:o.matrix.invert()+" translate("+bbox.x+","+bbox.y+")"})},addArrow=function addArrow(o,value,isEnd){if(o.type=="path"){var values=Str(value).toLowerCase().split("-"),p=o.paper,se=isEnd?"end":"start",node=o.node,attrs=o.attrs,stroke=attrs["stroke-width"],i=values.length,type="classic",from,to,dx,refX,attr,w=3,h=3,t=5;while(i--){switch(values[i]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":type=values[i];break;case"wide":h=5;break;case"narrow":h=2;break;case"long":w=5;break;case"short":w=2;break}}if(type=="open"){w+=2;h+=2;t+=2;dx=1;refX=isEnd?4:1;attr={fill:"none",stroke:attrs.stroke}}else{refX=dx=w/2;attr={fill:attrs.stroke,stroke:"none"}}if(o._.arrows){if(isEnd){o._.arrows.endPath&&markerCounter[o._.arrows.endPath]--;o._.arrows.endMarker&&markerCounter[o._.arrows.endMarker]--}else{o._.arrows.startPath&&markerCounter[o._.arrows.startPath]--;o._.arrows.startMarker&&markerCounter[o._.arrows.startMarker]--}}else{o._.arrows={}}if(type!="none"){var pathId="raphael-marker-"+type,markerId="raphael-marker-"+se+type+w+h+"-obj"+o.id;if(!R._g.doc.getElementById(pathId)){p.defs.appendChild($($("path"),{"stroke-linecap":"round",d:markers[type],id:pathId}));markerCounter[pathId]=1}else{markerCounter[pathId]++}var marker=R._g.doc.getElementById(markerId),use;if(!marker){marker=$($("marker"),{id:markerId,markerHeight:h,markerWidth:w,orient:"auto",refX:refX,refY:h/2});use=$($("use"),{"xlink:href":"#"+pathId,transform:(isEnd?"rotate(180 "+w/2+" "+h/2+") ":E)+"scale("+w/t+","+h/t+")","stroke-width":(1/((w/t+h/t)/2)).toFixed(4)});marker.appendChild(use);p.defs.appendChild(marker);markerCounter[markerId]=1}else{markerCounter[markerId]++;use=marker.getElementsByTagName("use")[0]}$(use,attr);var delta=dx*(type!="diamond"&&type!="oval");if(isEnd){from=o._.arrows.startdx*stroke||0;to=R.getTotalLength(attrs.path)-delta*stroke}else{from=delta*stroke;to=R.getTotalLength(attrs.path)-(o._.arrows.enddx*stroke||0)}attr={};attr["marker-"+se]="url('"+R._url+"#"+markerId+"')";if(to||from){attr.d=R.getSubpath(attrs.path,from,to)}$(node,attr);o._.arrows[se+"Path"]=pathId;o._.arrows[se+"Marker"]=markerId;o._.arrows[se+"dx"]=delta;o._.arrows[se+"Type"]=type;o._.arrows[se+"String"]=value}else{if(isEnd){from=o._.arrows.startdx*stroke||0;to=R.getTotalLength(attrs.path)-from}else{from=0;to=R.getTotalLength(attrs.path)-(o._.arrows.enddx*stroke||0)}o._.arrows[se+"Path"]&&$(node,{d:R.getSubpath(attrs.path,from,to)});delete o._.arrows[se+"Path"];delete o._.arrows[se+"Marker"];delete o._.arrows[se+"dx"];delete o._.arrows[se+"Type"];delete o._.arrows[se+"String"]}for(attr in markerCounter){if(markerCounter[has](attr)&&!markerCounter[attr]){var item=R._g.doc.getElementById(attr);item&&item.parentNode.removeChild(item)}}}},dasharray={"":[noneStr],none:[noneStr],"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},addDashes=function addDashes(o,value,params){if(value!==undefined){var predefValue=dasharray[value.toLowerCase&&value.toLowerCase()],calculatedValues,width,butt,i,widthFactor;value=predefValue||[].concat(value);if(R.is(value,arrayStr)){width=params["stroke-width"]||o.attrs["stroke-width"]||1;butt={round:width,square:width,butt:0}[params["stroke-linecap"]||o.attrs["stroke-linecap"]]||0;i=value.length;widthFactor=predefValue?width:1;if(value[0]===noneStr){calculatedValues=value}else{calculatedValues=[];while(i--){calculatedValues[i]=value[i]*widthFactor+(i%2?1:-1)*butt;calculatedValues[i]<=0&&(calculatedValues[i]=.01+(width<=1?butt:0));if(isNaN(calculatedValues[i])){calculatedValues[i]=0}}}return{"stroke-dasharray":calculatedValues.join(",")}}}},setFillAndStroke=R._setFillAndStroke=function(o,params){if(!o.paper.canvas){return}var node=o.node,attrs=o.attrs,paper=o.paper,el,att,finalAttr={},finalS={},ignoreAttrs={"clip-rect":true},value,pathClip,urlArr,rect;if(o.type===imageStr){(0,_raphael.loadRefImage)(o,params)}for(att in params){if(att in R._availableAttrs){value=params[att];if(value===E&&att in attrs){delete attrs[att];node.removeAttribute(att==="src"?"href":att)}else if(value===null&&!ignoreAttrs[att]){if(att in attrs){delete attrs[att];node.removeAttribute(att==="src"?"href":att)}}else{attrs[att]=value;switch(att){case"blur":o.blur(value);break;case"href":case"title":case"target":var pn=node.parentNode;if(pn.tagName.toLowerCase()!=="a"){if(value===E){break}var hl=$("a");hl.raphael=true;hl.raphaelid=node.raphaelid;pn.insertBefore(hl,node);hl.appendChild(node);pn=hl}if(att==="target"){pn.setAttributeNS(xlink,"show",value==="blank"?"new":value)}else{pn.setAttributeNS(xlink,att,value)}node.titleNode=pn;break;case"cursor":finalS.cursor=value;break;case"transform":o.transform(value);break;case"rotation":if(R.is(value,arrayStr)){o.rotate.apply(o,value)}else{o.rotate(value)}break;case"arrow-start":addArrow(o,value);break;case"arrow-end":addArrow(o,value,1);break;case"clip-path":pathClip=true;case"clip-rect":rect=!pathClip&&Str(value).split(separator);o._.clipispath=!!pathClip;if(pathClip||rect.length===4){o.clip&&o.clip.parentNode.parentNode.removeChild(o.clip.parentNode);var rc=$(pathClip?"path":"rect");el=$("clipPath");el.id=R.getElementID(R.createUUID());$(rc,pathClip?{d:value?attrs["clip-path"]=R._pathToAbsolute(value):R._availableAttrs.path,fill:noneStr}:{x:rect[0],y:rect[1],width:rect[2],height:rect[3],transform:o.matrix.invert()});el.appendChild(rc);paper.defs.appendChild(el);finalAttr["clip-path"]="url('"+R._url+"#"+el.id+"')";o.clip=rc}if(!value){var path=node.getAttribute("clip-path");if(path){var clip=R._g.doc.getElementById(path.replace(/(^url\(#|\)$)/g,E));clip&&clip.parentNode.removeChild(clip);finalAttr["clip-path"]=E;document.documentMode===11&&node.removeAttribute("clip-path");delete o.clip}}break;case"path":if(o.type==="path"){finalAttr.d=value?attrs.path=R._stopabsolutePath?R.sanitizePath(value):R._pathToAbsolute(value):R._availableAttrs.path;o._.dirty=1;if(o._.arrows){"startString"in o._.arrows&&addArrow(o,o._.arrows.startString);"endString"in o._.arrows&&addArrow(o,o._.arrows.endString,1)}}break;case"width":finalAttr[att]=value;o._.dirty=1;if(attrs.fx){att="x";value=attrs.x}else{break}case"x":if(attrs.fx){value=-attrs.x-(attrs.width||0)}case"rx":if(att==="rx"&&o.type==="rect"){break}case"cx":finalAttr[att]=value;o.pattern&&updatePosition(o);o._.dirty=1;break;case"height":finalAttr[att]=value;o._.dirty=1;if(attrs.fy){att="y";value=attrs.y}else{break}case"y":if(o.type===textStr&&!o.attrs["text-bound"]){break}if(attrs.fy){value=-attrs.y-(attrs.height||0)}case"ry":if(att==="ry"&&o.type==="rect"){break}case"cy":finalAttr[att]=value;o.pattern&&updatePosition(o);o._.dirty=1;break;case"r":if(o.type==="rect"){finalAttr.rx=finalAttr.ry=value}else{finalAttr[att]=value}o._.dirty=1;break;case"src":if(o.type===imageStr){node.setAttributeNS(xlink,"href",value)}break;case"stroke-width":if(o._.sx!==1||o._.sy!==1){value/=mmax(abs(o._.sx),abs(o._.sy))||1}if(paper._vbSize){value*=paper._vbSize}if(zeroStrokeFix&&value===0){value=1e-6}finalAttr[att]=value;if(!params["stroke-dasharray"]&&attrs["stroke-dasharray"]&&params["stroke-dasharray"]!==""){quickExtend(finalAttr,addDashes(o,attrs["stroke-dasharray"],params))}if(o._.arrows){"startString"in o._.arrows&&R.addArrow&&R.addArrow(o,o._.arrows.startString);"endString"in o._.arrows&&R.addArrow&&R.addArrow(o,o._.arrows.endString,1)}break;case"stroke-dasharray":quickExtend(finalAttr,addDashes(o,value,params));break;case"fill":var isURL=R._ISURL.test(value);if(isURL){urlArr=value.split(R._ISURL);el=$("pattern");var ig=$(imageStr);el.id=R.getElementID(R.createUUID());$(el,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});$(ig,{x:0,y:0,"xlink:href":urlArr[1]});el.appendChild(ig);preLoad(el,ig,urlArr,paper);paper.defs.appendChild(el);finalAttr.fill="url('"+R._url+urlArr[1]+"')";o.pattern=el;o.pattern&&updatePosition(o);break}var clr=R.getRGB(value);if(!clr.error){delete params.gradient;delete attrs.gradient;!R.is(attrs["fill-opacity"],"undefined")&&R.is(params["fill-opacity"],"undefined")&&(finalAttr["fill-opacity"]=attrs["fill-opacity"]);o.gradient&&updateGradientReference(o)}else if((o.type==="circle"||o.type==="ellipse"||Str(value).charAt()!=="r")&&addGradient(o,value)){attrs.gradient=value;break}if(clr[has]("opacity")){finalAttr["fill-opacity"]=clr.opacity>1?clr.opacity/100:clr.opacity;o._.fillOpacityDirty=true}else if(o._.fillOpacityDirty&&R.is(attrs["fill-opacity"],"undefined")&&R.is(params["fill-opacity"],"undefined")){node.removeAttribute("fill-opacity");delete o._.fillOpacityDirty}case"stroke":clr=R.getRGB(value);if(clr.error){if(o.type==="circle"||o.type==="ellipse"||Str(value).charAt()!=="r"){addGradient(o,value,"stroke")}}else{finalAttr[att]=clr.hex;updateGradientReference(o,UNDEF,att)}if(att==="stroke"){if(clr[has]("opacity")){finalAttr["stroke-opacity"]=clr.opacity>1?clr.opacity/100:clr.opacity;o._.strokeOpacityDirty=true}else if(o._.strokeOpacityDirty&&R.is(attrs["stroke-opacity"],"undefined")&&R.is(params["stroke-opacity"],"undefined")){node.removeAttribute("stroke-opacity");delete o._.strokeOpacityDirty}if(o._.arrows){"startString"in o._.arrows&&addArrow(o,o._.arrows.startString);"endString"in o._.arrows&&addArrow(o,o._.arrows.endString,1)}}break;case"gradient":(o.type==="circle"||o.type==="ellipse"||Str(value).charAt()!=="r")&&addGradient(o,value);break;case"visibility":value===hiddenStr?o.hide():o.show();break;case"opacity":value=value>1?value/100:value;finalAttr.opacity=value;break;case"fill-opacity":value=value>1?value/100:value;finalAttr["fill-opacity"]=value;break;case"shape-rendering":o.attrs[att]=value=shapeRenderingAttrs[value]||value||"auto";finalAttr[att]=value;node.style.shapeRendering=value;break;case"line-height":case"vertical-align":break;default:att===fontSizeStr&&(value=toInt(value,10)+"px");o._.dirty=1;finalAttr[att]=value;if(_raphael.dashedAttr2CSSMap[att]){finalS[_raphael.dashedAttr2CSSMap[att]]=value}break}}}else if(att in allPossibleAttrs){if(value===E&&att in attrs){delete attrs[att];node.removeAttribute(att)}else{attrs[att]=value;finalS[att]=value}}}for(att in finalS){node.style[att]=finalS[att]}for(att in finalAttr){node.setAttribute(att,finalAttr[att])}o.type===textStr&&!params[notToTuneStr]&&tuneText(o,params)},updateFollowers=R._updateFollowers=function(){var i,ii,followerElem,args=(0,_raphael.getArrayCopy)(arguments),o=arrayShift.call(args),fnName=arrayShift.call(args);for(i=0,ii=o.followers.length;i<ii;i++){followerElem=o.followers[i].el;followerElem[fnName].apply(followerElem,args)}},leading=1.2,tuneText=function tuneText(el,params){if(el.type!==textStr||!(params[has](textStr)||params[has]("font")||params[has](fontSizeStr)||params[has]("x")||params[has]("y")||params[has](lineHeightStr)||params[has](vAlignStr)||params[has](textPathStr))){return}var a=el.attrs,defs=el.paper.defs,group=el.parent,node=el.node,fontSize,oldAttr=el._oldAttr=el._oldAttr||{baseLineDiff:8,valign:-.5},lineHeight=toFloat(params[lineHeightStr]||a[lineHeightStr]),direction=params.direction||a.direction||group&&group.attrs&&group.attrs.direction||oldAttr.direction||initialStr,valign,updateNode=false,tspanAttr,updateTspan=false,i,spanArr=[],abbrindx,dummyEl,tspanArr=[],abbrArr=[],hasTags=false,l,ii,j=!isIE&&direction===rtlStr?2:1,texts,tempIESpan,tspan,updateAlignment=false,tspans,text,textChanged=false,removeAllChild,hasnbsp=function hasnbsp(text){return text&&nbspRegex.test(text)},spacify=function spacify(text){return text.replace(/\s+/g," ").trim().replace(nbspRegex," ")};if(params[has](textPathStr)){var rUUID=R.getElementID(R.createUUID()),textPathParams=params[textPathStr];var textPath,tSpan,txtNode,dy=0,textPathProps={};for(var key in textPathParams){if(textPathParams.hasOwnProperty(key)){if(key==="path"&&!("href"in textPathParams)){if(oldAttr.textPathStr!==textPathParams[key]){if(el.textPathDef){el.textPathDef.setAttribute("d",textPathParams[key]||E);textPathProps.href="#"+el.textPathDef.getAttribute("id");textPathProps["xlink:href"]="#"+el.textPathDef.getAttribute("id")}else{el.textPathDef=defs.appendChild($("path",{id:rUUID,d:textPathParams[key]||E}));textPathProps.href="#"+rUUID;textPathProps["xlink:href"]="#"+rUUID}oldAttr.textPathStr=textPathParams[key]}else{textPathProps.href="#"+el.textPathDef.getAttribute("id");textPathProps["xlink:href"]="#"+el.textPathDef.getAttribute("id")}}else{textPathProps[key]=textPathParams[key]}}}if(params[has](textStr)){txtNode=R._g.doc.createTextNode(params[textStr]||E);oldAttr.pathText=a.text=params[textStr]||E}else{txtNode=R._g.doc.createTextNode(oldAttr.pathText||oldAttr.text||E);oldAttr.pathText=oldAttr.pathText||oldAttr.text||E;delete oldAttr.text}if(params[has](vAlignStr)){if(params[vAlignStr]===middleStr){dy=.3;oldAttr.valign=-.5}else if(params[vAlignStr]===bottomStr){dy=.7;oldAttr.valign=-1}else if(params[vAlignStr]===topStr){oldAttr.valign=0}tSpan=$("tspan",{dy:dy+"em"});tSpan.appendChild(txtNode);oldAttr.tSpan=tSpan}else{if(oldAttr.tSpan&&(oldAttr.tSpan.textContent===params[textStr]||typeof params[textStr]!==typeStringSTR)){tSpan=oldAttr.tSpan}else{if(oldAttr.valign===-.5){dy=.3}else if(oldAttr.valign===-1){dy=.7}else{dy=0}tSpan=$("tspan",{dy:dy+"em"});tSpan.appendChild(txtNode);oldAttr.tSpan=tSpan}}if(params[textStr]!==UNDEF){delete oldAttr.x;delete oldAttr.y;node.removeAttribute("x");node.removeAttribute("y");textPath=$("textPath",textPathProps);textPath.appendChild(tSpan||txtNode);while(node.firstChild){node.removeChild(node.firstChild)}node.appendChild(textPath)}}else{oldAttr.direction=direction;if(el.textPathDef&&defs){el.textPathDef.parentNode.removeChild(el.textPathDef);delete el.textPathDef}delete oldAttr.txtNode;delete oldAttr.tSpan;delete oldAttr.textPathStr;if(!lineHeight){fontSize=params.fontSize||params[fontSizeStr]||a[fontSizeStr]||group&&group.attrs&&group.attrs.fontSize;fontSize=fontSize?fontSize.toString().replace(pxStr,E):10;lineHeight=fontSize*leading}if(params[has](textStr)||oldAttr.pathText){if(R.is(params.text,arrayStr)){text=params.text.join(brStr)}else if(params.text==null){text=oldAttr.pathText}else{text=params.text}delete oldAttr.pathText;text=text.toString();if(text!==oldAttr.text){textChanged=true;if(text&&ltgtbrRegex.test(text)){text=text.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;|&#034;/g,'"').replace(/&#039;/g,"'").replace(/&<br\/>lt;|&l<br\/>t;|&lt<br\/>;/g,"<<br/>").replace(/&<br\/>gt;|&g<br\/>t;|&gt<br\/>;/g,"><br/>")}text=text.replace(/<u>/g,"<under>").replace(/<\/u>/g,"</under>").replace(/<b>/g,"<bold>").replace(/<\/b>/g,"</bold>").replace(/<strong>/g,"<bold>").replace(/<\/strong>/g,"</bold>").replace(/<em>/g,"<em>").replace(/<\/em>/g,"</em>").replace(/<i>/g,"<em>").replace(/<\/i>/g,"</em>").replace(/<strike>/g,"<strike>").replace(/<\/strike>/g,"</strike>").replace(/<s>/g,"<strike>").replace(/<\/s>/g,"</strike>").replace(/<del>/g,"<strike>").replace(/<\/del>/g,"</strike>").replace(/<sub>/g,"<sub>").replace(/<\/sub>/g,"</sub>").replace(/<sup>/g,"<sup>").replace(/<\/sup>/g,"</sup>");oldAttr.text=a.text=text;if(textBreakRegx.test(text)){if(oldAttr.noTSpan){oldAttr.noTSpan=!(removeAllChild=true)}texts=Str(text).split(textBreakRegx);l=texts.length}else{removeAllChild=true;oldAttr.noTSpan=true;l=1}if(oldAttr.lineCount!==l){oldAttr.lineCount=l;updateAlignment=true}}}if(lineHeight!==oldAttr.lineHeight){oldAttr.lineHeight=lineHeight;oldAttr.baseLineDiff=lineHeight*.75;updateAlignment=true}if(removeAllChild){while(node.firstChild){node.removeChild(node.firstChild)}}if(oldAttr.lineCount>1){if(node.style.whiteSpace===PRESERVESTRING){node.style.whiteSpace=BLANKSTRING}tspanAttr={};if(!oldAttr.tspanAttr){oldAttr.tspanAttr={};oldAttr.tspan0Attr={}}if(oldAttr.tspanAttr.dy!==oldAttr.lineHeight){oldAttr.tspanAttr.dy=tspanAttr.dy=oldAttr.lineHeight;updateTspan=true}if(params[has]("x")&&oldAttr.tspanAttr.x!==params.x){oldAttr.tspan0Attr.x=oldAttr.tspanAttr.x=tspanAttr.x=a.x;updateTspan=true}if(textChanged){tspans=node.childNodes;for(i=0;i<l;i++){tspan=tspans[i*j];spanArr=createValidTextNode(texts[i],abbrArr);if(tspan){tspan.innerHTML=E;if(isIE){while(tspan.firstChild){tspan.removeChild(tspan.firstChild)}}if(updateTspan){$(tspan,i?tspanAttr:oldAttr.tspan0Attr)}}else{tspan=$(tSpanStr,i?oldAttr.tspanAttr:oldAttr.tspan0Attr);node.appendChild(tspan);if(!isIE&&direction===rtlStr){tempIESpan=$(tSpanStr,IESplTspanAttr);tempIESpan.appendChild(R._g.doc.createTextNode("i"));node.appendChild(tempIESpan)}}if(!texts[i]){tspan.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");texts[i]=S}if(hasnbsp(texts[i])){texts[i]=spacify(texts[i]);tspan.style.whiteSpace=PRESERVESTRING}else if(tspan.style.whiteSpace===PRESERVESTRING){tspan.style.whiteSpace=BLANKSTRING}if(spanArr.length){for(var indx=0;indx<spanArr.length;indx++){tspan.appendChild(spanArr[indx])}}else{tspan.appendChild(R._g.doc.createTextNode(texts[i]))}if(abbrArr.length){for(abbrindx=0;abbrindx<abbrArr.length;abbrindx++){dummyEl=el.paper["text"]({display:"none"});dummyEl.node=abbrArr[abbrindx].tspan;if(!el.abbrArr){el.abbrArr=[]}el.abbrArr.push({el:dummyEl,title:abbrArr[abbrindx].title})}}}}else if(updateTspan){tspans=node.childNodes;ii=tspans.length;for(i=0;i<ii;i+=j){$(tspans[i],i?tspanAttr:oldAttr.tspan0Attr)}}ii=l*j;if(node.childNodes.length>ii){for(i=node.childNodes.length-1;i>=ii;i-=1){node.removeChild(node.childNodes[i])}}}else if(textChanged){if(hasnbsp(text)){text=spacify(text);node.style.whiteSpace=PRESERVESTRING}else if(node.style.whiteSpace===PRESERVESTRING){node.style.whiteSpace=BLANKSTRING}tspanArr=createValidTextNode(text,abbrArr);if(tspanArr.length){for(var index=0;index<tspanArr.length;index++){node.appendChild(tspanArr[index])}}else{node.appendChild(R._g.doc.createTextNode(text))}if(abbrArr.length){for(abbrindx=0;abbrindx<abbrArr.length;abbrindx++){dummyEl=el.paper["text"]({display:"none"});dummyEl.node=abbrArr[abbrindx].tspan;if(!el.abbrArr){el.abbrArr=[]}el.abbrArr.push({el:dummyEl,title:abbrArr[abbrindx].title})}}}if(params[vAlignStr]){valign=vAlignMultiplier[a[vAlignStr]]||0;if(valign!==oldAttr.valign){oldAttr.valign=valign;updateAlignment=true}}if(updateAlignment){oldAttr.shift=oldAttr.baseLineDiff+oldAttr.lineCount*oldAttr.lineHeight*oldAttr.valign;updateNode=true}if((params.y||params.y===0)&&oldAttr.y!==params.y){oldAttr.y=a.y;updateNode=true}if(updateNode&&(oldAttr.y||oldAttr.y===0)&&(oldAttr.shift||oldAttr.shift===0)){$(node,{y:Math.round(oldAttr.y+oldAttr.shift)})}}},Element=function Element(node,svg,group){var o=this,parent=group||svg;parent.canvas&&parent.canvas.appendChild(node);o.node=o[0]=node;node.raphael=true;node.raphaelid=o.id=R._oid++;o.matrix=R.matrix();o.realPath=null;o.attrs=o.attrs||{};o.followers=o.followers||[];o.paper=svg;o.ca=o.customAttributes=o.customAttributes||new svg._CustomAttributes;o._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1};o.parent=parent;!parent.bottom&&(parent.bottom=o);o.prev=parent.top;parent.top&&(parent.top.next=o);parent.top=o;o.next=null},getTouchDistance=function getTouchDistance(touch1,touch2,isY){var select=isY?"pageY":"pageX";return Math.abs(touch2[select]-touch1[select])},storeHandlers=R.storeHandlers=function(elem,handler,fn){elem._actualListners||(elem._actualListners=[]);elem._derivedListeners||(elem._derivedListeners=[]);elem._actualListners.push(handler);elem._derivedListeners.push(fn)},removeHandlers=function removeHandlers(elem,handler){var index=elem._actualListners.indexOf(handler),derivedHandler;if(index!==-1){derivedHandler=elem._derivedListeners[index];elem._actualListners.splice(index,1);elem._derivedListeners.splice(index,1)}return derivedHandler},elproto=R.el;Element.prototype=elproto;elproto.constructor=Element;R._engine.getNode=function(el){var node=el.node||el[0].node;return node.titleNode||node};R._engine.getLastNode=function(el){var node=el.node||el[el.length-1].node;return node.titleNode||node};elproto.rotate=function(deg,cx,cy){var o=this,bbox;if(o.removed){return o}updateFollowers(o,"rotate",deg,cx,cy);deg=Str(deg).split(separator);if(deg.length-1){cx=toFloat(deg[1]);cy=toFloat(deg[2])}deg=toFloat(deg[0]);cy==null&&(cx=cy);if(cx==null||cy==null){bbox=o.getBBox(1);cx=bbox.x+bbox.width/2;cy=bbox.y+bbox.height/2}o.transform(o._.transform.concat([["r",deg,cx,cy]]));return o};elproto.scale=function(sx,sy,cx,cy){var o=this,bbox;if(o.removed){return o}updateFollowers(o,"scale",sx,sy,cx,cy);sx=Str(sx).split(separator);if(sx.length-1){sy=toFloat(sx[1]);cx=toFloat(sx[2]);cy=toFloat(sx[3])}sx=toFloat(sx[0]);sy==null&&(sy=sx);cy==null&&(cx=cy);if(cx==null||cy==null){bbox=o.getBBox(1)}cx=cx==null?bbox.x+bbox.width/2:cx;cy=cy==null?bbox.y+bbox.height/2:cy;o.transform(o._.transform.concat([["s",sx,sy,cx,cy]]));return o};elproto.translate=function(dx,dy){var o=this;if(o.removed){return o}updateFollowers(o,"translate",dx,dy);dx=Str(dx).split(separator);if(dx.length-1){dy=toFloat(dx[1])}dx=toFloat(dx[0])||0;dy=+dy||0;o.transform(o._.transform.concat([["t",dx,dy]]));return o};elproto.transform=function(tstr){var o=this,_=o._,sw;if(tstr==null){return _.transform}R._extractTransform(o,tstr);o.clip&&!_.clipispath&&$(o.clip,{transform:o.matrix.invert()});o.pattern&&updatePosition(o);o.node&&$(o.node,{transform:o.matrix});if(_.sx!==1||_.sy!==1){sw=o.attrs["stroke-width"];sw&&o.attr({"stroke-width":sw})}return o};elproto.hide=function(){var o=this;updateFollowers(o,"hide");!o.removed&&o.paper.safari(o.node.style.display=noneStr);return o};elproto.show=function(){var o=this;updateFollowers(o,"show");!o.removed&&o.paper.safari(o.node.style.display=E);return o};elproto.remove=function(){if(this.removed||!this.parent.canvas){return}var o=this,node=R._engine.getNode(o),paper=o.paper,defs=paper.defs,i;paper.__set__&&paper.__set__.exclude(o);eve.unbind("raphael.*.*."+o.id);if(o.gradient&&defs){updateGradientReference(o)}if(o["stroke-gradient"]&&defs){updateGradientReference(o,UNDEF,"stroke")}if(o.textPathDef&&defs){o.textPathDef.parentNode.removeChild(o.textPathDef);delete o.textPathDef}while(i=o.followers.pop()){i.el.remove()}while(i=o.bottom){i.remove()}if(o._drag){o.undrag()}if(o.events){while(i=o.events.pop()){i.unbind()}}o.parent.canvas.contains(node)&&o.parent.canvas.removeChild(node);o.removeData();delete paper._elementsById[o.id];R._tear(o,o.parent);for(i in o){o[i]=typeof o[i]===fnStr?R._removedFactory(i):null}o.removed=true};elproto._getBBox=function(){var fn,o=this,node=o.node,bbox={},a=o.attrs,align,hide,isText=o.type===textStr;if(isIE&&isText){fn=(0,_raphael.showRecursively)(o)}else{if(node.style.display===noneStr){o.show();hide=true}}try{bbox=node.getBBox();if(isText){if(bbox.x===undefined){bbox.isCalculated=true;align=a["text-anchor"];bbox.x=(a.x||0)-bbox.width*(align==="start"?0:align===middleStr?.5:1)}if(bbox.y===undefined){bbox.isCalculated=true;align=a[vAlignStr];bbox.y=(a.y||0)-bbox.height*(align===bottomStr?1:align===middleStr?.5:0)}}}catch(e){}finally{bbox=bbox||{}}isIE&&isText?fn&&fn():hide&&o.hide();return bbox};elproto.attr=function(name,value){if(this.removed){return this}var elem=this,attrs=this.attrs,key,finalParam={},i,ii,params,subkey,par,follower,invokedCa=elem._invokedCa||(elem._invokedCa={}),ca,caObj=this.ca;if(name==null){var res={};for(key in attrs){if(attrs[has](key)){res[key]=attrs[key]}}res.gradient&&res.fill===noneStr&&(res.fill=res.gradient)&&delete res.gradient;res.transform=this._.transform;res.visibility=this.node.style.display===noneStr?hiddenStr:visibleStr;return res}else{if(value==null){if(R.is(name,objectStr)){params=name}else if(R.is(name,typeStringSTR)){if(name===fillStr&&attrs.fill===noneStr&&attrs.gradient){return attrs.gradient}if(name===transformStr){return this._.transform}if(name===visibilityStr){return this.node.style.display===noneStr?hiddenStr:visibleStr}if(name in attrs){return attrs[name]}else if(R.is(caObj[name],fnStr)){return caObj[name].def}return R._availableAttrs[name]}}else{params={};params[name]=value}if(!R.stopPartialEventPropagation){for(key in params){eve("raphael.attr."+key+"."+this.id,this,params[key],key)}}for(key in params){ca=caObj[key];if(ca&&!invokedCa[key]&&R.is(ca,fnStr)){invokedCa[key]=true;par=ca.apply(this,[].concat(params[key]));invokedCa[key]=false;for(subkey in par){finalParam[subkey]=par[subkey]}attrs[key]=params[key]}else{finalParam[key]=params[key]}}setFillAndStroke(this,finalParam);for(i=0,ii=this.followers.length;i<ii;i++){follower=this.followers[i];follower.cb&&!follower.cb.call(follower.el,finalParam,this)||follower.el.attr(finalParam)}return this}};elproto.pinchstart=function(handler,context){var elem=this,dummyEve={},fn=function fn(e){if(e.touches&&e.touches.length===2){var touch1=e.touches[0],touch2=e.touches[1];elem._blockDrag=true;e&&e.preventDefault();R.makeSelectiveCopy(dummyEve,e);dummyEve.data={finger0:touch1,finger1:touch2,distanceX:getTouchDistance(touch1,touch2),distanceY:getTouchDistance(touch1,touch2,true)};handler.call(context||elem,dummyEve)}else{elem._blockDrag=false}};storeHandlers(elem,handler,fn);elem.node.addEventListener("touchstart",fn)};elproto.unpinchstart=function(handler){var elem=this,derivedHandler=removeHandlers(elem,handler);elem.__blockDrag=false;elem._pinchDragStarted=false;derivedHandler&&elem.node.removeEventListener("touchstart",derivedHandler)};elproto.pinchmove=function(handler,context){var elem=this,dummyEve={},fn=function fn(e){if(e.touches&&e.touches.length===2){var touch1=e.touches[0],touch2=e.touches[1];e&&e.preventDefault();elem._pinchDragStarted=true;R.makeSelectiveCopy(dummyEve,e);dummyEve.data={finger0:touch1,finger1:touch2,distanceX:getTouchDistance(touch1,touch2),distanceY:getTouchDistance(touch1,touch2,true)};handler.call(context||elem,dummyEve)}};storeHandlers(elem,handler,fn);elem.node.addEventListener("touchmove",fn)};elproto.unpinchmove=function(handler){var elem=this,derivedHandler=removeHandlers(elem,handler);derivedHandler&&elem.node.removeEventListener("touchmove",derivedHandler)};elproto.pinchend=function(handler,context){var elem=this,fn=function fn(e){if(elem._pinchDragStarted){elem._pinchDragStarted=false;handler.call(context||elem,e)}};storeHandlers(elem,handler,fn);elem.node.addEventListener("touchend",fn)};elproto.unpinchend=function(handler){var elem=this,derivedHandler=removeHandlers(elem,handler);elem._pinchDragStarted=false;derivedHandler&&elem.node.removeEventListener("touchend",derivedHandler)};elproto.pinch=function(pinchstarthandler,pinchinhandler,pinchendhandler){elproto.pinchstart.call(this,pinchstarthandler);elproto.pinchin.call(this,pinchinhandler);elproto.pinchend.call(this,pinchendhandler)};elproto.unpinch=function(pinchstarthandler,pinchinhandler,pinchendhandler){elproto.unpinchstart.call(this,pinchstarthandler);elproto.unpinchin.call(this,pinchinhandler);elproto.unpinchend.call(this,pinchendhandler)};elproto.fcwheel=function(handler,context){var elem=this,dummyEve={},fn=function fn(e){e&&e.preventDefault();R.makeSelectiveCopy(dummyEve,e);handler.call(context||elem,dummyEve)};storeHandlers(elem,handler,fn);elem.node.addEventListener("wheel",fn)};elproto.fcunwheel=function(handler){var elem=this,derivedHandler=removeHandlers(elem,handler);derivedHandler&&elem.node.removeEventListener("wheel",derivedHandler)};elproto.on=function(eventType,handler,context){if(!handler||!eventType){return}var elem=this,node,actualEventType,isSafe=eventType.match(/fc-/),fn=handler;if(this.removed){return this}elem._actualListners||(elem._actualListners=[]);elem._derivedListeners||(elem._derivedListeners=[]);switch(eventType){case"fc-dragstart":elem.drag(null,handler);return elem;case"fc-dragmove":elem.drag(handler);return elem;case"fc-dragend":elem.drag(null,null,handler);return elem;case"fc-dbclick":elem.dbclick(handler,context);return elem;case"fc-pinchstart":elem.pinchstart(handler,context);return elem;case"fc-pinchmove":elem.pinchmove(handler,context);return elem;case"fc-pinchend":elem.pinchend(handler,context);return elem;case"fc-click":elem.fcclick(handler,context);return elem;case"fc-wheel":elem.fcwheel(handler,context);return elem}isSafe&&(eventType=eventType.replace(/fc-/,""));if(isSafe){if(supportsTouch){actualEventType=eventType;eventType=(supportsPointer?R.safePointerEventMapping[eventType]:safeMouseEventMapping[eventType])||eventType;if(actualEventType==="mouseout"){fn=function fn(e){if(!(supportsPointer&&supportsTouch&&!e.isPrimary)){lastHoveredInfo.elementInfo.push({el:context||elem,callback:handler});lastHoveredInfo.srcElement=e.srcElement||e.target}};eventType=supportsPointer?"pointerover":"touchstart"}}}if(this._&&this._.RefImg&&(eventType==="load"||eventType==="error")){node=this._.RefImg;fn=function fn(e){!elem.removed&&handler.call(elem,e)}}else{node=this.node}if(fn===handler){fn=function fn(e){!(supportsPointer&&supportsTouch&&!e.isPrimary)&&handler.call(context||elem,e)}}elem._actualListners.push(handler);elem._derivedListeners.push(fn);if(node.addEventListener){node.addEventListener(eventType,fn)}else{node["on"+eventType]=fn}return this};elproto.off=function(eventType,handler){var elem=this,fn=handler,actualEventType,index,isSafe=eventType.match(/fc-/),node;if(this.removed||!elem._actualListners||!eventType||!handler){return this}switch(eventType){case"fc-dragstart":elem.undragstart(handler);return elem;case"fc-dragmove":elem.undragmove(handler);return elem;case"fc-dragend":elem.undragend(handler);return elem;case"fc-dbclick":elem.undbclick(handler);return elem;case"fc-pinchstart":elem.unpinchstart(handler);return elem;case"fc-pinchmove":elem.unpinchmove(handler);return elem;case"fc-pinchend":elem.unpinchend(handler);return elem;case"fc-click":elem.fcunclick(handler);return elem;case"fc-wheel":elem.fcunwheel(handler);return elem}isSafe&&(eventType=eventType.replace(/fc-/,""));fn=handler;if(isSafe){if(supportsTouch){actualEventType=eventType;eventType=(supportsPointer?R.safePointerEventMapping[eventType]:safeMouseEventMapping[eventType])||eventType;if(actualEventType==="mouseout"){eventType=supportsPointer?"pointerover":"touchstart"}}}if(this._&&this._.RefImg){node=this._.RefImg}else{node=this.node}index=elem._actualListners.indexOf(fn);if(index!==-1){fn=elem._derivedListeners[index];elem._actualListners.splice(index,1);elem._derivedListeners.splice(index,1)}if(node.removeEventListener){node.removeEventListener(eventType,fn)}else{node["on"+eventType]=null}return this};R._engine.path=function(svg,attrs,group){var el=$("path"),res=new Element(el,svg,group);res.type="path";attrs&&res.attr(attrs);return res};R._engine.group=function(svg,id,group,overrideId){var el=$("g"),res=new Element(el,svg,group);res.type="group";res.canvas=res.node;res.top=res.bottom=null;res._id=id||E;if(id){if(overrideId){el.setAttribute("class","raphael-group-"+id)}else{el.setAttribute("class","raphael-group-"+res.id+"-"+id)}}return res};R._engine.circle=function(svg,attrs,group){var el=$("circle"),res=new Element(el,svg,group);res.type="circle";attrs&&res.attr(attrs);return res};R._engine.rect=function(svg,attrs,group){var el=$("rect"),res=new Element(el,svg,group);res.type="rect";attrs.rx=attrs.ry=attrs.r;attrs&&res.attr(attrs);return res};R._engine.ellipse=function(svg,attrs,group){var el=$("ellipse"),res=new Element(el,svg,group);res.type="ellipse";attrs&&res.attr(attrs);return res};R._engine.image=function(svg,attrs,group){var el=$(imageStr),res=new Element(el,svg,group,true);res._.group=group||svg;res.type=imageStr;el.setAttribute("preserveAspectRatio",noneStr);attrs&&res.attr(attrs);return res};R._engine.text=function(svg,attrs,group,css){var el=$(textStr),res=new Element(el,svg,group);res.type=textStr;css&&res.css&&res.css(css,undefined,true);attrs&&res.attr(attrs);return res};R._engine.setSize=function(width,height){this.width=width||this.width;this.height=height||this.height;this.canvas.setAttribute("width",this.width);this.canvas.setAttribute("height",this.height);if(this._viewBox){this.setViewBox.apply(this,this._viewBox)}return this};R._engine.create=function(){var con=R._getContainer.apply(0,arguments),container=con&&con.container,x=con.x,y=con.y,width=con.width,height=con.height,paper;if(!container){throw new Error("SVG container not found.")}var cnvs=$("svg"),css="overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);"+"-webkit-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;"+"-ms-user-select:none;user-select:none;-o-user-select:none;cursor:default;"+"vertical-align:middle;",isFloating;if(supportsTouch){if(R.isIE10){css+="-ms-touch-action:pan-y;"}else{css+="touch-action:pan-y;"}}x=x||0;y=y||0;width=width||512;height=height||342;$(cnvs,{height:height,version:1.1,width:width,xmlns:svgNSStr});if(container===1){cnvs.style.cssText=css+"position:absolute;left:"+x+"px;top:"+y+pxStr;container=R._g.doc.body;container.appendChild(cnvs);isFloating=1}else{cnvs.style.cssText=css+"position:relative";if(container.firstChild){container.insertBefore(cnvs,container.firstChild)}else{container.appendChild(cnvs)}}paper=new R._Paper;paper.width=width;paper.height=height;paper.canvas=cnvs;paper.container=container;$(cnvs,{id:"raphael-paper-"+paper.id});paper.clear();paper._left=paper._top=0;isFloating&&(paper.renderfix=function(){});paper.renderfix();return paper};R._engine.setViewBox=function(x,y,w,h,fit){eve("raphael.setViewBox",this,this._viewBox,[x,y,w,h,fit]);var size=mmax(w/this.width,h/this.height),top=this.top,aspectRatio=fit?"meet":"xMinYMin",vb,sw;if(x==null){if(this._vbSize){size=1}delete this._vbSize;vb="0 0 "+this.width+S+this.height}else{this._vbSize=size;vb=x+S+y+S+w+S+h}$(this.canvas,{viewBox:vb,preserveAspectRatio:aspectRatio});if(size){while(top){sw="stroke-width"in top.attrs?top.attrs["stroke-width"]:1;top.attr({"stroke-width":sw});top._.dirty=1;top._.dirtyT=1;top=top.prev}}this._viewBox=[x,y,w,h,!!fit];return this};R.prototype.detachPaper=function(){if(this._detached!==false){this.container.removeChild(this.canvas);this._detached=true}};R.prototype.attachPaper=function(){if(this._detached){this.container.appendChild(this.canvas);this._detached=false}};R.prototype.renderfix=function(){var cnvs=this.canvas,s=cnvs.style,pos;try{pos=cnvs.getScreenCTM()||cnvs.createSVGMatrix()}catch(e){pos=cnvs.createSVGMatrix()}var left=-pos.e%1,top=-pos.f%1;if(left||top){if(left){this._left=(this._left+left)%1;s.left=this._left+pxStr}if(top){this._top=(this._top+top)%1;s.top=this._top+pxStr}}};R.prototype._desc=function(txt){var desc=this.desc;if(!desc){this.desc=desc=$("desc");this.canvas.appendChild(desc)}else{while(desc.firstChild){desc.removeChild(desc.firstChild)}}desc.appendChild(R._g.doc.createTextNode(R.is(txt,typeStringSTR)?txt:"Created with Red Raphaël "+R.version))};R.prototype.clear=function(){var c;eve("raphael.clear",this);while(c=this.bottom){c.remove()}c=this.canvas;while(c.firstChild){c.removeChild(c.firstChild)}this.bottom=this.top=null;c.appendChild(this.desc=$("desc"));c.appendChild(this.defs=$("defs"))};R.prototype.remove=function(){var i;eve("raphael.remove",this);while(i=this.bottom){i.remove()}this.defs&&this.defs.parentNode.removeChild(this.defs);this.desc&&this.desc.parentNode.removeChild(this.desc);this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(i in this){this[i]=typeof this[i]===fnStr?R._removedFactory(i):null}this.removed=true};R.prototype.setHTMLClassName=function(){}}}

@@ -1,1 +0,1 @@

"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule=true;exports.default=exports._mouseEvtHandler=void 0;var _inheritsLoose2=_interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));var _lib=require("../lib");var _eventApi=require("../event-api");var _chartMessage=_interopRequireDefault(require("../chart-message"));var _componentInterface=require("../component-interface");var _animationManager=_interopRequireDefault(require("../animation-manager"));var _dependencyManager=require("../dependency-manager");var _eiMethodList=_interopRequireDefault(require("../_internal/ei-method-list"));var _schedular=require("../schedular");var _unlicensedText=require("./unlicensedText");var MOUSEOUT="fc-mouseout",SVG_NAMESPACE="http://www.w3.org/2000/svg",WATERMARK_DEFAULT_COLOR="#b1b2b7",LICENSE_EXPIRED_TEXT="#666",LICENSE_EXPIRED_LIGHT_TEXT="#ffffff",WATERMARK_EXPIRED_DEFAULT_COLOR="#fd002dcc",TRANSITION_TIME="0.5s",CURSOR="pointer",WATERMARK_HOVER_COLOR="#373c8b",BUY_LICENSE_COLOR="#6957da",BUY_LICENSE_LIGHT_COLOR="#74a8d2",WATERMARK_SVG={FC_TXT_PATH:"M23,11.46V1.87h5.8V3.31h-4.1V6h3.48V7.46H24.71v4Zm7-2.68V4.26h1.69v4.3c0,1.19.34,1.63,1.12,1.63.63,0,1-.3,1.59-1V4.26h1.69v7.2H34.67l-.13-1.05h0a3,3,0,0,1-2.32,1.23C30.64,11.64,30,10.6,30,8.78Zm7.51,1.86.8-1.08a3.23,3.23,0,0,0,2,.8c.78,0,1.14-.36,1.14-.86s-.77-.87-1.54-1.16c-1-.35-2-.9-2-2.1s1-2.15,2.63-2.15A3.94,3.94,0,0,1,42.86,5l-.78,1a2.66,2.66,0,0,0-1.58-.62c-.72,0-1.06.34-1.06.79s.72.8,1.5,1.07c1,.37,2.06.84,2.06,2.19s-1,2.23-2.8,2.23A4.6,4.6,0,0,1,37.47,10.64ZM45.36,3a1,1,0,1,1,1-1A1,1,0,0,1,45.36,3Zm-.85,8.46V4.26H46.2v7.2Zm3.38-3.59a3.44,3.44,0,1,1,6.85,0,3.44,3.44,0,1,1-6.85,0Zm1.73,0c0,1.44.63,2.39,1.69,2.39S53,9.31,53,7.87s-.65-2.41-1.7-2.41S49.62,6.42,49.62,7.87Zm6.79,3.59V4.26H57.8l.12,1H58a3.34,3.34,0,0,1,2.36-1.14c1.54,0,2.21,1,2.21,2.86v4.51H60.87V7.17c0-1.19-.34-1.63-1.13-1.63a2.29,2.29,0,0,0-1.64.89v5ZM64.24,6.7c0-3.14,2-5,4.43-5A3.79,3.79,0,0,1,71.4,2.91L70.46,4a2.42,2.42,0,0,0-1.77-.79C67.12,3.18,66,4.5,66,6.65s1,3.51,2.64,3.51a2.57,2.57,0,0,0,2-1l.94,1.05a3.84,3.84,0,0,1-3,1.39C66.16,11.64,64.24,9.88,64.24,6.7ZM73,11.46V1.11h1.68V3.78l0,1.39A3.3,3.3,0,0,1,77,4.09c1.54,0,2.21,1,2.21,2.86v4.51H77.49V7.17c0-1.19-.34-1.63-1.13-1.63a2.33,2.33,0,0,0-1.65.89v5ZM80.9,9.53c0-1.54,1.29-2.35,4.24-2.67,0-.77-.33-1.41-1.3-1.41a4,4,0,0,0-2,.7L81.2,5a5.64,5.64,0,0,1,3-.93c1.8,0,2.68,1.1,2.68,3.1v4.27H85.45l-.13-.79h0a3.49,3.49,0,0,1-2.22,1A2,2,0,0,1,80.9,9.53Zm1.65-.14c0,.65.42.93,1,.93a2.25,2.25,0,0,0,1.57-.79V7.91C83.19,8.16,82.55,8.68,82.55,9.39Zm6.33,2.07V4.26h1.4l.11,1.28h.06a2.45,2.45,0,0,1,2-1.45,1.86,1.86,0,0,1,.82.14L93,5.7a2.46,2.46,0,0,0-.75-.12c-.57,0-1.26.4-1.7,1.48v4.4ZM94.6,9V5.6h-1V4.33l1.11-.07.21-2h1.4v2h1.84V5.6H96.3V9c0,.85.33,1.26,1,1.26a2,2,0,0,0,.74-.16l.3,1.24a4.43,4.43,0,0,1-1.47.27C95.22,11.64,94.6,10.58,94.6,9Zm4.33,1.61.79-1.08a3.26,3.26,0,0,0,2,.8c.77,0,1.14-.36,1.14-.86s-.78-.87-1.54-1.16c-.95-.35-2-.9-2-2.1s1-2.15,2.62-2.15a3.89,3.89,0,0,1,2.39.86l-.77,1A2.69,2.69,0,0,0,102,5.36c-.72,0-1,.34-1,.79s.71.8,1.49,1.07c1,.37,2.07.84,2.07,2.19s-1,2.23-2.8,2.23A4.58,4.58,0,0,1,98.93,10.64Z",TRIAL_TXT_PATH:["M111.54,4.59h-2.39V3.32h6.28V4.59H113v7h-1.5Z","M116.11,5.38h1.24l.11,1.11h0a2.15,2.15,0,0,1,1.77-1.27,1.7,1.7,0,0,1,.71.13l-.3,1.28a2.1,2.1,0,0,0-.6-.07c-.49,0-1.09.33-1.46,1.28v3.78h-1.51Z","M120.75,3.46a.9.9,0,0,1,1.8,0,.9.9,0,0,1-1.8,0Zm.13,1.92h1.51v6.24h-1.51Z","M123.89,9.94c0-1.37,1.09-2,3.65-2.33,0-.64-.27-1.17-1.11-1.17a3.6,3.6,0,0,0-1.75.58l-.53-1a4.78,4.78,0,0,1,2.56-.82c1.55,0,2.33,1,2.33,2.71v3.69h-1.22l-.12-.69h0a2.93,2.93,0,0,1-1.91.84A1.75,1.75,0,0,1,123.89,9.94Zm3.65,0V8.62c-1.69.21-2.2.59-2.2,1.22s.35.74.86.74A1.85,1.85,0,0,0,127.54,9.94Z","M130.77,10V2.66h1.51v7.4c0,.36.16.49.31.49a1,1,0,0,0,.23,0l.18,1.1a1.77,1.77,0,0,1-.79.14C131.16,11.77,130.77,11.08,130.77,10Z"],LOGO_PATH:["M9.76,0L12.93,0L12.93,11.39,L9.76,11.39L9.76,0","M9.76,12.86L12.93,12.86L12.93,16.19L9.76,16.19L9.76,12.86"],EXP_LOGO_PATH:["M140,42.7h36.1v129.8H140V42.7","M140,189.2h36.1v38H140V189.2"],UNLICENSED_TXT_PATH:["M130.77,10V2.66h1.51v7.4c0,.36.16.49.31.49a1,1,0,0,0,.23,0l.18,1.1a1.77,1.77,0,0,1-.79.14C131.16,11.77,130.77,11.08,130.77,10Z","M116.11,5.38h1.24l.11,1.11h0a2.15,2.15,0,0,1,1.77-1.27,1.7,1.7,0,0,1,.71.13l-.3,1.28a2.1,2.1,0,0,0-.6-.07c-.49,0-1.09.33-1.46,1.28v3.78h-1.51Z","M120.75,3.46a.9.9,0,0,1,1.8,0,.9.9,0,0,1-1.8,0Zm.13,1.92h1.51v6.24h-1.51Z","M123.89,9.94c0-1.37,1.09-2,3.65-2.33,0-.64-.27-1.17-1.11-1.17a3.6,3.6,0,0,0-1.75.58l-.53-1a4.78,4.78,0,0,1,2.56-.82c1.55,0,2.33,1,2.33,2.71v3.69h-1.22l-.12-.69h0a2.93,2.93,0,0,1-1.91.84A1.75,1.75,0,0,1,123.89,9.94Zm3.65,0V8.62c-1.69.21-2.2.59-2.2,1.22s.35.74.86.74A1.85,1.85,0,0,0,127.54,9.94Z","M130.77,10V2.66h1.51v7.4c0,.36.16.49.31.49a1,1,0,0,0,.23,0l.18,1.1a1.77,1.77,0,0,1-.79.14C131.16,11.77,130.77,11.08,130.77,10Z"],LOGO_RECT1:{x:0,y:1.63,width:3.33,height:9.76},LOGO_RECT2:{x:4.8,y:6.43,width:3.41,height:4.96},EXP_LOGO_RECT1:{x:28.8,y:61.2,width:38,height:111.2},EXP_LOGO_RECT2:{x:83.5,y:111.9,width:38.9,height:56.5},EXP_LOGO_RECT3:{x:3200,y:40,width:20,height:180}},opts={attributes:false,subtree:true,characterData:true,childList:true},toCode=function toCode(c){return String.fromCharCode(c)},strify=function strify(arr){return arr.map(toCode).join("")},accessor1=strify([99,114,101,100,105,116,76,97,98,101,108]),accessor2=strify([99,114,101,100,105,116,103,114,111,117,112]),base=[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122].map(toCode),isDetached=function isDetached(rNode){return!rNode.node||!rNode.node.parentNode||rNode.node.parentNode.nodeType===11},randBet=function randBet(min,max){return Math.random()*(max-min)+min},chooser=function chooser(){return base[Math.floor(randBet(0,base.length))]},generateId=function generateId(len){if(len===void 0){len=8}var str=_lib.BLANK;for(var i=0;i<len;i++){str+=chooser()}return str},addEiMethods=function addEiMethods(chartInstance,eiMethods){var methodName;for(methodName in eiMethods){if(eiMethods.hasOwnProperty(methodName)){chartInstance[methodName]=eiMethods[methodName]}}},getEIList=function getEIList(type){var specific=_eiMethodList.default[type]||[];return specific.concat(_eiMethodList.default["*"])},_mouseEvtHandler2=function _mouseEvtHandler(iapi,e,data){var mouseTracker=data.mouseTracker,oriEvent=e.originalEvent,chartConfig=iapi.config,datasets=chartConfig.datasetOrder||iapi.getDatasets(),coordinate,chartX,chartY,dataset,hoveredInfo,pointFound=false,i=datasets.length,j,l,derivedEvensInfo,_lastDatasetIndex=mouseTracker._lastDatasetIndex,_lastPointIndex=mouseTracker._lastPointIndex;coordinate=(0,_lib.getMouseCoordinate)(iapi.getFromEnv("chart-container"),oriEvent,iapi);chartX=coordinate.chartX;chartY=coordinate.chartY;while(i--&&!pointFound){dataset=datasets[i];if(dataset&&dataset.getState("visible")){hoveredInfo=dataset._getHoveredPlot&&dataset._getHoveredPlot(chartX,chartY);if(hoveredInfo&&hoveredInfo.hovered){pointFound=true;hoveredInfo.datasetIndex=i;derivedEvensInfo=mouseTracker.getMouseEvents(e,hoveredInfo.datasetIndex,hoveredInfo.pointIndex)}}}if((!pointFound||derivedEvensInfo&&derivedEvensInfo.fireOut)&&typeof _lastDatasetIndex!=="undefined"){if(datasets[_lastDatasetIndex]&&datasets[_lastDatasetIndex]._firePlotEvent){if(derivedEvensInfo&&!derivedEvensInfo.events.length){mouseTracker.mouseoutTimer=setTimeout((function(){iapi.mouseoutHandler(e,_lastDatasetIndex,_lastPointIndex)}),20)}else{iapi.mouseoutHandler(e,_lastDatasetIndex,_lastPointIndex);clearTimeout(mouseTracker.mouseoutTimer)}}}if(pointFound){l=derivedEvensInfo.events&&derivedEvensInfo.events.length;if(l){mouseTracker._lastDatasetIndex=hoveredInfo.datasetIndex;_lastPointIndex=mouseTracker._lastPointIndex=hoveredInfo.pointIndex}for(j=0;j<l;j+=1){if(dataset&&dataset._firePlotEvent){dataset&&dataset._firePlotEvent&&dataset._firePlotEvent(derivedEvensInfo.events[j],_lastPointIndex,e,hoveredInfo.datasetIndex)}}}};exports._mouseEvtHandler=_mouseEvtHandler2;var BaseChart=function(_ComponentInterface){(0,_inheritsLoose2.default)(BaseChart,_ComponentInterface);function BaseChart(){var _this;for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}_this=_ComponentInterface.call.apply(_ComponentInterface,[this].concat(args))||this;_this._creatingTheBlurredContainer=function(divWidth,divHeight,chartTheme){var chartBlurContainer,blurredRect,path2;chartBlurContainer=document.createElementNS(SVG_NAMESPACE,"g");path2=document.createElementNS(SVG_NAMESPACE,"g");chartBlurContainer.setAttributeNS(null,"fill",WATERMARK_DEFAULT_COLOR);chartBlurContainer.setAttributeNS(null,"cursor",CURSOR);chartBlurContainer.setAttributeNS(null,"pointer-events","bounding-box");chartBlurContainer.setAttributeNS(null,"style","transition:"+TRANSITION_TIME+";");blurredRect=document.createElementNS(SVG_NAMESPACE,"rect");blurredRect.setAttributeNS(null,"width",divWidth);blurredRect.setAttributeNS(null,"height",divHeight);blurredRect.setAttributeNS(null,"fill","#ffffff33");for(var index=0;index<Math.trunc(divWidth/250);index++){var chartBlurTextContainer2=void 0,dimension2=index,leftMargin=dimension2*250,renderingAreaWidth=(divWidth-Math.trunc(divWidth/250)*250)/Math.trunc(divWidth/250),path1=document.createElementNS(SVG_NAMESPACE,"g");for(var index2=0;index2*120<divHeight-120;index2++){var chartBlurTextContainer=void 0,dimension=index2*120;chartBlurTextContainer=_this._createBlurText(dimension,chartTheme);path1.appendChild(chartBlurTextContainer)}chartBlurTextContainer2=path1;chartBlurTextContainer2.setAttributeNS(null,"transform","translate("+(leftMargin+renderingAreaWidth)+", 0)");path2.appendChild(chartBlurTextContainer2)}chartBlurContainer.appendChild(blurredRect);chartBlurContainer.appendChild(path2);return chartBlurContainer};_this._createBlurText=function(dimension,chartTheme){var chartBlurTextContainer,path1,path2,path3,path4,isCandy=false;if(chartTheme&&chartTheme==="candy")isCandy=true;chartBlurTextContainer=document.createElementNS(SVG_NAMESPACE,"g");chartBlurTextContainer.setAttributeNS(null,"transform","scale(0.1), translate(0, "+(dimension*10+500)+")");chartBlurTextContainer.setAttributeNS(null,"fill",isCandy?LICENSE_EXPIRED_LIGHT_TEXT:LICENSE_EXPIRED_TEXT);chartBlurTextContainer.setAttributeNS(null,"cursor",CURSOR);chartBlurTextContainer.setAttributeNS(null,"pointer-events","bounding-box");chartBlurTextContainer.setAttributeNS(null,"style","transition:"+TRANSITION_TIME+";");path1=document.createElementNS(SVG_NAMESPACE,"path");path1.setAttribute("d",_unlicensedText.text.fusionchartsLicenseHasExpiredText[0]);path1.setAttributeNS(null,"fill","");path1.setAttributeNS(null,"stroke","");path1.setAttributeNS(null,"stroke-linecap","");path2=document.createElementNS(SVG_NAMESPACE,"path");path2.setAttribute("d",_unlicensedText.text.fusionchartsLicenseHasExpiredText[1]);path2.setAttributeNS(null,"fill","");path2.setAttributeNS(null,"stroke","");path2.setAttributeNS(null,"stroke-linecap","");path3=document.createElementNS(SVG_NAMESPACE,"path");path3.setAttribute("d",_unlicensedText.text.fusionchartsLicenseHasExpiredText[2]);path3.setAttributeNS(null,"fill","");path3.setAttributeNS(null,"stroke","");path3.setAttributeNS(null,"stroke-linecap","");path4=document.createElementNS(SVG_NAMESPACE,"path");path4.setAttribute("d",_unlicensedText.text.fusionchartsLicenseHasExpiredText[3]);path4.setAttributeNS(null,"fill","");path4.setAttributeNS(null,"stroke","");path4.setAttributeNS(null,"stroke-linecap","");chartBlurTextContainer.appendChild(path1);chartBlurTextContainer.appendChild(path2);chartBlurTextContainer.appendChild(path3);chartBlurTextContainer.appendChild(path4);return chartBlurTextContainer};return _this}BaseChart.getName=function getName(){return"base"};var _proto=BaseChart.prototype;_proto.setDummyEImethods=function setDummyEImethods(type){var iapi=this,config=iapi.config,_eiStore=config._eiStore||(config._eiStore={}),methods=getEIList(type),chartInstance=iapi.getFromEnv("chartInstance"),fnGenerator=function fnGenerator(fn){return function(){!_eiStore[fn]&&(_eiStore[fn]=[]);_eiStore[fn].push(arguments)}};methods.forEach((function(method){!chartInstance[method]&&(chartInstance[method]=fnGenerator(method))}));chartInstance.addEventListener("renderComplete",(function(){var _loop=function _loop(fn){_eiStore[fn].forEach((function(fnCalls){chartInstance[fn].apply(chartInstance,fnCalls)}))};for(var fn in _eiStore){_loop(fn)}config._eiStore={}}))};BaseChart.getType=function getType(){return"chartAPI"};_proto.mouseoutHandler=function mouseoutHandler(e,_lastDatasetIndex,_lastPointIndex){var chart=this,datasets=chart.config.datasetOrder||chart.getDatasets(),mouseTracker=chart.getChildren("mouseTracker")[0];var lastDataSet=datasets[_lastDatasetIndex];if(lastDataSet&&lastDataSet.components&&lastDataSet.components.data&&lastDataSet.components.data[_lastPointIndex]){datasets[_lastDatasetIndex]._firePlotEvent(MOUSEOUT,_lastPointIndex,e)}else{chart.getFromEnv("toolTipController").hideAll()}delete mouseTracker._lastDatasetIndex;delete mouseTracker._lastPointIndex};_proto.getName=function getName(){return"base"};_proto.getType=function getType(){return"chartAPI"};_proto._mouseEvtHandler=function _mouseEvtHandler(e,data){_mouseEvtHandler2(this,e,data)};_proto.getComponents=function getComponents(parentComp,type){var comp=parentComp||this,datasets=[];comp.iterateComponents((function(component){if(component.getType()===type){datasets.push(component)}}));return datasets};_proto.getDatasets=function getDatasets(parentComp){var comp=parentComp||this,datasets=[];comp.iterateComponents((function(component){if(component.getType()==="dataset"){datasets.push(component)}}));return datasets};_proto.preConfigure=function preConfigure(dataObj){_ComponentInterface.prototype.preConfigure.call(this,dataObj);addEiMethods(this.getFromEnv("chartInstance"),this.eiMethods)};_proto.configureAttributes=function configureAttributes(dataObj){_ComponentInterface.prototype.configureAttributes.call(this,dataObj);this.createBaseComponent()};_proto.createBaseComponent=function createBaseComponent(){var iapi=this,animationManager;if(animationManager=iapi.getFromEnv("animationManager")){animationManager.configure()}else{animationManager=new _animationManager.default;iapi.addToEnv("animationManager",animationManager);animationManager.addToEnv("chart",iapi);animationManager.addToEnv("animationManager",animationManager);animationManager.configure();iapi.addExtEventListener("animationstart",(function(e){var duration=e.data.duration;duration&&iapi.fireChartInstanceEvent("animationinvoked",{duration:duration})}),animationManager)}};_proto.setChartMessage=function setChartMessage(message,chartObj,_container){var iapi=this,paper,Raphael,chartMessage,container=_container;(0,_lib.componentFactory)(this,_chartMessage.default,"chartMessage");chartMessage=iapi.getChildren("chartMessage")[0];if(container){iapi.addToEnv("chart-container",container)}else{container=iapi.getFromEnv("chart-container")}paper=iapi.getFromEnv("paper");if(!paper){Raphael=(0,_dependencyManager.getDep)("redraphael","plugin");paper=new Raphael(container,iapi.getFromEnv("chartWidth"),iapi.getFromEnv("chartHeight"));paper.setHTMLClassName("fusioncharts-div");iapi.addToEnv("paper",paper)}paper.setConfig("stroke-linecap",_lib.ROUND);!iapi.getChildContainer("messageGroup")&&iapi.addChildContainer("messageGroup",paper.group("messageGroup"));iapi.config.hasChartMessage=true;chartMessage.setData({message:message,chartObj:chartObj,visible:true},true)};_proto.drawChartMessage=function drawChartMessage(){var iapi=this;iapi.config.hasChartMessage=true;iapi._drawTexts()};_proto._dispose=function _dispose(){this._clearTimers&&this._clearTimers();var paper=this.getFromEnv("paper");paper&&paper.remove&&paper.remove();_ComponentInterface.prototype._dispose.call(this)};_proto.fireChartInstanceEvent=function fireChartInstanceEvent(name,data,originalEvent,defaultFn,cancelledFn){var chartInstance=this.getFromEnv("chartInstance");(0,_eventApi.triggerEvent)(name,chartInstance,data,originalEvent,defaultFn,cancelledFn)};_proto._hideChartMessage=function _hideChartMessage(){var iapi=this,chartMessage=iapi.getChildren("chartMessage");iapi.config.hasChartMessage=false;chartMessage&&chartMessage[0].setData({visible:false},true);iapi.getGraphicalElement("messageText")&&iapi.getGraphicalElement("messageText").hide();iapi.getGraphicalElement("messageVeil")&&iapi.getGraphicalElement("messageVeil").hide()};_proto._removeWaitingJobs=function _removeWaitingJobs(){this.iterateComponents((function(comp){return comp.removeAllJobs()}))};_proto._drawTexts=function _drawTexts(){this._drawMain(false)};_proto._drawMain=function _drawMain(hasLabel,usingExpiredKey){if(usingExpiredKey===void 0){usingExpiredKey=false}this._crCreate(hasLabel,usingExpiredKey);if(hasLabel){this._scheduleLabelCheck(hasLabel,usingExpiredKey)}};_proto._scheduleLabelCheck=function _scheduleLabelCheck(hasLabel,usingExpiredKey){var component=this;component.addJob("checker",(function(){var labelContRNode=component.getContainer(accessor2);if(labelContRNode&&isDetached(labelContRNode)){component._crCreate(hasLabel,usingExpiredKey)}component._scheduleLabelCheck(hasLabel,usingExpiredKey)}),_schedular.priorityList.verification,{oneInAFrame:true,addToTop:false,executionDelay:300})};_proto._crCreate=function _crCreate(hasLabel,usingExpiredKey){var _iapi$getFromEnv;var iapi=this,paper=iapi.getFromEnv("paper"),chartHeight=+iapi.getFromEnv("chartHeight"),chartWidth=+iapi.getFromEnv("chartWidth"),chartName=iapi.constructor.name,chartTheme=(_iapi$getFromEnv=iapi.getFromEnv("chart-attrib"))==null?void 0:_iapi$getFromEnv.theme,labelElemCheck=iapi.getGraphicalElement(accessor1),labelElem,labelGroup,logoElement,blurElement,parentGroup=iapi.getContainer("parentgroup"),txts={href:_lib.TXT_HREF};if(hasLabel){if(iapi.getContainer(accessor2)){iapi.removeContainer(accessor2)}if(labelElemCheck){iapi.removeGraphicalElement(labelElemCheck)}if(!(paper&&paper.group)){return}labelGroup=iapi.addContainer(accessor2,paper.group(generateId(),true));parentGroup&&labelGroup.insertAfter(parentGroup);iapi.addGraphicalElement(accessor1,labelElem);logoElement=this._creatingTheLogo(chartHeight-27.32,usingExpiredKey,chartName,chartHeight,chartTheme);if(usingExpiredKey){var svgFilter,feGaussianBlur,currentNode,currentChildNode;blurElement=this._creatingTheBlurredContainer(chartWidth,chartHeight,chartTheme);labelGroup.node.appendChild(blurElement);svgFilter=document.createElementNS(SVG_NAMESPACE,"filter");svgFilter.setAttribute("id","blurFilter");feGaussianBlur=document.createElementNS(SVG_NAMESPACE,"feGaussianBlur");feGaussianBlur.setAttribute("in","SourceGraphic");feGaussianBlur.setAttribute("stdDeviation","2");svgFilter.appendChild(feGaussianBlur);parentGroup.node.appendChild(svgFilter);parentGroup.node.setAttributeNS(null,"filter","url(#blurFilter)");currentNode=labelGroup;while((_currentNode=currentNode)!=null&&_currentNode.next){var _currentNode,_currentNode2,_currentNode3;currentNode=(_currentNode2=currentNode)==null?void 0:_currentNode2.next;currentChildNode=(_currentNode3=currentNode)==null?void 0:_currentNode3.node;currentChildNode.setAttributeNS(null,"filter","url(#blurFilter)")}}labelGroup.node.appendChild(logoElement);if(!iapi.config.observer){iapi.config.observer=new MutationObserver((function(){return iapi._crCreate(hasLabel,usingExpiredKey)}))}else{iapi.config.observer.disconnect()}iapi.config.observer.observe(iapi.getContainer(accessor2).node,opts);if(!usingExpiredKey){labelGroup.on("fc-click",(function(){try{open(txts.href)}catch(err){(top||window).location.href=txts.href}}))}}else if(labelElem&&labelElem.remove){if(iapi.config.observer)iapi.config.observer.disconnect();iapi.removeGraphicalElement(accessor1)}};_proto.hoverCallback=function hoverCallback(event){if(event.type==="mouseover"){this.style.fill=WATERMARK_HOVER_COLOR}else if(event.type==="mouseout"){this.style.fill=WATERMARK_DEFAULT_COLOR}};_proto._creatingTheLogo=function _creatingTheLogo(yPos,usingExpiredKey,chartName,chartHeight,chartTheme){var fusionLogoContainer,path1,rect1,rect2,polygon1,polygon2,path2,path3,path4,path5,path6,path7,path8,chartNameContainer,buyLicenseLink;fusionLogoContainer=document.createElementNS(SVG_NAMESPACE,"g");usingExpiredKey?fusionLogoContainer.setAttributeNS(null,"transform","scale(0.1), translate(18,"+yPos*10+")"):fusionLogoContainer.setAttributeNS(null,"transform","translate(18,"+yPos+")");fusionLogoContainer.setAttributeNS(null,"fill",usingExpiredKey?WATERMARK_EXPIRED_DEFAULT_COLOR:WATERMARK_DEFAULT_COLOR);fusionLogoContainer.setAttributeNS(null,"cursor",CURSOR);fusionLogoContainer.setAttributeNS(null,"pointer-events","bounding-box");fusionLogoContainer.setAttributeNS(null,"style","transition:"+TRANSITION_TIME+";");path1=document.createElementNS(SVG_NAMESPACE,"path");path1.setAttribute("d",WATERMARK_SVG.FC_TXT_PATH);path1.setAttributeNS(null,"fill","");path1.setAttributeNS(null,"stroke","");path1.setAttributeNS(null,"stroke-linecap","");rect1=document.createElementNS(SVG_NAMESPACE,"rect");rect1.setAttributeNS(null,"x",usingExpiredKey?WATERMARK_SVG.EXP_LOGO_RECT1.x:WATERMARK_SVG.LOGO_RECT1.x);rect1.setAttributeNS(null,"y",usingExpiredKey?WATERMARK_SVG.EXP_LOGO_RECT1.y:WATERMARK_SVG.LOGO_RECT1.y);rect1.setAttributeNS(null,"width",usingExpiredKey?WATERMARK_SVG.EXP_LOGO_RECT1.width:WATERMARK_SVG.LOGO_RECT1.width);rect1.setAttributeNS(null,"height",usingExpiredKey?WATERMARK_SVG.EXP_LOGO_RECT1.height:WATERMARK_SVG.LOGO_RECT1.height);rect1.setAttributeNS(null,"fill","");rect1.setAttributeNS(null,"stroke","");rect1.setAttributeNS(null,"stroke-linecap","");rect2=document.createElementNS(SVG_NAMESPACE,"rect");rect2.setAttributeNS(null,"x",usingExpiredKey?WATERMARK_SVG.EXP_LOGO_RECT2.x:WATERMARK_SVG.LOGO_RECT2.x);rect2.setAttributeNS(null,"y",usingExpiredKey?WATERMARK_SVG.EXP_LOGO_RECT2.y:WATERMARK_SVG.LOGO_RECT2.y);rect2.setAttributeNS(null,"width",usingExpiredKey?WATERMARK_SVG.EXP_LOGO_RECT2.width:WATERMARK_SVG.LOGO_RECT2.width);rect2.setAttributeNS(null,"height",usingExpiredKey?WATERMARK_SVG.EXP_LOGO_RECT2.height:WATERMARK_SVG.LOGO_RECT2.height);rect2.setAttributeNS(null,"fill","");rect2.setAttributeNS(null,"stroke","");rect2.setAttributeNS(null,"stroke-linecap","");polygon1=document.createElementNS(SVG_NAMESPACE,"path");polygon1.setAttributeNS(null,"d",usingExpiredKey?WATERMARK_SVG.EXP_LOGO_PATH[0]:WATERMARK_SVG.LOGO_PATH[0]);polygon1.setAttributeNS(null,"fill","");polygon1.setAttributeNS(null,"stroke","");polygon1.setAttributeNS(null,"stroke-linecap","");polygon2=document.createElementNS(SVG_NAMESPACE,"path");polygon2.setAttributeNS(null,"d",usingExpiredKey?WATERMARK_SVG.EXP_LOGO_PATH[1]:WATERMARK_SVG.LOGO_PATH[1]);polygon2.setAttributeNS(null,"fill","");polygon2.setAttributeNS(null,"stroke","");polygon2.setAttributeNS(null,"stroke-linecap","");path2=document.createElementNS(SVG_NAMESPACE,"path");path2.setAttributeNS(null,"d",WATERMARK_SVG.TRIAL_TXT_PATH[0]);path2.setAttributeNS(null,"fill","");path2.setAttributeNS(null,"stroke","");path2.setAttributeNS(null,"stroke-linecap","");path3=document.createElementNS(SVG_NAMESPACE,"path");path3.setAttributeNS(null,"d",WATERMARK_SVG.TRIAL_TXT_PATH[1]);path3.setAttributeNS(null,"fill","");path3.setAttributeNS(null,"stroke","");path3.setAttributeNS(null,"stroke-linecap","");path4=document.createElementNS(SVG_NAMESPACE,"path");path4.setAttributeNS(null,"d",WATERMARK_SVG.TRIAL_TXT_PATH[2]);path4.setAttributeNS(null,"fill","");path4.setAttributeNS(null,"stroke","");path4.setAttributeNS(null,"stroke-linecap","");path5=document.createElementNS(SVG_NAMESPACE,"path");path5.setAttributeNS(null,"d",WATERMARK_SVG.TRIAL_TXT_PATH[3]);path5.setAttributeNS(null,"fill","");path5.setAttributeNS(null,"stroke","");path5.setAttributeNS(null,"stroke-linecap","");path6=document.createElementNS(SVG_NAMESPACE,"path");path6.setAttributeNS(null,"d",WATERMARK_SVG.TRIAL_TXT_PATH[4]);path6.setAttributeNS(null,"fill","");path6.setAttributeNS(null,"stroke","");path6.setAttributeNS(null,"stroke-linecap","");path7=document.createElementNS(SVG_NAMESPACE,"path");path7.setAttributeNS(null,"d",_unlicensedText.text.fusionchartsUnlicensedText[0]);path7.setAttributeNS(null,"transform","scale(0.9), translate(0, 35)");path7.setAttributeNS(null,"fill","");path7.setAttributeNS(null,"stroke","");path7.setAttributeNS(null,"stroke-linecap","");path8=document.createElementNS(SVG_NAMESPACE,"path");path8.setAttributeNS(null,"d",_unlicensedText.text.fusionchartsUnlicensedText[1]);path8.setAttributeNS(null,"transform","scale(0.9), translate(2050, 85)");path8.setAttributeNS(null,"fill",chartTheme==="candy"?BUY_LICENSE_LIGHT_COLOR:BUY_LICENSE_COLOR);path8.setAttributeNS(null,"stroke","");path8.setAttributeNS(null,"stroke-linecap","");buyLicenseLink=document.createElementNS(SVG_NAMESPACE,"a");buyLicenseLink.setAttributeNS(null,"href",_lib.BUY_LICENSE_HREF);buyLicenseLink.setAttribute("target","_blank");buyLicenseLink.appendChild(path8);chartNameContainer=document.createElementNS(SVG_NAMESPACE,"text");chartNameContainer.setAttributeNS(null,"transform","scale(10), translate(0, -"+(chartHeight-40)+")");chartNameContainer.setAttribute("x",0);chartNameContainer.setAttribute("y",0);chartNameContainer.setAttribute("width",1e3);chartNameContainer.setAttribute("height",1e3);chartNameContainer.setAttribute("fill",WATERMARK_DEFAULT_COLOR);fusionLogoContainer.appendChild(rect1);fusionLogoContainer.appendChild(rect2);fusionLogoContainer.appendChild(polygon1);fusionLogoContainer.appendChild(polygon2);if(usingExpiredKey){fusionLogoContainer.appendChild(path7);fusionLogoContainer.appendChild(buyLicenseLink);fusionLogoContainer.appendChild(chartNameContainer)}else{fusionLogoContainer.appendChild(path1);fusionLogoContainer.appendChild(path2);fusionLogoContainer.appendChild(path3);fusionLogoContainer.appendChild(path4);fusionLogoContainer.appendChild(path5);fusionLogoContainer.appendChild(path6)}if(!usingExpiredKey){fusionLogoContainer.addEventListener("mouseover",this.hoverCallback);fusionLogoContainer.addEventListener("mouseout",this.hoverCallback)}return fusionLogoContainer};_proto._hideModal=function _hideModal(){this.getChildContainer("messageGroup").hide()};_proto.remove=function remove(config){var animationManager=this.getFromEnv("animationManager");if(this.config.observer)this.config.observer.disconnect();_ComponentInterface.prototype.remove.call(this,config);animationManager&&animationManager.remove(config)};return BaseChart}(_componentInterface.ComponentInterface);BaseChart.stringConstants={BACKGROUNDLOADED:"BackgroundLoaded",BACKGROUNDLOADERROR:"BackgroundLoadError",clipRectStr:"clip-rect"};var _default=BaseChart;exports.default=_default;
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule=true;exports.default=exports._mouseEvtHandler=void 0;var _inheritsLoose2=_interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));var _lib=require("../lib");var _eventApi=require("../event-api");var _chartMessage=_interopRequireDefault(require("../chart-message"));var _componentInterface=require("../component-interface");var _animationManager=_interopRequireDefault(require("../animation-manager"));var _dependencyManager=require("../dependency-manager");var _eiMethodList=_interopRequireDefault(require("../_internal/ei-method-list"));var _schedular=require("../schedular");var _unlicensedText=require("./unlicensedText");var MOUSEOUT="fc-mouseout",SVG_NAMESPACE="http://www.w3.org/2000/svg",WATERMARK_DEFAULT_COLOR="#b1b2b7",LICENSE_EXPIRED_TEXT="#666",LICENSE_EXPIRED_LIGHT_TEXT="#ffffff",WATERMARK_EXPIRED_DEFAULT_COLOR="#fd002dcc",TRANSITION_TIME="0.5s",CURSOR="pointer",WATERMARK_HOVER_COLOR="#373c8b",BUY_LICENSE_COLOR="#6957da",BUY_LICENSE_LIGHT_COLOR="#74a8d2",WATERMARK_SVG={FC_TXT_PATH:"M23,11.46V1.87h5.8V3.31h-4.1V6h3.48V7.46H24.71v4Zm7-2.68V4.26h1.69v4.3c0,1.19.34,1.63,1.12,1.63.63,0,1-.3,1.59-1V4.26h1.69v7.2H34.67l-.13-1.05h0a3,3,0,0,1-2.32,1.23C30.64,11.64,30,10.6,30,8.78Zm7.51,1.86.8-1.08a3.23,3.23,0,0,0,2,.8c.78,0,1.14-.36,1.14-.86s-.77-.87-1.54-1.16c-1-.35-2-.9-2-2.1s1-2.15,2.63-2.15A3.94,3.94,0,0,1,42.86,5l-.78,1a2.66,2.66,0,0,0-1.58-.62c-.72,0-1.06.34-1.06.79s.72.8,1.5,1.07c1,.37,2.06.84,2.06,2.19s-1,2.23-2.8,2.23A4.6,4.6,0,0,1,37.47,10.64ZM45.36,3a1,1,0,1,1,1-1A1,1,0,0,1,45.36,3Zm-.85,8.46V4.26H46.2v7.2Zm3.38-3.59a3.44,3.44,0,1,1,6.85,0,3.44,3.44,0,1,1-6.85,0Zm1.73,0c0,1.44.63,2.39,1.69,2.39S53,9.31,53,7.87s-.65-2.41-1.7-2.41S49.62,6.42,49.62,7.87Zm6.79,3.59V4.26H57.8l.12,1H58a3.34,3.34,0,0,1,2.36-1.14c1.54,0,2.21,1,2.21,2.86v4.51H60.87V7.17c0-1.19-.34-1.63-1.13-1.63a2.29,2.29,0,0,0-1.64.89v5ZM64.24,6.7c0-3.14,2-5,4.43-5A3.79,3.79,0,0,1,71.4,2.91L70.46,4a2.42,2.42,0,0,0-1.77-.79C67.12,3.18,66,4.5,66,6.65s1,3.51,2.64,3.51a2.57,2.57,0,0,0,2-1l.94,1.05a3.84,3.84,0,0,1-3,1.39C66.16,11.64,64.24,9.88,64.24,6.7ZM73,11.46V1.11h1.68V3.78l0,1.39A3.3,3.3,0,0,1,77,4.09c1.54,0,2.21,1,2.21,2.86v4.51H77.49V7.17c0-1.19-.34-1.63-1.13-1.63a2.33,2.33,0,0,0-1.65.89v5ZM80.9,9.53c0-1.54,1.29-2.35,4.24-2.67,0-.77-.33-1.41-1.3-1.41a4,4,0,0,0-2,.7L81.2,5a5.64,5.64,0,0,1,3-.93c1.8,0,2.68,1.1,2.68,3.1v4.27H85.45l-.13-.79h0a3.49,3.49,0,0,1-2.22,1A2,2,0,0,1,80.9,9.53Zm1.65-.14c0,.65.42.93,1,.93a2.25,2.25,0,0,0,1.57-.79V7.91C83.19,8.16,82.55,8.68,82.55,9.39Zm6.33,2.07V4.26h1.4l.11,1.28h.06a2.45,2.45,0,0,1,2-1.45,1.86,1.86,0,0,1,.82.14L93,5.7a2.46,2.46,0,0,0-.75-.12c-.57,0-1.26.4-1.7,1.48v4.4ZM94.6,9V5.6h-1V4.33l1.11-.07.21-2h1.4v2h1.84V5.6H96.3V9c0,.85.33,1.26,1,1.26a2,2,0,0,0,.74-.16l.3,1.24a4.43,4.43,0,0,1-1.47.27C95.22,11.64,94.6,10.58,94.6,9Zm4.33,1.61.79-1.08a3.26,3.26,0,0,0,2,.8c.77,0,1.14-.36,1.14-.86s-.78-.87-1.54-1.16c-.95-.35-2-.9-2-2.1s1-2.15,2.62-2.15a3.89,3.89,0,0,1,2.39.86l-.77,1A2.69,2.69,0,0,0,102,5.36c-.72,0-1,.34-1,.79s.71.8,1.49,1.07c1,.37,2.07.84,2.07,2.19s-1,2.23-2.8,2.23A4.58,4.58,0,0,1,98.93,10.64Z",TRIAL_TXT_PATH:["M111.54,4.59h-2.39V3.32h6.28V4.59H113v7h-1.5Z","M116.11,5.38h1.24l.11,1.11h0a2.15,2.15,0,0,1,1.77-1.27,1.7,1.7,0,0,1,.71.13l-.3,1.28a2.1,2.1,0,0,0-.6-.07c-.49,0-1.09.33-1.46,1.28v3.78h-1.51Z","M120.75,3.46a.9.9,0,0,1,1.8,0,.9.9,0,0,1-1.8,0Zm.13,1.92h1.51v6.24h-1.51Z","M123.89,9.94c0-1.37,1.09-2,3.65-2.33,0-.64-.27-1.17-1.11-1.17a3.6,3.6,0,0,0-1.75.58l-.53-1a4.78,4.78,0,0,1,2.56-.82c1.55,0,2.33,1,2.33,2.71v3.69h-1.22l-.12-.69h0a2.93,2.93,0,0,1-1.91.84A1.75,1.75,0,0,1,123.89,9.94Zm3.65,0V8.62c-1.69.21-2.2.59-2.2,1.22s.35.74.86.74A1.85,1.85,0,0,0,127.54,9.94Z","M130.77,10V2.66h1.51v7.4c0,.36.16.49.31.49a1,1,0,0,0,.23,0l.18,1.1a1.77,1.77,0,0,1-.79.14C131.16,11.77,130.77,11.08,130.77,10Z"],LOGO_PATH:["M9.76,0L12.93,0L12.93,11.39,L9.76,11.39L9.76,0","M9.76,12.86L12.93,12.86L12.93,16.19L9.76,16.19L9.76,12.86"],EXP_LOGO_PATH:["M140,42.7h36.1v129.8H140V42.7","M140,189.2h36.1v38H140V189.2"],UNLICENSED_TXT_PATH:["M130.77,10V2.66h1.51v7.4c0,.36.16.49.31.49a1,1,0,0,0,.23,0l.18,1.1a1.77,1.77,0,0,1-.79.14C131.16,11.77,130.77,11.08,130.77,10Z","M116.11,5.38h1.24l.11,1.11h0a2.15,2.15,0,0,1,1.77-1.27,1.7,1.7,0,0,1,.71.13l-.3,1.28a2.1,2.1,0,0,0-.6-.07c-.49,0-1.09.33-1.46,1.28v3.78h-1.51Z","M120.75,3.46a.9.9,0,0,1,1.8,0,.9.9,0,0,1-1.8,0Zm.13,1.92h1.51v6.24h-1.51Z","M123.89,9.94c0-1.37,1.09-2,3.65-2.33,0-.64-.27-1.17-1.11-1.17a3.6,3.6,0,0,0-1.75.58l-.53-1a4.78,4.78,0,0,1,2.56-.82c1.55,0,2.33,1,2.33,2.71v3.69h-1.22l-.12-.69h0a2.93,2.93,0,0,1-1.91.84A1.75,1.75,0,0,1,123.89,9.94Zm3.65,0V8.62c-1.69.21-2.2.59-2.2,1.22s.35.74.86.74A1.85,1.85,0,0,0,127.54,9.94Z","M130.77,10V2.66h1.51v7.4c0,.36.16.49.31.49a1,1,0,0,0,.23,0l.18,1.1a1.77,1.77,0,0,1-.79.14C131.16,11.77,130.77,11.08,130.77,10Z"],LOGO_RECT1:{x:0,y:1.63,width:3.33,height:9.76},LOGO_RECT2:{x:4.8,y:6.43,width:3.41,height:4.96},EXP_LOGO_RECT1:{x:28.8,y:61.2,width:38,height:111.2},EXP_LOGO_RECT2:{x:83.5,y:111.9,width:38.9,height:56.5},EXP_LOGO_RECT3:{x:3200,y:40,width:20,height:180}},opts={attributes:false,subtree:true,characterData:true,childList:true},toCode=function toCode(c){return String.fromCharCode(c)},strify=function strify(arr){return arr.map(toCode).join("")},accessor1=strify([99,114,101,100,105,116,76,97,98,101,108]),accessor2=strify([99,114,101,100,105,116,103,114,111,117,112]),base=[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122].map(toCode),isDetached=function isDetached(rNode){return!rNode.node||!rNode.node.parentNode||rNode.node.parentNode.nodeType===11},randBet=function randBet(min,max){return Math.random()*(max-min)+min},chooser=function chooser(){return base[Math.floor(randBet(0,base.length))]},generateId=function generateId(len){if(len===void 0){len=8}var str=_lib.BLANK;for(var i=0;i<len;i++){str+=chooser()}return str},addEiMethods=function addEiMethods(chartInstance,eiMethods){var methodName;for(methodName in eiMethods){if(eiMethods.hasOwnProperty(methodName)){chartInstance[methodName]=eiMethods[methodName]}}},getEIList=function getEIList(type){var specific=_eiMethodList.default[type]||[];return specific.concat(_eiMethodList.default["*"])},_mouseEvtHandler2=function _mouseEvtHandler(iapi,e,data){var mouseTracker=data.mouseTracker,oriEvent=e.originalEvent,chartConfig=iapi.config,datasets=chartConfig.datasetOrder||iapi.getDatasets(),coordinate,chartX,chartY,dataset,hoveredInfo,pointFound=false,i=datasets.length,j,l,derivedEvensInfo,_lastDatasetIndex=mouseTracker._lastDatasetIndex,_lastPointIndex=mouseTracker._lastPointIndex;coordinate=(0,_lib.getMouseCoordinate)(iapi.getFromEnv("chart-container"),oriEvent,iapi);chartX=coordinate.chartX;chartY=coordinate.chartY;while(i--&&!pointFound){dataset=datasets[i];if(dataset&&dataset.getState("visible")){hoveredInfo=dataset._getHoveredPlot&&dataset._getHoveredPlot(chartX,chartY);if(hoveredInfo&&hoveredInfo.hovered){pointFound=true;hoveredInfo.datasetIndex=i;derivedEvensInfo=mouseTracker.getMouseEvents(e,hoveredInfo.datasetIndex,hoveredInfo.pointIndex)}}}if((!pointFound||derivedEvensInfo&&derivedEvensInfo.fireOut)&&typeof _lastDatasetIndex!=="undefined"){if(datasets[_lastDatasetIndex]&&datasets[_lastDatasetIndex]._firePlotEvent){if(derivedEvensInfo&&!derivedEvensInfo.events.length){mouseTracker.mouseoutTimer=setTimeout((function(){iapi.mouseoutHandler(e,_lastDatasetIndex,_lastPointIndex)}),20)}else{iapi.mouseoutHandler(e,_lastDatasetIndex,_lastPointIndex);clearTimeout(mouseTracker.mouseoutTimer)}}}if(pointFound){l=derivedEvensInfo.events&&derivedEvensInfo.events.length;if(l){mouseTracker._lastDatasetIndex=hoveredInfo.datasetIndex;_lastPointIndex=mouseTracker._lastPointIndex=hoveredInfo.pointIndex}for(j=0;j<l;j+=1){if(dataset&&dataset._firePlotEvent){dataset&&dataset._firePlotEvent&&dataset._firePlotEvent(derivedEvensInfo.events[j],_lastPointIndex,e,hoveredInfo.datasetIndex)}}}};exports._mouseEvtHandler=_mouseEvtHandler2;var BaseChart=function(_ComponentInterface){(0,_inheritsLoose2.default)(BaseChart,_ComponentInterface);function BaseChart(){var _this;for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}_this=_ComponentInterface.call.apply(_ComponentInterface,[this].concat(args))||this;_this._creatingTheBlurredContainer=function(divWidth,divHeight,chartTheme){var chartBlurContainer,blurredRect,path2;chartBlurContainer=document.createElementNS(SVG_NAMESPACE,"g");path2=document.createElementNS(SVG_NAMESPACE,"g");chartBlurContainer.setAttributeNS(null,"fill",WATERMARK_DEFAULT_COLOR);chartBlurContainer.setAttributeNS(null,"cursor",CURSOR);chartBlurContainer.setAttributeNS(null,"pointer-events","bounding-box");chartBlurContainer.setAttributeNS(null,"style","transition:"+TRANSITION_TIME+";");blurredRect=document.createElementNS(SVG_NAMESPACE,"rect");blurredRect.setAttributeNS(null,"width",divWidth);blurredRect.setAttributeNS(null,"height",divHeight);blurredRect.setAttributeNS(null,"fill","#ffffff33");for(var index=0;index<Math.trunc(divWidth/250);index++){var chartBlurTextContainer2=void 0,dimension2=index,leftMargin=dimension2*250,renderingAreaWidth=(divWidth-Math.trunc(divWidth/250)*250)/Math.trunc(divWidth/250),path1=document.createElementNS(SVG_NAMESPACE,"g");for(var index2=0;index2*120<divHeight-120;index2++){var chartBlurTextContainer=void 0,dimension=index2*120;chartBlurTextContainer=_this._createBlurText(dimension,chartTheme);path1.appendChild(chartBlurTextContainer)}chartBlurTextContainer2=path1;chartBlurTextContainer2.setAttributeNS(null,"transform","translate("+(leftMargin+renderingAreaWidth)+", 0)");path2.appendChild(chartBlurTextContainer2)}chartBlurContainer.appendChild(blurredRect);chartBlurContainer.appendChild(path2);return chartBlurContainer};_this._createBlurText=function(dimension,chartTheme){var chartBlurTextContainer,path1,path2,path3,path4,isCandy=false;if(chartTheme&&chartTheme==="candy")isCandy=true;chartBlurTextContainer=document.createElementNS(SVG_NAMESPACE,"g");chartBlurTextContainer.setAttributeNS(null,"transform","scale(0.1), translate(0, "+(dimension*10+500)+")");chartBlurTextContainer.setAttributeNS(null,"fill",isCandy?LICENSE_EXPIRED_LIGHT_TEXT:LICENSE_EXPIRED_TEXT);chartBlurTextContainer.setAttributeNS(null,"cursor",CURSOR);chartBlurTextContainer.setAttributeNS(null,"pointer-events","bounding-box");chartBlurTextContainer.setAttributeNS(null,"style","transition:"+TRANSITION_TIME+";");path1=document.createElementNS(SVG_NAMESPACE,"path");path1.setAttribute("d",_unlicensedText.text.fusionchartsLicenseHasExpiredText[0]);path1.setAttributeNS(null,"fill","");path1.setAttributeNS(null,"stroke","");path1.setAttributeNS(null,"stroke-linecap","");path2=document.createElementNS(SVG_NAMESPACE,"path");path2.setAttribute("d",_unlicensedText.text.fusionchartsLicenseHasExpiredText[1]);path2.setAttributeNS(null,"fill","");path2.setAttributeNS(null,"stroke","");path2.setAttributeNS(null,"stroke-linecap","");path3=document.createElementNS(SVG_NAMESPACE,"path");path3.setAttribute("d",_unlicensedText.text.fusionchartsLicenseHasExpiredText[2]);path3.setAttributeNS(null,"fill","");path3.setAttributeNS(null,"stroke","");path3.setAttributeNS(null,"stroke-linecap","");path4=document.createElementNS(SVG_NAMESPACE,"path");path4.setAttribute("d",_unlicensedText.text.fusionchartsLicenseHasExpiredText[3]);path4.setAttributeNS(null,"fill","");path4.setAttributeNS(null,"stroke","");path4.setAttributeNS(null,"stroke-linecap","");chartBlurTextContainer.appendChild(path1);chartBlurTextContainer.appendChild(path2);chartBlurTextContainer.appendChild(path3);chartBlurTextContainer.appendChild(path4);return chartBlurTextContainer};return _this}BaseChart.getName=function getName(){return"base"};var _proto=BaseChart.prototype;_proto.setDummyEImethods=function setDummyEImethods(type){var iapi=this,config=iapi.config,_eiStore=config._eiStore||(config._eiStore={}),methods=getEIList(type),chartInstance=iapi.getFromEnv("chartInstance"),fnGenerator=function fnGenerator(fn){return function(){!_eiStore[fn]&&(_eiStore[fn]=[]);_eiStore[fn].push(arguments)}};methods.forEach((function(method){!chartInstance[method]&&(chartInstance[method]=fnGenerator(method))}));chartInstance.addEventListener("renderComplete",(function(){var _loop=function _loop(fn){_eiStore[fn].forEach((function(fnCalls){chartInstance[fn].apply(chartInstance,fnCalls)}))};for(var fn in _eiStore){_loop(fn)}config._eiStore={}}))};BaseChart.getType=function getType(){return"chartAPI"};_proto.mouseoutHandler=function mouseoutHandler(e,_lastDatasetIndex,_lastPointIndex){var chart=this,datasets=chart.config.datasetOrder||chart.getDatasets(),mouseTracker=chart.getChildren("mouseTracker")[0];var lastDataSet=datasets[_lastDatasetIndex];if(lastDataSet&&lastDataSet.components&&lastDataSet.components.data&&lastDataSet.components.data[_lastPointIndex]){datasets[_lastDatasetIndex]._firePlotEvent(MOUSEOUT,_lastPointIndex,e)}else{chart.getFromEnv("toolTipController").hideAll()}delete mouseTracker._lastDatasetIndex;delete mouseTracker._lastPointIndex};_proto.getName=function getName(){return"base"};_proto.getType=function getType(){return"chartAPI"};_proto._mouseEvtHandler=function _mouseEvtHandler(e,data){_mouseEvtHandler2(this,e,data)};_proto.getComponents=function getComponents(parentComp,type){var comp=parentComp||this,datasets=[];comp.iterateComponents((function(component){if(component.getType()===type){datasets.push(component)}}));return datasets};_proto.getDatasets=function getDatasets(parentComp){var comp=parentComp||this,datasets=[];comp.iterateComponents((function(component){if(component.getType()==="dataset"){datasets.push(component)}}));return datasets};_proto.preConfigure=function preConfigure(dataObj){_ComponentInterface.prototype.preConfigure.call(this,dataObj);addEiMethods(this.getFromEnv("chartInstance"),this.eiMethods)};_proto.configureAttributes=function configureAttributes(dataObj){_ComponentInterface.prototype.configureAttributes.call(this,dataObj);this.createBaseComponent()};_proto.createBaseComponent=function createBaseComponent(){var iapi=this,animationManager;if(animationManager=iapi.getFromEnv("animationManager")){animationManager.configure()}else{animationManager=new _animationManager.default;iapi.addToEnv("animationManager",animationManager);animationManager.addToEnv("chart",iapi);animationManager.addToEnv("animationManager",animationManager);animationManager.configure();iapi.addExtEventListener("animationstart",(function(e){var duration=e.data.duration;duration&&iapi.fireChartInstanceEvent("animationinvoked",{duration:duration})}),animationManager)}};_proto.setChartMessage=function setChartMessage(message,chartObj,_container){var iapi=this,paper,Raphael,chartMessage,container=_container;(0,_lib.componentFactory)(this,_chartMessage.default,"chartMessage");chartMessage=iapi.getChildren("chartMessage")[0];if(container){iapi.addToEnv("chart-container",container)}else{container=iapi.getFromEnv("chart-container")}paper=iapi.getFromEnv("paper");if(!paper){Raphael=(0,_dependencyManager.getDep)("redraphael","plugin");paper=new Raphael(container,iapi.getFromEnv("chartWidth"),iapi.getFromEnv("chartHeight"));paper.setHTMLClassName("fusioncharts-div");iapi.addToEnv("paper",paper)}paper.setConfig("stroke-linecap",_lib.ROUND);!iapi.getChildContainer("messageGroup")&&iapi.addChildContainer("messageGroup",paper.group("messageGroup"));iapi.config.hasChartMessage=true;chartMessage.setData({message:message,chartObj:chartObj,visible:true},true)};_proto.drawChartMessage=function drawChartMessage(){var iapi=this;iapi.config.hasChartMessage=true;iapi._drawTexts()};_proto._dispose=function _dispose(){this._clearTimers&&this._clearTimers();var paper=this.getFromEnv("paper");paper&&paper.remove&&paper.remove();_ComponentInterface.prototype._dispose.call(this)};_proto.fireChartInstanceEvent=function fireChartInstanceEvent(name,data,originalEvent,defaultFn,cancelledFn){var chartInstance=this.getFromEnv("chartInstance");(0,_eventApi.triggerEvent)(name,chartInstance,data,originalEvent,defaultFn,cancelledFn)};_proto._hideChartMessage=function _hideChartMessage(){var iapi=this,chartMessage=iapi.getChildren("chartMessage");iapi.config.hasChartMessage=false;chartMessage&&chartMessage[0].setData({visible:false},true);iapi.getGraphicalElement("messageText")&&iapi.getGraphicalElement("messageText").hide();iapi.getGraphicalElement("messageVeil")&&iapi.getGraphicalElement("messageVeil").hide()};_proto._removeWaitingJobs=function _removeWaitingJobs(){this.iterateComponents((function(comp){return comp.removeAllJobs()}))};_proto._drawTexts=function _drawTexts(){this._drawMain(false)};_proto._drawMain=function _drawMain(hasLabel,usingExpiredKey){if(usingExpiredKey===void 0){usingExpiredKey=false}this._crCreate(hasLabel,usingExpiredKey);if(hasLabel){this._scheduleLabelCheck(hasLabel,usingExpiredKey)}};_proto._scheduleLabelCheck=function _scheduleLabelCheck(hasLabel,usingExpiredKey){var component=this;component.addJob("checker",(function(){var labelContRNode=component.getContainer(accessor2);if(labelContRNode&&isDetached(labelContRNode)){component._crCreate(hasLabel,usingExpiredKey)}component._scheduleLabelCheck(hasLabel,usingExpiredKey)}),_schedular.priorityList.verification,{oneInAFrame:true,addToTop:false,executionDelay:300})};_proto._crCreate=function _crCreate(hasLabel,usingExpiredKey){var _iapi$getFromEnv;var iapi=this,paper=iapi.getFromEnv("paper"),chartHeight=+iapi.getFromEnv("chartHeight"),chartWidth=+iapi.getFromEnv("chartWidth"),chartName=iapi.constructor.name,chartTheme=(_iapi$getFromEnv=iapi.getFromEnv("chart-attrib"))==null?void 0:_iapi$getFromEnv.theme,labelElemCheck=iapi.getGraphicalElement(accessor1),labelElem,labelGroup,logoElement,blurElement,parentGroup=iapi.getContainer("parentgroup"),txts={href:_lib.TXT_HREF};if(hasLabel){if(iapi.getContainer(accessor2)){iapi.removeContainer(accessor2)}if(labelElemCheck){iapi.removeGraphicalElement(labelElemCheck)}if(!(paper&&paper.group)){return}labelGroup=iapi.addContainer(accessor2,paper.group(generateId(),true));parentGroup&&labelGroup.insertAfter(parentGroup);iapi.addGraphicalElement(accessor1,labelElem);logoElement=this._creatingTheLogo(chartHeight-27.32,usingExpiredKey,chartName,chartHeight,chartTheme);if(usingExpiredKey){var svgFilter,feGaussianBlur,currentNode,currentChildNode;blurElement=this._creatingTheBlurredContainer(chartWidth,chartHeight,chartTheme);labelGroup.node.appendChild(blurElement);svgFilter=document.createElementNS(SVG_NAMESPACE,"filter");svgFilter.setAttribute("id","blurFilter");feGaussianBlur=document.createElementNS(SVG_NAMESPACE,"feGaussianBlur");feGaussianBlur.setAttribute("in","SourceGraphic");feGaussianBlur.setAttribute("stdDeviation","2");svgFilter.appendChild(feGaussianBlur);parentGroup.node.appendChild(svgFilter);parentGroup.node.setAttributeNS(null,"filter","url(#blurFilter)");currentNode=labelGroup;while((_currentNode=currentNode)!=null&&_currentNode.next){var _currentNode,_currentNode2,_currentNode3;currentNode=(_currentNode2=currentNode)==null?void 0:_currentNode2.next;currentChildNode=(_currentNode3=currentNode)==null?void 0:_currentNode3.node;currentChildNode.setAttributeNS(null,"filter","url(#blurFilter)")}}labelGroup.node.appendChild(logoElement);if(!iapi.config.observer){iapi.config.observer=new MutationObserver((function(){return iapi._crCreate(hasLabel,usingExpiredKey)}))}else{iapi.config.observer.disconnect()}iapi.config.observer.observe(iapi.getContainer(accessor2).node,opts);if(!usingExpiredKey){labelGroup.on("fc-click",(function(){try{open(txts.href)}catch(err){(top||window).location.href=txts.href}}))}}else if(labelElem&&labelElem.remove){if(iapi.config.observer)iapi.config.observer.disconnect();iapi.removeGraphicalElement(accessor1)}};_proto.hoverCallback=function hoverCallback(event){if(event.type==="mouseover"){this.style.fill=WATERMARK_HOVER_COLOR}else if(event.type==="mouseout"){this.style.fill=WATERMARK_DEFAULT_COLOR}};_proto._creatingTheLogo=function _creatingTheLogo(yPos,usingExpiredKey,chartName,chartHeight,chartTheme){var fusionLogoContainer,path1,rect1,rect2,polygon1,polygon2,path2,path3,path4,path5,path6,path7,path8,chartNameContainer,buyLicenseLink;fusionLogoContainer=document.createElementNS(SVG_NAMESPACE,"g");usingExpiredKey?fusionLogoContainer.setAttributeNS(null,"transform","scale(0.1), translate(18,"+yPos*10+")"):fusionLogoContainer.setAttributeNS(null,"transform","translate(18,"+yPos+")");fusionLogoContainer.setAttributeNS(null,"fill",usingExpiredKey?WATERMARK_EXPIRED_DEFAULT_COLOR:WATERMARK_DEFAULT_COLOR);fusionLogoContainer.setAttributeNS(null,"cursor",CURSOR);fusionLogoContainer.setAttributeNS(null,"pointer-events","bounding-box");fusionLogoContainer.style.transition=TRANSITION_TIME;path1=document.createElementNS(SVG_NAMESPACE,"path");path1.setAttribute("d",WATERMARK_SVG.FC_TXT_PATH);path1.setAttributeNS(null,"fill","");path1.setAttributeNS(null,"stroke","");path1.setAttributeNS(null,"stroke-linecap","");rect1=document.createElementNS(SVG_NAMESPACE,"rect");rect1.setAttributeNS(null,"x",usingExpiredKey?WATERMARK_SVG.EXP_LOGO_RECT1.x:WATERMARK_SVG.LOGO_RECT1.x);rect1.setAttributeNS(null,"y",usingExpiredKey?WATERMARK_SVG.EXP_LOGO_RECT1.y:WATERMARK_SVG.LOGO_RECT1.y);rect1.setAttributeNS(null,"width",usingExpiredKey?WATERMARK_SVG.EXP_LOGO_RECT1.width:WATERMARK_SVG.LOGO_RECT1.width);rect1.setAttributeNS(null,"height",usingExpiredKey?WATERMARK_SVG.EXP_LOGO_RECT1.height:WATERMARK_SVG.LOGO_RECT1.height);rect1.setAttributeNS(null,"fill","");rect1.setAttributeNS(null,"stroke","");rect1.setAttributeNS(null,"stroke-linecap","");rect2=document.createElementNS(SVG_NAMESPACE,"rect");rect2.setAttributeNS(null,"x",usingExpiredKey?WATERMARK_SVG.EXP_LOGO_RECT2.x:WATERMARK_SVG.LOGO_RECT2.x);rect2.setAttributeNS(null,"y",usingExpiredKey?WATERMARK_SVG.EXP_LOGO_RECT2.y:WATERMARK_SVG.LOGO_RECT2.y);rect2.setAttributeNS(null,"width",usingExpiredKey?WATERMARK_SVG.EXP_LOGO_RECT2.width:WATERMARK_SVG.LOGO_RECT2.width);rect2.setAttributeNS(null,"height",usingExpiredKey?WATERMARK_SVG.EXP_LOGO_RECT2.height:WATERMARK_SVG.LOGO_RECT2.height);rect2.setAttributeNS(null,"fill","");rect2.setAttributeNS(null,"stroke","");rect2.setAttributeNS(null,"stroke-linecap","");polygon1=document.createElementNS(SVG_NAMESPACE,"path");polygon1.setAttributeNS(null,"d",usingExpiredKey?WATERMARK_SVG.EXP_LOGO_PATH[0]:WATERMARK_SVG.LOGO_PATH[0]);polygon1.setAttributeNS(null,"fill","");polygon1.setAttributeNS(null,"stroke","");polygon1.setAttributeNS(null,"stroke-linecap","");polygon2=document.createElementNS(SVG_NAMESPACE,"path");polygon2.setAttributeNS(null,"d",usingExpiredKey?WATERMARK_SVG.EXP_LOGO_PATH[1]:WATERMARK_SVG.LOGO_PATH[1]);polygon2.setAttributeNS(null,"fill","");polygon2.setAttributeNS(null,"stroke","");polygon2.setAttributeNS(null,"stroke-linecap","");path2=document.createElementNS(SVG_NAMESPACE,"path");path2.setAttributeNS(null,"d",WATERMARK_SVG.TRIAL_TXT_PATH[0]);path2.setAttributeNS(null,"fill","");path2.setAttributeNS(null,"stroke","");path2.setAttributeNS(null,"stroke-linecap","");path3=document.createElementNS(SVG_NAMESPACE,"path");path3.setAttributeNS(null,"d",WATERMARK_SVG.TRIAL_TXT_PATH[1]);path3.setAttributeNS(null,"fill","");path3.setAttributeNS(null,"stroke","");path3.setAttributeNS(null,"stroke-linecap","");path4=document.createElementNS(SVG_NAMESPACE,"path");path4.setAttributeNS(null,"d",WATERMARK_SVG.TRIAL_TXT_PATH[2]);path4.setAttributeNS(null,"fill","");path4.setAttributeNS(null,"stroke","");path4.setAttributeNS(null,"stroke-linecap","");path5=document.createElementNS(SVG_NAMESPACE,"path");path5.setAttributeNS(null,"d",WATERMARK_SVG.TRIAL_TXT_PATH[3]);path5.setAttributeNS(null,"fill","");path5.setAttributeNS(null,"stroke","");path5.setAttributeNS(null,"stroke-linecap","");path6=document.createElementNS(SVG_NAMESPACE,"path");path6.setAttributeNS(null,"d",WATERMARK_SVG.TRIAL_TXT_PATH[4]);path6.setAttributeNS(null,"fill","");path6.setAttributeNS(null,"stroke","");path6.setAttributeNS(null,"stroke-linecap","");path7=document.createElementNS(SVG_NAMESPACE,"path");path7.setAttributeNS(null,"d",_unlicensedText.text.fusionchartsUnlicensedText[0]);path7.setAttributeNS(null,"transform","scale(0.9), translate(0, 35)");path7.setAttributeNS(null,"fill","");path7.setAttributeNS(null,"stroke","");path7.setAttributeNS(null,"stroke-linecap","");path8=document.createElementNS(SVG_NAMESPACE,"path");path8.setAttributeNS(null,"d",_unlicensedText.text.fusionchartsUnlicensedText[1]);path8.setAttributeNS(null,"transform","scale(0.9), translate(2050, 85)");path8.setAttributeNS(null,"fill",chartTheme==="candy"?BUY_LICENSE_LIGHT_COLOR:BUY_LICENSE_COLOR);path8.setAttributeNS(null,"stroke","");path8.setAttributeNS(null,"stroke-linecap","");buyLicenseLink=document.createElementNS(SVG_NAMESPACE,"a");buyLicenseLink.setAttributeNS(null,"href",_lib.BUY_LICENSE_HREF);buyLicenseLink.setAttribute("target","_blank");buyLicenseLink.appendChild(path8);chartNameContainer=document.createElementNS(SVG_NAMESPACE,"text");chartNameContainer.setAttributeNS(null,"transform","scale(10), translate(0, -"+(chartHeight-40)+")");chartNameContainer.setAttribute("x",0);chartNameContainer.setAttribute("y",0);chartNameContainer.setAttribute("width",1e3);chartNameContainer.setAttribute("height",1e3);chartNameContainer.setAttribute("fill",WATERMARK_DEFAULT_COLOR);fusionLogoContainer.appendChild(rect1);fusionLogoContainer.appendChild(rect2);fusionLogoContainer.appendChild(polygon1);fusionLogoContainer.appendChild(polygon2);if(usingExpiredKey){fusionLogoContainer.appendChild(path7);fusionLogoContainer.appendChild(buyLicenseLink);fusionLogoContainer.appendChild(chartNameContainer)}else{fusionLogoContainer.appendChild(path1);fusionLogoContainer.appendChild(path2);fusionLogoContainer.appendChild(path3);fusionLogoContainer.appendChild(path4);fusionLogoContainer.appendChild(path5);fusionLogoContainer.appendChild(path6)}if(!usingExpiredKey){fusionLogoContainer.addEventListener("mouseover",this.hoverCallback);fusionLogoContainer.addEventListener("mouseout",this.hoverCallback)}return fusionLogoContainer};_proto._hideModal=function _hideModal(){this.getChildContainer("messageGroup").hide()};_proto.remove=function remove(config){var animationManager=this.getFromEnv("animationManager");if(this.config.observer)this.config.observer.disconnect();_ComponentInterface.prototype.remove.call(this,config);animationManager&&animationManager.remove(config)};return BaseChart}(_componentInterface.ComponentInterface);BaseChart.stringConstants={BACKGROUNDLOADED:"BackgroundLoaded",BACKGROUNDLOADERROR:"BackgroundLoadError",clipRectStr:"clip-rect"};var _default=BaseChart;exports.default=_default;

@@ -1,1 +0,1 @@

"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule=true;exports.default=void 0;var _inheritsLoose2=_interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));var _tool=_interopRequireDefault(require("../tool"));var _dependencyManager=require("../../../dependency-manager");var _schedular=require("../../../schedular");var _lib=require("../../../../src/lib");var R=(0,_dependencyManager.getDep)("redraphael","plugin"),mathMax=Math.max;var ScrollTrack=function(_Tool){(0,_inheritsLoose2.default)(ScrollTrack,_Tool);function ScrollTrack(){var _this;_this=_Tool.call(this)||this;_this._evtHandlers={};return _this}var _proto=ScrollTrack.prototype;_proto.configureAttributes=function configureAttributes(obj){if(obj===void 0){obj={}}var selfConfig=this.config;selfConfig.style={track:Object.assign({},{fill:obj.displayFlat&&obj.color||[90*obj.isHorizontal,R.tintshade(obj.color,.15).rgba,obj.color].join("-"),stroke:R.tintshade(obj.color,-.75).rgba},obj.style.track)}};_proto.attachEventHandlers=function attachEventHandlers(){var scrollTrack=this,selfConfig=scrollTrack.config,scrollbar=scrollTrack.getLinkedParent(),scrollbarConfig=scrollbar.config,diff,continueDrag,posDisplacement,scrollAnchor,scrollAnchorConfig,boundaryCheckandDraw=function boundaryCheckandDraw(){if(scrollbarConfig.scrollPosition>1){scrollbarConfig.scrollPosition=1;continueDrag=false}else if(scrollbarConfig.scrollPosition<0||isNaN(scrollbarConfig.scrollPosition)){scrollbarConfig.scrollPosition=0;continueDrag=false}scrollAnchor.asyncDraw();typeof scrollbarConfig.evt.scroll==="function"&&scrollbarConfig.evt.scroll(scrollbarConfig.scrollPosition)},dragRightJob=function dragRightJob(){scrollbarConfig.scrollPosition+=.01;if(posDisplacement>=scrollbarConfig.scrollPosition&&continueDrag){boundaryCheckandDraw();scrollTrack.addJob("dragScrollAnchorRight",dragRightJob,_schedular.priorityList.draw)}},dragLeftJob=function dragLeftJob(){scrollbarConfig.scrollPosition-=.01;if(posDisplacement<=scrollbarConfig.scrollPosition&&continueDrag){boundaryCheckandDraw();scrollTrack.addJob("dragScrollAnchorLeft",dragLeftJob,_schedular.priorityList.draw)}};scrollTrack.addEventListener("fc-mousedown",scrollTrack._evtHandlers.mousedown||(scrollTrack._evtHandlers.mousedown=function(event){scrollAnchor=scrollbar.getChildren("scrollAnchor")[0];scrollAnchorConfig=scrollAnchor.config;continueDrag=true;if(scrollbarConfig.isHorizontal){diff=event.originalEvent.layerX-(scrollAnchorConfig._nodeDimensions.x+selfConfig.transLateX+scrollAnchorConfig._nodeDimensions.width/2)}else{diff=event.originalEvent.layerY-(scrollAnchorConfig._nodeDimensions.y+selfConfig.transLateY+scrollAnchorConfig._nodeDimensions.height/2)}posDisplacement=diff/scrollAnchorConfig.trackLength+scrollbarConfig.scrollPosition;if(posDisplacement>=scrollbarConfig.scrollPosition){scrollTrack.addJob("dragScrollAnchorRight",dragRightJob,_schedular.priorityList.draw)}else{scrollTrack.addJob("dragScrollAnchorLeft",dragLeftJob,_schedular.priorityList.draw)}}));scrollTrack.addEventListener("fc-mouseup",scrollTrack._evtHandlers.mouseup||(scrollTrack._evtHandlers.mouseup=function(){continueDrag=false}))};_proto.draw=function draw(){var scrollTrack=this,selfConfig=scrollTrack.config,scrollbar=this.getLinkedParent(),scrollbarConfig=scrollbar.config,newScroll=(0,_lib.crispBound)(scrollbarConfig.x+.5,scrollbarConfig.y+scrollbarConfig.padding+.5,scrollbarConfig.width-1,scrollbarConfig.height-1,scrollbarConfig.strokeWidth);scrollTrack.addGraphicalElement({el:"rect",attr:{x:newScroll.x,y:newScroll.y,width:mathMax(newScroll.width,0),height:mathMax(newScroll.height,0),r:scrollbarConfig.roundEdges&&2||0,opacity:selfConfig.style.track.opacity},css:selfConfig.style.track,container:{id:"scrollbarGroup",label:"scrollbarGroup",isParent:true},component:scrollTrack,label:"scrollbarTrack",id:"scrollbarTrack"})};return ScrollTrack}(_tool.default);var _default=ScrollTrack;exports.default=_default;
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule=true;exports.default=void 0;var _inheritsLoose2=_interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));var _tool=_interopRequireDefault(require("../tool"));var _dependencyManager=require("../../../dependency-manager");var _schedular=require("../../../schedular");var _lib=require("../../../../src/lib");var R=(0,_dependencyManager.getDep)("redraphael","plugin"),mathMax=Math.max;var ScrollTrack=function(_Tool){(0,_inheritsLoose2.default)(ScrollTrack,_Tool);function ScrollTrack(){var _this;_this=_Tool.call(this)||this;_this._evtHandlers={};return _this}var _proto=ScrollTrack.prototype;_proto.configureAttributes=function configureAttributes(obj){if(obj===void 0){obj={}}var selfConfig=this.config;selfConfig.style={track:Object.assign({},{fill:obj.displayFlat&&obj.color||[90*obj.isHorizontal,R.tintshade(obj.color,.15).rgba,obj.color].join("-"),stroke:R.tintshade(obj.color,-.75).rgba},obj.style.track)}};_proto.attachEventHandlers=function attachEventHandlers(){var scrollTrack=this,selfConfig=scrollTrack.config,scrollbar=scrollTrack.getLinkedParent(),scrollbarConfig=scrollbar.config,diff,continueDrag,posDisplacement,scrollAnchor,scrollAnchorConfig,boundaryCheckandDraw=function boundaryCheckandDraw(){if(scrollbarConfig.scrollPosition>1){scrollbarConfig.scrollPosition=1;continueDrag=false}else if(scrollbarConfig.scrollPosition<0||isNaN(scrollbarConfig.scrollPosition)){scrollbarConfig.scrollPosition=0;continueDrag=false}scrollAnchor.asyncDraw();typeof scrollbarConfig.evt.scroll==="function"&&scrollbarConfig.evt.scroll(scrollbarConfig.scrollPosition)},dragRightJob=function dragRightJob(){scrollbarConfig.scrollPosition+=.01;if(posDisplacement>=scrollbarConfig.scrollPosition&&continueDrag){boundaryCheckandDraw();scrollTrack.addJob("dragScrollAnchorRight",dragRightJob,_schedular.priorityList.draw)}},dragLeftJob=function dragLeftJob(){scrollbarConfig.scrollPosition-=.01;if(posDisplacement<=scrollbarConfig.scrollPosition&&continueDrag){boundaryCheckandDraw();scrollTrack.addJob("dragScrollAnchorLeft",dragLeftJob,_schedular.priorityList.draw)}};scrollTrack.addEventListener("fc-mousedown",scrollTrack._evtHandlers.mousedown||(scrollTrack._evtHandlers.mousedown=function(event){scrollAnchor=scrollbar.getChildren("scrollAnchor")[0];scrollAnchorConfig=scrollAnchor.config;continueDrag=true;if(scrollbarConfig.isHorizontal){diff=event.originalEvent.layerX-(scrollAnchorConfig._nodeDimensions.x+selfConfig.transLateX+scrollAnchorConfig._nodeDimensions.width/2)}else{diff=event.originalEvent.layerY-(scrollAnchorConfig._nodeDimensions.y+selfConfig.transLateY+scrollAnchorConfig._nodeDimensions.height/2)}posDisplacement=diff/scrollAnchorConfig.trackLength+scrollbarConfig.scrollPosition;if(posDisplacement>=scrollbarConfig.scrollPosition){scrollTrack.addJob("dragScrollAnchorRight",dragRightJob,_schedular.priorityList.draw)}else{scrollTrack.addJob("dragScrollAnchorLeft",dragLeftJob,_schedular.priorityList.draw)}}));scrollTrack.addEventListener("fc-mouseup",scrollTrack._evtHandlers.mouseup||(scrollTrack._evtHandlers.mouseup=function(){scrollbarConfig.evt.scrollEnd();continueDrag=false}))};_proto.draw=function draw(){var scrollTrack=this,selfConfig=scrollTrack.config,scrollbar=this.getLinkedParent(),scrollbarConfig=scrollbar.config,newScroll=(0,_lib.crispBound)(scrollbarConfig.x+.5,scrollbarConfig.y+scrollbarConfig.padding+.5,scrollbarConfig.width-1,scrollbarConfig.height-1,scrollbarConfig.strokeWidth);scrollTrack.addGraphicalElement({el:"rect",attr:{x:newScroll.x,y:newScroll.y,width:mathMax(newScroll.width,0),height:mathMax(newScroll.height,0),r:scrollbarConfig.roundEdges&&2||0,opacity:selfConfig.style.track.opacity},css:selfConfig.style.track,container:{id:"scrollbarGroup",label:"scrollbarGroup",isParent:true},component:scrollTrack,label:"scrollbarTrack",id:"scrollbarTrack"})};return ScrollTrack}(_tool.default);var _default=ScrollTrack;exports.default=_default;
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc