static.kuangkie.hydrogen.bundle.df9c73b00a5726dce6e5.js Maven / Gradle / Ivy
The newest version!
"use strict";(self.webpackChunkhydrogen_react=self.webpackChunkhydrogen_react||[]).push([[2170],{14497:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});var r=c(n(35466)),u=l(n(75687)),o=l(n(62814));function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=u?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}var a=function(e,t){return r.createElement(o.default,(n=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,u=e[n];return"class"===n?(t.className=u,delete t.class):(delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=u),t}),{})}function w(e,t,n){return n?l.default.createElement(e.tag,s({key:t},b(e.attrs),n),(e.children||[]).map((function(n,r){return w(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):l.default.createElement(e.tag,s({key:t},b(e.attrs)),(e.children||[]).map((function(n,r){return w(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function g(e){return(0,r.generate)(e)[0]}function j(e){return e?Array.isArray(e)?e:[e]:[]}var v={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},P="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",h=function(e){var t=(0,l.useContext)(f.default),n=t.csp,r=t.prefixCls,i=P;r&&(i=i.replace(/anticon/g,r)),(0,l.useEffect)((function(){var t=e.current,r=(0,o.getShadowRoot)(t);(0,u.updateCSS)(i,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})}),[])}},48367:function(e,t,n){n.d(t,{Z:function(){return te}});var r=n(63123),u=n(36849),o=n(4913),i=n(64296),l=n(76464),f=n(81928),c=n(76044),a=n(8270),d=n(35466),p=n(31311),s=n(17253),O={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=n(64522),b=n(92703),w=n.n(b);function g(e,t,n){return Math.max(t,Math.min(e,n))}var j=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},v=function(e){for(var t=[],n=P(e),r=h(e),u=n;u0?1:0):0},S=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},k=function(e){return e&&e.offsetWidth||0},T=function(e){return e&&e.offsetHeight||0},M=function(e){var t,n,r,u,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(u=Math.round(180*r/Math.PI))<0&&(u=360-Math.abs(u)),u<=45&&u>=0||u<=360&&u>=315?"left":u>=135&&u<=225?"right":!0===o?u>=35&&u<=135?"up":"down":"vertical"},D=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},C=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},F=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,u=[];nn[n.length-1])t=n[n.length-1];else for(var u in n){if(t-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+k(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),!n)return 0;var o=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-o)||1}return e.slidesToScroll},E=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},W=function(e){var t,n;E(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=A(e)*e.slideWidth;var o={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",f=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";o=(0,u.Z)((0,u.Z)({},o),{},{WebkitTransform:i,transform:l,msTransform:f})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t),n&&(o.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o},Z=function(e){E(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=W(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},L=function(e){if(e.unslick)return 0;E(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,u=e.trackRef,o=e.infinite,i=e.centerMode,l=e.slideCount,f=e.slidesToShow,c=e.slidesToScroll,a=e.slideWidth,d=e.listWidth,p=e.variableWidth,s=e.slideHeight,O=e.fade,y=e.vertical;if(O||1===e.slideCount)return 0;var b=0;if(o?(b=-R(e),l%c!=0&&r+c>l&&(b=-(r>l?f-(r-l):l%c)),i&&(b+=parseInt(f/2))):(l%c!=0&&r+c>l&&(b=f-l%c),i&&(b=parseInt(f/2))),t=y?r*s*-1+b*s:r*a*-1+b*a,!0===p){var w,g=u&&u.node;if(w=r+R(e),t=(n=g&&g.childNodes[w])?-1*n.offsetLeft:0,!0===i){w=o?r+R(e):r,n=g&&g.children[w],t=0;for(var j=0;j0&&(o+=1),r&&t%2==0&&(o+=1),o}return r?0:t-1},I=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,u=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(u)>0&&(o+=1),r||t%2!=0||(o+=1),o}return r?t-1:0},z=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},q=function(e){var t,n,r,u,o;return r=(o=e.rtl?e.slideCount-1-e.index:e.index)<0||o>=e.slideCount,e.centerMode?(u=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount==0,o>e.currentSlide-u-1&&o<=e.currentSlide+u&&(t=!0)):t=e.currentSlide<=o&&o=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},B=function(e,t){return e.key+"-"+t},N=function(e){(0,f.Z)(n,e);var t=(0,c.Z)(n);function n(){var e;(0,o.Z)(this,n);for(var r=arguments.length,u=new Array(r),i=0;i=0?c:d.createElement("div",null);var O=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical&&e.slideHeight?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}((0,u.Z)((0,u.Z)({},e),{},{index:a})),y=p.props.className||"",b=q((0,u.Z)((0,u.Z)({},e),{},{index:a}));if(n.push(d.cloneElement(p,{key:"original"+B(p,a),"data-index":a,className:w()(b,y),tabIndex:"-1","aria-hidden":!b["slick-active"],style:(0,u.Z)((0,u.Z)({outline:"none"},p.props.style||{}),O),onClick:function(t){p.props&&p.props.onClick&&p.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(s)}})),e.infinite&&!1===e.fade){var g=i-a;g<=R(e)&&i!==e.slidesToShow&&((t=-g)>=l&&(p=c),b=q((0,u.Z)((0,u.Z)({},e),{},{index:t})),r.push(d.cloneElement(p,{key:"precloned"+B(p,t),"data-index":t,tabIndex:"-1",className:w()(b,y),"aria-hidden":!b["slick-active"],style:(0,u.Z)((0,u.Z)({},p.props.style||{}),O),onClick:function(t){p.props&&p.props.onClick&&p.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(s)}}))),i!==e.slidesToShow&&((t=i+a)=P&&a<=j:a===P}),m={message:"dots",index:y,slidesToScroll:l,currentSlide:a},S=this.clickHandler.bind(this,m);O=O.concat(d.createElement("li",{key:y,className:h},d.cloneElement(this.props.customPaging(y),{onClick:S})))}return d.cloneElement(this.props.appendDots(O),(0,u.Z)({className:this.props.dotsClass},s))}}]),n}(d.PureComponent),G=function(e){(0,f.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,o.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(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"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:w()(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?d.cloneElement(this.props.prevArrow,(0,u.Z)((0,u.Z)({},n),o)):d.createElement("button",(0,r.Z)({key:"0",type:"button"},n)," ","Previous")}}]),n}(d.PureComponent),Y=function(e){(0,f.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,o.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(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"});D(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:w()(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?d.cloneElement(this.props.nextArrow,(0,u.Z)((0,u.Z)({},n),o)):d.createElement("button",(0,r.Z)({key:"1",type:"button"},n)," ","Next")}}]),n}(d.PureComponent),X=n(14158),V=["animating"],Q=function(e){(0,f.Z)(n,e);var t=(0,c.Z)(n);function n(e){var i;(0,o.Z)(this,n),i=t.call(this,e),(0,a.Z)((0,l.Z)(i),"listRefHandler",(function(e){return i.list=e})),(0,a.Z)((0,l.Z)(i),"trackRefHandler",(function(e){return i.track=e})),(0,a.Z)((0,l.Z)(i),"adaptHeight",(function(){if(i.props.adaptiveHeight&&i.list){var e=i.list.querySelector('[data-index="'.concat(i.state.currentSlide,'"]'));i.list.style.height=T(e)+"px"}})),(0,a.Z)((0,l.Z)(i),"componentDidMount",(function(){if(i.props.onInit&&i.props.onInit(),i.props.lazyLoad){var e=v((0,u.Z)((0,u.Z)({},i.props),i.state));e.length>0&&(i.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),i.props.onLazyLoad&&i.props.onLazyLoad(e))}var t=(0,u.Z)({listRef:i.list,trackRef:i.track},i.props);i.updateState(t,!0,(function(){i.adaptHeight(),i.props.autoplay&&i.autoPlay("playing")})),"progressive"===i.props.lazyLoad&&(i.lazyLoadTimer=setInterval(i.progressiveLazyLoad,1e3)),i.ro=new X.Z((function(){i.state.animating?(i.onWindowResized(!1),i.callbackTimers.push(setTimeout((function(){return i.onWindowResized()}),i.props.speed))):i.onWindowResized()})),i.ro.observe(i.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=i.props.pauseOnFocus?i.onSlideFocus:null,e.onblur=i.props.pauseOnFocus?i.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",i.onWindowResized):window.attachEvent("onresize",i.onWindowResized)})),(0,a.Z)((0,l.Z)(i),"componentWillUnmount",(function(){i.animationEndCallback&&clearTimeout(i.animationEndCallback),i.lazyLoadTimer&&clearInterval(i.lazyLoadTimer),i.callbackTimers.length&&(i.callbackTimers.forEach((function(e){return clearTimeout(e)})),i.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",i.onWindowResized):window.detachEvent("onresize",i.onWindowResized),i.autoplayTimer&&clearInterval(i.autoplayTimer),i.ro.disconnect()})),(0,a.Z)((0,l.Z)(i),"componentDidUpdate",(function(e){if(i.checkImagesLoad(),i.props.onReInit&&i.props.onReInit(),i.props.lazyLoad){var t=v((0,u.Z)((0,u.Z)({},i.props),i.state));t.length>0&&(i.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}})),i.props.onLazyLoad&&i.props.onLazyLoad(t))}i.adaptHeight();var n=(0,u.Z)((0,u.Z)({listRef:i.list,trackRef:i.track},i.props),i.state),r=i.didPropsChange(e);r&&i.updateState(n,r,(function(){i.state.currentSlide>=d.Children.count(i.props.children)&&i.changeSlide({message:"index",index:d.Children.count(i.props.children)-i.props.slidesToShow,currentSlide:i.state.currentSlide}),e.autoplay===i.props.autoplay&&e.autoplaySpeed===i.props.autoplaySpeed||(!e.autoplay&&i.props.autoplay?i.autoPlay("playing"):i.props.autoplay?i.autoPlay("update"):i.pause("paused"))}))})),(0,a.Z)((0,l.Z)(i),"onWindowResized",(function(e){i.debouncedResize&&i.debouncedResize.cancel(),i.debouncedResize=(0,y.D)(50,(function(){return i.resizeWindow(e)})),i.debouncedResize()})),(0,a.Z)((0,l.Z)(i),"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(i.track&&i.track.node)){var t=(0,u.Z)((0,u.Z)({listRef:i.list,trackRef:i.track},i.props),i.state);i.updateState(t,e,(function(){i.props.autoplay?i.autoPlay("update"):i.pause("paused")})),i.setState({animating:!1}),clearTimeout(i.animationEndCallback),delete i.animationEndCallback}})),(0,a.Z)((0,l.Z)(i),"updateState",(function(e,t,n){var r=function(e){var t,n=d.Children.count(e.children),r=e.listRef,o=Math.ceil(k(r)),i=e.trackRef&&e.trackRef.node,l=Math.ceil(k(i));if(e.vertical)t=o;else{var f=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(f*=o/100),t=Math.ceil((o-f)/e.slidesToShow)}var c=r&&T(r.querySelector('[data-index="0"]')),a=c*e.slidesToShow,p=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(p=n-1-e.initialSlide);var s=e.lazyLoadedList||[],O=v((0,u.Z)((0,u.Z)({},e),{},{currentSlide:p,lazyLoadedList:s})),y={slideCount:n,slideWidth:t,listWidth:o,trackWidth:l,currentSlide:p,slideHeight:c,listHeight:a,lazyLoadedList:s=s.concat(O)};return null===e.autoplaying&&e.autoplay&&(y.autoplaying="playing"),y}(e);e=(0,u.Z)((0,u.Z)((0,u.Z)({},e),r),{},{slideIndex:r.currentSlide});var o=L(e);e=(0,u.Z)((0,u.Z)({},e),{},{left:o});var l=W(e);(t||d.Children.count(i.props.children)!==d.Children.count(e.children))&&(r.trackStyle=l),i.setState(r,n)})),(0,a.Z)((0,l.Z)(i),"ssrInit",(function(){if(i.props.variableWidth){var e=0,t=0,n=[],r=R((0,u.Z)((0,u.Z)((0,u.Z)({},i.props),i.state),{},{slideCount:i.props.children.length})),o=x((0,u.Z)((0,u.Z)((0,u.Z)({},i.props),i.state),{},{slideCount:i.props.children.length}));i.props.children.forEach((function(t){n.push(t.props.style.width),e+=t.props.style.width}));for(var l=0;l=t&&i.onWindowResized()};if(e.onclick){var u=e.onclick;e.onclick=function(t){u(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(i.props.lazyLoad?e.onload=function(){i.adaptHeight(),i.callbackTimers.push(setTimeout(i.onWindowResized,i.props.speed))}:(e.onload=r,e.onerror=function(){r(),i.props.onLazyLoadError&&i.props.onLazyLoadError()}))}))})),(0,a.Z)((0,l.Z)(i),"progressiveLazyLoad",(function(){for(var e=[],t=(0,u.Z)((0,u.Z)({},i.props),i.state),n=i.state.currentSlide;n=-R(t);r--)if(i.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}e.length>0?(i.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),i.props.onLazyLoad&&i.props.onLazyLoad(e)):i.lazyLoadTimer&&(clearInterval(i.lazyLoadTimer),delete i.lazyLoadTimer)})),(0,a.Z)((0,l.Z)(i),"slideHandler",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=i.props,r=n.asNavFor,o=n.beforeChange,l=n.onLazyLoad,f=n.speed,c=n.afterChange,a=i.state.currentSlide,d=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,o=e.infinite,i=e.index,l=e.slideCount,f=e.lazyLoad,c=e.currentSlide,a=e.centerMode,d=e.slidesToScroll,p=e.slidesToShow,s=e.useCSS,O=e.lazyLoadedList;if(t&&n)return{};var y,b,w,j=i,P={},h={},m=o?i:g(i,0,l-1);if(r){if(!o&&(i<0||i>=l))return{};i<0?j=i+l:i>=l&&(j=i-l),f&&O.indexOf(j)<0&&(O=O.concat(j)),P={animating:!0,currentSlide:j,lazyLoadedList:O,targetSlide:j},h={animating:!1,targetSlide:j}}else y=j,j<0?(y=j+l,o?l%d!=0&&(y=l-l%d):y=0):!D(e)&&j>c?j=y=c:a&&j>=l?(j=o?l:l-1,y=o?0:l-1):j>=l&&(y=j-l,o?l%d!=0&&(y=0):y=l-p),!o&&j+p>=l&&(y=l-p),b=L((0,u.Z)((0,u.Z)({},e),{},{slideIndex:j})),w=L((0,u.Z)((0,u.Z)({},e),{},{slideIndex:y})),o||(b===w&&(j=y),b=w),f&&(O=O.concat(v((0,u.Z)((0,u.Z)({},e),{},{currentSlide:j})))),s?(P={animating:!0,currentSlide:y,trackStyle:Z((0,u.Z)((0,u.Z)({},e),{},{left:b})),lazyLoadedList:O,targetSlide:m},h={animating:!1,currentSlide:y,trackStyle:W((0,u.Z)((0,u.Z)({},e),{},{left:w})),swipeLeft:null,targetSlide:m}):P={currentSlide:y,trackStyle:W((0,u.Z)((0,u.Z)({},e),{},{left:w})),lazyLoadedList:O,targetSlide:m};return{state:P,nextState:h}}((0,u.Z)((0,u.Z)((0,u.Z)({index:e},i.props),i.state),{},{trackRef:i.track,useCSS:i.props.useCSS&&!t})),p=d.state,O=d.nextState;if(p){o&&o(a,p.currentSlide);var y=p.lazyLoadedList.filter((function(e){return i.state.lazyLoadedList.indexOf(e)<0}));l&&y.length>0&&l(y),!i.props.waitForAnimate&&i.animationEndCallback&&(clearTimeout(i.animationEndCallback),c&&c(a),delete i.animationEndCallback),i.setState(p,(function(){r&&i.asNavForIndex!==e&&(i.asNavForIndex=e,r.innerSlider.slideHandler(e)),O&&(i.animationEndCallback=setTimeout((function(){var e=O.animating,t=(0,s.Z)(O,V);i.setState(t,(function(){i.callbackTimers.push(setTimeout((function(){return i.setState({animating:e})}),10)),c&&c(p.currentSlide),delete i.animationEndCallback}))}),f))}))}})),(0,a.Z)((0,l.Z)(i),"changeSlide",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(e,t){var n,r,o,i,l=e.slidesToScroll,f=e.slidesToShow,c=e.slideCount,a=e.currentSlide,d=e.targetSlide,p=e.lazyLoad,s=e.infinite;if(n=c%l!=0?0:(c-a)%l,"previous"===t.message)i=a-(o=0===n?l:f-n),p&&!s&&(i=-1==(r=a-o)?c-1:r),s||(i=d-l);else if("next"===t.message)i=a+(o=0===n?l:n),p&&!s&&(i=(a+l)%c+n),s||(i=d+l);else if("dots"===t.message)i=t.index*t.slidesToScroll;else if("children"===t.message){if(i=t.index,s){var O=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+H(e)?"left":"right":e.targetSlidet.currentSlide&&"left"===O?i-=c:i10)return{scrolling:!0};l&&(g.swipeLength=T);var C=(f?-1:1)*(g.curX>g.startX?1:-1);l&&(C=g.curY>g.startY?1:-1);var F=Math.ceil(y/b),_=M(t.touchObject,l),E=g.swipeLength;return w||(0===c&&("right"===_||"down"===_)||c+1>=F&&("left"===_||"up"===_)||!D(t)&&("left"===_||"up"===_))&&(E=g.swipeLength*a,!1===d&&p&&(p(_),S.edgeDragged=!0)),!s&&v&&(v(_),S.swiped=!0),m=o?k+E*(P/h)*C:f?k-E*C:k+E*C,l&&(m=k+E*C),S=(0,u.Z)((0,u.Z)({},S),{},{touchObject:g,swipeLeft:m,trackStyle:W((0,u.Z)((0,u.Z)({},t),{},{left:m}))}),Math.abs(g.curX-g.startX)<.8*Math.abs(g.curY-g.startY)||g.swipeLength>10&&(S.swiping=!0,j(e)),S}}(e,(0,u.Z)((0,u.Z)((0,u.Z)({},i.props),i.state),{},{trackRef:i.track,listRef:i.list,slideIndex:i.state.currentSlide}));t&&(t.swiping&&(i.clickable=!1),i.setState(t))})),(0,a.Z)((0,l.Z)(i),"swipeEnd",(function(e){var t=function(e,t){var n=t.dragging,r=t.swipe,o=t.touchObject,i=t.listWidth,l=t.touchThreshold,f=t.verticalSwiping,c=t.listHeight,a=t.swipeToSlide,d=t.scrolling,p=t.onSwipe,s=t.targetSlide,O=t.currentSlide,y=t.infinite;if(!n)return r&&j(e),{};var b=f?c/l:i/l,w=M(o,f),g={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d)return g;if(!o.swipeLength)return g;if(o.swipeLength>b){var v,P;j(e),p&&p(w);var h=y?O:s;switch(w){case"left":case"up":P=h+_(t),v=a?F(t,P):P,g.currentDirection=0;break;case"right":case"down":P=h-_(t),v=a?F(t,P):P,g.currentDirection=1;break;default:v=h}g.triggerSlideHandler=v}else{var m=L(t);g.trackStyle=Z((0,u.Z)((0,u.Z)({},t),{},{left:m}))}return g}(e,(0,u.Z)((0,u.Z)((0,u.Z)({},i.props),i.state),{},{trackRef:i.track,listRef:i.list,slideIndex:i.state.currentSlide}));if(t){var n=t.triggerSlideHandler;delete t.triggerSlideHandler,i.setState(t),void 0!==n&&(i.slideHandler(n),i.props.verticalSwiping&&i.enableBodyScroll())}})),(0,a.Z)((0,l.Z)(i),"touchEnd",(function(e){i.swipeEnd(e),i.clickable=!0})),(0,a.Z)((0,l.Z)(i),"slickPrev",(function(){i.callbackTimers.push(setTimeout((function(){return i.changeSlide({message:"previous"})}),0))})),(0,a.Z)((0,l.Z)(i),"slickNext",(function(){i.callbackTimers.push(setTimeout((function(){return i.changeSlide({message:"next"})}),0))})),(0,a.Z)((0,l.Z)(i),"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";i.callbackTimers.push(setTimeout((function(){return i.changeSlide({message:"index",index:e,currentSlide:i.state.currentSlide},t)}),0))})),(0,a.Z)((0,l.Z)(i),"play",(function(){var e;if(i.props.rtl)e=i.state.currentSlide-i.props.slidesToScroll;else{if(!D((0,u.Z)((0,u.Z)({},i.props),i.state)))return!1;e=i.state.currentSlide+i.props.slidesToScroll}i.slideHandler(e)})),(0,a.Z)((0,l.Z)(i),"autoPlay",(function(e){i.autoplayTimer&&clearInterval(i.autoplayTimer);var t=i.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;i.autoplayTimer=setInterval(i.play,i.props.autoplaySpeed+50),i.setState({autoplaying:"playing"})})),(0,a.Z)((0,l.Z)(i),"pause",(function(e){i.autoplayTimer&&(clearInterval(i.autoplayTimer),i.autoplayTimer=null);var t=i.state.autoplaying;"paused"===e?i.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||i.setState({autoplaying:"focused"}):"playing"===t&&i.setState({autoplaying:"hovered"})})),(0,a.Z)((0,l.Z)(i),"onDotsOver",(function(){return i.props.autoplay&&i.pause("hovered")})),(0,a.Z)((0,l.Z)(i),"onDotsLeave",(function(){return i.props.autoplay&&"hovered"===i.state.autoplaying&&i.autoPlay("leave")})),(0,a.Z)((0,l.Z)(i),"onTrackOver",(function(){return i.props.autoplay&&i.pause("hovered")})),(0,a.Z)((0,l.Z)(i),"onTrackLeave",(function(){return i.props.autoplay&&"hovered"===i.state.autoplaying&&i.autoPlay("leave")})),(0,a.Z)((0,l.Z)(i),"onSlideFocus",(function(){return i.props.autoplay&&i.pause("focused")})),(0,a.Z)((0,l.Z)(i),"onSlideBlur",(function(){return i.props.autoplay&&"focused"===i.state.autoplaying&&i.autoPlay("blur")})),(0,a.Z)((0,l.Z)(i),"render",(function(){var e,t,n,o=w()("slick-slider",i.props.className,{"slick-vertical":i.props.vertical,"slick-initialized":!0}),l=(0,u.Z)((0,u.Z)({},i.props),i.state),f=C(l,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),c=i.props.pauseOnHover;if(f=(0,u.Z)((0,u.Z)({},f),{},{onMouseEnter:c?i.onTrackOver:null,onMouseLeave:c?i.onTrackLeave:null,onMouseOver:c?i.onTrackOver:null,focusOnSelect:i.props.focusOnSelect&&i.clickable?i.selectHandler:null}),!0===i.props.dots&&i.state.slideCount>=i.props.slidesToShow){var a=C(l,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),p=i.props.pauseOnDotsHover;a=(0,u.Z)((0,u.Z)({},a),{},{clickHandler:i.changeSlide,onMouseEnter:p?i.onDotsLeave:null,onMouseOver:p?i.onDotsOver:null,onMouseLeave:p?i.onDotsLeave:null}),e=d.createElement(U,a)}var s=C(l,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);s.clickHandler=i.changeSlide,i.props.arrows&&(t=d.createElement(G,s),n=d.createElement(Y,s));var O=null;i.props.vertical&&(O={height:i.state.listHeight});var y=null;!1===i.props.vertical?!0===i.props.centerMode&&(y={padding:"0px "+i.props.centerPadding}):!0===i.props.centerMode&&(y={padding:i.props.centerPadding+" 0px"});var b=(0,u.Z)((0,u.Z)({},O),y),g=i.props.touchMove,j={className:"slick-list",style:b,onClick:i.clickHandler,onMouseDown:g?i.swipeStart:null,onMouseMove:i.state.dragging&&g?i.swipeMove:null,onMouseUp:g?i.swipeEnd:null,onMouseLeave:i.state.dragging&&g?i.swipeEnd:null,onTouchStart:g?i.swipeStart:null,onTouchMove:i.state.dragging&&g?i.swipeMove:null,onTouchEnd:g?i.touchEnd:null,onTouchCancel:i.state.dragging&&g?i.swipeEnd:null,onKeyDown:i.props.accessibility?i.keyHandler:null},v={className:o,dir:"ltr",style:i.props.style};return i.props.unslick&&(j={className:"slick-list"},v={className:o,style:i.props.style}),d.createElement("div",v,i.props.unslick?"":t,d.createElement("div",(0,r.Z)({ref:i.listRefHandler},j),d.createElement(N,(0,r.Z)({ref:i.trackRefHandler},f),i.props.children)),i.props.unslick?"":n,i.props.unslick?"":e)})),i.list=null,i.track=null,i.state=(0,u.Z)((0,u.Z)({},O),{},{currentSlide:i.props.initialSlide,slideCount:d.Children.count(i.props.children)}),i.callbackTimers=[],i.clickable=!0,i.debouncedResize=null;var f=i.ssrInit();return i.state=(0,u.Z)((0,u.Z)({},i.state),f),i}return(0,i.Z)(n,[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,r=Object.keys(this.props);n1&&void 0!==arguments[1]&&arguments[1];return r.innerSlider.slickGoTo(e,t)})),(0,a.Z)((0,l.Z)(r),"slickPause",(function(){return r.innerSlider.pause("paused")})),(0,a.Z)((0,l.Z)(r),"slickPlay",(function(){return r.innerSlider.autoPlay("play")})),r.state={breakpoint:null},r._responsiveMediaHandlers=[],r}return(0,i.Z)(n,[{key:"media",value:function(e,t){var n=window.matchMedia(e),r=function(e){e.matches&&t()};n.addListener(r),r(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:r})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,r){var u;u=0===r?J()({minWidth:0,maxWidth:n}):J()({minWidth:t[r-1]+1,maxWidth:n}),z()&&e.media(u,(function(){e.setState({breakpoint:n})}))}));var n=J()({minWidth:t.slice(-1)[0]});z()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===n.state.breakpoint})))[0].settings?"unslick":(0,u.Z)((0,u.Z)((0,u.Z)({},$),this.props),t[0].settings):(0,u.Z)((0,u.Z)({},$),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var o=d.Children.toArray(this.props.children);o=o.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var i=[],l=null,f=0;f=o.length));s+=1)p.push(d.cloneElement(o[s],{key:100*f+10*a+s,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));c.push(d.createElement("div",{key:10*f+a},p))}e.variableWidth?i.push(d.createElement("div",{key:f,style:{width:l}},c)):i.push(d.createElement("div",{key:f},c))}if("unslick"===e){var O="regular slider "+(this.props.className||"");return d.createElement("div",{className:O},o)}return i.length<=e.slidesToShow&&(e.unslick=!0),d.createElement(Q,(0,r.Z)({style:this.props.style,ref:this.innerSliderRefHandler},e),i)}}]),n}(d.Component),te=ee}}]);