victory-group 37.3.2 → 37.3.3
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 +8 -0
- package/dist/victory-group.js +271 -224
- package/dist/victory-group.min.js +1 -1
- package/es/helper-methods.d.ts +3 -12
- package/es/helper-methods.js +1 -1
- package/es/victory-group.d.ts +1 -1
- package/es/victory-group.js +5 -5
- package/lib/helper-methods.d.ts +3 -12
- package/lib/helper-methods.js +1 -1
- package/lib/victory-group.d.ts +1 -1
- package/lib/victory-group.js +5 -5
- package/package.json +3 -31
- package/src/helper-methods.tsx +1 -1
- package/src/victory-group.tsx +2 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.VictoryGroup=n(require("react")):t.VictoryGroup=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(o,i){if(e.length>0){var a=e.indexOf(this);~a?e.splice(a+1):e.push(this),~a?r.splice(a,1/0,o):r.push(o),~e.indexOf(i)&&(i=n.call(this,o,i))}else e.push(i);return null==t?i:t.call(this,o,i)}}(t.exports=function(t,n,r,o){return JSON.stringify(t,e(n,o),r)}).getSerialize=e},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),o=e(7838),i=e(4859),a=e(4073),u=e(8541);function s(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},2596:function(t,n,e){var r=e(2373).Symbol;t.exports=r},6082:function(t){t.exports=function(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}},6649:function(t){t.exports=function(t,n,e,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];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,o=null==t?0:t.length;++r<o;)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,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}},9559:function(t){t.exports=function(t,n){for(var e=-1,r=n.length,o=t.length;++e<r;)t[o+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),o=e(788),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var a=t[n];i.call(t,n)&&o(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 o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];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),o=e(3608);t.exports=function t(n,e,i,a,u){var s=-1,c=n.length;for(i||(i=o),u||(u=[]);++s<c;){var l=n[s];e>0&&i(l)?e>1?t(l,e-1,i,a,u):r(u,l):a||(u[u.length]=l)}return u}},4432:function(t,n,e){var r=e(9026),o=e(3110);t.exports=function(t,n){for(var e=0,i=(n=r(n,t)).length;null!=t&&e<i;)t=t[o(n[e++])];return e&&e==i?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,o=t.length;++r<o;)if(t[r]===n)return r;return-1}},7537:function(t,n,e){var r=e(563),o=e(3474);t.exports=function(t){return o(t)&&"[object Date]"==r(t)}},9070:function(t,n,e){var r=e(7028),o=e(3474);t.exports=function t(n,e,i,a,u){return n===e||(null==n||null==e||!o(n)&&!o(e)?n!=n&&e!=e:r(n,e,i,a,t,u))}},7028:function(t,n,e){var r=e(8708),o=e(8705),i=e(2813),a=e(6682),u=e(9667),s=e(163),c=e(4801),l=e(4289),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,g,y,v){var m=s(t),b=s(n),x=m?p:u(t),w=b?p:u(n),k=(x=x==f?d:x)==d,M=(w=w==f?d:w)==d,A=x==w;if(A&&c(t)){if(!c(n))return!1;m=!0,k=!1}if(A&&!k)return v||(v=new r),m||l(t)?o(t,n,e,g,y,v):i(t,n,x,e,g,y,v);if(!(1&e)){var O=k&&h.call(t,"__wrapped__"),E=M&&h.call(n,"__wrapped__");if(O||E){var j=O?t.value():t,C=E?n.value():n;return v||(v=new r),y(j,C,e,g,v)}}return!!A&&(v||(v=new r),a(t,n,e,g,y,v))}},9548:function(t,n,e){var r=e(8708),o=e(9070);t.exports=function(t,n,e,i){var a=e.length,u=a,s=!i;if(null==t)return!u;for(t=Object(t);a--;){var c=e[a];if(s&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<u;){var l=(c=e[a])[0],f=t[l],p=c[1];if(s&&c[2]){if(void 0===f&&!(l in t))return!1}else{var d=new r;if(i)var h=i(f,p,l,t,n,d);if(!(void 0===h?o(p,f,3,i,d):h))return!1}}return!0}},3472:function(t,n,e){var r=e(758),o=e(5223),i=e(5346),a=e(163),u=e(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: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,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}},758:function(t,n,e){var r=e(9548),o=e(597),i=e(6878);t.exports=function(t){var n=o(t);return 1==n.length&&n[0][2]?i(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},5223:function(t,n,e){var r=e(9070),o=e(9201),i=e(5066),a=e(726),u=e(5385),s=e(6878),c=e(3110);t.exports=function(t,n){return a(t)&&u(n)?s(c(t),n):function(e){var a=o(e,t);return void 0===a&&a===n?i(e,t):r(n,a,3)}}},8245:function(t,n,e){var r=e(8644),o=e(4432),i=e(3472),a=e(383),u=e(9521),s=e(9110),c=e(9409),l=e(5346),f=e(163);t.exports=function(t,n,e){n=n.length?r(n,(function(t){return f(t)?function(n){return o(n,1===t.length?t[0]:t)}:t})):[l];var p=-1;n=r(n,s(i));var d=a(t,(function(t,e,o){return{criteria:r(n,(function(n){return n(t)})),index:++p,value:t}}));return u(d,(function(t,n){return c(t,n,e)}))}},5436:function(t,n,e){var r=e(6371),o=e(5066);t.exports=function(t,n){return r(t,n,(function(n,e){return o(t,e)}))}},6371:function(t,n,e){var r=e(4432),o=e(6539),i=e(9026);t.exports=function(t,n,e){for(var a=-1,u=n.length,s={};++a<u;){var c=n[a],l=r(t,c);e(l,c)&&o(s,i(c,t),l)}return s}},1600:function(t){t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},3301:function(t,n,e){var r=e(4432);t.exports=function(t){return function(n){return r(n,t)}}},6317:function(t,n,e){var r=e(5346),o=e(4280),i=e(201);t.exports=function(t,n){return i(o(t,n,r),t+"")}},6539:function(t,n,e){var r=e(4132),o=e(9026),i=e(9099),a=e(7709),u=e(3110);t.exports=function(t,n,e,s){if(!a(t))return t;for(var c=-1,l=(n=o(n,t)).length,f=l-1,p=t;null!=p&&++c<l;){var d=u(n[c]),h=e;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(c!=f){var g=p[d];void 0===(h=s?s(g,d,p):void 0)&&(h=a(g)?g:i(n[c+1])?[]:{})}r(p,d,h),p=p[d]}return t}},9521:function(t){t.exports=function(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}},7556:function(t,n,e){var r=e(788);t.exports=function(t,n){for(var e=-1,o=t.length,i=0,a=[];++e<o;){var u=t[e],s=n?n(u):u;if(!e||!r(s,c)){var c=s;a[i++]=0===u?0:u}}return a}},6316:function(t,n,e){var r=e(2596),o=e(8644),i=e(163),a=e(1995),u=r?r.prototype:void 0,s=u?u.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(i(n))return o(n,t)+"";if(a(n))return s?s.call(n):"";var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}},9110:function(t){t.exports=function(t){return function(n){return t(n)}}},946:function(t,n,e){var r=e(3273),o=e(5510),i=e(9955),a=e(9914),u=e(6602),s=e(6226);t.exports=function(t,n,e){var c=-1,l=o,f=t.length,p=!0,d=[],h=d;if(e)p=!1,l=i;else if(f>=200){var g=n?null:u(t);if(g)return s(g);p=!1,l=a,h=new r}else h=n?[]:d;t:for(;++c<f;){var y=t[c],v=n?n(y):y;if(y=e||0!==y?y:0,p&&v==v){for(var m=h.length;m--;)if(h[m]===v)continue t;n&&h.push(v),d.push(y)}else l(h,v,e)||(h!==d&&h.push(v),d.push(y))}return d}},9914:function(t,n,e){var r=e(6123);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},9026:function(t,n,e){var r=e(163),o=e(726),i=e(7801),a=e(7010);t.exports=function(t,n){return r(t)?t:o(t,n)?[t]:i(a(t))}},522:function(t,n,e){var r=e(1995);t.exports=function(t,n){if(t!==n){var e=void 0!==t,o=null===t,i=t==t,a=r(t),u=void 0!==n,s=null===n,c=n==n,l=r(n);if(!s&&!l&&!a&&t>n||a&&u&&c&&!s&&!l||o&&u&&c||!e&&c||!i)return 1;if(!o&&!a&&!l&&t<n||l&&e&&i&&!o&&!a||s&&e&&i||!u&&i||!c)return-1}return 0}},9409:function(t,n,e){var r=e(522);t.exports=function(t,n,e){for(var o=-1,i=t.criteria,a=n.criteria,u=i.length,s=e.length;++o<u;){var c=r(i[o],a[o]);if(c)return o>=s?c:c*("desc"==e[o]?-1:1)}return t.index-n.index}},5659:function(t,n,e){var r=e(6649),o=e(4508),i=e(3472),a=e(163);t.exports=function(t,n){return function(e,u){var s=a(e)?r:o,c=n?n():{};return s(e,t,i(u,2),c)}}},6602:function(t){t.exports=function(){}},5525:function(t,n,e){var r=e(3743),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},8705:function(t,n,e){var r=e(3273),o=e(1634),i=e(9914);t.exports=function(t,n,e,a,u,s){var c=1&e,l=t.length,f=n.length;if(l!=f&&!(c&&f>l))return!1;var p=s.get(t),d=s.get(n);if(p&&d)return p==n&&d==t;var h=-1,g=!0,y=2&e?new r:void 0;for(s.set(t,n),s.set(n,t);++h<l;){var v=t[h],m=n[h];if(a)var b=c?a(m,v,h,n,t,s):a(v,m,h,t,n,s);if(void 0!==b){if(b)continue;g=!1;break}if(y){if(!o(n,(function(t,n){if(!i(y,n)&&(v===t||u(v,t,e,a,s)))return y.push(n)}))){g=!1;break}}else if(v!==m&&!u(v,m,e,a,s)){g=!1;break}}return s.delete(t),s.delete(n),g}},2813:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},6682:function(t,n,e){var r=e(8143),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,i,a,u){var s=1&e,c=r(t),l=c.length;if(l!=r(n).length&&!s)return!1;for(var f=l;f--;){var p=c[f];if(!(s?p in n:o.call(n,p)))return!1}var d=u.get(t),h=u.get(n);if(d&&h)return d==n&&h==t;var g=!0;u.set(t,n),u.set(n,t);for(var y=s;++f<l;){var v=t[p=c[f]],m=n[p];if(i)var b=s?i(m,v,p,n,t,u):i(v,m,p,t,n,u);if(!(void 0===b?v===m||a(v,m,e,i,u):b)){g=!1;break}y||(y="constructor"==p)}if(g&&!y){var x=t.constructor,w=n.constructor;x==w||!("constructor"in t)||!("constructor"in n)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(g=!1)}return u.delete(t),u.delete(n),g}},5557:function(t,n,e){var r=e(2645),o=e(4280),i=e(201);t.exports=function(t){return i(o(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),o=e(7747);t.exports=function(t){for(var n=o(t),e=n.length;e--;){var i=n[e],a=t[i];n[e]=[i,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),o=e(5075),i=e(163),a=e(9099),u=e(8454),s=e(3110);t.exports=function(t,n,e){for(var c=-1,l=(n=r(n,t)).length,f=!1;++c<l;){var p=s(n[c]);if(!(f=null!=t&&e(t,p)))break;t=t[p]}return f||++c!=l?f:!!(l=null==t?0:t.length)&&u(l)&&a(p,l)&&(i(t)||o(t))}},3608:function(t,n,e){var r=e(2596),o=e(5075),i=e(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(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),o=e(1995),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\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&&!o(t))||a.test(t)||!i.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),o=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0||(e==n.length-1?n.pop():o.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__,o=r(e,t);return o<0?(++this.size,e.push([t,n])):e[o][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),o=n&&!n.nodeType&&n,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:function(t){t.exports=function(t,n){return function(e){return t(n(e))}}},4280:function(t,n,e){var r=e(6082),o=Math.max;t.exports=function(t,n,e){return n=o(void 0===n?t.length-1:n,0),function(){for(var i=arguments,a=-1,u=o(i.length-n,0),s=Array(u);++a<u;)s[a]=i[n+a];a=-1;for(var c=Array(n+1);++a<n;)c[a]=i[a];return c[n]=e(s),r(t,this,c)}}},2373:function(t,n,e){var r=e(2117),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},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),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(o,(function(t,e,r,o){n.push(r?o.replace(i,"$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),o=e(788),i=e(8286),a=e(8855),u=Object.prototype,s=u.hasOwnProperty,c=r((function(t,n){t=Object(t);var e=-1,r=n.length,c=r>2?n[2]:void 0;for(c&&i(n[0],n[1],c)&&(r=1);++e<r;)for(var l=n[e],f=a(l),p=-1,d=f.length;++p<d;){var h=f[p],g=t[h];(void 0===g||o(g,u[h])&&!s.call(t,h))&&(t[h]=l[h])}return t}));t.exports=c},788:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},2645:function(t,n,e){var r=e(6457);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},7314:function(t){t.exports=function(t){for(var n=-1,e=null==t?0:t.length,r={};++n<e;){var o=t[n];r[o[0]]=o[1]}return r}},9201:function(t,n,e){var r=e(4432);t.exports=function(t,n,e){var o=null==t?void 0:r(t,n);return void 0===o?e:o}},9056:function(t,n,e){var r=e(8347),o=e(5659),i=Object.prototype.hasOwnProperty,a=o((function(t,n,e){i.call(t,e)?t[e].push(n):r(t,e,[n])}));t.exports=a},5066:function(t,n,e){var r=e(6776),o=e(3096);t.exports=function(t,n){return null!=t&&o(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),o=e(8454);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},4801:function(t){t.exports=function(){return!1}},4295:function(t,n,e){var r=e(7537),o=e(9110),i=e(2348),a=i&&i.isDate,u=a?o(a):r;t.exports=u},4155:function(t,n,e){var r=e(7190),o=e(9667),i=e(5075),a=e(163),u=e(981),s=e(4801),c=e(5782),l=e(4289),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||s(t)||l(t)||i(t)))return!t.length;var n=o(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(c(t))return!r(t).length;for(var e in t)if(f.call(t,e))return!1;return!0}},8254:function(t,n,e){var r=e(9070);t.exports=function(t,n){return r(t,n)}},9642:function(t,n,e){var r=e(563),o=e(7709);t.exports=function(t){if(!o(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),o=e(9817),i=e(3474),a=Function.prototype,u=Object.prototype,s=a.toString,c=u.hasOwnProperty,l=s.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var n=o(t);if(null===n)return!0;var e=c.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&s.call(e)==l}},1995:function(t){t.exports=function(){return!1}},4289:function(t){t.exports=function(){return!1}},8999:function(t){t.exports=function(t){return void 0===t}},7747:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},8855:function(t){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},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),o=e(6051),i=e(4912);t.exports=function(t,n){return i(t,o(r(n)))}},4143:function(t,n,e){var r=e(8245),o=e(163);t.exports=function(t,n,e,i){return null==t?[]:(o(n)||(n=null==n?[]:[n]),o(e=i?void 0:e)||(e=null==e?[]:[e]),r(t,n,e))}},9082:function(t,n,e){var r=e(5436),o=e(5557)((function(t,n){return null==t?{}:r(t,n)}));t.exports=o},4912:function(t,n,e){var r=e(8644),o=e(3472),i=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=o(n),i(t,e,(function(t,e){return n(t,e[0])}))}},8532:function(t,n,e){var r=e(1600),o=e(3301),i=e(726),a=e(3110);t.exports=function(t){return i(t)?r(a(t)):o(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),o=e(946);t.exports=function(t,n){return t&&t.length?o(t,r(n,2)):[]}},660:function(t,n,e){var r=e(7010),o=0;t.exports=function(t){var n=++o;return r(t)+n}},7491:function(t){var n="undefined"!=typeof Element,e="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,s,c,l;if(Array.isArray(t)){if((u=t.length)!=a.length)return!1;for(s=u;0!=s--;)if(!i(t[s],a[s]))return!1;return!0}if(e&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(l=t.entries();!(s=l.next()).done;)if(!a.has(s.value[0]))return!1;for(l=t.entries();!(s=l.next()).done;)if(!i(s.value[1],a.get(s.value[0])))return!1;return!0}if(r&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(l=t.entries();!(s=l.next()).done;)if(!a.has(s.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((u=t.length)!=a.length)return!1;for(s=u;0!=s--;)if(t[s]!==a[s])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((u=(c=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(s=u;0!=s--;)if(!Object.prototype.hasOwnProperty.call(a,c[s]))return!1;if(n&&t instanceof Element)return!1;for(s=u;0!=s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!t.$$typeof)&&!i(t[c[s]],a[c[s]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,n){try{return i(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 o=e[t];if(void 0!==o)return o.exports;var i=e[t]={id:t,loaded:!1,exports:{}};return n[t](i,i.exports,r),i.loaded=!0,i.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 o={};return function(){"use strict";r.r(o),r.d(o,{VictoryGroup:function(){return ss}});var t={};r.r(t),r.d(t,{scaleBand:function(){return An},scaleDiverging:function(){return ja},scaleDivergingLog:function(){return Ca},scaleDivergingPow:function(){return Sa},scaleDivergingSqrt:function(){return Fa},scaleDivergingSymlog:function(){return Da},scaleIdentity:function(){return cr},scaleImplicit:function(){return kn},scaleLinear:function(){return sr},scaleLog:function(){return mr},scaleOrdinal:function(){return Mn},scalePoint:function(){return En},scalePow:function(){return jr},scaleQuantile:function(){return Br},scaleQuantize:function(){return Pr},scaleRadial:function(){return Fr},scaleSequential:function(){return ba},scaleSequentialLog:function(){return xa},scaleSequentialPow:function(){return ka},scaleSequentialQuantile:function(){return Aa},scaleSequentialSqrt:function(){return Ma},scaleSequentialSymlog:function(){return wa},scaleSqrt:function(){return Cr},scaleSymlog:function(){return kr},scaleThreshold:function(){return qr},scaleTime:function(){return ga},scaleUtc:function(){return ya},tickFormat:function(){return ar}});var n=r(4155),e=r.n(n),i=r(1893),a=r.n(i),u=r(9787),s=r.n(u),c=r(660),l=r.n(c);function f(){return f=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},f.apply(this,arguments)}const p=s().forwardRef(((t,n)=>s().createElement("svg",f({ref:n},t))));var d=r(9082),h=r.n(d),g=r(8532),y=r.n(g);function v(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,n){void 0===n&&(n="padding");const e=t[n],r="number"==typeof e?e:0,o="object"==typeof e?e:{};return{top:o.top||r,bottom:o.bottom||r,left:o.left||r,right:o.right||r}}function b(t,n){return M(t)?t(n):t}function x(t){return"number"==typeof t?t*(Math.PI/180):t}function w(t){const{left:n,right:e,top:r,bottom:o}=m(t),{width:i,height:a}=t;return Math.min(i-n-e,a-r-o)/2}function k(t,n){return t.range&&t.range[n]?t.range[n]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t,n){return"x"===n?[x(t.startAngle||0),x(t.endAngle||360)]:[t.innerRadius||0,w(t)]}(t,n):function(t,n){const e="x"!==n,r=m(t);return e?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,n)}function M(t){return"function"==typeof t}function A(t){return M(t)?t:null==t?t=>t:y()(t)}function O(t,n,e){const r=v(t.theme&&t.theme[e]?t.theme[e]:{},["style"]),o=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(s().Children.toArray(r.children))}),!1);return n(s().Children.toArray(t.children))}(t),i=void 0===o?{}:{horizontal:o};return a()(i,t,r,n)}function E(t,n){return n?"x"===t?"y":"x":t}function j(t,n,e,r,o){void 0===e&&(e={}),void 0===r&&(r=[]),void 0===o&&(o=(t,n)=>t.concat(n));const i=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],a=(t,u,c)=>t.reduce(((t,r,l)=>{let f=t;const p=r.type&&r.type.role,d=r.props.name||`${p}-${u[l]}`;if(r.props&&r.props.children){const t=Object.assign({},r.props,h()(e,i)),n=r.type&&"stack"===r.type.role&&M(r.type.getChildren)?r.type.getChildren(t):s().Children.toArray(r.props.children).map((n=>{const e=Object.assign({},n.props,h()(t,i));return s().cloneElement(n,e)})),u=n.map(((t,n)=>`${d}-${n}`)),c=a(n,u,r);f=o(f,c)}else{const t=n(r,d,c);t&&(f=o(f,t))}return f}),r),c=t.filter(u.isValidElement),l=c.map(((t,n)=>n));return a(c,l)}const C={startsWith:["data-","aria-"],exactMatch:[]},D=t=>{const n={...t};return Object.fromEntries(Object.entries(n).filter((t=>{let[n]=t;return(t=>!(!(t=>{let n=!1;return C.startsWith.forEach((e=>{new RegExp(`\\b(${e})(\\w|-)+`,"g").test(t)&&(n=!0)})),n})(t)&&!(t=>C.exactMatch.includes(t))(t)))(n)})).map((n=>{let[e,r]=n;return[e,b(r,t)]})))},S=s().createContext(void 0);S.displayName="PortalContext";const F=t=>{let{children:n}=t;const[e,r]=s().useState(new Map),o=s().useCallback(((t,n)=>{r((e=>{const r=new Map(e);return r.set(t,n),r}))}),[r]),i=s().useCallback((t=>{r((n=>{const e=new Map(n);return e.delete(t),e}))}),[r]),a=s().useMemo((()=>({addChild:o,removeChild:i,children:e})),[o,i,e]);return s().createElement(S.Provider,{value:a},n)},T=t=>{let{as:n,...e}=t;const r=s().useContext(S);if(!r)return null;const o=Array.from(r.children.values());return s().cloneElement(n,e,o)};function N(){return N=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},N.apply(this,arguments)}const _={className:"VictoryContainer",portalComponent:s().createElement(p,null),portalZIndex:99,responsive:!0,role:"img"},L=t=>{const{role:n,title:e,desc:r,children:o,className:i,portalZIndex:a,portalComponent:c,width:f,height:p,style:d,tabIndex:h,responsive:g,events:y,ouiaId:v,ouiaSafe:m,ouiaType:b,dimensions:x,ariaDescribedBy:w,ariaLabelledBy:k,viewBox:A,preserveAspectRatio:O,userProps:E,titleId:j,descId:C,containerRef:S,localContainerRef:L}=function(t){const n={..._,...t},{title:e,desc:r,width:o,height:i,responsive:a}=n,s=(0,u.useRef)(null),c=(0,u.useRef)(l()("victory-container-")),f=n.containerId??c.current,p=t=>`${f}-${t}`,d=D(n),h=a?{width:"100%",height:"100%"}:{width:o,height:i},g=a?`0 0 ${o} ${i}`:void 0,y=a?n.preserveAspectRatio:void 0,v=[e&&p("title"),n["aria-labelledby"]].filter(Boolean).join(" ")||void 0,m=[r&&p("desc"),n["aria-describedby"]].filter(Boolean).join(" ")||void 0,b=p("title"),x=p("desc");return{...n,titleId:b,descId:x,dimensions:h,viewBox:g,preserveAspectRatio:y,ariaLabelledBy:v,ariaDescribedBy:m,userProps:d,localContainerRef:s}}(t);return s().useEffect((()=>{if(!y?.onWheel)return;const t=t=>t.preventDefault(),n=L?.current;return n?.addEventListener("wheel",t),()=>{n?.removeEventListener("wheel",t)}}),[]),s().createElement("div",{className:i,style:{...d,width:g?d?.width:x.width,height:g?d?.height:x.height,pointerEvents:d?.pointerEvents??"none",touchAction:d?.touchAction??"none",position:d?.position??"relative"},"data-ouia-component-id":v,"data-ouia-component-type":b,"data-ouia-safe":m,ref:($=[L,S],t=>{$.forEach((n=>{M(n)?n(t):null!=n&&(n.current=t)}))})},s().createElement(F,null,s().createElement("svg",N({width:f,height:p,tabIndex:h,role:n,"aria-labelledby":k,"aria-describedby":w,viewBox:A,preserveAspectRatio:O,style:{...x,pointerEvents:"all"}},E,y),e?s().createElement("title",{id:j},e):null,r?s().createElement("desc",{id:C},r):null,o),s().createElement("div",{style:{...x,zIndex:a,position:"absolute",top:0,left:0}},s().createElement(T,{as:c,width:f,height:p,viewBox:A,preserveAspectRatio:O,style:{...x,overflow:"visible"}}))));var $};L.role="container";const $=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],U="#252525",W="#969696",B={width:450,height:300,padding:50,colorScale:$},P={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:U,stroke:"transparent"},q=Object.assign({textAnchor:"middle"},P),z={palette:{colors:{blue:"#4F7DA1",pink:"#E2A37F",teal:"#00796B",purple:"#DF948A",green:"#8BC34A",orange:"#F4511E",cyan:"#006064",red:"#DF5A49",yellow:"#FFF59D"},grayscale:$,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:U},labels:P}},B),axis:Object.assign({style:{axis:{fill:"transparent",stroke:U,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},q,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:P}},B),bar:Object.assign({style:{data:{fill:U,padding:8,strokeWidth:0},labels:P}},B),boxplot:Object.assign({style:{max:{padding:8,stroke:U,strokeWidth:1},maxLabels:Object.assign({},P,{padding:3}),median:{padding:8,stroke:U,strokeWidth:1},medianLabels:Object.assign({},P,{padding:3}),min:{padding:8,stroke:U,strokeWidth:1},minLabels:Object.assign({},P,{padding:3}),q1:{padding:8,fill:W},q1Labels:Object.assign({},P,{padding:3}),q3:{padding:8,fill:W},q3Labels:Object.assign({},P,{padding:3})},boxWidth:20},B),candlestick:Object.assign({style:{data:{stroke:U,strokeWidth:1},labels:Object.assign({},P,{padding:5})},candleColors:{positive:"#ffffff",negative:U}},B),chart:B,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:U,strokeWidth:2},labels:P}},B),group:Object.assign({colorScale:$},B),histogram:Object.assign({style:{data:{fill:W,stroke:U,strokeWidth:2},labels:P}},B),legend:{colorScale:$,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:P,title:Object.assign({},P,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:U,strokeWidth:2},labels:P}},B),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},P,{padding:20})},colorScale:$,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:U,stroke:"transparent",strokeWidth:0},labels:P}},B),stack:Object.assign({colorScale:$},B),tooltip:{style:Object.assign({},P,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:U,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({},P,{padding:5,pointerEvents:"none"}),flyout:{stroke:U,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},B)},R="#FFF59D",H="#F4511E",Y="#8BC34A",I="#00796B",G="#006064",K=[H,R,"#DCE775",Y,I,G],V="#ECEFF1",Z="#90A4AE",Q="#455A64",X="#212121",J={blue:"#4F7DA1",pink:"#E2A37F",teal:I,purple:"#DF948A",green:Y,orange:H,cyan:G,red:"#DF5A49",yellow:R},tt=[V,Z,Q,X],nt={width:350,height:350,padding:50},et={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:Q,stroke:"transparent",strokeWidth:0},rt=Object.assign({textAnchor:"middle"},et),ot="round",it="round",at={palette:{colors:J,grayscale:tt,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:X},labels:et}},nt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Z,strokeWidth:2,strokeLinecap:ot,strokeLinejoin:it},axisLabel:Object.assign({},rt,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:V,strokeDasharray:"10, 5",strokeLinecap:ot,strokeLinejoin:it,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Z,strokeWidth:1,strokeLinecap:ot,strokeLinejoin:it},tickLabels:Object.assign({},et,{fill:Q})}},nt),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:Q,padding:8,strokeWidth:0},labels:et}},nt),boxplot:Object.assign({style:{max:{padding:8,stroke:Q,strokeWidth:1},maxLabels:Object.assign({},et,{padding:3}),median:{padding:8,stroke:Q,strokeWidth:1},medianLabels:Object.assign({},et,{padding:3}),min:{padding:8,stroke:Q,strokeWidth:1},minLabels:Object.assign({},et,{padding:3}),q1:{padding:8,fill:Q},q1Labels:Object.assign({},et,{padding:3}),q3:{padding:8,fill:Q},q3Labels:Object.assign({},et,{padding:3})},boxWidth:20},nt),candlestick:Object.assign({style:{data:{stroke:Q},labels:Object.assign({},et,{padding:5})},candleColors:{positive:"#ffffff",negative:Q}},nt),chart:nt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Q,strokeWidth:2},labels:et}},nt),group:Object.assign({colorScale:K},nt),histogram:Object.assign({style:{data:{fill:Q,stroke:X,strokeWidth:2},labels:et}},nt),legend:{colorScale:K,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:et,title:Object.assign({},et,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:Q,strokeWidth:2},labels:et}},nt),pie:Object.assign({colorScale:K,style:{data:{padding:8,stroke:V,strokeWidth:1},labels:Object.assign({},et,{padding:20})}},nt),scatter:Object.assign({style:{data:{fill:Q,opacity:1,stroke:"transparent",strokeWidth:0},labels:et}},nt),stack:Object.assign({colorScale:K},nt),tooltip:{style:Object.assign({},et,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:X,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({},et,{padding:5,pointerEvents:"none"}),flyout:{stroke:X,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},nt)},ut="#FFFFFF",st="#F2F2F2",ct="#E0E0E0",lt="#D1D1D1",ft="#757575",pt="#424242",dt="#292929",ht="#FCB400",gt="#FF6F2C",yt={100:"#FFDCE5",300:"#FF9EB7",500:"#F82B60",700:"#D31A3D",900:"#BA1E45"},vt="#8B46FF",mt={100:"#CFDFFF",300:"#9CC7FF",500:"#2D7FF9",700:"#0056B3",900:"#2750AE"},bt="#18BFFF",xt="#20D9D2",wt={100:"#D1F7C4",300:"#93E088",500:"#20C933",700:"#1B9B2A",900:"#338A17"},kt={blue:mt[500],cyan:bt,green:wt[500],yellow:ht,orange:gt,red:yt[500],purple:vt,teal:xt},Mt=Object.values(kt),At=[st,ct,ft,pt,dt],Ot=["#FFD66E",ht,gt,"#D74D26",yt[500]],Et=[vt,mt[500],bt,xt,wt[500]],jt=[wt[900],wt[500],ht,gt,yt[500]],Ct=Object.values(yt),Dt=Object.values(wt),St=Object.values(mt),Ft=mt[500],Tt={width:450,height:300,padding:60,colorScale:Mt},Nt={fontFamily:"'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif",fontSize:12,fontWeight:300,letterSpacing:"normal",padding:8,fill:dt,stroke:"transparent"},_t=Object.assign({textAnchor:"middle"},Nt),Lt="10, 5",$t="round",Ut="round",Wt={grayscale:z,material:at,clean:{palette:{colors:kt,grayscale:At,qualitative:Mt,heatmap:jt,warm:Ot,cool:Et,red:Ct,green:Dt,blue:St},area:Object.assign({style:{data:{fill:Ft,strokeWidth:2,fillOpacity:.5},labels:Nt}},Tt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:ft,strokeWidth:1,strokeLinecap:$t,strokeLinejoin:Ut},axisLabel:Object.assign({},_t,{padding:35,stroke:"transparent"}),grid:{fill:"none",stroke:"none",painterEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"transparent"},tickLabels:Nt}},Tt),polarAxis:Object.assign({style:{axis:{stroke:ft},grid:{stroke:lt,strokeDasharray:Lt,strokeLinecap:$t,strokeLinejoin:Ut,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:lt,strokeWidth:1,strokeLinecap:$t,strokeLinejoin:Ut},tickLabels:Nt}}),polarDependentAxis:Object.assign({style:{axis:{stroke:ft},grid:{stroke:lt,strokeDasharray:Lt,strokeLinecap:$t,strokeLinejoin:Ut,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:ct,strokeWidth:1,strokeLinecap:$t,strokeLinejoin:Ut},tickLabels:Nt}}),bar:Object.assign({style:{data:{fill:Ft,padding:8,strokeWidth:1,fillOpacity:.5},labels:Nt},cornerRadius:{top:1}},Tt),boxplot:Object.assign({style:{max:{padding:8,stroke:lt,strokeWidth:2},maxLabels:Object.assign({},Nt,{padding:3}),median:{padding:8,stroke:ut,strokeWidth:2},medianLabels:Object.assign({},Nt,{padding:3}),min:{padding:8,stroke:lt,strokeWidth:2},minLabels:Object.assign({},Nt,{padding:3}),q1:{padding:8,fill:Mt[0],rx:1,strokeWidth:2},q1Labels:Object.assign({},Nt,{padding:3}),q3:{padding:8,fill:Mt[1],rx:1},q3Labels:Object.assign({},Nt,{padding:3})},boxWidth:20},Tt),candlestick:Object.assign({style:{data:{stroke:ct,strokeWidth:0,rx:1},labels:Object.assign({},Nt,{padding:5})},candleColors:{positive:wt[500],negative:yt[500]},wickStrokeWidth:2},Tt),chart:Tt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:pt,strokeWidth:2,strokeLinecap:$t},labels:Nt}},Tt),group:Object.assign({colorScale:Mt},Tt),histogram:Object.assign({style:{data:{fill:bt,fillOpacity:.5},labels:Nt},binSpacing:4,cornerRadius:{top:1}},Tt),label:Nt,legend:{colorScale:Mt,gutter:24,borderPadding:10,orientation:"horizontal",titleOrientation:"top",centerTitle:!0,style:{data:{type:"circle"},labels:{...Nt,fontSize:12},title:Object.assign({},Nt,{padding:8,fontSize:16}),border:{stroke:"#E8E8E8",strokeWidth:2,padding:16}}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:Ft,strokeWidth:2,strokeLinecap:$t,strokeLinejoin:Ut},labels:Nt}},Tt),pie:Object.assign({style:{parent:{backgroundColor:ut},data:{padding:8,stroke:ut,strokeWidth:1},labels:{...Nt,padding:20,fill:"#5C5C5C",fontSize:10}},colorScale:Mt,cornerRadius:1},Tt),scatter:Object.assign({style:{data:{fill:Ft,opacity:1,stroke:"transparent",strokeWidth:0},labels:{...Nt,padding:20}}},Tt),stack:Object.assign({colorScale:Mt},Tt),tooltip:{style:Object.assign({},Nt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:ct,strokeWidth:2,fill:ut,pointerEvents:"none"},flyoutPadding:{top:8,bottom:8,left:16,right:16},cornerRadius:1,pointerLength:4},voronoi:Object.assign({style:{data:{fill:mt[100],stroke:Ft,strokeWidth:2},labels:Object.assign({},Nt,{padding:5,pointerEvents:"none"}),flyout:{stroke:dt,strokeWidth:1,fill:st,pointerEvents:"none"},padding:{left:2,bottom:2}}},Tt)}};function Bt(t){return Array.isArray(t)&&t.some((t=>t instanceof Date))}function Pt(t,n){return t&&n?t.filter((t=>!n.includes(t))):[]}function qt(t){return function(t){return Array.isArray(t)&&t.length>0}(t)&&t.every(Array.isArray)}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 o=t.concat(e);return Bt(o)?new Date(Math.max(...o)):Math.max(...o)}function Rt(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 o=t.concat(e);return Bt(o)?new Date(Math.min(...o)):Math.min(...o)}var Ht=r(5346),Yt=r.n(Ht);function It(t,n){return(t.key||n).toString()}function Gt(t){return t.reduce(((t,n,e)=>(t[It(n,e)]=n,t)),{})}function Kt(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 Zt(t,n){let e=!1,r=!1;const o=(t,n)=>t.map(((i,a)=>i&&i.props&&i.props.children&&n[a]?o(s().Children.toArray(t[a].props.children),s().Children.toArray(n[a].props.children)):((t,n)=>{if(!n||t.type!==n.type)return{};const{entering:o,exiting:i}=function(t,n){const e=t&&Gt(t),r=n&&Gt(n);return{entering:e&&Kt(r,e),exiting:r&&Kt(e,r)}}(Vt(t),Vt(n))||{};return e=e||!!i,r=r||!!o,{entering:o||!1,exiting:i||!1}})(i,n[a]))),i=o(s().Children.toArray(t),s().Children.toArray(n));return{nodesWillExit:e,nodesWillEnter:r,childrenTransitions:i,nodesShouldEnter:!1}}function Qt(t,n,e){const r=n&&n.nodesWillExit,o=n&&n.nodesWillEnter,i=n&&n.nodesShouldEnter,u=n&&n.nodesShouldLoad,s=n&&n.nodesDoneLoad,c=n&&n.childrenTransitions||[],l={enter:t.animate&&t.animate.onEnter&&t.animate.onEnter.duration,exit:t.animate&&t.animate.onExit&&t.animate.onExit.duration,load:t.animate&&t.animate.onLoad&&t.animate.onLoad.duration,move:t.animate&&t.animate.duration},f=(t,n,r)=>u?function(t,n,r){const o=Object.assign({},t,{onEnd:()=>{e({nodesShouldLoad:!1,nodesDoneLoad:!0})}});let i=n;if(o&&o.onLoad&&!o.onLoad.duration)return{animate:t,data:n};const a=t.onLoad&&t.onLoad.after?t.onLoad.after:Yt();return i=n.map(((t,e)=>Object.assign({},t,a(t,e,n)))),{animate:o,data:i}}(r,n):function(t,n,r,o){const i=Object.assign({},t,{onEnd:()=>{e({nodesDoneLoad:!0})}});if(i&&i.onLoad&&!i.onLoad.duration)return{animate:i,data:r};const a=i.onLoad&&i.onLoad.before?i.onLoad.before:Yt();return{animate:i,data:r.map(((t,n)=>Object.assign({},t,a(t,n,r)))),clipWidth:0}}(r,0,n),p=(t,n,r,o)=>function(t,n,r,o,i){const a=t&&t.onExit,u=Object.assign({},t,a);let s=r;if(o){t.onEnd=()=>{e({nodesWillExit:!1})};const n=t.onExit&&t.onExit.before?t.onExit.before:Yt();s=r.map(((t,e)=>{const i=(t.key||e).toString();return o[i]?Object.assign({},t,n(t,e,r)):t}))}return{animate:u,data:s}}(o,0,r,t),d=(t,n,r,o)=>i?function(t,n,r,o){const i=t&&t.onEnter,a=Object.assign({},t,i);let u=n;if(r){a.onEnd=()=>{e({nodesWillEnter:!1})};const t=a.onEnter&&a.onEnter.after?a.onEnter.after:Yt();u=n.map(((e,o)=>{const i=It(e,o);return r[i]?Object.assign({},e,t(e,o,n)):e}))}return{animate:a,data:u}}(o,r,t):function(t,n,r,o,i){let a=t,u=r;if(o){a=Object.assign({},t,{onEnd:()=>{e({nodesShouldEnter:!0})}});const n=t.onEnter&&t.onEnter.before?t.onEnter.before:Yt();u=r.map(((t,e)=>{const i=(t.key||e).toString();return o[i]?Object.assign({},t,n(t,e,r)):t}))}return{animate:a,data:u}}(o,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,u){const g=Vt(e)||[],y=a()({},t.animate,e.props.animate),v=e.props.polar&&e.type.defaultPolarTransitions||e.type.defaultTransitions;y.onExit=a()({},y.onExit,v&&v.onExit),y.onEnter=a()({},y.onEnter,v&&v.onEnter),y.onLoad=a()({},y.onLoad,v&&v.onLoad);const m=c[u]||c[0];if(!s){const t={duration:void 0!==l.load?l.load:h(e,"onLoad")};return f(0,g,Object.assign({},y,t))}if(r){const t=m&&m.exiting,n=void 0!==l.exit?l.exit:h(e,"onExit"),r=t?{duration:n}:{delay:n};return p(t,0,g,Object.assign({},y,r))}if(o){const t=m&&m.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,o={duration:i&&t?n:r};return d(t,0,g,Object.assign({},y,o))}return!n&&y&&y.onExit?function(t,n){const e=t.onEnter&&t.onEnter.after?t.onEnter.after:Yt();return{data:n.map(((t,r)=>Object.assign({},t,e(t,r,n))))}}(y,g):{animate:y,data:g}}}const Xt={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0};var Jt=r(8961),tn=r.n(Jt),nn=r(9056),en=r.n(nn),rn=r(9602),on=r.n(rn),an=r(4143),un=r.n(an);function sn(t){return t}function cn(t,n){return function(t,e){const r=(t=>t.type.getAxis(t.props)===n)||sn,o=t=>t.reduce(((t,n)=>n.type&&"axis"===n.type.role&&r(n)?t.concat(n):n.props&&n.props.children?t.concat(o(s().Children.toArray(n.props.children))):t),[]);return o(t)}(t)[0]}r(7709);var ln=r(1616),fn=r.n(ln),pn=(r(8999),r(8254)),dn=r.n(pn),hn=r(3849),gn=r.n(hn);function yn(t,n,e){t=+t,n=+n,e=(o=arguments.length)<2?(n=t,t=0,1):o<3?1:+e;for(var r=-1,o=0|Math.max(0,Math.ceil((n-t)/e)),i=new Array(o);++r<o;)i[r]=t+r*e;return i}function vn(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function mn(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 bn extends Map{constructor(t,n=wn){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(xn(this,t))}has(t){return super.has(xn(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 xn({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function wn(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const kn=Symbol("implicit");function Mn(){var t=new bn,n=[],e=[],r=kn;function o(o){let i=t.get(o);if(void 0===i){if(r!==kn)return r;t.set(o,i=n.push(o)-1)}return e[i%e.length]}return o.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new bn;for(const r of e)t.has(r)||t.set(r,n.push(r)-1);return o},o.range=function(t){return arguments.length?(e=Array.from(t),o):e.slice()},o.unknown=function(t){return arguments.length?(r=t,o):r},o.copy=function(){return Mn(n,e).unknown(r)},vn.apply(o,arguments),o}function An(){var t,n,e=Mn().unknown(void 0),r=e.domain,o=e.range,i=0,a=1,u=!1,s=0,c=0,l=.5;function f(){var e=r().length,f=a<i,p=f?a:i,d=f?i:a;t=(d-p)/Math.max(1,e-s+2*c),u&&(t=Math.floor(t)),p+=(d-p-t*(e-s))*l,n=t*(1-s),u&&(p=Math.round(p),n=Math.round(n));var h=yn(e).map((function(n){return p+t*n}));return o(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?([i,a]=t,i=+i,a=+a,f()):[i,a]},e.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,u=!0,f()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(u=!!t,f()):u},e.padding=function(t){return arguments.length?(s=Math.min(1,c=+t),f()):s},e.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),f()):s},e.paddingOuter=function(t){return arguments.length?(c=+t,f()):c},e.align=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),f()):l},e.copy=function(){return An(r(),[i,a]).round(u).paddingInner(s).paddingOuter(c).align(l)},vn.apply(f(),arguments)}function On(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return On(n())},t}function En(){return On(An.apply(null,arguments).paddingInner(1))}var jn=Math.sqrt(50),Cn=Math.sqrt(10),Dn=Math.sqrt(2);function Sn(t,n,e){var r,o,i,a,u=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(o=t,t=n,n=o),0===(a=Fn(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,i=new Array(o=r-e+1);++u<o;)i[u]=(e+u)*a}else{a=-a;let e=Math.round(t*a),r=Math.round(n*a);for(e/a<t&&++e,r/a>n&&--r,i=new Array(o=r-e+1);++u<o;)i[u]=(e+u)/a}return r&&i.reverse(),i}function Fn(t,n,e){var r=(n-t)/Math.max(0,e),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=jn?10:i>=Cn?5:i>=Dn?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=jn?10:i>=Cn?5:i>=Dn?2:1)}function Tn(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=jn?o*=10:i>=Cn?o*=5:i>=Dn&&(o*=2),n<t?-o:o}function Nn(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function _n(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function Ln(t){let n,e,r;function o(t,r,o=0,i=t.length){if(o<i){if(0!==n(r,r))return i;do{const n=o+i>>>1;e(t[n],r)<0?o=n+1:i=n}while(o<i)}return o}return 2!==t.length?(n=Nn,e=(n,e)=>Nn(t(n),e),r=(n,e)=>t(n)-e):(n=t===Nn||t===_n?t:$n,e=t,r=t),{left:o,center:function(t,n,e=0,i=t.length){const a=o(t,n,e,i-1);return a>e&&r(t[a-1],n)>-r(t[a],n)?a-1:a},right:function(t,r,o=0,i=t.length){if(o<i){if(0!==n(r,r))return i;do{const n=o+i>>>1;e(t[n],r)<=0?o=n+1:i=n}while(o<i)}return o}}}function $n(){return 0}function Un(t){return null===t?NaN:+t}const Wn=Ln(Nn),Bn=Wn.right;Wn.left,Ln(Un).center;var Pn=Bn;function qn(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 Rn(){}var Hn=.7,Yn=1/Hn,In="\\s*([+-]?\\d+)\\s*",Gn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Kn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vn=/^#([0-9a-f]{3,8})$/,Zn=new RegExp(`^rgb\\(${In},${In},${In}\\)$`),Qn=new RegExp(`^rgb\\(${Kn},${Kn},${Kn}\\)$`),Xn=new RegExp(`^rgba\\(${In},${In},${In},${Gn}\\)$`),Jn=new RegExp(`^rgba\\(${Kn},${Kn},${Kn},${Gn}\\)$`),te=new RegExp(`^hsl\\(${Gn},${Kn},${Kn}\\)$`),ne=new RegExp(`^hsla\\(${Gn},${Kn},${Kn},${Gn}\\)$`),ee={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 re(){return this.rgb().formatHex()}function oe(){return this.rgb().formatRgb()}function ie(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=Vn.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?ae(n):3===e?new le(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?ue(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?ue(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=Zn.exec(t))?new le(n[1],n[2],n[3],1):(n=Qn.exec(t))?new le(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Xn.exec(t))?ue(n[1],n[2],n[3],n[4]):(n=Jn.exec(t))?ue(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=te.exec(t))?ye(n[1],n[2]/100,n[3]/100,1):(n=ne.exec(t))?ye(n[1],n[2]/100,n[3]/100,n[4]):ee.hasOwnProperty(t)?ae(ee[t]):"transparent"===t?new le(NaN,NaN,NaN,0):null}function ae(t){return new le(t>>16&255,t>>8&255,255&t,1)}function ue(t,n,e,r){return r<=0&&(t=n=e=NaN),new le(t,n,e,r)}function se(t){return t instanceof Rn||(t=ie(t)),t?new le((t=t.rgb()).r,t.g,t.b,t.opacity):new le}function ce(t,n,e,r){return 1===arguments.length?se(t):new le(t,n,e,null==r?1:r)}function le(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function fe(){return`#${ge(this.r)}${ge(this.g)}${ge(this.b)}`}function pe(){const t=de(this.opacity);return`${1===t?"rgb(":"rgba("}${he(this.r)}, ${he(this.g)}, ${he(this.b)}${1===t?")":`, ${t})`}`}function de(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function he(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ge(t){return((t=he(t))<16?"0":"")+t.toString(16)}function ye(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new me(t,n,e,r)}function ve(t){if(t instanceof me)return new me(t.h,t.s,t.l,t.opacity);if(t instanceof Rn||(t=ie(t)),!t)return new me;if(t instanceof me)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,o=Math.min(n,e,r),i=Math.max(n,e,r),a=NaN,u=i-o,s=(i+o)/2;return u?(a=n===i?(e-r)/u+6*(e<r):e===i?(r-n)/u+2:(n-e)/u+4,u/=s<.5?i+o:2-i-o,a*=60):u=s>0&&s<1?0:a,new me(a,u,s,t.opacity)}function me(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function be(t){return(t=(t||0)%360)<0?t+360:t}function xe(t){return Math.max(0,Math.min(1,t||0))}function we(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 ke(t,n,e,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*n+(4-6*i+3*a)*e+(1+3*t+3*i-3*a)*r+a*o)/6}qn(Rn,ie,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:re,formatHex:re,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ve(this).formatHsl()},formatRgb:oe,toString:oe}),qn(le,ce,zn(Rn,{brighter(t){return t=null==t?Yn:Math.pow(Yn,t),new le(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Hn:Math.pow(Hn,t),new le(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new le(he(this.r),he(this.g),he(this.b),de(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:fe,formatHex:fe,formatHex8:function(){return`#${ge(this.r)}${ge(this.g)}${ge(this.b)}${ge(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:pe,toString:pe})),qn(me,(function(t,n,e,r){return 1===arguments.length?ve(t):new me(t,n,e,null==r?1:r)}),zn(Rn,{brighter(t){return t=null==t?Yn:Math.pow(Yn,t),new me(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Hn:Math.pow(Hn,t),new me(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,o=2*e-r;return new le(we(t>=240?t-240:t+120,o,r),we(t,o,r),we(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new me(be(this.h),xe(this.s),xe(this.l),de(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=de(this.opacity);return`${1===t?"hsl(":"hsla("}${be(this.h)}, ${100*xe(this.s)}%, ${100*xe(this.l)}%${1===t?")":`, ${t})`}`}}));var Me=t=>()=>t;function Ae(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):Me(isNaN(t)?n:t)}var Oe=function t(n){var e=function(t){return 1==(t=+t)?Ae: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):Me(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=ce(t)).r,(n=ce(n)).r),o=e(t.g,n.g),i=e(t.b,n.b),a=Ae(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=o(n),t.b=i(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function Ee(t){return function(n){var e,r,o=n.length,i=new Array(o),a=new Array(o),u=new Array(o);for(e=0;e<o;++e)r=ce(n[e]),i[e]=r.r||0,a[e]=r.g||0,u[e]=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 je(t,n){var e,r=n?n.length:0,o=t?Math.min(r,t.length):0,i=new Array(o),a=new Array(r);for(e=0;e<o;++e)i[e]=Le(t[e],n[e]);for(;e<r;++e)a[e]=n[e];return function(t){for(e=0;e<o;++e)a[e]=i[e](t);return a}}function Ce(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function De(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function Se(t,n){var e,r={},o={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=Le(t[e],n[e]):o[e]=n[e];return function(t){for(e in r)o[e]=r[e](t);return o}}Ee((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),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,u=r<n-1?t[r+2]:2*i-o;return ke((e-r/n)*n,a,o,i,u)}})),Ee((function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),o=t[(r+n-1)%n],i=t[r%n],a=t[(r+1)%n],u=t[(r+2)%n];return ke((e-r/n)*n,o,i,a,u)}}));var Fe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Te=new RegExp(Fe.source,"g");function Ne(t,n){var e,r,o,i=Fe.lastIndex=Te.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(e=Fe.exec(t))&&(r=Te.exec(n));)(o=r.index)>i&&(o=n.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:De(e,r)})),i=Te.lastIndex;return i<n.length&&(o=n.slice(i),u[a]?u[a]+=o:u[++a]=o),u.length<2?s[0]?function(t){return function(n){return t(n)+""}}(s[0].x):function(t){return function(){return t}}(n):(n=s.length,function(t){for(var e,r=0;r<n;++r)u[(e=s[r]).i]=e.x(t);return u.join("")})}function _e(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,o=n.slice();return function(i){for(e=0;e<r;++e)o[e]=t[e]*(1-i)+n[e]*i;return o}}function Le(t,n){var e,r,o=typeof n;return null==n||"boolean"===o?Me(n):("number"===o?De:"string"===o?(e=ie(n))?(n=e,Oe):Ne:n instanceof ie?Oe:n instanceof Date?Ce:(r=n,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(n)?je:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?Se:De:_e))(t,n)}function $e(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function Ue(t){return+t}var We=[0,1];function Be(t){return t}function Pe(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function qe(t,n,e){var r=t[0],o=t[1],i=n[0],a=n[1];return o<r?(r=Pe(o,r),i=e(a,i)):(r=Pe(r,o),i=e(i,a)),function(t){return i(r(t))}}function ze(t,n,e){var r=Math.min(t.length,n.length)-1,o=new Array(r),i=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<r;)o[a]=Pe(t[a],t[a+1]),i[a]=e(n[a],n[a+1]);return function(n){var e=Pn(t,n,1,r)-1;return i[e](o[e](n))}}function Re(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function He(){var t,n,e,r,o,i,a=We,u=We,s=Le,c=Be;function l(){var t,n,e,s=Math.min(a.length,u.length);return c!==Be&&(t=a[0],n=a[s-1],t>n&&(e=t,t=n,n=e),c=function(e){return Math.max(t,Math.min(n,e))}),r=s>2?ze:qe,o=i=null,f}function f(n){return null==n||isNaN(n=+n)?e:(o||(o=r(a.map(t),u,s)))(t(c(n)))}return f.invert=function(e){return c(n((i||(i=r(u,a.map(t),De)))(e)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Ue),l()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),l()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),s=$e,l()},f.clamp=function(t){return arguments.length?(c=!!t||Be,l()):c!==Be},f.interpolate=function(t){return arguments.length?(s=t,l()):s},f.unknown=function(t){return arguments.length?(e=t,f):e},function(e,r){return t=e,n=r,l()}}function Ye(){return He()(Be,Be)}var Ie,Ge=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ke(t){if(!(n=Ge.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 Ze(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 Qe(t){return(t=Ze(Math.abs(t)))?t[1]:NaN}function Xe(t,n){var e=Ze(t,n);if(!e)return t+"";var r=e[0],o=e[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")}Ke.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 Je={"%":(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)=>Xe(100*t,n),r:Xe,s:function(t,n){var e=Ze(t,n);if(!e)return t+"";var r=e[0],o=e[1],i=o-(Ie=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")+Ze(t,Math.max(0,n+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function tr(t){return t}var nr,er,rr,or=Array.prototype.map,ir=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ar(t,n,e,r){var o,i=Tn(t,n,e);switch((r=Ke(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(o=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Qe(n)/3)))-Qe(Math.abs(t)))}(i,a))||(r.precision=o),rr(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Qe(n)-Qe(t))+1}(i,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(t){return Math.max(0,-Qe(Math.abs(t)))}(i))||(r.precision=o-2*("%"===r.type))}return er(r)}function ur(t){var n=t.domain;return t.ticks=function(t){var e=n();return Sn(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return ar(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,o,i=n(),a=0,u=i.length-1,s=i[a],c=i[u],l=10;for(c<s&&(o=s,s=c,c=o,o=a,a=u,u=o);l-- >0;){if((o=Fn(s,c,e))===r)return i[a]=s,i[u]=c,n(i);if(o>0)s=Math.floor(s/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;s=Math.ceil(s*o)/o,c=Math.floor(c*o)/o}r=o}return t},t}function sr(){var t=Ye();return t.copy=function(){return Re(t,sr())},vn.apply(t,arguments),ur(t)}function cr(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,Ue),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return cr(t).unknown(n)},t=arguments.length?Array.from(t,Ue):[0,1],ur(e)}function lr(t,n){var e,r=0,o=(t=t.slice()).length-1,i=t[r],a=t[o];return a<i&&(e=r,r=o,o=e,e=i,i=a,a=e),t[r]=n.floor(i),t[o]=n.ceil(a),t}function fr(t){return Math.log(t)}function pr(t){return Math.exp(t)}function dr(t){return-Math.log(-t)}function hr(t){return-Math.exp(-t)}function gr(t){return isFinite(t)?+("1e"+t):t<0?0:t}function yr(t){return(n,e)=>-t(-n,e)}function vr(t){const n=t(fr,pr),e=n.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),n=>Math.log(n)/t)}(i),o=function(t){return 10===t?gr:t===Math.E?Math.exp:n=>Math.pow(t,n)}(i),e()[0]<0?(r=yr(r),o=yr(o),t(dr,hr)):t(fr,pr),n}return n.base=function(t){return arguments.length?(i=+t,a()):i},n.domain=function(t){return arguments.length?(e(t),a()):e()},n.ticks=t=>{const n=e();let a=n[0],u=n[n.length-1];const s=u<a;s&&([a,u]=[u,a]);let c,l,f=r(a),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(c=1;c<i;++c)if(l=f<0?c/o(-f):c*o(f),!(l<a)){if(l>u)break;h.push(l)}}else for(;f<=p;++f)for(c=i-1;c>=1;--c)if(l=f>0?c/o(-f):c*o(f),!(l<a)){if(l>u)break;h.push(l)}2*h.length<d&&(h=Sn(a,u,d))}else h=Sn(f,p,Math.min(p-f,d)).map(o);return s?h.reverse():h},n.tickFormat=(t,e)=>{if(null==t&&(t=10),null==e&&(e=10===i?"s":","),"function"!=typeof e&&(i%1||null!=(e=Ke(e)).precision||(e.trim=!0),e=er(e)),t===1/0)return e;const a=Math.max(1,i*t/n.ticks().length);return t=>{let n=t/o(Math.round(r(t)));return n*i<i-.5&&(n*=i),n<=a?e(t):""}},n.nice=()=>e(lr(e(),{floor:t=>o(Math.floor(r(t))),ceil:t=>o(Math.ceil(r(t)))})),n}function mr(){const t=vr(He()).domain([1,10]);return t.copy=()=>Re(t,mr()).base(t.base()),vn.apply(t,arguments),t}function br(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function xr(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function wr(t){var n=1,e=t(br(n),xr(n));return e.constant=function(e){return arguments.length?t(br(n=+e),xr(n)):n},ur(e)}function kr(){var t=wr(He());return t.copy=function(){return Re(t,kr()).constant(t.constant())},vn.apply(t,arguments)}function Mr(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Ar(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Or(t){return t<0?-t*t:t*t}function Er(t){var n=t(Be,Be),e=1;function r(){return 1===e?t(Be,Be):.5===e?t(Ar,Or):t(Mr(e),Mr(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},ur(n)}function jr(){var t=Er(He());return t.copy=function(){return Re(t,jr()).exponent(t.exponent())},vn.apply(t,arguments),t}function Cr(){return jr.apply(null,arguments).exponent(.5)}function Dr(t){return Math.sign(t)*t*t}function Sr(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function Fr(){var t,n=Ye(),e=[0,1],r=!1;function o(e){var o=Sr(n(e));return isNaN(o)?t:r?Math.round(o):o}return o.invert=function(t){return n.invert(Dr(t))},o.domain=function(t){return arguments.length?(n.domain(t),o):n.domain()},o.range=function(t){return arguments.length?(n.range((e=Array.from(t,Ue)).map(Dr)),o):e.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?(n.clamp(t),o):n.clamp()},o.unknown=function(n){return arguments.length?(t=n,o):t},o.copy=function(){return Fr(n.domain(),e).round(r).clamp(n.clamp()).unknown(t)},vn.apply(o,arguments),ur(o)}function Tr(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 o of t)null!=(o=n(o,++r,t))&&(e<o||void 0===e&&o>=o)&&(e=o)}return e}function Nr(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 o of t)null!=(o=n(o,++r,t))&&(e>o||void 0===e&&o>=o)&&(e=o)}return e}function _r(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function Lr(t,n,e=0,r=t.length-1,o){for(o=void 0===o?_r:function(t=Nn){if(t===Nn)return _r;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))}}(o);r>e;){if(r-e>600){const i=r-e+1,a=n-e+1,u=Math.log(i),s=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*s*(i-s)/i)*(a-i/2<0?-1:1);Lr(t,n,Math.max(e,Math.floor(n-a*s/i+c)),Math.min(r,Math.floor(n+(i-a)*s/i+c)),o)}const i=t[n];let a=e,u=r;for($r(t,e,n),o(t[r],i)>0&&$r(t,e,r);a<u;){for($r(t,a,u),++a,--u;o(t[a],i)<0;)++a;for(;o(t[u],i)>0;)--u}0===o(t[e],i)?$r(t,e,u):(++u,$r(t,u,r)),u<=n&&(e=u+1),n<=u&&(r=u-1)}return t}function $r(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function Ur(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 Nr(t);if(n>=1)return Tr(t);var r,o=(r-1)*n,i=Math.floor(o),a=Tr(Lr(t,i).subarray(0,i+1));return a+(Nr(t.subarray(i+1))-a)*(o-i)}}function Wr(t,n,e=Un){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,o=(r-1)*n,i=Math.floor(o),a=+e(t[i],i,t);return a+(+e(t[i+1],i+1,t)-a)*(o-i)}}function Br(){var t,n=[],e=[],r=[];function o(){var t=0,o=Math.max(1,e.length);for(r=new Array(o-1);++t<o;)r[t-1]=Wr(n,t/o);return i}function i(n){return null==n||isNaN(n=+n)?t:e[Pn(r,n)]}return i.invertExtent=function(t){var o=e.indexOf(t);return o<0?[NaN,NaN]:[o>0?r[o-1]:n[0],o<r.length?r[o]:n[n.length-1]]},i.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(Nn),o()},i.range=function(t){return arguments.length?(e=Array.from(t),o()):e.slice()},i.unknown=function(n){return arguments.length?(t=n,i):t},i.quantiles=function(){return r.slice()},i.copy=function(){return Br().domain(n).range(e).unknown(t)},vn.apply(i,arguments)}function Pr(){var t,n=0,e=1,r=1,o=[.5],i=[0,1];function a(n){return null!=n&&n<=n?i[Pn(o,n,0,r)]:t}function u(){var t=-1;for(o=new Array(r);++t<r;)o[t]=((t+1)*e-(t-r)*n)/(r+1);return a}return a.domain=function(t){return arguments.length?([n,e]=t,n=+n,e=+e,u()):[n,e]},a.range=function(t){return arguments.length?(r=(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?[n,o[0]]:a>=r?[o[r-1],e]:[o[a-1],o[a]]},a.unknown=function(n){return arguments.length?(t=n,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return Pr().domain([n,e]).range(i).unknown(t)},vn.apply(ur(a),arguments)}function qr(){var t,n=[.5],e=[0,1],r=1;function o(o){return null!=o&&o<=o?e[Pn(n,o,0,r)]:t}return o.domain=function(t){return arguments.length?(n=Array.from(t),r=Math.min(n.length,e.length-1),o):n.slice()},o.range=function(t){return arguments.length?(e=Array.from(t),r=Math.min(n.length,e.length-1),o):e.slice()},o.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},o.unknown=function(n){return arguments.length?(t=n,o):t},o.copy=function(){return qr().domain(n).range(e).unknown(t)},vn.apply(o,arguments)}nr=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?tr:(n=or.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var o=t.length,i=[],a=0,u=n[0],s=0;o>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),i.push(t.substring(o-=u,o+u)),!((s+=u+1)>r));)u=n[a=(a+1)%n.length];return i.reverse().join(e)}),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?tr:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(or.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var n=(t=Ke(t)).fill,e=t.align,f=t.sign,p=t.symbol,d=t.zero,h=t.width,g=t.comma,y=t.precision,v=t.trim,m=t.type;"n"===m?(g=!0,m="g"):Je[m]||(void 0===y&&(y=12),v=!0,m="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",x="$"===p?i:/[%p]/.test(m)?s:"",w=Je[m],k=/[defgprs%]/.test(m);function M(t){var o,i,s,p=b,M=x;if("c"===m)M=w(t)+M,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:w(Math.abs(t),y),v&&(t=function(t){t:for(var n,e=t.length,r=1,o=-1;r<e;++r)switch(t[r]){case".":o=n=r;break;case"0":0===o&&(o=r),n=r;break;default:if(!+t[r])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(n+1):t}(t)),A&&0==+t&&"+"!==f&&(A=!1),p=(A?"("===f?f:c:"-"===f||"("===f?"":f)+p,M=("s"===m?ir[8+Ie/3]:"")+M+(A&&"("===f?")":""),k)for(o=-1,i=t.length;++o<i;)if(48>(s=t.charCodeAt(o))||s>57){M=(46===s?a+t.slice(o+1):t.slice(o))+M,t=t.slice(0,o);break}}g&&!d&&(t=r(t,1/0));var O=p.length+t.length+M.length,E=O<h?new Array(h-O+1).join(n):"";switch(g&&d&&(t=r(E+t,E.length?h-M.length:1/0),E=""),e){case"<":t=p+t+M+E;break;case"=":t=p+E+t+M;break;case"^":t=E.slice(0,O=E.length>>1)+p+t+M+E.slice(O);break;default:t=E+p+t+M}return u(t)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),M.toString=function(){return t+""},M}return{format:f,formatPrefix:function(t,n){var e=f(((t=Ke(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Qe(n)/3))),o=Math.pow(10,-r),i=ir[8+r/3];return function(t){return e(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),er=nr.format,rr=nr.formatPrefix;const zr=1e3,Rr=6e4,Hr=36e5,Yr=864e5,Ir=6048e5,Gr=31536e6;var Kr=new Date,Vr=new Date;function Zr(t,n,e,r){function o(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return o.floor=function(n){return t(n=new Date(+n)),n},o.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},o.round=function(t){var n=o(t),e=o.ceil(t);return t-n<e-t?n:e},o.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},o.range=function(e,r,i){var a,u=[];if(e=o.ceil(e),i=null==i?1:Math.floor(i),!(e<r&&i>0))return u;do{u.push(a=new Date(+e)),n(e,i),t(e)}while(a<e&&e<r);return u},o.filter=function(e){return Zr((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&&(o.count=function(n,r){return Kr.setTime(+n),Vr.setTime(+r),t(Kr),t(Vr),Math.floor(e(Kr,Vr))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?function(n){return r(n)%t==0}:function(n){return o.count(0,n)%t==0}):o:null}),o}var Qr=Zr((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));Qr.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Zr((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):Qr:null};var Xr=Qr,Jr=(Qr.range,Zr((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()}))),to=Jr,no=(Jr.range,Zr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*zr)}),(function(t,n){t.setTime(+t+n*Rr)}),(function(t,n){return(n-t)/Rr}),(function(t){return t.getMinutes()}))),eo=no,ro=(no.range,Zr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*zr-t.getMinutes()*Rr)}),(function(t,n){t.setTime(+t+n*Hr)}),(function(t,n){return(n-t)/Hr}),(function(t){return t.getHours()}))),oo=ro,io=(ro.range,Zr((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Rr)/Yr),(t=>t.getDate()-1))),ao=io;function uo(t){return Zr((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())*Rr)/Ir}))}io.range;var so=uo(0),co=uo(1),lo=uo(2),fo=uo(3),po=uo(4),ho=uo(5),go=uo(6),yo=(so.range,co.range,lo.range,fo.range,po.range,ho.range,go.range,Zr((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()}))),vo=yo,mo=(yo.range,Zr((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()})));mo.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zr((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 bo=mo,xo=(mo.range,Zr((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Rr)}),(function(t,n){return(n-t)/Rr}),(function(t){return t.getUTCMinutes()}))),wo=xo,ko=(xo.range,Zr((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*Hr)}),(function(t,n){return(n-t)/Hr}),(function(t){return t.getUTCHours()}))),Mo=ko,Ao=(ko.range,Zr((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/Yr}),(function(t){return t.getUTCDate()-1}))),Oo=Ao;function Eo(t){return Zr((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)/Ir}))}Ao.range;var jo=Eo(0),Co=Eo(1),Do=Eo(2),So=Eo(3),Fo=Eo(4),To=Eo(5),No=Eo(6),_o=(jo.range,Co.range,Do.range,So.range,Fo.range,To.range,No.range,Zr((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()}))),Lo=_o,$o=(_o.range,Zr((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()})));$o.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zr((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 Uo=$o;function Wo(t,n,e,r,o,i){const a=[[to,1,zr],[to,5,5e3],[to,15,15e3],[to,30,3e4],[i,1,Rr],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Hr],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Yr],[r,2,1728e5],[e,1,Ir],[n,1,2592e6],[n,3,7776e6],[t,1,Gr]];function u(n,e,r){const o=Math.abs(e-n)/r,i=Ln((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(Tn(n/Gr,e/Gr,r));if(0===i)return Xr.every(Math.max(Tn(n,e,r),1));const[u,s]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return u.every(s)}return[function(t,n,e){const r=n<t;r&&([t,n]=[n,t]);const o=e&&"function"==typeof e.range?e:u(t,n,e),i=o?o.range(t,+n+1):[];return r?i.reverse():i},u]}$o.range;const[Bo,Po]=Wo(Uo,Lo,jo,Oo,Mo,wo),[qo,zo]=Wo(bo,vo,so,ao,oo,eo);function Ro(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 Ho(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 Yo(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var Io,Go,Ko,Vo={"-":"",_:" ",0:"0"},Zo=/^\s*\d+/,Qo=/^%/,Xo=/[\\^$*+?|[\]().{}]/g;function Jo(t,n,e){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<e?new Array(e-i+1).join(n)+o:o)}function ti(t){return t.replace(Xo,"\\$&")}function ni(t){return new RegExp("^(?:"+t.map(ti).join("|")+")","i")}function ei(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function ri(t,n,e){var r=Zo.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function oi(t,n,e){var r=Zo.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function ii(t,n,e){var r=Zo.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function ai(t,n,e){var r=Zo.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function ui(t,n,e){var r=Zo.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function si(t,n,e){var r=Zo.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function ci(t,n,e){var r=Zo.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function li(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 fi(t,n,e){var r=Zo.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function pi(t,n,e){var r=Zo.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function di(t,n,e){var r=Zo.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function hi(t,n,e){var r=Zo.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function gi(t,n,e){var r=Zo.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function yi(t,n,e){var r=Zo.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function vi(t,n,e){var r=Zo.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function mi(t,n,e){var r=Zo.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function bi(t,n,e){var r=Zo.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function xi(t,n,e){var r=Qo.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function wi(t,n,e){var r=Zo.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function ki(t,n,e){var r=Zo.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function Mi(t,n){return Jo(t.getDate(),n,2)}function Ai(t,n){return Jo(t.getHours(),n,2)}function Oi(t,n){return Jo(t.getHours()%12||12,n,2)}function Ei(t,n){return Jo(1+ao.count(bo(t),t),n,3)}function ji(t,n){return Jo(t.getMilliseconds(),n,3)}function Ci(t,n){return ji(t,n)+"000"}function Di(t,n){return Jo(t.getMonth()+1,n,2)}function Si(t,n){return Jo(t.getMinutes(),n,2)}function Fi(t,n){return Jo(t.getSeconds(),n,2)}function Ti(t){var n=t.getDay();return 0===n?7:n}function Ni(t,n){return Jo(so.count(bo(t)-1,t),n,2)}function _i(t){var n=t.getDay();return n>=4||0===n?po(t):po.ceil(t)}function Li(t,n){return t=_i(t),Jo(po.count(bo(t),t)+(4===bo(t).getDay()),n,2)}function $i(t){return t.getDay()}function Ui(t,n){return Jo(co.count(bo(t)-1,t),n,2)}function Wi(t,n){return Jo(t.getFullYear()%100,n,2)}function Bi(t,n){return Jo((t=_i(t)).getFullYear()%100,n,2)}function Pi(t,n){return Jo(t.getFullYear()%1e4,n,4)}function qi(t,n){var e=t.getDay();return Jo((t=e>=4||0===e?po(t):po.ceil(t)).getFullYear()%1e4,n,4)}function zi(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Jo(n/60|0,"0",2)+Jo(n%60,"0",2)}function Ri(t,n){return Jo(t.getUTCDate(),n,2)}function Hi(t,n){return Jo(t.getUTCHours(),n,2)}function Yi(t,n){return Jo(t.getUTCHours()%12||12,n,2)}function Ii(t,n){return Jo(1+Oo.count(Uo(t),t),n,3)}function Gi(t,n){return Jo(t.getUTCMilliseconds(),n,3)}function Ki(t,n){return Gi(t,n)+"000"}function Vi(t,n){return Jo(t.getUTCMonth()+1,n,2)}function Zi(t,n){return Jo(t.getUTCMinutes(),n,2)}function Qi(t,n){return Jo(t.getUTCSeconds(),n,2)}function Xi(t){var n=t.getUTCDay();return 0===n?7:n}function Ji(t,n){return Jo(jo.count(Uo(t)-1,t),n,2)}function ta(t){var n=t.getUTCDay();return n>=4||0===n?Fo(t):Fo.ceil(t)}function na(t,n){return t=ta(t),Jo(Fo.count(Uo(t),t)+(4===Uo(t).getUTCDay()),n,2)}function ea(t){return t.getUTCDay()}function ra(t,n){return Jo(Co.count(Uo(t)-1,t),n,2)}function oa(t,n){return Jo(t.getUTCFullYear()%100,n,2)}function ia(t,n){return Jo((t=ta(t)).getUTCFullYear()%100,n,2)}function aa(t,n){return Jo(t.getUTCFullYear()%1e4,n,4)}function ua(t,n){var e=t.getUTCDay();return Jo((t=e>=4||0===e?Fo(t):Fo.ceil(t)).getUTCFullYear()%1e4,n,4)}function sa(){return"+0000"}function ca(){return"%"}function la(t){return+t}function fa(t){return Math.floor(+t/1e3)}function pa(t){return new Date(t)}function da(t){return t instanceof Date?+t:+new Date(+t)}function ha(t,n,e,r,o,i,a,u,s,c){var l=Ye(),f=l.invert,p=l.domain,d=c(".%L"),h=c(":%S"),g=c("%I:%M"),y=c("%I %p"),v=c("%a %d"),m=c("%b %d"),b=c("%B"),x=c("%Y");function w(t){return(s(t)<t?d:u(t)<t?h:a(t)<t?g:i(t)<t?y:r(t)<t?o(t)<t?v:m:e(t)<t?b:x)(t)}return l.invert=function(t){return new Date(f(t))},l.domain=function(t){return arguments.length?p(Array.from(t,da)):p().map(pa)},l.ticks=function(n){var e=p();return t(e[0],e[e.length-1],null==n?10:n)},l.tickFormat=function(t,n){return null==n?w:c(n)},l.nice=function(t){var e=p();return t&&"function"==typeof t.range||(t=n(e[0],e[e.length-1],null==t?10:t)),t?p(lr(e,t)):l},l.copy=function(){return Re(l,ha(t,n,e,r,o,i,a,u,s,c))},l}function ga(){return vn.apply(ha(qo,zo,bo,vo,so,ao,oo,eo,to,Go).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ya(){return vn.apply(ha(Bo,Po,Uo,Lo,jo,Oo,Mo,wo,to,Ko).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function va(){var t,n,e,r,o,i=0,a=1,u=Be,s=!1;function c(n){return null==n||isNaN(n=+n)?o:u(0===e?.5:(n=(r(n)-t)*e,s?Math.max(0,Math.min(1,n)):n))}function l(t){return function(n){var e,r;return arguments.length?([e,r]=n,u=t(e,r),c):[u(0),u(1)]}}return c.domain=function(o){return arguments.length?([i,a]=o,t=r(i=+i),n=r(a=+a),e=t===n?0:1/(n-t),c):[i,a]},c.clamp=function(t){return arguments.length?(s=!!t,c):s},c.interpolator=function(t){return arguments.length?(u=t,c):u},c.range=l(Le),c.rangeRound=l($e),c.unknown=function(t){return arguments.length?(o=t,c):o},function(o){return r=o,t=o(i),n=o(a),e=t===n?0:1/(n-t),c}}function ma(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function ba(){var t=ur(va()(Be));return t.copy=function(){return ma(t,ba())},mn.apply(t,arguments)}function xa(){var t=vr(va()).domain([1,10]);return t.copy=function(){return ma(t,xa()).base(t.base())},mn.apply(t,arguments)}function wa(){var t=wr(va());return t.copy=function(){return ma(t,wa()).constant(t.constant())},mn.apply(t,arguments)}function ka(){var t=Er(va());return t.copy=function(){return ma(t,ka()).exponent(t.exponent())},mn.apply(t,arguments)}function Ma(){return ka.apply(null,arguments).exponent(.5)}function Aa(){var t=[],n=Be;function e(e){if(null!=e&&!isNaN(e=+e))return n((Pn(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(Nn),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)=>Ur(t,r/n)))},e.copy=function(){return Aa(n).domain(t)},mn.apply(e,arguments)}function Oa(t,n){void 0===n&&(n=t,t=Le);for(var e=0,r=n.length-1,o=n[0],i=new Array(r<0?0:r);e<r;)i[e]=t(o,o=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return i[n](t-n)}}function Ea(){var t,n,e,r,o,i,a,u=0,s=.5,c=1,l=1,f=Be,p=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-n)*(l*t<l*n?r:o),f(p?Math.max(0,Math.min(1,t)):t))}function h(t){return function(n){var e,r,o;return arguments.length?([e,r,o]=n,f=Oa(t,[e,r,o]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([u,s,c]=a,t=i(u=+u),n=i(s=+s),e=i(c=+c),r=t===n?0:.5/(n-t),o=n===e?0:.5/(e-n),l=n<t?-1:1,d):[u,s,c]},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(Le),d.rangeRound=h($e),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return i=a,t=a(u),n=a(s),e=a(c),r=t===n?0:.5/(n-t),o=n===e?0:.5/(e-n),l=n<t?-1:1,d}}function ja(){var t=ur(Ea()(Be));return t.copy=function(){return ma(t,ja())},mn.apply(t,arguments)}function Ca(){var t=vr(Ea()).domain([.1,1,10]);return t.copy=function(){return ma(t,Ca()).base(t.base())},mn.apply(t,arguments)}function Da(){var t=wr(Ea());return t.copy=function(){return ma(t,Da()).constant(t.constant())},mn.apply(t,arguments)}function Sa(){var t=Er(Ea());return t.copy=function(){return ma(t,Sa()).exponent(t.exponent())},mn.apply(t,arguments)}function Fa(){return Sa.apply(null,arguments).exponent(.5)}Io=function(t){var n=t.dateTime,e=t.date,r=t.time,o=t.periods,i=t.days,a=t.shortDays,u=t.months,s=t.shortMonths,c=ni(o),l=ei(o),f=ni(i),p=ei(i),d=ni(a),h=ei(a),g=ni(u),y=ei(u),v=ni(s),m=ei(s),b={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:Mi,e:Mi,f:Ci,g:Bi,G:qi,H:Ai,I:Oi,j:Ei,L:ji,m:Di,M:Si,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:la,s:fa,S:Fi,u:Ti,U:Ni,V:Li,w:$i,W:Ui,x:null,X:null,y:Wi,Y:Pi,Z:zi,"%":ca},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:Ri,e:Ri,f:Ki,g:ia,G:ua,H:Hi,I:Yi,j:Ii,L:Gi,m:Vi,M:Zi,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:la,s:fa,S:Qi,u:Xi,U:Ji,V:na,w:ea,W:ra,x:null,X:null,y:oa,Y:aa,Z:sa,"%":ca},w={a:function(t,n,e){var r=d.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=p.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(t,n,e){var r=v.exec(n.slice(e));return r?(t.m=m.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=y.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return A(t,n,e,r)},d:di,e:di,f:bi,g:ci,G:si,H:gi,I:gi,j:hi,L:mi,m:pi,M:yi,p:function(t,n,e){var r=c.exec(n.slice(e));return r?(t.p=l.get(r[0].toLowerCase()),e+r[0].length):-1},q:fi,Q:wi,s:ki,S:vi,u:oi,U:ii,V:ai,w:ri,W:ui,x:function(t,n,r){return A(t,e,n,r)},X:function(t,n,e){return A(t,r,n,e)},y:ci,Y:si,Z:li,"%":xi};function k(t,n){return function(e){var r,o,i,a=[],u=-1,s=0,c=t.length;for(e instanceof Date||(e=new Date(+e));++u<c;)37===t.charCodeAt(u)&&(a.push(t.slice(s,u)),null!=(o=Vo[r=t.charAt(++u)])?r=t.charAt(++u):o="e"===r?" ":"0",(i=n[r])&&(r=i(e,o)),a.push(r),s=u+1);return a.push(t.slice(s,u)),a.join("")}}function M(t,n){return function(e){var r,o,i=Yo(1900,void 0,1);if(A(i,t,e+="",0)!=e.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(n&&!("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=Ho(Yo(i.y,0,1))).getUTCDay(),r=o>4||0===o?Co.ceil(r):Co(r),r=Oo.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Ro(Yo(i.y,0,1))).getDay(),r=o>4||0===o?co.ceil(r):co(r),r=ao.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?Ho(Yo(i.y,0,1)).getUTCDay():Ro(Yo(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,Ho(i)):Ro(i)}}function A(t,n,e,r){for(var o,i,a=0,u=n.length,s=e.length;a<u;){if(r>=s)return-1;if(37===(o=n.charCodeAt(a++))){if(o=n.charAt(a++),!(i=w[o in Vo?n.charAt(a++):o])||(r=i(t,e,r))<0)return-1}else if(o!=e.charCodeAt(r++))return-1}return r}return b.x=k(e,b),b.X=k(r,b),b.c=k(n,b),x.x=k(e,x),x.X=k(r,x),x.c=k(n,x),{format:function(t){var n=k(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=k(t+="",x);return n.toString=function(){return t},n},utcParse:function(t){var n=M(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"]}),Go=Io.format,Io.parse,Ko=Io.utcFormat,Io.utcParse;const Ta=["linear","time","log","sqrt"];function Na(t){return"function"==typeof t?M(t.copy)&&M(t.domain)&&M(t.range):"string"==typeof t&&Ta.includes(t)}function _a(t,n){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[n])}function La(t,n){if(!t.data)return"linear";const e=A(t[n]);return Bt(t.data.map((t=>{const r=gn()(e(t))?e(t)[n]:e(t);return void 0!==r?r:t[n]})))?"time":"linear"}function $a(n){if(Na(n)){const r=`scale${e=n,e&&e[0].toUpperCase()+e.slice(1)}`;return t[r]()}var e;return sr()}function Ua(t,n){const e=Wa(t,n);return e?"string"==typeof e?$a(e):e:$a(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 Bt(e)?"time":"linear"}(t,n)||La(t,n))}function Wa(t,n){if(!_a(t,n))return;const e=t.scale[n]||t.scale;return Na(e)?M(e)?e:$a(e):void 0}function Ba(t,n){return function(t,n){if(!_a(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=Pa.filter((n=>void 0!==t[n.method]))[0];return n?n.name:void 0}(e)}(t,n)||La(t,n)}const Pa=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function qa(t){return!(!t||!t["@@__IMMUTABLE_ITERABLE__@@"])}function za(t,n){return qa(t)?t.reduce(((t,e,r)=>{let o=e;return n&&n[r]&&(o=za(e)),t[r]=o,t}),function(t){return!(!t||!t["@@__IMMUTABLE_LIST__@@"])}(t)?[]:{}):t}function Ra(t){return qa(n=t)||function(t){return!(!t||!t["@@__IMMUTABLE_RECORD__@@"])}(n)?za(t,{errorX:!0,errorY:!0}):t;var n}function Ha(t,n){const e=(gn()(t.domain)?t.domain[n]:t.domain)||Ua(t,n).domain(),r=t.samples||1,o=Math.max(...e),i=Math.min(...e),a=function(t,n,e){const r=n?t:0;let o=n||t;o||(o=0);const i=o-r,a=Math.abs(i),u=i/a||1,s=e||1,c=Math.max(Math.ceil(a/s),0);return Array.from(Array(c),((t,n)=>r+n*u*s))}(i,o,(o-i)/r);return a[a.length-1]===o?a:a.concat(o)}function Ya(t,n,e){if(void 0===e&&(e="ascending"),!n)return t;let r=n;"x"!==n&&"y"!==n||(r=`_${n}`);const o="ascending"===e?"asc":"desc";return un()(t,r,o)}function Ia(t,n){const e=Za(t,n),r=Qa(t,n),o=function(t,n){if(!Array.isArray(t.data)&&!qa(t.data))return[];const e=A(void 0===t[n]?n:t[n]);return Ya(t.data.reduce(((t,n)=>(t.push(Ra(n)),t)),[]),t.sortKey,t.sortOrder).reduce(((t,n)=>{const r=Ra(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),i=on()([...e,...r,...o]);return 0===i.length?null:i.reduce(((t,n,e)=>(t[n]=e+1,t)),{})}function Ga(t,n,r){if(!Array.isArray(t)&&!qa(t)||function(t){return qa(t)?t.size:t.length}(t)<1)return[];const o=["x","y","y0"],i=(r=Array.isArray(r)?r:o).reduce(((t,e)=>{var r;return t[e]=A(void 0!==n[r=e]?n[r]:r),t}),{}),a=dn()(r,o)&&"_x"===n.x&&"_y"===n.y&&"_y0"===n.y0;let u;!1===a&&(u={x:-1!==r.indexOf("x")?Ia(n,"x"):void 0,y:-1!==r.indexOf("y")?Ia(n,"y"):void 0,y0:-1!==r.indexOf("y0")?Ia(n,"y"):void 0});const s=a?t:t.reduce(((t,n,o)=>{const a=Ra(n),s={x:o,y:a},c=r.reduce(((t,n)=>{const e=i[n](a),r=void 0!==e?e:s[n];return void 0!==r&&("string"==typeof r&&u[n]?(t[`${n}Name`]=r,t[`_${n}`]=u[n][r]):t[`_${n}`]=r),t}),{}),l=Object.assign({},c,a);return e()(l)||t.push(l),t}),[]),c=function(t,n){const e=1/Number.MAX_SAFE_INTEGER,r={x:Ba(n,"x"),y:Ba(n,"y")};if("log"!==r.x&&"log"!==r.y)return t;const o=(t,n)=>"log"!==r[n]||0!==t[`_${n}`];return t.map((t=>o(t,"x")&&o(t,"y")&&o(t,"y0")?t:(t=>{const n=o(t,"x")?t._x:e,r=o(t,"y")?t._y:e,i=o(t,"y0")?t._y0:e;return Object.assign({},t,{_x:n,_y:r,_y0:i})})(t)))}(Ya(s,n.sortKey,n.sortOrder),n);return function(t,n){const e=!!t.eventKey,r=M(o=t.eventKey)?o:null==o?()=>{}:y()(o);var o;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,c)}function Ka(t,n){return t.categories&&!Array.isArray(t.categories)?t.categories[n]:t.categories}function Va(t){return t.data?Ga(t.data,t):Ga(function(t){const n=Ha(t,"x"),e=Ha(t,"y");return n.map(((t,n)=>({x:t,y:e[n]})))}(t),t)}function Za(t,n){const{tickValues:e,tickFormat:r}=t;let o;return o=e&&(Array.isArray(e)||e[n])?e[n]||e:r&&Array.isArray(r)?r:[],o.filter((t=>"string"==typeof t))}function Qa(t,n){if(!t.categories)return[];const e=Ka(t,n),r=e&&e.filter((t=>"string"==typeof t));return r?r.filter((t=>void 0!==t)):[]}function Xa(t){const n=t=>t&&t.type?t.type.role:"";let e=n(t);if("portal"===e){const r=s().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)}var Ja=r(4295),tu=r.n(Ja),nu=r(2829),eu=r.n(nu);function ru(t,n,e){void 0===e&&(e="min");const r=t=>"max"===e?Math.max(...t):Math.min(...t),o="max"===e?-1/0:1/0;let i=!1;const a=t.flat().reduce(((t,e)=>{const o=void 0!==e[`_${n}0`]?e[`_${n}0`]:e[`_${n}`],a=void 0!==e[`_${n}1`]?e[`_${n}1`]:e[`_${n}`],u=r([o,a]);return i=i||o instanceof Date||a instanceof Date,r([t,u])}),o);return i?new Date(a):a}function ou(t,n,e){return function(t,n,e){return"log"!==Ba(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=cu(n,e),o=su(n,e),i=function(t,n){const e=t=>Array.isArray(t)?{left:t[0],right:t[1]}:{left:t,right:t};return gn()(t.domainPadding)?e(t.domainPadding[n]):e(t.domainPadding)}(n,e);if(!i.left&&!i.right)return t;const a=Rt(t),u=zt(t),s=k(n,E(e,n.horizontal)),c=Math.abs(s[0]-s[1]),l=Math.max(c-i.left-i.right,1),f=Math.abs(u.valueOf()-a.valueOf())/l*c,p=f*i.left/c,d=f*i.right/c;let h={min:a.valueOf()-p,max:u.valueOf()+d};const g=gn()(n.singleQuadrantDomainPadding)?n.singleQuadrantDomainPadding[e]:n.singleQuadrantDomainPadding,y=(t,n)=>"min"===n&&a>=0&&t<=0||"max"===n&&u<=0&&t>=0?0:t;if((a>=0&&h.min<=0||u<=0&&h.max>=0)&&!1!==g){const t={left:Math.abs(u-a)*i.left/c,right:Math.abs(u-a)*i.right/c},n={min:y(a.valueOf()-t.left,"min"),max:y(u.valueOf()+t.right,"max")},e={left:Math.abs(n.max-n.min)*i.left/c,right:Math.abs(n.max-n.min)*i.right/c};h={min:y(a.valueOf()-e.left,"min"),max:y(u.valueOf()+e.right,"max")}}const v={min:void 0!==r?r:h.min,max:void 0!==o?o:h.max};return a instanceof Date||u instanceof Date?au(new Date(v.min),new Date(v.max)):au(v.min,v.max)}(t,n,e),n,e)}function iu(t,n,e){const r=e||Va(t),{polar:o,startAngle:i=0,endAngle:a=360}=t,u=cu(t,n),s=su(t,n);if(r.length<1)return void 0!==u&&void 0!==s?au(u,s):void 0;const c=au(void 0!==u?u:ru(r,n,"min"),void 0!==s?s:ru(r,n,"max"));return o&&"x"===n&&360===Math.abs(i-a)?lu(c,function(t,n){const e=`_${n}`;return t.flat().map((t=>t[e]&&void 0!==t[e][1]?t[e][1]:t[e]))}(r,n)):c}function au(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 uu(t,n){const e=cu(t,n),r=su(t,n);return gn()(t.domain)&&t.domain[n]?t.domain[n]:Array.isArray(t.domain)?t.domain:void 0!==e&&void 0!==r?au(e,r):void 0}function su(t,n){return gn()(t.maxDomain)&&void 0!==t.maxDomain[n]?t.maxDomain[n]:"number"==typeof t.maxDomain||tu()(t.maxDomain)?t.maxDomain:void 0}function cu(t,n){return gn()(t.minDomain)&&void 0!==t.minDomain[n]?t.minDomain[n]:"number"==typeof t.minDomain||tu()(t.minDomain)?t.minDomain:void 0}function lu(t,n){const e=eu()(n.sort(((t,n)=>t-n))),r=e[1]-e[0];return[t[0],t[1]+r]}function fu(t){const n=t=>t&&t.type?t.type.role:"";let e=n(t);if("portal"===e){const r=s().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)}var pu=r(4912),du=r.n(pu);const hu=/^onGlobal(.*)$/;function gu(t,n,e,r){const o=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),{})},i=(()=>Array.isArray(this.componentEvents)?Array.isArray(t.events)?this.componentEvents.concat(...t.events):this.componentEvents:t.events)(),a=i&&M(r)?r(o(i),n):void 0;if(!t.sharedEvents)return a;const u=t.sharedEvents.getEvents,s=t.sharedEvents.events&&u(o(t.sharedEvents.events),n);return Object.assign({},s,a)}function yu(t,n,r,o){if(e()(t))return{};const i=o||this.baseProps,a=(t,n)=>{const{childName:e,target:r,key:o}=t,a="props"===n?i:this.state||{},u=null!=e&&a[e]?a[e]:a;return"parent"===o?u.parent:u[o]&&u[o][r]},u=(t,e)=>{const o="parent"===n?t.childName:t.childName||r,u=t.target||n,s=(n,e)=>{const r=this.state||{};if(!M(t.mutation))return r;const o=a({childName:e,key:n,target:u},"props"),s=a({childName:e,key:n,target:u},"state"),c=t.mutation(Object.assign({},o,s),i),l=r[e]||{},f=t=>c?(t=>"parent"===u?Object.assign(t,{[n]:Object.assign(t[n]||{},c)}):Object.assign(t,{[n]:Object.assign(t[n]||{},{[u]:c})}))(t):(t=>(t[n]&&t[n][u]&&delete t[n][u],t[n]&&!Object.keys(t[n]).length&&delete t[n],t))(t);return null!=e?Object.assign(r,{[e]:f(l)}):f(r)},c=n=>{const r=(n=>"parent"===u?"parent":"all"===t.eventKey?i[n]?Object.keys(i[n]).filter((t=>"parent"!==t)):Object.keys(i).filter((t=>"parent"!==t)):void 0===t.eventKey&&"parent"===e?i[n]?Object.keys(i[n]):Object.keys(i):void 0!==t.eventKey?t.eventKey:e)(n);return Array.isArray(r)?r.reduce(((t,e)=>Object.assign(t,s(e,n))),{}):s(r,n)},l="all"===o?Object.keys(i).filter((t=>"parent"!==t)):o;return Array.isArray(l)?l.reduce(((t,n)=>Object.assign(t,c(n))),{}):c(l)},s=(n,r,o,i)=>{const a=t[i](n,r,o,this);if(!e()(a)){const t=(t=>{const n=t=>M(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,u(e,n))),{}):u(t,n))(a,o),t)}};return Object.keys(t).reduce(((t,n)=>(t[n]=s,t)),{})}function vu(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 mu(t,n,r,o){const i=(t,n)=>"string"==typeof t[n]?"all"===t[n]||t[n]===o[n]:!!Array.isArray(t[n])&&t[n].map((t=>`${t}`)).includes(o[n]);let a=Array.isArray(t)?t:[t];o.childName&&(a=t.filter((t=>i(t,"childName"))));const u=a.filter((t=>i(t,"target")));if(e()(u))return;const s=u.filter((t=>i(t,"eventKey")));return e()(s)?void 0:s.reduce(((t,e)=>{const o=(e&&M(e.mutation)?e.mutation:()=>{})(Object.assign({},n,r));return Object.assign({},t,o)}),{})}function bu(t,n){const e=Array.isArray(n)&&n.reduce(((n,e)=>{const r=t[e],o=r&&r.type&&r.type.defaultEvents,i=M(o)?o(r.props):o;return Array.isArray(i)?n.concat(...i):n}),[]);return e&&e.length?e:void 0}function xu(t){const n=t.match(hu);return n&&n[1]&&n[1].toLowerCase()}function wu(t,n,e){const{datasets:r,horizontal:o}=t,i=k(t,o?"y":"x"),a=Math.abs(i[1]-i[0]),u=void 0!==e?e:Array.isArray(r[0])&&r[0].length||1,s=(n||r.length)*u;return Math.round(.5*a/s)}function ku(t,n,e){const r=e?e.slice(0):s().Children.toArray(t.children),o=t.data?Va(t):void 0,{polar:i,startAngle:a,endAngle:u,categories:c,minDomain:l,maxDomain:f,horizontal:p}=t,d={horizontal:p,polar:i,startAngle:a,endAngle:u,minDomain:l,maxDomain:f,categories:c},h=o?Object.assign(d,{data:o}):d,g=j(r,(t=>{const e=Object.assign({},t.props,h);return fu(t)?t.type&&M(t.type.getDomain)?t.props&&t.type.getDomain(e,n):function(t,n){return function(t,n){const e=M(t)?t:iu,r=M(n)?n:ou;return(t,n)=>{const o=uu(t,n);if(o)return r(o,t,n);const i=Ka(t,n),a=i?function(t,n,e){const r=e||Ka(t,n),{polar:o,startAngle:i=0,endAngle:a=360}=t;if(!r)return;const u=cu(t,n),s=su(t,n),c=(d=r,Array.isArray(d)&&d.some((t=>"string"==typeof t))?Qa(t,n):[]),l=0===c.length?null:c.reduce(((t,n,e)=>(t[n]=e+1,t)),{}),f=l?r.map((t=>l[t])):r,p=au(void 0!==u?u:Rt(f),void 0!==s?s:zt(f));var d;return o&&"x"===n&&360===Math.abs(i-a)?lu(p,f):p}(t,n,i):e(t,n);return a?r(a,t,n):void 0}}()(t,n)}(e,n):null}),t);return[0===g.length?0:Rt(g),0===g.length?1:zt(g)]}function Mu(t,n,e){const r=e||s().Children.toArray(t.children),o=uu(t,n),i=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:o,children:i}=r[0].props;if(!o)return;const a=Array.isArray(i)&&i[0];if(!a)return;let u=a.props.barWidth,s=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;u=t.props.barWidth,s=a.props.children.length}const c=u||wu(t,i.length,s);return{x:c*i.length/2+(o-c*((i.length-1)/2))}}(t,n,r);let a;if(o)a=o;else{const e=cu(t,n),o=su(t,n),i=(t.data||t.y)&&Va(t),u=i?iu(t,n,i):[],s=ku(t,n,r);a=au(e||Rt([...u,...s]),o||zt([...u,...s]))}return ou(a,Object.assign({domainPadding:i},t),n)}function Au(t,n,e){if(t.data)return Ua(t,n);const r=e?e.slice(0):s().Children.toArray(t.children),o=on()(j(r,(e=>Ba(Object.assign({},e.props,{horizontal:t.horizontal}),n)),t));return o.length>1?$a("linear"):$a(o[0])}function Ou(t,n,e){const r=Qa(t,n),o=cn(e,n),i=o?Za(o.props,n):[],a=r.length?r:function(t,n){return j(t.slice(0),(t=>fu(t)?Qa(t.props||{},n):null))}(e,n);return on()([...a,...i].flat())}var Eu,ju,Cu=r(7314),Du=r.n(Cu),Su=0,Fu=0,Tu=0,Nu=0,_u=0,Lu=0,$u="object"==typeof performance&&performance.now?performance:Date,Uu="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Wu(){return _u||(Uu(Bu),_u=$u.now()+Lu)}function Bu(){_u=0}function Pu(){this._call=this._time=this._next=null}function qu(t,n,e){var r=new Pu;return r.restart(t,n,e),r}function zu(){_u=(Nu=$u.now())+Lu,Su=Fu=0;try{!function(){Wu(),++Su;for(var t,n=Eu;n;)(t=_u-n._time)>=0&&n._call.call(void 0,t),n=n._next;--Su}()}finally{Su=0,function(){for(var t,n,e=Eu,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:Eu=n);ju=t,Hu(r)}(),_u=0}}function Ru(){var t=$u.now(),n=t-Nu;n>1e3&&(Lu-=n,Nu=t)}function Hu(t){Su||(Fu&&(Fu=clearTimeout(Fu)),t-_u>24?(t<1/0&&(Fu=setTimeout(zu,t-$u.now()-Lu)),Tu&&(Tu=clearInterval(Tu))):(Tu||(Nu=$u.now(),Tu=setInterval(Ru,1e3)),Su=1,Uu(zu)))}Pu.prototype=qu.prototype={constructor:Pu,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Wu():+e)+(null==n?0:+n),this._next||ju===this||(ju?ju._next=this:Eu=this,ju=this),this._call=t,this._time=e,Hu()},stop:function(){this._call&&(this._call=null,this._time=1/0,Hu())}};class Yu{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(Wu()-t.startTime,t.duration)}))};start(){this.timer||(this.timer=qu(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}subscribe(t,n){const e=this.subscribers.push({startTime:Wu(),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 Iu=s().createContext({transitionTimer:new Yu,animationTimer:new Yu});Iu.displayName="TimerContext";var Gu=Iu,Ku=r(7491),Vu=r.n(Ku),Zu=r(2516),Qu=r.n(Zu);class Xu extends s().Component{static displayName="VictorySharedEvents";static role="shared-event-wrapper";static contextType=Gu;static defaultProps={groupComponent:s().createElement("g",null)};constructor(t){super(t),this.getScopedEvents=yu.bind(this),this.getEventState=vu.bind(this),this.state=this.state||{},this.sharedEventsCache={},this.globalEvents={},this.prevGlobalEventKeys=[],this.boundGlobalEvents={},this.baseProps=this.getBaseProps(t)}shouldComponentUpdate(t){if(!Vu()(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);Pt(this.prevGlobalEventKeys,t).forEach((t=>this.removeGlobalListener(t))),Pt(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((t=>Object.assign(t,{nativeEvent:t}))(n))};this.boundGlobalEvents[t]=n,window.addEventListener(xu(t),n)}removeGlobalListener(t){window.removeEventListener(xu(t),this.boundGlobalEvents[t])}getAllEvents(t){const n=bu(t,["container","groupComponent"]);return Array.isArray(n)?Array.isArray(t.events)?n.concat(...t.events):n:t.events}applyExternalMutations(t,n){if(!e()(n)){const e=t.externalEventMutations.reduce(((t,n)=>M(n.callback)?t.concat(n.callback):t),[]),r=e.length?()=>{e.forEach((t=>t()))}:void 0;this.setState(n,r)}}getExternalMutations(t,n){return e()(t.externalEventMutations)?void 0:function(t,n,r,o){return void 0===n&&(n={}),void 0===r&&(r={}),o.reduce(((o,i)=>{const a=r[i],u=function(t,n,r,o){return void 0===n&&(n={}),void 0===r&&(r={}),Object.keys(n).reduce(((i,a)=>{const u=r[a]||{},s=n[a]||{};if("parent"===a){const n=mu(t,s,u,{eventKey:a,target:"parent"});i[a]=void 0!==n?Object.assign({},u,n):u}else{const n=on()(Object.keys(s).concat(Object.keys(u)));i[a]=n.reduce(((n,r)=>{const i={eventKey:a,target:r,childName:o},c=mu(t,s[r],u[r],i);return n[r]=void 0!==c?Object.assign({},u[r],c):u[r],du()(n,(t=>!e()(t)))}),{})}return du()(i,(t=>!e()(t)))}),{})}(t,n[i],r[i],i);return o[i]=u||a,du()(o,(t=>!e()(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&&Vu()(n,r))return e}getBaseProps(t){const{container:n}=t,e=s().Children.toArray(this.props.children),r=this.getBasePropsFromChildren(e),o=n?n.props:{};return Object.assign({},r,{parent:o})}getBasePropsFromChildren(t){const n=j(t,((t,n)=>{if(t.type&&M(t.type.getBaseProps)){const e=t.props&&t.type.getBaseProps(t.props);return e?[[n,e]]:null}return null}));return Du()(n)}getNewChildren(t,n){const{events:e,eventKey:r}=t,o=(t,i)=>t.reduce(((t,a,u)=>{if(a.props.children){const n=s().Children.toArray(a.props.children),e=i.slice(u,u+n.length),r=s().cloneElement(a,a.props,o(n,e));return t.concat(r)}if("parent"!==i[u]&&a.type&&M(a.type.getBaseProps)){const o=a.props.name||i[u],c=Array.isArray(e)&&e.filter((t=>"parent"!==t.target&&(Array.isArray(t.childName)?t.childName.indexOf(o)>-1:t.childName===o||"all"===t.childName))),l=[o,n,c,Qu()(this.state[o])],f=this.getCachedSharedEvents(o,l)||{events:c,getEvents:(t,e)=>this.getScopedEvents(t,e,o,n),getEventState:(t,n)=>this.getEventState(t,n,o)};return this.cacheSharedEvents(o,f,l),t.concat(s().cloneElement(a,Object.assign({key:`events-${o}`,sharedEvents:f,eventKey:r,name:o},a.props)))}return t.concat(a)}),[]),i=Object.keys(n),a=s().Children.toArray(t.children);return o(a,i)}getContainer(t,n,e){const r=this.getNewChildren(t,n),o=Array.isArray(e)?e.filter((t=>"parent"===t.target)):[],i=o.length>0?{events:o,getEvents:(t,e)=>this.getScopedEvents(t,e,null,n),getEventState:this.getEventState}:null,u=t.container||t.groupComponent,c=u.type&&u.type.role,l=u.props||{},f=gu.bind(this),p=i&&f({sharedEvents:i},"parent"),d=a()({},this.getEventState("parent","parent"),l,n.parent,{children:r}),h=a()({},function(t,n,e){return t?Object.keys(t).reduce(((n,r)=>(n[r]=n=>t[r](n,e,"parent",r),n)),{}):{}}(p,0,d),l.events);this.globalEvents=(t=>du()(t,((t,n)=>hu.test(n))))(h);const g=(t=>fn()(t,((t,n)=>hu.test(n))))(h);return"container"===c?s().cloneElement(u,Object.assign({},d,{events:g})):s().cloneElement(u,g,r)}render(){const t=this.getAllEvents(this.props);return t?this.getContainer(this.props,this.baseProps,t):s().cloneElement(this.props.container,{children:this.props.children})}}const Ju={width:450,height:300,padding:50,offset:0};function ts(t,n){const e="group",r=O(t,Ju,e),o=function(t,n,e){return function(t,n){const e="100%",r="100%";if(!t)return a()({parent:{height:r,width:e}},n);const{data:o,labels:i,parent:u}=t,s=n&&n.parent||{},c=n&&n.labels||{},l=n&&n.data||{};return{parent:a()({},u,s,{width:e,height:r}),labels:a()({},i,c),data:a()({},o,l)}}(n,t&&t[e]&&t[e].style?t[e].style:{})}(r.theme,r.style,e),{offset:i,colorScale:u,color:c,polar:l,horizontal:f}=r,p=r.categories||function(t,n,e){const r=t.categories&&Qa(t,"x"),o=t.categories&&Qa(t,"y"),i=r&&o?{}:function(t,n){const e=n||s().Children.toArray(t.children),r=Ou(t,"x",e),o=Ou(t,"y",e),i=function(t){return j(t.slice(0),(t=>{const n=t.props||{};let e;return Xa(t)?(e=t.type&&M(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:on()([...r,...i.x].flat()),y:on()([...o,...i.y].flat())}}(t,n),a=r||i.x,u=o||i.y;return{x:a.length>0?a:void 0,y:u.length>0?u:void 0}}(r,n),d=r.datasets||function(t,n){const{polar:e,startAngle:r,endAngle:o,categories:i,minDomain:a,maxDomain:u}=t;let c={polar:e,startAngle:r,endAngle:o,categories:i,minDomain:a,maxDomain:u},l=0;const f=n?n.slice(0):s().Children.toArray(t.children);c=function(t){let{children:n,props:e,childComponents:r,parentProps:o}=t;if(!(n.some((t=>t.type&&"histogram"===t.type.role))&&n.length&&n.every((t=>t.type&&"histogram"===t.type.role))))return o;let i=e.bins||r[0].props.bins;if(!Array.isArray(i)){const t=n.reduce(((t,n)=>{const e=A(n.props.x||"x");return t.concat(n.props.data.map((t=>({x:e(t)}))))}),[]);i=(0,n[0].type.getFormattedData)({data:t,bins:i}).reduce(((t,n,e)=>{let{x0:r,x1:o}=n;return 0===e?t.concat([r,o]):t.concat(o)}),[])}return{...o,bins:i}}({children:f,props:t,childComponents:n,parentProps:c});const p=f.filter((t=>t.type&&"stack"===t.type.role)).length,d=j(f,((t,n,e)=>{const r=Object.assign({},t.props,c);let o,i=t;return Xa(t)?(t.type&&M(t.type.getData)?(i=e?s().cloneElement(t,e.props):t,o=i.type.getData(r)):o=Va(r),l+=1,o.map(((t,n)=>Object.assign({_stack:l,_group:n},t)))):null}),t,[],((t,n)=>t.concat(tn()(n,"_group")))),h=p?"_group":"_stack";return Object.values(en()(d,h))}(r,null),h={x:Mu(Object.assign({},r,{categories:p}),"x",n),y:Mu(Object.assign({},r,{categories:p}),"y",n)},g=r.range||{x:k(r,"x"),y:k(r,"y")},y={x:Wa(r,"x")||Au(r,"x"),y:Wa(r,"y")||Au(r,"y")},v={x:y.x.domain(h.x).range(r.horizontal?g.y:g.x),y:y.y.domain(h.y).range(r.horizontal?g.x:g.y)},b=l?r.origin:function(t){const{width:n,height:e}=t,{top:r,bottom:o,left:i,right:a}=m(t),u=Math.min(n-i-a,e-r-o)/2,s=n/2+i-a,c=e/2+r-o;return{x:s+u>n?u+i-a:s,y:c+u>e?u+r-o:c}}(r);return{datasets:d,categories:p,range:g,domain:h,horizontal:f,scale:v,style:o,colorScale:u,color:c,offset:i,origin:b,padding:m(r)}}function ns(t,n){const e=n.type&&n.type.role,r=n.props.colorScale||t.colorScale;if("group"===e||"stack"===e)return t.theme&&t.theme.group?r||t.theme.group.colorScale:r}function es(t,n,e){void 0===n&&(n=[]);const r=t.data||t.y?Va(t):n,o=e||0;return r.map((t=>{const n=t._x instanceof Date?new Date(t._x.getTime()+o):t._x+o;return Object.assign({},t,{_x1:n})}))}function rs(t,n,e){const r=O(t,Ju,"stack"),o=n||s().Children.toArray(r.children),i=e||ts(r,o),{datasets:u}=i,{labelComponent:c,polar:l,theme:f}=r,p=function(t,n){const{categories:e,domain:r,range:o,scale:i,horizontal:a,origin:u,padding:s}=n,{width:c,height:l,theme:f,polar:p}=t;return{height:l,width:c,theme:f,polar:p,origin:u,categories:e,domain:r,range:o,scale:i,horizontal:a,padding:s,standalone:!1}}(r,i),d=r.name||"group";return o.map(((t,n)=>{const e=t.type&&t.type.role,o=l?function(t,n,e,r){const o=(("stack"===r?n.datasets[0].length:n.datasets.length)-1)/2,i=function(t,n){const{range:e}=n,r=Math.abs(e.x[1]-e.x[0]),o=Math.max(...e.y);return t.offset/(2*Math.PI*o)*r}(t,n);return(e-o)*i}(r,i,n,e):function(t,n,e,r){const o=(("stack"===r?n.datasets[0].length:n.datasets.length)-1)/2,i=function(t,n,e){if(!t.offset)return 0;const r=E("x",t.horizontal),o=e.domain.x,i=e.range[r];return(Math.max(...o)-Math.min(...o))/(Math.max(...i)-Math.min(...i))*t.offset}(t,0,n);return(e-o)*i}(r,i,n,e),h="voronoi"===e||"tooltip"===e||"label"===e?t.props.style:function(t,n,e,r){const{style:o,role:i}=e,u=t.props.style||{};if(Array.isArray(u))return u;const s=t.type&&t.type.role,c="stack"===s?void 0:function(t,n,e,r){const{style:o}=t;let{colorScale:i,color:a}=t;if(o&&o.data&&o.data.fill)return o.data.fill;if(i=n.props&&n.props.colorScale?n.props.colorScale:i,a=n.props&&n.props.color?n.props.color:a,!i&&!a)return;const u=Array.isArray(i)?i:function(t,n){void 0===n&&(n=Wt.material);const{palette:{grayscale:e=["#cccccc","#969696","#636363","#252525"],qualitative:r=[],heatmap:o=[],warm:i=[],cool:a=[],red:u=[],blue:s=[],green:c=[]}={}}=n,l={grayscale:e,qualitative:r,heatmap:o,warm:i,cool:a,red:u,blue:s,green:c};return t&&l[t]?.length?l[t]:l.grayscale}(i,r);return a||u[e%u.length]}(e,t,n,r),l="line"===s?{fill:"none",stroke:c}:{fill:c},f="stack"===i?{}:{width:wu(e)},p=a()({},u.data,Object.assign({},f,o.data,l)),d=a()({},u.labels,o.labels);return{...u,parent:o.parent,data:p,labels:d}}(t,n,i,f),g=r.labels?function(t,n,e){if(t.labels)return Math.floor(n.length/2)===e?t.labels:void 0}(r,u,n):t.props.labels,y=t.props.name||`${d}-${e}-${n}`;return s().cloneElement(t,Object.assign({labels:g,style:h,key:`${y}-key-${n}`,name:y,data:es(r,u[n],o),colorScale:ns(r,t),labelComponent:c||t.props.labelComponent,xOffset:o},p))}))}const os={width:450,height:300,padding:50,offset:0},is={containerComponent:s().createElement(L,null),groupComponent:s().createElement("g",null),samples:50,standalone:!0,theme:Wt.grayscale},as=t=>{const n=ss?.role,{getAnimationProps:r,setAnimationState:o,getProps:i}=function(t){void 0===t&&(t=Xt);const[n,e]=s().useState(t),r=s().useCallback((t=>{e((n=>({...n,...t})))}),[e]),o=s().useCallback(((t,e,o)=>{if(!t?.animate)return e.props.animate;let i=t.animate&&t.animate.getTransitions;const u=(()=>{let t=n&&n.childrenTransitions;return t=qt(t)?t[o]:t,a()({childrenTransitions:t},n)})(),s=t.animate&&t.animate.parentState||u;if(!i){const n=Qt(t,u,(t=>r(t)));i=t=>n(t,o)}return a()({getTransitions:i,parentState:s},t.animate,e.props.animate)}),[n,r]),i=s().useCallback(((t,n)=>{if(t?.animate)if(t.animate.parentState){const e=t.animate.parentState.nodesWillExit?t:null,o=a()({oldProps:e,nextProps:n},t.animate.parentState);r(o)}else{const e=s().Children.toArray(t.children),o=s().Children.toArray(n.children),i=t=>{const n=t=>t.type&&t.type.continuous;return Array.isArray(t)?t.some(n):n(t)},a=!t.polar&&e.some((t=>i(t)||t?.props?.children&&i(t.props.children))),{nodesWillExit:u,nodesWillEnter:c,childrenTransitions:l,nodesShouldEnter:f}=Zt(e,o);r({nodesWillExit:u,nodesWillEnter:c,nodesShouldEnter:f,childrenTransitions:qt(l)?l[0]:l,oldProps:u?t:void 0,nextProps:n,continuous:a})}}),[r]),u=s().useCallback((t=>n&&n.nodesWillExit&&n.oldProps||t),[n]);return{state:n,setState:r,getAnimationProps:o,setAnimationState:i,getProps:u}}(),u=s().useMemo((()=>a()({},t,is)),[t]),c=i(u),l=O(c,os,n),{eventKey:f,containerComponent:p,standalone:d,groupComponent:h,externalEventMutations:g,width:y,height:m,theme:b,polar:x,horizontal:w,name:k}=l,M=s().Children.toArray(l.children),A=function(t){const n=(t=>{const{children:n}=t,e=s().Children.toArray(n).map((t=>({...t,props:v(t.props,["sharedEvents"])})));return t.children=e,t})(t),[e,r]=s().useState(n);return s().useEffect((()=>{Vu()(n,e)||r(n)}),[e,r,n]),s().useMemo((()=>ts(e,e.children)),[e])}(l),{domain:E,scale:j,style:C,origin:S}=A,F=s().useMemo((()=>rs(c,M,A).map(((t,n)=>{const e=Object.assign({animate:r(c,t,n)},t.props);return s().cloneElement(t,e)}))),[c,M,A,r]),T=s().useMemo((()=>d?{domain:E,scale:j,width:y,height:m,standalone:d,theme:b,style:C.parent,horizontal:w,polar:x,origin:S,name:k}:{}),[d,E,j,y,m,b,C,w,x,S,k]),N=s().useMemo((()=>D(u)),[u]),_=s().useMemo((()=>{if(d){const t=a()({},p.props,T,N);return s().cloneElement(p,t)}return s().cloneElement(h,N)}),[h,d,p,T,N]),L=s().useMemo((()=>function(t){const n=bu(t,["groupComponent","containerComponent","labelComponent"]);let e=t.events;return Array.isArray(n)&&(e=Array.isArray(t.events)?n.concat(...t.events):n),e||[]}(c)),[c]),$=function(t){const n=s().useRef();return s().useEffect((()=>{n.current=t})),n.current}(u);return s().useEffect((()=>()=>{u.animate&&o($,c)}),[o,$,u,c]),e()(L)?s().cloneElement(_,_.props,F):s().createElement(Xu,{container:_,eventKey:f,events:L,externalEventMutations:g},F)},us={role:"group",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:rs},ss=Object.assign(s().memo(as,Vu()),us);ss.displayName="VictoryGroup"}(),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.VictoryGroup=n(require("react")):t.VictoryGroup=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(o,i){if(e.length>0){var a=e.indexOf(this);~a?e.splice(a+1):e.push(this),~a?r.splice(a,1/0,o):r.push(o),~e.indexOf(i)&&(i=n.call(this,o,i))}else e.push(i);return null==t?i:t.call(this,o,i)}}(t.exports=function(t,n,r,o){return JSON.stringify(t,e(n,o),r)}).getSerialize=e},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),o=e(7838),i=e(4859),a=e(4073),u=e(8541);function s(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},2596:function(t,n,e){var r=e(2373).Symbol;t.exports=r},6082:function(t){t.exports=function(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}},6649:function(t){t.exports=function(t,n,e,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];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,o=null==t?0:t.length;++r<o;)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,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}},9559:function(t){t.exports=function(t,n){for(var e=-1,r=n.length,o=t.length;++e<r;)t[o+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),o=e(788),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var a=t[n];i.call(t,n)&&o(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 o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];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),o=e(3608);t.exports=function t(n,e,i,a,u){var s=-1,c=n.length;for(i||(i=o),u||(u=[]);++s<c;){var l=n[s];e>0&&i(l)?e>1?t(l,e-1,i,a,u):r(u,l):a||(u[u.length]=l)}return u}},4432:function(t,n,e){var r=e(9026),o=e(3110);t.exports=function(t,n){for(var e=0,i=(n=r(n,t)).length;null!=t&&e<i;)t=t[o(n[e++])];return e&&e==i?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,o=t.length;++r<o;)if(t[r]===n)return r;return-1}},7537:function(t,n,e){var r=e(563),o=e(3474);t.exports=function(t){return o(t)&&"[object Date]"==r(t)}},9070:function(t,n,e){var r=e(7028),o=e(3474);t.exports=function t(n,e,i,a,u){return n===e||(null==n||null==e||!o(n)&&!o(e)?n!=n&&e!=e:r(n,e,i,a,t,u))}},7028:function(t,n,e){var r=e(8708),o=e(8705),i=e(2813),a=e(6682),u=e(9667),s=e(163),c=e(4801),l=e(4289),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,g,y,v){var m=s(t),b=s(n),x=m?p:u(t),w=b?p:u(n),k=(x=x==f?d:x)==d,M=(w=w==f?d:w)==d,A=x==w;if(A&&c(t)){if(!c(n))return!1;m=!0,k=!1}if(A&&!k)return v||(v=new r),m||l(t)?o(t,n,e,g,y,v):i(t,n,x,e,g,y,v);if(!(1&e)){var O=k&&h.call(t,"__wrapped__"),E=M&&h.call(n,"__wrapped__");if(O||E){var j=O?t.value():t,C=E?n.value():n;return v||(v=new r),y(j,C,e,g,v)}}return!!A&&(v||(v=new r),a(t,n,e,g,y,v))}},9548:function(t,n,e){var r=e(8708),o=e(9070);t.exports=function(t,n,e,i){var a=e.length,u=a,s=!i;if(null==t)return!u;for(t=Object(t);a--;){var c=e[a];if(s&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<u;){var l=(c=e[a])[0],f=t[l],p=c[1];if(s&&c[2]){if(void 0===f&&!(l in t))return!1}else{var d=new r;if(i)var h=i(f,p,l,t,n,d);if(!(void 0===h?o(p,f,3,i,d):h))return!1}}return!0}},3472:function(t,n,e){var r=e(758),o=e(5223),i=e(5346),a=e(163),u=e(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: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,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}},758:function(t,n,e){var r=e(9548),o=e(597),i=e(6878);t.exports=function(t){var n=o(t);return 1==n.length&&n[0][2]?i(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},5223:function(t,n,e){var r=e(9070),o=e(9201),i=e(5066),a=e(726),u=e(5385),s=e(6878),c=e(3110);t.exports=function(t,n){return a(t)&&u(n)?s(c(t),n):function(e){var a=o(e,t);return void 0===a&&a===n?i(e,t):r(n,a,3)}}},8245:function(t,n,e){var r=e(8644),o=e(4432),i=e(3472),a=e(383),u=e(9521),s=e(9110),c=e(9409),l=e(5346),f=e(163);t.exports=function(t,n,e){n=n.length?r(n,(function(t){return f(t)?function(n){return o(n,1===t.length?t[0]:t)}:t})):[l];var p=-1;n=r(n,s(i));var d=a(t,(function(t,e,o){return{criteria:r(n,(function(n){return n(t)})),index:++p,value:t}}));return u(d,(function(t,n){return c(t,n,e)}))}},5436:function(t,n,e){var r=e(6371),o=e(5066);t.exports=function(t,n){return r(t,n,(function(n,e){return o(t,e)}))}},6371:function(t,n,e){var r=e(4432),o=e(6539),i=e(9026);t.exports=function(t,n,e){for(var a=-1,u=n.length,s={};++a<u;){var c=n[a],l=r(t,c);e(l,c)&&o(s,i(c,t),l)}return s}},1600:function(t){t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},3301:function(t,n,e){var r=e(4432);t.exports=function(t){return function(n){return r(n,t)}}},6317:function(t,n,e){var r=e(5346),o=e(4280),i=e(201);t.exports=function(t,n){return i(o(t,n,r),t+"")}},6539:function(t,n,e){var r=e(4132),o=e(9026),i=e(9099),a=e(7709),u=e(3110);t.exports=function(t,n,e,s){if(!a(t))return t;for(var c=-1,l=(n=o(n,t)).length,f=l-1,p=t;null!=p&&++c<l;){var d=u(n[c]),h=e;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(c!=f){var g=p[d];void 0===(h=s?s(g,d,p):void 0)&&(h=a(g)?g:i(n[c+1])?[]:{})}r(p,d,h),p=p[d]}return t}},9521:function(t){t.exports=function(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}},7556:function(t,n,e){var r=e(788);t.exports=function(t,n){for(var e=-1,o=t.length,i=0,a=[];++e<o;){var u=t[e],s=n?n(u):u;if(!e||!r(s,c)){var c=s;a[i++]=0===u?0:u}}return a}},6316:function(t,n,e){var r=e(2596),o=e(8644),i=e(163),a=e(1995),u=r?r.prototype:void 0,s=u?u.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(i(n))return o(n,t)+"";if(a(n))return s?s.call(n):"";var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}},9110:function(t){t.exports=function(t){return function(n){return t(n)}}},946:function(t,n,e){var r=e(3273),o=e(5510),i=e(9955),a=e(9914),u=e(6602),s=e(6226);t.exports=function(t,n,e){var c=-1,l=o,f=t.length,p=!0,d=[],h=d;if(e)p=!1,l=i;else if(f>=200){var g=n?null:u(t);if(g)return s(g);p=!1,l=a,h=new r}else h=n?[]:d;t:for(;++c<f;){var y=t[c],v=n?n(y):y;if(y=e||0!==y?y:0,p&&v==v){for(var m=h.length;m--;)if(h[m]===v)continue t;n&&h.push(v),d.push(y)}else l(h,v,e)||(h!==d&&h.push(v),d.push(y))}return d}},9914:function(t,n,e){var r=e(6123);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},9026:function(t,n,e){var r=e(163),o=e(726),i=e(7801),a=e(7010);t.exports=function(t,n){return r(t)?t:o(t,n)?[t]:i(a(t))}},522:function(t,n,e){var r=e(1995);t.exports=function(t,n){if(t!==n){var e=void 0!==t,o=null===t,i=t==t,a=r(t),u=void 0!==n,s=null===n,c=n==n,l=r(n);if(!s&&!l&&!a&&t>n||a&&u&&c&&!s&&!l||o&&u&&c||!e&&c||!i)return 1;if(!o&&!a&&!l&&t<n||l&&e&&i&&!o&&!a||s&&e&&i||!u&&i||!c)return-1}return 0}},9409:function(t,n,e){var r=e(522);t.exports=function(t,n,e){for(var o=-1,i=t.criteria,a=n.criteria,u=i.length,s=e.length;++o<u;){var c=r(i[o],a[o]);if(c)return o>=s?c:c*("desc"==e[o]?-1:1)}return t.index-n.index}},5659:function(t,n,e){var r=e(6649),o=e(4508),i=e(3472),a=e(163);t.exports=function(t,n){return function(e,u){var s=a(e)?r:o,c=n?n():{};return s(e,t,i(u,2),c)}}},6602:function(t){t.exports=function(){}},5525:function(t,n,e){var r=e(3743),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},8705:function(t,n,e){var r=e(3273),o=e(1634),i=e(9914);t.exports=function(t,n,e,a,u,s){var c=1&e,l=t.length,f=n.length;if(l!=f&&!(c&&f>l))return!1;var p=s.get(t),d=s.get(n);if(p&&d)return p==n&&d==t;var h=-1,g=!0,y=2&e?new r:void 0;for(s.set(t,n),s.set(n,t);++h<l;){var v=t[h],m=n[h];if(a)var b=c?a(m,v,h,n,t,s):a(v,m,h,t,n,s);if(void 0!==b){if(b)continue;g=!1;break}if(y){if(!o(n,(function(t,n){if(!i(y,n)&&(v===t||u(v,t,e,a,s)))return y.push(n)}))){g=!1;break}}else if(v!==m&&!u(v,m,e,a,s)){g=!1;break}}return s.delete(t),s.delete(n),g}},2813:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},6682:function(t,n,e){var r=e(8143),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,i,a,u){var s=1&e,c=r(t),l=c.length;if(l!=r(n).length&&!s)return!1;for(var f=l;f--;){var p=c[f];if(!(s?p in n:o.call(n,p)))return!1}var d=u.get(t),h=u.get(n);if(d&&h)return d==n&&h==t;var g=!0;u.set(t,n),u.set(n,t);for(var y=s;++f<l;){var v=t[p=c[f]],m=n[p];if(i)var b=s?i(m,v,p,n,t,u):i(v,m,p,t,n,u);if(!(void 0===b?v===m||a(v,m,e,i,u):b)){g=!1;break}y||(y="constructor"==p)}if(g&&!y){var x=t.constructor,w=n.constructor;x==w||!("constructor"in t)||!("constructor"in n)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(g=!1)}return u.delete(t),u.delete(n),g}},5557:function(t,n,e){var r=e(2645),o=e(4280),i=e(201);t.exports=function(t){return i(o(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),o=e(7747);t.exports=function(t){for(var n=o(t),e=n.length;e--;){var i=n[e],a=t[i];n[e]=[i,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),o=e(5075),i=e(163),a=e(9099),u=e(8454),s=e(3110);t.exports=function(t,n,e){for(var c=-1,l=(n=r(n,t)).length,f=!1;++c<l;){var p=s(n[c]);if(!(f=null!=t&&e(t,p)))break;t=t[p]}return f||++c!=l?f:!!(l=null==t?0:t.length)&&u(l)&&a(p,l)&&(i(t)||o(t))}},3608:function(t,n,e){var r=e(2596),o=e(5075),i=e(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(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),o=e(1995),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\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&&!o(t))||a.test(t)||!i.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),o=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0||(e==n.length-1?n.pop():o.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__,o=r(e,t);return o<0?(++this.size,e.push([t,n])):e[o][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),o=n&&!n.nodeType&&n,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:function(t){t.exports=function(t,n){return function(e){return t(n(e))}}},4280:function(t,n,e){var r=e(6082),o=Math.max;t.exports=function(t,n,e){return n=o(void 0===n?t.length-1:n,0),function(){for(var i=arguments,a=-1,u=o(i.length-n,0),s=Array(u);++a<u;)s[a]=i[n+a];a=-1;for(var c=Array(n+1);++a<n;)c[a]=i[a];return c[n]=e(s),r(t,this,c)}}},2373:function(t,n,e){var r=e(2117),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},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),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(o,(function(t,e,r,o){n.push(r?o.replace(i,"$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),o=e(788),i=e(8286),a=e(8855),u=Object.prototype,s=u.hasOwnProperty,c=r((function(t,n){t=Object(t);var e=-1,r=n.length,c=r>2?n[2]:void 0;for(c&&i(n[0],n[1],c)&&(r=1);++e<r;)for(var l=n[e],f=a(l),p=-1,d=f.length;++p<d;){var h=f[p],g=t[h];(void 0===g||o(g,u[h])&&!s.call(t,h))&&(t[h]=l[h])}return t}));t.exports=c},788:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},2645:function(t,n,e){var r=e(6457);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},7314:function(t){t.exports=function(t){for(var n=-1,e=null==t?0:t.length,r={};++n<e;){var o=t[n];r[o[0]]=o[1]}return r}},9201:function(t,n,e){var r=e(4432);t.exports=function(t,n,e){var o=null==t?void 0:r(t,n);return void 0===o?e:o}},9056:function(t,n,e){var r=e(8347),o=e(5659),i=Object.prototype.hasOwnProperty,a=o((function(t,n,e){i.call(t,e)?t[e].push(n):r(t,e,[n])}));t.exports=a},5066:function(t,n,e){var r=e(6776),o=e(3096);t.exports=function(t,n){return null!=t&&o(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),o=e(8454);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},4801:function(t){t.exports=function(){return!1}},4295:function(t,n,e){var r=e(7537),o=e(9110),i=e(2348),a=i&&i.isDate,u=a?o(a):r;t.exports=u},4155:function(t,n,e){var r=e(7190),o=e(9667),i=e(5075),a=e(163),u=e(981),s=e(4801),c=e(5782),l=e(4289),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||s(t)||l(t)||i(t)))return!t.length;var n=o(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(c(t))return!r(t).length;for(var e in t)if(f.call(t,e))return!1;return!0}},8254:function(t,n,e){var r=e(9070);t.exports=function(t,n){return r(t,n)}},9642:function(t,n,e){var r=e(563),o=e(7709);t.exports=function(t){if(!o(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),o=e(9817),i=e(3474),a=Function.prototype,u=Object.prototype,s=a.toString,c=u.hasOwnProperty,l=s.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var n=o(t);if(null===n)return!0;var e=c.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&s.call(e)==l}},1995:function(t){t.exports=function(){return!1}},4289:function(t){t.exports=function(){return!1}},8999:function(t){t.exports=function(t){return void 0===t}},7747:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},8855:function(t){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},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),o=e(6051),i=e(4912);t.exports=function(t,n){return i(t,o(r(n)))}},4143:function(t,n,e){var r=e(8245),o=e(163);t.exports=function(t,n,e,i){return null==t?[]:(o(n)||(n=null==n?[]:[n]),o(e=i?void 0:e)||(e=null==e?[]:[e]),r(t,n,e))}},9082:function(t,n,e){var r=e(5436),o=e(5557)((function(t,n){return null==t?{}:r(t,n)}));t.exports=o},4912:function(t,n,e){var r=e(8644),o=e(3472),i=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=o(n),i(t,e,(function(t,e){return n(t,e[0])}))}},8532:function(t,n,e){var r=e(1600),o=e(3301),i=e(726),a=e(3110);t.exports=function(t){return i(t)?r(a(t)):o(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),o=e(946);t.exports=function(t,n){return t&&t.length?o(t,r(n,2)):[]}},660:function(t,n,e){var r=e(7010),o=0;t.exports=function(t){var n=++o;return r(t)+n}},7491:function(t){var n="undefined"!=typeof Element,e="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,s,c,l;if(Array.isArray(t)){if((u=t.length)!=a.length)return!1;for(s=u;0!=s--;)if(!i(t[s],a[s]))return!1;return!0}if(e&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(l=t.entries();!(s=l.next()).done;)if(!a.has(s.value[0]))return!1;for(l=t.entries();!(s=l.next()).done;)if(!i(s.value[1],a.get(s.value[0])))return!1;return!0}if(r&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(l=t.entries();!(s=l.next()).done;)if(!a.has(s.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((u=t.length)!=a.length)return!1;for(s=u;0!=s--;)if(t[s]!==a[s])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((u=(c=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(s=u;0!=s--;)if(!Object.prototype.hasOwnProperty.call(a,c[s]))return!1;if(n&&t instanceof Element)return!1;for(s=u;0!=s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!t.$$typeof)&&!i(t[c[s]],a[c[s]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,n){try{return i(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 o=e[t];if(void 0!==o)return o.exports;var i=e[t]={id:t,loaded:!1,exports:{}};return n[t](i,i.exports,r),i.loaded=!0,i.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 o={};return function(){"use strict";r.r(o),r.d(o,{VictoryGroup:function(){return ss}});var t={};r.r(t),r.d(t,{scaleBand:function(){return An},scaleDiverging:function(){return ja},scaleDivergingLog:function(){return Ca},scaleDivergingPow:function(){return Sa},scaleDivergingSqrt:function(){return Fa},scaleDivergingSymlog:function(){return Da},scaleIdentity:function(){return cr},scaleImplicit:function(){return kn},scaleLinear:function(){return sr},scaleLog:function(){return mr},scaleOrdinal:function(){return Mn},scalePoint:function(){return En},scalePow:function(){return jr},scaleQuantile:function(){return Br},scaleQuantize:function(){return Pr},scaleRadial:function(){return Fr},scaleSequential:function(){return ba},scaleSequentialLog:function(){return xa},scaleSequentialPow:function(){return ka},scaleSequentialQuantile:function(){return Aa},scaleSequentialSqrt:function(){return Ma},scaleSequentialSymlog:function(){return wa},scaleSqrt:function(){return Cr},scaleSymlog:function(){return kr},scaleThreshold:function(){return qr},scaleTime:function(){return ga},scaleUtc:function(){return ya},tickFormat:function(){return ar}});var n=r(1893),e=r.n(n),i=r(4155),a=r.n(i),u=r(9787),s=r.n(u),c=r(660),l=r.n(c);function f(){return f=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},f.apply(this,arguments)}const p=s().forwardRef(((t,n)=>s().createElement("svg",f({ref:n},t))));var d=r(8532),h=r.n(d),g=r(9082),y=r.n(g);function v(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="number"==typeof t?t:0,e="object"==typeof t?t:{};return{top:e.top||n,bottom:e.bottom||n,left:e.left||n,right:e.right||n}}function b(t,n){return M(t)?t(n):t}function x(t){return"number"==typeof t?t*(Math.PI/180):t}function w(t){const{width:n,height:e,padding:r}=t,{left:o,right:i,top:a,bottom:u}=r;return Math.min(n-o-i,e-a-u)/2}function k(t,n){return t.range&&t.range[n]?t.range[n]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t){return"x"===t.axis?[x(t.startAngle||0),x(t.endAngle||360)]:[t.innerRadius||0,w({height:t.height,width:t.width,padding:t.padding})]}({axis:n,innerRadius:t.innerRadius,startAngle:t.startAngle,endAngle:t.endAngle,height:t.height,width:t.width,padding:m(t.padding)}):"x"!==(e={axis:n,height:t.height,width:t.width,padding:m(t.padding)}).axis?[e.height-e.padding.bottom,e.padding.top]:[e.padding.left,e.width-e.padding.right];var e}function M(t){return"function"==typeof t}function A(t){return M(t)?t:null==t?t=>t:h()(t)}function O(t,n,r){const o=v(t.theme&&t.theme[r]?t.theme[r]:{},["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(s().Children.toArray(r.children))}),!1);return n(s().Children.toArray(t.children))}(t),a=void 0===i?{}:{horizontal:i};return e()(a,t,o,n)}function E(t,n){return n?"x"===t?"y":"x":t}function j(t,n,e,r,o){void 0===e&&(e={}),void 0===r&&(r=[]),void 0===o&&(o=(t,n)=>t.concat(n));const i=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],a=(t,u,c)=>t.reduce(((t,r,l)=>{let f=t;const p=r.type&&r.type.role,d=r.props.name||`${p}-${u[l]}`;if(r.props&&r.props.children){const t=Object.assign({},r.props,y()(e,i)),n=r.type&&"stack"===r.type.role&&M(r.type.getChildren)?r.type.getChildren(t):s().Children.toArray(r.props.children).map((n=>{const e=Object.assign({},n.props,y()(t,i));return s().cloneElement(n,e)})),u=n.map(((t,n)=>`${d}-${n}`)),c=a(n,u,r);f=o(f,c)}else{const t=n(r,d,c);t&&(f=o(f,t))}return f}),r),c=t.filter(u.isValidElement),l=c.map(((t,n)=>n));return a(c,l)}const C={startsWith:["data-","aria-"],exactMatch:[]},D=t=>{const n={...t};return Object.fromEntries(Object.entries(n).filter((t=>{let[n]=t;return(t=>!(!(t=>{let n=!1;return C.startsWith.forEach((e=>{new RegExp(`\\b(${e})(\\w|-)+`,"g").test(t)&&(n=!0)})),n})(t)&&!(t=>C.exactMatch.includes(t))(t)))(n)})).map((n=>{let[e,r]=n;return[e,b(r,t)]})))},S=s().createContext(void 0);S.displayName="PortalContext";const F=t=>{let{children:n}=t;const[e,r]=s().useState(new Map),o=s().useCallback(((t,n)=>{r((e=>{const r=new Map(e);return r.set(t,n),r}))}),[r]),i=s().useCallback((t=>{r((n=>{const e=new Map(n);return e.delete(t),e}))}),[r]),a=s().useMemo((()=>({addChild:o,removeChild:i,children:e})),[o,i,e]);return s().createElement(S.Provider,{value:a},n)},T=t=>{let{as:n,...e}=t;const r=s().useContext(S);if(!r)return null;const o=Array.from(r.children.values());return s().cloneElement(n,e,o)};function N(){return N=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},N.apply(this,arguments)}const _={className:"VictoryContainer",portalComponent:s().createElement(p,null),portalZIndex:99,responsive:!0,role:"img"},L=t=>{const{role:n,title:e,desc:r,children:o,className:i,portalZIndex:a,portalComponent:c,width:f,height:p,style:d,tabIndex:h,responsive:g,events:y,ouiaId:v,ouiaSafe:m,ouiaType:b,dimensions:x,ariaDescribedBy:w,ariaLabelledBy:k,viewBox:A,preserveAspectRatio:O,userProps:E,titleId:j,descId:C,containerRef:S,localContainerRef:L}=function(t){const n={..._,...t},{title:e,desc:r,width:o,height:i,responsive:a}=n,s=(0,u.useRef)(null),c=(0,u.useRef)(l()("victory-container-")),f=n.containerId??c.current,p=t=>`${f}-${t}`,d=D(n),h=a?{width:"100%",height:"100%"}:{width:o,height:i},g=a?`0 0 ${o} ${i}`:void 0,y=a?n.preserveAspectRatio:void 0,v=[e&&p("title"),n["aria-labelledby"]].filter(Boolean).join(" ")||void 0,m=[r&&p("desc"),n["aria-describedby"]].filter(Boolean).join(" ")||void 0,b=p("title"),x=p("desc");return{...n,titleId:b,descId:x,dimensions:h,viewBox:g,preserveAspectRatio:y,ariaLabelledBy:v,ariaDescribedBy:m,userProps:d,localContainerRef:s}}(t);return s().useEffect((()=>{if(!y?.onWheel)return;const t=t=>t.preventDefault(),n=L?.current;return n?.addEventListener("wheel",t),()=>{n?.removeEventListener("wheel",t)}}),[]),s().createElement("div",{className:i,style:{...d,width:g?d?.width:x.width,height:g?d?.height:x.height,pointerEvents:d?.pointerEvents??"none",touchAction:d?.touchAction??"none",position:d?.position??"relative"},"data-ouia-component-id":v,"data-ouia-component-type":b,"data-ouia-safe":m,ref:($=[L,S],t=>{$.forEach((n=>{M(n)?n(t):null!=n&&(n.current=t)}))})},s().createElement(F,null,s().createElement("svg",N({width:f,height:p,tabIndex:h,role:n,"aria-labelledby":k,"aria-describedby":w,viewBox:A,preserveAspectRatio:O,style:{...x,pointerEvents:"all"}},E,y),e?s().createElement("title",{id:j},e):null,r?s().createElement("desc",{id:C},r):null,o),s().createElement("div",{style:{...x,zIndex:a,position:"absolute",top:0,left:0}},s().createElement(T,{as:c,width:f,height:p,viewBox:A,preserveAspectRatio:O,style:{...x,overflow:"visible"}}))));var $};L.role="container";const $=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],U="#252525",W="#969696",B={width:450,height:300,padding:50,colorScale:$},P={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:U,stroke:"transparent"},q=Object.assign({textAnchor:"middle"},P),z={palette:{colors:{blue:"#4F7DA1",pink:"#E2A37F",teal:"#00796B",purple:"#DF948A",green:"#8BC34A",orange:"#F4511E",cyan:"#006064",red:"#DF5A49",yellow:"#FFF59D"},grayscale:$,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:U},labels:P}},B),axis:Object.assign({style:{axis:{fill:"transparent",stroke:U,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},q,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:P}},B),bar:Object.assign({style:{data:{fill:U,padding:8,strokeWidth:0},labels:P}},B),boxplot:Object.assign({style:{max:{padding:8,stroke:U,strokeWidth:1},maxLabels:Object.assign({},P,{padding:3}),median:{padding:8,stroke:U,strokeWidth:1},medianLabels:Object.assign({},P,{padding:3}),min:{padding:8,stroke:U,strokeWidth:1},minLabels:Object.assign({},P,{padding:3}),q1:{padding:8,fill:W},q1Labels:Object.assign({},P,{padding:3}),q3:{padding:8,fill:W},q3Labels:Object.assign({},P,{padding:3})},boxWidth:20},B),candlestick:Object.assign({style:{data:{stroke:U,strokeWidth:1},labels:Object.assign({},P,{padding:5})},candleColors:{positive:"#ffffff",negative:U}},B),chart:B,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:U,strokeWidth:2},labels:P}},B),group:Object.assign({colorScale:$},B),histogram:Object.assign({style:{data:{fill:W,stroke:U,strokeWidth:2},labels:P}},B),legend:{colorScale:$,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:P,title:Object.assign({},P,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:U,strokeWidth:2},labels:P}},B),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},P,{padding:20})},colorScale:$,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:U,stroke:"transparent",strokeWidth:0},labels:P}},B),stack:Object.assign({colorScale:$},B),tooltip:{style:Object.assign({},P,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:U,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({},P,{padding:5,pointerEvents:"none"}),flyout:{stroke:U,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},B)},R="#FFF59D",H="#F4511E",Y="#8BC34A",I="#00796B",G="#006064",K=[H,R,"#DCE775",Y,I,G],V="#ECEFF1",Z="#90A4AE",Q="#455A64",X="#212121",J={blue:"#4F7DA1",pink:"#E2A37F",teal:I,purple:"#DF948A",green:Y,orange:H,cyan:G,red:"#DF5A49",yellow:R},tt=[V,Z,Q,X],nt={width:350,height:350,padding:50},et={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:Q,stroke:"transparent",strokeWidth:0},rt=Object.assign({textAnchor:"middle"},et),ot="round",it="round",at={palette:{colors:J,grayscale:tt,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:X},labels:et}},nt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Z,strokeWidth:2,strokeLinecap:ot,strokeLinejoin:it},axisLabel:Object.assign({},rt,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:V,strokeDasharray:"10, 5",strokeLinecap:ot,strokeLinejoin:it,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Z,strokeWidth:1,strokeLinecap:ot,strokeLinejoin:it},tickLabels:Object.assign({},et,{fill:Q})}},nt),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:Q,padding:8,strokeWidth:0},labels:et}},nt),boxplot:Object.assign({style:{max:{padding:8,stroke:Q,strokeWidth:1},maxLabels:Object.assign({},et,{padding:3}),median:{padding:8,stroke:Q,strokeWidth:1},medianLabels:Object.assign({},et,{padding:3}),min:{padding:8,stroke:Q,strokeWidth:1},minLabels:Object.assign({},et,{padding:3}),q1:{padding:8,fill:Q},q1Labels:Object.assign({},et,{padding:3}),q3:{padding:8,fill:Q},q3Labels:Object.assign({},et,{padding:3})},boxWidth:20},nt),candlestick:Object.assign({style:{data:{stroke:Q},labels:Object.assign({},et,{padding:5})},candleColors:{positive:"#ffffff",negative:Q}},nt),chart:nt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Q,strokeWidth:2},labels:et}},nt),group:Object.assign({colorScale:K},nt),histogram:Object.assign({style:{data:{fill:Q,stroke:X,strokeWidth:2},labels:et}},nt),legend:{colorScale:K,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:et,title:Object.assign({},et,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:Q,strokeWidth:2},labels:et}},nt),pie:Object.assign({colorScale:K,style:{data:{padding:8,stroke:V,strokeWidth:1},labels:Object.assign({},et,{padding:20})}},nt),scatter:Object.assign({style:{data:{fill:Q,opacity:1,stroke:"transparent",strokeWidth:0},labels:et}},nt),stack:Object.assign({colorScale:K},nt),tooltip:{style:Object.assign({},et,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:X,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({},et,{padding:5,pointerEvents:"none"}),flyout:{stroke:X,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},nt)},ut="#FFFFFF",st="#F2F2F2",ct="#E0E0E0",lt="#D1D1D1",ft="#757575",pt="#424242",dt="#292929",ht="#FCB400",gt="#FF6F2C",yt={100:"#FFDCE5",300:"#FF9EB7",500:"#F82B60",700:"#D31A3D",900:"#BA1E45"},vt="#8B46FF",mt={100:"#CFDFFF",300:"#9CC7FF",500:"#2D7FF9",700:"#0056B3",900:"#2750AE"},bt="#18BFFF",xt="#20D9D2",wt={100:"#D1F7C4",300:"#93E088",500:"#20C933",700:"#1B9B2A",900:"#338A17"},kt={blue:mt[500],cyan:bt,green:wt[500],yellow:ht,orange:gt,red:yt[500],purple:vt,teal:xt},Mt=Object.values(kt),At=[st,ct,ft,pt,dt],Ot=["#FFD66E",ht,gt,"#D74D26",yt[500]],Et=[vt,mt[500],bt,xt,wt[500]],jt=[wt[900],wt[500],ht,gt,yt[500]],Ct=Object.values(yt),Dt=Object.values(wt),St=Object.values(mt),Ft=mt[500],Tt={width:450,height:300,padding:60,colorScale:Mt},Nt={fontFamily:"'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif",fontSize:12,fontWeight:300,letterSpacing:"normal",padding:8,fill:dt,stroke:"transparent"},_t=Object.assign({textAnchor:"middle"},Nt),Lt="10, 5",$t="round",Ut="round",Wt={grayscale:z,material:at,clean:{palette:{colors:kt,grayscale:At,qualitative:Mt,heatmap:jt,warm:Ot,cool:Et,red:Ct,green:Dt,blue:St},area:Object.assign({style:{data:{fill:Ft,strokeWidth:2,fillOpacity:.5},labels:Nt}},Tt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:ft,strokeWidth:1,strokeLinecap:$t,strokeLinejoin:Ut},axisLabel:Object.assign({},_t,{padding:35,stroke:"transparent"}),grid:{fill:"none",stroke:"none",painterEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"transparent"},tickLabels:Nt}},Tt),polarAxis:Object.assign({style:{axis:{stroke:ft},grid:{stroke:lt,strokeDasharray:Lt,strokeLinecap:$t,strokeLinejoin:Ut,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:lt,strokeWidth:1,strokeLinecap:$t,strokeLinejoin:Ut},tickLabels:Nt}}),polarDependentAxis:Object.assign({style:{axis:{stroke:ft},grid:{stroke:lt,strokeDasharray:Lt,strokeLinecap:$t,strokeLinejoin:Ut,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:ct,strokeWidth:1,strokeLinecap:$t,strokeLinejoin:Ut},tickLabels:Nt}}),bar:Object.assign({style:{data:{fill:Ft,padding:8,strokeWidth:1,fillOpacity:.5},labels:Nt},cornerRadius:{top:1}},Tt),boxplot:Object.assign({style:{max:{padding:8,stroke:lt,strokeWidth:2},maxLabels:Object.assign({},Nt,{padding:3}),median:{padding:8,stroke:ut,strokeWidth:2},medianLabels:Object.assign({},Nt,{padding:3}),min:{padding:8,stroke:lt,strokeWidth:2},minLabels:Object.assign({},Nt,{padding:3}),q1:{padding:8,fill:Mt[0],rx:1,strokeWidth:2},q1Labels:Object.assign({},Nt,{padding:3}),q3:{padding:8,fill:Mt[1],rx:1},q3Labels:Object.assign({},Nt,{padding:3})},boxWidth:20},Tt),candlestick:Object.assign({style:{data:{stroke:ct,strokeWidth:0,rx:1},labels:Object.assign({},Nt,{padding:5})},candleColors:{positive:wt[500],negative:yt[500]},wickStrokeWidth:2},Tt),chart:Tt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:pt,strokeWidth:2,strokeLinecap:$t},labels:Nt}},Tt),group:Object.assign({colorScale:Mt},Tt),histogram:Object.assign({style:{data:{fill:bt,fillOpacity:.5},labels:Nt},binSpacing:4,cornerRadius:{top:1}},Tt),label:Nt,legend:{colorScale:Mt,gutter:24,borderPadding:10,orientation:"horizontal",titleOrientation:"top",centerTitle:!0,style:{data:{type:"circle"},labels:{...Nt,fontSize:12},title:Object.assign({},Nt,{padding:8,fontSize:16}),border:{stroke:"#E8E8E8",strokeWidth:2,padding:16}}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:Ft,strokeWidth:2,strokeLinecap:$t,strokeLinejoin:Ut},labels:Nt}},Tt),pie:Object.assign({style:{parent:{backgroundColor:ut},data:{padding:8,stroke:ut,strokeWidth:1},labels:{...Nt,padding:20,fill:"#5C5C5C",fontSize:10}},colorScale:Mt,cornerRadius:1},Tt),scatter:Object.assign({style:{data:{fill:Ft,opacity:1,stroke:"transparent",strokeWidth:0},labels:{...Nt,padding:20}}},Tt),stack:Object.assign({colorScale:Mt},Tt),tooltip:{style:Object.assign({},Nt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:ct,strokeWidth:2,fill:ut,pointerEvents:"none"},flyoutPadding:{top:8,bottom:8,left:16,right:16},cornerRadius:1,pointerLength:4},voronoi:Object.assign({style:{data:{fill:mt[100],stroke:Ft,strokeWidth:2},labels:Object.assign({},Nt,{padding:5,pointerEvents:"none"}),flyout:{stroke:dt,strokeWidth:1,fill:st,pointerEvents:"none"},padding:{left:2,bottom:2}}},Tt)}};function Bt(t){return Array.isArray(t)&&t.some((t=>t instanceof Date))}function Pt(t,n){return t&&n?t.filter((t=>!n.includes(t))):[]}function qt(t){return function(t){return Array.isArray(t)&&t.length>0}(t)&&t.every(Array.isArray)}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 o=t.concat(e);return Bt(o)?new Date(Math.max(...o)):Math.max(...o)}function Rt(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 o=t.concat(e);return Bt(o)?new Date(Math.min(...o)):Math.min(...o)}var Ht=r(5346),Yt=r.n(Ht);function It(t,n){return(t.key||n).toString()}function Gt(t){return t.reduce(((t,n,e)=>(t[It(n,e)]=n,t)),{})}function Kt(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 Zt(t,n){let e=!1,r=!1;const o=(t,n)=>t.map(((i,a)=>i&&i.props&&i.props.children&&n[a]?o(s().Children.toArray(t[a].props.children),s().Children.toArray(n[a].props.children)):((t,n)=>{if(!n||t.type!==n.type)return{};const{entering:o,exiting:i}=function(t,n){const e=t&&Gt(t),r=n&&Gt(n);return{entering:e&&Kt(r,e),exiting:r&&Kt(e,r)}}(Vt(t),Vt(n))||{};return e=e||!!i,r=r||!!o,{entering:o||!1,exiting:i||!1}})(i,n[a]))),i=o(s().Children.toArray(t),s().Children.toArray(n));return{nodesWillExit:e,nodesWillEnter:r,childrenTransitions:i,nodesShouldEnter:!1}}function Qt(t,n,r){const o=n&&n.nodesWillExit,i=n&&n.nodesWillEnter,a=n&&n.nodesShouldEnter,u=n&&n.nodesShouldLoad,s=n&&n.nodesDoneLoad,c=n&&n.childrenTransitions||[],l={enter:t.animate&&t.animate.onEnter&&t.animate.onEnter.duration,exit:t.animate&&t.animate.onExit&&t.animate.onExit.duration,load:t.animate&&t.animate.onLoad&&t.animate.onLoad.duration,move:t.animate&&t.animate.duration},f=(t,n,e)=>u?function(t,n,e){const o=Object.assign({},t,{onEnd:()=>{r({nodesShouldLoad:!1,nodesDoneLoad:!0})}});let i=n;if(o&&o.onLoad&&!o.onLoad.duration)return{animate:t,data:n};const a=t.onLoad&&t.onLoad.after?t.onLoad.after:Yt();return i=n.map(((t,e)=>Object.assign({},t,a(t,e,n)))),{animate:o,data:i}}(e,n):function(t,n,e,o){const i=Object.assign({},t,{onEnd:()=>{r({nodesDoneLoad:!0})}});if(i&&i.onLoad&&!i.onLoad.duration)return{animate:i,data:e};const a=i.onLoad&&i.onLoad.before?i.onLoad.before:Yt();return{animate:i,data:e.map(((t,n)=>Object.assign({},t,a(t,n,e)))),clipWidth:0}}(e,0,n),p=(t,n,e,o)=>function(t,n,e,o,i){const a=t&&t.onExit,u=Object.assign({},t,a);let s=e;if(o){t.onEnd=()=>{r({nodesWillExit:!1})};const n=t.onExit&&t.onExit.before?t.onExit.before:Yt();s=e.map(((t,r)=>{const i=(t.key||r).toString();return o[i]?Object.assign({},t,n(t,r,e)):t}))}return{animate:u,data:s}}(o,0,e,t),d=(t,n,e,o)=>a?function(t,n,e,o){const i=t&&t.onEnter,a=Object.assign({},t,i);let u=n;if(e){a.onEnd=()=>{r({nodesWillEnter:!1})};const t=a.onEnter&&a.onEnter.after?a.onEnter.after:Yt();u=n.map(((r,o)=>{const i=It(r,o);return e[i]?Object.assign({},r,t(r,o,n)):r}))}return{animate:a,data:u}}(o,e,t):function(t,n,e,o,i){let a=t,u=e;if(o){a=Object.assign({},t,{onEnd:()=>{r({nodesShouldEnter:!0})}});const n=t.onEnter&&t.onEnter.before?t.onEnter.before:Yt();u=e.map(((t,r)=>{const i=(t.key||r).toString();return o[i]?Object.assign({},t,n(t,r,e)):t}))}return{animate:a,data:u}}(o,0,e,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(r,u){const g=Vt(r)||[],y=e()({},t.animate,r.props.animate),v=r.props.polar&&r.type.defaultPolarTransitions||r.type.defaultTransitions;y.onExit=e()({},y.onExit,v&&v.onExit),y.onEnter=e()({},y.onEnter,v&&v.onEnter),y.onLoad=e()({},y.onLoad,v&&v.onLoad);const m=c[u]||c[0];if(!s){const t={duration:void 0!==l.load?l.load:h(r,"onLoad")};return f(0,g,Object.assign({},y,t))}if(o){const t=m&&m.exiting,n=void 0!==l.exit?l.exit:h(r,"onExit"),e=t?{duration:n}:{delay:n};return p(t,0,g,Object.assign({},y,e))}if(i){const t=m&&m.entering,n=void 0!==l.enter?l.enter:h(r,"onEnter"),e=void 0!==l.move?l.move:r.props.animate&&r.props.animate.duration,o={duration:a&&t?n:e};return d(t,0,g,Object.assign({},y,o))}return!n&&y&&y.onExit?function(t,n){const e=t.onEnter&&t.onEnter.after?t.onEnter.after:Yt();return{data:n.map(((t,r)=>Object.assign({},t,e(t,r,n))))}}(y,g):{animate:y,data:g}}}const Xt={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0};var Jt=r(9602),tn=r.n(Jt),nn=r(9056),en=r.n(nn),rn=r(8961),on=r.n(rn),an=(r(7709),r(4143)),un=r.n(an);function sn(t){return t}function cn(t,n){return function(t,e){const r=(t=>t.type.getAxis(t.props)===n)||sn,o=t=>t.reduce(((t,n)=>n.type&&"axis"===n.type.role&&r(n)?t.concat(n):n.props&&n.props.children?t.concat(o(s().Children.toArray(n.props.children))):t),[]);return o(t)}(t)[0]}var ln=r(8254),fn=r.n(ln),pn=r(3849),dn=r.n(pn),hn=(r(8999),r(1616)),gn=r.n(hn);function yn(t,n,e){t=+t,n=+n,e=(o=arguments.length)<2?(n=t,t=0,1):o<3?1:+e;for(var r=-1,o=0|Math.max(0,Math.ceil((n-t)/e)),i=new Array(o);++r<o;)i[r]=t+r*e;return i}function vn(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function mn(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 bn extends Map{constructor(t,n=wn){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(xn(this,t))}has(t){return super.has(xn(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 xn({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function wn(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const kn=Symbol("implicit");function Mn(){var t=new bn,n=[],e=[],r=kn;function o(o){let i=t.get(o);if(void 0===i){if(r!==kn)return r;t.set(o,i=n.push(o)-1)}return e[i%e.length]}return o.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new bn;for(const r of e)t.has(r)||t.set(r,n.push(r)-1);return o},o.range=function(t){return arguments.length?(e=Array.from(t),o):e.slice()},o.unknown=function(t){return arguments.length?(r=t,o):r},o.copy=function(){return Mn(n,e).unknown(r)},vn.apply(o,arguments),o}function An(){var t,n,e=Mn().unknown(void 0),r=e.domain,o=e.range,i=0,a=1,u=!1,s=0,c=0,l=.5;function f(){var e=r().length,f=a<i,p=f?a:i,d=f?i:a;t=(d-p)/Math.max(1,e-s+2*c),u&&(t=Math.floor(t)),p+=(d-p-t*(e-s))*l,n=t*(1-s),u&&(p=Math.round(p),n=Math.round(n));var h=yn(e).map((function(n){return p+t*n}));return o(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?([i,a]=t,i=+i,a=+a,f()):[i,a]},e.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,u=!0,f()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(u=!!t,f()):u},e.padding=function(t){return arguments.length?(s=Math.min(1,c=+t),f()):s},e.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),f()):s},e.paddingOuter=function(t){return arguments.length?(c=+t,f()):c},e.align=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),f()):l},e.copy=function(){return An(r(),[i,a]).round(u).paddingInner(s).paddingOuter(c).align(l)},vn.apply(f(),arguments)}function On(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return On(n())},t}function En(){return On(An.apply(null,arguments).paddingInner(1))}var jn=Math.sqrt(50),Cn=Math.sqrt(10),Dn=Math.sqrt(2);function Sn(t,n,e){var r,o,i,a,u=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(o=t,t=n,n=o),0===(a=Fn(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,i=new Array(o=r-e+1);++u<o;)i[u]=(e+u)*a}else{a=-a;let e=Math.round(t*a),r=Math.round(n*a);for(e/a<t&&++e,r/a>n&&--r,i=new Array(o=r-e+1);++u<o;)i[u]=(e+u)/a}return r&&i.reverse(),i}function Fn(t,n,e){var r=(n-t)/Math.max(0,e),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=jn?10:i>=Cn?5:i>=Dn?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=jn?10:i>=Cn?5:i>=Dn?2:1)}function Tn(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=jn?o*=10:i>=Cn?o*=5:i>=Dn&&(o*=2),n<t?-o:o}function Nn(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function _n(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function Ln(t){let n,e,r;function o(t,r,o=0,i=t.length){if(o<i){if(0!==n(r,r))return i;do{const n=o+i>>>1;e(t[n],r)<0?o=n+1:i=n}while(o<i)}return o}return 2!==t.length?(n=Nn,e=(n,e)=>Nn(t(n),e),r=(n,e)=>t(n)-e):(n=t===Nn||t===_n?t:$n,e=t,r=t),{left:o,center:function(t,n,e=0,i=t.length){const a=o(t,n,e,i-1);return a>e&&r(t[a-1],n)>-r(t[a],n)?a-1:a},right:function(t,r,o=0,i=t.length){if(o<i){if(0!==n(r,r))return i;do{const n=o+i>>>1;e(t[n],r)<=0?o=n+1:i=n}while(o<i)}return o}}}function $n(){return 0}function Un(t){return null===t?NaN:+t}const Wn=Ln(Nn),Bn=Wn.right;Wn.left,Ln(Un).center;var Pn=Bn;function qn(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 Rn(){}var Hn=.7,Yn=1/Hn,In="\\s*([+-]?\\d+)\\s*",Gn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Kn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vn=/^#([0-9a-f]{3,8})$/,Zn=new RegExp(`^rgb\\(${In},${In},${In}\\)$`),Qn=new RegExp(`^rgb\\(${Kn},${Kn},${Kn}\\)$`),Xn=new RegExp(`^rgba\\(${In},${In},${In},${Gn}\\)$`),Jn=new RegExp(`^rgba\\(${Kn},${Kn},${Kn},${Gn}\\)$`),te=new RegExp(`^hsl\\(${Gn},${Kn},${Kn}\\)$`),ne=new RegExp(`^hsla\\(${Gn},${Kn},${Kn},${Gn}\\)$`),ee={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 re(){return this.rgb().formatHex()}function oe(){return this.rgb().formatRgb()}function ie(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=Vn.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?ae(n):3===e?new le(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?ue(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?ue(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=Zn.exec(t))?new le(n[1],n[2],n[3],1):(n=Qn.exec(t))?new le(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Xn.exec(t))?ue(n[1],n[2],n[3],n[4]):(n=Jn.exec(t))?ue(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=te.exec(t))?ye(n[1],n[2]/100,n[3]/100,1):(n=ne.exec(t))?ye(n[1],n[2]/100,n[3]/100,n[4]):ee.hasOwnProperty(t)?ae(ee[t]):"transparent"===t?new le(NaN,NaN,NaN,0):null}function ae(t){return new le(t>>16&255,t>>8&255,255&t,1)}function ue(t,n,e,r){return r<=0&&(t=n=e=NaN),new le(t,n,e,r)}function se(t){return t instanceof Rn||(t=ie(t)),t?new le((t=t.rgb()).r,t.g,t.b,t.opacity):new le}function ce(t,n,e,r){return 1===arguments.length?se(t):new le(t,n,e,null==r?1:r)}function le(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function fe(){return`#${ge(this.r)}${ge(this.g)}${ge(this.b)}`}function pe(){const t=de(this.opacity);return`${1===t?"rgb(":"rgba("}${he(this.r)}, ${he(this.g)}, ${he(this.b)}${1===t?")":`, ${t})`}`}function de(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function he(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ge(t){return((t=he(t))<16?"0":"")+t.toString(16)}function ye(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new me(t,n,e,r)}function ve(t){if(t instanceof me)return new me(t.h,t.s,t.l,t.opacity);if(t instanceof Rn||(t=ie(t)),!t)return new me;if(t instanceof me)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,o=Math.min(n,e,r),i=Math.max(n,e,r),a=NaN,u=i-o,s=(i+o)/2;return u?(a=n===i?(e-r)/u+6*(e<r):e===i?(r-n)/u+2:(n-e)/u+4,u/=s<.5?i+o:2-i-o,a*=60):u=s>0&&s<1?0:a,new me(a,u,s,t.opacity)}function me(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function be(t){return(t=(t||0)%360)<0?t+360:t}function xe(t){return Math.max(0,Math.min(1,t||0))}function we(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 ke(t,n,e,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*n+(4-6*i+3*a)*e+(1+3*t+3*i-3*a)*r+a*o)/6}qn(Rn,ie,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:re,formatHex:re,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ve(this).formatHsl()},formatRgb:oe,toString:oe}),qn(le,ce,zn(Rn,{brighter(t){return t=null==t?Yn:Math.pow(Yn,t),new le(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Hn:Math.pow(Hn,t),new le(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new le(he(this.r),he(this.g),he(this.b),de(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:fe,formatHex:fe,formatHex8:function(){return`#${ge(this.r)}${ge(this.g)}${ge(this.b)}${ge(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:pe,toString:pe})),qn(me,(function(t,n,e,r){return 1===arguments.length?ve(t):new me(t,n,e,null==r?1:r)}),zn(Rn,{brighter(t){return t=null==t?Yn:Math.pow(Yn,t),new me(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Hn:Math.pow(Hn,t),new me(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,o=2*e-r;return new le(we(t>=240?t-240:t+120,o,r),we(t,o,r),we(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new me(be(this.h),xe(this.s),xe(this.l),de(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=de(this.opacity);return`${1===t?"hsl(":"hsla("}${be(this.h)}, ${100*xe(this.s)}%, ${100*xe(this.l)}%${1===t?")":`, ${t})`}`}}));var Me=t=>()=>t;function Ae(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):Me(isNaN(t)?n:t)}var Oe=function t(n){var e=function(t){return 1==(t=+t)?Ae: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):Me(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=ce(t)).r,(n=ce(n)).r),o=e(t.g,n.g),i=e(t.b,n.b),a=Ae(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=o(n),t.b=i(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function Ee(t){return function(n){var e,r,o=n.length,i=new Array(o),a=new Array(o),u=new Array(o);for(e=0;e<o;++e)r=ce(n[e]),i[e]=r.r||0,a[e]=r.g||0,u[e]=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 je(t,n){var e,r=n?n.length:0,o=t?Math.min(r,t.length):0,i=new Array(o),a=new Array(r);for(e=0;e<o;++e)i[e]=Le(t[e],n[e]);for(;e<r;++e)a[e]=n[e];return function(t){for(e=0;e<o;++e)a[e]=i[e](t);return a}}function Ce(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function De(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function Se(t,n){var e,r={},o={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=Le(t[e],n[e]):o[e]=n[e];return function(t){for(e in r)o[e]=r[e](t);return o}}Ee((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),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,u=r<n-1?t[r+2]:2*i-o;return ke((e-r/n)*n,a,o,i,u)}})),Ee((function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),o=t[(r+n-1)%n],i=t[r%n],a=t[(r+1)%n],u=t[(r+2)%n];return ke((e-r/n)*n,o,i,a,u)}}));var Fe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Te=new RegExp(Fe.source,"g");function Ne(t,n){var e,r,o,i=Fe.lastIndex=Te.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(e=Fe.exec(t))&&(r=Te.exec(n));)(o=r.index)>i&&(o=n.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:De(e,r)})),i=Te.lastIndex;return i<n.length&&(o=n.slice(i),u[a]?u[a]+=o:u[++a]=o),u.length<2?s[0]?function(t){return function(n){return t(n)+""}}(s[0].x):function(t){return function(){return t}}(n):(n=s.length,function(t){for(var e,r=0;r<n;++r)u[(e=s[r]).i]=e.x(t);return u.join("")})}function _e(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,o=n.slice();return function(i){for(e=0;e<r;++e)o[e]=t[e]*(1-i)+n[e]*i;return o}}function Le(t,n){var e,r,o=typeof n;return null==n||"boolean"===o?Me(n):("number"===o?De:"string"===o?(e=ie(n))?(n=e,Oe):Ne:n instanceof ie?Oe:n instanceof Date?Ce:(r=n,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(n)?je:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?Se:De:_e))(t,n)}function $e(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function Ue(t){return+t}var We=[0,1];function Be(t){return t}function Pe(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function qe(t,n,e){var r=t[0],o=t[1],i=n[0],a=n[1];return o<r?(r=Pe(o,r),i=e(a,i)):(r=Pe(r,o),i=e(i,a)),function(t){return i(r(t))}}function ze(t,n,e){var r=Math.min(t.length,n.length)-1,o=new Array(r),i=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<r;)o[a]=Pe(t[a],t[a+1]),i[a]=e(n[a],n[a+1]);return function(n){var e=Pn(t,n,1,r)-1;return i[e](o[e](n))}}function Re(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function He(){var t,n,e,r,o,i,a=We,u=We,s=Le,c=Be;function l(){var t,n,e,s=Math.min(a.length,u.length);return c!==Be&&(t=a[0],n=a[s-1],t>n&&(e=t,t=n,n=e),c=function(e){return Math.max(t,Math.min(n,e))}),r=s>2?ze:qe,o=i=null,f}function f(n){return null==n||isNaN(n=+n)?e:(o||(o=r(a.map(t),u,s)))(t(c(n)))}return f.invert=function(e){return c(n((i||(i=r(u,a.map(t),De)))(e)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Ue),l()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),l()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),s=$e,l()},f.clamp=function(t){return arguments.length?(c=!!t||Be,l()):c!==Be},f.interpolate=function(t){return arguments.length?(s=t,l()):s},f.unknown=function(t){return arguments.length?(e=t,f):e},function(e,r){return t=e,n=r,l()}}function Ye(){return He()(Be,Be)}var Ie,Ge=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ke(t){if(!(n=Ge.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 Ze(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 Qe(t){return(t=Ze(Math.abs(t)))?t[1]:NaN}function Xe(t,n){var e=Ze(t,n);if(!e)return t+"";var r=e[0],o=e[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")}Ke.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 Je={"%":(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)=>Xe(100*t,n),r:Xe,s:function(t,n){var e=Ze(t,n);if(!e)return t+"";var r=e[0],o=e[1],i=o-(Ie=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")+Ze(t,Math.max(0,n+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function tr(t){return t}var nr,er,rr,or=Array.prototype.map,ir=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ar(t,n,e,r){var o,i=Tn(t,n,e);switch((r=Ke(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(o=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Qe(n)/3)))-Qe(Math.abs(t)))}(i,a))||(r.precision=o),rr(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Qe(n)-Qe(t))+1}(i,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(t){return Math.max(0,-Qe(Math.abs(t)))}(i))||(r.precision=o-2*("%"===r.type))}return er(r)}function ur(t){var n=t.domain;return t.ticks=function(t){var e=n();return Sn(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return ar(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,o,i=n(),a=0,u=i.length-1,s=i[a],c=i[u],l=10;for(c<s&&(o=s,s=c,c=o,o=a,a=u,u=o);l-- >0;){if((o=Fn(s,c,e))===r)return i[a]=s,i[u]=c,n(i);if(o>0)s=Math.floor(s/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;s=Math.ceil(s*o)/o,c=Math.floor(c*o)/o}r=o}return t},t}function sr(){var t=Ye();return t.copy=function(){return Re(t,sr())},vn.apply(t,arguments),ur(t)}function cr(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,Ue),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return cr(t).unknown(n)},t=arguments.length?Array.from(t,Ue):[0,1],ur(e)}function lr(t,n){var e,r=0,o=(t=t.slice()).length-1,i=t[r],a=t[o];return a<i&&(e=r,r=o,o=e,e=i,i=a,a=e),t[r]=n.floor(i),t[o]=n.ceil(a),t}function fr(t){return Math.log(t)}function pr(t){return Math.exp(t)}function dr(t){return-Math.log(-t)}function hr(t){return-Math.exp(-t)}function gr(t){return isFinite(t)?+("1e"+t):t<0?0:t}function yr(t){return(n,e)=>-t(-n,e)}function vr(t){const n=t(fr,pr),e=n.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),n=>Math.log(n)/t)}(i),o=function(t){return 10===t?gr:t===Math.E?Math.exp:n=>Math.pow(t,n)}(i),e()[0]<0?(r=yr(r),o=yr(o),t(dr,hr)):t(fr,pr),n}return n.base=function(t){return arguments.length?(i=+t,a()):i},n.domain=function(t){return arguments.length?(e(t),a()):e()},n.ticks=t=>{const n=e();let a=n[0],u=n[n.length-1];const s=u<a;s&&([a,u]=[u,a]);let c,l,f=r(a),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(c=1;c<i;++c)if(l=f<0?c/o(-f):c*o(f),!(l<a)){if(l>u)break;h.push(l)}}else for(;f<=p;++f)for(c=i-1;c>=1;--c)if(l=f>0?c/o(-f):c*o(f),!(l<a)){if(l>u)break;h.push(l)}2*h.length<d&&(h=Sn(a,u,d))}else h=Sn(f,p,Math.min(p-f,d)).map(o);return s?h.reverse():h},n.tickFormat=(t,e)=>{if(null==t&&(t=10),null==e&&(e=10===i?"s":","),"function"!=typeof e&&(i%1||null!=(e=Ke(e)).precision||(e.trim=!0),e=er(e)),t===1/0)return e;const a=Math.max(1,i*t/n.ticks().length);return t=>{let n=t/o(Math.round(r(t)));return n*i<i-.5&&(n*=i),n<=a?e(t):""}},n.nice=()=>e(lr(e(),{floor:t=>o(Math.floor(r(t))),ceil:t=>o(Math.ceil(r(t)))})),n}function mr(){const t=vr(He()).domain([1,10]);return t.copy=()=>Re(t,mr()).base(t.base()),vn.apply(t,arguments),t}function br(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function xr(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function wr(t){var n=1,e=t(br(n),xr(n));return e.constant=function(e){return arguments.length?t(br(n=+e),xr(n)):n},ur(e)}function kr(){var t=wr(He());return t.copy=function(){return Re(t,kr()).constant(t.constant())},vn.apply(t,arguments)}function Mr(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Ar(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Or(t){return t<0?-t*t:t*t}function Er(t){var n=t(Be,Be),e=1;function r(){return 1===e?t(Be,Be):.5===e?t(Ar,Or):t(Mr(e),Mr(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},ur(n)}function jr(){var t=Er(He());return t.copy=function(){return Re(t,jr()).exponent(t.exponent())},vn.apply(t,arguments),t}function Cr(){return jr.apply(null,arguments).exponent(.5)}function Dr(t){return Math.sign(t)*t*t}function Sr(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function Fr(){var t,n=Ye(),e=[0,1],r=!1;function o(e){var o=Sr(n(e));return isNaN(o)?t:r?Math.round(o):o}return o.invert=function(t){return n.invert(Dr(t))},o.domain=function(t){return arguments.length?(n.domain(t),o):n.domain()},o.range=function(t){return arguments.length?(n.range((e=Array.from(t,Ue)).map(Dr)),o):e.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?(n.clamp(t),o):n.clamp()},o.unknown=function(n){return arguments.length?(t=n,o):t},o.copy=function(){return Fr(n.domain(),e).round(r).clamp(n.clamp()).unknown(t)},vn.apply(o,arguments),ur(o)}function Tr(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 o of t)null!=(o=n(o,++r,t))&&(e<o||void 0===e&&o>=o)&&(e=o)}return e}function Nr(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 o of t)null!=(o=n(o,++r,t))&&(e>o||void 0===e&&o>=o)&&(e=o)}return e}function _r(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function Lr(t,n,e=0,r=t.length-1,o){for(o=void 0===o?_r:function(t=Nn){if(t===Nn)return _r;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))}}(o);r>e;){if(r-e>600){const i=r-e+1,a=n-e+1,u=Math.log(i),s=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*s*(i-s)/i)*(a-i/2<0?-1:1);Lr(t,n,Math.max(e,Math.floor(n-a*s/i+c)),Math.min(r,Math.floor(n+(i-a)*s/i+c)),o)}const i=t[n];let a=e,u=r;for($r(t,e,n),o(t[r],i)>0&&$r(t,e,r);a<u;){for($r(t,a,u),++a,--u;o(t[a],i)<0;)++a;for(;o(t[u],i)>0;)--u}0===o(t[e],i)?$r(t,e,u):(++u,$r(t,u,r)),u<=n&&(e=u+1),n<=u&&(r=u-1)}return t}function $r(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function Ur(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 Nr(t);if(n>=1)return Tr(t);var r,o=(r-1)*n,i=Math.floor(o),a=Tr(Lr(t,i).subarray(0,i+1));return a+(Nr(t.subarray(i+1))-a)*(o-i)}}function Wr(t,n,e=Un){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,o=(r-1)*n,i=Math.floor(o),a=+e(t[i],i,t);return a+(+e(t[i+1],i+1,t)-a)*(o-i)}}function Br(){var t,n=[],e=[],r=[];function o(){var t=0,o=Math.max(1,e.length);for(r=new Array(o-1);++t<o;)r[t-1]=Wr(n,t/o);return i}function i(n){return null==n||isNaN(n=+n)?t:e[Pn(r,n)]}return i.invertExtent=function(t){var o=e.indexOf(t);return o<0?[NaN,NaN]:[o>0?r[o-1]:n[0],o<r.length?r[o]:n[n.length-1]]},i.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(Nn),o()},i.range=function(t){return arguments.length?(e=Array.from(t),o()):e.slice()},i.unknown=function(n){return arguments.length?(t=n,i):t},i.quantiles=function(){return r.slice()},i.copy=function(){return Br().domain(n).range(e).unknown(t)},vn.apply(i,arguments)}function Pr(){var t,n=0,e=1,r=1,o=[.5],i=[0,1];function a(n){return null!=n&&n<=n?i[Pn(o,n,0,r)]:t}function u(){var t=-1;for(o=new Array(r);++t<r;)o[t]=((t+1)*e-(t-r)*n)/(r+1);return a}return a.domain=function(t){return arguments.length?([n,e]=t,n=+n,e=+e,u()):[n,e]},a.range=function(t){return arguments.length?(r=(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?[n,o[0]]:a>=r?[o[r-1],e]:[o[a-1],o[a]]},a.unknown=function(n){return arguments.length?(t=n,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return Pr().domain([n,e]).range(i).unknown(t)},vn.apply(ur(a),arguments)}function qr(){var t,n=[.5],e=[0,1],r=1;function o(o){return null!=o&&o<=o?e[Pn(n,o,0,r)]:t}return o.domain=function(t){return arguments.length?(n=Array.from(t),r=Math.min(n.length,e.length-1),o):n.slice()},o.range=function(t){return arguments.length?(e=Array.from(t),r=Math.min(n.length,e.length-1),o):e.slice()},o.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},o.unknown=function(n){return arguments.length?(t=n,o):t},o.copy=function(){return qr().domain(n).range(e).unknown(t)},vn.apply(o,arguments)}nr=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?tr:(n=or.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var o=t.length,i=[],a=0,u=n[0],s=0;o>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),i.push(t.substring(o-=u,o+u)),!((s+=u+1)>r));)u=n[a=(a+1)%n.length];return i.reverse().join(e)}),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?tr:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(or.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var n=(t=Ke(t)).fill,e=t.align,f=t.sign,p=t.symbol,d=t.zero,h=t.width,g=t.comma,y=t.precision,v=t.trim,m=t.type;"n"===m?(g=!0,m="g"):Je[m]||(void 0===y&&(y=12),v=!0,m="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",x="$"===p?i:/[%p]/.test(m)?s:"",w=Je[m],k=/[defgprs%]/.test(m);function M(t){var o,i,s,p=b,M=x;if("c"===m)M=w(t)+M,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:w(Math.abs(t),y),v&&(t=function(t){t:for(var n,e=t.length,r=1,o=-1;r<e;++r)switch(t[r]){case".":o=n=r;break;case"0":0===o&&(o=r),n=r;break;default:if(!+t[r])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(n+1):t}(t)),A&&0==+t&&"+"!==f&&(A=!1),p=(A?"("===f?f:c:"-"===f||"("===f?"":f)+p,M=("s"===m?ir[8+Ie/3]:"")+M+(A&&"("===f?")":""),k)for(o=-1,i=t.length;++o<i;)if(48>(s=t.charCodeAt(o))||s>57){M=(46===s?a+t.slice(o+1):t.slice(o))+M,t=t.slice(0,o);break}}g&&!d&&(t=r(t,1/0));var O=p.length+t.length+M.length,E=O<h?new Array(h-O+1).join(n):"";switch(g&&d&&(t=r(E+t,E.length?h-M.length:1/0),E=""),e){case"<":t=p+t+M+E;break;case"=":t=p+E+t+M;break;case"^":t=E.slice(0,O=E.length>>1)+p+t+M+E.slice(O);break;default:t=E+p+t+M}return u(t)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),M.toString=function(){return t+""},M}return{format:f,formatPrefix:function(t,n){var e=f(((t=Ke(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Qe(n)/3))),o=Math.pow(10,-r),i=ir[8+r/3];return function(t){return e(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),er=nr.format,rr=nr.formatPrefix;const zr=1e3,Rr=6e4,Hr=36e5,Yr=864e5,Ir=6048e5,Gr=31536e6;var Kr=new Date,Vr=new Date;function Zr(t,n,e,r){function o(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return o.floor=function(n){return t(n=new Date(+n)),n},o.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},o.round=function(t){var n=o(t),e=o.ceil(t);return t-n<e-t?n:e},o.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},o.range=function(e,r,i){var a,u=[];if(e=o.ceil(e),i=null==i?1:Math.floor(i),!(e<r&&i>0))return u;do{u.push(a=new Date(+e)),n(e,i),t(e)}while(a<e&&e<r);return u},o.filter=function(e){return Zr((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&&(o.count=function(n,r){return Kr.setTime(+n),Vr.setTime(+r),t(Kr),t(Vr),Math.floor(e(Kr,Vr))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?function(n){return r(n)%t==0}:function(n){return o.count(0,n)%t==0}):o:null}),o}var Qr=Zr((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));Qr.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Zr((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):Qr:null};var Xr=Qr,Jr=(Qr.range,Zr((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()}))),to=Jr,no=(Jr.range,Zr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*zr)}),(function(t,n){t.setTime(+t+n*Rr)}),(function(t,n){return(n-t)/Rr}),(function(t){return t.getMinutes()}))),eo=no,ro=(no.range,Zr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*zr-t.getMinutes()*Rr)}),(function(t,n){t.setTime(+t+n*Hr)}),(function(t,n){return(n-t)/Hr}),(function(t){return t.getHours()}))),oo=ro,io=(ro.range,Zr((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Rr)/Yr),(t=>t.getDate()-1))),ao=io;function uo(t){return Zr((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())*Rr)/Ir}))}io.range;var so=uo(0),co=uo(1),lo=uo(2),fo=uo(3),po=uo(4),ho=uo(5),go=uo(6),yo=(so.range,co.range,lo.range,fo.range,po.range,ho.range,go.range,Zr((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()}))),vo=yo,mo=(yo.range,Zr((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()})));mo.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zr((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 bo=mo,xo=(mo.range,Zr((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Rr)}),(function(t,n){return(n-t)/Rr}),(function(t){return t.getUTCMinutes()}))),wo=xo,ko=(xo.range,Zr((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*Hr)}),(function(t,n){return(n-t)/Hr}),(function(t){return t.getUTCHours()}))),Mo=ko,Ao=(ko.range,Zr((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/Yr}),(function(t){return t.getUTCDate()-1}))),Oo=Ao;function Eo(t){return Zr((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)/Ir}))}Ao.range;var jo=Eo(0),Co=Eo(1),Do=Eo(2),So=Eo(3),Fo=Eo(4),To=Eo(5),No=Eo(6),_o=(jo.range,Co.range,Do.range,So.range,Fo.range,To.range,No.range,Zr((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()}))),Lo=_o,$o=(_o.range,Zr((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()})));$o.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zr((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 Uo=$o;function Wo(t,n,e,r,o,i){const a=[[to,1,zr],[to,5,5e3],[to,15,15e3],[to,30,3e4],[i,1,Rr],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Hr],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Yr],[r,2,1728e5],[e,1,Ir],[n,1,2592e6],[n,3,7776e6],[t,1,Gr]];function u(n,e,r){const o=Math.abs(e-n)/r,i=Ln((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(Tn(n/Gr,e/Gr,r));if(0===i)return Xr.every(Math.max(Tn(n,e,r),1));const[u,s]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return u.every(s)}return[function(t,n,e){const r=n<t;r&&([t,n]=[n,t]);const o=e&&"function"==typeof e.range?e:u(t,n,e),i=o?o.range(t,+n+1):[];return r?i.reverse():i},u]}$o.range;const[Bo,Po]=Wo(Uo,Lo,jo,Oo,Mo,wo),[qo,zo]=Wo(bo,vo,so,ao,oo,eo);function Ro(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 Ho(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 Yo(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var Io,Go,Ko,Vo={"-":"",_:" ",0:"0"},Zo=/^\s*\d+/,Qo=/^%/,Xo=/[\\^$*+?|[\]().{}]/g;function Jo(t,n,e){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<e?new Array(e-i+1).join(n)+o:o)}function ti(t){return t.replace(Xo,"\\$&")}function ni(t){return new RegExp("^(?:"+t.map(ti).join("|")+")","i")}function ei(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function ri(t,n,e){var r=Zo.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function oi(t,n,e){var r=Zo.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function ii(t,n,e){var r=Zo.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function ai(t,n,e){var r=Zo.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function ui(t,n,e){var r=Zo.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function si(t,n,e){var r=Zo.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function ci(t,n,e){var r=Zo.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function li(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 fi(t,n,e){var r=Zo.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function pi(t,n,e){var r=Zo.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function di(t,n,e){var r=Zo.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function hi(t,n,e){var r=Zo.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function gi(t,n,e){var r=Zo.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function yi(t,n,e){var r=Zo.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function vi(t,n,e){var r=Zo.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function mi(t,n,e){var r=Zo.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function bi(t,n,e){var r=Zo.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function xi(t,n,e){var r=Qo.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function wi(t,n,e){var r=Zo.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function ki(t,n,e){var r=Zo.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function Mi(t,n){return Jo(t.getDate(),n,2)}function Ai(t,n){return Jo(t.getHours(),n,2)}function Oi(t,n){return Jo(t.getHours()%12||12,n,2)}function Ei(t,n){return Jo(1+ao.count(bo(t),t),n,3)}function ji(t,n){return Jo(t.getMilliseconds(),n,3)}function Ci(t,n){return ji(t,n)+"000"}function Di(t,n){return Jo(t.getMonth()+1,n,2)}function Si(t,n){return Jo(t.getMinutes(),n,2)}function Fi(t,n){return Jo(t.getSeconds(),n,2)}function Ti(t){var n=t.getDay();return 0===n?7:n}function Ni(t,n){return Jo(so.count(bo(t)-1,t),n,2)}function _i(t){var n=t.getDay();return n>=4||0===n?po(t):po.ceil(t)}function Li(t,n){return t=_i(t),Jo(po.count(bo(t),t)+(4===bo(t).getDay()),n,2)}function $i(t){return t.getDay()}function Ui(t,n){return Jo(co.count(bo(t)-1,t),n,2)}function Wi(t,n){return Jo(t.getFullYear()%100,n,2)}function Bi(t,n){return Jo((t=_i(t)).getFullYear()%100,n,2)}function Pi(t,n){return Jo(t.getFullYear()%1e4,n,4)}function qi(t,n){var e=t.getDay();return Jo((t=e>=4||0===e?po(t):po.ceil(t)).getFullYear()%1e4,n,4)}function zi(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Jo(n/60|0,"0",2)+Jo(n%60,"0",2)}function Ri(t,n){return Jo(t.getUTCDate(),n,2)}function Hi(t,n){return Jo(t.getUTCHours(),n,2)}function Yi(t,n){return Jo(t.getUTCHours()%12||12,n,2)}function Ii(t,n){return Jo(1+Oo.count(Uo(t),t),n,3)}function Gi(t,n){return Jo(t.getUTCMilliseconds(),n,3)}function Ki(t,n){return Gi(t,n)+"000"}function Vi(t,n){return Jo(t.getUTCMonth()+1,n,2)}function Zi(t,n){return Jo(t.getUTCMinutes(),n,2)}function Qi(t,n){return Jo(t.getUTCSeconds(),n,2)}function Xi(t){var n=t.getUTCDay();return 0===n?7:n}function Ji(t,n){return Jo(jo.count(Uo(t)-1,t),n,2)}function ta(t){var n=t.getUTCDay();return n>=4||0===n?Fo(t):Fo.ceil(t)}function na(t,n){return t=ta(t),Jo(Fo.count(Uo(t),t)+(4===Uo(t).getUTCDay()),n,2)}function ea(t){return t.getUTCDay()}function ra(t,n){return Jo(Co.count(Uo(t)-1,t),n,2)}function oa(t,n){return Jo(t.getUTCFullYear()%100,n,2)}function ia(t,n){return Jo((t=ta(t)).getUTCFullYear()%100,n,2)}function aa(t,n){return Jo(t.getUTCFullYear()%1e4,n,4)}function ua(t,n){var e=t.getUTCDay();return Jo((t=e>=4||0===e?Fo(t):Fo.ceil(t)).getUTCFullYear()%1e4,n,4)}function sa(){return"+0000"}function ca(){return"%"}function la(t){return+t}function fa(t){return Math.floor(+t/1e3)}function pa(t){return new Date(t)}function da(t){return t instanceof Date?+t:+new Date(+t)}function ha(t,n,e,r,o,i,a,u,s,c){var l=Ye(),f=l.invert,p=l.domain,d=c(".%L"),h=c(":%S"),g=c("%I:%M"),y=c("%I %p"),v=c("%a %d"),m=c("%b %d"),b=c("%B"),x=c("%Y");function w(t){return(s(t)<t?d:u(t)<t?h:a(t)<t?g:i(t)<t?y:r(t)<t?o(t)<t?v:m:e(t)<t?b:x)(t)}return l.invert=function(t){return new Date(f(t))},l.domain=function(t){return arguments.length?p(Array.from(t,da)):p().map(pa)},l.ticks=function(n){var e=p();return t(e[0],e[e.length-1],null==n?10:n)},l.tickFormat=function(t,n){return null==n?w:c(n)},l.nice=function(t){var e=p();return t&&"function"==typeof t.range||(t=n(e[0],e[e.length-1],null==t?10:t)),t?p(lr(e,t)):l},l.copy=function(){return Re(l,ha(t,n,e,r,o,i,a,u,s,c))},l}function ga(){return vn.apply(ha(qo,zo,bo,vo,so,ao,oo,eo,to,Go).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ya(){return vn.apply(ha(Bo,Po,Uo,Lo,jo,Oo,Mo,wo,to,Ko).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function va(){var t,n,e,r,o,i=0,a=1,u=Be,s=!1;function c(n){return null==n||isNaN(n=+n)?o:u(0===e?.5:(n=(r(n)-t)*e,s?Math.max(0,Math.min(1,n)):n))}function l(t){return function(n){var e,r;return arguments.length?([e,r]=n,u=t(e,r),c):[u(0),u(1)]}}return c.domain=function(o){return arguments.length?([i,a]=o,t=r(i=+i),n=r(a=+a),e=t===n?0:1/(n-t),c):[i,a]},c.clamp=function(t){return arguments.length?(s=!!t,c):s},c.interpolator=function(t){return arguments.length?(u=t,c):u},c.range=l(Le),c.rangeRound=l($e),c.unknown=function(t){return arguments.length?(o=t,c):o},function(o){return r=o,t=o(i),n=o(a),e=t===n?0:1/(n-t),c}}function ma(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function ba(){var t=ur(va()(Be));return t.copy=function(){return ma(t,ba())},mn.apply(t,arguments)}function xa(){var t=vr(va()).domain([1,10]);return t.copy=function(){return ma(t,xa()).base(t.base())},mn.apply(t,arguments)}function wa(){var t=wr(va());return t.copy=function(){return ma(t,wa()).constant(t.constant())},mn.apply(t,arguments)}function ka(){var t=Er(va());return t.copy=function(){return ma(t,ka()).exponent(t.exponent())},mn.apply(t,arguments)}function Ma(){return ka.apply(null,arguments).exponent(.5)}function Aa(){var t=[],n=Be;function e(e){if(null!=e&&!isNaN(e=+e))return n((Pn(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(Nn),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)=>Ur(t,r/n)))},e.copy=function(){return Aa(n).domain(t)},mn.apply(e,arguments)}function Oa(t,n){void 0===n&&(n=t,t=Le);for(var e=0,r=n.length-1,o=n[0],i=new Array(r<0?0:r);e<r;)i[e]=t(o,o=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return i[n](t-n)}}function Ea(){var t,n,e,r,o,i,a,u=0,s=.5,c=1,l=1,f=Be,p=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-n)*(l*t<l*n?r:o),f(p?Math.max(0,Math.min(1,t)):t))}function h(t){return function(n){var e,r,o;return arguments.length?([e,r,o]=n,f=Oa(t,[e,r,o]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([u,s,c]=a,t=i(u=+u),n=i(s=+s),e=i(c=+c),r=t===n?0:.5/(n-t),o=n===e?0:.5/(e-n),l=n<t?-1:1,d):[u,s,c]},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(Le),d.rangeRound=h($e),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return i=a,t=a(u),n=a(s),e=a(c),r=t===n?0:.5/(n-t),o=n===e?0:.5/(e-n),l=n<t?-1:1,d}}function ja(){var t=ur(Ea()(Be));return t.copy=function(){return ma(t,ja())},mn.apply(t,arguments)}function Ca(){var t=vr(Ea()).domain([.1,1,10]);return t.copy=function(){return ma(t,Ca()).base(t.base())},mn.apply(t,arguments)}function Da(){var t=wr(Ea());return t.copy=function(){return ma(t,Da()).constant(t.constant())},mn.apply(t,arguments)}function Sa(){var t=Er(Ea());return t.copy=function(){return ma(t,Sa()).exponent(t.exponent())},mn.apply(t,arguments)}function Fa(){return Sa.apply(null,arguments).exponent(.5)}Io=function(t){var n=t.dateTime,e=t.date,r=t.time,o=t.periods,i=t.days,a=t.shortDays,u=t.months,s=t.shortMonths,c=ni(o),l=ei(o),f=ni(i),p=ei(i),d=ni(a),h=ei(a),g=ni(u),y=ei(u),v=ni(s),m=ei(s),b={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:Mi,e:Mi,f:Ci,g:Bi,G:qi,H:Ai,I:Oi,j:Ei,L:ji,m:Di,M:Si,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:la,s:fa,S:Fi,u:Ti,U:Ni,V:Li,w:$i,W:Ui,x:null,X:null,y:Wi,Y:Pi,Z:zi,"%":ca},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:Ri,e:Ri,f:Ki,g:ia,G:ua,H:Hi,I:Yi,j:Ii,L:Gi,m:Vi,M:Zi,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:la,s:fa,S:Qi,u:Xi,U:Ji,V:na,w:ea,W:ra,x:null,X:null,y:oa,Y:aa,Z:sa,"%":ca},w={a:function(t,n,e){var r=d.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=p.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(t,n,e){var r=v.exec(n.slice(e));return r?(t.m=m.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=y.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return A(t,n,e,r)},d:di,e:di,f:bi,g:ci,G:si,H:gi,I:gi,j:hi,L:mi,m:pi,M:yi,p:function(t,n,e){var r=c.exec(n.slice(e));return r?(t.p=l.get(r[0].toLowerCase()),e+r[0].length):-1},q:fi,Q:wi,s:ki,S:vi,u:oi,U:ii,V:ai,w:ri,W:ui,x:function(t,n,r){return A(t,e,n,r)},X:function(t,n,e){return A(t,r,n,e)},y:ci,Y:si,Z:li,"%":xi};function k(t,n){return function(e){var r,o,i,a=[],u=-1,s=0,c=t.length;for(e instanceof Date||(e=new Date(+e));++u<c;)37===t.charCodeAt(u)&&(a.push(t.slice(s,u)),null!=(o=Vo[r=t.charAt(++u)])?r=t.charAt(++u):o="e"===r?" ":"0",(i=n[r])&&(r=i(e,o)),a.push(r),s=u+1);return a.push(t.slice(s,u)),a.join("")}}function M(t,n){return function(e){var r,o,i=Yo(1900,void 0,1);if(A(i,t,e+="",0)!=e.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(n&&!("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=Ho(Yo(i.y,0,1))).getUTCDay(),r=o>4||0===o?Co.ceil(r):Co(r),r=Oo.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Ro(Yo(i.y,0,1))).getDay(),r=o>4||0===o?co.ceil(r):co(r),r=ao.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?Ho(Yo(i.y,0,1)).getUTCDay():Ro(Yo(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,Ho(i)):Ro(i)}}function A(t,n,e,r){for(var o,i,a=0,u=n.length,s=e.length;a<u;){if(r>=s)return-1;if(37===(o=n.charCodeAt(a++))){if(o=n.charAt(a++),!(i=w[o in Vo?n.charAt(a++):o])||(r=i(t,e,r))<0)return-1}else if(o!=e.charCodeAt(r++))return-1}return r}return b.x=k(e,b),b.X=k(r,b),b.c=k(n,b),x.x=k(e,x),x.X=k(r,x),x.c=k(n,x),{format:function(t){var n=k(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=k(t+="",x);return n.toString=function(){return t},n},utcParse:function(t){var n=M(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"]}),Go=Io.format,Io.parse,Ko=Io.utcFormat,Io.utcParse;const Ta=["linear","time","log","sqrt"];function Na(t){return"function"==typeof t?M(t.copy)&&M(t.domain)&&M(t.range):"string"==typeof t&&Ta.includes(t)}function _a(t,n){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[n])}function La(t,n){if(!t.data)return"linear";const e=A(t[n]);return Bt(t.data.map((t=>{const r=dn()(e(t))?e(t)[n]:e(t);return void 0!==r?r:t[n]})))?"time":"linear"}function $a(n){if(Na(n)){const r=`scale${e=n,e&&e[0].toUpperCase()+e.slice(1)}`;return t[r]()}var e;return sr()}function Ua(t,n){const e=Wa(t,n);return e?"string"==typeof e?$a(e):e:$a(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 Bt(e)?"time":"linear"}(t,n)||La(t,n))}function Wa(t,n){if(!_a(t,n))return;const e=t.scale[n]||t.scale;return Na(e)?M(e)?e:$a(e):void 0}function Ba(t,n){return function(t,n){if(!_a(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=Pa.filter((n=>void 0!==t[n.method]))[0];return n?n.name:void 0}(e)}(t,n)||La(t,n)}const Pa=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function qa(t){return!(!t||!t["@@__IMMUTABLE_ITERABLE__@@"])}function za(t,n){return qa(t)?t.reduce(((t,e,r)=>{let o=e;return n&&n[r]&&(o=za(e)),t[r]=o,t}),function(t){return!(!t||!t["@@__IMMUTABLE_LIST__@@"])}(t)?[]:{}):t}function Ra(t){return qa(n=t)||function(t){return!(!t||!t["@@__IMMUTABLE_RECORD__@@"])}(n)?za(t,{errorX:!0,errorY:!0}):t;var n}function Ha(t,n){const e=(dn()(t.domain)?t.domain[n]:t.domain)||Ua(t,n).domain(),r=t.samples||1,o=Math.max(...e),i=Math.min(...e),a=function(t,n,e){const r=n?t:0;let o=n||t;o||(o=0);const i=o-r,a=Math.abs(i),u=i/a||1,s=e||1,c=Math.max(Math.ceil(a/s),0);return Array.from(Array(c),((t,n)=>r+n*u*s))}(i,o,(o-i)/r);return a[a.length-1]===o?a:a.concat(o)}function Ya(t,n,e){if(void 0===e&&(e="ascending"),!n)return t;let r=n;"x"!==n&&"y"!==n||(r=`_${n}`);const o="ascending"===e?"asc":"desc";return un()(t,r,o)}function Ia(t,n){const e=Za(t,n),r=Qa(t,n),o=function(t,n){if(!Array.isArray(t.data)&&!qa(t.data))return[];const e=A(void 0===t[n]?n:t[n]);return Ya(t.data.reduce(((t,n)=>(t.push(Ra(n)),t)),[]),t.sortKey,t.sortOrder).reduce(((t,n)=>{const r=Ra(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),i=tn()([...e,...r,...o]);return 0===i.length?null:i.reduce(((t,n,e)=>(t[n]=e+1,t)),{})}function Ga(t,n,e){if(!Array.isArray(t)&&!qa(t)||function(t){return qa(t)?t.size:t.length}(t)<1)return[];const r=["x","y","y0"],o=(e=Array.isArray(e)?e:r).reduce(((t,e)=>{var r;return t[e]=A(void 0!==n[r=e]?n[r]:r),t}),{}),i=fn()(e,r)&&"_x"===n.x&&"_y"===n.y&&"_y0"===n.y0;let u;!1===i&&(u={x:-1!==e.indexOf("x")?Ia(n,"x"):void 0,y:-1!==e.indexOf("y")?Ia(n,"y"):void 0,y0:-1!==e.indexOf("y0")?Ia(n,"y"):void 0});const s=i?t:t.reduce(((t,n,r)=>{const i=Ra(n),s={x:r,y:i},c=e.reduce(((t,n)=>{const e=o[n](i),r=void 0!==e?e:s[n];return void 0!==r&&("string"==typeof r&&u[n]?(t[`${n}Name`]=r,t[`_${n}`]=u[n][r]):t[`_${n}`]=r),t}),{}),l=Object.assign({},c,i);return a()(l)||t.push(l),t}),[]),c=function(t,n){const e=1/Number.MAX_SAFE_INTEGER,r={x:Ba(n,"x"),y:Ba(n,"y")};if("log"!==r.x&&"log"!==r.y)return t;const o=(t,n)=>"log"!==r[n]||0!==t[`_${n}`];return t.map((t=>o(t,"x")&&o(t,"y")&&o(t,"y0")?t:(t=>{const n=o(t,"x")?t._x:e,r=o(t,"y")?t._y:e,i=o(t,"y0")?t._y0:e;return Object.assign({},t,{_x:n,_y:r,_y0:i})})(t)))}(Ya(s,n.sortKey,n.sortOrder),n);return function(t,n){const e=!!t.eventKey,r=M(o=t.eventKey)?o:null==o?()=>{}:h()(o);var o;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,c)}function Ka(t,n){return t.categories&&!Array.isArray(t.categories)?t.categories[n]:t.categories}function Va(t){return t.data?Ga(t.data,t):Ga(function(t){const n=Ha(t,"x"),e=Ha(t,"y");return n.map(((t,n)=>({x:t,y:e[n]})))}(t),t)}function Za(t,n){const{tickValues:e,tickFormat:r}=t;let o;return o=e&&(Array.isArray(e)||e[n])?e[n]||e:r&&Array.isArray(r)?r:[],o.filter((t=>"string"==typeof t))}function Qa(t,n){if(!t.categories)return[];const e=Ka(t,n),r=e&&e.filter((t=>"string"==typeof t));return r?r.filter((t=>void 0!==t)):[]}function Xa(t){const n=t=>t&&t.type?t.type.role:"";let e=n(t);if("portal"===e){const r=s().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)}var Ja=r(4295),tu=r.n(Ja),nu=r(2829),eu=r.n(nu);function ru(t,n,e){void 0===e&&(e="min");const r=t=>"max"===e?Math.max(...t):Math.min(...t),o="max"===e?-1/0:1/0;let i=!1;const a=t.flat().reduce(((t,e)=>{const o=void 0!==e[`_${n}0`]?e[`_${n}0`]:e[`_${n}`],a=void 0!==e[`_${n}1`]?e[`_${n}1`]:e[`_${n}`],u=r([o,a]);return i=i||o instanceof Date||a instanceof Date,r([t,u])}),o);return i?new Date(a):a}function ou(t,n,e){return function(t,n,e){return"log"!==Ba(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=cu(n,e),o=su(n,e),i=function(t,n){const e=t=>Array.isArray(t)?{left:t[0],right:t[1]}:{left:t,right:t};return dn()(t.domainPadding)?e(t.domainPadding[n]):e(t.domainPadding)}(n,e);if(!i.left&&!i.right)return t;const a=Rt(t),u=zt(t),s=k(n,E(e,n.horizontal)),c=Math.abs(s[0]-s[1]),l=Math.max(c-i.left-i.right,1),f=Math.abs(u.valueOf()-a.valueOf())/l*c,p=f*i.left/c,d=f*i.right/c;let h={min:a.valueOf()-p,max:u.valueOf()+d};const g=dn()(n.singleQuadrantDomainPadding)?n.singleQuadrantDomainPadding[e]:n.singleQuadrantDomainPadding,y=(t,n)=>"min"===n&&a.valueOf()>=0&&t<=0||"max"===n&&u.valueOf()<=0&&t>=0?0:t;if((a.valueOf()>=0&&h.min<=0||u.valueOf()<=0&&h.max>=0)&&!1!==g){const t={left:Math.abs(u-a)*i.left/c,right:Math.abs(u-a)*i.right/c},n={min:y(a.valueOf()-t.left,"min"),max:y(u.valueOf()+t.right,"max")},e={left:Math.abs(n.max-n.min)*i.left/c,right:Math.abs(n.max-n.min)*i.right/c};h={min:y(a.valueOf()-e.left,"min"),max:y(u.valueOf()+e.right,"max")}}const v={min:void 0!==r?r:h.min,max:void 0!==o?o:h.max};return a instanceof Date||u instanceof Date?au(new Date(v.min),new Date(v.max)):au(v.min,v.max)}(t,n,e),n,e)}function iu(t,n,e){const r=e||Va(t),{polar:o,startAngle:i=0,endAngle:a=360}=t,u=cu(t,n),s=su(t,n);if(r.length<1)return void 0!==u&&void 0!==s?au(u,s):void 0;const c=au(void 0!==u?u:ru(r,n,"min"),void 0!==s?s:ru(r,n,"max"));return o&&"x"===n&&360===Math.abs(i-a)?lu(c,function(t,n){const e=`_${n}`;return t.flat().map((t=>t[e]&&void 0!==t[e][1]?t[e][1]:t[e]))}(r,n)):c}function au(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 uu(t,n){const e=cu(t,n),r=su(t,n);return dn()(t.domain)&&t.domain[n]?t.domain[n]:Array.isArray(t.domain)?t.domain:void 0!==e&&void 0!==r?au(e,r):void 0}function su(t,n){return dn()(t.maxDomain)&&void 0!==t.maxDomain[n]?t.maxDomain[n]:"number"==typeof t.maxDomain||tu()(t.maxDomain)?t.maxDomain:void 0}function cu(t,n){return dn()(t.minDomain)&&void 0!==t.minDomain[n]?t.minDomain[n]:"number"==typeof t.minDomain||tu()(t.minDomain)?t.minDomain:void 0}function lu(t,n){const e=eu()(n.sort(((t,n)=>t-n))),r=e[1]-e[0];return[t[0],t[1]+r]}function fu(t){const n=t=>t&&t.type?t.type.role:"";let e=n(t);if("portal"===e){const r=s().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)}var pu=r(4912),du=r.n(pu);const hu=/^onGlobal(.*)$/;function gu(t,n,e,r){const o=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),{})},i=(()=>Array.isArray(this.componentEvents)?Array.isArray(t.events)?this.componentEvents.concat(...t.events):this.componentEvents:t.events)(),a=i&&M(r)?r(o(i),n):void 0;if(!t.sharedEvents)return a;const u=t.sharedEvents.getEvents,s=t.sharedEvents.events&&u(o(t.sharedEvents.events),n);return Object.assign({},s,a)}function yu(t,n,e,r){if(a()(t))return{};const o=r||this.baseProps,i=(t,n)=>{const{childName:e,target:r,key:i}=t,a="props"===n?o:this.state||{},u=null!=e&&a[e]?a[e]:a;return"parent"===i?u.parent:u[i]&&u[i][r]},u=(t,r)=>{const a="parent"===n?t.childName:t.childName||e,u=t.target||n,s=(n,e)=>{const r=this.state||{};if(!M(t.mutation))return r;const a=i({childName:e,key:n,target:u},"props"),s=i({childName:e,key:n,target:u},"state"),c=t.mutation(Object.assign({},a,s),o),l=r[e]||{},f=t=>c?(t=>"parent"===u?Object.assign(t,{[n]:Object.assign(t[n]||{},c)}):Object.assign(t,{[n]:Object.assign(t[n]||{},{[u]:c})}))(t):(t=>(t[n]&&t[n][u]&&delete t[n][u],t[n]&&!Object.keys(t[n]).length&&delete t[n],t))(t);return null!=e?Object.assign(r,{[e]:f(l)}):f(r)},c=n=>{const e=(n=>"parent"===u?"parent":"all"===t.eventKey?o[n]?Object.keys(o[n]).filter((t=>"parent"!==t)):Object.keys(o).filter((t=>"parent"!==t)):void 0===t.eventKey&&"parent"===r?o[n]?Object.keys(o[n]):Object.keys(o):void 0!==t.eventKey?t.eventKey:r)(n);return Array.isArray(e)?e.reduce(((t,e)=>Object.assign(t,s(e,n))),{}):s(e,n)},l="all"===a?Object.keys(o).filter((t=>"parent"!==t)):a;return Array.isArray(l)?l.reduce(((t,n)=>Object.assign(t,c(n))),{}):c(l)},s=(n,e,r,o)=>{const i=t[o](n,e,r,this);if(!a()(i)){const t=(t=>{const n=t=>M(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})(i);this.setState(((t,n)=>Array.isArray(t)?t.reduce(((t,e)=>Object.assign({},t,u(e,n))),{}):u(t,n))(i,r),t)}};return Object.keys(t).reduce(((t,n)=>(t[n]=s,t)),{})}function vu(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 mu(t,n,e,r){const o=(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 i=Array.isArray(t)?t:[t];r.childName&&(i=t.filter((t=>o(t,"childName"))));const u=i.filter((t=>o(t,"target")));if(a()(u))return;const s=u.filter((t=>o(t,"eventKey")));return a()(s)?void 0:s.reduce(((t,r)=>{const o=(r&&M(r.mutation)?r.mutation:()=>{})(Object.assign({},n,e));return Object.assign({},t,o)}),{})}function bu(t,n){const e=Array.isArray(n)&&n.reduce(((n,e)=>{const r=t[e],o=r&&r.type&&r.type.defaultEvents,i=M(o)?o(r.props):o;return Array.isArray(i)?n.concat(...i):n}),[]);return e&&e.length?e:void 0}function xu(t){const n=t.match(hu);return n&&n[1]&&n[1].toLowerCase()}function wu(t,n,e){const{datasets:r,horizontal:o}=t,i=k(t,o?"y":"x"),a=Math.abs(i[1]-i[0]),u=void 0!==e?e:Array.isArray(r[0])&&r[0].length||1,s=(n||r.length)*u;return Math.round(.5*a/s)}function ku(t,n,e){const r=e?e.slice(0):s().Children.toArray(t.children),o=t.data?Va(t):void 0,{polar:i,startAngle:a,endAngle:u,categories:c,minDomain:l,maxDomain:f,horizontal:p}=t,d={horizontal:p,polar:i,startAngle:a,endAngle:u,minDomain:l,maxDomain:f,categories:c},h=o?Object.assign(d,{data:o}):d,g=j(r,(t=>{const e=Object.assign({},t.props,h);return fu(t)?t.type&&M(t.type.getDomain)?t.props&&t.type.getDomain(e,n):function(t,n){return function(t,n){const e=M(t)?t:iu,r=M(n)?n:ou;return(t,n)=>{const o=uu(t,n);if(o)return r(o,t,n);const i=Ka(t,n),a=i?function(t,n,e){const r=e||Ka(t,n),{polar:o,startAngle:i=0,endAngle:a=360}=t;if(!r)return;const u=cu(t,n),s=su(t,n),c=(d=r,Array.isArray(d)&&d.some((t=>"string"==typeof t))?Qa(t,n):[]),l=0===c.length?null:c.reduce(((t,n,e)=>(t[n]=e+1,t)),{}),f=l?r.map((t=>l[t])):r,p=au(void 0!==u?u:Rt(f),void 0!==s?s:zt(f));var d;return o&&"x"===n&&360===Math.abs(i-a)?lu(p,f):p}(t,n,i):e(t,n);return a?r(a,t,n):void 0}}()(t,n)}(e,n):null}),t);return[0===g.length?0:Rt(g),0===g.length?1:zt(g)]}function Mu(t,n,e){const r=e||s().Children.toArray(t.children),o=uu(t,n),i=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:o,children:i}=r[0].props;if(!o)return;const a=Array.isArray(i)&&i[0];if(!a)return;let u=a.props.barWidth,s=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;u=t.props.barWidth,s=a.props.children.length}const c=u||wu(t,i.length,s);return{x:c*i.length/2+(o-c*((i.length-1)/2))}}(t,n,r);let a;if(o)a=o;else{const e=cu(t,n),o=su(t,n),i=(t.data||t.y)&&Va(t),u=i?iu(t,n,i):[],s=ku(t,n,r);a=au(e||Rt([...u,...s]),o||zt([...u,...s]))}return ou(a,Object.assign({domainPadding:i},t),n)}function Au(t,n,e){if(t.data)return Ua(t,n);const r=e?e.slice(0):s().Children.toArray(t.children),o=tn()(j(r,(e=>Ba(Object.assign({},e.props,{horizontal:t.horizontal}),n)),t));return o.length>1?$a("linear"):$a(o[0])}function Ou(t,n,e){const r=Qa(t,n),o=cn(e,n),i=o?Za(o.props,n):[],a=r.length?r:function(t,n){return j(t.slice(0),(t=>fu(t)?Qa(t.props||{},n):null))}(e,n);return tn()([...a,...i].flat())}var Eu,ju,Cu=r(7314),Du=r.n(Cu),Su=r(7491),Fu=r.n(Su),Tu=r(2516),Nu=r.n(Tu),_u=0,Lu=0,$u=0,Uu=0,Wu=0,Bu=0,Pu="object"==typeof performance&&performance.now?performance:Date,qu="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function zu(){return Wu||(qu(Ru),Wu=Pu.now()+Bu)}function Ru(){Wu=0}function Hu(){this._call=this._time=this._next=null}function Yu(t,n,e){var r=new Hu;return r.restart(t,n,e),r}function Iu(){Wu=(Uu=Pu.now())+Bu,_u=Lu=0;try{!function(){zu(),++_u;for(var t,n=Eu;n;)(t=Wu-n._time)>=0&&n._call.call(void 0,t),n=n._next;--_u}()}finally{_u=0,function(){for(var t,n,e=Eu,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:Eu=n);ju=t,Ku(r)}(),Wu=0}}function Gu(){var t=Pu.now(),n=t-Uu;n>1e3&&(Bu-=n,Uu=t)}function Ku(t){_u||(Lu&&(Lu=clearTimeout(Lu)),t-Wu>24?(t<1/0&&(Lu=setTimeout(Iu,t-Pu.now()-Bu)),$u&&($u=clearInterval($u))):($u||(Uu=Pu.now(),$u=setInterval(Gu,1e3)),_u=1,qu(Iu)))}Hu.prototype=Yu.prototype={constructor:Hu,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?zu():+e)+(null==n?0:+n),this._next||ju===this||(ju?ju._next=this:Eu=this,ju=this),this._call=t,this._time=e,Ku()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ku())}};class Vu{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(zu()-t.startTime,t.duration)}))};start(){this.timer||(this.timer=Yu(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}subscribe(t,n){const e=this.subscribers.push({startTime:zu(),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 Zu=s().createContext({transitionTimer:new Vu,animationTimer:new Vu});Zu.displayName="TimerContext";var Qu=Zu;class Xu extends s().Component{static displayName="VictorySharedEvents";static role="shared-event-wrapper";static contextType=Qu;static defaultProps={groupComponent:s().createElement("g",null)};constructor(t){super(t),this.getScopedEvents=yu.bind(this),this.getEventState=vu.bind(this),this.state=this.state||{},this.sharedEventsCache={},this.globalEvents={},this.prevGlobalEventKeys=[],this.boundGlobalEvents={},this.baseProps=this.getBaseProps(t)}shouldComponentUpdate(t){if(!Fu()(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);Pt(this.prevGlobalEventKeys,t).forEach((t=>this.removeGlobalListener(t))),Pt(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((t=>Object.assign(t,{nativeEvent:t}))(n))};this.boundGlobalEvents[t]=n,window.addEventListener(xu(t),n)}removeGlobalListener(t){window.removeEventListener(xu(t),this.boundGlobalEvents[t])}getAllEvents(t){const n=bu(t,["container","groupComponent"]);return Array.isArray(n)?Array.isArray(t.events)?n.concat(...t.events):n:t.events}applyExternalMutations(t,n){if(!a()(n)){const e=t.externalEventMutations.reduce(((t,n)=>M(n.callback)?t.concat(n.callback):t),[]),r=e.length?()=>{e.forEach((t=>t()))}:void 0;this.setState(n,r)}}getExternalMutations(t,n){return a()(t.externalEventMutations)?void 0:function(t,n,e,r){return void 0===n&&(n={}),void 0===e&&(e={}),r.reduce(((r,o)=>{const i=e[o],u=function(t,n,e,r){return void 0===n&&(n={}),void 0===e&&(e={}),Object.keys(n).reduce(((o,i)=>{const u=e[i]||{},s=n[i]||{};if("parent"===i){const n=mu(t,s,u,{eventKey:i,target:"parent"});o[i]=void 0!==n?Object.assign({},u,n):u}else{const n=tn()(Object.keys(s).concat(Object.keys(u)));o[i]=n.reduce(((n,e)=>{const o={eventKey:i,target:e,childName:r},c=mu(t,s[e],u[e],o);return n[e]=void 0!==c?Object.assign({},u[e],c):u[e],du()(n,(t=>!a()(t)))}),{})}return du()(o,(t=>!a()(t)))}),{})}(t,n[o],e[o],o);return r[o]=u||i,du()(r,(t=>!a()(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&&Fu()(n,r))return e}getBaseProps(t){const{container:n}=t,e=s().Children.toArray(this.props.children),r=this.getBasePropsFromChildren(e),o=n?n.props:{};return Object.assign({},r,{parent:o})}getBasePropsFromChildren(t){const n=j(t,((t,n)=>{if(t.type&&M(t.type.getBaseProps)){const e=t.props&&t.type.getBaseProps(t.props);return e?[[n,e]]:null}return null}));return Du()(n)}getNewChildren(t,n){const{events:e,eventKey:r}=t,o=(t,i)=>t.reduce(((t,a,u)=>{if(a.props.children){const n=s().Children.toArray(a.props.children),e=i.slice(u,u+n.length),r=s().cloneElement(a,a.props,o(n,e));return t.concat(r)}if("parent"!==i[u]&&a.type&&M(a.type.getBaseProps)){const o=a.props.name||i[u],c=Array.isArray(e)&&e.filter((t=>"parent"!==t.target&&(Array.isArray(t.childName)?t.childName.indexOf(o)>-1:t.childName===o||"all"===t.childName))),l=[o,n,c,Nu()(this.state[o])],f=this.getCachedSharedEvents(o,l)||{events:c,getEvents:(t,e)=>this.getScopedEvents(t,e,o,n),getEventState:(t,n)=>this.getEventState(t,n,o)};return this.cacheSharedEvents(o,f,l),t.concat(s().cloneElement(a,Object.assign({key:`events-${o}`,sharedEvents:f,eventKey:r,name:o},a.props)))}return t.concat(a)}),[]),i=Object.keys(n),a=s().Children.toArray(t.children);return o(a,i)}getContainer(t,n,r){const o=this.getNewChildren(t,n),i=Array.isArray(r)?r.filter((t=>"parent"===t.target)):[],a=i.length>0?{events:i,getEvents:(t,e)=>this.getScopedEvents(t,e,null,n),getEventState:this.getEventState}:null,u=t.container||t.groupComponent,c=u.type&&u.type.role,l=u.props||{},f=gu.bind(this),p=a&&f({sharedEvents:a},"parent"),d=e()({},this.getEventState("parent","parent"),l,n.parent,{children:o}),h=e()({},function(t,n,e){return t?Object.keys(t).reduce(((n,r)=>(n[r]=n=>t[r](n,e,"parent",r),n)),{}):{}}(p,0,d),l.events);this.globalEvents=(t=>du()(t,((t,n)=>hu.test(n))))(h);const g=(t=>gn()(t,((t,n)=>hu.test(n))))(h);return"container"===c?s().cloneElement(u,Object.assign({},d,{events:g})):s().cloneElement(u,g,o)}render(){const t=this.getAllEvents(this.props);return t?this.getContainer(this.props,this.baseProps,t):s().cloneElement(this.props.container,{children:this.props.children})}}const Ju={width:450,height:300,padding:50,offset:0};function ts(t,n){const r="group",o=O(t,Ju,r),i=function(t,n,r){return function(t,n){const r="100%",o="100%";if(!t)return e()({parent:{height:o,width:r}},n);const{data:i,labels:a,parent:u}=t,s=n&&n.parent||{},c=n&&n.labels||{},l=n&&n.data||{};return{parent:e()({},u,s,{width:r,height:o}),labels:e()({},a,c),data:e()({},i,l)}}(n,t&&t[r]&&t[r].style?t[r].style:{})}(o.theme,o.style,r),{offset:a,colorScale:u,color:c,polar:l,horizontal:f}=o,p=o.categories||function(t,n,e){const r=t.categories&&Qa(t,"x"),o=t.categories&&Qa(t,"y"),i=r&&o?{}:function(t,n){const e=n||s().Children.toArray(t.children),r=Ou(t,"x",e),o=Ou(t,"y",e),i=function(t){return j(t.slice(0),(t=>{const n=t.props||{};let e;return Xa(t)?(e=t.type&&M(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:tn()([...r,...i.x].flat()),y:tn()([...o,...i.y].flat())}}(t,n),a=r||i.x,u=o||i.y;return{x:a.length>0?a:void 0,y:u.length>0?u:void 0}}(o,n),d=o.datasets||function(t,n){const{polar:e,startAngle:r,endAngle:o,categories:i,minDomain:a,maxDomain:u}=t;let c={polar:e,startAngle:r,endAngle:o,categories:i,minDomain:a,maxDomain:u},l=0;const f=n?n.slice(0):s().Children.toArray(t.children);c=function(t){let{children:n,props:e,childComponents:r,parentProps:o}=t;if(!(n.some((t=>t.type&&"histogram"===t.type.role))&&n.length&&n.every((t=>t.type&&"histogram"===t.type.role))))return o;let i=e.bins||r[0].props.bins;if(!Array.isArray(i)){const t=n.reduce(((t,n)=>{const e=A(n.props.x||"x");return t.concat(n.props.data.map((t=>({x:e(t)}))))}),[]);i=(0,n[0].type.getFormattedData)({data:t,bins:i}).reduce(((t,n,e)=>{let{x0:r,x1:o}=n;return 0===e?t.concat([r,o]):t.concat(o)}),[])}return{...o,bins:i}}({children:f,props:t,childComponents:n,parentProps:c});const p=f.filter((t=>t.type&&"stack"===t.type.role)).length,d=j(f,((t,n,e)=>{const r=Object.assign({},t.props,c);let o,i=t;return Xa(t)?(t.type&&M(t.type.getData)?(i=e?s().cloneElement(t,e.props):t,o=i.type.getData(r)):o=Va(r),l+=1,o.map(((t,n)=>Object.assign({_stack:l,_group:n},t)))):null}),t,[],((t,n)=>t.concat(on()(n,"_group")))),h=p?"_group":"_stack";return Object.values(en()(d,h))}(o,null),h={x:Mu(Object.assign({},o,{categories:p}),"x",n),y:Mu(Object.assign({},o,{categories:p}),"y",n)},g=o.range||{x:k(o,"x"),y:k(o,"y")},y={x:Wa(o,"x")||Au(o,"x"),y:Wa(o,"y")||Au(o,"y")},v={x:y.x.domain(h.x).range(o.horizontal?g.y:g.x),y:y.y.domain(h.y).range(o.horizontal?g.x:g.y)},b=l?o.origin:function(t){const{width:n,height:e}=t,{top:r,bottom:o,left:i,right:a}=m(t.padding),u=Math.min(n-i-a,e-r-o)/2,s=n/2+i-a,c=e/2+r-o;return{x:s+u>n?u+i-a:s,y:c+u>e?u+r-o:c}}(o);return{datasets:d,categories:p,range:g,domain:h,horizontal:f,scale:v,style:i,colorScale:u,color:c,offset:a,origin:b,padding:m(o.padding)}}function ns(t,n){const e=n.type&&n.type.role,r=n.props.colorScale||t.colorScale;if("group"===e||"stack"===e)return t.theme&&t.theme.group?r||t.theme.group.colorScale:r}function es(t,n,e){void 0===n&&(n=[]);const r=t.data||t.y?Va(t):n,o=e||0;return r.map((t=>{const n=t._x instanceof Date?new Date(t._x.getTime()+o):t._x+o;return Object.assign({},t,{_x1:n})}))}function rs(t,n,r){const o=O(t,Ju,"stack"),i=n||s().Children.toArray(o.children),a=r||ts(o,i),{datasets:u}=a,{labelComponent:c,polar:l,theme:f}=o,p=function(t,n){const{categories:e,domain:r,range:o,scale:i,horizontal:a,origin:u,padding:s}=n,{width:c,height:l,theme:f,polar:p}=t;return{height:l,width:c,theme:f,polar:p,origin:u,categories:e,domain:r,range:o,scale:i,horizontal:a,padding:s,standalone:!1}}(o,a),d=o.name||"group";return i.map(((t,n)=>{const r=t.type&&t.type.role,i=l?function(t,n,e,r){const o=(("stack"===r?n.datasets[0].length:n.datasets.length)-1)/2,i=function(t,n){const{range:e}=n,r=Math.abs(e.x[1]-e.x[0]),o=Math.max(...e.y);return t.offset/(2*Math.PI*o)*r}(t,n);return(e-o)*i}(o,a,n,r):function(t,n,e,r){const o=(("stack"===r?n.datasets[0].length:n.datasets.length)-1)/2,i=function(t,n,e){if(!t.offset)return 0;const r=E("x",t.horizontal),o=e.domain.x,i=e.range[r];return(Math.max(...o)-Math.min(...o))/(Math.max(...i)-Math.min(...i))*t.offset}(t,0,n);return(e-o)*i}(o,a,n,r),h="voronoi"===r||"tooltip"===r||"label"===r?t.props.style:function(t,n,r,o){const{style:i,role:a}=r,u=t.props.style||{};if(Array.isArray(u))return u;const s=t.type&&t.type.role,c="stack"===s?void 0:function(t,n,e,r){const{style:o}=t;let{colorScale:i,color:a}=t;if(o&&o.data&&o.data.fill)return o.data.fill;if(i=n.props&&n.props.colorScale?n.props.colorScale:i,a=n.props&&n.props.color?n.props.color:a,!i&&!a)return;const u=Array.isArray(i)?i:function(t,n){void 0===n&&(n=Wt.material);const{palette:{grayscale:e=["#cccccc","#969696","#636363","#252525"],qualitative:r=[],heatmap:o=[],warm:i=[],cool:a=[],red:u=[],blue:s=[],green:c=[]}={}}=n,l={grayscale:e,qualitative:r,heatmap:o,warm:i,cool:a,red:u,blue:s,green:c};return t&&l[t]?.length?l[t]:l.grayscale}(i,r);return a||u[e%u.length]}(r,t,n,o),l="line"===s?{fill:"none",stroke:c}:{fill:c},f="stack"===a?{}:{width:wu(r)},p=e()({},u.data,Object.assign({},f,i.data,l)),d=e()({},u.labels,i.labels);return{...u,parent:i.parent,data:p,labels:d}}(t,n,a,f),g=o.labels?function(t,n,e){if(t.labels)return Math.floor(n.length/2)===e?t.labels:void 0}(o,u,n):t.props.labels,y=t.props.name||`${d}-${r}-${n}`;return s().cloneElement(t,Object.assign({labels:g,style:h,key:`${y}-key-${n}`,name:y,data:es(o,u[n],i),colorScale:ns(o,t),labelComponent:c||t.props.labelComponent,xOffset:i},p))}))}const os={width:450,height:300,padding:50,offset:0},is={containerComponent:s().createElement(L,null),groupComponent:s().createElement("g",null),samples:50,standalone:!0,theme:Wt.grayscale},as=t=>{const n=ss?.role,{getAnimationProps:r,setAnimationState:o,getProps:i}=function(t){void 0===t&&(t=Xt);const[n,r]=s().useState(t),o=s().useCallback((t=>{r((n=>({...n,...t})))}),[r]),i=s().useCallback(((t,r,i)=>{if(!t?.animate)return r.props.animate;let a=t.animate&&t.animate.getTransitions;const u=(()=>{let t=n&&n.childrenTransitions;return t=qt(t)?t[i]:t,e()({childrenTransitions:t},n)})(),s=t.animate&&t.animate.parentState||u;if(!a){const n=Qt(t,u,(t=>o(t)));a=t=>n(t,i)}return e()({getTransitions:a,parentState:s},t.animate,r.props.animate)}),[n,o]),a=s().useCallback(((t,n)=>{if(t?.animate)if(t.animate.parentState){const r=t.animate.parentState.nodesWillExit?t:null,i=e()({oldProps:r,nextProps:n},t.animate.parentState);o(i)}else{const e=s().Children.toArray(t.children),r=s().Children.toArray(n.children),i=t=>{const n=t=>t.type&&t.type.continuous;return Array.isArray(t)?t.some(n):n(t)},a=!t.polar&&e.some((t=>i(t)||t?.props?.children&&i(t.props.children))),{nodesWillExit:u,nodesWillEnter:c,childrenTransitions:l,nodesShouldEnter:f}=Zt(e,r);o({nodesWillExit:u,nodesWillEnter:c,nodesShouldEnter:f,childrenTransitions:qt(l)?l[0]:l,oldProps:u?t:void 0,nextProps:n,continuous:a})}}),[o]),u=s().useCallback((t=>n&&n.nodesWillExit&&n.oldProps||t),[n]);return{state:n,setState:o,getAnimationProps:i,setAnimationState:a,getProps:u}}(),u=s().useMemo((()=>e()({},t,is)),[t]),c=i(u),l=O(c,os,n),{eventKey:f,containerComponent:p,standalone:d,groupComponent:h,externalEventMutations:g,width:y,height:m,theme:b,polar:x,horizontal:w,name:k}=l,M=s().Children.toArray(l.children),A=function(t){const n=(t=>{const{children:n}=t,e=s().Children.toArray(n).map((t=>({...t,props:v(t.props,["sharedEvents"])})));return t.children=e,t})(t),[e,r]=s().useState(n);return s().useEffect((()=>{Fu()(n,e)||r(n)}),[e,r,n]),s().useMemo((()=>ts(e,e.children)),[e])}(l),{domain:E,scale:j,style:C,origin:S}=A,F=s().useMemo((()=>rs(c,M,A).map(((t,n)=>{const e=Object.assign({animate:r(c,t,n)},t.props);return s().cloneElement(t,e)}))),[c,M,A,r]),T=s().useMemo((()=>d?{domain:E,scale:j,width:y,height:m,standalone:d,theme:b,style:C.parent,horizontal:w,polar:x,origin:S,name:k}:{}),[d,E,j,y,m,b,C,w,x,S,k]),N=s().useMemo((()=>D(u)),[u]),_=s().useMemo((()=>{if(d){const t=e()({},p.props,T,N);return s().cloneElement(p,t)}return s().cloneElement(h,N)}),[h,d,p,T,N]),L=s().useMemo((()=>function(t){const n=bu(t,["groupComponent","containerComponent","labelComponent"]);let e=t.events;return Array.isArray(n)&&(e=Array.isArray(t.events)?n.concat(...t.events):n),e||[]}(c)),[c]),$=function(t){const n=s().useRef();return s().useEffect((()=>{n.current=t})),n.current}(u);return s().useEffect((()=>()=>{u.animate&&o($,c)}),[o,$,u,c]),a()(L)?s().cloneElement(_,_.props,F):s().createElement(Xu,{container:_,eventKey:f,events:L,externalEventMutations:g},F)},us={role:"group",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:rs},ss=Object.assign(s().memo(as,Fu()),us);ss.displayName="VictoryGroup"}(),o}()}));
|
|
2
2
|
//# sourceMappingURL=victory-group.min.js.map
|