=1e7/2&&++w;do s=0,(c=e(k,y,j,v))<0?(m=y[0],j!=v&&(m=1e7*m+(y[1]||0)),(s=m/w|0)>1?(s>=1e7&&(s=1e7-1),p=(f=t(k,s)).length,v=y.length,1==(c=e(f,y,p,v))&&(s--,r(f,j16)throw Error(oM+o$(t));if(!t.s)return new l(om);for(null==e?(ok=!1,a=s):a=e,i=new l(.03125);t.abs().gte(.1);)t=t.times(i),u+=5;for(a+=Math.log(oN(2,u))/Math.LN10*2+5|0,r=n=o=new l(om),l.precision=a;;){if(n=oX(n.times(t),a),r=r.times(++c),oU((i=o.plus(oz(n,r,a))).d).slice(0,a)===oU(o.d).slice(0,a)){for(;u--;)o=oX(o.times(o),a);return l.precision=s,null==e?(ok=!0,oX(o,s)):o}o=i}}function o$(t){for(var e=7*t.e,r=t.d[0];r>=10;r/=10)e++;return e}function oW(t,e,r){if(e>t.LN10.sd())throw ok=!0,r&&(t.precision=r),Error(o_+"LN10 precision limit exceeded");return oX(new t(t.LN10),e)}function oq(t){for(var e="";t--;)e+="0";return e}function oG(t,e){var r,n,o,i,a,c,u,l,s,f=1,p=t,h=p.d,d=p.constructor,y=d.precision;if(p.s<1)throw Error(o_+(p.s?"NaN":"-Infinity"));if(p.eq(om))return new d(0);if(null==e?(ok=!1,l=y):l=e,p.eq(10))return null==e&&(ok=!0),oW(d,l);if(l+=10,d.precision=l,n=(r=oU(h)).charAt(0),!(15e14>Math.abs(i=o$(p))))return u=oW(d,l+2,y).times(i+""),p=oG(new d(n+"."+r.slice(1)),l-10).plus(u),d.precision=y,null==e?(ok=!0,oX(p,y)):p;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=oU((p=p.times(t)).d)).charAt(0),f++;for(i=o$(p),n>1?(p=new d("0."+r),i++):p=new d(n+"."+r.slice(1)),c=a=p=oz(p.minus(om),p.plus(om),l),s=oX(p.times(p),l),o=3;;){if(a=oX(a.times(s),l),oU((u=c.plus(oz(a,new d(o),l))).d).slice(0,l)===oU(c.d).slice(0,l))return c=c.times(2),0!==i&&(c=c.plus(oW(d,l+2,y).times(i+""))),c=oz(c,new d(f),l),d.precision=y,null==e?(ok=!0,oX(c,y)):c;c=u,o+=2}}function oV(t,e){var r,n,o;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(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(n,o)){if(o-=n,r=r-n-1,t.e=oC(r/7),t.d=[],n=(r+1)%7,r<0&&(n+=7),noI||t.e<-oI))throw Error(oM+r)}else t.s=0,t.e=0,t.d=[0];return t}function oX(t,e,r){var n,o,i,a,c,u,l,s,f=t.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((n=e-a)<0)n+=7,o=e,l=f[s=0];else{if((s=Math.ceil((n+1)/7))>=(i=f.length))return t;for(a=1,l=i=f[s];i>=10;i/=10)a++;n%=7,o=n-7+a}if(void 0!==r&&(c=l/(i=oN(10,a-o-1))%10|0,u=e<0||void 0!==f[s+1]||l%i,u=r<4?(c||u)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||u||6==r&&(n>0?o>0?l/oN(10,a-o):0:f[s-1])%10&1||r==(t.s<0?8:7))),e<1||!f[0])return u?(i=o$(t),f.length=1,e=e-i-1,f[0]=oN(10,(7-e%7)%7),t.e=oC(-e/7)||0):(f.length=1,f[0]=t.e=t.s=0),t;if(0==n?(f.length=s,i=1,s--):(f.length=s+1,i=oN(10,7-n),f[s]=o>0?(l/oN(10,a-o)%oN(10,o)|0)*i:0),u)for(;;){if(0==s){1e7==(f[0]+=i)&&(f[0]=1,++t.e);break}if(f[s]+=i,1e7!=f[s])break;f[s--]=0,i=1}for(n=f.length;0===f[--n];)f.pop();if(ok&&(t.e>oI||t.e<-oI))throw Error(oM+o$(t));return t}function oH(t,e){var r,n,o,i,a,c,u,l,s,f,p=t.constructor,h=p.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new p(t),ok?oX(e,h):e;if(u=t.d,f=e.d,n=e.e,l=t.e,u=u.slice(),a=l-n){for((s=a<0)?(r=u,a=-a,c=f.length):(r=f,n=l,c=u.length),a>(o=Math.max(Math.ceil(h/7),c)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((s=(o=u.length)<(c=f.length))&&(c=o),o=0;o0;--o)u[c++]=0;for(o=f.length;o>a;){if(u[--o]0?i=i.charAt(0)+"."+i.slice(1)+oq(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+oq(-o-1)+i,r&&(n=r-a)>0&&(i+=oq(n))):o>=a?(i+=oq(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+oq(n))):((n=o+1)0&&(o+1===a&&(i+="."),i+=oq(n))),t.s<0?"-"+i:i}function oY(t,e){if(t.length>e)return t.length=e,!0}function oK(t){if(!t||"object"!=typeof t)throw Error(o_+"Object expected");var e,r,n,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e=o[e+1]&&n<=o[e+2])this[r]=n;else throw Error(oT+r+": "+n)}if(void 0!==(n=t[r="LN10"])){if(n==Math.LN10)this[r]=new this(n);else throw Error(oT+r+": "+n)}return this}var ov=function t(e){var r,n,o;function i(t){if(!(this instanceof i))return new i(t);if(this.constructor=i,t instanceof i){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(oT+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 oV(this,t.toString())}if("string"!=typeof t)throw Error(oT+t);if(45===t.charCodeAt(0)?(t=t.slice(1),this.s=-1):this.s=1,oD.test(t))oV(this,t);else throw Error(oT+t)}if(i.prototype=oR,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=t,i.config=i.set=oK,void 0===e&&(e={}),e)for(r=0,o=["precision","rounding","toExpNeg","toExpPos","LN10"];rt.length)&&(e=t.length);for(var r=0,n=Array(e);r=e?r.apply(void 0,o):t(e-a,o3(function(){for(var t=arguments.length,e=Array(t),n=0;nt.length)&&(e=t.length);for(var r=0,n=Array(e);rn&&(o=n,i=r),[o,i]}function ic(t,e,r){if(t.lte(0))return new oJ(0);var n=it.getDigitCount(t.toNumber()),o=new oJ(10).pow(n),i=t.div(o),a=1!==n?.05:.1,c=new oJ(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?c:new oJ(Math.ceil(c))}function iu(t,e,r){var n=1,o=new oJ(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new oJ(10).pow(it.getDigitCount(t)-1),o=new oJ(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new oJ(Math.floor(t)))}else 0===t?o=new oJ(Math.floor((e-1)/2)):r||(o=new oJ(Math.floor(t)));var a=Math.floor((e-1)/2);return o4(o7(function(t){return o.add(new oJ(t-a).mul(n)).toNumber()}),o5)(0,e)}var il=o9(function(t){var e=ir(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),c=ir(ia([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(ie(o5(0,o-1).map(function(){return 1/0}))):[].concat(ie(o5(0,o-1).map(function(){return-1/0})),[l]);return r>n?o8(s):s}if(u===l)return iu(u,o,i);var f=function t(e,r,n,o){var i,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((r-e)/(n-1)))return{step:new oJ(0),tickMin:new oJ(0),tickMax:new oJ(0)};var c=ic(new oJ(r).sub(e).div(n-1),o,a),u=Math.ceil((i=e<=0&&r>=0?new oJ(0):(i=new oJ(e).add(r).div(2)).sub(new oJ(i).mod(c))).sub(e).div(c).toNumber()),l=Math.ceil(new oJ(r).sub(i).div(c).toNumber()),s=u+l+1;return s>n?t(e,r,n,o,a+1):(s0?l+(n-s):l,u=r>0?u:u+(n-s)),{step:c,tickMin:i.sub(new oJ(u).mul(c)),tickMax:i.add(new oJ(l).mul(c))})}(u,l,a,i),p=f.step,h=f.tickMin,d=f.tickMax,y=it.rangeStep(h,d.add(new oJ(.1).mul(p)),p);return r>n?o8(y):y});o9(function(t){var e=ir(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),c=ir(ia([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0)return[r,n];if(u===l)return iu(u,o,i);var s=ic(new oJ(l).sub(u).div(a-1),i,0),f=o4(o7(function(t){return new oJ(u).add(new oJ(t).mul(s)).toNumber()}),o5)(0,a).filter(function(t){return t>=u&&t<=l});return r>n?o8(f):f});var is=o9(function(t,e){var r=ir(t,2),n=r[0],o=r[1],i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=ir(ia([n,o]),2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[n,o];if(c===u)return[c];var l=ic(new oJ(u).sub(c).div(Math.max(e,2)-1),i,0),s=[].concat(ie(it.rangeStep(new oJ(c),new oJ(u).sub(new oJ(.99).mul(l)),l)),[u]);return n>o?o8(s):s}),ip=["children","className"];function ih(){return(ih=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,ip),i=(0,f.Z)("recharts-layer",n);return a().createElement("g",ih({className:i},tl(o,!0),{ref:e}),r)}),iy=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function iv(){return(iv=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,iy)),f=i.map(function(t){var i,f,p=c(t,o),h=p.x,d=p.y,y=p.value,v=p.errorVal;if(!v)return null;var m=[];if(Array.isArray(v)){var g=function(t){if(Array.isArray(t))return t}(v)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{for(i=(r=r.call(t)).next;!(u=(n=i.call(r)).done)&&(c.push(n.value),2!==c.length);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(v,2)||function(t,e){if(t){if("string"==typeof t)return im(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 im(t,2)}}(v,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=g[0],f=g[1]}else i=f=v;if("vertical"===r){var b=u.scale,x=d+e,O=x+n,w=x-n,j=b(y-i),S=b(y+f);m.push({x1:S,y1:O,x2:S,y2:w}),m.push({x1:j,y1:x,x2:S,y2:x}),m.push({x1:j,y1:O,x2:j,y2:w})}else if("horizontal"===r){var A=l.scale,E=h+e,P=E-n,k=E+n,_=A(y-i),T=A(y+f);m.push({x1:P,y1:T,x2:k,y2:T}),m.push({x1:E,y1:_,x2:E,y2:T}),m.push({x1:P,y1:_,x2:k,y2:_})}return a().createElement(id,iv({className:"recharts-errorBar",key:"bar-".concat(m.map(function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))},s),m.map(function(t){return a().createElement("line",iv({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))}))});return a().createElement(id,{className:"recharts-errorBars"},f)}ig.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},ig.displayName="ErrorBar";var ib=["children","width","height","viewBox","className","style","title","desc"];function ix(){return(ix=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,ib),p=o||{width:r,height:n,x:0,y:0},h=(0,f.Z)("recharts-surface",i);return a().createElement("svg",ix({},tl(s,!0,"svg"),{className:h,width:r,height:n,style:c,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height)}),a().createElement("title",null,u),a().createElement("desc",null,l),e)}let iw=Math.cos,ij=Math.sin,iS=Math.sqrt,iA=Math.PI,iE=2*iA,iP={draw(t,e){let r=iS(e/iA);t.moveTo(r,0),t.arc(0,0,r,0,iE)}},ik=iS(1/3),i_=2*ik,iT=ij(iA/10)/ij(7*iA/10),iM=ij(iE/10)*iT,iC=-iw(iE/10)*iT,iN=iS(3),iD=iS(3)/2,iI=1/iS(12),iR=(iI/2+1)*3,iB=Math.PI,iL=2*iB,iU=iL-1e-6;function iz(t){this._+=t[0];for(let e=1,r=t.length;e=0))throw Error(`invalid digits: ${t}`);if(e>15)return iz;let r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e1e-6){if(Math.abs(s*c-u*l)>1e-6&&o){let p=r-i,h=n-a,d=c*c+u*u,y=Math.sqrt(d),v=Math.sqrt(f),m=o*Math.tan((iB-Math.acos((d+f-(p*p+h*h))/(2*y*v)))/2),g=m/v,b=m/y;Math.abs(g-1)>1e-6&&this._append`L${t+g*l},${e+g*s}`,this._append`A${o},${o},0,0,${+(s*p>l*h)},${this._x1=t+b*c},${this._y1=e+b*u}`}else this._append`L${this._x1=t},${this._y1=e}`}}arc(t,e,r,n,o,i){if(t=+t,e=+e,i=!!i,(r=+r)<0)throw Error(`negative radius: ${r}`);let a=r*Math.cos(n),c=r*Math.sin(n),u=t+a,l=e+c,s=1^i,f=i?n-o:o-n;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-l)>1e-6)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%iL+iL),f>iU?this._append`A${r},${r},0,1,${s},${t-a},${e-c}A${r},${r},0,1,${s},${this._x1=u},${this._y1=l}`:f>1e-6&&this._append`A${r},${r},0,${+(f>=iB)},${s},${this._x1=t+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function i$(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 iF(e)}function iW(t){return(iW="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)}iF.prototype,iS(3),iS(3);var iq=["type","size","sizeType"];function iG(){return(iG=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,iq)),{},{type:n,size:i,sizeType:u}),s=l.className,p=l.cx,h=l.cy,d=tl(l,!0);return p===+p&&h===+h&&i===+i?a().createElement("path",iG({},d,{className:(0,f.Z)("recharts-symbols",s),transform:"translate(".concat(p,", ").concat(h,")"),d:(e=iH["symbol".concat(oA()(n))]||iP,(function(t,e){let r=null,n=i$(o);function o(){let o;if(r||(r=o=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t="function"==typeof t?t:oi(t||iP),e="function"==typeof e?e:oi(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:oi(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:oi(+t),o):e},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o})().type(e).size(iY(i,u,n))())})):null};function iJ(t){return(iJ="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 iQ(){return(iQ=Object.assign?Object.assign.bind():function(t){for(var e=1;e');var y=e.inactive?c:e.color;return a().createElement("li",iQ({className:h,style:l,key:"legend-item-".concat(r)},H(t.props,e,r)),a().createElement(iO,{width:n,height:n,viewBox:u,style:s},t.renderIcon(e)),a().createElement("span",{className:"recharts-legend-item-text",style:{color:y}},p?p(d,e,r):d))})}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,n=t.align;return e&&e.length?a().createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===r?n:"left"}},this.renderItems()):null}}],function(t,e){for(var r=0;r1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e))}else(-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?ar({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,c=n.margin,u=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),ar(ar({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,n=e.width,o=e.height,i=e.wrapperStyle,c=e.payloadUniqBy,u=e.payload,l=ar(ar({position:"absolute",width:n||"auto",height:o||"auto"},this.getDefaultPosition(i)),i);return a().createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,e){if(a().isValidElement(t))return a().cloneElement(t,e);if("function"==typeof t)return a().createElement(t,e);e.ref;var r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,at);return a().createElement(i5,r)}(r,ar(ar({},this.props),{},{payload:i8(u,c,al)})))}}],n=[{key:"getWithHeight",value:function(t,e){var r=t.props.layout;return"vertical"===r&&A(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],r&&an(i.prototype,r),n&&an(i,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(i.PureComponent);function af(t){return(af="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 ap(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 ah(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&1e-6>=Math.abs(Math.abs(o.range[1]-o.range[0])-360))for(var c=o.range,u=0;u