-
Notifications
You must be signed in to change notification settings - Fork 0
/
dataseries.min.js
1 lines (1 loc) · 34.3 KB
/
dataseries.min.js
1
(function(e,t){var n=e.define,r,i,t;(function(e){function d(e,t){return h.call(e,t)}function v(e,t){var n,r,i,s,o,u,a,f,c,h,p=t&&t.split("/"),d=l.map,v=d&&d["*"]||{};if(e&&e.charAt(0)==="."&&t){p=p.slice(0,p.length-1),e=p.concat(e.split("/"));for(f=0;f<e.length;f+=1){h=e[f];if(h===".")e.splice(f,1),f-=1;else if(h===".."){if(f===1&&(e[2]===".."||e[0]===".."))break;f>0&&(e.splice(f-1,2),f-=2)}}e=e.join("/")}if((p||v)&&d){n=e.split("/");for(f=n.length;f>0;f-=1){r=n.slice(0,f).join("/");if(p)for(c=p.length;c>0;c-=1){i=d[p.slice(0,c).join("/")];if(i){i=i[r];if(i){s=i,o=f;break}}}if(s)break;!u&&v&&v[r]&&(u=v[r],a=f)}!s&&u&&(s=u,o=a),s&&(n.splice(0,o,s),e=n.join("/"))}return e}function m(t,n){return function(){return s.apply(e,p.call(arguments,0).concat([t,n]))}}function g(e){return function(t){return v(t,e)}}function y(e){return function(t){a[e]=t}}function b(t){if(d(f,t)){var r=f[t];delete f[t],c[t]=!0,n.apply(e,r)}if(!d(a,t)&&!d(c,t))throw new Error("No "+t);return a[t]}function w(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function E(e){return function(){return l&&l.config&&l.config[e]||{}}}var n,s,o,u,a={},f={},l={},c={},h=Object.prototype.hasOwnProperty,p=[].slice;o=function(e,t){var n,r=w(e),i=r[0];return e=r[1],i&&(i=v(i,t),n=b(i)),i?n&&n.normalize?e=n.normalize(e,g(t)):e=v(e,t):(e=v(e,t),r=w(e),i=r[0],e=r[1],i&&(n=b(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},u={require:function(e){return m(e)},exports:function(e){var t=a[e];return typeof t!="undefined"?t:a[e]={}},module:function(e){return{id:e,uri:"",exports:a[e],config:E(e)}}},n=function(t,n,r,i){var s,l,h,p,v,g=[],w;i=i||t;if(typeof r=="function"){n=!n.length&&r.length?["require","exports","module"]:n;for(v=0;v<n.length;v+=1){p=o(n[v],i),l=p.f;if(l==="require")g[v]=u.require(t);else if(l==="exports")g[v]=u.exports(t),w=!0;else if(l==="module")s=g[v]=u.module(t);else if(d(a,l)||d(f,l)||d(c,l))g[v]=b(l);else{if(!p.p)throw new Error(t+" missing "+l);p.p.load(p.n,m(i,!0),y(l),{}),g[v]=a[l]}}h=r.apply(a[t],g);if(t)if(s&&s.exports!==e&&s.exports!==a[t])a[t]=s.exports;else if(h!==e||!w)a[t]=h}else t&&(a[t]=r)},r=i=s=function(t,r,i,a,f){return typeof t=="string"?u[t]?u[t](r):b(o(t,r).f):(t.splice||(l=t,r.splice?(t=r,r=i,i=null):t=e),r=r||function(){},typeof i=="function"&&(i=a,a=f),a?n(e,t,r,i):setTimeout(function(){n(e,t,r,i)},15),s)},s.config=function(e){return l=e,s},t=function(e,t,n){t.splice||(n=t,t=[]),!d(a,e)&&!d(f,e)&&(f[e]=[e,t,n])},t.amd={jQuery:!0}})(),t("../lib/almond",function(){}),function(n,r){function dt(e){if(e&&e.__wrapped__)return e;if(!(this instanceof dt))return new dt(e);this.__wrapped__=e}function bt(e,t,n){t||(t=0);var r=e.length,i=r-t>=(n||l);if(i){var s={},o=t-1;while(++o<r){var u=e[o]+"";(M.call(s,u)?s[u]:s[u]=[]).push(e[o])}}return function(n){if(i){var r=n+"";return M.call(s,r)&&Bn(s[r],n)>-1}return Bn(e,n,t)>-1}}function wt(e){return e.charCodeAt(0)}function Et(e,t){var n=e.index,i=t.index;e=e.criteria,t=t.criteria;if(e!==t){if(e>t||e===r)return 1;if(e<t||t===r)return-1}return n<i?-1:1}function St(e,t,n){function o(){var u=arguments,a=i?this:t;r||(e=t[s]),n.length&&(u=u.length?n.concat(P.call(u)):n);if(this instanceof o){kt.prototype=e.prototype,a=new kt;var f=e.apply(a,u);return Qt(f)?f:a}return e.apply(a,u)}var r=Kt(e),i=!n,s=e;return i&&(n=t),o}function xt(e,t){return e?typeof e!="function"?function(t){return t[e]}:t!==r?function(n,r,i){return e.call(t,n,r,i)}:e:fr}function Tt(){var e={arrayLoop:"",bottom:"",hasDontEnumBug:Z,isKeysFast:ft,objectLoop:"",noArgsEnum:nt,noCharByIndex:st,shadowed:N,top:"",useHas:!0};for(var t,n=0;t=arguments[n];n++)for(var r in t)e[r]=t[r];var i=e.args;e.firstArg=/^[^,]+/.exec(i)[0];var s=Function("createCallback, hasOwnProperty, isArguments, isString, objectTypes, nativeKeys, propertyIsEnumerable","return function("+i+") {\n"+vt(e)+"\n}");return s(xt,M,At,nn,ht,q,D)}function Nt(e){return"\\"+pt[e]}function Ct(e){return Pt[e]}function kt(){}function Lt(e){return Ht[e]}function At(e){return H.call(e)==W}function _t(e){var t=!1;if(!e||typeof e!="object"||At(e))return t;var n=e.constructor;return(!ot||typeof e.toString=="function"||typeof (e+"")!="string")&&(!Kt(n)||n instanceof n)?et?(Ot(e,function(e,n,r){return t=!M.call(r,n),!1}),t===!1):(Ot(e,function(e,n){t=n}),t===!1||M.call(e,t)):t}function Dt(e){var t=[];return Mt(e,function(e,n){t.push(n)}),t}function Bt(e,t,n,r,i){if(e==null)return e;n&&(t=!1);var s=Qt(e);if(s){var o=H.call(e);if(!ct[o]||rt&&At(e))return e;var u=o==X;s=u||(o==Q?en(e):s)}if(!s||!t)return s?u?P.call(e):Ft({},e):e;var a=e.constructor;switch(o){case V:case $:return new a(+e);case K:case Y:return new a(e);case G:return a(e.source,g.exec(e))}r||(r=[]),i||(i=[]);var f=r.length;while(f--)if(r[f]==e)return i[f];var l=u?a(e.length):{};return r.push(e),i.push(l),(u?mn:Mt)(e,function(e,n){l[n]=Bt(e,t,null,r,i)}),l}function It(e){var t=[];return Ot(e,function(e,n){Kt(e)&&t.push(n)}),t.sort()}function qt(e,t){return e?M.call(e,t):!1}function Rt(e){var t={};return Mt(e,function(e,n){t[e]=n}),t}function zt(e){return e===!0||e===!1||H.call(e)==V}function Wt(e){return H.call(e)==$}function Xt(e){return e?e.nodeType===1:!1}function Vt(e){var t=!0;if(!e)return t;var n=H.call(e),r=e.length;return n==X||n==Y||n==W||rt&&At(e)||n==Q&&typeof r=="number"&&Kt(e.splice)?!r:(Mt(e,function(){return t=!1}),t)}function $t(e,t,n,r){if(e===t)return e!==0||1/e==1/t;if(e==null||t==null)return e===t;var i=H.call(e);if(i!=H.call(t))return!1;switch(i){case V:case $:return+e==+t;case K:return e!=+e?t!=+t:e==0?1/e==1/t:e==+t;case G:case Y:return e==t+""}var s=i==X||i==W;if(rt&&!s&&(s=At(e))&&!At(t))return!1;if(!s){if(e.__wrapped__||t.__wrapped__)return $t(e.__wrapped__||e,t.__wrapped__||t);if(i!=Q||ot&&(typeof e.toString!="function"&&typeof (e+"")=="string"||typeof t.toString!="function"&&typeof (t+"")=="string"))return!1;var o=e.constructor,u=t.constructor;if(o!=u&&!(Kt(o)&&o instanceof o&&Kt(u)&&u instanceof u))return!1}n||(n=[]),r||(r=[]);var a=n.length;while(a--)if(n[a]==e)return r[a]==t;var f=-1,l=!0,c=0;n.push(e),r.push(t);if(s){c=e.length,l=c==t.length;if(l)while(c--)if(!(l=$t(e[c],t[c],n,r)))break;return l}for(var h in e)if(M.call(e,h)){c++;if(!M.call(t,h)||!$t(e[h],t[h],n,r))return!1}for(h in t)if(M.call(t,h)&&!(c--))return!1;if(Z)while(++f<7){h=N[f];if(M.call(e,h)&&(!M.call(t,h)||!$t(e[h],t[h],n,r)))return!1}return!0}function Jt(e){return F(e)&&!I(parseFloat(e))}function Kt(e){return typeof e=="function"}function Qt(e){return e?ht[typeof e]:!1}function Gt(e){return H.call(e)==K&&e!=+e}function Yt(e){return e===null}function Zt(e){return H.call(e)==K}function tn(e){return H.call(e)==G}function nn(e){return H.call(e)==Y}function rn(e){return e===r}function on(e,t,n){var r=arguments,i=0,s=2,o=r[3],a=r[4];n!==u&&(o=[],a=[],s=r.length);while(++i<s)Mt(r[i],function(t,n){var r,i,s;if(t&&((i=Ut(t))||en(t))){var f=o.length;while(f--){r=o[f]==t;if(r)break}r?e[n]=a[f]:(o.push(t),a.push(s=(s=e[n],i)?Ut(s)?s:[]:en(s)?s:{}),e[n]=on(s,t,u,o,a))}else t!=null&&(e[n]=t)});return e}function un(e,t,n){var r=typeof t=="function",i={};if(r)t=xt(t,n);else var s=L.apply(o,arguments);return Ot(e,function(e,n,o){if(r?!t(e,n,o):Bn(s,n,1)<0)i[n]=e}),i}function an(e){var t=[];return Mt(e,function(e,n){t.push([n,e])}),t}function fn(e,t,n){var r={};if(typeof t!="function"){var i=0,s=L.apply(o,arguments),u=s.length;while(++i<u){var a=s[i];a in e&&(r[a]=e[a])}}else t=xt(t,n),Ot(e,function(e,n,i){t(e,n,i)&&(r[n]=e)});return r}function ln(e){var t=[];return Mt(e,function(e){t.push(e)}),t}function cn(e,t,n){var r=-1,i=e?e.length:0;return n=(n<0?R(0,i+n):n)||0,typeof i=="number"?(nn(e)?e.indexOf(t,n):Bn(e,t,n))>-1:Ln(e,function(e){return++r>=n&&e===t})}function hn(e,t,n){var r={};return t=xt(t,n),mn(e,function(e,n,i){n=t(e,n,i),M.call(r,n)?r[n]++:r[n]=1}),r}function pn(e,t,n){var r=!0;t=xt(t,n);if(Ut(e)){var i=-1,s=e.length;while(++i<s)if(!(r=!!t(e[i],i,e)))break}else mn(e,function(e,n,i){return r=!!t(e,n,i)});return r}function dn(e,t,n){var r=[];return t=xt(t,n),mn(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function vn(e,t,n){var r;return t=xt(t,n),mn(e,function(e,n,i){if(t(e,n,i))return r=e,!1}),r}function gn(e,t,n){var r={};return t=xt(t,n),mn(e,function(e,n,i){n=t(e,n,i),(M.call(r,n)?r[n]:r[n]=[]).push(e)}),r}function yn(e,t){var n=P.call(arguments,2),r=typeof t=="function",i=[];return mn(e,function(e){i.push((r?t:e[t]).apply(e,n))}),i}function bn(e,t,n){var r=-1,i=e?e.length:0,s=Array(typeof i=="number"?i:0);t=xt(t,n);if(Ut(e))while(++r<i)s[r]=t(e[r],r,e);else mn(e,function(e,n,i){s[++r]=t(e,n,i)});return s}function wn(e,t,n){var r=-Infinity,i=-1,s=e?e.length:0,o=r;if(t||!Ut(e))t=!t&&nn(e)?wt:xt(t,n),mn(e,function(e,n,i){var s=t(e,n,i);s>r&&(r=s,o=e)});else while(++i<s)e[i]>o&&(o=e[i]);return o}function En(e,t,n){var r=Infinity,i=-1,s=e?e.length:0,o=r;if(t||!Ut(e))t=!t&&nn(e)?wt:xt(t,n),mn(e,function(e,n,i){var s=t(e,n,i);s<r&&(r=s,o=e)});else while(++i<s)e[i]<o&&(o=e[i]);return o}function Sn(e,t){var n=[];return mn(e,function(e){n.push(e[t])}),n}function xn(e,t,n,r){var i=arguments.length<3;return t=xt(t,r),mn(e,function(e,r,s){n=i?(i=!1,e):t(n,e,r,s)}),n}function Tn(e,t,n,r){var i=e,s=e?e.length:0,o=arguments.length<3;if(typeof s!="number"){var u=sn(e);s=u.length}else st&&nn(e)&&(i=e.split(""));return mn(e,function(e,a,f){a=u?u[--s]:--s,n=o?(o=!1,i[a]):t.call(r,n,i[a],a,f)}),n}function Nn(e,t,n){return t=xt(t,n),dn(e,function(e,n,r){return!t(e,n,r)})}function Cn(e){var t=-1,n=Array(e?e.length:0);return mn(e,function(e){var r=A(z()*(++t+1));n[t]=n[r],n[r]=e}),n}function kn(e){var t=e?e.length:0;return typeof t=="number"?t:sn(e).length}function Ln(e,t,n){var r;t=xt(t,n);if(Ut(e)){var i=-1,s=e.length;while(++i<s)if(r=t(e[i],i,e))break}else mn(e,function(e,n,i){return!(r=t(e,n,i))});return!!r}function An(e,t,n){var r=[];t=xt(t,n),mn(e,function(e,n,i){r.push({criteria:t(e,n,i),index:n,value:e})});var i=r.length;r.sort(Et);while(i--)r[i]=r[i].value;return r}function On(e){return e&&typeof e.length=="number"?(it?nn(e):typeof e=="string")?e.split(""):P.call(e):ln(e)}function Mn(e,t){var n=[];return Ot(t,function(e,t){n.push(t)}),dn(e,function(e){var r=n.length;while(r--){var i=e[n[r]]===t[n[r]];if(!i)break}return!!i})}function _n(e){var t=-1,n=e?e.length:0,r=[];while(++t<n){var i=e[t];i&&r.push(i)}return r}function Dn(e){var t=-1,n=e?e.length:0,r=L.apply(o,arguments),i=bt(r,n),s=[];while(++t<n){var u=e[t];i(u)||s.push(u)}return s}function Pn(e,t,n){if(e)return t==null||n?e[0]:P.call(e,0,t)}function Hn(e,t){var n=-1,r=e?e.length:0,i=[];while(++n<r){var s=e[n];Ut(s)?_.apply(i,t?s:Hn(s)):i.push(s)}return i}function Bn(e,t,n){var r=-1,i=e?e.length:0;if(typeof n=="number")r=(n<0?R(0,i+n):n||0)-1;else if(n)return r=Wn(e,t),e[r]===t?r:-1;while(++r<i)if(e[r]===t)return r;return-1}function jn(e,t,n){return e?P.call(e,0,-(t==null||n?1:t)):[]}function Fn(e){var t=arguments,n=t.length,r={},i=[];return mn(e,function(e){if(Bn(i,e)<0){var s=n;while(--s)if(!(r[s]||(r[s]=bt(t[s])))(e))return;i.push(e)}}),i}function In(e,t,n){if(e){var r=e.length;return t==null||n?e[r-1]:P.call(e,-t||r)}}function qn(e,t,n){var r=e?e.length:0;typeof n=="number"&&(r=(n<0?R(0,r+n):U(n,r-1))+1);while(r--)if(e[r]===t)return r;return-1}function Rn(e,t){var n=-1,r=e?e.length:0,i={};while(++n<r){var s=e[n];t?i[s]=t[n]:i[s[0]]=s[1]}return i}function Un(e,t,n){e=+e||0,n=+n||1,t==null&&(t=e,e=0);var r=-1,i=R(0,k((t-e)/n)),s=Array(i);while(++r<i)s[r]=e,e+=n;return s}function zn(e,t,n){return e?P.call(e,t==null||n?1:t):[]}function Wn(e,t,n,r){var i=0,s=e?e.length:i;n=n?xt(n,r):fr,t=n(t);while(i<s){var o=i+s>>>1;n(e[o])<t?i=o+1:s=o}return i}function Xn(){return Vn(L.apply(o,arguments))}function Vn(e,t,n,r){var i=-1,s=e?e.length:0,o=[],u=o;typeof t=="function"&&(r=n,n=t,t=!1);var a=!t&&s>74;if(a)var f={};n&&(u=[],n=xt(n,r));while(++i<s){var l=e[i],c=n?n(l,i,e):l;a&&(u=M.call(f,c+"")?f[c]:f[c]=[]);if(t?!i||u[u.length-1]!==c:Bn(u,c)<0)(n||a)&&u.push(c),o.push(l)}return o}function $n(e){var t=-1,n=e?e.length:0,r=bt(arguments,1,20),i=[];while(++t<n){var s=e[t];r(s)||i.push(s)}return i}function Jn(e){var t=-1,n=e?wn(Sn(arguments,"length")):0,r=Array(n);while(++t<n)r[t]=Sn(arguments,t);return r}function Kn(e,t){return e<1?t():function(){if(--e<1)return t.apply(this,arguments)}}function Qn(e,t){return at||B&&arguments.length>2?B.call.apply(B,arguments):St(e,t,P.call(arguments,2))}function Gn(e){var t=arguments,n=t.length>1?0:(t=It(e),-1),r=t.length;while(++n<r){var i=t[n];e[i]=Qn(e[i],e)}return e}function Yn(){var e=arguments;return function(){var t=arguments,n=e.length;while(n--)t=[e[n].apply(this,t)];return t[0]}}function Zn(e,t,n){function u(){o=null,n||(i=e.apply(s,r))}var r,i,s,o;return function(){var a=n&&!o;return r=arguments,s=this,clearTimeout(o),o=setTimeout(u,t),a&&(i=e.apply(s,r)),i}}function er(e,t){var n=P.call(arguments,2);return setTimeout(function(){e.apply(r,n)},t)}function tr(e){var t=P.call(arguments,1);return setTimeout(function(){e.apply(r,t)},1)}function nr(e,t){return St(t,e,P.call(arguments,2))}function rr(e,t){var n={};return function(){var r=t?t.apply(this,arguments):arguments[0];return M.call(n,r)?n[r]:n[r]=e.apply(this,arguments)}}function ir(e){var t,n=!1;return function(){return n?t:(n=!0,t=e.apply(this,arguments),e=null,t)}}function sr(e){return St(e,P.call(arguments,1))}function or(e,t){function u(){o=new Date,s=null,r=e.apply(i,n)}var n,r,i,s,o=0;return function(){var a=new Date,f=t-(a-o);return n=arguments,i=this,f<=0?(clearTimeout(s),o=a,r=e.apply(i,n)):s||(s=setTimeout(u,f)),r}}function ur(e,t){return function(){var n=[e];return _.apply(n,arguments),t.apply(this,n)}}function ar(e){return e==null?"":(e+"").replace(x,Ct)}function fr(e){return e}function lr(e){mn(It(e),function(t){var n=dt[t]=e[t];dt.prototype[t]=function(){var e=[this.__wrapped__];_.apply(e,arguments);var t=n.apply(dt,e);return this.__chain__&&(t=new dt(t),t.__chain__=!0),t}})}function cr(){return n._=c,this}function hr(e,t){return e==null&&t==null&&(t=1),e=+e||0,t==null&&(t=e,e=0),e+A(z()*((+t||0)-e+1))}function pr(e,t){var n=e?e[t]:null;return Kt(n)?e[t]():n}function dr(e,t,n){e||(e=""),n||(n={});var r,i,s=dt.templateSettings,o=0,u=n.interpolate||s.interpolate||S,a="__p += '",f=n.variable||s.variable,l=f,c=RegExp((n.escape||s.escape||S).source+"|"+u.source+"|"+(u===E?w:S).source+"|"+(n.evaluate||s.evaluate||S).source+"|$","g");e.replace(c,function(t,n,i,s,u,f){i||(i=s),a+=e.slice(o,f).replace(T,Nt),a+=n?"' +\n__e("+n+") +\n'":u?"';\n"+u+";\n__p += '":i?"' +\n((__t = ("+i+")) == null ? '' : __t) +\n'":"",r||(r=u||h.test(n||i)),o=f+t.length}),a+="';\n";if(!l){f="obj";if(r)a="with ("+f+") {\n"+a+"\n}\n";else{var p=RegExp("(\\(\\s*)"+f+"\\."+f+"\\b","g");a=a.replace(y,"$&"+f+".").replace(p,"$1__d")}}a=(r?a.replace(d,""):a).replace(v,"$1").replace(m,"$1;"),a="function("+f+") {\n"+(l?"":f+" || ("+f+" = {});\n")+"var __t, __p = '', __e = _.escape"+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":(l?"":", __d = "+f+"."+f+" || "+f)+";\n")+a+"return __p\n}";var g=lt?"\n//@ sourceURL="+(n.sourceURL||"/lodash/template/source["+C++ +"]"):"";try{i=Function("_","return "+a+g)(dt)}catch(b){throw b.source=a,b}return t?i(t):(i.source=a,i)}function vr(e,t,n){e=+e||0;var r=-1,i=Array(e);while(++r<e)i[r]=t.call(n,r);return i}function mr(e){return e==null?"":(e+"").replace(p,Lt)}function gr(e){var t=a++;return e?e+t:t}function yr(e){return e=new dt(e),e.__chain__=!0,e}function br(e,t){return t(e),e}function wr(){return this.__chain__=!0,this}function Er(){return this.__wrapped__}var i=typeof exports=="object"&&exports,s=typeof e=="object"&&e;s.global===s&&(n=s);var o=[],u=new function(){},a=0,f=u,l=30,c=n._,h=/[-?+=!~*%&^<>|{(\/]|\[\D|\b(?:delete|in|instanceof|new|typeof|void)\b/,p=/&(?:amp|lt|gt|quot|#x27);/g,d=/\b__p \+= '';/g,v=/\b(__p \+=) '' \+/g,m=/(__e\(.*?\)|\b__t\)) \+\n'';/g,g=/\w*$/,y=/(?:__e|__t = )\(\s*(?![\d\s"']|this\.)/g,b=RegExp("^"+(u.valueOf+"").replace(/[.*+?^=!:${}()|[\]\/\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),w=/\$\{((?:(?=\\?)\\?[\s\S])*?)}/g,E=/<%=([\s\S]+?)%>/g,S=/($^)/,x=/[&<>"']/g,T=/['\n\r\t\u2028\u2029\\]/g,N=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],C=0,k=Math.ceil,L=o.concat,A=Math.floor,O=b.test(O=Object.getPrototypeOf)&&O,M=u.hasOwnProperty,_=o.push,D=u.propertyIsEnumerable,P=o.slice,H=u.toString,B=b.test(B=P.bind)&&B,j=b.test(j=Array.isArray)&&j,F=n.isFinite,I=n.isNaN,q=b.test(q=Object.keys)&&q,R=Math.max,U=Math.min,z=Math.random,W="[object Arguments]",X="[object Array]",V="[object Boolean]",$="[object Date]",J="[object Function]",K="[object Number]",Q="[object Object]",G="[object RegExp]",Y="[object String]",Z,et,tt=(tt={0:1,length:1},o.splice.call(tt,0,1),tt[0]),nt=!0;(function(){function t(){this.x=1}var e=[];t.prototype={valueOf:1,y:1};for(var n in new t)e.push(n);for(n in arguments)nt=!n;Z=!/valueOf/.test(e),et=e[0]!="x"})(1);var rt=!At(arguments),it=P.call("x")[0]!="x",st="x"[0]+Object("x")[0]!="xx";try{var ot=({toString:0}+"",H.call(n.document||0)==Q)}catch(ut){}var at=B&&/\n|Opera/.test(B+H.call(n.opera)),ft=q&&/^.+$|true/.test(q+!!n.attachEvent);try{var lt=(Function("//@")(),!n.attachEvent)}catch(ut){}var ct={};ct[W]=ct[J]=!1,ct[X]=ct[V]=ct[$]=ct[K]=ct[Q]=ct[G]=ct[Y]=!0;var ht={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,"undefined":!1},pt={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"};dt.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:E,variable:""};var vt=dr("<% if (obj.useStrict) { %>'use strict';\n<% } %>var index, value, iteratee = <%= firstArg %>, result = <%= firstArg %>;\nif (!<%= firstArg %>) return result;\n<%= top %>;\n<% if (arrayLoop) { %>var length = iteratee.length; index = -1;\nif (typeof length == 'number') { <% if (noCharByIndex) { %>\n if (isString(iteratee)) {\n iteratee = iteratee.split('')\n } <% } %>\n while (++index < length) {\n value = iteratee[index];\n <%= arrayLoop %>\n }\n}\nelse { <% } else if (noArgsEnum) { %>\n var length = iteratee.length; index = -1;\n if (length && isArguments(iteratee)) {\n while (++index < length) {\n value = iteratee[index += ''];\n <%= objectLoop %>\n }\n } else { <% } %> <% if (!hasDontEnumBug) { %>\n var skipProto = typeof iteratee == 'function' && \n propertyIsEnumerable.call(iteratee, 'prototype');\n <% } %> <% if (isKeysFast && useHas) { %>\n var ownIndex = -1,\n ownProps = objectTypes[typeof iteratee] ? nativeKeys(iteratee) : [],\n length = ownProps.length;\n\n while (++ownIndex < length) {\n index = ownProps[ownIndex];\n <% if (!hasDontEnumBug) { %>if (!(skipProto && index == 'prototype')) {\n <% } %> value = iteratee[index];\n <%= objectLoop %>\n <% if (!hasDontEnumBug) { %>}\n<% } %> } <% } else { %>\n for (index in iteratee) {<% if (!hasDontEnumBug || useHas) { %>\n if (<% if (!hasDontEnumBug) { %>!(skipProto && index == 'prototype')<% } if (!hasDontEnumBug && useHas) { %> && <% } if (useHas) { %>hasOwnProperty.call(iteratee, index)<% } %>) { <% } %>\n value = iteratee[index];\n <%= objectLoop %>; <% if (!hasDontEnumBug || useHas) { %>\n }<% } %>\n } <% } %> <% if (hasDontEnumBug) { %>\n\n var ctor = iteratee.constructor;\n <% for (var k = 0; k < 7; k++) { %>\n index = '<%= shadowed[k] %>';\n if (<% if (shadowed[k] == 'constructor') { %>!(ctor && ctor.prototype === iteratee) && <% } %>hasOwnProperty.call(iteratee, index)) {\n value = iteratee[index];\n <%= objectLoop %>\n } <% } %> <% } %> <% if (arrayLoop || noArgsEnum) { %>\n}<% } %>\n<%= bottom %>;\nreturn result"),mt={args:"collection, callback, thisArg",top:"callback = createCallback(callback, thisArg)",arrayLoop:"if (callback(value, index, collection) === false) return result",objectLoop:"if (callback(value, index, collection) === false) return result"},gt={useHas:!1,args:"object",top:"for (var argsIndex = 1, argsLength = arguments.length; argsIndex < argsLength; argsIndex++) {\n if (iteratee = arguments[argsIndex]) {",objectLoop:"result[index] = value",bottom:" }\n}"},yt={arrayLoop:null};rt&&(At=function(e){return e?M.call(e,"callee"):!1});var Ot=Tt(mt,yt,{useHas:!1}),Mt=Tt(mt,yt),Pt={"&":"&","<":"<",">":">",'"':""","'":"'"},Ht=Rt(Pt),jt=Tt(gt,{objectLoop:"if (result[index] == null) "+gt.objectLoop}),Ft=Tt(gt),Ut=j||function(e){return H.call(e)==X};Kt(/x/)&&(Kt=function(e){return H.call(e)==J});var en=O?function(e){if(!e||typeof e!="object")return!1;var t=e.valueOf,n=typeof t=="function"&&(n=O(t))&&O(n);return n?e==n||O(e)==n&&!At(e):_t(e)}:_t,sn=q?function(e){return typeof e=="function"&&D.call(e,"prototype")?Dt(e):Qt(e)?q(e):[]}:Dt,mn=Tt(mt);dt.VERSION="0.9.2",dt.after=Kn,dt.bind=Qn,dt.bindAll=Gn,dt.chain=yr,dt.clone=Bt,dt.compact=_n,dt.compose=Yn,dt.contains=cn,dt.countBy=hn,dt.debounce=Zn,dt.defaults=jt,dt.defer=tr,dt.delay=er,dt.difference=Dn,dt.escape=ar,dt.every=pn,dt.extend=Ft,dt.filter=dn,dt.find=vn,dt.first=Pn,dt.flatten=Hn,dt.forEach=mn,dt.forIn=Ot,dt.forOwn=Mt,dt.functions=It,dt.groupBy=gn,dt.has=qt,dt.identity=fr,dt.indexOf=Bn,dt.initial=jn,dt.intersection=Fn,dt.invert=Rt,dt.invoke=yn,dt.isArguments=At,dt.isArray=Ut,dt.isBoolean=zt,dt.isDate=Wt,dt.isElement=Xt,dt.isEmpty=Vt,dt.isEqual=$t,dt.isFinite=Jt,dt.isFunction=Kt,dt.isNaN=Gt,dt.isNull=Yt,dt.isNumber=Zt,dt.isObject=Qt,dt.isPlainObject=en,dt.isRegExp=tn,dt.isString=nn,dt.isUndefined=rn,dt.keys=sn,dt.last=In,dt.lastIndexOf=qn,dt.lateBind=nr,dt.map=bn,dt.max=wn,dt.memoize=rr,dt.merge=on,dt.min=En,dt.mixin=lr,dt.noConflict=cr,dt.object=Rn,dt.omit=un,dt.once=ir,dt.pairs=an,dt.partial=sr,dt.pick=fn,dt.pluck=Sn,dt.random=hr,dt.range=Un,dt.reduce=xn,dt.reduceRight=Tn,dt.reject=Nn,dt.rest=zn,dt.result=pr,dt.shuffle=Cn,dt.size=kn,dt.some=Ln,dt.sortBy=An,dt.sortedIndex=Wn,dt.tap=br,dt.template=dr,dt.throttle=or,dt.times=vr,dt.toArray=On,dt.unescape=mr,dt.union=Xn,dt.uniq=Vn,dt.uniqueId=gr,dt.values=ln,dt.where=Mn,dt.without=$n,dt.wrap=ur,dt.zip=Jn,dt.all=pn,dt.any=Ln,dt.collect=bn,dt.detect=vn,dt.drop=zn,dt.each=mn,dt.foldl=xn,dt.foldr=Tn,dt.head=Pn,dt.include=cn,dt.inject=xn,dt.methods=It,dt.select=dn,dt.tail=zn,dt.take=Pn,dt.unique=Vn,dt._iteratorTemplate=vt,lr(dt),dt.prototype.chain=wr,dt.prototype.value=Er,mn(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=o[e];dt.prototype[e]=function(){var e=this.__wrapped__;return t.apply(e,arguments),tt&&e.length===0&&delete e[0],this.__chain__&&(e=new dt(e),e.__chain__=!0),e}}),mn(["concat","join","slice"],function(e){var t=o[e];dt.prototype[e]=function(){var e=this.__wrapped__,n=t.apply(e,arguments);return this.__chain__&&(n=new dt(n),n.__chain__=!0),n}}),typeof t=="function"&&typeof t.amd=="object"&&t.amd?(n._=dt,t("underscore",[],function(){return dt})):i?typeof module=="object"&&module&&module.exports==i?(module.exports=dt)._=dt:i._=dt:n._=dt}(this),t("dataseries/predicates",["require","underscore"],function(e,t){var n={};return n.isDate=function(n){return t.isDate(n)},n.isFunction=function(n,r){return r===undefined&&(r=!1),t.isFunction(n)&&(r==0||n.length>0)&&(t.isNumber(r)?n.length==r:!0)},n.isNumber=function(n){return t.isNumber(n)},n.isNegativeNumber=function(n){return t.isNumber(n)&&n<0},n.isPositiveNumber=function(n,r){arguments.length<2&&(r=!0);if(!t.isBoolean(r))throw new Error("isPositiveNumber(): withZero must be a boolean");return t.isNumber(n)&&(r?n>=0:n>0)},n.isInteger=function(n){return t.isNumber(n)&&parseInt(n,10)==n},n.isNegativeInteger=function(t){return n.isInteger(t)&&t<0},n.isPositiveInteger=function(r,i){arguments.length<2&&(i=!0);if(!t.isBoolean(i))throw new Error("isPositiveInteger(): withZero must be a boolean");return n.isInteger(r)&&(i?r>=0:r>0)},n.isArrayOf=function(e,n,r){if(!t.isFunction(n))throw new Error("isArrayOf(): predicate must be a function");return r===undefined&&(r=!0),t.isArray(e)&&(r==0||e.length>0)&&(t.isNumber(r)?e.length==r:!0)&&t.all(e,function(e){return n(e)})},n}),t("dataseries/functions",["require","underscore","dataseries/predicates"],function(e,t,n){var r={};return r.identity=function(t){return t},r.polynomial=function(r,i){var s=t.defaults(t.isPlainObject(i)?i:{a:i},{a:[]});if(!t.isNumber(r))throw new Error("polynomial(): x must be a number");if(!n.isArrayOf(s.a,t.isNumber,!1))throw new Error("polynomial(): a must be an array of numbers or an empty array");var o=0,u=s.a.length-1;for(var a=0;a<=u;a++)o+=s.a[a]*Math.pow(r,a);return o},r.linear=function(n,i,s){var o=t.defaults(t.isPlainObject(i)?i:{a:i,b:s},{a:1,b:0});return r.polynomial(n,[o.b,o.a])},r.square=function(n,i,s,o){var u=t.defaults(t.isPlainObject(i)?i:{a:i,b:s,c:o},{a:1,b:0,c:0});return r.polynomial(n,[u.c,u.b,u.a])},r.cubic=function(n,i,s,o,u){var a=t.defaults(t.isPlainObject(i)?i:{a:i,b:s,c:o,d:u},{a:1,b:0,c:0,d:0});return r.polynomial(n,[a.d,a.c,a.b,a.a])},r.exp=function(e,n,r,i,s){var o=t.defaults(t.isPlainObject(n)?n:{a:n,b:r,c:i,d:s},{a:Math.E,b:1,c:1,d:0});if(!t.isNumber(e))throw new Error("exp(): x must be a number");if(!t.isNumber(o.a))throw new Error("exp(): a must be a number");if(!t.isNumber(o.b))throw new Error("exp(): b must be a number");if(!t.isNumber(o.c))throw new Error("exp(): c must be a number");if(!t.isNumber(o.d))throw new Error("exp(): d must be a number");return o.c*Math.pow(o.a,o.b*e)+o.d},r.log=function(e,r,i,s){var o=t.defaults(t.isPlainObject(r)?r:{a:r,b:i,c:s},{a:Math.E,b:1,c:0});if(!t.isNumber(e))throw new Error("log(): x must be a number");if(!n.isPositiveNumber(o.a))throw new Error("log(): a must be a number >= 0");if(!t.isNumber(o.b))throw new Error("log(): b must be a number");if(!t.isNumber(o.c))throw new Error("log(): c must be a number");return o.b*Math.log(e)/Math.log(o.a)+o.c},r.sin=function(e,r,i,s,o){var u=t.defaults(t.isPlainObject(r)?r:{a:r,f:i,"φ":s,b:o},{a:1,f:1,"φ":0,b:0});if(!t.isNumber(e))throw new Error("sin(): x must be a number");if(!t.isNumber(u.a))throw new Error("sin(): a must be a number");if(!n.isPositiveNumber(u.f))throw new Error("sin(): f must be a number >= 0");if(!t.isNumber(u.φ))throw new Error("sin(): φ must be a number");if(!t.isNumber(u.b))throw new Error("sin(): b must be a number");return u.a*Math.sin(6.283185307179586*u.f*e+u.φ)+u.b},r.cos=function(e,r,i,s,o){var u=t.defaults(t.isPlainObject(r)?r:{a:r,f:i,"φ":s,b:o},{a:1,f:1,"φ":0,b:0});if(!t.isNumber(e))throw new Error("cos(): x must be a number");if(!t.isNumber(u.a))throw new Error("cos(): a must be a number");if(!n.isPositiveNumber(u.f))throw new Error("cos(): f must be a number >= 0");if(!t.isNumber(u.φ))throw new Error("cos(): φ must be a number");if(!t.isNumber(u.b))throw new Error("cos(): b must be a number");return u.a*Math.cos(6.283185307179586*u.f*e+u.φ)+u.b},r}),t("dataseries/time",["require","underscore","dataseries/predicates"],function(e,t,n){var r={};return r.SECOND=1e3,r.MINUTE=6e4,r.HOUR=36e5,r.DAY=864e5,r.WEEK=6048e5,r.MONTH=function(e){if(!t.isDate(e))throw new Error("MONTH(): 'date' must be a date");var n=(new Date(e.getFullYear(),e.getMonth()+1,0)).getDate()*r.DAY,i=(new Date(e.getTime()+n)).getHours();return i==23&&(i=-1),n-i*r.HOUR},r.YEAR=function(e){if(!t.isDate(e))throw new Error("YEAR(): 'date' must be a date");return new Date(e.getFullYear(),11,31)-new Date(e.getFullYear(),0,0)},r.range=function(i,s,o){arguments.length<3&&(o=r.DAY);if(!t.isDate(i))throw new Error("range(): start must be a date");if(t.isDate(s)&&i>=s)throw new Error("range(): start must be < end");if(!t.isDate(s)&&!n.isPositiveInteger(s,!1))throw new Error("range(): end must be a date or an integer > 0");if(!t.isFunction(o)&&!n.isPositiveNumber(o,!1))throw new Error("range(): step must be a function or a number > 0");var u=t.isDate(s),a=t.isFunction(o),f=[],l=i,c=u?l:1;while(c<=s)f.push(l),l=new Date(l.getTime()+(a?o(l):o)),c=u?l:c+1;return f},r}),t("dataseries/generators/FunctionDataSeriesGenerator",["require","underscore","dataseries/predicates","dataseries/time"],function(e,t,n,r){var i=function s(e,i){var o,u=new Array(0),a,f,l,c=new Array(0),h=function(){var n={generator:new s(e,i),inputs:t.clone(u,!0),outputs:new Array(0)};return f&&n.inputs.length>0&&(n.timeRange=r.range(f[0],n.inputs.length,f[1])),n},p=function(t){var n=new Array(0);for(var r=0;r<t.inputs.length;r++){var s=t.inputs[r];i[0]=s;var o=e.apply(undefined,i);if(a&&!a.call(t,o,s,r))continue;t.outputs.push(o),n.push(s)}t.inputs=n},d=function(e){if(!l)return;e.outputs=t.map(e.inputs,function(t,n){return t=e.timeRange?e.timeRange[n]:t,l.call(e,e.outputs[n],t,n)})},v=function(e){t.each(c,function(t){t.args[0]=e.outputs,e.outputs=t.callback.apply(e,t.args)})};this.inputs=function(e){if(arguments.length===0)return t.clone(u,!0);if(!t.isArray(e))throw new Error("inputs(): values must be an array");return u=t.clone(e,!0),this},this.filter=function(e){if(!t.isFunction(e)&&e!==undefined)throw new Error("filter(): calllback must be a function or undefined");return a=e,this},this.time=function(e,i){arguments.length<2&&(i=r.DAY);if(e===undefined||i===undefined)f=undefined;else{if(!t.isDate(e))throw new Error("time(): start must be a date");if(!t.isFunction(i)&&!n.isPositiveNumber(i,!1))throw new Error("time(): precision must be a function or a number > 0");f=[new Date(e.getTime()),i]}return this},this.transform=function(e){if(!t.isFunction(e)&&e!==undefined)throw new Error("transform(): calllback must be a function or undefined");return l=e,this},this.call=function(e){if(!t.isFunction(e))throw new Error("call(): callback must be a function");var n=Array.prototype.slice.call(arguments,1);return n.unshift(undefined),c.push({callback:e,args:n}),this},this.values=function(){return o=h.call(this),p(o),d(o),v(o),o.outputs}};return i}),t("dataseries/generators",["require","underscore","dataseries/generators/FunctionDataSeriesGenerator","dataseries/functions"],function(e,t,n,r){var i={};return i.f=function(i){arguments.length===0&&(i=r.identity);if(!t.isFunction(i))throw new Error("f(): algorithm must be a function");var s=Array.prototype.slice.call(arguments,1);return s.unshift(undefined),new n(i,s)},i}),t("dataseries/initialize",["require","underscore","dataseries/predicates"],function(e,t,n){var r=function(e,r){arguments.length===1&&(r=1);if(!n.isPositiveInteger(r,!1))throw new Error("initialize(): length must be an integer number > 0");var i=t.isFunction(e),s=new Array(r);for(var o=0;o<r;o++){var u=i?e():e;s[o]=t.clone(u,!0)}return s};return r}),t("dataseries/normalize",["require","underscore"],function(e,t){var n=function(n,r,i,s){arguments.length<2&&(r=0),arguments.length<3&&(i=1);if(!t.isArray(n))throw new Error("normalize(): values must be an array");if(!t.isNumber(r))throw new Error("normalize(): lower must be a number");if(!t.isNumber(i))throw new Error("normalize(): upper must be a number");if(r<i){if(arguments.length>=4&&!t.isString(s))throw new Error("normalize(): propertyName must be a string");if(n.length===0)return[];var o=t.min(n,s),u=t.max(n,s);s!==undefined&&(o=o[s],u=u[s]);if(o===Infinity)throw new Error("normalize(): unable to determine min/max numbers in values - check propertyName");if(!t.isNumber(o))throw new Error("normalize(): unable to normalize non-numeric data");var a=u-o,f=i-r,l=f/a;for(var c=0;c<n.length;c++){var h=s!==undefined?n[c][s]:n[c],p=a!==0?(h-o)*l+r:0;s!==undefined?n[c][s]=p:n[c]=p}return n}throw new Error("normalize(): lower must be < upper")};return n}),t("dataseries/random",["require","underscore"],function(e,t){var n={};return n.rand=function(n,r){arguments.length<1&&(n=0),arguments.length<2&&(r=1);if(!t.isNumber(n))throw new Error("rand(): lower must be a number");if(!t.isNumber(r))throw new Error("rand(): upper must be a number");if(n<r)return(r-n)*Math.random()+n;throw new Error("rand(): lower must be < upper")},n}),t("dataseries/range",["require","underscore","dataseries/predicates"],function(e,t,n){var r=function(r,i,s){arguments.length===1&&(i=r,r=0),arguments.length<3&&(s=1);if(!t.isNumber(r))throw new Error("range(): start must be a number");if(!t.isNumber(i))throw new Error("range(): end must be a number");if(!n.isPositiveNumber(s,!1))throw new Error("range(): step must be a number > 0");if(r===i)return[];var o=[],u=r<i?1:-1,a=Math.abs((i-r)/s)+1>>0,f=r;do o.push(f),f+=u*s;while(o.length<a);return o};return r}),t("dataseries/transforms",["require","underscore"],function(e,t){var n={};return n.pair=function(e,t){return[t,e]},n.point=function(e,t){return{x:t,y:e}},n}),t("dataseries/utils",["require","underscore"],function(e,t){var n={};return n.hash=function(n){if(!t.isString(n))throw new Error("hash(): 'string' must be a string");var r=2166136261,i=16777619,s=r;for(var o=0;o<n.length;o++){var u=n.charCodeAt(o)&255;s=(s^u)*i}return s.toString(36)},n.hashObject=function(r){function s(e,n){n===undefined&&(n=0);if(n>=i)return[];if(!t.isObject(e))throw new Error("hashObject(): 'object' must be an object");var r=[];for(var o in e)t.isObject(e[o])?r=r.concat(s(e[o],n+1)):r.push(o+o.length+e[o]+(e[o].length!==undefined?e[o].length:""));return r}var i=1e3,o=t.unique(s(r));return n.hash(o.join(","))},n}),t("dataseries/visitors",["require","underscore","dataseries/utils"],function(e,t,n){var r=function(t,r,i){var s=[],o={},u=[{node:t,i:[]}];while(u.length>0){var a=u.shift(),f=a.node;Object.defineProperty(f,"__hash",{value:n.hashObject(f),enumerable:!1,writable:!0}),o[f.__hash]=f,i(f,a.i)&&r(f,a.i);for(var l=0;l<f.children.length;l++){var c=f.children[l];(c.__hash===undefined||o[c.__hash]===undefined)&&u.push({node:c,i:a.i.concat(l)})}}},i=function o(e,r,i,s,u){arguments.length<4&&(s=[]),arguments.length<5&&(u={}),Object.defineProperty(e,"__hash",{value:n.hashObject(e),enumerable:!1,writable:!0}),u[e.__hash]=e,i(e,s)&&r(e,s);if(!t.isArray(e.children))return;for(var a=0;a<e.children.length;a++){var f=e.children[a];(f.__hash===undefined||u[f.__hash]===undefined)&&o(f,r,i,s.concat(a),u)}},s={};return s.breadthFirst=function(n,i,s){arguments.length<3&&(s=function(e){return!0});if(!t.isFunction(i))throw new Error("breadthFirst(): callback must be a function");if(!t.isFunction(s))throw new Error("breadthFirst(): doProcess must be a function");r(n,i,s)},s.depthFirst=function(n,r,s){arguments.length<3&&(s=function(e){return!0});if(!t.isFunction(r))throw new Error("depthFirst(): callback must be a function");if(!t.isFunction(s))throw new Error("depthFirst(): doProcess must be a function");i(n,r,s)},s}),t("dataseries",["require","underscore","dataseries/functions","dataseries/generators","dataseries/initialize","dataseries/normalize","dataseries/predicates","dataseries/random","dataseries/range","dataseries/time","dataseries/transforms","dataseries/utils","dataseries/visitors"],function(e,t,n,r,i,s,o,u,a,f,l,c,h){return t.noConflict(),{functions:n,generators:r,initialize:i,normalize:s,predicates:o,random:u,range:a,time:f,transforms:l,utils:c,visitors:h}});var s=i("dataseries");typeof module!="undefined"&&module.exports?module.exports=s:n?function(e){e(function(){return s})}(n):e.ds=s})(this);