diff --git a/.gitignore b/.gitignore index fbeebc0..e759cd2 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,4 @@ build/Release node_modules # Ignore build files +node_modules diff --git a/README.md b/README.md index 415d564..049aa94 100644 --- a/README.md +++ b/README.md @@ -1,46 +1,22 @@ -# React-Demo +# React构建京东首页 -### 基于reactjs && Node 通讯的简单演示 +### 基于Reactjs && Node 通讯的简单演示 * Reactjs && ES6 && webpack构建移动端京东首页 * 基于文件系统的Node.js服务端 -![Mou icon](./jd.png) - -### 安装与运行程序 - -克隆项目 - -``` -> $ git clone https://github.com/CanFoo/react.git -``` - -分别进入react目录和server目录下安装依赖包 - -``` -> $ npm install -``` - -在server目录下启动后台服务 - -``` -> $ npm run start -``` - -在工程目录下启动webpack服务 - -``` -> $ npm run dev -``` - -发布项目文件命令 - -``` -> $ npm run build -``` - -执行完`npm run dev`命令后,打开浏览器 `http://localhost:8080/`运行项目,后台服务端口为 `3000` - +### 阅读对象 +* 初学react童鞋 +* 想要入门nodejs的童鞋 +## 如何使用 +1. 下载项目 +2. 打开一个终端窗口A,进入到react目录执行`npm install`,安装依赖包。 +3. 打开另一个终端窗口B,进入到server目录只想`npm install`,安装依赖包。 +4. 在server目录里(即B终端窗口)执行`npm run start`,启动后台服务。 +5. 在react目录里(即A终端口)执行`npm run dev`,启动webpakc开发服务。 +6. 执行完`npm run dev`命令后,打开浏览器 `http://localhost:8080/`运行项目,后台服务端口为 `3000` +## 效果预览 +![Mou icon](./jd.png) diff --git a/app/components/header.jsx b/app/components/header.js similarity index 78% rename from app/components/header.jsx rename to app/components/header.js index 33989fc..228643b 100644 --- a/app/components/header.jsx +++ b/app/components/header.js @@ -1,11 +1,9 @@ - -require("./header.css"); -require('../lib/swiper.min.css'); -let Swiper = require('../lib/swiper.min.js'); -let jsonp = require('../util/jsonp.js'); - -import React from 'react'; - +import './header.css'; +import '../lib/swiper.min.css'; +import React from 'react'; +import Swiper from '../lib/swiper.min.js' +import fetchJsonp from 'fetch-jsonp'; + let Header = React.createClass({ getInitialState: function() { return { @@ -13,7 +11,9 @@ let Header = React.createClass({ }; }, componentDidMount: function() { - jsonp(this.props.source, "", "callback", (data) => { + fetchJsonp(this.props.source).then((response) => { + return response.json(); + }).then((data) => { if(data.status) { //如果组件渲染到了 DOM 中,isMounted() 返回 true。 //可以使用该方法保证 setState() 和 forceUpdate() @@ -33,7 +33,7 @@ let Header = React.createClass({ }else { alert(data.msg); } - }); + }) }, render: function () { @@ -57,5 +57,8 @@ let Header = React.createClass({ } }) +Header.propTypes = { + source: React.PropTypes.string.isRequired, +} module.exports = Header; diff --git a/app/components/like.jsx b/app/components/like.js similarity index 80% rename from app/components/like.jsx rename to app/components/like.js index d20c172..9555349 100644 --- a/app/components/like.jsx +++ b/app/components/like.js @@ -1,7 +1,6 @@ - -require('./like.css'); -let jsonp = require('../util/jsonp.js'); +import './like.css'; import React from 'react'; +import fetchJsonp from 'fetch-jsonp'; let Like = React.createClass({ getInitialState: function() { @@ -11,7 +10,9 @@ let Like = React.createClass({ }, componentDidMount: function() { - jsonp(this.props.source, "", "callback", (data) => { + fetchJsonp(this.props.source).then((response) => { + return response.json(); + }).then((data) => { if(data.status) { if(this.isMounted()) { this.setState({ @@ -55,4 +56,7 @@ let Like = React.createClass({ } }) -module.exports = Like; \ No newline at end of file +Like.propTypes = { + source: React.PropTypes.string.isRequired, +} +module.exports = Like; diff --git a/app/components/more.jsx b/app/components/more.js similarity index 55% rename from app/components/more.jsx rename to app/components/more.js index ed75f5a..374ef1f 100644 --- a/app/components/more.jsx +++ b/app/components/more.js @@ -1,44 +1,43 @@ +import './more.css'; +import '../lib/swiper.min.css'; +import Swiper from '../lib/swiper.min.js'; +import fetchJsonp from 'fetch-jsonp'; +import React, { Component } from 'react' -require('./more.css'); -require('../lib/swiper.min.css'); -let Swiper = require('../lib/swiper.min.js'); -let jsonp = require('../util/jsonp.js'); -import React from 'react'; - -var More = React.createClass({ - getInitialState: function() { - return { - more1: [], - more2: [], - more3: [], - }; - }, +class More extends Component { + constructor(props) { + super(props); + this.state = { + more1: [], + more2: [], + more3: [] + } + } - componentDidMount: function() { - jsonp(this.props.source, "", "callback", (data) => { + componentDidMount() { + fetchJsonp(this.props.source).then((response) => { + return response.json(); + }).then((data) => { if(data.status) { - - if(this.isMounted()) { - this.setState({ - more1: data.data.slice(0,3), - more2: data.data.slice(3,5), - more3: data.data.slice(5,7), - }) - new Swiper ('.more_bottom .swiper-container', { - loop: true, - pagination: '.swiper-pagination', - paginationClickable: true, - autoplay : 2000, - autoplayDisableOnInteraction : false, - }) - } + this.setState({ + more1: data.data.slice(0,3), + more2: data.data.slice(3,5), + more3: data.data.slice(5,7), + }) + new Swiper ('.more_bottom .swiper-container', { + loop: true, + pagination: '.swiper-pagination', + paginationClickable: true, + autoplay : 2000, + autoplayDisableOnInteraction : false, + }) }else { alert(data.msg); } - }); - }, + }) + } - render: function() { + render() { let countId = 0; return ( @@ -84,6 +83,9 @@ var More = React.createClass({ ); } -}) +} -module.exports = More; \ No newline at end of file +More.propTypes = { + source: React.PropTypes.string.isRequired, +} +module.exports = More; diff --git a/app/components/otherapp.jsx b/app/components/otherapp.js similarity index 74% rename from app/components/otherapp.jsx rename to app/components/otherapp.js index 26e5052..0e345f4 100644 --- a/app/components/otherapp.jsx +++ b/app/components/otherapp.js @@ -1,8 +1,6 @@ - -require('./otherapp.css'); -let jsonp = require('../util/jsonp.js'); - +import './otherapp.css'; import React from 'react'; +import fetchJsonp from 'fetch-jsonp'; let Otherapp = React.createClass({ getInitialState: function() { @@ -12,7 +10,9 @@ let Otherapp = React.createClass({ }, componentDidMount: function() { - jsonp(this.props.source, "", "callback", (data) => { + fetchJsonp(this.props.source).then((response) => { + return response.json(); + }).then((data) => { if(data.status) { if(this.isMounted()) { this.setState({ @@ -48,4 +48,7 @@ let Otherapp = React.createClass({ } }) -module.exports = Otherapp; \ No newline at end of file +Otherapp.propTypes = { + source: React.PropTypes.string.isRequired, +} +module.exports = Otherapp; diff --git a/app/components/search.jsx b/app/components/search.js similarity index 93% rename from app/components/search.jsx rename to app/components/search.js index 65b29d4..10650f9 100644 --- a/app/components/search.jsx +++ b/app/components/search.js @@ -1,5 +1,5 @@ -require('./search.css'); +import './search.css'; import React from 'react'; let Search = React.createClass({ @@ -9,12 +9,12 @@ let Search = React.createClass({ } }, componentDidMount: function() { - let _this = this; + window.onscroll = (event) => { let realHeight = document.documentElement.scrollTop || document.body.scrollTop; let optatic = 0.8 * (realHeight/142); if(optatic <= 0.8 ) { - _this.setState({ + this.setState({ bg: `rgba(234, 44, 44, ${optatic})`, }) } diff --git a/app/components/spike.jsx b/app/components/spike.js similarity index 91% rename from app/components/spike.jsx rename to app/components/spike.js index ed52856..3e47ffc 100644 --- a/app/components/spike.jsx +++ b/app/components/spike.js @@ -1,6 +1,5 @@ - -require('./spike.css'); -let jsonp = require('../util/jsonp.js'); +import './spike.css'; +import fetchJsonp from 'fetch-jsonp'; import React from 'react'; let Spike = React.createClass({ @@ -45,7 +44,9 @@ let Spike = React.createClass({ componentDidMount: function() { let getData = () => { let promise = new Promise((resolve, reject) => { - jsonp(this.props.source, "", "callback", (data) => { + fetchJsonp(this.props.source).then((response) => { + return response.json(); + }).then((data) => { if(data.status) { if(this.isMounted()) { this.setState({ @@ -58,7 +59,7 @@ let Spike = React.createClass({ alert(data.msg); reject("get data error!") } - }) + }); }) return promise; } @@ -120,7 +121,6 @@ let Spike = React.createClass({

¥{item.sprice}

¥{item.price}

