/* Highcharts JS v8.2.0 (2020-08-20) Module for adding patterns and images as point fills. (c) 2010-2019 Highsoft AS Author: Torstein Hnsi, ystein Moseng License: www.highcharts.com/license */ (function(c){"object"===typeof module&&module.exports?(c["default"]=c,module.exports=c):"function"===typeof define&&define.amd?define("highcharts/modules/pattern-fill",["highcharts"],function(g){c(g);c.Highcharts=g;return c}):c("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(c){function g(c,p,g,e){c.hasOwnProperty(p)||(c[p]=e.apply(null,g))}c=c?c._modules:{};g(c,"Extensions/PatternFill.js",[c["Core/Globals.js"],c["Core/Series/Point.js"],c["Core/Renderer/SVG/SVGRenderer.js"],c["Core/Utilities.js"]], function(c,g,r,e){function p(a,b){a=JSON.stringify(a);var c=a.length||0,f=0,d=0;if(b){b=Math.max(Math.floor(c/500),1);for(var e=0;e b.aspectRatio?b.aspectWidth=b.height*a.aspectRatio:b.aspectHeight=b.width/a.aspectRatio);a._width=a.width||Math.ceil(b.aspectWidth||b.width);a._height=a.height||Math.ceil(b.aspectHeight||b.height)}a.width||(a._x=a.x||0,a._x+=b.x-Math.round(b.aspectWidth?Math.abs(b.aspectWidth-b.width)/2:0));a.height||(a._y=a.y||0,a._y+=b.y-Math.round(b.aspectHeight?Math.abs(b.aspectHeight-b.height)/2:0))}};r.prototype.addPattern=function(a,b){b=q(b,!0);var c=u(b),f=a.width||a._width||32,d=a.height||a._height||32, e=a.color||"#343434",h=a.id,g=this,n=function(a){g.rect(0,0,f,d).attr({fill:a}).add(m)};h||(this.idCounter=this.idCounter||0,h="highcharts-pattern-"+this.idCounter+"-"+(this.chartIndex||0),++this.idCounter);this.forExport&&(h+="-export");this.defIds=this.defIds||[];if(!(-1