Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@redsift/d3-rs-tip

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@redsift/d3-rs-tip - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

4

distribution/d3-rs-tip.umd-es2015.min.js

@@ -1,3 +0,3 @@

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.d3_rs_tip=t.d3_rs_tip||{})}(this,function(t){"use strict";function n(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Re.hasOwnProperty(n)?{space:Re[n],local:t}:t}function e(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===He&&n.documentElement.namespaceURI===He?n.createElement(t):n.createElementNS(e,t)}}function r(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function i(t){var i=n(t);return(i.local?r:e)(i)}function o(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 i=Ke;Ke=r;try{t.call(this,this.__data__,n,e)}finally{Ke=i}}}function u(t){return t.trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}function s(t){return function(){var n=this,e=this.__on;if(e){for(var r,i=0,o=-1,a=e.length;i<a;++i)r=e[i],t.type&&r.type!==t.type||r.name!==t.name?e[++o]=r:n.removeEventListener(r.type,r.listener,r.capture);++o?e.length=o:delete this.__on}}}function l(t,n,e){var r=Je.hasOwnProperty(t.type)?o:a;return function(i,o,a){var u,s=this,l=this.__on,c=r(n,o,a);if(l)for(var f=0,h=l.length;f<h;++f)if((u=l[f]).type===t.type&&u.name===t.name)return s.removeEventListener(u.type,u.listener,u.capture),s.addEventListener(u.type,u.listener=c,u.capture=e),void(u.value=n);this.addEventListener(t.type,c,e),u={type:t.type,name:t.name,value:n,listener:c,capture:e},l?l.push(u):this.__on=[u]}}function c(t,n,e){var r,i,o=this,a=u(t+""),c=a.length;if(!(arguments.length<2)){for(f=n?l:s,null==e&&(e=!1),r=0;r<c;++r)o.each(f(a[r],n,e));return this}var f=this.node().__on;if(f)for(var h,p=0,d=f.length;p<d;++p)for(r=0,h=f[p];r<c;++r)if((i=a[r]).type===h.type&&i.name===h.name)return h.value}function f(){}function h(t){return null==t?f:function(){return this.querySelector(t)}}function p(t){"function"!=typeof t&&(t=h(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a,u=n[i],s=u.length,l=r[i]=new Array(s),c=0;c<s;++c)(o=u[c])&&(a=t.call(o,o.__data__,c,u))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new Ct(r,this._parents)}function d(){return[]}function y(t){return null==t?d:function(){return this.querySelectorAll(t)}}function g(t){"function"!=typeof t&&(t=y(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var a,u=n[o],s=u.length,l=0;l<s;++l)(a=u[l])&&(r.push(t.call(a,a.__data__,l,u)),i.push(a));return new Ct(r,i)}function v(t){"function"!=typeof t&&(t=Ge(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,s=r[i]=[],l=0;l<u;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new Ct(r,this._parents)}function m(t){return new Array(t.length)}function w(){return new Ct(this._enter||this._groups.map(m),this._parents)}function _(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function b(t){return function(){return t}}function x(t,n,e,r,i,o){for(var a,u=0,s=n.length,l=o.length;u<l;++u)(a=n[u])?(a.__data__=o[u],r[u]=a):e[u]=new _(t,o[u]);for(;u<s;++u)(a=n[u])&&(i[u]=a)}function M(t,n,e,r,i,o,a){var u,s,l,c={},f=n.length,h=o.length,p=new Array(f);for(u=0;u<f;++u)(s=n[u])&&(p[u]=l=Ze+a.call(s,s.__data__,u,n),l in c?i[u]=s:c[l]=s);for(u=0;u<h;++u)l=Ze+a.call(t,o[u],u,o),(s=c[l])?(r[u]=s,s.__data__=o[u],c[l]=null):e[u]=new _(t,o[u]);for(u=0;u<f;++u)(s=n[u])&&c[p[u]]===s&&(i[u]=s)}function N(t,n){if(!t)return p=new Array(this.size()),l=-1,this.each(function(t){p[++l]=t}),p;var e=n?M:x,r=this._parents,i=this._groups;"function"!=typeof t&&(t=b(t));for(var o=i.length,a=new Array(o),u=new Array(o),s=new Array(o),l=0;l<o;++l){var c=r[l],f=i[l],h=f.length,p=t.call(c,c&&c.__data__,l,r),d=p.length,y=u[l]=new Array(d),g=a[l]=new Array(d),v=s[l]=new Array(h);e(c,f,y,g,v,p,n);for(var m,w,_=0,N=0;_<d;++_)if(m=y[_]){for(_>=N&&(N=_+1);!(w=g[N])&&++N<d;);m._next=w||null}}return a=new Ct(a,r),a._enter=u,a._exit=s,a}function k(){return new Ct(this._exit||this._groups.map(m),this._parents)}function A(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var s,l=n[u],c=e[u],f=l.length,h=a[u]=new Array(f),p=0;p<f;++p)(s=l[p]||c[p])&&(h[p]=s);for(;u<r;++u)a[u]=n[u];return new Ct(a,this._parents)}function S(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this}function E(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=C);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var a,u=e[o],s=u.length,l=i[o]=new Array(s),c=0;c<s;++c)(a=u[c])&&(l[c]=a);l.sort(n)}return new Ct(i,this._parents).order()}function C(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function P(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function T(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t}function q(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function I(){var t=0;return this.each(function(){++t}),t}function z(){return!this.node()}function O(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this}function V(t){return function(){this.removeAttribute(t)}}function X(t){return function(){this.removeAttributeNS(t.space,t.local)}}function j(t,n){return function(){this.setAttribute(t,n)}}function L(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function B(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function F(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function W(t,e){var r=n(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((null==e?r.local?X:V:"function"==typeof e?r.local?F:B:r.local?L:j)(r,e))}function D(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function H(t){return function(){this.style.removeProperty(t)}}function R(t,n,e){return function(){this.style.setProperty(t,n,e)}}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 Y(t,n,e){var r;return arguments.length>1?this.each((null==n?H:"function"==typeof n?$:R)(t,n,null==e?"":e)):D(r=this.node()).getComputedStyle(r,null).getPropertyValue(t)}function U(t){return function(){delete this[t]}}function G(t,n){return function(){this[t]=n}}function J(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function K(t,n){return arguments.length>1?this.each((null==n?U:"function"==typeof n?J:G)(t,n)):this.node()[t]}function Q(t){return t.trim().split(/^|\s+/)}function Z(t){return t.classList||new tt(t)}function tt(t){this._node=t,this._names=Q(t.getAttribute("class")||"")}function nt(t,n){for(var e=Z(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function et(t,n){for(var e=Z(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function rt(t){return function(){nt(this,t)}}function it(t){return function(){et(this,t)}}function ot(t,n){return function(){(n.apply(this,arguments)?nt:et)(this,t)}}function at(t,n){var e=Q(t+"");if(arguments.length<2){for(var r=Z(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?ot:n?rt:it)(e,n))}function ut(){this.textContent=""}function st(t){return function(){this.textContent=t}}function lt(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function ct(t){return arguments.length?this.each(null==t?ut:("function"==typeof t?lt:st)(t)):this.node().textContent}function ft(){this.innerHTML=""}function ht(t){return function(){this.innerHTML=t}}function pt(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function dt(t){return arguments.length?this.each(null==t?ft:("function"==typeof t?pt:ht)(t)):this.node().innerHTML}function yt(){this.nextSibling&&this.parentNode.appendChild(this)}function gt(){return this.each(yt)}function vt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function mt(){return this.each(vt)}function wt(t){var n="function"==typeof t?t:i(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function _t(){return null}function bt(t,n){var e="function"==typeof t?t:i(t),r=null==n?_t:"function"==typeof n?n:h(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})}function xt(){var t=this.parentNode;t&&t.removeChild(this)}function Mt(){return this.each(xt)}function Nt(t){return arguments.length?this.property("__data__",t):this.node().__data__}function kt(t,n,e){var r=D(t),i=r.CustomEvent;i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function At(t,n){return function(){return kt(this,t,n)}}function St(t,n){return function(){return kt(this,t,n.apply(this,arguments))}}function Et(t,n){return this.each(("function"==typeof n?St:At)(t,n))}function Ct(t,n){this._groups=t,this._parents=n}function Pt(){return new Ct([[document.documentElement]],tr)}function Tt(t){return"string"==typeof t?new Ct([[document.querySelector(t)]],[document.documentElement]):new Ct([[t]],tr)}function qt(){for(var t,n=arguments,e=0,r=arguments.length,i={};e<r;++e){if(!(t=n[e]+"")||t in i)throw new Error("illegal type: "+t);i[t]=[]}return new It(i)}function It(t){this._=t}function zt(t,n){return t.trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}function Ot(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function Vt(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=nr,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}function Xt(){return lr||(hr(jt),lr=fr.now()+cr)}function jt(){lr=0}function Lt(){this._call=this._time=this._next=null}function Bt(t,n,e){var r=new Lt;return r.restart(t,n,e),r}function Ft(){Xt(),++ir;for(var t,n=er;n;)(t=lr-n._time)>=0&&n._call.call(null,t),n=n._next;--ir}function Wt(t){lr=(sr=t||fr.now())+cr,ir=or=0;try{Ft()}finally{ir=0,Ht(),lr=0}}function Dt(){var t=fr.now(),n=t-sr;n>ur&&(cr-=n,sr=t)}function Ht(){for(var t,n,e=er,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:er=n);rr=t,Rt(r)}function Rt(t){if(!ir){or&&(or=clearTimeout(or));var n=t-lr;n>24?(t<1/0&&(or=setTimeout(Wt,n)),ar&&(ar=clearInterval(ar))):(ar||(ar=setInterval(Dt,ur)),ir=1,hr(Wt))}}function $t(t,n,e){var r=new Lt;return n=null==n?0:+n,r.restart(function(e){r.stop(),t(e+n)},n,e),r}function Yt(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};Kt(t,e,{name:n,index:r,group:i,on:pr,tween:dr,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:yr})}function Ut(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>yr)throw new Error("too late");return e}function Gt(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>vr)throw new Error("too late");return e}function Jt(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("too late");return e}function Kt(t,n,e){function r(t){e.state=gr,e.delay<=t?i(t-e.delay):e.timer.restart(i,e.delay,e.time)}function i(r){var i,s,l,c;for(i in u)c=u[i],c.name===e.name&&(c.state===mr?(c.state=_r,c.timer.stop(),c.on.call("interrupt",t,t.__data__,c.index,c.group),delete u[i]):+i<n&&(c.state=_r,c.timer.stop(),delete u[i]));if($t(function(){e.state===mr&&(e.timer.restart(o,e.delay,e.time),o(r))}),e.state=vr,e.on.call("start",t,t.__data__,e.index,e.group),e.state===vr){for(e.state=mr,a=new Array(l=e.tween.length),i=0,s=-1;i<l;++i)(c=e.tween[i].value.call(t,t.__data__,e.index,e.group))&&(a[++s]=c);a.length=s+1}}function o(r){for(var i=r<e.duration?e.ease.call(null,r/e.duration):(e.state=wr,1),o=-1,s=a.length;++o<s;)a[o].call(null,i);if(e.state===wr){e.state=_r,e.timer.stop(),e.on.call("end",t,t.__data__,e.index,e.group);for(o in u)if(+o!==n)return void delete u[n];delete t.__transition}}var a,u=t.__transition;u[n]=e,e.timer=Bt(r,0,e.time)}function Qt(t,n){var e,r,i,o=t.__transition,a=!0;if(o){n=null==n?null:n+"";for(i in o)(e=o[i]).name===n?(r=e.state===mr,e.state=_r,e.timer.stop(),r&&e.on.call("interrupt",t,t.__data__,e.index,e.group),delete o[i]):a=!1;a&&delete t.__transition}}function Zt(t){return this.each(function(){Qt(this,t)})}function tn(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function nn(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function en(){}function rn(t){var n;return t=(t+"").trim().toLowerCase(),(n=Mr.exec(t))?(n=parseInt(n[1],16),new ln(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1)):(n=Nr.exec(t))?on(parseInt(n[1],16)):(n=kr.exec(t))?new ln(n[1],n[2],n[3],1):(n=Ar.exec(t))?new ln(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Sr.exec(t))?an(n[1],n[2],n[3],n[4]):(n=Er.exec(t))?an(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Cr.exec(t))?cn(n[1],n[2]/100,n[3]/100,1):(n=Pr.exec(t))?cn(n[1],n[2]/100,n[3]/100,n[4]):Tr.hasOwnProperty(t)?on(Tr[t]):"transparent"===t?new ln(NaN,NaN,NaN,0):null}function on(t){return new ln(t>>16&255,t>>8&255,255&t,1)}function an(t,n,e,r){return r<=0&&(t=n=e=NaN),new ln(t,n,e,r)}function un(t){return t instanceof en||(t=rn(t)),t?(t=t.rgb(),new ln(t.r,t.g,t.b,t.opacity)):new ln}function sn(t,n,e,r){return 1===arguments.length?un(t):new ln(t,n,e,null==r?1:r)}function ln(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function cn(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new pn(t,n,e,r)}function fn(t){if(t instanceof pn)return new pn(t.h,t.s,t.l,t.opacity);if(t instanceof en||(t=rn(t)),!t)return new pn;if(t instanceof pn)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,s=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e<r):e===o?(r-n)/u+2:(n-e)/u+4,u/=s<.5?o+i:2-o-i,a*=60):u=s>0&&s<1?0:a,new pn(a,u,s,t.opacity)}function hn(t,n,e,r){return 1===arguments.length?fn(t):new pn(t,n,e,null==r?1:r)}function pn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function dn(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function yn(t){if(t instanceof vn)return new vn(t.l,t.a,t.b,t.opacity);if(t instanceof Nn){var n=t.h*qr;return new vn(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof ln||(t=un(t));var e=bn(t.r),r=bn(t.g),i=bn(t.b),o=mn((.4124564*e+.3575761*r+.1804375*i)/Or),a=mn((.2126729*e+.7151522*r+.072175*i)/Vr),u=mn((.0193339*e+.119192*r+.9503041*i)/Xr);return new vn(116*a-16,500*(o-a),200*(a-u),t.opacity)}function gn(t,n,e,r){return 1===arguments.length?yn(t):new vn(t,n,e,null==r?1:r)}function vn(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function mn(t){return t>Fr?Math.pow(t,1/3):t/Br+jr}function wn(t){return t>Lr?t*t*t:Br*(t-jr)}function _n(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function bn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function xn(t){if(t instanceof Nn)return new Nn(t.h,t.c,t.l,t.opacity);t instanceof vn||(t=yn(t));var n=Math.atan2(t.b,t.a)*Ir;return new Nn(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Mn(t,n,e,r){return 1===arguments.length?xn(t):new Nn(t,n,e,null==r?1:r)}function Nn(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function kn(t){if(t instanceof Sn)return new Sn(t.h,t.s,t.l,t.opacity);t instanceof ln||(t=un(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Gr*r+Yr*n-Ur*e)/(Gr+Yr-Ur),o=r-i,a=($r*(e-i)-Hr*o)/Rr,u=Math.sqrt(a*a+o*o)/($r*i*(1-i)),s=u?Math.atan2(a,o)*Ir-120:NaN;return new Sn(s<0?s+360:s,u,i,t.opacity)}function An(t,n,e,r){return 1===arguments.length?kn(t):new Sn(t,n,e,null==r?1:r)}function Sn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function En(t){return function(){return t}}function Cn(t,n){return function(e){return t+e*n}}function Pn(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)}}function Tn(t,n){var e=n-t;return e?Cn(t,e>180||e<-180?e-360*Math.round(e/360):e):En(isNaN(t)?n:t)}function qn(t){return 1===(t=+t)?In:function(n,e){return e-n?Pn(n,e,t):En(isNaN(n)?e:n)}}function In(t,n){var e=n-t;return e?Cn(t,e):En(isNaN(t)?n:t)}function zn(t,n){return t=+t,n-=t,function(e){return t+n*e}}function On(t){return function(){return t}}function Vn(t){return function(n){return t(n)+""}}function Xn(t,n){var e,r,i,o=ni.lastIndex=ei.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(e=ni.exec(t))&&(r=ei.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:zn(e,r)})),o=ei.lastIndex;return o<n.length&&(i=n.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?s[0]?Vn(s[0].x):On(n):(n=s.length,function(t){for(var e,r=0;r<n;++r)u[(e=s[r]).i]=e.x(t);return u.join("")})}function jn(t,n,e,r,i,o){var a,u,s;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(s=t*e+n*r)&&(e-=t*s,r-=n*s),(u=Math.sqrt(e*e+r*r))&&(e/=u,r/=u,s/=u),t*r<n*e&&(t=-t,n=-n,s=-s,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*ri,skewX:Math.atan(s)*ri,scaleX:a,scaleY:u}}function Ln(t){return"none"===t?ii:(Jr||(Jr=document.createElement("DIV"),Kr=document.documentElement,Qr=document.defaultView),Jr.style.transform=t,t=Qr.getComputedStyle(Kr.appendChild(Jr),null).getPropertyValue("transform"),Kr.removeChild(Jr),t=t.slice(7,-1).split(","),jn(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function Bn(t){return null==t?ii:(Zr||(Zr=document.createElementNS("http://www.w3.org/2000/svg","g")),Zr.setAttribute("transform",t),(t=Zr.transform.baseVal.consolidate())?(t=t.matrix,jn(t.a,t.b,t.c,t.d,t.e,t.f)):ii)}function Fn(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}function o(t,r,i,o,a,u){if(t!==i||r!==o){var s=a.push("translate(",null,n,null,e);u.push({i:s-4,x:zn(t,i)},{i:s-2,x:zn(r,o)})}else(i||o)&&a.push("translate("+i+n+o+e)}function a(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:zn(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}function u(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:zn(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}function s(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:zn(t,e)},{i:u-2,x:zn(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}return function(n,e){var r=[],i=[];return n=t(n),e=t(e),o(n.translateX,n.translateY,e.translateX,e.translateY,r,i),a(n.rotate,e.rotate,r,i),u(n.skewX,e.skewX,r,i),s(n.scaleX,n.scaleY,e.scaleX,e.scaleY,r,i),n=e=null,function(t){for(var n,e=-1,o=i.length;++e<o;)r[(n=i[e]).i]=n.x(t);return r.join("")}}}function Wn(t){return function n(e){function r(n,r){var i=t((n=An(n)).h,(r=An(r)).h),o=In(n.s,r.s),a=In(n.l,r.l),u=In(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=a(Math.pow(t,e)),n.opacity=u(t),n+""}}return e=+e,r.gamma=n,r}(1)}function Dn(t,n){var e,r;return function(){var i=Gt(this,t),o=i.tween;if(o!==e){r=e=o;for(var a=0,u=r.length;a<u;++a)if(r[a].name===n){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function Hn(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=Gt(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:n,value:e},s=0,l=i.length;s<l;++s)if(i[s].name===n){i[s]=u;break}s===l&&i.push(u)}o.tween=i}}function Rn(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=Jt(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?Dn:Hn)(e,t,n))}function $n(t,n,e){var r=t._id;return t.each(function(){var t=Gt(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)}),function(t){return Jt(t,r).value[n]}}function Yn(t,n){var e;return("number"==typeof n?zn:n instanceof rn?ti:(e=rn(n))?(n=e,ti):Xn)(t,n)}function Un(t){return function(){this.removeAttribute(t)}}function Gn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Jn(t,n,e){var r,i;return function(){var o=this.getAttribute(t);return o===e?null:o===r?i:i=n(r=o,e)}}function Kn(t,n,e){var r,i;return function(){var o=this.getAttributeNS(t.space,t.local);return o===e?null:o===r?i:i=n(r=o,e)}}function Qn(t,n,e){var r,i,o;return function(){var a,u=e(this);return null==u?void this.removeAttribute(t):(a=this.getAttribute(t),a===u?null:a===r&&u===i?o:o=n(r=a,i=u))}}function Zn(t,n,e){var r,i,o;return function(){var a,u=e(this);return null==u?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),a===u?null:a===r&&u===i?o:o=n(r=a,i=u))}}function te(t,e){var r=n(t),i="transform"===r?ai:Yn;return this.attrTween(t,"function"==typeof e?(r.local?Zn:Qn)(r,i,$n(this,"attr."+t,e)):null==e?(r.local?Gn:Un)(r):(r.local?Kn:Jn)(r,i,e))}function ne(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttributeNS(t.space,t.local,r(n))}}return e._value=n,e}function ee(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttribute(t,r(n))}}return e._value=n,e}function re(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;var i=n(t);return this.tween(r,(i.local?ne:ee)(i,e))}function ie(t,n){return function(){Ut(this,t).delay=+n.apply(this,arguments)}}function oe(t,n){return n=+n,function(){Ut(this,t).delay=n}}function ae(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?ie:oe)(n,t)):Jt(this.node(),n).delay}function ue(t,n){return function(){Gt(this,t).duration=+n.apply(this,arguments)}}function se(t,n){return n=+n,function(){Gt(this,t).duration=n}}function le(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?ue:se)(n,t)):Jt(this.node(),n).duration}function ce(t,n){if("function"!=typeof n)throw new Error;return function(){Gt(this,t).ease=n}}function fe(t){var n=this._id;return arguments.length?this.each(ce(n,t)):Jt(this.node(),n).ease}function he(t){"function"!=typeof t&&(t=Ge(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,s=r[i]=[],l=0;l<u;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new Ie(r,this._parents,this._name,this._id)}function pe(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var s,l=n[u],c=e[u],f=l.length,h=a[u]=new Array(f),p=0;p<f;++p)(s=l[p]||c[p])&&(h[p]=s);for(;u<r;++u)a[u]=n[u];return new Ie(a,this._parents,this._name,this._id)}function de(t){return(t+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t})}function ye(t,n,e){var r,i,o=de(n)?Ut:Gt;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}function ge(t,n){var e=this._id;return arguments.length<2?Jt(this.node(),e).on.on(t):this.each(ye(e,t,n))}function ve(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function me(){return this.on("end.remove",ve(this._id))}function we(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=h(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u,s,l=r[a],c=l.length,f=o[a]=new Array(c),p=0;p<c;++p)(u=l[p])&&(s=t.call(u,u.__data__,p,l))&&("__data__"in u&&(s.__data__=u.__data__),f[p]=s,Yt(f[p],n,e,p,f,Jt(u,e)));return new Ie(o,this._parents,n,e)}function _e(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=y(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var s,l=r[u],c=l.length,f=0;f<c;++f)if(s=l[f]){for(var h,p=t.call(s,s.__data__,f,l),d=Jt(s,e),g=0,v=p.length;g<v;++g)(h=p[g])&&Yt(h,n,e,g,p,d);o.push(p),a.push(s)}return new Ie(o,a,n,e)}function be(){return new ui(this._groups,this._parents)}function xe(t,n){var e,r,i;return function(){var o=D(this).getComputedStyle(this,null),a=o.getPropertyValue(t),u=(this.style.removeProperty(t),o.getPropertyValue(t));return a===u?null:a===e&&u===r?i:i=n(e=a,r=u)}}function Me(t){return function(){this.style.removeProperty(t)}}function Ne(t,n,e){var r,i;return function(){var o=D(this).getComputedStyle(this,null).getPropertyValue(t);return o===e?null:o===r?i:i=n(r=o,e)}}function ke(t,n,e){var r,i,o;return function(){var a=D(this).getComputedStyle(this,null),u=a.getPropertyValue(t),s=e(this);return null==s&&(this.style.removeProperty(t),s=a.getPropertyValue(t)),u===s?null:u===r&&s===i?o:o=n(r=u,i=s)}}function Ae(t,n,e){var r="transform"==(t+="")?oi:Yn;return null==n?this.styleTween(t,xe(t,r)).on("end.style."+t,Me(t)):this.styleTween(t,"function"==typeof n?ke(t,r,$n(this,"style."+t,n)):Ne(t,r,n),e)}function Se(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}function Ee(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,Se(t,n,null==e?"":e))}function Ce(t){return function(){this.textContent=t}}function Pe(t){return function(){var n=t(this);this.textContent=null==n?"":n}}function Te(t){return this.tween("text","function"==typeof t?Pe($n(this,"text",t)):Ce(null==t?"":t+""))}function qe(){for(var t=this._name,n=this._id,e=Oe(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,l=0;l<s;++l)if(a=u[l]){var c=Jt(a,n);Yt(a,t,e,l,u,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Ie(r,this._parents,t,e)}function Ie(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function ze(t){return Pt().transition(t)}function Oe(){return++si}function Ve(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function Xe(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return yi.time=Xt(),yi;return e}function je(t){var n,e;t instanceof Ie?(n=t._id,t=t._name):(n=Oe(),(e=yi).time=Xt(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,l=0;l<s;++l)(a=u[l])&&Yt(a,t,n,l,u,e||Xe(a,n));return new Ie(r,this._parents,t,n)}function Le(t){return t&&"object"==typeof t&&"default"in t?t["default"]:t}function Be(t,n){return n={exports:{}},t(n,n.exports),n.exports}function Fe(t){return t<414?"12px":"14px"}function We(t){function n(){var n=Tt("div"+(t?"#"+t:"."+x));return n.empty()&&(n=Tt(document.createElement("div"))),n.attr("id",t).attr("class",x).style("position","absolute").style("top",0).style("left",0).style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),n.node()}function e(t){if(t=t.node())return"svg"===t.tagName.toLowerCase()?t:t.ownerSVGElement}function r(){return null===M&&(M=n(),A.appendChild(M)),Tt(M)}function i(n){var r=e(n);if(r){null!=r.createSVGPoint&&(N=r.createSVGPoint()),r=Tt(r);var o=r.select("defs");o.empty()&&(o=r.append("defs"));var a=C;void 0===a&&(a=i.defaultStyle(S,_i));var u=o.selectAll("style"+(t?"#style-tip-"+t:".style-"+x)).data(a?[a]:[]);u.exit().remove(),u=u.enter().append("style").attr("type","text/css").attr("id",t?"style-tip-"+t:null).attr("class",t?null:"style-"+x).merge(u),u.text(function(t){return t})}}function o(){var t=p();return{top:t.n.y-M.offsetHeight,left:t.n.x-M.offsetWidth/2}}function a(){var t=p();return{top:t.s.y,left:t.s.x-M.offsetWidth/2}}function u(){var t=p();return{top:t.e.y-M.offsetHeight/2,left:t.e.x}}function s(){var t=p();return{top:t.w.y-M.offsetHeight/2,left:t.w.x-M.offsetWidth}}function l(){var t=p();return{top:t.nw.y-M.offsetHeight,left:t.nw.x-M.offsetWidth}}function c(){var t=p();return{top:t.ne.y-M.offsetHeight,left:t.ne.x}}function f(){var t=p();return{top:t.sw.y,left:t.sw.x-M.offsetWidth}}function h(){var t=p();return{top:t.se.y,left:t.se.x}}function p(){for(var t=k||Ke.target;"undefined"==typeof t.getScreenCTM&&"undefined"===t.parentNode;)t=t.parentNode;var n={},e=t.getScreenCTM(),r=t.getBBox(),i=r.width,o=r.height,a=r.x,u=r.y;return N.x=a,N.y=u,n.nw=N.matrixTransform(e),N.x+=i,n.ne=N.matrixTransform(e),N.y+=o,n.se=N.matrixTransform(e),N.x-=i,n.sw=N.matrixTransform(e),N.y-=o/2,n.w=N.matrixTransform(e),N.x+=i,n.e=N.matrixTransform(e),N.x-=i/2,N.y-=o/2,n.n=N.matrixTransform(e),N.y+=o,n.s=N.matrixTransform(e),n}var d=function(t){return"function"==typeof t?t:function(){return t}},y=function(){return"n"},g=function(){return[0,0]},v=function(){return" "},m=function(t){return t instanceof Node};ze();var w=y,_=g,b=v,x="d3-tip",M=n(),N=null,k=null,A=null,S="light",E=!1,C=void 0;i.self=function(){return"div"+(t?"#"+t:"."+x)},i.id=function(){return t},i.classed=function(t){return arguments.length?(x=t,i):x},i.show=function(){A||i.parent(document.body);var t=[].slice.call(arguments);k=this,1===t.length&&m(t[0])&&(k=t[0],t[0]=k.__data__);var n=b.apply(k,t);if(null==n)return i;for(var e=_.apply(k,t),o=w.apply(k,t),a=r(),u=T.length,s=M.offsetParent.getBoundingClientRect();u--;)a.classed(T[u],!1);var l=P[o].apply(k);return a.classed(o,!0).style("top",l.top+e[0]-s.top+"px").style("left",l.left+e[1]-s.left+"px").html(n),null!=E&&E!==!1&&(a=a.transition(),"number"==typeof E&&(a=a.duration(E))),a.style("opacity",1),i},i.hide=function(){var t=r();return t.interrupt(),t.style("opacity",0),i},i.attr=function(t){if(arguments.length<2&&"string"==typeof t)return r().attr(t);var n=[].slice.call(arguments);return Pt.prototype.attr.apply(r(),n),i},i.direction=function(t){return arguments.length?(w=null==t?t:d(t),i):w},i.offset=function(t){return arguments.length?(_=null==t?t:d(t),i):_},i.html=function(t){return arguments.length?(b=null==t?t:d(t),i):b},i.destroy=function(){return M&&(r().remove(),M=null),i},i.style=function(t){return arguments.length?(C=t,i):C},i.transition=function(t){return arguments.length?(E=t,i):E},i.theme=function(t){return arguments.length?(S=t,i):S},i.parent=function(t){if(!arguments.length)return A;A=t||document.body,A.appendChild(M);var n=Tt(M.offsetParent);return"static"===n.style("position")&&n.style("position","relative"),i},i.defaultStyle=function(t,n){return"\n "+wi.fixed.cssImport+" \n "+i.self()+" {\n line-height: 1;\n font-family: "+wi.fixed.family+";\n color: "+gi[t].negative.text+";\n font-weight: "+wi.fixed.weightMonochrome+"; \n font-size: "+wi.fixed.sizeForWidth(n)+"; \n padding: 8px;\n background: "+gi[t].negative.background+";\n border-radius: 2px;\n pointer-events: none;\n }\n /* Creates a small triangle extender for the tooltip */\n "+i.self()+":after {\n box-sizing: border-box;\n display: inline;\n width: 100%;\n line-height: 1;\n color: "+gi[t].negative.background+";\n font-size: "+wi.fixed.sizeForWidth(1)+"; \n position: absolute;\n pointer-events: none;\n }\n /* Northward tooltips */\n "+i.self()+'.n:after {\n content: "\\25bc";\n margin: -3px 0 0 0;\n top: 100%;\n left: 0;\n text-align: center;\n }\n /* Eastward tooltips */\n '+i.self()+'.e:after {\n content: "\\25C0";\n margin: -7px 0 0 0;\n top: 50%;\n left: -7px;\n }\n /* Southward tooltips */\n '+i.self()+'.s:after {\n content: "\\25B2";\n margin: 0 0 1px 0;\n top: -10px;\n left: 0;\n text-align: center;\n }\n /* Westward tooltips */\n '+i.self()+'.w:after {\n content: "\\25B6";\n margin: -7px 0 0 0;\n top: 50%;\n left: 100%;\n } \n ';
};var P={n:o,s:a,e:u,w:s,nw:l,ne:c,sw:f,se:h},T=Object.keys(P);return i}var De="0.3.2",He="http://www.w3.org/1999/xhtml",Re={svg:"http://www.w3.org/2000/svg",xhtml:He,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},$e=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Ye=document.documentElement;if(!Ye.matches){var Ue=Ye.webkitMatchesSelector||Ye.msMatchesSelector||Ye.mozMatchesSelector||Ye.oMatchesSelector;$e=function(t){return function(){return Ue.call(this,t)}}}}var Ge=$e,Je={},Ke=null;if("undefined"!=typeof document){var Qe=document.documentElement;"onmouseenter"in Qe||(Je={mouseenter:"mouseover",mouseleave:"mouseout"})}_.prototype={constructor:_,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Ze="$";tt.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var tr=[null];Ct.prototype=Pt.prototype={constructor:Ct,select:p,selectAll:g,filter:v,data:N,enter:w,exit:k,merge:A,order:S,sort:E,call:P,nodes:T,node:q,size:I,empty:z,each:O,attr:W,style:Y,property:K,classed:at,text:ct,html:dt,raise:gt,lower:mt,append:wt,insert:bt,remove:Mt,datum:Nt,on:c,dispatch:Et};var nr={value:function(){}};It.prototype=qt.prototype={constructor:It,on:function(t,n){var e,r=this._,i=zt(t+"",r),o=-1,a=i.length;{if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<a;)if(e=(t=i[o]).type)r[e]=Vt(r[e],t.name,n);else if(null==n)for(e in r)r[e]=Vt(r[e],t.name,null);return this}for(;++o<a;)if((e=(t=i[o]).type)&&(e=Ot(r[e],t.name)))return e}},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new It(t)},call:function(t,n){var e=arguments;if((r=arguments.length-2)>0)for(var r,i,o=new Array(r),a=0;a<r;++a)o[a]=e[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=this._[t],a=0,r=i.length;a<r;++a)i[a].value.apply(n,o)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};var er,rr,ir=0,or=0,ar=0,ur=1e3,sr=0,lr=0,cr=0,fr="object"==typeof performance&&performance.now?performance:Date,hr="function"==typeof requestAnimationFrame?fr===Date?function(t){requestAnimationFrame(function(){t(fr.now())})}:requestAnimationFrame:function(t){setTimeout(t,17)};Lt.prototype=Bt.prototype={constructor:Lt,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Xt():+e)+(null==n?0:+n),this._next||rr===this||(rr?rr._next=this:er=this,rr=this),this._call=t,this._time=e,Rt()},stop:function(){this._call&&(this._call=null,this._time=1/0,Rt())}};var pr=qt("start","end","interrupt"),dr=[],yr=0,gr=1,vr=2,mr=3,wr=4,_r=5,br=.7,xr=1/br,Mr=/^#([0-9a-f]{3})$/,Nr=/^#([0-9a-f]{6})$/,kr=/^rgb\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*\)$/,Ar=/^rgb\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/,Sr=/^rgba\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,Er=/^rgba\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,Cr=/^hsl\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/,Pr=/^hsla\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,Tr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};tn(en,rn,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),tn(ln,sn,nn(en,{brighter:function(t){return t=null==t?xr:Math.pow(xr,t),new ln(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?br:Math.pow(br,t),new ln(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 t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(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+")")}})),tn(pn,hn,nn(en,{brighter:function(t){return t=null==t?xr:Math.pow(xr,t),new pn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?br:Math.pow(br,t),new pn(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 ln(dn(t>=240?t-240:t+120,i,r),dn(t,i,r),dn(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}}));var qr=Math.PI/180,Ir=180/Math.PI,zr=18,Or=.95047,Vr=1,Xr=1.08883,jr=4/29,Lr=6/29,Br=3*Lr*Lr,Fr=Lr*Lr*Lr;tn(vn,gn,nn(en,{brighter:function(t){return new vn(this.l+zr*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new vn(this.l-zr*(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=Vr*wn(t),n=Or*wn(n),e=Xr*wn(e),new ln(_n(3.2404542*n-1.5371385*t-.4985314*e),_n(-.969266*n+1.8760108*t+.041556*e),_n(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),tn(Nn,Mn,nn(en,{brighter:function(t){return new Nn(this.h,this.c,this.l+zr*(null==t?1:t),this.opacity)},darker:function(t){return new Nn(this.h,this.c,this.l-zr*(null==t?1:t),this.opacity)},rgb:function(){return yn(this).rgb()}}));var Wr=-.14861,Dr=1.78277,Hr=-.29227,Rr=-.90649,$r=1.97294,Yr=$r*Rr,Ur=$r*Dr,Gr=Dr*Hr-Rr*Wr;tn(Sn,An,nn(en,{brighter:function(t){return t=null==t?xr:Math.pow(xr,t),new Sn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?br:Math.pow(br,t),new Sn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*qr,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new ln(255*(n+e*(Wr*r+Dr*i)),255*(n+e*(Hr*r+Rr*i)),255*(n+e*($r*r)),this.opacity)}}));var Jr,Kr,Qr,Zr,ti=function bi(t){function n(t,n){var r=e((t=sn(t)).r,(n=sn(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=e(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}var e=qn(t);return n.gamma=bi,n}(1),ni=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ei=new RegExp(ni.source,"g"),ri=180/Math.PI,ii={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},oi=Fn(Ln,"px, ","px)","deg)"),ai=Fn(Bn,", ",")",")");Wn(Tn);var ui=(Wn(In),Pt.prototype.constructor),si=0,li=Pt.prototype;Ie.prototype=ze.prototype={constructor:Ie,select:we,selectAll:_e,filter:he,merge:pe,selection:be,transition:qe,call:li.call,nodes:li.nodes,node:li.node,size:li.size,empty:li.empty,each:li.each,on:ge,attr:te,attrTween:re,style:Ae,styleTween:Ee,text:Te,remove:me,tween:Rn,delay:ae,duration:le,ease:fe};var ci=3,fi=(function xi(t){function n(n){return Math.pow(n,t)}return t=+t,n.exponent=xi,n}(ci),function Mi(t){function n(n){return 1-Math.pow(1-n,t)}return t=+t,n.exponent=Mi,n}(ci),function Ni(t){function n(n){return((n*=2)<=1?Math.pow(n,t):2-Math.pow(2-n,t))/2}return t=+t,n.exponent=Ni,n}(ci),1.70158),hi=(function ki(t){function n(n){return n*n*((t+1)*n-t)}return t=+t,n.overshoot=ki,n}(fi),function Ai(t){function n(n){return--n*n*((t+1)*n+t)+1}return t=+t,n.overshoot=Ai,n}(fi),function Si(t){function n(n){return((n*=2)<1?n*n*((t+1)*n-t):(n-=2)*n*((t+1)*n+t)+2)/2}return t=+t,n.overshoot=Si,n}(fi),2*Math.PI),pi=1,di=.3,yi=(function Ei(t,n){function e(e){return t*Math.pow(2,10*--e)*Math.sin((r-e)/n)}var r=Math.asin(1/(t=Math.max(1,t)))*(n/=hi);return e.amplitude=function(t){return Ei(t,n*hi)},e.period=function(n){return Ei(t,n)},e}(pi,di),function Ci(t,n){function e(e){return 1-t*Math.pow(2,-10*(e=+e))*Math.sin((e+r)/n)}var r=Math.asin(1/(t=Math.max(1,t)))*(n/=hi);return e.amplitude=function(t){return Ci(t,n*hi)},e.period=function(n){return Ci(t,n)},e}(pi,di),function Pi(t,n){function e(e){return((e=2*e-1)<0?t*Math.pow(2,10*e)*Math.sin((r-e)/n):2-t*Math.pow(2,-10*e)*Math.sin((r+e)/n))/2}var r=Math.asin(1/(t=Math.max(1,t)))*(n/=hi);return e.amplitude=function(t){return Pi(t,n*hi)},e.period=function(n){return Pi(t,n)},e}(pi,di),{time:null,delay:0,duration:250,ease:Ve});Pt.prototype.interrupt=Zt,Pt.prototype.transition=je;var gi={light:{background:"#ffffff",text:"#262626",axis:"#262626",grid:"#e0e0e0",highlight:"rgba(225,16,16,0.5)",lowlight:"rgba(127,127,127,0.3)",shadow:"rgba(127,127,127,0.4)",fillOpacity:.33,negative:{background:"rgba(0, 0, 0, 0.66)",text:"#ffffff"}},dark:{background:"#333333",text:"#ffffff",axis:"#ffffff",grid:"#6d6d6d",highlight:"rgba(225,16,16,0.5)",lowlight:"rgba(127,127,127,0.5)",shadow:"rgba(255,255,255,0.4)",fillOpacity:.33,negative:{background:"rgba(255, 255, 255, 0.85)",text:"#262626"}}},vi=Be(function(t){function n(t,n){return 1-3*n+3*t}function e(t,n){return 3*n-6*t}function r(t){return 3*t}function i(t,i,o){return((n(i,o)*t+e(i,o))*t+r(i))*t}function o(t,i,o){return 3*n(i,o)*t*t+2*e(i,o)*t+r(i)}function a(t,n,e,r,o){var a,u,s=0;do u=n+(e-n)/2,a=i(u,r,o)-t,a>0?e=u:n=u;while(Math.abs(a)>c&&++s<f);return u}function u(t,n,e,r){for(var a=0;a<s;++a){var u=o(n,e,r);if(0===u)return n;var l=i(n,e,r)-t;n-=l/u}return n}var s=4,l=.001,c=1e-7,f=10,h=11,p=1/(h-1),d="function"==typeof Float32Array;t.exports=function(t,n,e,r){function s(n){for(var r=0,i=1,s=h-1;i!==s&&c[i]<=n;++i)r+=p;--i;var f=(n-c[i])/(c[i+1]-c[i]),d=r+f*p,y=o(d,t,e);return y>=l?u(n,d,t,e):0===y?d:a(n,r,r+p,t,e)}if(!(0<=t&&t<=1&&0<=e&&e<=1))throw new Error("bezier x values must be in [0, 1] range");var c=d?new Float32Array(h):new Array(h);if(t!==n||e!==r)for(var f=0;f<h;++f)c[f]=i(f*p,t,e);return function(o){return t===n&&e===r?o:0===o?0:1===o?1:i(s(o),n,r)}}});Le(vi);var mi='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',wi={fixed:{cssImport:"@import url(https://fonts.googleapis.com/css?family=Source+Code+Pro:300,500);",weightMonochrome:300,weightColor:500,sizeForWidth:Fe,family:'"Source Code Pro", Consolas, "Liberation Mono", Menlo, Courier, monospace'},variable:{cssImport:"@import url(https://fonts.googleapis.com/css?family=Raleway:400,500);",weightMonochrome:400,weightColor:500,sizeForWidth:Fe,family:'"Raleway", "Trebuchet MS", '+mi},brand:{cssImport:"@import url(https://fonts.googleapis.com/css?family=Electrolize);",weightMonochrome:400,weightColor:400,sizeForWidth:Fe,family:'"Electrolize", '+mi}},_i=800;t.version=De,t.body=We,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.d3_rs_tip=t.d3_rs_tip||{})}(this,function(t){"use strict";function n(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Re.hasOwnProperty(n)?{space:Re[n],local:t}:t}function e(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===He&&n.documentElement.namespaceURI===He?n.createElement(t):n.createElementNS(e,t)}}function r(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function i(t){var i=n(t);return(i.local?r:e)(i)}function o(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 i=Ke;Ke=r;try{t.call(this,this.__data__,n,e)}finally{Ke=i}}}function u(t){return t.trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}function s(t){return function(){var n=this,e=this.__on;if(e){for(var r,i=0,o=-1,a=e.length;i<a;++i)r=e[i],t.type&&r.type!==t.type||r.name!==t.name?e[++o]=r:n.removeEventListener(r.type,r.listener,r.capture);++o?e.length=o:delete this.__on}}}function l(t,n,e){var r=Je.hasOwnProperty(t.type)?o:a;return function(i,o,a){var u,s=this,l=this.__on,c=r(n,o,a);if(l)for(var f=0,h=l.length;f<h;++f)if((u=l[f]).type===t.type&&u.name===t.name)return s.removeEventListener(u.type,u.listener,u.capture),s.addEventListener(u.type,u.listener=c,u.capture=e),void(u.value=n);this.addEventListener(t.type,c,e),u={type:t.type,name:t.name,value:n,listener:c,capture:e},l?l.push(u):this.__on=[u]}}function c(t,n,e){var r,i,o=this,a=u(t+""),c=a.length;if(!(arguments.length<2)){for(f=n?l:s,null==e&&(e=!1),r=0;r<c;++r)o.each(f(a[r],n,e));return this}var f=this.node().__on;if(f)for(var h,p=0,d=f.length;p<d;++p)for(r=0,h=f[p];r<c;++r)if((i=a[r]).type===h.type&&i.name===h.name)return h.value}function f(){}function h(t){return null==t?f:function(){return this.querySelector(t)}}function p(t){"function"!=typeof t&&(t=h(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a,u=n[i],s=u.length,l=r[i]=new Array(s),c=0;c<s;++c)(o=u[c])&&(a=t.call(o,o.__data__,c,u))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new Ct(r,this._parents)}function d(){return[]}function y(t){return null==t?d:function(){return this.querySelectorAll(t)}}function g(t){"function"!=typeof t&&(t=y(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var a,u=n[o],s=u.length,l=0;l<s;++l)(a=u[l])&&(r.push(t.call(a,a.__data__,l,u)),i.push(a));return new Ct(r,i)}function v(t){"function"!=typeof t&&(t=Ge(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,s=r[i]=[],l=0;l<u;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new Ct(r,this._parents)}function m(t){return new Array(t.length)}function w(){return new Ct(this._enter||this._groups.map(m),this._parents)}function _(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function b(t){return function(){return t}}function x(t,n,e,r,i,o){for(var a,u=0,s=n.length,l=o.length;u<l;++u)(a=n[u])?(a.__data__=o[u],r[u]=a):e[u]=new _(t,o[u]);for(;u<s;++u)(a=n[u])&&(i[u]=a)}function M(t,n,e,r,i,o,a){var u,s,l,c={},f=n.length,h=o.length,p=new Array(f);for(u=0;u<f;++u)(s=n[u])&&(p[u]=l=Ze+a.call(s,s.__data__,u,n),l in c?i[u]=s:c[l]=s);for(u=0;u<h;++u)l=Ze+a.call(t,o[u],u,o),(s=c[l])?(r[u]=s,s.__data__=o[u],c[l]=null):e[u]=new _(t,o[u]);for(u=0;u<f;++u)(s=n[u])&&c[p[u]]===s&&(i[u]=s)}function N(t,n){if(!t)return p=new Array(this.size()),l=-1,this.each(function(t){p[++l]=t}),p;var e=n?M:x,r=this._parents,i=this._groups;"function"!=typeof t&&(t=b(t));for(var o=i.length,a=new Array(o),u=new Array(o),s=new Array(o),l=0;l<o;++l){var c=r[l],f=i[l],h=f.length,p=t.call(c,c&&c.__data__,l,r),d=p.length,y=u[l]=new Array(d),g=a[l]=new Array(d),v=s[l]=new Array(h);e(c,f,y,g,v,p,n);for(var m,w,_=0,N=0;_<d;++_)if(m=y[_]){for(_>=N&&(N=_+1);!(w=g[N])&&++N<d;);m._next=w||null}}return a=new Ct(a,r),a._enter=u,a._exit=s,a}function k(){return new Ct(this._exit||this._groups.map(m),this._parents)}function A(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var s,l=n[u],c=e[u],f=l.length,h=a[u]=new Array(f),p=0;p<f;++p)(s=l[p]||c[p])&&(h[p]=s);for(;u<r;++u)a[u]=n[u];return new Ct(a,this._parents)}function S(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this}function E(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=C);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var a,u=e[o],s=u.length,l=i[o]=new Array(s),c=0;c<s;++c)(a=u[c])&&(l[c]=a);l.sort(n)}return new Ct(i,this._parents).order()}function C(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function P(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function T(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t}function q(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function I(){var t=0;return this.each(function(){++t}),t}function z(){return!this.node()}function O(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this}function V(t){return function(){this.removeAttribute(t)}}function X(t){return function(){this.removeAttributeNS(t.space,t.local)}}function L(t,n){return function(){this.setAttribute(t,n)}}function j(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function B(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function F(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function W(t,e){var r=n(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((null==e?r.local?X:V:"function"==typeof e?r.local?F:B:r.local?j:L)(r,e))}function D(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function H(t){return function(){this.style.removeProperty(t)}}function R(t,n,e){return function(){this.style.setProperty(t,n,e)}}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 Y(t,n,e){var r;return arguments.length>1?this.each((null==n?H:"function"==typeof n?$:R)(t,n,null==e?"":e)):D(r=this.node()).getComputedStyle(r,null).getPropertyValue(t)}function U(t){return function(){delete this[t]}}function G(t,n){return function(){this[t]=n}}function J(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function K(t,n){return arguments.length>1?this.each((null==n?U:"function"==typeof n?J:G)(t,n)):this.node()[t]}function Q(t){return t.trim().split(/^|\s+/)}function Z(t){return t.classList||new tt(t)}function tt(t){this._node=t,this._names=Q(t.getAttribute("class")||"")}function nt(t,n){for(var e=Z(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function et(t,n){for(var e=Z(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function rt(t){return function(){nt(this,t)}}function it(t){return function(){et(this,t)}}function ot(t,n){return function(){(n.apply(this,arguments)?nt:et)(this,t)}}function at(t,n){var e=Q(t+"");if(arguments.length<2){for(var r=Z(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?ot:n?rt:it)(e,n))}function ut(){this.textContent=""}function st(t){return function(){this.textContent=t}}function lt(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function ct(t){return arguments.length?this.each(null==t?ut:("function"==typeof t?lt:st)(t)):this.node().textContent}function ft(){this.innerHTML=""}function ht(t){return function(){this.innerHTML=t}}function pt(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function dt(t){return arguments.length?this.each(null==t?ft:("function"==typeof t?pt:ht)(t)):this.node().innerHTML}function yt(){this.nextSibling&&this.parentNode.appendChild(this)}function gt(){return this.each(yt)}function vt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function mt(){return this.each(vt)}function wt(t){var n="function"==typeof t?t:i(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function _t(){return null}function bt(t,n){var e="function"==typeof t?t:i(t),r=null==n?_t:"function"==typeof n?n:h(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})}function xt(){var t=this.parentNode;t&&t.removeChild(this)}function Mt(){return this.each(xt)}function Nt(t){return arguments.length?this.property("__data__",t):this.node().__data__}function kt(t,n,e){var r=D(t),i=r.CustomEvent;i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function At(t,n){return function(){return kt(this,t,n)}}function St(t,n){return function(){return kt(this,t,n.apply(this,arguments))}}function Et(t,n){return this.each(("function"==typeof n?St:At)(t,n))}function Ct(t,n){this._groups=t,this._parents=n}function Pt(){return new Ct([[document.documentElement]],tr)}function Tt(t){return"string"==typeof t?new Ct([[document.querySelector(t)]],[document.documentElement]):new Ct([[t]],tr)}function qt(){for(var t,n=arguments,e=0,r=arguments.length,i={};e<r;++e){if(!(t=n[e]+"")||t in i)throw new Error("illegal type: "+t);i[t]=[]}return new It(i)}function It(t){this._=t}function zt(t,n){return t.trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}function Ot(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function Vt(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=nr,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}function Xt(){return lr||(hr(Lt),lr=fr.now()+cr)}function Lt(){lr=0}function jt(){this._call=this._time=this._next=null}function Bt(t,n,e){var r=new jt;return r.restart(t,n,e),r}function Ft(){Xt(),++ir;for(var t,n=er;n;)(t=lr-n._time)>=0&&n._call.call(null,t),n=n._next;--ir}function Wt(t){lr=(sr=t||fr.now())+cr,ir=or=0;try{Ft()}finally{ir=0,Ht(),lr=0}}function Dt(){var t=fr.now(),n=t-sr;n>ur&&(cr-=n,sr=t)}function Ht(){for(var t,n,e=er,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:er=n);rr=t,Rt(r)}function Rt(t){if(!ir){or&&(or=clearTimeout(or));var n=t-lr;n>24?(t<1/0&&(or=setTimeout(Wt,n)),ar&&(ar=clearInterval(ar))):(ar||(ar=setInterval(Dt,ur)),ir=1,hr(Wt))}}function $t(t,n,e){var r=new jt;return n=null==n?0:+n,r.restart(function(e){r.stop(),t(e+n)},n,e),r}function Yt(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};Kt(t,e,{name:n,index:r,group:i,on:pr,tween:dr,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:yr})}function Ut(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>yr)throw new Error("too late");return e}function Gt(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>vr)throw new Error("too late");return e}function Jt(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("too late");return e}function Kt(t,n,e){function r(t){e.state=gr,e.delay<=t?i(t-e.delay):e.timer.restart(i,e.delay,e.time)}function i(r){var i,s,l,c;for(i in u)c=u[i],c.name===e.name&&(c.state===mr?(c.state=_r,c.timer.stop(),c.on.call("interrupt",t,t.__data__,c.index,c.group),delete u[i]):+i<n&&(c.state=_r,c.timer.stop(),delete u[i]));if($t(function(){e.state===mr&&(e.timer.restart(o,e.delay,e.time),o(r))}),e.state=vr,e.on.call("start",t,t.__data__,e.index,e.group),e.state===vr){for(e.state=mr,a=new Array(l=e.tween.length),i=0,s=-1;i<l;++i)(c=e.tween[i].value.call(t,t.__data__,e.index,e.group))&&(a[++s]=c);a.length=s+1}}function o(r){for(var i=r<e.duration?e.ease.call(null,r/e.duration):(e.state=wr,1),o=-1,s=a.length;++o<s;)a[o].call(null,i);if(e.state===wr){e.state=_r,e.timer.stop(),e.on.call("end",t,t.__data__,e.index,e.group);for(o in u)if(+o!==n)return void delete u[n];delete t.__transition}}var a,u=t.__transition;u[n]=e,e.timer=Bt(r,0,e.time)}function Qt(t,n){var e,r,i,o=t.__transition,a=!0;if(o){n=null==n?null:n+"";for(i in o)(e=o[i]).name===n?(r=e.state===mr,e.state=_r,e.timer.stop(),r&&e.on.call("interrupt",t,t.__data__,e.index,e.group),delete o[i]):a=!1;a&&delete t.__transition}}function Zt(t){return this.each(function(){Qt(this,t)})}function tn(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function nn(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function en(){}function rn(t){var n;return t=(t+"").trim().toLowerCase(),(n=Mr.exec(t))?(n=parseInt(n[1],16),new ln(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1)):(n=Nr.exec(t))?on(parseInt(n[1],16)):(n=kr.exec(t))?new ln(n[1],n[2],n[3],1):(n=Ar.exec(t))?new ln(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Sr.exec(t))?an(n[1],n[2],n[3],n[4]):(n=Er.exec(t))?an(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Cr.exec(t))?cn(n[1],n[2]/100,n[3]/100,1):(n=Pr.exec(t))?cn(n[1],n[2]/100,n[3]/100,n[4]):Tr.hasOwnProperty(t)?on(Tr[t]):"transparent"===t?new ln(NaN,NaN,NaN,0):null}function on(t){return new ln(t>>16&255,t>>8&255,255&t,1)}function an(t,n,e,r){return r<=0&&(t=n=e=NaN),new ln(t,n,e,r)}function un(t){return t instanceof en||(t=rn(t)),t?(t=t.rgb(),new ln(t.r,t.g,t.b,t.opacity)):new ln}function sn(t,n,e,r){return 1===arguments.length?un(t):new ln(t,n,e,null==r?1:r)}function ln(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function cn(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new pn(t,n,e,r)}function fn(t){if(t instanceof pn)return new pn(t.h,t.s,t.l,t.opacity);if(t instanceof en||(t=rn(t)),!t)return new pn;if(t instanceof pn)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,s=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e<r):e===o?(r-n)/u+2:(n-e)/u+4,u/=s<.5?o+i:2-o-i,a*=60):u=s>0&&s<1?0:a,new pn(a,u,s,t.opacity)}function hn(t,n,e,r){return 1===arguments.length?fn(t):new pn(t,n,e,null==r?1:r)}function pn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function dn(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function yn(t){if(t instanceof vn)return new vn(t.l,t.a,t.b,t.opacity);if(t instanceof Nn){var n=t.h*qr;return new vn(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof ln||(t=un(t));var e=bn(t.r),r=bn(t.g),i=bn(t.b),o=mn((.4124564*e+.3575761*r+.1804375*i)/Or),a=mn((.2126729*e+.7151522*r+.072175*i)/Vr),u=mn((.0193339*e+.119192*r+.9503041*i)/Xr);return new vn(116*a-16,500*(o-a),200*(a-u),t.opacity)}function gn(t,n,e,r){return 1===arguments.length?yn(t):new vn(t,n,e,null==r?1:r)}function vn(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function mn(t){return t>Fr?Math.pow(t,1/3):t/Br+Lr}function wn(t){return t>jr?t*t*t:Br*(t-Lr)}function _n(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function bn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function xn(t){if(t instanceof Nn)return new Nn(t.h,t.c,t.l,t.opacity);t instanceof vn||(t=yn(t));var n=Math.atan2(t.b,t.a)*Ir;return new Nn(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Mn(t,n,e,r){return 1===arguments.length?xn(t):new Nn(t,n,e,null==r?1:r)}function Nn(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function kn(t){if(t instanceof Sn)return new Sn(t.h,t.s,t.l,t.opacity);t instanceof ln||(t=un(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Gr*r+Yr*n-Ur*e)/(Gr+Yr-Ur),o=r-i,a=($r*(e-i)-Hr*o)/Rr,u=Math.sqrt(a*a+o*o)/($r*i*(1-i)),s=u?Math.atan2(a,o)*Ir-120:NaN;return new Sn(s<0?s+360:s,u,i,t.opacity)}function An(t,n,e,r){return 1===arguments.length?kn(t):new Sn(t,n,e,null==r?1:r)}function Sn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function En(t){return function(){return t}}function Cn(t,n){return function(e){return t+e*n}}function Pn(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)}}function Tn(t,n){var e=n-t;return e?Cn(t,e>180||e<-180?e-360*Math.round(e/360):e):En(isNaN(t)?n:t)}function qn(t){return 1===(t=+t)?In:function(n,e){return e-n?Pn(n,e,t):En(isNaN(n)?e:n)}}function In(t,n){var e=n-t;return e?Cn(t,e):En(isNaN(t)?n:t)}function zn(t,n){return t=+t,n-=t,function(e){return t+n*e}}function On(t){return function(){return t}}function Vn(t){return function(n){return t(n)+""}}function Xn(t,n){var e,r,i,o=ni.lastIndex=ei.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(e=ni.exec(t))&&(r=ei.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:zn(e,r)})),o=ei.lastIndex;return o<n.length&&(i=n.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?s[0]?Vn(s[0].x):On(n):(n=s.length,function(t){for(var e,r=0;r<n;++r)u[(e=s[r]).i]=e.x(t);return u.join("")})}function Ln(t,n,e,r,i,o){var a,u,s;return(a=Math.sqrt(t*t+n*n))&&(t/=a,n/=a),(s=t*e+n*r)&&(e-=t*s,r-=n*s),(u=Math.sqrt(e*e+r*r))&&(e/=u,r/=u,s/=u),t*r<n*e&&(t=-t,n=-n,s=-s,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*ri,skewX:Math.atan(s)*ri,scaleX:a,scaleY:u}}function jn(t){return"none"===t?ii:(Jr||(Jr=document.createElement("DIV"),Kr=document.documentElement,Qr=document.defaultView),Jr.style.transform=t,t=Qr.getComputedStyle(Kr.appendChild(Jr),null).getPropertyValue("transform"),Kr.removeChild(Jr),t=t.slice(7,-1).split(","),Ln(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function Bn(t){return null==t?ii:(Zr||(Zr=document.createElementNS("http://www.w3.org/2000/svg","g")),Zr.setAttribute("transform",t),(t=Zr.transform.baseVal.consolidate())?(t=t.matrix,Ln(t.a,t.b,t.c,t.d,t.e,t.f)):ii)}function Fn(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}function o(t,r,i,o,a,u){if(t!==i||r!==o){var s=a.push("translate(",null,n,null,e);u.push({i:s-4,x:zn(t,i)},{i:s-2,x:zn(r,o)})}else(i||o)&&a.push("translate("+i+n+o+e)}function a(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:zn(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}function u(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:zn(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}function s(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:zn(t,e)},{i:u-2,x:zn(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}return function(n,e){var r=[],i=[];return n=t(n),e=t(e),o(n.translateX,n.translateY,e.translateX,e.translateY,r,i),a(n.rotate,e.rotate,r,i),u(n.skewX,e.skewX,r,i),s(n.scaleX,n.scaleY,e.scaleX,e.scaleY,r,i),n=e=null,function(t){for(var n,e=-1,o=i.length;++e<o;)r[(n=i[e]).i]=n.x(t);return r.join("")}}}function Wn(t){return function n(e){function r(n,r){var i=t((n=An(n)).h,(r=An(r)).h),o=In(n.s,r.s),a=In(n.l,r.l),u=In(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=a(Math.pow(t,e)),n.opacity=u(t),n+""}}return e=+e,r.gamma=n,r}(1)}function Dn(t,n){var e,r;return function(){var i=Gt(this,t),o=i.tween;if(o!==e){r=e=o;for(var a=0,u=r.length;a<u;++a)if(r[a].name===n){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function Hn(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=Gt(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:n,value:e},s=0,l=i.length;s<l;++s)if(i[s].name===n){i[s]=u;break}s===l&&i.push(u)}o.tween=i}}function Rn(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=Jt(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?Dn:Hn)(e,t,n))}function $n(t,n,e){var r=t._id;return t.each(function(){var t=Gt(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)}),function(t){return Jt(t,r).value[n]}}function Yn(t,n){var e;return("number"==typeof n?zn:n instanceof rn?ti:(e=rn(n))?(n=e,ti):Xn)(t,n)}function Un(t){return function(){this.removeAttribute(t)}}function Gn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Jn(t,n,e){var r,i;return function(){var o=this.getAttribute(t);return o===e?null:o===r?i:i=n(r=o,e)}}function Kn(t,n,e){var r,i;return function(){var o=this.getAttributeNS(t.space,t.local);return o===e?null:o===r?i:i=n(r=o,e)}}function Qn(t,n,e){var r,i,o;return function(){var a,u=e(this);return null==u?void this.removeAttribute(t):(a=this.getAttribute(t),a===u?null:a===r&&u===i?o:o=n(r=a,i=u))}}function Zn(t,n,e){var r,i,o;return function(){var a,u=e(this);return null==u?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),a===u?null:a===r&&u===i?o:o=n(r=a,i=u))}}function te(t,e){var r=n(t),i="transform"===r?ai:Yn;return this.attrTween(t,"function"==typeof e?(r.local?Zn:Qn)(r,i,$n(this,"attr."+t,e)):null==e?(r.local?Gn:Un)(r):(r.local?Kn:Jn)(r,i,e))}function ne(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttributeNS(t.space,t.local,r(n))}}return e._value=n,e}function ee(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttribute(t,r(n))}}return e._value=n,e}function re(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;var i=n(t);return this.tween(r,(i.local?ne:ee)(i,e))}function ie(t,n){return function(){Ut(this,t).delay=+n.apply(this,arguments)}}function oe(t,n){return n=+n,function(){Ut(this,t).delay=n}}function ae(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?ie:oe)(n,t)):Jt(this.node(),n).delay}function ue(t,n){return function(){Gt(this,t).duration=+n.apply(this,arguments)}}function se(t,n){return n=+n,function(){Gt(this,t).duration=n}}function le(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?ue:se)(n,t)):Jt(this.node(),n).duration}function ce(t,n){if("function"!=typeof n)throw new Error;return function(){Gt(this,t).ease=n}}function fe(t){var n=this._id;return arguments.length?this.each(ce(n,t)):Jt(this.node(),n).ease}function he(t){"function"!=typeof t&&(t=Ge(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,s=r[i]=[],l=0;l<u;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new Ie(r,this._parents,this._name,this._id)}function pe(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var s,l=n[u],c=e[u],f=l.length,h=a[u]=new Array(f),p=0;p<f;++p)(s=l[p]||c[p])&&(h[p]=s);for(;u<r;++u)a[u]=n[u];return new Ie(a,this._parents,this._name,this._id)}function de(t){return(t+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t})}function ye(t,n,e){var r,i,o=de(n)?Ut:Gt;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}function ge(t,n){var e=this._id;return arguments.length<2?Jt(this.node(),e).on.on(t):this.each(ye(e,t,n))}function ve(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function me(){return this.on("end.remove",ve(this._id))}function we(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=h(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u,s,l=r[a],c=l.length,f=o[a]=new Array(c),p=0;p<c;++p)(u=l[p])&&(s=t.call(u,u.__data__,p,l))&&("__data__"in u&&(s.__data__=u.__data__),f[p]=s,Yt(f[p],n,e,p,f,Jt(u,e)));return new Ie(o,this._parents,n,e)}function _e(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=y(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var s,l=r[u],c=l.length,f=0;f<c;++f)if(s=l[f]){for(var h,p=t.call(s,s.__data__,f,l),d=Jt(s,e),g=0,v=p.length;g<v;++g)(h=p[g])&&Yt(h,n,e,g,p,d);o.push(p),a.push(s)}return new Ie(o,a,n,e)}function be(){return new ui(this._groups,this._parents)}function xe(t,n){var e,r,i;return function(){var o=D(this).getComputedStyle(this,null),a=o.getPropertyValue(t),u=(this.style.removeProperty(t),o.getPropertyValue(t));return a===u?null:a===e&&u===r?i:i=n(e=a,r=u)}}function Me(t){return function(){this.style.removeProperty(t)}}function Ne(t,n,e){var r,i;return function(){var o=D(this).getComputedStyle(this,null).getPropertyValue(t);return o===e?null:o===r?i:i=n(r=o,e)}}function ke(t,n,e){var r,i,o;return function(){var a=D(this).getComputedStyle(this,null),u=a.getPropertyValue(t),s=e(this);return null==s&&(this.style.removeProperty(t),s=a.getPropertyValue(t)),u===s?null:u===r&&s===i?o:o=n(r=u,i=s)}}function Ae(t,n,e){var r="transform"==(t+="")?oi:Yn;return null==n?this.styleTween(t,xe(t,r)).on("end.style."+t,Me(t)):this.styleTween(t,"function"==typeof n?ke(t,r,$n(this,"style."+t,n)):Ne(t,r,n),e)}function Se(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}function Ee(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,Se(t,n,null==e?"":e))}function Ce(t){return function(){this.textContent=t}}function Pe(t){return function(){var n=t(this);this.textContent=null==n?"":n}}function Te(t){return this.tween("text","function"==typeof t?Pe($n(this,"text",t)):Ce(null==t?"":t+""))}function qe(){for(var t=this._name,n=this._id,e=Oe(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,l=0;l<s;++l)if(a=u[l]){var c=Jt(a,n);Yt(a,t,e,l,u,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Ie(r,this._parents,t,e)}function Ie(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function ze(t){return Pt().transition(t)}function Oe(){return++si}function Ve(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function Xe(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return yi.time=Xt(),yi;return e}function Le(t){var n,e;t instanceof Ie?(n=t._id,t=t._name):(n=Oe(),(e=yi).time=Xt(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,l=0;l<s;++l)(a=u[l])&&Yt(a,t,n,l,u,e||Xe(a,n));return new Ie(r,this._parents,t,n)}function je(t){return t&&"object"==typeof t&&"default"in t?t.default:t}function Be(t,n){return n={exports:{}},t(n,n.exports),n.exports}function Fe(t){return t<414?"12px":"14px"}function We(t){function n(){var n=Tt("div"+(t?"#"+t:"."+x));return n.empty()&&(n=Tt(document.createElement("div"))),n.attr("id",t).attr("class",x).style("position","absolute").style("top",0).style("left",0).style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),n.node()}function e(t){if(t=t.node())return"svg"===t.tagName.toLowerCase()?t:t.ownerSVGElement}function r(){return null===M&&(M=n(),A.appendChild(M)),Tt(M)}function i(n){A||document.body.appendChild(M);var r=e(n);if(r){null!=r.createSVGPoint&&(N=r.createSVGPoint()),r=Tt(r);var o=r.select("defs");o.empty()&&(o=r.append("defs"));var a=C;void 0===a&&(a=i.defaultStyle(S,_i));var u=o.selectAll("style"+(t?"#style-tip-"+t:".style-"+x)).data(a?[a]:[]);u.exit().remove(),u=u.enter().append("style").attr("type","text/css").attr("id",t?"style-tip-"+t:null).attr("class",t?null:"style-"+x).merge(u),u.text(function(t){return t})}}function o(){var t=p();return{top:t.n.y-M.offsetHeight,left:t.n.x-M.offsetWidth/2}}function a(){var t=p();return{top:t.s.y,left:t.s.x-M.offsetWidth/2}}function u(){var t=p();return{top:t.e.y-M.offsetHeight/2,left:t.e.x}}function s(){var t=p();return{top:t.w.y-M.offsetHeight/2,left:t.w.x-M.offsetWidth}}function l(){var t=p();return{top:t.nw.y-M.offsetHeight,left:t.nw.x-M.offsetWidth}}function c(){var t=p();return{top:t.ne.y-M.offsetHeight,left:t.ne.x}}function f(){var t=p();return{top:t.sw.y,left:t.sw.x-M.offsetWidth}}function h(){var t=p();return{top:t.se.y,left:t.se.x}}function p(){for(var t=k||Ke.target;"undefined"==typeof t.getScreenCTM&&"undefined"===t.parentNode;)t=t.parentNode;var n={},e=t.getScreenCTM(),r=t.getBBox(),i=r.width,o=r.height,a=r.x,u=r.y;return N.x=a,N.y=u,n.nw=N.matrixTransform(e),N.x+=i,n.ne=N.matrixTransform(e),N.y+=o,n.se=N.matrixTransform(e),N.x-=i,n.sw=N.matrixTransform(e),N.y-=o/2,n.w=N.matrixTransform(e),N.x+=i,n.e=N.matrixTransform(e),N.x-=i/2,N.y-=o/2,n.n=N.matrixTransform(e),N.y+=o,n.s=N.matrixTransform(e),n}var d=function(t){return"function"==typeof t?t:function(){return t}},y=function(){return"n"},g=function(){return[0,0]},v=function(){return" "},m=function(t){return t instanceof Node};ze();var w=y,_=g,b=v,x="d3-tip",M=n(),N=null,k=null,A=null,S="light",E=!1,C=void 0;i.self=function(){return"div"+(t?"#"+t:"."+x)},i.id=function(){return t},i.classed=function(t){return arguments.length?(x=t,i):x},i.show=function(){A||i.parent(document.body);var t=[].slice.call(arguments);k=this;var n=!1;1===t.length&&m(t[0])&&(k=t[0],t[0]=k.__data__,n=!0);var e=b.apply(k,t);if(null==e)return i;for(var o=_.apply(k,t),a=w.apply(k,t),u=r(),s=T.length,l=M.offsetParent.getBoundingClientRect();s--;)u.classed(T[s],!1);u.classed(a,!0).html(e);var c=P[a].apply(k);return u.style("top",c.top+o[0]-l.top+"px").style("left",c.left+o[1]-l.left+"px"),n&&window.addEventListener("load",function(){c=P[a].apply(k),u.style("top",c.top+o[0]-l.top+"px").style("left",c.left+o[1]-l.left+"px")}),null!=E&&E!==!1&&(u=u.transition(),"number"==typeof E&&(u=u.duration(E))),u.style("opacity",1),i},i.hide=function(){var t=r();return t.interrupt(),t.style("opacity",0),i},i.attr=function(t){if(arguments.length<2&&"string"==typeof t)return r().attr(t);var n=[].slice.call(arguments);return Pt.prototype.attr.apply(r(),n),i},i.direction=function(t){return arguments.length?(w=null==t?t:d(t),i):w},i.offset=function(t){return arguments.length?(_=null==t?t:d(t),i):_},i.html=function(t){return arguments.length?(b=null==t?t:d(t),i):b},i.destroy=function(){return M&&(r().remove(),M=null),i},i.style=function(t){return arguments.length?(C=t,i):C},i.transition=function(t){return arguments.length?(E=t,i):E},i.theme=function(t){return arguments.length?(S=t,i):S},i.parent=function(t){if(!arguments.length)return A;A=t||document.body,A.appendChild(M);var n=Tt(M.offsetParent);return"static"===n.style("position")&&n.style("position","relative"),i},i.defaultStyle=function(t,n){return"\n "+wi.fixed.cssImport+" \n "+i.self()+" {\n line-height: 1;\n font-family: "+wi.fixed.family+";\n color: "+gi[t].negative.text+";\n font-weight: "+wi.fixed.weightMonochrome+"; \n font-size: "+wi.fixed.sizeForWidth(n)+"; \n padding: 8px;\n background: "+gi[t].negative.background+";\n border-radius: 2px;\n pointer-events: none;\n }\n /* Creates a small triangle extender for the tooltip */\n "+i.self()+":after {\n box-sizing: border-box;\n display: inline;\n width: 100%;\n line-height: 1;\n color: "+gi[t].negative.background+";\n font-size: "+wi.fixed.sizeForWidth(1)+"; \n position: absolute;\n pointer-events: none;\n }\n /* Northward tooltips */\n "+i.self()+'.n:after {\n content: "\\25bc";\n margin: -3px 0 0 0;\n top: 100%;\n left: 0;\n text-align: center;\n }\n /* Eastward tooltips */\n '+i.self()+'.e:after {\n content: "\\25C0";\n margin: -7px 0 0 0;\n top: 50%;\n left: -7px;\n }\n /* Southward tooltips */\n '+i.self()+'.s:after {\n content: "\\25B2";\n margin: 0 0 1px 0;\n top: -10px;\n left: 0;\n text-align: center;\n }\n /* Westward tooltips */\n '+i.self()+'.w:after {\n content: "\\25B6";\n margin: -7px 0 0 0;\n top: 50%;\n left: 100%;\n } \n ';
};var P={n:o,s:a,e:u,w:s,nw:l,ne:c,sw:f,se:h},T=Object.keys(P);return i}var De="0.3.3",He="http://www.w3.org/1999/xhtml",Re={svg:"http://www.w3.org/2000/svg",xhtml:He,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},$e=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Ye=document.documentElement;if(!Ye.matches){var Ue=Ye.webkitMatchesSelector||Ye.msMatchesSelector||Ye.mozMatchesSelector||Ye.oMatchesSelector;$e=function(t){return function(){return Ue.call(this,t)}}}}var Ge=$e,Je={},Ke=null;if("undefined"!=typeof document){var Qe=document.documentElement;"onmouseenter"in Qe||(Je={mouseenter:"mouseover",mouseleave:"mouseout"})}_.prototype={constructor:_,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Ze="$";tt.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var tr=[null];Ct.prototype=Pt.prototype={constructor:Ct,select:p,selectAll:g,filter:v,data:N,enter:w,exit:k,merge:A,order:S,sort:E,call:P,nodes:T,node:q,size:I,empty:z,each:O,attr:W,style:Y,property:K,classed:at,text:ct,html:dt,raise:gt,lower:mt,append:wt,insert:bt,remove:Mt,datum:Nt,on:c,dispatch:Et};var nr={value:function(){}};It.prototype=qt.prototype={constructor:It,on:function(t,n){var e,r=this._,i=zt(t+"",r),o=-1,a=i.length;{if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<a;)if(e=(t=i[o]).type)r[e]=Vt(r[e],t.name,n);else if(null==n)for(e in r)r[e]=Vt(r[e],t.name,null);return this}for(;++o<a;)if((e=(t=i[o]).type)&&(e=Ot(r[e],t.name)))return e}},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new It(t)},call:function(t,n){var e=arguments;if((r=arguments.length-2)>0)for(var r,i,o=new Array(r),a=0;a<r;++a)o[a]=e[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=this._[t],a=0,r=i.length;a<r;++a)i[a].value.apply(n,o)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};var er,rr,ir=0,or=0,ar=0,ur=1e3,sr=0,lr=0,cr=0,fr="object"==typeof performance&&performance.now?performance:Date,hr="function"==typeof requestAnimationFrame?fr===Date?function(t){requestAnimationFrame(function(){t(fr.now())})}:requestAnimationFrame:function(t){setTimeout(t,17)};jt.prototype=Bt.prototype={constructor:jt,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Xt():+e)+(null==n?0:+n),this._next||rr===this||(rr?rr._next=this:er=this,rr=this),this._call=t,this._time=e,Rt()},stop:function(){this._call&&(this._call=null,this._time=1/0,Rt())}};var pr=qt("start","end","interrupt"),dr=[],yr=0,gr=1,vr=2,mr=3,wr=4,_r=5,br=.7,xr=1/br,Mr=/^#([0-9a-f]{3})$/,Nr=/^#([0-9a-f]{6})$/,kr=/^rgb\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*\)$/,Ar=/^rgb\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/,Sr=/^rgba\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,Er=/^rgba\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,Cr=/^hsl\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/,Pr=/^hsla\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,Tr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};tn(en,rn,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),tn(ln,sn,nn(en,{brighter:function(t){return t=null==t?xr:Math.pow(xr,t),new ln(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?br:Math.pow(br,t),new ln(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 t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(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+")")}})),tn(pn,hn,nn(en,{brighter:function(t){return t=null==t?xr:Math.pow(xr,t),new pn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?br:Math.pow(br,t),new pn(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 ln(dn(t>=240?t-240:t+120,i,r),dn(t,i,r),dn(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}}));var qr=Math.PI/180,Ir=180/Math.PI,zr=18,Or=.95047,Vr=1,Xr=1.08883,Lr=4/29,jr=6/29,Br=3*jr*jr,Fr=jr*jr*jr;tn(vn,gn,nn(en,{brighter:function(t){return new vn(this.l+zr*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new vn(this.l-zr*(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=Vr*wn(t),n=Or*wn(n),e=Xr*wn(e),new ln(_n(3.2404542*n-1.5371385*t-.4985314*e),_n(-.969266*n+1.8760108*t+.041556*e),_n(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),tn(Nn,Mn,nn(en,{brighter:function(t){return new Nn(this.h,this.c,this.l+zr*(null==t?1:t),this.opacity)},darker:function(t){return new Nn(this.h,this.c,this.l-zr*(null==t?1:t),this.opacity)},rgb:function(){return yn(this).rgb()}}));var Wr=-.14861,Dr=1.78277,Hr=-.29227,Rr=-.90649,$r=1.97294,Yr=$r*Rr,Ur=$r*Dr,Gr=Dr*Hr-Rr*Wr;tn(Sn,An,nn(en,{brighter:function(t){return t=null==t?xr:Math.pow(xr,t),new Sn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?br:Math.pow(br,t),new Sn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*qr,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new ln(255*(n+e*(Wr*r+Dr*i)),255*(n+e*(Hr*r+Rr*i)),255*(n+e*($r*r)),this.opacity)}}));var Jr,Kr,Qr,Zr,ti=function t(n){function e(t,n){var e=r((t=sn(t)).r,(n=sn(n)).r),i=r(t.g,n.g),o=r(t.b,n.b),a=r(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}var r=qn(n);return e.gamma=t,e}(1),ni=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ei=new RegExp(ni.source,"g"),ri=180/Math.PI,ii={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},oi=Fn(jn,"px, ","px)","deg)"),ai=Fn(Bn,", ",")",")");Wn(Tn);var ui=(Wn(In),Pt.prototype.constructor),si=0,li=Pt.prototype;Ie.prototype=ze.prototype={constructor:Ie,select:we,selectAll:_e,filter:he,merge:pe,selection:be,transition:qe,call:li.call,nodes:li.nodes,node:li.node,size:li.size,empty:li.empty,each:li.each,on:ge,attr:te,attrTween:re,style:Ae,styleTween:Ee,text:Te,remove:me,tween:Rn,delay:ae,duration:le,ease:fe};var ci=3,fi=(function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(ci),function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(ci),function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(ci),1.70158),hi=(function t(n){function e(t){return t*t*((n+1)*t-n)}return n=+n,e.overshoot=t,e}(fi),function t(n){function e(t){return--t*t*((n+1)*t+n)+1}return n=+n,e.overshoot=t,e}(fi),function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(fi),2*Math.PI),pi=1,di=.3,yi=(function t(n,e){function r(t){return n*Math.pow(2,10*--t)*Math.sin((i-t)/e)}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=hi);return r.amplitude=function(n){return t(n,e*hi)},r.period=function(e){return t(n,e)},r}(pi,di),function t(n,e){function r(t){return 1-n*Math.pow(2,-10*(t=+t))*Math.sin((t+i)/e)}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=hi);return r.amplitude=function(n){return t(n,e*hi)},r.period=function(e){return t(n,e)},r}(pi,di),function t(n,e){function r(t){return((t=2*t-1)<0?n*Math.pow(2,10*t)*Math.sin((i-t)/e):2-n*Math.pow(2,-10*t)*Math.sin((i+t)/e))/2}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=hi);return r.amplitude=function(n){return t(n,e*hi)},r.period=function(e){return t(n,e)},r}(pi,di),{time:null,delay:0,duration:250,ease:Ve});Pt.prototype.interrupt=Zt,Pt.prototype.transition=Le;var gi={light:{background:"#ffffff",text:"#262626",axis:"#262626",grid:"#e0e0e0",highlight:"rgba(225,16,16,0.5)",lowlight:"rgba(127,127,127,0.3)",shadow:"rgba(127,127,127,0.4)",fillOpacity:.33,negative:{background:"rgba(0, 0, 0, 0.66)",text:"#ffffff"}},dark:{background:"#333333",text:"#ffffff",axis:"#ffffff",grid:"#6d6d6d",highlight:"rgba(225,16,16,0.5)",lowlight:"rgba(127,127,127,0.5)",shadow:"rgba(255,255,255,0.4)",fillOpacity:.33,negative:{background:"rgba(255, 255, 255, 0.85)",text:"#262626"}}},vi=Be(function(t){function n(t,n){return 1-3*n+3*t}function e(t,n){return 3*n-6*t}function r(t){return 3*t}function i(t,i,o){return((n(i,o)*t+e(i,o))*t+r(i))*t}function o(t,i,o){return 3*n(i,o)*t*t+2*e(i,o)*t+r(i)}function a(t,n,e,r,o){var a,u,s=0;do u=n+(e-n)/2,a=i(u,r,o)-t,a>0?e=u:n=u;while(Math.abs(a)>c&&++s<f);return u}function u(t,n,e,r){for(var a=0;a<s;++a){var u=o(n,e,r);if(0===u)return n;var l=i(n,e,r)-t;n-=l/u}return n}var s=4,l=.001,c=1e-7,f=10,h=11,p=1/(h-1),d="function"==typeof Float32Array;t.exports=function(t,n,e,r){function s(n){for(var r=0,i=1,s=h-1;i!==s&&c[i]<=n;++i)r+=p;--i;var f=(n-c[i])/(c[i+1]-c[i]),d=r+f*p,y=o(d,t,e);return y>=l?u(n,d,t,e):0===y?d:a(n,r,r+p,t,e)}if(!(0<=t&&t<=1&&0<=e&&e<=1))throw new Error("bezier x values must be in [0, 1] range");var c=d?new Float32Array(h):new Array(h);if(t!==n||e!==r)for(var f=0;f<h;++f)c[f]=i(f*p,t,e);return function(o){return t===n&&e===r?o:0===o?0:1===o?1:i(s(o),n,r)}}});je(vi);var mi='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',wi={fixed:{cssImport:"@import url(https://fonts.googleapis.com/css?family=Source+Code+Pro:300,500);",weightMonochrome:300,weightColor:500,sizeForWidth:Fe,family:'"Source Code Pro", Consolas, "Liberation Mono", Menlo, Courier, monospace'},variable:{cssImport:"@import url(https://fonts.googleapis.com/css?family=Raleway:400,500);",weightMonochrome:400,weightColor:500,sizeForWidth:Fe,family:'"Raleway", "Trebuchet MS", '+mi},brand:{cssImport:"@import url(https://fonts.googleapis.com/css?family=Electrolize);",weightMonochrome:400,weightColor:400,sizeForWidth:Fe,family:'"Electrolize", '+mi}},_i=800;t.version=De,t.body=We,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=d3-rs-tip.umd-es2015.min.js.map
{
"name": "@redsift/d3-rs-tip",
"version": "0.3.2",
"version": "0.3.3",
"description": "Tip for graphs using D3v4.",

@@ -34,6 +34,6 @@ "keywords": [

"devDependencies": {
"@redsift/tape-reel": "~0.0.2",
"@redsift/tape-reel": "~0.1.0",
"browser-sync": "^2.13.0",
"del": "^2.2.0",
"eslint": "^3.1.1",
"del": "^2.2.2",
"eslint": "^3.3.1",
"gulp": "^3.9.1",

@@ -43,8 +43,8 @@ "gulp-plumber": "^1.1.0",

"gulp-sourcemaps": "^2.0.0-alpha",
"gulp-uglify": "^1.5.3",
"gulp-uglify": "^2.0.0",
"gulp-util": "^3.0.7",
"rollup": "^0.34.1",
"rollup-plugin-buble": "^0.12.1",
"rollup": "^0.34.10",
"rollup-plugin-buble": "^0.13.0",
"rollup-plugin-commonjs": "^3.0.0",
"rollup-plugin-node-resolve": "^1.7.0",
"rollup-plugin-node-resolve": "^2.0.0",
"rollup-plugin-json": "^2.0.0",

@@ -54,4 +54,4 @@ "rollup-stream": "^1.6.0",

"vinyl-source-stream": "^1.1.0",
"yargs": "^4.7.1"
"yargs": "^5.0.0"
}
}

@@ -65,2 +65,3 @@ /**

function getNodeEl() {
//TODO: this check might not be valid any more
if(node === null) {

@@ -75,2 +76,5 @@ node = initNode();

function _impl(vis) {
if(!parent) {
document.body.appendChild(node);
}
let svg = getSVGNode(vis)

@@ -120,5 +124,7 @@ if (!svg) return;

target = this;
let standalone = false;
if(args.length === 1 && IsDOMElement(args[0])){
target = args[0];
args[0] = target.__data__;
standalone = true;
}

@@ -136,10 +142,22 @@

while(i--) nodel.classed(directions[i], false);
nodel.classed(dir, true).html(content)
let coords = direction_callbacks[dir].apply(target);
nodel.classed(dir, true)
nodel
.style('top', (coords.top + poffset[0]) - parentCoords.top + 'px')
.style('left', (coords.left + poffset[1]) - parentCoords.left + 'px')
.html(content);
if(standalone){
window.addEventListener('load', function() {
// for testing
// console.log('offsets',node.offsetHeight, node.offsetWidth)
coords = direction_callbacks[dir].apply(target);
nodel
.style('top', (coords.top + poffset[0]) - parentCoords.top + 'px')
.style('left', (coords.left + poffset[1]) - parentCoords.left + 'px')
});
}
if (transition != null && transition !== false) {

@@ -151,4 +169,3 @@ nodel = nodel.transition();

}
nodel.style('opacity', 1.0);

@@ -155,0 +172,0 @@

@@ -5,3 +5,3 @@ var tape = require("@redsift/tape-reel")("<div id='test'></div>"),

// This test should be on all brick compatable charts
// This test should be on all brick compatible charts
tape("html() empty state", function(t) {

@@ -8,0 +8,0 @@ var host = tip.body();

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc