bigdata-highway-analytics/App/static/assets/vendor/britecharts/umd/miniTooltip.min.js
18796357645 11657ae4f5 上传
2025-03-31 20:06:02 +08:00

2 lines
60 KiB
JavaScript

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.miniTooltip=n():(t.britecharts=t.britecharts||{},t.britecharts.miniTooltip=n())}(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=102)}([,,function(t,n,e){"use strict";e.r(n);var r=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},i=function(t){var n;return 1===t.length&&(n=t,t=function(t,e){return r(n(t),e)}),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var u=r+i>>>1;t(n[u],e)<0?r=u+1:i=u}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var u=r+i>>>1;t(n[u],e)>0?i=u:r=u+1}return r}}};var u=i(r),o=u.right,a=u.left,c=o,s=function(t,n){null==n&&(n=l);for(var e=0,r=t.length-1,i=t[0],u=new Array(r<0?0:r);e<r;)u[e]=n(i,i=t[++e]);return u};function l(t,n){return[t,n]}var f=function(t,n,e){var r,i,u,o,a=t.length,c=n.length,s=new Array(a*c);for(null==e&&(e=l),r=u=0;r<a;++r)for(o=t[r],i=0;i<c;++i,++u)s[u]=e(o,n[i]);return s},h=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},d=function(t){return null===t?NaN:+t},p=function(t,n){var e,r,i=t.length,u=0,o=-1,a=0,c=0;if(null==n)for(;++o<i;)isNaN(e=d(t[o]))||(c+=(r=e-a)*(e-(a+=r/++u)));else for(;++o<i;)isNaN(e=d(n(t[o],o,t)))||(c+=(r=e-a)*(e-(a+=r/++u)));if(u>1)return c/(u-1)},v=function(t,n){var e=p(t,n);return e?Math.sqrt(e):e},g=function(t,n){var e,r,i,u=t.length,o=-1;if(null==n){for(;++o<u;)if(null!=(e=t[o])&&e>=e)for(r=i=e;++o<u;)null!=(e=t[o])&&(r>e&&(r=e),i<e&&(i=e))}else for(;++o<u;)if(null!=(e=n(t[o],o,t))&&e>=e)for(r=i=e;++o<u;)null!=(e=n(t[o],o,t))&&(r>e&&(r=e),i<e&&(i=e));return[r,i]},y=Array.prototype,m=y.slice,w=y.map,b=function(t){return function(){return t}},_=function(t){return t},x=function(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),u=new Array(i);++r<i;)u[r]=t+r*e;return u},M=Math.sqrt(50),O=Math.sqrt(10),j=Math.sqrt(2),A=function(t,n,e){var r,i,u,o,a=-1;if(e=+e,(t=+t)===(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(o=N(t,n,e))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),n=Math.floor(n/o),u=new Array(i=Math.ceil(n-t+1));++a<i;)u[a]=(t+a)*o;else for(t=Math.floor(t*o),n=Math.ceil(n*o),u=new Array(i=Math.ceil(t-n+1));++a<i;)u[a]=(t-a)/o;return r&&u.reverse(),u};function N(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),u=r/Math.pow(10,i);return i>=0?(u>=M?10:u>=O?5:u>=j?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(u>=M?10:u>=O?5:u>=j?2:1)}function k(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),u=r/i;return u>=M?i*=10:u>=O?i*=5:u>=j&&(i*=2),n<t?-i:i}var E=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},S=function(){var t=_,n=g,e=E;function r(r){var i,u,o=r.length,a=new Array(o);for(i=0;i<o;++i)a[i]=t(r[i],i,r);var s=n(a),l=s[0],f=s[1],h=e(a,l,f);Array.isArray(h)||(h=k(l,f,h),h=x(Math.ceil(l/h)*h,f,h));for(var d=h.length;h[0]<=l;)h.shift(),--d;for(;h[d-1]>f;)h.pop(),--d;var p,v=new Array(d+1);for(i=0;i<=d;++i)(p=v[i]=[]).x0=i>0?h[i-1]:l,p.x1=i<d?h[i]:f;for(i=0;i<o;++i)l<=(u=a[i])&&u<=f&&v[c(h,u,0,d)].push(r[i]);return v}return r.value=function(n){return arguments.length?(t="function"==typeof n?n:b(n),r):t},r.domain=function(t){return arguments.length?(n="function"==typeof t?t:b([t[0],t[1]]),r):n},r.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?b(m.call(t)):b(t),r):e},r},P=function(t,n,e){if(null==e&&(e=d),r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,u=Math.floor(i),o=+e(t[u],u,t);return o+(+e(t[u+1],u+1,t)-o)*(i-u)}},I=function(t,n,e){return t=w.call(t,d).sort(r),Math.ceil((e-n)/(2*(P(t,.75)-P(t,.25))*Math.pow(t.length,-1/3)))},C=function(t,n,e){return Math.ceil((e-n)/(3.5*v(t)*Math.pow(t.length,-1/3)))},q=function(t,n){var e,r,i=t.length,u=-1;if(null==n){for(;++u<i;)if(null!=(e=t[u])&&e>=e)for(r=e;++u<i;)null!=(e=t[u])&&e>r&&(r=e)}else for(;++u<i;)if(null!=(e=n(t[u],u,t))&&e>=e)for(r=e;++u<i;)null!=(e=n(t[u],u,t))&&e>r&&(r=e);return r},T=function(t,n){var e,r=t.length,i=r,u=-1,o=0;if(null==n)for(;++u<r;)isNaN(e=d(t[u]))?--i:o+=e;else for(;++u<r;)isNaN(e=d(n(t[u],u,t)))?--i:o+=e;if(i)return o/i},L=function(t,n){var e,i=t.length,u=-1,o=[];if(null==n)for(;++u<i;)isNaN(e=d(t[u]))||o.push(e);else for(;++u<i;)isNaN(e=d(n(t[u],u,t)))||o.push(e);return P(o.sort(r),.5)},B=function(t){for(var n,e,r,i=t.length,u=-1,o=0;++u<i;)o+=t[u].length;for(e=new Array(o);--i>=0;)for(n=(r=t[i]).length;--n>=0;)e[--o]=r[n];return e},X=function(t,n){var e,r,i=t.length,u=-1;if(null==n){for(;++u<i;)if(null!=(e=t[u])&&e>=e)for(r=e;++u<i;)null!=(e=t[u])&&r>e&&(r=e)}else for(;++u<i;)if(null!=(e=n(t[u],u,t))&&e>=e)for(r=e;++u<i;)null!=(e=n(t[u],u,t))&&r>e&&(r=e);return r},z=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},F=function(t,n){if(e=t.length){var e,i,u=0,o=0,a=t[o];for(null==n&&(n=r);++u<e;)(n(i=t[u],a)<0||0!==n(a,a))&&(a=i,o=u);return 0===n(a,a)?o:void 0}},R=function(t,n,e){for(var r,i,u=(null==e?t.length:e)-(n=null==n?0:+n);u;)i=Math.random()*u--|0,r=t[u+n],t[u+n]=t[i+n],t[i+n]=r;return t},D=function(t,n){var e,r=t.length,i=-1,u=0;if(null==n)for(;++i<r;)(e=+t[i])&&(u+=e);else for(;++i<r;)(e=+n(t[i],i,t))&&(u+=e);return u},$=function(t){if(!(i=t.length))return[];for(var n=-1,e=X(t,V),r=new Array(e);++n<e;)for(var i,u=-1,o=r[n]=new Array(i);++u<i;)o[u]=t[u][n];return r};function V(t){return t.length}var Y=function(){return $(arguments)};e.d(n,"bisect",(function(){return c})),e.d(n,"bisectRight",(function(){return o})),e.d(n,"bisectLeft",(function(){return a})),e.d(n,"ascending",(function(){return r})),e.d(n,"bisector",(function(){return i})),e.d(n,"cross",(function(){return f})),e.d(n,"descending",(function(){return h})),e.d(n,"deviation",(function(){return v})),e.d(n,"extent",(function(){return g})),e.d(n,"histogram",(function(){return S})),e.d(n,"thresholdFreedmanDiaconis",(function(){return I})),e.d(n,"thresholdScott",(function(){return C})),e.d(n,"thresholdSturges",(function(){return E})),e.d(n,"max",(function(){return q})),e.d(n,"mean",(function(){return T})),e.d(n,"median",(function(){return L})),e.d(n,"merge",(function(){return B})),e.d(n,"min",(function(){return X})),e.d(n,"pairs",(function(){return s})),e.d(n,"permute",(function(){return z})),e.d(n,"quantile",(function(){return P})),e.d(n,"range",(function(){return x})),e.d(n,"scan",(function(){return F})),e.d(n,"shuffle",(function(){return R})),e.d(n,"sum",(function(){return D})),e.d(n,"ticks",(function(){return A})),e.d(n,"tickIncrement",(function(){return N})),e.d(n,"tickStep",(function(){return k})),e.d(n,"transpose",(function(){return $})),e.d(n,"variance",(function(){return p})),e.d(n,"zip",(function(){return Y}))},,,function(t,n,e){"use strict";n.a=function(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}},function(t,n,e){"use strict";e.r(n);var r=e(12),i=e(32),u=function(t){return Object(i.a)(Object(r.a)(t).call(document.documentElement))},o=0;function a(){return new c}function c(){this._="@"+(++o).toString(36)}c.prototype=a.prototype={constructor:c,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var s=e(34),l=e(59),f=e(20),h=e(14),d=e(13),p=e(9),v=function(t){return"string"==typeof t?new p.a([document.querySelectorAll(t)],[document.documentElement]):new p.a([null==t?[]:t],p.c)},g=e(19),y=e(33),m=e(35),w=e(60),b=e(22),_=function(t,n){null==n&&(n=Object(b.a)().touches);for(var e=0,r=n?n.length:0,i=new Array(r);e<r;++e)i[e]=Object(d.a)(t,n[e]);return i},x=e(21),M=e(17);e.d(n,"create",(function(){return u})),e.d(n,"creator",(function(){return r.a})),e.d(n,"local",(function(){return a})),e.d(n,"matcher",(function(){return s.a})),e.d(n,"mouse",(function(){return l.a})),e.d(n,"namespace",(function(){return f.a})),e.d(n,"namespaces",(function(){return h.a})),e.d(n,"clientPoint",(function(){return d.a})),e.d(n,"select",(function(){return i.a})),e.d(n,"selectAll",(function(){return v})),e.d(n,"selection",(function(){return p.b})),e.d(n,"selector",(function(){return g.a})),e.d(n,"selectorAll",(function(){return y.a})),e.d(n,"style",(function(){return m.b})),e.d(n,"touch",(function(){return w.a})),e.d(n,"touches",(function(){return _})),e.d(n,"window",(function(){return x.a})),e.d(n,"event",(function(){return M.c})),e.d(n,"customEvent",(function(){return M.a}))},function(t,n,e){"use strict";e.d(n,"a",(function(){return i})),e.d(n,"d",(function(){return u})),e.d(n,"c",(function(){return o})),e.d(n,"e",(function(){return b})),e.d(n,"h",(function(){return M})),e.d(n,"g",(function(){return O})),e.d(n,"b",(function(){return j})),e.d(n,"f",(function(){return P}));var r=e(11);function i(){}var u=.7,o=1/u,a="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,f=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),h=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),d=new RegExp("^rgba\\("+[a,a,a,c]+"\\)$"),p=new RegExp("^rgba\\("+[s,s,s,c]+"\\)$"),v=new RegExp("^hsl\\("+[c,s,s]+"\\)$"),g=new RegExp("^hsla\\("+[c,s,s,c]+"\\)$"),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function m(){return this.rgb().formatHex()}function w(){return this.rgb().formatRgb()}function b(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=l.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?_(n):3===e?new j(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?new j(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?new j(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=f.exec(t))?new j(n[1],n[2],n[3],1):(n=h.exec(t))?new j(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=d.exec(t))?x(n[1],n[2],n[3],n[4]):(n=p.exec(t))?x(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=v.exec(t))?E(n[1],n[2]/100,n[3]/100,1):(n=g.exec(t))?E(n[1],n[2]/100,n[3]/100,n[4]):y.hasOwnProperty(t)?_(y[t]):"transparent"===t?new j(NaN,NaN,NaN,0):null}function _(t){return new j(t>>16&255,t>>8&255,255&t,1)}function x(t,n,e,r){return r<=0&&(t=n=e=NaN),new j(t,n,e,r)}function M(t){return t instanceof i||(t=b(t)),t?new j((t=t.rgb()).r,t.g,t.b,t.opacity):new j}function O(t,n,e,r){return 1===arguments.length?M(t):new j(t,n,e,null==r?1:r)}function j(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function A(){return"#"+k(this.r)+k(this.g)+k(this.b)}function N(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function k(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function E(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new I(t,n,e,r)}function S(t){if(t instanceof I)return new I(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=b(t)),!t)return new I;if(t instanceof I)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,u=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,c=o-u,s=(o+u)/2;return c?(a=n===o?(e-r)/c+6*(e<r):e===o?(r-n)/c+2:(n-e)/c+4,c/=s<.5?o+u:2-o-u,a*=60):c=s>0&&s<1?0:a,new I(a,c,s,t.opacity)}function P(t,n,e,r){return 1===arguments.length?S(t):new I(t,n,e,null==r?1:r)}function I(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function C(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}Object(r.a)(i,b,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:m,formatHex:m,formatHsl:function(){return S(this).formatHsl()},formatRgb:w,toString:w}),Object(r.a)(j,O,Object(r.b)(i,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new j(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?u:Math.pow(u,t),new j(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:A,formatHex:A,formatRgb:N,toString:N})),Object(r.a)(I,P,Object(r.b)(i,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new I(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?u:Math.pow(u,t),new I(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 j(C(t>=240?t-240:t+120,i,r),C(t,i,r),C(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,n,e){"use strict";var r=e(18);n.a=function(t){return(t=Object(r.a)(Math.abs(t)))?t[1]:NaN}},function(t,n,e){"use strict";var r=e(19),i=e(33),u=e(34),o=function(t){return new Array(t.length)};function a(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}a.prototype={constructor:a,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)}};function c(t,n,e,r,i,u){for(var o,c=0,s=n.length,l=u.length;c<l;++c)(o=n[c])?(o.__data__=u[c],r[c]=o):e[c]=new a(t,u[c]);for(;c<s;++c)(o=n[c])&&(i[c]=o)}function s(t,n,e,r,i,u,o){var c,s,l,f={},h=n.length,d=u.length,p=new Array(h);for(c=0;c<h;++c)(s=n[c])&&(p[c]=l="$"+o.call(s,s.__data__,c,n),l in f?i[c]=s:f[l]=s);for(c=0;c<d;++c)(s=f[l="$"+o.call(t,u[c],c,u)])?(r[c]=s,s.__data__=u[c],f[l]=null):e[c]=new a(t,u[c]);for(c=0;c<h;++c)(s=n[c])&&f[p[c]]===s&&(i[c]=s)}function l(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}var f=e(20);function h(t){return function(){this.removeAttribute(t)}}function d(t){return function(){this.removeAttributeNS(t.space,t.local)}}function p(t,n){return function(){this.setAttribute(t,n)}}function v(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function g(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function y(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)}}var m=e(35);function w(t){return function(){delete this[t]}}function b(t,n){return function(){this[t]=n}}function _(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function x(t){return t.trim().split(/^|\s+/)}function M(t){return t.classList||new O(t)}function O(t){this._node=t,this._names=x(t.getAttribute("class")||"")}function j(t,n){for(var e=M(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function A(t,n){for(var e=M(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function N(t){return function(){j(this,t)}}function k(t){return function(){A(this,t)}}function E(t,n){return function(){(n.apply(this,arguments)?j:A)(this,t)}}O.prototype={add:function(t){this._names.indexOf(t)<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}};function S(){this.textContent=""}function P(t){return function(){this.textContent=t}}function I(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function C(){this.innerHTML=""}function q(t){return function(){this.innerHTML=t}}function T(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function L(){this.nextSibling&&this.parentNode.appendChild(this)}function B(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var X=e(12);function z(){return null}function F(){var t=this.parentNode;t&&t.removeChild(this)}function R(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function D(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}var $=e(17),V=e(21);function Y(t,n,e){var r=Object(V.a)(t),i=r.CustomEvent;"function"==typeof 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 H(t,n){return function(){return Y(this,t,n)}}function Q(t,n){return function(){return Y(this,t,n.apply(this,arguments))}}e.d(n,"c",(function(){return U})),e.d(n,"a",(function(){return G}));var U=[null];function G(t,n){this._groups=t,this._parents=n}function Z(){return new G([[document.documentElement]],U)}G.prototype=Z.prototype={constructor:G,select:function(t){"function"!=typeof t&&(t=Object(r.a)(t));for(var n=this._groups,e=n.length,i=new Array(e),u=0;u<e;++u)for(var o,a,c=n[u],s=c.length,l=i[u]=new Array(s),f=0;f<s;++f)(o=c[f])&&(a=t.call(o,o.__data__,f,c))&&("__data__"in o&&(a.__data__=o.__data__),l[f]=a);return new G(i,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=Object(i.a)(t));for(var n=this._groups,e=n.length,r=[],u=[],o=0;o<e;++o)for(var a,c=n[o],s=c.length,l=0;l<s;++l)(a=c[l])&&(r.push(t.call(a,a.__data__,l,c)),u.push(a));return new G(r,u)},filter:function(t){"function"!=typeof t&&(t=Object(u.a)(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],c=a.length,s=r[i]=[],l=0;l<c;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new G(r,this._parents)},data:function(t,n){if(!t)return g=new Array(this.size()),h=-1,this.each((function(t){g[++h]=t})),g;var e,r=n?s:c,i=this._parents,u=this._groups;"function"!=typeof t&&(e=t,t=function(){return e});for(var o=u.length,a=new Array(o),l=new Array(o),f=new Array(o),h=0;h<o;++h){var d=i[h],p=u[h],v=p.length,g=t.call(d,d&&d.__data__,h,i),y=g.length,m=l[h]=new Array(y),w=a[h]=new Array(y);r(d,p,m,w,f[h]=new Array(v),g,n);for(var b,_,x=0,M=0;x<y;++x)if(b=m[x]){for(x>=M&&(M=x+1);!(_=w[M])&&++M<y;);b._next=_||null}}return(a=new G(a,i))._enter=l,a._exit=f,a},enter:function(){return new G(this._enter||this._groups.map(o),this._parents)},exit:function(){return new G(this._exit||this._groups.map(o),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,u=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=n&&(i=n(i)),null==e?u.remove():e(u),r&&i?r.merge(i).order():i},merge:function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,u=Math.min(r,i),o=new Array(r),a=0;a<u;++a)for(var c,s=n[a],l=e[a],f=s.length,h=o[a]=new Array(f),d=0;d<f;++d)(c=s[d]||l[d])&&(h[d]=c);for(;a<r;++a)o[a]=n[a];return new G(o,this._parents)},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],u=i.length-1,o=i[u];--u>=0;)(r=i[u])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=l);for(var e=this._groups,r=e.length,i=new Array(r),u=0;u<r;++u){for(var o,a=e[u],c=a.length,s=i[u]=new Array(c),f=0;f<c;++f)(o=a[f])&&(s[f]=o);s.sort(n)}return new G(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),n=-1;return this.each((function(){t[++n]=this})),t},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,u=r.length;i<u;++i){var o=r[i];if(o)return o}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,u=n[e],o=0,a=u.length;o<a;++o)(i=u[o])&&t.call(i,i.__data__,o,u);return this},attr:function(t,n){var e=Object(f.a)(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?d:h:"function"==typeof n?e.local?y:g:e.local?v:p)(e,n))},style:m.a,property:function(t,n){return arguments.length>1?this.each((null==n?w:"function"==typeof n?_:b)(t,n)):this.node()[t]},classed:function(t,n){var e=x(t+"");if(arguments.length<2){for(var r=M(this.node()),i=-1,u=e.length;++i<u;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?E:n?N:k)(e,n))},text:function(t){return arguments.length?this.each(null==t?S:("function"==typeof t?I:P)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?C:("function"==typeof t?T:q)(t)):this.node().innerHTML},raise:function(){return this.each(L)},lower:function(){return this.each(B)},append:function(t){var n="function"==typeof t?t:Object(X.a)(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:Object(X.a)(t),i=null==n?z:"function"==typeof n?n:Object(r.a)(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(F)},clone:function(t){return this.select(t?D:R)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:$.b,dispatch:function(t,n){return this.each(("function"==typeof n?Q:H)(t,n))}};n.b=Z},function(t,n,e){"use strict";e.d(n,"c",(function(){return u})),e.d(n,"b",(function(){return o})),e.d(n,"a",(function(){return a}));var r=e(23);function i(t,n){return function(e){return t+e*n}}function u(t,n){var e=n-t;return e?i(t,e>180||e<-180?e-360*Math.round(e/360):e):Object(r.a)(isNaN(t)?n:t)}function o(t){return 1==(t=+t)?a:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):Object(r.a)(isNaN(n)?e:n)}}function a(t,n){var e=n-t;return e?i(t,e):Object(r.a)(isNaN(t)?n:t)}},function(t,n,e){"use strict";function r(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}e.d(n,"b",(function(){return r})),n.a=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t}},function(t,n,e){"use strict";var r=e(20),i=e(14);function u(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===i.b&&n.documentElement.namespaceURI===i.b?n.createElement(t):n.createElementNS(e,t)}}function o(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}n.a=function(t){var n=Object(r.a)(t);return(n.local?o:u)(n)}},function(t,n,e){"use strict";n.a=function(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=n.clientX,r.y=n.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop]}},function(t,n,e){"use strict";e.d(n,"b",(function(){return r}));var r="http://www.w3.org/1999/xhtml";n.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},,,function(t,n,e){"use strict";e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return l}));var r={},i=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(r={mouseenter:"mouseover",mouseleave:"mouseout"}));function u(t,n,e){return t=o(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function o(t,n,e){return function(r){var u=i;i=r;try{t.call(this,this.__data__,n,e)}finally{i=u}}}function a(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 c(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,u=n.length;r<u;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function s(t,n,e){var i=r.hasOwnProperty(t.type)?u:o;return function(r,u,o){var a,c=this.__on,s=i(n,u,o);if(c)for(var l=0,f=c.length;l<f;++l)if((a=c[l]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=s,a.capture=e),void(a.value=n);this.addEventListener(t.type,s,e),a={type:t.type,name:t.name,value:n,listener:s,capture:e},c?c.push(a):this.__on=[a]}}function l(t,n,e,r){var u=i;t.sourceEvent=i,i=t;try{return n.apply(e,r)}finally{i=u}}n.b=function(t,n,e){var r,i,u=a(t+""),o=u.length;if(!(arguments.length<2)){for(l=n?s:c,null==e&&(e=!1),r=0;r<o;++r)this.each(l(u[r],n,e));return this}var l=this.node().__on;if(l)for(var f,h=0,d=l.length;h<d;++h)for(r=0,f=l[h];r<o;++r)if((i=u[r]).type===f.type&&i.name===f.name)return f.value}},function(t,n,e){"use strict";n.a=function(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}},function(t,n,e){"use strict";function r(){}n.a=function(t){return null==t?r:function(){return this.querySelector(t)}}},function(t,n,e){"use strict";var r=e(14);n.a=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),r.a.hasOwnProperty(n)?{space:r.a[n],local:t}:t}},function(t,n,e){"use strict";n.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,n,e){"use strict";var r=e(17);n.a=function(){for(var t,n=r.c;t=n.sourceEvent;)n=t;return n}},function(t,n,e){"use strict";n.a=function(t){return function(){return t}}},function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"a",(function(){return u}));var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(n=r.exec(t)))throw new Error("invalid format: "+t);var n;return new u({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function u(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=u.prototype,u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},,function(t,n,e){"use strict";function r(t,n,e,r,i){var u=t*t,o=u*t;return((1-3*t+3*u-o)*n+(4-6*u+3*o)*e+(1+3*t+3*u-3*o)*r+o*i)/6}e.d(n,"a",(function(){return r})),n.b=function(t){var n=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),u=t[i],o=t[i+1],a=i>0?t[i-1]:2*u-o,c=i<n-1?t[i+2]:2*o-u;return r((e-i/n)*n,a,u,o,c)}}},,,function(t,n,e){"use strict";function r(t){return t*t*t}function i(t){return--t*t*t+1}function u(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}e.d(n,"a",(function(){return r})),e.d(n,"c",(function(){return i})),e.d(n,"b",(function(){return u}))},,,function(t,n,e){"use strict";var r=e(9);n.a=function(t){return"string"==typeof t?new r.a([[document.querySelector(t)]],[document.documentElement]):new r.a([[t]],r.c)}},function(t,n,e){"use strict";function r(){return[]}n.a=function(t){return null==t?r:function(){return this.querySelectorAll(t)}}},function(t,n,e){"use strict";n.a=function(t){return function(){return this.matches(t)}}},function(t,n,e){"use strict";e.d(n,"b",(function(){return a}));var r=e(21);function i(t){return function(){this.style.removeProperty(t)}}function u(t,n,e){return function(){this.style.setProperty(t,n,e)}}function o(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function a(t,n){return t.style.getPropertyValue(n)||Object(r.a)(t).getComputedStyle(t,null).getPropertyValue(n)}n.a=function(t,n,e){return arguments.length>1?this.each((null==n?i:"function"==typeof n?o:u)(t,n,null==e?"":e)):a(this.node(),t)}},,function(t,n,e){"use strict";var r,i=e(8),u=e(24),o=e(18),a=function(t,n){var e=Object(o.a)(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},c={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return a(100*t,n)},r:a,s:function(t,n){var e=Object(o.a)(t,n);if(!e)return t+"";var i=e[0],u=e[1],a=u-(r=3*Math.max(-8,Math.min(8,Math.floor(u/3))))+1,c=i.length;return a===c?i:a>c?i+new Array(a-c+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+Object(o.a)(t,Math.max(0,n+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},s=function(t){return t},l=Array.prototype.map,f=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];n.a=function(t){var n,e,o=void 0===t.grouping||void 0===t.thousands?s:(n=l.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,u=[],o=0,a=n[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),u.push(t.substring(i-=a,i+a)),!((c+=a+1)>r));)a=n[o=(o+1)%n.length];return u.reverse().join(e)}),a=void 0===t.currency?"":t.currency[0]+"",h=void 0===t.currency?"":t.currency[1]+"",d=void 0===t.decimal?".":t.decimal+"",p=void 0===t.numerals?s:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(l.call(t.numerals,String)),v=void 0===t.percent?"%":t.percent+"",g=void 0===t.minus?"-":t.minus+"",y=void 0===t.nan?"NaN":t.nan+"";function m(t){var n=(t=Object(u.b)(t)).fill,e=t.align,i=t.sign,s=t.symbol,l=t.zero,m=t.width,w=t.comma,b=t.precision,_=t.trim,x=t.type;"n"===x?(w=!0,x="g"):c[x]||(void 0===b&&(b=12),_=!0,x="g"),(l||"0"===n&&"="===e)&&(l=!0,n="0",e="=");var M="$"===s?a:"#"===s&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",O="$"===s?h:/[%p]/.test(x)?v:"",j=c[x],A=/[defgprs%]/.test(x);function N(t){var u,a,c,s=M,h=O;if("c"===x)h=j(t)+h,t="";else{var v=(t=+t)<0;if(t=isNaN(t)?y:j(Math.abs(t),b),_&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),v&&0==+t&&(v=!1),s=(v?"("===i?i:g:"-"===i||"("===i?"":i)+s,h=("s"===x?f[8+r/3]:"")+h+(v&&"("===i?")":""),A)for(u=-1,a=t.length;++u<a;)if(48>(c=t.charCodeAt(u))||c>57){h=(46===c?d+t.slice(u+1):t.slice(u))+h,t=t.slice(0,u);break}}w&&!l&&(t=o(t,1/0));var N=s.length+t.length+h.length,k=N<m?new Array(m-N+1).join(n):"";switch(w&&l&&(t=o(k+t,k.length?m-h.length:1/0),k=""),e){case"<":t=s+t+h+k;break;case"=":t=s+k+t+h;break;case"^":t=k.slice(0,N=k.length>>1)+s+t+h+k.slice(N);break;default:t=k+s+t+h}return p(t)}return b=void 0===b?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),N.toString=function(){return t+""},N}return{format:m,formatPrefix:function(t,n){var e=m(((t=Object(u.b)(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Object(i.a)(n)/3))),o=Math.pow(10,-r),a=f[8+r/3];return function(t){return e(o*t)+a}}}}},,function(t,n,e){"use strict";e.d(n,"b",(function(){return c})),e.d(n,"c",(function(){return s}));var r=e(7),i=e(26),u=e(53),o=e(10);function a(t){return function(n){var e,i,u=n.length,o=new Array(u),a=new Array(u),c=new Array(u);for(e=0;e<u;++e)i=Object(r.g)(n[e]),o[e]=i.r||0,a[e]=i.g||0,c[e]=i.b||0;return o=t(o),a=t(a),c=t(c),i.opacity=1,function(t){return i.r=o(t),i.g=a(t),i.b=c(t),i+""}}}n.a=function t(n){var e=Object(o.b)(n);function i(t,n){var i=e((t=Object(r.g)(t)).r,(n=Object(r.g)(n)).r),u=e(t.g,n.g),a=e(t.b,n.b),c=Object(o.a)(t.opacity,n.opacity);return function(n){return t.r=i(n),t.g=u(n),t.b=a(n),t.opacity=c(n),t+""}}return i.gamma=t,i}(1);var c=a(i.b),s=a(u.a)},function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return a}));var r,i,u,o=e(37);function a(t){return r=Object(o.a)(t),i=r.format,u=r.formatPrefix,r}a({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})},,,,,function(t,n,e){"use strict";e.r(n);var r=e(40);e.d(n,"formatDefaultLocale",(function(){return r.a})),e.d(n,"format",(function(){return r.b})),e.d(n,"formatPrefix",(function(){return r.c}));var i=e(37);e.d(n,"formatLocale",(function(){return i.a}));var u=e(24);e.d(n,"formatSpecifier",(function(){return u.b})),e.d(n,"FormatSpecifier",(function(){return u.a}));var o=e(61);e.d(n,"precisionFixed",(function(){return o.a}));var a=e(62);e.d(n,"precisionPrefix",(function(){return a.a}));var c=e(63);e.d(n,"precisionRound",(function(){return c.a}))},,,,,,,,function(t,n,e){"use strict";var r=e(26);n.a=function(t){var n=t.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*n),u=t[(i+n-1)%n],o=t[i%n],a=t[(i+1)%n],c=t[(i+2)%n];return Object(r.a)((e-i/n)*n,u,o,a,c)}}},,function(t,n,e){"use strict";var r=e(5),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,u=new RegExp(i.source,"g");n.a=function(t,n){var e,o,a,c=i.lastIndex=u.lastIndex=0,s=-1,l=[],f=[];for(t+="",n+="";(e=i.exec(t))&&(o=u.exec(n));)(a=o.index)>c&&(a=n.slice(c,a),l[s]?l[s]+=a:l[++s]=a),(e=e[0])===(o=o[0])?l[s]?l[s]+=o:l[++s]=o:(l[++s]=null,f.push({i:s,x:Object(r.a)(e,o)})),c=u.lastIndex;return c<n.length&&(a=n.slice(c),l[s]?l[s]+=a:l[++s]=a),l.length<2?f[0]?function(t){return function(n){return t(n)+""}}(f[0].x):function(t){return function(){return t}}(n):(n=f.length,function(t){for(var e,r=0;r<n;++r)l[(e=f[r]).i]=e.x(t);return l.join("")})}},,,,function(t,n,e){"use strict";var r=e(22),i=e(13);n.a=function(t){var n=Object(r.a)();return n.changedTouches&&(n=n.changedTouches[0]),Object(i.a)(t,n)}},function(t,n,e){"use strict";var r=e(22),i=e(13);n.a=function(t,n,e){arguments.length<3&&(e=n,n=Object(r.a)().changedTouches);for(var u,o=0,a=n?n.length:0;o<a;++o)if((u=n[o]).identifier===e)return Object(i.a)(t,u);return null}},function(t,n,e){"use strict";var r=e(8);n.a=function(t){return Math.max(0,-Object(r.a)(Math.abs(t)))}},function(t,n,e){"use strict";var r=e(8);n.a=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(n)/3)))-Object(r.a)(Math.abs(t)))}},function(t,n,e){"use strict";var r=e(8);n.a=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Object(r.a)(n)-Object(r.a)(t))+1}},function(t,n,e){"use strict";function r(t){return+t}function i(t){return t*t}function u(t){return t*(2-t)}function o(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}e.r(n);var a=e(29),c=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),s=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),l=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}(3),f=Math.PI,h=f/2;function d(t){return 1-Math.cos(t*h)}function p(t){return Math.sin(t*h)}function v(t){return(1-Math.cos(f*t))/2}function g(t){return Math.pow(2,10*t-10)}function y(t){return 1-Math.pow(2,-10*t)}function m(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function w(t){return 1-Math.sqrt(1-t*t)}function b(t){return Math.sqrt(1- --t*t)}function _(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var x=7.5625;function M(t){return 1-O(1-t)}function O(t){return(t=+t)<4/11?x*t*t:t<8/11?x*(t-=6/11)*t+.75:t<10/11?x*(t-=9/11)*t+.9375:x*(t-=21/22)*t+63/64}function j(t){return((t*=2)<=1?1-O(1-t):O(t-1)+1)/2}var A=function t(n){function e(t){return t*t*((n+1)*t-n)}return n=+n,e.overshoot=t,e}(1.70158),N=function t(n){function e(t){return--t*t*((n+1)*t+n)+1}return n=+n,e.overshoot=t,e}(1.70158),k=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}(1.70158),E=2*Math.PI,S=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=E);function i(t){return n*Math.pow(2,10*--t)*Math.sin((r-t)/e)}return i.amplitude=function(n){return t(n,e*E)},i.period=function(e){return t(n,e)},i}(1,.3),P=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=E);function i(t){return 1-n*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/e)}return i.amplitude=function(n){return t(n,e*E)},i.period=function(e){return t(n,e)},i}(1,.3),I=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=E);function i(t){return((t=2*t-1)<0?n*Math.pow(2,10*t)*Math.sin((r-t)/e):2-n*Math.pow(2,-10*t)*Math.sin((r+t)/e))/2}return i.amplitude=function(n){return t(n,e*E)},i.period=function(e){return t(n,e)},i}(1,.3);e.d(n,"easeLinear",(function(){return r})),e.d(n,"easeQuad",(function(){return o})),e.d(n,"easeQuadIn",(function(){return i})),e.d(n,"easeQuadOut",(function(){return u})),e.d(n,"easeQuadInOut",(function(){return o})),e.d(n,"easeCubic",(function(){return a.b})),e.d(n,"easeCubicIn",(function(){return a.a})),e.d(n,"easeCubicOut",(function(){return a.c})),e.d(n,"easeCubicInOut",(function(){return a.b})),e.d(n,"easePoly",(function(){return l})),e.d(n,"easePolyIn",(function(){return c})),e.d(n,"easePolyOut",(function(){return s})),e.d(n,"easePolyInOut",(function(){return l})),e.d(n,"easeSin",(function(){return v})),e.d(n,"easeSinIn",(function(){return d})),e.d(n,"easeSinOut",(function(){return p})),e.d(n,"easeSinInOut",(function(){return v})),e.d(n,"easeExp",(function(){return m})),e.d(n,"easeExpIn",(function(){return g})),e.d(n,"easeExpOut",(function(){return y})),e.d(n,"easeExpInOut",(function(){return m})),e.d(n,"easeCircle",(function(){return _})),e.d(n,"easeCircleIn",(function(){return w})),e.d(n,"easeCircleOut",(function(){return b})),e.d(n,"easeCircleInOut",(function(){return _})),e.d(n,"easeBounce",(function(){return O})),e.d(n,"easeBounceIn",(function(){return M})),e.d(n,"easeBounceOut",(function(){return O})),e.d(n,"easeBounceInOut",(function(){return j})),e.d(n,"easeBack",(function(){return k})),e.d(n,"easeBackIn",(function(){return A})),e.d(n,"easeBackOut",(function(){return N})),e.d(n,"easeBackInOut",(function(){return k})),e.d(n,"easeElastic",(function(){return P})),e.d(n,"easeElasticIn",(function(){return S})),e.d(n,"easeElasticOut",(function(){return P})),e.d(n,"easeElasticInOut",(function(){return I}))},,,,,function(t,n,e){"use strict";var r={value:function(){}};function i(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new u(r)}function u(t){this._=t}function o(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 a(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function c(t,n,e){for(var i=0,u=t.length;i<u;++i)if(t[i].name===n){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=e&&t.push({name:n,value:e}),t}u.prototype=i.prototype={constructor:u,on:function(t,n){var e,r=this._,i=o(t+"",r),u=-1,s=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++u<s;)if(e=(t=i[u]).type)r[e]=c(r[e],t.name,n);else if(null==n)for(e in r)r[e]=c(r[e],t.name,null);return this}for(;++u<s;)if((e=(t=i[u]).type)&&(e=a(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new u(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),u=0;u<e;++u)i[u]=arguments[u+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(u=0,e=(r=this._[t]).length;u<e;++u)r[u].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,u=r.length;i<u;++i)r[i].value.apply(n,e)}},n.a=i},,,function(t,n,e){"use strict";e.r(n);var r,i,u=e(9),o=e(69),a=0,c=0,s=0,l=0,f=0,h=0,d="object"==typeof performance&&performance.now?performance:Date,p="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function v(){return f||(p(g),f=d.now()+h)}function g(){f=0}function y(){this._call=this._time=this._next=null}function m(t,n,e){var r=new y;return r.restart(t,n,e),r}function w(){f=(l=d.now())+h,a=c=0;try{!function(){v(),++a;for(var t,n=r;n;)(t=f-n._time)>=0&&n._call.call(null,t),n=n._next;--a}()}finally{a=0,function(){var t,n,e=r,u=1/0;for(;e;)e._call?(u>e._time&&(u=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:r=n);i=t,_(u)}(),f=0}}function b(){var t=d.now(),n=t-l;n>1e3&&(h-=n,l=t)}function _(t){a||(c&&(c=clearTimeout(c)),t-f>24?(t<1/0&&(c=setTimeout(w,t-d.now()-h)),s&&(s=clearInterval(s))):(s||(l=d.now(),s=setInterval(b,1e3)),a=1,p(w)))}y.prototype=m.prototype={constructor:y,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?v():+e)+(null==n?0:+n),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=e,_()},stop:function(){this._call&&(this._call=null,this._time=1/0,_())}};var x=function(t,n,e){var r=new y;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r},M=Object(o.a)("start","end","cancel","interrupt"),O=[],j=function(t,n,e,r,i,u){var o=t.__transition;if(o){if(e in o)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function u(c){var s,l,f,h;if(1!==e.state)return a();for(s in i)if((h=i[s]).name===e.name){if(3===h.state)return x(u);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[s]):+s<n&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[s])}if(x((function(){3===e.state&&(e.state=4,e.timer.restart(o,e.delay,e.time),o(c))})),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,r=new Array(f=e.tween.length),s=0,l=-1;s<f;++s)(h=e.tween[s].value.call(t,t.__data__,e.index,e.group))&&(r[++l]=h);r.length=l+1}}function o(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(a),e.state=5,1),u=-1,o=r.length;++u<o;)r[u].call(t,i);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),a())}function a(){for(var r in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=m((function(t){e.state=1,e.timer.restart(u,e.delay,e.time),e.delay<=t&&u(t-e.delay)}),0,e.time)}(t,e,{name:n,index:r,group:i,on:M,tween:O,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:0})};function A(t,n){var e=k(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function N(t,n){var e=k(t,n);if(e.state>3)throw new Error("too late; already running");return e}function k(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}var E=function(t,n){var e,r,i,u=t.__transition,o=!0;if(u){for(i in n=null==n?null:n+"",u)(e=u[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete u[i]):o=!1;o&&delete t.__transition}},S=e(74),P=e(20);function I(t,n){var e,r;return function(){var i=N(this,t),u=i.tween;if(u!==e)for(var o=0,a=(r=e=u).length;o<a;++o)if(r[o].name===n){(r=r.slice()).splice(o,1);break}i.tween=r}}function C(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var u=N(this,t),o=u.tween;if(o!==r){i=(r=o).slice();for(var a={name:n,value:e},c=0,s=i.length;c<s;++c)if(i[c].name===n){i[c]=a;break}c===s&&i.push(a)}u.tween=i}}function q(t,n,e){var r=t._id;return t.each((function(){var t=N(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return k(t,r).value[n]}}var T=e(7),L=e(5),B=e(39),X=e(55),z=function(t,n){var e;return("number"==typeof n?L.a:n instanceof T.e?B.a:(e=Object(T.e)(n))?(n=e,B.a):X.a)(t,n)};function F(t){return function(){this.removeAttribute(t)}}function R(t){return function(){this.removeAttributeNS(t.space,t.local)}}function D(t,n,e){var r,i,u=e+"";return function(){var o=this.getAttribute(t);return o===u?null:o===r?i:i=n(r=o,e)}}function $(t,n,e){var r,i,u=e+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===u?null:o===r?i:i=n(r=o,e)}}function V(t,n,e){var r,i,u;return function(){var o,a,c=e(this);if(null!=c)return(o=this.getAttribute(t))===(a=c+"")?null:o===r&&a===i?u:(i=a,u=n(r=o,c));this.removeAttribute(t)}}function Y(t,n,e){var r,i,u;return function(){var o,a,c=e(this);if(null!=c)return(o=this.getAttributeNS(t.space,t.local))===(a=c+"")?null:o===r&&a===i?u:(i=a,u=n(r=o,c));this.removeAttributeNS(t.space,t.local)}}function H(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function Q(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function U(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&Q(t,i)),e}return i._value=n,i}function G(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&H(t,i)),e}return i._value=n,i}function Z(t,n){return function(){A(this,t).delay=+n.apply(this,arguments)}}function J(t,n){return n=+n,function(){A(this,t).delay=n}}function K(t,n){return function(){N(this,t).duration=+n.apply(this,arguments)}}function W(t,n){return n=+n,function(){N(this,t).duration=n}}function tt(t,n){if("function"!=typeof n)throw new Error;return function(){N(this,t).ease=n}}var nt=e(34);function et(t,n,e){var r,i,u=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?A:N;return function(){var o=u(this,t),a=o.on;a!==r&&(i=(r=a).copy()).on(n,e),o.on=i}}var rt=e(19),it=e(33),ut=u.b.prototype.constructor,ot=e(35);function at(t){return function(){this.style.removeProperty(t)}}function ct(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function st(t,n,e){var r,i;function u(){var u=n.apply(this,arguments);return u!==i&&(r=(i=u)&&ct(t,u,e)),r}return u._value=n,u}function lt(t){return function(n){this.textContent=t.call(this,n)}}function ft(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&lt(r)),n}return r._value=t,r}var ht=0;function dt(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function pt(t){return Object(u.b)().transition(t)}function vt(){return++ht}var gt=u.b.prototype;dt.prototype=pt.prototype={constructor:dt,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Object(rt.a)(t));for(var r=this._groups,i=r.length,u=new Array(i),o=0;o<i;++o)for(var a,c,s=r[o],l=s.length,f=u[o]=new Array(l),h=0;h<l;++h)(a=s[h])&&(c=t.call(a,a.__data__,h,s))&&("__data__"in a&&(c.__data__=a.__data__),f[h]=c,j(f[h],n,e,h,f,k(a,e)));return new dt(u,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Object(it.a)(t));for(var r=this._groups,i=r.length,u=[],o=[],a=0;a<i;++a)for(var c,s=r[a],l=s.length,f=0;f<l;++f)if(c=s[f]){for(var h,d=t.call(c,c.__data__,f,s),p=k(c,e),v=0,g=d.length;v<g;++v)(h=d[v])&&j(h,n,e,v,d,p);u.push(d),o.push(c)}return new dt(u,o,n,e)},filter:function(t){"function"!=typeof t&&(t=Object(nt.a)(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var u,o=n[i],a=o.length,c=r[i]=[],s=0;s<a;++s)(u=o[s])&&t.call(u,u.__data__,s,o)&&c.push(u);return new dt(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,u=Math.min(r,i),o=new Array(r),a=0;a<u;++a)for(var c,s=n[a],l=e[a],f=s.length,h=o[a]=new Array(f),d=0;d<f;++d)(c=s[d]||l[d])&&(h[d]=c);for(;a<r;++a)o[a]=n[a];return new dt(o,this._parents,this._name,this._id)},selection:function(){return new ut(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=vt(),r=this._groups,i=r.length,u=0;u<i;++u)for(var o,a=r[u],c=a.length,s=0;s<c;++s)if(o=a[s]){var l=k(o,n);j(o,t,e,s,a,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new dt(r,this._parents,t,e)},call:gt.call,nodes:gt.nodes,node:gt.node,size:gt.size,empty:gt.empty,each:gt.each,on:function(t,n){var e=this._id;return arguments.length<2?k(this.node(),e).on.on(t):this.each(et(e,t,n))},attr:function(t,n){var e=Object(P.a)(t),r="transform"===e?S.b:z;return this.attrTween(t,"function"==typeof n?(e.local?Y:V)(e,r,q(this,"attr."+t,n)):null==n?(e.local?R:F)(e):(e.local?$:D)(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=Object(P.a)(t);return this.tween(e,(r.local?U:G)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?S.a:z;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var u=Object(ot.b)(this,t),o=(this.style.removeProperty(t),Object(ot.b)(this,t));return u===o?null:u===e&&o===r?i:i=n(e=u,r=o)}}(t,r)).on("end.style."+t,at(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,u;return function(){var o=Object(ot.b)(this,t),a=e(this),c=a+"";return null==a&&(this.style.removeProperty(t),c=a=Object(ot.b)(this,t)),o===c?null:o===r&&c===i?u:(i=c,u=n(r=o,a))}}(t,r,q(this,"style."+t,n))).each(function(t,n){var e,r,i,u,o="style."+n,a="end."+o;return function(){var c=N(this,t),s=c.on,l=null==c.value[o]?u||(u=at(n)):void 0;s===e&&i===l||(r=(e=s).copy()).on(a,i=l),c.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,u=e+"";return function(){var o=Object(ot.b)(this,t);return o===u?null:o===r?i:i=n(r=o,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(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,st(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(q(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,ft(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}));var t},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=k(this.node(),e).tween,u=0,o=i.length;u<o;++u)if((r=i[u]).name===t)return r.value;return null}return this.each((null==n?I:C)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Z:J)(n,t)):k(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?K:W)(n,t)):k(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(tt(n,t)):k(this.node(),n).ease},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(u,o){var a={value:o},c={value:function(){0==--i&&u()}};e.each((function(){var e=N(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(c)),e.on=n}))}))}};var yt={time:null,delay:0,duration:250,ease:e(29).b};function mt(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return yt.time=v(),yt;return e}u.b.prototype.interrupt=function(t){return this.each((function(){E(this,t)}))},u.b.prototype.transition=function(t){var n,e;t instanceof dt?(n=t._id,t=t._name):(n=vt(),(e=yt).time=v(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,u=0;u<i;++u)for(var o,a=r[u],c=a.length,s=0;s<c;++s)(o=a[s])&&j(o,t,n,s,a,e||mt(o,n));return new dt(r,this._parents,t,n)};var wt=[null],bt=function(t,n){var e,r,i=t.__transition;if(i)for(r in n=null==n?null:n+"",i)if((e=i[r]).state>1&&e.name===n)return new dt([[t]],wt,n,+r);return null};e.d(n,"transition",(function(){return pt})),e.d(n,"active",(function(){return bt})),e.d(n,"interrupt",(function(){return E}))},,function(t,n,e){"use strict";var r,i,u,o,a=e(5),c=180/Math.PI,s={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},l=function(t,n,e,r,i,u){var o,a,s;return(o=Math.sqrt(t*t+n*n))&&(t/=o,n/=o),(s=t*e+n*r)&&(e-=t*s,r-=n*s),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,s/=a),t*r<n*e&&(t=-t,n=-n,s=-s,o=-o),{translateX:i,translateY:u,rotate:Math.atan2(n,t)*c,skewX:Math.atan(s)*c,scaleX:o,scaleY:a}};function f(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(u,o){var c=[],s=[];return u=t(u),o=t(o),function(t,r,i,u,o,c){if(t!==i||r!==u){var s=o.push("translate(",null,n,null,e);c.push({i:s-4,x:Object(a.a)(t,i)},{i:s-2,x:Object(a.a)(r,u)})}else(i||u)&&o.push("translate("+i+n+u+e)}(u.translateX,u.translateY,o.translateX,o.translateY,c,s),function(t,n,e,u){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),u.push({i:e.push(i(e)+"rotate(",null,r)-2,x:Object(a.a)(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(u.rotate,o.rotate,c,s),function(t,n,e,u){t!==n?u.push({i:e.push(i(e)+"skewX(",null,r)-2,x:Object(a.a)(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(u.skewX,o.skewX,c,s),function(t,n,e,r,u,o){if(t!==e||n!==r){var c=u.push(i(u)+"scale(",null,",",null,")");o.push({i:c-4,x:Object(a.a)(t,e)},{i:c-2,x:Object(a.a)(n,r)})}else 1===e&&1===r||u.push(i(u)+"scale("+e+","+r+")")}(u.scaleX,u.scaleY,o.scaleX,o.scaleY,c,s),u=o=null,function(t){for(var n,e=-1,r=s.length;++e<r;)c[(n=s[e]).i]=n.x(t);return c.join("")}}}e.d(n,"a",(function(){return h})),e.d(n,"b",(function(){return d}));var h=f((function(t){return"none"===t?s:(r||(r=document.createElement("DIV"),i=document.documentElement,u=document.defaultView),r.style.transform=t,t=u.getComputedStyle(i.appendChild(r),null).getPropertyValue("transform"),i.removeChild(r),t=t.slice(7,-1).split(","),l(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),d=f((function(t){return null==t?s:(o||(o=document.createElementNS("http://www.w3.org/2000/svg","g")),o.setAttribute("transform",t),(t=o.transform.baseVal.consolidate())?(t=t.matrix,l(t.a,t.b,t.c,t.d,t.e,t.f)):s)}),", ",")",")")},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){"use strict";var r,i=function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,n){var e=[],r=!0,i=!1,u=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done)&&(e.push(o.value),!n||e.length!==n);r=!0);}catch(t){i=!0,u=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw u}}return e}(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")};void 0===(r=function(t){var n=e(2),r=e(64),u=e(45),o=e(6);e(72);return function(){var t=12,e=12,a=12,c=12,s="",l="value",f="name",h=r.easeQuadInOut,d=void 0,p=void 0,v=0,g=20,y=".2f",m=function(t){return u.format(y)(t)},w=void 0,b=void 0,_=void 0;function x(n){n.each((function(){w=100-c-e,b=100-t-a,function(n){_||(_=o.select(n).append("g").classed("britechart britechart-mini-tooltip",!0)).append("g").classed("tooltip-container-group",!0).attr("transform","translate( "+c+", "+t+")").append("g").classed("tooltip-group",!0);_.transition().attr("width",100).attr("height",100),x.hide()}(this),p=_.selectAll(".tooltip-group").append("g").classed("tooltip-text select-disable",!0),d=p.append("rect").classed("tooltip-background",!0).attr("width",100).attr("height",100).attr("rx",1).attr("ry",1).attr("y",-t).attr("x",-c).style("fill","#FFFFFF").style("stroke","#D2D6DF").style("stroke-width",1).style("pointer-events","none").style("opacity",.9)}))}function M(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=e.filter((function(t){return!!t})).map((function(t){return t.node().getBBox().width}));return n.max(i)}function O(n,r){var u=i(n,2),o=u[0],s=u[1],l=i(r,2),f=l[0],h=l[1];return[function(t,n){return t-c-e-w-n>0}(f,o)?o+g:o-w-g-e,function(n,e){return n-t-a-b-e>0}(h,s)?s+v:s-b-v-a]}function j(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t[l]||"",e=t[f]||"",r=21,i=31.86,u="1em",o=0,a=void 0,c=void 0,h=void 0;p.selectAll("text").remove(),s&&(h=p.append("text").classed("mini-tooltip-title",!0).attr("dy",u).attr("y",0).style("fill","#666a73").style("font-size",14).text(s),o=r+o),e&&(c=p.append("text").classed("mini-tooltip-name",!0).attr("dy",u).attr("y",o||0).style("fill","#666a73").style("font-size",14).text(e),o=r+o),n&&(a=p.append("text").classed("mini-tooltip-value",!0).attr("dy",u).attr("y",o||0).style("fill","#45494E").style("font-size",27).style("font-weight",200).text(m(n)),o=i+o),w=M(c,h,a),b=o}function A(n,r,u){var o,s,l,f;j(n),o=O(r,u),s=i(o,2),l=s[0],f=s[1],_.transition().duration(200).ease(h).style("opacity",1).attr("height",b+t+a).attr("width",w+c+e).attr("transform","translate("+l+","+f+")"),d.attr("height",b+t+a).attr("width",w+c+e)}return x.hide=function(){return _.style("visibility","hidden"),this},x.nameLabel=function(t){return arguments.length?(f=t,this):f},x.numberFormat=function(t){return arguments.length?(y=t,this):y},x.valueFormatter=function(t){return arguments.length?(m=t,this):m},x.show=function(){var t;return j(t),_.style("visibility","visible").style("opacity",0),this},x.title=function(t){return arguments.length?(s=t,this):s},x.update=function(t,n,e){return A(t,n,e),this},x.valueLabel=function(t){return arguments.length?(l=t,this):l},x}}.call(n,e,n,t))||(t.exports=r)}])}));
//# sourceMappingURL=miniTooltip.min.js.map