react-slick.min.js 46.9 KB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.Slider=t(require("react")):e.Slider=t(e.React)}(window,(function(e){return r={},t.m=n=[function(e,t,n){var r=n(2);function i(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(t,n){t.exports=e},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(19);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(20),i=n(21),o=n(22);e.exports=function(e){var t=i();return function(){var n,i=r(e);return i=t?(n=r(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments),o(this,i)}}},function(e,t,n){var r;
/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"==o||"number"==o)e.push(r);else if(Array.isArray(r)&&r.length){var s=i.apply(null,r);s&&e.push(s)}else if("object"==o)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){function r(e){var t="",n=Object.keys(e);return n.forEach((function(r,o){var s=e[r];r=i(r),/[height|width]$/.test(r)&&"number"==typeof s&&(s+="px"),t+=!0===s?r:!1===s?"not "+r:"("+r+": "+s+")",o<n.length-1&&(t+=" and ")})),t}var i=n(32);e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(n,i){t+=r(n),i<e.length-1&&(t+=", ")})),t):r(e)}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(25);n="object"==typeof self&&self&&self.Object===Object&&self,n=r||n||Function("return this")();e.exports=n},function(e,t){var n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){n=n(13).Symbol,e.exports=n},function(e,t,n){var r=n(23);e.exports=function(e,t){if(null==e)return{};var n,i=r(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),s=0;s<o.length;s++)n=o[s],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}},function(e,t,n){var r=n(12),i=n(24),o=n(26),s=Math.max,a=Math.min;e.exports=function(e,t,n){var l,c,u,d,p,f,h=0,v=!1,y=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=l,r=c;return l=c=void 0,h=t,d=e.apply(r,n)}function S(e){var n=e-f;return void 0===f||t<=n||n<0||y&&u<=e-h}function b(){var e,n=i();if(S(n))return w(n);p=setTimeout(b,(n=t-((e=n)-f),y?a(n,u-(e-h)):n))}function w(e){return p=void 0,g&&l?m(e):(l=c=void 0,d)}function k(){var e=i(),n=S(e);if(l=arguments,c=this,f=e,n){if(void 0===p)return h=n=f,p=setTimeout(b,t),v?m(n):d;if(y)return clearTimeout(p),p=setTimeout(b,t),m(f)}return void 0===p&&(p=setTimeout(b,t)),d}return t=o(t)||0,r(n)&&(v=!!n.leading,u=(y="maxWait"in n)?s(o(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),k.cancel=function(){void 0!==p&&clearTimeout(p),l=f=c=p=void(h=0)},k.flush=function(){return void 0===p?d:w(i())},k}},function(e,t,n){"use strict";(function(e){var n="undefined"!=typeof Map?Map:(Object.defineProperty(i.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),i.prototype.get=function(e){return e=r(this.__entries__,e),(e=this.__entries__[e])&&e[1]},i.prototype.set=function(e,t){var n=r(this.__entries__,e);~n?this.__entries__[n][1]=t:this.__entries__.push([e,t])},i.prototype.delete=function(e){var t=this.__entries__;~(e=r(t,e))&&t.splice(e,1)},i.prototype.has=function(e){return!!~r(this.__entries__,e)},i.prototype.clear=function(){this.__entries__.splice(0)},i.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},i);function r(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}function i(){this.__entries__=[]}var o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,s=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(s):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},l=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,u=(d.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},d.prototype.removeObserver=function(e){var t=this.observers_;~(e=t.indexOf(e))&&t.splice(e,1),!t.length&&this.connected_&&this.disconnect_()},d.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},d.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),0<e.length},d.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},d.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},d.prototype.onTransitionEnd_=function(e){var t=void 0===(e=e.propertyName)?"":e;l.some((function(e){return!!~t.indexOf(e)}))&&this.refresh()},d.getInstance=function(){return this.instance_||(this.instance_=new d),this.instance_},d.instance_=null,d);function d(){function e(){o&&(o=!1,r()),s&&n()}function t(){a(e)}function n(){var e=Date.now();if(o){if(e-l<2)return;s=!0}else s=!(o=!0),setTimeout(t,i);l=e}var r,i,o,s,l;this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=(r=this.refresh.bind(this),s=o=!(i=20),l=0,n)}var p=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||s},h=S(0,0,0,0);function v(e){return parseFloat(e)||0}function y(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+v(e["border-"+n+"-width"])}),0)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return o?g(e)?S(0,0,(t=(t=e).getBBox()).width,t.height):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return h;var r=f(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=v(o)}return t}(r),o=i.left+i.right,s=i.top+i.bottom,a=v(r.width),l=v(r.height);return"border-box"===r.boxSizing&&(Math.round(a+o)!==t&&(a-=y(r,"left","right")+o),Math.round(l+s)!==n&&(l-=y(r,"top","bottom")+s)),(e=e)!==f(e).document.documentElement&&(t=Math.round(a+o)-t,n=Math.round(l+s)-n,1!==Math.abs(t)&&(a-=t),1!==Math.abs(n)&&(l-=n)),S(i.left,i.top,a,l)}(e):h;var t}function S(e,t,n,r){return{x:e,y:t,width:n,height:r}}var b=(w.prototype.isActive=function(){var e=m(this.target);return(this.contentRect_=e).width!==this.broadcastWidth||e.height!==this.broadcastHeight},w.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},w);function w(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S(0,0,0,0),this.target=e}var k=function(e,t){var n,r,i,o=(n=(o=t).x,r=o.y,i=o.width,t=o.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(o.prototype),p(o,{x:n,y:r,width:i,height:t,top:r,right:n+i,bottom:t+r,left:n}),o);p(this,{target:e,contentRect:o})},x=(T.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},T.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},T.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},T.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},T.prototype.broadcastActive=function(){var e,t;this.hasActive()&&(e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new k(e.target,e.broadcastRect())})),this.callback_.call(e,t,e),this.clearActive())},T.prototype.clearActive=function(){this.activeObservations_.splice(0)},T.prototype.hasActive=function(){return 0<this.activeObservations_.length},T);function T(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}var O=new("undefined"!=typeof WeakMap?WeakMap:n),E=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance();n=new x(t,n,this);O.set(this,n)};["observe","unobserve","disconnect"].forEach((function(e){E.prototype[e]=function(){var t;return(t=O.get(this))[e].apply(t,arguments)}})),e=void 0!==s.ResizeObserver?s.ResizeObserver:E,t.a=e}).call(this,n(14))},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},function(e,t,n){var r=n(11),i=n(3);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t){e.exports=function(e,t){if(null==e)return{};for(var n,r={},i=Object.keys(e),o=0;o<i.length;o++)n=i[o],0<=t.indexOf(n)||(r[n]=e[n]);return r}},function(e,t,n){var r=n(13);e.exports=function(){return r.Date.now()}},function(e,t,n){(function(t){t="object"==typeof t&&t&&t.Object===Object&&t,e.exports=t}).call(this,n(14))},function(e,t,n){var r=n(12),i=n(27),o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(r(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=r(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var t=a.test(e);return t||l.test(e)?c(e.slice(2),t?2:8):s.test(e)?NaN:+e}},function(e,t,n){var r=n(28),i=n(31);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(15),i=n(29),o=n(30),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":(s&&s in Object(e)?i:o)(e)}},function(e,t,n){var r=n(15),i=(n=Object.prototype).hasOwnProperty,o=n.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{var r=!(e[s]=void 0)}catch(e){}var a=o.call(e);return r&&(t?e[s]=n:delete e[s]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){e.exports=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()}},function(e,t,n){"use strict";n.r(t);var r=n(9),i=n.n(r),o=(r=n(0),n.n(r)),s=(r=n(4),n.n(r)),a=(r=n(5),n.n(r)),l=(r=n(3),n.n(r)),c=(r=n(6),n.n(r)),u=(r=n(7),n.n(r)),d=(r=n(2),n.n(r)),p=(r=n(1),n.n(r)),f=(r=n(11),n.n(r)),h=(r=n(16),n.n(r)),v={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},y=(r=n(17),n.n(r)),g=(r=n(8),n.n(r));function m(e,t,n){return Math.max(t,Math.min(e,n))}function S(e){return e&&e.offsetWidth||0}function b(e,t){var n=1<arguments.length&&void 0!==t&&t;t=e.startX-e.curX,e=e.startY-e.curY,t=Math.atan2(e,t);return(t=Math.round(180*t/Math.PI))<0&&(t=360-Math.abs(t)),t<=45&&0<=t||t<=360&&315<=t?"left":135<=t&&t<=225?"right":!0===n?35<=t&&t<=135?"up":"down":"vertical"}function w(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)}function k(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function x(e){var t,n,r,i=e.rtl?e.slideCount-1-e.index:e.index,o=i<0||i>=e.slideCount;return e.centerMode?(r=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount==0,i>e.currentSlide-r-1&&i<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=i&&i<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":o,"slick-current":i===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}}function T(e,t){return e.key+"-"+t}var O=function(e){for(var t=[],n=E(e),r=L(e),i=n;i<r;i++)e.lazyLoadedList.indexOf(i)<0&&t.push(i);return t},E=function(e){return e.currentSlide-_(e)},L=function(e){return e.currentSlide+M(e)},_=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(0<parseInt(e.centerPadding)?1:0):0},M=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(0<parseInt(e.centerPadding)?1:0):e.slidesToShow},C=function(e){return e&&e.offsetHeight||0},z=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},P=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},R=function(e){var t=p.a.Children.count(e.children),n=e.listRef,r=Math.ceil(S(n)),i=e.trackRef&&e.trackRef.node,s=Math.ceil(S(i)),a=e.vertical?r:(u=e.centerMode&&2*parseInt(e.centerPadding),"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(u*=r/100),Math.ceil((r-u)/e.slidesToShow)),l=n&&C(n.querySelector('[data-index="0"]')),c=l*e.slidesToShow;i=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(i=t-1-e.initialSlide);var u=e.lazyLoadedList||[];n=O(o()(o()({},e),{},{currentSlide:i,lazyLoadedList:u}));return u.concat(n),u={slideCount:t,slideWidth:a,listWidth:r,trackWidth:s,currentSlide:i,slideHeight:l,listHeight:c,lazyLoadedList:u},null===e.autoplaying&&e.autoplay&&(u.autoplaying="playing"),u},j=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,i=e.infinite,s=e.index,a=e.slideCount,l=e.lazyLoadedList,c=e.lazyLoad,u=e.currentSlide,d=e.centerMode,p=e.slidesToScroll,f=e.slidesToShow,h=e.useCSS;if(t&&n)return{};var v=s,y={};t={},n=i?s:m(s,0,a-1);if(r){if(!i&&(s<0||a<=s))return{};s<0?v=s+a:a<=s&&(v=s-a),c&&l.indexOf(v)<0&&l.push(v),t={animating:!(y={animating:!0,currentSlide:v,lazyLoadedList:l,targetSlide:v}),targetSlide:v}}else(s=v)<0?(s=v+a,i?a%p!=0&&(s=a-a%p):s=0):!z(e)&&u<v?v=s=u:d&&a<=v?(v=i?a:a-1,s=i?0:a-1):a<=v&&(s=v-a,i?a%p!=0&&(s=0):s=a-f),!i&&a<=v+f&&(s=a-f),a=N(o()(o()({},e),{},{slideIndex:v})),f=N(o()(o()({},e),{},{slideIndex:s})),i||(a===f&&(v=s),a=f),c&&l.concat(O(o()(o()({},e),{},{currentSlide:v}))),h?t={animating:!(y={animating:!0,currentSlide:s,trackStyle:A(o()(o()({},e),{},{left:a})),lazyLoadedList:l,targetSlide:n}),currentSlide:s,trackStyle:I(o()(o()({},e),{},{left:f})),swipeLeft:null,targetSlide:n}:y={currentSlide:s,trackStyle:I(o()(o()({},e),{},{left:f})),lazyLoadedList:l,targetSlide:n};return{state:y,nextState:t}},W=function(e,t){var n,r,i=e.slidesToScroll,s=e.slidesToShow,a=e.slideCount,l=e.currentSlide,c=e.targetSlide,u=e.lazyLoad,d=e.infinite,p=a%i!=0?0:(a-l)%i;return"previous"===t.message?(r=l-(n=0==p?i:s-p),u&&!d&&(r=-1==(s=l-n)?a-1:s),d||(r=c-i)):"next"===t.message?(r=l+(n=0==p?i:p),u&&!d&&(r=(l+i)%a+p),d||(r=c+i)):"dots"===t.message?r=t.index*t.slidesToScroll:"children"===t.message?(r=t.index,d&&(e=q(o()(o()({},e),{},{targetSlide:r})),r>t.currentSlide&&"left"===e?r-=a:r<t.currentSlide&&"right"===e&&(r+=a))):"index"===t.message&&(r=Number(t.index)),r},H=function(e,t){var n=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,i=[];n<t;)i.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return i}(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var i in n){if(t<n[i]){t=r;break}r=n[i]}return t},D=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,r=e.listRef.querySelectorAll(".slick-slide");return Array.from(r).every((function(r){if(e.vertical){if(r.offsetTop+C(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+S(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),n?(r=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide,Math.abs(n.dataset.index-r)||1):0}return e.slidesToScroll},I=function(e){var t,n;w(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=F(e)*e.slideWidth;var i,s,a={opacity:1,transition:"",WebkitTransition:""};return e.useTransform?(i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",r=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)",a=o()(o()({},a),{},{WebkitTransform:i,transform:s,msTransform:r})):e.vertical?a.top=e.left:a.left=e.left,e.fade&&(a={opacity:1}),t&&(a.width=t),n&&(a.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?a.marginTop=e.left+"px":a.marginLeft=e.left+"px"),a},A=function(e){w(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=I(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},N=function(e){if(e.unslick)return 0;w(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t=e.slideIndex,n=e.trackRef,r=e.infinite,i=e.centerMode,o=e.slideCount,s=e.slidesToShow,a=e.slidesToScroll,l=e.slideWidth,c=e.listWidth,u=e.variableWidth,d=e.slideHeight,p=e.fade,f=e.vertical;if(p||1===e.slideCount)return 0;if(p=0,r?(p=-X(e),o%a!=0&&o<t+a&&(p=-(o<t?s-(t-o):o%a)),i&&(p+=parseInt(s/2))):(o%a!=0&&o<t+a&&(p=s-o%a),i&&(p=parseInt(s/2))),y=f?t*d*-1+p*d:t*l*-1+p*l,!0===u){var h=n&&n.node,v=t+X(e),y=(n=h&&h.childNodes[v])?-1*n.offsetLeft:0;if(!0===i){v=r?t+X(e):t,n=h&&h.children[v];for(var g=y=0;g<v;g++)y-=h&&h.children[g]&&h.children[g].offsetWidth;y-=parseInt(e.centerPadding),y+=n&&(c-n.offsetWidth)/2}}return y},X=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},Y=function(e){return e.unslick||!e.infinite?0:e.slideCount},F=function(e){return 1===e.slideCount?1:X(e)+e.slideCount+Y(e)},q=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+B(e)?"left":"right":e.targetSlide<e.currentSlide-G(e)?"right":"left"},B=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl;e=e.centerPadding;return n?(n=(t-1)/2+1,0<parseInt(e)&&(n+=1),r&&t%2==0&&(n+=1),n):r?0:t-1},G=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl;e=e.centerPadding;return n?(n=(t-1)/2+1,0<parseInt(e)&&(n+=1),r||t%2!=0||(n+=1),n):r?t-1:0},U=function(e){c()(n,e);var t=u()(n);function n(){var e;s()(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),d()(l()(e),"node",null),d()(l()(e),"handleRef",(function(t){e.node=t})),e}return a()(n,[{key:"render",value:function(){var e=function(e){var t,n=[],r=[],i=[],s=p.a.Children.count(e.children),a=E(e),l=L(e);return p.a.Children.forEach(e.children,(function(c,u){var d,f={message:"children",index:u,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide},h=!e.lazyLoad||e.lazyLoad&&0<=e.lazyLoadedList.indexOf(u)?c:p.a.createElement("div",null),v=(d={},void 0!==(m=o()(o()({},e),{},{index:u})).variableWidth&&!1!==m.variableWidth||(d.width=m.slideWidth),m.fade&&(d.position="relative",m.vertical?d.top=-m.index*parseInt(m.slideHeight):d.left=-m.index*parseInt(m.slideWidth),d.opacity=m.currentSlide===m.index?1:0,m.useCSS&&(d.transition="opacity "+m.speed+"ms "+m.cssEase+", visibility "+m.speed+"ms "+m.cssEase)),d),y=h.props.className||"",m=x(o()(o()({},e),{},{index:u}));n.push(p.a.cloneElement(h,{key:"original"+T(h,u),"data-index":u,className:g()(m,y),tabIndex:"-1","aria-hidden":!m["slick-active"],style:o()(o()({outline:"none"},h.props.style||{}),v),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(f)}})),e.infinite&&!1===e.fade&&((d=s-u)<=X(e)&&s!==e.slidesToShow&&(a<=(t=-d)&&(h=c),m=x(o()(o()({},e),{},{index:t})),r.push(p.a.cloneElement(h,{key:"precloned"+T(h,t),"data-index":t,tabIndex:"-1",className:g()(m,y),"aria-hidden":!m["slick-active"],style:o()(o()({},h.props.style||{}),v),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(f)}}))),s!==e.slidesToShow&&((t=s+u)<l&&(h=c),m=x(o()(o()({},e),{},{index:t})),i.push(p.a.cloneElement(h,{key:"postcloned"+T(h,t),"data-index":t,tabIndex:"-1",className:g()(m,y),"aria-hidden":!m["slick-active"],style:o()(o()({},h.props.style||{}),v),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(f)}}))))})),e.rtl?r.concat(n,i).reverse():r.concat(n,i)}(this.props),t={onMouseEnter:(t=this.props).onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return p.a.createElement("div",i()({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},t),e)}}]),n}(p.a.PureComponent),V=function(e){c()(n,e);var t=u()(n);function n(){return s()(this,n),t.apply(this,arguments)}return a()(n,[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e=this.props,t=e.onMouseEnter,n=e.onMouseOver,r=e.onMouseLeave,i=e.infinite,s=e.slidesToScroll,a=e.slidesToShow,l=e.slideCount,c=e.currentSlide,u=function(e){return e=e.infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1}({slideCount:l,slidesToScroll:s,slidesToShow:a,infinite:i}),d=(r={onMouseEnter:t,onMouseOver:n,onMouseLeave:r},[]),f=0;f<u;f++){var h=(f+1)*s-1,v=(h=(v=i?h:m(h,0,l-1))-(s-1),h=i?h:m(h,0,l-1),g()({"slick-active":i?h<=c&&c<=v:c===h}));h={message:"dots",index:f,slidesToScroll:s,currentSlide:c},h=this.clickHandler.bind(this,h),d=d.concat(p.a.createElement("li",{key:f,className:v},p.a.cloneElement(this.props.customPaging(f),{onClick:h})))}return p.a.cloneElement(this.props.appendDots(d),o()({className:this.props.dotsClass},r))}}]),n}(p.a.PureComponent),$=function(e){c()(n,e);var t=u()(n);function n(){return s()(this,n),t.apply(this,arguments)}return a()(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});return!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null),e={key:"0","data-role":"none",className:g()(e),style:{display:"block"},onClick:t},t={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},e=this.props.prevArrow?p.a.cloneElement(this.props.prevArrow,o()(o()({},e),t)):p.a.createElement("button",i()({key:"0",type:"button"},e)," ","Previous")}}]),n}(p.a.PureComponent),K=function(e){c()(n,e);var t=u()(n);function n(){return s()(this,n),t.apply(this,arguments)}return a()(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});return z(this.props)||(e["slick-disabled"]=!0,t=null),e={key:"1","data-role":"none",className:g()(e),style:{display:"block"},onClick:t},t={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},e=this.props.nextArrow?p.a.cloneElement(this.props.nextArrow,o()(o()({},e),t)):p.a.createElement("button",i()({key:"1",type:"button"},e)," ","Next")}}]),n}(p.a.PureComponent),Z=n(18),J=function(e){c()(n,e);var t=u()(n);function n(e){var r;return s()(this,n),r=t.call(this,e),d()(l()(r),"listRefHandler",(function(e){return r.list=e})),d()(l()(r),"trackRefHandler",(function(e){return r.track=e})),d()(l()(r),"adaptHeight",(function(){var e;r.props.adaptiveHeight&&r.list&&(e=r.list.querySelector('[data-index="'.concat(r.state.currentSlide,'"]')),r.list.style.height=C(e)+"px")})),d()(l()(r),"componentDidMount",(function(){var e;r.props.onInit&&r.props.onInit(),!r.props.lazyLoad||0<(e=O(o()(o()({},r.props),r.state))).length&&(r.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),r.props.onLazyLoad&&r.props.onLazyLoad(e));var t=o()({listRef:r.list,trackRef:r.track},r.props);r.updateState(t,!0,(function(){r.adaptHeight(),r.props.autoplay&&r.autoPlay("update")})),"progressive"===r.props.lazyLoad&&(r.lazyLoadTimer=setInterval(r.progressiveLazyLoad,1e3)),r.ro=new Z.a((function(){r.state.animating?(r.onWindowResized(!1),r.callbackTimers.push(setTimeout((function(){return r.onWindowResized()}),r.props.speed))):r.onWindowResized()})),r.ro.observe(r.list),Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=r.props.pauseOnFocus?r.onSlideFocus:null,e.onblur=r.props.pauseOnFocus?r.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",r.onWindowResized):window.attachEvent("onresize",r.onWindowResized)})),d()(l()(r),"componentWillUnmount",(function(){r.animationEndCallback&&clearTimeout(r.animationEndCallback),r.lazyLoadTimer&&clearInterval(r.lazyLoadTimer),r.callbackTimers.length&&(r.callbackTimers.forEach((function(e){return clearTimeout(e)})),r.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",r.onWindowResized):window.detachEvent("onresize",r.onWindowResized),r.autoplayTimer&&clearInterval(r.autoplayTimer),r.ro.disconnect()})),d()(l()(r),"componentDidUpdate",(function(e){var t;r.checkImagesLoad(),r.props.onReInit&&r.props.onReInit(),!r.props.lazyLoad||0<(t=O(o()(o()({},r.props),r.state))).length&&(r.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}})),r.props.onLazyLoad&&r.props.onLazyLoad(t)),r.adaptHeight();var n=o()(o()({listRef:r.list,trackRef:r.track},r.props),r.state),i=r.didPropsChange(e);i&&r.updateState(n,i,(function(){r.state.currentSlide>=p.a.Children.count(r.props.children)&&r.changeSlide({message:"index",index:p.a.Children.count(r.props.children)-r.props.slidesToShow,currentSlide:r.state.currentSlide}),e.autoplay===r.props.autoplay&&e.autoplaySpeed===r.props.autoplaySpeed||(r.props.autoplay?r.autoPlay("update"):r.pause("paused"))}))})),d()(l()(r),"onWindowResized",(function(e){r.debouncedResize&&r.debouncedResize.cancel(),r.debouncedResize=y()((function(){return r.resizeWindow(e)}),50),r.debouncedResize()})),d()(l()(r),"resizeWindow",(function(){var e,t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];Boolean(r.track&&r.track.node)&&(e=o()(o()({listRef:r.list,trackRef:r.track},r.props),r.state),r.updateState(e,t,(function(){r.props.autoplay?r.autoPlay("update"):r.pause("paused")})),r.setState({animating:!1}),clearTimeout(r.animationEndCallback),delete r.animationEndCallback)})),d()(l()(r),"updateState",(function(e,t,n){var i=R(e);e=o()(o()(o()({},e),i),{},{slideIndex:i.currentSlide});var s=N(e);e=o()(o()({},e),{},{left:s}),s=I(e),!t&&p.a.Children.count(r.props.children)===p.a.Children.count(e.children)||(i.trackStyle=s),r.setState(i,n)})),d()(l()(r),"ssrInit",(function(){if(r.props.variableWidth){var e=0,t=0,n=[],i=X(o()(o()(o()({},r.props),r.state),{},{slideCount:r.props.children.length})),s=Y(o()(o()(o()({},r.props),r.state),{},{slideCount:r.props.children.length}));r.props.children.forEach((function(t){n.push(t.props.style.width),e+=t.props.style.width}));for(var a=0;a<i;a++)t+=n[n.length-1-a],e+=n[n.length-1-a];for(var l=0;l<s;l++)e+=n[l];for(var c=0;c<r.state.currentSlide;c++)t+=n[c];var u={width:e+"px",left:-t+"px"};return r.props.centerMode&&(f="".concat(n[r.state.currentSlide],"px"),u.left="calc(".concat(u.left," + (100% - ").concat(f,") / 2 ) ")),{trackStyle:u}}var d=p.a.Children.count(r.props.children),f=o()(o()(o()({},r.props),r.state),{},{slideCount:d});u=X(f)+Y(f)+d,d=100/r.props.slidesToShow*u,f=-(u=100/u)*(X(f)+r.state.currentSlide)*d/100;return r.props.centerMode&&(f+=(100-u*d/100)/2),{slideWidth:u+"%",trackStyle:{width:d+"%",left:f+"%"}}})),d()(l()(r),"checkImagesLoad",(function(){var e=r.list.querySelectorAll(".slick-slide img"),t=e.length,n=0;Array.prototype.forEach.call(e,(function(e){function i(){return++n&&t<=n&&r.onWindowResized()}var o;e.onclick?(o=e.onclick,e.onclick=function(){o(),e.parentNode.focus()}):e.onclick=function(){return e.parentNode.focus()},e.onload||(r.props.lazyLoad?e.onload=function(){r.adaptHeight(),r.callbackTimers.push(setTimeout(r.onWindowResized,r.props.speed))}:(e.onload=i,e.onerror=function(){i(),r.props.onLazyLoadError&&r.props.onLazyLoadError()}))}))})),d()(l()(r),"progressiveLazyLoad",(function(){for(var e=[],t=o()(o()({},r.props),r.state),n=r.state.currentSlide;n<r.state.slideCount+Y(t);n++)if(r.state.lazyLoadedList.indexOf(n)<0){e.push(n);break}for(var i=r.state.currentSlide-1;i>=-X(t);i--)if(r.state.lazyLoadedList.indexOf(i)<0){e.push(i);break}0<e.length?(r.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),r.props.onLazyLoad&&r.props.onLazyLoad(e)):r.lazyLoadTimer&&(clearInterval(r.lazyLoadTimer),delete r.lazyLoadTimer)})),d()(l()(r),"slideHandler",(function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=(c=r.props).asNavFor,i=c.beforeChange,s=c.onLazyLoad,a=c.speed,l=c.afterChange,c=r.state.currentSlide,u=(t=j(o()(o()(o()({index:e},r.props),r.state),{},{trackRef:r.track,useCSS:r.props.useCSS&&!t}))).state,d=t.nextState;u&&(i&&i(c,u.currentSlide),i=u.lazyLoadedList.filter((function(e){return r.state.lazyLoadedList.indexOf(e)<0})),s&&0<i.length&&s(i),!r.props.waitForAnimate&&r.animationEndCallback&&(clearTimeout(r.animationEndCallback),l&&l(c),delete r.animationEndCallback),r.setState(u,(function(){n&&r.asNavForIndex!==e&&(r.asNavForIndex=e,n.innerSlider.slideHandler(e)),d&&(r.animationEndCallback=setTimeout((function(){var e=d.animating,t=h()(d,["animating"]);r.setState(t,(function(){r.callbackTimers.push(setTimeout((function(){return r.setState({animating:e})}),10)),l&&l(u.currentSlide),delete r.animationEndCallback}))}),a))})))})),d()(l()(r),"changeSlide",(function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=o()(o()({},r.props),r.state);0!==(e=W(n,e))&&!e||(!0===t?r.slideHandler(e,t):r.slideHandler(e),r.props.autoplay&&r.autoPlay("update"),!r.props.focusOnSelect||(e=r.list.querySelectorAll(".slick-current"))[0]&&e[0].focus())})),d()(l()(r),"clickHandler",(function(e){!1===r.clickable&&(e.stopPropagation(),e.preventDefault()),r.clickable=!0})),d()(l()(r),"keyHandler",(function(e){""!==(e=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""}(e,r.props.accessibility,r.props.rtl))&&r.changeSlide({message:e})})),d()(l()(r),"selectHandler",(function(e){r.changeSlide(e)})),d()(l()(r),"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),d()(l()(r),"enableBodyScroll",(function(){window.ontouchmove=null})),d()(l()(r),"swipeStart",(function(e){r.props.verticalSwiping&&r.disableBodyScroll(),""!==(e=function(e,t,n){return"IMG"===e.target.tagName&&e.preventDefault(),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}}(e,r.props.swipe,r.props.draggable))&&r.setState(e)})),d()(l()(r),"swipeMove",(function(e){(e=function(e,t){var n=t.scrolling,r=t.animating,i=t.vertical,s=t.swipeToSlide,a=t.verticalSwiping,l=t.rtl,c=t.currentSlide,u=t.edgeFriction,d=t.edgeDragged,p=t.onEdge,f=t.swiped,h=t.swiping,v=t.slideCount,y=t.slidesToScroll,g=t.infinite,m=t.touchObject,S=t.swipeEvent,w=t.listHeight,k=t.listWidth;if(!n){if(r)return e.preventDefault();if(i&&s&&a&&e.preventDefault(),n={},r=N(t),m.curX=e.touches?e.touches[0].pageX:e.clientX,m.curY=e.touches?e.touches[0].pageY:e.clientY,m.swipeLength=Math.round(Math.sqrt(Math.pow(m.curX-m.startX,2))),s=Math.round(Math.sqrt(Math.pow(m.curY-m.startY,2))),!a&&!h&&10<s)return{scrolling:!0};a&&(m.swipeLength=s);h=(l?-1:1)*(m.curX>m.startX?1:-1);return a&&(h=m.curY>m.startY?1:-1),s=Math.ceil(v/y),v=b(t.touchObject,a),y=m.swipeLength,g||(0===c&&"right"===v||s<=c+1&&"left"===v||!z(t)&&"left"===v)&&(y=m.swipeLength*u,!1===d&&p&&(p(v),n.edgeDragged=!0)),!f&&S&&(S(v),n.swiped=!0),h=a?r+y*h:i?r+y*(w/k)*h:l?r-y*h:r+y*h,n=o()(o()({},n),{},{touchObject:m,swipeLeft:h,trackStyle:I(o()(o()({},t),{},{left:h}))}),Math.abs(m.curX-m.startX)<.8*Math.abs(m.curY-m.startY)||10<m.swipeLength&&(n.swiping=!0,e.preventDefault()),n}}(e,o()(o()(o()({},r.props),r.state),{},{trackRef:r.track,listRef:r.list,slideIndex:r.state.currentSlide})))&&(e.swiping&&(r.clickable=!1),r.setState(e))})),d()(l()(r),"swipeEnd",(function(e){var t=function(e,t){var n=t.dragging,r=t.swipe,i=t.touchObject,s=t.listWidth,a=t.touchThreshold,l=t.verticalSwiping,c=t.listHeight,u=t.swipeToSlide,d=t.scrolling,p=t.onSwipe,f=t.targetSlide,h=t.currentSlide,v=t.infinite;if(!n)return r&&e.preventDefault(),{};a=l?c/a:s/a,l=b(i,l);var y,g,m={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d)return m;if(!i.swipeLength)return m;if(i.swipeLength>a){e.preventDefault(),p&&p(l);var S=v?h:f;switch(l){case"left":case"up":g=S+D(t),y=u?H(t,g):g,m.currentDirection=0;break;case"right":case"down":g=S-D(t),y=u?H(t,g):g,m.currentDirection=1;break;default:y=S}m.triggerSlideHandler=y}else l=N(t),m.trackStyle=A(o()(o()({},t),{},{left:l}));return m}(e,o()(o()(o()({},r.props),r.state),{},{trackRef:r.track,listRef:r.list,slideIndex:r.state.currentSlide}));t&&(e=t.triggerSlideHandler,delete t.triggerSlideHandler,r.setState(t),void 0!==e&&(r.slideHandler(e),r.props.verticalSwiping&&r.enableBodyScroll()))})),d()(l()(r),"touchEnd",(function(e){r.swipeEnd(e),r.clickable=!0})),d()(l()(r),"slickPrev",(function(){r.callbackTimers.push(setTimeout((function(){return r.changeSlide({message:"previous"})}),0))})),d()(l()(r),"slickNext",(function(){r.callbackTimers.push(setTimeout((function(){return r.changeSlide({message:"next"})}),0))})),d()(l()(r),"slickGoTo",(function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";r.callbackTimers.push(setTimeout((function(){return r.changeSlide({message:"index",index:e,currentSlide:r.state.currentSlide},t)}),0))})),d()(l()(r),"play",(function(){var e;if(r.props.rtl)e=r.state.currentSlide-r.props.slidesToScroll;else{if(!z(o()(o()({},r.props),r.state)))return!1;e=r.state.currentSlide+r.props.slidesToScroll}r.slideHandler(e)})),d()(l()(r),"autoPlay",(function(e){r.autoplayTimer&&clearInterval(r.autoplayTimer);var t=r.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;r.autoplayTimer=setInterval(r.play,r.props.autoplaySpeed+50),r.setState({autoplaying:"playing"})})),d()(l()(r),"pause",(function(e){r.autoplayTimer&&(clearInterval(r.autoplayTimer),r.autoplayTimer=null);var t=r.state.autoplaying;"paused"===e?r.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||r.setState({autoplaying:"focused"}):"playing"===t&&r.setState({autoplaying:"hovered"})})),d()(l()(r),"onDotsOver",(function(){return r.props.autoplay&&r.pause("hovered")})),d()(l()(r),"onDotsLeave",(function(){return r.props.autoplay&&"hovered"===r.state.autoplaying&&r.autoPlay("leave")})),d()(l()(r),"onTrackOver",(function(){return r.props.autoplay&&r.pause("hovered")})),d()(l()(r),"onTrackLeave",(function(){return r.props.autoplay&&"hovered"===r.state.autoplaying&&r.autoPlay("leave")})),d()(l()(r),"onSlideFocus",(function(){return r.props.autoplay&&r.pause("focused")})),d()(l()(r),"onSlideBlur",(function(){return r.props.autoplay&&"focused"===r.state.autoplaying&&r.autoPlay("blur")})),d()(l()(r),"render",(function(){var e,t,n,s=g()("slick-slider",r.props.className,{"slick-vertical":r.props.vertical,"slick-initialized":!0}),a=o()(o()({},r.props),r.state),l=P(a,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),c=r.props.pauseOnHover;l=o()(o()({},l),{},{onMouseEnter:c?r.onTrackOver:null,onMouseLeave:c?r.onTrackLeave:null,onMouseOver:c?r.onTrackOver:null,focusOnSelect:r.props.focusOnSelect&&r.clickable?r.selectHandler:null});!0===r.props.dots&&r.state.slideCount>=r.props.slidesToShow&&(u=P(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),e=r.props.pauseOnDotsHover,u=o()(o()({},u),{},{clickHandler:r.changeSlide,onMouseEnter:e?r.onDotsLeave:null,onMouseOver:e?r.onDotsOver:null,onMouseLeave:e?r.onDotsLeave:null}),e=p.a.createElement(V,u));var u=P(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);return u.clickHandler=r.changeSlide,r.props.arrows&&(t=p.a.createElement($,u),n=p.a.createElement(K,u)),a=null,r.props.vertical&&(a={height:r.state.listHeight}),u=null,!1===r.props.vertical?!0===r.props.centerMode&&(u={padding:"0px "+r.props.centerPadding}):!0===r.props.centerMode&&(u={padding:r.props.centerPadding+" 0px"}),a=o()(o()({},a),u),u=r.props.touchMove,a={className:"slick-list",style:a,onClick:r.clickHandler,onMouseDown:u?r.swipeStart:null,onMouseMove:r.state.dragging&&u?r.swipeMove:null,onMouseUp:u?r.swipeEnd:null,onMouseLeave:r.state.dragging&&u?r.swipeEnd:null,onTouchStart:u?r.swipeStart:null,onTouchMove:r.state.dragging&&u?r.swipeMove:null,onTouchEnd:u?r.touchEnd:null,onTouchCancel:r.state.dragging&&u?r.swipeEnd:null,onKeyDown:r.props.accessibility?r.keyHandler:null},u={className:s,dir:"ltr",style:r.props.style},r.props.unslick&&(a={className:"slick-list"},u={className:s}),p.a.createElement("div",u,r.props.unslick?"":t,p.a.createElement("div",i()({ref:r.listRefHandler},a),p.a.createElement(U,i()({ref:r.trackRefHandler},l),r.props.children)),r.props.unslick?"":n,r.props.unslick?"":e)})),r.list=null,r.track=null,r.state=o()(o()({},v),{},{currentSlide:r.props.initialSlide,slideCount:p.a.Children.count(r.props.children)}),r.callbackTimers=[],r.clickable=!0,r.debouncedResize=null,e=r.ssrInit(),r.state=o()(o()({},r.state),e),r}return a()(n,[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,r=Object.keys(this.props);n<r.length;n++){var i=r[n];if(!e.hasOwnProperty(i)){t=!0;break}if("object"!==f()(e[i])&&"function"!=typeof e[i]&&e[i]!==this.props[i]){t=!0;break}}return t||p.a.Children.count(this.props.children)!==p.a.Children.count(e.children)}}]),n}(p.a.Component),Q=(r=n(10),n.n(r)),ee={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return p.a.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return p.a.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0};r=function(e){c()(n,e);var t=u()(n);function n(e){var r;return s()(this,n),r=t.call(this,e),d()(l()(r),"innerSliderRefHandler",(function(e){return r.innerSlider=e})),d()(l()(r),"slickPrev",(function(){return r.innerSlider.slickPrev()})),d()(l()(r),"slickNext",(function(){return r.innerSlider.slickNext()})),d()(l()(r),"slickGoTo",(function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return r.innerSlider.slickGoTo(e,t)})),d()(l()(r),"slickPause",(function(){return r.innerSlider.pause("paused")})),d()(l()(r),"slickPlay",(function(){return r.innerSlider.autoPlay("play")})),r.state={breakpoint:null},r._responsiveMediaHandlers=[],r}return a()(n,[{key:"media",value:function(e,t){function n(e){e.matches&&t()}var r=window.matchMedia(e);r.addListener(n),n(r),this._responsiveMediaHandlers.push({mql:r,query:e,listener:n})}},{key:"componentDidMount",value:function(){var e,t,n=this;this.props.responsive&&((e=this.props.responsive.map((function(e){return e.breakpoint}))).sort((function(e,t){return e-t})),e.forEach((function(t,r){r=0===r?Q()({minWidth:0,maxWidth:t}):Q()({minWidth:e[r-1]+1,maxWidth:t}),k()&&n.media(r,(function(){n.setState({breakpoint:t})}))})),t=Q()({minWidth:e.slice(-1)[0]}),k()&&this.media(t,(function(){n.setState({breakpoint:null})})))}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))}},{key:"render",value:function(){var e=this,t=this.state.breakpoint?"unslick"===(f=this.props.responsive.filter((function(t){return t.breakpoint===e.state.breakpoint})))[0].settings?"unslick":o()(o()(o()({},ee),this.props),f[0].settings):o()(o()({},ee),this.props);t.centerMode&&(t.slidesToScroll,t.slidesToScroll=1),t.fade&&(t.slidesToShow,t.slidesToScroll,t.slidesToShow=1,t.slidesToScroll=1);var n=(n=p.a.Children.toArray(this.props.children)).filter((function(e){return"string"==typeof e?!!e.trim():!!e}));t.variableWidth&&(1<t.rows||1<t.slidesPerRow)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),t.variableWidth=!1);for(var r=[],s=null,a=0;a<n.length;a+=t.rows*t.slidesPerRow){for(var l=[],c=a;c<a+t.rows*t.slidesPerRow;c+=t.slidesPerRow){for(var u=[],d=c;d<c+t.slidesPerRow&&(t.variableWidth&&n[d].props.style&&(s=n[d].props.style.width),!(d>=n.length));d+=1)u.push(p.a.cloneElement(n[d],{key:100*a+10*c+d,tabIndex:-1,style:{width:"".concat(100/t.slidesPerRow,"%"),display:"inline-block"}}));l.push(p.a.createElement("div",{key:10*a+c},u))}t.variableWidth?r.push(p.a.createElement("div",{key:a,style:{width:s}},l)):r.push(p.a.createElement("div",{key:a},l))}if("unslick"!==t)return r.length<=t.slidesToShow&&(t.unslick=!0),p.a.createElement(J,i()({style:this.props.style,ref:this.innerSliderRefHandler},t),r);var f="regular slider "+(this.props.className||"");return p.a.createElement("div",{className:f},n)}}]),n}(p.a.Component);t.default=r}],t.c=r,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=33);function t(e){if(r[e])return r[e].exports;var i=r[e]={i:e,l:!1,exports:{}};return n[e].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n,r}));
//# sourceMappingURL=react-slick.min.js.map