- }) } @@ -130,4 +130,7 @@ let Spike = React.createClass({ } }) -module.exports = Spike; \ No newline at end of file +Spike.propTypes = { + source: React.PropTypes.string.isRequired, +} +module.exports = Spike; diff --git a/app/images/like/like1.jpg b/app/images/like/like1.jpg deleted file mode 100644 index f35ab22..0000000 Binary files a/app/images/like/like1.jpg and /dev/null differ diff --git a/app/images/like/like10.jpg b/app/images/like/like10.jpg deleted file mode 100644 index 8092806..0000000 Binary files a/app/images/like/like10.jpg and /dev/null differ diff --git a/app/images/like/like2.jpg b/app/images/like/like2.jpg deleted file mode 100644 index 5421c6e..0000000 Binary files a/app/images/like/like2.jpg and /dev/null differ diff --git a/app/images/like/like3.jpg b/app/images/like/like3.jpg deleted file mode 100644 index 953acd7..0000000 Binary files a/app/images/like/like3.jpg and /dev/null differ diff --git a/app/images/like/like4.jpg b/app/images/like/like4.jpg deleted file mode 100644 index f5e858f..0000000 Binary files a/app/images/like/like4.jpg and /dev/null differ diff --git a/app/images/like/like5.jpg b/app/images/like/like5.jpg deleted file mode 100644 index d26998c..0000000 Binary files a/app/images/like/like5.jpg and /dev/null differ diff --git a/app/images/like/like6.jpg b/app/images/like/like6.jpg deleted file mode 100644 index 6a5abe6..0000000 Binary files a/app/images/like/like6.jpg and /dev/null differ diff --git a/app/images/like/like7.jpg b/app/images/like/like7.jpg deleted file mode 100644 index 0a3889d..0000000 Binary files a/app/images/like/like7.jpg and /dev/null differ diff --git a/app/images/like/like8.jpg b/app/images/like/like8.jpg deleted file mode 100644 index d28834c..0000000 Binary files a/app/images/like/like8.jpg and /dev/null differ diff --git a/app/images/like/like9.jpg b/app/images/like/like9.jpg deleted file mode 100644 index e7b9e60..0000000 Binary files a/app/images/like/like9.jpg and /dev/null differ diff --git a/app/images/more/more1.jpg b/app/images/more/more1.jpg deleted file mode 100644 index 514c557..0000000 Binary files a/app/images/more/more1.jpg and /dev/null differ diff --git a/app/images/more/more2.jpg b/app/images/more/more2.jpg deleted file mode 100644 index d1eb5de..0000000 Binary files a/app/images/more/more2.jpg and /dev/null differ diff --git a/app/images/more/more3.jpg b/app/images/more/more3.jpg deleted file mode 100644 index 0d6105c..0000000 Binary files a/app/images/more/more3.jpg and /dev/null differ diff --git a/app/images/more/more4.jpg b/app/images/more/more4.jpg deleted file mode 100644 index 472e128..0000000 Binary files a/app/images/more/more4.jpg and /dev/null differ diff --git a/app/images/more/more5.jpg b/app/images/more/more5.jpg deleted file mode 100644 index d0e277a..0000000 Binary files a/app/images/more/more5.jpg and /dev/null differ diff --git a/app/images/more/more6.jpg b/app/images/more/more6.jpg deleted file mode 100644 index affe380..0000000 Binary files a/app/images/more/more6.jpg and /dev/null differ diff --git a/app/images/more/more7.jpg b/app/images/more/more7.jpg deleted file mode 100644 index c2c1606..0000000 Binary files a/app/images/more/more7.jpg and /dev/null differ diff --git a/app/images/spike1.jpg b/app/images/spike1.jpg deleted file mode 100644 index 9b40007..0000000 Binary files a/app/images/spike1.jpg and /dev/null differ diff --git a/app/images/spike2.jpg b/app/images/spike2.jpg deleted file mode 100644 index af61e3a..0000000 Binary files a/app/images/spike2.jpg and /dev/null differ diff --git a/app/images/spike3.jpg b/app/images/spike3.jpg deleted file mode 100644 index 9e32f61..0000000 Binary files a/app/images/spike3.jpg and /dev/null differ diff --git a/app/util/jsonp.js b/app/util/jsonp.js deleted file mode 100644 index 347ba53..0000000 --- a/app/util/jsonp.js +++ /dev/null @@ -1,54 +0,0 @@ - -;(function () { - /** - * JSONP操作 - * @param url : 请求的url - * @param data : 发送数据 - * @param jsonpcallback : 服务器给出的JSONP端口的API名称 - * @param callback : 执行JSONP获取数据的回调函数 - */ - var jsonp = function (url, data, jsonpcallback, callback) { - var cbName = 'cb' + jsonp.count++; - var callbackName = 'window.jsonp.' + cbName; - window.jsonp[cbName] = function (jsonpData) { - try { - callback(jsonpData); - } finally { - script.parentNode.removeChild(script); - delete window.jsonp[cbName]; - } - }; - var script = document.createElement('script'); - if (data) { - data = tool.encodeToURIString(data); - } - if (typeof jsonpcallback === 'string') { - var jsonpData = jsonpcallback + '=' + callbackName; - } - url = tool.hasSearch(url, data); - url = tool.hasSearch(url, jsonpData); - script.src = url; - document.body.appendChild(script); - }; - jsonp.count = 0; - window.jsonp = jsonp; - var tool = { - encodeToURIString: function (data) { - if (!data) return ''; - if (typeof data === 'string') return data; - var arr = []; - for (var n in data) { - if (!data.hasOwnProperty(n)) continue; - arr.push(encodeURIComponent(n) + '=' + encodeURIComponent(data[n])); - } - return arr.join('&'); - }, - hasSearch: function (url, padString) { - if (!padString) return url; - if (typeof padString !== 'string') return url; - return url + (/\?/.test(url) ? '&' : '?') + padString; - } - } -})(); - -module.exports = jsonp; diff --git a/build/2b0fb3c4dd3cac79ad0b87b3f42b441d.jpg b/build/2b0fb3c4dd3cac79ad0b87b3f42b441d.jpg deleted file mode 100644 index 20c418b..0000000 Binary files a/build/2b0fb3c4dd3cac79ad0b87b3f42b441d.jpg and /dev/null differ diff --git a/build/9baa220dc48edb9d28ebdd296df07a7d.jpg b/build/9baa220dc48edb9d28ebdd296df07a7d.jpg deleted file mode 100644 index 5511333..0000000 Binary files a/build/9baa220dc48edb9d28ebdd296df07a7d.jpg and /dev/null differ diff --git a/build/bundle.js b/build/bundle.js index 3a067db..c3dabbe 100644 --- a/build/bundle.js +++ b/build/bundle.js @@ -1,5 +1,5 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(119)},function(e,t){function n(){c&&u&&(c=!1,u.length?p=u.concat(p):d=-1,p.length&&r())}function r(){if(!c){var e=i(n);c=!0;for(var t=p.length;t;){for(u=p,p=[];++d1)for(var n=1;n2?n-2:0),o=2;o1){for(var y=Array(g),b=0;b1){for(var v=Array(m),g=0;g=0&&b.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",a(e,t),t}function l(e){var t=document.createElement("link");return t.rel="stylesheet",a(e,t),t}function u(e,t){var n,r,o;if(t.singleton){var a=y++;n=g||(g=s(t)),r=p.bind(null,n,a,!1),o=p.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),r=d.bind(null,n),o=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=c.bind(null,n),o=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function p(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function c(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(o),a&&URL.revokeObjectURL(a)}var f={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=h(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,y=0,b=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var a=[],i=0;i-1?void 0:"production"!==t.env.NODE_ENV?i(!1,"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.",e):i(!1),!u.plugins[r]){n.extractEvents?void 0:"production"!==t.env.NODE_ENV?i(!1,"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.",e):i(!1),u.plugins[r]=n;var a=n.eventTypes;for(var p in a)o(a[p],n,p)?void 0:"production"!==t.env.NODE_ENV?i(!1,"EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.",p,e):i(!1)}}}function o(e,n,r){u.eventNameDispatchConfigs.hasOwnProperty(r)?"production"!==t.env.NODE_ENV?i(!1,"EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.",r):i(!1):void 0, -u.eventNameDispatchConfigs[r]=e;var o=e.phasedRegistrationNames;if(o){for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];a(l,n,r)}return!0}return!!e.registrationName&&(a(e.registrationName,n,r),!0)}function a(e,n,r){if(u.registrationNameModules[e]?"production"!==t.env.NODE_ENV?i(!1,"EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.",e):i(!1):void 0,u.registrationNameModules[e]=n,u.registrationNameDependencies[e]=n.eventTypes[r].dependencies,"production"!==t.env.NODE_ENV){var o=e.toLowerCase();u.possibleRegistrationNames[o]=e}}var i=n(2),s=null,l={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:"production"!==t.env.NODE_ENV?{}:null,injectEventPluginOrder:function(e){s?"production"!==t.env.NODE_ENV?i(!1,"EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."):i(!1):void 0,s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var n=!1;for(var o in e)if(e.hasOwnProperty(o)){var a=e[o];l.hasOwnProperty(o)&&l[o]===a||(l[o]?"production"!==t.env.NODE_ENV?i(!1,"EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.",o):i(!1):void 0,l[o]=a,n=!0)}n&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=u.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){s=null;for(var e in l)l.hasOwnProperty(e)&&delete l[e];u.plugins.length=0;var n=u.eventNameDispatchConfigs;for(var r in n)n.hasOwnProperty(r)&&delete n[r];var o=u.registrationNameModules;for(var a in o)o.hasOwnProperty(a)&&delete o[a];if("production"!==t.env.NODE_ENV){var i=u.possibleRegistrationNames;for(var p in i)i.hasOwnProperty(p)&&delete i[p]}}};e.exports=u}).call(t,n(1))},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,v)||(e[v]=h++,d[e[v]]={}),d[e[v]]}var o,a=n(4),i=n(11),s=n(28),l=n(155),u=n(81),p=n(183),c=n(51),d={},f=!1,h=0,m={topAbort:"abort",topAnimationEnd:p("animationend")||"animationend",topAnimationIteration:p("animationiteration")||"animationiteration",topAnimationStart:p("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:p("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},v="_reactListenersID"+String(Math.random()).slice(2),g=a({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(g.handleTopLevel),g.ReactEventListener=e}},setEnabled:function(e){g.ReactEventListener&&g.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!g.ReactEventListener||!g.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,o=r(n),a=s.registrationNameDependencies[e],l=i.topLevelTypes,u=0;u":">","<":"<",'"':""","'":"'"},a=/[&><"']/g;e.exports=r},function(e,t,n){e.exports=n.p+"1c93a187f292ce38cc70b36f0b994b64.png"},function(e,t,n){"use strict";function r(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}function o(e,t,n){p.insertTreeBefore(e,t,n)}function a(e,t,n){Array.isArray(t)?s(e,t[0],t[1],n):g(e,t,n)}function i(e,t){if(Array.isArray(t)){var n=t[1];t=t[0],l(e,t,n),e.removeChild(n)}e.removeChild(t)}function s(e,t,n,r){for(var o=t;;){var a=o.nextSibling;if(g(e,o,r),o===n)break;o=a}}function l(e,t,n){for(;;){var r=t.nextSibling;if(r===n)break;e.removeChild(r)}}function u(e,t,n){var r=e.parentNode,o=e.nextSibling;o===t?n&&g(r,document.createTextNode(n),o):n?(v(o,n),l(r,o,t)):l(r,e,t)}var p=n(20),c=n(125),d=n(74),f=n(7),h=n(46),m=n(52),v=n(88),g=h(function(e,t,n){e.insertBefore(t,n)}),y={dangerouslyReplaceNodeWithMarkup:c.dangerouslyReplaceNodeWithMarkup,replaceDelimitedText:u,processUpdates:function(e,t){for(var n=0;n.":"function"==typeof n?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=n&&void 0!==n.props?" This may be caused by unintentionally loading two independent copies of React.":""):O(!1),"production"!==t.env.NODE_ENV?P(!r||!r.tagName||"BODY"!==r.tagName.toUpperCase(),"render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app."):void 0;var s=b(B,null,null,null,null,null,n),l=c(r);if(l){var p=l._currentElement,d=p.props;if(M(d,n)){var f=l._renderedComponent.getPublicInstance(),h=i&&function(){i.call(f)};return F._updateRootComponent(l,s,r,h),f}F.unmountComponentAtNode(r)}var m=o(r),v=m&&!!a(m),g=u(r);if("production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?P(!g,"render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."):void 0,!v||m.nextSibling))for(var y=m;y;){if(a(y)){"production"!==t.env.NODE_ENV?P(!1,"render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup."):void 0;break}y=y.nextSibling}var w=v&&!l&&!g,E=F._renderNewRootComponent(s,r,w,null!=e?e._reactInternalInstance._processChildContext(e._reactInternalInstance._context):k)._renderedComponent.getPublicInstance();return i&&i.call(E),E},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){"production"!==t.env.NODE_ENV?P(null==m.current,"unmountComponentAtNode(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate. Check the render method of %s.",m.current&&m.current.getName()||"ReactCompositeComponent"):void 0,!e||e.nodeType!==A&&e.nodeType!==V&&e.nodeType!==L?"production"!==t.env.NODE_ENV?O(!1,"unmountComponentAtNode(...): Target container is not a DOM element."):O(!1):void 0;var n=c(e);if(!n){var r=u(e),o=1===e.nodeType&&e.hasAttribute(R);return"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?P(!r,"unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",o?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component."):void 0),!1}return delete U[n._instance.rootID],T.batchedUpdates(l,n,e,!1),!0},_mountImageIntoNode:function(e,n,a,i,s){if(!n||n.nodeType!==A&&n.nodeType!==V&&n.nodeType!==L?"production"!==t.env.NODE_ENV?O(!1,"mountComponentIntoNode(...): Target container is not valid."):O(!1):void 0,i){var l=o(n);if(N.canReuseMarkup(e,l))return void v.precacheNode(a,l);var u=l.getAttribute(N.CHECKSUM_ATTR_NAME);l.removeAttribute(N.CHECKSUM_ATTR_NAME);var p=l.outerHTML;l.setAttribute(N.CHECKSUM_ATTR_NAME,u);var c=e;if("production"!==t.env.NODE_ENV){var f;n.nodeType===A?(f=document.createElement("div"),f.innerHTML=e,c=f.innerHTML):(f=document.createElement("iframe"),document.body.appendChild(f),f.contentDocument.write(e),c=f.contentDocument.documentElement.outerHTML,document.body.removeChild(f))}var h=r(c,p),m=" (client) "+c.substring(h-20,h+20)+"\n (server) "+p.substring(h-20,h+20);n.nodeType===V?"production"!==t.env.NODE_ENV?O(!1,"You're trying to render a component to the document using server rendering but the checksum was invalid. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side:\n%s",m):O(!1):void 0,"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?P(!1,"React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:\n%s",m):void 0)}if(n.nodeType===V?"production"!==t.env.NODE_ENV?O(!1,"You're trying to render a component to the document but you didn't use server rendering. We can't do this without using server rendering due to cross-browser quirks. See ReactDOMServer.renderToString() for server rendering."):O(!1):void 0,s.useCreateElement){for(;n.lastChild;)n.removeChild(n.lastChild);d.insertTreeBefore(n,e,null)}else D(n,e),v.precacheNode(a,n.firstChild)}};x.measureMethods(F,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),e.exports=F}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(2),o={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,n,o,a,i,s,l,u){this.isInTransaction()?"production"!==t.env.NODE_ENV?r(!1,"Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction."):r(!1):void 0;var p,c;try{this._isInTransaction=!0,p=!0,this.initializeAll(0),c=e.call(n,o,a,i,s,l,u),p=!1}finally{try{if(p)try{this.closeAll(0)}catch(d){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return c},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n=32||13===t?t:0}e.exports=n},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=o[e];return!!r&&!!n[r]}function r(e){return n}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[o]);if("function"==typeof t)return t}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";e.exports=n},function(e,t,n){"use strict";/** +!function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(116)},function(e,t,n){"use strict";function r(e,t,n,r,a,i,o,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,i,o,s],p=0;l=new Error(t.replace(/%s/g,function(){return u[p++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}e.exports=r},function(e,t,n){"use strict";var r=n(9),a=r;e.exports=a},function(e,t){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(e){a[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(i){return!1}}var a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,o,s=n(e),l=1;l1){for(var f=Array(d),h=0;h1){for(var g=Array(m),v=0;v=0&&y.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function l(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function u(e,t){var n,r,a;if(t.singleton){var i=w++;n=v||(v=s(t)),r=p.bind(null,n,i,!1),a=p.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),r=d.bind(null,n),a=function(){o(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=c.bind(null,n),a=function(){o(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}function p(e,t,n,r){var a=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,a);else{var i=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}function c(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(a),i&&URL.revokeObjectURL(i)}var f={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),g=h(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,w=0,y=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=a(e);return r(n,t),function(e){for(var i=[],o=0;o-1?void 0:o(!1),!u.plugins[n]){t.extractEvents?void 0:o(!1),u.plugins[n]=t;var r=t.eventTypes;for(var i in r)a(r[i],t,i)?void 0:o(!1)}}}function a(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)?o(!1):void 0,u.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var a in r)if(r.hasOwnProperty(a)){var s=r[a];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]?o(!1):void 0,u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var o=n(1),s=null,l={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s?o(!1):void 0,s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var a=e[n];l.hasOwnProperty(n)&&l[n]===a||(l[n]?o(!1):void 0,l[n]=a,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=u.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){s=null;for(var e in l)l.hasOwnProperty(e)&&delete l[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=u.registrationNameModules;for(var a in r)r.hasOwnProperty(a)&&delete r[a]}};e.exports=u},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,g)||(e[g]=h++,d[e[g]]={}),d[e[g]]}var a,i=n(3),o=n(10),s=n(27),l=n(150),u=n(80),p=n(178),c=n(49),d={},f=!1,h=0,m={topAbort:"abort",topAnimationEnd:p("animationend")||"animationend",topAnimationIteration:p("animationiteration")||"animationiteration",topAnimationStart:p("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:p("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},g="_reactListenersID"+String(Math.random()).slice(2),v=i({},l,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,a=r(n),i=s.registrationNameDependencies[e],l=o.topLevelTypes,u=0;u":">","<":"<",'"':""","'":"'"},i=/[&><"']/g;e.exports=r},function(e,t,n){e.exports=n.p+"1c93a187f292ce38cc70b36f0b994b64.png"},function(e,t,n){"use strict";function r(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}function a(e,t,n){p.insertTreeBefore(e,t,n)}function i(e,t,n){Array.isArray(t)?s(e,t[0],t[1],n):v(e,t,n)}function o(e,t){if(Array.isArray(t)){var n=t[1];t=t[0],l(e,t,n),e.removeChild(n)}e.removeChild(t)}function s(e,t,n,r){for(var a=t;;){var i=a.nextSibling;if(v(e,a,r),a===n)break;a=i}}function l(e,t,n){for(;;){var r=t.nextSibling;if(r===n)break;e.removeChild(r)}}function u(e,t,n){var r=e.parentNode,a=e.nextSibling;a===t?n&&v(r,document.createTextNode(n),a):n?(g(a,n),l(r,a,t)):l(r,e,t)}var p=n(19),c=n(122),d=n(73),f=n(6),h=n(44),m=n(50),g=n(87),v=h(function(e,t,n){e.insertBefore(t,n)}),w={dangerouslyReplaceNodeWithMarkup:c.dangerouslyReplaceNodeWithMarkup,replaceDelimitedText:u,processUpdates:function(e,t){for(var n=0;n=32||13===t?t:0}e.exports=n},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=a[e];return!!r&&!!n[r]}function r(e){return n}var a={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[a]);if("function"==typeof t)return t}var r="function"==typeof Symbol&&Symbol.iterator,a="@@iterator";e.exports=n},function(e,t,n){"use strict";/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, @@ -13,11 +13,10 @@ u.eventNameDispatchConfigs[r]=e;var o=e.phasedRegistrationNames;if(o){for(var s * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */ -function r(e,t){if(!a.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r="function"==typeof i[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,a=n(6);a.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=r},function(e,t,n){"use strict";var r=n(6),o=/^[ \r\n\t\f]/,a=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,i=n(46),s=i(function(e,t){e.innerHTML=t});if(r.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(s=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&a.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}e.exports=s},function(e,t){"use strict";function n(e,t){var n=null===e||e===!1,r=null===t||t===!1;if(n||r)return n===r;var o=typeof e,a=typeof t;return"string"===o||"number"===o?"string"===a||"number"===a:"object"===a&&e.type===t.type&&e.key===t.key}e.exports=n},function(e,t,n){(function(t){"use strict";function r(e){return v[e]}function o(e,t){return e&&"object"==typeof e&&null!=e.key?i(e.key):t.toString(36)}function a(e){return(""+e).replace(g,r)}function i(e){return"$"+a(e)}function s(e,n,r,a){var l=typeof e;if("undefined"!==l&&"boolean"!==l||(e=null),null===e||"string"===l||"number"===l||p.isValidElement(e))return r(a,e,""===n?h+o(e,0):n),1;var v,g,b=0,w=""===n?h:n+m;if(Array.isArray(e))for(var E=0;E "),S=!!s+"|"+e+"|"+d+"|"+k;if(v[S])return;v[S]=!0;var O=e;if("#text"!==e&&(O="<"+e+">"),s){var D="";"table"===d&&"tr"===e&&(D+=" Add a to your code to match the DOM tree generated by the browser."),"production"!==t.env.NODE_ENV?a(!1,"validateDOMNesting(...): %s cannot appear as a child of <%s>. See %s.%s",O,d,k,D):void 0}else"production"!==t.env.NODE_ENV?a(!1,"validateDOMNesting(...): %s cannot appear as a descendant of <%s>. See %s.",O,d,k):void 0}},i.updatedAncestorInfo=d,i.isTagValidInContext=function(e,t){t=t||c;var n=t.current,r=n&&n.tag;return f(e,r)&&!h(e,t)}}e.exports=i}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(9),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,n,o){return e.addEventListener?(e.addEventListener(n,o,!0),{remove:function(){e.removeEventListener(n,o,!0)}}):("production"!==t.env.NODE_ENV&&console.error("Attempted to listen to events during the capture phase on a browser that does not support the capture phase. Your application will not receive some events."),{remove:r})},registerDefault:function(){}};e.exports=o}).call(t,n(1))},function(e,t){"use strict";function n(e){try{e.focus()}catch(t){}}e.exports=n},function(e,t){"use strict";function n(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=n},function(e,t,n){(function(t){"use strict";function r(e){return i?void 0:"production"!==t.env.NODE_ENV?a(!1,"Markup wrapping node not initialized"):a(!1),d.hasOwnProperty(e)||(e="*"),s.hasOwnProperty(e)||("*"===e?i.innerHTML="":i.innerHTML="<"+e+">",s[e]=!i.firstChild),s[e]?d[e]:null}var o=n(6),a=n(2),i=o.canUseDOM?document.createElement("div"):null,s={},l=[1,'"],u=[1,"","
"],p=[3,"","
"],c=[1,'',""],d={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:l,option:l,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:p,th:p},f=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];f.forEach(function(e){d[e]=c,s[e]=!0}),e.exports=r}).call(t,n(1))},function(e,t){"use strict";function n(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function r(e,t){if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(var i=0;i0&&0===E.container.parents(".swiper-slide-active").length)return;var r={left:window.pageXOffset,top:window.pageYOffset},o=window.innerWidth,a=window.innerHeight,i=E.container.offset();E.rtl&&(i.left=i.left-E.container[0].scrollLeft);for(var s=[[i.left,i.top],[i.left+E.width,i.top],[i.left,i.top+E.height],[i.left+E.width,i.top+E.height]],l=0;l=r.left&&u[0]<=r.left+o&&u[1]>=r.top&&u[1]<=r.top+a&&(n=!0)}if(!n)return}E.isHorizontal()?((37===t||39===t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),(39===t&&!E.rtl||37===t&&E.rtl)&&E.slideNext(),(37===t&&!E.rtl||39===t&&E.rtl)&&E.slidePrev()):((38===t||40===t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),40===t&&E.slideNext(),38===t&&E.slidePrev())}}function c(e){e.originalEvent&&(e=e.originalEvent);var t=E.mousewheel.event,n=0,r=E.rtl?-1:1;if("mousewheel"===t)if(E.params.mousewheelForceToAxis)if(E.isHorizontal()){if(!(Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)))return;n=e.wheelDeltaX*r}else{if(!(Math.abs(e.wheelDeltaY)>Math.abs(e.wheelDeltaX)))return;n=e.wheelDeltaY}else n=Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)?-e.wheelDeltaX*r:-e.wheelDeltaY;else if("DOMMouseScroll"===t)n=-e.detail;else if("wheel"===t)if(E.params.mousewheelForceToAxis)if(E.isHorizontal()){if(!(Math.abs(e.deltaX)>Math.abs(e.deltaY)))return;n=-e.deltaX*r}else{if(!(Math.abs(e.deltaY)>Math.abs(e.deltaX)))return;n=-e.deltaY}else n=Math.abs(e.deltaX)>Math.abs(e.deltaY)?-e.deltaX*r:-e.deltaY;if(0!==n){if(E.params.mousewheelInvert&&(n=-n),E.params.freeMode){var o=E.getWrapperTranslate()+n*E.params.mousewheelSensitivity,a=E.isBeginning,i=E.isEnd;if(o>=E.minTranslate()&&(o=E.minTranslate()),o<=E.maxTranslate()&&(o=E.maxTranslate()),E.setWrapperTransition(0),E.setWrapperTranslate(o),E.updateProgress(),E.updateActiveIndex(),(!a&&E.isBeginning||!i&&E.isEnd)&&E.updateClasses(),E.params.freeModeSticky?(clearTimeout(E.mousewheel.timeout),E.mousewheel.timeout=setTimeout(function(){E.slideReset()},300)):E.params.lazyLoading&&E.lazy&&E.lazy.load(),0===o||o===E.maxTranslate())return}else{if((new window.Date).getTime()-E.mousewheel.lastScrollTime>60)if(0>n)if(E.isEnd&&!E.params.loop||E.animating){if(E.params.mousewheelReleaseOnEdges)return!0}else E.slideNext();else if(E.isBeginning&&!E.params.loop||E.animating){if(E.params.mousewheelReleaseOnEdges)return!0}else E.slidePrev();E.mousewheel.lastScrollTime=(new window.Date).getTime()}return E.params.autoplay&&E.stopAutoplay(),e.preventDefault?e.preventDefault():e.returnValue=!1,!1}}function d(e,t){e=n(e);var r,o,a,i=E.rtl?-1:1;r=e.attr("data-swiper-parallax")||"0",o=e.attr("data-swiper-parallax-x"),a=e.attr("data-swiper-parallax-y"),o||a?(o=o||"0",a=a||"0"):E.isHorizontal()?(o=r,a="0"):(a=r,o="0"),o=o.indexOf("%")>=0?parseInt(o,10)*t*i+"%":o*t*i+"px",a=a.indexOf("%")>=0?parseInt(a,10)*t+"%":a*t+"px",e.transform("translate3d("+o+", "+a+",0px)")}function f(e){return 0!==e.indexOf("on")&&(e=e[0]!==e[0].toUpperCase()?"on"+e[0].toUpperCase()+e.substring(1):"on"+e),e}if(!(this instanceof l))return new l(e,r);var h={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flip:{slideShadows:!0,limitRotation:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnRelease:!1,keyboardControl:!1,mousewheelControl:!1,mousewheelReleaseOnEdges:!1,mousewheelInvert:!1,mousewheelForceToAxis:!1,mousewheelSensitivity:1,hashnav:!1,breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,uniqueNavElements:!0,pagination:null,paginationElement:"span",paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,paginationProgressRender:null,paginationFractionRender:null,paginationCustomRender:null,paginationType:"bullets",resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingInPrevNextAmount:1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,controlBy:"slide",allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationCurrentClass:"swiper-pagination-current",paginationTotalClass:"swiper-pagination-total",paginationHiddenClass:"swiper-pagination-hidden",paginationProgressbarClass:"swiper-pagination-progressbar",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",runCallbacksOnInit:!0},m=r&&r.virtualTranslate;r=r||{};var v={};for(var g in r)if("object"!=t(r[g])||null===r[g]||r[g].nodeType||r[g]===window||r[g]===document||"undefined"!=typeof o&&r[g]instanceof o||"undefined"!=typeof jQuery&&r[g]instanceof jQuery)v[g]=r[g];else{v[g]={};for(var y in r[g])v[g][y]=r[g][y]}for(var b in h)if("undefined"==typeof r[b])r[b]=h[b];else if("object"==t(r[b]))for(var w in h[b])"undefined"==typeof r[b][w]&&(r[b][w]=h[b][w]);var E=this;if(E.params=r,E.originalParams=v,E.classNames=[],"undefined"!=typeof n&&"undefined"!=typeof o&&(n=o),("undefined"!=typeof n||(n="undefined"==typeof o?window.Dom7||window.Zepto||window.jQuery:o))&&(E.$=n,E.currentBreakpoint=void 0,E.getActiveBreakpoint=function(){if(!E.params.breakpoints)return!1;var e,t=!1,n=[];for(e in E.params.breakpoints)E.params.breakpoints.hasOwnProperty(e)&&n.push(e);n.sort(function(e,t){return parseInt(e,10)>parseInt(t,10)});for(var r=0;r=window.innerWidth&&!t&&(t=e);return t||"max"},E.setBreakpoint=function(){var e=E.getActiveBreakpoint();if(e&&E.currentBreakpoint!==e){var t=e in E.params.breakpoints?E.params.breakpoints[e]:E.originalParams,n=E.params.loop&&t.slidesPerView!==E.params.slidesPerView;for(var r in t)E.params[r]=t[r];E.currentBreakpoint=e,n&&E.destroyLoop&&E.reLoop(!0)}},E.params.breakpoints&&E.setBreakpoint(),E.container=n(e),0!==E.container.length)){if(E.container.length>1){var N=[];return E.container.each(function(){N.push(new l(this,r))}),N}E.container[0].swiper=E,E.container.data("swiper",E),E.classNames.push("swiper-container-"+E.params.direction),E.params.freeMode&&E.classNames.push("swiper-container-free-mode"),E.support.flexbox||(E.classNames.push("swiper-container-no-flexbox"),E.params.slidesPerColumn=1),E.params.autoHeight&&E.classNames.push("swiper-container-autoheight"),(E.params.parallax||E.params.watchSlidesVisibility)&&(E.params.watchSlidesProgress=!0),["cube","coverflow","flip"].indexOf(E.params.effect)>=0&&(E.support.transforms3d?(E.params.watchSlidesProgress=!0,E.classNames.push("swiper-container-3d")):E.params.effect="slide"),"slide"!==E.params.effect&&E.classNames.push("swiper-container-"+E.params.effect),"cube"===E.params.effect&&(E.params.resistanceRatio=0,E.params.slidesPerView=1,E.params.slidesPerColumn=1,E.params.slidesPerGroup=1,E.params.centeredSlides=!1,E.params.spaceBetween=0,E.params.virtualTranslate=!0,E.params.setWrapperSize=!1),("fade"===E.params.effect||"flip"===E.params.effect)&&(E.params.slidesPerView=1,E.params.slidesPerColumn=1,E.params.slidesPerGroup=1,E.params.watchSlidesProgress=!0,E.params.spaceBetween=0,E.params.setWrapperSize=!1,"undefined"==typeof m&&(E.params.virtualTranslate=!0)),E.params.grabCursor&&E.support.touch&&(E.params.grabCursor=!1),E.wrapper=E.container.children("."+E.params.wrapperClass),E.params.pagination&&(E.paginationContainer=n(E.params.pagination),E.params.uniqueNavElements&&"string"==typeof E.params.pagination&&E.paginationContainer.length>1&&1===E.container.find(E.params.pagination).length&&(E.paginationContainer=E.container.find(E.params.pagination)),"bullets"===E.params.paginationType&&E.params.paginationClickable?E.paginationContainer.addClass("swiper-pagination-clickable"):E.params.paginationClickable=!1,E.paginationContainer.addClass("swiper-pagination-"+E.params.paginationType)),(E.params.nextButton||E.params.prevButton)&&(E.params.nextButton&&(E.nextButton=n(E.params.nextButton),E.params.uniqueNavElements&&"string"==typeof E.params.nextButton&&E.nextButton.length>1&&1===E.container.find(E.params.nextButton).length&&(E.nextButton=E.container.find(E.params.nextButton))),E.params.prevButton&&(E.prevButton=n(E.params.prevButton),E.params.uniqueNavElements&&"string"==typeof E.params.prevButton&&E.prevButton.length>1&&1===E.container.find(E.params.prevButton).length&&(E.prevButton=E.container.find(E.params.prevButton)))),E.isHorizontal=function(){return"horizontal"===E.params.direction},E.rtl=E.isHorizontal()&&("rtl"===E.container[0].dir.toLowerCase()||"rtl"===E.container.css("direction")),E.rtl&&E.classNames.push("swiper-container-rtl"),E.rtl&&(E.wrongRTL="-webkit-box"===E.wrapper.css("display")),E.params.slidesPerColumn>1&&E.classNames.push("swiper-container-multirow"),E.device.android&&E.classNames.push("swiper-container-android"),E.container.addClass(E.classNames.join(" ")),E.translate=0,E.progress=0,E.velocity=0,E.lockSwipeToNext=function(){E.params.allowSwipeToNext=!1},E.lockSwipeToPrev=function(){E.params.allowSwipeToPrev=!1},E.lockSwipes=function(){E.params.allowSwipeToNext=E.params.allowSwipeToPrev=!1},E.unlockSwipeToNext=function(){E.params.allowSwipeToNext=!0},E.unlockSwipeToPrev=function(){E.params.allowSwipeToPrev=!0},E.unlockSwipes=function(){E.params.allowSwipeToNext=E.params.allowSwipeToPrev=!0},E.params.grabCursor&&(E.container[0].style.cursor="move",E.container[0].style.cursor="-webkit-grab",E.container[0].style.cursor="-moz-grab",E.container[0].style.cursor="grab"),E.imagesToLoad=[],E.imagesLoaded=0,E.loadImage=function(e,t,n,r,o){function a(){o&&o()}var i;e.complete&&r?a():t?(i=new window.Image,i.onload=a,i.onerror=a,n&&(i.srcset=n),t&&(i.src=t)):a()},E.preloadImages=function(){function e(){"undefined"!=typeof E&&null!==E&&(void 0!==E.imagesLoaded&&E.imagesLoaded++,E.imagesLoaded===E.imagesToLoad.length&&(E.params.updateOnImagesReady&&E.update(),E.emit("onImagesReady",E)))}E.imagesToLoad=E.container.find("img");for(var t=0;t=0&&(t=parseFloat(t.replace("%",""))/100*E.size),E.virtualSize=-t,E.rtl?E.slides.css({marginLeft:"",marginTop:""}):E.slides.css({marginRight:"",marginBottom:""});var i;E.params.slidesPerColumn>1&&(i=Math.floor(E.slides.length/E.params.slidesPerColumn)===E.slides.length/E.params.slidesPerColumn?E.slides.length:Math.ceil(E.slides.length/E.params.slidesPerColumn)*E.params.slidesPerColumn,"auto"!==E.params.slidesPerView&&"row"===E.params.slidesPerColumnFill&&(i=Math.max(i,E.params.slidesPerView*E.params.slidesPerColumn)));var s,l=E.params.slidesPerColumn,u=i/l,p=u-(E.params.slidesPerColumn*u-E.slides.length);for(e=0;e1){var d,f,h;"column"===E.params.slidesPerColumnFill?(f=Math.floor(e/l),h=e-f*l,(f>p||f===p&&h===l-1)&&++h>=l&&(h=0,f++),d=f+h*i/l,c.css({"-webkit-box-ordinal-group":d,"-moz-box-ordinal-group":d,"-ms-flex-order":d,"-webkit-order":d,order:d})):(h=Math.floor(e/u),f=e-h*u),c.css({"margin-top":0!==h&&E.params.spaceBetween&&E.params.spaceBetween+"px"}).attr("data-swiper-column",f).attr("data-swiper-row",h)}"none"!==c.css("display")&&("auto"===E.params.slidesPerView?(s=E.isHorizontal()?c.outerWidth(!0):c.outerHeight(!0),E.params.roundLengths&&(s=a(s))):(s=(E.size-(E.params.slidesPerView-1)*t)/E.params.slidesPerView,E.params.roundLengths&&(s=a(s)),E.isHorizontal()?E.slides[e].style.width=s+"px":E.slides[e].style.height=s+"px"),E.slides[e].swiperSlideSize=s,E.slidesSizesGrid.push(s),E.params.centeredSlides?(n=n+s/2+r/2+t,0===e&&(n=n-E.size/2-t),Math.abs(n)<.001&&(n=0),o%E.params.slidesPerGroup===0&&E.snapGrid.push(n),E.slidesGrid.push(n)):(o%E.params.slidesPerGroup===0&&E.snapGrid.push(n),E.slidesGrid.push(n),n=n+s+t),E.virtualSize+=s+t,r=s,o++)}E.virtualSize=Math.max(E.virtualSize,E.size)+E.params.slidesOffsetAfter;var m;if(E.rtl&&E.wrongRTL&&("slide"===E.params.effect||"coverflow"===E.params.effect)&&E.wrapper.css({width:E.virtualSize+E.params.spaceBetween+"px"}),(!E.support.flexbox||E.params.setWrapperSize)&&(E.isHorizontal()?E.wrapper.css({width:E.virtualSize+E.params.spaceBetween+"px"}):E.wrapper.css({height:E.virtualSize+E.params.spaceBetween+"px"})),E.params.slidesPerColumn>1&&(E.virtualSize=(s+E.params.spaceBetween)*i,E.virtualSize=Math.ceil(E.virtualSize/E.params.slidesPerColumn)-E.params.spaceBetween,E.wrapper.css({width:E.virtualSize+E.params.spaceBetween+"px"}),E.params.centeredSlides)){for(m=[],e=0;e1&&E.snapGrid.push(E.virtualSize-E.size)}0===E.snapGrid.length&&(E.snapGrid=[0]),0!==E.params.spaceBetween&&(E.isHorizontal()?E.rtl?E.slides.css({marginLeft:t+"px"}):E.slides.css({marginRight:t+"px"}):E.slides.css({marginBottom:t+"px"})),E.params.watchSlidesProgress&&E.updateSlidesOffset()}},E.updateSlidesOffset=function(){for(var e=0;e=0&&a0&&i<=E.size||0>=a&&i>=E.size;s&&E.slides.eq(n).addClass(E.params.slideVisibleClass)}r.progress=E.rtl?-o:o}}},E.updateProgress=function(e){"undefined"==typeof e&&(e=E.translate||0);var t=E.maxTranslate()-E.minTranslate(),n=E.isBeginning,r=E.isEnd;0===t?(E.progress=0,E.isBeginning=E.isEnd=!0):(E.progress=(e-E.minTranslate())/t,E.isBeginning=E.progress<=0,E.isEnd=E.progress>=1),E.isBeginning&&!n&&E.emit("onReachBeginning",E),E.isEnd&&!r&&E.emit("onReachEnd",E),E.params.watchSlidesProgress&&E.updateSlidesProgress(e),E.emit("onProgress",E,E.progress)},E.updateActiveIndex=function(){var e,t,n,r=E.rtl?E.translate:-E.translate;for(t=0;t=E.slidesGrid[t]&&r=E.slidesGrid[t]&&r=E.slidesGrid[t]&&(e=t);(0>e||"undefined"==typeof e)&&(e=0),n=Math.floor(e/E.params.slidesPerGroup),n>=E.snapGrid.length&&(n=E.snapGrid.length-1),e!==E.activeIndex&&(E.snapIndex=n,E.previousIndex=E.activeIndex,E.activeIndex=e,E.updateClasses())},E.updateClasses=function(){E.slides.removeClass(E.params.slideActiveClass+" "+E.params.slideNextClass+" "+E.params.slidePrevClass);var e=E.slides.eq(E.activeIndex);e.addClass(E.params.slideActiveClass);var t=e.next("."+E.params.slideClass).addClass(E.params.slideNextClass);E.params.loop&&0===t.length&&E.slides.eq(0).addClass(E.params.slideNextClass);var r=e.prev("."+E.params.slideClass).addClass(E.params.slidePrevClass);if(E.params.loop&&0===r.length&&E.slides.eq(-1).addClass(E.params.slidePrevClass),E.paginationContainer&&E.paginationContainer.length>0){var o,a=E.params.loop?Math.ceil((E.slides.length-2*E.loopedSlides)/E.params.slidesPerGroup):E.snapGrid.length;if(E.params.loop?(o=Math.ceil((E.activeIndex-E.loopedSlides)/E.params.slidesPerGroup),o>E.slides.length-1-2*E.loopedSlides&&(o-=E.slides.length-2*E.loopedSlides),o>a-1&&(o-=a),0>o&&"bullets"!==E.params.paginationType&&(o=a+o)):o="undefined"!=typeof E.snapIndex?E.snapIndex:E.activeIndex||0,"bullets"===E.params.paginationType&&E.bullets&&E.bullets.length>0&&(E.bullets.removeClass(E.params.bulletActiveClass),E.paginationContainer.length>1?E.bullets.each(function(){n(this).index()===o&&n(this).addClass(E.params.bulletActiveClass)}):E.bullets.eq(o).addClass(E.params.bulletActiveClass)),"fraction"===E.params.paginationType&&(E.paginationContainer.find("."+E.params.paginationCurrentClass).text(o+1),E.paginationContainer.find("."+E.params.paginationTotalClass).text(a)),"progress"===E.params.paginationType){var i=(o+1)/a,s=i,l=1;E.isHorizontal()||(l=i,s=1),E.paginationContainer.find("."+E.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX("+s+") scaleY("+l+")").transition(E.params.speed)}"custom"===E.params.paginationType&&E.params.paginationCustomRender&&(E.paginationContainer.html(E.params.paginationCustomRender(E,o+1,a)),E.emit("onPaginationRendered",E,E.paginationContainer[0]))}E.params.loop||(E.params.prevButton&&E.prevButton&&E.prevButton.length>0&&(E.isBeginning?(E.prevButton.addClass(E.params.buttonDisabledClass),E.params.a11y&&E.a11y&&E.a11y.disable(E.prevButton)):(E.prevButton.removeClass(E.params.buttonDisabledClass), -E.params.a11y&&E.a11y&&E.a11y.enable(E.prevButton))),E.params.nextButton&&E.nextButton&&E.nextButton.length>0&&(E.isEnd?(E.nextButton.addClass(E.params.buttonDisabledClass),E.params.a11y&&E.a11y&&E.a11y.disable(E.nextButton)):(E.nextButton.removeClass(E.params.buttonDisabledClass),E.params.a11y&&E.a11y&&E.a11y.enable(E.nextButton))))},E.updatePagination=function(){if(E.params.pagination&&E.paginationContainer&&E.paginationContainer.length>0){var e="";if("bullets"===E.params.paginationType){for(var t=E.params.loop?Math.ceil((E.slides.length-2*E.loopedSlides)/E.params.slidesPerGroup):E.snapGrid.length,n=0;t>n;n++)e+=E.params.paginationBulletRender?E.params.paginationBulletRender(n,E.params.bulletClass):"<"+E.params.paginationElement+' class="'+E.params.bulletClass+'">";E.paginationContainer.html(e),E.bullets=E.paginationContainer.find("."+E.params.bulletClass),E.params.paginationClickable&&E.params.a11y&&E.a11y&&E.a11y.initPagination()}"fraction"===E.params.paginationType&&(e=E.params.paginationFractionRender?E.params.paginationFractionRender(E,E.params.paginationCurrentClass,E.params.paginationTotalClass):' / ',E.paginationContainer.html(e)),"progress"===E.params.paginationType&&(e=E.params.paginationProgressRender?E.params.paginationProgressRender(E,E.params.paginationProgressbarClass):'',E.paginationContainer.html(e)),"custom"!==E.params.paginationType&&E.emit("onPaginationRendered",E,E.paginationContainer[0])}},E.update=function(e){function t(){r=Math.min(Math.max(E.translate,E.maxTranslate()),E.minTranslate()),E.setWrapperTranslate(r),E.updateActiveIndex(),E.updateClasses()}if(E.updateContainerSize(),E.updateSlidesSize(),E.updateProgress(),E.updatePagination(),E.updateClasses(),E.params.scrollbar&&E.scrollbar&&E.scrollbar.set(),e){var n,r;E.controller&&E.controller.spline&&(E.controller.spline=void 0),E.params.freeMode?(t(),E.params.autoHeight&&E.updateAutoHeight()):(n=("auto"===E.params.slidesPerView||E.params.slidesPerView>1)&&E.isEnd&&!E.params.centeredSlides?E.slideTo(E.slides.length-1,0,!1,!0):E.slideTo(E.activeIndex,0,!1,!0),n||t())}else E.params.autoHeight&&E.updateAutoHeight()},E.onResize=function(e){E.params.breakpoints&&E.setBreakpoint();var t=E.params.allowSwipeToPrev,n=E.params.allowSwipeToNext;E.params.allowSwipeToPrev=E.params.allowSwipeToNext=!0,E.updateContainerSize(),E.updateSlidesSize(),("auto"===E.params.slidesPerView||E.params.freeMode||e)&&E.updatePagination(),E.params.scrollbar&&E.scrollbar&&E.scrollbar.set(),E.controller&&E.controller.spline&&(E.controller.spline=void 0);var r=!1;if(E.params.freeMode){var o=Math.min(Math.max(E.translate,E.maxTranslate()),E.minTranslate());E.setWrapperTranslate(o),E.updateActiveIndex(),E.updateClasses(),E.params.autoHeight&&E.updateAutoHeight()}else E.updateClasses(),r=("auto"===E.params.slidesPerView||E.params.slidesPerView>1)&&E.isEnd&&!E.params.centeredSlides?E.slideTo(E.slides.length-1,0,!1,!0):E.slideTo(E.activeIndex,0,!1,!0);E.params.lazyLoading&&!r&&E.lazy&&E.lazy.load(),E.params.allowSwipeToPrev=t,E.params.allowSwipeToNext=n};var x=["mousedown","mousemove","mouseup"];window.navigator.pointerEnabled?x=["pointerdown","pointermove","pointerup"]:window.navigator.msPointerEnabled&&(x=["MSPointerDown","MSPointerMove","MSPointerUp"]),E.touchEvents={start:E.support.touch||!E.params.simulateTouch?"touchstart":x[0],move:E.support.touch||!E.params.simulateTouch?"touchmove":x[1],end:E.support.touch||!E.params.simulateTouch?"touchend":x[2]},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===E.params.touchEventsTarget?E.container:E.wrapper).addClass("swiper-wp8-"+E.params.direction),E.initEvents=function(e){var t=e?"off":"on",n=e?"removeEventListener":"addEventListener",o="container"===E.params.touchEventsTarget?E.container[0]:E.wrapper[0],a=E.support.touch?o:document,i=!!E.params.nested;E.browser.ie?(o[n](E.touchEvents.start,E.onTouchStart,!1),a[n](E.touchEvents.move,E.onTouchMove,i),a[n](E.touchEvents.end,E.onTouchEnd,!1)):(E.support.touch&&(o[n](E.touchEvents.start,E.onTouchStart,!1),o[n](E.touchEvents.move,E.onTouchMove,i),o[n](E.touchEvents.end,E.onTouchEnd,!1)),!r.simulateTouch||E.device.ios||E.device.android||(o[n]("mousedown",E.onTouchStart,!1),document[n]("mousemove",E.onTouchMove,i),document[n]("mouseup",E.onTouchEnd,!1))),window[n]("resize",E.onResize),E.params.nextButton&&E.nextButton&&E.nextButton.length>0&&(E.nextButton[t]("click",E.onClickNext),E.params.a11y&&E.a11y&&E.nextButton[t]("keydown",E.a11y.onEnterKey)),E.params.prevButton&&E.prevButton&&E.prevButton.length>0&&(E.prevButton[t]("click",E.onClickPrev),E.params.a11y&&E.a11y&&E.prevButton[t]("keydown",E.a11y.onEnterKey)),E.params.pagination&&E.params.paginationClickable&&(E.paginationContainer[t]("click","."+E.params.bulletClass,E.onClickIndex),E.params.a11y&&E.a11y&&E.paginationContainer[t]("keydown","."+E.params.bulletClass,E.a11y.onEnterKey)),(E.params.preventClicks||E.params.preventClicksPropagation)&&o[n]("click",E.preventClicks,!0)},E.attachEvents=function(){E.initEvents()},E.detachEvents=function(){E.initEvents(!0)},E.allowClick=!0,E.preventClicks=function(e){E.allowClick||(E.params.preventClicks&&e.preventDefault(),E.params.preventClicksPropagation&&E.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))},E.onClickNext=function(e){e.preventDefault(),(!E.isEnd||E.params.loop)&&E.slideNext()},E.onClickPrev=function(e){e.preventDefault(),(!E.isBeginning||E.params.loop)&&E.slidePrev()},E.onClickIndex=function(e){e.preventDefault();var t=n(this).index()*E.params.slidesPerGroup;E.params.loop&&(t+=E.loopedSlides),E.slideTo(t)},E.updateClickedSlide=function(e){var t=s(e,"."+E.params.slideClass),r=!1;if(t)for(var o=0;oE.slides.length-E.loopedSlides+E.params.slidesPerView/2?(E.fixLoop(),i=E.wrapper.children("."+E.params.slideClass+'[data-swiper-slide-index="'+a+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){E.slideTo(i)},0)):E.slideTo(i):i>E.slides.length-E.params.slidesPerView?(E.fixLoop(),i=E.wrapper.children("."+E.params.slideClass+'[data-swiper-slide-index="'+a+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){E.slideTo(i)},0)):E.slideTo(i)}else E.slideTo(i)}};var C,_,T,k,S,O,D,M,P,I,R="input, select, textarea, button",A=Date.now(),V=[];E.animating=!1,E.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0};var L,U;if(E.onTouchStart=function(e){if(e.originalEvent&&(e=e.originalEvent),L="touchstart"===e.type,L||!("which"in e)||3!==e.which){if(E.params.noSwiping&&s(e,"."+E.params.noSwipingClass))return void(E.allowClick=!0);if(!E.params.swipeHandler||s(e,E.params.swipeHandler)){var t=E.touches.currentX="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,r=E.touches.currentY="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY;if(!(E.device.ios&&E.params.iOSEdgeSwipeDetection&&t<=E.params.iOSEdgeSwipeThreshold)){if(C=!0,_=!1,T=!0,S=void 0,U=void 0,E.touches.startX=t,E.touches.startY=r,k=Date.now(),E.allowClick=!0,E.updateContainerSize(),E.swipeDirection=void 0,E.params.threshold>0&&(M=!1),"touchstart"!==e.type){var o=!0;n(e.target).is(R)&&(o=!1),document.activeElement&&n(document.activeElement).is(R)&&document.activeElement.blur(),o&&e.preventDefault()}E.emit("onTouchStart",E,e)}}}},E.onTouchMove=function(e){if(e.originalEvent&&(e=e.originalEvent),!L||"mousemove"!==e.type){if(e.preventedByNestedSwiper)return E.touches.startX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,void(E.touches.startY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY);if(E.params.onlyExternal)return E.allowClick=!1,void(C&&(E.touches.startX=E.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,E.touches.startY=E.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,k=Date.now()));if(L&&document.activeElement&&e.target===document.activeElement&&n(e.target).is(R))return _=!0,void(E.allowClick=!1);if(T&&E.emit("onTouchMove",E,e),!(e.targetTouches&&e.targetTouches.length>1)){if(E.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,E.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,"undefined"==typeof S){var t=180*Math.atan2(Math.abs(E.touches.currentY-E.touches.startY),Math.abs(E.touches.currentX-E.touches.startX))/Math.PI;S=E.isHorizontal()?t>E.params.touchAngle:90-t>E.params.touchAngle}if(S&&E.emit("onTouchMoveOpposite",E,e),"undefined"==typeof U&&E.browser.ieTouch&&(E.touches.currentX!==E.touches.startX||E.touches.currentY!==E.touches.startY)&&(U=!0),C){if(S)return void(C=!1);if(U||!E.browser.ieTouch){E.allowClick=!1,E.emit("onSliderMove",E,e),e.preventDefault(),E.params.touchMoveStopPropagation&&!E.params.nested&&e.stopPropagation(),_||(r.loop&&E.fixLoop(),D=E.getWrapperTranslate(),E.setWrapperTransition(0),E.animating&&E.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),E.params.autoplay&&E.autoplaying&&(E.params.autoplayDisableOnInteraction?E.stopAutoplay():E.pauseAutoplay()),I=!1,E.params.grabCursor&&(E.container[0].style.cursor="move",E.container[0].style.cursor="-webkit-grabbing",E.container[0].style.cursor="-moz-grabbin",E.container[0].style.cursor="grabbing")),_=!0;var o=E.touches.diff=E.isHorizontal()?E.touches.currentX-E.touches.startX:E.touches.currentY-E.touches.startY;o*=E.params.touchRatio,E.rtl&&(o=-o),E.swipeDirection=o>0?"prev":"next",O=o+D;var a=!0;if(o>0&&O>E.minTranslate()?(a=!1,E.params.resistance&&(O=E.minTranslate()-1+Math.pow(-E.minTranslate()+D+o,E.params.resistanceRatio))):0>o&&OO&&(O=D),!E.params.allowSwipeToPrev&&"prev"===E.swipeDirection&&O>D&&(O=D),E.params.followFinger){if(E.params.threshold>0){if(!(Math.abs(o)>E.params.threshold||M))return void(O=D);if(!M)return M=!0,E.touches.startX=E.touches.currentX,E.touches.startY=E.touches.currentY,O=D,void(E.touches.diff=E.isHorizontal()?E.touches.currentX-E.touches.startX:E.touches.currentY-E.touches.startY)}(E.params.freeMode||E.params.watchSlidesProgress)&&E.updateActiveIndex(),E.params.freeMode&&(0===V.length&&V.push({position:E.touches[E.isHorizontal()?"startX":"startY"],time:k}),V.push({position:E.touches[E.isHorizontal()?"currentX":"currentY"],time:(new window.Date).getTime()})),E.updateProgress(O),E.setWrapperTranslate(O)}}}}}},E.onTouchEnd=function(e){if(e.originalEvent&&(e=e.originalEvent),T&&E.emit("onTouchEnd",E,e),T=!1,C){E.params.grabCursor&&_&&C&&(E.container[0].style.cursor="move",E.container[0].style.cursor="-webkit-grab",E.container[0].style.cursor="-moz-grab",E.container[0].style.cursor="grab");var t=Date.now(),r=t-k;if(E.allowClick&&(E.updateClickedSlide(e),E.emit("onTap",E,e),300>r&&t-A>300&&(P&&clearTimeout(P),P=setTimeout(function(){E&&(E.params.paginationHide&&E.paginationContainer.length>0&&!n(e.target).hasClass(E.params.bulletClass)&&E.paginationContainer.toggleClass(E.params.paginationHiddenClass),E.emit("onClick",E,e))},300)),300>r&&300>t-A&&(P&&clearTimeout(P),E.emit("onDoubleTap",E,e))),A=Date.now(),setTimeout(function(){E&&(E.allowClick=!0)},0),!C||!_||!E.swipeDirection||0===E.touches.diff||O===D)return void(C=_=!1);C=_=!1;var o;if(o=E.params.followFinger?E.rtl?E.translate:-E.translate:-O,E.params.freeMode){if(o<-E.minTranslate())return void E.slideTo(E.activeIndex);if(o>-E.maxTranslate())return void(E.slides.length1){var a=V.pop(),i=V.pop(),s=a.position-i.position,l=a.time-i.time;E.velocity=s/l,E.velocity=E.velocity/2,Math.abs(E.velocity)150||(new window.Date).getTime()-a.time>300)&&(E.velocity=0)}else E.velocity=0;V.length=0;var u=1e3*E.params.freeModeMomentumRatio,p=E.velocity*u,c=E.translate+p;E.rtl&&(c=-c);var d,f=!1,h=20*Math.abs(E.velocity)*E.params.freeModeMomentumBounceRatio;if(cE.minTranslate())E.params.freeModeMomentumBounce?(c-E.minTranslate()>h&&(c=E.minTranslate()+h),d=E.minTranslate(),f=!0,I=!0):c=E.minTranslate();else if(E.params.freeModeSticky){var m,v=0;for(v=0;v-c){m=v;break}c=Math.abs(E.snapGrid[m]-c)=E.params.longSwipesMs)&&(E.updateProgress(),E.updateActiveIndex()))}var g,y=0,b=E.slidesSizesGrid[0];for(g=0;g=E.slidesGrid[g]&&o=E.slidesGrid[g]&&(y=g,b=E.slidesGrid[E.slidesGrid.length-1]-E.slidesGrid[E.slidesGrid.length-2]);var w=(o-E.slidesGrid[y])/b;if(r>E.params.longSwipesMs){if(!E.params.longSwipes)return void E.slideTo(E.activeIndex);"next"===E.swipeDirection&&(w>=E.params.longSwipesRatio?E.slideTo(y+E.params.slidesPerGroup):E.slideTo(y)),"prev"===E.swipeDirection&&(w>1-E.params.longSwipesRatio?E.slideTo(y+E.params.slidesPerGroup):E.slideTo(y))}else{if(!E.params.shortSwipes)return void E.slideTo(E.activeIndex);"next"===E.swipeDirection&&E.slideTo(y+E.params.slidesPerGroup),"prev"===E.swipeDirection&&E.slideTo(y)}}},E._slideTo=function(e,t){return E.slideTo(e,t,!0,!0)},E.slideTo=function(e,t,n,r){"undefined"==typeof n&&(n=!0),"undefined"==typeof e&&(e=0),0>e&&(e=0),E.snapIndex=Math.floor(e/E.params.slidesPerGroup),E.snapIndex>=E.snapGrid.length&&(E.snapIndex=E.snapGrid.length-1);var o=-E.snapGrid[E.snapIndex];E.params.autoplay&&E.autoplaying&&(r||!E.params.autoplayDisableOnInteraction?E.pauseAutoplay(t):E.stopAutoplay()),E.updateProgress(o);for(var a=0;a=Math.floor(100*E.slidesGrid[a])&&(e=a);return!(!E.params.allowSwipeToNext&&oE.translate&&o>E.maxTranslate()&&(E.activeIndex||0)!==e)&&("undefined"==typeof t&&(t=E.params.speed),E.previousIndex=E.activeIndex||0,E.activeIndex=e,E.rtl&&-o===E.translate||!E.rtl&&o===E.translate?(E.params.autoHeight&&E.updateAutoHeight(),E.updateClasses(),"slide"!==E.params.effect&&E.setWrapperTranslate(o),!1):(E.updateClasses(),E.onTransitionStart(n),0===t?(E.setWrapperTranslate(o),E.setWrapperTransition(0),E.onTransitionEnd(n)):(E.setWrapperTranslate(o),E.setWrapperTransition(t),E.animating||(E.animating=!0,E.wrapper.transitionEnd(function(){E&&E.onTransitionEnd(n)}))),!0)))},E.onTransitionStart=function(e){"undefined"==typeof e&&(e=!0),E.params.autoHeight&&E.updateAutoHeight(),E.lazy&&E.lazy.onTransitionStart(),e&&(E.emit("onTransitionStart",E),E.activeIndex!==E.previousIndex&&(E.emit("onSlideChangeStart",E),E.activeIndex>E.previousIndex?E.emit("onSlideNextStart",E):E.emit("onSlidePrevStart",E)))},E.onTransitionEnd=function(e){E.animating=!1,E.setWrapperTransition(0),"undefined"==typeof e&&(e=!0),E.lazy&&E.lazy.onTransitionEnd(),e&&(E.emit("onTransitionEnd",E),E.activeIndex!==E.previousIndex&&(E.emit("onSlideChangeEnd",E),E.activeIndex>E.previousIndex?E.emit("onSlideNextEnd",E):E.emit("onSlidePrevEnd",E))),E.params.hashnav&&E.hashnav&&E.hashnav.setHash()},E.slideNext=function(e,t,n){return E.params.loop?!E.animating&&(E.fixLoop(),E.container[0].clientLeft,E.slideTo(E.activeIndex+E.params.slidesPerGroup,t,e,n)):E.slideTo(E.activeIndex+E.params.slidesPerGroup,t,e,n)},E._slideNext=function(e){return E.slideNext(!0,e,!0)},E.slidePrev=function(e,t,n){return E.params.loop?!E.animating&&(E.fixLoop(),E.container[0].clientLeft,E.slideTo(E.activeIndex-1,t,e,n)):E.slideTo(E.activeIndex-1,t,e,n)},E._slidePrev=function(e){return E.slidePrev(!0,e,!0)},E.slideReset=function(e,t,n){return E.slideTo(E.activeIndex,t,e)},E.setWrapperTransition=function(e,t){E.wrapper.transition(e),"slide"!==E.params.effect&&E.effects[E.params.effect]&&E.effects[E.params.effect].setTransition(e),E.params.parallax&&E.parallax&&E.parallax.setTransition(e),E.params.scrollbar&&E.scrollbar&&E.scrollbar.setTransition(e),E.params.control&&E.controller&&E.controller.setTransition(e,t),E.emit("onSetTransition",E,e)},E.setWrapperTranslate=function(e,t,n){var r=0,o=0,i=0;E.isHorizontal()?r=E.rtl?-e:e:o=e,E.params.roundLengths&&(r=a(r),o=a(o)),E.params.virtualTranslate||(E.support.transforms3d?E.wrapper.transform("translate3d("+r+"px, "+o+"px, "+i+"px)"):E.wrapper.transform("translate("+r+"px, "+o+"px)")),E.translate=E.isHorizontal()?r:o;var s,l=E.maxTranslate()-E.minTranslate();s=0===l?0:(e-E.minTranslate())/l,s!==E.progress&&E.updateProgress(e),t&&E.updateActiveIndex(),"slide"!==E.params.effect&&E.effects[E.params.effect]&&E.effects[E.params.effect].setTranslate(E.translate),E.params.parallax&&E.parallax&&E.parallax.setTranslate(E.translate),E.params.scrollbar&&E.scrollbar&&E.scrollbar.setTranslate(E.translate),E.params.control&&E.controller&&E.controller.setTranslate(E.translate,n),E.emit("onSetTranslate",E,E.translate)},E.getTranslate=function(e,t){var n,r,o,a;return"undefined"==typeof t&&(t="x"),E.params.virtualTranslate?E.rtl?-E.translate:E.translate:(o=window.getComputedStyle(e,null),window.WebKitCSSMatrix?(r=o.transform||o.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),a=new window.WebKitCSSMatrix("none"===r?"":r)):(a=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=a.toString().split(",")),"x"===t&&(r=window.WebKitCSSMatrix?a.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(r=window.WebKitCSSMatrix?a.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),E.rtl&&r&&(r=-r),r||0)},E.getWrapperTranslate=function(e){return"undefined"==typeof e&&(e=E.isHorizontal()?"x":"y"),E.getTranslate(E.wrapper[0],e)},E.observers=[],E.initObservers=function(){if(E.params.observeParents)for(var e=E.container.parents(),t=0;te.length&&(E.loopedSlides=e.length);var t,r=[],o=[];for(e.each(function(t,a){var i=n(this);t=e.length-E.loopedSlides&&r.push(a),i.attr("data-swiper-slide-index",t)}),t=0;t=0;t--)E.wrapper.prepend(n(r[t].cloneNode(!0)).addClass(E.params.slideDuplicateClass))},E.destroyLoop=function(){E.wrapper.children("."+E.params.slideClass+"."+E.params.slideDuplicateClass).remove(),E.slides.removeAttr("data-swiper-slide-index")},E.reLoop=function(e){var t=E.activeIndex-E.loopedSlides;E.destroyLoop(),E.createLoop(),E.updateSlidesSize(),e&&E.slideTo(t+E.loopedSlides,0,!1)},E.fixLoop=function(){var e;E.activeIndex=2*E.loopedSlides||E.activeIndex>E.slides.length-2*E.params.slidesPerView)&&(e=-E.slides.length+E.activeIndex+E.loopedSlides,e+=E.loopedSlides,E.slideTo(e,0,!1,!0))},E.appendSlide=function(e){if(E.params.loop&&E.destroyLoop(),"object"==("undefined"==typeof e?"undefined":t(e))&&e.length)for(var n=0;nn&&r--;r=Math.max(r,0)}else n=e,E.slides[n]&&E.slides.eq(n).remove(),r>n&&r--,r=Math.max(r,0);E.params.loop&&E.createLoop(),E.params.observer&&E.support.observer||E.update(!0),E.params.loop?E.slideTo(r+E.loopedSlides,0,!1):E.slideTo(r,0,!1)},E.removeAllSlides=function(){for(var e=[],t=0;t'),t.append(p)),0===c.length&&(c=n('
'),t.append(c)),p.length&&(p[0].style.opacity=Math.max(-r,0)),c.length&&(c[0].style.opacity=Math.max(r,0))}t.transform("translate3d("+l+"px, "+u+"px, 0px) rotateX("+s+"deg) rotateY("+i+"deg)")}},setTransition:function(e){if(E.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),E.params.virtualTranslate&&0!==e){var t=!1;E.slides.eq(E.activeIndex).transitionEnd(function(){if(!t&&E&&n(this).hasClass(E.params.slideActiveClass)){t=!0,E.animating=!1;for(var e=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],r=0;r'),E.wrapper.append(e)),e.css({height:E.width+"px"})):(e=E.container.find(".swiper-cube-shadow"),0===e.length&&(e=n('
'),E.container.append(e))));for(var r=0;r=s&&s>-1&&(t=90*r+90*s,E.rtl&&(t=90*-r-90*s)),o.transform(c),E.params.cube.slideShadows){var d=E.isHorizontal()?o.find(".swiper-slide-shadow-left"):o.find(".swiper-slide-shadow-top"),f=E.isHorizontal()?o.find(".swiper-slide-shadow-right"):o.find(".swiper-slide-shadow-bottom");0===d.length&&(d=n('
'),o.append(d)),0===f.length&&(f=n('
'),o.append(f)),d.length&&(d[0].style.opacity=Math.max(-s,0)),f.length&&(f[0].style.opacity=Math.max(s,0))}}if(E.wrapper.css({"-webkit-transform-origin":"50% 50% -"+E.size/2+"px","-moz-transform-origin":"50% 50% -"+E.size/2+"px","-ms-transform-origin":"50% 50% -"+E.size/2+"px","transform-origin":"50% 50% -"+E.size/2+"px"}),E.params.cube.shadow)if(E.isHorizontal())e.transform("translate3d(0px, "+(E.width/2+E.params.cube.shadowOffset)+"px, "+-E.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+E.params.cube.shadowScale+")");else{var h=Math.abs(t)-90*Math.floor(Math.abs(t)/90),m=1.5-(Math.sin(2*h*Math.PI/360)/2+Math.cos(2*h*Math.PI/360)/2),v=E.params.cube.shadowScale,g=E.params.cube.shadowScale/m,y=E.params.cube.shadowOffset;e.transform("scale3d("+v+", 1, "+g+") translate3d(0px, "+(E.height/2+y)+"px, "+-E.height/2/g+"px) rotateX(-90deg)")}var b=E.isSafari||E.isUiWebView?-E.size/2:0;E.wrapper.transform("translate3d(0px,0,"+b+"px) rotateX("+(E.isHorizontal()?0:t)+"deg) rotateY("+(E.isHorizontal()?-t:0)+"deg)")},setTransition:function(e){E.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),E.params.cube.shadow&&!E.isHorizontal()&&E.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{setTranslate:function(){for(var e=E.translate,t=E.isHorizontal()?-e+E.width/2:-e+E.height/2,r=E.isHorizontal()?E.params.coverflow.rotate:-E.params.coverflow.rotate,o=E.params.coverflow.depth,a=0,i=E.slides.length;i>a;a++){var s=E.slides.eq(a),l=E.slidesSizesGrid[a],u=s[0].swiperSlideOffset,p=(t-u-l/2)/l*E.params.coverflow.modifier,c=E.isHorizontal()?r*p:0,d=E.isHorizontal()?0:r*p,f=-o*Math.abs(p),h=E.isHorizontal()?0:E.params.coverflow.stretch*p,m=E.isHorizontal()?E.params.coverflow.stretch*p:0;Math.abs(m)<.001&&(m=0),Math.abs(h)<.001&&(h=0),Math.abs(f)<.001&&(f=0),Math.abs(c)<.001&&(c=0),Math.abs(d)<.001&&(d=0);var v="translate3d("+m+"px,"+h+"px,"+f+"px) rotateX("+d+"deg) rotateY("+c+"deg)";if(s.transform(v),s[0].style.zIndex=-Math.abs(Math.round(p))+1,E.params.coverflow.slideShadows){var g=E.isHorizontal()?s.find(".swiper-slide-shadow-left"):s.find(".swiper-slide-shadow-top"),y=E.isHorizontal()?s.find(".swiper-slide-shadow-right"):s.find(".swiper-slide-shadow-bottom");0===g.length&&(g=n('
'),s.append(g)),0===y.length&&(y=n('
'),s.append(y)),g.length&&(g[0].style.opacity=p>0?p:0),y.length&&(y[0].style.opacity=-p>0?-p:0)}}if(E.browser.ie){var b=E.wrapper[0].style;b.perspectiveOrigin=t+"px 50%"}},setTransition:function(e){E.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},E.lazy={initialImageLoaded:!1,loadImageInSlide:function(e,t){if("undefined"!=typeof e&&("undefined"==typeof t&&(t=!0),0!==E.slides.length)){var r=E.slides.eq(e),o=r.find(".swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");!r.hasClass("swiper-lazy")||r.hasClass("swiper-lazy-loaded")||r.hasClass("swiper-lazy-loading")||(o=o.add(r[0])),0!==o.length&&o.each(function(){var e=n(this);e.addClass("swiper-lazy-loading");var o=e.attr("data-background"),a=e.attr("data-src"),i=e.attr("data-srcset");E.loadImage(e[0],a||o,i,!1,function(){if(o?(e.css("background-image",'url("'+o+'")'),e.removeAttr("data-background")):(i&&(e.attr("srcset",i),e.removeAttr("data-srcset")),a&&(e.attr("src",a),e.removeAttr("data-src"))),e.addClass("swiper-lazy-loaded").removeClass("swiper-lazy-loading"),r.find(".swiper-lazy-preloader, .preloader").remove(),E.params.loop&&t){var n=r.attr("data-swiper-slide-index");if(r.hasClass(E.params.slideDuplicateClass)){var s=E.wrapper.children('[data-swiper-slide-index="'+n+'"]:not(.'+E.params.slideDuplicateClass+")");E.lazy.loadImageInSlide(s.index(),!1)}else{var l=E.wrapper.children("."+E.params.slideDuplicateClass+'[data-swiper-slide-index="'+n+'"]');E.lazy.loadImageInSlide(l.index(),!1)}}E.emit("onLazyImageReady",E,r[0],e[0])}),E.emit("onLazyImageLoad",E,r[0],e[0])})}},load:function(){var e;if(E.params.watchSlidesVisibility)E.wrapper.children("."+E.params.slideVisibleClass).each(function(){E.lazy.loadImageInSlide(n(this).index())});else if(E.params.slidesPerView>1)for(e=E.activeIndex;e1||E.params.lazyLoadingInPrevNextAmount&&E.params.lazyLoadingInPrevNextAmount>1){var t=E.params.lazyLoadingInPrevNextAmount,r=E.params.slidesPerView,o=Math.min(E.activeIndex+r+Math.max(t,r),E.slides.length),a=Math.max(E.activeIndex-Math.max(r,t),0);for(e=E.activeIndex+E.params.slidesPerView;o>e;e++)E.slides[e]&&E.lazy.loadImageInSlide(e);for(e=a;e0&&E.lazy.loadImageInSlide(i.index());var s=E.wrapper.children("."+E.params.slidePrevClass);s.length>0&&E.lazy.loadImageInSlide(s.index())}},onTransitionStart:function(){E.params.lazyLoading&&(E.params.lazyLoadingOnTransitionStart||!E.params.lazyLoadingOnTransitionStart&&!E.lazy.initialImageLoaded)&&E.lazy.load()},onTransitionEnd:function(){E.params.lazyLoading&&!E.params.lazyLoadingOnTransitionStart&&E.lazy.load()}},E.scrollbar={isTouched:!1,setDragPosition:function(e){var t=E.scrollbar,n=E.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY,r=n-t.track.offset()[E.isHorizontal()?"left":"top"]-t.dragSize/2,o=-E.minTranslate()*t.moveDivider,a=-E.maxTranslate()*t.moveDivider;o>r?r=o:r>a&&(r=a),r=-r/t.moveDivider,E.updateProgress(r),E.setWrapperTranslate(r,!0)},dragStart:function(e){ -var t=E.scrollbar;t.isTouched=!0,e.preventDefault(),e.stopPropagation(),t.setDragPosition(e),clearTimeout(t.dragTimeout),t.track.transition(0),E.params.scrollbarHide&&t.track.css("opacity",1),E.wrapper.transition(100),t.drag.transition(100),E.emit("onScrollbarDragStart",E)},dragMove:function(e){var t=E.scrollbar;t.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),E.wrapper.transition(0),t.track.transition(0),t.drag.transition(0),E.emit("onScrollbarDragMove",E))},dragEnd:function(e){var t=E.scrollbar;t.isTouched&&(t.isTouched=!1,E.params.scrollbarHide&&(clearTimeout(t.dragTimeout),t.dragTimeout=setTimeout(function(){t.track.css("opacity",0),t.track.transition(400)},1e3)),E.emit("onScrollbarDragEnd",E),E.params.scrollbarSnapOnRelease&&E.slideReset())},enableDraggable:function(){var e=E.scrollbar,t=E.support.touch?e.track:document;n(e.track).on(E.touchEvents.start,e.dragStart),n(t).on(E.touchEvents.move,e.dragMove),n(t).on(E.touchEvents.end,e.dragEnd)},disableDraggable:function(){var e=E.scrollbar,t=E.support.touch?e.track:document;n(e.track).off(E.touchEvents.start,e.dragStart),n(t).off(E.touchEvents.move,e.dragMove),n(t).off(E.touchEvents.end,e.dragEnd)},set:function(){if(E.params.scrollbar){var e=E.scrollbar;e.track=n(E.params.scrollbar),E.params.uniqueNavElements&&"string"==typeof E.params.scrollbar&&e.track.length>1&&1===E.container.find(E.params.scrollbar).length&&(e.track=E.container.find(E.params.scrollbar)),e.drag=e.track.find(".swiper-scrollbar-drag"),0===e.drag.length&&(e.drag=n('
'),e.track.append(e.drag)),e.drag[0].style.width="",e.drag[0].style.height="",e.trackSize=E.isHorizontal()?e.track[0].offsetWidth:e.track[0].offsetHeight,e.divider=E.size/E.virtualSize,e.moveDivider=e.divider*(e.trackSize/E.size),e.dragSize=e.trackSize*e.divider,E.isHorizontal()?e.drag[0].style.width=e.dragSize+"px":e.drag[0].style.height=e.dragSize+"px",e.divider>=1?e.track[0].style.display="none":e.track[0].style.display="",E.params.scrollbarHide&&(e.track[0].style.opacity=0)}},setTranslate:function(){if(E.params.scrollbar){var e,t=E.scrollbar,n=(E.translate||0,t.dragSize);e=(t.trackSize-t.dragSize)*E.progress,E.rtl&&E.isHorizontal()?(e=-e,e>0?(n=t.dragSize-e,e=0):-e+t.dragSize>t.trackSize&&(n=t.trackSize+e)):0>e?(n=t.dragSize+e,e=0):e+t.dragSize>t.trackSize&&(n=t.trackSize-e),E.isHorizontal()?(E.support.transforms3d?t.drag.transform("translate3d("+e+"px, 0, 0)"):t.drag.transform("translateX("+e+"px)"),t.drag[0].style.width=n+"px"):(E.support.transforms3d?t.drag.transform("translate3d(0px, "+e+"px, 0)"):t.drag.transform("translateY("+e+"px)"),t.drag[0].style.height=n+"px"),E.params.scrollbarHide&&(clearTimeout(t.timeout),t.track[0].style.opacity=1,t.timeout=setTimeout(function(){t.track[0].style.opacity=0,t.track.transition(400)},1e3))}},setTransition:function(e){E.params.scrollbar&&E.scrollbar.drag.transition(e)}},E.controller={LinearSpline:function(e,t){this.x=e,this.y=t,this.lastIndex=e.length-1;var n,r;this.x.length,this.interpolate=function(e){return e?(r=o(this.x,e),n=r-1,(e-this.x[n])*(this.y[r]-this.y[n])/(this.x[r]-this.x[n])+this.y[n]):0};var o=function(){var e,t,n;return function(r,o){for(t=-1,e=r.length;e-t>1;)r[n=e+t>>1]<=o?t=n:e=n;return e}}()},getInterpolateFunction:function(e){E.controller.spline||(E.controller.spline=E.params.loop?new E.controller.LinearSpline(E.slidesGrid,e.slidesGrid):new E.controller.LinearSpline(E.snapGrid,e.snapGrid))},setTranslate:function(e,t){function n(t){e=t.rtl&&"horizontal"===t.params.direction?-E.translate:E.translate,"slide"===E.params.controlBy&&(E.controller.getInterpolateFunction(t),o=-E.controller.spline.interpolate(-e)),o&&"container"!==E.params.controlBy||(r=(t.maxTranslate()-t.minTranslate())/(E.maxTranslate()-E.minTranslate()),o=(e-E.minTranslate())*r+t.minTranslate()),E.params.controlInverse&&(o=t.maxTranslate()-o),t.updateProgress(o),t.setWrapperTranslate(o,!1,E),t.updateActiveIndex()}var r,o,a=E.params.control;if(E.isArray(a))for(var i=0;in;n++){var o=E.slides.eq(n),a=o.attr("data-hash");if(a===e&&!o.hasClass(E.params.slideDuplicateClass)){var i=o.index();E.slideTo(i,t,E.params.runCallbacksOnInit,!0)}}}},setHash:function(){E.hashnav.initialized&&E.params.hashnav&&(document.location.hash=E.slides.eq(E.activeIndex).attr("data-hash")||"")}},E.disableKeyboardControl=function(){E.params.keyboardControl=!1,n(document).off("keydown",p)},E.enableKeyboardControl=function(){E.params.keyboardControl=!0,n(document).on("keydown",p)},E.mousewheel={event:!1,lastScrollTime:(new window.Date).getTime()},E.params.mousewheelControl){try{new window.WheelEvent("wheel"),E.mousewheel.event="wheel"}catch(z){(window.WheelEvent||E.container[0]&&"wheel"in E.container[0])&&(E.mousewheel.event="wheel")}!E.mousewheel.event&&window.WheelEvent,E.mousewheel.event||void 0===document.onmousewheel||(E.mousewheel.event="mousewheel"),E.mousewheel.event||(E.mousewheel.event="DOMMouseScroll")}E.disableMousewheelControl=function(){return!!E.mousewheel.event&&(E.container.off(E.mousewheel.event,c),!0)},E.enableMousewheelControl=function(){return!!E.mousewheel.event&&(E.container.on(E.mousewheel.event,c),!0)},E.parallax={setTranslate:function(){E.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){d(this,E.progress)}),E.slides.each(function(){var e=n(this);e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=Math.min(Math.max(e[0].progress,-1),1);d(this,t)})})},setTransition:function(e){"undefined"==typeof e&&(e=E.params.speed),E.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=n(this),r=parseInt(t.attr("data-swiper-parallax-duration"),10)||e;0===e&&(r=0),t.transition(r)})}},E._plugins=[];for(var B in E.plugins){var F=E.plugins[B](E,E.params[B]);F&&E._plugins.push(F)}return E.callPlugins=function(e){for(var t=0;t'),notify:function(e){var t=E.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},init:function(){E.params.nextButton&&E.nextButton&&E.nextButton.length>0&&(E.a11y.makeFocusable(E.nextButton),E.a11y.addRole(E.nextButton,"button"),E.a11y.addLabel(E.nextButton,E.params.nextSlideMessage)),E.params.prevButton&&E.prevButton&&E.prevButton.length>0&&(E.a11y.makeFocusable(E.prevButton),E.a11y.addRole(E.prevButton,"button"),E.a11y.addLabel(E.prevButton,E.params.prevSlideMessage)),n(E.container).append(E.a11y.liveRegion)},initPagination:function(){E.params.pagination&&E.params.paginationClickable&&E.bullets&&E.bullets.length&&E.bullets.each(function(){var e=n(this);E.a11y.makeFocusable(e),E.a11y.addRole(e,"button"),E.a11y.addLabel(e,E.params.paginationBulletMessage.replace(/{{index}}/,e.index()+1))})},destroy:function(){E.a11y.liveRegion&&E.a11y.liveRegion.length>0&&E.a11y.liveRegion.remove()}},E.init=function(){E.params.loop&&E.createLoop(),E.updateContainerSize(),E.updateSlidesSize(),E.updatePagination(),E.params.scrollbar&&E.scrollbar&&(E.scrollbar.set(),E.params.scrollbarDraggable&&E.scrollbar.enableDraggable()),"slide"!==E.params.effect&&E.effects[E.params.effect]&&(E.params.loop||E.updateProgress(),E.effects[E.params.effect].setTranslate()),E.params.loop?E.slideTo(E.params.initialSlide+E.loopedSlides,0,E.params.runCallbacksOnInit):(E.slideTo(E.params.initialSlide,0,E.params.runCallbacksOnInit),0===E.params.initialSlide&&(E.parallax&&E.params.parallax&&E.parallax.setTranslate(),E.lazy&&E.params.lazyLoading&&(E.lazy.load(),E.lazy.initialImageLoaded=!0))),E.attachEvents(),E.params.observer&&E.support.observer&&E.initObservers(),E.params.preloadImages&&!E.params.lazyLoading&&E.preloadImages(),E.params.autoplay&&E.startAutoplay(),E.params.keyboardControl&&E.enableKeyboardControl&&E.enableKeyboardControl(),E.params.mousewheelControl&&E.enableMousewheelControl&&E.enableMousewheelControl(),E.params.hashnav&&E.hashnav&&E.hashnav.init(),E.params.a11y&&E.a11y&&E.a11y.init(),E.emit("onInit",E)},E.cleanupStyles=function(){E.container.removeClass(E.classNames.join(" ")).removeAttr("style"),E.wrapper.removeAttr("style"),E.slides&&E.slides.length&&E.slides.removeClass([E.params.slideVisibleClass,E.params.slideActiveClass,E.params.slideNextClass,E.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"),E.paginationContainer&&E.paginationContainer.length&&E.paginationContainer.removeClass(E.params.paginationHiddenClass),E.bullets&&E.bullets.length&&E.bullets.removeClass(E.params.bulletActiveClass),E.params.prevButton&&n(E.params.prevButton).removeClass(E.params.buttonDisabledClass),E.params.nextButton&&n(E.params.nextButton).removeClass(E.params.buttonDisabledClass),E.params.scrollbar&&E.scrollbar&&(E.scrollbar.track&&E.scrollbar.track.length&&E.scrollbar.track.removeAttr("style"),E.scrollbar.drag&&E.scrollbar.drag.length&&E.scrollbar.drag.removeAttr("style"))},E.destroy=function(e,t){E.detachEvents(),E.stopAutoplay(),E.params.scrollbar&&E.scrollbar&&E.params.scrollbarDraggable&&E.scrollbar.disableDraggable(),E.params.loop&&E.destroyLoop(),t&&E.cleanupStyles(),E.disconnectObservers(),E.params.keyboardControl&&E.disableKeyboardControl&&E.disableKeyboardControl(),E.params.mousewheelControl&&E.disableMousewheelControl&&E.disableMousewheelControl(),E.params.a11y&&E.a11y&&E.a11y.destroy(),E.emit("onDestroy"),e!==!1&&(E=null)},E.init(),E}};r.prototype={isSafari:function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,ieTouch:window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>1||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>1},device:function(){var e=navigator.userAgent,t=e.match(/(Android);?[\s\/]+([\d.]+)?/),n=e.match(/(iPad).*OS\s([\d_]+)/),r=e.match(/(iPod)(.*OS\s([\d_]+))?/),o=!n&&e.match(/(iPhone\sOS)\s([\d_]+)/);return{ios:n||o||r,android:t}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var e=document.createElement("div").style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=document.createElement("div").style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),n=0;n=0&&s.indexOf(">")>=0){var l="div";for(0===s.indexOf(":~]/)?(n||document).querySelectorAll(t):[document.getElementById(t.split("#")[1])],o=0;o0&&t[0].nodeType)for(o=0;o0?parseFloat(this.css("width")):null},outerWidth:function(e){return this.length>0?e?this[0].offsetWidth+parseFloat(this.css("margin-right"))+parseFloat(this.css("margin-left")):this[0].offsetWidth:null},height:function(){return this[0]===window?window.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(e){return this.length>0?e?this[0].offsetHeight+parseFloat(this.css("margin-top"))+parseFloat(this.css("margin-bottom")):this[0].offsetHeight:null},offset:function(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),n=document.body,r=e.clientTop||n.clientTop||0,o=e.clientLeft||n.clientLeft||0,a=window.pageYOffset||e.scrollTop,i=window.pageXOffset||e.scrollLeft;return{top:t.top+a-r,left:t.left+i-o}}return null},css:function(e,t){var n;if(1===arguments.length){if("string"!=typeof e){for(n=0;nr-1?new e([]):0>t?(n=r+t,new e(0>n?[]:[this[n]])):new e([this[t]])},append:function(t){var n,r;for(n=0;n=0;r--)this[n].insertBefore(o.childNodes[r],this[n].childNodes[0])}else if(t instanceof e)for(r=0;r1)for(var o=0;o1)for(var o=0;o0?n?this[0].nextElementSibling&&t(this[0].nextElementSibling).is(n)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])},nextAll:function(n){var r=[],o=this[0];if(!o)return new e([]);for(;o.nextElementSibling;){var a=o.nextElementSibling;n?t(a).is(n)&&r.push(a):r.push(a),o=a}return new e(r)},prev:function(n){return new e(this.length>0?n?this[0].previousElementSibling&&t(this[0].previousElementSibling).is(n)?[this[0].previousElementSibling]:[]:this[0].previousElementSibling?[this[0].previousElementSibling]:[]:[])},prevAll:function(n){var r=[],o=this[0];if(!o)return new e([]);for(;o.previousElementSibling;){var a=o.previousElementSibling;n?t(a).is(n)&&r.push(a):r.push(a),o=a}return new e(r)},parent:function(e){for(var n=[],r=0;r1?s-1:0),u=1;u must be an array if `multiple` is true.%s",i,o(r)):void 0:"production"!==t.env.NODE_ENV?f(!Array.isArray(n[i]),"The `%s` prop supplied to