victory-canvas 36.4.1 → 36.5.2

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.
@@ -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.VictoryCanvas=n(require("react")):t.VictoryCanvas=n(t.React)}(self,(t=>(()=>{var n={1124:(t,n,e)=>{var r=e(7236);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},4281:(t,n,e)=>{var r=e(7168),i=e(6582),o=e(3867),a=e(9557),s=e(2726);function c(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},4690:(t,n,e)=>{var r=e(441).Symbol;t.exports=r},5198: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)}},6460:t=>{t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},3848:t=>{t.exports=function(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}},4793: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}},7596:(t,n,e)=>{var r=e(999),i=e(6530),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var a=t[n];o.call(t,n)&&i(a,e)&&(void 0!==e||n in t)||r(t,n,e)}},3833:(t,n,e)=>{var r=e(6530);t.exports=function(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}},999:(t,n,e)=>{var r=e(9346);t.exports=function(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}},2327:t=>{t.exports=function(t){return t}},528:t=>{t.exports=function(t,n,e,r){for(var i=t.length,o=e+(r?1:-1);r?o--:++o<i;)if(n(t[o],o,t))return o;return-1}},314:(t,n,e)=>{var r=e(3848),i=e(1754);t.exports=function t(n,e,o,a,s){var c=-1,u=n.length;for(o||(o=i),s||(s=[]);++c<u;){var h=n[c];e>0&&o(h)?e>1?t(h,e-1,o,a,s):r(s,h):a||(s[s.length]=h)}return s}},166:(t,n,e)=>{var r=e(8422),i=e(8780);t.exports=function(t,n){for(var e=0,o=(n=r(n,t)).length;null!=t&&e<o;)t=t[i(n[e++])];return e&&e==o?t:void 0}},4318:t=>{var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},7:t=>{t.exports=function(t,n){return null!=t&&n in Object(t)}},7650:t=>{t.exports=function(t,n,e){for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}},1071:(t,n,e)=>{var r=e(7229),i=e(3387);t.exports=function t(n,e,o,a,s){return n===e||(null==n||null==e||!i(n)&&!i(e)?n!=n&&e!=e:r(n,e,o,a,t,s))}},7229:(t,n,e)=>{var r=e(4281),i=e(2503),o=e(6001),a=e(8784),s=e(6686),c=e(7236),u=e(8752),h=e(4812),l="[object Arguments]",f="[object Array]",_="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,y,x,v){var d=c(t),b=c(n),g=d?f:s(t),m=b?f:s(n),O=(g=g==l?_:g)==_,T=(m=m==l?_:m)==_,w=g==m;if(w&&u(t)){if(!u(n))return!1;d=!0,O=!1}if(w&&!O)return v||(v=new r),d||h(t)?i(t,n,e,y,x,v):o(t,n,g,e,y,x,v);if(!(1&e)){var j=O&&p.call(t,"__wrapped__"),M=T&&p.call(n,"__wrapped__");if(j||M){var P=j?t.value():t,k=M?n.value():n;return v||(v=new r),x(P,k,e,y,v)}}return!!w&&(v||(v=new r),a(t,n,e,y,x,v))}},9157:(t,n,e)=>{var r=e(4281),i=e(1071);t.exports=function(t,n,e,o){var a=e.length,s=a,c=!o;if(null==t)return!s;for(t=Object(t);a--;){var u=e[a];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++a<s;){var h=(u=e[a])[0],l=t[h],f=u[1];if(c&&u[2]){if(void 0===l&&!(h in t))return!1}else{var _=new r;if(o)var p=o(l,f,h,t,n,_);if(!(void 0===p?i(f,l,3,o,_):p))return!1}}return!0}},1131:(t,n,e)=>{var r=e(4318),i=e(3387);t.exports=function(t){return i(t)&&"[object RegExp]"==r(t)}},8904:(t,n,e)=>{var r=e(8418),i=e(4555),o=e(5362),a=e(7236),s=e(1651);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},8418:(t,n,e)=>{var r=e(9157),i=e(9182),o=e(7375);t.exports=function(t){var n=i(t);return 1==n.length&&n[0][2]?o(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},4555:(t,n,e)=>{var r=e(1071),i=e(3795),o=e(3646),a=e(3266),s=e(1457),c=e(7375),u=e(8780);t.exports=function(t,n){return a(t)&&s(n)?c(u(t),n):function(e){var a=i(e,t);return void 0===a&&a===n?o(e,t):r(n,a,3)}}},7410:(t,n,e)=>{var r=e(6621),i=e(3646);t.exports=function(t,n){return r(t,n,(function(n,e){return i(t,e)}))}},6621:(t,n,e)=>{var r=e(166),i=e(8116),o=e(8422);t.exports=function(t,n,e){for(var a=-1,s=n.length,c={};++a<s;){var u=n[a],h=r(t,u);e(h,u)&&i(c,o(u,t),h)}return c}},1712:t=>{t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},4815:(t,n,e)=>{var r=e(166);t.exports=function(t){return function(n){return r(n,t)}}},797:t=>{var n=Math.ceil,e=Math.max;t.exports=function(t,r,i,o){for(var a=-1,s=e(n((r-t)/(i||1)),0),c=Array(s);s--;)c[o?s:++a]=t,t+=i;return c}},4569:(t,n,e)=>{var r=e(5362),i=e(4468),o=e(8756);t.exports=function(t,n){return o(i(t,n,r),t+"")}},8116:(t,n,e)=>{var r=e(7596),i=e(8422),o=e(4363),a=e(5973),s=e(8780);t.exports=function(t,n,e,c){if(!a(t))return t;for(var u=-1,h=(n=i(n,t)).length,l=h-1,f=t;null!=f&&++u<h;){var _=s(n[u]),p=e;if("__proto__"===_||"constructor"===_||"prototype"===_)return t;if(u!=l){var y=f[_];void 0===(p=c?c(y,_,f):void 0)&&(p=a(y)?y:o(n[u+1])?[]:{})}r(f,_,p),f=f[_]}return t}},4293:t=>{t.exports=function(t,n,e){var r=-1,i=t.length;n<0&&(n=-n>i?0:i+n),(e=e>i?i:e)<0&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+n];return o}},3349:(t,n,e)=>{var r=e(5720),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},6535:t=>{t.exports=function(t){return function(n){return t(n)}}},9386:(t,n,e)=>{var r=e(8422),i=e(2972),o=e(8293),a=e(8780);t.exports=function(t,n){return n=r(n,t),null==(t=o(t,n))||delete t[a(i(n))]}},555:(t,n,e)=>{var r=e(7650);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},8422:(t,n,e)=>{var r=e(7236),i=e(3266),o=e(3879),a=e(1119);t.exports=function(t,n){return r(t)?t:i(t,n)?[t]:o(a(t))}},6051:(t,n,e)=>{var r=e(7596),i=e(999);t.exports=function(t,n,e,o){var a=!e;e||(e={});for(var s=-1,c=n.length;++s<c;){var u=n[s],h=o?o(e[u],t[u],u,e,t):void 0;void 0===h&&(h=t[u]),a?i(e,u,h):r(e,u,h)}return e}},2544:(t,n,e)=>{var r=e(4569),i=e(3108);t.exports=function(t){return r((function(n,e){var r=-1,o=e.length,a=o>1?e[o-1]:void 0,s=o>2?e[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(e[0],e[1],s)&&(a=o<3?void 0:a,o=1),n=Object(n);++r<o;){var c=e[r];c&&t(n,c,r,a)}return n}))}},3086:(t,n,e)=>{var r=e(8904),i=e(1580),o=e(2635);t.exports=function(t){return function(n,e,a){var s=Object(n);if(!i(n)){var c=r(e,3);n=o(n),e=function(t){return c(s[t],t,s)}}var u=t(n,e,a);return u>-1?s[c?n[u]:u]:void 0}}},9833:(t,n,e)=>{var r=e(797),i=e(3108),o=e(992);t.exports=function(t){return function(n,e,a){return a&&"number"!=typeof a&&i(n,e,a)&&(e=a=void 0),n=o(n),void 0===e?(e=n,n=0):e=o(e),a=void 0===a?n<e?1:-1:o(a),r(n,e,a,t)}}},9294:(t,n,e)=>{var r=e(9636);t.exports=function(t){return r(t)?void 0:t}},9346:(t,n,e)=>{var r=e(4457),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},2503:(t,n,e)=>{var r=e(1124),i=e(4793),o=e(555);t.exports=function(t,n,e,a,s,c){var u=1&e,h=t.length,l=n.length;if(h!=l&&!(u&&l>h))return!1;var f=c.get(t),_=c.get(n);if(f&&_)return f==n&&_==t;var p=-1,y=!0,x=2&e?new r:void 0;for(c.set(t,n),c.set(n,t);++p<h;){var v=t[p],d=n[p];if(a)var b=u?a(d,v,p,n,t,c):a(v,d,p,t,n,c);if(void 0!==b){if(b)continue;y=!1;break}if(x){if(!i(n,(function(t,n){if(!o(x,n)&&(v===t||s(v,t,e,a,c)))return x.push(n)}))){y=!1;break}}else if(v!==d&&!s(v,d,e,a,c)){y=!1;break}}return c.delete(t),c.delete(n),y}},6001:t=>{t.exports=function(t,n){return t===n||t!=t&&n!=n}},8784:(t,n,e)=>{var r=e(6094),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,o,a,s){var c=1&e,u=r(t),h=u.length;if(h!=r(n).length&&!c)return!1;for(var l=h;l--;){var f=u[l];if(!(c?f in n:i.call(n,f)))return!1}var _=s.get(t),p=s.get(n);if(_&&p)return _==n&&p==t;var y=!0;s.set(t,n),s.set(n,t);for(var x=c;++l<h;){var v=t[f=u[l]],d=n[f];if(o)var b=c?o(d,v,f,n,t,s):o(v,d,f,t,n,s);if(!(void 0===b?v===d||a(v,d,e,o,s):b)){y=!1;break}x||(x="constructor"==f)}if(y&&!x){var g=t.constructor,m=n.constructor;g==m||!("constructor"in t)||!("constructor"in n)||"function"==typeof g&&g instanceof g&&"function"==typeof m&&m instanceof m||(y=!1)}return s.delete(t),s.delete(n),y}},3368:(t,n,e)=>{var r=e(5453),i=e(4468),o=e(8756);t.exports=function(t){return o(i(t,void 0,r),t+"")}},4414:(t,n,e)=>{var r="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=r},6094:(t,n,e)=>{var r=e(3717)(Object.keys,Object);t.exports=r},5559:t=>{t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},9182:(t,n,e)=>{var r=e(1457),i=e(2635);t.exports=function(t){for(var n=i(t),e=n.length;e--;){var o=n[e],a=t[o];n[e]=[o,a,r(a)]}return n}},4457:t=>{t.exports=function(t,n){return null==t?void 0:t[n]}},1407:(t,n,e)=>{var r=e(3717)(Object.getPrototypeOf,Object);t.exports=r},6686:t=>{var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},7383:(t,n,e)=>{var r=e(8422),i=e(6981),o=e(7236),a=e(4363),s=e(9216),c=e(8780);t.exports=function(t,n,e){for(var u=-1,h=(n=r(n,t)).length,l=!1;++u<h;){var f=c(n[u]);if(!(l=null!=t&&e(t,f)))break;t=t[f]}return l||++u!=h?l:!!(h=null==t?0:t.length)&&s(h)&&a(f,h)&&(o(t)||i(t))}},1754:(t,n,e)=>{var r=e(4690),i=e(6981),o=e(7236),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},4363: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}},3108:t=>{t.exports=function(){return!1}},3266:(t,n,e)=>{var r=e(7236),i=e(2945),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,n){if(r(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=n&&t in Object(n)}},5003:t=>{t.exports=function(){return!1}},1457:(t,n,e)=>{var r=e(5973);t.exports=function(t){return t==t&&!r(t)}},7168:t=>{t.exports=function(){this.__data__=[],this.size=0}},6582:(t,n,e)=>{var r=e(3833),i=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0||(e==n.length-1?n.pop():i.call(n,e,1),--this.size,0))}},3867:(t,n,e)=>{var r=e(3833);t.exports=function(t){var n=this.__data__,e=r(n,t);return e<0?void 0:n[e][1]}},9557:(t,n,e)=>{var r=e(3833);t.exports=function(t){return r(this.__data__,t)>-1}},2726:(t,n,e)=>{var r=e(3833);t.exports=function(t,n){var e=this.__data__,i=r(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}},7375:t=>{t.exports=function(t,n){return function(e){return null!=e&&e[t]===n&&(void 0!==n||t in Object(e))}}},7085:t=>{t.exports=function(t){return t}},1782:(t,n,e)=>{t=e.nmd(t);var r=e(4414),i=n&&!n.nodeType&&n,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},3717:t=>{t.exports=function(t,n){return function(e){return t(n(e))}}},4468:(t,n,e)=>{var r=e(5198),i=Math.max;t.exports=function(t,n,e){return n=i(void 0===n?t.length-1:n,0),function(){for(var o=arguments,a=-1,s=i(o.length-n,0),c=Array(s);++a<s;)c[a]=o[n+a];a=-1;for(var u=Array(n+1);++a<n;)u[a]=o[a];return u[n]=e(c),r(t,this,u)}}},8293:(t,n,e)=>{var r=e(166),i=e(4293);t.exports=function(t,n){return n.length<2?t:r(t,i(n,0,-1))}},441:(t,n,e)=>{var r=e(4414),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},8756:t=>{t.exports=function(t){return t}},3879:(t,n,e)=>{var r=e(7085),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(i,(function(t,e,r,i){n.push(r?i.replace(o,"$1"):e||t)})),n}));t.exports=a},8780:t=>{t.exports=function(t){return t}},5720:t=>{var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},6782:(t,n,e)=>{var r=e(7596),i=e(6051),o=e(2544),a=e(1580),s=e(5003),c=e(2635),u=Object.prototype.hasOwnProperty,h=o((function(t,n){if(s(n)||a(n))i(n,c(n),t);else for(var e in n)u.call(n,e)&&r(t,e,n[e])}));t.exports=h},7901:(t,n,e)=>{var r=e(4569),i=e(6530),o=e(3108),a=e(5850),s=Object.prototype,c=s.hasOwnProperty,u=r((function(t,n){t=Object(t);var e=-1,r=n.length,u=r>2?n[2]:void 0;for(u&&o(n[0],n[1],u)&&(r=1);++e<r;)for(var h=n[e],l=a(h),f=-1,_=l.length;++f<_;){var p=l[f],y=t[p];(void 0===y||i(y,s[p])&&!c.call(t,p))&&(t[p]=h[p])}return t}));t.exports=u},6530:t=>{t.exports=function(t,n){return t===n||t!=t&&n!=n}},6786:(t,n,e)=>{var r=e(3086)(e(8611));t.exports=r},8611:(t,n,e)=>{var r=e(528),i=e(8904),o=e(5225),a=Math.max;t.exports=function(t,n,e){var s=null==t?0:t.length;if(!s)return-1;var c=null==e?0:o(e);return c<0&&(c=a(s+c,0)),r(t,i(n,3),c)}},5453:(t,n,e)=>{var r=e(314);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},3795:(t,n,e)=>{var r=e(166);t.exports=function(t,n,e){var i=null==t?void 0:r(t,n);return void 0===i?e:i}},3646:(t,n,e)=>{var r=e(7),i=e(7383);t.exports=function(t,n){return null!=t&&i(t,n,r)}},5362:t=>{t.exports=function(t){return t}},6981:t=>{t.exports=function(){return!1}},7236:t=>{var n=Array.isArray;t.exports=n},1580:(t,n,e)=>{var r=e(3839),i=e(9216);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},8752:t=>{t.exports=function(){return!1}},3839:(t,n,e)=>{var r=e(4318),i=e(5973);t.exports=function(t){if(!i(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},9216:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6866:t=>{t.exports=function(t){return null==t}},5973:t=>{t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},3387:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},9636:(t,n,e)=>{var r=e(4318),i=e(1407),o=e(3387),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,h=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var n=i(t);if(null===n)return!0;var e=u.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&c.call(e)==h}},2654:(t,n,e)=>{var r=e(1131),i=e(6535),o=e(1782),a=o&&o.isRegExp,s=a?i(a):r;t.exports=s},2945:t=>{t.exports=function(){return!1}},4812:t=>{t.exports=function(){return!1}},2635:(t,n,e)=>{var r=e(3717)(Object.keys,Object);t.exports=r},5850:t=>{t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},2972:t=>{t.exports=function(t){var n=null==t?0:t.length;return n?t[n-1]:void 0}},9086:(t,n,e)=>{var r=e(6460),i=e(2327),o=e(9386),a=e(8422),s=e(6051),c=e(9294),u=e(3368),h=e(5559),l=u((function(t,n){var e={};if(null==t)return e;var u=!1;n=r(n,(function(n){return n=a(n,t),u||(u=n.length>1),n})),s(t,h(t),e),u&&(e=i(e,7,c));for(var l=n.length;l--;)o(e,n[l]);return e}));t.exports=l},8423:(t,n,e)=>{var r=e(7410),i=e(3368)((function(t,n){return null==t?{}:r(t,n)}));t.exports=i},1651:(t,n,e)=>{var r=e(1712),i=e(4815),o=e(3266),a=e(8780);t.exports=function(t){return o(t)?r(a(t)):i(t)}},9717:(t,n,e)=>{var r=e(9833)();t.exports=r},992:(t,n,e)=>{var r=e(8746);t.exports=function(t){return t?Infinity===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},5225:(t,n,e)=>{var r=e(992);t.exports=function(t){var n=r(t),e=n%1;return n==n?e?n-e:n:0}},8746:(t,n,e)=>{var r=e(3349),i=e(5973),o=e(2945),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var e=s.test(t);return e||c.test(t)?u(t.slice(2),e?2:8):a.test(t)?NaN:+t}},1119:t=>{t.exports=function(t){return t}},459:(t,n,e)=>{"use strict";var r=e(5704);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,n,e,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function n(){return t}t.isRequired=t;var e={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return e.PropTypes=e,e}},216:(t,n,e)=>{t.exports=e(459)()},5704:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9787:n=>{"use strict";n.exports=t}},e={};function r(t){var i=e[t];if(void 0!==i)return i.exports;var o=e[t]={id:t,loaded:!1,exports:{}};return n[t](o,o.exports,r),o.loaded=!0,o.exports}r.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return r.d(n,{a:n}),n},r.d=(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=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var i={};return(()=>{"use strict";r.r(i),r.d(i,{CanvasBar:()=>zt,CanvasCurve:()=>rr,CanvasGroup:()=>qt,CanvasPoint:()=>lr,useCanvasContext:()=>Lt});var t={};r.r(t),r.d(t,{arc:()=>H,area:()=>Zt,areaRadial:()=>en,curveBasis:()=>Zn,curveBasisClosed:()=>Gn,curveBasisOpen:()=>Kn,curveBumpX:()=>sn,curveBumpY:()=>cn,curveBundle:()=>Jn,curveCardinal:()=>ee,curveCardinalClosed:()=>ie,curveCardinalOpen:()=>ae,curveCatmullRom:()=>ue,curveCatmullRomClosed:()=>le,curveCatmullRomOpen:()=>_e,curveLinear:()=>Bt,curveLinearClosed:()=>ye,curveMonotoneX:()=>Te,curveMonotoneY:()=>we,curveNatural:()=>Pe,curveStep:()=>Se,curveStepAfter:()=>Re,curveStepBefore:()=>Ee,line:()=>Ut,lineRadial:()=>nn,link:()=>fn,linkHorizontal:()=>_n,linkRadial:()=>yn,linkVertical:()=>pn,pie:()=>Ht,pointRadial:()=>rn,radialArea:()=>en,radialLine:()=>nn,stack:()=>De,stackOffsetDiverging:()=>Ie,stackOffsetExpand:()=>ze,stackOffsetNone:()=>Ae,stackOffsetSilhouette:()=>qe,stackOffsetWiggle:()=>We,stackOrderAppearance:()=>Xe,stackOrderAscending:()=>Be,stackOrderDescending:()=>$e,stackOrderInsideOut:()=>Ue,stackOrderNone:()=>Ce,stackOrderReverse:()=>Ze,symbol:()=>Bn,symbolAsterisk:()=>vn,symbolCircle:()=>dn,symbolCross:()=>bn,symbolDiamond:()=>On,symbolDiamond2:()=>Tn,symbolPlus:()=>wn,symbolSquare:()=>jn,symbolSquare2:()=>Mn,symbolStar:()=>En,symbolTriangle:()=>An,symbolTriangle2:()=>Nn,symbolWye:()=>qn,symbolX:()=>Wn,symbols:()=>Xn,symbolsFill:()=>Xn,symbolsStroke:()=>Yn});var n=r(9086),e=r.n(n),o=r(6782),a=r.n(o),s=r(9787),c=r.n(s),u=r(9636),h=r.n(u),l=r(6866),f=r.n(l),_=r(2635),p=r.n(_),y=(r(8423),r(1651),r(3839)),x=r.n(y);function v(t,n){return x()(t)?t(n):t}function d(t,n){return n.disableInlineStyles?{}:t&&p()(t).some((function(n){return x()(t[n])}))?p()(t).reduce((function(e,r){return e[r]=v(t[r],n),e}),{}):t}r(7901);var b=function(t,n){var e=n.scale,r=n.data,i=n.defaultBarWidth,o=n.style;if(t)return v(t,n);if(o.width)return o.width;var a=e.x.range(),s=Math.abs(a[1]-a[0]),c=r.length+2,u=(n.barRatio||.5)*(r.length<2?i:s/c);return Math.max(1,u)},g=function(t,n){var e={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};return t?h()(t)?function(t,n){var e={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},r=function(r,i){f()(t[r])?f()(t[i])||(e[r]=v(t[i],n)):e[r]=v(t[r],n)};return r("topLeft","top"),r("topRight","top"),r("bottomLeft","bottom"),r("bottomRight","bottom"),e}(t,n):(e.topLeft=v(t,n),e.topRight=v(t,n),e):e},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(n.disableInlineStyles)return{};var e=t.fill||"black",r={fill:"black",stroke:e};return d(a()(r,t),n)};const O=Math.PI,T=2*O,w=1e-6,j=T-w;function M(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function P(){return new M}M.prototype=P.prototype={constructor:M,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,a=this._y1,s=e-t,c=r-n,u=o-t,h=a-n,l=u*u+h*h;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(l>w)if(Math.abs(h*s-c*u)>w&&i){var f=e-o,_=r-a,p=s*s+c*c,y=f*f+_*_,x=Math.sqrt(p),v=Math.sqrt(l),d=i*Math.tan((O-Math.acos((p+l-y)/(2*x*v)))/2),b=d/v,g=d/x;Math.abs(b-1)>w&&(this._+="L"+(t+b*u)+","+(n+b*h)),this._+="A"+i+","+i+",0,0,"+ +(h*f>u*_)+","+(this._x1=t+g*s)+","+(this._y1=n+g*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var a=(e=+e)*Math.cos(r),s=e*Math.sin(r),c=t+a,u=n+s,h=1^o,l=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+u:(Math.abs(this._x1-c)>w||Math.abs(this._y1-u)>w)&&(this._+="L"+c+","+u),e&&(l<0&&(l=l%T+T),l>j?this._+="A"+e+","+e+",0,1,"+h+","+(t-a)+","+(n-s)+"A"+e+","+e+",0,1,"+h+","+(this._x1=c)+","+(this._y1=u):l>w&&(this._+="A"+e+","+e+",0,"+ +(l>=O)+","+h+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};const k=P;function S(t){return function(){return t}}const E=Math.abs,R=Math.atan2,A=Math.cos,C=Math.max,N=Math.min,L=Math.sin,D=Math.sqrt,z=1e-12,I=Math.PI,q=I/2,W=2*I;function X(t){return t>1?0:t<-1?I:Math.acos(t)}function Y(t){return t>=1?q:t<=-1?-q:Math.asin(t)}function B(t){return t.innerRadius}function F(t){return t.outerRadius}function $(t){return t.startAngle}function U(t){return t.endAngle}function Z(t){return t&&t.padAngle}function V(t,n,e,r,i,o,a,s){var c=e-t,u=r-n,h=a-i,l=s-o,f=l*c-h*u;if(!(f*f<z))return[t+(f=(h*(n-o)-l*(t-i))/f)*c,n+f*u]}function G(t,n,e,r,i,o,a){var s=t-e,c=n-r,u=(a?o:-o)/D(s*s+c*c),h=u*c,l=-u*s,f=t+h,_=n+l,p=e+h,y=r+l,x=(f+p)/2,v=(_+y)/2,d=p-f,b=y-_,g=d*d+b*b,m=i-o,O=f*y-p*_,T=(b<0?-1:1)*D(C(0,m*m*g-O*O)),w=(O*b-d*T)/g,j=(-O*d-b*T)/g,M=(O*b+d*T)/g,P=(-O*d+b*T)/g,k=w-x,S=j-v,E=M-x,R=P-v;return k*k+S*S>E*E+R*R&&(w=M,j=P),{cx:w,cy:j,x01:-h,y01:-l,x11:w*(i/m-1),y11:j*(i/m-1)}}function H(){var t=B,n=F,e=S(0),r=null,i=$,o=U,a=Z,s=null;function c(){var c,u,h=+t.apply(this,arguments),l=+n.apply(this,arguments),f=i.apply(this,arguments)-q,_=o.apply(this,arguments)-q,p=E(_-f),y=_>f;if(s||(s=c=k()),l<h&&(u=l,l=h,h=u),l>z)if(p>W-z)s.moveTo(l*A(f),l*L(f)),s.arc(0,0,l,f,_,!y),h>z&&(s.moveTo(h*A(_),h*L(_)),s.arc(0,0,h,_,f,y));else{var x,v,d=f,b=_,g=f,m=_,O=p,T=p,w=a.apply(this,arguments)/2,j=w>z&&(r?+r.apply(this,arguments):D(h*h+l*l)),M=N(E(l-h)/2,+e.apply(this,arguments)),P=M,S=M;if(j>z){var C=Y(j/h*L(w)),B=Y(j/l*L(w));(O-=2*C)>z?(g+=C*=y?1:-1,m-=C):(O=0,g=m=(f+_)/2),(T-=2*B)>z?(d+=B*=y?1:-1,b-=B):(T=0,d=b=(f+_)/2)}var F=l*A(d),$=l*L(d),U=h*A(m),Z=h*L(m);if(M>z){var H,K=l*A(b),Q=l*L(b),J=h*A(g),tt=h*L(g);if(p<I&&(H=V(F,$,J,tt,K,Q,U,Z))){var nt=F-H[0],et=$-H[1],rt=K-H[0],it=Q-H[1],ot=1/L(X((nt*rt+et*it)/(D(nt*nt+et*et)*D(rt*rt+it*it)))/2),at=D(H[0]*H[0]+H[1]*H[1]);P=N(M,(h-at)/(ot-1)),S=N(M,(l-at)/(ot+1))}}T>z?S>z?(x=G(J,tt,F,$,l,S,y),v=G(K,Q,U,Z,l,S,y),s.moveTo(x.cx+x.x01,x.cy+x.y01),S<M?s.arc(x.cx,x.cy,S,R(x.y01,x.x01),R(v.y01,v.x01),!y):(s.arc(x.cx,x.cy,S,R(x.y01,x.x01),R(x.y11,x.x11),!y),s.arc(0,0,l,R(x.cy+x.y11,x.cx+x.x11),R(v.cy+v.y11,v.cx+v.x11),!y),s.arc(v.cx,v.cy,S,R(v.y11,v.x11),R(v.y01,v.x01),!y))):(s.moveTo(F,$),s.arc(0,0,l,d,b,!y)):s.moveTo(F,$),h>z&&O>z?P>z?(x=G(U,Z,K,Q,h,-P,y),v=G(F,$,J,tt,h,-P,y),s.lineTo(x.cx+x.x01,x.cy+x.y01),P<M?s.arc(x.cx,x.cy,P,R(x.y01,x.x01),R(v.y01,v.x01),!y):(s.arc(x.cx,x.cy,P,R(x.y01,x.x01),R(x.y11,x.x11),!y),s.arc(0,0,h,R(x.cy+x.y11,x.cx+x.x11),R(v.cy+v.y11,v.cx+v.x11),y),s.arc(v.cx,v.cy,P,R(v.y11,v.x11),R(v.y01,v.x01),!y))):s.arc(0,0,h,m,g,y):s.lineTo(U,Z)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-I/2;return[A(r)*e,L(r)*e]},c.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:S(+n),c):t},c.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:S(+t),c):n},c.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:S(+t),c):e},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:S(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:S(+t),c):i},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:S(+t),c):o},c.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:S(+t),c):a},c.context=function(t){return arguments.length?(s=null==t?null:t,c):s},c}var K=function(t,n){return{x:t,y:n,distance:function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},add:function(t){return K(this.x+t.x,this.y+t.y)},subtract:function(t){return K(this.x-t.x,this.y-t.y)},scalarMult:function(t){return K(this.x*t,this.y*t)},scalarDivide:function(t){if(0===t)throw new Error("Division by 0 error");return K(this.x/t,this.y/t)},equals:function(t){return this.x===t.x&&this.y===t.y}}},Q=function(t,n){return{center:t,radius:n,hasIntersection:function(t){var n=this.center,e=t.center,r=this.radius,i=t.radius,o=n.distance(e);return!(o>r+i||o<Math.abs(r-i))},equals:function(t){var n=this.center,e=t.center;return this.radius===t.radius&&n.equals(e)},intersection:function(t){var n=this.center,e=t.center,r=this.radius,i=t.radius,o=n.distance(e);if(!this.hasIntersection(t)||this.equals(t))return[];var a=(Math.pow(r,2)-Math.pow(i,2)+Math.pow(o,2))/(2*o),s=Math.sqrt(Math.pow(r,2)-Math.pow(a,2)),c=n.add(e.subtract(n).scalarMult(a).scalarDivide(o)),u=n.x,h=n.y,l=e.x,f=e.y,_=c.x,p=c.y,y=[K(_-s*(f-h)/o,p+s*(l-u)/o),K(_+s*(f-h)/o,p-s*(l-u)/o)];return y.sort((function(t,n){return t.x-n.x})),y},solveX:function(t){var n=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.y,2));return[this.center.x-n,this.center.x+n]},solveY:function(t){var n=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.x,2));return[this.center.y-n,this.center.y+n]}}};function J(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function tt(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?J(Object(e),!0).forEach((function(n){nt(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):J(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function nt(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function et(t){return function(t){if(Array.isArray(t))return rt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return rt(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?rt(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rt(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var it=function(t,n){var e=t.x,r=t.x0,i=t.y,o=t.y0,a=t.horizontal,s=t.alignment||"middle",c="middle"===s?n/2:n,u=a?-1:1;return a?{x0:r,x1:e,y0:"start"===s?i:i-u*c,y1:"end"===s?i:i+u*c}:{x0:"start"===s?e:e-u*c,x1:"end"===s?e:e+u*c,y0:o,y1:i}},ot=function(t,n){var e=t.data,r=t.scale,i=void 0===e[n]._x1?"_x":"_x1";return r.x(e[n][i])},at=function(t){return-1*t+Math.PI/2},st=function(t,n,e){var r="".concat(n.topLeft," ").concat(n.topLeft," ").concat(e),i="".concat(n.topRight," ").concat(n.topRight," ").concat(e),o="".concat(n.bottomLeft," ").concat(n.bottomLeft," ").concat(e),a="".concat(n.bottomRight," ").concat(n.bottomRight," ").concat(e),s=["M","A ".concat(o,","),"L","A ".concat(r,","),"L","A ".concat(i,","),"L","A ".concat(a,",")].reduce((function(n,e,r){return n+"".concat(e," ").concat(t[r].x,", ").concat(t[r].y," \n")}),"");return"".concat(s," z")},ct=function(t,n,e){return t.getPath?function(t,n){return(0,t.getPath)(tt(tt({},t),it(t,n)))}(t,n):t.horizontal?function(t,n,e){var r=it(t,n),i=r.x0<r.x1?1:-1,o={topRight:i>0?e.topLeft:e.bottomLeft,bottomRight:i>0?e.topRight:e.bottomRight,bottomLeft:i>0?e.bottomRight:e.topRight,topLeft:i>0?e.bottomLeft:e.topLeft},a=function(t,n,e){var r=t.y0,i=t.y1,o=t.x0<t.x1?t.x0:t.x1,a=t.x0<t.x1?t.x1:t.x0,s=function(t){var s="top"===t,c=s?-1:1,u=s?i:r,h={x:o,y:u-c*e["".concat(t,"Left")]},l={x:o+e["".concat(t,"Left")],y:u},f={x:a-e["".concat(t,"Right")],y:u},_={x:a,y:u-c*e["".concat(t,"Right")]};if(l.x>f.x){var p=K(o+e["".concat(t,"Left")],u-c*e["".concat(t,"Left")]),y=Q(p,e["".concat(t,"Left")]),x=K(a-e["".concat(t,"Right")],u-c*e["".concat(t,"Right")]),v=Q(x,e["".concat(t,"Right")]),d=y.intersection(v);if(d.length>0){var b=d[n>0?1:0];l={x:b.x,y:b.y},f={x:b.x,y:b.y}}else if(e["".concat(t,"Right")]>e["".concat(t,"Left")]){var g=v.solveY(o)[s?0:1];h={x:o,y:g},l={x:o,y:g},f={x:o,y:g}}else{var m=y.solveY(a)[s?0:1];_={x:a,y:m},f={x:a,y:m},l={x:a,y:m}}}return[h,l,f,_]},c=s("top"),u=s("bottom");return[u[1],u[0]].concat(et(c),[u[3],u[2]])}(r,i,o);return st(a,o,"0 0 1")}(t,n,e):function(t,n,e){var r=it(t,n),i=r.y0>r.y1?1:-1,o=i>0?"0 0 1":"0 0 0",a=function(t,n,e){var r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=function(t){var s="Left"===t,c=s?1:-1,u=s?r:i,h={x:u+c*e["bottom".concat(t)],y:o},l={x:u,y:o-n*e["bottom".concat(t)]},f={x:u,y:a+n*e["top".concat(t)]},_={x:u+c*e["top".concat(t)],y:a};if(1===n?o-e["bottom".concat(t)]<a+e["top".concat(t)]:o+e["bottom".concat(t)]>a-e["top".concat(t)]){var p=K(u+c*e["top".concat(t)],a+n*e["top".concat(t)]),y=Q(p,e["top".concat(t)]),x=K(u+c*e["bottom".concat(t)],o-n*e["bottom".concat(t)]),v=Q(x,e["bottom".concat(t)]),d=y.intersection(v);if(d.length>0){var b=d[s?0:1];l={x:b.x,y:b.y},f={x:b.x,y:b.y}}else if(e["top".concat(t)]>e["bottom".concat(t)]){var g=y.solveX(o)[s?0:1];h={x:g,y:o},l={x:g,y:o},f={x:g,y:o}}else{var m=v.solveX(a)[s?0:1];l={x:m,y:a},f={x:m,y:a},_={x:m,y:a}}}var O=[h,l,f,_];return s?O:O.reverse()};return s("Left").concat(s("Right"))}(r,i,e);return st(a,e,o)}(t,n,e)},ut=function(t,n){return function(t,n){var e,r,i=t.datum,o=t.scale,a=t.index,s=t.alignment,c=t.style,u=o.y(i._y0||0),h=o.y(void 0!==i._y1?i._y1:i._y),l=o.x(void 0!==i._x1?i._x1:i._x);if(c.width){var f=function(t,n){var e=t.scale,r=e.y.range(),i=Math.max.apply(Math,et(r)),o=Math.abs(e.x.range()[1]-e.x.range()[0]);return n/(2*Math.PI*i)*o}(t,c.width),_="middle"===s?f/2:f;e="start"===s?l:l-_,r="end"===s?l:l+_}else e=function(t,n){var e=t.data,r=t.scale,i=t.alignment,o=ot(t,n),a=Math.abs(r.x.range()[1]-r.x.range()[0]),s=0===n?ot(t,e.length-1)-2*Math.PI:ot(t,n-1);return 0===n&&a<2*Math.PI?r.x.range()[0]:"start"===i||"end"===i?"start"===i?s:o:(o+s)/2}(t,a),r=function(t,n){var e=t.data,r=t.scale,i=t.alignment,o=ot(t,n),a=Math.abs(r.x.range()[1]-r.x.range()[0]),s=r.x.range()[1]===2*Math.PI?ot(t,0)+2*Math.PI:r.x.range()[1],c=n===e.length-1?ot(t,0)+2*Math.PI:ot(t,n+1);return n===e.length-1&&a<2*Math.PI?s:"start"===i||"end"===i?"start"===i?o:c:(o+c)/2}(t,a);var p=function(t){return H().innerRadius(u).outerRadius(h).startAngle(at(e)).endAngle(at(r)).cornerRadius(n[t])()},y=function(t){var n=p("".concat(t,"Right")),e=n.match(/[A-Z]/g),r=n.split(/[A-Z]/).slice(1),i=e.indexOf("L"),o=p("".concat(t,"Left")),a=o.match(/[A-Z]/g),s=o.split(/[A-Z]/).slice(1),c=a.indexOf("L");return{rightMoves:e,rightCoords:r,rightMiddle:i,leftMoves:a,leftCoords:s,leftMiddle:c}},x=function(){var t,i,o=n.topRight,a=n.topLeft,s=h*Math.abs(r-e),c=y("top"),u=c.rightMoves,l=c.rightCoords,f=c.rightMiddle,_=c.leftMoves,p=c.leftCoords,x=c.leftMiddle;if(o===a||s<2*o+2*a)t=o>a?u:_,i=o>a?l:p;else{var v,d=function(t){return t<3},b=a>o&&d(f)?1:2;if(o>a){var g=d(f)?x:x-2;v=d(x)?x-1:g}else{var m=d(x)?1:2;v=d(f)?m:x-2}t=[].concat(et(u.slice(0,b)),et(_.slice(v))),i=[].concat(et(l.slice(0,b)),et(p.slice(v)))}var O=t.indexOf("L"),T=t.slice(0,O),w=i.slice(0,O);return T.map((function(t,n){return{command:t,coords:w[n].split(",")}}))}(),v=function(){var t,i,o=n.bottomRight,a=n.bottomLeft,s=u*Math.abs(r-e),c=y("bottom"),h=c.rightMoves,l=c.rightCoords,f=c.rightMiddle,_=c.leftMoves,p=c.leftCoords,x=c.leftMiddle;if(o===a||s<2*o+2*a)t=o>a?h:_,i=o>a?l:p;else{var v=function(t,n){return t.length-n<4},d=(o>a?v(h,f):v(_,x))?-1:-3;t=[].concat(et(_.slice(0,x+2)),et(h.slice(d))),i=[].concat(et(p.slice(0,x+2)),et(l.slice(d)))}var b=t.indexOf("L"),g=t.slice(b,-1),m=i.slice(b,-1);return g.map((function(t,n){return{command:t,coords:m[n].split(",")}}))}(),d=[].concat(et(x),et(v)).reduce((function(t,n){return t+"".concat(n.command," ").concat(n.coords.join())}),"");return"".concat(d," z")}(t,n)},ht=r(216),lt=r.n(ht),ft=r(2654),_t=r.n(ft),pt=r(6786),yt=r.n(pt),xt=function(t){var n=function(n,e,r,i){var o=e[r];if(null==o)return n?new Error("Required `".concat(r,"` was not specified in `").concat(i,"`.")):null;for(var a=arguments.length,s=new Array(a>4?a-4:0),c=4;c<a;c++)s[c-4]=arguments[c];return t.apply(void 0,[e,r,i].concat(s))},e=n.bind(null,!1);return e.isRequired=n.bind(null,!0),e},vt=function(){return null},dt=function(){},bt=function(t){return void 0===t?dt:null===t?vt:t.constructor},gt=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)};function mt(t){return xt((function(n,e,r){for(var i=arguments.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];return t.reduce((function(t,i){return t||i.apply(void 0,[n,e,r].concat(o))}),void 0)}))}var Ot=xt((function(t,n,e){var r=t[n];if("number"!=typeof r||r<0)return new Error("`".concat(n,"` in `").concat(e,"` must be a non-negative number."))})),Tt=xt((function(t,n,e){var r=t[n];if("number"!=typeof r||r%1!=0)return new Error("`".concat(n,"` in `").concat(e,"` must be an integer."))})),wt=(xt((function(t,n,e){var r=t[n];if("number"!=typeof r||r<=0)return new Error("`".concat(n,"` in `").concat(e,"` must be a number greater than zero."))})),xt((function(t,n,e){var r=t[n];if(!Array.isArray(r)||2!==r.length||r[1]===r[0])return new Error("`".concat(n,"` in `").concat(e,"` must be an array of two unique numeric values."))}))),jt=xt((function(t,n,e){var r;if(r=t[n],!(x()(r)?x()(r.copy)&&x()(r.domain)&&x()(r.range):"string"==typeof r&&-1!==["linear","time","log","sqrt"].indexOf(r)))return new Error("`".concat(n,"` in `").concat(e,"` must be a d3 scale."))})),Mt=(xt((function(t,n,e){var r=t[n];if(!Array.isArray(r))return new Error("`".concat(n,"` in `").concat(e,"` must be an array."));if(!(r.length<2)){var i=bt(r[0]),o=yt()(r,(function(t){return i!==bt(t)}));if(o){var a=gt(r[0]),s=gt(o);return new Error("Expected `".concat(n,"` in `").concat(e,"` to be a ")+"homogeneous array, but found types `".concat(a,"` and ")+"`".concat(s,"`."))}}})),xt((function(t,n){if(t[n]&&Array.isArray(t[n])&&t[n].length!==t.data.length)return new Error("Length of data and ".concat(n," arrays must match."))})),xt((function(t,n,e){if(t[n]&&!_t()(t[n]))return new Error("`".concat(n,"` in `").concat(e,"` must be a regular expression."))})),lt().oneOfType([lt().arrayOf(lt().string),lt().shape({x:lt().arrayOf(lt().string),y:lt().arrayOf(lt().string)})]),lt().oneOfType([lt().array,lt().object]),lt().element,lt().bool,lt().element,lt().oneOfType([lt().func,lt().array]),lt().oneOfType([lt().func,mt([Tt,Ot]),lt().string,lt().arrayOf(lt().string)]),lt().oneOf(["ascending","descending"]),lt().shape({parent:lt().object,data:lt().object,labels:lt().object}),lt().oneOfType([lt().func,mt([Tt,Ot]),lt().string,lt().arrayOf(lt().string)]),lt().oneOfType([lt().func,mt([Tt,Ot]),lt().string,lt().arrayOf(lt().string)]),lt().oneOfType([lt().func,mt([Tt,Ot]),lt().string,lt().arrayOf(lt().string)]),lt().oneOfType([lt().bool,lt().object]),lt().element,lt().oneOfType([wt,lt().shape({x:wt,y:wt})]),lt().oneOfType([lt().number,lt().instanceOf(Date),lt().shape({x:lt().oneOfType([lt().number,lt().instanceOf(Date)]),y:lt().oneOfType([lt().number,lt().instanceOf(Date)])})]),lt().oneOfType([lt().number,lt().instanceOf(Date),lt().shape({x:lt().oneOfType([lt().number,lt().instanceOf(Date)]),y:lt().oneOfType([lt().number,lt().instanceOf(Date)])})]),lt().oneOfType([lt().shape({x:lt().oneOfType([lt().number,lt().arrayOf(lt().number)]),y:lt().oneOfType([lt().number,lt().arrayOf(lt().number)])}),lt().number,lt().arrayOf(lt().number)]),lt().oneOfType([lt().func,mt([Tt,Ot]),lt().string]),lt().arrayOf(lt().shape({target:lt().oneOf(["data","labels","parent"]),eventKey:lt().oneOfType([lt().array,mt([Tt,Ot]),lt().string]),eventHandlers:lt().object})),lt().arrayOf(lt().shape({callback:lt().func,childName:lt().oneOfType([lt().string,lt().array]),eventKey:lt().oneOfType([lt().array,mt([Tt,Ot]),lt().string]),mutation:lt().func,target:lt().oneOfType([lt().string,lt().array])})),lt().element,lt().string,lt().shape({x:lt().number,y:lt().number}),lt().oneOfType([lt().number,lt().shape({top:lt().number,bottom:lt().number,left:lt().number,right:lt().number})]),lt().bool,lt().oneOfType([wt,lt().shape({x:wt,y:wt})]),lt().oneOfType([jt,lt().shape({x:jt,y:jt})]),lt().shape({events:lt().array,getEventState:lt().func}),lt().oneOfType([lt().bool,lt().shape({x:lt().oneOfType([lt().bool]),y:lt().oneOfType([lt().bool])})]),lt().bool,lt().object,{active:lt().bool,ariaLabel:lt().oneOfType([lt().string,lt().func]),className:lt().string,clipPath:lt().string,data:lt().oneOfType([lt().array,lt().object]),desc:lt().oneOfType([lt().string,lt().func]),disableInlineStyles:lt().bool,events:lt().object,id:lt().oneOfType([lt().number,lt().string,lt().func]),index:lt().oneOfType([lt().number,lt().string]),origin:lt().shape({x:lt().number,y:lt().number}),polar:lt().bool,role:lt().string,scale:lt().oneOfType([jt,lt().shape({x:jt,y:jt})]),shapeRendering:lt().string,style:lt().object,tabIndex:lt().oneOfType([lt().number,lt().func]),transform:lt().string}),Pt=["desc"];const kt=function(t){var n=t.desc,e=function(t,n){if(null==t)return{};var e,r,i=function(t,n){if(null==t)return{};var e,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)e=o[r],n.indexOf(e)>=0||(i[e]=t[e]);return i}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)e=o[r],n.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}(t,Pt);return n?c().createElement("path",e,c().createElement("desc",null,n)):c().createElement("path",e)};function St(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function Et(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?St(Object(e),!0).forEach((function(n){Rt(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):St(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function Rt(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var At=function(t){t=function(t){var n=m(t.style,t),e=b(t.barWidth,a()({},t,{style:n})),r=g(t.cornerRadius,a()({},t,{style:n,barWidth:e})),i=v(t.ariaLabel,t),o=v(t.desc,t),s=v(t.id,t),c=v(t.tabIndex,t);return a()({},t,{ariaLabel:i,style:n,barWidth:e,cornerRadius:r,desc:o,id:s,tabIndex:c})}(t);var n=t,e=n.polar,r=n.origin,i=n.style,o=n.barWidth,s=n.cornerRadius,u=e?ut(t,s):ct(t,o,s),h=e&&r?"translate(".concat(r.x,", ").concat(r.y,")"):void 0;return c().cloneElement(t.pathComponent,Et(Et({},t.events),{},{"aria-label":t.ariaLabel,style:i,d:u,className:t.className,clipPath:t.clipPath,desc:t.desc,index:t.index,role:t.role,shapeRendering:t.shapeRendering,transform:t.transform||h,tabIndex:t.tabIndex}))};At.propTypes=Et(Et({},Mt),{},{alignment:lt().oneOf(["start","middle","end"]),barRatio:lt().number,barWidth:lt().oneOfType([lt().number,lt().func]),cornerRadius:lt().oneOfType([lt().number,lt().func,lt().shape({top:lt().oneOfType([lt().number,lt().func]),topLeft:lt().oneOfType([lt().number,lt().func]),topRight:lt().oneOfType([lt().number,lt().func]),bottom:lt().oneOfType([lt().number,lt().func]),bottomLeft:lt().oneOfType([lt().number,lt().func]),bottomRight:lt().oneOfType([lt().number,lt().func])})]),datum:lt().object,getPath:lt().func,horizontal:lt().bool,pathComponent:lt().element,width:lt().number,x:lt().number,y:lt().number,y0:lt().number}),At.defaultProps={defaultBarWidth:8,pathComponent:c().createElement(kt,null),role:"presentation",shapeRendering:"auto"};const Ct=At;var Nt=c().createContext(),Lt=function(){var t=c().useContext(Nt);if(!t)throw new Error("This component must be wrapped in a CanvasContext.Provider component.\n Try setting groupComponent={<CanvasGroup />} in your chart component.");return t},Dt=function(t){var n,e,r=Lt().canvasRef,i=function(t){var n=m(t.style,t),e=b(t.barWidth,a()({},t,{style:n})),r=g(t.cornerRadius,a()({},t,{style:n,barWidth:e}));return a()({},t,{style:n,barWidth:e,cornerRadius:r})}(t),o=i.polar,s=i.style,u=i.barWidth,h=i.cornerRadius,l=i.origin,f=c().useMemo((function(){var t=o?ut(i,h):ct(i,u,h);return new Path2D(t)}),[o,u,h,i]),_=(n=f,e=c().useRef(),c().useEffect((function(){e.current=n})),e.current),p=c().useCallback((function(t,n){t.fillStyle=s.fill,t.strokeStyle=s.stroke,t.globalAlpha=s.fillOpacity,t.lineWidth=s.strokeWidth,o&&t.translate(l.x,l.y),t.fill(n),t.setTransform(1,0,0,1,0,0)}),[s,l,o]),y=c().useCallback((function(t){_&&(t.save(),t.lineWidth=s.strokeWidth+2,t.globalCompositeOperation="destination-out",p(t,_),t.stroke(_),t.restore())}),[p,_,s]);return c().useEffect((function(){var t=r.current.getContext("2d");y(t),p(t,f)}),[r,p,o,u,h,i,f,y]),null};Dt.propTypes=e()(Ct.propTypes,"pathComponent");const zt=Dt;var It=function(t){var n=c().useRef(),e=t.children,r=t.width,i=t.height,o=t.clipWidth,a=t.padding,s=c().useCallback((function(t){return t.clearRect(0,0,r,i)}),[r,i]),u=c().useCallback((function(t){var n=r-a.right-a.left;t.clearRect(r-a.right,0,-1*(n-o),i)}),[r,i,a,o]);return c().createElement(Nt.Provider,{value:{canvasRef:n,clear:s,clip:u}},c().createElement("foreignObject",{width:r,height:i,x:0,y:0},c().createElement("canvas",{width:r,height:i,ref:n})),e)};It.propTypes={"aria-label":lt().string,children:lt().oneOfType([lt().arrayOf(lt().node),lt().node]),className:lt().string,clipWidth:Ot,height:lt().number,padding:lt().oneOfType([lt().number,lt().shape({top:lt().number,bottom:lt().number,left:lt().number,right:lt().number})]),width:lt().number},It.role="container",It.displayName="CanvasGroup";const qt=It;var Wt=Array.prototype.slice;function Xt(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Yt(t){this._context=t}function Bt(t){return new Yt(t)}function Ft(t){return t[0]}function $t(t){return t[1]}function Ut(t,n){var e=S(!0),r=null,i=Bt,o=null;function a(a){var s,c,u,h=(a=Xt(a)).length,l=!1;for(null==r&&(o=i(u=k())),s=0;s<=h;++s)!(s<h&&e(c=a[s],s,a))===l&&((l=!l)?o.lineStart():o.lineEnd()),l&&o.point(+t(c,s,a),+n(c,s,a));if(u)return o=null,u+""||null}return t="function"==typeof t?t:void 0===t?Ft:S(t),n="function"==typeof n?n:void 0===n?$t:S(n),a.x=function(n){return arguments.length?(t="function"==typeof n?n:S(+n),a):t},a.y=function(t){return arguments.length?(n="function"==typeof t?t:S(+t),a):n},a.defined=function(t){return arguments.length?(e="function"==typeof t?t:S(!!t),a):e},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a}function Zt(t,n,e){var r=null,i=S(!0),o=null,a=Bt,s=null;function c(c){var u,h,l,f,_,p=(c=Xt(c)).length,y=!1,x=new Array(p),v=new Array(p);for(null==o&&(s=a(_=k())),u=0;u<=p;++u){if(!(u<p&&i(f=c[u],u,c))===y)if(y=!y)h=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),l=u-1;l>=h;--l)s.point(x[l],v[l]);s.lineEnd(),s.areaEnd()}y&&(x[u]=+t(f,u,c),v[u]=+n(f,u,c),s.point(r?+r(f,u,c):x[u],e?+e(f,u,c):v[u]))}if(_)return s=null,_+""||null}function u(){return Ut().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?Ft:S(+t),n="function"==typeof n?n:S(void 0===n?0:+n),e="function"==typeof e?e:void 0===e?$t:S(+e),c.x=function(n){return arguments.length?(t="function"==typeof n?n:S(+n),r=null,c):t},c.x0=function(n){return arguments.length?(t="function"==typeof n?n:S(+n),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:S(+t),c):r},c.y=function(t){return arguments.length?(n="function"==typeof t?t:S(+t),e=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:S(+t),c):n},c.y1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:S(+t),c):e},c.lineX0=c.lineY0=function(){return u().x(t).y(n)},c.lineY1=function(){return u().x(t).y(e)},c.lineX1=function(){return u().x(r).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:S(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),c):o},c}function Vt(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function Gt(t){return t}function Ht(){var t=Gt,n=Vt,e=null,r=S(0),i=S(W),o=S(0);function a(a){var s,c,u,h,l,f=(a=Xt(a)).length,_=0,p=new Array(f),y=new Array(f),x=+r.apply(this,arguments),v=Math.min(W,Math.max(-W,i.apply(this,arguments)-x)),d=Math.min(Math.abs(v)/f,o.apply(this,arguments)),b=d*(v<0?-1:1);for(s=0;s<f;++s)(l=y[p[s]=s]=+t(a[s],s,a))>0&&(_+=l);for(null!=n?p.sort((function(t,e){return n(y[t],y[e])})):null!=e&&p.sort((function(t,n){return e(a[t],a[n])})),s=0,u=_?(v-f*b)/_:0;s<f;++s,x=h)c=p[s],h=x+((l=y[c])>0?l*u:0)+b,y[c]={data:a[c],index:s,value:l,startAngle:x,endAngle:h,padAngle:d};return y}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:S(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,e=null,a):n},a.sort=function(t){return arguments.length?(e=t,n=null,a):e},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:S(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:S(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:S(+t),a):o},a}Yt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Kt=Jt(Bt);function Qt(t){this._curve=t}function Jt(t){function n(n){return new Qt(t(n))}return n._curve=t,n}function tn(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(Jt(t)):n()._curve},t}function nn(){return tn(Ut().curve(Kt))}function en(){var t=Zt().curve(Kt),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return tn(e())},delete t.lineX0,t.lineEndAngle=function(){return tn(r())},delete t.lineX1,t.lineInnerRadius=function(){return tn(i())},delete t.lineY0,t.lineOuterRadius=function(){return tn(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(Jt(t)):n()._curve},t}function rn(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}Qt.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};class on{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}class an{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,0==this._point++)this._x0=t,this._y0=n;else{const e=rn(this._x0,this._y0),r=rn(this._x0,this._y0=(this._y0+n)/2),i=rn(t,this._y0),o=rn(t,n);this._context.moveTo(...e),this._context.bezierCurveTo(...r,...i,...o)}}}function sn(t){return new on(t,!0)}function cn(t){return new on(t,!1)}function un(t){return new an(t)}function hn(t){return t.source}function ln(t){return t.target}function fn(t){let n=hn,e=ln,r=Ft,i=$t,o=null,a=null;function s(){let s;const c=Wt.call(arguments),u=n.apply(this,c),h=e.apply(this,c);if(null==o&&(a=t(s=k())),a.lineStart(),c[0]=u,a.point(+r.apply(this,c),+i.apply(this,c)),c[0]=h,a.point(+r.apply(this,c),+i.apply(this,c)),a.lineEnd(),s)return a=null,s+""||null}return s.source=function(t){return arguments.length?(n=t,s):n},s.target=function(t){return arguments.length?(e=t,s):e},s.x=function(t){return arguments.length?(r="function"==typeof t?t:S(+t),s):r},s.y=function(t){return arguments.length?(i="function"==typeof t?t:S(+t),s):i},s.context=function(n){return arguments.length?(null==n?o=a=null:a=t(o=n),s):o},s}function _n(){return fn(sn)}function pn(){return fn(cn)}function yn(){const t=fn(un);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const xn=D(3),vn={draw(t,n){const e=.59436*D(n+N(n/28,.75)),r=e/2,i=r*xn;t.moveTo(0,e),t.lineTo(0,-e),t.moveTo(-i,-r),t.lineTo(i,r),t.moveTo(-i,r),t.lineTo(i,-r)}},dn={draw(t,n){const e=D(n/I);t.moveTo(e,0),t.arc(0,0,e,0,W)}},bn={draw(t,n){const e=D(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},gn=D(1/3),mn=2*gn,On={draw(t,n){const e=D(n/mn),r=e*gn;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},Tn={draw(t,n){const e=.62625*D(n);t.moveTo(0,-e),t.lineTo(e,0),t.lineTo(0,e),t.lineTo(-e,0),t.closePath()}},wn={draw(t,n){const e=.87559*D(n-N(n/7,2));t.moveTo(-e,0),t.lineTo(e,0),t.moveTo(0,e),t.lineTo(0,-e)}},jn={draw(t,n){const e=D(n),r=-e/2;t.rect(r,r,e,e)}},Mn={draw(t,n){const e=.4431*D(n);t.moveTo(e,e),t.lineTo(e,-e),t.lineTo(-e,-e),t.lineTo(-e,e),t.closePath()}},Pn=L(I/10)/L(7*I/10),kn=L(W/10)*Pn,Sn=-A(W/10)*Pn,En={draw(t,n){const e=D(.8908130915292852*n),r=kn*e,i=Sn*e;t.moveTo(0,-e),t.lineTo(r,i);for(let n=1;n<5;++n){const o=W*n/5,a=A(o),s=L(o);t.lineTo(s*e,-a*e),t.lineTo(a*r-s*i,s*r+a*i)}t.closePath()}},Rn=D(3),An={draw(t,n){const e=-D(n/(3*Rn));t.moveTo(0,2*e),t.lineTo(-Rn*e,-e),t.lineTo(Rn*e,-e),t.closePath()}},Cn=D(3),Nn={draw(t,n){const e=.6824*D(n),r=e/2,i=e*Cn/2;t.moveTo(0,-e),t.lineTo(i,r),t.lineTo(-i,r),t.closePath()}},Ln=-.5,Dn=D(3)/2,zn=1/D(12),In=3*(zn/2+1),qn={draw(t,n){const e=D(n/In),r=e/2,i=e*zn,o=r,a=e*zn+e,s=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,c),t.lineTo(Ln*r-Dn*i,Dn*r+Ln*i),t.lineTo(Ln*o-Dn*a,Dn*o+Ln*a),t.lineTo(Ln*s-Dn*c,Dn*s+Ln*c),t.lineTo(Ln*r+Dn*i,Ln*i-Dn*r),t.lineTo(Ln*o+Dn*a,Ln*a-Dn*o),t.lineTo(Ln*s+Dn*c,Ln*c-Dn*s),t.closePath()}},Wn={draw(t,n){const e=.6189*D(n-N(n/6,1.7));t.moveTo(-e,-e),t.lineTo(e,e),t.moveTo(-e,e),t.lineTo(e,-e)}},Xn=[dn,bn,On,jn,En,An,qn],Yn=[dn,wn,Wn,Nn,vn,Mn,Tn];function Bn(t,n){let e=null;function r(){let r;if(e||(e=r=k()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return t="function"==typeof t?t:S(t||dn),n="function"==typeof n?n:S(void 0===n?64:+n),r.type=function(n){return arguments.length?(t="function"==typeof n?n:S(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:S(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r}function Fn(){}function $n(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function Un(t){this._context=t}function Zn(t){return new Un(t)}function Vn(t){this._context=t}function Gn(t){return new Vn(t)}function Hn(t){this._context=t}function Kn(t){return new Hn(t)}function Qn(t,n){this._basis=new Un(t),this._beta=n}Un.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:$n(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:$n(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Vn.prototype={areaStart:Fn,areaEnd:Fn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:$n(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Hn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:$n(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Qn.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],a=t[e]-i,s=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*n[c]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const Jn=function t(n){function e(t){return 1===n?new Un(t):new Qn(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function te(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function ne(t,n){this._context=t,this._k=(1-n)/6}ne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:te(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:te(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const ee=function t(n){function e(t){return new ne(t,n)}return e.tension=function(n){return t(+n)},e}(0);function re(t,n){this._context=t,this._k=(1-n)/6}re.prototype={areaStart:Fn,areaEnd:Fn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:te(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const ie=function t(n){function e(t){return new re(t,n)}return e.tension=function(n){return t(+n)},e}(0);function oe(t,n){this._context=t,this._k=(1-n)/6}oe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:te(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const ae=function t(n){function e(t){return new oe(t,n)}return e.tension=function(n){return t(+n)},e}(0);function se(t,n,e){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>z){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>z){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-n*t._l12_2a)/h,a=(a*u+t._y1*t._l23_2a-e*t._l12_2a)/h}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function ce(t,n){this._context=t,this._alpha=n}ce.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:se(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const ue=function t(n){function e(t){return n?new ce(t,n):new ne(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function he(t,n){this._context=t,this._alpha=n}he.prototype={areaStart:Fn,areaEnd:Fn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:se(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const le=function t(n){function e(t){return n?new he(t,n):new re(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function fe(t,n){this._context=t,this._alpha=n}fe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:se(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const _e=function t(n){function e(t){return n?new fe(t,n):new oe(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function pe(t){this._context=t}function ye(t){return new pe(t)}function xe(t){return t<0?-1:1}function ve(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(e-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(xe(o)+xe(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function de(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function be(t,n,e){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*n,o-s,a-s*e,o,a)}function ge(t){this._context=t}function me(t){this._context=new Oe(t)}function Oe(t){this._context=t}function Te(t){return new ge(t)}function we(t){return new me(t)}function je(t){this._context=t}function Me(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,o[n]=4,a[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/o[n-1],o[n]-=e,a[n]-=e*a[n-1];for(i[r-1]=a[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(a[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}function Pe(t){return new je(t)}function ke(t,n){this._context=t,this._t=n}function Se(t){return new ke(t,.5)}function Ee(t){return new ke(t,0)}function Re(t){return new ke(t,1)}function Ae(t,n){if((i=t.length)>1)for(var e,r,i,o=1,a=t[n[0]],s=a.length;o<i;++o)for(r=a,a=t[n[o]],e=0;e<s;++e)a[e][1]+=a[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}function Ce(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e}function Ne(t,n){return t[n]}function Le(t){const n=[];return n.key=t,n}function De(){var t=S([]),n=Ce,e=Ae,r=Ne;function i(i){var o,a,s=Array.from(t.apply(this,arguments),Le),c=s.length,u=-1;for(const t of i)for(o=0,++u;o<c;++o)(s[o][u]=[0,+r(t,s[o].key,u,i)]).data=t;for(o=0,a=Xt(n(s));o<c;++o)s[a[o]].index=o;return e(s,a),s}return i.keys=function(n){return arguments.length?(t="function"==typeof n?n:S(Array.from(n)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:S(+t),i):r},i.order=function(t){return arguments.length?(n=null==t?Ce:"function"==typeof t?t:S(Array.from(t)),i):n},i.offset=function(t){return arguments.length?(e=null==t?Ae:t,i):e},i}function ze(t,n){if((r=t.length)>0){for(var e,r,i,o=0,a=t[0].length;o<a;++o){for(i=e=0;e<r;++e)i+=t[e][o][1]||0;if(i)for(e=0;e<r;++e)t[e][o][1]/=i}Ae(t,n)}}function Ie(t,n){if((s=t.length)>0)for(var e,r,i,o,a,s,c=0,u=t[n[0]].length;c<u;++c)for(o=a=0,e=0;e<s;++e)(i=(r=t[n[e]][c])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function qe(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<e;++a)s+=t[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}Ae(t,n)}}function We(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,a=1;a<r;++a){for(var s=0,c=0,u=0;s<i;++s){for(var h=t[n[s]],l=h[a][1]||0,f=(l-(h[a-1][1]||0))/2,_=0;_<s;++_){var p=t[n[_]];f+=(p[a][1]||0)-(p[a-1][1]||0)}c+=l,u+=f*l}e[a-1][1]+=e[a-1][0]=o,c&&(o-=u/c)}e[a-1][1]+=e[a-1][0]=o,Ae(t,n)}}function Xe(t){var n=t.map(Ye);return Ce(t).sort((function(t,e){return n[t]-n[e]}))}function Ye(t){for(var n,e=-1,r=0,i=t.length,o=-1/0;++e<i;)(n=+t[e][1])>o&&(o=n,r=e);return r}function Be(t){var n=t.map(Fe);return Ce(t).sort((function(t,e){return n[t]-n[e]}))}function Fe(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function $e(t){return Be(t).reverse()}function Ue(t){var n,e,r=t.length,i=t.map(Fe),o=Xe(t),a=0,s=0,c=[],u=[];for(n=0;n<r;++n)e=o[n],a<s?(a+=i[e],c.push(e)):(s+=i[e],u.push(e));return u.reverse().concat(c)}function Ze(t){return Ce(t).reverse()}pe.prototype={areaStart:Fn,areaEnd:Fn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}},ge.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:be(this,this._t0,de(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,be(this,de(this,e=ve(this,t,n)),e);break;default:be(this,this._t0,e=ve(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(me.prototype=Object.create(ge.prototype)).point=function(t,n){ge.prototype.point.call(this,n,t)},Oe.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},je.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=Me(t),i=Me(n),o=0,a=1;a<e;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],n[a]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}},ke.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var Ve=function(t){return null!=(void 0!==t._y1?t._y1:t._y)&&null!==t._y0},Ge=function(t){return function(n){return t.x(void 0!==n._x1?n._x1:n._x)}},He=function(t){return function(n){return t.y(void 0!==n._y1?n._y1:n._y)}},Ke=function(t){return"curve".concat(function(t){return t&&t[0].toUpperCase()+t.slice(1)}(t))},Qe=function(n){var e=n.polar,r=n.scale,i=n.horizontal,o=!e,a=void 0===n.openCurve?o:n.openCurve,s="function"==typeof n.interpolation&&n.interpolation,c="string"==typeof n.interpolation&&(a?Ke(n.interpolation):"".concat(Ke(n.interpolation),"Closed"));return e?nn().defined(Ve).curve(s||t[c]).angle(function(t){return function(n){return-1*t.x(void 0!==n._x1?n._x1:n._x)+Math.PI/2}}(r)).radius(He(r)):Ut().defined(Ve).curve(s||t[c]).x(i?He(r):Ge(r)).y(i?Ge(r):He(r))};function Je(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function tr(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Je(Object(e),!0).forEach((function(n){nr(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Je(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function nr(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var er=function(t){var n=Lt(),e=n.canvasRef,r=n.clear,i=n.clip,o=t.style,a=t.data,s=o.stroke,u=o.strokeWidth,h=c().useCallback((function(n){var e=Qe(t);n.strokeStyle=s,n.lineWidth=u,e.context(n)(a),n.stroke()}),[a,t,s,u]);return c().useEffect((function(){var t=e.current.getContext("2d");r(t),h(t),i(t)}),[e,h,r,i]),null};er.propTypes=tr(tr({},Mt),{},{interpolation:lt().oneOfType([lt().string,lt().func]),openCurve:lt().bool,origin:lt().object,polar:lt().bool});const rr=er;var ir=r(9717),or=r.n(ir);const ar={circle:function(t,n,e){return"M ".concat(t,", ").concat(n,"\n m ").concat(-e,", 0\n a ").concat(e,", ").concat(e," 0 1,0 ").concat(2*e,",0\n a ").concat(e,", ").concat(e," 0 1,0 ").concat(2*-e,",0")},square:function(t,n,e){var r=.87*e,i=t-r,o=n+r,a=t+r-i;return"M ".concat(i,", ").concat(o,"\n h").concat(a,"\n v-").concat(a,"\n h-").concat(a,"\n z")},diamond:function(t,n,e){var r=.87*e,i=Math.sqrt(r*r*2);return"M ".concat(t,", ").concat(n+i,"\n l ").concat(i,", -").concat(i,"\n l -").concat(i,", -").concat(i,"\n l -").concat(i,", ").concat(i,"\n l ").concat(i,", ").concat(i,"\n z")},triangleDown:function(t,n,e){var r=t+e,i=n-e,o=n+e/2*Math.sqrt(3);return"M ".concat(t-e,", ").concat(i,"\n L ").concat(r,", ").concat(i,"\n L ").concat(t,", ").concat(o,"\n z")},triangleUp:function(t,n,e){var r=t+e,i=n-e/2*Math.sqrt(3),o=n+e;return"M ".concat(t-e,", ").concat(o,"\n L ").concat(r,", ").concat(o,"\n L ").concat(t,", ").concat(i,"\n z")},plus:function(t,n,e){var r=1.1*e,i=r/1.5;return"\n M ".concat(t-i/2,", ").concat(n+r,"\n v-").concat(i,"\n h-").concat(i,"\n v-").concat(i,"\n h").concat(i,"\n v-").concat(i,"\n h").concat(i,"\n v").concat(i,"\n h").concat(i,"\n v").concat(i,"\n h-").concat(i,"\n v").concat(i,"\n z")},cross:function(t,n,e){var r=.8*e,i=r/1.5;return"\n M ".concat(t-i/2,", ").concat(n+r+i,"\n v-").concat(2*i,"\n h-").concat(i,"\n v-").concat(i,"\n h").concat(i,"\n v-").concat(i,"\n h").concat(i,"\n v").concat(i,"\n h").concat(i,"\n v").concat(i,"\n h-").concat(i,"\n v").concat(2*i,"\n z")},minus:function(t,n,e){var r=1.1*e,i=r-.3*r,o=t-r,a=n+i/2,s=t+r-o;return"M ".concat(o,", ").concat(a,"\n h").concat(s,"\n v-").concat(i,"\n h-").concat(s,"\n z")},star:function(t,n,e){var r=1.35*e,i=Math.PI/5,o=or()(10).map((function(e){var o=e%2==0?r:r/2;return"".concat(o*Math.sin(i*(e+1))+t,",\n ").concat(o*Math.cos(i*(e+1))+n)}));return"M ".concat(o.join("L")," z")}};function sr(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function cr(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?sr(Object(e),!0).forEach((function(n){ur(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):sr(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function ur(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var hr=function(t){var n=Lt().canvasRef,e=function(t){var n=v(t.size,t),e=d(t.style,t),r=v(t.symbol,t);return a()({},t,{size:n,style:e,symbol:r})}(t),r=c().useCallback((function(t){var n=e.style,r=function(t){var n=t.x,e=t.y,r=t.size,i=t.symbol;if(t.getPath)return t.getPath(n,e,r);var o={circle:ar.circle,square:ar.square,diamond:ar.diamond,triangleDown:ar.triangleDown,triangleUp:ar.triangleUp,plus:ar.plus,minus:ar.minus,star:ar.star,cross:ar.cross};return("function"==typeof o[i]?o[i]:o.circle)(n,e,r)}(e);t.fillStyle=n.fill;var i=new Path2D(r);t.fill(i)}),[e]);return c().useEffect((function(){var t=n.current.getContext("2d");r(t)}),[]),null};hr.propTypes=cr(cr({},Mt),{},{datum:lt().object,size:lt().oneOfType([lt().number,lt().func]),x:lt().number,y:lt().number});const lr=hr})(),i})()));
1
+ !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.VictoryCanvas=n(require("react")):t.VictoryCanvas=n(t.React)}(self,(t=>(()=>{var n={1124:(t,n,e)=>{var r=e(7236);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},4281:(t,n,e)=>{var r=e(7168),i=e(6582),o=e(3867),a=e(9557),s=e(2726);function c(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},4690:(t,n,e)=>{var r=e(441).Symbol;t.exports=r},5198: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)}},6460:t=>{t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},3848:t=>{t.exports=function(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}},4793: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}},7596:(t,n,e)=>{var r=e(999),i=e(6530),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var a=t[n];o.call(t,n)&&i(a,e)&&(void 0!==e||n in t)||r(t,n,e)}},3833:(t,n,e)=>{var r=e(6530);t.exports=function(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}},999:(t,n,e)=>{var r=e(9346);t.exports=function(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}},528:t=>{t.exports=function(t,n,e,r){for(var i=t.length,o=e+(r?1:-1);r?o--:++o<i;)if(n(t[o],o,t))return o;return-1}},314:(t,n,e)=>{var r=e(3848),i=e(1754);t.exports=function t(n,e,o,a,s){var c=-1,u=n.length;for(o||(o=i),s||(s=[]);++c<u;){var h=n[c];e>0&&o(h)?e>1?t(h,e-1,o,a,s):r(s,h):a||(s[s.length]=h)}return s}},166:(t,n,e)=>{var r=e(8422),i=e(8780);t.exports=function(t,n){for(var e=0,o=(n=r(n,t)).length;null!=t&&e<o;)t=t[i(n[e++])];return e&&e==o?t:void 0}},4318:t=>{var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},7:t=>{t.exports=function(t,n){return null!=t&&n in Object(t)}},7650:t=>{t.exports=function(t,n,e){for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}},1071:(t,n,e)=>{var r=e(7229),i=e(3387);t.exports=function t(n,e,o,a,s){return n===e||(null==n||null==e||!i(n)&&!i(e)?n!=n&&e!=e:r(n,e,o,a,t,s))}},7229:(t,n,e)=>{var r=e(4281),i=e(2503),o=e(6001),a=e(8784),s=e(6686),c=e(7236),u=e(8752),h=e(4812),l="[object Arguments]",f="[object Array]",_="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,y,x,v){var d=c(t),b=c(n),g=d?f:s(t),m=b?f:s(n),O=(g=g==l?_:g)==_,T=(m=m==l?_:m)==_,w=g==m;if(w&&u(t)){if(!u(n))return!1;d=!0,O=!1}if(w&&!O)return v||(v=new r),d||h(t)?i(t,n,e,y,x,v):o(t,n,g,e,y,x,v);if(!(1&e)){var j=O&&p.call(t,"__wrapped__"),M=T&&p.call(n,"__wrapped__");if(j||M){var P=j?t.value():t,k=M?n.value():n;return v||(v=new r),x(P,k,e,y,v)}}return!!w&&(v||(v=new r),a(t,n,e,y,x,v))}},9157:(t,n,e)=>{var r=e(4281),i=e(1071);t.exports=function(t,n,e,o){var a=e.length,s=a,c=!o;if(null==t)return!s;for(t=Object(t);a--;){var u=e[a];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++a<s;){var h=(u=e[a])[0],l=t[h],f=u[1];if(c&&u[2]){if(void 0===l&&!(h in t))return!1}else{var _=new r;if(o)var p=o(l,f,h,t,n,_);if(!(void 0===p?i(f,l,3,o,_):p))return!1}}return!0}},1131:(t,n,e)=>{var r=e(4318),i=e(3387);t.exports=function(t){return i(t)&&"[object RegExp]"==r(t)}},8904:(t,n,e)=>{var r=e(8418),i=e(4555),o=e(5362),a=e(7236),s=e(1651);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},8418:(t,n,e)=>{var r=e(9157),i=e(9182),o=e(7375);t.exports=function(t){var n=i(t);return 1==n.length&&n[0][2]?o(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},4555:(t,n,e)=>{var r=e(1071),i=e(3795),o=e(3646),a=e(3266),s=e(1457),c=e(7375),u=e(8780);t.exports=function(t,n){return a(t)&&s(n)?c(u(t),n):function(e){var a=i(e,t);return void 0===a&&a===n?o(e,t):r(n,a,3)}}},7410:(t,n,e)=>{var r=e(6621),i=e(3646);t.exports=function(t,n){return r(t,n,(function(n,e){return i(t,e)}))}},6621:(t,n,e)=>{var r=e(166),i=e(8116),o=e(8422);t.exports=function(t,n,e){for(var a=-1,s=n.length,c={};++a<s;){var u=n[a],h=r(t,u);e(h,u)&&i(c,o(u,t),h)}return c}},1712:t=>{t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},4815:(t,n,e)=>{var r=e(166);t.exports=function(t){return function(n){return r(n,t)}}},797:t=>{var n=Math.ceil,e=Math.max;t.exports=function(t,r,i,o){for(var a=-1,s=e(n((r-t)/(i||1)),0),c=Array(s);s--;)c[o?s:++a]=t,t+=i;return c}},4569:(t,n,e)=>{var r=e(5362),i=e(4468),o=e(8756);t.exports=function(t,n){return o(i(t,n,r),t+"")}},8116:(t,n,e)=>{var r=e(7596),i=e(8422),o=e(4363),a=e(5973),s=e(8780);t.exports=function(t,n,e,c){if(!a(t))return t;for(var u=-1,h=(n=i(n,t)).length,l=h-1,f=t;null!=f&&++u<h;){var _=s(n[u]),p=e;if("__proto__"===_||"constructor"===_||"prototype"===_)return t;if(u!=l){var y=f[_];void 0===(p=c?c(y,_,f):void 0)&&(p=a(y)?y:o(n[u+1])?[]:{})}r(f,_,p),f=f[_]}return t}},454:(t,n,e)=>{var r=e(4690),i=e(6460),o=e(7236),a=e(2945),s=r?r.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(o(n))return i(n,t)+"";if(a(n))return c?c.call(n):"";var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}},3349:(t,n,e)=>{var r=e(5720),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},6535:t=>{t.exports=function(t){return function(n){return t(n)}}},555:(t,n,e)=>{var r=e(7650);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},8422:(t,n,e)=>{var r=e(7236),i=e(3266),o=e(3879),a=e(1119);t.exports=function(t,n){return r(t)?t:i(t,n)?[t]:o(a(t))}},6051:(t,n,e)=>{var r=e(7596),i=e(999);t.exports=function(t,n,e,o){var a=!e;e||(e={});for(var s=-1,c=n.length;++s<c;){var u=n[s],h=o?o(e[u],t[u],u,e,t):void 0;void 0===h&&(h=t[u]),a?i(e,u,h):r(e,u,h)}return e}},2544:(t,n,e)=>{var r=e(4569),i=e(3108);t.exports=function(t){return r((function(n,e){var r=-1,o=e.length,a=o>1?e[o-1]:void 0,s=o>2?e[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(e[0],e[1],s)&&(a=o<3?void 0:a,o=1),n=Object(n);++r<o;){var c=e[r];c&&t(n,c,r,a)}return n}))}},3086:(t,n,e)=>{var r=e(8904),i=e(1580),o=e(2635);t.exports=function(t){return function(n,e,a){var s=Object(n);if(!i(n)){var c=r(e,3);n=o(n),e=function(t){return c(s[t],t,s)}}var u=t(n,e,a);return u>-1?s[c?n[u]:u]:void 0}}},9833:(t,n,e)=>{var r=e(797),i=e(3108),o=e(992);t.exports=function(t){return function(n,e,a){return a&&"number"!=typeof a&&i(n,e,a)&&(e=a=void 0),n=o(n),void 0===e?(e=n,n=0):e=o(e),a=void 0===a?n<e?1:-1:o(a),r(n,e,a,t)}}},9346:(t,n,e)=>{var r=e(4457),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},2503:(t,n,e)=>{var r=e(1124),i=e(4793),o=e(555);t.exports=function(t,n,e,a,s,c){var u=1&e,h=t.length,l=n.length;if(h!=l&&!(u&&l>h))return!1;var f=c.get(t),_=c.get(n);if(f&&_)return f==n&&_==t;var p=-1,y=!0,x=2&e?new r:void 0;for(c.set(t,n),c.set(n,t);++p<h;){var v=t[p],d=n[p];if(a)var b=u?a(d,v,p,n,t,c):a(v,d,p,t,n,c);if(void 0!==b){if(b)continue;y=!1;break}if(x){if(!i(n,(function(t,n){if(!o(x,n)&&(v===t||s(v,t,e,a,c)))return x.push(n)}))){y=!1;break}}else if(v!==d&&!s(v,d,e,a,c)){y=!1;break}}return c.delete(t),c.delete(n),y}},6001:t=>{t.exports=function(t,n){return t===n||t!=t&&n!=n}},8784:(t,n,e)=>{var r=e(6094),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,o,a,s){var c=1&e,u=r(t),h=u.length;if(h!=r(n).length&&!c)return!1;for(var l=h;l--;){var f=u[l];if(!(c?f in n:i.call(n,f)))return!1}var _=s.get(t),p=s.get(n);if(_&&p)return _==n&&p==t;var y=!0;s.set(t,n),s.set(n,t);for(var x=c;++l<h;){var v=t[f=u[l]],d=n[f];if(o)var b=c?o(d,v,f,n,t,s):o(v,d,f,t,n,s);if(!(void 0===b?v===d||a(v,d,e,o,s):b)){y=!1;break}x||(x="constructor"==f)}if(y&&!x){var g=t.constructor,m=n.constructor;g==m||!("constructor"in t)||!("constructor"in n)||"function"==typeof g&&g instanceof g&&"function"==typeof m&&m instanceof m||(y=!1)}return s.delete(t),s.delete(n),y}},3368:(t,n,e)=>{var r=e(5453),i=e(4468),o=e(8756);t.exports=function(t){return o(i(t,void 0,r),t+"")}},4414:(t,n,e)=>{var r="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=r},6094:(t,n,e)=>{var r=e(3717)(Object.keys,Object);t.exports=r},9182:(t,n,e)=>{var r=e(1457),i=e(2635);t.exports=function(t){for(var n=i(t),e=n.length;e--;){var o=n[e],a=t[o];n[e]=[o,a,r(a)]}return n}},4457:t=>{t.exports=function(t,n){return null==t?void 0:t[n]}},1407:(t,n,e)=>{var r=e(3717)(Object.getPrototypeOf,Object);t.exports=r},6686:t=>{var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},7383:(t,n,e)=>{var r=e(8422),i=e(6981),o=e(7236),a=e(4363),s=e(9216),c=e(8780);t.exports=function(t,n,e){for(var u=-1,h=(n=r(n,t)).length,l=!1;++u<h;){var f=c(n[u]);if(!(l=null!=t&&e(t,f)))break;t=t[f]}return l||++u!=h?l:!!(h=null==t?0:t.length)&&s(h)&&a(f,h)&&(o(t)||i(t))}},1754:(t,n,e)=>{var r=e(4690),i=e(6981),o=e(7236),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},4363: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}},3108:t=>{t.exports=function(){return!1}},3266:(t,n,e)=>{var r=e(7236),i=e(2945),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,n){if(r(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=n&&t in Object(n)}},5003:t=>{t.exports=function(){return!1}},1457:(t,n,e)=>{var r=e(5973);t.exports=function(t){return t==t&&!r(t)}},7168:t=>{t.exports=function(){this.__data__=[],this.size=0}},6582:(t,n,e)=>{var r=e(3833),i=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0||(e==n.length-1?n.pop():i.call(n,e,1),--this.size,0))}},3867:(t,n,e)=>{var r=e(3833);t.exports=function(t){var n=this.__data__,e=r(n,t);return e<0?void 0:n[e][1]}},9557:(t,n,e)=>{var r=e(3833);t.exports=function(t){return r(this.__data__,t)>-1}},2726:(t,n,e)=>{var r=e(3833);t.exports=function(t,n){var e=this.__data__,i=r(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}},7375:t=>{t.exports=function(t,n){return function(e){return null!=e&&e[t]===n&&(void 0!==n||t in Object(e))}}},7085:t=>{t.exports=function(t){return t}},1782:(t,n,e)=>{t=e.nmd(t);var r=e(4414),i=n&&!n.nodeType&&n,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},3717:t=>{t.exports=function(t,n){return function(e){return t(n(e))}}},4468:(t,n,e)=>{var r=e(5198),i=Math.max;t.exports=function(t,n,e){return n=i(void 0===n?t.length-1:n,0),function(){for(var o=arguments,a=-1,s=i(o.length-n,0),c=Array(s);++a<s;)c[a]=o[n+a];a=-1;for(var u=Array(n+1);++a<n;)u[a]=o[a];return u[n]=e(c),r(t,this,u)}}},441:(t,n,e)=>{var r=e(4414),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},8756:t=>{t.exports=function(t){return t}},3879:(t,n,e)=>{var r=e(7085),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(i,(function(t,e,r,i){n.push(r?i.replace(o,"$1"):e||t)})),n}));t.exports=a},8780:(t,n,e)=>{var r=e(2945);t.exports=function(t){if("string"==typeof t||r(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},5720:t=>{var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},6782:(t,n,e)=>{var r=e(7596),i=e(6051),o=e(2544),a=e(1580),s=e(5003),c=e(2635),u=Object.prototype.hasOwnProperty,h=o((function(t,n){if(s(n)||a(n))i(n,c(n),t);else for(var e in n)u.call(n,e)&&r(t,e,n[e])}));t.exports=h},7901:(t,n,e)=>{var r=e(4569),i=e(6530),o=e(3108),a=e(5850),s=Object.prototype,c=s.hasOwnProperty,u=r((function(t,n){t=Object(t);var e=-1,r=n.length,u=r>2?n[2]:void 0;for(u&&o(n[0],n[1],u)&&(r=1);++e<r;)for(var h=n[e],l=a(h),f=-1,_=l.length;++f<_;){var p=l[f],y=t[p];(void 0===y||i(y,s[p])&&!c.call(t,p))&&(t[p]=h[p])}return t}));t.exports=u},6530:t=>{t.exports=function(t,n){return t===n||t!=t&&n!=n}},6786:(t,n,e)=>{var r=e(3086)(e(8611));t.exports=r},8611:(t,n,e)=>{var r=e(528),i=e(8904),o=e(5225),a=Math.max;t.exports=function(t,n,e){var s=null==t?0:t.length;if(!s)return-1;var c=null==e?0:o(e);return c<0&&(c=a(s+c,0)),r(t,i(n,3),c)}},5453:(t,n,e)=>{var r=e(314);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},3795:(t,n,e)=>{var r=e(166);t.exports=function(t,n,e){var i=null==t?void 0:r(t,n);return void 0===i?e:i}},3646:(t,n,e)=>{var r=e(7),i=e(7383);t.exports=function(t,n){return null!=t&&i(t,n,r)}},5362:t=>{t.exports=function(t){return t}},6901:(t,n,e)=>{var r=e(7650);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},6981:t=>{t.exports=function(){return!1}},7236:t=>{var n=Array.isArray;t.exports=n},1580:(t,n,e)=>{var r=e(3839),i=e(9216);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},8752:t=>{t.exports=function(){return!1}},3839:(t,n,e)=>{var r=e(4318),i=e(5973);t.exports=function(t){if(!i(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},9216:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6866:t=>{t.exports=function(t){return null==t}},5973:t=>{t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},3387:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},9636:(t,n,e)=>{var r=e(4318),i=e(1407),o=e(3387),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,h=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var n=i(t);if(null===n)return!0;var e=u.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&c.call(e)==h}},2654:(t,n,e)=>{var r=e(1131),i=e(6535),o=e(1782),a=o&&o.isRegExp,s=a?i(a):r;t.exports=s},2945:t=>{t.exports=function(){return!1}},4812:t=>{t.exports=function(){return!1}},2635:(t,n,e)=>{var r=e(3717)(Object.keys,Object);t.exports=r},5850:t=>{t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},8423:(t,n,e)=>{var r=e(7410),i=e(3368)((function(t,n){return null==t?{}:r(t,n)}));t.exports=i},1651:(t,n,e)=>{var r=e(1712),i=e(4815),o=e(3266),a=e(8780);t.exports=function(t){return o(t)?r(a(t)):i(t)}},9717:(t,n,e)=>{var r=e(9833)();t.exports=r},992:(t,n,e)=>{var r=e(8746);t.exports=function(t){return t?Infinity===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},5225:(t,n,e)=>{var r=e(992);t.exports=function(t){var n=r(t),e=n%1;return n==n?e?n-e:n:0}},8746:(t,n,e)=>{var r=e(3349),i=e(5973),o=e(2945),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var e=s.test(t);return e||c.test(t)?u(t.slice(2),e?2:8):a.test(t)?NaN:+t}},1119:(t,n,e)=>{var r=e(454);t.exports=function(t){return null==t?"":r(t)}},459:(t,n,e)=>{"use strict";var r=e(5704);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,n,e,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function n(){return t}t.isRequired=t;var e={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return e.PropTypes=e,e}},216:(t,n,e)=>{t.exports=e(459)()},5704:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9787:n=>{"use strict";n.exports=t}},e={};function r(t){var i=e[t];if(void 0!==i)return i.exports;var o=e[t]={id:t,loaded:!1,exports:{}};return n[t](o,o.exports,r),o.loaded=!0,o.exports}r.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return r.d(n,{a:n}),n},r.d=(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=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var i={};return(()=>{"use strict";r.r(i),r.d(i,{CanvasBar:()=>Rt,CanvasCurve:()=>Qe,CanvasGroup:()=>Ct,CanvasPoint:()=>pr,useCanvasContext:()=>st});var t={};r.r(t),r.d(t,{arc:()=>U,area:()=>Xt,areaRadial:()=>Kt,curveBasis:()=>Xn,curveBasisClosed:()=>Bn,curveBasisOpen:()=>$n,curveBumpX:()=>tn,curveBumpY:()=>nn,curveBundle:()=>Un,curveCardinal:()=>Kn,curveCardinalClosed:()=>Qn,curveCardinalOpen:()=>te,curveCatmullRom:()=>re,curveCatmullRomClosed:()=>oe,curveCatmullRomOpen:()=>se,curveLinear:()=>Dt,curveLinearClosed:()=>ue,curveMonotoneX:()=>ve,curveMonotoneY:()=>de,curveNatural:()=>me,curveStep:()=>Te,curveStepAfter:()=>je,curveStepBefore:()=>we,line:()=>Wt,lineRadial:()=>Gt,link:()=>an,linkHorizontal:()=>sn,linkRadial:()=>un,linkVertical:()=>cn,pie:()=>Ft,pointRadial:()=>Ht,radialArea:()=>Kt,radialLine:()=>Gt,stack:()=>Ee,stackOffsetDiverging:()=>Ae,stackOffsetExpand:()=>Re,stackOffsetNone:()=>Me,stackOffsetSilhouette:()=>Ce,stackOffsetWiggle:()=>Ne,stackOrderAppearance:()=>Le,stackOrderAscending:()=>De,stackOrderDescending:()=>Ie,stackOrderInsideOut:()=>We,stackOrderNone:()=>Pe,stackOrderReverse:()=>Xe,symbol:()=>Dn,symbolAsterisk:()=>ln,symbolCircle:()=>fn,symbolCross:()=>_n,symbolDiamond:()=>xn,symbolDiamond2:()=>vn,symbolPlus:()=>dn,symbolSquare:()=>bn,symbolSquare2:()=>gn,symbolStar:()=>wn,symbolTriangle:()=>Mn,symbolTriangle2:()=>kn,symbolWye:()=>Cn,symbolX:()=>Nn,symbols:()=>Ln,symbolsFill:()=>Ln,symbolsStroke:()=>qn});var n=r(6782),e=r.n(n),o=r(216),a=r.n(o),s=r(9787),c=r.n(s),u=r(9636),h=r.n(u),l=r(6866),f=r.n(l),_=r(2635),p=r.n(_),y=(r(8423),r(1651),r(3839)),x=r.n(y);function v(t,n){return x()(t)?t(n):t}function d(t,n){return n.disableInlineStyles?{}:t&&p()(t).some((function(n){return x()(t[n])}))?p()(t).reduce((function(e,r){return e[r]=v(t[r],n),e}),{}):t}r(7901);const b=Math.PI,g=2*b,m=1e-6,O=g-m;function T(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function w(){return new T}T.prototype=w.prototype={constructor:T,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,a=this._y1,s=e-t,c=r-n,u=o-t,h=a-n,l=u*u+h*h;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(l>m)if(Math.abs(h*s-c*u)>m&&i){var f=e-o,_=r-a,p=s*s+c*c,y=f*f+_*_,x=Math.sqrt(p),v=Math.sqrt(l),d=i*Math.tan((b-Math.acos((p+l-y)/(2*x*v)))/2),g=d/v,O=d/x;Math.abs(g-1)>m&&(this._+="L"+(t+g*u)+","+(n+g*h)),this._+="A"+i+","+i+",0,0,"+ +(h*f>u*_)+","+(this._x1=t+O*s)+","+(this._y1=n+O*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var a=(e=+e)*Math.cos(r),s=e*Math.sin(r),c=t+a,u=n+s,h=1^o,l=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+u:(Math.abs(this._x1-c)>m||Math.abs(this._y1-u)>m)&&(this._+="L"+c+","+u),e&&(l<0&&(l=l%g+g),l>O?this._+="A"+e+","+e+",0,1,"+h+","+(t-a)+","+(n-s)+"A"+e+","+e+",0,1,"+h+","+(this._x1=c)+","+(this._y1=u):l>m&&(this._+="A"+e+","+e+",0,"+ +(l>=b)+","+h+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};const j=w;function M(t){return function(){return t}}const P=Math.abs,k=Math.atan2,S=Math.cos,E=Math.max,R=Math.min,A=Math.sin,C=Math.sqrt,N=1e-12,L=Math.PI,q=L/2,D=2*L;function z(t){return t>1?0:t<-1?L:Math.acos(t)}function I(t){return t>=1?q:t<=-1?-q:Math.asin(t)}function W(t){return t.innerRadius}function X(t){return t.outerRadius}function Y(t){return t.startAngle}function B(t){return t.endAngle}function F(t){return t&&t.padAngle}function $(t,n,e,r,i,o,a,s){var c=e-t,u=r-n,h=a-i,l=s-o,f=l*c-h*u;if(!(f*f<N))return[t+(f=(h*(n-o)-l*(t-i))/f)*c,n+f*u]}function Z(t,n,e,r,i,o,a){var s=t-e,c=n-r,u=(a?o:-o)/C(s*s+c*c),h=u*c,l=-u*s,f=t+h,_=n+l,p=e+h,y=r+l,x=(f+p)/2,v=(_+y)/2,d=p-f,b=y-_,g=d*d+b*b,m=i-o,O=f*y-p*_,T=(b<0?-1:1)*C(E(0,m*m*g-O*O)),w=(O*b-d*T)/g,j=(-O*d-b*T)/g,M=(O*b+d*T)/g,P=(-O*d+b*T)/g,k=w-x,S=j-v,R=M-x,A=P-v;return k*k+S*S>R*R+A*A&&(w=M,j=P),{cx:w,cy:j,x01:-h,y01:-l,x11:w*(i/m-1),y11:j*(i/m-1)}}function U(){var t=W,n=X,e=M(0),r=null,i=Y,o=B,a=F,s=null;function c(){var c,u,h=+t.apply(this,arguments),l=+n.apply(this,arguments),f=i.apply(this,arguments)-q,_=o.apply(this,arguments)-q,p=P(_-f),y=_>f;if(s||(s=c=j()),l<h&&(u=l,l=h,h=u),l>N)if(p>D-N)s.moveTo(l*S(f),l*A(f)),s.arc(0,0,l,f,_,!y),h>N&&(s.moveTo(h*S(_),h*A(_)),s.arc(0,0,h,_,f,y));else{var x,v,d=f,b=_,g=f,m=_,O=p,T=p,w=a.apply(this,arguments)/2,M=w>N&&(r?+r.apply(this,arguments):C(h*h+l*l)),E=R(P(l-h)/2,+e.apply(this,arguments)),W=E,X=E;if(M>N){var Y=I(M/h*A(w)),B=I(M/l*A(w));(O-=2*Y)>N?(g+=Y*=y?1:-1,m-=Y):(O=0,g=m=(f+_)/2),(T-=2*B)>N?(d+=B*=y?1:-1,b-=B):(T=0,d=b=(f+_)/2)}var F=l*S(d),U=l*A(d),V=h*S(m),G=h*A(m);if(E>N){var K,H=l*S(b),Q=l*A(b),J=h*S(g),tt=h*A(g);if(p<L&&(K=$(F,U,J,tt,H,Q,V,G))){var nt=F-K[0],et=U-K[1],rt=H-K[0],it=Q-K[1],ot=1/A(z((nt*rt+et*it)/(C(nt*nt+et*et)*C(rt*rt+it*it)))/2),at=C(K[0]*K[0]+K[1]*K[1]);W=R(E,(h-at)/(ot-1)),X=R(E,(l-at)/(ot+1))}}T>N?X>N?(x=Z(J,tt,F,U,l,X,y),v=Z(H,Q,V,G,l,X,y),s.moveTo(x.cx+x.x01,x.cy+x.y01),X<E?s.arc(x.cx,x.cy,X,k(x.y01,x.x01),k(v.y01,v.x01),!y):(s.arc(x.cx,x.cy,X,k(x.y01,x.x01),k(x.y11,x.x11),!y),s.arc(0,0,l,k(x.cy+x.y11,x.cx+x.x11),k(v.cy+v.y11,v.cx+v.x11),!y),s.arc(v.cx,v.cy,X,k(v.y11,v.x11),k(v.y01,v.x01),!y))):(s.moveTo(F,U),s.arc(0,0,l,d,b,!y)):s.moveTo(F,U),h>N&&O>N?W>N?(x=Z(V,G,H,Q,h,-W,y),v=Z(F,U,J,tt,h,-W,y),s.lineTo(x.cx+x.x01,x.cy+x.y01),W<E?s.arc(x.cx,x.cy,W,k(x.y01,x.x01),k(v.y01,v.x01),!y):(s.arc(x.cx,x.cy,W,k(x.y01,x.x01),k(x.y11,x.x11),!y),s.arc(0,0,h,k(x.cy+x.y11,x.cx+x.x11),k(v.cy+v.y11,v.cx+v.x11),y),s.arc(v.cx,v.cy,W,k(v.y11,v.x11),k(v.y01,v.x01),!y))):s.arc(0,0,h,m,g,y):s.lineTo(V,G)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-L/2;return[S(r)*e,A(r)*e]},c.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:M(+n),c):t},c.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:M(+t),c):n},c.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:M(+t),c):e},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:M(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:M(+t),c):i},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:M(+t),c):o},c.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:M(+t),c):a},c.context=function(t){return arguments.length?(s=null==t?null:t,c):s},c}var V=function(t,n){return{x:t,y:n,distance:function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},add:function(t){return V(this.x+t.x,this.y+t.y)},subtract:function(t){return V(this.x-t.x,this.y-t.y)},scalarMult:function(t){return V(this.x*t,this.y*t)},scalarDivide:function(t){if(0===t)throw new Error("Division by 0 error");return V(this.x/t,this.y/t)},equals:function(t){return this.x===t.x&&this.y===t.y}}},G=function(t,n){return{center:t,radius:n,hasIntersection:function(t){var n=this.center,e=t.center,r=this.radius,i=t.radius,o=n.distance(e);return!(o>r+i||o<Math.abs(r-i))},equals:function(t){var n=this.center,e=t.center;return this.radius===t.radius&&n.equals(e)},intersection:function(t){var n=this.center,e=t.center,r=this.radius,i=t.radius,o=n.distance(e);if(!this.hasIntersection(t)||this.equals(t))return[];var a=(Math.pow(r,2)-Math.pow(i,2)+Math.pow(o,2))/(2*o),s=Math.sqrt(Math.pow(r,2)-Math.pow(a,2)),c=n.add(e.subtract(n).scalarMult(a).scalarDivide(o)),u=n.x,h=n.y,l=e.x,f=e.y,_=c.x,p=c.y,y=[V(_-s*(f-h)/o,p+s*(l-u)/o),V(_+s*(f-h)/o,p-s*(l-u)/o)];return y.sort((function(t,n){return t.x-n.x})),y},solveX:function(t){var n=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.y,2));return[this.center.x-n,this.center.x+n]},solveY:function(t){var n=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.x,2));return[this.center.y-n,this.center.y+n]}}};function K(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function H(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?K(Object(e),!0).forEach((function(n){Q(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):K(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function Q(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function J(t){return function(t){if(Array.isArray(t))return tt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return tt(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?tt(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tt(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var nt=function(t,n){var e=t.x,r=t.x0,i=t.y,o=t.y0,a=t.horizontal,s=t.alignment||"middle",c="middle"===s?n/2:n,u=a?-1:1;return a?{x0:r,x1:e,y0:"start"===s?i:i-u*c,y1:"end"===s?i:i+u*c}:{x0:"start"===s?e:e-u*c,x1:"end"===s?e:e+u*c,y0:o,y1:i}},et=function(t,n){var e=t.data,r=t.scale,i=void 0===e[n]._x1?"_x":"_x1";return r.x(e[n][i])},rt=function(t){return-1*t+Math.PI/2},it=function(t,n,e){var r="".concat(n.topLeft," ").concat(n.topLeft," ").concat(e),i="".concat(n.topRight," ").concat(n.topRight," ").concat(e),o="".concat(n.bottomLeft," ").concat(n.bottomLeft," ").concat(e),a="".concat(n.bottomRight," ").concat(n.bottomRight," ").concat(e),s=["M","A ".concat(o,","),"L","A ".concat(r,","),"L","A ".concat(i,","),"L","A ".concat(a,",")].reduce((function(n,e,r){return n+"".concat(e," ").concat(t[r].x,", ").concat(t[r].y," \n")}),"");return"".concat(s," z")},ot=function(t,n,e){return t.getPath?function(t,n){return(0,t.getPath)(H(H({},t),nt(t,n)))}(t,n):t.horizontal?function(t,n,e){var r=nt(t,n),i=r.x0<r.x1?1:-1,o={topRight:i>0?e.topLeft:e.bottomLeft,bottomRight:i>0?e.topRight:e.bottomRight,bottomLeft:i>0?e.bottomRight:e.topRight,topLeft:i>0?e.bottomLeft:e.topLeft},a=function(t,n,e){var r=t.y0,i=t.y1,o=t.x0<t.x1?t.x0:t.x1,a=t.x0<t.x1?t.x1:t.x0,s=function(t){var s="top"===t,c=s?-1:1,u=s?i:r,h={x:o,y:u-c*e["".concat(t,"Left")]},l={x:o+e["".concat(t,"Left")],y:u},f={x:a-e["".concat(t,"Right")],y:u},_={x:a,y:u-c*e["".concat(t,"Right")]};if(l.x>f.x){var p=V(o+e["".concat(t,"Left")],u-c*e["".concat(t,"Left")]),y=G(p,e["".concat(t,"Left")]),x=V(a-e["".concat(t,"Right")],u-c*e["".concat(t,"Right")]),v=G(x,e["".concat(t,"Right")]),d=y.intersection(v);if(d.length>0){var b=d[n>0?1:0];l={x:b.x,y:b.y},f={x:b.x,y:b.y}}else if(e["".concat(t,"Right")]>e["".concat(t,"Left")]){var g=v.solveY(o)[s?0:1];h={x:o,y:g},l={x:o,y:g},f={x:o,y:g}}else{var m=y.solveY(a)[s?0:1];_={x:a,y:m},f={x:a,y:m},l={x:a,y:m}}}return[h,l,f,_]},c=s("top"),u=s("bottom");return[u[1],u[0]].concat(J(c),[u[3],u[2]])}(r,i,o);return it(a,o,"0 0 1")}(t,n,e):function(t,n,e){var r=nt(t,n),i=r.y0>r.y1?1:-1,o=i>0?"0 0 1":"0 0 0",a=function(t,n,e){var r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=function(t){var s="Left"===t,c=s?1:-1,u=s?r:i,h={x:u+c*e["bottom".concat(t)],y:o},l={x:u,y:o-n*e["bottom".concat(t)]},f={x:u,y:a+n*e["top".concat(t)]},_={x:u+c*e["top".concat(t)],y:a};if(1===n?o-e["bottom".concat(t)]<a+e["top".concat(t)]:o+e["bottom".concat(t)]>a-e["top".concat(t)]){var p=V(u+c*e["top".concat(t)],a+n*e["top".concat(t)]),y=G(p,e["top".concat(t)]),x=V(u+c*e["bottom".concat(t)],o-n*e["bottom".concat(t)]),v=G(x,e["bottom".concat(t)]),d=y.intersection(v);if(d.length>0){var b=d[s?0:1];l={x:b.x,y:b.y},f={x:b.x,y:b.y}}else if(e["top".concat(t)]>e["bottom".concat(t)]){var g=y.solveX(o)[s?0:1];h={x:g,y:o},l={x:g,y:o},f={x:g,y:o}}else{var m=v.solveX(a)[s?0:1];l={x:m,y:a},f={x:m,y:a},_={x:m,y:a}}}var O=[h,l,f,_];return s?O:O.reverse()};return s("Left").concat(s("Right"))}(r,i,e);return it(a,e,o)}(t,n,e)},at=c().createContext(),st=function(){var t=c().useContext(at);if(!t)throw new Error("This component must be wrapped in a CanvasContext.Provider component.\n Try setting groupComponent={<CanvasGroup />} in your chart component.");return t},ct=r(2654),ut=r.n(ct),ht=r(6786),lt=r.n(ht),ft=r(6901),_t=r.n(ft),pt=["linear","time","log","sqrt"];var yt=function(t){var n=function(n){return function(e,r,i){var o=e[r];if(null==o)return n?new Error("Required `".concat(r,"` was not specified in `").concat(i,"`.")):null;for(var a=arguments.length,s=new Array(a>3?a-3:0),c=3;c<a;c++)s[c-3]=arguments[c];return t.apply(void 0,[e,r,i].concat(s))}};return Object.assign(n(!1),{isRequired:n(!0)})},xt=function(){return null},vt=function(){},dt=function(t){return void 0===t?vt:null===t?xt:t.constructor},bt=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)};function gt(t){return yt((function(n,e,r){for(var i=arguments.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];return t.reduce((function(t,i){return t||i.apply(void 0,[n,e,r].concat(o))}),null)}))}var mt=yt((function(t,n,e){var r=t[n];return"number"!=typeof r||r<0?new Error("`".concat(n,"` in `").concat(e,"` must be a non-negative number.")):null})),Ot=yt((function(t,n,e){var r=t[n];return"number"!=typeof r||r%1!=0?new Error("`".concat(n,"` in `").concat(e,"` must be an integer.")):null})),Tt=(yt((function(t,n,e){var r=t[n];return"number"!=typeof r||r<=0?new Error("`".concat(n,"` in `").concat(e,"` must be a number greater than zero.")):null})),yt((function(t,n,e){var r=t[n];return Array.isArray(r)&&2===r.length&&r[1]!==r[0]?null:new Error("`".concat(n,"` in `").concat(e,"` must be an array of two unique numeric values."))}))),wt=yt((function(t,n,e){return function(t){return"function"==typeof t?x()(t.copy)&&x()(t.domain)&&x()(t.range):"string"==typeof t&&_t()(pt,t)}(t[n])?null:new Error("`".concat(n,"` in `").concat(e,"` must be a d3 scale."))})),jt=(yt((function(t,n,e){var r=t[n];if(!Array.isArray(r))return new Error("`".concat(n,"` in `").concat(e,"` must be an array."));if(r.length<2)return null;var i=dt(r[0]),o=lt()(r,(function(t){return i!==dt(t)}));if(o){var a=bt(r[0]),s=bt(o);return new Error("Expected `".concat(n,"` in `").concat(e,"` to be a ")+"homogeneous array, but found types `".concat(a,"` and ")+"`".concat(s,"`."))}return null})),yt((function(t,n){return t[n]&&Array.isArray(t[n])&&t[n].length!==t.data.length?new Error("Length of data and ".concat(n," arrays must match.")):null})),yt((function(t,n,e){return t[n]&&!ut()(t[n])?new Error("`".concat(n,"` in `").concat(e,"` must be a regular expression.")):null})),{dataProps:{categories:a().oneOfType([a().arrayOf(a().string),a().shape({x:a().arrayOf(a().string),y:a().arrayOf(a().string)})]),data:a().oneOfType([a().array,a().object]),dataComponent:a().element,disableInlineStyles:a().bool,labelComponent:a().element,labels:a().oneOfType([a().func,a().array]),samples:mt,sortKey:a().oneOfType([a().func,gt([Ot,mt]),a().string,a().arrayOf(a().string.isRequired)]),sortOrder:a().oneOf(["ascending","descending"]),style:a().shape({parent:a().object,data:a().object,labels:a().object}),x:a().oneOfType([a().func,gt([Ot,mt]),a().string,a().arrayOf(a().string.isRequired)]),y:a().oneOfType([a().func,gt([Ot,mt]),a().string,a().arrayOf(a().string.isRequired)]),y0:a().oneOfType([a().func,gt([Ot,mt]),a().string,a().arrayOf(a().string.isRequired)])},baseProps:{animate:a().oneOfType([a().bool,a().object]),containerComponent:a().element,domain:a().oneOfType([Tt,a().shape({x:Tt,y:Tt})]),maxDomain:a().oneOfType([a().number,a().instanceOf(Date),a().shape({x:a().oneOfType([a().number,a().instanceOf(Date)]),y:a().oneOfType([a().number,a().instanceOf(Date)])})]),minDomain:a().oneOfType([a().number,a().instanceOf(Date),a().shape({x:a().oneOfType([a().number,a().instanceOf(Date)]),y:a().oneOfType([a().number,a().instanceOf(Date)])})]),domainPadding:a().oneOfType([a().shape({x:a().oneOfType([a().number,a().arrayOf(a().number)]),y:a().oneOfType([a().number,a().arrayOf(a().number)])}),a().number,a().arrayOf(a().number)]),eventKey:a().oneOfType([a().func,gt([Ot,mt]),a().string]),events:a().arrayOf(a().shape({target:a().oneOf(["data","labels","parent"]),eventKey:a().oneOfType([a().array,gt([Ot,mt]),a().string]),eventHandlers:a().object})),externalEventMutations:a().arrayOf(a().shape({callback:a().func,childName:a().oneOfType([a().string,a().array]),eventKey:a().oneOfType([a().array,gt([Ot,mt]),a().string]),mutation:a().func,target:a().oneOfType([a().string,a().array])})),groupComponent:a().element,height:mt,name:a().string,origin:a().shape({x:a().number,y:a().number}),padding:a().oneOfType([a().number,a().shape({top:a().number,bottom:a().number,left:a().number,right:a().number})]),polar:a().bool,range:a().oneOfType([Tt,a().shape({x:Tt.isRequired,y:Tt.isRequired})]),scale:a().oneOfType([wt,a().shape({x:wt.isRequired,y:wt.isRequired})]),sharedEvents:a().shape({events:a().array,getEventState:a().func}),singleQuadrantDomainPadding:a().oneOfType([a().bool,a().shape({x:a().oneOfType([a().bool]),y:a().oneOfType([a().bool])})]),standalone:a().bool,theme:a().object,width:mt},primitiveProps:{active:a().bool,ariaLabel:a().oneOfType([a().string,a().func]),className:a().string,clipPath:a().string,data:a().oneOfType([a().array,a().object]),desc:a().oneOfType([a().string,a().func]),disableInlineStyles:a().bool,events:a().object,id:a().oneOfType([a().number,a().string,a().func]),index:a().oneOfType([a().number,a().string]),origin:a().shape({x:a().number,y:a().number}),polar:a().bool,role:a().string,scale:a().oneOfType([wt,a().shape({x:wt,y:wt})]),shapeRendering:a().string,style:a().object,tabIndex:a().oneOfType([a().number,a().func]),transform:a().string}});function Mt(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function Pt(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Mt(Object(e),!0).forEach((function(n){kt(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Mt(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function kt(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var St=function(t){var n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(n.disableInlineStyles)return{};var r={fill:"black",stroke:t.fill||"black"};return d(e()(r,t),n)}(t.style,t),r=function(t,n){var e=n.scale,r=n.data,i=n.defaultBarWidth,o=n.style;if(t)return v(t,n);if(o.width)return o.width;var a=e.x.range(),s=Math.abs(a[1]-a[0]),c=r.length+2,u=(n.barRatio||.5)*(r.length<2?i:s/c);return Math.max(1,u)}(t.barWidth,e()({},t,{style:n})),i=function(t,n){var e={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};return t?h()(t)?function(t,n){var e={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},r=function(r,i){f()(t[r])?f()(t[i])||(e[r]=v(t[i],n)):e[r]=v(t[r],n)};return r("topLeft","top"),r("topRight","top"),r("bottomLeft","bottom"),r("bottomRight","bottom"),e}(t,n):(e.topLeft=v(t,n),e.topRight=v(t,n),e):e}(t.cornerRadius,e()({},t,{style:n,barWidth:r}));return e()({},t,{style:n,barWidth:r,cornerRadius:i})},Et=function(t){var n,e,r=st().canvasRef,i=St(t),o=i.polar,a=i.style,s=i.barWidth,u=i.cornerRadius,h=i.origin,l=c().useMemo((function(){var t=o?function(t,n){return function(t,n){var e,r,i=t.datum,o=t.scale,a=t.index,s=t.alignment,c=t.style,u=o.y(i._y0||0),h=o.y(void 0!==i._y1?i._y1:i._y),l=o.x(void 0!==i._x1?i._x1:i._x);if(c.width){var f=function(t,n){var e=t.scale,r=e.y.range(),i=Math.max.apply(Math,J(r)),o=Math.abs(e.x.range()[1]-e.x.range()[0]);return n/(2*Math.PI*i)*o}(t,c.width),_="middle"===s?f/2:f;e="start"===s?l:l-_,r="end"===s?l:l+_}else e=function(t,n){var e=t.data,r=t.scale,i=t.alignment,o=et(t,n),a=Math.abs(r.x.range()[1]-r.x.range()[0]),s=0===n?et(t,e.length-1)-2*Math.PI:et(t,n-1);return 0===n&&a<2*Math.PI?r.x.range()[0]:"start"===i||"end"===i?"start"===i?s:o:(o+s)/2}(t,a),r=function(t,n){var e=t.data,r=t.scale,i=t.alignment,o=et(t,n),a=Math.abs(r.x.range()[1]-r.x.range()[0]),s=r.x.range()[1]===2*Math.PI?et(t,0)+2*Math.PI:r.x.range()[1],c=n===e.length-1?et(t,0)+2*Math.PI:et(t,n+1);return n===e.length-1&&a<2*Math.PI?s:"start"===i||"end"===i?"start"===i?o:c:(o+c)/2}(t,a);var p=function(t){return U().innerRadius(u).outerRadius(h).startAngle(rt(e)).endAngle(rt(r)).cornerRadius(n[t])()},y=function(t){var n=p("".concat(t,"Right")),e=n.match(/[A-Z]/g),r=n.split(/[A-Z]/).slice(1),i=e.indexOf("L"),o=p("".concat(t,"Left")),a=o.match(/[A-Z]/g),s=o.split(/[A-Z]/).slice(1),c=a.indexOf("L");return{rightMoves:e,rightCoords:r,rightMiddle:i,leftMoves:a,leftCoords:s,leftMiddle:c}},x=function(){var t,i,o=n.topRight,a=n.topLeft,s=h*Math.abs(r-e),c=y("top"),u=c.rightMoves,l=c.rightCoords,f=c.rightMiddle,_=c.leftMoves,p=c.leftCoords,x=c.leftMiddle;if(o===a||s<2*o+2*a)t=o>a?u:_,i=o>a?l:p;else{var v,d=function(t){return t<3},b=a>o&&d(f)?1:2;if(o>a){var g=d(f)?x:x-2;v=d(x)?x-1:g}else{var m=d(x)?1:2;v=d(f)?m:x-2}t=[].concat(J(u.slice(0,b)),J(_.slice(v))),i=[].concat(J(l.slice(0,b)),J(p.slice(v)))}var O=t.indexOf("L"),T=t.slice(0,O),w=i.slice(0,O);return T.map((function(t,n){return{command:t,coords:w[n].split(",")}}))}(),v=function(){var t,i,o=n.bottomRight,a=n.bottomLeft,s=u*Math.abs(r-e),c=y("bottom"),h=c.rightMoves,l=c.rightCoords,f=c.rightMiddle,_=c.leftMoves,p=c.leftCoords,x=c.leftMiddle;if(o===a||s<2*o+2*a)t=o>a?h:_,i=o>a?l:p;else{var v=function(t,n){return t.length-n<4},d=(o>a?v(h,f):v(_,x))?-1:-3;t=[].concat(J(_.slice(0,x+2)),J(h.slice(d))),i=[].concat(J(p.slice(0,x+2)),J(l.slice(d)))}var b=t.indexOf("L"),g=t.slice(b,-1),m=i.slice(b,-1);return g.map((function(t,n){return{command:t,coords:m[n].split(",")}}))}(),d=[].concat(J(x),J(v)).reduce((function(t,n){return t+"".concat(n.command," ").concat(n.coords.join())}),"");return"".concat(d," z")}(t,n)}(i,u):ot(i,s,u);return new Path2D(t)}),[o,s,u,i]),f=(n=l,e=c().useRef(),c().useEffect((function(){e.current=n})),e.current),_=c().useCallback((function(t,n){t.fillStyle=a.fill,t.strokeStyle=a.stroke,t.globalAlpha=a.fillOpacity,t.lineWidth=a.strokeWidth,o&&t.translate(h.x,h.y),t.fill(n),t.setTransform(1,0,0,1,0,0)}),[a,h,o]),p=c().useCallback((function(t){f&&(t.save(),t.lineWidth=a.strokeWidth+2,t.globalCompositeOperation="destination-out",_(t,f),t.stroke(f),t.restore())}),[_,f,a]);return c().useEffect((function(){var t=r.current.getContext("2d");p(t),_(t,l)}),[r,_,o,s,u,i,l,p]),null};Et.propTypes=Pt(Pt({},jt.primitiveProps),{},{alignment:a().oneOf(["start","middle","end"]),barRatio:a().number,barWidth:a().oneOfType([a().number,a().func]),cornerRadius:a().oneOfType([a().number,a().func,a().shape({top:a().oneOfType([a().number,a().func]),topLeft:a().oneOfType([a().number,a().func]),topRight:a().oneOfType([a().number,a().func]),bottom:a().oneOfType([a().number,a().func]),bottomLeft:a().oneOfType([a().number,a().func]),bottomRight:a().oneOfType([a().number,a().func])})]),datum:a().object,getPath:a().func,horizontal:a().bool,width:a().number,x:a().number,y:a().number,y0:a().number});const Rt=Et;var At=function(t){var n=c().useRef(),e=t.children,r=t.width,i=t.height,o=t.clipWidth,a=t.padding,s=c().useCallback((function(t){return t.clearRect(0,0,r,i)}),[r,i]),u=c().useCallback((function(t){var n=r-a.right-a.left;t.clearRect(r-a.right,0,-1*(n-o),i)}),[r,i,a,o]);return c().createElement(at.Provider,{value:{canvasRef:n,clear:s,clip:u}},c().createElement("foreignObject",{width:r,height:i,x:0,y:0},c().createElement("canvas",{width:r,height:i,ref:n})),e)};At.propTypes={"aria-label":a().string,children:a().oneOfType([a().arrayOf(a().node),a().node]),className:a().string,clipWidth:mt,height:a().number,padding:a().oneOfType([a().number,a().shape({top:a().number,bottom:a().number,left:a().number,right:a().number})]),width:a().number},At.role="container",At.displayName="CanvasGroup";const Ct=At;var Nt=Array.prototype.slice;function Lt(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function qt(t){this._context=t}function Dt(t){return new qt(t)}function zt(t){return t[0]}function It(t){return t[1]}function Wt(t,n){var e=M(!0),r=null,i=Dt,o=null;function a(a){var s,c,u,h=(a=Lt(a)).length,l=!1;for(null==r&&(o=i(u=j())),s=0;s<=h;++s)!(s<h&&e(c=a[s],s,a))===l&&((l=!l)?o.lineStart():o.lineEnd()),l&&o.point(+t(c,s,a),+n(c,s,a));if(u)return o=null,u+""||null}return t="function"==typeof t?t:void 0===t?zt:M(t),n="function"==typeof n?n:void 0===n?It:M(n),a.x=function(n){return arguments.length?(t="function"==typeof n?n:M(+n),a):t},a.y=function(t){return arguments.length?(n="function"==typeof t?t:M(+t),a):n},a.defined=function(t){return arguments.length?(e="function"==typeof t?t:M(!!t),a):e},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a}function Xt(t,n,e){var r=null,i=M(!0),o=null,a=Dt,s=null;function c(c){var u,h,l,f,_,p=(c=Lt(c)).length,y=!1,x=new Array(p),v=new Array(p);for(null==o&&(s=a(_=j())),u=0;u<=p;++u){if(!(u<p&&i(f=c[u],u,c))===y)if(y=!y)h=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),l=u-1;l>=h;--l)s.point(x[l],v[l]);s.lineEnd(),s.areaEnd()}y&&(x[u]=+t(f,u,c),v[u]=+n(f,u,c),s.point(r?+r(f,u,c):x[u],e?+e(f,u,c):v[u]))}if(_)return s=null,_+""||null}function u(){return Wt().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?zt:M(+t),n="function"==typeof n?n:M(void 0===n?0:+n),e="function"==typeof e?e:void 0===e?It:M(+e),c.x=function(n){return arguments.length?(t="function"==typeof n?n:M(+n),r=null,c):t},c.x0=function(n){return arguments.length?(t="function"==typeof n?n:M(+n),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:M(+t),c):r},c.y=function(t){return arguments.length?(n="function"==typeof t?t:M(+t),e=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:M(+t),c):n},c.y1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:M(+t),c):e},c.lineX0=c.lineY0=function(){return u().x(t).y(n)},c.lineY1=function(){return u().x(t).y(e)},c.lineX1=function(){return u().x(r).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:M(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),c):o},c}function Yt(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function Bt(t){return t}function Ft(){var t=Bt,n=Yt,e=null,r=M(0),i=M(D),o=M(0);function a(a){var s,c,u,h,l,f=(a=Lt(a)).length,_=0,p=new Array(f),y=new Array(f),x=+r.apply(this,arguments),v=Math.min(D,Math.max(-D,i.apply(this,arguments)-x)),d=Math.min(Math.abs(v)/f,o.apply(this,arguments)),b=d*(v<0?-1:1);for(s=0;s<f;++s)(l=y[p[s]=s]=+t(a[s],s,a))>0&&(_+=l);for(null!=n?p.sort((function(t,e){return n(y[t],y[e])})):null!=e&&p.sort((function(t,n){return e(a[t],a[n])})),s=0,u=_?(v-f*b)/_:0;s<f;++s,x=h)c=p[s],h=x+((l=y[c])>0?l*u:0)+b,y[c]={data:a[c],index:s,value:l,startAngle:x,endAngle:h,padAngle:d};return y}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:M(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,e=null,a):n},a.sort=function(t){return arguments.length?(e=t,n=null,a):e},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:M(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:M(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:M(+t),a):o},a}qt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var $t=Ut(Dt);function Zt(t){this._curve=t}function Ut(t){function n(n){return new Zt(t(n))}return n._curve=t,n}function Vt(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(Ut(t)):n()._curve},t}function Gt(){return Vt(Wt().curve($t))}function Kt(){var t=Xt().curve($t),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Vt(e())},delete t.lineX0,t.lineEndAngle=function(){return Vt(r())},delete t.lineX1,t.lineInnerRadius=function(){return Vt(i())},delete t.lineY0,t.lineOuterRadius=function(){return Vt(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(Ut(t)):n()._curve},t}function Ht(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}Zt.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};class Qt{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}class Jt{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,0==this._point++)this._x0=t,this._y0=n;else{const e=Ht(this._x0,this._y0),r=Ht(this._x0,this._y0=(this._y0+n)/2),i=Ht(t,this._y0),o=Ht(t,n);this._context.moveTo(...e),this._context.bezierCurveTo(...r,...i,...o)}}}function tn(t){return new Qt(t,!0)}function nn(t){return new Qt(t,!1)}function en(t){return new Jt(t)}function rn(t){return t.source}function on(t){return t.target}function an(t){let n=rn,e=on,r=zt,i=It,o=null,a=null;function s(){let s;const c=Nt.call(arguments),u=n.apply(this,c),h=e.apply(this,c);if(null==o&&(a=t(s=j())),a.lineStart(),c[0]=u,a.point(+r.apply(this,c),+i.apply(this,c)),c[0]=h,a.point(+r.apply(this,c),+i.apply(this,c)),a.lineEnd(),s)return a=null,s+""||null}return s.source=function(t){return arguments.length?(n=t,s):n},s.target=function(t){return arguments.length?(e=t,s):e},s.x=function(t){return arguments.length?(r="function"==typeof t?t:M(+t),s):r},s.y=function(t){return arguments.length?(i="function"==typeof t?t:M(+t),s):i},s.context=function(n){return arguments.length?(null==n?o=a=null:a=t(o=n),s):o},s}function sn(){return an(tn)}function cn(){return an(nn)}function un(){const t=an(en);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const hn=C(3),ln={draw(t,n){const e=.59436*C(n+R(n/28,.75)),r=e/2,i=r*hn;t.moveTo(0,e),t.lineTo(0,-e),t.moveTo(-i,-r),t.lineTo(i,r),t.moveTo(-i,r),t.lineTo(i,-r)}},fn={draw(t,n){const e=C(n/L);t.moveTo(e,0),t.arc(0,0,e,0,D)}},_n={draw(t,n){const e=C(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},pn=C(1/3),yn=2*pn,xn={draw(t,n){const e=C(n/yn),r=e*pn;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},vn={draw(t,n){const e=.62625*C(n);t.moveTo(0,-e),t.lineTo(e,0),t.lineTo(0,e),t.lineTo(-e,0),t.closePath()}},dn={draw(t,n){const e=.87559*C(n-R(n/7,2));t.moveTo(-e,0),t.lineTo(e,0),t.moveTo(0,e),t.lineTo(0,-e)}},bn={draw(t,n){const e=C(n),r=-e/2;t.rect(r,r,e,e)}},gn={draw(t,n){const e=.4431*C(n);t.moveTo(e,e),t.lineTo(e,-e),t.lineTo(-e,-e),t.lineTo(-e,e),t.closePath()}},mn=A(L/10)/A(7*L/10),On=A(D/10)*mn,Tn=-S(D/10)*mn,wn={draw(t,n){const e=C(.8908130915292852*n),r=On*e,i=Tn*e;t.moveTo(0,-e),t.lineTo(r,i);for(let n=1;n<5;++n){const o=D*n/5,a=S(o),s=A(o);t.lineTo(s*e,-a*e),t.lineTo(a*r-s*i,s*r+a*i)}t.closePath()}},jn=C(3),Mn={draw(t,n){const e=-C(n/(3*jn));t.moveTo(0,2*e),t.lineTo(-jn*e,-e),t.lineTo(jn*e,-e),t.closePath()}},Pn=C(3),kn={draw(t,n){const e=.6824*C(n),r=e/2,i=e*Pn/2;t.moveTo(0,-e),t.lineTo(i,r),t.lineTo(-i,r),t.closePath()}},Sn=-.5,En=C(3)/2,Rn=1/C(12),An=3*(Rn/2+1),Cn={draw(t,n){const e=C(n/An),r=e/2,i=e*Rn,o=r,a=e*Rn+e,s=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,c),t.lineTo(Sn*r-En*i,En*r+Sn*i),t.lineTo(Sn*o-En*a,En*o+Sn*a),t.lineTo(Sn*s-En*c,En*s+Sn*c),t.lineTo(Sn*r+En*i,Sn*i-En*r),t.lineTo(Sn*o+En*a,Sn*a-En*o),t.lineTo(Sn*s+En*c,Sn*c-En*s),t.closePath()}},Nn={draw(t,n){const e=.6189*C(n-R(n/6,1.7));t.moveTo(-e,-e),t.lineTo(e,e),t.moveTo(-e,e),t.lineTo(e,-e)}},Ln=[fn,_n,xn,bn,wn,Mn,Cn],qn=[fn,dn,Nn,kn,ln,gn,vn];function Dn(t,n){let e=null;function r(){let r;if(e||(e=r=j()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return t="function"==typeof t?t:M(t||fn),n="function"==typeof n?n:M(void 0===n?64:+n),r.type=function(n){return arguments.length?(t="function"==typeof n?n:M(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:M(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r}function zn(){}function In(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function Wn(t){this._context=t}function Xn(t){return new Wn(t)}function Yn(t){this._context=t}function Bn(t){return new Yn(t)}function Fn(t){this._context=t}function $n(t){return new Fn(t)}function Zn(t,n){this._basis=new Wn(t),this._beta=n}Wn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:In(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:In(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Yn.prototype={areaStart:zn,areaEnd:zn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:In(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Fn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:In(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Zn.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],a=t[e]-i,s=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*n[c]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const Un=function t(n){function e(t){return 1===n?new Wn(t):new Zn(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function Vn(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function Gn(t,n){this._context=t,this._k=(1-n)/6}Gn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Vn(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Vn(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const Kn=function t(n){function e(t){return new Gn(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Hn(t,n){this._context=t,this._k=(1-n)/6}Hn.prototype={areaStart:zn,areaEnd:zn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Vn(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const Qn=function t(n){function e(t){return new Hn(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Jn(t,n){this._context=t,this._k=(1-n)/6}Jn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Vn(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const te=function t(n){function e(t){return new Jn(t,n)}return e.tension=function(n){return t(+n)},e}(0);function ne(t,n,e){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>N){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>N){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-n*t._l12_2a)/h,a=(a*u+t._y1*t._l23_2a-e*t._l12_2a)/h}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function ee(t,n){this._context=t,this._alpha=n}ee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:ne(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const re=function t(n){function e(t){return n?new ee(t,n):new Gn(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function ie(t,n){this._context=t,this._alpha=n}ie.prototype={areaStart:zn,areaEnd:zn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:ne(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const oe=function t(n){function e(t){return n?new ie(t,n):new Hn(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function ae(t,n){this._context=t,this._alpha=n}ae.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ne(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const se=function t(n){function e(t){return n?new ae(t,n):new Jn(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function ce(t){this._context=t}function ue(t){return new ce(t)}function he(t){return t<0?-1:1}function le(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(e-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(he(o)+he(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function fe(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function _e(t,n,e){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*n,o-s,a-s*e,o,a)}function pe(t){this._context=t}function ye(t){this._context=new xe(t)}function xe(t){this._context=t}function ve(t){return new pe(t)}function de(t){return new ye(t)}function be(t){this._context=t}function ge(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,o[n]=4,a[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/o[n-1],o[n]-=e,a[n]-=e*a[n-1];for(i[r-1]=a[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(a[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}function me(t){return new be(t)}function Oe(t,n){this._context=t,this._t=n}function Te(t){return new Oe(t,.5)}function we(t){return new Oe(t,0)}function je(t){return new Oe(t,1)}function Me(t,n){if((i=t.length)>1)for(var e,r,i,o=1,a=t[n[0]],s=a.length;o<i;++o)for(r=a,a=t[n[o]],e=0;e<s;++e)a[e][1]+=a[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}function Pe(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e}function ke(t,n){return t[n]}function Se(t){const n=[];return n.key=t,n}function Ee(){var t=M([]),n=Pe,e=Me,r=ke;function i(i){var o,a,s=Array.from(t.apply(this,arguments),Se),c=s.length,u=-1;for(const t of i)for(o=0,++u;o<c;++o)(s[o][u]=[0,+r(t,s[o].key,u,i)]).data=t;for(o=0,a=Lt(n(s));o<c;++o)s[a[o]].index=o;return e(s,a),s}return i.keys=function(n){return arguments.length?(t="function"==typeof n?n:M(Array.from(n)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:M(+t),i):r},i.order=function(t){return arguments.length?(n=null==t?Pe:"function"==typeof t?t:M(Array.from(t)),i):n},i.offset=function(t){return arguments.length?(e=null==t?Me:t,i):e},i}function Re(t,n){if((r=t.length)>0){for(var e,r,i,o=0,a=t[0].length;o<a;++o){for(i=e=0;e<r;++e)i+=t[e][o][1]||0;if(i)for(e=0;e<r;++e)t[e][o][1]/=i}Me(t,n)}}function Ae(t,n){if((s=t.length)>0)for(var e,r,i,o,a,s,c=0,u=t[n[0]].length;c<u;++c)for(o=a=0,e=0;e<s;++e)(i=(r=t[n[e]][c])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function Ce(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<e;++a)s+=t[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}Me(t,n)}}function Ne(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,a=1;a<r;++a){for(var s=0,c=0,u=0;s<i;++s){for(var h=t[n[s]],l=h[a][1]||0,f=(l-(h[a-1][1]||0))/2,_=0;_<s;++_){var p=t[n[_]];f+=(p[a][1]||0)-(p[a-1][1]||0)}c+=l,u+=f*l}e[a-1][1]+=e[a-1][0]=o,c&&(o-=u/c)}e[a-1][1]+=e[a-1][0]=o,Me(t,n)}}function Le(t){var n=t.map(qe);return Pe(t).sort((function(t,e){return n[t]-n[e]}))}function qe(t){for(var n,e=-1,r=0,i=t.length,o=-1/0;++e<i;)(n=+t[e][1])>o&&(o=n,r=e);return r}function De(t){var n=t.map(ze);return Pe(t).sort((function(t,e){return n[t]-n[e]}))}function ze(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function Ie(t){return De(t).reverse()}function We(t){var n,e,r=t.length,i=t.map(ze),o=Le(t),a=0,s=0,c=[],u=[];for(n=0;n<r;++n)e=o[n],a<s?(a+=i[e],c.push(e)):(s+=i[e],u.push(e));return u.reverse().concat(c)}function Xe(t){return Pe(t).reverse()}ce.prototype={areaStart:zn,areaEnd:zn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}},pe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:_e(this,this._t0,fe(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,_e(this,fe(this,e=le(this,t,n)),e);break;default:_e(this,this._t0,e=le(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(ye.prototype=Object.create(pe.prototype)).point=function(t,n){pe.prototype.point.call(this,n,t)},xe.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},be.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=ge(t),i=ge(n),o=0,a=1;a<e;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],n[a]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}},Oe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var Ye=function(t){return null!=(void 0!==t._y1?t._y1:t._y)&&null!==t._y0},Be=function(t){return function(n){return t.x(void 0!==n._x1?n._x1:n._x)}},Fe=function(t){return function(n){return t.y(void 0!==n._y1?n._y1:n._y)}},$e=function(t){return"curve".concat(function(t){return t&&t[0].toUpperCase()+t.slice(1)}(t))},Ze=function(n){var e=n.interpolation;if("function"==typeof e)return e;if("string"==typeof e){var r=n.polar,i=n.openCurve,o=(void 0===i?!r:i)?$e(e):function(t){return"".concat($e(t),"Closed")}(e);return t[o]}return Dt},Ue=function(t){var n=t.polar,e=t.scale,r=t.horizontal;return n?Gt().defined(Ye).curve(Ze(t)).angle(function(t){return function(n){return-1*t.x(void 0!==n._x1?n._x1:n._x)+Math.PI/2}}(e)).radius(Fe(e)):Wt().defined(Ye).curve(Ze(t)).x(r?Fe(e):Be(e)).y(r?Be(e):Fe(e))};function Ve(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function Ge(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Ve(Object(e),!0).forEach((function(n){Ke(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ve(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function Ke(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var He=function(t){var n=st(),e=n.canvasRef,r=n.clear,i=n.clip,o=t.style,a=t.data,s=o.stroke,u=o.strokeWidth,h=c().useCallback((function(n){var e=Ue(t);n.strokeStyle=s,n.lineWidth=u,e.context(n)(a),n.stroke()}),[a,t,s,u]);return c().useEffect((function(){var t=e.current.getContext("2d");r(t),h(t),i(t)}),[e,h,r,i]),null};He.propTypes=Ge(Ge({},jt.primitiveProps),{},{interpolation:a().oneOfType([a().string,a().func]),openCurve:a().bool,origin:a().object,polar:a().bool});const Qe=He;var Je=r(9717),tr=r.n(Je);function nr(t,n,e){return"M ".concat(t,", ").concat(n,"\n m ").concat(-e,", 0\n a ").concat(e,", ").concat(e," 0 1,0 ").concat(2*e,",0\n a ").concat(e,", ").concat(e," 0 1,0 ").concat(2*-e,",0")}function er(t,n,e){var r=.87*e,i=t-r,o=n+r,a=t+r-i;return"M ".concat(i,", ").concat(o,"\n h").concat(a,"\n v-").concat(a,"\n h-").concat(a,"\n z")}function rr(t,n,e){var r=.87*e,i=Math.sqrt(r*r*2);return"M ".concat(t,", ").concat(n+i,"\n l ").concat(i,", -").concat(i,"\n l -").concat(i,", -").concat(i,"\n l -").concat(i,", ").concat(i,"\n l ").concat(i,", ").concat(i,"\n z")}function ir(t,n,e){var r=t+e,i=n-e,o=n+e/2*Math.sqrt(3);return"M ".concat(t-e,", ").concat(i,"\n L ").concat(r,", ").concat(i,"\n L ").concat(t,", ").concat(o,"\n z")}function or(t,n,e){var r=t+e,i=n-e/2*Math.sqrt(3),o=n+e;return"M ".concat(t-e,", ").concat(o,"\n L ").concat(r,", ").concat(o,"\n L ").concat(t,", ").concat(i,"\n z")}function ar(t,n,e){var r=1.1*e,i=r/1.5;return"\n M ".concat(t-i/2,", ").concat(n+r,"\n v-").concat(i,"\n h-").concat(i,"\n v-").concat(i,"\n h").concat(i,"\n v-").concat(i,"\n h").concat(i,"\n v").concat(i,"\n h").concat(i,"\n v").concat(i,"\n h-").concat(i,"\n v").concat(i,"\n z")}function sr(t,n,e){var r=.8*e,i=r/1.5;return"\n M ".concat(t-i/2,", ").concat(n+r+i,"\n v-").concat(2*i,"\n h-").concat(i,"\n v-").concat(i,"\n h").concat(i,"\n v-").concat(i,"\n h").concat(i,"\n v").concat(i,"\n h").concat(i,"\n v").concat(i,"\n h-").concat(i,"\n v").concat(2*i,"\n z")}function cr(t,n,e){var r=1.1*e,i=r-.3*r,o=t-r,a=n+i/2,s=t+r-o;return"M ".concat(o,", ").concat(a,"\n h").concat(s,"\n v-").concat(i,"\n h-").concat(s,"\n z")}function ur(t,n,e){var r=1.35*e,i=Math.PI/5,o=tr()(10).map((function(e){var o=e%2==0?r:r/2;return"".concat(o*Math.sin(i*(e+1))+t,",\n ").concat(o*Math.cos(i*(e+1))+n)}));return"M ".concat(o.join("L")," z")}function hr(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function lr(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?hr(Object(e),!0).forEach((function(n){fr(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):hr(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function fr(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var _r=function(t){var n=st().canvasRef,r=function(t){var n=v(t.size,t),r=d(t.style,t),i=v(t.symbol,t);return e()({},t,{size:n,style:r,symbol:i})}(t),i=c().useCallback((function(t){var n=r.style,e=function(t){var n=t.x,e=t.y,r=t.size,i=t.symbol;if(t.getPath)return t.getPath(n,e,r);var o={circle:nr,square:er,diamond:rr,triangleDown:ir,triangleUp:or,plus:ar,minus:cr,star:ur,cross:sr};return("function"==typeof o[i]?o[i]:o.circle)(n,e,r)}(r);t.fillStyle=n.fill;var i=new Path2D(e);t.fill(i)}),[r]);return c().useEffect((function(){var t=n.current.getContext("2d");i(t)}),[]),null};_r.propTypes=lr(lr({},jt.primitiveProps),{},{datum:a().object,size:a().oneOfType([a().number,a().func]),x:a().number,y:a().number});const pr=_r})(),i})()));
2
2
  //# sourceMappingURL=victory-canvas.min.js.map
package/es/canvas-bar.js CHANGED
@@ -1,8 +1,16 @@
1
- import _omit from "lodash/omit";
2
1
  import _assign from "lodash/assign";
2
+
3
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
+
5
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
+
7
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
+
9
+ import PropTypes from "prop-types";
3
10
  import React from "react";
4
- import { Bar, getBarPath, getBarWidth, getCornerRadius, getPolarBarPath, getStyle } from "victory-bar";
11
+ import { getBarPath, getBarWidth, getCornerRadius, getPolarBarPath, getStyle } from "victory-bar";
5
12
  import { useCanvasContext } from "./hooks/use-canvas-context";
13
+ import { CommonProps } from "victory-core";
6
14
 
7
15
  var evaluateProps = function (props) {
8
16
  /**
@@ -82,5 +90,25 @@ var CanvasBar = function (initialProps) {
82
90
  return null;
83
91
  };
84
92
 
85
- CanvasBar.propTypes = _omit(Bar.propTypes, "pathComponent");
86
- export default CanvasBar;
93
+ CanvasBar.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps), {}, {
94
+ alignment: PropTypes.oneOf(["start", "middle", "end"]),
95
+ barRatio: PropTypes.number,
96
+ barWidth: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
97
+ cornerRadius: PropTypes.oneOfType([PropTypes.number, PropTypes.func, PropTypes.shape({
98
+ top: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
99
+ topLeft: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
100
+ topRight: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
101
+ bottom: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
102
+ bottomLeft: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
103
+ bottomRight: PropTypes.oneOfType([PropTypes.number, PropTypes.func])
104
+ })]),
105
+ datum: PropTypes.object,
106
+ getPath: PropTypes.func,
107
+ horizontal: PropTypes.bool,
108
+ width: PropTypes.number,
109
+ x: PropTypes.number,
110
+ y: PropTypes.number,
111
+ y0: PropTypes.number
112
+ });
113
+ export default CanvasBar;
114
+ //# sourceMappingURL=canvas-bar.js.map
@@ -41,4 +41,5 @@ CanvasCurve.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitivePro
41
41
  origin: PropTypes.object,
42
42
  polar: PropTypes.bool
43
43
  });
44
- export default CanvasCurve;
44
+ export default CanvasCurve;
45
+ //# sourceMappingURL=canvas-curve.js.map
@@ -53,4 +53,5 @@ CanvasGroup.propTypes = {
53
53
  };
54
54
  CanvasGroup.role = "container";
55
55
  CanvasGroup.displayName = "CanvasGroup";
56
- export default CanvasGroup;
56
+ export default CanvasGroup;
57
+ //# sourceMappingURL=canvas-group.js.map
@@ -79,4 +79,5 @@ CanvasPoint.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitivePro
79
79
  x: PropTypes.number,
80
80
  y: PropTypes.number
81
81
  });
82
- export default CanvasPoint;
82
+ export default CanvasPoint;
83
+ //# sourceMappingURL=canvas-point.js.map
@@ -8,4 +8,5 @@ export var useCanvasContext = function () {
8
8
  }
9
9
 
10
10
  return context;
11
- };
11
+ };
12
+ //# sourceMappingURL=use-canvas-context.js.map
package/es/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  NumberOrCallback,
5
5
  StringOrCallback,
6
6
  ScatterSymbolType,
7
- PaddingProps
7
+ PaddingProps,
8
8
  } from "victory-core";
9
9
  import * as React from "react";
10
10
 
package/es/index.js CHANGED
@@ -2,4 +2,5 @@ export { default as CanvasBar } from "./canvas-bar";
2
2
  export { default as CanvasGroup } from "./canvas-group";
3
3
  export { default as CanvasCurve } from "./canvas-curve";
4
4
  export { default as CanvasPoint } from "./canvas-point";
5
- export { useCanvasContext } from "./hooks/use-canvas-context";
5
+ export { useCanvasContext } from "./hooks/use-canvas-context";
6
+ //# sourceMappingURL=index.js.map
package/lib/canvas-bar.js CHANGED
@@ -5,18 +5,26 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.usePreviousValue = exports.default = void 0;
7
7
 
8
- var _omit2 = _interopRequireDefault(require("lodash/omit"));
9
-
10
8
  var _assign2 = _interopRequireDefault(require("lodash/assign"));
11
9
 
10
+ var _propTypes = _interopRequireDefault(require("prop-types"));
11
+
12
12
  var _react = _interopRequireDefault(require("react"));
13
13
 
14
14
  var _victoryBar = require("victory-bar");
15
15
 
16
16
  var _useCanvasContext2 = require("./hooks/use-canvas-context");
17
17
 
18
+ var _victoryCore = require("victory-core");
19
+
18
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
21
 
22
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
23
+
24
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
25
+
26
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
27
+
20
28
  var evaluateProps = function (props) {
21
29
  /**
22
30
  * Potential evaluated props of following must be evaluated in this order:
@@ -105,6 +113,26 @@ var CanvasBar = function (initialProps) {
105
113
  return null;
106
114
  };
107
115
 
108
- CanvasBar.propTypes = (0, _omit2.default)(_victoryBar.Bar.propTypes, "pathComponent");
116
+ CanvasBar.propTypes = _objectSpread(_objectSpread({}, _victoryCore.CommonProps.primitiveProps), {}, {
117
+ alignment: _propTypes.default.oneOf(["start", "middle", "end"]),
118
+ barRatio: _propTypes.default.number,
119
+ barWidth: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.func]),
120
+ cornerRadius: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.func, _propTypes.default.shape({
121
+ top: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.func]),
122
+ topLeft: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.func]),
123
+ topRight: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.func]),
124
+ bottom: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.func]),
125
+ bottomLeft: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.func]),
126
+ bottomRight: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.func])
127
+ })]),
128
+ datum: _propTypes.default.object,
129
+ getPath: _propTypes.default.func,
130
+ horizontal: _propTypes.default.bool,
131
+ width: _propTypes.default.number,
132
+ x: _propTypes.default.number,
133
+ y: _propTypes.default.number,
134
+ y0: _propTypes.default.number
135
+ });
109
136
  var _default = CanvasBar;
110
- exports.default = _default;
137
+ exports.default = _default;
138
+ //# sourceMappingURL=canvas-bar.js.map
@@ -58,4 +58,5 @@ CanvasCurve.propTypes = _objectSpread(_objectSpread({}, _victoryCore.CommonProps
58
58
  polar: _propTypes.default.bool
59
59
  });
60
60
  var _default = CanvasCurve;
61
- exports.default = _default;
61
+ exports.default = _default;
62
+ //# sourceMappingURL=canvas-curve.js.map
@@ -70,4 +70,5 @@ CanvasGroup.propTypes = {
70
70
  CanvasGroup.role = "container";
71
71
  CanvasGroup.displayName = "CanvasGroup";
72
72
  var _default = CanvasGroup;
73
- exports.default = _default;
73
+ exports.default = _default;
74
+ //# sourceMappingURL=canvas-group.js.map
@@ -98,4 +98,5 @@ CanvasPoint.propTypes = _objectSpread(_objectSpread({}, _victoryCore.CommonProps
98
98
  y: _propTypes.default.number
99
99
  });
100
100
  var _default = CanvasPoint;
101
- exports.default = _default;
101
+ exports.default = _default;
102
+ //# sourceMappingURL=canvas-point.js.map
@@ -23,4 +23,5 @@ var useCanvasContext = function () {
23
23
  return context;
24
24
  };
25
25
 
26
- exports.useCanvasContext = useCanvasContext;
26
+ exports.useCanvasContext = useCanvasContext;
27
+ //# sourceMappingURL=use-canvas-context.js.map
package/lib/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  NumberOrCallback,
5
5
  StringOrCallback,
6
6
  ScatterSymbolType,
7
- PaddingProps
7
+ PaddingProps,
8
8
  } from "victory-core";
9
9
  import * as React from "react";
10
10
 
package/lib/index.js CHANGED
@@ -44,4 +44,5 @@ var _canvasPoint = _interopRequireDefault(require("./canvas-point"));
44
44
 
45
45
  var _useCanvasContext = require("./hooks/use-canvas-context");
46
46
 
47
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
47
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
48
+ //# sourceMappingURL=index.js.map