PageSourceSearch

https://www.lcwaikiki.ru/ReactLCW/build/5479/5479.8f47d11b.bundle.js

js lcwaikiki.ru collected 2026-10-05 19:23:54 UTC 60,706 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebsite_react=self.webpackChunkwebsite_react||[]).push([[5479],{12768:function(e,t,i){var n=i(76314),r=i.n(n)()(function(e){return e[1]});r.push([e.id,".buttonBack___1mlaL,.buttonFirst___2rhFr,.buttonLast___2yuh0,.buttonNext___2mOCa,.buttonNext___3Lm3s,.dot___3c3SI{cursor:pointer}.image___xtQGH{display:block;width:100%;height:100%}.spinner___27VUp{position:absolute;top:calc(50% - 15px);left:calc(50% - 15px);width:30px;height:30px;animation-name:spin___S3UuE;animation-duration:1s;animation-timing-function:linear;animation-iteration-count:infinite;border:4px solid #a9a9a9;border-top-color:#000;border-radius:30px}@keyframes spin___S3UuE{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.container___2O72F{position:relative;overflow:hidden;height:100%;width:100%}.overlay___IV4qY{position:absolute;top:0;left:0;bottom:0;right:0;opacity:0;cursor:zoom-in;transition:opacity .3s,transform .3s}.hover___MYy31,.loading___1pvNI,.zoom___3kqYk{opacity:1}.imageLoadingSpinnerContainer___3UIPD{position:absolute;top:0;right:0;bottom:0;left:0;background-color:#f4f4f4}.slide___3-Nqo{position:relative;display:block;box-sizing:border-box;height:0;margin:0;list-style-type:none}.slide___3-Nqo:focus{outline:none!important}.slideHorizontal___1NzNV{float:left}[dir=rtl] .slideHorizontal___1NzNV{direction:rtl;transform:scaleX(-1)}.slideInner___2mfX9{position:absolute;top:0;left:0;width:100%;height:100%}.focusRing___1airF{position:absolute;top:5px;right:5px;bottom:5px;left:5px;pointer-events:none;outline-width:5px;outline-style:solid;outline-color:Highlight}@media (-webkit-min-device-pixel-ratio:0){.focusRing___1airF{outline-style:auto;outline-color:-webkit-focus-ring-color}}.horizontalSlider___281Ls{position:relative;overflow:hidden}.horizontalSlider___281Ls:not(.touchDisabled___2qs4y){touch-action:pan-y pinch-zoom}[dir=rtl] .horizontalSlider___281Ls{direction:ltr;transform:scaleX(-1)}.horizontalSliderTray___1L-0W{overflow:hidden;width:100%}.verticalSlider___34ZFD{position:relative;overflow:hidden}.verticalSliderTray___267D8{overflow:hidden}.verticalTray___12Key{float:left}.verticalSlideTrayWrap___2nO7o{overflow:hidden}.sliderTray___-vHFQ{display:block;list-style:none;padding:0;margin:0}.sliderAnimation___300FY{transition:transform .5s;transition-timing-function:cubic-bezier(.645,.045,.355,1);will-change:transform}.masterSpinnerContainer___1Z6hB{position:absolute;top:0;right:0;bottom:0;left:0;background-color:#f4f4f4}",""]),t.A=r},73529:function(e,t,i){i.d(t,{Ap:function(){return Be},Jj:function(){return ye},Yc:function(){return X},gi:function(){return J},q7:function(){return Le}});var n=i(96540);function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach(function(t){c(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,i){return t&&a(e.prototype,t),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}function d(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&&p(e,t)}
1function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function b(e,t){if(null==e)return{};var i,n,r=function(e,t){if(null==e)return{};var i,n,r={},o=Object.keys(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||(r[i]=e[i]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var i,n=h(e);if(t){var r=h(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}(this,i)}}function f(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?g(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function v(e,t){return e(t={exports:{}},t.exports),t.exports}function y(){}function k(){}function _(e){return e.map(function(e){return!1===e?null:e}).join(" ").replace(/\s+/g," ").trim()}function O(e,t){return 100/e*t/t}function w(e,t){return 100*e/t}function T(e){return"".concat(e,"%")}function E(e,t,i){if(e===t)return!0;var n=B[F(e)],r=B[F(t)];return!(!n||n!==r)&&n(e,t,i)}function C(e){return function(t,i,n){if(!n)return e(t,i,[]);for(var r,o=n.length;r=n[--o];)if(r[0]===t&&r[1]===i)return!0;return e(t,i,n)}}function M(e){var t=[];for(var i in e)"constructor"!==i&&t.push(i);return t}function P(e,t){return!1!==t.clone&&t.isMergeableObject(e)?D(function(e){return Array.isArray(e)?[]:{}}(e),e,t):e}function N(e,t,i){return e.concat(t).map(function(e){return P(e,i)})}function D(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||N,i.isMergeableObject=i.isMergeableObject||U;var n=Array.isArray(t);return n===Array.isArray(e)?n?i.arrayMerge(e,t,i):function(e,t,i){var n={};return i.isMergeableObject(e)&&Object.keys(e).forEach(function(t){n[t]=P(e[t],i)}),Object.keys(t).forEach(function(r){i.isMergeableObject(t[r])&&e[r]?n[r]=D(e[r],t[r],i):n[r]=P(t[r],i)}),n}(e,t,i):P(t,i)}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return{}},i=function(i){function r(e,i){var n;return s(this,r),(n=a.call(this,e,i)).state=t(o({},i.state)),n.updateStateProps=n.updateStateProps.bind(S(n)),n}d(r,i);var a=m(r);return l(r,[{key:"componentDidMount",value:function(){this.context.subscribe(this.updateStateProps)}},{key:"shouldComponentUpdate",value:function(e,t){return!W(t,this.state)||!W(e,this.props)}},{key:"componentWillUnmount",value:function(){this.context.unsubscribe(this.updateStateProps)}},{key:"updateStateProps",value:function(){this.setState(t(o({},this.context.state)))}},{key:"render",value:function(){var t=this,i=Z(this.state,this.props);return n.createElement(e,u({ref:function(e){t.instance=e}},i,{carouselStore:{getStoreState:this.context.getStoreState,masterSpinnerError:this.context.masterSpinnerError,masterSpinnerSuccess:this.context.masterSpinnerSuccess,setStoreState:this.context.setStoreState,subscribeMasterSpinner:this.context.subscribeMasterSpinner,unsubscribeAllMasterSpinner:this.context.unsubscribeAllMasterSpinner,unsubscribeMasterSpinner:this.context.unsubscribeMasterSpinner}}),this.props.children)}}]),r}(n.Component);
1return c(i,"contextType",X),c(i,"propTypes",{children:I.children}),c(i,"defaultProps",{children:null}),i}k.resetWarningCache=y;var j=v(function(e){e.exports=function(){function e(e,t,i,n,r,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:k,resetWarningCache:y};return i.PropTypes=i,i}()}),A="loading",R="success",L="error",I={children:j.oneOfType([j.arrayOf(j.node),j.node]),direction:j.oneOf(["forward","backward"]),height:function(e,t){var i=e[t];return"vertical"!==e.orientation||null!==i&&"number"==typeof i?null:new Error("Missing required property '".concat(t,"' when orientation is vertical.  You must supply a number representing the height in pixels"))},orientation:j.oneOf(["horizontal","vertical"]),isBgImage:function(e,t){return!0===e[t]&&"img"===e.tag?new Error("HTML img elements should not have a backgroundImage.  Please use ".concat(t," for other block-level HTML tags, like div, a, section, etc...")):null}},q=function(e){var t=e.min,i=e.max,n=e.x;return Math.min(i,Math.max(t,n))},z=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],H=function(e){function t(e){var n;return s(this,t),(n=i.call(this,e)).handleOnClick=n.handleOnClick.bind(S(n)),n}d(t,e);var i=m(t);return l(t,[{key:"handleOnClick",value:function(e){var t=this.props,i=t.carouselStore,n=t.currentSlide,r=t.onClick,o=t.step,s=t.infinite,a=t.visibleSlides,l=t.totalSlides-a,c=Math.max(n-o,0);s&&(c=0===n?l:c),i.setStoreState({currentSlide:c,isPlaying:!1},null!==r&&r.call(this,e))}},{key:"render",value:function(){var e=this.props,i=(e.carouselStore,e.className),r=(e.currentSlide,e.disabled,e.onClick,e.step,e.totalSlides,e.visibleSlides,e.infinite),o=b(e,z),s=_(["buttonBack___1mlaL","carousel__back-button",i]),a=t.setDisabled(this.props.disabled,this.props.currentSlide,r);return n.createElement("button",u({type:"button","aria-label":"previous",className:s,onClick:this.handleOnClick,disabled:a},o),this.props.children)}}],[{key:"setDisabled",value:function(e,t,i){return null!==e?e:0===t&&!i}}]),t}(n.Component);c(H,"propTypes",{carouselStore:j.object.isRequired,children:I.children.isRequired,className:j.string,currentSlide:j.number.isRequired,disabled:j.bool,onClick:j.func,step:j.number.isRequired,totalSlides:j.number.isRequired,visibleSlides:j.number.isRequired,infinite:j.bool}),c(H,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1});var F=v(function(e,t){var i={}.toString,n="undefined"!=typeof window?window.Node:Function;e.exports=t=function(e){var t=typeof e;if("object"!=t)return t;if("object"==(t=r[i.call(e)]))return e instanceof Map?"map":e instanceof Set?"set":"object";if(t)return t;if(e instanceof n)switch(e.nodeType){case 1:return"element";case 3:return"text-node";case 9:return"document";case 11:return"document-fragment";default:return"dom-node"}};var r=t.types={"[object Function]":"function","[object Date]":"date","[object RegExp]":"regexp","[object Arguments]":"arguments","[object Array]":"array","[object Set]":"set","[object String]":"string","[object Null]":"null","[object Undefined]":"undefined","[object Number]":"number","[object Boolean]":"boolean","[object Object]":"object","[object Map]":"map","[object Text]":"text-node","[object Uint8Array]":"bit-array","[object Uint16Array]":"bit-array","[object Uint32Array]":"bit-array","[object Uint8ClampedArray]":"bit-array","[object Error]":"error","[object FormData]":"form-data","[object File]":"file","[object Blob]":"blob"}}),B=(F.types,{number:function(e,t){return e!=e&&t!=t},function:function(e,t,i){return e.toString()===t.toString()&&B.object(e,t,i)&&E(e.prototype,t.prototype)},date:function(e,t){return+e==+t},regexp:function(e,t){return e.toString()===t.toString()},element:function(e,t){return e.outerHTML===t.outerHTML},textnode:function(e,t){return e.textContent===t.textContent}});B.arguments=B["bit-array"]=B.array=C(function(e,t,i){var n=e.length;if(n!==t.length)return!1;for(i.push([e,t]);n--;)if(!E(e[n],t[n],i))return!1;return!0}),B.object=C(function(e,t,i){if("function"==typeof e.equal)return i.push([e,t]),e.equal(t,i);var n=M(e),r=M(t),o=n.length;if(o!==r.length)return!1;
1for(n.sort(),r.sort();o--;)if(n[o]!==r[o])return!1;for(i.push([e,t]),o=n.length;o--;){var s=n[o];if(!E(e[s],t[s],i))return!1}return!0});var W=E,U=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Y}(e)}(e)},Y="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;D.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,i){return D(e,i,t)},{})};var V,Z=D,X=n.createContext(),K=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach(function(i){!t.hasOwnProperty(i)||null===t[i]||"object"!=typeof t[i]&&"function"!=typeof t[i]||Object.isFrozen(t[i])||e(t[i])}),t},Q={masterSpinnerFinished:!1},G=function(){function e(t){s(this,e),this.state=K(Z(Q,t)),this.subscriptions=[],this.masterSpinnerSubscriptions={},this.setStoreState=this.setStoreState.bind(this),this.getStoreState=this.getStoreState.bind(this),this.subscribe=this.subscribe.bind(this),this.unsubscribe=this.unsubscribe.bind(this),this.updateSubscribers=this.updateSubscribers.bind(this),this.subscribeMasterSpinner=this.subscribeMasterSpinner.bind(this),this.unsubscribeMasterSpinner=this.unsubscribeMasterSpinner.bind(this),this.unsubscribeAllMasterSpinner=this.unsubscribeAllMasterSpinner.bind(this),this.masterSpinnerSuccess=this.masterSpinnerSuccess.bind(this),this.masterSpinnerError=this.masterSpinnerError.bind(this)}return l(e,[{key:"setStoreState",value:function(e,t){this.state=K(Z(this.state,e)),this.updateSubscribers(t)}},{key:"getStoreState",value:function(){return Z({},this.state)}},{key:"subscribe",value:function(e){this.subscriptions.push(e)}},{key:"unsubscribe",value:function(e){var t=this.subscriptions.indexOf(e);-1!==t&&this.subscriptions.splice(t,1)}},{key:"updateSubscribers",value:function(e){this.subscriptions.forEach(function(e){return e()}),"function"==typeof e&&e(this.getStoreState())}},{key:"subscribeMasterSpinner",value:function(e){-1===Object.keys(this.masterSpinnerSubscriptions).indexOf(e)&&(this.masterSpinnerSubscriptions[e]={success:!1,error:!1,complete:!1})}},{key:"unsubscribeMasterSpinner",value:function(e){return-1!==Object.keys(this.masterSpinnerSubscriptions).indexOf(e)&&(this.setMasterSpinnerFinished(),delete this.masterSpinnerSubscriptions[e])}},{key:"unsubscribeAllMasterSpinner",value:function(){this.masterSpinnerSubscriptions={},this.setMasterSpinnerFinished()}},{key:"masterSpinnerSuccess",value:function(e){this.masterSpinnerSubscriptions[e].success=!0,this.masterSpinnerSubscriptions[e].complete=!0,this.setMasterSpinnerFinished()}},{key:"masterSpinnerError",value:function(e){this.masterSpinnerSubscriptions[e].error=!0,this.masterSpinnerSubscriptions[e].complete=!0,this.setMasterSpinnerFinished()}},{key:"setMasterSpinnerFinished",value:function(){this.setStoreState({masterSpinnerFinished:this.isMasterSpinnerFinished()})}},{key:"isMasterSpinnerFinished",value:function(){var e=this;return 0===Object.keys(this.masterSpinnerSubscriptions).filter(function(t){return!0!==e.masterSpinnerSubscriptions[t].complete}).length}}]),e}(),$=["children","className","currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","naturalSlideHeight","naturalSlideWidth","orientation","playDirection","step","dragStep","tag","totalSlides","touchEnabled","dragEnabled","visibleSlides","infinite","isIntrinsicHeight"],J=(c(V=function(e){function t(e){var n;if(s(this,t),n=i.call(this,e),e.isIntrinsicHeight&&"horizontal"!==e.orientation)throw Error('isIntrinsicHeight can only be used in "horizontal" orientation. See Readme for more information.');var r={currentSlide:e.currentSlide,disableAnimation:e.disableAnimation,disableKeyboard:e.disableKeyboard,hasMasterSpinner:e.hasMasterSpinner,imageErrorCount:0,imageSuccessCount:0,interval:e.interval,isPageScrollLocked:e.isPageScrollLocked,isPlaying:e.isPlaying,lockOnWindowScroll:e.lockOnWindowScroll,masterSpinnerThreshold:0,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,playDirection:e.playDirection,privateUnDisableAnimation:!1,slideSize:O(e.totalSlides,e.visibleSlides),slideTraySize:w(e.totalSlides,e.visibleSlides),step:e.step,dragStep:e.dragStep,totalSlides:e.totalSlides,touchEnabled:e.touchEnabled,dragEnabled:e.dragEnabled,visibleSlides:e.visibleSlides,infinite:e.infinite,isIntrinsicHeight:e.isIntrinsicHeight};return n.carouselStore=new G(r),n}d(t,e);var i=m(t);
1return l(t,[{key:"componentDidUpdate",value:function(e){var t=this,i={};["currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPlaying","naturalSlideHeight","naturalSlideWidth","lockOnWindowScroll","orientation","playDirection","step","dragStep","totalSlides","touchEnabled","dragEnabled","visibleSlides"].forEach(function(n){e[n]!==t.props[n]&&(i[n]=t.props[n])}),this.props.currentSlide!==e.currentSlide&&!this.props.disableAnimation&&(i.disableAnimation=!0,i.privateUnDisableAnimation=!0),this.props.totalSlides===e.totalSlides&&this.props.visibleSlides===e.visibleSlides||(i.slideSize=O(this.props.totalSlides,this.props.visibleSlides),i.slideTraySize=w(this.props.totalSlides,this.props.visibleSlides)),this.carouselStore.state.currentSlide>=this.props.totalSlides&&(i.currentSlide=Math.max(this.props.totalSlides-1,0)),Object.keys(i).length>0&&this.carouselStore.setStoreState(i)}},{key:"componentWillUnmount",value:function(){this.carouselStore.unsubscribeAllMasterSpinner()}},{key:"getStore",value:function(){return this.carouselStore}},{key:"render",value:function(){var e=this.props,t=(e.children,e.className,e.currentSlide,e.disableAnimation,e.disableKeyboard,e.hasMasterSpinner,e.interval,e.isPageScrollLocked,e.isPlaying,e.lockOnWindowScroll,e.naturalSlideHeight,e.naturalSlideWidth,e.orientation,e.playDirection,e.step,e.dragStep,e.tag),i=(e.totalSlides,e.touchEnabled,e.dragEnabled,e.visibleSlides,e.infinite,e.isIntrinsicHeight,b(e,$)),r=_(["carousel",this.props.className]);return n.createElement(t,u({className:r},i),n.createElement(X.Provider,{value:this.carouselStore},this.props.children))}}]),t}(n.Component),"propTypes",{children:I.children.isRequired,className:j.string,currentSlide:j.number,disableAnimation:j.bool,disableKeyboard:j.bool,hasMasterSpinner:j.bool,interval:j.number,isPageScrollLocked:j.bool,isPlaying:j.bool,lockOnWindowScroll:j.bool,naturalSlideHeight:j.number.isRequired,naturalSlideWidth:j.number.isRequired,orientation:I.orientation,playDirection:I.direction,step:j.number,dragStep:j.number,tag:j.string,totalSlides:j.number.isRequired,touchEnabled:j.bool,dragEnabled:j.bool,visibleSlides:j.number,infinite:j.bool,isIntrinsicHeight:j.bool}),c(V,"defaultProps",{className:null,currentSlide:0,disableAnimation:!1,disableKeyboard:!1,hasMasterSpinner:!1,interval:5e3,isPageScrollLocked:!1,isPlaying:!1,lockOnWindowScroll:!1,orientation:"horizontal",playDirection:"forward",step:1,dragStep:1,tag:"div",touchEnabled:!0,dragEnabled:!0,visibleSlides:1,infinite:!1,isIntrinsicHeight:!1}),V);X.Consumer,x(H,function(e){return{currentSlide:e.currentSlide,step:e.step,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,infinite:e.infinite}});var ee,te,ie,ne,re,oe,se=["carouselStore","className","currentSlide","disabled","onClick","totalSlides"],ae=(x((c(ee=function(e){function t(){var e;return s(this,t),(e=i.call(this)).handleOnClick=e.handleOnClick.bind(S(e)),e}d(t,e);var i=m(t);return l(t,[{key:"handleOnClick",value:function(e){var t=this.props,i=t.carouselStore,n=t.onClick;i.setStoreState({currentSlide:0,isPlaying:!1},null!==n&&n.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.className),i=e.currentSlide,r=e.disabled,o=(e.onClick,e.totalSlides,b(e,se)),s=_(["buttonFirst___2rhFr","carousel__first-button",t]),a=null!==r?r:0===i;return n.createElement("button",u({type:"button","aria-label":"first",className:s,onClick:this.handleOnClick,disabled:a},o),this.props.children)}}]),t}(n.Component),"propTypes",{carouselStore:j.object.isRequired,children:I.children.isRequired,className:j.string,currentSlide:j.number.isRequired,disabled:j.bool,onClick:j.func,totalSlides:j.number.isRequired}),c(ee,"defaultProps",{className:null,disabled:null,onClick:null}),ee),function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides}}),"buttonLast___2yuh0"),le=["carouselStore","className","currentSlide","disabled","onClick","totalSlides","visibleSlides"],ce=(x((c(te=function(e){function t(){var e;return s(this,t),(e=i.call(this)).handleOnClick=e.handleOnClick.bind(S(e)),e}d(t,e);var i=m(t);return l(t,[{key:"handleOnClick",value:function(e){var t=this.props,i=t.carouselStore,
1n=t.onClick,r=t.totalSlides,o=t.visibleSlides;i.setStoreState({currentSlide:r-o,isPlaying:!1},null!==n&&n.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.className),i=e.currentSlide,r=e.disabled,o=(e.onClick,e.totalSlides),s=e.visibleSlides,a=b(e,le),l=_([ae,"carousel__last-button",t]),c=null!==r?r:i>=o-s;return n.createElement("button",u({type:"button","aria-label":"last",className:l,onClick:this.handleOnClick,disabled:c},a),this.props.children)}}]),t}(n.Component),"propTypes",{carouselStore:j.object.isRequired,children:I.children.isRequired,className:j.string,currentSlide:j.number.isRequired,disabled:j.bool,onClick:j.func,totalSlides:j.number.isRequired,visibleSlides:j.number.isRequired}),c(te,"defaultProps",{className:null,disabled:null,onClick:null}),te),function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}}),"buttonNext___2mOCa"),ue=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],de=(x((c(ie=function(e){function t(e){var n;return s(this,t),(n=i.call(this,e)).handleOnClick=n.handleOnClick.bind(S(n)),n}d(t,e);var i=m(t);return l(t,[{key:"handleOnClick",value:function(e){var t=this.props,i=t.currentSlide,n=t.onClick,r=t.step,o=t.carouselStore,s=t.infinite,a=t.totalSlides-t.visibleSlides,l=r+i,c=Math.min(l,a);s&&(c=a===i?0:c),o.setStoreState({currentSlide:c,isPlaying:!1},null!==n&&n.call(this,e))}},{key:"render",value:function(){var e=this.props,i=(e.carouselStore,e.className),r=e.currentSlide,o=e.disabled,s=(e.onClick,e.step,e.totalSlides),a=e.visibleSlides,l=e.infinite,c=b(e,ue),d=_([ce,"carousel__next-button",i]),h=t.setDisabled(o,r,a,s,l);return n.createElement("button",u({type:"button","aria-label":"next",className:d,onClick:this.handleOnClick,disabled:h},c),this.props.children)}}],[{key:"setDisabled",value:function(e,t,i,n,r){return null!==e?e:t>=n-i&&!r}}]),t}(n.PureComponent),"propTypes",{carouselStore:j.object.isRequired,children:I.children.isRequired,className:j.string,currentSlide:j.number.isRequired,disabled:j.bool,onClick:j.func,step:j.number.isRequired,totalSlides:j.number.isRequired,visibleSlides:j.number.isRequired,infinite:j.bool}),c(ie,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1}),ie),function(e){return{currentSlide:e.currentSlide,step:e.step,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,infinite:e.infinite}}),"buttonNext___3Lm3s"),he=["carouselStore","children","childrenPaused","childrenPlaying","className","isPlaying","onClick"],pe=(x((c(ne=function(e){function t(e){var n;return s(this,t),(n=i.call(this,e)).handleOnClick=n.handleOnClick.bind(S(n)),n}d(t,e);var i=m(t);return l(t,[{key:"handleOnClick",value:function(e){var t=this.props.onClick;this.props.carouselStore.setStoreState({isPlaying:!this.props.isPlaying},null!==t&&t.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children,e.childrenPaused),i=e.childrenPlaying,r=e.className,o=e.isPlaying,s=(e.onClick,b(e,he)),a=_([de,"carousel__play-button",r]);return n.createElement("button",u({type:"button","aria-label":"play",className:a,onClick:this.handleOnClick},s),o&&i,!o&&t,this.props.children)}}]),t}(n.PureComponent),"propTypes",{carouselStore:j.object.isRequired,children:j.node,childrenPaused:j.node,childrenPlaying:j.node,className:j.string,isPlaying:j.bool.isRequired,onClick:j.func}),c(ne,"defaultProps",{children:null,childrenPaused:null,childrenPlaying:null,className:null,onClick:null}),ne),function(e){return{isPlaying:e.isPlaying}}),{dot:"dot___3c3SI"}),be=["carouselStore","children","className","currentSlide","disabled","onClick","selected","slide","totalSlides","visibleSlides"],Se=x((c(re=function(e){function t(e){var n;return s(this,t),(n=i.call(this,e)).handleOnClick=n.handleOnClick.bind(S(n)),n}d(t,e);var i=m(t);return l(t,[{key:"handleOnClick",value:function(e){var t=this.props,i=t.carouselStore,n=t.onClick,r=t.slide,o=t.totalSlides,s=t.visibleSlides,a=r>=o-s?o-s:r;i.setStoreState({currentSlide:a,isPlaying:!1},null!==n&&n.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children,e.className),i=e.currentSlide,r=e.disabled,o=(e.onClick,e.selected),s=e.slide,a=(e.totalSlides,e.visibleSlides),l=b(e,be),c=s>=i&&s<i+a,d="boolean"==typeof o?o:c,h="boolean"==typeof r?r:!0===c,p=_([pe.dot,d&&pe.dotSelected,"carousel__dot","carousel__dot--".concat(s),d&&"carousel__dot--selected",t]);return n.createElement("button",u({"aria-label":"slide dot",type:"button",onClick:this.handleOnClick,className:p,disabled:h},l),this.props.children)}}]),t}
1(n.Component),"propTypes",{carouselStore:j.object.isRequired,children:I.children,className:j.string,currentSlide:j.number.isRequired,disabled:j.bool,onClick:j.func,selected:j.bool,slide:j.number.isRequired,totalSlides:j.number.isRequired,visibleSlides:j.number.isRequired}),c(re,"defaultProps",{children:null,className:null,disabled:null,onClick:null,selected:null}),re),function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}}),me={},fe=["renderDots"],ge=["carouselStore","children","className","currentSlide","dotNumbers","totalSlides","visibleSlides","disableActiveDots","showAsSelectedForCurrentSlideOnly","renderDots"],ve=(oe=function(e){function t(){return s(this,t),i.apply(this,arguments)}d(t,e);var i=m(t);return l(t,[{key:"renderDots",value:function(){var e=this.props,t=e.currentSlide,i=e.totalSlides,r=e.visibleSlides,o=e.disableActiveDots,s=e.showAsSelectedForCurrentSlideOnly,a=e.renderDots;if(a){var l=this.props;return l.renderDots,a(b(l,fe))}for(var c=[],u=0;u<i;u+=1){var d=s?u===t:u>=t&&u<t+r,h=u>=i-r?i-r:u;c.push(n.createElement(Se,{key:u,slide:h,selected:d,disabled:!!o&&d},n.createElement("span",{className:_["carousel__dot-group-dot"]},this.props.dotNumbers&&u+1)))}return c}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children),i=e.className,r=(e.currentSlide,e.dotNumbers,e.totalSlides,e.visibleSlides,e.disableActiveDots,e.showAsSelectedForCurrentSlideOnly,e.renderDots,b(e,ge)),o=_([me.DotGroup,"carousel__dot-group",i]);return n.createElement("div",u({className:o},r),this.renderDots(),t)}}]),t}(n.Component),c(oe,"propTypes",{children:I.children,className:j.string,currentSlide:j.number.isRequired,carouselStore:j.object.isRequired,totalSlides:j.number.isRequired,visibleSlides:j.number.isRequired,dotNumbers:j.bool,disableActiveDots:j.bool,showAsSelectedForCurrentSlideOnly:j.bool,renderDots:j.func}),c(oe,"defaultProps",{children:null,className:null,dotNumbers:!1,disableActiveDots:!0,showAsSelectedForCurrentSlideOnly:!1,renderDots:null}),oe),ye=x(ve,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}}),ke={image:"image___xtQGH"},_e=["src","alt"],Oe=["carouselStore","children","className","hasMasterSpinner","isBgImage","onError","onLoad","renderError","renderLoading","style","tag"],we=function(e){function t(e){var n;return s(this,t),(n=i.call(this,e)).state={imageStatus:A},n.handleImageLoad=n.handleImageLoad.bind(S(n)),n.handleImageError=n.handleImageError.bind(S(n)),n.image=null,n}d(t,e);var i=m(t);return l(t,[{key:"componentDidMount",value:function(){t.subscribeMasterSpinner(this.props),this.initImage()}},{key:"componentDidUpdate",value:function(e){e.src!==this.props.src&&(t.unsubscribeMasterSpinner(e),t.subscribeMasterSpinner(this.props),this.initImage())}},{key:"componentWillUnmount",value:function(){t.unsubscribeMasterSpinner(this.props),this.image.removeEventListener("load",this.handleImageLoad),this.image.removeEventListener("error",this.handleImageError),this.image=null}},{key:"initImage",value:function(){if(this.setState({imageStatus:A}),this.image=document.createElement("img"),this.image.addEventListener("load",this.handleImageLoad,!1),this.image.addEventListener("error",this.handleImageError,!1),this.image.src=this.props.src,this.image.readyState||this.image.complete){var e=this.image.src;this.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",this.image.src=e}}},{key:"handleImageLoad",value:function(e){this.setState({imageStatus:R}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerSuccess(this.props.src),this.props.onLoad&&this.props.onLoad(e)}},{key:"handleImageError",value:function(e){this.setState({imageStatus:L}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerError(this.props.src),this.props.onError&&this.props.onError(e)}},{key:"tempTag",value:function(){return"img"===this.props.tag?"div":this.props.tag}},{key:"customRender",value:function(e){return"function"==typeof this.props[e]?this.props[e]():this.props.children}},{key:"renderLoading",value:function(e){var t=this.tempTag(),i=_([ke.image,ke.imageLoading,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--loading",this.props.className]);return n.createElement(t,u({className:i},e),this.customRender("renderLoading"))}},{key:"renderError",value:function(e){var t=this.tempTag(),i=_([ke.image,ke.imageError,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--error",this.props.className]);return n.createElement(t,u({className:i},e),this.customRender("renderError"))}},{key:"renderSuccess",value:function(e){var t=this.props,i=t.style,r=t.tag,o=_([ke.image,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--success",this.props.className]),s=u({},i),a=e;if("img"!==r){var l=e.src;e.alt,a=b(e,_e),s=u({},i,{backgroundImage:'url("'.concat(l,'")'),backgroundSize:"cover"})}return n.createElement(r,u({className:o,style:s},a),this.props.children)}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children,e.className,e.hasMasterSpinner,e.isBgImage,e.onError,e.onLoad,e.renderError,e.renderLoading,e.style,e.tag,b(e,Oe));switch(this.state.imageStatus){case A:return this.renderLoading(t);case R:return this.renderSuccess(t);case L:return this.renderError(t);default:throw new Error("unknown value for this.state.imageStatus")}}}],[{key:"subscribeMasterSpinner",value:function(e){e.hasMasterSpinner&&e.carouselStore.subscribeMasterSpinner(e.src)}},{key:"unsubscribeMasterSpinner",value:function(e){e.hasMasterSpinner&&e.carouselStore.unsubscribeMasterSpinner(e.src)}}]),t}(n.Component);c(we,"propTypes",{alt:j.string,carouselStore:j.object.isRequired,children:I.children,className:j.string,hasMasterSpinner:j.bool.isRequired,isBgImage:I.isBgImage,onError:j.func,onLoad:j.func,renderError:j.func,renderLoading:j.func,src:j.string.isRequired,style:j.object,tag:j.string}),c(we,"defaultProps",{alt:"",children:null,className:null,isBgImage:!1,onError:null,onLoad:null,renderError:null,renderLoading:null,style:null,tag:"img"});var Te,Ee,Ce,Me,Pe=x(we,function(e){return{hasMasterSpinner:e.hasMasterSpinner,orientation:e.orientation}}),Ne=["className"],De=(Te=function(e){function t(){return s(this,t),i.apply(this,arguments)}d(t,e);var i=m(t);return l(t,[{key:"render",value:function(){var e=this.props,t=e.className,i=b(e,Ne),r=_(["spinner___27VUp","carousel__spinner",t]);return n.createElement("div",u({className:r},i))}}]),t}(n.PureComponent),c(Te,"propTypes",{className:j.string}),c(Te,"defaultProps",{className:null}),Te),xe={container:"container___2O72F",overlay:"overlay___IV4qY",hover:"hover___MYy31",zoom:"zoom___3kqYk",loading:"loading___1pvNI",imageLoadingSpinnerContainer:"imageLoadingSpinnerContainer___3UIPD"},je=["alt","bgImageProps","bgImageTag","carouselStore","className","imageClassName","overlayClassName","isPinchZoomEnabled","spinner","src","srcZoomed","tag"],Ae=(x((c(Ee=function(e){function t(e){var n;return s(this,t),(n=i.call(this,e)).state={isImageLoading:!0,isImageLoadingError:!0,isHovering:!1,isZooming:!1,x:null,y:null,
1scale:1},n.tpCache={},n.handleImageComplete=n.handleImageComplete.bind(S(n)),n.handleImageLoadError=n.handleImageLoadError.bind(S(n)),n.handleOnMouseMove=n.handleOnMouseMove.bind(S(n)),n.handleOnMouseOut=n.handleOnMouseOut.bind(S(n)),n.handleOnMouseOver=n.handleOnMouseOver.bind(S(n)),n.handleOnTouchEnd=n.handleOnTouchEnd.bind(S(n)),n.handleOnTouchMove=n.handleOnTouchMove.bind(S(n)),n.handleOnTouchStart=n.handleOnTouchStart.bind(S(n)),n}d(t,e);var i=m(t);return l(t,[{key:"componentDidUpdate",value:function(e,t){!1===t.isZooming&&!0===this.state.isZooming&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),!0===t.isZooming&&!1===this.state.isZooming&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1})}},{key:"handleImageComplete",value:function(e){this.setState({isImageLoading:!1}),this.props&&this.props.onLoad&&this.props.onLoad(e)}},{key:"handleImageLoadError",value:function(e){this.setState({isImageLoadingError:!0,isImageLoading:!1}),this.props&&this.props.onError&&this.props.onError(e)}},{key:"handleOnMouseOver",value:function(){this.state.isZooming||this.setState({isHovering:!0,scale:2})}},{key:"handleOnMouseOut",value:function(){this.state.isZooming||this.setState({isHovering:!1,scale:1})}},{key:"handleOnMouseMove",value:function(e){if(!this.state.isZooming){var t=T(e.nativeEvent.offsetX/e.target.offsetWidth*100),i=T(e.nativeEvent.offsetY/e.target.offsetHeight*100);this.setState({x:t,y:i})}}},{key:"handleOnTouchStart",value:function(e){var t=this;this.props.isPinchZoomEnabled&&(f(e.targetTouches).forEach(function(e){t.tpCache[e.identifier]={clientX:e.clientX,clientY:e.clientY}}),this.setState(function(e){return{isZooming:e.isZooming||Object.keys(t.tpCache).length>1}}))}},{key:"handleOnTouchMove",value:function(e){var i=this;if(this.state.isZooming){e.persist();var n=f(e.targetTouches).filter(function(e){return i.tpCache[e.identifier]}).slice(0,2);if(2===n.length){e.stopPropagation();var r=e.target.getBoundingClientRect(),s=n[0].identifier,a=n[1].identifier,l={x1:this.tpCache[s].clientX,y1:this.tpCache[s].clientY,x2:this.tpCache[a].clientX,y2:this.tpCache[a].clientY};l.distance=t.distanceBetweenTwoTouches(o({},l));var c=t.midpointBetweenTwoTouches(o({},l));l.cx=c.x,l.cy=c.y;var u={x1:n[0].clientX,y1:n[0].clientY,x2:n[1].clientX,y2:n[1].clientY};u.distance=t.distanceBetweenTwoTouches(o({},u));var d=t.midpointBetweenTwoTouches(o({},u));u.cx=d.x,u.cy=d.y;var h=T(q({min:0,max:100,x:(u.cx-r.left)/r.width*100})),p=T(q({min:0,max:100,x:(u.cy-r.top)/r.height*100})),b=function(e){return q({min:1,max:3,x:e.scale+(u.distance-l.distance)/100})};this.setState(function(e){return{isZooming:1!==b(e),scale:b(e),x:h,y:p}})}}}},{key:"handleOnTouchEnd",value:function(e){var t=this;this.props.isPinchZoomEnabled&&(f(e.changedTouches).forEach(function(e){delete t.tpCache[e.identifier]}),0===Object.keys(this.tpCache).length&&this.setState({isZooming:!1}))}},{key:"renderLoading",value:function(){if(this.state.isImageLoading){var e=this.props.spinner;return n.createElement("div",{className:_([xe.imageLoadingSpinnerContainer,"carousel__image-loading-spinner-container"])},e&&e(),!e&&n.createElement(De,null))}return null}},{key:"render",value:function(){var e=this.props,t=e.alt,i=e.bgImageProps,r=e.bgImageTag,o=(e.carouselStore,e.className),s=e.imageClassName,a=e.overlayClassName,l=(e.isPinchZoomEnabled,e.spinner,e.src),c=e.srcZoomed,d=e.tag,h=b(e,je),p=_([xe.container,o]),S=_([xe.image,"carousel__zoom-image",s]),m=_([xe.overlay,"carousel__zoom-image-overlay",this.state.isHovering&&xe.hover,this.state.isZooming&&xe.zoom,this.state.isHovering&&"carousel__zoom-image-overlay--hovering",this.state.isZooming&&"carousel__zoom-image-overlay--zooming",a]),f={};return(this.state.isHovering||this.state.isZooming)&&(f.transformOrigin="".concat(this.state.x," ").concat(this.state.y),f.transform="scale(".concat(this.state.scale,")")),n.createElement(d,u({className:p},h),n.createElement(Pe,u({alt:t,className:S,tag:r,src:l,onLoad:this.handleImageComplete,onError:this.handleImageLoadError},i)),n.createElement(Pe,{className:m,tag:"div",src:c||l,style:f,isBgImage:!0,onFocus:this.handleOnMouseOver,onMouseOver:this.handleOnMouseOver,onBlur:this.handleOnMouseOut,onMouseOut:this.handleOnMouseOut,onMouseMove:this.handleOnMouseMove,onTouchStart:this.handleOnTouchStart,onTouchEnd:this.handleOnTouchEnd,onTouchMove:this.handleOnTouchMove}),this.renderLoading())}}],[{key:"midpointBetweenTwoTouches",value:function(e){var t=e.x1,i=e.y1;return{x:(t+e.x2)/2,y:(i+e.y2)/2}}},{key:"distanceBetweenTwoTouches",value:function(e){var t=e.x1,i=e.y1,n=e.x2,r=e.y2;return Math.sqrt(Math.pow(n-t,2)+Math.pow(r-i,2))}}]),t}
1(n.Component),"propTypes",{alt:j.string,bgImageProps:j.object,bgImageTag:j.string,carouselStore:j.object.isRequired,className:j.string,imageClassName:j.string,overlayClassName:j.string,spinner:j.func,onLoad:j.func,onError:j.func,src:j.string.isRequired,srcZoomed:j.string,tag:j.string,isPinchZoomEnabled:j.bool}),c(Ee,"defaultProps",{alt:void 0,bgImageProps:{},bgImageTag:"div",className:null,imageClassName:null,overlayClassName:null,isPinchZoomEnabled:!0,spinner:null,onLoad:null,onError:null,srcZoomed:null,tag:"div"}),Ee),function(){return{}}),{slide:"slide___3-Nqo",slideHorizontal:"slideHorizontal___1NzNV",slideInner:"slideInner___2mfX9",focusRing:"focusRing___1airF"}),Re=["ariaLabel","carouselStore","children","className","classNameHidden","classNameVisible","currentSlide","index","innerClassName","innerTag","naturalSlideHeight","naturalSlideWidth","onBlur","onFocus","orientation","slideSize","style","tag","totalSlides","visibleSlides","isIntrinsicHeight"],Le=x((c(Ce=function(e){function t(e){var n;return s(this,t),(n=i.call(this,e)).handleOnFocus=n.handleOnFocus.bind(S(n)),n.handleOnBlur=n.handleOnBlur.bind(S(n)),n.state={focused:!1},n}d(t,e);var i=m(t);return l(t,[{key:"isVisible",value:function(){var e=this.props,t=e.currentSlide,i=e.index,n=e.visibleSlides;return i>=t&&i<t+n}},{key:"handleOnFocus",value:function(e){var t=this,i=this.props.onFocus;this.setState({focused:!0},function(){null!==i&&i.call(t,e)})}},{key:"handleOnBlur",value:function(e){var t=this,i=this.props.onBlur;this.setState({focused:!1},function(){null!==i&&i.call(t,e)})}},{key:"renderFocusRing",value:function(){return this.state.focused?n.createElement("div",{className:[Ae.focusRing,"carousel__slide-focus-ring"].join(" ")}):null}},{key:"render",value:function(){var e=this,t=this.props,i=t.ariaLabel,r=(t.carouselStore,t.children,t.className),o=t.classNameHidden,s=t.classNameVisible,a=(t.currentSlide,t.index,t.innerClassName),l=t.innerTag,c=t.naturalSlideHeight,d=t.naturalSlideWidth,h=(t.onBlur,t.onFocus,t.orientation),p=t.slideSize,S=t.style,m=t.tag,f=t.totalSlides,g=(t.visibleSlides,t.isIntrinsicHeight),v=b(t,Re),y={};"horizontal"===h?(y.width=T(p),y.paddingBottom=T(100*c/(d*f))):(y.width=T(100),y.paddingBottom=T(100*c/d));var k={};g&&("horizontal"===h?y.height="unset":y.width="unset",y.paddingBottom="unset",k.position="unset");var O=u({},y,S),w=this.isVisible(),E=_([Ae.slide,"horizontal"===h&&Ae.slideHorizontal,"carousel__slide",this.state.focused&&"carousel__slide--focused",w&&s,w&&"carousel__slide--visible",!w&&o,!w&&"carousel__slide--hidden",r]),C=_([Ae.slideInner,"carousel__inner-slide",a]);return n.createElement(m,u({ref:function(t){e.tagRef=t},"aria-selected":this.isVisible(),"aria-label":i,role:this.props.role,onFocus:this.handleOnFocus,onBlur:this.handleOnBlur,className:E,style:O},v),n.createElement(l,{ref:function(t){e.innerTagRef=t},className:C,style:k},this.props.children,this.renderFocusRing()))}}]),t}(n.PureComponent),"propTypes",{ariaLabel:j.string,carouselStore:j.object,children:I.children,className:j.string,classNameHidden:j.string,classNameVisible:j.string,currentSlide:j.number.isRequired,index:j.number.isRequired,innerClassName:j.string,innerTag:j.string,naturalSlideHeight:j.number.isRequired,naturalSlideWidth:j.number.isRequired,onBlur:j.func,onFocus:j.func,orientation:I.orientation.isRequired,slideSize:j.number.isRequired,role:j.string,style:j.object,tag:j.string,totalSlides:j.number.isRequired,visibleSlides:j.number.isRequired,isIntrinsicHeight:j.bool}),c(Ce,"defaultProps",{ariaLabel:"slide",carouselStore:null,children:null,className:null,classNameHidden:null,classNameVisible:null,innerClassName:null,innerTag:"div",onBlur:null,onFocus:null,role:"option",style:{},tag:"div",isIntrinsicHeight:!1}),Ce),function(e){return{currentSlide:e.currentSlide,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,slideSize:e.slideSize,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,isIntrinsicHeight:e.isIntrinsicHeight}}),Ie=function(){function e(){s(this,e)}return l(e,[{key:"parents",value:function(e,t){return null===e.parentNode?t:this.parents(e.parentNode,t.concat([e]))}},{key:"scrollParent",value:function(t){for(var i=this.parents(t.parentNode,[]),n=0;n<i.length;n+=1)if(e.scroll(i[n]))return i[n];return document.scrollingElement||document.documentElement}},{key:"getScrollParent",value:function(t){return e.isNodeValid(t)?this.scrollParent(t):null}}],[{key:"style",value:function(e,t){return getComputedStyle(e,null).getPropertyValue(t)}},{key:"overflow",value:function(t){return e.style(t,"overflow")+e.style(t,"overflow-y")+e.style(t,"overflow-x")}},{key:"scroll",value:function(t){return/(auto|scroll)/.test(e.overflow(t))}},{key:"isNodeValid",value:function(e){return e instanceof HTMLElement||e instanceof SVGElement}}]),e}(),qe={horizontalSlider:"horizontalSlider___281Ls",touchDisabled:"touchDisabled___2qs4y",horizontalSliderTray:"horizontalSliderTray___1L-0W",verticalSlider:"verticalSlider___34ZFD",verticalSliderTray:"verticalSliderTray___267D8",verticalTray:"verticalTray___12Key",verticalSlideTrayWrap:"verticalSlideTrayWrap___2nO7o",sliderTray:"sliderTray___-vHFQ",sliderAnimation:"sliderAnimation___300FY",masterSpinnerContainer:"masterSpinnerContainer___1Z6hB"},ze=["ariaLabel","carouselStore","children","className","classNameAnimation","classNameTray","classNameTrayWrap","currentSlide","disableAnimation","disableKeyboard","dragEnabled","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","masterSpinnerFinished","moveThreshold","naturalSlideHeight","naturalSlideWidth","onMasterSpinner","orientation","playDirection","privateUnDisableAnimation","slideSize","slideTraySize","spinner","style","totalSlides","touchEnabled","trayProps","trayTag","visibleSlides","isIntrinsicHeight"],He=["dragStep","step","infinite","preventVerticalScrollOnTouch","preventingVerticalScroll","horizontalPixelThreshold","verticalPixelThreshold"],Fe=["className","onClickCapture","onMouseDown","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","ref","style"],Be=x((c(Me=function(e){function t(e){var n;return s(this,t),(n=i.call(this,e)).getSliderRef=n.getSliderRef.bind(S(n)),n.handleDocumentScroll=n.handleDocumentScroll.bind(S(n)),n.handleOnClickCapture=n.handleOnClickCapture.bind(S(n)),n.handleOnKeyDown=n.handleOnKeyDown.bind(S(n)),n.handleOnMouseDown=n.handleOnMouseDown.bind(S(n)),n.handleOnMouseMove=n.handleOnMouseMove.bind(S(n)),n.handleOnMouseUp=n.handleOnMouseUp.bind(S(n)),n.handleOnTouchCancel=n.handleOnTouchCancel.bind(S(n)),n.handleOnTouchEnd=n.handleOnTouchEnd.bind(S(n)),n.handleOnTouchMove=n.handleOnTouchMove.bind(S(n)),n.handleOnTouchStart=n.handleOnTouchStart.bind(S(n)),n.playBackward=n.playBackward.bind(S(n)),n.playForward=n.playForward.bind(S(n)),n.callCallback=n.callCallback.bind(S(n)),n.blockWindowScroll=n.blockWindowScroll.bind(S(n)),n.state={cancelNextClick:!1,deltaX:0,deltaY:0,isBeingMouseDragged:!1,isBeingTouchDragged:!1,preventingVerticalScroll:!1,startX:0,startY:0},n.interval=null,n.isDocumentScrolling=null,n.moveTimer=null,n.originalOverflow=null,n.scrollParent=null,n.scrollStopTimer=null,n}d(t,e);var i=m(t);
1return l(t,[{key:"componentDidMount",value:function(){this.props.lockOnWindowScroll&&window.addEventListener("scroll",this.handleDocumentScroll,!1),(this.props.touchEnabled||this.props.preventVerticalScrollOnTouch)&&window.addEventListener("touchmove",this.blockWindowScroll,!1),document.documentElement.addEventListener("mouseleave",this.handleOnMouseUp,!1),document.documentElement.addEventListener("mousemove",this.handleOnMouseMove,!1),document.documentElement.addEventListener("mouseup",this.handleOnMouseUp,!1),this.props.isPlaying&&this.play()}},{key:"componentDidUpdate",value:function(e){!e.isPlaying&&this.props.isPlaying&&this.play(),e.isPlaying&&!this.props.isPlaying&&this.stop(),!e.isPageScrollLocked&&this.props.isPageScrollLocked&&this.lockScroll(),e.isPageScrollLocked&&!this.props.isPageScrollLocked&&this.unlockScroll(),!1===e.privateUnDisableAnimation&&!0===this.props.privateUnDisableAnimation&&this.props.carouselStore.setStoreState({privateUnDisableAnimation:!1,disableAnimation:!1})}},{key:"componentWillUnmount",value:function(){document.documentElement.removeEventListener("mouseleave",this.handleOnMouseUp,!1),document.documentElement.removeEventListener("mousemove",this.handleOnMouseMove,!1),document.documentElement.removeEventListener("mouseup",this.handleOnMouseUp,!1),window.removeEventListener("scroll",this.handleDocumentScroll,!1),window.removeEventListener("touchmove",this.blockWindowScroll,!1),this.stop(),window.cancelAnimationFrame.call(window,this.moveTimer),window.clearTimeout(this.scrollStopTimer),this.isDocumentScrolling=null,this.moveTimer=null,this.scrollStopTimer=null}},{key:"getSliderRef",value:function(e){if(this.sliderTrayElement=e,e&&window){var t=e.closest(".carousel");t&&(this.rtl="rtl"===window.getComputedStyle(t,null).getPropertyValue("direction"))}}},{key:"fakeOnDragStart",value:function(e){var t=e.screenX,i=e.screenY,n=e.touchDrag,r=void 0!==n&&n,o=e.mouseDrag,s=void 0!==o&&o;this.props.carouselStore.setStoreState({isPlaying:!1}),window.cancelAnimationFrame.call(window,this.moveTimer),"vertical"===this.props.orientation&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),this.setState({isBeingTouchDragged:r,isBeingMouseDragged:s,startX:t,startY:i})}},{key:"fakeOnDragMove",value:function(e,t){var i=this;window.cancelAnimationFrame.call(window,this.moveTimer),this.moveTimer=window.requestAnimationFrame.call(window,function(){i.setState(function(n){return{deltaX:(e-n.startX)*(i.rtl?-1:1),deltaY:t-n.startY,preventingVerticalScroll:Math.abs(t-n.startY)<=i.props.verticalPixelThreshold&&Math.abs(e-n.startX)>=i.props.horizontalPixelThreshold}})})}},{key:"fakeOnDragEnd",value:function(){window.cancelAnimationFrame.call(window,this.moveTimer),this.computeCurrentSlide(),"vertical"===this.props.orientation&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1}),this.setState({deltaX:0,deltaY:0,isBeingTouchDragged:!1,isBeingMouseDragged:!1}),this.isDocumentScrolling=!this.props.lockOnWindowScroll&&null}},{key:"callCallback",value:function(e,t){var i=this.props.trayProps;i&&"function"==typeof i[e]&&(t.persist(),i[e](t))}},{key:"handleOnMouseDown",value:function(e){this.props.dragEnabled?(e.preventDefault(),this.fakeOnDragStart({screenX:e.screenX,screenY:e.screenY,mouseDrag:!0}),this.callCallback("onMouseDown",e)):this.callCallback("onMouseDown",e)}},{key:"handleOnMouseMove",value:function(e){this.state.isBeingMouseDragged&&(this.setState({cancelNextClick:!0}),e.preventDefault(),this.fakeOnDragMove(e.screenX,e.screenY))}},{key:"handleOnMouseUp",value:function(e){this.state.isBeingMouseDragged&&(e.preventDefault(),this.fakeOnDragEnd())}},{key:"handleOnClickCapture",value:function(e){this.state.cancelNextClick?(e.preventDefault(),this.setState({cancelNextClick:!1}),this.callCallback("onClickCapture",e)):this.callCallback("onClickCapture",e)}},{key:"handleOnTouchStart",value:function(e){if(this.props.touchEnabled){"vertical"===this.props.orientation&&e.preventDefault();var t=e.targetTouches[0];this.fakeOnDragStart({screenX:t.screenX,screenY:t.screenY,touchDrag:!0}),this.callCallback("onTouchStart",e)}else this.callCallback("onTouchStart",e)}},{key:"handleDocumentScroll",value:function(){var e=this;this.props.touchEnabled&&(this.isDocumentScrolling=!0,window.clearTimeout(this.scrollStopTimer),this.scrollStopTimer=window.setTimeout(function(){e.isDocumentScrolling=!1},66))}},{key:"handleOnTouchMove",value:function(e){if(!this.props.touchEnabled||this.props.lockOnWindowScroll&&this.isDocumentScrolling)this.callCallback("onTouchMove",e);else{var t=e.targetTouches[0];t&&(this.fakeOnDragMove(t.screenX,t.screenY),this.callCallback("onTouchMove",e))}}},{key:"forward",value:function(){var e=this.props,t=e.currentSlide,i=e.step,n=e.totalSlides,r=e.visibleSlides;return Math.min(t+i,n-r)}
1},{key:"backward",value:function(){var e=this.props,t=e.currentSlide,i=e.step;return Math.max(t-i,0)}},{key:"handleOnKeyDown",value:function(e){var t=e.keyCode,i=this.props,n=i.carouselStore,r=i.currentSlide,o=i.disableKeyboard,s=i.totalSlides,a=i.visibleSlides,l={};!0===o||s<=a||(37===t&&(e.preventDefault(),this.focus(),l.currentSlide=Math.max(0,r-1),l.isPlaying=!1),39===t&&(e.preventDefault(),this.focus(),l.currentSlide=Math.min(s-a,r+1),l.isPlaying=!1),n.setStoreState(l))}},{key:"playForward",value:function(){var e=this.props,t=e.carouselStore,i=e.currentSlide;t.setStoreState({currentSlide:this.forward()===i?0:this.forward()})}},{key:"playBackward",value:function(){var e=this.props,t=e.carouselStore,i=e.currentSlide,n=e.totalSlides,r=e.visibleSlides;t.setStoreState({currentSlide:this.backward()===i?n-r:this.backward()})}},{key:"play",value:function(){var e=this.props.playDirection;this.interval=setInterval("forward"===e?this.playForward:this.playBackward,this.props.interval)}},{key:"stop",value:function(){window.clearInterval(this.interval),this.interval=null}},{key:"lockScroll",value:function(){var e=new Ie;this.scrollParent=e.getScrollParent(this.sliderTrayElement),this.scrollParent&&(this.originalOverflow=this.originalOverflow||this.scrollParent.style.overflow,this.scrollParent.style.overflow="hidden")}},{key:"unlockScroll",value:function(){this.scrollParent&&(this.scrollParent.style.overflow=this.originalOverflow,this.originalOverflow=null,this.scrollParent=null)}},{key:"blockWindowScroll",value:function(e){this.state.preventingVerticalScroll&&(e.preventDefault(),e.stopImmediatePropagation())}},{key:"computeCurrentSlide",value:function(){var e=t.slideSizeInPx(this.props.orientation,this.sliderTrayElement.clientWidth,this.sliderTrayElement.clientHeight,this.props.totalSlides),i=t.slidesMoved(this.props.moveThreshold,this.props.orientation,this.state.deltaX,this.state.deltaY,e,this.props.dragStep),n=this.props.totalSlides-Math.min(this.props.totalSlides,this.props.visibleSlides),r=q({min:0,max:n,x:this.props.currentSlide+i});this.props.infinite&&(this.props.currentSlide>=n&&i>0&&(r=0),0===this.props.currentSlide&&i<0&&(r=n)),this.props.carouselStore.setStoreState({currentSlide:r})}},{key:"focus",value:function(){this.sliderElement.focus()}},{key:"handleOnTouchEnd",value:function(e){this.endTouchMove(),this.callCallback("onTouchEnd",e)}},{key:"handleOnTouchCancel",value:function(e){this.endTouchMove(),this.callCallback("onTouchCancel",e)}},{key:"endTouchMove",value:function(){this.props.touchEnabled&&this.fakeOnDragEnd()}},{key:"renderMasterSpinner",value:function(){var e=this.props,t=e.hasMasterSpinner,i=e.masterSpinnerFinished,r=e.spinner;return t&&!i?("function"==typeof this.props.onMasterSpinner&&this.props.onMasterSpinner(),n.createElement("div",{className:_([qe.masterSpinnerContainer,"carousel__master-spinner-container"])},r&&r(),!r&&n.createElement(De,null))):null}},{key:"render",value:function(){var e=this,t=this.props,i=t.ariaLabel,r=(t.carouselStore,t.children),o=t.className,s=t.classNameAnimation,a=t.classNameTray,l=t.classNameTrayWrap,c=t.currentSlide,d=t.disableAnimation,h=(t.disableKeyboard,t.dragEnabled,t.hasMasterSpinner,t.interval,t.isPageScrollLocked,t.isPlaying,t.lockOnWindowScroll,t.masterSpinnerFinished,t.moveThreshold,t.naturalSlideHeight),p=t.naturalSlideWidth,S=(t.onMasterSpinner,t.orientation),m=(t.playDirection,t.privateUnDisableAnimation,t.slideSize),f=t.slideTraySize,g=(t.spinner,t.style),v=(t.totalSlides,t.touchEnabled),y=t.trayProps,k=t.trayTag,O=t.visibleSlides,w=t.isIntrinsicHeight,E=b(t,ze),C=u({},g),M={};"vertical"===S&&(M.height=0,M.paddingBottom=T(100*h*O/p),M.width=T(100));var P={},N=T(m*c*-1);(this.state.isBeingTouchDragged||this.state.isBeingMouseDragged||d)&&(P.transition="none"),w&&(P.display="flex",P.alignItems="stretch"),"vertical"===S?(P.transform="translateY(".concat(N,") translateY(").concat(this.state.deltaY,"px)"),P.width=T(100),P.flexDirection="column"):(P.width=T(f),P.transform="translateX(".concat(N,") translateX(").concat(this.state.deltaX,"px)"),P.flexDirection="row");var D=_(["vertical"===S?qe.verticalSlider:qe.horizontalSlider,!v&&qe.touchDisabled,"carousel__slider","vertical"===S?"carousel__slider--vertical":"carousel__slider--h
1orizontal",o]),x=_([qe.sliderTrayWrap,"carousel__slider-tray-wrapper","vertical"===S?qe.verticalSlideTrayWrap:qe.horizontalTrayWrap,"vertical"===S?"carousel__slider-tray-wrap--vertical":"carousel__slider-tray-wrap--horizontal",l]),j=_([qe.sliderTray,s||qe.sliderAnimation,"carousel__slider-tray","vertical"===S?qe.verticalTray:qe.horizontalTray,"vertical"===S?"carousel__slider-tray--vertical":"carousel__slider-tray--horizontal",a]),A=(E.dragStep,E.step,E.infinite,E.preventVerticalScrollOnTouch,E.preventingVerticalScroll,E.horizontalPixelThreshold,E.verticalPixelThreshold,b(E,He)),R=(y.className,y.onClickCapture,y.onMouseDown,y.onTouchCancel,y.onTouchEnd,y.onTouchMove,y.onTouchStart,y.ref,y.style,b(y,Fe));return n.createElement("div",u({ref:function(t){e.sliderElement=t},className:D,"aria-live":"polite","aria-label":i,role:this.props.role,style:C,onKeyDown:this.handleOnKeyDown},A),n.createElement("div",{className:x,style:M},n.createElement(k,u({ref:this.getSliderRef,className:j,style:P,onTouchStart:this.handleOnTouchStart,onTouchMove:this.handleOnTouchMove,onTouchEnd:this.handleOnTouchEnd,onTouchCancel:this.handleOnTouchCancel,onMouseDown:this.handleOnMouseDown,onClickCapture:this.handleOnClickCapture},R),r),this.renderMasterSpinner()))}}],[{key:"slideSizeInPx",value:function(e,t,i,n){return("horizontal"===e?t:i)/n}},{key:"slidesMoved",value:function(e,t,i,n,r,o){var s="horizontal"===t?i:n,a=Math.abs(Math.round(s/r)),l=Math.abs(s)>=r*e?o:0,c=Math.max(l,a);if(s<0)return c;var u=-c;return 0===u?0:u}}]),t}(n.Component),"propTypes",{ariaLabel:j.string,carouselStore:j.object.isRequired,children:j.node.isRequired,className:j.string,classNameAnimation:j.string,classNameTray:j.string,classNameTrayWrap:j.string,currentSlide:j.number.isRequired,disableAnimation:j.bool,disableKeyboard:j.bool,dragEnabled:j.bool.isRequired,dragStep:j.number,hasMasterSpinner:j.bool.isRequired,infinite:j.bool,interval:j.number.isRequired,isPageScrollLocked:j.bool.isRequired,isPlaying:j.bool.isRequired,lockOnWindowScroll:j.bool.isRequired,preventVerticalScrollOnTouch:j.bool,horizontalPixelThreshold:j.number,verticalPixelThreshold:j.number,masterSpinnerFinished:j.bool.isRequired,moveThreshold:j.number,naturalSlideHeight:j.number.isRequired,naturalSlideWidth:j.number.isRequired,onMasterSpinner:j.func,orientation:I.orientation.isRequired,playDirection:I.direction.isRequired,privateUnDisableAnimation:j.bool,role:j.string,slideSize:j.number.isRequired,slideTraySize:j.number.isRequired,spinner:j.func,step:j.number.isRequired,style:j.object,totalSlides:j.number.isRequired,touchEnabled:j.bool.isRequired,trayProps:j.shape({className:j.string,onClickCapture:j.func,onMouseDown:j.func,onTouchCancel:j.func,onTouchEnd:j.func,onTouchMove:j.func,onTouchStart:j.func,ref:j.shape({}),style:j.string}),trayTag:j.string,visibleSlides:j.number,isIntrinsicHeight:j.bool}),c(Me,"defaultProps",{ariaLabel:"slider",className:null,classNameAnimation:null,classNameTray:null,classNameTrayWrap:null,disableAnimation:!1,disableKeyboard:!1,dragStep:1,infinite:!1,preventVerticalScrollOnTouch:!0,horizontalPixelThreshold:15,verticalPixelThreshold:10,moveThreshold:.1,onMasterSpinner:null,privateUnDisableAnimation:!1,role:"listbox",spinner:null,style:{},trayProps:{},trayTag:"div",visibleSlides:1,isIntrinsicHeight:!1}),Me),function(e){return{currentSlide:e.currentSlide,disableAnimation:e.disableAnimation,privateUnDisableAnimation:e.privateUnDisableAnimation,disableKeyboard:e.disableKeyboard,dragEnabled:e.dragEnabled,hasMasterSpinner:e.hasMasterSpinner,infinite:e.infinite,interval:e.interval,isPageScrollLocked:e.isPageScrollLocked,isPlaying:e.isPlaying,lockOnWindowScroll:e.lockOnWindowScroll,preventingVerticalScroll:e.preventingVerticalScroll,masterSpinnerFinished:e.masterSpinnerFinished,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,playDirection:e.playDirection,slideSize:e.slideSize,slideTraySize:e.slideTraySize,step:e.step,dragStep:e.dragStep,totalSlides:e.totalSlides,touchEnabled:e.touchEnabled,visibleSlides:e.visibleSlides,isIntrinsicHeight:e.isIntrinsicHeight}})},46443:function(e,t,i){var n=i(85072),r=i.n(n),o=i(12768);r()(o.A,{insert:"head",singleton:!1}),o.A.locals},23029:function(e,t,i){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}i.d(t,{A:function(){return n}})},92901:function(e,t,i){i.d(t,{A:function(){return o}});var n=i(20816);function r(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,n.A)(r.key),r)}}function o(e,t,i){return t&&r(e.prototype,t),i&&r(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}}
1,53954:function(e,t,i){function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}i.d(t,{A:function(){return n}})},15361:function(e,t,i){function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}function r(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&&n(e,t)}i.d(t,{A:function(){return r}})},50388:function(e,t,i){i.d(t,{A:function(){return r}});var n=i(82284);function r(e,t){if(t&&("object"==(0,n.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.