victory-chart 36.9.2 → 37.0.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-chart.js +4772 -6328
- package/dist/victory-chart.min.js +1 -1
- package/es/helper-methods.js +109 -113
- package/es/victory-chart.js +65 -81
- package/lib/helper-methods.js +109 -128
- package/lib/index.js +0 -2
- package/lib/victory-chart.js +65 -104
- package/package.json +5 -5
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryChart=e(require("react")):t.VictoryChart=e(t.React)}(self,(t=>(()=>{var e={2516:(t,e)=>{function n(t,e){var n=[],r=[];return null==e&&(e=function(t,e){return n[0]===e?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(e)).join(".")+"]"}),function(o,i){if(n.length>0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?r.splice(a,1/0,o):r.push(o),~n.indexOf(i)&&(i=e.call(this,o,i))}else n.push(i);return null==t?i:t.call(this,o,i)}}(t.exports=function(t,e,r,o){return JSON.stringify(t,n(e,o),r)}).getSerialize=n},503:(t,e,n)=>{var r=n(1171),o=n(7838),i=n(4859),a=n(4073),u=n(8541);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},3273:(t,e,n)=>{var r=n(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},8708:(t,e,n)=>{var r=n(1171),o=n(7838),i=n(4859),a=n(4073),u=n(8541);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},2596:(t,e,n)=>{var r=n(2373).Symbol;t.exports=r},6082:t=>{t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},6649:t=>{t.exports=function(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];e(r,a,n(a),t)}return r}},5510:(t,e,n)=>{var r=n(6123);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},9955:t=>{t.exports=function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}},8644:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},9559:t=>{t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},1634:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},4132:(t,e,n)=>{var r=n(8347),o=n(788),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},3162:(t,e,n)=>{var r=n(788);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},4508:t=>{t.exports=function(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];e(r,a,n(a),t)}return r}},8347:(t,e,n)=>{var r=n(5525);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},6457:(t,e,n)=>{var r=n(9559),o=n(3608);t.exports=function t(e,n,i,a,u){var c=-1,l=e.length;for(i||(i=o),u||(u=[]);++c<l;){var s=e[c];n>0&&i(s)?n>1?t(s,n-1,i,a,u):r(u,s):a||(u[u.length]=s)}return u}},4432:(t,e,n)=>{var r=n(9026),o=n(3110);t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},563:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},6776:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},6123:t=>{t.exports=function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}},7537:(t,e,n)=>{var r=n(563),o=n(3474);t.exports=function(t){return o(t)&&"[object Date]"==r(t)}},9070:(t,e,n)=>{var r=n(7028),o=n(3474);t.exports=function t(e,n,i,a,u){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!=e&&n!=n:r(e,n,i,a,t,u))}},7028:(t,e,n)=>{var r=n(8708),o=n(8705),i=n(2813),a=n(6682),u=n(9667),c=n(163),l=n(4801),s=n(4289),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,y,g,v){var m=c(t),b=c(e),x=m?p:u(t),O=b?p:u(e),w=(x=x==f?d:x)==d,j=(O=O==f?d:O)==d,A=x==O;if(A&&l(t)){if(!l(e))return!1;m=!0,w=!1}if(A&&!w)return v||(v=new r),m||s(t)?o(t,e,n,y,g,v):i(t,e,x,n,y,g,v);if(!(1&n)){var k=w&&h.call(t,"__wrapped__"),E=j&&h.call(e,"__wrapped__");if(k||E){var M=k?t.value():t,S=E?e.value():e;return v||(v=new r),g(M,S,n,y,v)}}return!!A&&(v||(v=new r),a(t,e,n,y,g,v))}},9548:(t,e,n)=>{var r=n(8708),o=n(9070);t.exports=function(t,e,n,i){var a=n.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=n[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<u;){var s=(l=n[a])[0],f=t[s],p=l[1];if(c&&l[2]){if(void 0===f&&!(s in t))return!1}else{var d=new r;if(i)var h=i(f,p,s,t,e,d);if(!(void 0===h?o(p,f,3,i,d):h))return!1}}return!0}},3472:(t,e,n)=>{var r=n(758),o=n(5223),i=n(5346),a=n(163),u=n(8532);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):r(t):u(t)}},7190:(t,e,n)=>{var r=n(5125)(Object.keys,Object);t.exports=r},383:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},758:(t,e,n)=>{var r=n(9548),o=n(597),i=n(6878);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},5223:(t,e,n)=>{var r=n(9070),o=n(9201),i=n(5066),a=n(726),u=n(5385),c=n(6878),l=n(3110);t.exports=function(t,e){return a(t)&&u(e)?c(l(t),e):function(n){var a=o(n,t);return void 0===a&&a===e?i(n,t):r(e,a,3)}}},8245:(t,e,n)=>{var r=n(8644),o=n(4432),i=n(3472),a=n(383),u=n(9521),c=n(9110),l=n(9409),s=n(5346),f=n(163);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return f(t)?function(e){return o(e,1===t.length?t[0]:t)}:t})):[s];var p=-1;e=r(e,c(i));var d=a(t,(function(t,n,o){return{criteria:r(e,(function(e){return e(t)})),index:++p,value:t}}));return u(d,(function(t,e){return l(t,e,n)}))}},5436:(t,e,n)=>{var r=n(6371),o=n(5066);t.exports=function(t,e){return r(t,e,(function(e,n){return o(t,n)}))}},6371:(t,e,n)=>{var r=n(4432),o=n(6539),i=n(9026);t.exports=function(t,e,n){for(var a=-1,u=e.length,c={};++a<u;){var l=e[a],s=r(t,l);n(s,l)&&o(c,i(l,t),s)}return c}},1600:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},3301:(t,e,n)=>{var r=n(4432);t.exports=function(t){return function(e){return r(e,t)}}},6317:(t,e,n)=>{var r=n(5346),o=n(4280),i=n(201);t.exports=function(t,e){return i(o(t,e,r),t+"")}},6539:(t,e,n)=>{var r=n(4132),o=n(9026),i=n(9099),a=n(7709),u=n(3110);t.exports=function(t,e,n,c){if(!a(t))return t;for(var l=-1,s=(e=o(e,t)).length,f=s-1,p=t;null!=p&&++l<s;){var d=u(e[l]),h=n;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(l!=f){var y=p[d];void 0===(h=c?c(y,d,p):void 0)&&(h=a(y)?y:i(e[l+1])?[]:{})}r(p,d,h),p=p[d]}return t}},9521:t=>{t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},7556:(t,e,n)=>{var r=n(788);t.exports=function(t,e){for(var n=-1,o=t.length,i=0,a=[];++n<o;){var u=t[n],c=e?e(u):u;if(!n||!r(c,l)){var l=c;a[i++]=0===u?0:u}}return a}},6316:(t,e,n)=>{var r=n(2596),o=n(8644),i=n(163),a=n(1995),u=r?r.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},9110:t=>{t.exports=function(t){return function(e){return t(e)}}},946:(t,e,n)=>{var r=n(3273),o=n(5510),i=n(9955),a=n(9914),u=n(6602),c=n(6226);t.exports=function(t,e,n){var l=-1,s=o,f=t.length,p=!0,d=[],h=d;if(n)p=!1,s=i;else if(f>=200){var y=e?null:u(t);if(y)return c(y);p=!1,s=a,h=new r}else h=e?[]:d;t:for(;++l<f;){var g=t[l],v=e?e(g):g;if(g=n||0!==g?g:0,p&&v==v){for(var m=h.length;m--;)if(h[m]===v)continue t;e&&h.push(v),d.push(g)}else s(h,v,n)||(h!==d&&h.push(v),d.push(g))}return d}},9914:(t,e,n)=>{var r=n(6123);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},9026:(t,e,n)=>{var r=n(163),o=n(726),i=n(7801),a=n(7010);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},522:(t,e,n)=>{var r=n(1995);t.exports=function(t,e){if(t!==e){var n=void 0!==t,o=null===t,i=t==t,a=r(t),u=void 0!==e,c=null===e,l=e==e,s=r(e);if(!c&&!s&&!a&&t>e||a&&u&&l&&!c&&!s||o&&u&&l||!n&&l||!i)return 1;if(!o&&!a&&!s&&t<e||s&&n&&i&&!o&&!a||c&&n&&i||!u&&i||!l)return-1}return 0}},9409:(t,e,n)=>{var r=n(522);t.exports=function(t,e,n){for(var o=-1,i=t.criteria,a=e.criteria,u=i.length,c=n.length;++o<u;){var l=r(i[o],a[o]);if(l)return o>=c?l:l*("desc"==n[o]?-1:1)}return t.index-e.index}},5659:(t,e,n)=>{var r=n(6649),o=n(4508),i=n(3472),a=n(163);t.exports=function(t,e){return function(n,u){var c=a(n)?r:o,l=e?e():{};return c(n,t,i(u,2),l)}}},6602:t=>{t.exports=function(){}},5525:(t,e,n)=>{var r=n(3743),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},8705:(t,e,n)=>{var r=n(3273),o=n(1634),i=n(9914);t.exports=function(t,e,n,a,u,c){var l=1&n,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t),d=c.get(e);if(p&&d)return p==e&&d==t;var h=-1,y=!0,g=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++h<s;){var v=t[h],m=e[h];if(a)var b=l?a(m,v,h,e,t,c):a(v,m,h,t,e,c);if(void 0!==b){if(b)continue;y=!1;break}if(g){if(!o(e,(function(t,e){if(!i(g,e)&&(v===t||u(v,t,n,a,c)))return g.push(e)}))){y=!1;break}}else if(v!==m&&!u(v,m,n,a,c)){y=!1;break}}return c.delete(t),c.delete(e),y}},2813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},6682:(t,e,n)=>{var r=n(8143),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,i,a,u){var c=1&n,l=r(t),s=l.length;if(s!=r(e).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in e:o.call(e,p)))return!1}var d=u.get(t),h=u.get(e);if(d&&h)return d==e&&h==t;var y=!0;u.set(t,e),u.set(e,t);for(var g=c;++f<s;){var v=t[p=l[f]],m=e[p];if(i)var b=c?i(m,v,p,e,t,u):i(v,m,p,t,e,u);if(!(void 0===b?v===m||a(v,m,n,i,u):b)){y=!1;break}g||(g="constructor"==p)}if(y&&!g){var x=t.constructor,O=e.constructor;x==O||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof O&&O instanceof O||(y=!1)}return u.delete(t),u.delete(e),y}},5557:(t,e,n)=>{var r=n(2645),o=n(4280),i=n(201);t.exports=function(t){return i(o(t,void 0,r),t+"")}},2117:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8143:(t,e,n)=>{var r=n(5125)(Object.keys,Object);t.exports=r},7271:t=>{t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},597:(t,e,n)=>{var r=n(5385),o=n(7747);t.exports=function(t){for(var e=o(t),n=e.length;n--;){var i=e[n],a=t[i];e[n]=[i,a,r(a)]}return e}},3743:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},9817:(t,e,n)=>{var r=n(5125)(Object.getPrototypeOf,Object);t.exports=r},9667:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},3096:(t,e,n)=>{var r=n(9026),o=n(5075),i=n(163),a=n(9099),u=n(8454),c=n(3110);t.exports=function(t,e,n){for(var l=-1,s=(e=r(e,t)).length,f=!1;++l<s;){var p=c(e[l]);if(!(f=null!=t&&n(t,p)))break;t=t[p]}return f||++l!=s?f:!!(s=null==t?0:t.length)&&u(s)&&a(p,s)&&(i(t)||o(t))}},3608:(t,e,n)=>{var r=n(2596),o=n(5075),i=n(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},9099:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},8286:t=>{t.exports=function(){return!1}},726:(t,e,n)=>{var r=n(163),o=n(1995),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},5782:t=>{t.exports=function(){return!1}},5385:(t,e,n)=>{var r=n(7709);t.exports=function(t){return t==t&&!r(t)}},1171:t=>{t.exports=function(){this.__data__=[],this.size=0}},7838:(t,e,n)=>{var r=n(3162),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))}},4859:(t,e,n)=>{var r=n(3162);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},4073:(t,e,n)=>{var r=n(3162);t.exports=function(t){return r(this.__data__,t)>-1}},8541:(t,e,n)=>{var r=n(3162);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},6878:t=>{t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},2453:t=>{t.exports=function(t){return t}},2348:(t,e,n)=>{t=n.nmd(t);var r=n(2117),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},5125:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},4280:(t,e,n)=>{var r=n(6082),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a<u;)c[a]=i[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=i[a];return l[e]=n(c),r(t,this,l)}}},2373:(t,e,n)=>{var r=n(2117),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},6226:t=>{t.exports=function(){return[]}},201:t=>{t.exports=function(t){return t}},7801:(t,e,n)=>{var r=n(2453),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)})),e}));t.exports=a},3110:(t,e,n)=>{var r=n(1995);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},1893:(t,e,n)=>{var r=n(6317),o=n(788),i=n(8286),a=n(8855),u=Object.prototype,c=u.hasOwnProperty,l=r((function(t,e){t=Object(t);var n=-1,r=e.length,l=r>2?e[2]:void 0;for(l&&i(e[0],e[1],l)&&(r=1);++n<r;)for(var s=e[n],f=a(s),p=-1,d=f.length;++p<d;){var h=f[p],y=t[h];(void 0===y||o(y,u[h])&&!c.call(t,h))&&(t[h]=s[h])}return t}));t.exports=l},788:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},2645:(t,e,n)=>{var r=n(6457);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},7314:t=>{t.exports=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r}},9201:(t,e,n)=>{var r=n(4432);t.exports=function(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}},9056:(t,e,n)=>{var r=n(8347),o=n(5659),i=Object.prototype.hasOwnProperty,a=o((function(t,e,n){i.call(t,n)?t[n].push(e):r(t,n,[e])}));t.exports=a},5066:(t,e,n)=>{var r=n(6776),o=n(3096);t.exports=function(t,e){return null!=t&&o(t,e,r)}},5346:t=>{t.exports=function(t){return t}},5075:t=>{t.exports=function(){return!1}},163:t=>{var e=Array.isArray;t.exports=e},981:(t,e,n)=>{var r=n(9642),o=n(8454);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},4801:t=>{t.exports=function(){return!1}},4295:(t,e,n)=>{var r=n(7537),o=n(9110),i=n(2348),a=i&&i.isDate,u=a?o(a):r;t.exports=u},4155:(t,e,n)=>{var r=n(7190),o=n(9667),i=n(5075),a=n(163),u=n(981),c=n(4801),l=n(5782),s=n(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||c(t)||s(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(l(t))return!r(t).length;for(var n in t)if(f.call(t,n))return!1;return!0}},8254:(t,e,n)=>{var r=n(9070);t.exports=function(t,e){return r(t,e)}},9642:(t,e,n)=>{var r=n(563),o=n(7709);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},8454:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3474:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},3849:(t,e,n)=>{var r=n(563),o=n(9817),i=n(3474),a=Function.prototype,u=Object.prototype,c=a.toString,l=u.hasOwnProperty,s=c.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=o(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==s}},1995:t=>{t.exports=function(){return!1}},4289:t=>{t.exports=function(){return!1}},8999:t=>{t.exports=function(t){return void 0===t}},7747:(t,e,n)=>{var r=n(5125)(Object.keys,Object);t.exports=r},8855:t=>{t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1594:(t,e,n)=>{var r=n(503);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},6051:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},1616:(t,e,n)=>{var r=n(3472),o=n(6051),i=n(4912);t.exports=function(t,e){return i(t,o(r(e)))}},4143:(t,e,n)=>{var r=n(8245),o=n(163);t.exports=function(t,e,n,i){return null==t?[]:(o(e)||(e=null==e?[]:[e]),o(n=i?void 0:n)||(n=null==n?[]:[n]),r(t,e,n))}},9082:(t,e,n)=>{var r=n(5436),o=n(5557)((function(t,e){return null==t?{}:r(t,e)}));t.exports=o},4912:(t,e,n)=>{var r=n(8644),o=n(3472),i=n(6371),a=n(7271);t.exports=function(t,e){if(null==t)return{};var n=r(a(t),(function(t){return[t]}));return e=o(e),i(t,n,(function(t,n){return e(t,n[0])}))}},8532:(t,e,n)=>{var r=n(1600),o=n(3301),i=n(726),a=n(3110);t.exports=function(t){return i(t)?r(a(t)):o(t)}},2829:(t,e,n)=>{var r=n(7556);t.exports=function(t){return t&&t.length?r(t):[]}},7010:(t,e,n)=>{var r=n(6316);t.exports=function(t){return null==t?"":r(t)}},9602:(t,e,n)=>{var r=n(946);t.exports=function(t){return t&&t.length?r(t):[]}},8961:(t,e,n)=>{var r=n(3472),o=n(946);t.exports=function(t,e){return t&&t.length?o(t,r(e,2)):[]}},660:(t,e,n)=>{var r=n(7010),o=0;t.exports=function(t){var e=++o;return r(t)+e}},7491:t=>{var e="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(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,c,l,s;if(Array.isArray(t)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(!i(t[c],a[c]))return!1;return!0}if(n&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;for(s=t.entries();!(c=s.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(r&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(t[c]!==a[c])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=(l=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=u;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(e&&t instanceof Element)return!1;for(c=u;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!t.$$typeof)&&!i(t[l[c]],a[l[c]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,e){try{return i(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:e=>{"use strict";e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return e[t](i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},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=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var o={};return(()=>{"use strict";r.r(o),r.d(o,{VictoryChart:()=>xp});var t={};r.r(t),r.d(t,{scaleBand:()=>Xe,scaleDiverging:()=>tu,scaleDivergingLog:()=>eu,scaleDivergingPow:()=>ru,scaleDivergingSqrt:()=>ou,scaleDivergingSymlog:()=>nu,scaleIdentity:()=>Nr,scaleImplicit:()=>Ye,scaleLinear:()=>Lr,scaleLog:()=>Vr,scaleOrdinal:()=>Ke,scalePoint:()=>Qe,scalePow:()=>to,scaleQuantile:()=>po,scaleQuantize:()=>ho,scaleRadial:()=>oo,scaleSequential:()=>qa,scaleSequentialLog:()=>Ga,scaleSequentialPow:()=>Ka,scaleSequentialQuantile:()=>Za,scaleSequentialSqrt:()=>Xa,scaleSequentialSymlog:()=>Ya,scaleSqrt:()=>eo,scaleSymlog:()=>Kr,scaleThreshold:()=>yo,scaleTime:()=>Ha,scaleUtc:()=>$a,tickFormat:()=>_r});var e={};r.r(e),r.d(e,{easeBack:()=>Es,easeBackIn:()=>As,easeBackInOut:()=>Es,easeBackOut:()=>ks,easeBounce:()=>Os,easeBounceIn:()=>xs,easeBounceInOut:()=>ws,easeBounceOut:()=>Os,easeCircle:()=>ms,easeCircleIn:()=>gs,easeCircleInOut:()=>ms,easeCircleOut:()=>vs,easeCubic:()=>rs,easeCubicIn:()=>es,easeCubicInOut:()=>rs,easeCubicOut:()=>ns,easeElastic:()=>Ps,easeElasticIn:()=>Ss,easeElasticInOut:()=>Cs,easeElasticOut:()=>Ps,easeExp:()=>ys,easeExpIn:()=>ds,easeExpInOut:()=>ys,easeExpOut:()=>hs,easeLinear:()=>Zl,easePoly:()=>as,easePolyIn:()=>os,easePolyInOut:()=>as,easePolyOut:()=>is,easeQuad:()=>ts,easeQuadIn:()=>Ql,easeQuadInOut:()=>ts,easeQuadOut:()=>Jl,easeSin:()=>fs,easeSinIn:()=>ls,easeSinInOut:()=>fs,easeSinOut:()=>ss});var n=r(4155),i=r.n(n),a=r(1893),u=r.n(a),c=r(9787),l=r.n(c),s=r(9082),f=r.n(s),p=r(8532),d=r.n(p);function h(t){return Object.entries(t).reduce((function(t,e){return t[e[1]]=e[0],t}),{})}function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function g(t){var e=function(t){return void 0!==t},n=t._x,r=t._x1,o=t._x0,i=t._voronoiX,a=t._y,c=t._y1,l=t._y0,s=t._voronoiY,f=e(r)?r:n,p=e(c)?c:a,d={x:e(i)?i:f,x0:e(o)?o:n,y:e(s)?s:p,y0:e(l)?l:a};return u()({},d,t)}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"padding",n=t[e],r="number"==typeof n?n:0,o="object"==typeof n?n:{};return{top:o.top||r,bottom:o.bottom||r,left:o.left||r,right:o.right||r}}function m(t,e){return E(t)?t(e):t}function b(t,e){return e.disableInlineStyles?{}:t&&Object.keys(t).some((function(e){return E(t[e])}))?Object.keys(t).reduce((function(n,r){return n[r]=m(t[r],e),n}),{}):t}function x(t){return"number"==typeof t?t*(Math.PI/180):t}function O(t){return"number"==typeof t?t/(Math.PI/180):t}function w(t){var e=v(t),n=e.left,r=e.right,o=e.top,i=e.bottom,a=t.width,u=t.height;return Math.min(a-n-r,u-o-i)/2}function j(t){var e=t.width,n=t.height,r=v(t),o=r.top,i=r.bottom,a=r.left,u=r.right,c=Math.min(e-a-u,n-o-i)/2,l=e/2+a-u,s=n/2+o-i;return{x:l+c>e?c+a-u:l,y:s+c>n?c+o-i:s}}function A(t,e){return t.range&&t.range[e]?t.range[e]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t,e){return"x"===e?[x(t.startAngle||0),x(t.endAngle||360)]:[t.innerRadius||0,w(t)]}(t,e):function(t,e){var n="x"!==e,r=v(t);return n?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,e)}function k(t){return null==t}function E(t){return"function"==typeof t}function M(t){return E(t)?t:null==t?function(t){return t}:d()(t)}function S(t,e,n){var r=y(t.theme&&t.theme[n]?t.theme[n]:{},["style"]),o=function(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;var e=function(t){return t.reduce((function(t,n){var r=n.props||{};return t||r.horizontal||!r.children?t||r.horizontal:e(l().Children.toArray(r.children))}),!1)};return e(l().Children.toArray(t.children))}(t),i=void 0===o?{}:{horizontal:o};return u()(i,t,r,e)}function P(t,e,n){var r=e?t:0,o=e||t;o||(o=0);var i=o-r,a=Math.abs(i),u=i/a||1,c=n||1,l=Math.max(Math.ceil(a/c),0);return Array.from(Array(l),(function(t,e){return r+e*u*c}))}function C(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(t,e){return t.concat(e)},i=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],a=function(t,u,c){return t.reduce((function(t,r,s){var p=t,d=r.type&&r.type.role,h=r.props.name||"".concat(d,"-").concat(u[s]);if(r.props&&r.props.children){var y=Object.assign({},r.props,f()(n,i)),g=r.type&&"stack"===r.type.role&&E(r.type.getChildren)?r.type.getChildren(y):l().Children.toArray(r.props.children).map((function(t){var e=Object.assign({},t.props,f()(y,i));return l().cloneElement(t,e)})),v=g.map((function(t,e){return"".concat(h,"-").concat(e)})),m=a(g,v,r);p=o(p,m)}else{var b=e(r,h,c);b&&(p=o(p,b))}return p}),r)},u=t.filter(c.isValidElement),s=u.map((function(t,e){return e}));return a(u,s)}var T=["desc","id","tabIndex","origin"];function D(){return D=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},D.apply(this,arguments)}function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function I(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var L=(0,c.forwardRef)((function(t,e){var n,r=t.desc,o=t.id,i=t.tabIndex,a=(t.origin,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,T)),u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach((function(e){I(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({vectorEffect:"non-scaling-stroke",id:null===(n=m(o,t))||void 0===n?void 0:n.toString(),tabIndex:m(i,t)},a);return r?l().createElement("rect",D({},u,{ref:e}),l().createElement("desc",null,r)):l().createElement("rect",D({},u,{ref:e}))})),N=["desc","id","tabIndex","origin"];function R(){return R=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},R.apply(this,arguments)}function U(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function z(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var F=(0,c.forwardRef)((function(t,e){var n,r=t.desc,o=t.id,i=t.tabIndex,a=(t.origin,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,N)),u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?U(Object(n),!0).forEach((function(e){z(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({vectorEffect:"non-scaling-stroke",id:null===(n=m(o,t))||void 0===n?void 0:n.toString(),tabIndex:m(i,t)},a);return r?l().createElement("circle",R({},u,{ref:e}),l().createElement("desc",null,r)):l().createElement("circle",R({},u,{ref:e}))}));function W(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function H(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?W(Object(n),!0).forEach((function(e){$(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var B={circleComponent:l().createElement(F,null),rectComponent:l().createElement(L,null),role:"presentation",shapeRendering:"auto"},V=function(t){var e=function(t){var e=m(t.id,t);return Object.assign({},t,{id:e})}(H(H({},B),t));return e.polar?l().cloneElement(e.circleComponent,H(H({},e.events),{},{style:e.style,role:e.role,shapeRendering:e.shapeRendering,cx:e.x,cy:e.y,r:e.height,className:e.className})):l().cloneElement(e.rectComponent,H(H({},e.events),{},{style:e.style,role:e.role,shapeRendering:e.shapeRendering,x:e.x,y:e.y,rx:e.rx,ry:e.ry,width:e.width,height:e.height,className:e.className}))},q=r(7709),G=r.n(q),Y=r(660),K=r.n(Y);function X(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Z(t,e){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Z(t,e)}function Q(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function J(t){return J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},J(t)}var tt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Z(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=J(r);if(o){var n=J(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Q(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).map=void 0,e.index=void 0,e.portalRegister=function(){return++e.index},e.portalUpdate=function(t,n){e.map[t]=n,e.forceUpdate()},e.portalDeregister=function(t){delete e.map[t],e.forceUpdate()},e.map={},e.index=1,e}return e=a,(n=[{key:"getChildren",value:function(){var t=this;return Object.keys(this.map).map((function(e){var n=t.map[e];return n?l().cloneElement(n,{key:e}):n}))}},{key:"render",value:function(){return l().createElement("svg",this.props,this.getChildren())}}])&&X(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(l().Component);tt.displayName="Portal";var et=l().createContext({});et.displayName="PortalContext";var nt,rt,ot=0,it=0,at=0,ut=0,ct=0,lt=0,st="object"==typeof performance&&performance.now?performance:Date,ft="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function pt(){return ct||(ft(dt),ct=st.now()+lt)}function dt(){ct=0}function ht(){this._call=this._time=this._next=null}function yt(t,e,n){var r=new ht;return r.restart(t,e,n),r}function gt(){ct=(ut=st.now())+lt,ot=it=0;try{!function(){pt(),++ot;for(var t,e=nt;e;)(t=ct-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ot}()}finally{ot=0,function(){for(var t,e,n=nt,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:nt=e);rt=t,mt(r)}(),ct=0}}function vt(){var t=st.now(),e=t-ut;e>1e3&&(lt-=e,ut=t)}function mt(t){ot||(it&&(it=clearTimeout(it)),t-ct>24?(t<1/0&&(it=setTimeout(gt,t-st.now()-lt)),at&&(at=clearInterval(at))):(at||(ut=st.now(),at=setInterval(vt,1e3)),ot=1,ft(gt)))}function bt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}ht.prototype=yt.prototype={constructor:ht,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?pt():+n)+(null==e?0:+e),this._next||rt===this||(rt?rt._next=this:nt=this,rt=this),this._call=t,this._time=n,mt()},stop:function(){this._call&&(this._call=null,this._time=1/0,mt())}};var xt=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){e.subscribers.forEach((function(t){t.callback(pt()-t.startTime,t.duration)}))},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}var e,n;return e=t,(n=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=yt(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,e){var n=this.subscribers.push({startTime:pt(),callback:t,duration:this.shouldAnimate?e:0});return this.activeSubscriptions++,this.start(),n}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&bt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Ot=l().createContext({transitionTimer:new xt,animationTimer:new xt});Ot.displayName="TimerContext";const wt=Ot;function jt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return At(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function At(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Et(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Mt={startsWith:["data-","aria-"],exactMatch:[]},St=function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?kt(Object(n),!0).forEach((function(e){Et(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t);return Object.fromEntries(Object.entries(e).filter((function(t){return function(t){return!(!function(t){var e=!1;return Mt.startsWith.forEach((function(n){new RegExp("\\b(".concat(n,")(\\w|-)+"),"g").test(t)&&(e=!0)})),e}(t)&&!function(t){return Mt.exactMatch.includes(t)}(t))}(jt(t,1)[0])})).map((function(e){var n=jt(e,2);return[n[0],m(n[1],t)]})))};function Pt(){return Pt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Pt.apply(this,arguments)}function Ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Tt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ct(Object(n),!0).forEach((function(e){Dt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Dt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function It(t,e){return It=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},It(t,e)}function Lt(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Nt(t){return Nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Nt(t)}var Rt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&It(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Nt(r);if(o){var n=Nt(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Lt(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).containerId=void 0,e.portalRef=void 0,e.containerRef=void 0,e.shouldHandleWheel=void 0,e.savePortalRef=function(t){return e.portalRef=t,t},e.portalUpdate=function(t,n){return e.portalRef.portalUpdate(t,n)},e.portalRegister=function(){return e.portalRef.portalRegister()},e.portalDeregister=function(t){return e.portalRef.portalDeregister(t)},e.saveContainerRef=function(t){return E(e.props.containerRef)&&e.props.containerRef(t),e.containerRef=t,t},e.handleWheel=function(t){return t.preventDefault()},e.containerId=G()(t)&&void 0!==t.containerId?t.containerId:K()("victory-container-"),e.shouldHandleWheel=!!(t&&t.events&&t.events.onWheel),e}return e=a,(n=[{key:"componentDidMount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}},{key:"componentWillUnmount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}},{key:"getIdForElement",value:function(t){return"".concat(this.containerId,"-").concat(t)}},{key:"getChildren",value:function(t){return t.children}},{key:"getOUIAProps",value:function(t){var e=t.ouiaId,n=t.ouiaSafe,r=t.ouiaType;return Tt(Tt(Tt({},e&&{"data-ouia-component-id":e}),r&&{"data-ouia-component-type":r}),void 0!==n&&{"data-ouia-safe":n})}},{key:"renderContainer",value:function(t,e,n){var r=t.title,o=t.desc,i=t.portalComponent,a=t.className,c=t.width,s=t.height,f=t.portalZIndex,p=t.responsive,d=this.getChildren(t),h=p?{width:"100%",height:"100%"}:{width:c,height:s},y=Object.assign({pointerEvents:"none",touchAction:"none",position:"relative"},h),g=Object.assign({zIndex:f,position:"absolute",top:0,left:0},h),v=Object.assign({pointerEvents:"all"},h),m=Object.assign({overflow:"visible"},h),b={width:c,height:s,viewBox:e.viewBox,preserveAspectRatio:e.preserveAspectRatio,style:m};return l().createElement(et.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},l().createElement("div",Pt({style:u()({},n,y),className:a,ref:this.saveContainerRef},this.getOUIAProps(t)),l().createElement("svg",Pt({},e,{style:v}),r?l().createElement("title",{id:this.getIdForElement("title")},r):null,o?l().createElement("desc",{id:this.getIdForElement("desc")},o):null,d),l().createElement("div",{style:g},l().cloneElement(i,Tt(Tt({},b),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var t=this.props,e=t.width,n=t.height,r=t.responsive,o=t.events,i=t.title,a=t.desc,u=t.tabIndex,c=t.preserveAspectRatio,l=t.role,s=r?this.props.style:y(this.props.style,["height","width"]),f=St(this.props),p=Object.assign(Tt({width:e,height:n,tabIndex:u,role:l,"aria-labelledby":[i&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[a&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:r?"0 0 ".concat(e," ").concat(n):void 0,preserveAspectRatio:r?c:void 0},f),o);return this.renderContainer(this.props,p,s)}}])&&_t(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(l().Component);Rt.displayName="VictoryContainer",Rt.role="container",Rt.defaultProps={className:"VictoryContainer",portalComponent:l().createElement(tt,null),portalZIndex:99,responsive:!0,role:"img"},Rt.contextType=wt;var Ut=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],zt="#252525",Ft="#969696",Wt={width:450,height:300,padding:50,colorScale:Ut},Ht={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:zt,stroke:"transparent"},$t=Object.assign({textAnchor:"middle"},Ht),Bt={area:Object.assign({style:{data:{fill:zt},labels:Ht}},Wt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:zt,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},$t,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:Ht}},Wt),bar:Object.assign({style:{data:{fill:zt,padding:8,strokeWidth:0},labels:Ht}},Wt),boxplot:Object.assign({style:{max:{padding:8,stroke:zt,strokeWidth:1},maxLabels:Object.assign({},Ht,{padding:3}),median:{padding:8,stroke:zt,strokeWidth:1},medianLabels:Object.assign({},Ht,{padding:3}),min:{padding:8,stroke:zt,strokeWidth:1},minLabels:Object.assign({},Ht,{padding:3}),q1:{padding:8,fill:Ft},q1Labels:Object.assign({},Ht,{padding:3}),q3:{padding:8,fill:Ft},q3Labels:Object.assign({},Ht,{padding:3})},boxWidth:20},Wt),candlestick:Object.assign({style:{data:{stroke:zt,strokeWidth:1},labels:Object.assign({},Ht,{padding:5})},candleColors:{positive:"#ffffff",negative:zt}},Wt),chart:Wt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:zt,strokeWidth:2},labels:Ht}},Wt),group:Object.assign({colorScale:Ut},Wt),histogram:Object.assign({style:{data:{fill:Ft,stroke:zt,strokeWidth:2},labels:Ht}},Wt),legend:{colorScale:Ut,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Ht,title:Object.assign({},Ht,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:zt,strokeWidth:2},labels:Ht}},Wt),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},Ht,{padding:20})},colorScale:Ut,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:zt,stroke:"transparent",strokeWidth:0},labels:Ht}},Wt),stack:Object.assign({colorScale:Ut},Wt),tooltip:{style:Object.assign({},Ht,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:zt,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({},Ht,{padding:5,pointerEvents:"none"}),flyout:{stroke:zt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Wt)},Vt=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],qt="#ECEFF1",Gt="#90A4AE",Yt="#455A64",Kt="#212121",Xt={width:350,height:350,padding:50},Zt={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:Yt,stroke:"transparent",strokeWidth:0},Qt=Object.assign({textAnchor:"middle"},Zt),Jt="round",te="round",ee={grayscale:Bt,material:{area:Object.assign({style:{data:{fill:Kt},labels:Zt}},Xt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Gt,strokeWidth:2,strokeLinecap:Jt,strokeLinejoin:te},axisLabel:Object.assign({},Qt,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:qt,strokeDasharray:"10, 5",strokeLinecap:Jt,strokeLinejoin:te,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Gt,strokeWidth:1,strokeLinecap:Jt,strokeLinejoin:te},tickLabels:Object.assign({},Zt,{fill:Yt})}},Xt),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:Yt,padding:8,strokeWidth:0},labels:Zt}},Xt),boxplot:Object.assign({style:{max:{padding:8,stroke:Yt,strokeWidth:1},maxLabels:Object.assign({},Zt,{padding:3}),median:{padding:8,stroke:Yt,strokeWidth:1},medianLabels:Object.assign({},Zt,{padding:3}),min:{padding:8,stroke:Yt,strokeWidth:1},minLabels:Object.assign({},Zt,{padding:3}),q1:{padding:8,fill:Yt},q1Labels:Object.assign({},Zt,{padding:3}),q3:{padding:8,fill:Yt},q3Labels:Object.assign({},Zt,{padding:3})},boxWidth:20},Xt),candlestick:Object.assign({style:{data:{stroke:Yt},labels:Object.assign({},Zt,{padding:5})},candleColors:{positive:"#ffffff",negative:Yt}},Xt),chart:Xt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Yt,strokeWidth:2},labels:Zt}},Xt),group:Object.assign({colorScale:Vt},Xt),histogram:Object.assign({style:{data:{fill:Yt,stroke:Kt,strokeWidth:2},labels:Zt}},Xt),legend:{colorScale:Vt,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Zt,title:Object.assign({},Zt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:Yt,strokeWidth:2},labels:Zt}},Xt),pie:Object.assign({colorScale:Vt,style:{data:{padding:8,stroke:qt,strokeWidth:1},labels:Object.assign({},Zt,{padding:20})}},Xt),scatter:Object.assign({style:{data:{fill:Yt,opacity:1,stroke:"transparent",strokeWidth:0},labels:Zt}},Xt),stack:Object.assign({colorScale:Vt},Xt),tooltip:{style:Object.assign({},Zt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Kt,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({},Zt,{padding:5,pointerEvents:"none"}),flyout:{stroke:Kt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Xt)}};function ne(t){return function(t){if(Array.isArray(t))return re(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return re(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?re(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function re(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function oe(t){return Array.isArray(t)&&t.length>0}function ie(t){return Array.isArray(t)&&t.some((function(t){return"string"==typeof t}))}function ae(t){return Array.isArray(t)&&t.some((function(t){return t instanceof Date}))}function ue(t,e){return t&&e?t.filter((function(t){return!e.includes(t)})):[]}function ce(t){return oe(t)&&t.every(Array.isArray)}function le(t){return t.filter((function(t){return void 0!==t}))}function se(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=t.concat(n);return ae(o)?new Date(Math.max.apply(Math,ne(o))):Math.max.apply(Math,ne(o))}function fe(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=t.concat(n);return ae(o)?new Date(Math.min.apply(Math,ne(o))):Math.min.apply(Math,ne(o))}var pe=r(5346),de=r.n(pe);function he(t,e){return(t.key||e).toString()}function ye(t){return t.reduce((function(t,e,n){return t[he(e,n)]=e,t}),{})}function ge(t,e){var n=!1,r=Object.keys(t).reduce((function(t,r){return r in e||(n=!0,t[r]=!0),t}),{});return n&&r}function ve(t){return t.type&&t.type.getData?t.type.getData(t.props):t.props&&t.props.data||!1}function me(t,e){var n=!1,r=!1,o=function(t,e){return t.map((function(i,a){return i&&i.props&&i.props.children&&e[a]?o(l().Children.toArray(t[a].props.children),l().Children.toArray(e[a].props.children)):function(t,e){if(!e||t.type!==e.type)return{};var o,i,a,u,c=(o=ve(t),i=ve(e),a=o&&ye(o),u=i&&ye(i),{entering:a&&ge(u,a),exiting:u&&ge(a,u)}||{}),l=c.entering,s=c.exiting;return n=n||!!s,r=r||!!l,{entering:l||!1,exiting:s||!1}}(i,e[a])}))},i=o(l().Children.toArray(t),l().Children.toArray(e));return{nodesWillExit:n,nodesWillEnter:r,childrenTransitions:i,nodesShouldEnter:!1}}function be(t,e,n){var r=e&&e.nodesWillExit,o=e&&e.nodesWillEnter,i=e&&e.nodesShouldEnter,a=e&&e.nodesShouldLoad,c=e&&e.nodesDoneLoad,l=e&&e.childrenTransitions||[],s={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=function(t,e,r){return a?function(t,e,r){var o=Object.assign({},t,{onEnd:function(){n({nodesShouldLoad:!1,nodesDoneLoad:!0})}});if(o&&o.onLoad&&!o.onLoad.duration)return{animate:t,data:e};var i=t.onLoad&&t.onLoad.after?t.onLoad.after:de();return{animate:o,data:e.map((function(t,n){return Object.assign({},t,i(t,n,e))}))}}(r,e):function(t,e,r,o){var i=Object.assign({},t,{onEnd:function(){n({nodesDoneLoad:!0})}});if(i&&i.onLoad&&!i.onLoad.duration)return{animate:i,data:r};var a=i.onLoad&&i.onLoad.before?i.onLoad.before:de();return{animate:i,data:r.map((function(t,e){return Object.assign({},t,a(t,e,r))})),clipWidth:0}}(r,0,e)},p=function(t,e,r,o){return function(t,e,r,o,i){var a=t&&t.onExit,u=Object.assign({},t,a),c=r;if(o){t.onEnd=function(){n({nodesWillExit:!1})};var l=t.onExit&&t.onExit.before?t.onExit.before:de();c=r.map((function(t,e){var n=(t.key||e).toString();return o[n]?Object.assign({},t,l(t,e,r)):t}))}return{animate:u,data:c}}(o,0,r,t)},d=function(t,e,r,o){return i?function(t,e,r,o){var i=t&&t.onEnter,a=Object.assign({},t,i),u=e;if(r){a.onEnd=function(){n({nodesWillEnter:!1})};var c=a.onEnter&&a.onEnter.after?a.onEnter.after:de();u=e.map((function(t,n){var o=he(t,n);return r[o]?Object.assign({},t,c(t,n,e)):t}))}return{animate:a,data:u}}(o,r,t):function(t,e,r,o,i){var a=t,u=r;if(o){a=Object.assign({},t,{onEnd:function(){n({nodesShouldEnter:!0})}});var c=t.onEnter&&t.onEnter.before?t.onEnter.before:de();u=r.map((function(t,e){var n=(t.key||e).toString();return o[n]?Object.assign({},t,c(t,e,r)):t}))}return{animate:a,data:u}}(o,0,r,t)},h=function(t,e){var n=t.props.animate;if(!t.type)return{};var r=t.props&&t.props.polar&&t.type.defaultPolarTransitions||t.type.defaultTransitions;if(r){var o=n[e]&&n[e].duration;return void 0!==o?o:r[e]&&r[e].duration}return{}};return function(n,a){var y=ve(n)||[],g=u()({},t.animate,n.props.animate),v=n.props.polar&&n.type.defaultPolarTransitions||n.type.defaultTransitions;g.onExit=u()({},g.onExit,v&&v.onExit),g.onEnter=u()({},g.onEnter,v&&v.onEnter),g.onLoad=u()({},g.onLoad,v&&v.onLoad);var m=l[a]||l[0];if(!c){var b={duration:void 0!==s.load?s.load:h(n,"onLoad")};return f(0,y,Object.assign({},g,b))}if(r){var x=m&&m.exiting,O=void 0!==s.exit?s.exit:h(n,"onExit"),w=x?{duration:O}:{delay:O};return p(x,0,y,Object.assign({},g,w))}if(o){var j=m&&m.entering,A=void 0!==s.enter?s.enter:h(n,"onEnter"),k=void 0!==s.move?s.move:n.props.animate&&n.props.animate.duration,E={duration:i&&j?A:k};return d(j,0,y,Object.assign({},g,E))}return!e&&g&&g.onExit?function(t,e){var n=t.onEnter&&t.onEnter.after?t.onEnter.after:de();return{data:e.map((function(t,r){return Object.assign({},t,n(t,r,e))}))}}(g,y):{animate:g,data:y}}}function xe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Oe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xe(Object(n),!0).forEach((function(e){we(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function we(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function je(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ae(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ae(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ae(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ke={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},Ee=r(3849),Me=r.n(Ee),Se=r(8961),Pe=r.n(Se),Ce=(r(9056),r(9602)),Te=r.n(Ce),De=r(4143),_e=r.n(De),Ie=r(4295),Le=r.n(Ie),Ne=r(2829),Re=r.n(Ne),Ue=r(1616),ze=r.n(Ue),Fe=(r(8999),r(8254)),We=r.n(Fe);function He(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),i=new Array(o);++r<o;)i[r]=t+r*n;return i}function $e(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Be(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}class Ve extends Map{constructor(t,e=Ge){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(qe(this,t))}has(t){return super.has(qe(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}(this,t))}}function qe({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function Ge(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Ye=Symbol("implicit");function Ke(){var t=new Ve,e=[],n=[],r=Ye;function o(o){let i=t.get(o);if(void 0===i){if(r!==Ye)return r;t.set(o,i=e.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Ve;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(r=t,o):r},o.copy=function(){return Ke(e,n).unknown(r)},$e.apply(o,arguments),o}function Xe(){var t,e,n=Ke().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,u=!1,c=0,l=0,s=.5;function f(){var n=r().length,f=a<i,p=f?a:i,d=f?i:a;t=(d-p)/Math.max(1,n-c+2*l),u&&(t=Math.floor(t)),p+=(d-p-t*(n-c))*s,e=t*(1-c),u&&(p=Math.round(p),e=Math.round(e));var h=He(n).map((function(e){return p+t*e}));return o(f?h.reverse():h)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),f()):r()},n.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},n.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,u=!0,f()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(u=!!t,f()):u},n.padding=function(t){return arguments.length?(c=Math.min(1,l=+t),f()):c},n.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),f()):c},n.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},n.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},n.copy=function(){return Xe(r(),[i,a]).round(u).paddingInner(c).paddingOuter(l).align(s)},$e.apply(f(),arguments)}function Ze(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Ze(e())},t}function Qe(){return Ze(Xe.apply(null,arguments).paddingInner(1))}var Je=Math.sqrt(50),tn=Math.sqrt(10),en=Math.sqrt(2);function nn(t,e,n){var r,o,i,a,u=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(o=t,t=e,e=o),0===(a=rn(t,e,n))||!isFinite(a))return[];if(a>0){let n=Math.round(t/a),r=Math.round(e/a);for(n*a<t&&++n,r*a>e&&--r,i=new Array(o=r-n+1);++u<o;)i[u]=(n+u)*a}else{a=-a;let n=Math.round(t*a),r=Math.round(e*a);for(n/a<t&&++n,r/a>e&&--r,i=new Array(o=r-n+1);++u<o;)i[u]=(n+u)/a}return r&&i.reverse(),i}function rn(t,e,n){var r=(e-t)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=Je?10:i>=tn?5:i>=en?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=Je?10:i>=tn?5:i>=en?2:1)}function on(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=Je?o*=10:i>=tn?o*=5:i>=en&&(o*=2),e<t?-o:o}function an(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function un(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function cn(t){let e,n,r;function o(t,r,o=0,i=t.length){if(o<i){if(0!==e(r,r))return i;do{const e=o+i>>>1;n(t[e],r)<0?o=e+1:i=e}while(o<i)}return o}return 2!==t.length?(e=an,n=(e,n)=>an(t(e),n),r=(e,n)=>t(e)-n):(e=t===an||t===un?t:ln,n=t,r=t),{left:o,center:function(t,e,n=0,i=t.length){const a=o(t,e,n,i-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,o=0,i=t.length){if(o<i){if(0!==e(r,r))return i;do{const e=o+i>>>1;n(t[e],r)<=0?o=e+1:i=e}while(o<i)}return o}}}function ln(){return 0}function sn(t){return null===t?NaN:+t}const fn=cn(an),pn=fn.right,dn=(fn.left,cn(sn).center,pn);function hn(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function yn(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function gn(){}var vn=.7,mn=1/vn,bn="\\s*([+-]?\\d+)\\s*",xn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",On="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wn=/^#([0-9a-f]{3,8})$/,jn=new RegExp(`^rgb\\(${bn},${bn},${bn}\\)$`),An=new RegExp(`^rgb\\(${On},${On},${On}\\)$`),kn=new RegExp(`^rgba\\(${bn},${bn},${bn},${xn}\\)$`),En=new RegExp(`^rgba\\(${On},${On},${On},${xn}\\)$`),Mn=new RegExp(`^hsl\\(${xn},${On},${On}\\)$`),Sn=new RegExp(`^hsla\\(${xn},${On},${On},${xn}\\)$`),Pn={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 Cn(){return this.rgb().formatHex()}function Tn(){return this.rgb().formatRgb()}function Dn(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=wn.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?_n(e):3===n?new Rn(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?In(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?In(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=jn.exec(t))?new Rn(e[1],e[2],e[3],1):(e=An.exec(t))?new Rn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=kn.exec(t))?In(e[1],e[2],e[3],e[4]):(e=En.exec(t))?In(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Mn.exec(t))?$n(e[1],e[2]/100,e[3]/100,1):(e=Sn.exec(t))?$n(e[1],e[2]/100,e[3]/100,e[4]):Pn.hasOwnProperty(t)?_n(Pn[t]):"transparent"===t?new Rn(NaN,NaN,NaN,0):null}function _n(t){return new Rn(t>>16&255,t>>8&255,255&t,1)}function In(t,e,n,r){return r<=0&&(t=e=n=NaN),new Rn(t,e,n,r)}function Ln(t){return t instanceof gn||(t=Dn(t)),t?new Rn((t=t.rgb()).r,t.g,t.b,t.opacity):new Rn}function Nn(t,e,n,r){return 1===arguments.length?Ln(t):new Rn(t,e,n,null==r?1:r)}function Rn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Un(){return`#${Hn(this.r)}${Hn(this.g)}${Hn(this.b)}`}function zn(){const t=Fn(this.opacity);return`${1===t?"rgb(":"rgba("}${Wn(this.r)}, ${Wn(this.g)}, ${Wn(this.b)}${1===t?")":`, ${t})`}`}function Fn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Wn(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Hn(t){return((t=Wn(t))<16?"0":"")+t.toString(16)}function $n(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Vn(t,e,n,r)}function Bn(t){if(t instanceof Vn)return new Vn(t.h,t.s,t.l,t.opacity);if(t instanceof gn||(t=Dn(t)),!t)return new Vn;if(t instanceof Vn)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),i=Math.max(e,n,r),a=NaN,u=i-o,c=(i+o)/2;return u?(a=e===i?(n-r)/u+6*(n<r):n===i?(r-e)/u+2:(e-n)/u+4,u/=c<.5?i+o:2-i-o,a*=60):u=c>0&&c<1?0:a,new Vn(a,u,c,t.opacity)}function Vn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function qn(t){return(t=(t||0)%360)<0?t+360:t}function Gn(t){return Math.max(0,Math.min(1,t||0))}function Yn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Kn(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}hn(gn,Dn,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Cn,formatHex:Cn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Bn(this).formatHsl()},formatRgb:Tn,toString:Tn}),hn(Rn,Nn,yn(gn,{brighter(t){return t=null==t?mn:Math.pow(mn,t),new Rn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?vn:Math.pow(vn,t),new Rn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Rn(Wn(this.r),Wn(this.g),Wn(this.b),Fn(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:Un,formatHex:Un,formatHex8:function(){return`#${Hn(this.r)}${Hn(this.g)}${Hn(this.b)}${Hn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:zn,toString:zn})),hn(Vn,(function(t,e,n,r){return 1===arguments.length?Bn(t):new Vn(t,e,n,null==r?1:r)}),yn(gn,{brighter(t){return t=null==t?mn:Math.pow(mn,t),new Vn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?vn:Math.pow(vn,t),new Vn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new Rn(Yn(t>=240?t-240:t+120,o,r),Yn(t,o,r),Yn(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new Vn(qn(this.h),Gn(this.s),Gn(this.l),Fn(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=Fn(this.opacity);return`${1===t?"hsl(":"hsla("}${qn(this.h)}, ${100*Gn(this.s)}%, ${100*Gn(this.l)}%${1===t?")":`, ${t})`}`}}));const Xn=t=>()=>t;function Zn(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Xn(isNaN(t)?e:t)}const Qn=function t(e){var n=function(t){return 1==(t=+t)?Zn:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Xn(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Nn(t)).r,(e=Nn(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=Zn(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Jn(t){return function(e){var n,r,o=e.length,i=new Array(o),a=new Array(o),u=new Array(o);for(n=0;n<o;++n)r=Nn(e[n]),i[n]=r.r||0,a[n]=r.g||0,u[n]=r.b||0;return i=t(i),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=i(t),r.g=a(t),r.b=u(t),r+""}}}function tr(t,e){var n,r=e?e.length:0,o=t?Math.min(r,t.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=cr(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<o;++n)a[n]=i[n](t);return a}}function er(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function nr(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function rr(t,e){var n,r={},o={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=cr(t[n],e[n]):o[n]=e[n];return function(t){for(n in r)o[n]=r[n](t);return o}}Jn((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,u=r<e-1?t[r+2]:2*i-o;return Kn((n-r/e)*e,a,o,i,u)}})),Jn((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],i=t[r%e],a=t[(r+1)%e],u=t[(r+2)%e];return Kn((n-r/e)*e,o,i,a,u)}}));var or=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ir=new RegExp(or.source,"g");function ar(t,e){var n,r,o,i=or.lastIndex=ir.lastIndex=0,a=-1,u=[],c=[];for(t+="",e+="";(n=or.exec(t))&&(r=ir.exec(e));)(o=r.index)>i&&(o=e.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:nr(n,r)})),i=ir.lastIndex;return i<e.length&&(o=e.slice(i),u[a]?u[a]+=o:u[++a]=o),u.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)u[(n=c[r]).i]=n.x(t);return u.join("")})}function ur(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(n=0;n<r;++n)o[n]=t[n]*(1-i)+e[n]*i;return o}}function cr(t,e){var n,r,o=typeof e;return null==e||"boolean"===o?Xn(e):("number"===o?nr:"string"===o?(n=Dn(e))?(e=n,Qn):ar:e instanceof Dn?Qn:e instanceof Date?er:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?tr:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?rr:nr:ur))(t,e)}function lr(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function sr(t){return+t}var fr=[0,1];function pr(t){return t}function dr(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function hr(t,e,n){var r=t[0],o=t[1],i=e[0],a=e[1];return o<r?(r=dr(o,r),i=n(a,i)):(r=dr(r,o),i=n(i,a)),function(t){return i(r(t))}}function yr(t,e,n){var r=Math.min(t.length,e.length)-1,o=new Array(r),i=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)o[a]=dr(t[a],t[a+1]),i[a]=n(e[a],e[a+1]);return function(e){var n=dn(t,e,1,r)-1;return i[n](o[n](e))}}function gr(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function vr(){var t,e,n,r,o,i,a=fr,u=fr,c=cr,l=pr;function s(){var t,e,n,c=Math.min(a.length,u.length);return l!==pr&&(t=a[0],e=a[c-1],t>e&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),r=c>2?yr:hr,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?n:(o||(o=r(a.map(t),u,c)))(t(l(e)))}return f.invert=function(n){return l(e((i||(i=r(u,a.map(t),nr)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,sr),s()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),s()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),c=lr,s()},f.clamp=function(t){return arguments.length?(l=!!t||pr,s()):l!==pr},f.interpolate=function(t){return arguments.length?(c=t,s()):c},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,s()}}function mr(){return vr()(pr,pr)}var br,xr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Or(t){if(!(e=xr.exec(t)))throw new Error("invalid format: "+t);var e;return new wr({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function wr(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 jr(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Ar(t){return(t=jr(Math.abs(t)))?t[1]:NaN}function kr(t,e){var n=jr(t,e);if(!n)return t+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}Or.prototype=wr.prototype,wr.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};const Er={"%":(t,e)=>(100*t).toFixed(e),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,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>kr(100*t,e),r:kr,s:function(t,e){var n=jr(t,e);if(!n)return t+"";var r=n[0],o=n[1],i=o-(br=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+jr(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Mr(t){return t}var Sr,Pr,Cr,Tr=Array.prototype.map,Dr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _r(t,e,n,r){var o,i=on(t,e,n);switch((r=Or(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ar(e)/3)))-Ar(Math.abs(t)))}(i,a))||(r.precision=o),Cr(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ar(e)-Ar(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(t){return Math.max(0,-Ar(Math.abs(t)))}(i))||(r.precision=o-2*("%"===r.type))}return Pr(r)}function Ir(t){var e=t.domain;return t.ticks=function(t){var n=e();return nn(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return _r(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,o,i=e(),a=0,u=i.length-1,c=i[a],l=i[u],s=10;for(l<c&&(o=c,c=l,l=o,o=a,a=u,u=o);s-- >0;){if((o=rn(c,l,n))===r)return i[a]=c,i[u]=l,e(i);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o}r=o}return t},t}function Lr(){var t=mr();return t.copy=function(){return gr(t,Lr())},$e.apply(t,arguments),Ir(t)}function Nr(t){var e;function n(t){return null==t||isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,sr),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return Nr(t).unknown(e)},t=arguments.length?Array.from(t,sr):[0,1],Ir(n)}function Rr(t,e){var n,r=0,o=(t=t.slice()).length-1,i=t[r],a=t[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),t[r]=e.floor(i),t[o]=e.ceil(a),t}function Ur(t){return Math.log(t)}function zr(t){return Math.exp(t)}function Fr(t){return-Math.log(-t)}function Wr(t){return-Math.exp(-t)}function Hr(t){return isFinite(t)?+("1e"+t):t<0?0:t}function $r(t){return(e,n)=>-t(-e,n)}function Br(t){const e=t(Ur,zr),n=e.domain;let r,o,i=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),e=>Math.log(e)/t)}(i),o=function(t){return 10===t?Hr:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),n()[0]<0?(r=$r(r),o=$r(o),t(Fr,Wr)):t(Ur,zr),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(n(t),a()):n()},e.ticks=t=>{const e=n();let a=e[0],u=e[e.length-1];const c=u<a;c&&([a,u]=[u,a]);let l,s,f=r(a),p=r(u);const d=null==t?10:+t;let h=[];if(!(i%1)&&p-f<d){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<i;++l)if(s=f<0?l/o(-f):l*o(f),!(s<a)){if(s>u)break;h.push(s)}}else for(;f<=p;++f)for(l=i-1;l>=1;--l)if(s=f>0?l/o(-f):l*o(f),!(s<a)){if(s>u)break;h.push(s)}2*h.length<d&&(h=nn(a,u,d))}else h=nn(f,p,Math.min(p-f,d)).map(o);return c?h.reverse():h},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=Or(n)).precision||(n.trim=!0),n=Pr(n)),t===1/0)return n;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(r(t)));return e*i<i-.5&&(e*=i),e<=a?n(t):""}},e.nice=()=>n(Rr(n(),{floor:t=>o(Math.floor(r(t))),ceil:t=>o(Math.ceil(r(t)))})),e}function Vr(){const t=Br(vr()).domain([1,10]);return t.copy=()=>gr(t,Vr()).base(t.base()),$e.apply(t,arguments),t}function qr(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Gr(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Yr(t){var e=1,n=t(qr(e),Gr(e));return n.constant=function(n){return arguments.length?t(qr(e=+n),Gr(e)):e},Ir(n)}function Kr(){var t=Yr(vr());return t.copy=function(){return gr(t,Kr()).constant(t.constant())},$e.apply(t,arguments)}function Xr(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Zr(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Qr(t){return t<0?-t*t:t*t}function Jr(t){var e=t(pr,pr),n=1;function r(){return 1===n?t(pr,pr):.5===n?t(Zr,Qr):t(Xr(n),Xr(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,r()):n},Ir(e)}function to(){var t=Jr(vr());return t.copy=function(){return gr(t,to()).exponent(t.exponent())},$e.apply(t,arguments),t}function eo(){return to.apply(null,arguments).exponent(.5)}function no(t){return Math.sign(t)*t*t}function ro(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function oo(){var t,e=mr(),n=[0,1],r=!1;function o(n){var o=ro(e(n));return isNaN(o)?t:r?Math.round(o):o}return o.invert=function(t){return e.invert(no(t))},o.domain=function(t){return arguments.length?(e.domain(t),o):e.domain()},o.range=function(t){return arguments.length?(e.range((n=Array.from(t,sr)).map(no)),o):n.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(r=!!t,o):r},o.clamp=function(t){return arguments.length?(e.clamp(t),o):e.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return oo(e.domain(),n).round(r).clamp(e.clamp()).unknown(t)},$e.apply(o,arguments),Ir(o)}function io(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function ao(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function uo(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function co(t,e,n=0,r=t.length-1,o){for(o=void 0===o?uo:function(t=an){if(t===an)return uo;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=e-n+1,u=Math.log(i),c=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*c*(i-c)/i)*(a-i/2<0?-1:1);co(t,e,Math.max(n,Math.floor(e-a*c/i+l)),Math.min(r,Math.floor(e+(i-a)*c/i+l)),o)}const i=t[e];let a=n,u=r;for(lo(t,n,e),o(t[r],i)>0&&lo(t,n,r);a<u;){for(lo(t,a,u),++a,--u;o(t[a],i)<0;)++a;for(;o(t[u],i)>0;)--u}0===o(t[n],i)?lo(t,n,u):(++u,lo(t,u,r)),u<=e&&(n=u+1),e<=u&&(r=u-1)}return t}function lo(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function so(t,e,n){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}(t,n)),r=t.length){if((e=+e)<=0||r<2)return ao(t);if(e>=1)return io(t);var r,o=(r-1)*e,i=Math.floor(o),a=io(co(t,i).subarray(0,i+1));return a+(ao(t.subarray(i+1))-a)*(o-i)}}function fo(t,e,n=sn){if(r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,o=(r-1)*e,i=Math.floor(o),a=+n(t[i],i,t);return a+(+n(t[i+1],i+1,t)-a)*(o-i)}}function po(){var t,e=[],n=[],r=[];function o(){var t=0,o=Math.max(1,n.length);for(r=new Array(o-1);++t<o;)r[t-1]=fo(e,t/o);return i}function i(e){return null==e||isNaN(e=+e)?t:n[dn(r,e)]}return i.invertExtent=function(t){var o=n.indexOf(t);return o<0?[NaN,NaN]:[o>0?r[o-1]:e[0],o<r.length?r[o]:e[e.length-1]]},i.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(an),o()},i.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.quantiles=function(){return r.slice()},i.copy=function(){return po().domain(e).range(n).unknown(t)},$e.apply(i,arguments)}function ho(){var t,e=0,n=1,r=1,o=[.5],i=[0,1];function a(e){return null!=e&&e<=e?i[dn(o,e,0,r)]:t}function u(){var t=-1;for(o=new Array(r);++t<r;)o[t]=((t+1)*n-(t-r)*e)/(r+1);return a}return a.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,u()):[e,n]},a.range=function(t){return arguments.length?(r=(i=Array.from(t)).length-1,u()):i.slice()},a.invertExtent=function(t){var a=i.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,o[0]]:a>=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return ho().domain([e,n]).range(i).unknown(t)},$e.apply(Ir(a),arguments)}function yo(){var t,e=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[dn(e,o,0,r)]:t}return o.domain=function(t){return arguments.length?(e=Array.from(t),r=Math.min(e.length,n.length-1),o):e.slice()},o.range=function(t){return arguments.length?(n=Array.from(t),r=Math.min(e.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return yo().domain(e).range(n).unknown(t)},$e.apply(o,arguments)}Sr=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Mr:(e=Tr.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var o=t.length,i=[],a=0,u=e[0],c=0;o>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),i.push(t.substring(o-=u,o+u)),!((c+=u+1)>r));)u=e[a=(a+1)%e.length];return i.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?Mr:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Tr.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=Or(t)).fill,n=t.align,f=t.sign,p=t.symbol,d=t.zero,h=t.width,y=t.comma,g=t.precision,v=t.trim,m=t.type;"n"===m?(y=!0,m="g"):Er[m]||(void 0===g&&(g=12),v=!0,m="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",x="$"===p?i:/[%p]/.test(m)?c:"",O=Er[m],w=/[defgprs%]/.test(m);function j(t){var o,i,c,p=b,j=x;if("c"===m)j=O(t)+j,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:O(Math.abs(t),g),v&&(t=function(t){t:for(var e,n=t.length,r=1,o=-1;r<n;++r)switch(t[r]){case".":o=e=r;break;case"0":0===o&&(o=r),e=r;break;default:if(!+t[r])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),A&&0==+t&&"+"!==f&&(A=!1),p=(A?"("===f?f:l:"-"===f||"("===f?"":f)+p,j=("s"===m?Dr[8+br/3]:"")+j+(A&&"("===f?")":""),w)for(o=-1,i=t.length;++o<i;)if(48>(c=t.charCodeAt(o))||c>57){j=(46===c?a+t.slice(o+1):t.slice(o))+j,t=t.slice(0,o);break}}y&&!d&&(t=r(t,1/0));var k=p.length+t.length+j.length,E=k<h?new Array(h-k+1).join(e):"";switch(y&&d&&(t=r(E+t,E.length?h-j.length:1/0),E=""),n){case"<":t=p+t+j+E;break;case"=":t=p+E+t+j;break;case"^":t=E.slice(0,k=E.length>>1)+p+t+j+E.slice(k);break;default:t=E+p+t+j}return u(t)}return g=void 0===g?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),j.toString=function(){return t+""},j}return{format:f,formatPrefix:function(t,e){var n=f(((t=Or(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Ar(e)/3))),o=Math.pow(10,-r),i=Dr[8+r/3];return function(t){return n(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),Pr=Sr.format,Cr=Sr.formatPrefix;const go=1e3,vo=6e4,mo=36e5,bo=864e5,xo=6048e5,Oo=31536e6;var wo=new Date,jo=new Date;function Ao(t,e,n,r){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=function(e){return t(e=new Date(+e)),e},o.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},o.round=function(t){var e=o(t),n=o.ceil(t);return t-e<n-t?e:n},o.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},o.range=function(n,r,i){var a,u=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return u;do{u.push(a=new Date(+n)),e(n,i),t(n)}while(a<n&&n<r);return u},o.filter=function(n){return Ao((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(o.count=function(e,r){return wo.setTime(+e),jo.setTime(+r),t(wo),t(jo),Math.floor(n(wo,jo))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?function(e){return r(e)%t==0}:function(e){return o.count(0,e)%t==0}):o:null}),o}var ko=Ao((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));ko.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ao((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):ko:null};const Eo=ko;ko.range;var Mo=Ao((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*go)}),(function(t,e){return(e-t)/go}),(function(t){return t.getUTCSeconds()}));const So=Mo;Mo.range;var Po=Ao((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*go)}),(function(t,e){t.setTime(+t+e*vo)}),(function(t,e){return(e-t)/vo}),(function(t){return t.getMinutes()}));const Co=Po;Po.range;var To=Ao((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*go-t.getMinutes()*vo)}),(function(t,e){t.setTime(+t+e*mo)}),(function(t,e){return(e-t)/mo}),(function(t){return t.getHours()}));const Do=To;To.range;var _o=Ao((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*vo)/bo),(t=>t.getDate()-1));const Io=_o;function Lo(t){return Ao((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*vo)/xo}))}_o.range;var No=Lo(0),Ro=Lo(1),Uo=Lo(2),zo=Lo(3),Fo=Lo(4),Wo=Lo(5),Ho=Lo(6),$o=(No.range,Ro.range,Uo.range,zo.range,Fo.range,Wo.range,Ho.range,Ao((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));const Bo=$o;$o.range;var Vo=Ao((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Vo.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ao((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const qo=Vo;Vo.range;var Go=Ao((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*vo)}),(function(t,e){return(e-t)/vo}),(function(t){return t.getUTCMinutes()}));const Yo=Go;Go.range;var Ko=Ao((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*mo)}),(function(t,e){return(e-t)/mo}),(function(t){return t.getUTCHours()}));const Xo=Ko;Ko.range;var Zo=Ao((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/bo}),(function(t){return t.getUTCDate()-1}));const Qo=Zo;function Jo(t){return Ao((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/xo}))}Zo.range;var ti=Jo(0),ei=Jo(1),ni=Jo(2),ri=Jo(3),oi=Jo(4),ii=Jo(5),ai=Jo(6),ui=(ti.range,ei.range,ni.range,ri.range,oi.range,ii.range,ai.range,Ao((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})));const ci=ui;ui.range;var li=Ao((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));li.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ao((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const si=li;function fi(t,e,n,r,o,i){const a=[[So,1,go],[So,5,5e3],[So,15,15e3],[So,30,3e4],[i,1,vo],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,mo],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,bo],[r,2,1728e5],[n,1,xo],[e,1,2592e6],[e,3,7776e6],[t,1,Oo]];function u(e,n,r){const o=Math.abs(n-e)/r,i=cn((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(on(e/Oo,n/Oo,r));if(0===i)return Eo.every(Math.max(on(e,n,r),1));const[u,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return u.every(c)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const o=n&&"function"==typeof n.range?n:u(t,e,n),i=o?o.range(t,+e+1):[];return r?i.reverse():i},u]}li.range;const[pi,di]=fi(si,ci,ti,Qo,Xo,Yo),[hi,yi]=fi(qo,Bo,No,Io,Do,Co);function gi(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function vi(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function mi(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var bi,xi,Oi,wi={"-":"",_:" ",0:"0"},ji=/^\s*\d+/,Ai=/^%/,ki=/[\\^$*+?|[\]().{}]/g;function Ei(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(e)+o:o)}function Mi(t){return t.replace(ki,"\\$&")}function Si(t){return new RegExp("^(?:"+t.map(Mi).join("|")+")","i")}function Pi(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Ci(t,e,n){var r=ji.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ti(t,e,n){var r=ji.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Di(t,e,n){var r=ji.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function _i(t,e,n){var r=ji.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Ii(t,e,n){var r=ji.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Li(t,e,n){var r=ji.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ni(t,e,n){var r=ji.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ri(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ui(t,e,n){var r=ji.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function zi(t,e,n){var r=ji.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Fi(t,e,n){var r=ji.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Wi(t,e,n){var r=ji.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Hi(t,e,n){var r=ji.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function $i(t,e,n){var r=ji.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Bi(t,e,n){var r=ji.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Vi(t,e,n){var r=ji.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function qi(t,e,n){var r=ji.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Gi(t,e,n){var r=Ai.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Yi(t,e,n){var r=ji.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Ki(t,e,n){var r=ji.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Xi(t,e){return Ei(t.getDate(),e,2)}function Zi(t,e){return Ei(t.getHours(),e,2)}function Qi(t,e){return Ei(t.getHours()%12||12,e,2)}function Ji(t,e){return Ei(1+Io.count(qo(t),t),e,3)}function ta(t,e){return Ei(t.getMilliseconds(),e,3)}function ea(t,e){return ta(t,e)+"000"}function na(t,e){return Ei(t.getMonth()+1,e,2)}function ra(t,e){return Ei(t.getMinutes(),e,2)}function oa(t,e){return Ei(t.getSeconds(),e,2)}function ia(t){var e=t.getDay();return 0===e?7:e}function aa(t,e){return Ei(No.count(qo(t)-1,t),e,2)}function ua(t){var e=t.getDay();return e>=4||0===e?Fo(t):Fo.ceil(t)}function ca(t,e){return t=ua(t),Ei(Fo.count(qo(t),t)+(4===qo(t).getDay()),e,2)}function la(t){return t.getDay()}function sa(t,e){return Ei(Ro.count(qo(t)-1,t),e,2)}function fa(t,e){return Ei(t.getFullYear()%100,e,2)}function pa(t,e){return Ei((t=ua(t)).getFullYear()%100,e,2)}function da(t,e){return Ei(t.getFullYear()%1e4,e,4)}function ha(t,e){var n=t.getDay();return Ei((t=n>=4||0===n?Fo(t):Fo.ceil(t)).getFullYear()%1e4,e,4)}function ya(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Ei(e/60|0,"0",2)+Ei(e%60,"0",2)}function ga(t,e){return Ei(t.getUTCDate(),e,2)}function va(t,e){return Ei(t.getUTCHours(),e,2)}function ma(t,e){return Ei(t.getUTCHours()%12||12,e,2)}function ba(t,e){return Ei(1+Qo.count(si(t),t),e,3)}function xa(t,e){return Ei(t.getUTCMilliseconds(),e,3)}function Oa(t,e){return xa(t,e)+"000"}function wa(t,e){return Ei(t.getUTCMonth()+1,e,2)}function ja(t,e){return Ei(t.getUTCMinutes(),e,2)}function Aa(t,e){return Ei(t.getUTCSeconds(),e,2)}function ka(t){var e=t.getUTCDay();return 0===e?7:e}function Ea(t,e){return Ei(ti.count(si(t)-1,t),e,2)}function Ma(t){var e=t.getUTCDay();return e>=4||0===e?oi(t):oi.ceil(t)}function Sa(t,e){return t=Ma(t),Ei(oi.count(si(t),t)+(4===si(t).getUTCDay()),e,2)}function Pa(t){return t.getUTCDay()}function Ca(t,e){return Ei(ei.count(si(t)-1,t),e,2)}function Ta(t,e){return Ei(t.getUTCFullYear()%100,e,2)}function Da(t,e){return Ei((t=Ma(t)).getUTCFullYear()%100,e,2)}function _a(t,e){return Ei(t.getUTCFullYear()%1e4,e,4)}function Ia(t,e){var n=t.getUTCDay();return Ei((t=n>=4||0===n?oi(t):oi.ceil(t)).getUTCFullYear()%1e4,e,4)}function La(){return"+0000"}function Na(){return"%"}function Ra(t){return+t}function Ua(t){return Math.floor(+t/1e3)}function za(t){return new Date(t)}function Fa(t){return t instanceof Date?+t:+new Date(+t)}function Wa(t,e,n,r,o,i,a,u,c,l){var s=mr(),f=s.invert,p=s.domain,d=l(".%L"),h=l(":%S"),y=l("%I:%M"),g=l("%I %p"),v=l("%a %d"),m=l("%b %d"),b=l("%B"),x=l("%Y");function O(t){return(c(t)<t?d:u(t)<t?h:a(t)<t?y:i(t)<t?g:r(t)<t?o(t)<t?v:m:n(t)<t?b:x)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,Fa)):p().map(za)},s.ticks=function(e){var n=p();return t(n[0],n[n.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?O:l(e)},s.nice=function(t){var n=p();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?p(Rr(n,t)):s},s.copy=function(){return gr(s,Wa(t,e,n,r,o,i,a,u,c,l))},s}function Ha(){return $e.apply(Wa(hi,yi,qo,Bo,No,Io,Do,Co,So,xi).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function $a(){return $e.apply(Wa(pi,di,si,ci,ti,Qo,Xo,Yo,So,Oi).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ba(){var t,e,n,r,o,i=0,a=1,u=pr,c=!1;function l(e){return null==e||isNaN(e=+e)?o:u(0===n?.5:(e=(r(e)-t)*n,c?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var n,r;return arguments.length?([n,r]=e,u=t(n,r),l):[u(0),u(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,t=r(i=+i),e=r(a=+a),n=t===e?0:1/(e-t),l):[i,a]},l.clamp=function(t){return arguments.length?(c=!!t,l):c},l.interpolator=function(t){return arguments.length?(u=t,l):u},l.range=s(cr),l.rangeRound=s(lr),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return r=o,t=o(i),e=o(a),n=t===e?0:1/(e-t),l}}function Va(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function qa(){var t=Ir(Ba()(pr));return t.copy=function(){return Va(t,qa())},Be.apply(t,arguments)}function Ga(){var t=Br(Ba()).domain([1,10]);return t.copy=function(){return Va(t,Ga()).base(t.base())},Be.apply(t,arguments)}function Ya(){var t=Yr(Ba());return t.copy=function(){return Va(t,Ya()).constant(t.constant())},Be.apply(t,arguments)}function Ka(){var t=Jr(Ba());return t.copy=function(){return Va(t,Ka()).exponent(t.exponent())},Be.apply(t,arguments)}function Xa(){return Ka.apply(null,arguments).exponent(.5)}function Za(){var t=[],e=pr;function n(n){if(null!=n&&!isNaN(n=+n))return e((dn(t,n,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(an),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.range=function(){return t.map(((n,r)=>e(r/(t.length-1))))},n.quantiles=function(e){return Array.from({length:e+1},((n,r)=>so(t,r/e)))},n.copy=function(){return Za(e).domain(t)},Be.apply(n,arguments)}function Qa(t,e){void 0===e&&(e=t,t=cr);for(var n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);n<r;)i[n]=t(o,o=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return i[e](t-e)}}function Ja(){var t,e,n,r,o,i,a,u=0,c=.5,l=1,s=1,f=pr,p=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(s*t<s*e?r:o),f(p?Math.max(0,Math.min(1,t)):t))}function h(t){return function(e){var n,r,o;return arguments.length?([n,r,o]=e,f=Qa(t,[n,r,o]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([u,c,l]=a,t=i(u=+u),e=i(c=+c),n=i(l=+l),r=t===e?0:.5/(e-t),o=e===n?0:.5/(n-e),s=e<t?-1:1,d):[u,c,l]},d.clamp=function(t){return arguments.length?(p=!!t,d):p},d.interpolator=function(t){return arguments.length?(f=t,d):f},d.range=h(cr),d.rangeRound=h(lr),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return i=a,t=a(u),e=a(c),n=a(l),r=t===e?0:.5/(e-t),o=e===n?0:.5/(n-e),s=e<t?-1:1,d}}function tu(){var t=Ir(Ja()(pr));return t.copy=function(){return Va(t,tu())},Be.apply(t,arguments)}function eu(){var t=Br(Ja()).domain([.1,1,10]);return t.copy=function(){return Va(t,eu()).base(t.base())},Be.apply(t,arguments)}function nu(){var t=Yr(Ja());return t.copy=function(){return Va(t,nu()).constant(t.constant())},Be.apply(t,arguments)}function ru(){var t=Jr(Ja());return t.copy=function(){return Va(t,ru()).exponent(t.exponent())},Be.apply(t,arguments)}function ou(){return ru.apply(null,arguments).exponent(.5)}bi=function(t){var e=t.dateTime,n=t.date,r=t.time,o=t.periods,i=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,l=Si(o),s=Pi(o),f=Si(i),p=Pi(i),d=Si(a),h=Pi(a),y=Si(u),g=Pi(u),v=Si(c),m=Pi(c),b={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:Xi,e:Xi,f:ea,g:pa,G:ha,H:Zi,I:Qi,j:Ji,L:ta,m:na,M:ra,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Ra,s:Ua,S:oa,u:ia,U:aa,V:ca,w:la,W:sa,x:null,X:null,y:fa,Y:da,Z:ya,"%":Na},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:ga,e:ga,f:Oa,g:Da,G:Ia,H:va,I:ma,j:ba,L:xa,m:wa,M:ja,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Ra,s:Ua,S:Aa,u:ka,U:Ea,V:Sa,w:Pa,W:Ca,x:null,X:null,y:Ta,Y:_a,Z:La,"%":Na},O={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return A(t,e,n,r)},d:Fi,e:Fi,f:qi,g:Ni,G:Li,H:Hi,I:Hi,j:Wi,L:Vi,m:zi,M:$i,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=s.get(r[0].toLowerCase()),n+r[0].length):-1},q:Ui,Q:Yi,s:Ki,S:Bi,u:Ti,U:Di,V:_i,w:Ci,W:Ii,x:function(t,e,r){return A(t,n,e,r)},X:function(t,e,n){return A(t,r,e,n)},y:Ni,Y:Li,Z:Ri,"%":Gi};function w(t,e){return function(n){var r,o,i,a=[],u=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++u<l;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(o=wi[r=t.charAt(++u)])?r=t.charAt(++u):o="e"===r?" ":"0",(i=e[r])&&(r=i(n,o)),a.push(r),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function j(t,e){return function(n){var r,o,i=mi(1900,void 0,1);if(A(i,t,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=vi(mi(i.y,0,1))).getUTCDay(),r=o>4||0===o?ei.ceil(r):ei(r),r=Qo.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=gi(mi(i.y,0,1))).getDay(),r=o>4||0===o?Ro.ceil(r):Ro(r),r=Io.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?vi(mi(i.y,0,1)).getUTCDay():gi(mi(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,vi(i)):gi(i)}}function A(t,e,n,r){for(var o,i,a=0,u=e.length,c=n.length;a<u;){if(r>=c)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=O[o in wi?e.charAt(a++):o])||(r=i(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),x.x=w(n,x),x.X=w(r,x),x.c=w(e,x),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=j(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=j(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),xi=bi.format,bi.parse,Oi=bi.utcFormat,bi.utcParse;var iu=["linear","time","log","sqrt"];function au(t){return"function"==typeof t?E(t.copy)&&E(t.domain)&&E(t.range):"string"==typeof t&&iu.includes(t)}function uu(t,e){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[e])}function cu(t,e){if(!t.data)return"linear";var n=M(t[e]);return ae(t.data.map((function(t){var r=Me()(n(t))?n(t)[e]:n(t);return void 0!==r?r:t[e]})))?"time":"linear"}function lu(e){if(au(e)){var n="scale".concat((r=e)&&r[0].toUpperCase()+r.slice(1));return t[n]()}var r;return Lr()}function su(t,e){var n=fu(t,e);return n?"string"==typeof n?lu(n):n:lu(function(t,e){var n;if(t.domain&&t.domain[e]?n=t.domain[e]:t.domain&&Array.isArray(t.domain)&&(n=t.domain),n)return ae(n)?"time":"linear"}(t,e)||cu(t,e))}function fu(t,e){if(uu(t,e)){var n=t.scale[e]||t.scale;return au(n)?E(n)?n:lu(n):void 0}}function pu(t,e){return function(t,e){if(uu(t,e)){var n=t.scale[e]||t.scale;return"string"==typeof n?n:function(t){if("string"==typeof t)return t;var e=du.filter((function(e){return void 0!==t[e.method]}))[0];return e?e.name:void 0}(n)}}(t,e)||cu(t,e)}var du=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function hu(t){return!(!t||!t["@@__IMMUTABLE_ITERABLE__@@"])}function yu(t,e){return hu(t)?t.reduce((function(t,n,r){var o=n;return e&&e[r]&&(o=yu(n)),t[r]=o,t}),function(t){return!(!t||!t["@@__IMMUTABLE_LIST__@@"])}(t)?[]:{}):t}function gu(t){return function(t){if(Array.isArray(t))return vu(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return vu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vu(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vu(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function mu(t){var e;return hu(e=t)||function(t){return!(!t||!t["@@__IMMUTABLE_RECORD__@@"])}(e)?yu(t,{errorX:!0,errorY:!0}):t}function bu(t,e){var n=(Me()(t.domain)?t.domain[e]:t.domain)||su(t,e).domain(),r=t.samples||1,o=Math.max.apply(Math,gu(n)),i=Math.min.apply(Math,gu(n)),a=P(i,o,(o-i)/r);return a[a.length-1]===o?a:a.concat(o)}function xu(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ascending";if(!e)return t;var r=e;"x"!==e&&"y"!==e||(r="_".concat(e));var o="ascending"===n?"asc":"desc";return _e()(t,r,o)}function Ou(t,e){var n=ku(t,e),r=Eu(t,e),o=function(t,e){if(!Array.isArray(t.data)&&!hu(t.data))return[];var n=M(void 0===t[e]?e:t[e]);return xu(t.data.reduce((function(t,e){return t.push(mu(e)),t}),[]),t.sortKey,t.sortOrder).reduce((function(t,e){var r=mu(e);return t.push(n(r)),t}),[]).filter((function(t){return"string"==typeof t})).reduce((function(t,e){return null!=e&&-1===t.indexOf(e)&&t.push(e),t}),[])}(t,e),i=Te()([].concat(gu(n),gu(r),gu(o)));return 0===i.length?null:i.reduce((function(t,e,n){return t[e]=n+1,t}),{})}function wu(t,e,n){if(!Array.isArray(t)&&!hu(t)||function(t){return hu(t)?t.size:t.length}(t)<1)return[];var r,o=["x","y","y0"],a=(n=Array.isArray(n)?n:o).reduce((function(t,n){var r;return t[n]=M(void 0!==e[r=n]?e[r]:r),t}),{}),u=We()(n,o)&&"_x"===e.x&&"_y"===e.y&&"_y0"===e.y0;!1===u&&(r={x:-1!==n.indexOf("x")?Ou(e,"x"):void 0,y:-1!==n.indexOf("y")?Ou(e,"y"):void 0,y0:-1!==n.indexOf("y0")?Ou(e,"y"):void 0});var c=u?t:t.reduce((function(t,e,o){var u=mu(e),c={x:o,y:u},l=n.reduce((function(t,e){var n=a[e](u),o=void 0!==n?n:c[e];return void 0!==o&&("string"==typeof o&&r[e]?(t["".concat(e,"Name")]=o,t["_".concat(e)]=r[e][o]):t["_".concat(e)]=o),t}),{}),s=Object.assign({},l,u);return i()(s)||t.push(s),t}),[]),l=function(t,e){var n=1/Number.MAX_SAFE_INTEGER,r={x:pu(e,"x"),y:pu(e,"y")};if("log"!==r.x&&"log"!==r.y)return t;var o=function(t,e){return"log"!==r[e]||0!==t["_".concat(e)]};return t.map((function(t){return o(t,"x")&&o(t,"y")&&o(t,"y0")?t:function(t){var e=o(t,"x")?t._x:n,r=o(t,"y")?t._y:n,i=o(t,"y0")?t._y0:n;return Object.assign({},t,{_x:e,_y:r,_y0:i})}(t)}))}(xu(c,e.sortKey,e.sortOrder),e);return function(t,e){var n,r=!!t.eventKey,o=E(n=t.eventKey)?n:null==n?function(){}:d()(n);return e.map((function(t,e){if(void 0!==t.eventKey)return t;if(r){var n=o(t,e);return void 0!==n?Object.assign({eventKey:n},t):t}return t}))}(e,l)}function ju(t,e){return t.categories&&!Array.isArray(t.categories)?t.categories[e]:t.categories}function Au(t){return t.data?wu(t.data,t):wu(function(t){var e=bu(t,"x"),n=bu(t,"y");return e.map((function(t,e){return{x:t,y:n[e]}}))}(t),t)}function ku(t,e){var n=t.tickValues,r=t.tickFormat;return(n&&(Array.isArray(n)||n[e])?n[e]||n:r&&Array.isArray(r)?r:[]).filter((function(t){return"string"==typeof t}))}function Eu(t,e){if(!t.categories)return[];var n=ju(t,e),r=n&&n.filter((function(t){return"string"==typeof t}));return r?le(r):[]}function Mu(t){return function(t){if(Array.isArray(t))return Su(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Su(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Su(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Su(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Pu(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"min",r=function(t){return"max"===n?Math.max.apply(Math,Mu(t)):Math.min.apply(Math,Mu(t))},o="max"===n?-1/0:1/0,i=!1,a=t.flat().reduce((function(t,n){var o=void 0!==n["_".concat(e,"0")]?n["_".concat(e,"0")]:n["_".concat(e)],a=void 0!==n["_".concat(e,"1")]?n["_".concat(e,"1")]:n["_".concat(e)],u=r([o,a]);return i=i||o instanceof Date||a instanceof Date,r([t,u])}),o);return i?new Date(a):a}function Cu(t,e){var n=E(t)?t:Du,r=E(e)?e:Tu;return function(t,e){var o=Iu(t,e);if(o)return r(o,t,e);var i=ju(t,e),a=i?function(t,e,n){var r=n||ju(t,e),o=t.polar,i=t.startAngle,a=void 0===i?0:i,u=t.endAngle,c=void 0===u?360:u;if(r){var l=Nu(t,e),s=Lu(t,e),f=ie(r)?Eu(t,e):[],p=0===f.length?null:f.reduce((function(t,e,n){return t[e]=n+1,t}),{}),d=p?r.map((function(t){return p[t]})):r,h=_u(void 0!==l?l:fe(d),void 0!==s?s:se(d));return o&&"x"===e&&360===Math.abs(a-c)?Ru(h,d):h}}(t,e,i):n(t,e);return a?r(a,t,e):void 0}}function Tu(t,e,n){return function(t,e,n){return"log"!==pu(e,n)?t:(o=(r=t)[0]<0||r[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER,[0===r[0]?o:r[0],0===r[1]?o:r[1]]);var r,o}(function(t,e,n){if(!e.domainPadding)return t;var r=Nu(e,n),o=Lu(e,n),i=function(t,e){var n=function(t){return Array.isArray(t)?{left:t[0],right:t[1]}:{left:t,right:t}};return Me()(t.domainPadding)?n(t.domainPadding[e]):n(t.domainPadding)}(e,n);if(!i.left&&!i.right)return t;var a=fe(t),u=se(t),c=function(t,e){return e?"x"===t?"y":"x":t}(n,e.horizontal),l=A(e,c),s=Math.abs(l[0]-l[1]),f=Math.max(s-i.left-i.right,1),p=Math.abs(u.valueOf()-a.valueOf())/f*s,d=p*i.left/s,h=p*i.right/s,y={min:a.valueOf()-d,max:u.valueOf()+h},g=Me()(e.singleQuadrantDomainPadding)?e.singleQuadrantDomainPadding[n]:e.singleQuadrantDomainPadding,v=function(t,e){return"min"===e&&a>=0&&t<=0||"max"===e&&u<=0&&t>=0?0:t};if((a>=0&&y.min<=0||u<=0&&y.max>=0)&&!1!==g){var m={left:Math.abs(u-a)*i.left/s,right:Math.abs(u-a)*i.right/s},b={min:v(a.valueOf()-m.left,"min"),max:v(u.valueOf()+m.right,"max")},x={left:Math.abs(b.max-b.min)*i.left/s,right:Math.abs(b.max-b.min)*i.right/s};y={min:v(a.valueOf()-x.left,"min"),max:v(u.valueOf()+x.right,"max")}}var O={min:void 0!==r?r:y.min,max:void 0!==o?o:y.max};return a instanceof Date||u instanceof Date?_u(new Date(O.min),new Date(O.max)):_u(O.min,O.max)}(t,e,n),e,n)}function Du(t,e,n){var r=n||Au(t),o=t.polar,i=t.startAngle,a=void 0===i?0:i,u=t.endAngle,c=void 0===u?360:u,l=Nu(t,e),s=Lu(t,e);if(r.length<1)return void 0!==l&&void 0!==s?_u(l,s):void 0;var f=_u(void 0!==l?l:Pu(r,e,"min"),void 0!==s?s:Pu(r,e,"max"));return o&&"x"===e&&360===Math.abs(a-c)?Ru(f,function(t,e){var n="_".concat(e);return t.flat().map((function(t){return t[n]&&void 0!==t[n][1]?t[n][1]:t[n]}))}(r,e)):f}function _u(t,e){var n,r,o,i;return Number(t)===Number(e)?(r=0===(n=e)?2*Math.pow(10,-10):Math.pow(10,-10),o=n instanceof Date?new Date(Number(n)-1):Number(n)-r,i=n instanceof Date?new Date(Number(n)+1):Number(n)+r,0===n?[0,i]:[o,i]):[t,e]}function Iu(t,e){var n=Nu(t,e),r=Lu(t,e);return Me()(t.domain)&&t.domain[e]?t.domain[e]:Array.isArray(t.domain)?t.domain:void 0!==n&&void 0!==r?_u(n,r):void 0}function Lu(t,e){return Me()(t.maxDomain)&&void 0!==t.maxDomain[e]?t.maxDomain[e]:"number"==typeof t.maxDomain||Le()(t.maxDomain)?t.maxDomain:void 0}function Nu(t,e){return Me()(t.minDomain)&&void 0!==t.minDomain[e]?t.minDomain[e]:"number"==typeof t.minDomain||Le()(t.minDomain)?t.minDomain:void 0}function Ru(t,e){var n=Re()(e.sort((function(t,e){return t-e}))),r=n[1]-n[0];return[t[0],t[1]+r]}function Uu(t){var e=function(t){return t&&t.type?t.type.role:""},n=e(t);if("portal"===n){var r=l().Children.toArray(t.props.children);n=r.length?e(r[0]):""}return["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(n)}function zu(t){return function(t){if(Array.isArray(t))return Fu(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Fu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fu(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fu(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Wu(t){return t}function Hu(t){return t.dependentAxis?"y":"x"}function $u(t,e){var n=e||Wu,r=function(t){return t.reduce((function(t,e){return e.type&&"axis"===e.type.role&&n(e)?t.concat(e):e.props&&e.props.children?t.concat(r(l().Children.toArray(e.props.children))):t}),[])};return r(t)}function Bu(t,e){return $u(t,(function(t){return t.type.getAxis(t.props)===e}))[0]}function Vu(t,e){var n=function(t){return t.reduce((function(t,r){return r.type&&"axis"===r.type.role&&function(t){return"dependent"===e?t.props.dependentAxis:!t.props.dependentAxis}(r)||r.props&&r.props.children&&n(l().Children.toArray(r.props.children)).length>0?t.concat(r):t}),[])};return n(t)}function qu(t){var e=function(t){var e=Math.min.apply(Math,zu(t)),n=Math.max.apply(Math,zu(t));return n<0?n:Math.max(0,e)};return{x:ae(t.x)?new Date(Math.min.apply(Math,zu(t.x))):e(t.x),y:ae(t.y)?new Date(Math.min.apply(Math,zu(t.y))):e(t.y)}}function Gu(t,e){return ae(e)?"positive":t<=0&&Math.max.apply(Math,zu(e))<=0?"negative":"positive"}function Yu(t){return{top:!1,bottom:!1,left:!0,right:!0}[t.orientation||(t.dependentAxis?"left":"bottom")]}function Ku(t){return void 0!==t.tickValues&&ie(t.tickValues)}function Xu(t){var e=t.tickValues,n=t.tickFormat;if(0===(null==e?void 0:e.length))return[];var r=Hu(t),o=t.stringMap&&t.stringMap[r],i=e;o&&(i=function(t){var e,n=Hu(t),r=t.stringMap&&t.stringMap[n],o=Array.isArray(t.categories)?t.categories:t.categories&&t.categories[n],i=o&&oe(e=o)&&e.every((function(t){return"string"==typeof t}))?o.map((function(t){return r[t]})):void 0,a=r&&Object.values(r);return i&&0!==i.length?i:a}(t)),e&&ie(e)&&(i=o?e.map((function(t){return o[t]})):P(1,e.length+1));var a=i?Te()(i):function(){if(n&&Array.isArray(n))return ie(n)?n.map((function(t,e){return e})):n}();return Array.isArray(a)&&a.length?function(e){var n=[],o=t.domain&&t.domain[r]||t.domain;if(e)return e.forEach((function(t,e){Array.isArray(o)?t>=fe(o)&&t<=se(o)&&n.push({value:t,index:e}):n.push({value:t,index:e})})),n}(a):void 0}function Zu(t,e){var n=t.tickFormat,r=Hu(t),o=t.stringMap&&t.stringMap[r];if(!n){var i=function(t){var e=t.tickValues,n=Hu(t),r=t.stringMap&&t.stringMap[n],o=e&&!ae(e)?function(t){return t}:void 0;if(!r)return Ku(t)?function(t,n){return e[n]}:o;var i=r&&h(r),a=_e()(Object.values(r),(function(t){return t})).map((function(t){return i[t]})),u=[""].concat(zu(a),[""]);return function(t){return u[t]}}(t),a=e.tickFormat&&E(e.tickFormat)?e.tickFormat():function(t){return t};return i||a}if(n&&Array.isArray(n)){var u=Xu(t),c=null==u?void 0:u.map((function(t){return t.index})),l=n.filter((function(t,e){return null==c?void 0:c.includes(e)}));return function(t,e){return l[e]}}return n&&E(n)?o?function(e,n,r){var i=h(o),a=r.map((function(t){return i[t]}));return t.tickFormat(i[e],n,a)}:n:function(t){return t}}function Qu(t,e){if(!e||!Array.isArray(t)||t.length<=e)return t;var n=Math.floor(t.length/e);return t.filter((function(t,e){return e%n==0}))}function Ju(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.tickCount,o=Xu(t);if(0===(null==o?void 0:o.length))return[""];var i=o?o.map((function(t){return t.value})):void 0;if(i)return Qu(i,r);if(e.ticks&&E(e.ticks)){var a=r||5,u=e.ticks(a),c=Array.isArray(u)&&u.length?u:e.domain(),l=Qu(c,r);if(n){var s=l.filter((function(t){return 0!==t}));return s.length?s:l}return l}return e.domain()}function tc(t,e){var n=t.polar,r=t.startAngle,o=void 0===r?0:r,i=t.endAngle,a=void 0===i?360:i,u=Xu(t),c=u&&0!==(null==u?void 0:u.length)?u.map((function(t){return t.value})):void 0;if(Array.isArray(c)){var l=Nu(t,e),s=Lu(t,e),f=Ku(t),p=c.map((function(t){return Number(t)})),d=f?1:fe(p),h=f?c.length:se(p),y=_u(void 0!==l?l:d,void 0!==s?s:h),g=n&&"x"===e&&360===Math.abs(o-a)?Ru(y,p):y;return Yu(t)&&!n&&g.reverse(),g}}function ec(t,e){var n=Hu(t);if(!e||e===n)return Cu(tc)(t,n)}function nc(t,e){if(t.axisValue){var n="x"===e?"y":"x",r=G()(t.scale)&&E(t.scale[n])?t.scale[n]:void 0;if(r){var o="x"===e?"y":"x",i=G()(t.stringMap)&&t.stringMap[o];return r(i&&"string"==typeof t.axisValue?i[t.axisValue]:t.axisValue)}}}function rc(t,e){if(!G()(t.theme))return S(t,e,"axis");var n="axis";if(t.dependentAxis&&t.theme.dependentAxis?n="dependentAxis":!t.dependentAxis&&t.theme.independentAxis&&(n="independentAxis"),"axis"===n)return S(t,e,"axis");var r=u()({},t.theme[n],t.theme.axis),o=Object.assign({},t.theme,{axis:r});return S(Object.assign({},t,{theme:o}),e,"axis")}var oc=r(4912),ic=r.n(oc);function ac(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uc(t){return function(t){if(Array.isArray(t))return cc(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return cc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cc(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var lc=/^onGlobal(.*)$/;function sc(t,e,n,r){var o,i=this,a=function(t){var r,o=(r=t.reduce((function(t,n){return void 0!==n.target?(Array.isArray(n.target)?n.target.includes(e):"".concat(n.target)==="".concat(e))?t.concat(n):t:t.concat(n)}),[]),void 0!==n&&"parent"!==e?r.filter((function(t){var e=t.eventKey,r=function(t){return!t||"".concat(t)==="".concat(n)};return Array.isArray(e)?e.some((function(t){return r(t)})):r(e)})):r);return Array.isArray(o)&&o.reduce((function(t,e){return e?Object.assign(t,e.eventHandlers):t}),{})},u=Array.isArray(i.componentEvents)?Array.isArray(t.events)?(o=i.componentEvents).concat.apply(o,uc(t.events)):i.componentEvents:t.events,c=u&&E(r)?r(a(u),e):void 0;if(!t.sharedEvents)return c;var l=t.sharedEvents.getEvents,s=t.sharedEvents.events&&l(a(t.sharedEvents.events),e);return Object.assign({},s,c)}function fc(t,e,n,r){var o=this;if(i()(t))return{};var a=r||this.baseProps,u=function(t,e){var n=t.childName,r=t.target,i=t.key,u="props"===e?a:o.state||{},c=null!=n&&u[n]?u[n]:u;return"parent"===i?c.parent:c[i]&&c[i][r]},c=function(t,r){var i="parent"===e?t.childName:t.childName||n,c=t.target||e,l=function(e,n){var r=o.state||{};if(!E(t.mutation))return r;var i=u({childName:n,key:e,target:c},"props"),l=u({childName:n,key:e,target:c},"state"),s=t.mutation(Object.assign({},i,l),a),f=r[n]||{},p=function(t){return s?function(t){return"parent"===c?Object.assign(t,ac({},e,Object.assign(t[e]||{},s))):Object.assign(t,ac({},e,Object.assign(t[e]||{},ac({},c,s))))}(t):function(t){return t[e]&&t[e][c]&&delete t[e][c],t[e]&&!Object.keys(t[e]).length&&delete t[e],t}(t)};return null!=n?Object.assign(r,ac({},n,p(f))):p(r)},s=function(e){var n=function(e){return"parent"===c?"parent":"all"===t.eventKey?a[e]?Object.keys(a[e]).filter((function(t){return"parent"!==t})):Object.keys(a).filter((function(t){return"parent"!==t})):void 0===t.eventKey&&"parent"===r?a[e]?Object.keys(a[e]):Object.keys(a):void 0!==t.eventKey?t.eventKey:r}(e);return Array.isArray(n)?n.reduce((function(t,n){return Object.assign(t,l(n,e))}),{}):l(n,e)},f="all"===i?Object.keys(a).filter((function(t){return"parent"!==t})):i;return Array.isArray(f)?f.reduce((function(t,e){return Object.assign(t,s(e))}),{}):s(f)},l=function(e,n,r,a){var u=t[a](e,n,r,o);if(!i()(u)){var l=function(t){var e=function(t){return E(t.callback)&&t.callback},n=(Array.isArray(t)?t.map((function(t){return e(t)})):[e(t)]).filter((function(t){return!1!==t}));return n.length?function(){return n.forEach((function(t){return t()}))}:void 0}(u);o.setState(function(t,e){return Array.isArray(t)?t.reduce((function(t,n){return Object.assign({},t,c(n,e))}),{}):c(t,e)}(u,r),l)}};return Object.keys(t).reduce((function(t,e){return t[e]=l,t}),{})}function pc(t,e,n){return t?Object.keys(t).reduce((function(r,o){return r[o]=function(r){return t[o](r,n,e,o)},r}),{}):{}}function dc(t,e,n){var r=this.state||{};return n?r[n]&&r[n][t]&&r[n][t][e]:"parent"===t?r[t]&&r[t][e]||r[t]:r[t]&&r[t][e]}function hc(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=Object.keys(e);return o.reduce((function(o,a){var u=n[a]||{},c=e[a]||{};if("parent"===a){var l=yc(t,c,u,{eventKey:a,target:"parent"});o[a]=void 0!==l?Object.assign({},u,l):u}else{var s=Te()(Object.keys(c).concat(Object.keys(u)));o[a]=s.reduce((function(e,n){var o={eventKey:a,target:n,childName:r},l=yc(t,c[n],u[n],o);return e[n]=void 0!==l?Object.assign({},u[n],l):u[n],ic()(e,(function(t){return!i()(t)}))}),{})}return ic()(o,(function(t){return!i()(t)}))}),{})}function yc(t,e,n,r){var o=function(t,e){return"string"==typeof t[e]?"all"===t[e]||t[e]===r[e]:!!Array.isArray(t[e])&&t[e].map((function(t){return"".concat(t)})).includes(r[e])},a=Array.isArray(t)?t:[t];r.childName&&(a=t.filter((function(t){return o(t,"childName")})));var u=a.filter((function(t){return o(t,"target")}));if(!i()(u)){var c=u.filter((function(t){return o(t,"eventKey")}));if(!i()(c))return c.reduce((function(t,r){var o=(r&&E(r.mutation)?r.mutation:function(){})(Object.assign({},e,n));return Object.assign({},t,o)}),{})}}function gc(t,e){var n=Array.isArray(e)&&e.reduce((function(e,n){var r=t[n],o=r&&r.type&&r.type.defaultEvents,i=E(o)?o(r.props):o;return Array.isArray(i)?e.concat.apply(e,uc(i)):e}),[]);return n&&n.length?n:void 0}function vc(t){var e=t.match(lc);return e&&e[1]&&e[1].toLowerCase()}var mc=function(t){return ic()(t,(function(t,e){return lc.test(e)}))},bc=function(t){return ze()(t,(function(t,e){return lc.test(e)}))},xc=function(t){return Object.assign(t,{nativeEvent:t})};function Oc(t){return function(t){if(Array.isArray(t))return wc(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return wc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wc(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function jc(t,e,n){var r,o=n||l().Children.toArray(t.children),i=Iu(t,e),a=function(t,e,n){if(!t.polar&&"x"===e){var r=n.filter((function(t){return t.type&&t.type.role&&"group"===t.type.role}));if(!(r.length<1)){var o=r[0].props,i=o.offset,a=o.children;if(i){var u=Array.isArray(a)&&a[0];if(u){var c=u.props.barWidth,l=u.props.data&&u.props.data.length||1;if(u&&"stack"===u.type.role){var s=u.props.children&&u.props.children[0];if(!s)return;c=s.props.barWidth,l=u.props.children.length}var f=c||function(t,e,n){var r=t.datasets,o=A(t,t.horizontal?"y":"x"),i=Math.abs(o[1]-o[0]),a=void 0!==n?n:Array.isArray(r[0])&&r[0].length||1,u=(e||r.length)*a;return Math.round(.5*i/u)}(t,a.length,l);return{x:f*a.length/2+(i-f*((a.length-1)/2))}}}}}}(t,e,o);if(i)r=i;else{var u=Nu(t,e),c=Lu(t,e),s=(t.data||t.y)&&Au(t),f=s?Du(t,e,s):[],p=function(t,e,n){var r=n?n.slice(0):l().Children.toArray(t.children),o=t.data?Au(t):void 0,i=t.polar,a=t.startAngle,u=t.endAngle,c=t.categories,s=t.minDomain,f=t.maxDomain,p={horizontal:t.horizontal,polar:i,startAngle:a,endAngle:u,minDomain:s,maxDomain:f,categories:c},d=o?Object.assign(p,{data:o}):p,h=C(r,(function(t){var n=Object.assign({},t.props,d);return Uu(t)?t.type&&E(t.type.getDomain)?t.props&&t.type.getDomain(n,e):function(t,e){return Cu()(t,e)}(n,e):null}),t);return[0===h.length?0:fe(h),0===h.length?1:se(h)]}(t,e,o);r=_u(u||fe([].concat(Oc(f),Oc(p))),c||se([].concat(Oc(f),Oc(p))))}return Tu(r,Object.assign({domainPadding:a},t),e)}function Ac(t,e,n){if(t.data)return su(t,e);var r=n?n.slice(0):l().Children.toArray(t.children),o=Te()(C(r,(function(n){return pu(Object.assign({},n.props,{horizontal:t.horizontal}),e)}),t));return o.length>1?lu("linear"):lu(o[0])}function kc(t,e,n){var r=Me()(t.categories)?t.categories[e]:t.categories,o=Bu(n,e),i=o?ku(o.props,e):[],a=r||function(t,e){return C(t.slice(0),(function(t){var n=t.props||{};if(!Uu(t)||!n.categories)return null;var r=n.categories&&!Array.isArray(n.categories)?n.categories[e]:n.props.categories,o=r&&r.filter((function(t){return"string"==typeof t}));return o?le(o):[]}))}(n,e);return Te()([].concat(Oc(a),Oc(i)).flat())}function Ec(t,e){var n=e||l().Children.toArray(t.children),r=kc(t,"x",n),o=kc(t,"y",n),i=function(t){return C(t.slice(0),(function(t){var e=t.props||{};return function(t){var e=function(t){return t&&t.type?t.type.role:""},n=e(t);if("portal"===n){var r=l().Children.toArray(t.props.children);n=r.length?e(r[0]):""}return["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(n)}(t)?(t.type&&E(t.type.getData)?t.type.getData(e):Au(e)).map((function(t){return{x:t.xName,y:t.yName}})):null}),{},{x:[],y:[]},(function(t,e){var n=Array.isArray(e)?e.map((function(t){return t.x})).filter(Boolean):e.x,r=Array.isArray(e)?e.map((function(t){return t.y})).filter(Boolean):e.y;return{x:void 0!==n?t.x.concat(n):t.x,y:void 0!==r?t.y.concat(r):t.y}}))}(n);return{x:Te()([].concat(Oc(r),Oc(i.x)).flat()),y:Te()([].concat(Oc(o),Oc(i.y)).flat())}}var Mc=r(7314),Sc=r.n(Mc),Pc=r(7491),Cc=r.n(Pc),Tc=r(2516),Dc=r.n(Tc);function _c(t,e){if(t){if("string"==typeof t)return Ic(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ic(t,e):void 0}}function Ic(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Lc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Nc(t,e){return Nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Nc(t,e)}function Rc(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Uc(t)}function Uc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function zc(t){return zc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zc(t)}var Fc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nc(t,e)}(c,t);var e,n,r,o,a=(r=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=zc(r);if(o){var n=zc(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Rc(this,t)});function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=a.call(this,t)).getScopedEvents=void 0,e.getEventState=void 0,e.baseProps=void 0,e.sharedEventsCache=void 0,e.globalEvents=void 0,e.prevGlobalEventKeys=void 0,e.boundGlobalEvents=void 0,e.getScopedEvents=fc.bind(Uc(e)),e.getEventState=dc.bind(Uc(e)),e.state=e.state||{},e.sharedEventsCache={},e.globalEvents={},e.prevGlobalEventKeys=[],e.boundGlobalEvents={},e.baseProps=e.getBaseProps(t),e}return e=c,n=[{key:"shouldComponentUpdate",value:function(t){if(!Cc()(this.props,t)){this.baseProps=this.getBaseProps(t);var e=this.getExternalMutations(t,this.baseProps);this.applyExternalMutations(t,e)}return!0}},{key:"componentDidMount",value:function(){var t=this,e=Object.keys(this.globalEvents);e.forEach((function(e){return t.addGlobalListener(e)})),this.prevGlobalEventKeys=e}},{key:"componentDidUpdate",value:function(){var t=this,e=Object.keys(this.globalEvents);ue(this.prevGlobalEventKeys,e).forEach((function(e){return t.removeGlobalListener(e)})),ue(e,this.prevGlobalEventKeys).forEach((function(e){return t.addGlobalListener(e)})),this.prevGlobalEventKeys=e}},{key:"componentWillUnmount",value:function(){var t=this;this.prevGlobalEventKeys.forEach((function(e){return t.removeGlobalListener(e)}))}},{key:"addGlobalListener",value:function(t){var e=this,n=function(n){var r=e.globalEvents[t];return r&&r(xc(n))};this.boundGlobalEvents[t]=n,window.addEventListener(vc(t),n)}},{key:"removeGlobalListener",value:function(t){window.removeEventListener(vc(t),this.boundGlobalEvents[t])}},{key:"getAllEvents",value:function(t){var e,n=gc(t,["container","groupComponent"]);return Array.isArray(n)?Array.isArray(t.events)?n.concat.apply(n,function(t){if(Array.isArray(t))return Ic(t)}(e=t.events)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||_c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):n:t.events}},{key:"applyExternalMutations",value:function(t,e){if(!i()(e)){var n=t.externalEventMutations.reduce((function(t,e){return E(e.callback)?t.concat(e.callback):t}),[]),r=n.length?function(){n.forEach((function(t){return t()}))}:void 0;this.setState(e,r)}}},{key:"getExternalMutations",value:function(t,e){return i()(t.externalEventMutations)?void 0:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(arguments.length>3?arguments[3]:void 0).reduce((function(r,o){var a=n[o],u=hc(t,e[o],n[o],o);return r[o]=u||a,ic()(r,(function(t){return!i()(t)}))}),{})}(t.externalEventMutations,e,this.state,Object.keys(e))}},{key:"cacheSharedEvents",value:function(t,e,n){this.sharedEventsCache[t]=[e,n]}},{key:"getCachedSharedEvents",value:function(t,e){var n,r,o=(n=this.sharedEventsCache[t]||[],r=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(n,r)||_c(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];if(i&&Cc()(e,a))return i}},{key:"getBaseProps",value:function(t){var e=t.container,n=l().Children.toArray(this.props.children),r=this.getBasePropsFromChildren(n),o=e?e.props:{};return Object.assign({},r,{parent:o})}},{key:"getBasePropsFromChildren",value:function(t){var e=C(t,(function(t,e){if(t.type&&E(t.type.getBaseProps)){var n=t.props&&t.type.getBaseProps(t.props);return n?[[e,n]]:null}return null}));return Sc()(e)}},{key:"getNewChildren",value:function(t,e){var n=this,r=t.events,o=t.eventKey,i=function(t,a){return t.reduce((function(t,u,c){if(u.props.children){var s=l().Children.toArray(u.props.children),f=a.slice(c,c+s.length),p=l().cloneElement(u,u.props,i(s,f));return t.concat(p)}if("parent"!==a[c]&&u.type&&E(u.type.getBaseProps)){var d=u.props.name||a[c],h=Array.isArray(r)&&r.filter((function(t){return"parent"!==t.target&&(Array.isArray(t.childName)?t.childName.indexOf(d)>-1:t.childName===d||"all"===t.childName)})),y=[d,e,h,Dc()(n.state[d])],g=n.getCachedSharedEvents(d,y)||{events:h,getEvents:function(t,r){return n.getScopedEvents(t,r,d,e)},getEventState:function(t,e){return n.getEventState(t,e,d)}};return n.cacheSharedEvents(d,g,y),t.concat(l().cloneElement(u,Object.assign({key:"events-".concat(d),sharedEvents:g,eventKey:o,name:d},u.props)))}return t.concat(u)}),[])},a=Object.keys(e),u=l().Children.toArray(t.children);return i(u,a)}},{key:"getContainer",value:function(t,e,n){var r=this,o=this.getNewChildren(t,e),i=Array.isArray(n)?n.filter((function(t){return"parent"===t.target})):[],a=i.length>0?{events:i,getEvents:function(t,n){return r.getScopedEvents(t,n,null,e)},getEventState:this.getEventState}:null,c=t.container||t.groupComponent,s=c.type&&c.type.role,f=c.props||{},p=sc.bind(this),d=a&&p({sharedEvents:a},"parent"),h=u()({},this.getEventState("parent","parent"),f,e.parent,{children:o}),y=u()({},pc(d,"parent",h),f.events);this.globalEvents=mc(y);var g=bc(y);return"container"===s?l().cloneElement(c,Object.assign({},h,{events:g})):l().cloneElement(c,g,o)}},{key:"render",value:function(){var t=this.getAllEvents(this.props);return t?this.getContainer(this.props,this.baseProps,t):l().cloneElement(this.props.container,{children:this.props.children})}}],n&&Lc(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),c}(l().Component);Fc.displayName="VictorySharedEvents",Fc.role="shared-event-wrapper",Fc.contextType=wt,Fc.defaultProps={groupComponent:l().createElement("g",null)};var Wc=r(1594),Hc=r.n(Wc);function $c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||Bc(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bc(t,e){if(t){if("string"==typeof t)return Vc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vc(t,e):void 0}}function Vc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var qc={"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}},Gc={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},Yc={em:1,ex:.5},Kc={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},Xc=function(t){return Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g)},Zc=function(t,e,n){var r=function(t){return t*Math.PI/180}(n);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e)},Qc=function(t,e){var n,r=null===(n=t.match(/[a-zA-Z%]+/))||void 0===n?void 0:n[0],o=Number(t.match(/[0-9.,]+/));return r?Gc.hasOwnProperty(r)?o*Gc[r]:Yc.hasOwnProperty(r)?(e?o*e:o*Kc.fontSize)*Yc[r]:o:o||0},Jc=function(t,e){var n=Array.isArray(t)?t[e]:t,r=u()({},n,Kc);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:Qc(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:Qc(String(r.fontSize))})},tl=function(t,e){if(void 0===t||""===t||null===t)return 0;var n,r=Xc(t).map((function(t,n){var r,o,i=t.toString().length,a=Jc(e,n),u=a.fontSize,c=a.letterSpacing,l=(r=a.fontFamily,o=r.split(",").map((function(t){return t.replace(/'|"/g,"")})).find((function(t){return qc[t]}))||"Helvetica",qc[o]);return t.toString().split("").map((function(t){return t.charCodeAt(0)<l.widths.length?l.widths[t.charCodeAt(0)]:l.avg})).reduce((function(t,e){return e+t}),0)*u+c*Math.max(i-1,0)}));return Math.max.apply(Math,function(t){if(Array.isArray(t))return Vc(t)}(n=r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||Bc(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},el=function(t,e){var n=Array.isArray(e)?e[0]&&e[0].angle:e&&e.angle,r=function(t,e){return void 0===t||""===t||null===t?0:Xc(t).reduce((function(t,n,r){var o=Jc(e,r),i=n.toString().match(/[(A-Z)(0-9)]/)?1.15*o.fontSize:o.fontSize;return t+o.lineHeight*i}),0)}(t,e),o=tl(t,e);return{width:n?Zc(o,r,n):o,height:1.05*(n?Zc(r,o,n):r)}},nl=Hc()((function(){var 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");var e=document.createElementNS("http://www.w3.org/2000/svg","text");return t.appendChild(e),t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t),e})),rl=function(t){return t?"".concat(t.angle,":").concat(t.fontFamily,":").concat(t.fontSize,":").concat(t.letterSpacing,":").concat(t.lineHeight):"null"},ol=Hc()((function(t,e){var n,r,o=nl();o.isConnected||(null===(n=(r=nl.cache).clear)||void 0===n||n.call(r),o=nl());var i=Xc(t),a=0;for(var u of i.entries()){var c=$c(u,2),l=c[0],s=c[1],f=document.createElementNS("http://www.w3.org/2000/svg","tspan"),p=Jc(e,l);f.style.fontFamily=p.fontFamily,f.style.fontSize="".concat(p.fontSize,"px"),f.style.lineHeight=p.lineHeight,f.style.fontFamily=p.fontFamily,f.style.letterSpacing=p.letterSpacing,f.textContent=s,f.setAttribute("x","0"),f.setAttribute("y","".concat(a)),o.appendChild(f),a+=p.lineHeight*f.getBoundingClientRect().height}var d=o.getBoundingClientRect().width;return o.innerHTML="",{width:null!=e&&e.angle?Zc(d,a,null==e?void 0:e.angle):d,height:null!=e&&e.angle?Zc(a,d,null==e?void 0:e.angle):a}}),(function(t,e){var n=Array.isArray(t)?t.join():t,r=Array.isArray(e)?e.map(rl).join():rl(e);return"".concat(n,"::").concat(r)})),il=function(t,e){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||n?el(t,e):ol(t,e)}(t,e)},al=["desc","id","tabIndex","origin"];function ul(){return ul=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ul.apply(this,arguments)}function cl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ll(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var sl=(0,c.forwardRef)((function(t,e){var n,r=t.desc,o=t.id,i=t.tabIndex,a=(t.origin,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,al)),u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?cl(Object(n),!0).forEach((function(e){ll(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({vectorEffect:"non-scaling-stroke",id:null===(n=m(o,t))||void 0===n?void 0:n.toString(),tabIndex:m(i,t)},a);return r?l().createElement("line",ul({},u,{ref:e}),l().createElement("desc",null,r)):l().createElement("line",ul({},u,{ref:e}))}));function fl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fl(Object(n),!0).forEach((function(e){dl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function dl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var hl={lineComponent:l().createElement(sl,null),role:"presentation",shapeRendering:"auto"},yl=function(t){var e=function(t){var e=m(t.ariaLabel,t),n=m(t.desc,t),r=m(t.id,t),o=b(Object.assign({stroke:"black"},t.style),t),i=m(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})}(pl(pl({},hl),t));return l().cloneElement(e.lineComponent,pl(pl({},e.events),{},{"aria-label":e.ariaLabel,style:e.style,desc:e.desc,tabIndex:e.tabIndex,className:e.className,role:e.role,shapeRendering:e.shapeRendering,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,transform:e.transform,clipPath:e.clipPath}))};function gl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ml(t,e){return ml=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ml(t,e)}function bl(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function xl(t){return xl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xl(t)}var Ol=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ml(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=xl(r);if(o){var n=xl(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return bl(this,t)});function a(){var t;gl(this,a);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))).checkedContext=void 0,t.portalKey=void 0,t.renderInPlace=void 0,t.element=void 0,t}return e=a,(n=[{key:"componentDidMount",value:function(){this.checkedContext||("function"!=typeof this.context.portalUpdate&&(this.renderInPlace=!0),this.checkedContext=!0),this.forceUpdate()}},{key:"componentDidUpdate",value:function(){this.renderInPlace||(this.portalKey=this.portalKey||this.context.portalRegister(),this.context.portalUpdate(this.portalKey,this.element))}},{key:"componentWillUnmount",value:function(){this.context&&this.context.portalDeregister&&this.context.portalDeregister(this.portalKey)}},{key:"renderPortal",value:function(t){return this.renderInPlace?t:(this.element=t,null)}},{key:"render",value:function(){var t=Array.isArray(this.props.children)?this.props.children[0]:this.props.children,e=this.props.groupComponent,n=t&&t.props||{},r=n.groupComponent?{groupComponent:e,standalone:!1}:{},o=u()(r,n,y(this.props,["children","groupComponent"])),i=t&&l().cloneElement(t,o);return this.renderPortal(i)}}])&&vl(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(l().Component);Ol.displayName="VictoryPortal",Ol.role="portal",Ol.defaultProps={groupComponent:l().createElement("g",null)},Ol.contextType=et;var wl=["children","desc","id","origin","tabIndex","title"];function jl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Al(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var kl=function(t){var e,n=t.children,r=t.desc,o=t.id,i=(t.origin,t.tabIndex),a=t.title,u=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,wl),c=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jl(Object(n),!0).forEach((function(e){Al(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({id:null===(e=m(o,t))||void 0===e?void 0:e.toString(),tabIndex:m(i,t)},u);return l().createElement("text",c,a&&l().createElement("title",null,a),r&&l().createElement("desc",null,r),n)},El=["desc","id","tabIndex","origin"];function Ml(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Sl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Pl=function(t){t.desc;var e,n=t.id,r=t.tabIndex,o=(t.origin,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,El)),i=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ml(Object(n),!0).forEach((function(e){Sl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ml(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({id:null===(e=m(n,t))||void 0===e?void 0:e.toString(),tabIndex:m(r,t)},o);return l().createElement("tspan",i)};function Cl(t){var e=t.labelComponent,n=t.labelPlacement,r=t.polar?"perpendicular":"vertical";return n||e.props&&e.props.labelPlacement||r}function Tl(t,e){var n=Cl(t);return"perpendicular"===n||"vertical"===n&&(90===e||270===e)?"middle":e<=90||e>270?"start":"end"}function Dl(t,e){var n=Cl(t),r=function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}(e);return"parallel"===n||"left"===r||"right"===r?"middle":"top"===r?"end":"start"}function _l(t,e){var n=t.labelPlacement,r=t.datum;if(!n||"vertical"===n)return 0;var o=void 0!==e?e%360:function(t,e){var n=g(e).x;return O(t.scale.x(n))%360}(t,r),i=0;return 0===o||180===o?i=90:o>0&&o<180?i=90-o:o>180&&o<360&&(i=270-o),i+(o>90&&o<180||o>270?1:-1)*("perpendicular"===n?0:90)}var Il=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce((function(t,e){return[t,Il(e)].join(" ")}),Il(t)).trim();if(null==t||"string"==typeof t)return t;var o=[];for(var i in t)if(t.hasOwnProperty(i)){var a=t[i];o.push("".concat(i,"(").concat(a,")"))}return o.join(" ").trim()};function Ll(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Nl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ll(Object(n),!0).forEach((function(e){Rl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ll(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Rl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ul(t){return function(t){if(Array.isArray(t))return zl(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return zl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zl(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Fl={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},Wl=function(t,e){if(!t.datum)return 0;var n=function(t,e){var n=t.scale,r=t.polar,o=t.horizontal,i=g(e),a=t.origin||{x:0,y:0},u=o?n.y(i.y):n.x(i.x),c=o?n.y(i.y0):n.x(i.x0),l=o?n.x(i.x):n.y(i.y),s=o?n.x(i.x0):n.y(i.y0);return{x:r?l*Math.cos(u)+a.x:u,x0:r?s*Math.cos(c)+a.x:c,y:r?-l*Math.sin(u)+a.y:l,y0:r?-s*Math.sin(c)+a.x:s}}(t,t.datum);return n[e]},Hl=function(t){var e=t&&t.fontSize;if("number"==typeof e)return e;if(null==e)return Fl.fontSize;if("string"==typeof e){var n=Number(e.replace("px",""));return isNaN(n)?Fl.fontSize:n}return Fl.fontSize},$l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.isArray(t)?t[e]||t[0]:t},Bl=function(t){var e=t.backgroundStyle,n=t.backgroundPadding;return Array.isArray(e)&&!i()(e)||Array.isArray(n)&&!i()(n)},Vl=function(t,e){var n=t.direction,r=t.textAnchor,o=t.x,i=t.dx;if("rtl"===n)return o-e;switch(r){case"middle":return Math.round(o-e/2);case"end":return Math.round(o-e);default:return o+(i||0)}},ql=function(t,e){var n=t.verticalAnchor,r=t.y,o=t.originalDy,i=r+(void 0===o?0:o);switch(n){case"start":return Math.floor(i);case"end":return Math.ceil(i-e);default:return Math.floor(i-e/2)}},Gl=function(t,e){return Bl(t)?function(t,e){var n=t.dy,r=t.dx,o=t.transform,i=t.backgroundStyle,a=t.backgroundPadding,c=t.backgroundComponent,s=t.inline,f=t.y,p=e.map((function(t,o){var i=$l(e,o-1),u=t.textSize,c=t.fontSize*t.lineHeight,l=Math.ceil(c),p=$l(a,o),d=$l(a,o-1),h=s&&r||0,y=o&&!s?i.fontSize*i.lineHeight+d.top+d.bottom:n-.5*c-(t.fontSize-t.capHeight);return{textHeight:l,labelSize:u,heightWithPadding:l+p.top+p.bottom,widthWithPadding:u.width+p.left+p.right+h,y:f,fontSize:t.fontSize,dy:y}}));return p.map((function(e,n){var r=Vl(t,e.labelSize.width),d=p.slice(0,n+1).reduce((function(t,e){return t+e.dy}),f),h=$l(a,n),y=e.heightWithPadding,g=s?function(t,e,n){var r=t.textAnchor,o=e.map((function(t){return t.widthWithPadding})),i=-o.reduce((function(t,e){return t+e}),0)/2;switch(r){case"start":return o.reduce((function(t,e,r){return r<n?t+e:t}),0);case"end":return o.reduce((function(t,e,r){return r>n?t-e:t}),0);default:return o.reduce((function(t,e,r){return r===n?t+e/2:t+(r<n?e:0)}),i)}}(t,p,n)+r-h.left:r,v=s?ql(t,y)-h.top:d,m={key:"tspan-background-".concat(n),height:y,style:$l(i,n),width:e.widthWithPadding,transform:o,x:g-h.left,y:v};return l().cloneElement(c,u()({},c.props,m))}))}(t,e):function(t,e){var n=t.dx,r=void 0===n?0:n,o=t.transform,i=t.backgroundComponent,a=t.backgroundStyle,c=t.inline,s=t.backgroundPadding,f=t.capHeight,p=e.map((function(t){return t.textSize})),d=c?Math.max.apply(Math,Ul(p.map((function(t){return t.height})))):p.reduce((function(t,n,r){var o=r?0:f/2;return t+n.height*(e[r].lineHeight-o)}),0),h=c?p.reduce((function(t,e,n){var o=n?r:0;return t+e.width+o}),0):Math.max.apply(Math,Ul(p.map((function(t){return t.width})))),y=Vl(t,h),g=ql(t,d),v={key:"background",height:d+s.top+s.bottom,style:a,transform:o,width:h+s.left+s.right,x:c?y-s.left:y+r-s.left,y:g};return l().cloneElement(i,u()({},i.props,v))}(t,e)},Yl=function(t,e,n){var r=e.inline,o=$l(t,n);return n&&!r?function(t,e,n){var r=$l(t,e),o=$l(t,e-1),i=o.fontSize*o.lineHeight,a=r.fontSize*r.lineHeight,u=o.fontSize-o.capHeight,c=r.fontSize-r.capHeight,l=i-o.fontSize/2+r.fontSize/2-i/2+a/2-c/2+u/2;return Bl(n)?l+r.backgroundPadding.top+o.backgroundPadding.bottom:l}(t,n,e):r?0===n?o.backgroundPadding.top:void 0:o.backgroundPadding.top},Kl={backgroundComponent:l().createElement(L,null),groupComponent:l().createElement("g",null),direction:"inherit",textComponent:l().createElement(kl,null),tspanComponent:l().createElement(Pl,null),capHeight:.71,lineHeight:1},Xl=function(t){var e=function(t){var e=function(t,e){if(null!=t){if(Array.isArray(t))return t.map((function(t){return m(t,e)}));var n=m(t,e);if(null!=n)return Array.isArray(n)?n:"".concat(n).split("\n")}}(t.text,t),n=function(t,e){if(e.disableInlineStyles){var n=b(t,e);return{fontSize:Hl(n)}}var r=function(t){var n=b(t?u()({},t,Fl):Fl,e);return Object.assign({},n,{fontSize:Hl(n)})};return Array.isArray(t)&&!i()(t)?t.map((function(t){return r(t)})):r(t)}(t.style,Object.assign({},t,{text:e})),r=function(t,e){if(t)return Array.isArray(t)&&!i()(t)?t.map((function(t){return b(t,e)})):b(t,e)}(t.backgroundStyle,Object.assign({},t,{text:e,style:n})),o=function(t){return t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((function(e){return v({padding:m(e,t)})})):v({padding:m(t.backgroundPadding,t)})}(Object.assign({},t,{text:e,style:n,backgroundStyle:r})),a=m(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:o,style:n,text:e,id:a})}(Nl(Nl({},Kl),t));if(null===e.text||void 0===e.text)return null;var n=function(t){var e=m(t.ariaLabel,t),n=$l(t.style),r=function(t){var e=m(t.lineHeight,t);return Array.isArray(e)&&i()(e)?[1]:e}(t),o=t.direction?m(t.direction,t):"inherit",a=t.textAnchor?m(t.textAnchor,t):n.textAnchor||"start",u=t.verticalAnchor?m(t.verticalAnchor,t):n.verticalAnchor||"middle",c=t.dx?m(t.dx,t):0,l=function(t,e,n){var r=t.dy?m(t.dy,t):0,o=t.inline?1:t.text.length,i=m(t.capHeight,t),a=e?m(e,t):"middle",u=Ul(Array(o).keys()).map((function(e){return $l(t.style,e).fontSize})),c=Ul(Array(o).keys()).map((function(t){return $l(n,t)}));if("start"===a)return r+(i/2+c[0]/2)*u[0];if(t.inline)return"end"===a?r+(i/2-c[0]/2)*u[0]:r+i/2*u[0];if(1===o)return"end"===a?r+(i/2+(.5-o)*c[0])*u[0]:r+(i/2+(.5-o/2)*c[0])*u[0];var l=Ul(Array(o).keys()).reduce((function(t,e){return t+(i/2+(.5-o)*c[e])*u[e]/o}),0);return"end"===a?r+l:r+l/2+i/2*c[o-1]*u[o-1]}(t,u,r),s=void 0!==t.x?t.x:Wl(t,"x"),f=void 0!==t.y?t.y:Wl(t,"y"),p=function(t,e,n){var r=t.polar,o=$l(t.style),i=r?_l(t):0,a=void 0===o.angle?m(t.angle,t):o.angle,u=void 0===a?i:a,c=t.transform||o.transform,l=c&&m(c,t);return l||u?Il(l,u&&{rotate:[u,e,n]}):void 0}(t,s,f);return Object.assign({},t,{ariaLabel:e,lineHeight:r,direction:o,textAnchor:a,verticalAnchor:u,dx:c,dy:l,originalDy:m(t.dy,t),transform:p,x:s,y:f})}(e),r=n.text,o=n.style,a=n.capHeight,c=n.backgroundPadding,s=n.lineHeight,f=r.map((function(t,e){var n=$l(o,e),r=Qc("".concat(a,"em"),n.fontSize),i=$l(s,e);return{style:n,fontSize:n.fontSize||Fl.fontSize,capHeight:r,text:t,textSize:il(t,n),lineHeight:i,backgroundPadding:$l(c,e)}})),p=function(t,e){var n=t.ariaLabel,r=t.inline,o=t.className,i=t.title,a=t.events,u=t.direction,c=t.text,s=t.textAnchor,f=t.dx,p=t.dy,d=t.transform,h=t.x,y=t.y,g=t.desc,v=t.id,b=t.tabIndex,x=t.tspanComponent,O=t.textComponent,w=St(t),j=Nl(Nl({"aria-label":n,key:"text"},a),{},{direction:u,dx:f,x:h,y:y+p,transform:d,className:o,title:i,desc:m(g,t),tabIndex:m(b,t),id:v},w),A=c.map((function(n,o){var i=e[o].style,a={key:"".concat(v,"-key-").concat(o),x:r?void 0:h,dx:r?f+e[o].backgroundPadding.left:f,dy:Yl(e,t,o),textAnchor:i.textAnchor||s,style:i,children:n};return l().cloneElement(x,a)}));return l().cloneElement(O,j,A)}(n,f);if(e.backgroundStyle){var d=[Gl(n,f),p],h=l().cloneElement(e.groupComponent,{},d);return e.renderInPortal?l().createElement(Ol,null,h):h}return e.renderInPortal?l().createElement(Ol,null,p):p};Xl.displayName="VictoryLabel",Xl.role="label",Xl.defaultStyles=Fl;const Zl=t=>+t;function Ql(t){return t*t}function Jl(t){return t*(2-t)}function ts(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function es(t){return t*t*t}function ns(t){return--t*t*t+1}function rs(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var os=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),is=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),as=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),us=Math.PI,cs=us/2;function ls(t){return 1==+t?1:1-Math.cos(t*cs)}function ss(t){return Math.sin(t*cs)}function fs(t){return(1-Math.cos(us*t))/2}function ps(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function ds(t){return ps(1-+t)}function hs(t){return 1-ps(t)}function ys(t){return((t*=2)<=1?ps(1-t):2-ps(t-1))/2}function gs(t){return 1-Math.sqrt(1-t*t)}function vs(t){return Math.sqrt(1- --t*t)}function ms(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var bs=7.5625;function xs(t){return 1-Os(1-t)}function Os(t){return(t=+t)<.36363636363636365?bs*t*t:t<.7272727272727273?bs*(t-=.5454545454545454)*t+.75:t<.9090909090909091?bs*(t-=.8181818181818182)*t+.9375:bs*(t-=.9545454545454546)*t+.984375}function ws(t){return((t*=2)<=1?1-Os(1-t):Os(t-1)+1)/2}var js=1.70158,As=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(js),ks=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(js),Es=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(js),Ms=2*Math.PI,Ss=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Ms);function o(t){return e*ps(- --t)*Math.sin((r-t)/n)}return o.amplitude=function(e){return t(e,n*Ms)},o.period=function(n){return t(e,n)},o}(1,.3),Ps=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Ms);function o(t){return 1-e*ps(t=+t)*Math.sin((t+r)/n)}return o.amplitude=function(e){return t(e,n*Ms)},o.period=function(n){return t(e,n)},o}(1,.3),Cs=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Ms);function o(t){return((t=2*t-1)<0?e*ps(-t)*Math.sin((r-t)/n):2-e*ps(t)*Math.sin((r+t)/n))/2}return o.amplitude=function(e){return t(e,n*Ms)},o.period=function(n){return t(e,n)},o}(1,.3),Ts=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)||Me()(t)}return!1},Ds=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return function(r){return r<n?t:e}},_s=function(t,e){return function(n){return n>=1?e:function(){var r="function"==typeof t?t.apply(this,arguments):t,o="function"==typeof e?e.apply(this,arguments):e;return cr(r,o)(n)}}},Is=function(t,e){var n,r,o,i=function(t){return Array.isArray(t)?_e()(t,"key"):t},a={},u={},c=t,l=e;for(n in null!==c&&"object"==typeof c||(c={}),null!==l&&"object"==typeof l||(l={}),l)n in c?a[n]=(r=i(c[n]))!==(o=i(l[n]))&&Ts(r)&&Ts(o)?"function"==typeof r||"function"==typeof o?_s(r,o):"object"==typeof r&&Me()(r)||"object"==typeof o&&Me()(o)?Is(r,o):cr(r,o):Ds(r,o):u[n]=l[n];return function(t){for(n in a)u[n]=a[n](t);return u}};function Ls(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ns=function(t){var n,r,o,i,a=t.duration,u=void 0===a?1e3:a,c=t.easing,s=void 0===c?"quadInOut":c,f=t.delay,p=void 0===f?0:f,d=t.data,h=t.children,y=t.onEnd,g=(o=l().useState({data:Array.isArray(d)?d[0]:d,animationInfo:{progress:0,animating:!1}}),i=2,function(t){if(Array.isArray(t))return t}(o)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(o,i)||function(t,e){if(t){if("string"==typeof t)return Ls(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ls(t,e):void 0}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=g[0],m=g[1],b=l().useContext(wt).animationTimer,x=l().useRef(Array.isArray(d)?d.slice(1):[]),O=l().useRef(null),w=l().useRef(void 0),j=e[(n=s,r=n.charAt(0).toUpperCase()+n.slice(1),"ease".concat(r))];l().useEffect((function(){return x.current.length&&A(),function(){w.current?b.unsubscribe(w.current):b.stop()}}),[]),l().useEffect((function(){O.current&&v.animationInfo&&v.animationInfo.progress<1?m({data:O.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}):(b.unsubscribe(w.current),x.current=Array.isArray(d)?d:[d],A())}),[d]);var A=function(){if(x.current.length){var t=x.current[0];O.current=(e=v.data)!==(n=t)&&Ts(e)&&Ts(n)?"function"==typeof e||"function"==typeof n?_s(e,n):Me()(e)||Me()(n)?Is(e,n):"string"==typeof e||"string"==typeof n?function(t,e){var n=function(t){return"string"==typeof t?t.replace(/,/g,""):t};return cr(n(t),n(e))}(e,n):cr(e,n):Ds(e,n),p?setTimeout((function(){w.current=b.subscribe(k,u)}),p):w.current=b.subscribe(k,u)}else y&&y();var e,n},k=function(t){if(O.current){var e=u?t/u:1;if(e>=1)return m({data:O.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),w.current&&b.unsubscribe(w.current),x.current.shift(),void A();m({data:O.current(j(e)),animationInfo:{progress:e,animating:e<1}})}};return h(v.data,v.animationInfo)};function Rs(){return Rs=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Rs.apply(this,arguments)}function Us(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zs(t,e){return zs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zs(t,e)}function Fs(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Ws(t){return Ws=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ws(t)}var Hs=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zs(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ws(r);if(o){var n=Ws(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Fs(this,t)});function a(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this,t,e)).continuous=void 0,n.timer=void 0,n.transitionProps=void 0,n.state={nodesShouldLoad:!1,nodesDoneLoad:!1};var r=n.props.children,o=r.props.polar;return n.continuous=!o&&r.type&&!0===r.type.continuous,n.timer=n.context.transitionTimer,n}return e=a,n=[{key:"componentDidMount",value:function(){this.setState({nodesShouldLoad:!0})}},{key:"shouldComponentUpdate",value:function(t){var e=this;return Cc()(this.props,t)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,t),(function(){return e.timer.resumeAnimation()}))),!0}},{key:"componentWillUnmount",value:function(){this.timer.stop()}},{key:"getTransitionState",value:function(t,e){var n=t.animate;if(!n)return{};if(n.parentState)return{oldProps:n.parentState.nodesWillExit?t:null,nextProps:e};var r=me(l().Children.toArray(t.children),l().Children.toArray(e.children)),o=r.nodesWillExit;return{nodesWillExit:o,nodesWillEnter:r.nodesWillEnter,childrenTransitions:r.childrenTransitions,nodesShouldEnter:r.nodesShouldEnter,oldProps:o?t:null,nextProps:e}}},{key:"getDomainFromChildren",value:function(t,e){var n=function(t){return t.reduce((function(t,r){if(r.type&&E(r.type.getDomain)){var o=r.props&&r.type.getDomain(r.props,e);return o?t.concat(o):t}return r.props&&r.props.children?t.concat(n(l().Children.toArray(r.props.children))):t}),[])},r=l().Children.toArray(t.children)[0],o=r.props||{},i=Array.isArray(o.domain)?o.domain:o.domain&&o.domain[e];if(!o.children&&i)return i;var a=n([r]);return 0===a.length?[0,1]:[fe(a),se(a)]}},{key:"pickProps",value:function(){return this.state&&this.state.nodesWillExit&&this.state.oldProps||this.props}},{key:"pickDomainProps",value:function(t){var e,n=null===(e=t.animate)||void 0===e?void 0:e.parentState;return n&&n.nodesWillExit?(this.continuous||n.continuous)&&(n.nextProps||this.state.nextProps)||t:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||t}},{key:"getClipWidth",value:function(t,e){var n=this.transitionProps?this.transitionProps.clipWidth:void 0;return void 0!==n?n:function(){var n=A(e.props,"x");return n?Math.abs(n[1]-n[0]):t.width}()}},{key:"render",value:function(){var t,e=this,n=this.pickProps(),r=null!==(t=this.props.animate)&&void 0!==t&&t.getTransitions?this.props.animate.getTransitions:be(n,this.state,(function(t){return e.setState(t)})),o=l().Children.toArray(n.children)[0],i=r(o);this.transitionProps=i;var a={x:this.getDomainFromChildren(this.pickDomainProps(n),"x"),y:this.getDomainFromChildren(n,"y")},c=this.getClipWidth(n,o),s=u()({domain:a,clipWidth:c},i,o.props),p=(n.animationWhitelist||[]).concat(["clipWidth"]),d=p.length?f()(s,p):s;return l().createElement(Ns,Rs({},s.animate,{data:d}),(function(t){if(o.props.groupComponent){var n=e.continuous?l().cloneElement(o.props.groupComponent,{clipWidth:t.clipWidth||0}):o.props.groupComponent;return l().cloneElement(o,u()({animate:null,animating:!0,groupComponent:n},t,s))}return l().cloneElement(o,u()({animate:null,animating:!0},t,s))}))}}],n&&Us(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(l().Component);function $s(t){return function(t){if(Array.isArray(t))return Bs(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Bs(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bs(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bs(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Vs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gs(t,e,n){return e&&qs(t.prototype,e),n&&qs(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ys(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ks(t,e)}function Ks(t,e){return Ks=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ks(t,e)}function Xs(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Js(t);if(e){var o=Js(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zs(this,n)}}function Zs(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Qs(t)}function Qs(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Js(t){return Js=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Js(t)}Hs.displayName="VictoryTransition",Hs.contextType=wt;var tf=function(t){return!k(t._x)&&!k(t._y)},ef=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function nf(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(n){Ys(o,n);var r=Xs(o);function o(t){var e;return Vs(this,o),(e=r.call(this,t)).state={},e.getEventState=dc.bind(Qs(e)),e.getScopedEvents=fc.bind(Qs(e)),e.getEvents=function(t,n,r){return sc.call(Qs(e),t,n,r,e.getScopedEvents)},e.externalMutations=e.getExternalMutations(e.props),e.calculatedState=e.getStateChanges(e.props),e.globalEvents={},e.prevGlobalEventKeys=[],e.boundGlobalEvents={},e.cacheValues(e.getCalculatedValues(t)),e}return Gs(o,[{key:"shouldComponentUpdate",value:function(t){var e=this.getExternalMutations(t),n=this.props.animating||this.props.animate,r=!Cc()(e,this.externalMutations);if(n||r)return this.cacheValues(this.getCalculatedValues(t)),this.externalMutations=e,this.applyExternalMutations(t,e),!0;var o=this.getStateChanges(t);return Cc()(this.calculatedState,o)?!Cc()(this.props,t)&&(this.cacheValues(this.getCalculatedValues(t)),!0):(this.cacheValues(this.getCalculatedValues(t)),!0)}},{key:"componentDidMount",value:function(){var t=this,e=Object.keys(this.globalEvents);e.forEach((function(e){return t.addGlobalListener(e)})),this.prevGlobalEventKeys=e}},{key:"componentDidUpdate",value:function(t){var e=this,n=this.getStateChanges(t);this.calculatedState=n;var r=Object.keys(this.globalEvents);ue(this.prevGlobalEventKeys,r).forEach((function(t){return e.removeGlobalListener(t)})),ue(r,this.prevGlobalEventKeys).forEach((function(t){return e.addGlobalListener(t)})),this.prevGlobalEventKeys=r}},{key:"componentWillUnmount",value:function(){var t=this;this.prevGlobalEventKeys.forEach((function(e){return t.removeGlobalListener(e)}))}},{key:"addGlobalListener",value:function(t){var e=this,n=function(n){var r=e.globalEvents[t];return r&&r(xc(n))};this.boundGlobalEvents[t]=n,window.addEventListener(vc(t),n)}},{key:"removeGlobalListener",value:function(t){window.removeEventListener(vc(t),this.boundGlobalEvents[t])}},{key:"getStateChanges",value:function(t){var n=this;if(!this.hasEvents)return{};var r=function(t,e){var r=u()({},n.getEventState(t,e),n.getSharedEventState(t,e));return i()(r)?void 0:r};return(e.components||ef).map((function(e){if(t.standalone||"parent"!==e.name)return void 0!==e.index?r(e.index,e.name):n.dataKeys.map((function(t){return r(t,e.name)})).filter(Boolean)})).filter(Boolean)}},{key:"applyExternalMutations",value:function(t,e){if(!i()(e)){var n=t.externalEventMutations.reduce((function(t,e){return E(e.callback)?t.concat(e.callback):t}),[]),r=n.length?function(){n.forEach((function(t){return t()}))}:void 0;this.setState(e,r)}}},{key:"getCalculatedValues",value:function(e){var n=e.sharedEvents,r=gc(e,t.expectedComponents),o=n&&E(n.getEventState)?n.getEventState:function(){},i=this.getBaseProps(e,o);return{componentEvents:r,getSharedEventState:o,baseProps:i,dataKeys:Object.keys(i).filter((function(t){return"parent"!==t})),hasEvents:e.events||e.sharedEvents||r,events:this.getAllEvents(e)}}},{key:"getExternalMutations",value:function(t){var e=t.sharedEvents,n=t.externalEventMutations;return i()(n)||e?void 0:hc(n,this.baseProps,this.state)}},{key:"cacheValues",value:function(t){var e=this;Object.keys(t).forEach((function(n){e[n]=t[n]}))}},{key:"getBaseProps",value:function(e,n){var r=(n||this.getSharedEventState.bind(this))("parent","parent"),o=this.getEventState("parent","parent"),i=u()({},o,r),a=i.parentControlledProps,c=a?f()(i,a):{},l=u()({},c,e);return"function"==typeof t.getBaseProps?t.getBaseProps(l):{}}},{key:"getAllEvents",value:function(t){var e;return Array.isArray(this.componentEvents)?Array.isArray(t.events)?(e=this.componentEvents).concat.apply(e,$s(t.events)):this.componentEvents:t.events}},{key:"getComponentProps",value:function(e,n,r){var o=this.props.name||t.role,i=this.dataKeys&&this.dataKeys[r]||r,a="".concat(o,"-").concat(n,"-").concat(i),c=this.baseProps[i]&&this.baseProps[i][n]||this.baseProps[i];if(c||this.hasEvents){var l=e&&"object"==typeof e&&"props"in e?e.props:void 0;if(this.hasEvents){var s=this.getEvents(this.props,n,i),f=u()({index:r,key:a},this.getEventState(i,n),this.getSharedEventState(i,n),l,c,{id:a}),p=u()({},pc(s,i,f),f.events);return Object.assign({},f,{events:p})}return u()({index:r,key:a},l,c,{id:a})}}},{key:"renderContainer",value:function(t,e){var n=t.type&&"container"===t.type.role?this.getComponentProps(t,"parent","parent"):{};return n.events&&(this.globalEvents=mc(n.events),n.events=bc(n.events)),l().cloneElement(t,n,e)}},{key:"animateComponent",value:function(t,e){var n,r="object"==typeof t.animate&&(null===(n=t.animate)||void 0===n?void 0:n.animationWhitelist)||e,o=this.constructor;return l().createElement(Hs,{animate:t.animate,animationWhitelist:r},l().createElement(o,t))}},{key:"renderContinuousData",value:function(t){var e=this,n=t.dataComponent,r=t.labelComponent,o=t.groupComponent,i=this.dataKeys.filter((function(t){return"all"!==t})),a=i.reduce((function(t,n){var o=t,i=e.getComponentProps(r,"labels",n);return i&&void 0!==i.text&&null!==i.text&&(o=o.concat(l().cloneElement(r,i))),o}),[]),u=this.getComponentProps(n,"data","all"),c=[l().cloneElement(n,u)].concat($s(a));return this.renderContainer(o,c)}},{key:"renderData",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tf,r=t.dataComponent,o=t.labelComponent,i=t.groupComponent,a=this.dataKeys.reduce((function(t,o,i){var a=e.getComponentProps(r,"data",i);return n(a.datum)&&t.push(l().cloneElement(r,a)),t}),[]),u=this.dataKeys.map((function(t,n){var r=e.getComponentProps(o,"labels",n);if(void 0!==r.text&&null!==r.text)return l().cloneElement(o,r)})).filter(Boolean),c=[].concat($s(a),$s(u));return this.renderContainer(i,c)}}]),o}(t);return n}function rf(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function of(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var af={top:-1,left:-1,right:1,bottom:1},uf=function(t){return null!=t},cf=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.style||{},r={height:"100%",width:"100%"};return{parent:u()(n.parent,e.parent,r),axis:u()({},n.axis,e.axis),axisLabel:u()({},n.axisLabel,e.axisLabel),grid:u()({},n.grid,e.grid),ticks:u()({},n.ticks,e.ticks),tickLabels:u()({},n.tickLabels,e.tickLabels)}},lf=function(t,e,n){var r=t.position,o=t.transform;return{x1:o.x,y1:o.y,x2:o.x+r.x2,y2:o.y+r.y2,style:e,datum:n}},sf=function(t,e,n,r,o){var i=t.position,a=t.transform;return{style:e,x:a.x+i.x,y:a.y+i.y,verticalAnchor:n.verticalAnchor,textAnchor:n.textAnchor,angle:e.angle,text:o,datum:r}},ff=function(t,e,n){var r=t.edge,o=t.transform;return{x1:o.x,y1:o.y,x2:r.x+o.x,y2:r.y+o.y,style:e,datum:n}},pf=function(t,e,n){var r=e||"positive";return n?{positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}}[r][t]:{positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}}[r][t]},df=function(t,e){return t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():t===e},hf=function(t,e,n){var r=e.orientation,o=nc(t,e.axis);return{top:{x:0,y:void 0!==o?o:n.y},bottom:{x:0,y:void 0!==o?o:t.height-n.y},left:{x:void 0!==o?o:n.x,y:0},right:{x:void 0!==o?o:t.width-n.x,y:0}}[r]},yf=function(t,e,n){var r=t.tickStyle,o=t.labelStyle,i=r.size||0,a=i+(r.padding||0)+(o.padding||0),u=af[e];return{x:n?u*a:0,x2:n?u*i:0,y:n?0:u*a,y2:n?0:u*i}},gf=function(t,e,n){return{x:n?e.x:t+e.x,y:n?t+e.y:e.y}},vf=function(t,e){var n=e.orientation,r=e.padding,o=e.isVertical,i=-af[n];return{x:o?i*(t.width-(r.left+r.right)):0,y:o?0:i*(t.height-(r.top+r.bottom))}},mf=function(t,e){var n=t.padding,r=t.orientation,o=t.crossAxis,i="right"===r?n.right:n.left,a="top"===r?n.top:n.bottom;return{x:o?e.x-i:0,y:o?e.y-a:0}},bf=function(t,e){var n;return n=e.domain.x&&e.domain.y?t.horizontal?function(t,e){var n=e.scale,r=e.origin,o=e.orientation,i=e.orientations,a=e.domain,u=e.padding,c=u.top,l=u.bottom,s=u.left,f=u.right,p="bottom"===o||"top"===o?o:i.x,d="left"===o||"right"===o?o:i.y,h={x:"bottom"===p?l:c,y:"left"===d?s:f},y="left"===d?0:t.width,g="bottom"===p?t.height:0,v=df(r.x,a.x[0])||df(r.x,a.x[1])?0:n.x(r.x),m=df(r.y,a.y[0])||df(r.y,a.y[1])?0:n.y(r.y),b=v?Math.abs(g-v):h.x,x=m?Math.abs(y-m):h.y;return{x:uf(t.offsetX)?t.offsetX:x,y:uf(t.offsetY)?t.offsetY:b}}(t,e):function(t,e){var n=e.scale,r=e.origin,o=e.orientation,i=e.orientations,a=e.domain,u=e.padding,c=u.top,l=u.bottom,s=u.left,f=u.right,p="bottom"===o||"top"===o?o:i.x,d="left"===o||"right"===o?o:i.y,h={x:"left"===d?s:f,y:"bottom"===p?l:c},y="left"===d?0:t.width,g="bottom"===p?t.height:0,v=df(r.x,a.x[0])||df(r.x,a.x[1])?0:n.x(r.x),m=df(r.y,a.y[0])||df(r.y,a.y[1])?0:n.y(r.y),b=v?Math.abs(y-v):h.x,x=m?Math.abs(g-m):h.y;return{x:uf(t.offsetX)?t.offsetX:b,y:uf(t.offsetY)?t.offsetY:x}}(t,e):function(t,e){var n,r=e.style,o=e.scale,i=e.orientation,a=e.padding,u=e.axis,c=e.ticks,l=e.stringTicks,s=e.isVertical,f=e.labelPadding,p=t.polar,d=t.horizontal,h={scale:of({},u,o),polar:p,horizontal:d,ticks:c,stringTicks:l},y="right"===i?a.right:a.left,g="top"===i?a.top:a.bottom,v=null!==t.offsetX&&void 0!==t.offsetX?t.offsetX:y,m=null!==t.offsetY&&void 0!==t.offsetY?t.offsetY:g,x=r.axisLabel.fontSize||14,O=c.map((function(e,n){var o=l?t.tickValues[e-1]:e;return b(r.ticks,Object.assign({},h,{tick:o,index:n})).size||0})),w=x+2*Math.max.apply(Math,function(t){if(Array.isArray(t))return rf(t)}(n=O)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return rf(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rf(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())+f,j=1.2*x;return{x:null!=v?v:s?w:j,y:null!=m?m:s?j:w}}(t,e),{globalTransform:hf(t,e,n),gridOffset:mf(e,n),gridEdge:vf(t,e)}},xf=function(t,e){var n=rc(t,e),r=function(t){var e=function(t){var e=t.theme,n=t.dependentAxis,r=e&&e.axis&&e.axis.style,o=n?"dependentAxis":"independentAxis",i=e&&e[o]&&e[o].style;return r&&i?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((function(t,e){return t[e]=u()({},i[e],r[e]),t}),{}):i||r}(t),n=cf(t,e),r=v(t),o=function(t,e){var n=e.axisLabel||{};if(void 0!==n.padding&&null!==n.padding)return n.padding;var r=Yu(t),o=n.fontSize||14;return t.label?o*(r?2.3:1.6):0}(t,n),i=Ku(t)?t.tickValues:void 0,a=Hu(t),c=ec(t),l=function(t){var e=Hu(t),n=function(t,e){var n=t.orientation,r=t.horizontal;return n?{top:"x",bottom:"x",left:"y",right:"y"}[n]:r?"x"===e?"y":"x":e}(t,e),r=su(t,e),o=t.domain&&t.domain[e]||ec(t)||r.domain();return r.range(A(t,n)),r.domain(o),r}(t),s="x"===a?c:void 0,f="y"===a?c:void 0,p="x"===a?l:void 0,d="y"===a?l:void 0,h=!(!1===t.crossAxis||!0===t.standalone),y=Ju(t,l,h),g=Zu(t,l),m={x:A(t,"x"),y:A(t,"y")},b={x:t.domain&&t.domain.x?t.domain.x:s,y:t.domain&&t.domain.y?t.domain.y:f},x={x:t.domain&&t.domain.x?su(t,"x").domain(t.domain.x).range(t.horizontal?m.y:m.x):p,y:t.domain&&t.domain.y?su(t,"y").domain(t.domain.y).range(t.horizontal?m.x:m.y):d},O=b.x&&b.y?qu(b):void 0,w=O?{x:Gu(O.x,b.x),y:Gu(O.y,b.y)}:void 0,j=w?{x:pf("x",w.y,t.horizontal),y:pf("y",w.x,t.horizontal)}:void 0,k=j?t.orientation||j[a]:function(t){if(t.orientation)return t.orientation;var e={dependent:t.horizontal?"bottom":"left",independent:t.horizontal?"left":"bottom"};return t.dependentAxis?e.dependent:e.independent}(t),E=Yu(Object.assign({},t,{orientation:k})),M=function(t,e){var n={top:"end",left:"end",right:"start",bottom:"start"}[t];return{textAnchor:e?n:"middle",verticalAnchor:e?"middle":n}}(k,E);return{anchors:M,axis:a,crossAxis:h,domain:b,isVertical:E,labelPadding:o,orientation:k,orientations:j,origin:O,padding:r,scale:x,stringTicks:i,style:n,tickFormat:g,ticks:y}}(n),o=r.axis,i=r.style,a=r.orientation,c=r.isVertical,l=r.scale,s=r.ticks,f=r.tickFormat,p=r.anchors,d=r.domain,h=r.stringTicks,y="x"===o?"y":"x",g=n.width,m=n.height,x=n.standalone,O=n.theme,w=n.polar,j=n.padding,k=n.horizontal,E=bf(n,r),M=E.globalTransform,S=E.gridOffset,P=E.gridEdge,C={scale:of({},o,l[o]),polar:w,horizontal:k,ticks:s,stringTicks:h},T=function(t,e,n){var r=e.style,o=e.padding,i=e.isVertical,a=t.width,u=t.height;return{style:r.axis,x1:i?n.x:o.left+n.x,x2:i?n.x:a-o.right+n.x,y1:i?o.top+n.y:n.y,y2:i?u-o.bottom+n.y:n.y}}(n,r,M),D=function(t,e,n){var r=e.style,o=e.orientation,i=e.padding,a=e.labelPadding,u=e.isVertical,c=af[o],l=i.left+i.right,s=i.top+i.bottom,f=c<0?"end":"start",p=r.axisLabel,d=u?-90:0;return{x:u?n.x+c*a:(t.width-l)/2+i.left+n.x,y:u?(t.height-s)/2+i.top+n.y:c*a+n.y,verticalAnchor:p.verticalAnchor||f,textAnchor:p.textAnchor||"middle",angle:void 0===p.angle?d:p.angle,style:p,text:t.label}}(n,r,M),_={parent:Object.assign({style:i.parent,ticks:s,standalone:x,theme:O,width:g,height:m,padding:j,domain:d},C)},I={dimension:y,range:of({},y,A(n,y)),scale:n.scale&&n.scale[y]?of({},y,n.scale[y]):void 0};return s.reduce((function(t,e,n){var r,u,d,y=h?h[n]:e,g=f(e,n,s),v=function(t,e){return{tickStyle:b(t.ticks,e),labelStyle:b(t.tickLabels,e),gridStyle:b(t.grid,e)}}(i,Object.assign({},C,{tick:y,tickValue:e,index:n,text:g})),m={position:yf(v,a,c),transform:gf(null===(r=l[o])||void 0===r?void 0:r.call(l,e),M,c)},x={edge:P,transform:{x:c?-S.x+M.x:(null===(u=l[o])||void 0===u?void 0:u.call(l,e))+M.x,y:c?(null===(d=l[o])||void 0===d?void 0:d.call(l,e))+M.y:S.y+M.y}};return t[n]={axis:Object.assign({dimension:o},C,T),axisLabel:Object.assign({},C,D),ticks:Object.assign({},C,lf(m,v.tickStyle,e)),tickLabels:Object.assign({},C,sf(m,v.labelStyle,p,e,g)),grid:Object.assign({},C,I,ff(x,v.gridStyle,e))},t}),_)};function Of(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function wf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Af(t,e){return Af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Af(t,e)}function kf(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Ef(t){return Ef=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ef(t)}var Mf={width:450,height:300,padding:50},Sf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Af(t,e)}(u,t);var e,n,r,o,a=(r=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ef(r);if(o){var n=Ef(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return kf(this,t)});function u(){return wf(this,u),a.apply(this,arguments)}return e=u,(n=[{key:"renderLine",value:function(t){var e=t.axisComponent,n=this.getComponentProps(e,"axis",0);return l().cloneElement(e,n)}},{key:"renderLabel",value:function(t){var e=t.axisLabelComponent;if(!t.label)return null;var n=this.getComponentProps(e,"axisLabel",0);return l().cloneElement(e,n)}},{key:"renderGridAndTicks",value:function(t){var e=this,n=t.tickComponent,r=t.tickLabelComponent,o=t.gridComponent,a=t.name,u=function(t){var e=t.style,n=void 0===e?{}:e,r=t.events,o=void 0===r?{}:r;return"transparent"!==n.stroke&&"none"!==n.stroke&&0!==n.strokeWidth||!i()(o)};return this.dataKeys.map((function(i,c){var s=e.getComponentProps(n,"ticks",c),f=l().cloneElement(n,s),p=u(f.props)?f:void 0,d=e.getComponentProps(o,"grid",c),h=l().cloneElement(o,d),y=u(h.props)?h:void 0,g=e.getComponentProps(r,"tickLabels",c),v=[y,p,l().cloneElement(r,g)].filter(Boolean);return l().cloneElement(t.groupComponent,{key:"".concat(a,"-tick-group-").concat(i)},v)}))}},{key:"fixLabelOverlap",value:function(t,e){var n=Yu(e),r=n?e.height:e.width,o=function(t){return t.type&&"label"===t.type.role},i=t.map((function(t){return t.props.children})).reduce((function(t,e){return t.concat(e)}),[]).filter(o).map((function(t){return t.props})).reduce((function(t,e){var r=function(t){return"object"==typeof t?Object.assign({},{top:0,right:0,bottom:0,left:0},t):{top:t,right:t,bottom:t,left:t}}(e.style.padding),o=il(e.text,{angle:e.angle,fontSize:e.style.fontSize,letterSpacing:e.style.letterSpacing,fontFamily:e.style.fontFamily});return t+(n?o.height+r.top+r.bottom:o.width+r.right+r.left)}),0),a=Math.floor(r*t.length/i),u=Math.ceil(t.length/a)||1,c=function(t){return t.props.children.filter(o).reduce((function(t,e){return(n?e.props.y:e.props.x)||0}),0)};return t.sort((function(t,e){return n?c(e)-c(t):c(t)-c(e)})).filter((function(t,e){return e%u==0}))}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=Pf.animationWhitelist,e=rc(this.props,Mf),n=St(this.props);if(this.shouldAnimate())return this.animateComponent(e,t);var r,o=this.renderGridAndTicks(e),i=e.fixLabelOverlap?this.fixLabelOverlap(o,e):o,a=[this.renderLine(e),this.renderLabel(e)].concat(function(t){if(Array.isArray(t))return Of(t)}(r=i)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return Of(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Of(t,e):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l().cloneElement(e.containerComponent,n);return e.standalone?this.renderContainer(u,a):l().cloneElement(e.groupComponent,n,a)}}])&&jf(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(l().Component);Sf.animationWhitelist=["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"],Sf.displayName="VictoryAxis",Sf.role="axis",Sf.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}},Sf.defaultProps={axisComponent:l().createElement(yl,null),axisLabelComponent:l().createElement(Xl,null),tickLabelComponent:l().createElement(Xl,null),tickComponent:l().createElement(yl,null),gridComponent:l().createElement(yl,null),standalone:!0,theme:ee.grayscale,containerComponent:l().createElement(Rt,null),groupComponent:l().createElement("g",{role:"presentation"}),fixLabelOverlap:!1},Sf.getDomain=ec,Sf.getAxis=Hu,Sf.getStyles=function(t){return cf(t)},Sf.getBaseProps=function(t){return xf(t,Mf)},Sf.expectedComponents=["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"];var Pf=nf(Sf,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),Cf=["desc","id","tabIndex","origin"];function Tf(){return Tf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Tf.apply(this,arguments)}function Df(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var If=(0,c.forwardRef)((function(t,e){var n,r=t.desc,o=t.id,i=t.tabIndex,a=(t.origin,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Cf)),u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Df(Object(n),!0).forEach((function(e){_f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Df(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({id:null===(n=m(o,t))||void 0===n?void 0:n.toString(),tabIndex:m(i,t)},a);return r?l().createElement("path",Tf({},u,{ref:e}),l().createElement("desc",null,r)):l().createElement("path",Tf({},u,{ref:e}))}));function Lf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Nf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lf(Object(n),!0).forEach((function(e){Rf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Rf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Uf=function(t){var e=t.cx,n=t.cy,r=t.r,o=t.startAngle,i=t.endAngle,a=t.closedPath,u=Math.abs(i-o)/2+o,c=e+r*Math.cos(x(o)),l=n-r*Math.sin(x(o)),s=e+r*Math.cos(x(u)),f=n-r*Math.sin(x(u)),p=e+r*Math.cos(x(i)),d=n-r*Math.sin(x(i)),h=u-o<=180?0:1,y=i-u<=180?0:1,g=a?" M ".concat(e,", ").concat(n," L ").concat(c,", ").concat(l):"M ".concat(c,", ").concat(l),v="A ".concat(r,", ").concat(r,", 0, ").concat(h,", 0, ").concat(s,", ").concat(f),m="A ".concat(r,", ").concat(r,", 0, ").concat(y,", 0, ").concat(p,", ").concat(d),b=a?"Z":"";return"".concat(g," ").concat(v," ").concat(m," ").concat(b)},zf={pathComponent:l().createElement(If,null),role:"presentation",shapeRendering:"auto"},Ff=function(t){var e=function(t){var e=m(t.ariaLabel,t),n=m(t.desc,t),r=m(t.id,t),o=b(Object.assign({stroke:"black",fill:"none"},t.style),t),i=m(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})}(Nf(Nf({},zf),t));return l().cloneElement(e.pathComponent,Nf(Nf({},e.events),{},{"aria-label":e.ariaLabel,d:Uf(e),style:e.style,desc:e.desc,tabIndex:e.tabIndex,className:e.className,role:e.role,shapeRendering:e.shapeRendering,transform:e.transform,clipPath:e.clipPath}))},Wf=function(t,e,n){return"x"===n?t*Math.cos(e):-t*Math.sin(e)},Hf=function(t){var e=t.dependentAxis?"radial":"angular",n="angular"===e?"radial":"angular";return t.horizontal?n:e},$f=function(t,e){return{tickStyle:b(t.ticks,e),labelStyle:b(t.tickLabels,e),gridStyle:b(t.grid,e)}},Bf=function(t){var e=v(t),n=e.left,r=e.right,o=e.top,i=e.bottom,a=t.width,u=t.height;if(void 0===a||void 0===u)throw new Error("VictoryPolarAxis: width and height properties are required for standalone axes.");return Math.min(a-n-r,u-o-i)/2},Vf=function(t,e){if(t.range&&t.range[e])return t.range[e];if(t.range&&Array.isArray(t.range))return t.range;if("angular"===Hf(t))return[x(t.startAngle),x(t.endAngle)];var n=Bf(t);return[t.innerRadius||0,n]},qf=function(t){var e=Hu(t),n=su(t,e),r=ec(t,e)||n.domain(),o=Vf(t,e);return n.range(o),n.domain(r),n},Gf=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.disableInlineStyles)return{};var n=t.style||{},r={height:"auto",width:"100%"};return{parent:u()(r,n.parent,e.parent),axis:u()({},n.axis,e.axis),axisLabel:u()({},n.axisLabel,e.axisLabel),grid:u()({},n.grid,e.grid),ticks:u()({},n.ticks,e.ticks),tickLabels:u()({},n.tickLabels,e.tickLabels)}},Yf=function(t){var e=t.axisAngle,n=t.startAngle,r=t.dependentAxis,o=nc(t,Hu(t));return void 0!==o&&r?O(o):void 0===e?n:e},Kf=function(t,e,n,r){var o=e.axisType,i=e.radius,a=e.scale,u=e.style,c=e.stringTicks,l=e.ticks,s=e.tickFormat,f=e.origin,p=s(n,r,l),d=c?c[r]:n,h=$f(u,{tick:d,tickValue:n,index:r,ticks:l,stringTicks:c,radius:i,scale:a,axisType:o,text:p}).tickStyle,y="radial"===o?Yf(t):void 0,g=h.padding||h.size||0,v=x(90-y),m="angular"===o?a(n):x(-1*y),b="angular"===o?i:a(n);return"angular"===o?{index:r,datum:d,style:h,x1:Wf(b,m,"x")+f.x,y1:Wf(b,m,"y")+f.y,x2:Wf(b+g,m,"x")+f.x,y2:Wf(b+g,m,"y")+f.y}:{index:r,datum:d,style:h,x1:b*Math.cos(m)+Math.cos(v)*g+f.x,x2:b*Math.cos(m)-Math.cos(v)*g+f.x,y1:b*Math.sin(m)+Math.sin(v)*g+f.y,y2:b*Math.sin(m)-Math.sin(v)*g+f.y}},Xf=function(t,e,n,r){var o=e.axisType,i=e.radius,a=e.tickFormat,u=e.style,c=e.scale,l=e.ticks,s=e.stringTicks,f=e.origin,p=a(n,r,l),d=s?s[r]:n,h=$f(u,{text:p,tick:d,tickValue:n,index:r,ticks:l,stringTicks:s,radius:i,scale:c,axisType:o}).labelStyle,y=t.tickLabelComponent,g=null!=y&&y.props.labelPlacement?y.props.labelPlacement:t.labelPlacement,v=h.padding||0,m="radial"===o?Yf(t):void 0,b="angular"===o?O(c(n)):m+0,w=void 0===h.angle?_l(Object.assign({},t,{labelPlacement:g}),b):h.angle,j="angular"===o?i+v:c(n);return{index:r,datum:d,style:h,angle:w,textAnchor:h.textAnchor||Tl(Object.assign({},t,{labelPlacement:g}),b),text:p,x:j*Math.cos(x(b))+f.x,y:-j*Math.sin(x(b))+f.y}},Zf=function(t,e,n,r){var o=e.axisType,i=e.radius,a=e.style,u=e.scale,c=e.stringTicks,l=e.ticks,s=e.tickFormat,f=e.origin,p=s(n,r,l),d=t.startAngle,h=t.endAngle,y=t.innerRadius,g=void 0===y?0:y,v=c?c[r]:n,m=$f(a,{tick:v,tickValue:n,index:r,ticks:l,stringTicks:c,radius:i,scale:u,axisType:o,text:p}).gridStyle,b=u(n);return"angular"===o?{index:r,datum:v,style:m,x1:Wf(i,b,"x")+f.x,y1:Wf(i,b,"y")+f.y,x2:Wf(g,b,"x")+f.x,y2:Wf(g,b,"y")+f.y}:{style:m,index:r,datum:v,cx:f.x,cy:f.y,r:u(n),startAngle:d,endAngle:h}},Qf=function(t,e){var n=rc(t,e),r=function(t){var e=Object.assign({polar:!0},t),n=function(t){var e,n,r=t.theme,o=void 0===r?{}:r,i=t.dependentAxis,a=o.polarAxis&&o.polarAxis.style||o.axis&&o.axis.style,c=i?"dependentAxis":"independentAxis",l=(null==o||null===(e=o[i?"polarDependentAxis":"polarIndependentAxis"])||void 0===e?void 0:e.style)||(null==o||null===(n=o[c])||void 0===n?void 0:n.style);return a&&l?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((function(t,e){return t[e]=u()({},null==l?void 0:l[e],null==a?void 0:a[e]),t}),{}):l||a}(e),r=Gf(e,n),o=v(e),i=Hu(e),a=Hf(e),c=Ku(e)?e.tickValues:void 0,l=ec(e,i),s=Vf(e,i),f=qf(e),p=Ju(e,f),d="angular"===a?function(t,e){return Pe()(t,(function(t){return e(t)%(2*Math.PI)}))}(p,f):p;return{axis:i,style:r,padding:o,stringTicks:c,axisType:a,scale:f,ticks:d,tickFormat:Zu(e,f),domain:l,range:s,radius:Bf(e),origin:j(e)}}(n),o=r.style,i=r.scale,a=r.ticks,c=r.domain,l=n.width,s=n.height,f=n.standalone,p=n.theme,d=n.name,h=function(t,e){var n=e.style,r=e.axisType,o=e.radius,i=e.origin,a=t.startAngle,u=t.endAngle,c=t.innerRadius,l=void 0===c?0:c,s="radial"===r?x(Yf(t)):void 0;return"radial"===r?{style:n.axis,x1:Wf(l,s,"x")+i.x,x2:Wf(o,s,"x")+i.x,y1:Wf(l,s,"y")+i.y,y2:Wf(o,s,"y")+i.y}:{style:n.axis,cx:i.x,cy:i.y,r:o,startAngle:a,endAngle:u}}(n,r),y=function(t,e){var n=e.axisType,r=e.radius,o=e.style,i=e.origin,a=t.axisLabelComponent;if("radial"!==n)return{};var u=null!=a&&a.props.labelPlacement?a.props.labelPlacement:t.labelPlacement,c=o&&o.axisLabel||{},l="radial"===n?Yf(t):void 0,s=void 0===c.angle?_l(Object.assign({},t,{labelPlacement:u}),l):c.angle,f=r+(c.padding||0);return{style:c,angle:s,textAnchor:c.textAnchor||Tl(Object.assign({},t,{labelPlacement:u}),l),verticalAnchor:c.verticalAnchor||Dl(Object.assign({},t,{labelPlacement:u}),l),text:t.label,x:Wf(f,x(l),"x")+i.x,y:Wf(f,x(l),"y")+i.y}}(n,r),g={parent:{style:o.parent,ticks:a,scale:i,width:l,height:s,domain:c,standalone:f,theme:p,name:d}};return a.reduce((function(t,e,o){return t[o]={axis:h,axisLabel:y,ticks:Kf(n,r,e,o),tickLabels:Xf(n,r,e,o),grid:Zf(n,r,e,o)},t}),g)};function Jf(t){return function(t){if(Array.isArray(t))return tp(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return tp(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tp(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tp(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ep(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function np(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function rp(t,e){return rp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rp(t,e)}function op(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function ip(t){return ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ip(t)}var ap={width:450,height:300,padding:50},up=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rp(t,e)}(u,t);var e,n,r,o,a=(r=u,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ip(r);if(o){var n=ip(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return op(this,t)});function u(){return ep(this,u),a.apply(this,arguments)}return e=u,(n=[{key:"renderAxisLine",value:function(t){var e=t.dependentAxis?t.axisComponent:t.circularAxisComponent,n=this.getComponentProps(e,"axis",0);return l().cloneElement(e,n)}},{key:"renderLabel",value:function(t){var e=t.axisLabelComponent,n=t.dependentAxis;if(!t.label||!n)return null;var r=this.getComponentProps(e,"axisLabel",0);return l().cloneElement(e,r)}},{key:"renderAxis",value:function(t){var e=this,n=t.tickComponent,r=t.tickLabelComponent,o=t.name,a=function(t){var e=t.style,n=void 0===e?{}:e,r=t.events,o=void 0===r?{}:r;return"transparent"!==n.stroke&&"none"!==n.stroke&&0!==n.strokeWidth||!i()(o)},u="radial"==(t.dependentAxis?"radial":"angular")?t.circularGridComponent:t.gridComponent,c=this.dataKeys.map((function(t,r){var i=Object.assign({key:"".concat(o,"-tick-").concat(t)},e.getComponentProps(n,"ticks",r)),u=l().cloneElement(n,i);return a(u.props)?u:void 0})).filter(Boolean),s=this.dataKeys.map((function(t,n){var r=Object.assign({key:"".concat(o,"-grid-").concat(t)},e.getComponentProps(u,"grid",n)),i=l().cloneElement(u,r);return a(i.props)?i:void 0})).filter(Boolean),f=this.dataKeys.map((function(t,n){var i=Object.assign({key:"".concat(o,"-tick-").concat(t)},e.getComponentProps(r,"tickLabels",n));return l().cloneElement(r,i)})),p=[this.renderAxisLine(t),this.renderLabel(t)].concat(Jf(c),Jf(s),Jf(f));return this.renderGroup(t,p)}},{key:"renderGroup",value:function(t,e){var n=t.groupComponent;return l().cloneElement(n,{},e)}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=cp.animationWhitelist,e=rc(this.props,ap);if(this.shouldAnimate())return this.animateComponent(e,t);var n=this.renderAxis(e);return e.standalone?this.renderContainer(e.containerComponent,n):n}}])&&np(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(l().Component);up.animationWhitelist=["style","domain","range","tickCount","tickValues","padding","width","height"],up.displayName="VictoryAxis",up.role="axis",up.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}},up.defaultProps={axisComponent:l().createElement(yl,null),axisLabelComponent:l().createElement(Xl,null),circularAxisComponent:l().createElement(Ff,null),circularGridComponent:l().createElement(Ff,null),containerComponent:l().createElement(Rt,null),endAngle:360,gridComponent:l().createElement(yl,null),groupComponent:l().createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:ee.grayscale,tickComponent:l().createElement(yl,null),tickLabelComponent:l().createElement(Xl,null)},up.getDomain=ec,up.getAxis=Hu,up.getScale=qf,up.getStyles=function(t){return Gf(t,ap.style)},up.getBaseProps=function(t){return Qf(t,ap)},up.expectedComponents=["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"];var cp=nf(up,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),lp={width:450,height:300,padding:50};function sp(t,e){var n=function(t){var e=t.style&&t.style.parent;return{parent:u()({},e,{height:"100%",width:"100%",userSelect:"none"})}}(t),r=S(t,lp,"chart"),o=r.horizontal,i=r.polar,a=Ec(r,e),c=function(t,e,n){var r=t.categories&&!Array.isArray(t.categories)?t.categories.x:t.categories,o=t.categories&&!Array.isArray(t.categories)?t.categories.y:t.categories,i=r&&o?{}:n||Ec(t,e),a=r||i.x,u=o||i.y;return{x:a.length>0?a:void 0,y:u.length>0?u:void 0}}(r,e,a),l=dp(r,e,a),s={x:pp(Object.assign({},r,{categories:c}),"x",e),y:pp(Object.assign({},r,{categories:c}),"y",e)},f={x:A(r,"x"),y:A(r,"y")},p={x:fu(r,"x")||Ac(r,"x"),y:fu(r,"y")||Ac(r,"y")};return{categories:c,domain:s,range:f,horizontal:o,scale:{x:p.x.domain(s.x).range(o?f.y:f.x),y:p.y.domain(s.y).range(o?f.x:f.y)},stringMap:l,style:n,origin:i?j(r):qu(s),padding:v(r)}}var fp=function(t,e){var n=l().Children.toArray(t.children);if(0===n.length)n.push(e.independent,e.dependent);else{var r={dependent:Vu(n,"dependent"),independent:Vu(n,"independent")};0===r.dependent.length&&0===r.independent.length&&(n=t.prependDefaultAxes?[e.independent,e.dependent].concat(n):n.concat([e.independent,e.dependent]))}return n},pp=function(t,e,n){var r=n||l().Children.toArray(t.children),o=jc(t,e,r),i=Bu(r,e);return i&&i.props&&i.props.invertAxis?o.concat().reverse():o},dp=function(t,e,n){var r=n.x&&0!==n.x.length?n.x.reduce((function(t,e,n){return t[e]=n+1,t}),{}):null,o=n.y&&0!==n.y.length?n.y.reduce((function(t,e,n){return t[e]=n+1,t}),{}):null;return{x:r,y:o}};function hp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hp(Object(n),!0).forEach((function(e){gp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vp={width:450,height:300,padding:50},mp={backgroundComponent:l().createElement(V,null),containerComponent:l().createElement(Rt,null),defaultAxes:{independent:l().createElement(Pf,null),dependent:l().createElement(Pf,{dependentAxis:!0})},defaultPolarAxes:{independent:l().createElement(cp,null),dependent:l().createElement(cp,{dependentAxis:!0})},groupComponent:l().createElement("g",null),standalone:!0,theme:ee.grayscale},bp=function(t){var e=l().useMemo((function(){return yp(yp({},mp),t)}),[t]),n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ke,e=je(l().useState(t),2),n=e[0],r=e[1],o=l().useCallback((function(t){r((function(e){return Oe(Oe({},e),t)}))}),[r]),i=l().useCallback((function(t,e,r){if(null==t||!t.animate)return e.props.animate;var i,a=t.animate&&t.animate.getTransitions,c=(i=ce(i=n&&n.childrenTransitions)?i[r]:i,u()({childrenTransitions:i},n)),l=t.animate&&t.animate.parentState||c;if(!a){var s=be(t,c,(function(t){return o(t)}));a=function(t){return s(t,r)}}return u()({getTransitions:a,parentState:l},t.animate,e.props.animate)}),[n,o]),a=l().useCallback((function(t,e){if(null!=t&&t.animate)if(t.animate.parentState){var n=t.animate.parentState.nodesWillExit?t:null,r=u()({oldProps:n,nextProps:e},t.animate.parentState);o(r)}else{var i=l().Children.toArray(t.children),a=l().Children.toArray(e.children),c=function(t){var e=function(t){return t.type&&t.type.continuous};return Array.isArray(t)?t.some(e):e(t)},s=!t.polar&&i.some((function(t){var e;return c(t)||(null==t||null===(e=t.props)||void 0===e?void 0:e.children)&&c(t.props.children)})),f=me(i,a),p=f.nodesWillExit,d=f.nodesWillEnter,h=f.childrenTransitions,y=f.nodesShouldEnter;o({nodesWillExit:p,nodesWillEnter:d,nodesShouldEnter:y,childrenTransitions:ce(h)?h[0]:h,oldProps:p?t:void 0,nextProps:e,continuous:s})}}),[o]),c=l().useCallback((function(t){return n&&n.nodesWillExit&&n.oldProps||t}),[n]);return{state:n,setState:o,getAnimationProps:i,setAnimationState:a,getProps:c}}(),r=n.getAnimationProps,o=n.setAnimationState,a=(0,n.getProps)(e),c=S(a,vp,"chart"),s=c.desc,f=c.eventKey,p=c.containerComponent,d=c.standalone,h=c.groupComponent,y=c.externalEventMutations,g=c.width,v=c.height,m=c.theme,b=c.polar,x=c.name,O=c.title,w=a.polar?c.defaultPolarAxes:c.defaultAxes,j=l().useMemo((function(){return fp(c,w)}),[c,w]),A=l().useMemo((function(){return sp(c,j)}),[c,j]),k=A.domain,E=A.scale,M=A.style,P=A.origin,C=A.horizontal,T=l().useMemo((function(){var t=function(t,e,n){var r=e||fp(t),o=n||sp(t,r),i=o.style.parent,a=t.height,c=t.polar,s=t.theme,f=t.width,p=o.origin,d=o.horizontal,h=t.name||"chart";return r.filter(l().isValidElement).map((function(e,n){var r=e.type&&e.type.role,y=Array.isArray(e.props.style)?e.props.style:u()({},e.props.style,{parent:i}),g=function(t,e,n){var r=$u([t]);return r.length>0?function(t,e,n){var r=n.domain,o=n.scale,i=n.stringMap,a=n.categories;return{stringMap:i,horizontal:n.horizontal,categories:a,startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:e.innerRadius,domain:r,scale:o}}(r[0],e,n):{categories:n.categories,domain:n.domain,range:n.range,scale:n.scale,stringMap:n.stringMap,horizontal:n.horizontal}}(e,t,o),v=e.props.name||"".concat(h,"-").concat(r,"-").concat(n),m=u()({horizontal:d,height:a,polar:c,theme:s,width:f,style:y,name:v,origin:c?p:void 0,padding:o.padding,key:"".concat(v,"-key-").concat(n),standalone:!1},g);return l().cloneElement(e,m)}))}(a,j,A).map((function(t,e){var n=Object.assign({animate:r(a,t,e)},t.props);return l().cloneElement(t,n)}));if(a.style&&a.style.background){var e=function(t,e){var n=t.backgroundComponent,r=t.polar?e.range.y[1]:e.range.y[0]-e.range.y[1],o=e.range.x[1]-e.range.x[0],i=t.horizontal?e.scale.y.range()[0]:e.scale.x.range()[0],a=t.horizontal?e.scale.x.range()[1]:e.scale.y.range()[1],c=t.polar?e.origin.x:i,s=t.polar?e.origin.y:a,f=t.name||"chart",p={height:r,polar:t.polar,scale:e.scale,style:t.style.background,x:c,y:s,key:"".concat(f,"-background"),width:o};return l().cloneElement(n,u()({},n.props,p))}(a,A);t.unshift(e)}return t}),[r,j,a,A]),D=l().useMemo((function(){return d?{desc:s,domain:k,width:g,height:v,horizontal:C,name:x,origin:b?P:void 0,polar:b,theme:m,title:O,scale:E,standalone:d,style:M.parent}:{}}),[s,k,v,C,x,P,b,E,d,M,O,m,g]),_=l().useMemo((function(){if(d){var t=u()({},p.props,D,St(e));return l().cloneElement(p,t)}return h}),[h,d,p,D,e]),I=l().useMemo((function(){return function(t){var e=gc(t,["groupComponent","containerComponent","labelComponent"]),n=t.events;return Array.isArray(e)&&(n=Array.isArray(t.events)?e.concat.apply(e,Oc(t.events)):e),n||[]}(a)}),[a]),L=function(t){var e=l().useRef();return l().useEffect((function(){e.current=t})),e.current}(e);return l().useEffect((function(){return function(){e.animate&&o(L,e)}}),[o,L,e]),i()(I)?l().cloneElement(_,_.props,T):l().createElement(Fc,{container:_,eventKey:f,events:I,externalEventMutations:y},T)},xp=l().memo(bp,Cc());xp.displayName="VictoryChart",xp.expectedComponents=["groupComponent","containerComponent"]})(),o})()));
|
|
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.VictoryChart=n(require("react")):t.VictoryChart=n(t.React)}(self,(function(t){return function(){var n={2516:function(t,n){function e(t,n){var e=[],r=[];return null==n&&(n=function(t,n){return e[0]===n?"[Circular ~]":"[Circular ~."+r.slice(0,e.indexOf(n)).join(".")+"]"}),function(i,o){if(e.length>0){var a=e.indexOf(this);~a?e.splice(a+1):e.push(this),~a?r.splice(a,1/0,i):r.push(i),~e.indexOf(o)&&(o=n.call(this,i,o))}else e.push(o);return null==t?o:t.call(this,i,o)}}(t.exports=function(t,n,r,i){return JSON.stringify(t,e(n,i),r)}).getSerialize=e},503:function(t,n,e){var r=e(1171),i=e(7838),o=e(4859),a=e(4073),s=e(8541);function c(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])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},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),s=e(8541);function c(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])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},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)}},6649:function(t){t.exports=function(t,n,e,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];n(r,a,e(a),t)}return r}},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}},4508:function(t){t.exports=function(t,n,e,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];n(r,a,e(a),t)}return r}},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,s){var c=-1,u=n.length;for(o||(o=i),s||(s=[]);++c<u;){var l=n[c];e>0&&o(l)?e>1?t(l,e-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},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,s){return n===e||(null==n||null==e||!i(n)&&!i(e)?n!=n&&e!=e:r(n,e,o,a,t,s))}},7028:function(t,n,e){var r=e(8708),i=e(8705),o=e(2813),a=e(6682),s=e(9667),c=e(163),u=e(4801),l=e(4289),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,g,m,y){var v=c(t),x=c(n),b=v?d:s(t),A=x?d:s(n),k=(b=b==f?p:b)==p,w=(A=A==f?p:A)==p,M=b==A;if(M&&u(t)){if(!u(n))return!1;v=!0,k=!1}if(M&&!k)return y||(y=new r),v||l(t)?i(t,n,e,g,m,y):o(t,n,b,e,g,m,y);if(!(1&e)){var E=k&&h.call(t,"__wrapped__"),C=w&&h.call(n,"__wrapped__");if(E||C){var O=E?t.value():t,j=C?n.value():n;return y||(y=new r),m(O,j,e,g,y)}}return!!M&&(y||(y=new r),a(t,n,e,g,m,y))}},9548:function(t,n,e){var r=e(8708),i=e(9070);t.exports=function(t,n,e,o){var a=e.length,s=a,c=!o;if(null==t)return!s;for(t=Object(t);a--;){var u=e[a];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++a<s;){var l=(u=e[a])[0],f=t[l],d=u[1];if(c&&u[2]){if(void 0===f&&!(l in t))return!1}else{var p=new r;if(o)var h=o(f,d,l,t,n,p);if(!(void 0===h?i(d,f,3,o,p):h))return!1}}return!0}},3472:function(t,n,e){var r=e(758),i=e(5223),o=e(5346),a=e(163),s=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):s(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),s=e(5385),c=e(6878),u=e(3110);t.exports=function(t,n){return a(t)&&s(n)?c(u(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),s=e(9521),c=e(9110),u=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 d=-1;n=r(n,c(o));var p=a(t,(function(t,e,i){return{criteria:r(n,(function(n){return n(t)})),index:++d,value:t}}));return s(p,(function(t,n){return u(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,s=n.length,c={};++a<s;){var u=n[a],l=r(t,u);e(l,u)&&i(c,o(u,t),l)}return c}},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),s=e(3110);t.exports=function(t,n,e,c){if(!a(t))return t;for(var u=-1,l=(n=i(n,t)).length,f=l-1,d=t;null!=d&&++u<l;){var p=s(n[u]),h=e;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(u!=f){var g=d[p];void 0===(h=c?c(g,p,d):void 0)&&(h=a(g)?g:o(n[u+1])?[]:{})}r(d,p,h),d=d[p]}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 s=t[e],c=n?n(s):s;if(!e||!r(c,u)){var u=c;a[o++]=0===s?0:s}}return a}},6316:function(t,n,e){var r=e(2596),i=e(8644),o=e(163),a=e(1995),s=r?r.prototype:void 0,c=s?s.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 c?c.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),s=e(6602),c=e(6226);t.exports=function(t,n,e){var u=-1,l=i,f=t.length,d=!0,p=[],h=p;if(e)d=!1,l=o;else if(f>=200){var g=n?null:s(t);if(g)return c(g);d=!1,l=a,h=new r}else h=n?[]:p;t:for(;++u<f;){var m=t[u],y=n?n(m):m;if(m=e||0!==m?m:0,d&&y==y){for(var v=h.length;v--;)if(h[v]===y)continue t;n&&h.push(y),p.push(m)}else l(h,y,e)||(h!==p&&h.push(y),p.push(m))}return p}},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),s=void 0!==n,c=null===n,u=n==n,l=r(n);if(!c&&!l&&!a&&t>n||a&&s&&u&&!c&&!l||i&&s&&u||!e&&u||!o)return 1;if(!i&&!a&&!l&&t<n||l&&e&&o&&!i&&!a||c&&e&&o||!s&&o||!u)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,s=o.length,c=e.length;++i<s;){var u=r(o[i],a[i]);if(u)return i>=c?u:u*("desc"==e[i]?-1:1)}return t.index-n.index}},5659:function(t,n,e){var r=e(6649),i=e(4508),o=e(3472),a=e(163);t.exports=function(t,n){return function(e,s){var c=a(e)?r:i,u=n?n():{};return c(e,t,o(s,2),u)}}},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,s,c){var u=1&e,l=t.length,f=n.length;if(l!=f&&!(u&&f>l))return!1;var d=c.get(t),p=c.get(n);if(d&&p)return d==n&&p==t;var h=-1,g=!0,m=2&e?new r:void 0;for(c.set(t,n),c.set(n,t);++h<l;){var y=t[h],v=n[h];if(a)var x=u?a(v,y,h,n,t,c):a(y,v,h,t,n,c);if(void 0!==x){if(x)continue;g=!1;break}if(m){if(!i(n,(function(t,n){if(!o(m,n)&&(y===t||s(y,t,e,a,c)))return m.push(n)}))){g=!1;break}}else if(y!==v&&!s(y,v,e,a,c)){g=!1;break}}return c.delete(t),c.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,s){var c=1&e,u=r(t),l=u.length;if(l!=r(n).length&&!c)return!1;for(var f=l;f--;){var d=u[f];if(!(c?d in n:i.call(n,d)))return!1}var p=s.get(t),h=s.get(n);if(p&&h)return p==n&&h==t;var g=!0;s.set(t,n),s.set(n,t);for(var m=c;++f<l;){var y=t[d=u[f]],v=n[d];if(o)var x=c?o(v,y,d,n,t,s):o(y,v,d,t,n,s);if(!(void 0===x?y===v||a(y,v,e,o,s):x)){g=!1;break}m||(m="constructor"==d)}if(g&&!m){var b=t.constructor,A=n.constructor;b==A||!("constructor"in t)||!("constructor"in n)||"function"==typeof b&&b instanceof b&&"function"==typeof A&&A instanceof A||(g=!1)}return s.delete(t),s.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),s=e(8454),c=e(3110);t.exports=function(t,n,e){for(var u=-1,l=(n=r(n,t)).length,f=!1;++u<l;){var d=c(n[u]);if(!(f=null!=t&&e(t,d)))break;t=t[d]}return f||++u!=l?f:!!(l=null==t?0:t.length)&&s(l)&&a(d,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,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},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,s=i(o.length-n,0),c=Array(s);++a<s;)c[a]=o[n+a];a=-1;for(var u=Array(n+1);++a<n;)u[a]=o[a];return u[n]=e(c),r(t,this,u)}}},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),s=Object.prototype,c=s.hasOwnProperty,u=r((function(t,n){t=Object(t);var e=-1,r=n.length,u=r>2?n[2]:void 0;for(u&&o(n[0],n[1],u)&&(r=1);++e<r;)for(var l=n[e],f=a(l),d=-1,p=f.length;++d<p;){var h=f[d],g=t[h];(void 0===g||i(g,s[h])&&!c.call(t,h))&&(t[h]=l[h])}return t}));t.exports=u},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):[]}},7314:function(t){t.exports=function(t){for(var n=-1,e=null==t?0:t.length,r={};++n<e;){var i=t[n];r[i[0]]=i[1]}return r}},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}},9056:function(t,n,e){var r=e(8347),i=e(5659),o=Object.prototype.hasOwnProperty,a=i((function(t,n,e){o.call(t,e)?t[e].push(n):r(t,e,[n])}));t.exports=a},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,s=a?i(a):r;t.exports=s},4155:function(t,n,e){var r=e(7190),i=e(9667),o=e(5075),a=e(163),s=e(981),c=e(4801),u=e(5782),l=e(4289),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||l(t)||o(t)))return!t.length;var n=i(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(u(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,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,l=c.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=u.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&c.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):[]}},8961:function(t,n,e){var r=e(3472),i=e(946);t.exports=function(t,n){return t&&t.length?i(t,r(n,2)):[]}},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 s,c,u,l;if(Array.isArray(t)){if((s=t.length)!=a.length)return!1;for(c=s;0!=c--;)if(!o(t[c],a[c]))return!1;return!0}if(e&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;for(l=t.entries();!(c=l.next()).done;)if(!o(c.value[1],a.get(c.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();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((s=t.length)!=a.length)return!1;for(c=s;0!=c--;)if(t[c]!==a[c])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((s=(u=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=s;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,u[c]))return!1;if(n&&t instanceof Element)return!1;for(c=s;0!=c--;)if(("_owner"!==u[c]&&"__v"!==u[c]&&"__o"!==u[c]||!t.$$typeof)&&!o(t[u[c]],a[u[c]]))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,{VictoryChart:function(){return fl}});var t={};r.r(t),r.d(t,{scaleBand:function(){return xn},scaleDiverging:function(){return ka},scaleDivergingLog:function(){return wa},scaleDivergingPow:function(){return Ea},scaleDivergingSqrt:function(){return Ca},scaleDivergingSymlog:function(){return Ma},scaleIdentity:function(){return ir},scaleImplicit:function(){return yn},scaleLinear:function(){return rr},scaleLog:function(){return pr},scaleOrdinal:function(){return vn},scalePoint:function(){return An},scalePow:function(){return kr},scaleQuantile:function(){return Nr},scaleQuantize:function(){return $r},scaleRadial:function(){return Cr},scaleSequential:function(){return ha},scaleSequentialLog:function(){return ga},scaleSequentialPow:function(){return ya},scaleSequentialQuantile:function(){return xa},scaleSequentialSqrt:function(){return va},scaleSequentialSymlog:function(){return ma},scaleSqrt:function(){return wr},scaleSymlog:function(){return yr},scaleThreshold:function(){return _r},scaleTime:function(){return la},scaleUtc:function(){return fa},tickFormat:function(){return nr}});var n={};r.r(n),r.d(n,{easeBack:function(){return iu},easeBackIn:function(){return eu},easeBackInOut:function(){return iu},easeBackOut:function(){return ru},easeBounce:function(){return Jc},easeBounceIn:function(){return Qc},easeBounceInOut:function(){return tu},easeBounceOut:function(){return Jc},easeCircle:function(){return Xc},easeCircleIn:function(){return Yc},easeCircleInOut:function(){return Xc},easeCircleOut:function(){return Kc},easeCubic:function(){return $c},easeCubicIn:function(){return Dc},easeCubicInOut:function(){return $c},easeCubicOut:function(){return Nc},easeElastic:function(){return su},easeElasticIn:function(){return au},easeElasticInOut:function(){return cu},easeElasticOut:function(){return su},easeExp:function(){return Gc},easeExpIn:function(){return qc},easeExpInOut:function(){return Gc},easeExpOut:function(){return Bc},easeLinear:function(){return Sc},easePoly:function(){return Ic},easePolyIn:function(){return _c},easePolyInOut:function(){return Ic},easePolyOut:function(){return zc},easeQuad:function(){return Lc},easeQuadIn:function(){return Tc},easeQuadInOut:function(){return Lc},easeQuadOut:function(){return Pc},easeSin:function(){return Hc},easeSinIn:function(){return Wc},easeSinInOut:function(){return Hc},easeSinOut:function(){return Rc}});var e=r(4155),o=r.n(e),a=r(1893),s=r.n(a),c=r(9787),u=r.n(c),l=r(9082),f=r.n(l),d=r(8532),p=r.n(d);function h(t){return Object.entries(t).reduce(((t,n)=>(t[n[1]]=n[0],t)),{})}function g(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 m(t){const n=t=>void 0!==t,{_x:e,_x1:r,_x0:i,_voronoiX:o,_y:a,_y1:c,_y0:u,_voronoiY:l}=t,f=n(r)?r:e,d=n(c)?c:a,p={x:n(o)?o:f,x0:n(i)?i:e,y:n(l)?l:d,y0:n(u)?u:a};return s()({},p,t)}function y(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 v(t,n){return C(t)?t(n):t}function x(t,n){return n.disableInlineStyles?{}:t&&Object.keys(t).some((n=>C(t[n])))?Object.keys(t).reduce(((e,r)=>(e[r]=v(t[r],n),e)),{}):t}function b(t){return"number"==typeof t?t*(Math.PI/180):t}function A(t){return"number"==typeof t?t/(Math.PI/180):t}function k(t){const{left:n,right:e,top:r,bottom:i}=y(t),{width:o,height:a}=t;return Math.min(o-n-e,a-r-i)/2}function w(t){const{width:n,height:e}=t,{top:r,bottom:i,left:o,right:a}=y(t),s=Math.min(n-o-a,e-r-i)/2,c=n/2+o-a,u=e/2+r-i;return{x:c+s>n?s+o-a:c,y:u+s>e?s+r-i:u}}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?[b(t.startAngle||0),b(t.endAngle||360)]:[t.innerRadius||0,k(t)]}(t,n):function(t,n){const e="x"!==n,r=y(t);return e?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,n)}function E(t){return null==t}function C(t){return"function"==typeof t}function O(t){return C(t)?t:null==t?t=>t:p()(t)}function j(t,n,e){const r=g(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(u().Children.toArray(r.children))}),!1);return n(u().Children.toArray(t.children))}(t),o=void 0===i?{}:{horizontal:i};return s()(o,t,r,n)}function S(t,n,e){const r=n?t:0;let i=n||t;i||(i=0);const o=i-r,a=Math.abs(o),s=o/a||1,c=e||1,u=Math.max(Math.ceil(a/c),0);return Array.from(Array(u),((t,n)=>r+n*s*c))}function T(t,n,e,r,i){void 0===e&&(e={}),void 0===r&&(r=[]),void 0===i&&(i=(t,n)=>t.concat(n));const o=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],a=(t,s,c)=>t.reduce(((t,r,l)=>{let d=t;const p=r.type&&r.type.role,h=r.props.name||`${p}-${s[l]}`;if(r.props&&r.props.children){const t=Object.assign({},r.props,f()(e,o)),n=r.type&&"stack"===r.type.role&&C(r.type.getChildren)?r.type.getChildren(t):u().Children.toArray(r.props.children).map((n=>{const e=Object.assign({},n.props,f()(t,o));return u().cloneElement(n,e)})),s=n.map(((t,n)=>`${h}-${n}`)),c=a(n,s,r);d=i(d,c)}else{const t=n(r,h,c);t&&(d=i(d,t))}return d}),r),s=t.filter(c.isValidElement),l=s.map(((t,n)=>n));return a(s,l)}function P(){return P=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},P.apply(this,arguments)}const L=(0,c.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,s={vectorEffect:"non-scaling-stroke",id:v(r,t)?.toString(),tabIndex:v(i,t),...a};return e?u().createElement("rect",P({},s,{ref:n}),u().createElement("desc",null,e)):u().createElement("rect",P({},s,{ref:n}))}));function D(){return D=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},D.apply(this,arguments)}const N=(0,c.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,s={vectorEffect:"non-scaling-stroke",id:v(r,t)?.toString(),tabIndex:v(i,t),...a};return e?u().createElement("circle",D({},s,{ref:n}),u().createElement("desc",null,e)):u().createElement("circle",D({},s,{ref:n}))})),$={circleComponent:u().createElement(N,null),rectComponent:u().createElement(L,null),role:"presentation",shapeRendering:"auto"},_=t=>{const n=(t=>{const n=v(t.id,t);return Object.assign({},t,{id:n})})({...$,...t});return n.polar?u().cloneElement(n.circleComponent,{...n.events,style:n.style,role:n.role,shapeRendering:n.shapeRendering,cx:n.x,cy:n.y,r:n.height,className:n.className}):u().cloneElement(n.rectComponent,{...n.events,style:n.style,role:n.role,shapeRendering:n.shapeRendering,x:n.x,y:n.y,rx:n.rx,ry:n.ry,width:n.width,height:n.height,className:n.className})};var z=r(7709),I=r.n(z),F=r(660),U=r.n(F);class W extends u().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?u().cloneElement(n,{key:t}):n}))}render(){return u().createElement("svg",this.props,this.getChildren())}}const R=u().createContext({});R.displayName="PortalContext";var H,V,q=0,B=0,G=0,Y=0,K=0,X=0,Z="object"==typeof performance&&performance.now?performance:Date,Q="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function J(){return K||(Q(tt),K=Z.now()+X)}function tt(){K=0}function nt(){this._call=this._time=this._next=null}function et(t,n,e){var r=new nt;return r.restart(t,n,e),r}function rt(){K=(Y=Z.now())+X,q=B=0;try{!function(){J(),++q;for(var t,n=H;n;)(t=K-n._time)>=0&&n._call.call(void 0,t),n=n._next;--q}()}finally{q=0,function(){for(var t,n,e=H,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:H=n);V=t,ot(r)}(),K=0}}function it(){var t=Z.now(),n=t-Y;n>1e3&&(X-=n,Y=t)}function ot(t){q||(B&&(B=clearTimeout(B)),t-K>24?(t<1/0&&(B=setTimeout(rt,t-Z.now()-X)),G&&(G=clearInterval(G))):(G||(Y=Z.now(),G=setInterval(it,1e3)),q=1,Q(rt)))}nt.prototype=et.prototype={constructor:nt,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?J():+e)+(null==n?0:+n),this._next||V===this||(V?V._next=this:H=this,V=this),this._call=t,this._time=e,ot()},stop:function(){this._call&&(this._call=null,this._time=1/0,ot())}};class at{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(J()-t.startTime,t.duration)}))};start(){this.timer||(this.timer=et(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}subscribe(t,n){const e=this.subscribers.push({startTime:J(),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 st=u().createContext({transitionTimer:new at,animationTimer:new at});st.displayName="TimerContext";var ct=st;const ut={startsWith:["data-","aria-"],exactMatch:[]},lt=t=>{const n={...t};return Object.fromEntries(Object.entries(n).filter((t=>{let[n]=t;return(t=>!(!(t=>{let n=!1;return ut.startsWith.forEach((e=>{new RegExp(`\\b(${e})(\\w|-)+`,"g").test(t)&&(n=!0)})),n})(t)&&!(t=>ut.exactMatch.includes(t))(t)))(n)})).map((n=>{let[e,r]=n;return[e,v(r,t)]})))};function ft(){return ft=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},ft.apply(this,arguments)}class dt extends u().Component{static displayName="VictoryContainer";static role="container";static defaultProps={className:"VictoryContainer",portalComponent:u().createElement(W,null),portalZIndex:99,responsive:!0,role:"img"};static contextType=ct;constructor(t){super(t),this.containerId=I()(t)&&void 0!==t.containerId?t.containerId:U()("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=>(C(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:o,className:a,width:c,height:l,portalZIndex:f,responsive:d}=t,p=this.getChildren(t),h=d?{width:"100%",height:"100%"}:{width:c,height:l},g=Object.assign({pointerEvents:"none",touchAction:"none",position:"relative"},h),m=Object.assign({zIndex:f,position:"absolute",top:0,left:0},h),y=Object.assign({pointerEvents:"all"},h),v=Object.assign({overflow:"visible"},h),x={width:c,height:l,viewBox:n.viewBox,preserveAspectRatio:n.preserveAspectRatio,style:v};return u().createElement(R.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},u().createElement("div",ft({style:s()({},e,g),className:a,ref:this.saveContainerRef},this.getOUIAProps(t)),u().createElement("svg",ft({},n,{style:y}),r?u().createElement("title",{id:this.getIdForElement("title")},r):null,i?u().createElement("desc",{id:this.getIdForElement("desc")},i):null,p),u().createElement("div",{style:m},u().cloneElement(o,{...x,ref:this.savePortalRef}))))}render(){const{width:t,height:n,responsive:e,events:r,title:i,desc:o,tabIndex:a,preserveAspectRatio:s,role:c}=this.props,u=e?this.props.style:g(this.props.style,["height","width"]),l=lt(this.props),f=Object.assign({width:t,height:n,tabIndex:a,role:c,"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?s:void 0,...l},r);return this.renderContainer(this.props,f,u)}}const pt=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],ht="#252525",gt="#969696",mt={width:450,height:300,padding:50,colorScale:pt},yt={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:ht,stroke:"transparent"},vt=Object.assign({textAnchor:"middle"},yt),xt={area:Object.assign({style:{data:{fill:ht},labels:yt}},mt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:ht,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},vt,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:yt}},mt),bar:Object.assign({style:{data:{fill:ht,padding:8,strokeWidth:0},labels:yt}},mt),boxplot:Object.assign({style:{max:{padding:8,stroke:ht,strokeWidth:1},maxLabels:Object.assign({},yt,{padding:3}),median:{padding:8,stroke:ht,strokeWidth:1},medianLabels:Object.assign({},yt,{padding:3}),min:{padding:8,stroke:ht,strokeWidth:1},minLabels:Object.assign({},yt,{padding:3}),q1:{padding:8,fill:gt},q1Labels:Object.assign({},yt,{padding:3}),q3:{padding:8,fill:gt},q3Labels:Object.assign({},yt,{padding:3})},boxWidth:20},mt),candlestick:Object.assign({style:{data:{stroke:ht,strokeWidth:1},labels:Object.assign({},yt,{padding:5})},candleColors:{positive:"#ffffff",negative:ht}},mt),chart:mt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:ht,strokeWidth:2},labels:yt}},mt),group:Object.assign({colorScale:pt},mt),histogram:Object.assign({style:{data:{fill:gt,stroke:ht,strokeWidth:2},labels:yt}},mt),legend:{colorScale:pt,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:yt,title:Object.assign({},yt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:ht,strokeWidth:2},labels:yt}},mt),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},yt,{padding:20})},colorScale:pt,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:ht,stroke:"transparent",strokeWidth:0},labels:yt}},mt),stack:Object.assign({colorScale:pt},mt),tooltip:{style:Object.assign({},yt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:ht,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({},yt,{padding:5,pointerEvents:"none"}),flyout:{stroke:ht,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},mt)},bt=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],At="#ECEFF1",kt="#90A4AE",wt="#455A64",Mt="#212121",Et={width:350,height:350,padding:50},Ct={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:wt,stroke:"transparent",strokeWidth:0},Ot=Object.assign({textAnchor:"middle"},Ct),jt="round",St="round",Tt={grayscale:xt,material:{area:Object.assign({style:{data:{fill:Mt},labels:Ct}},Et),axis:Object.assign({style:{axis:{fill:"transparent",stroke:kt,strokeWidth:2,strokeLinecap:jt,strokeLinejoin:St},axisLabel:Object.assign({},Ot,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:At,strokeDasharray:"10, 5",strokeLinecap:jt,strokeLinejoin:St,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:kt,strokeWidth:1,strokeLinecap:jt,strokeLinejoin:St},tickLabels:Object.assign({},Ct,{fill:wt})}},Et),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:wt,padding:8,strokeWidth:0},labels:Ct}},Et),boxplot:Object.assign({style:{max:{padding:8,stroke:wt,strokeWidth:1},maxLabels:Object.assign({},Ct,{padding:3}),median:{padding:8,stroke:wt,strokeWidth:1},medianLabels:Object.assign({},Ct,{padding:3}),min:{padding:8,stroke:wt,strokeWidth:1},minLabels:Object.assign({},Ct,{padding:3}),q1:{padding:8,fill:wt},q1Labels:Object.assign({},Ct,{padding:3}),q3:{padding:8,fill:wt},q3Labels:Object.assign({},Ct,{padding:3})},boxWidth:20},Et),candlestick:Object.assign({style:{data:{stroke:wt},labels:Object.assign({},Ct,{padding:5})},candleColors:{positive:"#ffffff",negative:wt}},Et),chart:Et,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:wt,strokeWidth:2},labels:Ct}},Et),group:Object.assign({colorScale:bt},Et),histogram:Object.assign({style:{data:{fill:wt,stroke:Mt,strokeWidth:2},labels:Ct}},Et),legend:{colorScale:bt,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Ct,title:Object.assign({},Ct,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:wt,strokeWidth:2},labels:Ct}},Et),pie:Object.assign({colorScale:bt,style:{data:{padding:8,stroke:At,strokeWidth:1},labels:Object.assign({},Ct,{padding:20})}},Et),scatter:Object.assign({style:{data:{fill:wt,opacity:1,stroke:"transparent",strokeWidth:0},labels:Ct}},Et),stack:Object.assign({colorScale:bt},Et),tooltip:{style:Object.assign({},Ct,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Mt,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({},Ct,{padding:5,pointerEvents:"none"}),flyout:{stroke:Mt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Et)}};function Pt(t){return Array.isArray(t)&&t.length>0}function Lt(t){return Array.isArray(t)&&t.some((t=>"string"==typeof t))}function Dt(t){return Array.isArray(t)&&t.some((t=>t instanceof Date))}function Nt(t,n){return t&&n?t.filter((t=>!n.includes(t))):[]}function $t(t){return Pt(t)&&t.every(Array.isArray)}function _t(t){return t.filter((t=>void 0!==t))}function zt(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 Dt(i)?new Date(Math.max(...i)):Math.max(...i)}function It(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 Dt(i)?new Date(Math.min(...i)):Math.min(...i)}var Ft=r(5346),Ut=r.n(Ft);function Wt(t,n){return(t.key||n).toString()}function Rt(t){return t.reduce(((t,n,e)=>(t[Wt(n,e)]=n,t)),{})}function Ht(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 Vt(t){return t.type&&t.type.getData?t.type.getData(t.props):t.props&&t.props.data||!1}function qt(t,n){let e=!1,r=!1;const i=(t,n)=>t.map(((o,a)=>o&&o.props&&o.props.children&&n[a]?i(u().Children.toArray(t[a].props.children),u().Children.toArray(n[a].props.children)):((t,n)=>{if(!n||t.type!==n.type)return{};const{entering:i,exiting:o}=function(t,n){const e=t&&Rt(t),r=n&&Rt(n);return{entering:e&&Ht(r,e),exiting:r&&Ht(e,r)}}(Vt(t),Vt(n))||{};return e=e||!!o,r=r||!!i,{entering:i||!1,exiting:o||!1}})(o,n[a]))),o=i(u().Children.toArray(t),u().Children.toArray(n));return{nodesWillExit:e,nodesWillEnter:r,childrenTransitions:o,nodesShouldEnter:!1}}function Bt(t,n,e){const r=n&&n.nodesWillExit,i=n&&n.nodesWillEnter,o=n&&n.nodesShouldEnter,a=n&&n.nodesShouldLoad,c=n&&n.nodesDoneLoad,u=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:Ut();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:Ut();return{animate:o,data:r.map(((t,n)=>Object.assign({},t,a(t,n,r)))),clipWidth:0}}(r,0,n),d=(t,n,r,i)=>function(t,n,r,i,o){const a=t&&t.onExit,s=Object.assign({},t,a);let c=r;if(i){t.onEnd=()=>{e({nodesWillExit:!1})};const n=t.onExit&&t.onExit.before?t.onExit.before:Ut();c=r.map(((t,e)=>{const o=(t.key||e).toString();return i[o]?Object.assign({},t,n(t,e,r)):t}))}return{animate:s,data:c}}(i,0,r,t),p=(t,n,r,i)=>o?function(t,n,r,i){const o=t&&t.onEnter,a=Object.assign({},t,o);let s=n;if(r){a.onEnd=()=>{e({nodesWillEnter:!1})};const t=a.onEnter&&a.onEnter.after?a.onEnter.after:Ut();s=n.map(((e,i)=>{const o=Wt(e,i);return r[o]?Object.assign({},e,t(e,i,n)):e}))}return{animate:a,data:s}}(i,r,t):function(t,n,r,i,o){let a=t,s=r;if(i){a=Object.assign({},t,{onEnd:()=>{e({nodesShouldEnter:!0})}});const n=t.onEnter&&t.onEnter.before?t.onEnter.before:Ut();s=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:s}}(i,0,r,t),h=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=Vt(e)||[],m=s()({},t.animate,e.props.animate),y=e.props.polar&&e.type.defaultPolarTransitions||e.type.defaultTransitions;m.onExit=s()({},m.onExit,y&&y.onExit),m.onEnter=s()({},m.onEnter,y&&y.onEnter),m.onLoad=s()({},m.onLoad,y&&y.onLoad);const v=u[a]||u[0];if(!c){const t={duration:void 0!==l.load?l.load:h(e,"onLoad")};return f(0,g,Object.assign({},m,t))}if(r){const t=v&&v.exiting,n=void 0!==l.exit?l.exit:h(e,"onExit"),r=t?{duration:n}:{delay:n};return d(t,0,g,Object.assign({},m,r))}if(i){const t=v&&v.entering,n=void 0!==l.enter?l.enter:h(e,"onEnter"),r=void 0!==l.move?l.move:e.props.animate&&e.props.animate.duration,i={duration:o&&t?n:r};return p(t,0,g,Object.assign({},m,i))}return!n&&m&&m.onExit?function(t,n){const e=t.onEnter&&t.onEnter.after?t.onEnter.after:Ut();return{data:n.map(((t,r)=>Object.assign({},t,e(t,r,n))))}}(m,g):{animate:m,data:g}}}const Gt={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0};var Yt=r(3849),Kt=r.n(Yt),Xt=r(8961),Zt=r.n(Xt),Qt=(r(9056),r(9602)),Jt=r.n(Qt),tn=r(4143),nn=r.n(tn),en=r(4295),rn=r.n(en),on=r(2829),an=r.n(on),sn=r(1616),cn=r.n(sn),un=(r(8999),r(8254)),ln=r.n(un);function fn(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 dn(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function pn(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 hn extends Map{constructor(t,n=mn){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(gn(this,t))}has(t){return super.has(gn(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 gn({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function mn(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const yn=Symbol("implicit");function vn(){var t=new hn,n=[],e=[],r=yn;function i(i){let o=t.get(i);if(void 0===o){if(r!==yn)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 hn;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 vn(n,e).unknown(r)},dn.apply(i,arguments),i}function xn(){var t,n,e=vn().unknown(void 0),r=e.domain,i=e.range,o=0,a=1,s=!1,c=0,u=0,l=.5;function f(){var e=r().length,f=a<o,d=f?a:o,p=f?o:a;t=(p-d)/Math.max(1,e-c+2*u),s&&(t=Math.floor(t)),d+=(p-d-t*(e-c))*l,n=t*(1-c),s&&(d=Math.round(d),n=Math.round(n));var h=fn(e).map((function(n){return d+t*n}));return i(f?h.reverse():h)}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,s=!0,f()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(s=!!t,f()):s},e.padding=function(t){return arguments.length?(c=Math.min(1,u=+t),f()):c},e.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),f()):c},e.paddingOuter=function(t){return arguments.length?(u=+t,f()):u},e.align=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),f()):l},e.copy=function(){return xn(r(),[o,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},dn.apply(f(),arguments)}function bn(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return bn(n())},t}function An(){return bn(xn.apply(null,arguments).paddingInner(1))}var kn=Math.sqrt(50),wn=Math.sqrt(10),Mn=Math.sqrt(2);function En(t,n,e){var r,i,o,a,s=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(a=Cn(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);++s<i;)o[s]=(e+s)*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);++s<i;)o[s]=(e+s)/a}return r&&o.reverse(),o}function Cn(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>=kn?10:o>=wn?5:o>=Mn?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=kn?10:o>=wn?5:o>=Mn?2:1)}function On(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>=kn?i*=10:o>=wn?i*=5:o>=Mn&&(i*=2),n<t?-i:i}function jn(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function Sn(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function Tn(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=jn,e=(n,e)=>jn(t(n),e),r=(n,e)=>t(n)-e):(n=t===jn||t===Sn?t:Pn,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 Pn(){return 0}function Ln(t){return null===t?NaN:+t}const Dn=Tn(jn),Nn=Dn.right;Dn.left,Tn(Ln).center;var $n=Nn;function _n(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function zn(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function In(){}var Fn=.7,Un=1/Fn,Wn="\\s*([+-]?\\d+)\\s*",Rn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Hn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vn=/^#([0-9a-f]{3,8})$/,qn=new RegExp(`^rgb\\(${Wn},${Wn},${Wn}\\)$`),Bn=new RegExp(`^rgb\\(${Hn},${Hn},${Hn}\\)$`),Gn=new RegExp(`^rgba\\(${Wn},${Wn},${Wn},${Rn}\\)$`),Yn=new RegExp(`^rgba\\(${Hn},${Hn},${Hn},${Rn}\\)$`),Kn=new RegExp(`^hsl\\(${Rn},${Hn},${Hn}\\)$`),Xn=new RegExp(`^hsla\\(${Rn},${Hn},${Hn},${Rn}\\)$`),Zn={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 Qn(){return this.rgb().formatHex()}function Jn(){return this.rgb().formatRgb()}function te(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=Vn.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?ne(n):3===e?new oe(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?ee(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?ee(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=qn.exec(t))?new oe(n[1],n[2],n[3],1):(n=Bn.exec(t))?new oe(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Gn.exec(t))?ee(n[1],n[2],n[3],n[4]):(n=Yn.exec(t))?ee(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Kn.exec(t))?fe(n[1],n[2]/100,n[3]/100,1):(n=Xn.exec(t))?fe(n[1],n[2]/100,n[3]/100,n[4]):Zn.hasOwnProperty(t)?ne(Zn[t]):"transparent"===t?new oe(NaN,NaN,NaN,0):null}function ne(t){return new oe(t>>16&255,t>>8&255,255&t,1)}function ee(t,n,e,r){return r<=0&&(t=n=e=NaN),new oe(t,n,e,r)}function re(t){return t instanceof In||(t=te(t)),t?new oe((t=t.rgb()).r,t.g,t.b,t.opacity):new oe}function ie(t,n,e,r){return 1===arguments.length?re(t):new oe(t,n,e,null==r?1:r)}function oe(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function ae(){return`#${le(this.r)}${le(this.g)}${le(this.b)}`}function se(){const t=ce(this.opacity);return`${1===t?"rgb(":"rgba("}${ue(this.r)}, ${ue(this.g)}, ${ue(this.b)}${1===t?")":`, ${t})`}`}function ce(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ue(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function le(t){return((t=ue(t))<16?"0":"")+t.toString(16)}function fe(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new pe(t,n,e,r)}function de(t){if(t instanceof pe)return new pe(t.h,t.s,t.l,t.opacity);if(t instanceof In||(t=te(t)),!t)return new pe;if(t instanceof pe)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,s=o-i,c=(o+i)/2;return s?(a=n===o?(e-r)/s+6*(e<r):e===o?(r-n)/s+2:(n-e)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new pe(a,s,c,t.opacity)}function pe(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function he(t){return(t=(t||0)%360)<0?t+360:t}function ge(t){return Math.max(0,Math.min(1,t||0))}function me(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 ye(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}_n(In,te,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Qn,formatHex:Qn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return de(this).formatHsl()},formatRgb:Jn,toString:Jn}),_n(oe,ie,zn(In,{brighter(t){return t=null==t?Un:Math.pow(Un,t),new oe(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Fn:Math.pow(Fn,t),new oe(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new oe(ue(this.r),ue(this.g),ue(this.b),ce(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:ae,formatHex:ae,formatHex8:function(){return`#${le(this.r)}${le(this.g)}${le(this.b)}${le(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:se,toString:se})),_n(pe,(function(t,n,e,r){return 1===arguments.length?de(t):new pe(t,n,e,null==r?1:r)}),zn(In,{brighter(t){return t=null==t?Un:Math.pow(Un,t),new pe(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Fn:Math.pow(Fn,t),new pe(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 oe(me(t>=240?t-240:t+120,i,r),me(t,i,r),me(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new pe(he(this.h),ge(this.s),ge(this.l),ce(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=ce(this.opacity);return`${1===t?"hsl(":"hsla("}${he(this.h)}, ${100*ge(this.s)}%, ${100*ge(this.l)}%${1===t?")":`, ${t})`}`}}));var ve=t=>()=>t;function xe(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):ve(isNaN(t)?n:t)}var be=function t(n){var e=function(t){return 1==(t=+t)?xe: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):ve(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=ie(t)).r,(n=ie(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=xe(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 Ae(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),s=new Array(i);for(e=0;e<i;++e)r=ie(n[e]),o[e]=r.r||0,a[e]=r.g||0,s[e]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}function ke(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]=Te(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 we(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function Me(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function Ee(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]=Te(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}Ae((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,s=r<n-1?t[r+2]:2*o-i;return ye((e-r/n)*n,a,i,o,s)}})),Ae((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],s=t[(r+2)%n];return ye((e-r/n)*n,i,o,a,s)}}));var Ce=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Oe=new RegExp(Ce.source,"g");function je(t,n){var e,r,i,o=Ce.lastIndex=Oe.lastIndex=0,a=-1,s=[],c=[];for(t+="",n+="";(e=Ce.exec(t))&&(r=Oe.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(e=e[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:Me(e,r)})),o=Oe.lastIndex;return o<n.length&&(i=n.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?c[0]?function(t){return function(n){return t(n)+""}}(c[0].x):function(t){return function(){return t}}(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)s[(e=c[r]).i]=e.x(t);return s.join("")})}function Se(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 Te(t,n){var e,r,i=typeof n;return null==n||"boolean"===i?ve(n):("number"===i?Me:"string"===i?(e=te(n))?(n=e,be):je:n instanceof te?be:n instanceof Date?we:(r=n,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(n)?ke:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?Ee:Me:Se))(t,n)}function Pe(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function Le(t){return+t}var De=[0,1];function Ne(t){return t}function $e(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function _e(t,n,e){var r=t[0],i=t[1],o=n[0],a=n[1];return i<r?(r=$e(i,r),o=e(a,o)):(r=$e(r,i),o=e(o,a)),function(t){return o(r(t))}}function ze(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]=$e(t[a],t[a+1]),o[a]=e(n[a],n[a+1]);return function(n){var e=$n(t,n,1,r)-1;return o[e](i[e](n))}}function Ie(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Fe(){var t,n,e,r,i,o,a=De,s=De,c=Te,u=Ne;function l(){var t,n,e,c=Math.min(a.length,s.length);return u!==Ne&&(t=a[0],n=a[c-1],t>n&&(e=t,t=n,n=e),u=function(e){return Math.max(t,Math.min(n,e))}),r=c>2?ze:_e,i=o=null,f}function f(n){return null==n||isNaN(n=+n)?e:(i||(i=r(a.map(t),s,c)))(t(u(n)))}return f.invert=function(e){return u(n((o||(o=r(s,a.map(t),Me)))(e)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Le),l()):a.slice()},f.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},f.rangeRound=function(t){return s=Array.from(t),c=Pe,l()},f.clamp=function(t){return arguments.length?(u=!!t||Ne,l()):u!==Ne},f.interpolate=function(t){return arguments.length?(c=t,l()):c},f.unknown=function(t){return arguments.length?(e=t,f):e},function(e,r){return t=e,n=r,l()}}function Ue(){return Fe()(Ne,Ne)}var We,Re=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function He(t){if(!(n=Re.exec(t)))throw new Error("invalid format: "+t);var n;return new Ve({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 Ve(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 qe(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 Be(t){return(t=qe(Math.abs(t)))?t[1]:NaN}function Ge(t,n){var e=qe(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")}He.prototype=Ve.prototype,Ve.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 Ye={"%":(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)=>Ge(100*t,n),r:Ge,s:function(t,n){var e=qe(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(We=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")+qe(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Ke(t){return t}var Xe,Ze,Qe,Je=Array.prototype.map,tr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function nr(t,n,e,r){var i,o=On(t,n,e);switch((r=He(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(Be(n)/3)))-Be(Math.abs(t)))}(o,a))||(r.precision=i),Qe(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,Be(n)-Be(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,-Be(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return Ze(r)}function er(t){var n=t.domain;return t.ticks=function(t){var e=n();return En(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return nr(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,s=o.length-1,c=o[a],u=o[s],l=10;for(u<c&&(i=c,c=u,u=i,i=a,a=s,s=i);l-- >0;){if((i=Cn(c,u,e))===r)return o[a]=c,o[s]=u,n(o);if(i>0)c=Math.floor(c/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,u=Math.floor(u*i)/i}r=i}return t},t}function rr(){var t=Ue();return t.copy=function(){return Ie(t,rr())},dn.apply(t,arguments),er(t)}function ir(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,Le),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return ir(t).unknown(n)},t=arguments.length?Array.from(t,Le):[0,1],er(e)}function or(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 ar(t){return Math.log(t)}function sr(t){return Math.exp(t)}function cr(t){return-Math.log(-t)}function ur(t){return-Math.exp(-t)}function lr(t){return isFinite(t)?+("1e"+t):t<0?0:t}function fr(t){return(n,e)=>-t(-n,e)}function dr(t){const n=t(ar,sr),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?lr:t===Math.E?Math.exp:n=>Math.pow(t,n)}(o),e()[0]<0?(r=fr(r),i=fr(i),t(cr,ur)):t(ar,sr),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],s=n[n.length-1];const c=s<a;c&&([a,s]=[s,a]);let u,l,f=r(a),d=r(s);const p=null==t?10:+t;let h=[];if(!(o%1)&&d-f<p){if(f=Math.floor(f),d=Math.ceil(d),a>0){for(;f<=d;++f)for(u=1;u<o;++u)if(l=f<0?u/i(-f):u*i(f),!(l<a)){if(l>s)break;h.push(l)}}else for(;f<=d;++f)for(u=o-1;u>=1;--u)if(l=f>0?u/i(-f):u*i(f),!(l<a)){if(l>s)break;h.push(l)}2*h.length<p&&(h=En(a,s,p))}else h=En(f,d,Math.min(d-f,p)).map(i);return c?h.reverse():h},n.tickFormat=(t,e)=>{if(null==t&&(t=10),null==e&&(e=10===o?"s":","),"function"!=typeof e&&(o%1||null!=(e=He(e)).precision||(e.trim=!0),e=Ze(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(or(e(),{floor:t=>i(Math.floor(r(t))),ceil:t=>i(Math.ceil(r(t)))})),n}function pr(){const t=dr(Fe()).domain([1,10]);return t.copy=()=>Ie(t,pr()).base(t.base()),dn.apply(t,arguments),t}function hr(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function gr(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function mr(t){var n=1,e=t(hr(n),gr(n));return e.constant=function(e){return arguments.length?t(hr(n=+e),gr(n)):n},er(e)}function yr(){var t=mr(Fe());return t.copy=function(){return Ie(t,yr()).constant(t.constant())},dn.apply(t,arguments)}function vr(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function xr(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function br(t){return t<0?-t*t:t*t}function Ar(t){var n=t(Ne,Ne),e=1;function r(){return 1===e?t(Ne,Ne):.5===e?t(xr,br):t(vr(e),vr(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},er(n)}function kr(){var t=Ar(Fe());return t.copy=function(){return Ie(t,kr()).exponent(t.exponent())},dn.apply(t,arguments),t}function wr(){return kr.apply(null,arguments).exponent(.5)}function Mr(t){return Math.sign(t)*t*t}function Er(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function Cr(){var t,n=Ue(),e=[0,1],r=!1;function i(e){var i=Er(n(e));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return n.invert(Mr(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,Le)).map(Mr)),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 Cr(n.domain(),e).round(r).clamp(n.clamp()).unknown(t)},dn.apply(i,arguments),er(i)}function Or(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 jr(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 Sr(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function Tr(t,n,e=0,r=t.length-1,i){for(i=void 0===i?Sr:function(t=jn){if(t===jn)return Sr;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,s=Math.log(o),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(o-c)/o)*(a-o/2<0?-1:1);Tr(t,n,Math.max(e,Math.floor(n-a*c/o+u)),Math.min(r,Math.floor(n+(o-a)*c/o+u)),i)}const o=t[n];let a=e,s=r;for(Pr(t,e,n),i(t[r],o)>0&&Pr(t,e,r);a<s;){for(Pr(t,a,s),++a,--s;i(t[a],o)<0;)++a;for(;i(t[s],o)>0;)--s}0===i(t[e],o)?Pr(t,e,s):(++s,Pr(t,s,r)),s<=n&&(e=s+1),n<=s&&(r=s-1)}return t}function Pr(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function Lr(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 jr(t);if(n>=1)return Or(t);var r,i=(r-1)*n,o=Math.floor(i),a=Or(Tr(t,o).subarray(0,o+1));return a+(jr(t.subarray(o+1))-a)*(i-o)}}function Dr(t,n,e=Ln){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 Nr(){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]=Dr(n,t/i);return o}function o(n){return null==n||isNaN(n=+n)?t:e[$n(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(jn),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 Nr().domain(n).range(e).unknown(t)},dn.apply(o,arguments)}function $r(){var t,n=0,e=1,r=1,i=[.5],o=[0,1];function a(n){return null!=n&&n<=n?o[$n(i,n,0,r)]:t}function s(){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,s()):[n,e]},a.range=function(t){return arguments.length?(r=(o=Array.from(t)).length-1,s()):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 $r().domain([n,e]).range(o).unknown(t)},dn.apply(er(a),arguments)}function _r(){var t,n=[.5],e=[0,1],r=1;function i(i){return null!=i&&i<=i?e[$n(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 _r().domain(n).range(e).unknown(t)},dn.apply(i,arguments)}Xe=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?Ke:(n=Je.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=n[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(t.substring(i-=s,i+s)),!((c+=s+1)>r));)s=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+"",s=void 0===t.numerals?Ke:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Je.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"−":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var n=(t=He(t)).fill,e=t.align,f=t.sign,d=t.symbol,p=t.zero,h=t.width,g=t.comma,m=t.precision,y=t.trim,v=t.type;"n"===v?(g=!0,v="g"):Ye[v]||(void 0===m&&(m=12),y=!0,v="g"),(p||"0"===n&&"="===e)&&(p=!0,n="0",e="=");var x="$"===d?i:"#"===d&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",b="$"===d?o:/[%p]/.test(v)?c:"",A=Ye[v],k=/[defgprs%]/.test(v);function w(t){var i,o,c,d=x,w=b;if("c"===v)w=A(t)+w,t="";else{var M=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:A(Math.abs(t),m),y&&(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)),M&&0==+t&&"+"!==f&&(M=!1),d=(M?"("===f?f:u:"-"===f||"("===f?"":f)+d,w=("s"===v?tr[8+We/3]:"")+w+(M&&"("===f?")":""),k)for(i=-1,o=t.length;++i<o;)if(48>(c=t.charCodeAt(i))||c>57){w=(46===c?a+t.slice(i+1):t.slice(i))+w,t=t.slice(0,i);break}}g&&!p&&(t=r(t,1/0));var E=d.length+t.length+w.length,C=E<h?new Array(h-E+1).join(n):"";switch(g&&p&&(t=r(C+t,C.length?h-w.length:1/0),C=""),e){case"<":t=d+t+w+C;break;case"=":t=d+C+t+w;break;case"^":t=C.slice(0,E=C.length>>1)+d+t+w+C.slice(E);break;default:t=C+d+t+w}return s(t)}return m=void 0===m?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),w.toString=function(){return t+""},w}return{format:f,formatPrefix:function(t,n){var e=f(((t=He(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Be(n)/3))),i=Math.pow(10,-r),o=tr[8+r/3];return function(t){return e(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),Ze=Xe.format,Qe=Xe.formatPrefix;const zr=1e3,Ir=6e4,Fr=36e5,Ur=864e5,Wr=6048e5,Rr=31536e6;var Hr=new Date,Vr=new Date;function qr(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,s=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return s;do{s.push(a=new Date(+e)),n(e,o),t(e)}while(a<e&&e<r);return s},i.filter=function(e){return qr((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 Hr.setTime(+n),Vr.setTime(+r),t(Hr),t(Vr),Math.floor(e(Hr,Vr))},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 Br=qr((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));Br.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?qr((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):Br:null};var Gr=Br,Yr=(Br.range,qr((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*zr)}),(function(t,n){return(n-t)/zr}),(function(t){return t.getUTCSeconds()}))),Kr=Yr,Xr=(Yr.range,qr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*zr)}),(function(t,n){t.setTime(+t+n*Ir)}),(function(t,n){return(n-t)/Ir}),(function(t){return t.getMinutes()}))),Zr=Xr,Qr=(Xr.range,qr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*zr-t.getMinutes()*Ir)}),(function(t,n){t.setTime(+t+n*Fr)}),(function(t,n){return(n-t)/Fr}),(function(t){return t.getHours()}))),Jr=Qr,ti=(Qr.range,qr((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ir)/Ur),(t=>t.getDate()-1))),ni=ti;function ei(t){return qr((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())*Ir)/Wr}))}ti.range;var ri=ei(0),ii=ei(1),oi=ei(2),ai=ei(3),si=ei(4),ci=ei(5),ui=ei(6),li=(ri.range,ii.range,oi.range,ai.range,si.range,ci.range,ui.range,qr((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()}))),fi=li,di=(li.range,qr((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()})));di.every=function(t){return isFinite(t=Math.floor(t))&&t>0?qr((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 pi=di,hi=(di.range,qr((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Ir)}),(function(t,n){return(n-t)/Ir}),(function(t){return t.getUTCMinutes()}))),gi=hi,mi=(hi.range,qr((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*Fr)}),(function(t,n){return(n-t)/Fr}),(function(t){return t.getUTCHours()}))),yi=mi,vi=(mi.range,qr((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/Ur}),(function(t){return t.getUTCDate()-1}))),xi=vi;function bi(t){return qr((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)/Wr}))}vi.range;var Ai=bi(0),ki=bi(1),wi=bi(2),Mi=bi(3),Ei=bi(4),Ci=bi(5),Oi=bi(6),ji=(Ai.range,ki.range,wi.range,Mi.range,Ei.range,Ci.range,Oi.range,qr((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()}))),Si=ji,Ti=(ji.range,qr((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()})));Ti.every=function(t){return isFinite(t=Math.floor(t))&&t>0?qr((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 Pi=Ti;function Li(t,n,e,r,i,o){const a=[[Kr,1,zr],[Kr,5,5e3],[Kr,15,15e3],[Kr,30,3e4],[o,1,Ir],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,Fr],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Ur],[r,2,1728e5],[e,1,Wr],[n,1,2592e6],[n,3,7776e6],[t,1,Rr]];function s(n,e,r){const i=Math.abs(e-n)/r,o=Tn((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(On(n/Rr,e/Rr,r));if(0===o)return Gr.every(Math.max(On(n,e,r),1));const[s,c]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(c)}return[function(t,n,e){const r=n<t;r&&([t,n]=[n,t]);const i=e&&"function"==typeof e.range?e:s(t,n,e),o=i?i.range(t,+n+1):[];return r?o.reverse():o},s]}Ti.range;const[Di,Ni]=Li(Pi,Si,Ai,xi,yi,gi),[$i,_i]=Li(pi,fi,ri,ni,Jr,Zr);function zi(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 Ii(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 Fi(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var Ui,Wi,Ri,Hi={"-":"",_:" ",0:"0"},Vi=/^\s*\d+/,qi=/^%/,Bi=/[\\^$*+?|[\]().{}]/g;function Gi(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 Yi(t){return t.replace(Bi,"\\$&")}function Ki(t){return new RegExp("^(?:"+t.map(Yi).join("|")+")","i")}function Xi(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function Zi(t,n,e){var r=Vi.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Qi(t,n,e){var r=Vi.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function Ji(t,n,e){var r=Vi.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function to(t,n,e){var r=Vi.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function no(t,n,e){var r=Vi.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function eo(t,n,e){var r=Vi.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function ro(t,n,e){var r=Vi.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function io(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 oo(t,n,e){var r=Vi.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function ao(t,n,e){var r=Vi.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function so(t,n,e){var r=Vi.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function co(t,n,e){var r=Vi.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function uo(t,n,e){var r=Vi.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function lo(t,n,e){var r=Vi.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function fo(t,n,e){var r=Vi.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function po(t,n,e){var r=Vi.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function ho(t,n,e){var r=Vi.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function go(t,n,e){var r=qi.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function mo(t,n,e){var r=Vi.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function yo(t,n,e){var r=Vi.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function vo(t,n){return Gi(t.getDate(),n,2)}function xo(t,n){return Gi(t.getHours(),n,2)}function bo(t,n){return Gi(t.getHours()%12||12,n,2)}function Ao(t,n){return Gi(1+ni.count(pi(t),t),n,3)}function ko(t,n){return Gi(t.getMilliseconds(),n,3)}function wo(t,n){return ko(t,n)+"000"}function Mo(t,n){return Gi(t.getMonth()+1,n,2)}function Eo(t,n){return Gi(t.getMinutes(),n,2)}function Co(t,n){return Gi(t.getSeconds(),n,2)}function Oo(t){var n=t.getDay();return 0===n?7:n}function jo(t,n){return Gi(ri.count(pi(t)-1,t),n,2)}function So(t){var n=t.getDay();return n>=4||0===n?si(t):si.ceil(t)}function To(t,n){return t=So(t),Gi(si.count(pi(t),t)+(4===pi(t).getDay()),n,2)}function Po(t){return t.getDay()}function Lo(t,n){return Gi(ii.count(pi(t)-1,t),n,2)}function Do(t,n){return Gi(t.getFullYear()%100,n,2)}function No(t,n){return Gi((t=So(t)).getFullYear()%100,n,2)}function $o(t,n){return Gi(t.getFullYear()%1e4,n,4)}function _o(t,n){var e=t.getDay();return Gi((t=e>=4||0===e?si(t):si.ceil(t)).getFullYear()%1e4,n,4)}function zo(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Gi(n/60|0,"0",2)+Gi(n%60,"0",2)}function Io(t,n){return Gi(t.getUTCDate(),n,2)}function Fo(t,n){return Gi(t.getUTCHours(),n,2)}function Uo(t,n){return Gi(t.getUTCHours()%12||12,n,2)}function Wo(t,n){return Gi(1+xi.count(Pi(t),t),n,3)}function Ro(t,n){return Gi(t.getUTCMilliseconds(),n,3)}function Ho(t,n){return Ro(t,n)+"000"}function Vo(t,n){return Gi(t.getUTCMonth()+1,n,2)}function qo(t,n){return Gi(t.getUTCMinutes(),n,2)}function Bo(t,n){return Gi(t.getUTCSeconds(),n,2)}function Go(t){var n=t.getUTCDay();return 0===n?7:n}function Yo(t,n){return Gi(Ai.count(Pi(t)-1,t),n,2)}function Ko(t){var n=t.getUTCDay();return n>=4||0===n?Ei(t):Ei.ceil(t)}function Xo(t,n){return t=Ko(t),Gi(Ei.count(Pi(t),t)+(4===Pi(t).getUTCDay()),n,2)}function Zo(t){return t.getUTCDay()}function Qo(t,n){return Gi(ki.count(Pi(t)-1,t),n,2)}function Jo(t,n){return Gi(t.getUTCFullYear()%100,n,2)}function ta(t,n){return Gi((t=Ko(t)).getUTCFullYear()%100,n,2)}function na(t,n){return Gi(t.getUTCFullYear()%1e4,n,4)}function ea(t,n){var e=t.getUTCDay();return Gi((t=e>=4||0===e?Ei(t):Ei.ceil(t)).getUTCFullYear()%1e4,n,4)}function ra(){return"+0000"}function ia(){return"%"}function oa(t){return+t}function aa(t){return Math.floor(+t/1e3)}function sa(t){return new Date(t)}function ca(t){return t instanceof Date?+t:+new Date(+t)}function ua(t,n,e,r,i,o,a,s,c,u){var l=Ue(),f=l.invert,d=l.domain,p=u(".%L"),h=u(":%S"),g=u("%I:%M"),m=u("%I %p"),y=u("%a %d"),v=u("%b %d"),x=u("%B"),b=u("%Y");function A(t){return(c(t)<t?p:s(t)<t?h:a(t)<t?g:o(t)<t?m:r(t)<t?i(t)<t?y:v:e(t)<t?x:b)(t)}return l.invert=function(t){return new Date(f(t))},l.domain=function(t){return arguments.length?d(Array.from(t,ca)):d().map(sa)},l.ticks=function(n){var e=d();return t(e[0],e[e.length-1],null==n?10:n)},l.tickFormat=function(t,n){return null==n?A:u(n)},l.nice=function(t){var e=d();return t&&"function"==typeof t.range||(t=n(e[0],e[e.length-1],null==t?10:t)),t?d(or(e,t)):l},l.copy=function(){return Ie(l,ua(t,n,e,r,i,o,a,s,c,u))},l}function la(){return dn.apply(ua($i,_i,pi,fi,ri,ni,Jr,Zr,Kr,Wi).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function fa(){return dn.apply(ua(Di,Ni,Pi,Si,Ai,xi,yi,gi,Kr,Ri).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function da(){var t,n,e,r,i,o=0,a=1,s=Ne,c=!1;function u(n){return null==n||isNaN(n=+n)?i:s(0===e?.5:(n=(r(n)-t)*e,c?Math.max(0,Math.min(1,n)):n))}function l(t){return function(n){var e,r;return arguments.length?([e,r]=n,s=t(e,r),u):[s(0),s(1)]}}return u.domain=function(i){return arguments.length?([o,a]=i,t=r(o=+o),n=r(a=+a),e=t===n?0:1/(n-t),u):[o,a]},u.clamp=function(t){return arguments.length?(c=!!t,u):c},u.interpolator=function(t){return arguments.length?(s=t,u):s},u.range=l(Te),u.rangeRound=l(Pe),u.unknown=function(t){return arguments.length?(i=t,u):i},function(i){return r=i,t=i(o),n=i(a),e=t===n?0:1/(n-t),u}}function pa(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function ha(){var t=er(da()(Ne));return t.copy=function(){return pa(t,ha())},pn.apply(t,arguments)}function ga(){var t=dr(da()).domain([1,10]);return t.copy=function(){return pa(t,ga()).base(t.base())},pn.apply(t,arguments)}function ma(){var t=mr(da());return t.copy=function(){return pa(t,ma()).constant(t.constant())},pn.apply(t,arguments)}function ya(){var t=Ar(da());return t.copy=function(){return pa(t,ya()).exponent(t.exponent())},pn.apply(t,arguments)}function va(){return ya.apply(null,arguments).exponent(.5)}function xa(){var t=[],n=Ne;function e(e){if(null!=e&&!isNaN(e=+e))return n(($n(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(jn),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)=>Lr(t,r/n)))},e.copy=function(){return xa(n).domain(t)},pn.apply(e,arguments)}function ba(t,n){void 0===n&&(n=t,t=Te);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 Aa(){var t,n,e,r,i,o,a,s=0,c=.5,u=1,l=1,f=Ne,d=!1;function p(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-n)*(l*t<l*n?r:i),f(d?Math.max(0,Math.min(1,t)):t))}function h(t){return function(n){var e,r,i;return arguments.length?([e,r,i]=n,f=ba(t,[e,r,i]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([s,c,u]=a,t=o(s=+s),n=o(c=+c),e=o(u=+u),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),l=n<t?-1:1,p):[s,c,u]},p.clamp=function(t){return arguments.length?(d=!!t,p):d},p.interpolator=function(t){return arguments.length?(f=t,p):f},p.range=h(Te),p.rangeRound=h(Pe),p.unknown=function(t){return arguments.length?(a=t,p):a},function(a){return o=a,t=a(s),n=a(c),e=a(u),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),l=n<t?-1:1,p}}function ka(){var t=er(Aa()(Ne));return t.copy=function(){return pa(t,ka())},pn.apply(t,arguments)}function wa(){var t=dr(Aa()).domain([.1,1,10]);return t.copy=function(){return pa(t,wa()).base(t.base())},pn.apply(t,arguments)}function Ma(){var t=mr(Aa());return t.copy=function(){return pa(t,Ma()).constant(t.constant())},pn.apply(t,arguments)}function Ea(){var t=Ar(Aa());return t.copy=function(){return pa(t,Ea()).exponent(t.exponent())},pn.apply(t,arguments)}function Ca(){return Ea.apply(null,arguments).exponent(.5)}Ui=function(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,c=t.shortMonths,u=Ki(i),l=Xi(i),f=Ki(o),d=Xi(o),p=Ki(a),h=Xi(a),g=Ki(s),m=Xi(s),y=Ki(c),v=Xi(c),x={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:vo,e:vo,f:wo,g:No,G:_o,H:xo,I:bo,j:Ao,L:ko,m:Mo,M:Eo,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:oa,s:aa,S:Co,u:Oo,U:jo,V:To,w:Po,W:Lo,x:null,X:null,y:Do,Y:$o,Z:zo,"%":ia},b={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Io,e:Io,f:Ho,g:ta,G:ea,H:Fo,I:Uo,j:Wo,L:Ro,m:Vo,M:qo,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:oa,s:aa,S:Bo,u:Go,U:Yo,V:Xo,w:Zo,W:Qo,x:null,X:null,y:Jo,Y:na,Z:ra,"%":ia},A={a:function(t,n,e){var r=p.exec(n.slice(e));return r?(t.w=h.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=d.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(t,n,e){var r=y.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=m.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return M(t,n,e,r)},d:so,e:so,f:ho,g:ro,G:eo,H:uo,I:uo,j:co,L:po,m:ao,M:lo,p:function(t,n,e){var r=u.exec(n.slice(e));return r?(t.p=l.get(r[0].toLowerCase()),e+r[0].length):-1},q:oo,Q:mo,s:yo,S:fo,u:Qi,U:Ji,V:to,w:Zi,W:no,x:function(t,n,r){return M(t,e,n,r)},X:function(t,n,e){return M(t,r,n,e)},y:ro,Y:eo,Z:io,"%":go};function k(t,n){return function(e){var r,i,o,a=[],s=-1,c=0,u=t.length;for(e instanceof Date||(e=new Date(+e));++s<u;)37===t.charCodeAt(s)&&(a.push(t.slice(c,s)),null!=(i=Hi[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),a.push(r),c=s+1);return a.push(t.slice(c,s)),a.join("")}}function w(t,n){return function(e){var r,i,o=Fi(1900,void 0,1);if(M(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=Ii(Fi(o.y,0,1))).getUTCDay(),r=i>4||0===i?ki.ceil(r):ki(r),r=xi.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=zi(Fi(o.y,0,1))).getDay(),r=i>4||0===i?ii.ceil(r):ii(r),r=ni.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?Ii(Fi(o.y,0,1)).getUTCDay():zi(Fi(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,Ii(o)):zi(o)}}function M(t,n,e,r){for(var i,o,a=0,s=n.length,c=e.length;a<s;){if(r>=c)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(o=A[i in Hi?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=k(e,x),x.X=k(r,x),x.c=k(n,x),b.x=k(e,b),b.X=k(r,b),b.c=k(n,b),{format:function(t){var n=k(t+="",x);return n.toString=function(){return t},n},parse:function(t){var n=w(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=k(t+="",b);return n.toString=function(){return t},n},utcParse:function(t){var n=w(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"]}),Wi=Ui.format,Ui.parse,Ri=Ui.utcFormat,Ui.utcParse;const Oa=["linear","time","log","sqrt"];function ja(t){return"function"==typeof t?C(t.copy)&&C(t.domain)&&C(t.range):"string"==typeof t&&Oa.includes(t)}function Sa(t,n){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[n])}function Ta(t,n){if(!t.data)return"linear";const e=O(t[n]);return Dt(t.data.map((t=>{const r=Kt()(e(t))?e(t)[n]:e(t);return void 0!==r?r:t[n]})))?"time":"linear"}function Pa(n){if(ja(n)){const r=`scale${e=n,e&&e[0].toUpperCase()+e.slice(1)}`;return t[r]()}var e;return rr()}function La(t,n){const e=Da(t,n);return e?"string"==typeof e?Pa(e):e:Pa(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 Dt(e)?"time":"linear"}(t,n)||Ta(t,n))}function Da(t,n){if(!Sa(t,n))return;const e=t.scale[n]||t.scale;return ja(e)?C(e)?e:Pa(e):void 0}function Na(t,n){return function(t,n){if(!Sa(t,n))return;const e=t.scale[n]||t.scale;return"string"==typeof e?e:function(t){if("string"==typeof t)return t;const n=$a.filter((n=>void 0!==t[n.method]))[0];return n?n.name:void 0}(e)}(t,n)||Ta(t,n)}const $a=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function _a(t){return!(!t||!t["@@__IMMUTABLE_ITERABLE__@@"])}function za(t,n){return _a(t)?t.reduce(((t,e,r)=>{let i=e;return n&&n[r]&&(i=za(e)),t[r]=i,t}),function(t){return!(!t||!t["@@__IMMUTABLE_LIST__@@"])}(t)?[]:{}):t}function Ia(t){return _a(n=t)||function(t){return!(!t||!t["@@__IMMUTABLE_RECORD__@@"])}(n)?za(t,{errorX:!0,errorY:!0}):t;var n}function Fa(t,n){const e=(Kt()(t.domain)?t.domain[n]:t.domain)||La(t,n).domain(),r=t.samples||1,i=Math.max(...e),o=Math.min(...e),a=S(o,i,(i-o)/r);return a[a.length-1]===i?a:a.concat(i)}function Ua(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 nn()(t,r,i)}function Wa(t,n){const e=qa(t,n),r=Ba(t,n),i=function(t,n){if(!Array.isArray(t.data)&&!_a(t.data))return[];const e=O(void 0===t[n]?n:t[n]);return Ua(t.data.reduce(((t,n)=>(t.push(Ia(n)),t)),[]),t.sortKey,t.sortOrder).reduce(((t,n)=>{const r=Ia(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=Jt()([...e,...r,...i]);return 0===o.length?null:o.reduce(((t,n,e)=>(t[n]=e+1,t)),{})}function Ra(t,n,e){if(!Array.isArray(t)&&!_a(t)||function(t){return _a(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]=O(void 0!==n[r=e]?n[r]:r),t}),{}),a=ln()(e,r)&&"_x"===n.x&&"_y"===n.y&&"_y0"===n.y0;let s;!1===a&&(s={x:-1!==e.indexOf("x")?Wa(n,"x"):void 0,y:-1!==e.indexOf("y")?Wa(n,"y"):void 0,y0:-1!==e.indexOf("y0")?Wa(n,"y"):void 0});const c=a?t:t.reduce(((t,n,r)=>{const a=Ia(n),c={x:r,y:a},u=e.reduce(((t,n)=>{const e=i[n](a),r=void 0!==e?e:c[n];return void 0!==r&&("string"==typeof r&&s[n]?(t[`${n}Name`]=r,t[`_${n}`]=s[n][r]):t[`_${n}`]=r),t}),{}),l=Object.assign({},u,a);return o()(l)||t.push(l),t}),[]),u=function(t,n){const e=1/Number.MAX_SAFE_INTEGER,r={x:Na(n,"x"),y:Na(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)))}(Ua(c,n.sortKey,n.sortOrder),n);return function(t,n){const e=!!t.eventKey,r=C(i=t.eventKey)?i:null==i?()=>{}:p()(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,u)}function Ha(t,n){return t.categories&&!Array.isArray(t.categories)?t.categories[n]:t.categories}function Va(t){return t.data?Ra(t.data,t):Ra(function(t){const n=Fa(t,"x"),e=Fa(t,"y");return n.map(((t,n)=>({x:t,y:e[n]})))}(t),t)}function qa(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))}function Ba(t,n){if(!t.categories)return[];const e=Ha(t,n),r=e&&e.filter((t=>"string"==typeof t));return r?_t(r):[]}function Ga(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}`],s=r([i,a]);return o=o||i instanceof Date||a instanceof Date,r([t,s])}),i);return o?new Date(a):a}function Ya(t,n){const e=C(t)?t:Xa,r=C(n)?n:Ka;return(t,n)=>{const i=Qa(t,n);if(i)return r(i,t,n);const o=Ha(t,n),a=o?function(t,n,e){const r=e||Ha(t,n),{polar:i,startAngle:o=0,endAngle:a=360}=t;if(!r)return;const s=ts(t,n),c=Ja(t,n),u=Lt(r)?Ba(t,n):[],l=0===u.length?null:u.reduce(((t,n,e)=>(t[n]=e+1,t)),{}),f=l?r.map((t=>l[t])):r,d=Za(void 0!==s?s:It(f),void 0!==c?c:zt(f));return i&&"x"===n&&360===Math.abs(o-a)?ns(d,f):d}(t,n,o):e(t,n);return a?r(a,t,n):void 0}}function Ka(t,n,e){return function(t,n,e){return"log"!==Na(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=ts(n,e),i=Ja(n,e),o=function(t,n){const e=t=>Array.isArray(t)?{left:t[0],right:t[1]}:{left:t,right:t};return Kt()(t.domainPadding)?e(t.domainPadding[n]):e(t.domainPadding)}(n,e);if(!o.left&&!o.right)return t;const a=It(t),s=zt(t),c=function(t,n){return n?"x"===t?"y":"x":t}(e,n.horizontal),u=M(n,c),l=Math.abs(u[0]-u[1]),f=Math.max(l-o.left-o.right,1),d=Math.abs(s.valueOf()-a.valueOf())/f*l,p=d*o.left/l,h=d*o.right/l;let g={min:a.valueOf()-p,max:s.valueOf()+h};const m=Kt()(n.singleQuadrantDomainPadding)?n.singleQuadrantDomainPadding[e]:n.singleQuadrantDomainPadding,y=(t,n)=>"min"===n&&a>=0&&t<=0||"max"===n&&s<=0&&t>=0?0:t;if((a>=0&&g.min<=0||s<=0&&g.max>=0)&&!1!==m){const t={left:Math.abs(s-a)*o.left/l,right:Math.abs(s-a)*o.right/l},n={min:y(a.valueOf()-t.left,"min"),max:y(s.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:y(a.valueOf()-e.left,"min"),max:y(s.valueOf()+e.right,"max")}}const v={min:void 0!==r?r:g.min,max:void 0!==i?i:g.max};return a instanceof Date||s instanceof Date?Za(new Date(v.min),new Date(v.max)):Za(v.min,v.max)}(t,n,e),n,e)}function Xa(t,n,e){const r=e||Va(t),{polar:i,startAngle:o=0,endAngle:a=360}=t,s=ts(t,n),c=Ja(t,n);if(r.length<1)return void 0!==s&&void 0!==c?Za(s,c):void 0;const u=Za(void 0!==s?s:Ga(r,n,"min"),void 0!==c?c:Ga(r,n,"max"));return i&&"x"===n&&360===Math.abs(o-a)?ns(u,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)):u}function Za(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 Qa(t,n){const e=ts(t,n),r=Ja(t,n);return Kt()(t.domain)&&t.domain[n]?t.domain[n]:Array.isArray(t.domain)?t.domain:void 0!==e&&void 0!==r?Za(e,r):void 0}function Ja(t,n){return Kt()(t.maxDomain)&&void 0!==t.maxDomain[n]?t.maxDomain[n]:"number"==typeof t.maxDomain||rn()(t.maxDomain)?t.maxDomain:void 0}function ts(t,n){return Kt()(t.minDomain)&&void 0!==t.minDomain[n]?t.minDomain[n]:"number"==typeof t.minDomain||rn()(t.minDomain)?t.minDomain:void 0}function ns(t,n){const e=an()(n.sort(((t,n)=>t-n))),r=e[1]-e[0];return[t[0],t[1]+r]}function es(t){const n=t=>t&&t.type?t.type.role:"";let e=n(t);if("portal"===e){const r=u().Children.toArray(t.props.children);e=r.length?n(r[0]):""}return["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(e)}function rs(t){return t}function is(t){const{dependentAxis:n}=t;return n?"y":"x"}function os(t,n){const e=n||rs,r=t=>t.reduce(((t,n)=>n.type&&"axis"===n.type.role&&e(n)?t.concat(n):n.props&&n.props.children?t.concat(r(u().Children.toArray(n.props.children))):t),[]);return r(t)}function as(t,n){return os(t,(t=>t.type.getAxis(t.props)===n))[0]}function ss(t,n){const e=t=>t.reduce(((t,r)=>r.type&&"axis"===r.type.role&&(t=>"dependent"===n?t.props.dependentAxis:!t.props.dependentAxis)(r)||r.props&&r.props.children&&e(u().Children.toArray(r.props.children)).length>0?t.concat(r):t),[]);return e(t)}function cs(t){const n=t=>{const n=Math.min(...t),e=Math.max(...t);return e<0?e:Math.max(0,n)};return{x:Dt(t.x)?new Date(Math.min(...t.x)):n(t.x),y:Dt(t.y)?new Date(Math.min(...t.y)):n(t.y)}}function us(t,n){return Dt(n)?"positive":t<=0&&Math.max(...n)<=0?"negative":"positive"}function ls(t){return{top:!1,bottom:!1,left:!0,right:!0}[t.orientation||(t.dependentAxis?"left":"bottom")]}function fs(t){return void 0!==t.tickValues&&Lt(t.tickValues)}function ds(t){const{tickValues:n,tickFormat:e}=t;if(0===n?.length)return[];const r=is(t),i=t.stringMap&&t.stringMap[r];let o=n;i&&(o=function(t){const n=is(t),e=t.stringMap&&t.stringMap[n],r=Array.isArray(t.categories)?t.categories:t.categories&&t.categories[n],i=r&&Pt(o=r)&&o.every((t=>"string"==typeof t))?r.map((t=>e[t])):void 0;var o;const a=e&&Object.values(e);return i&&0!==i.length?i:a}(t)),n&&Lt(n)&&(o=i?n.map((t=>i[t])):S(1,n.length+1));const a=o?Jt()(o):(()=>{if(e&&Array.isArray(e))return Lt(e)?e.map(((t,n)=>n)):e})();return Array.isArray(a)&&a.length?(n=>{const e=[],i=t.domain&&t.domain[r]||t.domain;if(n)return n.forEach(((t,n)=>{Array.isArray(i)?t>=It(i)&&t<=zt(i)&&e.push({value:t,index:n}):e.push({value:t,index:n})})),e})(a):void 0}function ps(t,n){const{tickFormat:e}=t,r=is(t),i=t.stringMap&&t.stringMap[r];if(!e){const e=function(t){const{tickValues:n}=t,e=is(t),r=t.stringMap&&t.stringMap[e],i=n&&!Dt(n)?t=>t:void 0;if(!r)return fs(t)?(t,e)=>n[e]:i;const o=r&&h(r),a=["",...nn()(Object.values(r),(t=>t)).map((t=>o[t])),""];return t=>a[t]}(t),r=n.tickFormat&&C(n.tickFormat)?n.tickFormat():t=>t;return e||r}if(e&&Array.isArray(e)){const n=ds(t)?.map((t=>t.index)),r=e.filter(((t,e)=>n?.includes(e)));return(t,n)=>r[n]}if(e&&C(e)){const n=(n,e,r)=>{const o=h(i),a=r.map((t=>o[t]));return t.tickFormat(o[n],e,a)};return i?n:e}return t=>t}function hs(t,n){if(!n||!Array.isArray(t)||t.length<=n)return t;const e=Math.floor(t.length/n);return t.filter(((t,n)=>n%e==0))}function gs(t,n,e){void 0===e&&(e=!1);const{tickCount:r}=t,i=ds(t);if(0===i?.length)return[""];const o=i?i.map((t=>t.value)):void 0;if(o)return hs(o,r);if(n.ticks&&C(n.ticks)){const t=r||5,i=n.ticks(t),o=hs(Array.isArray(i)&&i.length?i:n.domain(),r);if(e){const t=o.filter((t=>0!==t));return t.length?t:o}return o}return n.domain()}function ms(t,n){const{polar:e,startAngle:r=0,endAngle:i=360}=t,o=ds(t),a=o&&0!==o?.length?o.map((t=>t.value)):void 0;if(!Array.isArray(a))return;const s=ts(t,n),c=Ja(t,n),u=fs(t),l=a.map((t=>Number(t))),f=u?1:It(l),d=u?a.length:zt(l),p=Za(void 0!==s?s:f,void 0!==c?c:d),h=e&&"x"===n&&360===Math.abs(r-i)?ns(p,l):p;return ls(t)&&!e&&h.reverse(),h}function ys(t,n){const e=is(t);if(!n||n===e)return Ya(ms)(t,e)}function vs(t,n){if(!t.axisValue)return;const e="x"===n?"y":"x",r=I()(t.scale)&&C(t.scale[e])?t.scale[e]:void 0;if(!r)return;const i="x"===n?"y":"x",o=I()(t.stringMap)&&t.stringMap[i];return r(o&&"string"==typeof t.axisValue?o[t.axisValue]:t.axisValue)}function xs(t,n){if(!I()(t.theme))return j(t,n,"axis");let e="axis";if(t.dependentAxis&&t.theme.dependentAxis?e="dependentAxis":!t.dependentAxis&&t.theme.independentAxis&&(e="independentAxis"),"axis"===e)return j(t,n,"axis");const r=s()({},t.theme[e],t.theme.axis),i=Object.assign({},t.theme,{axis:r});return j(Object.assign({},t,{theme:i}),n,"axis")}var bs=r(4912),As=r.n(bs);const ks=/^onGlobal(.*)$/;function ws(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&&C(r)?r(i(o),n):void 0;if(!t.sharedEvents)return a;const s=t.sharedEvents.getEvents,c=t.sharedEvents.events&&s(i(t.sharedEvents.events),n);return Object.assign({},c,a)}function Ms(t,n,e,r){if(o()(t))return{};const i=r||this.baseProps,a=(t,n)=>{const{childName:e,target:r,key:o}=t,a="props"===n?i:this.state||{},s=null!=e&&a[e]?a[e]:a;return"parent"===o?s.parent:s[o]&&s[o][r]},s=(t,r)=>{const o="parent"===n?t.childName:t.childName||e,s=t.target||n,c=(n,e)=>{const r=this.state||{};if(!C(t.mutation))return r;const o=a({childName:e,key:n,target:s},"props"),c=a({childName:e,key:n,target:s},"state"),u=t.mutation(Object.assign({},o,c),i),l=r[e]||{},f=t=>u?(t=>"parent"===s?Object.assign(t,{[n]:Object.assign(t[n]||{},u)}):Object.assign(t,{[n]:Object.assign(t[n]||{},{[s]:u})}))(t):(t=>(t[n]&&t[n][s]&&delete t[n][s],t[n]&&!Object.keys(t[n]).length&&delete t[n],t))(t);return null!=e?Object.assign(r,{[e]:f(l)}):f(r)},u=n=>{const e=(n=>"parent"===s?"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,c(e,n))),{}):c(e,n)},l="all"===o?Object.keys(i).filter((t=>"parent"!==t)):o;return Array.isArray(l)?l.reduce(((t,n)=>Object.assign(t,u(n))),{}):u(l)},c=(n,e,r,i)=>{const a=t[i](n,e,r,this);if(!o()(a)){const t=(t=>{const n=t=>C(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})(a);this.setState(((t,n)=>Array.isArray(t)?t.reduce(((t,e)=>Object.assign({},t,s(e,n))),{}):s(t,n))(a,r),t)}};return Object.keys(t).reduce(((t,n)=>(t[n]=c,t)),{})}function Es(t,n,e){return t?Object.keys(t).reduce(((r,i)=>(r[i]=r=>t[i](r,e,n,i),r)),{}):{}}function Cs(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 Os(t,n,e,r){return void 0===n&&(n={}),void 0===e&&(e={}),Object.keys(n).reduce(((i,a)=>{const s=e[a]||{},c=n[a]||{};if("parent"===a){const n=js(t,c,s,{eventKey:a,target:"parent"});i[a]=void 0!==n?Object.assign({},s,n):s}else{const n=Jt()(Object.keys(c).concat(Object.keys(s)));i[a]=n.reduce(((n,e)=>{const i={eventKey:a,target:e,childName:r},u=js(t,c[e],s[e],i);return n[e]=void 0!==u?Object.assign({},s[e],u):s[e],As()(n,(t=>!o()(t)))}),{})}return As()(i,(t=>!o()(t)))}),{})}function js(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 a=Array.isArray(t)?t:[t];r.childName&&(a=t.filter((t=>i(t,"childName"))));const s=a.filter((t=>i(t,"target")));if(o()(s))return;const c=s.filter((t=>i(t,"eventKey")));return o()(c)?void 0:c.reduce(((t,r)=>{const i=(r&&C(r.mutation)?r.mutation:()=>{})(Object.assign({},n,e));return Object.assign({},t,i)}),{})}function Ss(t,n){const e=Array.isArray(n)&&n.reduce(((n,e)=>{const r=t[e],i=r&&r.type&&r.type.defaultEvents,o=C(i)?i(r.props):i;return Array.isArray(o)?n.concat(...o):n}),[]);return e&&e.length?e:void 0}function Ts(t){const n=t.match(ks);return n&&n[1]&&n[1].toLowerCase()}const Ps=t=>As()(t,((t,n)=>ks.test(n))),Ls=t=>cn()(t,((t,n)=>ks.test(n))),Ds=t=>Object.assign(t,{nativeEvent:t});function Ns(t,n,e){const r=e||u().Children.toArray(t.children),i=Qa(t,n),o=function(t,n,e){if(t.polar||"x"!==n)return;const r=e.filter((t=>t.type&&t.type.role&&"group"===t.type.role));if(r.length<1)return;const{offset:i,children:o}=r[0].props;if(!i)return;const a=Array.isArray(o)&&o[0];if(!a)return;let s=a.props.barWidth,c=a.props.data&&a.props.data.length||1;if(a&&"stack"===a.type.role){const t=a.props.children&&a.props.children[0];if(!t)return;s=t.props.barWidth,c=a.props.children.length}const u=s||function(t,n,e){const{datasets:r,horizontal:i}=t,o=M(t,i?"y":"x"),a=Math.abs(o[1]-o[0]),s=void 0!==e?e:Array.isArray(r[0])&&r[0].length||1,c=(n||r.length)*s;return Math.round(.5*a/c)}(t,o.length,c);return{x:u*o.length/2+(i-u*((o.length-1)/2))}}(t,n,r);let a;if(i)a=i;else{const e=ts(t,n),i=Ja(t,n),o=(t.data||t.y)&&Va(t),s=o?Xa(t,n,o):[],c=function(t,n,e){const r=e?e.slice(0):u().Children.toArray(t.children),i=t.data?Va(t):void 0,{polar:o,startAngle:a,endAngle:s,categories:c,minDomain:l,maxDomain:f,horizontal:d}=t,p={horizontal:d,polar:o,startAngle:a,endAngle:s,minDomain:l,maxDomain:f,categories:c},h=i?Object.assign(p,{data:i}):p,g=T(r,(t=>{const e=Object.assign({},t.props,h);return es(t)?t.type&&C(t.type.getDomain)?t.props&&t.type.getDomain(e,n):function(t,n){return Ya()(t,n)}(e,n):null}),t);return[0===g.length?0:It(g),0===g.length?1:zt(g)]}(t,n,r);a=Za(e||It([...s,...c]),i||zt([...s,...c]))}return Ka(a,Object.assign({domainPadding:o},t),n)}function $s(t,n,e){if(t.data)return La(t,n);const r=e?e.slice(0):u().Children.toArray(t.children),i=Jt()(T(r,(e=>Na(Object.assign({},e.props,{horizontal:t.horizontal}),n)),t));return i.length>1?Pa("linear"):Pa(i[0])}function _s(t,n,e){const r=Kt()(t.categories)?t.categories[n]:t.categories,i=as(e,n),o=i?qa(i.props,n):[],a=r||function(t,n){return T(t.slice(0),(t=>{const e=t.props||{};if(!es(t)||!e.categories)return null;const r=e.categories&&!Array.isArray(e.categories)?e.categories[n]:e.props.categories,i=r&&r.filter((t=>"string"==typeof t));return i?_t(i):[]}))}(e,n);return Jt()([...a,...o].flat())}function zs(t,n){const e=n||u().Children.toArray(t.children),r=_s(t,"x",e),i=_s(t,"y",e),o=function(t){return T(t.slice(0),(t=>{const n=t.props||{};let e;return function(t){const n=t=>t&&t.type?t.type.role:"";let e=n(t);if("portal"===e){const r=u().Children.toArray(t.props.children);e=r.length?n(r[0]):""}return["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(e)}(t)?(e=t.type&&C(t.type.getData)?t.type.getData(n):Va(n),e.map((t=>({x:t.xName,y:t.yName})))):null}),{},{x:[],y:[]},((t,n)=>{const e=Array.isArray(n)?n.map((t=>t.x)).filter(Boolean):n.x,r=Array.isArray(n)?n.map((t=>t.y)).filter(Boolean):n.y;return{x:void 0!==e?t.x.concat(e):t.x,y:void 0!==r?t.y.concat(r):t.y}}))}(e);return{x:Jt()([...r,...o.x].flat()),y:Jt()([...i,...o.y].flat())}}var Is=r(7314),Fs=r.n(Is),Us=r(7491),Ws=r.n(Us),Rs=r(2516),Hs=r.n(Rs);class Vs extends u().Component{static displayName="VictorySharedEvents";static role="shared-event-wrapper";static contextType=ct;static defaultProps={groupComponent:u().createElement("g",null)};constructor(t){super(t),this.getScopedEvents=Ms.bind(this),this.getEventState=Cs.bind(this),this.state=this.state||{},this.sharedEventsCache={},this.globalEvents={},this.prevGlobalEventKeys=[],this.boundGlobalEvents={},this.baseProps=this.getBaseProps(t)}shouldComponentUpdate(t){if(!Ws()(this.props,t)){this.baseProps=this.getBaseProps(t);const n=this.getExternalMutations(t,this.baseProps);this.applyExternalMutations(t,n)}return!0}componentDidMount(){const t=Object.keys(this.globalEvents);t.forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=t}componentDidUpdate(){const t=Object.keys(this.globalEvents);Nt(this.prevGlobalEventKeys,t).forEach((t=>this.removeGlobalListener(t))),Nt(t,this.prevGlobalEventKeys).forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=t}componentWillUnmount(){this.prevGlobalEventKeys.forEach((t=>this.removeGlobalListener(t)))}addGlobalListener(t){const n=n=>{const e=this.globalEvents[t];return e&&e(Ds(n))};this.boundGlobalEvents[t]=n,window.addEventListener(Ts(t),n)}removeGlobalListener(t){window.removeEventListener(Ts(t),this.boundGlobalEvents[t])}getAllEvents(t){const n=Ss(t,["container","groupComponent"]);return Array.isArray(n)?Array.isArray(t.events)?n.concat(...t.events):n:t.events}applyExternalMutations(t,n){if(!o()(n)){const e=t.externalEventMutations.reduce(((t,n)=>C(n.callback)?t.concat(n.callback):t),[]),r=e.length?()=>{e.forEach((t=>t()))}:void 0;this.setState(n,r)}}getExternalMutations(t,n){return o()(t.externalEventMutations)?void 0:function(t,n,e,r){return void 0===n&&(n={}),void 0===e&&(e={}),r.reduce(((r,i)=>{const a=e[i],s=Os(t,n[i],e[i],i);return r[i]=s||a,As()(r,(t=>!o()(t)))}),{})}(t.externalEventMutations,n,this.state,Object.keys(n))}cacheSharedEvents(t,n,e){this.sharedEventsCache[t]=[n,e]}getCachedSharedEvents(t,n){const[e,r]=this.sharedEventsCache[t]||[];if(e&&Ws()(n,r))return e}getBaseProps(t){const{container:n}=t,e=u().Children.toArray(this.props.children),r=this.getBasePropsFromChildren(e),i=n?n.props:{};return Object.assign({},r,{parent:i})}getBasePropsFromChildren(t){const n=T(t,((t,n)=>{if(t.type&&C(t.type.getBaseProps)){const e=t.props&&t.type.getBaseProps(t.props);return e?[[n,e]]:null}return null}));return Fs()(n)}getNewChildren(t,n){const{events:e,eventKey:r}=t,i=(t,o)=>t.reduce(((t,a,s)=>{if(a.props.children){const n=u().Children.toArray(a.props.children),e=o.slice(s,s+n.length),r=u().cloneElement(a,a.props,i(n,e));return t.concat(r)}if("parent"!==o[s]&&a.type&&C(a.type.getBaseProps)){const i=a.props.name||o[s],c=Array.isArray(e)&&e.filter((t=>"parent"!==t.target&&(Array.isArray(t.childName)?t.childName.indexOf(i)>-1:t.childName===i||"all"===t.childName))),l=[i,n,c,Hs()(this.state[i])],f=this.getCachedSharedEvents(i,l)||{events:c,getEvents:(t,e)=>this.getScopedEvents(t,e,i,n),getEventState:(t,n)=>this.getEventState(t,n,i)};return this.cacheSharedEvents(i,f,l),t.concat(u().cloneElement(a,Object.assign({key:`events-${i}`,sharedEvents:f,eventKey:r,name:i},a.props)))}return t.concat(a)}),[]),o=Object.keys(n),a=u().Children.toArray(t.children);return i(a,o)}getContainer(t,n,e){const r=this.getNewChildren(t,n),i=Array.isArray(e)?e.filter((t=>"parent"===t.target)):[],o=i.length>0?{events:i,getEvents:(t,e)=>this.getScopedEvents(t,e,null,n),getEventState:this.getEventState}:null,a=t.container||t.groupComponent,c=a.type&&a.type.role,l=a.props||{},f=ws.bind(this),d=o&&f({sharedEvents:o},"parent"),p=s()({},this.getEventState("parent","parent"),l,n.parent,{children:r}),h=s()({},Es(d,"parent",p),l.events);this.globalEvents=Ps(h);const g=Ls(h);return"container"===c?u().cloneElement(a,Object.assign({},p,{events:g})):u().cloneElement(a,g,r)}render(){const t=this.getAllEvents(this.props);return t?this.getContainer(this.props,this.baseProps,t):u().cloneElement(this.props.container,{children:this.props.children})}}function qs(){return qs=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},qs.apply(this,arguments)}const Bs=(0,c.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,s={vectorEffect:"non-scaling-stroke",id:v(r,t)?.toString(),tabIndex:v(i,t),...a};return e?u().createElement("line",qs({},s,{ref:n}),u().createElement("desc",null,e)):u().createElement("line",qs({},s,{ref:n}))})),Gs={lineComponent:u().createElement(Bs,null),role:"presentation",shapeRendering:"auto"},Ys=t=>{const n=(t=>{const n=v(t.ariaLabel,t),e=v(t.desc,t),r=v(t.id,t),i=x(Object.assign({stroke:"black"},t.style),t),o=v(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})({...Gs,...t});return u().cloneElement(n.lineComponent,{...n.events,"aria-label":n.ariaLabel,style:n.style,desc:n.desc,tabIndex:n.tabIndex,className:n.className,role:n.role,shapeRendering:n.shapeRendering,x1:n.x1,x2:n.x2,y1:n.y1,y2:n.y2,transform:n.transform,clipPath:n.clipPath})};class Ks extends u().Component{static displayName="VictoryPortal";static role="portal";static defaultProps={groupComponent:u().createElement("g",null)};static contextType=R;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=s()(r,e,g(this.props,["children","groupComponent"])),o=t&&u().cloneElement(t,i);return this.renderPortal(o)}}const Xs=t=>{const{children:n,desc:e,id:r,origin:i,tabIndex:o,title:a,...s}=t,c={id:v(r,t)?.toString(),tabIndex:v(o,t),...s};return u().createElement("text",c,a&&u().createElement("title",null,a),e&&u().createElement("desc",null,e),n)},Zs=t=>{const{desc:n,id:e,tabIndex:r,origin:i,...o}=t,a={id:v(e,t)?.toString(),tabIndex:v(r,t),...o};return u().createElement("tspan",a)};function Qs(t){const{labelComponent:n,labelPlacement:e,polar:r}=t,i=r?"perpendicular":"vertical";return e||n.props&&n.props.labelPlacement||i}function Js(t,n){const e=Qs(t);return"perpendicular"===e||"vertical"===e&&(90===n||270===n)?"middle":n<=90||n>270?"start":"end"}function tc(t,n){const e=Qs(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"}function nc(t,n){const{labelPlacement:e,datum:r}=t;if(!e||"vertical"===e)return 0;const i=void 0!==n?n%360:function(t,n){const{x:e}=m(n);return A(t.scale.x(e))%360}(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)}const ec=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,ec(n)].join(" ")),ec(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 rc=r(1594),ic=r.n(rc);const oc={"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}},ac={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},sc={em:1,ex:.5},cc={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},uc=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),lc=(t,n,e)=>{const r=(t=>t*Math.PI/180)(e);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*n)},fc=(t,n)=>{const e=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let i;return i=e?ac.hasOwnProperty(e)?r*ac[e]:sc.hasOwnProperty(e)?(n?r*n:r*cc.fontSize)*sc[e]:r:r||0,i},dc=(t,n)=>{const e=Array.isArray(t)?t[n]:t,r=s()({},e,cc);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:fc(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:fc(String(r.fontSize))})},pc=(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:uc(t).reduce(((t,e,r)=>{const i=dc(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=uc(t).map(((t,e)=>{const r=t.toString().length,{fontSize:i,letterSpacing:o,fontFamily:a}=dc(n,e),s=(t=>{const n=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>oc[t]))||"Helvetica";return oc[n]})(a);return t.toString().split("").map((t=>t.charCodeAt(0)<s.widths.length?s.widths[t.charCodeAt(0)]:s.avg)).reduce(((t,n)=>n+t),0)*i+o*Math.max(r-1,0)}));return Math.max(...e)})(t,n);return{width:e?lc(i,r,e):i,height:1.05*(e?lc(r,i,e):r)}},hc=ic()((()=>{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})),gc=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",mc=ic()(((t,n)=>{let e=hc();e.isConnected||(hc.cache.clear?.(),e=hc());const r=uc(t);let i=0;for(const[t,o]of r.entries()){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),a=dc(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?lc(o,i,n?.angle):o,height:n?.angle?lc(i,o,n?.angle):i}}),((t,n)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(n)?n.map(gc).join():gc(n)}`)),yc=(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?pc(t,n):mc(t,n)}(t,n),vc={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},xc=(t,n)=>{if(!t.datum)return 0;const e=function(t,n){const{scale:e,polar:r,horizontal:i}=t,o=m(n),a=t.origin||{x:0,y:0},s=i?e.y(o.y):e.x(o.x),c=i?e.y(o.y0):e.x(o.x0),u=i?e.x(o.x):e.y(o.y),l=i?e.x(o.x0):e.y(o.y0);return{x:r?u*Math.cos(s)+a.x:s,x0:r?l*Math.cos(c)+a.x:c,y:r?-u*Math.sin(s)+a.y:u,y0:r?-l*Math.sin(c)+a.x:l}}(t,t.datum);return e[n]},bc=t=>{const n=t&&t.fontSize;if("number"==typeof n)return n;if(null==n)return vc.fontSize;if("string"==typeof n){const t=Number(n.replace("px",""));return isNaN(t)?vc.fontSize:t}return vc.fontSize},Ac=function(t,n){return void 0===n&&(n=0),Array.isArray(t)?t[n]||t[0]:t},kc=t=>{const{backgroundStyle:n,backgroundPadding:e}=t;return Array.isArray(n)&&!o()(n)||Array.isArray(e)&&!o()(e)},wc=(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)}},Mc=(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)}},Ec=(t,n)=>kc(t)?((t,n)=>{const{dy:e,dx:r,transform:i,backgroundStyle:o,backgroundPadding:a,backgroundComponent:c,inline:l,y:f}=t,d=n.map(((t,i)=>{const o=Ac(n,i-1),s=t.textSize,c=t.fontSize*t.lineHeight,u=Math.ceil(c),d=Ac(a,i),p=Ac(a,i-1),h=l&&r||0,g=i&&!l?o.fontSize*o.lineHeight+p.top+p.bottom:e-.5*c-(t.fontSize-t.capHeight);return{textHeight:u,labelSize:s,heightWithPadding:u+d.top+d.bottom,widthWithPadding:s.width+d.left+d.right+h,y:f,fontSize:t.fontSize,dy:g}}));return d.map(((n,e)=>{const r=wc(t,n.labelSize.width),p=d.slice(0,e+1).reduce(((t,n)=>t+n.dy),f),h=Ac(a,e),g=n.heightWithPadding,m=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,d,e)+r-h.left:r,y=l?Mc(t,g)-h.top:p,v={key:`tspan-background-${e}`,height:g,style:Ac(o,e),width:n.widthWithPadding,transform:i,x:m-h.left,y:y};return u().cloneElement(c,s()({},c.props,v))}))})(t,n):((t,n)=>{const{dx:e=0,transform:r,backgroundComponent:i,backgroundStyle:o,inline:a,backgroundPadding:c,capHeight:l}=t,f=n.map((t=>t.textSize)),d=a?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),p=a?f.reduce(((t,n,r)=>{const i=r?e:0;return t+n.width+i}),0):Math.max(...f.map((t=>t.width))),h=wc(t,p),g=Mc(t,d),m={key:"background",height:d+c.top+c.bottom,style:o,transform:r,width:p+c.left+c.right,x:a?h-c.left:h+e-c.left,y:g};return u().cloneElement(i,s()({},i.props,m))})(t,n),Cc=(t,n,e)=>{const{inline:r}=n,i=Ac(t,e);return e&&!r?((t,n,e)=>{const r=Ac(t,n),i=Ac(t,n-1),o=i.fontSize*i.lineHeight,a=r.fontSize*r.lineHeight,s=i.fontSize-i.capHeight,c=r.fontSize-r.capHeight,u=o-i.fontSize/2+r.fontSize/2-o/2+a/2-c/2+s/2;return kc(e)?u+r.backgroundPadding.top+i.backgroundPadding.bottom:u})(t,e,n):r?0===e?i.backgroundPadding.top:void 0:i.backgroundPadding.top},Oc={backgroundComponent:u().createElement(L,null),groupComponent:u().createElement("g",null),direction:"inherit",textComponent:u().createElement(Xs,null),tspanComponent:u().createElement(Zs,null),capHeight:.71,lineHeight:1},jc=t=>{const n=(t=>{const n=((t,n)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>v(t,n)));const e=v(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=x(t,n);return{fontSize:bc(e)}}const e=t=>{const e=x(t?s()({},t,vc):vc,n);return Object.assign({},e,{fontSize:bc(e)})};return Array.isArray(t)&&!o()(t)?t.map((t=>e(t))):e(t)})(t.style,Object.assign({},t,{text:n})),r=((t,n)=>{if(t)return Array.isArray(t)&&!o()(t)?t.map((t=>x(t,n))):x(t,n)})(t.backgroundStyle,Object.assign({},t,{text:n,style:e})),i=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((n=>y({padding:v(n,t)}))):y({padding:v(t.backgroundPadding,t)}))(Object.assign({},t,{text:n,style:e,backgroundStyle:r})),a=v(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:i,style:e,text:n,id:a})})({...Oc,...t});if(null===n.text||void 0===n.text)return null;const e=(t=>{const n=v(t.ariaLabel,t),e=Ac(t.style),r=(t=>{const n=v(t.lineHeight,t);return Array.isArray(n)&&o()(n)?[1]:n})(t),i=t.direction?v(t.direction,t):"inherit",a=t.textAnchor?v(t.textAnchor,t):e.textAnchor||"start",s=t.verticalAnchor?v(t.verticalAnchor,t):e.verticalAnchor||"middle",c=t.dx?v(t.dx,t):0,u=((t,n,e)=>{const r=t.dy?v(t.dy,t):0,i=t.inline?1:t.text.length,o=v(t.capHeight,t),a=n?v(n,t):"middle",s=[...Array(i).keys()].map((n=>Ac(t.style,n).fontSize)),c=[...Array(i).keys()].map((t=>Ac(e,t)));if("start"===a)return r+(o/2+c[0]/2)*s[0];if(t.inline)return"end"===a?r+(o/2-c[0]/2)*s[0]:r+o/2*s[0];if(1===i)return"end"===a?r+(o/2+(.5-i)*c[0])*s[0]:r+(o/2+(.5-i/2)*c[0])*s[0];const u=[...Array(i).keys()].reduce(((t,n)=>t+(o/2+(.5-i)*c[n])*s[n]/i),0);return"end"===a?r+u:r+u/2+o/2*c[i-1]*s[i-1]})(t,s,r),l=void 0!==t.x?t.x:xc(t,"x"),f=void 0!==t.y?t.y:xc(t,"y"),d=((t,n,e)=>{const{polar:r}=t,i=Ac(t.style),o=r?nc(t):0,a=void 0===i.angle?v(t.angle,t):i.angle,s=void 0===a?o:a,c=t.transform||i.transform,u=c&&v(c,t);return u||s?ec(u,s&&{rotate:[s,n,e]}):void 0})(t,l,f);return Object.assign({},t,{ariaLabel:n,lineHeight:r,direction:i,textAnchor:a,verticalAnchor:s,dx:c,dy:u,originalDy:v(t.dy,t),transform:d,x:l,y:f})})(n),{text:r,style:i,capHeight:a,backgroundPadding:c,lineHeight:l}=e,f=r.map(((t,n)=>{const e=Ac(i,n),r=fc(`${a}em`,e.fontSize),o=Ac(l,n);return{style:e,fontSize:e.fontSize||vc.fontSize,capHeight:r,text:t,textSize:yc(t,e),lineHeight:o,backgroundPadding:Ac(c,n)}})),d=((t,n)=>{const{ariaLabel:e,inline:r,className:i,title:o,events:a,direction:s,text:c,textAnchor:l,dx:f,dy:d,transform:p,x:h,y:g,desc:m,id:y,tabIndex:x,tspanComponent:b,textComponent:A}=t,k=lt(t),w={"aria-label":e,key:"text",...a,direction:s,dx:f,x:h,y:g+d,transform:p,className:i,title:o,desc:v(m,t),tabIndex:v(x,t),id:y,...k},M=c.map(((e,i)=>{const o=n[i].style,a={key:`${y}-key-${i}`,x:r?void 0:h,dx:r?f+n[i].backgroundPadding.left:f,dy:Cc(n,t,i),textAnchor:o.textAnchor||l,style:o,children:e};return u().cloneElement(b,a)}));return u().cloneElement(A,w,M)})(e,f);if(n.backgroundStyle){const t=[Ec(e,f),d],r=u().cloneElement(n.groupComponent,{},t);return n.renderInPortal?u().createElement(Ks,null,r):r}return n.renderInPortal?u().createElement(Ks,null,d):d};jc.displayName="VictoryLabel",jc.role="label",jc.defaultStyles=vc;const Sc=t=>+t;function Tc(t){return t*t}function Pc(t){return t*(2-t)}function Lc(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function Dc(t){return t*t*t}function Nc(t){return--t*t*t+1}function $c(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var _c=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),zc=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),Ic=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),Fc=Math.PI,Uc=Fc/2;function Wc(t){return 1==+t?1:1-Math.cos(t*Uc)}function Rc(t){return Math.sin(t*Uc)}function Hc(t){return(1-Math.cos(Fc*t))/2}function Vc(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function qc(t){return Vc(1-+t)}function Bc(t){return 1-Vc(t)}function Gc(t){return((t*=2)<=1?Vc(1-t):2-Vc(t-1))/2}function Yc(t){return 1-Math.sqrt(1-t*t)}function Kc(t){return Math.sqrt(1- --t*t)}function Xc(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Zc=7.5625;function Qc(t){return 1-Jc(1-t)}function Jc(t){return(t=+t)<.36363636363636365?Zc*t*t:t<.7272727272727273?Zc*(t-=.5454545454545454)*t+.75:t<.9090909090909091?Zc*(t-=.8181818181818182)*t+.9375:Zc*(t-=.9545454545454546)*t+.984375}function tu(t){return((t*=2)<=1?1-Jc(1-t):Jc(t-1)+1)/2}var nu=1.70158,eu=function t(n){function e(t){return(t=+t)*t*(n*(t-1)+t)}return n=+n,e.overshoot=t,e}(nu),ru=function t(n){function e(t){return--t*t*((t+1)*n+t)+1}return n=+n,e.overshoot=t,e}(nu),iu=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}(nu),ou=2*Math.PI,au=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=ou);function i(t){return n*Vc(- --t)*Math.sin((r-t)/e)}return i.amplitude=function(n){return t(n,e*ou)},i.period=function(e){return t(n,e)},i}(1,.3),su=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=ou);function i(t){return 1-n*Vc(t=+t)*Math.sin((t+r)/e)}return i.amplitude=function(n){return t(n,e*ou)},i.period=function(e){return t(n,e)},i}(1,.3),cu=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=ou);function i(t){return((t=2*t-1)<0?n*Vc(-t)*Math.sin((r-t)/e):2-n*Vc(t)*Math.sin((r+t)/e))/2}return i.amplitude=function(n){return t(n,e*ou)},i.period=function(e){return t(n,e)},i}(1,.3);const uu=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)||Kt()(t)}return!1},lu=function(t,n,e){return void 0===e&&(e=0),function(r){return r<e?t:n}},fu=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 Te(r,i)(e)}}},du=function(t,n){const e=t=>Array.isArray(t)?nn()(t,"key"):t,r={},i={};let o,a=t,s=n;for(o in null!==a&&"object"==typeof a||(a={}),null!==s&&"object"==typeof s||(s={}),s)o in a?r[o]=(c=e(a[o]))!==(u=e(s[o]))&&uu(c)&&uu(u)?"function"==typeof c||"function"==typeof u?fu(c,u):"object"==typeof c&&Kt()(c)||"object"==typeof u&&Kt()(u)?du(c,u):Te(c,u):lu(c,u):i[o]=s[o];var c,u;return function(t){for(o in r)i[o]=r[o](t);return i}},pu=1e3,hu=t=>{let{duration:e=pu,easing:r="quadInOut",delay:i=0,data:o,children:a,onEnd:s}=t;const[c,l]=u().useState({data:Array.isArray(o)?o[0]:o,animationInfo:{progress:0,animating:!1}}),f=u().useContext(ct).animationTimer,d=u().useRef(Array.isArray(o)?o.slice(1):[]),p=u().useRef(null),h=u().useRef(void 0),g=n[(m=r,`ease${m.charAt(0).toUpperCase()+m.slice(1)}`)];var m;u().useEffect((()=>(d.current.length&&y(),()=>{h.current?f.unsubscribe(h.current):f.stop()})),[]),u().useEffect((()=>{p.current&&c.animationInfo&&c.animationInfo.progress<1?l({data:p.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}):(f.unsubscribe(h.current),d.current=Array.isArray(o)?o:[o],y())}),[o]);const y=()=>{if(d.current.length){const r=d.current[0];p.current=(t=c.data)!==(n=r)&&uu(t)&&uu(n)?"function"==typeof t||"function"==typeof n?fu(t,n):Kt()(t)||Kt()(n)?du(t,n):"string"==typeof t||"string"==typeof n?function(t,n){const e=t=>"string"==typeof t?t.replace(/,/g,""):t;return Te(e(t),e(n))}(t,n):Te(t,n):lu(t,n),i?setTimeout((()=>{h.current=f.subscribe(v,e)}),i):h.current=f.subscribe(v,e)}else s&&s();var t,n},v=t=>{if(!p.current)return;const n=e?t/e:1;if(n>=1)return l({data:p.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),h.current&&f.unsubscribe(h.current),d.current.shift(),void y();l({data:p.current(g(n)),animationInfo:{progress:n,animating:n<1}})};return a(c.data,c.animationInfo)};function gu(){return gu=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},gu.apply(this,arguments)}class mu extends u().Component{static displayName="VictoryTransition";static contextType=ct;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 Ws()(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=u().Children.toArray(t.children),i=u().Children.toArray(n.children),{nodesWillExit:o,nodesWillEnter:a,childrenTransitions:s,nodesShouldEnter:c}=qt(r,i);return{nodesWillExit:o,nodesWillEnter:a,childrenTransitions:s,nodesShouldEnter:c,oldProps:o?t:null,nextProps:n}}getDomainFromChildren(t,n){const e=t=>t.reduce(((t,r)=>{if(r.type&&C(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(u().Children.toArray(r.props.children))):t}),[]),r=u().Children.toArray(t.children)[0],i=r.props||{},o=Array.isArray(i.domain)?i.domain:i.domain&&i.domain[n];if(!i.children&&o)return o;const a=e([r]);return 0===a.length?[0,1]:[It(a),zt(a)]}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:Bt(t,this.state,(t=>this.setState(t))),e=u().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")},o=this.getClipWidth(t,e),a=s()({domain:i,clipWidth:o},r,e.props),c=(t.animationWhitelist||[]).concat(["clipWidth"]),l=c.length?f()(a,c):a;return u().createElement(hu,gu({},a.animate,{data:l}),(t=>{if(e.props.groupComponent){const n=this.continuous?u().cloneElement(e.props.groupComponent,{clipWidth:t.clipWidth||0}):e.props.groupComponent;return u().cloneElement(e,s()({animate:null,animating:!0,groupComponent:n},t,a))}return u().cloneElement(e,s()({animate:null,animating:!0},t,a))}))}}const yu=t=>!E(t._x)&&!E(t._y),vu=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function xu(t,n){return void 0===n&&(n={}),class extends t{constructor(t){super(t),this.cacheValues(this.getCalculatedValues(t))}state={};getEventState=Cs.bind(this);getScopedEvents=Ms.bind(this);getEvents=(t,n,e)=>ws.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=!Ws()(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 Ws()(this.calculatedState,i)?!Ws()(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);Nt(this.prevGlobalEventKeys,e).forEach((t=>this.removeGlobalListener(t))),Nt(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(Ds(n))};this.boundGlobalEvents[t]=n,window.addEventListener(Ts(t),n)}removeGlobalListener(t){window.removeEventListener(Ts(t),this.boundGlobalEvents[t])}getStateChanges(t){if(!this.hasEvents)return{};const e=(t,n)=>{const e=s()({},this.getEventState(t,n),this.getSharedEventState(t,n));return o()(e)?void 0:e};return(n.components||vu).map((n=>{if(t.standalone||"parent"!==n.name)return void 0!==n.index?e(n.index,n.name):this.dataKeys.map((t=>e(t,n.name))).filter(Boolean)})).filter(Boolean)}applyExternalMutations(t,n){if(!o()(n)){const e=t.externalEventMutations.reduce(((t,n)=>C(n.callback)?t.concat(n.callback):t),[]),r=e.length?()=>{e.forEach((t=>t()))}:void 0;this.setState(n,r)}}getCalculatedValues(n){const{sharedEvents:e}=n,r=Ss(n,t.expectedComponents),i=e&&C(e.getEventState)?e.getEventState:()=>{},o=this.getBaseProps(n,i);return{componentEvents:r,getSharedEventState:i,baseProps:o,dataKeys:Object.keys(o).filter((t=>"parent"!==t)),hasEvents:n.events||n.sharedEvents||r,events:this.getAllEvents(n)}}getExternalMutations(t){const{sharedEvents:n,externalEventMutations:e}=t;return o()(e)||n?void 0:Os(e,this.baseProps,this.state)}cacheValues(t){Object.keys(t).forEach((n=>{this[n]=t[n]}))}getBaseProps(n,e){const r=(e||this.getSharedEventState.bind(this))("parent","parent"),i=this.getEventState("parent","parent"),o=s()({},i,r),a=o.parentControlledProps,c=a?f()(o,a):{},u=s()({},c,n);return"function"==typeof t.getBaseProps?t.getBaseProps(u):{}}getAllEvents(t){return Array.isArray(this.componentEvents)?Array.isArray(t.events)?this.componentEvents.concat(...t.events):this.componentEvents:t.events}getComponentProps(n,e,r){const i=this.props.name||t.role,o=this.dataKeys&&this.dataKeys[r]||r,a=`${i}-${e}-${o}`,c=this.baseProps[o]&&this.baseProps[o][e]||this.baseProps[o];if(!c&&!this.hasEvents)return;const u=n&&"object"==typeof n&&"props"in n?n.props:void 0;if(this.hasEvents){const t=this.getEvents(this.props,e,o),n=s()({index:r,key:a},this.getEventState(o,e),this.getSharedEventState(o,e),u,c,{id:a}),i=s()({},Es(t,o,n),n.events);return Object.assign({},n,{events:i})}return s()({index:r,key:a},u,c,{id:a})}renderContainer(t,n){const e=t.type&&"container"===t.type.role?this.getComponentProps(t,"parent","parent"):{};return e.events&&(this.globalEvents=Ps(e.events),e.events=Ls(e.events)),u().cloneElement(t,e,n)}animateComponent(t,n){const e="object"==typeof t.animate&&t.animate?.animationWhitelist||n,r=this.constructor;return u().createElement(mu,{animate:t.animate,animationWhitelist:e},u().createElement(r,t))}renderContinuousData(t){const{dataComponent:n,labelComponent:e,groupComponent:r}=t,i=this.dataKeys.filter((t=>"all"!==t)),o=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(u().cloneElement(e,i))),r}),[]),a=this.getComponentProps(n,"data","all"),s=[u().cloneElement(n,a),...o];return this.renderContainer(r,s)}renderData(t,n){void 0===n&&(n=yu);const{dataComponent:e,labelComponent:r,groupComponent:i}=t,o=[...this.dataKeys.reduce(((t,r,i)=>{const o=this.getComponentProps(e,"data",i);return n(o.datum)&&t.push(u().cloneElement(e,o)),t}),[]),...this.dataKeys.map(((t,n)=>{const e=this.getComponentProps(r,"labels",n);if(void 0!==e.text&&null!==e.text)return u().cloneElement(r,e)})).filter(Boolean)];return this.renderContainer(i,o)}}}const bu={top:-1,left:-1,right:1,bottom:1},Au=t=>null!=t,ku=function(t,n){void 0===n&&(n={});const e=t.style||{};return{parent:s()(e.parent,n.parent,{height:"100%",width:"100%"}),axis:s()({},e.axis,n.axis),axisLabel:s()({},e.axisLabel,n.axisLabel),grid:s()({},e.grid,n.grid),ticks:s()({},e.ticks,n.ticks),tickLabels:s()({},e.tickLabels,n.tickLabels)}},wu=(t,n,e)=>{const{position:r,transform:i}=t;return{x1:i.x,y1:i.y,x2:i.x+r.x2,y2:i.y+r.y2,style:n,datum:e}},Mu=(t,n,e,r,i)=>{const{position:o,transform:a}=t;return{style:n,x:a.x+o.x,y:a.y+o.y,verticalAnchor:e.verticalAnchor,textAnchor:e.textAnchor,angle:n.angle,text:i,datum:r}},Eu=(t,n,e)=>{const{edge:r,transform:i}=t;return{x1:i.x,y1:i.y,x2:r.x+i.x,y2:r.y+i.y,style:n,datum:e}},Cu=(t,n,e)=>{const r=n||"positive";return e?{positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}}[r][t]:{positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}}[r][t]},Ou=(t,n)=>t instanceof Date&&n instanceof Date?t.getTime()===n.getTime():t===n,ju=(t,n,e)=>{const{orientation:r,axis:i}=n,o=vs(t,i);return{top:{x:0,y:void 0!==o?o:e.y},bottom:{x:0,y:void 0!==o?o:t.height-e.y},left:{x:void 0!==o?o:e.x,y:0},right:{x:void 0!==o?o:t.width-e.x,y:0}}[r]},Su=(t,n,e)=>{const{tickStyle:r,labelStyle:i}=t,o=r.size||0,a=o+(r.padding||0)+(i.padding||0),s=bu[n];return{x:e?s*a:0,x2:e?s*o:0,y:e?0:s*a,y2:e?0:s*o}},Tu=(t,n,e)=>({x:e?n.x:t+n.x,y:e?t+n.y:n.y}),Pu=(t,n)=>{const{orientation:e,padding:r,isVertical:i}=n,o=-bu[e];return{x:i?o*(t.width-(r.left+r.right)):0,y:i?0:o*(t.height-(r.top+r.bottom))}},Lu=(t,n)=>{const{padding:e,orientation:r,crossAxis:i}=t,o="right"===r?e.right:e.left,a="top"===r?e.top:e.bottom;return{x:i?n.x-o:0,y:i?n.y-a:0}},Du=(t,n)=>{const e=xs(t,n),r=(t=>{const n=(t=>{const{theme:n,dependentAxis:e}=t,r=n&&n.axis&&n.axis.style,i=e?"dependentAxis":"independentAxis",o=n&&n[i]&&n[i].style;return r&&o?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce(((t,n)=>(t[n]=s()({},o[n],r[n]),t)),{}):o||r})(t),e=ku(t,n),r=y(t),i=((t,n)=>{const e=n.axisLabel||{};if(void 0!==e.padding&&null!==e.padding)return e.padding;const r=ls(t),i=e.fontSize||14;return t.label?i*(r?2.3:1.6):0})(t,e),o=fs(t)?t.tickValues:void 0,a=is(t),c=ys(t),u=(t=>{const n=is(t),e=((t,n)=>{const{orientation:e,horizontal:r}=t;return e?{top:"x",bottom:"x",left:"y",right:"y"}[e]:r?"x"===n?"y":"x":n})(t,n),r=La(t,n),i=t.domain&&t.domain[n]||ys(t)||r.domain();return r.range(M(t,e)),r.domain(i),r})(t),l="x"===a?c:void 0,f="y"===a?c:void 0,d="x"===a?u:void 0,p="y"===a?u:void 0,h=!(!1===t.crossAxis||!0===t.standalone),g=gs(t,u,h),m=ps(t,u),v={x:M(t,"x"),y:M(t,"y")},x={x:t.domain&&t.domain.x?t.domain.x:l,y:t.domain&&t.domain.y?t.domain.y:f},b={x:t.domain&&t.domain.x?La(t,"x").domain(t.domain.x).range(t.horizontal?v.y:v.x):d,y:t.domain&&t.domain.y?La(t,"y").domain(t.domain.y).range(t.horizontal?v.x:v.y):p},A=x.x&&x.y?cs(x):void 0,k=A?{x:us(A.x,x.x),y:us(A.y,x.y)}:void 0,w=k?{x:Cu("x",k.y,t.horizontal),y:Cu("y",k.x,t.horizontal)}:void 0,E=w?t.orientation||w[a]:(t=>{if(t.orientation)return t.orientation;const n={dependent:t.horizontal?"bottom":"left",independent:t.horizontal?"left":"bottom"};return t.dependentAxis?n.dependent:n.independent})(t),C=ls(Object.assign({},t,{orientation:E})),O=((t,n)=>{const e={top:"end",left:"end",right:"start",bottom:"start"}[t];return{textAnchor:n?e:"middle",verticalAnchor:n?"middle":e}})(E,C);return{anchors:O,axis:a,crossAxis:h,domain:x,isVertical:C,labelPadding:i,orientation:E,orientations:w,origin:A,padding:r,scale:b,stringTicks:o,style:e,tickFormat:m,ticks:g}})(e),{axis:i,style:o,orientation:a,isVertical:c,scale:u,ticks:l,tickFormat:f,anchors:d,domain:p,stringTicks:h}=r,g="x"===i?"y":"x",{width:m,height:v,standalone:b,theme:A,polar:k,padding:w,horizontal:E}=e,{globalTransform:C,gridOffset:O,gridEdge:j}=((t,n)=>{let e;return e=n.domain.x&&n.domain.y?t.horizontal?((t,n)=>{const{scale:e,origin:r,orientation:i,orientations:o,domain:a,padding:s}=n,{top:c,bottom:u,left:l,right:f}=s,d="bottom"===i||"top"===i?i:o.x,p="left"===i||"right"===i?i:o.y,h={x:"bottom"===d?u:c,y:"left"===p?l:f},g="left"===p?0:t.width,m="bottom"===d?t.height:0,y=Ou(r.x,a.x[0])||Ou(r.x,a.x[1])?0:e.x(r.x),v=Ou(r.y,a.y[0])||Ou(r.y,a.y[1])?0:e.y(r.y),x=y?Math.abs(m-y):h.x,b=v?Math.abs(g-v):h.y;return{x:Au(t.offsetX)?t.offsetX:b,y:Au(t.offsetY)?t.offsetY:x}})(t,n):((t,n)=>{const{scale:e,origin:r,orientation:i,orientations:o,domain:a,padding:s}=n,{top:c,bottom:u,left:l,right:f}=s,d="bottom"===i||"top"===i?i:o.x,p="left"===i||"right"===i?i:o.y,h={x:"left"===p?l:f,y:"bottom"===d?u:c},g="left"===p?0:t.width,m="bottom"===d?t.height:0,y=Ou(r.x,a.x[0])||Ou(r.x,a.x[1])?0:e.x(r.x),v=Ou(r.y,a.y[0])||Ou(r.y,a.y[1])?0:e.y(r.y),x=y?Math.abs(g-y):h.x,b=v?Math.abs(m-v):h.y;return{x:Au(t.offsetX)?t.offsetX:x,y:Au(t.offsetY)?t.offsetY:b}})(t,n):((t,n)=>{const{style:e,scale:r,orientation:i,padding:o,axis:a,ticks:s,stringTicks:c,isVertical:u,labelPadding:l}=n,{polar:f,horizontal:d}=t,p={scale:{[a]:r},polar:f,horizontal:d,ticks:s,stringTicks:c},h="right"===i?o.right:o.left,g="top"===i?o.top:o.bottom,m=null!==t.offsetX&&void 0!==t.offsetX?t.offsetX:h,y=null!==t.offsetY&&void 0!==t.offsetY?t.offsetY:g,v=e.axisLabel.fontSize||14,b=s.map(((n,r)=>{const i=c?t.tickValues[n-1]:n;return x(e.ticks,Object.assign({},p,{tick:i,index:r})).size||0})),A=v+2*Math.max(...b)+l,k=1.2*v;return{x:null!=m?m:u?A:k,y:null!=y?y:u?k:A}})(t,n),{globalTransform:ju(t,n,e),gridOffset:Lu(n,e),gridEdge:Pu(t,n)}})(e,r),S={scale:{[i]:u[i]},polar:k,horizontal:E,ticks:l,stringTicks:h},T=((t,n,e)=>{const{style:r,padding:i,isVertical:o}=n,{width:a,height:s}=t;return{style:r.axis,x1:o?e.x:i.left+e.x,x2:o?e.x:a-i.right+e.x,y1:o?i.top+e.y:e.y,y2:o?s-i.bottom+e.y:e.y}})(e,r,C),P=((t,n,e)=>{const{style:r,orientation:i,padding:o,labelPadding:a,isVertical:s}=n,c=bu[i],u=o.left+o.right,l=o.top+o.bottom,f=c<0?"end":"start",d=r.axisLabel,p=s?-90:0;return{x:s?e.x+c*a:(t.width-u)/2+o.left+e.x,y:s?(t.height-l)/2+o.top+e.y:c*a+e.y,verticalAnchor:d.verticalAnchor||f,textAnchor:d.textAnchor||"middle",angle:void 0===d.angle?p:d.angle,style:d,text:t.label}})(e,r,C),L={parent:Object.assign({style:o.parent,ticks:l,standalone:b,theme:A,width:m,height:v,padding:w,domain:p},S)},D={dimension:g,range:{[g]:M(e,g)},scale:e.scale&&e.scale[g]?{[g]:e.scale[g]}:void 0};return l.reduce(((t,n,e)=>{const r=h?h[e]:n,s=f(n,e,l),p=((t,n)=>({tickStyle:x(t.ticks,n),labelStyle:x(t.tickLabels,n),gridStyle:x(t.grid,n)}))(o,Object.assign({},S,{tick:r,tickValue:n,index:e,text:s})),g={position:Su(p,a,c),transform:Tu(u[i]?.(n),C,c)},m={edge:j,transform:{x:c?-O.x+C.x:u[i]?.(n)+C.x,y:c?u[i]?.(n)+C.y:O.y+C.y}};return t[e]={axis:Object.assign({dimension:i},S,T),axisLabel:Object.assign({},S,P),ticks:Object.assign({},S,wu(g,p.tickStyle,n)),tickLabels:Object.assign({},S,Mu(g,p.labelStyle,d,n,s)),grid:Object.assign({},S,D,Eu(m,p.gridStyle,n))},t}),L)},Nu={width:450,height:300,padding:50};class $u extends u().Component{static animationWhitelist=["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"];static displayName="VictoryAxis";static role="axis";static defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};static defaultProps={axisComponent:u().createElement(Ys,null),axisLabelComponent:u().createElement(jc,null),tickLabelComponent:u().createElement(jc,null),tickComponent:u().createElement(Ys,null),gridComponent:u().createElement(Ys,null),standalone:!0,theme:Tt.grayscale,containerComponent:u().createElement(dt,null),groupComponent:u().createElement("g",{role:"presentation"}),fixLabelOverlap:!1};static getDomain=ys;static getAxis=is;static getStyles=t=>ku(t);static getBaseProps=t=>Du(t,Nu);static expectedComponents=["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"];renderLine(t){const{axisComponent:n}=t,e=this.getComponentProps(n,"axis",0);return u().cloneElement(n,e)}renderLabel(t){const{axisLabelComponent:n,label:e}=t;if(!e)return null;const r=this.getComponentProps(n,"axisLabel",0);return u().cloneElement(n,r)}renderGridAndTicks(t){const{tickComponent:n,tickLabelComponent:e,gridComponent:r,name:i}=t,a=t=>{const{style:n={},events:e={}}=t;return"transparent"!==n.stroke&&"none"!==n.stroke&&0!==n.strokeWidth||!o()(e)};return this.dataKeys.map(((o,s)=>{const c=this.getComponentProps(n,"ticks",s),l=u().cloneElement(n,c),f=a(l.props)?l:void 0,d=this.getComponentProps(r,"grid",s),p=u().cloneElement(r,d),h=a(p.props)?p:void 0,g=this.getComponentProps(e,"tickLabels",s),m=[h,f,u().cloneElement(e,g)].filter(Boolean);return u().cloneElement(t.groupComponent,{key:`${i}-tick-group-${o}`},m)}))}fixLabelOverlap(t,n){const e=ls(n),r=e?n.height:n.width,i=t=>t.type&&"label"===t.type.role,o=t.map((t=>t.props.children)).reduce(((t,n)=>t.concat(n)),[]).filter(i).map((t=>t.props)).reduce(((t,n)=>{const r=(t=>"object"==typeof t?Object.assign({},{top:0,right:0,bottom:0,left:0},t):{top:t,right:t,bottom:t,left:t})(n.style.padding),i=yc(n.text,{angle:n.angle,fontSize:n.style.fontSize,letterSpacing:n.style.letterSpacing,fontFamily:n.style.fontFamily});return t+(e?i.height+r.top+r.bottom:i.width+r.right+r.left)}),0),a=Math.floor(r*t.length/o),s=Math.ceil(t.length/a)||1,c=t=>t.props.children.filter(i).reduce(((t,n)=>(e?n.props.y:n.props.x)||0),0);return t.sort(((t,n)=>e?c(n)-c(t):c(t)-c(n))).filter(((t,n)=>n%s==0))}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t}=_u,n=xs(this.props,Nu),e=lt(this.props);if(this.shouldAnimate())return this.animateComponent(n,t);const r=this.renderGridAndTicks(n),i=n.fixLabelOverlap?this.fixLabelOverlap(r,n):r,o=[this.renderLine(n),this.renderLabel(n),...i],a=u().cloneElement(n.containerComponent,e);return n.standalone?this.renderContainer(a,o):u().cloneElement(n.groupComponent,e,o)}}const _u=xu($u,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]});function zu(){return zu=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},zu.apply(this,arguments)}const Iu=(0,c.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,s={id:v(r,t)?.toString(),tabIndex:v(i,t),...a};return e?u().createElement("path",zu({},s,{ref:n}),u().createElement("desc",null,e)):u().createElement("path",zu({},s,{ref:n}))})),Fu=t=>{const{cx:n,cy:e,r:r,startAngle:i,endAngle:o,closedPath:a}=t,s=Math.abs(o-i)/2+i,c=n+r*Math.cos(b(i)),u=e-r*Math.sin(b(i));return`${a?` M ${n}, ${e} L ${c}, ${u}`:`M ${c}, ${u}`} A ${r}, ${r}, 0, ${s-i<=180?0:1}, 0, ${n+r*Math.cos(b(s))}, ${e-r*Math.sin(b(s))} A ${r}, ${r}, 0, ${o-s<=180?0:1}, 0, ${n+r*Math.cos(b(o))}, ${e-r*Math.sin(b(o))} ${a?"Z":""}`},Uu={pathComponent:u().createElement(Iu,null),role:"presentation",shapeRendering:"auto"},Wu=t=>{const n=(t=>{const n=v(t.ariaLabel,t),e=v(t.desc,t),r=v(t.id,t),i=x(Object.assign({stroke:"black",fill:"none"},t.style),t),o=v(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})({...Uu,...t});return u().cloneElement(n.pathComponent,{...n.events,"aria-label":n.ariaLabel,d:Fu(n),style:n.style,desc:n.desc,tabIndex:n.tabIndex,className:n.className,role:n.role,shapeRendering:n.shapeRendering,transform:n.transform,clipPath:n.clipPath})},Ru=(t,n,e)=>"x"===e?t*Math.cos(n):-t*Math.sin(n),Hu=t=>{const n=t.dependentAxis?"radial":"angular",e="angular"===n?"radial":"angular";return t.horizontal?e:n},Vu=(t,n)=>({tickStyle:x(t.ticks,n),labelStyle:x(t.tickLabels,n),gridStyle:x(t.grid,n)}),qu=t=>{const{left:n,right:e,top:r,bottom:i}=y(t),{width:o,height:a}=t;if(void 0===o||void 0===a)throw new Error("VictoryPolarAxis: width and height properties are required for standalone axes.");return Math.min(o-n-e,a-r-i)/2},Bu=(t,n)=>{if(t.range&&t.range[n])return t.range[n];if(t.range&&Array.isArray(t.range))return t.range;if("angular"===Hu(t))return[b(t.startAngle),b(t.endAngle)];const e=qu(t);return[t.innerRadius||0,e]},Gu=t=>{const n=is(t),e=La(t,n),r=ys(t,n)||e.domain(),i=Bu(t,n);return e.range(i),e.domain(r),e},Yu=function(t,n){if(void 0===n&&(n={}),t.disableInlineStyles)return{};const e=t.style||{};return{parent:s()({height:"auto",width:"100%"},e.parent,n.parent),axis:s()({},e.axis,n.axis),axisLabel:s()({},e.axisLabel,n.axisLabel),grid:s()({},e.grid,n.grid),ticks:s()({},e.ticks,n.ticks),tickLabels:s()({},e.tickLabels,n.tickLabels)}},Ku=t=>{const{axisAngle:n,startAngle:e,dependentAxis:r}=t,i=vs(t,is(t));return void 0!==i&&r?A(i):void 0===n?e:n},Xu=(t,n,e,r)=>{const{axisType:i,radius:o,scale:a,style:s,stringTicks:c,ticks:u,tickFormat:l,origin:f}=n,d=l(e,r,u),p=c?c[r]:e,{tickStyle:h}=Vu(s,{tick:p,tickValue:e,index:r,ticks:u,stringTicks:c,radius:o,scale:a,axisType:i,text:d}),g="radial"===i?Ku(t):void 0,m=h.padding||h.size||0,y=b(90-g),v="angular"===i?a(e):b(-1*g),x="angular"===i?o:a(e);return"angular"===i?{index:r,datum:p,style:h,x1:Ru(x,v,"x")+f.x,y1:Ru(x,v,"y")+f.y,x2:Ru(x+m,v,"x")+f.x,y2:Ru(x+m,v,"y")+f.y}:{index:r,datum:p,style:h,x1:x*Math.cos(v)+Math.cos(y)*m+f.x,x2:x*Math.cos(v)-Math.cos(y)*m+f.x,y1:x*Math.sin(v)+Math.sin(y)*m+f.y,y2:x*Math.sin(v)-Math.sin(y)*m+f.y}},Zu=(t,n,e,r)=>{const{axisType:i,radius:o,tickFormat:a,style:s,scale:c,ticks:u,stringTicks:l,origin:f}=n,d=a(e,r,u),p=l?l[r]:e,{labelStyle:h}=Vu(s,{text:d,tick:p,tickValue:e,index:r,ticks:u,stringTicks:l,radius:o,scale:c,axisType:i}),{tickLabelComponent:g}=t,m=g?.props.labelPlacement?g.props.labelPlacement:t.labelPlacement,y=h.padding||0,v="radial"===i?Ku(t):void 0,x="angular"===i?A(c(e)):v+0,k=void 0===h.angle?nc(Object.assign({},t,{labelPlacement:m}),x):h.angle,w="angular"===i?o+y:c(e);return{index:r,datum:p,style:h,angle:k,textAnchor:h.textAnchor||Js(Object.assign({},t,{labelPlacement:m}),x),text:d,x:w*Math.cos(b(x))+f.x,y:-w*Math.sin(b(x))+f.y}},Qu=(t,n,e,r)=>{const{axisType:i,radius:o,style:a,scale:s,stringTicks:c,ticks:u,tickFormat:l,origin:f}=n,d=l(e,r,u),{startAngle:p,endAngle:h,innerRadius:g=0}=t,m=c?c[r]:e,{gridStyle:y}=Vu(a,{tick:m,tickValue:e,index:r,ticks:u,stringTicks:c,radius:o,scale:s,axisType:i,text:d}),v=s(e);return"angular"===i?{index:r,datum:m,style:y,x1:Ru(o,v,"x")+f.x,y1:Ru(o,v,"y")+f.y,x2:Ru(g,v,"x")+f.x,y2:Ru(g,v,"y")+f.y}:{style:y,index:r,datum:m,cx:f.x,cy:f.y,r:s(e),startAngle:p,endAngle:h}},Ju=(t,n)=>{const e=xs(t,n),r=(t=>{const n=Object.assign({polar:!0},t),e=(t=>{const{theme:n={},dependentAxis:e}=t,r=n.polarAxis&&n.polarAxis.style||n.axis&&n.axis.style,i=e?"dependentAxis":"independentAxis",o=n?.[e?"polarDependentAxis":"polarIndependentAxis"]?.style||n?.[i]?.style;return r&&o?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce(((t,n)=>(t[n]=s()({},o?.[n],r?.[n]),t)),{}):o||r})(n),r=Yu(n,e),i=y(n),o=is(n),a=Hu(n),c=fs(n)?n.tickValues:void 0,u=ys(n,o),l=Bu(n,o),f=Gu(n),d=gs(n,f),p="angular"===a?((t,n)=>Zt()(t,(t=>n(t)%(2*Math.PI))))(d,f):d;return{axis:o,style:r,padding:i,stringTicks:c,axisType:a,scale:f,ticks:p,tickFormat:ps(n,f),domain:u,range:l,radius:qu(n),origin:w(n)}})(e),{style:i,scale:o,ticks:a,domain:c}=r,{width:u,height:l,standalone:f,theme:d,name:p}=e,h=((t,n)=>{const{style:e,axisType:r,radius:i,origin:o}=n,{startAngle:a,endAngle:s,innerRadius:c=0}=t,u="radial"===r?b(Ku(t)):void 0;return"radial"===r?{style:e.axis,x1:Ru(c,u,"x")+o.x,x2:Ru(i,u,"x")+o.x,y1:Ru(c,u,"y")+o.y,y2:Ru(i,u,"y")+o.y}:{style:e.axis,cx:o.x,cy:o.y,r:i,startAngle:a,endAngle:s}})(e,r),g=((t,n)=>{const{axisType:e,radius:r,style:i,origin:o}=n,{axisLabelComponent:a}=t;if("radial"!==e)return{};const s=a?.props.labelPlacement?a.props.labelPlacement:t.labelPlacement,c=i&&i.axisLabel||{},u="radial"===e?Ku(t):void 0,l=void 0===c.angle?nc(Object.assign({},t,{labelPlacement:s}),u):c.angle,f=r+(c.padding||0);return{style:c,angle:l,textAnchor:c.textAnchor||Js(Object.assign({},t,{labelPlacement:s}),u),verticalAnchor:c.verticalAnchor||tc(Object.assign({},t,{labelPlacement:s}),u),text:t.label,x:Ru(f,b(u),"x")+o.x,y:Ru(f,b(u),"y")+o.y}})(e,r),m={parent:{style:i.parent,ticks:a,scale:o,width:u,height:l,domain:c,standalone:f,theme:d,name:p}};return a.reduce(((t,n,i)=>(t[i]={axis:h,axisLabel:g,ticks:Xu(e,r,n,i),tickLabels:Zu(e,r,n,i),grid:Qu(e,r,n,i)},t)),m)},tl={width:450,height:300,padding:50};class nl extends u().Component{static animationWhitelist=["style","domain","range","tickCount","tickValues","padding","width","height"];static displayName="VictoryAxis";static role="axis";static defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};static defaultProps={axisComponent:u().createElement(Ys,null),axisLabelComponent:u().createElement(jc,null),circularAxisComponent:u().createElement(Wu,null),circularGridComponent:u().createElement(Wu,null),containerComponent:u().createElement(dt,null),endAngle:360,gridComponent:u().createElement(Ys,null),groupComponent:u().createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:Tt.grayscale,tickComponent:u().createElement(Ys,null),tickLabelComponent:u().createElement(jc,null)};static getDomain=ys;static getAxis=is;static getScale=Gu;static getStyles=t=>Yu(t,tl.style);static getBaseProps=t=>Ju(t,tl);static expectedComponents=["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"];renderAxisLine(t){const{dependentAxis:n}=t,e=n?t.axisComponent:t.circularAxisComponent,r=this.getComponentProps(e,"axis",0);return u().cloneElement(e,r)}renderLabel(t){const{axisLabelComponent:n,dependentAxis:e,label:r}=t;if(!r||!e)return null;const i=this.getComponentProps(n,"axisLabel",0);return u().cloneElement(n,i)}renderAxis(t){const{tickComponent:n,tickLabelComponent:e,name:r}=t,i=t=>{const{style:n={},events:e={}}=t;return"transparent"!==n.stroke&&"none"!==n.stroke&&0!==n.strokeWidth||!o()(e)},a="radial"==(t.dependentAxis?"radial":"angular")?t.circularGridComponent:t.gridComponent,s=this.dataKeys.map(((t,e)=>{const o=Object.assign({key:`${r}-tick-${t}`},this.getComponentProps(n,"ticks",e)),a=u().cloneElement(n,o);return i(a.props)?a:void 0})).filter(Boolean),c=this.dataKeys.map(((t,n)=>{const e=Object.assign({key:`${r}-grid-${t}`},this.getComponentProps(a,"grid",n)),o=u().cloneElement(a,e);return i(o.props)?o:void 0})).filter(Boolean),l=this.dataKeys.map(((t,n)=>{const i=Object.assign({key:`${r}-tick-${t}`},this.getComponentProps(e,"tickLabels",n));return u().cloneElement(e,i)})),f=[this.renderAxisLine(t),this.renderLabel(t),...s,...c,...l];return this.renderGroup(t,f)}renderGroup(t,n){const{groupComponent:e}=t;return u().cloneElement(e,{},n)}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t}=el,n=xs(this.props,tl);if(this.shouldAnimate())return this.animateComponent(n,t);const e=this.renderAxis(n);return n.standalone?this.renderContainer(n.containerComponent,e):e}}const el=xu(nl,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),rl={width:450,height:300,padding:50};function il(t,n){const e=function(t){const n=t.style&&t.style.parent;return{parent:s()({},n,{height:"100%",width:"100%",userSelect:"none"})}}(t),r=j(t,rl,"chart"),{horizontal:i,polar:o}=r,a=zs(r,n),c=function(t,n,e){const r=t.categories&&!Array.isArray(t.categories)?t.categories.x:t.categories,i=t.categories&&!Array.isArray(t.categories)?t.categories.y:t.categories,o=r&&i?{}:e||zs(t,n),a=r||o.x,s=i||o.y;return{x:a.length>0?a:void 0,y:s.length>0?s:void 0}}(r,n,a),u=sl(r,n,a),l={x:al(Object.assign({},r,{categories:c}),"x",n),y:al(Object.assign({},r,{categories:c}),"y",n)},f={x:M(r,"x"),y:M(r,"y")},d={x:Da(r,"x")||$s(r,"x"),y:Da(r,"y")||$s(r,"y")};return{categories:c,domain:l,range:f,horizontal:i,scale:{x:d.x.domain(l.x).range(i?f.y:f.x),y:d.y.domain(l.y).range(i?f.x:f.y)},stringMap:u,style:e,origin:o?w(r):cs(l),padding:y(r)}}const ol=(t,n)=>{let e=u().Children.toArray(t.children);if(0===e.length)e.push(n.independent,n.dependent);else{const r={dependent:ss(e,"dependent"),independent:ss(e,"independent")};0===r.dependent.length&&0===r.independent.length&&(e=t.prependDefaultAxes?[n.independent,n.dependent].concat(e):e.concat([n.independent,n.dependent]))}return e},al=(t,n,e)=>{const r=e||u().Children.toArray(t.children),i=Ns(t,n,r),o=as(r,n);return o&&o.props&&o.props.invertAxis?i.concat().reverse():i},sl=(t,n,e)=>{const r=e.x&&0!==e.x.length?e.x.reduce(((t,n,e)=>(t[n]=e+1,t)),{}):null,i=e.y&&0!==e.y.length?e.y.reduce(((t,n,e)=>(t[n]=e+1,t)),{}):null;return{x:r,y:i}},cl={width:450,height:300,padding:50},ul={backgroundComponent:u().createElement(_,null),containerComponent:u().createElement(dt,null),defaultAxes:{independent:u().createElement(_u,null),dependent:u().createElement(_u,{dependentAxis:!0})},defaultPolarAxes:{independent:u().createElement(el,null),dependent:u().createElement(el,{dependentAxis:!0})},groupComponent:u().createElement("g",null),standalone:!0,theme:Tt.grayscale},ll=t=>{const n=u().useMemo((()=>({...ul,...t})),[t]),{getAnimationProps:e,setAnimationState:r,getProps:i}=function(t){void 0===t&&(t=Gt);const[n,e]=u().useState(t),r=u().useCallback((t=>{e((n=>({...n,...t})))}),[e]),i=u().useCallback(((t,e,i)=>{if(!t?.animate)return e.props.animate;let o=t.animate&&t.animate.getTransitions;const a=(()=>{let t=n&&n.childrenTransitions;return t=$t(t)?t[i]:t,s()({childrenTransitions:t},n)})(),c=t.animate&&t.animate.parentState||a;if(!o){const n=Bt(t,a,(t=>r(t)));o=t=>n(t,i)}return s()({getTransitions:o,parentState:c},t.animate,e.props.animate)}),[n,r]),o=u().useCallback(((t,n)=>{if(t?.animate)if(t.animate.parentState){const e=t.animate.parentState.nodesWillExit?t:null,i=s()({oldProps:e,nextProps:n},t.animate.parentState);r(i)}else{const e=u().Children.toArray(t.children),i=u().Children.toArray(n.children),o=t=>{const n=t=>t.type&&t.type.continuous;return Array.isArray(t)?t.some(n):n(t)},a=!t.polar&&e.some((t=>o(t)||t?.props?.children&&o(t.props.children))),{nodesWillExit:s,nodesWillEnter:c,childrenTransitions:l,nodesShouldEnter:f}=qt(e,i);r({nodesWillExit:s,nodesWillEnter:c,nodesShouldEnter:f,childrenTransitions:$t(l)?l[0]:l,oldProps:s?t:void 0,nextProps:n,continuous:a})}}),[r]),a=u().useCallback((t=>n&&n.nodesWillExit&&n.oldProps||t),[n]);return{state:n,setState:r,getAnimationProps:i,setAnimationState:o,getProps:a}}(),a=i(n),c=j(a,cl,"chart"),{desc:l,eventKey:f,containerComponent:d,standalone:p,groupComponent:h,externalEventMutations:g,width:m,height:y,theme:v,polar:x,name:b,title:A}=c,k=a.polar?c.defaultPolarAxes:c.defaultAxes,w=u().useMemo((()=>ol(c,k)),[c,k]),M=u().useMemo((()=>il(c,w)),[c,w]),{domain:E,scale:C,style:O,origin:S,horizontal:T}=M,P=u().useMemo((()=>{const t=function(t,n,e){const r=n||ol(t),i=e||il(t,r),o=i.style.parent,{height:a,polar:c,theme:l,width:f}=t,{origin:d,horizontal:p}=i,h=t.name||"chart";return r.filter(u().isValidElement).map(((n,e)=>{const r=n.type&&n.type.role,g=Array.isArray(n.props.style)?n.props.style:s()({},n.props.style,{parent:o}),m=function(t,n,e){const r=os([t]);if(r.length>0)return function(t,n,e){const{domain:r,scale:i,stringMap:o,categories:a,horizontal:s}=e;return{stringMap:o,horizontal:s,categories:a,startAngle:n.startAngle,endAngle:n.endAngle,innerRadius:n.innerRadius,domain:r,scale:i}}(r[0],n,e);const{categories:i,domain:o,range:a,scale:s,stringMap:c,horizontal:u}=e;return{categories:i,domain:o,range:a,scale:s,stringMap:c,horizontal:u}}(n,t,i),y=n.props.name||`${h}-${r}-${e}`,v=s()({horizontal:p,height:a,polar:c,theme:l,width:f,style:g,name:y,origin:c?d:void 0,padding:i.padding,key:`${y}-key-${e}`,standalone:!1},m);return u().cloneElement(n,v)}))}(a,w,M).map(((t,n)=>{const r=Object.assign({animate:e(a,t,n)},t.props);return u().cloneElement(t,r)}));if(a.style&&a.style.background){const n=function(t,n){const e=t.backgroundComponent,r=t.polar?n.range.y[1]:n.range.y[0]-n.range.y[1],i=n.range.x[1]-n.range.x[0],o=t.horizontal?n.scale.y.range()[0]:n.scale.x.range()[0],a=t.horizontal?n.scale.x.range()[1]:n.scale.y.range()[1],c=t.polar?n.origin.x:o,l=t.polar?n.origin.y:a,f=t.name||"chart",d={height:r,polar:t.polar,scale:n.scale,style:t.style.background,x:c,y:l,key:`${f}-background`,width:i};return u().cloneElement(e,s()({},e.props,d))}(a,M);t.unshift(n)}return t}),[e,w,a,M]),L=u().useMemo((()=>p?{desc:l,domain:E,width:m,height:y,horizontal:T,name:b,origin:x?S:void 0,polar:x,theme:v,title:A,scale:C,standalone:p,style:O.parent}:{}),[l,E,y,T,b,S,x,C,p,O,A,v,m]),D=u().useMemo((()=>{if(p){const t=s()({},d.props,L,lt(n));return u().cloneElement(d,t)}return h}),[h,p,d,L,n]),N=u().useMemo((()=>function(t){const n=Ss(t,["groupComponent","containerComponent","labelComponent"]);let e=t.events;return Array.isArray(n)&&(e=Array.isArray(t.events)?n.concat(...t.events):n),e||[]}(a)),[a]),$=function(t){const n=u().useRef();return u().useEffect((()=>{n.current=t})),n.current}(n);return u().useEffect((()=>()=>{n.animate&&r($,n)}),[r,$,n]),o()(N)?u().cloneElement(D,D.props,P):u().createElement(Vs,{container:D,eventKey:f,events:N,externalEventMutations:g},P)},fl=u().memo(ll,Ws());fl.displayName="VictoryChart",fl.expectedComponents=["groupComponent","containerComponent"]}(),i}()}));
|
|
2
2
|
//# sourceMappingURL=victory-chart.min.js.map
|