/* Highcharts JS v6.1.0 (2018-04-13) Module for adding patterns and images as point fills. (c) 2010-2018 Highsoft AS Author: Torstein Hnsi, ystein Moseng License: www.highcharts.com/license */ (function(g){"object"===typeof module&&module.exports?module.exports=g:g(Highcharts)})(function(g){(function(e){function g(b,a){b=JSON.stringify(b);var d=b.length||0,c=0,e=0;if(a){a=Math.max(Math.floor(d/500),1);for(var f=0;fa.aspectRatio?a.aspectWidth=a.height*b.aspectRatio:a.aspectHeight=a.width/b.aspectRatio);b._width=b.width||Math.ceil(a.aspectWidth||a.width);b._height=b.height||Math.ceil(a.aspectHeight|| a.height)}b.width||(b._x=b.x||0,b._x+=a.x-Math.round(a.aspectWidth?Math.abs(a.aspectWidth-a.width)/2:0));b.height||(b._y=b.y||0,b._y+=a.y-Math.round(a.aspectHeight?Math.abs(a.aspectHeight-a.height)/2:0))}};e.SVGRenderer.prototype.addPattern=function(b,a){var d,c=e.pick(a,!0),h=b.width||b._width||32,f=b.height||b._height||32,g=b.color||"#343434",l=b.id,m=this,n=function(a){m.rect(0,0,h,f).attr({fill:a}).add(d)};l||(this.idCounter=this.idCounter||0,l="highcharts-pattern-"+this.idCounter,++this.idCounter); this.defIds=this.defIds||[];if(!(-1