}),m.append("text").text(function(a){returnd(kh[a])?kh[a]:a}).each(function(a,b){e(this,a,0===b)}).style("pointer-events","none").attr("x",Wj?h:-200).attr("y",Wj?-200:k),m.append("rect").attr("class",g.legendItemEvent).style("fill-opacity",0).attr("x",Wj?i:-200).attr("y",Wj?-200:l),m.append("rect").attr("class",g.legendItemTile).style("pointer-events","none").style("fill",Kj).attr("x",Wj?h:-200).attr("y",Wj?-200:j).attr("width",10).attr("height",10),r=ik.selectAll("text").data(a).text(function(a){returnd(kh[a])?kh[a]:a}).each(function(a,b){e(this,a,0===b)}),(n?r.transition():r).attr("x",h).attr("y",k),s=ik.selectAll("rect."+g.legendItemEvent).data(a),(n?s.transition():s).attr("width",function(a){returnB[a]}).attr("height",function(a){returnC[a]}).attr("x",i).attr("y",l),t=ik.selectAll("rect."+g.legendItemTile).data(a),(n?t.transition():t).style("fill",Kj).attr("x",f).attr("y",j),ik.selectAll("."+g.legendItem).classed(g.legendItemHidden,function(a){return!Qc(a)}).transition().style("opacity",function(a){varb=fg.select(this);returnQc(a)?!G||b.classed(g.legendItemFocused)?Wf(b):Xf(b):$j}),S(w),T(x),R(F),p(),W(),Pf(),o(q,c)}functionbg(a){returnPc(gg.data.targets,a.id)}functioncg(a){return"data"ina&&Pc(gg.data.targets,a.data.id)}functiondg(a){varb=a&&a.value?a.value:null,c=a&&a["class"]?a["class"]:null;returnb?function(a){returna.value!==b}:c?function(a){returna["class"]!==c}:function(){return!0}}functioneg(a,b,c){vard=!te(gg.data.targets);Ij=!1,me(a,b),Rf(c||{withTransitionForAxis:d})}varfg=a.d3?a.d3:"undefined"!=typeofrequire?require("d3"):void0,gg={data:{},axis:{},legend:{}},hg={},ig=i(["bindto"],"#chart"),jg=i(["size","width"]),kg=i(["size","height"]),lg=i(["padding","left"]),mg=i(["padding","right"]),ng=i(["padding","top"]),og=i(["padding","bottom"]),pg=i(["zoom","enabled"],!1),qg=i(["zoom","extent"]),rg=i(["zoom","privileged"],!1),sg=i(["interaction","enabled"],!0),tg=i(["onenter"],function(){}),ug=i(["onleave"],function(){}),vg=i(["onresize"],function(){}),wg=i(["onresized"],function(){}),xg=i(["transition","duration"],350);h("data","data is required in config");varyg,zg,Ag,Bg,Cg,Dg,Eg,Fg,Gg,Hg,Ig,Jg,Kg,Lg,Mg,Ng,Og,Pg,Qg,Rg,Sg,Tg,Ug,Vg,Wg,Xg,Yg,Zg,$g,_g,ah,bh,ch,dh,eh,fh,gh=i(["data","x"]),hh=i(["data","xs"],{}),ih=i(["data","x_format"]),jh=i(["data","id_converter"],function(a){returna}),kh=i(["data","names"],{}),lh=i(["data","classes"],{}),mh=i(["data","groups"],[]),nh=i(["data","axes"],{}),oh=i(["data","type"]),ph=i(["data","types"],{}),qh=i(["data","labels"],{}),rh=i(["data","order"]),sh=i(["data","regions"],{}),th=i(["data","color"]),uh=i(["data","colors"],{}),vh=i(["data","hide"],!1),wh=i(["data","filter"]),xh=i(["data","selection","enabled"],!1),yh=i(["data","selection","grouped"],!1),zh=i(["data","selection","isselectable"],function(){return!0}),Ah=i(["data","selection","multiple"],!0),Bh=i(["data","onclick"],function(){}),Ch=i(["data","onenter"],function(){}),Dh=i(["data","onleave"],function(){}),Eh=i(["data","onselected"],function(){}),Fh=i(["data","onunselected"],function(){}),Gh=i(["data","ondragstart"],function(){}),Hh=i(["data","ondragend"],function(){}),Ih=i(["subchart","show"],!1),Jh=i(["subchart","size","height"],60),Kh=i(["color","pattern"],[]),Lh=i(["color","threshold"],{}),Mh=i(["legend","show"],!0),Nh=i(["legend","position"],"bottom"),Oh=i(["legend","item","onclick"]),Ph=i(["legend","item","onmouseover"]),Qh=i(["legend","item","onmouseout"]),Rh=i(["legend","equally"],!1),Sh=i(["axis","rotated"],!1),Th=i(["axis","x","show"],!0),Uh=i(["axis","x","type"],"indexed"),Vh=i(["axis","x","localtime"],!0),Wh=i(["axis","x","categories"],[]),Xh=i(["axis","x","tick","centered"],!1),Yh=i(["axis","x","tick","format"]),Zh=i(["axis","x","tick","culling"],{}),$h=i(["axis","x","tick","culling","max"],10),_h=i(["axis","x","tick","count"]),ai=i(["axis","x","tick","fit"],!0),bi=i(["axis","x","tick","values"],null),ci=i(["axis","x","tick","rotate"]),di=i(["axis","x","max"],null),ei=i(["axis","x","min"],null),fi=i(["axis","x","padding"],{}),gi=i(["axis","x","height"]),hi=i(["axis","x","default"]),ii=