}).style("visibility",function(a){returnUc(a)?"visible":"hidden"}).style("cursor","pointer").on("click",function(a){"function"==typeofSh?Sh(a):kg.toggle(a)}).on("mouseover",function(a){jg.select(this).classed(g.legendItemFocused,!0),Mj||kg.focus(a),"function"==typeofTh&&Th(a)}).on("mouseout",function(a){jg.select(this).classed(g.legendItemFocused,!1),Mj||kg.revert(),"function"==typeofUh&&Uh(a)}),m.append("text").text(function(a){returnd(oh[a])?oh[a]:a}).each(function(a,b){e(this,a,0===b)}).style("pointer-events","none").attr("x",$j?h:-200).attr("y",$j?-200:k),m.append("rect").attr("class",g.legendItemEvent).style("fill-opacity",0).attr("x",$j?i:-200).attr("y",$j?-200:l),m.append("rect").attr("class",g.legendItemTile).style("pointer-events","none").style("fill",Oj).attr("x",$j?h:-200).attr("y",$j?-200:j).attr("width",10).attr("height",10),r=mk.selectAll("text").data(a).text(function(a){returnd(oh[a])?oh[a]:a}).each(function(a,b){e(this,a,0===b)}),(n?r.transition():r).attr("x",h).attr("y",k),s=mk.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=mk.selectAll("rect."+g.legendItemTile).data(a),(n?t.transition():t).style("fill",Oj).attr("x",f).attr("y",j),mk.selectAll("."+g.legendItem).classed(g.legendItemHidden,function(a){return!Tc(a)}).transition().style("opacity",function(a){varb=jg.select(this);returnTc(a)?!G||b.classed(g.legendItemFocused)?Zf(b):$f(b):ck}),S(w),T(x),R(F),p(),W(),Sf(),o(q,c)}functioneg(a){returnSc(kg.data.targets,a.id)}functionfg(a){return"data"ina&&Sc(kg.data.targets,a.data.id)}functiongg(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}}functionhg(a,b,c){vard=!we(kg.data.targets);Mj=!1,pe(a,b),Uf(c||{withTransitionForAxis:d})}functionig(a){varb=a.mimeType?a.mimeType:"csv";jg.xhr(f.data.url,function(a,c){vard;d="json"===b?Gc(JSON.parse(c.response)):Fc(c.response),Gf(d)})}varjg=a.d3?a.d3:"undefined"!=typeofrequire?require("d3"):void0,kg={data:{},axis:{},legend:{}},lg={},mg=i(["bindto"],"#chart"),ng=i(["size","width"]),og=i(["size","height"]),pg=i(["padding","left"]),qg=i(["padding","right"]),rg=i(["padding","top"]),sg=i(["padding","bottom"]),tg=i(["zoom","enabled"],!1),ug=i(["zoom","extent"]),vg=i(["zoom","privileged"],!1),wg=i(["interaction","enabled"],!0),xg=i(["onenter"],function(){}),yg=i(["onleave"],function(){}),zg=i(["onresize"],function(){}),Ag=i(["onresized"],function(){}),Bg=i(["transition","duration"],350);h("data","data is required in config");varCg,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,hh,ih,jh,kh=i(["data","x"]),lh=i(["data","xs"],{}),mh=i(["data","x_format"],"%Y-%m-%d"),nh=i(["data","id_converter"],function(a){returna}),oh=i(["data","names"],{}),ph=i(["data","classes"],{}),qh=i(["data","groups"],[]),rh=i(["data","axes"],{}),sh=i(["data","type"]),th=i(["data","types"],{}),uh=i(["data","labels"],{}),vh=i(["data","order"]),wh=i(["data","regions"],{}),xh=i(["data","color"]),yh=i(["data","colors"],{}),zh=i(["data","hide"],!1),Ah=i(["data","filter"]),Bh=i(["data","selection","enabled"],!1),Ch=i(["data","selection","grouped"],!1),Dh=i(["data","selection","isselectable"],function(){return!0}),Eh=i(["data","selection","multiple"],!0),Fh=i(["data","onclick"],function(){}),Gh=i(["data","onenter"],function(){}),Hh=i(["data","onleave"],function(){}),Ih=i(["data","onselected"],function(){}),Jh=i(["data","onunselected"],function(){}),Kh=i(["data","ondragstart"],function(){}),Lh=i(["data","ondragend"],function(){}),Mh=i(["subchart","show"],!1),Nh=i(["subchart","size","height"],60),Oh=i(["color","pattern"],[]),Ph=i(["color","threshold"],{}),Qh=i(["legend","show"],!0),Rh=i(["legend","position"],"bottom"),Sh=i(["legend","item","onclick"]),Th=i(["legend","item","onmouseover"]),Uh=i(["legend","item","onmouseout"]),Vh=i(["legend","equally"],!1),Wh=i(["axis","rotated"],!1),Xh=i(["axis","x","show"],!0)