victory-histogram 37.0.2 → 37.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/victory-histogram.js +292 -265
- package/dist/victory-histogram.min.js +1 -1
- package/package.json +4 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.VictoryHistogram=n(require("react")):t.VictoryHistogram=n(t.React)}(self,(function(t){return function(){var n={503:function(t,n,e){var r=e(1171),i=e(7838),o=e(4859),a=e(4073),u=e(8541);function s(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=i,s.prototype.get=o,s.prototype.has=a,s.prototype.set=u,t.exports=s},3273:function(t,n,e){var r=e(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},8708:function(t,n,e){var r=e(1171),i=e(7838),o=e(4859),a=e(4073),u=e(8541);function s(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=i,s.prototype.get=o,s.prototype.has=a,s.prototype.set=u,t.exports=s},2596:function(t,n,e){var r=e(2373).Symbol;t.exports=r},6082:function(t){t.exports=function(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}},5510:function(t,n,e){var r=e(6123);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},9955:function(t){t.exports=function(t,n,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(n,t[r]))return!0;return!1}},8644:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},9559:function(t){t.exports=function(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}},1634:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}},4132:function(t,n,e){var r=e(8347),i=e(788),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var a=t[n];o.call(t,n)&&i(a,e)&&(void 0!==e||n in t)||r(t,n,e)}},3162:function(t,n,e){var r=e(788);t.exports=function(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}},8347:function(t,n,e){var r=e(5525);t.exports=function(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}},6457:function(t,n,e){var r=e(9559),i=e(3608);t.exports=function t(n,e,o,a,u){var s=-1,c=n.length;for(o||(o=i),u||(u=[]);++s<c;){var l=n[s];e>0&&o(l)?e>1?t(l,e-1,o,a,u):r(u,l):a||(u[u.length]=l)}return u}},4432:function(t,n,e){var r=e(9026),i=e(3110);t.exports=function(t,n){for(var e=0,o=(n=r(n,t)).length;null!=t&&e<o;)t=t[i(n[e++])];return e&&e==o?t:void 0}},563:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},6776:function(t){t.exports=function(t,n){return null!=t&&n in Object(t)}},6123:function(t){t.exports=function(t,n,e){for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}},7537:function(t,n,e){var r=e(563),i=e(3474);t.exports=function(t){return i(t)&&"[object Date]"==r(t)}},9070:function(t,n,e){var r=e(7028),i=e(3474);t.exports=function t(n,e,o,a,u){return n===e||(null==n||null==e||!i(n)&&!i(e)?n!=n&&e!=e:r(n,e,o,a,t,u))}},7028:function(t,n,e){var r=e(8708),i=e(8705),o=e(2813),a=e(6682),u=e(9667),s=e(163),c=e(4801),l=e(4289),f="[object Arguments]",h="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,g,y,m){var v=s(t),x=s(n),b=v?h:u(t),M=x?h:u(n),w=(b=b==f?d:b)==d,A=(M=M==f?d:M)==d,k=b==M;if(k&&c(t)){if(!c(n))return!1;v=!0,w=!1}if(k&&!w)return m||(m=new r),v||l(t)?i(t,n,e,g,y,m):o(t,n,b,e,g,y,m);if(!(1&e)){var E=w&&p.call(t,"__wrapped__"),O=A&&p.call(n,"__wrapped__");if(E||O){var j=E?t.value():t,S=O?n.value():n;return m||(m=new r),y(j,S,e,g,m)}}return!!k&&(m||(m=new r),a(t,n,e,g,y,m))}},9548:function(t,n,e){var r=e(8708),i=e(9070);t.exports=function(t,n,e,o){var a=e.length,u=a,s=!o;if(null==t)return!u;for(t=Object(t);a--;){var c=e[a];if(s&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<u;){var l=(c=e[a])[0],f=t[l],h=c[1];if(s&&c[2]){if(void 0===f&&!(l in t))return!1}else{var d=new r;if(o)var p=o(f,h,l,t,n,d);if(!(void 0===p?i(h,f,3,o,d):p))return!1}}return!0}},3472:function(t,n,e){var r=e(758),i=e(5223),o=e(5346),a=e(163),u=e(8532);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):u(t)}},7190:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},383:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},758:function(t,n,e){var r=e(9548),i=e(597),o=e(6878);t.exports=function(t){var n=i(t);return 1==n.length&&n[0][2]?o(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},5223:function(t,n,e){var r=e(9070),i=e(9201),o=e(5066),a=e(726),u=e(5385),s=e(6878),c=e(3110);t.exports=function(t,n){return a(t)&&u(n)?s(c(t),n):function(e){var a=i(e,t);return void 0===a&&a===n?o(e,t):r(n,a,3)}}},8245:function(t,n,e){var r=e(8644),i=e(4432),o=e(3472),a=e(383),u=e(9521),s=e(9110),c=e(9409),l=e(5346),f=e(163);t.exports=function(t,n,e){n=n.length?r(n,(function(t){return f(t)?function(n){return i(n,1===t.length?t[0]:t)}:t})):[l];var h=-1;n=r(n,s(o));var d=a(t,(function(t,e,i){return{criteria:r(n,(function(n){return n(t)})),index:++h,value:t}}));return u(d,(function(t,n){return c(t,n,e)}))}},5436:function(t,n,e){var r=e(6371),i=e(5066);t.exports=function(t,n){return r(t,n,(function(n,e){return i(t,e)}))}},6371:function(t,n,e){var r=e(4432),i=e(6539),o=e(9026);t.exports=function(t,n,e){for(var a=-1,u=n.length,s={};++a<u;){var c=n[a],l=r(t,c);e(l,c)&&i(s,o(c,t),l)}return s}},1600:function(t){t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},3301:function(t,n,e){var r=e(4432);t.exports=function(t){return function(n){return r(n,t)}}},6317:function(t,n,e){var r=e(5346),i=e(4280),o=e(201);t.exports=function(t,n){return o(i(t,n,r),t+"")}},6539:function(t,n,e){var r=e(4132),i=e(9026),o=e(9099),a=e(7709),u=e(3110);t.exports=function(t,n,e,s){if(!a(t))return t;for(var c=-1,l=(n=i(n,t)).length,f=l-1,h=t;null!=h&&++c<l;){var d=u(n[c]),p=e;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(c!=f){var g=h[d];void 0===(p=s?s(g,d,h):void 0)&&(p=a(g)?g:o(n[c+1])?[]:{})}r(h,d,p),h=h[d]}return t}},9521:function(t){t.exports=function(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}},7556:function(t,n,e){var r=e(788);t.exports=function(t,n){for(var e=-1,i=t.length,o=0,a=[];++e<i;){var u=t[e],s=n?n(u):u;if(!e||!r(s,c)){var c=s;a[o++]=0===u?0:u}}return a}},6316:function(t,n,e){var r=e(2596),i=e(8644),o=e(163),a=e(1995),u=r?r.prototype:void 0,s=u?u.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(o(n))return i(n,t)+"";if(a(n))return s?s.call(n):"";var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}},9110:function(t){t.exports=function(t){return function(n){return t(n)}}},946:function(t,n,e){var r=e(3273),i=e(5510),o=e(9955),a=e(9914),u=e(6602),s=e(6226);t.exports=function(t,n,e){var c=-1,l=i,f=t.length,h=!0,d=[],p=d;if(e)h=!1,l=o;else if(f>=200){var g=n?null:u(t);if(g)return s(g);h=!1,l=a,p=new r}else p=n?[]:d;t:for(;++c<f;){var y=t[c],m=n?n(y):y;if(y=e||0!==y?y:0,h&&m==m){for(var v=p.length;v--;)if(p[v]===m)continue t;n&&p.push(m),d.push(y)}else l(p,m,e)||(p!==d&&p.push(m),d.push(y))}return d}},9914:function(t,n,e){var r=e(6123);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},9026:function(t,n,e){var r=e(163),i=e(726),o=e(7801),a=e(7010);t.exports=function(t,n){return r(t)?t:i(t,n)?[t]:o(a(t))}},522:function(t,n,e){var r=e(1995);t.exports=function(t,n){if(t!==n){var e=void 0!==t,i=null===t,o=t==t,a=r(t),u=void 0!==n,s=null===n,c=n==n,l=r(n);if(!s&&!l&&!a&&t>n||a&&u&&c&&!s&&!l||i&&u&&c||!e&&c||!o)return 1;if(!i&&!a&&!l&&t<n||l&&e&&o&&!i&&!a||s&&e&&o||!u&&o||!c)return-1}return 0}},9409:function(t,n,e){var r=e(522);t.exports=function(t,n,e){for(var i=-1,o=t.criteria,a=n.criteria,u=o.length,s=e.length;++i<u;){var c=r(o[i],a[i]);if(c)return i>=s?c:c*("desc"==e[i]?-1:1)}return t.index-n.index}},6602:function(t){t.exports=function(){}},5525:function(t,n,e){var r=e(3743),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},8705:function(t,n,e){var r=e(3273),i=e(1634),o=e(9914);t.exports=function(t,n,e,a,u,s){var c=1&e,l=t.length,f=n.length;if(l!=f&&!(c&&f>l))return!1;var h=s.get(t),d=s.get(n);if(h&&d)return h==n&&d==t;var p=-1,g=!0,y=2&e?new r:void 0;for(s.set(t,n),s.set(n,t);++p<l;){var m=t[p],v=n[p];if(a)var x=c?a(v,m,p,n,t,s):a(m,v,p,t,n,s);if(void 0!==x){if(x)continue;g=!1;break}if(y){if(!i(n,(function(t,n){if(!o(y,n)&&(m===t||u(m,t,e,a,s)))return y.push(n)}))){g=!1;break}}else if(m!==v&&!u(m,v,e,a,s)){g=!1;break}}return s.delete(t),s.delete(n),g}},2813:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},6682:function(t,n,e){var r=e(8143),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,o,a,u){var s=1&e,c=r(t),l=c.length;if(l!=r(n).length&&!s)return!1;for(var f=l;f--;){var h=c[f];if(!(s?h in n:i.call(n,h)))return!1}var d=u.get(t),p=u.get(n);if(d&&p)return d==n&&p==t;var g=!0;u.set(t,n),u.set(n,t);for(var y=s;++f<l;){var m=t[h=c[f]],v=n[h];if(o)var x=s?o(v,m,h,n,t,u):o(m,v,h,t,n,u);if(!(void 0===x?m===v||a(m,v,e,o,u):x)){g=!1;break}y||(y="constructor"==h)}if(g&&!y){var b=t.constructor,M=n.constructor;b==M||!("constructor"in t)||!("constructor"in n)||"function"==typeof b&&b instanceof b&&"function"==typeof M&&M instanceof M||(g=!1)}return u.delete(t),u.delete(n),g}},5557:function(t,n,e){var r=e(2645),i=e(4280),o=e(201);t.exports=function(t){return o(i(t,void 0,r),t+"")}},2117:function(t,n,e){var r="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=r},8143:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},7271:function(t){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},597:function(t,n,e){var r=e(5385),i=e(7747);t.exports=function(t){for(var n=i(t),e=n.length;e--;){var o=n[e],a=t[o];n[e]=[o,a,r(a)]}return n}},3743:function(t){t.exports=function(t,n){return null==t?void 0:t[n]}},9817:function(t,n,e){var r=e(5125)(Object.getPrototypeOf,Object);t.exports=r},9667:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},3096:function(t,n,e){var r=e(9026),i=e(5075),o=e(163),a=e(9099),u=e(8454),s=e(3110);t.exports=function(t,n,e){for(var c=-1,l=(n=r(n,t)).length,f=!1;++c<l;){var h=s(n[c]);if(!(f=null!=t&&e(t,h)))break;t=t[h]}return f||++c!=l?f:!!(l=null==t?0:t.length)&&u(l)&&a(h,l)&&(o(t)||i(t))}},3608:function(t,n,e){var r=e(2596),i=e(5075),o=e(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},9099:function(t){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},8286:function(t){t.exports=function(){return!1}},726:function(t,n,e){var r=e(163),i=e(1995),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,n){if(r(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=n&&t in Object(n)}},5782:function(t){t.exports=function(){return!1}},5385:function(t,n,e){var r=e(7709);t.exports=function(t){return t==t&&!r(t)}},1171:function(t){t.exports=function(){this.__data__=[],this.size=0}},7838:function(t,n,e){var r=e(3162),i=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0||(e==n.length-1?n.pop():i.call(n,e,1),--this.size,0))}},4859:function(t,n,e){var r=e(3162);t.exports=function(t){var n=this.__data__,e=r(n,t);return e<0?void 0:n[e][1]}},4073:function(t,n,e){var r=e(3162);t.exports=function(t){return r(this.__data__,t)>-1}},8541:function(t,n,e){var r=e(3162);t.exports=function(t,n){var e=this.__data__,i=r(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}},6878:function(t){t.exports=function(t,n){return function(e){return null!=e&&e[t]===n&&(void 0!==n||t in Object(e))}}},2453:function(t){t.exports=function(t){return t}},2348:function(t,n,e){t=e.nmd(t);var r=e(2117),i=n&&!n.nodeType&&n,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,u=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},5125:function(t){t.exports=function(t,n){return function(e){return t(n(e))}}},4280:function(t,n,e){var r=e(6082),i=Math.max;t.exports=function(t,n,e){return n=i(void 0===n?t.length-1:n,0),function(){for(var o=arguments,a=-1,u=i(o.length-n,0),s=Array(u);++a<u;)s[a]=o[n+a];a=-1;for(var c=Array(n+1);++a<n;)c[a]=o[a];return c[n]=e(s),r(t,this,c)}}},2373:function(t,n,e){var r=e(2117),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},6226:function(t){t.exports=function(){return[]}},201:function(t){t.exports=function(t){return t}},7801:function(t,n,e){var r=e(2453),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(i,(function(t,e,r,i){n.push(r?i.replace(o,"$1"):e||t)})),n}));t.exports=a},3110:function(t,n,e){var r=e(1995);t.exports=function(t){if("string"==typeof t||r(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},1893:function(t,n,e){var r=e(6317),i=e(788),o=e(8286),a=e(8855),u=Object.prototype,s=u.hasOwnProperty,c=r((function(t,n){t=Object(t);var e=-1,r=n.length,c=r>2?n[2]:void 0;for(c&&o(n[0],n[1],c)&&(r=1);++e<r;)for(var l=n[e],f=a(l),h=-1,d=f.length;++h<d;){var p=f[h],g=t[p];(void 0===g||i(g,u[p])&&!s.call(t,p))&&(t[p]=l[p])}return t}));t.exports=c},788:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},2645:function(t,n,e){var r=e(6457);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},9201:function(t,n,e){var r=e(4432);t.exports=function(t,n,e){var i=null==t?void 0:r(t,n);return void 0===i?e:i}},5066:function(t,n,e){var r=e(6776),i=e(3096);t.exports=function(t,n){return null!=t&&i(t,n,r)}},5346:function(t){t.exports=function(t){return t}},5075:function(t){t.exports=function(){return!1}},163:function(t){var n=Array.isArray;t.exports=n},981:function(t,n,e){var r=e(9642),i=e(8454);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},4801:function(t){t.exports=function(){return!1}},4295:function(t,n,e){var r=e(7537),i=e(9110),o=e(2348),a=o&&o.isDate,u=a?i(a):r;t.exports=u},4155:function(t,n,e){var r=e(7190),i=e(9667),o=e(5075),a=e(163),u=e(981),s=e(4801),c=e(5782),l=e(4289),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||s(t)||l(t)||o(t)))return!t.length;var n=i(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(c(t))return!r(t).length;for(var e in t)if(f.call(t,e))return!1;return!0}},8254:function(t,n,e){var r=e(9070);t.exports=function(t,n){return r(t,n)}},9642:function(t,n,e){var r=e(563),i=e(7709);t.exports=function(t){if(!i(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},8454:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:function(t){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},3474:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3849:function(t,n,e){var r=e(563),i=e(9817),o=e(3474),a=Function.prototype,u=Object.prototype,s=a.toString,c=u.hasOwnProperty,l=s.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var n=i(t);if(null===n)return!0;var e=c.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&s.call(e)==l}},1995:function(t){t.exports=function(){return!1}},4289:function(t){t.exports=function(){return!1}},8999:function(t){t.exports=function(t){return void 0===t}},7747:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},8855:function(t){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},1594:function(t,n,e){var r=e(503);function i(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return e.cache=o.set(i,a)||o,a};return e.cache=new(i.Cache||r),e}i.Cache=r,t.exports=i},6051:function(t){t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}},1616:function(t,n,e){var r=e(3472),i=e(6051),o=e(4912);t.exports=function(t,n){return o(t,i(r(n)))}},4143:function(t,n,e){var r=e(8245),i=e(163);t.exports=function(t,n,e,o){return null==t?[]:(i(n)||(n=null==n?[]:[n]),i(e=o?void 0:e)||(e=null==e?[]:[e]),r(t,n,e))}},9082:function(t,n,e){var r=e(5436),i=e(5557)((function(t,n){return null==t?{}:r(t,n)}));t.exports=i},4912:function(t,n,e){var r=e(8644),i=e(3472),o=e(6371),a=e(7271);t.exports=function(t,n){if(null==t)return{};var e=r(a(t),(function(t){return[t]}));return n=i(n),o(t,e,(function(t,e){return n(t,e[0])}))}},8532:function(t,n,e){var r=e(1600),i=e(3301),o=e(726),a=e(3110);t.exports=function(t){return o(t)?r(a(t)):i(t)}},2829:function(t,n,e){var r=e(7556);t.exports=function(t){return t&&t.length?r(t):[]}},7010:function(t,n,e){var r=e(6316);t.exports=function(t){return null==t?"":r(t)}},9602:function(t,n,e){var r=e(946);t.exports=function(t){return t&&t.length?r(t):[]}},660:function(t,n,e){var r=e(7010),i=0;t.exports=function(t){var n=++i;return r(t)+n}},7491:function(t){var n="undefined"!=typeof Element,e="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var u,s,c,l;if(Array.isArray(t)){if((u=t.length)!=a.length)return!1;for(s=u;0!=s--;)if(!o(t[s],a[s]))return!1;return!0}if(e&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(l=t.entries();!(s=l.next()).done;)if(!a.has(s.value[0]))return!1;for(l=t.entries();!(s=l.next()).done;)if(!o(s.value[1],a.get(s.value[0])))return!1;return!0}if(r&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(l=t.entries();!(s=l.next()).done;)if(!a.has(s.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((u=t.length)!=a.length)return!1;for(s=u;0!=s--;)if(t[s]!==a[s])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((u=(c=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(s=u;0!=s--;)if(!Object.prototype.hasOwnProperty.call(a,c[s]))return!1;if(n&&t instanceof Element)return!1;for(s=u;0!=s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!t.$$typeof)&&!o(t[c[s]],a[c[s]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,n){try{return o(t,n)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:function(n){"use strict";n.exports=t}},e={};function r(t){var i=e[t];if(void 0!==i)return i.exports;var o=e[t]={id:t,loaded:!1,exports:{}};return n[t](o,o.exports,r),o.loaded=!0,o.exports}r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,{a:n}),n},r.d=function(t,n){for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t};var i={};return function(){"use strict";r.r(i),r.d(i,{VictoryHistogram:function(){return kc}});var t={};r.r(t),r.d(t,{easeBack:function(){return Oe},easeBackIn:function(){return ke},easeBackInOut:function(){return Oe},easeBackOut:function(){return Ee},easeBounce:function(){return Me},easeBounceIn:function(){return be},easeBounceInOut:function(){return we},easeBounceOut:function(){return Me},easeCircle:function(){return ve},easeCircleIn:function(){return ye},easeCircleInOut:function(){return ve},easeCircleOut:function(){return me},easeCubic:function(){return re},easeCubicIn:function(){return ne},easeCubicInOut:function(){return re},easeCubicOut:function(){return ee},easeElastic:function(){return _e},easeElasticIn:function(){return Se},easeElasticInOut:function(){return Ce},easeElasticOut:function(){return _e},easeExp:function(){return ge},easeExpIn:function(){return de},easeExpInOut:function(){return ge},easeExpOut:function(){return pe},easeLinear:function(){return Qn},easePoly:function(){return ae},easePolyIn:function(){return ie},easePolyInOut:function(){return ae},easePolyOut:function(){return oe},easeQuad:function(){return te},easeQuadIn:function(){return Xn},easeQuadInOut:function(){return te},easeQuadOut:function(){return Jn},easeSin:function(){return fe},easeSinIn:function(){return ce},easeSinInOut:function(){return fe},easeSinOut:function(){return le}});var n={};r.r(n),r.d(n,{scaleBand:function(){return bi},scaleDiverging:function(){return Ss},scaleDivergingLog:function(){return _s},scaleDivergingPow:function(){return Ts},scaleDivergingSqrt:function(){return Ds},scaleDivergingSymlog:function(){return Cs},scaleIdentity:function(){return lo},scaleImplicit:function(){return vi},scaleLinear:function(){return co},scaleLog:function(){return bo},scaleOrdinal:function(){return xi},scalePoint:function(){return wi},scalePow:function(){return _o},scaleQuantile:function(){return zo},scaleQuantize:function(){return Wo},scaleRadial:function(){return $o},scaleSequential:function(){return bs},scaleSequentialLog:function(){return Ms},scaleSequentialPow:function(){return As},scaleSequentialQuantile:function(){return Es},scaleSequentialSqrt:function(){return ks},scaleSequentialSymlog:function(){return ws},scaleSqrt:function(){return Co},scaleSymlog:function(){return ko},scaleThreshold:function(){return Ho},scaleTime:function(){return ys},scaleUtc:function(){return ms},tickFormat:function(){return uo}});var e=r(9787),o=r.n(e),a=r(1893),u=r.n(a),s=r(9082),c=r.n(s),l=r(8532),f=r.n(l);function h(t,n){void 0===n&&(n=[]);const e={};for(const r in t)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function d(t){const n=t=>void 0!==t,{_x:e,_x1:r,_x0:i,_voronoiX:o,_y:a,_y1:s,_y0:c,_voronoiY:l}=t,f=n(r)?r:e,h=n(s)?s:a,d={x:n(o)?o:f,x0:n(i)?i:e,y:n(l)?l:h,y0:n(c)?c:a};return u()({},d,t)}function p(t,n){const{scale:e,polar:r,horizontal:i}=t,o=d(n),a=t.origin||{x:0,y:0},u=i?e.y(o.y):e.x(o.x),s=i?e.y(o.y0):e.x(o.x0),c=i?e.x(o.x):e.y(o.y),l=i?e.x(o.x0):e.y(o.y0);return{x:r?c*Math.cos(u)+a.x:u,x0:r?l*Math.cos(s)+a.x:s,y:r?-c*Math.sin(u)+a.y:c,y0:r?-l*Math.sin(s)+a.x:l}}function g(t,n){void 0===n&&(n="padding");const e=t[n],r="number"==typeof e?e:0,i="object"==typeof e?e:{};return{top:i.top||r,bottom:i.bottom||r,left:i.left||r,right:i.right||r}}function y(t){return"tooltip"===(t&&t.type&&t.type.role)}function m(t,n){return A(t)?t(n):t}function v(t,n){return n.disableInlineStyles?{}:t&&Object.keys(t).some((n=>A(t[n])))?Object.keys(t).reduce(((e,r)=>(e[r]=m(t[r],n),e)),{}):t}function x(t){return"number"==typeof t?t*(Math.PI/180):t}function b(t){const{left:n,right:e,top:r,bottom:i}=g(t),{width:o,height:a}=t;return Math.min(o-n-e,a-r-i)/2}function M(t,n){return t.range&&t.range[n]?t.range[n]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t,n){return"x"===n?[x(t.startAngle||0),x(t.endAngle||360)]:[t.innerRadius||0,b(t)]}(t,n):function(t,n){const e="x"!==n,r=g(t);return e?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,n)}function w(t){return null==t}function A(t){return"function"==typeof t}function k(t){return A(t)?t:null==t?t=>t:f()(t)}function E(t,n,e){const r=h(t.theme&&t.theme[e]?t.theme[e]:{},["style"]),i=function(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;const n=t=>t.reduce(((t,e)=>{const r=e.props||{};return t||r.horizontal||!r.children?t||r.horizontal:n(o().Children.toArray(r.children))}),!1);return n(o().Children.toArray(t.children))}(t),a=void 0===i?{}:{horizontal:i};return u()(a,t,r,n)}function O(){return O=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},O.apply(this,arguments)}const j=(0,e.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:a,...u}=t,s={id:m(r,t)?.toString(),tabIndex:m(i,t),...u};return e?o().createElement("path",O({},s,{ref:n}),o().createElement("desc",null,e)):o().createElement("path",O({},s,{ref:n}))}));var S=r(3849),_=r.n(S);const C=Math.PI,T=2*C,D=1e-6,$=T-D;function N(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function P(){return new N}N.prototype=P.prototype={constructor:N,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,a=this._y1,u=e-t,s=r-n,c=o-t,l=a-n,f=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(f>D)if(Math.abs(l*u-s*c)>D&&i){var h=e-o,d=r-a,p=u*u+s*s,g=h*h+d*d,y=Math.sqrt(p),m=Math.sqrt(f),v=i*Math.tan((C-Math.acos((p+f-g)/(2*y*m)))/2),x=v/m,b=v/y;Math.abs(x-1)>D&&(this._+="L"+(t+x*c)+","+(n+x*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>c*d)+","+(this._x1=t+b*u)+","+(this._y1=n+b*s)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var a=(e=+e)*Math.cos(r),u=e*Math.sin(r),s=t+a,c=n+u,l=1^o,f=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+s+","+c:(Math.abs(this._x1-s)>D||Math.abs(this._y1-c)>D)&&(this._+="L"+s+","+c),e&&(f<0&&(f=f%T+T),f>$?this._+="A"+e+","+e+",0,1,"+l+","+(t-a)+","+(n-u)+"A"+e+","+e+",0,1,"+l+","+(this._x1=s)+","+(this._y1=c):f>D&&(this._+="A"+e+","+e+",0,"+ +(f>=C)+","+l+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};var L=P;function I(t){return function(){return t}}const R=Math.abs,U=Math.atan2,F=Math.cos,z=Math.max,W=Math.min,H=Math.sin,q=Math.sqrt,Y=1e-12,B=Math.PI,V=B/2,K=2*B;function G(t){return t>1?0:t<-1?B:Math.acos(t)}function Z(t){return t>=1?V:t<=-1?-V:Math.asin(t)}function Q(t){return t.innerRadius}function X(t){return t.outerRadius}function J(t){return t.startAngle}function tt(t){return t.endAngle}function nt(t){return t&&t.padAngle}function et(t,n,e,r,i,o,a,u){var s=e-t,c=r-n,l=a-i,f=u-o,h=f*s-l*c;if(!(h*h<Y))return[t+(h=(l*(n-o)-f*(t-i))/h)*s,n+h*c]}function rt(t,n,e,r,i,o,a){var u=t-e,s=n-r,c=(a?o:-o)/q(u*u+s*s),l=c*s,f=-c*u,h=t+l,d=n+f,p=e+l,g=r+f,y=(h+p)/2,m=(d+g)/2,v=p-h,x=g-d,b=v*v+x*x,M=i-o,w=h*g-p*d,A=(x<0?-1:1)*q(z(0,M*M*b-w*w)),k=(w*x-v*A)/b,E=(-w*v-x*A)/b,O=(w*x+v*A)/b,j=(-w*v+x*A)/b,S=k-y,_=E-m,C=O-y,T=j-m;return S*S+_*_>C*C+T*T&&(k=O,E=j),{cx:k,cy:E,x01:-l,y01:-f,x11:k*(i/M-1),y11:E*(i/M-1)}}const it=(t,n)=>({x:t,y:n,distance(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},add(t){return it(this.x+t.x,this.y+t.y)},subtract(t){return it(this.x-t.x,this.y-t.y)},scalarMult(t){return it(this.x*t,this.y*t)},scalarDivide(t){if(0===t)throw new Error("Division by 0 error");return it(this.x/t,this.y/t)},equals(t){return this.x===t.x&&this.y===t.y}}),ot=(t,n)=>({center:t,radius:n,hasIntersection(t){const n=this.center,e=t.center,r=this.radius,i=t.radius,o=n.distance(e);return!(o>r+i||o<Math.abs(r-i))},equals(t){const n=this.center,e=t.center;return this.radius===t.radius&&n.equals(e)},intersection(t){const n=this.center,e=t.center,r=this.radius,i=t.radius,o=n.distance(e);if(!this.hasIntersection(t)||this.equals(t))return[];const a=(Math.pow(r,2)-Math.pow(i,2)+Math.pow(o,2))/(2*o),u=Math.sqrt(Math.pow(r,2)-Math.pow(a,2)),s=n.add(e.subtract(n).scalarMult(a).scalarDivide(o)),{x:c,y:l}=n,{x:f,y:h}=e,{x:d,y:p}=s,g=[it(d-u*(h-l)/o,p+u*(f-c)/o),it(d+u*(h-l)/o,p-u*(f-c)/o)];return g.sort(((t,n)=>t.x-n.x)),g},solveX(t){const n=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.y,2));return[this.center.x-n,this.center.x+n]},solveY(t){const n=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.x,2));return[this.center.y-n,this.center.y+n]}}),at=(t,n)=>{const{x:e,x0:r,y:i,y0:o,horizontal:a}=t,u=t.alignment||"middle",s="middle"===u?n/2:n,c=a?-1:1;return a?{x0:r,x1:e,y0:"start"===u?i:i-c*s,y1:"end"===u?i:i+c*s}:{x0:"start"===u?e:e-c*s,x1:"end"===u?e:e+c*s,y0:o,y1:i}},ut=(t,n)=>{const{data:e,scale:r}=t,i=void 0===e[n]._x1?"_x":"_x1";return r.x(e[n][i])},st=t=>-1*t+Math.PI/2,ct=(t,n,e)=>{const r=`${n.topLeft} ${n.topLeft} ${e}`,i=`${n.topRight} ${n.topRight} ${e}`;return`${["M",`A ${n.bottomLeft} ${n.bottomLeft} ${e},`,"L",`A ${r},`,"L",`A ${i},`,"L",`A ${n.bottomRight} ${n.bottomRight} ${e},`].reduce(((n,e,r)=>`${n}${e} ${t[r].x}, ${t[r].y} \n`),"")} z`},lt=(t,n)=>{const{datum:e,scale:r,index:i,alignment:o,style:a}=t,u=r.y(e._y0||0),s=r.y(void 0!==e._y1?e._y1:e._y),c=r.x(void 0!==e._x1?e._x1:e._x);let l,f;if(a.width){const n=((t,n)=>{const{scale:e}=t,r=e.y.range(),i=Math.max(...r),o=Math.abs(e.x.range()[1]-e.x.range()[0]);return n/(2*Math.PI*i)*o})(t,a.width),e="middle"===o?n/2:n;l="start"===o?c:c-e,f="end"===o?c:c+e}else l=((t,n)=>{const{data:e,scale:r,alignment:i}=t,o=ut(t,n),a=Math.abs(r.x.range()[1]-r.x.range()[0]),u=0===n?ut(t,e.length-1)-2*Math.PI:ut(t,n-1);return 0===n&&a<2*Math.PI?r.x.range()[0]:"start"===i||"end"===i?"start"===i?u:o:(o+u)/2})(t,Number(i)),f=((t,n)=>{const{data:e,scale:r,alignment:i}=t,o=ut(t,n),a=Math.abs(r.x.range()[1]-r.x.range()[0]),u=r.x.range()[1]===2*Math.PI?ut(t,0)+2*Math.PI:r.x.range()[1],s=n===e.length-1?ut(t,0)+2*Math.PI:ut(t,n+1);return n===e.length-1&&a<2*Math.PI?u:"start"===i||"end"===i?"start"===i?o:s:(o+s)/2})(t,Number(i));const h=t=>{const e=function(){var t=Q,n=X,e=I(0),r=null,i=J,o=tt,a=nt,u=null;function s(){var s,c,l=+t.apply(this,arguments),f=+n.apply(this,arguments),h=i.apply(this,arguments)-V,d=o.apply(this,arguments)-V,p=R(d-h),g=d>h;if(u||(u=s=L()),f<l&&(c=f,f=l,l=c),f>Y)if(p>K-Y)u.moveTo(f*F(h),f*H(h)),u.arc(0,0,f,h,d,!g),l>Y&&(u.moveTo(l*F(d),l*H(d)),u.arc(0,0,l,d,h,g));else{var y,m,v=h,x=d,b=h,M=d,w=p,A=p,k=a.apply(this,arguments)/2,E=k>Y&&(r?+r.apply(this,arguments):q(l*l+f*f)),O=W(R(f-l)/2,+e.apply(this,arguments)),j=O,S=O;if(E>Y){var _=Z(E/l*H(k)),C=Z(E/f*H(k));(w-=2*_)>Y?(b+=_*=g?1:-1,M-=_):(w=0,b=M=(h+d)/2),(A-=2*C)>Y?(v+=C*=g?1:-1,x-=C):(A=0,v=x=(h+d)/2)}var T=f*F(v),D=f*H(v),$=l*F(M),N=l*H(M);if(O>Y){var P,I=f*F(x),z=f*H(x),Q=l*F(b),X=l*H(b);if(p<B&&(P=et(T,D,Q,X,I,z,$,N))){var J=T-P[0],tt=D-P[1],nt=I-P[0],it=z-P[1],ot=1/H(G((J*nt+tt*it)/(q(J*J+tt*tt)*q(nt*nt+it*it)))/2),at=q(P[0]*P[0]+P[1]*P[1]);j=W(O,(l-at)/(ot-1)),S=W(O,(f-at)/(ot+1))}}A>Y?S>Y?(y=rt(Q,X,T,D,f,S,g),m=rt(I,z,$,N,f,S,g),u.moveTo(y.cx+y.x01,y.cy+y.y01),S<O?u.arc(y.cx,y.cy,S,U(y.y01,y.x01),U(m.y01,m.x01),!g):(u.arc(y.cx,y.cy,S,U(y.y01,y.x01),U(y.y11,y.x11),!g),u.arc(0,0,f,U(y.cy+y.y11,y.cx+y.x11),U(m.cy+m.y11,m.cx+m.x11),!g),u.arc(m.cx,m.cy,S,U(m.y11,m.x11),U(m.y01,m.x01),!g))):(u.moveTo(T,D),u.arc(0,0,f,v,x,!g)):u.moveTo(T,D),l>Y&&w>Y?j>Y?(y=rt($,N,I,z,l,-j,g),m=rt(T,D,Q,X,l,-j,g),u.lineTo(y.cx+y.x01,y.cy+y.y01),j<O?u.arc(y.cx,y.cy,j,U(y.y01,y.x01),U(m.y01,m.x01),!g):(u.arc(y.cx,y.cy,j,U(y.y01,y.x01),U(y.y11,y.x11),!g),u.arc(0,0,l,U(y.cy+y.y11,y.cx+y.x11),U(m.cy+m.y11,m.cx+m.x11),g),u.arc(m.cx,m.cy,j,U(m.y11,m.x11),U(m.y01,m.x01),!g))):u.arc(0,0,l,M,b,g):u.lineTo($,N)}else u.moveTo(0,0);if(u.closePath(),s)return u=null,s+""||null}return s.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-B/2;return[F(r)*e,H(r)*e]},s.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:I(+n),s):t},s.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:I(+t),s):n},s.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:I(+t),s):e},s.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:I(+t),s):r},s.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:I(+t),s):i},s.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:I(+t),s):o},s.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:I(+t),s):a},s.context=function(t){return arguments.length?(u=null==t?null:t,s):u},s}().innerRadius(u).outerRadius(s).startAngle(st(l)).endAngle(st(f)).cornerRadius(n[t]);return e()},d=t=>{const n=h(`${t}Right`),e=n.match(/[A-Z]/g)||[],r=n.split(/[A-Z]/).slice(1),i=e.indexOf("L"),o=h(`${t}Left`),a=o.match(/[A-Z]/g)||[],u=o.split(/[A-Z]/).slice(1),s=a.indexOf("L");return{rightMoves:e,rightCoords:r,rightMiddle:i,leftMoves:a,leftCoords:u,leftMiddle:s}};return`${[...(()=>{const{topRight:t,topLeft:e}=n,r=s*Math.abs(f-l),{rightMoves:i,rightCoords:o,rightMiddle:a,leftMoves:u,leftCoords:c,leftMiddle:h}=d("top");let p,g;if(t===e||r<2*t+2*e)p=t>e?i:u,g=t>e?o:c;else{const n=t=>t<3,r=e>t&&n(a)?1:2;let s;if(t>e){const t=n(a)?h:h-2;s=n(h)?h-1:t}else{const t=n(h)?1:2;s=n(a)?t:h-2}p=[...i.slice(0,r),...u.slice(s)],g=[...o.slice(0,r),...c.slice(s)]}const y=p.indexOf("L"),m=p.slice(0,y),v=g.slice(0,y);return m.map(((t,n)=>({command:t,coords:v[n].split(",")})))})(),...(()=>{const{bottomRight:t,bottomLeft:e}=n,r=u*Math.abs(f-l),{rightMoves:i,rightCoords:o,rightMiddle:a,leftMoves:s,leftCoords:c,leftMiddle:h}=d("bottom");let p,g;if(t===e||r<2*t+2*e)p=t>e?i:s,g=t>e?o:c;else{const n=(t,n)=>t.length-n<4,r=(t>e?n(i,a):n(s,h))?-1:-3;p=[...s.slice(0,h+2),...i.slice(r)],g=[...c.slice(0,h+2),...o.slice(r)]}const y=p.indexOf("L"),m=p.slice(y,-1),v=g.slice(y,-1);return m.map(((t,n)=>({command:t,coords:v[n].split(",")})))})()].reduce(((t,n)=>`${t}${n.command} ${n.coords.join()}`),"")} z`},ft=(t,n,e)=>t.getPath?((t,n)=>{const{getPath:e}=t;if("function"==typeof e)return e({...t,...at(t,n)})})(t,n):t.horizontal?((t,n,e)=>{const r=at(t,n),i=r.x0<r.x1?1:-1,o={topRight:i>0?e.topLeft:e.bottomLeft,bottomRight:i>0?e.topRight:e.bottomRight,bottomLeft:i>0?e.bottomRight:e.topRight,topLeft:i>0?e.bottomLeft:e.topLeft},a=((t,n,e)=>{const{y0:r,y1:i}=t,o=t.x0<t.x1?t.x0:t.x1,a=t.x0<t.x1?t.x1:t.x0,u=t=>{const u="top"===t,s=u?-1:1,c=u?i:r;let l={x:o,y:c-s*e[`${t}Left`]},f={x:o+e[`${t}Left`],y:c},h={x:a-e[`${t}Right`],y:c},d={x:a,y:c-s*e[`${t}Right`]};if(f.x>h.x){const r=it(o+e[`${t}Left`],c-s*e[`${t}Left`]),i=ot(r,e[`${t}Left`]),p=it(a-e[`${t}Right`],c-s*e[`${t}Right`]),g=ot(p,e[`${t}Right`]),y=i.intersection(g);if(y.length>0){const t=y[n>0?1:0];f={x:t.x,y:t.y},h={x:t.x,y:t.y}}else if(e[`${t}Right`]>e[`${t}Left`]){const t=g.solveY(o)[u?0:1];l={x:o,y:t},f={x:o,y:t},h={x:o,y:t}}else{const t=i.solveY(a)[u?0:1];d={x:a,y:t},h={x:a,y:t},f={x:a,y:t}}}return[l,f,h,d]},s=u("top"),c=u("bottom");return[c[1],c[0],...s,c[3],c[2]]})(r,i,o);return ct(a,o,"0 0 1")})(t,n,e):((t,n,e)=>{const r=at(t,n),i=r.y0>r.y1?1:-1,o=i>0?"0 0 1":"0 0 0",a=((t,n,e)=>{const{x0:r,x1:i,y0:o,y1:a}=t,u=t=>{const u="Left"===t,s=u?1:-1,c=u?r:i;let l={x:c+s*e[`bottom${t}`],y:o},f={x:c,y:o-n*e[`bottom${t}`]},h={x:c,y:a+n*e[`top${t}`]},d={x:c+s*e[`top${t}`],y:a};if(1===n?o-e[`bottom${t}`]<a+e[`top${t}`]:o+e[`bottom${t}`]>a-e[`top${t}`]){const r=it(c+s*e[`top${t}`],a+n*e[`top${t}`]),i=ot(r,e[`top${t}`]),p=it(c+s*e[`bottom${t}`],o-n*e[`bottom${t}`]),g=ot(p,e[`bottom${t}`]),y=i.intersection(g);if(y.length>0){const t=y[u?0:1];f={x:t.x,y:t.y},h={x:t.x,y:t.y}}else if(e[`top${t}`]>e[`bottom${t}`]){const t=i.solveX(o)[u?0:1];l={x:t,y:o},f={x:t,y:o},h={x:t,y:o}}else{const t=g.solveX(a)[u?0:1];f={x:t,y:a},h={x:t,y:a},d={x:t,y:a}}}const p=[l,f,h,d];return u?p:p.reverse()};return u("Left").concat(u("Right"))})(r,i,e);return ct(a,e,o)})(t,n,e),ht=t=>{const n=function(t,n){if(void 0===t&&(t={}),n.disableInlineStyles)return{};const e={fill:"black",stroke:t.fill||"black"};return v(Object.assign(e,t),n)}(t.style,t),e=((t,n)=>{const{scale:e,data:r,style:i}=n;if(t)return m(t,n);if(i.width)return i.width;const o=e.x.range(),a=Math.abs(o[1]-o[0]),u=r.length+2,s=(n.barRatio||.5)*(r.length<2?8:a/u);return Math.max(1,s)})(t.barWidth,Object.assign({},t,{style:n})),r=((t,n)=>{const e={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};return t?function(t){return _()(t)}(t)?((t,n)=>{const e={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},r=(r,i)=>{w(t[r])?w(t[i])||(e[r]=m(t[i],n)):e[r]=m(t[r],n)};return r("topLeft","top"),r("topRight","top"),r("bottomLeft","bottom"),r("bottomRight","bottom"),e})(t,n):(e.topLeft=m(t,n),e.topRight=m(t,n),e):e})(t.cornerRadius,Object.assign({},t,{style:n,barWidth:e})),i=m(t.ariaLabel,t),o=m(t.desc,t),a=m(t.id,t),u=m(t.tabIndex,t);return Object.assign({},t,{ariaLabel:i,style:n,barWidth:e,cornerRadius:r,desc:o,id:a,tabIndex:u})},dt={pathComponent:o().createElement(j,null),role:"presentation",shapeRendering:"auto"},pt=(0,e.forwardRef)((function(t,n){const e=ht(u()({},t,dt)),{polar:r,origin:i,style:a,barWidth:s,cornerRadius:c}=e,l=r?((t,n)=>lt(t,n))(e,c):ft(e,s,c),f=r&&i?`translate(${i.x}, ${i.y})`:void 0;return e.pathComponent?o().cloneElement(e.pathComponent,{...e.events,"aria-label":e.ariaLabel,style:a,d:l,className:e.className,clipPath:e.clipPath,desc:e.desc,index:e.index,role:e.role,shapeRendering:e.shapeRendering,transform:e.transform||f,tabIndex:e.tabIndex,ref:n}):null}));var gt=r(7709),yt=r.n(gt),mt=r(660),vt=r.n(mt);class xt extends o().Component{static displayName="Portal";constructor(t){super(t),this.map={},this.index=1}portalRegister=()=>++this.index;portalUpdate=(t,n)=>{this.map[t]=n,this.forceUpdate()};portalDeregister=t=>{delete this.map[t],this.forceUpdate()};getChildren(){return Object.keys(this.map).map((t=>{const n=this.map[t];return n?o().cloneElement(n,{key:t}):n}))}render(){return o().createElement("svg",this.props,this.getChildren())}}const bt=o().createContext({});bt.displayName="PortalContext";var Mt,wt,At=0,kt=0,Et=0,Ot=0,jt=0,St=0,_t="object"==typeof performance&&performance.now?performance:Date,Ct="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Tt(){return jt||(Ct(Dt),jt=_t.now()+St)}function Dt(){jt=0}function $t(){this._call=this._time=this._next=null}function Nt(t,n,e){var r=new $t;return r.restart(t,n,e),r}function Pt(){jt=(Ot=_t.now())+St,At=kt=0;try{!function(){Tt(),++At;for(var t,n=Mt;n;)(t=jt-n._time)>=0&&n._call.call(void 0,t),n=n._next;--At}()}finally{At=0,function(){for(var t,n,e=Mt,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:Mt=n);wt=t,It(r)}(),jt=0}}function Lt(){var t=_t.now(),n=t-Ot;n>1e3&&(St-=n,Ot=t)}function It(t){At||(kt&&(kt=clearTimeout(kt)),t-jt>24?(t<1/0&&(kt=setTimeout(Pt,t-_t.now()-St)),Et&&(Et=clearInterval(Et))):(Et||(Ot=_t.now(),Et=setInterval(Lt,1e3)),At=1,Ct(Pt)))}$t.prototype=Nt.prototype={constructor:$t,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Tt():+e)+(null==n?0:+n),this._next||wt===this||(wt?wt._next=this:Mt=this,wt=this),this._call=t,this._time=e,It()},stop:function(){this._call&&(this._call=null,this._time=1/0,It())}};class Rt{constructor(){this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}bypassAnimation(){this.shouldAnimate=!1}resumeAnimation(){this.shouldAnimate=!0}loop=()=>{this.subscribers.forEach((t=>{t.callback(Tt()-t.startTime,t.duration)}))};start(){this.timer||(this.timer=Nt(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}subscribe(t,n){const e=this.subscribers.push({startTime:Tt(),callback:t,duration:this.shouldAnimate?n:0});return this.activeSubscriptions++,this.start(),e}unsubscribe(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}const Ut=o().createContext({transitionTimer:new Rt,animationTimer:new Rt});Ut.displayName="TimerContext";var Ft=Ut;const zt={startsWith:["data-","aria-"],exactMatch:[]},Wt=t=>{const n={...t};return Object.fromEntries(Object.entries(n).filter((t=>{let[n]=t;return(t=>!(!(t=>{let n=!1;return zt.startsWith.forEach((e=>{new RegExp(`\\b(${e})(\\w|-)+`,"g").test(t)&&(n=!0)})),n})(t)&&!(t=>zt.exactMatch.includes(t))(t)))(n)})).map((n=>{let[e,r]=n;return[e,m(r,t)]})))};function Ht(){return Ht=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Ht.apply(this,arguments)}class qt extends o().Component{static displayName="VictoryContainer";static role="container";static defaultProps={className:"VictoryContainer",portalComponent:o().createElement(xt,null),portalZIndex:99,responsive:!0,role:"img"};static contextType=Ft;constructor(t){super(t),this.containerId=yt()(t)&&void 0!==t.containerId?t.containerId:vt()("victory-container-"),this.shouldHandleWheel=!!(t&&t.events&&t.events.onWheel)}savePortalRef=t=>(this.portalRef=t,t);portalUpdate=(t,n)=>this.portalRef.portalUpdate(t,n);portalRegister=()=>this.portalRef.portalRegister();portalDeregister=t=>this.portalRef.portalDeregister(t);saveContainerRef=t=>(A(this.props.containerRef)&&this.props.containerRef(t),this.containerRef=t,t);handleWheel=t=>t.preventDefault();componentDidMount(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}componentWillUnmount(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}getIdForElement(t){return`${this.containerId}-${t}`}getChildren(t){return t.children}getOUIAProps(t){const{ouiaId:n,ouiaSafe:e,ouiaType:r}=t;return{...n&&{"data-ouia-component-id":n},...r&&{"data-ouia-component-type":r},...void 0!==e&&{"data-ouia-safe":e}}}renderContainer(t,n,e){const{title:r,desc:i,portalComponent:a,className:s,width:c,height:l,portalZIndex:f,responsive:h}=t,d=this.getChildren(t),p=h?{width:"100%",height:"100%"}:{width:c,height:l},g=Object.assign({pointerEvents:"none",touchAction:"none",position:"relative"},p),y=Object.assign({zIndex:f,position:"absolute",top:0,left:0},p),m=Object.assign({pointerEvents:"all"},p),v=Object.assign({overflow:"visible"},p),x={width:c,height:l,viewBox:n.viewBox,preserveAspectRatio:n.preserveAspectRatio,style:v};return o().createElement(bt.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},o().createElement("div",Ht({style:u()({},e,g),className:s,ref:this.saveContainerRef},this.getOUIAProps(t)),o().createElement("svg",Ht({},n,{style:m}),r?o().createElement("title",{id:this.getIdForElement("title")},r):null,i?o().createElement("desc",{id:this.getIdForElement("desc")},i):null,d),o().createElement("div",{style:y},o().cloneElement(a,{...x,ref:this.savePortalRef}))))}render(){const{width:t,height:n,responsive:e,events:r,title:i,desc:o,tabIndex:a,preserveAspectRatio:u,role:s}=this.props,c=e?this.props.style:h(this.props.style,["height","width"]),l=Wt(this.props),f=Object.assign({width:t,height:n,tabIndex:a,role:s,"aria-labelledby":[i&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[o&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:e?`0 0 ${t} ${n}`:void 0,preserveAspectRatio:e?u:void 0,...l},r);return this.renderContainer(this.props,f,c)}}var Yt=r(4155),Bt=r.n(Yt);class Vt extends o().Component{static displayName="VictoryPortal";static role="portal";static defaultProps={groupComponent:o().createElement("g",null)};static contextType=bt;componentDidMount(){this.checkedContext||("function"!=typeof this.context.portalUpdate&&(this.renderInPlace=!0),this.checkedContext=!0),this.forceUpdate()}componentDidUpdate(){this.renderInPlace||(this.portalKey=this.portalKey||this.context.portalRegister(),this.context.portalUpdate(this.portalKey,this.element))}componentWillUnmount(){this.context&&this.context.portalDeregister&&this.context.portalDeregister(this.portalKey)}renderPortal(t){return this.renderInPlace?t:(this.element=t,null)}render(){const t=Array.isArray(this.props.children)?this.props.children[0]:this.props.children,{groupComponent:n}=this.props,e=t&&t.props||{},r=e.groupComponent?{groupComponent:n,standalone:!1}:{},i=u()(r,e,h(this.props,["children","groupComponent"])),a=t&&o().cloneElement(t,i);return this.renderPortal(a)}}function Kt(){return Kt=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Kt.apply(this,arguments)}const Gt=(0,e.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:a,...u}=t,s={vectorEffect:"non-scaling-stroke",id:m(r,t)?.toString(),tabIndex:m(i,t),...u};return e?o().createElement("rect",Kt({},s,{ref:n}),o().createElement("desc",null,e)):o().createElement("rect",Kt({},s,{ref:n}))})),Zt=t=>{const{children:n,desc:e,id:r,origin:i,tabIndex:a,title:u,...s}=t,c={id:m(r,t)?.toString(),tabIndex:m(a,t),...s};return o().createElement("text",c,u&&o().createElement("title",null,u),e&&o().createElement("desc",null,e),n)},Qt=t=>{const{desc:n,id:e,tabIndex:r,origin:i,...a}=t,u={id:m(e,t)?.toString(),tabIndex:m(r,t),...a};return o().createElement("tspan",u)};function Xt(t){const{labelComponent:n,labelPlacement:e,polar:r}=t,i=r?"perpendicular":"vertical";return e||n.props&&n.props.labelPlacement||i}function Jt(t,n,e){return void 0===n&&(n={}),void 0!==n.label?n.label:Array.isArray(t.labels)?t.labels[e]:t.labels}function tn(t,n){const{x:e}=d(n);return("number"==typeof(r=t.scale.x(e))?r/(Math.PI/180):r)%360;var r}function nn(t,n){const{scale:e,data:r,style:i,horizontal:o,polar:a,width:s,height:c,theme:l,labelComponent:f,disableInlineStyles:d}=t,g=r[n],v=tn(t,g),b=a?function(t,n){const e=Xt(t);return"perpendicular"===e||"vertical"===e&&(90===n||270===n)?"middle":n<=90||n>270?"start":"end"}(t,v):function(t,n){void 0===n&&(n={});const{style:e,horizontal:r}=t,i=n._y>=0?1:-1,o=e&&e.labels||{};return n.verticalAnchor||o.verticalAnchor?n.verticalAnchor||o.verticalAnchor:r?i>=0?"start":"end":"middle"}(t,g),M=a?function(t,n){const e=Xt(t),r=function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}(n);return"parallel"===e||"left"===r||"right"===r?"middle":"top"===r?"end":"start"}(t,v):function(t,n){void 0===n&&(n={});const e=n._y>=0?1:-1,r=t.style&&t.style.labels||{};return n.verticalAnchor||r.verticalAnchor?n.verticalAnchor||r.verticalAnchor:t.horizontal?"middle":e>=0?"end":"start"}(t,g),w=function(t,n){void 0===n&&(n={});const e=t.style&&t.style.labels||{};return void 0===n.angle?e.angle:n.angle}(t,g),A=Jt(t,g,n),k=Xt(t),{x:E,y:O}=function(t,n){const{polar:e}=t,{x:r,y:i}=p(t,n);if(!e)return{x:r,y:i};const o=function(t,n){const{style:e}=t,r=tn(t,n),i=m((e.labels||{}).padding,t)||0,o=x(r);return{x:i*Math.cos(o),y:-i*Math.sin(o)}}(t,n);return{x:r+o.x,y:i+o.y}}(t,g),{dx:j,dy:S}=function(t,n){if(t.polar)return{};const e=function(t,n){void 0===n&&(n={});const{horizontal:e,style:r}=t,i=m((r.labels||{}).padding,t)||0,o=n._y<0?-1:1;return{x:e?o*i:0,y:e?0:-1*o*i}}(t,n);return{dx:e.x,dy:e.y}}(t,g),_={angle:w,data:r,datum:g,disableInlineStyles:d,horizontal:o,index:n,polar:a,scale:e,labelPlacement:k,text:A,textAnchor:b,verticalAnchor:M,x:E,y:O,dx:j,dy:S,width:s,height:c,style:i.labels};if(!y(f))return _;const C=l&&l.tooltip||{};return u()({},_,h(C,["style"]))}const en=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];if(e.length>0)return e.reduce(((t,n)=>[t,en(n)].join(" ")),en(t)).trim();if(null==t||"string"==typeof t)return t;const i=[];for(const n in t)if(t.hasOwnProperty(n)){const e=t[n];i.push(`${n}(${e})`)}return i.join(" ").trim()};var rn=r(1594),on=r.n(rn);const an={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},un={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},sn={em:1,ex:.5},cn={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},ln=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),fn=(t,n,e)=>{const r=(t=>t*Math.PI/180)(e);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*n)},hn=(t,n)=>{const e=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let i;return i=e?un.hasOwnProperty(e)?r*un[e]:sn.hasOwnProperty(e)?(n?r*n:r*cn.fontSize)*sn[e]:r:r||0,i},dn=(t,n)=>{const e=Array.isArray(t)?t[n]:t,r=u()({},e,cn);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:hn(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:hn(String(r.fontSize))})},pn=(t,n)=>{const e=Array.isArray(n)?n[0]&&n[0].angle:n&&n.angle,r=((t,n)=>void 0===t||""===t||null===t?0:ln(t).reduce(((t,e,r)=>{const i=dn(n,r),o=e.toString().match(/[(A-Z)(0-9)]/)?1.15*i.fontSize:i.fontSize;return t+i.lineHeight*o}),0))(t,n),i=((t,n)=>{if(void 0===t||""===t||null===t)return 0;const e=ln(t).map(((t,e)=>{const r=t.toString().length,{fontSize:i,letterSpacing:o,fontFamily:a}=dn(n,e),u=(t=>{const n=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>an[t]))||"Helvetica";return an[n]})(a);return t.toString().split("").map((t=>t.charCodeAt(0)<u.widths.length?u.widths[t.charCodeAt(0)]:u.avg)).reduce(((t,n)=>n+t),0)*i+o*Math.max(r-1,0)}));return Math.max(...e)})(t,n);return{width:e?fn(i,r,e):i,height:1.05*(e?fn(r,i,e):r)}},gn=on()((()=>{const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("xlink","http://www.w3.org/1999/xlink"),t.setAttribute("width","300"),t.setAttribute("height","300"),t.setAttribute("viewBox","0 0 300 300"),t.setAttribute("aria-hidden","true");const n=document.createElementNS("http://www.w3.org/2000/svg","text");return t.appendChild(n),t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t),n})),yn=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",mn=on()(((t,n)=>{let e=gn();e.isConnected||(gn.cache.clear?.(),e=gn());const r=ln(t);let i=0;for(const[t,o]of r.entries()){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),a=dn(n,t);r.style.fontFamily=a.fontFamily,r.style.fontSize=`${a.fontSize}px`,r.style.lineHeight=a.lineHeight,r.style.fontFamily=a.fontFamily,r.style.letterSpacing=a.letterSpacing,r.textContent=o,r.setAttribute("x","0"),r.setAttribute("y",`${i}`),e.appendChild(r),i+=a.lineHeight*r.getBoundingClientRect().height}const{width:o}=e.getBoundingClientRect();return e.innerHTML="",{width:n?.angle?fn(o,i,n?.angle):o,height:n?.angle?fn(i,o,n?.angle):i}}),((t,n)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(n)?n.map(yn).join():yn(n)}`)),vn=(t,n)=>function(t,n,e){return void 0===e&&(e=!1),"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||e?pn(t,n):mn(t,n)}(t,n),xn={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},bn=(t,n)=>t.datum?p(t,t.datum)[n]:0,Mn=t=>{const n=t&&t.fontSize;if("number"==typeof n)return n;if(null==n)return xn.fontSize;if("string"==typeof n){const t=Number(n.replace("px",""));return isNaN(t)?xn.fontSize:t}return xn.fontSize},wn=function(t,n){return void 0===n&&(n=0),Array.isArray(t)?t[n]||t[0]:t},An=t=>{const{backgroundStyle:n,backgroundPadding:e}=t;return Array.isArray(n)&&!Bt()(n)||Array.isArray(e)&&!Bt()(e)},kn=(t,n)=>{const{direction:e,textAnchor:r,x:i,dx:o}=t;if("rtl"===e)return i-n;switch(r){case"middle":return Math.round(i-n/2);case"end":return Math.round(i-n);default:return i+(o||0)}},En=(t,n)=>{const{verticalAnchor:e,y:r,originalDy:i=0}=t,o=r+i;switch(e){case"start":return Math.floor(o);case"end":return Math.ceil(o-n);default:return Math.floor(o-n/2)}},On=(t,n)=>An(t)?((t,n)=>{const{dy:e,dx:r,transform:i,backgroundStyle:a,backgroundPadding:s,backgroundComponent:c,inline:l,y:f}=t,h=n.map(((t,i)=>{const o=wn(n,i-1),a=t.textSize,u=t.fontSize*t.lineHeight,c=Math.ceil(u),h=wn(s,i),d=wn(s,i-1),p=l&&r||0,g=i&&!l?o.fontSize*o.lineHeight+d.top+d.bottom:e-.5*u-(t.fontSize-t.capHeight);return{textHeight:c,labelSize:a,heightWithPadding:c+h.top+h.bottom,widthWithPadding:a.width+h.left+h.right+p,y:f,fontSize:t.fontSize,dy:g}}));return h.map(((n,e)=>{const r=kn(t,n.labelSize.width),d=h.slice(0,e+1).reduce(((t,n)=>t+n.dy),f),p=wn(s,e),g=n.heightWithPadding,y=l?((t,n,e)=>{const{textAnchor:r}=t,i=n.map((t=>t.widthWithPadding)),o=-i.reduce(((t,n)=>t+n),0)/2;switch(r){case"start":return i.reduce(((t,n,r)=>r<e?t+n:t),0);case"end":return i.reduce(((t,n,r)=>r>e?t-n:t),0);default:return i.reduce(((t,n,r)=>r===e?t+n/2:t+(r<e?n:0)),o)}})(t,h,e)+r-p.left:r,m=l?En(t,g)-p.top:d,v={key:`tspan-background-${e}`,height:g,style:wn(a,e),width:n.widthWithPadding,transform:i,x:y-p.left,y:m};return o().cloneElement(c,u()({},c.props,v))}))})(t,n):((t,n)=>{const{dx:e=0,transform:r,backgroundComponent:i,backgroundStyle:a,inline:s,backgroundPadding:c,capHeight:l}=t,f=n.map((t=>t.textSize)),h=s?Math.max(...f.map((t=>t.height))):f.reduce(((t,e,r)=>{const i=r?0:l/2;return t+e.height*(n[r].lineHeight-i)}),0),d=s?f.reduce(((t,n,r)=>{const i=r?e:0;return t+n.width+i}),0):Math.max(...f.map((t=>t.width))),p=kn(t,d),g=En(t,h),y={key:"background",height:h+c.top+c.bottom,style:a,transform:r,width:d+c.left+c.right,x:s?p-c.left:p+e-c.left,y:g};return o().cloneElement(i,u()({},i.props,y))})(t,n),jn=(t,n,e)=>{const{inline:r}=n,i=wn(t,e);return e&&!r?((t,n,e)=>{const r=wn(t,n),i=wn(t,n-1),o=i.fontSize*i.lineHeight,a=r.fontSize*r.lineHeight,u=i.fontSize-i.capHeight,s=r.fontSize-r.capHeight,c=o-i.fontSize/2+r.fontSize/2-o/2+a/2-s/2+u/2;return An(e)?c+r.backgroundPadding.top+i.backgroundPadding.bottom:c})(t,e,n):r?0===e?i.backgroundPadding.top:void 0:i.backgroundPadding.top},Sn=t=>{const n=m(t.ariaLabel,t),e=wn(t.style),r=(t=>{const n=m(t.lineHeight,t);return Array.isArray(n)&&Bt()(n)?[1]:n})(t),i=t.direction?m(t.direction,t):"inherit",o=t.textAnchor?m(t.textAnchor,t):e.textAnchor||"start",a=t.verticalAnchor?m(t.verticalAnchor,t):e.verticalAnchor||"middle",u=t.dx?m(t.dx,t):0,s=((t,n,e)=>{const r=t.dy?m(t.dy,t):0,i=t.inline?1:t.text.length,o=m(t.capHeight,t),a=n?m(n,t):"middle",u=[...Array(i).keys()].map((n=>wn(t.style,n).fontSize)),s=[...Array(i).keys()].map((t=>wn(e,t)));if("start"===a)return r+(o/2+s[0]/2)*u[0];if(t.inline)return"end"===a?r+(o/2-s[0]/2)*u[0]:r+o/2*u[0];if(1===i)return"end"===a?r+(o/2+(.5-i)*s[0])*u[0]:r+(o/2+(.5-i/2)*s[0])*u[0];const c=[...Array(i).keys()].reduce(((t,n)=>t+(o/2+(.5-i)*s[n])*u[n]/i),0);return"end"===a?r+c:r+c/2+o/2*s[i-1]*u[i-1]})(t,a,r),c=void 0!==t.x?t.x:bn(t,"x"),l=void 0!==t.y?t.y:bn(t,"y"),f=((t,n,e)=>{const{polar:r}=t,i=wn(t.style),o=r?function(t,n){const{labelPlacement:e,datum:r}=t;if(!e||"vertical"===e)return 0;const i=tn(t,r);let o=0;return 0===i||180===i?o=90:i>0&&i<180?o=90-i:i>180&&i<360&&(o=270-i),o+(i>90&&i<180||i>270?1:-1)*("perpendicular"===e?0:90)}(t):0,a=void 0===i.angle?m(t.angle,t):i.angle,u=void 0===a?o:a,s=t.transform||i.transform,c=s&&m(s,t);return c||u?en(c,u&&{rotate:[u,n,e]}):void 0})(t,c,l);return Object.assign({},t,{ariaLabel:n,lineHeight:r,direction:i,textAnchor:o,verticalAnchor:a,dx:u,dy:s,originalDy:m(t.dy,t),transform:f,x:c,y:l})},_n={backgroundComponent:o().createElement(Gt,null),groupComponent:o().createElement("g",null),direction:"inherit",textComponent:o().createElement(Zt,null),tspanComponent:o().createElement(Qt,null),capHeight:.71,lineHeight:1},Cn=t=>{const n=(t=>{const n=((t,n)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>m(t,n)));const e=m(t,n);return null!=e?Array.isArray(e)?e:`${e}`.split("\n"):void 0})(t.text,t),e=((t,n)=>{if(n.disableInlineStyles){const e=v(t,n);return{fontSize:Mn(e)}}const e=t=>{const e=v(t?u()({},t,xn):xn,n);return Object.assign({},e,{fontSize:Mn(e)})};return Array.isArray(t)&&!Bt()(t)?t.map((t=>e(t))):e(t)})(t.style,Object.assign({},t,{text:n})),r=((t,n)=>{if(t)return Array.isArray(t)&&!Bt()(t)?t.map((t=>v(t,n))):v(t,n)})(t.backgroundStyle,Object.assign({},t,{text:n,style:e})),i=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((n=>g({padding:m(n,t)}))):g({padding:m(t.backgroundPadding,t)}))(Object.assign({},t,{text:n,style:e,backgroundStyle:r})),o=m(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:i,style:e,text:n,id:o})})(u()({},t,_n));if(null===n.text||void 0===n.text)return null;const e=Sn(n),{text:r,style:i,capHeight:a,backgroundPadding:s,lineHeight:c}=e,l=r.map(((t,n)=>{const e=wn(i,n),r=hn(`${a}em`,e.fontSize),o=wn(c,n);return{style:e,fontSize:e.fontSize||xn.fontSize,capHeight:r,text:t,textSize:vn(t,e),lineHeight:o,backgroundPadding:wn(s,n)}})),f=((t,n)=>{const{ariaLabel:e,inline:r,className:i,title:a,events:u,direction:s,text:c,textAnchor:l,dx:f,dy:h,transform:d,x:p,y:g,desc:y,id:v,tabIndex:x,tspanComponent:b,textComponent:M}=t,w=Wt(t),A={"aria-label":e,key:"text",...u,direction:s,dx:f,x:p,y:g+h,transform:d,className:i,title:a,desc:m(y,t),tabIndex:m(x,t),id:v,...w},k=c.map(((e,i)=>{const a=n[i].style,u={key:`${v}-key-${i}`,x:r?void 0:p,dx:r?f+n[i].backgroundPadding.left:f,dy:jn(n,t,i),textAnchor:a.textAnchor||l,style:a,children:e};return o().cloneElement(b,u)}));return o().cloneElement(M,A,k)})(e,l);if(n.backgroundStyle){const t=[On(e,l),f],r=o().cloneElement(n.groupComponent,{},t);return n.renderInPortal?o().createElement(Vt,null,r):r}return n.renderInPortal?o().createElement(Vt,null,f):f};Cn.displayName="VictoryLabel",Cn.role="label",Cn.defaultStyles=xn;const Tn=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],Dn="#252525",$n="#969696",Nn={width:450,height:300,padding:50,colorScale:Tn},Pn={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:Dn,stroke:"transparent"},Ln=Object.assign({textAnchor:"middle"},Pn),In={area:Object.assign({style:{data:{fill:Dn},labels:Pn}},Nn),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Dn,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},Ln,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:Pn}},Nn),bar:Object.assign({style:{data:{fill:Dn,padding:8,strokeWidth:0},labels:Pn}},Nn),boxplot:Object.assign({style:{max:{padding:8,stroke:Dn,strokeWidth:1},maxLabels:Object.assign({},Pn,{padding:3}),median:{padding:8,stroke:Dn,strokeWidth:1},medianLabels:Object.assign({},Pn,{padding:3}),min:{padding:8,stroke:Dn,strokeWidth:1},minLabels:Object.assign({},Pn,{padding:3}),q1:{padding:8,fill:$n},q1Labels:Object.assign({},Pn,{padding:3}),q3:{padding:8,fill:$n},q3Labels:Object.assign({},Pn,{padding:3})},boxWidth:20},Nn),candlestick:Object.assign({style:{data:{stroke:Dn,strokeWidth:1},labels:Object.assign({},Pn,{padding:5})},candleColors:{positive:"#ffffff",negative:Dn}},Nn),chart:Nn,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:Dn,strokeWidth:2},labels:Pn}},Nn),group:Object.assign({colorScale:Tn},Nn),histogram:Object.assign({style:{data:{fill:$n,stroke:Dn,strokeWidth:2},labels:Pn}},Nn),legend:{colorScale:Tn,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Pn,title:Object.assign({},Pn,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:Dn,strokeWidth:2},labels:Pn}},Nn),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},Pn,{padding:20})},colorScale:Tn,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:Dn,stroke:"transparent",strokeWidth:0},labels:Pn}},Nn),stack:Object.assign({colorScale:Tn},Nn),tooltip:{style:Object.assign({},Pn,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Dn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},Pn,{padding:5,pointerEvents:"none"}),flyout:{stroke:Dn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Nn)},Rn=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],Un="#ECEFF1",Fn="#90A4AE",zn="#455A64",Wn="#212121",Hn={width:350,height:350,padding:50},qn={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:zn,stroke:"transparent",strokeWidth:0},Yn=Object.assign({textAnchor:"middle"},qn),Bn="round",Vn="round",Kn=(Object.assign({style:{data:{fill:Wn},labels:qn}},Hn),Object.assign({style:{axis:{fill:"transparent",stroke:Fn,strokeWidth:2,strokeLinecap:Bn,strokeLinejoin:Vn},axisLabel:Object.assign({},Yn,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:Un,strokeDasharray:"10, 5",strokeLinecap:Bn,strokeLinejoin:Vn,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Fn,strokeWidth:1,strokeLinecap:Bn,strokeLinejoin:Vn},tickLabels:Object.assign({},qn,{fill:zn})}},Hn),Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),Object.assign({style:{data:{fill:zn,padding:8,strokeWidth:0},labels:qn}},Hn),Object.assign({style:{max:{padding:8,stroke:zn,strokeWidth:1},maxLabels:Object.assign({},qn,{padding:3}),median:{padding:8,stroke:zn,strokeWidth:1},medianLabels:Object.assign({},qn,{padding:3}),min:{padding:8,stroke:zn,strokeWidth:1},minLabels:Object.assign({},qn,{padding:3}),q1:{padding:8,fill:zn},q1Labels:Object.assign({},qn,{padding:3}),q3:{padding:8,fill:zn},q3Labels:Object.assign({},qn,{padding:3})},boxWidth:20},Hn),Object.assign({style:{data:{stroke:zn},labels:Object.assign({},qn,{padding:5})},candleColors:{positive:"#ffffff",negative:zn}},Hn),Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:zn,strokeWidth:2},labels:qn}},Hn),Object.assign({colorScale:Rn},Hn),Object.assign({style:{data:{fill:zn,stroke:Wn,strokeWidth:2},labels:qn}},Hn),Object.assign({},qn,{padding:5}),Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:zn,strokeWidth:2},labels:qn}},Hn),Object.assign({colorScale:Rn,style:{data:{padding:8,stroke:Un,strokeWidth:1},labels:Object.assign({},qn,{padding:20})}},Hn),Object.assign({style:{data:{fill:zn,opacity:1,stroke:"transparent",strokeWidth:0},labels:qn}},Hn),Object.assign({colorScale:Rn},Hn),Object.assign({},qn,{padding:0,pointerEvents:"none"}),Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},qn,{padding:5,pointerEvents:"none"}),flyout:{stroke:Wn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Hn),In);var Gn=r(7491),Zn=r.n(Gn);const Qn=t=>+t;function Xn(t){return t*t}function Jn(t){return t*(2-t)}function te(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function ne(t){return t*t*t}function ee(t){return--t*t*t+1}function re(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var ie=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),oe=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),ae=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),ue=Math.PI,se=ue/2;function ce(t){return 1==+t?1:1-Math.cos(t*se)}function le(t){return Math.sin(t*se)}function fe(t){return(1-Math.cos(ue*t))/2}function he(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function de(t){return he(1-+t)}function pe(t){return 1-he(t)}function ge(t){return((t*=2)<=1?he(1-t):2-he(t-1))/2}function ye(t){return 1-Math.sqrt(1-t*t)}function me(t){return Math.sqrt(1- --t*t)}function ve(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var xe=7.5625;function be(t){return 1-Me(1-t)}function Me(t){return(t=+t)<.36363636363636365?xe*t*t:t<.7272727272727273?xe*(t-=.5454545454545454)*t+.75:t<.9090909090909091?xe*(t-=.8181818181818182)*t+.9375:xe*(t-=.9545454545454546)*t+.984375}function we(t){return((t*=2)<=1?1-Me(1-t):Me(t-1)+1)/2}var Ae=1.70158,ke=function t(n){function e(t){return(t=+t)*t*(n*(t-1)+t)}return n=+n,e.overshoot=t,e}(Ae),Ee=function t(n){function e(t){return--t*t*((t+1)*n+t)+1}return n=+n,e.overshoot=t,e}(Ae),Oe=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}(Ae),je=2*Math.PI,Se=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=je);function i(t){return n*he(- --t)*Math.sin((r-t)/e)}return i.amplitude=function(n){return t(n,e*je)},i.period=function(e){return t(n,e)},i}(1,.3),_e=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=je);function i(t){return 1-n*he(t=+t)*Math.sin((t+r)/e)}return i.amplitude=function(n){return t(n,e*je)},i.period=function(e){return t(n,e)},i}(1,.3),Ce=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=je);function i(t){return((t=2*t-1)<0?n*he(-t)*Math.sin((r-t)/e):2-n*he(t)*Math.sin((r+t)/e))/2}return i.amplitude=function(n){return t(n,e*je)},i.period=function(e){return t(n,e)},i}(1,.3),Te=r(4143),De=r.n(Te);function $e(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function Ne(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Pe(){}var Le=.7,Ie=1/Le,Re="\\s*([+-]?\\d+)\\s*",Ue="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ze=/^#([0-9a-f]{3,8})$/,We=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),He=new RegExp(`^rgb\\(${Fe},${Fe},${Fe}\\)$`),qe=new RegExp(`^rgba\\(${Re},${Re},${Re},${Ue}\\)$`),Ye=new RegExp(`^rgba\\(${Fe},${Fe},${Fe},${Ue}\\)$`),Be=new RegExp(`^hsl\\(${Ue},${Fe},${Fe}\\)$`),Ve=new RegExp(`^hsla\\(${Ue},${Fe},${Fe},${Ue}\\)$`),Ke={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 Ge(){return this.rgb().formatHex()}function Ze(){return this.rgb().formatRgb()}function Qe(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=ze.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?Xe(n):3===e?new er(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Je(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Je(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=We.exec(t))?new er(n[1],n[2],n[3],1):(n=He.exec(t))?new er(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=qe.exec(t))?Je(n[1],n[2],n[3],n[4]):(n=Ye.exec(t))?Je(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Be.exec(t))?sr(n[1],n[2]/100,n[3]/100,1):(n=Ve.exec(t))?sr(n[1],n[2]/100,n[3]/100,n[4]):Ke.hasOwnProperty(t)?Xe(Ke[t]):"transparent"===t?new er(NaN,NaN,NaN,0):null}function Xe(t){return new er(t>>16&255,t>>8&255,255&t,1)}function Je(t,n,e,r){return r<=0&&(t=n=e=NaN),new er(t,n,e,r)}function tr(t){return t instanceof Pe||(t=Qe(t)),t?new er((t=t.rgb()).r,t.g,t.b,t.opacity):new er}function nr(t,n,e,r){return 1===arguments.length?tr(t):new er(t,n,e,null==r?1:r)}function er(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function rr(){return`#${ur(this.r)}${ur(this.g)}${ur(this.b)}`}function ir(){const t=or(this.opacity);return`${1===t?"rgb(":"rgba("}${ar(this.r)}, ${ar(this.g)}, ${ar(this.b)}${1===t?")":`, ${t})`}`}function or(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ar(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ur(t){return((t=ar(t))<16?"0":"")+t.toString(16)}function sr(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new lr(t,n,e,r)}function cr(t){if(t instanceof lr)return new lr(t.h,t.s,t.l,t.opacity);if(t instanceof Pe||(t=Qe(t)),!t)return new lr;if(t instanceof lr)return t;var n=(t=t.rgb()).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 lr(a,u,s,t.opacity)}function lr(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function fr(t){return(t=(t||0)%360)<0?t+360:t}function hr(t){return Math.max(0,Math.min(1,t||0))}function dr(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 pr(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}$e(Pe,Qe,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ge,formatHex:Ge,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return cr(this).formatHsl()},formatRgb:Ze,toString:Ze}),$e(er,nr,Ne(Pe,{brighter(t){return t=null==t?Ie:Math.pow(Ie,t),new er(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Le:Math.pow(Le,t),new er(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new er(ar(this.r),ar(this.g),ar(this.b),or(this.opacity))},displayable(){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:rr,formatHex:rr,formatHex8:function(){return`#${ur(this.r)}${ur(this.g)}${ur(this.b)}${ur(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ir,toString:ir})),$e(lr,(function(t,n,e,r){return 1===arguments.length?cr(t):new lr(t,n,e,null==r?1:r)}),Ne(Pe,{brighter(t){return t=null==t?Ie:Math.pow(Ie,t),new lr(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Le:Math.pow(Le,t),new lr(this.h,this.s,this.l*t,this.opacity)},rgb(){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 er(dr(t>=240?t-240:t+120,i,r),dr(t,i,r),dr(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new lr(fr(this.h),hr(this.s),hr(this.l),or(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=or(this.opacity);return`${1===t?"hsl(":"hsla("}${fr(this.h)}, ${100*hr(this.s)}%, ${100*hr(this.l)}%${1===t?")":`, ${t})`}`}}));var gr=t=>()=>t;function yr(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):gr(isNaN(t)?n:t)}var mr=function t(n){var e=function(t){return 1==(t=+t)?yr: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):gr(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=nr(t)).r,(n=nr(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=yr(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+""}}return r.gamma=t,r}(1);function vr(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;e<i;++e)r=nr(n[e]),o[e]=r.r||0,a[e]=r.g||0,u[e]=r.b||0;return o=t(o),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=u(t),r+""}}}function xr(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(e=0;e<i;++e)o[e]=jr(t[e],n[e]);for(;e<r;++e)a[e]=n[e];return function(t){for(e=0;e<i;++e)a[e]=o[e](t);return a}}function br(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function Mr(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function wr(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=jr(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}vr((function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r<n-1?t[r+2]:2*o-i;return pr((e-r/n)*n,a,i,o,u)}})),vr((function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],o=t[r%n],a=t[(r+1)%n],u=t[(r+2)%n];return pr((e-r/n)*n,i,o,a,u)}}));var Ar=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,kr=new RegExp(Ar.source,"g");function Er(t,n){var e,r,i,o=Ar.lastIndex=kr.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(e=Ar.exec(t))&&(r=kr.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:Mr(e,r)})),o=kr.lastIndex;return o<n.length&&(i=n.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?s[0]?function(t){return function(n){return t(n)+""}}(s[0].x):function(t){return function(){return t}}(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 Or(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(o){for(e=0;e<r;++e)i[e]=t[e]*(1-o)+n[e]*o;return i}}function jr(t,n){var e,r,i=typeof n;return null==n||"boolean"===i?gr(n):("number"===i?Mr:"string"===i?(e=Qe(n))?(n=e,mr):Er:n instanceof Qe?mr:n instanceof Date?br:(r=n,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(n)?xr:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?wr:Mr:Or))(t,n)}const Sr=function(t){if(null!==t)switch(typeof t){case"undefined":case"boolean":return!1;case"number":return!isNaN(t)&&t!==Number.POSITIVE_INFINITY&&t!==Number.NEGATIVE_INFINITY;case"string":case"function":return!0;case"object":return t instanceof Date||Array.isArray(t)||_()(t)}return!1},_r=function(t,n,e){return void 0===e&&(e=0),function(r){return r<e?t:n}},Cr=function(t,n){return function(e){return e>=1?n:function(){const r="function"==typeof t?t.apply(this,arguments):t,i="function"==typeof n?n.apply(this,arguments):n;return jr(r,i)(e)}}},Tr=function(t,n){const e=t=>Array.isArray(t)?De()(t,"key"):t,r={},i={};let o,a=t,u=n;for(o in null!==a&&"object"==typeof a||(a={}),null!==u&&"object"==typeof u||(u={}),u)o in a?r[o]=(s=e(a[o]))!==(c=e(u[o]))&&Sr(s)&&Sr(c)?"function"==typeof s||"function"==typeof c?Cr(s,c):"object"==typeof s&&_()(s)||"object"==typeof c&&_()(c)?Tr(s,c):jr(s,c):_r(s,c):i[o]=u[o];var s,c;return function(t){for(o in r)i[o]=r[o](t);return i}},Dr=1e3,$r=n=>{let{duration:e=Dr,easing:r="quadInOut",delay:i=0,data:a,children:u,onEnd:s}=n;const[c,l]=o().useState({data:Array.isArray(a)?a[0]:a,animationInfo:{progress:0,animating:!1}}),f=o().useContext(Ft).animationTimer,h=o().useRef(Array.isArray(a)?a.slice(1):[]),d=o().useRef(null),p=o().useRef(void 0),g=t[(y=r,`ease${y.charAt(0).toUpperCase()+y.slice(1)}`)];var y;o().useEffect((()=>(h.current.length&&m(),()=>{p.current?f.unsubscribe(p.current):f.stop()})),[]),o().useEffect((()=>{d.current&&c.animationInfo&&c.animationInfo.progress<1?l({data:d.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}):(f.unsubscribe(p.current),h.current=Array.isArray(a)?a:[a],m())}),[a]);const m=()=>{if(h.current.length){const r=h.current[0];d.current=(t=c.data)!==(n=r)&&Sr(t)&&Sr(n)?"function"==typeof t||"function"==typeof n?Cr(t,n):_()(t)||_()(n)?Tr(t,n):"string"==typeof t||"string"==typeof n?function(t,n){const e=t=>"string"==typeof t?t.replace(/,/g,""):t;return jr(e(t),e(n))}(t,n):jr(t,n):_r(t,n),i?setTimeout((()=>{p.current=f.subscribe(v,e)}),i):p.current=f.subscribe(v,e)}else s&&s();var t,n},v=t=>{if(!d.current)return;const n=e?t/e:1;if(n>=1)return l({data:d.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),p.current&&f.unsubscribe(p.current),h.current.shift(),void m();l({data:d.current(g(n)),animationInfo:{progress:n,animating:n<1}})};return u(c.data,c.animationInfo)};function Nr(t){return Array.isArray(t)&&t.some((t=>t instanceof Date))}function Pr(t,n){return t&&n?t.filter((t=>!n.includes(t))):[]}function Lr(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];const i=t.concat(e);return Nr(i)?new Date(Math.max(...i)):Math.max(...i)}function Ir(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];const i=t.concat(e);return Nr(i)?new Date(Math.min(...i)):Math.min(...i)}var Rr=r(5346),Ur=r.n(Rr);function Fr(t,n){return(t.key||n).toString()}function zr(t){return t.reduce(((t,n,e)=>(t[Fr(n,e)]=n,t)),{})}function Wr(t,n){let e=!1;const r=Object.keys(t).reduce(((t,r)=>(r in n||(e=!0,t[r]=!0),t)),{});return e&&r}function Hr(t){return t.type&&t.type.getData?t.type.getData(t.props):t.props&&t.props.data||!1}function qr(t,n){let e=!1,r=!1;const i=(t,n)=>t.map(((a,u)=>a&&a.props&&a.props.children&&n[u]?i(o().Children.toArray(t[u].props.children),o().Children.toArray(n[u].props.children)):((t,n)=>{if(!n||t.type!==n.type)return{};const{entering:i,exiting:o}=function(t,n){const e=t&&zr(t),r=n&&zr(n);return{entering:e&&Wr(r,e),exiting:r&&Wr(e,r)}}(Hr(t),Hr(n))||{};return e=e||!!o,r=r||!!i,{entering:i||!1,exiting:o||!1}})(a,n[u]))),a=i(o().Children.toArray(t),o().Children.toArray(n));return{nodesWillExit:e,nodesWillEnter:r,childrenTransitions:a,nodesShouldEnter:!1}}function Yr(t,n,e){const r=n&&n.nodesWillExit,i=n&&n.nodesWillEnter,o=n&&n.nodesShouldEnter,a=n&&n.nodesShouldLoad,s=n&&n.nodesDoneLoad,c=n&&n.childrenTransitions||[],l={enter:t.animate&&t.animate.onEnter&&t.animate.onEnter.duration,exit:t.animate&&t.animate.onExit&&t.animate.onExit.duration,load:t.animate&&t.animate.onLoad&&t.animate.onLoad.duration,move:t.animate&&t.animate.duration},f=(t,n,r)=>a?function(t,n,r){const i=Object.assign({},t,{onEnd:()=>{e({nodesShouldLoad:!1,nodesDoneLoad:!0})}});let o=n;if(i&&i.onLoad&&!i.onLoad.duration)return{animate:t,data:n};const a=t.onLoad&&t.onLoad.after?t.onLoad.after:Ur();return o=n.map(((t,e)=>Object.assign({},t,a(t,e,n)))),{animate:i,data:o}}(r,n):function(t,n,r,i){const o=Object.assign({},t,{onEnd:()=>{e({nodesDoneLoad:!0})}});if(o&&o.onLoad&&!o.onLoad.duration)return{animate:o,data:r};const a=o.onLoad&&o.onLoad.before?o.onLoad.before:Ur();return{animate:o,data:r.map(((t,n)=>Object.assign({},t,a(t,n,r)))),clipWidth:0}}(r,0,n),h=(t,n,r,i)=>function(t,n,r,i,o){const a=t&&t.onExit,u=Object.assign({},t,a);let s=r;if(i){t.onEnd=()=>{e({nodesWillExit:!1})};const n=t.onExit&&t.onExit.before?t.onExit.before:Ur();s=r.map(((t,e)=>{const o=(t.key||e).toString();return i[o]?Object.assign({},t,n(t,e,r)):t}))}return{animate:u,data:s}}(i,0,r,t),d=(t,n,r,i)=>o?function(t,n,r,i){const o=t&&t.onEnter,a=Object.assign({},t,o);let u=n;if(r){a.onEnd=()=>{e({nodesWillEnter:!1})};const t=a.onEnter&&a.onEnter.after?a.onEnter.after:Ur();u=n.map(((e,i)=>{const o=Fr(e,i);return r[o]?Object.assign({},e,t(e,i,n)):e}))}return{animate:a,data:u}}(i,r,t):function(t,n,r,i,o){let a=t,u=r;if(i){a=Object.assign({},t,{onEnd:()=>{e({nodesShouldEnter:!0})}});const n=t.onEnter&&t.onEnter.before?t.onEnter.before:Ur();u=r.map(((t,e)=>{const o=(t.key||e).toString();return i[o]?Object.assign({},t,n(t,e,r)):t}))}return{animate:a,data:u}}(i,0,r,t),p=function(t,n){const e=t.props.animate;if(!t.type)return{};const r=t.props&&t.props.polar&&t.type.defaultPolarTransitions||t.type.defaultTransitions;if(r){const t=e[n]&&e[n].duration;return void 0!==t?t:r[n]&&r[n].duration}return{}};return function(e,a){const g=Hr(e)||[],y=u()({},t.animate,e.props.animate),m=e.props.polar&&e.type.defaultPolarTransitions||e.type.defaultTransitions;y.onExit=u()({},y.onExit,m&&m.onExit),y.onEnter=u()({},y.onEnter,m&&m.onEnter),y.onLoad=u()({},y.onLoad,m&&m.onLoad);const v=c[a]||c[0];if(!s){const t={duration:void 0!==l.load?l.load:p(e,"onLoad")};return f(0,g,Object.assign({},y,t))}if(r){const t=v&&v.exiting,n=void 0!==l.exit?l.exit:p(e,"onExit"),r=t?{duration:n}:{delay:n};return h(t,0,g,Object.assign({},y,r))}if(i){const t=v&&v.entering,n=void 0!==l.enter?l.enter:p(e,"onEnter"),r=void 0!==l.move?l.move:e.props.animate&&e.props.animate.duration,i={duration:o&&t?n:r};return d(t,0,g,Object.assign({},y,i))}return!n&&y&&y.onExit?function(t,n){const e=t.onEnter&&t.onEnter.after?t.onEnter.after:Ur();return{data:n.map(((t,r)=>Object.assign({},t,e(t,r,n))))}}(y,g):{animate:y,data:g}}}function Br(){return Br=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Br.apply(this,arguments)}class Vr extends o().Component{static displayName="VictoryTransition";static contextType=Ft;constructor(t,n){super(t,n),this.state={nodesShouldLoad:!1,nodesDoneLoad:!1};const e=this.props.children,r=e.props.polar;this.continuous=!r&&e.type&&!0===e.type.continuous,this.timer=this.context.transitionTimer}componentDidMount(){this.setState({nodesShouldLoad:!0})}shouldComponentUpdate(t){return Zn()(this.props,t)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,t),(()=>this.timer.resumeAnimation()))),!0}componentWillUnmount(){this.timer.stop()}getTransitionState(t,n){const{animate:e}=t;if(!e)return{};if(e.parentState)return{oldProps:e.parentState.nodesWillExit?t:null,nextProps:n};const r=o().Children.toArray(t.children),i=o().Children.toArray(n.children),{nodesWillExit:a,nodesWillEnter:u,childrenTransitions:s,nodesShouldEnter:c}=qr(r,i);return{nodesWillExit:a,nodesWillEnter:u,childrenTransitions:s,nodesShouldEnter:c,oldProps:a?t:null,nextProps:n}}getDomainFromChildren(t,n){const e=t=>t.reduce(((t,r)=>{if(r.type&&A(r.type.getDomain)){const e=r.props&&r.type.getDomain(r.props,n);return e?t.concat(e):t}return r.props&&r.props.children?t.concat(e(o().Children.toArray(r.props.children))):t}),[]),r=o().Children.toArray(t.children)[0],i=r.props||{},a=Array.isArray(i.domain)?i.domain:i.domain&&i.domain[n];if(!i.children&&a)return a;const u=e([r]);return 0===u.length?[0,1]:[Ir(u),Lr(u)]}pickProps(){return this.state&&this.state.nodesWillExit&&this.state.oldProps||this.props}pickDomainProps(t){const n=t.animate?.parentState;return n&&n.nodesWillExit?(this.continuous||n.continuous)&&(n.nextProps||this.state.nextProps)||t:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||t}getClipWidth(t,n){const e=this.transitionProps?this.transitionProps.clipWidth:void 0;return void 0!==e?e:(()=>{const e=M(n.props,"x");return e?Math.abs(e[1]-e[0]):t.width})()}render(){const t=this.pickProps(),n=this.props.animate?.getTransitions?this.props.animate.getTransitions:Yr(t,this.state,(t=>this.setState(t))),e=o().Children.toArray(t.children)[0],r=n(e);this.transitionProps=r;const i={x:this.getDomainFromChildren(this.pickDomainProps(t),"x"),y:this.getDomainFromChildren(t,"y")},a=this.getClipWidth(t,e),s=u()({domain:i,clipWidth:a},r,e.props),l=(t.animationWhitelist||[]).concat(["clipWidth"]),f=l.length?c()(s,l):s;return o().createElement($r,Br({},s.animate,{data:f}),(t=>{if(e.props.groupComponent){const n=this.continuous?o().cloneElement(e.props.groupComponent,{clipWidth:t.clipWidth||0}):e.props.groupComponent;return o().cloneElement(e,u()({animate:null,animating:!0,groupComponent:n},t,s))}return o().cloneElement(e,u()({animate:null,animating:!0},t,s))}))}}var Kr=r(9602),Gr=r.n(Kr),Zr=r(1616),Qr=r.n(Zr),Xr=r(4912),Jr=r.n(Xr);const ti=/^onGlobal(.*)$/;function ni(t,n,e,r){const i=t=>{const r=(()=>{const r=t.reduce(((t,e)=>void 0!==e.target?(Array.isArray(e.target)?e.target.includes(n):`${e.target}`==`${n}`)?t.concat(e):t:t.concat(e)),[]);return void 0!==e&&"parent"!==n?r.filter((t=>{const n=t.eventKey,r=t=>!t||`${t}`==`${e}`;return Array.isArray(n)?n.some((t=>r(t))):r(n)})):r})();return Array.isArray(r)&&r.reduce(((t,n)=>n?Object.assign(t,n.eventHandlers):t),{})},o=(()=>Array.isArray(this.componentEvents)?Array.isArray(t.events)?this.componentEvents.concat(...t.events):this.componentEvents:t.events)(),a=o&&A(r)?r(i(o),n):void 0;if(!t.sharedEvents)return a;const u=t.sharedEvents.getEvents,s=t.sharedEvents.events&&u(i(t.sharedEvents.events),n);return Object.assign({},s,a)}function ei(t,n,e,r){if(Bt()(t))return{};const i=r||this.baseProps,o=(t,n)=>{const{childName:e,target:r,key:o}=t,a="props"===n?i:this.state||{},u=null!=e&&a[e]?a[e]:a;return"parent"===o?u.parent:u[o]&&u[o][r]},a=(t,r)=>{const a="parent"===n?t.childName:t.childName||e,u=t.target||n,s=(n,e)=>{const r=this.state||{};if(!A(t.mutation))return r;const a=o({childName:e,key:n,target:u},"props"),s=o({childName:e,key:n,target:u},"state"),c=t.mutation(Object.assign({},a,s),i),l=r[e]||{},f=t=>c?(t=>"parent"===u?Object.assign(t,{[n]:Object.assign(t[n]||{},c)}):Object.assign(t,{[n]:Object.assign(t[n]||{},{[u]:c})}))(t):(t=>(t[n]&&t[n][u]&&delete t[n][u],t[n]&&!Object.keys(t[n]).length&&delete t[n],t))(t);return null!=e?Object.assign(r,{[e]:f(l)}):f(r)},c=n=>{const e=(n=>"parent"===u?"parent":"all"===t.eventKey?i[n]?Object.keys(i[n]).filter((t=>"parent"!==t)):Object.keys(i).filter((t=>"parent"!==t)):void 0===t.eventKey&&"parent"===r?i[n]?Object.keys(i[n]):Object.keys(i):void 0!==t.eventKey?t.eventKey:r)(n);return Array.isArray(e)?e.reduce(((t,e)=>Object.assign(t,s(e,n))),{}):s(e,n)},l="all"===a?Object.keys(i).filter((t=>"parent"!==t)):a;return Array.isArray(l)?l.reduce(((t,n)=>Object.assign(t,c(n))),{}):c(l)},u=(n,e,r,i)=>{const o=t[i](n,e,r,this);if(!Bt()(o)){const t=(t=>{const n=t=>A(t.callback)&&t.callback,e=(Array.isArray(t)?t.map((t=>n(t))):[n(t)]).filter((t=>!1!==t));return e.length?()=>e.forEach((t=>t())):void 0})(o);this.setState(((t,n)=>Array.isArray(t)?t.reduce(((t,e)=>Object.assign({},t,a(e,n))),{}):a(t,n))(o,r),t)}};return Object.keys(t).reduce(((t,n)=>(t[n]=u,t)),{})}function ri(t,n,e){const r=this.state||{};return e?r[e]&&r[e][t]&&r[e][t][n]:"parent"===t?r[t]&&r[t][n]||r[t]:r[t]&&r[t][n]}function ii(t,n,e,r){const i=(t,n)=>"string"==typeof t[n]?"all"===t[n]||t[n]===r[n]:!!Array.isArray(t[n])&&t[n].map((t=>`${t}`)).includes(r[n]);let o=Array.isArray(t)?t:[t];r.childName&&(o=t.filter((t=>i(t,"childName"))));const a=o.filter((t=>i(t,"target")));if(Bt()(a))return;const u=a.filter((t=>i(t,"eventKey")));return Bt()(u)?void 0:u.reduce(((t,r)=>{const i=(r&&A(r.mutation)?r.mutation:()=>{})(Object.assign({},n,e));return Object.assign({},t,i)}),{})}function oi(t){const n=t.match(ti);return n&&n[1]&&n[1].toLowerCase()}const ai=t=>!w(t._x)&&!w(t._y),ui=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];var si=r(8999),ci=r.n(si),li=r(8254),fi=r.n(li);function hi(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)),o=new Array(i);++r<i;)o[r]=t+r*e;return o}function di(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function pi(t,n){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof n?this.interpolator(n):this.range(n)}return this}class gi extends Map{constructor(t,n=mi){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,e]of t)this.set(n,e)}get(t){return super.get(yi(this,t))}has(t){return super.has(yi(this,t))}set(t,n){return super.set(function({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}(this,t),n)}delete(t){return super.delete(function({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}(this,t))}}function yi({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function mi(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const vi=Symbol("implicit");function xi(){var t=new gi,n=[],e=[],r=vi;function i(i){let o=t.get(i);if(void 0===o){if(r!==vi)return r;t.set(i,o=n.push(i)-1)}return e[o%e.length]}return i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new gi;for(const r of e)t.has(r)||t.set(r,n.push(r)-1);return i},i.range=function(t){return arguments.length?(e=Array.from(t),i):e.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return xi(n,e).unknown(r)},di.apply(i,arguments),i}function bi(){var t,n,e=xi().unknown(void 0),r=e.domain,i=e.range,o=0,a=1,u=!1,s=0,c=0,l=.5;function f(){var e=r().length,f=a<o,h=f?a:o,d=f?o:a;t=(d-h)/Math.max(1,e-s+2*c),u&&(t=Math.floor(t)),h+=(d-h-t*(e-s))*l,n=t*(1-s),u&&(h=Math.round(h),n=Math.round(n));var p=hi(e).map((function(n){return h+t*n}));return i(f?p.reverse():p)}return delete e.unknown,e.domain=function(t){return arguments.length?(r(t),f()):r()},e.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,f()):[o,a]},e.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,u=!0,f()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(u=!!t,f()):u},e.padding=function(t){return arguments.length?(s=Math.min(1,c=+t),f()):s},e.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),f()):s},e.paddingOuter=function(t){return arguments.length?(c=+t,f()):c},e.align=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),f()):l},e.copy=function(){return bi(r(),[o,a]).round(u).paddingInner(s).paddingOuter(c).align(l)},di.apply(f(),arguments)}function Mi(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Mi(n())},t}function wi(){return Mi(bi.apply(null,arguments).paddingInner(1))}var Ai=Math.sqrt(50),ki=Math.sqrt(10),Ei=Math.sqrt(2);function Oi(t,n,e){var r,i,o,a,u=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(a=ji(t,n,e))||!isFinite(a))return[];if(a>0){let e=Math.round(t/a),r=Math.round(n/a);for(e*a<t&&++e,r*a>n&&--r,o=new Array(i=r-e+1);++u<i;)o[u]=(e+u)*a}else{a=-a;let e=Math.round(t*a),r=Math.round(n*a);for(e/a<t&&++e,r/a>n&&--r,o=new Array(i=r-e+1);++u<i;)o[u]=(e+u)/a}return r&&o.reverse(),o}function ji(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Ai?10:o>=ki?5:o>=Ei?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Ai?10:o>=ki?5:o>=Ei?2:1)}function Si(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Ai?i*=10:o>=ki?i*=5:o>=Ei&&(i*=2),n<t?-i:i}function _i(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function Ci(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function Ti(t){let n,e,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==n(r,r))return o;do{const n=i+o>>>1;e(t[n],r)<0?i=n+1:o=n}while(i<o)}return i}return 2!==t.length?(n=_i,e=(n,e)=>_i(t(n),e),r=(n,e)=>t(n)-e):(n=t===_i||t===Ci?t:Di,e=t,r=t),{left:i,center:function(t,n,e=0,o=t.length){const a=i(t,n,e,o-1);return a>e&&r(t[a-1],n)>-r(t[a],n)?a-1:a},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==n(r,r))return o;do{const n=i+o>>>1;e(t[n],r)<=0?i=n+1:o=n}while(i<o)}return i}}}function Di(){return 0}function $i(t){return null===t?NaN:+t}const Ni=Ti(_i),Pi=Ni.right;Ni.left,Ti($i).center;var Li=Pi;function Ii(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function Ri(t){return+t}var Ui=[0,1];function Fi(t){return t}function zi(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function Wi(t,n,e){var r=t[0],i=t[1],o=n[0],a=n[1];return i<r?(r=zi(i,r),o=e(a,o)):(r=zi(r,i),o=e(o,a)),function(t){return o(r(t))}}function Hi(t,n,e){var r=Math.min(t.length,n.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<r;)i[a]=zi(t[a],t[a+1]),o[a]=e(n[a],n[a+1]);return function(n){var e=Li(t,n,1,r)-1;return o[e](i[e](n))}}function qi(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Yi(){var t,n,e,r,i,o,a=Ui,u=Ui,s=jr,c=Fi;function l(){var t,n,e,s=Math.min(a.length,u.length);return c!==Fi&&(t=a[0],n=a[s-1],t>n&&(e=t,t=n,n=e),c=function(e){return Math.max(t,Math.min(n,e))}),r=s>2?Hi:Wi,i=o=null,f}function f(n){return null==n||isNaN(n=+n)?e:(i||(i=r(a.map(t),u,s)))(t(c(n)))}return f.invert=function(e){return c(n((o||(o=r(u,a.map(t),Mr)))(e)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Ri),l()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),l()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),s=Ii,l()},f.clamp=function(t){return arguments.length?(c=!!t||Fi,l()):c!==Fi},f.interpolate=function(t){return arguments.length?(s=t,l()):s},f.unknown=function(t){return arguments.length?(e=t,f):e},function(e,r){return t=e,n=r,l()}}function Bi(){return Yi()(Fi,Fi)}var Vi,Ki=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Gi(t){if(!(n=Ki.exec(t)))throw new Error("invalid format: "+t);var n;return new Zi({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 Zi(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+""}function Qi(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 Xi(t){return(t=Qi(Math.abs(t)))?t[1]:NaN}function Ji(t,n){var e=Qi(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")}Gi.prototype=Zi.prototype,Zi.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};var to={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Ji(100*t,n),r:Ji,s:function(t,n){var e=Qi(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(Vi=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Qi(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function no(t){return t}var eo,ro,io,oo=Array.prototype.map,ao=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function uo(t,n,e,r){var i,o=Si(t,n,e);switch((r=Gi(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Xi(n)/3)))-Xi(Math.abs(t)))}(o,a))||(r.precision=i),io(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Xi(n)-Xi(t))+1}(o,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-Xi(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return ro(r)}function so(t){var n=t.domain;return t.ticks=function(t){var e=n();return Oi(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return uo(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i,o=n(),a=0,u=o.length-1,s=o[a],c=o[u],l=10;for(c<s&&(i=s,s=c,c=i,i=a,a=u,u=i);l-- >0;){if((i=ji(s,c,e))===r)return o[a]=s,o[u]=c,n(o);if(i>0)s=Math.floor(s/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;s=Math.ceil(s*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function co(){var t=Bi();return t.copy=function(){return qi(t,co())},di.apply(t,arguments),so(t)}function lo(t){var n;function e(t){return null==t||isNaN(t=+t)?n:t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=Array.from(n,Ri),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return lo(t).unknown(n)},t=arguments.length?Array.from(t,Ri):[0,1],so(e)}function fo(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(e=r,r=i,i=e,e=o,o=a,a=e),t[r]=n.floor(o),t[i]=n.ceil(a),t}function ho(t){return Math.log(t)}function po(t){return Math.exp(t)}function go(t){return-Math.log(-t)}function yo(t){return-Math.exp(-t)}function mo(t){return isFinite(t)?+("1e"+t):t<0?0:t}function vo(t){return(n,e)=>-t(-n,e)}function xo(t){const n=t(ho,po),e=n.domain;let r,i,o=10;function a(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),n=>Math.log(n)/t)}(o),i=function(t){return 10===t?mo:t===Math.E?Math.exp:n=>Math.pow(t,n)}(o),e()[0]<0?(r=vo(r),i=vo(i),t(go,yo)):t(ho,po),n}return n.base=function(t){return arguments.length?(o=+t,a()):o},n.domain=function(t){return arguments.length?(e(t),a()):e()},n.ticks=t=>{const n=e();let a=n[0],u=n[n.length-1];const s=u<a;s&&([a,u]=[u,a]);let c,l,f=r(a),h=r(u);const d=null==t?10:+t;let p=[];if(!(o%1)&&h-f<d){if(f=Math.floor(f),h=Math.ceil(h),a>0){for(;f<=h;++f)for(c=1;c<o;++c)if(l=f<0?c/i(-f):c*i(f),!(l<a)){if(l>u)break;p.push(l)}}else for(;f<=h;++f)for(c=o-1;c>=1;--c)if(l=f>0?c/i(-f):c*i(f),!(l<a)){if(l>u)break;p.push(l)}2*p.length<d&&(p=Oi(a,u,d))}else p=Oi(f,h,Math.min(h-f,d)).map(i);return s?p.reverse():p},n.tickFormat=(t,e)=>{if(null==t&&(t=10),null==e&&(e=10===o?"s":","),"function"!=typeof e&&(o%1||null!=(e=Gi(e)).precision||(e.trim=!0),e=ro(e)),t===1/0)return e;const a=Math.max(1,o*t/n.ticks().length);return t=>{let n=t/i(Math.round(r(t)));return n*o<o-.5&&(n*=o),n<=a?e(t):""}},n.nice=()=>e(fo(e(),{floor:t=>i(Math.floor(r(t))),ceil:t=>i(Math.ceil(r(t)))})),n}function bo(){const t=xo(Yi()).domain([1,10]);return t.copy=()=>qi(t,bo()).base(t.base()),di.apply(t,arguments),t}function Mo(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function wo(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function Ao(t){var n=1,e=t(Mo(n),wo(n));return e.constant=function(e){return arguments.length?t(Mo(n=+e),wo(n)):n},so(e)}function ko(){var t=Ao(Yi());return t.copy=function(){return qi(t,ko()).constant(t.constant())},di.apply(t,arguments)}function Eo(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Oo(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function jo(t){return t<0?-t*t:t*t}function So(t){var n=t(Fi,Fi),e=1;function r(){return 1===e?t(Fi,Fi):.5===e?t(Oo,jo):t(Eo(e),Eo(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},so(n)}function _o(){var t=So(Yi());return t.copy=function(){return qi(t,_o()).exponent(t.exponent())},di.apply(t,arguments),t}function Co(){return _o.apply(null,arguments).exponent(.5)}function To(t){return Math.sign(t)*t*t}function Do(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function $o(){var t,n=Bi(),e=[0,1],r=!1;function i(e){var i=Do(n(e));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return n.invert(To(t))},i.domain=function(t){return arguments.length?(n.domain(t),i):n.domain()},i.range=function(t){return arguments.length?(n.range((e=Array.from(t,Ri)).map(To)),i):e.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(r=!!t,i):r},i.clamp=function(t){return arguments.length?(n.clamp(t),i):n.clamp()},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return $o(n.domain(),e).round(r).clamp(n.clamp()).unknown(t)},di.apply(i,arguments),so(i)}function No(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e<n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e<i||void 0===e&&i>=i)&&(e=i)}return e}function Po(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e>n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e>i||void 0===e&&i>=i)&&(e=i)}return e}function Lo(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function Io(t,n,e=0,r=t.length-1,i){for(i=void 0===i?Lo:function(t=_i){if(t===_i)return Lo;if("function"!=typeof t)throw new TypeError("compare is not a function");return(n,e)=>{const r=t(n,e);return r||0===r?r:(0===t(e,e))-(0===t(n,n))}}(i);r>e;){if(r-e>600){const o=r-e+1,a=n-e+1,u=Math.log(o),s=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*s*(o-s)/o)*(a-o/2<0?-1:1);Io(t,n,Math.max(e,Math.floor(n-a*s/o+c)),Math.min(r,Math.floor(n+(o-a)*s/o+c)),i)}const o=t[n];let a=e,u=r;for(Ro(t,e,n),i(t[r],o)>0&&Ro(t,e,r);a<u;){for(Ro(t,a,u),++a,--u;i(t[a],o)<0;)++a;for(;i(t[u],o)>0;)--u}0===i(t[e],o)?Ro(t,e,u):(++u,Ro(t,u,r)),u<=n&&(e=u+1),n<=u&&(r=u-1)}return t}function Ro(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function Uo(t,n,e){if(t=Float64Array.from(function*(t,n){if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(r=+r)>=r&&(yield r)}}(t,e)),r=t.length){if((n=+n)<=0||r<2)return Po(t);if(n>=1)return No(t);var r,i=(r-1)*n,o=Math.floor(i),a=No(Io(t,o).subarray(0,o+1));return a+(Po(t.subarray(o+1))-a)*(i-o)}}function Fo(t,n,e=$i){if(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,o=Math.floor(i),a=+e(t[o],o,t);return a+(+e(t[o+1],o+1,t)-a)*(i-o)}}function zo(){var t,n=[],e=[],r=[];function i(){var t=0,i=Math.max(1,e.length);for(r=new Array(i-1);++t<i;)r[t-1]=Fo(n,t/i);return o}function o(n){return null==n||isNaN(n=+n)?t:e[Li(r,n)]}return o.invertExtent=function(t){var i=e.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:n[0],i<r.length?r[i]:n[n.length-1]]},o.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(_i),i()},o.range=function(t){return arguments.length?(e=Array.from(t),i()):e.slice()},o.unknown=function(n){return arguments.length?(t=n,o):t},o.quantiles=function(){return r.slice()},o.copy=function(){return zo().domain(n).range(e).unknown(t)},di.apply(o,arguments)}function Wo(){var t,n=0,e=1,r=1,i=[.5],o=[0,1];function a(n){return null!=n&&n<=n?o[Li(i,n,0,r)]:t}function u(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*e-(t-r)*n)/(r+1);return a}return a.domain=function(t){return arguments.length?([n,e]=t,n=+n,e=+e,u()):[n,e]},a.range=function(t){return arguments.length?(r=(o=Array.from(t)).length-1,u()):o.slice()},a.invertExtent=function(t){var a=o.indexOf(t);return a<0?[NaN,NaN]:a<1?[n,i[0]]:a>=r?[i[r-1],e]:[i[a-1],i[a]]},a.unknown=function(n){return arguments.length?(t=n,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return Wo().domain([n,e]).range(o).unknown(t)},di.apply(so(a),arguments)}function Ho(){var t,n=[.5],e=[0,1],r=1;function i(i){return null!=i&&i<=i?e[Li(n,i,0,r)]:t}return i.domain=function(t){return arguments.length?(n=Array.from(t),r=Math.min(n.length,e.length-1),i):n.slice()},i.range=function(t){return arguments.length?(e=Array.from(t),r=Math.min(n.length,e.length-1),i):e.slice()},i.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return Ho().domain(n).range(e).unknown(t)},di.apply(i,arguments)}eo=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?no:(n=oo.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=n[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),o.push(t.substring(i-=u,i+u)),!((s+=u+1)>r));)u=n[a=(a+1)%n.length];return o.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?no:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(oo.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var n=(t=Gi(t)).fill,e=t.align,f=t.sign,h=t.symbol,d=t.zero,p=t.width,g=t.comma,y=t.precision,m=t.trim,v=t.type;"n"===v?(g=!0,v="g"):to[v]||(void 0===y&&(y=12),m=!0,v="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var x="$"===h?i:"#"===h&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",b="$"===h?o:/[%p]/.test(v)?s:"",M=to[v],w=/[defgprs%]/.test(v);function A(t){var i,o,s,h=x,A=b;if("c"===v)A=M(t)+A,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:M(Math.abs(t),y),m&&(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)),k&&0==+t&&"+"!==f&&(k=!1),h=(k?"("===f?f:c:"-"===f||"("===f?"":f)+h,A=("s"===v?ao[8+Vi/3]:"")+A+(k&&"("===f?")":""),w)for(i=-1,o=t.length;++i<o;)if(48>(s=t.charCodeAt(i))||s>57){A=(46===s?a+t.slice(i+1):t.slice(i))+A,t=t.slice(0,i);break}}g&&!d&&(t=r(t,1/0));var E=h.length+t.length+A.length,O=E<p?new Array(p-E+1).join(n):"";switch(g&&d&&(t=r(O+t,O.length?p-A.length:1/0),O=""),e){case"<":t=h+t+A+O;break;case"=":t=h+O+t+A;break;case"^":t=O.slice(0,E=O.length>>1)+h+t+A+O.slice(E);break;default:t=O+h+t+A}return u(t)}return y=void 0===y?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),A.toString=function(){return t+""},A}return{format:f,formatPrefix:function(t,n){var e=f(((t=Gi(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Xi(n)/3))),i=Math.pow(10,-r),o=ao[8+r/3];return function(t){return e(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),ro=eo.format,io=eo.formatPrefix;const qo=1e3,Yo=6e4,Bo=36e5,Vo=864e5,Ko=6048e5,Go=31536e6;var Zo=new Date,Qo=new Date;function Xo(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=function(n){return t(n=new Date(+n)),n},i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var a,u=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return u;do{u.push(a=new Date(+e)),n(e,o),t(e)}while(a<e&&e<r);return u},i.filter=function(e){return Xo((function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return Zo.setTime(+n),Qo.setTime(+r),t(Zo),t(Qo),Math.floor(e(Zo,Qo))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var Jo=Xo((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));Jo.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Xo((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):Jo:null};var ta=Jo,na=(Jo.range,Xo((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*qo)}),(function(t,n){return(n-t)/qo}),(function(t){return t.getUTCSeconds()}))),ea=na,ra=(na.range,Xo((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*qo)}),(function(t,n){t.setTime(+t+n*Yo)}),(function(t,n){return(n-t)/Yo}),(function(t){return t.getMinutes()}))),ia=ra,oa=(ra.range,Xo((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*qo-t.getMinutes()*Yo)}),(function(t,n){t.setTime(+t+n*Bo)}),(function(t,n){return(n-t)/Bo}),(function(t){return t.getHours()}))),aa=oa,ua=(oa.range,Xo((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Yo)/Vo),(t=>t.getDate()-1))),sa=ua;function ca(t){return Xo((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Yo)/Ko}))}ua.range;var la=ca(0),fa=ca(1),ha=ca(2),da=ca(3),pa=ca(4),ga=ca(5),ya=ca(6),ma=(la.range,fa.range,ha.range,da.range,pa.range,ga.range,ya.range,Xo((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),va=ma,xa=(ma.range,Xo((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));xa.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Xo((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};var ba=xa,Ma=(xa.range,Xo((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Yo)}),(function(t,n){return(n-t)/Yo}),(function(t){return t.getUTCMinutes()}))),wa=Ma,Aa=(Ma.range,Xo((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*Bo)}),(function(t,n){return(n-t)/Bo}),(function(t){return t.getUTCHours()}))),ka=Aa,Ea=(Aa.range,Xo((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/Vo}),(function(t){return t.getUTCDate()-1}))),Oa=Ea;function ja(t){return Xo((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/Ko}))}Ea.range;var Sa=ja(0),_a=ja(1),Ca=ja(2),Ta=ja(3),Da=ja(4),$a=ja(5),Na=ja(6),Pa=(Sa.range,_a.range,Ca.range,Ta.range,Da.range,$a.range,Na.range,Xo((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}))),La=Pa,Ia=(Pa.range,Xo((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));Ia.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Xo((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};var Ra=Ia;function Ua(t,n,e,r,i,o){const a=[[ea,1,qo],[ea,5,5e3],[ea,15,15e3],[ea,30,3e4],[o,1,Yo],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,Bo],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Vo],[r,2,1728e5],[e,1,Ko],[n,1,2592e6],[n,3,7776e6],[t,1,Go]];function u(n,e,r){const i=Math.abs(e-n)/r,o=Ti((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(Si(n/Go,e/Go,r));if(0===o)return ta.every(Math.max(Si(n,e,r),1));const[u,s]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return u.every(s)}return[function(t,n,e){const r=n<t;r&&([t,n]=[n,t]);const i=e&&"function"==typeof e.range?e:u(t,n,e),o=i?i.range(t,+n+1):[];return r?o.reverse():o},u]}Ia.range;const[Fa,za]=Ua(Ra,La,Sa,Oa,ka,wa),[Wa,Ha]=Ua(ba,va,la,sa,aa,ia);function qa(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Ya(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ba(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var Va,Ka,Ga,Za={"-":"",_:" ",0:"0"},Qa=/^\s*\d+/,Xa=/^%/,Ja=/[\\^$*+?|[\]().{}]/g;function tu(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function nu(t){return t.replace(Ja,"\\$&")}function eu(t){return new RegExp("^(?:"+t.map(nu).join("|")+")","i")}function ru(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function iu(t,n,e){var r=Qa.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function ou(t,n,e){var r=Qa.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function au(t,n,e){var r=Qa.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function uu(t,n,e){var r=Qa.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function su(t,n,e){var r=Qa.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function cu(t,n,e){var r=Qa.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function lu(t,n,e){var r=Qa.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function fu(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function hu(t,n,e){var r=Qa.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function du(t,n,e){var r=Qa.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function pu(t,n,e){var r=Qa.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function gu(t,n,e){var r=Qa.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function yu(t,n,e){var r=Qa.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function mu(t,n,e){var r=Qa.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function vu(t,n,e){var r=Qa.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function xu(t,n,e){var r=Qa.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function bu(t,n,e){var r=Qa.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function Mu(t,n,e){var r=Xa.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function wu(t,n,e){var r=Qa.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Au(t,n,e){var r=Qa.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function ku(t,n){return tu(t.getDate(),n,2)}function Eu(t,n){return tu(t.getHours(),n,2)}function Ou(t,n){return tu(t.getHours()%12||12,n,2)}function ju(t,n){return tu(1+sa.count(ba(t),t),n,3)}function Su(t,n){return tu(t.getMilliseconds(),n,3)}function _u(t,n){return Su(t,n)+"000"}function Cu(t,n){return tu(t.getMonth()+1,n,2)}function Tu(t,n){return tu(t.getMinutes(),n,2)}function Du(t,n){return tu(t.getSeconds(),n,2)}function $u(t){var n=t.getDay();return 0===n?7:n}function Nu(t,n){return tu(la.count(ba(t)-1,t),n,2)}function Pu(t){var n=t.getDay();return n>=4||0===n?pa(t):pa.ceil(t)}function Lu(t,n){return t=Pu(t),tu(pa.count(ba(t),t)+(4===ba(t).getDay()),n,2)}function Iu(t){return t.getDay()}function Ru(t,n){return tu(fa.count(ba(t)-1,t),n,2)}function Uu(t,n){return tu(t.getFullYear()%100,n,2)}function Fu(t,n){return tu((t=Pu(t)).getFullYear()%100,n,2)}function zu(t,n){return tu(t.getFullYear()%1e4,n,4)}function Wu(t,n){var e=t.getDay();return tu((t=e>=4||0===e?pa(t):pa.ceil(t)).getFullYear()%1e4,n,4)}function Hu(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+tu(n/60|0,"0",2)+tu(n%60,"0",2)}function qu(t,n){return tu(t.getUTCDate(),n,2)}function Yu(t,n){return tu(t.getUTCHours(),n,2)}function Bu(t,n){return tu(t.getUTCHours()%12||12,n,2)}function Vu(t,n){return tu(1+Oa.count(Ra(t),t),n,3)}function Ku(t,n){return tu(t.getUTCMilliseconds(),n,3)}function Gu(t,n){return Ku(t,n)+"000"}function Zu(t,n){return tu(t.getUTCMonth()+1,n,2)}function Qu(t,n){return tu(t.getUTCMinutes(),n,2)}function Xu(t,n){return tu(t.getUTCSeconds(),n,2)}function Ju(t){var n=t.getUTCDay();return 0===n?7:n}function ts(t,n){return tu(Sa.count(Ra(t)-1,t),n,2)}function ns(t){var n=t.getUTCDay();return n>=4||0===n?Da(t):Da.ceil(t)}function es(t,n){return t=ns(t),tu(Da.count(Ra(t),t)+(4===Ra(t).getUTCDay()),n,2)}function rs(t){return t.getUTCDay()}function is(t,n){return tu(_a.count(Ra(t)-1,t),n,2)}function os(t,n){return tu(t.getUTCFullYear()%100,n,2)}function as(t,n){return tu((t=ns(t)).getUTCFullYear()%100,n,2)}function us(t,n){return tu(t.getUTCFullYear()%1e4,n,4)}function ss(t,n){var e=t.getUTCDay();return tu((t=e>=4||0===e?Da(t):Da.ceil(t)).getUTCFullYear()%1e4,n,4)}function cs(){return"+0000"}function ls(){return"%"}function fs(t){return+t}function hs(t){return Math.floor(+t/1e3)}function ds(t){return new Date(t)}function ps(t){return t instanceof Date?+t:+new Date(+t)}function gs(t,n,e,r,i,o,a,u,s,c){var l=Bi(),f=l.invert,h=l.domain,d=c(".%L"),p=c(":%S"),g=c("%I:%M"),y=c("%I %p"),m=c("%a %d"),v=c("%b %d"),x=c("%B"),b=c("%Y");function M(t){return(s(t)<t?d:u(t)<t?p:a(t)<t?g:o(t)<t?y:r(t)<t?i(t)<t?m:v:e(t)<t?x:b)(t)}return l.invert=function(t){return new Date(f(t))},l.domain=function(t){return arguments.length?h(Array.from(t,ps)):h().map(ds)},l.ticks=function(n){var e=h();return t(e[0],e[e.length-1],null==n?10:n)},l.tickFormat=function(t,n){return null==n?M:c(n)},l.nice=function(t){var e=h();return t&&"function"==typeof t.range||(t=n(e[0],e[e.length-1],null==t?10:t)),t?h(fo(e,t)):l},l.copy=function(){return qi(l,gs(t,n,e,r,i,o,a,u,s,c))},l}function ys(){return di.apply(gs(Wa,Ha,ba,va,la,sa,aa,ia,ea,Ka).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ms(){return di.apply(gs(Fa,za,Ra,La,Sa,Oa,ka,wa,ea,Ga).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function vs(){var t,n,e,r,i,o=0,a=1,u=Fi,s=!1;function c(n){return null==n||isNaN(n=+n)?i:u(0===e?.5:(n=(r(n)-t)*e,s?Math.max(0,Math.min(1,n)):n))}function l(t){return function(n){var e,r;return arguments.length?([e,r]=n,u=t(e,r),c):[u(0),u(1)]}}return c.domain=function(i){return arguments.length?([o,a]=i,t=r(o=+o),n=r(a=+a),e=t===n?0:1/(n-t),c):[o,a]},c.clamp=function(t){return arguments.length?(s=!!t,c):s},c.interpolator=function(t){return arguments.length?(u=t,c):u},c.range=l(jr),c.rangeRound=l(Ii),c.unknown=function(t){return arguments.length?(i=t,c):i},function(i){return r=i,t=i(o),n=i(a),e=t===n?0:1/(n-t),c}}function xs(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function bs(){var t=so(vs()(Fi));return t.copy=function(){return xs(t,bs())},pi.apply(t,arguments)}function Ms(){var t=xo(vs()).domain([1,10]);return t.copy=function(){return xs(t,Ms()).base(t.base())},pi.apply(t,arguments)}function ws(){var t=Ao(vs());return t.copy=function(){return xs(t,ws()).constant(t.constant())},pi.apply(t,arguments)}function As(){var t=So(vs());return t.copy=function(){return xs(t,As()).exponent(t.exponent())},pi.apply(t,arguments)}function ks(){return As.apply(null,arguments).exponent(.5)}function Es(){var t=[],n=Fi;function e(e){if(null!=e&&!isNaN(e=+e))return n((Li(t,e,1)-1)/(t.length-1))}return e.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let e of n)null==e||isNaN(e=+e)||t.push(e);return t.sort(_i),e},e.interpolator=function(t){return arguments.length?(n=t,e):n},e.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},e.quantiles=function(n){return Array.from({length:n+1},((e,r)=>Uo(t,r/n)))},e.copy=function(){return Es(n).domain(t)},pi.apply(e,arguments)}function Os(t,n){void 0===n&&(n=t,t=jr);for(var e=0,r=n.length-1,i=n[0],o=new Array(r<0?0:r);e<r;)o[e]=t(i,i=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[n](t-n)}}function js(){var t,n,e,r,i,o,a,u=0,s=.5,c=1,l=1,f=Fi,h=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-n)*(l*t<l*n?r:i),f(h?Math.max(0,Math.min(1,t)):t))}function p(t){return function(n){var e,r,i;return arguments.length?([e,r,i]=n,f=Os(t,[e,r,i]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([u,s,c]=a,t=o(u=+u),n=o(s=+s),e=o(c=+c),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),l=n<t?-1:1,d):[u,s,c]},d.clamp=function(t){return arguments.length?(h=!!t,d):h},d.interpolator=function(t){return arguments.length?(f=t,d):f},d.range=p(jr),d.rangeRound=p(Ii),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return o=a,t=a(u),n=a(s),e=a(c),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),l=n<t?-1:1,d}}function Ss(){var t=so(js()(Fi));return t.copy=function(){return xs(t,Ss())},pi.apply(t,arguments)}function _s(){var t=xo(js()).domain([.1,1,10]);return t.copy=function(){return xs(t,_s()).base(t.base())},pi.apply(t,arguments)}function Cs(){var t=Ao(js());return t.copy=function(){return xs(t,Cs()).constant(t.constant())},pi.apply(t,arguments)}function Ts(){var t=So(js());return t.copy=function(){return xs(t,Ts()).exponent(t.exponent())},pi.apply(t,arguments)}function Ds(){return Ts.apply(null,arguments).exponent(.5)}Va=function(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,s=t.shortMonths,c=eu(i),l=ru(i),f=eu(o),h=ru(o),d=eu(a),p=ru(a),g=eu(u),y=ru(u),m=eu(s),v=ru(s),x={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:ku,e:ku,f:_u,g:Fu,G:Wu,H:Eu,I:Ou,j:ju,L:Su,m:Cu,M:Tu,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:fs,s:hs,S:Du,u:$u,U:Nu,V:Lu,w:Iu,W:Ru,x:null,X:null,y:Uu,Y:zu,Z:Hu,"%":ls},b={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:qu,e:qu,f:Gu,g:as,G:ss,H:Yu,I:Bu,j:Vu,L:Ku,m:Zu,M:Qu,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:fs,s:hs,S:Xu,u:Ju,U:ts,V:es,w:rs,W:is,x:null,X:null,y:os,Y:us,Z:cs,"%":ls},M={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.w=h.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(t,n,e){var r=m.exec(n.slice(e));return r?(t.m=v.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=y.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return k(t,n,e,r)},d:pu,e:pu,f:bu,g:lu,G:cu,H:yu,I:yu,j:gu,L:xu,m:du,M:mu,p:function(t,n,e){var r=c.exec(n.slice(e));return r?(t.p=l.get(r[0].toLowerCase()),e+r[0].length):-1},q:hu,Q:wu,s:Au,S:vu,u:ou,U:au,V:uu,w:iu,W:su,x:function(t,n,r){return k(t,e,n,r)},X:function(t,n,e){return k(t,r,n,e)},y:lu,Y:cu,Z:fu,"%":Mu};function w(t,n){return function(e){var r,i,o,a=[],u=-1,s=0,c=t.length;for(e instanceof Date||(e=new Date(+e));++u<c;)37===t.charCodeAt(u)&&(a.push(t.slice(s,u)),null!=(i=Za[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),a.push(r),s=u+1);return a.push(t.slice(s,u)),a.join("")}}function A(t,n){return function(e){var r,i,o=Ba(1900,void 0,1);if(k(o,t,e+="",0)!=e.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(n&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Ya(Ba(o.y,0,1))).getUTCDay(),r=i>4||0===i?_a.ceil(r):_a(r),r=Oa.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=qa(Ba(o.y,0,1))).getDay(),r=i>4||0===i?fa.ceil(r):fa(r),r=sa.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Ya(Ba(o.y,0,1)).getUTCDay():qa(Ba(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Ya(o)):qa(o)}}function k(t,n,e,r){for(var i,o,a=0,u=n.length,s=e.length;a<u;){if(r>=s)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(o=M[i in Za?n.charAt(a++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return x.x=w(e,x),x.X=w(r,x),x.c=w(n,x),b.x=w(e,b),b.X=w(r,b),b.c=w(n,b),{format:function(t){var n=w(t+="",x);return n.toString=function(){return t},n},parse:function(t){var n=A(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",b);return n.toString=function(){return t},n},utcParse:function(t){var n=A(t+="",!0);return n.toString=function(){return t},n}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Ka=Va.format,Va.parse,Ga=Va.utcFormat,Va.utcParse;const $s=["linear","time","log","sqrt"];function Ns(t){return"function"==typeof t?A(t.copy)&&A(t.domain)&&A(t.range):"string"==typeof t&&$s.includes(t)}function Ps(t,n){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[n])}function Ls(t,n){if(!t.data)return"linear";const e=k(t[n]);return Nr(t.data.map((t=>{const r=_()(e(t))?e(t)[n]:e(t);return void 0!==r?r:t[n]})))?"time":"linear"}function Is(t){if(Ns(t)){const r=`scale${e=t,e&&e[0].toUpperCase()+e.slice(1)}`;return n[r]()}var e;return co()}function Rs(t,n){const e=function(t,n){if(!Ps(t,n))return;const e=t.scale[n]||t.scale;return Ns(e)?A(e)?e:Is(e):void 0}(t,n);return e?"string"==typeof e?Is(e):e:Is(function(t,n){let e;if(t.domain&&t.domain[n]?e=t.domain[n]:t.domain&&Array.isArray(t.domain)&&(e=t.domain),e)return Nr(e)?"time":"linear"}(t,n)||Ls(t,n))}function Us(t,n){return function(t,n){if(!Ps(t,n))return;const e=t.scale[n]||t.scale;return"string"==typeof e?e:zs(e)}(t,n)||Ls(t,n)}const Fs=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function zs(t){if("string"==typeof t)return t;const n=Fs.filter((n=>void 0!==t[n.method]))[0];return n?n.name:void 0}function Ws(t){return!(!t||!t["@@__IMMUTABLE_ITERABLE__@@"])}function Hs(t,n){return Ws(t)?t.reduce(((t,e,r)=>{let i=e;return n&&n[r]&&(i=Hs(e)),t[r]=i,t}),function(t){return!(!t||!t["@@__IMMUTABLE_LIST__@@"])}(t)?[]:{}):t}function qs(t){return Ws(n=t)||function(t){return!(!t||!t["@@__IMMUTABLE_RECORD__@@"])}(n)?Hs(t,{errorX:!0,errorY:!0}):t;var n}function Ys(t,n){const e=(_()(t.domain)?t.domain[n]:t.domain)||Rs(t,n).domain(),r=t.samples||1,i=Math.max(...e),o=Math.min(...e),a=function(t,n,e){const r=n?t:0;let i=n||t;i||(i=0);const o=i-r,a=Math.abs(o),u=o/a||1,s=e||1,c=Math.max(Math.ceil(a/s),0);return Array.from(Array(c),((t,n)=>r+n*u*s))}(o,i,(i-o)/r);return a[a.length-1]===i?a:a.concat(i)}function Bs(t,n,e){if(void 0===e&&(e="ascending"),!n)return t;let r=n;"x"!==n&&"y"!==n||(r=`_${n}`);const i="ascending"===e?"asc":"desc";return De()(t,r,i)}function Vs(t,n){const e=function(t,n){const{tickValues:e,tickFormat:r}=t;let i;return i=e&&(Array.isArray(e)||e[n])?e[n]||e:r&&Array.isArray(r)?r:[],i.filter((t=>"string"==typeof t))}(t,n),r=Qs(t,n),i=function(t,n){if(!Array.isArray(t.data)&&!Ws(t.data))return[];const e=k(void 0===t[n]?n:t[n]);return Bs(t.data.reduce(((t,n)=>(t.push(qs(n)),t)),[]),t.sortKey,t.sortOrder).reduce(((t,n)=>{const r=qs(n);return t.push(e(r)),t}),[]).filter((t=>"string"==typeof t)).reduce(((t,n)=>(null!=n&&-1===t.indexOf(n)&&t.push(n),t)),[])}(t,n),o=Gr()([...e,...r,...i]);return 0===o.length?null:o.reduce(((t,n,e)=>(t[n]=e+1,t)),{})}function Ks(t,n,e){if(!Array.isArray(t)&&!Ws(t)||function(t){return Ws(t)?t.size:t.length}(t)<1)return[];const r=["x","y","y0"],i=(e=Array.isArray(e)?e:r).reduce(((t,e)=>{var r;return t[e]=k(void 0!==n[r=e]?n[r]:r),t}),{}),o=fi()(e,r)&&"_x"===n.x&&"_y"===n.y&&"_y0"===n.y0;let a;!1===o&&(a={x:-1!==e.indexOf("x")?Vs(n,"x"):void 0,y:-1!==e.indexOf("y")?Vs(n,"y"):void 0,y0:-1!==e.indexOf("y0")?Vs(n,"y"):void 0});const u=o?t:t.reduce(((t,n,r)=>{const o=qs(n),u={x:r,y:o},s=e.reduce(((t,n)=>{const e=i[n](o),r=void 0!==e?e:u[n];return void 0!==r&&("string"==typeof r&&a[n]?(t[`${n}Name`]=r,t[`_${n}`]=a[n][r]):t[`_${n}`]=r),t}),{}),c=Object.assign({},s,o);return Bt()(c)||t.push(c),t}),[]),s=function(t,n){const e=1/Number.MAX_SAFE_INTEGER,r={x:Us(n,"x"),y:Us(n,"y")};if("log"!==r.x&&"log"!==r.y)return t;const i=(t,n)=>"log"!==r[n]||0!==t[`_${n}`];return t.map((t=>i(t,"x")&&i(t,"y")&&i(t,"y0")?t:(t=>{const n=i(t,"x")?t._x:e,r=i(t,"y")?t._y:e,o=i(t,"y0")?t._y0:e;return Object.assign({},t,{_x:n,_y:r,_y0:o})})(t)))}(Bs(u,n.sortKey,n.sortOrder),n);return function(t,n){const e=!!t.eventKey,r=A(i=t.eventKey)?i:null==i?()=>{}:f()(i);var i;return n.map(((t,n)=>{if(void 0!==t.eventKey)return t;if(e){const e=r(t,n);return void 0!==e?Object.assign({eventKey:e},t):t}return t}))}(n,s)}function Gs(t,n){return t.categories&&!Array.isArray(t.categories)?t.categories[n]:t.categories}function Zs(t){return t.data?Ks(t.data,t):Ks(function(t){const n=Ys(t,"x"),e=Ys(t,"y");return n.map(((t,n)=>({x:t,y:e[n]})))}(t),t)}function Qs(t,n){if(!t.categories)return[];const e=Gs(t,n),r=e&&e.filter((t=>"string"==typeof t));return r?r.filter((t=>void 0!==t)):[]}var Xs=r(4295),Js=r.n(Xs),tc=r(2829),nc=r.n(tc);function ec(t,n,e){void 0===e&&(e="min");const r=t=>"max"===e?Math.max(...t):Math.min(...t),i="max"===e?-1/0:1/0;let o=!1;const a=t.flat().reduce(((t,e)=>{const i=void 0!==e[`_${n}0`]?e[`_${n}0`]:e[`_${n}`],a=void 0!==e[`_${n}1`]?e[`_${n}1`]:e[`_${n}`],u=r([i,a]);return o=o||i instanceof Date||a instanceof Date,r([t,u])}),i);return o?new Date(a):a}function rc(t,n,e){return function(t,n,e){return"log"!==Us(n,e)?t:(t=>{const n=t[0]<0||t[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER;return[0===t[0]?n:t[0],0===t[1]?n:t[1]]})(t)}(function(t,n,e){if(!n.domainPadding)return t;const r=cc(n,e),i=sc(n,e),o=function(t,n){const e=t=>Array.isArray(t)?{left:t[0],right:t[1]}:{left:t,right:t};return _()(t.domainPadding)?e(t.domainPadding[n]):e(t.domainPadding)}(n,e);if(!o.left&&!o.right)return t;const a=Ir(t),u=Lr(t),s=function(t,n){return n?"x"===t?"y":"x":t}(e,n.horizontal),c=M(n,s),l=Math.abs(c[0]-c[1]),f=Math.max(l-o.left-o.right,1),h=Math.abs(u.valueOf()-a.valueOf())/f*l,d=h*o.left/l,p=h*o.right/l;let g={min:a.valueOf()-d,max:u.valueOf()+p};const y=_()(n.singleQuadrantDomainPadding)?n.singleQuadrantDomainPadding[e]:n.singleQuadrantDomainPadding,m=(t,n)=>"min"===n&&a>=0&&t<=0||"max"===n&&u<=0&&t>=0?0:t;if((a>=0&&g.min<=0||u<=0&&g.max>=0)&&!1!==y){const t={left:Math.abs(u-a)*o.left/l,right:Math.abs(u-a)*o.right/l},n={min:m(a.valueOf()-t.left,"min"),max:m(u.valueOf()+t.right,"max")},e={left:Math.abs(n.max-n.min)*o.left/l,right:Math.abs(n.max-n.min)*o.right/l};g={min:m(a.valueOf()-e.left,"min"),max:m(u.valueOf()+e.right,"max")}}const v={min:void 0!==r?r:g.min,max:void 0!==i?i:g.max};return a instanceof Date||u instanceof Date?oc(new Date(v.min),new Date(v.max)):oc(v.min,v.max)}(t,n,e),n,e)}function ic(t,n,e){const r=e||Zs(t),{polar:i,startAngle:o=0,endAngle:a=360}=t,u=cc(t,n),s=sc(t,n);if(r.length<1)return void 0!==u&&void 0!==s?oc(u,s):void 0;const c=oc(void 0!==u?u:ec(r,n,"min"),void 0!==s?s:ec(r,n,"max"));return i&&"x"===n&&360===Math.abs(o-a)?lc(c,function(t,n){const e=`_${n}`;return t.flat().map((t=>t[e]&&void 0!==t[e][1]?t[e][1]:t[e]))}(r,n)):c}function oc(t,n){return Number(t)===Number(n)?(t=>{const n=0===t?2*Math.pow(10,-10):Math.pow(10,-10),e=t instanceof Date?new Date(Number(t)-1):Number(t)-n,r=t instanceof Date?new Date(Number(t)+1):Number(t)+n;return 0===t?[0,r]:[e,r]})(n):[t,n]}function ac(t,n){const e=cc(t,n),r=sc(t,n);return _()(t.domain)&&t.domain[n]?t.domain[n]:Array.isArray(t.domain)?t.domain:void 0!==e&&void 0!==r?oc(e,r):void 0}function uc(t,n){const e=ac(t,n);if(e)return e;const r=Zs(t),i=r.reduce(((t,n)=>n._y0<t?n._y0:t),1/0);return function(t,n){const e=A(t)?t:ic,r=A(n)?n:rc;return(t,n)=>{const i=ac(t,n);if(i)return r(i,t,n);const o=Gs(t,n),a=o?function(t,n,e){const r=e||Gs(t,n),{polar:i,startAngle:o=0,endAngle:a=360}=t;if(!r)return;const u=cc(t,n),s=sc(t,n),c=(d=r,Array.isArray(d)&&d.some((t=>"string"==typeof t))?Qs(t,n):[]),l=0===c.length?null:c.reduce(((t,n,e)=>(t[n]=e+1,t)),{}),f=l?r.map((t=>l[t])):r,h=oc(void 0!==u?u:Ir(f),void 0!==s?s:Lr(f));var d;return i&&"x"===n&&360===Math.abs(o-a)?lc(h,f):h}(t,n,o):e(t,n);return a?r(a,t,n):void 0}}((()=>ic(t,n,r)),(e=>rc((e=>{if("x"===n)return e;const r=i!==1/0?i:0,o=sc(t,n),a=cc(t,n),u=void 0!==o?o:Lr(e,r);return oc(void 0!==a?a:Ir(e,r),u)})(e),t,n)))(t,n)}function sc(t,n){return _()(t.maxDomain)&&void 0!==t.maxDomain[n]?t.maxDomain[n]:"number"==typeof t.maxDomain||Js()(t.maxDomain)?t.maxDomain:void 0}function cc(t,n){return _()(t.minDomain)&&void 0!==t.minDomain[n]?t.minDomain[n]:"number"==typeof t.minDomain||Js()(t.minDomain)?t.minDomain:void 0}function lc(t,n){const e=nc()(n.sort(((t,n)=>t-n))),r=e[1]-e[0];return[t[0],t[1]+r]}var fc=Array.prototype,hc=fc.slice;function dc(t){return()=>t}function pc(t,n){let e,r;if(void 0===n)for(const n of t)null!=n&&(void 0===e?n>=n&&(e=r=n):(e>n&&(e=n),r<n&&(r=n)));else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(void 0===e?o>=o&&(e=r=o):(e>o&&(e=o),r<o&&(r=o)))}return[e,r]}function gc(t){return t}function yc(t){return Math.ceil(Math.log(function(t,n){let e=0;for(let n of t)null!=n&&(n=+n)>=n&&++e;return e}(t))/Math.LN2)+1}fc.map;const mc=(t=>{let n,e,r=!1;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];if(r&&Zn()(n,o))return e;const u=t(...o);return r=!0,e=u,n=o,u}})((t=>{let{data:n=[],x:e,bins:r}=t;if(!(n&&n.length||Array.isArray(r)))return[];const i=(t=>{let{data:n,bins:e,x:r}=t;const i=k(r||"x"),o=n?.some((t=>i(t)instanceof Date))||!1,a=Array.isArray(e)&&e.some((t=>t instanceof Date));return o||a})({data:n,bins:r,x:e}),o=(t=>{let{data:n,x:e,bins:r,dataOrBinsContainsDates:i}=t;const o=k(e||"x"),a=function(){var t=gc,n=pc,e=yc;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a,u=r.length,s=new Array(u);for(i=0;i<u;++i)s[i]=t(r[i],i,r);var c=n(s),l=c[0],f=c[1],h=e(s,l,f);if(!Array.isArray(h)){const t=f,e=+h;if(n===pc&&([l,f]=function(t,n,e){let r;for(;;){const i=ji(t,n,e);if(i===r||0===i||!isFinite(i))return[t,n];i>0?(t=Math.floor(t/i)*i,n=Math.ceil(n/i)*i):i<0&&(t=Math.ceil(t*i)/i,n=Math.floor(n*i)/i),r=i}}(l,f,e)),(h=Oi(l,f,e))[0]<=l&&(a=ji(l,f,e)),h[h.length-1]>=f)if(t>=f&&n===pc){const t=ji(l,f,e);isFinite(t)&&(t>0?f=(Math.floor(f/t)+1)*t:t<0&&(f=(Math.ceil(f*-t)+1)/-t))}else h.pop()}for(var d=h.length;h[0]<=l;)h.shift(),--d;for(;h[d-1]>f;)h.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)(p=g[i]=[]).x0=i>0?h[i-1]:l,p.x1=i<d?h[i]:f;if(isFinite(a)){if(a>0)for(i=0;i<u;++i)null!=(o=s[i])&&l<=o&&o<=f&&g[Math.min(d,Math.floor((o-l)/a))].push(r[i]);else if(a<0)for(i=0;i<u;++i)if(null!=(o=s[i])&&l<=o&&o<=f){const t=Math.floor((l-o)*a);g[Math.min(d,t+(h[t]<=o))].push(r[i])}}else for(i=0;i<u;++i)null!=(o=s[i])&&l<=o&&o<=f&&g[Li(h,o,0,d)].push(r[i]);return g}return r.value=function(n){return arguments.length?(t="function"==typeof n?n:dc(n),r):t},r.domain=function(t){return arguments.length?(n="function"==typeof t?t:dc([t[0],t[1]]),r):n},r.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?dc(hc.call(t)):dc(t),r):e},r}().value(o),u=(i?ys():co()).domain(pc(n,o)).nice();return Array.isArray(r)?(a.domain([r[0],r[r.length-1]]),a.thresholds(r.slice(1,r.length-1)),a):Number.isInteger(r)?(a.domain(u.domain()),a.thresholds(r),a):i?(a.domain(u.domain()),a.thresholds(u.ticks()),a):(a.domain(u.domain()),a)})({data:n,x:e,bins:r,dataOrBinsContainsDates:i});return[...o(n)].filter((t=>{let{x0:n,x1:e}=t;return n instanceof Date&&e instanceof Date?new Date(n).getTime()!==new Date(e).getTime():n!==e})).map((t=>{const n=i?new Date(t.x0):t.x0||0,e=i?new Date(t.x1):t.x1||0;return{x0:n,x1:e,x:i?new Date((n.getTime()+e.getTime())/2):(n+e)/2,y:t.length,binnedData:[...t]}}))})),vc=t=>{const{bins:n,data:e,x:r}=t,i=e?.some((t=>{let{_y:n}=t;return!w(n)})),o=i?e:mc({data:e,x:r,bins:n});return Zs({...t,data:o,x:"x"})},xc=(t,n)=>{const e=vc(t);if(!e.length)return[0,1];if("x"===n){const n=e[0],r=e[e.length-1];return uc({...t,data:[{x:n.x0},{x:r.x1}],x:"x"},"x")}return t.data?.length?uc({...t,data:e},"y"):[0,1]},bc=(t,n)=>{const e=E(t,n,"histogram"),r=Object.assign({},e,(t=>{const n=function(t,n){const{theme:e={},labelComponent:r}=t,i=e[n]&&e[n].style||{};if(!y(r))return i;const o=e.tooltip&&e.tooltip.style||{},a=u()({},o,i.labels);return u()({},{labels:a},i)}(t,"histogram"),e=function(t,n){const e="100%",r="100%";if(!t)return u()({parent:{height:r,width:e}},n);const{data:i,labels:o,parent:a}=t,s=n&&n.parent||{},c=n&&n.labels||{},l=n&&n.data||{};return{parent:u()({},a,s,{width:e,height:r}),labels:u()({},o,c),data:u()({},i,l)}}(t.style,n),r=t.range||{x:M(t,"x"),y:M(t,"y")},i={x:xc(t,"x"),y:xc(t,"y")};let o=vc(t);return o=function(t,n,e){const r=t=>void 0!==t,i=Ir(n.x),o=Lr(n.x),a=Ir(n.y),u=Lr(n.y),s=t=>n=>r(n)&&n<t,c=t=>n=>r(n)&&n>t,l=s(i),f=s(a),h=c(o),d=c(u);return t.map((t=>{let{_x:n,_y:e,_y0:i,_y1:o}=t;(l(n)||h(n))&&(n=null);const s=r(i)?i:0,c=r(o)?o:e;return r(c)?(r(s)||!f(c)&&!d(c)||(e=null),(f(s)&&f(c)||d(s)&&d(c))&&(e=i=o=null),f(s)&&!f(c)&&(i=a),d(s)&&!d(c)&&(i=u),Object.assign({},t,Qr()({_x:n,_y:e,_y0:i,_y1:o},ci()))):t}))}(o,i),{style:e,data:o,scale:{x:Rs(t,"x").domain(i.x).range(t.horizontal?r.y:r.x),y:Rs(t,"y").domain(i.y).range(t.horizontal?r.x:r.y)},domain:i}})(e)),{binSpacing:i,cornerRadius:o,data:a,domain:s,events:c,height:l,horizontal:f,padding:h,scale:d,sharedEvents:g,standalone:m,style:v,theme:x,width:b,labels:A,name:k,getPath:O,disableInlineStyles:j}=r,S={parent:{horizontal:f,domain:s,scale:d,width:b,height:l,data:a,standalone:m,name:k,theme:x,padding:h,style:v.parent}},_=t=>{const n=d.x(t.x0),e=d.x(t.x1);return Math.abs(e-n)};return a.reduce(((t,n,e)=>{const u=w(n.eventKey)?e:n.eventKey,{x:s,y:h,y0:y,x0:m}=((t,n)=>{const e=e=>{let r="log"===zs(t.scale[e])?1/Number.MAX_SAFE_INTEGER:0;const i=Ir(t.domain[e]),o=Lr(t.domain[e]);return i<0&&o<=0?r=o:i>=0&&o>0&&(r=i),n[`_${e}`]instanceof Date?new Date(r):r},r=void 0!==n._y0?n._y0:e("y"),i=void 0!==n._x0?n._x0:e("x");return p(t,Object.assign({},n,{_y0:r,_x0:i}))})(r,n),x=(t=>i?_(t)-i:_(t))(n),M={alignment:"middle",barWidth:x,cornerRadius:o,data:a,datum:n,horizontal:f,index:e,scale:d,style:j?{}:v.data,width:b,height:l,x:s,y:h,y0:y,x0:m,getPath:O,disableInlineStyles:j};t[u]={data:M};return(null!=Jt(r,n,e)||A&&(c||g))&&(t[u].labels=nn(r,e)),t}),S)},Mc={width:450,height:300,padding:50},wc=[];class Ac extends o().Component{static animationWhitelist=["data","domain","height","padding","style","width"];static displayName="VictoryHistogram";static role="histogram";static defaultTransitions={onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})},onExit:{duration:500,before:()=>({_y:0,yOffset:0})},onEnter:{duration:500,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})}};static getFormattedData(){return mc(...arguments)}static defaultProps={containerComponent:o().createElement(qt,null),data:wc,dataComponent:o().createElement(pt,null),groupComponent:o().createElement("g",{role:"presentation"}),labelComponent:o().createElement(Cn,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Kn};static getDomain(t,n){return xc(t,n)}static getData(t){return vc(t)}static getBaseProps(t){return bc(t,Mc)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=Ac,r=E(this.props,Mc,n);if(this.shouldAnimate())return this.animateComponent(r,t);const i=this.renderData(r);return((t,n)=>e.cloneElement(t,Wt(n)))(r.standalone?this.renderContainer(r.containerComponent,i):i,r)}}const kc=(Ec=Ac,void 0===Oc&&(Oc={}),class extends Ec{constructor(t){super(t),this.cacheValues(this.getCalculatedValues(t))}state={};getEventState=ri.bind(this);getScopedEvents=ei.bind(this);getEvents=(t,n,e)=>ni.call(this,t,n,e,this.getScopedEvents);externalMutations=this.getExternalMutations(this.props);calculatedState=this.getStateChanges(this.props);globalEvents={};prevGlobalEventKeys=[];boundGlobalEvents={};shouldComponentUpdate(t){const n=this.getExternalMutations(t),e=this.props.animating||this.props.animate,r=!Zn()(n,this.externalMutations);if(e||r)return this.cacheValues(this.getCalculatedValues(t)),this.externalMutations=n,this.applyExternalMutations(t,n),!0;const i=this.getStateChanges(t);return Zn()(this.calculatedState,i)?!Zn()(this.props,t)&&(this.cacheValues(this.getCalculatedValues(t)),!0):(this.cacheValues(this.getCalculatedValues(t)),!0)}componentDidMount(){const t=Object.keys(this.globalEvents);t.forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=t}componentDidUpdate(t){const n=this.getStateChanges(t);this.calculatedState=n;const e=Object.keys(this.globalEvents);Pr(this.prevGlobalEventKeys,e).forEach((t=>this.removeGlobalListener(t))),Pr(e,this.prevGlobalEventKeys).forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=e}componentWillUnmount(){this.prevGlobalEventKeys.forEach((t=>this.removeGlobalListener(t)))}addGlobalListener(t){const n=n=>{const e=this.globalEvents[t];return e&&e((t=>Object.assign(t,{nativeEvent:t}))(n))};this.boundGlobalEvents[t]=n,window.addEventListener(oi(t),n)}removeGlobalListener(t){window.removeEventListener(oi(t),this.boundGlobalEvents[t])}getStateChanges(t){if(!this.hasEvents)return{};const n=(t,n)=>{const e=u()({},this.getEventState(t,n),this.getSharedEventState(t,n));return Bt()(e)?void 0:e};return(Oc.components||ui).map((e=>{if(t.standalone||"parent"!==e.name)return void 0!==e.index?n(e.index,e.name):this.dataKeys.map((t=>n(t,e.name))).filter(Boolean)})).filter(Boolean)}applyExternalMutations(t,n){if(!Bt()(n)){const e=t.externalEventMutations.reduce(((t,n)=>A(n.callback)?t.concat(n.callback):t),[]),r=e.length?()=>{e.forEach((t=>t()))}:void 0;this.setState(n,r)}}getCalculatedValues(t){const{sharedEvents:n}=t,e=function(t,n){const e=Array.isArray(n)&&n.reduce(((n,e)=>{const r=t[e],i=r&&r.type&&r.type.defaultEvents,o=A(i)?i(r.props):i;return Array.isArray(o)?n.concat(...o):n}),[]);return e&&e.length?e:void 0}(t,Ec.expectedComponents),r=n&&A(n.getEventState)?n.getEventState:()=>{},i=this.getBaseProps(t,r);return{componentEvents:e,getSharedEventState:r,baseProps:i,dataKeys:Object.keys(i).filter((t=>"parent"!==t)),hasEvents:t.events||t.sharedEvents||e,events:this.getAllEvents(t)}}getExternalMutations(t){const{sharedEvents:n,externalEventMutations:e}=t;return Bt()(e)||n?void 0:function(t,n,e,r){return void 0===n&&(n={}),void 0===e&&(e={}),Object.keys(n).reduce(((i,o)=>{const a=e[o]||{},u=n[o]||{};if("parent"===o){const n=ii(t,u,a,{eventKey:o,target:"parent"});i[o]=void 0!==n?Object.assign({},a,n):a}else{const n=Gr()(Object.keys(u).concat(Object.keys(a)));i[o]=n.reduce(((n,e)=>{const i={eventKey:o,target:e,childName:r},s=ii(t,u[e],a[e],i);return n[e]=void 0!==s?Object.assign({},a[e],s):a[e],Jr()(n,(t=>!Bt()(t)))}),{})}return Jr()(i,(t=>!Bt()(t)))}),{})}(e,this.baseProps,this.state)}cacheValues(t){Object.keys(t).forEach((n=>{this[n]=t[n]}))}getBaseProps(t,n){const e=(n||this.getSharedEventState.bind(this))("parent","parent"),r=this.getEventState("parent","parent"),i=u()({},r,e),o=i.parentControlledProps,a=o?c()(i,o):{},s=u()({},a,t);return"function"==typeof Ec.getBaseProps?Ec.getBaseProps(s):{}}getAllEvents(t){return Array.isArray(this.componentEvents)?Array.isArray(t.events)?this.componentEvents.concat(...t.events):this.componentEvents:t.events}getComponentProps(t,n,e){const r=this.props.name||Ec.role,i=this.dataKeys&&this.dataKeys[e]||e,o=`${r}-${n}-${i}`,a=this.baseProps[i]&&this.baseProps[i][n]||this.baseProps[i];if(!a&&!this.hasEvents)return;const s=t&&"object"==typeof t&&"props"in t?t.props:void 0;if(this.hasEvents){const t=this.getEvents(this.props,n,i),r=u()({index:e,key:o},this.getEventState(i,n),this.getSharedEventState(i,n),s,a,{id:o}),c=u()({},function(t,n,e){return t?Object.keys(t).reduce(((r,i)=>(r[i]=r=>t[i](r,e,n,i),r)),{}):{}}(t,i,r),r.events);return Object.assign({},r,{events:c})}return u()({index:e,key:o},s,a,{id:o})}renderContainer(t,n){const e=t.type&&"container"===t.type.role?this.getComponentProps(t,"parent","parent"):{};var r;return e.events&&(this.globalEvents=(r=e.events,Jr()(r,((t,n)=>ti.test(n)))),e.events=(t=>Qr()(t,((t,n)=>ti.test(n))))(e.events)),o().cloneElement(t,e,n)}animateComponent(t,n){const e="object"==typeof t.animate&&t.animate?.animationWhitelist||n,r=this.constructor;return o().createElement(Vr,{animate:t.animate,animationWhitelist:e},o().createElement(r,t))}renderContinuousData(t){const{dataComponent:n,labelComponent:e,groupComponent:r}=t,i=this.dataKeys.filter((t=>"all"!==t)),a=i.reduce(((t,n)=>{let r=t;const i=this.getComponentProps(e,"labels",n);return i&&void 0!==i.text&&null!==i.text&&(r=r.concat(o().cloneElement(e,i))),r}),[]),u=this.getComponentProps(n,"data","all"),s=[o().cloneElement(n,u),...a];return this.renderContainer(r,s)}renderData(t,n){void 0===n&&(n=ai);const{dataComponent:e,labelComponent:r,groupComponent:i}=t,a=[...this.dataKeys.reduce(((t,r,i)=>{const a=this.getComponentProps(e,"data",i);return n(a.datum)&&t.push(o().cloneElement(e,a)),t}),[]),...this.dataKeys.map(((t,n)=>{const e=this.getComponentProps(r,"labels",n);if(void 0!==e.text&&null!==e.text)return o().cloneElement(r,e)})).filter(Boolean)];return this.renderContainer(i,a)}});var Ec,Oc}(),i}()}));
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.VictoryHistogram=n(require("react")):t.VictoryHistogram=n(t.React)}(self,(function(t){return function(){var n={503:function(t,n,e){var r=e(1171),i=e(7838),o=e(4859),a=e(4073),u=e(8541);function s(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=i,s.prototype.get=o,s.prototype.has=a,s.prototype.set=u,t.exports=s},3273:function(t,n,e){var r=e(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},8708:function(t,n,e){var r=e(1171),i=e(7838),o=e(4859),a=e(4073),u=e(8541);function s(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=i,s.prototype.get=o,s.prototype.has=a,s.prototype.set=u,t.exports=s},2596:function(t,n,e){var r=e(2373).Symbol;t.exports=r},6082:function(t){t.exports=function(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}},5510:function(t,n,e){var r=e(6123);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},9955:function(t){t.exports=function(t,n,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(n,t[r]))return!0;return!1}},8644:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},9559:function(t){t.exports=function(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}},1634:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}},4132:function(t,n,e){var r=e(8347),i=e(788),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var a=t[n];o.call(t,n)&&i(a,e)&&(void 0!==e||n in t)||r(t,n,e)}},3162:function(t,n,e){var r=e(788);t.exports=function(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}},8347:function(t,n,e){var r=e(5525);t.exports=function(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}},6457:function(t,n,e){var r=e(9559),i=e(3608);t.exports=function t(n,e,o,a,u){var s=-1,c=n.length;for(o||(o=i),u||(u=[]);++s<c;){var l=n[s];e>0&&o(l)?e>1?t(l,e-1,o,a,u):r(u,l):a||(u[u.length]=l)}return u}},4432:function(t,n,e){var r=e(9026),i=e(3110);t.exports=function(t,n){for(var e=0,o=(n=r(n,t)).length;null!=t&&e<o;)t=t[i(n[e++])];return e&&e==o?t:void 0}},563:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},6776:function(t){t.exports=function(t,n){return null!=t&&n in Object(t)}},6123:function(t){t.exports=function(t,n,e){for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}},7537:function(t,n,e){var r=e(563),i=e(3474);t.exports=function(t){return i(t)&&"[object Date]"==r(t)}},9070:function(t,n,e){var r=e(7028),i=e(3474);t.exports=function t(n,e,o,a,u){return n===e||(null==n||null==e||!i(n)&&!i(e)?n!=n&&e!=e:r(n,e,o,a,t,u))}},7028:function(t,n,e){var r=e(8708),i=e(8705),o=e(2813),a=e(6682),u=e(9667),s=e(163),c=e(4801),l=e(4289),f="[object Arguments]",h="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,g,y,m){var v=s(t),x=s(n),b=v?h:u(t),M=x?h:u(n),w=(b=b==f?d:b)==d,A=(M=M==f?d:M)==d,k=b==M;if(k&&c(t)){if(!c(n))return!1;v=!0,w=!1}if(k&&!w)return m||(m=new r),v||l(t)?i(t,n,e,g,y,m):o(t,n,b,e,g,y,m);if(!(1&e)){var E=w&&p.call(t,"__wrapped__"),O=A&&p.call(n,"__wrapped__");if(E||O){var j=E?t.value():t,S=O?n.value():n;return m||(m=new r),y(j,S,e,g,m)}}return!!k&&(m||(m=new r),a(t,n,e,g,y,m))}},9548:function(t,n,e){var r=e(8708),i=e(9070);t.exports=function(t,n,e,o){var a=e.length,u=a,s=!o;if(null==t)return!u;for(t=Object(t);a--;){var c=e[a];if(s&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<u;){var l=(c=e[a])[0],f=t[l],h=c[1];if(s&&c[2]){if(void 0===f&&!(l in t))return!1}else{var d=new r;if(o)var p=o(f,h,l,t,n,d);if(!(void 0===p?i(h,f,3,o,d):p))return!1}}return!0}},3472:function(t,n,e){var r=e(758),i=e(5223),o=e(5346),a=e(163),u=e(8532);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):u(t)}},7190:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},383:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},758:function(t,n,e){var r=e(9548),i=e(597),o=e(6878);t.exports=function(t){var n=i(t);return 1==n.length&&n[0][2]?o(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},5223:function(t,n,e){var r=e(9070),i=e(9201),o=e(5066),a=e(726),u=e(5385),s=e(6878),c=e(3110);t.exports=function(t,n){return a(t)&&u(n)?s(c(t),n):function(e){var a=i(e,t);return void 0===a&&a===n?o(e,t):r(n,a,3)}}},8245:function(t,n,e){var r=e(8644),i=e(4432),o=e(3472),a=e(383),u=e(9521),s=e(9110),c=e(9409),l=e(5346),f=e(163);t.exports=function(t,n,e){n=n.length?r(n,(function(t){return f(t)?function(n){return i(n,1===t.length?t[0]:t)}:t})):[l];var h=-1;n=r(n,s(o));var d=a(t,(function(t,e,i){return{criteria:r(n,(function(n){return n(t)})),index:++h,value:t}}));return u(d,(function(t,n){return c(t,n,e)}))}},5436:function(t,n,e){var r=e(6371),i=e(5066);t.exports=function(t,n){return r(t,n,(function(n,e){return i(t,e)}))}},6371:function(t,n,e){var r=e(4432),i=e(6539),o=e(9026);t.exports=function(t,n,e){for(var a=-1,u=n.length,s={};++a<u;){var c=n[a],l=r(t,c);e(l,c)&&i(s,o(c,t),l)}return s}},1600:function(t){t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},3301:function(t,n,e){var r=e(4432);t.exports=function(t){return function(n){return r(n,t)}}},6317:function(t,n,e){var r=e(5346),i=e(4280),o=e(201);t.exports=function(t,n){return o(i(t,n,r),t+"")}},6539:function(t,n,e){var r=e(4132),i=e(9026),o=e(9099),a=e(7709),u=e(3110);t.exports=function(t,n,e,s){if(!a(t))return t;for(var c=-1,l=(n=i(n,t)).length,f=l-1,h=t;null!=h&&++c<l;){var d=u(n[c]),p=e;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(c!=f){var g=h[d];void 0===(p=s?s(g,d,h):void 0)&&(p=a(g)?g:o(n[c+1])?[]:{})}r(h,d,p),h=h[d]}return t}},9521:function(t){t.exports=function(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}},7556:function(t,n,e){var r=e(788);t.exports=function(t,n){for(var e=-1,i=t.length,o=0,a=[];++e<i;){var u=t[e],s=n?n(u):u;if(!e||!r(s,c)){var c=s;a[o++]=0===u?0:u}}return a}},6316:function(t,n,e){var r=e(2596),i=e(8644),o=e(163),a=e(1995),u=r?r.prototype:void 0,s=u?u.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(o(n))return i(n,t)+"";if(a(n))return s?s.call(n):"";var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}},9110:function(t){t.exports=function(t){return function(n){return t(n)}}},946:function(t,n,e){var r=e(3273),i=e(5510),o=e(9955),a=e(9914),u=e(6602),s=e(6226);t.exports=function(t,n,e){var c=-1,l=i,f=t.length,h=!0,d=[],p=d;if(e)h=!1,l=o;else if(f>=200){var g=n?null:u(t);if(g)return s(g);h=!1,l=a,p=new r}else p=n?[]:d;t:for(;++c<f;){var y=t[c],m=n?n(y):y;if(y=e||0!==y?y:0,h&&m==m){for(var v=p.length;v--;)if(p[v]===m)continue t;n&&p.push(m),d.push(y)}else l(p,m,e)||(p!==d&&p.push(m),d.push(y))}return d}},9914:function(t,n,e){var r=e(6123);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},9026:function(t,n,e){var r=e(163),i=e(726),o=e(7801),a=e(7010);t.exports=function(t,n){return r(t)?t:i(t,n)?[t]:o(a(t))}},522:function(t,n,e){var r=e(1995);t.exports=function(t,n){if(t!==n){var e=void 0!==t,i=null===t,o=t==t,a=r(t),u=void 0!==n,s=null===n,c=n==n,l=r(n);if(!s&&!l&&!a&&t>n||a&&u&&c&&!s&&!l||i&&u&&c||!e&&c||!o)return 1;if(!i&&!a&&!l&&t<n||l&&e&&o&&!i&&!a||s&&e&&o||!u&&o||!c)return-1}return 0}},9409:function(t,n,e){var r=e(522);t.exports=function(t,n,e){for(var i=-1,o=t.criteria,a=n.criteria,u=o.length,s=e.length;++i<u;){var c=r(o[i],a[i]);if(c)return i>=s?c:c*("desc"==e[i]?-1:1)}return t.index-n.index}},6602:function(t){t.exports=function(){}},5525:function(t,n,e){var r=e(3743),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},8705:function(t,n,e){var r=e(3273),i=e(1634),o=e(9914);t.exports=function(t,n,e,a,u,s){var c=1&e,l=t.length,f=n.length;if(l!=f&&!(c&&f>l))return!1;var h=s.get(t),d=s.get(n);if(h&&d)return h==n&&d==t;var p=-1,g=!0,y=2&e?new r:void 0;for(s.set(t,n),s.set(n,t);++p<l;){var m=t[p],v=n[p];if(a)var x=c?a(v,m,p,n,t,s):a(m,v,p,t,n,s);if(void 0!==x){if(x)continue;g=!1;break}if(y){if(!i(n,(function(t,n){if(!o(y,n)&&(m===t||u(m,t,e,a,s)))return y.push(n)}))){g=!1;break}}else if(m!==v&&!u(m,v,e,a,s)){g=!1;break}}return s.delete(t),s.delete(n),g}},2813:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},6682:function(t,n,e){var r=e(8143),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,o,a,u){var s=1&e,c=r(t),l=c.length;if(l!=r(n).length&&!s)return!1;for(var f=l;f--;){var h=c[f];if(!(s?h in n:i.call(n,h)))return!1}var d=u.get(t),p=u.get(n);if(d&&p)return d==n&&p==t;var g=!0;u.set(t,n),u.set(n,t);for(var y=s;++f<l;){var m=t[h=c[f]],v=n[h];if(o)var x=s?o(v,m,h,n,t,u):o(m,v,h,t,n,u);if(!(void 0===x?m===v||a(m,v,e,o,u):x)){g=!1;break}y||(y="constructor"==h)}if(g&&!y){var b=t.constructor,M=n.constructor;b==M||!("constructor"in t)||!("constructor"in n)||"function"==typeof b&&b instanceof b&&"function"==typeof M&&M instanceof M||(g=!1)}return u.delete(t),u.delete(n),g}},5557:function(t,n,e){var r=e(2645),i=e(4280),o=e(201);t.exports=function(t){return o(i(t,void 0,r),t+"")}},2117:function(t,n,e){var r="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=r},8143:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},7271:function(t){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},597:function(t,n,e){var r=e(5385),i=e(7747);t.exports=function(t){for(var n=i(t),e=n.length;e--;){var o=n[e],a=t[o];n[e]=[o,a,r(a)]}return n}},3743:function(t){t.exports=function(t,n){return null==t?void 0:t[n]}},9817:function(t,n,e){var r=e(5125)(Object.getPrototypeOf,Object);t.exports=r},9667:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},3096:function(t,n,e){var r=e(9026),i=e(5075),o=e(163),a=e(9099),u=e(8454),s=e(3110);t.exports=function(t,n,e){for(var c=-1,l=(n=r(n,t)).length,f=!1;++c<l;){var h=s(n[c]);if(!(f=null!=t&&e(t,h)))break;t=t[h]}return f||++c!=l?f:!!(l=null==t?0:t.length)&&u(l)&&a(h,l)&&(o(t)||i(t))}},3608:function(t,n,e){var r=e(2596),i=e(5075),o=e(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},9099:function(t){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},8286:function(t){t.exports=function(){return!1}},726:function(t,n,e){var r=e(163),i=e(1995),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,n){if(r(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=n&&t in Object(n)}},5782:function(t){t.exports=function(){return!1}},5385:function(t,n,e){var r=e(7709);t.exports=function(t){return t==t&&!r(t)}},1171:function(t){t.exports=function(){this.__data__=[],this.size=0}},7838:function(t,n,e){var r=e(3162),i=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0||(e==n.length-1?n.pop():i.call(n,e,1),--this.size,0))}},4859:function(t,n,e){var r=e(3162);t.exports=function(t){var n=this.__data__,e=r(n,t);return e<0?void 0:n[e][1]}},4073:function(t,n,e){var r=e(3162);t.exports=function(t){return r(this.__data__,t)>-1}},8541:function(t,n,e){var r=e(3162);t.exports=function(t,n){var e=this.__data__,i=r(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}},6878:function(t){t.exports=function(t,n){return function(e){return null!=e&&e[t]===n&&(void 0!==n||t in Object(e))}}},2453:function(t){t.exports=function(t){return t}},2348:function(t,n,e){t=e.nmd(t);var r=e(2117),i=n&&!n.nodeType&&n,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,u=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},5125:function(t){t.exports=function(t,n){return function(e){return t(n(e))}}},4280:function(t,n,e){var r=e(6082),i=Math.max;t.exports=function(t,n,e){return n=i(void 0===n?t.length-1:n,0),function(){for(var o=arguments,a=-1,u=i(o.length-n,0),s=Array(u);++a<u;)s[a]=o[n+a];a=-1;for(var c=Array(n+1);++a<n;)c[a]=o[a];return c[n]=e(s),r(t,this,c)}}},2373:function(t,n,e){var r=e(2117),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},6226:function(t){t.exports=function(){return[]}},201:function(t){t.exports=function(t){return t}},7801:function(t,n,e){var r=e(2453),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(i,(function(t,e,r,i){n.push(r?i.replace(o,"$1"):e||t)})),n}));t.exports=a},3110:function(t,n,e){var r=e(1995);t.exports=function(t){if("string"==typeof t||r(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},1893:function(t,n,e){var r=e(6317),i=e(788),o=e(8286),a=e(8855),u=Object.prototype,s=u.hasOwnProperty,c=r((function(t,n){t=Object(t);var e=-1,r=n.length,c=r>2?n[2]:void 0;for(c&&o(n[0],n[1],c)&&(r=1);++e<r;)for(var l=n[e],f=a(l),h=-1,d=f.length;++h<d;){var p=f[h],g=t[p];(void 0===g||i(g,u[p])&&!s.call(t,p))&&(t[p]=l[p])}return t}));t.exports=c},788:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},2645:function(t,n,e){var r=e(6457);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},9201:function(t,n,e){var r=e(4432);t.exports=function(t,n,e){var i=null==t?void 0:r(t,n);return void 0===i?e:i}},5066:function(t,n,e){var r=e(6776),i=e(3096);t.exports=function(t,n){return null!=t&&i(t,n,r)}},5346:function(t){t.exports=function(t){return t}},5075:function(t){t.exports=function(){return!1}},163:function(t){var n=Array.isArray;t.exports=n},981:function(t,n,e){var r=e(9642),i=e(8454);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},4801:function(t){t.exports=function(){return!1}},4295:function(t,n,e){var r=e(7537),i=e(9110),o=e(2348),a=o&&o.isDate,u=a?i(a):r;t.exports=u},4155:function(t,n,e){var r=e(7190),i=e(9667),o=e(5075),a=e(163),u=e(981),s=e(4801),c=e(5782),l=e(4289),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||s(t)||l(t)||o(t)))return!t.length;var n=i(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(c(t))return!r(t).length;for(var e in t)if(f.call(t,e))return!1;return!0}},8254:function(t,n,e){var r=e(9070);t.exports=function(t,n){return r(t,n)}},9642:function(t,n,e){var r=e(563),i=e(7709);t.exports=function(t){if(!i(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},8454:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:function(t){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},3474:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3849:function(t,n,e){var r=e(563),i=e(9817),o=e(3474),a=Function.prototype,u=Object.prototype,s=a.toString,c=u.hasOwnProperty,l=s.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var n=i(t);if(null===n)return!0;var e=c.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&s.call(e)==l}},1995:function(t){t.exports=function(){return!1}},4289:function(t){t.exports=function(){return!1}},8999:function(t){t.exports=function(t){return void 0===t}},7747:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},8855:function(t){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},1594:function(t,n,e){var r=e(503);function i(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return e.cache=o.set(i,a)||o,a};return e.cache=new(i.Cache||r),e}i.Cache=r,t.exports=i},6051:function(t){t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}},1616:function(t,n,e){var r=e(3472),i=e(6051),o=e(4912);t.exports=function(t,n){return o(t,i(r(n)))}},4143:function(t,n,e){var r=e(8245),i=e(163);t.exports=function(t,n,e,o){return null==t?[]:(i(n)||(n=null==n?[]:[n]),i(e=o?void 0:e)||(e=null==e?[]:[e]),r(t,n,e))}},9082:function(t,n,e){var r=e(5436),i=e(5557)((function(t,n){return null==t?{}:r(t,n)}));t.exports=i},4912:function(t,n,e){var r=e(8644),i=e(3472),o=e(6371),a=e(7271);t.exports=function(t,n){if(null==t)return{};var e=r(a(t),(function(t){return[t]}));return n=i(n),o(t,e,(function(t,e){return n(t,e[0])}))}},8532:function(t,n,e){var r=e(1600),i=e(3301),o=e(726),a=e(3110);t.exports=function(t){return o(t)?r(a(t)):i(t)}},2829:function(t,n,e){var r=e(7556);t.exports=function(t){return t&&t.length?r(t):[]}},7010:function(t,n,e){var r=e(6316);t.exports=function(t){return null==t?"":r(t)}},9602:function(t,n,e){var r=e(946);t.exports=function(t){return t&&t.length?r(t):[]}},660:function(t,n,e){var r=e(7010),i=0;t.exports=function(t){var n=++i;return r(t)+n}},7491:function(t){var n="undefined"!=typeof Element,e="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var u,s,c,l;if(Array.isArray(t)){if((u=t.length)!=a.length)return!1;for(s=u;0!=s--;)if(!o(t[s],a[s]))return!1;return!0}if(e&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(l=t.entries();!(s=l.next()).done;)if(!a.has(s.value[0]))return!1;for(l=t.entries();!(s=l.next()).done;)if(!o(s.value[1],a.get(s.value[0])))return!1;return!0}if(r&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(l=t.entries();!(s=l.next()).done;)if(!a.has(s.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((u=t.length)!=a.length)return!1;for(s=u;0!=s--;)if(t[s]!==a[s])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((u=(c=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(s=u;0!=s--;)if(!Object.prototype.hasOwnProperty.call(a,c[s]))return!1;if(n&&t instanceof Element)return!1;for(s=u;0!=s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!t.$$typeof)&&!o(t[c[s]],a[c[s]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,n){try{return o(t,n)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:function(n){"use strict";n.exports=t}},e={};function r(t){var i=e[t];if(void 0!==i)return i.exports;var o=e[t]={id:t,loaded:!1,exports:{}};return n[t](o,o.exports,r),o.loaded=!0,o.exports}r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,{a:n}),n},r.d=function(t,n){for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t};var i={};return function(){"use strict";r.r(i),r.d(i,{VictoryHistogram:function(){return Sc}});var t={};r.r(t),r.d(t,{easeBack:function(){return le},easeBackIn:function(){return se},easeBackInOut:function(){return le},easeBackOut:function(){return ce},easeBounce:function(){return oe},easeBounceIn:function(){return ie},easeBounceInOut:function(){return ae},easeBounceOut:function(){return oe},easeCircle:function(){return ee},easeCircleIn:function(){return te},easeCircleInOut:function(){return ee},easeCircleOut:function(){return ne},easeCubic:function(){return Un},easeCubicIn:function(){return zn},easeCubicInOut:function(){return Un},easeCubicOut:function(){return Fn},easeElastic:function(){return de},easeElasticIn:function(){return he},easeElasticInOut:function(){return pe},easeElasticOut:function(){return de},easeExp:function(){return Jn},easeExpIn:function(){return Qn},easeExpInOut:function(){return Jn},easeExpOut:function(){return Xn},easeLinear:function(){return Ln},easePoly:function(){return qn},easePolyIn:function(){return Wn},easePolyInOut:function(){return qn},easePolyOut:function(){return Hn},easeQuad:function(){return Rn},easeQuadIn:function(){return Pn},easeQuadInOut:function(){return Rn},easeQuadOut:function(){return In},easeSin:function(){return Kn},easeSinIn:function(){return Vn},easeSinInOut:function(){return Kn},easeSinOut:function(){return Gn}});var n={};r.r(n),r.d(n,{scaleBand:function(){return ki},scaleDiverging:function(){return $s},scaleDivergingLog:function(){return Ds},scaleDivergingPow:function(){return Ls},scaleDivergingSqrt:function(){return Ps},scaleDivergingSymlog:function(){return Ns},scaleIdentity:function(){return go},scaleImplicit:function(){return wi},scaleLinear:function(){return po},scaleLog:function(){return ko},scaleOrdinal:function(){return Ai},scalePoint:function(){return Oi},scalePow:function(){return Do},scaleQuantile:function(){return Bo},scaleQuantize:function(){return Yo},scaleRadial:function(){return Io},scaleSequential:function(){return ks},scaleSequentialLog:function(){return Es},scaleSequentialPow:function(){return js},scaleSequentialQuantile:function(){return _s},scaleSequentialSqrt:function(){return Ss},scaleSequentialSymlog:function(){return Os},scaleSqrt:function(){return No},scaleSymlog:function(){return So},scaleThreshold:function(){return Vo},scaleTime:function(){return bs},scaleUtc:function(){return Ms},tickFormat:function(){return fo}});var e=r(9787),o=r.n(e),a=r(1893),u=r.n(a),s=r(9082),c=r.n(s),l=r(8532),f=r.n(l);function h(t,n){void 0===n&&(n=[]);const e={};for(const r in t)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function d(t){const n=t=>void 0!==t,{_x:e,_x1:r,_x0:i,_voronoiX:o,_y:a,_y1:s,_y0:c,_voronoiY:l}=t,f=n(r)?r:e,h=n(s)?s:a,d={x:n(o)?o:f,x0:n(i)?i:e,y:n(l)?l:h,y0:n(c)?c:a};return u()({},d,t)}function p(t,n){const{scale:e,polar:r,horizontal:i}=t,o=d(n),a=t.origin||{x:0,y:0},u=i?e.y(o.y):e.x(o.x),s=i?e.y(o.y0):e.x(o.x0),c=i?e.x(o.x):e.y(o.y),l=i?e.x(o.x0):e.y(o.y0);return{x:r?c*Math.cos(u)+a.x:u,x0:r?l*Math.cos(s)+a.x:s,y:r?-c*Math.sin(u)+a.y:c,y0:r?-l*Math.sin(s)+a.x:l}}function g(t,n){void 0===n&&(n="padding");const e=t[n],r="number"==typeof e?e:0,i="object"==typeof e?e:{};return{top:i.top||r,bottom:i.bottom||r,left:i.left||r,right:i.right||r}}function y(t){return"tooltip"===(t&&t.type&&t.type.role)}function m(t,n){return A(t)?t(n):t}function v(t,n){return n.disableInlineStyles?{}:t&&Object.keys(t).some((n=>A(t[n])))?Object.keys(t).reduce(((e,r)=>(e[r]=m(t[r],n),e)),{}):t}function x(t){return"number"==typeof t?t*(Math.PI/180):t}function b(t){const{left:n,right:e,top:r,bottom:i}=g(t),{width:o,height:a}=t;return Math.min(o-n-e,a-r-i)/2}function M(t,n){return t.range&&t.range[n]?t.range[n]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t,n){return"x"===n?[x(t.startAngle||0),x(t.endAngle||360)]:[t.innerRadius||0,b(t)]}(t,n):function(t,n){const e="x"!==n,r=g(t);return e?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,n)}function w(t){return null==t}function A(t){return"function"==typeof t}function k(t){return A(t)?t:null==t?t=>t:f()(t)}function E(t,n,e){const r=h(t.theme&&t.theme[e]?t.theme[e]:{},["style"]),i=function(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;const n=t=>t.reduce(((t,e)=>{const r=e.props||{};return t||r.horizontal||!r.children?t||r.horizontal:n(o().Children.toArray(r.children))}),!1);return n(o().Children.toArray(t.children))}(t),a=void 0===i?{}:{horizontal:i};return u()(a,t,r,n)}function O(){return O=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},O.apply(this,arguments)}const j=(0,e.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:a,...u}=t,s={id:m(r,t)?.toString(),tabIndex:m(i,t),...u};return e?o().createElement("path",O({},s,{ref:n}),o().createElement("desc",null,e)):o().createElement("path",O({},s,{ref:n}))}));var S=r(3849),_=r.n(S);const C=Math.PI,T=2*C,$=1e-6,D=T-$;function N(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function L(){return new N}N.prototype=L.prototype={constructor:N,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,a=this._y1,u=e-t,s=r-n,c=o-t,l=a-n,f=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(f>$)if(Math.abs(l*u-s*c)>$&&i){var h=e-o,d=r-a,p=u*u+s*s,g=h*h+d*d,y=Math.sqrt(p),m=Math.sqrt(f),v=i*Math.tan((C-Math.acos((p+f-g)/(2*y*m)))/2),x=v/m,b=v/y;Math.abs(x-1)>$&&(this._+="L"+(t+x*c)+","+(n+x*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>c*d)+","+(this._x1=t+b*u)+","+(this._y1=n+b*s)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var a=(e=+e)*Math.cos(r),u=e*Math.sin(r),s=t+a,c=n+u,l=1^o,f=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+s+","+c:(Math.abs(this._x1-s)>$||Math.abs(this._y1-c)>$)&&(this._+="L"+s+","+c),e&&(f<0&&(f=f%T+T),f>D?this._+="A"+e+","+e+",0,1,"+l+","+(t-a)+","+(n-u)+"A"+e+","+e+",0,1,"+l+","+(this._x1=s)+","+(this._y1=c):f>$&&(this._+="A"+e+","+e+",0,"+ +(f>=C)+","+l+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};var P=L;function I(t){return function(){return t}}const R=Math.abs,z=Math.atan2,F=Math.cos,U=Math.max,W=Math.min,H=Math.sin,q=Math.sqrt,B=1e-12,Y=Math.PI,V=Y/2,G=2*Y;function K(t){return t>1?0:t<-1?Y:Math.acos(t)}function Z(t){return t>=1?V:t<=-1?-V:Math.asin(t)}function Q(t){return t.innerRadius}function X(t){return t.outerRadius}function J(t){return t.startAngle}function tt(t){return t.endAngle}function nt(t){return t&&t.padAngle}function et(t,n,e,r,i,o,a,u){var s=e-t,c=r-n,l=a-i,f=u-o,h=f*s-l*c;if(!(h*h<B))return[t+(h=(l*(n-o)-f*(t-i))/h)*s,n+h*c]}function rt(t,n,e,r,i,o,a){var u=t-e,s=n-r,c=(a?o:-o)/q(u*u+s*s),l=c*s,f=-c*u,h=t+l,d=n+f,p=e+l,g=r+f,y=(h+p)/2,m=(d+g)/2,v=p-h,x=g-d,b=v*v+x*x,M=i-o,w=h*g-p*d,A=(x<0?-1:1)*q(U(0,M*M*b-w*w)),k=(w*x-v*A)/b,E=(-w*v-x*A)/b,O=(w*x+v*A)/b,j=(-w*v+x*A)/b,S=k-y,_=E-m,C=O-y,T=j-m;return S*S+_*_>C*C+T*T&&(k=O,E=j),{cx:k,cy:E,x01:-l,y01:-f,x11:k*(i/M-1),y11:E*(i/M-1)}}const it=(t,n)=>({x:t,y:n,distance(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},add(t){return it(this.x+t.x,this.y+t.y)},subtract(t){return it(this.x-t.x,this.y-t.y)},scalarMult(t){return it(this.x*t,this.y*t)},scalarDivide(t){if(0===t)throw new Error("Division by 0 error");return it(this.x/t,this.y/t)},equals(t){return this.x===t.x&&this.y===t.y}}),ot=(t,n)=>({center:t,radius:n,hasIntersection(t){const n=this.center,e=t.center,r=this.radius,i=t.radius,o=n.distance(e);return!(o>r+i||o<Math.abs(r-i))},equals(t){const n=this.center,e=t.center;return this.radius===t.radius&&n.equals(e)},intersection(t){const n=this.center,e=t.center,r=this.radius,i=t.radius,o=n.distance(e);if(!this.hasIntersection(t)||this.equals(t))return[];const a=(Math.pow(r,2)-Math.pow(i,2)+Math.pow(o,2))/(2*o),u=Math.sqrt(Math.pow(r,2)-Math.pow(a,2)),s=n.add(e.subtract(n).scalarMult(a).scalarDivide(o)),{x:c,y:l}=n,{x:f,y:h}=e,{x:d,y:p}=s,g=[it(d-u*(h-l)/o,p+u*(f-c)/o),it(d+u*(h-l)/o,p-u*(f-c)/o)];return g.sort(((t,n)=>t.x-n.x)),g},solveX(t){const n=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.y,2));return[this.center.x-n,this.center.x+n]},solveY(t){const n=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.x,2));return[this.center.y-n,this.center.y+n]}}),at=(t,n)=>{const{x:e,x0:r,y:i,y0:o,horizontal:a}=t,u=t.alignment||"middle",s="middle"===u?n/2:n,c=a?-1:1;return a?{x0:r,x1:e,y0:"start"===u?i:i-c*s,y1:"end"===u?i:i+c*s}:{x0:"start"===u?e:e-c*s,x1:"end"===u?e:e+c*s,y0:o,y1:i}},ut=(t,n)=>{const{data:e,scale:r}=t,i=void 0===e[n]._x1?"_x":"_x1";return r.x(e[n][i])},st=t=>-1*t+Math.PI/2,ct=(t,n,e)=>{const r=`${n.topLeft} ${n.topLeft} ${e}`,i=`${n.topRight} ${n.topRight} ${e}`;return`${["M",`A ${n.bottomLeft} ${n.bottomLeft} ${e},`,"L",`A ${r},`,"L",`A ${i},`,"L",`A ${n.bottomRight} ${n.bottomRight} ${e},`].reduce(((n,e,r)=>`${n}${e} ${t[r].x}, ${t[r].y} \n`),"")} z`},lt=(t,n)=>{const{datum:e,scale:r,index:i,alignment:o,style:a}=t,u=r.y(e._y0||0),s=r.y(void 0!==e._y1?e._y1:e._y),c=r.x(void 0!==e._x1?e._x1:e._x);let l,f;if(a.width){const n=((t,n)=>{const{scale:e}=t,r=e.y.range(),i=Math.max(...r),o=Math.abs(e.x.range()[1]-e.x.range()[0]);return n/(2*Math.PI*i)*o})(t,a.width),e="middle"===o?n/2:n;l="start"===o?c:c-e,f="end"===o?c:c+e}else l=((t,n)=>{const{data:e,scale:r,alignment:i}=t,o=ut(t,n),a=Math.abs(r.x.range()[1]-r.x.range()[0]),u=0===n?ut(t,e.length-1)-2*Math.PI:ut(t,n-1);return 0===n&&a<2*Math.PI?r.x.range()[0]:"start"===i||"end"===i?"start"===i?u:o:(o+u)/2})(t,Number(i)),f=((t,n)=>{const{data:e,scale:r,alignment:i}=t,o=ut(t,n),a=Math.abs(r.x.range()[1]-r.x.range()[0]),u=r.x.range()[1]===2*Math.PI?ut(t,0)+2*Math.PI:r.x.range()[1],s=n===e.length-1?ut(t,0)+2*Math.PI:ut(t,n+1);return n===e.length-1&&a<2*Math.PI?u:"start"===i||"end"===i?"start"===i?o:s:(o+s)/2})(t,Number(i));const h=t=>{const e=function(){var t=Q,n=X,e=I(0),r=null,i=J,o=tt,a=nt,u=null;function s(){var s,c,l=+t.apply(this,arguments),f=+n.apply(this,arguments),h=i.apply(this,arguments)-V,d=o.apply(this,arguments)-V,p=R(d-h),g=d>h;if(u||(u=s=P()),f<l&&(c=f,f=l,l=c),f>B)if(p>G-B)u.moveTo(f*F(h),f*H(h)),u.arc(0,0,f,h,d,!g),l>B&&(u.moveTo(l*F(d),l*H(d)),u.arc(0,0,l,d,h,g));else{var y,m,v=h,x=d,b=h,M=d,w=p,A=p,k=a.apply(this,arguments)/2,E=k>B&&(r?+r.apply(this,arguments):q(l*l+f*f)),O=W(R(f-l)/2,+e.apply(this,arguments)),j=O,S=O;if(E>B){var _=Z(E/l*H(k)),C=Z(E/f*H(k));(w-=2*_)>B?(b+=_*=g?1:-1,M-=_):(w=0,b=M=(h+d)/2),(A-=2*C)>B?(v+=C*=g?1:-1,x-=C):(A=0,v=x=(h+d)/2)}var T=f*F(v),$=f*H(v),D=l*F(M),N=l*H(M);if(O>B){var L,I=f*F(x),U=f*H(x),Q=l*F(b),X=l*H(b);if(p<Y&&(L=et(T,$,Q,X,I,U,D,N))){var J=T-L[0],tt=$-L[1],nt=I-L[0],it=U-L[1],ot=1/H(K((J*nt+tt*it)/(q(J*J+tt*tt)*q(nt*nt+it*it)))/2),at=q(L[0]*L[0]+L[1]*L[1]);j=W(O,(l-at)/(ot-1)),S=W(O,(f-at)/(ot+1))}}A>B?S>B?(y=rt(Q,X,T,$,f,S,g),m=rt(I,U,D,N,f,S,g),u.moveTo(y.cx+y.x01,y.cy+y.y01),S<O?u.arc(y.cx,y.cy,S,z(y.y01,y.x01),z(m.y01,m.x01),!g):(u.arc(y.cx,y.cy,S,z(y.y01,y.x01),z(y.y11,y.x11),!g),u.arc(0,0,f,z(y.cy+y.y11,y.cx+y.x11),z(m.cy+m.y11,m.cx+m.x11),!g),u.arc(m.cx,m.cy,S,z(m.y11,m.x11),z(m.y01,m.x01),!g))):(u.moveTo(T,$),u.arc(0,0,f,v,x,!g)):u.moveTo(T,$),l>B&&w>B?j>B?(y=rt(D,N,I,U,l,-j,g),m=rt(T,$,Q,X,l,-j,g),u.lineTo(y.cx+y.x01,y.cy+y.y01),j<O?u.arc(y.cx,y.cy,j,z(y.y01,y.x01),z(m.y01,m.x01),!g):(u.arc(y.cx,y.cy,j,z(y.y01,y.x01),z(y.y11,y.x11),!g),u.arc(0,0,l,z(y.cy+y.y11,y.cx+y.x11),z(m.cy+m.y11,m.cx+m.x11),g),u.arc(m.cx,m.cy,j,z(m.y11,m.x11),z(m.y01,m.x01),!g))):u.arc(0,0,l,M,b,g):u.lineTo(D,N)}else u.moveTo(0,0);if(u.closePath(),s)return u=null,s+""||null}return s.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Y/2;return[F(r)*e,H(r)*e]},s.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:I(+n),s):t},s.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:I(+t),s):n},s.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:I(+t),s):e},s.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:I(+t),s):r},s.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:I(+t),s):i},s.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:I(+t),s):o},s.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:I(+t),s):a},s.context=function(t){return arguments.length?(u=null==t?null:t,s):u},s}().innerRadius(u).outerRadius(s).startAngle(st(l)).endAngle(st(f)).cornerRadius(n[t]);return e()},d=t=>{const n=h(`${t}Right`),e=n.match(/[A-Z]/g)||[],r=n.split(/[A-Z]/).slice(1),i=e.indexOf("L"),o=h(`${t}Left`),a=o.match(/[A-Z]/g)||[],u=o.split(/[A-Z]/).slice(1),s=a.indexOf("L");return{rightMoves:e,rightCoords:r,rightMiddle:i,leftMoves:a,leftCoords:u,leftMiddle:s}};return`${[...(()=>{const{topRight:t,topLeft:e}=n,r=s*Math.abs(f-l),{rightMoves:i,rightCoords:o,rightMiddle:a,leftMoves:u,leftCoords:c,leftMiddle:h}=d("top");let p,g;if(t===e||r<2*t+2*e)p=t>e?i:u,g=t>e?o:c;else{const n=t=>t<3,r=e>t&&n(a)?1:2;let s;if(t>e){const t=n(a)?h:h-2;s=n(h)?h-1:t}else{const t=n(h)?1:2;s=n(a)?t:h-2}p=[...i.slice(0,r),...u.slice(s)],g=[...o.slice(0,r),...c.slice(s)]}const y=p.indexOf("L"),m=p.slice(0,y),v=g.slice(0,y);return m.map(((t,n)=>({command:t,coords:v[n].split(",")})))})(),...(()=>{const{bottomRight:t,bottomLeft:e}=n,r=u*Math.abs(f-l),{rightMoves:i,rightCoords:o,rightMiddle:a,leftMoves:s,leftCoords:c,leftMiddle:h}=d("bottom");let p,g;if(t===e||r<2*t+2*e)p=t>e?i:s,g=t>e?o:c;else{const n=(t,n)=>t.length-n<4,r=(t>e?n(i,a):n(s,h))?-1:-3;p=[...s.slice(0,h+2),...i.slice(r)],g=[...c.slice(0,h+2),...o.slice(r)]}const y=p.indexOf("L"),m=p.slice(y,-1),v=g.slice(y,-1);return m.map(((t,n)=>({command:t,coords:v[n].split(",")})))})()].reduce(((t,n)=>`${t}${n.command} ${n.coords.join()}`),"")} z`},ft=(t,n,e)=>t.getPath?((t,n)=>{const{getPath:e}=t;if("function"==typeof e)return e({...t,...at(t,n)})})(t,n):t.horizontal?((t,n,e)=>{const r=at(t,n),i=r.x0<r.x1?1:-1,o={topRight:i>0?e.topLeft:e.bottomLeft,bottomRight:i>0?e.topRight:e.bottomRight,bottomLeft:i>0?e.bottomRight:e.topRight,topLeft:i>0?e.bottomLeft:e.topLeft},a=((t,n,e)=>{const{y0:r,y1:i}=t,o=t.x0<t.x1?t.x0:t.x1,a=t.x0<t.x1?t.x1:t.x0,u=t=>{const u="top"===t,s=u?-1:1,c=u?i:r;let l={x:o,y:c-s*e[`${t}Left`]},f={x:o+e[`${t}Left`],y:c},h={x:a-e[`${t}Right`],y:c},d={x:a,y:c-s*e[`${t}Right`]};if(f.x>h.x){const r=it(o+e[`${t}Left`],c-s*e[`${t}Left`]),i=ot(r,e[`${t}Left`]),p=it(a-e[`${t}Right`],c-s*e[`${t}Right`]),g=ot(p,e[`${t}Right`]),y=i.intersection(g);if(y.length>0){const t=y[n>0?1:0];f={x:t.x,y:t.y},h={x:t.x,y:t.y}}else if(e[`${t}Right`]>e[`${t}Left`]){const t=g.solveY(o)[u?0:1];l={x:o,y:t},f={x:o,y:t},h={x:o,y:t}}else{const t=i.solveY(a)[u?0:1];d={x:a,y:t},h={x:a,y:t},f={x:a,y:t}}}return[l,f,h,d]},s=u("top"),c=u("bottom");return[c[1],c[0],...s,c[3],c[2]]})(r,i,o);return ct(a,o,"0 0 1")})(t,n,e):((t,n,e)=>{const r=at(t,n),i=r.y0>r.y1?1:-1,o=i>0?"0 0 1":"0 0 0",a=((t,n,e)=>{const{x0:r,x1:i,y0:o,y1:a}=t,u=t=>{const u="Left"===t,s=u?1:-1,c=u?r:i;let l={x:c+s*e[`bottom${t}`],y:o},f={x:c,y:o-n*e[`bottom${t}`]},h={x:c,y:a+n*e[`top${t}`]},d={x:c+s*e[`top${t}`],y:a};if(1===n?o-e[`bottom${t}`]<a+e[`top${t}`]:o+e[`bottom${t}`]>a-e[`top${t}`]){const r=it(c+s*e[`top${t}`],a+n*e[`top${t}`]),i=ot(r,e[`top${t}`]),p=it(c+s*e[`bottom${t}`],o-n*e[`bottom${t}`]),g=ot(p,e[`bottom${t}`]),y=i.intersection(g);if(y.length>0){const t=y[u?0:1];f={x:t.x,y:t.y},h={x:t.x,y:t.y}}else if(e[`top${t}`]>e[`bottom${t}`]){const t=i.solveX(o)[u?0:1];l={x:t,y:o},f={x:t,y:o},h={x:t,y:o}}else{const t=g.solveX(a)[u?0:1];f={x:t,y:a},h={x:t,y:a},d={x:t,y:a}}}const p=[l,f,h,d];return u?p:p.reverse()};return u("Left").concat(u("Right"))})(r,i,e);return ct(a,e,o)})(t,n,e),ht=t=>{const n=function(t,n){if(void 0===t&&(t={}),n.disableInlineStyles)return{};const e={fill:"black",stroke:t.fill||"black"};return v(Object.assign(e,t),n)}(t.style,t),e=((t,n)=>{const{scale:e,data:r,style:i}=n;if(t)return m(t,n);if(i.width)return i.width;const o=e.x.range(),a=Math.abs(o[1]-o[0]),u=r.length+2,s=(n.barRatio||.5)*(r.length<2?8:a/u);return Math.max(1,s)})(t.barWidth,Object.assign({},t,{style:n})),r=((t,n)=>{const e={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};return t?function(t){return _()(t)}(t)?((t,n)=>{const e={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},r=(r,i)=>{w(t[r])?w(t[i])||(e[r]=m(t[i],n)):e[r]=m(t[r],n)};return r("topLeft","top"),r("topRight","top"),r("bottomLeft","bottom"),r("bottomRight","bottom"),e})(t,n):(e.topLeft=m(t,n),e.topRight=m(t,n),e):e})(t.cornerRadius,Object.assign({},t,{style:n,barWidth:e})),i=m(t.ariaLabel,t),o=m(t.desc,t),a=m(t.id,t),u=m(t.tabIndex,t);return Object.assign({},t,{ariaLabel:i,style:n,barWidth:e,cornerRadius:r,desc:o,id:a,tabIndex:u})},dt={pathComponent:o().createElement(j,null),role:"presentation",shapeRendering:"auto"},pt=(0,e.forwardRef)((function(t,n){const e=ht(u()({},t,dt)),{polar:r,origin:i,style:a,barWidth:s,cornerRadius:c}=e,l=r?((t,n)=>lt(t,n))(e,c):ft(e,s,c),f=r&&i?`translate(${i.x}, ${i.y})`:void 0;return e.pathComponent?o().cloneElement(e.pathComponent,{...e.events,"aria-label":e.ariaLabel,style:a,d:l,className:e.className,clipPath:e.clipPath,desc:e.desc,index:e.index,role:e.role,shapeRendering:e.shapeRendering,transform:e.transform||f,tabIndex:e.tabIndex,ref:n}):null}));var gt=r(660),yt=r.n(gt);function mt(){return mt=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},mt.apply(this,arguments)}const vt=o().forwardRef(((t,n)=>o().createElement("svg",mt({ref:n},t)))),xt={startsWith:["data-","aria-"],exactMatch:[]},bt=t=>{const n={...t};return Object.fromEntries(Object.entries(n).filter((t=>{let[n]=t;return(t=>!(!(t=>{let n=!1;return xt.startsWith.forEach((e=>{new RegExp(`\\b(${e})(\\w|-)+`,"g").test(t)&&(n=!0)})),n})(t)&&!(t=>xt.exactMatch.includes(t))(t)))(n)})).map((n=>{let[e,r]=n;return[e,m(r,t)]})))},Mt=o().createContext(void 0);Mt.displayName="PortalContext";const wt=()=>o().useContext(Mt),At=t=>{let{children:n}=t;const[e,r]=o().useState(new Map),i=o().useCallback(((t,n)=>{r((e=>{const r=new Map(e);return r.set(t,n),r}))}),[r]),a=o().useCallback((t=>{r((n=>{const e=new Map(n);return e.delete(t),e}))}),[r]),u=o().useMemo((()=>({addChild:i,removeChild:a,children:e})),[i,a,e]);return o().createElement(Mt.Provider,{value:u},n)},kt=t=>{let{as:n,...e}=t;const r=wt();if(!r)return null;const i=Array.from(r.children.values());return o().cloneElement(n,e,i)};function Et(){return Et=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Et.apply(this,arguments)}const Ot={className:"VictoryContainer",portalComponent:o().createElement(vt,null),portalZIndex:99,responsive:!0,role:"img"},jt=t=>{const{role:n,title:r,desc:i,children:a,className:u,portalZIndex:s,portalComponent:c,width:l,height:f,style:h,tabIndex:d,responsive:p,events:g,ouiaId:y,ouiaSafe:m,ouiaType:v,dimensions:x,ariaDescribedBy:b,ariaLabelledBy:M,viewBox:w,preserveAspectRatio:k,userProps:E,titleId:O,descId:j,containerRef:S,localContainerRef:_}=function(t){const n={...Ot,...t},{title:r,desc:i,width:o,height:a,responsive:u}=n,s=(0,e.useRef)(null),c=(0,e.useRef)(yt()("victory-container-")),l=n.containerId??c.current,f=t=>`${l}-${t}`,h=bt(n),d=u?{width:"100%",height:"100%"}:{width:o,height:a},p=u?`0 0 ${o} ${a}`:void 0,g=u?n.preserveAspectRatio:void 0,y=[r&&f("title"),n["aria-labelledby"]].filter(Boolean).join(" ")||void 0,m=[i&&f("desc"),n["aria-describedby"]].filter(Boolean).join(" ")||void 0,v=f("title"),x=f("desc");return{...n,titleId:v,descId:x,dimensions:d,viewBox:p,preserveAspectRatio:g,ariaLabelledBy:y,ariaDescribedBy:m,userProps:h,localContainerRef:s}}(t);return o().useEffect((()=>{if(!g?.onWheel)return;const t=t=>t.preventDefault(),n=_?.current;return n?.addEventListener("wheel",t),()=>{n?.removeEventListener("wheel",t)}}),[]),o().createElement("div",{className:u,style:{...h,width:p?h?.width:x.width,height:p?h?.height:x.height,pointerEvents:"none",touchAction:"none",position:"relative"},"data-ouia-component-id":y,"data-ouia-component-type":v,"data-ouia-safe":m,ref:(C=[_,S],t=>{C.forEach((n=>{A(n)?n(t):null!=n&&(n.current=t)}))})},o().createElement(At,null,o().createElement("svg",Et({width:l,height:f,tabIndex:d,role:n,"aria-labelledby":M,"aria-describedby":b,viewBox:w,preserveAspectRatio:k,style:{...x,pointerEvents:"all"}},E,g),r?o().createElement("title",{id:O},r):null,i?o().createElement("desc",{id:j},i):null,a),o().createElement("div",{style:{...x,zIndex:s,position:"absolute",top:0,left:0}},o().createElement(kt,{as:c,width:l,height:f,viewBox:w,preserveAspectRatio:k,style:{...x,overflow:"visible"}}))));var C};jt.role="container";var St=r(4155),_t=r.n(St);const Ct={groupComponent:o().createElement("g",null)},Tt=t=>{const n={...Ct,...t},e=o().useId(),r=wt(),i=Array.isArray(n.children)?n.children[0]:n.children,{groupComponent:a}=n,s=i&&i.props||{},c=s.groupComponent?{groupComponent:a,standalone:!1}:{},l=u()(c,s,h(n,["children","groupComponent"]),{key:s.key??e}),f=i&&o().cloneElement(i,l);return o().useEffect((()=>{r?.addChild(e,f)}),[n.children]),o().useEffect((()=>()=>r?.removeChild(e)),[]),r?null:f};function $t(){return $t=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},$t.apply(this,arguments)}Tt.role="portal";const Dt=(0,e.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:a,...u}=t,s={vectorEffect:"non-scaling-stroke",id:m(r,t)?.toString(),tabIndex:m(i,t),...u};return e?o().createElement("rect",$t({},s,{ref:n}),o().createElement("desc",null,e)):o().createElement("rect",$t({},s,{ref:n}))})),Nt=t=>{const{children:n,desc:e,id:r,origin:i,tabIndex:a,title:u,...s}=t,c={id:m(r,t)?.toString(),tabIndex:m(a,t),...s};return o().createElement("text",c,u&&o().createElement("title",null,u),e&&o().createElement("desc",null,e),n)},Lt=t=>{const{desc:n,id:e,tabIndex:r,origin:i,...a}=t,u={id:m(e,t)?.toString(),tabIndex:m(r,t),...a};return o().createElement("tspan",u)};function Pt(t){const{labelComponent:n,labelPlacement:e,polar:r}=t,i=r?"perpendicular":"vertical";return e||n.props&&n.props.labelPlacement||i}function It(t,n,e){return void 0===n&&(n={}),void 0!==n.label?n.label:Array.isArray(t.labels)?t.labels[e]:t.labels}function Rt(t,n){const{x:e}=d(n);return("number"==typeof(r=t.scale.x(e))?r/(Math.PI/180):r)%360;var r}function zt(t,n){const{scale:e,data:r,style:i,horizontal:o,polar:a,width:s,height:c,theme:l,labelComponent:f,disableInlineStyles:d}=t,g=r[n],v=Rt(t,g),b=a?function(t,n){const e=Pt(t);return"perpendicular"===e||"vertical"===e&&(90===n||270===n)?"middle":n<=90||n>270?"start":"end"}(t,v):function(t,n){void 0===n&&(n={});const{style:e,horizontal:r}=t,i=n._y>=0?1:-1,o=e&&e.labels||{};return n.verticalAnchor||o.verticalAnchor?n.verticalAnchor||o.verticalAnchor:r?i>=0?"start":"end":"middle"}(t,g),M=a?function(t,n){const e=Pt(t),r=function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}(n);return"parallel"===e||"left"===r||"right"===r?"middle":"top"===r?"end":"start"}(t,v):function(t,n){void 0===n&&(n={});const e=n._y>=0?1:-1,r=t.style&&t.style.labels||{};return n.verticalAnchor||r.verticalAnchor?n.verticalAnchor||r.verticalAnchor:t.horizontal?"middle":e>=0?"end":"start"}(t,g),w=function(t,n){void 0===n&&(n={});const e=t.style&&t.style.labels||{};return void 0===n.angle?e.angle:n.angle}(t,g),A=It(t,g,n),k=Pt(t),{x:E,y:O}=function(t,n){const{polar:e}=t,{x:r,y:i}=p(t,n);if(!e)return{x:r,y:i};const o=function(t,n){const{style:e}=t,r=Rt(t,n),i=m((e.labels||{}).padding,t)||0,o=x(r);return{x:i*Math.cos(o),y:-i*Math.sin(o)}}(t,n);return{x:r+o.x,y:i+o.y}}(t,g),{dx:j,dy:S}=function(t,n){if(t.polar)return{};const e=function(t,n){void 0===n&&(n={});const{horizontal:e,style:r}=t,i=m((r.labels||{}).padding,t)||0,o=n._y<0?-1:1;return{x:e?o*i:0,y:e?0:-1*o*i}}(t,n);return{dx:e.x,dy:e.y}}(t,g),_={angle:w,data:r,datum:g,disableInlineStyles:d,horizontal:o,index:n,polar:a,scale:e,labelPlacement:k,text:A,textAnchor:b,verticalAnchor:M,x:E,y:O,dx:j,dy:S,width:s,height:c,style:i.labels};if(!y(f))return _;const C=l&&l.tooltip||{};return u()({},_,h(C,["style"]))}const Ft=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];if(e.length>0)return e.reduce(((t,n)=>[t,Ft(n)].join(" ")),Ft(t)).trim();if(null==t||"string"==typeof t)return t;const i=[];for(const n in t)if(t.hasOwnProperty(n)){const e=t[n];i.push(`${n}(${e})`)}return i.join(" ").trim()};var Ut=r(1594),Wt=r.n(Ut);const Ht={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},qt={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},Bt={em:1,ex:.5},Yt={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},Vt=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),Gt=(t,n,e)=>{const r=(t=>t*Math.PI/180)(e);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*n)},Kt=(t,n)=>{const e=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let i;return i=e?qt.hasOwnProperty(e)?r*qt[e]:Bt.hasOwnProperty(e)?(n?r*n:r*Yt.fontSize)*Bt[e]:r:r||0,i},Zt=(t,n)=>{const e=Array.isArray(t)?t[n]:t,r=u()({},e,Yt);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:Kt(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:Kt(String(r.fontSize))})},Qt=(t,n)=>{const e=Array.isArray(n)?n[0]&&n[0].angle:n&&n.angle,r=((t,n)=>void 0===t||""===t||null===t?0:Vt(t).reduce(((t,e,r)=>{const i=Zt(n,r),o=e.toString().match(/[(A-Z)(0-9)]/)?1.15*i.fontSize:i.fontSize;return t+i.lineHeight*o}),0))(t,n),i=((t,n)=>{if(void 0===t||""===t||null===t)return 0;const e=Vt(t).map(((t,e)=>{const r=t.toString().length,{fontSize:i,letterSpacing:o,fontFamily:a}=Zt(n,e),u=(t=>{const n=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>Ht[t]))||"Helvetica";return Ht[n]})(a);return t.toString().split("").map((t=>t.charCodeAt(0)<u.widths.length?u.widths[t.charCodeAt(0)]:u.avg)).reduce(((t,n)=>n+t),0)*i+o*Math.max(r-1,0)}));return Math.max(...e)})(t,n);return{width:e?Gt(i,r,e):i,height:1.05*(e?Gt(r,i,e):r)}},Xt=Wt()((()=>{const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("xlink","http://www.w3.org/1999/xlink"),t.setAttribute("width","300"),t.setAttribute("height","300"),t.setAttribute("viewBox","0 0 300 300"),t.setAttribute("aria-hidden","true");const n=document.createElementNS("http://www.w3.org/2000/svg","text");return t.appendChild(n),t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t),n})),Jt=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",tn=Wt()(((t,n)=>{let e=Xt();e.isConnected||(Xt.cache.clear?.(),e=Xt());const r=Vt(t);let i=0;for(const[t,o]of r.entries()){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),a=Zt(n,t);r.style.fontFamily=a.fontFamily,r.style.fontSize=`${a.fontSize}px`,r.style.lineHeight=a.lineHeight,r.style.fontFamily=a.fontFamily,r.style.letterSpacing=a.letterSpacing,r.textContent=o,r.setAttribute("x","0"),r.setAttribute("y",`${i}`),e.appendChild(r),i+=a.lineHeight*r.getBoundingClientRect().height}const{width:o}=e.getBoundingClientRect();return e.innerHTML="",{width:n?.angle?Gt(o,i,n?.angle):o,height:n?.angle?Gt(i,o,n?.angle):i}}),((t,n)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(n)?n.map(Jt).join():Jt(n)}`)),nn=(t,n)=>function(t,n,e){return void 0===e&&(e=!1),"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||e?Qt(t,n):tn(t,n)}(t,n),en={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},rn=(t,n)=>t.datum?p(t,t.datum)[n]:0,on=t=>{const n=t&&t.fontSize;if("number"==typeof n)return n;if(null==n)return en.fontSize;if("string"==typeof n){const t=Number(n.replace("px",""));return isNaN(t)?en.fontSize:t}return en.fontSize},an=function(t,n){return void 0===n&&(n=0),Array.isArray(t)?t[n]||t[0]:t},un=t=>{const{backgroundStyle:n,backgroundPadding:e}=t;return Array.isArray(n)&&!_t()(n)||Array.isArray(e)&&!_t()(e)},sn=(t,n)=>{const{direction:e,textAnchor:r,x:i,dx:o}=t;if("rtl"===e)return i-n;switch(r){case"middle":return Math.round(i-n/2);case"end":return Math.round(i-n);default:return i+(o||0)}},cn=(t,n)=>{const{verticalAnchor:e,y:r,originalDy:i=0}=t,o=r+i;switch(e){case"start":return Math.floor(o);case"end":return Math.ceil(o-n);default:return Math.floor(o-n/2)}},ln=(t,n)=>un(t)?((t,n)=>{const{dy:e,dx:r,transform:i,backgroundStyle:a,backgroundPadding:s,backgroundComponent:c,inline:l,y:f}=t,h=n.map(((t,i)=>{const o=an(n,i-1),a=t.textSize,u=t.fontSize*t.lineHeight,c=Math.ceil(u),h=an(s,i),d=an(s,i-1),p=l&&r||0,g=i&&!l?o.fontSize*o.lineHeight+d.top+d.bottom:e-.5*u-(t.fontSize-t.capHeight);return{textHeight:c,labelSize:a,heightWithPadding:c+h.top+h.bottom,widthWithPadding:a.width+h.left+h.right+p,y:f,fontSize:t.fontSize,dy:g}}));return h.map(((n,e)=>{const r=sn(t,n.labelSize.width),d=h.slice(0,e+1).reduce(((t,n)=>t+n.dy),f),p=an(s,e),g=n.heightWithPadding,y=l?((t,n,e)=>{const{textAnchor:r}=t,i=n.map((t=>t.widthWithPadding)),o=-i.reduce(((t,n)=>t+n),0)/2;switch(r){case"start":return i.reduce(((t,n,r)=>r<e?t+n:t),0);case"end":return i.reduce(((t,n,r)=>r>e?t-n:t),0);default:return i.reduce(((t,n,r)=>r===e?t+n/2:t+(r<e?n:0)),o)}})(t,h,e)+r-p.left:r,m=l?cn(t,g)-p.top:d,v={key:`tspan-background-${e}`,height:g,style:an(a,e),width:n.widthWithPadding,transform:i,x:y-p.left,y:m};return o().cloneElement(c,u()({},c.props,v))}))})(t,n):((t,n)=>{const{dx:e=0,transform:r,backgroundComponent:i,backgroundStyle:a,inline:s,backgroundPadding:c,capHeight:l}=t,f=n.map((t=>t.textSize)),h=s?Math.max(...f.map((t=>t.height))):f.reduce(((t,e,r)=>{const i=r?0:l/2;return t+e.height*(n[r].lineHeight-i)}),0),d=s?f.reduce(((t,n,r)=>{const i=r?e:0;return t+n.width+i}),0):Math.max(...f.map((t=>t.width))),p=sn(t,d),g=cn(t,h),y={key:"background",height:h+c.top+c.bottom,style:a,transform:r,width:d+c.left+c.right,x:s?p-c.left:p+e-c.left,y:g};return o().cloneElement(i,u()({},i.props,y))})(t,n),fn=(t,n,e)=>{const{inline:r}=n,i=an(t,e);return e&&!r?((t,n,e)=>{const r=an(t,n),i=an(t,n-1),o=i.fontSize*i.lineHeight,a=r.fontSize*r.lineHeight,u=i.fontSize-i.capHeight,s=r.fontSize-r.capHeight,c=o-i.fontSize/2+r.fontSize/2-o/2+a/2-s/2+u/2;return un(e)?c+r.backgroundPadding.top+i.backgroundPadding.bottom:c})(t,e,n):r?0===e?i.backgroundPadding.top:void 0:i.backgroundPadding.top},hn=t=>{const n=m(t.ariaLabel,t),e=an(t.style),r=(t=>{const n=m(t.lineHeight,t);return Array.isArray(n)&&_t()(n)?[1]:n})(t),i=t.direction?m(t.direction,t):"inherit",o=t.textAnchor?m(t.textAnchor,t):e.textAnchor||"start",a=t.verticalAnchor?m(t.verticalAnchor,t):e.verticalAnchor||"middle",u=t.dx?m(t.dx,t):0,s=((t,n,e)=>{const r=t.dy?m(t.dy,t):0,i=t.inline?1:t.text.length,o=m(t.capHeight,t),a=n?m(n,t):"middle",u=[...Array(i).keys()].map((n=>an(t.style,n).fontSize)),s=[...Array(i).keys()].map((t=>an(e,t)));if("start"===a)return r+(o/2+s[0]/2)*u[0];if(t.inline)return"end"===a?r+(o/2-s[0]/2)*u[0]:r+o/2*u[0];if(1===i)return"end"===a?r+(o/2+(.5-i)*s[0])*u[0]:r+(o/2+(.5-i/2)*s[0])*u[0];const c=[...Array(i).keys()].reduce(((t,n)=>t+(o/2+(.5-i)*s[n])*u[n]/i),0);return"end"===a?r+c:r+c/2+o/2*s[i-1]*u[i-1]})(t,a,r),c=void 0!==t.x?t.x:rn(t,"x"),l=void 0!==t.y?t.y:rn(t,"y"),f=((t,n,e)=>{const{polar:r}=t,i=an(t.style),o=r?function(t,n){const{labelPlacement:e,datum:r}=t;if(!e||"vertical"===e)return 0;const i=Rt(t,r);let o=0;return 0===i||180===i?o=90:i>0&&i<180?o=90-i:i>180&&i<360&&(o=270-i),o+(i>90&&i<180||i>270?1:-1)*("perpendicular"===e?0:90)}(t):0,a=void 0===i.angle?m(t.angle,t):i.angle,u=void 0===a?o:a,s=t.transform||i.transform,c=s&&m(s,t);return c||u?Ft(c,u&&{rotate:[u,n,e]}):void 0})(t,c,l);return Object.assign({},t,{ariaLabel:n,lineHeight:r,direction:i,textAnchor:o,verticalAnchor:a,dx:u,dy:s,originalDy:m(t.dy,t),transform:f,x:c,y:l})},dn={backgroundComponent:o().createElement(Dt,null),groupComponent:o().createElement("g",null),direction:"inherit",textComponent:o().createElement(Nt,null),tspanComponent:o().createElement(Lt,null),capHeight:.71,lineHeight:1},pn=t=>{const n=(t=>{const n=((t,n)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>m(t,n)));const e=m(t,n);return null!=e?Array.isArray(e)?e:`${e}`.split("\n"):void 0})(t.text,t),e=((t,n)=>{if(n.disableInlineStyles){const e=v(t,n);return{fontSize:on(e)}}const e=t=>{const e=v(t?u()({},t,en):en,n);return Object.assign({},e,{fontSize:on(e)})};return Array.isArray(t)&&!_t()(t)?t.map((t=>e(t))):e(t)})(t.style,Object.assign({},t,{text:n})),r=((t,n)=>{if(t)return Array.isArray(t)&&!_t()(t)?t.map((t=>v(t,n))):v(t,n)})(t.backgroundStyle,Object.assign({},t,{text:n,style:e})),i=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((n=>g({padding:m(n,t)}))):g({padding:m(t.backgroundPadding,t)}))(Object.assign({},t,{text:n,style:e,backgroundStyle:r})),o=m(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:i,style:e,text:n,id:o})})(u()({},t,dn));if(null===n.text||void 0===n.text)return null;const e=hn(n),{text:r,style:i,capHeight:a,backgroundPadding:s,lineHeight:c}=e,l=r.map(((t,n)=>{const e=an(i,n),r=Kt(`${a}em`,e.fontSize),o=an(c,n);return{style:e,fontSize:e.fontSize||en.fontSize,capHeight:r,text:t,textSize:nn(t,e),lineHeight:o,backgroundPadding:an(s,n)}})),f=((t,n)=>{const{ariaLabel:e,inline:r,className:i,title:a,events:u,direction:s,text:c,textAnchor:l,dx:f,dy:h,transform:d,x:p,y:g,desc:y,id:v,tabIndex:x,tspanComponent:b,textComponent:M}=t,w=bt(t),A={"aria-label":e,key:"text",...u,direction:s,dx:f,x:p,y:g+h,transform:d,className:i,title:a,desc:m(y,t),tabIndex:m(x,t),id:v,...w},k=c.map(((e,i)=>{const a=n[i].style,u={key:`${v}-key-${i}`,x:r?void 0:p,dx:r?f+n[i].backgroundPadding.left:f,dy:fn(n,t,i),textAnchor:a.textAnchor||l,style:a,children:e};return o().cloneElement(b,u)}));return o().cloneElement(M,A,k)})(e,l);if(n.backgroundStyle){const t=[ln(e,l),f],r=o().cloneElement(n.groupComponent,{},t);return n.renderInPortal?o().createElement(Tt,null,r):r}return n.renderInPortal?o().createElement(Tt,null,f):f};pn.displayName="VictoryLabel",pn.role="label",pn.defaultStyles=en;const gn=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],yn="#252525",mn="#969696",vn={width:450,height:300,padding:50,colorScale:gn},xn={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:yn,stroke:"transparent"},bn=Object.assign({textAnchor:"middle"},xn),Mn={area:Object.assign({style:{data:{fill:yn},labels:xn}},vn),axis:Object.assign({style:{axis:{fill:"transparent",stroke:yn,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},bn,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:xn}},vn),bar:Object.assign({style:{data:{fill:yn,padding:8,strokeWidth:0},labels:xn}},vn),boxplot:Object.assign({style:{max:{padding:8,stroke:yn,strokeWidth:1},maxLabels:Object.assign({},xn,{padding:3}),median:{padding:8,stroke:yn,strokeWidth:1},medianLabels:Object.assign({},xn,{padding:3}),min:{padding:8,stroke:yn,strokeWidth:1},minLabels:Object.assign({},xn,{padding:3}),q1:{padding:8,fill:mn},q1Labels:Object.assign({},xn,{padding:3}),q3:{padding:8,fill:mn},q3Labels:Object.assign({},xn,{padding:3})},boxWidth:20},vn),candlestick:Object.assign({style:{data:{stroke:yn,strokeWidth:1},labels:Object.assign({},xn,{padding:5})},candleColors:{positive:"#ffffff",negative:yn}},vn),chart:vn,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:yn,strokeWidth:2},labels:xn}},vn),group:Object.assign({colorScale:gn},vn),histogram:Object.assign({style:{data:{fill:mn,stroke:yn,strokeWidth:2},labels:xn}},vn),legend:{colorScale:gn,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:xn,title:Object.assign({},xn,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:yn,strokeWidth:2},labels:xn}},vn),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},xn,{padding:20})},colorScale:gn,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:yn,stroke:"transparent",strokeWidth:0},labels:xn}},vn),stack:Object.assign({colorScale:gn},vn),tooltip:{style:Object.assign({},xn,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:yn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},xn,{padding:5,pointerEvents:"none"}),flyout:{stroke:yn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},vn)},wn=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],An="#ECEFF1",kn="#90A4AE",En="#455A64",On="#212121",jn={width:350,height:350,padding:50},Sn={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:En,stroke:"transparent",strokeWidth:0},_n=Object.assign({textAnchor:"middle"},Sn),Cn="round",Tn="round",$n=(Object.assign({style:{data:{fill:On},labels:Sn}},jn),Object.assign({style:{axis:{fill:"transparent",stroke:kn,strokeWidth:2,strokeLinecap:Cn,strokeLinejoin:Tn},axisLabel:Object.assign({},_n,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:An,strokeDasharray:"10, 5",strokeLinecap:Cn,strokeLinejoin:Tn,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:kn,strokeWidth:1,strokeLinecap:Cn,strokeLinejoin:Tn},tickLabels:Object.assign({},Sn,{fill:En})}},jn),Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),Object.assign({style:{data:{fill:En,padding:8,strokeWidth:0},labels:Sn}},jn),Object.assign({style:{max:{padding:8,stroke:En,strokeWidth:1},maxLabels:Object.assign({},Sn,{padding:3}),median:{padding:8,stroke:En,strokeWidth:1},medianLabels:Object.assign({},Sn,{padding:3}),min:{padding:8,stroke:En,strokeWidth:1},minLabels:Object.assign({},Sn,{padding:3}),q1:{padding:8,fill:En},q1Labels:Object.assign({},Sn,{padding:3}),q3:{padding:8,fill:En},q3Labels:Object.assign({},Sn,{padding:3})},boxWidth:20},jn),Object.assign({style:{data:{stroke:En},labels:Object.assign({},Sn,{padding:5})},candleColors:{positive:"#ffffff",negative:En}},jn),Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:En,strokeWidth:2},labels:Sn}},jn),Object.assign({colorScale:wn},jn),Object.assign({style:{data:{fill:En,stroke:On,strokeWidth:2},labels:Sn}},jn),Object.assign({},Sn,{padding:5}),Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:En,strokeWidth:2},labels:Sn}},jn),Object.assign({colorScale:wn,style:{data:{padding:8,stroke:An,strokeWidth:1},labels:Object.assign({},Sn,{padding:20})}},jn),Object.assign({style:{data:{fill:En,opacity:1,stroke:"transparent",strokeWidth:0},labels:Sn}},jn),Object.assign({colorScale:wn},jn),Object.assign({},Sn,{padding:0,pointerEvents:"none"}),Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},Sn,{padding:5,pointerEvents:"none"}),flyout:{stroke:On,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},jn),Mn);var Dn=r(7491),Nn=r.n(Dn);const Ln=t=>+t;function Pn(t){return t*t}function In(t){return t*(2-t)}function Rn(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function zn(t){return t*t*t}function Fn(t){return--t*t*t+1}function Un(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Wn=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),Hn=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),qn=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),Bn=Math.PI,Yn=Bn/2;function Vn(t){return 1==+t?1:1-Math.cos(t*Yn)}function Gn(t){return Math.sin(t*Yn)}function Kn(t){return(1-Math.cos(Bn*t))/2}function Zn(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Qn(t){return Zn(1-+t)}function Xn(t){return 1-Zn(t)}function Jn(t){return((t*=2)<=1?Zn(1-t):2-Zn(t-1))/2}function te(t){return 1-Math.sqrt(1-t*t)}function ne(t){return Math.sqrt(1- --t*t)}function ee(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var re=7.5625;function ie(t){return 1-oe(1-t)}function oe(t){return(t=+t)<.36363636363636365?re*t*t:t<.7272727272727273?re*(t-=.5454545454545454)*t+.75:t<.9090909090909091?re*(t-=.8181818181818182)*t+.9375:re*(t-=.9545454545454546)*t+.984375}function ae(t){return((t*=2)<=1?1-oe(1-t):oe(t-1)+1)/2}var ue=1.70158,se=function t(n){function e(t){return(t=+t)*t*(n*(t-1)+t)}return n=+n,e.overshoot=t,e}(ue),ce=function t(n){function e(t){return--t*t*((t+1)*n+t)+1}return n=+n,e.overshoot=t,e}(ue),le=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}(ue),fe=2*Math.PI,he=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=fe);function i(t){return n*Zn(- --t)*Math.sin((r-t)/e)}return i.amplitude=function(n){return t(n,e*fe)},i.period=function(e){return t(n,e)},i}(1,.3),de=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=fe);function i(t){return 1-n*Zn(t=+t)*Math.sin((t+r)/e)}return i.amplitude=function(n){return t(n,e*fe)},i.period=function(e){return t(n,e)},i}(1,.3),pe=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=fe);function i(t){return((t=2*t-1)<0?n*Zn(-t)*Math.sin((r-t)/e):2-n*Zn(t)*Math.sin((r+t)/e))/2}return i.amplitude=function(n){return t(n,e*fe)},i.period=function(e){return t(n,e)},i}(1,.3),ge=r(4143),ye=r.n(ge);function me(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function ve(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function xe(){}var be=.7,Me=1/be,we="\\s*([+-]?\\d+)\\s*",Ae="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ke="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ee=/^#([0-9a-f]{3,8})$/,Oe=new RegExp(`^rgb\\(${we},${we},${we}\\)$`),je=new RegExp(`^rgb\\(${ke},${ke},${ke}\\)$`),Se=new RegExp(`^rgba\\(${we},${we},${we},${Ae}\\)$`),_e=new RegExp(`^rgba\\(${ke},${ke},${ke},${Ae}\\)$`),Ce=new RegExp(`^hsl\\(${Ae},${ke},${ke}\\)$`),Te=new RegExp(`^hsla\\(${Ae},${ke},${ke},${Ae}\\)$`),$e={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 De(){return this.rgb().formatHex()}function Ne(){return this.rgb().formatRgb()}function Le(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=Ee.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?Pe(n):3===e?new Fe(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Ie(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Ie(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=Oe.exec(t))?new Fe(n[1],n[2],n[3],1):(n=je.exec(t))?new Fe(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Se.exec(t))?Ie(n[1],n[2],n[3],n[4]):(n=_e.exec(t))?Ie(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Ce.exec(t))?Ye(n[1],n[2]/100,n[3]/100,1):(n=Te.exec(t))?Ye(n[1],n[2]/100,n[3]/100,n[4]):$e.hasOwnProperty(t)?Pe($e[t]):"transparent"===t?new Fe(NaN,NaN,NaN,0):null}function Pe(t){return new Fe(t>>16&255,t>>8&255,255&t,1)}function Ie(t,n,e,r){return r<=0&&(t=n=e=NaN),new Fe(t,n,e,r)}function Re(t){return t instanceof xe||(t=Le(t)),t?new Fe((t=t.rgb()).r,t.g,t.b,t.opacity):new Fe}function ze(t,n,e,r){return 1===arguments.length?Re(t):new Fe(t,n,e,null==r?1:r)}function Fe(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Ue(){return`#${Be(this.r)}${Be(this.g)}${Be(this.b)}`}function We(){const t=He(this.opacity);return`${1===t?"rgb(":"rgba("}${qe(this.r)}, ${qe(this.g)}, ${qe(this.b)}${1===t?")":`, ${t})`}`}function He(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function qe(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Be(t){return((t=qe(t))<16?"0":"")+t.toString(16)}function Ye(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Ge(t,n,e,r)}function Ve(t){if(t instanceof Ge)return new Ge(t.h,t.s,t.l,t.opacity);if(t instanceof xe||(t=Le(t)),!t)return new Ge;if(t instanceof Ge)return t;var n=(t=t.rgb()).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 Ge(a,u,s,t.opacity)}function Ge(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Ke(t){return(t=(t||0)%360)<0?t+360:t}function Ze(t){return Math.max(0,Math.min(1,t||0))}function Qe(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 Xe(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}me(xe,Le,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:De,formatHex:De,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ve(this).formatHsl()},formatRgb:Ne,toString:Ne}),me(Fe,ze,ve(xe,{brighter(t){return t=null==t?Me:Math.pow(Me,t),new Fe(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?be:Math.pow(be,t),new Fe(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Fe(qe(this.r),qe(this.g),qe(this.b),He(this.opacity))},displayable(){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:Ue,formatHex:Ue,formatHex8:function(){return`#${Be(this.r)}${Be(this.g)}${Be(this.b)}${Be(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:We,toString:We})),me(Ge,(function(t,n,e,r){return 1===arguments.length?Ve(t):new Ge(t,n,e,null==r?1:r)}),ve(xe,{brighter(t){return t=null==t?Me:Math.pow(Me,t),new Ge(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?be:Math.pow(be,t),new Ge(this.h,this.s,this.l*t,this.opacity)},rgb(){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 Fe(Qe(t>=240?t-240:t+120,i,r),Qe(t,i,r),Qe(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Ge(Ke(this.h),Ze(this.s),Ze(this.l),He(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=He(this.opacity);return`${1===t?"hsl(":"hsla("}${Ke(this.h)}, ${100*Ze(this.s)}%, ${100*Ze(this.l)}%${1===t?")":`, ${t})`}`}}));var Je=t=>()=>t;function tr(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):Je(isNaN(t)?n:t)}var nr=function t(n){var e=function(t){return 1==(t=+t)?tr: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):Je(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=ze(t)).r,(n=ze(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=tr(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+""}}return r.gamma=t,r}(1);function er(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;e<i;++e)r=ze(n[e]),o[e]=r.r||0,a[e]=r.g||0,u[e]=r.b||0;return o=t(o),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=u(t),r+""}}}function rr(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(e=0;e<i;++e)o[e]=fr(t[e],n[e]);for(;e<r;++e)a[e]=n[e];return function(t){for(e=0;e<i;++e)a[e]=o[e](t);return a}}function ir(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function or(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function ar(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=fr(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}er((function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r<n-1?t[r+2]:2*o-i;return Xe((e-r/n)*n,a,i,o,u)}})),er((function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],o=t[r%n],a=t[(r+1)%n],u=t[(r+2)%n];return Xe((e-r/n)*n,i,o,a,u)}}));var ur=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,sr=new RegExp(ur.source,"g");function cr(t,n){var e,r,i,o=ur.lastIndex=sr.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(e=ur.exec(t))&&(r=sr.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:or(e,r)})),o=sr.lastIndex;return o<n.length&&(i=n.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?s[0]?function(t){return function(n){return t(n)+""}}(s[0].x):function(t){return function(){return t}}(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 lr(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(o){for(e=0;e<r;++e)i[e]=t[e]*(1-o)+n[e]*o;return i}}function fr(t,n){var e,r,i=typeof n;return null==n||"boolean"===i?Je(n):("number"===i?or:"string"===i?(e=Le(n))?(n=e,nr):cr:n instanceof Le?nr:n instanceof Date?ir:(r=n,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(n)?rr:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?ar:or:lr))(t,n)}const hr=function(t){if(null!==t)switch(typeof t){case"undefined":case"boolean":return!1;case"number":return!isNaN(t)&&t!==Number.POSITIVE_INFINITY&&t!==Number.NEGATIVE_INFINITY;case"string":case"function":return!0;case"object":return t instanceof Date||Array.isArray(t)||_()(t)}return!1},dr=function(t,n,e){return void 0===e&&(e=0),function(r){return r<e?t:n}},pr=function(t,n){return function(e){return e>=1?n:function(){const r="function"==typeof t?t.apply(this,arguments):t,i="function"==typeof n?n.apply(this,arguments):n;return fr(r,i)(e)}}},gr=function(t,n){const e=t=>Array.isArray(t)?ye()(t,"key"):t,r={},i={};let o,a=t,u=n;for(o in null!==a&&"object"==typeof a||(a={}),null!==u&&"object"==typeof u||(u={}),u)o in a?r[o]=(s=e(a[o]))!==(c=e(u[o]))&&hr(s)&&hr(c)?"function"==typeof s||"function"==typeof c?pr(s,c):"object"==typeof s&&_()(s)||"object"==typeof c&&_()(c)?gr(s,c):fr(s,c):dr(s,c):i[o]=u[o];var s,c;return function(t){for(o in r)i[o]=r[o](t);return i}};var yr,mr,vr=0,xr=0,br=0,Mr=0,wr=0,Ar=0,kr="object"==typeof performance&&performance.now?performance:Date,Er="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Or(){return wr||(Er(jr),wr=kr.now()+Ar)}function jr(){wr=0}function Sr(){this._call=this._time=this._next=null}function _r(t,n,e){var r=new Sr;return r.restart(t,n,e),r}function Cr(){wr=(Mr=kr.now())+Ar,vr=xr=0;try{!function(){Or(),++vr;for(var t,n=yr;n;)(t=wr-n._time)>=0&&n._call.call(void 0,t),n=n._next;--vr}()}finally{vr=0,function(){for(var t,n,e=yr,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:yr=n);mr=t,$r(r)}(),wr=0}}function Tr(){var t=kr.now(),n=t-Mr;n>1e3&&(Ar-=n,Mr=t)}function $r(t){vr||(xr&&(xr=clearTimeout(xr)),t-wr>24?(t<1/0&&(xr=setTimeout(Cr,t-kr.now()-Ar)),br&&(br=clearInterval(br))):(br||(Mr=kr.now(),br=setInterval(Tr,1e3)),vr=1,Er(Cr)))}Sr.prototype=_r.prototype={constructor:Sr,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Or():+e)+(null==n?0:+n),this._next||mr===this||(mr?mr._next=this:yr=this,mr=this),this._call=t,this._time=e,$r()},stop:function(){this._call&&(this._call=null,this._time=1/0,$r())}};class Dr{constructor(){this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}bypassAnimation(){this.shouldAnimate=!1}resumeAnimation(){this.shouldAnimate=!0}loop=()=>{this.subscribers.forEach((t=>{t.callback(Or()-t.startTime,t.duration)}))};start(){this.timer||(this.timer=_r(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}subscribe(t,n){const e=this.subscribers.push({startTime:Or(),callback:t,duration:this.shouldAnimate?n:0});return this.activeSubscriptions++,this.start(),e}unsubscribe(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}const Nr=o().createContext({transitionTimer:new Dr,animationTimer:new Dr});Nr.displayName="TimerContext";var Lr=Nr;const Pr=1e3,Ir=n=>{let{duration:e=Pr,easing:r="quadInOut",delay:i=0,data:a,children:u,onEnd:s}=n;const[c,l]=o().useState({data:Array.isArray(a)?a[0]:a,animationInfo:{progress:0,animating:!1}}),f=o().useContext(Lr).animationTimer,h=o().useRef(Array.isArray(a)?a.slice(1):[]),d=o().useRef(null),p=o().useRef(void 0),g=t[(y=r,`ease${y.charAt(0).toUpperCase()+y.slice(1)}`)];var y;o().useEffect((()=>(h.current.length&&m(),()=>{p.current?f.unsubscribe(p.current):f.stop()})),[]),o().useEffect((()=>{d.current&&c.animationInfo&&c.animationInfo.progress<1?l({data:d.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}):(f.unsubscribe(p.current),h.current=Array.isArray(a)?a:[a],m())}),[a]);const m=()=>{if(h.current.length){const r=h.current[0];d.current=(t=c.data)!==(n=r)&&hr(t)&&hr(n)?"function"==typeof t||"function"==typeof n?pr(t,n):_()(t)||_()(n)?gr(t,n):"string"==typeof t||"string"==typeof n?function(t,n){const e=t=>"string"==typeof t?t.replace(/,/g,""):t;return fr(e(t),e(n))}(t,n):fr(t,n):dr(t,n),i?setTimeout((()=>{p.current=f.subscribe(v,e)}),i):p.current=f.subscribe(v,e)}else s&&s();var t,n},v=t=>{if(!d.current)return;const n=e?t/e:1;if(n>=1)return l({data:d.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),p.current&&f.unsubscribe(p.current),h.current.shift(),void m();l({data:d.current(g(n)),animationInfo:{progress:n,animating:n<1}})};return u(c.data,c.animationInfo)};function Rr(t){return Array.isArray(t)&&t.some((t=>t instanceof Date))}function zr(t,n){return t&&n?t.filter((t=>!n.includes(t))):[]}function Fr(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];const i=t.concat(e);return Rr(i)?new Date(Math.max(...i)):Math.max(...i)}function Ur(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];const i=t.concat(e);return Rr(i)?new Date(Math.min(...i)):Math.min(...i)}var Wr=r(5346),Hr=r.n(Wr);function qr(t,n){return(t.key||n).toString()}function Br(t){return t.reduce(((t,n,e)=>(t[qr(n,e)]=n,t)),{})}function Yr(t,n){let e=!1;const r=Object.keys(t).reduce(((t,r)=>(r in n||(e=!0,t[r]=!0),t)),{});return e&&r}function Vr(t){return t.type&&t.type.getData?t.type.getData(t.props):t.props&&t.props.data||!1}function Gr(t,n){let e=!1,r=!1;const i=(t,n)=>t.map(((a,u)=>a&&a.props&&a.props.children&&n[u]?i(o().Children.toArray(t[u].props.children),o().Children.toArray(n[u].props.children)):((t,n)=>{if(!n||t.type!==n.type)return{};const{entering:i,exiting:o}=function(t,n){const e=t&&Br(t),r=n&&Br(n);return{entering:e&&Yr(r,e),exiting:r&&Yr(e,r)}}(Vr(t),Vr(n))||{};return e=e||!!o,r=r||!!i,{entering:i||!1,exiting:o||!1}})(a,n[u]))),a=i(o().Children.toArray(t),o().Children.toArray(n));return{nodesWillExit:e,nodesWillEnter:r,childrenTransitions:a,nodesShouldEnter:!1}}function Kr(t,n,e){const r=n&&n.nodesWillExit,i=n&&n.nodesWillEnter,o=n&&n.nodesShouldEnter,a=n&&n.nodesShouldLoad,s=n&&n.nodesDoneLoad,c=n&&n.childrenTransitions||[],l={enter:t.animate&&t.animate.onEnter&&t.animate.onEnter.duration,exit:t.animate&&t.animate.onExit&&t.animate.onExit.duration,load:t.animate&&t.animate.onLoad&&t.animate.onLoad.duration,move:t.animate&&t.animate.duration},f=(t,n,r)=>a?function(t,n,r){const i=Object.assign({},t,{onEnd:()=>{e({nodesShouldLoad:!1,nodesDoneLoad:!0})}});let o=n;if(i&&i.onLoad&&!i.onLoad.duration)return{animate:t,data:n};const a=t.onLoad&&t.onLoad.after?t.onLoad.after:Hr();return o=n.map(((t,e)=>Object.assign({},t,a(t,e,n)))),{animate:i,data:o}}(r,n):function(t,n,r,i){const o=Object.assign({},t,{onEnd:()=>{e({nodesDoneLoad:!0})}});if(o&&o.onLoad&&!o.onLoad.duration)return{animate:o,data:r};const a=o.onLoad&&o.onLoad.before?o.onLoad.before:Hr();return{animate:o,data:r.map(((t,n)=>Object.assign({},t,a(t,n,r)))),clipWidth:0}}(r,0,n),h=(t,n,r,i)=>function(t,n,r,i,o){const a=t&&t.onExit,u=Object.assign({},t,a);let s=r;if(i){t.onEnd=()=>{e({nodesWillExit:!1})};const n=t.onExit&&t.onExit.before?t.onExit.before:Hr();s=r.map(((t,e)=>{const o=(t.key||e).toString();return i[o]?Object.assign({},t,n(t,e,r)):t}))}return{animate:u,data:s}}(i,0,r,t),d=(t,n,r,i)=>o?function(t,n,r,i){const o=t&&t.onEnter,a=Object.assign({},t,o);let u=n;if(r){a.onEnd=()=>{e({nodesWillEnter:!1})};const t=a.onEnter&&a.onEnter.after?a.onEnter.after:Hr();u=n.map(((e,i)=>{const o=qr(e,i);return r[o]?Object.assign({},e,t(e,i,n)):e}))}return{animate:a,data:u}}(i,r,t):function(t,n,r,i,o){let a=t,u=r;if(i){a=Object.assign({},t,{onEnd:()=>{e({nodesShouldEnter:!0})}});const n=t.onEnter&&t.onEnter.before?t.onEnter.before:Hr();u=r.map(((t,e)=>{const o=(t.key||e).toString();return i[o]?Object.assign({},t,n(t,e,r)):t}))}return{animate:a,data:u}}(i,0,r,t),p=function(t,n){const e=t.props.animate;if(!t.type)return{};const r=t.props&&t.props.polar&&t.type.defaultPolarTransitions||t.type.defaultTransitions;if(r){const t=e[n]&&e[n].duration;return void 0!==t?t:r[n]&&r[n].duration}return{}};return function(e,a){const g=Vr(e)||[],y=u()({},t.animate,e.props.animate),m=e.props.polar&&e.type.defaultPolarTransitions||e.type.defaultTransitions;y.onExit=u()({},y.onExit,m&&m.onExit),y.onEnter=u()({},y.onEnter,m&&m.onEnter),y.onLoad=u()({},y.onLoad,m&&m.onLoad);const v=c[a]||c[0];if(!s){const t={duration:void 0!==l.load?l.load:p(e,"onLoad")};return f(0,g,Object.assign({},y,t))}if(r){const t=v&&v.exiting,n=void 0!==l.exit?l.exit:p(e,"onExit"),r=t?{duration:n}:{delay:n};return h(t,0,g,Object.assign({},y,r))}if(i){const t=v&&v.entering,n=void 0!==l.enter?l.enter:p(e,"onEnter"),r=void 0!==l.move?l.move:e.props.animate&&e.props.animate.duration,i={duration:o&&t?n:r};return d(t,0,g,Object.assign({},y,i))}return!n&&y&&y.onExit?function(t,n){const e=t.onEnter&&t.onEnter.after?t.onEnter.after:Hr();return{data:n.map(((t,r)=>Object.assign({},t,e(t,r,n))))}}(y,g):{animate:y,data:g}}}function Zr(){return Zr=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Zr.apply(this,arguments)}class Qr extends o().Component{static displayName="VictoryTransition";static contextType=Lr;constructor(t,n){super(t,n),this.state={nodesShouldLoad:!1,nodesDoneLoad:!1};const e=this.props.children,r=e.props.polar;this.continuous=!r&&e.type&&!0===e.type.continuous,this.timer=this.context.transitionTimer}componentDidMount(){this.setState({nodesShouldLoad:!0})}shouldComponentUpdate(t){return Nn()(this.props,t)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,t),(()=>this.timer.resumeAnimation()))),!0}componentWillUnmount(){this.timer.stop()}getTransitionState(t,n){const{animate:e}=t;if(!e)return{};if(e.parentState)return{oldProps:e.parentState.nodesWillExit?t:null,nextProps:n};const r=o().Children.toArray(t.children),i=o().Children.toArray(n.children),{nodesWillExit:a,nodesWillEnter:u,childrenTransitions:s,nodesShouldEnter:c}=Gr(r,i);return{nodesWillExit:a,nodesWillEnter:u,childrenTransitions:s,nodesShouldEnter:c,oldProps:a?t:null,nextProps:n}}getDomainFromChildren(t,n){const e=t=>t.reduce(((t,r)=>{if(r.type&&A(r.type.getDomain)){const e=r.props&&r.type.getDomain(r.props,n);return e?t.concat(e):t}return r.props&&r.props.children?t.concat(e(o().Children.toArray(r.props.children))):t}),[]),r=o().Children.toArray(t.children)[0],i=r.props||{},a=Array.isArray(i.domain)?i.domain:i.domain&&i.domain[n];if(!i.children&&a)return a;const u=e([r]);return 0===u.length?[0,1]:[Ur(u),Fr(u)]}pickProps(){return this.state&&this.state.nodesWillExit&&this.state.oldProps||this.props}pickDomainProps(t){const n=t.animate?.parentState;return n&&n.nodesWillExit?(this.continuous||n.continuous)&&(n.nextProps||this.state.nextProps)||t:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||t}getClipWidth(t,n){const e=this.transitionProps?this.transitionProps.clipWidth:void 0;return void 0!==e?e:(()=>{const e=M(n.props,"x");return e?Math.abs(e[1]-e[0]):t.width})()}render(){const t=this.pickProps(),n=this.props.animate?.getTransitions?this.props.animate.getTransitions:Kr(t,this.state,(t=>this.setState(t))),e=o().Children.toArray(t.children)[0],r=n(e);this.transitionProps=r;const i={x:this.getDomainFromChildren(this.pickDomainProps(t),"x"),y:this.getDomainFromChildren(t,"y")},a=this.getClipWidth(t,e),s=u()({domain:i,clipWidth:a},r,e.props),l=(t.animationWhitelist||[]).concat(["clipWidth"]),f=l.length?c()(s,l):s;return o().createElement(Ir,Zr({},s.animate,{data:f}),(t=>{if(e.props.groupComponent){const n=this.continuous?o().cloneElement(e.props.groupComponent,{clipWidth:t.clipWidth||0}):e.props.groupComponent;return o().cloneElement(e,u()({animate:null,animating:!0,groupComponent:n},t,s))}return o().cloneElement(e,u()({animate:null,animating:!0},t,s))}))}}var Xr=r(9602),Jr=r.n(Xr),ti=r(1616),ni=r.n(ti),ei=r(4912),ri=r.n(ei);const ii=/^onGlobal(.*)$/;function oi(t,n,e,r){const i=t=>{const r=(()=>{const r=t.reduce(((t,e)=>void 0!==e.target?(Array.isArray(e.target)?e.target.includes(n):`${e.target}`==`${n}`)?t.concat(e):t:t.concat(e)),[]);return void 0!==e&&"parent"!==n?r.filter((t=>{const n=t.eventKey,r=t=>!t||`${t}`==`${e}`;return Array.isArray(n)?n.some((t=>r(t))):r(n)})):r})();return Array.isArray(r)&&r.reduce(((t,n)=>n?Object.assign(t,n.eventHandlers):t),{})},o=(()=>Array.isArray(this.componentEvents)?Array.isArray(t.events)?this.componentEvents.concat(...t.events):this.componentEvents:t.events)(),a=o&&A(r)?r(i(o),n):void 0;if(!t.sharedEvents)return a;const u=t.sharedEvents.getEvents,s=t.sharedEvents.events&&u(i(t.sharedEvents.events),n);return Object.assign({},s,a)}function ai(t,n,e,r){if(_t()(t))return{};const i=r||this.baseProps,o=(t,n)=>{const{childName:e,target:r,key:o}=t,a="props"===n?i:this.state||{},u=null!=e&&a[e]?a[e]:a;return"parent"===o?u.parent:u[o]&&u[o][r]},a=(t,r)=>{const a="parent"===n?t.childName:t.childName||e,u=t.target||n,s=(n,e)=>{const r=this.state||{};if(!A(t.mutation))return r;const a=o({childName:e,key:n,target:u},"props"),s=o({childName:e,key:n,target:u},"state"),c=t.mutation(Object.assign({},a,s),i),l=r[e]||{},f=t=>c?(t=>"parent"===u?Object.assign(t,{[n]:Object.assign(t[n]||{},c)}):Object.assign(t,{[n]:Object.assign(t[n]||{},{[u]:c})}))(t):(t=>(t[n]&&t[n][u]&&delete t[n][u],t[n]&&!Object.keys(t[n]).length&&delete t[n],t))(t);return null!=e?Object.assign(r,{[e]:f(l)}):f(r)},c=n=>{const e=(n=>"parent"===u?"parent":"all"===t.eventKey?i[n]?Object.keys(i[n]).filter((t=>"parent"!==t)):Object.keys(i).filter((t=>"parent"!==t)):void 0===t.eventKey&&"parent"===r?i[n]?Object.keys(i[n]):Object.keys(i):void 0!==t.eventKey?t.eventKey:r)(n);return Array.isArray(e)?e.reduce(((t,e)=>Object.assign(t,s(e,n))),{}):s(e,n)},l="all"===a?Object.keys(i).filter((t=>"parent"!==t)):a;return Array.isArray(l)?l.reduce(((t,n)=>Object.assign(t,c(n))),{}):c(l)},u=(n,e,r,i)=>{const o=t[i](n,e,r,this);if(!_t()(o)){const t=(t=>{const n=t=>A(t.callback)&&t.callback,e=(Array.isArray(t)?t.map((t=>n(t))):[n(t)]).filter((t=>!1!==t));return e.length?()=>e.forEach((t=>t())):void 0})(o);this.setState(((t,n)=>Array.isArray(t)?t.reduce(((t,e)=>Object.assign({},t,a(e,n))),{}):a(t,n))(o,r),t)}};return Object.keys(t).reduce(((t,n)=>(t[n]=u,t)),{})}function ui(t,n,e){const r=this.state||{};return e?r[e]&&r[e][t]&&r[e][t][n]:"parent"===t?r[t]&&r[t][n]||r[t]:r[t]&&r[t][n]}function si(t,n,e,r){const i=(t,n)=>"string"==typeof t[n]?"all"===t[n]||t[n]===r[n]:!!Array.isArray(t[n])&&t[n].map((t=>`${t}`)).includes(r[n]);let o=Array.isArray(t)?t:[t];r.childName&&(o=t.filter((t=>i(t,"childName"))));const a=o.filter((t=>i(t,"target")));if(_t()(a))return;const u=a.filter((t=>i(t,"eventKey")));return _t()(u)?void 0:u.reduce(((t,r)=>{const i=(r&&A(r.mutation)?r.mutation:()=>{})(Object.assign({},n,e));return Object.assign({},t,i)}),{})}function ci(t){const n=t.match(ii);return n&&n[1]&&n[1].toLowerCase()}const li=t=>!w(t._x)&&!w(t._y),fi=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];var hi=r(8999),di=r.n(hi),pi=r(8254),gi=r.n(pi);function yi(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)),o=new Array(i);++r<i;)o[r]=t+r*e;return o}function mi(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function vi(t,n){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof n?this.interpolator(n):this.range(n)}return this}class xi extends Map{constructor(t,n=Mi){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,e]of t)this.set(n,e)}get(t){return super.get(bi(this,t))}has(t){return super.has(bi(this,t))}set(t,n){return super.set(function({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}(this,t),n)}delete(t){return super.delete(function({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}(this,t))}}function bi({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function Mi(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const wi=Symbol("implicit");function Ai(){var t=new xi,n=[],e=[],r=wi;function i(i){let o=t.get(i);if(void 0===o){if(r!==wi)return r;t.set(i,o=n.push(i)-1)}return e[o%e.length]}return i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new xi;for(const r of e)t.has(r)||t.set(r,n.push(r)-1);return i},i.range=function(t){return arguments.length?(e=Array.from(t),i):e.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Ai(n,e).unknown(r)},mi.apply(i,arguments),i}function ki(){var t,n,e=Ai().unknown(void 0),r=e.domain,i=e.range,o=0,a=1,u=!1,s=0,c=0,l=.5;function f(){var e=r().length,f=a<o,h=f?a:o,d=f?o:a;t=(d-h)/Math.max(1,e-s+2*c),u&&(t=Math.floor(t)),h+=(d-h-t*(e-s))*l,n=t*(1-s),u&&(h=Math.round(h),n=Math.round(n));var p=yi(e).map((function(n){return h+t*n}));return i(f?p.reverse():p)}return delete e.unknown,e.domain=function(t){return arguments.length?(r(t),f()):r()},e.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,f()):[o,a]},e.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,u=!0,f()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(u=!!t,f()):u},e.padding=function(t){return arguments.length?(s=Math.min(1,c=+t),f()):s},e.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),f()):s},e.paddingOuter=function(t){return arguments.length?(c=+t,f()):c},e.align=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),f()):l},e.copy=function(){return ki(r(),[o,a]).round(u).paddingInner(s).paddingOuter(c).align(l)},mi.apply(f(),arguments)}function Ei(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Ei(n())},t}function Oi(){return Ei(ki.apply(null,arguments).paddingInner(1))}var ji=Math.sqrt(50),Si=Math.sqrt(10),_i=Math.sqrt(2);function Ci(t,n,e){var r,i,o,a,u=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(a=Ti(t,n,e))||!isFinite(a))return[];if(a>0){let e=Math.round(t/a),r=Math.round(n/a);for(e*a<t&&++e,r*a>n&&--r,o=new Array(i=r-e+1);++u<i;)o[u]=(e+u)*a}else{a=-a;let e=Math.round(t*a),r=Math.round(n*a);for(e/a<t&&++e,r/a>n&&--r,o=new Array(i=r-e+1);++u<i;)o[u]=(e+u)/a}return r&&o.reverse(),o}function Ti(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=ji?10:o>=Si?5:o>=_i?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=ji?10:o>=Si?5:o>=_i?2:1)}function $i(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=ji?i*=10:o>=Si?i*=5:o>=_i&&(i*=2),n<t?-i:i}function Di(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function Ni(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function Li(t){let n,e,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==n(r,r))return o;do{const n=i+o>>>1;e(t[n],r)<0?i=n+1:o=n}while(i<o)}return i}return 2!==t.length?(n=Di,e=(n,e)=>Di(t(n),e),r=(n,e)=>t(n)-e):(n=t===Di||t===Ni?t:Pi,e=t,r=t),{left:i,center:function(t,n,e=0,o=t.length){const a=i(t,n,e,o-1);return a>e&&r(t[a-1],n)>-r(t[a],n)?a-1:a},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==n(r,r))return o;do{const n=i+o>>>1;e(t[n],r)<=0?i=n+1:o=n}while(i<o)}return i}}}function Pi(){return 0}function Ii(t){return null===t?NaN:+t}const Ri=Li(Di),zi=Ri.right;Ri.left,Li(Ii).center;var Fi=zi;function Ui(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function Wi(t){return+t}var Hi=[0,1];function qi(t){return t}function Bi(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function Yi(t,n,e){var r=t[0],i=t[1],o=n[0],a=n[1];return i<r?(r=Bi(i,r),o=e(a,o)):(r=Bi(r,i),o=e(o,a)),function(t){return o(r(t))}}function Vi(t,n,e){var r=Math.min(t.length,n.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<r;)i[a]=Bi(t[a],t[a+1]),o[a]=e(n[a],n[a+1]);return function(n){var e=Fi(t,n,1,r)-1;return o[e](i[e](n))}}function Gi(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ki(){var t,n,e,r,i,o,a=Hi,u=Hi,s=fr,c=qi;function l(){var t,n,e,s=Math.min(a.length,u.length);return c!==qi&&(t=a[0],n=a[s-1],t>n&&(e=t,t=n,n=e),c=function(e){return Math.max(t,Math.min(n,e))}),r=s>2?Vi:Yi,i=o=null,f}function f(n){return null==n||isNaN(n=+n)?e:(i||(i=r(a.map(t),u,s)))(t(c(n)))}return f.invert=function(e){return c(n((o||(o=r(u,a.map(t),or)))(e)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Wi),l()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),l()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),s=Ui,l()},f.clamp=function(t){return arguments.length?(c=!!t||qi,l()):c!==qi},f.interpolate=function(t){return arguments.length?(s=t,l()):s},f.unknown=function(t){return arguments.length?(e=t,f):e},function(e,r){return t=e,n=r,l()}}function Zi(){return Ki()(qi,qi)}var Qi,Xi=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ji(t){if(!(n=Xi.exec(t)))throw new Error("invalid format: "+t);var n;return new to({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 to(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+""}function no(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 eo(t){return(t=no(Math.abs(t)))?t[1]:NaN}function ro(t,n){var e=no(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")}Ji.prototype=to.prototype,to.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};var io={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>ro(100*t,n),r:ro,s:function(t,n){var e=no(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(Qi=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+no(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function oo(t){return t}var ao,uo,so,co=Array.prototype.map,lo=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function fo(t,n,e,r){var i,o=$i(t,n,e);switch((r=Ji(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(eo(n)/3)))-eo(Math.abs(t)))}(o,a))||(r.precision=i),so(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,eo(n)-eo(t))+1}(o,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-eo(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return uo(r)}function ho(t){var n=t.domain;return t.ticks=function(t){var e=n();return Ci(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return fo(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i,o=n(),a=0,u=o.length-1,s=o[a],c=o[u],l=10;for(c<s&&(i=s,s=c,c=i,i=a,a=u,u=i);l-- >0;){if((i=Ti(s,c,e))===r)return o[a]=s,o[u]=c,n(o);if(i>0)s=Math.floor(s/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;s=Math.ceil(s*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function po(){var t=Zi();return t.copy=function(){return Gi(t,po())},mi.apply(t,arguments),ho(t)}function go(t){var n;function e(t){return null==t||isNaN(t=+t)?n:t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=Array.from(n,Wi),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return go(t).unknown(n)},t=arguments.length?Array.from(t,Wi):[0,1],ho(e)}function yo(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(e=r,r=i,i=e,e=o,o=a,a=e),t[r]=n.floor(o),t[i]=n.ceil(a),t}function mo(t){return Math.log(t)}function vo(t){return Math.exp(t)}function xo(t){return-Math.log(-t)}function bo(t){return-Math.exp(-t)}function Mo(t){return isFinite(t)?+("1e"+t):t<0?0:t}function wo(t){return(n,e)=>-t(-n,e)}function Ao(t){const n=t(mo,vo),e=n.domain;let r,i,o=10;function a(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),n=>Math.log(n)/t)}(o),i=function(t){return 10===t?Mo:t===Math.E?Math.exp:n=>Math.pow(t,n)}(o),e()[0]<0?(r=wo(r),i=wo(i),t(xo,bo)):t(mo,vo),n}return n.base=function(t){return arguments.length?(o=+t,a()):o},n.domain=function(t){return arguments.length?(e(t),a()):e()},n.ticks=t=>{const n=e();let a=n[0],u=n[n.length-1];const s=u<a;s&&([a,u]=[u,a]);let c,l,f=r(a),h=r(u);const d=null==t?10:+t;let p=[];if(!(o%1)&&h-f<d){if(f=Math.floor(f),h=Math.ceil(h),a>0){for(;f<=h;++f)for(c=1;c<o;++c)if(l=f<0?c/i(-f):c*i(f),!(l<a)){if(l>u)break;p.push(l)}}else for(;f<=h;++f)for(c=o-1;c>=1;--c)if(l=f>0?c/i(-f):c*i(f),!(l<a)){if(l>u)break;p.push(l)}2*p.length<d&&(p=Ci(a,u,d))}else p=Ci(f,h,Math.min(h-f,d)).map(i);return s?p.reverse():p},n.tickFormat=(t,e)=>{if(null==t&&(t=10),null==e&&(e=10===o?"s":","),"function"!=typeof e&&(o%1||null!=(e=Ji(e)).precision||(e.trim=!0),e=uo(e)),t===1/0)return e;const a=Math.max(1,o*t/n.ticks().length);return t=>{let n=t/i(Math.round(r(t)));return n*o<o-.5&&(n*=o),n<=a?e(t):""}},n.nice=()=>e(yo(e(),{floor:t=>i(Math.floor(r(t))),ceil:t=>i(Math.ceil(r(t)))})),n}function ko(){const t=Ao(Ki()).domain([1,10]);return t.copy=()=>Gi(t,ko()).base(t.base()),mi.apply(t,arguments),t}function Eo(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function Oo(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function jo(t){var n=1,e=t(Eo(n),Oo(n));return e.constant=function(e){return arguments.length?t(Eo(n=+e),Oo(n)):n},ho(e)}function So(){var t=jo(Ki());return t.copy=function(){return Gi(t,So()).constant(t.constant())},mi.apply(t,arguments)}function _o(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Co(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function To(t){return t<0?-t*t:t*t}function $o(t){var n=t(qi,qi),e=1;function r(){return 1===e?t(qi,qi):.5===e?t(Co,To):t(_o(e),_o(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},ho(n)}function Do(){var t=$o(Ki());return t.copy=function(){return Gi(t,Do()).exponent(t.exponent())},mi.apply(t,arguments),t}function No(){return Do.apply(null,arguments).exponent(.5)}function Lo(t){return Math.sign(t)*t*t}function Po(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function Io(){var t,n=Zi(),e=[0,1],r=!1;function i(e){var i=Po(n(e));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return n.invert(Lo(t))},i.domain=function(t){return arguments.length?(n.domain(t),i):n.domain()},i.range=function(t){return arguments.length?(n.range((e=Array.from(t,Wi)).map(Lo)),i):e.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(r=!!t,i):r},i.clamp=function(t){return arguments.length?(n.clamp(t),i):n.clamp()},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return Io(n.domain(),e).round(r).clamp(n.clamp()).unknown(t)},mi.apply(i,arguments),ho(i)}function Ro(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e<n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e<i||void 0===e&&i>=i)&&(e=i)}return e}function zo(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e>n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e>i||void 0===e&&i>=i)&&(e=i)}return e}function Fo(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function Uo(t,n,e=0,r=t.length-1,i){for(i=void 0===i?Fo:function(t=Di){if(t===Di)return Fo;if("function"!=typeof t)throw new TypeError("compare is not a function");return(n,e)=>{const r=t(n,e);return r||0===r?r:(0===t(e,e))-(0===t(n,n))}}(i);r>e;){if(r-e>600){const o=r-e+1,a=n-e+1,u=Math.log(o),s=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*s*(o-s)/o)*(a-o/2<0?-1:1);Uo(t,n,Math.max(e,Math.floor(n-a*s/o+c)),Math.min(r,Math.floor(n+(o-a)*s/o+c)),i)}const o=t[n];let a=e,u=r;for(Wo(t,e,n),i(t[r],o)>0&&Wo(t,e,r);a<u;){for(Wo(t,a,u),++a,--u;i(t[a],o)<0;)++a;for(;i(t[u],o)>0;)--u}0===i(t[e],o)?Wo(t,e,u):(++u,Wo(t,u,r)),u<=n&&(e=u+1),n<=u&&(r=u-1)}return t}function Wo(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function Ho(t,n,e){if(t=Float64Array.from(function*(t,n){if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(r=+r)>=r&&(yield r)}}(t,e)),r=t.length){if((n=+n)<=0||r<2)return zo(t);if(n>=1)return Ro(t);var r,i=(r-1)*n,o=Math.floor(i),a=Ro(Uo(t,o).subarray(0,o+1));return a+(zo(t.subarray(o+1))-a)*(i-o)}}function qo(t,n,e=Ii){if(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,o=Math.floor(i),a=+e(t[o],o,t);return a+(+e(t[o+1],o+1,t)-a)*(i-o)}}function Bo(){var t,n=[],e=[],r=[];function i(){var t=0,i=Math.max(1,e.length);for(r=new Array(i-1);++t<i;)r[t-1]=qo(n,t/i);return o}function o(n){return null==n||isNaN(n=+n)?t:e[Fi(r,n)]}return o.invertExtent=function(t){var i=e.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:n[0],i<r.length?r[i]:n[n.length-1]]},o.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(Di),i()},o.range=function(t){return arguments.length?(e=Array.from(t),i()):e.slice()},o.unknown=function(n){return arguments.length?(t=n,o):t},o.quantiles=function(){return r.slice()},o.copy=function(){return Bo().domain(n).range(e).unknown(t)},mi.apply(o,arguments)}function Yo(){var t,n=0,e=1,r=1,i=[.5],o=[0,1];function a(n){return null!=n&&n<=n?o[Fi(i,n,0,r)]:t}function u(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*e-(t-r)*n)/(r+1);return a}return a.domain=function(t){return arguments.length?([n,e]=t,n=+n,e=+e,u()):[n,e]},a.range=function(t){return arguments.length?(r=(o=Array.from(t)).length-1,u()):o.slice()},a.invertExtent=function(t){var a=o.indexOf(t);return a<0?[NaN,NaN]:a<1?[n,i[0]]:a>=r?[i[r-1],e]:[i[a-1],i[a]]},a.unknown=function(n){return arguments.length?(t=n,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return Yo().domain([n,e]).range(o).unknown(t)},mi.apply(ho(a),arguments)}function Vo(){var t,n=[.5],e=[0,1],r=1;function i(i){return null!=i&&i<=i?e[Fi(n,i,0,r)]:t}return i.domain=function(t){return arguments.length?(n=Array.from(t),r=Math.min(n.length,e.length-1),i):n.slice()},i.range=function(t){return arguments.length?(e=Array.from(t),r=Math.min(n.length,e.length-1),i):e.slice()},i.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return Vo().domain(n).range(e).unknown(t)},mi.apply(i,arguments)}ao=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?oo:(n=co.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=n[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),o.push(t.substring(i-=u,i+u)),!((s+=u+1)>r));)u=n[a=(a+1)%n.length];return o.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?oo:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(co.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var n=(t=Ji(t)).fill,e=t.align,f=t.sign,h=t.symbol,d=t.zero,p=t.width,g=t.comma,y=t.precision,m=t.trim,v=t.type;"n"===v?(g=!0,v="g"):io[v]||(void 0===y&&(y=12),m=!0,v="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var x="$"===h?i:"#"===h&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",b="$"===h?o:/[%p]/.test(v)?s:"",M=io[v],w=/[defgprs%]/.test(v);function A(t){var i,o,s,h=x,A=b;if("c"===v)A=M(t)+A,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:M(Math.abs(t),y),m&&(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)),k&&0==+t&&"+"!==f&&(k=!1),h=(k?"("===f?f:c:"-"===f||"("===f?"":f)+h,A=("s"===v?lo[8+Qi/3]:"")+A+(k&&"("===f?")":""),w)for(i=-1,o=t.length;++i<o;)if(48>(s=t.charCodeAt(i))||s>57){A=(46===s?a+t.slice(i+1):t.slice(i))+A,t=t.slice(0,i);break}}g&&!d&&(t=r(t,1/0));var E=h.length+t.length+A.length,O=E<p?new Array(p-E+1).join(n):"";switch(g&&d&&(t=r(O+t,O.length?p-A.length:1/0),O=""),e){case"<":t=h+t+A+O;break;case"=":t=h+O+t+A;break;case"^":t=O.slice(0,E=O.length>>1)+h+t+A+O.slice(E);break;default:t=O+h+t+A}return u(t)}return y=void 0===y?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),A.toString=function(){return t+""},A}return{format:f,formatPrefix:function(t,n){var e=f(((t=Ji(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(eo(n)/3))),i=Math.pow(10,-r),o=lo[8+r/3];return function(t){return e(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),uo=ao.format,so=ao.formatPrefix;const Go=1e3,Ko=6e4,Zo=36e5,Qo=864e5,Xo=6048e5,Jo=31536e6;var ta=new Date,na=new Date;function ea(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=function(n){return t(n=new Date(+n)),n},i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var a,u=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return u;do{u.push(a=new Date(+e)),n(e,o),t(e)}while(a<e&&e<r);return u},i.filter=function(e){return ea((function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return ta.setTime(+n),na.setTime(+r),t(ta),t(na),Math.floor(e(ta,na))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var ra=ea((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));ra.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?ea((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):ra:null};var ia=ra,oa=(ra.range,ea((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*Go)}),(function(t,n){return(n-t)/Go}),(function(t){return t.getUTCSeconds()}))),aa=oa,ua=(oa.range,ea((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Go)}),(function(t,n){t.setTime(+t+n*Ko)}),(function(t,n){return(n-t)/Ko}),(function(t){return t.getMinutes()}))),sa=ua,ca=(ua.range,ea((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Go-t.getMinutes()*Ko)}),(function(t,n){t.setTime(+t+n*Zo)}),(function(t,n){return(n-t)/Zo}),(function(t){return t.getHours()}))),la=ca,fa=(ca.range,ea((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ko)/Qo),(t=>t.getDate()-1))),ha=fa;function da(t){return ea((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ko)/Xo}))}fa.range;var pa=da(0),ga=da(1),ya=da(2),ma=da(3),va=da(4),xa=da(5),ba=da(6),Ma=(pa.range,ga.range,ya.range,ma.range,va.range,xa.range,ba.range,ea((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),wa=Ma,Aa=(Ma.range,ea((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));Aa.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ea((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};var ka=Aa,Ea=(Aa.range,ea((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Ko)}),(function(t,n){return(n-t)/Ko}),(function(t){return t.getUTCMinutes()}))),Oa=Ea,ja=(Ea.range,ea((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*Zo)}),(function(t,n){return(n-t)/Zo}),(function(t){return t.getUTCHours()}))),Sa=ja,_a=(ja.range,ea((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/Qo}),(function(t){return t.getUTCDate()-1}))),Ca=_a;function Ta(t){return ea((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/Xo}))}_a.range;var $a=Ta(0),Da=Ta(1),Na=Ta(2),La=Ta(3),Pa=Ta(4),Ia=Ta(5),Ra=Ta(6),za=($a.range,Da.range,Na.range,La.range,Pa.range,Ia.range,Ra.range,ea((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}))),Fa=za,Ua=(za.range,ea((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));Ua.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ea((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};var Wa=Ua;function Ha(t,n,e,r,i,o){const a=[[aa,1,Go],[aa,5,5e3],[aa,15,15e3],[aa,30,3e4],[o,1,Ko],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,Zo],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Qo],[r,2,1728e5],[e,1,Xo],[n,1,2592e6],[n,3,7776e6],[t,1,Jo]];function u(n,e,r){const i=Math.abs(e-n)/r,o=Li((([,,t])=>t)).right(a,i);if(o===a.length)return t.every($i(n/Jo,e/Jo,r));if(0===o)return ia.every(Math.max($i(n,e,r),1));const[u,s]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return u.every(s)}return[function(t,n,e){const r=n<t;r&&([t,n]=[n,t]);const i=e&&"function"==typeof e.range?e:u(t,n,e),o=i?i.range(t,+n+1):[];return r?o.reverse():o},u]}Ua.range;const[qa,Ba]=Ha(Wa,Fa,$a,Ca,Sa,Oa),[Ya,Va]=Ha(ka,wa,pa,ha,la,sa);function Ga(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Ka(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Za(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var Qa,Xa,Ja,tu={"-":"",_:" ",0:"0"},nu=/^\s*\d+/,eu=/^%/,ru=/[\\^$*+?|[\]().{}]/g;function iu(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function ou(t){return t.replace(ru,"\\$&")}function au(t){return new RegExp("^(?:"+t.map(ou).join("|")+")","i")}function uu(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function su(t,n,e){var r=nu.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function cu(t,n,e){var r=nu.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function lu(t,n,e){var r=nu.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function fu(t,n,e){var r=nu.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function hu(t,n,e){var r=nu.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function du(t,n,e){var r=nu.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function pu(t,n,e){var r=nu.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function gu(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function yu(t,n,e){var r=nu.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function mu(t,n,e){var r=nu.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function vu(t,n,e){var r=nu.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function xu(t,n,e){var r=nu.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function bu(t,n,e){var r=nu.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function Mu(t,n,e){var r=nu.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function wu(t,n,e){var r=nu.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function Au(t,n,e){var r=nu.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function ku(t,n,e){var r=nu.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function Eu(t,n,e){var r=eu.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Ou(t,n,e){var r=nu.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function ju(t,n,e){var r=nu.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function Su(t,n){return iu(t.getDate(),n,2)}function _u(t,n){return iu(t.getHours(),n,2)}function Cu(t,n){return iu(t.getHours()%12||12,n,2)}function Tu(t,n){return iu(1+ha.count(ka(t),t),n,3)}function $u(t,n){return iu(t.getMilliseconds(),n,3)}function Du(t,n){return $u(t,n)+"000"}function Nu(t,n){return iu(t.getMonth()+1,n,2)}function Lu(t,n){return iu(t.getMinutes(),n,2)}function Pu(t,n){return iu(t.getSeconds(),n,2)}function Iu(t){var n=t.getDay();return 0===n?7:n}function Ru(t,n){return iu(pa.count(ka(t)-1,t),n,2)}function zu(t){var n=t.getDay();return n>=4||0===n?va(t):va.ceil(t)}function Fu(t,n){return t=zu(t),iu(va.count(ka(t),t)+(4===ka(t).getDay()),n,2)}function Uu(t){return t.getDay()}function Wu(t,n){return iu(ga.count(ka(t)-1,t),n,2)}function Hu(t,n){return iu(t.getFullYear()%100,n,2)}function qu(t,n){return iu((t=zu(t)).getFullYear()%100,n,2)}function Bu(t,n){return iu(t.getFullYear()%1e4,n,4)}function Yu(t,n){var e=t.getDay();return iu((t=e>=4||0===e?va(t):va.ceil(t)).getFullYear()%1e4,n,4)}function Vu(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+iu(n/60|0,"0",2)+iu(n%60,"0",2)}function Gu(t,n){return iu(t.getUTCDate(),n,2)}function Ku(t,n){return iu(t.getUTCHours(),n,2)}function Zu(t,n){return iu(t.getUTCHours()%12||12,n,2)}function Qu(t,n){return iu(1+Ca.count(Wa(t),t),n,3)}function Xu(t,n){return iu(t.getUTCMilliseconds(),n,3)}function Ju(t,n){return Xu(t,n)+"000"}function ts(t,n){return iu(t.getUTCMonth()+1,n,2)}function ns(t,n){return iu(t.getUTCMinutes(),n,2)}function es(t,n){return iu(t.getUTCSeconds(),n,2)}function rs(t){var n=t.getUTCDay();return 0===n?7:n}function is(t,n){return iu($a.count(Wa(t)-1,t),n,2)}function os(t){var n=t.getUTCDay();return n>=4||0===n?Pa(t):Pa.ceil(t)}function as(t,n){return t=os(t),iu(Pa.count(Wa(t),t)+(4===Wa(t).getUTCDay()),n,2)}function us(t){return t.getUTCDay()}function ss(t,n){return iu(Da.count(Wa(t)-1,t),n,2)}function cs(t,n){return iu(t.getUTCFullYear()%100,n,2)}function ls(t,n){return iu((t=os(t)).getUTCFullYear()%100,n,2)}function fs(t,n){return iu(t.getUTCFullYear()%1e4,n,4)}function hs(t,n){var e=t.getUTCDay();return iu((t=e>=4||0===e?Pa(t):Pa.ceil(t)).getUTCFullYear()%1e4,n,4)}function ds(){return"+0000"}function ps(){return"%"}function gs(t){return+t}function ys(t){return Math.floor(+t/1e3)}function ms(t){return new Date(t)}function vs(t){return t instanceof Date?+t:+new Date(+t)}function xs(t,n,e,r,i,o,a,u,s,c){var l=Zi(),f=l.invert,h=l.domain,d=c(".%L"),p=c(":%S"),g=c("%I:%M"),y=c("%I %p"),m=c("%a %d"),v=c("%b %d"),x=c("%B"),b=c("%Y");function M(t){return(s(t)<t?d:u(t)<t?p:a(t)<t?g:o(t)<t?y:r(t)<t?i(t)<t?m:v:e(t)<t?x:b)(t)}return l.invert=function(t){return new Date(f(t))},l.domain=function(t){return arguments.length?h(Array.from(t,vs)):h().map(ms)},l.ticks=function(n){var e=h();return t(e[0],e[e.length-1],null==n?10:n)},l.tickFormat=function(t,n){return null==n?M:c(n)},l.nice=function(t){var e=h();return t&&"function"==typeof t.range||(t=n(e[0],e[e.length-1],null==t?10:t)),t?h(yo(e,t)):l},l.copy=function(){return Gi(l,xs(t,n,e,r,i,o,a,u,s,c))},l}function bs(){return mi.apply(xs(Ya,Va,ka,wa,pa,ha,la,sa,aa,Xa).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Ms(){return mi.apply(xs(qa,Ba,Wa,Fa,$a,Ca,Sa,Oa,aa,Ja).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ws(){var t,n,e,r,i,o=0,a=1,u=qi,s=!1;function c(n){return null==n||isNaN(n=+n)?i:u(0===e?.5:(n=(r(n)-t)*e,s?Math.max(0,Math.min(1,n)):n))}function l(t){return function(n){var e,r;return arguments.length?([e,r]=n,u=t(e,r),c):[u(0),u(1)]}}return c.domain=function(i){return arguments.length?([o,a]=i,t=r(o=+o),n=r(a=+a),e=t===n?0:1/(n-t),c):[o,a]},c.clamp=function(t){return arguments.length?(s=!!t,c):s},c.interpolator=function(t){return arguments.length?(u=t,c):u},c.range=l(fr),c.rangeRound=l(Ui),c.unknown=function(t){return arguments.length?(i=t,c):i},function(i){return r=i,t=i(o),n=i(a),e=t===n?0:1/(n-t),c}}function As(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function ks(){var t=ho(ws()(qi));return t.copy=function(){return As(t,ks())},vi.apply(t,arguments)}function Es(){var t=Ao(ws()).domain([1,10]);return t.copy=function(){return As(t,Es()).base(t.base())},vi.apply(t,arguments)}function Os(){var t=jo(ws());return t.copy=function(){return As(t,Os()).constant(t.constant())},vi.apply(t,arguments)}function js(){var t=$o(ws());return t.copy=function(){return As(t,js()).exponent(t.exponent())},vi.apply(t,arguments)}function Ss(){return js.apply(null,arguments).exponent(.5)}function _s(){var t=[],n=qi;function e(e){if(null!=e&&!isNaN(e=+e))return n((Fi(t,e,1)-1)/(t.length-1))}return e.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let e of n)null==e||isNaN(e=+e)||t.push(e);return t.sort(Di),e},e.interpolator=function(t){return arguments.length?(n=t,e):n},e.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},e.quantiles=function(n){return Array.from({length:n+1},((e,r)=>Ho(t,r/n)))},e.copy=function(){return _s(n).domain(t)},vi.apply(e,arguments)}function Cs(t,n){void 0===n&&(n=t,t=fr);for(var e=0,r=n.length-1,i=n[0],o=new Array(r<0?0:r);e<r;)o[e]=t(i,i=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[n](t-n)}}function Ts(){var t,n,e,r,i,o,a,u=0,s=.5,c=1,l=1,f=qi,h=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-n)*(l*t<l*n?r:i),f(h?Math.max(0,Math.min(1,t)):t))}function p(t){return function(n){var e,r,i;return arguments.length?([e,r,i]=n,f=Cs(t,[e,r,i]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([u,s,c]=a,t=o(u=+u),n=o(s=+s),e=o(c=+c),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),l=n<t?-1:1,d):[u,s,c]},d.clamp=function(t){return arguments.length?(h=!!t,d):h},d.interpolator=function(t){return arguments.length?(f=t,d):f},d.range=p(fr),d.rangeRound=p(Ui),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return o=a,t=a(u),n=a(s),e=a(c),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),l=n<t?-1:1,d}}function $s(){var t=ho(Ts()(qi));return t.copy=function(){return As(t,$s())},vi.apply(t,arguments)}function Ds(){var t=Ao(Ts()).domain([.1,1,10]);return t.copy=function(){return As(t,Ds()).base(t.base())},vi.apply(t,arguments)}function Ns(){var t=jo(Ts());return t.copy=function(){return As(t,Ns()).constant(t.constant())},vi.apply(t,arguments)}function Ls(){var t=$o(Ts());return t.copy=function(){return As(t,Ls()).exponent(t.exponent())},vi.apply(t,arguments)}function Ps(){return Ls.apply(null,arguments).exponent(.5)}Qa=function(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,s=t.shortMonths,c=au(i),l=uu(i),f=au(o),h=uu(o),d=au(a),p=uu(a),g=au(u),y=uu(u),m=au(s),v=uu(s),x={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:Su,e:Su,f:Du,g:qu,G:Yu,H:_u,I:Cu,j:Tu,L:$u,m:Nu,M:Lu,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:gs,s:ys,S:Pu,u:Iu,U:Ru,V:Fu,w:Uu,W:Wu,x:null,X:null,y:Hu,Y:Bu,Z:Vu,"%":ps},b={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:Gu,e:Gu,f:Ju,g:ls,G:hs,H:Ku,I:Zu,j:Qu,L:Xu,m:ts,M:ns,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:gs,s:ys,S:es,u:rs,U:is,V:as,w:us,W:ss,x:null,X:null,y:cs,Y:fs,Z:ds,"%":ps},M={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.w=h.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(t,n,e){var r=m.exec(n.slice(e));return r?(t.m=v.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=y.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return k(t,n,e,r)},d:vu,e:vu,f:ku,g:pu,G:du,H:bu,I:bu,j:xu,L:Au,m:mu,M:Mu,p:function(t,n,e){var r=c.exec(n.slice(e));return r?(t.p=l.get(r[0].toLowerCase()),e+r[0].length):-1},q:yu,Q:Ou,s:ju,S:wu,u:cu,U:lu,V:fu,w:su,W:hu,x:function(t,n,r){return k(t,e,n,r)},X:function(t,n,e){return k(t,r,n,e)},y:pu,Y:du,Z:gu,"%":Eu};function w(t,n){return function(e){var r,i,o,a=[],u=-1,s=0,c=t.length;for(e instanceof Date||(e=new Date(+e));++u<c;)37===t.charCodeAt(u)&&(a.push(t.slice(s,u)),null!=(i=tu[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),a.push(r),s=u+1);return a.push(t.slice(s,u)),a.join("")}}function A(t,n){return function(e){var r,i,o=Za(1900,void 0,1);if(k(o,t,e+="",0)!=e.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(n&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Ka(Za(o.y,0,1))).getUTCDay(),r=i>4||0===i?Da.ceil(r):Da(r),r=Ca.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Ga(Za(o.y,0,1))).getDay(),r=i>4||0===i?ga.ceil(r):ga(r),r=ha.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Ka(Za(o.y,0,1)).getUTCDay():Ga(Za(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Ka(o)):Ga(o)}}function k(t,n,e,r){for(var i,o,a=0,u=n.length,s=e.length;a<u;){if(r>=s)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(o=M[i in tu?n.charAt(a++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return x.x=w(e,x),x.X=w(r,x),x.c=w(n,x),b.x=w(e,b),b.X=w(r,b),b.c=w(n,b),{format:function(t){var n=w(t+="",x);return n.toString=function(){return t},n},parse:function(t){var n=A(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",b);return n.toString=function(){return t},n},utcParse:function(t){var n=A(t+="",!0);return n.toString=function(){return t},n}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Xa=Qa.format,Qa.parse,Ja=Qa.utcFormat,Qa.utcParse;const Is=["linear","time","log","sqrt"];function Rs(t){return"function"==typeof t?A(t.copy)&&A(t.domain)&&A(t.range):"string"==typeof t&&Is.includes(t)}function zs(t,n){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[n])}function Fs(t,n){if(!t.data)return"linear";const e=k(t[n]);return Rr(t.data.map((t=>{const r=_()(e(t))?e(t)[n]:e(t);return void 0!==r?r:t[n]})))?"time":"linear"}function Us(t){if(Rs(t)){const r=`scale${e=t,e&&e[0].toUpperCase()+e.slice(1)}`;return n[r]()}var e;return po()}function Ws(t,n){const e=function(t,n){if(!zs(t,n))return;const e=t.scale[n]||t.scale;return Rs(e)?A(e)?e:Us(e):void 0}(t,n);return e?"string"==typeof e?Us(e):e:Us(function(t,n){let e;if(t.domain&&t.domain[n]?e=t.domain[n]:t.domain&&Array.isArray(t.domain)&&(e=t.domain),e)return Rr(e)?"time":"linear"}(t,n)||Fs(t,n))}function Hs(t,n){return function(t,n){if(!zs(t,n))return;const e=t.scale[n]||t.scale;return"string"==typeof e?e:Bs(e)}(t,n)||Fs(t,n)}const qs=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function Bs(t){if("string"==typeof t)return t;const n=qs.filter((n=>void 0!==t[n.method]))[0];return n?n.name:void 0}function Ys(t){return!(!t||!t["@@__IMMUTABLE_ITERABLE__@@"])}function Vs(t,n){return Ys(t)?t.reduce(((t,e,r)=>{let i=e;return n&&n[r]&&(i=Vs(e)),t[r]=i,t}),function(t){return!(!t||!t["@@__IMMUTABLE_LIST__@@"])}(t)?[]:{}):t}function Gs(t){return Ys(n=t)||function(t){return!(!t||!t["@@__IMMUTABLE_RECORD__@@"])}(n)?Vs(t,{errorX:!0,errorY:!0}):t;var n}function Ks(t,n){const e=(_()(t.domain)?t.domain[n]:t.domain)||Ws(t,n).domain(),r=t.samples||1,i=Math.max(...e),o=Math.min(...e),a=function(t,n,e){const r=n?t:0;let i=n||t;i||(i=0);const o=i-r,a=Math.abs(o),u=o/a||1,s=e||1,c=Math.max(Math.ceil(a/s),0);return Array.from(Array(c),((t,n)=>r+n*u*s))}(o,i,(i-o)/r);return a[a.length-1]===i?a:a.concat(i)}function Zs(t,n,e){if(void 0===e&&(e="ascending"),!n)return t;let r=n;"x"!==n&&"y"!==n||(r=`_${n}`);const i="ascending"===e?"asc":"desc";return ye()(t,r,i)}function Qs(t,n){const e=function(t,n){const{tickValues:e,tickFormat:r}=t;let i;return i=e&&(Array.isArray(e)||e[n])?e[n]||e:r&&Array.isArray(r)?r:[],i.filter((t=>"string"==typeof t))}(t,n),r=nc(t,n),i=function(t,n){if(!Array.isArray(t.data)&&!Ys(t.data))return[];const e=k(void 0===t[n]?n:t[n]);return Zs(t.data.reduce(((t,n)=>(t.push(Gs(n)),t)),[]),t.sortKey,t.sortOrder).reduce(((t,n)=>{const r=Gs(n);return t.push(e(r)),t}),[]).filter((t=>"string"==typeof t)).reduce(((t,n)=>(null!=n&&-1===t.indexOf(n)&&t.push(n),t)),[])}(t,n),o=Jr()([...e,...r,...i]);return 0===o.length?null:o.reduce(((t,n,e)=>(t[n]=e+1,t)),{})}function Xs(t,n,e){if(!Array.isArray(t)&&!Ys(t)||function(t){return Ys(t)?t.size:t.length}(t)<1)return[];const r=["x","y","y0"],i=(e=Array.isArray(e)?e:r).reduce(((t,e)=>{var r;return t[e]=k(void 0!==n[r=e]?n[r]:r),t}),{}),o=gi()(e,r)&&"_x"===n.x&&"_y"===n.y&&"_y0"===n.y0;let a;!1===o&&(a={x:-1!==e.indexOf("x")?Qs(n,"x"):void 0,y:-1!==e.indexOf("y")?Qs(n,"y"):void 0,y0:-1!==e.indexOf("y0")?Qs(n,"y"):void 0});const u=o?t:t.reduce(((t,n,r)=>{const o=Gs(n),u={x:r,y:o},s=e.reduce(((t,n)=>{const e=i[n](o),r=void 0!==e?e:u[n];return void 0!==r&&("string"==typeof r&&a[n]?(t[`${n}Name`]=r,t[`_${n}`]=a[n][r]):t[`_${n}`]=r),t}),{}),c=Object.assign({},s,o);return _t()(c)||t.push(c),t}),[]),s=function(t,n){const e=1/Number.MAX_SAFE_INTEGER,r={x:Hs(n,"x"),y:Hs(n,"y")};if("log"!==r.x&&"log"!==r.y)return t;const i=(t,n)=>"log"!==r[n]||0!==t[`_${n}`];return t.map((t=>i(t,"x")&&i(t,"y")&&i(t,"y0")?t:(t=>{const n=i(t,"x")?t._x:e,r=i(t,"y")?t._y:e,o=i(t,"y0")?t._y0:e;return Object.assign({},t,{_x:n,_y:r,_y0:o})})(t)))}(Zs(u,n.sortKey,n.sortOrder),n);return function(t,n){const e=!!t.eventKey,r=A(i=t.eventKey)?i:null==i?()=>{}:f()(i);var i;return n.map(((t,n)=>{if(void 0!==t.eventKey)return t;if(e){const e=r(t,n);return void 0!==e?Object.assign({eventKey:e},t):t}return t}))}(n,s)}function Js(t,n){return t.categories&&!Array.isArray(t.categories)?t.categories[n]:t.categories}function tc(t){return t.data?Xs(t.data,t):Xs(function(t){const n=Ks(t,"x"),e=Ks(t,"y");return n.map(((t,n)=>({x:t,y:e[n]})))}(t),t)}function nc(t,n){if(!t.categories)return[];const e=Js(t,n),r=e&&e.filter((t=>"string"==typeof t));return r?r.filter((t=>void 0!==t)):[]}var ec=r(4295),rc=r.n(ec),ic=r(2829),oc=r.n(ic);function ac(t,n,e){void 0===e&&(e="min");const r=t=>"max"===e?Math.max(...t):Math.min(...t),i="max"===e?-1/0:1/0;let o=!1;const a=t.flat().reduce(((t,e)=>{const i=void 0!==e[`_${n}0`]?e[`_${n}0`]:e[`_${n}`],a=void 0!==e[`_${n}1`]?e[`_${n}1`]:e[`_${n}`],u=r([i,a]);return o=o||i instanceof Date||a instanceof Date,r([t,u])}),i);return o?new Date(a):a}function uc(t,n,e){return function(t,n,e){return"log"!==Hs(n,e)?t:(t=>{const n=t[0]<0||t[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER;return[0===t[0]?n:t[0],0===t[1]?n:t[1]]})(t)}(function(t,n,e){if(!n.domainPadding)return t;const r=dc(n,e),i=hc(n,e),o=function(t,n){const e=t=>Array.isArray(t)?{left:t[0],right:t[1]}:{left:t,right:t};return _()(t.domainPadding)?e(t.domainPadding[n]):e(t.domainPadding)}(n,e);if(!o.left&&!o.right)return t;const a=Ur(t),u=Fr(t),s=function(t,n){return n?"x"===t?"y":"x":t}(e,n.horizontal),c=M(n,s),l=Math.abs(c[0]-c[1]),f=Math.max(l-o.left-o.right,1),h=Math.abs(u.valueOf()-a.valueOf())/f*l,d=h*o.left/l,p=h*o.right/l;let g={min:a.valueOf()-d,max:u.valueOf()+p};const y=_()(n.singleQuadrantDomainPadding)?n.singleQuadrantDomainPadding[e]:n.singleQuadrantDomainPadding,m=(t,n)=>"min"===n&&a>=0&&t<=0||"max"===n&&u<=0&&t>=0?0:t;if((a>=0&&g.min<=0||u<=0&&g.max>=0)&&!1!==y){const t={left:Math.abs(u-a)*o.left/l,right:Math.abs(u-a)*o.right/l},n={min:m(a.valueOf()-t.left,"min"),max:m(u.valueOf()+t.right,"max")},e={left:Math.abs(n.max-n.min)*o.left/l,right:Math.abs(n.max-n.min)*o.right/l};g={min:m(a.valueOf()-e.left,"min"),max:m(u.valueOf()+e.right,"max")}}const v={min:void 0!==r?r:g.min,max:void 0!==i?i:g.max};return a instanceof Date||u instanceof Date?cc(new Date(v.min),new Date(v.max)):cc(v.min,v.max)}(t,n,e),n,e)}function sc(t,n,e){const r=e||tc(t),{polar:i,startAngle:o=0,endAngle:a=360}=t,u=dc(t,n),s=hc(t,n);if(r.length<1)return void 0!==u&&void 0!==s?cc(u,s):void 0;const c=cc(void 0!==u?u:ac(r,n,"min"),void 0!==s?s:ac(r,n,"max"));return i&&"x"===n&&360===Math.abs(o-a)?pc(c,function(t,n){const e=`_${n}`;return t.flat().map((t=>t[e]&&void 0!==t[e][1]?t[e][1]:t[e]))}(r,n)):c}function cc(t,n){return Number(t)===Number(n)?(t=>{const n=0===t?2*Math.pow(10,-10):Math.pow(10,-10),e=t instanceof Date?new Date(Number(t)-1):Number(t)-n,r=t instanceof Date?new Date(Number(t)+1):Number(t)+n;return 0===t?[0,r]:[e,r]})(n):[t,n]}function lc(t,n){const e=dc(t,n),r=hc(t,n);return _()(t.domain)&&t.domain[n]?t.domain[n]:Array.isArray(t.domain)?t.domain:void 0!==e&&void 0!==r?cc(e,r):void 0}function fc(t,n){const e=lc(t,n);if(e)return e;const r=tc(t),i=r.reduce(((t,n)=>n._y0<t?n._y0:t),1/0);return function(t,n){const e=A(t)?t:sc,r=A(n)?n:uc;return(t,n)=>{const i=lc(t,n);if(i)return r(i,t,n);const o=Js(t,n),a=o?function(t,n,e){const r=e||Js(t,n),{polar:i,startAngle:o=0,endAngle:a=360}=t;if(!r)return;const u=dc(t,n),s=hc(t,n),c=(d=r,Array.isArray(d)&&d.some((t=>"string"==typeof t))?nc(t,n):[]),l=0===c.length?null:c.reduce(((t,n,e)=>(t[n]=e+1,t)),{}),f=l?r.map((t=>l[t])):r,h=cc(void 0!==u?u:Ur(f),void 0!==s?s:Fr(f));var d;return i&&"x"===n&&360===Math.abs(o-a)?pc(h,f):h}(t,n,o):e(t,n);return a?r(a,t,n):void 0}}((()=>sc(t,n,r)),(e=>uc((e=>{if("x"===n)return e;const r=i!==1/0?i:0,o=hc(t,n),a=dc(t,n),u=void 0!==o?o:Fr(e,r);return cc(void 0!==a?a:Ur(e,r),u)})(e),t,n)))(t,n)}function hc(t,n){return _()(t.maxDomain)&&void 0!==t.maxDomain[n]?t.maxDomain[n]:"number"==typeof t.maxDomain||rc()(t.maxDomain)?t.maxDomain:void 0}function dc(t,n){return _()(t.minDomain)&&void 0!==t.minDomain[n]?t.minDomain[n]:"number"==typeof t.minDomain||rc()(t.minDomain)?t.minDomain:void 0}function pc(t,n){const e=oc()(n.sort(((t,n)=>t-n))),r=e[1]-e[0];return[t[0],t[1]+r]}var gc=Array.prototype,yc=gc.slice;function mc(t){return()=>t}function vc(t,n){let e,r;if(void 0===n)for(const n of t)null!=n&&(void 0===e?n>=n&&(e=r=n):(e>n&&(e=n),r<n&&(r=n)));else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(void 0===e?o>=o&&(e=r=o):(e>o&&(e=o),r<o&&(r=o)))}return[e,r]}function xc(t){return t}function bc(t){return Math.ceil(Math.log(function(t,n){let e=0;for(let n of t)null!=n&&(n=+n)>=n&&++e;return e}(t))/Math.LN2)+1}gc.map;const Mc=(t=>{let n,e,r=!1;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];if(r&&Nn()(n,o))return e;const u=t(...o);return r=!0,e=u,n=o,u}})((t=>{let{data:n=[],x:e,bins:r}=t;if(!(n&&n.length||Array.isArray(r)))return[];const i=(t=>{let{data:n,bins:e,x:r}=t;const i=k(r||"x"),o=n?.some((t=>i(t)instanceof Date))||!1,a=Array.isArray(e)&&e.some((t=>t instanceof Date));return o||a})({data:n,bins:r,x:e}),o=(t=>{let{data:n,x:e,bins:r,dataOrBinsContainsDates:i}=t;const o=k(e||"x"),a=function(){var t=xc,n=vc,e=bc;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a,u=r.length,s=new Array(u);for(i=0;i<u;++i)s[i]=t(r[i],i,r);var c=n(s),l=c[0],f=c[1],h=e(s,l,f);if(!Array.isArray(h)){const t=f,e=+h;if(n===vc&&([l,f]=function(t,n,e){let r;for(;;){const i=Ti(t,n,e);if(i===r||0===i||!isFinite(i))return[t,n];i>0?(t=Math.floor(t/i)*i,n=Math.ceil(n/i)*i):i<0&&(t=Math.ceil(t*i)/i,n=Math.floor(n*i)/i),r=i}}(l,f,e)),(h=Ci(l,f,e))[0]<=l&&(a=Ti(l,f,e)),h[h.length-1]>=f)if(t>=f&&n===vc){const t=Ti(l,f,e);isFinite(t)&&(t>0?f=(Math.floor(f/t)+1)*t:t<0&&(f=(Math.ceil(f*-t)+1)/-t))}else h.pop()}for(var d=h.length;h[0]<=l;)h.shift(),--d;for(;h[d-1]>f;)h.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)(p=g[i]=[]).x0=i>0?h[i-1]:l,p.x1=i<d?h[i]:f;if(isFinite(a)){if(a>0)for(i=0;i<u;++i)null!=(o=s[i])&&l<=o&&o<=f&&g[Math.min(d,Math.floor((o-l)/a))].push(r[i]);else if(a<0)for(i=0;i<u;++i)if(null!=(o=s[i])&&l<=o&&o<=f){const t=Math.floor((l-o)*a);g[Math.min(d,t+(h[t]<=o))].push(r[i])}}else for(i=0;i<u;++i)null!=(o=s[i])&&l<=o&&o<=f&&g[Fi(h,o,0,d)].push(r[i]);return g}return r.value=function(n){return arguments.length?(t="function"==typeof n?n:mc(n),r):t},r.domain=function(t){return arguments.length?(n="function"==typeof t?t:mc([t[0],t[1]]),r):n},r.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?mc(yc.call(t)):mc(t),r):e},r}().value(o),u=(i?bs():po()).domain(vc(n,o)).nice();return Array.isArray(r)?(a.domain([r[0],r[r.length-1]]),a.thresholds(r.slice(1,r.length-1)),a):Number.isInteger(r)?(a.domain(u.domain()),a.thresholds(r),a):i?(a.domain(u.domain()),a.thresholds(u.ticks()),a):(a.domain(u.domain()),a)})({data:n,x:e,bins:r,dataOrBinsContainsDates:i});return[...o(n)].filter((t=>{let{x0:n,x1:e}=t;return n instanceof Date&&e instanceof Date?new Date(n).getTime()!==new Date(e).getTime():n!==e})).map((t=>{const n=i?new Date(t.x0):t.x0||0,e=i?new Date(t.x1):t.x1||0;return{x0:n,x1:e,x:i?new Date((n.getTime()+e.getTime())/2):(n+e)/2,y:t.length,binnedData:[...t]}}))})),wc=t=>{const{bins:n,data:e,x:r}=t,i=e?.some((t=>{let{_y:n}=t;return!w(n)})),o=i?e:Mc({data:e,x:r,bins:n});return tc({...t,data:o,x:"x"})},Ac=(t,n)=>{const e=wc(t);if(!e.length)return[0,1];if("x"===n){const n=e[0],r=e[e.length-1];return fc({...t,data:[{x:n.x0},{x:r.x1}],x:"x"},"x")}return t.data?.length?fc({...t,data:e},"y"):[0,1]},kc=(t,n)=>{const e=E(t,n,"histogram"),r=Object.assign({},e,(t=>{const n=function(t,n){const{theme:e={},labelComponent:r}=t,i=e[n]&&e[n].style||{};if(!y(r))return i;const o=e.tooltip&&e.tooltip.style||{},a=u()({},o,i.labels);return u()({},{labels:a},i)}(t,"histogram"),e=function(t,n){const e="100%",r="100%";if(!t)return u()({parent:{height:r,width:e}},n);const{data:i,labels:o,parent:a}=t,s=n&&n.parent||{},c=n&&n.labels||{},l=n&&n.data||{};return{parent:u()({},a,s,{width:e,height:r}),labels:u()({},o,c),data:u()({},i,l)}}(t.style,n),r=t.range||{x:M(t,"x"),y:M(t,"y")},i={x:Ac(t,"x"),y:Ac(t,"y")};let o=wc(t);return o=function(t,n,e){const r=t=>void 0!==t,i=Ur(n.x),o=Fr(n.x),a=Ur(n.y),u=Fr(n.y),s=t=>n=>r(n)&&n<t,c=t=>n=>r(n)&&n>t,l=s(i),f=s(a),h=c(o),d=c(u);return t.map((t=>{let{_x:n,_y:e,_y0:i,_y1:o}=t;(l(n)||h(n))&&(n=null);const s=r(i)?i:0,c=r(o)?o:e;return r(c)?(r(s)||!f(c)&&!d(c)||(e=null),(f(s)&&f(c)||d(s)&&d(c))&&(e=i=o=null),f(s)&&!f(c)&&(i=a),d(s)&&!d(c)&&(i=u),Object.assign({},t,ni()({_x:n,_y:e,_y0:i,_y1:o},di()))):t}))}(o,i),{style:e,data:o,scale:{x:Ws(t,"x").domain(i.x).range(t.horizontal?r.y:r.x),y:Ws(t,"y").domain(i.y).range(t.horizontal?r.x:r.y)},domain:i}})(e)),{binSpacing:i,cornerRadius:o,data:a,domain:s,events:c,height:l,horizontal:f,padding:h,scale:d,sharedEvents:g,standalone:m,style:v,theme:x,width:b,labels:A,name:k,getPath:O,disableInlineStyles:j}=r,S={parent:{horizontal:f,domain:s,scale:d,width:b,height:l,data:a,standalone:m,name:k,theme:x,padding:h,style:v.parent}},_=t=>{const n=d.x(t.x0),e=d.x(t.x1);return Math.abs(e-n)};return a.reduce(((t,n,e)=>{const u=w(n.eventKey)?e:n.eventKey,{x:s,y:h,y0:y,x0:m}=((t,n)=>{const e=e=>{let r="log"===Bs(t.scale[e])?1/Number.MAX_SAFE_INTEGER:0;const i=Ur(t.domain[e]),o=Fr(t.domain[e]);return i<0&&o<=0?r=o:i>=0&&o>0&&(r=i),n[`_${e}`]instanceof Date?new Date(r):r},r=void 0!==n._y0?n._y0:e("y"),i=void 0!==n._x0?n._x0:e("x");return p(t,Object.assign({},n,{_y0:r,_x0:i}))})(r,n),x=(t=>i?_(t)-i:_(t))(n),M={alignment:"middle",barWidth:x,cornerRadius:o,data:a,datum:n,horizontal:f,index:e,scale:d,style:j?{}:v.data,width:b,height:l,x:s,y:h,y0:y,x0:m,getPath:O,disableInlineStyles:j};t[u]={data:M};return(null!=It(r,n,e)||A&&(c||g))&&(t[u].labels=zt(r,e)),t}),S)},Ec={width:450,height:300,padding:50},Oc=[];class jc extends o().Component{static animationWhitelist=["data","domain","height","padding","style","width"];static displayName="VictoryHistogram";static role="histogram";static defaultTransitions={onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})},onExit:{duration:500,before:()=>({_y:0,yOffset:0})},onEnter:{duration:500,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})}};static getFormattedData(){return Mc(...arguments)}static defaultProps={containerComponent:o().createElement(jt,null),data:Oc,dataComponent:o().createElement(pt,null),groupComponent:o().createElement("g",{role:"presentation"}),labelComponent:o().createElement(pn,null),samples:50,sortOrder:"ascending",standalone:!0,theme:$n};static getDomain(t,n){return Ac(t,n)}static getData(t){return wc(t)}static getBaseProps(t){return kc(t,Ec)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=jc,r=E(this.props,Ec,n);if(this.shouldAnimate())return this.animateComponent(r,t);const i=this.renderData(r);return((t,n)=>e.cloneElement(t,bt(n)))(r.standalone?this.renderContainer(r.containerComponent,i):i,r)}}const Sc=(_c=jc,void 0===Cc&&(Cc={}),class extends _c{constructor(t){super(t),this.cacheValues(this.getCalculatedValues(t))}state={};getEventState=ui.bind(this);getScopedEvents=ai.bind(this);getEvents=(t,n,e)=>oi.call(this,t,n,e,this.getScopedEvents);externalMutations=this.getExternalMutations(this.props);calculatedState=this.getStateChanges(this.props);globalEvents={};prevGlobalEventKeys=[];boundGlobalEvents={};shouldComponentUpdate(t){const n=this.getExternalMutations(t),e=this.props.animating||this.props.animate,r=!Nn()(n,this.externalMutations);if(e||r)return this.cacheValues(this.getCalculatedValues(t)),this.externalMutations=n,this.applyExternalMutations(t,n),!0;const i=this.getStateChanges(t);return Nn()(this.calculatedState,i)?!Nn()(this.props,t)&&(this.cacheValues(this.getCalculatedValues(t)),!0):(this.cacheValues(this.getCalculatedValues(t)),!0)}componentDidMount(){const t=Object.keys(this.globalEvents);t.forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=t}componentDidUpdate(t){const n=this.getStateChanges(t);this.calculatedState=n;const e=Object.keys(this.globalEvents);zr(this.prevGlobalEventKeys,e).forEach((t=>this.removeGlobalListener(t))),zr(e,this.prevGlobalEventKeys).forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=e}componentWillUnmount(){this.prevGlobalEventKeys.forEach((t=>this.removeGlobalListener(t)))}addGlobalListener(t){const n=n=>{const e=this.globalEvents[t];return e&&e((t=>Object.assign(t,{nativeEvent:t}))(n))};this.boundGlobalEvents[t]=n,window.addEventListener(ci(t),n)}removeGlobalListener(t){window.removeEventListener(ci(t),this.boundGlobalEvents[t])}getStateChanges(t){if(!this.hasEvents)return{};const n=(t,n)=>{const e=u()({},this.getEventState(t,n),this.getSharedEventState(t,n));return _t()(e)?void 0:e};return(Cc.components||fi).map((e=>{if(t.standalone||"parent"!==e.name)return void 0!==e.index?n(e.index,e.name):this.dataKeys.map((t=>n(t,e.name))).filter(Boolean)})).filter(Boolean)}applyExternalMutations(t,n){if(!_t()(n)){const e=t.externalEventMutations.reduce(((t,n)=>A(n.callback)?t.concat(n.callback):t),[]),r=e.length?()=>{e.forEach((t=>t()))}:void 0;this.setState(n,r)}}getCalculatedValues(t){const{sharedEvents:n}=t,e=function(t,n){const e=Array.isArray(n)&&n.reduce(((n,e)=>{const r=t[e],i=r&&r.type&&r.type.defaultEvents,o=A(i)?i(r.props):i;return Array.isArray(o)?n.concat(...o):n}),[]);return e&&e.length?e:void 0}(t,_c.expectedComponents),r=n&&A(n.getEventState)?n.getEventState:()=>{},i=this.getBaseProps(t,r);return{componentEvents:e,getSharedEventState:r,baseProps:i,dataKeys:Object.keys(i).filter((t=>"parent"!==t)),hasEvents:t.events||t.sharedEvents||e,events:this.getAllEvents(t)}}getExternalMutations(t){const{sharedEvents:n,externalEventMutations:e}=t;return _t()(e)||n?void 0:function(t,n,e,r){return void 0===n&&(n={}),void 0===e&&(e={}),Object.keys(n).reduce(((i,o)=>{const a=e[o]||{},u=n[o]||{};if("parent"===o){const n=si(t,u,a,{eventKey:o,target:"parent"});i[o]=void 0!==n?Object.assign({},a,n):a}else{const n=Jr()(Object.keys(u).concat(Object.keys(a)));i[o]=n.reduce(((n,e)=>{const i={eventKey:o,target:e,childName:r},s=si(t,u[e],a[e],i);return n[e]=void 0!==s?Object.assign({},a[e],s):a[e],ri()(n,(t=>!_t()(t)))}),{})}return ri()(i,(t=>!_t()(t)))}),{})}(e,this.baseProps,this.state)}cacheValues(t){Object.keys(t).forEach((n=>{this[n]=t[n]}))}getBaseProps(t,n){const e=(n||this.getSharedEventState.bind(this))("parent","parent"),r=this.getEventState("parent","parent"),i=u()({},r,e),o=i.parentControlledProps,a=o?c()(i,o):{},s=u()({},a,t);return"function"==typeof _c.getBaseProps?_c.getBaseProps(s):{}}getAllEvents(t){return Array.isArray(this.componentEvents)?Array.isArray(t.events)?this.componentEvents.concat(...t.events):this.componentEvents:t.events}getComponentProps(t,n,e){const r=this.props.name||_c.role,i=this.dataKeys&&this.dataKeys[e]||e,o=`${r}-${n}-${i}`,a=this.baseProps[i]&&this.baseProps[i][n]||this.baseProps[i];if(!a&&!this.hasEvents)return;const s=t&&"object"==typeof t&&"props"in t?t.props:void 0;if(this.hasEvents){const t=this.getEvents(this.props,n,i),r=u()({index:e,key:o},this.getEventState(i,n),this.getSharedEventState(i,n),s,a,{id:o}),c=u()({},function(t,n,e){return t?Object.keys(t).reduce(((r,i)=>(r[i]=r=>t[i](r,e,n,i),r)),{}):{}}(t,i,r),r.events);return Object.assign({},r,{events:c})}return u()({index:e,key:o},s,a,{id:o})}renderContainer(t,n){const e=t.type&&"container"===t.type.role?this.getComponentProps(t,"parent","parent"):{};var r;return e.events&&(this.globalEvents=(r=e.events,ri()(r,((t,n)=>ii.test(n)))),e.events=(t=>ni()(t,((t,n)=>ii.test(n))))(e.events)),o().cloneElement(t,e,n)}animateComponent(t,n){const e="object"==typeof t.animate&&t.animate?.animationWhitelist||n,r=this.constructor;return o().createElement(Qr,{animate:t.animate,animationWhitelist:e},o().createElement(r,t))}renderContinuousData(t){const{dataComponent:n,labelComponent:e,groupComponent:r}=t,i=this.dataKeys.filter((t=>"all"!==t)),a=i.reduce(((t,n)=>{let r=t;const i=this.getComponentProps(e,"labels",n);return i&&void 0!==i.text&&null!==i.text&&(r=r.concat(o().cloneElement(e,i))),r}),[]),u=this.getComponentProps(n,"data","all"),s=[o().cloneElement(n,u),...a];return this.renderContainer(r,s)}renderData(t,n){void 0===n&&(n=li);const{dataComponent:e,labelComponent:r,groupComponent:i}=t,a=[...this.dataKeys.reduce(((t,r,i)=>{const a=this.getComponentProps(e,"data",i);return n(a.datum)&&t.push(o().cloneElement(e,a)),t}),[]),...this.dataKeys.map(((t,n)=>{const e=this.getComponentProps(r,"labels",n);if(void 0!==e.text&&null!==e.text)return o().cloneElement(r,e)})).filter(Boolean)];return this.renderContainer(i,a)}});var _c,Cc}(),i}()}));
|
|
2
2
|
//# sourceMappingURL=victory-histogram.min.js.map
|