victory-cursor-container
Advanced tools
Comparing version 37.0.3-next.0 to 37.1.0
# victory-cursor-container | ||
## 37.0.3-next.0 | ||
## 37.1.0 | ||
### Patch Changes | ||
### Minor Changes | ||
- 65d02419f: Refactor containers and portal to function components | ||
- Updated dependencies [65d02419f] | ||
- victory-core@37.0.3-next.0 | ||
- Refactor containers and portal to function components ([#2799](https://github.com/FormidableLabs/victory/pull/2799)) | ||
* Pin all internal victory package versions ([#2876](https://github.com/FormidableLabs/victory/pull/2876)) | ||
## 37.0.2 | ||
@@ -12,0 +12,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryCursorContainer=e(require("react")):t.VictoryCursorContainer=e(t.React)}(self,(function(t){return function(){var e={503:function(t,e,n){var r=n(1171),o=n(7838),i=n(4859),a=n(4073),c=n(8541);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},2596:function(t,e,n){var r=n(2373).Symbol;t.exports=r},6082:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},8644:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},9559:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},4132:function(t,e,n){var r=n(8347),o=n(788),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},3162:function(t,e,n){var r=n(788);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},8347:function(t,e,n){var r=n(5525);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},6457:function(t,e,n){var r=n(9559),o=n(3608);t.exports=function t(e,n,i,a,c){var u=-1,s=e.length;for(i||(i=o),c||(c=[]);++u<s;){var l=e[u];n>0&&i(l)?n>1?t(l,n-1,i,a,c):r(c,l):a||(c[c.length]=l)}return c}},4432:function(t,e,n){var r=n(9026),o=n(3110);t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},563:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},6776:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},7190:function(t,e,n){var r=n(5125)(Object.keys,Object);t.exports=r},5436:function(t,e,n){var r=n(6371),o=n(5066);t.exports=function(t,e){return r(t,e,(function(e,n){return o(t,n)}))}},6371:function(t,e,n){var r=n(4432),o=n(6539),i=n(9026);t.exports=function(t,e,n){for(var a=-1,c=e.length,u={};++a<c;){var s=e[a],l=r(t,s);n(l,s)&&o(u,i(s,t),l)}return u}},1600:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},3301:function(t,e,n){var r=n(4432);t.exports=function(t){return function(e){return r(e,t)}}},6317:function(t,e,n){var r=n(5346),o=n(4280),i=n(201);t.exports=function(t,e){return i(o(t,e,r),t+"")}},6539:function(t,e,n){var r=n(4132),o=n(9026),i=n(9099),a=n(7709),c=n(3110);t.exports=function(t,e,n,u){if(!a(t))return t;for(var s=-1,l=(e=o(e,t)).length,f=l-1,d=t;null!=d&&++s<l;){var p=c(e[s]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(s!=f){var y=d[p];void 0===(h=u?u(y,p,d):void 0)&&(h=a(y)?y:i(e[s+1])?[]:{})}r(d,p,h),d=d[p]}return t}},6316:function(t,e,n){var r=n(2596),o=n(8644),i=n(163),a=n(1995),c=r?r.prototype:void 0,u=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},1367:function(t,e,n){var r=n(4120),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},9026:function(t,e,n){var r=n(163),o=n(726),i=n(7801),a=n(7010);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},5525:function(t,e,n){var r=n(3743),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},5557:function(t,e,n){var r=n(2645),o=n(4280),i=n(201);t.exports=function(t){return i(o(t,void 0,r),t+"")}},2117:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},3743:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},9667:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},3096:function(t,e,n){var r=n(9026),o=n(5075),i=n(163),a=n(9099),c=n(8454),u=n(3110);t.exports=function(t,e,n){for(var s=-1,l=(e=r(e,t)).length,f=!1;++s<l;){var d=u(e[s]);if(!(f=null!=t&&n(t,d)))break;t=t[d]}return f||++s!=l?f:!!(l=null==t?0:t.length)&&c(l)&&a(d,l)&&(i(t)||o(t))}},3608:function(t,e,n){var r=n(2596),o=n(5075),i=n(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},9099:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},8286:function(t){t.exports=function(){return!1}},726:function(t,e,n){var r=n(163),o=n(1995),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},5782:function(t){t.exports=function(){return!1}},1171:function(t){t.exports=function(){this.__data__=[],this.size=0}},7838:function(t,e,n){var r=n(3162),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))}},4859:function(t,e,n){var r=n(3162);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},4073:function(t,e,n){var r=n(3162);t.exports=function(t){return r(this.__data__,t)>-1}},8541:function(t,e,n){var r=n(3162);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},2453:function(t){t.exports=function(t){return t}},5125:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},4280:function(t,e,n){var r=n(6082),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,c=o(i.length-e,0),u=Array(c);++a<c;)u[a]=i[e+a];a=-1;for(var s=Array(e+1);++a<e;)s[a]=i[a];return s[e]=n(u),r(t,this,s)}}},2373:function(t,e,n){var r=n(2117),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},201:function(t){t.exports=function(t){return t}},7801:function(t,e,n){var r=n(2453),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)})),e}));t.exports=a},3110:function(t,e,n){var r=n(1995);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},4120:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},5034:function(t,e,n){var r=n(7709),o=n(6987),i=n(5812),a=Math.max,c=Math.min;t.exports=function(t,e,n){var u,s,l,f,d,p,h=0,y=!1,g=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function x(e){var n=u,r=s;return u=s=void 0,h=e,f=t.apply(r,n)}function m(t){return h=t,d=setTimeout(w,e),y?x(t):f}function b(t){var n=t-p;return void 0===p||n>=e||n<0||g&&t-h>=l}function w(){var t=o();if(b(t))return S(t);d=setTimeout(w,function(t){var n=e-(t-p);return g?c(n,l-(t-h)):n}(t))}function S(t){return d=void 0,v&&u?x(t):(u=s=void 0,f)}function A(){var t=o(),n=b(t);if(u=arguments,s=this,p=t,n){if(void 0===d)return m(p);if(g)return clearTimeout(d),d=setTimeout(w,e),x(p)}return void 0===d&&(d=setTimeout(w,e)),f}return e=i(e)||0,r(n)&&(y=!!n.leading,l=(g="maxWait"in n)?a(i(n.maxWait)||0,e):l,v="trailing"in n?!!n.trailing:v),A.cancel=function(){void 0!==d&&clearTimeout(d),h=0,u=p=s=d=void 0},A.flush=function(){return void 0===d?f:S(o())},A}},1893:function(t,e,n){var r=n(6317),o=n(788),i=n(8286),a=n(8855),c=Object.prototype,u=c.hasOwnProperty,s=r((function(t,e){t=Object(t);var n=-1,r=e.length,s=r>2?e[2]:void 0;for(s&&i(e[0],e[1],s)&&(r=1);++n<r;)for(var l=e[n],f=a(l),d=-1,p=f.length;++d<p;){var h=f[d],y=t[h];(void 0===y||o(y,c[h])&&!u.call(t,h))&&(t[h]=l[h])}return t}));t.exports=s},788:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},2645:function(t,e,n){var r=n(6457);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},5066:function(t,e,n){var r=n(6776),o=n(3096);t.exports=function(t,e){return null!=t&&o(t,e,r)}},5346:function(t){t.exports=function(t){return t}},5075:function(t){t.exports=function(){return!1}},163:function(t){var e=Array.isArray;t.exports=e},981:function(t,e,n){var r=n(9642),o=n(8454);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},4801:function(t){t.exports=function(){return!1}},4155:function(t,e,n){var r=n(7190),o=n(9667),i=n(5075),a=n(163),c=n(981),u=n(4801),s=n(5782),l=n(4289),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(c(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||l(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(s(t))return!r(t).length;for(var n in t)if(f.call(t,n))return!1;return!0}},9642:function(t,e,n){var r=n(563),o=n(7709);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},8454:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},1995:function(t){t.exports=function(){return!1}},4289:function(t){t.exports=function(){return!1}},8855:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1594:function(t,e,n){var r=n(503);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},6987:function(t,e,n){var r=n(2373);t.exports=function(){return r.Date.now()}},9082:function(t,e,n){var r=n(5436),o=n(5557)((function(t,e){return null==t?{}:r(t,e)}));t.exports=o},8532:function(t,e,n){var r=n(1600),o=n(3301),i=n(726),a=n(3110);t.exports=function(t){return i(t)?r(a(t)):o(t)}},8163:function(t,e,n){var r=n(5034),o=n(7709);t.exports=function(t,e,n){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(t,e,{leading:i,maxWait:e,trailing:a})}},5812:function(t,e,n){var r=n(1367),o=n(7709),i=n(1995),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=c.test(t);return n||u.test(t)?s(t.slice(2),n?2:8):a.test(t)?NaN:+t}},7010:function(t,e,n){var r=n(6316);t.exports=function(t){return null==t?"":r(t)}},660:function(t,e,n){var r=n(7010),o=0;t.exports=function(t){var e=++o;return r(t)+e}},9787:function(e){"use strict";e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return function(){"use strict";r.r(o),r.d(o,{CursorHelpers:function(){return v},VICTORY_CURSOR_CONTAINER_DEFAULT_PROPS:function(){return mt},VictoryCursorContainer:function(){return wt},useVictoryCursorContainer:function(){return bt}});var t=r(8163),e=r.n(t),n=(r(9082),r(8532),r(1893)),i=r.n(n),a=r(9787),c=r.n(a);function u(t){const e=t=>void 0!==t,{_x:n,_x1:r,_x0:o,_voronoiX:a,_y:c,_y1:u,_y0:s,_voronoiY:l}=t,f=e(r)?r:n,d=e(u)?u:c,p={x:e(a)?a:f,x0:e(o)?o:n,y:e(l)?l:d,y0:e(s)?s:c};return i()({},p,t)}function s(t,e){void 0===e&&(e="padding");const n=t[e],r="number"==typeof n?n:0,o="object"==typeof n?n:{};return{top:o.top||r,bottom:o.bottom||r,left:o.left||r,right:o.right||r}}function l(t,e){return d(t)?t(e):t}function f(t,e){return e.disableInlineStyles?{}:t&&Object.keys(t).some((e=>d(t[e])))?Object.keys(t).reduce(((n,r)=>(n[r]=l(t[r],e),n)),{}):t}function d(t){return"function"==typeof t}function p(t,e){if(t)return Object.keys(t).reduce(((n,r)=>(n[r]=e(t[r]),n)),{})}function h(t,e,n){const{a:r,d:o,e:i,f:a}=e;return"y"===n?o*t+a:r*t+i}function y(t){return!(!t||void 0===t.identifier)}function g(t){if(y(t.nativeEvent))return;const e=t=>"svg"===t.nodeName?t:t.parentNode?e(t.parentNode):t;return e(t.target)}const v=new class{getDimension(t){const{horizontal:e,cursorDimension:n}=t;return e&&n?"x"===n?"y":"x":n}withinBounds(t,e){const{x1:n,x2:r,y1:o,y2:i}=p(e,Number),{x:a,y:c}=p(t,Number);return a>=Math.min(n,r)&&a<=Math.max(n,r)&&c>=Math.min(o,i)&&c<=Math.max(o,i)}handleMouseMove=(t,e)=>{const{onCursorChange:n,domain:r}=e,o=this.getDimension(e),i=e.parentSVG||g(t),a=function(t,e){if(y(t.nativeEvent))return{x:t.nativeEvent.locationX,y:t.nativeEvent.locationY};const n=function(t){return t.changedTouches&&t.changedTouches.length>0}(t)?t.changedTouches[0]:t,r=function(t){return t.getScreenCTM().inverse()}(e||g(n));return{x:h(n.clientX,r,"x"),y:h(n.clientY,r,"y")}}(t,i);let c=function(t,e,n,r){const{polar:o,horizontal:i}=t;if(!o)return{x:i?e.x.invert(r):e.x.invert(n),y:i?e.y.invert(n):e.y.invert(r)};const a=t.origin||{x:0,y:0},c=n-a.x,u=r-a.y,s=Math.abs(c*Math.sqrt(1+Math.pow(-u/c,2))),l=(-Math.atan2(u,c)+2*Math.PI)%(2*Math.PI);return{x:e.x.invert(l),y:e.y.invert(s)}}(e,e.scale,a.x,a.y);return this.withinBounds(c,{x1:r.x[0],x2:r.x[1],y1:r.y[0],y2:r.y[1]})||(c=null),d(n)&&(c?n(o?c[o]:c,e):c!==e.cursorValue&&n(e.defaultCursorValue||null,e)),[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:c,parentSVG:i})}]};onMouseMove=e()(this.handleMouseMove,16,{leading:!0,trailing:!1});onMouseLeave=this.handleMouseMove;onTouchEnd=(t,e)=>{const{onCursorChange:n}=e;return d(e.onCursorChange)&&n(null,e),[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:null})}]}};var x=r(7709),m=r.n(x),b=r(4155),w=r.n(b);const S=c().createContext(void 0);S.displayName="PortalContext";const A=()=>{const t=c().useContext(S);if(!t)throw new Error("`usePortalContext` must be used within a `<PortalProvider />`");return t},E=t=>{let{children:e}=t;const[n,r]=c().useState(new Map),o=c().useCallback(((t,e)=>{r((n=>{const r=new Map(n);return r.set(t,e),r}))}),[r]),i=c().useCallback((t=>{r((e=>{const n=new Map(e);return n.delete(t),n}))}),[r]),a=c().useMemo((()=>({addChild:o,removeChild:i,children:n})),[o,i,n]);return c().createElement(S.Provider,{value:a},e)},C={groupComponent:c().createElement("g",null)},O=t=>{const e={...C,...t},n=c().useId(),r=A();return c().useEffect((()=>{const t=Array.isArray(e.children)?e.children[0]:e.children,{groupComponent:o}=e,a=t&&t.props||{},u=a.groupComponent?{groupComponent:o,standalone:!1}:{},s=i()(u,a,function(t,e){void 0===e&&(e=[]);const n={};for(const r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(e,["children","groupComponent"])),l=t&&c().cloneElement(t,s);r.addChild(n,l)}),[e.children]),c().useEffect((()=>()=>r.removeChild(n)),[]),null};function j(){return j=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},j.apply(this,arguments)}O.role="portal";const M=(0,a.forwardRef)(((t,e)=>{const{desc:n,id:r,tabIndex:o,origin:i,...a}=t,u={vectorEffect:"non-scaling-stroke",id:l(r,t)?.toString(),tabIndex:l(o,t),...a};return n?c().createElement("rect",j({},u,{ref:e}),c().createElement("desc",null,n)):c().createElement("rect",j({},u,{ref:e}))})),k=t=>{const{children:e,desc:n,id:r,origin:o,tabIndex:i,title:a,...u}=t,s={id:l(r,t)?.toString(),tabIndex:l(i,t),...u};return c().createElement("text",s,a&&c().createElement("title",null,a),n&&c().createElement("desc",null,n),e)},P=t=>{const{desc:e,id:n,tabIndex:r,origin:o,...i}=t,a={id:l(n,t)?.toString(),tabIndex:l(r,t),...i};return c().createElement("tspan",a)};const z=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce(((t,e)=>[t,z(e)].join(" ")),z(t)).trim();if(null==t||"string"==typeof t)return t;const o=[];for(const e in t)if(t.hasOwnProperty(e)){const n=t[e];o.push(`${e}(${n})`)}return o.join(" ").trim()};var _=r(1594),I=r.n(_);const H={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},T={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},$={em:1,ex:.5},N={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},R=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),L=(t,e,n)=>{const r=(t=>t*Math.PI/180)(n);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e)},B=(t,e)=>{const n=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let o;return o=n?T.hasOwnProperty(n)?r*T[n]:$.hasOwnProperty(n)?(e?r*e:r*N.fontSize)*$[n]:r:r||0,o},F=(t,e)=>{const n=Array.isArray(t)?t[e]:t,r=i()({},n,N);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:B(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:B(String(r.fontSize))})},V=(t,e)=>{const n=Array.isArray(e)?e[0]&&e[0].angle:e&&e.angle,r=((t,e)=>void 0===t||""===t||null===t?0:R(t).reduce(((t,n,r)=>{const o=F(e,r),i=n.toString().match(/[(A-Z)(0-9)]/)?1.15*o.fontSize:o.fontSize;return t+o.lineHeight*i}),0))(t,e),o=((t,e)=>{if(void 0===t||""===t||null===t)return 0;const n=R(t).map(((t,n)=>{const r=t.toString().length,{fontSize:o,letterSpacing:i,fontFamily:a}=F(e,n),c=(t=>{const e=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>H[t]))||"Helvetica";return H[e]})(a);return t.toString().split("").map((t=>t.charCodeAt(0)<c.widths.length?c.widths[t.charCodeAt(0)]:c.avg)).reduce(((t,e)=>e+t),0)*o+i*Math.max(r-1,0)}));return Math.max(...n)})(t,e);return{width:n?L(o,r,n):o,height:1.05*(n?L(r,o,n):r)}},D=I()((()=>{const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("xlink","http://www.w3.org/1999/xlink"),t.setAttribute("width","300"),t.setAttribute("height","300"),t.setAttribute("viewBox","0 0 300 300"),t.setAttribute("aria-hidden","true");const e=document.createElementNS("http://www.w3.org/2000/svg","text");return t.appendChild(e),t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t),e})),W=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",G=I()(((t,e)=>{let n=D();n.isConnected||(D.cache.clear?.(),n=D());const r=R(t);let o=0;for(const[t,i]of r.entries()){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),a=F(e,t);r.style.fontFamily=a.fontFamily,r.style.fontSize=`${a.fontSize}px`,r.style.lineHeight=a.lineHeight,r.style.fontFamily=a.fontFamily,r.style.letterSpacing=a.letterSpacing,r.textContent=i,r.setAttribute("x","0"),r.setAttribute("y",`${o}`),n.appendChild(r),o+=a.lineHeight*r.getBoundingClientRect().height}const{width:i}=n.getBoundingClientRect();return n.innerHTML="",{width:e?.angle?L(i,o,e?.angle):i,height:e?.angle?L(o,i,e?.angle):o}}),((t,e)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(e)?e.map(W).join():W(e)}`)),Y=(t,e)=>function(t,e,n){return void 0===n&&(n=!1),"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||n?V(t,e):G(t,e)}(t,e),Z={startsWith:["data-","aria-"],exactMatch:[]},q=t=>{const e={...t};return Object.fromEntries(Object.entries(e).filter((t=>{let[e]=t;return(t=>!(!(t=>{let e=!1;return Z.startsWith.forEach((n=>{new RegExp(`\\b(${n})(\\w|-)+`,"g").test(t)&&(e=!0)})),e})(t)&&!(t=>Z.exactMatch.includes(t))(t)))(e)})).map((e=>{let[n,r]=e;return[n,l(r,t)]})))},X={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},K=(t,e)=>{if(!t.datum)return 0;const n=function(t,e){const{scale:n,polar:r,horizontal:o}=t,i=u(e),a=t.origin||{x:0,y:0},c=o?n.y(i.y):n.x(i.x),s=o?n.y(i.y0):n.x(i.x0),l=o?n.x(i.x):n.y(i.y),f=o?n.x(i.x0):n.y(i.y0);return{x:r?l*Math.cos(c)+a.x:c,x0:r?f*Math.cos(s)+a.x:s,y:r?-l*Math.sin(c)+a.y:l,y0:r?-f*Math.sin(s)+a.x:f}}(t,t.datum);return n[e]},U=t=>{const e=t&&t.fontSize;if("number"==typeof e)return e;if(null==e)return X.fontSize;if("string"==typeof e){const t=Number(e.replace("px",""));return isNaN(t)?X.fontSize:t}return X.fontSize},J=function(t,e){return void 0===e&&(e=0),Array.isArray(t)?t[e]||t[0]:t},Q=t=>{const{backgroundStyle:e,backgroundPadding:n}=t;return Array.isArray(e)&&!w()(e)||Array.isArray(n)&&!w()(n)},tt=(t,e,n)=>{const{polar:r}=t,o=J(t.style),i=r?function(t,e){const{labelPlacement:n,datum:r}=t;if(!n||"vertical"===n)return 0;const o=function(t,e){const{x:n}=u(e);return("number"==typeof(r=t.scale.x(n))?r/(Math.PI/180):r)%360;var r}(t,r);let i=0;return 0===o||180===o?i=90:o>0&&o<180?i=90-o:o>180&&o<360&&(i=270-o),i+(o>90&&o<180||o>270?1:-1)*("perpendicular"===n?0:90)}(t):0,a=void 0===o.angle?l(t.angle,t):o.angle,c=void 0===a?i:a,s=t.transform||o.transform,f=s&&l(s,t);return f||c?z(f,c&&{rotate:[c,e,n]}):void 0},et=(t,e)=>{const{direction:n,textAnchor:r,x:o,dx:i}=t;if("rtl"===n)return o-e;switch(r){case"middle":return Math.round(o-e/2);case"end":return Math.round(o-e);default:return o+(i||0)}},nt=(t,e)=>{const{verticalAnchor:n,y:r,originalDy:o=0}=t,i=r+o;switch(n){case"start":return Math.floor(i);case"end":return Math.ceil(i-e);default:return Math.floor(i-e/2)}},rt=(t,e)=>Q(t)?((t,e)=>{const{dy:n,dx:r,transform:o,backgroundStyle:a,backgroundPadding:u,backgroundComponent:s,inline:l,y:f}=t,d=e.map(((t,o)=>{const i=J(e,o-1),a=t.textSize,c=t.fontSize*t.lineHeight,s=Math.ceil(c),d=J(u,o),p=J(u,o-1),h=l&&r||0,y=o&&!l?i.fontSize*i.lineHeight+p.top+p.bottom:n-.5*c-(t.fontSize-t.capHeight);return{textHeight:s,labelSize:a,heightWithPadding:s+d.top+d.bottom,widthWithPadding:a.width+d.left+d.right+h,y:f,fontSize:t.fontSize,dy:y}}));return d.map(((e,n)=>{const r=et(t,e.labelSize.width),p=d.slice(0,n+1).reduce(((t,e)=>t+e.dy),f),h=J(u,n),y=e.heightWithPadding,g=l?((t,e,n)=>{const{textAnchor:r}=t,o=e.map((t=>t.widthWithPadding)),i=-o.reduce(((t,e)=>t+e),0)/2;switch(r){case"start":return o.reduce(((t,e,r)=>r<n?t+e:t),0);case"end":return o.reduce(((t,e,r)=>r>n?t-e:t),0);default:return o.reduce(((t,e,r)=>r===n?t+e/2:t+(r<n?e:0)),i)}})(t,d,n)+r-h.left:r,v=l?nt(t,y)-h.top:p,x={key:`tspan-background-${n}`,height:y,style:J(a,n),width:e.widthWithPadding,transform:o,x:g-h.left,y:v};return c().cloneElement(s,i()({},s.props,x))}))})(t,e):((t,e)=>{const{dx:n=0,transform:r,backgroundComponent:o,backgroundStyle:a,inline:u,backgroundPadding:s,capHeight:l}=t,f=e.map((t=>t.textSize)),d=u?Math.max(...f.map((t=>t.height))):f.reduce(((t,n,r)=>{const o=r?0:l/2;return t+n.height*(e[r].lineHeight-o)}),0),p=u?f.reduce(((t,e,r)=>{const o=r?n:0;return t+e.width+o}),0):Math.max(...f.map((t=>t.width))),h=et(t,p),y=nt(t,d),g={key:"background",height:d+s.top+s.bottom,style:a,transform:r,width:p+s.left+s.right,x:u?h-s.left:h+n-s.left,y:y};return c().cloneElement(o,i()({},o.props,g))})(t,e),ot=(t,e,n)=>{const{inline:r}=e,o=J(t,n);return n&&!r?((t,e,n)=>{const r=J(t,e),o=J(t,e-1),i=o.fontSize*o.lineHeight,a=r.fontSize*r.lineHeight,c=o.fontSize-o.capHeight,u=r.fontSize-r.capHeight,s=i-o.fontSize/2+r.fontSize/2-i/2+a/2-u/2+c/2;return Q(n)?s+r.backgroundPadding.top+o.backgroundPadding.bottom:s})(t,n,e):r?0===n?o.backgroundPadding.top:void 0:o.backgroundPadding.top},it={backgroundComponent:c().createElement(M,null),groupComponent:c().createElement("g",null),direction:"inherit",textComponent:c().createElement(k,null),tspanComponent:c().createElement(P,null),capHeight:.71,lineHeight:1},at=t=>{const e=(t=>{const e=((t,e)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>l(t,e)));const n=l(t,e);return null!=n?Array.isArray(n)?n:`${n}`.split("\n"):void 0})(t.text,t),n=((t,e)=>{if(e.disableInlineStyles){const n=f(t,e);return{fontSize:U(n)}}const n=t=>{const n=f(t?i()({},t,X):X,e);return Object.assign({},n,{fontSize:U(n)})};return Array.isArray(t)&&!w()(t)?t.map((t=>n(t))):n(t)})(t.style,Object.assign({},t,{text:e})),r=((t,e)=>{if(t)return Array.isArray(t)&&!w()(t)?t.map((t=>f(t,e))):f(t,e)})(t.backgroundStyle,Object.assign({},t,{text:e,style:n})),o=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((e=>s({padding:l(e,t)}))):s({padding:l(t.backgroundPadding,t)}))(Object.assign({},t,{text:e,style:n,backgroundStyle:r})),a=l(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:o,style:n,text:e,id:a})})(i()({},t,it));if(null===e.text||void 0===e.text)return null;const n=(t=>{const e=l(t.ariaLabel,t),n=J(t.style),r=(t=>{const e=l(t.lineHeight,t);return Array.isArray(e)&&w()(e)?[1]:e})(t),o=t.direction?l(t.direction,t):"inherit",i=t.textAnchor?l(t.textAnchor,t):n.textAnchor||"start",a=t.verticalAnchor?l(t.verticalAnchor,t):n.verticalAnchor||"middle",c=t.dx?l(t.dx,t):0,u=((t,e,n)=>{const r=t.dy?l(t.dy,t):0,o=t.inline?1:t.text.length,i=l(t.capHeight,t),a=e?l(e,t):"middle",c=[...Array(o).keys()].map((e=>J(t.style,e).fontSize)),u=[...Array(o).keys()].map((t=>J(n,t)));if("start"===a)return r+(i/2+u[0]/2)*c[0];if(t.inline)return"end"===a?r+(i/2-u[0]/2)*c[0]:r+i/2*c[0];if(1===o)return"end"===a?r+(i/2+(.5-o)*u[0])*c[0]:r+(i/2+(.5-o/2)*u[0])*c[0];const s=[...Array(o).keys()].reduce(((t,e)=>t+(i/2+(.5-o)*u[e])*c[e]/o),0);return"end"===a?r+s:r+s/2+i/2*u[o-1]*c[o-1]})(t,a,r),s=void 0!==t.x?t.x:K(t,"x"),f=void 0!==t.y?t.y:K(t,"y"),d=tt(t,s,f);return Object.assign({},t,{ariaLabel:e,lineHeight:r,direction:o,textAnchor:i,verticalAnchor:a,dx:c,dy:u,originalDy:l(t.dy,t),transform:d,x:s,y:f})})(e),{text:r,style:o,capHeight:a,backgroundPadding:u,lineHeight:d}=n,p=r.map(((t,e)=>{const n=J(o,e),r=B(`${a}em`,n.fontSize),i=J(d,e);return{style:n,fontSize:n.fontSize||X.fontSize,capHeight:r,text:t,textSize:Y(t,n),lineHeight:i,backgroundPadding:J(u,e)}})),h=((t,e)=>{const{ariaLabel:n,inline:r,className:o,title:i,events:a,direction:u,text:s,textAnchor:f,dx:d,dy:p,transform:h,x:y,y:g,desc:v,id:x,tabIndex:m,tspanComponent:b,textComponent:w}=t,S=q(t),A={"aria-label":n,key:"text",...a,direction:u,dx:d,x:y,y:g+p,transform:h,className:o,title:i,desc:l(v,t),tabIndex:l(m,t),id:x,...S},E=s.map(((n,o)=>{const i=e[o].style,a={key:`${x}-key-${o}`,x:r?void 0:y,dx:r?d+e[o].backgroundPadding.left:d,dy:ot(e,t,o),textAnchor:i.textAnchor||f,style:i,children:n};return c().cloneElement(b,a)}));return c().cloneElement(w,A,E)})(n,p);if(e.backgroundStyle){const t=[rt(n,p),h],r=c().cloneElement(e.groupComponent,{},t);return e.renderInPortal?c().createElement(O,null,r):r}return e.renderInPortal?c().createElement(O,null,h):h};function ct(){return ct=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ct.apply(this,arguments)}at.displayName="VictoryLabel",at.role="label",at.defaultStyles=X;const ut=(0,a.forwardRef)(((t,e)=>{const{desc:n,id:r,tabIndex:o,origin:i,...a}=t,u={vectorEffect:"non-scaling-stroke",id:l(r,t)?.toString(),tabIndex:l(o,t),...a};return n?c().createElement("line",ct({},u,{ref:e}),c().createElement("desc",null,n)):c().createElement("line",ct({},u,{ref:e}))})),st={lineComponent:c().createElement(ut,null),role:"presentation",shapeRendering:"auto"},lt=t=>{const e=(t=>{const e=l(t.ariaLabel,t),n=l(t.desc,t),r=l(t.id,t),o=f(Object.assign({stroke:"black"},t.style),t),i=l(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})})(i()({},t,st));return c().cloneElement(e.lineComponent,{...e.events,"aria-label":e.ariaLabel,style:e.style,desc:e.desc,tabIndex:e.tabIndex,className:e.className,role:e.role,shapeRendering:e.shapeRendering,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,transform:e.transform,clipPath:e.clipPath})};var ft=r(660),dt=r.n(ft);function pt(){return pt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},pt.apply(this,arguments)}const ht=c().forwardRef(((t,e)=>c().createElement("svg",pt({ref:e},t)))),yt=t=>{let{as:e,...n}=t;const r=A(),o=Array.from(r.children.entries()).map((t=>{let[e,n]=t;return n.key?n:c().cloneElement(n,{key:e})}));return c().cloneElement(e,n,o)};function gt(){return gt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},gt.apply(this,arguments)}const vt={className:"VictoryContainer",portalComponent:c().createElement(ht,null),portalZIndex:99,responsive:!0,role:"img"},xt=t=>{const{role:e,title:n,desc:r,children:o,className:i,portalZIndex:u,portalComponent:s,width:l,height:f,style:p,tabIndex:h,responsive:y,events:g,ouiaId:v,ouiaSafe:x,ouiaType:m,dimensions:b,ariaDescribedBy:w,ariaLabelledBy:S,viewBox:A,preserveAspectRatio:C,userProps:O,titleId:j,descId:M,containerRef:k,localContainerRef:P}=function(t){const e={...vt,...t},{title:n,desc:r,width:o,height:i,responsive:c}=e,u=(0,a.useRef)(null),s=(0,a.useRef)(dt()("victory-container-")),l=e.containerId??s.current,f=t=>`${l}-${t}`,d=q(e),p=c?{width:"100%",height:"100%"}:{width:o,height:i},h=c?`0 0 ${o} ${i}`:void 0,y=c?e.preserveAspectRatio:void 0,g=[n&&f("title"),e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,v=[r&&f("desc"),e["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=f("title"),m=f("desc");return{...e,titleId:x,descId:m,dimensions:p,viewBox:h,preserveAspectRatio:y,ariaLabelledBy:g,ariaDescribedBy:v,userProps:d,localContainerRef:u}}(t);return c().useEffect((()=>{if(!g?.onWheel)return;const t=t=>t.preventDefault(),e=P?.current;return e?.addEventListener("wheel",t),()=>{e?.removeEventListener("wheel",t)}}),[]),c().createElement(E,null,c().createElement("div",{className:i,style:{...p,width:y?p?.width:b.width,height:y?p?.height:b.height,pointerEvents:"none",touchAction:"none",position:"relative"},"data-ouia-component-id":v,"data-ouia-component-type":m,"data-ouia-safe":x,ref:(z=[P,k],t=>{z.forEach((e=>{d(e)?e(t):null!=e&&(e.current=t)}))})},c().createElement("svg",gt({width:l,height:f,tabIndex:h,role:e,"aria-labelledby":S,"aria-describedby":w,viewBox:A,preserveAspectRatio:C,style:{...b,pointerEvents:"all"}},O,g),n?c().createElement("title",{id:j},n):null,r?c().createElement("desc",{id:M},r):null,o),c().createElement("div",{style:{...b,zIndex:u,position:"absolute",top:0,left:0}},c().createElement(yt,{as:s,width:l,height:f,viewBox:A,preserveAspectRatio:C,style:{...b,overflow:"visible"}}))));var z};xt.role="container";const mt={cursorLabelComponent:c().createElement(at,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:c().createElement(lt,null)},bt=t=>{const e={...mt,...t},{children:n}=e;return{props:e,children:[...c().Children.toArray(n),...(()=>{const{scale:t,cursorLabelComponent:n,cursorLabel:r,cursorComponent:o,width:a,height:u,name:f,horizontal:d,theme:p}=e,h=v.getDimension(e),y=(()=>{const{cursorValue:t,defaultCursorValue:n,domain:r,cursorDimension:o}=e;return t||("number"==typeof n?{x:(r.x[0]+r.x[1])/2,y:(r.y[0]+r.y[1])/2,...o?{[o]:n}:{}}:n)})(),g=(()=>{const{cursorLabelOffset:t}=e;return"number"==typeof t?{x:t,y:t}:t})();if(!y)return[];const x=[],b=void 0===e.padding?s((Array.isArray(e.children)?e.children.find((t=>m()(t.props)&&void 0!==t.props.padding)):e.children)?.props):s(e),w=t&&"x"in t&&"y"in t&&"function"==typeof t.y&&"function"==typeof t.x?{x:d?t.y(y.y):t.x(y.x),y:d?t.x(y.x):t.y(y.y)}:{x:y.x,y:y.y};if(r){let t=i()({active:!0},n.props,{x:w.x+g.x,y:w.y+g.y,datum:y,active:!0,key:`${f}-cursor-label`});if("tooltip"===((S=n)&&S.type&&S.type.role)){const e=p&&p.tooltip||{};t=i()({},t,e)}x.push(c().cloneElement(n,i()({},t,{text:l(r,t)})))}var S;const A=Object.assign({stroke:"black"},o.props.style);return"x"!==h&&void 0!==h||x.push(c().cloneElement(o,{key:`${f}-x-cursor`,x1:w.x,x2:w.x,y1:b.top,y2:("number"==typeof u?u:0)-b.bottom,style:A})),"y"!==h&&void 0!==h||x.push(c().cloneElement(o,{key:`${f}-y-cursor`,x1:b.left,x2:("number"==typeof a?a:0)-b.right,y1:w.y,y2:w.y,style:A})),x})()]}},wt=t=>{const{props:e,children:n}=bt(t);return c().createElement(xt,e,n)};wt.role="container",wt.defaultEvents=t=>{const e={...mt,...t},n=(t,n)=>(r,o,i,a)=>n||e.disable?{}:t(r,{...e,...o},i,a);return[{target:"parent",eventHandlers:{onMouseLeave:n(v.onMouseLeave),onMouseMove:n(v.onMouseMove),onTouchMove:n(v.onMouseMove)}}]}}(),o}()})); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryCursorContainer=e(require("react")):t.VictoryCursorContainer=e(t.React)}(self,(function(t){return function(){var e={503:function(t,e,n){var r=n(1171),o=n(7838),i=n(4859),a=n(4073),c=n(8541);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},2596:function(t,e,n){var r=n(2373).Symbol;t.exports=r},6082:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},8644:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},9559:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},4132:function(t,e,n){var r=n(8347),o=n(788),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},3162:function(t,e,n){var r=n(788);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},8347:function(t,e,n){var r=n(5525);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},6457:function(t,e,n){var r=n(9559),o=n(3608);t.exports=function t(e,n,i,a,c){var u=-1,s=e.length;for(i||(i=o),c||(c=[]);++u<s;){var l=e[u];n>0&&i(l)?n>1?t(l,n-1,i,a,c):r(c,l):a||(c[c.length]=l)}return c}},4432:function(t,e,n){var r=n(9026),o=n(3110);t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},563:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},6776:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},7190:function(t,e,n){var r=n(5125)(Object.keys,Object);t.exports=r},5436:function(t,e,n){var r=n(6371),o=n(5066);t.exports=function(t,e){return r(t,e,(function(e,n){return o(t,n)}))}},6371:function(t,e,n){var r=n(4432),o=n(6539),i=n(9026);t.exports=function(t,e,n){for(var a=-1,c=e.length,u={};++a<c;){var s=e[a],l=r(t,s);n(l,s)&&o(u,i(s,t),l)}return u}},1600:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},3301:function(t,e,n){var r=n(4432);t.exports=function(t){return function(e){return r(e,t)}}},6317:function(t,e,n){var r=n(5346),o=n(4280),i=n(201);t.exports=function(t,e){return i(o(t,e,r),t+"")}},6539:function(t,e,n){var r=n(4132),o=n(9026),i=n(9099),a=n(7709),c=n(3110);t.exports=function(t,e,n,u){if(!a(t))return t;for(var s=-1,l=(e=o(e,t)).length,f=l-1,d=t;null!=d&&++s<l;){var p=c(e[s]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(s!=f){var y=d[p];void 0===(h=u?u(y,p,d):void 0)&&(h=a(y)?y:i(e[s+1])?[]:{})}r(d,p,h),d=d[p]}return t}},6316:function(t,e,n){var r=n(2596),o=n(8644),i=n(163),a=n(1995),c=r?r.prototype:void 0,u=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},9026:function(t,e,n){var r=n(163),o=n(726),i=n(7801),a=n(7010);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},5525:function(t,e,n){var r=n(3743),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},5557:function(t,e,n){var r=n(2645),o=n(4280),i=n(201);t.exports=function(t){return i(o(t,void 0,r),t+"")}},2117:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},3743:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},9667:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},3096:function(t,e,n){var r=n(9026),o=n(5075),i=n(163),a=n(9099),c=n(8454),u=n(3110);t.exports=function(t,e,n){for(var s=-1,l=(e=r(e,t)).length,f=!1;++s<l;){var d=u(e[s]);if(!(f=null!=t&&n(t,d)))break;t=t[d]}return f||++s!=l?f:!!(l=null==t?0:t.length)&&c(l)&&a(d,l)&&(i(t)||o(t))}},3608:function(t,e,n){var r=n(2596),o=n(5075),i=n(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},9099:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},8286:function(t){t.exports=function(){return!1}},726:function(t,e,n){var r=n(163),o=n(1995),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},5782:function(t){t.exports=function(){return!1}},1171:function(t){t.exports=function(){this.__data__=[],this.size=0}},7838:function(t,e,n){var r=n(3162),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))}},4859:function(t,e,n){var r=n(3162);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},4073:function(t,e,n){var r=n(3162);t.exports=function(t){return r(this.__data__,t)>-1}},8541:function(t,e,n){var r=n(3162);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},2453:function(t){t.exports=function(t){return t}},5125:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},4280:function(t,e,n){var r=n(6082),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,c=o(i.length-e,0),u=Array(c);++a<c;)u[a]=i[e+a];a=-1;for(var s=Array(e+1);++a<e;)s[a]=i[a];return s[e]=n(u),r(t,this,s)}}},2373:function(t,e,n){var r=n(2117),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},201:function(t){t.exports=function(t){return t}},7801:function(t,e,n){var r=n(2453),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)})),e}));t.exports=a},3110:function(t,e,n){var r=n(1995);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},5034:function(t,e,n){var r=n(7709),o=n(6987),i=n(5812),a=Math.max,c=Math.min;t.exports=function(t,e,n){var u,s,l,f,d,p,h=0,y=!1,g=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function x(e){var n=u,r=s;return u=s=void 0,h=e,f=t.apply(r,n)}function m(t){return h=t,d=setTimeout(w,e),y?x(t):f}function b(t){var n=t-p;return void 0===p||n>=e||n<0||g&&t-h>=l}function w(){var t=o();if(b(t))return S(t);d=setTimeout(w,function(t){var n=e-(t-p);return g?c(n,l-(t-h)):n}(t))}function S(t){return d=void 0,v&&u?x(t):(u=s=void 0,f)}function A(){var t=o(),n=b(t);if(u=arguments,s=this,p=t,n){if(void 0===d)return m(p);if(g)return clearTimeout(d),d=setTimeout(w,e),x(p)}return void 0===d&&(d=setTimeout(w,e)),f}return e=i(e)||0,r(n)&&(y=!!n.leading,l=(g="maxWait"in n)?a(i(n.maxWait)||0,e):l,v="trailing"in n?!!n.trailing:v),A.cancel=function(){void 0!==d&&clearTimeout(d),h=0,u=p=s=d=void 0},A.flush=function(){return void 0===d?f:S(o())},A}},1893:function(t,e,n){var r=n(6317),o=n(788),i=n(8286),a=n(8855),c=Object.prototype,u=c.hasOwnProperty,s=r((function(t,e){t=Object(t);var n=-1,r=e.length,s=r>2?e[2]:void 0;for(s&&i(e[0],e[1],s)&&(r=1);++n<r;)for(var l=e[n],f=a(l),d=-1,p=f.length;++d<p;){var h=f[d],y=t[h];(void 0===y||o(y,c[h])&&!u.call(t,h))&&(t[h]=l[h])}return t}));t.exports=s},788:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},2645:function(t,e,n){var r=n(6457);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},5066:function(t,e,n){var r=n(6776),o=n(3096);t.exports=function(t,e){return null!=t&&o(t,e,r)}},5346:function(t){t.exports=function(t){return t}},5075:function(t){t.exports=function(){return!1}},163:function(t){var e=Array.isArray;t.exports=e},981:function(t,e,n){var r=n(9642),o=n(8454);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},4801:function(t){t.exports=function(){return!1}},4155:function(t,e,n){var r=n(7190),o=n(9667),i=n(5075),a=n(163),c=n(981),u=n(4801),s=n(5782),l=n(4289),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(c(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||l(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(s(t))return!r(t).length;for(var n in t)if(f.call(t,n))return!1;return!0}},9642:function(t,e,n){var r=n(563),o=n(7709);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},8454:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},1995:function(t){t.exports=function(){return!1}},4289:function(t){t.exports=function(){return!1}},8855:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1594:function(t,e,n){var r=n(503);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},6987:function(t,e,n){var r=n(2373);t.exports=function(){return r.Date.now()}},9082:function(t,e,n){var r=n(5436),o=n(5557)((function(t,e){return null==t?{}:r(t,e)}));t.exports=o},8532:function(t,e,n){var r=n(1600),o=n(3301),i=n(726),a=n(3110);t.exports=function(t){return i(t)?r(a(t)):o(t)}},8163:function(t,e,n){var r=n(5034),o=n(7709);t.exports=function(t,e,n){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(t,e,{leading:i,maxWait:e,trailing:a})}},5812:function(t){t.exports=function(t){return t}},7010:function(t,e,n){var r=n(6316);t.exports=function(t){return null==t?"":r(t)}},660:function(t,e,n){var r=n(7010),o=0;t.exports=function(t){var e=++o;return r(t)+e}},9787:function(e){"use strict";e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return function(){"use strict";r.r(o),r.d(o,{CursorHelpers:function(){return v},VICTORY_CURSOR_CONTAINER_DEFAULT_PROPS:function(){return mt},VictoryCursorContainer:function(){return wt},useVictoryCursorContainer:function(){return bt}});var t=r(8163),e=r.n(t),n=(r(9082),r(8532),r(1893)),i=r.n(n),a=r(9787),c=r.n(a);function u(t){const e=t=>void 0!==t,{_x:n,_x1:r,_x0:o,_voronoiX:a,_y:c,_y1:u,_y0:s,_voronoiY:l}=t,f=e(r)?r:n,d=e(u)?u:c,p={x:e(a)?a:f,x0:e(o)?o:n,y:e(l)?l:d,y0:e(s)?s:c};return i()({},p,t)}function s(t,e){void 0===e&&(e="padding");const n=t[e],r="number"==typeof n?n:0,o="object"==typeof n?n:{};return{top:o.top||r,bottom:o.bottom||r,left:o.left||r,right:o.right||r}}function l(t,e){return d(t)?t(e):t}function f(t,e){return e.disableInlineStyles?{}:t&&Object.keys(t).some((e=>d(t[e])))?Object.keys(t).reduce(((n,r)=>(n[r]=l(t[r],e),n)),{}):t}function d(t){return"function"==typeof t}function p(t,e){if(t)return Object.keys(t).reduce(((n,r)=>(n[r]=e(t[r]),n)),{})}function h(t,e,n){const{a:r,d:o,e:i,f:a}=e;return"y"===n?o*t+a:r*t+i}function y(t){return!(!t||void 0===t.identifier)}function g(t){if(y(t.nativeEvent))return;const e=t=>"svg"===t.nodeName?t:t.parentNode?e(t.parentNode):t;return e(t.target)}const v=new class{getDimension(t){const{horizontal:e,cursorDimension:n}=t;return e&&n?"x"===n?"y":"x":n}withinBounds(t,e){const{x1:n,x2:r,y1:o,y2:i}=p(e,Number),{x:a,y:c}=p(t,Number);return a>=Math.min(n,r)&&a<=Math.max(n,r)&&c>=Math.min(o,i)&&c<=Math.max(o,i)}handleMouseMove=(t,e)=>{const{onCursorChange:n,domain:r}=e,o=this.getDimension(e),i=e.parentSVG||g(t),a=function(t,e){if(y(t.nativeEvent))return{x:t.nativeEvent.locationX,y:t.nativeEvent.locationY};const n=function(t){return t.changedTouches&&t.changedTouches.length>0}(t)?t.changedTouches[0]:t,r=function(t){return t.getScreenCTM().inverse()}(e||g(n));return{x:h(n.clientX,r,"x"),y:h(n.clientY,r,"y")}}(t,i);let c=function(t,e,n,r){const{polar:o,horizontal:i}=t;if(!o)return{x:i?e.x.invert(r):e.x.invert(n),y:i?e.y.invert(n):e.y.invert(r)};const a=t.origin||{x:0,y:0},c=n-a.x,u=r-a.y,s=Math.abs(c*Math.sqrt(1+Math.pow(-u/c,2))),l=(-Math.atan2(u,c)+2*Math.PI)%(2*Math.PI);return{x:e.x.invert(l),y:e.y.invert(s)}}(e,e.scale,a.x,a.y);return this.withinBounds(c,{x1:r.x[0],x2:r.x[1],y1:r.y[0],y2:r.y[1]})||(c=null),d(n)&&(c?n(o?c[o]:c,e):c!==e.cursorValue&&n(e.defaultCursorValue||null,e)),[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:c,parentSVG:i})}]};onMouseMove=e()(this.handleMouseMove,16,{leading:!0,trailing:!1});onMouseLeave=this.handleMouseMove;onTouchEnd=(t,e)=>{const{onCursorChange:n}=e;return d(e.onCursorChange)&&n(null,e),[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:null})}]}};var x=r(7709),m=r.n(x),b=r(4155),w=r.n(b);const S=c().createContext(void 0);S.displayName="PortalContext";const A=()=>c().useContext(S),E=t=>{let{children:e}=t;const[n,r]=c().useState(new Map),o=c().useCallback(((t,e)=>{r((n=>{const r=new Map(n);return r.set(t,e),r}))}),[r]),i=c().useCallback((t=>{r((e=>{const n=new Map(e);return n.delete(t),n}))}),[r]),a=c().useMemo((()=>({addChild:o,removeChild:i,children:n})),[o,i,n]);return c().createElement(S.Provider,{value:a},e)},C={groupComponent:c().createElement("g",null)},j=t=>{const e={...C,...t},n=c().useId(),r=A(),o=Array.isArray(e.children)?e.children[0]:e.children,{groupComponent:a}=e,u=o&&o.props||{},s=u.groupComponent?{groupComponent:a,standalone:!1}:{},l=i()(s,u,function(t,e){void 0===e&&(e=[]);const n={};for(const r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(e,["children","groupComponent"]),{key:u.key??n}),f=o&&c().cloneElement(o,l);return c().useEffect((()=>{r?.addChild(n,f)}),[e.children]),c().useEffect((()=>()=>r?.removeChild(n)),[]),r?null:f};function O(){return O=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},O.apply(this,arguments)}j.role="portal";const M=(0,a.forwardRef)(((t,e)=>{const{desc:n,id:r,tabIndex:o,origin:i,...a}=t,u={vectorEffect:"non-scaling-stroke",id:l(r,t)?.toString(),tabIndex:l(o,t),...a};return n?c().createElement("rect",O({},u,{ref:e}),c().createElement("desc",null,n)):c().createElement("rect",O({},u,{ref:e}))})),k=t=>{const{children:e,desc:n,id:r,origin:o,tabIndex:i,title:a,...u}=t,s={id:l(r,t)?.toString(),tabIndex:l(i,t),...u};return c().createElement("text",s,a&&c().createElement("title",null,a),n&&c().createElement("desc",null,n),e)},P=t=>{const{desc:e,id:n,tabIndex:r,origin:o,...i}=t,a={id:l(n,t)?.toString(),tabIndex:l(r,t),...i};return c().createElement("tspan",a)};const z=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce(((t,e)=>[t,z(e)].join(" ")),z(t)).trim();if(null==t||"string"==typeof t)return t;const o=[];for(const e in t)if(t.hasOwnProperty(e)){const n=t[e];o.push(`${e}(${n})`)}return o.join(" ").trim()};var _=r(1594),I=r.n(_);const H={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},T={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},$={em:1,ex:.5},R={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},N=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),L=(t,e,n)=>{const r=(t=>t*Math.PI/180)(n);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e)},B=(t,e)=>{const n=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let o;return o=n?T.hasOwnProperty(n)?r*T[n]:$.hasOwnProperty(n)?(e?r*e:r*R.fontSize)*$[n]:r:r||0,o},F=(t,e)=>{const n=Array.isArray(t)?t[e]:t,r=i()({},n,R);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:B(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:B(String(r.fontSize))})},V=(t,e)=>{const n=Array.isArray(e)?e[0]&&e[0].angle:e&&e.angle,r=((t,e)=>void 0===t||""===t||null===t?0:N(t).reduce(((t,n,r)=>{const o=F(e,r),i=n.toString().match(/[(A-Z)(0-9)]/)?1.15*o.fontSize:o.fontSize;return t+o.lineHeight*i}),0))(t,e),o=((t,e)=>{if(void 0===t||""===t||null===t)return 0;const n=N(t).map(((t,n)=>{const r=t.toString().length,{fontSize:o,letterSpacing:i,fontFamily:a}=F(e,n),c=(t=>{const e=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>H[t]))||"Helvetica";return H[e]})(a);return t.toString().split("").map((t=>t.charCodeAt(0)<c.widths.length?c.widths[t.charCodeAt(0)]:c.avg)).reduce(((t,e)=>e+t),0)*o+i*Math.max(r-1,0)}));return Math.max(...n)})(t,e);return{width:n?L(o,r,n):o,height:1.05*(n?L(r,o,n):r)}},D=I()((()=>{const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("xlink","http://www.w3.org/1999/xlink"),t.setAttribute("width","300"),t.setAttribute("height","300"),t.setAttribute("viewBox","0 0 300 300"),t.setAttribute("aria-hidden","true");const e=document.createElementNS("http://www.w3.org/2000/svg","text");return t.appendChild(e),t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t),e})),W=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",G=I()(((t,e)=>{let n=D();n.isConnected||(D.cache.clear?.(),n=D());const r=N(t);let o=0;for(const[t,i]of r.entries()){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),a=F(e,t);r.style.fontFamily=a.fontFamily,r.style.fontSize=`${a.fontSize}px`,r.style.lineHeight=a.lineHeight,r.style.fontFamily=a.fontFamily,r.style.letterSpacing=a.letterSpacing,r.textContent=i,r.setAttribute("x","0"),r.setAttribute("y",`${o}`),n.appendChild(r),o+=a.lineHeight*r.getBoundingClientRect().height}const{width:i}=n.getBoundingClientRect();return n.innerHTML="",{width:e?.angle?L(i,o,e?.angle):i,height:e?.angle?L(o,i,e?.angle):o}}),((t,e)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(e)?e.map(W).join():W(e)}`)),Y=(t,e)=>function(t,e,n){return void 0===n&&(n=!1),"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||n?V(t,e):G(t,e)}(t,e),Z={startsWith:["data-","aria-"],exactMatch:[]},q=t=>{const e={...t};return Object.fromEntries(Object.entries(e).filter((t=>{let[e]=t;return(t=>!(!(t=>{let e=!1;return Z.startsWith.forEach((n=>{new RegExp(`\\b(${n})(\\w|-)+`,"g").test(t)&&(e=!0)})),e})(t)&&!(t=>Z.exactMatch.includes(t))(t)))(e)})).map((e=>{let[n,r]=e;return[n,l(r,t)]})))},X={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},K=(t,e)=>{if(!t.datum)return 0;const n=function(t,e){const{scale:n,polar:r,horizontal:o}=t,i=u(e),a=t.origin||{x:0,y:0},c=o?n.y(i.y):n.x(i.x),s=o?n.y(i.y0):n.x(i.x0),l=o?n.x(i.x):n.y(i.y),f=o?n.x(i.x0):n.y(i.y0);return{x:r?l*Math.cos(c)+a.x:c,x0:r?f*Math.cos(s)+a.x:s,y:r?-l*Math.sin(c)+a.y:l,y0:r?-f*Math.sin(s)+a.x:f}}(t,t.datum);return n[e]},U=t=>{const e=t&&t.fontSize;if("number"==typeof e)return e;if(null==e)return X.fontSize;if("string"==typeof e){const t=Number(e.replace("px",""));return isNaN(t)?X.fontSize:t}return X.fontSize},J=function(t,e){return void 0===e&&(e=0),Array.isArray(t)?t[e]||t[0]:t},Q=t=>{const{backgroundStyle:e,backgroundPadding:n}=t;return Array.isArray(e)&&!w()(e)||Array.isArray(n)&&!w()(n)},tt=(t,e,n)=>{const{polar:r}=t,o=J(t.style),i=r?function(t,e){const{labelPlacement:n,datum:r}=t;if(!n||"vertical"===n)return 0;const o=function(t,e){const{x:n}=u(e);return("number"==typeof(r=t.scale.x(n))?r/(Math.PI/180):r)%360;var r}(t,r);let i=0;return 0===o||180===o?i=90:o>0&&o<180?i=90-o:o>180&&o<360&&(i=270-o),i+(o>90&&o<180||o>270?1:-1)*("perpendicular"===n?0:90)}(t):0,a=void 0===o.angle?l(t.angle,t):o.angle,c=void 0===a?i:a,s=t.transform||o.transform,f=s&&l(s,t);return f||c?z(f,c&&{rotate:[c,e,n]}):void 0},et=(t,e)=>{const{direction:n,textAnchor:r,x:o,dx:i}=t;if("rtl"===n)return o-e;switch(r){case"middle":return Math.round(o-e/2);case"end":return Math.round(o-e);default:return o+(i||0)}},nt=(t,e)=>{const{verticalAnchor:n,y:r,originalDy:o=0}=t,i=r+o;switch(n){case"start":return Math.floor(i);case"end":return Math.ceil(i-e);default:return Math.floor(i-e/2)}},rt=(t,e)=>Q(t)?((t,e)=>{const{dy:n,dx:r,transform:o,backgroundStyle:a,backgroundPadding:u,backgroundComponent:s,inline:l,y:f}=t,d=e.map(((t,o)=>{const i=J(e,o-1),a=t.textSize,c=t.fontSize*t.lineHeight,s=Math.ceil(c),d=J(u,o),p=J(u,o-1),h=l&&r||0,y=o&&!l?i.fontSize*i.lineHeight+p.top+p.bottom:n-.5*c-(t.fontSize-t.capHeight);return{textHeight:s,labelSize:a,heightWithPadding:s+d.top+d.bottom,widthWithPadding:a.width+d.left+d.right+h,y:f,fontSize:t.fontSize,dy:y}}));return d.map(((e,n)=>{const r=et(t,e.labelSize.width),p=d.slice(0,n+1).reduce(((t,e)=>t+e.dy),f),h=J(u,n),y=e.heightWithPadding,g=l?((t,e,n)=>{const{textAnchor:r}=t,o=e.map((t=>t.widthWithPadding)),i=-o.reduce(((t,e)=>t+e),0)/2;switch(r){case"start":return o.reduce(((t,e,r)=>r<n?t+e:t),0);case"end":return o.reduce(((t,e,r)=>r>n?t-e:t),0);default:return o.reduce(((t,e,r)=>r===n?t+e/2:t+(r<n?e:0)),i)}})(t,d,n)+r-h.left:r,v=l?nt(t,y)-h.top:p,x={key:`tspan-background-${n}`,height:y,style:J(a,n),width:e.widthWithPadding,transform:o,x:g-h.left,y:v};return c().cloneElement(s,i()({},s.props,x))}))})(t,e):((t,e)=>{const{dx:n=0,transform:r,backgroundComponent:o,backgroundStyle:a,inline:u,backgroundPadding:s,capHeight:l}=t,f=e.map((t=>t.textSize)),d=u?Math.max(...f.map((t=>t.height))):f.reduce(((t,n,r)=>{const o=r?0:l/2;return t+n.height*(e[r].lineHeight-o)}),0),p=u?f.reduce(((t,e,r)=>{const o=r?n:0;return t+e.width+o}),0):Math.max(...f.map((t=>t.width))),h=et(t,p),y=nt(t,d),g={key:"background",height:d+s.top+s.bottom,style:a,transform:r,width:p+s.left+s.right,x:u?h-s.left:h+n-s.left,y:y};return c().cloneElement(o,i()({},o.props,g))})(t,e),ot=(t,e,n)=>{const{inline:r}=e,o=J(t,n);return n&&!r?((t,e,n)=>{const r=J(t,e),o=J(t,e-1),i=o.fontSize*o.lineHeight,a=r.fontSize*r.lineHeight,c=o.fontSize-o.capHeight,u=r.fontSize-r.capHeight,s=i-o.fontSize/2+r.fontSize/2-i/2+a/2-u/2+c/2;return Q(n)?s+r.backgroundPadding.top+o.backgroundPadding.bottom:s})(t,n,e):r?0===n?o.backgroundPadding.top:void 0:o.backgroundPadding.top},it={backgroundComponent:c().createElement(M,null),groupComponent:c().createElement("g",null),direction:"inherit",textComponent:c().createElement(k,null),tspanComponent:c().createElement(P,null),capHeight:.71,lineHeight:1},at=t=>{const e=(t=>{const e=((t,e)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>l(t,e)));const n=l(t,e);return null!=n?Array.isArray(n)?n:`${n}`.split("\n"):void 0})(t.text,t),n=((t,e)=>{if(e.disableInlineStyles){const n=f(t,e);return{fontSize:U(n)}}const n=t=>{const n=f(t?i()({},t,X):X,e);return Object.assign({},n,{fontSize:U(n)})};return Array.isArray(t)&&!w()(t)?t.map((t=>n(t))):n(t)})(t.style,Object.assign({},t,{text:e})),r=((t,e)=>{if(t)return Array.isArray(t)&&!w()(t)?t.map((t=>f(t,e))):f(t,e)})(t.backgroundStyle,Object.assign({},t,{text:e,style:n})),o=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((e=>s({padding:l(e,t)}))):s({padding:l(t.backgroundPadding,t)}))(Object.assign({},t,{text:e,style:n,backgroundStyle:r})),a=l(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:o,style:n,text:e,id:a})})(i()({},t,it));if(null===e.text||void 0===e.text)return null;const n=(t=>{const e=l(t.ariaLabel,t),n=J(t.style),r=(t=>{const e=l(t.lineHeight,t);return Array.isArray(e)&&w()(e)?[1]:e})(t),o=t.direction?l(t.direction,t):"inherit",i=t.textAnchor?l(t.textAnchor,t):n.textAnchor||"start",a=t.verticalAnchor?l(t.verticalAnchor,t):n.verticalAnchor||"middle",c=t.dx?l(t.dx,t):0,u=((t,e,n)=>{const r=t.dy?l(t.dy,t):0,o=t.inline?1:t.text.length,i=l(t.capHeight,t),a=e?l(e,t):"middle",c=[...Array(o).keys()].map((e=>J(t.style,e).fontSize)),u=[...Array(o).keys()].map((t=>J(n,t)));if("start"===a)return r+(i/2+u[0]/2)*c[0];if(t.inline)return"end"===a?r+(i/2-u[0]/2)*c[0]:r+i/2*c[0];if(1===o)return"end"===a?r+(i/2+(.5-o)*u[0])*c[0]:r+(i/2+(.5-o/2)*u[0])*c[0];const s=[...Array(o).keys()].reduce(((t,e)=>t+(i/2+(.5-o)*u[e])*c[e]/o),0);return"end"===a?r+s:r+s/2+i/2*u[o-1]*c[o-1]})(t,a,r),s=void 0!==t.x?t.x:K(t,"x"),f=void 0!==t.y?t.y:K(t,"y"),d=tt(t,s,f);return Object.assign({},t,{ariaLabel:e,lineHeight:r,direction:o,textAnchor:i,verticalAnchor:a,dx:c,dy:u,originalDy:l(t.dy,t),transform:d,x:s,y:f})})(e),{text:r,style:o,capHeight:a,backgroundPadding:u,lineHeight:d}=n,p=r.map(((t,e)=>{const n=J(o,e),r=B(`${a}em`,n.fontSize),i=J(d,e);return{style:n,fontSize:n.fontSize||X.fontSize,capHeight:r,text:t,textSize:Y(t,n),lineHeight:i,backgroundPadding:J(u,e)}})),h=((t,e)=>{const{ariaLabel:n,inline:r,className:o,title:i,events:a,direction:u,text:s,textAnchor:f,dx:d,dy:p,transform:h,x:y,y:g,desc:v,id:x,tabIndex:m,tspanComponent:b,textComponent:w}=t,S=q(t),A={"aria-label":n,key:"text",...a,direction:u,dx:d,x:y,y:g+p,transform:h,className:o,title:i,desc:l(v,t),tabIndex:l(m,t),id:x,...S},E=s.map(((n,o)=>{const i=e[o].style,a={key:`${x}-key-${o}`,x:r?void 0:y,dx:r?d+e[o].backgroundPadding.left:d,dy:ot(e,t,o),textAnchor:i.textAnchor||f,style:i,children:n};return c().cloneElement(b,a)}));return c().cloneElement(w,A,E)})(n,p);if(e.backgroundStyle){const t=[rt(n,p),h],r=c().cloneElement(e.groupComponent,{},t);return e.renderInPortal?c().createElement(j,null,r):r}return e.renderInPortal?c().createElement(j,null,h):h};function ct(){return ct=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ct.apply(this,arguments)}at.displayName="VictoryLabel",at.role="label",at.defaultStyles=X;const ut=(0,a.forwardRef)(((t,e)=>{const{desc:n,id:r,tabIndex:o,origin:i,...a}=t,u={vectorEffect:"non-scaling-stroke",id:l(r,t)?.toString(),tabIndex:l(o,t),...a};return n?c().createElement("line",ct({},u,{ref:e}),c().createElement("desc",null,n)):c().createElement("line",ct({},u,{ref:e}))})),st={lineComponent:c().createElement(ut,null),role:"presentation",shapeRendering:"auto"},lt=t=>{const e=(t=>{const e=l(t.ariaLabel,t),n=l(t.desc,t),r=l(t.id,t),o=f(Object.assign({stroke:"black"},t.style),t),i=l(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})})(i()({},t,st));return c().cloneElement(e.lineComponent,{...e.events,"aria-label":e.ariaLabel,style:e.style,desc:e.desc,tabIndex:e.tabIndex,className:e.className,role:e.role,shapeRendering:e.shapeRendering,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,transform:e.transform,clipPath:e.clipPath})};var ft=r(660),dt=r.n(ft);function pt(){return pt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},pt.apply(this,arguments)}const ht=c().forwardRef(((t,e)=>c().createElement("svg",pt({ref:e},t)))),yt=t=>{let{as:e,...n}=t;const r=A();if(!r)return null;const o=Array.from(r.children.values());return c().cloneElement(e,n,o)};function gt(){return gt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},gt.apply(this,arguments)}const vt={className:"VictoryContainer",portalComponent:c().createElement(ht,null),portalZIndex:99,responsive:!0,role:"img"},xt=t=>{const{role:e,title:n,desc:r,children:o,className:i,portalZIndex:u,portalComponent:s,width:l,height:f,style:p,tabIndex:h,responsive:y,events:g,ouiaId:v,ouiaSafe:x,ouiaType:m,dimensions:b,ariaDescribedBy:w,ariaLabelledBy:S,viewBox:A,preserveAspectRatio:C,userProps:j,titleId:O,descId:M,containerRef:k,localContainerRef:P}=function(t){const e={...vt,...t},{title:n,desc:r,width:o,height:i,responsive:c}=e,u=(0,a.useRef)(null),s=(0,a.useRef)(dt()("victory-container-")),l=e.containerId??s.current,f=t=>`${l}-${t}`,d=q(e),p=c?{width:"100%",height:"100%"}:{width:o,height:i},h=c?`0 0 ${o} ${i}`:void 0,y=c?e.preserveAspectRatio:void 0,g=[n&&f("title"),e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,v=[r&&f("desc"),e["aria-describedby"]].filter(Boolean).join(" ")||void 0,x=f("title"),m=f("desc");return{...e,titleId:x,descId:m,dimensions:p,viewBox:h,preserveAspectRatio:y,ariaLabelledBy:g,ariaDescribedBy:v,userProps:d,localContainerRef:u}}(t);return c().useEffect((()=>{if(!g?.onWheel)return;const t=t=>t.preventDefault(),e=P?.current;return e?.addEventListener("wheel",t),()=>{e?.removeEventListener("wheel",t)}}),[]),c().createElement("div",{className:i,style:{...p,width:y?p?.width:b.width,height:y?p?.height:b.height,pointerEvents:"none",touchAction:"none",position:"relative"},"data-ouia-component-id":v,"data-ouia-component-type":m,"data-ouia-safe":x,ref:(z=[P,k],t=>{z.forEach((e=>{d(e)?e(t):null!=e&&(e.current=t)}))})},c().createElement(E,null,c().createElement("svg",gt({width:l,height:f,tabIndex:h,role:e,"aria-labelledby":S,"aria-describedby":w,viewBox:A,preserveAspectRatio:C,style:{...b,pointerEvents:"all"}},j,g),n?c().createElement("title",{id:O},n):null,r?c().createElement("desc",{id:M},r):null,o),c().createElement("div",{style:{...b,zIndex:u,position:"absolute",top:0,left:0}},c().createElement(yt,{as:s,width:l,height:f,viewBox:A,preserveAspectRatio:C,style:{...b,overflow:"visible"}}))));var z};xt.role="container";const mt={cursorLabelComponent:c().createElement(at,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:c().createElement(lt,null)},bt=t=>{const e={...mt,...t},{children:n}=e;return{props:e,children:[...c().Children.toArray(n),...(()=>{const{scale:t,cursorLabelComponent:n,cursorLabel:r,cursorComponent:o,width:a,height:u,name:f,horizontal:d,theme:p}=e,h=v.getDimension(e),y=(()=>{const{cursorValue:t,defaultCursorValue:n,domain:r,cursorDimension:o}=e;return t||("number"==typeof n?{x:(r.x[0]+r.x[1])/2,y:(r.y[0]+r.y[1])/2,...o?{[o]:n}:{}}:n)})(),g=(()=>{const{cursorLabelOffset:t}=e;return"number"==typeof t?{x:t,y:t}:t})();if(!y)return[];const x=[],b=void 0===e.padding?s((Array.isArray(e.children)?e.children.find((t=>m()(t.props)&&void 0!==t.props.padding)):e.children)?.props):s(e),w=t&&"x"in t&&"y"in t&&"function"==typeof t.y&&"function"==typeof t.x?{x:d?t.y(y.y):t.x(y.x),y:d?t.x(y.x):t.y(y.y)}:{x:y.x,y:y.y};if(r){let t=i()({active:!0},n.props,{x:w.x+g.x,y:w.y+g.y,datum:y,active:!0,key:`${f}-cursor-label`});if("tooltip"===((S=n)&&S.type&&S.type.role)){const e=p&&p.tooltip||{};t=i()({},t,e)}x.push(c().cloneElement(n,i()({},t,{text:l(r,t)})))}var S;const A=Object.assign({stroke:"black"},o.props.style);return"x"!==h&&void 0!==h||x.push(c().cloneElement(o,{key:`${f}-x-cursor`,x1:w.x,x2:w.x,y1:b.top,y2:("number"==typeof u?u:0)-b.bottom,style:A})),"y"!==h&&void 0!==h||x.push(c().cloneElement(o,{key:`${f}-y-cursor`,x1:b.left,x2:("number"==typeof a?a:0)-b.right,y1:w.y,y2:w.y,style:A})),x})()]}},wt=t=>{const{props:e,children:n}=bt(t);return c().createElement(xt,e,n)};wt.role="container",wt.defaultEvents=t=>{const e={...mt,...t},n=(t,n)=>(r,o,i,a)=>n||e.disable?{}:t(r,{...e,...o},i,a);return[{target:"parent",eventHandlers:{onMouseLeave:n(v.onMouseLeave),onMouseMove:n(v.onMouseMove),onTouchMove:n(v.onMouseMove)}}]}}(),o}()})); | ||
//# sourceMappingURL=victory-cursor-container.min.js.map |
@@ -0,0 +0,0 @@ /// <reference types="lodash" /> |
export * from "./cursor-helpers"; | ||
export * from "./victory-cursor-container"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,0 +0,0 @@ import React from "react"; |
@@ -0,0 +0,0 @@ /// <reference types="lodash" /> |
export * from "./cursor-helpers"; | ||
export * from "./victory-cursor-container"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,0 +0,0 @@ import React from "react"; |
{ | ||
"name": "victory-cursor-container", | ||
"version": "37.0.3-next.0", | ||
"version": "37.1.0", | ||
"description": "Interactive Cursor Component for Victory", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
"lodash": "^4.17.19", | ||
"victory-core": "^37.0.3-next.0" | ||
"victory-core": "37.1.0" | ||
}, | ||
@@ -30,2 +30,5 @@ "peerDependencies": { | ||
}, | ||
"publishConfig": { | ||
"provenance": true | ||
}, | ||
"wireit": { | ||
@@ -32,0 +35,0 @@ "### THESE WIREIT CONFIGS ARE GENERATED ####": {}, |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
343132
6407
+ Addedvictory-core@37.1.0(transitive)
+ Addedvictory-vendor@37.1.0(transitive)
- Removedvictory-core@37.3.1(transitive)
- Removedvictory-vendor@37.3.1(transitive)
Updatedvictory-core@37.1.0