1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2643],{33:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var i=e(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},141:t=>{t.exports=function(t,e){return t>e}},1602:(t,e,r)=>{var n=r(19031);t.exports=function(){return n.Date.now()}},1874:(t,e,r)=>{"use strict";r.d(e,{m:()=>V});var n=r(14232),i=r(5323),o=r.n(i),a=r(19809),s=r.n(a),u=r(69241),c=r(59421);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(){return(f=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=l(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function y(t){return Array.isArray(t)&&(0,c.vh)(t[0])&&(0,c.vh)(t[1])?t.join(" ~ "):t}var b=function(t){var e=t.separator,r=void 0===e?" : ":e,i=t.contentStyle,a=t.itemStyle,l=void 0===a?{}:a,d=t.labelStyle,b=t.payload,v=t.formatter,m=t.itemSorter,g=t.wrapperClassName,w=t.labelClassName,_=t.label,x=t.labelFormatter,O=t.accessibilityLayer,S=p({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},void 0===i?{}:i),A=p({margin:0},void 0===d?{}:d),E=!s()(_),I=E?_:"",T=(0,u.A)("recharts-default-tooltip",g),j=(0,u.A)("recharts-tooltip-label",w);return E&&x&&null!=b&&(I=x(_,b)),n.createElement("div",f({className:T,style:S},void 0!==O&&O?{role:"status","aria-live":"assertive"}:{}),n.createElement("p",{className:j,style:A},n.isValidElement(I)?I:"".concat(I)),function(){if(b&&b.length){var t=(m?o()(b,m):b).map(function(t,e){if("none"===t.type)return null;var i=p({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},l),o=t.formatter||v||y,a=t.value,s=t.name,u=a,f=s;if(o&&null!=u&&null!=f){var d=o(a,s,t,e,b);if(Array.isArray(d)){var m=function(t){if(Array.isArray(t))return t}(d)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{o=(r=r.call(t)).next,!1;for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(d,2)||function(t,e){if(t){if("string"==typeof t)return h(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(t,e)}}(d,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();u=m[0],f=m[1]}else u=d}return n.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:i},(0,c.vh)(f)?n.createElement("span",{className:"recharts-tooltip-item-name"},f):null,(0,c.vh)(f)?n.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,n.createElement("span",{className:"recharts-tooltip-item-value"},u),n.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))});return n.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e,r){var n;return(n=function(t,e){if("object"!=v(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=v(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==v(n)?n:n+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var g="recharts-tooltip-wrapper",w={visibility:"hidden"};function _(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,i=t.offsetTopLeft,o=t.position,a=t.reverseDirection,s=t.tooltipDimension,u=t.viewBox,l=t.viewBoxDimension;if(o&&(0,c.Et)(o[n]))return o[n];var f=r[n]-s-i,h=r[n]+i;return e[n]?a[n]?f:h:a[n]?f<u[n]?Math.max(h,u[n]):Math.max(f,u[n]):h+s>u[n]+l?Math.max(f,u[n]):Math.max(h,u[n])}function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function S(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?O(Object(r),!0).forEach(function(e){T(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function A(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(A=function(){return!!t})()}function E(t){return(E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function I(t,e){return(I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function T(t,e,r){return(e=j(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function j(t){var e=function(t,e){if("object"!=x(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=x(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==x(e)?e:e+""}var P=function(t){var e;function r(){var t,e,n;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=r,n=[].concat(o),e=E(e),T(t=function(t,e){if(e&&("object"===x(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,A()?Reflect.construct(e,n||[],E(this).constructor):e.apply(this,n)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),T(t,"handleKeyDown",function(e){if("Escape"===e.key){var r,n,i,o;t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!=(r=null==(n=t.props.coordinate)?void 0:n.x)?r:0,y:null!=(i=null==(o=t.props.coordinate)?void 0:o.y)?i:0}})}}),t}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&I(r,t),e=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.state.lastBoundingBox.width)>1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else(-1!==this.state.lastBoundingBox.width||-1!==this.state.lastBoundingBox.height)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null==(t=this.props.coordinate)?void 0:t.x)!==this.state.dismissedAtCoordinate.x||(null==(e=this.props.coordinate)?void 0:e.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var t,e,r,i,o,a,s,l,f,h,d,p,y,b,v,x,O,A,E,I=this,T=this.props,j=T.active,P=T.allowEscapeViewBox,M=T.animationDuration,D=T.animationEasing,N=T.children,k=T.coordinate,B=T.hasPayload,C=T.isAnimationActive,R=T.offset,L=T.position,F=T.reverseDirection,U=T.useTranslate3d,z=T.viewBox,V=T.wrapperStyle,W=(p=(t={allowEscapeViewBox:P,coordinate:k,offsetTopLeft:R,position:L,reverseDirection:F,tooltipBox:this.state.lastBoundingBox,useTranslate3d:U,viewBox:z}).allowEscapeViewBox,y=t.coordinate,b=t.offsetTopLeft,v=t.position,x=t.reverseDirection,O=t.tooltipBox,A=t.useTranslate3d,E=t.viewBox,O.height>0&&O.width>0&&y?(r=(e={translateX:h=_({allowEscapeViewBox:p,coordinate:y,key:"x",offsetTopLeft:b,position:v,reverseDirection:x,tooltipDimension:O.width,viewBox:E,viewBoxDimension:E.width}),translateY:d=_({allowEscapeViewBox:p,coordinate:y,key:"y",offsetTopLeft:b,position:v,reverseDirection:x,tooltipDimension:O.height,viewBox:E,viewBoxDimension:E.height}),useTranslate3d:A}).translateX,i=e.translateY,f={transform:e.useTranslate3d?"translate3d(".concat(r,"px, ").concat(i,"px, 0)"):"translate(".concat(r,"px, ").concat(i,"px)")}
1):f=w,{cssProperties:f,cssClasses:(a=(o={translateX:h,translateY:d,coordinate:y}).coordinate,s=o.translateX,l=o.translateY,(0,u.A)(g,m(m(m(m({},"".concat(g,"-right"),(0,c.Et)(s)&&a&&(0,c.Et)(a.x)&&s>=a.x),"".concat(g,"-left"),(0,c.Et)(s)&&a&&(0,c.Et)(a.x)&&s<a.x),"".concat(g,"-bottom"),(0,c.Et)(l)&&a&&(0,c.Et)(a.y)&&l>=a.y),"".concat(g,"-top"),(0,c.Et)(l)&&a&&(0,c.Et)(a.y)&&l<a.y)))}),$=W.cssClasses,Y=W.cssProperties,H=S(S({transition:C&&j?"transform ".concat(M,"ms ").concat(D):void 0},Y),{},{pointerEvents:"none",visibility:!this.state.dismissed&&j&&B?"visible":"hidden",position:"absolute",top:0,left:0},V);return n.createElement("div",{tabIndex:-1,className:$,style:H,ref:function(t){I.wrapperNode=t}},N)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,j(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(n.PureComponent),M=r(53995),D=r(82514);function N(t){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function B(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?k(Object(r),!0).forEach(function(e){F(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function C(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(C=function(){return!!t})()}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function L(t,e){return(L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function F(t,e,r){return(e=U(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function U(t){var e=function(t,e){if("object"!=N(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=N(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==N(e)?e:e+""}function z(t){return t.dataKey}var V=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=R(t),function(t,e){if(e&&("object"===N(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,C()?Reflect.construct(t,e||[],R(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&L(r,t),e=[{key:"render",value:function(){var t,e=this,r=this.props,i=r.active,o=r.allowEscapeViewBox,a=r.animationDuration,s=r.animationEasing,u=r.content,c=r.coordinate,l=r.filterNull,f=r.isAnimationActive,h=r.offset,d=r.payload,p=r.payloadUniqBy,y=r.position,v=r.reverseDirection,m=r.useTranslate3d,g=r.viewBox,w=r.wrapperStyle,_=null!=d?d:[];l&&_.length&&(_=(0,D.s)(d.filter(function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)}),p,z));var x=_.length>0;return n.createElement(P,{allowEscapeViewBox:o,animationDuration:a,animationEasing:s,isAnimationActive:f,active:i,coordinate:c,hasPayload:x,offset:h,position:y,reverseDirection:v,useTranslate3d:m,viewBox:g,wrapperStyle:w},(t=B(B({},this.props),{},{payload:_}),n.isValidElement(u)?n.cloneElement(u,t):"function"==typeof u?n.createElement(u,t):n.createElement(b,t)))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,U(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(n.PureComponent);F(V,"displayName","Tooltip"),F(V,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!M.m.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}})},2331:(t,e,r)=>{var n=r(94552),i=r(35536),o=r(17565),a=r(76217),s=r(47129);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exp
1orts=u},2592:(t,e,r)=>{"use strict";function n(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function i(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}r.d(e,{C:()=>n,K:()=>i})},2609:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},3717:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3979:(t,e,r)=>{var n=r(71747);t.exports=r(83611)(n)},4517:(t,e,r)=>{var n=r(37973),i=r(57410),o=r(44577);t.exports=n&&1/o(new n([,-0]))[1]==1/0?function(t){return new n(t)}:i},4641:(t,e,r)=>{"use strict";r.d(e,{QQ:()=>s,VU:()=>c,XC:()=>h,_U:()=>f,j2:()=>l});var n=r(14232),i=r(98825),o=r.n(i);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var s=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],u=["points","pathLength"],c={svg:["viewBox","children"],polygon:u,polyline:u},l=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
1ocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],f=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if((0,n.isValidElement)(t)&&(r=t.props),!o()(r))return null;var i={};return Object.keys(r).forEach(function(t){l.includes(t)&&(i[t]=e||function(e){return r[t](r,e)})}),i},h=function(t,e,r){if(!o()(t)||"object"!==a(t))return null;var n=null;return Object.keys(t).forEach(function(i){var o=t[i];l.includes(i)&&"function"==typeof o&&(n||(n={}),n[i]=function(t){return o(e,r,t),null})}),n}},4756:(t,e,r)=>{t=r.nmd(t);var n=r(19031),i=r(34705),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,s=a&&a.exports===o?n.Buffer:void 0,u=s?s.isBuffer:void 0;t.exports=u||i},4886:(t,e,r)=>{"use strict";r.d(e,{s0:()=>nO,gH:()=>ng,YB:()=>nN,HQ:()=>nM,xi:()=>nk,Hj:()=>nq,BX:()=>nx,tA:()=>n_,DW:()=>nV,y2:()=>nz,nb:()=>nU,PW:()=>nT,Ay:()=>nm,vf:()=>nE,Mk:()=>n$,Ps:()=>nw,Mn:()=>nL,kA:()=>nW,Rh:()=>nj,w7:()=>nF,zb:()=>nX,kr:()=>nv,_L:()=>nI,KC:()=>nK,A1:()=>nA,W7:()=>nD,AQ:()=>nG,_f:()=>nB});var n,i,o,a,s,u,c,l={};r.r(l),r.d(l,{scaleBand:()=>f.A,scaleDiverging:()=>function t(){var e=tt(rv()(B));return e.copy=function(){return rp(e,t())},V.K.apply(e,arguments)},scaleDivergingLog:()=>function t(){var e=tc(rv()).domain([.1,1,10]);return e.copy=function(){return rp(e,t()).base(e.base())},V.K.apply(e,arguments)},scaleDivergingPow:()=>rm,scaleDivergingSqrt:()=>rg,scaleDivergingSymlog:()=>function t(){var e=th(rv());return e.copy=function(){return rp(e,t()).constant(e.constant())},V.K.apply(e,arguments)},scaleIdentity:()=>function t(e){var r;function n(t){return null==t||isNaN(t*=1)?r:t}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,N),n):e.slice()},n.unknown=function(t){return arguments.length?(r=t,n):r},n.copy=function(){return t(e).unknown(r)},e=arguments.length?Array.from(e,N):[0,1],tt(n)},scaleImplicit:()=>td.h,scaleLinear:()=>te,scaleLog:()=>function t(){let e=tc(U()).domain([1,10]);return e.copy=()=>
1F(e,t()).base(e.base()),V.C.apply(e,arguments),e},scaleOrdinal:()=>td.A,scalePoint:()=>f.z,scalePow:()=>tm,scaleQuantile:()=>function t(){var e,r=[],n=[],i=[];function o(){var t=0,e=Math.max(1,n.length);for(i=Array(e-1);++t<e;)i[t-1]=function(t,e,r=O){if(!(!(n=t.length)||isNaN(e*=1))){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,o=Math.floor(i),a=+r(t[o],o,t);return a+(r(t[o+1],o+1,t)-a)*(i-o)}}(r,t/e);return a}function a(t){return null==t||isNaN(t*=1)?e:n[A(i,t)]}return a.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?i[e-1]:r[0],e<i.length?i[e]:r[r.length-1]]},a.domain=function(t){if(!arguments.length)return r.slice();for(let e of(r=[],t))null==e||isNaN(e*=1)||r.push(e);return r.sort(g),o()},a.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return i.slice()},a.copy=function(){return t().domain(r).range(n).unknown(e)},V.C.apply(a,arguments)},scaleQuantize:()=>function t(){var e,r=0,n=1,i=1,o=[.5],a=[0,1];function s(t){return null!=t&&t<=t?a[A(o,t,0,i)]:e}function u(){var t=-1;for(o=Array(i);++t<i;)o[t]=((t+1)*n-(t-i)*r)/(i+1);return s}return s.domain=function(t){return arguments.length?([r,n]=t,r*=1,n*=1,u()):[r,n]},s.range=function(t){return arguments.length?(i=(a=Array.from(t)).length-1,u()):a.slice()},s.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,o[0]]:e>=i?[o[i-1],n]:[o[e-1],o[e]]},s.unknown=function(t){return arguments.length&&(e=t),s},s.thresholds=function(){return o.slice()},s.copy=function(){return t().domain([r,n]).range(a).unknown(e)},V.C.apply(tt(s),arguments)},scaleRadial:()=>function t(){var e,r=z(),n=[0,1],i=!1;function o(t){var n,o=Math.sign(n=r(t))*Math.sqrt(Math.abs(n));return isNaN(o)?e:i?Math.round(o):o}return o.invert=function(t){return r.invert(tw(t))},o.domain=function(t){return arguments.length?(r.domain(t),o):r.domain()},o.range=function(t){return arguments.length?(r.range((n=Array.from(t,N)).map(tw)),o):n.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(i=!!t,o):i},o.clamp=function(t){return arguments.length?(r.clamp(t),o):r.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t(r.domain(),n).round(i).clamp(r.clamp()).unknown(e)},V.C.apply(o,arguments),tt(o)},scaleSequential:()=>function t(){var e=tt(rd()(B));return e.copy=function(){return rp(e,t())},V.K.apply(e,arguments)},scaleSequentialLog:()=>function t(){var e=tc(rd()).domain([1,10]);return e.copy=function(){return rp(e,t()).base(e.base())},V.K.apply(e,arguments)},scaleSequentialPow:()=>ry,scaleSequentialQuantile:()=>function t(){var e=[],r=B;function n(t){if(null!=t&&!isNaN(t*=1))return r((A(e,t,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();for(let r of(e=[],t))null==r||isNaN(r*=1)||e.push(r);return e.sort(g),n},n.interpolator=function(t){return arguments.length?(r=t,n):r},n.range=function(){return e.map((t,n)=>r(n/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(r,n)=>(function(t,e,r){if(!(!(n=(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e*=1)>=e&&(yield e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n*=1)>=n&&(yield n)}}(t,void 0))).length)||isNaN(e*=1))){if(e<=0||n<2)return tx(t);if(e>=1)return t_(t);var n,i=(n-1)*e,o=Math.floor(i),a=t_((function t(e,r,n=0,i=1/0,o){if(r=Math.floor(r),n=Math.floor(Math.max(0,n)),i=Math.floor(Math.min(e.length-1,i)),!(n<=r&&r<=i))return e;for(o=void 0===o?tO:function(t=g){if(t===g)return tO;if("function"!=typeof t)throw TypeError("compare is not a function");return(e,r)=>{let n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(o);i>n;){if(i-n>600){let a=i-n+1,s=r-n+1,u=Math.log(a),c=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*c*(a-c)/a)*(s-a/2<0?-1:1),f=Math.max(n,Math.floor(r-s*c/a+l)),h=Math.min(i,Math.floor(r+(a-s)*c/a+l));t(e,r,f,h,o)}let a=e[r],s=n,u=i;for(tS(e,n,r),o(e[i],a)>0&&tS(e,n,i);s<u;){for(tS(e,s,u),++s,--u;0>o(e[s],a);)++s;for(;o(e[u],a)>0;)--u}0===o(e[n],a)?tS(e,n,u):tS(e,++u,i),u<=r&&(n=u+1),r<=u&&(i=u-1)}return e})(t,o).subarray(0,o+1));return a+(tx(t.subarray(o+1))-a)*(i-o)}})(e,n/t))},n.copy=function(){return t(r).domain(e)},V.K.apply(n,arguments)},scaleSequentialSqrt:()=>rb,scaleSequentialSymlog:()=>function t(){var e=th(rd());return e.copy=function(){return rp(e,t()).constant(e.constant())},V.K.apply(e,arguments)},scaleSqrt:()=>tg,scaleSymlog:()=>function t(){var e=th(U());return e.copy=function(){return F(e,t()).constant(e.constant())},V.C.apply(e,arguments)},scaleThreshold:()=>function t(){var e,r=[.5],n=[0,1],i=1;function o(t){return null!=t&&t<=t?n[A(r,t,0,i)]:e}return o.domain=function(t){return arguments.length?(i=Math.min((r=Array.from(t)).length,n.length-1),o):r.slice()},o.range=function(t){return arguments.length?(n=Array.from(t),i=Math.min(r.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t().domain(r).range(n).unknown(e)},V.C.apply(o,arguments)},scaleTime:()=>rf,scaleUtc:()=>rh,tickFormat:()=>Z});var f=r(21641);let h=Math.sqrt(50),d=Math.sqrt(10),p=Math.sqrt(2);function y(t,e,r){let n,i,o,a=(e-t)/Math.max(0,r),s=Math.floor(Math.log10(a)),u=a/Math.pow(10,s),c=u>=h?10:u>=d?5:u>=p?2:1;return(s<0?(n=Math.round(t*(o=Math.pow(10,-s)/c)),i=Math.round(e*o),n/o<t&&++n,i/o>e&&--i,o=-o):(n=Math.round(t/(o=Math.pow(10,s)*c)),i=Math.round(e/o),n*o<t&&++n,i*o>e&&--i),i<n&&.5<=r&&r<2)?y(t,e,2*r):[n,i,o]}function b(t,e,r){if(e*=1,t*=1,!((r*=1)>0))return[];if(t===e)return[t];let n=e<t,[i,o,a]=n?y(e,t,r):y(t,e,r);
1if(!(o>=i))return[];let s=o-i+1,u=Array(s);if(n)if(a<0)for(let t=0;t<s;++t)u[t]=-((o-t)/a);else for(let t=0;t<s;++t)u[t]=(o-t)*a;else if(a<0)for(let t=0;t<s;++t)u[t]=-((i+t)/a);else for(let t=0;t<s;++t)u[t]=(i+t)*a;return u}function v(t,e,r){return y(t*=1,e*=1,r*=1)[2]}function m(t,e,r){e*=1,t*=1,r*=1;let n=e<t,i=n?v(e,t,r):v(t,e,r);return(n?-1:1)*(i<0?-(1/i):i)}function g(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function w(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function _(t){let e,r,n;function i(t,n,o=0,a=t.length){if(o<a){if(0!==e(n,n))return a;do{let e=o+a>>>1;0>r(t[e],n)?o=e+1:a=e}while(o<a)}return o}return 2!==t.length?(e=g,r=(e,r)=>g(t(e),r),n=(e,r)=>t(e)-r):(e=t===g||t===w?t:x,r=t,n=t),{left:i,center:function(t,e,r=0,o=t.length){let a=i(t,e,r,o-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,i=0,o=t.length){if(i<o){if(0!==e(n,n))return o;do{let e=i+o>>>1;0>=r(t[e],n)?i=e+1:o=e}while(i<o)}return i}}}function x(){return 0}function O(t){return null===t?NaN:+t}let S=_(g),A=S.right;S.left,_(O).center;var E=r(84237),I=r(55818),T=r(56740),j=r(13312),P=r(62721);function M(t,e){var r,n,i=typeof e;return null==e||"boolean"===i?(0,P.A)(e):("number"===i?T.A:"string"===i?(n=(0,E.Ay)(e))?(e=n,I.Ay):j.A:e instanceof E.Ay?I.Ay:e instanceof Date?function(t,e){var r=new Date;return t*=1,e*=1,function(n){return r.setTime(t*(1-n)+e*n),r}}:!ArrayBuffer.isView(r=e)||r instanceof DataView?Array.isArray(e)?function(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,o=Array(i),a=Array(n);for(r=0;r<i;++r)o[r]=M(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<i;++r)a[r]=o[r](t);return a}}:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?function(t,e){var r,n={},i={};for(r in(null===t||"object"!=typeof t)&&(t={}),(null===e||"object"!=typeof e)&&(e={}),e)r in t?n[r]=M(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}:T.A:function(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(r=0;r<n;++r)i[r]=t[r]*(1-o)+e[r]*o;return i}})(t,e)}function D(t,e){return t*=1,e*=1,function(r){return Math.round(t*(1-r)+e*r)}}function N(t){return+t}var k=[0,1];function B(t){return t}function C(t,e){var r;return(e-=t*=1)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r})}function R(t,e,r){var n=t[0],i=t[1],o=e[0],a=e[1];return i<n?(n=C(i,n),o=r(a,o)):(n=C(n,i),o=r(o,a)),function(t){return o(n(t))}}function L(t,e,r){var n=Math.min(t.length,e.length)-1,i=Array(n),o=Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)i[a]=C(t[a],t[a+1]),o[a]=r(e[a],e[a+1]);return function(e){var r=A(t,e,1,n)-1;return o[r](i[r](e))}}function F(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function U(){var t,e,r,n,i,o,a=k,s=k,u=M,c=B;function l(){var t,e,r,u=Math.min(a.length,s.length);return c!==B&&(t=a[0],e=a[u-1],t>e&&(r=t,t=e,e=r),c=function(r){return Math.max(t,Math.min(e,r))}),n=u>2?L:R,i=o=null,f}function f(e){return null==e||isNaN(e*=1)?r:(i||(i=n(a.map(t),s,u)))(t(c(e)))}return f.invert=function(r){return c(e((o||(o=n(s,a.map(t),T.A)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,N),l()):a.slice()},f.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},f.rangeRound=function(t){return s=Array.from(t),u=D,l()},f.clamp=function(t){return arguments.length?(c=!!t||B,l()):c!==B},f.interpolate=function(t){return arguments.length?(u=t,l()):u},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,l()}}function z(){return U()(B,B)}var V=r(2592),W=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $(t){var e;if(!(e=W.exec(t)))throw Error("invalid format: "+t);return new Y({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Y(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.
1width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function H(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function G(t){return(t=H(Math.abs(t)))?t[1]:NaN}function q(t,e){var r=H(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+Array(i-n.length+2).join("0")}$.prototype=Y.prototype,Y.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let K={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>q(100*t,e),r:q,s:function(t,e){var r=H(t,e);if(!r)return t+"";var i=r[0],o=r[1],a=o-(n=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+H(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function X(t){return t}var J=Array.prototype.map,Q=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Z(t,e,r,n){var i,s,u,c=m(t,e,r);switch((n=$(null==n?",f":n)).type){case"s":var l=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(u=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(G(l)/3)))-G(Math.abs(c))))||(n.precision=u),a(n,l);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(u=Math.max(0,G(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(i=Math.abs(i=c)))-G(i))+1)||(n.precision=u-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(u=Math.max(0,-G(Math.abs(c))))||(n.precision=u-("%"===n.type)*2)}return o(n)}function tt(t){var e=t.domain;return t.ticks=function(t){var r=e();return b(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return Z(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,i,o=e(),a=0,s=o.length-1,u=o[a],c=o[s],l=10;for(c<u&&(i=u,u=c,c=i,i=a,a=s,s=i);l-- >0;){if((i=v(u,c,r))===n)return o[a]=u,o[s]=c,e(o);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else if(i<0)u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i;else break;n=i}return t},t}function te(){var t=z();return t.copy=function(){return F(t,te())},V.C.apply(t,arguments),tt(t)}function tr(t,e){t=t.slice();var r,n=0,i=t.length-1,o=t[n],a=t[i];return a<o&&(r=n,n=i,i=r,r=o,o=a,a=r),t[n]=e.floor(o),t[i]=e.ceil(a),t}function tn(t){return Math.log(t)}function ti(t){return Math.exp(t)}function to(t){return-Math.log(-t)}function ta(t){return-Math.exp(-t)}function ts(t){return isFinite(t)?+("1e"+t):t<0?0:t}function tu(t){return(e,r)=>-t(-e,r)}function tc(t){let e,r,n=t(tn,ti),i=n.domain,a=10;function s(){var o,s;return e=(o=a)===Math.E?Math.log:10===o&&Math.log10||2===o&&Math.log2||(o=Math.log(o),t=>Math.log(t)/o),r=10===(s=a)?ts:s===Math.E?Math.exp:t=>Math.pow(s,t),i()[0]<0?(e=tu(e),r=tu(r),t(to,ta)):t(tn,ti),n}return n.base=function(t){return arguments.length?(a=+t,s()):a},n.domain=function(t){return arguments.length?(i(t),s()):i()},n.ticks=t=>{let n,o,s=i(),u=s[0],c=s[s.length-1],l=c<u;l&&([u,c]=[c,u]);let f=e(u),h=e(c),d=null==t?10:+t,p=[];if(!(a%1)&&h-f<d){if(f=Math.floor(f),h=Math.ceil(h),u>0){for(;f<=h;++f)for(n=1;n<a;++n)if(!((o=f<0?n/r(-f):n*r(f))<u)){if(o>c)break;p.push(o)}}else for(;f<=h;++f)for(n=a-1;n>=1;--n)if(!((o=f>0?n/r(-f):n*r(f))<u)){if(o>c)break;p.push(o)}2*p.length<d&&(p=b(u,c,d))}else p=b(f,h,Math.min(h-f,d)).map(r);return l?p.reverse():p},n.tickFormat=(t,i)=>{if(null==t&&(t=10),null==i&&(i=10===a?"s":","),"function"!=typeof i&&(a%1||null!=(i=$(i)).precision||(i.trim=!0),i=o(i)),t===1/0)return i;let s=Math.max(1,a*t/n.ticks().length);return t=>{let n=t/r(Math.round(e(t)));return n*a<a-.5&&(n*=a),n<=s?i(t):""}},n.nice=()=>i(tr(i(),{floor:t=>r(Math.floor(e(t))),ceil:t=>r(Math.ceil(e(t)))})),n}function tl(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function tf(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function th(t){var e=1,r=t(tl(1),tf(e));return r.constant=function(r){return arguments.length?t(tl(e=+r),tf(e)):e},tt(r)}o=(i=function(t){var e,r,i,o=void 0===t.grouping||void 0===t.thous
vendor: 14,153 bytes, line 1
1ands?X:(e=J.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var i=t.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>n&&(s=Math.max(1,n-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>n));)s=e[a=(a+1)%e.length];return o.reverse().join(r)}),a=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?X:(i=J.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return i[+t]})}),l=void 0===t.percent?"%":t.percent+"",f=void 0===t.minus?"â":t.minus+"",h=void 0===t.nan?"NaN":t.nan+"";function d(t){var e=(t=$(t)).fill,r=t.align,i=t.sign,d=t.symbol,p=t.zero,y=t.width,b=t.comma,v=t.precision,m=t.trim,g=t.type;"n"===g?(b=!0,g="g"):K[g]||(void 0===v&&(v=12),m=!0,g="g"),(p||"0"===e&&"="===r)&&(p=!0,e="0",r="=");var w="$"===d?a:"#"===d&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",_="$"===d?s:/[%p]/.test(g)?l:"",x=K[g],O=/[defgprs%]/.test(g);function S(t){var a,s,l,d=w,S=_;if("c"===g)S=x(t)+S,t="";else{var A=(t*=1)<0||1/t<0;if(t=isNaN(t)?h:x(Math.abs(t),v),m&&(t=function(t){t:for(var e,r=t.length,n=1,i=-1;n<r;++n)switch(t[n]){case".":i=e=n;break;case"0":0===i&&(i=n),e=n;break;default:if(!+t[n])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),A&&0==+t&&"+"!==i&&(A=!1),d=(A?"("===i?i:f:"-"===i||"("===i?"":i)+d,S=("s"===g?Q[8+n/3]:"")+S+(A&&"("===i?")":""),O){for(a=-1,s=t.length;++a<s;)if(48>(l=t.charCodeAt(a))||l>57){S=(46===l?u+t.slice(a+1):t.slice(a))+S,t=t.slice(0,a);break}}}b&&!p&&(t=o(t,1/0));var E=d.length+t.length+S.length,I=E<y?Array(y-E+1).join(e):"";switch(b&&p&&(t=o(I+t,I.length?y-S.length:1/0),I=""),r){case"<":t=d+t+S+I;break;case"=":t=d+I+t+S;break;case"^":t=I.slice(0,E=I.length>>1)+d+t+S+I.slice(E);break;default:t=I+d+t+S}return c(t)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return t+""},S}return{format:d,formatPrefix:function(t,e){var r=d(((t=$(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(G(e)/3))),i=Math.pow(10,-n),o=Q[8+n/3];return function(t){return r(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=i.formatPrefix;var td=r(93478);function tp(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function ty(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function tb(t){return t<0?-t*t:t*t}function tv(t){var e=t(B,B),r=1;return e.exponent=function(e){return arguments.length?1==(r=+e)?t(B,B):.5===r?t(ty,tb):t(tp(r),tp(1/r)):r},tt(e)}function tm(){var t=tv(U());return t.copy=function(){return F(t,tm()).exponent(t.exponent())},V.C.apply(t,arguments),t}function tg(){return tm.apply(null,arguments).exponent(.5)}function tw(t){return Math.sign(t)*t*t}function t_(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function tx(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function tO(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:+(t>e))}function tS(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}let tA=new Date,tE=new Date;function tI(t,e,r,n){function i(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),i.round=t=>{let e=i(t),r=i.ceil(t);return t-e<r-t?e:r},i.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),i.range=(r,n,o)=>{let a,s=[];if(r=i.ceil(r),o=null==o?1:Math.floor(o),!(r<n)||!(o>0))return s;do s.push(a=new Date(+r)),e(r,o),t(r);while(a<r&&r<n);return s},i.filter=r=>tI(e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},(t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););}),r&&(i.count=(e,n)=>(tA.setTime(+e),tE.setTime(+n),t(tA),t(tE),Math.floor(r(tA,tE))),i.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?i.filter(n?e=>n(e)%t==0:e=>i.count(0,e)%t==0):i:null),i}let tT=tI(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);tT.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?tI(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):tT:null,tT.range;let tj=tI(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());tj.range;let tP=tI(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());tP.range;let tM=tI(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());tM.range;let tD=tI(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());tD.range;let tN=tI(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());tN.range;let tk=tI(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);tk.range;let tB=tI(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);tB.range;let tC=tI(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));function tR(t){return tI(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}tC.range;let tL=tR(0),tF=tR(1),tU=tR(2),tz=tR(3),tV=tR(4),tW=tR(5),t$=tR(6);function tY(t){return tI(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}tL.range,tF.range,tU.range,tz.range,tV.range,tW.range,t$.range;let tH=tY(0),tG=tY(1),tq=tY(2),tK=tY(3),tX=tY(4),tJ=tY(5),tQ=tY(6);tH.range,tG.range,tq.range,tK.range,tX.range,tJ.range,tQ.range;let tZ=tI(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());tZ.range;let t0=tI(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());t0.range;let t1=tI(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());t1.every=t=>isFinite(t=Math.floor(t))&&t>0?tI(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)}):null,t1.range;let t2=tI(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function t3(t,e,r,n,i,o){let a=[[tj,1,1e3],[tj,5,5e3],[tj,15,15e3],[tj,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,864e5],[n,2,1728e5],[r,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function s(e,r,n){let i=Math.abs(r-e)/n,o=_(([,,t])=>t).right(a,i);if(o===a.length)return t.every(m(e/31536e6,r/31536e6,n));if(0===o)return tT.every(Math.max(m(e,r,n),1));let[s,u]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(u)}return[function(t,e,r){let n=e<t;n&&([t,e]=[e,t]);let i=r&&"function"==typeof r.range?r:s(t,e,r),o=i?i.range(t,+e+1):[];return n?o.reverse():o},s]}t2.every=t=>isFinite(t=Math.floor(t))&&t>0?tI(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null,t2.range;let[t4,t8]=t3(t2,t0,tH,tC,tN,tM),[t6,t5]=t3(t1,tZ,tL,tk,tD,tP);function t9(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function t7(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function et(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var ee={"-":"",_:" ",0:"0"},er=/^\s*\d+/,en=/^%/,ei=/[\\^$*+?|[\]().{}]/g;function eo(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",o=i.length;return n+(o<r?Array(r-o+1).join(e)+i:i)}function ea(t){return t.replace(ei,"\\$&")}function es(t){return RegExp("^(?:"+t.map(ea).join("|")+")","i")}function eu(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function ec(t,e,r){var n=er.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function el(t,e,r){var n=er.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function ef(t,e,r){var n=er.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function eh(t,e,r){var n=er.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function ed(t,e,r){var n=er.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function ep(t,e,r){var n=er.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function ey(t,e,r){var n=er.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function eb(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function ev(t,e,r){var n=er.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function em(t,e,r){var n=er.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function eg(t,e,r){var n=er.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function ew(t,e,r){var n=er.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function e_(t,e,r){var n=er.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function ex(t,e,r){var n=er.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function eO(t,e,r){var n=er.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function eS(t,e,r){var n=er.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function eA(t,e,r){var n=er.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function eE(t,e,r){var n=en.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function eI(t,e,r){var n=er.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function eT(t,e,r){var n=er.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function ej(t,e){return eo(t.getDate(),e,2)}function eP(t,e){return eo(t.getHours(),e,2)}function eM(t,e){return eo(t.getHours()%12||12,e,2)}function eD(t,e){return eo(1+tk.count(t1(t),t),e,3)}function eN(t,e){return eo(t.getMilliseconds(),e,3)}function ek(t,e){return eN(t,e)+"000"}function eB(t,e){return eo(t.getMonth()+1,e,2)}function eC(t,e){return eo(t.getMinutes(),e,2)}function eR(t,e){return eo(t.getSeconds(),e,2)}function eL(t){var e=t.getDay();return 0===e?7:e}function eF(t,e){return eo(tL.count(t1(t)-1,t),e,2)}function eU(t){var e=t.getDay();return e>=4||0===e?tV(t):tV.ceil(t)}function ez(t,e){return t=eU(t),eo(tV.count(t1(t),t)+(4===t1(t).getDay()),e,2)}function eV(t){return t.getDay()}function eW(t,e){return eo(tF.count(t1(t)-1,t),e,2)}function e$(t,e){return eo(t.getFullYear()%100,e,2)}function eY(t,e){return eo((t=eU(t)).getFullYear()%100,e,2)}function eH(t,e){return eo(t.getFullYear()%1e4,e,4)}function eG(t,e){var r=t.getDay();return eo((t=r>=4||0===r?tV(t):tV.ceil(t)).getFullYear()%1e4,e,4)}function eq(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+eo(e/60|0,"0",2)+eo(e%60,"0",2)}function eK(t,e){return eo(t.getUTCDate(),e,2)}function eX(t,e){return eo(t.getUTCHours(),e,2)}function eJ(t,e){return eo(t.getUTCHours()%12||12,e,2)}function eQ(t,e){return eo(1+tB.count(t2(t),t),e,3)}function eZ(t,e){return eo(t.getUTCMilliseconds(),e,3)}function e0(t,e){return eZ(t,e)+"000"}function e1(t,e){return eo(t.getUTCMonth()+1,e,2)}function e2(t,e){return eo(t.getUTCMinutes(),e,2)}function e3(t,e){return eo(t.getUTCSeconds(),e,2)}function e4(t){var e=t.getUTCDay();return 0===e?7:e}function e8(t,e){return eo(tH.count(t2(t)-1,t),e,2)}function e6(t){var e=t.getUTCDay();return e>=4||0===e?tX(t):tX.ceil(t)}function e5(t,e){return t=e6(t),eo(tX.count(t2(t),t)+(4===t2(t).getUTCDay()),e,2)}function e9(t){return t.getUTCDay()}function e7(t,e){return eo(tG.count(t2(t)-1,t),e,2)}function rt(t,e){return eo(t.getUTCFullYear()%100,e,2)}function re(t,e){return eo((t=e6(t)).getUTCFullYear()%100,e,2)}function rr(t,e){return eo(t.getUTCFullYear()%1e4,e,4)}function rn(t,e){var r=t.getUTCDay();return eo((t=r>=4||0===r?tX(t):tX.ceil(t)).getUTCFullYear()%1e4,e,4)}function ri(){return"+0000"}function ro(){return"%"}function ra(t){return+t}function rs(t){return Math.floor(t/1e3)}function ru(t){return new Date(t)}function rc(t){return t instanceof Date?+t:+new Date(+t)}function rl(t,e,r,n,i,o,a,s,u,c){var l=z(),f=l.invert,h=l.domain,d=c(".%L"),p=c(":%S"),y=c("%I:%M"),b=c("%I %p"),v=c("%a %d"),m=c("%b %d"),g=c("%B"),w=c("%Y");function _(t){return(u(t)<t?d:s(t)<t?p:a(t)<t?y:o(t)<t?b:n(t)<t?i(t)<t?v:m:r(t)<t?g:w)(t)}return l.invert=function(t){return new Date(f(t))},l.domain=function(t){return arguments.length?h(Array.from(t,rc)):h().map(ru)},l.ticks=function(e){var r=h();return t(r[0],r[r.length-1],null==e?10:e)},l.tickFormat=function(t,e){return null==e?_:c(e)},l.nice=function(t){var r=h();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?h(tr(r,t)):l},l.copy=function(){return F(l,rl(t,e,r,n,i,o,a,s,u,c))},l}function rf(){return V.C.apply(rl(t6,t5,t1,tZ,tL,tk,tD,tP,tj,u).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function rh(){return V.C.apply(rl(t4,t8,t2,t0,tH,tB,tN,tM,tj,c).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function rd(){var t,e,r,n,i,o=0,a=1,s=B,u=!1;function c(e){return null==e||isNaN(e*=1)?i:s(0===r?.5:(e=(n(e)-t)*r,u?Math.max(0,Math.min(1,e)):e))}function l(t){return function(e){var r,n;return arguments.length?([r,n]=e,s=t(r,n),c):[s(0),s(1)]}}return c.domain=function(i){return arguments.length?([o,a]=i,t=n(o*=1),e=n(a*=1),r=t===e?0:1/(e-t),c):[o,a]},c.clamp=function(t){return arguments.length?(u=!!t,c):u},c.interpolator=function(t){return arguments.length?(s=t,c):s},c.range=l(M),c.rangeRound=l(D),c.unknown=function(t){return arguments.length?(i=t,c):i}
1,function(i){return n=i,t=i(o),e=i(a),r=t===e?0:1/(e-t),c}}function rp(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function ry(){var t=tv(rd());return t.copy=function(){return rp(t,ry()).exponent(t.exponent())},V.K.apply(t,arguments)}function rb(){return ry.apply(null,arguments).exponent(.5)}function rv(){var t,e,r,n,i,o,a,s=0,u=.5,c=1,l=1,f=B,h=!1;function d(t){return isNaN(t*=1)?a:(t=.5+((t=+o(t))-e)*(l*t<l*e?n:i),f(h?Math.max(0,Math.min(1,t)):t))}function p(t){return function(e){var r,n,i;return arguments.length?([r,n,i]=e,f=function(t,e){void 0===e&&(e=t,t=M);for(var r=0,n=e.length-1,i=e[0],o=Array(n<0?0:n);r<n;)o[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return o[e](t-e)}}(t,[r,n,i]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([s,u,c]=a,t=o(s*=1),e=o(u*=1),r=o(c*=1),n=t===e?0:.5/(e-t),i=e===r?0:.5/(r-e),l=e<t?-1:1,d):[s,u,c]},d.clamp=function(t){return arguments.length?(h=!!t,d):h},d.interpolator=function(t){return arguments.length?(f=t,d):f},d.range=p(M),d.rangeRound=p(D),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return o=a,t=a(s),e=a(u),r=a(c),n=t===e?0:.5/(e-t),i=e===r?0:.5/(r-e),l=e<t?-1:1,d}}function rm(){var t=tv(rv());return t.copy=function(){return rp(t,rm()).exponent(t.exponent())},V.K.apply(t,arguments)}function rg(){return rm.apply(null,arguments).exponent(.5)}function rw(t,e){if((i=t.length)>1)for(var r,n,i,o=1,a=t[e[0]],s=a.length;o<i;++o)for(n=a,a=t[e[o]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}u=(s=function(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=es(i),l=eu(i),f=es(o),h=eu(o),d=es(a),p=eu(a),y=es(s),b=eu(s),v=es(u),m=eu(u),g={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:ej,e:ej,f:ek,g:eY,G:eG,H:eP,I:eM,j:eD,L:eN,m:eB,M:eC,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ra,s:rs,S:eR,u:eL,U:eF,V:ez,w:eV,W:eW,x:null,X:null,y:e$,Y:eH,Z:eq,"%":ro},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:eK,e:eK,f:e0,g:re,G:rn,H:eX,I:eJ,j:eQ,L:eZ,m:e1,M:e2,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ra,s:rs,S:e3,u:e4,U:e8,V:e5,w:e9,W:e7,x:null,X:null,y:rt,Y:rr,Z:ri,"%":ro},_={a:function(t,e,r){var n=d.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=v.exec(e.slice(r));return n?(t.m=m.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return S(t,e,r,n)},d:eg,e:eg,f:eA,g:ey,G:ep,H:e_,I:e_,j:ew,L:eS,m:em,M:ex,p:function(t,e,r){var n=c.exec(e.slice(r));return n?(t.p=l.get(n[0].toLowerCase()),r+n[0].length):-1},q:ev,Q:eI,s:eT,S:eO,u:el,U:ef,V:eh,w:ec,W:ed,x:function(t,e,n){return S(t,r,e,n)},X:function(t,e,r){return S(t,n,e,r)},y:ey,Y:ep,Z:eb,"%":eE};function x(t,e){return function(r){var n,i,o,a=[],s=-1,u=0,c=t.length;for(r instanceof Date||(r=new Date(+r));++s<c;)37===t.charCodeAt(s)&&(a.push(t.slice(u,s)),null!=(i=ee[n=t.charAt(++s)])?n=t.charAt(++s):i="e"===n?" ":"0",(o=e[n])&&(n=o(r,i)),a.push(n),u=s+1);return a.push(t.slice(u,s)),a.join("")}}function O(t,e){return function(r){var n,i,o=et(1900,void 0,1);if(S(o,t,r+="",0)!=r.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(!e||"Z"in o||(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(n=(i=(n=t7(et(o.y,0,1))).getUTCDay())>4||0===i?tG.ceil(n):tG(n),n=tB.offset(n,(o.V-1)*7),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(n=(i=(n=t9(et(o.y,0,1))).getDay())>4||0===i?tF.ceil(n):tF(n),n=tk.offset(n,(o.V-1)*7),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:+("W"in o)),i="Z"in o?t7(et(o.y,0,1)).getUTCDay():t9(et(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*
1o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,t7(o)):t9(o)}}function S(t,e,r,n){for(var i,o,a=0,s=e.length,u=r.length;a<s;){if(n>=u)return -1;if(37===(i=e.charCodeAt(a++))){if(!(o=_[(i=e.charAt(a++))in ee?e.charAt(a++):i])||(n=o(t,r,n))<0)return -1}else if(i!=r.charCodeAt(n++))return -1}return n}return g.x=x(r,g),g.X=x(n,g),g.c=x(e,g),w.x=x(r,w),w.X=x(n,w),w.c=x(e,w),{format:function(t){var e=x(t+="",g);return e.toString=function(){return t},e},parse:function(t){var e=O(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=O(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,s.parse,c=s.utcFormat,s.utcParse;var r_=r(79036),rx=r(26539);function rO(t){for(var e=t.length,r=Array(e);--e>=0;)r[e]=e;return r}function rS(t,e){return t[e]}function rA(t){let e=[];return e.key=t,e}var rE=r(20624),rI=r.n(rE),rT=r(70670),rj=r.n(rT),rP=r(19809),rM=r.n(rP),rD=r(19850),rN=r.n(rD),rk=r(36827),rB=r.n(rk),rC=r(7766),rR=r.n(rC),rL=r(80505),rF=r.n(rL),rU=r(20527),rz=r.n(rU),rV=r(8532),rW=r.n(rV),r$=r(41946),rY=r.n(r$),rH=r(5323),rG=r.n(rH),rq=r(35493),rK=r.n(rq);function rX(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var rJ=function(t){return t},rQ={},rZ=function(t){return t===rQ},r0=function(t){return function e(){return 0==arguments.length||1==arguments.length&&rZ(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},r1=function(t){return function t(e,r){return 1===e?r:r0(function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.filter(function(t){return t!==rQ}).length;return a>=e?r.apply(void 0,i):t(e-a,r0(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=i.map(function(t){return rZ(t)?e.shift():t});return r.apply(void 0,((function(t){if(Array.isArray(t))return rX(t)})(o)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(o)||function(t,e){if(t){if("string"==typeof t)return rX(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rX(t,e)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat(e))}))})}(t.length,t)},r2=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},r3=r1(function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map(function(t){return e[t]}).map(t)}),r4=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return rJ;var n=e.reverse(),i=n[0],o=n.slice(1);return function(){return o.reduce(function(t,e){return e(t)},i.apply(void 0,arguments))}},r8=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},r6=function(t){var e=null,r=null;return function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e&&i.every(function(t,r){return t===e[r]})?r:(e=i,r=t.apply(void 0,i))}};r1(function(t,e,r){var n=+t;return n+r*(e-n)}),r1(function(t,e,r){var n=e-t;return(r-t)/(n=n||1/0)}),r1(function(t,e,r){var n=e-t;return Math.max(0,Math.min(1,(r-t)/(n=n||1/0)))});let r5={rangeStep:function(t,e,r){for(var n=new(rK())(t),i=0,o=[];n.lt(e)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o},getDigitCount:function(t){var e;return 0===t?1:Math.floor(new(rK())(t).abs().log(10).toNumber())+1}};function r9(t){return function(t){if(Array.isArray(t))return ne(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||nt(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r7(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}}(t,e)||nt(t,e)||function(){throw TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nt(t,e){if(t){if("string"==typeof t)return ne(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ne(t,e)}}function ne(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function nr(t){var e=r7(t,2),r=e[0],n=e[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function nn(t,e,r){if(t.lte(0))return new(rK())(0);var n=r5.getDigitCount(t.toNumber()),i=new(rK())(10).pow(n),o=t.div(i),a=1!==n?.05:.1,s=new(rK())(Math.ceil(o.div(a).toNumber())).add(r).mul(a).mul(i);return e?s:new(rK())(Math.ceil(s))}function ni(t,e,r){var n=1,i=new(rK())(t);if(!i.isint()&&r){var o=Math.abs(t);o<1?(n=new(rK())(10).pow(r5.getDigitCount(t)-1),i=new(rK())(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new(rK())(Math.floor(t)))}else 0===t?i=new(rK())(Math.floor((e-1)/2)):r||(i=new(rK())(Math.floor(t)));var a=Math.floor((e-1)/2);return r4(r3(function(t){return i.add(new(rK())(t-a).mul(n)).toNumber()}),r2)(0,e)}var no=r6(function(t){var e=r7(t,2),r=e[0],n=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(i,2),s=r7(nr([r,n]),2),u=s[0],c=s[1];if(u===-1/0||c===1/0){var l=c===1/0?[u].concat(r9(r2(0,i-1).map(function(){return 1/0}))):[].concat(r9(r2(0,i-1).map(function(){return-1/0})),[c]);return r>n?r8(l):l}if(u===c)return ni(u,i,o);var f=function t(e,r,n,i){var o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((r-e)/(n-1)))return{step:new(rK())(0),tickMin:new(rK())(0),tickMax:new(rK())(0)};var s=nn(new(rK())(r).sub(e).div(n-1),i,a),u=Math.ceil((o=e<=0&&r>=0?new(rK())(0):(o=new(rK())(e).add(r).div(2)).sub(new(rK())(o).mod(s))).sub(e).div(s).toNumber()),c=Math.ceil(new(rK())(r).sub(o).div(s).toNumber()),l=u+c+1;return l>n?t(e,r,n,i,a+1):(l<n&&(c=r>0?c+(n-l):c,u=r>0?u:u+(n-l)),{step:s,tickMin:o.sub(new(rK())(u).mul(s)),tickMax:o.add(new(rK())(c).mul(s))})}(u,c,a,o),h=f.step,d=f.tickMin,p=f.tickMax,y=r5.rangeStep(d,p.add(new(rK())(.1).mul(h)),h);return r>n?r8(y):y});r6(function(t){var e=r7(t,2),r=e[0],n=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(i,2),s=r7(nr([r,n]),2),u=s[0],c=s[1];if(u===-1/0||c===1/0)return[r,n];if(u===c)return ni(u,i,o);var l=nn(new(rK())(c).sub(u).div(a-1),o,0),f=r4(r3(function(t){return new(rK())(u).add(new(rK())(t).mul(l)).toNumber()}),r2)(0,a).filter(function(t){return t>=u&&t<=c});return r>n?r8(f):f});var na=r6(function(t,e){var r=r7(t,2),n=r[0],i=r[1],o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=r7(nr([n,i]),2),s=a[0],u=a[1];if(s===-1/0||u===1/0)return[n,i];if(s===u)return[s];var c=Math.max(e,2),l=nn(new(rK())(u).sub(s).div(c-1),o,0),f=[].concat(r9(r5.rangeStep(new(rK())(s),new(rK())(u).sub(new(rK())(.99).mul(l)),l)),[u]);return n>i?r8(f):f}),ns=r(99520),nu=r(59421),nc=r(72804),nl=r(48073);function nf(t){return(nf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nh(t){return function(t){if(Array.isArray(t))return nd(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return nd(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nd(t,e)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nd(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function np(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function ny(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?np(Object(r),!0).forEach(function(e){nb(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):np(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function nb(t,e,r){var n;return(n=function(t,e){if("object"!=nf(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=nf(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==nf(n)?n:n+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nv(t,e,r){return rM()(t)||rM()(e)?r:(0,nu.vh)(e)?rR()(t,e,r):rN()(e)?e(t):r}function nm(t,e,r,n){var i=rF()(t,function(t){return nv(t,e)});if("number"===r){var o=i.filter(function(t){return(0,nu.Et)(t)||parseFloat(t)});return o.length?[rj()(o),rI()(o)]:[1/0,-1/0]}return(n?i.filter(function(t){return!rM()(t)}):i).map(function(t){return(0,nu.vh)(t)||t instanceof Date?t:""})}var ng=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!=(e=null==r?void 0:r.length)?e:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&1e-6>=Math.abs(Math.abs(i.range[1]-i.range[0])-360))for(var s=i.range,u=0;u<a;u++){var c=u>0?n[u-1].coordinate:n[a-1].coordinate,l=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,h=void 0;if((0,nu.sA)(l-c)!==(0,nu.sA)(f-l)){var d=[];if((0,nu.sA)(f-l)===(0,nu.sA)(s[1]-s[0])){h=f;var p=l+s[1]-s[0];d[0]=Math.min(p,(p+c)/2),d[1]=Math.max(p,(p+c)/2)}else{h=c;var y=f+s[1]-s[0];d[0]=Math.min(l,(y+l)/2),d[1]=Math.max(l,(y+l)/2)}var b=[Math.min(l,(h+l)/2),Math.max(l,(h+l)/2)];if(t>b[0]&&t<=b[1]||t>=d[0]&&t<=d[1]){o=n[u].index;break}}else{var v=Math.min(c,f),m=Math.max(c,f);if(t>(v+l)/2&&t<=(m+l)/2){o=n[u].index;break}}}else for(var g=0;g<a;g++)if(0===g&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g>0&&g<a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g===a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2){o=r[g].index;break}return o},nw=function(t){var e,r,n=t.type.displayName,i=null!=(e=t.type)&&e.defaultProps?ny(ny({},t.type.defaultProps),t.props):t.props,o=i.stroke,a=i.fill;switch(n){case"Line":r=o;break;case"Area":case"Radar":r=o&&"none"!==o?o:a;break;default:r=a}return r},n_=function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,i=void 0===n?{}:n;if(!i)return{};for(var o={},a=Object.keys(i),s=0,u=a.length;s<u;s++)for(var c=i[a[s]].stackGroups,l=Object.keys(c),f=0,h=l.length;f<h;f++){var d=c[l[f]],p=d.items,y=d.cateAxisId,b=p.filter(function(t){return(0,nc.Mn)(t.type).indexOf("Bar")>=0});if(b&&b.length){var v=b[0].type.defaultProps,m=void 0!==v?ny(ny({},v),b[0].props):b[0].props,g=m.barSize,w=m[y];o[w]||(o[w]=[]);var _=rM()(g)?e:g;o[w].push({item:b[0],stackList:b.slice(1),barSize:rM()(_)?void 0:(0,nu.F4)(_,r,0)})}}return o},nx=function(t){var e,r=t.barGap,n=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=void 0===o?[]:o,s=t.maxBarSize,u=a.length;if(u<1)return null;var c=(0,nu.F4)(r,i,0,!0),l=[];if(a[0].barSize===+a[0].barSize){var f=!1,h=i/u,d=a.reduce(function(t,e){return t+e.barSize||0},0);(d+=(u-1)*c)>=i&&(d-=(u-1)*c,c=0),d>=i&&h>0&&(f=!0,h*=.9,d=u*h);var p={offset:((i-d)/2|0)-c,size:0};e=a.reduce(function(t,e){var r={item:e.item,position:{offset:p.offset+p.size+c,size:f?h:e.barSize}},n=[].concat(nh(t),[r]);return p=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:p})}),n},l)}else{var y=(0,nu.F4)(n,i,0,!0);i-2*y-(u-1)*c<=0&&(c=0);var b=(i-2*y-(u-1)*c)/u;b>1&&(b>>=0);var v=s===+s?Math.min(b,s):b;e=a.reduce(function(t,e,r){var n=[].concat(nh(t),[{item:e.item,position:{offset:y+(b+c)*r+(b-v)/2,size:v}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:n[n.length-1].position})}),n},l)}return e},nO=function(t,e,r,n){var i=r.children,o=r.width,a=r.margin,s=o-(a.left||0)-(a.right||0),u=(0,nl.g)({children:i,legendWidth:s});if(u){var c=n||{},l=c.width,f=c.height,h=u.align,d=u.verticalAlign,p=u.layout;if(("vertical"===p||"horizontal"===p&&"middle"===d)&&"center"!==h&&
1(0,nu.Et)(t[h]))return ny(ny({},t),{},nb({},h,t[h]+(l||0)));if(("horizontal"===p||"vertical"===p&&"center"===h)&&"middle"!==d&&(0,nu.Et)(t[d]))return ny(ny({},t),{},nb({},d,t[d]+(f||0)))}return t},nS=function(t,e,r,n,i){var o=e.props.children,a=(0,nc.aS)(o,ns.u).filter(function(t){var e;return e=t.props.direction,!!rM()(i)||("horizontal"===n?"yAxis"===i:"vertical"===n||"x"===e?"xAxis"===i:"y"!==e||"yAxis"===i)});if(a&&a.length){var s=a.map(function(t){return t.props.dataKey});return t.reduce(function(t,e){var n=nv(e,r);if(rM()(n))return t;var i=Array.isArray(n)?[rj()(n),rI()(n)]:[n,n],o=s.reduce(function(t,r){var n=nv(e,r,0),o=i[0]-Math.abs(Array.isArray(n)?n[0]:n),a=i[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(o,t[0]),Math.max(a,t[1])]},[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]},[1/0,-1/0])}return null},nA=function(t,e,r,n,i){var o=e.map(function(e){return nS(t,e,r,i,n)}).filter(function(t){return!rM()(t)});return o&&o.length?o.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]):null},nE=function(t,e,r,n,i){var o=e.map(function(e){var o=e.props.dataKey;return"number"===r&&o&&nS(t,e,o,n)||nm(t,o,r,i)});if("number"===r)return o.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]);var a={};return o.reduce(function(t,e){for(var r=0,n=e.length;r<n;r++)a[e[r]]||(a[e[r]]=!0,t.push(e[r]));return t},[])},nI=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},nT=function(t,e,r,n){if(n)return t.map(function(t){return t.coordinate});var i,o,a=t.map(function(t){return t.coordinate===e&&(i=!0),t.coordinate===r&&(o=!0),t.coordinate});return i||a.push(e),o||a.push(r),a},nj=function(t,e,r){if(!t)return null;var n=t.scale,i=t.duplicateDomain,o=t.type,a=t.range,s="scaleBand"===t.realScaleType?n.bandwidth()/2:2,u=(e||r)&&"category"===o&&n.bandwidth?n.bandwidth()/s:0;return(u="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*(0,nu.sA)(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks))?(t.ticks||t.niceTicks).map(function(t){return{coordinate:n(i?i.indexOf(t):t)+u,value:t,offset:u}}).filter(function(t){return!rz()(t.coordinate)}):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(t,e){return{coordinate:n(t)+u,value:t,index:e,offset:u}}):n.ticks&&!r?n.ticks(t.tickCount).map(function(t){return{coordinate:n(t)+u,value:t,offset:u}}):n.domain().map(function(t,e){return{coordinate:n(t)+u,value:i?i[t]:t,index:e,offset:u}})},nP=new WeakMap,nM=function(t,e){if("function"!=typeof e)return t;nP.has(t)||nP.set(t,new WeakMap);var r=nP.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},nD=function(t,e,r){var n=t.scale,i=t.type,o=t.layout,a=t.axisType;if("auto"===n)return"radial"===o&&"radiusAxis"===a?{scale:f.A(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:te(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>
1=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:f.z(),realScaleType:"point"}:"category"===i?{scale:f.A(),realScaleType:"band"}:{scale:te(),realScaleType:"linear"};if(rB()(n)){var s="scale".concat(rW()(n));return{scale:(l[s]||f.z)(),realScaleType:l[s]?s:"point"}}return rN()(n)?{scale:n}:{scale:f.z(),realScaleType:"point"}},nN=function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),i=Math.min(n[0],n[1])-1e-4,o=Math.max(n[0],n[1])+1e-4,a=t(e[0]),s=t(e[r-1]);(a<i||a>o||s<i||s>o)&&t.domain([e[0],e[r-1]])}},nk=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null},nB=function(t,e){if(!e||2!==e.length||!(0,nu.Et)(e[0])||!(0,nu.Et)(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!(0,nu.Et)(t[0])||t[0]<r)&&(i[0]=r),(!(0,nu.Et)(t[1])||t[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},nC={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var i=0,o=0,a=0;a<e;++a){var s=rz()(t[a][r][1])?t[a][r][0]:t[a][r][1];s>=0?(t[a][r][0]=i,t[a][r][1]=i+s,i=t[a][r][1]):(t[a][r][0]=o,t[a][r][1]=o+s,o=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,i,o=0,a=t[0].length;o<a;++o){for(i=r=0;r<n;++r)i+=t[r][o][1]||0;if(i)for(r=0;r<n;++r)t[r][o][1]/=i}rw(t,e)}},none:rw,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,i=t[e[0]],o=i.length;n<o;++n){for(var a=0,s=0;a<r;++a)s+=t[a][n][1]||0;i[n][1]+=i[n][0]=-s/2}rw(t,e)}},wiggle:function(t,e){if((i=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,i,o=0,a=1;a<n;++a){for(var s=0,u=0,c=0;s<i;++s){for(var l=t[e[s]],f=l[a][1]||0,h=(f-(l[a-1][1]||0))/2,d=0;d<s;++d){var p=t[e[d]];h+=(p[a][1]||0)-(p[a-1][1]||0)}u+=f,c+=h*f}r[a-1][1]+=r[a-1][0]=o,u&&(o-=c/u)}r[a-1][1]+=r[a-1][0]=o,rw(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var i=0,o=0;o<e;++o){var a=rz()(t[o][r][1])?t[o][r][0]:t[o][r][1];a>=0?(t[o][r][0]=i,t[o][r][1]=i+a,i=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}}},nR=function(t,e,r){var n=e.map(function(t){return t.props.dataKey}),i=nC[r];return(function(){var t=(0,rx.A)([]),e=rO,r=rw,n=rS;function i(i){var o,a,s=Array.from(t.apply(this,arguments),rA),u=s.length,c=-1;for(let t of i)for(o=0,++c;o<u;++o)(s[o][c]=[0,+n(t,s[o].key,c,i)]).data=t;for(o=0,a=(0,r_.A)(e(s));o<u;++o)s[a[o]].index=o;return r(s,a),s}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:(0,rx.A)(Array.from(e)),i):t},i.value=function(t){return arguments.length?(n="function"==typeof t?t:(0,rx.A)(+t),i):n},i.order=function(t){return arguments.length?(e=null==t?rO:"function"==typeof t?t:(0,rx.A)(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(r=null==t?rw:t,i):r},i})().keys(n).value(function(t,e){return+nv(t,e,0)}).order(rO).offset(i)(t)},nL=function(t,e,r,n,i,o){if(!t)return null;var a=(o?e.reverse():e).reduce(function(t,e){var i,o=null!=(i=e.type)&&i.defaultProps?ny(ny({},e.type.defaultProps),e.props):e.props,a=o.stackId;if(o.hide)return t;var s=o[r],u=t[s]||{hasStack:!1,stackGroups:{}};if((0,nu.vh)(a)){var c=u.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};c.items.push(e),u.hasStack=!0,u.stackGroups[a]=c}else u.stackGroups[(0,nu.NF)("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return ny(ny({},t),{},nb({},s,u))},{});return Object.keys(a).reduce(function(e,o){var s=a[o];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce(function(e,o){var a=s.stackGroups[o];return ny(ny({},e),{},nb({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:nR(t,a.items,i)}))},{})),ny(ny({},e),{},nb({},o,s))},{})},nF=function(t,e){var r=e.realScaleType,n=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,s=r||e.scale;if("auto"!==s&&"linear"!==s)return null;if(i&&"number"===n&&o&&("auto"===o[0]||"auto"===o[1])){var u=t.domain();if(!u.length)return null;var c=no(u,i,a);return t.domain([rj()(c),rI()(c)]),{niceTicks:c}}return i&&"number"===n?{niceTicks:na(t.domain(),i,a)}:null};function nU(t){var e=t.axis,r=t.ticks,n=t.bandSize,i=t.entry,o=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!rM()(i[e.dataKey])){var s=(0,nu.eP)(r,"value",i[e.dataKey]);if(s)return s.coordinate+n/2}return r[o]?r[o].coordinate+n/2:null}var u=nv(i,rM()(a)?e.dataKey:a);return rM()(u)?null:e.scale(u)}var nz=function(t){var e=t.axis,r=t.ticks,n=t.offset,i=t.bandSize,o=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var s=nv(o,e.dataKey,e.domain[a]);return rM()(s)?null:e.scale(s)-i/2+n},nV=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]},nW=function(t,e){var r,n=(null!=(r=t.type)&&r.defaultProps?ny(ny({},t.type.defaultProps),t.props):t.props).stackId;if((0,nu.vh)(n)){var i=e[n];if(i){var o=i.items.indexOf(t);return o>=0?i.stackedData[o]:null}}return null},n$=function(t,e,r){return Object.keys(t).reduce(function(n,i){var o=t[i].stackedData.reduce(function(t,n){var i=n.slice(e,r+1).reduce(function(t,e){return[rj()(e.concat([t[0]]).filter(nu.Et)),rI()(e.concat([t[1]]).filter(nu.Et))]},[1/0,-1/0]);return[Math.min(t[0],i[0]),Math.max(t[1],i[1])]},[1/0,-1/0]);return[Math.min(o[0],n[0]),Math.max(o[1],n[1])]},[1/0,-1/0]).map(function(t){return t===1/0||t===-1/0?0:t})},nY=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,nH=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,nG=function(t,e,r){if(rN()(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if((0,nu.Et)(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(nY.test(t[0])){var i=+nY.exec(t[0])[1];n[0]=e[0]-i}else rN()(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if((0,nu.Et)(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(nH.test(t[1])){var o=+nH.exec(t[1])[1];n[1]=e[1]+o}else rN()(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},nq=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var i=rG()(e,function(t){return t.coordinate}),o=1/0,a=1,s=i.length;a<s;a++){var u=i[a],c=i[a-1];o=Math.min((u.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},nK=function(t,e,r){return!t||!t.length||rY()(t,rR()(r,"type.defaultProps.domain"))?e:t},nX=function(t,e){var r=t.type.defaultProps?ny(ny({},t.type.defaultProps),t.props):t.props,n=r.dataKey,i=r.name,o=r.unit,a=r.formatter,s=r.tooltipType,u=r.chartType,c=r.hide;return ny(ny({},(0,nc.J9)(t,!1)),{},{dataKey:n,unit:o,formatter:a,name:i||n,color:nw(t),value:nv(e,n),type:s,payload:e,chartType:u,hide:c})}},4917:(t,e,r)=>
1{var n=r(98825),i=r(1602),o=r(52782),a=Math.max,s=Math.min;t.exports=function(t,e,r){var u,c,l,f,h,d,p=0,y=!1,b=!1,v=!0;if("function"!=typeof t)throw TypeError("Expected a function");function m(e){var r=u,n=c;return u=c=void 0,p=e,f=t.apply(n,r)}function g(t){var r=t-d,n=t-p;return void 0===d||r>=e||r<0||b&&n>=l}function w(){var t,r,n,o=i();if(g(o))return _(o);h=setTimeout(w,(t=o-d,r=o-p,n=e-t,b?s(n,l-r):n))}function _(t){return(h=void 0,v&&u)?m(t):(u=c=void 0,f)}function x(){var t,r=i(),n=g(r);if(u=arguments,c=this,d=r,n){if(void 0===h)return p=t=d,h=setTimeout(w,e),y?m(t):f;if(b)return clearTimeout(h),h=setTimeout(w,e),m(d)}return void 0===h&&(h=setTimeout(w,e)),f}return e=o(e)||0,n(r)&&(y=!!r.leading,l=(b="maxWait"in r)?a(o(r.maxWait)||0,e):l,v="trailing"in r?!!r.trailing:v),x.cancel=function(){void 0!==h&&clearTimeout(h),p=0,u=d=c=h=void 0},x.flush=function(){return void 0===h?f:_(i())},x}},5051:(t,e,r)=>{var n=r(92441),i=r(71266);t.exports=function(t,e,r,o){var a=r.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=r[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var l=(c=r[a])[0],f=t[l],h=c[1];if(u&&c[2]){if(void 0===f&&!(l in t))return!1}else{var d=new n;if(o)var p=o(f,h,l,t,e,d);if(!(void 0===p?i(h,f,3,o,d):p))return!1}}return!0}},5115:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},5323:(t,e,r)=>{var n=r(75448),i=r(94175),o=r(83720),a=r(65930);t.exports=o(function(t,e){if(null==t)return[];var r=e.length;return r>1&&a(t,e[0],e[1])?e=[]:r>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,n(e,1),[])})},6216:(t,e,r)=>{t.exports=r(97791)(Object.keys,Object)},6618:(t,e,r)=>{var n=r(50224),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0}},6677:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},7766:(t,e,r)=>{var n=r(23550);t.exports=function(t,e,r){var i=null==t?void 0:n(t,e);return void 0===i?r:i}},8532:(t,e,r)=>{t.exports=r(75631)("toUpperCase")},9350:t=>{t.exports=function(t){return function(){return t}}},10441:(t,e,r)=>{var n=r(36187);t.exports=function(t){return n(this.__data__,t)>-1}},11220:t=>{var e="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",i="[^"+e+"]",o="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+r+"|"+n+")?",u="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[i,o,a].join("|")+")"+u+s+")*",l=RegExp(n+"(?="+n+")|"+("(?:"+[i+r+"?",r,o,a,"["+e+"]"].join("|"))+")"+(u+s+c),"g");t.exports=function(t){return t.match(l)||[]}},11565:(t,e,r)=>{var n=r(89950),i=r(95029),o=r(28654),a=Object.prototype,s=Function.prototype.toString,u=a.hasOwnProperty,c=s.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=n(t))return!1;var e=i(t);if(null===e)return!0;var r=u.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==c}},12392:t=>{"use strict";var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,a){if("function"!=typeof n)throw TypeError("The listener must be a function");var s=new i(n,o||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),s.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},s.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=Array(o);i<o;i++)a[i]=n[i].fn;return a},s.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},s.prototype.emit=function(t,e,n,i,o,a){var s=r?r+t:t;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;
1if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,i),!0;case 5:return l.fn.call(l.context,e,n,i,o),!0;case 6:return l.fn.call(l.context,e,n,i,o,a),!0}for(c=1,u=Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var h,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(t,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,e);break;case 3:l[c].fn.call(l[c].context,e,n);break;case 4:l[c].fn.call(l[c].context,e,n,i);break;default:if(!u)for(h=1,u=Array(f-1);h<f;h++)u[h-1]=arguments[h];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},s.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},s.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==e||i&&!s.once||n&&s.context!==n||a(this,o);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==e||i&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,t.exports=s},12438:(t,e,r)=>{var n=r(59038);t.exports=function(t){return null==t?"":n(t)}},13051:(t,e,r)=>{var n=r(60524);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},13312:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(56740),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=RegExp(i.source,"g");function a(t,e){var r,a,s,u,c,l=i.lastIndex=o.lastIndex=0,f=-1,h=[],d=[];for(t+="",e+="";(s=i.exec(t))&&(u=o.exec(e));)(c=u.index)>l&&(c=e.slice(l,c),h[f]?h[f]+=c:h[++f]=c),(s=s[0])===(u=u[0])?h[f]?h[f]+=u:h[++f]=u:(h[++f]=null,d.push({i:f,x:(0,n.A)(s,u)})),l=o.lastIndex;return l<e.length&&(c=e.slice(l),h[f]?h[f]+=c:h[++f]=c),h.length<2?d[0]?(r=d[0].x,function(t){return r(t)+""}):(a=e,function(){return a}):(e=d.length,function(t){for(var r,n=0;n<e;++n)h[(r=d[n]).i]=r.x(t);return h.join("")})}},13674:(t,e,r)=>{var n=r(17099);t.exports=function(){this.__data__=new n,this.size=0}},14216:t=>{t.exports=function(){this.__data__=[],this.size=0}},15574:(t,e,r)=>{var n=r(95616),i=r(71747),o=r(47871);t.exports=function(t,e){var r={};return e=o(e,3),i(t,function(t,i,o){n(r,i,e(t,i,o))}),r}},15744:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},16876:(t,e,r)=>{"use strict";r.d(e,{i:()=>u});let n=Math.PI,i=2*n,o=i-1e-6;function a(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class s{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?a:function(t){let e=Math.floor(t);if(!(e>=0))throw Error(`invalid digits: ${t}`);if(e>15)return a;let r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,i,o){this._append`C${+t},${+e},${+r},${+n},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,r,i,o){if(t*=1,e*=1,r*=1,i*=1,(o*=1)<0)throw Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,u=r-t,c=i-e,l=a-t,f=s-e,h=l*l+f*f;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(h>1e-6)if(Math.abs(f*u-c*l)>1e-6&&o){let d=r-a,p=i-s,y=u*u+c*c,b=Math.sqrt(y),v=Math.sqrt(h),m=o*Math.tan((n-Math.acos((y+h-(d*d+p*p))/(2*b*v)))/2),g=m/v,w=m/b;Math.abs(g-1)>1e-6&&this._append`L${t+g*l},${e+g*f}`,this._append`A${o},${o},0,0,${+(f*d>l*p)},${this._x1=t+w*u},${this._y1=e+w*c}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,r,a,s,u){if(t*=1,e*=1,r*=1,u=!!u,r<0)throw Error(`negative radius: ${r}`);let c=r*Math.cos(a),l=r*Math.sin(a),f=t+c,h=e+l,d=1^u,p=u?a-s:s-a;null===this._x1?this._append`M${f},${h}`:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-h)>1e-6)&&this._append`L${f},${h}`,r&&(p<0&&(p=p%i+i),p>o?this._append`A${r},${r},0,1,${d},${t-c},${e-l}A${r},${r},0,1,${d},${this._x1=f},${this._y1=h}`:p>1e-6&&this._append`A${r},${r},0,${+(p>=n)},${d},${this._x1=t+r*Math.cos(s)},${this._y1=e+r*Math.sin(s)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r*=1}v${+n}h${-r}Z`}toString(){return this._}}function u(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{let t=Math.floor(r);if(!(t>=0))throw RangeError(`invalid digits: ${r}`);e=t}return t},()=>new s(e)}s.prototype},16968:(t,e,r)=>{var n=r(59930),i=r(47871),o=r(96640),a=r(93007);t.exports=function(t,e){return(a(t)?n:o)(t,i(e,3))}},17099:(t,e,r)=>
1{var n=r(14216),i=r(17248),o=r(45261),a=r(10441),s=r(45705);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},17248:(t,e,r)=>{var n=r(36187),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():i.call(e,r,1),--this.size,!0)}},17518:(t,e,r)=>{var n=r(89950),i=r(28654);t.exports=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==n(t)}},17565:(t,e,r)=>{var n=r(66521);t.exports=function(t){return n(this,t).get(t)}},17578:(t,e,r)=>{var n=r(57408);t.exports=function(t,e,r){for(var i=-1,o=t.criteria,a=e.criteria,s=o.length,u=r.length;++i<s;){var c=n(o[i],a[i]);if(c){if(i>=u)return c;return c*("desc"==r[i]?-1:1)}}return t.index-e.index}},18947:(t,e,r)=>{"use strict";r.d(e,{R:()=>n});var n=function(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i]}},19031:(t,e,r)=>{var n=r(24298),i="object"==typeof self&&self&&self.Object===Object&&self;t.exports=n||i||Function("return this")()},19204:t=>{t.exports=function(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o}},19283:(t,e,r)=>{"use strict";r.d(e,{J:()=>A});var n=r(14232),i=r(19809),o=r.n(i),a=r(19850),s=r.n(a),u=r(98825),c=r.n(u),l=r(69241),f=r(88172),h=r(72804),d=r(59421),p=r(99077);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var b=["offset"];function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=y(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=y(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==y(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function w(){return(w=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var _=function(t){var e=t.value,r=t.formatter,n=o()(t.children)?e:t.children;return s()(r)?r(n):n},x=function(t,e,r){var i,a,s=t.position,u=t.viewBox,c=t.offset,f=t.className,h=u.cx,y=u.cy,b=u.innerRadius,v=u.outerRadius,m=u.startAngle,g=u.endAngle,_=u.clockWise,x=(b+v)/2,O=(0,d.sA)(g-m)*Math.min(Math.abs(g-m),360),S=O>=0?1:-1;"insideStart"===s?(i=m+S*c,a=_):"insideEnd"===s?(i=g-S*c,a=!_):"end"===s&&(i=g+S*c,a=_),a=O<=0?a:!a;var A=(0,p.IZ)(h,y,x,i),E=(0,p.IZ)(h,y,x,i+(a?1:-1)*359),I="M".concat(A.x,",").concat(A.y,"\n A").concat(x,",").concat(x,",0,1,").concat(+!a,",\n ").concat(E.x,",").concat(E.y),T=o()(t.id)?(0,d.NF)("recharts-radial-line-"):t.id;return n.createElement("text",w({},r,{dominantBaseline:"central",className:(0,l.A)("recharts-radial-bar-label",f)}),n.createElement("defs",null,n.createElement("path",{id:T,d:I})),n.createElement("textPath",{xlinkHref:"#".concat(T)},e))},O=function(t){var e=t.viewBox,r=t.offset,n=t.position,i=e.cx,o=e.cy,a=e.innerRadius,s=e.outerRadius,u=(e.startAngle+e.endAngle)/2;if("outside"===n){var c=(0,p.IZ)(i,o,s+r,u),l=c.x;return{x:l,y:c.y,textAnchor:l>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"end"};var f=(0,p.IZ)(i,o,(a+s)/2,u);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},S=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,i=t.position,o=e.x,a=e.
1y,s=e.width,u=e.height,l=u>=0?1:-1,f=l*n,h=l>0?"end":"start",p=l>0?"start":"end",y=s>=0?1:-1,b=y*n,v=y>0?"end":"start",m=y>0?"start":"end";if("top"===i)return g(g({},{x:o+s/2,y:a-l*n,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(a-r.y,0),width:s}:{});if("bottom"===i)return g(g({},{x:o+s/2,y:a+u+f,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(r.y+r.height-(a+u),0),width:s}:{});if("left"===i){var w={x:o-b,y:a+u/2,textAnchor:v,verticalAnchor:"middle"};return g(g({},w),r?{width:Math.max(w.x-r.x,0),height:u}:{})}if("right"===i){var _={x:o+s+b,y:a+u/2,textAnchor:m,verticalAnchor:"middle"};return g(g({},_),r?{width:Math.max(r.x+r.width-_.x,0),height:u}:{})}var x=r?{width:s,height:u}:{};return"insideLeft"===i?g({x:o+b,y:a+u/2,textAnchor:m,verticalAnchor:"middle"},x):"insideRight"===i?g({x:o+s-b,y:a+u/2,textAnchor:v,verticalAnchor:"middle"},x):"insideTop"===i?g({x:o+s/2,y:a+f,textAnchor:"middle",verticalAnchor:p},x):"insideBottom"===i?g({x:o+s/2,y:a+u-f,textAnchor:"middle",verticalAnchor:h},x):"insideTopLeft"===i?g({x:o+b,y:a+f,textAnchor:m,verticalAnchor:p},x):"insideTopRight"===i?g({x:o+s-b,y:a+f,textAnchor:v,verticalAnchor:p},x):"insideBottomLeft"===i?g({x:o+b,y:a+u-f,textAnchor:m,verticalAnchor:h},x):"insideBottomRight"===i?g({x:o+s-b,y:a+u-f,textAnchor:v,verticalAnchor:h},x):c()(i)&&((0,d.Et)(i.x)||(0,d._3)(i.x))&&((0,d.Et)(i.y)||(0,d._3)(i.y))?g({x:o+(0,d.F4)(i.x,s),y:a+(0,d.F4)(i.y,u),textAnchor:"end",verticalAnchor:"end"},x):g({x:o+s/2,y:a+u/2,textAnchor:"middle",verticalAnchor:"middle"},x)};function A(t){var e,r=t.offset,i=g({offset:void 0===r?5:r},function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,b)),a=i.viewBox,u=i.position,c=i.value,p=i.children,y=i.content,v=i.className,m=i.textBreakAll;if(!a||o()(c)&&o()(p)&&!(0,n.isValidElement)(y)&&!s()(y))return null;if((0,n.isValidElement)(y))return(0,n.cloneElement)(y,i);if(s()(y)){if(e=(0,n.createElement)(y,i),(0,n.isValidElement)(e))return e}else e=_(i);var A="cx"in a&&(0,d.Et)(a.cx),E=(0,h.J9)(i,!0);if(A&&("insideStart"===u||"insideEnd"===u||"end"===u))return x(i,e,E);var I=A?O(i):S(i);return n.createElement(f.E,w({className:(0,l.A)("recharts-label",void 0===v?"":v)},E,I,{breakAll:m}),e)}A.displayName="Label";var E=function(t){var e=t.cx,r=t.cy,n=t.angle,i=t.startAngle,o=t.endAngle,a=t.r,s=t.radius,u=t.innerRadius,c=t.outerRadius,l=t.x,f=t.y,h=t.top,p=t.left,y=t.width,b=t.height,v=t.clockWise,m=t.labelViewBox;if(m)return m;if((0,d.Et)(y)&&(0,d.Et)(b)){if((0,d.Et)(l)&&(0,d.Et)(f))return{x:l,y:f,width:y,height:b};if((0,d.Et)(h)&&(0,d.Et)(p))return{x:h,y:p,width:y,height:b}}return(0,d.Et)(l)&&(0,d.Et)(f)?{x:l,y:f,width:0,height:0}:(0,d.Et)(e)&&(0,d.Et)(r)?{cx:e,cy:r,startAngle:i||n||0,endAngle:o||n||0,innerRadius:u||0,outerRadius:c||s||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};A.parseViewBox=E,A.renderCallByParent=function(t,e){var r,i,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&o&&!t.label)return null;var a=t.children,u=E(t),l=(0,h.aS)(a,A).map(function(t,r){return(0,n.cloneElement)(t,{viewBox:e||u,key:"label-".concat(r)})});if(!o)return l;return[(r=t.label,i=e||u,!r?null:!0===r?n.createElement(A,{key:"label-implicit",viewBox:i}):(0,d.vh)(r)?n.createElement(A,{key:"label-implicit",viewBox:i,value:r}):(0,n.isValidElement)(r)?r.type===A?(0,n.cloneElement)(r,{key:"label-implicit",viewBox:i}):n.createElement(A,{key:"label-implicit",content:r,viewBox:i}):s()(r)?n.createElement(A,{key:"label-implicit",content:r,viewBox:i}):c()(r)?n.createElement(A,w({viewBox:i},r,{key:"label-implicit"})):null)].concat(function(t){if(Array.isArray(t))return v(t)}(l)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(l)||function(t,e){if(t){if("string"==typeof t)return v(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(t,e)}}(l)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}},19465:(t,e,r)=>{var n=r(2331),i=r(39004),o=r(66783);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},19809:t=>{t.exports=function(t){return null==t}},19850:(t,e,r)=>{var n=r(89950),i=r(98825);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},19887:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},20067:t=>{t.exports=function(t,e){var r=t.length;for(t.sort(e);
1r--;)t[r]=t[r].value;return t}},20527:(t,e,r)=>{var n=r(89387);t.exports=function(t){return n(t)&&t!=+t}},20624:(t,e,r)=>{var n=r(29257),i=r(141),o=r(27148);t.exports=function(t){return t&&t.length?n(t,o,i):void 0}},21433:(t,e,r)=>{"use strict";r.d(e,{A3:()=>h,Pu:()=>f});var n=r(53995);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach(function(e){var n,o,a;n=t,o=e,a=r[e],(o=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var u={widthCache:{},cacheCount:0},c={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},l="recharts_measurement_span",f=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||n.m.isSsr)return{width:0,height:0};var i=(Object.keys(e=a({},r)).forEach(function(t){e[t]||delete e[t]}),e),o=JSON.stringify({text:t,copyStyle:i});if(u.widthCache[o])return u.widthCache[o];try{var s=document.getElementById(l);s||((s=document.createElement("span")).setAttribute("id",l),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var f=a(a({},c),i);Object.assign(s.style,f),s.textContent="".concat(t);var h=s.getBoundingClientRect(),d={width:h.width,height:h.height};return u.widthCache[o]=d,++u.cacheCount>2e3&&(u.cacheCount=0,u.widthCache={}),d}catch(t){return{width:0,height:0}}},h=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}}},21641:(t,e,r)=>{"use strict";r.d(e,{A:()=>o,z:()=>a});var n=r(2592),i=r(93478);function o(){var t,e,r=(0,i.A)().unknown(void 0),a=r.domain,s=r.range,u=0,c=1,l=!1,f=0,h=0,d=.5;function p(){var r=a().length,n=c<u,i=n?c:u,o=n?u:c;t=(o-i)/Math.max(1,r-f+2*h),l&&(t=Math.floor(t)),i+=(o-i-t*(r-f))*d,e=t*(1-f),l&&(i=Math.round(i),e=Math.round(e));var p=(function(t,e,r){t*=1,e*=1,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),o=Array(i);++n<i;)o[n]=t+n*r;return o})(r).map(function(e){return i+t*e});return s(n?p.reverse():p)}return delete r.unknown,r.domain=function(t){return arguments.length?(a(t),p()):a()},r.range=function(t){return arguments.length?([u,c]=t,u*=1,c*=1,p()):[u,c]},r.rangeRound=function(t){return[u,c]=t,u*=1,c*=1,l=!0,p()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(l=!!t,p()):l},r.padding=function(t){return arguments.length?(f=Math.min(1,h=+t),p()):f},r.paddingInner=function(t){return arguments.length?(f=Math.min(1,t),p()):f},r.paddingOuter=function(t){return arguments.length?(h=+t,p()):h},r.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),p()):d},r.copy=function(){return o(a(),[u,c]).round(l).paddingInner(f).paddingOuter(h).align(d)},n.C.apply(p(),arguments)}function a(){return function t(e){var r=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return t(r())},e}(o.apply(null,arguments).paddingInner(1))}},21664:(t,e,r)=>{"use strict";r.d(e,{I:()=>G});var n=r(14232);function i(){}function o(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function a(t){this._context=t}function s(t){this._context=t}function u(t){this._context=t}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:o(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},s.prototype={areaStart:i,areaEnd:i,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},u.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class c{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function l(t){this._context=t}function f(t){this._context=t}function h(t){return new f(t)}l.prototype={areaStart:i,areaEnd:i,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t*=1,e*=1,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function d(t,e,r){var n=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(n||i<0&&-0),a=(r-t._y1)/(i||n<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*n)/(n+i)))||0}function p(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function y(t,e,r){var n=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-n)/3;t._context.bezierCurveTo(n+s,i+s*e,o-s,a-s*r,o,a)}function b(t){this._context=t}function v(t){this._context=new m(t)}function m(t){this._context=t}function g(t){this._context=t}function w(t){var e,r,n=t.length-1,i=Array(n),o=Array(n),a=Array(n);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/o[e-1],o[e]-=r,a[e]-=r*a[e-1];for(i[n-1]=a[n-1]/o[n-1],e=n-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(e=0,o[n-1]=(t[n]+i[n-1])/2;e<n-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function _(t,e){this._context=t,this._t=e}f.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},b.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:y(this,this._t0,p(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e*=1,(t*=1)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,y(this,p(this,r=d(this,t,e)),r);break;default:y(this,this._t0,r=d(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(v.prototype=Object.create(b.prototype)).point=function(t,e){b.prototype.point.call(this,e,t)},m.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,o){this._context.bezierCurveTo(e,t,n,r,o,i)}},g.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=w(t),i=w(e),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var x=r(79036),O=r(26539),S=r(16876);function A(t){return t[0]}function E(t){return t[1]}function I(t,e){var r=(0,O.A)(!0),n=null,i=h,o=null,a=(0,S.i)(s);function s(s){var u,c,l,f=(s=(0,x.A)(s)).length,h=!1;for(null==n&&(o=i(l=a())),u=0;u<=f;++u)!(u<f&&r(c=s[u],u,s))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(c,u,s),+e(c,u,s));if(l)return o=null,l+""||null}return t="function"==typeof t?t:void 0===t?A:(0,O.A)(t),e="function"==typeof e?e:void 0===e?E:(0,O.A)(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,O.A)(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,O.A)(+t),s):e},s.defined=function(t){return arguments.length?(r="function"==typeof t?t:(0,O.A)(!!t),s):r}
1,s.curve=function(t){return arguments.length?(i=t,null!=n&&(o=i(n)),s):i},s.context=function(t){return arguments.length?(null==t?n=o=null:o=i(n=t),s):n},s}function T(t,e,r){var n=null,i=(0,O.A)(!0),o=null,a=h,s=null,u=(0,S.i)(c);function c(c){var l,f,h,d,p,y=(c=(0,x.A)(c)).length,b=!1,v=Array(y),m=Array(y);for(null==o&&(s=a(p=u())),l=0;l<=y;++l){if(!(l<y&&i(d=c[l],l,c))===b)if(b=!b)f=l,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=l-1;h>=f;--h)s.point(v[h],m[h]);s.lineEnd(),s.areaEnd()}b&&(v[l]=+t(d,l,c),m[l]=+e(d,l,c),s.point(n?+n(d,l,c):v[l],r?+r(d,l,c):m[l]))}if(p)return s=null,p+""||null}function l(){return I().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?A:(0,O.A)(+t),e="function"==typeof e?e:void 0===e?(0,O.A)(0):(0,O.A)(+e),r="function"==typeof r?r:void 0===r?E:(0,O.A)(+r),c.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,O.A)(+e),n=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,O.A)(+e),c):t},c.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:(0,O.A)(+t),c):n},c.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,O.A)(+t),r=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,O.A)(+t),c):e},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:(0,O.A)(+t),c):r},c.lineX0=c.lineY0=function(){return l().x(t).y(e)},c.lineY1=function(){return l().x(t).y(r)},c.lineX1=function(){return l().x(n).y(e)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:(0,O.A)(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),c):o},c}var j=r(8532),P=r.n(j),M=r(19850),D=r.n(M),N=r(69241),k=r(4641),B=r(72804),C=r(59421);function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function L(){return(L=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function F(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function U(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?F(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=R(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=R(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==R(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var z={curveBasisClosed:function(t){return new s(t)},curveBasisOpen:function(t){return new u(t)},curveBasis:function(t){return new a(t)},curveBumpX:function(t){return new c(t,!0)},curveBumpY:function(t){return new c(t,!1)},curveLinearClosed:function(t){return new l(t)},curveLinear:h,curveMonotoneX:function(t){return new b(t)},curveMonotoneY:function(t){return new v(t)},curveNatural:function(t){return new g(t)},curveStep:function(t){return new _(t,.5)},curveStepAfter:function(t){return new _(t,1)},curveStepBefore:function(t){return new _(t,0)}},V=function(t){return t.x===+t.x&&t.y===+t.y},W=function(t){return t.x},$=function(t){return t.y},Y=function(t,e){if(D()(t))return t;var r="curve".concat(P()(t));return("curveMonotone"===r||"curveBump"===r)&&e?z["".concat(r).concat("vertical"===e?"Y":"X")]:z[r]||h},H=function(t){var e,r=t.type,n=t.points,i=void 0===n?[]:n,o=t.baseLine,a=t.layout,s=t.connectNulls,u=void 0!==s&&s,c=Y(void 0===r?"linear":r,a),l=u?i.filter(function(t){return V(t)}):i;if(Array.isArray(o)){var f=u?o.filter(function(t){return V(t)}):o,h=l.map(function(t,e){return U(U({},t),{},{base:f[e]})});return(e="vertical"===a?T().y($).x1(W).x0(function(t){return t.base.x}):T().x(W).y1($).y0(function(t){return t.base.y})).defined(V).curve(c),e(h)}return(e="vertical"===a&&(0,C.Et)(o)?T().y($).x1(W).x0(o):(0,C.Et)(o)?T().x(W).y1($).y0(o):I().x(W).y($)).defined(V).curve(c),e(l)},G=function(t){var e=t.className,r=t.points,i=t.path,o=t.pathRef;if((!r||!r.length)&&!i)return null;var a=r&&r.length?H(t):i;return n.createElement("path",L({},(0,B.J9)(t,!1),(0,k._U)(t),{className:(0,N.A)("recharts-curve",e),d:a,ref:o}))}},21854:(t,e,r)=>{var n=r(19204);t.exports=function(t,e,r){var i=t.length;return r=void 0===r?i:r,!e&&r>=i?t:n(t,e,r)}},22225:(t,e,r)=>{var n=r(72200),i=r(93007);t.exports=function(t,e,r){var o=e(t);return i(t)?o:n(o,r(t))}},22333:(t,e,r)=>{"use strict";r.d(e,{W:()=>b});var n=r(14232),i=r(69241),o=r(93680),a=r(69679),s=r(4886);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function h(t,e,r){return(e=d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==u(e)?e:e+""}function p(){return(p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function y(t){var e=t.xAxisId,r=(0,o.yi)(),u=(0,o.rY)(),c=(0,o.AF)(e);return null==c?null:n.createElement(a.u,p({},c,{className:(0,i.A)("recharts-".concat(c.axisType," ").concat(c.axisType),c.className),viewBox:{x:0,y:0,width:r,height:u},ticksGenerator:function(t){return(0,s.Rh)(t,!0)}}))}var b=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=l(t),function(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,c()?Reflect.construct(t,e||[],l(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&f(r,t),e=[{key:"render",value:function(){return n.createElement(y,this.props)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(n.Component);h(b,"displayName","XAxis"),h(b,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0})},23218:(t,e,r)=>{t.exports=r(43622)(r(19031),"DataView")},23550:(t,e,r)=>{var n=r(58511),i=r(52141);t.exports=function(t,e){e=n(e,t);for(var r=0,o=e.length;null!=t&&r<o;)t=t[i(e[r++])];return r&&r==o?t:void 0}},23910:(t,e,r)=>{var n=r(9350),i=r(45457),o=r(27148);t.exports=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:o},24015:(t,e,r)=>{var n=r(23218),i=r(36315),o=r(54316),a=r(37973),s=r(96703),u=r(89950),c=r(82675),l="[object Map]",f="[object Promise]",h="[object Set]",d="[object WeakMap]",p="[object DataView]",y=c(n),b=c(i),v=c(o),m=c(a),g=c(s),w=u;
1(n&&w(new n(new ArrayBuffer(1)))!=p||i&&w(new i)!=l||o&&w(o.resolve())!=f||a&&w(new a)!=h||s&&w(new s)!=d)&&(w=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?c(r):"";if(n)switch(n){case y:return p;case b:return l;case v:return f;case m:return h;case g:return d}return e}),t.exports=w},24065:t=>{t.exports=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1}},24298:(t,e,r)=>{t.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},24354:(t,e,r)=>{"use strict";r.d(e,{h:()=>b});var n=r(14232),i=r(69241),o=r(93680),a=r(69679),s=r(4886);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function h(t,e,r){return(e=d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}function p(){return(p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var y=function(t){var e=t.yAxisId,r=(0,o.yi)(),u=(0,o.rY)(),c=(0,o.Nk)(e);return null==c?null:n.createElement(a.u,p({},c,{className:(0,i.A)("recharts-".concat(c.axisType," ").concat(c.axisType),c.className),viewBox:{x:0,y:0,width:r,height:u},ticksGenerator:function(t){return(0,s.Rh)(t,!0)}}))},b=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=l(t),function(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,c()?Reflect.construct(t,e||[],l(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&f(r,t),e=[{key:"render",value:function(){return n.createElement(y,this.props)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(n.Component);h(b,"displayName","YAxis"),h(b,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1})},24694:(t,e)=>{"use strict";var r,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),e.isFragment=function(t){return function(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case o:case s:case a:case h:case d:return t;default:switch(t=t&&t.$$typeof){case l:case c:case f:case y:case p:case u:return t;default:return e}}case i:return e}}}(t)===o}},25702:(t,e,r)=>{var n=r(47871),i=r(68839);
1t.exports=function(t,e){return t&&t.length?i(t,n(e,2)):[]}},26539:(t,e,r)=>{"use strict";function n(t){return function(){return t}}r.d(e,{A:()=>n})},27023:t=>{var e=Math.ceil,r=Math.max;t.exports=function(t,n,i,o){for(var a=-1,s=r(e((n-t)/(i||1)),0),u=Array(s);s--;)u[o?s:++a]=t,t+=i;return u}},27136:(t,e,r)=>{var n=r(19850),i=r(52742);t.exports=function(t){return null!=t&&i(t.length)&&!n(t)}},27148:t=>{t.exports=function(t){return t}},27371:t=>{t.exports=function(){return[]}},27757:(t,e,r)=>{var n=r(3979);t.exports=function(t,e){var r=!0;return n(t,function(t,n,i){return r=!!e(t,n,i)}),r}},28375:(t,e,r)=>{var n=r(19465),i=r(15744),o=r(28389);t.exports=function(t,e,r,a,s,u){var c=1&r,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var h=u.get(t),d=u.get(e);if(h&&d)return h==e&&d==t;var p=-1,y=!0,b=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++p<l;){var v=t[p],m=e[p];if(a)var g=c?a(m,v,p,e,t,u):a(v,m,p,t,e,u);if(void 0!==g){if(g)continue;y=!1;break}if(b){if(!i(e,function(t,e){if(!o(b,e)&&(v===t||s(v,t,r,a,u)))return b.push(e)})){y=!1;break}}else if(!(v===m||s(v,m,r,a,u))){y=!1;break}}return u.delete(t),u.delete(e),y}},28389:t=>{t.exports=function(t,e){return t.has(e)}},28654:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},28752:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});function n(t,e){if(!t)throw Error("Invariant failed")}},29257:(t,e,r)=>{var n=r(76014);t.exports=function(t,e,r){for(var i=-1,o=t.length;++i<o;){var a=t[i],s=e(a);if(null!=s&&(void 0===u?s==s&&!n(s):r(s,u)))var u=s,c=a}return c}},29934:(t,e,r)=>{var n=r(59059),i=r(6216),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=[];for(var r in Object(t))o.call(t,r)&&"constructor"!=r&&e.push(r);return e}},31208:(t,e,r)=>{"use strict";function n(t,e){for(var r in t)if(({}).hasOwnProperty.call(t,r)&&(!({}).hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if(({}).hasOwnProperty.call(e,n)&&!({}).hasOwnProperty.call(t,n))return!1;return!0}r.d(e,{b:()=>n})},33065:(t,e,r)=>{var n=r(50224),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:i.call(e,t)}},33582:(t,e,r)=>{var n=r(93007),i=r(76014),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!!("number"==r||"symbol"==r||"boolean"==r||null==t||i(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}},33854:(t,e,r)=>{var n=r(98825);t.exports=function(t){return t==t&&!n(t)}},33872:(t,e,r)=>{var n=r(92441),i=r(28375),o=r(63700),a=r(78583),s=r(24015),u=r(93007),c=r(4756),l=r(82731),f="[object Arguments]",h="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,y,b,v){var m=u(t),g=u(e),w=m?h:s(t),_=g?h:s(e);w=w==f?d:w,_=_==f?d:_;var x=w==d,O=_==d,S=w==_;if(S&&c(t)){if(!c(e))return!1;m=!0,x=!1}if(S&&!x)return v||(v=new n),m||l(t)?i(t,e,r,y,b,v):o(t,e,w,r,y,b,v);if(!(1&r)){var A=x&&p.call(t,"__wrapped__"),E=O&&p.call(e,"__wrapped__");
1if(A||E){var I=A?t.value():t,T=E?e.value():e;return v||(v=new n),b(I,T,r,y,v)}}return!!S&&(v||(v=new n),a(t,e,r,y,b,v))}},34293:(t,e,r)=>{var n=r(91575),i=r(27757),o=r(47871),a=r(93007),s=r(65930);t.exports=function(t,e,r){var u=a(t)?n:i;return r&&s(t,e,r)&&(e=void 0),u(t,o(e,3))}},34705:t=>{t.exports=function(){return!1}},35474:(t,e,r)=>{"use strict";r.d(e,{u:()=>u});var n=r(14232),i=r(69241),o=r(72804),a=["children","width","height","viewBox","className","style","title","desc"];function s(){return(s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function u(t){var e=t.children,r=t.width,u=t.height,c=t.viewBox,l=t.className,f=t.style,h=t.title,d=t.desc,p=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,a),y=c||{width:r,height:u,x:0,y:0},b=(0,i.A)("recharts-surface",l);return n.createElement("svg",s({},(0,o.J9)(p,!0,"svg"),{className:b,width:r,height:u,style:f,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height)}),n.createElement("title",null,h),n.createElement("desc",null,d),e)}},35493:function(t,e,r){var n;!function(i){"use strict";var o,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},s=!0,u="[DecimalError] ",c=u+"Invalid argument: ",l=u+"Exponent out of range: ",f=Math.floor,h=Math.pow,d=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,p=f(1286742750677284.5),y={};function b(t,e){var r,n,i,o,a,u,c,l,f=t.constructor,h=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),s?E(e,h):e;if(c=t.d,l=e.d,a=t.e,i=e.e,c=c.slice(),o=a-i){for(o<0?(n=c,o=-o,u=l.length):(n=l,i=a,u=c.length),o>(u=(a=Math.ceil(h/7))>u?a+1:u+1)&&(o=u,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((u=c.length)-(o=l.length)<0&&(o=u,n=l,l=c,c=n),r=0;o;)r=(c[--o]=c[o]+l[o]+r)/1e7|0,c[o]%=1e7;for(r&&(c.unshift(r),++i),u=c.length;0==c[--u];)c.pop();return e.d=c,e.e=i,s?E(e,h):e}function v(t,e,r){if(t!==~~t||t<e||t>r)throw Error(c+t)}function m(t){var e,r,n,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)(r=7-(n=t[e]+"").length)&&(o+=O(r)),o+=n;(r=7-(n=(a=t[e])+"").length)&&(o+=O(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}y.absoluteValue=y.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},y.comparedTo=y.cmp=function(t){var e,r,n,i;if(t=new this.constructor(t),this.s!==t.s)return this.s||-t.s;if(this.e!==t.e)return this.e>t.e^this.s<0?1:-1;for(e=0,r=(n=this.d.length)<(i=t.d.length)?n:i;e<r;++e)if(this.d[e]!==t.d[e])return this.d[e]>t.d[e]^this.s<0?1:-1;return n===i?0:n>i^this.s<0?1:-1},y.decimalPlaces=y.dp=function(){var t=this.d.length-1,e=(t-this.e)*7;if(t=this.d[t])for(;t%10==0;t/=10)e--;return e<0?0:e},y.dividedBy=y.div=function(t){return g(this,new this.constructor(t))},y.dividedToIntegerBy=y.idiv=function(t){var e=this.constructor;return E(g(this,new e(t),0,1),e.precision)},y.equals=y.eq=function(t){return!this.cmp(t)},y.exponent=function(){return _(this)},y.greaterThan=y.gt=function(t){return this.cmp(t)>0},y.greaterThanOrEqualTo=y.gte=function(t){return this.cmp(t)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(t){return 0>this.cmp(t)},y.lessThanOrEqualTo=y.lte=function(t){return 1>this.cmp(t)},y.logarithm=y.log=function(t){var e,r=this.constructor,n=r.precision,i=n+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(o))throw Error(u+"NaN");if(this.s<1)throw Error(u+(this.s?"NaN":"-Infinity"));return this.eq(o)?new r(0):(s=!1,e=g(S(this,i),S(t,i),i),s=!0,E(e,n))},y.minus=y.sub=function(t){return t=new this.constructor(t),this.s==t.s?I(this,t):b(this,(t.s=-t.s,t))},y.modulo=y.mod=function(t){var e,r=this.constructor,n=r.precision;if(!(t=new r(t)).s)throw Error(u+"NaN");return this.s?(s=!1,e=g(this,t,0,1).times(t),s=!0,this.minus(e)):E(new r(this),n)},y.naturalExponential=y.exp=function(){return w(this)},y.naturalLogarithm=y.ln=function(){return S(this)},y.negated=y.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},y.plus=y.add=function(t){return t=new this.constructor(t),this.s==t.s?b(this,t):I(this,(t.s=-t.s,t))},y.precision=y.sd=function(t){var e,r,n;if(void 0!==t&&!!t!==t&&1!==t&&0!==t)throw Error(c+t);
1if(e=_(this)+1,r=7*(n=this.d.length-1)+1,n=this.d[n]){for(;n%10==0;n/=10)r--;for(n=this.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},y.squareRoot=y.sqrt=function(){var t,e,r,n,i,o,a,c=this.constructor;if(this.s<1){if(!this.s)return new c(0);throw Error(u+"NaN")}for(t=_(this),s=!1,0==(i=Math.sqrt(+this))||i==1/0?(((e=m(this.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=f((t+1)/2)-(t<0||t%2),n=new c(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new c(i.toString()),i=a=(r=c.precision)+3;;)if(n=(o=n).plus(g(this,o,a+2)).times(.5),m(o.d).slice(0,a)===(e=m(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(E(o,r+1,0),o.times(o).eq(this)){n=o;break}}else if("9999"!=e)break;a+=4}return s=!0,E(n,r)},y.times=y.mul=function(t){var e,r,n,i,o,a,u,c,l,f=this.constructor,h=this.d,d=(t=new f(t)).d;if(!this.s||!t.s)return new f(0);for(t.s*=this.s,r=this.e+t.e,(c=h.length)<(l=d.length)&&(o=h,h=d,d=o,a=c,c=l,l=a),o=[],n=a=c+l;n--;)o.push(0);for(n=l;--n>=0;){for(e=0,i=c+n;i>n;)u=o[i]+d[n]*h[i-n-1]+e,o[i--]=u%1e7|0,e=u/1e7|0;o[i]=(o[i]+e)%1e7|0}for(;!o[--a];)o.pop();return e?++r:o.shift(),t.d=o,t.e=r,s?E(t,f.precision):t},y.toDecimalPlaces=y.todp=function(t,e){var r=this,n=r.constructor;
1return(r=new n(r),void 0===t)?r:(v(t,0,1e9),void 0===e?e=n.rounding:v(e,0,8),E(r,t+_(r)+1,e))},y.toExponential=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=T(n,!0):(v(t,0,1e9),void 0===e?e=i.rounding:v(e,0,8),r=T(n=E(new i(n),t+1,e),!0,t+1)),r},y.toFixed=function(t,e){var r,n,i=this.constructor;return void 0===t?T(this):(v(t,0,1e9),void 0===e?e=i.rounding:v(e,0,8),r=T((n=E(new i(this),t+_(this)+1,e)).abs(),!1,t+_(n)+1),this.isneg()&&!this.isZero()?"-"+r:r)},y.toInteger=y.toint=function(){var t=this.constructor;return E(new t(this),_(this)+1,t.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(t){var e,r,n,i,a,c,l=this,h=l.constructor,d=+(t=new h(t));if(!t.s)return new h(o);if(!(l=new h(l)).s){if(t.s<1)throw Error(u+"Infinity");return l}if(l.eq(o))return l;if(n=h.precision,t.eq(o))return E(l,n);if(c=(e=t.e)>=(r=t.d.length-1),a=l.s,c){if((r=d<0?-d:d)<=0x1fffffffffffff){for(i=new h(o),e=Math.ceil(n/7+4),s=!1;r%2&&j((i=i.times(l)).d,e),0!==(r=f(r/2));)j((l=l.times(l)).d,e);return s=!0,t.s<0?new h(o).div(i):E(i,n)}}else if(a<0)throw Error(u+"NaN");return a=a<0&&1&t.d[Math.max(e,r)]?-1:1,l.s=1,s=!1,i=t.times(S(l,n+12)),s=!0,(i=w(i)).s=a,i},y.toPrecision=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?(r=_(i),n=T(i,r<=o.toExpNeg||r>=o.toExpPos)):(v(t,1,1e9),void 0===e?e=o.rounding:v(e,0,8),r=_(i=E(new o(i),t,e)),n=T(i,t<=r||r<=o.toExpNeg,t)),n},y.toSignificantDigits=y.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(v(t,1,1e9),void 0===e?e=r.rounding:v(e,0,8)),E(new r(this),t,e)},y.toString=y.valueOf=y.val=y.toJSON=function(){var t=_(this),e=this.constructor;return T(this,t<=e.toExpNeg||t>=e.toExpPos)};var g=function(){function t(t,e){var r,n=0,i=t.length;for(t=t.slice();i--;)r=t[i]*e+n,t[i]=r%1e7|0,n=r/1e7|0;return n&&t.unshift(n),t}function e(t,e,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=+(t[r]<e[r]),t[r]=1e7*n+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,i,o,a){var s,c,l,f,h,d,p,y,b,v,m,g,w,x,O,S,A,I,T=n.constructor,j=n.s==i.s?1:-1,P=n.d,M=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(u+"Division by zero");for(l=0,c=n.e-i.e,A=M.length,O=P.length,y=(p=new T(j)).d=[];M[l]==(P[l]||0);)++l;if(M[l]>(P[l]||0)&&--c,(g=null==o?o=T.precision:a?o+(_(n)-_(i))+1:o)<0)return new T(0);if(g=g/7+2|0,l=0,1==A)for(f=0,M=M[0],g++;(l<O||f)&&g--;l++)w=1e7*f+(P[l]||0),y[l]=w/M|0,f=w%M|0;else{for((f=1e7/(M[0]+1)|0)>1&&(M=t(M,f),P=t(P,f),A=M.length,O=P.length),x=A,v=(b=P.slice(0,A)).length;v<A;)b[v++]=0;(I=M.slice()).unshift(0),S=M[0],M[1]>=1e7/2&&++S;do f=0,(s=e(M,b,A,v))<0?(m=b[0],A!=v&&(m=1e7*m+(b[1]||0)),(f=m/S|0)>1?(f>=1e7&&(f=1e7-1),d=(h=t(M,f)).length,v=b.length,1==(s=e(h,b,d,v))&&(f--,r(h,A<d?I:M,d))):(0==f&&(s=f=1),h=M.slice()),(d=h.length)<v&&h.unshift(0),r(b,h,v),-1==s&&(v=b.length,(s=e(M,b,A,v))<1&&(f++,r(b,A<v?I:M,v))),v=b.length):0===s&&(f++,b=[0]),y[l++]=f,s&&b[0]?b[v++]=P[x]||0:(b=[P[x]],v=1);while((x++<O||void 0!==b[0])&&g--)}return y[0]||y.shift(),p.e=c,E(p,a?o+_(p)+1:o)}}();function w(t,e){var r,n,i,a,u,c=0,f=0,d=t.constructor,p=d.precision;if(_(t)>16)throw Error(l+_(t));if(!t.s)return new d(o);for(null==e?(s=!1,u=p):u=e,a=new d(.03125);t.abs().gte(.1);)t=t.times(a),f+=5;for(u+=Math.log(h(2,f))/Math.LN10*2+5|0,r=n=i=new d(o),d.precision=u;;){if(n=E(n.times(t),u),r=r.times(++c),m((a=i.plus(g(n,r,u))).d).slice(0,u)===m(i.d).slice(0,u)){for(;f--;)i=E(i.times(i),u);return d.precision=p,null==e?(s=!0,E(i,p)):i}i=a}}function _(t){for(var e=7*t.e,r=t.d[0];r>=10;r/=10)e++;return e}function x(t,e,r){if(e>t.LN10.sd())throw s=!0,r&&(t.precision=r),Error(u+"LN10 precision limit exceeded");return E(new t(t.LN10),e)}function O(t){for(var e="";t--;)e+="0";return e}function S(t,e){var r,n,i,a,c,l,f,h,d,p=1,y=t,b=y.d,v=y.constructor,w=v.precision;if(y.s<1)throw Error(u+(y.s?"NaN":"-Infinity"));if(y.eq(o))return new v(0);if(null==e?(s=!1,h=w):h=e,y.eq(10))return null==e&&(s=!0),x(v,h);if(v.precision=h+=10,n=(r=m(b)).charAt(0),!(15e14>Math.abs(a=_(y))))return f=x(v,h+2,w).times(a+""),y=S(new v(n+"."+r.slice(1)),h-10).plus(f),v.precision=w,null==e?(s=!0,E(y,w)):y;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=m((y=y.times(t)).d)).charAt(0),p++;for(a=_(y),n>1?(y=new v("0."+r),a++):y=new v(n+"."+r.slice(1)),l=c=y=g(y.minus(o),y.plus(o),h),d=E(y.times(y),h),i=3;;){if(c=E(c.times(d),h),m((f=l.plus(g(c,new v(i),h))).d).slice(0,h)===m(l.d).slice(0,h))return l=l.times(2),0!==a&&(l=l.plus(x(v,h+2,w).times(a+""))),l=g(l,new v(p),h),v.precision=w,null==e?(s=!0,E(l,w)):l;l=f,i+=2}}function A(t,e){var r,n,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(n,i)){if(i-=n,t.e=f((r=r-n-1)/7),t.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=7;n<i;)t.d.push(+e.slice(n,n+=7));n=7-(e=e.slice(n)).length}else n-=i;for(;n--;)e+="0";if(t.d.push(+e),s&&(t.e>
1p||t.e<-p))throw Error(l+r)}else t.s=0,t.e=0,t.d=[0];return t}function E(t,e,r){var n,i,o,a,u,c,d,y,b=t.d;for(a=1,o=b[0];o>=10;o/=10)a++;if((n=e-a)<0)n+=7,i=e,d=b[y=0];else{if((y=Math.ceil((n+1)/7))>=(o=b.length))return t;for(a=1,d=o=b[y];o>=10;o/=10)a++;n%=7,i=n-7+a}if(void 0!==r&&(u=d/(o=h(10,a-i-1))%10|0,c=e<0||void 0!==b[y+1]||d%o,c=r<4?(u||c)&&(0==r||r==(t.s<0?3:2)):u>5||5==u&&(4==r||c||6==r&&(n>0?i>0?d/h(10,a-i):0:b[y-1])%10&1||r==(t.s<0?8:7))),e<1||!b[0])return c?(o=_(t),b.length=1,e=e-o-1,b[0]=h(10,(7-e%7)%7),t.e=f(-e/7)||0):(b.length=1,b[0]=t.e=t.s=0),t;if(0==n?(b.length=y,o=1,y--):(b.length=y+1,o=h(10,7-n),b[y]=i>0?(d/h(10,a-i)%h(10,i)|0)*o:0),c)for(;;)if(0==y){1e7==(b[0]+=o)&&(b[0]=1,++t.e);break}else{if(b[y]+=o,1e7!=b[y])break;b[y--]=0,o=1}for(n=b.length;0===b[--n];)b.pop();if(s&&(t.e>p||t.e<-p))throw Error(l+_(t));return t}function I(t,e){var r,n,i,o,a,u,c,l,f,h,d=t.constructor,p=d.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new d(t),s?E(e,p):e;if(c=t.d,h=e.d,n=e.e,l=t.e,c=c.slice(),a=l-n){for((f=a<0)?(r=c,a=-a,u=h.length):(r=h,n=l,u=c.length),a>(i=Math.max(Math.ceil(p/7),u)+2)&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for((f=(i=c.length)<(u=h.length))&&(u=i),i=0;i<u;i++)if(c[i]!=h[i]){f=c[i]<h[i];break}a=0}for(f&&(r=c,c=h,h=r,e.s=-e.s),u=c.length,i=h.length-u;i>0;--i)c[u++]=0;for(i=h.length;i>a;){if(c[--i]<h[i]){for(o=i;o&&0===c[--o];)c[o]=1e7-1;--c[o],c[i]+=1e7}c[i]-=h[i]}for(;0===c[--u];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(e.d=c,e.e=n,s?E(e,p):e):new d(0)}function T(t,e,r){var n,i=_(t),o=m(t.d),a=o.length;return e?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+O(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+O(-i-1)+o,r&&(n=r-a)>0&&(o+=O(n))):i>=a?(o+=O(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+O(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=O(n))),t.s<0?"-"+o:o}function j(t,e){if(t.length>e)return t.length=e,!0}function P(t){if(!t||"object"!=typeof t)throw Error(u+"Object expected");var e,r,n,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if(void 0!==(n=t[r=i[e]]))if(f(n)===n&&n>=i[e+1]&&n<=i[e+2])this[r]=n;else throw Error(c+r+": "+n);if(void 0!==(n=t[r="LN10"]))if(n==Math.LN10)this[r]=new this(n);else throw Error(c+r+": "+n);return this}(a=function t(e){var r,n,i;function o(t){if(!(this instanceof o))return new o(t);if(this.constructor=o,t instanceof o){this.s=t.s,this.e=t.e,this.d=(t=t.d)?t.slice():t;return}if("number"==typeof t){if(0*t!=0)throw Error(c+t);if(t>0)this.s=1;else if(t<0)t=-t,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(t===~~t&&t<1e7){this.e=0,this.d=[t];return}return A(this,t.toString())}if("string"!=typeof t)throw Error(c+t);if(45===t.charCodeAt(0)?(t=t.slice(1),this.s=-1):this.s=1,d.test(t))A(this,t);else throw Error(c+t)}if(o.prototype=y,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=t,o.config=o.set=P,void 0===e&&(e={}),e)for(r=0,i=["precision","rounding","toExpNeg","toExpPos","LN10"];r<i.length;)e.hasOwnProperty(n=i[r++])||(e[n]=this[n]);return o.config(e),o}(a)).default=a.Decimal=a,o=new a(1),void 0===(n=(function(){return a}).call(e,r,e,t))||(t.exports=n)}(0)},35536:(t,e,r)=>{var n=r(66521);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=!!e,e}},36187:(t,e,r)=>{var n=r(79364);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return -1}},36315:(t,e,r)=>{t.exports=r(43622)(r(19031),"Map")},36827:(t,e,r)=>{var n=r(89950),i=r(93007),o=r(28654);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==n(t)}},37114:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},37335:(t,e,r)=>{var n=r(5051),i=r(39234),o=r(69525);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},37973:(t,e,r)=>{t.exports=r(43622)(r(19031),"Set")},39004:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},39234:(t,e,r)=>{var n=r(33854),i=r(69750);t.exports=function(t){for(var e=i(t),r=e.length;r--;){var o=e[r],a=t[o];e[r]=[o,a,n(a)]}return e}},39824:t=>{var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},39884:(t,e,r)=>{"use strict";r.d(e,{s:()=>N});var n=r(14232),i=r(19850),o=r.n(i),a=r(69241),s=r(18947),u=r(35474),c=r(92165),l=r(4641);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
1function h(){return(h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function b(t,e){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function v(t,e,r){return(e=m(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function m(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=f(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==f(e)?e:e+""}var g=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=y(t),function(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,p()?Reflect.construct(t,e||[],y(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&b(r,t),e=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,r=32/6,i=32/3,o=t.inactive?e:t.color;if("plainline"===t.type)return n.createElement("line",{strokeWidth:4,fill:"none",stroke:o,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:16,x2:32,y2:16,className:"recharts-legend-icon"});if("line"===t.type)return n.createElement("path",{strokeWidth:4,fill:"none",stroke:o,d:"M0,".concat(16,"h").concat(i,"\n A").concat(r,",").concat(r,",0,1,1,").concat(2*i,",").concat(16,"\n H").concat(32,"M").concat(2*i,",").concat(16,"\n A").concat(r,",").concat(r,",0,1,1,").concat(i,",").concat(16),className:"recharts-legend-icon"});if("rect"===t.type)return n.createElement("path",{stroke:"none",fill:o,d:"M0,".concat(4,"h").concat(32,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(n.isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach(function(e){v(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},t);return delete a.legendIcon,n.cloneElement(t.legendIcon,a)}return n.createElement(c.i,{fill:o,cx:16,cy:16,size:32,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,r=e.payload,i=e.iconSize,c=e.layout,f=e.formatter,d=e.inactiveColor,p={x:0,y:0,width:32,height:32},y={display:"horizontal"===c?"inline-block":"block",marginRight:10},b={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map(function(e,r){var c=e.formatter||f,m=(0,a.A)(v(v({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",e.inactive));if("none"===e.type)return null;var g=o()(e.value)?null:e.value;(0,s.R)(!o()(e.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var w=e.inactive?d:e.color;return n.createElement("li",h({className:m,style:y,key:"legend-item-".concat(r)},(0,l.XC)(t.props,e,r)),n.createElement(u.u,{width:i,height:i,viewBox:p,style:b},t.renderIcon(e)),n.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},c?c(g,e,r):g))})}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,i=t.align;return e&&e.length?n.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===r?i:"left"}},this.renderItems()):null}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,m(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(n.PureComponent);v(g,"displayName","Legend"),v(g,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var w=r(59421),_=r(82514);function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var O=["ref"];function S(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function A(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?S(Object(r),!0).forEach(function(e){P(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function E(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,M(n.key),n)}}function I(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(I=function(){return!!t})()}function T(t){return(T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function j(t,e){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function P(t,e,r){return(e=M(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function M(t){var e=function(t,e){if("object"!=x(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=x(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==x(e)?e:e+""}function D(t){return t.value}var N=function(t){var e,r;function i(){var t,e,r;if(!(this instanceof i))throw TypeError("Cannot call a class as a function");for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return e=i,r=[].concat(o),e=T(e),P(t=function(t,e){if(e&&("object"===x(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,I()?Reflect.construct(e,r||[],T(this).constructor):e.apply(this,r)),"lastBoundingBox",{width:-1,height:-1}),t}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&j(i,t),e=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();return t.height=this.wrapperNode.offsetHeight,t.width=this.wrapperNode.offsetWidth,t}return null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate,e=this.getBBox();e?(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?A({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,i=n.layout,o=n.align,a=n.verticalAlign,s=n.margin,u=n.chartWidth,c=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===o&&"vertical"===i?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===o?{right:s&&s.right||0}:{left:s&&s.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((c||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),A(A({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,i=e.width,o=e.height,a=e.wrapperStyle,s=e.payloadUniqBy,u=e.payload,c=A(A({position:"absolute",width:i||"auto",height:o||"auto"},this.getDefaultPosition(a)),a);return n.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(e){t.wrapperNode=e}},function(t,e){if(n.isValidElement(t))return n.cloneElement(t,e);if("function"==typeof t)return n.createElement(t,e);e.ref;var r=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(e,O);return n.createElement(g,r)}(r,A(A({},this.props),{},{payload:(0,_.s)(u,s,D)})))}}],r=[{key:"getWithHeight",value:function(t,e){var r=A(A({},this.defaultProps),t.props).layout;return"vertical"===r&&(0,w.Et)(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],e&&E(i.prototype,e),r&&E(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i}(n.PureComponent);P(N,"displayName","Legend"),P(N,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},39913:(t,e,r)=>{var n=r(67895);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},40087:(t,e,r)=>{t.exports=r(19031)["__core-js_shared__"]},41946:(t,e,r)=>{var n=r(71266);t.exports=function(t,e){return n(t,e)}},43622:(t,e,r)=>{var n=r(46141),i=r(49318);t.exports=function(t,e){var r=i(t,e);return n(r)?r:void 0}},44577:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},45073:(t,e,r)=>{"use strict";r.d(e,{yp:()=>D,GG:()=>F,NE:()=>N,nZ:()=>k,xQ:()=>B});var n=r(14232),i=r(19850),o=r.n(i),a=r(11565),s=r.n(a),u=r(17518),c=r.n(u),l=r(41946),f=r.n(l),h=r(69990),d=r(69241),p=r(77340),y=r(72804);function b(t){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(){return(v=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function w(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=b(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=b(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==b(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var _=function(t,e,r,n,i){var o,a=r-n;return"M ".concat(t,",").concat(e)+"L ".concat(t+r,",").concat(e)+"L ".concat(t+r-a/2,",").concat(e+i)+"L ".concat(t+r-a/2-n,",").concat(e+i)+"L ".concat(t,",").concat(e," Z")},x={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},O=function(t){var e,r=w(w({},x),t),i=(0,n.useRef)(),o=function(t){if(Array.isArray(t))return t}(e=(0,n.useState)(-1))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{o=(r=r.call(t)).next,!1;for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,2)||function(t,e){if(t){if("string"==typeof t)return m(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(t,e)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=o[0],s=o[1];(0,n.useEffect)(function(){if(i.current&&i.current.getTotalLength)try{var t=i.current.getTotalLength();t&&s(t)}catch(t){}},[]);var u=r.x,c=r.y,l=r.upperWidth,f=r.lowerWidth,h=r.height,b=r.className,g=r.animationEasing,O=r.animationDuration,S=r.animationBegin,A=r.isUpdateAnimationActive;if(u!==+u||c!==+c||l!==+l||f!==+f||h!==+h||0===l&&0===f||0===h)return null;var E=(0,d.A)("recharts-trapezoid",b);return A?n.createElement(p.Ay,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:h,x:u,y:c},to:{upperWidth:l,lowerWidth:f,height:h,x:u,y:c},duration:O,animationEasing:g,isActive:A},function(t){var e=t.upperWidth,o=t.lowerWidth,s=t.height,u=t.x,c=t.y;return n.createElement(p.Ay,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:O,easing:g},n.createElement("path",v({},(0,y.J9)(r,!0),{className:E,d:_(u,c,e,o,s),ref:i})))}):n.createElement("g",null,n.createElement("path",v({},(0,y.J9)(r,!0),{className:E,d:_(u,c,l,f,h)})))},S=r(66387),A=r(51572),E=r(92165),I=["option","shapeType","propTransformer","activeClassName","isActive"];function T(t){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function P(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?j(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=T(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=T(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==T(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function M(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return n.createElement(h.M,r);case"trapezoid":return n.createElement(O,r);case"sector":return n.createElement(S.h,r);case"symbols":if("symbols"===e)return n.createElement(E.i,r);break;default:return null}}function D(t){var e,r=t.option,i=t.shapeType,a=t.propTransformer,u=t.activeClassName,l=t.isActive,f=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,I);if((0,n.isValidElement)(r))e=(0,n.cloneElement)(r,P(P({},f),(0,n.isValidElement)(r)?r.props:r));else if(o()(r))e=r(f);else if(s()(r)&&!c()(r)){var h=(void 0===a?function(t,e){return P(P({},e),t)}:a)(r,f);e=n.createElement(M,{shapeType:i,elementProps:h})}else e=n.createElement(M,{shapeType:i,elementProps:f});return l?n.createElement(A.W,{className:void 0===u?"recharts-active-shape":u},e):e}function N(t,e){return null!=e&&"trapezoids"in t.props}function k(t,e){return null!=e&&"sectors"in t.props}function B(t,e){return null!=e&&"points"in t.props}function C(t,e){var r,n,i=t.x===(null==e||null==(r=e.labelViewBox)?void 0:r.x)||t.x===e.x,o=t.y===(null==e||null==(n=e.labelViewBox)?void 0:n.y)||t.y===e.y;return i&&o}function R(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function L(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function F(t){var e,r,n,i=t.activeTooltipItem,o=t.graphicalItem,a=t.itemData,s=(N(o,i)?e="trapezoids":k(o,i)?e="sectors":B(o,i)&&(e="points"),e),u=N(o,i)?null==(r=i.tooltipPayload)||null==(r=r[0])||null==(r=r.payload)?void 0:r.payload:k(o,i)?null==(n=i.tooltipPayload)||null==(n=n[0])||null==(n=n.payload)?void 0:n.payload:B(o,i)?i.payload:{},c=a.filter(function(t,e){var r=f()(u,t),n=o.props[s].filter(function(t){var e;return(N(o,i)?e=C:k(o,i)?e=R:B(o,i)&&(e=L),e)(t,i)}),a=o.props[s].indexOf(n[n.length-1]);return r&&e===a});return a.indexOf(c[c.length-1])}},45261:(t,e,r)=>{var n=r(36187);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},45457:(t,e,r)=>{var n=r(43622);t.exports=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},45705:(t,e,r)=>{var n=r(36187);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},46141:(t,e,r)=>{var n=r(19850),i=r(98506),o=r(98825),a=r(82675),s=/^\[object .+?Constructor\]$/,u=Object.prototype,c=Function.prototype.toString,l=u.hasOwnProperty,f=RegExp("^"+c.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(n(t)?f:s).test(a(t))}},47129:(t,e,r)=>{var n=r(66521);t.exports=function(t,e){var r=n(this,t),i=r.size;return r.set(t,e),this.size+=+(r.size!=i),this}},47871:(t,e,r)=>{var n=r(37335),i=r(60490),o=r(27148),a=r(93007),s=r(89059);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):n(t):s(t)}},48073:(t,e,r)=>{"use strict";r.d(e,{g:()=>c});var n=r(39884),i=r(4886),o=r(72804);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?s(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var c=function(t){var e,r=t.children,a=t.formattedGraphicalItems,s=t.legendWidth,c=t.legendContent,l=(0,o.BU)(r,n.s);if(!l)return null;var f=n.s.defaultProps,h=void 0!==f?u(u({},f),l.props):{};return e=l.props&&l.props.payload?l.props&&l.props.payload:"children"===c?(a||[]).reduce(function(t,e){var r=e.item,n=e.props,i=n.sectors||n.data||[];return t.concat(i.map(function(t){return{type:l.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}}))},[]):(a||[]).map(function(t){var e=t.item,r=e.type.defaultProps,n=void 0!==r?u(u({},r),e.props):{},o=n.dataKey,a=n.name,s=n.legendType;return{inactive:n.hide,dataKey:o,type:h.iconType||s||"square",color:(0,i.Ps)(e),value:a||o,payload:n}}),u(u(u({},h),n.s.getWithHeight(l,s)),{},{payload:e,item:l})}},48116:(t,e,r)=>{"use strict";r.d(e,{c:()=>u});var n=r(14232),i=r(69241),o=r(4641),a=r(72804);function s(){return(s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var u=function(t){var e=t.cx,r=t.cy,u=t.r,c=t.className,l=(0,i.A)("recharts-dot",c);return e===+e&&r===+r&&u===+u?n.createElement("circle",s({},(0,a.J9)(t,!1),(0,o._U)(t),{className:l,cx:e,cy:r,r:u})):null}},48217:(t,e,r)=>{var n=r(2609),i=r(95318);t.exports=function(t,e){return null!=t&&i(t,e,n)}},48668:(t,e,r)=>{var n=r(75998);t.exports=function(t){var e=n(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}},48872:(t,e,r)=>{var n=r(22225),i=r(94806),o=r(69750);t.exports=function(t){return n(t,o,i)}},48894:(t,e,r)=>{var n=r(85590),i=r(28654),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")}},49035:t=>{t.exports=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return -1}},49318:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},50092:(t,e,r)=>{var n=r(27023),i=r(65930),o=r(60524);t.exports=function(t){return function(e,r,a){return a&&"number"!=typeof a&&i(e,r,a)&&(r=a=void 0),e=o(e),void 0===r?(r=e,e=0):r=o(r),a=void 0===a?e<r?1:-1:o(a),n(e,r,a,t)}}},50224:(t,e,r)=>{t.exports=r(43622)(Object,"create")},51480:t=>{var e=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},51572:(t,e,r)=>{"use strict";r.d(e,{W:()=>u});var n=r(14232),i=r(69241),o=r(72804),a=["children","className"];function s(){return(s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var u=n.forwardRef(function(t,e){var r=t.children,u=t.className,c=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,a),l=(0,i.A)("recharts-layer",u);return n.createElement("g",s({className:l},(0,o.J9)(c,!0),{ref:e}),r)})},52141:(t,e,r)=>{var n=r(76014),i=1/0;t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},52673:t=>{t.exports=function(t){return function(e,r,n){for(var i=-1,o=Object(e),a=n(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===r(o[u],u,o))break}return e}}},52742:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},52782:(t,e,r)=>{var n=r(88046),i=r(98825),o=r(76014),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return a;
1if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=u.test(t);return r||c.test(t)?l(t.slice(2),r?2:8):s.test(t)?a:+t}},53281:(t,e,r)=>{"use strict";r.d(e,{Q:()=>u});var n=r(53371),i=r(56321),o=r(22333),a=r(24354),s=r(66743),u=(0,n.gu)({chartName:"AreaChart",GraphicalChild:i.G,axisComponents:[{axisType:"xAxis",AxisComp:o.W},{axisType:"yAxis",AxisComp:a.h}],formatAxisMap:s.pr})},53371:(t,e,r)=>{"use strict";r.d(e,{gu:()=>eN});var n=r(14232),i=r(19809),o=r.n(i),a=r(19850),s=r.n(a),u=r(63415),c=r.n(u),l=r(7766),f=r.n(l),h=r(5323),d=r.n(h),p=r(80782),y=r.n(p),b=r(69241),v=r(28752),m=r(35474),g=r(51572),w=r(1874),_=r(39884),x=r(48116),O=r(69990),S=r(72804),A=r(21641),E=r(88172),I=r(4886),T=r(59421);function j(t){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function P(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function M(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?P(Object(r),!0).forEach(function(e){D(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function D(t,e,r){var n;return(n=function(t,e){if("object"!=j(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=j(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==j(n)?n:n+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var N=["Webkit","Moz","O","ms"],k=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,function(t){return t.toUpperCase()}),n=N.reduce(function(t,n){return M(M({},t),{},D({},n+r,e))},{});return n[t]=e,n};function B(t){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function C(){return(C=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function R(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function L(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?R(Object(r),!0).forEach(function(e){W(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function F(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,$(n.key),n)}}function U(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(U=function(){return!!t})()}function z(t){return(z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function V(t,e){return(V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function W(t,e,r){return(e=$(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $(t){var e=function(t,e){if("object"!=B(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=B(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==B(e)?e:e+""}var Y=function(t){var e=t.data,r=t.startIndex,n=t.endIndex,i=t.x,o=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var s=e.length,u=(0,A.z)().domain(c()(0,s)).range([i,i+o-a]),l=u.domain().map(function(t){return u(t)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(n),scale:u,scaleValues:l}},H=function(t){return t.changedTouches&&!!t.changedTouches.length},G=function(t){var e,r;function i(t){var e,r,n;if(!(this instanceof i))throw TypeError("Cannot call a class as a function");return r=i,n=[t],r=z(r),W(e=function(t,e){if(e&&("object"===B(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,U()?Reflect.construct(r,n||[],z(this).constructor):r.apply(this,n)),"handleDrag",function(t){e.leaveTimer&&(clearTimeout(e.leaveTimer),e.leaveTimer=null),e.state.isTravellerMoving?e.handleTravellerMove(t):e.state.isSlideMoving&&e.handleSlideDrag(t)}),W(e,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleDrag(t.changedTouches[0])}),W(e,"handleDragEnd",function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var t=e.props,r=t.endIndex,n=t.onDragEnd,i=t.startIndex;null==n||n({endIndex:r,startIndex:i})}),e.detachDragEndListener()}),W(e,"handleLeaveWrapper",function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))}),W(e,"handleEnterSlideOrTraveller",function(){e.setState({isTextActive:!0})}),W(e,"handleLeaveSlideOrTraveller",function(){e.setState({isTextActive:!1})}),W(e,"handleSlideDragStart",function(t){var r=H(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),e.attachDragEndListener()}),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(e,"startX"),endX:e.handleTravellerDragStart.bind(e,"endX")},e.state={},e}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&V(i,t),e=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,r=t.endX,n=this.state.scaleValues,o=this.props,a=o.gap,s=o.data.length-1,u=Math.min(e,r),c=Math.max(e,r),l=i.getIndexInRange(n,u),f=i.getIndexInRange(n,c);return{startIndex:l-l%a,endIndex:f===s?s:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,i=e.dataKey,o=(0,I.kr)(r[t],i,t);return s()(n)?n(o,t):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,i=e.endX,o=this.props,a=o.x,s=o.width,u=o.travellerWidth,c=o.startIndex,l=o.endIndex,f=o.onChange,h=t.pageX-r;h>0?h=Math.min(h,a+s-u-i,a+s-u-n):h<0&&(h=Math.max(h,a-n,a-i));var d=this.getIndex({startX:n+h,endX:i+h});(d.startIndex!==c||d.endIndex!==l)&&f&&f(d),this.setState({startX:n+h,endX:i+h,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=H(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,i=e.endX,o=e.startX,a=this.state[n],s=this.props,u=s.x,c=s.width,l=s.travellerWidth,f=s.onChange,h=s.gap,d=s.data,p={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,u+c-l-a):y<0&&(y=Math.max(y,u-a)),p[n]=a+y;var b=this.getIndex(p),v=b.startIndex,m=b.endIndex,g=function(){var t=d.length-1;return"startX"===n&&(i>o?v%h==0:m%h==0)||!!(i<o)&&m===t||"endX"===n&&(i>o?m%h==0:v%h==0)||!!(i>o)&&m===t};this.setState(W(W({},n,a+y),"brushMoveStartX",t.pageX),function(){f&&g()&&f(b)})}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,i=n.scaleValues,o=n.startX,a=n.endX,s=this.state[e],u=i.indexOf(s);if(-1!==u){var c=u+t;if(-1!==c&&!(c>=i.length)){var l=i[c];"startX"===e&&l>=a||"endX"===e&&l<=o||this.setState(W({},e,l),function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.
1state.endX}))})}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,i=t.width,o=t.height,a=t.fill,s=t.stroke;return n.createElement("rect",{stroke:s,fill:a,x:e,y:r,width:i,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,i=t.width,o=t.height,a=t.data,s=t.children,u=t.padding,c=n.Children.only(s);return c?n.cloneElement(c,{x:e,y:r,width:i,height:o,margin:u,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(t,e){var r,o,a=this,s=this.props,u=s.y,c=s.travellerWidth,l=s.height,f=s.traveller,h=s.ariaLabel,d=s.data,p=s.startIndex,y=s.endIndex,b=Math.max(t,this.props.x),v=L(L({},(0,S.J9)(this.props,!1)),{},{x:b,y:u,width:c,height:l}),m=h||"Min value: ".concat(null==(r=d[p])?void 0:r.name,", Max value: ").concat(null==(o=d[y])?void 0:o.name);return n.createElement(g.W,{tabIndex:0,role:"slider","aria-label":m,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},i.renderTraveller(f,v))}},{key:"renderSlide",value:function(t,e){var r=this.props,i=r.y,o=r.height,a=r.stroke,s=r.travellerWidth,u=Math.min(t,e)+s,c=Math.max(Math.abs(e-t)-s,0);return n.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:u,y:i,width:c,height:o})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,i=t.y,o=t.height,a=t.travellerWidth,s=t.stroke,u=this.state,c=u.startX,l=u.endX,f={pointerEvents:"none",fill:s};return n.createElement(g.W,{className:"recharts-brush-texts"},n.createElement(E.E,C({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,l)-5,y:i+o/2},f),this.getTextOfTick(e)),n.createElement(E.E,C({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,l)+a+5,y:i+o/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,i=t.children,o=t.x,a=t.y,s=t.width,u=t.height,c=t.alwaysShowText,l=this.state,f=l.startX,h=l.endX,d=l.isTextActive,p=l.isSlideMoving,y=l.isTravellerMoving,v=l.isTravellerFocused;if(!e||!e.length||!(0,T.Et)(o)||!(0,T.Et)(a)||!(0,T.Et)(s)||!(0,T.Et)(u)||s<=0||u<=0)return null;var m=(0,b.A)("recharts-brush",r),w=1===n.Children.count(i),_=k("userSelect","none");return n.createElement(g.W,{className:m,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:_},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(f,h),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(h,"endX"),(d||p||y||v||c)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,i=t.width,o=t.height,a=t.stroke,s=Math.floor(r+o/2)-1;return n.createElement(n.Fragment,null,n.createElement("rect",{x:e,y:r,width:i,height:o,fill:a,stroke:"none"}),n.createElement("line",{x1:e+1,y1:s,x2:e+i-1,y2:s,fill:"none",stroke:"#fff"}),n.createElement("line",{x1:e+1,y1:s+2,x2:e+i-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){var r;return n.isValidElement(t)?n.cloneElement(t,e):s()(t)?t(e):i.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,s=t.startIndex,u=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return L({prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n},r&&r.length?Y({data:r,width:n,x:i,travellerWidth:o,startIndex:s,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+n-o]);var c=e.scale.domain().map(function(t){return e.scale(t)});return{prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=t.length,n=0,i=r-1;i-n>1;){var o=Math.floor((n+i)/2);t[o]>e?i=o:n=o}return e>=t[i]?i:n}}],e&&F(i.prototype,e),r&&F(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i}(n.PureComponent);W(G,"displayName","Brush"),W(G,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var q=r(21433),K=r(48073),X=r(19283),J=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},Q=r(66743),Z=r(18947);function tt(){return(tt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function te(t){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function tn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tr(Object(r),!0).forEach(function(e){ts(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tr(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ti(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ti=function(){return!!t})()}function to(t){return(to=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ta(t,e){return(ta=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ts(t,e,r){return(e=tu(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tu(t){var e=function(t,e){if("object"!=te(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=te(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==te(e)?e:e+""}var tc=function(t){var e=t.x,r=t.y,n=t.xAxis,i=t.yAxis,o=(0,Q.P2)({x:n.scale,y:i.scale}),a=o.apply({x:e,y:r},{bandAware:!0});return J(t,"discard")&&!o.isInRange(a)?null:a},tl=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=to(t),function(t,e){if(e&&("object"===te(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,ti()?Reflect.construct(t,e||[],to(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&ta(r,t),e=[{key:"render",value:function(){var t=this.props,e=t.x,i=t.y,o=t.r,a=t.alwaysShow,s=t.clipPathId,u=(0,T.vh)(e),c=(0,T.vh)(i);if((0,Z.R)(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var l=tc(this.props);if(!l)return null;var f=l.x,h=l.y,d=this.props,p=d.shape,y=d.className,v=tn(tn({clipPath:J(this.props,"hidden")?"url(#".concat(s,")"):void 0},(0,S.J9)(this.props,!0)),{},{cx:f,cy:h});return n.createElement(g.W,{className:(0,b.A)("recharts-reference-dot",y)},r.renderDot(p,v),X.J.renderCallByParent(this.props,{x:f-o,y:h-o,width:2*o,height:2*o}))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,tu(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(n.Component);ts(tl,"displayName","ReferenceDot"),ts(tl,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),ts(tl,"renderDot",function(t,e){var r;return n.isValidElement(t)?n.cloneElement(t,e):s()(t)?t(e):n.createElement(x.c,tt({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))});
1var tf=r(57242),th=r.n(tf),td=r(93680);function tp(t){return(tp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ty(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ty=function(){return!!t})()}function tb(t){return(tb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function tv(t,e){return(tv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function tm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function tg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tm(Object(r),!0).forEach(function(e){tw(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tm(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function tw(t,e,r){return(e=t_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function t_(t){var e=function(t,e){if("object"!=tp(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=tp(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==tp(e)?e:e+""}function tx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function tO(){return(tO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var tS=function(t,e){var r;return n.isValidElement(t)?n.cloneElement(t,e):s()(t)?t(e):n.createElement("line",tO({},e,{className:"recharts-reference-line-line"}))},tA=function(t,e,r,n,i,o,a,s,u){var c=i.x,l=i.y,f=i.width,h=i.height;if(r){var d=u.y,p=t.y.apply(d,{position:o});if(J(u,"discard")&&!t.y.isInRange(p))return null;var y=[{x:c+f,y:p},{x:c,y:p}];return"left"===s?y.reverse():y}if(e){var b=u.x,v=t.x.apply(b,{position:o});if(J(u,"discard")&&!t.x.isInRange(v))return null;var m=[{x:v,y:l+h},{x:v,y:l}];return"top"===a?m.reverse():m}if(n){var g=u.segment.map(function(e){return t.apply(e,{position:o})});return J(u,"discard")&&th()(g,function(e){return!t.isInRange(e)})?null:g}return null};function tE(t){var e=t.x,r=t.y,i=t.segment,o=t.xAxisId,a=t.yAxisId,s=t.shape,u=t.className,c=t.alwaysShow,l=(0,td.Yp)(),f=(0,td.AF)(o),h=(0,td.Nk)(a),d=(0,td.sk)();if(!l||!d)return null;(0,Z.R)(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=tA((0,Q.P2)({x:f.scale,y:h.scale}),(0,T.vh)(e),(0,T.vh)(r),i&&2===i.length,d,t.position,f.orientation,h.orientation,t);if(!p)return null;var y=function(t){if(Array.isArray(t))return t}(p)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{o=(r=r.call(t)).next,!1;for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(p,2)||function(t,e){if(t){if("string"==typeof t)return tx(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tx(t,e)}}(p,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),v=y[0],m=v.x,w=v.y,_=y[1],x=_.x,O=_.y,A=tg(tg({clipPath:J(t,"hidden")?"url(#".concat(l,")"):void 0},(0,S.J9)(t,!0)),{},{x1:m,y1:w,x2:x,y2:O});return n.createElement(g.W,{className:(0,b.A)("recharts-reference-line",u)},tS(s,A),X.J.renderCallByParent(t,(0,Q.vh)({x1:m,y1:w,x2:x,y2:O}
1)))}var tI=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=tb(t),function(t,e){if(e&&("object"===tp(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,ty()?Reflect.construct(t,e||[],tb(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&tv(r,t),e=[{key:"render",value:function(){return n.createElement(tE,this.props)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,t_(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(n.Component);function tT(){return(tT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function tj(t){return(tj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function tM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tP(Object(r),!0).forEach(function(e){tB(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tP(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}tw(tI,"displayName","ReferenceLine"),tw(tI,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function tD(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(tD=function(){return!!t})()}function tN(t){return(tN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function tk(t,e){return(tk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function tB(t,e,r){return(e=tC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tC(t){var e=function(t,e){if("object"!=tj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=tj(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==tj(e)?e:e+""}var tR=function(t,e,r,n,i){var o=i.x1,a=i.x2,s=i.y1,u=i.y2,c=i.xAxis,l=i.yAxis;if(!c||!l)return null;var f=(0,Q.P2)({x:c.scale,y:l.scale}),h={x:t?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(s,{position:"start"}):f.y.rangeMin},d={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!J(i,"discard")||f.isInRange(h)&&f.isInRange(d)?(0,Q.sl)(h,d):null},tL=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=tN(t),function(t,e){if(e&&("object"===tj(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,tD()?Reflect.construct(t,e||[],tN(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&tk(r,t),e=[{key:"render",value:function(){var t=this.props,e=t.x1,i=t.x2,o=t.y1,a=t.y2,s=t.className,u=t.alwaysShow,c=t.clipPathId;(0,Z.R)(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=(0,T.vh)(e),f=(0,T.vh)(i),h=(0,T.vh)(o),d=(0,T.vh)(a),p=this.props.shape;if(!l&&!f&&!h&&!d&&!p)return null;var y=tR(l,f,h,d,this.props);if(!y&&!p)return null;var v=J(this.props,"hidden")?"url(#".concat(c,")"):void 0;return n.createElement(g.W,{className:(0,b.A)("recharts-reference-area",s)},r.renderRect(p,tM(tM({clipPath:v},(0,S.J9)(this.props,!0)),y)),X.J.renderCallByParent(this.props,y))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,tC(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(n.Component);function tF(t){return function(t){if(Array.isArray(t))return tU(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return tU(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tU(t,e)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tU(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}tB(tL,"displayName","ReferenceArea"),tB(tL,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),tB(tL,"renderRect",function(t,e){var r;return n.isValidElement(t)?n.cloneElement(t,e):s()(t)?t(e):n.createElement(O.M,tT
1({},e,{className:"recharts-reference-area-rect"}))});var tz=function(t,e,r,n,i){var o=(0,S.aS)(t,tI),a=(0,S.aS)(t,tl),s=[].concat(tF(o),tF(a)),u=(0,S.aS)(t,tL),c="".concat(n,"Id"),l=n[0],f=e;if(s.length&&(f=s.reduce(function(t,e){if(e.props[c]===r&&J(e.props,"extendDomain")&&(0,T.Et)(e.props[l])){var n=e.props[l];return[Math.min(t[0],n),Math.max(t[1],n)]}return t},f)),u.length){var h="".concat(l,"1"),d="".concat(l,"2");f=u.reduce(function(t,e){if(e.props[c]===r&&J(e.props,"extendDomain")&&(0,T.Et)(e.props[h])&&(0,T.Et)(e.props[d])){var n=e.props[h],i=e.props[d];return[Math.min(t[0],n,i),Math.max(t[1],n,i)]}return t},f)}return i&&i.length&&(f=i.reduce(function(t,e){return(0,T.Et)(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t},f)),f},tV=r(99077),tW=r(31208),t$=r(12392),tY=new(r.n(t$)()),tH="recharts.syncMouseEvents",tG=r(4641);function tq(t){return(tq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tK(t,e,r){return(e=tX(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tX(t){var e=function(t,e){if("object"!=tq(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=tq(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==tq(e)?e:e+""}var tJ=function(){var t,e;return t=function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");tK(this,"activeIndex",0),tK(this,"coordinateList",[]),tK(this,"layout","horizontal")},e=[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,i=t.container,o=void 0===i?null:i,a=t.layout,s=void 0===a?null:a,u=t.offset,c=void 0===u?null:u,l=t.mouseHandlerCallback,f=void 0===l?null:l;this.coordinateList=null!=(e=null!=n?n:this.coordinateList)?e:[],this.container=null!=o?o:this.container,this.layout=null!=s?s:this.layout,this.offset=null!=c?c:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){if("horizontal"===this.layout&&0!==this.coordinateList.length){var t,e,r=this.container.getBoundingClientRect(),n=r.x,i=r.y,o=r.height,a=this.coordinateList[this.activeIndex].coordinate,s=(null==(t=window)?void 0:t.scrollX)||0,u=(null==(e=window)?void 0:e.scrollY)||0,c=i+this.offset.top+o/2+u;this.mouseHandlerCallback({pageX:n+a+s,pageY:c})}}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,tX(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}(),tQ=r(45073),tZ=r(21664);function t0(t){return(t0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var t1=["x","y","top","left","width","height","className"];function t2(){return(t2=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function t3(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}var t4=function(t){var e=t.x,r=void 0===e?0:e,i=t.y,o=void 0===i?0:i,a=t.to
1p,s=void 0===a?0:a,u=t.left,c=void 0===u?0:u,l=t.width,f=void 0===l?0:l,h=t.height,d=void 0===h?0:h,p=t.className,y=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?t3(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=t0(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=t0(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==t0(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):t3(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({x:r,y:o,top:s,left:c,width:f,height:d},function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,t1));return(0,T.Et)(r)&&(0,T.Et)(o)&&(0,T.Et)(f)&&(0,T.Et)(d)&&(0,T.Et)(s)&&(0,T.Et)(c)?n.createElement("path",t2({},(0,S.J9)(y,!0),{className:(0,b.A)("recharts-cross",p),d:"M".concat(r,",").concat(s,"v").concat(d,"M").concat(c,",").concat(o,"h").concat(f)})):null};function t8(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,o=t.endAngle;return{points:[(0,tV.IZ)(e,r,n,i),(0,tV.IZ)(e,r,n,o)],cx:e,cy:r,radius:n,startAngle:i,endAngle:o}}var t6=r(66387);function t5(t){return(t5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function t9(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function t7(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?t9(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=t5(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=t5(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==t5(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):t9(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function et(t){var e,r,i,o,a=t.element,s=t.tooltipEventType,u=t.isActive,c=t.activeCoordinate,l=t.activePayload,f=t.offset,h=t.activeTooltipIndex,d=t.tooltipAxisBandSize,p=t.layout,y=t.chartName,v=null!=(r=a.props.cursor)?r:null==(i=a.type.defaultProps)?void 0:i.cursor;if(!a||!v||!u||!c||"ScatterChart"!==y&&"axis"!==s)return null;var m=tZ.I;if("ScatterChart"===y)o=c,m=t4;else if("BarChart"===y)e=d/2,o={stroke:"none",fill:"#ccc",x:"horizontal"===p?c.x-e:f.left+.5,y:"horizontal"===p?f.top+.5:c.y-e,width:"horizontal"===p?d:f.width-1,height:"horizontal"===p?f.height-1:d},m=O.M;else if("radial"===p){var g=t8(c),w=g.cx,_=g.cy,x=g.radius;o={cx:w,cy:_,startAngle:g.startAngle,endAngle:g.endAngle,innerRadius:x,outerRadius:x},m=t6.h}else o={points:function(t,e,r){var n,i,o,a;if("horizontal"===t)o=n=e.x,i=r.top,a=r.top+r.height;else if("vertical"===t)a=i=e.y,n=r.left,o=r.left+r.width;else if(null!=e.cx&&null!=e.cy)if("centric"!==t)return t8(e);else{var s=e.cx,u=e.cy,c=e.innerRadius,l=e.outerRadius,f=e.angle,h=(0,tV.IZ)(s,u,c,f),d=(0,tV.IZ)(s,u,l,f);n=h.x,i=h.y,o=d.x,a=d.y}return[{x:n,y:i},{x:o,y:a}]}(p,c,f)},m=tZ.I;var A=t7(t7(t7(t7({stroke:"#ccc",pointerEvents:"none"},f),o),(0,S.J9)(v,!1)),{},{payload:l,payloadIndex:h,className:(0,b.A)("recharts-tooltip-cursor",v.className)});return(0,n.isValidElement)(v)?(0,n.cloneElement)(v,A):(0,n.createElement)(m,A)}var ee=["item"],er=["children","className","width","height","style","compact","title","desc"];function en(t){return(en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ei(){return(ei=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function eo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||ef(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ea(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function es(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(es=function(){return!!t})()}function eu(t){return(eu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ec(t,e){return(ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function el(t){return function(t){if(Array.isArray(t))return eh(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ef(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ef(t,e){if(t){if("string"==typeof t)return eh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eh(t,e)}}function eh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function ed(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function ep(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ed(Object(r),!0).forEach(function(e){ey(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ed(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ey(t,e,r){return(e=eb(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eb(t){var e=function(t,e){if("object"!=en(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=en(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==en(e)?e:e+""}var ev={xAxis:["bottom","top"],yAxis:["left","right"]},em={width:"100%",height:"100%"},eg={x:0,y:0};function ew(t){return t}var e_=function(t,e,r,n){var i=e.find(function(t){return t&&t.index===r});if(i){if("horizontal"===t)return{x:i.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:i.coordinate};if("centric"===t){var o=i.coordinate,a=n.radius;return ep(ep(ep({},n),(0,tV.IZ)(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var s=i.coordinate,u=n.angle;return ep(ep(ep({},n),(0,tV.IZ)(n.cx,n.cy,s,u)),{},{angle:u,radius:s})}return eg},ex=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,i=e.dataEndIndex,o=(null!=r?r:[]).reduce(function(t,e){var r=e.props.data;return r&&r.length?[].concat(el(t),el(r)):t},[]);return o.length>0?o:t&&t.length&&(0,T.Et)(n)&&(0,T.Et)(i)?t.slice(n,i+1):[]};function eO(t){return"number"===t?[0,"auto"]:void 0}var eS=function(t,e,r,n){var i=t.graphicalItems,o=t.tooltipAxis,a=ex(e,t);return r<0||!i||!i.length||r>=a.length?null:i.reduce(function(i,s){var u,c,l=null!=(u=s.props.data)?u:e;if(l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory){var f=void 0===l?a:l;c=(0,T.eP)(f,o.dataKey,n)}else c=l&&l[r]||a[r];return c?[].concat(el(i),[(0,I.zb)(s,c)]):i},[])},eA=function(t,e,r,n){var i=n||{x:t.chartX,y:t.chartY},o="horizontal"===r?i.x:"vertical"===r?i.y:"centric"===r?i.angle:i.radius,a=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,c=(0,I.gH)(o,a,u,s);if(c>=0&&u){var l=u[c]&&u[c].value,f=eS(t,e,c,l),h=e_(r,a,c,i);return{activeTooltipIndex:c,activeLabel:l,activePayload:f,activeCoordinate:h}}return null},eE=function(t,e){var r=e.axes,n=e.graphicalItems,i=e.axisType,a=e.axisIdKey,s=e.stackGroups,u=e.dataStartIndex,l=e.dataEndIndex,f=t.layout,h=t.children,d=t.stackOffset,p=(0,I._L)(f,i);return r.reduce(function(e,r){var y=void 0!==r.type.defaultProps?ep(ep({},r.type.defaultProps),r.props):r.props,b=y.type,v=y.dataKey,m=y.allowDataOverflow,g=y.allowDuplicatedCategory,w=y.scale,_=y.ticks,x=y.includeHidden,O=y[a];if(e[O])return e;var S=ex(t.data,{graphicalItems:n.filter(function(t){var e;return(a in t.props?t.props[a]:null==(e=t.type.defaultProps)?void 0:e[a])===O}),dataStartIndex:u,dataEndIndex:l}),A=S.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],i=null==t?void 0:t[1];if(n&&i&&(0,T.Et)(n)&&(0,T.Et)(i))return!0}return!1})(y.domain,m,b)&&(P=(0,I.AQ)(y.domain,null,m),p&&("number"===b||"auto"!==w)&&(D=(0,I.Ay)(S,v,"category")));var E=eO(b);
1if(!P||0===P.length){var j,P,M,D,N,k=null!=(N=y.domain)?N:E;if(v){if(P=(0,I.Ay)(S,v,b),"category"===b&&p){var B=(0,T.CG)(P);g&&B?(M=P,P=c()(0,A)):g||(P=(0,I.KC)(k,P,r).reduce(function(t,e){return t.indexOf(e)>=0?t:[].concat(el(t),[e])},[]))}else if("category"===b)P=g?P.filter(function(t){return""!==t&&!o()(t)}):(0,I.KC)(k,P,r).reduce(function(t,e){return t.indexOf(e)>=0||""===e||o()(e)?t:[].concat(el(t),[e])},[]);else if("number"===b){var C=(0,I.A1)(S,n.filter(function(t){var e,r,n=a in t.props?t.props[a]:null==(e=t.type.defaultProps)?void 0:e[a],i="hide"in t.props?t.props.hide:null==(r=t.type.defaultProps)?void 0:r.hide;return n===O&&(x||!i)}),v,i,f);C&&(P=C)}p&&("number"===b||"auto"!==w)&&(D=(0,I.Ay)(S,v,"category"))}else P=p?c()(0,A):s&&s[O]&&s[O].hasStack&&"number"===b?"expand"===d?[0,1]:(0,I.Mk)(s[O].stackGroups,u,l):(0,I.vf)(S,n.filter(function(t){var e=a in t.props?t.props[a]:t.type.defaultProps[a],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===O&&(x||!r)}),b,f,!0);"number"===b?(P=tz(h,P,O,i,_),k&&(P=(0,I.AQ)(k,P,m))):"category"===b&&k&&P.every(function(t){return k.indexOf(t)>=0})&&(P=k)}return ep(ep({},e),{},ey({},O,ep(ep({},y),{},{axisType:i,domain:P,categoricalDomain:D,duplicateDomain:M,originalDomain:null!=(j=y.domain)?j:E,isCategorical:p,layout:f})))},{})},eI=function(t,e){var r=e.graphicalItems,n=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,s=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,h=t.children,d=ex(t.data,{graphicalItems:r,dataStartIndex:s,dataEndIndex:u}),p=d.length,y=(0,I._L)(l,i),b=-1;return r.reduce(function(t,e){var v,m=(void 0!==e.type.defaultProps?ep(ep({},e.type.defaultProps),e.props):e.props)[o],g=eO("number");return t[m]?t:(b++,v=y?c()(0,p):a&&a[m]&&a[m].hasStack?tz(h,v=(0,I.Mk)(a[m].stackGroups,s,u),m,i):tz(h,v=(0,I.AQ)(g,(0,I.vf)(d,r.filter(function(t){var e,r,n=o in t.props?t.props[o]:null==(e=t.type.defaultProps)?void 0:e[o],i="hide"in t.props?t.props.hide:null==(r=t.type.defaultProps)?void 0:r.hide;return n===m&&!i}),"number",l),n.defaultProps.allowDataOverflow),m,i),ep(ep({},t),{},ey({},m,ep(ep({axisType:i},n.defaultProps),{},{hide:!0,orientation:f()(ev,"".concat(i,".").concat(b%2),null),domain:v,originalDomain:g,isCategorical:y,layout:l}))))},{})},eT=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,s=e.dataStartIndex,u=e.dataEndIndex,c=t.children,l="".concat(n,"Id"),f=(0,S.aS)(c,i),h={};return f&&f.length?h=eE(t,{axes:f,graphicalItems:o,axisType:n,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(h=eI(t,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:u})),h},ej=function(t){var e=(0,T.lX)(t),r=(0,I.Rh)(e,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:d()(r,function(t){return t.coordinate}),tooltipAxis:e,tooltipAxisBandSize:(0,I.Hj)(e,r)}},eP=function(t){var e=t.children,r=t.defaultShowTooltip,n=(0,S.BU)(e,G),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(i=n.props.startIndex),n.props.endIndex>=0&&(o=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},eM=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},eD=function(t,e){var r=t.props,n=t.graphicalItems,i=t.xAxisMap,o=void 0===i?{}:i,a=t.yAxisMap,s=void 0===a?{}:a,u=r.width,c=r.height,l=r.children,h=r.margin||{},d=(0,S.BU)(l,G),p=(0,S.BU)(l,_.s),y=Object.keys(s).reduce(function(t,e){var r=s[e],n=r.orientation;return r.mirror||r.hide?t:ep(ep({},t),{},ey({},n,t[n]+r.width))},{left:h.left||0,right:h.right||0}),b=Object.keys(o).reduce(function(t,e){var r=o[e],n=r.orientation;return r.mirror||r.hide?t:ep(ep({},t),{},ey({},n,f()(t,"".concat(n))+r.height))},{top:h.top||0,bottom:h.bottom||0}),v=ep(ep({},b),y),m=v.bottom;d&&(v.bottom+=d.props.height||G.defaultProps.height),p&&e&&(v=(0,I.s0)(v,n,r,e));var g=u-v.left-v.right,w=c-v.top-v.bottom;return ep(ep({brushBottom:m},v),{},{width:Math.max(g,0),height:Math.max(w,0)})},eN=function(t){var e=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,a=void 0===i?"axis":i,u=t.validateTooltipEventTypes,c=void 0===u?["axis"]:u,l=t.axisComponents,h=t.legendContent,d=t.formatAxisMap,p=t.defaultProps,_=function(t,e){var r=e.graphicalItems,n=e.stackGroups,i=e.offset,a=e.updateId,s=e.dataStartIndex,u=e.dataEndIndex,c=t.barSize,f=t.layout,h=t.barGap,d=t.barCategoryGap,p=t.maxBarSize,y=eM(f),b=y.numericAxisName,m=y.cateAxisName,g=!!r&&!!r.length&&r.some(function(t){var e=(0,S.Mn)(t&&t.type);return e&&e.indexOf("Bar")>=0}),w=[];return r.forEach(function(r,y){var _=ex(t.data,{graphicalItems:[r],dataStartIndex:s,dataEndIndex:u}),x=void 0!==r.type.defaultProps?ep(ep({},r.type.defaultProps),r.props):r.props,O=x.dataKey,A=x.maxBarSize,E=x["".concat(b,"Id")],T=x["".concat(m,"Id")],j=l.reduce(function(t,r){var n=e["".concat(r.axisType,"Map")],i=x["".concat(r.axisType,"Id")];n&&n[i]||"zAxis"===r.axisType||(0,v.A)(!1);var o=n[i];return ep(ep({},t),{},ey(ey({},r.axisType,o),"".concat(r.axisType,"Ticks"),(0,I.Rh)(o)))},{}),P=j[m],M=j["".concat(m,"Ticks")],D=n&&n[E]&&n[E].hasStack&&(0,I.kA)(r,n[E].stackGroups),N=(0,S.Mn)(r.type).indexOf("Bar")>=0,k=(0,I.Hj)(P,M),B=[],C=g&&(0,I.tA)({barSize:c,stackGroups:n,totalSize:"xAxis"===m?j[m].width:"yAxis"===m?j[m].height:void 0});if(N){var R,L,F=o()(A)?p:A,U=null!=(R=null!=(L=(0,I.Hj)(P,M,!0))?L:F)?R:0;B=(0,I.BX)({barGap:h,barCategoryGap:d,bandSize:U!==k?U:k,sizeList:C[T],maxBarSize:F}),U!==k&&(B=B.map(function(t){return ep(ep({},t),{},{position:ep(ep({},t.position),{},{offset:t.position.offset-U/2})})}))}var z=r&&r.type&&r.type.getComposedData;z&&w.push({props:ep(ep({},z(ep(ep({},j),{},{displayedData:_,props:t,dataKey:O,item:r,bandSize:k,barPosition:B,offset:i,stackedData:D,layout:f,dataStartIndex:s,dataEndIndex:u}))),{},ey(ey(ey({key:r.key||"item-".concat(y)},b,j[b]),m,j[m]),"animationId",a)),childIndex:(0,S.AW)(r,t.children),item:r})}),w},A=function(t,n){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,s=t.updateId;if(!(0,S.Me)({props:i}))return null;var u=i.children,c=i.layout,f=i.stackOffset,h=i.data,p=i.reverseStackOrder,y=eM(c),b=y.numericAxisName,v=y.cateAxisName,m=(0,S.aS)(u,r),g=(0,I.Mn)(h,m,"".concat(b,"Id"),"".concat(v,"Id"),f,p),w=l.reduce(function(t,e){var r="".concat(e.axisType,"Map");return ep(ep({},t),{},ey({},r,eT(i,ep(ep({},e),{},{graphicalItems:m,stackGroups:e.axisType===b&&g,dataStartIndex:o,dataEndIndex:a}))))},{}),x=eD(ep(ep({},w),{},{props:i,graphicalItems:m}),null==n?void 0:n.legendBBox);
1Object.keys(w).forEach(function(t){w[t]=d(i,w[t],x,t.replace("Map",""),e)});var O=ej(w["".concat(v,"Map")]),A=_(i,ep(ep({},w),{},{dataStartIndex:o,dataEndIndex:a,updateId:s,graphicalItems:m,stackGroups:g,offset:x}));return ep(ep({formattedGraphicalItems:A,graphicalItems:m,offset:x,stackGroups:g},O),w)},E=function(t){var r;function i(t){var r,a,u,c,l;if(!(this instanceof i))throw TypeError("Cannot call a class as a function");return c=i,l=[t],c=eu(c),ey(u=function(t,e){if(e&&("object"===en(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,es()?Reflect.construct(c,l||[],eu(this).constructor):c.apply(this,l)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ey(u,"accessibilityManager",new tJ),ey(u,"handleLegendBBoxUpdate",function(t){if(t){var e=u.state,r=e.dataStartIndex,n=e.dataEndIndex,i=e.updateId;u.setState(ep({legendBBox:t},A({props:u.props,dataStartIndex:r,dataEndIndex:n,updateId:i},ep(ep({},u.state),{},{legendBBox:t}))))}}),ey(u,"handleReceiveSyncEvent",function(t,e,r){u.props.syncId===t&&(r!==u.eventEmitterSymbol||"function"==typeof u.props.syncMethod)&&u.applySyncEvent(e)}),ey(u,"handleBrushChange",function(t){var e=t.startIndex,r=t.endIndex;if(e!==u.state.dataStartIndex||r!==u.state.dataEndIndex){var n=u.state.updateId;u.setState(function(){return ep({dataStartIndex:e,dataEndIndex:r},A({props:u.props,dataStartIndex:e,dataEndIndex:r,updateId:n},u.state))}),u.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}}),ey(u,"handleMouseEnter",function(t){var e=u.getMouseInfo(t);if(e){var r=ep(ep({},e),{},{isTooltipActive:!0});u.setState(r),u.triggerSyncEvent(r);var n=u.props.onMouseEnter;s()(n)&&n(r,t)}}),ey(u,"triggeredAfterMouseMove",function(t){var e=u.getMouseInfo(t),r=e?ep(ep({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};u.setState(r),u.triggerSyncEvent(r);var n=u.props.onMouseMove;s()(n)&&n(r,t)}),ey(u,"handleItemMouseEnter",function(t){u.setState(function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}})}),ey(u,"handleItemMouseLeave",function(){u.setState(function(){return{isTooltipActive:!1}})}),ey(u,"handleMouseMove",function(t){t.persist(),u.throttleTriggeredAfterMouseMove(t)}),ey(u,"handleMouseLeave",function(t){u.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};u.setState(e),u.triggerSyncEvent(e);var r=u.props.onMouseLeave;s()(r)&&r(e,t)}),ey(u,"handleOuterEvent",function(t){var e,r,n=(0,S.X_)(t),i=f()(u.props,"".concat(n));n&&s()(i)&&i(null!=(e=/.*touch.*/i.test(n)?u.getMouseInfo(t.changedTouches[0]):u.getMouseInfo(t))?e:{},t)}),ey(u,"handleClick",function(t){var e=u.getMouseInfo(t);if(e){var r=ep(ep({},e),{},{isTooltipActive:!0});u.setState(r),u.triggerSyncEvent(r);var n=u.props.onClick;s()(n)&&n(r,t)}}),ey(u,"handleMouseDown",function(t){var e=u.props.onMouseDown;s()(e)&&e(u.getMouseInfo(t),t)}),ey(u,"handleMouseUp",function(t){var e=u.props.onMouseUp;s()(e)&&e(u.getMouseInfo(t),t)}),ey(u,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&u.throttleTriggeredAfterMouseMove(t.changedTouches[0])}),ey(u,"handleTouchStart",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&u.handleMouseDown(t.changedTouches[0])}),ey(u,"handleTouchEnd",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&u.handleMouseUp(t.changedTouches[0])}),ey(u,"handleDoubleClick",function(t){var e=u.props.onDoubleClick;s()(e)&&e(u.getMouseInfo(t),t)}),ey(u,"handleContextMenu",function(t){var e=u.props.onContextMenu;s()(e)&&e(u.getMouseInfo(t),t)}),ey(u,"triggerSyncEvent",function(t){void 0!==u.props.syncId&&tY.emit(tH,u.props.syncId,t,u.eventEmitterSymbol)}),ey(u,"applySyncEvent",function(t){var e=u.props,r=e.layout,n=e.syncMethod,i=u.state.updateId,o=t.dataStartIndex,a=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)u.setState(ep({dataStartIndex:o,dataEndIndex:a},A({props:u.props,dataStartIndex:o,dataEndIndex:a,updateId:i},u.state)));else if(void 0!==t.activeTooltipIndex){var s=t.chartX,c=t.chartY,l=t.activeTooltipIndex,f=u.state,h=f.offset,d=f.tooltipTicks;if(!h)return;if("function"==typeof n)l=n(d,t);else if("value"===n){l=-1;for(var p=0;p<d.length;p++)if(d[p].value===t.activeLabel){l=p;break}}var y=ep(ep({},h),{},{x:h.left,y:h.top}),b=Math.min(s,y.x+y.width),v=Math.min(c,y.y+y.height),m=d[l]&&d[l].value,g=eS(u.state,u.props.data,l),w=d[l]?{x:"horizontal"===r?d[l].coordinate:b,y:"horizontal"===r?v:d[l].coordinate}:eg;u.setState(ep(ep({},t),{},{activeLabel:m,activeCoordinate:w,activePayload:g,activeTooltipIndex:l}))}else u.setState(t)}),ey(u,"renderCursor",function(t){var r,i=u.state,o=i.isTooltipActive,a=i.activeCoordinate,
1s=i.activePayload,c=i.offset,l=i.activeTooltipIndex,f=i.tooltipAxisBandSize,h=u.getTooltipEventType(),d=null!=(r=t.props.active)?r:o,p=u.props.layout,y=t.key||"_recharts-cursor";return n.createElement(et,{key:y,activeCoordinate:a,activePayload:s,activeTooltipIndex:l,chartName:e,element:t,isActive:d,layout:p,offset:c,tooltipAxisBandSize:f,tooltipEventType:h})}),ey(u,"renderPolarAxis",function(t,e,r){var i=f()(t,"type.axisType"),o=f()(u.state,"".concat(i,"Map")),a=t.type.defaultProps,s=void 0!==a?ep(ep({},a),t.props):t.props,c=o&&o[s["".concat(i,"Id")]];return(0,n.cloneElement)(t,ep(ep({},c),{},{className:(0,b.A)(i,c.className),key:t.key||"".concat(e,"-").concat(r),ticks:(0,I.Rh)(c,!0)}))}),ey(u,"renderPolarGrid",function(t){var e=t.props,r=e.radialLines,i=e.polarAngles,o=e.polarRadius,a=u.state,s=a.radiusAxisMap,c=a.angleAxisMap,l=(0,T.lX)(s),f=(0,T.lX)(c),h=f.cx,d=f.cy,p=f.innerRadius,y=f.outerRadius;return(0,n.cloneElement)(t,{polarAngles:Array.isArray(i)?i:(0,I.Rh)(f,!0).map(function(t){return t.coordinate}),polarRadius:Array.isArray(o)?o:(0,I.Rh)(l,!0).map(function(t){return t.coordinate}),cx:h,cy:d,innerRadius:p,outerRadius:y,key:t.key||"polar-grid",radialLines:r})}),ey(u,"renderLegend",function(){var t=u.state.formattedGraphicalItems,e=u.props,r=e.children,i=e.width,o=e.height,a=u.props.margin||{},s=i-(a.left||0)-(a.right||0),c=(0,K.g)({children:r,formattedGraphicalItems:t,legendWidth:s,legendContent:h});if(!c)return null;var l=c.item,f=ea(c,ee);return(0,n.cloneElement)(l,ep(ep({},f),{},{chartWidth:i,chartHeight:o,margin:a,onBBoxUpdate:u.handleLegendBBoxUpdate}))}),ey(u,"renderTooltip",function(){var t,e=u.props,r=e.children,i=e.accessibilityLayer,o=(0,S.BU)(r,w.m);if(!o)return null;var a=u.state,s=a.isTooltipActive,c=a.activeCoordinate,l=a.activePayload,f=a.activeLabel,h=a.offset,d=null!=(t=o.props.active)?t:s;return(0,n.cloneElement)(o,{viewBox:ep(ep({},h),{},{x:h.left,y:h.top}),active:d,label:f,payload:d?l:[],coordinate:c,accessibilityLayer:i})}),ey(u,"renderBrush",function(t){var e=u.props,r=e.margin,i=e.data,o=u.state,a=o.offset,s=o.dataStartIndex,c=o.dataEndIndex,l=o.updateId;return(0,n.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:(0,I.HQ)(u.handleBrushChange,t.props.onChange),data:i,x:(0,T.Et)(t.props.x)?t.props.x:a.left,y:(0,T.Et)(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:(0,T.Et)(t.props.width)?t.props.width:a.width,startIndex:s,endIndex:c,updateId:"brush-".concat(l)})}),ey(u,"renderReferenceElement",function(t,e,r){if(!t)return null;var i=u.clipPathId,o=u.state,a=o.xAxisMap,s=o.yAxisMap,c=o.offset,l=t.type.defaultProps||{},f=t.props,h=f.xAxisId,d=void 0===h?l.xAxisId:h,p=f.yAxisId,y=void 0===p?l.yAxisId:p;return(0,n.cloneElement)(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[d],yAxis:s[y],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:i})}),ey(u,"renderActivePoints",function(t){var e=t.item,r=t.activePoint,n=t.basePoint,o=t.childIndex,a=t.isRange,s=[],u=e.props.key,c=void 0!==e.item.type.defaultProps?ep(ep({},e.item.type.defaultProps),e.item.props):e.item.props,l=c.activeDot,f=ep(ep({index:o,dataKey:c.dataKey,cx:r.x,cy:r.y,r:4,fill:(0,I.Ps)(e.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value},(0,S.J9)(l,!1)),(0,tG._U)(l));return s.push(i.renderActiveDot(l,f,"".concat(u,"-activePoint-").concat(o))),n?s.push(i.renderActiveDot(l,ep(ep({},f),{},{cx:n.x,cy:n.y}),"".concat(u,"-basePoint-").concat(o))):a&&s.push(null),s}),ey(u,"renderGraphicChild",function(t,e,r){var i=u.filterFormatItem(t,e,r);if(!i)return null;var a=u.getTooltipEventType(),s=u.state,c=s.isTooltipActive,l=s.tooltipAxis,f=s.activeTooltipIndex,h=s.activeLabel,d=u.props.children,p=(0,S.BU)(d,w.m),y=i.props,b=y.points,v=y.isRange,m=y.baseLine,g=void 0!==i.item.type.defaultProps?ep(ep({},i.item.type.defaultProps),i.item.props):i.item.props,_=g.activeDot,x=g.hide,O=g.activeBar,A=g.activeShape,E=!!(!x&&c&&p&&(_||O||A)),j={};"axis"!==a&&p&&"click"===p.props.trigger?j={onClick:(0,I.HQ)(u.handleItemMouseEnter,t.props.onClick)}:"axis"!==a&&(j={onMouseLeave:(0,I.HQ)(u.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:(0,I.HQ)(u.handleItemMouseEnter,t.props.onMouseEnter)});var P=(0,n.cloneElement)(t,ep(ep({},i.props),j));if(E)if(f>=0){if(l.dataKey&&!l.allowDuplicatedCategory){var M="function"==typeof l.dataKey?function(t){return"function"==typeof l.dataKey?l.dataKey(t.payload):null}:"payload.".concat(l.dataKey.toString());N=(0,T.eP)(b,M,h),k=v&&m&&(0,T.eP)(m,M,h)}else N=null==b?void 0:b[f],k=v&&m&&m[f];if(A||O){var D=void 0!==t.props.activeIndex?t.props.activeIndex:f;return[(0,n.cloneElement)(t,ep(ep(ep({},i.props),j),{},{activeIndex:D})),null,null]}if(!o()(N))return[P].concat(el(u.renderActivePoints({item:i,activePoint:N,basePoint:k,childIndex:f,isRange:v})))}else{var N,k,B,C=(null!=(B=u.getItemByXY(u.state.activeCoordinate))?B:{graphicalItem:P}).graphicalItem,R=C.item,L=void 0===R?t:R,F=C.childIndex,U=ep(ep(ep({},i.props),j),{},{activeIndex:F});return[(0,n.cloneElement)(L,U),null,null]}return v?[P,null,null]:[P,null]}),ey(u,"renderCustomized",function(t,e,r){return(0,n.cloneElement)(t,ep(ep({key:"recharts-customized-".concat(r)},u.props),u.state))}),ey(u,"renderMap",{CartesianGrid:{handler:ew,once:!0},ReferenceArea:{handler:u.renderReferenceElement},ReferenceLine:{handler:ew},ReferenceDot:{handler:u.renderReferenceElement},XAxis:{handler:ew},YAxis:{handler:ew},Brush:{handler:u.renderBrush,once:!0},Bar:{handler:u.renderGraphicChild},Line:{handler:u.renderGraphicChild},Area:{handler:u.renderGraphicChild},Radar:{handler:u.renderGraphicChild},RadialBar:{handler:u.renderGraphicChild},Scatter:{handler:u.renderGraphicChild},Pie:{handler:u.renderGraphicChild},Funnel:{handler:u.renderGraphicChild},Tooltip:{handler:u.renderCursor,once:!0},PolarGrid:{handler:u.renderPolarGrid,once:!0},PolarAngleAxis:{handler:u.renderPolarAxis},PolarRadiusAxis:{handler:u.renderPolarAxis},Customized:{handler:u.renderCustomized}}),u.clipPathId="".concat(null!=(r=t.id)?r:(0,T.NF)("recharts"),"-clip"),u.throttleTriggeredAfterMouseMove=y()(u.triggeredAfterMouseMove,null!=(a=t.throttleDelay)?a:1e3/60),u.state={},u}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&ec(i,t),r=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!=(t=this.props.margin.left)?t:0,top:null!=(e=this.props.margin.top)?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,i=t.layout,o=(0,S.BU)(e,w.m);if(o){var a=o.props.defaultIndex;if("number"==typeof a&&!(a<0)&&!(a>this.state.tooltipTicks.length-1)){var s=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=eS(this.state,r,a,s),c=this.state.tooltipTicks[a].coordinate,l=(this.state.offset.top+n)/2,f="horizontal"===i?{x:c,y:l}:{y:c,x:l},h=this.state.formattedGraphicalItems.find(function(t){return"Scatter"===t.item.type.name});h&&(f=ep(ep({},f),h.props.points[a].tooltipPosition),u=h.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:s,activePayload:u,activeCoordinate:f};this.setState(d),this.renderCursor(o),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin){var r,n;this.accessibilityManager.setDetails({offset:{left:null!=(r=this.props.margin.left)?r:0,top:null!=(n=this.props.margin.top)?n:0}})}return null}},{key:"componentDidUpdate",value:function(t){(0,S.OV)([(0,S.BU)(t.children,w.m)],[(0,S.BU)(this.props.children,w.m)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=(0,S.BU)(this.props.children,w.m);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return c.indexOf(e)>=0?e:a}return a}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=this.container,r=e.getBoundingClientRect(),n=(0,q.A3)(r),i={chartX:Math.round(t.pageX-n.left),chartY:Math.round(t.pageY-n.top)},o=r.width/e.offsetWidth||1,a=this.inRange(i.chartX,i.chartY,o);if(!a)return null;var s=this.state,u=s.xAxisMap,c=s.yAxisMap,l=this.getTooltipEventType(),f=eA(this.state,this.props.data,this.props.layout,a);if("axis"!==l&&u&&c){var h=(0,T.lX)(u).scale,d=(0,T.lX)(c).scale,p=h&&h.invert?h.invert(i.chartX):null,y=d&&d.invert?d.invert(i.chartY):null;return ep(ep({},i),{},{xValue:p,yValue:y},f)}return f?ep(ep({},i),f):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,i=t/r,o=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return i>=a.left&&i<=a.left+a.width&&o>=a.top&&o<=a.top+a.height?{x:i,y:o}:null}var s=this.state,u=s.angleAxisMap,c=s.radiusAxisMap;if(u&&c){var l=(0,T.lX)(u);return(0,tV.yy)({x:i,y:o},l)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=(0,S.BU)(t,w.m),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),ep(ep({},(0,tG._U)(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){tY.on(tH,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){tY.removeListener(tH,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,i=0,o=n.length;i<o;i++){var a=n[i];if(a.item===t||a.props.key===t.key||e===(0,S.Mn)(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,i=e.top,o=e.height,a=e.width;return n.createElement("defs",null,n.createElement("clipPath",{id:t},n.createElement("rect",{x:r,y:i,height:o,width:a})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce(function(t,e){var r=eo(e,2),n=r[0],i=r[1];return ep(ep({},t),{},ey({},n,i.scale))},{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce(function(t,e){var r=eo(e,2),n=r[0],i=r[1];return ep(ep({},t),{},ey({},n,i.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null==(e=this.state.xAxisMap)||null==(e=e[t])?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null==(e=this.state.yAxisMap)||null==(e=e[t])?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var i=0,o=r.length;i<o;i++){var a=r[i],s=a.props,u=a.item,c=void 0!==u.type.defaultProps?ep(ep({},u.type.defaultProps),u.props):u.props,l=(0,S.Mn)(u.type);if("Bar"===l){var f=(s.data||[]).find(function(e){return(0,O.J)(t,e)});if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===l){var h=(s.data||[]).find(function(e){return(0,tV.yy)(t,e)});if(h)return{graphicalItem:a,payload:h}}
1else if((0,tQ.NE)(a,n)||(0,tQ.nZ)(a,n)||(0,tQ.xQ)(a,n)){var d=(0,tQ.GG)({graphicalItem:a,activeTooltipItem:n,itemData:c.data}),p=void 0===c.activeIndex?d:c.activeIndex;return{graphicalItem:ep(ep({},a),{},{childIndex:p}),payload:(0,tQ.xQ)(a,n)?c.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var t,e,r=this;if(!(0,S.Me)(this))return null;var i=this.props,o=i.children,a=i.className,s=i.width,u=i.height,c=i.style,l=i.compact,f=i.title,h=i.desc,d=ea(i,er),p=(0,S.J9)(d,!1);if(l)return n.createElement(td.DR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},n.createElement(m.u,ei({},p,{width:s,height:u,title:f,desc:h}),this.renderClipPath(),(0,S.ee)(o,this.renderMap)));this.props.accessibilityLayer&&(p.tabIndex=null!=(t=this.props.tabIndex)?t:0,p.role=null!=(e=this.props.role)?e:"application",p.onKeyDown=function(t){r.accessibilityManager.keyboardEvent(t)},p.onFocus=function(){r.accessibilityManager.focus()});var y=this.parseEventsOfWrapper();return n.createElement(td.DR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},n.createElement("div",ei({className:(0,b.A)("recharts-wrapper",a),style:ep({position:"relative",cursor:"default",width:s,height:u},c)},y,{ref:function(t){r.container=t}}),n.createElement(m.u,ei({},p,{width:s,height:u,title:f,desc:h,style:em}),this.renderClipPath(),(0,S.ee)(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,eb(n.key),n)}}(i.prototype,r),Object.defineProperty(i,"prototype",{writable:!1}),i}(n.Component);ey(E,"displayName",e),ey(E,"defaultProps",ep({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),ey(E,"getDerivedStateFromProps",function(t,e){var r=t.dataKey,n=t.data,i=t.children,a=t.width,s=t.height,u=t.layout,c=t.stackOffset,l=t.margin,f=e.dataStartIndex,h=e.dataEndIndex;if(void 0===e.updateId){var d=eP(t);return ep(ep(ep({},d),{},{updateId:0},A(ep(ep({props:t},d),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:a,prevHeight:s,prevLayout:u,prevStackOffset:c,prevMargin:l,prevChildren:i})}if(r!==e.prevDataKey||n!==e.prevData||a!==e.prevWidth||s!==e.prevHeight||u!==e.prevLayout||c!==e.prevStackOffset||!(0,tW.b)(l,e.prevMargin)){var p=eP(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},b=ep(ep({},eA(e,n,u)),{},{updateId:e.updateId+1}),v=ep(ep(ep({},p),y),b);return ep(ep(ep({},v),A(ep({props:t},v),e)),{},{prevDataKey:r,prevData:n,prevWidth:a,prevHeight:s,prevLayout:u,prevStackOffset:c,prevMargin:l,prevChildren:i})}if(!(0,S.OV)(i,e.prevChildren)){var m,g,w,_,x=(0,S.BU)(i,G),O=x&&null!=(m=null==(g=x.props)?void 0:g.startIndex)?m:f,E=x&&null!=(w=null==(_=x.props)?void 0:_.endIndex)?w:h,I=o()(n)||O!==f||E!==h?e.updateId+1:e.updateId;return ep(ep({updateId:I},A(ep(ep({props:t},e),{},{updateId:I,dataStartIndex:O,dataEndIndex:E}),e)),{},{prevChildren:i,dataStartIndex:O,dataEndIndex:E})}return null}),ey(E,"renderActiveDot",function(t,e,r){var i;return i=(0,n.isValidElement)(t)?(0,n.cloneElement)(t,e):s()(t)?t(e):n.createElement(x.c,e),n.createElement(g.W,{className:"recharts-active-dot",key:r},i)});var j=(0,n.forwardRef)(function(t,e){return n.createElement(E,ei({},t,{ref:e}))});return j.displayName=E.displayName,j}},53512:(t,e,r)=>{var n=r(50224);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},53995:(t,e,r)=>{"use strict";r.d(e,{m:()=>n});var n={isSsr:!window.document||!window.document.createElement||!window.setTimeout,get:function(t){return n[t]},set:function(t,e){if("string"==typeof t)n[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(e){n[e]=t[e]})}}}},54316:(t,e,r)=>{t.exports=r(43622)(r(19031),"Promise")},54355:t=>{t.exports=function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return -1}},55818:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>s});var n=r(84237);function i(t,e,r,n,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*r+(1+3*t+3*o-3*a)*n+a*i)/6}var o=r(62721);function a(t,e){var r,n,i=e-t;return i?(r=t,n=i,function(t){return r+t*n}):(0,o.A)(isNaN(t)?e:t)}let s=function t(e){var r,i=1==(r=+e)?a:function(t,e){var n,i,a;return e-t?(n=t,i=e,n=Math.pow(n,a=r),i=Math.pow(i,a)-n,a=1/a,function(t){return Math.pow(n+t*i,a)}):(0,o.A)(isNaN(t)?e:t)};function s(t,e){var r=i((t=(0,n.Qh)(t)).r,(e=(0,n.Qh)(e)).r),o=i(t.g,e.g),s=i(t.b,e.b),u=a(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=s(e),t.opacity=u(e),t+""}}return s.gamma=t,s}(1);function u(t){return function(e){var r,i,o=e.length,a=Array(o),s=Array(o),u=Array(o);for(r=0;r<o;++r)i=(0,n.Qh)(e[r]),a[r]=i.r||0,s[r]=i.g||0,u[r]=i.b||0;return a=t(a),s=t(s),u=t(u),i.opacity=1,function(t){return i.r=a(t),i.g=s(t),i.b=u(t),i+""}}}u(function(t){var e=t.length-1;
1return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[n],a=t[n+1],s=n>0?t[n-1]:2*o-a,u=n<e-1?t[n+2]:2*a-o;return i((r-n/e)*e,s,o,a,u)}}),u(function(t){var e=t.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*e),o=t[(n+e-1)%e],a=t[n%e],s=t[(n+1)%e],u=t[(n+2)%e];return i((r-n/e)*e,o,a,s,u)}})},56321:(t,e,r)=>{"use strict";r.d(e,{G:()=>R});var n=r(14232),i=r(69241),o=r(77340),a=r(19850),s=r.n(a),u=r(20624),c=r.n(u),l=r(19809),f=r.n(l),h=r(20527),d=r.n(h),p=r(41946),y=r.n(p),b=r(21664),v=r(48116),m=r(51572),g=r(72287),w=r(53995),_=r(59421),x=r(4886),O=r(72804),S=["layout","type","stroke","connectNulls","isRange","ref"],A=["key"];function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function I(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function T(){return(T=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function P(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?j(Object(r),!0).forEach(function(e){B(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function M(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,C(n.key),n)}}function D(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(D=function(){return!!t})()}function N(t){return(N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function k(t,e){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function B(t,e,r){return(e=C(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function C(t){var e=function(t,e){if("object"!=E(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=E(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==E(e)?e:e+""}var R=function(t){var e,r;function a(){var t,e,r;if(!(this instanceof a))throw TypeError("Cannot call a class as a function");for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e=a,r=[].concat(i),e=N(e),B(t=function(t,e){if(e&&("object"===E(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,D()?Reflect.construct(e,r||[],N(this).constructor):e.apply(this,r)),"state",{isAnimationFinished:!0}),B(t,"id",(0,_.NF)("recharts-area-")),B(t,"handleAnimationEnd",function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),s()(e)&&e()}),B(t,"handleAnimationStart",function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),s()(e)&&e()}),t}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return a.prototype=Object.create(t&&t.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),t&&k(a,t),e=[{key:"renderDots",value:function(t,e,r){var i=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(i&&!o)return null;var s=this.props,u=s.dot,c=s.points,l=s.dataKey,f=(0,O.J9)(this.props,!1),h=(0,O.J9)(u,!0),d=c.map(function(t,e){var r=P(P(P({key:"dot-".concat(e),r:3},f),h),{},{index:e,cx:t.x,cy:t.y,dataKey:l,value:t.value,payload:t.payload,points:c});return a.renderDotItem(u,r)}),p={clipPath:t?"url(#clipPath-".concat(e?"":"dots-").concat(r,")"):null};return n.createElement(m.W,T({className:"recharts-area-dots"},p),d)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,i=e.points,o=e.strokeWidth,a=i[0].x,s=i[i.length-1].x,u=t*Math.abs(a-s),l=c()(i.map(function(t){return t.y||0}
1));return((0,_.Et)(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(c()(r.map(function(t){return t.y||0})),l)),(0,_.Et)(l))?n.createElement("rect",{x:a<s?a:a-u,y:0,width:u,height:Math.floor(l+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,i=e.points,o=e.strokeWidth,a=i[0].y,s=i[i.length-1].y,u=t*Math.abs(a-s),l=c()(i.map(function(t){return t.x||0}));return((0,_.Et)(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(c()(r.map(function(t){return t.x||0})),l)),(0,_.Et)(l))?n.createElement("rect",{x:0,y:a<s?a:a-u,width:l+(o?parseInt("".concat(o),10):1),height:Math.floor(u)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,r,i){var o=this.props,a=o.layout,s=o.type,u=o.stroke,c=o.connectNulls,l=o.isRange,f=(o.ref,I(o,S));return n.createElement(m.W,{clipPath:r?"url(#clipPath-".concat(i,")"):null},n.createElement(b.I,T({},(0,O.J9)(f,!0),{points:t,connectNulls:c,type:s,baseLine:e,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==u&&n.createElement(b.I,T({},(0,O.J9)(this.props,!1),{className:"recharts-area-curve",layout:a,type:s,connectNulls:c,fill:"none",points:t})),"none"!==u&&l&&n.createElement(b.I,T({},(0,O.J9)(this.props,!1),{className:"recharts-area-curve",layout:a,type:s,connectNulls:c,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,i=this.props,a=i.points,s=i.baseLine,u=i.isAnimationActive,c=i.animationBegin,l=i.animationDuration,h=i.animationEasing,p=i.animationId,y=this.state,b=y.prevPoints,v=y.prevBaseLine;return n.createElement(o.Ay,{begin:c,duration:l,isActive:u,easing:h,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(i){var o=i.t;if(b){var u,c=b.length/a.length,l=a.map(function(t,e){var r=Math.floor(e*c);if(b[r]){var n=b[r],i=(0,_.Dj)(n.x,t.x),a=(0,_.Dj)(n.y,t.y);return P(P({},t),{},{x:i(o),y:a(o)})}return t});return u=(0,_.Et)(s)&&"number"==typeof s?(0,_.Dj)(v,s)(o):f()(s)||d()(s)?(0,_.Dj)(v,0)(o):s.map(function(t,e){var r=Math.floor(e*c);if(v[r]){var n=v[r],i=(0,_.Dj)(n.x,t.x),a=(0,_.Dj)(n.y,t.y);return P(P({},t),{},{x:i(o),y:a(o)})}return t}),r.renderAreaStatically(l,u,t,e)}return n.createElement(m.W,null,n.createElement("defs",null,n.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(o))),n.createElement(m.W,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(a,s,t,e)))})}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,i=r.baseLine,o=r.isAnimationActive,a=this.state,s=a.prevPoints,u=a.prevBaseLine,c=a.totalLength;return o&&n&&n.length&&(!s&&c>0||!y()(s,n)||!y()(u,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,i,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,o=e.dot,a=e.points,s=e.className,u=e.top,c=e.left,l=e.xAxis,h=e.yAxis,d=e.width,p=e.height,y=e.isAnimationActive,b=e.id;if(r||!a||!a.length)return null;var v=this.state.isAnimationFinished,w=1===a.length,_=(0,i.A)("recharts-area",s),x=l&&l.allowDataOverflow,S=h&&h.allowDataOverflow,A=x||S,E=f()(b)?this.id:b,I=null!=(t=(0,O.J9)(o,!1))?t:{r:3,strokeWidth:2},T=I.r,j=I.strokeWidth,P=((0,O.sT)(o)?o:{}).clipDot,M=void 0===P||P,D=2*(void 0===T?3:T)+(void 0===j?2:j);return n.createElement(m.W,{className:_},x||S?n.createElement("defs",null,n.createElement("clipPath",{id:"clipPath-".concat(E)},n.createElement("rect",{x:x?c:c-d/2,y:S?u:u-p/2,width:x?d:2*d,height:S?p:2*p})),!M&&n.createElement("clipPath",{id:"clipPath-dots-".concat(E)},n.createElement("rect",{x:c-D/2,y:u-D/2,width:d+D,height:p+D}))):null,w?null:this.renderArea(A,E),(o||w)&&this.renderDots(A,M,E),(!y||v)&&g.Z.renderCallByParent(this.props,a))}}],r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],e&&M(a.prototype,e),r&&M(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(n.PureComponent);B(R,"displayName","Area"),B(R,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendT
1ype:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!w.m.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),B(R,"getBaseValue",function(t,e,r,n){var i=t.layout,o=t.baseValue,a=e.props.baseValue,s=null!=a?a:o;if((0,_.Et)(s)&&"number"==typeof s)return s;var u="horizontal"===i?n:r,c=u.scale.domain();if("number"===u.type){var l=Math.max(c[0],c[1]),f=Math.min(c[0],c[1]);return"dataMin"===s?f:"dataMax"===s||l<0?l:Math.max(Math.min(c[0],c[1]),0)}return"dataMin"===s?c[0]:"dataMax"===s?c[1]:c[0]}),B(R,"getComposedData",function(t){var e,r=t.props,n=t.item,i=t.xAxis,o=t.yAxis,a=t.xAxisTicks,s=t.yAxisTicks,u=t.bandSize,c=t.dataKey,l=t.stackedData,f=t.dataStartIndex,h=t.displayedData,d=t.offset,p=r.layout,y=l&&l.length,b=R.getBaseValue(r,n,i,o),v="horizontal"===p,m=!1,g=h.map(function(t,e){y?r=l[f+e]:Array.isArray(r=(0,x.kr)(t,c))?m=!0:r=[b,r];var r,n=null==r[1]||y&&null==(0,x.kr)(t,c);return v?{x:(0,x.nb)({axis:i,ticks:a,bandSize:u,entry:t,index:e}),y:n?null:o.scale(r[1]),value:r,payload:t}:{x:n?null:i.scale(r[1]),y:(0,x.nb)({axis:o,ticks:s,bandSize:u,entry:t,index:e}),value:r,payload:t}});return e=y||m?g.map(function(t){var e=Array.isArray(t.value)?t.value[0]:null;return v?{x:t.x,y:null!=e&&null!=t.y?o.scale(e):null}:{x:null!=e?i.scale(e):null,y:t.y}}):v?o.scale(b):i.scale(b),P({points:g,baseLine:e,layout:p,isRange:m},d)}),B(R,"renderDotItem",function(t,e){var r;if(n.isValidElement(t))r=n.cloneElement(t,e);else if(s()(t))r=t(e);else{var o=(0,i.A)("recharts-area-dot","boolean"!=typeof t?t.className:""),a=e.key,u=I(e,A);r=n.createElement(v.c,T({},u,{key:a,className:o}))}return r})},56740:(t,e,r)=>{"use strict";function n(t,e){return t*=1,e*=1,function(r){return t*(1-r)+e*r}}r.d(e,{A:()=>n})},56751:(t,e,r)=>{var n=r(63592),i=r(48894),o=r(93007),a=r(4756),s=r(68373),u=r(82731),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=o(t),l=!r&&i(t),f=!r&&!l&&a(t),h=!r&&!l&&!f&&u(t),d=r||l||f||h,p=d?n(t.length,String):[],y=p.length;for(var b in t)(e||c.call(t,b))&&!(d&&("length"==b||f&&("offset"==b||"parent"==b)||h&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||s(b,y)))&&p.push(b);return p}},57242:(t,e,r)=>{var n=r(15744),i=r(47871),o=r(76754),a=r(93007),s=r(65930);t.exports=function(t,e,r){var u=a(t)?n:o;return r&&s(t,e,r)&&(e=void 0),u(t,i(e,3))}},57408:(t,e,r)=>{var n=r(76014);t.exports=function(t,e){if(t!==e){var r=void 0!==t,i=null===t,o=t==t,a=n(t),s=void 0!==e,u=null===e,c=e==e,l=n(e);if(!u&&!l&&!a&&t>e||a&&s&&c&&!u&&!l||i&&s&&c||!r&&c||!o)return 1;if(!i&&!a&&!l&&t<e||l&&r&&o&&!i&&!a||u&&r&&o||!s&&o||!c)return -1}return 0}},57410:t=>{t.exports=function(){}},57420:(t,e,r)=>{var n=r(47871),i=r(27136),o=r(69750);t.exports=function(t){return function(e,r,a){var s=Object(e);if(!i(e)){var u=n(r,3);e=o(e),r=function(t){return u(s[t],t,s)}}var c=t(e,r,a);return c>-1?s[u?e[c]:c]:void 0}}},58511:(t,e,r)=>{var n=r(93007),i=r(33582),o=r(91364),a=r(12438);t.exports=function(t,e){return n(t)?t:i(t,e)?[t]:o(a(t))}},58528:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=!!e,e}},59038:(t,e,r)=>{var n=r(64451),i=r(59930),o=r(93007),a=r(76014),s=1/0,u=n?n.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-s?"-0":r}},59059:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},59421:(t,e,r)=>{"use strict";r.d(e,{CG:()=>x,Dj:()=>O,Et:()=>y,F4:()=>w,NF:()=>g,_3:()=>p,ck:()=>A,eP:()=>S,lX:()=>_,sA:()=>d,uy:()=>b,vh:()=>v});var n=r(36827),i=r.n(n),o=r(20527),a=r.n(o),s=r(7766),u=r.n(s),c=r(89387),l=r.n(c),f=r(19809),h=r.n(f),d=function(t){return 0===t?0:t>0?1:-1},p=function(t){return i()(t)&&t.indexOf("%")===t.length-1},y=function(t){return l()(t)&&!a()(t)},b=function(t){return h()(t)},v=function(t){return y(t)||i()(t)},m=0,g=function(t){var e=++m;return"".concat(t||"").concat(e)},w=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!y(t)&&!i()(t))return n;if(p(t)){var s=t.indexOf("%");r=e*parseFloat(t.slice(0,s))/100}
1else r=+t;return a()(r)&&(r=n),o&&r>e&&(r=e),r},_=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},x=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++)if(r[t[n]])return!0;else r[t[n]]=!0;return!1},O=function(t,e){return y(t)&&y(e)?function(r){return t+r*(e-t)}:function(){return e}};function S(t,e,r){return t&&t.length?t.find(function(t){return t&&("function"==typeof e?e(t):u()(t,e))===r}):null}var A=function(t,e){return y(t)&&y(e)?t-e:i()(t)&&i()(e)?t.localeCompare(e):t instanceof Date&&e instanceof Date?t.getTime()-e.getTime():String(t).localeCompare(String(e))}},59930:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},60490:(t,e,r)=>{var n=r(71266),i=r(7766),o=r(48217),a=r(33582),s=r(33854),u=r(69525),c=r(52141);t.exports=function(t,e){return a(t)&&s(e)?u(c(t),e):function(r){var a=i(r,t);return void 0===a&&a===e?o(r,t):n(e,a,3)}}},60524:(t,e,r)=>{var n=r(52782),i=1/0;t.exports=function(t){return t?(t=n(t))===i||t===-i?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}},61733:(t,e,r)=>{var n=r(23550);t.exports=function(t){return function(e){return n(e,t)}}},62075:(t,e,r)=>{var n=r(64451),i=r(48894),o=r(93007),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},62721:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=t=>()=>t},63415:(t,e,r)=>{t.exports=r(50092)()},63592:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},63700:(t,e,r)=>{var n=r(64451),i=r(75082),o=r(79364),a=r(28375),s=r(19887),u=r(44577),c=n?n.prototype:void 0,l=c?c.valueOf
1:void 0;t.exports=function(t,e,r,n,c,f,h){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!f(new i(t),new i(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=s;case"[object Set]":var p=1&n;if(d||(d=u),t.size!=e.size&&!p)break;var y=h.get(t);if(y)return y==e;n|=2,h.set(t,e);var b=a(d(t),d(e),n,c,f,h);return h.delete(t),b;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},64451:(t,e,r)=>{t.exports=r(19031).Symbol},65013:(t,e,r)=>{t.exports=r(57420)(r(83995))},65930:(t,e,r)=>{var n=r(79364),i=r(27136),o=r(68373),a=r(98825);t.exports=function(t,e,r){if(!a(r))return!1;var s=typeof e;return("number"==s?!!(i(r)&&o(e,r.length)):"string"==s&&e in r)&&n(r[e],t)}},66387:(t,e,r)=>{"use strict";r.d(e,{h:()=>b});var n=r(14232),i=r(69241),o=r(72804),a=r(99077),s=r(59421);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(){return(c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var h=function(t){var e=t.cx,r=t.cy,n=t.radius,i=t.angle,o=t.sign,s=t.isExternal,u=t.cornerRadius,c=t.cornerIsExternal,l=u*(s?1:-1)+n,f=Math.asin(u/l)/a.Kg,h=c?i:i+o*f;return{center:(0,a.IZ)(e,r,l,h),circleTangency:(0,a.IZ)(e,r,n,h),lineTangency:(0,a.IZ)(e,r,l*Math.cos(f*a.Kg),c?i-o*f:i),theta:f}},d=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.startAngle,u=t.endAngle,c=(0,s.sA)(u-o)*Math.min(Math.abs(u-o),359.999),l=o+c,f=(0,a.IZ)(e,r,i,o),h=(0,a.IZ)(e,r,i,l),d="M ".concat(f.x,",").concat(f.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(c)>180),",").concat(+(o>l),",\n ").concat(h.x,",").concat(h.y,"\n ");if(n>0){var p=(0,a.IZ)(e,r,n,o),y=(0,a.IZ)(e,r,n,l);d+="L ".concat(y.x,",").concat(y.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(c)>180),",").concat(+(o<=l),",\n ").concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(e,",").concat(r," Z");return d},p=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,u=t.cornerIsExternal,c=t.startAngle,l=t.endAngle,f=(0,s.sA)(l-c),p=h({cx:e,cy:r,radius:i,angle:c,sign:f,cornerRadius:o,cornerIsExternal:u}),y=p.circleTangency,b=p.lineTangency,v=p.theta,m=h({cx:e,cy:r,radius:i,angle:l,sign:-f,cornerRadius:o,cornerIsExternal:u}),g=m.circleTangency,w=m.lineTangency,_=m.theta,x=u?Math.abs(c-l):Math.abs(c-l)-v-_;if(x<0)return a?"M ".concat(b.x,",").concat(b.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(-(2*o),",0\n "):d({cx:e,cy:r,innerRadius:n,outerRadius:i,startAngle:c,endAngle:l});var O="M ".concat(b.x,",").concat(b.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,"\n A").concat(i,",").concat(i,",0,").concat(+(x>180),",").concat(+(f<0),",").concat(g.x,",").concat(g.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(w.x,",").concat(w.y,"\n ");if(n>0){var S=h({cx:e,cy:r,radius:n,angle:c,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),A=S.circleTangency,E=S.lineTangency,I=S.theta,T=h({cx:e,cy:r,radius:n,angle:l,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),j=T.circleTangency,P=T.lineTangency,M=T.theta,D=u?Math.abs(c-l):Math.abs(c-l)-I-M;if(D<0&&0===o)return"".concat(O,"L").concat(e,",").concat(r,"Z");O+="L".concat(P.x,",").concat(P.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(j.x,",").concat(j.y,"\n A").concat(n,",").concat(n,",0,").concat(+(D>180),",").concat(+(f>0),",").concat(A.x,",").concat(A.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(E.x,",").concat(E.y,"Z")}else O+="L".concat(e,",").concat(r,"Z");return O},y={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},b=function(t){var e,r=f(f({},y),t),a=r.cx,u=r.cy,l=r.innerRadius,h=r.outerRadius,b=r.cornerRadius,v=r.forceCornerRadius,m=r.cornerIsExternal,g=r.startAngle,w=r.endAngle,_=r.className;if(h<l||g===w)return null;var x=(0,i.A)("recharts-sector",_),O=h-l,S=(0,s.F4)(b,O,0,!0);return e=S>0&&360>Math.abs(g-w)?p({cx:a,cy:u,innerRadius:l,outerRadius:h,cornerRadius:Math.min(S,O/2),forceCornerRadius:v,cornerIsExternal:m,startAngle:g,endAngle:w}):d({cx:a,cy:u,innerRadius:l,outerRadius:h,startAngle:g,endAngle:w}),n.createElement("path",c({},(0,o.J9)(r,!0),{className:x,d:e,role:"img"}))}},66521:(t,e,r)=>{var n=r(78598);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},66743:(t,e,r)=>{"use strict";r.d(e,{P2:()=>_,bx:()=>x,pr:()=>v,sl:()=>m,vh:()=>g});var n=r(15574),i=r.n(n),o=r(34293),a=r.n(o),s=r(4886),u=r(72804),c=r(59421),l=r(78499);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,b(n.key),n)}}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?d(Object(r),!0).forEach(function(e){y(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function y(t,e,r){return(e=b(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=f(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==f(e)?e:e+""}var v=function(t,e,r,n,i){var o=t.width,a=t.height,f=t.layout,h=t.children,d=Object.keys(e),b={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},v=!!(0,u.BU)(h,l.y);return d.reduce(function(o,a){var u,l,h,d,m,g=e[a],w=g.orientation,_=g.domain,x=g.padding,O=void 0===x?{}:x,S=g.mirror,A=g.reversed,E="".concat(w).concat(S?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var I=_[1]-_[0],T=1/0,j=g.categoricalDomain.sort(c.ck);if(j.forEach(function(t,e){e>0&&(T=Math.min((t||0)-(j[e-1]||0),T))}),Number.isFinite(T)){var P=T/I,M="vertical"===g.layout?r.height:r.width;if("gap"===g.padding&&(u=P*M/2),"no-gap"===g.padding){var D=(0,c.F4)(t.barCategoryGap,P*M),N=P*M/2;u=N-D-(N-D)/M*D}}}l="xAxis"===n?[r.left+(O.left||0)+(u||0),r.left+r.width-(O.right||0)-(u||0)]:"yAxis"===n?"horizontal"===f?[r.top+r.height-(O.bottom||0),r.top+(O.top||0)]:[r.top+(O.top||0)+(u||0),r.top+r.height-(O.bottom||0)-(u||0)]:g.range,A&&(l=[l[1],l[0]]);var k=(0,s.W7)(g,i,v),B=k.scale,C=k.realScaleType;B.domain(_).range(l),(0,s.YB)(B);var R=(0,s.w7)(B,p(p({},g),{},{realScaleType:C}));"xAxis"===n?(m="top"===w&&!S||"bottom"===w&&S,h=r.left,d=b[E]-m*g.height):"yAxis"===n&&(m="left"===w&&!S||"right"===w&&S,h=b[E]-m*g.width,d=r.top);var L=p(p(p({},g),R),{},{realScaleType:C,x:h,y:d,scale:B,width:"xAxis"===n?r.width:g.width,height:"yAxis"===n?r.height:g.height});return L.bandSize=(0,s.Hj)(L,R),g.hide||"xAxis"!==n?g.hide||(b[E]+=(m?-1:1)*L.width):b[E]+=(m?-1:1)*L.height,p(p({},o),{},y({},a,L))},{})},m=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return{x:Math.min(r,i),y:Math.min(n,o),width:Math.abs(i-r),height:Math.abs(o-n)}},g=function(t){return m({x:t.x1,y:t.y1},{x:t.x2,y:t.y2})},w=function(){var t,e;function r(t){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");this.scale=t}return t=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],e=[{key:"create",value:function(t){return new r(t)}}],t&&h(r.prototype,t),e&&h(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}();y(w,"EPS",1e-4);var _=function(t){var e=Object.keys(t).reduce(function(e,r){return p(p({},e),{},y({},r,w.create(t[r])))},{});return p(p({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return i()(t,function(t,r){return e[r].apply(t,{bandAware:n,position:o})})},isInRange:function(t){return a()(t,function(t,r){return e[r].isInRange(t)})}})},x=function(t){var e=t.width,r=t.height,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(n%180+180)%180*Math.PI/180,o=Math.atan(r/e);return Math.abs(i>o&&i<Math.PI-o?r/Math.sin(i):e/Math.cos(i))}},66783:t=>{t.exports=function(t){return this.__data__.has(t)}},67895:(t,e,r)=>{var n=r(54355),i=r(95975),o=r(49035);t.exports=function(t,e,r){return e==e?o(t,e,r):n(t,i,r)}},68329:(t,e,r)=>{var n=r(50224);t.exports=function(t,e){var r=this.__data__;return this.size+=+!this.has(t),r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},68373:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},68839:(t,e,r)=>{var n=r(19465),i=r(39913),o=r(24065),a=r(28389),s=r(4517),u=r(44577);t.exports=function(t,e,r){var c=-1,l=i,f=t.length,h=!0,d=[],p=d;if(r)h=!1,l=o;else if(f>=200){var y=e?null:s(t);if(y)return u(y);h=!1,l=a,p=new n}else p=e?[]:d;e:for(;++c<f;){var b=t[c],v=e?e(b):b;if(b=r||0!==b?b:0,h&&v==v){for(var m=p.length;m--;)if(p[m]===v)continue e;e&&p.push(v),d.push(b)}else l(p,v,r)||(p!==d&&p.push(v),d.push(b))}return d}},69241:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=function t(e){var r,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(n=t(e[r]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}(t))&&(n&&(n+=" "),n+=e);return n}},69455:t=>{t.exports=function(t){return this.__data__.has(t)}},69525:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},69613:(t,e,r)=>{"use strict";r.d(e,{f:()=>p});var n=r(19850),i=r.n(n),o=r(59421),a=r(21433),s=r(53995),u=r(66743);function c(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],i=0;i<t.length;i+=e)if(void 0!==r&&!0!==r(t[i]))return;else n.push(t[i]);return n}function l(t,e,r,n,i){if(t*e<t*n||t*e>t*i)return!1;var o=r();return t*(e-t*o/2-n)>=0&&t*(e+t*o/2-i)<=0}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?h(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=f(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==f(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function p(t,e,r){var n,f,h,p,y,b=t.tick,v=t.ticks,m=t.viewBox,g=t.minTickGap,w=t.orientation,_=t.interval,x=t.tickFormatter,O=t.unit,S=t.angle;if(!v||!v.length||!b)return[];if((0,o.Et)(_)||s.m.isSsr)return c(v,("number"==typeof _&&(0,o.Et)(_)?_:0)+1);var A=[],E="top"===w||"bottom"===w?"width":"height",I=O&&"width"===E?(0,a.Pu)(O,{fontSize:e,letterSpacing:r}):{width:0,height:0},T=function(t,n){var o,s,c=i()(x)?x(t.value,n):t.value;return"width"===E?(o=(0,a.Pu)(c,{fontSize:e,letterSpacing:r}),s={width:o.width+I.width,height:o.height+I.height},(0,u.bx)(s,S)):(0,a.Pu)(c,{fontSize:e,letterSpacing:r})[E]},j=v.length>=2?(0,o.sA)(v[1].coordinate-v[0].coordinate):1,P=(n="width"===E,f=m.x,h=m.y,p=m.width,y=m.height,1===j?{start:n?f:h,end:n?f+p:h+y}:{start:n?f+p:h+y,end:n?f:h});return"equidistantPreserveStart"===_?function(t,e,r,n,i){for(var o,a=(n||[]).slice(),s=e.start,u=e.end,f=0,h=1,d=s;h<=a.length;)if(o=function(){var e,o=null==n?void 0:n[f];if(void 0===o)return{v:c(n,h)};var a=f,p=function(){return void 0===e&&(e=r(o,a)),e},y=o.coordinate,b=0===f||l(t,y,p,d,u);b||(f=0,d=s,h+=1),b&&(d=y+t*(p()/2+i),f+=h)}())return o.v;return[]}(j,P,T,v,g):("preserveStart"===_||"preserveStartEnd"===_?function(t,e,r,n,i,o){var a=(n||[]).slice(),s=a.length,u=e.start,c=e.end;if(o){var f=n[s-1],h=r(f,s-1),p=t*(f.coordinate+t*h/2-c);a[s-1]=f=d(d({},f),{},{tickCoord:p>0?f.coordinate-p*t:f.coordinate}),l(t,f.tickCoord,function(){return h},u,c)&&(c=f.tickCoord-t*(h/2+i),a[s-1]=d(d({},f),{},{isShow:!0}))}for(var y=o?s-1:s,b=function(e){var n,o=a[e],s=function(){return void 0===n&&(n=r(o,e)),n};if(0===e){var f=t*(o.coordinate-t*s()/2-u);a[e]=o=d(d({},o),{},{tickCoord:f<0?o.coordinate-f*t:o.coordinate})}else a[e]=o=d(d({},o),{},{tickCoord:o.coordinate});l(t,o.tickCoord,s,u,c)&&(u=o.tickCoord+t*(s()/2+i),a[e]=d(d({},o),{},{isShow:!0}))},v=0;v<y;v++)b(v);return a}(j,P,T,v,g,"preserveStartEnd"===_):function(t,e,r,n,i){for(var o=(n||[]).slice(),a=o.length,s=e.start,u=e.end,c=function(e){var n,c=o[e],f=function(){return void 0===n&&(n=r(c,e)),n};if(e===a-1){var h=t*(c.coordinate+t*f()/2-u);o[e]=c=d(d({},c),{},{tickCoord:h>0?c.coordinate-h*t:c.coordinate})}else o[e]=c=d(d({},c),{},{tickCoord:c.coordinate});l(t,c.tickCoord,f,s,u)&&(u=c.tickCoord-t*(f()/2+i),o[e]=d(d({},c),{},{isShow:!0}))},f=a-1;f>=0;f--)c(f);return o}(j,P,T,v,g)).filter(function(t){return t.isShow})}},69679:(t,e,r)=>{"use strict";r.d(e,{u:()=>M});var n=r(14232),i=r(19850),o=r.n(i),a=r(7766),s=r.n(a),u=r(69241),c=r(31208),l=r(51572),f=r(88172),h=r(19283),d=r(59421),p=r(4641),y=r(72804),b=r(69613),v=["viewBox"],m=["viewBox"],g=["ticks"];function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(){return(_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function x(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function O(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?x(Object(r),!0).forEach(function(e){j(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEac
1h(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function S(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,P(n.key),n)}}function E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(E=function(){return!!t})()}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function T(t,e){return(T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function j(t,e,r){return(e=P(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function P(t){var e=function(t,e){if("object"!=w(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=w(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==w(e)?e:e+""}var M=function(t){var e,r;function i(t){var e,r,n;if(!(this instanceof i))throw TypeError("Cannot call a class as a function");return r=i,n=[t],r=I(r),(e=function(t,e){if(e&&("object"===w(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,E()?Reflect.construct(r,n||[],I(this).constructor):r.apply(this,n))).state={fontSize:"",letterSpacing:""},e}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&T(i,t),e=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=S(t,v),i=this.props,o=i.viewBox,a=S(i,m);return!(0,c.b)(r,o)||!(0,c.b)(n,a)||!(0,c.b)(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,i,o,a,s=this.props,u=s.x,c=s.y,l=s.width,f=s.height,h=s.orientation,p=s.tickSize,y=s.mirror,b=s.tickMargin,v=y?-1:1,m=t.tickSize||p,g=(0,d.Et)(t.tickCoord)?t.tickCoord:t.coordinate;switch(h){case"top":e=r=t.coordinate,a=(n=(i=c+!y*f)-v*m)-v*b,o=g;break;case"left":n=i=t.coordinate,o=(e=(r=u+!y*l)-v*m)-v*b,a=g;break;case"right":n=i=t.coordinate,o=(e=(r=u+y*l)+v*m)+v*b,a=g;break;default:e=r=t.coordinate,a=(n=(i=c+y*f)+v*m)+v*b,o=g}return{line:{x1:e,y1:n,x2:r,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,i=t.width,o=t.height,a=t.orientation,c=t.mirror,l=t.axisLine,f=O(O(O({},(0,y.J9)(this.props,!1)),(0,y.J9)(l,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var h=+("top"===a&&!c||"bottom"===a&&c);f=O(O({},f),{},{x1:e,y1:r+h*o,x2:e+i,y2:r+h*o})}else{var d=+("left"===a&&!c||"right"===a&&c);f=O(O({},f),{},{x1:e+d*i,y1:r,x2:e+d*i,y2:r+o})}return n.createElement("line",_({},f,{className:(0,u.A)("recharts-cartesian-axis-line",s()(l,"className"))}))}},{key:"renderTicks",value:function(t,e,r){var a=this,c=this.props,f=c.tickLine,h=c.stroke,d=c.tick,v=c.tickFormatter,m=c.unit,g=(0,b.f)(O(O({},this.props),{},{ticks:t}),e,r),w=this.getTickTextAnchor(),x=this.getTickVerticalAnchor(),S=(0,y.J9)(this.props,!1),A=(0,y.J9)(d,!1),E=O(O({},S),{},{fill:"none"}
1,(0,y.J9)(f,!1)),I=g.map(function(t,e){var r=a.getTickLineCoord(t),c=r.line,y=r.tick,b=O(O(O(O({textAnchor:w,verticalAnchor:x},S),{},{stroke:"none",fill:h},A),y),{},{index:e,payload:t,visibleTicksCount:g.length,tickFormatter:v});return n.createElement(l.W,_({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},(0,p.XC)(a.props,t,e)),f&&n.createElement("line",_({},E,c,{className:(0,u.A)("recharts-cartesian-axis-tick-line",s()(f,"className"))})),d&&i.renderTickItem(d,b,"".concat(o()(v)?v(t.value,e):t.value).concat(m||"")))});return n.createElement("g",{className:"recharts-cartesian-axis-ticks"},I)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,i=e.width,a=e.height,s=e.ticksGenerator,c=e.className;if(e.hide)return null;var f=this.props,d=f.ticks,p=S(f,g),y=d;return(o()(s)&&(y=s(d&&d.length>0?this.props:p)),i<=0||a<=0||!y||!y.length)?null:n.createElement(l.W,{className:(0,u.A)("recharts-cartesian-axis",c),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),h.J.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(t,e,r){var i,a=(0,u.A)(e.className,"recharts-cartesian-axis-tick-value");return n.isValidElement(t)?n.cloneElement(t,O(O({},e),{},{className:a})):o()(t)?t(O(O({},e),{},{className:a})):n.createElement(f.E,_({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],e&&A(i.prototype,e),r&&A(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i}(n.Component);j(M,"displayName","CartesianAxis"),j(M,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"})},69750:(t,e,r)=>{var n=r(56751),i=r(29934),o=r(27136);t.exports=function(t){return o(t)?n(t):i(t)}},69990:(t,e,r)=>{"use strict";r.d(e,{J:()=>d,M:()=>y});var n=r(14232),i=r(69241),o=r(77340),a=r(72804);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(){return(u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var h=function(t,e,r,n,i){var o,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),s=n>=0?1:-1,u=r>=0?1:-1,c=+(n>=0&&r>=0||n<0&&r<0);if(a>0&&i instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+s*l[0]),l[0]>0&&(o+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(t+u*l[0],",").concat(e)),o+="L ".concat(t+r-u*l[1],",").concat(e),l[1]>0&&(o+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,",\n ").concat(t+r,",").concat(e+s*l[1])),o+="L ".concat(t+r,",").concat(e+n-s*l[2]),l[2]>0&&(o+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,",\n ").concat(t+r-u*l[2],",").concat(e+n)),o+="L ".concat(t+u*l[3],",").concat(e+n),l[3]>0&&(o+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,",\n ").concat(t,",").concat(e+n-s*l[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var h=Math.min(a,i);o="M ".concat(t,",").concat(e+s*h,"\n A ").concat(h,",").concat(h,",0,0,").concat(c,",").concat(t+u*h,",").concat(e,"\n L ").concat(t+r-u*h,",").concat(e,"\n A ").concat(h,",").concat(h,",0,0,").concat(c,",").concat(t+r,",").concat(e+s*h,"\n L ").concat(t+r,",").concat(e+n-s*h,"\n A ").concat(h,",").concat(h,",0,0,").concat(c,",").concat(t+r-u*h,",").concat(e+n,"\n L ").concat(t+u*h,",").concat(e+n,"\n A ").concat(h,",").concat(h,",0,0,").concat(c,",").concat(t,",").concat(e+n-s*h," Z")}else o="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return o},d=function(t,e){if(!t||!e)return!1;
1var r=t.x,n=t.y,i=e.x,o=e.y,a=e.width,s=e.height;if(Math.abs(a)>0&&Math.abs(s)>0){var u=Math.min(i,i+a),c=Math.max(i,i+a),l=Math.min(o,o+s),f=Math.max(o,o+s);return r>=u&&r<=c&&n>=l&&n<=f}return!1},p={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},y=function(t){var e,r=f(f({},p),t),s=(0,n.useRef)(),l=function(t){if(Array.isArray(t))return t}(e=(0,n.useState)(-1))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{o=(r=r.call(t)).next,!1;for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,2)||function(t,e){if(t){if("string"==typeof t)return c(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(t,e)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),d=l[0],y=l[1];(0,n.useEffect)(function(){if(s.current&&s.current.getTotalLength)try{var t=s.current.getTotalLength();t&&y(t)}catch(t){}},[]);var b=r.x,v=r.y,m=r.width,g=r.height,w=r.radius,_=r.className,x=r.animationEasing,O=r.animationDuration,S=r.animationBegin,A=r.isAnimationActive,E=r.isUpdateAnimationActive;if(b!==+b||v!==+v||m!==+m||g!==+g||0===m||0===g)return null;var I=(0,i.A)("recharts-rectangle",_);return E?n.createElement(o.Ay,{canBegin:d>0,from:{width:m,height:g,x:b,y:v},to:{width:m,height:g,x:b,y:v},duration:O,animationEasing:x,isActive:E},function(t){var e=t.width,i=t.height,c=t.x,l=t.y;return n.createElement(o.Ay,{canBegin:d>0,from:"0px ".concat(-1===d?1:d,"px"),to:"".concat(d,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:O,isActive:A,easing:x},n.createElement("path",u({},(0,a.J9)(r,!0),{className:I,d:h(c,l,e,i,w),ref:s})))}):n.createElement("path",u({},(0,a.J9)(r,!0),{className:I,d:h(b,v,m,g,w)}))}},70670:(t,e,r)=>{var n=r(29257),i=r(98978),o=r(27148);t.exports=function(t){return t&&t.length?n(t,o,i):void 0}},71266:(t,e,r)=>{var n=r(33872),i=r(28654);t.exports=function t(e,r,o,a,s){return e===r||(null!=e&&null!=r&&(i(e)||i(r))?n(e,r,o,a,t,s):e!=e&&r!=r)}},71598:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},71747:(t,e,r)=>{var n=r(95345),i=r(69750);t.exports=function(t,e){return t&&n(t,e,i)}},72115:(t,e,r)=>{t=r.nmd(t);var n=r(24298),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&n.process,s=function(){try{var t=o&&o.require&&o.require("util").types;if(t)return t;return a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},72200:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}},72287:(t,e,r)=>{"use strict";r.d(e,{Z:()=>A});var n=r(14232),i=r(19809),o=r.n(i),a=r(98825),s=r.n(a),u=r(19850),c=r.n(u),l=r(37114),f=r.n(l),h=r(19283),d=r(51572),p=r(72804),y=r(4886);function b(t){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var v=["valueAccessor"],m=["data","dataKey","clockWise","id","textBreakAll"];function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function w(){return(w=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function _(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function x(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?_(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=b(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=b(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==b(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function O(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var S=function(t){return Array.isArray(t.value)?f()(t.value):t.value};function A(t){var e=t.valueAccessor,r=void 0===e?S:e,i=O(t,v),a=i.data,s=i.dataKey,u=i.clockWise,c=i.id,l=i.textBreakAll,f=O(i,m);return a&&a.length?n.createElement(d.W,{className:"recharts-label-list"},a.map(function(t,e){var i=o()(s)?r(t,e):(0,y.kr)(t&&t.payload,s),a=o()(c)?{}:{id:"".concat(c,"-").concat(e)};return n.createElement(h.J,w({},(0,p.J9)(t,!0),f,a,{parentViewBox:t.parentViewBox,value:i,textBreakAll:l,viewBox:h.J.parseViewBox(o()(u)?t:x(x({},t),{},{clockWise:u})),key:"label-".concat(e),index:e}))})):null}A.displayName="LabelList",A.renderCallByParent=function(t,e){var r,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&i&&!t.label)return null;var o=t.children,a=(0,p.aS)(o,A).map(function(t,r){return(0,n.cloneElement)(t,{data:e,key:"labelList-".concat(r)})});return i?[(r=t.label,!r?null:!0===r?n.createElement(A,{key:"labelList-implicit",data:e}):n.isValidElement(r)||c()(r)?n.createElement(A,{key:"labelList-implicit",data:e,content:r}):s()(r)?n.createElement(A,w({data:e},r,{key:"labelList-implicit"})):null)].concat(function(t){if(Array.isArray(t))return g(t)}(a)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(a)||function(t,e){if(t){if("string"==typeof t)return g(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(t,e)}}(a)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):a}},72804:(t,e,r)=>{"use strict";r.d(e,{AW:()=>L,BU:()=>T,J9:()=>N,Me:()=>j,Mn:()=>O,OV:()=>k,X_:()=>R,aS:()=>I,ee:()=>C,sT:()=>M});var n=r(7766),i=r.n(n),o=r(19809),a=r.n(o),s=r(36827),u=r.n(s),c=r(19850),l=r.n(c),f=r(98825),h=r.n(f),d=r(14232),p=r(76194),y=r(59421),b=r(31208),v=r(4641),m=["children"],g=["children"];function w(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var x={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"}
1,O=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},S=null,A=null,E=function t(e){if(e===S&&Array.isArray(A))return A;var r=[];return d.Children.forEach(e,function(e){a()(e)||((0,p.isFragment)(e)?r=r.concat(t(e.props.children)):r.push(e))}),A=r,S=e,r};function I(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map(function(t){return O(t)}):[O(e)],E(t).forEach(function(t){var e=i()(t,"type.displayName")||i()(t,"type.name");-1!==n.indexOf(e)&&r.push(t)}),r}function T(t,e){var r=I(t,e);return r&&r[0]}var j=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!!(0,y.Et)(r)&&!(r<=0)&&!!(0,y.Et)(n)&&!(n<=0)},P=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],M=function(t){return t&&"object"===_(t)&&"clipDot"in t},D=function(t,e,r,n){var i,o=null!=(i=null===v.VU||void 0===v.VU?void 0:v.VU[n])?i:[];return e.startsWith("data-")||!l()(t)&&(n&&o.includes(e)||v.QQ.includes(e))||r&&v.j2.includes(e)},N=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,d.isValidElement)(t)&&(n=t.props),!h()(n))return null;var i={};return Object.keys(n).forEach(function(t){var o;D(null==(o=n)?void 0:o[t],t,e,r)&&(i[t]=n[t])}),i},k=function t(e,r){if(e===r)return!0;var n=d.Children.count(e);if(n!==d.Children.count(r))return!1;if(0===n)return!0;if(1===n)return B(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var o=e[i],a=r[i];if(Array.isArray(o)||Array.isArray(a)){if(!t(o,a))return!1}else if(!B(o,a))return!1}return!0},B=function(t,e){if(a()(t)&&a()(e))return!0;if(!a()(t)&&!a()(e)){var r=t.props||{},n=r.children,i=w(r,m),o=e.props||{},s=o.children,u=w(o,g);if(n&&s)return(0,b.b)(i,u)&&k(n,s);if(!n&&!s)return(0,b.b)(i,u)}return!1},C=function(t,e){var r=[],n={};return E(t).forEach(function(t,i){var o;if((o=t)&&o.type&&u()(o.type)&&P.indexOf(o.type)>=0)r.push(t);else if(t){var a=O(t.type),s=e[a]||{},c=s.handler,l=s.once;if(c&&(!l||!n[a])){var f=c(t,a,i);r.push(f),n[a]=!0}}}),r},R=function(t){var e=t&&t.type;return e&&x[e]?x[e]:null},L=function(t,e){return E(e).indexOf(t)}},75082:(t,e,r)=>{t.exports=r(19031).Uint8Array},75448:(t,e,r)=>{var n=r(72200),i=r(62075);t.exports=function t(e,r,o,a,s){var u=-1,c=e.length;for(o||(o=i),s||(s=[]);++u<c;){var l=e[u];r>0&&o(l)?r>1?t(l,r-1,o,a,s):n(s,l):a||(s[s.length]=l)}return s}},75631:(t,e,r)=>{var n=r(21854),i=r(51480),o=r(82180),a=r(12438);t.exports=function(t){return function(e){var r=i(e=a(e))?o(e):void 0,s=r?r[0]:e.charAt(0),u=r?n(r,1).join(""):e.slice(1);return s[t]()+u}}},75998:(t,e,r)=>{var n=r(2331);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}
1i.Cache=n,t.exports=i},76014:(t,e,r)=>{var n=r(89950),i=r(28654);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==n(t)}},76194:(t,e,r)=>{"use strict";t.exports=r(24694)},76217:(t,e,r)=>{var n=r(66521);t.exports=function(t){return n(this,t).has(t)}},76754:(t,e,r)=>{var n=r(3979);t.exports=function(t,e){var r;return n(t,function(t,n,i){return!(r=e(t,n,i))}),!!r}},77340:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>tS});var n=r(14232),i=r(95062),o=r.n(i),a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty;function c(t,e){return function(r,n,i){return t(r,n,i)&&e(r,n,i)}}function l(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var i=n.cache,o=i.get(e),a=i.get(r);if(o&&a)return o===r&&a===e;i.set(e,r),i.set(r,e);var s=t(e,r,n);return i.delete(e),i.delete(r),s}}function f(t){return a(t).concat(s(t))}var h=Object.hasOwn||function(t,e){return u.call(t,e)};function d(t,e){return t===e||!t&&!e&&t!=t&&e!=e}var p=Object.getOwnPropertyDescriptor,y=Object.keys;function b(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function v(t,e){return d(t.getTime(),e.getTime())}function m(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function g(t,e){return t===e}function w(t,e,r){var n,i,o=t.size;if(o!==e.size)return!1;if(!o)return!0;for(var a=Array(o),s=t.entries(),u=0;(n=s.next())&&!n.done;){for(var c=e.entries(),l=!1,f=0;(i=c.next())&&!i.done;){if(a[f]){f++;continue}var h=n.value,d=i.value;if(r.equals(h[0],d[0],u,f,t,e,r)&&r.equals(h[1],d[1],h[0],d[0],t,e,r)){l=a[f]=!0;break}f++}if(!l)return!1;u++}return!0}function _(t,e,r){var n=y(t),i=n.length;if(y(e).length!==i)return!1;for(;i-- >0;)if(!T(t,e,r,n[i]))return!1;return!0}function x(t,e,r){var n,i,o,a=f(t),s=a.length;if(f(e).length!==s)return!1;for(;s-- >0;)if(!T(t,e,r,n=a[s])||(i=p(t,n),o=p(e,n),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable)))return!1;return!0}function O(t,e){return d(t.valueOf(),e.valueOf())}function S(t,e){return t.source===e.source&&t.flags===e.flags}function A(t,e,r){var n,i,o=t.size;if(o!==e.size)return!1;if(!o)return!0;for(var a=Array(o),s=t.values();(n=s.next())&&!n.done;){for(var u=e.values(),c=!1,l=0;(i=u.next())&&!i.done;){if(!a[l]&&r.equals(n.value,i.value,n.value,i.value,t,e,r)){c=a[l]=!0;break}l++}if(!c)return!1}return!0}function E(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}function I(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function T(t,e,r,n){return("_owner"===n||"__o"===n||"__v"===n)&&(!!t.$$typeof||!!e.$$typeof)||h(e,n)&&r.equals(t[n],e[n],n,n,t,e,r)}var j=Array.isArray,P="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,M=Object.assign,D=Object.prototype.toString.call.bind(Object.prototype.toString),N=k();function k(t){void 0===t&&(t={});var e,r,n,i,o,a,s,u,f,h,p,y,T,N=t.circular,k=t.createInternalComparator,B=t.createState,C=t.strict,R=(r=(e=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,i={areArraysEqual:n?x:b,areDatesEqual:v,areErrorsEqual:m,areFunctionsEqual:g,areMapsEqual:n?c(w,x):w,areNumbersEqual:d,areObjectsEqual:n?x:_,arePrimitiveWrappersEqual:O,areRegExpsEqual:S,areSetsEqual:n?c(A,x):A,areTypedArraysEqual:n?x:E,areUrlsEqual:I};if(r&&(i=M({},i,r(i))),e){var o=l(i.areArraysEqual),a=l(i.areMapsEqual),s=l(i.areObjectsEqual),u=l(i.areSetsEqual);i=M({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:u})}return i}(t)).areArraysEqual,n=e.areDatesEqual,i=e.areErrorsEqual,o=e.areFunctionsEqual,a=e.areMapsEqual,s=e.areNumbersEqual,u=e.areObjectsEqual,f=e.arePrimitiveWrappersEqual,h=e.areRegExpsEqual,p=e.areSetsEqual,y=e.areTypedArraysEqual,T=e.areUrlsEqual,function(t,e,c){if(t===e)return!0;if(null==t||null==e)return!1;var l=typeof t;if(l!==typeof e)return!1;if("object"!==l)return"number"===l?s(t,e,c):"function"===l&&o(t,e,c);var d=t.constructor;if(d!==e.constructor)return!1;if(d===Object)return u(t,e,c);if(j(t))return r(t,e,c);if(null!=P&&P(t))return y(t,e,c);if(d===Date)return n(t,e,c);if(d===RegExp)return h(t,e,c);if(d===Map)return a(t,e,c);if(d===Set)return p(t,e,c);var b=D(t);return"[object Date]"===b?n(t,e,c):"[object RegExp]"===b?h(t,e,c):"[object Map]"===b?a(t,e,c):"[object Set]"===b?p(t,e,c):"[object Object]"===b?"function"!=typeof t.then&&"function"!=typeof e.then&&u(t,e,c):"[object URL]"===b?T(t,e,c):"[object Error]"===b?i(t,e,c):"[object Arguments]"===b?u(t,e,c):("[object Boolean]"===b||"[object Number]"===b||"[object String]"===b)&&f(t,e,c)}),L=k?k(R):function(t,e,r,n,i,o,a){return R(t,e,a)};return function(t){var e=t.circular,r=t.comparator,n=t.createState,i=t.equals,o=t.strict;if(n)return function(t,a){var s=n(),u=s.cache;return r(t,a,{cache:void 0===u?e?new WeakMap:void 0:u,equals:i,meta:s.meta,strict:o})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(t,e){return r(t,e,a)}}({circular:void 0!==N&&N,comparator:R,createState:B,equals:L,strict:void 0!==C&&C})}function B(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame(function n(i){if(r<0&&(r=i),i-r>e)t(i),r=-1;else{var o;o=n,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(o)}})}function C(t){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function R(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function L(t){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function F(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function U(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?F(Object(r),!0).forEach(function(e){z(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function z(t,e,r){var n;return(n=function(t,e){if("object"!==L(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==L(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"===L(n)?n:String(n))in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}k({strict:!0}),k({circular:!0}),k({circular:!0,strict:!0}),k({createInternalComparator:function(){return d}}),k({strict:!0,createInternalComparator:function(){return d}}),k({circular:!0,createInternalComparator:function(){return d}}),k({circular:!0,createInternalComparator:function(){return d},strict:!0});var V=function(t){return t},W=function(t,e){return Object.keys(e).reduce(function(r,n){return U(U({},r),{},z({},n,t(n,e[n])))},{})},$=function(t,e,r){return t.map(function(t){return"".concat(t.replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())})," ").concat(e,"ms ").concat(r)}).join(",")},Y=function(t,e,r,n,i,o,a,s){};function H(t,e){if(t){if("string"==typeof t)return G(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return G(t,e)}}function G(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var q=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},K=function(t,e){return t.map(function(t,r){return t*Math.pow(e,r)}).reduce(function(t,e){return t+e})},X=function(t,e){return function(r){return K(q(t,e),r)}},J=function(){for(var t,e,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var o=n[0],a=n[1],s=n[2],u=n[3];if(1===n.length)switch(n[0]){case"linear":o=0,a=0,s=1,u=1;break;case"ease":o=.25,a=.1,s=.25,u=1;break;case"ease-in":o=.42,a=0,s=1,u=1;break;case"ease-out":o=.42,a=0,s=.58,u=1;break;case"ease-in-out":o=0,a=0,s=.58,u=1;break;default:var c=n[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var l,f=function(t){if(Array.isArray(t))return t}(l=c[1].split(")")[0].split(",").map(function(t){return parseFloat(t)}))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{o=(r=r.call(t)).next,!1;for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(l,4)||H(l,4)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();o=f[0],a=f[1],s=f[2],u=f[3]}else Y(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",n)}Y([o,s,a,u].every(function(t){return"number"==typeof t&&t>=0&&t<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",n);var h=X(o,s),d=X(a,u),p=(t=o,e=s,function(r){var n;return K([].concat(function(t){if(Array.isArray(t))return G(t)}(n=q(t,e).map(function(t,e){return t*e}).slice(1))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||H(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),r)}),y=function(t){for(var e=t>1?1:t,r=e,n=0;n<8;++n){var i,o=h(r)-e,a=p(r);if(1e-4>Math.abs(o-e)||a<1e-4)break;r=(i=r-o/a)>1?1:i<0?0:i}return d(r)};return y.isStepper=!1,y},Q=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,i=void 0===n?8:n,o=t.dt,a=void 0===o?17:o,s=function(t,e,n){var o=n+(-(t-e)*r-n*i)*a/1e3,s=n*a/1e3+t;return 1e-4>Math.abs(s-e)&&1e-4>Math.abs(o)?[e,0]:[s,o]};return s.isStepper=!0,s.dt=a,s},Z=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return J(n);case"spring":return Q();
1default:if("cubic-bezier"===n.split("(")[0])return J(n);Y(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",e)}return"function"==typeof n?n:(Y(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function tt(t){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function te(t){return function(t){if(Array.isArray(t))return ta(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||to(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function tn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tr(Object(r),!0).forEach(function(e){ti(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tr(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ti(t,e,r){var n;return(n=function(t,e){if("object"!==tt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==tt(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"===tt(n)?n:String(n))in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function to(t,e){if(t){if("string"==typeof t)return ta(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ta(t,e)}}function ta(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var ts=function(t,e,r){return t+(e-t)*r},tu=function(t){return t.from!==t.to},tc=function t(e,r,n){var i=W(function(t,r){if(tu(r)){var n,i=function(t){if(Array.isArray(t))return t}(n=e(r.from,r.to,r.velocity))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{o=(r=r.call(t)).next,!1;for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(n,2)||to(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],a=i[1];return tn(tn({},r),{},{from:o,velocity:a})}return r},r);return n<1?W(function(t,e){return tu(e)?tn(tn({},e),{},{velocity:ts(e.velocity,i[t].velocity,n),from:ts(e.from,i[t].from,n)}):e},r):t(e,i,n-1)};let tl=function(t,e,r,n,i){var o,a,s=[Object.keys(t),Object.keys(e)].reduce(function(t,e){return t.filter(function(t){return e.includes(t)})}),u=s.reduce(function(r,n){return tn(tn({},r),{},ti({},n,[t[n],e[n]]))},{}),c=s.reduce(function(r,n){return tn(tn({},r),{},ti({},n,{from:t[n],velocity:0,to:e[n]}))},{}),l=-1,f=function(){return null};return f=r.isStepper?function(n){o||(o=n);var a=(n-o)/r.dt;c=tc(r,c,a),i(tn(tn(tn({},t),e),W(function(t,e){return e.from},c))),o=n,Object.values(c).filter(tu).length&&(l=requestAnimationFrame(f))}:function(o){a||(a=o);var s=(o-a)/n,c=W(function(t,e){return ts.apply(void 0,te(e).concat([r(s)]))},u);if(i(tn(tn(tn({},t),e),c)),s<1)l=requestAnimationFrame(f);else{var h=W(function(t,e){return ts.apply(void 0,te(e).concat([r(1)]))},u);i(tn(tn(tn({},t),e),h))}},function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}};function tf(t){return(tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var th=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function td(t){return function(t){if(Array.isArray(t))return tp(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return tp(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tp(t,e)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function ty(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function tb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?ty(Object(r),!0).forEach(function(e){tv(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ty(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function tv(t,e,r){return(e=tm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tm(t){var e=function(t,e){if("object"!==tf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==tf(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===tf(e)?e:String(e)}function tg(t,e){return(tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function tw(t,e){if(e&&("object"===tf(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return t_(t)}function t_(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tx(t){return(tx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var tO=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),t&&tg(o,t);var e,r,i=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,r=tx(o);return t=e?Reflect.construct(r,arguments,tx(this).constructor):r.apply(this,arguments),tw(this,t)});function o(t,e){if(!(this instanceof o))throw TypeError("Cannot call a class as a function");var r=i.call(this,t,e),n=r.props,a=n.isActive,s=n.attributeName,u=n.from,c=n.to,l=n.steps,f=n.children,h=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(t_(r)),r.changeStyle=r.changeStyle.bind(t_(r)),!a||h<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:c}),tw(r);if(l&&l.length)r.state={style:l[0].style};else if(u){if("function"==typeof f)return r.state={style:u},tw(r);r.state={style:s?tv({},s,u):u}}else r.state={style:{}};return r}return r=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,i=e.attributeName,o=e.shouldReAnimate,a=e.to,s=e.from,u=this.state.style;if(n){if(!r){var c={style:i?tv({},i,a):a};this.state&&u&&(i&&u[i]!==a||!i&&u!==a)&&this.setState(c);return}if(!N(t.to,a)||!t.canBegin||!t.isActive){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var f=l||o?s:t.to;if(this.state&&u){var h={style:i?tv({},i,f):f};(i&&u[i]!==f||!i&&u!==f)&&this.setState(h)}this.runAnimation(tb(tb({},this.props),{},{from:f,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,i=t.duration,o=t.easing,a=t.begin,s=t.onAnimationEnd,u=t.onAnimationStart,c=tl(r,n,Z(o),i,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=c()},i,s])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,i=t.onAnimationStart,o=r[0],a=o.style,s=o.duration;return this.manager.start([i].concat(td(r.reduce(function(t,n,i){if(0===i)return t;var o=n.duration,a=n.easing,s=void 0===a?"ease":a,u=n.style,c=n.properties,l=n.onAnimationEnd,f=i>0?r[i-1]:n,h=c||Object.keys(u);if("function"==typeof s||"spring"===s)return[].concat(td(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:o,easing:s}),o]);var d=$(h,o,s),p=tb(tb(tb({},f.style),u),{},{transition:d});return[].concat(td(t),[p,o,l]).filter(V)},[a,Math.max(void 0===s?0:s,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=(r=function(){return null}
1,n=!1,i=function t(e){if(!n){if(Array.isArray(e)){if(!e.length)return;var i=function(t){if(Array.isArray(t))return t}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return R(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return R(t,e)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],a=i.slice(1);return"number"==typeof o?void B(t.bind(null,a),o):(t(o),void B(t.bind(null,a)))}"object"===C(e)&&r(e),"function"==typeof e&&e()}},{stop:function(){n=!0},start:function(t){n=!1,i(t)},subscribe:function(t){return r=t,function(){r=function(){return null}}}}));var e,r,n,i,o=t.begin,a=t.duration,s=t.attributeName,u=t.to,c=t.easing,l=t.onAnimationStart,f=t.onAnimationEnd,h=t.steps,d=t.children,p=this.manager;if(this.unSubscribe=p.subscribe(this.handleStyleChange),"function"==typeof c||"function"==typeof d||"spring"===c)return void this.runJSAnimation(t);if(h.length>1)return void this.runStepAnimation(t);var y=s?tv({},s,u):u,b=$(Object.keys(y),a,c);p.start([l,o,tb(tb({},y),{},{transition:b}),a,f])}},{key:"render",value:function(){var t=this.props,e=t.children,r=(t.begin,t.duration),i=(t.attributeName,t.easing,t.isActive),o=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,th)),a=n.Children.count(e),s=this.state.style;if("function"==typeof e)return e(s);if(!i||0===a||r<=0)return e;var u=function(t){var e=t.props,r=e.style,i=e.className;return(0,n.cloneElement)(t,tb(tb({},o),{},{style:tb(tb({},void 0===r?{}:r),s),className:i}))};return 1===a?u(n.Children.only(e)):n.createElement("div",null,n.Children.map(e,function(t){return u(t)}))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,tm(n.key),n)}}(o.prototype,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(n.PureComponent);tO.displayName="Animate",tO.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},tO.propTypes={from:o().oneOfType([o().object,o().string]),to:o().oneOfType([o().object,o().string]),attributeName:o().string,duration:o().number,begin:o().number,easing:o().oneOfType([o().string,o().func]),steps:o().arrayOf(o().shape({duration:o().number.isRequired,style:o().object.isRequired,easing:o().oneOfType([o().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),o().func]),properties:o().arrayOf("string"),onAnimationEnd:o().func})),children:o().oneOfType([o().node,o().func]),isActive:o().bool,canBegin:o().bool,onAnimationEnd:o().func,shouldReAnimate:o().bool,onAnimationStart:o().func,onAnimationReStart:o().func};let tS=tO},78483:t=>{t.exports=function(t){return this.__data__.get(t)}},78499:(t,e,r)=>{"use strict";r.d(e,{y:()=>U});var n=r(14232),i=r(69241),o=r(77340),a=r(41946),s=r.n(a),u=r(19809),c=r.n(u),l=r(51572),f=r(99520),h=function(t){return null};h.displayName="Cell";var d=r(72287),p=r(59421),y=r(72804),b=r(53995),v=r(4886),m=r(4641),g=r(28752),w=r(45073),_=["x","y"];function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function O(){return(O=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function S(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function A(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?S(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=x(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=x(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==x(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function E(t,e){var r=t.x,n=t.y,i=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,_),o=parseInt("".concat(r),10),a=parseInt("".concat(n),10),s=parseInt("".concat(e.height||i.height),10),u=parseInt("".concat(e.width||i.width),10);return A(A(A(A(A({},e),i),o?{x:o}:{}),a?{y:a}:{}),{},{height:s,width:u,name:e.name,radius:e.radius})}function I(t){return n.createElement(w.yp,O({shapeType:"rectangle",propTransformer:E,activeClassName:"recharts-active-bar"},t))}var T=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var i=(0,p.Et)(r)||(0,p.uy)(r);return i?t(r,n):(i||(0,g.A)(!1),e)}},j=["value","background"];function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function M(){return(M=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function D(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function N(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?D(Object(r),!0).forEach(function(e){L(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function k(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,F(n.key),n)}}function B(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(B=function(){return!!t})()}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function R(t,e){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function L(t,e,r){return(e=F(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function F(t){var e=function(t,e){if("object"!=P(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=P(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==P(e)?e:e+""}var U=function(t){var e,r;function a(){var t,e,r;if(!(this instanceof a))throw TypeError("Cannot call a class as a function");for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e=a,r=[].concat(i),e=C(e),L(t=function(t,e){if(e&&("object"===P(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,B()?Reflect.construct(e,r||[],C(this).constructor):e.apply(this,r)),"state",{isAnimationFinished:!1}),L(t,"id",(0,p.NF)("recharts-bar-")),L(t,"handleAnimationEnd",function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()}),L(t,"handleAnimationStart",function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()}),t}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return a.prototype=Object.create(t&&t.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),t&&R(a,t),e=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,i=r.shape,o=r.dataKey,a=r.activeIndex,s=r.activeBar,u=(0,y.J9)(this.props,!1);return t&&t.map(function(t,r){var c=r===a,f=N(N(N({},u),t),{},{isActive:c,option:c?s:i,index:r,dataKey:o,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return n.createElement(l.W,M({className:"recharts-bar-rectangle"},(0,m.XC)(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value,"-").concat(r)}),n.createElement(I,f))})}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,i=e.layout,a=e.isAnimationActive,s=e.animationBegin,u=e.animationDuration,c=e.animationEasing,f=e.animationId,h=this.state.prevData;return n.createElement(o.Ay,{begin:s,duration:u,isActive:a,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(e){var o=e.t,a=r.map(function(t,e){var r=h&&h[e];if(r){var n=(0,p.Dj)(r.x,t.x),a=(0,p.Dj)(r.y,t.y),s=(0,p.Dj)(r.width,t.width),u=(0,p.Dj)(r.height,t.height);return N(N({},t),{},{x:n(o),y:a(o),width:s(o),height:u(o)})}if("horizontal"===i){var c=(0,p.Dj)(0,t.height)(o);return N(N({},t),{},{y:t.y+t.height-c,height:c})}var l=(0,p.Dj)(0,t.width)(o);return N(N({},t),{},{width:l})});return n.createElement(l.W,null,t.renderRectanglesStatically(a))})}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return r&&e&&e.length&&(!n||!s()(n,e))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(e)}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,i=e.dataKey,o=e.activeIndex,a=(0,y.J9)(this.props.background,!1);return r.map(function(e,r){e.value;var s=e.background,u=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(e,j);if(!s)return null;var c=N(N(N(N(N({},u),{},{fill:"#eee"},s),a),(0,m.XC)(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:i,index:r,className:"recharts-bar-background-rectangle"});return n.createElement(I,M({key:"background-bar-".concat(r),option:t.props.background,isActive:r===o},c))})}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.data,o=r.xAxis,a=r.yAxis,s=r.layout,u=r.children,c=(0,y.aS)(u,f.u);if(!c)return null;var h="vertical"===s?i[0].height/2:i[0].width/2,d=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:(0,v.kr)(t,e)}};return n.createElement(l.W,{clipPath:t?"url(#clipPath-".concat(e,")"):null},c.map(function(t){return n.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:i,xAxis:o,yAxis:a,layout:s,offset:h,dataPointFormatter:d})}))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,o=t.className,a=t.xAxis,s=t.yAxis,u=t.left,f=t.top,h=t.width,p=t.height,y=t.isAnimationActive,b=t.background,v=t.i
1d;if(e||!r||!r.length)return null;var m=this.state.isAnimationFinished,g=(0,i.A)("recharts-bar",o),w=a&&a.allowDataOverflow,_=s&&s.allowDataOverflow,x=w||_,O=c()(v)?this.id:v;return n.createElement(l.W,{className:g},w||_?n.createElement("defs",null,n.createElement("clipPath",{id:"clipPath-".concat(O)},n.createElement("rect",{x:w?u:u-h/2,y:_?f:f-p/2,width:w?h:2*h,height:_?p:2*p}))):null,n.createElement(l.W,{className:"recharts-bar-rectangles",clipPath:x?"url(#clipPath-".concat(O,")"):null},b?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(x,O),(!y||m)&&d.Z.renderCallByParent(this.props,r))}}],r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],e&&k(a.prototype,e),r&&k(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(n.PureComponent);L(U,"displayName","Bar"),L(U,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!b.m.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),L(U,"getComposedData",function(t){var e=t.props,r=t.item,n=t.barPosition,i=t.bandSize,o=t.xAxis,a=t.yAxis,s=t.xAxisTicks,u=t.yAxisTicks,c=t.stackedData,l=t.dataStartIndex,f=t.displayedData,d=t.offset,b=(0,v.xi)(n,r);if(!b)return null;var m=e.layout,g=r.type.defaultProps,w=void 0!==g?N(N({},g),r.props):r.props,_=w.dataKey,x=w.children,O=w.minPointSize,S="horizontal"===m?a:o,A=c?S.scale.domain():null,E=(0,v.DW)({numericAxis:S}),I=(0,y.aS)(x,h),j=f.map(function(t,e){c?f=(0,v._f)(c[l+e],A):Array.isArray(f=(0,v.kr)(t,_))||(f=[E,f]);var n=T(O,U.defaultProps.minPointSize)(f[1],e);if("horizontal"===m){var f,h,d,y,g,w,x,S=[a.scale(f[0]),a.scale(f[1])],j=S[0],P=S[1];h=(0,v.y2)({axis:o,ticks:s,bandSize:i,offset:b.offset,entry:t,index:e}),d=null!=(x=null!=P?P:j)?x:void 0,y=b.size;var M=j-P;if(g=Number.isNaN(M)?0:M,w={x:h,y:a.y,width:y,height:a.height},Math.abs(n)>0&&Math.abs(g)<Math.abs(n)){var D=(0,p.sA)(g||n)*(Math.abs(n)-Math.abs(g));d-=D,g+=D}}else{var k=[o.scale(f[0]),o.scale(f[1])],B=k[0],C=k[1];if(h=B,d=(0,v.y2)({axis:a,ticks:u,bandSize:i,offset:b.offset,entry:t,index:e}),y=C-B,g=b.size,w={x:o.x,y:d,width:o.width,height:g},Math.abs(n)>0&&Math.abs(y)<Math.abs(n)){var R=(0,p.sA)(y||n)*(Math.abs(n)-Math.abs(y));y+=R}}return N(N(N({},t),{},{x:h,y:d,width:y,height:g,value:c?f:f[1],payload:t,background:w},I&&I[e]&&I[e].props),{},{tooltipPayload:[(0,v.zb)(r,t)],tooltipPosition:{x:h+y/2,y:d+g/2}})});return N({data:j,layout:m},d)})},78583:(t,e,r)=>{var n=r(48872),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,o,a,s){var u=1&r,c=n(t),l=c.length;if(l!=n(e).length&&!u)return!1;for(var f=l;f--;){var h=c[f];if(!(u?h in e:i.call(e,h)))return!1}var d=s.get(t),p=s.get(e);if(d&&p)return d==e&&p==t;var y=!0;s.set(t,e),s.set(e,t);for(var b=u;++f<l;){var v=t[h=c[f]],m=e[h];if(o)var g=u?o(m,v,h,e,t,s):o(v,m,h,t,e,s);if(!(void 0===g?v===m||a(v,m,r,o,s):g)){y=!1;break}b||(b="constructor"==h)}if(y&&!b){var w=t.constructor,_=e.constructor;w!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _)&&(y=!1)}return s.delete(t),s.delete(e),y}},78598:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},79036:(t,e,r)=>{"use strict";function n(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}r.d(e,{A:()=>n}),Array.prototype.slice},79364:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},79706:(t,e,r)=>{"use strict";var n=r(3717);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,r,i,o,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i}
1;return r.PropTypes=r,r}},80252:(t,e,r)=>{"use strict";r.d(e,{u:()=>p});var n=r(69241),i=r(14232),o=r(80782),a=r.n(o),s=r(59421),u=r(18947),c=r(72804);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=l(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var p=(0,i.forwardRef)(function(t,e){var r,o=t.aspect,l=t.initialDimension,f=void 0===l?{width:-1,height:-1}:l,p=t.width,y=void 0===p?"100%":p,b=t.height,v=void 0===b?"100%":b,m=t.minWidth,g=void 0===m?0:m,w=t.minHeight,_=t.maxHeight,x=t.children,O=t.debounce,S=void 0===O?0:O,A=t.id,E=t.className,I=t.onResize,T=t.style,j=(0,i.useRef)(null),P=(0,i.useRef)();P.current=I,(0,i.useImperativeHandle)(e,function(){return Object.defineProperty(j.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),j.current},configurable:!0})});var M=function(t){if(Array.isArray(t))return t}(r=(0,i.useState)({containerWidth:f.width,containerHeight:f.height}))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{o=(r=r.call(t)).next,!1;for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(r,2)||function(t,e){if(t){if("string"==typeof t)return d(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(t,e)}}(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),D=M[0],N=M[1],k=(0,i.useCallback)(function(t,e){N(function(r){var n=Math.round(t),i=Math.round(e);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]);(0,i.useEffect)(function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,i=r.height;k(n,i),null==(e=P.current)||e.call(P,n,i)};S>0&&(t=a()(t,S,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=j.current.getBoundingClientRect();return k(r.width,r.height),e.observe(j.current),function(){e.disconnect()}},[k,S]);var B=(0,i.useMemo)(function(){var t=D.containerWidth,e=D.containerHeight;if(t<0||e<0)return null;(0,u.R)((0,s._3)(y)||(0,s._3)(v),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",y,v),(0,u.R)(!o||o>0,"The aspect(%s) must be greater than zero.",o);var r=(0,s._3)(y)?t:y,n=(0,s._3)(v)?e:v;o&&o>0&&(r?n=r/o:n&&(r=n*o),_&&n>_&&(n=_)),(0,u.R)(r>0||n>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,n,y,v,g,w,o);var a=!Array.isArray(x)&&(0,c.Mn)(x.type).endsWith("Chart");return i.Children.map(x,function(t){return i.isValidElement(t)?(0,i.cloneElement)(t,h({width:r,height:n},a?{style:h({height:"100%",width:"100%",maxHeight:n,maxWidth:r},t.props.style)}:{})):t})},[o,x,v,_,w,g,D,y]);return i.createElement("div",{id:A?"".concat(A):void 0,className:(0,n.A)("recharts-responsive-container",E),style:h(h({},void 0===T?{}:T),{},{width:y,height:v,minWidth:g,minHeight:w,maxHeight:_}),ref:j},B)})},80505:(t,e,r)=>{var n=r(75448),i=r(16968);t.exports=function(t,e){return n(i(t,e),1)}},80782:(t,e,r)=>{var n=r(4917),i=r(98825);t.exports=function(t,e,r){var o=!0,a=!0;if("function"!=typeof t)throw TypeError("Expected a function");return i(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:o,maxWait:e,trailing:a})}},82180:(t,e,r)=>{var n=r(84204),i=r(51480),o=r(11220);t.exports=function(t){return i(t)?o(t):n(t)}},82514:(t,e,r)=>{"use strict";r.d(e,{s:()=>s});var n=r(25702),i=r.n(n),o=r(19850),a=r.n(o);function s(t,e,r){return!0===e?i()(t,r):a()(e)?i()(t,e):t}},82675:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},82731:(t,e,r)=>{var n=r(91667),i=r(99969),o=r(72115),a=o&&o.isTypedArray;t.exports=a?i(a):n},83611:(t,e,r)=>{var n=r(27136);t.exports=function(t,e){return function(r,i){if(null==r)return r;if(!n(r))return t(r,i);for(var o=r.length,a=e?o:-1,s=Object(r);(e?a--:++a<o)&&!1!==i(s[a],a,s););return r}}},83720:(t,e,r)=>{var n=r(27148),i=r(84739),o=r(89161);t.exports=function(t,e){return o(i(t,e,n),t+"")}},83995:(t,e,r)=>{var n=r(54355),i=r(47871),o=r(13051),a=Math.max;t.exports=function(t,e,r){var s=null==t?0:t.length;if(!s)return -1;var u=null==r?0:o(r);return u<0&&(u=a(s+u,0)),n(t,i(e,3),u)}},84204:t=>{t.exports=function(t){return t.split("")}},84237:(t,e,r)=>{"use strict";function n(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function i(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function o(){}r.d(e,{Ay:()=>g,Qh:()=>x});var a="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,l=RegExp(`^rgb\\(${a},${a},${a}\\)$`),f=RegExp(`^rgb\\(${u},${u},${u}\\)$`),h=RegExp(`^rgba\\(${a},${a},${a},${s}\\)$`),d=RegExp(`^rgba\\(${u},${u},${u},${s}\\)$`),p=RegExp(`^hsl\\(${s},${u},${u}\\)$`),y=RegExp(`^hsla\\(${s},${u},${u},${s}\\)$`),b={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function v(){return this.rgb().formatHex()}function m(){return this.rgb().formatRgb()}function g(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=c.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?w(e):3===r?new O(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?_(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?_(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=l.exec(t))?new O(e[1],e[2],e[3],1):(e=f.exec(t))?new O(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=h.exec(t))?_(e[1],e[2],e[3],e[4]):(e=d.exec(t))?_(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=p.exec(t))?j(e[1],e[2]/100,e[3]/100,1):(e=y.exec(t))?j(e[1],e[2]/100,e[3]/100,e[4]):b.hasOwnProperty(t)?w(b[t]):"transparent"===t?new O(NaN,NaN,NaN,0):null}function w(t){return new O(t>>16&255,t>>8&255,255&t,1)}function _(t,e,r,n){return n<=0&&(t=e=r=NaN),new O(t,e,r,n)}function x(t,e,r,n){var i;return 1==arguments.length?((i=t)instanceof o||(i=g(i)),i)?new O((i=i.rgb()).r,i.g,i.b,i.opacity):new O:new O(t,e,r,null==n?1:n)}function O(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function S(){return`#${T(this.r)}${T(this.g)}${T(this.b)}`}function A(){let t=E(this.opacity);return`${1===t?"rgb(":"rgba("}${I(this.r)}, ${I(this.g)}, ${I(this.b)}${1===t?")":`, ${t})`}`}function E(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function I(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function T(t){return((t=I(t))<16?"0":"")+t.toString(16)}function j(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new M(t,e,r,n)}function P(t){if(t instanceof M)return new M(t.h,t.s,t.l,t.opacity);if(t instanceof o||(t=g(t)),!t)return new M;if(t instanceof M)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),a=Math.max(e,r,n),s=NaN,u=a-i,c=(a+i)/2;return u?(s=e===a?(r-n)/u+(r<n)*6:r===a?(n-e)/u+2:(e-r)/u+4,u/=c<.5?a+i:2-a-i,s*=60):u=c>0&&c<1?0:s,new M(s,u,c,t.opacity)}function M(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function D(t){return(t=(t||0)%360)<0?t+360:t}
1function N(t){return Math.max(0,Math.min(1,t||0))}function k(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}n(o,g,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:v,formatHex:v,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return P(this).formatHsl()},formatRgb:m,toString:m}),n(O,x,i(o,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new O(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new O(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new O(I(this.r),I(this.g),I(this.b),E(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:S,formatHex:S,formatHex8:function(){return`#${T(this.r)}${T(this.g)}${T(this.b)}${T((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:A,toString:A})),n(M,function(t,e,r,n){return 1==arguments.length?P(t):new M(t,e,r,null==n?1:n)},i(o,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new M(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new M(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new O(k(t>=240?t-240:t+120,i,n),k(t,i,n),k(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new M(D(this.h),N(this.s),N(this.l),E(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=E(this.opacity);return`${1===t?"hsl(":"hsla("}${D(this.h)}, ${100*N(this.s)}%, ${100*N(this.l)}%${1===t?")":`, ${t})`}`}}))},84739:(t,e,r)=>{var n=r(6677),i=Math.max;t.exports=function(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a<s;)u[a]=o[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=o[a];return c[e]=r(u),n(t,this,c)}}},84758:(t,e,r)=>{"use strict";r.d(e,{d:()=>j});var n=r(14232),i=r(19850),o=r.n(i),a=r(18947),s=r(59421),u=r(72804),c=r(4886),l=r(69613),f=r(69679),h=r(93680),d=["x1","y1","x2","y2","key"],p=["offset"];function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=y(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=y(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==y(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function m(){return(m=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function g(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var w=function(t){var e=t.fill;if(!e||"none"===e)return null;var r=t.fillOpacity,i=t.x,o=t.y,a=t.width,s=t.height,u=t.ry;return n.createElement("rect",{x:i,y:o,ry:u,width:a,height:s,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function _(t,e){var r;if(n.isValidElement(t))r=n.cloneElement(t,e);else if(o()(t))r=t(e);else{var i=e.x1,a=e.y1,s=e.x2,c=e.y2,l=e.key,f=g(e,d),h=(0,u.J9)(f,!1),y=(h.offset,g(h,p));
1r=n.createElement("line",m({},y,{x1:i,y1:a,x2:s,y2:c,fill:"none",key:l}))}return r}function x(t){var e=t.x,r=t.width,i=t.horizontal,o=void 0===i||i,a=t.horizontalPoints;if(!o||!a||!a.length)return null;var s=a.map(function(n,i){return _(o,v(v({},t),{},{x1:e,y1:n,x2:e+r,y2:n,key:"line-".concat(i),index:i}))});return n.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function O(t){var e=t.y,r=t.height,i=t.vertical,o=void 0===i||i,a=t.verticalPoints;if(!o||!a||!a.length)return null;var s=a.map(function(n,i){return _(o,v(v({},t),{},{x1:n,y1:e,x2:n,y2:e+r,key:"line-".concat(i),index:i}))});return n.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function S(t){var e=t.horizontalFill,r=t.fillOpacity,i=t.x,o=t.y,a=t.width,s=t.height,u=t.horizontalPoints,c=t.horizontal;if(!(void 0===c||c)||!e||!e.length)return null;var l=u.map(function(t){return Math.round(t+o-o)}).sort(function(t,e){return t-e});o!==l[0]&&l.unshift(0);var f=l.map(function(t,u){var c=l[u+1]?l[u+1]-t:o+s-t;if(c<=0)return null;var f=u%e.length;return n.createElement("rect",{key:"react-".concat(u),y:t,x:i,height:c,width:a,stroke:"none",fill:e[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return n.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function A(t){var e=t.vertical,r=t.verticalFill,i=t.fillOpacity,o=t.x,a=t.y,s=t.width,u=t.height,c=t.verticalPoints;if(!(void 0===e||e)||!r||!r.length)return null;var l=c.map(function(t){return Math.round(t+o-o)}).sort(function(t,e){return t-e});o!==l[0]&&l.unshift(0);var f=l.map(function(t,e){var c=l[e+1]?l[e+1]-t:o+s-t;if(c<=0)return null;var f=e%r.length;return n.createElement("rect",{key:"react-".concat(e),x:t,y:a,width:c,height:u,stroke:"none",fill:r[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return n.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var E=function(t,e){var r=t.xAxis,n=t.width,i=t.height,o=t.offset;return(0,c.PW)((0,l.f)(v(v(v({},f.u.defaultProps),r),{},{ticks:(0,c.Rh)(r,!0),viewBox:{x:0,y:0,width:n,height:i}})),o.left,o.left+o.width,e)},I=function(t,e){var r=t.yAxis,n=t.width,i=t.height,o=t.offset;return(0,c.PW)((0,l.f)(v(v(v({},f.u.defaultProps),r),{},{ticks:(0,c.Rh)(r,!0),viewBox:{x:0,y:0,width:n,height:i}})),o.top,o.top+o.height,e)},T={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function j(t){var e,r,i,u,c,l,f=(0,h.yi)(),d=(0,h.rY)(),p=(0,h.hj)(),b=v(v({},t),{},{stroke:null!=(e=t.stroke)?e:T.stroke,fill:null!=(r=t.fill)?r:T.fill,horizontal:null!=(i=t.horizontal)?i:T.horizontal,horizontalFill:null!=(u=t.horizontalFill)?u:T.horizontalFill,vertical:null!=(c=t.vertical)?c:T.vertical,verticalFill:null!=(l=t.verticalFill)?l:T.verticalFill,x:(0,s.Et)(t.x)?t.x:p.left,y:(0,s.Et)(t.y)?t.y:p.top,width:(0,s.Et)(t.width)?t.width:p.width,height:(0,s.Et)(t.height)?t.height:p.height}),g=b.x,_=b.y,j=b.width,P=b.height,M=b.syncWithTicks,D=b.horizontalValues,N=b.verticalValues,k=(0,h.pj)(),B=(0,h.$G)();if(!(0,s.Et)(j)||j<=0||!(0,s.Et)(P)||P<=0||!(0,s.Et)(g)||g!==+g||!(0,s.Et)(_)||_!==+_)return null;var C=b.verticalCoordinatesGenerator||E,R=b.horizontalCoordinatesGenerator||I,L=b.horizontalPoints,F=b.verticalPoints;if((!L||!L.length)&&o()(R)){var U=D&&D.length,z=R({yAxis:B?v(v({},B),{},{ticks:U?D:B.ticks}):void 0,width:f,height:d,offset:p},!!U||M);(0,a.R)(Array.isArray(z),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(y(z),"]")),Array.isArray(z)&&(L=z)}if((!F||!F.length)&&o()(C)){var V=N&&N.length,W=C({xAxis:k?v(v({},k),{},{ticks:V?N:k.ticks}):void 0,width:f,height:d,offset:p},!!V||M);(0,a.R)(Array.isArray(W),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(y(W),"]")),Array.isArray(W)&&(F=W)}return n.createElement("g",{className:"recharts-cartesian-grid"},n.createElement(w,{fill:b.fill,fillOpacity:b.fillOpacity,x:b.x,y:b.y,width:b.width,height:b.height,ry:b.ry}),n.createElement(x,m({},b,{offset:p,horizontalPoints:L,xAxis:k,yAxis:B})),n.createElement(O,m({},b,{offset:p,verticalPoints:F,xAxis:k,yAxis:B})),n.createElement(S,m({},b,{horizontalPoints:L})),n.createElement(A,m({},b,{verticalPoints:F})))}
1j.displayName="CartesianGrid"},84779:(t,e,r)=>{var n=r(53512),i=r(58528),o=r(6618),a=r(33065),s=r(68329);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},85590:(t,e,r)=>{var n=r(89950),i=r(28654);t.exports=function(t){return i(t)&&"[object Arguments]"==n(t)}},87371:(t,e,r)=>{"use strict";let n;function i(t,e,r,n){return new(r||(r=Promise))(function(i,o){function a(t){try{u(n.next(t))}catch(t){o(t)}}function s(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,s)}u((n=n.apply(t,e||[])).next())})}r.d(e,{Ed:()=>ob,Cr:()=>oa,vP:()=>oI,DF:()=>ok}),Object.create;function o(t){return this instanceof o?(this.v=t,this):new o(t)}function a(t,e,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(t,e||[]),a=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(t){return function(e){return Promise.resolve(e).then(t,l)}}),n[Symbol.asyncIterator]=function(){return this},n;function s(t,e){i[t]&&(n[t]=function(e){return new Promise(function(r,n){a.push([t,e,r,n])>1||u(t,e)})},e&&(n[t]=e(n[t])))}function u(t,e){try{var r;(r=i[t](e)).value instanceof o?Promise.resolve(r.value.v).then(c,l):f(a[0][2],r)}catch(t){f(a[0][3],t)}}function c(t){u("next",t)}function l(t){u("throw",t)}function f(t,e){t(e),a.shift(),a.length&&u(a[0][0],a[0][1])}}function s(t){var e,r;return e={},n("next"),n("throw",function(t){throw t}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,i){e[n]=t[n]?function(e){return(r=!r)?{value:o(t[n](e)),done:!1}:i?i(e):e}:i}}function u(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise(function(n,i){var o,a,s;o=n,a=i,s=(e=t[r](e)).done,Promise.resolve(e.value).then(function(t){o({value:t,done:s})},a)})}}}Object.create,"function"==typeof SuppressedError&&SuppressedError,!function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth",t[t.DurationSecond=-27]="DurationSecond",t[t.DurationMillisecond=-28]="DurationMillisecond",t[t.DurationMicrosecond=-29]="DurationMicrosecond",t[t.DurationNanosecond=-30]="DurationNanosecond"}(iz||(iz={})),function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(iV||(iV={}));let c=void 0;function l(t){if(null===t)return"null";if(t===c)return"undefined";switch(typeof t){case"number":case"bigint":return`${t}`;case"string":return`"${t}"`}return"function"==typeof t[Symbol.toPrimitive]?t[Symbol.toPrimitive]("string"):ArrayBuffer.isView(t)?t instanceof BigInt64Array||t instanceof BigUint64Array?`[${[...t].map(t=>l(t))}]`:`[${t}]`:ArrayBuffer.isView(t)?`[${t}]`:JSON.stringify(t,(t,e)=>"bigint"==typeof e?`${e}`:e)}let f=new TextDecoder("utf-8"),h=t=>f.decode(t),d=new TextEncoder,p=t=>d.encode(t),y=t=>"number"==typeof t,b=t=>"boolean"==typeof t,v=t=>"function"==typeof t,m=t=>null!=t&&Object(t)===t,g=t=>m(t)&&v(t.then),w=t=>m(t)&&v(t[Symbol.iterator]),_=t=>m(t)&&v(t[Symbol.asyncIterator]),x=t=>
1m(t)&&m(t.schema),O=t=>m(t)&&"done"in t&&"value"in t,S=t=>m(t)&&v(t.stat)&&y(t.fd),A=t=>m(t)&&T(t.body),E=t=>"_getDOMStream"in t&&"_getNodeStream"in t,I=t=>m(t)&&v(t.abort)&&v(t.getWriter)&&!E(t),T=t=>m(t)&&v(t.cancel)&&v(t.getReader)&&!E(t),j=t=>m(t)&&v(t.end)&&v(t.write)&&b(t.writable)&&!E(t),P=t=>m(t)&&v(t.read)&&v(t.pipe)&&b(t.readable)&&!E(t),M=t=>m(t)&&v(t.clear)&&v(t.bytes)&&v(t.position)&&v(t.setPosition)&&v(t.capacity)&&v(t.getBufferIdentifier)&&v(t.createLong),D="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:ArrayBuffer;function N(t,e,r=0,n=e.byteLength){let i=t.byteLength,o=new Uint8Array(t.buffer,t.byteOffset,i),a=new Uint8Array(e.buffer,e.byteOffset,Math.min(n,i));return o.set(a,r),t}function k(t,e){let r,n,i,o=function(t){let e,r,n,i,o=t[0]?[t[0]]:[];for(let a,s,u=0,c=0,l=t.length;++u<l;){if(a=o[c],s=t[u],!a||!s||a.buffer!==s.buffer||s.byteOffset<a.byteOffset||({byteOffset:e,byteLength:n}=a,{byteOffset:r,byteLength:i}=s,e+n<r||r+i<e)){s&&(o[++c]=s);continue}o[c]=new Uint8Array(a.buffer,e,r-e+i)}return o}(t),a=o.reduce((t,e)=>t+e.byteLength,0),s=0,u=-1,c=Math.min(e||Number.POSITIVE_INFINITY,a);for(let t=o.length;++u<t;){if(n=(r=o[u]).subarray(0,Math.min(r.length,c-s)),c<=s+n.length){n.length<r.length?o[u]=r.subarray(n.length):n.length===r.length&&u++,i?N(i,n,s):i=n;break}N(i||(i=new Uint8Array(c)),n,s),s+=n.length}return[i||new Uint8Array(0),o.slice(u),a-(i?i.byteLength:0)]}function B(t,e){let r=O(e)?e.value:e;return r instanceof t?t===Uint8Array?new t(r.buffer,r.byteOffset,r.byteLength):r:r?("string"==typeof r&&(r=p(r)),r instanceof ArrayBuffer||r instanceof D)?new t(r):M(r)?B(t,r.bytes()):ArrayBuffer.isView(r)?r.byteLength<=0?new t(0):new t(r.buffer,r.byteOffset,r.byteLength/t.BYTES_PER_ELEMENT):t.from(r):new t(0)}let C=t=>B(Int32Array,t),R=t=>B(BigInt64Array,t),L=t=>B(Uint8Array,t),F=t=>(t.next(),t),U=t=>(function*(t,e){let r=function*(t){yield t},n="string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof D?r(e):w(e)?e:r(e);return yield*F(function*(e){let r=null;do r=e.next((yield B(t,r)));while(!r.done)}(n[Symbol.iterator]())),new t})(Uint8Array,t),z=t=>(function t(e,r){return a(this,arguments,function*(){if(g(r))return yield o((yield o((yield*s(u(t(e,(yield o(r)))))))));let n=function(t){return a(this,arguments,function*(){yield yield o((yield o(t)))})},i="string"==typeof r||ArrayBuffer.isView(r)||r instanceof ArrayBuffer||r instanceof D?n(r):w(r)?function(t){return a(this,arguments,function*(){yield o((yield*s(u(F(function*(t){let e=null;do e=t.next((yield null==e?void 0:e.value));while(!e.done)}(t[Symbol.iterator]()))))))})}(r):_(r)?r:n(r);return yield o((yield*s(u(F(function(t){return a(this,arguments,function*(){let r=null;do r=yield o(t.next((yield yield o(B(e,r)))));while(!r.done)})}(i[Symbol.asyncIterator]())))))),yield o(new e)})})(Uint8Array,t);function V(t,e,r){if(0!==t){r=r.slice(0,e);for(let e=-1,n=r.length;++e<n;)r[e]+=t}return r.subarray(0,e)}function W(t){if("bigint"==typeof t&&(t<Number.MIN_SAFE_INTEGER||t>Number.MAX_SAFE_INTEGER))throw TypeError(`${t} is not safe to convert to a number.`);return Number(t)}function $(t,e){return W(t/e)+W(t%e)/W(e)}let Y=Symbol.for("isArrowBigNum");function H(t,...e){return 0===e.length?Object.setPrototypeOf(B(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(t,...e),this.constructor.prototype)}function G(...t){return H.apply(this,t)}function q(...t){return H.apply(this,t)}function K(...t){return H.apply(this,t)}H.prototype[Y]=!0,H.prototype.toJSON=function(){return`"${Q(this)}"`},H.prototype.valueOf=function(t){return J(this,t)},H.prototype.toString=function(){return Q(this)},H.prototype[Symbol.toPrimitive]=function(t="default"){switch(t){case"number":return J(this);case"string":break;case"default":var e;return e=this,8===e.byteLength?new e.BigIntArray(e.buffer,e.byteOffset,1)[0]:Q(e)}return Q(this)},Object.setPrototypeOf(G.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(q.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(K.prototype,Object.create(Uint32Array.prototype)),Object.assign(G.prototype,H.prototype,{constructor:G,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array}),Object.assign(q.prototype,H.prototype,{constructor:q,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array}),Object.assign(K.prototype,H.prototype,{constructor:K,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});let X=BigInt(0x100000000)*BigInt(0x100000000)-BigInt(1);function J(t,e){let{buffer:r,byteOffset:n,byteLength:i,signed:o}=t,a=new BigUint64Array(r,n,i/8),s=o&&a.at(-1)&BigInt(1)<<BigInt(63),u=BigInt(0),c=0;if(s){for(let t of a)u|=(t^X)*(BigInt(1)<<BigInt(64*c++));u*=BigInt(-1),u-=BigInt(1)}else for(let t of a)u|=t*(BigInt(1)<<BigInt(64*c++));
1if("number"==typeof e){let t=BigInt(Math.pow(10,e)),r=u/t,n=u%t;return W(r)+W(n)/W(t)}return W(u)}function Q(t){if(8===t.byteLength){let e=new t.BigIntArray(t.buffer,t.byteOffset,1);return`${e[0]}`}if(!t.signed)return Z(t);let e=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2);if(new Int16Array([e.at(-1)])[0]>=0)return Z(t);e=e.slice();let r=1;for(let t=0;t<e.length;t++){let n=e[t],i=~n+r;e[t]=i,r&=0===n}let n=Z(e);return`-${n}`}function Z(t){let e="",r=new Uint32Array(2),n=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2),i=new Uint32Array((n=new Uint16Array(n).reverse()).buffer),o=-1,a=n.length-1;do{for(r[0]=n[o=0];o<a;)n[o++]=r[1]=r[0]/10,r[0]=(r[0]-10*r[1]<<16)+n[o];n[o]=r[1]=r[0]/10,r[0]=r[0]-10*r[1],e=`${r[0]}${e}`}while(i[0]||i[1]||i[2]||i[3]);return null!=e?e:"0"}class tt{static new(t,e){switch(e){case!0:return new G(t);case!1:return new q(t)}switch(t.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new G(t)}return 16===t.byteLength?new K(t):new q(t)}static signed(t){return new G(t)}static unsigned(t){return new q(t)}static decimal(t){return new K(t)}constructor(t,e){return tt.new(t,e)}}!function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"}(iW||(iW={})),function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"}(i$||(i$={})),function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"}(iY||(iY={})),function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(iH||(iH={}
1)),function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(iG||(iG={}));class te{static isNull(t){return(null==t?void 0:t.typeId)===iz.Null}static isInt(t){return(null==t?void 0:t.typeId)===iz.Int}static isFloat(t){return(null==t?void 0:t.typeId)===iz.Float}static isBinary(t){return(null==t?void 0:t.typeId)===iz.Binary}static isLargeBinary(t){return(null==t?void 0:t.typeId)===iz.LargeBinary}static isUtf8(t){return(null==t?void 0:t.typeId)===iz.Utf8}static isLargeUtf8(t){return(null==t?void 0:t.typeId)===iz.LargeUtf8}static isBool(t){return(null==t?void 0:t.typeId)===iz.Bool}static isDecimal(t){return(null==t?void 0:t.typeId)===iz.Decimal}static isDate(t){return(null==t?void 0:t.typeId)===iz.Date}static isTime(t){return(null==t?void 0:t.typeId)===iz.Time}static isTimestamp(t){return(null==t?void 0:t.typeId)===iz.Timestamp}static isInterval(t){return(null==t?void 0:t.typeId)===iz.Interval}static isDuration(t){return(null==t?void 0:t.typeId)===iz.Duration}static isList(t){return(null==t?void 0:t.typeId)===iz.List}static isStruct(t){return(null==t?void 0:t.typeId)===iz.Struct}static isUnion(t){return(null==t?void 0:t.typeId)===iz.Union}static isFixedSizeBinary(t){return(null==t?void 0:t.typeId)===iz.FixedSizeBinary}static isFixedSizeList(t){return(null==t?void 0:t.typeId)===iz.FixedSizeList}static isMap(t){return(null==t?void 0:t.typeId)===iz.Map}static isDictionary(t){return(null==t?void 0:t.typeId)===iz.Dictionary}static isDenseUnion(t){return te.isUnion(t)&&t.mode===iG.Dense}static isSparseUnion(t){return te.isUnion(t)&&t.mode===iG.Sparse}constructor(t){this.typeId=t}}te[Symbol.toStringTag]=(t=>(t.children=null,t.ArrayType=Array,t.OffsetArrayType=Int32Array,t[Symbol.toStringTag]="DataType"))(te.prototype);class tr extends te{constructor(){super(iz.Null)}toString(){return"Null"}}tr[Symbol.toStringTag]=tr.prototype[Symbol.toStringTag]="Null";class tn extends te{constructor(t,e){super(iz.Int),this.isSigned=t,this.bitWidth=e}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}tn[Symbol.toStringTag]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(tn.prototype);class ti extends tn{constructor(){super(!0,8)}get ArrayType(){return Int8Array}}class to extends tn{constructor(){super(!0,16)}get ArrayType(){return Int16Array}}class ta extends tn{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}class ts extends tn{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}}class tu extends tn{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}}class tc extends tn{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}}class tl extends tn{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}}class tf extends tn{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}}Object.defineProperty(ti.prototype,"ArrayType",{value:Int8Array}),Object.defineProperty(to.prototype,"ArrayType",{value:Int16Array}),Object.defineProperty(ta.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty(ts.prototype,"ArrayType",{value:BigInt64Array}),Object.defineProperty(tu.prototype,"ArrayType",{value:Uint8Array}),Object.defineProperty(tc.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(tl.prototype,"ArrayType",{value:Uint32Array}),Object.defineProperty(tf.prototype,"ArrayType",{value:BigUint64Array});class th extends te{constructor(t){super(iz.Float),this.precision=t}get ArrayType(){switch(this.precision){case iW.HALF:return Uint16Array;case iW.SINGLE:return Float32Array;case iW.DOUBLE:return Float64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}th[Symbol.toStringTag]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(th.prototype);class td extends th{constructor(){super(iW.HALF)}}class tp extends th{constructor(){super(iW.SINGLE)}}class ty extends th{constructor(){super(iW.DOUBLE)}}Object.defineProperty(td.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(tp.prototype,"ArrayType",{value:Float32Array}),Object.defineProperty(ty.prototype,"ArrayType",{value:Float64Array});class tb extends te{constructor(){super(iz.Binary)}toString(){return"Binary"}}tb[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(tb.prototype);class tv extends te{constructor(){super(iz.LargeBinary)}toString(){return"LargeBinary"}}tv[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeBinary"))(tv.prototype);class tm extends te{constructor(){super(iz.Utf8)}toString(){return"Utf8"}}tm[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(tm.prototype);class tg extends te{constructor(){super(iz.LargeUtf8)}toString(){return"LargeUtf8"}}tg[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeUtf8"))(tg.prototype);class tw extends te{constructor(){super(iz.Bool)}toString(){return"Bool"}}tw[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(tw.prototype);class t_ extends te{constructor(t,e,r=128){super(iz.Decimal),this.scale=t,this.precision=e,this.bitWidth=r}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}t_[Symbol.toStringTag]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(t_.prototype);class tx extends te{constructor(t){super(iz.Date),this.unit=t}toString(){return`Date${(this.unit+1)*32}<${iY[this.unit]}>`}get ArrayType(){return this.unit===iY.DAY?Int32Array:BigInt64Array}}tx[Symbol.toStringTag]=(t=>(t.unit=null,t[Symbol.toStringTag]="Date"))(tx.prototype);class tO extends te{constructor(t,e){super(iz.Time),this.unit=t,this.bitWidth=e}toString(){return`Time${this.bitWidth}<${i$[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}tO[Symbol.toStringTag]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(tO.prototype);class tS extends te{constructor(t,e){super(iz.Timestamp),this.unit=t,this.timezone=e}toString(){return`Timestamp<${i$[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}tS[Symbol.toStringTag]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Timestamp"))(tS.prototype);class tA extends te{constructor(t){super(iz.Interval),this.unit=t}toString(){return`Interval<${iH[this.unit]}>`}}tA[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(tA.prototype);class tE extends te{constructor(t){super(iz.Duration),this.unit=t}toString(){return`Duration<${i$[this.unit]}>`}}tE[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Duration"))(tE.prototype);class tI extends te{constructor(t){super(iz.List),this.children=[t]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}tI[Symbol.toStringTag]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(tI.prototype);class tT extends te{constructor(t){super(iz.Struct),this.children=t}toString(){return`Struct<{${this.children.map(t=>`${t.name}:${t.type}`).join(", ")}}>`}}tT[Symbol.toStringTag]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(tT.prototype);class tj extends te{constructor(t,e,r){super(iz.Union),this.mode=t,this.children=r,this.typeIds=e=Int32Array.from(e),this.typeIdToChildIndex=e.reduce((t,e,r)=>(t[e]=r)&&t||t,Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(t=>`${t.type}`).join(" | ")}>`}}tj[Symbol.toStringTag]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(tj.prototype);class tP extends te{constructor(t){super(iz.FixedSizeBinary),this.byteWidth=t}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}tP[Symbol.toStringTag]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(tP.prototype);class tM extends te{constructor(t,e){super(iz.FixedSizeList),this.listSize=t,this.children=[e]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}}tM[Symbol.toStringTag]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(tM.prototype);class tD extends te{constructor(t,e=!1){var r,n,i;if(super(iz.Map),this.children=[t],this.keysSorted=e,t&&(t.name="entries",null==(r=null==t?void 0:t.type)?void 0:r.children)){let e=null==(n=null==t?void 0:t.type)?void 0:n.children[0];e&&(e.name="key");let r=null==(i=null==t?void 0:t.type)?void 0:i.children[1];r&&(r.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(t=>`${t.name}:${t.type}`).join(", ")}}>`}}tD[Symbol.toStringTag]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(tD.prototype);let tN=(t=>()=>++t)(-1);class tk extends te{constructor(t,e,r,n){super(iz.Dictionary),this.indices=e,this.dictionary=t,this.isOrdered=n||!1,this.id=null==r?tN():W(r)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}function tB(t){switch(t.typeId){case iz.Decimal:return t.bitWidth/32;case iz.Interval:return 1+t.unit;case iz.FixedSizeList:return t.listSize;case iz.FixedSizeBinary:return t.byteWidth;default:return 1}}tk[Symbol.toStringTag]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(tk.prototype);class tC{visitMany(t,...e){return t.map((t,r)=>this.visit(t,...e.map(t=>t[r])))}visit(...t){return this.getVisitFn(t[0],!1).apply(this,t)}getVisitFn(t,e=!0){return function(t,e,r=!0){return"number"==typeof e?tR(t,e,r):"str
1ing"==typeof e&&e in iz?tR(t,iz[e],r):e&&e instanceof te?tR(t,tL(e),r):(null==e?void 0:e.type)&&e.type instanceof te?tR(t,tL(e.type),r):tR(t,iz.NONE,r)}(this,t,e)}getVisitFnByTypeId(t,e=!0){return tR(this,t,e)}visitNull(t,...e){return null}visitBool(t,...e){return null}visitInt(t,...e){return null}visitFloat(t,...e){return null}visitUtf8(t,...e){return null}visitLargeUtf8(t,...e){return null}visitBinary(t,...e){return null}visitLargeBinary(t,...e){return null}visitFixedSizeBinary(t,...e){return null}visitDate(t,...e){return null}visitTimestamp(t,...e){return null}visitTime(t,...e){return null}visitDecimal(t,...e){return null}visitList(t,...e){return null}visitStruct(t,...e){return null}visitUnion(t,...e){return null}visitDictionary(t,...e){return null}visitInterval(t,...e){return null}visitDuration(t,...e){return null}visitFixedSizeList(t,...e){return null}visitMap(t,...e){return null}}function tR(t,e,r=!0){let n=null;switch(e){case iz.Null:n=t.visitNull;break;case iz.Bool:n=t.visitBool;break;case iz.Int:n=t.visitInt;break;case iz.Int8:n=t.visitInt8||t.visitInt;break;case iz.Int16:n=t.visitInt16||t.visitInt;break;case iz.Int32:n=t.visitInt32||t.visitInt;break;case iz.Int64:n=t.visitInt64||t.visitInt;break;case iz.Uint8:n=t.visitUint8||t.visitInt;break;case iz.Uint16:n=t.visitUint16||t.visitInt;break;case iz.Uint32:n=t.visitUint32||t.visitInt;break;case iz.Uint64:n=t.visitUint64||t.visitInt;break;case iz.Float:n=t.visitFloat;break;case iz.Float16:n=t.visitFloat16||t.visitFloat;break;case iz.Float32:n=t.visitFloat32||t.visitFloat;break;case iz.Float64:n=t.visitFloat64||t.visitFloat;break;case iz.Utf8:n=t.visitUtf8;break;case iz.LargeUtf8:n=t.visitLargeUtf8;break;case iz.Binary:n=t.visitBinary;break;case iz.LargeBinary:n=t.visitLargeBinary;break;case iz.FixedSizeBinary:n=t.visitFixedSizeBinary;break;case iz.Date:n=t.visitDate;break;case iz.DateDay:n=t.visitDateDay||t.visitDate;break;case iz.DateMillisecond:n=t.visitDateMillisecond||t.visitDate;break;case iz.Timestamp:n=t.visitTimestamp;break;case iz.TimestampSecond:n=t.visitTimestampSecond||t.visitTimestamp;break;case iz.TimestampMillisecond:n=t.visitTimestampMillisecond||t.visitTimestamp;break;case iz.TimestampMicrosecond:n=t.visitTimestampMicrosecond||t.visitTimestamp;break;case iz.TimestampNanosecond:n=t.visitTimestampNanosecond||t.visitTimestamp;break;case iz.Time:n=t.visitTime;break;case iz.TimeSecond:n=t.visitTimeSecond||t.visitTime;break;case iz.TimeMillisecond:n=t.visitTimeMillisecond||t.visitTime;break;case iz.TimeMicrosecond:n=t.visitTimeMicrosecond||t.visitTime;break;case iz.TimeNanosecond:n=t.visitTimeNanosecond||t.visitTime;break;case iz.Decimal:n=t.visitDecimal;break;case iz.List:n=t.visitList;break;case iz.Struct:n=t.visitStruct;break;case iz.Union:n=t.visitUnion;break;case iz.DenseUnion:n=t.visitDenseUnion||t.visitUnion;break;case iz.SparseUnion:n=t.visitSparseUnion||t.visitUnion;break;case iz.Dictionary:n=t.visitDictionary;break;case iz.Interval:n=t.visitInterval;break;case iz.IntervalDayTime:n=t.visitIntervalDayTime||t.visitInterval;break;case iz.IntervalYearMonth:n=t.visitIntervalYearMonth||t.visitInterval;break;case iz.Duration:n=t.visitDuration;break;case iz.DurationSecond:n=t.visitDurationSecond||t.visitDuration;break;case iz.DurationMillisecond:n=t.visitDurationMillisecond||t.visitDuration;break;case iz.DurationMicrosecond:n=t.visitDurationMicrosecond||t.visitDuration;break;case iz.DurationNanosecond:n=t.visitDurationNanosecond||t.visitDuration;break;case iz.FixedSizeList:n=t.visitFixedSizeList;break;case iz.Map:n=t.visitMap}if("function"==typeof n)return n;if(!r)return()=>null;throw Error(`Unrecognized type '${iz[e]}'`)}function tL(t){switch(t.typeId){case iz.Null:return iz.Null;case iz.Int:{let{bitWidth:e,isSigned:r}=t;switch(e){case 8:return r?iz.Int8:iz.Uint8;case 16:return r?iz.Int16:iz.Uint16;case 32:return r?iz.Int32:iz.Uint32;case 64:return r?iz.Int64:iz.Uint64}return iz.Int}case iz.Float:switch(t.precision){case iW.HALF:return iz.Float16;case iW.SINGLE:return iz.Float32;case iW.DOUBLE:return iz.Float64}return iz.Float;case iz.Binary:return iz.Binary;case iz.LargeBinary:return iz.LargeBinary;case iz.Utf8:return iz.Utf8;case iz.LargeUtf8:return iz.LargeUtf8;case iz.Bool:return iz.Bool;case iz.Decimal:return iz.Decimal;case iz.Time:switch(t.unit){case i$.SECOND:return iz.TimeSecond;case i$.MILLISECOND:return iz.TimeMillisecond;case i$.MICROSECOND:return iz.TimeMicrosecond;case i$.NANOSECOND:return iz.TimeNanosecond}return iz.Time;case iz.Timestamp:switch(t.unit){case i$.SECOND:return iz.TimestampSecond;case i$.MILLISECOND:return iz.TimestampMillisecond;case i$.MICROSECOND:return iz.TimestampMicrosecond;case i$.NANOSECOND:return iz.TimestampNanosecond}return iz.Timestamp;case iz.Date:switch(t.unit){case iY.DAY:return iz.DateDay;case iY.MILLISECOND:return iz.DateMillisecond}return iz.Date;case iz.Interval:switch(t.unit){case iH.DAY_TIME:return iz.IntervalDayTime;case iH.YEAR_MONTH:return iz.IntervalYearMonth}return iz.Interval;case iz.Duration:switch(t.unit){case i$.SECOND:return iz.DurationSecond;case i$.MILLISECOND:return iz.DurationMillisecond;case i$.MICROSECOND:return iz.DurationMicrosecond;case i$.NANOSECOND:return iz.DurationNanosecond}return iz.Duration;case iz.Map:return iz.Map;case iz.List:return iz.List;case iz.Struct:return iz.Struct;case iz.Union:switch(t.mode){case iG.Dense:return iz.DenseUnion;case iG.Sparse:return iz.SparseUnion}return iz.Union;case iz.FixedSizeBinary:return iz.FixedSizeBinary;case iz.FixedSizeList:return iz.FixedSizeList;case iz.Dictionary:return iz.Dictionary}throw Error(`Unrecognized type '${iz[t.typeId]}'`)}tC.prototype.visitInt8=null,tC.prototype.visitInt16=null,tC.prototype.visitInt32=null,tC.prototype.visitInt64=null,tC.prototype.visitUint8=null,tC.prototype.visitUint16=null,tC.prototype.visitUint32=null,tC.prototype.visitUint64=null,tC.prototype.visitFloat16=null,tC.prototype.visitFloat32=null,tC.prototype.visitFloat64=null,tC.prototype.visitDateDay=null,tC.prototype.visitDateMillisecond=null,tC.prototype.visitTimestampSecond=null,tC.prototype.visitTimestampMillisecond=null,tC.prototype.visitTimestampMicrosecond=null,tC.prototype.visitTimestampNanosecond=null,tC.prototype.visitTimeSecond=null,tC.prototype.visitTimeMillisecond=null,tC.prototype.visitTimeMicrosecond=null,tC.prototype.visitTimeNanosecond=null,tC.prototype.visitDenseUnion=null,tC.prototype.visitSparseUnion=null,tC.prototype.visitIntervalDayTime=null,tC.prototype.visitIntervalYearMonth=null,tC.prototype.visitDuration=null,tC.prototype.visitDurationSecond=null,tC.prototype.visitDurationMillisecond=null,tC.prototype.visitDurationMicrosecond=null,tC.prototype.visitDurationNanosecond=null;let tF=new Float64Array(1),tU=new Uint32Array(tF.buffer);function tz(t){let e=(31744&t)>>10,r=(1023&t)/1024,n=Math.pow(-1,(32768&t)>>15);switch(e){case 31:return n*(r?Number.NaN:1/0);case 0:return n*(r?6103515625e-14*r:0)}return n*Math.pow(2,e-15)*(1+r)}class tV extends tC{}function tW(t){return(e,r,n)=>{if(e.setValid(r,null!=n))return t(e,r,n)}}
1let t$=(t,e,r)=>{t[e]=Math.floor(r/864e5)},tY=(t,e,r,n)=>{if(r+1<e.length){let i=W(e[r]),o=W(e[r+1]);t.set(n.subarray(0,o-i),i)}},tH=({values:t},e,r)=>{t[e]=r},tG=({values:t},e,r)=>{t[e]=r},tq=({values:t},e,r)=>{t[e]=function(t){if(t!=t)return 32256;tF[0]=t;let e=(0x80000000&tU[1])>>16&65535,r=0x7ff00000&tU[1],n=0;return r>=0x40f00000?tU[0]>0?r=31744:(r=(0x7c000000&r)>>16,n=(1048575&tU[1])>>10):r<=0x3f000000?(n=1048576+((n=1048576+(1048575&tU[1]))<<(r>>20)-998)>>21,r=0):(r=r-0x3f000000>>10,n=(1048575&tU[1])+512>>10),e|r|65535&n}(r)},tK=({values:t},e,r)=>{t$(t,e,r.valueOf())},tX=({values:t},e,r)=>{t[e]=BigInt(r)},tJ=({values:t,valueOffsets:e},r,n)=>tY(t,e,r,n),tQ=({values:t,valueOffsets:e},r,n)=>tY(t,e,r,p(n)),tZ=({values:t},e,r)=>{t[e]=BigInt(r/1e3)},t0=({values:t},e,r)=>{t[e]=BigInt(r)},t1=({values:t},e,r)=>{t[e]=BigInt(1e3*r)},t2=({values:t},e,r)=>{t[e]=BigInt(1e6*r)},t3=({values:t},e,r)=>{t[e]=r},t4=({values:t},e,r)=>{t[e]=r},t8=({values:t},e,r)=>{t[e]=r},t6=({values:t},e,r)=>{t[e]=r},t5=(t,e)=>(r,n,i,o)=>n&&r(n,t,e[o]),t9=(t,e)=>(r,n,i,o)=>n&&r(n,t,e.get(o)),t7=(t,e)=>(r,n,i,o)=>n&&r(n,t,e.get(i.name)),et=(t,e)=>(r,n,i,o)=>n&&r(n,t,e[i.name]),ee=(t,e,r)=>{let n=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[n];ec.visit(i,t.valueOffsets[e],r)},er=(t,e,r)=>{let n=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[n];ec.visit(i,e,r)},en=({values:t},e,r)=>{t.set(r.subarray(0,2),2*e)},ei=({values:t},e,r)=>{t[e]=12*r[0]+r[1]%12},eo=({values:t},e,r)=>{t[e]=r},ea=({values:t},e,r)=>{t[e]=r},es=({values:t},e,r)=>{t[e]=r},eu=({values:t},e,r)=>{t[e]=r};tV.prototype.visitBool=tW(({offset:t,values:e},r,n)=>{let i=t+r;n?e[i>>3]|=1<<i%8:e[i>>3]&=~(1<<i%8)}),tV.prototype.visitInt=tW(tH),tV.prototype.visitInt8=tW(tH),tV.prototype.visitInt16=tW(tH),tV.prototype.visitInt32=tW(tH),tV.prototype.visitInt64=tW(tH),tV.prototype.visitUint8=tW(tH),tV.prototype.visitUint16=tW(tH),tV.prototype.visitUint32=tW(tH),tV.prototype.visitUint64=tW(tH),tV.prototype.visitFloat=tW((t,e,r)=>{switch(t.type.precision){case iW.HALF:return tq(t,e,r);case iW.SINGLE:case iW.DOUBLE:return tG(t,e,r)}}),tV.prototype.visitFloat16=tW(tq),tV.prototype.visitFloat32=tW(tG),tV.prototype.visitFloat64=tW(tG),tV.prototype.visitUtf8=tW(tQ),tV.prototype.visitLargeUtf8=tW(tQ),tV.prototype.visitBinary=tW(tJ),tV.prototype.visitLargeBinary=tW(tJ),tV.prototype.visitFixedSizeBinary=tW(({stride:t,values:e},r,n)=>{e.set(n.subarray(0,t),t*r)}),tV.prototype.visitDate=tW((t,e,r)=>{t.type.unit===iY.DAY?tK(t,e,r):tX(t,e,r)}),tV.prototype.visitDateDay=tW(tK),tV.prototype.visitDateMillisecond=tW(tX),tV.prototype.visitTimestamp=tW((t,e,r)=>{switch(t.type.unit){case i$.SECOND:return tZ(t,e,r);case i$.MILLISECOND:return t0(t,e,r);case i$.MICROSECOND:return t1(t,e,r);case i$.NANOSECOND:return t2(t,e,r)}}),tV.prototype.visitTimestampSecond=tW(tZ),tV.prototype.visitTimestampMillisecond=tW(t0),tV.prototype.visitTimestampMicrosecond=tW(t1),tV.prototype.visitTimestampNanosecond=tW(t2),tV.prototype.visitTime=tW((t,e,r)=>{switch(t.type.unit){case i$.SECOND:return t3(t,e,r);case i$.MILLISECOND:return t4(t,e,r);case i$.MICROSECOND:return t8(t,e,r);case i$.NANOSECOND:return t6(t,e,r)}}),tV.prototype.visitTimeSecond=tW(t3),tV.prototype.visitTimeMillisecond=tW(t4),tV.prototype.visitTimeMicrosecond=tW(t8),tV.prototype.visitTimeNanosecond=tW(t6),tV.prototype.visitDecimal=tW(({values:t,stride:e},r,n)=>{t.set(n.subarray(0,e),e*r)}),tV.prototype.visitList=tW((t,e,r)=>{let n=t.children[0],i=t.valueOffsets,o=ec.getVisitFn(n);if(Array.isArray(r))for(let t=-1,a=i[e],s=i[e+1];a<s;)o(n,a++,r[++t]);else for(let t=-1,a=i[e],s=i[e+1];a<s;)o(n,a++,r.get(++t))}),tV.prototype.visitStruct=tW((t,e,r)=>{let n=t.type.children.map(t=>ec.getVisitFn(t.type)),i=r instanceof Map?t7(e,r):r instanceof rb?t9(e,r):Array.isArray(r)?t5(e,r):et(e,r);t.type.children.forEach((e,r)=>i(n[r],t.children[r],e,r))}),tV.prototype.visitUnion=tW((t,e,r)=>{t.type.mode===iG.Dense?ee(t,e,r):er(t,e,r)}),tV.prototype.visitDenseUnion=tW(ee),tV.prototype.visitSparseUnion=tW(er),tV.prototype.visitDictionary=tW((t,e,r)=>{var n;null==(n=t.dictionary)||n.set(t.values[e],r)}),tV.prototype.visitInterval=tW((t,e,r)=>{t.type.unit===iH.DAY_TIME?en(t,e,r):ei(t,e,r)}),tV.prototype.visitIntervalDayTime=tW(en),tV.prototype.visitIntervalYearMonth=tW(ei
1),tV.prototype.visitDuration=tW((t,e,r)=>{switch(t.type.unit){case i$.SECOND:return eo(t,e,r);case i$.MILLISECOND:return ea(t,e,r);case i$.MICROSECOND:return es(t,e,r);case i$.NANOSECOND:return eu(t,e,r)}}),tV.prototype.visitDurationSecond=tW(eo),tV.prototype.visitDurationMillisecond=tW(ea),tV.prototype.visitDurationMicrosecond=tW(es),tV.prototype.visitDurationNanosecond=tW(eu),tV.prototype.visitFixedSizeList=tW((t,e,r)=>{let{stride:n}=t,i=t.children[0],o=ec.getVisitFn(i);if(Array.isArray(r))for(let t=-1,a=e*n;++t<n;)o(i,a+t,r[t]);else for(let t=-1,a=e*n;++t<n;)o(i,a+t,r.get(t))}),tV.prototype.visitMap=tW((t,e,r)=>{let n=t.children[0],{valueOffsets:i}=t,o=ec.getVisitFn(n),{[e]:a,[e+1]:s}=i;for(let t of r instanceof Map?r.entries():Object.entries(r))if(o(n,a,t),++a>=s)break});let ec=new tV,el=Symbol.for("parent"),ef=Symbol.for("rowIndex");class eh{constructor(t,e){return this[el]=t,this[ef]=e,new Proxy(this,new ep)}toArray(){return Object.values(this.toJSON())}toJSON(){let t=this[ef],e=this[el],r=e.type.children,n={};for(let i=-1,o=r.length;++i<o;)n[r[i].name]=ez.visit(e.children[i],t);return n}toString(){return`{${[...this].map(([t,e])=>`${l(t)}: ${l(e)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new ed(this[el],this[ef])}}class ed{constructor(t,e){this.childIndex=0,this.children=t.children,this.rowIndex=e,this.childFields=t.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){let t=this.childIndex;return t<this.numChildren?(this.childIndex=t+1,{done:!1,value:[this.childFields[t].name,ez.visit(this.children[t],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(eh.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[el]:{writable:!0,enumerable:!1,configurable:!1,value:null},[ef]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});class ep{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[el].type.children.map(t=>t.name)}has(t,e){return -1!==t[el].type.children.findIndex(t=>t.name===e)}getOwnPropertyDescriptor(t,e){if(-1!==t[el].type.children.findIndex(t=>t.name===e))return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e];let r=t[el].type.children.findIndex(t=>t.name===e);if(-1!==r){let n=ez.visit(t[el].children[r],t[ef]);return Reflect.set(t,e,n),n}}set(t,e,r){let n=t[el].type.children.findIndex(t=>t.name===e);return -1!==n?(ec.visit(t[el].children[n],t[ef],r),Reflect.set(t,e,r)):(!!Reflect.has(t,e)||"symbol"==typeof e)&&Reflect.set(t,e,r)}}class ey extends tC{}function eb(t){return(e,r)=>e.getValid(r)?t(e,r):null}let ev=(t,e)=>864e5*t[e],em=(t,e,r)=>{if(r+1>=e.length)return null;let n=W(e[r]),i=W(e[r+1]);return t.subarray(n,i)},eg=({values:t},e)=>ev(t,e),ew=({values:t},e)=>W(t[e]),e_=({stride:t,values:e},r)=>e[t*r],ex=({values:t},e)=>t[e],eO=({values:t,valueOffsets:e},r)=>em(t,e,r),eS=({values:t,valueOffsets:e},r)=>{let n=em(t,e,r);return null!==n?h(n):null},eA=({values:t},e)=>1e3*W(t[e]),eE=({values:t},e)=>W(t[e]),eI=({values:t},e)=>$(t[e],BigInt(1e3)),eT=({values:t},e)=>$(t[e],BigInt(1e6)),ej=({values:t},e)=>t[e],eP=({values:t},e)=>t[e],eM=({values:t},e)=>t[e],eD=({values:t},e)=>t[e],eN=(t,e)=>{let r=t.type.typeIdToChildIndex[t.typeIds[e]],n=t.children[r];return ez.visit(n,t.valueOffsets[e])},ek=(t,e)=>{let r=t.type.typeIdToChildIndex[t.typeIds[e]],n=t.children[r];return ez.visit(n,e)},eB=({values:t},e)=>t.subarray(2*e,2*(e+1)),eC=({values:t},e)=>{let r=t[e],n=new Int32Array(2);return n[0]=Math.trunc(r/12),n[1]=Math.trunc(r%12),n},eR=({values:t},e)=>t[e],eL=({values:t},e)=>t[e],eF=({values:t},e)=>t[e],eU=({values:t},e)=>t[e];ey.prototype.visitNull=eb((t,e)=>null),ey.prototype.visitBool=eb(({offset:t,values:e},r)=>{let n=t+r;return(e[n>>3]&1<<n%8)!=0}),ey.prototype.visitInt=eb(({values:t},e)=>t[e]),ey.prototype.visitInt8=eb(e_),ey.prototype.visitInt16=eb(e_),ey.prototype.visitInt32=eb(e_),ey.prototype.visitInt64=eb(ex),ey.prototype.visitUint8=eb(e_),ey.prototype.visitUint16=eb(e_),ey.prototype.visitUint32=eb(e_),ey.prototype.visitUint64=eb(ex),ey.prototype.visitFloat=eb(({type:t,values:e},r)=>t.precision!==iW.HALF?e[r]:tz(e[r])),ey.prototype.visitFloat16=eb(({stride:t,values:e},r)=>tz(e[t*r])),ey.prototype.visitFloat32=eb(e_),ey.prototype.visitFloat64=eb(e_),ey.prototype.visitUtf8=eb(eS),ey.prototype.visitLargeUtf8=eb(eS),ey.prototype.visitBinary=eb(eO),ey.prototype.visitLargeBinary=eb(eO),ey.prototype.visitFixedSizeBinary=eb(({stride:t,values:e},r)=>e.subarray(t*r,t*(r+1))),ey.prototype.visitDate=eb((t,e)=>t.type.unit===iY.DAY?eg(t,e):ew(t,e)),ey.prototype.visitDateDay=eb(eg),ey.prototype.visitDateMillisecond=eb(ew),ey.prototype.visitTimestamp=eb((t,e)=>{switch(t.type.unit){case i$.SECOND:return eA(t,e);case i$.MILLISECOND:return eE(t,e);case i$.MICROSECOND:return eI(t,e);case i$.NANOSECOND:return eT(t,e)}}),ey.prototype.visitTimestampSecond=eb(eA),ey.prototype.visitTimestampMillisecond=eb(eE),ey.prototype.visitTimestampMicrosecond=eb(eI),ey.prototype.visitTimestampNanosecond=eb(eT),ey.prototype.visitTime=eb((t,e)=>{switch(t.type.unit){case i$.SECOND:return ej(t,e);case i$.MILLISECOND:return eP(t,e);case i$.MICROSECOND:return eM(t,e);case i$.NANOSECOND:return eD(t,e)}}),ey.prototype.visitTimeSecond=eb(ej),ey.prototype.visitTimeMillisecond=eb(eP),ey.prototype.visitTimeMicrosecond=eb(eM),ey.prototype.visitTimeNanosecond=eb(eD),ey.prototype.visitDecimal=eb(({values:t,stride:e},r)=>tt.decimal(t.subarray(e*r,e*(r+1)))),ey.prototype.visitList=eb((t,e)=>{let{valueOffsets:r,stride:n,children:i}=t,{[e*n]:o,[e*n+1]:a}=r;return new rb([i[0].slice(o,a-o)])}),ey.prototype.visitStruct=eb((t,e)=>new eh(t,e)),ey.prototype.visitUnion=eb((t,e)=>t.type.mode===iG.Dense?eN(t,e):ek(t,e)),ey.prototype.visitDenseUnion=eb(eN),ey.prototype.visitSparseUnion=eb(ek),ey.prototype.visitDictionary=eb((t,e)=>{var r;return null==(r=t.dictionary)?void 0:r.get(t.values[e])}),ey.prototype.visitInterval=eb((t,e)=>t.type.unit===iH.DAY_TIME?eB(t,e):eC(t,e)),ey.prototype.visitIntervalDayTime=eb(eB),ey.prototype.visitIntervalYearMonth=eb(eC),ey.prototype.visitDuration=eb((t,e)=>{switch(t.type.unit){case i$.SECOND:return eR(t,e);case i$.MILLISECOND:return eL(t,e);case i$.MICROSECOND:return eF(t,e);case i$.NANOSECOND:return eU(t,e)}}),ey.prototype.visitDurationSecond=eb(eR),ey.prototype.visitDurationMillisecond=eb(eL),ey.prototype.visitDurationMicrosecond=eb(eF),ey.prototype.visitDurationNanosecond=eb(eU),ey.prototype.visitFixedSizeList=eb((t,e)=>{let{stride:r,children:n}=t;return new rb([n[0].slice(e*r,r)])}),ey.prototype.visitMap=eb((t,e)=>{let{valueOffsets:r,children:n}=t,{[e]:i,[e+1]:o}=r;return new eH(n[0].slice(i,o-i))});let ez=new ey,eV=Symbol.for("keys"),eW=Symbol.for("vals"),e$=Symbol.for("kKeysAsStrings"),eY=Symbol.for("_kKeysAsStrings");class eH{constructor(t){return this[eV]=new rb([t.children[0]]).memoize(),this[eW]=t.children[1],new Proxy(this,new eq)}get[e$](){return this[eY]||(this[eY]=Array.from(this[eV].toArray(),String))}[Symbol.iterator](){return new eG(this[eV],this[eW])}get size(){return this[eV].length}toArray(){return Object.values(this.toJSON())}toJSON(){let t=this[eV],e=this[eW],r={};for(let n=-1,i=t.length;++n<i;)r[t.get(n)]=ez.visit(e,n);return r}toString(){return`{${[...this].map(([t,e])=>`${l(t)}: ${l(e)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class eG{constructor(t,e){this.keys=t,this.vals=e,this.keyIndex=0,this.numKe
1ys=t.length}[Symbol.iterator](){return this}next(){let t=this.keyIndex;return t===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(t),ez.visit(this.vals,t)]})}}class eq{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[e$]}has(t,e){return t[e$].includes(e)}getOwnPropertyDescriptor(t,e){if(-1!==t[e$].indexOf(e))return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e];let r=t[e$].indexOf(e);if(-1!==r){let n=ez.visit(Reflect.get(t,eW),r);return Reflect.set(t,e,n),n}}set(t,e,r){let n=t[e$].indexOf(e);return -1!==n?(ec.visit(Reflect.get(t,eW),n,r),Reflect.set(t,e,r)):!!Reflect.has(t,e)&&Reflect.set(t,e,r)}}function eK(t,e,r,i){let{length:o=0}=t,a="number"!=typeof e?0:e,s="number"!=typeof r?o:r;return a<0&&(a=(a%o+o)%o),s<0&&(s=(s%o+o)%o),s<a&&(n=a,a=s,s=n),s>o&&(s=o),i?i(t,a,s):[a,s]}Object.defineProperties(eH.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[eV]:{writable:!0,enumerable:!1,configurable:!1,value:null},[eW]:{writable:!0,enumerable:!1,configurable:!1,value:null},[eY]:{writable:!0,enumerable:!1,configurable:!1,value:null}});let eX=(t,e)=>t<0?e+t:t,eJ=t=>t!=t;function eQ(t){if("object"!=typeof t||null===t)return eJ(t)?eJ:e=>e===t;if(t instanceof Date){let e=t.valueOf();return t=>t instanceof Date&&t.valueOf()===e}return ArrayBuffer.isView(t)?e=>!!e&&function(t,e){let r=0,n=t.length;if(n!==e.length)return!1;if(n>0)do if(t[r]!==e[r])return!1;while(++r<n);return!0}(t,e):t instanceof Map?function(t){let e=-1,r=[];for(let n of t.values())r[++e]=eQ(n);return eZ(r)}(t):Array.isArray(t)?function(t){let e=[];for(let r=-1,n=t.length;++r<n;)e[r]=eQ(t[r]);return eZ(e)}(t):t instanceof rb?function(t){let e=[];for(let r=-1,n=t.length;++r<n;)e[r]=eQ(t.get(r));return eZ(e)}(t):function(t,e=!1){let r=Object.keys(t);if(!e&&0===r.length)return()=>!1;let n=[];for(let e=-1,i=r.length;++e<i;)n[e]=eQ(t[r[e]]);return eZ(n,r)}(t,!0)}function eZ(t,e){return r=>{if(!r||"object"!=typeof r)return!1;switch(r.constructor){case Array:var n=t,i=r;let o=n.length;if(i.length!==o)return!1;for(let t=-1;++t<o;)if(!n[t](i[t]))return!1;return!0;case Map:return e0(t,r,r.keys());case eH:case eh:case Object:case void 0:return e0(t,r,e||Object.keys(r))}return r instanceof rb&&function(t,e){let r=t.length;if(e.length!==r)return!1;for(let n=-1;++n<r;)if(!t[n](e.get(n)))return!1;return!0}(t,r)}}function e0(t,e,r){let n=r[Symbol.iterator](),i=e instanceof Map?e.keys():Object.keys(e)[Symbol.iterator](),o=e instanceof Map?e.values():Object.values(e)[Symbol.iterator](),a=0,s=t.length,u=o.next(),c=n.next(),l=i.next();for(;a<s&&!c.done&&!l.done&&!u.done&&c.value===l.value&&t[a](u.value);++a,c=n.next(),l=i.next(),u=o.next());return a===s&&!!c.done&&!!l.done&&!!u.done||(n.return&&n.return(),i.return&&i.return(),o.return&&o.return(),!1)}class e1{constructor(t=0,e){this.numChunks=t,this.getChunkIterator=e,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){let t=this.chunkIterator.next();if(!t.done)return t;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}function e2(t){return t.reduce((t,e)=>t+e.nullCount,0)}function e3(t){return t.reduce((t,e,r)=>(t[r+1]=t[r]+e.length,t),new Uint32Array(t.length+1))}function e4(t,e,r,n){let i=[];for(let o=-1,a=t.length;++o<a;){let a=t[o],s=e[o],{length:u}=a;if(s>=n)break;if(r>=s+u)continue;if(s>=r&&s+u<=n){i.push(a);continue}let c=Math.max(0,r-s),l=Math.min(n-s,u);i.push(a.slice(c,l-c))}return 0===i.length&&i.push(t[0].slice(0,0)),i}function e8(t,e,r,n){let i=0,o=0,a=e.length-1;do{if(i>=a-1)return r<e[a]?n(t,i,r-e[i]):null;r<e[o=i+Math.trunc((a-i)*.5)]?a=o:i=o}while(i<a)}function e6(t,e){return t.getValid(e)}function e5(t){function e(e,r,n){return t(e[r],n)}return function(t){return e8(this.data,this._offsets,t,e)}}function e9(t){let e;function r(r,n,i){return t(r[n],i,e)}return function(t,n){let i=this.data;e=n;let o=e8(i,this._offsets,t,r);return e=void 0,o}}function e7(t){let e;function r(r,n,i){let o=i,a=0,s=0;for(let i=n-1,u=r.length;++i<u;){let n=r[i];if(~(a=t(n,e,o)))return s+a;o=0,s+=n.length}return -1}return function(t,n){e=t;let i=this.data,o="number"!=typeof n?r(i,0,0):e8(i,this._offsets,n,r);return e=void 0,o}}function rt(t,e,r,n){return(r&1<<n)!=0}function re(t,e,r,n){return(r&1<<n)>>n}function rr(t,e,r){let n=r.byteLength+7&-8;if(t>0||r.byteLength<n){let i=new Uint8Array(n);return i.set(t%8==0?r.subarray(t>>3):rn(new ri(r,t,e,null,rt)).subarray(0,n)),i}return r}function rn(t){let e=[],r=0,n=0,i=0;for(let o of t)o&&(i|=1<<n),8==++n&&(e[r++]=i,i=n=0);(0===r||n>0)&&(e[r++]=i);let o=new Uint8Array(e.length+7&-8);return o.set(e),o}class ri{constructor(t,e,r,n,i){this.bytes=t,this.length=r,this.context=n,this.get=i,this.bit=e%8,this.byteIndex=e>>3,this.byte=t[this.byteIndex++],this.index=0}
1next(){return this.index<this.length?(8===this.bit&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}}function ro(t){let e=Math.trunc(t);return e-=e>>>1&0x55555555,((e=(0x33333333&e)+(e>>>2&0x33333333))+(e>>>4)&0xf0f0f0f)*0x1010101>>>24}class ra extends tC{}function rs(t,e,r){if(void 0===e)return -1;if(null===e)switch(t.typeId){case iz.Union:case iz.Dictionary:break;default:let{nullBitmap:n}=t;if(!n||t.nullCount<=0)return -1;let i=0;for(let e of new ri(n,t.offset+(r||0),t.length,n,rt)){if(!e)return i;++i}return -1}let o=ez.getVisitFn(t),a=eQ(e);for(let e=(r||0)-1,n=t.length;++e<n;)if(a(o(t,e)))return e;return -1}function ru(t,e,r){let n=ez.getVisitFn(t),i=eQ(e);for(let e=(r||0)-1,o=t.length;++e<o;)if(i(n(t,e)))return e;return -1}ra.prototype.visitNull=function(t,e){return null===e&&t.length>0?0:-1},ra.prototype.visitBool=rs,ra.prototype.visitInt=rs,ra.prototype.visitInt8=rs,ra.prototype.visitInt16=rs,ra.prototype.visitInt32=rs,ra.prototype.visitInt64=rs,ra.prototype.visitUint8=rs,ra.prototype.visitUint16=rs,ra.prototype.visitUint32=rs,ra.prototype.visitUint64=rs,ra.prototype.visitFloat=rs,ra.prototype.visitFloat16=rs,ra.prototype.visitFloat32=rs,ra.prototype.visitFloat64=rs,ra.prototype.visitUtf8=rs,ra.prototype.visitLargeUtf8=rs,ra.prototype.visitBinary=rs,ra.prototype.visitLargeBinary=rs,ra.prototype.visitFixedSizeBinary=rs,ra.prototype.visitDate=rs,ra.prototype.visitDateDay=rs,ra.prototype.visitDateMillisecond=rs,ra.prototype.visitTimestamp=rs,ra.prototype.visitTimestampSecond=rs,ra.prototype.visitTimestampMillisecond=rs,ra.prototype.visitTimestampMicrosecond=rs,ra.prototype.visitTimestampNanosecond=rs,ra.prototype.visitTime=rs,ra.prototype.visitTimeSecond=rs,ra.prototype.visitTimeMillisecond=rs,ra.prototype.visitTimeMicrosecond=rs,ra.prototype.visitTimeNanosecond=rs,ra.prototype.visitDecimal=rs,ra.prototype.visitList=rs,ra.prototype.visitStruct=rs,ra.prototype.visitUnion=rs,ra.prototype.visitDenseUnion=ru,ra.prototype.visitSparseUnion=ru,ra.prototype.visitDictionary=rs,ra.prototype.visitInterval=rs,ra.prototype.visitIntervalDayTime=rs,ra.prototype.visitIntervalYearMonth=rs,ra.prototype.visitDuration=rs,ra.prototype.visitDurationSecond=rs,ra.prototype.visitDurationMillisecond=rs,ra.prototype.visitDurationMicrosecond=rs,ra.prototype.visitDurationNanosecond=rs,ra.prototype.visitFixedSizeList=rs,ra.prototype.visitMap=rs;let rc=new ra;class rl extends tC{}function rf(t){let{type:e}=t;if(0===t.nullCount&&1===t.stride&&(te.isInt(e)&&64!==e.bitWidth||te.isTime(e)&&64!==e.bitWidth||te.isFloat(e)&&e.precision!==iW.HALF))return new e1(t.data.length,e=>{let r=t.data[e];return r.values.subarray(0,r.length)[Symbol.iterator]()});let r=0;return new e1(t.data.length,e=>{let n=t.data[e].length,i=t.slice(r,r+n);return r+=n,new rh(i)})}class rh{constructor(t){this.vector=t,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}}rl.prototype.visitNull=rf,rl.prototype.visitBool=rf,rl.prototype.visitInt=rf,rl.prototype.visitInt8=rf,rl.prototype.visitInt16=rf,rl.prototype.visitInt32=rf,rl.prototype.visitInt64=rf,rl.prototype.visitUint8=rf,rl.prototype.visitUint16=rf,rl.prototype.visitUint32=rf,rl.prototype.visitUint64=rf,rl.prototype.visitFloat=rf,rl.prototype.visitFloat16=rf,rl.prototype.visitFloat32=rf,rl.prototype.visitFloat64=rf,rl.prototype.visitUtf8=rf,rl.prototype.visitLargeUtf8=rf,rl.prototype.visitBinary=rf,rl.prototype.visitLargeBinary=rf,rl.prototype.visitFixedSizeBinary=rf,rl.prototype.visitDate=rf,rl.prototype.visitDateDay=rf,rl.prototype.visitDateMillisecond=rf,rl.prototype.visitTimestamp=rf,rl.prototype.visitTimestampSecond=rf,rl.prototype.visitTimestampMillisecond=rf,rl.prototype.visitTimestampMicrosecond=rf,rl.prototype.visitTimestampNanosecond=rf,rl.prototype.visitTime=rf,rl.prototype.visitTimeSecond=rf,rl.prototype.visitTimeMillisecond=rf,rl.prototype.visitTimeMicrosecond=rf,rl.prototype.visitTimeNanosecond=rf,rl.prototype.visitDecimal=rf,rl.prototype.visitList=rf,rl.prototype.visitStruct=rf,rl.prototype.visitUnion=rf,rl.prototype.visitDenseUnion=rf,rl.prototype.visitSparseUnion=rf,rl.prototype.visitDictionary=rf,rl.prototype.visitInterval=rf,rl.prototype.visitIntervalDayTime=rf,rl.prototype.visitIntervalYearMonth=rf,rl.prototype.visitDuration=rf,rl.prototype.visitDurationSecond=rf,rl.prototype.visitDurationMillisecond=rf,rl.prototype.visitDurationMicrosecond=rf,rl.prototype.visitDurationNanosecond=rf,rl.prototype.visitFixedSizeList=rf,rl.prototype.visitMap=rf;let rd=new rl,rp={},ry={};class rb{constructor(t){var e,r,n;let i=t[0]instanceof rb?t.flatMap(t=>t.data):t;if(0===i.length||i.some(t=>!(t instanceof rm)))throw TypeError("Vector constructor expects an Array of Data instances.");let o=null==(e=i[0])?void 0:e.type;switch(i.length){case 0:this._offsets=[0];break;case 1:{let{get:t,set:e,indexOf:r}=rp[o.typeId],n=i[0];this.isValid=t=>e6(n,t),this.get=e=>t(n,e),this.set=(t,r)=>e(n,t,r),this.indexOf=t=>r(n,t),this._offsets=[0,n.length];break}default:Object.setPrototypeOf(this,ry[o.typeId]),this._offsets=e3(i)}this.data=i,this.type=o,this.stride=tB(o),this.numChildren=null!=(n=null==(r=o.children)?void 0:r.length)?n:0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce((t,e)=>t+e.byteLength,0)}get nullable(){return this.data.some(t=>t.nullable)}get nullCount(){return e2(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${iz[this.type.typeId]}Vector`}isValid(t){return!1}get(t){return null}at(t){return this.get(eX(t,this.length))}set(t,e){}indexOf(t,e){return -1}includes(t,e){return this.indexOf(t,e)>-1}[Symbol.iterator](){return rd.visit(this)}concat(...t){return new rb(this.data.concat(t.flatMap(t=>t.data).flat(Number.POSITIVE_INFINITY)))}slice(t,e){return new rb(eK(this,t,e,({data:t,_offsets:e},r,n)=>e4(t,e,r,n)))}toJSON(){return[...this]}toArray(){let{type:t,data:e,length:r,stride:n,ArrayType:i}=this;switch(t.typeId){case iz.Int:case iz.Float:case iz.Decimal:case iz.Time:case iz.Timestamp:switch(e.length){case 0:return new i;case 1:return e[0].values.subarray(0,r*n);default:return e.reduce((t,{values:e,length:r})=>(t.array.set(e.subarray(0,r*n),t.offset),t.offset+=r*n,t),{array:new i(r*n),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(t){var e;
1return this.getChildAt(null==(e=this.type.children)?void 0:e.findIndex(e=>e.name===t))}getChildAt(t){return t>-1&&t<this.numChildren?new rb(this.data.map(({children:e})=>e[t])):null}get isMemoized(){return!!te.isDictionary(this.type)&&this.data[0].dictionary.isMemoized}memoize(){if(te.isDictionary(this.type)){let t=new rv(this.data[0].dictionary);return new rb(this.data.map(e=>{let r=e.clone();return r.dictionary=t,r}))}return new rv(this)}unmemoize(){if(te.isDictionary(this.type)&&this.isMemoized){let t=this.data[0].dictionary.unmemoize();return new rb(this.data.map(e=>{let r=e.clone();return r.dictionary=t,r}))}return this}}rb[Symbol.toStringTag]=(t=>{for(let e of(t.type=te.prototype,t.data=[],t.length=0,t.stride=1,t.numChildren=0,t._offsets=new Uint32Array([0]),t[Symbol.isConcatSpreadable]=!0,Object.keys(iz).map(t=>iz[t]).filter(t=>"number"==typeof t&&t!==iz.NONE))){let r=ez.getVisitFnByTypeId(e),n=ec.getVisitFnByTypeId(e),i=rc.getVisitFnByTypeId(e);rp[e]={get:r,set:n,indexOf:i},ry[e]=Object.create(t,{isValid:{value:e5(e6)},get:{value:e5(ez.getVisitFnByTypeId(e))},set:{value:e9(ec.getVisitFnByTypeId(e))},indexOf:{value:e7(rc.getVisitFnByTypeId(e))}})}return"Vector"})(rb.prototype);class rv extends rb{constructor(t){super(t.data);let e=this.get,r=this.set,n=this.slice,i=Array(this.length);Object.defineProperty(this,"get",{value(t){let r=i[t];if(void 0!==r)return r;let n=e.call(this,t);return i[t]=n,n}}),Object.defineProperty(this,"set",{value(t,e){r.call(this,t,e),i[t]=e}}),Object.defineProperty(this,"slice",{value:(t,e)=>new rv(n.call(this,t,e))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new rb(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class rm{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(0!==this._nullCount){let{type:t}=this;return te.isSparseUnion(t)?this.children.some(t=>t.nullable):te.isDenseUnion(t)?this.children.some(t=>t.nullable):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let t=0,{valueOffsets:e,values:r,nullBitmap:n,typeIds:i}=this;return e&&(t+=e.byteLength),r&&(t+=r.byteLength),n&&(t+=n.byteLength),i&&(t+=i.byteLength),this.children.reduce((t,e)=>t+e.byteLength,t)}get nullCount(){let t;if(te.isUnion(this.type))return this.children.reduce((t,e)=>t+e.nullCount,0);let e=this._nullCount;return e<=-1&&(t=this.nullBitmap)&&(this._nullCount=e=0===t.length?0:this.length-function t(e,r,n){if(n-r<=0)return 0;if(n-r<8){let t=0;for(let i of new ri(e,r,n-r,e,re))t+=i;return t}let i=n>>3<<3,o=r+(r%8==0?0:8-r%8);return t(e,r,o)+t(e,i,n)+function(t,e,r){let n=0,i=Math.trunc(e),o=new DataView(t.buffer,t.byteOffset,t.byteLength),a=void 0===r?t.byteLength:i+r;for(;a-i>=4;)n+=ro(o.getUint32(i)),i+=4;for(;a-i>=2;)n+=ro(o.getUint16(i)),i+=2;for(;a-i>=1;)n+=ro(o.getUint8(i)),i+=1;return n}(e,o>>3,i-o>>3)}(t,this.offset,this.offset+this.length)),e}constructor(t,e,r,n,i,o=[],a){let s;this.type=t,this.children=o,this.dictionary=a,this.offset=Math.floor(Math.max(e||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(n||0,-1)),i instanceof rm?(this.stride=i.stride,this.values=i.values,this.typeIds=i.typeIds,this.nullBitmap=i.nullBitmap,this.valueOffsets=i.valueOffsets):(this.stride=tB(t),i&&((s=i[0])&&(this.valueOffsets=s),(s=i[1])&&(this.values=s),(s=i[2])&&(this.nullBitmap=s),(s=i[3])&&(this.typeIds=s)))}getValid(t){let{type:e}=this;if(te.isUnion(e)){let r=this.children[e.typeIdToChildIndex[this.typeIds[t]]],n=e.mode===iG.Dense?this.valueOffsets[t]:t;return r.getValid(n)}if(this.nullable&&this.nullCount>0){let e=this.offset+t;return(this.nullBitmap[e>>3]&1<<e%8)!=0}return!0}setValid(t,e){let r,{type:n}=this;if(te.isUnion(n)){let i=this.children[n.typeIdToChildIndex[this.typeIds[t]]],o=n.mode===iG.Dense?this.valueOffsets[t]:t;r=i.getValid(o),i.setValid(o,e)}else{let{nullBitmap:n}=this,{offset:i,length:o}=this,a=i+t,s=1<<a%8,u=a>>3;(!n||n.byteLength<=u)&&(n=new Uint8Array((i+o+63&-64)>>3).fill(255),this.nullCount>0?(n.set(rr(i,o,this.nullBitmap),0),Object.assign(this,{nullBitmap:n})):Object.assign(this,{nullBitmap:n,_nullCount:0}));let c=n[u];r=(c&s)!=0,n[u]=e?c|s:c&~s}return!!e!==r&&(this._nullCount=this.nullCount+(e?-1:1)),e}clone(t=this.type,e=this.offset,r=this.length,n=this._nullCount,i=this,o=this.children){return new rm(t,e,r,n,i,o,this.dictionary)}slice(t,e){let{stride:r,typeId:n,children:i}=this,o=(0===this._nullCount)-1,a=16===n?r:1,s=this._sliceBuffers(t,e,r,n);return this.clone(this.type,this.offset+t,e,o,s,0===i.length||this.valueOffsets?i:this._sliceChildren(i,a*t,a*e))}
1_changeLengthAndBackfillNullBitmap(t){if(this.typeId===iz.Null)return this.clone(this.type,0,t,0);let{length:e,nullCount:r}=this,n=new Uint8Array((t+63&-64)>>3).fill(255,0,e>>3);n[e>>3]=(1<<e-(-8&e))-1,r>0&&n.set(rr(this.offset,e,this.nullBitmap),0);let i=this.buffers;return i[iV.VALIDITY]=n,this.clone(this.type,0,t,r+(t-e),i)}_sliceBuffers(t,e,r,n){let i,{buffers:o}=this;return(i=o[iV.TYPE])&&(o[iV.TYPE]=i.subarray(t,t+e)),(i=o[iV.OFFSET])&&(o[iV.OFFSET]=i.subarray(t,t+e+1))||(i=o[iV.DATA])&&(o[iV.DATA]=6===n?i:i.subarray(r*t,r*(t+e))),o}_sliceChildren(t,e,r){return t.map(t=>t.slice(e,r))}}rm.prototype.children=Object.freeze([]);class rg extends tC{visit(t){return this.getVisitFn(t.type).call(this,t)}visitNull(t){let{type:e,offset:r=0,length:n=0}=t;return new rm(e,r,n,n)}visitBool(t){let{type:e,offset:r=0}=t,n=L(t.nullBitmap),i=B(e.ArrayType,t.data),{length:o=i.length>>3,nullCount:a=t.nullBitmap?-1:0}=t;return new rm(e,r,o,a,[void 0,i,n])}visitInt(t){let{type:e,offset:r=0}=t,n=L(t.nullBitmap),i=B(e.ArrayType,t.data),{length:o=i.length,nullCount:a=t.nullBitmap?-1:0}=t;return new rm(e,r,o,a,[void 0,i,n])}visitFloat(t){let{type:e,offset:r=0}=t,n=L(t.nullBitmap),i=B(e.ArrayType,t.data),{length:o=i.length,nullCount:a=t.nullBitmap?-1:0}=t;return new rm(e,r,o,a,[void 0,i,n])}visitUtf8(t){let{type:e,offset:r=0}=t,n=L(t.data),i=L(t.nullBitmap),o=C(t.valueOffsets),{length:a=o.length-1,nullCount:s=t.nullBitmap?-1:0}=t;return new rm(e,r,a,s,[o,n,i])}visitLargeUtf8(t){let{type:e,offset:r=0}=t,n=L(t.data),i=L(t.nullBitmap),o=R(t.valueOffsets),{length:a=o.length-1,nullCount:s=t.nullBitmap?-1:0}=t;return new rm(e,r,a,s,[o,n,i])}visitBinary(t){let{type:e,offset:r=0}=t,n=L(t.data),i=L(t.nullBitmap),o=C(t.valueOffsets),{length:a=o.length-1,nullCount:s=t.nullBitmap?-1:0}=t;return new rm(e,r,a,s,[o,n,i])}visitLargeBinary(t){let{type:e,offset:r=0}=t,n=L(t.data),i=L(t.nullBitmap),o=R(t.valueOffsets),{length:a=o.length-1,nullCount:s=t.nullBitmap?-1:0}=t;return new rm(e,r,a,s,[o,n,i])}visitFixedSizeBinary(t){let{type:e,offset:r=0}=t,n=L(t.nullBitmap),i=B(e.ArrayType,t.data),{length:o=i.length/tB(e),nullCount:a=t.nullBitmap?-1:0}=t;return new rm(e,r,o,a,[void 0,i,n])}visitDate(t){let{type:e,offset:r=0}=t,n=L(t.nullBitmap),i=B(e.ArrayType,t.data),{length:o=i.length/tB(e),nullCount:a=t.nullBitmap?-1:0}=t;return new rm(e,r,o,a,[void 0,i,n])}visitTimestamp(t){let{type:e,offset:r=0}=t,n=L(t.nullBitmap),i=B(e.ArrayType,t.data),{length:o=i.length/tB(e),nullCount:a=t.nullBitmap?-1:0}=t;return new rm(e,r,o,a,[void 0,i,n])}visitTime(t){let{type:e,offset:r=0}=t,n=L(t.nullBitmap),i=B(e.ArrayType,t.data),{length:o=i.length/tB(e),nullCount:a=t.nullBitmap?-1:0}=t;return new rm(e,r,o,a,[void 0,i,n])}visitDecimal(t){let{type:e,offset:r=0}=t,n=L(t.nullBitmap),i=B(e.ArrayType,t.data),{length:o=i.length/tB(e),nullCount:a=t.nullBitmap?-1:0}=t;return new rm(e,r,o,a,[void 0,i,n])}visitList(t){let{type:e,offset:r=0,child:n}=t,i=L(t.nullBitmap),o=C(t.valueOffsets),{length:a=o.length-1,nullCount:s=t.nullBitmap?-1:0}=t;return new rm(e,r,a,s,[o,void 0,i],[n])}visitStruct(t){let{type:e,offset:r=0,children:n=[]}=t,i=L(t.nullBitmap),{length:o=n.reduce((t,{length:e})=>
1Math.max(t,e),0),nullCount:a=t.nullBitmap?-1:0}=t;return new rm(e,r,o,a,[void 0,void 0,i],n)}visitUnion(t){let{type:e,offset:r=0,children:n=[]}=t,i=B(e.ArrayType,t.typeIds),{length:o=i.length,nullCount:a=-1}=t;return te.isSparseUnion(e)?new rm(e,r,o,a,[void 0,void 0,void 0,i],n):new rm(e,r,o,a,[C(t.valueOffsets),void 0,void 0,i],n)}visitDictionary(t){let{type:e,offset:r=0}=t,n=L(t.nullBitmap),i=B(e.indices.ArrayType,t.data),{dictionary:o=new rb([new rg().visit({type:e.dictionary})])}=t,{length:a=i.length,nullCount:s=t.nullBitmap?-1:0}=t;return new rm(e,r,a,s,[void 0,i,n],[],o)}visitInterval(t){let{type:e,offset:r=0}=t,n=L(t.nullBitmap),i=B(e.ArrayType,t.data),{length:o=i.length/tB(e),nullCount:a=t.nullBitmap?-1:0}=t;return new rm(e,r,o,a,[void 0,i,n])}visitDuration(t){let{type:e,offset:r=0}=t,n=L(t.nullBitmap),i=B(e.ArrayType,t.data),{length:o=i.length,nullCount:a=t.nullBitmap?-1:0}=t;return new rm(e,r,o,a,[void 0,i,n])}visitFixedSizeList(t){let{type:e,offset:r=0,child:n=new rg().visit({type:e.valueType})}=t,i=L(t.nullBitmap),{length:o=n.length/tB(e),nullCount:a=t.nullBitmap?-1:0}=t;return new rm(e,r,o,a,[void 0,void 0,i],[n])}visitMap(t){let{type:e,offset:r=0,child:n=new rg().visit({type:e.childType})}=t,i=L(t.nullBitmap),o=C(t.valueOffsets),{length:a=o.length-1,nullCount:s=t.nullBitmap?-1:0}=t;return new rm(e,r,a,s,[o,void 0,i],[n])}}let rw=new rg;function r_(t){return rw.visit(t)}!function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"}(iq||(iq={}));class rx{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(t,e,r,n){return t.prep(8,24),t.writeInt64(BigInt(null!=n?n:0)),t.pad(4),t.writeInt32(r),t.writeInt64(BigInt(null!=e?e:0)),t.offset()}}let rO=new Int32Array(2),rS=new Float32Array(rO.buffer),rA=new Float64Array(rO.buffer),rE=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0];!function(t){t[t.UTF8_BYTES=1]="UTF8_BYTES",t[t.UTF16_STRING=2]="UTF16_STRING"}(iK||(iK={}));class rI{constructor(t){this.bytes_=t,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(t){return new rI(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(t){this.position_=t}capacity(){return this.bytes_.length}readInt8(t){return this.readUint8(t)<<24>>24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)<<16>>16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]<<8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24}readUint32(t){return this.readInt32(t)>>>0}readInt64(t){return BigInt.asIntN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))<<BigInt(32)))}readUint64(t){return BigInt.asUintN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))<<BigInt(32)))}readFloat32(t){return rO[0]=this.readInt32(t),rS[0]}readFloat64(t){return rO[+!rE]=this.readInt32(t),rO[+!!rE]=this.readInt32(t+4),rA[0]}writeInt8(t,e){this.bytes_[t]=e}writeUint8(t,e){this.bytes_[t]=e}writeInt16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeUint16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeInt32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeUint32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeInt64(t,e){this.writeInt32(t,Number(BigInt.asIntN(32,e))),this.writeInt32(t+4,Number(BigInt.asIntN(32,e>>BigInt(32))))}writeUint64(t,e){this.writeUint32(t,Number(BigInt.asUintN(32,e))),this.writeUint32(t+4,Number(BigInt.asUintN(32,e>>BigInt(32))))}writeFloat32(t,e){rS[0]=e,this.writeInt32(t,rO[0])}writeFloat64(t,e){rA[0]=e,this.writeInt32(t,rO[+!rE]),this.writeInt32(t+4,rO[+!!rE])}getBufferIdentifier(){if(this.bytes_.length<this.position_+4+4)throw Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let t="";for(let e=0;e<4;e++)t+=String.fromCharCode(this.readInt8(this.position_+4+e));return t}__offset(t,e){let r=t-this.readInt32(t);return e<this.readInt16(r)?this.readInt16(r+e):0}__union(t,e){return t.bb_pos=e+this.readInt32(e),t.bb=this,t}__string(t,e){t+=this.readInt32(t);let r=this.readInt32(t);t+=4;let n=this.bytes_.subarray(t,t+r);return e===iK.UTF8_BYTES?n:this.text_decoder_.decode(n)}
1__union_with_string(t,e){return"string"==typeof t?this.__string(e):this.__union(t,e)}__indirect(t){return t+this.readInt32(t)}__vector(t){return t+this.readInt32(t)+4}__vector_len(t){return this.readInt32(t+this.readInt32(t))}__has_identifier(t){if(4!=t.length)throw Error("FlatBuffers: file identifier must be length 4");for(let e=0;e<4;e++)if(t.charCodeAt(e)!=this.readInt8(this.position()+4+e))return!1;return!0}createScalarList(t,e){let r=[];for(let n=0;n<e;++n){let e=t(n);null!==e&&r.push(e)}return r}createObjList(t,e){let r=[];for(let n=0;n<e;++n){let e=t(n);null!==e&&r.push(e.unpack())}return r}}class rT{constructor(t){let e;this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null,this.text_encoder=new TextEncoder,e=t||1024,this.bb=rI.allocate(e),this.space=e}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(t){this.force_defaults=t}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(t,e){t>this.minalign&&(this.minalign=t);let r=~(this.bb.capacity()-this.space+e)+1&t-1;for(;this.space<r+t+e;){let t=this.bb.capacity();this.bb=rT.growByteBuffer(this.bb),this.space+=this.bb.capacity()-t}this.pad(r)}pad(t){for(let e=0;e<t;e++)this.bb.writeInt8(--this.space,0)}writeInt8(t){this.bb.writeInt8(this.space-=1,t)}writeInt16(t){this.bb.writeInt16(this.space-=2,t)}writeInt32(t){this.bb.writeInt32(this.space-=4,t)}writeInt64(t){this.bb.writeInt64(this.space-=8,t)}writeFloat32(t){this.bb.writeFloat32(this.space-=4,t)}writeFloat64(t){this.bb.writeFloat64(this.space-=8,t)}addInt8(t){this.prep(1,0),this.writeInt8(t)}addInt16(t){this.prep(2,0),this.writeInt16(t)}addInt32(t){this.prep(4,0),this.writeInt32(t)}addInt64(t){this.prep(8,0),this.writeInt64(t)}addFloat32(t){this.prep(4,0),this.writeFloat32(t)}addFloat64(t){this.prep(8,0),this.writeFloat64(t)}addFieldInt8(t,e,r){(this.force_defaults||e!=r)&&(this.addInt8(e),this.slot(t))}addFieldInt16(t,e,r){(this.force_defaults||e!=r)&&(this.addInt16(e),this.slot(t))}addFieldInt32(t,e,r){(this.force_defaults||e!=r)&&(this.addInt32(e),this.slot(t))}addFieldInt64(t,e,r){(this.force_defaults||e!==r)&&(this.addInt64(e),this.slot(t))}addFieldFloat32(t,e,r){(this.force_defaults||e!=r)&&(this.addFloat32(e),this.slot(t))}addFieldFloat64(t,e,r){(this.force_defaults||e!=r)&&(this.addFloat64(e),this.slot(t))}addFieldOffset(t,e,r){(this.force_defaults||e!=r)&&(this.addOffset(e),this.slot(t))}addFieldStruct(t,e,r){e!=r&&(this.nested(e),this.slot(t))}nested(t){if(t!=this.offset())throw TypeError("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw TypeError("FlatBuffers: object serialization must not be nested.")}slot(t){null!==this.vtable&&(this.vtable[t]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(t){let e=t.capacity();if(0xc0000000&e)throw Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");let r=e<<1,n=rI.allocate(r);return n.setPosition(r-e),n.bytes().set(t.bytes(),r-e),n}addOffset(t){this.prep(4,0),this.writeInt32(this.offset()-t+4)}startObject(t){this.notNested(),null==this.vtable&&(this.vtable=[]),this.vtable_in_use=t;for(let e=0;e<t;e++)this.vtable[e]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(null==this.vtable||!this.isNested)throw Error("FlatBuffers: endObject called without startObject");this.addInt32(0);let t=this.offset(),e=this.vtable_in_use-1;for(;e>=0&&0==this.vtable[e];e--);let r=e+1;for(;e>=0;e--)this.addInt16(0!=this.vtable[e]?t-this.vtable[e]:0);this.addInt16(t-this.object_start);let n=(r+2)*2;this.addInt16(n);let i=0,o=this.space;r:for(e=0;e<this.vtables.length;e++){let t=this.bb.capacity()-this.vtables[e];if(n==this.bb.readInt16(t)){for(let e=2;e<n;e+=2)if(this.bb.readInt16(o+e)!=this.bb.readInt16(t+e))continue r;i=this.vtables[e];break}}return i?(this.space=this.bb.capacity()-t,this.bb.writeInt32(this.space,i-t)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-t,this.offset()-t)),this.isNested=!1,t}finish(t,e,r){let n=4*!!r;if(e){if(this.prep(this.minalign,8+n),4!=e.length)throw TypeError("FlatBuffers: file identifier must be length 4");for(let t=3;t>=0;t--)this.writeInt8(e.charCodeAt(t))}this.prep(this.minalign,4+n),this.addOffset(t),n&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(t,e){this.finish(t,e,!0)}requiredField(t,e){let r=this.bb.capacity()-t,n=r-this.bb.readInt32(r);if(!(e<this.bb.readInt16(n)&&0!=this.bb.readInt16(n+e)))throw TypeError("FlatBuffers: field "+e+" must be set")}startVector(t,e,r){this.notNested(),this.vector_num_elems=e,this.prep(4,t*e),this.prep(r,t*e)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(t){if(!t)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(t))return this.string_maps.get(t);let e=this.createString(t);return this.string_maps.set(t,e),e}createString(t){let e;return null==t?0:(e=t instanceof Uint8Array?t:this.text_encoder.encode(t),this.addInt8(0),this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length),this.bb.bytes().set(e,this.space),this.endVector())}createByteVector(t){return null==t?0:(this.startVector(1,t.length,1),this.bb.setPosition(this.space-=t.length),this.bb.bytes().set(t,this.space),this.endVector())}createObjectOffset(t){return null===t?0:"string"==typeof t?this.createString(t):t.pack(this)}createObjectOffsetList(t){let e=[];for(let r=0;r<t.length;++r){let n=t[r];
1if(null!==n)e.push(this.createObjectOffset(n));else throw TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return e}createStructOffsetList(t,e){return e(this,t.length),this.createObjectOffsetList(t.slice().reverse()),this.endVector()}}class rj{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsKeyValue(t,e){return(e||new rj).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsKeyValue(t,e){return t.setPosition(t.position()+4),(e||new rj).__init(t.readInt32(t.position())+t.position(),t)}key(t){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}value(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}static startKeyValue(t){t.startObject(2)}static addKey(t,e){t.addFieldOffset(0,e,0)}static addValue(t,e){t.addFieldOffset(1,e,0)}static endKeyValue(t){return t.endObject()}static createKeyValue(t,e,r){return rj.startKeyValue(t),rj.addKey(t,e),rj.addValue(t,r),rj.endKeyValue(t)}}!function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4",t[t.V5=4]="V5"}(iX||(iX={})),function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"}(iJ||(iJ={})),function(t){t[t.DenseArray=0]="DenseArray"}(iQ||(iQ={}));class rP{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsInt(t,e){return(e||new rP).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInt(t,e){return t.setPosition(t.position()+4),(e||new rP).__init(t.readInt32(t.position())+t.position(),t)}bitWidth(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}isSigned(){let t=this.bb.__offset(this.bb_pos,6);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}static startInt(t){t.startObject(2)}static addBitWidth(t,e){t.addFieldInt32(0,e,0)}static addIsSigned(t,e){t.addFieldInt8(1,+e,0)}static endInt(t){return t.endObject()}static createInt(t,e,r){return rP.startInt(t),rP.addBitWidth(t,e),rP.addIsSigned(t,r),rP.endInt(t)}}class rM{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDictionaryEncoding(t,e){return(e||new rM).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryEncoding(t,e){return t.setPosition(t.position()+4),(e||new rM).__init(t.readInt32(t.position())+t.position(),t)}id(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}indexType(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new rP).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isOrdered(){let t=this.bb.__offset(this.bb_pos,8);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}dictionaryKind(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):iQ.DenseArray}static startDictionaryEncoding(t){t.startObject(4)}static addId(t,e){t.addFieldInt64(0,e,BigInt("0"))}static addIndexType(t,e){t.addFieldOffset(1,e,0)}static addIsOrdered(t,e){t.addFieldInt8(2,+e,0)}static addDictionaryKind(t,e){t.addFieldInt16(3,e,iQ.DenseArray)}static endDictionaryEncoding(t){return t.endObject()}}!function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.FloatingPoint=3]="FloatingPoint",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct_=13]="Struct_",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.LargeList=21]="LargeList",t[t.RunEndEncoded=22]="RunEndEncoded"}(iZ||(iZ={}));class rD{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsField(t,e){return(e||new rD).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsField(t,e){return t.setPosition(t.position()+4),(e||new rD).__init(t.readInt32(t.position())+t.position(),t)}name(t){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}nullable(){let t=this.bb.__offset(this.bb_pos,6);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}typeType(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint8(this.bb_pos+t):iZ.NONE}type(t){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__union(t,this.bb_pos+e):null}dictionary(t){let e=this.bb.__offset(this.bb_pos,12);return e?(t||new rM).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}children(t,e){let r=this.bb.__offset(this.bb_pos,14);return r?(e||new rD).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}childrenLength(){let t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){let r=this.bb.__offset(this.bb_pos,16);return r?(e||new rj).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}static startField(t){t.startObject(7)}static addName(t,e){t.addFieldOffset(0,e,0)}static addNullable(t,e){t.addFieldInt8(1,+e,0)}static addTypeType(t,e){t.addFieldInt8(2,e,iZ.NONE)}static addType(t,e){t.addFieldOffset(3,e,0)}static addDictionary(t,e){t.addFieldOffset(4,e,0)}static addChildren(t,e){t.addFieldOffset(5,e,0)}static createChildrenVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startChildrenVector(t,e){t.startVector(4,e,4)}static addCustomMetadata(t,e){t.addFieldOffset(6,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endField(t){return t.endObject()}}class rN{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsSchema(t,e){return(e||new rN).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsSchema(t,e){return t.setPosition(t.position()+4),(e||new rN).__init(t.readInt32(t.position())+t.position(),t)}endianness(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):iJ.Little}fields(t,e){let r=this.bb.__offset(this.bb_pos,6);return r?(e||new rD).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}fieldsLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){let r=this.bb.__offset(this.bb_pos,8);return r?(e||new rj).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}features(t){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb.__vector(this.bb_pos+e)+8*t):BigInt(0)}featuresLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}static startSchema(t){t.startObject(4)}static addEndianness(t,e){t.addFieldInt16(0,e,iJ.Little)}static addFields(t,e){t.addFieldOffset(1,e,0)}static createFieldsVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startFieldsVector(t,e){t.startVector(4,e,4)}static addCustomMetadata(t,e){t.addFieldOffset(2,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static addFeatures(t,e){t.addFieldOffset(3,e,0)}static createFeaturesVector(t,e){t.startVector(8,e.length,8);for(let r=e.length-1;r>=0;r--)t.addInt64(e[r]);return t.endVector()}static startFeaturesVector(t,e){t.startVector(8,e,8)}static endSchema(t){return t.endObject()}static finishSchemaBuffer(t,e){t.finish(e)}static finishSizePrefixedSchemaBuffer(t,e){t.finish(e,void 0,!0)}static createSchema(t,e,r,n,i){return rN.startSchema(t),rN.addEndianness(t,e),rN.addFields(t,r),rN.addCustomMetadata(t,n),rN.addFeatures(t,i),rN.endSchema(t)}}class rk{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFooter(t,e){return(e||new rk).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,e){return t.setPosition(t.position()+4),(e||new rk).__init(t.readInt32(t.position())+t.position(),t)}version(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):iX.V1}schema(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new rN).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}dictionaries(t,e){let r=this.bb.__offset(this.bb_pos,8);return r?(e||new rx).__init(this.bb.__vector(this.bb_pos+r)+24*t,this.bb):null}dictionariesLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}recordBatches(t,e){let r=this.bb.__offset(this.bb_pos,10);return r?(e||new rx).__init(this.bb.__vector(this.bb_pos+r)+24*t,this.bb):null}recordBatchesLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){let r=this.bb.__offset(this.bb_pos,12);return r?(e||new rj).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startFooter(t){t.startObject(5)}static addVersion(t,e){t.addFieldInt16(0,e,iX.V1)}static addSchema(t,e){t.addFieldOffset(1,e,0)}static addDictionaries(t,e){t.addFieldOffset(2,e,0)}static startDictionariesVector(t,e){t.startVector(24,e,8)}static addRecordBatches(t,e){t.addFieldOffset(3,e,0)}static startRecordBatchesVector(t,e){t.startVector(24,e,8)}static addCustomMetadata(t,e){t.addFieldOffset(4,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endFooter(t){return t.endObject()}static finishFooterBuffer(t,e){t.finish(e)}static finishSizePrefixedFooterBuffer(t,e){t.finish(e,void 0,!0)}}class rB{constructor(t=[],e,r,n=iX.V5){this.fields=t||[],this.metadata=e||new Map,r||(r=rL(this.fields)),this.dictionaries=r,this.metadataVersion=n}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(t=>t.name)}toString(){return`Schema<{ ${this.fields.map((t,e)=>`${e}: ${t}`).join(", ")} }>`}select(t){let e=new Set(t);return new rB(this.fields.filter(t=>e.has(t.name)),this.metadata)}selectAt(t){return new rB(t.map(t=>
1this.fields[t]).filter(Boolean),this.metadata)}assign(...t){let e=t[0]instanceof rB?t[0]:new rB(Array.isArray(t[0])?t[0]:t),r=[...this.fields],n=rR(rR(new Map,this.metadata),e.metadata),i=e.fields.filter(t=>{let e=r.findIndex(e=>e.name===t.name);return!~e||(r[e]=t.clone({metadata:rR(rR(new Map,r[e].metadata),t.metadata)}))&&!1}),o=rL(i,new Map);return new rB([...r,...i],n,new Map([...this.dictionaries,...o]))}}rB.prototype.fields=null,rB.prototype.metadata=null,rB.prototype.dictionaries=null;class rC{static new(...t){let[e,r,n,i]=t;return t[0]&&"object"==typeof t[0]&&({name:e}=t[0],void 0===r&&(r=t[0].type),void 0===n&&(n=t[0].nullable),void 0===i&&(i=t[0].metadata)),new rC(`${e}`,r,n,i)}constructor(t,e,r=!1,n){this.name=t,this.type=e,this.nullable=r,this.metadata=n||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...t){let[e,r,n,i]=t;return t[0]&&"object"==typeof t[0]?{name:e=this.name,type:r=this.type,nullable:n=this.nullable,metadata:i=this.metadata}=t[0]:[e=this.name,r=this.type,n=this.nullable,i=this.metadata]=t,rC.new(e,r,n,i)}}function rR(t,e){return new Map([...t||new Map,...e||new Map])}function rL(t,e=new Map){for(let r=-1,n=t.length;++r<n;){let n=t[r].type;if(te.isDictionary(n))if(e.has(n.id)){if(e.get(n.id)!==n.dictionary)throw Error("Cannot create Schema containing two different dictionaries with the same Id")}else e.set(n.id,n.dictionary);n.children&&n.children.length>0&&rL(n.children,e)}return e}rC.prototype.type=null,rC.prototype.name=null,rC.prototype.nullable=null,rC.prototype.metadata=null;class rF{static decode(t){t=new rI(L(t));let e=rk.getRootAsFooter(t);return new rU(rB.decode(e.schema(),new Map,e.version()),e)}static encode(t){let e=new rT,r=rB.encode(e,t.schema);for(let r of(rk.startRecordBatchesVector(e,t.numRecordBatches),[...t.recordBatches()].slice().reverse()))rz.encode(e,r);let n=e.endVector();for(let r of(rk.startDictionariesVector(e,t.numDictionaries),[...t.dictionaryBatches()].slice().reverse()))rz.encode(e,r);let i=e.endVector();return rk.startFooter(e),rk.addSchema(e,r),rk.addVersion(e,iX.V5),rk.addRecordBatches(e,n),rk.addDictionaries(e,i),rk.finishFooterBuffer(e,rk.endFooter(e)),e.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(t,e=iX.V5,r,n){this.schema=t,this.version=e,r&&(this._recordBatches=r),n&&(this._dictionaryBatches=n)}*recordBatches(){for(let t,e=-1,r=this.numRecordBatches;++e<r;)(t=this.getRecordBatch(e))&&(yield t)}*dictionaryBatches(){for(let t,e=-1,r=this.numDictionaries;++e<r;)(t=this.getDictionaryBatch(e))&&(yield t)}getRecordBatch(t){return t>=0&&t<this.numRecordBatches&&this._recordBatches[t]||null}getDictionaryBatch(t){return t>=0&&t<this.numDictionaries&&this._dictionaryBatches[t]||null}}class rU extends rF{get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}constructor(t,e){super(t,e.version()),this._footer=e}getRecordBatch(t){if(t>=0&&t<this.numRecordBatches){let e=this._footer.recordBatches(t);if(e)return rz.decode(e)}return null}getDictionaryBatch(t){if(t>=0&&t<this.numDictionaries){let e=this._footer.dictionaries(t);if(e)return rz.decode(e)}return null}}class rz{static decode(t){return new rz(t.metaDataLength(),t.bodyLength(),t.offset())}static encode(t,e){let{metaDataLength:r}=e,n=BigInt(e.offset),i=BigInt(e.bodyLength);return rx.createBlock(t,n,r,i)}constructor(t,e,r){this.metaDataLength=t,this.offset=W(r),this.bodyLength=W(e)}}let rV={fromIterable:t=>rW(function*(t){let e,r=!1,n=[],i,o,a,s=0;({cmd:o,size:a}=(yield null)||{cmd:"read",size:0});let u=U(t)[Symbol.iterator]();try{do if({done:e,value:i}=Number.isNaN(a-s)?u.next():u.next(a-s),!e&&i.byteLength>0&&(n.push(i),s+=i.byteLength),e||a<=s)do({cmd:o,size:a}=yield"peek"===o?k(n,a)[0]:([i,n,s]=k(n,a),i));while(a<s);while(!e)}catch(t){r=!0,"function"==typeof u.throw&&u.throw(t)}finally{!1===r&&"function"==typeof u.return&&u.return(null)}return null}(t)),fromAsyncIterable:t=>rW(function(t){return a(this,arguments,function*(){let e,r=!1,n=[],i,a,s,u=0;({cmd:a,size:s}=(yield yield o(null))||{cmd:"read",size:0});let c=z(t)[Symbol.asyncIterator]();try{do if({done:e,value:i}=Number.isNaN(s-u)?yield o(c.next()):yield o(c.next(s-u)),!e&&i.byteLength>0&&(n.push(i),u+=i.byteLength),e||s<=u)do({cmd:a,size:s}=yield yield o("peek"===a?k(n,s)[0]:([i,n,u]=k(n,s),i)));while(s<u);while(!e)}catch(t){r=!0,"function"==typeof c.throw&&(yield o(c.throw(t)))}
1finally{!1===r&&"function"==typeof c.return&&(yield o(c.return(new Uint8Array(0))))}return yield o(null)})}(t)),fromDOMStream:t=>rW(function(t){return a(this,arguments,function*(){let e=!1,r=!1,n=[],i,a,s,u=0;({cmd:a,size:s}=(yield yield o(null))||{cmd:"read",size:0});let c=new r$(t);try{do if({done:e,value:i}=Number.isNaN(s-u)?yield o(c.read()):yield o(c.read(s-u)),!e&&i.byteLength>0&&(n.push(L(i)),u+=i.byteLength),e||s<=u)do({cmd:a,size:s}=yield yield o("peek"===a?k(n,s)[0]:([i,n,u]=k(n,s),i)));while(s<u);while(!e)}catch(t){r=!0,yield o(c.cancel(t))}finally{!1===r?yield o(c.cancel()):t.locked&&c.releaseLock()}return yield o(null)})}(t)),fromNodeStream:t=>rW(function(t){return a(this,arguments,function*(){let e=[],r="error",n=!1,i=null,a,s,u=0,c=[],l;if({cmd:a,size:s}=(yield yield o(null))||{cmd:"read",size:0},t.isTTY)return yield yield o(new Uint8Array(0)),yield o(null);try{e[0]=rY(t,"end"),e[1]=rY(t,"error");do{if(e[2]=rY(t,"readable"),[r,i]=yield o(Promise.race(e.map(t=>t[2]))),"error"===r)break;if((n="end"===r)||(Number.isFinite(s-u)?(l=L(t.read(s-u))).byteLength<s-u&&(l=L(t.read())):l=L(t.read()),l.byteLength>0&&(c.push(l),u+=l.byteLength)),n||s<=u)do({cmd:a,size:s}=yield yield o("peek"===a?k(c,s)[0]:([l,c,u]=k(c,s),l)));while(s<u)}while(!n)}finally{var f,h;yield o((f=e,h="error"===r?i:null,l=c=null,new Promise((e,r)=>{for(let[e,r]of f)t.off(e,r);try{let e=t.destroy;e&&e.call(t,h),h=void 0}catch(t){h=t||h}finally{null!=h?r(h):e()}})))}return yield o(null)})}(t)),toDOMStream(t,e){throw Error('"toDOMStream" not available in this environment')},toNodeStream(t,e){throw Error('"toNodeStream" not available in this environment')}},rW=t=>(t.next(),t);class r${constructor(t){this.source=t,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch(()=>{})}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(t){return i(this,void 0,void 0,function*(){let{reader:e,source:r}=this;e&&(yield e.cancel(t).catch(()=>{})),r&&r.locked&&this.releaseLock()})}read(t){return i(this,void 0,void 0,function*(){if(0===t)return{done:null==this.reader,value:new Uint8Array(0)};let e=yield this.reader.read();return e.done||(e.value=L(e)),e})}}let rY=(t,e)=>{let r,n=t=>r([e,t]);return[e,n,new Promise(i=>(r=i)&&t.once(e,n))]},rH=Object.freeze({done:!0,value:void 0});class rG{constructor(t){this._json=t}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class rq{tee(){return this._getDOMStream().tee()}pipe(t,e){return this._getNodeStream().pipe(t,e)}pipeTo(t,e){return this._getDOMStream().pipeTo(t,e)}pipeThrough(t,e){return this._getDOMStream().pipeThrough(t,e)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class rK extends rq{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(t=>this._closedPromiseResolve=t)}get closed(){return this._closedPromise}cancel(t){return i(this,void 0,void 0,function*(){yield this.return(t)})}write(t){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(t):this.resolvers.shift().resolve({done:!1,value:t}))}abort(t){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:t}:this.resolvers.shift().reject({done:!0,value:t}))}close(){if(this._closedPromiseResolve){let{resolvers:t}=this;for(;t.length>0;)t.shift().resolve(rH);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(t){return rV.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,t)}toNodeStream(t){return rV.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,t)}throw(t){return i(this,void 0,void 0,function*(){return yield this.abort(t),rH})}return(t){return i(this,void 0,void 0,function*(){return yield this.close(),rH})}read(t){return i(this,void 0,void 0,function*(){return(yield this.next(t,"read")).value})}peek(t){return i(this,void 0,void 0,function*(){return(yield this.next(t,"peek")).value})}next(...t){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((t,e)=>{this.resolvers.push({resolve:t,reject:e})}):Promise.resolve(rH)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw Error("AsyncQueue is closed")}}class rX extends rK{write(t){if((t=L(t)).byteLength>0)return super.write(t)}toString(t=!1){return t?h(this.toUint8Array(!0)):this.toUint8Array(!1).then(h)}toUint8Array(t=!1){return t?k(this._values)[0]:i(this,void 0,void 0,function*(){var t,e,r,n;let i=[],o=0;try{for(var a,s=!0,c=u(this);!(t=(a=yield c.next()).done);s=!0)n=a.value,s=!1,i.push(n),o+=n.byteLength}catch(t){e={error:t}}finally{try{!s&&!t&&(r=c.return)&&(yield r.call(c))}finally{if(e)throw e.error}}return k(i,o)[0]})}}class rJ{constructor(t){t&&(this.source=new rZ(rV.fromIterable(t)))}[Symbol.iterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}}class rQ{constructor(t){t instanceof rQ?this.source=t.source:t instanceof rX?this.source=new r0(rV.fromAsyncIterable(t)):P(t)?this.source=new r0(rV.fromNodeStream(t)):T(t)?this.source=new r0(rV.fromDOMStream(t)):A(t)?this.source=new r0(rV.fromDOMStream(t.body)):w(t)?this.source=new r0(rV.fromIterable(t)):g(t)?this.source=new r0(rV.fromAsyncIterable(t)):_(t)&&(this.source=new r0(rV.fromAsyncIterable(t)))}[Symbol.asyncIterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}get closed(){return this.source.closed}cancel(t){return this.source.cancel(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}}class rZ{constructor(t){this.source=t}cancel(t){this.return(t)}peek(t){return this.next(t,"peek").value}read(t){return this.next(t,"read").value}next(t,e="read"){return this.source.next({cmd:e,size:t})}throw(t){return Object.create(this.source.throw&&this.source.throw(t)||rH)}return(t){return Object.create(this.source.return&&this.source.return(t)||rH)}}class r0{constructor(t){this.source=t,this._closedPromise=new Promise(t=>this._closedPromiseResolve=t)}cancel(t){return i(this,void 0,void 0,function*(){yield this.return(t)})}get closed(){return this._closedPromise}read(t){return i(this,void 0,void 0,function*(){return(yield this.next(t,"read")).value})}peek(t){return i(this,void 0,void 0,function*(){return(yield this.next(t,"peek")).value})}next(t){return i(this,arguments,void 0,function*(t,e="read"){return yield this.source.next({cmd:e,size:t})})}throw(t){return i(this,void 0,void 0,function*(){let e=this.source.throw&&(yield this.source.throw(t))||rH;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)})}return(t){return i(this,void 0,void 0,function*(){let e=this.source.return&&
1(yield this.source.return(t))||rH;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)})}}class r1 extends rJ{constructor(t,e){super(),this.position=0,this.buffer=L(t),this.size=void 0===e?this.buffer.byteLength:e}readInt32(t){let{buffer:e,byteOffset:r}=this.readAt(t,4);return new DataView(e,r).getInt32(0,!0)}seek(t){return this.position=Math.min(t,this.size),t<this.size}read(t){let{buffer:e,size:r,position:n}=this;return e&&n<r?("number"!=typeof t&&(t=Number.POSITIVE_INFINITY),this.position=Math.min(r,n+Math.min(r-n,t)),e.subarray(n,this.position)):null}readAt(t,e){let r=this.buffer,n=Math.min(this.size,t+e);return r?r.subarray(t,n):new Uint8Array(e)}close(){this.buffer&&(this.buffer=null)}throw(t){return this.close(),{done:!0,value:t}}return(t){return this.close(),{done:!0,value:t}}}class r2 extends rQ{constructor(t,e){super(),this.position=0,this._handle=t,"number"==typeof e?this.size=e:this._pending=i(this,void 0,void 0,function*(){this.size=(yield t.stat()).size,delete this._pending})}readInt32(t){return i(this,void 0,void 0,function*(){let{buffer:e,byteOffset:r}=yield this.readAt(t,4);return new DataView(e,r).getInt32(0,!0)})}seek(t){return i(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(t,this.size),t<this.size})}read(t){return i(this,void 0,void 0,function*(){this._pending&&(yield this._pending);let{_handle:e,size:r,position:n}=this;if(e&&n<r){"number"!=typeof t&&(t=Number.POSITIVE_INFINITY);let i=n,o=0,a=0,s=Math.min(r,i+Math.min(r-i,t)),u=new Uint8Array(Math.max(0,(this.position=s)-i));for(;(i+=a)<s&&(o+=a)<u.byteLength;)({bytesRead:a}=yield e.read(u,o,u.byteLength-o,i));return u}return null})}readAt(t,e){return i(this,void 0,void 0,function*(){this._pending&&(yield this._pending);let{_handle:r,size:n}=this;if(r&&t+e<n){let i=new Uint8Array(Math.min(n,t+e)-t);return(yield r.read(i,0,e,t)).buffer}return new Uint8Array(e)})}close(){return i(this,void 0,void 0,function*(){let t=this._handle;this._handle=null,t&&(yield t.close())})}throw(t){return i(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:t}})}return(t){return i(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:t}})}}function r3(t){return t<0&&(t=0xffffffff+t+1),`0x${t.toString(16)}`}let r4=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];class r8{constructor(t){this.buffer=t}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(t){let e=new Uint32Array([this.buffer[1]>>>16,65535&this.buffer[1],this.buffer[0]>>>16,65535&this.buffer[0]]),r=new Uint32Array([t.buffer[1]>>>16,65535&t.buffer[1],t.buffer[0]>>>16,65535&t.buffer[0]]),n=e[3]*r[3];this.buffer[0]=65535&n;let i=n>>>16;return i+=(n=e[2]*r[3])+(n=e[3]*r[2]>>>0),this.buffer[0]+=i<<16,this.buffer[1]=65536*(i>>>0<n),this.buffer[1]+=i>>>16,this.buffer[1]+=e[1]*r[3]+e[2]*r[2]+e[3]*r[1],this.buffer[1]+=e[0]*r[3]+e[1]*r[2]+e[2]*r[1]+e[3]*r[0]<<16,this}_plus(t){let e=this.buffer[0]+t.buffer[0]>>>0;this.buffer[1]+=t.buffer[1],e<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=e}lessThan(t){return this.buffer[1]<t.buffer[1]||this.buffer[1]===t.buffer[1]&&this.buffer[0]<t.buffer[0]}equals(t){return this.buffer[1]===t.buffer[1]&&this.buffer[0]==t.buffer[0]}greaterThan(t){return t.lessThan(this)}hex(){return`${r3(this.buffer[1])} ${r3(this.buffer[0])}`}}class r6 extends r8{times(t){return this._times(t),this}plus(t){return this._plus(t),this}static from(t,e=new Uint32Array(2)){return r6.fromString("string"==typeof t?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(2)){return r6.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(2)){let r=t.length,n=new r6(e);for(let e=0;e<r;){let i=8<r-e?8:r-e,o=new r6(new Uint32Array([Number.parseInt(t.slice(e,e+i),10),0])),a=new r6(new Uint32Array([r4[i],0]));n.times(a),n.plus(o),e+=i}return n}static convertArray(t){let e=new Uint32Array(2*t.length);for(let r=-1,n=t.length;++r<n;)r6.from(t[r],new Uint32Array(e.buffer,e.byteOffset+2*r*4,2));return e}static multiply(t,e){return new r6(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new r6(new Uint32Array(t.buffer)).plus(e)}}class r5 extends r8{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],0==this.buffer[0]&&++this.buffer[1],this}times(t){return this._times(t),this}plus(t){return this._plus(t),this}lessThan(t){let e=0|this.buffer[1],r=0|t.buffer[1];return e<r||e===r&&this.buffer[0]<t.buffer[0]}
1static from(t,e=new Uint32Array(2)){return r5.fromString("string"==typeof t?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(2)){return r5.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(2)){let r=t.startsWith("-"),n=t.length,i=new r5(e);for(let e=+!!r;e<n;){let r=8<n-e?8:n-e,o=new r5(new Uint32Array([Number.parseInt(t.slice(e,e+r),10),0])),a=new r5(new Uint32Array([r4[r],0]));i.times(a),i.plus(o),e+=r}return r?i.negate():i}static convertArray(t){let e=new Uint32Array(2*t.length);for(let r=-1,n=t.length;++r<n;)r5.from(t[r],new Uint32Array(e.buffer,e.byteOffset+2*r*4,2));return e}static multiply(t,e){return new r5(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new r5(new Uint32Array(t.buffer)).plus(e)}}class r9{constructor(t){this.buffer=t}high(){return new r5(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new r5(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],0==this.buffer[0]&&++this.buffer[1],0==this.buffer[1]&&++this.buffer[2],0==this.buffer[2]&&++this.buffer[3],this}times(t){let e=new r6(new Uint32Array([this.buffer[3],0])),r=new r6(new Uint32Array([this.buffer[2],0])),n=new r6(new Uint32Array([this.buffer[1],0])),i=new r6(new Uint32Array([this.buffer[0],0])),o=new r6(new Uint32Array([t.buffer[3],0])),a=new r6(new Uint32Array([t.buffer[2],0])),s=new r6(new Uint32Array([t.buffer[1],0])),u=new r6(new Uint32Array([t.buffer[0],0])),c=r6.multiply(i,u);this.buffer[0]=c.low();let l=new r6(new Uint32Array([c.high(),0]));return c=r6.multiply(n,u),l.plus(c),c=r6.multiply(i,s),l.plus(c),this.buffer[1]=l.low(),this.buffer[3]=+!!l.lessThan(c),this.buffer[2]=l.high(),new r6(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(r6.multiply(r,u)).plus(r6.multiply(n,s)).plus(r6.multiply(i,a)),this.buffer[3]+=r6.multiply(e,u).plus(r6.multiply(r,s)).plus(r6.multiply(n,a)).plus(r6.multiply(i,o)).low(),this}plus(t){let e=new Uint32Array(4);return e[3]=this.buffer[3]+t.buffer[3]>>>0,e[2]=this.buffer[2]+t.buffer[2]>>>0,e[1]=this.buffer[1]+t.buffer[1]>>>0,e[0]=this.buffer[0]+t.buffer[0]>>>0,e[0]<this.buffer[0]>>>0&&++e[1],e[1]<this.buffer[1]>>>0&&++e[2],e[2]<this.buffer[2]>>>0&&++e[3],this.buffer[3]=e[3],this.buffer[2]=e[2],this.buffer[1]=e[1],this.buffer[0]=e[0],this}hex(){return`${r3(this.buffer[3])} ${r3(this.buffer[2])} ${r3(this.buffer[1])} ${r3(this.buffer[0])}`}static multiply(t,e){return new r9(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new r9(new Uint32Array(t.buffer)).plus(e)}static from(t,e=new Uint32Array(4)){return r9.fromString("string"==typeof t?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(4)){return r9.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(4)){let r=t.startsWith("-"),n=t.length,i=new r9(e);for(let e=+!!r;e<n;){let r=8<n-e?8:n-e,o=new r9(new Uint32Array([Number.parseInt(t.slice(e,e+r),10),0,0,0])),a=new r9(new Uint32Array([r4[r],0,0,0]));i.times(a),i.plus(o),e+=r}return r?i.negate():i}static convertArray(t){let e=new Uint32Array(4*t.length);for(let r=-1,n=t.length;++r<n;)r9.from(t[r],new Uint32Array(e.buffer,e.byteOffset+16*r,4));return e}}class r7 extends tC{constructor(t,e,r,n,i=iX.V5){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=t,this.nodes=e,this.buffers=r,this.dictionaries=n,this.metadataVersion=i}visit(t){return super.visit(t instanceof rC?t.type:t)}visitNull(t,{length:e}=this.nextFieldNode()){return r_({type:t,length:e})}visitBool(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitInt(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitFloat(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitUtf8(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,nullBitmap:this.readNullBitmap(t,r),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitLargeUtf8(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,nullBitmap:this.readNullBitmap(t,r),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitBinary(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,nullBitmap:this.readNullBitmap(t,r),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitLargeBinary(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,nullBitmap:this.readNullBitmap(t,r),valueOffsets:this.readOffsets(t),data:this.readData(t)})}visitFixedSizeBinary(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitDate(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitTimestamp(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitTime(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitDecimal(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitList(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,nullBitmap:this.readNullBitmap(t,r),valueOffsets:this.readOffsets(t),child:this.visit(t.children[0])})}visitStruct(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,nullBitmap:this.readNullBitmap(t,r),children:this.visitMany(t.children)})}visitUnion(t,{length:e,nullCount:r}=this.nextFieldNode()){return this.metadataVersion<iX.V5&&this.readNullBitmap(t,r),t.mode===iG.Sparse?this.visitSparseUnion(t,{length:e,nullCount:r}):this.visitDenseUnion(t,{length:e,nullCount:r})}visitDenseUnion(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,typeIds:this.readTypeIds(t),valueOffsets:this.readOffsets(t),children:this.visitMany(t.children)})}visitSparseUnion(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,typeIds:this.readTypeIds(t),children:this.visitMany(t.children)})}visitDictionary(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t.indices),dictionary:this.readDictionary(t)})}visitInterval(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitDuration(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,nullBitmap:this.readNullBitmap(t,r),data:this.readData(t)})}visitFixedSizeList(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,nullBitmap:this.readNullBitmap(t,r),child:this.visit(t.children[0])})}visitMap(t,{length:e,nullCount:r}=this.nextFieldNode()){return r_({type:t,length:e,nullCount:r,nullBitmap:this.readNullBitmap(t,r),valueOffsets:this.readOffsets(t),child:this.visit(t.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(t,e,r=this.nextBufferRange()){return e>0&&this.readData(t,r)||new Uint8Array(0)}readOffsets(t,e){return this.readData(t,e)}readTypeIds(t,e){return this.readData(t,e)}readData(t,{length:e,offset:r}=this.nextBufferRange()){return this.bytes.subarray(r,r+e)}readDictionary(t){return this.dictionaries.get(t.id)}}class nt extends r7{constructor(t,e,r,n,i){super(new Uint8Array(0),e,r,n,i),this.sources=t}readNullBitmap(t,e,{offset:r}=this.nextBufferRange()){return e<=0?new Uint8Array(0):rn(this.sources[r])}readOffsets(t,{offset:e}=this.nextBufferRange()){return B(Uint8Array,B(t.OffsetArrayType,this.sources[e]))}readTypeIds(t,{offset:e}=this.nextBufferRange()){return B(Uint8Array,B(t.ArrayType,this.sources[e]))}readData(t,{offset:e}=this.nextBufferRange()){let{sources:r}=this;if(te.isTimestamp(t)||(te.isInt(t)||te.isTime(t))&&64===t.bitWidth||te.isDuration(t))return B(Uint8Array,r5.convertArray(r[e]));if(te.isDate(t)&&t.unit===iY.MILLISECOND)return B(Uint8Array,r5.convertArray(r[e]));if(te.isDecimal(t))return B(Uint8Array,r9.convertArray(r[e]));if(te.isBinary(t)||te.isLargeBinary(t)||te.isFixedSizeBinary(t))return function(t){let e=t.join(""),r=new Uint8Array(e.length/2);for(let t=0;t<e.length;t+=2)r[t>>1]=Number.parseInt(e.slice(t,t+2),16);return r}(r[e]);else if(te.isBool(t))return rn(r[e]);else if(te.isUtf8(t)||te.isLargeUtf8(t))return p(r[e].join(""));return B(Uint8Array,B(t.ArrayType,r[e].map(t=>+t)))}}class ne extends tC{compareSchemas(t,e){return t===e||e instanceof t.constructor&&this.compareManyFields(t.fields,e.fields)}compareManyFields(t,e){return t===e||Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every((t,r)=>this.compareFields(t,e[r]))}compareFields(t,e){return t===e||e instanceof t.constructor&&t.name===e.name&&t.nullable===e.nullable&&this.visit(t.type,e.type)}}function nr(t,e){return e instanceof t.constructor}function nn(t,e){return t===e||nr(t,e)}function ni(t,e){return t===e||nr(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function no(t,e){return t===e||nr(t,e)&&t.precision===e.precision}function na(t,e){return t===e||nr(t,e)&&t.unit===e.unit}function ns(t,e){return t===e||nr(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function nu(t,e){return t===e||nr(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function nc(t,e){return t===e||nr(t,e)&&t.mode===e.mode&&t.typeIds.every((t,r)=>t===e.typeIds[r])&&nh.compareManyFields(t.children,e.children)}function nl(t,e){return t===e||nr(t,e)&&t.unit===e.unit}function nf(t,e){return t===e||nr(t,e)&&t.unit===e.unit}ne.prototype.visitNull=nn,ne.prototype.visitBool=nn,ne.prototype.visitInt=ni,ne.prototype.visitInt8=ni,ne.prototype.visitInt16=ni,ne.prototype.visitInt32=ni,ne.prototype.visitInt64=ni,ne.prototype.visitUint8=ni,ne.prototype.visitUint16=ni,ne.prototype.visitUint32=ni,ne.prototype.visitUint64=ni,ne.prototype.visitFloat=no,ne.prototype.visitFloat16=no,ne.prototype.visitFloat32=no,ne.prototype.visitFloat64=no,ne.prototype.visitUtf8=nn,ne.prototype.visitLargeUtf8=nn,ne.prototype.visitBinary=nn,ne.prototype.visitLargeBinary=nn,ne.prototype.visitFixedSizeBinary=function(t,e){return t===e||nr(t,e)&&t.byteWidth===e.byteWidth},ne.prototype.visitDate=na,ne.prototype.visitDateDay=na,ne.prototype.visitDateMillisecond=na,ne.prototype.visitTimestamp=ns,ne.prototype.visitTimestampSecond=ns,ne.prototype.visitTimestampMillisecond=ns,ne.prototype.visitTimestampMicrosecond=ns,ne.prototype.visitTimestampNanosecond=ns,ne.prototype.visitTime=nu,ne.prototype.visitTimeSecond=nu,ne.prototype.visitTimeMillisecond=nu,ne.prototype.visitTimeMicrosecond=nu,ne.prototype.visitTimeNanosecond=nu,ne.prototype.visitDecimal=nn,ne.prototype.visitList=function(t,e){return t===e||nr(t,e)&&t.children.length===e.children.length&&nh.compareManyFields(t.children,e.children)},ne.prototype.visitStruct=function(t,e){return t===e||nr(t,e)&&t.children.length===e.children.length&&nh.compareManyFields(t.children,e.children)},ne.prototype.visitUnion=nc,ne.prototype.visitDenseUnion=nc,ne.prototype.visitSparseUnion=nc,ne.prototype.visitDictionary=function(t,e){return t===e||nr(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&nh.visit(t.indices,e.indices)&&nh.visit(t.dictionary,e.dictionary)},ne.prototype.visitInterval=nl,ne.prototype.visitIntervalDayTime=nl,ne.prototype.visitIntervalYearMonth=nl,ne.prototype.visitDuration=nf,ne.prototype.visitDurationSecond=nf,ne.prototype.visitDurationMillisecond=nf,ne.prototype.visitDurationMicrosecond=nf,ne.prototype.visitDurationNanosecond=nf,ne.prototype.visitFixedSizeList=function(t,e){return t===e||nr(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&nh.compareManyFields(t.children,e.children)},ne.prototype.visitMap=function(t,e){return t===e||nr(t,e)&&t.keysSorted===e.ke
1ysSorted&&t.children.length===e.children.length&&nh.compareManyFields(t.children,e.children)};let nh=new ne;function nd(t,e){return nh.compareSchemas(t,e)}function np(t,e){return function(t,e){let r=[...t.fields],n=[],i={numBatches:e.reduce((t,e)=>Math.max(t,e.length),0)},o=0,a=0,s=-1,u=e.length,c,l=[];for(;i.numBatches-- >0;){for(a=Number.POSITIVE_INFINITY,s=-1;++s<u;)l[s]=c=e[s].shift(),a=Math.min(a,c?c.length:a);Number.isFinite(a)&&(l=function(t,e,r,n,i){var o;let a=(e+63&-64)>>3;for(let s=-1,u=n.length;++s<u;){let u=r[s],c=null==u?void 0:u.length;if(c>=e)c===e?r[s]=u:(r[s]=u.slice(0,e),i.numBatches=Math.max(i.numBatches,n[s].unshift(u.slice(e,c-e))));else{let n=t[s];t[s]=n.clone({nullable:!0}),r[s]=null!=(o=null==u?void 0:u._changeLengthAndBackfillNullBitmap(e))?o:r_({type:n.type,length:e,nullCount:e,nullBitmap:new Uint8Array(a)})}}return r}(r,a,l,e,i),a>0&&(n[o++]=r_({type:new tT(r),length:a,nullCount:0,children:l.slice()})))}return[t=t.assign(r),n.map(e=>new nb(t,e))]}(t,e.map(t=>t.data.concat()))}class ny{constructor(...t){var e,r;let n,i;if(0===t.length)return this.batches=[],this.schema=new rB([]),this._offsets=[0],this;t[0]instanceof rB&&(n=t.shift()),t.at(-1)instanceof Uint32Array&&(i=t.pop());let o=t=>{if(t){if(t instanceof nb)return[t];else if(t instanceof ny)return t.batches;else if(t instanceof rm){if(t.type instanceof tT)return[new nb(new rB(t.type.children),t)]}else if(Array.isArray(t))return t.flatMap(t=>o(t));else if("function"==typeof t[Symbol.iterator])return[...t].flatMap(t=>o(t));else if("object"==typeof t){let e=Object.keys(t),r=e.map(e=>new rb([t[e]])),[,i]=np(null!=n?n:new rB(e.map((t,e)=>new rC(String(t),r[e].type,r[e].nullable))),r);return 0===i.length?[new nb(t)]:i}}return[]},a=t.flatMap(t=>o(t));if(!((n=null!=(r=null!=n?n:null==(e=a[0])?void 0:e.schema)?r:new rB([]))instanceof rB))throw TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(let t of a){if(!(t instanceof nb))throw TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!nd(n,t.schema))throw TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=n,this.batches=a,this._offsets=null!=i?i:e3(this.data)}get data(){return this.batches.map(({data:t})=>t)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((t,e)=>t+e.length,0)}get nullCount(){return -1===this._nullCount&&(this._nullCount=e2(this.data)),this._nullCount}isValid(t){return!1}get(t){return null}at(t){return this.get(eX(t,this.numRows))}set(t,e){}indexOf(t,e){return -1}[Symbol.iterator](){return this.batches.length>0?rd.visit(new rb(this.data)):[][Symbol.iterator]()}toArray(){return[...this]}toString(){return`[ 2 ${this.toArray().join(",\n ")} 3]`}concat(...t){let e=this.schema;return new ny(e,this.data.concat(t.flatMap(({data:t})=>t)).map(t=>new nb(e,t)))}slice(t,e){let r=this.schema;return[t,e]=eK({length:this.numRows},t,e),new ny(r,e4(this.data,this._offsets,t,e).map(t=>new nb(r,t)))}getChild(t){return this.getChildAt(this.schema.fields.findIndex(e=>e.name===t))}getChildAt(t){if(t>-1&&t<this.schema.fields.length){let e=this.data.map(e=>e.children[t]);if(0===e.length){let{type:r}=this.schema.fields[t],n=r_({type:r,length:0,nullCount:0});e.push(n._changeLengthAndBackfillNullBitmap(this.numRows))}return new rb(e)}return null}setChild(t,e){var r;return this.setChildAt(null==(r=this.schema.fields)?void 0:r.findIndex(e=>e.name===t),e)}setChildAt(t,e){let r=this.schema,n=[...this.batches];if(t>-1&&t<this.numCols){e||(e=new rb([r_({type:new tr,length:this.numRows})]));let i=r.fields.slice(),o=i[t].clone({type:e.type}),a=this.schema.fields.map((t,e)=>this.getChildAt(e));[i[t],a[t]]=[o,e],[r,n]=np(r,a)}return new ny(r,n)}select(t){let e=this.schema.fields.reduce((t,e,r)=>t.set(e.name,r),new Map);return this.selectAt(t.map(t=>e.get(t)).filter(t=>t>-1))}selectAt(t){return new ny(this.schema.selectAt(t),this.batches.map(e=>e.selectAt(t)))}assign(t){let e=this.schema.fields,[r,n]=t.schema.fields.reduce((t,r,n)=>{let[i,o]=t,a=e.findIndex(t=>t.name===r.name);return~a?o[a]=n:i.push(n),t},[[],[]]);return new ny(...np(this.schema.assign(t.schema),[...e.map((t,e)=>
3[e,n[e]]).map(([e,r])=>void 0===r?this.getChildAt(e):t.getChildAt(r)),...r.map(e=>t.getChildAt(e))].filter(Boolean)))}}ny[Symbol.toStringTag]=(t=>(t.schema=null,t.batches=[],t._offsets=new Uint32Array([0]),t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t.isValid=e5(e6),t.get=e5(ez.getVisitFn(iz.Struct)),t.set=e9(ec.getVisitFn(iz.Struct)),t.indexOf=e7(rc.getVisitFn(iz.Struct)),"Table"))(ny.prototype);class nb{constructor(...t){switch(t.length){case 2:if([this.schema]=t,!(this.schema instanceof rB)||([,this.data=r_({nullCount:0,type:new tT(this.schema.fields),children:this.schema.fields.map(t=>r_({type:t.type,nullCount:0}))})]=t,!(this.data instanceof rm)))throw TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=nv(this.schema,this.data.children);break;case 1:{let[e]=t,{fields:r,children:n,length:i}=Object.keys(e).reduce((t,r,n)=>(t.children[n]=e[r],t.length=Math.max(t.length,e[r].length),t.fields[n]=rC.new({name:r,type:e[r].type,nullable:!0}),t),{length:0,fields:[],children:[]}),o=new rB(r),a=r_({type:new tT(r),length:i,children:n,nullCount:0});[this.schema,this.data]=nv(o,a.children,i);break}default:throw TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=function t(e,r,n=new Map){var i,o;if((null!=(i=null==e?void 0:e.length)?i:0)>0&&(null==e?void 0:e.length)===(null==r?void 0:r.length))for(let i=-1,a=e.length;++i<a;){let{type:a}=e[i],s=r[i];for(let e of[s,...(null==(o=null==s?void 0:s.dictionary)?void 0:o.data)||[]])t(a.children,null==e?void 0:e.children,n);if(te.isDictionary(a)){let{id:t}=a;if(n.has(t)){if(n.get(t)!==s.dictionary)throw Error("Cannot create Schema containing two different dictionaries with the same Id")}else(null==s?void 0:s.dictionary)&&n.set(t,s.dictionary)}}return n}(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(t){return this.data.getValid(t)}get(t){return ez.visit(this.data,t)}at(t){return this.get(eX(t,this.numRows))}set(t,e){return ec.visit(this.data,t,e)}indexOf(t,e){return rc.visit(this.data,t,e)}[Symbol.iterator](){return rd.visit(new rb([this.data]))}toArray(){return[...this]}concat(...t){return new ny(this.schema,[this,...t])}slice(t,e){let[r]=new rb([this.data]).slice(t,e).data;return new nb(this.schema,r)}getChild(t){var e;return this.getChildAt(null==(e=this.schema.fields)?void 0:e.findIndex(e=>e.name===t))}getChildAt(t){return t>-1&&t<this.schema.fields.length?new rb([this.data.children[t]]):null}setChild(t,e){var r;return this.setChildAt(null==(r=this.schema.fields)?void 0:r.findIndex(e=>e.name===t),e)}setChildAt(t,e){let r=this.schema,n=this.data;if(t>-1&&t<this.numCols){e||(e=new rb([r_({type:new tr,length:this.numRows})]));let i=r.fields.slice(),o=n.children.slice(),a=i[t].clone({type:e.type});[i[t],o[t]]=[a,e.data[0]],r=new rB(i,new Map(this.schema.metadata)),n=r_({type:new tT(i),children:o})}return new nb(r,n)}select(t){let e=this.schema.select(t),r=new tT(e.fields),n=[];for(let e of t){let t=this.schema.fields.findIndex(t=>t.name===e);~t&&(n[t]=this.data.children[t])}return new nb(e,r_({type:r,length:this.numRows,children:n}))}selectAt(t){let e=this.schema.selectAt(t),r=t.map(t=>this.data.children[t]).filter(Boolean),n=r_({type:new tT(e.fields),length:this.numRows,children:r});return new nb(e,n)}}function nv(t,e,r=e.reduce((t,e)=>Math.max(t,e.length),0)){var n;let i=[...t.fields],o=[...e],a=(r+63&-64)>>3;for(let[s,u]of t.fields.entries()){let t=e[s];t&&t.length===r||(i[s]=u.clone({nullable:!0}),o[s]=null!=(n=null==t?void 0:t._changeLengthAndBackfillNullBitmap(r))?n:r_({type:u.type,length:r,nullCount:r,nullBitmap:new Uint8Array(a)}))}return[t.assign(i),r_({type:new tT(i),length:r,children:o})]}nb[Symbol.toStringTag]=(t=>(t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(nb.prototype);class nm extends nb{constructor(t){super(t,r_({type:new tT(t.fields),nullCount:0,children:t.fields.map(t=>r_({type:t.type}))}))}}!function(t){t[t.BUFFER=0]="BUFFER"}(i0||(i0={})),function(t){t[t.LZ4_FRAME=0]="LZ4_FRAME",t[t.ZSTD=1]="ZSTD"}(i1||(i1={}));
vendor: 10,448 bytes, line 3
3class ng{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBodyCompression(t,e){return(e||new ng).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBodyCompression(t,e){return t.setPosition(t.position()+4),(e||new ng).__init(t.readInt32(t.position())+t.position(),t)}codec(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt8(this.bb_pos+t):i1.LZ4_FRAME}method(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt8(this.bb_pos+t):i0.BUFFER}static startBodyCompression(t){t.startObject(2)}static addCodec(t,e){t.addFieldInt8(0,e,i1.LZ4_FRAME)}static addMethod(t,e){t.addFieldInt8(1,e,i0.BUFFER)}static endBodyCompression(t){return t.endObject()}static createBodyCompression(t,e,r){return ng.startBodyCompression(t),ng.addCodec(t,e),ng.addMethod(t,r),ng.endBodyCompression(t)}}class nw{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(t,e,r){return t.prep(8,16),t.writeInt64(BigInt(null!=r?r:0)),t.writeInt64(BigInt(null!=e?e:0)),t.offset()}}class n_{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(t,e,r){return t.prep(8,16),t.writeInt64(BigInt(null!=r?r:0)),t.writeInt64(BigInt(null!=e?e:0)),t.offset()}}class nx{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsRecordBatch(t,e){return(e||new nx).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsRecordBatch(t,e){return t.setPosition(t.position()+4),(e||new nx).__init(t.readInt32(t.position())+t.position(),t)}length(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}nodes(t,e){let r=this.bb.__offset(this.bb_pos,6);return r?(e||new n_).__init(this.bb.__vector(this.bb_pos+r)+16*t,this.bb):null}nodesLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}buffers(t,e){let r=this.bb.__offset(this.bb_pos,8);return r?(e||new nw).__init(this.bb.__vector(this.bb_pos+r)+16*t,this.bb):null}buffersLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}compression(t){let e=this.bb.__offset(this.bb_pos,10);return e?(t||new ng).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startRecordBatch(t){t.startObject(4)}static addLength(t,e){t.addFieldInt64(0,e,BigInt("0"))}static addNodes(t,e){t.addFieldOffset(1,e,0)}static startNodesVector(t,e){t.startVector(16,e,8)}static addBuffers(t,e){t.addFieldOffset(2,e,0)}static startBuffersVector(t,e){t.startVector(16,e,8)}static addCompression(t,e){t.addFieldOffset(3,e,0)}static endRecordBatch(t){return t.endObject()}}class nO{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDictionaryBatch(t,e){return(e||new nO).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryBatch(t,e){return t.setPosition(t.position()+4),(e||new nO).__init(t.readInt32(t.position())+t.position(),t)}id(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}data(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new nx).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isDelta(){let t=this.bb.__offset(this.bb_pos,8);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}static startDictionaryBatch(t){t.startObject(3)}static addId(t,e){t.addFieldInt64(0,e,BigInt("0"))}static addData(t,e){t.addFieldOffset(1,e,0)}static addIsDelta(t,e){t.addFieldInt8(2,+e,0)}static endDictionaryBatch(t){return t.endObject()}}class nS{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFloatingPoint(t,e){return(e||new nS).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFloatingPoint(t,e){return t.setPosition(t.position()+4),(e||new nS).__init(t.readInt32(t.position())+t.position(),t)}precision(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):iW.HALF}static startFloatingPoint(t){t.startObject(1)}static addPrecision(t,e){t.addFieldInt16(0,e,iW.HALF)}static endFloatingPoint(t){return t.endObject()}static createFloatingPoint(t,e){return nS.startFloatingPoint(t),nS.addPrecision(t,e),nS.endFloatingPoint(t)}}class nA{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDecimal(t,e){return(e||new nA).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDecimal(t,e){return t.setPosition(t.position()+4),(e||new nA).__init(t.readInt32(t.position())+t.position(),t)}precision(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}scale(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):0}bitWidth(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt32(this.bb_pos+t):128}static startDecimal(t){t.startObject(3)}static addPrecision(t,e){t.addFieldInt32(0,e,0)}static addScale(t,e){t.addFieldInt32(1,e,0)}static addBitWidth(t,e){t.addFieldInt32(2,e,128)}static endDecimal(t){return t.endObject()}static createDecimal(t,e,r,n){return nA.startDecimal(t),nA.addPrecision(t,e),nA.addScale(t,r),nA.addBitWidth(t,n),nA.endDecimal(t)}}class nE{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDate(t,e){return(e||new nE).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDate(t,e){return t.setPosition(t.position()+4),(e||new nE).__init(t.readInt32(t.position())+t.position(),t)}unit(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):iY.MILLISECOND}static startDate(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,iY.MILLISECOND)}static endDate(t){return t.endObject()}static createDate(t,e){return nE.startDate(t),nE.addUnit(t,e),nE.endDate(t)}}class nI{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsTime(t,e){return(e||new nI).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTime(t,e){return t.setPosition(t.position()+4),(e||new nI).__init(t.readInt32(t.position())+t.position(),t)}unit(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):i$.MILLISECOND}bitWidth(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):32}static startTime(t){t.startObject(2)}static addUnit(t,e){t.addFieldInt16(0,e,i$.MILLISECOND)}static addBitWidth(t,e){t.addFieldInt32(1,e,32)}static endTime(t){return t.endObject()}static createTime(t,e,r){return nI.startTime(t),nI.addUnit(t,e),nI.addBitWidth(t,r),nI.endTime(t)}}class nT{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsTimestamp(t,e){return(e||new nT).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTimestamp(t,e){return t.setPosition(t.position()+4),(e||new nT).__init(t.readInt32(t.position())+t.position(),t)}unit(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):i$.SECOND}timezone(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}static startTimestamp(t){t.startObject(2)}static addUnit(t,e){t.addFieldInt16(0,e,i$.SECOND)}static addTimezone(t,e){t.addFieldOffset(1,e,0)}static endTimestamp(t){return t.endObject()}static createTimestamp(t,e,r){return nT.startTimestamp(t),nT.addUnit(t,e),nT.addTimezone(t,r),nT.endTimestamp(t)}}class nj{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsInterval(t,e){return(e||new nj).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInterval(t,e){return t.setPosition(t.position()+4),(e||new nj).__init(t.readInt32(t.position())+t.position(),t)}unit(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):iH.YEAR_MONTH}static startInterval(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,iH.YEAR_MONTH)}static endInterval(t){return t.endObject()}static createInterval(t,e){return nj.startInterval(t),nj.addUnit(t,e),nj.endInterval(t)}}class nP{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDuration(t,e){return(e||new nP).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDuration(t,e){return t.setPosition(t.position()+4),(e||new nP).__init(t.readInt32(t.position())+t.position(),t)}unit(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):i$.MILLISECOND}static startDuration(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,i$.MILLISECOND)}static endDuration(t){return t.endObject()}static createDuration(t,e){return nP.startDuration(t),nP.addUnit(t,e),nP.endDuration(t)}}class nM{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsUnion(t,e){return(e||new nM).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUnion(t,e){return t.setPosition(t.position()+4),(e||new nM).__init(t.readInt32(t.position())+t.position(),t)}mode(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):iG.Sparse}typeIds(t){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb.__vector(this.bb_pos+e)+4*t):0}typeIdsLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}typeIdsArray(){let t=this.bb.__offset(this.bb_pos,6);return t?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startUnion(t){t.startObject(2)}static addMode(t,e){t.addFieldInt16(0,e,iG.Sparse)}static addTypeIds(t,e){t.addFieldOffset(1,e,0)}static createTypeIdsVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addInt32(e[r]);return t.endVector()}static startTypeIdsVector(t,e){t.startVector(4,e,4)}static endUnion(t){return t.endObject()}static createUnion(t,e,r){return nM.startUnion(t),nM.addMode(t,e),nM.addT
3ypeIds(t,r),nM.endUnion(t)}}class nD{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFixedSizeBinary(t,e){return(e||new nD).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFixedSizeBinary(t,e){return t.setPosition(t.position()+4),(e||new nD).__init(t.readInt32(t.position())+t.position(),t)}byteWidth(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}static startFixedSizeBinary(t){t.startObject(1)}static addByteWidth(t,e){t.addFieldInt32(0,e,0)}static endFixedSizeBinary(t){return t.endObject()}static createFixedSizeBinary(t,e){return nD.startFixedSizeBinary(t),nD.addByteWidth(t,e),nD.endFixedSizeBinary(t)}}class nN{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFixedSizeList(t,e){return(e||new nN).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFixedSizeList(t,e){return t.setPosition(t.position()+4),(e||new nN).__init(t.readInt32(t.position())+t.position(),t)}listSize(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}static startFixedSizeList(t){t.startObject(1)}static addListSize(t,e){t.addFieldInt32(0,e,0)}static endFixedSizeList(t){return t.endObject()}static createFixedSizeList(t,e){return nN.startFixedSizeList(t),nN.addListSize(t,e),nN.endFixedSizeList(t)}}class nk{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsMap(t,e){return(e||new nk).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMap(t,e){return t.setPosition(t.position()+4),(e||new nk).__init(t.readInt32(t.position())+t.position(),t)}keysSorted(){let t=this.bb.__offset(this.bb_pos,4);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}static startMap(t){t.startObject(1)}static addKeysSorted(t,e){t.addFieldInt8(0,+e,0)}static endMap(t){return t.endObject()}static createMap(t,e){return nk.startMap(t),nk.addKeysSorted(t,e),nk.endMap(t)}}class nB{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsMessage(t,e){return(e||new nB).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMessage(t,e){return t.setPosition(t.position()+4),(e||new nB).__init(t.readInt32(t.position())+t.position(),t)}version(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):iX.V1}headerType(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint8(this.bb_pos+t):iq.NONE}header(t){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__union(t,this.bb_pos+e):null}bodyLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}customMetadata(t,e){let r=this.bb.__offset(this.bb_pos,12);return r?(e||new rj).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startMessage(t){t.startObject(5)}static addVersion(t,e){t.addFieldInt16(0,e,iX.V1)}static addHeaderType(t,e){t.addFieldInt8(1,e,iq.NONE)}static addHeader(t,e){t.addFieldOffset(2,e,0)}static addBodyLength(t,e){t.addFieldInt64(3,e,BigInt("0"))}static addCustomMetadata(t,e){t.addFieldOffset(4,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endMessage(t){return t.endObject()}static finishMessageBuffer(t,e){t.finish(e)}static finishSizePrefixedMessageBuffer(t,e){t.finish(e,void 0,!0)}static createMessage(t,e,r,n,i,o){return nB.startMessage(t),nB.addVersion(t,e),nB.addHeaderType(t,r),nB.addHeader(t,n),nB.addBodyLength(t,i),nB.addCustomMetadata(t,o),nB.endMessage(t)}}class nC{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsNull(t,e){return(e||new nC).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsNull(t,e){return t.setPosition(t.position()+4),(e||new nC).__init(t.readInt32(t.position())+t.position(),t)}static startNull(t){t.startObject(0)}static endNull(t){return t.endObject()}static createNull(t){return nC.startNull(t),nC.endNull(t)}}class nR{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBinary(t,e){return(e||new nR).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBinary(t,e){return t.setPosition(t.position()+4),(e||new nR).__init(t.readInt32(t.position())+t.position(),t)}static startBinary(t){t.startObject(0)}static endBinary(t){return t.endObject()}static createBinary(t){return nR.startBinary(t),nR.endBinary(t)}}class nL{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsLargeBinary(t,e){return(e||new nL).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsLargeBinary(t,e){return t.setPosition(t.position()+4),(e||new nL).__init(t.readInt32(t.position())+t.position(),t)}static startLargeBinary(t){t.startObject(0)}static endLargeBinary(t){return t.endObject()}static createLargeBinary(t){return nL.startLargeBinary(t),nL.endLargeBinary(t)}}class nF{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBool(t,e){return(e||new nF).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBool(t,e){return t.setPosition(t.position()+4),(e||new nF).__init(t.readInt32(t.position())+t.position(),t)}static startBool(t){t.startObject(0)}static endBool(t){return t.endObject()}static createBool(t){return nF.startBool(t),nF.endBool(t)}}class nU{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsUtf8(t,e){return(e||new nU).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUtf8(t,e){return t.setPosition(t.position()+4),(e||new nU).__init(t.readInt32(t.position())+t.position(),t)}static startUtf8(t){t.startObject(0)}static endUtf8(t){return t.endObject()}static createUtf8(t){return nU.startUtf8(t),nU.endUtf8(t)}}class nz{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsLargeUtf8(t,e){return(e||new nz).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsLargeUtf8(t,e){return t.setPosition(t.position()+4),(e||new nz).__init(t.readInt32(t.position())+t.position(),t)}static startLargeUtf8(t){t.startObject(0)}static endLargeUtf8(t){return t.endObject()}static createLargeUtf8(t){return nz.startLargeUtf8(t),nz.endLargeUtf8(t)}}class nV{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsList(t,e){return(e||new nV).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsList(t,e){return t.setPosition(t.position()+4),(e||new nV).__init(t.readInt32(t.position())+t.position(),t)}static startList(t){t.startObject(0)}static endList(t){return t.endObject()}static createList(t){return nV.startList(t),nV.endList(t)}}class nW{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsStruct_(t,e){return(e||new nW).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsStruct_(t,e){return t.setPosition(t.position()+4),(e||new nW).__init(t.readInt32(t.position())+t.position(),t)}static startStruct_(t){t.startObject(0)}static endStruct_(t){return t.endObject()}static createStruct_(t){return nW.startStruct_(t),nW.endStruct_(t)}}class n$ extends tC{visit(t,e){return null==t||null==e?void 0:super.visit(t,e)}visitNull(t,e){return nC.startNull(e),nC.endNull(e)}visitInt(t,e){return rP.startInt(e),rP.addBitWidth(e,t.bitWidth),rP.addIsSigned(e,t.isSigned),rP.endInt(e)}visitFloat(t,e){return nS.startFloatingPoint(e),nS.addPrecision(e,t.precision),nS.endFloatingPoint(e)}visitBinary(t,e){return nR.startBinary(e),nR.endBinary(e)}visitLargeBinary(t,e){return nL.startLargeBinary(e),nL.endLargeBinary(e)}visitBool(t,e){return nF.startBool(e),nF.endBool(e)}visitUtf8(t,e){return nU.startUtf8(e),nU.endUtf8(e)}visitLargeUtf8(t,e){return nz.startLargeUtf8(e),nz.endLargeUtf8(e)}visitDecimal(t,e){return nA.startDecimal(e),nA.addScale(e,t.scale),nA.addPrecision(e,t.precision),nA.addBitWidth(e,t.bitWidth),nA.endDecimal(e)}visitDate(t,e){return nE.startDate(e),nE.addUnit(e,t.unit),nE.endDate(e)}visitTime(t,e){return nI.startTime(e),nI.addUnit(e,t.unit),nI.addBitWidth(e,t.bitWidth),nI.endTime(e)}visitTimestamp(t,e){let r=t.timezone&&e.createString(t.timezone)||void 0;return nT.startTimestamp(e),nT.addUnit(e,t.unit),void 0!==r&&nT.addTimezone(e,r),nT.endTimestamp(e)}visitInterval(t,e){return nj.startInterval(e),nj.addUnit(e,t.unit),nj.endInterval(e)}visitDuration(t,e){return nP.startDuration(e),nP.addUnit(e,t.unit),nP.endDuration(e)}visitList(t,e){return nV.startList(e),nV.endList(e)}visitStruct(t,e){return nW.startStruct_(e),nW.endStruct_(e)}visitUnion(t,e){nM.startTypeIdsVector(e,t.typeIds.length);let r=nM.createTypeIdsVector(e,t.typeIds);
3return nM.startUnion(e),nM.addMode(e,t.mode),nM.addTypeIds(e,r),nM.endUnion(e)}visitDictionary(t,e){let r=this.visit(t.indices,e);return rM.startDictionaryEncoding(e),rM.addId(e,BigInt(t.id)),rM.addIsOrdered(e,t.isOrdered),void 0!==r&&rM.addIndexType(e,r),rM.endDictionaryEncoding(e)}visitFixedSizeBinary(t,e){return nD.startFixedSizeBinary(e),nD.addByteWidth(e,t.byteWidth),nD.endFixedSizeBinary(e)}visitFixedSizeList(t,e){return nN.startFixedSizeList(e),nN.addListSize(e,t.listSize),nN.endFixedSizeList(e)}visitMap(t,e){return nk.startMap(e),nk.addKeysSorted(e,t.keysSorted),nk.endMap(e)}}let nY=new n$;function nH(t){return new nQ(t.count,function t(e){return(e||[]).reduce((e,r)=>[...e,new n1(r.count,(r.VALIDITY||[]).reduce((t,e)=>t+ +(0===e),0)),...t(r.children)],[])}(t.columns),function t(e,r=[]){for(let n=-1,i=(e||[]).length;++n<i;){let i=e[n];i.VALIDITY&&r.push(new n0(r.length,i.VALIDITY.length)),i.TYPE_ID&&r.push(new n0(r.length,i.TYPE_ID.length)),i.OFFSET&&r.push(new n0(r.length,i.OFFSET.length)),i.DATA&&r.push(new n0(r.length,i.DATA.length)),r=t(i.children,r)}return r}(t.columns))}function nG(t,e){return(t.children||[]).filter(Boolean).map(t=>rC.fromJSON(t,e))}function nq(t=[]){return new Map(t.map(({key:t,value:e})=>[t,e]))}function nK(t){return new tn(t.isSigned,t.bitWidth)}function nX(t,e){let r=t.type.name;switch(r){case"NONE":case"null":return new tr;case"binary":return new tb;case"largebinary":return new tv;case"utf8":return new tm;case"largeutf8":return new tg;case"bool":return new tw;case"list":return new tI((e||[])[0]);case"struct":case"struct_":return new tT(e||[])}switch(r){case"int":{let e=t.type;return new tn(e.isSigned,e.bitWidth)}case"floatingpoint":return new th(iW[t.type.precision]);case"decimal":{let e=t.type;return new t_(e.scale,e.precision,e.bitWidth)}case"date":return new tx(iY[t.type.unit]);case"time":{let e=t.type;return new tO(i$[e.unit],e.bitWidth)}case"timestamp":{let e=t.type;return new tS(i$[e.unit],e.timezone)}case"interval":return new tA(iH[t.type.unit]);case"duration":return new tE(i$[t.type.unit]);case"union":{let r=t.type,[n,...i]=(r.mode+"").toLowerCase();return new tj(iG[n.toUpperCase()+i.join("")],r.typeIds||[],e||[])}case"fixedsizebinary":return new tP(t.type.byteWidth);case"fixedsizelist":return new tM(t.type.listSize,(e||[])[0]);case"map":{let r=t.type;return new tD((e||[])[0],r.keysSorted)}}throw Error(`Unrecognized type: "${r}"`)}class nJ{static fromJSON(t,e){var r,n;let i=new nJ(0,iX.V5,e);return r=t,n=e,i._createHeader=()=>{switch(n){case iq.Schema:return rB.fromJSON(r);case iq.RecordBatch:return nQ.fromJSON(r);case iq.DictionaryBatch:return nZ.fromJSON(r)}throw Error(`Unrecognized Message type: { name: ${iq[n]}, type: ${n} }`)},i}static decode(t){var e,r;t=new rI(L(t));let n=nB.getRootAsMessage(t),i=n.bodyLength(),o=n.version(),a=n.headerType(),s=new nJ(i,o,a);return e=n,r=a,s._createHeader=()=>{switch(r){case iq.Schema:return rB.decode(e.header(new rN),new Map,e.version());case iq.RecordBatch:return nQ.decode(e.header(new nx),e.version());case iq.DictionaryBatch:return nZ.decode(e.header(new nO),e.version())}throw Error(`Unrecognized Message type: { name: ${iq[r]}, type: ${r} }`)},s}static encode(t){let e=new rT,r=-1;return t.isSchema()?r=rB.encode(e,t.header()):t.isRecordBatch()?r=nQ.encode(e,t.header()):t.isDictionaryBatch()&&(r=nZ.encode(e,t.header())),nB.startMessage(e),nB.addVersion(e,iX.V5),nB.addHeader(e,r),nB.addHeaderType(e,t.headerType),nB.addBodyLength(e,BigInt(t.bodyLength)),nB.finishMessageBuffer(e,nB.endMessage(e)),e.asUint8Array()}static from(t,e=0){if(t instanceof rB)return new nJ(0,iX.V5,iq.Schema,t);if(t instanceof nQ)return new nJ(e,iX.V5,iq.RecordBatch,t);if(t instanceof nZ)return new nJ(e,iX.V5,iq.DictionaryBatch,t);throw Error(`Unrecognized Message header: ${t}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===iq.Schema}isRecordBatch(){return this.headerType===iq.RecordBatch}isDictionaryBatch(){return this.headerType===iq.DictionaryBatch}constructor(t,e,r,n){this._version=e,this._headerType=r,this.body=new Uint8Array(0),n&&(this._createHeader=()=>n),this._bodyLength=W(t)}
3}class nQ{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}constructor(t,e,r){this._nodes=e,this._buffers=r,this._length=W(t)}}class nZ{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(t,e,r=!1){this._data=t,this._isDelta=r,this._id=W(e)}}class n0{constructor(t,e){this.offset=W(t),this.length=W(e)}}class n1{constructor(t,e){this.length=W(t),this.nullCount=W(e)}}function n2(t,e){let r=[];for(let n,i=-1,o=-1,a=t.childrenLength();++i<a;)(n=t.children(i))&&(r[++o]=rC.decode(n,e));return r}function n3(t){let e=new Map;if(t)for(let r,n,i=-1,o=Math.trunc(t.customMetadataLength());++i<o;)(r=t.customMetadata(i))&&null!=(n=r.key())&&e.set(n,r.value());return e}function n4(t){return new tn(t.isSigned(),t.bitWidth())}function n8(t,e){let r=t.typeType();switch(r){case iZ.NONE:case iZ.Null:return new tr;case iZ.Binary:return new tb;case iZ.LargeBinary:return new tv;case iZ.Utf8:return new tm;case iZ.LargeUtf8:return new tg;case iZ.Bool:return new tw;case iZ.List:return new tI((e||[])[0]);case iZ.Struct_:return new tT(e||[])}switch(r){case iZ.Int:{let e=t.type(new rP);return new tn(e.isSigned(),e.bitWidth())}case iZ.FloatingPoint:return new th(t.type(new nS).precision());case iZ.Decimal:{let e=t.type(new nA);return new t_(e.scale(),e.precision(),e.bitWidth())}case iZ.Date:return new tx(t.type(new nE).unit());case iZ.Time:{let e=t.type(new nI);return new tO(e.unit(),e.bitWidth())}case iZ.Timestamp:{let e=t.type(new nT);return new tS(e.unit(),e.timezone())}case iZ.Interval:return new tA(t.type(new nj).unit());case iZ.Duration:return new tE(t.type(new nP).unit());case iZ.Union:{let r=t.type(new nM);return new tj(r.mode(),r.typeIdsArray()||[],e||[])}case iZ.FixedSizeBinary:return new tP(t.type(new nD).byteWidth());case iZ.FixedSizeList:return new tM(t.type(new nN).listSize(),(e||[])[0]);case iZ.Map:{let r=t.type(new nk);return new tD((e||[])[0],r.keysSorted())}}throw Error(`Unrecognized type: "${iZ[r]}" (${r})`)}rC.encode=function(t,e){let r=-1,n=-1,i=-1,o=e.type,a=e.typeId;te.isDictionary(o)?(a=o.dictionary.typeId,i=nY.visit(o,t),n=nY.visit(o.dictionary,t)):n=nY.visit(o,t);let s=(o.children||[]).map(e=>rC.encode(t,e)),u=rD.createChildrenVector(t,s),c=e.metadata&&e.metadata.size>0?rD.createCustomMetadataVector(t,[...e.metadata].map(([e,r])=>{let n=t.createString(`${e}`),i=t.createString(`${r}`);return rj.startKeyValue(t),rj.addKey(t,n),rj.addValue(t,i),rj.endKeyValue(t)})):-1;return e.name&&(r=t.createString(e.name)),rD.startField(t),rD.addType(t,n),rD.addTypeType(t,a),rD.addChildren(t,u),rD.addNullable(t,!!e.nullable),-1!==r&&rD.addName(t,r),-1!==i&&rD.addDictionary(t,i),-1!==c&&rD.addCustomMetadata(t,c),rD.endField(t)},rC.decode=function(t,e){let r,n,i,o,a,s;return e&&(s=t.dictionary())?(e.has(r=W(s.id()))?(o=(o=s.indexType())?n4(o):new ta,a=new tk(e.get(r),o,r,s.isOrdered())):(o=(o=s.indexType())?n4(o):new ta,e.set(r,i=n8(t,n2(t,e))),a=new tk(i,o,r,s.isOrdered())),n=new rC(t.name(),a,t.nullable(),n3(t))):(i=n8(t,n2(t,e)),n=new rC(t.name(),i,t.nullable(),n3(t))),n||null},rC.fromJSON=function(t,e){let r,n,i,o,a,s;return e&&(o=t.dictionary)?(e.has(r=o.id)?(n=(n=o.indexType)?nK(n):new ta,s=new tk(e.get(r),n,r,o.isOrdered)):(n=(n=o.indexType)?nK(n):new ta,e.set(r,a=nX(t,nG(t,e))),s=new tk(a,n,r,o.isOrdered)),i=new rC(t.name,s,t.nullable,nq(t.metadata))):(a=nX(t,nG(t,e)),i=new rC(t.name,a,t.nullable,nq(t.metadata))),i||null},rB.encode=function(t,e){let r=e.fields.map(e=>rC.encode(t,e));rN.startFieldsVector(t,r.length);let n=rN.createFieldsVector(t,r),i=e.metadata&&e.metadata.size>0?rN.createCustomMetadataVector(t,[...e.metadata].map(([e,r])=>{let n=t.createString(`${e}`),i=t.createString(`${r}`);return rj.startKeyValue(t),rj.addKey(t,n),rj.addValue(t,i),rj.endKeyValue(t)})):-1;return rN.startSchema(t),rN.addFields(t,n),rN.addEndianness(t,n6?iJ.Little:iJ.Big),-1!==i&&rN.addCustomMetadata(t,i),rN.endSchema(t)},rB.decode=function(t,e=new Map,r=iX.V5){return new rB(function(t,e){let r=[];for(let n,i=-1,o=-1,a=t.fieldsLength();++i<a;)(n=t.fields(i))&&(r[++o]=rC.decode(n,e));return r}(t,e),n3(t),e,r)},rB.fromJSON=function(t,e=new Map){var r,n;
3return new rB((r=t,n=e,(r.fields||[]).filter(Boolean).map(t=>rC.fromJSON(t,n))),nq(t.metadata),e)},nQ.encode=function(t,e){let r=e.nodes||[],n=e.buffers||[];for(let e of(nx.startNodesVector(t,r.length),r.slice().reverse()))n1.encode(t,e);let i=t.endVector();for(let e of(nx.startBuffersVector(t,n.length),n.slice().reverse()))n0.encode(t,e);let o=t.endVector();return nx.startRecordBatch(t),nx.addLength(t,BigInt(e.length)),nx.addNodes(t,i),nx.addBuffers(t,o),nx.endRecordBatch(t)},nQ.decode=function(t,e=iX.V5){if(null!==t.compression())throw Error("Record batch compression not implemented");return new nQ(t.length(),function(t){let e=[];for(let r,n=-1,i=-1,o=t.nodesLength();++n<o;)(r=t.nodes(n))&&(e[++i]=n1.decode(r));return e}(t),function(t,e){let r=[];for(let n,i=-1,o=-1,a=t.buffersLength();++i<a;)(n=t.buffers(i))&&(e<iX.V4&&(n.bb_pos+=8*(i+1)),r[++o]=n0.decode(n));return r}(t,e))},nQ.fromJSON=nH,nZ.encode=function(t,e){let r=nQ.encode(t,e.data);return nO.startDictionaryBatch(t),nO.addId(t,BigInt(e.id)),nO.addIsDelta(t,e.isDelta),nO.addData(t,r),nO.endDictionaryBatch(t)},nZ.decode=function(t,e=iX.V5){return new nZ(nQ.decode(t.data(),e),t.id(),t.isDelta())},nZ.fromJSON=function(t){return new nZ(nH(t.data),t.id,t.isDelta)},n1.encode=function(t,e){return n_.createFieldNode(t,BigInt(e.length),BigInt(e.nullCount))},n1.decode=function(t){return new n1(t.length(),t.nullCount())},n0.encode=function(t,e){return nw.createBuffer(t,BigInt(e.offset),BigInt(e.length))},n0.decode=function(t){return new n0(t.offset(),t.length())};let n6=(()=>{let t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),256===new Int16Array(t)[0]})(),n5=t=>`Expected ${iq[t]} Message in stream, but was null or length 0.`,n9=t=>`Header pointer of flatbuffer-encoded ${iq[t]} Message is null or length 0.`,n7=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,it=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`;class ie{constructor(t){this.source=t instanceof rJ?t:new rJ(t)}[Symbol.iterator](){return this}next(){let t;return(t=this.readMetadataLength()).done||-1===t.value&&(t=this.readMetadataLength()).done||(t=this.readMetadata(t.value)).done?rH:t}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}readMessage(t){let e;if((e=this.next()).done)return null;if(null!=t&&e.value.headerType!==t)throw Error(n5(t));return e.value}readMessageBody(t){if(t<=0)return new Uint8Array(0);let e=L(this.source.read(t));if(e.byteLength<t)throw Error(it(t,e.byteLength));return e.byteOffset%8==0&&e.byteOffset+e.byteLength<=e.buffer.byteLength?e:e.slice()}readSchema(t=!1){let e=iq.Schema,r=this.readMessage(e),n=null==r?void 0:r.header();if(t&&!n)throw Error(n9(e));return n}readMetadataLength(){let t=this.source.read(io),e=t&&new rI(t),r=(null==e?void 0:e.readInt32(0))||0;return{done:0===r,value:r}}readMetadata(t){let e=this.source.read(t);if(!e)return rH;if(e.byteLength<t)throw Error(n7(t,e.byteLength));return{done:!1,value:nJ.decode(e)}}}class ir{constructor(t,e){this.source=t instanceof rQ?t:S(t)?new r2(t,e):new rQ(t)}[Symbol.asyncIterator](){return this}next(){return i(this,void 0,void 0,function*(){let t;return(t=yield this.readMetadataLength()).done||-1===t.value&&(t=yield this.readMetadataLength()).done||(t=yield this.readMetadata(t.value)).done?rH:t})}throw(t){return i(this,void 0,void 0,function*(){return yield this.source.throw(t)})}return(t){return i(this,void 0,void 0,function*(){return yield this.source.return(t)})}readMessage(t){return i(this,void 0,void 0,function*(){let e;if((e=yield this.next()).done)return null;if(null!=t&&e.value.headerType!==t)throw Error(n5(t));return e.value})}readMessageBody(t){return i(this,void 0,void 0,function*(){if(t<=0)return new Uint8Array(0);let e=L((yield this.source.read(t)));if(e.byteLength<t)throw Error(it(t,e.byteLength));return e.byteOffset%8==0&&e.byteOffset+e.byteLength<=e.buffer.byteLength?e:e.slice()})}readSchema(){return i(this,arguments,void 0,function*(t=!1){let e=iq.Schema,r=yield this.readMessage(e),n=null==r?void 0:r.header();if(t&&!n)throw Error(n9(e));return n})}readMetadataLength(){return i(this,void 0,void 0,function*(){let t=yield this.source.read(io),e=t&&new rI(t),r=(null==e?void 0:e.readInt32(0))||0;return{done:0===r,value:r}})}readMetadata(t){return i(this,void 0,void 0,function*(){let e=yield this.source.read(t);if(!e)return rH;if(e.byteLength<t)throw Error(n7(t,e.byteLength));return{done:!1,value:nJ.decode(e)}})}}class ii extends ie{constructor(t){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=t instanceof rG?t:new rG(t)}
3next(){let{_json:t}=this;if(!this._schema)return this._schema=!0,{done:!1,value:nJ.fromJSON(t.schema,iq.Schema)};if(this._dictionaryIndex<t.dictionaries.length){let e=t.dictionaries[this._dictionaryIndex++];return this._body=e.data.columns,{done:!1,value:nJ.fromJSON(e,iq.DictionaryBatch)}}if(this._batchIndex<t.batches.length){let e=t.batches[this._batchIndex++];return this._body=e.columns,{done:!1,value:nJ.fromJSON(e,iq.RecordBatch)}}return this._body=[],rH}readMessageBody(t){return function t(e){return(e||[]).reduce((e,r)=>[...e,...r.VALIDITY&&[r.VALIDITY]||[],...r.TYPE_ID&&[r.TYPE_ID]||[],...r.OFFSET&&[r.OFFSET]||[],...r.DATA&&[r.DATA]||[],...t(r.children)],[])}(this._body)}readMessage(t){let e;if((e=this.next()).done)return null;if(null!=t&&e.value.headerType!==t)throw Error(n5(t));return e.value}readSchema(){let t=iq.Schema,e=this.readMessage(t),r=null==e?void 0:e.header();if(!e||!r)throw Error(n9(t));return r}}let io=4,ia="ARROW1",is=new Uint8Array(ia.length);for(let t=0;t<ia.length;t+=1)is[t]=ia.codePointAt(t);function iu(t,e=0){for(let r=-1,n=is.length;++r<n;)if(is[r]!==t[e+r])return!1;return!0}let ic=is.length,il=ic+io,ih=2*ic+io;class id extends rq{constructor(t){super(),this._impl=t}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(t){return this._impl.throw(t)}return(t){return this._impl.return(t)}cancel(){return this._impl.cancel()}reset(t){return this._impl.reset(t),this._DOMStream=void 0,this._nodeStream=void 0,this}open(t){let e=this._impl.open(t);return g(e)?e.then(()=>this):this}readRecordBatch(t){return this._impl.isFile()?this._impl.readRecordBatch(t):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return rV.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return rV.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(t){throw Error('"throughNode" not available in this environment')}static throughDOM(t,e){throw Error('"throughDOM" not available in this environment')}static from(t){if(t instanceof id)return t;if(x(t))return new ip(new iO(t));if(S(t))return function(t){return i(this,void 0,void 0,function*(){let{size:e}=yield t.stat(),r=new r2(t,e);return e>=ih&&iu((yield r.readAt(0,ic+7&-8)))?new iv(new ix(r)):new iy(new iw(r))})}(t);if(g(t))return i(this,void 0,void 0,function*(){return yield id.from((yield t))});if(A(t)||T(t)||P(t)||_(t))return function(t){return i(this,void 0,void 0,function*(){let e=yield t.peek(ic+7&-8);return e&&e.byteLength>=4?iu(e)?new ib(new i_((yield t.read()))):new iy(new iw(t)):new iy(new iw(function(){return a(this,arguments,function*(){})}()))})}(new rQ(t));var e=new rJ(t);let r=e.peek(ic+7&-8);return r&&r.byteLength>=4?iu(r)?new ib(new i_(e.read())):new ip(new ig(e)):new ip(new ig(function*(){}()))}static readAll(t){return t instanceof id?t.isSync()?iA(t):iE(t):x(t)||ArrayBuffer.isView(t)||w(t)||O(t)?iA(t):iE(t)}}class ip extends id{constructor(t){super(t),this._impl=t}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return a(this,arguments,function*(){yield o((yield*s(u(this[Symbol.iterator]()))))})}}class iy extends id{constructor(t){super(t),this._impl=t}readAll(){return i(this,void 0,void 0,function*(){var t,e,r,n;let i=[];try{for(var o,a=!0,s=u(this);!(t=(o=yield s.next()).done);a=!0)n=o.value,a=!1,i.push(n)}catch(t){e={error:t}}finally{try{!a&&!t&&(r=s.return)&&(yield r.call(s))}finally{if(e)throw e.error}}return i})}[Symbol.iterator](){throw Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class ib extends ip{constructor(t){super(t),this._impl=t}}class iv extends iy{constructor(t){super(t),this._impl=t}}class im{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(t=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=t}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(t){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=t,this.dictionaries=new Map,this}_loadRecordBatch(t,e){let r=this._loadVectors(t,e,this.schema.fields),n=r_({type:new tT(this.schema.fields),length:t.length,children:r});return new nb(this.schema,n)}_loadDictionaryBatch(t,e){let{id:r,isDelta:n}=t,{dictionaries:i,schema:o}=this,a=i.get(r),s=o.dictionaries.get(r),u=this._loadVectors(t.data,e,[s]);return(a&&n?a.concat(new rb(u)):new rb(u)).memoize()}_loadVectors(t,e,r){return new r7(e,t.nodes,t.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(r)}}class ig extends im{constructor(t,e){super(e),this._reader=x(t)?new ii(this._handle=t):new ie(this._handle=t)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(t){return!this.closed&&(this.autoDestroy=iS(this,t),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(t):rH}return(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(t):rH}next(){let t;if(this.closed)return rH;let{_reader:e}=this;for(;t=this._readNextMessageAndValidate();)if(t.isSchema())this.reset(t.header());else if(t.isRecordBatch()){this._recordBatchIndex++;let r=t.header(),n=e.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(r,n)}}else if(t.isDictionaryBatch()){this._dictionaryIndex++;let r=t.header(),n=e.readMessageBody(t.bodyLength),i=this._loadDictionaryBatch(r,n);this.dictionaries.set(r.id,i)}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new nm(this.schema)}):this.return()}_readNextMessageAndValidate(t){return this._reader.readMessage(t)}}class iw extends im{constructor(t,e){super(e),this._reader=new ir(this._handle=t)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return i(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(t){return i(this,void 0,void 0,function*(){return!this.closed&&(this.autoDestroy=iS(this,t),this.schema||(this.schema=yield this._reader.readSchema())||
3(yield this.cancel())),this})}throw(t){return i(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(t):rH})}return(t){return i(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(t):rH})}next(){return i(this,void 0,void 0,function*(){let t;if(this.closed)return rH;let{_reader:e}=this;for(;t=yield this._readNextMessageAndValidate();)if(t.isSchema())yield this.reset(t.header());else if(t.isRecordBatch()){this._recordBatchIndex++;let r=t.header(),n=yield e.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(r,n)}}else if(t.isDictionaryBatch()){this._dictionaryIndex++;let r=t.header(),n=yield e.readMessageBody(t.bodyLength),i=this._loadDictionaryBatch(r,n);this.dictionaries.set(r.id,i)}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new nm(this.schema)}):yield this.return()})}_readNextMessageAndValidate(t){return i(this,void 0,void 0,function*(){return yield this._reader.readMessage(t)})}}class i_ extends ig{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(t,e){super(t instanceof r1?t:new r1(t),e)}isSync(){return!0}isFile(){return!0}open(t){if(!this.closed&&!this._footer)for(let t of(this.schema=(this._footer=this._readFooter()).schema,this._footer.dictionaryBatches()))t&&this._readDictionaryBatch(this._dictionaryIndex++);return super.open(t)}readRecordBatch(t){var e;if(this.closed)return null;this._footer||this.open();let r=null==(e=this._footer)?void 0:e.getRecordBatch(t);if(r&&this._handle.seek(r.offset)){let t=this._reader.readMessage(iq.RecordBatch);if(null==t?void 0:t.isRecordBatch()){let e=t.header(),r=this._reader.readMessageBody(t.bodyLength);return this._loadRecordBatch(e,r)}}return null}_readDictionaryBatch(t){var e;let r=null==(e=this._footer)?void 0:e.getDictionaryBatch(t);if(r&&this._handle.seek(r.offset)){let t=this._reader.readMessage(iq.DictionaryBatch);if(null==t?void 0:t.isDictionaryBatch()){let e=t.header(),r=this._reader.readMessageBody(t.bodyLength),n=this._loadDictionaryBatch(e,r);this.dictionaries.set(e.id,n)}}}_readFooter(){let{_handle:t}=this,e=t.size-il,r=t.readInt32(e),n=t.readAt(e-r,r);return rF.decode(n)}_readNextMessageAndValidate(t){var e;if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){let r=null==(e=this._footer)?void 0:e.getRecordBatch(this._recordBatchIndex);if(r&&this._handle.seek(r.offset))return this._reader.readMessage(t)}return null}}class ix extends iw{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(t,...e){super(t instanceof r2?t:new r2(t,"number"!=typeof e[0]?e.shift():void 0),e[0]instanceof Map?e.shift():void 0)}isFile(){return!0}isAsync(){return!0}open(t){let e=Object.create(null,{open:{get:()=>super.open}});return i(this,void 0,void 0,function*(){if(!this.closed&&!this._footer)for(let t of(this.schema=(this._footer=yield this._readFooter()).schema,this._footer.dictionaryBatches()))t&&(yield this._readDictionaryBatch(this._dictionaryIndex++));return yield e.open.call(this,t)})}readRecordBatch(t){return i(this,void 0,void 0,function*(){var e;if(this.closed)return null;this._footer||(yield this.open());let r=null==(e=this._footer)?void 0:e.getRecordBatch(t);if(r&&(yield this._handle.seek(r.offset))){let t=yield this._reader.readMessage(iq.RecordBatch);if(null==t?void 0:t.isRecordBatch()){let e=t.header(),r=yield this._reader.readMessageBody(t.bodyLength);return this._loadRecordBatch(e,r)}}return null})}_readDictionaryBatch(t){return i(this,void 0,void 0,function*(){var e;let r=null==(e=this._footer)?void 0:e.getDictionaryBatch(t);if(r&&(yield this._handle.seek(r.offset))){let t=yield this._reader.readMessage(iq.DictionaryBatch);
3if(null==t?void 0:t.isDictionaryBatch()){let e=t.header(),r=yield this._reader.readMessageBody(t.bodyLength),n=this._loadDictionaryBatch(e,r);this.dictionaries.set(e.id,n)}}})}_readFooter(){return i(this,void 0,void 0,function*(){let{_handle:t}=this;t._pending&&(yield t._pending);let e=t.size-il,r=yield t.readInt32(e),n=yield t.readAt(e-r,r);return rF.decode(n)})}_readNextMessageAndValidate(t){return i(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){let e=this._footer.getRecordBatch(this._recordBatchIndex);if(e&&(yield this._handle.seek(e.offset)))return yield this._reader.readMessage(t)}return null})}}class iO extends ig{constructor(t,e){super(t,e)}_loadVectors(t,e,r){return new nt(e,t.nodes,t.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(r)}}function iS(t,e){return e&&"boolean"==typeof e.autoDestroy?e.autoDestroy:t.autoDestroy}function*iA(t){let e=id.from(t);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}function iE(t){return a(this,arguments,function*(){let e=yield o(id.from(t));try{if(!(yield o(e.open({autoDestroy:!1}))).closed)do yield yield o(e);while(!(yield o(e.reset().open())).closed)}finally{yield o(e.cancel())}})}class iI extends tC{static assemble(...t){let e=t=>t.flatMap(t=>Array.isArray(t)?e(t):t instanceof nb?t.data.children:t.data),r=new iI;return r.visitMany(e(t)),r}constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}visit(t){if(t instanceof rb)return this.visitMany(t.data),this;let{type:e}=t;if(!te.isDictionary(e)){let{length:r}=t;if(r>0x7fffffff)throw RangeError("Cannot write arrays larger than 2^31 - 1 in length");if(te.isUnion(e))this.nodes.push(new n1(r,0));else{let{nullCount:n}=t;te.isNull(e)||iT.call(this,n<=0?new Uint8Array(0):rr(t.offset,r,t.nullBitmap)),this.nodes.push(new n1(r,n))}}return super.visit(t)}visitNull(t){return this}visitDictionary(t){return this.visit(t.clone(t.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}}function iT(t){let e=t.byteLength+7&-8;return this.buffers.push(t),this.bufferRegions.push(new n0(this._byteLength,e)),this._byteLength+=e,this}function ij(t){return iT.call(this,t.values.subarray(0,t.length*t.stride))}function iP(t){let{length:e,values:r,valueOffsets:n}=t,i=W(n[0]),o=Math.min(W(n[e])-i,r.byteLength-i);return iT.call(this,V(-i,e+1,n)),iT.call(this,r.subarray(i,i+o)),this}function iM(t){let{length:e,valueOffsets:r}=t;if(r){let{0:n,[e]:i}=r;return iT.call(this,V(-n,e+1,r)),this.visit(t.children[0].slice(n,i-n))}return this.visit(t.children[0])}function iD(t){return this.visitMany(t.type.children.map((e,r)=>t.children[r]).filter(Boolean))[0]}iI.prototype.visitBool=function(t){let e;return t.nullCount>=t.length?iT.call(this,new Uint8Array(0)):(e=t.values)instanceof Uint8Array?iT.call(this,rr(t.offset,t.length,e)):iT.call(this,rn(t.values))},iI.prototype.visitInt=ij,iI.prototype.visitFloat=ij,iI.prototype.visitUtf8=iP,iI.prototype.visitLargeUtf8=iP,iI.prototype.visitBinary=iP,iI.prototype.visitLargeBinary=iP,iI.prototype.visitFixedSizeBinary=ij,iI.prototype.visitDate=ij,iI.prototype.visitTimestamp=ij,iI.prototype.visitTime=ij,iI.prototype.visitDecimal=ij,iI.prototype.visitList=iM,iI.prototype.visitStruct=iD,iI.prototype.visitUnion=function(t){var e;let{type:r,length:n,typeIds:i,valueOffsets:o}=t;if(iT.call(this,i),r.mode===iG.Sparse)return iD.call(this,t);if(r.mode===iG.Dense)if(t.offset<=0)return iT.call(this,o),iD.call(this,t);else{let a=new Int32Array(n),s=Object.create(null),u=Object.create(null);for(let t,r,c=-1;++c<n;)void 0!==(t=i[c])&&(void 0===(r=s[t])&&(r=s[t]=o[c]),a[c]=o[c]-r,u[t]=(null!=(e=u[t])?e:0)+1);iT.call(this,a),this.visitMany(t.children.map((t,e)=>{let i=r.typeIds[e],o=s[i],a=u[i];return t.slice(o,Math.min(n,a))}))}return this},iI.prototype.visitInterval=ij,iI.prototype.visitDuration=ij,iI.prototype.visitFixedSizeList=iM,iI.prototype.visitMap=iM;class iN extends tC{static assemble(...t){let e=new iN;return t.map(({schema:t,data:r})=>e.visitMany(t.fields,r.children))}visit({name:t},e){let{length:r}=e,{offset:n,nullCount:i,nullBitmap:o}=e,a=te.isDictionary(e.type)?e.type.indices:e.type,s=Object.assign([],e.buffers,{[iV.VALIDITY]:void 0});return Object.assign({name:t,count:r,VALIDITY:te.isNull(a)||te.isUnion(a)?void 0:i<=0?Array.from({length:r},()=>1):[...new ri(o,n,r,null,re)]},super.visit(e.clone(a,n,r,0,s)))}
3visitNull(){return{}}visitBool({values:t,offset:e,length:r}){return{DATA:[...new ri(t,e,r,null,rt)]}}visitInt(t){return{DATA:t.type.bitWidth<64?[...t.values]:[...iB(t.values,2)]}}visitFloat(t){return{DATA:[...t.values]}}visitUtf8(t){return{DATA:[...new rb([t])],OFFSET:[...t.valueOffsets]}}visitLargeUtf8(t){return{DATA:[...new rb([t])],OFFSET:[...iB(t.valueOffsets,2)]}}visitBinary(t){return{DATA:[...ik(new rb([t]))],OFFSET:[...t.valueOffsets]}}visitLargeBinary(t){return{DATA:[...ik(new rb([t]))],OFFSET:[...iB(t.valueOffsets,2)]}}visitFixedSizeBinary(t){return{DATA:[...ik(new rb([t]))]}}visitDate(t){return{DATA:t.type.unit===iY.DAY?[...t.values]:[...iB(t.values,2)]}}visitTimestamp(t){return{DATA:[...iB(t.values,2)]}}visitTime(t){return{DATA:t.type.unit<i$.MICROSECOND?[...t.values]:[...iB(t.values,2)]}}visitDecimal(t){return{DATA:[...iB(t.values,4)]}}visitList(t){return{OFFSET:[...t.valueOffsets],children:this.visitMany(t.type.children,t.children)}}visitStruct(t){return{children:this.visitMany(t.type.children,t.children)}}visitUnion(t){return{TYPE_ID:[...t.typeIds],OFFSET:t.type.mode===iG.Dense?[...t.valueOffsets]:void 0,children:this.visitMany(t.type.children,t.children)}}visitInterval(t){return{DATA:[...t.values]}}visitDuration(t){return{DATA:[...iB(t.values,2)]}}visitFixedSizeList(t){return{children:this.visitMany(t.type.children,t.children)}}visitMap(t){return{OFFSET:[...t.valueOffsets],children:this.visitMany(t.type.children,t.children)}}}function*ik(t){for(let e of t)yield e.reduce((t,e)=>`${t}${("0"+(255&e).toString(16)).slice(-2)}`,"").toUpperCase()}function*iB(t,e){let r=new Uint32Array(t.buffer);for(let t=-1,n=r.length/e;++t<n;)yield`${tt.new(r.subarray((t+0)*e,(t+1)*e),!1)}`}class iC extends rq{static throughNode(t){throw Error('"throughNode" not available in this environment')}static throughDOM(t,e){throw Error('"throughDOM" not available in this environment')}constructor(t){super(),this._position=0,this._started=!1,this._sink=new rX,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,m(t)||(t={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy="boolean"!=typeof t.autoDestroy||t.autoDestroy,this._writeLegacyIpcFormat="boolean"==typeof t.writeLegacyIpcFormat&&t.writeLegacyIpcFormat}toString(t=!1){return this._sink.toString(t)}toUint8Array(t=!1){return this._sink.toUint8Array(t)}writeAll(t){return g(t)?t.then(t=>this.writeAll(t)):_(t)?iU(this,t):iF(this,t)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(t){return this._sink.toDOMStream(t)}toNodeStream(t){return this._sink.toNodeStream(t)}close(){return this.reset()._sink.close()}abort(t){return this.reset()._sink.abort(t)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(t=this._sink,e=null){return t===this._sink||t instanceof rX?this._sink=t:(this._sink=new rX,t&&I(t)?this.toDOMStream({type:"bytes"}).pipeTo(t):t&&j(t)&&this.toNodeStream({objectMode:!1}).pipe(t)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,e&&nd(e,this._schema)||(null==e?(this._position=0,this._schema=null):(this._started=!0,this._schema=e,this._writeSchema(e))),this}write(t){let e=null;if(this._sink){if(null==t)return this.finish()&&void 0;else if(t instanceof ny&&!(e=t.schema))return this.finish()&&void 0;else if(t instanceof nb&&!(e=t.schema))return this.finish()&&void 0}else throw Error("RecordBatchWriter is closed");if(e&&!nd(e,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,e)}t instanceof nb?t instanceof nm||this._writeRecordBatch(t):t instanceof ny?this.writeAll(t.batches):w(t)&&this.writeAll(t)}_writeMessage(t,e=8){let r=e-1,n=nJ.encode(t),i=n.byteLength,o=this._writeLegacyIpcFormat?4:8,a=i+o+r&~r,s=a-i-o;return t.headerType===iq.RecordBatch?this._recordBatchBlocks.push(new rz(a,t.bodyLength,this._position)):t.headerType===iq.DictionaryBatch&&this._dictionaryBlocks.push(new rz(a,t.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(a-o)),i>0&&this._write(n),this._writePadding(s)}_write(t){if(this._started){let e=L(t);e&&e.byteLength>0&&(this._sink.write(e),this._position+=e.byteLength)}return this}_writeSchema(t){return this._writeMessage(nJ.from(t))}_writeFooter(t){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(is)}_writePadding(t){return t>0?this._write(new Uint8Array(t)):this}_writeRecordBatch(t){let{byteLength:e,nodes:r,bufferRegions:n,buffers:i}=iI.assemble(t),o=new nQ(t.numRows,r,n),a=nJ.from(o,e);
3return this._writeDictionaries(t)._writeMessage(a)._writeBodyBuffers(i)}_writeDictionaryBatch(t,e,r=!1){let{byteLength:n,nodes:i,bufferRegions:o,buffers:a}=iI.assemble(new rb([t])),s=new nZ(new nQ(t.length,i,o),e,r),u=nJ.from(s,n);return this._writeMessage(u)._writeBodyBuffers(a)}_writeBodyBuffers(t){let e,r,n;for(let i=-1,o=t.length;++i<o;)(e=t[i])&&(r=e.byteLength)>0&&(this._write(e),(n=(r+7&-8)-r)>0&&this._writePadding(n));return this}_writeDictionaries(t){var e,r;for(let[n,i]of t.dictionaries){let t=null!=(e=null==i?void 0:i.data)?e:[],o=this._seenDictionaries.get(n),a=null!=(r=this._dictionaryDeltaOffsets.get(n))?r:0;if(o&&o.data[0]===t[0]){if(a<t.length)for(let e of t.slice(a))this._writeDictionaryBatch(e,n,!0)}else for(let[e,r]of t.entries())this._writeDictionaryBatch(r,n,e>0);this._seenDictionaries.set(n,i),this._dictionaryDeltaOffsets.set(n,t.length)}return this}}class iR extends iC{static writeAll(t,e){let r=new iR(e);return g(t)?t.then(t=>r.writeAll(t)):_(t)?iU(r,t):iF(r,t)}}class iL extends iC{static writeAll(t){let e=new iL;return g(t)?t.then(t=>e.writeAll(t)):_(t)?iU(e,t):iF(e,t)}constructor(){super(),this._autoDestroy=!0}_writeSchema(t){return this._writeMagic()._writePadding(2)}_writeDictionaryBatch(t,e,r=!1){if(!r&&this._seenDictionaries.has(e))throw Error("The Arrow File format does not support replacement dictionaries. ");return super._writeDictionaryBatch(t,e,r)}_writeFooter(t){let e=rF.encode(new rF(t,iX.V5,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(t)._write(e)._write(Int32Array.of(e.byteLength))._writeMagic()}}function iF(t,e){let r=e;for(let n of(e instanceof ny&&(r=e.batches,t.reset(void 0,e.schema)),r))t.write(n);return t.finish()}function iU(t,e){return i(this,void 0,void 0,function*(){var r,n,i,o,a,s,c;try{for(r=!0,n=u(e);!(o=(i=yield n.next()).done);r=!0)c=i.value,r=!1,t.write(c)}catch(t){a={error:t}}finally{try{!r&&!o&&(s=n.return)&&(yield s.call(n))}finally{if(a)throw a.error}}return t.finish()})}var iz,iV,iW,i$,iY,iH,iG,iq,iK,iX,iJ,iQ,iZ,i0,i1,i2=Object.create,i3=Object.defineProperty,i4=Object.getOwnPropertyDescriptor,i8=Object.getOwnPropertyNames,i6=Object.getPrototypeOf,i5=Object.prototype.hasOwnProperty,i9=(t,e,r,n)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let i of i8(e))i5.call(t,i)||i===r||i3(t,i,{get:()=>e[i],enumerable:!(n=i4(e,i))||n.enumerable});return t},i7=((t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports))((t,e)=>{e.exports=Worker}),ot=(t=>(t[t.UNDEFINED=0]="UNDEFINED",t[t.AUTOMATIC=1]="AUTOMATIC",t[t.READ_ONLY=2]="READ_ONLY",t[t.READ_WRITE=3]="READ_WRITE",t))(ot||{}),oe=(t=>(t[t.IDENTIFIER=0]="IDENTIFIER",t[t.NUMERIC_CONSTANT=1]="NUMERIC_CONSTANT",t[t.STRING_CONSTANT=2]="STRING_CONSTANT",t[t.OPERATOR=3]="OPERATOR",t[t.KEYWORD=4]="KEYWORD",t[t.COMMENT=5]="COMMENT",t))(oe||{}),or=(t=>(t[t.NONE=0]="NONE",t[t.DEBUG=1]="DEBUG",t[t.INFO=2]="INFO",t[t.WARNING=3]="WARNING",t[t.ERROR=4]="ERROR",t))(or||{}),on=(t=>(t[t.NONE=0]="NONE",t[t.CONNECT=1]="CONNECT",t[t.DISCONNECT=2]="DISCONNECT",t[t.OPEN=3]="OPEN",t[t.QUERY=4]="QUERY",t[t.INSTANTIATE=5]="INSTANTIATE",t))(on||{}),oi=(t=>(t[t.NONE=0]="NONE",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR",t[t.START=3]="START",t[t.RUN=4]="RUN",t[t.CAPTURE=5]="CAPTURE",t))(oi||{}),oo=(t=>(t[t.NONE=0]="NONE",t[t.WEB_WORKER=1]="WEB_WORKER",t[t.NODE_WORKER=2]="NODE_WORKER",t[t.BINDINGS=3]="BINDINGS",t[t.ASYNC_DUCKDB=4]="ASYNC_DUCKDB",t))(oo||{}),oa=class{constructor(t=2){this.level=t}log(t){t.level>=this.level&&console.log(t)}},os=(t=>(t[t.SUCCESS=0]="SUCCESS",t))(os||{}),ou=class{constructor(t,e){this._bindings=t,this._conn=e}get bindings(){return this._bindings}async close(){return this._bindings.disconnect(this._conn)}useUnsafe(t){return t(this._bindings,this._conn)}async query(t){this._bindings.logger.log({timestamp:new Date,level:2,origin:4,topic:4,event:4,value:t});let e=await this._bindings.runQuery(this._conn,t),r=id.from(e);return console.assert(r.isSync(),"Reader is not sync"),console.assert(r.isFile(),"Reader is not file"),new ny(r)}async send(t,e=!1){this._bindings.logger.log({timestamp:new Date,level:2,origin:4,topic:4,event:4,value:t});let r=await this._bindings.startPendingQuery(this._conn,t,e);for(;null==r;)r=await this._bindings.pollPendingQuery(this._conn);let n=new oc(this._bindings,this._conn,r),i=await id.from(n);return console.assert(i.isAsync()),console.assert(i.isStream()),i}async cancelSent(){return await this._bindings.cancelPendingQuery(this._conn)}async getTableNames(t){return await this._bindings.getTableNames(this._conn,t)}async prepare(t){let e=await this._bindings.createPrepared(this._conn,t);return new ol(this._bindings,this._conn,e)}async insertArrowTable(t,e){let r=function(t,e="stream"){return("stream"===e?iR:iL).writeAll(t).toUint8Array(!0)}(t,"stream");await this.insertArrowFromIPCStream(r,e)}async insertArrowFromIPCStream(t,e){await this._bindings.insertArrowFromIPCStream(this._conn,t,e)}async insertCSVFromPath(t,e){await this._bindings.insertCSVFromPath(this._conn,t,e)}async insertJSONFromPath(t,e){await this._bindings.insertJSONFromPath(this._conn,t,e)}},oc=class{constructor(t,e,r){this.db=t,this.conn=e,this.header=r,this._first=!0,this._depleted=!1,this._inFlight=null}async next(){let t;return this._first?(this._first=!1,{done:!1,value:this.header}):this._depleted?{done:!0,value:null}:(null!=this._inFlight?(t=await this._inFlight,this._inFlight=null):t=await this.db.fetchQueryResults(this.conn),this._depleted=0==t.length,this._depleted||(this._inFlight=this.db.fetchQueryResults(this.conn)),{done:this._depleted,value:t})}[Symbol.asyncIterator](){return this}},ol=class{constructor(t,e,r){this.bindings=t,this.connectionId=e,this.statementId=r}async close(){await this.bindings.closePrepared(this.connectionId,this.statementId)}async query(...t){let e=await this.bindings.runPrepared(this.connectionId,this.statementId,t),r=id.from(e);return console.assert(r.isSync()),console.assert(r.isFile()),new ny(r)}async send(...t){let e=await this.bindings.sendPrepared(this.connectionId,this.statementId,t),r=new oc(this.bindings,this.connectionId,e),n=await id.from(r);return console.assert(n.isAsync()),console.assert(n.isStream()),n}},of=(t=>(t.CANCEL_PENDING_QUERY="CANCEL_PENDING_QUERY",t.CLOSE_PREPARED="
3CLOSE_PREPARED",t.COLLECT_FILE_STATISTICS="COLLECT_FILE_STATISTICS",t.REGISTER_OPFS_FILE_NAME="REGISTER_OPFS_FILE_NAME",t.CONNECT="CONNECT",t.COPY_FILE_TO_BUFFER="COPY_FILE_TO_BUFFER",t.COPY_FILE_TO_PATH="COPY_FILE_TO_PATH",t.CREATE_PREPARED="CREATE_PREPARED",t.DISCONNECT="DISCONNECT",t.DROP_FILE="DROP_FILE",t.DROP_FILES="DROP_FILES",t.EXPORT_FILE_STATISTICS="EXPORT_FILE_STATISTICS",t.FETCH_QUERY_RESULTS="FETCH_QUERY_RESULTS",t.FLUSH_FILES="FLUSH_FILES",t.GET_FEATURE_FLAGS="GET_FEATURE_FLAGS",t.GET_TABLE_NAMES="GET_TABLE_NAMES",t.GET_VERSION="GET_VERSION",t.GLOB_FILE_INFOS="GLOB_FILE_INFOS",t.INSERT_ARROW_FROM_IPC_STREAM="INSERT_ARROW_FROM_IPC_STREAM",t.INSERT_CSV_FROM_PATH="IMPORT_CSV_FROM_PATH",t.INSERT_JSON_FROM_PATH="IMPORT_JSON_FROM_PATH",t.INSTANTIATE="INSTANTIATE",t.OPEN="OPEN",t.PING="PING",t.POLL_PENDING_QUERY="POLL_PENDING_QUERY",t.REGISTER_FILE_BUFFER="REGISTER_FILE_BUFFER",t.REGISTER_FILE_HANDLE="REGISTER_FILE_HANDLE",t.REGISTER_FILE_URL="REGISTER_FILE_URL",t.RESET="RESET",t.RUN_PREPARED="RUN_PREPARED",t.RUN_QUERY="RUN_QUERY",t.SEND_PREPARED="SEND_PREPARED",t.START_PENDING_QUERY="START_PENDING_QUERY",t.TOKENIZE="TOKENIZE",t))(of||{}),oh=(t=>(t.CONNECTION_INFO="CONNECTION_INFO",t.ERROR="ERROR",t.FEATURE_FLAGS="FEATURE_FLAGS",t.FILE_BUFFER="FILE_BUFFER",t.FILE_INFOS="FILE_INFOS",t.FILE_SIZE="FILE_SIZE",t.FILE_STATISTICS="FILE_STATISTICS",t.INSTANTIATE_PROGRESS="INSTANTIATE_PROGRESS",t.LOG="LOG",t.PROGRESS_UPDATE="PROGRESS_UPDATE",t.OK="OK",t.PREPARED_STATEMENT_ID="PREPARED_STATEMENT_ID",t.QUERY_PLAN="QUERY_PLAN",t.QUERY_RESULT="QUERY_RESULT",t.QUERY_RESULT_CHUNK="QUERY_RESULT_CHUNK",t.QUERY_RESULT_HEADER="QUERY_RESULT_HEADER",t.QUERY_RESULT_HEADER_OR_NULL="QUERY_RESULT_HEADER_OR_NULL",t.REGISTERED_FILE="REGISTERED_FILE",t.SCRIPT_TOKENS="SCRIPT_TOKENS",t.SUCCESS="SUCCESS",t.TABLE_NAMES="TABLE_NAMES",t.VERSION_STRING="VERSION_STRING",t))(oh||{}),od=class{constructor(t,e){this.promiseResolver=()=>{}
3,this.promiseRejecter=()=>{},this.type=t,this.data=e,this.promise=new Promise((t,e)=>{this.promiseResolver=t,this.promiseRejecter=e})}};function op(t,e){let r=function t(e){switch(e.typeId){case iz.Binary:return{sqlType:"binary"};case iz.Bool:return{sqlType:"bool"};case iz.Date:return{sqlType:"date"};case iz.DateDay:return{sqlType:"date32[d]"};case iz.DateMillisecond:return{sqlType:"date64[ms]"};case iz.Decimal:return{sqlType:"decimal",precision:e.precision,scale:e.scale};case iz.Float:return{sqlType:"float"};case iz.Float16:return{sqlType:"float16"};case iz.Float32:return{sqlType:"float32"};case iz.Float64:return{sqlType:"float64"};case iz.Int:return{sqlType:"int32"};case iz.Int16:return{sqlType:"int16"};case iz.Int32:return{sqlType:"int32"};case iz.Int64:return{sqlType:"int64"};case iz.Uint16:return{sqlType:"uint16"};case iz.Uint32:return{sqlType:"uint32"};case iz.Uint64:return{sqlType:"uint64"};case iz.Uint8:return{sqlType:"uint8"};case iz.IntervalDayTime:return{sqlType:"interval[dt]"};case iz.IntervalYearMonth:return{sqlType:"interval[m]"};case iz.List:return{sqlType:"list",valueType:t(e.valueType)};case iz.FixedSizeBinary:return{sqlType:"fixedsizebinary",byteWidth:e.byteWidth};case iz.Null:return{sqlType:"null"};case iz.Utf8:return{sqlType:"utf8"};case iz.Struct:return{sqlType:"struct",fields:e.children.map(t=>op(t.name,t.type))};case iz.Map:return{sqlType:"map",keyType:t(e.keyType),valueType:t(e.valueType)};case iz.Time:return{sqlType:"time[s]"};case iz.TimeMicrosecond:return{sqlType:"time[us]"};case iz.TimeMillisecond:return{sqlType:"time[ms]"};case iz.TimeNanosecond:return{sqlType:"time[ns]"};case iz.TimeSecond:return{sqlType:"time[s]"};case iz.Timestamp:return{sqlType:"timestamp",timezone:e.timezone||void 0};case iz.TimestampSecond:return{sqlType:"timestamp[s]",timezone:e.timezone||void 0};case iz.TimestampMicrosecond:return{sqlType:"timestamp[us]",timezone:e.timezone||void 0};case iz.TimestampNanosecond:return{sqlType:"timestamp[ns]",timezone:e.timezone||void 0};case iz.TimestampMillisecond:return{sqlType:"timestamp[ms]",timezone:e.timezone||void 0}}throw Error("unsupported arrow type: ".concat(e.toString()))}(e);return r.name=t,r}var oy=new TextEncoder,ob=class{constructor(t,e=null){this._onInstantiationProgress=[],this._onExecutionProgress=[],this._worker=null,this._workerShutdownPromise=null,this._workerShutdownResolver=()=>{},this._nextMessageId=0,this._pendingRequests=new Map,this._logger=t,this._onMessageHandler=this.onMessage.bind(this),this._onErrorHandler=this.onError.bind(this),this._onCloseHandler=this.onClose.bind(this),null!=e&&this.attach(e)}get logger(){return this._logger}attach(t){this._worker=t,this._worker.addEventListener("message",this._onMessageHandler),this._worker.addEventListener("error",this._onErrorHandler),this._worker.addEventListener("close",this._onCloseHandler),this._workerShutdownPromise=new Promise((t,e)=>{this._workerShutdownResolver=t})}detach(){this._worker&&(this._worker.removeEventListener("message",this._onMessageHandler),this._worker.removeEventListener("error",this._onErrorHandler),this._worker.removeEventListener("close",this._onCloseHandler),this._worker=null,this._workerShutdownResolver(null),this._workerShutdownPromise=null,this._workerShutdownResolver=()=>{})}async terminate(){this._worker&&(this._worker.terminate(),this._worker=null,this._workerShutdownPromise=null,this._workerShutdownResolver=()=>{})}async postTask(t,e=[]){if(!this._worker)return void console.error("cannot send a message since the worker is not set!");let r=this._nextMessageId++;return this._pendingRequests.set(r,t),this._worker.postMessage({messageId:r,type:t.type,data:t.data},e),await t.promise}onMessage(t){var e;let r=t.data;switch(r.type){case"PROGRESS_UPDATE":for(let t of this._onExecutionProgress)t(r.data);return;case"LOG":return void this._logger.log(r.data);case"INSTANTIATE_PROGRESS":for(let t of this._onInstantiationProgress)t(r.data);return}let n=this._pendingRequests.get(r.requestId);if(!n)return void console.warn("unassociated response: [".concat(r.requestId,", ").concat(r.type.toString(),"]"));
3if(this._pendingRequests.delete(r.requestId),"ERROR"==r.type){let t=Error(r.data.message);t.name=r.data.name,null!=(e=Object.getOwnPropertyDescriptor(t,"stack"))&&e.writable&&(t.stack=r.data.stack),n.promiseRejecter(t);return}switch(n.type){case"CLOSE_PREPARED":case"COLLECT_FILE_STATISTICS":case"REGISTER_OPFS_FILE_NAME":case"COPY_FILE_TO_PATH":case"DISCONNECT":case"DROP_FILE":case"DROP_FILES":case"FLUSH_FILES":case"INSERT_ARROW_FROM_IPC_STREAM":case"IMPORT_CSV_FROM_PATH":case"IMPORT_JSON_FROM_PATH":case"OPEN":case"PING":case"REGISTER_FILE_BUFFER":case"REGISTER_FILE_HANDLE":case"REGISTER_FILE_URL":case"RESET":if("OK"==r.type)return void n.promiseResolver(r.data);break;case"INSTANTIATE":if(this._onInstantiationProgress=[],"OK"==r.type)return void n.promiseResolver(r.data);break;case"GLOB_FILE_INFOS":if("FILE_INFOS"==r.type)return void n.promiseResolver(r.data);break;case"GET_VERSION":if("VERSION_STRING"==r.type)return void n.promiseResolver(r.data);break;case"GET_FEATURE_FLAGS":if("FEATURE_FLAGS"==r.type)return void n.promiseResolver(r.data);break;case"GET_TABLE_NAMES":if("TABLE_NAMES"==r.type)return void n.promiseResolver(r.data);break;case"TOKENIZE":if("SCRIPT_TOKENS"==r.type)return void n.promiseResolver(r.data);break;case"COPY_FILE_TO_BUFFER":if("FILE_BUFFER"==r.type)return void n.promiseResolver(r.data);break;case"EXPORT_FILE_STATISTICS":if("FILE_STATISTICS"==r.type)return void n.promiseResolver(r.data);break;case"CONNECT":if("CONNECTION_INFO"==r.type)return void n.promiseResolver(r.data);break;case"RUN_PREPARED":case"RUN_QUERY":if("QUERY_RESULT"==r.type)return void n.promiseResolver(r.data);break;case"SEND_PREPARED":if("QUERY_RESULT_HEADER"==r.type)return void n.promiseResolver(r.data);break;case"START_PENDING_QUERY":case"POLL_PENDING_QUERY":if("QUERY_RESULT_HEADER_OR_NULL"==r.type)return void n.promiseResolver(r.data);break;case"CANCEL_PENDING_QUERY":if(this._onInstantiationProgress=[],"SUCCESS"==r.type)return void n.promiseResolver(r.data);break;case"FETCH_QUERY_RESULTS":if("QUERY_RESULT_CHUNK"==r.type)return void n.promiseResolver(r.data);break;case"CREATE_PREPARED":if("PREPARED_STATEMENT_ID"==r.type)return void n.promiseResolver(r.data)}n.promiseRejecter(Error("unexpected response type: ".concat(r.type.toString())))}onError(t){console.error(t),console.error("error in duckdb worker: ".concat(t.message)),this._pendingRequests.clear()}onClose(){if(this._workerShutdownResolver(null),0!=this._pendingRequests.size)return void console.warn("worker terminated with ".concat(this._pendingRequests.size," pending requests"));this._pendingRequests.clear()}async reset(){let t=new od("RESET",null);return await this.postTask(t)}async ping(){let t=new od("PING",null);await this.postTask(t)}async dropFile(t){let e=new od("DROP_FILE",t);return await this.postTask(e)}async dropFiles(){let t=new od("DROP_FILES",null);return await this.postTask(t)}async flushFiles(){let t=new od("FLUSH_FILES",null);return await this.postTask(t)}async instantiate(t,e=null,r=t=>{}){this._onInstantiationProgress.push(r);let n=new od("INSTANTIATE",[t,e]);return await this.postTask(n)}async getVersion(){let t=new od("GET_VERSION",null);return await this.postTask(t)}async getFeatureFlags(){let t=new od("GET_FEATURE_FLAGS",null);return await this.postTask(t)}async open(t){let e=new od("OPEN",t);await this.postTask(e)}async tokenize(t){let e=new od("TOKENIZE",t);return await this.postTask(e)}async connectInternal(){let t=new od("CONNECT",null);return await this.postTask(t)}async connect(){return new ou(this,await this.connectInternal())}async disconnect(t){let e=new od("DISCONNECT",t);await this.postTask(e)}async runQuery(t,e){let r=new od("RUN_QUERY",[t,e]);return await this.postTask(r)}async startPendingQuery(t,e,r=!1){let n=new od("START_PENDING_QUERY",[t,e,r]);return await this.postTask(n)}async pollPendingQuery(t){let e=new od("POLL_PENDING_QUERY",t);return await this.postTask(e)}async cancelPendingQuery(t){let e=new od("CANCEL_PENDING_QUERY",t);return await this.postTask(e)}async fetchQueryResults(t){let e=new od("FETCH_QUERY_RESULTS",t);return await this.postTask(e)}async getTableNames(t,e){let r=new od("GET_TABLE_NAMES",[t,e]);return await this.postTask(r)}async createPrepared(t,e){let r=new od("CREATE_PREPARED",[t,e]);return await this.postTask(r)}async closePrepared(t,e){let r=new od("CLOSE_PREPARED",[t,e]);await this.postTask(r)}async runPrepared(t,e,r){let n=new od("RUN_PREPARED",[t,e,r]);return await this.postTask(n)}async sendPrepared(t,e,r){let n=new od("SEND_PREPARED",[t,e,r]);return await this.postTask(n)}async globFiles(t){let e=new od("GLOB_FILE_INFOS",t);return await this.postTask(e)}async registerFileText(t,e){let r=oy.encode(e);await this.registerFileBuffer(t,r)}async registerFileURL(t,e,r,n){void 0===e&&(e=t);let i=new od("REGISTER_FILE_URL",[t,e,r,n]);await this.postTask(i)}async registerEmptyFileBuffer(t){}async registerFileBuffer(t,e){let r=new od("REGISTER_FILE_BUFFER",[t,e]);await this.postTask(r,[e.buffer])}async registerFileHandle(t,e,r,n){let i=new od("REGISTER_FILE_HANDLE",[t,e,r,n]);await this.postTask(i,[])}async registerOPFSFileName(t){let e=new od("REGISTER_OPFS_FILE_NAME",[t]);await this.postTask(e,[])}async collectFileStatistics(t,e){let r=new od("COLLECT_FILE_STATISTICS",[t,e]);await this.postTask(r,[])}async exportFileStatistics(t){let e=new od("EXPORT_FILE_STATISTICS",t);return await this.postTask(e,[])}async copyFileToBuffer(t){let e=new od("COPY_FILE_TO_BUFFER",t);return await this.postTask(e)}async copyFileToPath(t,e){let r=new od("COPY_FILE_TO_PATH",[t,e]);await this.postTask(r)}async insertArrowFromIPCStream(t,e,r){if(0==e.length)return;let n=new od("INSERT_ARROW_FROM_IPC_STREAM",[t,e,r]);await this.postTask(n,[e.buffer])}async insertCSVFromPath(t,e,r){if(void 0!==r.columns){let t=[];for(let e in r.columns){let n=r.columns[e];t.push(op(e,n))}r.columnsFlat=t,delete r.columns}let n=new od("IMPORT_CSV_FROM_PATH",[t,e,r]);await this.postTask(n)}async insertJSONFromPath(t,e,r){if(void 0!==r.columns){let t=[];for(let e in r.columns){let n=r.columns[e];t.push(op(e,n))}r.columnsFlat=t,delete r.columns}let n=new od("IMPORT_JSON_FROM_PATH",[t,e,r]);await this.postTask(n)}};!function(){let t=new TextDecoder}();var ov=(t=>(t[t.BUFFER=0]="BUFFER",t[t.NODE_FS=1]="NODE_FS",t[t.BROWSER_FILEREADER=2]="BROWSER_FILEREADER",t[t.BROWSER_FSACCESS=3]="BROWSER_FSACCESS",t[t.HTTP=4]="HTTP",t[t.S3=5]="S3",t))(ov||{}),om=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,14,1,12,0,65,0,65,0,65,0,252,10,0,0,11])),og=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,6,64,25,11,11])),ow=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])),o_=()=>(async t=>{try{return"u">typeof MessageChannel&&new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(t)}catch(t){return!1}})(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11])),ox={name:"@duckdb/duckdb-wasm",version:"1.29.1-dev132.0"},oO=ox.name,oS=ox.version,oA=ox.version.split(".");oA[0],oA[1],oA[2];var oE=()=>typeof navigator>"u";function oI(){let t="https://cdn.jsdelivr.net/npm/".concat(oO,"@").concat(oS,"/dist/");return{mvp:{mainModule:"".concat(t,"duckdb-mvp.wasm"),mainWorker:"".concat(t,"duckdb-browser-mvp.worker.js")},eh:{mainModule:"".concat(t,"duckdb-eh.wasm"),mainWorker:"".concat(t,"duckdb-browser-eh.worker.js")}}}var oT=null,oj=null,oP=null,oM=null,oD=null;async function oN(){return null==oT&&(oT="u">typeof BigInt64Array),null==oj&&(oj=await og()),null==oP&&(oP=await o_()),null==oM&&(oM=await ow()),null==oD&&(oD=await om()
3),{bigInt64Array:oT,crossOriginIsolated:oE()||globalThis.crossOriginIsolated||!1,wasmExceptions:oj,wasmSIMD:oM,wasmThreads:oP,wasmBulkMemory:oD}}async function ok(t){let e=await oN();if(e.wasmExceptions){if(e.wasmSIMD&&e.wasmThreads&&e.crossOriginIsolated&&t.coi)return{mainModule:t.coi.mainModule,mainWorker:t.coi.mainWorker,pthreadWorker:t.coi.pthreadWorker};if(t.eh)return{mainModule:t.eh.mainModule,mainWorker:t.eh.mainWorker,pthreadWorker:null}}return{mainModule:t.mvp.mainModule,mainWorker:t.mvp.mainWorker,pthreadWorker:null}}((t,e,r)=>(r=null!=t?i2(i6(t)):{},i9(!e&&t&&t.__esModule?r:i3(r,"default",{value:t,enumerable:!0}),t)))(i7())},87965:(t,e,r)=>{"use strict";r.d(e,{E:()=>u});var n=r(53371),i=r(78499),o=r(22333),a=r(24354),s=r(66743),u=(0,n.gu)({chartName:"BarChart",GraphicalChild:i.y,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:o.W},{axisType:"yAxis",AxisComp:a.h}],formatAxisMap:s.pr})},88046:(t,e,r)=>{var n=r(39824),i=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(i,""):t}},88172:(t,e,r)=>{"use strict";r.d(e,{E:()=>R});var n=r(14232),i=r(19809),o=r.n(i),a=r(69241),s=r(59421),u=r(53995),c=r(72804),l=r(21433);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,function(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=f(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==f(e)?e:e+""}(n.key),n)}}var y=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,b=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,v=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,m=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,g={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},w=Object.keys(g),_=function(){var t,e;function r(t,e){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");this.num=t,this.unit=e,this.num=t,this.unit=e,Number.isNaN(t)&&(this.unit=""),""===e||v.test(e)||(this.num=NaN,this.unit=""),w.includes(e)&&(this.num=t*g[e],this.unit="px")}return t=[{key:"add",value:function(t){return this.unit!==t.unit?new r(NaN,""):new r(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new r(NaN,""):new r(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new r(NaN,""):new r(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new r(NaN,""):new r(this.num/t.num,this.unit||t.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],e=[{key:"parse",value:function(t){var e,n=h(null!=(e=m.exec(t))?e:[],3),i=n[1],o=n[2];return new r(parseFloat(i),null!=o?o:"")}}],t&&p(r.prototype,t),e&&p(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}();function x(t){if(t.includes("NaN"))return"NaN";for(var e=t;e.includes("*")||e.includes("/");){var r,n=h(null!=(r=y.exec(e))?r:[],4),i=n[1],o=n[2],a=n[3],s=_.parse(null!=i?i:""),u=_.parse(null!=a?a:""),c="*"===o?s.multiply(u):s.divide(u);if(c.isNaN())return"NaN";e=e.replace(y,c.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var l,f=h(null!=(l=b.exec(e))?l:[],4),d=f[1],p=f[2],v=f[3],m=_.parse(null!=d?d:""),g=_.parse(null!=v?v:""),w="+"===p?m.add(g):m.subtract(g);if(w.isNaN())return"NaN";e=e.replace(b,w.toString())}return e}var O=/\(([^()]*)\)/;function S(t){var e=function(t){try{var e;return e=t.replace(/\s+/g,""),e=function(t){for(var e=t;e.includes("(");){var r=h(O.exec(e),2)[1];e=e.replace(O,x(r))}return e}(e),e=x(e)}catch(t){return"NaN"}}(t.slice(5,-1));return"NaN"===e?"":e}var A=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],E=["dx","dy","angle","className","breakAll"];function I(){return(I=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
3for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function T(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function j(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return P(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var M=/[ \f\n\r\t\v\u2028\u2029]+/,D=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var i=[];o()(e)||(i=r?e.toString().split(""):e.toString().split(M));var a=i.map(function(t){return{word:t,width:(0,l.Pu)(t,n).width}}),s=r?0:(0,l.Pu)("\xa0",n).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch(t){return null}},N=function(t,e,r,n,i){var o,a=t.maxLines,u=t.children,c=t.style,l=t.breakAll,f=(0,s.Et)(a),h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce(function(t,e){var o=e.word,a=e.width,s=t[t.length-1];return s&&(null==n||i||s.width+a+r<Number(n))?(s.words.push(o),s.width+=a+r):t.push({words:[o],width:a}),t},[])},d=h(e);if(!f)return d;for(var p=function(t){var e=h(D({breakAll:l,style:c,children:u.slice(0,t)+"â¦"}).wordsWithComputedWidth);return[e.length>a||e.reduce(function(t,e){return t.width>e.width?t:e}).width>Number(n),e]},y=0,b=u.length-1,v=0;y<=b&&v<=u.length-1;){var m=Math.floor((y+b)/2),g=j(p(m-1),2),w=g[0],_=g[1],x=j(p(m),1)[0];if(w||x||(y=m+1),w&&x&&(b=m-1),!w&&x){o=_;break}v++}return o||d},k=function(t){return[{words:o()(t)?[]:t.toString().split(M)}]},B=function(t){var e=t.width,r=t.scaleToFit,n=t.children,i=t.style,o=t.breakAll,a=t.maxLines;if((e||r)&&!u.m.isSsr){var s=D({breakAll:o,children:n,style:i});if(!s)return k(n);var c=s.wordsWithComputedWidth,l=s.spaceWidth;return N({breakAll:o,children:n,maxLines:a,style:i},c,l,e,r)}return k(n)},C="#808080",R=function(t){var e,r=t.x,i=void 0===r?0:r,o=t.y,u=void 0===o?0:o,l=t.lineHeight,f=void 0===l?"1em":l,h=t.capHeight,d=void 0===h?"0.71em":h,p=t.scaleToFit,y=void 0!==p&&p,b=t.textAnchor,v=t.verticalAnchor,m=t.fill,g=void 0===m?C:m,w=T(t,A),_=(0,n.useMemo)(function(){return B({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:y,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,y,w.style,w.width]),x=w.dx,O=w.dy,j=w.angle,P=w.className,M=w.breakAll,D=T(w,E);if(!(0,s.vh)(i)||!(0,s.vh)(u))return null;var N=i+((0,s.Et)(x)?x:0),k=u+((0,s.Et)(O)?O:0);switch(void 0===v?"end":v){case"start":e=S("calc(".concat(d,")"));break;case"middle":e=S("calc(".concat((_.length-1)/2," * -").concat(f," + (").concat(d," / 2))"));break;default:e=S("calc(".concat(_.length-1," * -").concat(f,")"))}var R=[];if(y){var L=_[0].width,F=w.width;R.push("scale(".concat(((0,s.Et)(F)?F/L:1)/L,")"))}return j&&R.push("rotate(".concat(j,", ").concat(N,", ").concat(k,")")),R.length&&(D.transform=R.join(" ")),n.createElement("text",I({},(0,c.J9)(D,!0),{x:N,y:k,className:(0,a.A)("recharts-text",P),textAnchor:void 0===b?"start":b,fill:g.includes("url")?C:g}),_.map(function(t,r){var i=t.words.join(M?"":" ");return n.createElement("tspan",{x:N,dy:0===r?e:f,key:"".concat(i,"-").concat(r)},i)}))}},89059:(t,e,r)=>{var n=r(5115),i=r(61733),o=r(33582),a=r(52141);t.exports=function(t){return o(t)?n(a(t)):i(t)}},89161:(t,e,r)=>{var n=r(23910);t.exports=r(33)(n)},89226:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o}},89387:(t,e,r)=>{var n=r(89950),i=r(28654);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==n(t)}},89950:(t,e,r)=>
3{var n=r(64451),i=r(97023),o=r(99828),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},91364:(t,e,r)=>{var n=r(48668),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g;t.exports=n(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)}),e})},91575:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}},91667:(t,e,r)=>{var n=r(89950),i=r(52742),o=r(28654),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[n(t)]}},92165:(t,e,r)=>{"use strict";r.d(e,{i:()=>N});var n=r(14232),i=r(8532),o=r.n(i);let a=Math.cos,s=Math.sin,u=Math.sqrt,c=Math.PI,l=2*c,f={draw(t,e){let r=u(e/c);t.moveTo(r,0),t.arc(0,0,r,0,l)}},h=u(1/3),d=2*h,p=s(c/10)/s(7*c/10),y=s(l/10)*p,b=-a(l/10)*p,v=u(3),m=u(3)/2,g=1/u(12),w=(g/2+1)*3;var _=r(26539),x=r(16876);u(3),u(3);var O=r(69241),S=r(72804);function A(t){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var E=["type","size","sizeType"];function I(){return(I=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function T(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function j(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?T(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=A(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=A(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==A(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var P={symbolCircle:f,symbolCross:{draw(t,e){let r=u(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},symbolDiamond:{draw(t,e){let r=u(e/d),n=r*h;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},symbolSquare:{draw(t,e){let r=u(e),n=-r/2;t.rect(n,n,r,r)}},symbolStar:{draw(t,e){let r=u(.8908130915292852*e),n=y*r,i=b*r;t.moveTo(0,-r),t.lineTo(n,i);for(let e=1;e<5;++e){let o=l*e/5,u=a(o),c=s(o);t.lineTo(c*r,-u*r),t.lineTo(u*n-c*i,c*n+u*i)}t.closePath()}},symbolTriangle:{draw(t,e){let r=-u(e/(3*v));t.moveTo(0,2*r),t.lineTo(-v*r,-r),t.lineTo(v*r,-r),t.closePath()}},symbolWye:{draw(t,e){let r=u(e/w),n=r/2,i=r*g,o=r*g+r,a=-n;t.moveTo(n,i),t.lineTo(n,o),t.lineTo(a,o),t.lineTo(-.5*n-m*i,m*n+-.5*i),t.lineTo(-.5*n-m*o,m*n+-.5*o),t.lineTo(-.5*a-m*o,m*a+-.5*o),t.lineTo(-.5*n+m*i,-.5*i-m*n),t.lineTo(-.5*n+m*o,-.5*o-m*n),t.lineTo(-.5*a+m*o,-.5*o-m*a),t.closePath()}}},M=Math.PI/180,D=function(t,e,r){if("area"===e)return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var n=18*M;return 1.25*t*t*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},N=function(t){var e,r=t.type,i=void 0===r?"circle":r,a=t.size,s=void 0===a?64:a,u=t.sizeType,c=void 0===u?"area":u,l=j(j({},function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,E)),{},{type:i,size:s,sizeType:c}),h=l.className,d=l.cx,p=l.cy,y=(0,S.J9)(l,!0);return d===+d&&p===+p&&s===+s?n.createElement("path",I({}
3,y,{className:(0,O.A)("recharts-symbols",h),transform:"translate(".concat(d,", ").concat(p,")"),d:(e=P["symbol".concat(o()(i))]||f,(function(t,e){let r=null,n=(0,x.i)(i);function i(){let i;if(r||(r=i=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),i)return r=null,i+""||null}return t="function"==typeof t?t:(0,_.A)(t||f),e="function"==typeof e?e:(0,_.A)(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:(0,_.A)(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:(0,_.A)(+t),i):e},i.context=function(t){return arguments.length?(r=null==t?null:t,i):r},i})().type(e).size(D(s,c,i))())})):null};N.registerSymbol=function(t,e){P["symbol".concat(o()(t))]=e}},92441:(t,e,r)=>{var n=r(17099),i=r(13674),o=r(71598),a=r(78483),s=r(69455),u=r(92999);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,t.exports=c},92999:(t,e,r)=>{var n=r(17099),i=r(36315
3),o=r(2331);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(t,e),this.size=r.size,this}},93007:t=>{t.exports=Array.isArray},93478:(t,e,r)=>{"use strict";r.d(e,{A:()=>function t(){var e=new n,r=[],i=[],o=s;function u(t){let n=e.get(t);if(void 0===n){if(o!==s)return o;e.set(t,n=r.push(t)-1)}return i[n%i.length]}return u.domain=function(t){if(!arguments.length)return r.slice();for(let i of(r=[],e=new n,t))e.has(i)||e.set(i,r.push(i)-1);return u},u.range=function(t){return arguments.length?(i=Array.from(t),u):i.slice()},u.unknown=function(t){return arguments.length?(o=t,u):o},u.copy=function(){return t(r,i).unknown(o)},a.C.apply(u,arguments),u},h:()=>s});class n extends Map{constructor(t,e=o){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(let[e,r]of t)this.set(e,r)}get(t){return super.get(i(this,t))}has(t){return super.has(i(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}(this,t))}}function i({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):r}function o(t){return null!==t&&"object"==typeof t?t.valueOf():t}var a=r(2592);let s=Symbol("implicit")},93680:(t,e,r)=>{"use strict";r.d(e,{DR:()=>g,pj:()=>x,rY:()=>T,yi:()=>I,Yp:()=>w,hj:()=>E,sk:()=>A,AF:()=>_,Nk:()=>S,$G:()=>O});var n=r(14232),i=r(28752),o=r(65013),a=r.n(o),s=r(34293),u=r.n(s),c=r(75998),l=r.n(c)()(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}),f=r(59421),h=(0,n.createContext)(void 0),d=(0,n.createContext)(void 0),p=(0,n.createContext)(void 0),y=(0,n.createContext)({}),b=(0,n.createContext)(void 0),v=(0,n.createContext)(0),m=(0,n.createContext)(0),g=function(t){var e=t.state,r=e.xAxisMap,i=e.yAxisMap,o=e.offset,a=t.clipPathId,s=t.children,u=t.width,c=t.height,f=l(o);return n.createElement(h.Provider,{value:r},n.createElement(d.Provider,{value:i},n.createElement(y.Provider,{value:o},n.createElement(p.Provider,{value:f},n.createElement(b.Provider,{value:a},n.createElement(v.Provider,{value:c},n.createElement(m.Provider,{value:u},s)))))))},w=function(){return(0,n.useContext)(b)},_=function(t){var e=(0,n.useContext)(h);null==e&&(0,i.A)(!1);var r=e[t];return null==r&&(0,i.A)(!1),r},x=function(){var t=(0,n.useContext)(h);return(0,f.lX)(t)},O=function(){var t=(0,n.useContext)(d);return a()(t,function(t){return u()(t.domain,Number.isFinite)})||(0,f.lX)(t)},S=function(t){var e=(0,n.useContext)(d);null==e&&(0,i.A)(!1);var r=e[t];return null==r&&(0,i.A)(!1),r},A=function(){return(0,n.useContext)(p)},E=function(){return(0,n.useContext)(y)},I=function(){return(0,n.useContext)(m)},T=function(){return(0,n.useContext)(v)}},94175:(t,e,r)=>{var n=r(59930),i=r(23550),o=r(47871),a=r(96640),s=r(20067),u=r(99969),c=r(17578),l=r(27148),f=r(93007);t.exports=function(t,e,r){e=e.length?n(e,function(t){return f(t)?function(e){return i(e,1===t.length?t[0]:t)}:t}):[l];var h=-1;return e=n(e,u(o)),s(a(t,function(t,r,i){return{criteria:n(e,function(e){return e(t)}),index:++h,value:t}}),function(t,e){return c(t,e,r)})}},94552:(t,e,r)=>{var n=r(84779),i=r(17099),o=r(36315);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},94806:(t,e,r)=>{var n=r(89226),i=r(27371),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(t){return null==t?[]:n(a(t=Object(t)),function(e){return o.call(t,e)})}:i},95029:(t,e,r)=>{t.exports=r(97791)(Object.getPrototypeOf,Object)},95062:(t,e,r)=>{t.exports=r(79706)()},95318:(t,e,r)=>{var n=r(58511),i=r(48894),o=r(93007),a=r(68373),s=r(52742),u=r(52141);t.exports=function(t,e,r){e=n(e,t);for(var c=-1,l=e.length,f=!1;++c<l;){var h=u(e[c]);if(!(f=null!=t&&r(t,h)))break;t=t[h]}return f||++c!=l?f:!!(l=null==t?0:t.length)&&s(l)&&a(h,l)&&(o(t)||i(t))}},95345:(t,e,r)=>{t.exports=r(52673)()},95616:(t,e,r)=>{var n=r(45457);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},95975:t=>{t.exports=function(t){return t!=t}}
3,96640:(t,e,r)=>{var n=r(3979),i=r(27136);t.exports=function(t,e){var r=-1,o=i(t)?Array(t.length):[];return n(t,function(t,n,i){o[++r]=e(t,n,i)}),o}},96703:(t,e,r)=>{t.exports=r(43622)(r(19031),"WeakMap")},97023:(t,e,r)=>{var n=r(64451),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var i=a.call(t);return n&&(e?t[s]=r:delete t[s]),i}},97791:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},98506:(t,e,r)=>{var n=r(40087),i=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!i&&i in t}},98825:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},98978:t=>{t.exports=function(t,e){return t<e}},99077:(t,e,r)=>{"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach(function(e){(function(t,e,r){var i;(i=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==n(i)?i:i+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}r.d(e,{IZ:()=>s,Kg:()=>a,yy:()=>f}),r(19809),r(14232),r(19850);var a=Math.PI/180,s=function(t,e,r,n){return{x:t+Math.cos(-a*n)*r,y:e+Math.sin(-a*n)*r}},u=function(t,e){var r=t.x,n=t.y;
3return Math.sqrt(Math.pow(r-e.x,2)+Math.pow(n-e.y,2))},c=function(t,e){var r=t.x,n=t.y,i=e.cx,o=e.cy,a=u({x:r,y:n},{x:i,y:o});if(a<=0)return{radius:a};var s=Math.acos((r-i)/a);return n>o&&(s=2*Math.PI-s),{radius:a,angle:180*s/Math.PI,angleInRadian:s}},l=function(t){var e=t.startAngle,r=t.endAngle,n=Math.min(Math.floor(e/360),Math.floor(r/360));return{startAngle:e-360*n,endAngle:r-360*n}},f=function(t,e){var r,n=c({x:t.x,y:t.y},e),i=n.radius,a=n.angle,s=e.innerRadius,u=e.outerRadius;if(i<s||i>u)return!1;if(0===i)return!0;var f=l(e),h=f.startAngle,d=f.endAngle,p=a;if(h<=d){for(;p>d;)p-=360;for(;p<h;)p+=360;r=p>=h&&p<=d}else{for(;p>h;)p-=360;for(;p<d;)p+=360;r=p>=d&&p<=h}return r?o(o({},e),{},{radius:i,angle:p+360*Math.min(Math.floor(e.startAngle/360),Math.floor(e.endAngle/360))}):null}},99520:(t,e,r)=>{"use strict";r.d(e,{u:()=>b});var n=r(14232),i=r(28752),o=r(51572),a=r(72804),s=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(){return(c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t,e,r){return(e=y(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}var b=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=h(t),function(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,f()?Reflect.construct(t,e||[],h(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&d(r,t),e=[{key:"render",value:function(){var t=this.props,e=t.offset,r=t.layout,u=t.width,f=t.dataKey,h=t.data,d=t.dataPointFormatter,p=t.xAxis,y=t.yAxis,b=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,s),v=(0,a.J9)(b,!1);"x"===this.props.direction&&"number"!==p.type&&(0,i.A)(!1);var m=h.map(function(t){var i,a,s=d(t,f),h=s.x,b=s.y,m=s.value,g=s.errorVal;if(!g)return null;var w=[];if(Array.isArray(g)){var _=function(t){if(Array.isArray(t))return t}(g)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{o=(r=r.call(t)).next,!1;for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}
3finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(g,2)||function(t,e){if(t){if("string"==typeof t)return l(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,e)}}(g,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();i=_[0],a=_[1]}else i=a=g;if("vertical"===r){var x=p.scale,O=b+e,S=O+u,A=O-u,E=x(m-i),I=x(m+a);w.push({x1:I,y1:S,x2:I,y2:A}),w.push({x1:E,y1:O,x2:I,y2:O}),w.push({x1:E,y1:S,x2:E,y2:A})}else if("horizontal"===r){var T=y.scale,j=h+e,P=j-u,M=j+u,D=T(m-i),N=T(m+a);w.push({x1:P,y1:N,x2:M,y2:N}),w.push({x1:j,y1:D,x2:j,y2:N}),w.push({x1:P,y1:D,x2:M,y2:D})}return n.createElement(o.W,c({className:"recharts-errorBar",key:"bar-".concat(w.map(function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))},v),w.map(function(t){return n.createElement("line",c({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))}))});return n.createElement(o.W,{className:"recharts-errorBars"},m)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,y(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(n.Component);p(b,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),p(b,"displayName","ErrorBar")},99828:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},99969:t=>{t.exports=function(t){return function(e){return t(e)}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.