mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 22:55:35 +00:00
1 line
101 KiB
JavaScript
1 line
101 KiB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.d3={})}(this,function(t){"use strict";function n(t,e){return t<e?-1:e<t?1:e<=t?0:NaN}var f,r,o=(1===(f=n).length&&(r=f,f=function(t,e){return n(r(t),e)}),{left:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n<r;){var a=n+r>>>1;f(t[a],e)<0?n=a+1:r=a}return n},right:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n<r;){var a=n+r>>>1;0<f(t[a],e)?r=a:n=a+1}return n}}).right;var v=Math.sqrt(50),m=Math.sqrt(10),w=Math.sqrt(2);function u(t,e,n){var r=(e-t)/Math.max(0,n),a=Math.floor(Math.log(r)/Math.LN10),f=r/Math.pow(10,a);return 0<=a?(v<=f?10:m<=f?5:w<=f?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(v<=f?10:m<=f?5:w<=f?2:1)}var a=Array.prototype.slice;function T(t){return t}var C=1,k=2,S=3,U=4,D=1e-6;function i(t){return"translate("+(t+.5)+",0)"}function c(t){return"translate(0,"+(t+.5)+")"}function E(){return!this.__axis}function e(p,g){var y=[],_=null,v=null,m=6,w=6,x=3,M=p===C||p===U?-1:1,A=p===U||p===k?"x":"y",N=p===C||p===S?i:c;function e(t){var e=null==_?g.ticks?g.ticks.apply(g,y):g.domain():_,n=null==v?g.tickFormat?g.tickFormat.apply(g,y):T:v,r=Math.max(m,0)+x,a=g.range(),f=+a[0]+.5,i=+a[a.length-1]+.5,c=(g.bandwidth?function(e){var n=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(n=Math.round(n)),function(t){return+e(t)+n}}:function(e){return function(t){return+e(t)}})(g.copy()),o=t.selection?t.selection():t,u=o.selectAll(".domain").data([null]),s=o.selectAll(".tick").data(e,g).order(),d=s.exit(),l=s.enter().append("g").attr("class","tick"),h=s.select("line"),b=s.select("text");u=u.merge(u.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),s=s.merge(l),h=h.merge(l.append("line").attr("stroke","currentColor").attr(A+"2",M*m)),b=b.merge(l.append("text").attr("fill","currentColor").attr(A,M*r).attr("dy",p===C?"0em":p===S?"0.71em":"0.32em")),t!==o&&(u=u.transition(t),s=s.transition(t),h=h.transition(t),b=b.transition(t),d=d.transition(t).attr("opacity",D).attr("transform",function(t){return isFinite(t=c(t))?N(t):this.getAttribute("transform")}),l.attr("opacity",D).attr("transform",function(t){var e=this.parentNode.__axis;return N(e&&isFinite(e=e(t))?e:c(t))})),d.remove(),u.attr("d",p===U||p==k?w?"M"+M*w+","+f+"H0.5V"+i+"H"+M*w:"M0.5,"+f+"V"+i:w?"M"+f+","+M*w+"V0.5H"+i+"V"+M*w:"M"+f+",0.5H"+i),s.attr("opacity",1).attr("transform",function(t){return N(c(t))}),h.attr(A+"2",M*m),b.attr(A,M*r).text(n),o.filter(E).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",p===k?"start":p===U?"end":"middle"),o.each(function(){this.__axis=c})}return e.scale=function(t){return arguments.length?(g=t,e):g},e.ticks=function(){return y=a.call(arguments),e},e.tickArguments=function(t){return arguments.length?(y=null==t?[]:a.call(t),e):y.slice()},e.tickValues=function(t){return arguments.length?(_=null==t?null:a.call(t),e):_&&_.slice()},e.tickFormat=function(t){return arguments.length?(v=t,e):v},e.tickSize=function(t){return arguments.length?(m=w=+t,e):m},e.tickSizeInner=function(t){return arguments.length?(m=+t,e):m},e.tickSizeOuter=function(t){return arguments.length?(w=+t,e):w},e.tickPadding=function(t){return arguments.length?(x=+t,e):x},e}var s={value:function(){}};function d(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new l(r)}function l(t){this._=t}function h(t,e){for(var n,r=0,a=t.length;r<a;++r)if((n=t[r]).name===e)return n.value}function b(t,e,n){for(var r=0,a=t.length;r<a;++r)if(t[r].name===e){t[r]=s,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}l.prototype=d.prototype={constructor:l,on:function(t,e){var n,r,a=this._,f=(r=a,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(0<=n&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),i=-1,c=f.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++i<c;)if(n=(t=f[i]).type)a[n]=b(a[n],t.name,e);else if(null==e)for(n in a)a[n]=b(a[n],t.name,null);return this}for(;++i<c;)if((n=(t=f[i]).type)&&(n=h(a[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new l(t)},call:function(t,e){if(0<(n=arguments.length-2))for(var n,r,a=new Array(n),f=0;f<n;++f)a[f]=arguments[f+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(f=0,n=(r=this._[t]).length;f<n;++f)r[f].value.apply(e,a)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],a=0,f=r.length;a<f;++a)r[a].value.apply(e,n)}};var p="http://www.w3.org/1999/xhtml",g={svg:"http://www.w3.org/2000/svg",xhtml:p,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function y(t){var e=t+="",n=e.indexOf(":");return 0<=n&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),g.hasOwnProperty(e)?{space:g[e],local:t}:t}function _(t){var e=y(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(n){return function(){var t=this.ownerDocument,e=this.namespaceURI;return e===p&&t.documentElement.namespaceURI===p?t.createElement(n):t.createElementNS(e,n)}})(e)}function x(){}function M(t){return null==t?x:function(){return this.querySelector(t)}}function A(){return[]}var N=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var P=document.documentElement;if(!P.matches){var F=P.webkitMatchesSelector||P.msMatchesSelector||P.mozMatchesSelector||P.oMatchesSelector;N=function(t){return function(){return F.call(this,t)}}}}var L=N;function Y(t){return new Array(t.length)}function H(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}H.prototype={constructor:H,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var O="$";function q(t,e,n,r,a,f){for(var i,c=0,o=e.length,u=f.length;c<u;++c)(i=e[c])?(i.__data__=f[c],r[c]=i):n[c]=new H(t,f[c]);for(;c<o;++c)(i=e[c])&&(a[c]=i)}function I(t,e,n,r,a,f,i){var c,o,u,s={},d=e.length,l=f.length,h=new Array(d);for(c=0;c<d;++c)(o=e[c])&&(h[c]=u=O+i.call(o,o.__data__,c,e),u in s?a[c]=o:s[u]=o);for(c=0;c<l;++c)(o=s[u=O+i.call(t,f[c],c,f)])?((r[c]=o).__data__=f[c],s[u]=null):n[c]=new H(t,f[c]);for(c=0;c<d;++c)(o=e[c])&&s[h[c]]===o&&(a[c]=o)}function j(t,e){return t<e?-1:e<t?1:e<=t?0:NaN}function z(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function V(t){return t.trim().split(/^|\s+/)}function X(t){return t.classList||new R(t)}function R(t){this._node=t,this._names=V(t.getAttribute("class")||"")}function B(t,e){for(var n=X(t),r=-1,a=e.length;++r<a;)n.add(e[r])}function $(t,e){for(var n=X(t),r=-1,a=e.length;++r<a;)n.remove(e[r])}function Z(){this.textContent=""}function W(){this.innerHTML=""}function Q(){this.nextSibling&&this.parentNode.appendChild(this)}function J(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function G(){return null}function K(){var t=this.parentNode;t&&t.removeChild(this)}function tt(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function et(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}R.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);0<=e&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return 0<=this._names.indexOf(t)}};var nt={};"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(nt={mouseenter:"mouseover",mouseleave:"mouseout"}));function rt(n,t,e){return n=at(n,t,e),function(t){var e=t.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||n.call(this,t)}}function at(e,n,r){return function(t){try{e.call(this,this.__data__,n,r)}finally{}}}function ft(f){return function(){var t=this.__on;if(t){for(var e,n=0,r=-1,a=t.length;n<a;++n)e=t[n],f.type&&e.type!==f.type||e.name!==f.name?t[++r]=e:this.removeEventListener(e.type,e.listener,e.capture);++r?t.length=r:delete this.__on}}}function it(o,u,s){var d=nt.hasOwnProperty(o.type)?rt:at;return function(t,e,n){var r,a=this.__on,f=d(u,e,n);if(a)for(var i=0,c=a.length;i<c;++i)if((r=a[i]).type===o.type&&r.name===o.name)return this.removeEventListener(r.type,r.listener,r.capture),this.addEventListener(r.type,r.listener=f,r.capture=s),void(r.value=u);this.addEventListener(o.type,f,s),r={type:o.type,name:o.name,value:u,listener:f,capture:s},a?a.push(r):this.__on=[r]}}function ct(t,e,n){var r=z(t),a=r.CustomEvent;"function"==typeof a?a=new a(e,n):(a=r.document.createEvent("Event"),n?(a.initEvent(e,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(e,!1,!1)),t.dispatchEvent(a)}var ot=[null];function ut(t,e){this._groups=t,this._parents=e}function st(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function dt(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function lt(){}ut.prototype=function(){return new ut([[document.documentElement]],ot)}.prototype={constructor:ut,select:function(t){"function"!=typeof t&&(t=M(t));for(var e=this._groups,n=e.length,r=new Array(n),a=0;a<n;++a)for(var f,i,c=e[a],o=c.length,u=r[a]=new Array(o),s=0;s<o;++s)(f=c[s])&&(i=t.call(f,f.__data__,s,c))&&("__data__"in f&&(i.__data__=f.__data__),u[s]=i);return new ut(r,this._parents)},selectAll:function(t){var e;"function"!=typeof t&&(t=null==(e=t)?A:function(){return this.querySelectorAll(e)});for(var n=this._groups,r=n.length,a=[],f=[],i=0;i<r;++i)for(var c,o=n[i],u=o.length,s=0;s<u;++s)(c=o[s])&&(a.push(t.call(c,c.__data__,s,o)),f.push(c));return new ut(a,f)},filter:function(t){"function"!=typeof t&&(t=L(t));for(var e=this._groups,n=e.length,r=new Array(n),a=0;a<n;++a)for(var f,i=e[a],c=i.length,o=r[a]=[],u=0;u<c;++u)(f=i[u])&&t.call(f,f.__data__,u,i)&&o.push(f);return new ut(r,this._parents)},data:function(t,e){if(!t)return b=new Array(this.size()),s=-1,this.each(function(t){b[++s]=t}),b;var n,r=e?I:q,a=this._parents,f=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var i=f.length,c=new Array(i),o=new Array(i),u=new Array(i),s=0;s<i;++s){var d=a[s],l=f[s],h=l.length,b=t.call(d,d&&d.__data__,s,a),p=b.length,g=o[s]=new Array(p),y=c[s]=new Array(p);r(d,l,g,y,u[s]=new Array(h),b,e);for(var _,v,m=0,w=0;m<p;++m)if(_=g[m]){for(w<=m&&(w=m+1);!(v=y[w])&&++w<p;);_._next=v||null}}return(c=new ut(c,a))._enter=o,c._exit=u,c},enter:function(){return new ut(this._enter||this._groups.map(Y),this._parents)},exit:function(){return new ut(this._exit||this._groups.map(Y),this._parents)},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,a=n.length,f=Math.min(r,a),i=new Array(r),c=0;c<f;++c)for(var o,u=e[c],s=n[c],d=u.length,l=i[c]=new Array(d),h=0;h<d;++h)(o=u[h]||s[h])&&(l[h]=o);for(;c<r;++c)i[c]=e[c];return new ut(i,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,a=t[e],f=a.length-1,i=a[f];0<=--f;)(r=a[f])&&(i&&i!==r.nextSibling&&i.parentNode.insertBefore(r,i),i=r);return this},sort:function(n){function t(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}n||(n=j);for(var e=this._groups,r=e.length,a=new Array(r),f=0;f<r;++f){for(var i,c=e[f],o=c.length,u=a[f]=new Array(o),s=0;s<o;++s)(i=c[s])&&(u[s]=i);u.sort(t)}return new ut(a,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],a=0,f=r.length;a<f;++a){var i=r[a];if(i)return i}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var a,f=e[n],i=0,c=f.length;i<c;++i)(a=f[i])&&t.call(a,a.__data__,i,f);return this},attr:function(t,e){var n=y(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(e,n){return function(){var t=n.apply(this,arguments);null==t?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}:function(e,n){return function(){var t=n.apply(this,arguments);null==t?this.removeAttribute(e):this.setAttribute(e,t)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return 1<arguments.length?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(e,n,r){return function(){var t=n.apply(this,arguments);null==t?this.style.removeProperty(e):this.style.setProperty(e,t,r)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):(r=this.node(),a=t,r.style.getPropertyValue(a)||z(r).getComputedStyle(r,null).getPropertyValue(a));var r,a},property:function(t,e){return 1<arguments.length?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(e,n){return function(){var t=n.apply(this,arguments);null==t?delete this[e]:this[e]=t}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=V(t+"");if(arguments.length<2){for(var r=X(this.node()),a=-1,f=n.length;++a<f;)if(!r.contains(n[a]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?B:$)(this,t)}}:e?function(t){return function(){B(this,t)}}:function(t){return function(){$(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?Z:("function"==typeof t?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?W:("function"==typeof t?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(Q)},lower:function(){return this.each(J)},append:function(t){var e="function"==typeof t?t:_(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:_(t),r=null==e?G:"function"==typeof e?e:M(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(K)},clone:function(t){return this.select(t?et:tt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,a,f=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return 0<=n&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),i=f.length;if(!(arguments.length<2)){for(c=e?it:ft,null==n&&(n=!1),r=0;r<i;++r)this.each(c(f[r],e,n));return this}var c=this.node().__on;if(c)for(var o,u=0,s=c.length;u<s;++u)for(r=0,o=c[u];r<i;++r)if((a=f[r]).type===o.type&&a.name===o.name)return o.value},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return ct(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return ct(this,t,e)}})(t,e))}};var ht=1/.7,bt="\\s*([+-]?\\d+)\\s*",pt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",gt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",yt=/^#([0-9a-f]{3})$/,_t=/^#([0-9a-f]{6})$/,vt=new RegExp("^rgb\\("+[bt,bt,bt]+"\\)$"),mt=new RegExp("^rgb\\("+[gt,gt,gt]+"\\)$"),wt=new RegExp("^rgba\\("+[bt,bt,bt,pt]+"\\)$"),xt=new RegExp("^rgba\\("+[gt,gt,gt,pt]+"\\)$"),Mt=new RegExp("^hsl\\("+[pt,gt,gt]+"\\)$"),At=new RegExp("^hsla\\("+[pt,gt,gt,pt]+"\\)$"),Nt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Tt(t){var e;return t=(t+"").trim().toLowerCase(),(e=yt.exec(t))?new Dt((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=_t.exec(t))?Ct(parseInt(e[1],16)):(e=vt.exec(t))?new Dt(e[1],e[2],e[3],1):(e=mt.exec(t))?new Dt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=wt.exec(t))?kt(e[1],e[2],e[3],e[4]):(e=xt.exec(t))?kt(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Mt.exec(t))?Pt(e[1],e[2]/100,e[3]/100,1):(e=At.exec(t))?Pt(e[1],e[2]/100,e[3]/100,e[4]):Nt.hasOwnProperty(t)?Ct(Nt[t]):"transparent"===t?new Dt(NaN,NaN,NaN,0):null}function Ct(t){return new Dt(t>>16&255,t>>8&255,255&t,1)}function kt(t,e,n,r){return r<=0&&(t=e=n=NaN),new Dt(t,e,n,r)}function St(t){return t instanceof lt||(t=Tt(t)),t?new Dt((t=t.rgb()).r,t.g,t.b,t.opacity):new Dt}function Ut(t,e,n,r){return 1===arguments.length?St(t):new Dt(t,e,n,null==r?1:r)}function Dt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Et(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Pt(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||1<=n?t=e=NaN:e<=0&&(t=NaN),new Ft(t,e,n,r)}function Ft(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Lt(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}st(lt,Tt,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),st(Dt,Ut,dt(lt,{brighter:function(t){return t=null==t?ht:Math.pow(ht,t),new Dt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Dt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+Et(this.r)+Et(this.g)+Et(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),st(Ft,function(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Ft)return new Ft(t.h,t.s,t.l,t.opacity);if(t instanceof lt||(t=Tt(t)),!t)return new Ft;if(t instanceof Ft)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),f=Math.max(e,n,r),i=NaN,c=f-a,o=(f+a)/2;return c?(i=e===f?(n-r)/c+6*(n<r):n===f?(r-e)/c+2:(e-n)/c+4,c/=o<.5?f+a:2-f-a,i*=60):c=0<o&&o<1?0:i,new Ft(i,c,o,t.opacity)}(t):new Ft(t,e,n,null==r?1:r)},dt(lt,{brighter:function(t){return t=null==t?ht:Math.pow(ht,t),new Ft(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ft(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,a=2*n-r;return new Dt(Lt(240<=t?t-240:t+120,a,r),Lt(t,a,r),Lt(t<120?t+240:t-120,a,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Yt=Math.PI/180,Ht=180/Math.PI,Ot=.96422,qt=1,It=.82521,jt=4/29,zt=6/29,Vt=3*zt*zt,Xt=zt*zt*zt;function Rt(t){if(t instanceof Bt)return new Bt(t.l,t.a,t.b,t.opacity);if(t instanceof Jt){if(isNaN(t.h))return new Bt(t.l,0,0,t.opacity);var e=t.h*Yt;return new Bt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof Dt||(t=St(t));var n,r,a=Qt(t.r),f=Qt(t.g),i=Qt(t.b),c=$t((.2225045*a+.7168786*f+.0606169*i)/qt);return a===f&&f===i?n=r=c:(n=$t((.4360747*a+.3850649*f+.1430804*i)/Ot),r=$t((.0139322*a+.0971045*f+.7141733*i)/It)),new Bt(116*c-16,500*(n-c),200*(c-r),t.opacity)}function Bt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function $t(t){return Xt<t?Math.pow(t,1/3):t/Vt+jt}function Zt(t){return zt<t?t*t*t:Vt*(t-jt)}function Wt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Qt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Jt(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}st(Bt,function(t,e,n,r){return 1===arguments.length?Rt(t):new Bt(t,e,n,null==r?1:r)},dt(lt,{brighter:function(t){return new Bt(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Bt(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new Dt(Wt(3.1338561*(e=Ot*Zt(e))-1.6168667*(t=qt*Zt(t))-.4906146*(n=It*Zt(n))),Wt(-.9787684*e+1.9161415*t+.033454*n),Wt(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),st(Jt,function(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Jt)return new Jt(t.h,t.c,t.l,t.opacity);if(t instanceof Bt||(t=Rt(t)),0===t.a&&0===t.b)return new Jt(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Ht;return new Jt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Jt(t,e,n,null==r?1:r)},dt(lt,{brighter:function(t){return new Jt(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Jt(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Rt(this).rgb()}}));var Gt=1.78277,Kt=-.29227,te=-.90649,ee=1.97294,ne=ee*te,re=ee*Gt,ae=Gt*Kt- -.14861*te;function fe(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof ie)return new ie(t.h,t.s,t.l,t.opacity);t instanceof Dt||(t=St(t));var e=t.r/255,n=t.g/255,r=t.b/255,a=(ae*r+ne*e-re*n)/(ae+ne-re),f=r-a,i=(ee*(n-a)-Kt*f)/te,c=Math.sqrt(i*i+f*f)/(ee*a*(1-a)),o=c?Math.atan2(i,f)*Ht-120:NaN;return new ie(o<0?o+360:o,c,a,t.opacity)}(t):new ie(t,e,n,null==r?1:r)}function ie(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function ce(t){return function(){return t}}function oe(e,n){return function(t){return e+t*n}}function ue(f){return 1==(f=+f)?se:function(t,e){return e-t?(n=t,r=e,a=f,n=Math.pow(n,a),r=Math.pow(r,a)-n,a=1/a,function(t){return Math.pow(n+t*r,a)}):ce(isNaN(t)?e:t);var n,r,a}}function se(t,e){var n=e-t;return n?oe(t,n):ce(isNaN(t)?e:t)}st(ie,fe,dt(lt,{brighter:function(t){return t=null==t?ht:Math.pow(ht,t),new ie(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ie(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Yt,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),a=Math.sin(t);return new Dt(255*(e+n*(-.14861*r+Gt*a)),255*(e+n*(Kt*r+te*a)),255*(e+n*(ee*r)),this.opacity)}}));var de=function t(e){var i=ue(e);function n(e,t){var n=i((e=Ut(e)).r,(t=Ut(t)).r),r=i(e.g,t.g),a=i(e.b,t.b),f=se(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=r(t),e.b=a(t),e.opacity=f(t),e+""}}return n.gamma=t,n}(1);var le,he=(le=function(u){var s=u.length-1;return function(t){var e,n,r,a=t<=0?t=0:1<=t?s-(t=1):Math.floor(t*s),f=u[a],i=u[a+1],c=0<a?u[a-1]:2*f-i,o=a<s-1?u[a+2]:2*i-f;return((1-3*(e=(t-a/s)*s)+3*(n=e*e)-(r=n*e))*c+(4-6*n+3*r)*f+(1+3*e+3*n-3*r)*i+r*o)/6}},function(t){var e,n,r=t.length,a=new Array(r),f=new Array(r),i=new Array(r);for(e=0;e<r;++e)n=Ut(t[e]),a[e]=n.r||0,f[e]=n.g||0,i[e]=n.b||0;return a=le(a),f=le(f),i=le(i),n.opacity=1,function(t){return n.r=a(t),n.g=f(t),n.b=i(t),n+""}});function be(e,n){return n-=e=+e,function(t){return e+n*t}}var pe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ge=new RegExp(pe.source,"g");function ye(t,r){var e,n,a,f,i,c=pe.lastIndex=ge.lastIndex=0,o=-1,u=[],s=[];for(t+="",r+="";(e=pe.exec(t))&&(n=ge.exec(r));)(a=n.index)>c&&(a=r.slice(c,a),u[o]?u[o]+=a:u[++o]=a),(e=e[0])===(n=n[0])?u[o]?u[o]+=n:u[++o]=n:(u[++o]=null,s.push({i:o,x:be(e,n)})),c=ge.lastIndex;return c<r.length&&(a=r.slice(c),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?(i=s[0].x,function(t){return i(t)+""}):(f=r,function(){return f}):(r=s.length,function(t){for(var e,n=0;n<r;++n)u[(e=s[n]).i]=e.x(t);return u.join("")})}function _e(t,e){var n,r=typeof e;return null==e||"boolean"===r?ce(e):("number"===r?be:"string"===r?(n=Tt(e))?(e=n,de):ye:e instanceof Tt?de:e instanceof Date?function(e,n){var r=new Date;return n-=e=+e,function(t){return r.setTime(e+n*t),r}}:Array.isArray(e)?function(t,e){var n,r=e?e.length:0,a=t?Math.min(r,t.length):0,f=new Array(a),i=new Array(r);for(n=0;n<a;++n)f[n]=_e(t[n],e[n]);for(;n<r;++n)i[n]=e[n];return function(t){for(n=0;n<a;++n)i[n]=f[n](t);return i}}:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?function(t,e){var n,r={},a={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=_e(t[n],e[n]):a[n]=e[n];return function(t){for(n in r)a[n]=r[n](t);return a}}:be)(t,e)}function ve(e,n){return n-=e=+e,function(t){return Math.round(e+n*t)}}var me,we,xe,Me,Ae=180/Math.PI,Ne={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Te(t,e,n,r,a,f){var i,c,o;return(i=Math.sqrt(t*t+e*e))&&(t/=i,e/=i),(o=t*n+e*r)&&(n-=t*o,r-=e*o),(c=Math.sqrt(n*n+r*r))&&(n/=c,r/=c,o/=c),t*r<e*n&&(t=-t,e=-e,o=-o,i=-i),{translateX:a,translateY:f,rotate:Math.atan2(e,t)*Ae,skewX:Math.atan(o)*Ae,scaleX:i,scaleY:c}}function Ce(l,h,b,p){function g(t){return t.length?t.pop()+" ":""}return function(t,e){var n,r,a,f,i,c,o,u,s=[],d=[];return t=l(t),e=l(e),function(t,e,n,r,a,f){if(t!==n||e!==r){var i=a.push("translate(",null,h,null,b);f.push({i:i-4,x:be(t,n)},{i:i-2,x:be(e,r)})}else(n||r)&&a.push("translate("+n+h+r+b)}(t.translateX,t.translateY,e.translateX,e.translateY,s,d),n=t.rotate,r=e.rotate,a=s,f=d,n!==r?(180<n-r?r+=360:180<r-n&&(n+=360),f.push({i:a.push(g(a)+"rotate(",null,p)-2,x:be(n,r)})):r&&a.push(g(a)+"rotate("+r+p),i=t.skewX,c=e.skewX,o=s,u=d,i!==c?u.push({i:o.push(g(o)+"skewX(",null,p)-2,x:be(i,c)}):c&&o.push(g(o)+"skewX("+c+p),function(t,e,n,r,a,f){if(t!==n||e!==r){var i=a.push(g(a)+"scale(",null,",",null,")");f.push({i:i-4,x:be(t,n)},{i:i-2,x:be(e,r)})}else 1===n&&1===r||a.push(g(a)+"scale("+n+","+r+")")}(t.scaleX,t.scaleY,e.scaleX,e.scaleY,s,d),t=e=null,function(t){for(var e,n=-1,r=d.length;++n<r;)s[(e=d[n]).i]=e.x(t);return s.join("")}}}var ke=Ce(function(t){return"none"===t?Ne:(me||(me=document.createElement("DIV"),we=document.documentElement,xe=document.defaultView),me.style.transform=t,t=xe.getComputedStyle(we.appendChild(me),null).getPropertyValue("transform"),we.removeChild(me),Te(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),Se=Ce(function(t){return null==t?Ne:(Me||(Me=document.createElementNS("http://www.w3.org/2000/svg","g")),Me.setAttribute("transform",t),(t=Me.transform.baseVal.consolidate())?Te((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Ne)},", ",")",")");Math.SQRT2;function Ue(c){return function t(i){function e(e,t){var n=c((e=fe(e)).h,(t=fe(t)).h),r=se(e.s,t.s),a=se(e.l,t.l),f=se(e.opacity,t.opacity);return function(t){return e.h=n(t),e.s=r(t),e.l=a(Math.pow(t,i)),e.opacity=f(t),e+""}}return i=+i,e.gamma=t,e}(1)}Ue(function(t,e){var n=e-t;return n?oe(t,180<n||n<-180?n-360*Math.round(n/360):n):ce(isNaN(t)?e:t)});var De=Ue(se),Ee="http://www.w3.org/1999/xhtml",Pe={svg:"http://www.w3.org/2000/svg",xhtml:Ee,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Fe(t){var e=t+="",n=e.indexOf(":");return 0<=n&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Pe.hasOwnProperty(e)?{space:Pe[e],local:t}:t}function Le(t){var e=Fe(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(n){return function(){var t=this.ownerDocument,e=this.namespaceURI;return e===Ee&&t.documentElement.namespaceURI===Ee?t.createElement(n):t.createElementNS(e,n)}})(e)}function Ye(){}function He(t){return null==t?Ye:function(){return this.querySelector(t)}}function Oe(){return[]}function qe(t){return null==t?Oe:function(){return this.querySelectorAll(t)}}var Ie=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var je=document.documentElement;if(!je.matches){var ze=je.webkitMatchesSelector||je.msMatchesSelector||je.mozMatchesSelector||je.oMatchesSelector;Ie=function(t){return function(){return ze.call(this,t)}}}}var Ve=Ie;function Xe(t){return new Array(t.length)}function Re(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Re.prototype={constructor:Re,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Be="$";function $e(t,e,n,r,a,f){for(var i,c=0,o=e.length,u=f.length;c<u;++c)(i=e[c])?(i.__data__=f[c],r[c]=i):n[c]=new Re(t,f[c]);for(;c<o;++c)(i=e[c])&&(a[c]=i)}function Ze(t,e,n,r,a,f,i){var c,o,u,s={},d=e.length,l=f.length,h=new Array(d);for(c=0;c<d;++c)(o=e[c])&&(h[c]=u=Be+i.call(o,o.__data__,c,e),u in s?a[c]=o:s[u]=o);for(c=0;c<l;++c)(o=s[u=Be+i.call(t,f[c],c,f)])?((r[c]=o).__data__=f[c],s[u]=null):n[c]=new Re(t,f[c]);for(c=0;c<d;++c)(o=e[c])&&s[h[c]]===o&&(a[c]=o)}function We(t,e){return t<e?-1:e<t?1:e<=t?0:NaN}function Qe(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Je(t,e){return t.style.getPropertyValue(e)||Qe(t).getComputedStyle(t,null).getPropertyValue(e)}function Ge(t){return t.trim().split(/^|\s+/)}function Ke(t){return t.classList||new tn(t)}function tn(t){this._node=t,this._names=Ge(t.getAttribute("class")||"")}function en(t,e){for(var n=Ke(t),r=-1,a=e.length;++r<a;)n.add(e[r])}function nn(t,e){for(var n=Ke(t),r=-1,a=e.length;++r<a;)n.remove(e[r])}function rn(){this.textContent=""}function an(){this.innerHTML=""}function fn(){this.nextSibling&&this.parentNode.appendChild(this)}function cn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function on(){return null}function un(){var t=this.parentNode;t&&t.removeChild(this)}function sn(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function dn(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}tn.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);0<=e&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return 0<=this._names.indexOf(t)}};var ln={};"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(ln={mouseenter:"mouseover",mouseleave:"mouseout"}));function hn(n,t,e){return n=bn(n,t,e),function(t){var e=t.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||n.call(this,t)}}function bn(e,n,r){return function(t){try{e.call(this,this.__data__,n,r)}finally{}}}function pn(f){return function(){var t=this.__on;if(t){for(var e,n=0,r=-1,a=t.length;n<a;++n)e=t[n],f.type&&e.type!==f.type||e.name!==f.name?t[++r]=e:this.removeEventListener(e.type,e.listener,e.capture);++r?t.length=r:delete this.__on}}}function gn(o,u,s){var d=ln.hasOwnProperty(o.type)?hn:bn;return function(t,e,n){var r,a=this.__on,f=d(u,e,n);if(a)for(var i=0,c=a.length;i<c;++i)if((r=a[i]).type===o.type&&r.name===o.name)return this.removeEventListener(r.type,r.listener,r.capture),this.addEventListener(r.type,r.listener=f,r.capture=s),void(r.value=u);this.addEventListener(o.type,f,s),r={type:o.type,name:o.name,value:u,listener:f,capture:s},a?a.push(r):this.__on=[r]}}function yn(t,e,n){var r=Qe(t),a=r.CustomEvent;"function"==typeof a?a=new a(e,n):(a=r.document.createEvent("Event"),n?(a.initEvent(e,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(e,!1,!1)),t.dispatchEvent(a)}var _n=[null];function vn(t,e){this._groups=t,this._parents=e}function mn(){return new vn([[document.documentElement]],_n)}vn.prototype=mn.prototype={constructor:vn,select:function(t){"function"!=typeof t&&(t=He(t));for(var e=this._groups,n=e.length,r=new Array(n),a=0;a<n;++a)for(var f,i,c=e[a],o=c.length,u=r[a]=new Array(o),s=0;s<o;++s)(f=c[s])&&(i=t.call(f,f.__data__,s,c))&&("__data__"in f&&(i.__data__=f.__data__),u[s]=i);return new vn(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=qe(t));for(var e=this._groups,n=e.length,r=[],a=[],f=0;f<n;++f)for(var i,c=e[f],o=c.length,u=0;u<o;++u)(i=c[u])&&(r.push(t.call(i,i.__data__,u,c)),a.push(i));return new vn(r,a)},filter:function(t){"function"!=typeof t&&(t=Ve(t));for(var e=this._groups,n=e.length,r=new Array(n),a=0;a<n;++a)for(var f,i=e[a],c=i.length,o=r[a]=[],u=0;u<c;++u)(f=i[u])&&t.call(f,f.__data__,u,i)&&o.push(f);return new vn(r,this._parents)},data:function(t,e){if(!t)return b=new Array(this.size()),s=-1,this.each(function(t){b[++s]=t}),b;var n,r=e?Ze:$e,a=this._parents,f=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var i=f.length,c=new Array(i),o=new Array(i),u=new Array(i),s=0;s<i;++s){var d=a[s],l=f[s],h=l.length,b=t.call(d,d&&d.__data__,s,a),p=b.length,g=o[s]=new Array(p),y=c[s]=new Array(p);r(d,l,g,y,u[s]=new Array(h),b,e);for(var _,v,m=0,w=0;m<p;++m)if(_=g[m]){for(w<=m&&(w=m+1);!(v=y[w])&&++w<p;);_._next=v||null}}return(c=new vn(c,a))._enter=o,c._exit=u,c},enter:function(){return new vn(this._enter||this._groups.map(Xe),this._parents)},exit:function(){return new vn(this._exit||this._groups.map(Xe),this._parents)},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,a=n.length,f=Math.min(r,a),i=new Array(r),c=0;c<f;++c)for(var o,u=e[c],s=n[c],d=u.length,l=i[c]=new Array(d),h=0;h<d;++h)(o=u[h]||s[h])&&(l[h]=o);for(;c<r;++c)i[c]=e[c];return new vn(i,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,a=t[e],f=a.length-1,i=a[f];0<=--f;)(r=a[f])&&(i&&i!==r.nextSibling&&i.parentNode.insertBefore(r,i),i=r);return this},sort:function(n){function t(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}n||(n=We);for(var e=this._groups,r=e.length,a=new Array(r),f=0;f<r;++f){for(var i,c=e[f],o=c.length,u=a[f]=new Array(o),s=0;s<o;++s)(i=c[s])&&(u[s]=i);u.sort(t)}return new vn(a,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],a=0,f=r.length;a<f;++a){var i=r[a];if(i)return i}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var a,f=e[n],i=0,c=f.length;i<c;++i)(a=f[i])&&t.call(a,a.__data__,i,f);return this},attr:function(t,e){var n=Fe(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(e,n){return function(){var t=n.apply(this,arguments);null==t?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}:function(e,n){return function(){var t=n.apply(this,arguments);null==t?this.removeAttribute(e):this.setAttribute(e,t)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return 1<arguments.length?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(e,n,r){return function(){var t=n.apply(this,arguments);null==t?this.style.removeProperty(e):this.style.setProperty(e,t,r)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):Je(this.node(),t)},property:function(t,e){return 1<arguments.length?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(e,n){return function(){var t=n.apply(this,arguments);null==t?delete this[e]:this[e]=t}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=Ge(t+"");if(arguments.length<2){for(var r=Ke(this.node()),a=-1,f=n.length;++a<f;)if(!r.contains(n[a]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?en:nn)(this,t)}}:e?function(t){return function(){en(this,t)}}:function(t){return function(){nn(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?rn:("function"==typeof t?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?an:("function"==typeof t?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(fn)},lower:function(){return this.each(cn)},append:function(t){var e="function"==typeof t?t:Le(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:Le(t),r=null==e?on:"function"==typeof e?e:He(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(un)},clone:function(t){return this.select(t?dn:sn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,a,f=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return 0<=n&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),i=f.length;if(!(arguments.length<2)){for(c=e?gn:pn,null==n&&(n=!1),r=0;r<i;++r)this.each(c(f[r],e,n));return this}var c=this.node().__on;if(c)for(var o,u=0,s=c.length;u<s;++u)for(r=0,o=c[u];r<i;++r)if((a=f[r]).type===o.type&&a.name===o.name)return o.value},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return yn(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return yn(this,t,e)}})(t,e))}};var wn,xn,Mn=0,An=0,Nn=0,Tn=1e3,Cn=0,kn=0,Sn=0,Un="object"==typeof performance&&performance.now?performance:Date,Dn="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function En(){return kn||(Dn(Pn),kn=Un.now()+Sn)}function Pn(){kn=0}function Fn(){this._call=this._time=this._next=null}function Ln(t,e,n){var r=new Fn;return r.restart(t,e,n),r}function Yn(){kn=(Cn=Un.now())+Sn,Mn=An=0;try{!function(){En(),++Mn;for(var t,e=wn;e;)0<=(t=kn-e._time)&&e._call.call(null,t),e=e._next;--Mn}()}finally{Mn=0,function(){var t,e,n=wn,r=1/0;for(;n;)n=n._call?(r>n._time&&(r=n._time),(t=n)._next):(e=n._next,n._next=null,t?t._next=e:wn=e);xn=t,On(r)}(),kn=0}}function Hn(){var t=Un.now(),e=t-Cn;Tn<e&&(Sn-=e,Cn=t)}function On(t){Mn||(An&&(An=clearTimeout(An)),24<t-kn?(t<1/0&&(An=setTimeout(Yn,t-Un.now()-Sn)),Nn&&(Nn=clearInterval(Nn))):(Nn||(Cn=Un.now(),Nn=setInterval(Hn,Tn)),Mn=1,Dn(Yn)))}function qn(e,n,t){var r=new Fn;return n=null==n?0:+n,r.restart(function(t){r.stop(),e(t+n)},n,t),r}Fn.prototype=Ln.prototype={constructor:Fn,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?En():+n)+(null==e?0:+e),this._next||xn===this||(xn?xn._next=this:wn=this,xn=this),this._call=t,this._time=n,On()},stop:function(){this._call&&(this._call=null,this._time=1/0,On())}};var In=d("start","end","interrupt"),jn=[],zn=0,Vn=1,Xn=2,Rn=3,Bn=4,$n=5,Zn=6;function Wn(t,e,n,r,a,f){var i=t.__transition;if(i){if(n in i)return}else t.__transition={};!function(f,i,c){var o,u=f.__transition;function s(t){var e,n,r,a;if(c.state!==Vn)return l();for(e in u)if((a=u[e]).name===c.name){if(a.state===Rn)return qn(s);a.state===Bn?(a.state=Zn,a.timer.stop(),a.on.call("interrupt",f,f.__data__,a.index,a.group),delete u[e]):+e<i&&(a.state=Zn,a.timer.stop(),delete u[e])}if(qn(function(){c.state===Rn&&(c.state=Bn,c.timer.restart(d,c.delay,c.time),d(t))}),c.state=Xn,c.on.call("start",f,f.__data__,c.index,c.group),c.state===Xn){for(c.state=Rn,o=new Array(r=c.tween.length),e=0,n=-1;e<r;++e)(a=c.tween[e].value.call(f,f.__data__,c.index,c.group))&&(o[++n]=a);o.length=n+1}}function d(t){for(var e=t<c.duration?c.ease.call(null,t/c.duration):(c.timer.restart(l),c.state=$n,1),n=-1,r=o.length;++n<r;)o[n].call(null,e);c.state===$n&&(c.on.call("end",f,f.__data__,c.index,c.group),l())}function l(){for(var t in c.state=Zn,c.timer.stop(),delete u[i],u)return;delete f.__transition}(u[i]=c).timer=Ln(function(t){c.state=Vn,c.timer.restart(s,c.delay,c.time),c.delay<=t&&s(t-c.delay)},0,c.time)}(t,n,{name:e,index:r,group:a,on:In,tween:jn,time:f.time,delay:f.delay,duration:f.duration,ease:f.ease,timer:null,state:zn})}function Qn(t,e){var n=Gn(t,e);if(n.state>zn)throw new Error("too late; already scheduled");return n}function Jn(t,e){var n=Gn(t,e);if(n.state>Xn)throw new Error("too late; already started");return n}function Gn(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Kn(t,e,n){var r=t._id;return t.each(function(){var t=Jn(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return Gn(t,r).value[e]}}function tr(t,e){var n;return("number"==typeof e?be:e instanceof Tt?de:(n=Tt(e))?(e=n,de):ye)(t,e)}var er=mn.prototype.constructor;var nr=0;function rr(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function ar(){return++nr}var fr=mn.prototype;rr.prototype=function(t){return mn().transition(t)}.prototype={constructor:rr,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=He(t));for(var r=this._groups,a=r.length,f=new Array(a),i=0;i<a;++i)for(var c,o,u=r[i],s=u.length,d=f[i]=new Array(s),l=0;l<s;++l)(c=u[l])&&(o=t.call(c,c.__data__,l,u))&&("__data__"in c&&(o.__data__=c.__data__),d[l]=o,Wn(d[l],e,n,l,d,Gn(c,n)));return new rr(f,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=qe(t));for(var r=this._groups,a=r.length,f=[],i=[],c=0;c<a;++c)for(var o,u=r[c],s=u.length,d=0;d<s;++d)if(o=u[d]){for(var l,h=t.call(o,o.__data__,d,u),b=Gn(o,n),p=0,g=h.length;p<g;++p)(l=h[p])&&Wn(l,e,n,p,h,b);f.push(h),i.push(o)}return new rr(f,i,e,n)},filter:function(t){"function"!=typeof t&&(t=Ve(t));for(var e=this._groups,n=e.length,r=new Array(n),a=0;a<n;++a)for(var f,i=e[a],c=i.length,o=r[a]=[],u=0;u<c;++u)(f=i[u])&&t.call(f,f.__data__,u,i)&&o.push(f);return new rr(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,a=n.length,f=Math.min(r,a),i=new Array(r),c=0;c<f;++c)for(var o,u=e[c],s=n[c],d=u.length,l=i[c]=new Array(d),h=0;h<d;++h)(o=u[h]||s[h])&&(l[h]=o);for(;c<r;++c)i[c]=e[c];return new rr(i,this._parents,this._name,this._id)},selection:function(){return new er(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=ar(),r=this._groups,a=r.length,f=0;f<a;++f)for(var i,c=r[f],o=c.length,u=0;u<o;++u)if(i=c[u]){var s=Gn(i,e);Wn(i,t,n,u,c,{time:s.time+s.delay+s.duration,delay:0,duration:s.duration,ease:s.ease})}return new rr(r,this._parents,t,n)},call:fr.call,nodes:fr.nodes,node:fr.node,size:fr.size,empty:fr.empty,each:fr.each,on:function(t,e){var n,r,a,f,i,c,o=this._id;return arguments.length<2?Gn(this.node(),o).on.on(t):this.each((n=o,a=e,c=((r=t)+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return 0<=e&&(t=t.slice(0,e)),!t||"start"===t})?Qn:Jn,function(){var t=c(this,n),e=t.on;e!==f&&(i=(f=e).copy()).on(r,a),t.on=i}))},attr:function(t,e){var n=Fe(t),r="transform"===n?Se:tr;return this.attrTween(t,"function"==typeof e?(n.local?function(n,r,a){var f,i,c;return function(){var t,e=a(this);if(null!=e)return(t=this.getAttributeNS(n.space,n.local))===e?null:t===f&&e===i?c:c=r(f=t,i=e);this.removeAttributeNS(n.space,n.local)}}:function(n,r,a){var f,i,c;return function(){var t,e=a(this);if(null!=e)return(t=this.getAttribute(n))===e?null:t===f&&e===i?c:c=r(f=t,i=e);this.removeAttribute(n)}})(n,r,Kn(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(e,n,r){var a,f;return function(){var t=this.getAttributeNS(e.space,e.local);return t===r?null:t===a?f:f=n(a=t,r)}}:function(e,n,r){var a,f;return function(){var t=this.getAttribute(e);return t===r?null:t===a?f:f=n(a=t,r)}})(n,r,e+""))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=Fe(t);return this.tween(n,(r.local?function(r,t){function e(){var e=this,n=t.apply(e,arguments);return n&&function(t){e.setAttributeNS(r.space,r.local,n(t))}}return e._value=t,e}:function(r,t){function e(){var e=this,n=t.apply(e,arguments);return n&&function(t){e.setAttribute(r,n(t))}}return e._value=t,e})(r,e))},style:function(t,e,n){var r,a,f,i,c,o,u,s,d,l,h,b,p,g,y,_,v,m="transform"==(t+="")?ke:tr;return null==e?this.styleTween(t,(p=t,g=m,function(){var t=Je(this,p),e=(this.style.removeProperty(p),Je(this,p));return t===e?null:t===y&&e===_?v:v=g(y=t,_=e)})).on("end.style."+t,(b=t,function(){this.style.removeProperty(b)})):this.styleTween(t,"function"==typeof e?(u=m,s=Kn(this,"style."+(o=t),e),function(){var t=Je(this,o),e=s(this);return null==e&&(this.style.removeProperty(o),e=Je(this,o)),t===e?null:t===d&&e===l?h:h=u(d=t,l=e)}):(r=t,a=m,f=e+"",function(){var t=Je(this,r);return t===f?null:t===i?c:c=a(i=t,f)}),n)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(r,t,a){function e(){var e=this,n=t.apply(e,arguments);return n&&function(t){e.style.setProperty(r,n(t),a)}}return e._value=t,e}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?(n=Kn(this,"text",t),function(){var t=n(this);this.textContent=null==t?"":t}):(e=null==t?"":t+"",function(){this.textContent=e}));var e,n},remove:function(){return this.on("end.remove",(n=this._id,function(){var t=this.parentNode;for(var e in this.__transition)if(+e!==n)return;t&&t.removeChild(this)}));var n},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,a=Gn(this.node(),n).tween,f=0,i=a.length;f<i;++f)if((r=a[f]).name===t)return r.value;return null}return this.each((null==e?function(a,f){var i,c;return function(){var t=Jn(this,a),e=t.tween;if(e!==i)for(var n=0,r=(c=i=e).length;n<r;++n)if(c[n].name===f){(c=c.slice()).splice(n,1);break}t.tween=c}}:function(f,i,c){var o,u;if("function"!=typeof c)throw new Error;return function(){var t=Jn(this,f),e=t.tween;if(e!==o){u=(o=e).slice();for(var n={name:i,value:c},r=0,a=u.length;r<a;++r)if(u[r].name===i){u[r]=n;break}r===a&&u.push(n)}t.tween=u}})(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){Qn(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){Qn(this,t).delay=e}})(e,t)):Gn(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){Jn(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){Jn(this,t).duration=e}})(e,t)):Gn(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Jn(this,t).ease=e}}(e,t)):Gn(this.node(),e).ease}};Math.PI,Math.PI;var ir={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function cr(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return ir.time=En(),ir;return n}mn.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var n,r,a,f=t.__transition,i=!0;if(f){for(a in e=null==e?null:e+"",f)(n=f[a]).name===e?(r=n.state>Xn&&n.state<$n,n.state=Zn,n.timer.stop(),r&&n.on.call("interrupt",t,t.__data__,n.index,n.group),delete f[a]):i=!1;i&&delete t.__transition}}(this,t)})},mn.prototype.transition=function(t){var e,n;t=t instanceof rr?(e=t._id,t._name):(e=ar(),(n=ir).time=En(),null==t?null:t+"");for(var r=this._groups,a=r.length,f=0;f<a;++f)for(var i,c=r[f],o=c.length,u=0;u<o;++u)(i=c[u])&&Wn(i,t,e,u,c,n||cr(i,e));return new rr(r,this._parents,t,e)};Math.PI;var or=Math.PI,ur=2*or,sr=1e-6,dr=ur-sr;function lr(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function hr(){return new lr}lr.prototype=hr.prototype={constructor:lr,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,a,f){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+a)+","+(this._y1=+f)},arcTo:function(t,e,n,r,a){t=+t,e=+e,n=+n,r=+r,a=+a;var f=this._x1,i=this._y1,c=n-t,o=r-e,u=f-t,s=i-e,d=u*u+s*s;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(sr<d)if(Math.abs(s*c-o*u)>sr&&a){var l=n-f,h=r-i,b=c*c+o*o,p=l*l+h*h,g=Math.sqrt(b),y=Math.sqrt(d),_=a*Math.tan((or-Math.acos((b+d-p)/(2*g*y)))/2),v=_/y,m=_/g;Math.abs(v-1)>sr&&(this._+="L"+(t+v*u)+","+(e+v*s)),this._+="A"+a+","+a+",0,0,"+ +(u*h<s*l)+","+(this._x1=t+m*c)+","+(this._y1=e+m*o)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,a,f){t=+t,e=+e;var i=(n=+n)*Math.cos(r),c=n*Math.sin(r),o=t+i,u=e+c,s=1^f,d=f?r-a:a-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+o+","+u:(Math.abs(this._x1-o)>sr||Math.abs(this._y1-u)>sr)&&(this._+="L"+o+","+u),n&&(d<0&&(d=d%ur+ur),dr<d?this._+="A"+n+","+n+",0,1,"+s+","+(t-i)+","+(e-c)+"A"+n+","+n+",0,1,"+s+","+(this._x1=o)+","+(this._y1=u):sr<d&&(this._+="A"+n+","+n+",0,"+ +(or<=d)+","+s+","+(this._x1=t+n*Math.cos(a))+","+(this._y1=e+n*Math.sin(a))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var br="$";function pr(){}function gr(t,e){var n=new pr;if(t instanceof pr)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var r,a=-1,f=t.length;if(null==e)for(;++a<f;)n.set(a,t[a]);else for(;++a<f;)n.set(e(r=t[a],a,t),r)}else if(t)for(var i in t)n.set(i,t[i]);return n}function yr(){}pr.prototype=gr.prototype={constructor:pr,has:function(t){return br+t in this},get:function(t){return this[br+t]},set:function(t,e){return this[br+t]=e,this},remove:function(t){var e=br+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===br&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===br&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===br&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===br&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===br&&++t;return t},empty:function(){for(var t in this)if(t[0]===br)return!1;return!0},each:function(t){for(var e in this)e[0]===br&&t(this[e],e.slice(1),this)}};var _r=gr.prototype;yr.prototype=function(t,e){var n=new yr;if(t instanceof yr)t.each(function(t){n.add(t)});else if(t){var r=-1,a=t.length;if(null==e)for(;++r<a;)n.add(t[r]);else for(;++r<a;)n.add(e(t[r],r,t))}return n}.prototype={constructor:yr,has:_r.has,add:function(t){return this[br+(t+="")]=t,this},remove:_r.remove,clear:_r.clear,values:_r.keys,size:_r.size,empty:_r.empty,each:_r.each};var vr={},mr={};function wr(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}")}function xr(f){var e=new RegExp('["'+f+"\n\r]"),d=f.charCodeAt(0);function n(r,t){var e,n=[],a=r.length,f=0,i=0,c=a<=0,o=!1;function u(){if(c)return mr;if(o)return o=!1,vr;var t,e,n=f;if(34===r.charCodeAt(n)){for(;f++<a&&34!==r.charCodeAt(f)||34===r.charCodeAt(++f););return(t=f)>=a?c=!0:10===(e=r.charCodeAt(f++))?o=!0:13===e&&(o=!0,10===r.charCodeAt(f)&&++f),r.slice(n+1,t-1).replace(/""/g,'"')}for(;f<a;){if(10===(e=r.charCodeAt(t=f++)))o=!0;else if(13===e)o=!0,10===r.charCodeAt(f)&&++f;else if(e!==d)continue;return r.slice(n,t)}return c=!0,r.slice(n,a)}for(10===r.charCodeAt(a-1)&&--a,13===r.charCodeAt(a-1)&&--a;(e=u())!==mr;){for(var s=[];e!==vr&&e!==mr;)s.push(e),e=u();t&&null==(s=t(s,i++))||n.push(s)}return n}function r(t){return t.map(i).join(f)}function i(t){return null==t?"":e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,f){var i,c,e=n(t,function(t,e){if(i)return i(t,e-1);var n,r,a;c=t,i=f?(r=f,a=wr(n=t),function(t,e){return r(a(t),e,n)}):wr(t)});return e.columns=c||[],e},parseRows:n,format:function(t,n){var e,r,a;return null==n&&(e=t,r=Object.create(null),a=[],e.forEach(function(t){for(var e in t)e in r||a.push(r[e]=e)}),n=a),[n.map(i).join(f)].concat(t.map(function(e){return n.map(function(t){return i(e[t])}).join(f)})).join("\n")},formatRows:function(t){return t.map(r).join("\n")}}}xr(","),xr("\t");function Mr(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var a,f,i,c,o,u,s,d,l,h=t._root,b={data:r},p=t._x0,g=t._y0,y=t._x1,_=t._y1;if(!h)return t._root=b,t;for(;h.length;)if((u=e>=(f=(p+y)/2))?p=f:y=f,(s=n>=(i=(g+_)/2))?g=i:_=i,!(h=(a=h)[d=s<<1|u]))return a[d]=b,t;if(c=+t._x.call(null,h.data),o=+t._y.call(null,h.data),e===c&&n===o)return b.next=h,a?a[d]=b:t._root=b,t;for(;a=a?a[d]=new Array(4):t._root=new Array(4),(u=e>=(f=(p+y)/2))?p=f:y=f,(s=n>=(i=(g+_)/2))?g=i:_=i,(d=s<<1|u)==(l=(i<=o)<<1|f<=c););return a[l]=h,a[d]=b,t}function Ar(t,e,n,r,a){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=a}function Nr(t){return t[0]}function Tr(t){return t[1]}function Cr(t,e,n,r,a,f){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=a,this._y1=f,this._root=void 0}function kr(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Sr=function(t,e,n){var r=new Cr(null==e?Nr:e,null==n?Tr:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}.prototype=Cr.prototype;Sr.copy=function(){var t,e,n=new Cr(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=kr(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var a=0;a<4;++a)(e=r.source[a])&&(e.length?t.push({source:e,target:r.target[a]=new Array(4)}):r.target[a]=kr(e));return n},Sr.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return Mr(this.cover(e,n),e,n,t)},Sr.addAll=function(t){var e,n,r,a,f=t.length,i=new Array(f),c=new Array(f),o=1/0,u=1/0,s=-1/0,d=-1/0;for(n=0;n<f;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(a=+this._y.call(null,e))||((i[n]=r)<o&&(o=r),s<r&&(s=r),(c[n]=a)<u&&(u=a),d<a&&(d=a));for(s<o&&(o=this._x0,s=this._x1),d<u&&(u=this._y0,d=this._y1),this.cover(o,u).cover(s,d),n=0;n<f;++n)Mr(this,i[n],c[n],t[n]);return this},Sr.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,a=this._x1,f=this._y1;if(isNaN(n))a=(n=Math.floor(t))+1,f=(r=Math.floor(e))+1;else{if(!(t<n||a<t||e<r||f<e))return this;var i,c,o=a-n,u=this._root;switch(c=(e<(r+f)/2)<<1|t<(n+a)/2){case 0:for(;(i=new Array(4))[c]=u,u=i,f=r+(o*=2),(a=n+o)<t||f<e;);break;case 1:for(;(i=new Array(4))[c]=u,u=i,f=r+(o*=2),t<(n=a-o)||f<e;);break;case 2:for(;(i=new Array(4))[c]=u,u=i,r=f-(o*=2),(a=n+o)<t||e<r;);break;case 3:for(;(i=new Array(4))[c]=u,u=i,r=f-(o*=2),t<(n=a-o)||e<r;);}this._root&&this._root.length&&(this._root=u)}return this._x0=n,this._y0=r,this._x1=a,this._y1=f,this},Sr.data=function(){var e=[];return this.visit(function(t){if(!t.length)for(;e.push(t.data),t=t.next;);}),e},Sr.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Sr.find=function(t,e,n){var r,a,f,i,c,o,u,s=this._x0,d=this._y0,l=this._x1,h=this._y1,b=[],p=this._root;for(p&&b.push(new Ar(p,s,d,l,h)),null==n?n=1/0:(s=t-n,d=e-n,l=t+n,h=e+n,n*=n);o=b.pop();)if(!(!(p=o.node)||(a=o.x0)>l||(f=o.y0)>h||(i=o.x1)<s||(c=o.y1)<d))if(p.length){var g=(a+i)/2,y=(f+c)/2;b.push(new Ar(p[3],g,y,i,c),new Ar(p[2],a,y,g,c),new Ar(p[1],g,f,i,y),new Ar(p[0],a,f,g,y)),(u=(y<=e)<<1|g<=t)&&(o=b[b.length-1],b[b.length-1]=b[b.length-1-u],b[b.length-1-u]=o)}else{var _=t-+this._x.call(null,p.data),v=e-+this._y.call(null,p.data),m=_*_+v*v;if(m<n){var w=Math.sqrt(n=m);s=t-w,d=e-w,l=t+w,h=e+w,r=p.data}}return r},Sr.remove=function(t){if(isNaN(f=+this._x.call(null,t))||isNaN(i=+this._y.call(null,t)))return this;var e,n,r,a,f,i,c,o,u,s,d,l,h=this._root,b=this._x0,p=this._y0,g=this._x1,y=this._y1;if(!h)return this;if(h.length)for(;;){if((u=f>=(c=(b+g)/2))?b=c:g=c,(s=i>=(o=(p+y)/2))?p=o:y=o,!(h=(e=h)[d=s<<1|u]))return this;if(!h.length)break;(e[d+1&3]||e[d+2&3]||e[d+3&3])&&(n=e,l=d)}for(;h.data!==t;)if(!(h=(r=h).next))return this;return(a=h.next)&&delete h.next,r?a?r.next=a:delete r.next:e?(a?e[d]=a:delete e[d],(h=e[0]||e[1]||e[2]||e[3])&&h===(e[3]||e[2]||e[1]||e[0])&&!h.length&&(n?n[l]=h:this._root=h)):this._root=a,this},Sr.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},Sr.root=function(){return this._root},Sr.size=function(){var e=0;return this.visit(function(t){if(!t.length)for(;++e,t=t.next;);}),e},Sr.visit=function(t){var e,n,r,a,f,i,c=[],o=this._root;for(o&&c.push(new Ar(o,this._x0,this._y0,this._x1,this._y1));e=c.pop();)if(!t(o=e.node,r=e.x0,a=e.y0,f=e.x1,i=e.y1)&&o.length){var u=(r+f)/2,s=(a+i)/2;(n=o[3])&&c.push(new Ar(n,u,s,f,i)),(n=o[2])&&c.push(new Ar(n,r,s,u,i)),(n=o[1])&&c.push(new Ar(n,u,a,f,s)),(n=o[0])&&c.push(new Ar(n,r,a,u,s))}return this},Sr.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new Ar(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var a=e.node;if(a.length){var f,i=e.x0,c=e.y0,o=e.x1,u=e.y1,s=(i+o)/2,d=(c+u)/2;(f=a[0])&&n.push(new Ar(f,i,c,s,d)),(f=a[1])&&n.push(new Ar(f,s,c,o,d)),(f=a[2])&&n.push(new Ar(f,i,d,s,u)),(f=a[3])&&n.push(new Ar(f,s,d,o,u))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},Sr.x=function(t){return arguments.length?(this._x=t,this):this._x},Sr.y=function(t){return arguments.length?(this._y=t,this):this._y};Math.PI,Math.sqrt(5);function Ur(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[1<r.length?r[0]+r.slice(2):r,+t.slice(n+1)]}function Dr(t){return(t=Ur(Math.abs(t)))?t[1]:NaN}var Er,Pr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fr(t){return new Lr(t)}function Lr(t){if(!(e=Pr.exec(t)))throw new Error("invalid format: "+t);var e;this.fill=e[1]||" ",this.align=e[2]||">",this.sign=e[3]||"-",this.symbol=e[4]||"",this.zero=!!e[5],this.width=e[6]&&+e[6],this.comma=!!e[7],this.precision=e[8]&&+e[8].slice(1),this.trim=!!e[9],this.type=e[10]||""}function Yr(t,e){var n=Ur(t,e);if(!n)return t+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}Fr.prototype=Lr.prototype,Lr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Hr={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Yr(100*t,e)},r:Yr,s:function(t,e){var n=Ur(t,e);if(!n)return t+"";var r=n[0],a=n[1],f=a-(Er=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,i=r.length;return f===i?r:i<f?r+new Array(f-i+1).join("0"):0<f?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+Ur(t,Math.max(0,e+f-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function Or(t){return t}var qr,Ir,jr,zr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Vr(t){var e,c,o,x=t.grouping&&t.thousands?(c=t.grouping,o=t.thousands,function(t,e){for(var n=t.length,r=[],a=0,f=c[0],i=0;0<n&&0<f&&(e<i+f+1&&(f=Math.max(1,e-i)),r.push(t.substring(n-=f,n+f)),!((i+=f+1)>e));)f=c[a=(a+1)%c.length];return r.reverse().join(o)}):Or,r=t.currency,M=t.decimal,A=t.numerals?(e=t.numerals,function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}):Or,a=t.percent||"%";function i(t){var u=(t=Fr(t)).fill,s=t.align,d=t.sign,e=t.symbol,l=t.zero,h=t.width,b=t.comma,p=t.precision,g=t.trim,y=t.type;"n"===y?(b=!0,y="g"):Hr[y]||(null==p&&(p=12),g=!0,y="g"),(l||"0"===u&&"="===s)&&(l=!0,u="0",s="=");var _="$"===e?r[0]:"#"===e&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",v="$"===e?r[1]:/[%p]/.test(y)?a:"",m=Hr[y],w=/[defgprs%]/.test(y);function n(t){var e,n,r,a=_,f=v;if("c"===y)f=m(t)+f,t="";else{var i=(t=+t)<0;if(t=m(Math.abs(t),p),g&&(t=function(t){t:for(var e,n=t.length,r=1,a=-1;r<n;++r)switch(t[r]){case".":a=e=r;break;case"0":0===a&&(a=r),e=r;break;default:if(0<a){if(!+t[r])break t;a=0}}return 0<a?t.slice(0,a)+t.slice(e+1):t}(t)),i&&0==+t&&(i=!1),a=(i?"("===d?d:"-":"-"===d||"("===d?"":d)+a,f=("s"===y?zr[8+Er/3]:"")+f+(i&&"("===d?")":""),w)for(e=-1,n=t.length;++e<n;)if((r=t.charCodeAt(e))<48||57<r){f=(46===r?M+t.slice(e+1):t.slice(e))+f,t=t.slice(0,e);break}}b&&!l&&(t=x(t,1/0));var c=a.length+t.length+f.length,o=c<h?new Array(h-c+1).join(u):"";switch(b&&l&&(t=x(o+t,o.length?h-f.length:1/0),o=""),s){case"<":t=a+t+f+o;break;case"=":t=a+o+t+f;break;case"^":t=o.slice(0,c=o.length>>1)+a+t+f+o.slice(c);break;default:t=o+a+t+f}return A(t)}return p=null==p?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),n.toString=function(){return t+""},n}return{format:i,formatPrefix:function(t,e){var n=i(((t=Fr(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Dr(e)/3))),a=Math.pow(10,-r),f=zr[8+r/3];return function(t){return n(a*t)+f}}}}function Xr(){return new Rr}function Rr(){this.reset()}qr=Vr({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Ir=qr.format,jr=qr.formatPrefix,Rr.prototype={constructor:Rr,reset:function(){this.s=this.t=0},add:function(t){$r(Br,t,this.t),$r(this,Br.s,this.s),this.s?this.t+=Br.t:this.s=Br.t},valueOf:function(){return this.s}};var Br=new Rr;function $r(t,e,n){var r=t.s=e+n,a=r-e,f=r-a;t.t=e-f+(n-a)}Math.PI,Xr(),Xr(),Xr(),Xr(),Xr(),Xr(),Xr(),Xr();var Zr=Array.prototype,Wr=Zr.map,Qr=Zr.slice,Jr={name:"implicit"};function Gr(r){var f=gr(),i=[],a=Jr;function c(t){var e=t+"",n=f.get(e);if(!n){if(a!==Jr)return a;f.set(e,n=i.push(t))}return r[(n-1)%r.length]}return r=null==r?[]:Qr.call(r),c.domain=function(t){if(!arguments.length)return i.slice();i=[],f=gr();for(var e,n,r=-1,a=t.length;++r<a;)f.has(n=(e=t[r])+"")||f.set(n,i.push(e));return c},c.range=function(t){return arguments.length?(r=Qr.call(t),c):r.slice()},c.unknown=function(t){return arguments.length?(a=t,c):a},c.copy=function(){return Gr().domain(i).range(r).unknown(a)},c}function Kr(t){return+t}var ta=[0,1];function ea(e,n){return(n-=e=+e)?function(t){return(t-e)/n}:(t=n,function(){return t});var t}function na(t,e,n,r){var a=t[0],f=t[1],i=e[0],c=e[1];return i=f<a?(a=n(f,a),r(c,i)):(a=n(a,f),r(i,c)),function(t){return i(a(t))}}function ra(n,t,e,r){var a=Math.min(n.length,t.length)-1,f=new Array(a),i=new Array(a),c=-1;for(n[a]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++c<a;)f[c]=e(n[c],n[c+1]),i[c]=r(t[c],t[c+1]);return function(t){var e=o(n,t,1,a)-1;return i[e](f[e](t))}}function aa(t,e,n){var r,a,f,i,c,o,u,s,d,l,h,b,p=t[0],g=t[t.length-1],y=(a=p,f=g,i=null==e?10:e,c=Math.abs(f-a)/Math.max(0,i),o=Math.pow(10,Math.floor(Math.log(c)/Math.LN10)),v<=(u=c/o)?o*=10:m<=u?o*=5:w<=u&&(o*=2),f<a?-o:o);switch((n=Fr(null==n?",f":n)).type){case"s":var _=Math.max(Math.abs(p),Math.abs(g));return null!=n.precision||isNaN((h=y,b=_,r=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Dr(b)/3)))-Dr(Math.abs(h)))))||(n.precision=r),jr(n,_);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN((d=y,l=Math.max(Math.abs(p),Math.abs(g)),d=Math.abs(d),l=Math.abs(l)-d,r=Math.max(0,Dr(l)-Dr(d))+1))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN((s=y,r=Math.max(0,-Dr(Math.abs(s)))))||(n.precision=r-2*("%"===n.type))}return Ir(n)}function fa(c){var o=c.domain;return c.ticks=function(t){var e=o();return function(t,e,n){var r,a,f,i,c=-1;if(n=+n,(t=+t)==(e=+e)&&0<n)return[t];if((r=e<t)&&(a=t,t=e,e=a),0===(i=u(t,e,n))||!isFinite(i))return[];if(0<i)for(t=Math.ceil(t/i),e=Math.floor(e/i),f=new Array(a=Math.ceil(e-t+1));++c<a;)f[c]=(t+c)*i;else for(t=Math.floor(t*i),e=Math.ceil(e*i),f=new Array(a=Math.ceil(t-e+1));++c<a;)f[c]=(t-c)/i;return r&&f.reverse(),f}(e[0],e[e.length-1],null==t?10:t)},c.tickFormat=function(t,e){return aa(o(),t,e)},c.nice=function(t){null==t&&(t=10);var e,n=o(),r=0,a=n.length-1,f=n[r],i=n[a];return i<f&&(e=f,f=i,i=e,e=r,r=a,a=e),0<(e=u(f,i,t))?e=u(f=Math.floor(f/e)*e,i=Math.ceil(i/e)*e,t):e<0&&(e=u(f=Math.ceil(f*e)/e,i=Math.floor(i*e)/e,t)),0<e?(n[r]=Math.floor(f/e)*e,n[a]=Math.ceil(i/e)*e,o(n)):e<0&&(n[r]=Math.ceil(f*e)/e,n[a]=Math.floor(i*e)/e,o(n)),c},c}var ia=new Date,ca=new Date;function oa(f,i,n,r){function c(t){return f(t=new Date(+t)),t}return(c.floor=c).ceil=function(t){return f(t=new Date(t-1)),i(t,1),f(t),t},c.round=function(t){var e=c(t),n=c.ceil(t);return t-e<n-t?e:n},c.offset=function(t,e){return i(t=new Date(+t),null==e?1:Math.floor(e)),t},c.range=function(t,e,n){var r,a=[];if(t=c.ceil(t),n=null==n?1:Math.floor(n),!(t<e&&0<n))return a;for(;a.push(r=new Date(+t)),i(t,n),f(t),r<t&&t<e;);return a},c.filter=function(n){return oa(function(t){if(t<=t)for(;f(t),!n(t);)t.setTime(t-1)},function(t,e){if(t<=t)if(e<0)for(;++e<=0;)for(;i(t,-1),!n(t););else for(;0<=--e;)for(;i(t,1),!n(t););})},n&&(c.count=function(t,e){return ia.setTime(+t),ca.setTime(+e),f(ia),f(ca),Math.floor(n(ia,ca))},c.every=function(e){return e=Math.floor(e),isFinite(e)&&0<e?1<e?c.filter(r?function(t){return r(t)%e==0}:function(t){return c.count(0,t)%e==0}):c:null}),c}var ua=oa(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});ua.every=function(n){return n=Math.floor(n),isFinite(n)&&0<n?1<n?oa(function(t){t.setTime(Math.floor(t/n)*n)},function(t,e){t.setTime(+t+e*n)},function(t,e){return(e-t)/n}):ua:null};ua.range;var sa=6e4,da=36e5,la=(oa(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}).range,oa(function(t){t.setTime(Math.floor(t/sa)*sa)},function(t,e){t.setTime(+t+e*sa)},function(t,e){return(e-t)/sa},function(t){return t.getMinutes()}).range,oa(function(t){var e=t.getTimezoneOffset()*sa%da;e<0&&(e+=da),t.setTime(Math.floor((+t-e)/da)*da+e)},function(t,e){t.setTime(+t+e*da)},function(t,e){return(e-t)/da},function(t){return t.getHours()}).range,oa(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*sa)/864e5},function(t){return t.getDate()-1}));la.range;function ha(e){return oa(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*sa)/6048e5})}var ba=ha(0),pa=ha(1),ga=(ha(2),ha(3),ha(4)),ya=(ha(5),ha(6),ba.range,pa.range,ga.range,oa(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}).range,oa(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()}));ya.every=function(n){return isFinite(n=Math.floor(n))&&0<n?oa(function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e*n)}):null};ya.range,oa(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*sa)},function(t,e){return(e-t)/sa},function(t){return t.getUTCMinutes()}).range,oa(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*da)},function(t,e){return(e-t)/da},function(t){return t.getUTCHours()}).range;var _a=oa(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1});_a.range;function va(e){return oa(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/6048e5})}var ma=va(0),wa=va(1),xa=(va(2),va(3),va(4)),Ma=(va(5),va(6),ma.range,wa.range,xa.range,oa(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}).range,oa(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()}));Ma.every=function(n){return isFinite(n=Math.floor(n))&&0<n?oa(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e*n)}):null};Ma.range;function Aa(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Na(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ta(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}var Ca,ka,Sa,Ua={"-":"",_:" ",0:"0"},Da=/^\s*\d+/,Ea=/^%/,Pa=/[\\^$*+?|[\]().{}]/g;function Fa(t,e,n){var r=t<0?"-":"",a=(r?-t:t)+"",f=a.length;return r+(f<n?new Array(n-f+1).join(e)+a:a)}function La(t){return t.replace(Pa,"\\$&")}function Ya(t){return new RegExp("^(?:"+t.map(La).join("|")+")","i")}function Ha(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function Oa(t,e,n){var r=Da.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function qa(t,e,n){var r=Da.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Ia(t,e,n){var r=Da.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function ja(t,e,n){var r=Da.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function za(t,e,n){var r=Da.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Va(t,e,n){var r=Da.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Xa(t,e,n){var r=Da.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(68<+r[0]?1900:2e3),n+r[0].length):-1}function Ra(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ba(t,e,n){var r=Da.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function $a(t,e,n){var r=Da.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Za(t,e,n){var r=Da.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Wa(t,e,n){var r=Da.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Qa(t,e,n){var r=Da.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Ja(t,e,n){var r=Da.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Ga(t,e,n){var r=Da.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Ka(t,e,n){var r=Da.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function tf(t,e,n){var r=Ea.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function ef(t,e,n){var r=Da.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function nf(t,e,n){var r=Da.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function rf(t,e){return Fa(t.getDate(),e,2)}function af(t,e){return Fa(t.getHours(),e,2)}function ff(t,e){return Fa(t.getHours()%12||12,e,2)}function cf(t,e){return Fa(1+la.count(ya(t),t),e,3)}function of(t,e){return Fa(t.getMilliseconds(),e,3)}function uf(t,e){return of(t,e)+"000"}function sf(t,e){return Fa(t.getMonth()+1,e,2)}function df(t,e){return Fa(t.getMinutes(),e,2)}function lf(t,e){return Fa(t.getSeconds(),e,2)}function hf(t){var e=t.getDay();return 0===e?7:e}function bf(t,e){return Fa(ba.count(ya(t),t),e,2)}function pf(t,e){var n=t.getDay();return t=4<=n||0===n?ga(t):ga.ceil(t),Fa(ga.count(ya(t),t)+(4===ya(t).getDay()),e,2)}function gf(t){return t.getDay()}function yf(t,e){return Fa(pa.count(ya(t),t),e,2)}function _f(t,e){return Fa(t.getFullYear()%100,e,2)}function vf(t,e){return Fa(t.getFullYear()%1e4,e,4)}function mf(t){var e=t.getTimezoneOffset();return(0<e?"-":(e*=-1,"+"))+Fa(e/60|0,"0",2)+Fa(e%60,"0",2)}function wf(t,e){return Fa(t.getUTCDate(),e,2)}function xf(t,e){return Fa(t.getUTCHours(),e,2)}function Mf(t,e){return Fa(t.getUTCHours()%12||12,e,2)}function Af(t,e){return Fa(1+_a.count(Ma(t),t),e,3)}function Nf(t,e){return Fa(t.getUTCMilliseconds(),e,3)}function Tf(t,e){return Nf(t,e)+"000"}function Cf(t,e){return Fa(t.getUTCMonth()+1,e,2)}function kf(t,e){return Fa(t.getUTCMinutes(),e,2)}function Sf(t,e){return Fa(t.getUTCSeconds(),e,2)}function Uf(t){var e=t.getUTCDay();return 0===e?7:e}function Df(t,e){return Fa(ma.count(Ma(t),t),e,2)}function Ef(t,e){var n=t.getUTCDay();return t=4<=n||0===n?xa(t):xa.ceil(t),Fa(xa.count(Ma(t),t)+(4===Ma(t).getUTCDay()),e,2)}function Pf(t){return t.getUTCDay()}function Ff(t,e){return Fa(wa.count(Ma(t),t),e,2)}function Lf(t,e){return Fa(t.getUTCFullYear()%100,e,2)}function Yf(t,e){return Fa(t.getUTCFullYear()%1e4,e,4)}function Hf(){return"+0000"}function Of(){return"%"}function qf(t){return+t}function If(t){return Math.floor(+t/1e3)}Ca=function(t){var r=t.dateTime,a=t.date,f=t.time,e=t.periods,n=t.days,i=t.shortDays,c=t.months,o=t.shortMonths,u=Ya(e),s=Ha(e),d=Ya(n),l=Ha(n),h=Ya(i),b=Ha(i),p=Ya(c),g=Ha(c),y=Ya(o),_=Ha(o),v={a:function(t){return i[t.getDay()]},A:function(t){return n[t.getDay()]},b:function(t){return o[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:rf,e:rf,f:uf,H:af,I:ff,j:cf,L:of,m:sf,M:df,p:function(t){return e[+(12<=t.getHours())]},Q:qf,s:If,S:lf,u:hf,U:bf,V:pf,w:gf,W:yf,x:null,X:null,y:_f,Y:vf,Z:mf,"%":Of},m={a:function(t){return i[t.getUTCDay()]},A:function(t){return n[t.getUTCDay()]},b:function(t){return o[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:wf,e:wf,f:Tf,H:xf,I:Mf,j:Af,L:Nf,m:Cf,M:kf,p:function(t){return e[+(12<=t.getUTCHours())]},Q:qf,s:If,S:Sf,u:Uf,U:Df,V:Ef,w:Pf,W:Ff,x:null,X:null,y:Lf,Y:Yf,Z:Hf,"%":Of},w={a:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=b[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=l[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=_[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,e,n){return A(t,r,e,n)},d:$a,e:$a,f:Ka,H:Wa,I:Wa,j:Za,L:Ga,m:Ba,M:Qa,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=s[r[0].toLowerCase()],n+r[0].length):-1},Q:ef,s:nf,S:Ja,u:qa,U:Ia,V:ja,w:Oa,W:za,x:function(t,e,n){return A(t,a,e,n)},X:function(t,e,n){return A(t,f,e,n)},y:Xa,Y:Va,Z:Ra,"%":tf};function x(o,u){return function(t){var e,n,r,a=[],f=-1,i=0,c=o.length;for(t instanceof Date||(t=new Date(+t));++f<c;)37===o.charCodeAt(f)&&(a.push(o.slice(i,f)),null!=(n=Ua[e=o.charAt(++f)])?e=o.charAt(++f):n="e"===e?" ":"0",(r=u[e])&&(e=r(t,n)),a.push(e),i=f+1);return a.push(o.slice(i,f)),a.join("")}}function M(a,f){return function(t){var e,n,r=Ta(1900);if(A(r,a,t+="",0)!=t.length)return null;if("Q"in r)return new Date(r.Q);if("p"in r&&(r.H=r.H%12+12*r.p),"V"in r){if(r.V<1||53<r.V)return null;"w"in r||(r.w=1),r.d="Z"in r?(e=4<(n=(e=Na(Ta(r.y))).getUTCDay())||0===n?wa.ceil(e):wa(e),e=_a.offset(e,7*(r.V-1)),r.y=e.getUTCFullYear(),r.m=e.getUTCMonth(),e.getUTCDate()+(r.w+6)%7):(e=4<(n=(e=f(Ta(r.y))).getDay())||0===n?pa.ceil(e):pa(e),e=la.offset(e,7*(r.V-1)),r.y=e.getFullYear(),r.m=e.getMonth(),e.getDate()+(r.w+6)%7)}else("W"in r||"U"in r)&&("w"in r||(r.w="u"in r?r.u%7:"W"in r?1:0),n="Z"in r?Na(Ta(r.y)).getUTCDay():f(Ta(r.y)).getDay(),r.m=0,r.d="W"in r?(r.w+6)%7+7*r.W-(n+5)%7:r.w+7*r.U-(n+6)%7);return"Z"in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,Na(r)):f(r)}}function A(t,e,n,r){for(var a,f,i=0,c=e.length,o=n.length;i<c;){if(o<=r)return-1;if(37===(a=e.charCodeAt(i++))){if(a=e.charAt(i++),!(f=w[a in Ua?e.charAt(i++):a])||(r=f(t,n,r))<0)return-1}else if(a!=n.charCodeAt(r++))return-1}return r}return v.x=x(a,v),v.X=x(f,v),v.c=x(r,v),m.x=x(a,m),m.X=x(f,m),m.c=x(r,m),{format:function(t){var e=x(t+="",v);return e.toString=function(){return t},e},parse:function(t){var e=M(t+="",Aa);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",m);return e.toString=function(){return t},e},utcParse:function(t){var e=M(t,Na);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Ca.format,Ca.parse,ka=Ca.utcFormat,Sa=Ca.utcParse;var jf="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||ka(jf);+new Date("2000-01-01T00:00:00.000Z")||Sa(jf);function zf(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}function Vf(t){return he(t[t.length-1])}zf("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),zf("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),zf("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),zf("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),zf("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),zf("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),zf("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),zf("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),zf("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Vf(new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(zf)),Vf(new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(zf)),Vf(new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(zf)),Vf(new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(zf)),Vf(new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(zf)),Vf(new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(zf)),Vf(new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(zf)),Vf(new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(zf)),Vf(new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(zf)),Vf(new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(zf)),Vf(new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(zf)),Vf(new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(zf)),Vf(new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(zf)),Vf(new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(zf)),Vf(new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(zf)),Vf(new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(zf)),Vf(new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(zf)),Vf(new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(zf)),Vf(new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(zf)),Vf(new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(zf)),Vf(new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(zf)),Vf(new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(zf)),Vf(new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(zf)),Vf(new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(zf)),Vf(new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(zf)),Vf(new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(zf)),Vf(new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(zf)),De(fe(300,.5,0),fe(-240,.5,1));De(fe(-100,.75,.35),fe(80,1.5,.8)),De(fe(260,.75,.35),fe(80,1.5,.8)),fe(),Ut(),Math.PI,Math.PI;function Xf(e){var n=e.length;return function(t){return e[Math.max(0,Math.min(n-1,Math.floor(t*n)))]}}Xf(zf("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));Xf(zf("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Xf(zf("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Xf(zf("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Rf(t){return function(){return t}}Math.PI;function Bf(t){this._context=t}function $f(t){return new Bf(t)}function Zf(t){return t[0]}function Wf(t){return t[1]}function Qf(t){return t<0?-1:1}function Jf(t,e,n){var r=t._x1-t._x0,a=e-t._x1,f=(t._y1-t._y0)/(r||a<0&&-0),i=(n-t._y1)/(a||r<0&&-0),c=(f*a+i*r)/(r+a);return(Qf(f)+Qf(i))*Math.min(Math.abs(f),Math.abs(i),.5*Math.abs(c))||0}function Gf(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Kf(t,e,n){var r=t._x0,a=t._y0,f=t._x1,i=t._y1,c=(f-r)/3;t._context.bezierCurveTo(r+c,a+c*e,f-c,i-c*n,f,i)}function ti(t){this._context=t}function ei(t){this._context=t}Bf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},ti.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Kf(this,this._t0,Gf(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Kf(this,Gf(this,n=Jf(this,t,e)),n);break;default:Kf(this,this._t0,n=Jf(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(function(t){this._context=new ei(t)}.prototype=Object.create(ti.prototype)).point=function(t,e){ti.prototype.point.call(this,e,t)},ei.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,a,f){this._context.bezierCurveTo(e,t,r,n,f,a)}},t.axisBottom=function(t){return e(S,t)},t.axisLeft=function(t){return e(U,t)},t.axisTop=function(t){return e(C,t)},t.formatLocale=Vr,t.line=function(){var i=Zf,c=Wf,o=Rf(!0),u=null,s=$f,d=null;function e(t){var e,n,r,a=t.length,f=!1;for(null==u&&(d=s(r=hr())),e=0;e<=a;++e)!(e<a&&o(n=t[e],e,t))===f&&((f=!f)?d.lineStart():d.lineEnd()),f&&d.point(+i(n,e,t),+c(n,e,t));if(r)return d=null,r+""||null}return e.x=function(t){return arguments.length?(i="function"==typeof t?t:Rf(+t),e):i},e.y=function(t){return arguments.length?(c="function"==typeof t?t:Rf(+t),e):c},e.defined=function(t){return arguments.length?(o="function"==typeof t?t:Rf(!!t),e):o},e.curve=function(t){return arguments.length?(s=t,null!=u&&(d=s(u)),e):s},e.context=function(t){return arguments.length?(null==t?u=d=null:d=s(u=t),e):u},e},t.scaleBand=function t(){var f,i,e=Gr().unknown(void 0),c=e.domain,o=e.range,u=[0,1],s=!1,d=0,l=0,h=.5;function n(){var t=c().length,e=u[1]<u[0],n=u[e-0],r=u[1-e];f=(r-n)/Math.max(1,t-d+2*l),s&&(f=Math.floor(f)),n+=(r-n-f*(t-d))*h,i=f*(1-d),s&&(n=Math.round(n),i=Math.round(i));var a=function(t,e,n){t=+t,e=+e,n=(a=arguments.length)<2?(e=t,t=0,1):a<3?1:+n;for(var r=-1,a=0|Math.max(0,Math.ceil((e-t)/n)),f=new Array(a);++r<a;)f[r]=t+r*n;return f}(t).map(function(t){return n+f*t});return o(e?a.reverse():a)}return delete e.unknown,e.domain=function(t){return arguments.length?(c(t),n()):c()},e.range=function(t){return arguments.length?(u=[+t[0],+t[1]],n()):u.slice()},e.rangeRound=function(t){return u=[+t[0],+t[1]],s=!0,n()},e.bandwidth=function(){return i},e.step=function(){return f},e.round=function(t){return arguments.length?(s=!!t,n()):s},e.padding=function(t){return arguments.length?(d=l=Math.max(0,Math.min(1,t)),n()):d},e.paddingInner=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),n()):d},e.paddingOuter=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),n()):l},e.align=function(t){return arguments.length?(h=Math.max(0,Math.min(1,t)),n()):h},e.copy=function(){return t().domain(c()).range(u).round(s).paddingInner(d).paddingOuter(l).align(h)},n()},t.scaleLinear=function e(){var n=function(e,n){var r,f,i,c=ta,o=ta,u=_e,s=!1;function a(){return r=2<Math.min(c.length,o.length)?ra:na,f=i=null,t}function t(t){return(f||(f=r(c,o,s?(a=e,function(e,n){var r=a(e=+e,n=+n);return function(t){return t<=e?0:n<=t?1:r(t)}}):e,u)))(+t);var a}return t.invert=function(t){return(i||(i=r(o,c,ea,s?(a=n,function(e,n){var r=a(e=+e,n=+n);return function(t){return t<=0?e:1<=t?n:r(t)}}):n)))(+t);var a},t.domain=function(t){return arguments.length?(c=Wr.call(t,Kr),a()):c.slice()},t.range=function(t){return arguments.length?(o=Qr.call(t),a()):o.slice()},t.rangeRound=function(t){return o=Qr.call(t),u=ve,a()},t.clamp=function(t){return arguments.length?(s=!!t,a()):s},t.interpolate=function(t){return arguments.length?(u=t,a()):u},a()}(ea,be);return n.copy=function(){return t=n,e().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp());var t},fa(n)},t.scaleOrdinal=Gr,t.select=function(t){return"string"==typeof t?new ut([[document.querySelector(t)]],[document.documentElement]):new ut([[t]],ot)},Object.defineProperty(t,"__esModule",{value:!0})}); |