File "index.js"
Full Path: /home/fresvfqn/waterdamagerestorationandrepairsmithtown.com/wp-content/plugins/surerank/build/vendor-fc70f967/index.js
File size: 36.05 KB
MIME-type: text/plain
Charset: utf-8
"use strict";(globalThis.webpackChunksurerank=globalThis.webpackChunksurerank||[]).push([[732],{17829:(e,t,r)=>{r.d(t,{b:()=>be});var a=r(51609),n=r.n(a),i=r(69843),o=r.n(i),s=r(1882),l=r.n(s),d=r(23181),c=r.n(d),u=r(58156),p=r.n(u),h=r(33031),f=r.n(h),v=r(7350),y=r.n(v),x=r(34164),m=r(11561),g=r(49303),I=r(86069),b=r(35683),A=r(97018),M=r(66613),k=r(34723),E=r(94501),S=r(3509),T=r(81636),P=r(59744),w=r(33964),C=r(90151),O=r(67688),B=r(14040),D=r(23521),j=r(52408),L=r(98940);function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function R(e,t,r){return(t=z(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z(e){var t=function(e){if("object"!=G(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=G(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==G(t)?t:t+""}var N=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),R(this,"activeIndex",0),R(this,"coordinateList",[]),R(this,"layout","horizontal")},(t=[{key:"setDetails",value:function(e){var t,r=e.coordinateList,a=void 0===r?null:r,n=e.container,i=void 0===n?null:n,o=e.layout,s=void 0===o?null:o,l=e.offset,d=void 0===l?null:l,c=e.mouseHandlerCallback,u=void 0===c?null:c;this.coordinateList=null!==(t=null!==a&&void 0!==a?a:this.coordinateList)&&void 0!==t?t:[],this.container=null!==i&&void 0!==i?i:this.container,this.layout=null!==s&&void 0!==s?s:this.layout,this.offset=null!==d&&void 0!==d?d:this.offset,this.mouseHandlerCallback=null!==u&&void 0!==u?u: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(e){if(0!==this.coordinateList.length)switch(e.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(e){this.activeIndex=e}},{key:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),a=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,n=(null===(t=window)||void 0===t?void 0:t.scrollY)||0;this.mouseHandlerCallback({pageX:r.x+this.coordinateList[this.activeIndex].coordinate+a,pageY:r.y+this.offset.top+r.height/2+n})}}}])&&function(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,z(a.key),a)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),X=r(93749),K=r(15079),U=r(99848),H=r(19287),Y=["item"],_=["children","className","width","height","style","compact","title","desc"];function W(e){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(e)}function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Q.apply(this,arguments)}function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,i,o,s=[],l=!0,d=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=i.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){d=!0,n=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw n}}return s}}(e,t)||ee(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)t.indexOf(r=i[a])>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function J(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(J=function(){return!!e})()}function Z(e){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Z(e)}function $(e,t){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$(e,t)}function q(e){return function(e){if(Array.isArray(e))return te(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ee(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ee(e,t){if(e){if("string"===typeof e)return te(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?te(e,t):void 0}}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?re(Object(r),!0).forEach(function(t){ne(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ne(e,t,r){return(t=ie(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ie(e){var t=function(e){if("object"!=W(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=W(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==W(t)?t:t+""}var oe={xAxis:["bottom","top"],yAxis:["left","right"]},se={width:"100%",height:"100%"},le={x:0,y:0};function de(e){return e}var ce=function(e,t){var r=t.graphicalItems,a=t.dataStartIndex,n=t.dataEndIndex,i=(null!==r&&void 0!==r?r:[]).reduce(function(e,t){var r=t.props.data;return r&&r.length?[].concat(q(e),q(r)):e},[]);return i.length>0?i:e&&e.length&&(0,P.Et)(a)&&(0,P.Et)(n)?e.slice(a,n+1):[]};function ue(e){return"number"===e?[0,"auto"]:void 0}var pe=function(e,t,r,a){var n=e.graphicalItems,i=e.tooltipAxis,o=ce(t,e);return r<0||!n||!n.length||r>=o.length?null:n.reduce(function(n,s){var l,d,c=null!==(l=s.props.data)&&void 0!==l?l:t;return c&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=r&&(c=c.slice(e.dataStartIndex,e.dataEndIndex+1)),(d=i.dataKey&&!i.allowDuplicatedCategory?(0,P.eP)(void 0===c?o:c,i.dataKey,a):c&&c[r]||o[r])?[].concat(q(n),[(0,w.zb)(s,d)]):n},[])},he=function(e,t,r,a){var n=a||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(n,r),o=e.orderedTooltipTicks,s=e.tooltipTicks,l=(0,w.gH)(i,o,s,e.tooltipAxis);if(l>=0&&s){var d=s[l]&&s[l].value,c=pe(e,t,l,d),u=function(e,t,r,a){var n=t.find(function(e){return e&&e.index===r});if(n){if("horizontal"===e)return{x:n.coordinate,y:a.y};if("vertical"===e)return{x:a.x,y:n.coordinate};if("centric"===e){var i=n.coordinate,o=a.radius;return ae(ae(ae({},a),(0,B.IZ)(a.cx,a.cy,o,i)),{},{angle:i,radius:o})}var s=n.coordinate,l=a.angle;return ae(ae(ae({},a),(0,B.IZ)(a.cx,a.cy,s,l)),{},{angle:l,radius:s})}return le}(r,o,l,n);return{activeTooltipIndex:l,activeLabel:d,activePayload:c,activeCoordinate:u}}return null},fe=function(e){var t=e.defaultShowTooltip,r=(0,E.BU)(e.children,S.v),a=0,n=0;return e.data&&0!==e.data.length&&(n=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(a=r.props.startIndex),r.props.endIndex>=0&&(n=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:n,activeTooltipIndex:-1,isTooltipActive:Boolean(t)}},ve=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},ye=function(e,t){return"xAxis"===t?e[t].width:"yAxis"===t?e[t].height:void 0},xe=r(86279),me=r(77984),ge=r(23495),Ie=r(15894),be=function(e){var t=e.chartName,r=e.GraphicalChild,i=e.defaultTooltipEventType,s=void 0===i?"axis":i,d=e.validateTooltipEventTypes,u=void 0===d?["axis"]:d,h=e.axisComponents,v=e.legendContent,G=e.formatAxisMap,R=e.defaultProps,z=function(e,a){var n=e.props,i=e.dataStartIndex,s=e.dataEndIndex,l=e.updateId;if(!(0,E.Me)({props:n}))return null;var d=n.children,u=n.stackOffset,v=n.data,y=n.reverseStackOrder,x=ve(n.layout),g=x.numericAxisName,I=x.cateAxisName,b=(0,E.aS)(d,r),M=(0,w.Mn)(v,b,"".concat(g,"Id"),"".concat(I,"Id"),u,y),k=h.reduce(function(e,t){var r="".concat(t.axisType,"Map");return ae(ae({},e),{},ne({},r,function(e,t){var r=t.axisType,a=void 0===r?"xAxis":r,n=t.AxisComp,i=t.graphicalItems,s=t.stackGroups,l=t.dataStartIndex,d=t.dataEndIndex,u=e.children,h="".concat(a,"Id"),f=(0,E.aS)(u,n),v={};return f&&f.length?v=function(e,t){var r=t.axes,a=t.graphicalItems,n=t.axisType,i=t.axisIdKey,s=t.stackGroups,l=t.dataStartIndex,d=t.dataEndIndex,u=e.layout,p=e.children,h=e.stackOffset,f=(0,w._L)(u,n);return r.reduce(function(t,r){var v,y=void 0!==r.type.defaultProps?ae(ae({},r.type.defaultProps),r.props):r.props,x=y.type,m=y.dataKey,g=y.allowDataOverflow,I=y.allowDuplicatedCategory,b=y.scale,A=y.ticks,M=y.includeHidden,k=y[i];if(t[k])return t;var E,S,T,C=ce(e.data,{graphicalItems:a.filter(function(e){var t;return(i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i])===k}),dataStartIndex:l,dataEndIndex:d}),B=C.length;(0,X.B)(y.domain,g,x)&&(E=(0,w.AQ)(y.domain,null,g),!f||"number"!==x&&"auto"===b||(T=(0,w.Ay)(C,m,"category")));var D=ue(x);if(!E||0===E.length){var j,L=null!==(j=y.domain)&&void 0!==j?j:D;if(m){if(E=(0,w.Ay)(C,m,x),"category"===x&&f){var G=(0,P.CG)(E);I&&G?(S=E,E=c()(0,B)):I||(E=(0,w.KC)(L,E,r).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(q(e),[t])},[]))}else if("category"===x)E=I?E.filter(function(e){return""!==e&&!o()(e)}):(0,w.KC)(L,E,r).reduce(function(e,t){return e.indexOf(t)>=0||""===t||o()(t)?e:[].concat(q(e),[t])},[]);else if("number"===x){var R=(0,w.A1)(C,a.filter(function(e){var t,r,a=i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i],n="hide"in e.props?e.props.hide:null===(r=e.type.defaultProps)||void 0===r?void 0:r.hide;return a===k&&(M||!n)}),m,n,u);R&&(E=R)}!f||"number"!==x&&"auto"===b||(T=(0,w.Ay)(C,m,"category"))}else E=f?c()(0,B):s&&s[k]&&s[k].hasStack&&"number"===x?"expand"===h?[0,1]:(0,w.Mk)(s[k].stackGroups,l,d):(0,w.vf)(C,a.filter(function(e){return(i in e.props?e.props[i]:e.type.defaultProps[i])===k&&(M||!("hide"in e.props?e.props.hide:e.type.defaultProps.hide))}),x,u,!0);if("number"===x)E=(0,O.M)(p,E,k,n,A),L&&(E=(0,w.AQ)(L,E,g));else if("category"===x&&L){var z=L;E.every(function(e){return z.indexOf(e)>=0})&&(E=z)}}return ae(ae({},t),{},ne({},k,ae(ae({},y),{},{axisType:n,domain:E,categoricalDomain:T,duplicateDomain:S,originalDomain:null!==(v=y.domain)&&void 0!==v?v:D,isCategorical:f,layout:u})))},{})}(e,{axes:f,graphicalItems:i,axisType:a,axisIdKey:h,stackGroups:s,dataStartIndex:l,dataEndIndex:d}):i&&i.length&&(v=function(e,t){var r=t.graphicalItems,a=t.Axis,n=t.axisType,i=t.axisIdKey,o=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,d=e.layout,u=e.children,h=ce(e.data,{graphicalItems:r,dataStartIndex:s,dataEndIndex:l}),f=h.length,v=(0,w._L)(d,n),y=-1;return r.reduce(function(e,t){var x,m=(void 0!==t.type.defaultProps?ae(ae({},t.type.defaultProps),t.props):t.props)[i],g=ue("number");return e[m]?e:(y++,v?x=c()(0,f):o&&o[m]&&o[m].hasStack?(x=(0,w.Mk)(o[m].stackGroups,s,l),x=(0,O.M)(u,x,m,n)):(x=(0,w.AQ)(g,(0,w.vf)(h,r.filter(function(e){var t,r,a=i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i],n="hide"in e.props?e.props.hide:null===(r=e.type.defaultProps)||void 0===r?void 0:r.hide;return a===m&&!n}),"number",d),a.defaultProps.allowDataOverflow),x=(0,O.M)(u,x,m,n)),ae(ae({},e),{},ne({},m,ae(ae({axisType:n},a.defaultProps),{},{hide:!0,orientation:p()(oe,"".concat(n,".").concat(y%2),null),domain:x,originalDomain:g,isCategorical:v,layout:d}))))},{})}(e,{Axis:n,graphicalItems:i,axisType:a,axisIdKey:h,stackGroups:s,dataStartIndex:l,dataEndIndex:d})),v}(n,ae(ae({},t),{},{graphicalItems:b,stackGroups:t.axisType===g&&M,dataStartIndex:i,dataEndIndex:s}))))},{}),T=function(e,t){var r=e.props,a=e.graphicalItems,n=e.xAxisMap,i=void 0===n?{}:n,o=e.yAxisMap,s=void 0===o?{}:o,l=r.width,d=r.height,c=r.children,u=r.margin||{},h=(0,E.BU)(c,S.v),f=(0,E.BU)(c,A.s),v=Object.keys(s).reduce(function(e,t){var r=s[t],a=r.orientation;return r.mirror||r.hide?e:ae(ae({},e),{},ne({},a,e[a]+r.width))},{left:u.left||0,right:u.right||0}),y=Object.keys(i).reduce(function(e,t){var r=i[t],a=r.orientation;return r.mirror||r.hide?e:ae(ae({},e),{},ne({},a,p()(e,"".concat(a))+r.height))},{top:u.top||0,bottom:u.bottom||0}),x=ae(ae({},y),v),m=x.bottom;h&&(x.bottom+=h.props.height||S.v.defaultProps.height),f&&t&&(x=(0,w.s0)(x,a,r,t));var g=l-x.left-x.right,I=d-x.top-x.bottom;return ae(ae({brushBottom:m},x),{},{width:Math.max(g,0),height:Math.max(I,0)})}(ae(ae({},k),{},{props:n,graphicalItems:b}),null===a||void 0===a?void 0:a.legendBBox);Object.keys(k).forEach(function(e){k[e]=G(n,k[e],T,e.replace("Map",""),t)});var C=function(e){var t=(0,P.lX)(e),r=(0,w.Rh)(t,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:f()(r,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:(0,w.Hj)(t,r)}}(k["".concat(I,"Map")]),B=function(e,t){var r=t.graphicalItems,a=t.stackGroups,n=t.offset,i=t.updateId,s=t.dataStartIndex,l=t.dataEndIndex,d=e.barSize,c=e.layout,u=e.barGap,p=e.barCategoryGap,f=e.maxBarSize,v=ve(c),y=v.numericAxisName,x=v.cateAxisName,g=function(e){return!(!e||!e.length)&&e.some(function(e){var t=(0,E.Mn)(e&&e.type);return t&&t.indexOf("Bar")>=0})}(r),I=[];return r.forEach(function(r,v){var b=ce(e.data,{graphicalItems:[r],dataStartIndex:s,dataEndIndex:l}),A=void 0!==r.type.defaultProps?ae(ae({},r.type.defaultProps),r.props):r.props,M=A.dataKey,k=A.maxBarSize,S=A["".concat(y,"Id")],T=A["".concat(x,"Id")],P=h.reduce(function(e,r){var a=t["".concat(r.axisType,"Map")],n=A["".concat(r.axisType,"Id")];a&&a[n]||"zAxis"===r.axisType||(0,m.A)(!1);var i=a[n];return ae(ae({},e),{},ne(ne({},r.axisType,i),"".concat(r.axisType,"Ticks"),(0,w.Rh)(i)))},{}),C=P[x],O=P["".concat(x,"Ticks")],B=a&&a[S]&&a[S].hasStack&&(0,w.kA)(r,a[S].stackGroups),D=(0,E.Mn)(r.type).indexOf("Bar")>=0,j=(0,w.Hj)(C,O),L=[],G=g&&(0,w.tA)({barSize:d,stackGroups:a,totalSize:ye(P,x)});if(D){var R,z,N=o()(k)?f:k,X=null!==(R=null!==(z=(0,w.Hj)(C,O,!0))&&void 0!==z?z:N)&&void 0!==R?R:0;L=(0,w.BX)({barGap:u,barCategoryGap:p,bandSize:X!==j?X:j,sizeList:G[T],maxBarSize:N}),X!==j&&(L=L.map(function(e){return ae(ae({},e),{},{position:ae(ae({},e.position),{},{offset:e.position.offset-X/2})})}))}var K=r&&r.type&&r.type.getComposedData;K&&I.push({props:ae(ae({},K(ae(ae({},P),{},{displayedData:b,props:e,dataKey:M,item:r,bandSize:j,barPosition:L,offset:n,stackedData:B,layout:c,dataStartIndex:s,dataEndIndex:l}))),{},ne(ne(ne({key:r.key||"item-".concat(v)},y,P[y]),x,P[x]),"animationId",i)),childIndex:(0,E.AW)(r,e.children),item:r})}),I}(n,ae(ae({},k),{},{dataStartIndex:i,dataEndIndex:s,updateId:l,graphicalItems:b,stackGroups:M,offset:T}));return ae(ae({formattedGraphicalItems:B,graphicalItems:b,offset:T,stackGroups:M},C),k)},ee=function(e){function r(e){var i,s,d,c,u,h;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),ne((c=this,h=[e],u=Z(u=r),d=function(e,t){if(t&&("object"===W(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(c,J()?Reflect.construct(u,h||[],Z(c).constructor):u.apply(c,h))),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ne(d,"accessibilityManager",new N),ne(d,"handleLegendBBoxUpdate",function(e){if(e){var t=d.state;d.setState(ae({legendBBox:e},z({props:d.props,dataStartIndex:t.dataStartIndex,dataEndIndex:t.dataEndIndex,updateId:t.updateId},ae(ae({},d.state),{},{legendBBox:e}))))}}),ne(d,"handleReceiveSyncEvent",function(e,t,r){if(d.props.syncId===e){if(r===d.eventEmitterSymbol&&"function"!==typeof d.props.syncMethod)return;d.applySyncEvent(t)}}),ne(d,"handleBrushChange",function(e){var t=e.startIndex,r=e.endIndex;if(t!==d.state.dataStartIndex||r!==d.state.dataEndIndex){var a=d.state.updateId;d.setState(function(){return ae({dataStartIndex:t,dataEndIndex:r},z({props:d.props,dataStartIndex:t,dataEndIndex:r,updateId:a},d.state))}),d.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}}),ne(d,"handleMouseEnter",function(e){var t=d.getMouseInfo(e);if(t){var r=ae(ae({},t),{},{isTooltipActive:!0});d.setState(r),d.triggerSyncEvent(r);var a=d.props.onMouseEnter;l()(a)&&a(r,e)}}),ne(d,"triggeredAfterMouseMove",function(e){var t=d.getMouseInfo(e),r=t?ae(ae({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};d.setState(r),d.triggerSyncEvent(r);var a=d.props.onMouseMove;l()(a)&&a(r,e)}),ne(d,"handleItemMouseEnter",function(e){d.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),ne(d,"handleItemMouseLeave",function(){d.setState(function(){return{isTooltipActive:!1}})}),ne(d,"handleMouseMove",function(e){e.persist(),d.throttleTriggeredAfterMouseMove(e)}),ne(d,"handleMouseLeave",function(e){d.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};d.setState(t),d.triggerSyncEvent(t);var r=d.props.onMouseLeave;l()(r)&&r(t,e)}),ne(d,"handleOuterEvent",function(e){var t,r=(0,E.X_)(e),a=p()(d.props,"".concat(r));r&&l()(a)&&a(null!==(t=/.*touch.*/i.test(r)?d.getMouseInfo(e.changedTouches[0]):d.getMouseInfo(e))&&void 0!==t?t:{},e)}),ne(d,"handleClick",function(e){var t=d.getMouseInfo(e);if(t){var r=ae(ae({},t),{},{isTooltipActive:!0});d.setState(r),d.triggerSyncEvent(r);var a=d.props.onClick;l()(a)&&a(r,e)}}),ne(d,"handleMouseDown",function(e){var t=d.props.onMouseDown;l()(t)&&t(d.getMouseInfo(e),e)}),ne(d,"handleMouseUp",function(e){var t=d.props.onMouseUp;l()(t)&&t(d.getMouseInfo(e),e)}),ne(d,"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&d.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),ne(d,"handleTouchStart",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&d.handleMouseDown(e.changedTouches[0])}),ne(d,"handleTouchEnd",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&d.handleMouseUp(e.changedTouches[0])}),ne(d,"handleDoubleClick",function(e){var t=d.props.onDoubleClick;l()(t)&&t(d.getMouseInfo(e),e)}),ne(d,"handleContextMenu",function(e){var t=d.props.onContextMenu;l()(t)&&t(d.getMouseInfo(e),e)}),ne(d,"triggerSyncEvent",function(e){void 0!==d.props.syncId&&j.k.emit(j.D,d.props.syncId,e,d.eventEmitterSymbol)}),ne(d,"applySyncEvent",function(e){var t=d.props,r=t.layout,a=t.syncMethod,n=e.dataStartIndex,i=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)d.setState(ae({dataStartIndex:n,dataEndIndex:i},z({props:d.props,dataStartIndex:n,dataEndIndex:i,updateId:d.state.updateId},d.state)));else if(void 0!==e.activeTooltipIndex){var o=e.chartX,s=e.chartY,l=e.activeTooltipIndex,c=d.state,u=c.offset,p=c.tooltipTicks;if(!u)return;if("function"===typeof a)l=a(p,e);else if("value"===a){l=-1;for(var h=0;h<p.length;h++)if(p[h].value===e.activeLabel){l=h;break}}var f=ae(ae({},u),{},{x:u.left,y:u.top}),v=Math.min(o,f.x+f.width),y=Math.min(s,f.y+f.height),x=p[l]&&p[l].value,m=pe(d.state,d.props.data,l),g=p[l]?{x:"horizontal"===r?p[l].coordinate:v,y:"horizontal"===r?y:p[l].coordinate}:le;d.setState(ae(ae({},e),{},{activeLabel:x,activeCoordinate:g,activePayload:m,activeTooltipIndex:l}))}else d.setState(e)}),ne(d,"renderCursor",function(e){var r,a=d.state,i=a.isTooltipActive,o=a.activeCoordinate,s=a.activePayload,l=a.offset,c=a.activeTooltipIndex,u=a.tooltipAxisBandSize,p=d.getTooltipEventType(),h=null!==(r=e.props.active)&&void 0!==r?r:i,f=d.props.layout,v=e.key||"_recharts-cursor";return n().createElement(U.b,{key:v,activeCoordinate:o,activePayload:s,activeTooltipIndex:c,chartName:t,element:e,isActive:h,layout:f,offset:l,tooltipAxisBandSize:u,tooltipEventType:p})}),ne(d,"renderPolarAxis",function(e,t,r){var n=p()(e,"type.axisType"),i=p()(d.state,"".concat(n,"Map")),o=e.type.defaultProps,s=void 0!==o?ae(ae({},o),e.props):e.props,l=i&&i[s["".concat(n,"Id")]];return(0,a.cloneElement)(e,ae(ae({},l),{},{className:(0,x.A)(n,l.className),key:e.key||"".concat(t,"-").concat(r),ticks:(0,w.Rh)(l,!0)}))}),ne(d,"renderPolarGrid",function(e){var t=e.props,r=t.radialLines,n=t.polarAngles,i=t.polarRadius,o=d.state,s=o.angleAxisMap,l=(0,P.lX)(o.radiusAxisMap),c=(0,P.lX)(s),u=c.cx,p=c.cy,h=c.innerRadius,f=c.outerRadius;return(0,a.cloneElement)(e,{polarAngles:Array.isArray(n)?n:(0,w.Rh)(c,!0).map(function(e){return e.coordinate}),polarRadius:Array.isArray(i)?i:(0,w.Rh)(l,!0).map(function(e){return e.coordinate}),cx:u,cy:p,innerRadius:h,outerRadius:f,key:e.key||"polar-grid",radialLines:r})}),ne(d,"renderLegend",function(){var e=d.props,t=e.width,r=e.height,n=d.props.margin||{},i=(0,C.g)({children:e.children,formattedGraphicalItems:d.state.formattedGraphicalItems,legendWidth:t-(n.left||0)-(n.right||0),legendContent:v});if(!i)return null;var o=i.item,s=V(i,Y);return(0,a.cloneElement)(o,ae(ae({},s),{},{chartWidth:t,chartHeight:r,margin:n,onBBoxUpdate:d.handleLegendBBoxUpdate}))}),ne(d,"renderTooltip",function(){var e,t=d.props,r=t.accessibilityLayer,n=(0,E.BU)(t.children,b.m);if(!n)return null;var i=d.state,o=i.activeCoordinate,s=i.activePayload,l=i.activeLabel,c=i.offset,u=null!==(e=n.props.active)&&void 0!==e?e:i.isTooltipActive;return(0,a.cloneElement)(n,{viewBox:ae(ae({},c),{},{x:c.left,y:c.top}),active:u,label:l,payload:u?s:[],coordinate:o,accessibilityLayer:r})}),ne(d,"renderBrush",function(e){var t=d.props,r=t.margin,n=t.data,i=d.state,o=i.offset,s=i.dataStartIndex,l=i.dataEndIndex,c=i.updateId;return(0,a.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:(0,w.HQ)(d.handleBrushChange,e.props.onChange),data:n,x:(0,P.Et)(e.props.x)?e.props.x:o.left,y:(0,P.Et)(e.props.y)?e.props.y:o.top+o.height+o.brushBottom-(r.bottom||0),width:(0,P.Et)(e.props.width)?e.props.width:o.width,startIndex:s,endIndex:l,updateId:"brush-".concat(c)})}),ne(d,"renderReferenceElement",function(e,t,r){if(!e)return null;var n=d.clipPathId,i=d.state,o=i.xAxisMap,s=i.yAxisMap,l=i.offset,c=e.type.defaultProps||{},u=e.props,p=u.xAxisId,h=void 0===p?c.xAxisId:p,f=u.yAxisId,v=void 0===f?c.yAxisId:f;return(0,a.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:o[h],yAxis:s[v],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:n})}),ne(d,"renderActivePoints",function(e){var t=e.item,a=e.activePoint,n=e.basePoint,i=e.childIndex,o=e.isRange,s=[],l=t.props.key,d=void 0!==t.item.type.defaultProps?ae(ae({},t.item.type.defaultProps),t.item.props):t.item.props,c=d.activeDot,u=ae(ae({index:i,dataKey:d.dataKey,cx:a.x,cy:a.y,r:4,fill:(0,w.Ps)(t.item),strokeWidth:2,stroke:"#fff",payload:a.payload,value:a.value},(0,E.J9)(c,!1)),(0,L._U)(c));return s.push(r.renderActiveDot(c,u,"".concat(l,"-activePoint-").concat(i))),n?s.push(r.renderActiveDot(c,ae(ae({},u),{},{cx:n.x,cy:n.y}),"".concat(l,"-basePoint-").concat(i))):o&&s.push(null),s}),ne(d,"renderGraphicChild",function(e,t,r){var n=d.filterFormatItem(e,t,r);if(!n)return null;var i=d.getTooltipEventType(),s=d.state,l=s.isTooltipActive,c=s.tooltipAxis,u=s.activeTooltipIndex,p=s.activeLabel,h=(0,E.BU)(d.props.children,b.m),f=n.props,v=f.points,y=f.isRange,x=f.baseLine,m=void 0!==n.item.type.defaultProps?ae(ae({},n.item.type.defaultProps),n.item.props):n.item.props,g=m.activeBar,I=m.activeShape,A=Boolean(!m.hide&&l&&h&&(m.activeDot||g||I)),M={};"axis"!==i&&h&&"click"===h.props.trigger?M={onClick:(0,w.HQ)(d.handleItemMouseEnter,e.props.onClick)}:"axis"!==i&&(M={onMouseLeave:(0,w.HQ)(d.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:(0,w.HQ)(d.handleItemMouseEnter,e.props.onMouseEnter)});var k=(0,a.cloneElement)(e,ae(ae({},n.props),M));if(A){if(!(u>=0)){var S,T=(null!==(S=d.getItemByXY(d.state.activeCoordinate))&&void 0!==S?S:{graphicalItem:k}).graphicalItem,C=T.item,O=void 0===C?e:C,B=T.childIndex,D=ae(ae(ae({},n.props),M),{},{activeIndex:B});return[(0,a.cloneElement)(O,D),null,null]}var j,L;if(c.dataKey&&!c.allowDuplicatedCategory){var G="function"===typeof c.dataKey?function(e){return"function"===typeof c.dataKey?c.dataKey(e.payload):null}:"payload.".concat(c.dataKey.toString());j=(0,P.eP)(v,G,p),L=y&&x&&(0,P.eP)(x,G,p)}else j=null===v||void 0===v?void 0:v[u],L=y&&x&&x[u];if(I||g){var R=void 0!==e.props.activeIndex?e.props.activeIndex:u;return[(0,a.cloneElement)(e,ae(ae(ae({},n.props),M),{},{activeIndex:R})),null,null]}if(!o()(j))return[k].concat(q(d.renderActivePoints({item:n,activePoint:j,basePoint:L,childIndex:u,isRange:y})))}return y?[k,null,null]:[k,null]}),ne(d,"renderCustomized",function(e,t,r){return(0,a.cloneElement)(e,ae(ae({key:"recharts-customized-".concat(r)},d.props),d.state))}),ne(d,"renderMap",{CartesianGrid:{handler:de,once:!0},ReferenceArea:{handler:d.renderReferenceElement},ReferenceLine:{handler:de},ReferenceDot:{handler:d.renderReferenceElement},XAxis:{handler:de},YAxis:{handler:de},Brush:{handler:d.renderBrush,once:!0},Bar:{handler:d.renderGraphicChild},Line:{handler:d.renderGraphicChild},Area:{handler:d.renderGraphicChild},Radar:{handler:d.renderGraphicChild},RadialBar:{handler:d.renderGraphicChild},Scatter:{handler:d.renderGraphicChild},Pie:{handler:d.renderGraphicChild},Funnel:{handler:d.renderGraphicChild},Tooltip:{handler:d.renderCursor,once:!0},PolarGrid:{handler:d.renderPolarGrid,once:!0},PolarAngleAxis:{handler:d.renderPolarAxis},PolarRadiusAxis:{handler:d.renderPolarAxis},Customized:{handler:d.renderCustomized}}),d.clipPathId="".concat(null!==(i=e.id)&&void 0!==i?i:(0,P.NF)("recharts"),"-clip"),d.throttleTriggeredAfterMouseMove=y()(d.triggeredAfterMouseMove,null!==(s=e.throttleDelay)&&void 0!==s?s:1e3/60),d.state={},d}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$(e,t)}(r,e),i=r,d=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.data,r=e.height,a=e.layout,n=(0,E.BU)(e.children,b.m);if(n){var i=n.props.defaultIndex;if(!("number"!==typeof i||i<0||i>this.state.tooltipTicks.length-1)){var o=this.state.tooltipTicks[i]&&this.state.tooltipTicks[i].value,s=pe(this.state,t,i,o),l=this.state.tooltipTicks[i].coordinate,d=(this.state.offset.top+r)/2,c="horizontal"===a?{x:l,y:d}:{y:l,x:d},u=this.state.formattedGraphicalItems.find(function(e){return"Scatter"===e.item.type.name});u&&(c=ae(ae({},c),u.props.points[i].tooltipPosition),s=u.props.points[i].tooltipPayload),this.setState({activeTooltipIndex:i,isTooltipActive:!0,activeLabel:o,activePayload:s,activeCoordinate:c}),this.renderCursor(n),this.accessibilityManager.setIndex(i)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(a=this.props.margin.top)&&void 0!==a?a:0}}),null):null;var r,a}},{key:"componentDidUpdate",value:function(e){(0,E.OV)([(0,E.BU)(e.children,b.m)],[(0,E.BU)(this.props.children,b.m)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=(0,E.BU)(this.props.children,b.m);if(e&&"boolean"===typeof e.props.shared){var t=e.props.shared?"axis":"item";return u.indexOf(t)>=0?t:s}return s}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=this.container,r=t.getBoundingClientRect(),a=(0,T.A3)(r),n={chartX:Math.round(e.pageX-a.left),chartY:Math.round(e.pageY-a.top)},i=this.inRange(n.chartX,n.chartY,r.width/t.offsetWidth||1);if(!i)return null;var o=this.state,s=o.xAxisMap,l=o.yAxisMap,d=this.getTooltipEventType(),c=he(this.state,this.props.data,this.props.layout,i);if("axis"!==d&&s&&l){var u=(0,P.lX)(s).scale,p=(0,P.lX)(l).scale,h=u&&u.invert?u.invert(n.chartX):null,f=p&&p.invert?p.invert(n.chartY):null;return ae(ae({},n),{},{xValue:h,yValue:f},c)}return c?ae(ae({},n),c):null}},{key:"inRange",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=this.props.layout,n=e/r,i=t/r;if("horizontal"===a||"vertical"===a){var o=this.state.offset;return n>=o.left&&n<=o.left+o.width&&i>=o.top&&i<=o.top+o.height?{x:n,y:i}:null}var s=this.state,l=s.angleAxisMap;if(l&&s.radiusAxisMap){var d=(0,P.lX)(l);return(0,B.yy)({x:n,y:i},d)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),r=(0,E.BU)(e,b.m),a={};return r&&"axis"===t&&(a="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}),ae(ae({},(0,L._U)(this.props,this.handleOuterEvent)),a)}},{key:"addListener",value:function(){j.k.on(j.D,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){j.k.removeListener(j.D,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,r){for(var a=this.state.formattedGraphicalItems,n=0,i=a.length;n<i;n++){var o=a[n];if(o.item===e||o.props.key===e.key||t===(0,E.Mn)(o.item.type)&&r===o.childIndex)return o}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,r=t.left,a=t.top,i=t.height,o=t.width;return n().createElement("defs",null,n().createElement("clipPath",{id:e},n().createElement("rect",{x:r,y:a,height:i,width:o})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce(function(e,t){var r=F(t,2),a=r[0],n=r[1];return ae(ae({},e),{},ne({},a,n.scale))},{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce(function(e,t){var r=F(t,2),a=r[0],n=r[1];return ae(ae({},e),{},ne({},a,n.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(e){var t;return null===(t=this.state.xAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getYScaleByAxisId",value:function(e){var t;return null===(t=this.state.yAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getItemByXY",value:function(e){var t=this.state,r=t.formattedGraphicalItems,a=t.activeItem;if(r&&r.length)for(var n=0,i=r.length;n<i;n++){var o=r[n],s=o.props,l=o.item,d=void 0!==l.type.defaultProps?ae(ae({},l.type.defaultProps),l.props):l.props,c=(0,E.Mn)(l.type);if("Bar"===c){var u=(s.data||[]).find(function(t){return(0,k.J)(e,t)});if(u)return{graphicalItem:o,payload:u}}else if("RadialBar"===c){var p=(s.data||[]).find(function(t){return(0,B.yy)(e,t)});if(p)return{graphicalItem:o,payload:p}}else if((0,K.NE)(o,a)||(0,K.nZ)(o,a)||(0,K.xQ)(o,a)){var h=(0,K.GG)({graphicalItem:o,activeTooltipItem:a,itemData:d.data}),f=void 0===d.activeIndex?h:d.activeIndex;return{graphicalItem:ae(ae({},o),{},{childIndex:f}),payload:(0,K.xQ)(o,a)?d.data[h]:o.props.data[h]}}}return null}},{key:"render",value:function(){var e=this;if(!(0,E.Me)(this))return null;var t,r,a=this.props,i=a.children,o=a.className,s=a.width,l=a.height,d=a.style,c=a.compact,u=a.title,p=a.desc,h=V(a,_),f=(0,E.J9)(h,!1);if(c)return n().createElement(H.DR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},n().createElement(g.u,Q({},f,{width:s,height:l,title:u,desc:p}),this.renderClipPath(),(0,E.ee)(i,this.renderMap)));this.props.accessibilityLayer&&(f.tabIndex=null!==(t=this.props.tabIndex)&&void 0!==t?t:0,f.role=null!==(r=this.props.role)&&void 0!==r?r:"application",f.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},f.onFocus=function(){e.accessibilityManager.focus()});var v=this.parseEventsOfWrapper();return n().createElement(H.DR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},n().createElement("div",Q({className:(0,x.A)("recharts-wrapper",o),style:ae({position:"relative",cursor:"default",width:s,height:l},d)},v,{ref:function(t){e.container=t}}),n().createElement(g.u,Q({},f,{width:s,height:l,title:u,desc:p,style:se}),this.renderClipPath(),(0,E.ee)(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],d&&function(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,ie(a.key),a)}}(i.prototype,d),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,d}(a.Component);ne(ee,"displayName",t),ne(ee,"defaultProps",ae({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},R)),ne(ee,"getDerivedStateFromProps",function(e,t){var r=e.dataKey,a=e.data,n=e.children,i=e.width,s=e.height,l=e.layout,d=e.stackOffset,c=e.margin,u=t.dataStartIndex,p=t.dataEndIndex;if(void 0===t.updateId){var h=fe(e);return ae(ae(ae({},h),{},{updateId:0},z(ae(ae({props:e},h),{},{updateId:0}),t)),{},{prevDataKey:r,prevData:a,prevWidth:i,prevHeight:s,prevLayout:l,prevStackOffset:d,prevMargin:c,prevChildren:n})}if(r!==t.prevDataKey||a!==t.prevData||i!==t.prevWidth||s!==t.prevHeight||l!==t.prevLayout||d!==t.prevStackOffset||!(0,D.b)(c,t.prevMargin)){var f=fe(e),v={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},y=ae(ae({},he(t,a,l)),{},{updateId:t.updateId+1}),x=ae(ae(ae({},f),v),y);return ae(ae(ae({},x),z(ae({props:e},x),t)),{},{prevDataKey:r,prevData:a,prevWidth:i,prevHeight:s,prevLayout:l,prevStackOffset:d,prevMargin:c,prevChildren:n})}if(!(0,E.OV)(n,t.prevChildren)){var m,g,I,b,A=(0,E.BU)(n,S.v),M=A&&null!==(m=null===(g=A.props)||void 0===g?void 0:g.startIndex)&&void 0!==m?m:u,k=A&&null!==(I=null===(b=A.props)||void 0===b?void 0:b.endIndex)&&void 0!==I?I:p,T=M!==u||k!==p,P=o()(a)||T?t.updateId+1:t.updateId;return ae(ae({updateId:P},z(ae(ae({props:e},t),{},{updateId:P,dataStartIndex:M,dataEndIndex:k}),t)),{},{prevChildren:n,dataStartIndex:M,dataEndIndex:k})}return null}),ne(ee,"renderActiveDot",function(e,t,r){var i;return i=(0,a.isValidElement)(e)?(0,a.cloneElement)(e,t):l()(e)?e(t):n().createElement(M.c,t),n().createElement(I.W,{className:"recharts-active-dot",key:r},i)});var te=(0,a.forwardRef)(function(e,t){return n().createElement(ee,Q({},e,{ref:t}))});return te.displayName=ee.displayName,te}({chartName:"LineChart",GraphicalChild:xe.N,axisComponents:[{axisType:"xAxis",AxisComp:me.W},{axisType:"yAxis",AxisComp:ge.h}],formatAxisMap:Ie.pr})}}]);