From 40edc55d3cfc62abbb508d9747cfb2fb316675b4 Mon Sep 17 00:00:00 2001 From: Rob Miller Date: Thu, 4 Oct 2018 13:24:47 -0700 Subject: [PATCH] Set the default circle color to an actual color. --- dist/liquid_fill_gauge.js | 4 ++-- src/examples/liquid_fill_gauge/liquid_fill_gauge.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/liquid_fill_gauge.js b/dist/liquid_fill_gauge.js index 34380e8f..d4cb68cd 100644 --- a/dist/liquid_fill_gauge.js +++ b/dist/liquid_fill_gauge.js @@ -1,4 +1,4 @@ -!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.liquid_fill_gauge=n():t.liquid_fill_gauge=n()}("undefined"!=typeof self?self:this,function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=476)}([function(t,n,e){"use strict";e.d(n,"i",function(){return r}),e.d(n,"j",function(){return i}),e.d(n,"o",function(){return u}),e.d(n,"l",function(){return a}),e.d(n,"q",function(){return c}),e.d(n,"w",function(){return o}),e.d(n,"h",function(){return f}),e.d(n,"r",function(){return s}),e.d(n,"a",function(){return l}),e.d(n,"d",function(){return h}),e.d(n,"e",function(){return d}),e.d(n,"g",function(){return b}),e.d(n,"f",function(){return v}),e.d(n,"k",function(){return p}),e.d(n,"n",function(){return g}),e.d(n,"p",function(){return y}),e.d(n,"t",function(){return _}),e.d(n,"s",function(){return m}),e.d(n,"u",function(){return O}),e.d(n,"v",function(){return j}),n.b=function(t){return t>1?0:t<-1?u:Math.acos(t)},n.c=function(t){return t>1?a:t<-1?-a:Math.asin(t)},n.m=function(t){return(t=_(t/2))*t};var r=1e-6,i=1e-12,u=Math.PI,a=u/2,c=u/4,o=2*u,f=180/u,s=u/180,l=Math.abs,h=Math.atan,d=Math.atan2,b=Math.cos,v=Math.ceil,p=Math.exp,g=(Math.floor,Math.log),y=Math.pow,_=Math.sin,m=Math.sign||function(t){return t>0?1:t<0?-1:0},O=Math.sqrt,j=Math.tan},function(t,n,e){"use strict";var r=e(199);e.d(n,"b",function(){return r.a});var i=e(33);e.d(n,"c",function(){return i.a});var u=e(228);e.d(n,"f",function(){return u.a});var a=e(104);e.d(n,"g",function(){return a.a});var c=e(229);e.d(n,"h",function(){return c.a});var o=e(52);e.d(n,"i",function(){return o.a});var f=e(53);e.d(n,"j",function(){return f.a});var s=e(34);e.d(n,"a",function(){return s.a});var l=e(102);e.d(n,"k",function(){return l.a});var h=e(230);e.d(n,"l",function(){return h.a});var d=e(4);e.d(n,"m",function(){return d.b});var b=e(54);e.d(n,"n",function(){return b.a});var v=e(103);e.d(n,"o",function(){return v.a});var p=e(107);e.d(n,"p",function(){return p.b});var g=e(231);e.d(n,"q",function(){return g.a});var y=e(232);e.d(n,"r",function(){return y.a});var _=e(55);e.d(n,"s",function(){return _.a});var m=e(56);e.d(n,"e",function(){return m.c}),e.d(n,"d",function(){return m.a})},function(t,n,e){"use strict";n.a=function t(n,e,u,a){function c(t){return n(t=new Date(+t)),t}c.floor=c;c.ceil=function(t){return n(t=new Date(t-1)),e(t,1),n(t),t};c.round=function(t){var n=c(t),e=c.ceil(t);return t-n0))return a;do{a.push(u=new Date(+t)),e(t,i),n(t)}while(u=t)for(;n(t),!r(t);)t.setTime(t-1)},function(t,n){if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););})};u&&(c.count=function(t,e){return r.setTime(+t),i.setTime(+e),n(r),n(i),Math.floor(u(r,i))},c.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?c.filter(a?function(n){return a(n)%t==0}:function(n){return c.count(0,n)%t==0}):c:null});return c};var r=new Date,i=new Date},function(t,n,e){"use strict";var r=e(90);e.d(n,"b",function(){return r.c}),e.d(n,"d",function(){return r.b}),e.d(n,"c",function(){return r.a});var i=e(17);e.d(n,"a",function(){return i.a});var u=e(91);e.d(n,"e",function(){return u.a});var a=e(175);e.d(n,"f",function(){return a.a});var c=e(176);e.d(n,"g",function(){return c.a});var o=e(93);e.d(n,"h",function(){return o.a});var f=e(95);e.d(n,"i",function(){return f.a});var s=e(177);e.d(n,"j",function(){return s.a});var l=e(180);e.d(n,"w",function(){return l.a});var h=e(181);e.d(n,"x",function(){return h.a});var d=e(99);e.d(n,"y",function(){return d.a});var b=e(182);e.d(n,"k",function(){return b.a});var v=e(183);e.d(n,"l",function(){return v.a});var p=e(184);e.d(n,"m",function(){return p.a});var g=e(185);e.d(n,"n",function(){return g.a});var y=e(100);e.d(n,"o",function(){return y.a});var _=e(92);e.d(n,"p",function(){return _.a});var m=e(186);e.d(n,"q",function(){return m.a});var O=e(50);e.d(n,"r",function(){return O.a});var j=e(97);e.d(n,"s",function(){return j.a});var x=e(187);e.d(n,"t",function(){return x.a});var w=e(188);e.d(n,"u",function(){return w.a});var M=e(189);e.d(n,"v",function(){return M.a});var k=e(98);e.d(n,"B",function(){return k.a}),e.d(n,"z",function(){return k.b}),e.d(n,"A",function(){return k.c});var T=e(101);e.d(n,"C",function(){return T.a});var S=e(94);e.d(n,"D",function(){return S.a});var C=e(190);e.d(n,"E",function(){return C.a})},function(t,n,e){"use strict";e.d(n,"c",function(){return z}),n.a=P;var r=e(200),i=e(201),u=e(202),a=e(203),c=e(105),o=e(205),f=e(206),s=e(207),l=e(208),h=e(209),d=e(210),b=e(211),v=e(212),p=e(213),g=e(214),y=e(215),_=e(107),m=e(216),O=e(217),j=e(218),x=e(219),w=e(220),M=e(221),k=e(222),T=e(223),S=e(224),C=e(225),A=e(226),N=e(56),E=e(227),z=[null];function P(t,n){this._groups=t,this._parents=n}function q(){return new P([[document.documentElement]],z)}P.prototype=q.prototype={constructor:P,select:r.a,selectAll:i.a,filter:u.a,data:a.a,enter:c.b,exit:o.a,merge:f.a,order:s.a,sort:l.a,call:h.a,nodes:d.a,node:b.a,size:v.a,empty:p.a,each:g.a,attr:y.a,style:_.a,property:m.a,classed:O.a,text:j.a,html:x.a,raise:w.a,lower:M.a,append:k.a,insert:T.a,remove:S.a,clone:C.a,datum:A.a,on:N.b,dispatch:E.a},n.b=q},function(t,n,e){"use strict";var r=e(58);e.d(n,"a",function(){return r.a});var i=e(114);e.d(n,"b",function(){return i.a});var u=e(61);e.d(n,"c",function(){return u.b});var a=e(112);e.d(n,"d",function(){return a.a});var c=e(115);e.d(n,"g",function(){return c.a});var o=e(35);e.d(n,"m",function(){return o.a});var f=e(116);e.d(n,"n",function(){return f.a});var s=e(237);e.d(n,"r",function(){return s.a});var l=e(117);e.d(n,"s",function(){return l.a});var h=e(238);e.d(n,"t",function(){return h.a}),e.d(n,"u",function(){return h.b});var d=e(241);e.d(n,"v",function(){return d.a});var b=e(111);e.d(n,"o",function(){return b.a}),e.d(n,"p",function(){return b.b}),e.d(n,"q",function(){return b.c});var v=e(242);e.d(n,"j",function(){return v.a}),e.d(n,"k",function(){return v.b});var p=e(243);e.d(n,"l",function(){return p.a});var g=e(244);e.d(n,"h",function(){return g.a}),e.d(n,"i",function(){return g.b});var y=e(245);e.d(n,"e",function(){return y.b}),e.d(n,"f",function(){return y.a});var _=e(246);e.d(n,"w",function(){return _.a})},function(t,n,e){"use strict";e.d(n,"c",function(){return o}),e.d(n,"d",function(){return f}),e.d(n,"b",function(){return h}),e.d(n,"a",function(){return d}),n.g=function(t,n){var e=b(t,n);if(e.state>c)throw new Error("too late; already scheduled");return e},n.h=function(t,n){var e=b(t,n);if(e.state>f)throw new Error("too late; already started");return e},n.f=b;var r=e(12),i=e(36),u=Object(r.a)("start","end","interrupt"),a=[],c=0,o=1,f=2,s=3,l=4,h=5,d=6;function b(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}n.e=function(t,n,e,r,b,v){var p=t.__transition;if(p){if(e in p)return}else t.__transition={};!function(t,n,e){var r,u=t.__transition;function a(h){var v,p,g,y;if(e.state!==o)return b();for(v in u)if((y=u[v]).name===e.name){if(y.state===s)return Object(i.c)(a);y.state===l?(y.state=d,y.timer.stop(),y.on.call("interrupt",t,t.__data__,y.index,y.group),delete u[v]):+v2?t[2]%360*o.r:0,U()):[T*o.h,S*o.h,C*o.h]},R.precision=function(t){return arguments.length?(q=Object(h.a)(D,P=t*t),F()):Object(o.u)(P)},R.fitExtent=function(t,n){return Object(l.a)(R,t,n)},R.fitSize=function(t,n){return Object(l.c)(R,t,n)},R.fitWidth=function(t,n){return Object(l.d)(R,t,n)},R.fitHeight=function(t,n){return Object(l.b)(R,t,n)},function(){return n=t.apply(this,arguments),R.invert=n.invert&&L,U()}}},function(t,n,e){"use strict";e.d(n,"d",function(){return r}),e.d(n,"c",function(){return i}),e.d(n,"b",function(){return u}),e.d(n,"a",function(){return a}),e.d(n,"e",function(){return c});var r=1e3,i=6e4,u=36e5,a=864e5,c=6048e5},function(t,n,e){"use strict";n.a=j,n.b=x,n.c=function(){return++O};var r=e(1),i=e(252),u=e(253),a=e(254),c=e(255),o=e(256),f=e(257),s=e(258),l=e(259),h=e(260),d=e(261),b=e(262),v=e(263),p=e(264),g=e(265),y=e(266),_=e(267),m=e(37),O=0;function j(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function x(t){return Object(r.m)().transition(t)}var w=r.m.prototype;j.prototype=x.prototype={constructor:j,select:d.a,selectAll:b.a,filter:f.a,merge:s.a,selection:v.a,transition:_.a,call:w.call,nodes:w.nodes,node:w.node,size:w.size,empty:w.empty,each:w.each,on:l.a,attr:i.a,attrTween:u.a,style:p.a,styleTween:g.a,text:y.a,remove:h.a,tween:m.a,delay:a.a,duration:c.a,ease:o.a}},function(t,n,e){"use strict";n.a=function(){}},function(t,n,e){"use strict";var r=e(197);e.d(n,"a",function(){return r.a})},function(t,n,e){"use strict";var r=e(287);e.d(n,"a",function(){return r.a})},function(t,n,e){"use strict";function r(t,n){t&&u.hasOwnProperty(t.type)&&u[t.type](t,n)}var i={Feature:function(t,n){r(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,i=-1,u=e.length;++in?1:t>=n?0:NaN}},function(t,n,e){"use strict";n.a=function(t){return function(){return t}}},function(t,n,e){"use strict";function r(){this.reset()}n.a=function(){return new r},r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(t){u(i,t,this.t),u(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new r;function u(t,n,e){var r=t.s=n+e,i=r-n,u=r-i;t.t=n-u+(e-i)}},function(t,n,e){"use strict";n.a=function(){return Math.random()}},function(t,n,e){"use strict";var r=e(288);e.d(n,"d",function(){return r.a});var i=e(289);e.d(n,"e",function(){return i.a});var u=e(64);e.d(n,"c",function(){return u.a});var a=e(290);e.d(n,"b",function(){return a.a});var c=e(291);e.d(n,"f",function(){return c.a});var o=e(292);e.d(n,"a",function(){return o.a})},function(t,n,e){"use strict";n.a=function(t){return null===t?NaN:+t}},function(t,n,e){"use strict";n.c=function(t,n){var e=n-t;return e?i(t,e>180||e<-180?e-360*Math.round(e/360):e):Object(r.a)(isNaN(t)?n:t)},n.b=function(t){return 1==(t=+t)?u:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):Object(r.a)(isNaN(n)?e:n)}},n.a=u;var r=e(113);function i(t,n){return function(e){return t+e*n}}function u(t,n){var e=n-t;return e?i(t,e):Object(r.a)(isNaN(t)?n:t)}},function(t,n,e){"use strict";n.g=function(t){return[Object(r.e)(t[1],t[0]),Object(r.c)(t[2])]},n.a=function(t){var n=t[0],e=t[1],i=Object(r.g)(e);return[i*Object(r.g)(n),i*Object(r.t)(n),Object(r.t)(e)]},n.d=function(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]},n.c=function(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]},n.b=function(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]},n.f=function(t,n){return[t[0]*n,t[1]*n,t[2]*n]},n.e=function(t){var n=Object(r.u)(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n};var r=e(0)},function(t,n,e){"use strict";n.b=function(t){return function(n,e){var i=Object(r.g)(n),u=Object(r.g)(e),a=t(i*u);return[a*u*Object(r.t)(n),a*Object(r.t)(e)]}},n.a=function(t){return function(n,e){var i=Object(r.u)(n*n+e*e),u=t(i),a=Object(r.t)(u),c=Object(r.g)(u);return[Object(r.e)(n*a,i*c),Object(r.c)(i&&e*a/i)]}};var r=e(0)},function(t,n,e){"use strict";n.a=function(t,n,e,r,i){for(var u,a=t.children,c=-1,o=a.length,f=t.value&&(r-n)/t.value;++c0?(o=Math.floor(o/i)*i,f=Math.ceil(f/i)*i,i=Object(r.z)(o,f,e)):i<0&&(o=Math.ceil(o*i)/i,f=Math.floor(f*i)/i,i=Object(r.z)(o,f,e)),i>0?(u[a]=Math.floor(o/i)*i,u[c]=Math.ceil(f/i)*i,n(u)):i<0&&(u[a]=Math.ceil(o*i)/i,u[c]=Math.floor(f*i)/i,n(u)),t},t}},function(t,n,e){"use strict";n.a=function(t){return t.match(/.{6}/g).map(function(t){return"#"+t})}},function(t,n,e){"use strict";e.d(n,"a",function(){return r}),e.d(n,"d",function(){return i}),e.d(n,"e",function(){return u}),e.d(n,"h",function(){return a}),e.d(n,"i",function(){return c}),e.d(n,"k",function(){return o}),e.d(n,"l",function(){return f}),e.d(n,"f",function(){return s}),e.d(n,"j",function(){return l}),e.d(n,"g",function(){return h}),e.d(n,"m",function(){return d}),n.b=function(t){return t>1?0:t<-1?l:Math.acos(t)},n.c=function(t){return t>=1?h:t<=-1?-h:Math.asin(t)};var r=Math.abs,i=Math.atan2,u=Math.cos,a=Math.max,c=Math.min,o=Math.sin,f=Math.sqrt,s=1e-12,l=Math.PI,h=l/2,d=2*l},function(t,n,e){"use strict";n.a=function(t,n){if((i=t.length)>1)for(var e,r,i,u=1,a=t[n[0]],c=a.length;u=0;)e[n]=n;return e}},function(t,n,e){"use strict";e.d(n,"f",function(){return h}),e.d(n,"g",function(){return d}),e.d(n,"a",function(){return r}),e.d(n,"b",function(){return i}),e.d(n,"c",function(){return u}),e.d(n,"e",function(){return a}),n.d=v;var r,i,u,a,c=e(458),o=e(169),f=e(170),s=e(89),l=e(88),h=1e-6,d=1e-12;function b(t,n){return n[1]-t[1]||n[0]-t[0]}function v(t,n){var e,h,d,v=t.sort(b).pop();for(a=[],i=new Array(t.length),r=new l.b,u=new l.b;;)if(d=f.c,v&&(!d||v[1]=c)return null;var o=t-i.site[0],f=n-i.site[1],s=o*o+f*f;do{i=u.cells[r=a],a=null,i.halfedges.forEach(function(e){var r=u.edges[e],c=r.left;if(c!==i.site&&c||(c=r.right)){var o=t-c[0],f=n-c[1],l=o*o+f*f;li.o?t-i.w:t<-i.o?t+i.w:t,n]}function a(t,n,e){return(t%=i.w)?n||e?Object(r.a)(o(t),f(n,e)):o(t):n||e?f(n,e):u}function c(t){return function(n,e){return[(n+=t)>i.o?n-i.w:n<-i.o?n+i.w:n,e]}}function o(t){var n=c(t);return n.invert=c(-t),n}function f(t,n){var e=Object(i.g)(t),r=Object(i.t)(t),u=Object(i.g)(n),a=Object(i.t)(n);function c(t,n){var c=Object(i.g)(n),o=Object(i.g)(t)*c,f=Object(i.t)(t)*c,s=Object(i.t)(n),l=s*e+o*r;return[Object(i.e)(f*u-l*a,o*e-s*r),Object(i.c)(l*u+f*a)]}return c.invert=function(t,n){var c=Object(i.g)(n),o=Object(i.g)(t)*c,f=Object(i.t)(t)*c,s=Object(i.t)(n),l=s*u-f*a;return[Object(i.e)(f*u+s*a,o*e+l*r),Object(i.c)(l*e-o*r)]},c}u.invert=u,n.a=function(t){function n(n){return(n=t(n[0]*i.r,n[1]*i.r))[0]*=i.h,n[1]*=i.h,n}return t=a(t[0]*i.r,t[1]*i.r,t.length>2?t[2]*i.r:0),n.invert=function(n){return(n=t.invert(n[0]*i.r,n[1]*i.r))[0]*=i.h,n[1]*=i.h,n},n}},function(t,n,e){"use strict";n.a=function(t,n,e,s){function l(r,i){return t<=r&&r<=e&&n<=i&&i<=s}function h(r,i,u,a){var c=0,o=0;if(null==r||(c=d(r,u))!==(o=d(i,u))||v(r,i)<0^u>0)do{a.point(0===c||3===c?t:e,c>1?s:n)}while((c=(c+u+4)%4)!==o);else a.point(i[0],i[1])}function d(i,u){return Object(r.a)(i[0]-t)0?0:3:Object(r.a)(i[0]-e)0?2:1:Object(r.a)(i[1]-n)0?1:0:u>0?3:2}function b(t,n){return v(t.x,n.x)}function v(t,n){var e=d(t,1),r=d(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(r){var d,v,p,g,y,_,m,O,j,x,w,M=r,k=Object(i.a)(),T={point:S,lineStart:function(){T.point=C,v&&v.push(p=[]);x=!0,j=!1,m=O=NaN},lineEnd:function(){d&&(C(g,y),_&&j&&k.rejoin(),d.push(k.result()));T.point=S,j&&M.lineEnd()},polygonStart:function(){M=k,d=[],v=[],w=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,r=v.length;es&&(l-i)*(s-u)>(h-u)*(t-i)&&++n:h<=s&&(l-i)*(s-u)<(h-u)*(t-i)&&--n;return n}(),e=w&&n,i=(d=Object(c.n)(d)).length;(e||i)&&(r.polygonStart(),e&&(r.lineStart(),h(null,null,1,r),r.lineEnd()),i&&Object(a.a)(d,b,n,h,r),r.polygonEnd());M=r,d=v=p=null}};function S(t,n){l(t,n)&&M.point(t,n)}function C(r,i){var a=l(r,i);if(v&&p.push([r,i]),x)g=r,y=i,_=a,x=!1,a&&(M.lineStart(),M.point(r,i));else if(a&&j)M.point(r,i);else{var c=[m=Math.max(f,Math.min(o,m)),O=Math.max(f,Math.min(o,O))],h=[r=Math.max(f,Math.min(o,r)),i=Math.max(f,Math.min(o,i))];Object(u.a)(c,h,t,n,e,s)?(j||(M.lineStart(),M.point(c[0],c[1])),M.point(h[0],h[1]),a||M.lineEnd(),w=!1):a&&(M.lineStart(),M.point(r,i),w=!1)}m=r,O=i,j=a}return T}};var r=e(0),i=e(132),u=e(330),a=e(133),c=e(3),o=1e9,f=-o},function(t,n,e){"use strict";function r(t){return function(n){var e=new i;for(var r in t)e[r]=t[r];return e.stream=n,e}}function i(){}n.b=r,n.a=function(t){return{stream:r(t)}},i.prototype={constructor:i,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}}},function(t,n,e){"use strict";n.a=function(t,n,e,r,i){for(var u,a=t.children,c=-1,o=a.length,f=t.value&&(i-e)/t.value;++c2?l:s,r=a=null,g}function g(n){return(r||(r=e(h,d,v?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}(t):t,b)))(+n)}return g.invert=function(t){return(a||(a=e(d,h,f,v?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}(n):n)))(+t)},g.domain=function(t){return arguments.length?(h=u.a.call(t,c.a),p()):h.slice()},g.range=function(t){return arguments.length?(d=u.b.call(t),p()):d.slice()},g.rangeRound=function(t){return d=u.b.call(t),b=i.r,p()},g.clamp=function(t){return arguments.length?(v=!!t,p()):v},g.interpolate=function(t){return arguments.length?(b=t,p()):b},p()};var r=e(3),i=e(5),u=e(15),a=e(81),c=e(150),o=[0,1];function f(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:Object(a.a)(n)}function s(t,n,e,r){var i=t[0],u=t[1],a=n[0],c=n[1];return u=1)return+e(t[i-1],i-1,t);var i,u=(i-1)*n,a=Math.floor(u),c=+e(t[a],a,t);return c+(+e(t[a+1],a+1,t)-c)*(u-a)}}},function(t,n,e){"use strict";var r=e(198);e.d(n,"a",function(){return r.a});var i=e(108);e.d(n,"b",function(){return i.a}),e.d(n,"c",function(){return i.b})},function(t,n,e){"use strict";var r=e(53);n.a=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),r.a.hasOwnProperty(n)?{space:r.a[n],local:t}:t}},function(t,n,e){"use strict";e.d(n,"b",function(){return r});var r="http://www.w3.org/1999/xhtml";n.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(t,n,e){"use strict";function r(){}n.a=function(t){return null==t?r:function(){return this.querySelector(t)}}},function(t,n,e){"use strict";n.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,n,e){"use strict";e.d(n,"c",function(){return i}),n.a=function(t,n,e,r){var u=i;t.sourceEvent=i,i=t;try{return n.apply(e,r)}finally{i=u}};var r={},i=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(r={mouseenter:"mouseover",mouseleave:"mouseout"}));function u(t,n,e){return t=a(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function a(t,n,e){return function(r){var u=i;i=r;try{t.call(this,this.__data__,n,e)}finally{i=u}}}function c(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,u=n.length;r=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}(t+""),a=u.length;if(!(arguments.length<2)){for(f=n?o:c,null==e&&(e=!1),r=0;r>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=l.exec(t))?m(parseInt(n[1],16)):(n=h.exec(t))?new w(n[1],n[2],n[3],1):(n=d.exec(t))?new w(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=b.exec(t))?O(n[1],n[2],n[3],n[4]):(n=v.exec(t))?O(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=p.exec(t))?M(n[1],n[2]/100,n[3]/100,1):(n=g.exec(t))?M(n[1],n[2]/100,n[3]/100,n[4]):y.hasOwnProperty(t)?m(y[t]):"transparent"===t?new w(NaN,NaN,NaN,0):null}function m(t){return new w(t>>16&255,t>>8&255,255&t,1)}function O(t,n,e,r){return r<=0&&(t=n=e=NaN),new w(t,n,e,r)}function j(t){return t instanceof i||(t=_(t)),t?new w((t=t.rgb()).r,t.g,t.b,t.opacity):new w}function x(t,n,e,r){return 1===arguments.length?j(t):new w(t,n,e,null==r?1:r)}function w(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function M(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new T(t,n,e,r)}function k(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof T)return new T(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=_(t)),!t)return new T;if(t instanceof T)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,u=Math.min(n,e,r),a=Math.max(n,e,r),c=NaN,o=a-u,f=(a+u)/2;return o?(c=n===a?(e-r)/o+6*(e0&&f<1?0:c,new T(c,o,f,t.opacity)}(t):new T(t,n,e,null==r?1:r)}function T(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function S(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}Object(r.a)(i,_,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Object(r.a)(w,x,Object(r.b)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?u:Math.pow(u,t),new w(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},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+")")}})),Object(r.a)(T,k,Object(r.b)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new T(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?u:Math.pow(u,t),new T(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new w(S(t>=240?t-240:t+120,i,r),S(t,i,r),S(t<120?t+240:t-120,i,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}}))},function(t,n,e){"use strict";n.b=function(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e},n.a=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t}},function(t,n,e){"use strict";function r(t,n,e,r,i){var u=t*t,a=u*t;return((1-3*t+3*u-a)*n+(4-6*u+3*a)*e+(1+3*t+3*u-3*a)*r+a*i)/6}n.a=r,n.b=function(t){var n=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),u=t[i],a=t[i+1],c=i>0?t[i-1]:2*u-a,o=i=0&&n._call.call(null,t),n=n._next;--u}function _(){s=(f=h.now())+l,u=a=0;try{y()}finally{u=0,function(){var t,n,e=r,u=1/0;for(;e;)e._call?(u>e._time&&(u=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:r=n);i=t,O(u)}(),s=0}}function m(){var t=h.now(),n=t-f;n>o&&(l-=n,f=t)}function O(t){u||(a&&(a=clearTimeout(a)),t-s>24?(t<1/0&&(a=setTimeout(_,t-h.now()-l)),c&&(c=clearInterval(c))):(c||(f=h.now(),c=setInterval(m,o)),u=1,d(_)))}p.prototype=g.prototype={constructor:p,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?b():+e)+(null==n?0:+n),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=e,O()},stop:function(){this._call&&(this._call=null,this._time=1/0,O())}}},function(t,n,e){"use strict";e.d(n,"b",function(){return r});var r="$";function i(){}function u(t,n){var e=new i;if(t instanceof i)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,u=-1,a=t.length;if(null==n)for(;++u=s?d=!0:(o=t.charCodeAt(l++))===a?b=!0:o===c&&(b=!0,t.charCodeAt(l)===a&&++l),t.slice(f+1,n-1).replace(/""/g,'"')}for(;l1?r[0]+r.slice(2):r,+t.slice(e+1)]}},function(t,n,e){"use strict";n.a=function(t){return t}},function(t,n,e){"use strict";n.a=a;var r=e(0),i=e(74),u=e(341);function a(t,n){var e=Object(r.t)(t),i=(e+Object(r.t)(n))/2;if(Object(r.a)(i)=0;--u)f.push(r=e.children[u]=new y(i[u])),r.parent=e,r.depth=e.depth+1;return c.eachBefore(g)}function v(t){return t.children}function p(t){t.data=t.data.data}function g(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function y(t){this.data=t,this.depth=this.height=0,this.parent=null}y.prototype=b.prototype={constructor:y,count:r.a,each:i.a,eachAfter:a.a,eachBefore:u.a,sum:c.a,sort:o.a,path:f.a,ancestors:s.a,descendants:l.a,leaves:h.a,links:d.a,copy:function(){return b(this).eachBefore(p)}}},function(t,n,e){"use strict";function r(t){if("function"!=typeof t)throw new Error;return t}n.a=function(t){return null==t?null:r(t)},n.b=r},function(t,n,e){"use strict";e.d(n,"b",function(){return u}),n.c=a;var r=e(26),i=e(42),u=(1+Math.sqrt(5))/2;function a(t,n,e,u,a,c){for(var o,f,s,l,h,d,b,v,p,g,y,_=[],m=n.children,O=0,j=0,x=m.length,w=n.value;Ob&&(b=f),y=h*h*g,(v=Math.max(b/y,y/d))>p){h-=f;break}p=v}_.push(o={value:h,dice:s1?n:1)},e}(u)},function(t,n,e){"use strict";var r=e(21),i=e(12);n.a=function(t,n){var e,u,a,c,o=Object(i.a)("beforesend","progress","load","error"),f=Object(r.c)(),s=new XMLHttpRequest,l=null,h=null,d=0;function b(t){var n,r=s.status;if(!r&&function(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}(s)||r>=200&&r<300||304===r){if(a)try{n=a.call(e,s)}catch(t){return void o.call("error",e,t)}else n=s;o.call("load",e,n)}else o.call("error",e,t)}if("undefined"==typeof XDomainRequest||"withCredentials"in s||!/^(http(s)?:)?\/\//.test(t)||(s=new XDomainRequest),"onload"in s?s.onload=s.onerror=s.ontimeout=b:s.onreadystatechange=function(t){s.readyState>3&&b(t)},s.onprogress=function(t){o.call("progress",e,t)},e={header:function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?f.get(t):(null==n?f.remove(t):f.set(t,n+""),e)},mimeType:function(t){return arguments.length?(u=null==t?null:t+"",e):u},responseType:function(t){return arguments.length?(c=t,e):c},timeout:function(t){return arguments.length?(d=+t,e):d},user:function(t){return arguments.length<1?l:(l=null==t?null:t+"",e)},password:function(t){return arguments.length<1?h:(h=null==t?null:t+"",e)},response:function(t){return a=t,e},get:function(t,n){return e.send("GET",t,n)},post:function(t,n){return e.send("POST",t,n)},send:function(n,r,i){return s.open(n,t,!0,l,h),null==u||f.has("accept")||f.set("accept",u+",*/*"),s.setRequestHeader&&f.each(function(t,n){s.setRequestHeader(n,t)}),null!=u&&s.overrideMimeType&&s.overrideMimeType(u),null!=c&&(s.responseType=c),d>0&&(s.timeout=d),null==i&&"function"==typeof r&&(i=r,r=null),null!=i&&1===i.length&&(i=function(t){return function(n,e){t(null==n?e:null)}}(i)),null!=i&&e.on("error",i).on("load",function(t){i(null,t)}),o.call("beforesend",e,s),s.send(null==r?null:r),e},abort:function(){return s.abort(),e},on:function(){var t=o.on.apply(o,arguments);return t===o?e:t}},null!=n){if("function"!=typeof n)throw new Error("invalid callback: "+n);return e.get(n)}return e}},function(t,n,e){"use strict";n.a=function(t){return function(){return t}}},function(t,n,e){"use strict";var r=e(83);e.d(n,"d",function(){return r.a}),e.d(n,"c",function(){return r.b}),e.d(n,"f",function(){return r.c}),e.d(n,"g",function(){return r.d}),e.d(n,"h",function(){return r.e});var i=e(153);e.d(n,"e",function(){return i.a});var u=e(154);e.d(n,"a",function(){return u.a});var a=e(420);e.d(n,"b",function(){return a.a})},function(t,n,e){"use strict";e.d(n,"b",function(){return i}),e.d(n,"c",function(){return u}),e.d(n,"d",function(){return a}),e.d(n,"e",function(){return c}),n.a=f;var r,i,u,a,c,o=e(153);function f(t){return r=Object(o.a)(t),i=r.format,u=r.parse,a=r.utcFormat,c=r.utcParse,r}f({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"]})},function(t,n,e){"use strict";var r=e(13),i=e(16),u=e(46),a=e(85);n.a=function(){var t=a.a,n=a.b,e=Object(i.a)(!0),c=null,o=u.a,f=null;function s(i){var u,a,s,l=i.length,h=!1;for(null==c&&(f=o(s=Object(r.a)())),u=0;u<=l;++u)!(ur.f){var o=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,f=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*o-t._x0*t._l12_2a+t._x2*t._l01_2a)/f,u=(u*o-t._y0*t._l12_2a+t._y2*t._l01_2a)/f}if(t._l23_a>r.f){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*s+t._x1*t._l23_2a-n*t._l12_2a)/l,c=(c*s+t._y1*t._l23_2a-e*t._l12_2a)/l}t._context.bezierCurveTo(i,u,a,c,t._x2,t._y2)}function a(t,n){this._context=t,this._alpha=n}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:u(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},n.a=function t(n){function e(t){return n?new a(t,n):new i.a(t,0)}return e.alpha=function(n){return t(+n)},e}(.5)},function(t,n,e){"use strict";n.b=i;var r=e(31);function i(t){for(var n,e=0,r=-1,i=t.length;++rr.f||Math.abs(c[0][1]-c[1][1])>r.f)||delete r.e[o]};var r=e(32);function i(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function u(t,n,e,r,i){var u,a=t[0],c=t[1],o=a[0],f=a[1],s=0,l=1,h=c[0]-o,d=c[1]-f;if(u=n-o,h||!(u>0)){if(u/=h,h<0){if(u0){if(u>l)return;u>s&&(s=u)}if(u=r-o,h||!(u<0)){if(u/=h,h<0){if(u>l)return;u>s&&(s=u)}else if(h>0){if(u0)){if(u/=d,d<0){if(u0){if(u>l)return;u>s&&(s=u)}if(u=i-f,d||!(u<0)){if(u/=d,d<0){if(u>l)return;u>s&&(s=u)}else if(d>0){if(u0||l<1)||(s>0&&(t[0]=[o+s*h,f+s*d]),l<1&&(t[1]=[o+l*h,f+l*d]),!0)}}}}}function a(t,n,e,r,i){var u=t[1];if(u)return!0;var a,c,o=t[0],f=t.left,s=t.right,l=f[0],h=f[1],d=s[0],b=s[1],v=(l+d)/2,p=(h+b)/2;if(b===h){if(v=r)return;if(l>d){if(o){if(o[1]>=i)return}else o=[v,e];u=[v,i]}else{if(o){if(o[1]1)if(l>d){if(o){if(o[1]>=i)return}else o=[(e-c)/a,e];u=[(i-c)/a,i]}else{if(o){if(o[1]=r)return}else o=[n,a*n+c];u=[r,a*r+c]}else{if(o){if(o[0]>>1;t(n[u],e)<0?r=u+1:i=u}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[u],e)>0?i=u:r=u+1}return r}}}},function(t,n,e){"use strict";function r(t,n){return[t,n]}n.b=r,n.a=function(t,n){null==n&&(n=r);for(var e=0,i=t.length-1,u=t[0],a=new Array(i<0?0:i);e1)return f/(a-1)}},function(t,n,e){"use strict";n.a=function(t,n){var e,r,i,u=t.length,a=-1;if(null==n){for(;++a=e)for(r=i=e;++ae&&(r=e),i=e)for(r=i=e;++ae&&(r=e),i=r?c*=10:o>=i?c*=5:o>=u&&(c*=2);return n=0?(o>=r?10:o>=i?5:o>=u?2:1)*Math.pow(10,c):-Math.pow(10,-c)/(o>=r?10:o>=i?5:o>=u?2:1)}n.a=function(t,n,e){var r,i,u,c,o=-1;if(e=+e,(t=+t)===(n=+n)&&e>0)return[t];if((r=n0)for(t=Math.ceil(t/c),n=Math.floor(n/c),u=new Array(i=Math.ceil(n-t+1));++o=e)for(r=e;++ue&&(r=e)}else for(;++u=e)for(r=e;++ue&&(r=e);return r}},function(t,n,e){"use strict";var r=e(100);function i(t){return t.length}n.a=function(t){if(!(a=t.length))return[];for(var n=-1,e=Object(r.a)(t,i),u=new Array(e);++n1?this.each((null==n?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof n?function(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}:function(t,n,e){return function(){this.style.setProperty(t,n,e)}})(t,n,null==e?"":e)):i(this.node(),t)}},function(t,n,e){"use strict";n.b=function(t,n){var e=t.document.documentElement,u=Object(r.k)(t).on("dragstart.drag",null);n&&(u.on("click.drag",i.a,!0),setTimeout(function(){u.on("click.drag",null)},0));"onselectstart"in e?u.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)};var r=e(1),i=e(109);n.a=function(t){var n=t.document.documentElement,e=Object(r.k)(t).on("dragstart.drag",i.a,!0);"onselectstart"in n?e.on("selectstart.drag",i.a,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}},function(t,n,e){"use strict";n.b=function(){r.e.stopImmediatePropagation()};var r=e(1);n.a=function(){r.e.preventDefault(),r.e.stopImmediatePropagation()}},function(t,n,e){"use strict";e.d(n,"a",function(){return r}),e.d(n,"b",function(){return i});var r=Math.PI/180,i=180/Math.PI},function(t,n,e){"use strict";e.d(n,"b",function(){return o}),e.d(n,"c",function(){return f});var r=e(7),i=e(61),u=e(112),a=e(23);function c(t){return function(n){var e,i,u=n.length,a=new Array(u),c=new Array(u),o=new Array(u);for(e=0;eo&&(c=n.slice(o,c),s[f]?s[f]+=c:s[++f]=c),(e=e[0])===(a=a[0])?s[f]?s[f]+=a:s[++f]=a:(s[++f]=null,l.push({i:f,x:Object(r.a)(e,a)})),o=u.lastIndex;return or.d&&e.state1?(null==e?h.remove(t):h.set(t,y(e)),n):h.get(t)},find:function(n,e,r){var i,u,a,c,o,f=0,s=t.length;for(null==r?r=1/0:r*=r,f=0;f1?(b.on(t,e),n):b.on(t)}}}},function(t,n,e){"use strict";var r=e(38),i=e(317),u=e(318),a=e(124),c=e(125),o=e(126),f=e(321),s=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];n.a=function(t){var n=t.grouping&&t.thousands?Object(i.a)(t.grouping,t.thousands):f.a,e=t.currency,l=t.decimal,h=t.numerals?Object(u.a)(t.numerals):f.a,d=t.percent||"%";function b(t){var r=(t=Object(a.a)(t)).fill,i=t.align,u=t.sign,f=t.symbol,b=t.zero,v=t.width,p=t.comma,g=t.precision,y=t.type,_="$"===f?e[0]:"#"===f&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",m="$"===f?e[1]:/[%p]/.test(y)?d:"",O=c.a[y],j=!y||/[defgprs%]/.test(y);function x(t){var e,a,c,f=_,d=m;if("c"===y)d=O(t)+d,t="";else{var x=(t=+t)<0;if(t=O(Math.abs(t),g),x&&0==+t&&(x=!1),f=(x?"("===u?u:"-":"-"===u||"("===u?"":u)+f,d=("s"===y?s[8+o.b/3]:"")+d+(x&&"("===u?")":""),j)for(e=-1,a=t.length;++e(c=t.charCodeAt(e))||c>57){d=(46===c?l+t.slice(e+1):t.slice(e))+d,t=t.slice(0,e);break}}p&&!b&&(t=n(t,1/0));var w=f.length+t.length+d.length,M=w>1)+f+t+d+M.slice(w);break;default:t=M+f+t+d}return h(t)}return g=null==g?y?6:12:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),x.toString=function(){return t+""},x}return{format:b,formatPrefix:function(t,n){var e=b(((t=Object(a.a)(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(n)/3))),u=Math.pow(10,-i),c=s[8+i/3];return function(t){return e(u*t)+c}}}}},function(t,n,e){"use strict";n.a=u;var r=e(125),i=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function u(t){return new a(t)}function a(t){if(!(n=i.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",u=n[2]||">",a=n[3]||"-",c=n[4]||"",o=!!n[5],f=n[6]&&+n[6],s=!!n[7],l=n[8]&&+n[8].slice(1),h=n[9]||"";"n"===h?(s=!0,h="g"):r.a[h]||(h=""),(o||"0"===e&&"="===u)&&(o=!0,e="0",u="="),this.fill=e,this.align=u,this.sign=a,this.symbol=c,this.zero=o,this.width=f,this.comma=s,this.precision=l,this.type=h}u.prototype=a.prototype,a.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.type}},function(t,n,e){"use strict";var r=e(319),i=e(126),u=e(320);n.a={"":r.a,"%":function(t,n){return(100*t).toFixed(n)},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,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Object(u.a)(100*t,n)},r:u.a,s:i.a,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}}},function(t,n,e){"use strict";e.d(n,"b",function(){return r});var r,i=e(71);n.a=function(t,n){var e=Object(i.a)(t,n);if(!e)return t+"";var u=e[0],a=e[1],c=a-(r=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,o=u.length;return c===o?u:c>o?u+new Array(c-o+1).join("0"):c>0?u.slice(0,c)+"."+u.slice(c):"0."+new Array(1-c).join("0")+Object(i.a)(t,Math.max(0,n+c-1))[0]}},function(t,n,e){"use strict";e.d(n,"a",function(){return h}),e.d(n,"b",function(){return b});var r,i,u,a,c,o=e(19),f=e(0),s=e(11),l=e(14),h=Object(o.a)(),d=Object(o.a)(),b={point:s.a,lineStart:s.a,lineEnd:s.a,polygonStart:function(){h.reset(),b.lineStart=v,b.lineEnd=p},polygonEnd:function(){var t=+h;d.add(t<0?f.w+t:t),this.lineStart=this.lineEnd=this.point=s.a},sphere:function(){d.add(f.w)}};function v(){b.point=g}function p(){y(r,i)}function g(t,n){b.point=y,r=t,i=n,t*=f.r,n*=f.r,u=t,a=Object(f.g)(n=n/2+f.q),c=Object(f.t)(n)}function y(t,n){t*=f.r,n=(n*=f.r)/2+f.q;var e=t-u,r=e>=0?1:-1,i=r*e,o=Object(f.g)(n),s=Object(f.t)(n),l=c*s,d=a*o+l*Object(f.g)(i),b=l*r*Object(f.t)(i);h.add(Object(f.e)(b,d)),u=t,a=o,c=s}n.c=function(t){return d.reset(),Object(l.a)(t,b),2*d}},function(t,n,e){"use strict";n.a=c;var r=e(24),i=e(328),u=e(0),a=e(39);function c(t,n,e,i,a,c){if(e){var f=Object(u.g)(n),s=Object(u.t)(n),l=i*e;null==a?(a=n+i*u.w,c=n-l/2):(a=o(f,a),c=o(f,c),(i>0?ac)&&(a+=i*u.w));for(var h,d=a;i>0?d>c:d0?i.o:-i.o,f=Object(i.a)(a-e);Object(i.a)(f-i.o)0?i.l:-i.l),t.point(u,r),t.lineEnd(),t.lineStart(),t.point(o,r),t.point(a,r),n=0):u!==o&&f>=i.o&&(Object(i.a)(e-u)i.i?Object(i.d)((Object(i.t)(n)*(a=Object(i.g)(r))*Object(i.t)(e)-Object(i.t)(r)*(u=Object(i.g)(n))*Object(i.t)(t))/(u*a*c)):(n+r)/2}(e,r,a,c),t.point(u,r),t.lineEnd(),t.lineStart(),t.point(o,r),n=0),t.point(e=a,r=c),u=o},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}},function(t,n,e,r){var u;if(null==t)u=e*i.l,r.point(-i.o,u),r.point(0,u),r.point(i.o,u),r.point(i.o,0),r.point(i.o,-u),r.point(0,-u),r.point(-i.o,-u),r.point(-i.o,0),r.point(-i.o,u);else if(Object(i.a)(t[0]-n[0])>i.i){var a=t[0]1}function f(t,n){return((t=t.x)[0]<0?t[1]-u.l-u.i:u.l-t[1])-((n=n.x)[0]<0?n[1]-u.l-u.i:u.l-n[1])}n.a=function(t,n,e,u){return function(s){var l,h,d,b=n(s),v=Object(r.a)(),p=n(v),g=!1,y={point:_,lineStart:O,lineEnd:j,polygonStart:function(){y.point=x,y.lineStart=w,y.lineEnd=M,h=[],l=[]},polygonEnd:function(){y.point=_,y.lineStart=O,y.lineEnd=j,h=Object(c.n)(h);var t=Object(a.a)(l,u);h.length?(g||(s.polygonStart(),g=!0),Object(i.a)(h,f,t,e,s)):t&&(g||(s.polygonStart(),g=!0),s.lineStart(),e(null,null,1,s),s.lineEnd()),g&&(s.polygonEnd(),g=!1),h=l=null},sphere:function(){s.polygonStart(),s.lineStart(),e(null,null,1,s),s.lineEnd(),s.polygonEnd()}};function _(n,e){t(n,e)&&s.point(n,e)}function m(t,n){b.point(t,n)}function O(){y.point=m,b.lineStart()}function j(){y.point=_,b.lineEnd()}function x(t,n){d.push([t,n]),p.point(t,n)}function w(){p.lineStart(),d=[]}function M(){x(d[0][0],d[0][1]),p.lineEnd();var t,n,e,r,i=p.clean(),u=v.result(),a=u.length;if(d.pop(),l.push(d),d=null,a)if(1&i){if((n=(e=u[0]).length-1)>0){for(g||(s.polygonStart(),g=!0),s.lineStart(),t=0;t1&&2&i&&u.push(u.pop().concat(u.shift())),h.push(u.filter(o))}return y}}},function(t,n,e){"use strict";var r=e(11);n.a=function(){var t,n=[];return{point:function(n,e){t.push([n,e])},lineStart:function(){n.push(t=[])},lineEnd:r.a,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}},function(t,n,e){"use strict";var r=e(134);function i(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function u(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r=0;--o)c.point((d=h[o])[0],d[1]);else a(v.x,v.p.x,-1,c);v=v.p}h=(v=v.o).z,p=!p}while(!v.v);c.lineEnd()}}}},function(t,n,e){"use strict";var r=e(0);n.a=function(t,n){return Object(r.a)(t[0]-n[0])=0?1:-1,T=k*M,S=T>u.o,C=g*x;if(a.add(Object(u.e)(C*k*Object(u.t)(T),y*w+C*Object(u.g)(T))),o+=S?M+k*u.w:M,S^v>=e^O>=e){var A=Object(i.c)(Object(i.a)(b),Object(i.a)(m));Object(i.e)(A);var N=Object(i.c)(c,A);Object(i.e)(N);var E=(S^M>=0?-1:1)*Object(u.c)(N[2]);(r>E||r===E&&(A[0]||A[1]))&&(f+=S^M>=0?1:-1)}}return(o<-u.i||o0,f=Object(u.a)(n)>u.i;function s(t,e){return Object(u.g)(t)*Object(u.g)(e)>n}function l(t,e,i){var a=Object(r.a)(t),c=Object(r.a)(e),o=[1,0,0],f=Object(r.c)(a,c),s=Object(r.d)(f,f),l=f[0],h=s-l*l;if(!h)return!i&&t;var d=n*s/h,b=-n*l/h,v=Object(r.c)(o,f),p=Object(r.f)(o,d),g=Object(r.f)(f,b);Object(r.b)(p,g);var y=v,_=Object(r.d)(p,y),m=Object(r.d)(y,y),O=_*_-m*(Object(r.d)(p,p)-1);if(!(O<0)){var j=Object(u.u)(O),x=Object(r.f)(y,(-_-j)/m);if(Object(r.b)(x,p),x=Object(r.g)(x),!i)return x;var w,M=t[0],k=e[0],T=t[1],S=e[1];k0^x[1]<(Object(u.a)(x[0]-M)u.o^(M<=x[0]&&x[0]<=k)){var N=Object(r.f)(y,(-_+j)/m);return Object(r.b)(N,p),[x,Object(r.g)(N)]}}}function h(n,e){var r=o?t:u.o-t,i=0;return n<-r?i|=1:n>r&&(i|=2),e<-r?i|=4:e>r&&(i|=8),i}return Object(c.a)(s,function(t){var n,e,r,i,c;return{lineStart:function(){i=r=!1,c=1},point:function(d,b){var v,p=[d,b],g=s(d,b),y=o?g?0:h(d,b):g?h(d+(d<0?u.o:-u.o),b):0;if(!n&&(i=r=g)&&t.lineStart(),g!==r&&(!(v=l(n,p))||Object(a.a)(n,v)||Object(a.a)(p,v))&&(p[0]+=u.i,p[1]+=u.i,g=s(p[0],p[1])),g!==r)c=0,g?(t.lineStart(),v=l(p,n),t.point(v[0],v[1])):(v=l(n,p),t.point(v[0],v[1]),t.lineEnd()),n=v;else if(f&&n&&o^g){var _;y&e||!(_=l(p,n,!0))||(c=0,o?(t.lineStart(),t.point(_[0][0],_[0][1]),t.point(_[1][0],_[1][1]),t.lineEnd()):(t.point(_[1][0],_[1][1]),t.lineEnd(),t.lineStart(),t.point(_[0][0],_[0][1])))}!g||n&&Object(a.a)(n,p)||t.point(p[0],p[1]),n=p,r=g,e=y},lineEnd:function(){r&&t.lineEnd(),n=null},clean:function(){return c|(i&&r)<<1}}},function(n,r,u,a){Object(i.a)(a,t,e,u,n,r)},o?[0,-t]:[-u.o,t-u.o])}},function(t,n,e){"use strict";var r=e(138),i=[null,null],u={type:"LineString",coordinates:i};n.a=function(t,n){return i[0]=t,i[1]=n,Object(r.a)(u)}},function(t,n,e){"use strict";var r,i,u,a=e(19),c=e(0),o=e(11),f=e(14),s=Object(a.a)(),l={sphere:o.a,point:o.a,lineStart:function(){l.point=d,l.lineEnd=h},lineEnd:o.a,polygonStart:o.a,polygonEnd:o.a};function h(){l.point=l.lineEnd=o.a}function d(t,n){t*=c.r,n*=c.r,r=t,i=Object(c.t)(n),u=Object(c.g)(n),l.point=b}function b(t,n){t*=c.r,n*=c.r;var e=Object(c.t)(n),a=Object(c.g)(n),o=Object(c.a)(t-r),f=Object(c.g)(o),l=a*Object(c.t)(o),h=u*e-i*a*f,d=i*e+u*a*f;s.add(Object(c.e)(Object(c.u)(l*l+h*h),d)),r=t,i=e,u=a}n.a=function(t){return s.reset(),Object(f.a)(t,l),+s}},function(t,n,e){"use strict";var r=e(11),i=1/0,u=i,a=-i,c=a,o={point:function(t,n){ta&&(a=t);nc&&(c=n)},lineStart:r.a,lineEnd:r.a,polygonStart:r.a,polygonEnd:r.a,result:function(){var t=[[i,u],[a,c]];return a=c=-(u=i=1/0),t}};n.a=o},function(t,n,e){"use strict";var r=e(73);n.a=function(){return Object(r.b)().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}},function(t,n,e){"use strict";n.b=i;var r=e(8);function i(t,n){return[t,n]}i.invert=i,n.a=function(){return Object(r.a)(i).scale(152.63)}},function(t,n,e){"use strict";n.b=o;var r=e(143);function i(t,n,e){var r=t.x,i=t.y,u=n.r+e.r,a=t.r+e.r,c=n.x-r,o=n.y-i,f=c*c+o*o;if(f){var s=.5+((a*=a)-(u*=u))/(2*f),l=Math.sqrt(Math.max(0,2*u*(a+f)-(a-=f)*a-u*u))/(2*f);e.x=r+s*c+l*o,e.y=i+s*o-l*c}else e.x=r+a,e.y=i}function u(t,n){var e=n.x-t.x,r=n.y-t.y,i=t.r+n.r;return i*i-1e-6>e*e+r*r}function a(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,u=(n.y*e.r+e.y*n.r)/r;return i*i+u*u}function c(t){this._=t,this.next=null,this.previous=null}function o(t){if(!(f=t.length))return 0;var n,e,o,f,s,l,h,d,b,v,p;if((n=t[0]).x=0,n.y=0,!(f>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(f>2))return n.r+e.r;i(e,n,o=t[2]),n=new c(n),e=new c(e),o=new c(o),n.next=o.previous=e,e.next=n.previous=o,o.next=e.previous=n;t:for(h=3;h0&&e*e>r*r+i*i}function c(t,n){for(var e=0;e1);return t+e*u*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(r.a)},function(t,n,e){"use strict";var r=e(20);n.a=function t(n){function e(t){return function(){for(var e=0,r=0;r=12)]},Q:vt,s:pt,S:H,u:B,U:Y,V:V,w:X,W:W,x:null,X:null,y:G,Y:Z,Z:Q,"%":bt},Ct={a:function(t){return l[t.getUTCDay()]},A:function(t){return s[t.getUTCDay()]},b:function(t){return gt[t.getUTCMonth()]},B:function(t){return h[t.getUTCMonth()]},c:null,d:$,e:$,f:et,H:J,I:K,j:tt,L:nt,m:rt,M:it,p:function(t){return f[+(t.getUTCHours()>=12)]},Q:vt,s:pt,S:ut,u:at,U:ct,V:ot,w:ft,W:st,x:null,X:null,y:lt,Y:ht,Z:dt,"%":bt},At={a:function(t,n,e){var r=jt.exec(n.slice(e));return r?(t.w=xt[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=mt.exec(n.slice(e));return r?(t.w=Ot[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=kt.exec(n.slice(e));return r?(t.m=Tt[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=wt.exec(n.slice(e));return r?(t.m=Mt[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return zt(t,n,e,r)},d:w,e:w,f:A,H:k,I:k,j:M,L:C,m:x,M:T,p:function(t,n,e){var r=yt.exec(n.slice(e));return r?(t.p=_t[r[0].toLowerCase()],e+r[0].length):-1},Q:E,s:z,S:S,u:p,U:g,V:y,w:v,W:_,x:function(t,n,r){return zt(t,e,n,r)},X:function(t,n,e){return zt(t,o,n,e)},y:O,Y:m,Z:j,"%":N};function Nt(t,n){return function(e){var r,i,u,a=[],o=-1,f=0,s=t.length;for(e instanceof Date||(e=new Date(+e));++o53)return null;"w"in o||(o.w=1),"Z"in o?(i=u(a(o.y)),c=i.getUTCDay(),i=c>4||0===c?r.P.ceil(i):Object(r.P)(i),i=r.F.offset(i,7*(o.V-1)),o.y=i.getUTCFullYear(),o.m=i.getUTCMonth(),o.d=i.getUTCDate()+(o.w+6)%7):(i=n(a(o.y)),c=i.getDay(),i=c>4||0===c?r.l.ceil(i):Object(r.l)(i),i=r.a.offset(i,7*(o.V-1)),o.y=i.getFullYear(),o.m=i.getMonth(),o.d=i.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),c="Z"in o?u(a(o.y)).getUTCDay():n(a(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(c+5)%7:o.w+7*o.U-(c+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,u(o)):n(o)}}function zt(t,n,e,r){for(var i,u,a=0,o=n.length,f=e.length;a=f)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(u=At[i in c?n.charAt(a++):i])||(r=u(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return St.x=Nt(e,St),St.X=Nt(o,St),St.c=Nt(n,St),Ct.x=Nt(e,Ct),Ct.X=Nt(o,Ct),Ct.c=Nt(n,Ct),{format:function(t){var n=Nt(t+="",St);return n.toString=function(){return t},n},parse:function(t){var n=Et(t+="",i);return n.toString=function(){return t},n},utcFormat:function(t){var n=Nt(t+="",Ct);return n.toString=function(){return t},n},utcParse:function(t){var n=Et(t,u);return n.toString=function(){return t},n}}};var r=e(45);function i(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function u(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function a(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}var c={"-":"",_:" ",0:"0"},o=/^\s*\d+/,f=/^%/,s=/[\\^$*+?|[\]().{}]/g;function l(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",u=i.length;return r+(u68?1900:2e3),e+r[0].length):-1}function j(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function x(t,n,e){var r=o.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function w(t,n,e){var r=o.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function M(t,n,e){var r=o.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function k(t,n,e){var r=o.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function T(t,n,e){var r=o.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function S(t,n,e){var r=o.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function C(t,n,e){var r=o.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function A(t,n,e){var r=o.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function N(t,n,e){var r=f.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function E(t,n,e){var r=o.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function z(t,n,e){var r=o.exec(n.slice(e));return r?(t.Q=1e3*+r[0],e+r[0].length):-1}function P(t,n){return l(t.getDate(),n,2)}function q(t,n){return l(t.getHours(),n,2)}function R(t,n){return l(t.getHours()%12||12,n,2)}function L(t,n){return l(1+r.a.count(Object(r.D)(t),t),n,3)}function D(t,n){return l(t.getMilliseconds(),n,3)}function U(t,n){return D(t,n)+"000"}function F(t,n){return l(t.getMonth()+1,n,2)}function I(t,n){return l(t.getMinutes(),n,2)}function H(t,n){return l(t.getSeconds(),n,2)}function B(t){var n=t.getDay();return 0===n?7:n}function Y(t,n){return l(r.t.count(Object(r.D)(t),t),n,2)}function V(t,n){var e=t.getDay();return t=e>=4||0===e?Object(r.v)(t):r.v.ceil(t),l(r.v.count(Object(r.D)(t),t)+(4===Object(r.D)(t).getDay()),n,2)}function X(t){return t.getDay()}function W(t,n){return l(r.l.count(Object(r.D)(t),t),n,2)}function G(t,n){return l(t.getFullYear()%100,n,2)}function Z(t,n){return l(t.getFullYear()%1e4,n,4)}function Q(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+l(n/60|0,"0",2)+l(n%60,"0",2)}function $(t,n){return l(t.getUTCDate(),n,2)}function J(t,n){return l(t.getUTCHours(),n,2)}function K(t,n){return l(t.getUTCHours()%12||12,n,2)}function tt(t,n){return l(1+r.F.count(Object(r._7)(t),t),n,3)}function nt(t,n){return l(t.getUTCMilliseconds(),n,3)}function et(t,n){return nt(t,n)+"000"}function rt(t,n){return l(t.getUTCMonth()+1,n,2)}function it(t,n){return l(t.getUTCMinutes(),n,2)}function ut(t,n){return l(t.getUTCSeconds(),n,2)}function at(t){var n=t.getUTCDay();return 0===n?7:n}function ct(t,n){return l(r.X.count(Object(r._7)(t),t),n,2)}function ot(t,n){var e=t.getUTCDay();return t=e>=4||0===e?Object(r.Z)(t):r.Z.ceil(t),l(r.Z.count(Object(r._7)(t),t)+(4===Object(r._7)(t).getUTCDay()),n,2)}function ft(t){return t.getUTCDay()}function st(t,n){return l(r.P.count(Object(r._7)(t),t),n,2)}function lt(t,n){return l(t.getUTCFullYear()%100,n,2)}function ht(t,n){return l(t.getUTCFullYear()%1e4,n,4)}function dt(){return"+0000"}function bt(){return"%"}function vt(t){return+t}function pt(t){return Math.floor(+t/1e3)}},function(t,n,e){"use strict";e.d(n,"b",function(){return i});var r=e(83),i="%Y-%m-%dT%H:%M:%S.%LZ";var u=Date.prototype.toISOString?function(t){return t.toISOString()}:Object(r.d)(i);n.a=u},function(t,n,e){"use strict";var r=e(13),i=e(16),u=e(46),a=e(84),c=e(85);n.a=function(){var t=c.a,n=null,e=Object(i.a)(0),o=c.b,f=Object(i.a)(!0),s=null,l=u.a,h=null;function d(i){var u,a,c,d,b,v=i.length,p=!1,g=new Array(v),y=new Array(v);for(null==s&&(h=l(b=Object(r.a)())),u=0;u<=v;++u){if(!(u=a;--c)h.point(g[c],y[c]);h.lineEnd(),h.areaEnd()}p&&(g[u]=+t(d,u,i),y[u]=+e(d,u,i),h.point(n?+n(d,u,i):g[u],o?+o(d,u,i):y[u]))}if(b)return h=null,b+""||null}function b(){return Object(a.a)().defined(f).curve(l).context(s)}return d.x=function(e){return arguments.length?(t="function"==typeof e?e:Object(i.a)(+e),n=null,d):t},d.x0=function(n){return arguments.length?(t="function"==typeof n?n:Object(i.a)(+n),d):t},d.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Object(i.a)(+t),d):n},d.y=function(t){return arguments.length?(e="function"==typeof t?t:Object(i.a)(+t),o=null,d):e},d.y0=function(t){return arguments.length?(e="function"==typeof t?t:Object(i.a)(+t),d):e},d.y1=function(t){return arguments.length?(o=null==t?null:"function"==typeof t?t:Object(i.a)(+t),d):o},d.lineX0=d.lineY0=function(){return b().x(t).y(e)},d.lineY1=function(){return b().x(t).y(o)},d.lineX1=function(){return b().x(n).y(e)},d.defined=function(t){return arguments.length?(f="function"==typeof t?t:Object(i.a)(!!t),d):f},d.curve=function(t){return arguments.length?(l=t,null!=s&&(h=l(s)),d):l},d.context=function(t){return arguments.length?(null==t?s=h=null:h=l(s=t),d):s},d}},function(t,n,e){"use strict";e.d(n,"a",function(){return r}),n.b=u;var r=u(e(46).a);function i(t){this._curve=t}function u(t){function n(n){return new i(t(n))}return n._curve=t,n}i.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}}},function(t,n,e){"use strict";n.b=u;var r=e(156),i=e(84);function u(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(Object(r.b)(t)):n()._curve},t}n.a=function(){return u(Object(i.a)().curve(r.a))}},function(t,n,e){"use strict";n.a=function(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}},function(t,n,e){"use strict";e.d(n,"a",function(){return r});var r=Array.prototype.slice},function(t,n,e){"use strict";var r=e(29);n.a={draw:function(t,n){var e=Math.sqrt(n/r.j);t.moveTo(e,0),t.arc(0,0,e,0,r.m)}}},function(t,n,e){"use strict";n.a={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}}},function(t,n,e){"use strict";var r=Math.sqrt(1/3),i=2*r;n.a={draw:function(t,n){var e=Math.sqrt(n/i),u=e*r;t.moveTo(0,-e),t.lineTo(u,0),t.lineTo(0,e),t.lineTo(-u,0),t.closePath()}}},function(t,n,e){"use strict";var r=e(29),i=Math.sin(r.j/10)/Math.sin(7*r.j/10),u=Math.sin(r.m/10)*i,a=-Math.cos(r.m/10)*i;n.a={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),i=u*e,c=a*e;t.moveTo(0,-e),t.lineTo(i,c);for(var o=1;o<5;++o){var f=r.m*o/5,s=Math.cos(f),l=Math.sin(f);t.lineTo(l*e,-s*e),t.lineTo(s*i-l*c,l*i+s*c)}t.closePath()}}},function(t,n,e){"use strict";n.a={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}}},function(t,n,e){"use strict";var r=Math.sqrt(3);n.a={draw:function(t,n){var e=-Math.sqrt(n/(3*r));t.moveTo(0,2*e),t.lineTo(-r*e,-e),t.lineTo(r*e,-e),t.closePath()}}},function(t,n,e){"use strict";var r=-.5,i=Math.sqrt(3)/2,u=1/Math.sqrt(12),a=3*(u/2+1);n.a={draw:function(t,n){var e=Math.sqrt(n/a),c=e/2,o=e*u,f=c,s=e*u+e,l=-f,h=s;t.moveTo(c,o),t.lineTo(f,s),t.lineTo(l,h),t.lineTo(r*c-i*o,i*c+r*o),t.lineTo(r*f-i*s,i*f+r*s),t.lineTo(r*l-i*h,i*l+r*h),t.lineTo(r*c+i*o,r*o-i*c),t.lineTo(r*f+i*s,r*s-i*f),t.lineTo(r*l+i*h,r*h-i*l),t.closePath()}}},function(t,n,e){"use strict";n.a=u;var r=e(47),i=e(49);function u(t,n){this._context=t,this._k=(1-n)/6}u.prototype={areaStart:r.a,areaEnd:r.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Object(i.c)(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},n.b=function t(n){function e(t){return new u(t,n)}return e.tension=function(n){return t(+n)},e}(0)},function(t,n,e){"use strict";n.a=i;var r=e(49);function i(t,n){this._context=t,this._k=(1-n)/6}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(r.c)(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},n.b=function t(n){function e(t){return new i(t,n)}return e.tension=function(n){return t(+n)},e}(0)},function(t,n,e){"use strict";n.c=function(t){return i.b[t.index]={site:t,halfedges:[]}},n.a=a,n.d=function(){for(var t,n,e,r,a=0,c=i.b.length;ai.f||Math.abs(_-p)>i.f)&&(h.splice(l,0,i.e.push(Object(r.b)(s,g,Math.abs(y-t)i.f?[t,Math.abs(v-t)i.f?[Math.abs(p-u)i.f?[e,Math.abs(v-e)i.f?[Math.abs(p-n)=-u.g)return;var g=h*h+d*d,y=b*b+v*v,_=(v*g-d*y)/p,m=(h*y-b*g)/p,O=a.pop()||new function(){Object(i.a)(this),this.x=this.y=this.arc=this.site=this.cy=null};O.arc=t,O.site=o,O.x=_+s,O.y=(O.cy=m+l)+Math.sqrt(_*_+m*m),t.circle=O;var j=null,x=u.c._;for(;x;)if(O.yt?1:n>=t?0:NaN}},function(t,n,e){"use strict";var r=e(96),i=e(90),u=e(178),a=e(95),c=e(179),o=e(97),f=e(98),s=e(99);n.a=function(){var t=c.a,n=a.a,e=s.a;function l(r){var u,a,c=r.length,s=new Array(c);for(u=0;ud;)b.pop(),--v;var p,g=new Array(v+1);for(u=0;u<=v;++u)(p=g[u]=[]).x0=u>0?b[u-1]:h,p.x1=u=e)for(r=e;++ur&&(r=e)}else for(;++u=e)for(r=e;++ur&&(r=e);return r}},function(t,n,e){"use strict";var r=e(22);n.a=function(t,n){var e,i=t.length,u=i,a=-1,c=0;if(null==n)for(;++a=0;)for(n=(r=t[i]).length;--n>=0;)e[--a]=r[n];return e}},function(t,n,e){"use strict";n.a=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r}},function(t,n,e){"use strict";var r=e(17);n.a=function(t,n){if(e=t.length){var e,i,u=0,a=0,c=t[a];for(null==n&&(n=r.a);++u0&&(e=r-S),U<0?w=M-C:U>0&&(u=o-C),L=h,J.attr("cursor",y.selection),nt());break;default:return}Object(s.a)()},!0).on("keyup.brush",function(){switch(a.e.keyCode){case 16:W&&(z=P=W=!1,nt());break;case 18:L===b&&(D<0?f=x:D>0&&(e=r),U<0?w=M:U>0&&(u=o),L=d,nt());break;case 32:L===h&&(a.e.altKey?(D&&(f=x-S*D,e=r+S*D),U&&(w=M-C*U,u=o+C*U),L=b):(D<0?f=x:D>0&&(e=r),U<0?w=M:U>0&&(u=o),L=d),J.attr("cursor",y[R]),nt());break;default:return}Object(s.a)()},!0).on("mousemove.brush",tt,!0).on("mouseup.brush",et,!0);Object(i.b)(a.e.view)}Object(s.b)(),Object(c.b)(q),N.call(q),Q.start()}function tt(){var t=Object(a.h)(q);!W||z||P||(Math.abs(t[0]-Z[0])>Math.abs(t[1]-Z[1])?P=!0:z=!0),Z=t,A=!0,Object(s.a)(),nt()}function nt(){var t;switch(S=Z[0]-G[0],C=Z[1]-G[1],L){case h:case l:D&&(S=Math.max(B-e,Math.min(V-f,S)),r=e+S,x=f+S),U&&(C=Math.max(Y-u,Math.min(X-w,C)),o=u+C,M=w+C);break;case d:D<0?(S=Math.max(B-e,Math.min(V-e,S)),r=e+S,x=f):D>0&&(S=Math.max(B-f,Math.min(V-f,S)),r=e,x=f+S),U<0?(C=Math.max(Y-u,Math.min(X-u,C)),o=u+C,M=w):U>0&&(C=Math.max(Y-w,Math.min(X-w,C)),o=u,M=w+C);break;case b:D&&(r=Math.max(B,Math.min(V,e-S*D)),x=Math.max(B,Math.min(V,f+S*D))),U&&(o=Math.max(Y,Math.min(X,u-C*U)),M=Math.max(Y,Math.min(X,w+C*U)))}x=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})),o=-1,f=u.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o0)for(var e,r,i=new Array(e),u=0;uO}y.mouse("drag")}function M(){Object(i.k)(i.e.view).on("mousemove.drag mouseup.drag",null),Object(u.b)(i.e.view,e),Object(a.a)(),y.mouse("end")}function k(){if(b.apply(this,arguments)){var t,n,e=i.e.changedTouches,r=v.apply(this,arguments),u=e.length;for(t=0;t=w&&(w=x+1);!(j=m[w])&&++w=0;)(r=i[u])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this}},function(t,n,e){"use strict";var r=e(4);function i(t,n){return tn?1:t>=n?0:NaN}n.a=function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=i);for(var e=this._groups,u=e.length,a=new Array(u),c=0;c1?this.each((null==n?function(t){return function(){delete this[t]}}:"function"==typeof n?function(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}:function(t,n){return function(){this[t]=n}})(t,n)):this.node()[t]}},function(t,n,e){"use strict";function r(t){return t.trim().split(/^|\s+/)}function i(t){return t.classList||new u(t)}function u(t){this._node=t,this._names=r(t.getAttribute("class")||"")}function a(t,n){for(var e=i(t),r=-1,u=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}},n.a=function(t,n){var e=r(t+"");if(arguments.length<2){for(var u=i(this.node()),o=-1,f=e.length;++oh?Math.pow(t,1/3):t/l+f}function g(t){return t>s?t*t*t:l*(t-f)}function y(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function _(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function m(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof O)return new O(t.h,t.c,t.l,t.opacity);t instanceof v||(t=d(t));var n=Math.atan2(t.b,t.a)*u.b;return new O(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new O(t,n,e,null==r?1:r)}function O(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}Object(r.a)(v,b,Object(r.b)(i.a,{brighter:function(t){return new v(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new v(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return t=c*g(t),n=a*g(n),e=o*g(e),new i.b(y(3.2404542*n-1.5371385*t-.4985314*e),y(-.969266*n+1.8760108*t+.041556*e),y(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),Object(r.a)(O,m,Object(r.b)(i.a,{brighter:function(t){return new O(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new O(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return d(this).rgb()}}))},function(t,n,e){"use strict";n.a=b;var r=e(60),i=e(59),u=e(110),a=-.14861,c=1.78277,o=-.29227,f=-.90649,s=1.97294,l=s*f,h=s*c,d=c*o-f*a;function b(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof v)return new v(t.h,t.s,t.l,t.opacity);t instanceof i.b||(t=Object(i.h)(t));var n=t.r/255,e=t.g/255,r=t.b/255,a=(d*r+l*n-h*e)/(d+l-h),c=r-a,b=(s*(e-a)-o*c)/f,p=Math.sqrt(b*b+c*c)/(s*a*(1-a)),g=p?Math.atan2(b,c)*u.b-120:NaN;return new v(g<0?g+360:g,p,a,t.opacity)}(t):new v(t,n,e,null==r?1:r)}function v(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}Object(r.a)(v,b,Object(r.b)(i.a,{brighter:function(t){return t=null==t?i.c:Math.pow(i.c,t),new v(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?i.d:Math.pow(i.d,t),new v(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*u.a,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),l=Math.sin(t);return new i.b(255*(n+e*(a*r+c*l)),255*(n+e*(o*r+f*l)),255*(n+e*(s*r)),this.opacity)}}))},function(t,n,e){"use strict";n.a=function(t,n){return n-=t=+t,function(e){return Math.round(t+n*e)}}},function(t,n,e){"use strict";e.d(n,"a",function(){return a}),e.d(n,"b",function(){return c});var r=e(35),i=e(239);function u(t,n,e,i){function u(t){return t.length?t.pop()+" ":""}return function(a,c){var o=[],f=[];return a=t(a),c=t(c),function(t,i,u,a,c,o){if(t!==u||i!==a){var f=c.push("translate(",null,n,null,e);o.push({i:f-4,x:Object(r.a)(t,u)},{i:f-2,x:Object(r.a)(i,a)})}else(u||a)&&c.push("translate("+u+n+a+e)}(a.translateX,a.translateY,c.translateX,c.translateY,o,f),function(t,n,e,a){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),a.push({i:e.push(u(e)+"rotate(",null,i)-2,x:Object(r.a)(t,n)})):n&&e.push(u(e)+"rotate("+n+i)}(a.rotate,c.rotate,o,f),function(t,n,e,a){t!==n?a.push({i:e.push(u(e)+"skewX(",null,i)-2,x:Object(r.a)(t,n)}):n&&e.push(u(e)+"skewX("+n+i)}(a.skewX,c.skewX,o,f),function(t,n,e,i,a,c){if(t!==e||n!==i){var o=a.push(u(a)+"scale(",null,",",null,")");c.push({i:o-4,x:Object(r.a)(t,e)},{i:o-2,x:Object(r.a)(n,i)})}else 1===e&&1===i||a.push(u(a)+"scale("+e+","+i+")")}(a.scaleX,a.scaleY,c.scaleX,c.scaleY,o,f),a=c=null,function(t){for(var n,e=-1,r=f.length;++e=0&&(t=t.slice(0,n)),!t||"start"===t})}(n)?r.g:r.h;return function(){var r=a(this,t),c=r.on;c!==i&&(u=(i=c).copy()).on(n,e),r.on=u}}(e,t,n))}},function(t,n,e){"use strict";n.a=function(){return this.on("end.remove",(t=this._id,function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}));var t}},function(t,n,e){"use strict";var r=e(1),i=e(10),u=e(6);n.a=function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Object(r.n)(t));for(var a=this._groups,c=a.length,o=new Array(c),f=0;fi.c&&e.name===n)return new r.a([[t]],u,n,+a);return null}},function(t,n,e){"use strict";n.a=function(t){return function(){return t}}},function(t,n,e){"use strict";n.a=function(t,n,e){this.target=t,this.type=n,this.selection=e}},function(t,n,e){"use strict";n.b=function(){r.e.stopImmediatePropagation()};var r=e(1);n.a=function(){r.e.preventDefault(),r.e.stopImmediatePropagation()}},function(t,n,e){"use strict";var r=e(283);e.d(n,"a",function(){return r.a});var i=e(284);e.d(n,"b",function(){return i.a})},function(t,n,e){"use strict";var r=e(3),i=e(121);n.a=function(){var t=0,n=null,e=null,u=null;function a(a){var c,o,f,s,l,h,d=a.length,b=[],v=Object(r.s)(d),p=[],g=[],y=g.groups=new Array(d),_=new Array(d*d);for(c=0,l=-1;++l1e-6)if(Math.abs(l*o-f*s)>1e-6&&u){var d=e-a,b=i-c,v=o*o+f*f,p=d*d+b*b,g=Math.sqrt(v),y=Math.sqrt(h),_=u*Math.tan((r-Math.acos((v+h-p)/(2*g*y)))/2),m=_/y,O=_/g;Math.abs(m-1)>1e-6&&(this._+="L"+(t+m*s)+","+(n+m*l)),this._+="A"+u+","+u+",0,0,"+ +(l*d>s*b)+","+(this._x1=t+O*o)+","+(this._y1=n+O*f)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,a,c,o){t=+t,n=+n;var f=(e=+e)*Math.cos(a),s=e*Math.sin(a),l=t+f,h=n+s,d=1^o,b=o?a-c:c-a;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+h:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+l+","+h),e&&(b<0&&(b=b%i+i),b>u?this._+="A"+e+","+e+",0,1,"+d+","+(t-f)+","+(n-s)+"A"+e+","+e+",0,1,"+d+","+(this._x1=l)+","+(this._y1=h):b>1e-6&&(this._+="A"+e+","+e+",0,"+ +(b>=r)+","+d+","+(this._x1=t+e*Math.cos(c))+","+(this._y1=n+e*Math.sin(c))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}},n.a=c},function(t,n,e){"use strict";var r=e(64);function i(){return{}}function u(t,n,e){t[n]=e}function a(){return Object(r.a)()}function c(t,n,e){t.set(n,e)}n.a=function(){var t,n,e,o=[],f=[];function s(e,i,u,a){if(i>=o.length)return null!=t&&e.sort(t),null!=n?n(e):e;for(var c,f,l,h=-1,d=e.length,b=o[i++],v=Object(r.a)(),p=u();++ho.length)return e;var i,u=f[r-1];return null!=n&&r>=o.length?i=e.entries():(i=[],e.each(function(n,e){i.push({key:e,values:t(n,r)})})),null!=u?i.sort(function(t,n){return u(t.key,n.key)}):i}(s(t,0,a,c),0)},key:function(t){return o.push(t),e},sortKeys:function(t){return f[o.length-1]=t,e},sortValues:function(n){return t=n,e},rollup:function(t){return n=t,e}}}},function(t,n,e){"use strict";var r=e(64);function i(){}var u=r.a.prototype;function a(t,n){var e=new i;if(t instanceof i)t.each(function(t){e.add(t)});else if(t){var r=-1,u=t.length;if(null==n)for(;++rh+f||rd+f||us.index){var l=h-a.x-a.vx,p=d-a.y-a.vy,g=l*l+p*p;gt.r&&(t.r=t[n].r)}function h(){if(n){var r,i,u=n.length;for(e=new Array(u),r=0;r=(u=(v+g)/2))?v=u:g=u,(s=e>=(a=(p+y)/2))?p=a:y=a,i=d,!(d=d[l=s<<1|f]))return i[l]=b,t;if(c=+t._x.call(null,d.data),o=+t._y.call(null,d.data),n===c&&e===o)return b.next=d,i?i[l]=b:t._root=b,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(f=n>=(u=(v+g)/2))?v=u:g=u,(s=e>=(a=(p+y)/2))?p=a:y=a}while((l=s<<1|f)==(h=(o>=a)<<1|c>=u));return i[h]=d,i[l]=b,t}n.a=function(t){var n,e,i,u,a=t.length,c=new Array(a),o=new Array(a),f=1/0,s=1/0,l=-1/0,h=-1/0;for(e=0;el&&(l=i),uh&&(h=u));lt||t>i||r>n||n>u))return this;var a,c,o=i-e,f=this._root;switch(c=(n<(r+u)/2)<<1|t<(e+i)/2){case 0:do{(a=new Array(4))[c]=f,f=a}while(u=r+(o*=2),t>(i=e+o)||n>u);break;case 1:do{(a=new Array(4))[c]=f,f=a}while(u=r+(o*=2),(e=i-o)>t||n>u);break;case 2:do{(a=new Array(4))[c]=f,f=a}while(r=u-(o*=2),t>(i=e+o)||r>n);break;case 3:do{(a=new Array(4))[c]=f,f=a}while(r=u-(o*=2),(e=i-o)>t||r>n)}this._root&&this._root.length&&(this._root=f)}return this._x0=e,this._y0=r,this._x1=i,this._y1=u,this}},function(t,n,e){"use strict";n.a=function(){var t=[];return this.visit(function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)}),t}},function(t,n,e){"use strict";n.a=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]]}},function(t,n,e){"use strict";var r=e(69);n.a=function(t,n,e){var i,u,a,c,o,f,s,l=this._x0,h=this._y0,d=this._x1,b=this._y1,v=[],p=this._root;for(p&&v.push(new r.a(p,l,h,d,b)),null==e?e=1/0:(l=t-e,h=n-e,d=t+e,b=n+e,e*=e);f=v.pop();)if(!(!(p=f.node)||(u=f.x0)>d||(a=f.y0)>b||(c=f.x1)=y)<<1|t>=g)&&(f=v[v.length-1],v[v.length-1]=v[v.length-1-s],v[v.length-1-s]=f)}else{var _=t-+this._x.call(null,p.data),m=n-+this._y.call(null,p.data),O=_*_+m*m;if(O=(c=(b+p)/2))?b=c:p=c,(s=a>=(o=(v+g)/2))?v=o:g=o,n=d,!(d=d[l=s<<1|f]))return this;if(!d.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)}},function(t,n,e){"use strict";n.a=function(){return this._root}},function(t,n,e){"use strict";n.a=function(){var t=0;return this.visit(function(n){if(!n.length)do{++t}while(n=n.next)}),t}},function(t,n,e){"use strict";var r=e(69);n.a=function(t){var n,e,i,u,a,c,o=[],f=this._root;for(f&&o.push(new r.a(f,this._x0,this._y0,this._x1,this._y1));n=o.pop();)if(!t(f=n.node,i=n.x0,u=n.y0,a=n.x1,c=n.y1)&&f.length){var s=(i+a)/2,l=(u+c)/2;(e=f[3])&&o.push(new r.a(e,s,l,a,c)),(e=f[2])&&o.push(new r.a(e,i,l,s,c)),(e=f[1])&&o.push(new r.a(e,s,u,a,l)),(e=f[0])&&o.push(new r.a(e,i,u,s,l))}return this}},function(t,n,e){"use strict";var r=e(69);n.a=function(t){var n,e=[],i=[];for(this._root&&e.push(new r.a(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var u=n.node;if(u.length){var a,c=n.x0,o=n.y0,f=n.x1,s=n.y1,l=(c+f)/2,h=(o+s)/2;(a=u[0])&&e.push(new r.a(a,c,o,l,h)),(a=u[1])&&e.push(new r.a(a,l,o,f,h)),(a=u[2])&&e.push(new r.a(a,c,h,l,s)),(a=u[3])&&e.push(new r.a(a,l,h,f,s))}i.push(n)}for(;n=i.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this}},function(t,n,e){"use strict";n.b=function(t){return t[0]},n.a=function(t){return arguments.length?(this._x=t,this):this._x}},function(t,n,e){"use strict";n.b=function(t){return t[1]},n.a=function(t){return arguments.length?(this._y=t,this):this._y}},function(t,n,e){"use strict";var r=e(18),i=e(67),u=e(21);function a(t){return t.index}function c(t,n){var e=t.get(n);if(!e)throw new Error("missing: "+n);return e}n.a=function(t){var n,e,o,f,s,l=a,h=function(t){return 1/Math.min(f[t.source.index],f[t.target.index])},d=Object(r.a)(30),b=1;function v(r){for(var u=0,a=t.length;u=s)){(t.data!==n||t.next)&&(0===o&&(b+=(o=Object(i.a)())*o),0===h&&(b+=(h=Object(i.a)())*h),b0&&c>0&&(o+c+1>r&&(c=Math.max(1,r-o)),u.push(e.substring(i-=c,i+c)),!((o+=c+1)>r));)c=t[a=(a+1)%t.length];return u.reverse().join(n)}}},function(t,n,e){"use strict";n.a=function(t){return function(n){return n.replace(/[0-9]/g,function(n){return t[+n]})}}},function(t,n,e){"use strict";n.a=function(t,n){t:for(var e,r=(t=t.toPrecision(n)).length,i=1,u=-1;i0&&(u=0)}return u>0?t.slice(0,u)+t.slice(e+1):t}},function(t,n,e){"use strict";var r=e(71);n.a=function(t,n){var e=Object(r.a)(t,n);if(!e)return t+"";var i=e[0],u=e[1];return u<0?"0."+new Array(-u).join("0")+i:i.length>u+1?i.slice(0,u+1)+"."+i.slice(u+1):i+new Array(u-i.length+2).join("0")}},function(t,n,e){"use strict";n.a=function(t){return t}},function(t,n,e){"use strict";var r=e(38);n.a=function(t){return Math.max(0,-Object(r.a)(Math.abs(t)))}},function(t,n,e){"use strict";var r=e(38);n.a=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(n)/3)))-Object(r.a)(Math.abs(t)))}},function(t,n,e){"use strict";var r=e(38);n.a=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Object(r.a)(n)-Object(r.a)(t))+1}},function(t,n,e){"use strict";var r=e(127);e.d(n,"c",function(){return r.c});var i=e(326);e.d(n,"h",function(){return i.a});var u=e(327);e.d(n,"i",function(){return u.a});var a=e(128);e.d(n,"j",function(){return a.b});var c=e(130);e.d(n,"k",function(){return c.a});var o=e(136);e.d(n,"l",function(){return o.a});var f=e(329);e.d(n,"m",function(){return f.a});var s=e(40);e.d(n,"n",function(){return s.a});var l=e(331);e.d(n,"u",function(){return l.a});var h=e(137);e.d(n,"v",function(){return h.a});var d=e(332);e.d(n,"A",function(){return d.a}),e.d(n,"B",function(){return d.b});var b=e(333);e.d(n,"D",function(){return b.a});var v=e(138);e.d(n,"E",function(){return v.a});var p=e(334);e.d(n,"L",function(){return p.a});var g=e(140);e.d(n,"a",function(){return g.a});var y=e(342);e.d(n,"b",function(){return y.a});var _=e(343);e.d(n,"d",function(){return _.b}),e.d(n,"e",function(){return _.a});var m=e(344);e.d(n,"f",function(){return m.b}),e.d(n,"g",function(){return m.a});var O=e(345);e.d(n,"o",function(){return O.b}),e.d(n,"p",function(){return O.a});var j=e(73);e.d(n,"q",function(){return j.b}),e.d(n,"r",function(){return j.a});var x=e(346);e.d(n,"s",function(){return x.b}),e.d(n,"t",function(){return x.a});var w=e(141);e.d(n,"w",function(){return w.a}),e.d(n,"x",function(){return w.b});var M=e(347);e.d(n,"y",function(){return M.a}),e.d(n,"z",function(){return M.b});var k=e(348);e.d(n,"C",function(){return k.a});var T=e(8);e.d(n,"M",function(){return T.a}),e.d(n,"N",function(){return T.b});var S=e(76);e.d(n,"F",function(){return S.a}),e.d(n,"G",function(){return S.c});var C=e(349);e.d(n,"H",function(){return C.a}),e.d(n,"I",function(){return C.b});var A=e(350);e.d(n,"J",function(){return A.a}),e.d(n,"K",function(){return A.b});var N=e(351);e.d(n,"P",function(){return N.a}),e.d(n,"Q",function(){return N.b});var E=e(352);e.d(n,"T",function(){return E.a}),e.d(n,"U",function(){return E.b});var z=e(39);e.d(n,"O",function(){return z.a});var P=e(14);e.d(n,"R",function(){return P.a});var q=e(41);e.d(n,"S",function(){return q.a})},function(t,n,e){"use strict";var r,i,u,a,c,o,f,s,l,h,d=e(19),b=e(127),v=e(24),p=e(0),g=e(14),y=Object(d.a)(),_={point:m,lineStart:j,lineEnd:x,polygonStart:function(){_.point=w,_.lineStart=M,_.lineEnd=k,y.reset(),b.b.polygonStart()},polygonEnd:function(){b.b.polygonEnd(),_.point=m,_.lineStart=j,_.lineEnd=x,b.a<0?(r=-(u=180),i=-(a=90)):y>p.i?a=90:y<-p.i&&(i=-90),h[0]=r,h[1]=u}};function m(t,n){l.push(h=[r=t,u=t]),na&&(a=n)}function O(t,n){var e=Object(v.a)([t*p.r,n*p.r]);if(s){var o=Object(v.c)(s,e),f=[o[1],-o[0],0],d=Object(v.c)(f,o);Object(v.e)(d),d=Object(v.g)(d);var b,g=t-c,y=g>0?1:-1,_=d[0]*p.h*y,m=Object(p.a)(g)>180;m^(y*c<_&&_a&&(a=b):m^(y*c<(_=(_+360)%360-180)&&_a&&(a=n)),m?tT(r,u)&&(u=t):T(t,u)>T(r,u)&&(r=t):u>=r?(tu&&(u=t)):t>c?T(r,t)>T(r,u)&&(u=t):T(t,u)>T(r,u)&&(r=t)}else l.push(h=[r=t,u=t]);na&&(a=n),s=e,c=t}function j(){_.point=O}function x(){h[0]=r,h[1]=u,_.point=m,s=null}function w(t,n){if(s){var e=t-c;y.add(Object(p.a)(e)>180?e+(e>0?360:-360):e)}else o=t,f=n;b.b.point(t,n),O(t,n)}function M(){b.b.lineStart()}function k(){w(o,f),b.b.lineEnd(),Object(p.a)(y)>p.i&&(r=-(u=180)),h[0]=r,h[1]=u,s=null}function T(t,n){return(n-=t)<0?n+360:n}function S(t,n){return t[0]-n[0]}function C(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nT(c[0],c[1])&&(c[1]=o[1]),T(o[0],c[1])>T(c[0],c[1])&&(c[0]=o[0])):f.push(c=o);for(s=-1/0,n=0,c=f[e=f.length-1];n<=e;c=o,++n)o=f[n],(d=T(c[1],o[0]))>s&&(s=d,r=o[0],u=c[1])}return l=h=null,r===1/0||i===1/0?[[NaN,NaN],[NaN,NaN]]:[[r,i],[u,a]]}},function(t,n,e){"use strict";var r,i,u,a,c,o,f,s,l,h,d,b,v,p,g,y,_=e(0),m=e(11),O=e(14),j={sphere:m.a,point:x,lineStart:M,lineEnd:S,polygonStart:function(){j.lineStart=C,j.lineEnd=A},polygonEnd:function(){j.lineStart=M,j.lineEnd=S}};function x(t,n){t*=_.r,n*=_.r;var e=Object(_.g)(n);w(e*Object(_.g)(t),e*Object(_.t)(t),Object(_.t)(n))}function w(t,n,e){u+=(t-u)/++r,a+=(n-a)/r,c+=(e-c)/r}function M(){j.point=k}function k(t,n){t*=_.r,n*=_.r;var e=Object(_.g)(n);p=e*Object(_.g)(t),g=e*Object(_.t)(t),y=Object(_.t)(n),j.point=T,w(p,g,y)}function T(t,n){t*=_.r,n*=_.r;var e=Object(_.g)(n),r=e*Object(_.g)(t),u=e*Object(_.t)(t),a=Object(_.t)(n),c=Object(_.e)(Object(_.u)((c=g*a-y*u)*c+(c=y*r-p*a)*c+(c=p*u-g*r)*c),p*r+g*u+y*a);i+=c,o+=c*(p+(p=r)),f+=c*(g+(g=u)),s+=c*(y+(y=a)),w(p,g,y)}function S(){j.point=x}function C(){j.point=N}function A(){E(b,v),j.point=x}function N(t,n){b=t,v=n,t*=_.r,n*=_.r,j.point=E;var e=Object(_.g)(n);p=e*Object(_.g)(t),g=e*Object(_.t)(t),y=Object(_.t)(n),w(p,g,y)}function E(t,n){t*=_.r,n*=_.r;var e=Object(_.g)(n),r=e*Object(_.g)(t),u=e*Object(_.t)(t),a=Object(_.t)(n),c=g*a-y*u,b=y*r-p*a,v=p*u-g*r,m=Object(_.u)(c*c+b*b+v*v),O=Object(_.c)(m),j=m&&-O/m;l+=j*c,h+=j*b,d+=j*v,i+=O,o+=O*(p+(p=r)),f+=O*(g+(g=u)),s+=O*(y+(y=a)),w(p,g,y)}n.a=function(t){r=i=u=a=c=o=f=s=l=h=d=0,Object(O.a)(t,j);var n=l,e=h,b=d,v=n*n+e*e+b*b;return v<_.j&&(n=o,e=f,b=s,i<_.i&&(n=u,e=a,b=c),(v=n*n+e*e+b*b)<_.j)?[NaN,NaN]:[Object(_.e)(e,n)*_.h,Object(_.c)(b/Object(_.u)(v))*_.h]}},function(t,n,e){"use strict";n.a=function(t){return function(){return t}}},function(t,n,e){"use strict";var r=e(40);n.a=function(){var t,n,e,i=0,u=0,a=960,c=500;return e={stream:function(e){return t&&n===e?t:t=Object(r.a)(i,u,a,c)(n=e)},extent:function(r){return arguments.length?(i=+r[0][0],u=+r[0][1],a=+r[1][0],c=+r[1][1],t=n=null,e):[[i,u],[a,c]]}}}},function(t,n,e){"use strict";n.a=function(t,n,e,r,i,u){var a,c=t[0],o=t[1],f=0,s=1,l=n[0]-c,h=n[1]-o;if(a=e-c,l||!(a>0)){if(a/=l,l<0){if(a0){if(a>s)return;a>f&&(f=a)}if(a=i-c,l||!(a<0)){if(a/=l,l<0){if(a>s)return;a>f&&(f=a)}else if(l>0){if(a0)){if(a/=h,h<0){if(a0){if(a>s)return;a>f&&(f=a)}if(a=u-o,h||!(a<0)){if(a/=h,h<0){if(a>s)return;a>f&&(f=a)}else if(h>0){if(a0&&(t[0]=c+f*l,t[1]=o+f*h),s<1&&(n[0]=c+s*l,n[1]=o+s*h),!0}}}}}},function(t,n,e){"use strict";var r=e(135),i=e(137),u=e(0),a={Feature:function(t,n){return o(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++ri.i}).map(h)).concat(Object(r.s)(Object(i.f)(f/g)*g,o,g).filter(function(t){return Object(i.a)(t%_)>i.i}).map(d))}return O.lines=function(){return j().map(function(t){return{type:"LineString",coordinates:t}})},O.outline=function(){return{type:"Polygon",coordinates:[b(c).concat(v(s).slice(1),b(e).reverse().slice(1),v(l).reverse().slice(1))]}},O.extent=function(t){return arguments.length?O.extentMajor(t).extentMinor(t):O.extentMinor()},O.extentMajor=function(t){return arguments.length?(c=+t[0][0],e=+t[1][0],l=+t[0][1],s=+t[1][1],c>e&&(t=c,c=e,e=t),l>s&&(t=l,l=s,s=t),O.precision(m)):[[c,l],[e,s]]},O.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],f=+e[0][1],o=+e[1][1],n>t&&(e=n,n=t,t=e),f>o&&(e=f,f=o,o=e),O.precision(m)):[[n,f],[t,o]]},O.step=function(t){return arguments.length?O.stepMajor(t).stepMinor(t):O.stepMinor()},O.stepMajor=function(t){return arguments.length?(y=+t[0],_=+t[1],O):[y,_]},O.stepMinor=function(t){return arguments.length?(p=+t[0],g=+t[1],O):[p,g]},O.precision=function(r){return arguments.length?(m=+r,h=u(f,o,90),d=a(n,t,m),b=u(l,s,90),v=a(c,e,m),O):m},O.extentMajor([[-180,-90+i.i],[180,90-i.i]]).extentMinor([[-180,-80-i.i],[180,80+i.i]])}},function(t,n,e){"use strict";var r=e(0);n.a=function(t,n){var e=t[0]*r.r,i=t[1]*r.r,u=n[0]*r.r,a=n[1]*r.r,c=Object(r.g)(i),o=Object(r.t)(i),f=Object(r.g)(a),s=Object(r.t)(a),l=c*Object(r.g)(e),h=c*Object(r.t)(e),d=f*Object(r.g)(u),b=f*Object(r.t)(u),v=2*Object(r.c)(Object(r.u)(Object(r.m)(a-i)+c*f*Object(r.m)(u-e))),p=Object(r.t)(v),g=v?function(t){var n=Object(r.t)(t*=v)/p,e=Object(r.t)(v-t)/p,i=e*l+n*d,u=e*h+n*b,a=e*o+n*s;return[Object(r.e)(u,i)*r.h,Object(r.e)(a,Object(r.u)(i*i+u*u))*r.h]}:function(){return[e*r.h,i*r.h]};return g.distance=v,g}},function(t,n,e){"use strict";var r=e(72),i=e(14),u=e(335),a=e(139),c=e(336),o=e(337),f=e(338),s=e(339);n.a=function(t,n){var e,l,h=4.5;function d(t){return t&&("function"==typeof h&&l.pointRadius(+h.apply(this,arguments)),Object(i.a)(t,e(l))),l.result()}return d.area=function(t){return Object(i.a)(t,e(u.a)),u.a.result()},d.measure=function(t){return Object(i.a)(t,e(f.a)),f.a.result()},d.bounds=function(t){return Object(i.a)(t,e(a.a)),a.a.result()},d.centroid=function(t){return Object(i.a)(t,e(c.a)),c.a.result()},d.projection=function(n){return arguments.length?(e=null==n?(t=null,r.a):(t=n).stream,d):t},d.context=function(t){return arguments.length?(l=null==t?(n=null,new s.a):new o.a(n=t),"function"!=typeof h&&l.pointRadius(h),d):n},d.pointRadius=function(t){return arguments.length?(h="function"==typeof t?t:(l.pointRadius(+t),+t),d):h},d.projection(t).context(n)}},function(t,n,e){"use strict";var r,i,u,a,c=e(19),o=e(0),f=e(11),s=Object(c.a)(),l=Object(c.a)(),h={point:f.a,lineStart:f.a,lineEnd:f.a,polygonStart:function(){h.lineStart=d,h.lineEnd=p},polygonEnd:function(){h.lineStart=h.lineEnd=h.point=f.a,s.add(Object(o.a)(l)),l.reset()},result:function(){var t=s/2;return s.reset(),t}};function d(){h.point=b}function b(t,n){h.point=v,r=u=t,i=a=n}function v(t,n){l.add(a*t-u*n),u=t,a=n}function p(){v(r,i)}n.a=h},function(t,n,e){"use strict";var r,i,u,a,c=e(0),o=0,f=0,s=0,l=0,h=0,d=0,b=0,v=0,p=0,g={point:y,lineStart:_,lineEnd:j,polygonStart:function(){g.lineStart=x,g.lineEnd=w},polygonEnd:function(){g.point=y,g.lineStart=_,g.lineEnd=j},result:function(){var t=p?[b/p,v/p]:d?[l/d,h/d]:s?[o/s,f/s]:[NaN,NaN];return o=f=s=l=h=d=b=v=p=0,t}};function y(t,n){o+=t,f+=n,++s}function _(){g.point=m}function m(t,n){g.point=O,y(u=t,a=n)}function O(t,n){var e=t-u,r=n-a,i=Object(c.u)(e*e+r*r);l+=i*(u+t)/2,h+=i*(a+n)/2,d+=i,y(u=t,a=n)}function j(){g.point=y}function x(){g.point=M}function w(){k(r,i)}function M(t,n){g.point=k,y(r=u=t,i=a=n)}function k(t,n){var e=t-u,r=n-a,i=Object(c.u)(e*e+r*r);l+=i*(u+t)/2,h+=i*(a+n)/2,d+=i,b+=(i=a*t-u*n)*(u+t),v+=i*(a+n),p+=3*i,y(u=t,a=n)}n.a=g},function(t,n,e){"use strict";n.a=u;var r=e(0),i=e(11);function u(t){this._context=t}u.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,r.w)}},result:i.a}},function(t,n,e){"use strict";var r,i,u,a,c,o=e(19),f=e(0),s=e(11),l=Object(o.a)(),h={point:s.a,lineStart:function(){h.point=d},lineEnd:function(){r&&b(i,u),h.point=s.a},polygonStart:function(){r=!0},polygonEnd:function(){r=null},result:function(){var t=+l;return l.reset(),t}};function d(t,n){h.point=b,i=a=t,u=c=n}function b(t,n){a-=t,c-=n,l.add(Object(f.u)(a*a+c*c)),a=t,c=n}n.a=h},function(t,n,e){"use strict";function r(){this._string=[]}function i(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}n.a=r,r.prototype={_radius:4.5,_circle:i(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=i(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}}},function(t,n,e){"use strict";var r=e(24),i=e(0),u=e(41),a=16,c=Object(i.g)(30*i.r);n.a=function(t,n){return+n?function(t,n){function e(r,u,a,o,f,s,l,h,d,b,v,p,g,y){var _=l-r,m=h-u,O=_*_+m*m;if(O>4*n&&g--){var j=o+b,x=f+v,w=s+p,M=Object(i.u)(j*j+x*x+w*w),k=Object(i.c)(w/=M),T=Object(i.a)(Object(i.a)(w)-1)n||Object(i.a)((_*N+m*E)/O-.5)>.3||o*b+f*v+s*p=.12&&i<.234&&r>=-.425&&r<-.214?l:i>=.166&&i<.234&&r>=-.214&&r<-.115?h:s).invert(t)},b.stream=function(e){return t&&n===e?t:(r=[s.stream(n=e),l.stream(e),h.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++e0?n<-r.l+r.i&&(n=-r.l+r.i):n>r.l-r.i&&(n=r.l-r.i);var e=c/Object(r.p)(a(n),i);return[e*Object(r.t)(i*t),c-e*Object(r.g)(i*t)]}return o.invert=function(t,n){var e=c-n,u=Object(r.s)(i)*Object(r.u)(t*t+e*e);return[Object(r.e)(t,Object(r.a)(e))/i*Object(r.s)(e),2*Object(r.d)(Object(r.p)(c/u,1/i))-r.l]},o}n.b=function(){return Object(i.a)(c).scale(109.5).parallels([30,30])}},function(t,n,e){"use strict";n.a=a;var r=e(0),i=e(74),u=e(141);function a(t,n){var e=Object(r.g)(t),i=t===n?Object(r.t)(t):(e-Object(r.g)(n))/(n-t),a=e/i+t;if(Object(r.a)(i)i.i&&--u>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]},n.a=function(){return Object(r.a)(u).scale(175.295)}},function(t,n,e){"use strict";n.b=a;var r=e(0),i=e(25),u=e(8);function a(t,n){return[Object(r.g)(n)*Object(r.t)(t),Object(r.t)(n)]}a.invert=Object(i.a)(r.c),n.a=function(){return Object(u.a)(a).scale(249.5).clipAngle(90+r.i)}},function(t,n,e){"use strict";n.b=a;var r=e(0),i=e(25),u=e(8);function a(t,n){var e=Object(r.g)(n),i=1+Object(r.g)(t)*e;return[e*Object(r.t)(t)/i,Object(r.t)(n)/i]}a.invert=Object(i.a)(function(t){return 2*Object(r.d)(t)}),n.a=function(){return Object(u.a)(a).scale(250).clipAngle(142)}},function(t,n,e){"use strict";n.b=u;var r=e(0),i=e(76);function u(t,n){return[Object(r.n)(Object(r.v)((r.l+n)/2)),-t]}u.invert=function(t,n){return[-n,2*Object(r.d)(Object(r.k)(t))-r.l]},n.a=function(){var t=Object(i.b)(u),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)}},function(t,n,e){"use strict";var r=e(354);e.d(n,"a",function(){return r.a});var i=e(77);e.d(n,"b",function(){return i.c});var u=e(366);e.d(n,"c",function(){return u.a});var a=e(142);e.d(n,"e",function(){return a.a});var c=e(143);e.d(n,"d",function(){return c.a});var o=e(368);e.d(n,"f",function(){return o.a});var f=e(369);e.d(n,"g",function(){return f.a});var s=e(370);e.d(n,"h",function(){return s.a});var l=e(371);e.d(n,"i",function(){return l.a});var h=e(372);e.d(n,"j",function(){return h.a});var d=e(26);e.d(n,"k",function(){return d.a});var b=e(42);e.d(n,"m",function(){return b.a});var v=e(373);e.d(n,"n",function(){return v.a});var p=e(79);e.d(n,"o",function(){return p.a});var g=e(374);e.d(n,"l",function(){return g.a})},function(t,n,e){"use strict";function r(t,n){return t.parent===n.parent?1:2}function i(t,n){return t+n.x}function u(t,n){return Math.max(t,n.y)}n.a=function(){var t=r,n=1,e=1,a=!1;function c(r){var c,o=0;r.eachAfter(function(n){var e=n.children;e?(n.x=function(t){return t.reduce(i,0)/t.length}(e),n.y=function(t){return 1+t.reduce(u,0)}(e)):(n.x=c?o+=t(n,c):0,n.y=0,c=n)});var f=function(t){for(var n;n=t.children;)t=n[0];return t}(r),s=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(r),l=f.x-t(f,s)/2,h=s.x+t(s,f)/2;return r.eachAfter(a?function(t){t.x=(t.x-r.x)*n,t.y=(r.y-t.y)*e}:function(t){t.x=(t.x-l)/(h-l)*n,t.y=(1-(r.y?t.y/r.y:1))*e})}return c.separation=function(n){return arguments.length?(t=n,c):t},c.size=function(t){return arguments.length?(a=!1,n=+t[0],e=+t[1],c):a?null:[n,e]},c.nodeSize=function(t){return arguments.length?(a=!0,n=+t[0],e=+t[1],c):a?[n,e]:null},c}},function(t,n,e){"use strict";function r(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}n.a=function(){return this.eachAfter(r)}},function(t,n,e){"use strict";n.a=function(t){var n,e,r,i,u=this,a=[u];do{for(n=a.reverse(),a=[];u=n.pop();)if(t(u),e=u.children)for(r=0,i=e.length;r=0;--e)i.push(n[e]);return this}},function(t,n,e){"use strict";n.a=function(t){for(var n,e,r,i=this,u=[i],a=[];i=u.pop();)if(a.push(i),n=i.children)for(e=0,r=n.length;e=0;)e+=r[i].value;n.value=e})}},function(t,n,e){"use strict";n.a=function(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})}},function(t,n,e){"use strict";n.a=function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;t=e.pop(),n=r.pop();for(;t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r}},function(t,n,e){"use strict";n.a=function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n}},function(t,n,e){"use strict";n.a=function(){var t=[];return this.each(function(n){t.push(n)}),t}},function(t,n,e){"use strict";n.a=function(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t}},function(t,n,e){"use strict";n.a=function(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n}},function(t,n,e){"use strict";var r=e(142),i=e(78),u=e(144);function a(t){return Math.sqrt(t.value)}function c(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function o(t,n){return function(e){if(i=e.children){var i,u,a,c=i.length,o=t(e)*n||0;if(o)for(u=0;u0)throw new Error("cycle");return f}return e.id=function(n){return arguments.length?(t=Object(r.b)(n),e):t},e.parentId=function(t){return arguments.length?(n=Object(r.b)(t),e):n},e}},function(t,n,e){"use strict";var r=e(77);function i(t,n){return t.parent===n.parent?1:2}function u(t){var n=t.children;return n?n[0]:t.t}function a(t){var n=t.children;return n?n[n.length-1]:t.t}function c(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function o(t,n,e){return t.a.parent===n.parent?t.a:e}function f(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}f.prototype=Object.create(r.a.prototype),n.a=function(){var t=i,n=1,e=1,r=null;function s(i){var u=function(t){for(var n,e,r,i,u,a=new f(t,0),c=[a];n=c.pop();)if(r=n._.children)for(n.children=new Array(u=r.length),i=u-1;i>=0;--i)c.push(e=n.children[i]=new f(r[i],i)),e.parent=n;return(a.parent=new f(null,0)).children=[a],a}(i);if(u.eachAfter(l),u.parent.m=-u.z,u.eachBefore(h),r)i.eachBefore(d);else{var a=i,c=i,o=i;i.eachBefore(function(t){t.xc.x&&(c=t),t.depth>o.depth&&(o=t)});var s=a===c?1:t(a,c)/2,b=s-a.x,v=n/(c.x+s+b),p=e/(o.depth||1);i.eachBefore(function(t){t.x=(t.x+b)*v,t.y=t.depth*p})}return i}function l(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,u=i.length;--u>=0;)(n=i[u]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var f=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-f):n.z=f}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,f=n,s=n,l=e,h=f.parent.children[0],d=f.m,b=s.m,v=l.m,p=h.m;l=a(l),f=u(f),l&&f;)h=u(h),(s=a(s)).a=n,(i=l.z+v-f.z-d+t(l._,f._))>0&&(c(o(l,n,r),n,i),d+=i,b+=i),v+=l.m,d+=f.m,p+=h.m,b+=s.m;l&&!a(s)&&(s.t=l,s.m+=v-b),f&&!u(h)&&(h.t=f,h.m+=d-p,r=n)}return r}(n,i,n.parent.A||r[0])}function h(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function d(t){t.x*=n,t.y=t.depth*e}return s.separation=function(n){return arguments.length?(t=n,s):t},s.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],s):r?null:[n,e]},s.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],s):r?[n,e]:null},s}},function(t,n,e){"use strict";var r=e(145),i=e(79),u=e(78),a=e(144);n.a=function(){var t=i.a,n=!1,e=1,c=1,o=[0],f=a.a,s=a.a,l=a.a,h=a.a,d=a.a;function b(t){return t.x0=t.y0=0,t.x1=e,t.y1=c,t.eachBefore(v),o=[0],n&&t.eachBefore(r.a),t}function v(n){var e=o[n.depth],r=n.x0+e,i=n.y0+e,u=n.x1-e,a=n.y1-e;u=e-1){var s=c[n];return s.x0=i,s.y0=u,s.x1=a,void(s.y1=o)}var l=f[n],h=r/2+l,d=n+1,b=e-1;for(;d>>1;f[v]o-u){var y=(i*g+a*p)/r;t(n,d,p,i,u,y,o),t(d,e,g,y,u,a,o)}else{var _=(u*g+o*p)/r;t(n,d,p,i,u,a,_),t(d,e,g,i,_,a,o)}}(0,o,t.value,n,e,r,i)}},function(t,n,e){"use strict";var r=e(26),i=e(42);n.a=function(t,n,e,u,a){(1&t.depth?i.a:r.a)(t,n,e,u,a)}},function(t,n,e){"use strict";var r=e(26),i=e(42),u=e(79);n.a=function t(n){function e(t,e,a,c,o){if((f=t._squarify)&&f.ratio===n)for(var f,s,l,h,d,b=-1,v=f.length,p=t.value;++b1?n:1)},e}(u.b)},function(t,n,e){"use strict";var r=e(376);e.d(n,"a",function(){return r.a});var i=e(377);e.d(n,"b",function(){return i.a});var u=e(378);e.d(n,"d",function(){return u.a});var a=e(380);e.d(n,"c",function(){return a.a});var c=e(381);e.d(n,"e",function(){return c.a})},function(t,n,e){"use strict";n.a=function(t){for(var n,e=-1,r=t.length,i=t[r-1],u=0;++e1&&Object(r.a)(t[e[i-2]],t[e[i-1]],t[u])<=0;)--i;e[i++]=u}return e.slice(0,i)}n.a=function(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),a=new Array(e);for(n=0;n=0;--n)l.push(t[r[c[n]][2]]);for(n=+f;nc!=f>c&&a<(o-e)*(c-r)/(f-r)+e&&(s=!s),o=e,f=r;return s}},function(t,n,e){"use strict";n.a=function(t){for(var n,e,r=-1,i=t.length,u=t[i-1],a=u[0],c=u[1],o=0;++r=0;)if((e=t._tasks[r])&&(t._tasks[r]=null,e.abort))try{e.abort()}catch(n){}t._active=NaN,f(t)}function f(t){if(!t._active&&t._call){var n=t._data;t._data=void 0,t._call(t._error,n)}}function s(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new u(t)}u.prototype=s.prototype={constructor:u,defer:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var n=r.a.call(arguments,1);return n.push(t),++this._waiting,this._tasks.push(n),a(this),this},abort:function(){return null==this._error&&o(this,new Error("abort")),this},await:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(n,e){t.apply(null,[n].concat(e))},f(this),this},awaitAll:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=t,f(this),this}}},function(t,n,e){"use strict";e.d(n,"a",function(){return r});var r=[].slice},function(t,n,e){"use strict";var r=e(386);e.d(n,"f",function(){return r.a});var i=e(146);e.d(n,"e",function(){return i.a});var u=e(387);e.d(n,"d",function(){return u.a});var a=e(388);e.d(n,"a",function(){return a.a});var c=e(147);e.d(n,"c",function(){return c.a});var o=e(389);e.d(n,"b",function(){return o.a})},function(t,n,e){"use strict";var r=e(20);n.a=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(r.a)},function(t,n,e){"use strict";var r=e(20),i=e(146);n.a=function t(n){function e(){var t=i.a.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(r.a)},function(t,n,e){"use strict";var r=e(20),i=e(147);n.a=function t(n){function e(t){var e=i.a.source(n)(t);return function(){return e()/t}}return e.source=t,e}(r.a)},function(t,n,e){"use strict";var r=e(20);n.a=function t(n){function e(t){return function(){return-Math.log(1-n())/t}}return e.source=t,e}(r.a)},function(t,n,e){"use strict";var r=e(80);e.d(n,"d",function(){return r.a});var i=e(391);e.d(n,"b",function(){return i.a});var u=e(392);e.d(n,"c",function(){return u.a});var a=e(393);e.d(n,"e",function(){return a.a});var c=e(394);e.d(n,"g",function(){return c.a});var o=e(395);e.d(n,"a",function(){return o.a});var f=e(396);e.d(n,"f",function(){return f.a})},function(t,n,e){"use strict";var r=e(43);n.a=Object(r.a)("text/html",function(t){return document.createRange().createContextualFragment(t.responseText)})},function(t,n,e){"use strict";var r=e(43);n.a=Object(r.a)("application/json",function(t){return JSON.parse(t.responseText)})},function(t,n,e){"use strict";var r=e(43);n.a=Object(r.a)("text/plain",function(t){return t.responseText})},function(t,n,e){"use strict";var r=e(43);n.a=Object(r.a)("application/xml",function(t){var n=t.responseXML;if(!n)throw new Error("parse error");return n})},function(t,n,e){"use strict";var r=e(65),i=e(148);n.a=Object(i.a)("text/csv",r.c)},function(t,n,e){"use strict";var r=e(65),i=e(148);n.a=Object(i.a)("text/tab-separated-values",r.h)},function(t,n,e){"use strict";var r=e(398);e.d(n,"i",function(){return r.a}),e.d(n,"o",function(){return r.b});var i=e(399);e.d(n,"j",function(){return i.a});var u=e(27);e.d(n,"l",function(){return u.a});var a=e(401);e.d(n,"m",function(){return a.a});var c=e(149);e.d(n,"n",function(){return c.a}),e.d(n,"k",function(){return c.b});var o=e(402);e.d(n,"p",function(){return o.a}),e.d(n,"t",function(){return o.b});var f=e(403);e.d(n,"q",function(){return f.a});var s=e(404);e.d(n,"r",function(){return s.a});var l=e(405);e.d(n,"u",function(){return l.a});var h=e(152);e.d(n,"v",function(){return h.b});var d=e(421);e.d(n,"w",function(){return d.a});var b=e(422);e.d(n,"x",function(){return b.a});var v=e(423);e.d(n,"z",function(){return v.a});var p=e(424);e.d(n,"A",function(){return p.a});var g=e(425);e.d(n,"y",function(){return g.a});var y=e(426);e.d(n,"b",function(){return y.a});var _=e(427);e.d(n,"f",function(){return _.b}),e.d(n,"h",function(){return _.c}),e.d(n,"a",function(){return _.a});var m=e(428);e.d(n,"g",function(){return m.a}),e.d(n,"d",function(){return m.c}),e.d(n,"c",function(){return m.b}),e.d(n,"e",function(){return m.d});var O=e(429);e.d(n,"s",function(){return O.a})},function(t,n,e){"use strict";n.a=u,n.b=function(){return function t(n){var e=n.copy;n.padding=n.paddingOuter;delete n.paddingInner;delete n.paddingOuter;n.copy=function(){return t(e())};return n}(u().paddingInner(1))};var r=e(3),i=e(149);function u(){var t,n,e=Object(i.a)().unknown(void 0),a=e.domain,c=e.range,o=[0,1],f=!1,s=0,l=0,h=.5;function d(){var e=a().length,i=o[1]0){for(;hc)break;p.push(l)}}else for(;h=1;--f)if(!((l=o*f)c)break;p.push(l)}}else p=Object(r.B)(h,d,Math.min(d-h,v)).map(b);return n?p.reverse():p};n.tickFormat=function(t,e){if(null==e&&(e=10===u?".0e":","),"function"!=typeof e&&(e=Object(i.a)(e)),t===1/0)return e;null==t&&(t=10);var r=Math.max(1,u*t/n.ticks().length);return function(t){var n=t/b(Math.round(s(t)));return n*u0?u[r-1]:n[0],r=a?[c[a-1],e]:[c[r-1],c[r]]};f.copy=function(){return t().domain([n,e]).range(o)};return Object(u.b)(f)};var r=e(3),i=e(15),u=e(27)},function(t,n,e){"use strict";n.a=function t(){var n=[.5],e=[0,1],u=1;function a(t){if(t<=t)return e[Object(r.b)(n,t,0,u)]}a.domain=function(t){return arguments.length?(n=i.b.call(t),u=Math.min(n.length,e.length-1),a):n.slice()};a.range=function(t){return arguments.length?(e=i.b.call(t),u=Math.min(n.length,e.length-1),a):e.slice()};a.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]};a.copy=function(){return t().domain(n).range(e)};return a};var r=e(3),i=e(15)},function(t,n,e){"use strict";e.d(n,"b",function(){return u});var r=e(2),i=Object(r.a)(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Object(r.a)(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):i:null},n.a=i;var u=i.range},function(t,n,e){"use strict";e.d(n,"b",function(){return a});var r=e(2),i=e(9),u=Object(r.a)(function(t){t.setTime(Math.floor(t/i.d)*i.d)},function(t,n){t.setTime(+t+n*i.d)},function(t,n){return(n-t)/i.d},function(t){return t.getUTCSeconds()});n.a=u;var a=u.range},function(t,n,e){"use strict";e.d(n,"b",function(){return a});var r=e(2),i=e(9),u=Object(r.a)(function(t){t.setTime(Math.floor(t/i.c)*i.c)},function(t,n){t.setTime(+t+n*i.c)},function(t,n){return(n-t)/i.c},function(t){return t.getMinutes()});n.a=u;var a=u.range},function(t,n,e){"use strict";e.d(n,"b",function(){return a});var r=e(2),i=e(9),u=Object(r.a)(function(t){var n=t.getTimezoneOffset()*i.c%i.b;n<0&&(n+=i.b),t.setTime(Math.floor((+t-n)/i.b)*i.b+n)},function(t,n){t.setTime(+t+n*i.b)},function(t,n){return(n-t)/i.b},function(t){return t.getHours()});n.a=u;var a=u.range},function(t,n,e){"use strict";e.d(n,"a",function(){return a});var r=e(2),i=e(9),u=Object(r.a)(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*i.c)/i.a},function(t){return t.getDate()-1});n.b=u;var a=u.range},function(t,n,e){"use strict";e.d(n,"g",function(){return a}),e.d(n,"c",function(){return c}),e.d(n,"k",function(){return o}),e.d(n,"m",function(){return f}),e.d(n,"i",function(){return s}),e.d(n,"a",function(){return l}),e.d(n,"e",function(){return h}),e.d(n,"h",function(){return d}),e.d(n,"d",function(){return b}),e.d(n,"l",function(){return v}),e.d(n,"n",function(){return p}),e.d(n,"j",function(){return g}),e.d(n,"b",function(){return y}),e.d(n,"f",function(){return _});var r=e(2),i=e(9);function u(t){return Object(r.a)(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+7*n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*i.c)/i.e})}var a=u(0),c=u(1),o=u(2),f=u(3),s=u(4),l=u(5),h=u(6),d=a.range,b=c.range,v=o.range,p=f.range,g=s.range,y=l.range,_=h.range},function(t,n,e){"use strict";e.d(n,"b",function(){return u});var r=e(2),i=Object(r.a)(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});n.a=i;var u=i.range},function(t,n,e){"use strict";e.d(n,"b",function(){return u});var r=e(2),i=Object(r.a)(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.a)(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null},n.a=i;var u=i.range},function(t,n,e){"use strict";e.d(n,"b",function(){return a});var r=e(2),i=e(9),u=Object(r.a)(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*i.c)},function(t,n){return(n-t)/i.c},function(t){return t.getUTCMinutes()});n.a=u;var a=u.range},function(t,n,e){"use strict";e.d(n,"b",function(){return a});var r=e(2),i=e(9),u=Object(r.a)(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*i.b)},function(t,n){return(n-t)/i.b},function(t){return t.getUTCHours()});n.a=u;var a=u.range},function(t,n,e){"use strict";e.d(n,"b",function(){return a});var r=e(2),i=e(9),u=Object(r.a)(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/i.a},function(t){return t.getUTCDate()-1});n.a=u;var a=u.range},function(t,n,e){"use strict";e.d(n,"g",function(){return a}),e.d(n,"c",function(){return c}),e.d(n,"k",function(){return o}),e.d(n,"m",function(){return f}),e.d(n,"i",function(){return s}),e.d(n,"a",function(){return l}),e.d(n,"e",function(){return h}),e.d(n,"h",function(){return d}),e.d(n,"d",function(){return b}),e.d(n,"l",function(){return v}),e.d(n,"n",function(){return p}),e.d(n,"j",function(){return g}),e.d(n,"b",function(){return y}),e.d(n,"f",function(){return _});var r=e(2),i=e(9);function u(t){return Object(r.a)(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+7*n)},function(t,n){return(n-t)/i.e})}var a=u(0),c=u(1),o=u(2),f=u(3),s=u(4),l=u(5),h=u(6),d=a.range,b=c.range,v=o.range,p=f.range,g=s.range,y=l.range,_=h.range},function(t,n,e){"use strict";e.d(n,"b",function(){return u});var r=e(2),i=Object(r.a)(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()});n.a=i;var u=i.range},function(t,n,e){"use strict";e.d(n,"b",function(){return u});var r=e(2),i=Object(r.a)(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.a)(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null},n.a=i;var u=i.range},function(t,n,e){"use strict";var r=e(154),i=e(83);var u=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:Object(i.e)(r.b);n.a=u},function(t,n,e){"use strict";var r=e(152),i=e(82),u=e(45);n.a=function(){return Object(r.a)(u._7,u.R,u._5,u.F,u.J,u.N,u.V,u.L,i.g).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}},function(t,n,e){"use strict";var r=e(28);n.a=Object(r.a)("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf")},function(t,n,e){"use strict";var r=e(28);n.a=Object(r.a)("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6")},function(t,n,e){"use strict";var r=e(28);n.a=Object(r.a)("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9")},function(t,n,e){"use strict";var r=e(28);n.a=Object(r.a)("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5")},function(t,n,e){"use strict";var r=e(7),i=e(5);n.a=Object(i.f)(Object(r.b)(300,.5,0),Object(r.b)(-240,.5,1))},function(t,n,e){"use strict";e.d(n,"c",function(){return u}),e.d(n,"a",function(){return a});var r=e(7),i=e(5),u=Object(i.f)(Object(r.b)(-100,.75,.35),Object(r.b)(80,1.5,.8)),a=Object(i.f)(Object(r.b)(260,.75,.35),Object(r.b)(80,1.5,.8)),c=Object(r.b)();n.b=function(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return c.h=360*t-100,c.s=1.5-1.5*n,c.l=.8-.9*n,c+""}},function(t,n,e){"use strict";e.d(n,"c",function(){return u}),e.d(n,"b",function(){return a}),e.d(n,"d",function(){return c});var r=e(28);function i(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}n.a=i(Object(r.a)("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var u=i(Object(r.a)("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),a=i(Object(r.a)("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),c=i(Object(r.a)("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"))},function(t,n,e){"use strict";n.a=function t(n){var e=0,i=1,u=!1;function a(t){var r=(t-e)/(i-e);return n(u?Math.max(0,Math.min(1,r)):r)}a.domain=function(t){return arguments.length?(e=+t[0],i=+t[1],a):[e,i]};a.clamp=function(t){return arguments.length?(u=!!t,a):u};a.interpolator=function(t){return arguments.length?(n=t,a):n};a.copy=function(){return t(n).domain([e,i]).clamp(u)};return Object(r.b)(a)};var r=e(27)},function(t,n,e){"use strict";var r=e(13),i=e(16),u=e(29);function a(t){return t.innerRadius}function c(t){return t.outerRadius}function o(t){return t.startAngle}function f(t){return t.endAngle}function s(t){return t&&t.padAngle}function l(t,n,e,r,i,a,c){var o=t-e,f=n-r,s=(c?a:-a)/Object(u.l)(o*o+f*f),l=s*f,h=-s*o,d=t+l,b=n+h,v=e+l,p=r+h,g=(d+v)/2,y=(b+p)/2,_=v-d,m=p-b,O=_*_+m*m,j=i-a,x=d*p-v*b,w=(m<0?-1:1)*Object(u.l)(Object(u.h)(0,j*j*O-x*x)),M=(x*m-_*w)/O,k=(-x*_-m*w)/O,T=(x*m+_*w)/O,S=(-x*_+m*w)/O,C=M-g,A=k-y,N=T-g,E=S-y;return C*C+A*A>N*N+E*E&&(M=T,k=S),{cx:M,cy:k,x01:-l,y01:-h,x11:M*(i/j-1),y11:k*(i/j-1)}}n.a=function(){var t=a,n=c,e=Object(i.a)(0),h=null,d=o,b=f,v=s,p=null;function g(){var i,a,c=+t.apply(this,arguments),o=+n.apply(this,arguments),f=d.apply(this,arguments)-u.g,s=b.apply(this,arguments)-u.g,g=Object(u.a)(s-f),y=s>f;if(p||(p=i=Object(r.a)()),ou.f)if(g>u.m-u.f)p.moveTo(o*Object(u.e)(f),o*Object(u.k)(f)),p.arc(0,0,o,f,s,!y),c>u.f&&(p.moveTo(c*Object(u.e)(s),c*Object(u.k)(s)),p.arc(0,0,c,s,f,y));else{var _,m,O=f,j=s,x=f,w=s,M=g,k=g,T=v.apply(this,arguments)/2,S=T>u.f&&(h?+h.apply(this,arguments):Object(u.l)(c*c+o*o)),C=Object(u.i)(Object(u.a)(o-c)/2,+e.apply(this,arguments)),A=C,N=C;if(S>u.f){var E=Object(u.c)(S/c*Object(u.k)(T)),z=Object(u.c)(S/o*Object(u.k)(T));(M-=2*E)>u.f?(x+=E*=y?1:-1,w-=E):(M=0,x=w=(f+s)/2),(k-=2*z)>u.f?(O+=z*=y?1:-1,j-=z):(k=0,O=j=(f+s)/2)}var P=o*Object(u.e)(O),q=o*Object(u.k)(O),R=c*Object(u.e)(w),L=c*Object(u.k)(w);if(C>u.f){var D=o*Object(u.e)(j),U=o*Object(u.k)(j),F=c*Object(u.e)(x),I=c*Object(u.k)(x);if(gu.f?function(t,n,e,r,i,u,a,c){var o=e-t,f=r-n,s=a-i,l=c-u,h=(s*(n-u)-l*(t-i))/(l*o-s*f);return[t+h*o,n+h*f]}(P,q,F,I,D,U,R,L):[R,L],B=P-H[0],Y=q-H[1],V=D-H[0],X=U-H[1],W=1/Object(u.k)(Object(u.b)((B*V+Y*X)/(Object(u.l)(B*B+Y*Y)*Object(u.l)(V*V+X*X)))/2),G=Object(u.l)(H[0]*H[0]+H[1]*H[1]);A=Object(u.i)(C,(c-G)/(W-1)),N=Object(u.i)(C,(o-G)/(W+1))}}k>u.f?N>u.f?(_=l(F,I,P,q,o,N,y),m=l(D,U,R,L,o,N,y),p.moveTo(_.cx+_.x01,_.cy+_.y01),Nu.f&&M>u.f?A>u.f?(_=l(R,L,D,U,c,-A,y),m=l(P,q,F,I,c,-A,y),p.lineTo(_.cx+_.x01,_.cy+_.y01),A0&&(b+=h);for(null!=n?v.sort(function(t,e){return n(p[t],p[e])}):null!=e&&v.sort(function(t,n){return e(r[t],r[n])}),i=0,s=b?(y-d*m)/b:0;i0?h*s:0)+m,p[u]={data:r[u],index:i,value:h,startAngle:g,endAngle:l,padAngle:_};return p}return s.value=function(n){return arguments.length?(t="function"==typeof n?n:Object(r.a)(+n),s):t},s.sortValues=function(t){return arguments.length?(n=t,e=null,s):n},s.sort=function(t){return arguments.length?(e=t,n=null,s):e},s.startAngle=function(t){return arguments.length?(c="function"==typeof t?t:Object(r.a)(+t),s):c},s.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Object(r.a)(+t),s):o},s.padAngle=function(t){return arguments.length?(f="function"==typeof t?t:Object(r.a)(+t),s):f},s}},function(t,n,e){"use strict";n.a=function(t,n){return nt?1:n>=t?0:NaN}},function(t,n,e){"use strict";n.a=function(t){return t}},function(t,n,e){"use strict";var r=e(156),i=e(155),u=e(157);n.a=function(){var t=Object(i.a)().curve(r.a),n=t.curve,e=t.lineX0,a=t.lineX1,c=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Object(u.b)(e())},delete t.lineX0,t.lineEndAngle=function(){return Object(u.b)(a())},delete t.lineX1,t.lineInnerRadius=function(){return Object(u.b)(c())},delete t.lineY0,t.lineOuterRadius=function(){return Object(u.b)(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(Object(r.b)(t)):n()._curve},t}},function(t,n,e){"use strict";n.a=function(){return s(l)},n.c=function(){return s(h)},n.b=function(){var t=s(d);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t};var r=e(13),i=e(159),u=e(16),a=e(85),c=e(158);function o(t){return t.source}function f(t){return t.target}function s(t){var n=o,e=f,c=a.a,s=a.b,l=null;function h(){var u,a=i.a.call(arguments),o=n.apply(this,a),f=e.apply(this,a);if(l||(l=u=Object(r.a)()),t(l,+c.apply(this,(a[0]=o,a)),+s.apply(this,a),+c.apply(this,(a[0]=f,a)),+s.apply(this,a)),u)return l=null,u+""||null}return h.source=function(t){return arguments.length?(n=t,h):n},h.target=function(t){return arguments.length?(e=t,h):e},h.x=function(t){return arguments.length?(c="function"==typeof t?t:Object(u.a)(+t),h):c},h.y=function(t){return arguments.length?(s="function"==typeof t?t:Object(u.a)(+t),h):s},h.context=function(t){return arguments.length?(l=null==t?null:t,h):l},h}function l(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function h(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function d(t,n,e,r,i){var u=Object(c.a)(n,e),a=Object(c.a)(n,e=(e+i)/2),o=Object(c.a)(r,e),f=Object(c.a)(r,i);t.moveTo(u[0],u[1]),t.bezierCurveTo(a[0],a[1],o[0],o[1],f[0],f[1])}},function(t,n,e){"use strict";e.d(n,"b",function(){return h});var r=e(13),i=e(160),u=e(161),a=e(162),c=e(163),o=e(164),f=e(165),s=e(166),l=e(16),h=[i.a,u.a,a.a,o.a,c.a,f.a,s.a];n.a=function(){var t=Object(l.a)(i.a),n=Object(l.a)(64),e=null;function u(){var i;if(e||(e=i=Object(r.a)()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),i)return e=null,i+""||null}return u.type=function(n){return arguments.length?(t="function"==typeof n?n:Object(l.a)(n),u):t},u.size=function(t){return arguments.length?(n="function"==typeof t?t:Object(l.a)(+t),u):n},u.context=function(t){return arguments.length?(e=null==t?null:t,u):e},u}},function(t,n,e){"use strict";var r=e(47),i=e(48);function u(t){this._context=t}u.prototype={areaStart:r.a,areaEnd:r.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:Object(i.c)(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},n.a=function(t){return new u(t)}},function(t,n,e){"use strict";var r=e(48);function i(t){this._context=t}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break;case 3:this._point=4;default:Object(r.c)(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},n.a=function(t){return new i(t)}},function(t,n,e){"use strict";var r=e(48);function i(t,n){this._basis=new r.a(t),this._beta=n}i.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],u=n[0],a=t[e]-i,c=n[e]-u,o=-1;++o<=e;)r=o/e,this._basis.point(this._beta*t[o]+(1-this._beta)*(i+r*a),this._beta*n[o]+(1-this._beta)*(u+r*c));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}},n.a=function t(n){function e(t){return 1===n?new r.a(t):new i(t,n)}return e.beta=function(n){return t(+n)},e}(.85)},function(t,n,e){"use strict";var r=e(167),i=e(47),u=e(86);function a(t,n){this._context=t,this._alpha=n}a.prototype={areaStart:i.a,areaEnd:i.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Object(u.b)(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},n.a=function t(n){function e(t){return n?new a(t,n):new r.a(t,0)}return e.alpha=function(n){return t(+n)},e}(.5)},function(t,n,e){"use strict";var r=e(168),i=e(86);function u(t,n){this._context=t,this._alpha=n}u.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(i.b)(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},n.a=function t(n){function e(t){return n?new u(t,n):new r.a(t,0)}return e.alpha=function(n){return t(+n)},e}(.5)},function(t,n,e){"use strict";var r=e(47);function i(t){this._context=t}i.prototype={areaStart:r.a,areaEnd:r.a,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}},n.a=function(t){return new i(t)}},function(t,n,e){"use strict";function r(t){return t<0?-1:1}function i(t,n,e){var i=t._x1-t._x0,u=n-t._x1,a=(t._y1-t._y0)/(i||u<0&&-0),c=(e-t._y1)/(u||i<0&&-0),o=(a*u+c*i)/(i+u);return(r(a)+r(c))*Math.min(Math.abs(a),Math.abs(c),.5*Math.abs(o))||0}function u(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function a(t,n,e){var r=t._x0,i=t._y0,u=t._x1,a=t._y1,c=(u-r)/3;t._context.bezierCurveTo(r+c,i+c*n,u-c,a-c*e,u,a)}function c(t){this._context=t}function o(t){this._context=new f(t)}function f(t){this._context=t}n.a=function(t){return new c(t)},n.b=function(t){return new o(t)},c.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:a(this,this._t0,u(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,a(this,u(this,e=i(this,t,n)),e);break;default:a(this,this._t0,e=i(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(o.prototype=Object.create(c.prototype)).point=function(t,n){c.prototype.point.call(this,n,t)},f.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,u){this._context.bezierCurveTo(n,t,r,e,u,i)}}},function(t,n,e){"use strict";function r(t){this._context=t}function i(t){var n,e,r=t.length-1,i=new Array(r),u=new Array(r),a=new Array(r);for(i[0]=0,u[0]=2,a[0]=t[0]+2*t[1],n=1;n=0;--n)i[n]=(a[n]-i[n+1])/u[n];for(u[r-1]=(t[r]+i[r-1])/2,n=0;n=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}},n.a=function(t){return new r(t,.5)}},function(t,n,e){"use strict";var r=e(159),i=e(16),u=e(30),a=e(31);function c(t,n){return t[n]}n.a=function(){var t=Object(i.a)([]),n=a.a,e=u.a,o=c;function f(r){var i,u,a=t.apply(this,arguments),c=r.length,f=a.length,s=new Array(f);for(i=0;i0){for(var e,i,u,a=0,c=t[0].length;a1)for(var e,r,i,u,a,c,o=0,f=t[n[0]].length;o=0?(r[0]=u,r[1]=u+=i):i<0?(r[1]=a,r[0]=a+=i):r[0]=u}},function(t,n,e){"use strict";var r=e(30);n.a=function(t,n){if((e=t.length)>0){for(var e,i=0,u=t[n[0]],a=u.length;i0&&(i=(e=t[n[0]]).length)>0){for(var e,i,u,a=0,c=1;cc.f)b=b.L;else{if(!((o=s-h(b,d))>c.f)){r>-c.f?(n=b.P,e=b):o>-c.f?(n=b,e=b.N):n=e=b;break}if(!b.R){n=b;break}b=b.R}Object(i.c)(t);var v=f(t);if(c.a.insert(n,v),!n&&!e)return;if(n===e)return Object(u.b)(n),e=f(n.site),c.a.insert(v,e),v.edge=e.edge=Object(a.c)(n.site,v.site),Object(u.a)(n),void Object(u.a)(e);if(!e)return void(v.edge=Object(a.c)(n.site,v.site));Object(u.b)(n),Object(u.b)(e);var p=n.site,g=p[0],y=p[1],_=t[0]-g,m=t[1]-y,O=e.site,j=O[0]-g,x=O[1]-y,w=2*(_*x-m*j),M=_*_+m*m,k=j*j+x*x,T=[(x*M-m*k)/w+g,(_*k-j*M)/w+y];Object(a.d)(e.edge,p,O,T),v.edge=Object(a.c)(p,t,null,T),e.edge=Object(a.c)(t,O,null,T),Object(u.a)(n),Object(u.a)(e)};var r=e(88),i=e(169),u=e(170),a=e(89),c=e(32),o=[];function f(t){var n=o.pop()||new function(){Object(r.a)(this),this.edge=this.site=this.circle=null};return n.site=t,n}function s(t){Object(u.b)(t),c.a.remove(t),o.push(t),Object(r.a)(t)}function l(t,n){var e=t.site,r=e[0],i=e[1],u=i-n;if(!u)return r;var a=t.P;if(!a)return-1/0;var c=(e=a.site)[0],o=e[1],f=o-n;if(!f)return c;var s=c-r,l=1/u-1/f,h=s/f;return l?(-h+Math.sqrt(h*h-2*l*(s*s/(-2*f)-o+f/2+i-u/2)))/l+r:(r+c)/2}function h(t,n){var e=t.N;if(e)return l(e,n);var r=t.site;return r[1]===n?r[0]:1/0}},function(t,n,e){"use strict";var r=e(460);e.d(n,"a",function(){return r.a});var i=e(171);e.d(n,"c",function(){return i.b}),e.d(n,"b",function(){return i.c})},function(t,n,e){"use strict";var r=e(12),i=e(51),u=e(5),a=e(1),c=e(62),o=e(461),f=e(462),s=e(171),l=e(463);function h(){return!a.e.button}function d(){var t,n,e=this;return e instanceof SVGElement?(t=(e=e.ownerSVGElement||e).width.baseVal.value,n=e.height.baseVal.value):(t=e.clientWidth,n=e.clientHeight),[[0,0],[t,n]]}function b(){return this.__zoom||s.c}function v(){return-a.e.deltaY*(a.e.deltaMode?120:1)/500}function p(){return"ontouchstart"in this}function g(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],u=t.invertY(n[0][1])-e[0][1],a=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>u?(u+a)/2:Math.min(0,u)||Math.max(0,a))}n.a=function(){var t,n,e=h,y=d,_=g,m=v,O=p,j=[0,1/0],x=[[-1/0,-1/0],[1/0,1/0]],w=250,M=u.v,k=[],T=Object(r.a)("start","zoom","end"),S=500,C=150,A=0;function N(t){t.property("__zoom",b).on("wheel.zoom",D).on("mousedown.zoom",U).on("dblclick.zoom",F).filter(O).on("touchstart.zoom",I).on("touchmove.zoom",H).on("touchend.zoom touchcancel.zoom",B).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function E(t,n){return(n=Math.max(j[0],Math.min(j[1],n)))===t.k?t:new s.a(n,t.x,t.y)}function z(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new s.a(t.k,r,i)}function P(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function q(t,n,e){t.on("start.zoom",function(){R(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).end()}).tween("zoom",function(){var t=arguments,r=R(this,t),i=y.apply(this,t),u=e||P(i),a=Math.max(i[1][0]-i[0][0],i[1][1]-i[0][1]),c=this.__zoom,o="function"==typeof n?n.apply(this,t):n,f=M(c.invert(u).concat(a/c.k),o.invert(u).concat(a/o.k));return function(t){if(1===t)t=o;else{var n=f(t),e=a/n[2];t=new s.a(e,u[0]-n[0]*e,u[1]-n[1]*e)}r.zoom(null,t)}})}function R(t,n){for(var e,r=0,i=k.length;rA}t.zoom("mouse",_(z(t.that.__zoom,t.mouse[0]=Object(a.h)(t.that),t.mouse[1]),t.extent,x))},!0).on("mouseup.zoom",function(){r.on("mousemove.zoom mouseup.zoom",null),Object(i.c)(a.e.view,t.moved),Object(l.a)(),t.end()},!0),u=Object(a.h)(this),o=a.e.clientX,f=a.e.clientY;Object(i.b)(a.e.view),Object(l.b)(),t.mouse=[u,this.__zoom.invert(u)],Object(c.b)(this),t.start()}}function F(){if(e.apply(this,arguments)){var t=this.__zoom,n=Object(a.h)(this),r=t.invert(n),i=t.k*(a.e.shiftKey?.5:2),u=_(z(E(t,i),n,r),y.apply(this,arguments),x);Object(l.a)(),w>0?Object(a.k)(this).transition().duration(w).call(q,u,n):Object(a.k)(this).call(N.transform,u)}}function I(){if(e.apply(this,arguments)){var n,r,i,u,o=R(this,arguments),f=a.e.changedTouches,s=f.length;for(Object(l.b)(),r=0;r-1&&(n+=",");var e=t.split(".");switch(n+=".",n+=e.length>1?e[1].length:0,t.slice(-1)){case"%":n+="%";break;case"0":n+="f"}return r.format(n)}},u=function(t,n,e){var r=function(n,e,r,i,u){return!(!t.addError||!t.clearErrors)&&(ru?(t.addError({title:"Too Many "+e+"s",message:"This visualization requires "+(i===u?"exactly":"no more than")+" "+u+" "+e.toLowerCase()+(1===i?"":"s")+".",group:n}),!1):(t.clearErrors(n),!0))},i=n.fields,u=i.pivots,a=i.dimensions,c=i.measure_like;return r("pivot-req","Pivot",u.length,e.min_pivots,e.max_pivots)&&r("dim-req","Dimension",a.length,e.min_dimensions,e.max_dimensions)&&r("mes-req","Measure",c.length,e.min_measures,e.max_measures)}},,,,,,,,,,,,function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(172),i=e(464),u=e(477);e.n(u);u.initialize(r);var a=u.defaultConfig,c={id:"liquid_fill_gauge",label:"Liquid Fill Gauge",options:{showComparison:{label:"Use field comparison",default:!1,section:"Value",type:"boolean"},minValue:{label:"Min value",min:0,default:a.minValue,section:"Value",type:"number",placeholder:"Any positive number"},maxValue:{label:"Max value",min:0,default:a.maxValue,section:"Value",type:"number",placeholder:"Any positive number"},circleThickness:{label:"Circle Thickness",min:0,max:1,step:.05,default:a.circleThickness,section:"Style",type:"number",display:"range"},circleFillGap:{label:"Circle Gap",min:0,max:1,step:.05,default:a.circleFillGap,section:"Style",type:"number",display:"range"},circleColor:{label:"Circle Color",default:a.circleFillGap,section:"Style",type:"string",display:"color"},waveHeight:{label:"Wave Height",min:0,max:1,step:.05,default:a.waveHeight,section:"Waves",type:"number",display:"range"},waveCount:{label:"Wave Count",min:0,max:10,default:a.waveCount,section:"Waves",type:"number",display:"range"},waveRiseTime:{label:"Wave Rise Time",min:0,max:5e3,step:50,default:a.waveRiseTime,section:"Waves",type:"number",display:"range"},waveAnimateTime:{label:"Wave Animation Time",min:0,max:5e3,step:50,default:a.waveAnimateTime,section:"Waves",type:"number",display:"range"},waveRise:{label:"Wave Rise from Bottom",default:a.waveRise,section:"Waves",type:"boolean"},waveHeightScaling:{label:"Scale waves if high or low",default:a.waveHeightScaling,section:"Waves",type:"boolean"},waveAnimate:{label:"Animate Waves",default:!0,section:"Waves",type:"boolean"},waveColor:{label:"Wave Color",default:"#64518A",section:"Style",type:"string",display:"color"},waveOffset:{label:"Wave Offset",min:0,max:1,step:.05,default:0,section:"Waves",type:"number",display:"range"},textVertPosition:{label:"Text Vertical Offset",min:0,max:1,step:.01,default:.5,section:"Value",type:"number",display:"range"},textSize:{label:"Text Size",min:0,max:1,step:.01,default:1,section:"Value",type:"number",display:"range"},valueCountUp:{label:"Animate to Value",default:!0,section:"Waves",type:"boolean"},displayPercent:{label:"Display as Percent",default:!0,section:"Value",type:"boolean"},textColor:{label:"Text Color (non-overlapped)",default:"#000000",section:"Style",type:"string",display:"color"},waveTextColor:{label:"Text Color (overlapped)",default:"#FFFFFF",section:"Style",type:"string",display:"color"}},create:function(t,n){t.style.margin="10px",t.style.fontFamily='"Open Sans", "Helvetica", sans-serif',t.innerHTML="\n \n ";var e="fill-gauge-"+Date.now();this.svg=r.select(t).append("svg"),this.svg.attr("id",e)},update:function(t,n,e,a){if(Object(i.b)(this,a,{min_pivots:0,max_pivots:0,min_dimensions:0,max_dimensions:void 0,min_measures:1,max_measures:void 0})){var c=Object.assign(u.defaultConfig,e);if(this.addError&&this.clearErrors){if(c.maxValue<=0)return void this.addError({group:"config",title:"Max value must be greater than zero."});this.clearErrors("config")}var o=a.fields.measure_like[0],f=t[0][o.name],s=f.value,l=a.fields.measure_like[1];if(l&&c.showComparison){var h=t[0][l.name];c.maxValue=h.value}c.displayPercent&&(s=f.value/c.maxValue*100,c.maxValue=100),this.svg.html(""),this.svg.attr("width",n.clientWidth-20),this.svg.attr("height",n.clientHeight-20),r.liquidfillgauge(this.svg,s,c)}}};looker.plugins.visualizations.add(c)},function(t,n){ +!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.liquid_fill_gauge=n():t.liquid_fill_gauge=n()}("undefined"!=typeof self?self:this,function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=476)}([function(t,n,e){"use strict";e.d(n,"i",function(){return r}),e.d(n,"j",function(){return i}),e.d(n,"o",function(){return u}),e.d(n,"l",function(){return a}),e.d(n,"q",function(){return c}),e.d(n,"w",function(){return o}),e.d(n,"h",function(){return f}),e.d(n,"r",function(){return s}),e.d(n,"a",function(){return l}),e.d(n,"d",function(){return h}),e.d(n,"e",function(){return d}),e.d(n,"g",function(){return b}),e.d(n,"f",function(){return v}),e.d(n,"k",function(){return p}),e.d(n,"n",function(){return g}),e.d(n,"p",function(){return y}),e.d(n,"t",function(){return _}),e.d(n,"s",function(){return m}),e.d(n,"u",function(){return O}),e.d(n,"v",function(){return j}),n.b=function(t){return t>1?0:t<-1?u:Math.acos(t)},n.c=function(t){return t>1?a:t<-1?-a:Math.asin(t)},n.m=function(t){return(t=_(t/2))*t};var r=1e-6,i=1e-12,u=Math.PI,a=u/2,c=u/4,o=2*u,f=180/u,s=u/180,l=Math.abs,h=Math.atan,d=Math.atan2,b=Math.cos,v=Math.ceil,p=Math.exp,g=(Math.floor,Math.log),y=Math.pow,_=Math.sin,m=Math.sign||function(t){return t>0?1:t<0?-1:0},O=Math.sqrt,j=Math.tan},function(t,n,e){"use strict";var r=e(199);e.d(n,"b",function(){return r.a});var i=e(33);e.d(n,"c",function(){return i.a});var u=e(228);e.d(n,"f",function(){return u.a});var a=e(104);e.d(n,"g",function(){return a.a});var c=e(229);e.d(n,"h",function(){return c.a});var o=e(52);e.d(n,"i",function(){return o.a});var f=e(53);e.d(n,"j",function(){return f.a});var s=e(34);e.d(n,"a",function(){return s.a});var l=e(102);e.d(n,"k",function(){return l.a});var h=e(230);e.d(n,"l",function(){return h.a});var d=e(4);e.d(n,"m",function(){return d.b});var b=e(54);e.d(n,"n",function(){return b.a});var v=e(103);e.d(n,"o",function(){return v.a});var p=e(107);e.d(n,"p",function(){return p.b});var g=e(231);e.d(n,"q",function(){return g.a});var y=e(232);e.d(n,"r",function(){return y.a});var _=e(55);e.d(n,"s",function(){return _.a});var m=e(56);e.d(n,"e",function(){return m.c}),e.d(n,"d",function(){return m.a})},function(t,n,e){"use strict";n.a=function t(n,e,u,a){function c(t){return n(t=new Date(+t)),t}c.floor=c;c.ceil=function(t){return n(t=new Date(t-1)),e(t,1),n(t),t};c.round=function(t){var n=c(t),e=c.ceil(t);return t-n0))return a;do{a.push(u=new Date(+t)),e(t,i),n(t)}while(u=t)for(;n(t),!r(t);)t.setTime(t-1)},function(t,n){if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););})};u&&(c.count=function(t,e){return r.setTime(+t),i.setTime(+e),n(r),n(i),Math.floor(u(r,i))},c.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?c.filter(a?function(n){return a(n)%t==0}:function(n){return c.count(0,n)%t==0}):c:null});return c};var r=new Date,i=new Date},function(t,n,e){"use strict";var r=e(90);e.d(n,"b",function(){return r.c}),e.d(n,"d",function(){return r.b}),e.d(n,"c",function(){return r.a});var i=e(17);e.d(n,"a",function(){return i.a});var u=e(91);e.d(n,"e",function(){return u.a});var a=e(175);e.d(n,"f",function(){return a.a});var c=e(176);e.d(n,"g",function(){return c.a});var o=e(93);e.d(n,"h",function(){return o.a});var f=e(95);e.d(n,"i",function(){return f.a});var s=e(177);e.d(n,"j",function(){return s.a});var l=e(180);e.d(n,"w",function(){return l.a});var h=e(181);e.d(n,"x",function(){return h.a});var d=e(99);e.d(n,"y",function(){return d.a});var b=e(182);e.d(n,"k",function(){return b.a});var v=e(183);e.d(n,"l",function(){return v.a});var p=e(184);e.d(n,"m",function(){return p.a});var g=e(185);e.d(n,"n",function(){return g.a});var y=e(100);e.d(n,"o",function(){return y.a});var _=e(92);e.d(n,"p",function(){return _.a});var m=e(186);e.d(n,"q",function(){return m.a});var O=e(50);e.d(n,"r",function(){return O.a});var j=e(97);e.d(n,"s",function(){return j.a});var x=e(187);e.d(n,"t",function(){return x.a});var w=e(188);e.d(n,"u",function(){return w.a});var M=e(189);e.d(n,"v",function(){return M.a});var k=e(98);e.d(n,"B",function(){return k.a}),e.d(n,"z",function(){return k.b}),e.d(n,"A",function(){return k.c});var T=e(101);e.d(n,"C",function(){return T.a});var C=e(94);e.d(n,"D",function(){return C.a});var S=e(190);e.d(n,"E",function(){return S.a})},function(t,n,e){"use strict";e.d(n,"c",function(){return z}),n.a=P;var r=e(200),i=e(201),u=e(202),a=e(203),c=e(105),o=e(205),f=e(206),s=e(207),l=e(208),h=e(209),d=e(210),b=e(211),v=e(212),p=e(213),g=e(214),y=e(215),_=e(107),m=e(216),O=e(217),j=e(218),x=e(219),w=e(220),M=e(221),k=e(222),T=e(223),C=e(224),S=e(225),A=e(226),N=e(56),E=e(227),z=[null];function P(t,n){this._groups=t,this._parents=n}function q(){return new P([[document.documentElement]],z)}P.prototype=q.prototype={constructor:P,select:r.a,selectAll:i.a,filter:u.a,data:a.a,enter:c.b,exit:o.a,merge:f.a,order:s.a,sort:l.a,call:h.a,nodes:d.a,node:b.a,size:v.a,empty:p.a,each:g.a,attr:y.a,style:_.a,property:m.a,classed:O.a,text:j.a,html:x.a,raise:w.a,lower:M.a,append:k.a,insert:T.a,remove:C.a,clone:S.a,datum:A.a,on:N.b,dispatch:E.a},n.b=q},function(t,n,e){"use strict";var r=e(58);e.d(n,"a",function(){return r.a});var i=e(114);e.d(n,"b",function(){return i.a});var u=e(61);e.d(n,"c",function(){return u.b});var a=e(112);e.d(n,"d",function(){return a.a});var c=e(115);e.d(n,"g",function(){return c.a});var o=e(35);e.d(n,"m",function(){return o.a});var f=e(116);e.d(n,"n",function(){return f.a});var s=e(237);e.d(n,"r",function(){return s.a});var l=e(117);e.d(n,"s",function(){return l.a});var h=e(238);e.d(n,"t",function(){return h.a}),e.d(n,"u",function(){return h.b});var d=e(241);e.d(n,"v",function(){return d.a});var b=e(111);e.d(n,"o",function(){return b.a}),e.d(n,"p",function(){return b.b}),e.d(n,"q",function(){return b.c});var v=e(242);e.d(n,"j",function(){return v.a}),e.d(n,"k",function(){return v.b});var p=e(243);e.d(n,"l",function(){return p.a});var g=e(244);e.d(n,"h",function(){return g.a}),e.d(n,"i",function(){return g.b});var y=e(245);e.d(n,"e",function(){return y.b}),e.d(n,"f",function(){return y.a});var _=e(246);e.d(n,"w",function(){return _.a})},function(t,n,e){"use strict";e.d(n,"c",function(){return o}),e.d(n,"d",function(){return f}),e.d(n,"b",function(){return h}),e.d(n,"a",function(){return d}),n.g=function(t,n){var e=b(t,n);if(e.state>c)throw new Error("too late; already scheduled");return e},n.h=function(t,n){var e=b(t,n);if(e.state>f)throw new Error("too late; already started");return e},n.f=b;var r=e(12),i=e(36),u=Object(r.a)("start","end","interrupt"),a=[],c=0,o=1,f=2,s=3,l=4,h=5,d=6;function b(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}n.e=function(t,n,e,r,b,v){var p=t.__transition;if(p){if(e in p)return}else t.__transition={};!function(t,n,e){var r,u=t.__transition;function a(h){var v,p,g,y;if(e.state!==o)return b();for(v in u)if((y=u[v]).name===e.name){if(y.state===s)return Object(i.c)(a);y.state===l?(y.state=d,y.timer.stop(),y.on.call("interrupt",t,t.__data__,y.index,y.group),delete u[v]):+v2?t[2]%360*o.r:0,U()):[T*o.h,C*o.h,S*o.h]},R.precision=function(t){return arguments.length?(q=Object(h.a)(D,P=t*t),F()):Object(o.u)(P)},R.fitExtent=function(t,n){return Object(l.a)(R,t,n)},R.fitSize=function(t,n){return Object(l.c)(R,t,n)},R.fitWidth=function(t,n){return Object(l.d)(R,t,n)},R.fitHeight=function(t,n){return Object(l.b)(R,t,n)},function(){return n=t.apply(this,arguments),R.invert=n.invert&&L,U()}}},function(t,n,e){"use strict";e.d(n,"d",function(){return r}),e.d(n,"c",function(){return i}),e.d(n,"b",function(){return u}),e.d(n,"a",function(){return a}),e.d(n,"e",function(){return c});var r=1e3,i=6e4,u=36e5,a=864e5,c=6048e5},function(t,n,e){"use strict";n.a=j,n.b=x,n.c=function(){return++O};var r=e(1),i=e(252),u=e(253),a=e(254),c=e(255),o=e(256),f=e(257),s=e(258),l=e(259),h=e(260),d=e(261),b=e(262),v=e(263),p=e(264),g=e(265),y=e(266),_=e(267),m=e(37),O=0;function j(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function x(t){return Object(r.m)().transition(t)}var w=r.m.prototype;j.prototype=x.prototype={constructor:j,select:d.a,selectAll:b.a,filter:f.a,merge:s.a,selection:v.a,transition:_.a,call:w.call,nodes:w.nodes,node:w.node,size:w.size,empty:w.empty,each:w.each,on:l.a,attr:i.a,attrTween:u.a,style:p.a,styleTween:g.a,text:y.a,remove:h.a,tween:m.a,delay:a.a,duration:c.a,ease:o.a}},function(t,n,e){"use strict";n.a=function(){}},function(t,n,e){"use strict";var r=e(197);e.d(n,"a",function(){return r.a})},function(t,n,e){"use strict";var r=e(287);e.d(n,"a",function(){return r.a})},function(t,n,e){"use strict";function r(t,n){t&&u.hasOwnProperty(t.type)&&u[t.type](t,n)}var i={Feature:function(t,n){r(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,i=-1,u=e.length;++in?1:t>=n?0:NaN}},function(t,n,e){"use strict";n.a=function(t){return function(){return t}}},function(t,n,e){"use strict";function r(){this.reset()}n.a=function(){return new r},r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(t){u(i,t,this.t),u(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new r;function u(t,n,e){var r=t.s=n+e,i=r-n,u=r-i;t.t=n-u+(e-i)}},function(t,n,e){"use strict";n.a=function(){return Math.random()}},function(t,n,e){"use strict";var r=e(288);e.d(n,"d",function(){return r.a});var i=e(289);e.d(n,"e",function(){return i.a});var u=e(64);e.d(n,"c",function(){return u.a});var a=e(290);e.d(n,"b",function(){return a.a});var c=e(291);e.d(n,"f",function(){return c.a});var o=e(292);e.d(n,"a",function(){return o.a})},function(t,n,e){"use strict";n.a=function(t){return null===t?NaN:+t}},function(t,n,e){"use strict";n.c=function(t,n){var e=n-t;return e?i(t,e>180||e<-180?e-360*Math.round(e/360):e):Object(r.a)(isNaN(t)?n:t)},n.b=function(t){return 1==(t=+t)?u:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):Object(r.a)(isNaN(n)?e:n)}},n.a=u;var r=e(113);function i(t,n){return function(e){return t+e*n}}function u(t,n){var e=n-t;return e?i(t,e):Object(r.a)(isNaN(t)?n:t)}},function(t,n,e){"use strict";n.g=function(t){return[Object(r.e)(t[1],t[0]),Object(r.c)(t[2])]},n.a=function(t){var n=t[0],e=t[1],i=Object(r.g)(e);return[i*Object(r.g)(n),i*Object(r.t)(n),Object(r.t)(e)]},n.d=function(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]},n.c=function(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]},n.b=function(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]},n.f=function(t,n){return[t[0]*n,t[1]*n,t[2]*n]},n.e=function(t){var n=Object(r.u)(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n};var r=e(0)},function(t,n,e){"use strict";n.b=function(t){return function(n,e){var i=Object(r.g)(n),u=Object(r.g)(e),a=t(i*u);return[a*u*Object(r.t)(n),a*Object(r.t)(e)]}},n.a=function(t){return function(n,e){var i=Object(r.u)(n*n+e*e),u=t(i),a=Object(r.t)(u),c=Object(r.g)(u);return[Object(r.e)(n*a,i*c),Object(r.c)(i&&e*a/i)]}};var r=e(0)},function(t,n,e){"use strict";n.a=function(t,n,e,r,i){for(var u,a=t.children,c=-1,o=a.length,f=t.value&&(r-n)/t.value;++c0?(o=Math.floor(o/i)*i,f=Math.ceil(f/i)*i,i=Object(r.z)(o,f,e)):i<0&&(o=Math.ceil(o*i)/i,f=Math.floor(f*i)/i,i=Object(r.z)(o,f,e)),i>0?(u[a]=Math.floor(o/i)*i,u[c]=Math.ceil(f/i)*i,n(u)):i<0&&(u[a]=Math.ceil(o*i)/i,u[c]=Math.floor(f*i)/i,n(u)),t},t}},function(t,n,e){"use strict";n.a=function(t){return t.match(/.{6}/g).map(function(t){return"#"+t})}},function(t,n,e){"use strict";e.d(n,"a",function(){return r}),e.d(n,"d",function(){return i}),e.d(n,"e",function(){return u}),e.d(n,"h",function(){return a}),e.d(n,"i",function(){return c}),e.d(n,"k",function(){return o}),e.d(n,"l",function(){return f}),e.d(n,"f",function(){return s}),e.d(n,"j",function(){return l}),e.d(n,"g",function(){return h}),e.d(n,"m",function(){return d}),n.b=function(t){return t>1?0:t<-1?l:Math.acos(t)},n.c=function(t){return t>=1?h:t<=-1?-h:Math.asin(t)};var r=Math.abs,i=Math.atan2,u=Math.cos,a=Math.max,c=Math.min,o=Math.sin,f=Math.sqrt,s=1e-12,l=Math.PI,h=l/2,d=2*l},function(t,n,e){"use strict";n.a=function(t,n){if((i=t.length)>1)for(var e,r,i,u=1,a=t[n[0]],c=a.length;u=0;)e[n]=n;return e}},function(t,n,e){"use strict";e.d(n,"f",function(){return h}),e.d(n,"g",function(){return d}),e.d(n,"a",function(){return r}),e.d(n,"b",function(){return i}),e.d(n,"c",function(){return u}),e.d(n,"e",function(){return a}),n.d=v;var r,i,u,a,c=e(458),o=e(169),f=e(170),s=e(89),l=e(88),h=1e-6,d=1e-12;function b(t,n){return n[1]-t[1]||n[0]-t[0]}function v(t,n){var e,h,d,v=t.sort(b).pop();for(a=[],i=new Array(t.length),r=new l.b,u=new l.b;;)if(d=f.c,v&&(!d||v[1]=c)return null;var o=t-i.site[0],f=n-i.site[1],s=o*o+f*f;do{i=u.cells[r=a],a=null,i.halfedges.forEach(function(e){var r=u.edges[e],c=r.left;if(c!==i.site&&c||(c=r.right)){var o=t-c[0],f=n-c[1],l=o*o+f*f;li.o?t-i.w:t<-i.o?t+i.w:t,n]}function a(t,n,e){return(t%=i.w)?n||e?Object(r.a)(o(t),f(n,e)):o(t):n||e?f(n,e):u}function c(t){return function(n,e){return[(n+=t)>i.o?n-i.w:n<-i.o?n+i.w:n,e]}}function o(t){var n=c(t);return n.invert=c(-t),n}function f(t,n){var e=Object(i.g)(t),r=Object(i.t)(t),u=Object(i.g)(n),a=Object(i.t)(n);function c(t,n){var c=Object(i.g)(n),o=Object(i.g)(t)*c,f=Object(i.t)(t)*c,s=Object(i.t)(n),l=s*e+o*r;return[Object(i.e)(f*u-l*a,o*e-s*r),Object(i.c)(l*u+f*a)]}return c.invert=function(t,n){var c=Object(i.g)(n),o=Object(i.g)(t)*c,f=Object(i.t)(t)*c,s=Object(i.t)(n),l=s*u-f*a;return[Object(i.e)(f*u+s*a,o*e+l*r),Object(i.c)(l*e-o*r)]},c}u.invert=u,n.a=function(t){function n(n){return(n=t(n[0]*i.r,n[1]*i.r))[0]*=i.h,n[1]*=i.h,n}return t=a(t[0]*i.r,t[1]*i.r,t.length>2?t[2]*i.r:0),n.invert=function(n){return(n=t.invert(n[0]*i.r,n[1]*i.r))[0]*=i.h,n[1]*=i.h,n},n}},function(t,n,e){"use strict";n.a=function(t,n,e,s){function l(r,i){return t<=r&&r<=e&&n<=i&&i<=s}function h(r,i,u,a){var c=0,o=0;if(null==r||(c=d(r,u))!==(o=d(i,u))||v(r,i)<0^u>0)do{a.point(0===c||3===c?t:e,c>1?s:n)}while((c=(c+u+4)%4)!==o);else a.point(i[0],i[1])}function d(i,u){return Object(r.a)(i[0]-t)0?0:3:Object(r.a)(i[0]-e)0?2:1:Object(r.a)(i[1]-n)0?1:0:u>0?3:2}function b(t,n){return v(t.x,n.x)}function v(t,n){var e=d(t,1),r=d(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(r){var d,v,p,g,y,_,m,O,j,x,w,M=r,k=Object(i.a)(),T={point:C,lineStart:function(){T.point=S,v&&v.push(p=[]);x=!0,j=!1,m=O=NaN},lineEnd:function(){d&&(S(g,y),_&&j&&k.rejoin(),d.push(k.result()));T.point=C,j&&M.lineEnd()},polygonStart:function(){M=k,d=[],v=[],w=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,r=v.length;es&&(l-i)*(s-u)>(h-u)*(t-i)&&++n:h<=s&&(l-i)*(s-u)<(h-u)*(t-i)&&--n;return n}(),e=w&&n,i=(d=Object(c.n)(d)).length;(e||i)&&(r.polygonStart(),e&&(r.lineStart(),h(null,null,1,r),r.lineEnd()),i&&Object(a.a)(d,b,n,h,r),r.polygonEnd());M=r,d=v=p=null}};function C(t,n){l(t,n)&&M.point(t,n)}function S(r,i){var a=l(r,i);if(v&&p.push([r,i]),x)g=r,y=i,_=a,x=!1,a&&(M.lineStart(),M.point(r,i));else if(a&&j)M.point(r,i);else{var c=[m=Math.max(f,Math.min(o,m)),O=Math.max(f,Math.min(o,O))],h=[r=Math.max(f,Math.min(o,r)),i=Math.max(f,Math.min(o,i))];Object(u.a)(c,h,t,n,e,s)?(j||(M.lineStart(),M.point(c[0],c[1])),M.point(h[0],h[1]),a||M.lineEnd(),w=!1):a&&(M.lineStart(),M.point(r,i),w=!1)}m=r,O=i,j=a}return T}};var r=e(0),i=e(132),u=e(330),a=e(133),c=e(3),o=1e9,f=-o},function(t,n,e){"use strict";function r(t){return function(n){var e=new i;for(var r in t)e[r]=t[r];return e.stream=n,e}}function i(){}n.b=r,n.a=function(t){return{stream:r(t)}},i.prototype={constructor:i,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}}},function(t,n,e){"use strict";n.a=function(t,n,e,r,i){for(var u,a=t.children,c=-1,o=a.length,f=t.value&&(i-e)/t.value;++c2?l:s,r=a=null,g}function g(n){return(r||(r=e(h,d,v?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}(t):t,b)))(+n)}return g.invert=function(t){return(a||(a=e(d,h,f,v?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}(n):n)))(+t)},g.domain=function(t){return arguments.length?(h=u.a.call(t,c.a),p()):h.slice()},g.range=function(t){return arguments.length?(d=u.b.call(t),p()):d.slice()},g.rangeRound=function(t){return d=u.b.call(t),b=i.r,p()},g.clamp=function(t){return arguments.length?(v=!!t,p()):v},g.interpolate=function(t){return arguments.length?(b=t,p()):b},p()};var r=e(3),i=e(5),u=e(15),a=e(81),c=e(150),o=[0,1];function f(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:Object(a.a)(n)}function s(t,n,e,r){var i=t[0],u=t[1],a=n[0],c=n[1];return u=1)return+e(t[i-1],i-1,t);var i,u=(i-1)*n,a=Math.floor(u),c=+e(t[a],a,t);return c+(+e(t[a+1],a+1,t)-c)*(u-a)}}},function(t,n,e){"use strict";var r=e(198);e.d(n,"a",function(){return r.a});var i=e(108);e.d(n,"b",function(){return i.a}),e.d(n,"c",function(){return i.b})},function(t,n,e){"use strict";var r=e(53);n.a=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),r.a.hasOwnProperty(n)?{space:r.a[n],local:t}:t}},function(t,n,e){"use strict";e.d(n,"b",function(){return r});var r="http://www.w3.org/1999/xhtml";n.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(t,n,e){"use strict";function r(){}n.a=function(t){return null==t?r:function(){return this.querySelector(t)}}},function(t,n,e){"use strict";n.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,n,e){"use strict";e.d(n,"c",function(){return i}),n.a=function(t,n,e,r){var u=i;t.sourceEvent=i,i=t;try{return n.apply(e,r)}finally{i=u}};var r={},i=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(r={mouseenter:"mouseover",mouseleave:"mouseout"}));function u(t,n,e){return t=a(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function a(t,n,e){return function(r){var u=i;i=r;try{t.call(this,this.__data__,n,e)}finally{i=u}}}function c(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,u=n.length;r=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}(t+""),a=u.length;if(!(arguments.length<2)){for(f=n?o:c,null==e&&(e=!1),r=0;r>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=l.exec(t))?m(parseInt(n[1],16)):(n=h.exec(t))?new w(n[1],n[2],n[3],1):(n=d.exec(t))?new w(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=b.exec(t))?O(n[1],n[2],n[3],n[4]):(n=v.exec(t))?O(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=p.exec(t))?M(n[1],n[2]/100,n[3]/100,1):(n=g.exec(t))?M(n[1],n[2]/100,n[3]/100,n[4]):y.hasOwnProperty(t)?m(y[t]):"transparent"===t?new w(NaN,NaN,NaN,0):null}function m(t){return new w(t>>16&255,t>>8&255,255&t,1)}function O(t,n,e,r){return r<=0&&(t=n=e=NaN),new w(t,n,e,r)}function j(t){return t instanceof i||(t=_(t)),t?new w((t=t.rgb()).r,t.g,t.b,t.opacity):new w}function x(t,n,e,r){return 1===arguments.length?j(t):new w(t,n,e,null==r?1:r)}function w(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function M(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new T(t,n,e,r)}function k(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof T)return new T(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=_(t)),!t)return new T;if(t instanceof T)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,u=Math.min(n,e,r),a=Math.max(n,e,r),c=NaN,o=a-u,f=(a+u)/2;return o?(c=n===a?(e-r)/o+6*(e0&&f<1?0:c,new T(c,o,f,t.opacity)}(t):new T(t,n,e,null==r?1:r)}function T(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function C(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}Object(r.a)(i,_,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Object(r.a)(w,x,Object(r.b)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?u:Math.pow(u,t),new w(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},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+")")}})),Object(r.a)(T,k,Object(r.b)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new T(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?u:Math.pow(u,t),new T(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new w(C(t>=240?t-240:t+120,i,r),C(t,i,r),C(t<120?t+240:t-120,i,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}}))},function(t,n,e){"use strict";n.b=function(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e},n.a=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t}},function(t,n,e){"use strict";function r(t,n,e,r,i){var u=t*t,a=u*t;return((1-3*t+3*u-a)*n+(4-6*u+3*a)*e+(1+3*t+3*u-3*a)*r+a*i)/6}n.a=r,n.b=function(t){var n=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),u=t[i],a=t[i+1],c=i>0?t[i-1]:2*u-a,o=i=0&&n._call.call(null,t),n=n._next;--u}function _(){s=(f=h.now())+l,u=a=0;try{y()}finally{u=0,function(){var t,n,e=r,u=1/0;for(;e;)e._call?(u>e._time&&(u=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:r=n);i=t,O(u)}(),s=0}}function m(){var t=h.now(),n=t-f;n>o&&(l-=n,f=t)}function O(t){u||(a&&(a=clearTimeout(a)),t-s>24?(t<1/0&&(a=setTimeout(_,t-h.now()-l)),c&&(c=clearInterval(c))):(c||(f=h.now(),c=setInterval(m,o)),u=1,d(_)))}p.prototype=g.prototype={constructor:p,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?b():+e)+(null==n?0:+n),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=e,O()},stop:function(){this._call&&(this._call=null,this._time=1/0,O())}}},function(t,n,e){"use strict";e.d(n,"b",function(){return r});var r="$";function i(){}function u(t,n){var e=new i;if(t instanceof i)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,u=-1,a=t.length;if(null==n)for(;++u=s?d=!0:(o=t.charCodeAt(l++))===a?b=!0:o===c&&(b=!0,t.charCodeAt(l)===a&&++l),t.slice(f+1,n-1).replace(/""/g,'"')}for(;l1?r[0]+r.slice(2):r,+t.slice(e+1)]}},function(t,n,e){"use strict";n.a=function(t){return t}},function(t,n,e){"use strict";n.a=a;var r=e(0),i=e(74),u=e(341);function a(t,n){var e=Object(r.t)(t),i=(e+Object(r.t)(n))/2;if(Object(r.a)(i)=0;--u)f.push(r=e.children[u]=new y(i[u])),r.parent=e,r.depth=e.depth+1;return c.eachBefore(g)}function v(t){return t.children}function p(t){t.data=t.data.data}function g(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function y(t){this.data=t,this.depth=this.height=0,this.parent=null}y.prototype=b.prototype={constructor:y,count:r.a,each:i.a,eachAfter:a.a,eachBefore:u.a,sum:c.a,sort:o.a,path:f.a,ancestors:s.a,descendants:l.a,leaves:h.a,links:d.a,copy:function(){return b(this).eachBefore(p)}}},function(t,n,e){"use strict";function r(t){if("function"!=typeof t)throw new Error;return t}n.a=function(t){return null==t?null:r(t)},n.b=r},function(t,n,e){"use strict";e.d(n,"b",function(){return u}),n.c=a;var r=e(26),i=e(42),u=(1+Math.sqrt(5))/2;function a(t,n,e,u,a,c){for(var o,f,s,l,h,d,b,v,p,g,y,_=[],m=n.children,O=0,j=0,x=m.length,w=n.value;Ob&&(b=f),y=h*h*g,(v=Math.max(b/y,y/d))>p){h-=f;break}p=v}_.push(o={value:h,dice:s1?n:1)},e}(u)},function(t,n,e){"use strict";var r=e(21),i=e(12);n.a=function(t,n){var e,u,a,c,o=Object(i.a)("beforesend","progress","load","error"),f=Object(r.c)(),s=new XMLHttpRequest,l=null,h=null,d=0;function b(t){var n,r=s.status;if(!r&&function(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}(s)||r>=200&&r<300||304===r){if(a)try{n=a.call(e,s)}catch(t){return void o.call("error",e,t)}else n=s;o.call("load",e,n)}else o.call("error",e,t)}if("undefined"==typeof XDomainRequest||"withCredentials"in s||!/^(http(s)?:)?\/\//.test(t)||(s=new XDomainRequest),"onload"in s?s.onload=s.onerror=s.ontimeout=b:s.onreadystatechange=function(t){s.readyState>3&&b(t)},s.onprogress=function(t){o.call("progress",e,t)},e={header:function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?f.get(t):(null==n?f.remove(t):f.set(t,n+""),e)},mimeType:function(t){return arguments.length?(u=null==t?null:t+"",e):u},responseType:function(t){return arguments.length?(c=t,e):c},timeout:function(t){return arguments.length?(d=+t,e):d},user:function(t){return arguments.length<1?l:(l=null==t?null:t+"",e)},password:function(t){return arguments.length<1?h:(h=null==t?null:t+"",e)},response:function(t){return a=t,e},get:function(t,n){return e.send("GET",t,n)},post:function(t,n){return e.send("POST",t,n)},send:function(n,r,i){return s.open(n,t,!0,l,h),null==u||f.has("accept")||f.set("accept",u+",*/*"),s.setRequestHeader&&f.each(function(t,n){s.setRequestHeader(n,t)}),null!=u&&s.overrideMimeType&&s.overrideMimeType(u),null!=c&&(s.responseType=c),d>0&&(s.timeout=d),null==i&&"function"==typeof r&&(i=r,r=null),null!=i&&1===i.length&&(i=function(t){return function(n,e){t(null==n?e:null)}}(i)),null!=i&&e.on("error",i).on("load",function(t){i(null,t)}),o.call("beforesend",e,s),s.send(null==r?null:r),e},abort:function(){return s.abort(),e},on:function(){var t=o.on.apply(o,arguments);return t===o?e:t}},null!=n){if("function"!=typeof n)throw new Error("invalid callback: "+n);return e.get(n)}return e}},function(t,n,e){"use strict";n.a=function(t){return function(){return t}}},function(t,n,e){"use strict";var r=e(83);e.d(n,"d",function(){return r.a}),e.d(n,"c",function(){return r.b}),e.d(n,"f",function(){return r.c}),e.d(n,"g",function(){return r.d}),e.d(n,"h",function(){return r.e});var i=e(153);e.d(n,"e",function(){return i.a});var u=e(154);e.d(n,"a",function(){return u.a});var a=e(420);e.d(n,"b",function(){return a.a})},function(t,n,e){"use strict";e.d(n,"b",function(){return i}),e.d(n,"c",function(){return u}),e.d(n,"d",function(){return a}),e.d(n,"e",function(){return c}),n.a=f;var r,i,u,a,c,o=e(153);function f(t){return r=Object(o.a)(t),i=r.format,u=r.parse,a=r.utcFormat,c=r.utcParse,r}f({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"]})},function(t,n,e){"use strict";var r=e(13),i=e(16),u=e(46),a=e(85);n.a=function(){var t=a.a,n=a.b,e=Object(i.a)(!0),c=null,o=u.a,f=null;function s(i){var u,a,s,l=i.length,h=!1;for(null==c&&(f=o(s=Object(r.a)())),u=0;u<=l;++u)!(ur.f){var o=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,f=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*o-t._x0*t._l12_2a+t._x2*t._l01_2a)/f,u=(u*o-t._y0*t._l12_2a+t._y2*t._l01_2a)/f}if(t._l23_a>r.f){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*s+t._x1*t._l23_2a-n*t._l12_2a)/l,c=(c*s+t._y1*t._l23_2a-e*t._l12_2a)/l}t._context.bezierCurveTo(i,u,a,c,t._x2,t._y2)}function a(t,n){this._context=t,this._alpha=n}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:u(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},n.a=function t(n){function e(t){return n?new a(t,n):new i.a(t,0)}return e.alpha=function(n){return t(+n)},e}(.5)},function(t,n,e){"use strict";n.b=i;var r=e(31);function i(t){for(var n,e=0,r=-1,i=t.length;++rr.f||Math.abs(c[0][1]-c[1][1])>r.f)||delete r.e[o]};var r=e(32);function i(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function u(t,n,e,r,i){var u,a=t[0],c=t[1],o=a[0],f=a[1],s=0,l=1,h=c[0]-o,d=c[1]-f;if(u=n-o,h||!(u>0)){if(u/=h,h<0){if(u0){if(u>l)return;u>s&&(s=u)}if(u=r-o,h||!(u<0)){if(u/=h,h<0){if(u>l)return;u>s&&(s=u)}else if(h>0){if(u0)){if(u/=d,d<0){if(u0){if(u>l)return;u>s&&(s=u)}if(u=i-f,d||!(u<0)){if(u/=d,d<0){if(u>l)return;u>s&&(s=u)}else if(d>0){if(u0||l<1)||(s>0&&(t[0]=[o+s*h,f+s*d]),l<1&&(t[1]=[o+l*h,f+l*d]),!0)}}}}}function a(t,n,e,r,i){var u=t[1];if(u)return!0;var a,c,o=t[0],f=t.left,s=t.right,l=f[0],h=f[1],d=s[0],b=s[1],v=(l+d)/2,p=(h+b)/2;if(b===h){if(v=r)return;if(l>d){if(o){if(o[1]>=i)return}else o=[v,e];u=[v,i]}else{if(o){if(o[1]1)if(l>d){if(o){if(o[1]>=i)return}else o=[(e-c)/a,e];u=[(i-c)/a,i]}else{if(o){if(o[1]=r)return}else o=[n,a*n+c];u=[r,a*r+c]}else{if(o){if(o[0]>>1;t(n[u],e)<0?r=u+1:i=u}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[u],e)>0?i=u:r=u+1}return r}}}},function(t,n,e){"use strict";function r(t,n){return[t,n]}n.b=r,n.a=function(t,n){null==n&&(n=r);for(var e=0,i=t.length-1,u=t[0],a=new Array(i<0?0:i);e1)return f/(a-1)}},function(t,n,e){"use strict";n.a=function(t,n){var e,r,i,u=t.length,a=-1;if(null==n){for(;++a=e)for(r=i=e;++ae&&(r=e),i=e)for(r=i=e;++ae&&(r=e),i=r?c*=10:o>=i?c*=5:o>=u&&(c*=2);return n=0?(o>=r?10:o>=i?5:o>=u?2:1)*Math.pow(10,c):-Math.pow(10,-c)/(o>=r?10:o>=i?5:o>=u?2:1)}n.a=function(t,n,e){var r,i,u,c,o=-1;if(e=+e,(t=+t)===(n=+n)&&e>0)return[t];if((r=n0)for(t=Math.ceil(t/c),n=Math.floor(n/c),u=new Array(i=Math.ceil(n-t+1));++o=e)for(r=e;++ue&&(r=e)}else for(;++u=e)for(r=e;++ue&&(r=e);return r}},function(t,n,e){"use strict";var r=e(100);function i(t){return t.length}n.a=function(t){if(!(a=t.length))return[];for(var n=-1,e=Object(r.a)(t,i),u=new Array(e);++n1?this.each((null==n?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof n?function(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}:function(t,n,e){return function(){this.style.setProperty(t,n,e)}})(t,n,null==e?"":e)):i(this.node(),t)}},function(t,n,e){"use strict";n.b=function(t,n){var e=t.document.documentElement,u=Object(r.k)(t).on("dragstart.drag",null);n&&(u.on("click.drag",i.a,!0),setTimeout(function(){u.on("click.drag",null)},0));"onselectstart"in e?u.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)};var r=e(1),i=e(109);n.a=function(t){var n=t.document.documentElement,e=Object(r.k)(t).on("dragstart.drag",i.a,!0);"onselectstart"in n?e.on("selectstart.drag",i.a,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}},function(t,n,e){"use strict";n.b=function(){r.e.stopImmediatePropagation()};var r=e(1);n.a=function(){r.e.preventDefault(),r.e.stopImmediatePropagation()}},function(t,n,e){"use strict";e.d(n,"a",function(){return r}),e.d(n,"b",function(){return i});var r=Math.PI/180,i=180/Math.PI},function(t,n,e){"use strict";e.d(n,"b",function(){return o}),e.d(n,"c",function(){return f});var r=e(7),i=e(61),u=e(112),a=e(23);function c(t){return function(n){var e,i,u=n.length,a=new Array(u),c=new Array(u),o=new Array(u);for(e=0;eo&&(c=n.slice(o,c),s[f]?s[f]+=c:s[++f]=c),(e=e[0])===(a=a[0])?s[f]?s[f]+=a:s[++f]=a:(s[++f]=null,l.push({i:f,x:Object(r.a)(e,a)})),o=u.lastIndex;return or.d&&e.state1?(null==e?h.remove(t):h.set(t,y(e)),n):h.get(t)},find:function(n,e,r){var i,u,a,c,o,f=0,s=t.length;for(null==r?r=1/0:r*=r,f=0;f1?(b.on(t,e),n):b.on(t)}}}},function(t,n,e){"use strict";var r=e(38),i=e(317),u=e(318),a=e(124),c=e(125),o=e(126),f=e(321),s=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];n.a=function(t){var n=t.grouping&&t.thousands?Object(i.a)(t.grouping,t.thousands):f.a,e=t.currency,l=t.decimal,h=t.numerals?Object(u.a)(t.numerals):f.a,d=t.percent||"%";function b(t){var r=(t=Object(a.a)(t)).fill,i=t.align,u=t.sign,f=t.symbol,b=t.zero,v=t.width,p=t.comma,g=t.precision,y=t.type,_="$"===f?e[0]:"#"===f&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",m="$"===f?e[1]:/[%p]/.test(y)?d:"",O=c.a[y],j=!y||/[defgprs%]/.test(y);function x(t){var e,a,c,f=_,d=m;if("c"===y)d=O(t)+d,t="";else{var x=(t=+t)<0;if(t=O(Math.abs(t),g),x&&0==+t&&(x=!1),f=(x?"("===u?u:"-":"-"===u||"("===u?"":u)+f,d=("s"===y?s[8+o.b/3]:"")+d+(x&&"("===u?")":""),j)for(e=-1,a=t.length;++e(c=t.charCodeAt(e))||c>57){d=(46===c?l+t.slice(e+1):t.slice(e))+d,t=t.slice(0,e);break}}p&&!b&&(t=n(t,1/0));var w=f.length+t.length+d.length,M=w>1)+f+t+d+M.slice(w);break;default:t=M+f+t+d}return h(t)}return g=null==g?y?6:12:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),x.toString=function(){return t+""},x}return{format:b,formatPrefix:function(t,n){var e=b(((t=Object(a.a)(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(n)/3))),u=Math.pow(10,-i),c=s[8+i/3];return function(t){return e(u*t)+c}}}}},function(t,n,e){"use strict";n.a=u;var r=e(125),i=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function u(t){return new a(t)}function a(t){if(!(n=i.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",u=n[2]||">",a=n[3]||"-",c=n[4]||"",o=!!n[5],f=n[6]&&+n[6],s=!!n[7],l=n[8]&&+n[8].slice(1),h=n[9]||"";"n"===h?(s=!0,h="g"):r.a[h]||(h=""),(o||"0"===e&&"="===u)&&(o=!0,e="0",u="="),this.fill=e,this.align=u,this.sign=a,this.symbol=c,this.zero=o,this.width=f,this.comma=s,this.precision=l,this.type=h}u.prototype=a.prototype,a.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.type}},function(t,n,e){"use strict";var r=e(319),i=e(126),u=e(320);n.a={"":r.a,"%":function(t,n){return(100*t).toFixed(n)},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,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Object(u.a)(100*t,n)},r:u.a,s:i.a,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}}},function(t,n,e){"use strict";e.d(n,"b",function(){return r});var r,i=e(71);n.a=function(t,n){var e=Object(i.a)(t,n);if(!e)return t+"";var u=e[0],a=e[1],c=a-(r=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,o=u.length;return c===o?u:c>o?u+new Array(c-o+1).join("0"):c>0?u.slice(0,c)+"."+u.slice(c):"0."+new Array(1-c).join("0")+Object(i.a)(t,Math.max(0,n+c-1))[0]}},function(t,n,e){"use strict";e.d(n,"a",function(){return h}),e.d(n,"b",function(){return b});var r,i,u,a,c,o=e(19),f=e(0),s=e(11),l=e(14),h=Object(o.a)(),d=Object(o.a)(),b={point:s.a,lineStart:s.a,lineEnd:s.a,polygonStart:function(){h.reset(),b.lineStart=v,b.lineEnd=p},polygonEnd:function(){var t=+h;d.add(t<0?f.w+t:t),this.lineStart=this.lineEnd=this.point=s.a},sphere:function(){d.add(f.w)}};function v(){b.point=g}function p(){y(r,i)}function g(t,n){b.point=y,r=t,i=n,t*=f.r,n*=f.r,u=t,a=Object(f.g)(n=n/2+f.q),c=Object(f.t)(n)}function y(t,n){t*=f.r,n=(n*=f.r)/2+f.q;var e=t-u,r=e>=0?1:-1,i=r*e,o=Object(f.g)(n),s=Object(f.t)(n),l=c*s,d=a*o+l*Object(f.g)(i),b=l*r*Object(f.t)(i);h.add(Object(f.e)(b,d)),u=t,a=o,c=s}n.c=function(t){return d.reset(),Object(l.a)(t,b),2*d}},function(t,n,e){"use strict";n.a=c;var r=e(24),i=e(328),u=e(0),a=e(39);function c(t,n,e,i,a,c){if(e){var f=Object(u.g)(n),s=Object(u.t)(n),l=i*e;null==a?(a=n+i*u.w,c=n-l/2):(a=o(f,a),c=o(f,c),(i>0?ac)&&(a+=i*u.w));for(var h,d=a;i>0?d>c:d0?i.o:-i.o,f=Object(i.a)(a-e);Object(i.a)(f-i.o)0?i.l:-i.l),t.point(u,r),t.lineEnd(),t.lineStart(),t.point(o,r),t.point(a,r),n=0):u!==o&&f>=i.o&&(Object(i.a)(e-u)i.i?Object(i.d)((Object(i.t)(n)*(a=Object(i.g)(r))*Object(i.t)(e)-Object(i.t)(r)*(u=Object(i.g)(n))*Object(i.t)(t))/(u*a*c)):(n+r)/2}(e,r,a,c),t.point(u,r),t.lineEnd(),t.lineStart(),t.point(o,r),n=0),t.point(e=a,r=c),u=o},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}},function(t,n,e,r){var u;if(null==t)u=e*i.l,r.point(-i.o,u),r.point(0,u),r.point(i.o,u),r.point(i.o,0),r.point(i.o,-u),r.point(0,-u),r.point(-i.o,-u),r.point(-i.o,0),r.point(-i.o,u);else if(Object(i.a)(t[0]-n[0])>i.i){var a=t[0]1}function f(t,n){return((t=t.x)[0]<0?t[1]-u.l-u.i:u.l-t[1])-((n=n.x)[0]<0?n[1]-u.l-u.i:u.l-n[1])}n.a=function(t,n,e,u){return function(s){var l,h,d,b=n(s),v=Object(r.a)(),p=n(v),g=!1,y={point:_,lineStart:O,lineEnd:j,polygonStart:function(){y.point=x,y.lineStart=w,y.lineEnd=M,h=[],l=[]},polygonEnd:function(){y.point=_,y.lineStart=O,y.lineEnd=j,h=Object(c.n)(h);var t=Object(a.a)(l,u);h.length?(g||(s.polygonStart(),g=!0),Object(i.a)(h,f,t,e,s)):t&&(g||(s.polygonStart(),g=!0),s.lineStart(),e(null,null,1,s),s.lineEnd()),g&&(s.polygonEnd(),g=!1),h=l=null},sphere:function(){s.polygonStart(),s.lineStart(),e(null,null,1,s),s.lineEnd(),s.polygonEnd()}};function _(n,e){t(n,e)&&s.point(n,e)}function m(t,n){b.point(t,n)}function O(){y.point=m,b.lineStart()}function j(){y.point=_,b.lineEnd()}function x(t,n){d.push([t,n]),p.point(t,n)}function w(){p.lineStart(),d=[]}function M(){x(d[0][0],d[0][1]),p.lineEnd();var t,n,e,r,i=p.clean(),u=v.result(),a=u.length;if(d.pop(),l.push(d),d=null,a)if(1&i){if((n=(e=u[0]).length-1)>0){for(g||(s.polygonStart(),g=!0),s.lineStart(),t=0;t1&&2&i&&u.push(u.pop().concat(u.shift())),h.push(u.filter(o))}return y}}},function(t,n,e){"use strict";var r=e(11);n.a=function(){var t,n=[];return{point:function(n,e){t.push([n,e])},lineStart:function(){n.push(t=[])},lineEnd:r.a,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}},function(t,n,e){"use strict";var r=e(134);function i(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function u(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r=0;--o)c.point((d=h[o])[0],d[1]);else a(v.x,v.p.x,-1,c);v=v.p}h=(v=v.o).z,p=!p}while(!v.v);c.lineEnd()}}}},function(t,n,e){"use strict";var r=e(0);n.a=function(t,n){return Object(r.a)(t[0]-n[0])=0?1:-1,T=k*M,C=T>u.o,S=g*x;if(a.add(Object(u.e)(S*k*Object(u.t)(T),y*w+S*Object(u.g)(T))),o+=C?M+k*u.w:M,C^v>=e^O>=e){var A=Object(i.c)(Object(i.a)(b),Object(i.a)(m));Object(i.e)(A);var N=Object(i.c)(c,A);Object(i.e)(N);var E=(C^M>=0?-1:1)*Object(u.c)(N[2]);(r>E||r===E&&(A[0]||A[1]))&&(f+=C^M>=0?1:-1)}}return(o<-u.i||o0,f=Object(u.a)(n)>u.i;function s(t,e){return Object(u.g)(t)*Object(u.g)(e)>n}function l(t,e,i){var a=Object(r.a)(t),c=Object(r.a)(e),o=[1,0,0],f=Object(r.c)(a,c),s=Object(r.d)(f,f),l=f[0],h=s-l*l;if(!h)return!i&&t;var d=n*s/h,b=-n*l/h,v=Object(r.c)(o,f),p=Object(r.f)(o,d),g=Object(r.f)(f,b);Object(r.b)(p,g);var y=v,_=Object(r.d)(p,y),m=Object(r.d)(y,y),O=_*_-m*(Object(r.d)(p,p)-1);if(!(O<0)){var j=Object(u.u)(O),x=Object(r.f)(y,(-_-j)/m);if(Object(r.b)(x,p),x=Object(r.g)(x),!i)return x;var w,M=t[0],k=e[0],T=t[1],C=e[1];k0^x[1]<(Object(u.a)(x[0]-M)u.o^(M<=x[0]&&x[0]<=k)){var N=Object(r.f)(y,(-_+j)/m);return Object(r.b)(N,p),[x,Object(r.g)(N)]}}}function h(n,e){var r=o?t:u.o-t,i=0;return n<-r?i|=1:n>r&&(i|=2),e<-r?i|=4:e>r&&(i|=8),i}return Object(c.a)(s,function(t){var n,e,r,i,c;return{lineStart:function(){i=r=!1,c=1},point:function(d,b){var v,p=[d,b],g=s(d,b),y=o?g?0:h(d,b):g?h(d+(d<0?u.o:-u.o),b):0;if(!n&&(i=r=g)&&t.lineStart(),g!==r&&(!(v=l(n,p))||Object(a.a)(n,v)||Object(a.a)(p,v))&&(p[0]+=u.i,p[1]+=u.i,g=s(p[0],p[1])),g!==r)c=0,g?(t.lineStart(),v=l(p,n),t.point(v[0],v[1])):(v=l(n,p),t.point(v[0],v[1]),t.lineEnd()),n=v;else if(f&&n&&o^g){var _;y&e||!(_=l(p,n,!0))||(c=0,o?(t.lineStart(),t.point(_[0][0],_[0][1]),t.point(_[1][0],_[1][1]),t.lineEnd()):(t.point(_[1][0],_[1][1]),t.lineEnd(),t.lineStart(),t.point(_[0][0],_[0][1])))}!g||n&&Object(a.a)(n,p)||t.point(p[0],p[1]),n=p,r=g,e=y},lineEnd:function(){r&&t.lineEnd(),n=null},clean:function(){return c|(i&&r)<<1}}},function(n,r,u,a){Object(i.a)(a,t,e,u,n,r)},o?[0,-t]:[-u.o,t-u.o])}},function(t,n,e){"use strict";var r=e(138),i=[null,null],u={type:"LineString",coordinates:i};n.a=function(t,n){return i[0]=t,i[1]=n,Object(r.a)(u)}},function(t,n,e){"use strict";var r,i,u,a=e(19),c=e(0),o=e(11),f=e(14),s=Object(a.a)(),l={sphere:o.a,point:o.a,lineStart:function(){l.point=d,l.lineEnd=h},lineEnd:o.a,polygonStart:o.a,polygonEnd:o.a};function h(){l.point=l.lineEnd=o.a}function d(t,n){t*=c.r,n*=c.r,r=t,i=Object(c.t)(n),u=Object(c.g)(n),l.point=b}function b(t,n){t*=c.r,n*=c.r;var e=Object(c.t)(n),a=Object(c.g)(n),o=Object(c.a)(t-r),f=Object(c.g)(o),l=a*Object(c.t)(o),h=u*e-i*a*f,d=i*e+u*a*f;s.add(Object(c.e)(Object(c.u)(l*l+h*h),d)),r=t,i=e,u=a}n.a=function(t){return s.reset(),Object(f.a)(t,l),+s}},function(t,n,e){"use strict";var r=e(11),i=1/0,u=i,a=-i,c=a,o={point:function(t,n){ta&&(a=t);nc&&(c=n)},lineStart:r.a,lineEnd:r.a,polygonStart:r.a,polygonEnd:r.a,result:function(){var t=[[i,u],[a,c]];return a=c=-(u=i=1/0),t}};n.a=o},function(t,n,e){"use strict";var r=e(73);n.a=function(){return Object(r.b)().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}},function(t,n,e){"use strict";n.b=i;var r=e(8);function i(t,n){return[t,n]}i.invert=i,n.a=function(){return Object(r.a)(i).scale(152.63)}},function(t,n,e){"use strict";n.b=o;var r=e(143);function i(t,n,e){var r=t.x,i=t.y,u=n.r+e.r,a=t.r+e.r,c=n.x-r,o=n.y-i,f=c*c+o*o;if(f){var s=.5+((a*=a)-(u*=u))/(2*f),l=Math.sqrt(Math.max(0,2*u*(a+f)-(a-=f)*a-u*u))/(2*f);e.x=r+s*c+l*o,e.y=i+s*o-l*c}else e.x=r+a,e.y=i}function u(t,n){var e=n.x-t.x,r=n.y-t.y,i=t.r+n.r;return i*i-1e-6>e*e+r*r}function a(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,u=(n.y*e.r+e.y*n.r)/r;return i*i+u*u}function c(t){this._=t,this.next=null,this.previous=null}function o(t){if(!(f=t.length))return 0;var n,e,o,f,s,l,h,d,b,v,p;if((n=t[0]).x=0,n.y=0,!(f>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(f>2))return n.r+e.r;i(e,n,o=t[2]),n=new c(n),e=new c(e),o=new c(o),n.next=o.previous=e,e.next=n.previous=o,o.next=e.previous=n;t:for(h=3;h0&&e*e>r*r+i*i}function c(t,n){for(var e=0;e1);return t+e*u*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(r.a)},function(t,n,e){"use strict";var r=e(20);n.a=function t(n){function e(t){return function(){for(var e=0,r=0;r=12)]},Q:vt,s:pt,S:H,u:B,U:Y,V:V,w:X,W:W,x:null,X:null,y:G,Y:Z,Z:Q,"%":bt},St={a:function(t){return l[t.getUTCDay()]},A:function(t){return s[t.getUTCDay()]},b:function(t){return gt[t.getUTCMonth()]},B:function(t){return h[t.getUTCMonth()]},c:null,d:$,e:$,f:et,H:J,I:K,j:tt,L:nt,m:rt,M:it,p:function(t){return f[+(t.getUTCHours()>=12)]},Q:vt,s:pt,S:ut,u:at,U:ct,V:ot,w:ft,W:st,x:null,X:null,y:lt,Y:ht,Z:dt,"%":bt},At={a:function(t,n,e){var r=jt.exec(n.slice(e));return r?(t.w=xt[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=mt.exec(n.slice(e));return r?(t.w=Ot[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=kt.exec(n.slice(e));return r?(t.m=Tt[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=wt.exec(n.slice(e));return r?(t.m=Mt[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return zt(t,n,e,r)},d:w,e:w,f:A,H:k,I:k,j:M,L:S,m:x,M:T,p:function(t,n,e){var r=yt.exec(n.slice(e));return r?(t.p=_t[r[0].toLowerCase()],e+r[0].length):-1},Q:E,s:z,S:C,u:p,U:g,V:y,w:v,W:_,x:function(t,n,r){return zt(t,e,n,r)},X:function(t,n,e){return zt(t,o,n,e)},y:O,Y:m,Z:j,"%":N};function Nt(t,n){return function(e){var r,i,u,a=[],o=-1,f=0,s=t.length;for(e instanceof Date||(e=new Date(+e));++o53)return null;"w"in o||(o.w=1),"Z"in o?(i=u(a(o.y)),c=i.getUTCDay(),i=c>4||0===c?r.P.ceil(i):Object(r.P)(i),i=r.F.offset(i,7*(o.V-1)),o.y=i.getUTCFullYear(),o.m=i.getUTCMonth(),o.d=i.getUTCDate()+(o.w+6)%7):(i=n(a(o.y)),c=i.getDay(),i=c>4||0===c?r.l.ceil(i):Object(r.l)(i),i=r.a.offset(i,7*(o.V-1)),o.y=i.getFullYear(),o.m=i.getMonth(),o.d=i.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),c="Z"in o?u(a(o.y)).getUTCDay():n(a(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(c+5)%7:o.w+7*o.U-(c+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,u(o)):n(o)}}function zt(t,n,e,r){for(var i,u,a=0,o=n.length,f=e.length;a=f)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(u=At[i in c?n.charAt(a++):i])||(r=u(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return Ct.x=Nt(e,Ct),Ct.X=Nt(o,Ct),Ct.c=Nt(n,Ct),St.x=Nt(e,St),St.X=Nt(o,St),St.c=Nt(n,St),{format:function(t){var n=Nt(t+="",Ct);return n.toString=function(){return t},n},parse:function(t){var n=Et(t+="",i);return n.toString=function(){return t},n},utcFormat:function(t){var n=Nt(t+="",St);return n.toString=function(){return t},n},utcParse:function(t){var n=Et(t,u);return n.toString=function(){return t},n}}};var r=e(45);function i(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function u(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function a(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}var c={"-":"",_:" ",0:"0"},o=/^\s*\d+/,f=/^%/,s=/[\\^$*+?|[\]().{}]/g;function l(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",u=i.length;return r+(u68?1900:2e3),e+r[0].length):-1}function j(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function x(t,n,e){var r=o.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function w(t,n,e){var r=o.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function M(t,n,e){var r=o.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function k(t,n,e){var r=o.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function T(t,n,e){var r=o.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function C(t,n,e){var r=o.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function S(t,n,e){var r=o.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function A(t,n,e){var r=o.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function N(t,n,e){var r=f.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function E(t,n,e){var r=o.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function z(t,n,e){var r=o.exec(n.slice(e));return r?(t.Q=1e3*+r[0],e+r[0].length):-1}function P(t,n){return l(t.getDate(),n,2)}function q(t,n){return l(t.getHours(),n,2)}function R(t,n){return l(t.getHours()%12||12,n,2)}function L(t,n){return l(1+r.a.count(Object(r.D)(t),t),n,3)}function D(t,n){return l(t.getMilliseconds(),n,3)}function U(t,n){return D(t,n)+"000"}function F(t,n){return l(t.getMonth()+1,n,2)}function I(t,n){return l(t.getMinutes(),n,2)}function H(t,n){return l(t.getSeconds(),n,2)}function B(t){var n=t.getDay();return 0===n?7:n}function Y(t,n){return l(r.t.count(Object(r.D)(t),t),n,2)}function V(t,n){var e=t.getDay();return t=e>=4||0===e?Object(r.v)(t):r.v.ceil(t),l(r.v.count(Object(r.D)(t),t)+(4===Object(r.D)(t).getDay()),n,2)}function X(t){return t.getDay()}function W(t,n){return l(r.l.count(Object(r.D)(t),t),n,2)}function G(t,n){return l(t.getFullYear()%100,n,2)}function Z(t,n){return l(t.getFullYear()%1e4,n,4)}function Q(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+l(n/60|0,"0",2)+l(n%60,"0",2)}function $(t,n){return l(t.getUTCDate(),n,2)}function J(t,n){return l(t.getUTCHours(),n,2)}function K(t,n){return l(t.getUTCHours()%12||12,n,2)}function tt(t,n){return l(1+r.F.count(Object(r._7)(t),t),n,3)}function nt(t,n){return l(t.getUTCMilliseconds(),n,3)}function et(t,n){return nt(t,n)+"000"}function rt(t,n){return l(t.getUTCMonth()+1,n,2)}function it(t,n){return l(t.getUTCMinutes(),n,2)}function ut(t,n){return l(t.getUTCSeconds(),n,2)}function at(t){var n=t.getUTCDay();return 0===n?7:n}function ct(t,n){return l(r.X.count(Object(r._7)(t),t),n,2)}function ot(t,n){var e=t.getUTCDay();return t=e>=4||0===e?Object(r.Z)(t):r.Z.ceil(t),l(r.Z.count(Object(r._7)(t),t)+(4===Object(r._7)(t).getUTCDay()),n,2)}function ft(t){return t.getUTCDay()}function st(t,n){return l(r.P.count(Object(r._7)(t),t),n,2)}function lt(t,n){return l(t.getUTCFullYear()%100,n,2)}function ht(t,n){return l(t.getUTCFullYear()%1e4,n,4)}function dt(){return"+0000"}function bt(){return"%"}function vt(t){return+t}function pt(t){return Math.floor(+t/1e3)}},function(t,n,e){"use strict";e.d(n,"b",function(){return i});var r=e(83),i="%Y-%m-%dT%H:%M:%S.%LZ";var u=Date.prototype.toISOString?function(t){return t.toISOString()}:Object(r.d)(i);n.a=u},function(t,n,e){"use strict";var r=e(13),i=e(16),u=e(46),a=e(84),c=e(85);n.a=function(){var t=c.a,n=null,e=Object(i.a)(0),o=c.b,f=Object(i.a)(!0),s=null,l=u.a,h=null;function d(i){var u,a,c,d,b,v=i.length,p=!1,g=new Array(v),y=new Array(v);for(null==s&&(h=l(b=Object(r.a)())),u=0;u<=v;++u){if(!(u=a;--c)h.point(g[c],y[c]);h.lineEnd(),h.areaEnd()}p&&(g[u]=+t(d,u,i),y[u]=+e(d,u,i),h.point(n?+n(d,u,i):g[u],o?+o(d,u,i):y[u]))}if(b)return h=null,b+""||null}function b(){return Object(a.a)().defined(f).curve(l).context(s)}return d.x=function(e){return arguments.length?(t="function"==typeof e?e:Object(i.a)(+e),n=null,d):t},d.x0=function(n){return arguments.length?(t="function"==typeof n?n:Object(i.a)(+n),d):t},d.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Object(i.a)(+t),d):n},d.y=function(t){return arguments.length?(e="function"==typeof t?t:Object(i.a)(+t),o=null,d):e},d.y0=function(t){return arguments.length?(e="function"==typeof t?t:Object(i.a)(+t),d):e},d.y1=function(t){return arguments.length?(o=null==t?null:"function"==typeof t?t:Object(i.a)(+t),d):o},d.lineX0=d.lineY0=function(){return b().x(t).y(e)},d.lineY1=function(){return b().x(t).y(o)},d.lineX1=function(){return b().x(n).y(e)},d.defined=function(t){return arguments.length?(f="function"==typeof t?t:Object(i.a)(!!t),d):f},d.curve=function(t){return arguments.length?(l=t,null!=s&&(h=l(s)),d):l},d.context=function(t){return arguments.length?(null==t?s=h=null:h=l(s=t),d):s},d}},function(t,n,e){"use strict";e.d(n,"a",function(){return r}),n.b=u;var r=u(e(46).a);function i(t){this._curve=t}function u(t){function n(n){return new i(t(n))}return n._curve=t,n}i.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}}},function(t,n,e){"use strict";n.b=u;var r=e(156),i=e(84);function u(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(Object(r.b)(t)):n()._curve},t}n.a=function(){return u(Object(i.a)().curve(r.a))}},function(t,n,e){"use strict";n.a=function(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}},function(t,n,e){"use strict";e.d(n,"a",function(){return r});var r=Array.prototype.slice},function(t,n,e){"use strict";var r=e(29);n.a={draw:function(t,n){var e=Math.sqrt(n/r.j);t.moveTo(e,0),t.arc(0,0,e,0,r.m)}}},function(t,n,e){"use strict";n.a={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}}},function(t,n,e){"use strict";var r=Math.sqrt(1/3),i=2*r;n.a={draw:function(t,n){var e=Math.sqrt(n/i),u=e*r;t.moveTo(0,-e),t.lineTo(u,0),t.lineTo(0,e),t.lineTo(-u,0),t.closePath()}}},function(t,n,e){"use strict";var r=e(29),i=Math.sin(r.j/10)/Math.sin(7*r.j/10),u=Math.sin(r.m/10)*i,a=-Math.cos(r.m/10)*i;n.a={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),i=u*e,c=a*e;t.moveTo(0,-e),t.lineTo(i,c);for(var o=1;o<5;++o){var f=r.m*o/5,s=Math.cos(f),l=Math.sin(f);t.lineTo(l*e,-s*e),t.lineTo(s*i-l*c,l*i+s*c)}t.closePath()}}},function(t,n,e){"use strict";n.a={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}}},function(t,n,e){"use strict";var r=Math.sqrt(3);n.a={draw:function(t,n){var e=-Math.sqrt(n/(3*r));t.moveTo(0,2*e),t.lineTo(-r*e,-e),t.lineTo(r*e,-e),t.closePath()}}},function(t,n,e){"use strict";var r=-.5,i=Math.sqrt(3)/2,u=1/Math.sqrt(12),a=3*(u/2+1);n.a={draw:function(t,n){var e=Math.sqrt(n/a),c=e/2,o=e*u,f=c,s=e*u+e,l=-f,h=s;t.moveTo(c,o),t.lineTo(f,s),t.lineTo(l,h),t.lineTo(r*c-i*o,i*c+r*o),t.lineTo(r*f-i*s,i*f+r*s),t.lineTo(r*l-i*h,i*l+r*h),t.lineTo(r*c+i*o,r*o-i*c),t.lineTo(r*f+i*s,r*s-i*f),t.lineTo(r*l+i*h,r*h-i*l),t.closePath()}}},function(t,n,e){"use strict";n.a=u;var r=e(47),i=e(49);function u(t,n){this._context=t,this._k=(1-n)/6}u.prototype={areaStart:r.a,areaEnd:r.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Object(i.c)(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},n.b=function t(n){function e(t){return new u(t,n)}return e.tension=function(n){return t(+n)},e}(0)},function(t,n,e){"use strict";n.a=i;var r=e(49);function i(t,n){this._context=t,this._k=(1-n)/6}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(r.c)(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},n.b=function t(n){function e(t){return new i(t,n)}return e.tension=function(n){return t(+n)},e}(0)},function(t,n,e){"use strict";n.c=function(t){return i.b[t.index]={site:t,halfedges:[]}},n.a=a,n.d=function(){for(var t,n,e,r,a=0,c=i.b.length;ai.f||Math.abs(_-p)>i.f)&&(h.splice(l,0,i.e.push(Object(r.b)(s,g,Math.abs(y-t)i.f?[t,Math.abs(v-t)i.f?[Math.abs(p-u)i.f?[e,Math.abs(v-e)i.f?[Math.abs(p-n)=-u.g)return;var g=h*h+d*d,y=b*b+v*v,_=(v*g-d*y)/p,m=(h*y-b*g)/p,O=a.pop()||new function(){Object(i.a)(this),this.x=this.y=this.arc=this.site=this.cy=null};O.arc=t,O.site=o,O.x=_+s,O.y=(O.cy=m+l)+Math.sqrt(_*_+m*m),t.circle=O;var j=null,x=u.c._;for(;x;)if(O.yt?1:n>=t?0:NaN}},function(t,n,e){"use strict";var r=e(96),i=e(90),u=e(178),a=e(95),c=e(179),o=e(97),f=e(98),s=e(99);n.a=function(){var t=c.a,n=a.a,e=s.a;function l(r){var u,a,c=r.length,s=new Array(c);for(u=0;ud;)b.pop(),--v;var p,g=new Array(v+1);for(u=0;u<=v;++u)(p=g[u]=[]).x0=u>0?b[u-1]:h,p.x1=u=e)for(r=e;++ur&&(r=e)}else for(;++u=e)for(r=e;++ur&&(r=e);return r}},function(t,n,e){"use strict";var r=e(22);n.a=function(t,n){var e,i=t.length,u=i,a=-1,c=0;if(null==n)for(;++a=0;)for(n=(r=t[i]).length;--n>=0;)e[--a]=r[n];return e}},function(t,n,e){"use strict";n.a=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r}},function(t,n,e){"use strict";var r=e(17);n.a=function(t,n){if(e=t.length){var e,i,u=0,a=0,c=t[a];for(null==n&&(n=r.a);++u0&&(e=r-C),U<0?w=M-S:U>0&&(u=o-S),L=h,J.attr("cursor",y.selection),nt());break;default:return}Object(s.a)()},!0).on("keyup.brush",function(){switch(a.e.keyCode){case 16:W&&(z=P=W=!1,nt());break;case 18:L===b&&(D<0?f=x:D>0&&(e=r),U<0?w=M:U>0&&(u=o),L=d,nt());break;case 32:L===h&&(a.e.altKey?(D&&(f=x-C*D,e=r+C*D),U&&(w=M-S*U,u=o+S*U),L=b):(D<0?f=x:D>0&&(e=r),U<0?w=M:U>0&&(u=o),L=d),J.attr("cursor",y[R]),nt());break;default:return}Object(s.a)()},!0).on("mousemove.brush",tt,!0).on("mouseup.brush",et,!0);Object(i.b)(a.e.view)}Object(s.b)(),Object(c.b)(q),N.call(q),Q.start()}function tt(){var t=Object(a.h)(q);!W||z||P||(Math.abs(t[0]-Z[0])>Math.abs(t[1]-Z[1])?P=!0:z=!0),Z=t,A=!0,Object(s.a)(),nt()}function nt(){var t;switch(C=Z[0]-G[0],S=Z[1]-G[1],L){case h:case l:D&&(C=Math.max(B-e,Math.min(V-f,C)),r=e+C,x=f+C),U&&(S=Math.max(Y-u,Math.min(X-w,S)),o=u+S,M=w+S);break;case d:D<0?(C=Math.max(B-e,Math.min(V-e,C)),r=e+C,x=f):D>0&&(C=Math.max(B-f,Math.min(V-f,C)),r=e,x=f+C),U<0?(S=Math.max(Y-u,Math.min(X-u,S)),o=u+S,M=w):U>0&&(S=Math.max(Y-w,Math.min(X-w,S)),o=u,M=w+S);break;case b:D&&(r=Math.max(B,Math.min(V,e-C*D)),x=Math.max(B,Math.min(V,f+C*D))),U&&(o=Math.max(Y,Math.min(X,u-S*U)),M=Math.max(Y,Math.min(X,w+S*U)))}x=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})),o=-1,f=u.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o0)for(var e,r,i=new Array(e),u=0;uO}y.mouse("drag")}function M(){Object(i.k)(i.e.view).on("mousemove.drag mouseup.drag",null),Object(u.b)(i.e.view,e),Object(a.a)(),y.mouse("end")}function k(){if(b.apply(this,arguments)){var t,n,e=i.e.changedTouches,r=v.apply(this,arguments),u=e.length;for(t=0;t=w&&(w=x+1);!(j=m[w])&&++w=0;)(r=i[u])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this}},function(t,n,e){"use strict";var r=e(4);function i(t,n){return tn?1:t>=n?0:NaN}n.a=function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=i);for(var e=this._groups,u=e.length,a=new Array(u),c=0;c1?this.each((null==n?function(t){return function(){delete this[t]}}:"function"==typeof n?function(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}:function(t,n){return function(){this[t]=n}})(t,n)):this.node()[t]}},function(t,n,e){"use strict";function r(t){return t.trim().split(/^|\s+/)}function i(t){return t.classList||new u(t)}function u(t){this._node=t,this._names=r(t.getAttribute("class")||"")}function a(t,n){for(var e=i(t),r=-1,u=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}},n.a=function(t,n){var e=r(t+"");if(arguments.length<2){for(var u=i(this.node()),o=-1,f=e.length;++oh?Math.pow(t,1/3):t/l+f}function g(t){return t>s?t*t*t:l*(t-f)}function y(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function _(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function m(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof O)return new O(t.h,t.c,t.l,t.opacity);t instanceof v||(t=d(t));var n=Math.atan2(t.b,t.a)*u.b;return new O(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new O(t,n,e,null==r?1:r)}function O(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}Object(r.a)(v,b,Object(r.b)(i.a,{brighter:function(t){return new v(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new v(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return t=c*g(t),n=a*g(n),e=o*g(e),new i.b(y(3.2404542*n-1.5371385*t-.4985314*e),y(-.969266*n+1.8760108*t+.041556*e),y(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),Object(r.a)(O,m,Object(r.b)(i.a,{brighter:function(t){return new O(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new O(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return d(this).rgb()}}))},function(t,n,e){"use strict";n.a=b;var r=e(60),i=e(59),u=e(110),a=-.14861,c=1.78277,o=-.29227,f=-.90649,s=1.97294,l=s*f,h=s*c,d=c*o-f*a;function b(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof v)return new v(t.h,t.s,t.l,t.opacity);t instanceof i.b||(t=Object(i.h)(t));var n=t.r/255,e=t.g/255,r=t.b/255,a=(d*r+l*n-h*e)/(d+l-h),c=r-a,b=(s*(e-a)-o*c)/f,p=Math.sqrt(b*b+c*c)/(s*a*(1-a)),g=p?Math.atan2(b,c)*u.b-120:NaN;return new v(g<0?g+360:g,p,a,t.opacity)}(t):new v(t,n,e,null==r?1:r)}function v(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}Object(r.a)(v,b,Object(r.b)(i.a,{brighter:function(t){return t=null==t?i.c:Math.pow(i.c,t),new v(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?i.d:Math.pow(i.d,t),new v(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*u.a,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),l=Math.sin(t);return new i.b(255*(n+e*(a*r+c*l)),255*(n+e*(o*r+f*l)),255*(n+e*(s*r)),this.opacity)}}))},function(t,n,e){"use strict";n.a=function(t,n){return n-=t=+t,function(e){return Math.round(t+n*e)}}},function(t,n,e){"use strict";e.d(n,"a",function(){return a}),e.d(n,"b",function(){return c});var r=e(35),i=e(239);function u(t,n,e,i){function u(t){return t.length?t.pop()+" ":""}return function(a,c){var o=[],f=[];return a=t(a),c=t(c),function(t,i,u,a,c,o){if(t!==u||i!==a){var f=c.push("translate(",null,n,null,e);o.push({i:f-4,x:Object(r.a)(t,u)},{i:f-2,x:Object(r.a)(i,a)})}else(u||a)&&c.push("translate("+u+n+a+e)}(a.translateX,a.translateY,c.translateX,c.translateY,o,f),function(t,n,e,a){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),a.push({i:e.push(u(e)+"rotate(",null,i)-2,x:Object(r.a)(t,n)})):n&&e.push(u(e)+"rotate("+n+i)}(a.rotate,c.rotate,o,f),function(t,n,e,a){t!==n?a.push({i:e.push(u(e)+"skewX(",null,i)-2,x:Object(r.a)(t,n)}):n&&e.push(u(e)+"skewX("+n+i)}(a.skewX,c.skewX,o,f),function(t,n,e,i,a,c){if(t!==e||n!==i){var o=a.push(u(a)+"scale(",null,",",null,")");c.push({i:o-4,x:Object(r.a)(t,e)},{i:o-2,x:Object(r.a)(n,i)})}else 1===e&&1===i||a.push(u(a)+"scale("+e+","+i+")")}(a.scaleX,a.scaleY,c.scaleX,c.scaleY,o,f),a=c=null,function(t){for(var n,e=-1,r=f.length;++e=0&&(t=t.slice(0,n)),!t||"start"===t})}(n)?r.g:r.h;return function(){var r=a(this,t),c=r.on;c!==i&&(u=(i=c).copy()).on(n,e),r.on=u}}(e,t,n))}},function(t,n,e){"use strict";n.a=function(){return this.on("end.remove",(t=this._id,function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}));var t}},function(t,n,e){"use strict";var r=e(1),i=e(10),u=e(6);n.a=function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Object(r.n)(t));for(var a=this._groups,c=a.length,o=new Array(c),f=0;fi.c&&e.name===n)return new r.a([[t]],u,n,+a);return null}},function(t,n,e){"use strict";n.a=function(t){return function(){return t}}},function(t,n,e){"use strict";n.a=function(t,n,e){this.target=t,this.type=n,this.selection=e}},function(t,n,e){"use strict";n.b=function(){r.e.stopImmediatePropagation()};var r=e(1);n.a=function(){r.e.preventDefault(),r.e.stopImmediatePropagation()}},function(t,n,e){"use strict";var r=e(283);e.d(n,"a",function(){return r.a});var i=e(284);e.d(n,"b",function(){return i.a})},function(t,n,e){"use strict";var r=e(3),i=e(121);n.a=function(){var t=0,n=null,e=null,u=null;function a(a){var c,o,f,s,l,h,d=a.length,b=[],v=Object(r.s)(d),p=[],g=[],y=g.groups=new Array(d),_=new Array(d*d);for(c=0,l=-1;++l1e-6)if(Math.abs(l*o-f*s)>1e-6&&u){var d=e-a,b=i-c,v=o*o+f*f,p=d*d+b*b,g=Math.sqrt(v),y=Math.sqrt(h),_=u*Math.tan((r-Math.acos((v+h-p)/(2*g*y)))/2),m=_/y,O=_/g;Math.abs(m-1)>1e-6&&(this._+="L"+(t+m*s)+","+(n+m*l)),this._+="A"+u+","+u+",0,0,"+ +(l*d>s*b)+","+(this._x1=t+O*o)+","+(this._y1=n+O*f)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,a,c,o){t=+t,n=+n;var f=(e=+e)*Math.cos(a),s=e*Math.sin(a),l=t+f,h=n+s,d=1^o,b=o?a-c:c-a;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+h:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+l+","+h),e&&(b<0&&(b=b%i+i),b>u?this._+="A"+e+","+e+",0,1,"+d+","+(t-f)+","+(n-s)+"A"+e+","+e+",0,1,"+d+","+(this._x1=l)+","+(this._y1=h):b>1e-6&&(this._+="A"+e+","+e+",0,"+ +(b>=r)+","+d+","+(this._x1=t+e*Math.cos(c))+","+(this._y1=n+e*Math.sin(c))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}},n.a=c},function(t,n,e){"use strict";var r=e(64);function i(){return{}}function u(t,n,e){t[n]=e}function a(){return Object(r.a)()}function c(t,n,e){t.set(n,e)}n.a=function(){var t,n,e,o=[],f=[];function s(e,i,u,a){if(i>=o.length)return null!=t&&e.sort(t),null!=n?n(e):e;for(var c,f,l,h=-1,d=e.length,b=o[i++],v=Object(r.a)(),p=u();++ho.length)return e;var i,u=f[r-1];return null!=n&&r>=o.length?i=e.entries():(i=[],e.each(function(n,e){i.push({key:e,values:t(n,r)})})),null!=u?i.sort(function(t,n){return u(t.key,n.key)}):i}(s(t,0,a,c),0)},key:function(t){return o.push(t),e},sortKeys:function(t){return f[o.length-1]=t,e},sortValues:function(n){return t=n,e},rollup:function(t){return n=t,e}}}},function(t,n,e){"use strict";var r=e(64);function i(){}var u=r.a.prototype;function a(t,n){var e=new i;if(t instanceof i)t.each(function(t){e.add(t)});else if(t){var r=-1,u=t.length;if(null==n)for(;++rh+f||rd+f||us.index){var l=h-a.x-a.vx,p=d-a.y-a.vy,g=l*l+p*p;gt.r&&(t.r=t[n].r)}function h(){if(n){var r,i,u=n.length;for(e=new Array(u),r=0;r=(u=(v+g)/2))?v=u:g=u,(s=e>=(a=(p+y)/2))?p=a:y=a,i=d,!(d=d[l=s<<1|f]))return i[l]=b,t;if(c=+t._x.call(null,d.data),o=+t._y.call(null,d.data),n===c&&e===o)return b.next=d,i?i[l]=b:t._root=b,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(f=n>=(u=(v+g)/2))?v=u:g=u,(s=e>=(a=(p+y)/2))?p=a:y=a}while((l=s<<1|f)==(h=(o>=a)<<1|c>=u));return i[h]=d,i[l]=b,t}n.a=function(t){var n,e,i,u,a=t.length,c=new Array(a),o=new Array(a),f=1/0,s=1/0,l=-1/0,h=-1/0;for(e=0;el&&(l=i),uh&&(h=u));lt||t>i||r>n||n>u))return this;var a,c,o=i-e,f=this._root;switch(c=(n<(r+u)/2)<<1|t<(e+i)/2){case 0:do{(a=new Array(4))[c]=f,f=a}while(u=r+(o*=2),t>(i=e+o)||n>u);break;case 1:do{(a=new Array(4))[c]=f,f=a}while(u=r+(o*=2),(e=i-o)>t||n>u);break;case 2:do{(a=new Array(4))[c]=f,f=a}while(r=u-(o*=2),t>(i=e+o)||r>n);break;case 3:do{(a=new Array(4))[c]=f,f=a}while(r=u-(o*=2),(e=i-o)>t||r>n)}this._root&&this._root.length&&(this._root=f)}return this._x0=e,this._y0=r,this._x1=i,this._y1=u,this}},function(t,n,e){"use strict";n.a=function(){var t=[];return this.visit(function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)}),t}},function(t,n,e){"use strict";n.a=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]]}},function(t,n,e){"use strict";var r=e(69);n.a=function(t,n,e){var i,u,a,c,o,f,s,l=this._x0,h=this._y0,d=this._x1,b=this._y1,v=[],p=this._root;for(p&&v.push(new r.a(p,l,h,d,b)),null==e?e=1/0:(l=t-e,h=n-e,d=t+e,b=n+e,e*=e);f=v.pop();)if(!(!(p=f.node)||(u=f.x0)>d||(a=f.y0)>b||(c=f.x1)=y)<<1|t>=g)&&(f=v[v.length-1],v[v.length-1]=v[v.length-1-s],v[v.length-1-s]=f)}else{var _=t-+this._x.call(null,p.data),m=n-+this._y.call(null,p.data),O=_*_+m*m;if(O=(c=(b+p)/2))?b=c:p=c,(s=a>=(o=(v+g)/2))?v=o:g=o,n=d,!(d=d[l=s<<1|f]))return this;if(!d.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)}},function(t,n,e){"use strict";n.a=function(){return this._root}},function(t,n,e){"use strict";n.a=function(){var t=0;return this.visit(function(n){if(!n.length)do{++t}while(n=n.next)}),t}},function(t,n,e){"use strict";var r=e(69);n.a=function(t){var n,e,i,u,a,c,o=[],f=this._root;for(f&&o.push(new r.a(f,this._x0,this._y0,this._x1,this._y1));n=o.pop();)if(!t(f=n.node,i=n.x0,u=n.y0,a=n.x1,c=n.y1)&&f.length){var s=(i+a)/2,l=(u+c)/2;(e=f[3])&&o.push(new r.a(e,s,l,a,c)),(e=f[2])&&o.push(new r.a(e,i,l,s,c)),(e=f[1])&&o.push(new r.a(e,s,u,a,l)),(e=f[0])&&o.push(new r.a(e,i,u,s,l))}return this}},function(t,n,e){"use strict";var r=e(69);n.a=function(t){var n,e=[],i=[];for(this._root&&e.push(new r.a(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var u=n.node;if(u.length){var a,c=n.x0,o=n.y0,f=n.x1,s=n.y1,l=(c+f)/2,h=(o+s)/2;(a=u[0])&&e.push(new r.a(a,c,o,l,h)),(a=u[1])&&e.push(new r.a(a,l,o,f,h)),(a=u[2])&&e.push(new r.a(a,c,h,l,s)),(a=u[3])&&e.push(new r.a(a,l,h,f,s))}i.push(n)}for(;n=i.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this}},function(t,n,e){"use strict";n.b=function(t){return t[0]},n.a=function(t){return arguments.length?(this._x=t,this):this._x}},function(t,n,e){"use strict";n.b=function(t){return t[1]},n.a=function(t){return arguments.length?(this._y=t,this):this._y}},function(t,n,e){"use strict";var r=e(18),i=e(67),u=e(21);function a(t){return t.index}function c(t,n){var e=t.get(n);if(!e)throw new Error("missing: "+n);return e}n.a=function(t){var n,e,o,f,s,l=a,h=function(t){return 1/Math.min(f[t.source.index],f[t.target.index])},d=Object(r.a)(30),b=1;function v(r){for(var u=0,a=t.length;u=s)){(t.data!==n||t.next)&&(0===o&&(b+=(o=Object(i.a)())*o),0===h&&(b+=(h=Object(i.a)())*h),b0&&c>0&&(o+c+1>r&&(c=Math.max(1,r-o)),u.push(e.substring(i-=c,i+c)),!((o+=c+1)>r));)c=t[a=(a+1)%t.length];return u.reverse().join(n)}}},function(t,n,e){"use strict";n.a=function(t){return function(n){return n.replace(/[0-9]/g,function(n){return t[+n]})}}},function(t,n,e){"use strict";n.a=function(t,n){t:for(var e,r=(t=t.toPrecision(n)).length,i=1,u=-1;i0&&(u=0)}return u>0?t.slice(0,u)+t.slice(e+1):t}},function(t,n,e){"use strict";var r=e(71);n.a=function(t,n){var e=Object(r.a)(t,n);if(!e)return t+"";var i=e[0],u=e[1];return u<0?"0."+new Array(-u).join("0")+i:i.length>u+1?i.slice(0,u+1)+"."+i.slice(u+1):i+new Array(u-i.length+2).join("0")}},function(t,n,e){"use strict";n.a=function(t){return t}},function(t,n,e){"use strict";var r=e(38);n.a=function(t){return Math.max(0,-Object(r.a)(Math.abs(t)))}},function(t,n,e){"use strict";var r=e(38);n.a=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(n)/3)))-Object(r.a)(Math.abs(t)))}},function(t,n,e){"use strict";var r=e(38);n.a=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Object(r.a)(n)-Object(r.a)(t))+1}},function(t,n,e){"use strict";var r=e(127);e.d(n,"c",function(){return r.c});var i=e(326);e.d(n,"h",function(){return i.a});var u=e(327);e.d(n,"i",function(){return u.a});var a=e(128);e.d(n,"j",function(){return a.b});var c=e(130);e.d(n,"k",function(){return c.a});var o=e(136);e.d(n,"l",function(){return o.a});var f=e(329);e.d(n,"m",function(){return f.a});var s=e(40);e.d(n,"n",function(){return s.a});var l=e(331);e.d(n,"u",function(){return l.a});var h=e(137);e.d(n,"v",function(){return h.a});var d=e(332);e.d(n,"A",function(){return d.a}),e.d(n,"B",function(){return d.b});var b=e(333);e.d(n,"D",function(){return b.a});var v=e(138);e.d(n,"E",function(){return v.a});var p=e(334);e.d(n,"L",function(){return p.a});var g=e(140);e.d(n,"a",function(){return g.a});var y=e(342);e.d(n,"b",function(){return y.a});var _=e(343);e.d(n,"d",function(){return _.b}),e.d(n,"e",function(){return _.a});var m=e(344);e.d(n,"f",function(){return m.b}),e.d(n,"g",function(){return m.a});var O=e(345);e.d(n,"o",function(){return O.b}),e.d(n,"p",function(){return O.a});var j=e(73);e.d(n,"q",function(){return j.b}),e.d(n,"r",function(){return j.a});var x=e(346);e.d(n,"s",function(){return x.b}),e.d(n,"t",function(){return x.a});var w=e(141);e.d(n,"w",function(){return w.a}),e.d(n,"x",function(){return w.b});var M=e(347);e.d(n,"y",function(){return M.a}),e.d(n,"z",function(){return M.b});var k=e(348);e.d(n,"C",function(){return k.a});var T=e(8);e.d(n,"M",function(){return T.a}),e.d(n,"N",function(){return T.b});var C=e(76);e.d(n,"F",function(){return C.a}),e.d(n,"G",function(){return C.c});var S=e(349);e.d(n,"H",function(){return S.a}),e.d(n,"I",function(){return S.b});var A=e(350);e.d(n,"J",function(){return A.a}),e.d(n,"K",function(){return A.b});var N=e(351);e.d(n,"P",function(){return N.a}),e.d(n,"Q",function(){return N.b});var E=e(352);e.d(n,"T",function(){return E.a}),e.d(n,"U",function(){return E.b});var z=e(39);e.d(n,"O",function(){return z.a});var P=e(14);e.d(n,"R",function(){return P.a});var q=e(41);e.d(n,"S",function(){return q.a})},function(t,n,e){"use strict";var r,i,u,a,c,o,f,s,l,h,d=e(19),b=e(127),v=e(24),p=e(0),g=e(14),y=Object(d.a)(),_={point:m,lineStart:j,lineEnd:x,polygonStart:function(){_.point=w,_.lineStart=M,_.lineEnd=k,y.reset(),b.b.polygonStart()},polygonEnd:function(){b.b.polygonEnd(),_.point=m,_.lineStart=j,_.lineEnd=x,b.a<0?(r=-(u=180),i=-(a=90)):y>p.i?a=90:y<-p.i&&(i=-90),h[0]=r,h[1]=u}};function m(t,n){l.push(h=[r=t,u=t]),na&&(a=n)}function O(t,n){var e=Object(v.a)([t*p.r,n*p.r]);if(s){var o=Object(v.c)(s,e),f=[o[1],-o[0],0],d=Object(v.c)(f,o);Object(v.e)(d),d=Object(v.g)(d);var b,g=t-c,y=g>0?1:-1,_=d[0]*p.h*y,m=Object(p.a)(g)>180;m^(y*c<_&&_a&&(a=b):m^(y*c<(_=(_+360)%360-180)&&_a&&(a=n)),m?tT(r,u)&&(u=t):T(t,u)>T(r,u)&&(r=t):u>=r?(tu&&(u=t)):t>c?T(r,t)>T(r,u)&&(u=t):T(t,u)>T(r,u)&&(r=t)}else l.push(h=[r=t,u=t]);na&&(a=n),s=e,c=t}function j(){_.point=O}function x(){h[0]=r,h[1]=u,_.point=m,s=null}function w(t,n){if(s){var e=t-c;y.add(Object(p.a)(e)>180?e+(e>0?360:-360):e)}else o=t,f=n;b.b.point(t,n),O(t,n)}function M(){b.b.lineStart()}function k(){w(o,f),b.b.lineEnd(),Object(p.a)(y)>p.i&&(r=-(u=180)),h[0]=r,h[1]=u,s=null}function T(t,n){return(n-=t)<0?n+360:n}function C(t,n){return t[0]-n[0]}function S(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nT(c[0],c[1])&&(c[1]=o[1]),T(o[0],c[1])>T(c[0],c[1])&&(c[0]=o[0])):f.push(c=o);for(s=-1/0,n=0,c=f[e=f.length-1];n<=e;c=o,++n)o=f[n],(d=T(c[1],o[0]))>s&&(s=d,r=o[0],u=c[1])}return l=h=null,r===1/0||i===1/0?[[NaN,NaN],[NaN,NaN]]:[[r,i],[u,a]]}},function(t,n,e){"use strict";var r,i,u,a,c,o,f,s,l,h,d,b,v,p,g,y,_=e(0),m=e(11),O=e(14),j={sphere:m.a,point:x,lineStart:M,lineEnd:C,polygonStart:function(){j.lineStart=S,j.lineEnd=A},polygonEnd:function(){j.lineStart=M,j.lineEnd=C}};function x(t,n){t*=_.r,n*=_.r;var e=Object(_.g)(n);w(e*Object(_.g)(t),e*Object(_.t)(t),Object(_.t)(n))}function w(t,n,e){u+=(t-u)/++r,a+=(n-a)/r,c+=(e-c)/r}function M(){j.point=k}function k(t,n){t*=_.r,n*=_.r;var e=Object(_.g)(n);p=e*Object(_.g)(t),g=e*Object(_.t)(t),y=Object(_.t)(n),j.point=T,w(p,g,y)}function T(t,n){t*=_.r,n*=_.r;var e=Object(_.g)(n),r=e*Object(_.g)(t),u=e*Object(_.t)(t),a=Object(_.t)(n),c=Object(_.e)(Object(_.u)((c=g*a-y*u)*c+(c=y*r-p*a)*c+(c=p*u-g*r)*c),p*r+g*u+y*a);i+=c,o+=c*(p+(p=r)),f+=c*(g+(g=u)),s+=c*(y+(y=a)),w(p,g,y)}function C(){j.point=x}function S(){j.point=N}function A(){E(b,v),j.point=x}function N(t,n){b=t,v=n,t*=_.r,n*=_.r,j.point=E;var e=Object(_.g)(n);p=e*Object(_.g)(t),g=e*Object(_.t)(t),y=Object(_.t)(n),w(p,g,y)}function E(t,n){t*=_.r,n*=_.r;var e=Object(_.g)(n),r=e*Object(_.g)(t),u=e*Object(_.t)(t),a=Object(_.t)(n),c=g*a-y*u,b=y*r-p*a,v=p*u-g*r,m=Object(_.u)(c*c+b*b+v*v),O=Object(_.c)(m),j=m&&-O/m;l+=j*c,h+=j*b,d+=j*v,i+=O,o+=O*(p+(p=r)),f+=O*(g+(g=u)),s+=O*(y+(y=a)),w(p,g,y)}n.a=function(t){r=i=u=a=c=o=f=s=l=h=d=0,Object(O.a)(t,j);var n=l,e=h,b=d,v=n*n+e*e+b*b;return v<_.j&&(n=o,e=f,b=s,i<_.i&&(n=u,e=a,b=c),(v=n*n+e*e+b*b)<_.j)?[NaN,NaN]:[Object(_.e)(e,n)*_.h,Object(_.c)(b/Object(_.u)(v))*_.h]}},function(t,n,e){"use strict";n.a=function(t){return function(){return t}}},function(t,n,e){"use strict";var r=e(40);n.a=function(){var t,n,e,i=0,u=0,a=960,c=500;return e={stream:function(e){return t&&n===e?t:t=Object(r.a)(i,u,a,c)(n=e)},extent:function(r){return arguments.length?(i=+r[0][0],u=+r[0][1],a=+r[1][0],c=+r[1][1],t=n=null,e):[[i,u],[a,c]]}}}},function(t,n,e){"use strict";n.a=function(t,n,e,r,i,u){var a,c=t[0],o=t[1],f=0,s=1,l=n[0]-c,h=n[1]-o;if(a=e-c,l||!(a>0)){if(a/=l,l<0){if(a0){if(a>s)return;a>f&&(f=a)}if(a=i-c,l||!(a<0)){if(a/=l,l<0){if(a>s)return;a>f&&(f=a)}else if(l>0){if(a0)){if(a/=h,h<0){if(a0){if(a>s)return;a>f&&(f=a)}if(a=u-o,h||!(a<0)){if(a/=h,h<0){if(a>s)return;a>f&&(f=a)}else if(h>0){if(a0&&(t[0]=c+f*l,t[1]=o+f*h),s<1&&(n[0]=c+s*l,n[1]=o+s*h),!0}}}}}},function(t,n,e){"use strict";var r=e(135),i=e(137),u=e(0),a={Feature:function(t,n){return o(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++ri.i}).map(h)).concat(Object(r.s)(Object(i.f)(f/g)*g,o,g).filter(function(t){return Object(i.a)(t%_)>i.i}).map(d))}return O.lines=function(){return j().map(function(t){return{type:"LineString",coordinates:t}})},O.outline=function(){return{type:"Polygon",coordinates:[b(c).concat(v(s).slice(1),b(e).reverse().slice(1),v(l).reverse().slice(1))]}},O.extent=function(t){return arguments.length?O.extentMajor(t).extentMinor(t):O.extentMinor()},O.extentMajor=function(t){return arguments.length?(c=+t[0][0],e=+t[1][0],l=+t[0][1],s=+t[1][1],c>e&&(t=c,c=e,e=t),l>s&&(t=l,l=s,s=t),O.precision(m)):[[c,l],[e,s]]},O.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],f=+e[0][1],o=+e[1][1],n>t&&(e=n,n=t,t=e),f>o&&(e=f,f=o,o=e),O.precision(m)):[[n,f],[t,o]]},O.step=function(t){return arguments.length?O.stepMajor(t).stepMinor(t):O.stepMinor()},O.stepMajor=function(t){return arguments.length?(y=+t[0],_=+t[1],O):[y,_]},O.stepMinor=function(t){return arguments.length?(p=+t[0],g=+t[1],O):[p,g]},O.precision=function(r){return arguments.length?(m=+r,h=u(f,o,90),d=a(n,t,m),b=u(l,s,90),v=a(c,e,m),O):m},O.extentMajor([[-180,-90+i.i],[180,90-i.i]]).extentMinor([[-180,-80-i.i],[180,80+i.i]])}},function(t,n,e){"use strict";var r=e(0);n.a=function(t,n){var e=t[0]*r.r,i=t[1]*r.r,u=n[0]*r.r,a=n[1]*r.r,c=Object(r.g)(i),o=Object(r.t)(i),f=Object(r.g)(a),s=Object(r.t)(a),l=c*Object(r.g)(e),h=c*Object(r.t)(e),d=f*Object(r.g)(u),b=f*Object(r.t)(u),v=2*Object(r.c)(Object(r.u)(Object(r.m)(a-i)+c*f*Object(r.m)(u-e))),p=Object(r.t)(v),g=v?function(t){var n=Object(r.t)(t*=v)/p,e=Object(r.t)(v-t)/p,i=e*l+n*d,u=e*h+n*b,a=e*o+n*s;return[Object(r.e)(u,i)*r.h,Object(r.e)(a,Object(r.u)(i*i+u*u))*r.h]}:function(){return[e*r.h,i*r.h]};return g.distance=v,g}},function(t,n,e){"use strict";var r=e(72),i=e(14),u=e(335),a=e(139),c=e(336),o=e(337),f=e(338),s=e(339);n.a=function(t,n){var e,l,h=4.5;function d(t){return t&&("function"==typeof h&&l.pointRadius(+h.apply(this,arguments)),Object(i.a)(t,e(l))),l.result()}return d.area=function(t){return Object(i.a)(t,e(u.a)),u.a.result()},d.measure=function(t){return Object(i.a)(t,e(f.a)),f.a.result()},d.bounds=function(t){return Object(i.a)(t,e(a.a)),a.a.result()},d.centroid=function(t){return Object(i.a)(t,e(c.a)),c.a.result()},d.projection=function(n){return arguments.length?(e=null==n?(t=null,r.a):(t=n).stream,d):t},d.context=function(t){return arguments.length?(l=null==t?(n=null,new s.a):new o.a(n=t),"function"!=typeof h&&l.pointRadius(h),d):n},d.pointRadius=function(t){return arguments.length?(h="function"==typeof t?t:(l.pointRadius(+t),+t),d):h},d.projection(t).context(n)}},function(t,n,e){"use strict";var r,i,u,a,c=e(19),o=e(0),f=e(11),s=Object(c.a)(),l=Object(c.a)(),h={point:f.a,lineStart:f.a,lineEnd:f.a,polygonStart:function(){h.lineStart=d,h.lineEnd=p},polygonEnd:function(){h.lineStart=h.lineEnd=h.point=f.a,s.add(Object(o.a)(l)),l.reset()},result:function(){var t=s/2;return s.reset(),t}};function d(){h.point=b}function b(t,n){h.point=v,r=u=t,i=a=n}function v(t,n){l.add(a*t-u*n),u=t,a=n}function p(){v(r,i)}n.a=h},function(t,n,e){"use strict";var r,i,u,a,c=e(0),o=0,f=0,s=0,l=0,h=0,d=0,b=0,v=0,p=0,g={point:y,lineStart:_,lineEnd:j,polygonStart:function(){g.lineStart=x,g.lineEnd=w},polygonEnd:function(){g.point=y,g.lineStart=_,g.lineEnd=j},result:function(){var t=p?[b/p,v/p]:d?[l/d,h/d]:s?[o/s,f/s]:[NaN,NaN];return o=f=s=l=h=d=b=v=p=0,t}};function y(t,n){o+=t,f+=n,++s}function _(){g.point=m}function m(t,n){g.point=O,y(u=t,a=n)}function O(t,n){var e=t-u,r=n-a,i=Object(c.u)(e*e+r*r);l+=i*(u+t)/2,h+=i*(a+n)/2,d+=i,y(u=t,a=n)}function j(){g.point=y}function x(){g.point=M}function w(){k(r,i)}function M(t,n){g.point=k,y(r=u=t,i=a=n)}function k(t,n){var e=t-u,r=n-a,i=Object(c.u)(e*e+r*r);l+=i*(u+t)/2,h+=i*(a+n)/2,d+=i,b+=(i=a*t-u*n)*(u+t),v+=i*(a+n),p+=3*i,y(u=t,a=n)}n.a=g},function(t,n,e){"use strict";n.a=u;var r=e(0),i=e(11);function u(t){this._context=t}u.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,r.w)}},result:i.a}},function(t,n,e){"use strict";var r,i,u,a,c,o=e(19),f=e(0),s=e(11),l=Object(o.a)(),h={point:s.a,lineStart:function(){h.point=d},lineEnd:function(){r&&b(i,u),h.point=s.a},polygonStart:function(){r=!0},polygonEnd:function(){r=null},result:function(){var t=+l;return l.reset(),t}};function d(t,n){h.point=b,i=a=t,u=c=n}function b(t,n){a-=t,c-=n,l.add(Object(f.u)(a*a+c*c)),a=t,c=n}n.a=h},function(t,n,e){"use strict";function r(){this._string=[]}function i(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}n.a=r,r.prototype={_radius:4.5,_circle:i(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=i(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}}},function(t,n,e){"use strict";var r=e(24),i=e(0),u=e(41),a=16,c=Object(i.g)(30*i.r);n.a=function(t,n){return+n?function(t,n){function e(r,u,a,o,f,s,l,h,d,b,v,p,g,y){var _=l-r,m=h-u,O=_*_+m*m;if(O>4*n&&g--){var j=o+b,x=f+v,w=s+p,M=Object(i.u)(j*j+x*x+w*w),k=Object(i.c)(w/=M),T=Object(i.a)(Object(i.a)(w)-1)n||Object(i.a)((_*N+m*E)/O-.5)>.3||o*b+f*v+s*p=.12&&i<.234&&r>=-.425&&r<-.214?l:i>=.166&&i<.234&&r>=-.214&&r<-.115?h:s).invert(t)},b.stream=function(e){return t&&n===e?t:(r=[s.stream(n=e),l.stream(e),h.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++e0?n<-r.l+r.i&&(n=-r.l+r.i):n>r.l-r.i&&(n=r.l-r.i);var e=c/Object(r.p)(a(n),i);return[e*Object(r.t)(i*t),c-e*Object(r.g)(i*t)]}return o.invert=function(t,n){var e=c-n,u=Object(r.s)(i)*Object(r.u)(t*t+e*e);return[Object(r.e)(t,Object(r.a)(e))/i*Object(r.s)(e),2*Object(r.d)(Object(r.p)(c/u,1/i))-r.l]},o}n.b=function(){return Object(i.a)(c).scale(109.5).parallels([30,30])}},function(t,n,e){"use strict";n.a=a;var r=e(0),i=e(74),u=e(141);function a(t,n){var e=Object(r.g)(t),i=t===n?Object(r.t)(t):(e-Object(r.g)(n))/(n-t),a=e/i+t;if(Object(r.a)(i)i.i&&--u>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]},n.a=function(){return Object(r.a)(u).scale(175.295)}},function(t,n,e){"use strict";n.b=a;var r=e(0),i=e(25),u=e(8);function a(t,n){return[Object(r.g)(n)*Object(r.t)(t),Object(r.t)(n)]}a.invert=Object(i.a)(r.c),n.a=function(){return Object(u.a)(a).scale(249.5).clipAngle(90+r.i)}},function(t,n,e){"use strict";n.b=a;var r=e(0),i=e(25),u=e(8);function a(t,n){var e=Object(r.g)(n),i=1+Object(r.g)(t)*e;return[e*Object(r.t)(t)/i,Object(r.t)(n)/i]}a.invert=Object(i.a)(function(t){return 2*Object(r.d)(t)}),n.a=function(){return Object(u.a)(a).scale(250).clipAngle(142)}},function(t,n,e){"use strict";n.b=u;var r=e(0),i=e(76);function u(t,n){return[Object(r.n)(Object(r.v)((r.l+n)/2)),-t]}u.invert=function(t,n){return[-n,2*Object(r.d)(Object(r.k)(t))-r.l]},n.a=function(){var t=Object(i.b)(u),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)}},function(t,n,e){"use strict";var r=e(354);e.d(n,"a",function(){return r.a});var i=e(77);e.d(n,"b",function(){return i.c});var u=e(366);e.d(n,"c",function(){return u.a});var a=e(142);e.d(n,"e",function(){return a.a});var c=e(143);e.d(n,"d",function(){return c.a});var o=e(368);e.d(n,"f",function(){return o.a});var f=e(369);e.d(n,"g",function(){return f.a});var s=e(370);e.d(n,"h",function(){return s.a});var l=e(371);e.d(n,"i",function(){return l.a});var h=e(372);e.d(n,"j",function(){return h.a});var d=e(26);e.d(n,"k",function(){return d.a});var b=e(42);e.d(n,"m",function(){return b.a});var v=e(373);e.d(n,"n",function(){return v.a});var p=e(79);e.d(n,"o",function(){return p.a});var g=e(374);e.d(n,"l",function(){return g.a})},function(t,n,e){"use strict";function r(t,n){return t.parent===n.parent?1:2}function i(t,n){return t+n.x}function u(t,n){return Math.max(t,n.y)}n.a=function(){var t=r,n=1,e=1,a=!1;function c(r){var c,o=0;r.eachAfter(function(n){var e=n.children;e?(n.x=function(t){return t.reduce(i,0)/t.length}(e),n.y=function(t){return 1+t.reduce(u,0)}(e)):(n.x=c?o+=t(n,c):0,n.y=0,c=n)});var f=function(t){for(var n;n=t.children;)t=n[0];return t}(r),s=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(r),l=f.x-t(f,s)/2,h=s.x+t(s,f)/2;return r.eachAfter(a?function(t){t.x=(t.x-r.x)*n,t.y=(r.y-t.y)*e}:function(t){t.x=(t.x-l)/(h-l)*n,t.y=(1-(r.y?t.y/r.y:1))*e})}return c.separation=function(n){return arguments.length?(t=n,c):t},c.size=function(t){return arguments.length?(a=!1,n=+t[0],e=+t[1],c):a?null:[n,e]},c.nodeSize=function(t){return arguments.length?(a=!0,n=+t[0],e=+t[1],c):a?[n,e]:null},c}},function(t,n,e){"use strict";function r(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}n.a=function(){return this.eachAfter(r)}},function(t,n,e){"use strict";n.a=function(t){var n,e,r,i,u=this,a=[u];do{for(n=a.reverse(),a=[];u=n.pop();)if(t(u),e=u.children)for(r=0,i=e.length;r=0;--e)i.push(n[e]);return this}},function(t,n,e){"use strict";n.a=function(t){for(var n,e,r,i=this,u=[i],a=[];i=u.pop();)if(a.push(i),n=i.children)for(e=0,r=n.length;e=0;)e+=r[i].value;n.value=e})}},function(t,n,e){"use strict";n.a=function(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})}},function(t,n,e){"use strict";n.a=function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;t=e.pop(),n=r.pop();for(;t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r}},function(t,n,e){"use strict";n.a=function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n}},function(t,n,e){"use strict";n.a=function(){var t=[];return this.each(function(n){t.push(n)}),t}},function(t,n,e){"use strict";n.a=function(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t}},function(t,n,e){"use strict";n.a=function(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n}},function(t,n,e){"use strict";var r=e(142),i=e(78),u=e(144);function a(t){return Math.sqrt(t.value)}function c(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function o(t,n){return function(e){if(i=e.children){var i,u,a,c=i.length,o=t(e)*n||0;if(o)for(u=0;u0)throw new Error("cycle");return f}return e.id=function(n){return arguments.length?(t=Object(r.b)(n),e):t},e.parentId=function(t){return arguments.length?(n=Object(r.b)(t),e):n},e}},function(t,n,e){"use strict";var r=e(77);function i(t,n){return t.parent===n.parent?1:2}function u(t){var n=t.children;return n?n[0]:t.t}function a(t){var n=t.children;return n?n[n.length-1]:t.t}function c(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function o(t,n,e){return t.a.parent===n.parent?t.a:e}function f(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}f.prototype=Object.create(r.a.prototype),n.a=function(){var t=i,n=1,e=1,r=null;function s(i){var u=function(t){for(var n,e,r,i,u,a=new f(t,0),c=[a];n=c.pop();)if(r=n._.children)for(n.children=new Array(u=r.length),i=u-1;i>=0;--i)c.push(e=n.children[i]=new f(r[i],i)),e.parent=n;return(a.parent=new f(null,0)).children=[a],a}(i);if(u.eachAfter(l),u.parent.m=-u.z,u.eachBefore(h),r)i.eachBefore(d);else{var a=i,c=i,o=i;i.eachBefore(function(t){t.xc.x&&(c=t),t.depth>o.depth&&(o=t)});var s=a===c?1:t(a,c)/2,b=s-a.x,v=n/(c.x+s+b),p=e/(o.depth||1);i.eachBefore(function(t){t.x=(t.x+b)*v,t.y=t.depth*p})}return i}function l(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,u=i.length;--u>=0;)(n=i[u]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var f=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-f):n.z=f}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,f=n,s=n,l=e,h=f.parent.children[0],d=f.m,b=s.m,v=l.m,p=h.m;l=a(l),f=u(f),l&&f;)h=u(h),(s=a(s)).a=n,(i=l.z+v-f.z-d+t(l._,f._))>0&&(c(o(l,n,r),n,i),d+=i,b+=i),v+=l.m,d+=f.m,p+=h.m,b+=s.m;l&&!a(s)&&(s.t=l,s.m+=v-b),f&&!u(h)&&(h.t=f,h.m+=d-p,r=n)}return r}(n,i,n.parent.A||r[0])}function h(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function d(t){t.x*=n,t.y=t.depth*e}return s.separation=function(n){return arguments.length?(t=n,s):t},s.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],s):r?null:[n,e]},s.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],s):r?[n,e]:null},s}},function(t,n,e){"use strict";var r=e(145),i=e(79),u=e(78),a=e(144);n.a=function(){var t=i.a,n=!1,e=1,c=1,o=[0],f=a.a,s=a.a,l=a.a,h=a.a,d=a.a;function b(t){return t.x0=t.y0=0,t.x1=e,t.y1=c,t.eachBefore(v),o=[0],n&&t.eachBefore(r.a),t}function v(n){var e=o[n.depth],r=n.x0+e,i=n.y0+e,u=n.x1-e,a=n.y1-e;u=e-1){var s=c[n];return s.x0=i,s.y0=u,s.x1=a,void(s.y1=o)}var l=f[n],h=r/2+l,d=n+1,b=e-1;for(;d>>1;f[v]o-u){var y=(i*g+a*p)/r;t(n,d,p,i,u,y,o),t(d,e,g,y,u,a,o)}else{var _=(u*g+o*p)/r;t(n,d,p,i,u,a,_),t(d,e,g,i,_,a,o)}}(0,o,t.value,n,e,r,i)}},function(t,n,e){"use strict";var r=e(26),i=e(42);n.a=function(t,n,e,u,a){(1&t.depth?i.a:r.a)(t,n,e,u,a)}},function(t,n,e){"use strict";var r=e(26),i=e(42),u=e(79);n.a=function t(n){function e(t,e,a,c,o){if((f=t._squarify)&&f.ratio===n)for(var f,s,l,h,d,b=-1,v=f.length,p=t.value;++b1?n:1)},e}(u.b)},function(t,n,e){"use strict";var r=e(376);e.d(n,"a",function(){return r.a});var i=e(377);e.d(n,"b",function(){return i.a});var u=e(378);e.d(n,"d",function(){return u.a});var a=e(380);e.d(n,"c",function(){return a.a});var c=e(381);e.d(n,"e",function(){return c.a})},function(t,n,e){"use strict";n.a=function(t){for(var n,e=-1,r=t.length,i=t[r-1],u=0;++e1&&Object(r.a)(t[e[i-2]],t[e[i-1]],t[u])<=0;)--i;e[i++]=u}return e.slice(0,i)}n.a=function(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),a=new Array(e);for(n=0;n=0;--n)l.push(t[r[c[n]][2]]);for(n=+f;nc!=f>c&&a<(o-e)*(c-r)/(f-r)+e&&(s=!s),o=e,f=r;return s}},function(t,n,e){"use strict";n.a=function(t){for(var n,e,r=-1,i=t.length,u=t[i-1],a=u[0],c=u[1],o=0;++r=0;)if((e=t._tasks[r])&&(t._tasks[r]=null,e.abort))try{e.abort()}catch(n){}t._active=NaN,f(t)}function f(t){if(!t._active&&t._call){var n=t._data;t._data=void 0,t._call(t._error,n)}}function s(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new u(t)}u.prototype=s.prototype={constructor:u,defer:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var n=r.a.call(arguments,1);return n.push(t),++this._waiting,this._tasks.push(n),a(this),this},abort:function(){return null==this._error&&o(this,new Error("abort")),this},await:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(n,e){t.apply(null,[n].concat(e))},f(this),this},awaitAll:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=t,f(this),this}}},function(t,n,e){"use strict";e.d(n,"a",function(){return r});var r=[].slice},function(t,n,e){"use strict";var r=e(386);e.d(n,"f",function(){return r.a});var i=e(146);e.d(n,"e",function(){return i.a});var u=e(387);e.d(n,"d",function(){return u.a});var a=e(388);e.d(n,"a",function(){return a.a});var c=e(147);e.d(n,"c",function(){return c.a});var o=e(389);e.d(n,"b",function(){return o.a})},function(t,n,e){"use strict";var r=e(20);n.a=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(r.a)},function(t,n,e){"use strict";var r=e(20),i=e(146);n.a=function t(n){function e(){var t=i.a.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(r.a)},function(t,n,e){"use strict";var r=e(20),i=e(147);n.a=function t(n){function e(t){var e=i.a.source(n)(t);return function(){return e()/t}}return e.source=t,e}(r.a)},function(t,n,e){"use strict";var r=e(20);n.a=function t(n){function e(t){return function(){return-Math.log(1-n())/t}}return e.source=t,e}(r.a)},function(t,n,e){"use strict";var r=e(80);e.d(n,"d",function(){return r.a});var i=e(391);e.d(n,"b",function(){return i.a});var u=e(392);e.d(n,"c",function(){return u.a});var a=e(393);e.d(n,"e",function(){return a.a});var c=e(394);e.d(n,"g",function(){return c.a});var o=e(395);e.d(n,"a",function(){return o.a});var f=e(396);e.d(n,"f",function(){return f.a})},function(t,n,e){"use strict";var r=e(43);n.a=Object(r.a)("text/html",function(t){return document.createRange().createContextualFragment(t.responseText)})},function(t,n,e){"use strict";var r=e(43);n.a=Object(r.a)("application/json",function(t){return JSON.parse(t.responseText)})},function(t,n,e){"use strict";var r=e(43);n.a=Object(r.a)("text/plain",function(t){return t.responseText})},function(t,n,e){"use strict";var r=e(43);n.a=Object(r.a)("application/xml",function(t){var n=t.responseXML;if(!n)throw new Error("parse error");return n})},function(t,n,e){"use strict";var r=e(65),i=e(148);n.a=Object(i.a)("text/csv",r.c)},function(t,n,e){"use strict";var r=e(65),i=e(148);n.a=Object(i.a)("text/tab-separated-values",r.h)},function(t,n,e){"use strict";var r=e(398);e.d(n,"i",function(){return r.a}),e.d(n,"o",function(){return r.b});var i=e(399);e.d(n,"j",function(){return i.a});var u=e(27);e.d(n,"l",function(){return u.a});var a=e(401);e.d(n,"m",function(){return a.a});var c=e(149);e.d(n,"n",function(){return c.a}),e.d(n,"k",function(){return c.b});var o=e(402);e.d(n,"p",function(){return o.a}),e.d(n,"t",function(){return o.b});var f=e(403);e.d(n,"q",function(){return f.a});var s=e(404);e.d(n,"r",function(){return s.a});var l=e(405);e.d(n,"u",function(){return l.a});var h=e(152);e.d(n,"v",function(){return h.b});var d=e(421);e.d(n,"w",function(){return d.a});var b=e(422);e.d(n,"x",function(){return b.a});var v=e(423);e.d(n,"z",function(){return v.a});var p=e(424);e.d(n,"A",function(){return p.a});var g=e(425);e.d(n,"y",function(){return g.a});var y=e(426);e.d(n,"b",function(){return y.a});var _=e(427);e.d(n,"f",function(){return _.b}),e.d(n,"h",function(){return _.c}),e.d(n,"a",function(){return _.a});var m=e(428);e.d(n,"g",function(){return m.a}),e.d(n,"d",function(){return m.c}),e.d(n,"c",function(){return m.b}),e.d(n,"e",function(){return m.d});var O=e(429);e.d(n,"s",function(){return O.a})},function(t,n,e){"use strict";n.a=u,n.b=function(){return function t(n){var e=n.copy;n.padding=n.paddingOuter;delete n.paddingInner;delete n.paddingOuter;n.copy=function(){return t(e())};return n}(u().paddingInner(1))};var r=e(3),i=e(149);function u(){var t,n,e=Object(i.a)().unknown(void 0),a=e.domain,c=e.range,o=[0,1],f=!1,s=0,l=0,h=.5;function d(){var e=a().length,i=o[1]0){for(;hc)break;p.push(l)}}else for(;h=1;--f)if(!((l=o*f)c)break;p.push(l)}}else p=Object(r.B)(h,d,Math.min(d-h,v)).map(b);return n?p.reverse():p};n.tickFormat=function(t,e){if(null==e&&(e=10===u?".0e":","),"function"!=typeof e&&(e=Object(i.a)(e)),t===1/0)return e;null==t&&(t=10);var r=Math.max(1,u*t/n.ticks().length);return function(t){var n=t/b(Math.round(s(t)));return n*u0?u[r-1]:n[0],r=a?[c[a-1],e]:[c[r-1],c[r]]};f.copy=function(){return t().domain([n,e]).range(o)};return Object(u.b)(f)};var r=e(3),i=e(15),u=e(27)},function(t,n,e){"use strict";n.a=function t(){var n=[.5],e=[0,1],u=1;function a(t){if(t<=t)return e[Object(r.b)(n,t,0,u)]}a.domain=function(t){return arguments.length?(n=i.b.call(t),u=Math.min(n.length,e.length-1),a):n.slice()};a.range=function(t){return arguments.length?(e=i.b.call(t),u=Math.min(n.length,e.length-1),a):e.slice()};a.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]};a.copy=function(){return t().domain(n).range(e)};return a};var r=e(3),i=e(15)},function(t,n,e){"use strict";e.d(n,"b",function(){return u});var r=e(2),i=Object(r.a)(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Object(r.a)(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):i:null},n.a=i;var u=i.range},function(t,n,e){"use strict";e.d(n,"b",function(){return a});var r=e(2),i=e(9),u=Object(r.a)(function(t){t.setTime(Math.floor(t/i.d)*i.d)},function(t,n){t.setTime(+t+n*i.d)},function(t,n){return(n-t)/i.d},function(t){return t.getUTCSeconds()});n.a=u;var a=u.range},function(t,n,e){"use strict";e.d(n,"b",function(){return a});var r=e(2),i=e(9),u=Object(r.a)(function(t){t.setTime(Math.floor(t/i.c)*i.c)},function(t,n){t.setTime(+t+n*i.c)},function(t,n){return(n-t)/i.c},function(t){return t.getMinutes()});n.a=u;var a=u.range},function(t,n,e){"use strict";e.d(n,"b",function(){return a});var r=e(2),i=e(9),u=Object(r.a)(function(t){var n=t.getTimezoneOffset()*i.c%i.b;n<0&&(n+=i.b),t.setTime(Math.floor((+t-n)/i.b)*i.b+n)},function(t,n){t.setTime(+t+n*i.b)},function(t,n){return(n-t)/i.b},function(t){return t.getHours()});n.a=u;var a=u.range},function(t,n,e){"use strict";e.d(n,"a",function(){return a});var r=e(2),i=e(9),u=Object(r.a)(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*i.c)/i.a},function(t){return t.getDate()-1});n.b=u;var a=u.range},function(t,n,e){"use strict";e.d(n,"g",function(){return a}),e.d(n,"c",function(){return c}),e.d(n,"k",function(){return o}),e.d(n,"m",function(){return f}),e.d(n,"i",function(){return s}),e.d(n,"a",function(){return l}),e.d(n,"e",function(){return h}),e.d(n,"h",function(){return d}),e.d(n,"d",function(){return b}),e.d(n,"l",function(){return v}),e.d(n,"n",function(){return p}),e.d(n,"j",function(){return g}),e.d(n,"b",function(){return y}),e.d(n,"f",function(){return _});var r=e(2),i=e(9);function u(t){return Object(r.a)(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+7*n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*i.c)/i.e})}var a=u(0),c=u(1),o=u(2),f=u(3),s=u(4),l=u(5),h=u(6),d=a.range,b=c.range,v=o.range,p=f.range,g=s.range,y=l.range,_=h.range},function(t,n,e){"use strict";e.d(n,"b",function(){return u});var r=e(2),i=Object(r.a)(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});n.a=i;var u=i.range},function(t,n,e){"use strict";e.d(n,"b",function(){return u});var r=e(2),i=Object(r.a)(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.a)(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null},n.a=i;var u=i.range},function(t,n,e){"use strict";e.d(n,"b",function(){return a});var r=e(2),i=e(9),u=Object(r.a)(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*i.c)},function(t,n){return(n-t)/i.c},function(t){return t.getUTCMinutes()});n.a=u;var a=u.range},function(t,n,e){"use strict";e.d(n,"b",function(){return a});var r=e(2),i=e(9),u=Object(r.a)(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*i.b)},function(t,n){return(n-t)/i.b},function(t){return t.getUTCHours()});n.a=u;var a=u.range},function(t,n,e){"use strict";e.d(n,"b",function(){return a});var r=e(2),i=e(9),u=Object(r.a)(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/i.a},function(t){return t.getUTCDate()-1});n.a=u;var a=u.range},function(t,n,e){"use strict";e.d(n,"g",function(){return a}),e.d(n,"c",function(){return c}),e.d(n,"k",function(){return o}),e.d(n,"m",function(){return f}),e.d(n,"i",function(){return s}),e.d(n,"a",function(){return l}),e.d(n,"e",function(){return h}),e.d(n,"h",function(){return d}),e.d(n,"d",function(){return b}),e.d(n,"l",function(){return v}),e.d(n,"n",function(){return p}),e.d(n,"j",function(){return g}),e.d(n,"b",function(){return y}),e.d(n,"f",function(){return _});var r=e(2),i=e(9);function u(t){return Object(r.a)(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+7*n)},function(t,n){return(n-t)/i.e})}var a=u(0),c=u(1),o=u(2),f=u(3),s=u(4),l=u(5),h=u(6),d=a.range,b=c.range,v=o.range,p=f.range,g=s.range,y=l.range,_=h.range},function(t,n,e){"use strict";e.d(n,"b",function(){return u});var r=e(2),i=Object(r.a)(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()});n.a=i;var u=i.range},function(t,n,e){"use strict";e.d(n,"b",function(){return u});var r=e(2),i=Object(r.a)(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.a)(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null},n.a=i;var u=i.range},function(t,n,e){"use strict";var r=e(154),i=e(83);var u=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:Object(i.e)(r.b);n.a=u},function(t,n,e){"use strict";var r=e(152),i=e(82),u=e(45);n.a=function(){return Object(r.a)(u._7,u.R,u._5,u.F,u.J,u.N,u.V,u.L,i.g).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}},function(t,n,e){"use strict";var r=e(28);n.a=Object(r.a)("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf")},function(t,n,e){"use strict";var r=e(28);n.a=Object(r.a)("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6")},function(t,n,e){"use strict";var r=e(28);n.a=Object(r.a)("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9")},function(t,n,e){"use strict";var r=e(28);n.a=Object(r.a)("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5")},function(t,n,e){"use strict";var r=e(7),i=e(5);n.a=Object(i.f)(Object(r.b)(300,.5,0),Object(r.b)(-240,.5,1))},function(t,n,e){"use strict";e.d(n,"c",function(){return u}),e.d(n,"a",function(){return a});var r=e(7),i=e(5),u=Object(i.f)(Object(r.b)(-100,.75,.35),Object(r.b)(80,1.5,.8)),a=Object(i.f)(Object(r.b)(260,.75,.35),Object(r.b)(80,1.5,.8)),c=Object(r.b)();n.b=function(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return c.h=360*t-100,c.s=1.5-1.5*n,c.l=.8-.9*n,c+""}},function(t,n,e){"use strict";e.d(n,"c",function(){return u}),e.d(n,"b",function(){return a}),e.d(n,"d",function(){return c});var r=e(28);function i(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}n.a=i(Object(r.a)("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var u=i(Object(r.a)("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),a=i(Object(r.a)("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),c=i(Object(r.a)("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"))},function(t,n,e){"use strict";n.a=function t(n){var e=0,i=1,u=!1;function a(t){var r=(t-e)/(i-e);return n(u?Math.max(0,Math.min(1,r)):r)}a.domain=function(t){return arguments.length?(e=+t[0],i=+t[1],a):[e,i]};a.clamp=function(t){return arguments.length?(u=!!t,a):u};a.interpolator=function(t){return arguments.length?(n=t,a):n};a.copy=function(){return t(n).domain([e,i]).clamp(u)};return Object(r.b)(a)};var r=e(27)},function(t,n,e){"use strict";var r=e(13),i=e(16),u=e(29);function a(t){return t.innerRadius}function c(t){return t.outerRadius}function o(t){return t.startAngle}function f(t){return t.endAngle}function s(t){return t&&t.padAngle}function l(t,n,e,r,i,a,c){var o=t-e,f=n-r,s=(c?a:-a)/Object(u.l)(o*o+f*f),l=s*f,h=-s*o,d=t+l,b=n+h,v=e+l,p=r+h,g=(d+v)/2,y=(b+p)/2,_=v-d,m=p-b,O=_*_+m*m,j=i-a,x=d*p-v*b,w=(m<0?-1:1)*Object(u.l)(Object(u.h)(0,j*j*O-x*x)),M=(x*m-_*w)/O,k=(-x*_-m*w)/O,T=(x*m+_*w)/O,C=(-x*_+m*w)/O,S=M-g,A=k-y,N=T-g,E=C-y;return S*S+A*A>N*N+E*E&&(M=T,k=C),{cx:M,cy:k,x01:-l,y01:-h,x11:M*(i/j-1),y11:k*(i/j-1)}}n.a=function(){var t=a,n=c,e=Object(i.a)(0),h=null,d=o,b=f,v=s,p=null;function g(){var i,a,c=+t.apply(this,arguments),o=+n.apply(this,arguments),f=d.apply(this,arguments)-u.g,s=b.apply(this,arguments)-u.g,g=Object(u.a)(s-f),y=s>f;if(p||(p=i=Object(r.a)()),ou.f)if(g>u.m-u.f)p.moveTo(o*Object(u.e)(f),o*Object(u.k)(f)),p.arc(0,0,o,f,s,!y),c>u.f&&(p.moveTo(c*Object(u.e)(s),c*Object(u.k)(s)),p.arc(0,0,c,s,f,y));else{var _,m,O=f,j=s,x=f,w=s,M=g,k=g,T=v.apply(this,arguments)/2,C=T>u.f&&(h?+h.apply(this,arguments):Object(u.l)(c*c+o*o)),S=Object(u.i)(Object(u.a)(o-c)/2,+e.apply(this,arguments)),A=S,N=S;if(C>u.f){var E=Object(u.c)(C/c*Object(u.k)(T)),z=Object(u.c)(C/o*Object(u.k)(T));(M-=2*E)>u.f?(x+=E*=y?1:-1,w-=E):(M=0,x=w=(f+s)/2),(k-=2*z)>u.f?(O+=z*=y?1:-1,j-=z):(k=0,O=j=(f+s)/2)}var P=o*Object(u.e)(O),q=o*Object(u.k)(O),R=c*Object(u.e)(w),L=c*Object(u.k)(w);if(S>u.f){var D=o*Object(u.e)(j),U=o*Object(u.k)(j),F=c*Object(u.e)(x),I=c*Object(u.k)(x);if(gu.f?function(t,n,e,r,i,u,a,c){var o=e-t,f=r-n,s=a-i,l=c-u,h=(s*(n-u)-l*(t-i))/(l*o-s*f);return[t+h*o,n+h*f]}(P,q,F,I,D,U,R,L):[R,L],B=P-H[0],Y=q-H[1],V=D-H[0],X=U-H[1],W=1/Object(u.k)(Object(u.b)((B*V+Y*X)/(Object(u.l)(B*B+Y*Y)*Object(u.l)(V*V+X*X)))/2),G=Object(u.l)(H[0]*H[0]+H[1]*H[1]);A=Object(u.i)(S,(c-G)/(W-1)),N=Object(u.i)(S,(o-G)/(W+1))}}k>u.f?N>u.f?(_=l(F,I,P,q,o,N,y),m=l(D,U,R,L,o,N,y),p.moveTo(_.cx+_.x01,_.cy+_.y01),Nu.f&&M>u.f?A>u.f?(_=l(R,L,D,U,c,-A,y),m=l(P,q,F,I,c,-A,y),p.lineTo(_.cx+_.x01,_.cy+_.y01),A0&&(b+=h);for(null!=n?v.sort(function(t,e){return n(p[t],p[e])}):null!=e&&v.sort(function(t,n){return e(r[t],r[n])}),i=0,s=b?(y-d*m)/b:0;i0?h*s:0)+m,p[u]={data:r[u],index:i,value:h,startAngle:g,endAngle:l,padAngle:_};return p}return s.value=function(n){return arguments.length?(t="function"==typeof n?n:Object(r.a)(+n),s):t},s.sortValues=function(t){return arguments.length?(n=t,e=null,s):n},s.sort=function(t){return arguments.length?(e=t,n=null,s):e},s.startAngle=function(t){return arguments.length?(c="function"==typeof t?t:Object(r.a)(+t),s):c},s.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Object(r.a)(+t),s):o},s.padAngle=function(t){return arguments.length?(f="function"==typeof t?t:Object(r.a)(+t),s):f},s}},function(t,n,e){"use strict";n.a=function(t,n){return nt?1:n>=t?0:NaN}},function(t,n,e){"use strict";n.a=function(t){return t}},function(t,n,e){"use strict";var r=e(156),i=e(155),u=e(157);n.a=function(){var t=Object(i.a)().curve(r.a),n=t.curve,e=t.lineX0,a=t.lineX1,c=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Object(u.b)(e())},delete t.lineX0,t.lineEndAngle=function(){return Object(u.b)(a())},delete t.lineX1,t.lineInnerRadius=function(){return Object(u.b)(c())},delete t.lineY0,t.lineOuterRadius=function(){return Object(u.b)(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(Object(r.b)(t)):n()._curve},t}},function(t,n,e){"use strict";n.a=function(){return s(l)},n.c=function(){return s(h)},n.b=function(){var t=s(d);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t};var r=e(13),i=e(159),u=e(16),a=e(85),c=e(158);function o(t){return t.source}function f(t){return t.target}function s(t){var n=o,e=f,c=a.a,s=a.b,l=null;function h(){var u,a=i.a.call(arguments),o=n.apply(this,a),f=e.apply(this,a);if(l||(l=u=Object(r.a)()),t(l,+c.apply(this,(a[0]=o,a)),+s.apply(this,a),+c.apply(this,(a[0]=f,a)),+s.apply(this,a)),u)return l=null,u+""||null}return h.source=function(t){return arguments.length?(n=t,h):n},h.target=function(t){return arguments.length?(e=t,h):e},h.x=function(t){return arguments.length?(c="function"==typeof t?t:Object(u.a)(+t),h):c},h.y=function(t){return arguments.length?(s="function"==typeof t?t:Object(u.a)(+t),h):s},h.context=function(t){return arguments.length?(l=null==t?null:t,h):l},h}function l(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function h(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function d(t,n,e,r,i){var u=Object(c.a)(n,e),a=Object(c.a)(n,e=(e+i)/2),o=Object(c.a)(r,e),f=Object(c.a)(r,i);t.moveTo(u[0],u[1]),t.bezierCurveTo(a[0],a[1],o[0],o[1],f[0],f[1])}},function(t,n,e){"use strict";e.d(n,"b",function(){return h});var r=e(13),i=e(160),u=e(161),a=e(162),c=e(163),o=e(164),f=e(165),s=e(166),l=e(16),h=[i.a,u.a,a.a,o.a,c.a,f.a,s.a];n.a=function(){var t=Object(l.a)(i.a),n=Object(l.a)(64),e=null;function u(){var i;if(e||(e=i=Object(r.a)()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),i)return e=null,i+""||null}return u.type=function(n){return arguments.length?(t="function"==typeof n?n:Object(l.a)(n),u):t},u.size=function(t){return arguments.length?(n="function"==typeof t?t:Object(l.a)(+t),u):n},u.context=function(t){return arguments.length?(e=null==t?null:t,u):e},u}},function(t,n,e){"use strict";var r=e(47),i=e(48);function u(t){this._context=t}u.prototype={areaStart:r.a,areaEnd:r.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:Object(i.c)(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},n.a=function(t){return new u(t)}},function(t,n,e){"use strict";var r=e(48);function i(t){this._context=t}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break;case 3:this._point=4;default:Object(r.c)(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},n.a=function(t){return new i(t)}},function(t,n,e){"use strict";var r=e(48);function i(t,n){this._basis=new r.a(t),this._beta=n}i.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],u=n[0],a=t[e]-i,c=n[e]-u,o=-1;++o<=e;)r=o/e,this._basis.point(this._beta*t[o]+(1-this._beta)*(i+r*a),this._beta*n[o]+(1-this._beta)*(u+r*c));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}},n.a=function t(n){function e(t){return 1===n?new r.a(t):new i(t,n)}return e.beta=function(n){return t(+n)},e}(.85)},function(t,n,e){"use strict";var r=e(167),i=e(47),u=e(86);function a(t,n){this._context=t,this._alpha=n}a.prototype={areaStart:i.a,areaEnd:i.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Object(u.b)(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},n.a=function t(n){function e(t){return n?new a(t,n):new r.a(t,0)}return e.alpha=function(n){return t(+n)},e}(.5)},function(t,n,e){"use strict";var r=e(168),i=e(86);function u(t,n){this._context=t,this._alpha=n}u.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(i.b)(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},n.a=function t(n){function e(t){return n?new u(t,n):new r.a(t,0)}return e.alpha=function(n){return t(+n)},e}(.5)},function(t,n,e){"use strict";var r=e(47);function i(t){this._context=t}i.prototype={areaStart:r.a,areaEnd:r.a,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}},n.a=function(t){return new i(t)}},function(t,n,e){"use strict";function r(t){return t<0?-1:1}function i(t,n,e){var i=t._x1-t._x0,u=n-t._x1,a=(t._y1-t._y0)/(i||u<0&&-0),c=(e-t._y1)/(u||i<0&&-0),o=(a*u+c*i)/(i+u);return(r(a)+r(c))*Math.min(Math.abs(a),Math.abs(c),.5*Math.abs(o))||0}function u(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function a(t,n,e){var r=t._x0,i=t._y0,u=t._x1,a=t._y1,c=(u-r)/3;t._context.bezierCurveTo(r+c,i+c*n,u-c,a-c*e,u,a)}function c(t){this._context=t}function o(t){this._context=new f(t)}function f(t){this._context=t}n.a=function(t){return new c(t)},n.b=function(t){return new o(t)},c.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:a(this,this._t0,u(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,a(this,u(this,e=i(this,t,n)),e);break;default:a(this,this._t0,e=i(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(o.prototype=Object.create(c.prototype)).point=function(t,n){c.prototype.point.call(this,n,t)},f.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,u){this._context.bezierCurveTo(n,t,r,e,u,i)}}},function(t,n,e){"use strict";function r(t){this._context=t}function i(t){var n,e,r=t.length-1,i=new Array(r),u=new Array(r),a=new Array(r);for(i[0]=0,u[0]=2,a[0]=t[0]+2*t[1],n=1;n=0;--n)i[n]=(a[n]-i[n+1])/u[n];for(u[r-1]=(t[r]+i[r-1])/2,n=0;n=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}},n.a=function(t){return new r(t,.5)}},function(t,n,e){"use strict";var r=e(159),i=e(16),u=e(30),a=e(31);function c(t,n){return t[n]}n.a=function(){var t=Object(i.a)([]),n=a.a,e=u.a,o=c;function f(r){var i,u,a=t.apply(this,arguments),c=r.length,f=a.length,s=new Array(f);for(i=0;i0){for(var e,i,u,a=0,c=t[0].length;a1)for(var e,r,i,u,a,c,o=0,f=t[n[0]].length;o=0?(r[0]=u,r[1]=u+=i):i<0?(r[1]=a,r[0]=a+=i):r[0]=u}},function(t,n,e){"use strict";var r=e(30);n.a=function(t,n){if((e=t.length)>0){for(var e,i=0,u=t[n[0]],a=u.length;i0&&(i=(e=t[n[0]]).length)>0){for(var e,i,u,a=0,c=1;cc.f)b=b.L;else{if(!((o=s-h(b,d))>c.f)){r>-c.f?(n=b.P,e=b):o>-c.f?(n=b,e=b.N):n=e=b;break}if(!b.R){n=b;break}b=b.R}Object(i.c)(t);var v=f(t);if(c.a.insert(n,v),!n&&!e)return;if(n===e)return Object(u.b)(n),e=f(n.site),c.a.insert(v,e),v.edge=e.edge=Object(a.c)(n.site,v.site),Object(u.a)(n),void Object(u.a)(e);if(!e)return void(v.edge=Object(a.c)(n.site,v.site));Object(u.b)(n),Object(u.b)(e);var p=n.site,g=p[0],y=p[1],_=t[0]-g,m=t[1]-y,O=e.site,j=O[0]-g,x=O[1]-y,w=2*(_*x-m*j),M=_*_+m*m,k=j*j+x*x,T=[(x*M-m*k)/w+g,(_*k-j*M)/w+y];Object(a.d)(e.edge,p,O,T),v.edge=Object(a.c)(p,t,null,T),e.edge=Object(a.c)(t,O,null,T),Object(u.a)(n),Object(u.a)(e)};var r=e(88),i=e(169),u=e(170),a=e(89),c=e(32),o=[];function f(t){var n=o.pop()||new function(){Object(r.a)(this),this.edge=this.site=this.circle=null};return n.site=t,n}function s(t){Object(u.b)(t),c.a.remove(t),o.push(t),Object(r.a)(t)}function l(t,n){var e=t.site,r=e[0],i=e[1],u=i-n;if(!u)return r;var a=t.P;if(!a)return-1/0;var c=(e=a.site)[0],o=e[1],f=o-n;if(!f)return c;var s=c-r,l=1/u-1/f,h=s/f;return l?(-h+Math.sqrt(h*h-2*l*(s*s/(-2*f)-o+f/2+i-u/2)))/l+r:(r+c)/2}function h(t,n){var e=t.N;if(e)return l(e,n);var r=t.site;return r[1]===n?r[0]:1/0}},function(t,n,e){"use strict";var r=e(460);e.d(n,"a",function(){return r.a});var i=e(171);e.d(n,"c",function(){return i.b}),e.d(n,"b",function(){return i.c})},function(t,n,e){"use strict";var r=e(12),i=e(51),u=e(5),a=e(1),c=e(62),o=e(461),f=e(462),s=e(171),l=e(463);function h(){return!a.e.button}function d(){var t,n,e=this;return e instanceof SVGElement?(t=(e=e.ownerSVGElement||e).width.baseVal.value,n=e.height.baseVal.value):(t=e.clientWidth,n=e.clientHeight),[[0,0],[t,n]]}function b(){return this.__zoom||s.c}function v(){return-a.e.deltaY*(a.e.deltaMode?120:1)/500}function p(){return"ontouchstart"in this}function g(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],u=t.invertY(n[0][1])-e[0][1],a=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>u?(u+a)/2:Math.min(0,u)||Math.max(0,a))}n.a=function(){var t,n,e=h,y=d,_=g,m=v,O=p,j=[0,1/0],x=[[-1/0,-1/0],[1/0,1/0]],w=250,M=u.v,k=[],T=Object(r.a)("start","zoom","end"),C=500,S=150,A=0;function N(t){t.property("__zoom",b).on("wheel.zoom",D).on("mousedown.zoom",U).on("dblclick.zoom",F).filter(O).on("touchstart.zoom",I).on("touchmove.zoom",H).on("touchend.zoom touchcancel.zoom",B).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function E(t,n){return(n=Math.max(j[0],Math.min(j[1],n)))===t.k?t:new s.a(n,t.x,t.y)}function z(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new s.a(t.k,r,i)}function P(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function q(t,n,e){t.on("start.zoom",function(){R(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).end()}).tween("zoom",function(){var t=arguments,r=R(this,t),i=y.apply(this,t),u=e||P(i),a=Math.max(i[1][0]-i[0][0],i[1][1]-i[0][1]),c=this.__zoom,o="function"==typeof n?n.apply(this,t):n,f=M(c.invert(u).concat(a/c.k),o.invert(u).concat(a/o.k));return function(t){if(1===t)t=o;else{var n=f(t),e=a/n[2];t=new s.a(e,u[0]-n[0]*e,u[1]-n[1]*e)}r.zoom(null,t)}})}function R(t,n){for(var e,r=0,i=k.length;rA}t.zoom("mouse",_(z(t.that.__zoom,t.mouse[0]=Object(a.h)(t.that),t.mouse[1]),t.extent,x))},!0).on("mouseup.zoom",function(){r.on("mousemove.zoom mouseup.zoom",null),Object(i.c)(a.e.view,t.moved),Object(l.a)(),t.end()},!0),u=Object(a.h)(this),o=a.e.clientX,f=a.e.clientY;Object(i.b)(a.e.view),Object(l.b)(),t.mouse=[u,this.__zoom.invert(u)],Object(c.b)(this),t.start()}}function F(){if(e.apply(this,arguments)){var t=this.__zoom,n=Object(a.h)(this),r=t.invert(n),i=t.k*(a.e.shiftKey?.5:2),u=_(z(E(t,i),n,r),y.apply(this,arguments),x);Object(l.a)(),w>0?Object(a.k)(this).transition().duration(w).call(q,u,n):Object(a.k)(this).call(N.transform,u)}}function I(){if(e.apply(this,arguments)){var n,r,i,u,o=R(this,arguments),f=a.e.changedTouches,s=f.length;for(Object(l.b)(),r=0;r-1&&(n+=",");var e=t.split(".");switch(n+=".",n+=e.length>1?e[1].length:0,t.slice(-1)){case"%":n+="%";break;case"0":n+="f"}return r.format(n)}},u=function(t,n,e){var r=function(n,e,r,i,u){return!(!t.addError||!t.clearErrors)&&(ru?(t.addError({title:"Too Many "+e+"s",message:"This visualization requires "+(i===u?"exactly":"no more than")+" "+u+" "+e.toLowerCase()+(1===i?"":"s")+".",group:n}),!1):(t.clearErrors(n),!0))},i=n.fields,u=i.pivots,a=i.dimensions,c=i.measure_like;return r("pivot-req","Pivot",u.length,e.min_pivots,e.max_pivots)&&r("dim-req","Dimension",a.length,e.min_dimensions,e.max_dimensions)&&r("mes-req","Measure",c.length,e.min_measures,e.max_measures)}},,,,,,,,,,,,function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(172),i=e(464),u=e(477);e.n(u);u.initialize(r);var a=u.defaultConfig,c={id:"liquid_fill_gauge",label:"Liquid Fill Gauge",options:{showComparison:{label:"Use field comparison",default:!1,section:"Value",type:"boolean"},minValue:{label:"Min value",min:0,default:a.minValue,section:"Value",type:"number",placeholder:"Any positive number"},maxValue:{label:"Max value",min:0,default:a.maxValue,section:"Value",type:"number",placeholder:"Any positive number"},circleThickness:{label:"Circle Thickness",min:0,max:1,step:.05,default:a.circleThickness,section:"Style",type:"number",display:"range"},circleFillGap:{label:"Circle Gap",min:0,max:1,step:.05,default:a.circleFillGap,section:"Style",type:"number",display:"range"},circleColor:{label:"Circle Color",default:a.circleColor,section:"Style",type:"string",display:"color"},waveHeight:{label:"Wave Height",min:0,max:1,step:.05,default:a.waveHeight,section:"Waves",type:"number",display:"range"},waveCount:{label:"Wave Count",min:0,max:10,default:a.waveCount,section:"Waves",type:"number",display:"range"},waveRiseTime:{label:"Wave Rise Time",min:0,max:5e3,step:50,default:a.waveRiseTime,section:"Waves",type:"number",display:"range"},waveAnimateTime:{label:"Wave Animation Time",min:0,max:5e3,step:50,default:a.waveAnimateTime,section:"Waves",type:"number",display:"range"},waveRise:{label:"Wave Rise from Bottom",default:a.waveRise,section:"Waves",type:"boolean"},waveHeightScaling:{label:"Scale waves if high or low",default:a.waveHeightScaling,section:"Waves",type:"boolean"},waveAnimate:{label:"Animate Waves",default:!0,section:"Waves",type:"boolean"},waveColor:{label:"Wave Color",default:"#64518A",section:"Style",type:"string",display:"color"},waveOffset:{label:"Wave Offset",min:0,max:1,step:.05,default:0,section:"Waves",type:"number",display:"range"},textVertPosition:{label:"Text Vertical Offset",min:0,max:1,step:.01,default:.5,section:"Value",type:"number",display:"range"},textSize:{label:"Text Size",min:0,max:1,step:.01,default:1,section:"Value",type:"number",display:"range"},valueCountUp:{label:"Animate to Value",default:!0,section:"Waves",type:"boolean"},displayPercent:{label:"Display as Percent",default:!0,section:"Value",type:"boolean"},textColor:{label:"Text Color (non-overlapped)",default:"#000000",section:"Style",type:"string",display:"color"},waveTextColor:{label:"Text Color (overlapped)",default:"#FFFFFF",section:"Style",type:"string",display:"color"}},create:function(t,n){t.style.margin="10px",t.style.fontFamily='"Open Sans", "Helvetica", sans-serif',t.innerHTML="\n \n ";var e="fill-gauge-"+Date.now();this.svg=r.select(t).append("svg"),this.svg.attr("id",e)},update:function(t,n,e,a){if(Object(i.b)(this,a,{min_pivots:0,max_pivots:0,min_dimensions:0,max_dimensions:void 0,min_measures:1,max_measures:void 0})){var c=Object.assign(u.defaultConfig,e);if(this.addError&&this.clearErrors){if(c.maxValue<=0)return void this.addError({group:"config",title:"Max value must be greater than zero."});this.clearErrors("config")}var o=a.fields.measure_like[0],f=t[0][o.name],s=f.value,l=a.fields.measure_like[1];if(l&&c.showComparison){var h=t[0][l.name];c.maxValue=h.value}c.displayPercent&&(s=f.value/c.maxValue*100,c.maxValue=100),this.svg.html(""),this.svg.attr("width",n.clientWidth-20),this.svg.attr("height",n.clientHeight-20),r.liquidfillgauge(this.svg,s,c)}}};looker.plugins.visualizations.add(c)},function(t,n){ /*! * @license Open source under BSD 2-clause (http://choosealicense.com/licenses/bsd-2-clause/) * Copyright (c) 2015, Curtis Bratton @@ -7,4 +7,4 @@ * This file was copied from https://raw.githubusercontent.com/ugomeda/d3-liquid-fill-gauge/master/liquidFillGauge.js * and modified for use in the Looker example custom visualizations project. */ -var e={minValue:0,maxValue:100,circleThickness:.05,circleFillGap:.05,circleColor:"#178BCA",backgroundColor:null,waveColor:"#178BCA",width:0,height:0,gradientFromColor:"#FFF",gradientToColor:"#000",waveHeight:.05,waveCount:1,waveOffset:0,waveRise:!0,waveRiseTime:1e3,waveRiseAtStart:!0,waveAnimate:!0,waveAnimateTime:1800,waveHeightScaling:!0,valueCountUp:!0,valueCountUpAtStart:!0,textVertPosition:.5,textSize:1,displayPercent:!0,textColor:"#045681",waveTextColor:"#A4DBf8"};t.exports={initialize:function(t){var n,r=(n=0,function(t){return t+"-"+n++});t.liquidfillgauge=function(n,i,u){var a=t.map(e);t.map(u).each(function(t,n){a.set(n,t)}),n.each(function(n){var e,u=t.select(this),c=0!==a.get("width")?a.get("width"):parseInt(u.style("width")),o=0!==a.get("height")?a.get("height"):parseInt(u.style("height")),f=Math.min(c,o)/2,s=c/2-f,l=o/2-f,h=Math.max(a.get("minValue"),Math.min(a.get("maxValue"),i))/a.get("maxValue");e=a.get("waveHeightScaling")?t.scaleLinear().range([0,a.get("waveHeight"),0]).domain([0,50,100]):t.scaleLinear().range([a.get("waveHeight"),a.get("waveHeight")]).domain([0,100]);var d=a.get("textSize")*f/2,b=parseFloat(i).toFixed(2),v=a.get("valueCountUp")?a.get("minValue"):b,p=a.get("displayPercent")?"%":"",g=a.get("circleThickness")*f,y=g+a.get("circleFillGap")*f,_=f-y,m=_*e(100*h),O=2*_/a.get("waveCount"),j=1+a.get("waveCount"),x=O*j,w=function(t){return Math.round(t)};parseFloat(b)!=parseFloat(w(b))&&(w=function(t){return parseFloat(t).toFixed(1)}),parseFloat(b)!=parseFloat(w(b))&&(w=function(t){return parseFloat(t).toFixed(2)});for(var M=[],k=0;k<=40*j;k++)M.push({x:k/(40*j),y:k/40});var T=t.scaleLinear().range([0,2*Math.PI]).domain([0,1]),S=t.scaleLinear().range([0,f]).domain([0,f]),C=t.scaleLinear().range([0,x]).domain([0,1]),A=t.scaleLinear().range([0,m]).domain([0,1]),N=t.scaleLinear().range([y+2*_+m,y-m]).domain([0,1]),E=t.scaleLinear().range([0,x-2*_]).domain([0,1]),z=t.scaleLinear().range([y+2*_,y+.7*d]).domain([0,1]),P=u.append("g").attr("transform","translate("+s+","+l+")");a.get("backgroundColor")&&P.append("circle").attr("r",f).style("fill",a.get("backgroundColor")).attr("transform","translate("+f+","+f+")");var q=t.arc().startAngle(T(0)).endAngle(T(1)).outerRadius(S(f)).innerRadius(S(f-g));P.append("path").attr("d",q).style("fill",a.get("circleColor")).attr("transform","translate("+f+","+f+")");var R=P.append("text").attr("class","liquidFillGaugeText").attr("text-anchor","middle").attr("font-size",d+"px").style("fill",a.get("textColor")).attr("transform","translate("+f+","+z(a.get("textVertPosition"))+")"),L=t.area().x(function(t){return C(t.x)}).y0(function(t){return A(Math.sin(2*Math.PI*a.get("waveOffset")*-1+2*Math.PI*(1-a.get("waveCount"))+2*t.y*Math.PI))}).y1(function(t){return 2*_+m}),D=P.append("defs"),U=r("clipWave"),F=D.append("clipPath").attr("id",U),I=F.append("path").datum(M).attr("d",L),H=P.append("g").attr("clip-path","url(#"+U+")");if(H.append("circle").attr("cx",f).attr("cy",f).attr("r",_),a.get("fillWithGradient")){var B=a.get("gradientPoints"),Y=r("linearGradient"),V=D.append("linearGradient").attr("id",Y).attr("x1",B[0]).attr("y1",B[1]).attr("x2",B[2]).attr("y2",B[3]);V.append("stop").attr("offset","0").attr("stop-color",a.get("gradientFromColor")),V.append("stop").attr("offset","1").attr("stop-color",a.get("gradientToColor")),H.style("fill","url(#"+Y+")")}else H.style("fill",a.get("waveColor"));var X=H.append("text").attr("class","liquidFillGaugeText").attr("text-anchor","middle").attr("font-size",d+"px").style("fill",a.get("waveTextColor")).attr("transform","translate("+f+","+z(a.get("textVertPosition"))+")"),W=y+2*_-x;if(a.get("waveAnimate")){var G=function(){I.transition().duration(a.get("waveAnimateTime")).ease(t.easeLinear).attr("transform","translate("+E(1)+",0)").on("end",function(){I.attr("transform","translate("+E(0)+",0)"),G()})};G()}var Z=function(n,e,r,i){if(i){var u=function(){var r=t.select(this),i=t.interpolate(n,e);return function(t){r.text(w(i(t))+p)}};R.transition().duration(a.get("waveRiseTime")).tween("text",u),X.transition().duration(a.get("waveRiseTime")).tween("text",u)}else R.text(w(e)+p),X.text(w(e)+p);toPercent=Math.max(a.get("minValue"),Math.min(a.get("maxValue"),e))/a.get("maxValue"),fromPercent=Math.max(a.get("minValue"),Math.min(a.get("maxValue"),n))/a.get("maxValue"),r?F.attr("transform","translate("+W+","+N(fromPercent)+")").transition().duration(a.get("waveRiseTime")).attr("transform","translate("+W+","+N(toPercent)+")"):F.attr("transform","translate("+W+","+N(toPercent)+")")};Z(v,b,a.get("waveRise")&&a.get("waveRiseAtStart"),a.get("valueCountUp")&&a.get("valueCountUpAtStart")),u.on("valueChanged",function(t){Z(i,t,a.get("waveRise"),a.get("valueCountUp")),i=t}),u.on("destroy",function(){R.interrupt().transition(),X.interrupt().transition(),F.interrupt().transition(),I.interrupt().transition(),u.on("valueChanged",null),u.on("destroy",null)})})}},defaultConfig:e}}])}); \ No newline at end of file +var e={minValue:0,maxValue:100,circleThickness:.05,circleFillGap:.05,circleColor:"#178BCA",backgroundColor:null,waveColor:"#178BCA",width:0,height:0,gradientFromColor:"#FFF",gradientToColor:"#000",waveHeight:.05,waveCount:1,waveOffset:0,waveRise:!0,waveRiseTime:1e3,waveRiseAtStart:!0,waveAnimate:!0,waveAnimateTime:1800,waveHeightScaling:!0,valueCountUp:!0,valueCountUpAtStart:!0,textVertPosition:.5,textSize:1,displayPercent:!0,textColor:"#045681",waveTextColor:"#A4DBf8"};t.exports={initialize:function(t){var n,r=(n=0,function(t){return t+"-"+n++});t.liquidfillgauge=function(n,i,u){var a=t.map(e);t.map(u).each(function(t,n){a.set(n,t)}),n.each(function(n){var e,u=t.select(this),c=0!==a.get("width")?a.get("width"):parseInt(u.style("width")),o=0!==a.get("height")?a.get("height"):parseInt(u.style("height")),f=Math.min(c,o)/2,s=c/2-f,l=o/2-f,h=Math.max(a.get("minValue"),Math.min(a.get("maxValue"),i))/a.get("maxValue");e=a.get("waveHeightScaling")?t.scaleLinear().range([0,a.get("waveHeight"),0]).domain([0,50,100]):t.scaleLinear().range([a.get("waveHeight"),a.get("waveHeight")]).domain([0,100]);var d=a.get("textSize")*f/2,b=parseFloat(i).toFixed(2),v=a.get("valueCountUp")?a.get("minValue"):b,p=a.get("displayPercent")?"%":"",g=a.get("circleThickness")*f,y=g+a.get("circleFillGap")*f,_=f-y,m=_*e(100*h),O=2*_/a.get("waveCount"),j=1+a.get("waveCount"),x=O*j,w=function(t){return Math.round(t)};parseFloat(b)!=parseFloat(w(b))&&(w=function(t){return parseFloat(t).toFixed(1)}),parseFloat(b)!=parseFloat(w(b))&&(w=function(t){return parseFloat(t).toFixed(2)});for(var M=[],k=0;k<=40*j;k++)M.push({x:k/(40*j),y:k/40});var T=t.scaleLinear().range([0,2*Math.PI]).domain([0,1]),C=t.scaleLinear().range([0,f]).domain([0,f]),S=t.scaleLinear().range([0,x]).domain([0,1]),A=t.scaleLinear().range([0,m]).domain([0,1]),N=t.scaleLinear().range([y+2*_+m,y-m]).domain([0,1]),E=t.scaleLinear().range([0,x-2*_]).domain([0,1]),z=t.scaleLinear().range([y+2*_,y+.7*d]).domain([0,1]),P=u.append("g").attr("transform","translate("+s+","+l+")");a.get("backgroundColor")&&P.append("circle").attr("r",f).style("fill",a.get("backgroundColor")).attr("transform","translate("+f+","+f+")");var q=t.arc().startAngle(T(0)).endAngle(T(1)).outerRadius(C(f)).innerRadius(C(f-g));P.append("path").attr("d",q).style("fill",a.get("circleColor")).attr("transform","translate("+f+","+f+")");var R=P.append("text").attr("class","liquidFillGaugeText").attr("text-anchor","middle").attr("font-size",d+"px").style("fill",a.get("textColor")).attr("transform","translate("+f+","+z(a.get("textVertPosition"))+")"),L=t.area().x(function(t){return S(t.x)}).y0(function(t){return A(Math.sin(2*Math.PI*a.get("waveOffset")*-1+2*Math.PI*(1-a.get("waveCount"))+2*t.y*Math.PI))}).y1(function(t){return 2*_+m}),D=P.append("defs"),U=r("clipWave"),F=D.append("clipPath").attr("id",U),I=F.append("path").datum(M).attr("d",L),H=P.append("g").attr("clip-path","url(#"+U+")");if(H.append("circle").attr("cx",f).attr("cy",f).attr("r",_),a.get("fillWithGradient")){var B=a.get("gradientPoints"),Y=r("linearGradient"),V=D.append("linearGradient").attr("id",Y).attr("x1",B[0]).attr("y1",B[1]).attr("x2",B[2]).attr("y2",B[3]);V.append("stop").attr("offset","0").attr("stop-color",a.get("gradientFromColor")),V.append("stop").attr("offset","1").attr("stop-color",a.get("gradientToColor")),H.style("fill","url(#"+Y+")")}else H.style("fill",a.get("waveColor"));var X=H.append("text").attr("class","liquidFillGaugeText").attr("text-anchor","middle").attr("font-size",d+"px").style("fill",a.get("waveTextColor")).attr("transform","translate("+f+","+z(a.get("textVertPosition"))+")"),W=y+2*_-x;if(a.get("waveAnimate")){var G=function(){I.transition().duration(a.get("waveAnimateTime")).ease(t.easeLinear).attr("transform","translate("+E(1)+",0)").on("end",function(){I.attr("transform","translate("+E(0)+",0)"),G()})};G()}var Z=function(n,e,r,i){if(i){var u=function(){var r=t.select(this),i=t.interpolate(n,e);return function(t){r.text(w(i(t))+p)}};R.transition().duration(a.get("waveRiseTime")).tween("text",u),X.transition().duration(a.get("waveRiseTime")).tween("text",u)}else R.text(w(e)+p),X.text(w(e)+p);toPercent=Math.max(a.get("minValue"),Math.min(a.get("maxValue"),e))/a.get("maxValue"),fromPercent=Math.max(a.get("minValue"),Math.min(a.get("maxValue"),n))/a.get("maxValue"),r?F.attr("transform","translate("+W+","+N(fromPercent)+")").transition().duration(a.get("waveRiseTime")).attr("transform","translate("+W+","+N(toPercent)+")"):F.attr("transform","translate("+W+","+N(toPercent)+")")};Z(v,b,a.get("waveRise")&&a.get("waveRiseAtStart"),a.get("valueCountUp")&&a.get("valueCountUpAtStart")),u.on("valueChanged",function(t){Z(i,t,a.get("waveRise"),a.get("valueCountUp")),i=t}),u.on("destroy",function(){R.interrupt().transition(),X.interrupt().transition(),F.interrupt().transition(),I.interrupt().transition(),u.on("valueChanged",null),u.on("destroy",null)})})}},defaultConfig:e}}])}); \ No newline at end of file diff --git a/src/examples/liquid_fill_gauge/liquid_fill_gauge.ts b/src/examples/liquid_fill_gauge/liquid_fill_gauge.ts index a17161a3..86c2dd8e 100644 --- a/src/examples/liquid_fill_gauge/liquid_fill_gauge.ts +++ b/src/examples/liquid_fill_gauge/liquid_fill_gauge.ts @@ -66,7 +66,7 @@ const vis: LiquidFillGaugeVisualization = { }, circleColor: { label: 'Circle Color', - default: defaults.circleFillGap, + default: defaults.circleColor, section: 'Style', type: 'string', display: 'color'