(function(){b.I8=b.f({vQ:0,constructor:function(){this.vQ=0},Zqb:function(a,d,c){if(c.elements&&c.aesthetics)throw new b.Z("Legends containing both 'aesthetics' and 'elements' are not supported.",b.q.SPEC_INVALID_LEGENDS,null);!c.elements&&(null==c.method||"simple"==c.method)?a=b.I8.msb(a, d,c,this.vQ):(b.qb("com/ibm/vis/layers/nonsimpleLegendLayer"),a=b.np.$qb(a,d,c,this.vQ));this.vQ+=a.size();return a}});b.I8.msb=function(a,d,c,e){var f=new b.o,g;g=c.aesthetics&&0=d&&0>=a?a=d=20:0>=d?(d=0,a=c.JB(a)):0>=a?(d=c.JB(d),a=0):20d&&10>a&&(c=10/Math.max(d,a),d*=c,a*=c),g.k=d,g.i=a);return g};b.de.xsb=function(a,d,c,e){var f=d.itemStyle,g=a.eF,h;d=g;d||(d=new b.ra,d.outline="#000");null==d.fill&&(d.fill="#aaa");if(d=b.X.sE(d,f))h=d.symbol,d=b.de.Aw(d,!1,!1,10);g||(g=new b.ra,g.fill="#000");(g=b.X.sE(g,f))&&(g=b.de.Aw(g,!0,!1, 10));f=new b.FW;switch(a.type){default:case 11:h=null==h?"letter-A":h;case 1:a=[b.de.Q_(h,d)];break;case 2:case 3:a=b.de.hvb(a,c,e,g);break;case 4:a=b.de.PHa(d,!0);break;case 5:a=b.de.PHa(d,!1);break;case 6:a=[b.de.Q_(null==h?"rect":h,d)];break;case 7:case 8:a=[new b.qi];a[0].type="path";a[0].style=g;a[0].path="M0,0.5L1,0.5";break;case 9:case 10:a=[new b.qi];a[0].type="rect";a[0].style=d;break;case 12:a=[b.de.Q_("square",d)]}f.shape=a;return f};b.de.Aw=function(a,d,c,e){if(!a)return null;var f=a.copy(); f.size=null;f.width=null;f.height=null;f.symbol=null;f.padding=null;if(d&&null!=a.size&&(!f.stroke||null==f.stroke.width))f.stroke||(f.stroke=new b.My),f.stroke.width=a.size;f.stroke&&null!=f.stroke.width&&(a=b.T.ca(f.stroke.width,1,20),f.stroke.width=null==a?1:Math.min(a,e));f.font&&(e=b.T.ca(f.font.size,20,20),f.font.size=null==e?12:b.Y.ja(Math.max(7.5,Math.min(e,15))));b.F.isInstanceOf(f.fill,b.In)&&(e=f.fill.copy(),e.global=!1,f.fill=e);if(b.j.isEmpty(f.toJSON())){if(!c)return null;f.fill="#aaa"}return f}; b.de.Q_=function(a,d){var c=new b.qi;if(null!=a)if(b.j.isString(a))c.style=b.de.Aw(d,!1,!1,3),c.type=a;else if(a.shape){c.type="group";var e=a.shape.length;c.shape=Array(e);c.style=b.de.Aw(d,!1,!1,3);for(var f=0;f