Socket
Socket
Sign inDemoInstall

react-slick

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-slick - npm Package Compare versions

Comparing version 0.20.0 to 0.21.0

41

CHANGELOG.md

@@ -5,2 +5,41 @@ # Change Log

## 0.21.0
**Release Changes**
- Fixed issues
- dataset undefined error in case of swipeToSlide but finite slides
- slideWidth issue by transform scale
- variableWidth + finite alignment problems
- wrapper direction rtl issues
- added onload update handler for images
- fixed breaking of animation on setState
- Mixins to Pure Functions
- getWidth, getHeight
- swipeDirection
- initialize, update
- Other Changes
- removed sass, using pure CSS instead
- enforced dir='ltr' in the slider, so dir='rtl' in wrapper doesn't break the slider
- corrected up/down direction conventions
- added more tests along with snapshots
## 0.20.0
**Release Changes**
- handled responsive breakpoint collision
- renamed autoPlayTimer to autoplayTimer and removed it from state
- changed es5 module.exports with es6 export default in src/index
- implemented slider syncing with asNavFor prop
- made all the slides untabbable
- implemented getSlick method as in slick
- implemented slickGetOption method
- implemented lazyLoaded event
- implemented reInit event
- implemented onSwipe event and documented edgeEvent
## 0.19.0

@@ -52,2 +91,2 @@

- Refactored small snippets for betterment
- Fixed several lazyload and centerMode bugs
- Fixed several lazyload and centerMode bugs

6

