if(!_.venn){_.venn=1;(function($){var mT=function(a){function b(a){a.I(4294967295)}$.Yq.call(this);this.Fa("venn.intersections");this.Ba=a;a={};$.T(a,[["fill",0,8256],["stroke",0,8256],["hatchFill",0,8256],["labels",0,0],["markers",0,0]]);this.ca=new $.Yx(this,a,$.Zl);this.ca.pa("markersFactoryConstructor",$.cy);this.ca.pa("markersAfterInitCallback",$.ey);this.ca.pa("labelsFactoryConstructor",$.$x);this.ca.pa("labelsAfterInitCallback",function(a){$.L(a,this.Zd,this)});a={};$.T(a,[["fill",0,8192],["stroke",0,8192],["hatchFill",0,8192],
["labels",0,0],["markers",0,0]]);this.xa=new $.Yx(this,a,$.po);this.xa.pa("labelsFactoryConstructor",$.$x);this.xa.pa("markersFactoryConstructor",$.cy);this.Ca=new $.Yx(this,a,$.qo);this.Ca.pa("labelsFactoryConstructor",$.$x);this.Ca.pa("markersFactoryConstructor",$.cy);this.xa.pa("labelsAfterInitCallback",b);this.xa.pa("markersAfterInitCallback",b);this.Ca.pa("labelsAfterInitCallback",b);this.Ca.pa("markersAfterInitCallback",b)},ufa=function(a,b){var c=0;var d=d||{};var e=d.IH||100;d=d.goa||1E-10;
var f=a(c),h=a(b),k=b-c;if(0<f*h)throw"Initial points must have opposite signs";if(0===f)return c;if(0===h)return b;for(h=0;h<e;++h){k/=2;var l=c+k,m=a(l);0<=m*f&&(c=l);if(Math.abs(k)<d||0===m)return l}return c+k},nT=function(a){for(var b=Array(a),c=0;c<a;++c)b[c]=0;return b},oT=function(a,b){return(0,$.Wa)(nT(a),function(){return nT(b)})},pT=function(a,b){for(var c=0,d=0;d<a.length;++d)c+=a[d]*b[d];return c},qT=function(a){return Math.sqrt(pT(a,a))},rT=function(a,b){for(var c=0;c<b.length;++c)a[c]=
-1*b[c]},sT=function(a,b,c,d,e){for(var f=0;f<a.length;++f)a[f]=b*c[f]+d*e[f]},vfa=function(a,b,c,d,e){function f(f,m,q){for(var u=0;16>u;++u)if(e=(f+m)/2,sT(d.x,1,c.x,e,b),l=d.Je=a(d.x,d.Ak),p=pT(d.Ak,b),l>h+r*e*k||l>=q)m=e;else{if(Math.abs(p)<=-t*k)return e;0<=p*(m-f)&&(m=f);f=e;q=l}return 0}var h=c.Je,k=pT(c.Ak,b),l=h,m=h,p=k,q=0;e=e||1;var r=r||1E-6;var t=t||.1;for(var u=0;10>u;++u){sT(d.x,1,c.x,e,b);l=d.Je=a(d.x,d.Ak);p=pT(d.Ak,b);if(l>h+r*e*k||u&&l>=m)return f(q,e,m);if(Math.abs(p)<=-t*k)break;
if(0<=p)return f(e,q,l);m=l;q=e;e*=2}return e},wfa=function(a,b,c){var d={x:b.slice(),Je:0,Ak:b.slice()},e={x:b.slice(),Je:0,Ak:b.slice()},f=b.slice(),h=1;c=c||{};var k=c.IH||20*b.length;d.Je=a(d.x,d.Ak);b=d.Ak.slice();rT(b,d.Ak);for(var l=0;l<k;++l){h=vfa(a,b,d,e,h);c.history&&c.history.push({x:d.x.slice(),Je:d.Je,Ak:d.Ak.slice(),alpha:h});if(h){sT(f,1,e.Ak,-1,d.Ak);sT(b,Math.max(0,pT(f,e.Ak)/pT(d.Ak,d.Ak)),b,-1,e.Ak);var m=d;d=e;e=m}else rT(b,d.Ak);if(1E-5>=qT(d.Ak))break}c.history&&c.history.push({x:d.x.slice(),
Je:d.Je,Ak:d.Ak.slice(),alpha:h});return d},tT=function(a,b,c){function d(a,b){return a.Je-b.Je}function e(a){for(var b=0;b<a.length;b++)w[v][b]=a[b];w[v].Je=a.Je}c=c||{};var f=c.IH||200*b.length,h=c.Zna||1.05,k=c.ioa||.001,l=c.v2||1E-6,m=c.v2||1E-5,p=void 0!==c.Gha?c.Gha:1,q=void 0!==c.Eba?c.Eba:2,r=void 0!==c.tha?c.tha:-.5,t=void 0!==c.aia?c.aia:.5,u,v=b.length,w=Array(v+1);w[0]=b;w[0].Je=a(b);for(var x=w[0].id=0;x<v;++x){var y=b.slice();y[x]=y[x]?y[x]*h:k;w[x+1]=y;w[x+1].Je=a(y);w[x+1].id=x+1}h=
b.slice();k=b.slice();y=b.slice();b=b.slice();for(var B=0;B<f;++B){w.sort(d);c.history&&(x=(0,$.Wa)(w,function(a){var b=a.slice();b.Je=a.Je;b.id=a.id;return b}),x.sort(function(a,b){return a.id-b.id}),c.history.push({x:w[0].slice(),Je:w[0].Je,foa:x}));for(x=u=0;x<v;++x)u=Math.max(u,Math.abs(w[0][x]-w[1][x]));if(Math.abs(w[0].Je-w[v].Je)<l&&u<m)break;for(x=0;x<v;++x){for(u=h[x]=0;u<v;++u)h[x]+=w[u][x];h[x]/=v}x=w[v];sT(k,1+p,h,-p,x);k.Je=a(k);if(k.Je<w[0].Je)sT(b,1+q,h,-q,x),b.Je=a(b),b.Je<k.Je?e(b):
e(k);else if(k.Je>=w[v-1].Je){if(u=!1,k.Je>x.Je?(sT(y,1+r,h,-r,x),y.Je=a(y),y.Je<x.Je?e(y):u=!0):(sT(y,1-r*p,h,r*p,x),y.Je=a(y),y.Je<k.Je?e(y):u=!0),u){if(1<=t)break;for(x=1;x<w.length;++x)sT(w[x],1-t,w[0],t,w[x]),w[x].Je=a(w[x])}}else e(k)}w.sort(d);return{Je:w[0].Je,x:w[0]}},xT=function(a,b){var c=xfa(a),d=(0,$.Ye)(c,function(b){a:{for(var c=0;c<a.length;++c)if(uT(b,a[c])>a[c].Wb+1E-10){b=!1;break a}b=!0}return b}),e=0,f=0,h=[],k;if(1<d.length){var l=vT(d);for(k=0;k<d.length;++k){var m=d[k];m.angle=
Math.atan2(m.x-l.x,m.y-l.y)}d.sort(function(a,b){return b.angle-a.angle});l=d[d.length-1];for(k=0;k<d.length;++k){m=d[k];f+=(l.x+m.x)*(m.y-l.y);for(var p={x:(m.x+l.x)/2,y:(m.y+l.y)/2},q=null,r=0;r<m.nN.length;++r)if(-1<l.nN.indexOf(m.nN[r])){var t=a[m.nN[r]],u=Math.atan2(l.x-t.x,l.y-t.y),v=u-Math.atan2(m.x-t.x,m.y-t.y);0>v&&(v+=2*Math.PI);u-=v/2;u=uT(p,{x:t.x+t.Wb*Math.sin(u),y:t.y+t.Wb*Math.cos(u)});if(null===q||q.width>u)q={cn:t,width:u,Th:m,Lk:l}}null!==q&&(h.push(q),e+=wT(q.cn.Wb,q.width),l=m)}}else{l=
a[0];for(k=1;k<a.length;++k)a[k].Wb<l.Wb&&(l=a[k]);e=!1;for(k=0;k<a.length;++k)if(uT(a[k],l)>Math.abs(l.Wb-a[k].Wb)){e=!0;break}e?e=f=0:(e=l.Wb*l.Wb*Math.PI,h.push({cn:l,Th:{x:l.x,y:l.y+l.Wb},Lk:{x:l.x-1E-10,y:l.y+l.Wb},width:2*l.Wb}))}f/=2;b&&(b.QB=e+f,b.Kna=e,b.boa=f,b.PB=h,b.Sna=d,b.Tna=c);return e+f},xfa=function(a){for(var b=[],c=0;c<a.length;++c)for(var d=c+1;d<a.length;++d)for(var e=yT(a[c],a[d]),f=0;f<e.length;++f){var h=e[f];h.nN=[c,d];b.push(h)}return b},zT=function(a,b){var c=Math.sqrt(a*
a-b*b);return b*c+a*a*Math.atan2(b,c)},wT=function(a,b){return zT(a,b-a)-zT(a,-a)},uT=function(a,b){return Math.sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y))},AT=function(a,b,c){return c>=a+b?0:c<=Math.abs(a-b)?Math.PI*Math.min(a,b)*Math.min(a,b):wT(a,a-(c*c-b*b+a*a)/(2*c))+wT(b,b-(c*c-a*a+b*b)/(2*c))},yT=function(a,b){var c=uT(a,b),d=a.Wb,e=b.Wb;if(c>=d+e||c<=Math.abs(d-e))return[];var f=(d*d-e*e+c*c)/(2*c);e=Math.sqrt(d*d-f*f);d=a.x+f*(b.x-a.x)/c;f=a.y+f*(b.y-a.y)/c;var h=e/c*-(b.y-a.y);c=e/c*-(b.x-
a.x);return[{x:d+h,y:f-c},{x:d-h,y:f+c}]},vT=function(a){for(var b={x:0,y:0},c=0;c<a.length;++c)b.x+=a[c].x,b.y+=a[c].y;b.x/=a.length;b.y/=a.length;return b},Afa=function(a){var b=b||{};b.IH=b.IH||500;var c=b.Rna||yfa;a=zfa(a);var d=c(a);c=[];var e=[];for(f in d)d.hasOwnProperty(f)&&(c.push(d[f].x),c.push(d[f].y),e.push(f));b=tT(function(b){for(var c={},f=0;f<e.length;++f){var h=e[f];c[h]={x:b[2*f],y:b[2*f+1],Wb:d[h].Wb}}return BT(c,a)},c,b).x;for(c=0;c<e.length;++c){var f=e[c];d[f].x=b[2*c];d[f].y=
b[2*c+1]}return d},CT=function(a,b,c){return Math.min(a,b)*Math.min(a,b)*Math.PI<=c+1E-10?Math.abs(a-b):ufa(function(d){return AT(a,b,d)-c},a+b)},zfa=function(a){a=a.slice();var b=[],c={},d;for(d=0;d<a.length;++d){var e=a[d];if(1==e.Xh.length)b.push(e.Xh[0]);else if(2==e.Xh.length){var f=e.Xh[0];var h=e.Xh[1];c[[f,h]]=!0;c[[h,f]]=!0}}for(d=0;d<b.length;++d)for(f=b[d],e=d+1;e<b.length;++e)h=b[e],[f,h]in c||a.push({Xh:[f,h],size:0,jD:window.NaN});return a},Bfa=function(a,b,c){var d=oT(b.length,b.length),
e=oT(b.length,b.length);a=(0,$.Ye)(a,function(a){return 2==a.Xh.length});(0,$.Wa)(a,function(a){var f=c[a.Xh[0]],k=c[a.Xh[1]],l=CT(Math.sqrt(b[f].size/Math.PI),Math.sqrt(b[k].size/Math.PI),a.size);d[f][k]=d[k][f]=l;l=0;a.size+1E-10>=Math.min(b[f].size,b[k].size)?l=1:1E-10>=a.size&&(l=-1);e[f][k]=e[k][f]=l});return{hca:d,Pba:e}},yfa=function(a,b){var c=Cfa(a);if(8<=a.length){var d=Dfa(a,b),e=BT(d,a),f=BT(c,a);e+1E-8<f&&(c=d)}return c},Dfa=function(a,b){function c(a,b){var c=l,d=0,e;for(e=0;e<b.length;++e)b[e]=
0;for(e=0;e<c.length;++e)for(var f=a[2*e],h=a[2*e+1],k=e+1;k<c.length;++k){var p=a[2*k],q=a[2*k+1],r=c[e][k],t=m[e][k],Q=(p-f)*(p-f)+(q-h)*(q-h),S=Math.sqrt(Q);Q-=r*r;0<t&&S<=r||0>t&&S>=r||(d+=2*Q*Q,b[2*e]+=4*Q*(f-p),b[2*e+1]+=4*Q*(h-q),b[2*k]+=4*Q*(p-f),b[2*k+1]+=4*Q*(q-h))}return d}b=b||{};var d=b.doa||10,e=[],f={},h;for(h=0;h<a.length;++h){var k=a[h];1==k.Xh.length&&(f[k.Xh[0]]=e.length,e.push(k))}h=Bfa(a,e,f);var l=h.hca,m=h.Pba,p=qT((0,$.Wa)(l,qT))/l.length;l=(0,$.Wa)(l,function(a){return(0,$.Wa)(a,
function(a){return a/p})});for(h=0;h<d;++h){f=[];for(k=0;k<2*l.length;k++)f.push(1/(k+1)*Math.abs(Math.sin(h)));f=wfa(c,f,b);if(!q||f.Je<q.Je)var q=f}d=q.x;q={};for(h=0;h<e.length;++h)f=e[h],q[f.Xh[0]]={x:d[2*h]*p,y:d[2*h+1]*p,Wb:Math.sqrt(f.size/Math.PI)};return q},Cfa=function(a){function b(a,b){return b.size-a.size}function c(a){return a.set in r}function d(a,b){e[b].x=a.x;e[b].y=a.y;r[b]=!0}for(var e={},f={},h,k=0;k<a.length;++k){var l=a[k];1==l.Xh.length&&(h=l.Xh[0],e[h]={x:1E10,y:1E10,eoa:e.length,
size:l.size,Wb:Math.sqrt(l.size/Math.PI)},f[h]=[])}a=(0,$.Ye)(a,function(a){return 2==a.Xh.length});for(k=0;k<a.length;++k){l=a[k];var m=$.n(l.weight)?l.weight:1,p=l.Xh[0],q=l.Xh[1];l.size+1E-10>=Math.min(e[p].size,e[q].size)&&(m=0);f[p].push({set:q,size:l.size,weight:m});f[q].push({set:p,size:l.size,weight:m})}l=[];for(h in f)if(f.hasOwnProperty(h)){for(k=m=0;k<f[h].length;++k)m+=f[h][k].size*f[h][k].weight;l.push({set:h,size:m})}l.sort(b);var r={};d({x:0,y:0},l[0].set);for(k=1;k<l.length;++k){m=
l[k].set;var t=(0,$.Ye)(f[m],c);h=e[m];t.sort(b);if(0===t.length)throw"ERROR: missing pairwise overlap information";p=[];for(q=0;q<t.length;++q){var u=e[t[q].set],v=CT(h.Wb,u.Wb,t[q].size);p.push({x:u.x+v,y:u.y});p.push({x:u.x-v,y:u.y});p.push({y:u.y+v,x:u.x});p.push({y:u.y-v,x:u.x});for(var w=q+1;w<t.length;++w){var x=e[t[w].set],y=CT(h.Wb,x.Wb,t[w].size);x=yT({x:u.x,y:u.y,Wb:v},{x:x.x,y:x.y,Wb:y});for(y=0;y<x.length;++y)p.push(x[y])}}h=1E50;t=p[0];for(q=0;q<p.length;++q)e[m].x=p[q].x,e[m].y=p[q].y,
u=BT(e,a),u<h&&(h=u,t=p[q]);d(t,m)}return e},BT=function(a,b){function c(b){return(0,$.Wa)(b,function(b){return a[b]})}for(var d=0,e=0;e<b.length;++e){var f=b[e];if(1!=f.Xh.length){if(2==f.Xh.length){var h=a[f.Xh[0]];var k=a[f.Xh[1]];h=AT(h.Wb,k.Wb,uT(h,k))}else h=xT(c(f.Xh));d+=($.n(f.weight)?f.weight:1)*(h-f.size)*(h-f.size)}}return d},Efa=function(a,b){a.sort(function(a,b){return b.Wb-a.Wb});var c;if(0<a.length){var d=a[0].x,e=a[0].y;for(c=0;c<a.length;++c)a[c].x-=d,a[c].y-=e}if(1<a.length)for(c=
Math.atan2(a[1].x,a[1].y)-b,d=Math.cos(c),e=Math.sin(c),c=0;c<a.length;++c){var f=a[c].x;var h=a[c].y;a[c].x=d*f-e*h;a[c].y=e*f+d*h}if(2<a.length){for(c=Math.atan2(a[2].x,a[2].y)-b;0>c;)c+=2*Math.PI;for(;c>2*Math.PI;)c-=2*Math.PI;if(c>Math.PI)for(d=a[1].y/(1E-10+a[1].x),c=0;c<a.length;++c)e=(a[c].x+d*a[c].y)/(1+d*d),a[c].x=2*e-a[c].x,a[c].y=2*e*d-a[c].y}},Ifa=function(a){function b(a){a.parent!==a&&(a.parent=b(a.parent));return a.parent}function c(a,c){b(a).parent=b(c)}a=(0,$.Wa)(a,function(a){return a.parent=
a});for(var d=0;d<a.length;++d)for(var e=d+1;e<a.length;++e)uT(a[d],a[e])+1E-10<a[d].Wb+a[e].Wb&&c(a[e],a[d]);e={};for(d=0;d<a.length;++d){var f=b(a[d]).parent.t4;f in e||(e[f]=[]);e[f].push(a[d])}(0,$.Wa)(a,function(a){delete a.parent});a=[];for(f in e)e.hasOwnProperty(f)&&a.push(e[f]);return a},DT=function(a){function b(b){var c=Math.max.apply(null,(0,$.Wa)(a,function(a){return a[b]+a.Wb})),e=Math.min.apply(null,(0,$.Wa)(a,function(a){return a[b]-a.Wb}));return{max:c,min:e}}return{zq:b("x"),Ws:b("y")}},
Jfa=function(a){function b(a,b,c){if(a){var e=a.Za;if(b)b=h.zq.max-e.zq.min+k;else{b=h.zq.max-e.zq.max;var f=(e.zq.max-e.zq.min)/2-(h.zq.max-h.zq.min)/2;0>f&&(b+=f)}c?c=h.Ws.max-e.Ws.min+k:(c=h.Ws.max-e.Ws.max,f=(e.Ws.max-e.Ws.min)/2-(h.Ws.max-h.Ws.min)/2,0>f&&(c+=f));for(e=0;e<a.length;++e)a[e].x+=b,a[e].y+=c,d.push(a[e])}}var c=Math.PI/2;null===c&&(c=Math.PI/2);var d=[];for(f in a)if(a.hasOwnProperty(f)){var e=a[f];d.push({x:e.x,y:e.y,Wb:e.Wb,t4:f})}var f=Ifa(d);for(a=0;a<f.length;++a)Efa(f[a],
c),e=DT(f[a]),f[a].size=(e.zq.max-e.zq.min)*(e.Ws.max-e.Ws.min),f[a].Za=e;f.sort(function(a,b){return b.size-a.size});d=f[0];var h=d.Za,k=(h.zq.max-h.zq.min)/50;for(c=1;c<f.length;)b(f[c],!0,!1),b(f[c+1],!1,!0),b(f[c+2],!0,!0),c+=3,h=DT(d);c={};for(a=0;a<d.length;++a)c[d[a].t4]=d[a];return c},ET=function(a,b,c){var d=b[0].Wb-uT(b[0],a),e;for(e=1;e<b.length;++e){var f=b[e].Wb-uT(b[e],a);f<=d&&(d=f)}for(e=0;e<c.length;++e)f=uT(c[e],a)-c[e].Wb,f<=d&&(d=f);return d},FT=function(a,b){var c=[],d;for(d=
0;d<a.length;++d){var e=a[d];c.push({x:e.x,y:e.y});c.push({x:e.x+e.Wb/2,y:e.y});c.push({x:e.x-e.Wb/2,y:e.y});c.push({x:e.x,y:e.y+e.Wb/2});c.push({x:e.x,y:e.y-e.Wb/2})}e=c[0];var f=ET(c[0],a,b);for(d=1;d<c.length;++d){var h=ET(c[d],a,b);h>=f&&(e=c[d],f=h)}d=tT(function(c){return-1*ET({x:c[0],y:c[1]},a,b)},[e.x,e.y],{IH:500,v2:1E-10}).x;c={x:d[0],y:d[1]};e=!0;for(d=0;d<a.length;++d)if(uT(c,a[d])>a[d].Wb){e=!1;break}for(d=0;d<b.length;++d)if(uT(c,b[d])<b[d].Wb){e=!1;break}e||(1==a.length?c={x:a[0].x,
y:a[0].y}:(d={},xT(a,d),0===d.PB.length?c={x:0,y:-1E3,gca:!0}:1==d.PB.length?c={x:d.PB[0].cn.x,y:d.PB[0].cn.y}:c=b.length?FT(a,[]):vT((0,$.Wa)(d.PB,function(a){return a.Th}))));return c},GT=function(a,b){function c(a){a.I(4294967295)}$.ox.call(this);this.Fa("venn");this.Nd=null;this.data(a||null,b);this.b=[];this.Ea=this.Vl=null;this.g={};this.j=this.D=null;this.state=new $.Vw(this);this.f=null;$.eu(this,this,this.rg,this.Gg,null,this.rg,null,this.Cj);var d={};$.T(d,[["fill",16896,1],["hatchFill",
16896,1],["stroke",16896,1],["labels",0,0],["markers",0,0]]);this.ca=new $.Yx(this,d,$.Zl);this.ca.Fa(this.ma);$.W(this,"normal",this.ca);this.ca.pa("labelsAfterInitCallback",$.dy);this.ca.pa("markersAfterInitCallback",$.ey);d={};$.T(d,[["fill",16384,1],["hatchFill",16384,1],["stroke",16384,1],["labels",0,0],["markers",0,0]]);this.xa=new $.Yx(this,d,$.po);$.W(this,"hovered",this.xa);this.Ca=new $.Yx(this,d,$.qo);$.W(this,"selected",this.Ca);this.xa.pa("markersAfterInitCallback",c);this.Ca.pa("markersAfterInitCallback",
c);this.ca.pa("labelsFactoryConstructor",$.Zx);this.xa.pa("labelsFactoryConstructor",$.$x);this.Ca.pa("labelsFactoryConstructor",$.$x);this.ca.pa("markersFactoryConstructor",$.by);this.xa.pa("markersFactoryConstructor",$.cy);this.Ca.pa("markersFactoryConstructor",$.cy);$.T(this.ua,[["dataSeparator",4096,1]])},HT=function(a,b){if(!b||b.target!=a.Gf()){var c=a.aa().o("tooltip");c.Oc(!0);var d=a.Ec();b&&$.Aw(c,b.clientX,b.clientY,d)}},IT=function(a){if(a.J(16384))for(var b=a.vc(),c=0;c<a.b.length;c++){var d=
a.b[c];b.select(d.jD);d=d.Xh;var e=!1,f=a.Xa(),h=$.Vl("fill",1,!1);if(1==d.length){var k=a.cc().nc(c);b.o("paletteFill",k);var l=d[0];a.g[l].aoa=k;a.g[l].J3=h(a,$.Zl,!0)}else{e=[];f={};for(h=0;h<d.length;h++)l=d[h],k=a.g[l],e.push(k.J3),f[l]=k.J3;b.o("parentColors",e);b.o("parentColorsMap",f);e=!0;f=a.Nt().Xa()}d=b.get("normal");d=$.Ro($.n(d)?d.hatchFill:void 0,b.get("hatchFill"),a.oe().nc(c));b.o("hatchFillPaletteFill",d);b.o("isIntersection",e);b.o("paletteMarkerType",a.sf().nc(c));b.o("tooltip",
f)}},JT=function(a){if(a.length){for(var b,c=0;c<a.length;c++){var d=$.Vb(a[c]);b=b?$.Cl(b,d):d}return b||"black"}return"black"},KT=function(a,b,c){b=b.PB;if(b.length)if(1==b.length)b=b[0].cn,a.moveTo(b.x+b.Wb+c.left,b.y+c.top).arcTo(b.Wb,b.Wb,0,360);else if(1<b.length){a.moveTo(b[0].Lk.x+c.left,b[0].Lk.y+c.top);for(var d=0;d<b.length;++d){var e=b[d];a.kf(e.Th.x+c.left,e.Th.y+c.top,e.cn.Wb,e.cn.Wb,e.width>e.cn.Wb,!0)}a.close()}},LT=function(a,b,c){var d=c.o("marker");if(d&&!c.o("isMissing")){var e=
!!c.o("isIntersection"),f=e?a.Nt():a,h=a.Sa().Eb();b=$.Xl(b);var k=!!(b&$.po);b=!!(b&$.qo);var l=c.get("normal");l=$.n(l)?l.marker:void 0;var m=c.get("hovered");m=$.n(m)?m.marker:void 0;var p=c.get("selected");p=$.n(p)?p.marker:void 0;var q=$.Ro(l,c.get("marker"),{});m=$.Ro(m,c.get("hoverMarker"));l=$.Ro(p,c.get("selectMarker"));b?$.Sc(q,l||{}):k&&$.Sc(q,m||{});p=q;m=b?l:k?m:q;f=b?f.selected().Eb():k?f.mb().Eb():f.Sa().Eb();l=b?a.selected().Eb():k?a.mb().Eb():a.Sa().Eb();q=m&&$.n(m.enabled)?m.enabled:
null;var r=f.enabled(),t=!1;null===q?null===r?t=h.enabled():t=r:t=q;t?(h=a.Sa().Eb().F(),k=b?a.selected().Eb().F():k?a.mb().Eb().F():{},a=e?a.Nt().Sa().Eb().F():{},b=e?f.F():{},$.Sc(h,k,a,b,p),q=h,$.n(q.type)||(q.type=f.Na()||l.Na()||c.o("paletteMarkerType")),$.n(q.fill)||(a=c.o("paletteFill"),e&&(c=c.o("parentColors"),a=JT(c),a.opacity=1),q.fill=f.Gm()||l.Gm()||a),d.oi(),d.enabled(!0),$.Sx(d,f),d.kd(q,m)):($.Sx(d,f),d.enabled(!1));d.$()}},MT=function(a,b){return new GT(a,b)};$.H(mT,$.Yq);
$.xq(mT,["fill","stroke","hatchFill","labels","markers"],"normal");$.g=mT.prototype;$.g.qa=$.Yq.prototype.qa|274496;$.g.Sa=function(a){return $.n(a)?(this.ca.K(a),this):this.ca};$.g.mb=function(a){return $.n(a)?(this.xa.K(a),this):this.xa};$.g.selected=function(a){return $.n(a)?(this.Ca.K(a),this):this.Ca};$.g.Zd=function(){this.ta(4096)};$.g.GH=function(){this.Sa().labels().I(4294967295);this.mb().labels().I(4294967295);this.selected().labels().I(4294967295)};$.g.bp=function(){this.ta(262144)};
$.g.Xa=function(a){if(!this.gb){this.gb=new $.iw(0);var b=this.Ba.Xa();$.W(this,"tooltip",this.gb);this.gb.parent(b);this.gb.Aa(this.Ba)}return $.n(a)?(this.gb.K(a),this):this.gb};$.g.sg=function(){$.W(this,"normal",this.ca);$.W(this,"hovered",this.xa);$.W(this,"selected",this.Ca)};$.g.F=function(){var a=mT.u.F.call(this);a.normal=this.ca.F();a.hovered=this.xa.F();a.selected=this.Ca.F();a.tooltip=this.Xa().F();return a};
$.g.X=function(a,b){mT.u.X.call(this,a,b);this.ca.ia(!!b,a);this.ca.ia(!!b,a.normal);this.xa.ia(!!b,a.hovered);this.Ca.ia(!!b,a.selected);this.Xa().ia(!!b,a.tooltip)};$.g.R=function(){$.td(this.ca,this.xa,this.Ca,this.gb);mT.u.R.call(this);this.gb=this.Ca=this.xa=this.ca=null};var NT=mT.prototype;NT.normal=NT.Sa;NT.hovered=NT.mb;NT.selected=NT.selected;NT.tooltip=NT.Xa;$.H(GT,$.ox);$.xq(GT,["fill","stroke","hatchFill","labels","markers"],"normal");$.g=GT.prototype;$.g.qa=$.ox.prototype.qa;$.g.sa=$.ox.prototype.sa|61440;$.g.Sa=function(a){return $.n(a)?(this.ca.K(a),this):this.ca};$.g.mb=function(a){return $.n(a)?(this.xa.K(a),this):this.xa};$.g.selected=function(a){return $.n(a)?(this.Ca.K(a),this):this.Ca};$.g.Na=function(){return"venn"};$.g.Te=function(){return[this]};$.g.hk=function(){return!1};$.g.Qs=function(){return!0};
$.g.Uk=function(a){var b=this.aa();this.Vl.tm(a,b.o("shapes"))};var OT={};$.gq(OT,0,"dataSeparator",$.oq);$.U(GT,OT);$.g=GT.prototype;$.g.Rg=function(){return!0};$.g.aa=function(){return this.Nd||(this.Nd=this.oa.aa())};
$.g.zc=function(a,b,c,d,e,f,h){f=this.aa().o("isIntersection")?this.Nt():this;e=0==b?this.ca:1==b?this.xa:this.Ca;f=0==b?f.Sa():1==b?f.mb():f.selected();if(h)return e.i(a);h=c.get(0==b?"normal":1==b?"hovered":"selected");a=$.Ro($.n(h)?h[a]:void 0,c.get($.$l(b,a)),f.dd(a),e.dd(a),f.mf(a),e.mf(a));$.n(a)&&(a=d(a));return a};$.g.ph=function(){return this.aa().o("hatchFillPaletteFill")||$.$b("diagonal-brick")};$.g.Fi=function(){var a=this.aa(),b=this.ph();return{index:a.la(),sourceHatchFill:b,iterator:a}};
$.g.Ae=function(a){var b=this.aa();a=a||b.o("paletteFill")||this.i("color")||"blue";a={index:b.la(),sourceColor:a,iterator:b};b.o("isIntersection")&&(a.parentColors=b.o("parentColors"),a.parentColorsMap=b.o("parentColorsMap"));return a};$.g.cc=function(a){if($.K(a,$.ys))return this.Ic($.ys,a),this;if($.K(a,$.vs))return this.Ic($.vs,a),this;$.D(a)&&"range"==a.type?this.Ic($.ys):($.D(a)||null==this.Ea)&&this.Ic($.vs);return $.n(a)?(this.Ea.K(a),this):this.Ea};
$.g.Ic=function(a,b){if($.K(this.Ea,a))b&&this.Ea.K(b);else{var c=!!this.Ea;$.qd(this.Ea);this.Ea=new a;$.W(this,"palette",this.Ea);b&&this.Ea.K(b);$.L(this.Ea,this.If,this);c&&this.B(528,1)}};$.g.oe=function(a){this.Yc||(this.Yc=new $.ws,$.W(this,"hatchFillPalette",this.Yc),$.L(this.Yc,this.If,this));return $.n(a)?(this.Yc.K(a),this):this.Yc};$.g.sf=function(a){this.Be||(this.Be=new $.xs,$.W(this,"markerPalette",this.Be),$.L(this.Be,this.If,this));return $.n(a)?(this.Be.K(a),this):this.Be};
$.g.If=function(a){$.X(a,2)&&this.B(528,1)};$.g.Zd=function(a){$.X(a,1)&&this.B(8192,1)};$.g.bp=function(a){$.X(a,1)&&this.B(33280,65)};
$.g.bm=function(a,b){var c=[];if(this.Ej())return c;this.ob();IT(this);for(var d=this.aa().reset(),e;d.advance();)if(!d.o("isMissing")){e=d.la();var f=d.get("legendItem")||{},h=null;$.E(b)&&(h=this.Ec(),h.b=this.Rd(e),h=b.call(h,h));$.z(h)||(h=String($.n(d.get("name"))?d.get("name"):d.get("x")));var k=$.Vl("fill",1,!1),l=$.Vl("stroke",2,!1),m=$.Vl("hatchFill",3,!1);if(d.o("isIntersection")){var p=d.o("parentColors");p=JT(p)}h={enabled:!0,meta:{pointIndex:e,pointValue:d.get("value"),series:this},iconType:this.Sa().Eb().enabled()?
d.o("paletteMarkerType"):"square",text:h,iconStroke:d.get("stroke")||l(this,$.Zl,!0),iconFill:d.get("fill")||p||k(this,$.Zl,!0),iconHatchFill:d.get("hatchFill")||m(this,$.Zl,!0)};$.Sc(h,f);h.sourceUid=$.oa(this);h.sourceKey=e;c.push(h)}return c};$.g.ts=function(){return!0};$.g.er=function(a,b){var c=a.si();if(!a||null!=c||(0,window.isNaN)(c))if(c=$.mo(b.domTarget))c.W=this};$.g.bq=function(a,b){var c=a.si();if(!a||null!=c||(0,window.isNaN)(c))if(c=$.mo(b.domTarget))c.W=this};
$.g.aq=function(a,b){var c=a.si();if(!a||null!=c||(0,window.isNaN)(c))if(c=$.mo(b.domTarget))c.W=this};$.g.data=function(a,b){if($.n(a)){if(a){var c=a.title||a.caption;c&&this.title(c);a.rows&&(a=a.rows)}this.jg!==a&&(this.jg=a,$.qd(this.jd),$.K(a,$.pr)?this.oa=this.jd=a.tj():$.K(a,$.zr)?this.oa=this.jd=a.ie():this.oa=(this.jd=new $.zr($.A(a)||$.z(a)?a:null,b)).ie(),$.L(this.oa,this.Id,this),this.B(4356,1));return this}return this.oa};$.g.Id=function(){this.B(4352,1)};
$.g.vc=function(){return this.Nd=this.oa.aa()};$.g.aca=function(a,b){return a.Xh.length-b.Xh.length};$.g.Nt=function(a){this.f||(this.f=new mT(this),this.f.sg(),$.L(this.f,this.Mea,this));return $.n(a)?(this.f.K(a),this):this.f};$.g.Mea=function(a){var b=0;$.X(a,4096)&&(b|=8192);$.X(a,262144)&&(b|=32768);$.X(a,8192)&&(b|=16384);$.X(a,64)&&(b|=512);this.B(b,1)};$.g.ig=function(a){a=$.Y.prototype.ig.call(this,a);var b=$.mo(a.domTarget);a.pointIndex=$.N(b.index);return a};
$.g.Ig=function(a){var b;"pointIndex"in a?b=a.pointIndex:"labelIndex"in a?b=a.labelIndex:"markerIndex"in a&&(b=a.markerIndex);b=$.N(b);a.pointIndex=b;var c=a.type;switch(c){case "mouseout":c="pointmouseout";break;case "mouseover":c="pointmouseover";break;case "mousemove":c="pointmousemove";break;case "mousedown":c="pointmousedown";break;case "mouseup":c="pointmouseup";break;case "click":c="pointclick";break;case "dblclick":c="pointdblclick";break;default:return null}var d=this.data().aa();d.select(b)||
d.reset();return{type:c,actualTarget:a.target,iterator:d,sliceIndex:b,pointIndex:b,target:this,originalEvent:a,point:this.Rd(b)}};$.g.Rd=function(a){return new $.sA(this,a)};$.g.Hi=function(a,b){if(!this.enabled())return this;if($.A(a)){for(var c=$.ex(this.state,$.po),d=0;d<c.length;d++)$.Aa(a,c[d])||this.state.Hh($.po,c[d]);$.cx(this.state,a);$.n(b)&&HT(this,b)}else $.ea(a)&&(this.Pd(),$.cx(this.state,a),$.n(b)&&HT(this,b));return this};$.g.Ek=function(){this.enabled()&&this.state.xh($.po)};
$.g.Oj=function(a){$.n(a)?this.Hi(a):this.Ek();return this};$.g.Pd=function(a){var b;(b=$.Zw(this.state,$.po))||(b=!!(this.state.Nj()&$.po));if(b&&this.enabled()){var c;$.n(a)?c=a:c=this.state.Ac==$.Zl?window.NaN:void 0;this.state.Hh($.po,c)}};$.g.Xj=function(a,b){var c=this.aa();this.Vl.tm(a,c.o("shapes"));this.ce(a,c);LT(this,a,c);return b};$.g.fm=$.ia;$.g.Wp=$.ia;$.g.Fl=function(a){return this.Vc().hoverMode(a)};$.g.Ni=function(a){return this.Vc().selectionMode(a)};
$.g.Mi=function(a,b){var c=!(b&&b.shiftKey);$.A(a)?(b||this.ae(),this.state.xh($.qo,a,c?$.po:void 0)):$.ea(a)&&this.state.xh($.qo,a,c?$.po:void 0);HT(this,b);return this};$.g.iu=function(){this.enabled()&&this.state.xh($.qo)};$.g.select=function(a){if(!this.enabled())return this;$.n(a)?this.Mi(a):this.iu();return this};$.g.ae=function(a){if(this.enabled()){var b;$.n(a)?b=a:b=this.state.Ac==$.Zl?window.NaN:void 0;this.state.Hh($.qo,b)}};$.g.Wq=function(a){return $.$w(this.state,a)};
$.g.Ec=function(a){var b=this.aa();if(!this.de||a)this.de=new $.rw;this.de.Ag(b).mj([this.Rd(b.la()),this]);var c=b.la();a=0;for(var d=$.ex(this.state,$.qo),e=0;e<d.length;e++)b.select(d[e]),a+=b.get("value");b.select(c);c=b.get("x");d=$.n(b.get("name"))?b.get("name"):c;b={x:{value:c,type:"string"},value:{value:b.get("value"),type:"number"},index:{value:b.la(),type:"number"},chart:{value:this,type:""},name:{value:d,type:"string"},isIntersection:{value:!!b.o("isIntersection"),type:"string"},selectedPointsSum:{value:a,
type:"number"}};return $.av(this.de,b)};$.g.ZI=function(a){this.aa().o("tooltip").QO(a.clientX,a.clientY)};
$.g.ob=function(){if(this.J(4096)&&!this.Ej()){this.B(16384);for(var a=this.vc(),b={},c=[],d,e;a.advance();)if(d=a.get("x"),e=a.la(),$.A(d))1==d.length&&(b[String(d[0])]=d),c[e]=d;else{d=String(d);var f=this.i("dataSeparator");f=d.split(f);1==f.length&&(b[d]=d);c[e]=f}for(e=0;e<c.length;e++)if((d=c[e])&&1<d.length)for(f=0;f<d.length;f++)if(!(d[f]in b)){a.select(e);a.o("isMissing",!0);break}this.b.length=0;this.g={};this.j=null;a=this.vc();for(b=this.i("dataSeparator");a.advance();)a.o("isMissing")||
(c=a.get("x"),e=Number(a.get("value")),d=a.la(),e={size:e,jD:d},$.A(c)?(e.Xh=c,1==c.length&&(this.g[c.join(b)]=e)):(c=String(c),d=c.split(b),e.Xh=d,1==d.length&&(this.g[c]=e)),this.b.push(e));$.Ra(this.b,this.aca);IT(this);a=Afa(this.b);this.j=Jfa(a);this.I(4096)}};
$.g.ei=function(a){this.ob();var b;this.Vl||(this.Vl=new $.KA(this,[$.QG,$.RG,$.TG],!0),$.FA(this.Vl,this.La));if(0<a.width&&0<a.height){if(this.J(4)){this.Vl.Wu();var c=this.j;var d=a.width,e=a.height;var f=[];var h=[];for(var k in c)c.hasOwnProperty(k)&&(h.push(k),f.push(c[k]));k=DT(f);c=k.zq;k=k.Ws;var l=Math.min(e/(k.max-k.min),d/(c.max-c.min));d=(d-(c.max-c.min)*l)/2;var m=(e-(k.max-k.min)*l)/2;e={};for(var p=0;p<f.length;++p){var q=f[p];e[h[p]]={Wb:l*q.Wb,x:d+(q.x-c.min)*l,y:m+(q.y-k.min)*l}}f=
this.b;h=[];c={};k=[];for(var r in e)k.push(r),c[r]=[];for(r=0;r<k.length;r++)for(l=e[k[r]],d=r+1;d<k.length;++d)m=e[k[d]],p=uT(l,m),p+m.Wb<=l.Wb+1E-10?c[k[d]].push(k[r]):p+l.Wb<=m.Wb+1E-10&&c[k[r]].push(k[d]);for(r=0;r<f.length;++r){k=f[r].Xh;d={};m={};l=f[r].jD;for(p=0;p<k.length;++p){d[k[p]]=!0;q=c[k[p]];for(var t=0;t<q.length;++t)m[q[t]]=!0}p=[];q=[];for(b in e)b in d?p.push(e[b]):b in m||q.push(e[b]);d=FT(p,q);h[l]=d;d.gca&&0<f[r].size&&$.el(22,null,[String(k)])}this.D=h;for(b=0;b<this.b.length;b++){c=
this.b[b];f=c.jD;h=this.aa();h.select(f);c=c.Xh;h=[];if(1==c.length)r=c[0],h.push(e[r]);else for(k=0;k<c.length;k++)r=c[k],h.push(e[r]);c={};xT(h,c);f=this.Vl.Xc(this.Wq(f));h=f.hatchFill;r=f.stroke;KT(f.fill,c,a);KT(h,c,a);KT(r,c,a)}this.B(40960);this.I(16384)}if(this.J(8192)){e=this.Sa().labels();e.clear();e.P(this.La);for(b=0;b<this.b.length;b++)c=this.b[b],f=c.jD,h=this.aa(),h.select(f),c=this.D[f],r=this.Ec(!0),c={value:{x:a.left+c.x,y:a.top+c.y}},c=e.add(r,c,f),h.o("label",c),this.ce($.$w(this.state,
f),h);e.$();this.Nt().GH();this.I(8192)}if(this.J(32768)){e=this.Sa().Eb();$.V(e);e.P(this.La);e.clear();for(b=0;b<this.b.length;b++)c=this.b[b],f=c.jD,h=this.aa(),h.select(f),c=this.D[f],c={value:{x:a.left+c.x+.5,y:a.top+c.y+.5}},c=e.add(c,f),h.o("marker",c),LT(this,$.$w(this.state,f),h);e.da(!1);e.$();a=this.Nt();a.Sa().Eb().I(4294967295);a.mb().Eb().I(4294967295);a.selected().Eb().I(4294967295);this.I(32768)}if(this.J(16384)){IT(this);for(h=this.vc();h.advance();)this.Vl.tm(this.Wq(h.la()),h.o("shapes"));
this.I(16384)}}};
$.g.ce=function(a,b){var c=b.o("label");if(c&&!b.o("isMissing")){var d=b.o("isIntersection")?this.Nt():this;a=$.Xl(a);var e=!!(a&$.po),f=!!(a&$.qo),h=b.get("normal");h=$.n(h)?h.label:void 0;var k=b.get("hovered");k=$.n(k)?k.label:void 0;var l=b.get("selected");l=$.n(l)?l.label:void 0;h=$.Ro(h,b.get("label"),null);k=$.Ro(k,b.get("hoverLabel"),null);l=$.Ro(l,b.get("selectLabel"),null);l=f?l:e?k:null;k=f?d.selected().labels():e?d.mb().labels():null;var m=d.Sa().labels(),p=f?this.selected().labels():e?
this.mb().labels():null,q=this.Sa().labels(),r=f?d.selected().labels().ma:e?d.mb().labels().ma:null;d=d.Sa().labels().ma;e=f?this.selected().labels().ma:e?this.mb().labels().ma:null;f=this.Sa().labels().ma;var t=l&&$.n(l.enabled)?l.enabled:null,u=h&&$.n(h.enabled)?h.enabled:null,v=k&&null!==k.enabled()?k.enabled():null,w=m&&null!==m.enabled()?m.enabled():null,x=p?p.enabled():null,y=q.enabled(),B=!1;null===t?null===u?null===v?null===w?null===x?B=y:B=x:B=w:B=v:B=u:B=t;B?(c.oi(),c.enabled(!0),c.state("labelOwnSettings",
c.Ma,0),c.state("pointState",l,1),c.state("pointNormal",h,2),c.state("intersectionsState",k,3),c.state("intersectionsNormal",m,4),c.state("chartState",p,5),c.state("chartNormal",q,6),c.state("intersectionsStateTheme",r,7),c.state("chartStateTheme",e,8),c.state("auto",c.zd,9),c.state("intersectionsNormalTheme",d||null,10),c.state("chartNormalTheme",f||null,11)):c.enabled(!1);c.$()}};$.g.HC=function(){return["x"]};$.g.IC=function(a){return a.get("x")};
$.g.GC=function(a){a=a.get("name");return $.z(a)?a:null};$.g.Ej=function(){return!this.aa().Gb()};$.g.F=function(){var a=GT.u.F.call(this);$.Hq(this,OT,a,"Venn");a.data=this.data().F();a.normal=this.Sa().F();a.hovered=this.mb().F();a.selected=this.selected().F();a.palette=this.cc().F();a.hatchFillPalette=this.oe().F();a.markerPalette=this.sf().F();a.intersections=this.Nt().F();return{chart:a}};
$.g.X=function(a,b){GT.u.X.call(this,a,b);$.zq(this,OT,a,b);this.data(a.data);this.ca.ia(!!b,a);this.ca.ia(!!b,a.normal);this.xa.ia(!!b,a.hovered);this.Ca.ia(!!b,a.selected);this.cc().ia(!!b,a.palette);this.sf().ia(!!b,a.markerPalette);this.oe().ia(!!b,a.hatchFillPalette);this.Nt().ia(!!b,a.intersections)};
$.g.R=function(){$.td(this.ca,this.xa,this.Ca,this.Ea,this.Yc,this.Be,this.Vl,this.f,this.jd,this.oa);this.jd=this.f=this.Vl=this.Be=this.Yc=this.Ea=this.Ca=this.xa=this.ca=null;delete this.oa;this.Nd=null;GT.u.R.call(this)};var PT=GT.prototype;PT.data=PT.data;PT.getType=PT.Na;PT.intersections=PT.Nt;PT.normal=PT.Sa;PT.hovered=PT.mb;PT.selected=PT.selected;PT.palette=PT.cc;PT.hatchFillPalette=PT.oe;PT.markerPalette=PT.sf;PT.hover=PT.Oj;PT.unhover=PT.Pd;PT.select=PT.select;PT.unselect=PT.ae;$.Jp.venn=MT;$.F("anychart.venn",MT);}).call(this,$)}
