UNPKG

dash-core-components

Version:

Core component suite for Dash

2 lines 128 kB
/*! For license information please see async-slider.js.LICENSE.txt */ "use strict";(self.webpackChunkdash_core_components=self.webpackChunkdash_core_components||[]).push([[737],{8715:function(e,t,n){n.d(t,{A:function(){return l}});var r=n(2173),o=n(81069),i=n(64279),a=n(5564),s=n(51647),u=(0,r.A)((function e(t,n,r){if(0===t.length)return n;var u=t[0];if(t.length>1){var l=!(0,s.A)(r)&&(0,o.A)(u,r)&&"object"==typeof r[u]?r[u]:(0,i.A)(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,l)}return function(e,t,n){if((0,i.A)(e)&&(0,a.A)(n)){var r=[].concat(n);return r[e]=t,r}var o={};for(var s in n)o[s]=n[s];return o[e]=t,o}(u,n,r)})),l=(0,r.A)((function(e,t,n){return u([e],t,n)}))},11450:function(e,t,n){n.d(t,{MA:function(){return E},Lt:function(){return B},Gm:function(){return k},JK:function(){return C}});var r=(0,n(92254).A)((function(e,t){var n={};for(var r in t)e(t[r],r,t)&&(n[r]=t[r]);return n})),o=n(51647),i=n(4376);function a(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var s,u=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(e){if(!(t=u.exec(e)))throw new Error("invalid format: "+e);var t;return new c({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function c(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function f(e,t){var n=a(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}l.prototype=c.prototype,c.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};var p={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return f(100*e,t)},r:f,s:function(e,t){var n=a(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(s=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=r.length;return i===u?r:i>u?r+new Array(i-u+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+a(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function d(e){return e}var h,v,m=Array.prototype.map,g=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}h=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?d:(t=m.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],u=0;o>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),i.push(e.substring(o-=s,o+s)),!((u+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",u=void 0===e.decimal?".":e.decimal+"",c=void 0===e.numerals?d:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(m.call(e.numerals,String)),f=void 0===e.percent?"%":e.percent+"",h=void 0===e.minus?"-":e.minus+"",v=void 0===e.nan?"NaN":e.nan+"";function y(e){var t=(e=l(e)).fill,n=e.align,a=e.sign,d=e.symbol,m=e.zero,y=e.width,A=e.comma,b=e.precision,w=e.trim,E=e.type;"n"===E?(A=!0,E="g"):p[E]||(void 0===b&&(b=12),w=!0,E="g"),(m||"0"===t&&"="===n)&&(m=!0,t="0",n="=");var C="$"===d?o:"#"===d&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",x="$"===d?i:/[%p]/.test(E)?f:"",k=p[E],B=/[defgprs%]/.test(E);function M(e){var o,i,l,f=C,p=x;if("c"===E)p=k(e)+p,e="";else{var d=(e=+e)<0||1/e<0;if(e=isNaN(e)?v:k(Math.abs(e),b),w&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),d&&0==+e&&"+"!==a&&(d=!1),f=(d?"("===a?a:h:"-"===a||"("===a?"":a)+f,p=("s"===E?g[8+s/3]:"")+p+(d&&"("===a?")":""),B)for(o=-1,i=e.length;++o<i;)if(48>(l=e.charCodeAt(o))||l>57){p=(46===l?u+e.slice(o+1):e.slice(o))+p,e=e.slice(0,o);break}}A&&!m&&(e=r(e,1/0));var M=f.length+e.length+p.length,O=M<y?new Array(y-M+1).join(t):"";switch(A&&m&&(e=r(O+e,O.length?y-p.length:1/0),O=""),n){case"<":e=f+e+p+O;break;case"=":e=f+O+e+p;break;case"^":e=O.slice(0,M=O.length>>1)+f+e+p+O.slice(M);break;default:e=O+f+e+p}return c(e)}return b=void 0===b?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),M.toString=function(){return e+""},M}return{format:y,formatPrefix:function(e,t){var n,r=y(((e=l(e)).type="f",e)),o=3*Math.max(-8,Math.min(8,Math.floor((n=t,((n=a(Math.abs(n)))?n[1]:NaN)/3)))),i=Math.pow(10,-o),s=g[8+o/3];return function(e){return r(i*e)+s}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),h.format,v=h.formatPrefix;var A=e=>String(e).split(".").length>1?String(e).split(".")[1].length:0,b=(e,t)=>A(t)<1?((e,t)=>{return t<10?e:parseInt((n=e/t,parseInt(n.toString().match(/^-?\d+(?:\.\d{0,0})?/)[0],10)*t).toFixed(A(t)),10);var n})(e,t):((e,t)=>t<10?parseFloat(e.toFixed(A(t))):parseFloat(((e/t).toFixed(0)*t).toFixed(A(t))))(e,t),w=e=>Math.floor(Math.log10(e)),E=(e,t,n)=>{if(n)return n;var r=t>e?t-e:e-t,o=(Math.abs(r)+Number.EPSILON)/100,i=Math.floor(Math.log10(o));return[Number(Math.pow(10,i)),2*Math.pow(10,i),5*Math.pow(10,i)].sort(((e,t)=>Math.abs(e-o)-Math.abs(t-o)))[0]},C=(e,t,n)=>{var r={min_mark:e,max_mark:t};if((0,o.A)(n))return r;var i=Object.keys(n).map(Number);return(0,o.A)(e)&&(r.min_mark=Math.min(...i)),(0,o.A)(t)&&(r.max_mark=Math.max(...i)),r},x=(e,t,n)=>{var r=Math.log10(Math.abs(e));if(0===e||r>-3&&r<3)return String(e);var o=(Math.abs(n)+Math.abs(t))/2,i=v(",.0",o);return String(i(e))},k=e=>{var t=e.min,n=e.max,o=e.marks,a=e.step;if(null!==o){var s=C(t,n,o),u=s.min_mark,l=s.max_mark,c=o&&!1===(0,i.A)(o)?((e,t,n)=>r(((n,r)=>r>=e&&r<=t),n))(u,l,o):o;return c&&!1===(0,i.A)(c)?c:((e,t,n)=>{var r,o,i=[],a=(r=n?[e,n,n]:((e,t,n)=>{var r,o=2+(t/n<=10?4:6),i=e/n,a=t/n-i,s=Math.max(Math.round(a/4),1),u=(r=s)<10?[r]:[Math.pow(10,Math.floor(Math.log10(r))),Math.pow(10,Math.ceil(Math.log10(r)))/2,b(r,Math.pow(10,w(r))),Math.pow(10,Math.ceil(Math.log10(r)))].sort(((e,t)=>Math.abs(e-r)-Math.abs(t-r))),l=u.find((e=>{var t=Math.ceil(a/e)+1;return t>=4&&t<=o+1}))||u[0];return[b(i,l)*n,b(l*n,n),n]})(e,t,E(e,t,n)),o=3,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(r,o)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(r,o)||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.")}()),s=a[0],u=a[1],l=a[2],c=s+u;if((t-c)/u>0){do{i.push(b(c,l)),c+=u}while(c<t);i.length>=2&&t-i[i.length-2]<=1.5*u&&i.pop()}var f={};return i.forEach((n=>{f[n]=x(n,e,t)})),f[e]=x(e,e,t),f[t]=x(t,e,t),f})(u,l,a)}},B=(e,t,n)=>void 0!==n?n:[e,t]},18854:function(e,t,n){n.r(t),n.d(t,{default:function(){return w}});var r=n(51609),o=n.n(r),i=n(8715),a=n(51647),s=n(75647),u=n(18499),l=n(26069),c=n(39188),f=n(85074),p=(n(80201),n(11450)),d=n(57808),h=n(83157),v=n(4459);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(null,arguments)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=["min","max","allowCross","pushable","disabled","count","dots","included","tooltip","vertical","id"];class w extends r.Component{constructor(e){super(e),this.DashSlider=e.tooltip?(0,c.R3)(c.Q6):c.Q6,this._computeStyle=(0,f.A)(),this.state={value:e.value}}UNSAFE_componentWillReceiveProps(e){e.tooltip!==this.props.tooltip&&(this.DashSlider=e.tooltip?(0,c.R3)(c.Q6):c.Q6),e.value!==this.props.value&&(this.props.setProps({drag_value:e.value}),this.setState({value:e.value}))}UNSAFE_componentWillMount(){null!==this.props.value&&(this.props.setProps({drag_value:this.props.value}),this.setState({value:this.props.value}))}render(){var e,t,n=this.props,r=n.className,c=n.id,f=n.setProps,d=n.tooltip,g=n.updatemode,A=n.vertical,w=n.verticalHeight,E=n.min,C=n.max,x=n.marks,k=n.step,B=this.state.value;return d&&(e=(0,l.A)((0,i.A)("visible",d.always_visible),(0,s.A)(["always_visible","template","style","transform"]))(d),(d.template||d.style||d.transform)&&(t=e=>{var t=e;return d.transform&&(t=(0,h.N)(d.transform,e)),o().createElement("div",{style:d.style},(0,h.S)(d.template||"{value}",t))})),o().createElement(v.A,{id:c,className:r,style:this._computeStyle(A,w,d)},o().createElement(this.DashSlider,m({onChange:e=>{"drag"===g?f({value:e,drag_value:e}):(this.setState({value:e}),f({drag_value:e}))},onAfterChange:e=>{"mouseup"===g&&f({value:e})},tipProps:y(y({},e),{},{getTooltipContainer:e=>e}),tipFormatter:t,style:{position:"relative"},value:B||(0,p.Lt)(E,C,B),marks:(0,p.Gm)({min:E,max:C,marks:x,step:k}),max:(0,p.JK)(E,C,x).max_mark,min:(0,p.JK)(E,C,x).min_mark,step:null!==k||(0,a.A)(x)?(0,p.MA)(E,C,k):null},(0,u.A)(b,this.props))))}}w.propTypes=d.tu},26069:function(e,t,n){n.d(t,{A:function(){return C}});var r=n(27660);function o(e,t){return function(){return t.call(this,e.apply(this,arguments))}}var i=n(2173),a=n(3579),s=n(5564),u=n(18228),l=(0,a.A)((function(e){return!!(0,s.A)(e)||!!e&&"object"==typeof e&&!(0,u.A)(e)&&(0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))})),c="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function f(e,t,n){return function(r,o,i){if(l(i))return e(r,o,i);if(null==i)return o;if("function"==typeof i["fantasy-land/reduce"])return t(r,o,i,"fantasy-land/reduce");if(null!=i[c])return n(r,o,i[c]());if("function"==typeof i.next)return n(r,o,i);if("function"==typeof i.reduce)return t(r,o,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function p(e,t,n){for(var r=0,o=n.length;r<o;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}var d=(0,n(92254).A)((function(e,t){return(0,r.A)(e.length,(function(){return e.apply(t,arguments)}))})),h=d;function v(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function m(e,t,n,r){return e["@@transducer/result"](n[r](h(e["@@transducer/step"],e),t))}var g=f(p,m,v),y=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}(),A=(0,i.A)((function(e,t,n){return g("function"==typeof e?new y(e):e,t,n)}));function b(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return(0,s.A)(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var w=(0,i.A)(b("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)}))),E=(0,a.A)(b("tail",w(1,1/0)));function C(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return(0,r.A)(arguments[0].length,A(o,arguments[0],E(arguments)))}},39188:function(e,t,n){function r(e){return r="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},r(e)}function o(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function i(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(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&&f(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){var t=h();return function(){var n,o=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}(this,n)}}n.d(t,{Q6:function(){return se},R3:function(){return wr},Ay:function(){return Cr}});var g=n(51609),y=n.n(g),A={},b=[];function w(e,t){}function E(e,t){}function C(e,t,n){t||A[n]||(e(!1,n),A[n]=!0)}function x(e,t){C(w,e,t)}x.preMessage=function(e){b.push(e)},x.resetWarned=function(){A={}},x.noteOnce=function(e,t){C(E,e,t)};var k=x,B=function(e){var t,n,r=e.className,o=e.included,a=e.vertical,u=e.style,l=e.length,c=e.offset,f=e.reverse;l<0&&(f=!f,l=Math.abs(l),c=100-c);var p=a?(i(t={},f?"top":"bottom","".concat(c,"%")),i(t,f?"bottom":"top","auto"),i(t,"height","".concat(l,"%")),t):(i(n={},f?"right":"left","".concat(c,"%")),i(n,f?"left":"right","auto"),i(n,"width","".concat(l,"%")),n),d=s(s({},u),p);return o?y().createElement("div",{className:r,style:d}):null};function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M.apply(null,arguments)}function O(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function T(e,t){if(e){if("string"==typeof e)return S(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}function P(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||T(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 _(){return _="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},_.apply(null,arguments)}var N=n(81824),D=n.n(N);function L(e,t,n,r){var o=D().unstable_batchedUpdates?function(e){D().unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var R=n(46942),j=n.n(R),V=function(e){var t=e.prefixCls,n=e.vertical,r=e.reverse,o=e.marks,a=e.dots,u=e.step,l=e.included,c=e.lowerBound,f=e.upperBound,p=e.max,d=e.min,h=e.dotStyle,v=e.activeDotStyle,m=p-d,g=function(e,t,n,r,o,i){k(!n||r>0,"`Slider[step]` should be a positive number in order to make Slider[dots] work.");var a=Object.keys(t).map(parseFloat).sort((function(e,t){return e-t}));if(n&&r)for(var s=o;s<=i;s+=r)-1===a.indexOf(s)&&a.push(s);return a}(0,o,a,u,d,p).map((function(e){var o,a="".concat(Math.abs(e-d)/m*100,"%"),u=!l&&e===f||l&&e<=f&&e>=c,p=s(s({},h),{},i({},n?r?"top":"bottom":r?"right":"left",a));u&&(p=s(s({},p),v));var g=j()((i(o={},"".concat(t,"-dot"),!0),i(o,"".concat(t,"-dot-active"),u),i(o,"".concat(t,"-dot-reverse"),r),o));return y().createElement("span",{className:g,style:p,key:e})}));return y().createElement("div",{className:"".concat(t,"-step")},g)},F=function(e){var t=e.className,n=e.vertical,o=e.reverse,a=e.marks,u=e.included,l=e.upperBound,c=e.lowerBound,f=e.max,p=e.min,d=e.onClickLabel,h=Object.keys(a),v=f-p,m=h.map(parseFloat).sort((function(e,t){return e-t})).map((function(e){var f,h=a[e],m="object"===r(h)&&!y().isValidElement(h),g=m?h.label:h;if(!g&&0!==g)return null;var A=!u&&e===l||u&&e<=l&&e>=c,b=j()((i(f={},"".concat(t,"-text"),!0),i(f,"".concat(t,"-text-active"),A),f)),w=i({marginBottom:"-50%"},o?"top":"bottom","".concat((e-p)/v*100,"%")),E=i({transform:"translateX(".concat(o?"50%":"-50%",")"),msTransform:"translateX(".concat(o?"50%":"-50%",")")},o?"right":"left","".concat((e-p)/v*100,"%")),C=n?w:E,x=m?s(s({},C),h.style):C;return y().createElement("span",{className:b,style:x,key:e,onMouseDown:function(t){return d(t,e)},onTouchStart:function(t){return d(t,e)}},g)}));return y().createElement("div",{className:t},m)},H=function(e){p(n,e);var t=m(n);function n(){var e;return u(this,n),(e=t.apply(this,arguments)).state={clickFocused:!1},e.setHandleRef=function(t){e.handle=t},e.handleMouseUp=function(){document.activeElement===e.handle&&e.setClickFocus(!0)},e.handleMouseDown=function(t){t.preventDefault(),e.focus()},e.handleBlur=function(){e.setClickFocus(!1)},e.handleKeyDown=function(){e.setClickFocus(!1)},e}return c(n,[{key:"componentDidMount",value:function(){this.onMouseUpListener=L(document,"mouseup",this.handleMouseUp)}},{key:"componentWillUnmount",value:function(){this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"setClickFocus",value:function(e){this.setState({clickFocused:e})}},{key:"clickFocus",value:function(){this.setClickFocus(!0),this.focus()}},{key:"focus",value:function(){this.handle.focus()}},{key:"blur",value:function(){this.handle.blur()}},{key:"render",value:function(){var e,t,n,r=this.props,o=r.prefixCls,a=r.vertical,u=r.reverse,l=r.offset,c=r.style,f=r.disabled,p=r.min,d=r.max,h=r.value,v=r.tabIndex,m=r.ariaLabel,g=r.ariaLabelledBy,A=r.ariaValueTextFormatter,b=O(r,["prefixCls","vertical","reverse","offset","style","disabled","min","max","value","tabIndex","ariaLabel","ariaLabelledBy","ariaValueTextFormatter"]),w=j()(this.props.className,i({},"".concat(o,"-handle-click-focused"),this.state.clickFocused)),E=a?(i(e={},u?"top":"bottom","".concat(l,"%")),i(e,u?"bottom":"top","auto"),i(e,"transform",u?null:"translateY(+50%)"),e):(i(t={},u?"right":"left","".concat(l,"%")),i(t,u?"left":"right","auto"),i(t,"transform","translateX(".concat(u?"+":"-","50%)")),t),C=s(s({},c),E),x=v||0;return(f||null===v)&&(x=null),A&&(n=A(h)),y().createElement("div",M({ref:this.setHandleRef,tabIndex:x},b,{className:w,style:C,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,role:"slider","aria-valuemin":p,"aria-valuemax":d,"aria-valuenow":h,"aria-disabled":!!f,"aria-label":m,"aria-labelledby":g,"aria-valuetext":n}))}}]),n}(y().Component),I={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=I.F1&&t<=I.F12)return!1;switch(t){case I.ALT:case I.CAPS_LOCK:case I.CONTEXT_MENU:case I.CTRL:case I.DOWN:case I.END:case I.ESC:case I.HOME:case I.INSERT:case I.LEFT:case I.MAC_FF_META:case I.META:case I.NUMLOCK:case I.NUM_CENTER:case I.PAGE_DOWN:case I.PAGE_UP:case I.PAUSE:case I.PRINT_SCREEN:case I.RIGHT:case I.SHIFT:case I.UP:case I.WIN_KEY:case I.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=I.ZERO&&e<=I.NINE)return!0;if(e>=I.NUM_ZERO&&e<=I.NUM_MULTIPLY)return!0;if(e>=I.A&&e<=I.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case I.SPACE:case I.QUESTION_MARK:case I.NUM_PLUS:case I.NUM_MINUS:case I.NUM_PERIOD:case I.NUM_DIVISION:case I.SEMICOLON:case I.DASH:case I.EQUALS:case I.COMMA:case I.PERIOD:case I.SLASH:case I.APOSTROPHE:case I.SINGLE_QUOTE:case I.OPEN_SQUARE_BRACKET:case I.BACKSLASH:case I.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},U=I;function W(e,t){try{return Object.keys(t).some((function(n){return e.target===(0,N.findDOMNode)(t[n])}))}catch(e){return!1}}function z(e,t){var n=t.min,r=t.max;return e<n||e>r}function Y(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function X(e,t){var n=t.marks,r=t.step,o=t.min,i=t.max,a=Object.keys(n).map(parseFloat);if(null!==r){var s=Math.pow(10,G(r)),u=Math.floor((i*s-o*s)/(r*s)),l=Math.min((e-o)/r,u),c=Math.round(l)*r+o;a.push(c)}var f=a.map((function(t){return Math.abs(e-t)}));return a[f.indexOf(Math.min.apply(Math,P(f)))]}function G(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function K(e,t){return e?t.clientY:t.pageX}function q(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function Z(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function Q(e,t){var n=t.max,r=t.min;return e<=r?r:e>=n?n:e}function $(e,t){var n=t.step,r=isFinite(X(e,t))?X(e,t):0;return null===n?r:parseFloat(r.toFixed(G(n)))}function J(e){e.stopPropagation(),e.preventDefault()}function ee(e,t,n){var r="increase",o="decrease",i=r;switch(e.keyCode){case U.UP:i=t&&n?o:r;break;case U.RIGHT:i=!t&&n?o:r;break;case U.DOWN:i=t&&n?r:o;break;case U.LEFT:i=!t&&n?r:o;break;case U.END:return function(e,t){return t.max};case U.HOME:return function(e,t){return t.min};case U.PAGE_UP:return function(e,t){return e+2*t.step};case U.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}return function(e,t){return function(e,t,n){var r={increase:function(e,t){return e+t},decrease:function(e,t){return e-t}},o=r[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),i=Object.keys(n.marks)[o];return n.step?r[e](t,n.step):Object.keys(n.marks).length&&n.marks[i]?n.marks[i]:t}(i,e,t)}}function te(){}function ne(e){var t;return t=function(e){p(n,e);var t=m(n);function n(e){var r;u(this,n),(r=t.call(this,e)).onDown=function(e,t){var n=t,o=r.props,i=o.draggableTrack,a=o.vertical,s=r.state.bounds,u=i&&r.positionGetValue&&r.positionGetValue(n)||[],l=W(e,r.handlesRefs);if(r.dragTrack=i&&s.length>=2&&!l&&!u.map((function(e,t){var n=!!t||e>=s[t];return t===u.length-1?e<=s[t]:n})).some((function(e){return!e})),r.dragTrack)r.dragOffset=n,r.startBounds=P(s);else{if(l){var c=Z(a,e.target);r.dragOffset=n-c,n=c}else r.dragOffset=0;r.onStart(n)}},r.onMouseDown=function(e){if(0===e.button){r.removeDocumentEvents();var t=K(r.props.vertical,e);r.onDown(e,t),r.addDocumentMouseEvents()}},r.onTouchStart=function(e){if(!Y(e)){var t=q(r.props.vertical,e);r.onDown(e,t),r.addDocumentTouchEvents(),J(e)}},r.onFocus=function(e){var t=r.props,n=t.onFocus,o=t.vertical;if(W(e,r.handlesRefs)&&!r.dragTrack){var i=Z(o,e.target);r.dragOffset=0,r.onStart(i),J(e),n&&n(e)}},r.onBlur=function(e){var t=r.props.onBlur;r.dragTrack||r.onEnd(),t&&t(e)},r.onMouseUp=function(){r.handlesRefs[r.prevMovedHandleIndex]&&r.handlesRefs[r.prevMovedHandleIndex].clickFocus()},r.onMouseMove=function(e){if(r.sliderRef){var t=K(r.props.vertical,e);r.onMove(e,t-r.dragOffset,r.dragTrack,r.startBounds)}else r.onEnd()},r.onTouchMove=function(e){if(!Y(e)&&r.sliderRef){var t=q(r.props.vertical,e);r.onMove(e,t-r.dragOffset,r.dragTrack,r.startBounds)}else r.onEnd()},r.onKeyDown=function(e){r.sliderRef&&W(e,r.handlesRefs)&&r.onKeyboard(e)},r.onClickMarkLabel=function(e,t){e.stopPropagation(),r.onChange({value:t}),r.setState({value:t},(function(){return r.onEnd(!0)}))},r.saveSlider=function(e){r.sliderRef=e};var o=e.step,i=e.max,a=e.min,s=!isFinite(i-a)||(i-a)%o==0;return k(!o||Math.floor(o)!==o||s,"Slider[max] - Slider[min] (".concat(i-a,") should be a multiple of Slider[step] (").concat(o,")")),r.handlesRefs={},r}return c(n,[{key:"componentDidMount",value:function(){this.document=this.sliderRef&&this.sliderRef.ownerDocument;var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"componentWillUnmount",value:function(){_(d(n.prototype),"componentWillUnmount",this)&&_(d(n.prototype),"componentWillUnmount",this).call(this),this.removeDocumentEvents()}},{key:"getSliderStart",value:function(){var e=this.sliderRef,t=this.props,n=t.vertical,r=t.reverse,o=e.getBoundingClientRect();return n?r?o.bottom:o.top:window.pageXOffset+(r?o.right:o.left)}},{key:"getSliderLength",value:function(){var e=this.sliderRef;if(!e)return 0;var t=e.getBoundingClientRect();return this.props.vertical?t.height:t.width}},{key:"addDocumentTouchEvents",value:function(){this.onTouchMoveListener=L(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=L(this.document,"touchend",this.onEnd)}},{key:"addDocumentMouseEvents",value:function(){this.onMouseMoveListener=L(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=L(this.document,"mouseup",this.onEnd)}},{key:"removeDocumentEvents",value:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"focus",value:function(){var e;this.props.disabled||null===(e=this.handlesRefs[0])||void 0===e||e.focus()}},{key:"blur",value:function(){var e=this;this.props.disabled||Object.keys(this.handlesRefs).forEach((function(t){var n,r;null===(n=e.handlesRefs[t])||void 0===n||null===(r=n.blur)||void 0===r||r.call(n)}))}},{key:"calcValue",value:function(e){var t=this.props,n=t.vertical,r=t.min,o=t.max,i=Math.abs(Math.max(e,0)/this.getSliderLength());return n?(1-i)*(o-r)+r:i*(o-r)+r}},{key:"calcValueByPos",value:function(e){var t=(this.props.reverse?-1:1)*(e-this.getSliderStart());return this.trimAlignValue(this.calcValue(t))}},{key:"calcOffset",value:function(e){var t=this.props,n=t.min,r=(e-n)/(t.max-n);return Math.max(0,100*r)}},{key:"saveHandle",value:function(e,t){this.handlesRefs[e]=t}},{key:"render",value:function(){var e,t=this.props,r=t.prefixCls,o=t.className,a=t.marks,u=t.dots,l=t.step,c=t.included,f=t.disabled,p=t.vertical,h=t.reverse,v=t.min,m=t.max,g=t.children,A=t.maximumTrackStyle,b=t.style,w=t.railStyle,E=t.dotStyle,C=t.activeDotStyle,x=_(d(n.prototype),"render",this).call(this),k=x.tracks,B=x.handles,M=j()(r,(i(e={},"".concat(r,"-with-marks"),Object.keys(a).length),i(e,"".concat(r,"-disabled"),f),i(e,"".concat(r,"-vertical"),p),i(e,o,o),e));return y().createElement("div",{ref:this.saveSlider,className:M,onTouchStart:f?te:this.onTouchStart,onMouseDown:f?te:this.onMouseDown,onMouseUp:f?te:this.onMouseUp,onKeyDown:f?te:this.onKeyDown,onFocus:f?te:this.onFocus,onBlur:f?te:this.onBlur,style:b},y().createElement("div",{className:"".concat(r,"-rail"),style:s(s({},A),w)}),k,y().createElement(V,{prefixCls:r,vertical:p,reverse:h,marks:a,dots:u,step:l,included:c,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:m,min:v,dotStyle:E,activeDotStyle:C}),B,y().createElement(F,{className:"".concat(r,"-mark"),onClickLabel:f?te:this.onClickMarkLabel,vertical:p,marks:a,included:c,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:m,min:v,reverse:h}),g)}}]),n}(e),t.displayName="ComponentEnhancer(".concat(e.displayName,")"),t.defaultProps=s(s({},e.defaultProps),{},{prefixCls:"rc-slider",className:"",min:0,max:100,step:1,marks:{},handle:function(e){var t=e.index,n=O(e,["index"]);return delete n.dragging,null===n.value?null:y().createElement(H,M({},n,{key:t}))},onBeforeChange:te,onChange:te,onAfterChange:te,included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),t}var re=function(e){p(n,e);var t=m(n);function n(e){var r;u(this,n),(r=t.call(this,e)).positionGetValue=function(e){return[]},r.onEnd=function(e){var t=r.state.dragging;r.removeDocumentEvents(),(t||e)&&r.props.onAfterChange(r.getValue()),r.setState({dragging:!1})};var o=void 0!==e.defaultValue?e.defaultValue:e.min,i=void 0!==e.value?e.value:o;return r.state={value:r.trimAlignValue(i),dragging:!1},k(!("minimumTrackStyle"in e),"minimumTrackStyle will be deprecated, please use trackStyle instead."),k(!("maximumTrackStyle"in e),"maximumTrackStyle will be deprecated, please use railStyle instead."),r}return c(n,[{key:"calcValueByPos",value:function(e){return 0}},{key:"calcOffset",value:function(e){return 0}},{key:"saveHandle",value:function(e,t){}},{key:"removeDocumentEvents",value:function(){}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.min,o=n.max,i=n.value,a=n.onChange;if("min"in this.props||"max"in this.props){var s=void 0!==i?i:t.value,u=this.trimAlignValue(s,this.props);u!==t.value&&(this.setState({value:u}),r===e.min&&o===e.max||!z(s,this.props)||a(u))}}},{key:"onChange",value:function(e){var t=this.props,n=!("value"in t),r=e.value>this.props.max?s(s({},e),{},{value:this.props.max}):e;n&&this.setState(r);var o=r.value;t.onChange(o)}},{key:"onStart",value:function(e){this.setState({dragging:!0});var t=this.props,n=this.getValue();t.onBeforeChange(n);var r=this.calcValueByPos(e);this.startValue=r,this.startPosition=e,r!==n&&(this.prevMovedHandleIndex=0,this.onChange({value:r}))}},{key:"onMove",value:function(e,t){J(e);var n=this.state.value,r=this.calcValueByPos(t);r!==n&&this.onChange({value:r})}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=ee(e,t.vertical,n);if(r){J(e);var o=this.state.value,i=r(o,this.props),a=this.trimAlignValue(i);if(a===o)return;this.onChange({value:a}),this.props.onAfterChange(a),this.onEnd()}}},{key:"getValue",value:function(){return this.state.value}},{key:"getLowerBound",value:function(){var e=this.props.startPoint||this.props.min;return this.state.value>e?e:this.state.value}},{key:"getUpperBound",value:function(){return this.state.value<this.props.startPoint?this.props.startPoint:this.state.value}},{key:"trimAlignValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;var n=s(s({},this.props),t);return $(Q(e,n),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.vertical,o=t.included,i=t.disabled,a=t.minimumTrackStyle,u=t.trackStyle,l=t.handleStyle,c=t.tabIndex,f=t.ariaLabelForHandle,p=t.ariaLabelledByForHandle,d=t.ariaValueTextFormatterForHandle,h=t.min,v=t.max,m=t.startPoint,g=t.reverse,A=t.handle,b=this.state,w=b.value,E=b.dragging,C=this.calcOffset(w),x=A({className:"".concat(n,"-handle"),prefixCls:n,vertical:r,offset:C,value:w,dragging:E,disabled:i,min:h,max:v,reverse:g,index:0,tabIndex:c,ariaLabel:f,ariaLabelledBy:p,ariaValueTextFormatter:d,style:l[0]||l,ref:function(t){return e.saveHandle(0,t)}}),k=void 0!==m?this.calcOffset(m):0,M=u[0]||u;return{tracks:y().createElement(B,{className:"".concat(n,"-track"),vertical:r,included:o,offset:k,reverse:g,length:C-k,style:s(s({},a),M)}),handles:x}}}]),n}(y().Component),oe=ne(re),ie=function(e){var t=e.value,n=e.handle,r=e.bounds,o=e.props,i=o.allowCross,a=o.pushable,s=Number(a),u=Q(t,o),l=u;return i||null==n||void 0===r||(n>0&&u<=r[n-1]+s&&(l=r[n-1]+s),n<r.length-1&&u>=r[n+1]-s&&(l=r[n+1]-s)),$(l,o)},ae=function(e){p(n,e);var t=m(n);function n(e){var r;u(this,n),(r=t.call(this,e)).positionGetValue=function(e){var t=r.getValue(),n=r.calcValueByPos(e),o=r.getClosestBound(n),i=r.getBoundNeedMoving(n,o);if(n===t[i])return null;var a=P(t);return a[i]=n,a},r.onEnd=function(e){var t=r.state.handle;r.removeDocumentEvents(),t||(r.dragTrack=!1),(null!==t||e)&&r.props.onAfterChange(r.getValue()),r.setState({handle:null})};var o=e.count,i=e.min,a=e.max,s=Array.apply(void 0,P(Array(o+1))).map((function(){return i})),l="defaultValue"in e?e.defaultValue:s,c=(void 0!==e.value?e.value:l).map((function(t,n){return ie({value:t,handle:n,props:e})})),f=c[0]===a?0:c.length-1;return r.state={handle:null,recent:f,bounds:c},r}return c(n,[{key:"calcValueByPos",value:function(e){return 0}},{key:"getSliderLength",value:function(){return 0}},{key:"calcOffset",value:function(e){return 0}},{key:"saveHandle",value:function(e,t){}},{key:"removeDocumentEvents",value:function(){}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,o=r.onChange,i=r.value,a=r.min,s=r.max;if(("min"in this.props||"max"in this.props)&&(a!==e.min||s!==e.max)){var u=i||t.bounds;u.some((function(e){return z(e,n.props)}))&&o(u.map((function(e){return Q(e,n.props)})))}}},{key:"onChange",value:function(e){var t=this.props;if("value"in t){var n={};["handle","recent"].forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),Object.keys(n).length&&this.setState(n)}else this.setState(e);var r=s(s({},this.state),e).bounds;t.onChange(r)}},{key:"onStart",value:function(e){var t=this.props,n=this.state,r=this.getValue();t.onBeforeChange(r);var o=this.calcValueByPos(e);this.startValue=o,this.startPosition=e;var i=this.getClosestBound(o);if(this.prevMovedHandleIndex=this.getBoundNeedMoving(o,i),this.setState({handle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex}),o!==r[this.prevMovedHandleIndex]){var a=P(n.bounds);a[this.prevMovedHandleIndex]=o,this.onChange({bounds:a})}}},{key:"onMove",value:function(e,t,n,r){J(e);var o=this.state,i=this.props,a=i.max||100,s=i.min||0;if(n){var u=i.vertical?-t:t;u=i.reverse?-u:u;var l=a-Math.max.apply(Math,P(r)),c=s-Math.min.apply(Math,P(r)),f=Math.min(Math.max(u/(this.getSliderLength()/(a-s)),c),l),p=r.map((function(e){return Math.floor(Math.max(Math.min(e+f,a),s))}));o.bounds.map((function(e,t){return e===p[t]})).some((function(e){return!e}))&&this.onChange({bounds:p})}else{var d=this.calcValueByPos(t);d!==o.bounds[o.handle]&&this.moveTo(d)}}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=ee(e,t.vertical,n);if(r){J(e);var o=this.state,i=this.props,a=o.bounds,s=o.handle,u=a[null===s?o.recent:s],l=r(u,i),c=ie({value:l,handle:s,bounds:o.bounds,props:i});if(c===u)return;this.moveTo(c,!0)}}},{key:"getValue",value:function(){return this.state.bounds}},{key:"getClosestBound",value:function(e){for(var t=this.state.bounds,n=0,r=1;r<t.length-1;r+=1)e>=t[r]&&(n=r);return Math.abs(t[n+1]-e)<Math.abs(t[n]-e)&&(n+=1),n}},{key:"getBoundNeedMoving",value:function(e,t){var n=this.state,r=n.bounds,o=n.recent,i=t,a=r[t+1]===r[t];return a&&r[o]===r[t]&&(i=o),a&&e!==r[t+1]&&(i=e<r[t+1]?t:t+1),i}},{key:"getLowerBound",value:function(){return this.state.bounds[0]}},{key:"getUpperBound",value:function(){var e=this.state.bounds;return e[e.length-1]}},{key:"getPoints",value:function(){var e=this.props,t=e.marks,n=e.step,r=e.min,o=e.max,i=this.internalPointsCache;if(!i||i.marks!==t||i.step!==n){var a=s({},t);if(null!==n)for(var u=r;u<=o;u+=n)a[u]=u;var l=Object.keys(a).map(parseFloat);l.sort((function(e,t){return e-t})),this.internalPointsCache={marks:t,step:n,points:l}}return this.internalPointsCache.points}},{key:"moveTo",value:function(e,t){var n=this,r=this.state,o=this.props,i=P(r.bounds),a=null===r.handle?r.recent:r.handle;i[a]=e;var s=a;!1!==o.pushable?this.pushSurroundingHandles(i,s):o.allowCross&&(i.sort((function(e,t){return e-t})),s=i.indexOf(e)),this.onChange({recent:s,handle:s,bounds:i}),t&&(this.props.onAfterChange(i),this.setState({},(function(){n.handlesRefs[s].focus()})),this.onEnd())}},{key:"pushSurroundingHandles",value:function(e,t){var n=e[t],r=this.props.pushable,o=Number(r),i=0;if(e[t+1]-n<o&&(i=1),n-e[t-1]<o&&(i=-1),0!==i){var a=t+i,s=i*(e[a]-n);this.pushHandle(e,a,i,o-s)||(e[t]=e[a]-i*o)}}},{key:"pushHandle",value:function(e,t,n,r){for(var o=e[t],i=e[t];n*(i-o)<r;){if(!this.pushHandleOnePoint(e,t,n))return e[t]=o,!1;i=e[t]}return!0}},{key:"pushHandleOnePoint",value:function(e,t,n){var r=this.getPoints(),o=r.indexOf(e[t])+n;if(o>=r.length||o<0)return!1;var i=t+n,a=r[o],s=this.props.pushable,u=Number(s),l=n*(e[i]-a);return!!this.pushHandle(e,i,n,u-l)&&(e[t]=a,!0)}},{key:"trimAlignValue",value:function(e){var t=this.state,n=t.handle,r=t.bounds;return ie({value:e,handle:n,bounds:r,props:this.props})}},{key:"render",value:function(){var e=this,t=this.state,n=t.handle,r=t.bounds,o=this.props,a=o.prefixCls,s=o.vertical,u=o.included,l=o.disabled,c=o.min,f=o.max,p=o.reverse,d=o.handle,h=o.trackStyle,v=o.handleStyle,m=o.tabIndex,g=o.ariaLabelGroupForHandles,A=o.ariaLabelledByGroupForHandles,b=o.ariaValueTextFormatterGroupForHandles,w=r.map((function(t){return e.calcOffset(t)})),E="".concat(a,"-handle"),C=r.map((function(t,r){var o,u=m[r]||0;(l||null===m[r])&&(u=null);var h=n===r;return d({className:j()((o={},i(o,E,!0),i(o,"".concat(E,"-").concat(r+1),!0),i(o,"".concat(E,"-dragging"),h),o)),prefixCls:a,vertical:s,dragging:h,offset:w[r],value:t,index:r,tabIndex:u,min:c,max:f,reverse:p,disabled:l,style:v[r],ref:function(t){return e.saveHandle(r,t)},ariaLabel:g[r],ariaLabelledBy:A[r],ariaValueTextFormatter:b[r]})}));return{tracks:r.slice(0,-1).map((function(e,t){var n,r=t+1,o=j()((i(n={},"".concat(a,"-track"),!0),i(n,"".concat(a,"-track-").concat(r),!0),n));return y().createElement(B,{className:o,vertical:s,reverse:p,included:u,offset:w[r-1],length:w[r]-w[r-1],style:h[t],key:r})})),handles:C}}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(!("value"in e||"min"in e||"max"in e))return null;var n=e.value||t.bounds,r=n.map((function(n,r){return ie({value:n,handle:r,bounds:t.bounds,props:e})}));if(t.bounds.length===r.length){if(r.every((function(e,n){return e===t.bounds[n]})))return null}else r=n.map((function(t,n){return ie({value:t,handle:n,props:e})}));return s(s({},t),{},{bounds:r})}}]),n}(y().Component);ae.displayName="Range",ae.defaultProps={count:1,allowCross:!0,pushable:!1,draggableTrack:!1,tabIndex:[],ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]};var se=ne(ae),ue=function(e){return+setTimeout(e,16)},le=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(ue=function(e){return window.requestAnimationFrame(e)},le=function(e){return window.cancelAnimationFrame(e)});var ce=0,fe=new Map;function pe(e){fe.delete(e)}var de=function(e){var t=ce+=1;return function n(r){if(0===r)pe(t),e();else{var o=ue((function(){n(r-1)}));fe.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};de.cancel=function(e){var t=fe.get(e);return pe(e),le(t)};var he=de;function ve(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}function me(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof y().Component?D().findDOMNode(e):null}var ge=n(66351);function ye(e,t){"function"==typeof e?e(t):"object"===r(e)&&e&&"current"in e&&(e.current=t)}function Ae(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){ye(t,e)}))}}function be(e){var t,n,r=(0,ge.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render)}function we(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var Ee=(0,g.forwardRef)((function(e,t){var n=e.didUpdate,r=e.getContainer,o=e.children,i=(0,g.useRef)(),a=(0,g.useRef)();(0,g.useImperativeHandle)(t,(function(){return{}}));var s=(0,g.useRef)(!1);return!s.current&&we()&&(a.current=r(),i.current=a.current.parentNode,s.current=!0),(0,g.useEffect)((function(){null==n||n(e)})),(0,g.useEffect)((function(){return null===a.current.parentNode&&null!==i.current&&i.current.appendChild(a.current),function(){var e;null===(e=a.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(a.current)}}),[]),a.current?D().createPortal(o,a.current):null}));function Ce(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||T(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.")}()}var ke=g.createContext({}),Be=function(e){p(n,e);var t=m(n);function n(){return u(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){return this.props.children}}]),n}(g.Component),Me=Be;function Oe(e){var t=g.useRef(!1),n=xe(g.useState(e),2),r=n[0],o=n[1];return g.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||o(e)}]}var Se="none",Te="appear",Pe="enter",_e="leave",Ne="none",De="prepare",Le="start",Re="active",je="end",Ve="prepared";function Fe(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var He,Ie,Ue,We=(He=we(),Ie="undefined"!=typeof window?window:{},Ue={animationend:Fe("Animation","AnimationEnd"),transitionend:Fe("Transition","TransitionEnd")},He&&("AnimationEvent"in Ie||delete Ue.animationend.animation,"TransitionEvent"in Ie||delete Ue.transitionend.transition),Ue),ze={};if(we()){var Ye=document.createElement("div");ze=Ye.style}var Xe={};function Ge(e){if(Xe[e])return Xe[e];var t=We[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in ze)return Xe[e]=t[i],Xe[e]}return""}var Ke=Ge("animationend"),qe=Ge("transitionend"),Ze=!(!Ke||!qe),Qe=Ke||"animationend",$e=qe||"transitionend";function Je(e,t){return e?"object"===r(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}var et=we()?g.useLayoutEffect:g.useEffect,tt=[De,Le,Re,je],nt=[De,Ve],rt=!1;function ot(e){return e===Re||e===je}function it(e,t,n,r){var o=r.motionEnter,a=void 0===o||o,u=r.motionAppear,l=void 0===u||u,c=r.motionLeave,f=void 0===c||c,p=r.motionDeadline,d=r.motionLeaveImmediately,h=r.onAppearPrepare,v=r.onEnterPrepare,m=r.onLeavePrepare,y=r.onAppearStart,A=r.onEnterStart,b=r.onLeaveStart,w=r.onAppearActive,E=r.onEnterActive,C=r.onLeaveActive,x=r.onAppearEnd,k=r.onEnterEnd,B=r.onLeaveEnd,M=r.onVisibleChanged,O=xe(Oe(),2),S=O[0],T=O[1],P=xe(Oe(Se),2),_=P[0],N=P[1],D=xe(Oe(null),2),L=D[0],R=D[1],j=(0,g.useRef)(!1),V=(0,g.useRef)(null);function F(){return n()}var H=(0,g.useRef)(!1);function I(){N(Se,!0),R(null,!0)}function U(e){var t=F();if(!e||e.deadline||e.target===t){var n,r=H.current;_===Te&&r?n=null==x?void 0:x(t,e):_===Pe&&r?n=null==k?void 0:k(t,e):_===_e&&r&&(n=null==B?void 0:B(t,e)),_!==Se&&r&&!1!==n&&I()}}var W=function(e){var t=(0,g.useRef)(),n=(0,g.useRef)(e);n.current=e;var r=g.useCallback((function(e){n.current(e)}),[]);function o(e){e&&(e.removeEventListener($e,r),e.removeEventListener(Qe,r))}return g.useEffect((function(){return function(){o(t.current)}}),[]),[function(e){t.current&&t.current!==e&&o(t.current),e&&e!==t.current&&(e.addEventListener($e,r),e.addEventListener(Qe,r),t.current=e)},o]}(U),z=xe(W,1)[0],Y=function(e){var t,n,r;switch(e){case Te:return i(t={},De,h),i(t,Le,y),i(t,Re,w),t;case Pe:return i(n={},De,v),i(n,Le,A),i(n,Re,E),n;case _e:return i(r={},De,m),i(r,Le,b),i(r,Re,C),r;default:return{}}},X=g.useMemo((function(){return Y(_)}),[_]),G=xe(function(e,t,n){var r=xe(Oe(Ne),2),o=r[0],i=r[1],a=function(){var e=g.useRef(null);function t(){he.cancel(e.current)}return g.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=he((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),s=xe(a,2),u=s[0],l=s[1],c=t?nt:tt;return et((function(){if(o!==Ne&&o!==je){var e=c.indexOf(o),t=c[e+1],r=n(o);r===rt?i(t,!0):t&&u((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,o]),g.useEffect((function(){return function(){l()}}),[]),[function(){i(De,!0)},o]}(_,!e,(function(e){if(e===De){var t=X[De];return t?t(F()):rt}var n;return q in X&&R((null===(n=X[q])||void 0===n?void 0:n.call(X,F(),null))||null),q===Re&&(z(F()),p>0&&(clearTimeout(V.current),V.current=setTimeout((function(){U({deadline:!0})}),p))),q===Ve&&I(),!0})),2),K=G[0],q=G[1],Z=ot(q);H.current=Z,et((function(){T(t);var n,r=j.current;j.current=!0,!r&&t&&l&&(n=Te),r&&t&&a&&(n=Pe),(r&&!t&&f||!r&&d&&!t&&f)&&(n=_e);var o=Y(n);n&&(e||o[De])?(N(n),K()):N(Se)}),[t]),(0,g.useEffect)((function(){(_===Te&&!l||_===Pe&&!a||_===_e&&!f)&&N(Se)}),[l,a,f]),(0,g.useEffect)((function(){return function(){j.current=!1,clearTimeout(V.current)}}),[]);var Q=g.useRef(!1);(0,g.useEffect)((function(){S&&(Q.current=!0),void 0!==S&&_===Se&&((Q.current||S)&&(null==M||M(S)),Q.current=!0)}),[S,_]);var $=L;return X[De]&&q===Le&&($=s({transition:"none"},$)),[_,q,$,null!=S?S:t]}var at=function(e){var t=e;"object"===r(e)&&(t=e.transitionSupport);var n=g.forwardRef((function(e,n){var r=e.visible,o=void 0===r||r,a=e.removeOnLeave,u=void 0===a||a,l=e.forceRende