dist/react-slick.min.js

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.Slider=e(require("react"),require("react-dom")):t.Slider=e(t.React,t.ReactDOM)}(this,function(t,e){return function(t){function e(s){if(i[s])return i[s].exports;var n=i[s]={exports:{},id:s,loaded:!1};return t[s].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var n=i(1),r=s(n);e.default=r.default},function(t,e,i){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},l=i(2),c=s(l),d=i(3),u=i(7),p=s(u),h=i(23),f=s(h),g=i(12),v=s(g),y=i(25),S=s(y),m=S.default&&i(26),w=function(t){function e(i){n(this,e);var s=r(this,t.call(this,i));return s.innerSliderRefHandler=function(t){return s.innerSlider=t},s.slickPrev=function(){return s.innerSlider.slickPrev()},s.slickNext=function(){return s.innerSlider.slickNext()},s.slickGoTo=function(t){return s.innerSlider.slickGoTo(t)},s.slickPause=function(){return s.innerSlider.pause()},s.slickPlay=function(){return s.innerSlider.autoPlay()},s.state={breakpoint:null},s._responsiveMediaHandlers=[],s}return o(e,t),e.prototype.media=function(t,e){m.register(t,e),this._responsiveMediaHandlers.push({query:t,handler:e})},e.prototype.componentWillMount=function(){var t=this;if(this.props.responsive){var e=this.props.responsive.map(function(t){return t.breakpoint});e.sort(function(t,e){return t-e}),e.forEach(function(i,s){var n=void 0;n=0===s?(0,f.default)({minWidth:0,maxWidth:i}):(0,f.default)({minWidth:e[s-1]+1,maxWidth:i}),S.default&&t.media(n,function(){t.setState({breakpoint:i})})});var i=(0,f.default)({minWidth:e.slice(-1)[0]});S.default&&this.media(i,function(){t.setState({breakpoint:null})})}},e.prototype.componentWillUnmount=function(){this._responsiveMediaHandlers.forEach(function(t){m.unregister(t.query,t.handler)})},e.prototype.render=function(){var t,e,i=this;this.state.breakpoint?(e=this.props.responsive.filter(function(t){return t.breakpoint===i.state.breakpoint}),t="unslick"===e[0].settings?"unslick":(0,p.default)({},v.default,this.props,e[0].settings)):t=(0,p.default)({},v.default,this.props),t.centerMode&&(t.slidesToScroll>1&&console.warn("slidesToScroll should be equal to 1 in centerMode, you are using "+t.slidesToScroll),t.slidesToScroll=1),t.fade&&(t.slidesToShow>1&&console.warn("slidesToShow should be equal to 1 when fade is true, you're using "+t.slidesToShow),t.slidesToScroll>1&&console.warn("slidesToScroll should be equal to 1 when fade is true, you're using "+t.slidesToScroll),t.slidesToShow=1,t.slidesToScroll=1);var s=c.default.Children.toArray(this.props.children);return s=s.filter(function(t){return"string"==typeof t?!!t.trim():!!t}),"unslick"===t?(t=(0,p.default)({unslick:!0},v.default,this.props),t.slidesToShow=s.length):s.length<=t.slidesToShow&&(t.unslick=!0,t.slidesToShow=s.length),c.default.createElement(d.InnerSlider,a({ref:this.innerSliderRefHandler},t),s)},e}(c.default.Component);e.default=w},function(e,i){e.exports=t},function(t,e,i){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.InnerSlider=void 0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},r=i(2),o=s(r),a=i(4),l=s(a),c=i(9),d=s(c),u=i(11),p=s(u),h=i(12),f=(s(h),i(13)),g=s(f),v=i(19),y=s(v),S=i(7),m=s(S),w=i(10),b=i(20),T=i(21),k=i(22);e.InnerSlider=(0,g.default)({displayName:"InnerSlider",mixins:[d.default,l.default],list:null,track:null,listRefHandler:function(t){this.list=t},trackRefHandler:function(t){this.track=t},getInitialState:function(){return n({},p.default,{currentSlide:this.props.initialSlide})},componentWillMount:function(){if(this.props.init&&this.props.init(),this.props.lazyLoad){var t=(0,w.getOnDemandLazySlides)((0,m.default)({},this.props,this.state));t.length>0&&(this.setState(function(e,i){return{lazyLoadedList:e.lazyLoadedList.concat(t)}}),this.props.onLazyLoad&&this.props.onLazyLoad(t))}},componentDidMount:function(){this.initialize(this.props),this.adaptHeight(),window&&(window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized))},componentWillUnmount:function(){this.animationEndCallback&&clearTimeout(this.animationEndCallback),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.state.autoPlayTimer&&clearInterval(this.state.autoPlayTimer)},componentWillReceiveProps:function(t){this.props.slickGoTo!=t.slickGoTo?(console.warn("react-slick deprecation warning: slickGoTo prop is deprecated and it will be removed in next release. Use slickGoTo method instead"),this.changeSlide({message:"index",index:t.slickGoTo,currentSlide:this.state.currentSlide})):this.state.currentSlide>=t.children.length?(this.update(t),this.changeSlide({message:"index",index:t.children.length-t.slidesToShow,currentSlide:this.state.currentSlide})):this.update(t)},componentDidUpdate:function(){if(this.props.reInit&&this.props.reInit(),this.props.lazyLoad){var t=(0,w.getOnDemandLazySlides)((0,m.default)({},this.props,this.state));t.length>0&&(this.setState(function(e,i){return{lazyLoadedList:e.lazyLoadedList.concat(t)}}),this.props.onLazyLoad&&this.props.onLazyLoad(t))}this.adaptHeight()},onWindowResized:function(){this.update(this.props),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},slickPrev:function(){var t=this;setTimeout(function(){return t.changeSlide({message:"previous"})},0)},slickNext:function(){var t=this;setTimeout(function(){return t.changeSlide({message:"next"})},0)},slickGoTo:function(t){var e=this;t=Number(t),!isNaN(t)&&setTimeout(function(){return e.changeSlide({message:"index",index:t,currentSlide:e.state.currentSlide})},0)},render:function(){var t,e=(0,y.default)("slick-initialized","slick-slider",this.props.className,{"slick-vertical":this.props.vertical}),i={fade:this.props.fade,cssEase:this.props.cssEase,speed:this.props.speed,infinite:this.props.infinite,centerMode:this.props.centerMode,focusOnSelect:this.props.focusOnSelect?this.selectHandler:null,currentSlide:this.state.currentSlide,lazyLoad:this.props.lazyLoad,lazyLoadedList:this.state.lazyLoadedList,rtl:this.props.rtl,slideWidth:this.state.slideWidth,slideHeight:this.state.slideHeight,listHeight:this.state.listHeight,vertical:this.props.vertical,slidesToShow:this.props.slidesToShow,slidesToScroll:this.props.slidesToScroll,slideCount:this.state.slideCount,trackStyle:this.state.trackStyle,variableWidth:this.props.variableWidth,unslick:this.props.unslick,centerPadding:this.props.centerPadding};if(this.props.dots===!0&&this.state.slideCount>=this.props.slidesToShow){var s={dotsClass:this.props.dotsClass,slideCount:this.state.slideCount,slidesToShow:this.props.slidesToShow,currentSlide:this.state.currentSlide,slidesToScroll:this.props.slidesToScroll,clickHandler:this.changeSlide,children:this.props.children,customPaging:this.props.customPaging,infinite:this.props.infinite,appendDots:this.props.appendDots};t=o.default.createElement(T.Dots,s)}var r,a,l={infinite:this.props.infinite,centerMode:this.props.centerMode,currentSlide:this.state.currentSlide,slideCount:this.state.slideCount,slidesToShow:this.props.slidesToShow,prevArrow:this.props.prevArrow,nextArrow:this.props.nextArrow,clickHandler:this.changeSlide};this.props.arrows&&(r=o.default.createElement(k.PrevArrow,l),a=o.default.createElement(k.NextArrow,l));var c=null;this.props.vertical&&(c={height:this.state.listHeight});var d=null;this.props.vertical===!1?this.props.centerMode===!0&&(d={padding:"0px "+this.props.centerPadding}):this.props.centerMode===!0&&(d={padding:this.props.centerPadding+" 0px"});var u=(0,m.default)({},c,d),p={className:"slick-list",style:u,onMouseDown:this.swipeStart,onMouseMove:this.state.dragging?this.swipeMove:null,onMouseUp:this.swipeEnd,onMouseLeave:this.state.dragging?this.swipeEnd:null,onTouchStart:this.swipeStart,onTouchMove:this.state.dragging?this.swipeMove:null,onTouchEnd:this.swipeEnd,onTouchCancel:this.state.dragging?this.swipeEnd:null,onKeyDown:this.props.accessibility?this.keyHandler:null},h={className:e,onMouseEnter:this.onInnerSliderEnter,onMouseLeave:this.onInnerSliderLeave,onMouseOver:this.onInnerSliderOver};return this.props.unslick&&(p={className:"slick-list"},h={className:e}),o.default.createElement("div",h,this.props.unslick?"":r,o.default.createElement("div",n({ref:this.listRefHandler},p),o.default.createElement(b.Track,n({ref:this.trackRefHandler},i),this.props.children)),this.props.unslick?"":a,this.props.unslick?"":t)}})},function(t,e,i){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var n=i(5),r=i(9),o=(s(r),i(7)),a=s(o),l=i(6),c=s(l),d=i(8),u={changeSlide:function(t){var e,i,s,n,r,o=this.props,a=o.slidesToScroll,l=o.slidesToShow,c=o.centerMode,u=o.rtl,p=this.state,h=p.slideCount,f=p.currentSlide;if(n=h%a!==0,e=n?0:(h-f)%a,"previous"===t.message)s=0===e?a:l-e,r=f-s,this.props.lazyLoad&&!this.props.infinite&&(i=f-s,r=i===-1?h-1:i);else if("next"===t.message)s=0===e?a:e,r=f+s,this.props.lazyLoad&&!this.props.infinite&&(r=(f+a)%h+e);else if("dots"===t.message){if(r=t.index*t.slidesToScroll,r===t.currentSlide)return}else if("children"===t.message){if(r=t.index,r===t.currentSlide)return;if(this.props.infinite){var g=(0,d.siblingDirection)({currentSlide:f,targetSlide:r,slidesToShow:l,centerMode:c,slideCount:h,rtl:u});r>t.currentSlide&&"left"===g?r-=h:r<t.currentSlide&&"right"===g&&(r+=h)}}else if("index"===t.message&&(r=Number(t.index),r===t.currentSlide))return;this.slideHandler(r)},keyHandler:function(t){t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&this.props.accessibility===!0?this.changeSlide({message:this.props.rtl===!0?"next":"previous"}):39===t.keyCode&&this.props.accessibility===!0&&this.changeSlide({message:this.props.rtl===!0?"previous":"next"}))},selectHandler:function(t){this.changeSlide(t)},swipeStart:function(t){var e,i;this.props.swipe!==!1&&(this.props.draggable===!1&&t.type.indexOf("mouse")!==-1||(e=void 0!==t.touches?t.touches[0].pageX:t.clientX,i=void 0!==t.touches?t.touches[0].pageY:t.clientY,this.setState({dragging:!0,touchObject:{startX:e,startY:i,curX:e,curY:i}})))},swipeMove:function(t){if(!this.state.dragging)return void t.preventDefault();if(!this.state.scrolling){if(this.state.animating)return void t.preventDefault();this.props.vertical&&this.props.swipeToSlide&&this.props.verticalSwiping&&t.preventDefault();var e,i,s,r=this.state.touchObject;i=(0,n.getTrackLeft)((0,a.default)({slideIndex:this.state.currentSlide,trackRef:this.track},this.props,this.state)),r.curX=t.touches?t.touches[0].pageX:t.clientX,r.curY=t.touches?t.touches[0].pageY:t.clientY,r.swipeLength=Math.round(Math.sqrt(Math.pow(r.curX-r.startX,2)));var o=Math.round(Math.sqrt(Math.pow(r.curY-r.startY,2)));if(!this.props.verticalSwiping&&!this.state.swiping&&o>10)return void this.setState({scrolling:!0});this.props.verticalSwiping&&(r.swipeLength=o),s=(this.props.rtl===!1?1:-1)*(r.curX>r.startX?1:-1),this.props.verticalSwiping&&(s=r.curY>r.startY?1:-1);var l=this.state.currentSlide,c=Math.ceil(this.state.slideCount/this.props.slidesToScroll),d=this.swipeDirection(this.state.touchObject),u=r.swipeLength;this.props.infinite===!1&&(0===l&&"right"===d||l+1>=c&&"left"===d)&&(u=r.swipeLength*this.props.edgeFriction,this.state.edgeDragged===!1&&this.props.edgeEvent&&(this.props.edgeEvent(d),this.setState({edgeDragged:!0}))),this.state.swiped===!1&&this.props.swipeEvent&&(this.props.swipeEvent(d),this.setState({swiped:!0})),e=this.props.vertical?i+u*(this.state.listHeight/this.state.listWidth)*s:this.props.rtl?i-u*s:i+u*s,this.props.verticalSwiping&&(e=i+u*s),this.setState({touchObject:r,swipeLeft:e,trackStyle:(0,n.getTrackCSS)((0,a.default)({left:e},this.props,this.state))}),Math.abs(r.curX-r.startX)<.8*Math.abs(r.curY-r.startY)||r.swipeLength>10&&(this.setState({swiping:!0}),t.preventDefault())}},getNavigableIndexes:function(){var t=void 0,e=0,i=0,s=[];for(this.props.infinite?(e=this.props.slidesToShow*-1,i=this.props.slidesToShow*-1,t=2*this.state.slideCount):t=this.state.slideCount;e<t;)s.push(e),e=i+this.props.slidesToScroll,i+=this.props.slidesToScroll<=this.props.slidesToShow?this.props.slidesToScroll:this.props.slidesToShow;return s},checkNavigable:function(t){var e=this.getNavigableIndexes(),i=0;if(t>e[e.length-1])t=e[e.length-1];else for(var s in e){if(t<e[s]){t=i;break}i=e[s]}return t},getSlideCount:function(){var t=this,e=this.props.centerMode?this.state.slideWidth*Math.floor(this.props.slidesToShow/2):0;if(this.props.swipeToSlide){var i=void 0,s=c.default.findDOMNode(this.list),n=s.querySelectorAll(".slick-slide");Array.from(n).every(function(s){if(t.props.vertical){if(s.offsetTop+t.getHeight(s)/2>t.state.swipeLeft*-1)return i=s,!1}else if(s.offsetLeft-e+t.getWidth(s)/2>t.state.swipeLeft*-1)return i=s,!1;return!0});var r=this.props.rtl===!0?this.state.slideCount-this.state.currentSlide:this.state.currentSlide,o=Math.abs(i.dataset.index-r)||1;return o}return this.props.slidesToScroll},swipeEnd:function(t){if(!this.state.dragging)return void(this.props.swipe&&t.preventDefault());var e=this.state.touchObject,i=this.state.listWidth/this.props.touchThreshold,s=this.swipeDirection(e);this.props.verticalSwiping&&(i=this.state.listHeight/this.props.touchThreshold);var r=this.state.scrolling;if(this.setState({dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}}),!r&&e.swipeLength)if(e.swipeLength>i){t.preventDefault(),this.props.onSwipe&&this.props.onSwipe(s);var o=void 0,l=void 0;switch(s){case"left":case"down":l=this.state.currentSlide+this.getSlideCount(),o=this.props.swipeToSlide?this.checkNavigable(l):l,this.setState({currentDirection:0});break;case"right":case"up":l=this.state.currentSlide-this.getSlideCount(),o=this.props.swipeToSlide?this.checkNavigable(l):l,this.setState({currentDirection:1});break;default:o=this.state.currentSlide}this.slideHandler(o)}else{var c=(0,n.getTrackLeft)((0,a.default)({slideIndex:this.state.currentSlide,trackRef:this.track},this.props,this.state));this.setState({trackStyle:(0,n.getTrackAnimateCSS)((0,a.default)({left:c},this.props,this.state))})}},onInnerSliderEnter:function(t){this.props.autoplay&&this.props.pauseOnHover&&this.pause()},onInnerSliderOver:function(t){this.props.autoplay&&this.props.pauseOnHover&&this.pause()},onInnerSliderLeave:function(t){this.props.autoplay&&this.props.pauseOnHover&&this.autoPlay()}};e.default=u},function(t,e,i){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.getTrackLeft=e.getTrackAnimateCSS=e.getTrackCSS=void 0;var n=i(6),r=s(n),o=i(7),a=s(o),l=i(8),c=function(t,e){return e.reduce(function(e,i){return e&&t.hasOwnProperty(i)},!0)?null:console.error("Keys Missing",t)},d=e.getTrackCSS=function(t){c(t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var e,i,s=t.slideCount+2*t.slidesToShow;t.vertical?i=s*t.slideHeight:e=(0,l.getTotalSlides)(t)*t.slideWidth;var n={opacity:1,WebkitTransform:t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",transform:t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",transition:"",WebkitTransition:"",msTransform:t.vertical?"translateY("+t.left+"px)":"translateX("+t.left+"px)"};return t.fade&&(n={opacity:1}),e&&(0,a.default)(n,{width:e}),i&&(0,a.default)(n,{height:i}),window&&!window.addEventListener&&window.attachEvent&&(t.vertical?n.marginTop=t.left+"px":n.marginLeft=t.left+"px"),n};e.getTrackAnimateCSS=function(t){c(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var e=d(t);return e.WebkitTransition="-webkit-transform "+t.speed+"ms "+t.cssEase,e.transition="transform "+t.speed+"ms "+t.cssEase,e},e.getTrackLeft=function(t){if(t.unslick)return 0;c(t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var e,i,s=t.slideIndex,n=t.trackRef,o=t.infinite,a=t.centerMode,d=t.slideCount,u=t.slidesToShow,p=t.slidesToScroll,h=t.slideWidth,f=t.listWidth,g=t.variableWidth,v=t.slideHeight,y=t.fade,S=t.vertical,m=0,w=0;if(y||1===t.slideCount)return 0;var b=0;if(o?(b=-(0,l.getPreClones)(t),d%p!==0&&s+p>d&&(b=-(s>d?u-(s-d):d%p)),a&&(b+=parseInt(u/2))):(d%p!==0&&s+p>d&&(b=u-d%p),a&&(b=parseInt(u/2))),m=b*h,w=b*v,e=S?s*v*-1+w:s*h*-1+m,g===!0){var T,k=r.default.findDOMNode(n).children[d-1],C=-k.offsetLeft+f-k.offsetWidth;if(T=s+(0,l.getPreClones)(t),i=r.default.findDOMNode(n).childNodes[T],e=i?i.offsetLeft*-1:0,a===!0){T=o?s+(0,l.getPreClones)(t):s,i=r.default.findDOMNode(n).children[T],e=0;for(var x=0;x<T;x++)e-=r.default.findDOMNode(n).children[x].offsetWidth;e+=(f-i.offsetWidth)/2}t.infinite===!1&&e<C&&(e=C)}return e}},function(t,i){t.exports=e},function(t,e){/*
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.Slider=e(require("react"),require("react-dom")):t.Slider=e(t.React,t.ReactDOM)}(this,function(t,e){return function(t){function e(n){if(i[n])return i[n].exports;var s=i[n]={exports:{},id:n,loaded:!1};return t[n].call(s.exports,s,s.exports,e),s.loaded=!0,s.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var s=i(1),r=n(s);e.default=r.default},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},l=i(2),c=n(l),u=i(3),d=i(7),p=n(d),h=i(23),f=n(h),g=i(12),v=n(g),y=i(25),S=n(y),m=S.default&&i(26),w=function(t){function e(i){s(this,e);var n=r(this,t.call(this,i));return n.innerSliderRefHandler=function(t){return n.innerSlider=t},n.slickPrev=function(){return n.innerSlider.slickPrev()},n.slickNext=function(){return n.innerSlider.slickNext()},n.slickGoTo=function(t){return n.innerSlider.slickGoTo(t)},n.slickPause=function(){return n.innerSlider.pause()},n.slickPlay=function(){return n.innerSlider.autoPlay()},n.state={breakpoint:null},n._responsiveMediaHandlers=[],n}return o(e,t),e.prototype.media=function(t,e){m.register(t,e),this._responsiveMediaHandlers.push({query:t,handler:e})},e.prototype.componentWillMount=function(){var t=this;if(this.props.responsive){var e=this.props.responsive.map(function(t){return t.breakpoint});e.sort(function(t,e){return t-e}),e.forEach(function(i,n){var s=void 0;s=0===n?(0,f.default)({minWidth:0,maxWidth:i}):(0,f.default)({minWidth:e[n-1]+1,maxWidth:i}),S.default&&t.media(s,function(){t.setState({breakpoint:i})})});var i=(0,f.default)({minWidth:e.slice(-1)[0]});S.default&&this.media(i,function(){t.setState({breakpoint:null})})}},e.prototype.componentWillUnmount=function(){this._responsiveMediaHandlers.forEach(function(t){m.unregister(t.query,t.handler)})},e.prototype.render=function(){var t,e,i=this;this.state.breakpoint?(e=this.props.responsive.filter(function(t){return t.breakpoint===i.state.breakpoint}),t="unslick"===e[0].settings?"unslick":(0,p.default)({},v.default,this.props,e[0].settings)):t=(0,p.default)({},v.default,this.props),t.centerMode&&(t.slidesToScroll>1&&console.warn("slidesToScroll should be equal to 1 in centerMode, you are using "+t.slidesToScroll),t.slidesToScroll=1),t.fade&&(t.slidesToShow>1&&console.warn("slidesToShow should be equal to 1 when fade is true, you're using "+t.slidesToShow),t.slidesToScroll>1&&console.warn("slidesToScroll should be equal to 1 when fade is true, you're using "+t.slidesToScroll),t.slidesToShow=1,t.slidesToScroll=1);var n=c.default.Children.toArray(this.props.children);return n=n.filter(function(t){return"string"==typeof t?!!t.trim():!!t}),"unslick"===t?(t=(0,p.default)({unslick:!0},v.default,this.props),t.slidesToShow=n.length,t.className+=" unslicked"):n.length<=t.slidesToShow&&(t.unslick=!0,t.slidesToShow=n.length,t.className+=" unslicked"),c.default.createElement(u.InnerSlider,a({ref:this.innerSliderRefHandler},t),n)},e}(c.default.Component);e.default=w},function(e,i){e.exports=t},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.InnerSlider=void 0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},r=i(2),o=n(r),a=i(4),l=n(a),c=i(9),u=n(c),d=i(11),p=n(d),h=i(12),f=(n(h),i(13)),g=n(f),v=i(19),y=n(v),S=i(7),m=n(S),w=i(10),b=i(5),T=i(20),k=i(21),C=i(22);e.InnerSlider=(0,g.default)({displayName:"InnerSlider",mixins:[u.default,l.default],list:null,track:null,listRefHandler:function(t){this.list=t},trackRefHandler:function(t){this.track=t},getInitialState:function(){return s({},p.default,{currentSlide:this.props.initialSlide})},componentWillMount:function(){if(this.props.init&&this.props.init(),this.props.lazyLoad){var t=(0,w.getOnDemandLazySlides)((0,m.default)({},this.props,this.state));t.length>0&&(this.setState(function(e,i){return{lazyLoadedList:e.lazyLoadedList.concat(t)}}),this.props.onLazyLoad&&this.props.onLazyLoad(t))}},componentDidMount:function(){var t=this,e=(0,m.default)({listRef:this.list,trackRef:this.track},this.props),i=(0,w.initializedState)(e);(0,m.default)(e,{slideIndex:i.currentSlide},i);var n=(0,b.getTrackLeft)(e);(0,m.default)(e,{left:n});var s=(0,b.getTrackCSS)(e);i.trackStyle=s,this.setState(i,function(){t.adaptHeight(),t.autoPlay()}),window&&(window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized))},componentWillUnmount:function(){this.animationEndCallback&&clearTimeout(this.animationEndCallback),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer)},componentWillReceiveProps:function(t){var e=this,i=(0,m.default)({listRef:this.list,trackRef:this.track},t,this.state),n=(0,w.initializedState)(i);(0,m.default)(i,{slideIndex:n.currentSlide},n);var s=(0,b.getTrackLeft)(i);(0,m.default)(i,{left:s});var r=(0,b.getTrackCSS)(i);o.default.Children.count(this.props.children)!==o.default.Children.count(t.children)&&(n.trackStyle=r),this.setState(n,function(){e.state.currentSlide>=o.default.Children.count(t.children)&&e.changeSlide({message:"index",index:o.default.Children.count(t.children)-t.slidesToShow,currentSlide:e.state.currentSlide}),t.autoplay?e.autoPlay(t.autoplay):e.pause()})},componentDidUpdate:function(){var t=this,e=document.querySelectorAll(".slick-slide img");if(e.forEach(function(e){e.onload||(e.onload=function(){return setTimeout(function(){return t.update(t.props)},t.props.speed)})}),this.props.reInit&&this.props.reInit(),this.props.lazyLoad){var i=(0,w.getOnDemandLazySlides)((0,m.default)({},this.props,this.state));i.length>0&&(this.setState(function(t,e){return{lazyLoadedList:t.lazyLoadedList.concat(i)}}),this.props.onLazyLoad&&this.props.onLazyLoad(i))}this.adaptHeight()},onWindowResized:function(){this.update(this.props),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},slickPrev:function(){var t=this;setTimeout(function(){return t.changeSlide({message:"previous"})},0)},slickNext:function(){var t=this;setTimeout(function(){return t.changeSlide({message:"next"})},0)},slickGoTo:function(t){var e=this;t=Number(t),!isNaN(t)&&setTimeout(function(){return e.changeSlide({message:"index",index:t,currentSlide:e.state.currentSlide})},0)},render:function(){var t=(0,y.default)("slick-initialized","slick-slider",this.props.className,{"slick-vertical":this.props.vertical}),e=(0,m.default)({},this.props,this.state),i=(0,w.extractObject)(e,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding"]);i.focusOnSelect=this.props.focusOnSelect?this.selectHandler:null;var n;if(this.props.dots===!0&&this.state.slideCount>=this.props.slidesToShow){var r=(0,w.extractObject)(e,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]);r.clickHandler=this.changeSlide,n=o.default.createElement(k.Dots,r)}var a,l,c=(0,w.extractObject)(e,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);c.clickHandler=this.changeSlide,this.props.arrows&&(a=o.default.createElement(C.PrevArrow,c),l=o.default.createElement(C.NextArrow,c));var u=null;this.props.vertical&&(u={height:this.state.listHeight});var d=null;this.props.vertical===!1?this.props.centerMode===!0&&(d={padding:"0px "+this.props.centerPadding}):this.props.centerMode===!0&&(d={padding:this.props.centerPadding+" 0px"});var p=(0,m.default)({},u,d),h={className:"slick-list",style:p,onMouseDown:this.swipeStart,onMouseMove:this.state.dragging?this.swipeMove:null,onMouseUp:this.swipeEnd,onMouseLeave:this.state.dragging?this.swipeEnd:null,onTouchStart:this.swipeStart,onTouchMove:this.state.dragging?this.swipeMove:null,onTouchEnd:this.swipeEnd,onTouchCancel:this.state.dragging?this.swipeEnd:null,onKeyDown:this.props.accessibility?this.keyHandler:null},f={className:t,onMouseEnter:this.onInnerSliderEnter,onMouseLeave:this.onInnerSliderLeave,onMouseOver:this.onInnerSliderOver,dir:"ltr"};return this.props.unslick&&(h={className:"slick-list"},f={className:t}),o.default.createElement("div",f,this.props.unslick?"":a,o.default.createElement("div",s({ref:this.listRefHandler},h),o.default.createElement(T.Track,s({ref:this.trackRefHandler},i),this.props.children)),this.props.unslick?"":l,this.props.unslick?"":n)}})},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var s=i(5),r=i(9),o=(n(r),i(7)),a=n(o),l=i(6),c=n(l),u=i(8),d=i(10),p={changeSlide:function(t){var e,i,n,s,r,o=this.props,a=o.slidesToScroll,l=o.slidesToShow,c=o.centerMode,d=o.rtl,p=this.state,h=p.slideCount,f=p.currentSlide;if(s=h%a!==0,e=s?0:(h-f)%a,"previous"===t.message)n=0===e?a:l-e,r=f-n,this.props.lazyLoad&&!this.props.infinite&&(i=f-n,r=i===-1?h-1:i);else if("next"===t.message)n=0===e?a:e,r=f+n,this.props.lazyLoad&&!this.props.infinite&&(r=(f+a)%h+e);else if("dots"===t.message){if(r=t.index*t.slidesToScroll,r===t.currentSlide)return}else if("children"===t.message){if(r=t.index,r===t.currentSlide)return;if(this.props.infinite){var g=(0,u.siblingDirection)({currentSlide:f,targetSlide:r,slidesToShow:l,centerMode:c,slideCount:h,rtl:d});r>t.currentSlide&&"left"===g?r-=h:r<t.currentSlide&&"right"===g&&(r+=h)}}else if("index"===t.message&&(r=Number(t.index),r===t.currentSlide))return;this.slideHandler(r)},keyHandler:function(t){t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&this.props.accessibility===!0?this.changeSlide({message:this.props.rtl===!0?"next":"previous"}):39===t.keyCode&&this.props.accessibility===!0&&this.changeSlide({message:this.props.rtl===!0?"previous":"next"}))},selectHandler:function(t){this.changeSlide(t)},swipeStart:function(t){"IMG"===t.target.tagName&&t.preventDefault();var e,i;this.props.swipe!==!1&&(this.props.draggable===!1&&t.type.indexOf("mouse")!==-1||(e=void 0!==t.touches?t.touches[0].pageX:t.clientX,i=void 0!==t.touches?t.touches[0].pageY:t.clientY,this.setState({dragging:!0,touchObject:{startX:e,startY:i,curX:e,curY:i}})))},swipeMove:function(t){if(!this.state.dragging)return void t.preventDefault();if(!this.state.scrolling){if(this.state.animating)return void t.preventDefault();this.props.vertical&&this.props.swipeToSlide&&this.props.verticalSwiping&&t.preventDefault();var e,i,n,r=this.state.touchObject;i=(0,s.getTrackLeft)((0,a.default)({slideIndex:this.state.currentSlide,trackRef:this.track},this.props,this.state)),r.curX=t.touches?t.touches[0].pageX:t.clientX,r.curY=t.touches?t.touches[0].pageY:t.clientY,r.swipeLength=Math.round(Math.sqrt(Math.pow(r.curX-r.startX,2)));var o=Math.round(Math.sqrt(Math.pow(r.curY-r.startY,2)));if(!this.props.verticalSwiping&&!this.state.swiping&&o>10)return void this.setState({scrolling:!0});this.props.verticalSwiping&&(r.swipeLength=o),n=(this.props.rtl===!1?1:-1)*(r.curX>r.startX?1:-1),this.props.verticalSwiping&&(n=r.curY>r.startY?1:-1);var l=this.state.currentSlide,c=Math.ceil(this.state.slideCount/this.props.slidesToScroll),u=(0,d.getSwipeDirection)(this.state.touchObject,this.props.verticalSwiping),p=r.swipeLength;this.props.infinite===!1&&(0===l&&"right"===u||l+1>=c&&"left"===u)&&(p=r.swipeLength*this.props.edgeFriction,this.state.edgeDragged===!1&&this.props.edgeEvent&&(this.props.edgeEvent(u),this.setState({edgeDragged:!0}))),this.state.swiped===!1&&this.props.swipeEvent&&(this.props.swipeEvent(u),this.setState({swiped:!0})),e=this.props.vertical?i+p*(this.state.listHeight/this.state.listWidth)*n:this.props.rtl?i-p*n:i+p*n,this.props.verticalSwiping&&(e=i+p*n),this.setState({touchObject:r,swipeLeft:e,trackStyle:(0,s.getTrackCSS)((0,a.default)({left:e},this.props,this.state))}),Math.abs(r.curX-r.startX)<.8*Math.abs(r.curY-r.startY)||r.swipeLength>10&&(this.setState({swiping:!0}),t.preventDefault())}},getNavigableIndexes:function(){var t=void 0,e=0,i=0,n=[];for(this.props.infinite?(e=this.props.slidesToShow*-1,i=this.props.slidesToShow*-1,t=2*this.state.slideCount):t=this.state.slideCount;e<t;)n.push(e),e=i+this.props.slidesToScroll,i+=this.props.slidesToScroll<=this.props.slidesToShow?this.props.slidesToScroll:this.props.slidesToShow;return n},checkNavigable:function(t){var e=this.getNavigableIndexes(),i=0;if(t>e[e.length-1])t=e[e.length-1];else for(var n in e){if(t<e[n]){t=i;break}i=e[n]}return t},getSlideCount:function(){var t=this,e=this.props.centerMode?this.state.slideWidth*Math.floor(this.props.slidesToShow/2):0;if(this.props.swipeToSlide){var i=void 0,n=c.default.findDOMNode(this.list),s=n.querySelectorAll(".slick-slide");if(Array.from(s).every(function(n){if(t.props.vertical){if(n.offsetTop+(0,d.getHeight)(n)/2>t.state.swipeLeft*-1)return i=n,!1}else if(n.offsetLeft-e+(0,d.getWidth)(n)/2>t.state.swipeLeft*-1)return i=n,!1;return!0}),!i)return 0;var r=this.props.rtl===!0?this.state.slideCount-this.state.currentSlide:this.state.currentSlide,o=Math.abs(i.dataset.index-r)||1;return o}return this.props.slidesToScroll},swipeEnd:function(t){if(!this.state.dragging)return void(this.props.swipe&&t.preventDefault());var e=this.state.touchObject,i=this.state.listWidth/this.props.touchThreshold,n=(0,d.getSwipeDirection)(e,this.props.verticalSwiping);this.props.verticalSwiping&&(i=this.state.listHeight/this.props.touchThreshold);var r=this.state.scrolling;if(this.setState({dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}}),!r&&e.swipeLength)if(e.swipeLength>i){t.preventDefault(),this.props.onSwipe&&this.props.onSwipe(n);var o=void 0,l=void 0;switch(n){case"left":case"up":l=this.state.currentSlide+this.getSlideCount(),o=this.props.swipeToSlide?this.checkNavigable(l):l,this.setState({currentDirection:0});break;case"right":case"down":l=this.state.currentSlide-this.getSlideCount(),o=this.props.swipeToSlide?this.checkNavigable(l):l,this.setState({currentDirection:1});break;default:o=this.state.currentSlide}this.slideHandler(o)}else{var c=(0,s.getTrackLeft)((0,a.default)({slideIndex:this.state.currentSlide,trackRef:this.track},this.props,this.state));this.setState({trackStyle:(0,s.getTrackAnimateCSS)((0,a.default)({left:c},this.props,this.state))})}},onInnerSliderEnter:function(t){this.props.autoplay&&this.props.pauseOnHover&&this.pause()},onInnerSliderOver:function(t){this.props.autoplay&&this.props.pauseOnHover&&this.pause()},onInnerSliderLeave:function(t){this.props.autoplay&&this.props.pauseOnHover&&this.autoPlay()}};e.default=p},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.getTrackLeft=e.getTrackAnimateCSS=e.getTrackCSS=void 0;var s=i(6),r=n(s),o=i(7),a=n(o),l=i(8),c=function(t,e){return e.reduce(function(e,i){return e&&t.hasOwnProperty(i)},!0)?null:console.error("Keys Missing",t)},u=e.getTrackCSS=function(t){c(t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var e,i,n=t.slideCount+2*t.slidesToShow;t.vertical?i=n*t.slideHeight:e=(0,l.getTotalSlides)(t)*t.slideWidth;var s={opacity:1,WebkitTransform:t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",transform:t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",transition:"",WebkitTransition:"",msTransform:t.vertical?"translateY("+t.left+"px)":"translateX("+t.left+"px)"};return t.fade&&(s={opacity:1}),e&&(0,a.default)(s,{width:e}),i&&(0,a.default)(s,{height:i}),window&&!window.addEventListener&&window.attachEvent&&(t.vertical?s.marginTop=t.left+"px":s.marginLeft=t.left+"px"),s};e.getTrackAnimateCSS=function(t){c(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var e=u(t);return e.WebkitTransition="-webkit-transform "+t.speed+"ms "+t.cssEase,e.transition="transform "+t.speed+"ms "+t.cssEase,e},e.getTrackLeft=function(t){if(t.unslick)return 0;c(t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var e,i,n=t.slideIndex,s=t.trackRef,o=t.infinite,a=t.centerMode,u=t.slideCount,d=t.slidesToShow,p=t.slidesToScroll,h=t.slideWidth,f=t.listWidth,g=t.variableWidth,v=t.slideHeight,y=t.fade,S=t.vertical,m=0,w=0;if(y||1===t.slideCount)return 0;var b=0;if(o?(b=-(0,l.getPreClones)(t),u%p!==0&&n+p>u&&(b=-(n>u?d-(n-u):u%p)),a&&(b+=parseInt(d/2))):(u%p!==0&&n+p>u&&(b=d-u%p),a&&(b=parseInt(d/2))),m=b*h,w=b*v,e=S?n*v*-1+w:n*h*-1+m,g===!0){var T;r.default.findDOMNode(s).children[u-1];if(T=n+(0,l.getPreClones)(t),i=r.default.findDOMNode(s).childNodes[T],e=i?i.offsetLeft*-1:0,a===!0){T=o?n+(0,l.getPreClones)(t):n,i=r.default.findDOMNode(s).children[T],e=0;for(var k=0;k<T;k++)e-=r.default.findDOMNode(s).children[k].offsetWidth;e-=parseInt(t.centerPadding),e+=(f-i.offsetWidth)/2}}return e}},function(t,i){t.exports=e},function(t,e){/*
object-assign

@@ -6,3 +6,3 @@ (c) Sindre Sorhus

*/
"use strict";function i(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function s(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;var s=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==s.join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=s()?Object.assign:function(t,e){for(var s,a,l=i(t),c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var d in s)r.call(s,d)&&(l[d]=s[d]);if(n){a=n(s);for(var u=0;u<a.length;u++)o.call(s,a[u])&&(l[a[u]]=s[a[u]])}}return l}},function(t,e){"use strict";function i(t){var e=t.slideCount,i=t.variableWidth,s=t.slidesToShow,n=t.centerMode,r=t.unslick;return r?0:i?e:s+(n?1:0)}function s(t){var e=t.slideCount,i=t.unslick;return i?0:e}function n(t){var e=t.variableWidth,n=t.slideCount,r=t.slidesToShow,o=t.centerMode,a=t.unslick;return 1===n?1:i({slideCount:n,variableWidth:e,slidesToShow:r,centerMode:o,unslick:a})+n+s({slideCount:n,unslick:a})}function r(t){var e=t.currentSlide,i=t.targetSlide,s=t.slidesToShow,n=t.centerMode,r=t.rtl;return i>e?i>e+o(s,n,r)?"left":"right":i<e-a(s,n,r)?"right":"left"}function o(t,e,i){if(e){var s=(t-1)/2+1;return i&&t%2===0&&(s+=1),s}return i?0:t-1}function a(t,e,i){if(e){var s=(t-1)/2+1;return i||t%2!==0||(s+=1),s}return i?t-1:0}e.__esModule=!0,e.getPreClones=i,e.getPostClones=s,e.getTotalSlides=n,e.siblingDirection=r,e.slidesOnRight=o,e.slidesOnLeft=a},function(t,e,i){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},r=i(2),o=s(r),a=i(6),l=s(a),c=i(5),d=i(7),u=s(d),p=i(10),h={initialize:function(t){var e,i=l.default.findDOMNode(this.list),s=o.default.Children.count(t.children),n=this.getWidth(i),r=this.getWidth(l.default.findDOMNode(this.track));if(t.vertical)e=Math.ceil(this.getWidth(l.default.findDOMNode(this)));else{var a=t.centerMode&&2*parseInt(t.centerPadding);"%"===t.centerPadding.slice(-1)&&(a*=n/100),e=Math.ceil((this.getWidth(l.default.findDOMNode(this))-a)/t.slidesToShow)}var d=this.getHeight(i.querySelector('[data-index="0"]')),p=d*t.slidesToShow,h=t.rtl?s-1-t.initialSlide:t.initialSlide;this.setState({slideCount:s,slideWidth:e,listWidth:n,trackWidth:r,currentSlide:h,slideHeight:d,listHeight:p},function(){var e=(0,c.getTrackLeft)((0,u.default)({slideIndex:this.state.currentSlide,trackRef:this.track},t,this.state)),i=(0,c.getTrackCSS)((0,u.default)({left:e},t,this.state));this.setState({trackStyle:i}),this.autoPlay()})},update:function(t){var e,i=l.default.findDOMNode(this.list),s=o.default.Children.count(t.children),n=this.getWidth(i),r=this.getWidth(l.default.findDOMNode(this.track));if(t.vertical)e=Math.ceil(this.getWidth(l.default.findDOMNode(this)));else{var a=t.centerMode&&2*parseInt(t.centerPadding);"%"===t.centerPadding.slice(-1)&&(a*=n/100),e=Math.ceil((this.getWidth(l.default.findDOMNode(this))-a)/t.slidesToShow)}var d=this.getHeight(i.querySelector('[data-index="0"]')),h=d*t.slidesToShow;t.autoplay?this.autoPlay(t.autoplay):this.pause();var f=(0,p.getOnDemandLazySlides)({},this.props,this.state);f.length>0&&this.props.onLazyLoad&&this.props.onLazyLoad(f);var g=this.state.lazyLoadedList;this.setState({slideCount:s,slideWidth:e,listWidth:n,trackWidth:r,slideHeight:d,listHeight:h,lazyLoadedList:g.concat(f)},function(){var e=(0,c.getTrackLeft)((0,u.default)({slideIndex:this.state.currentSlide,trackRef:this.track},t,this.state)),i=(0,c.getTrackCSS)((0,u.default)({left:e},t,this.state));this.setState({trackStyle:i})})},getWidth:function(t){return t&&(t.getBoundingClientRect().width||t.offsetWidth)||0},getHeight:function(t){return t&&(t.getBoundingClientRect().height||t.offsetHeight)||0},adaptHeight:function(){if(this.props.adaptiveHeight){var t='[data-index="'+this.state.currentSlide+'"]';if(this.list){var e=l.default.findDOMNode(this.list),i=e.querySelector(t)||{};e.style.height=(i.offsetHeight||0)+"px"}}},canGoNext:function(t){var e=!0;return t.infinite||(t.centerMode?t.currentSlide>=t.slideCount-1&&(e=!1):(t.slideCount<=t.slidesToShow||t.currentSlide>=t.slideCount-t.slidesToShow)&&(e=!1)),e},slideHandler:function(t){var e,i,s,n,r,o=this;if(!this.props.waitForAnimate||!this.state.animating){if(this.props.fade){if(i=this.state.currentSlide,this.props.infinite===!1&&(t<0||t>=this.state.slideCount))return;return e=t<0?t+this.state.slideCount:t>=this.state.slideCount?t-this.state.slideCount:t,this.props.lazyLoad&&this.state.lazyLoadedList.indexOf(e)<0&&(this.setState(function(t,i){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),this.props.onLazyLoad&&this.props.onLazyLoad([e])),r=function(){o.setState({animating:!1}),o.props.afterChange&&o.props.afterChange(e),delete o.animationEndCallback},this.setState({animating:!0,currentSlide:e},function(){this.props.asNavFor&&this.props.asNavFor.innerSlider.state.currentSlide!==this.state.currentSlide&&this.props.asNavFor.innerSlider.slideHandler(t),this.animationEndCallback=setTimeout(r,this.props.speed)}),this.props.beforeChange&&this.props.beforeChange(this.state.currentSlide,e),void this.autoPlay()}if(e=t,e<0?i=this.props.infinite===!1?0:this.state.slideCount%this.props.slidesToScroll!==0?this.state.slideCount-this.state.slideCount%this.props.slidesToScroll:this.state.slideCount+e:this.props.centerMode&&e>=this.state.slideCount?this.props.infinite===!1?(e=this.state.slideCount-1,i=this.state.slideCount-1):(e=this.state.slideCount,i=0):i=e>=this.state.slideCount?this.props.infinite===!1?this.state.slideCount-this.props.slidesToShow:this.state.slideCount%this.props.slidesToScroll!==0?0:e-this.state.slideCount:this.state.currentSlide+this.slidesToShow<this.state.slideCount&&e+this.props.slidesToShow>=this.state.slideCount?this.props.infinite===!1?this.state.slideCount-this.props.slidesToShow:(this.state.slideCount-e)%this.props.slidesToScroll!==0?this.state.slideCount-this.props.slidesToShow:e:e,s=(0,c.getTrackLeft)((0,u.default)({slideIndex:e,trackRef:this.track},this.props,this.state)),n=(0,c.getTrackLeft)((0,u.default)({slideIndex:i,trackRef:this.track},this.props,this.state)),this.props.infinite===!1&&(s===n&&(e=i),s=n),this.props.beforeChange&&this.props.beforeChange(this.state.currentSlide,i),this.props.lazyLoad){var a=(0,p.getOnDemandLazySlides)((0,u.default)({},this.props,this.state,{currentSlide:e}));a.length>0&&(this.setState(function(t,e){return{lazyLoadedList:t.lazyLoadedList.concat(a)}}),this.props.onLazyLoad&&this.props.onLazyLoad(a))}if(this.props.useCSS===!1)this.setState({currentSlide:i,trackStyle:(0,c.getTrackCSS)((0,u.default)({left:n},this.props,this.state))},function(){this.props.afterChange&&this.props.afterChange(i)});else{var l={animating:!1,currentSlide:i,trackStyle:(0,c.getTrackCSS)((0,u.default)({left:n},this.props,this.state)),swipeLeft:null};r=function(){o.setState(l,function(){o.props.afterChange&&o.props.afterChange(i),delete o.animationEndCallback})},this.setState({animating:!0,currentSlide:i,trackStyle:(0,c.getTrackAnimateCSS)((0,u.default)({left:s},this.props,this.state))},function(){this.props.asNavFor&&this.props.asNavFor.innerSlider.state.currentSlide!==this.state.currentSlide&&this.props.asNavFor.innerSlider.slideHandler(t),this.animationEndCallback=setTimeout(r,this.props.speed)})}this.autoPlay()}},swipeDirection:function(t){var e,i,s,n;return e=t.startX-t.curX,i=t.startY-t.curY,s=Math.atan2(i,e),n=Math.round(180*s/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?"left":n>=135&&n<=225?"right":this.props.verticalSwiping===!0?n>=35&&n<=135?"down":"up":"vertical"},play:function(){var t;if(this.props.rtl)t=this.state.currentSlide-this.props.slidesToScroll;else{if(!this.canGoNext(n({},this.props,this.state)))return!1;t=this.state.currentSlide+this.props.slidesToScroll}this.slideHandler(t)},autoPlay:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.autoplayTimer&&clearTimeout(this.autoplayTimer),(t||this.props.autoplay)&&(this.autoplayTimer=setTimeout(this.play,this.props.autoplaySpeed))},pause:function(){this.autoplayTimer&&(clearTimeout(this.autoplayTimer),this.autoplayTimer=null)}};e.default=h},function(t,e){"use strict";e.__esModule=!0;var i=(e.getOnDemandLazySlides=function(t){for(var e=[],n=i(t),r=s(t),o=n;o<r;o++)t.lazyLoadedList.indexOf(o)<0&&e.push(o);return e},e.getRequiredLazySlides=function(t){for(var e=[],n=i(t),r=s(t),o=n;o<r;o++)e.push(o);return e},e.lazyStartIndex=function(t){return t.currentSlide-n(t)}),s=e.lazyEndIndex=function(t){return t.currentSlide+r(t)},n=e.slidesOnLeft=function(t){return t.centerMode?Math.floor(t.slidesToShow/2)+(parseInt(t.centerPadding)>0?1:0):0},r=e.slidesOnRight=function(t){return t.centerMode?Math.floor((t.slidesToShow-1)/2)+1+(parseInt(t.centerPadding)>0?1:0):t.slidesToShow}},function(t,e){"use strict";var i={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,listWidth:null,listHeight:null,scrolling:!1,slideCount:null,slideWidth:null,slideHeight:null,swiping:!1,swipeLeft:null,touchObject:{startX:0,startY:0,curX:0,curY:0},lazyLoadedList:[],initialized:!1,edgeDragged:!1,swiped:!1,trackStyle:{},trackWidth:0};t.exports=i},function(t,e,i){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var n=i(2),r=s(n),o={className:"",accessibility:!0,adaptiveHeight:!1,arrows:!0,autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t){return r.default.createElement("button",null,t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:!1,pauseOnHover:!0,responsive:null,rtl:!1,slide:"div",slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,afterChange:null,beforeChange:null,edgeEvent:null,init:null,swipeEvent:null,nextArrow:null,prevArrow:null,appendDots:function(t){return r.default.createElement("ul",{style:{display:"block"}},t)}};e.default=o},function(t,e,i){"use strict";var s=i(2),n=i(14);if("undefined"==typeof s)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var r=(new s.Component).updater;t.exports=n(s.Component,s.isValidElement,r)},function(t,e,i){"use strict";function s(t){return t}function n(t,e,i){function n(t,e,i){for(var s in e)e.hasOwnProperty(s)&&c("function"==typeof e[s],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",t.displayName||"ReactClass",r[i],s)}function u(t,e){var i=b.hasOwnProperty(e)?b[e]:null;x.hasOwnProperty(e)&&l("OVERRIDE_BASE"===i,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",e),t&&l("DEFINE_MANY"===i||"DEFINE_MANY_MERGED"===i,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",e)}function p(t,i){if(!i){var s=typeof i,n="object"===s&&null!==i;return void c(n,"%s: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got %s.",t.displayName||"ReactClass",null===i?null:s)}l("function"!=typeof i,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),l(!e(i),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=t.prototype,o=r.__reactAutoBindPairs;i.hasOwnProperty(d)&&T.mixins(t,i.mixins);for(var a in i)if(i.hasOwnProperty(a)&&a!==d){var p=i[a],h=r.hasOwnProperty(a);if(u(h,a),T.hasOwnProperty(a))T[a](t,p);else{var f=b.hasOwnProperty(a),y="function"==typeof p,S=y&&!f&&!h&&i.autobind!==!1;if(S)o.push(a,p),r[a]=p;else if(h){var m=b[a];l(f&&("DEFINE_MANY_MERGED"===m||"DEFINE_MANY"===m),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,a),"DEFINE_MANY_MERGED"===m?r[a]=g(r[a],p):"DEFINE_MANY"===m&&(r[a]=v(r[a],p))}else r[a]=p,"function"==typeof p&&i.displayName&&(r[a].displayName=i.displayName+"_"+a)}}}function h(t,e){if(e)for(var i in e){var s=e[i];if(e.hasOwnProperty(i)){var n=i in T;l(!n,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',i);var r=i in t;l(!r,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",i),t[i]=s}}}function f(t,e){l(t&&e&&"object"==typeof t&&"object"==typeof e,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var i in e)e.hasOwnProperty(i)&&(l(void 0===t[i],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",i),t[i]=e[i]);return t}function g(t,e){return function(){var i=t.apply(this,arguments),s=e.apply(this,arguments);if(null==i)return s;if(null==s)return i;var n={};return f(n,i),f(n,s),n}}function v(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function y(t,e){var i=e.bind(t);i.__reactBoundContext=t,i.__reactBoundMethod=e,i.__reactBoundArguments=null;var s=t.constructor.displayName,n=i.bind;return i.bind=function(r){for(var o=arguments.length,a=Array(o>1?o-1:0),l=1;l<o;l++)a[l-1]=arguments[l];if(r!==t&&null!==r)c(!1,"bind(): React component methods may only be bound to the component instance. See %s",s);else if(!a.length)return c(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",s),i;var d=n.apply(i,arguments);return d.__reactBoundContext=t,d.__reactBoundMethod=e,d.__reactBoundArguments=a,d},i}function S(t){for(var e=t.__reactAutoBindPairs,i=0;i<e.length;i+=2){var s=e[i],n=e[i+1];t[s]=y(t,n)}}function m(t){var e=s(function(t,s,n){c(this instanceof e,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"),this.__reactAutoBindPairs.length&&S(this),this.props=t,this.context=s,this.refs=a,this.updater=n||i,this.state=null;var r=this.getInitialState?this.getInitialState():null;void 0===r&&this.getInitialState._isMockFunction&&(r=null),l("object"==typeof r&&!Array.isArray(r),"%s.getInitialState(): must return an object or null",e.displayName||"ReactCompositeComponent"),this.state=r});e.prototype=new E,e.prototype.constructor=e,e.prototype.__reactAutoBindPairs=[],w.forEach(p.bind(null,e)),p(e,k),p(e,t),p(e,C),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),e.getDefaultProps&&(e.getDefaultProps.isReactClassApproved={}),e.prototype.getInitialState&&(e.prototype.getInitialState.isReactClassApproved={}),l(e.prototype.render,"createClass(...): Class specification must implement a `render` method."),c(!e.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",t.displayName||"A component"),c(!e.prototype.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",t.displayName||"A component");for(var n in b)e.prototype[n]||(e.prototype[n]=null);return e}var w=[],b={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},T={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var i=0;i<e.length;i++)p(t,e[i])},childContextTypes:function(t,e){n(t,e,"childContext"),t.childContextTypes=o({},t.childContextTypes,e)},contextTypes:function(t,e){n(t,e,"context"),t.contextTypes=o({},t.contextTypes,e)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=g(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,e){n(t,e,"prop"),t.propTypes=o({},t.propTypes,e)},statics:function(t,e){h(t,e)},autobind:function(){}},k={componentDidMount:function(){this.__isMounted=!0}},C={componentWillUnmount:function(){this.__isMounted=!1}},x={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t,e)},isMounted:function(){return c(this.__didWarnIsMounted,"%s: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.",this.constructor&&this.constructor.displayName||this.name||"Component"),this.__didWarnIsMounted=!0,!!this.__isMounted}},E=function(){};return o(E.prototype,t.prototype,x),m}var r,o=i(7),a=i(15),l=i(16),c=i(17),d="mixins";r={prop:"prop",context:"context",childContext:"child context"},t.exports=n},function(t,e,i){"use strict";var s={};Object.freeze(s),t.exports=s},function(t,e,i){"use strict";function s(t,e,i,s,r,o,a,l){if(n(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[i,s,r,o,a,l],u=0;c=new Error(e.replace(/%s/g,function(){return d[u++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var n=function(t){};n=function(t){if(void 0===t)throw new Error("invariant requires an error message argument")},t.exports=s},function(t,e,i){"use strict";var s=i(18),n=s,r=function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),s=1;s<e;s++)i[s-1]=arguments[s];var n=0,r="Warning: "+t.replace(/%s/g,function(){return i[n++]});"undefined"!=typeof console&&console.error(r);try{throw new Error(r)}catch(t){}};n=function(t,e){if(void 0===e)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==e.indexOf("Failed Composite propType: ")&&!t){for(var i=arguments.length,s=Array(i>2?i-2:0),n=2;n<i;n++)s[n-2]=arguments[n];r.apply(void 0,[e].concat(s))}},t.exports=n},function(t,e){"use strict";function i(t){return function(){return t}}var s=function(){};s.thatReturns=i,s.thatReturnsFalse=i(!1),s.thatReturnsTrue=i(!0),s.thatReturnsNull=i(null),s.thatReturnsThis=function(){return this},s.thatReturnsArgument=function(t){return t},t.exports=s},function(t,e,i){var s,n;/*!
"use strict";function i(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function n(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;var n=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==n.join(""))return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(t){s[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},s)).join("")}catch(t){return!1}}var s=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=n()?Object.assign:function(t,e){for(var n,a,l=i(t),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var u in n)r.call(n,u)&&(l[u]=n[u]);if(s){a=s(n);for(var d=0;d<a.length;d++)o.call(n,a[d])&&(l[a[d]]=n[a[d]])}}return l}},function(t,e){"use strict";function i(t){var e=t.currentSlide,i=t.targetSlide,r=t.slidesToShow,o=t.centerMode,a=t.rtl;return i>e?i>e+n(r,o,a)?"left":"right":i<e-s(r,o,a)?"right":"left"}function n(t,e,i){if(e){var n=(t-1)/2+1;return i&&t%2===0&&(n+=1),n}return i?0:t-1}function s(t,e,i){if(e){var n=(t-1)/2+1;return i||t%2!==0||(n+=1),n}return i?t-1:0}e.__esModule=!0,e.siblingDirection=i,e.slidesOnRight=n,e.slidesOnLeft=s;var r=e.getPreClones=function(t){return t.unslick||!t.infinite?0:t.variableWidth?t.slideCount:t.slidesToShow+(t.centerMode?1:0)},o=e.getPostClones=function(t){return t.unslick||!t.infinite?0:t.slideCount};e.getTotalSlides=function(t){return 1===t.slideCount?1:r(t)+t.slideCount+o(t)}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},r=i(2),o=n(r),a=i(6),l=n(a),c=i(5),u=i(7),d=n(u),p=i(10),h={update:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=l.default.findDOMNode(this.list),s=o.default.Children.count(t.children),r=(0,p.getWidth)(n),a=(0,p.getWidth)(l.default.findDOMNode(this.track));if(t.vertical)e=Math.ceil((0,p.getWidth)(n));else{var u=t.centerMode&&2*parseInt(t.centerPadding);"%"===t.centerPadding.slice(-1)&&(u*=r/100),e=Math.ceil(((0,p.getWidth)(n)-u)/t.slidesToShow)}var h=(0,p.getHeight)(n.querySelector('[data-index="0"]')),f=h*t.slidesToShow;t.autoplay?this.autoPlay(t.autoplay):this.pause();var g=(0,p.getOnDemandLazySlides)({},this.props,this.state);g.length>0&&this.props.onLazyLoad&&this.props.onLazyLoad(g);var v=this.state.lazyLoadedList;this.setState({slideCount:s,slideWidth:e,listWidth:r,trackWidth:a,slideHeight:h,listHeight:f,lazyLoadedList:v.concat(g)},function(){e||i<2&&this.update(this.props,i+1);var n=(0,c.getTrackLeft)((0,d.default)({slideIndex:this.state.currentSlide,trackRef:this.track},t,this.state)),s=(0,c.getTrackCSS)((0,d.default)({left:n},t,this.state));this.setState({trackStyle:s})})},adaptHeight:function(){if(this.props.adaptiveHeight){var t='[data-index="'+this.state.currentSlide+'"]';if(this.list){var e=l.default.findDOMNode(this.list),i=e.querySelector(t)||{};e.style.height=(i.offsetHeight||0)+"px"}}},slideHandler:function(t){var e,i,n,s,r,o=this;if(!this.props.waitForAnimate||!this.state.animating){if(this.props.fade){if(i=this.state.currentSlide,this.props.infinite===!1&&(t<0||t>=this.state.slideCount))return;return e=t<0?t+this.state.slideCount:t>=this.state.slideCount?t-this.state.slideCount:t,this.props.lazyLoad&&this.state.lazyLoadedList.indexOf(e)<0&&(this.setState(function(t,i){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),this.props.onLazyLoad&&this.props.onLazyLoad([e])),r=function(){o.setState({animating:!1}),o.props.afterChange&&o.props.afterChange(e),delete o.animationEndCallback},this.setState({animating:!0,currentSlide:e},function(){o.props.asNavFor&&o.props.asNavFor.innerSlider.state.currentSlide!==o.state.currentSlide&&o.props.asNavFor.innerSlider.slideHandler(t),o.animationEndCallback=setTimeout(r,o.props.speed)}),this.props.beforeChange&&this.props.beforeChange(this.state.currentSlide,e),void this.autoPlay()}if(e=t,e<0?i=this.props.infinite===!1?0:this.state.slideCount%this.props.slidesToScroll!==0?this.state.slideCount-this.state.slideCount%this.props.slidesToScroll:this.state.slideCount+e:this.props.centerMode&&e>=this.state.slideCount?this.props.infinite===!1?(e=this.state.slideCount-1,i=this.state.slideCount-1):(e=this.state.slideCount,i=0):i=e>=this.state.slideCount?this.props.infinite===!1?this.state.slideCount-this.props.slidesToShow:this.state.slideCount%this.props.slidesToScroll!==0?0:e-this.state.slideCount:this.state.currentSlide+this.slidesToShow<this.state.slideCount&&e+this.props.slidesToShow>=this.state.slideCount?this.props.infinite===!1?this.state.slideCount-this.props.slidesToShow:(this.state.slideCount-e)%this.props.slidesToScroll!==0?this.state.slideCount-this.props.slidesToShow:e:e,n=(0,c.getTrackLeft)((0,d.default)({slideIndex:e,trackRef:this.track},this.props,this.state)),s=(0,c.getTrackLeft)((0,d.default)({slideIndex:i,trackRef:this.track},this.props,this.state)),this.props.infinite===!1&&(n===s&&(e=i),n=s),this.props.beforeChange&&this.props.beforeChange(this.state.currentSlide,i),this.props.lazyLoad){var a=(0,p.getOnDemandLazySlides)((0,d.default)({},this.props,this.state,{currentSlide:e}));a.length>0&&(this.setState(function(t,e){return{lazyLoadedList:t.lazyLoadedList.concat(a)}}),this.props.onLazyLoad&&this.props.onLazyLoad(a))}if(this.props.useCSS===!1)this.setState({currentSlide:i,trackStyle:(0,c.getTrackCSS)((0,d.default)({left:s},this.props,this.state))},function(){this.props.afterChange&&this.props.afterChange(i)});else{var l={animating:!1,currentSlide:i,trackStyle:(0,c.getTrackCSS)((0,d.default)({left:s},this.props,this.state)),swipeLeft:null};r=function(){o.setState(l,function(){o.props.afterChange&&o.props.afterChange(i),delete o.animationEndCallback})},this.setState({animating:!0,currentSlide:i,trackStyle:(0,c.getTrackAnimateCSS)((0,d.default)({left:n},this.props,this.state))},function(){o.props.asNavFor&&o.props.asNavFor.innerSlider.state.currentSlide!==o.state.currentSlide&&o.props.asNavFor.innerSlider.slideHandler(t),o.animationEndCallback=setTimeout(r,o.props.speed)})}this.autoPlay()}},play:function(){var t;if(this.props.rtl)t=this.state.currentSlide-this.props.slidesToScroll;else{if(!(0,p.canGoNext)(s({},this.props,this.state)))return!1;t=this.state.currentSlide+this.props.slidesToScroll}this.slideHandler(t)},autoPlay:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.autoplayTimer&&clearTimeout(this.autoplayTimer),(t||this.props.autoplay)&&(this.autoplayTimer=setTimeout(this.play,this.props.autoplaySpeed))},pause:function(){this.autoplayTimer&&(clearTimeout(this.autoplayTimer),this.autoplayTimer=null)}};e.default=h},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.initializedState=e.extractObject=e.canGoNext=e.getSwipeDirection=e.getHeight=e.getWidth=e.slidesOnRight=e.slidesOnLeft=e.lazyEndIndex=e.lazyStartIndex=e.getRequiredLazySlides=e.getOnDemandLazySlides=void 0;var s=i(2),r=n(s),o=i(6),a=n(o),l=e.getOnDemandLazySlides=function(t){for(var e=[],i=c(t),n=u(t),s=i;s<n;s++)t.lazyLoadedList.indexOf(s)<0&&e.push(s);return e},c=(e.getRequiredLazySlides=function(t){for(var e=[],i=c(t),n=u(t),s=i;s<n;s++)e.push(s);return e},e.lazyStartIndex=function(t){return t.currentSlide-d(t)}),u=e.lazyEndIndex=function(t){return t.currentSlide+p(t)},d=e.slidesOnLeft=function(t){return t.centerMode?Math.floor(t.slidesToShow/2)+(parseInt(t.centerPadding)>0?1:0):0},p=e.slidesOnRight=function(t){return t.centerMode?Math.floor((t.slidesToShow-1)/2)+1+(parseInt(t.centerPadding)>0?1:0):t.slidesToShow},h=e.getWidth=function(t){return t&&t.offsetWidth||0},f=e.getHeight=function(t){return t&&t.offsetHeight||0};e.getSwipeDirection=function(t){var e,i,n,s,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=t.startX-t.curX,i=t.startY-t.curY,n=Math.atan2(i,e),s=Math.round(180*n/Math.PI),s<0&&(s=360-Math.abs(s)),s<=45&&s>=0||s<=360&&s>=315?"left":s>=135&&s<=225?"right":r===!0?s>=35&&s<=135?"up":"down":"vertical"},e.canGoNext=function(t){var e=!0;return t.infinite||(t.centerMode&&t.currentSlide>=t.slideCount-1?e=!1:(t.slideCount<=t.slidesToShow||t.currentSlide>=t.slideCount-t.slidesToShow)&&(e=!1)),e},e.extractObject=function(t,e){var i={};return e.forEach(function(e){return i[e]=t[e]}),i},e.initializedState=function(t){var e=r.default.Children.count(t.children),i=Math.ceil(h(a.default.findDOMNode(t.listRef))),n=Math.ceil(h(a.default.findDOMNode(t.trackRef))),s=void 0;if(t.vertical)s=i;else{var o=t.centerMode&&2*parseInt(t.centerPadding);"string"==typeof t.centerPadding&&"%"===t.centerPadding.slice(-1)&&(o*=i/100),s=Math.ceil((i-o)/t.slidesToShow)}var c=f(a.default.findDOMNode(t.listRef).querySelector('[data-index="0"]')),u=c*t.slidesToShow,d=t.currentSlide||t.initialSlide;t.rtl&&!t.currentSlide&&(d=e-1-t.initialSlide);var p=t.lazyLoadedList||[],g=l({currentSlide:d,lazyLoadedList:p},t);return p.concat(g),{slideCount:e,slideWidth:s,listWidth:i,trackWidth:n,currentSlide:d,slideHeight:c,listHeight:u,lazyLoadedList:p}}},function(t,e){"use strict";var i={animating:!1,dragging:!1,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,listWidth:null,listHeight:null,scrolling:!1,slideCount:null,slideWidth:null,slideHeight:null,swiping:!1,swipeLeft:null,touchObject:{startX:0,startY:0,curX:0,curY:0},lazyLoadedList:[],initialized:!1,edgeDragged:!1,swiped:!1,trackStyle:{},trackWidth:0};t.exports=i},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var s=i(2),r=n(s),o={className:"",accessibility:!0,adaptiveHeight:!1,arrows:!0,autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t){return r.default.createElement("button",null,t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:!1,pauseOnHover:!0,responsive:null,rtl:!1,slide:"div",slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,afterChange:null,beforeChange:null,edgeEvent:null,init:null,swipeEvent:null,nextArrow:null,prevArrow:null,appendDots:function(t){return r.default.createElement("ul",{style:{display:"block"}},t)}};e.default=o},function(t,e,i){"use strict";var n=i(2),s=i(14);if("undefined"==typeof n)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var r=(new n.Component).updater;t.exports=s(n.Component,n.isValidElement,r)},function(t,e,i){"use strict";function n(t){return t}function s(t,e,i){function s(t,e,i){for(var n in e)e.hasOwnProperty(n)&&c("function"==typeof e[n],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",t.displayName||"ReactClass",r[i],n)}function d(t,e){var i=b.hasOwnProperty(e)?b[e]:null;x.hasOwnProperty(e)&&l("OVERRIDE_BASE"===i,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",e),t&&l("DEFINE_MANY"===i||"DEFINE_MANY_MERGED"===i,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",e)}function p(t,i){if(!i){var n=typeof i,s="object"===n&&null!==i;return void c(s,"%s: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got %s.",t.displayName||"ReactClass",null===i?null:n)}l("function"!=typeof i,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),l(!e(i),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=t.prototype,o=r.__reactAutoBindPairs;i.hasOwnProperty(u)&&T.mixins(t,i.mixins);for(var a in i)if(i.hasOwnProperty(a)&&a!==u){var p=i[a],h=r.hasOwnProperty(a);if(d(h,a),T.hasOwnProperty(a))T[a](t,p);else{var f=b.hasOwnProperty(a),y="function"==typeof p,S=y&&!f&&!h&&i.autobind!==!1;if(S)o.push(a,p),r[a]=p;else if(h){var m=b[a];l(f&&("DEFINE_MANY_MERGED"===m||"DEFINE_MANY"===m),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,a),"DEFINE_MANY_MERGED"===m?r[a]=g(r[a],p):"DEFINE_MANY"===m&&(r[a]=v(r[a],p))}else r[a]=p,"function"==typeof p&&i.displayName&&(r[a].displayName=i.displayName+"_"+a)}}}function h(t,e){if(e)for(var i in e){var n=e[i];if(e.hasOwnProperty(i)){var s=i in T;l(!s,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',i);var r=i in t;l(!r,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",i),t[i]=n}}}function f(t,e){l(t&&e&&"object"==typeof t&&"object"==typeof e,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var i in e)e.hasOwnProperty(i)&&(l(void 0===t[i],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",i),t[i]=e[i]);return t}function g(t,e){return function(){var i=t.apply(this,arguments),n=e.apply(this,arguments);if(null==i)return n;if(null==n)return i;var s={};return f(s,i),f(s,n),s}}function v(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function y(t,e){var i=e.bind(t);i.__reactBoundContext=t,i.__reactBoundMethod=e,i.__reactBoundArguments=null;var n=t.constructor.displayName,s=i.bind;return i.bind=function(r){for(var o=arguments.length,a=Array(o>1?o-1:0),l=1;l<o;l++)a[l-1]=arguments[l];if(r!==t&&null!==r)c(!1,"bind(): React component methods may only be bound to the component instance. See %s",n);else if(!a.length)return c(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",n),i;var u=s.apply(i,arguments);return u.__reactBoundContext=t,u.__reactBoundMethod=e,u.__reactBoundArguments=a,u},i}function S(t){for(var e=t.__reactAutoBindPairs,i=0;i<e.length;i+=2){var n=e[i],s=e[i+1];t[n]=y(t,s)}}function m(t){var e=n(function(t,n,s){c(this instanceof e,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"),this.__reactAutoBindPairs.length&&S(this),this.props=t,this.context=n,this.refs=a,this.updater=s||i,this.state=null;var r=this.getInitialState?this.getInitialState():null;void 0===r&&this.getInitialState._isMockFunction&&(r=null),l("object"==typeof r&&!Array.isArray(r),"%s.getInitialState(): must return an object or null",e.displayName||"ReactCompositeComponent"),this.state=r});e.prototype=new E,e.prototype.constructor=e,e.prototype.__reactAutoBindPairs=[],w.forEach(p.bind(null,e)),p(e,k),p(e,t),p(e,C),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),e.getDefaultProps&&(e.getDefaultProps.isReactClassApproved={}),e.prototype.getInitialState&&(e.prototype.getInitialState.isReactClassApproved={}),l(e.prototype.render,"createClass(...): Class specification must implement a `render` method."),c(!e.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",t.displayName||"A component"),c(!e.prototype.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",t.displayName||"A component");for(var s in b)e.prototype[s]||(e.prototype[s]=null);return e}var w=[],b={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},T={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var i=0;i<e.length;i++)p(t,e[i])},childContextTypes:function(t,e){s(t,e,"childContext"),t.childContextTypes=o({},t.childContextTypes,e)},contextTypes:function(t,e){s(t,e,"context"),t.contextTypes=o({},t.contextTypes,e)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=g(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,e){s(t,e,"prop"),t.propTypes=o({},t.propTypes,e)},statics:function(t,e){h(t,e)},autobind:function(){}},k={componentDidMount:function(){this.__isMounted=!0}},C={componentWillUnmount:function(){this.__isMounted=!1}},x={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t,e)},isMounted:function(){return c(this.__didWarnIsMounted,"%s: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.",this.constructor&&this.constructor.displayName||this.name||"Component"),this.__didWarnIsMounted=!0,!!this.__isMounted}},E=function(){};return o(E.prototype,t.prototype,x),m}var r,o=i(7),a=i(15),l=i(16),c=i(17),u="mixins";r={prop:"prop",context:"context",childContext:"child context"},t.exports=s},function(t,e,i){"use strict";var n={};Object.freeze(n),t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n,r,o,a,l){if(s(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[i,n,r,o,a,l],d=0;c=new Error(e.replace(/%s/g,function(){return u[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var s=function(t){};s=function(t){if(void 0===t)throw new Error("invariant requires an error message argument")},t.exports=n},function(t,e,i){"use strict";var n=i(18),s=n,r=function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];var s=0,r="Warning: "+t.replace(/%s/g,function(){return i[s++]});"undefined"!=typeof console&&console.error(r);try{throw new Error(r)}catch(t){}};s=function(t,e){if(void 0===e)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==e.indexOf("Failed Composite propType: ")&&!t){for(var i=arguments.length,n=Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];r.apply(void 0,[e].concat(n))}},t.exports=s},function(t,e){"use strict";function i(t){return function(){return t}}var n=function(){};n.thatReturns=i,n.thatReturnsFalse=i(!1),n.thatReturnsTrue=i(!0),n.thatReturnsNull=i(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(t){return t},t.exports=n},function(t,e,i){var n,s;/*!
Copyright (c) 2016 Jed Watson.

@@ -12,2 +12,2 @@ Licensed under the MIT License (MIT), see

*/
!function(){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++){var s=arguments[e];if(s){var n=typeof s;if("string"===n||"number"===n)t.push(s);else if(Array.isArray(s))t.push(i.apply(null,s));else if("object"===n)for(var o in s)r.call(s,o)&&s[o]&&t.push(o)}}return t.join(" ")}var r={}.hasOwnProperty;"undefined"!=typeof t&&t.exports?t.exports=i:(s=[],n=function(){return i}.apply(e,s),!(void 0!==n&&(t.exports=n)))}()},function(t,e,i){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0,e.Track=void 0;var a=i(2),l=s(a),c=i(7),d=s(c),u=i(19),p=s(u),h=i(8),f=i(10),g=function(t){var e,i,s,n,r;r=t.rtl?t.slideCount-1-t.index:t.index,s=r<0||r>=t.slideCount,t.centerMode?(n=Math.floor(t.slidesToShow/2),i=(r-t.currentSlide)%t.slideCount===0,r>t.currentSlide-n-1&&r<=t.currentSlide+n&&(e=!0)):e=t.currentSlide<=r&&r<t.currentSlide+t.slidesToShow;var o=r===t.currentSlide;return(0,p.default)({"slick-slide":!0,"slick-active":e,"slick-center":i,"slick-cloned":s,"slick-current":o})},v=function(t){var e={};return void 0!==t.variableWidth&&t.variableWidth!==!1||(e.width=t.slideWidth),t.fade&&(e.position="relative",t.vertical?e.top=-t.index*t.slideHeight:e.left=-t.index*t.slideWidth,e.opacity=t.currentSlide===t.index?1:0,e.transition="opacity "+t.speed+"ms "+t.cssEase+", visibility "+t.speed+"ms "+t.cssEase,e.WebkitTransition="opacity "+t.speed+"ms "+t.cssEase+", visibility "+t.speed+"ms "+t.cssEase),e},y=function(t,e){return t.key||e},S=function(t){var e,i=[],s=[],n=[],r=l.default.Children.count(t.children),o=(0,f.lazyStartIndex)(t),a=(0,f.lazyEndIndex)(t);return l.default.Children.forEach(t.children,function(c,u){var f=void 0,S={message:"children",index:u,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide};f=!t.lazyLoad||t.lazyLoad&&t.lazyLoadedList.indexOf(u)>=0?c:l.default.createElement("div",null);var m=v((0,d.default)({},t,{index:u})),w=f.props.className||"";if(i.push(l.default.cloneElement(f,{key:"original"+y(f,u),"data-index":u,className:(0,p.default)(g((0,d.default)({index:u},t)),w),tabIndex:"-1",style:(0,d.default)({outline:"none"},f.props.style||{},m),onClick:function(e){f.props&&f.props.onClick&&f.props.onClick(e),t.focusOnSelect&&t.focusOnSelect(S)}})),t.infinite&&t.fade===!1){var b=r-u;b<=(0,h.getPreClones)(t)&&r!==t.slidesToShow&&(e=-b,e>=o&&(f=c),s.push(l.default.cloneElement(f,{key:"precloned"+y(f,e),"data-index":e,tabIndex:"-1",className:(0,p.default)(g((0,d.default)({index:e},t)),w),style:(0,d.default)({},f.props.style||{},m),onClick:function(e){f.props&&f.props.onClick&&f.props.onClick(e),t.focusOnSelect&&t.focusOnSelect(S)}}))),r!==t.slidesToShow&&(e=r+u,e<a&&(f=c),n.push(l.default.cloneElement(f,{key:"postcloned"+y(f,e),"data-index":e,tabIndex:"-1",className:(0,p.default)(g((0,d.default)({index:e},t)),w),style:(0,d.default)({},f.props.style||{},m),onClick:function(e){f.props&&f.props.onClick&&f.props.onClick(e),t.focusOnSelect&&t.focusOnSelect(S)}})))}}),t.rtl?s.concat(i,n).reverse():s.concat(i,n)};e.Track=function(t){function e(){return n(this,e),r(this,t.apply(this,arguments))}return o(e,t),e.prototype.render=function(){var t=S(this.props);return l.default.createElement("div",{className:"slick-track",style:this.props.trackStyle},t)},e}(l.default.Component)},function(t,e,i){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0,e.Dots=void 0;var a=i(2),l=s(a),c=i(19),d=s(c),u=function(t){var e;return e=t.infinite?Math.ceil(t.slideCount/t.slidesToScroll):Math.ceil((t.slideCount-t.slidesToShow)/t.slidesToScroll)+1};e.Dots=function(t){function e(){return n(this,e),r(this,t.apply(this,arguments))}return o(e,t),e.prototype.clickHandler=function(t,e){e.preventDefault(),this.props.clickHandler(t)},e.prototype.render=function(){var t=this,e=u({slideCount:this.props.slideCount,slidesToScroll:this.props.slidesToScroll,slidesToShow:this.props.slidesToShow,infinite:this.props.infinite}),i=Array.apply(null,Array(e+1).join("0").split("")).map(function(e,i){var s=i*t.props.slidesToScroll,n=i*t.props.slidesToScroll+(t.props.slidesToScroll-1),r=(0,d.default)({"slick-active":t.props.currentSlide>=s&&t.props.currentSlide<=n}),o={message:"dots",index:i,slidesToScroll:t.props.slidesToScroll,currentSlide:t.props.currentSlide},a=t.clickHandler.bind(t,o);return l.default.createElement("li",{key:i,className:r},l.default.cloneElement(t.props.customPaging(i),{onClick:a}))});return l.default.cloneElement(this.props.appendDots(i),{className:this.props.dotsClass})},e}(l.default.Component)},function(t,e,i){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0,e.NextArrow=e.PrevArrow=void 0;var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},l=i(2),c=s(l),d=i(19),u=s(d),p=i(9),h=s(p);e.PrevArrow=function(t){function e(){return n(this,e),r(this,t.apply(this,arguments))}return o(e,t),e.prototype.clickHandler=function(t,e){e&&e.preventDefault(),this.props.clickHandler(t,e)},e.prototype.render=function(){var t={"slick-arrow":!0,"slick-prev":!0},e=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(t["slick-disabled"]=!0,e=null);var i={key:"0","data-role":"none",className:(0,u.default)(t),style:{display:"block"},onClick:e},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},n=void 0;return n=this.props.prevArrow?c.default.cloneElement(this.props.prevArrow,a({},i,s)):c.default.createElement("button",a({key:"0",type:"button"},i)," Previous")},e}(c.default.Component),e.NextArrow=function(t){function e(){return n(this,e),r(this,t.apply(this,arguments))}return o(e,t),e.prototype.clickHandler=function(t,e){e&&e.preventDefault(),this.props.clickHandler(t,e)},e.prototype.render=function(){var t={"slick-arrow":!0,"slick-next":!0},e=this.clickHandler.bind(this,{message:"next"});h.default.canGoNext(this.props)||(t["slick-disabled"]=!0,e=null);var i={key:"1","data-role":"none",className:(0,u.default)(t),style:{display:"block"},onClick:e},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},n=void 0;return n=this.props.nextArrow?c.default.cloneElement(this.props.nextArrow,a({},i,s)):c.default.createElement("button",a({key:"1",type:"button"},i)," Next")},e}(c.default.Component)},function(t,e,i){var s=i(24),n=function(t){var e=/[height|width]$/;return e.test(t)},r=function(t){var e="",i=Object.keys(t);return i.forEach(function(r,o){var a=t[r];r=s(r),n(r)&&"number"==typeof a&&(a+="px"),e+=a===!0?r:a===!1?"not "+r:"("+r+": "+a+")",o<i.length-1&&(e+=" and ")}),e},o=function(t){var e="";return"string"==typeof t?t:t instanceof Array?(t.forEach(function(i,s){e+=r(i),s<t.length-1&&(e+=", ")}),e):r(t)};t.exports=o},function(t,e){var i=function(t){return t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()};t.exports=i},function(t,e){var i=!("undefined"==typeof window||!window.document||!window.document.createElement);t.exports=i},function(t,e,i){var s=i(27);t.exports=new s},function(t,e,i){function s(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}var n=i(28),r=i(30),o=r.each,a=r.isFunction,l=r.isArray;s.prototype={constructor:s,register:function(t,e,i){var s=this.queries,r=i&&this.browserIsIncapable;return s[t]||(s[t]=new n(t,r)),a(e)&&(e={match:e}),l(e)||(e=[e]),o(e,function(e){a(e)&&(e={match:e}),s[t].addHandler(e)}),this},unregister:function(t,e){var i=this.queries[t];return i&&(e?i.removeHandler(e):(i.clear(),delete this.queries[t])),this}},t.exports=s},function(t,e,i){function s(t,e){this.query=t,this.isUnconditional=e,this.handlers=[],this.mql=window.matchMedia(t);var i=this;this.listener=function(t){i.mql=t.currentTarget||t,i.assess()},this.mql.addListener(this.listener)}var n=i(29),r=i(30).each;s.prototype={constuctor:s,addHandler:function(t){var e=new n(t);this.handlers.push(e),this.matches()&&e.on()},removeHandler:function(t){var e=this.handlers;r(e,function(i,s){if(i.equals(t))return i.destroy(),!e.splice(s,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){r(this.handlers,function(t){t.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var t=this.matches()?"on":"off";r(this.handlers,function(e){e[t]()})}},t.exports=s},function(t,e){function i(t){this.options=t,!t.deferSetup&&this.setup()}i.prototype={constructor:i,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(t){return this.options===t||this.options.match===t}},t.exports=i},function(t,e){function i(t,e){var i,s=0,n=t.length;for(s;s<n&&(i=e(t[s],s),i!==!1);s++);}function s(t){return"[object Array]"===Object.prototype.toString.apply(t)}function n(t){return"function"==typeof t}t.exports={isFunction:n,isArray:s,each:i}}])});
!function(){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var s=typeof n;if("string"===s||"number"===s)t.push(n);else if(Array.isArray(n))t.push(i.apply(null,n));else if("object"===s)for(var o in n)r.call(n,o)&&n[o]&&t.push(o)}}return t.join(" ")}var r={}.hasOwnProperty;"undefined"!=typeof t&&t.exports?t.exports=i:(n=[],s=function(){return i}.apply(e,n),!(void 0!==s&&(t.exports=s)))}()},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0,e.Track=void 0;var a=i(2),l=n(a),c=i(7),u=n(c),d=i(19),p=n(d),h=i(8),f=i(10),g=function(t){var e,i,n,s,r;r=t.rtl?t.slideCount-1-t.index:t.index,n=r<0||r>=t.slideCount,t.centerMode?(s=Math.floor(t.slidesToShow/2),i=(r-t.currentSlide)%t.slideCount===0,r>t.currentSlide-s-1&&r<=t.currentSlide+s&&(e=!0)):e=t.currentSlide<=r&&r<t.currentSlide+t.slidesToShow;var o=r===t.currentSlide;return(0,p.default)({"slick-slide":!0,"slick-active":e,"slick-center":i,"slick-cloned":n,"slick-current":o})},v=function(t){var e={};return void 0!==t.variableWidth&&t.variableWidth!==!1||(e.width=t.slideWidth),t.fade&&(e.position="relative",t.vertical?e.top=-t.index*t.slideHeight:e.left=-t.index*t.slideWidth,e.opacity=t.currentSlide===t.index?1:0,e.transition="opacity "+t.speed+"ms "+t.cssEase+", visibility "+t.speed+"ms "+t.cssEase,e.WebkitTransition="opacity "+t.speed+"ms "+t.cssEase+", visibility "+t.speed+"ms "+t.cssEase),e},y=function(t,e){return t.key||e},S=function(t){var e,i=[],n=[],s=[],r=l.default.Children.count(t.children),o=(0,f.lazyStartIndex)(t),a=(0,f.lazyEndIndex)(t);return l.default.Children.forEach(t.children,function(c,d){var f=void 0,S={message:"children",index:d,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide};f=!t.lazyLoad||t.lazyLoad&&t.lazyLoadedList.indexOf(d)>=0?c:l.default.createElement("div",null);var m=v((0,u.default)({},t,{index:d})),w=f.props.className||"";if(i.push(l.default.cloneElement(f,{key:"original"+y(f,d),"data-index":d,className:(0,p.default)(g((0,u.default)({index:d},t)),w),tabIndex:"-1",style:(0,u.default)({outline:"none"},f.props.style||{},m),onClick:function(e){f.props&&f.props.onClick&&f.props.onClick(e),t.focusOnSelect&&t.focusOnSelect(S)}})),t.infinite&&t.fade===!1){var b=r-d;b<=(0,h.getPreClones)(t)&&r!==t.slidesToShow&&(e=-b,e>=o&&(f=c),n.push(l.default.cloneElement(f,{key:"precloned"+y(f,e),"data-index":e,tabIndex:"-1",className:(0,p.default)(g((0,u.default)({index:e},t)),w),style:(0,u.default)({},f.props.style||{},m),onClick:function(e){f.props&&f.props.onClick&&f.props.onClick(e),t.focusOnSelect&&t.focusOnSelect(S)}}))),r!==t.slidesToShow&&(e=r+d,e<a&&(f=c),s.push(l.default.cloneElement(f,{key:"postcloned"+y(f,e),"data-index":e,tabIndex:"-1",className:(0,p.default)(g((0,u.default)({index:e},t)),w),style:(0,u.default)({},f.props.style||{},m),onClick:function(e){f.props&&f.props.onClick&&f.props.onClick(e),t.focusOnSelect&&t.focusOnSelect(S)}})))}}),t.rtl?n.concat(i,s).reverse():n.concat(i,s)};e.Track=function(t){function e(){return s(this,e),r(this,t.apply(this,arguments))}return o(e,t),e.prototype.render=function(){var t=S(this.props);return l.default.createElement("div",{className:"slick-track",style:this.props.trackStyle},t)},e}(l.default.Component)},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0,e.Dots=void 0;var a=i(2),l=n(a),c=i(19),u=n(c),d=function(t){var e;return e=t.infinite?Math.ceil(t.slideCount/t.slidesToScroll):Math.ceil((t.slideCount-t.slidesToShow)/t.slidesToScroll)+1};e.Dots=function(t){function e(){return s(this,e),r(this,t.apply(this,arguments))}return o(e,t),e.prototype.clickHandler=function(t,e){e.preventDefault(),this.props.clickHandler(t)},e.prototype.render=function(){var t=this,e=d({slideCount:this.props.slideCount,slidesToScroll:this.props.slidesToScroll,slidesToShow:this.props.slidesToShow,infinite:this.props.infinite}),i=Array.apply(null,Array(e+1).join("0").split("")).map(function(e,i){var n=i*t.props.slidesToScroll,s=i*t.props.slidesToScroll+(t.props.slidesToScroll-1),r=(0,u.default)({"slick-active":t.props.currentSlide>=n&&t.props.currentSlide<=s}),o={message:"dots",index:i,slidesToScroll:t.props.slidesToScroll,currentSlide:t.props.currentSlide},a=t.clickHandler.bind(t,o);return l.default.createElement("li",{key:i,className:r},l.default.cloneElement(t.props.customPaging(i),{onClick:a}))});return l.default.cloneElement(this.props.appendDots(i),{className:this.props.dotsClass})},e}(l.default.Component)},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0,e.NextArrow=e.PrevArrow=void 0;var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},l=i(2),c=n(l),u=i(19),d=n(u),p=i(9),h=(n(p),i(10));e.PrevArrow=function(t){function e(){return s(this,e),r(this,t.apply(this,arguments))}return o(e,t),e.prototype.clickHandler=function(t,e){e&&e.preventDefault(),this.props.clickHandler(t,e)},e.prototype.render=function(){var t={"slick-arrow":!0,"slick-prev":!0},e=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(t["slick-disabled"]=!0,e=null);var i={key:"0","data-role":"none",className:(0,d.default)(t),style:{display:"block"},onClick:e},n={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},s=void 0;return s=this.props.prevArrow?c.default.cloneElement(this.props.prevArrow,a({},i,n)):c.default.createElement("button",a({key:"0",type:"button"},i)," Previous")},e}(c.default.Component),e.NextArrow=function(t){function e(){return s(this,e),r(this,t.apply(this,arguments))}return o(e,t),e.prototype.clickHandler=function(t,e){e&&e.preventDefault(),this.props.clickHandler(t,e)},e.prototype.render=function(){var t={"slick-arrow":!0,"slick-next":!0},e=this.clickHandler.bind(this,{message:"next"});(0,h.canGoNext)(this.props)||(t["slick-disabled"]=!0,e=null);var i={key:"1","data-role":"none",className:(0,d.default)(t),style:{display:"block"},onClick:e},n={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},s=void 0;return s=this.props.nextArrow?c.default.cloneElement(this.props.nextArrow,a({},i,n)):c.default.createElement("button",a({key:"1",type:"button"},i)," Next")},e}(c.default.Component)},function(t,e,i){var n=i(24),s=function(t){var e=/[height|width]$/;return e.test(t)},r=function(t){var e="",i=Object.keys(t);return i.forEach(function(r,o){var a=t[r];r=n(r),s(r)&&"number"==typeof a&&(a+="px"),e+=a===!0?r:a===!1?"not "+r:"("+r+": "+a+")",o<i.length-1&&(e+=" and ")}),e},o=function(t){var e="";return"string"==typeof t?t:t instanceof Array?(t.forEach(function(i,n){e+=r(i),n<t.length-1&&(e+=", ")}),e):r(t)};t.exports=o},function(t,e){var i=function(t){return t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()};t.exports=i},function(t,e){var i=!("undefined"==typeof window||!window.document||!window.document.createElement);t.exports=i},function(t,e,i){var n=i(27);t.exports=new n},function(t,e,i){function n(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}var s=i(28),r=i(30),o=r.each,a=r.isFunction,l=r.isArray;n.prototype={constructor:n,register:function(t,e,i){var n=this.queries,r=i&&this.browserIsIncapable;return n[t]||(n[t]=new s(t,r)),a(e)&&(e={match:e}),l(e)||(e=[e]),o(e,function(e){a(e)&&(e={match:e}),n[t].addHandler(e)}),this},unregister:function(t,e){var i=this.queries[t];return i&&(e?i.removeHandler(e):(i.clear(),delete this.queries[t])),this}},t.exports=n},function(t,e,i){function n(t,e){this.query=t,this.isUnconditional=e,this.handlers=[],this.mql=window.matchMedia(t);var i=this;this.listener=function(t){i.mql=t.currentTarget||t,i.assess()},this.mql.addListener(this.listener)}var s=i(29),r=i(30).each;n.prototype={constuctor:n,addHandler:function(t){var e=new s(t);this.handlers.push(e),this.matches()&&e.on()},removeHandler:function(t){var e=this.handlers;r(e,function(i,n){if(i.equals(t))return i.destroy(),!e.splice(n,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){r(this.handlers,function(t){t.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var t=this.matches()?"on":"off";r(this.handlers,function(e){e[t]()})}},t.exports=n},function(t,e){function i(t){this.options=t,!t.deferSetup&&this.setup()}i.prototype={constructor:i,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(t){return this.options===t||this.options.match===t}},t.exports=i},function(t,e){function i(t,e){var i,n=0,s=t.length;for(n;n<s&&(i=e(t[n],n),i!==!1);n++);}function n(t){return"[object Array]"===Object.prototype.toString.apply(t)}function s(t){return"function"==typeof t}t.exports={isFunction:s,isArray:n,each:i}}])});

@@ -20,2 +20,4 @@ 'use strict';

var _innerSliderUtils = require('./utils/innerSliderUtils');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -103,3 +105,3 @@

if (!_helpers2.default.canGoNext(this.props)) {
if (!(0, _innerSliderUtils.canGoNext)(this.props)) {
nextClasses['slick-disabled'] = true;

@@ -106,0 +108,0 @@ nextHandler = null;

@@ -6,3 +6,2 @@ "use strict";

dragging: false,
autoPlayTimer: null,
currentDirection: 0,

@@ -9,0 +8,0 @@ currentLeft: null,

@@ -42,2 +42,4 @@ 'use strict';

var _trackHelper = require('./mixins/trackHelper');
var _track = require('./track');

@@ -85,6 +87,16 @@

componentDidMount: function componentDidMount() {
// Hack for autoplay -- Inspect Later
this.initialize(this.props);
this.adaptHeight();
var _this = this;
var spec = (0, _objectAssign2.default)({ listRef: this.list, trackRef: this.track }, this.props);
var initState = (0, _innerSliderUtils.initializedState)(spec);
(0, _objectAssign2.default)(spec, { slideIndex: initState.currentSlide }, initState);
var targetLeft = (0, _trackHelper.getTrackLeft)(spec);
(0, _objectAssign2.default)(spec, { left: targetLeft });
var trackStyle = (0, _trackHelper.getTrackCSS)(spec);
initState['trackStyle'] = trackStyle;
this.setState(initState, function () {
_this.adaptHeight();
_this.autoPlay(); // it doesn't have to be here
});
// To support server-side rendering

@@ -109,28 +121,44 @@ if (!window) {

}
if (this.state.autoPlayTimer) {
clearInterval(this.state.autoPlayTimer);
if (this.autoplayTimer) {
clearInterval(this.autoplayTimer);
}
},
componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
if (this.props.slickGoTo != nextProps.slickGoTo) {
if (process.env.NODE_ENV !== 'production') {
console.warn('react-slick deprecation warning: slickGoTo prop is deprecated and it will be removed in next release. Use slickGoTo method instead');
var _this2 = this;
var spec = (0, _objectAssign2.default)({ listRef: this.list, trackRef: this.track }, nextProps, this.state);
var updatedState = (0, _innerSliderUtils.initializedState)(spec);
(0, _objectAssign2.default)(spec, { slideIndex: updatedState.currentSlide }, updatedState);
var targetLeft = (0, _trackHelper.getTrackLeft)(spec);
(0, _objectAssign2.default)(spec, { left: targetLeft });
var trackStyle = (0, _trackHelper.getTrackCSS)(spec);
// not setting trackStyle in other cases because no prop change can trigger slideChange
if (_react2.default.Children.count(this.props.children) !== _react2.default.Children.count(nextProps.children)) {
updatedState['trackStyle'] = trackStyle;
}
this.setState(updatedState, function () {
if (_this2.state.currentSlide >= _react2.default.Children.count(nextProps.children)) {
_this2.changeSlide({
message: 'index',
index: _react2.default.Children.count(nextProps.children) - nextProps.slidesToShow,
currentSlide: _this2.state.currentSlide
});
}
this.changeSlide({
message: 'index',
index: nextProps.slickGoTo,
currentSlide: this.state.currentSlide
});
} else if (this.state.currentSlide >= nextProps.children.length) {
this.update(nextProps);
this.changeSlide({
message: 'index',
index: nextProps.children.length - nextProps.slidesToShow,
currentSlide: this.state.currentSlide
});
} else {
this.update(nextProps);
}
// the following doesn't have to be this way
if (!nextProps.autoplay) _this2.pause();else _this2.autoPlay(nextProps.autoplay);
});
},
componentDidUpdate: function componentDidUpdate() {
var _this3 = this;
var images = document.querySelectorAll('.slick-slide img');
images.forEach(function (image) {
if (!image.onload) {
image.onload = function () {
return setTimeout(function () {
return _this3.update(_this3.props);
}, _this3.props.speed);
};
}
});
if (this.props.reInit) {

@@ -165,3 +193,3 @@ this.props.reInit();

slickPrev: function slickPrev() {
var _this = this;
var _this4 = this;

@@ -172,21 +200,21 @@ // this and fellow methods are wrapped in setTimeout

setTimeout(function () {
return _this.changeSlide({ message: 'previous' });
return _this4.changeSlide({ message: 'previous' });
}, 0);
},
slickNext: function slickNext() {
var _this2 = this;
var _this5 = this;
setTimeout(function () {
return _this2.changeSlide({ message: 'next' });
return _this5.changeSlide({ message: 'next' });
}, 0);
},
slickGoTo: function slickGoTo(slide) {
var _this3 = this;
var _this6 = this;
slide = Number(slide);
!isNaN(slide) && setTimeout(function () {
return _this3.changeSlide({
return _this6.changeSlide({
message: 'index',
index: slide,
currentSlide: _this3.state.currentSlide
currentSlide: _this6.state.currentSlide
});

@@ -199,43 +227,10 @@ }, 0);

});
var spec = (0, _objectAssign2.default)({}, this.props, this.state);
var trackProps = (0, _innerSliderUtils.extractObject)(spec, ['fade', 'cssEase', 'speed', 'infinite', 'centerMode', 'focusOnSelect', 'currentSlide', 'lazyLoad', 'lazyLoadedList', 'rtl', 'slideWidth', 'slideHeight', 'listHeight', 'vertical', 'slidesToShow', 'slidesToScroll', 'slideCount', 'trackStyle', 'variableWidth', 'unslick', 'centerPadding']);
trackProps.focusOnSelect = this.props.focusOnSelect ? this.selectHandler : null;
var trackProps = {
fade: this.props.fade,
cssEase: this.props.cssEase,
speed: this.props.speed,
infinite: this.props.infinite,
centerMode: this.props.centerMode,
focusOnSelect: this.props.focusOnSelect ? this.selectHandler : null,
currentSlide: this.state.currentSlide,
lazyLoad: this.props.lazyLoad,
lazyLoadedList: this.state.lazyLoadedList,
rtl: this.props.rtl,
slideWidth: this.state.slideWidth,
slideHeight: this.state.slideHeight,
listHeight: this.state.listHeight,
vertical: this.props.vertical,
slidesToShow: this.props.slidesToShow,
slidesToScroll: this.props.slidesToScroll,
slideCount: this.state.slideCount,
trackStyle: this.state.trackStyle,
variableWidth: this.props.variableWidth,
unslick: this.props.unslick,
centerPadding: this.props.centerPadding
};
var dots;
if (this.props.dots === true && this.state.slideCount >= this.props.slidesToShow) {
var dotProps = {
dotsClass: this.props.dotsClass,
slideCount: this.state.slideCount,
slidesToShow: this.props.slidesToShow,
currentSlide: this.state.currentSlide,
slidesToScroll: this.props.slidesToScroll,
clickHandler: this.changeSlide,
children: this.props.children,
customPaging: this.props.customPaging,
infinite: this.props.infinite,
appendDots: this.props.appendDots
};
var dotProps = (0, _innerSliderUtils.extractObject)(spec, ['dotsClass', 'slideCount', 'slidesToShow', 'currentSlide', 'slidesToScroll', 'clickHandler', 'children', 'customPaging', 'infinite', 'appendDots']);
dotProps.clickHandler = this.changeSlide;
dots = _react2.default.createElement(_dots.Dots, dotProps);

@@ -245,14 +240,5 @@ }

var prevArrow, nextArrow;
var arrowProps = (0, _innerSliderUtils.extractObject)(spec, ['infinite', 'centerMode', 'currentSlide', 'slideCount', 'slidesToShow', 'prevArrow', 'nextArrow']);
arrowProps.clickHandler = this.changeSlide;
var arrowProps = {
infinite: this.props.infinite,
centerMode: this.props.centerMode,
currentSlide: this.state.currentSlide,
slideCount: this.state.slideCount,
slidesToShow: this.props.slidesToShow,
prevArrow: this.props.prevArrow,
nextArrow: this.props.nextArrow,
clickHandler: this.changeSlide
};
if (this.props.arrows) {

@@ -306,3 +292,4 @@ prevArrow = _react2.default.createElement(_arrows.PrevArrow, arrowProps);

onMouseLeave: this.onInnerSliderLeave,
onMouseOver: this.onInnerSliderOver
onMouseOver: this.onInnerSliderOver,
dir: 'ltr'
};

@@ -309,0 +296,0 @@

@@ -21,2 +21,4 @@ 'use strict';

var _innerSliderUtils = require('../utils/innerSliderUtils');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -104,2 +106,5 @@

swipeStart: function swipeStart(e) {
if (e.target.tagName === 'IMG') {
e.preventDefault();
}
var touches, posX, posY;

@@ -174,3 +179,3 @@

var dotCount = Math.ceil(this.state.slideCount / this.props.slidesToScroll); // this might not be correct, using getDotCount may be more accurate
var swipeDirection = this.swipeDirection(this.state.touchObject);
var swipeDirection = (0, _innerSliderUtils.getSwipeDirection)(this.state.touchObject, this.props.verticalSwiping);
var touchSwipeLength = touchObject.swipeLength;

@@ -279,3 +284,3 @@

if (!_this.props.vertical) {
if (slide.offsetLeft - centerOffset + _this.getWidth(slide) / 2 > _this.state.swipeLeft * -1) {
if (slide.offsetLeft - centerOffset + (0, _innerSliderUtils.getWidth)(slide) / 2 > _this.state.swipeLeft * -1) {
swipedSlide = slide;

@@ -285,3 +290,3 @@ return false;

} else {
if (slide.offsetTop + _this.getHeight(slide) / 2 > _this.state.swipeLeft * -1) {
if (slide.offsetTop + (0, _innerSliderUtils.getHeight)(slide) / 2 > _this.state.swipeLeft * -1) {
swipedSlide = slide;

@@ -295,2 +300,5 @@ return false;

if (!swipedSlide) {
return 0;
}
var currentIndex = this.props.rtl === true ? this.state.slideCount - this.state.currentSlide : this.state.currentSlide;

@@ -314,3 +322,3 @@ var slidesTraversed = Math.abs(swipedSlide.dataset.index - currentIndex) || 1;

var minSwipe = this.state.listWidth / this.props.touchThreshold;
var swipeDirection = this.swipeDirection(touchObject);
var swipeDirection = (0, _innerSliderUtils.getSwipeDirection)(touchObject, this.props.verticalSwiping);

@@ -353,15 +361,13 @@ if (this.props.verticalSwiping) {

case 'left':
case 'down':
case 'up':
newSlide = this.state.currentSlide + this.getSlideCount();
slideCount = this.props.swipeToSlide ? this.checkNavigable(newSlide) : newSlide;
// this.state.currentDirection = 0; // critical: change this line with setState statement
this.setState({ currentDirection: 0 }); // unverified fix of above line
this.setState({ currentDirection: 0 });
break;
case 'right':
case 'up':
case 'down':
newSlide = this.state.currentSlide - this.getSlideCount();
slideCount = this.props.swipeToSlide ? this.checkNavigable(newSlide) : newSlide;
// this.state.currentDirection = 1; // critical: change this line with setState statement
this.setState({ currentDirection: 1 }); // unverified fix of above line
this.setState({ currentDirection: 1 });
break;

@@ -368,0 +374,0 @@

@@ -26,55 +26,9 @@ 'use strict';

var helpers = {
// supposed to start autoplay of slides
initialize: function initialize(props) {
var slickList = _reactDom2.default.findDOMNode(this.list);
update: function update(props) {
var recursionLevel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var slideCount = _react2.default.Children.count(props.children);
var listWidth = this.getWidth(slickList);
var trackWidth = this.getWidth(_reactDom2.default.findDOMNode(this.track));
var slideWidth;
if (!props.vertical) {
var centerPaddingAdj = props.centerMode && parseInt(props.centerPadding) * 2;
if (props.centerPadding.slice(-1) === '%') {
centerPaddingAdj *= listWidth / 100;
}
slideWidth = Math.ceil((this.getWidth(_reactDom2.default.findDOMNode(this)) - centerPaddingAdj) / props.slidesToShow);
} else {
slideWidth = Math.ceil(this.getWidth(_reactDom2.default.findDOMNode(this)));
}
var slideHeight = this.getHeight(slickList.querySelector('[data-index="0"]'));
var listHeight = slideHeight * props.slidesToShow;
var currentSlide = props.rtl ? slideCount - 1 - props.initialSlide : props.initialSlide;
this.setState({
slideCount: slideCount,
slideWidth: slideWidth,
listWidth: listWidth,
trackWidth: trackWidth,
currentSlide: currentSlide,
slideHeight: slideHeight,
listHeight: listHeight
}, function () {
// this reference isn't lost due to mixin
var targetLeft = (0, _trackHelper.getTrackLeft)((0, _objectAssign2.default)({
slideIndex: this.state.currentSlide,
trackRef: this.track
}, props, this.state));
// getCSS function needs previously set state
var trackStyle = (0, _trackHelper.getTrackCSS)((0, _objectAssign2.default)({ left: targetLeft }, props, this.state));
this.setState({ trackStyle: trackStyle });
this.autoPlay(); // once we're set up, trigger the initial autoplay.
});
},
update: function update(props) {
var slickList = _reactDom2.default.findDOMNode(this.list);
// This method has mostly same code as initialize method.
// Refactor it
var slideCount = _react2.default.Children.count(props.children);
var listWidth = this.getWidth(slickList);
var trackWidth = this.getWidth(_reactDom2.default.findDOMNode(this.track));
var listWidth = (0, _innerSliderUtils.getWidth)(slickList);
var trackWidth = (0, _innerSliderUtils.getWidth)(_reactDom2.default.findDOMNode(this.track));
var slideWidth;

@@ -87,8 +41,8 @@

}
slideWidth = Math.ceil((this.getWidth(_reactDom2.default.findDOMNode(this)) - centerPaddingAdj) / props.slidesToShow);
slideWidth = Math.ceil(((0, _innerSliderUtils.getWidth)(slickList) - centerPaddingAdj) / props.slidesToShow);
} else {
slideWidth = Math.ceil(this.getWidth(_reactDom2.default.findDOMNode(this)));
slideWidth = Math.ceil((0, _innerSliderUtils.getWidth)(slickList));
}
var slideHeight = this.getHeight(slickList.querySelector('[data-index="0"]'));
var slideHeight = (0, _innerSliderUtils.getHeight)(slickList.querySelector('[data-index="0"]'));
var listHeight = slideHeight * props.slidesToShow;

@@ -117,3 +71,7 @@

}, function () {
if (!slideWidth) {
if (recursionLevel < 2) {
this.update(this.props, recursionLevel + 1);
}
}
var targetLeft = (0, _trackHelper.getTrackLeft)((0, _objectAssign2.default)({

@@ -129,9 +87,2 @@ slideIndex: this.state.currentSlide,

},
getWidth: function getWidth(elem) {
return elem && (elem.getBoundingClientRect().width || elem.offsetWidth) || 0;
},
getHeight: function getHeight(elem) {
return elem && (elem.getBoundingClientRect().height || elem.offsetHeight) || 0;
},
adaptHeight: function adaptHeight() {

@@ -147,19 +98,2 @@ if (this.props.adaptiveHeight) {

},
canGoNext: function canGoNext(opts) {
var canGo = true;
if (!opts.infinite) {
if (opts.centerMode) {
// check if current slide is last slide
if (opts.currentSlide >= opts.slideCount - 1) {
canGo = false;
}
} else {
// check if all slides are shown in slider
if (opts.slideCount <= opts.slidesToShow || opts.currentSlide >= opts.slideCount - opts.slidesToShow) {
canGo = false;
}
}
}
return canGo;
},
slideHandler: function slideHandler(index) {

@@ -218,6 +152,6 @@ var _this = this;

}, function () {
if (this.props.asNavFor && this.props.asNavFor.innerSlider.state.currentSlide !== this.state.currentSlide) {
this.props.asNavFor.innerSlider.slideHandler(index);
if (_this.props.asNavFor && _this.props.asNavFor.innerSlider.state.currentSlide !== _this.state.currentSlide) {
_this.props.asNavFor.innerSlider.slideHandler(index);
}
this.animationEndCallback = setTimeout(callback, this.props.speed);
_this.animationEndCallback = setTimeout(callback, _this.props.speed);
});

@@ -342,3 +276,2 @@

};
this.setState({

@@ -349,6 +282,6 @@ animating: true,

}, function () {
if (this.props.asNavFor && this.props.asNavFor.innerSlider.state.currentSlide !== this.state.currentSlide) {
this.props.asNavFor.innerSlider.slideHandler(index);
if (_this.props.asNavFor && _this.props.asNavFor.innerSlider.state.currentSlide !== _this.state.currentSlide) {
_this.props.asNavFor.innerSlider.slideHandler(index);
}
this.animationEndCallback = setTimeout(callback, this.props.speed);
_this.animationEndCallback = setTimeout(callback, _this.props.speed);
});

@@ -359,29 +292,2 @@ }

},
swipeDirection: function swipeDirection(touchObject) {
var xDist, yDist, r, swipeAngle;
xDist = touchObject.startX - touchObject.curX;
yDist = touchObject.startY - touchObject.curY;
r = Math.atan2(yDist, xDist);
swipeAngle = Math.round(r * 180 / Math.PI);
if (swipeAngle < 0) {
swipeAngle = 360 - Math.abs(swipeAngle);
}
if (swipeAngle <= 45 && swipeAngle >= 0 || swipeAngle <= 360 && swipeAngle >= 315) {
return 'left';
}
if (swipeAngle >= 135 && swipeAngle <= 225) {
return 'right';
}
if (this.props.verticalSwiping === true) {
if (swipeAngle >= 35 && swipeAngle <= 135) {
return 'down';
} else {
return 'up';
}
}
return 'vertical';
},
play: function play() {

@@ -397,3 +303,3 @@ var nextIndex;

} else {
if (this.canGoNext(_extends({}, this.props, this.state))) {
if ((0, _innerSliderUtils.canGoNext)(_extends({}, this.props, this.state))) {
nextIndex = this.state.currentSlide + this.props.slidesToScroll;

@@ -400,0 +306,0 @@ } else {

@@ -144,3 +144,2 @@ 'use strict';

var lastSlide = _reactDom2.default.findDOMNode(trackRef).children[slideCount - 1];
var max = -lastSlide.offsetLeft + listWidth - lastSlide.offsetWidth;
targetSlideIndex = slideIndex + (0, _trackUtils.getPreClones)(spec);

@@ -156,7 +155,5 @@ targetSlide = _reactDom2.default.findDOMNode(trackRef).childNodes[targetSlideIndex];

}
targetLeft -= parseInt(spec.centerPadding);
targetLeft += (listWidth - targetSlide.offsetWidth) / 2;
}
if (spec.infinite === false && targetLeft < max) {
targetLeft = max;
}
}

@@ -163,0 +160,0 @@

@@ -135,4 +135,2 @@ 'use strict';

if (this.state.breakpoint) {
// never executes in the first render
// so defaultProps should be already there in this.props
newProps = this.props.responsive.filter(function (resp) {

@@ -180,5 +178,7 @@ return resp.breakpoint === _this3.state.breakpoint;

settings.slidesToShow = children.length;
settings.className += ' unslicked';
} else if (children.length <= settings.slidesToShow) {
settings.unslick = true;
settings.slidesToShow = children.length;
settings.className += ' unslicked';
}

@@ -185,0 +185,0 @@ return _react2.default.createElement(

@@ -1,16 +0,21 @@

"use strict";
'use strict';
exports.__esModule = true;
exports.initializedState = exports.extractObject = exports.canGoNext = exports.getSwipeDirection = exports.getHeight = exports.getWidth = exports.slidesOnRight = exports.slidesOnLeft = exports.lazyEndIndex = exports.lazyStartIndex = exports.getRequiredLazySlides = exports.getOnDemandLazySlides = undefined;
// Following function expects props and states from InnerSlider component
// and returns a list of slides that need to be loaded in order to complete the list frame
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactDom = require('react-dom');
var _reactDom2 = _interopRequireDefault(_reactDom);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// return list of slides that need to be loaded and are not in lazyLoadedList
var getOnDemandLazySlides = exports.getOnDemandLazySlides = function getOnDemandLazySlides(spec) {
/*
@TODO: call onLazyLoad event here
*/
var onDemandSlides = [];
// you might wanna use trackUtils functions for this
var startIndex = lazyStartIndex(spec);
var endIndex = lazyEndIndex(spec);
for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {

@@ -24,2 +29,3 @@ if (spec.lazyLoadedList.indexOf(slideIndex) < 0) {

// return list of slides that need to be present
var getRequiredLazySlides = exports.getRequiredLazySlides = function getRequiredLazySlides(spec) {

@@ -35,10 +41,12 @@ var requiredSlides = [];

// startIndex that needs to be present
var lazyStartIndex = exports.lazyStartIndex = function lazyStartIndex(spec) {
return spec.currentSlide - slidesOnLeft(spec);
};
// endIndex that needs to be present but is exclusive
var lazyEndIndex = exports.lazyEndIndex = function lazyEndIndex(spec) {
return spec.currentSlide + slidesOnRight(spec);
}; // endIndex is exclusive
};
// may be compared with trackutils equivalents for betterment
// no of slides on left of current in active frame
var slidesOnLeft = exports.slidesOnLeft = function slidesOnLeft(spec) {

@@ -48,5 +56,96 @@ return spec.centerMode ? Math.floor(spec.slidesToShow / 2) + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : 0;

// may be compared with trackutils equivalents for betterment
// no of slides on right of current in active frame
var slidesOnRight = exports.slidesOnRight = function slidesOnRight(spec) {
return spec.centerMode ? Math.floor((spec.slidesToShow - 1) / 2) + 1 + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : spec.slidesToShow;
};
// get width of an element
var getWidth = exports.getWidth = function getWidth(elem) {
return elem && elem.offsetWidth || 0;
};
// get height of an element
var getHeight = exports.getHeight = function getHeight(elem) {
return elem && elem.offsetHeight || 0;
};
// in case of swipe event, get direction of the swipe event
var getSwipeDirection = exports.getSwipeDirection = function getSwipeDirection(touchObject) {
var verticalSwiping = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
var xDist, yDist, r, swipeAngle;
xDist = touchObject.startX - touchObject.curX;
yDist = touchObject.startY - touchObject.curY;
r = Math.atan2(yDist, xDist);
swipeAngle = Math.round(r * 180 / Math.PI);
if (swipeAngle < 0) {
swipeAngle = 360 - Math.abs(swipeAngle);
}
if (swipeAngle <= 45 && swipeAngle >= 0 || swipeAngle <= 360 && swipeAngle >= 315) {
return 'left';
}
if (swipeAngle >= 135 && swipeAngle <= 225) {
return 'right';
}
if (verticalSwiping === true) {
if (swipeAngle >= 35 && swipeAngle <= 135) {
return 'up';
} else {
return 'down';
}
}
return 'vertical';
};
// whether or not we can go next
var canGoNext = exports.canGoNext = function canGoNext(spec) {
var canGo = true;
if (!spec.infinite) {
if (spec.centerMode && spec.currentSlide >= spec.slideCount - 1) {
canGo = false;
} else if (spec.slideCount <= spec.slidesToShow || spec.currentSlide >= spec.slideCount - spec.slidesToShow) {
canGo = false;
}
}
return canGo;
};
// given an object and a list of keys, return new object with given keys
var extractObject = exports.extractObject = function extractObject(spec, keys) {
var newObject = {};
keys.forEach(function (key) {
return newObject[key] = spec[key];
});
return newObject;
};
// get initialized state
var initializedState = exports.initializedState = function initializedState(spec) {
// spec also contains listRef, trackRef
var slideCount = _react2.default.Children.count(spec.children);
var listWidth = Math.ceil(getWidth(_reactDom2.default.findDOMNode(spec.listRef)));
var trackWidth = Math.ceil(getWidth(_reactDom2.default.findDOMNode(spec.trackRef)));
var slideWidth = void 0;
if (!spec.vertical) {
var centerPaddingAdj = spec.centerMode && parseInt(spec.centerPadding) * 2;
if (typeof spec.centerPadding === 'string' && spec.centerPadding.slice(-1) === '%') {
centerPaddingAdj *= listWidth / 100;
}
slideWidth = Math.ceil((listWidth - centerPaddingAdj) / spec.slidesToShow);
} else {
slideWidth = listWidth;
}
var slideHeight = getHeight(_reactDom2.default.findDOMNode(spec.listRef).querySelector('[data-index="0"]'));
var listHeight = slideHeight * spec.slidesToShow;
var currentSlide = spec.currentSlide || spec.initialSlide;
if (spec.rtl && !spec.currentSlide) {
currentSlide = slideCount - 1 - spec.initialSlide;
}
var lazyLoadedList = spec.lazyLoadedList || [];
var slidesToLoad = getOnDemandLazySlides({ currentSlide: currentSlide, lazyLoadedList: lazyLoadedList }, spec);
lazyLoadedList.concat(slidesToLoad);
return { slideCount: slideCount, slideWidth: slideWidth, listWidth: listWidth, trackWidth: trackWidth, currentSlide: currentSlide,
slideHeight: slideHeight, listHeight: listHeight, lazyLoadedList: lazyLoadedList };
};
'use strict';
exports.__esModule = true;
exports.getPreClones = getPreClones;
exports.getPostClones = getPostClones;
exports.getTotalSlides = getTotalSlides;
exports.siblingDirection = siblingDirection;
exports.slidesOnRight = slidesOnRight;
exports.slidesOnLeft = slidesOnLeft;
function getPreClones(_ref) {
var slideCount = _ref.slideCount,
variableWidth = _ref.variableWidth,
slidesToShow = _ref.slidesToShow,
centerMode = _ref.centerMode,
unslick = _ref.unslick;
var getPreClones = exports.getPreClones = function getPreClones(spec) {
if (spec.unslick || !spec.infinite) {
return 0;
}
if (spec.variableWidth) {
return spec.slideCount;
}
return spec.slidesToShow + (spec.centerMode ? 1 : 0);
};
if (unslick) return 0;
if (variableWidth) {
return slideCount;
var getPostClones = exports.getPostClones = function getPostClones(spec) {
if (spec.unslick || !spec.infinite) {
return 0;
}
return slidesToShow + (centerMode ? 1 : 0);
}
return spec.slideCount;
};
function getPostClones(_ref2) {
var slideCount = _ref2.slideCount,
unslick = _ref2.unslick;
var getTotalSlides = exports.getTotalSlides = function getTotalSlides(spec) {
return spec.slideCount === 1 ? 1 : getPreClones(spec) + spec.slideCount + getPostClones(spec);
};
if (unslick) return 0;
return slideCount;
}
function siblingDirection(_ref) {
var currentSlide = _ref.currentSlide,
targetSlide = _ref.targetSlide,
slidesToShow = _ref.slidesToShow,
centerMode = _ref.centerMode,
rtl = _ref.rtl;
function getTotalSlides(_ref3) {
var variableWidth = _ref3.variableWidth,
slideCount = _ref3.slideCount,
slidesToShow = _ref3.slidesToShow,
centerMode = _ref3.centerMode,
unslick = _ref3.unslick;
if (slideCount === 1) {
return 1;
}
return getPreClones({ slideCount: slideCount, variableWidth: variableWidth, slidesToShow: slidesToShow, centerMode: centerMode, unslick: unslick }) + slideCount + getPostClones({ slideCount: slideCount, unslick: unslick });
}
function siblingDirection(_ref4) {
var currentSlide = _ref4.currentSlide,
targetSlide = _ref4.targetSlide,
slidesToShow = _ref4.slidesToShow,
centerMode = _ref4.centerMode,
rtl = _ref4.rtl;
if (targetSlide > currentSlide) {

@@ -53,0 +36,0 @@ if (targetSlide > currentSlide + slidesOnRight(slidesToShow, centerMode, rtl)) {

{
"name": "react-slick",
"version": "0.20.0",
"version": "0.21.0",
"description": " React port of slick carousel",

@@ -12,2 +12,3 @@ "main": "./lib",

"start": "gulp server",
"build": "gulp clean && gulp sass && gulp copy && webpack",
"prepublish": "babel ./src --out-dir ./lib && gulp dist",

@@ -14,0 +15,0 @@ "test": "jest",

@@ -43,7 +43,9 @@ ### react-slick

<a href="https://opencollective.com/react-slick/donate" target="_blank">
<img align="right" src="https://opencollective.com/react-slick/donate/button@2x.png?color=blue" width=300 />
<img src="https://opencollective.com/react-slick/donate/button@2x.png?color=blue" width=300 />
</a>
### Filing issues

@@ -60,7 +62,7 @@ Please replicate your issue with [CodeSandbox template](https://codesandbox.io/s/zzloxr09mp) and post it along with issue to make it easy for me to debug.

```js
var React = require('react');
var Slider = require('react-slick');
import React from 'react'
import Slider from 'react-slick'
class SimpleSlider extends React.Component {
render: function () {
render () {
var settings = {

@@ -101,3 +103,3 @@ dots: true,

`centerMode` | `bool` | `false` | Center current slide | Yes
`centerPadding` | | `'50px'` | | Yes
`centerPadding` | `string` | `'50px'` | | Yes
`cssEase` | | `'ease'` | | Yes

@@ -110,3 +112,3 @@ `customPaging` | `func` | `i => <button>{i + 1}</button>` | Custom paging templates. [Example](examples/CustomPaging.js)| Yes

`easing` | `string` | `'linear'` | | Yes
`edgeEvent` | `func` | `null` | Edge dragged event in finite case, `direction => {...}`
`edgeEvent` | `func` | `null` | Edge dragged event in finite case, `direction => {...}` | Yes
`fade` | `bool` | `Default` | | Yes

@@ -137,3 +139,2 @@ `focusOnSelect` | `bool` | `false` | Go to slide on click | Yes

`beforeChange` | `func` | `null` | Index change callback. `(oldIndex, newIndex) => ...` | Yes
`slickGoTo` | `int` | `Default` | Go to the specified slide number | Yes

@@ -140,0 +141,0 @@

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc