/* Highcharts JS v8.0.0 (2019-12-10) (c) 2017-2019 Highsoft AS Authors: Jon Arild Nygard License: www.highcharts.com/license */ (function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/venn",["highcharts"],function(q){a(q);a.Highcharts=q;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function q(g,e,f,k){g.hasOwnProperty(e)||(g[e]=k.apply(null,f))}a=a?a._modules:{};q(a,"mixins/draw-point.js",[],function(){var g=function(e){var f=this,k=f.graphic,g=e.animatableAttribs,a=e.onComplete,y=e.css,w=e.renderer; if(f.shouldDraw())k||(f.graphic=k=w[e.shapeType](e.shapeArgs).add(e.group)),k.css(y).attr(e.attribs).animate(g,e.isNew?!1:void 0,a);else if(k){var x=function(){f.graphic=k=k.destroy();"function"===typeof a&&a()};Object.keys(g).length?k.animate(g,void 0,function(){x()}):x()}};return function(e){(e.attribs=e.attribs||{})["class"]=this.getClassName();g.call(this,e)}});q(a,"mixins/geometry.js",[],function(){return{getAngleBetweenPoints:function(g,e){return Math.atan2(e.x-g.x,e.y-g.y)},getCenterOfPoints:function(g){var e= g.reduce(function(e,g){e.x+=g.x;e.y+=g.y;return e},{x:0,y:0});return{x:e.x/g.length,y:e.y/g.length}},getDistanceBetweenPoints:function(g,e){return Math.sqrt(Math.pow(e.x-g.x,2)+Math.pow(e.y-g.y,2))}}});q(a,"mixins/geometry-circles.js",[a["mixins/geometry.js"]],function(g){function e(b,c){c=Math.pow(10,c);return Math.round(b*c)/c}function f(b){if(0>=b)throw Error("radius of circle must be a positive number.");return Math.PI*b*b}function k(b,c){return b*b*Math.acos(1-c/b)-(b-c)*Math.sqrt(c*(2*b-c))} function a(b,c){var h=u(b,c),v=b.r,f=c.r,g=[];if(hMath.abs(v-f)){v*=v;var a=(v-f*f+h*h)/(2*h);f=Math.sqrt(v-a*a);v=b.x;g=c.x;b=b.y;var k=c.y;c=v+a*(g-v)/h;a=b+a*(k-b)/h;b=f/h*-(k-b);h=f/h*-(g-v);g=[{x:e(c+b,14),y:e(a-h,14)},{x:e(c-b,14),y:e(a+h,14)}]}return g}function n(b){return b.reduce(function(b,e,f,g){g=g.slice(f+1).reduce(function(b,c,g){var h=[f,g+f+1];return b.concat(a(e,c).map(function(b){b.indexes=h;return b}))},[]);return b.concat(g)},[])}function y(b,c){return u(b,c)<=c.r+1e-10} function w(b,c){return!c.some(function(c){return!y(b,c)})}function x(b){return n(b).filter(function(c){return w(c,b)})}var r=g.getAngleBetweenPoints,t=g.getCenterOfPoints,u=g.getDistanceBetweenPoints;return{getAreaOfCircle:f,getAreaOfIntersectionBetweenCircles:function(b){var c=x(b);if(12*h&&(a=2*h);if(!c||c.width>a)c={r:h,largeArc:a>h?1:0,width:a,x:e.x,y:e.y};return c},null);if(h){var a=h.r;c.arcs.push(["A",a,a,0,h.largeArc,1,h.x,h.y]);c.startPoint=e}return c},{startPoint:f,arcs:[]}).arcs;if(0!==c.length&&1!==c.length){c.unshift(["M",f.x,f.y]);var g={center:e,d:c}}}return g},getCircleCircleIntersection:a,getCirclesIntersectionPoints:n, getCirclesIntersectionPolygon:x,getCircularSegmentArea:k,getOverlapBetweenCircles:function(b,c,h){var a=0;hx;x++){f.sort(g);var r=f[f.length-1],t=a(f),u=w(t,r,2,-1);u.fx=f[f.length-2].fx?u.fx>r.fx?(t=w(t,r,.5,.5),f=t.fx=c)throw Error("a must be smaller than b.");if(0m;){e=(c-a)/2;g=a+e;var I=b(g);0=p?d:x(ab)a.left=b; if(!z(a.right)||a.rightd)a.top=d;if(!z(a.bottom)||a.bottom