a[0],c={},d=[],f,e;for(f=1;f<a.length;f++){c={};for(e=0;e<a[f].length;e++)c[b[e]]=a[f][e];d.push(c)}returnd}functionDc(a){varb=[],c,d,f;for(c=0;c<a.length;c++)for(f=a[c][0],d=1;d<a[c].length;d++)y(b[d-1])&&(b[d-1]={}),b[d-1][f]=a[c][d];returnb}functionPa(a){varb=e.keys(a[0]).filter(Ud),c=e.keys(a[0]).filter(Bc);if(D&&0===c.length)returnO.alert('data.x or data.xs must be specified when axis.x.type == "timeseries"'),[];Rb&&b.forEach(function(b){varf=qa?qa:ba?ba[b]:null;0<=c.indexOf(f)?k.data.x[b]=
a[0],c={},d=[],f,e;for(f=1;f<a.length;f++){c={};for(e=0;e<a[f].length;e++)c[b[e]]=a[f][e];d.push(c)}returnd}functionEc(a){varb=[],c,d,f;for(c=0;c<a.length;c++)for(f=a[c][0],d=1;d<a[c].length;d++)y(b[d-1])&&(b[d-1]={}),b[d-1][f]=a[c][d];returnb}functionPa(a){varb=e.keys(a[0]).filter(Ud),c=e.keys(a[0]).filter(Cc);if(D&&0===c.length)returnO.alert('data.x or data.xs must be specified when axis.x.type == "timeseries"'),[];Rb&&b.forEach(function(b){varf=qa?qa:ba?ba[b]:null;0<=c.indexOf(f)?k.data.x[b]=
A["string"===typeofa?a:a.id]}functionMc(a){return"scatter"===A["string"===typeofa?a:a.id]}functionYc(a){return"pie"===A["string"===typeofa?a:a.id]}functionOb(a){return"donut"===A["string"===typeofa?a:a.id]}functionZc(a){returnsb(a)?a.values:[]}functionhe(a){returnUb(a)||Mc(a)?a.values:[]}functionpa(a){varb;if(!a)throwError(a+" can not be parsed as d3.time with format "+Vb+". Maybe 'x' of this data is not defined. See data.x or data.xs option.");b=e.time.format(Vb).parse(a);if(!b)throwError("Failed to parse '"+
a+"' with format "+Vb);returnb}function$c(a,b){varc=e.mouse(a),d=e.select(a),f=1*d.attr("cx"),d=1*d.attr("cy");returnMath.sqrt(Math.pow(f-c[0],2)+Math.pow(d-c[1],2))<b}functionad(a){varb=e.mouse(a),c=e.select(a);a=1*c.attr("x");vard=1*c.attr("y"),c=1*c.attr("width");returna-10<b[0]&&b[0]<a+c+10&&d-10<b[1]}functionie(a,b){varc;for(c=0;c<b.length;c++)if(b[c].start<a&&a<=b[c].end)return!0;return!1}functionTd(a,b){varc=!1;Object.keys(a).forEach(function(d){a[d]===b&&(c=!0)});returnc}functionSb(a,
c(l(f+e))};for(f=0;f<a.length;f++)if(y(ra)||!ie(a[f].x,ra))g+=" "+gd(a[f])+" "+n(a[f]);else{k=ha(a[f-1].x,a[f].x);l=I(a[f-1].value,a[f].value);e=b(a[f].x)-b(a[f-1].x);m=c(a[f].value)-c(a[f-1].value);e=Math.sqrt(Math.pow(e,2)+Math.pow(m,2));m=2/e;varp=2*m;for(e=m;1>=e;e+=p)g+=d(a[f-1],a[f],e,m)}returng}functionac(a){varb;tb=e.select(wa);if(tb.empty())O.alert('No bind element found. Check the selector specified by "bindto" and existance of that element. Default "bindto" is "#chart".');else{tb.html("");
A["string"===typeofa?a:a.id]}functionNc(a){return"scatter"===A["string"===typeofa?a:a.id]}functionZc(a){return"pie"===A["string"===typeofa?a:a.id]}functionOb(a){return"donut"===A["string"===typeofa?a:a.id]}function$c(a){returnsb(a)?a.values:[]}functionhe(a){returnUb(a)||Nc(a)?a.values:[]}functionpa(a){varb;if(!a)throwError(a+" can not be parsed as d3.time with format "+Vb+". Maybe 'x' of this data is not defined. See data.x or data.xs option.");b=e.time.format(Vb).parse(a);if(!b)throwError("Failed to parse '"+
a+"' with format "+Vb);returnb}functionad(a,b){varc=e.mouse(a),d=e.select(a),f=1*d.attr("cx"),d=1*d.attr("cy");returnMath.sqrt(Math.pow(f-c[0],2)+Math.pow(d-c[1],2))<b}functionbd(a){varb=e.mouse(a),c=e.select(a);a=1*c.attr("x");vard=1*c.attr("y"),c=1*c.attr("width");returna-10<b[0]&&b[0]<a+c+10&&d-10<b[1]}functionie(a,b){varc;for(c=0;c<b.length;c++)if(b[c].start<a&&a<=b[c].end)return!0;return!1}functionTd(a,b){varc=!1;Object.keys(a).forEach(function(d){a[d]===b&&(c=!0)});returnc}functionSb(a,
c(l(f+e))};for(f=0;f<a.length;f++)if(y(ra)||!ie(a[f].x,ra))g+=" "+hd(a[f])+" "+n(a[f]);else{k=ha(a[f-1].x,a[f].x);l=I(a[f-1].value,a[f].value);e=b(a[f].x)-b(a[f-1].x);m=c(a[f].value)-c(a[f-1].value);e=Math.sqrt(Math.pow(e,2)+Math.pow(m,2));m=2/e;varp=2*m;for(e=m;1>=e;e+=p)g+=d(a[f-1],a[f],e,m)}returng}functionac(a){varb;tb=e.select(wa);if(tb.empty())O.alert('No bind element found. Check the selector specified by "bindto" and existance of that element. Default "bindto" is "#chart".');else{tb.html("");
function(){}),Ce=g(["transition","duration"],350);if(!("data"inea))throwError("data is required in config");varqa=g(["data","x"],null),ba=g(["data","xs"],null),Vb=g(["data","x_format"],"%Y-%m-%d"),Wd=g(["data","id_converter"],function(a){returna}),Oa=g(["data","names"],{}),w=g(["data","groups"],[]),vc=g(["data","axes"],{}),Ec=g(["data","type"],null),A=g(["data","types"],{}),td=g(["data","regions"],{}),Ke=g(["data","colors"],{}),ka=g(["data","selection","enabled"],!1),ta=g(["data","selection",
function(){}),Ce=g(["transition","duration"],350);if(!("data"inea))throwError("data is required in config");varqa=g(["data","x"],null),ba=g(["data","xs"],null),Vb=g(["data","x_format"],"%Y-%m-%d"),Wd=g(["data","id_converter"],function(a){returna}),Oa=g(["data","names"],{}),w=g(["data","groups"],[]),wc=g(["data","axes"],{}),Fc=g(["data","type"],null),A=g(["data","types"],{}),td=g(["data","regions"],{}),Ke=g(["data","colors"],{}),ka=g(["data","selection","enabled"],!1),ta=g(["data","selection",
function(b,c){Ya(Pa(c),a.done)});elseif("rows"ina)Ya(Pa(Cc(a.rows)),a.done);elseif("columns"ina)Ya(Pa(Dc(a.columns)),a.done);elsethrowError("url or rows or columns is required.");};k.unload=function(a){k.data.targets=k.data.targets.filter(function(b){returnb.id!==a});n.selectAll(".target-"+a).transition().style("opacity",0).remove();Ea&&(n.selectAll(".legend-item-"+a).remove(),wb(k.data.targets));0<k.data.targets.length&&x({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})};k.selected=function(a){a=
function(b,c){Ya(Pa(c),a.done)});elseif("rows"ina)Ya(Pa(Dc(a.rows)),a.done);elseif("columns"ina)Ya(Pa(Ec(a.columns)),a.done);elsethrowError("url or rows or columns is required.");};k.unload=function(a){k.data.targets=k.data.targets.filter(function(b){returnb.id!==a});n.selectAll(".target-"+a).transition().style("opacity",0).remove();Ea&&(n.selectAll(".legend-item-"+a).remove(),wb(k.data.targets));0<k.data.targets.length&&x({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})};k.selected=function(a){a=