2 lines
39 KiB
JavaScript
2 lines
39 KiB
JavaScript
((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 n=[function(e,t,n){var r=n(2);function o(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?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(t,n){t.exports=e},function(e,t,n){var r=n(12);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(12);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(16);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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(10).default,o=n(15);e.exports=function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return e.exports=function(){return!!t},e.exports.__esModule=!0,(e.exports.default=e.exports)()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)!{}.hasOwnProperty.call(r,n)||(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(null,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){function r(e){var t="",n=Object.keys(e);return n.forEach((function(r,s){var l=e[r];r=o(r),i(r)&&"number"==typeof l&&(l+="px"),t+=!0===l?r:!1===l?"not "+r:"("+r+": "+l+")",s<n.length-1&&(t+=" and ")})),t}var o=n(18),i=function(e){return/[height|width]$/.test(e)};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(n,o){t+=r(n),o<e.length-1&&(t+=", ")})),t):r(e)}},function(e,t,n){var r=n(10).default,o=n(14);e.exports=function(e){return e=o(e,"string"),"symbol"==r(e)?e:e+""},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(17);e.exports=function(e,t){if(null==e)return{};var n,o=r(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),s=0;s<i.length;s++)n=i[s],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(10).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);if(n=n.call(e,t||"default"),"object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")},e.exports.__esModule=!0,e.exports.default=e.exports},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},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r={};for(n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()}},function(e,t,n){n.r(t);var r=n(9),o=n.n(r),i=(r=n(0),n.n(r)),s=(r=n(4),n.n(r)),l=(r=n(5),n.n(r)),a=(r=n(7),n.n(r)),c=(r=n(8),n.n(r)),u=(r=n(3),n.n(r)),d=(r=n(6),n.n(r)),p=(r=n(2),n.n(r)),f=(r=n(1),n.n(r)),h=(r=n(10),n.n(r)),v=(r=n(13),n.n(r)),y={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};function g(){for(var e,t=0,n="",r=arguments.length;t<r;t++)(e=arguments[t])&&(e=function e(t){var n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t))for(var o=t.length,i=0;i<o;i++)t[i]&&(n=e(t[i]))&&(r&&(r+=" "),r+=n);else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}(e))&&(n&&(n+=" "),n+=e);return n}var S={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return f.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 f.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,verticalSwiping:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};function m(e,t,n){return Math.max(t,Math.min(e,n))}function w(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n}function k(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var b=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},x=function(e){for(var t=[],n=T(e),r=L(e),o=n;o<r;o++)e.lazyLoadedList.indexOf(o)<0&&t.push(o);return t},T=function(e){return e.currentSlide-M(e)},L=function(e){return e.currentSlide+C(e)},M=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(0<parseInt(e.centerPadding)?1:0):0},C=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(0<parseInt(e.centerPadding)?1:0):e.slidesToShow},O=function(e){return e&&e.offsetWidth||0},E=function(e){return e&&e.offsetHeight||0},P=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=e.startX-e.curX;e=Math.atan2(e.startY-e.curY,n);return(n=(n=Math.round(180*e/Math.PI))<0?360-Math.abs(n):n)<=45&&0<=n||n<=360&&315<=n?"left":135<=n&&n<=225?"right":!0===t?35<=n&&n<=135?"up":"down":"vertical"},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},R=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,o=[];n<t;)o.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return o}(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var o in n){if(t<n[o]){t=r;break}r=n[o]}return t},W=function(e){var t,n,r=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;return e.swipeToSlide?(n=(n=e.listRef).querySelectorAll&&n.querySelectorAll(".slick-slide")||[],Array.from(n).every((function(n){if(e.vertical){if(n.offsetTop+E(n)/2>-1*e.swipeLeft)return t=n,!1}else if(n.offsetLeft-r+O(n)/2>-1*e.swipeLeft)return t=n,!1;return!0})),t?(n=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide,Math.abs(t.dataset.index-n)||1):0):e.slidesToScroll},H=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},_=function(e){H(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]),e.vertical?n=(e.unslick?e.slideCount:e.slideCount+2*e.slidesToShow)*e.slideHeight:t=A(e)*e.slideWidth;var t,n,r,o,s,l={opacity:1,transition:"",WebkitTransition:""};return e.useTransform?(r=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)",l=i()(i()({},l),{},{WebkitTransform:r,transform:o,msTransform:s})):e.vertical?l.top=e.left:l.left=e.left,e.fade&&(l={opacity:1}),t&&(l.width=t),n&&(l.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?l.marginTop=e.left+"px":l.marginLeft=e.left+"px"),l},j=function(e){H(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=_(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},I=function(e){if(e.unslick)return 0;H(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t=e.slideIndex,n=e.trackRef,r=e.infinite,o=e.centerMode,i=e.slideCount,s=e.slidesToShow,l=e.slidesToScroll,a=e.slideWidth,c=e.listWidth,u=e.variableWidth,d=e.slideHeight,p=e.vertical;if(e.fade||1===e.slideCount)return 0;var f=0;if(r?(f=-N(e),i%l!=0&&i<t+l&&(f=-(i<t?s-(t-i):i%l)),o&&(f+=parseInt(s/2))):(i%l!=0&&i<t+l&&(f=s-i%l),o&&(f=parseInt(s/2))),y=p?t*d*-1+f*d:t*a*-1+f*a,!0===u){var h=n&&n.node;if(v=t+N(e),y=(i=h&&h.childNodes[v])?-1*i.offsetLeft:0,!0===o){for(var v=r?t+N(e):t,y=(i=h&&h.children[v],0),g=0;g<v;g++)y-=h&&h.children[g]&&h.children[g].offsetWidth;y=(y-=parseInt(e.centerPadding))+(i&&(c-i.offsetWidth)/2)}}return y},N=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},D=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},A=function(e){return 1===e.slideCount?1:N(e)+e.slideCount+D(e)},X=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+Y(e)?"left":"right":e.targetSlide<e.currentSlide-q(e)?"right":"left"},Y=function(e){var t,n=e.slidesToShow,r=e.rtl;return e.centerMode?(t=(n-1)/2+1,0<parseInt(e.centerPadding)&&(t+=1),r&&n%2==0&&(t+=1),t):r?0:n-1},q=function(e){var t,n=e.slidesToShow,r=e.rtl;return e.centerMode?(t=(n-1)/2+1,0<parseInt(e.centerPadding)&&(t+=1),r||n%2!=0||(t+=1),t):r?n-1:0},F=Object.keys(S);function B(e){var t,n,r,o=e.rtl?e.slideCount-1-e.index:e.index,i=o<0||o>=e.slideCount;return e.centerMode?(r=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount==0,e.currentSlide-r-1<o&&o<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=o&&o<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":i,"slick-current":o===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}}function U(e,t){return e.key+"-"+t}var G=(e=>{function t(){var e;s()(this,t);for(var n,r,o,i=arguments.length,l=new Array(i),d=0;d<i;d++)l[d]=arguments[d];return n=this,r=t,o=[].concat(l),r=u()(r),e=a()(n,c()()?Reflect.construct(r,o||[],u()(n).constructor):r.apply(n,o)),p()(e,"node",null),p()(e,"handleRef",(function(t){e.node=t})),e}return d()(t,e),l()(t,[{key:"render",value:function(){var e=function(e){var t,n=[],r=[],o=[],s=f.a.Children.count(e.children),l=T(e),a=L(e);return f.a.Children.forEach(e.children,(function(c,u){var d,p={message:"children",index:u,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide},h=!e.lazyLoad||(e.lazyLoad,0<=e.lazyLoadedList.indexOf(u))?c:f.a.createElement("div",null),v=(y={},void 0!==(v=i()(i()({},e),{},{index:u})).variableWidth&&!1!==v.variableWidth||(y.width=v.slideWidth),v.fade&&(y.position="relative",v.vertical&&v.slideHeight?y.top=-v.index*parseInt(v.slideHeight):y.left=-v.index*parseInt(v.slideWidth),y.opacity=v.currentSlide===v.index?1:0,y.zIndex=v.currentSlide===v.index?999:998,v.useCSS)&&(y.transition="opacity "+v.speed+"ms "+v.cssEase+", visibility "+v.speed+"ms "+v.cssEase),y),y=h.props.className||"",S=B(i()(i()({},e),{},{index:u}));n.push(f.a.cloneElement(h,{key:"original"+U(h,u),"data-index":u,className:g(S,y),tabIndex:"-1","aria-hidden":!S["slick-active"],style:i()(i()({outline:"none"},h.props.style||{}),v),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&1<s&&!1===e.fade&&!e.unslick&&((d=s-u)<=N(e)&&(l<=(t=-d)&&(h=c),S=B(i()(i()({},e),{},{index:t})),r.push(f.a.cloneElement(h,{key:"precloned"+U(h,t),"data-index":t,tabIndex:"-1",className:g(S,y),"aria-hidden":!S["slick-active"],style:i()(i()({},h.props.style||{}),v),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))),u<D(e))&&((t=s+u)<a&&(h=c),S=B(i()(i()({},e),{},{index:t})),o.push(f.a.cloneElement(h,{key:"postcloned"+U(h,t),"data-index":t,tabIndex:"-1",className:g(S,y),"aria-hidden":!S["slick-active"],style:i()(i()({},h.props.style||{}),v),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})))})),e.rtl?r.concat(n,o).reverse():r.concat(n,o)}(this.props),t={onMouseEnter:(t=this.props).onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return f.a.createElement("div",o()({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},t),e)}}])})(f.a.PureComponent),K=(e=>{function t(){return s()(this,t),e=this,n=t,r=arguments,n=u()(n),a()(e,c()()?Reflect.construct(n,r||[],u()(e).constructor):n.apply(e,r));var e,n,r}return d()(t,e),l()(t,[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e=(c=this.props).onMouseEnter,t=c.onMouseOver,n=c.onMouseLeave,r=c.infinite,o=c.slidesToScroll,s=c.slideCount,l=c.currentSlide,a=(e=>e.infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1)({slideCount:s,slidesToScroll:o,slidesToShow:c.slidesToShow,infinite:r}),c={onMouseEnter:e,onMouseOver:t,onMouseLeave:n},u=[],d=0;d<a;d++){var p=(d+1)*o-1,h=(p=r?p:m(p,0,s-1))-(o-1);h=r?h:m(h,0,s-1),p=g({"slick-active":r?h<=l&&l<=p:l===h}),h=this.clickHandler.bind(this,{message:"dots",index:d,slidesToScroll:o,currentSlide:l}),u=u.concat(f.a.createElement("li",{key:d,className:p},f.a.cloneElement(this.props.customPaging(d),{onClick:h})))}return f.a.cloneElement(this.props.appendDots(u),i()({className:this.props.dotsClass},c))}}])})(f.a.PureComponent);function V(e,t,n){return t=u()(t),a()(e,c()()?Reflect.construct(t,n||[],u()(e).constructor):t.apply(e,n))}var Z=(e=>{function t(){return s()(this,t),V(this,t,arguments)}return d()(t,e),l()(t,[{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"});!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};return t=this.props.prevArrow?f.a.cloneElement(this.props.prevArrow,i()(i()({},e),t)):f.a.createElement("button",o()({key:"0",type:"button"},e)," ","Previous")}}])})(f.a.PureComponent),$=(e=>{function t(){return s()(this,t),V(this,t,arguments)}return d()(t,e),l()(t,[{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"});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};return t=this.props.nextArrow?f.a.cloneElement(this.props.nextArrow,i()(i()({},e),t)):f.a.createElement("button",o()({key:"1",type:"button"},e)," ","Next")}}])})(f.a.PureComponent),J=["animating"],Q=(e=>{function t(e){s()(this,t),r=this,l=t,e=[e],l=u()(l),n=a()(r,c()()?Reflect.construct(l,e||[],u()(r).constructor):l.apply(r,e)),p()(n,"listRefHandler",(function(e){return n.list=e})),p()(n,"trackRefHandler",(function(e){return n.track=e})),p()(n,"adaptHeight",(function(){var e;n.props.adaptiveHeight&&n.list&&(e=n.list.querySelector('[data-index="'.concat(n.state.currentSlide,'"]')),n.list.style.height=E(e)+"px")})),p()(n,"componentDidMount",(function(){n.props.onInit&&n.props.onInit(),n.props.lazyLoad&&0<(e=x(i()(i()({},n.props),n.state))).length&&(n.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),n.props.onLazyLoad)&&n.props.onLazyLoad(e);var e,t=i()({listRef:n.list,trackRef:n.track},n.props);n.updateState(t,!0,(function(){n.adaptHeight(),n.props.autoplay&&n.autoPlay("playing")})),"progressive"===n.props.lazyLoad&&(n.lazyLoadTimer=setInterval(n.progressiveLazyLoad,1e3)),"undefined"!=typeof ResizeObserver&&(n.ro=new ResizeObserver((function(){n.state.animating?(n.onWindowResized(!1),n.callbackTimers.push(setTimeout((function(){return n.onWindowResized()}),n.props.speed))):n.onWindowResized()})),n.ro.observe(n.list)),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=n.props.pauseOnFocus?n.onSlideFocus:null,e.onblur=n.props.pauseOnFocus?n.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",n.onWindowResized):window.attachEvent("onresize",n.onWindowResized)})),p()(n,"componentWillUnmount",(function(){var e;n.animationEndCallback&&clearTimeout(n.animationEndCallback),n.lazyLoadTimer&&clearInterval(n.lazyLoadTimer),n.callbackTimers.length&&(n.callbackTimers.forEach((function(e){return clearTimeout(e)})),n.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",n.onWindowResized):window.detachEvent("onresize",n.onWindowResized),n.autoplayTimer&&clearInterval(n.autoplayTimer),null!=(e=n.ro)&&e.disconnect()})),p()(n,"componentDidUpdate",(function(e){n.checkImagesLoad(),n.props.onReInit&&n.props.onReInit(),n.props.lazyLoad&&0<(t=x(i()(i()({},n.props),n.state))).length&&(n.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}})),n.props.onLazyLoad)&&n.props.onLazyLoad(t),n.adaptHeight();var t,r=i()(i()({listRef:n.list,trackRef:n.track},n.props),n.state),o=n.didPropsChange(e);o&&n.updateState(r,o,(function(){n.state.currentSlide>=f.a.Children.count(n.props.children)&&n.changeSlide({message:"index",index:f.a.Children.count(n.props.children)-n.props.slidesToShow,currentSlide:n.state.currentSlide}),e.autoplay===n.props.autoplay&&e.autoplaySpeed===n.props.autoplaySpeed||(!e.autoplay&&n.props.autoplay?n.autoPlay("playing"):n.props.autoplay?n.autoPlay("update"):n.pause("paused"))}))})),p()(n,"onWindowResized",(function(e){var t;n.debouncedResize&&n.debouncedResize.cancel(),n.debouncedResize=(50,function(e,t,n){var r,o,i=void 0!==(o=(n=n||{}).noTrailing)&&o,s=void 0!==(o=n.noLeading)&&o,l=void 0===(o=n.debounceMode)?void 0:o,a=!1,c=0;function u(){r&&clearTimeout(r)}function d(){for(var n=arguments.length,o=new Array(n),d=0;d<n;d++)o[d]=arguments[d];var p=this,f=Date.now()-c;function h(){c=Date.now(),t.apply(p,o)}function v(){r=void 0}a||(s||!l||r||h(),u(),void 0===l&&e<f?s?(c=Date.now(),i||(r=setTimeout(l?v:h,e))):h():!0!==i&&(r=setTimeout(l?v:h,void 0===l?e-f:e)))}return d.cancel=function(e){e=void 0!==(e=(e||{}).upcomingOnly)&&e,u(),a=!e},d}(50,(function(){return n.resizeWindow(e)}),{debounceMode:!1!==(void 0!==(t=(t||{}).atBegin)&&t)})),n.debouncedResize()})),p()(n,"resizeWindow",(function(){var e,t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];Boolean(n.track&&n.track.node)&&(e=i()(i()({listRef:n.list,trackRef:n.track},n.props),n.state),n.updateState(e,t,(function(){n.props.autoplay?n.autoPlay("update"):n.pause("paused")})),n.setState({animating:!1}),clearTimeout(n.animationEndCallback),delete n.animationEndCallback)})),p()(n,"updateState",(function(e,t,r){o=e,s=f.a.Children.count(o.children),l=o.listRef,h=Math.ceil(O(l)),v=o.trackRef&&o.trackRef.node,v=Math.ceil(O(v)),p=o.vertical?h:(p=o.centerMode&&2*parseInt(o.centerPadding),"string"==typeof o.centerPadding&&"%"===o.centerPadding.slice(-1)&&(p*=h/100),Math.ceil((h-p)/o.slidesToShow)),a=(l=l&&E(l.querySelector('[data-index="0"]')))*o.slidesToShow,c=void 0===o.currentSlide?o.initialSlide:o.currentSlide,o.rtl&&void 0===o.currentSlide&&(c=s-1-o.initialSlide),u=o.lazyLoadedList||[],d=x(i()(i()({},o),{},{currentSlide:c,lazyLoadedList:u})),s={slideCount:s,slideWidth:p,listWidth:h,trackWidth:v,currentSlide:c,slideHeight:l,listHeight:a,lazyLoadedList:u=u.concat(d)},null===o.autoplaying&&o.autoplay&&(s.autoplaying="playing");var o,s,l,a,c,u,d,p=s,h=(e=i()(i()(i()({},e),p),{},{slideIndex:p.currentSlide}),I(e)),v=(e=i()(i()({},e),{},{left:h}),_(e));!t&&f.a.Children.count(n.props.children)===f.a.Children.count(e.children)||(p.trackStyle=v),n.setState(p,r)})),p()(n,"ssrInit",(function(){if(n.props.variableWidth){var e=0,t=0,r=[],o=N(i()(i()(i()({},n.props),n.state),{},{slideCount:n.props.children.length})),s=D(i()(i()(i()({},n.props),n.state),{},{slideCount:n.props.children.length}));n.props.children.forEach((function(t){r.push(t.props.style.width),e+=t.props.style.width}));for(var l=0;l<o;l++)t+=r[r.length-1-l],e+=r[r.length-1-l];for(var a=0;a<s;a++)e+=r[a];for(var c=0;c<n.state.currentSlide;c++)t+=r[c];var u={width:e+"px",left:-t+"px"};return n.props.centerMode&&(d="".concat(r[n.state.currentSlide],"px"),u.left="calc(".concat(u.left," + (100% - ").concat(d,") / 2 ) ")),{trackStyle:u}}var d=f.a.Children.count(n.props.children),p=(u=i()(i()(i()({},n.props),n.state),{},{slideCount:d}),d=N(u)+D(u)+d,100/n.props.slidesToShow*d);u=-(d=100/d)*(N(u)+n.state.currentSlide)*p/100;return n.props.centerMode&&(u+=(100-d*p/100)/2),{slideWidth:d+"%",trackStyle:{width:p+"%",left:u+"%"}}})),p()(n,"checkImagesLoad",(function(){var e=n.list&&n.list.querySelectorAll&&n.list.querySelectorAll(".slick-slide img")||[],t=e.length,r=0;Array.prototype.forEach.call(e,(function(e){function o(){return++r&&t<=r&&n.onWindowResized()}var i;e.onclick?(i=e.onclick,e.onclick=function(t){i(t),e.parentNode.focus()}):e.onclick=function(){return e.parentNode.focus()},e.onload||(n.props.lazyLoad?e.onload=function(){n.adaptHeight(),n.callbackTimers.push(setTimeout(n.onWindowResized,n.props.speed))}:(e.onload=o,e.onerror=function(){o(),n.props.onLazyLoadError&&n.props.onLazyLoadError()}))}))})),p()(n,"progressiveLazyLoad",(function(){for(var e=[],t=i()(i()({},n.props),n.state),r=n.state.currentSlide;r<n.state.slideCount+D(t);r++)if(n.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}for(var o=n.state.currentSlide-1;o>=-N(t);o--)if(n.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}0<e.length?(n.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),n.props.onLazyLoad&&n.props.onLazyLoad(e)):n.lazyLoadTimer&&(clearInterval(n.lazyLoadTimer),delete n.lazyLoadTimer)})),p()(n,"slideHandler",(function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=(c=n.props).asNavFor,o=c.beforeChange,s=c.onLazyLoad,l=c.speed,a=c.afterChange,c=n.state.currentSlide,u=(t=(e=>{var t=e.waitForAnimate,n=e.fade,r=e.infinite,o=e.index,s=e.slideCount,l=e.lazyLoad,a=e.currentSlide,c=e.centerMode,u=e.slidesToScroll,d=e.slidesToShow,p=e.useCSS,f=e.lazyLoadedList;if(t&&e.animating)return{};t=o;var h={},v={},y=r?o:m(o,0,s-1);if(n){if(!r&&(o<0||s<=o))return{};o<0?t=o+s:s<=o&&(t=o-s),v={animating:!(h={animating:!0,currentSlide:t,lazyLoadedList:f=l&&f.indexOf(t)<0?f.concat(t):f,targetSlide:t}),targetSlide:t}}else(n=t)<0?(n=t+s,r?s%u!=0&&(n=s-s%u):n=0):!z(e)&&a<t?t=n=a:c&&s<=t?(t=r?s:s-1,n=r?0:s-1):s<=t&&(n=t-s,r?s%u!=0&&(n=0):n=s-d),!r&&s<=t+d&&(n=s-d),o=I(i()(i()({},e),{},{slideIndex:t})),a=I(i()(i()({},e),{},{slideIndex:n})),r||(o===a&&(t=n),o=a),l&&(f=f.concat(x(i()(i()({},e),{},{currentSlide:t})))),p?v={animating:!(h={animating:!0,currentSlide:n,trackStyle:j(i()(i()({},e),{},{left:o})),lazyLoadedList:f,targetSlide:y}),currentSlide:n,trackStyle:_(i()(i()({},e),{},{left:a})),swipeLeft:null,targetSlide:y}:h={currentSlide:n,trackStyle:_(i()(i()({},e),{},{left:a})),lazyLoadedList:f,targetSlide:y};return{state:h,nextState:v}})(i()(i()(i()({index:e},n.props),n.state),{},{trackRef:n.track,useCSS:n.props.useCSS&&!t}))).state,d=t.nextState;u&&(o&&o(c,u.currentSlide),t=u.lazyLoadedList.filter((function(e){return n.state.lazyLoadedList.indexOf(e)<0})),s&&0<t.length&&s(t),!n.props.waitForAnimate&&n.animationEndCallback&&(clearTimeout(n.animationEndCallback),a&&a(c),delete n.animationEndCallback),n.setState(u,(function(){r&&n.asNavForIndex!==e&&(n.asNavForIndex=e,r.innerSlider.slideHandler(e)),d&&(n.animationEndCallback=setTimeout((function(){var e=d.animating,t=v()(d,J);n.setState(t,(function(){n.callbackTimers.push(setTimeout((function(){return n.setState({animating:e})}),10)),a&&a(u.currentSlide),delete n.animationEndCallback}))}),l))})))})),p()(n,"changeSlide",(function(e){var t,r,o,s,l,a,c,u,d,p=1<arguments.length&&void 0!==arguments[1]&&arguments[1],f=i()(i()({},n.props),n.state),h=(e=e,o=(f=f).slidesToScroll,l=f.currentSlide,a=f.targetSlide,d=f.lazyLoad,c=f.infinite,u=(s=f.slideCount)%o!=0?0:(s-l)%o,"previous"===e.message?(r=l-(h=0==u?o:f.slidesToShow-u),d&&!c&&(r=-1==(t=l-h)?s-1:t),c||(r=a-o)):"next"===e.message?(r=l+(h=0==u?o:u),d&&!c&&(r=(l+o)%s+u),c||(r=a+o)):"dots"===e.message?r=e.index*e.slidesToScroll:"children"===e.message?(r=e.index,c&&(t=X(i()(i()({},f),{},{targetSlide:r})),r>e.currentSlide&&"left"===t?r-=s:r<e.currentSlide&&"right"===t&&(r+=s))):"index"===e.message&&(r=Number(e.index)),r);(0===h||h)&&(!0===p?n.slideHandler(h,p):n.slideHandler(h),n.props.autoplay&&n.autoPlay("update"),n.props.focusOnSelect)&&(d=n.list.querySelectorAll(".slick-current"))[0]&&d[0].focus()})),p()(n,"clickHandler",(function(e){!1===n.clickable&&(e.stopPropagation(),e.preventDefault()),n.clickable=!0})),p()(n,"keyHandler",(function(e){e=e,r=n.props.accessibility,t=n.props.rtl;var t,r=e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!r?"":37===e.keyCode?t?"next":"previous":39===e.keyCode?t?"previous":"next":"";r&&n.changeSlide({message:r})})),p()(n,"selectHandler",(function(e){n.changeSlide(e)})),p()(n,"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),p()(n,"enableBodyScroll",(function(){window.ontouchmove=null})),p()(n,"swipeStart",(function(e){n.props.verticalSwiping&&n.disableBodyScroll(),e=e,r=n.props.swipe,t=n.props.draggable,"IMG"===e.target.tagName&&b(e);var t,r=!r||!t&&-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}};""!==r&&n.setState(r)})),p()(n,"swipeMove",(function(e){(e=((e,t)=>{var n=t.scrolling,r=t.animating,o=t.vertical,s=t.swipeToSlide,l=t.verticalSwiping,a=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,S=t.touchObject,m=t.swipeEvent,w=t.listHeight,k=t.listWidth;if(!n)return r?b(e):(o&&s&&l&&b(e),n={},r=I(t),S.curX=e.touches?e.touches[0].pageX:e.clientX,S.curY=e.touches?e.touches[0].pageY:e.clientY,S.swipeLength=Math.round(Math.sqrt(Math.pow(S.curX-S.startX,2))),s=Math.round(Math.sqrt(Math.pow(S.curY-S.startY,2))),!l&&!h&&10<s?{scrolling:!0}:(l&&(S.swipeLength=s),h=(a?-1:1)*(S.curX>S.startX?1:-1),l&&(h=S.curY>S.startY?1:-1),s=Math.ceil(v/y),v=P(t.touchObject,l),y=S.swipeLength,g||(0===c&&("right"===v||"down"===v)||s<=c+1&&("left"===v||"up"===v)||!z(t)&&("left"===v||"up"===v))&&(y=S.swipeLength*u,!1===d)&&p&&(p(v),n.edgeDragged=!0),!f&&m&&(m(v),n.swiped=!0),g=l?r+y*h:o?r+y*(w/k)*h:a?r-y*h:r+y*h,n=i()(i()({},n),{},{touchObject:S,swipeLeft:g,trackStyle:_(i()(i()({},t),{},{left:g}))}),Math.abs(S.curX-S.startX)<.8*Math.abs(S.curY-S.startY)||10<S.swipeLength&&(n.swiping=!0,b(e)),n))})(e,i()(i()(i()({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide})))&&(e.swiping&&(n.clickable=!1),n.setState(e))})),p()(n,"swipeEnd",(function(e){var t;(e=((e,t)=>{var n=t.dragging,r=t.touchObject,o=t.listWidth,s=t.touchThreshold,l=t.verticalSwiping,a=t.listHeight,c=t.swipeToSlide,u=t.scrolling,d=t.onSwipe,p=t.targetSlide,f=t.currentSlide,h=t.infinite;if(!n)return t.swipe&&b(e),{};n=l?a/s:o/s,a=P(r,l);var v={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(!u&&r.swipeLength)if(r.swipeLength>n){b(e),d&&d(a);var y,g,S=h?f:p;switch(a){case"left":case"up":g=S+W(t),y=c?R(t,g):g,v.currentDirection=0;break;case"right":case"down":g=S-W(t),y=c?R(t,g):g,v.currentDirection=1;break;default:y=S}v.triggerSlideHandler=y}else o=I(t),v.trackStyle=j(i()(i()({},t),{},{left:o}));return v})(e,i()(i()(i()({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide})))&&(t=e.triggerSlideHandler,delete e.triggerSlideHandler,n.setState(e),void 0!==t)&&(n.slideHandler(t),n.props.verticalSwiping)&&n.enableBodyScroll()})),p()(n,"touchEnd",(function(e){n.swipeEnd(e),n.clickable=!0})),p()(n,"slickPrev",(function(){n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"previous"})}),0))})),p()(n,"slickNext",(function(){n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"next"})}),0))})),p()(n,"slickGoTo",(function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"index",index:e,currentSlide:n.state.currentSlide},t)}),0))})),p()(n,"play",(function(){var e;if(n.props.rtl)e=n.state.currentSlide-n.props.slidesToScroll;else{if(!z(i()(i()({},n.props),n.state)))return!1;e=n.state.currentSlide+n.props.slidesToScroll}n.slideHandler(e)})),p()(n,"autoPlay",(function(e){n.autoplayTimer&&clearInterval(n.autoplayTimer);var t=n.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;n.autoplayTimer=setInterval(n.play,n.props.autoplaySpeed+50),n.setState({autoplaying:"playing"})})),p()(n,"pause",(function(e){n.autoplayTimer&&(clearInterval(n.autoplayTimer),n.autoplayTimer=null);var t=n.state.autoplaying;"paused"===e?n.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||n.setState({autoplaying:"focused"}):"playing"===t&&n.setState({autoplaying:"hovered"})})),p()(n,"onDotsOver",(function(){return n.props.autoplay&&n.pause("hovered")})),p()(n,"onDotsLeave",(function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")})),p()(n,"onTrackOver",(function(){return n.props.autoplay&&n.pause("hovered")})),p()(n,"onTrackLeave",(function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")})),p()(n,"onSlideFocus",(function(){return n.props.autoplay&&n.pause("focused")})),p()(n,"onSlideBlur",(function(){return n.props.autoplay&&"focused"===n.state.autoplaying&&n.autoPlay("blur")})),p()(n,"render",(function(){var e,t,r,s=g("slick-slider",n.props.className,{"slick-vertical":n.props.vertical,"slick-initialized":!0}),l=w(c=i()(i()({},n.props),n.state),["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),a=n.props.pauseOnHover,c=(l=i()(i()({},l),{},{onMouseEnter:a?n.onTrackOver:null,onMouseLeave:a?n.onTrackLeave:null,onMouseOver:a?n.onTrackOver:null,focusOnSelect:n.props.focusOnSelect&&n.clickable?n.selectHandler:null}),(a=(!0===n.props.dots&&n.state.slideCount>=n.props.slidesToShow&&(a=w(c,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),e=n.props.pauseOnDotsHover,a=i()(i()({},a),{},{clickHandler:n.changeSlide,onMouseEnter:e?n.onDotsLeave:null,onMouseOver:e?n.onDotsOver:null,onMouseLeave:e?n.onDotsLeave:null}),e=f.a.createElement(K,a)),w(c,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]))).clickHandler=n.changeSlide,n.props.arrows&&(t=f.a.createElement(Z,a),r=f.a.createElement($,a)),null);n.props.vertical&&(c={height:n.state.listHeight}),a=null,!1===n.props.vertical?!0===n.props.centerMode&&(a={padding:"0px "+n.props.centerPadding}):!0===n.props.centerMode&&(a={padding:n.props.centerPadding+" 0px"}),c=i()(i()({},c),a),a=n.props.touchMove,c={className:"slick-list",style:c,onClick:n.clickHandler,onMouseDown:a?n.swipeStart:null,onMouseMove:n.state.dragging&&a?n.swipeMove:null,onMouseUp:a?n.swipeEnd:null,onMouseLeave:n.state.dragging&&a?n.swipeEnd:null,onTouchStart:a?n.swipeStart:null,onTouchMove:n.state.dragging&&a?n.swipeMove:null,onTouchEnd:a?n.touchEnd:null,onTouchCancel:n.state.dragging&&a?n.swipeEnd:null,onKeyDown:n.props.accessibility?n.keyHandler:null},a={className:s,dir:"ltr",style:n.props.style};return n.props.unslick&&(c={className:"slick-list"},a={className:s,style:n.props.style}),f.a.createElement("div",a,n.props.unslick?"":t,f.a.createElement("div",o()({ref:n.listRefHandler},c),f.a.createElement(G,o()({ref:n.trackRefHandler},l),n.props.children)),n.props.unslick?"":r,n.props.unslick?"":e)})),n.list=null,n.track=null,n.state=i()(i()({},y),{},{currentSlide:n.props.initialSlide,targetSlide:n.props.initialSlide||0,slideCount:f.a.Children.count(n.props.children)}),n.callbackTimers=[],n.clickable=!0,n.debouncedResize=null;var n,r,l=n.ssrInit();return n.state=i()(i()({},n.state),l),n}return d()(t,e),l()(t,[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,r=Object.keys(this.props);n<r.length;n++){var o=r[n];if(!e.hasOwnProperty(o)){t=!0;break}if("object"!==h()(e[o])&&"function"!=typeof e[o]&&!isNaN(e[o])&&e[o]!==this.props[o]){t=!0;break}}return t||f.a.Children.count(this.props.children)!==f.a.Children.count(e.children)}}])})(f.a.Component),ee=(r=n(11),n.n(r));n=(e=>{function t(e){var n,r,o;return s()(this,t),r=this,o=t,e=[e],o=u()(o),n=a()(r,c()()?Reflect.construct(o,e||[],u()(r).constructor):o.apply(r,e)),p()(n,"innerSliderRefHandler",(function(e){return n.innerSlider=e})),p()(n,"slickPrev",(function(){return n.innerSlider.slickPrev()})),p()(n,"slickNext",(function(){return n.innerSlider.slickNext()})),p()(n,"slickGoTo",(function(e){return n.innerSlider.slickGoTo(e,1<arguments.length&&void 0!==arguments[1]&&arguments[1])})),p()(n,"slickPause",(function(){return n.innerSlider.pause("paused")})),p()(n,"slickPlay",(function(){return n.innerSlider.autoPlay("play")})),n.state={breakpoint:null},n._responsiveMediaHandlers=[],n}return d()(t,e),l()(t,[{key:"media",value:function(e,t){function n(e){e.matches&&t()}var r=window.matchMedia(e);r.addListener(n),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?ee()({minWidth:0,maxWidth:t}):ee()({minWidth:e[r-1]+1,maxWidth:t}),k()&&n.media(r,(function(){n.setState({breakpoint:t})}))})),t=ee()({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"===(r=this.props.responsive.filter((function(t){return t.breakpoint===e.state.breakpoint})))[0].settings?"unslick":i()(i()(i()({},S),this.props),r[0].settings):i()(i()({},S),this.props);t.centerMode&&(t.slidesToScroll,t.slidesToScroll=1),t.fade&&(t.slidesToShow,t.slidesToScroll,t.slidesToShow=1,t.slidesToScroll=1);var n=(n=f.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,l=[],a=null,c=0;c<n.length;c+=t.rows*t.slidesPerRow){for(var u=[],d=c;d<c+t.rows*t.slidesPerRow;d+=t.slidesPerRow){for(var p=[],h=d;h<d+t.slidesPerRow&&(t.variableWidth&&n[h].props.style&&(a=n[h].props.style.width),!(h>=n.length));h+=1)p.push(f.a.cloneElement(n[h],{key:100*c+10*d+h,tabIndex:-1,style:{width:"".concat(100/t.slidesPerRow,"%"),display:"inline-block"}}));u.push(f.a.createElement("div",{key:10*c+d},p))}t.variableWidth?l.push(f.a.createElement("div",{key:c,style:{width:a}},u)):l.push(f.a.createElement("div",{key:c},u))}return"unslick"===t?(r="regular slider "+(this.props.className||""),f.a.createElement("div",{className:r},n)):(l.length<=t.slidesToShow&&(t.unslick=!0),f.a.createElement(Q,o()({style:this.props.style,ref:this.innerSliderRefHandler},(s=t,F.reduce((function(e,t){return s.hasOwnProperty(t)&&(e[t]=s[t]),e}),{}))),l))}}])})(f.a.Component),t.default=n}],r={},t.m=n,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 o in e)t.d(r,o,function(t){return e[t]}.bind(null,o));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=19);function t(e){var o;return(r[e]||(o=r[e]={i:e,l:!1,exports:{}},n[e].call(o.exports,o,o.exports,t),o.l=!0,o)).exports}var n,r}));
|
|
//# sourceMappingURL=react-slick.min.js.map
|