i&&j&&Sg(c)&&k&&h(!1,e.classed(f.SELECTED,!1),c,d)})},Ff.toLine=function(a){Df(a,"line")},Ff.toSpline=function(a){Df(a,"spline")},Ff.toBar=function(a){Df(a,"bar")},Ff.toScatter=function(a){Df(a,"scatter")},Ff.toArea=function(a){Df(a,"area")},Ff.toAreaSpline=function(a){Df(a,"area-spline")},Ff.toPie=function(a){Df(a,"pie",{withTransform:!0})},Ff.toDonut=function(a){Df(a,"donut",{withTransform:!0})},Ff.groups=function(a){returnc(a)?Gg:(Gg=a,jf(),Gg)},Ff.xgrids=function(a){returna?(Vh=a,jf(),Vh):Vh},Ff.xgrids.add=function(a){returna?Ff.xgrids(Vh.concat(a)):void0},Ff.xgrids.remove=function(a){varb=Cf(a);returnFf.xgrids(Vh.filter(b))},Ff.ygrids=function(a){returna?(Xh=a,jf(),Xh):Xh},Ff.ygrids.add=function(a){returna?Ff.ygrids(Xh.concat(a)):void0},Ff.ygrids.remove=function(a){varb=Cf(a);returnFf.ygrids(Xh.filter(b))},Ff.regions=function(a){returnc(a)?ti:(ti=a,jf(),ti)},Ff.regions.add=function(a){returnc(a)?ti:(ti=ti.concat(a),jf(),ti)},Ff.regions.remove=function(a,c){vare=[].concat(a);returnc=d(c)?c:{},e.forEach(function(a){vard=b(c.duration)?c.duration:0;lj.selectAll("."+a).transition().duration(d).style("fill-opacity",0).remove(),ti=ti.filter(function(b){returnb.classes.indexOf(a)<0})}),ti},Ff.data.get=function(a){varb=Ff.data.getAsTarget(a);returnd(b)?b.values.map(function(a){returna.value}):void0},Ff.data.getAsTarget=function(a){varb=Fc(function(b){returnb.id===a});returnb.length>0?b[0]:void0},Ff.data.names=function(a){returnarguments.length?(Object.keys(a).forEach(function(b){Eg[b]=a[b]}),zf(Cc(Ff.data.targets),{withTransition:!0}),Eg):Eg},Ff.data.colors=function(a){returnarguments.length?(Object.keys(a).forEach(function(b){Og[b]=a[b]}),jf({withLegend:!0}),Og):Og},Ff.x=function(a){returnarguments.length&&(qc(Ff.data.targets,a),jf({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),Ff.data.xs},Ff.xs=function(a){returnarguments.length&&(rc(Ff.data.targets,a),jf({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),Ff.data.xs},Ff.axis.labels=function(a){arguments.length&&(Object.keys(a).forEach(function(b){bb(b,a[b])}),Db())},Ff.axis.max=function(a){arguments.length&&("object"==typeofa?(b(a.y)&&(Ch=+a.y),b(a.y2)&&(Lh=+a.y2)):Ch=Lh=+a,jf())},Ff.axis.min=function(a){arguments.length&&("object"==typeofa?(b(a.y)&&(Dh=+a.y),b(a.y2)&&(Mh=+a.y2)):Dh=Mh=+a,jf())},Ff.axis.range=function(a){arguments.length&&("undefined"!=typeofa.max&&Ff.axis.max(a.max),"undefined"!=typeofa.min&&Ff.axis.min(a.min))},Ff.legend.show=function(a){xf(Dc(a)),jf({withLegend:!0})},Ff.legend.hide=function(a){yf(Dc(a)),jf({withLegend:!0})},Ff.resize=function(a){If=a?a.width:null,Jf=a?a.height:null,of({withLegend:!0,withTransition:!1,withTransitionForTransform:!1})},Ff.destroy=function(){Ff.data.targets=void0,Ff.data.xs={},rj.html(""),a.onresize=null},"url"ine.data)Ef.xhr(e.data.url,function(a,b){varc,d=Ef.csv.parseRows(b.response);1===d.length?(c=[{}],d[0].forEach(function(a){c[0][a]=null})):c=Ef.csv.parse(b.response),bf(c)});elseif("rows"ine.data)bf(tc(e.data.rows));else{if(!("columns"ine.data))throwError("url or rows or columns is required.");bf(uc(e.data.columns))}returnFf},"function"==typeofa.define&&a.define.amd?a.define("c3",["d3"],e):a.c3=e}(window);