guang.star.js
227 KB
!function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)}([function(e,t,i){function n(e,t,i){var n=e.find(t),r=e.find(i);n[0].mlellipsis(2),r[0].mlellipsis(3)}function r(e){var t=new Image,i="";i=e.data("avatar"),i&&(t.src=i),t.onload=function(){e.css("background-image","url("+i+")")}}function s(){var e,t=u("#yoho-header").outerHeight(),i=u(".loading-tip"),s=u(".avatar-wrap"),d=u(".avatar").height(),f=u(".star-info").css("margin-top");e=new v(".star-wrap",{height:u(window).height()-t-d-2*parseInt(f),pullDown:function(){b||(b=!0,a&&(a.destroy(!0,!0),a=""),l())}}),e.iScroll.on("scrollStart",function(){-1===this.directionY&&(x.slideDown(),i.slideDown())}),e.iScroll.on("scroll",function(){t>s.offset().top&&(u(".avatar-clone").show(),a||(a=new h(".avatar-0",{loop:!0,initialSlide:u(".avatar-1").find(".swiper-slide-active").index(),centeredSlides:!0,slidesPerView:"auto",loopedSlides:c,spaceBetween:10,slidesOffsetBefore:-u(".swiper-num").width(),watchSlidesProgress:!0,watchSlidesVisibility:!0}),a.params.control=o,o.params.control=a)),Math.abs(this.startY)<u(".banner-top").height()+d+u(".head-tab").height()&&u(".avatar-clone").hide()}),e.iScroll.on("scrollEnd",function(){1===this.directionY&&x.slideUp(1e3),i.slideUp()}),u(".avatar").each(function(e,t){u(t).addClass("avatar-"+e)}),u(".banner-swiper").find("li").length>1&&new h(".banner-swiper",{lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!1,paginationClickable:!0,slideElement:"li",pagination:".banner-top .pagination-inner"}),c>1&&(o=new h(".avatar-1",{loop:!0,centeredSlides:!0,slidesPerView:"auto",loopedSlides:c,spaceBetween:10,slidesOffsetBefore:-u(".swiper-num").width(),watchSlidesProgress:!0,watchSlidesVisibility:!0})),u(".article-avatar-swiper").find("li").length>1&&new h(".article-avatar-swiper",{initialSlide:0,lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:5e3}),u(".star-info").find("li").length>0&&w.each(function(e,t){n(u(t),".article-title","p")}),u(".avatar-swiper li").on("click",function(){u(this).hasClass("swiper-slide-active")?location.href=u(this).find("span").data("url"):(p=u(this).index(),p>=2*c+1?(a&&a.slideTo(c+1,0),o.slideTo(c+1,0)):c-1>=p?(a&&a.slideTo(2*c-1,0),o.slideTo(2*c-1,0)):(a&&a.slideTo(p,0),o.slideTo(p,0)))}),u(".rank-avatar").each(function(e,t){""!==u(t).attr("data-avatar")&&r(u(t))})}var o,a,l,p,c,u=i(2),h=i(3),d=i(11),f=i(4),m=i(14),g=i(12),v=i(16),y=u(window),w=u(".star-article"),x=u(".head-tab"),b=!1;i(8),f(u("img.lazy")),m.init(),y.on("mousewheel",!1),(l=function(){var e=u(".star-main");g.showLoadingMask(),u.ajax({url:"/guang/star/getIndexHtml",dataType:"html",success:function(t){b=!1,t||(b=!0,d.show("没有更多内容了")),e.html(t),c=u(".avatar .swiper-slide").length,u(".avatar-clone")&&u(".avatar-clone").remove(),u(".avatar li").each(function(){r(u(this).find("span"))}),e.before(u(".avatar-swiper").clone().addClass("avatar-clone").hide()),u(".cont-area").each(function(){n(u(this),".title",".cont-txt")}),g.hideLoadingMask(),f(u("img.lazy")),setTimeout(function(){s()},100)},error:function(){d.show("网络断开连接了~")}})})()},,function(e,t,i){var n,r;/*!
* jQuery JavaScript Library v2.2.4
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-05-20T17:23Z
*/
!function(t,i){"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return i(e)}:i(t)}("undefined"!=typeof window?window:this,function(i,s){function o(e){var t=!!e&&"length"in e&&e.length,i=pe.type(e);return"function"===i||pe.isWindow(e)?!1:"array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e}function a(e,t,i){if(pe.isFunction(t))return pe.grep(e,function(e,n){return!!t.call(e,n,e)!==i});if(t.nodeType)return pe.grep(e,function(e){return e===t!==i});if("string"==typeof t){if(we.test(t))return pe.filter(t,e,i);t=pe.filter(t,e)}return pe.grep(e,function(e){return ne.call(t,e)>-1!==i})}function l(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function p(e){var t={};return pe.each(e.match(Ee)||[],function(e,i){t[i]=!0}),t}function c(){J.removeEventListener("DOMContentLoaded",c),i.removeEventListener("load",c),pe.ready()}function u(){this.expando=pe.expando+u.uid++}function h(e,t,i){var n;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(Le,"-$&").toLowerCase(),i=e.getAttribute(n),"string"==typeof i){try{i="true"===i?!0:"false"===i?!1:"null"===i?null:+i+""===i?+i:Me.test(i)?pe.parseJSON(i):i}catch(r){}ze.set(e,t,i)}else i=void 0;return i}function d(e,t,i,n){var r,s=1,o=20,a=n?function(){return n.cur()}:function(){return pe.css(e,t,"")},l=a(),p=i&&i[3]||(pe.cssNumber[t]?"":"px"),c=(pe.cssNumber[t]||"px"!==p&&+l)&&Ne.exec(pe.css(e,t));if(c&&c[3]!==p){p=p||c[3],i=i||[],c=+l||1;do s=s||".5",c/=s,pe.style(e,t,c+p);while(s!==(s=a()/l)&&1!==s&&--o)}return i&&(c=+c||+l||0,r=i[1]?c+(i[1]+1)*i[2]:+i[2],n&&(n.unit=p,n.start=c,n.end=r)),r}function f(e,t){var i="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&pe.nodeName(e,t)?pe.merge([e],i):i}function m(e,t){for(var i=0,n=e.length;n>i;i++)De.set(e[i],"globalEval",!t||De.get(t[i],"globalEval"))}function g(e,t,i,n,r){for(var s,o,a,l,p,c,u=t.createDocumentFragment(),h=[],d=0,g=e.length;g>d;d++)if(s=e[d],s||0===s)if("object"===pe.type(s))pe.merge(h,s.nodeType?[s]:s);else if(Re.test(s)){for(o=o||u.appendChild(t.createElement("div")),a=(Oe.exec(s)||["",""])[1].toLowerCase(),l=_e[a]||_e._default,o.innerHTML=l[1]+pe.htmlPrefilter(s)+l[2],c=l[0];c--;)o=o.lastChild;pe.merge(h,o.childNodes),o=u.firstChild,o.textContent=""}else h.push(t.createTextNode(s));for(u.textContent="",d=0;s=h[d++];)if(n&&pe.inArray(s,n)>-1)r&&r.push(s);else if(p=pe.contains(s.ownerDocument,s),o=f(u.appendChild(s),"script"),p&&m(o),i)for(c=0;s=o[c++];)Ye.test(s.type||"")&&i.push(s);return u}function v(){return!0}function y(){return!1}function w(){try{return J.activeElement}catch(e){}}function x(e,t,i,n,r,s){var o,a;if("object"==typeof t){"string"!=typeof i&&(n=n||i,i=void 0);for(a in t)x(e,a,i,n,t[a],s);return e}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),r===!1)r=y;else if(!r)return e;return 1===s&&(o=r,r=function(e){return pe().off(e),o.apply(this,arguments)},r.guid=o.guid||(o.guid=pe.guid++)),e.each(function(){pe.event.add(this,t,r,n,i)})}function b(e,t){return pe.nodeName(e,"table")&&pe.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function T(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function S(e){var t=Ue.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function C(e,t){var i,n,r,s,o,a,l,p;if(1===t.nodeType){if(De.hasData(e)&&(s=De.access(e),o=De.set(t,s),p=s.events)){delete o.handle,o.events={};for(r in p)for(i=0,n=p[r].length;n>i;i++)pe.event.add(t,r,p[r][i])}ze.hasData(e)&&(a=ze.access(e),l=pe.extend({},a),ze.set(t,l))}}function E(e,t){var i=t.nodeName.toLowerCase();"input"===i&&Xe.test(e.type)?t.checked=e.checked:"input"!==i&&"textarea"!==i||(t.defaultValue=e.defaultValue)}function k(e,t,i,n){t=te.apply([],t);var r,s,o,a,l,p,c=0,u=e.length,h=u-1,d=t[0],m=pe.isFunction(d);if(m||u>1&&"string"==typeof d&&!ae.checkClone&&Ve.test(d))return e.each(function(r){var s=e.eq(r);m&&(t[0]=d.call(this,r,s.html())),k(s,t,i,n)});if(u&&(r=g(t,e[0].ownerDocument,!1,e,n),s=r.firstChild,1===r.childNodes.length&&(r=s),s||n)){for(o=pe.map(f(r,"script"),T),a=o.length;u>c;c++)l=r,c!==h&&(l=pe.clone(l,!0,!0),a&&pe.merge(o,f(l,"script"))),i.call(e[c],l,c);if(a)for(p=o[o.length-1].ownerDocument,pe.map(o,S),c=0;a>c;c++)l=o[c],Ye.test(l.type||"")&&!De.access(l,"globalEval")&&pe.contains(p,l)&&(l.src?pe._evalUrl&&pe._evalUrl(l.src):pe.globalEval(l.textContent.replace($e,"")))}return e}function A(e,t,i){for(var n,r=t?pe.filter(t,e):e,s=0;null!=(n=r[s]);s++)i||1!==n.nodeType||pe.cleanData(f(n)),n.parentNode&&(i&&pe.contains(n.ownerDocument,n)&&m(f(n,"script")),n.parentNode.removeChild(n));return e}function P(e,t){var i=pe(t.createElement(e)).appendTo(t.body),n=pe.css(i[0],"display");return i.detach(),n}function D(e){var t=J,i=Qe[e];return i||(i=P(e,t),"none"!==i&&i||(Ke=(Ke||pe("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=Ke[0].contentDocument,t.write(),t.close(),i=P(e,t),Ke.detach()),Qe[e]=i),i}function z(e,t,i){var n,r,s,o,a=e.style;return i=i||et(e),o=i?i.getPropertyValue(t)||i[t]:void 0,""!==o&&void 0!==o||pe.contains(e.ownerDocument,e)||(o=pe.style(e,t)),i&&!ae.pixelMarginRight()&&Je.test(o)&&Ze.test(t)&&(n=a.width,r=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=i.width,a.width=n,a.minWidth=r,a.maxWidth=s),void 0!==o?o+"":o}function M(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function L(e){if(e in at)return e;for(var t=e[0].toUpperCase()+e.slice(1),i=ot.length;i--;)if(e=ot[i]+t,e in at)return e}function I(e,t,i){var n=Ne.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function N(e,t,i,n,r){for(var s=i===(n?"border":"content")?4:"width"===t?1:0,o=0;4>s;s+=2)"margin"===i&&(o+=pe.css(e,i+He[s],!0,r)),n?("content"===i&&(o-=pe.css(e,"padding"+He[s],!0,r)),"margin"!==i&&(o-=pe.css(e,"border"+He[s]+"Width",!0,r))):(o+=pe.css(e,"padding"+He[s],!0,r),"padding"!==i&&(o+=pe.css(e,"border"+He[s]+"Width",!0,r)));return o}function H(e,t,i){var n=!0,r="width"===t?e.offsetWidth:e.offsetHeight,s=et(e),o="border-box"===pe.css(e,"boxSizing",!1,s);if(0>=r||null==r){if(r=z(e,t,s),(0>r||null==r)&&(r=e.style[t]),Je.test(r))return r;n=o&&(ae.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+N(e,t,i||(o?"border":"content"),n,s)+"px"}function B(e,t){for(var i,n,r,s=[],o=0,a=e.length;a>o;o++)n=e[o],n.style&&(s[o]=De.get(n,"olddisplay"),i=n.style.display,t?(s[o]||"none"!==i||(n.style.display=""),""===n.style.display&&Be(n)&&(s[o]=De.access(n,"olddisplay",D(n.nodeName)))):(r=Be(n),"none"===i&&r||De.set(n,"olddisplay",r?i:pe.css(n,"display"))));for(o=0;a>o;o++)n=e[o],n.style&&(t&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=t?s[o]||"":"none"));return e}function X(e,t,i,n,r){return new X.prototype.init(e,t,i,n,r)}function O(){return i.setTimeout(function(){lt=void 0}),lt=pe.now()}function Y(e,t){var i,n=0,r={height:e};for(t=t?1:0;4>n;n+=2-t)i=He[n],r["margin"+i]=r["padding"+i]=e;return t&&(r.opacity=r.width=e),r}function _(e,t,i){for(var n,r=(q.tweeners[t]||[]).concat(q.tweeners["*"]),s=0,o=r.length;o>s;s++)if(n=r[s].call(i,t,e))return n}function R(e,t,i){var n,r,s,o,a,l,p,c,u=this,h={},d=e.style,f=e.nodeType&&Be(e),m=De.get(e,"fxshow");i.queue||(a=pe._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,u.always(function(){u.always(function(){a.unqueued--,pe.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(i.overflow=[d.overflow,d.overflowX,d.overflowY],p=pe.css(e,"display"),c="none"===p?De.get(e,"olddisplay")||D(e.nodeName):p,"inline"===c&&"none"===pe.css(e,"float")&&(d.display="inline-block")),i.overflow&&(d.overflow="hidden",u.always(function(){d.overflow=i.overflow[0],d.overflowX=i.overflow[1],d.overflowY=i.overflow[2]}));for(n in t)if(r=t[n],ct.exec(r)){if(delete t[n],s=s||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!m||void 0===m[n])continue;f=!0}h[n]=m&&m[n]||pe.style(e,n)}else p=void 0;if(pe.isEmptyObject(h))"inline"===("none"===p?D(e.nodeName):p)&&(d.display=p);else{m?"hidden"in m&&(f=m.hidden):m=De.access(e,"fxshow",{}),s&&(m.hidden=!f),f?pe(e).show():u.done(function(){pe(e).hide()}),u.done(function(){var t;De.remove(e,"fxshow");for(t in h)pe.style(e,t,h[t])});for(n in h)o=_(f?m[n]:0,n,u),n in m||(m[n]=o.start,f&&(o.end=o.start,o.start="width"===n||"height"===n?1:0))}}function W(e,t){var i,n,r,s,o;for(i in e)if(n=pe.camelCase(i),r=t[n],s=e[i],pe.isArray(s)&&(r=s[1],s=e[i]=s[0]),i!==n&&(e[n]=s,delete e[i]),o=pe.cssHooks[n],o&&"expand"in o){s=o.expand(s),delete e[n];for(i in s)i in e||(e[i]=s[i],t[i]=r)}else t[n]=r}function q(e,t,i){var n,r,s=0,o=q.prefilters.length,a=pe.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=lt||O(),i=Math.max(0,p.startTime+p.duration-t),n=i/p.duration||0,s=1-n,o=0,l=p.tweens.length;l>o;o++)p.tweens[o].run(s);return a.notifyWith(e,[p,s,i]),1>s&&l?i:(a.resolveWith(e,[p]),!1)},p=a.promise({elem:e,props:pe.extend({},t),opts:pe.extend(!0,{specialEasing:{},easing:pe.easing._default},i),originalProperties:t,originalOptions:i,startTime:lt||O(),duration:i.duration,tweens:[],createTween:function(t,i){var n=pe.Tween(e,p.opts,t,i,p.opts.specialEasing[t]||p.opts.easing);return p.tweens.push(n),n},stop:function(t){var i=0,n=t?p.tweens.length:0;if(r)return this;for(r=!0;n>i;i++)p.tweens[i].run(1);return t?(a.notifyWith(e,[p,1,0]),a.resolveWith(e,[p,t])):a.rejectWith(e,[p,t]),this}}),c=p.props;for(W(c,p.opts.specialEasing);o>s;s++)if(n=q.prefilters[s].call(p,e,c,p.opts))return pe.isFunction(n.stop)&&(pe._queueHooks(p.elem,p.opts.queue).stop=pe.proxy(n.stop,n)),n;return pe.map(c,_,p),pe.isFunction(p.opts.start)&&p.opts.start.call(e,p),pe.fx.timer(pe.extend(l,{elem:e,anim:p,queue:p.opts.queue})),p.progress(p.opts.progress).done(p.opts.done,p.opts.complete).fail(p.opts.fail).always(p.opts.always)}function j(e){return e.getAttribute&&e.getAttribute("class")||""}function F(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,r=0,s=t.toLowerCase().match(Ee)||[];if(pe.isFunction(i))for(;n=s[r++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function G(e,t,i,n){function r(a){var l;return s[a]=!0,pe.each(e[a]||[],function(e,a){var p=a(t,i,n);return"string"!=typeof p||o||s[p]?o?!(l=p):void 0:(t.dataTypes.unshift(p),r(p),!1)}),l}var s={},o=e===zt;return r(t.dataTypes[0])||!s["*"]&&r("*")}function V(e,t){var i,n,r=pe.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((r[i]?e:n||(n={}))[i]=t[i]);return n&&pe.extend(!0,e,n),e}function U(e,t,i){for(var n,r,s,o,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(r in a)if(a[r]&&a[r].test(n)){l.unshift(r);break}if(l[0]in i)s=l[0];else{for(r in i){if(!l[0]||e.converters[r+" "+l[0]]){s=r;break}o||(o=r)}s=s||o}return s?(s!==l[0]&&l.unshift(s),i[s]):void 0}function $(e,t,i,n){var r,s,o,a,l,p={},c=e.dataTypes.slice();if(c[1])for(o in e.converters)p[o.toLowerCase()]=e.converters[o];for(s=c.shift();s;)if(e.responseFields[s]&&(i[e.responseFields[s]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=c.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(o=p[l+" "+s]||p["* "+s],!o)for(r in p)if(a=r.split(" "),a[1]===s&&(o=p[l+" "+a[0]]||p["* "+a[0]])){o===!0?o=p[r]:p[r]!==!0&&(s=a[0],c.unshift(a[1]));break}if(o!==!0)if(o&&e["throws"])t=o(t);else try{t=o(t)}catch(u){return{state:"parsererror",error:o?u:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}function K(e,t,i,n){var r;if(pe.isArray(t))pe.each(t,function(t,r){i||Nt.test(e)?n(e,r):K(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,i,n)});else if(i||"object"!==pe.type(t))n(e,t);else for(r in t)K(e+"["+r+"]",t[r],i,n)}function Q(e){return pe.isWindow(e)?e:9===e.nodeType&&e.defaultView}var Z=[],J=i.document,ee=Z.slice,te=Z.concat,ie=Z.push,ne=Z.indexOf,re={},se=re.toString,oe=re.hasOwnProperty,ae={},le="2.2.4",pe=function(e,t){return new pe.fn.init(e,t)},ce=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ue=/^-ms-/,he=/-([\da-z])/gi,de=function(e,t){return t.toUpperCase()};pe.fn=pe.prototype={jquery:le,constructor:pe,selector:"",length:0,toArray:function(){return ee.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:ee.call(this)},pushStack:function(e){var t=pe.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return pe.each(this,e)},map:function(e){return this.pushStack(pe.map(this,function(t,i){return e.call(t,i,t)}))},slice:function(){return this.pushStack(ee.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(0>e?t:0);return this.pushStack(i>=0&&t>i?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:ie,sort:Z.sort,splice:Z.splice},pe.extend=pe.fn.extend=function(){var e,t,i,n,r,s,o=arguments[0]||{},a=1,l=arguments.length,p=!1;for("boolean"==typeof o&&(p=o,o=arguments[a]||{},a++),"object"==typeof o||pe.isFunction(o)||(o={}),a===l&&(o=this,a--);l>a;a++)if(null!=(e=arguments[a]))for(t in e)i=o[t],n=e[t],o!==n&&(p&&n&&(pe.isPlainObject(n)||(r=pe.isArray(n)))?(r?(r=!1,s=i&&pe.isArray(i)?i:[]):s=i&&pe.isPlainObject(i)?i:{},o[t]=pe.extend(p,s,n)):void 0!==n&&(o[t]=n));return o},pe.extend({expando:"jQuery"+(le+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===pe.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!pe.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){var t;if("object"!==pe.type(e)||e.nodeType||pe.isWindow(e))return!1;if(e.constructor&&!oe.call(e,"constructor")&&!oe.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||oe.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?re[se.call(e)]||"object":typeof e},globalEval:function(e){var t,i=eval;e=pe.trim(e),e&&(1===e.indexOf("use strict")?(t=J.createElement("script"),t.text=e,J.head.appendChild(t).parentNode.removeChild(t)):i(e))},camelCase:function(e){return e.replace(ue,"ms-").replace(he,de)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var i,n=0;if(o(e))for(i=e.length;i>n&&t.call(e[n],n,e[n])!==!1;n++);else for(n in e)if(t.call(e[n],n,e[n])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(ce,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(o(Object(e))?pe.merge(i,"string"==typeof e?[e]:e):ie.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:ne.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,r=e.length;i>n;n++)e[r++]=t[n];return e.length=r,e},grep:function(e,t,i){for(var n,r=[],s=0,o=e.length,a=!i;o>s;s++)n=!t(e[s],s),n!==a&&r.push(e[s]);return r},map:function(e,t,i){var n,r,s=0,a=[];if(o(e))for(n=e.length;n>s;s++)r=t(e[s],s,i),null!=r&&a.push(r);else for(s in e)r=t(e[s],s,i),null!=r&&a.push(r);return te.apply([],a)},guid:1,proxy:function(e,t){var i,n,r;return"string"==typeof t&&(i=e[t],t=e,e=i),pe.isFunction(e)?(n=ee.call(arguments,2),r=function(){return e.apply(t||this,n.concat(ee.call(arguments)))},r.guid=e.guid=e.guid||pe.guid++,r):void 0},now:Date.now,support:ae}),"function"==typeof Symbol&&(pe.fn[Symbol.iterator]=Z[Symbol.iterator]),pe.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){re["[object "+t+"]"]=t.toLowerCase()});var fe=/*!
* Sizzle CSS Selector Engine v2.2.1
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2015-10-17
*/
function(e){function t(e,t,i,n){var r,s,o,a,l,p,u,d,f=t&&t.ownerDocument,m=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==m&&9!==m&&11!==m)return i;if(!n&&((t?t.ownerDocument||t:_)!==L&&M(t),t=t||L,N)){if(11!==m&&(p=ve.exec(e)))if(r=p[1]){if(9===m){if(!(o=t.getElementById(r)))return i;if(o.id===r)return i.push(o),i}else if(f&&(o=f.getElementById(r))&&O(t,o)&&o.id===r)return i.push(o),i}else{if(p[2])return Z.apply(i,t.getElementsByTagName(e)),i;if((r=p[3])&&b.getElementsByClassName&&t.getElementsByClassName)return Z.apply(i,t.getElementsByClassName(r)),i}if(b.qsa&&!F[e+" "]&&(!H||!H.test(e))){if(1!==m)f=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(we,"\\$&"):t.setAttribute("id",a=Y),u=E(e),s=u.length,l=he.test(a)?"#"+a:"[id='"+a+"']";s--;)u[s]=l+" "+h(u[s]);d=u.join(","),f=ye.test(e)&&c(t.parentNode)||t}if(d)try{return Z.apply(i,f.querySelectorAll(d)),i}catch(g){}finally{a===Y&&t.removeAttribute("id")}}}return A(e.replace(ae,"$1"),t,i,n)}function i(){function e(i,n){return t.push(i+" ")>T.cacheLength&&delete e[t.shift()],e[i+" "]=n}var t=[];return e}function n(e){return e[Y]=!0,e}function r(e){var t=L.createElement("div");try{return!!e(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function s(e,t){for(var i=e.split("|"),n=i.length;n--;)T.attrHandle[i[n]]=t}function o(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||V)-(~e.sourceIndex||V);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function a(e){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===e}}function l(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function p(e){return n(function(t){return t=+t,n(function(i,n){for(var r,s=e([],i.length,t),o=s.length;o--;)i[r=s[o]]&&(i[r]=!(n[r]=i[r]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function u(){}function h(e){for(var t=0,i=e.length,n="";i>t;t++)n+=e[t].value;return n}function d(e,t,i){var n=t.dir,r=i&&"parentNode"===n,s=W++;return t.first?function(t,i,s){for(;t=t[n];)if(1===t.nodeType||r)return e(t,i,s)}:function(t,i,o){var a,l,p,c=[R,s];if(o){for(;t=t[n];)if((1===t.nodeType||r)&&e(t,i,o))return!0}else for(;t=t[n];)if(1===t.nodeType||r){if(p=t[Y]||(t[Y]={}),l=p[t.uniqueID]||(p[t.uniqueID]={}),(a=l[n])&&a[0]===R&&a[1]===s)return c[2]=a[2];if(l[n]=c,c[2]=e(t,i,o))return!0}}}function f(e){return e.length>1?function(t,i,n){for(var r=e.length;r--;)if(!e[r](t,i,n))return!1;return!0}:e[0]}function m(e,i,n){for(var r=0,s=i.length;s>r;r++)t(e,i[r],n);return n}function g(e,t,i,n,r){for(var s,o=[],a=0,l=e.length,p=null!=t;l>a;a++)(s=e[a])&&(i&&!i(s,n,r)||(o.push(s),p&&t.push(a)));return o}function v(e,t,i,r,s,o){return r&&!r[Y]&&(r=v(r)),s&&!s[Y]&&(s=v(s,o)),n(function(n,o,a,l){var p,c,u,h=[],d=[],f=o.length,v=n||m(t||"*",a.nodeType?[a]:a,[]),y=!e||!n&&t?v:g(v,h,e,a,l),w=i?s||(n?e:f||r)?[]:o:y;if(i&&i(y,w,a,l),r)for(p=g(w,d),r(p,[],a,l),c=p.length;c--;)(u=p[c])&&(w[d[c]]=!(y[d[c]]=u));if(n){if(s||e){if(s){for(p=[],c=w.length;c--;)(u=w[c])&&p.push(y[c]=u);s(null,w=[],p,l)}for(c=w.length;c--;)(u=w[c])&&(p=s?ee(n,u):h[c])>-1&&(n[p]=!(o[p]=u))}}else w=g(w===o?w.splice(f,w.length):w),s?s(null,o,w,l):Z.apply(o,w)})}function y(e){for(var t,i,n,r=e.length,s=T.relative[e[0].type],o=s||T.relative[" "],a=s?1:0,l=d(function(e){return e===t},o,!0),p=d(function(e){return ee(t,e)>-1},o,!0),c=[function(e,i,n){var r=!s&&(n||i!==P)||((t=i).nodeType?l(e,i,n):p(e,i,n));return t=null,r}];r>a;a++)if(i=T.relative[e[a].type])c=[d(f(c),i)];else{if(i=T.filter[e[a].type].apply(null,e[a].matches),i[Y]){for(n=++a;r>n&&!T.relative[e[n].type];n++);return v(a>1&&f(c),a>1&&h(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(ae,"$1"),i,n>a&&y(e.slice(a,n)),r>n&&y(e=e.slice(n)),r>n&&h(e))}c.push(i)}return f(c)}function w(e,i){var r=i.length>0,s=e.length>0,o=function(n,o,a,l,p){var c,u,h,d=0,f="0",m=n&&[],v=[],y=P,w=n||s&&T.find.TAG("*",p),x=R+=null==y?1:Math.random()||.1,b=w.length;for(p&&(P=o===L||o||p);f!==b&&null!=(c=w[f]);f++){if(s&&c){for(u=0,o||c.ownerDocument===L||(M(c),a=!N);h=e[u++];)if(h(c,o||L,a)){l.push(c);break}p&&(R=x)}r&&((c=!h&&c)&&d--,n&&m.push(c))}if(d+=f,r&&f!==d){for(u=0;h=i[u++];)h(m,v,o,a);if(n){if(d>0)for(;f--;)m[f]||v[f]||(v[f]=K.call(l));v=g(v)}Z.apply(l,v),p&&!n&&v.length>0&&d+i.length>1&&t.uniqueSort(l)}return p&&(R=x,P=y),m};return r?n(o):o}var x,b,T,S,C,E,k,A,P,D,z,M,L,I,N,H,B,X,O,Y="sizzle"+1*new Date,_=e.document,R=0,W=0,q=i(),j=i(),F=i(),G=function(e,t){return e===t&&(z=!0),0},V=1<<31,U={}.hasOwnProperty,$=[],K=$.pop,Q=$.push,Z=$.push,J=$.slice,ee=function(e,t){for(var i=0,n=e.length;n>i;i++)if(e[i]===t)return i;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ie="[\\x20\\t\\r\\n\\f]",ne="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",re="\\["+ie+"*("+ne+")(?:"+ie+"*([*^$|!~]?=)"+ie+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ne+"))|)"+ie+"*\\]",se=":("+ne+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+re+")*)|.*)\\)|)",oe=new RegExp(ie+"+","g"),ae=new RegExp("^"+ie+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ie+"+$","g"),le=new RegExp("^"+ie+"*,"+ie+"*"),pe=new RegExp("^"+ie+"*([>+~]|"+ie+")"+ie+"*"),ce=new RegExp("="+ie+"*([^\\]'\"]*?)"+ie+"*\\]","g"),ue=new RegExp(se),he=new RegExp("^"+ne+"$"),de={ID:new RegExp("^#("+ne+")"),CLASS:new RegExp("^\\.("+ne+")"),TAG:new RegExp("^("+ne+"|[*])"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+se),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ie+"*(even|odd|(([+-]|)(\\d*)n|)"+ie+"*(?:([+-]|)"+ie+"*(\\d+)|))"+ie+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ie+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ie+"*((?:-\\d)?\\d*)"+ie+"*\\)|)(?=[^-]|$)","i")},fe=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,we=/'|\\/g,xe=new RegExp("\\\\([\\da-f]{1,6}"+ie+"?|("+ie+")|.)","ig"),be=function(e,t,i){var n="0x"+t-65536;return n!==n||i?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},Te=function(){M()};try{Z.apply($=J.call(_.childNodes),_.childNodes),$[_.childNodes.length].nodeType}catch(Se){Z={apply:$.length?function(e,t){Q.apply(e,J.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}b=t.support={},C=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},M=t.setDocument=function(e){var t,i,n=e?e.ownerDocument||e:_;return n!==L&&9===n.nodeType&&n.documentElement?(L=n,I=L.documentElement,N=!C(L),(i=L.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",Te,!1):i.attachEvent&&i.attachEvent("onunload",Te)),b.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByTagName=r(function(e){return e.appendChild(L.createComment("")),!e.getElementsByTagName("*").length}),b.getElementsByClassName=ge.test(L.getElementsByClassName),b.getById=r(function(e){return I.appendChild(e).id=Y,!L.getElementsByName||!L.getElementsByName(Y).length}),b.getById?(T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&N){var i=t.getElementById(e);return i?[i]:[]}},T.filter.ID=function(e){var t=e.replace(xe,be);return function(e){return e.getAttribute("id")===t}}):(delete T.find.ID,T.filter.ID=function(e){var t=e.replace(xe,be);return function(e){var i="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}}),T.find.TAG=b.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):b.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],r=0,s=t.getElementsByTagName(e);if("*"===e){for(;i=s[r++];)1===i.nodeType&&n.push(i);return n}return s},T.find.CLASS=b.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&N?t.getElementsByClassName(e):void 0},B=[],H=[],(b.qsa=ge.test(L.querySelectorAll))&&(r(function(e){I.appendChild(e).innerHTML="<a id='"+Y+"'></a><select id='"+Y+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&H.push("[*^$]="+ie+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||H.push("\\["+ie+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+Y+"-]").length||H.push("~="),e.querySelectorAll(":checked").length||H.push(":checked"),e.querySelectorAll("a#"+Y+"+*").length||H.push(".#.+[+~]")}),r(function(e){var t=L.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&H.push("name"+ie+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||H.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),H.push(",.*:")})),(b.matchesSelector=ge.test(X=I.matches||I.webkitMatchesSelector||I.mozMatchesSelector||I.oMatchesSelector||I.msMatchesSelector))&&r(function(e){b.disconnectedMatch=X.call(e,"div"),X.call(e,"[s!='']:x"),B.push("!=",se)}),H=H.length&&new RegExp(H.join("|")),B=B.length&&new RegExp(B.join("|")),t=ge.test(I.compareDocumentPosition),O=t||ge.test(I.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},G=t?function(e,t){if(e===t)return z=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i?i:(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&i||!b.sortDetached&&t.compareDocumentPosition(e)===i?e===L||e.ownerDocument===_&&O(_,e)?-1:t===L||t.ownerDocument===_&&O(_,t)?1:D?ee(D,e)-ee(D,t):0:4&i?-1:1)}:function(e,t){if(e===t)return z=!0,0;var i,n=0,r=e.parentNode,s=t.parentNode,a=[e],l=[t];if(!r||!s)return e===L?-1:t===L?1:r?-1:s?1:D?ee(D,e)-ee(D,t):0;if(r===s)return o(e,t);for(i=e;i=i.parentNode;)a.unshift(i);for(i=t;i=i.parentNode;)l.unshift(i);for(;a[n]===l[n];)n++;return n?o(a[n],l[n]):a[n]===_?-1:l[n]===_?1:0},L):L},t.matches=function(e,i){return t(e,null,null,i)},t.matchesSelector=function(e,i){if((e.ownerDocument||e)!==L&&M(e),i=i.replace(ce,"='$1']"),b.matchesSelector&&N&&!F[i+" "]&&(!B||!B.test(i))&&(!H||!H.test(i)))try{var n=X.call(e,i);if(n||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(r){}return t(i,L,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==L&&M(e),O(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==L&&M(e);var i=T.attrHandle[t.toLowerCase()],n=i&&U.call(T.attrHandle,t.toLowerCase())?i(e,t,!N):void 0;return void 0!==n?n:b.attributes||!N?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,i=[],n=0,r=0;if(z=!b.detectDuplicates,D=!b.sortStable&&e.slice(0),e.sort(G),z){for(;t=e[r++];)t===e[r]&&(n=i.push(r));for(;n--;)e.splice(i[n],1)}return D=null,e},S=t.getText=function(e){var t,i="",n=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=S(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[n++];)i+=S(t);return i},T=t.selectors={cacheLength:50,createPseudo:n,match:de,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(xe,be),e[3]=(e[3]||e[4]||e[5]||"").replace(xe,be),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return de.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&ue.test(i)&&(t=E(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(xe,be).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=q[e+" "];return t||(t=new RegExp("(^|"+ie+")"+e+"("+ie+"|$)"))&&q(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,i,n){return function(r){var s=t.attr(r,e);return null==s?"!="===i:i?(s+="","="===i?s===n:"!="===i?s!==n:"^="===i?n&&0===s.indexOf(n):"*="===i?n&&s.indexOf(n)>-1:"$="===i?n&&s.slice(-n.length)===n:"~="===i?(" "+s.replace(oe," ")+" ").indexOf(n)>-1:"|="===i?s===n||s.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,i,n,r){var s="nth"!==e.slice(0,3),o="last"!==e.slice(-4),a="of-type"===t;return 1===n&&0===r?function(e){return!!e.parentNode}:function(t,i,l){var p,c,u,h,d,f,m=s!==o?"nextSibling":"previousSibling",g=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!l&&!a,w=!1;if(g){if(s){for(;m;){for(h=t;h=h[m];)if(a?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[o?g.firstChild:g.lastChild],o&&y){for(h=g,u=h[Y]||(h[Y]={}),c=u[h.uniqueID]||(u[h.uniqueID]={}),p=c[e]||[],d=p[0]===R&&p[1],w=d&&p[2],h=d&&g.childNodes[d];h=++d&&h&&h[m]||(w=d=0)||f.pop();)if(1===h.nodeType&&++w&&h===t){c[e]=[R,d,w];break}}else if(y&&(h=t,u=h[Y]||(h[Y]={}),c=u[h.uniqueID]||(u[h.uniqueID]={}),p=c[e]||[],d=p[0]===R&&p[1],w=d),w===!1)for(;(h=++d&&h&&h[m]||(w=d=0)||f.pop())&&((a?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++w||(y&&(u=h[Y]||(h[Y]={}),c=u[h.uniqueID]||(u[h.uniqueID]={}),c[e]=[R,w]),h!==t)););return w-=r,w===n||w%n===0&&w/n>=0}}},PSEUDO:function(e,i){var r,s=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return s[Y]?s(i):s.length>1?(r=[e,e,"",i],T.setFilters.hasOwnProperty(e.toLowerCase())?n(function(e,t){for(var n,r=s(e,i),o=r.length;o--;)n=ee(e,r[o]),e[n]=!(t[n]=r[o])}):function(e){return s(e,0,r)}):s}},pseudos:{not:n(function(e){var t=[],i=[],r=k(e.replace(ae,"$1"));return r[Y]?n(function(e,t,i,n){for(var s,o=r(e,null,n,[]),a=e.length;a--;)(s=o[a])&&(e[a]=!(t[a]=s))}):function(e,n,s){return t[0]=e,r(t,null,s,i),t[0]=null,!i.pop()}}),has:n(function(e){return function(i){return t(e,i).length>0}}),contains:n(function(e){return e=e.replace(xe,be),function(t){return(t.textContent||t.innerText||S(t)).indexOf(e)>-1}}),lang:n(function(e){return he.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(xe,be).toLowerCase(),function(t){var i;do if(i=N?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===e||0===i.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===I},focus:function(e){return e===L.activeElement&&(!L.hasFocus||L.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return fe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:p(function(){return[0]}),last:p(function(e,t){return[t-1]}),eq:p(function(e,t,i){return[0>i?i+t:i]}),even:p(function(e,t){for(var i=0;t>i;i+=2)e.push(i);return e}),odd:p(function(e,t){for(var i=1;t>i;i+=2)e.push(i);return e}),lt:p(function(e,t,i){for(var n=0>i?i+t:i;--n>=0;)e.push(n);return e}),gt:p(function(e,t,i){for(var n=0>i?i+t:i;++n<t;)e.push(n);return e})}},T.pseudos.nth=T.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[x]=a(x);for(x in{submit:!0,reset:!0})T.pseudos[x]=l(x);return u.prototype=T.filters=T.pseudos,T.setFilters=new u,E=t.tokenize=function(e,i){var n,r,s,o,a,l,p,c=j[e+" "];if(c)return i?0:c.slice(0);for(a=e,l=[],p=T.preFilter;a;){n&&!(r=le.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(s=[])),n=!1,(r=pe.exec(a))&&(n=r.shift(),s.push({value:n,type:r[0].replace(ae," ")}),a=a.slice(n.length));for(o in T.filter)!(r=de[o].exec(a))||p[o]&&!(r=p[o](r))||(n=r.shift(),s.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return i?a.length:a?t.error(e):j(e,l).slice(0)},k=t.compile=function(e,t){var i,n=[],r=[],s=F[e+" "];if(!s){for(t||(t=E(e)),i=t.length;i--;)s=y(t[i]),s[Y]?n.push(s):r.push(s);s=F(e,w(r,n)),s.selector=e}return s},A=t.select=function(e,t,i,n){var r,s,o,a,l,p="function"==typeof e&&e,u=!n&&E(e=p.selector||e);if(i=i||[],1===u.length){if(s=u[0]=u[0].slice(0),s.length>2&&"ID"===(o=s[0]).type&&b.getById&&9===t.nodeType&&N&&T.relative[s[1].type]){if(t=(T.find.ID(o.matches[0].replace(xe,be),t)||[])[0],!t)return i;p&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(r=de.needsContext.test(e)?0:s.length;r--&&(o=s[r],!T.relative[a=o.type]);)if((l=T.find[a])&&(n=l(o.matches[0].replace(xe,be),ye.test(s[0].type)&&c(t.parentNode)||t))){if(s.splice(r,1),e=n.length&&h(s),!e)return Z.apply(i,n),i;break}}return(p||k(e,u))(n,t,!N,i,!t||ye.test(e)&&c(t.parentNode)||t),i},b.sortStable=Y.split("").sort(G).join("")===Y,b.detectDuplicates=!!z,M(),b.sortDetached=r(function(e){return 1&e.compareDocumentPosition(L.createElement("div"))}),r(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||s("type|href|height|width",function(e,t,i){return i?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),b.attributes&&r(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||s("value",function(e,t,i){return i||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||s(te,function(e,t,i){var n;return i?void 0:e[t]===!0?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),t}(i);pe.find=fe,pe.expr=fe.selectors,pe.expr[":"]=pe.expr.pseudos,pe.uniqueSort=pe.unique=fe.uniqueSort,pe.text=fe.getText,pe.isXMLDoc=fe.isXML,pe.contains=fe.contains;var me=function(e,t,i){for(var n=[],r=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&pe(e).is(i))break;n.push(e)}return n},ge=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},ve=pe.expr.match.needsContext,ye=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,we=/^.[^:#\[\.,]*$/;pe.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?pe.find.matchesSelector(n,e)?[n]:[]:pe.find.matches(e,pe.grep(t,function(e){return 1===e.nodeType}))},pe.fn.extend({find:function(e){var t,i=this.length,n=[],r=this;if("string"!=typeof e)return this.pushStack(pe(e).filter(function(){for(t=0;i>t;t++)if(pe.contains(r[t],this))return!0}));for(t=0;i>t;t++)pe.find(e,r[t],n);return n=this.pushStack(i>1?pe.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(a(this,e||[],!1))},not:function(e){return this.pushStack(a(this,e||[],!0))},is:function(e){return!!a(this,"string"==typeof e&&ve.test(e)?pe(e):e||[],!1).length}});var xe,be=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,Te=pe.fn.init=function(e,t,i){var n,r;if(!e)return this;if(i=i||xe,"string"==typeof e){if(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:be.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof pe?t[0]:t,pe.merge(this,pe.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:J,!0)),ye.test(n[1])&&pe.isPlainObject(t))for(n in t)pe.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return r=J.getElementById(n[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=J,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):pe.isFunction(e)?void 0!==i.ready?i.ready(e):e(pe):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),pe.makeArray(e,this))};Te.prototype=pe.fn,xe=pe(J);var Se=/^(?:parents|prev(?:Until|All))/,Ce={children:!0,contents:!0,next:!0,prev:!0};pe.fn.extend({has:function(e){var t=pe(e,this),i=t.length;return this.filter(function(){for(var e=0;i>e;e++)if(pe.contains(this,t[e]))return!0})},closest:function(e,t){for(var i,n=0,r=this.length,s=[],o=ve.test(e)||"string"!=typeof e?pe(e,t||this.context):0;r>n;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(o?o.index(i)>-1:1===i.nodeType&&pe.find.matchesSelector(i,e))){s.push(i);break}return this.pushStack(s.length>1?pe.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?ne.call(pe(e),this[0]):ne.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(pe.uniqueSort(pe.merge(this.get(),pe(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),pe.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return me(e,"parentNode")},parentsUntil:function(e,t,i){return me(e,"parentNode",i)},next:function(e){return l(e,"nextSibling")},prev:function(e){return l(e,"previousSibling")},nextAll:function(e){return me(e,"nextSibling")},prevAll:function(e){return me(e,"previousSibling")},nextUntil:function(e,t,i){return me(e,"nextSibling",i)},prevUntil:function(e,t,i){return me(e,"previousSibling",i)},siblings:function(e){return ge((e.parentNode||{}).firstChild,e)},children:function(e){return ge(e.firstChild)},contents:function(e){return e.contentDocument||pe.merge([],e.childNodes)}},function(e,t){pe.fn[e]=function(i,n){var r=pe.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=pe.filter(n,r)),this.length>1&&(Ce[e]||pe.uniqueSort(r),Se.test(e)&&r.reverse()),this.pushStack(r)}});var Ee=/\S+/g;pe.Callbacks=function(e){e="string"==typeof e?p(e):pe.extend({},e);var t,i,n,r,s=[],o=[],a=-1,l=function(){for(r=e.once,n=t=!0;o.length;a=-1)for(i=o.shift();++a<s.length;)s[a].apply(i[0],i[1])===!1&&e.stopOnFalse&&(a=s.length,i=!1);e.memory||(i=!1),t=!1,r&&(s=i?[]:"")},c={add:function(){return s&&(i&&!t&&(a=s.length-1,o.push(i)),function n(t){pe.each(t,function(t,i){pe.isFunction(i)?e.unique&&c.has(i)||s.push(i):i&&i.length&&"string"!==pe.type(i)&&n(i)})}(arguments),i&&!t&&l()),this},remove:function(){return pe.each(arguments,function(e,t){for(var i;(i=pe.inArray(t,s,i))>-1;)s.splice(i,1),a>=i&&a--}),this},has:function(e){return e?pe.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return r=o=[],s=i="",this},disabled:function(){return!s},lock:function(){return r=o=[],i||(s=i=""),this},locked:function(){return!!r},fireWith:function(e,i){return r||(i=i||[],i=[e,i.slice?i.slice():i],o.push(i),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},pe.extend({Deferred:function(e){var t=[["resolve","done",pe.Callbacks("once memory"),"resolved"],["reject","fail",pe.Callbacks("once memory"),"rejected"],["notify","progress",pe.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return pe.Deferred(function(i){pe.each(t,function(t,s){var o=pe.isFunction(e[t])&&e[t];r[s[1]](function(){var e=o&&o.apply(this,arguments);e&&pe.isFunction(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[s[0]+"With"](this===n?i.promise():this,o?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?pe.extend(e,n):n}},r={};return n.pipe=n.then,pe.each(t,function(e,s){var o=s[2],a=s[3];n[s[1]]=o.add,a&&o.add(function(){i=a},t[1^e][2].disable,t[2][2].lock),r[s[0]]=function(){return r[s[0]+"With"](this===r?n:this,arguments),this},r[s[0]+"With"]=o.fireWith}),n.promise(r),e&&e.call(r,r),r},when:function(e){var t,i,n,r=0,s=ee.call(arguments),o=s.length,a=1!==o||e&&pe.isFunction(e.promise)?o:0,l=1===a?e:pe.Deferred(),p=function(e,i,n){return function(r){i[e]=this,n[e]=arguments.length>1?ee.call(arguments):r,n===t?l.notifyWith(i,n):--a||l.resolveWith(i,n)}};if(o>1)for(t=new Array(o),i=new Array(o),n=new Array(o);o>r;r++)s[r]&&pe.isFunction(s[r].promise)?s[r].promise().progress(p(r,i,t)).done(p(r,n,s)).fail(l.reject):--a;return a||l.resolveWith(n,s),l.promise()}});var ke;pe.fn.ready=function(e){return pe.ready.promise().done(e),this},pe.extend({isReady:!1,readyWait:1,holdReady:function(e){e?pe.readyWait++:pe.ready(!0)},ready:function(e){(e===!0?--pe.readyWait:pe.isReady)||(pe.isReady=!0,e!==!0&&--pe.readyWait>0||(ke.resolveWith(J,[pe]),pe.fn.triggerHandler&&(pe(J).triggerHandler("ready"),pe(J).off("ready"))))}}),pe.ready.promise=function(e){return ke||(ke=pe.Deferred(),"complete"===J.readyState||"loading"!==J.readyState&&!J.documentElement.doScroll?i.setTimeout(pe.ready):(J.addEventListener("DOMContentLoaded",c),i.addEventListener("load",c))),ke.promise(e)},pe.ready.promise();var Ae=function(e,t,i,n,r,s,o){var a=0,l=e.length,p=null==i;if("object"===pe.type(i)){r=!0;for(a in i)Ae(e,t,a,i[a],!0,s,o)}else if(void 0!==n&&(r=!0,pe.isFunction(n)||(o=!0),p&&(o?(t.call(e,n),t=null):(p=t,t=function(e,t,i){return p.call(pe(e),i)})),t))for(;l>a;a++)t(e[a],i,o?n:n.call(e[a],a,t(e[a],i)));return r?e:p?t.call(e):l?t(e[0],i):s},Pe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};u.uid=1,u.prototype={register:function(e,t){var i=t||{};return e.nodeType?e[this.expando]=i:Object.defineProperty(e,this.expando,{value:i,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!Pe(e))return{};var t=e[this.expando];return t||(t={},Pe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,r=this.cache(e);if("string"==typeof t)r[t]=i;else for(n in t)r[n]=t[n];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,i){var n;return void 0===t||t&&"string"==typeof t&&void 0===i?(n=this.get(e,t),void 0!==n?n:this.get(e,pe.camelCase(t))):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n,r,s=e[this.expando];if(void 0!==s){if(void 0===t)this.register(e);else{pe.isArray(t)?n=t.concat(t.map(pe.camelCase)):(r=pe.camelCase(t),t in s?n=[t,r]:(n=r,n=n in s?[n]:n.match(Ee)||[])),i=n.length;for(;i--;)delete s[n[i]]}(void 0===t||pe.isEmptyObject(s))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!pe.isEmptyObject(t)}};var De=new u,ze=new u,Me=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Le=/[A-Z]/g;pe.extend({hasData:function(e){return ze.hasData(e)||De.hasData(e)},data:function(e,t,i){return ze.access(e,t,i)},removeData:function(e,t){ze.remove(e,t)},_data:function(e,t,i){return De.access(e,t,i)},_removeData:function(e,t){De.remove(e,t)}}),pe.fn.extend({data:function(e,t){var i,n,r,s=this[0],o=s&&s.attributes;if(void 0===e){if(this.length&&(r=ze.get(s),1===s.nodeType&&!De.get(s,"hasDataAttrs"))){for(i=o.length;i--;)o[i]&&(n=o[i].name,0===n.indexOf("data-")&&(n=pe.camelCase(n.slice(5)),h(s,n,r[n])));De.set(s,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){ze.set(this,e)}):Ae(this,function(t){var i,n;if(s&&void 0===t){if(i=ze.get(s,e)||ze.get(s,e.replace(Le,"-$&").toLowerCase()),void 0!==i)return i;if(n=pe.camelCase(e),i=ze.get(s,n),void 0!==i)return i;if(i=h(s,n,void 0),void 0!==i)return i}else n=pe.camelCase(e),this.each(function(){var i=ze.get(this,n);ze.set(this,n,t),e.indexOf("-")>-1&&void 0!==i&&ze.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){ze.remove(this,e)})}}),pe.extend({queue:function(e,t,i){var n;return e?(t=(t||"fx")+"queue",n=De.get(e,t),i&&(!n||pe.isArray(i)?n=De.access(e,t,pe.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(e,t){t=t||"fx";var i=pe.queue(e,t),n=i.length,r=i.shift(),s=pe._queueHooks(e,t),o=function(){pe.dequeue(e,t)};"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===t&&i.unshift("inprogress"),delete s.stop,r.call(e,o,s)),!n&&s&&s.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return De.get(e,i)||De.access(e,i,{empty:pe.Callbacks("once memory").add(function(){De.remove(e,[t+"queue",i])})})}}),pe.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?pe.queue(this[0],e):void 0===t?this:this.each(function(){var i=pe.queue(this,e,t);pe._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&pe.dequeue(this,e)})},dequeue:function(e){return this.each(function(){pe.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,r=pe.Deferred(),s=this,o=this.length,a=function(){--n||r.resolveWith(s,[s])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)i=De.get(s[o],e+"queueHooks"),i&&i.empty&&(n++,i.empty.add(a));return a(),r.promise(t)}});var Ie=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ne=new RegExp("^(?:([+-])=|)("+Ie+")([a-z%]*)$","i"),He=["Top","Right","Bottom","Left"],Be=function(e,t){return e=t||e,"none"===pe.css(e,"display")||!pe.contains(e.ownerDocument,e)},Xe=/^(?:checkbox|radio)$/i,Oe=/<([\w:-]+)/,Ye=/^$|\/(?:java|ecma)script/i,_e={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};_e.optgroup=_e.option,_e.tbody=_e.tfoot=_e.colgroup=_e.caption=_e.thead,_e.th=_e.td;var Re=/<|&#?\w+;/;!function(){var e=J.createDocumentFragment(),t=e.appendChild(J.createElement("div")),i=J.createElement("input");i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),t.appendChild(i),ae.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",ae.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var We=/^key/,qe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,je=/^([^.]*)(?:\.(.+)|)/;pe.event={global:{},add:function(e,t,i,n,r){var s,o,a,l,p,c,u,h,d,f,m,g=De.get(e);if(g)for(i.handler&&(s=i,i=s.handler,r=s.selector),i.guid||(i.guid=pe.guid++),(l=g.events)||(l=g.events={}),(o=g.handle)||(o=g.handle=function(t){return"undefined"!=typeof pe&&pe.event.triggered!==t.type?pe.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Ee)||[""],p=t.length;p--;)a=je.exec(t[p])||[],d=m=a[1],f=(a[2]||"").split(".").sort(),d&&(u=pe.event.special[d]||{},d=(r?u.delegateType:u.bindType)||d,u=pe.event.special[d]||{},c=pe.extend({type:d,origType:m,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&pe.expr.match.needsContext.test(r),namespace:f.join(".")},s),(h=l[d])||(h=l[d]=[],h.delegateCount=0,u.setup&&u.setup.call(e,n,f,o)!==!1||e.addEventListener&&e.addEventListener(d,o)),u.add&&(u.add.call(e,c),c.handler.guid||(c.handler.guid=i.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),pe.event.global[d]=!0)},remove:function(e,t,i,n,r){var s,o,a,l,p,c,u,h,d,f,m,g=De.hasData(e)&&De.get(e);if(g&&(l=g.events)){for(t=(t||"").match(Ee)||[""],p=t.length;p--;)if(a=je.exec(t[p])||[],d=m=a[1],f=(a[2]||"").split(".").sort(),d){for(u=pe.event.special[d]||{},d=(n?u.delegateType:u.bindType)||d,h=l[d]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=h.length;s--;)c=h[s],!r&&m!==c.origType||i&&i.guid!==c.guid||a&&!a.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(h.splice(s,1),
c.selector&&h.delegateCount--,u.remove&&u.remove.call(e,c));o&&!h.length&&(u.teardown&&u.teardown.call(e,f,g.handle)!==!1||pe.removeEvent(e,d,g.handle),delete l[d])}else for(d in l)pe.event.remove(e,d+t[p],i,n,!0);pe.isEmptyObject(l)&&De.remove(e,"handle events")}},dispatch:function(e){e=pe.event.fix(e);var t,i,n,r,s,o=[],a=ee.call(arguments),l=(De.get(this,"events")||{})[e.type]||[],p=pe.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!p.preDispatch||p.preDispatch.call(this,e)!==!1){for(o=pe.event.handlers.call(this,e,l),t=0;(r=o[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,i=0;(s=r.handlers[i++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(s.namespace)||(e.handleObj=s,e.data=s.data,n=((pe.event.special[s.origType]||{}).handle||s.handler).apply(r.elem,a),void 0!==n&&(e.result=n)===!1&&(e.preventDefault(),e.stopPropagation()));return p.postDispatch&&p.postDispatch.call(this,e),e.result}},handlers:function(e,t){var i,n,r,s,o=[],a=t.delegateCount,l=e.target;if(a&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(n=[],i=0;a>i;i++)s=t[i],r=s.selector+" ",void 0===n[r]&&(n[r]=s.needsContext?pe(r,this).index(l)>-1:pe.find(r,this,null,[l]).length),n[r]&&n.push(s);n.length&&o.push({elem:l,handlers:n})}return a<t.length&&o.push({elem:this,handlers:t.slice(a)}),o},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var i,n,r,s=t.button;return null==e.pageX&&null!=t.clientX&&(i=e.target.ownerDocument||J,n=i.documentElement,r=i.body,e.pageX=t.clientX+(n&&n.scrollLeft||r&&r.scrollLeft||0)-(n&&n.clientLeft||r&&r.clientLeft||0),e.pageY=t.clientY+(n&&n.scrollTop||r&&r.scrollTop||0)-(n&&n.clientTop||r&&r.clientTop||0)),e.which||void 0===s||(e.which=1&s?1:2&s?3:4&s?2:0),e}},fix:function(e){if(e[pe.expando])return e;var t,i,n,r=e.type,s=e,o=this.fixHooks[r];for(o||(this.fixHooks[r]=o=qe.test(r)?this.mouseHooks:We.test(r)?this.keyHooks:{}),n=o.props?this.props.concat(o.props):this.props,e=new pe.Event(s),t=n.length;t--;)i=n[t],e[i]=s[i];return e.target||(e.target=J),3===e.target.nodeType&&(e.target=e.target.parentNode),o.filter?o.filter(e,s):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==w()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===w()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&pe.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return pe.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},pe.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},pe.Event=function(e,t){return this instanceof pe.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?v:y):this.type=e,t&&pe.extend(this,t),this.timeStamp=e&&e.timeStamp||pe.now(),void(this[pe.expando]=!0)):new pe.Event(e,t)},pe.Event.prototype={constructor:pe.Event,isDefaultPrevented:y,isPropagationStopped:y,isImmediatePropagationStopped:y,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=v,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=v,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=v,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},pe.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){pe.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=this,r=e.relatedTarget,s=e.handleObj;return r&&(r===n||pe.contains(n,r))||(e.type=s.origType,i=s.handler.apply(this,arguments),e.type=t),i}}}),pe.fn.extend({on:function(e,t,i,n){return x(this,e,t,i,n)},one:function(e,t,i,n){return x(this,e,t,i,n,1)},off:function(e,t,i){var n,r;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,pe(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return t!==!1&&"function"!=typeof t||(i=t,t=void 0),i===!1&&(i=y),this.each(function(){pe.event.remove(this,e,i,t)})}});var Fe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ge=/<script|<style|<link/i,Ve=/checked\s*(?:[^=]|=\s*.checked.)/i,Ue=/^true\/(.*)/,$e=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;pe.extend({htmlPrefilter:function(e){return e.replace(Fe,"<$1></$2>")},clone:function(e,t,i){var n,r,s,o,a=e.cloneNode(!0),l=pe.contains(e.ownerDocument,e);if(!(ae.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||pe.isXMLDoc(e)))for(o=f(a),s=f(e),n=0,r=s.length;r>n;n++)E(s[n],o[n]);if(t)if(i)for(s=s||f(e),o=o||f(a),n=0,r=s.length;r>n;n++)C(s[n],o[n]);else C(e,a);return o=f(a,"script"),o.length>0&&m(o,!l&&f(e,"script")),a},cleanData:function(e){for(var t,i,n,r=pe.event.special,s=0;void 0!==(i=e[s]);s++)if(Pe(i)){if(t=i[De.expando]){if(t.events)for(n in t.events)r[n]?pe.event.remove(i,n):pe.removeEvent(i,n,t.handle);i[De.expando]=void 0}i[ze.expando]&&(i[ze.expando]=void 0)}}}),pe.fn.extend({domManip:k,detach:function(e){return A(this,e,!0)},remove:function(e){return A(this,e)},text:function(e){return Ae(this,function(e){return void 0===e?pe.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return k(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=b(this,e);t.appendChild(e)}})},prepend:function(){return k(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=b(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return k(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return k(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(pe.cleanData(f(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return pe.clone(this,e,t)})},html:function(e){return Ae(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ge.test(e)&&!_e[(Oe.exec(e)||["",""])[1].toLowerCase()]){e=pe.htmlPrefilter(e);try{for(;n>i;i++)t=this[i]||{},1===t.nodeType&&(pe.cleanData(f(t,!1)),t.innerHTML=e);t=0}catch(r){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return k(this,arguments,function(t){var i=this.parentNode;pe.inArray(this,e)<0&&(pe.cleanData(f(this)),i&&i.replaceChild(t,this))},e)}}),pe.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){pe.fn[e]=function(e){for(var i,n=[],r=pe(e),s=r.length-1,o=0;s>=o;o++)i=o===s?this:this.clone(!0),pe(r[o])[t](i),ie.apply(n,i.get());return this.pushStack(n)}});var Ke,Qe={HTML:"block",BODY:"block"},Ze=/^margin/,Je=new RegExp("^("+Ie+")(?!px)[a-z%]+$","i"),et=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=i),t.getComputedStyle(e)},tt=function(e,t,i,n){var r,s,o={};for(s in t)o[s]=e.style[s],e.style[s]=t[s];r=i.apply(e,n||[]);for(s in t)e.style[s]=o[s];return r},it=J.documentElement;!function(){function e(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",it.appendChild(o);var e=i.getComputedStyle(a);t="1%"!==e.top,s="2px"===e.marginLeft,n="4px"===e.width,a.style.marginRight="50%",r="4px"===e.marginRight,it.removeChild(o)}var t,n,r,s,o=J.createElement("div"),a=J.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",ae.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(a),pe.extend(ae,{pixelPosition:function(){return e(),t},boxSizingReliable:function(){return null==n&&e(),n},pixelMarginRight:function(){return null==n&&e(),r},reliableMarginLeft:function(){return null==n&&e(),s},reliableMarginRight:function(){var e,t=a.appendChild(J.createElement("div"));return t.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",a.style.width="1px",it.appendChild(o),e=!parseFloat(i.getComputedStyle(t).marginRight),it.removeChild(o),a.removeChild(t),e}}))}();var nt=/^(none|table(?!-c[ea]).+)/,rt={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"},ot=["Webkit","O","Moz","ms"],at=J.createElement("div").style;pe.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=z(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,s,o,a=pe.camelCase(t),l=e.style;return t=pe.cssProps[a]||(pe.cssProps[a]=L(a)||a),o=pe.cssHooks[t]||pe.cssHooks[a],void 0===i?o&&"get"in o&&void 0!==(r=o.get(e,!1,n))?r:l[t]:(s=typeof i,"string"===s&&(r=Ne.exec(i))&&r[1]&&(i=d(e,t,r),s="number"),null!=i&&i===i&&("number"===s&&(i+=r&&r[3]||(pe.cssNumber[a]?"":"px")),ae.clearCloneStyle||""!==i||0!==t.indexOf("background")||(l[t]="inherit"),o&&"set"in o&&void 0===(i=o.set(e,i,n))||(l[t]=i)),void 0)}},css:function(e,t,i,n){var r,s,o,a=pe.camelCase(t);return t=pe.cssProps[a]||(pe.cssProps[a]=L(a)||a),o=pe.cssHooks[t]||pe.cssHooks[a],o&&"get"in o&&(r=o.get(e,!0,i)),void 0===r&&(r=z(e,t,n)),"normal"===r&&t in st&&(r=st[t]),""===i||i?(s=parseFloat(r),i===!0||isFinite(s)?s||0:r):r}}),pe.each(["height","width"],function(e,t){pe.cssHooks[t]={get:function(e,i,n){return i?nt.test(pe.css(e,"display"))&&0===e.offsetWidth?tt(e,rt,function(){return H(e,t,n)}):H(e,t,n):void 0},set:function(e,i,n){var r,s=n&&et(e),o=n&&N(e,t,n,"border-box"===pe.css(e,"boxSizing",!1,s),s);return o&&(r=Ne.exec(i))&&"px"!==(r[3]||"px")&&(e.style[t]=i,i=pe.css(e,t)),I(e,i,o)}}}),pe.cssHooks.marginLeft=M(ae.reliableMarginLeft,function(e,t){return t?(parseFloat(z(e,"marginLeft"))||e.getBoundingClientRect().left-tt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px":void 0}),pe.cssHooks.marginRight=M(ae.reliableMarginRight,function(e,t){return t?tt(e,{display:"inline-block"},z,[e,"marginRight"]):void 0}),pe.each({margin:"",padding:"",border:"Width"},function(e,t){pe.cssHooks[e+t]={expand:function(i){for(var n=0,r={},s="string"==typeof i?i.split(" "):[i];4>n;n++)r[e+He[n]+t]=s[n]||s[n-2]||s[0];return r}},Ze.test(e)||(pe.cssHooks[e+t].set=I)}),pe.fn.extend({css:function(e,t){return Ae(this,function(e,t,i){var n,r,s={},o=0;if(pe.isArray(t)){for(n=et(e),r=t.length;r>o;o++)s[t[o]]=pe.css(e,t[o],!1,n);return s}return void 0!==i?pe.style(e,t,i):pe.css(e,t)},e,t,arguments.length>1)},show:function(){return B(this,!0)},hide:function(){return B(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Be(this)?pe(this).show():pe(this).hide()})}}),pe.Tween=X,X.prototype={constructor:X,init:function(e,t,i,n,r,s){this.elem=e,this.prop=i,this.easing=r||pe.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=s||(pe.cssNumber[i]?"":"px")},cur:function(){var e=X.propHooks[this.prop];return e&&e.get?e.get(this):X.propHooks._default.get(this)},run:function(e){var t,i=X.propHooks[this.prop];return this.options.duration?this.pos=t=pe.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):X.propHooks._default.set(this),this}},X.prototype.init.prototype=X.prototype,X.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=pe.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){pe.fx.step[e.prop]?pe.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[pe.cssProps[e.prop]]&&!pe.cssHooks[e.prop]?e.elem[e.prop]=e.now:pe.style(e.elem,e.prop,e.now+e.unit)}}},X.propHooks.scrollTop=X.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},pe.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},pe.fx=X.prototype.init,pe.fx.step={};var lt,pt,ct=/^(?:toggle|show|hide)$/,ut=/queueHooks$/;pe.Animation=pe.extend(q,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return d(i.elem,e,Ne.exec(t),i),i}]},tweener:function(e,t){pe.isFunction(e)?(t=e,e=["*"]):e=e.match(Ee);for(var i,n=0,r=e.length;r>n;n++)i=e[n],q.tweeners[i]=q.tweeners[i]||[],q.tweeners[i].unshift(t)},prefilters:[R],prefilter:function(e,t){t?q.prefilters.unshift(e):q.prefilters.push(e)}}),pe.speed=function(e,t,i){var n=e&&"object"==typeof e?pe.extend({},e):{complete:i||!i&&t||pe.isFunction(e)&&e,duration:e,easing:i&&t||t&&!pe.isFunction(t)&&t};return n.duration=pe.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in pe.fx.speeds?pe.fx.speeds[n.duration]:pe.fx.speeds._default,null!=n.queue&&n.queue!==!0||(n.queue="fx"),n.old=n.complete,n.complete=function(){pe.isFunction(n.old)&&n.old.call(this),n.queue&&pe.dequeue(this,n.queue)},n},pe.fn.extend({fadeTo:function(e,t,i,n){return this.filter(Be).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var r=pe.isEmptyObject(e),s=pe.speed(t,i,n),o=function(){var t=q(this,pe.extend({},e),s);(r||De.get(this,"finish"))&&t.stop(!0)};return o.finish=o,r||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(e,t,i){var n=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",s=pe.timers,o=De.get(this);if(r)o[r]&&o[r].stop&&n(o[r]);else for(r in o)o[r]&&o[r].stop&&ut.test(r)&&n(o[r]);for(r=s.length;r--;)s[r].elem!==this||null!=e&&s[r].queue!==e||(s[r].anim.stop(i),t=!1,s.splice(r,1));!t&&i||pe.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,i=De.get(this),n=i[e+"queue"],r=i[e+"queueHooks"],s=pe.timers,o=n?n.length:0;for(i.finish=!0,pe.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;o>t;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish})}}),pe.each(["toggle","show","hide"],function(e,t){var i=pe.fn[t];pe.fn[t]=function(e,n,r){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(Y(t,!0),e,n,r)}}),pe.each({slideDown:Y("show"),slideUp:Y("hide"),slideToggle:Y("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){pe.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}}),pe.timers=[],pe.fx.tick=function(){var e,t=0,i=pe.timers;for(lt=pe.now();t<i.length;t++)e=i[t],e()||i[t]!==e||i.splice(t--,1);i.length||pe.fx.stop(),lt=void 0},pe.fx.timer=function(e){pe.timers.push(e),e()?pe.fx.start():pe.timers.pop()},pe.fx.interval=13,pe.fx.start=function(){pt||(pt=i.setInterval(pe.fx.tick,pe.fx.interval))},pe.fx.stop=function(){i.clearInterval(pt),pt=null},pe.fx.speeds={slow:600,fast:200,_default:400},pe.fn.delay=function(e,t){return e=pe.fx?pe.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=i.setTimeout(t,e);n.stop=function(){i.clearTimeout(r)}})},function(){var e=J.createElement("input"),t=J.createElement("select"),i=t.appendChild(J.createElement("option"));e.type="checkbox",ae.checkOn=""!==e.value,ae.optSelected=i.selected,t.disabled=!0,ae.optDisabled=!i.disabled,e=J.createElement("input"),e.value="t",e.type="radio",ae.radioValue="t"===e.value}();var ht,dt=pe.expr.attrHandle;pe.fn.extend({attr:function(e,t){return Ae(this,pe.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){pe.removeAttr(this,e)})}}),pe.extend({attr:function(e,t,i){var n,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return"undefined"==typeof e.getAttribute?pe.prop(e,t,i):(1===s&&pe.isXMLDoc(e)||(t=t.toLowerCase(),r=pe.attrHooks[t]||(pe.expr.match.bool.test(t)?ht:void 0)),void 0!==i?null===i?void pe.removeAttr(e,t):r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:(e.setAttribute(t,i+""),i):r&&"get"in r&&null!==(n=r.get(e,t))?n:(n=pe.find.attr(e,t),null==n?void 0:n))},attrHooks:{type:{set:function(e,t){if(!ae.radioValue&&"radio"===t&&pe.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n,r=0,s=t&&t.match(Ee);if(s&&1===e.nodeType)for(;i=s[r++];)n=pe.propFix[i]||i,pe.expr.match.bool.test(i)&&(e[n]=!1),e.removeAttribute(i)}}),ht={set:function(e,t,i){return t===!1?pe.removeAttr(e,i):e.setAttribute(i,i),i}},pe.each(pe.expr.match.bool.source.match(/\w+/g),function(e,t){var i=dt[t]||pe.find.attr;dt[t]=function(e,t,n){var r,s;return n||(s=dt[t],dt[t]=r,r=null!=i(e,t,n)?t.toLowerCase():null,dt[t]=s),r}});var ft=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;pe.fn.extend({prop:function(e,t){return Ae(this,pe.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[pe.propFix[e]||e]})}}),pe.extend({prop:function(e,t,i){var n,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&pe.isXMLDoc(e)||(t=pe.propFix[t]||t,r=pe.propHooks[t]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:e[t]=i:r&&"get"in r&&null!==(n=r.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=pe.find.attr(e,"tabindex");return t?parseInt(t,10):ft.test(e.nodeName)||mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ae.optSelected||(pe.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),pe.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){pe.propFix[this.toLowerCase()]=this});var gt=/[\t\r\n\f]/g;pe.fn.extend({addClass:function(e){var t,i,n,r,s,o,a,l=0;if(pe.isFunction(e))return this.each(function(t){pe(this).addClass(e.call(this,t,j(this)))});if("string"==typeof e&&e)for(t=e.match(Ee)||[];i=this[l++];)if(r=j(i),n=1===i.nodeType&&(" "+r+" ").replace(gt," ")){for(o=0;s=t[o++];)n.indexOf(" "+s+" ")<0&&(n+=s+" ");a=pe.trim(n),r!==a&&i.setAttribute("class",a)}return this},removeClass:function(e){var t,i,n,r,s,o,a,l=0;if(pe.isFunction(e))return this.each(function(t){pe(this).removeClass(e.call(this,t,j(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Ee)||[];i=this[l++];)if(r=j(i),n=1===i.nodeType&&(" "+r+" ").replace(gt," ")){for(o=0;s=t[o++];)for(;n.indexOf(" "+s+" ")>-1;)n=n.replace(" "+s+" "," ");a=pe.trim(n),r!==a&&i.setAttribute("class",a)}return this},toggleClass:function(e,t){var i=typeof e;return"boolean"==typeof t&&"string"===i?t?this.addClass(e):this.removeClass(e):pe.isFunction(e)?this.each(function(i){pe(this).toggleClass(e.call(this,i,j(this),t),t)}):this.each(function(){var t,n,r,s;if("string"===i)for(n=0,r=pe(this),s=e.match(Ee)||[];t=s[n++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==i||(t=j(this),t&&De.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":De.get(this,"__className__")||""))})},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&(" "+j(i)+" ").replace(gt," ").indexOf(t)>-1)return!0;return!1}});var vt=/\r/g,yt=/[\x20\t\r\n\f]+/g;pe.fn.extend({val:function(e){var t,i,n,r=this[0];{if(arguments.length)return n=pe.isFunction(e),this.each(function(i){var r;1===this.nodeType&&(r=n?e.call(this,i,pe(this).val()):e,null==r?r="":"number"==typeof r?r+="":pe.isArray(r)&&(r=pe.map(r,function(e){return null==e?"":e+""})),t=pe.valHooks[this.type]||pe.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))});if(r)return t=pe.valHooks[r.type]||pe.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(i=t.get(r,"value"))?i:(i=r.value,"string"==typeof i?i.replace(vt,""):null==i?"":i)}}}),pe.extend({valHooks:{option:{get:function(e){var t=pe.find.attr(e,"value");return null!=t?t:pe.trim(pe.text(e)).replace(yt," ")}},select:{get:function(e){for(var t,i,n=e.options,r=e.selectedIndex,s="select-one"===e.type||0>r,o=s?null:[],a=s?r+1:n.length,l=0>r?a:s?r:0;a>l;l++)if(i=n[l],(i.selected||l===r)&&(ae.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!pe.nodeName(i.parentNode,"optgroup"))){if(t=pe(i).val(),s)return t;o.push(t)}return o},set:function(e,t){for(var i,n,r=e.options,s=pe.makeArray(t),o=r.length;o--;)n=r[o],(n.selected=pe.inArray(pe.valHooks.option.get(n),s)>-1)&&(i=!0);return i||(e.selectedIndex=-1),s}}}}),pe.each(["radio","checkbox"],function(){pe.valHooks[this]={set:function(e,t){return pe.isArray(t)?e.checked=pe.inArray(pe(e).val(),t)>-1:void 0}},ae.checkOn||(pe.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var wt=/^(?:focusinfocus|focusoutblur)$/;pe.extend(pe.event,{trigger:function(e,t,n,r){var s,o,a,l,p,c,u,h=[n||J],d=oe.call(e,"type")?e.type:e,f=oe.call(e,"namespace")?e.namespace.split("."):[];if(o=a=n=n||J,3!==n.nodeType&&8!==n.nodeType&&!wt.test(d+pe.event.triggered)&&(d.indexOf(".")>-1&&(f=d.split("."),d=f.shift(),f.sort()),p=d.indexOf(":")<0&&"on"+d,e=e[pe.expando]?e:new pe.Event(d,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:pe.makeArray(t,[e]),u=pe.event.special[d]||{},r||!u.trigger||u.trigger.apply(n,t)!==!1)){if(!r&&!u.noBubble&&!pe.isWindow(n)){for(l=u.delegateType||d,wt.test(l+d)||(o=o.parentNode);o;o=o.parentNode)h.push(o),a=o;a===(n.ownerDocument||J)&&h.push(a.defaultView||a.parentWindow||i)}for(s=0;(o=h[s++])&&!e.isPropagationStopped();)e.type=s>1?l:u.bindType||d,c=(De.get(o,"events")||{})[e.type]&&De.get(o,"handle"),c&&c.apply(o,t),c=p&&o[p],c&&c.apply&&Pe(o)&&(e.result=c.apply(o,t),e.result===!1&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||u._default&&u._default.apply(h.pop(),t)!==!1||!Pe(n)||p&&pe.isFunction(n[d])&&!pe.isWindow(n)&&(a=n[p],a&&(n[p]=null),pe.event.triggered=d,n[d](),pe.event.triggered=void 0,a&&(n[p]=a)),e.result}},simulate:function(e,t,i){var n=pe.extend(new pe.Event,i,{type:e,isSimulated:!0});pe.event.trigger(n,null,t)}}),pe.fn.extend({trigger:function(e,t){return this.each(function(){pe.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];return i?pe.event.trigger(e,t,i,!0):void 0}}),pe.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){pe.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}}),pe.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ae.focusin="onfocusin"in i,ae.focusin||pe.each({focus:"focusin",blur:"focusout"},function(e,t){var i=function(e){pe.event.simulate(t,e.target,pe.event.fix(e))};pe.event.special[t]={setup:function(){var n=this.ownerDocument||this,r=De.access(n,t);r||n.addEventListener(e,i,!0),De.access(n,t,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this,r=De.access(n,t)-1;r?De.access(n,t,r):(n.removeEventListener(e,i,!0),De.remove(n,t))}}});var xt=i.location,bt=pe.now(),Tt=/\?/;pe.parseJSON=function(e){return JSON.parse(e+"")},pe.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(n){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||pe.error("Invalid XML: "+e),t};var St=/#.*$/,Ct=/([?&])_=[^&]*/,Et=/^(.*?):[ \t]*([^\r\n]*)$/gm,kt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,At=/^(?:GET|HEAD)$/,Pt=/^\/\//,Dt={},zt={},Mt="*/".concat("*"),Lt=J.createElement("a");Lt.href=xt.href,pe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xt.href,type:"GET",isLocal:kt.test(xt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Mt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":pe.parseJSON,"text xml":pe.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?V(V(e,pe.ajaxSettings),t):V(pe.ajaxSettings,e)},ajaxPrefilter:F(Dt),ajaxTransport:F(zt),ajax:function(e,t){function n(e,t,n,a){var p,u,y,w,b,S=t;2!==x&&(x=2,l&&i.clearTimeout(l),r=void 0,o=a||"",T.readyState=e>0?4:0,p=e>=200&&300>e||304===e,n&&(w=U(h,T,n)),w=$(h,w,T,p),p?(h.ifModified&&(b=T.getResponseHeader("Last-Modified"),b&&(pe.lastModified[s]=b),b=T.getResponseHeader("etag"),b&&(pe.etag[s]=b)),204===e||"HEAD"===h.type?S="nocontent":304===e?S="notmodified":(S=w.state,u=w.data,y=w.error,p=!y)):(y=S,!e&&S||(S="error",0>e&&(e=0))),T.status=e,T.statusText=(t||S)+"",p?m.resolveWith(d,[u,S,T]):m.rejectWith(d,[T,S,y]),T.statusCode(v),v=void 0,c&&f.trigger(p?"ajaxSuccess":"ajaxError",[T,h,p?u:y]),g.fireWith(d,[T,S]),c&&(f.trigger("ajaxComplete",[T,h]),--pe.active||pe.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,s,o,a,l,p,c,u,h=pe.ajaxSetup({},t),d=h.context||h,f=h.context&&(d.nodeType||d.jquery)?pe(d):pe.event,m=pe.Deferred(),g=pe.Callbacks("once memory"),v=h.statusCode||{},y={},w={},x=0,b="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!a)for(a={};t=Et.exec(o);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?o:null},setRequestHeader:function(e,t){var i=e.toLowerCase();return x||(e=w[i]=w[i]||e,y[e]=t),this},overrideMimeType:function(e){return x||(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>x)for(t in e)v[t]=[v[t],e[t]];else T.always(e[T.status]);return this},abort:function(e){var t=e||b;return r&&r.abort(t),n(0,t),this}};if(m.promise(T).complete=g.add,T.success=T.done,T.error=T.fail,h.url=((e||h.url||xt.href)+"").replace(St,"").replace(Pt,xt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=pe.trim(h.dataType||"*").toLowerCase().match(Ee)||[""],null==h.crossDomain){p=J.createElement("a");try{p.href=h.url,p.href=p.href,h.crossDomain=Lt.protocol+"//"+Lt.host!=p.protocol+"//"+p.host}catch(S){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=pe.param(h.data,h.traditional)),G(Dt,h,t,T),2===x)return T;c=pe.event&&h.global,c&&0===pe.active++&&pe.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!At.test(h.type),s=h.url,h.hasContent||(h.data&&(s=h.url+=(Tt.test(s)?"&":"?")+h.data,delete h.data),h.cache===!1&&(h.url=Ct.test(s)?s.replace(Ct,"$1_="+bt++):s+(Tt.test(s)?"&":"?")+"_="+bt++)),h.ifModified&&(pe.lastModified[s]&&T.setRequestHeader("If-Modified-Since",pe.lastModified[s]),pe.etag[s]&&T.setRequestHeader("If-None-Match",pe.etag[s])),(h.data&&h.hasContent&&h.contentType!==!1||t.contentType)&&T.setRequestHeader("Content-Type",h.contentType),T.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Mt+"; q=0.01":""):h.accepts["*"]);for(u in h.headers)T.setRequestHeader(u,h.headers[u]);if(h.beforeSend&&(h.beforeSend.call(d,T,h)===!1||2===x))return T.abort();b="abort";for(u in{success:1,error:1,complete:1})T[u](h[u]);if(r=G(zt,h,t,T)){if(T.readyState=1,c&&f.trigger("ajaxSend",[T,h]),2===x)return T;h.async&&h.timeout>0&&(l=i.setTimeout(function(){T.abort("timeout")},h.timeout));try{x=1,r.send(y,n)}catch(S){if(!(2>x))throw S;n(-1,S)}}else n(-1,"No Transport");return T},getJSON:function(e,t,i){return pe.get(e,t,i,"json")},getScript:function(e,t){return pe.get(e,void 0,t,"script")}}),pe.each(["get","post"],function(e,t){pe[t]=function(e,i,n,r){return pe.isFunction(i)&&(r=r||n,n=i,i=void 0),pe.ajax(pe.extend({url:e,type:t,dataType:r,data:i,success:n},pe.isPlainObject(e)&&e))}}),pe._evalUrl=function(e){return pe.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},pe.fn.extend({wrapAll:function(e){var t;return pe.isFunction(e)?this.each(function(t){pe(this).wrapAll(e.call(this,t))}):(this[0]&&(t=pe(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return pe.isFunction(e)?this.each(function(t){pe(this).wrapInner(e.call(this,t))}):this.each(function(){var t=pe(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=pe.isFunction(e);return this.each(function(i){pe(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(){return this.parent().each(function(){pe.nodeName(this,"body")||pe(this).replaceWith(this.childNodes)}).end()}}),pe.expr.filters.hidden=function(e){return!pe.expr.filters.visible(e)},pe.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var It=/%20/g,Nt=/\[\]$/,Ht=/\r?\n/g,Bt=/^(?:submit|button|image|reset|file)$/i,Xt=/^(?:input|select|textarea|keygen)/i;pe.param=function(e,t){var i,n=[],r=function(e,t){t=pe.isFunction(t)?t():null==t?"":t,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=pe.ajaxSettings&&pe.ajaxSettings.traditional),pe.isArray(e)||e.jquery&&!pe.isPlainObject(e))pe.each(e,function(){r(this.name,this.value)});else for(i in e)K(i,e[i],t,r);return n.join("&").replace(It,"+")},pe.fn.extend({serialize:function(){return pe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=pe.prop(this,"elements");return e?pe.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!pe(this).is(":disabled")&&Xt.test(this.nodeName)&&!Bt.test(e)&&(this.checked||!Xe.test(e))}).map(function(e,t){var i=pe(this).val();return null==i?null:pe.isArray(i)?pe.map(i,function(e){return{name:t.name,value:e.replace(Ht,"\r\n")}}):{name:t.name,value:i.replace(Ht,"\r\n")}}).get()}}),pe.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Ot={0:200,1223:204},Yt=pe.ajaxSettings.xhr();ae.cors=!!Yt&&"withCredentials"in Yt,ae.ajax=Yt=!!Yt,pe.ajaxTransport(function(e){var t,n;return ae.cors||Yt&&!e.crossDomain?{send:function(r,s){var o,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)a[o]=e.xhrFields[o];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),
e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(o in r)a.setRequestHeader(o,r[o]);t=function(e){return function(){t&&(t=n=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(Ot[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),n=a.onerror=t("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout(function(){t&&n()})},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(l){if(t)throw l}},abort:function(){t&&t()}}:void 0}),pe.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return pe.globalEval(e),e}}}),pe.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),pe.ajaxTransport("script",function(e){if(e.crossDomain){var t,i;return{send:function(n,r){t=pe("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&r("error"===e.type?404:200,e.type)}),J.head.appendChild(t[0])},abort:function(){i&&i()}}}});var _t=[],Rt=/(=)\?(?=&|$)|\?\?/;pe.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=_t.pop()||pe.expando+"_"+bt++;return this[e]=!0,e}}),pe.ajaxPrefilter("json jsonp",function(e,t,n){var r,s,o,a=e.jsonp!==!1&&(Rt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Rt.test(e.data)&&"data");return a||"jsonp"===e.dataTypes[0]?(r=e.jsonpCallback=pe.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Rt,"$1"+r):e.jsonp!==!1&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||pe.error(r+" was not called"),o[0]},e.dataTypes[0]="json",s=i[r],i[r]=function(){o=arguments},n.always(function(){void 0===s?pe(i).removeProp(r):i[r]=s,e[r]&&(e.jsonpCallback=t.jsonpCallback,_t.push(r)),o&&pe.isFunction(s)&&s(o[0]),o=s=void 0}),"script"):void 0}),pe.parseHTML=function(e,t,i){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(i=t,t=!1),t=t||J;var n=ye.exec(e),r=!i&&[];return n?[t.createElement(n[1])]:(n=g([e],t,r),r&&r.length&&pe(r).remove(),pe.merge([],n.childNodes))};var Wt=pe.fn.load;pe.fn.load=function(e,t,i){if("string"!=typeof e&&Wt)return Wt.apply(this,arguments);var n,r,s,o=this,a=e.indexOf(" ");return a>-1&&(n=pe.trim(e.slice(a)),e=e.slice(0,a)),pe.isFunction(t)?(i=t,t=void 0):t&&"object"==typeof t&&(r="POST"),o.length>0&&pe.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){s=arguments,o.html(n?pe("<div>").append(pe.parseHTML(e)).find(n):e)}).always(i&&function(e,t){o.each(function(){i.apply(this,s||[e.responseText,t,e])})}),this},pe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){pe.fn[t]=function(e){return this.on(t,e)}}),pe.expr.filters.animated=function(e){return pe.grep(pe.timers,function(t){return e===t.elem}).length},pe.offset={setOffset:function(e,t,i){var n,r,s,o,a,l,p,c=pe.css(e,"position"),u=pe(e),h={};"static"===c&&(e.style.position="relative"),a=u.offset(),s=pe.css(e,"top"),l=pe.css(e,"left"),p=("absolute"===c||"fixed"===c)&&(s+l).indexOf("auto")>-1,p?(n=u.position(),o=n.top,r=n.left):(o=parseFloat(s)||0,r=parseFloat(l)||0),pe.isFunction(t)&&(t=t.call(e,i,pe.extend({},a))),null!=t.top&&(h.top=t.top-a.top+o),null!=t.left&&(h.left=t.left-a.left+r),"using"in t?t.using.call(e,h):u.css(h)}},pe.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){pe.offset.setOffset(this,e,t)});var t,i,n=this[0],r={top:0,left:0},s=n&&n.ownerDocument;if(s)return t=s.documentElement,pe.contains(t,n)?(r=n.getBoundingClientRect(),i=Q(s),{top:r.top+i.pageYOffset-t.clientTop,left:r.left+i.pageXOffset-t.clientLeft}):r},position:function(){if(this[0]){var e,t,i=this[0],n={top:0,left:0};return"fixed"===pe.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),pe.nodeName(e[0],"html")||(n=e.offset()),n.top+=pe.css(e[0],"borderTopWidth",!0),n.left+=pe.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-pe.css(i,"marginTop",!0),left:t.left-n.left-pe.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===pe.css(e,"position");)e=e.offsetParent;return e||it})}}),pe.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var i="pageYOffset"===t;pe.fn[e]=function(n){return Ae(this,function(e,n,r){var s=Q(e);return void 0===r?s?s[t]:e[n]:void(s?s.scrollTo(i?s.pageXOffset:r,i?r:s.pageYOffset):e[n]=r)},e,n,arguments.length)}}),pe.each(["top","left"],function(e,t){pe.cssHooks[t]=M(ae.pixelPosition,function(e,i){return i?(i=z(e,t),Je.test(i)?pe(e).position()[t]+"px":i):void 0})}),pe.each({Height:"height",Width:"width"},function(e,t){pe.each({padding:"inner"+e,content:t,"":"outer"+e},function(i,n){pe.fn[n]=function(n,r){var s=arguments.length&&(i||"boolean"!=typeof n),o=i||(n===!0||r===!0?"margin":"border");return Ae(this,function(t,i,n){var r;return pe.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===n?pe.css(t,i,o):pe.style(t,i,n,o)},t,s?n:void 0,s,null)}})}),pe.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},size:function(){return this.length}}),pe.fn.andSelf=pe.fn.addBack,n=[],r=function(){return pe}.apply(t,n),!(void 0!==r&&(e.exports=r));var qt=i.jQuery,jt=i.$;return pe.noConflict=function(e){return i.$===pe&&(i.$=jt),e&&i.jQuery===pe&&(i.jQuery=qt),pe},s||(i.jQuery=i.$=pe),pe})},function(e,t,i){!function(){"use strict";function e(e){e.fn.swiper=function(t){var n;return e(this).each(function(){var e=new i(this,t);n||(n=e)}),n}}var t,i=function(e,r){function s(e){return Math.floor(e)}function o(){x.autoplayTimeoutId=setTimeout(function(){x.params.loop?(x.fixLoop(),x._slideNext(),x.emit("onAutoplay",x)):x.isEnd?r.autoplayStopOnLast?x.stopAutoplay():(x._slideTo(0),x.emit("onAutoplay",x)):(x._slideNext(),x.emit("onAutoplay",x))},x.params.autoplay)}function a(e,i){var n=t(e.target);if(!n.is(i))if("string"==typeof i)n=n.parents(i);else if(i.nodeType){var r;return n.parents().each(function(e,t){t===i&&(r=i)}),r?i:void 0}if(0!==n.length)return n[0]}function l(e,t){t=t||{};var i=window.MutationObserver||window.WebkitMutationObserver,n=new i(function(e){e.forEach(function(e){x.onResize(!0),x.emit("onObserverUpdate",x,e)})});n.observe(e,{attributes:"undefined"==typeof t.attributes?!0:t.attributes,childList:"undefined"==typeof t.childList?!0:t.childList,characterData:"undefined"==typeof t.characterData?!0:t.characterData}),x.observers.push(n)}function p(e){e.originalEvent&&(e=e.originalEvent);var t=e.keyCode||e.charCode;if(!x.params.allowSwipeToNext&&(x.isHorizontal()&&39===t||!x.isHorizontal()&&40===t))return!1;if(!x.params.allowSwipeToPrev&&(x.isHorizontal()&&37===t||!x.isHorizontal()&&38===t))return!1;if(!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||document.activeElement&&document.activeElement.nodeName&&("input"===document.activeElement.nodeName.toLowerCase()||"textarea"===document.activeElement.nodeName.toLowerCase()))){if(37===t||39===t||38===t||40===t){var i=!1;if(x.container.parents(".swiper-slide").length>0&&0===x.container.parents(".swiper-slide-active").length)return;var n={left:window.pageXOffset,top:window.pageYOffset},r=window.innerWidth,s=window.innerHeight,o=x.container.offset();x.rtl&&(o.left=o.left-x.container[0].scrollLeft);for(var a=[[o.left,o.top],[o.left+x.width,o.top],[o.left,o.top+x.height],[o.left+x.width,o.top+x.height]],l=0;l<a.length;l++){var p=a[l];p[0]>=n.left&&p[0]<=n.left+r&&p[1]>=n.top&&p[1]<=n.top+s&&(i=!0)}if(!i)return}x.isHorizontal()?(37!==t&&39!==t||(e.preventDefault?e.preventDefault():e.returnValue=!1),(39===t&&!x.rtl||37===t&&x.rtl)&&x.slideNext(),(37===t&&!x.rtl||39===t&&x.rtl)&&x.slidePrev()):(38!==t&&40!==t||(e.preventDefault?e.preventDefault():e.returnValue=!1),40===t&&x.slideNext(),38===t&&x.slidePrev())}}function c(e){e.originalEvent&&(e=e.originalEvent);var t=x.mousewheel.event,i=0,n=x.rtl?-1:1;if("mousewheel"===t)if(x.params.mousewheelForceToAxis)if(x.isHorizontal()){if(!(Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)))return;i=e.wheelDeltaX*n}else{if(!(Math.abs(e.wheelDeltaY)>Math.abs(e.wheelDeltaX)))return;i=e.wheelDeltaY}else i=Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)?-e.wheelDeltaX*n:-e.wheelDeltaY;else if("DOMMouseScroll"===t)i=-e.detail;else if("wheel"===t)if(x.params.mousewheelForceToAxis)if(x.isHorizontal()){if(!(Math.abs(e.deltaX)>Math.abs(e.deltaY)))return;i=-e.deltaX*n}else{if(!(Math.abs(e.deltaY)>Math.abs(e.deltaX)))return;i=-e.deltaY}else i=Math.abs(e.deltaX)>Math.abs(e.deltaY)?-e.deltaX*n:-e.deltaY;if(0!==i){if(x.params.mousewheelInvert&&(i=-i),x.params.freeMode){var r=x.getWrapperTranslate()+i*x.params.mousewheelSensitivity,s=x.isBeginning,o=x.isEnd;if(r>=x.minTranslate()&&(r=x.minTranslate()),r<=x.maxTranslate()&&(r=x.maxTranslate()),x.setWrapperTransition(0),x.setWrapperTranslate(r),x.updateProgress(),x.updateActiveIndex(),(!s&&x.isBeginning||!o&&x.isEnd)&&x.updateClasses(),x.params.freeModeSticky?(clearTimeout(x.mousewheel.timeout),x.mousewheel.timeout=setTimeout(function(){x.slideReset()},300)):x.params.lazyLoading&&x.lazy&&x.lazy.load(),0===r||r===x.maxTranslate())return}else{if((new window.Date).getTime()-x.mousewheel.lastScrollTime>60)if(0>i)if(x.isEnd&&!x.params.loop||x.animating){if(x.params.mousewheelReleaseOnEdges)return!0}else x.slideNext();else if(x.isBeginning&&!x.params.loop||x.animating){if(x.params.mousewheelReleaseOnEdges)return!0}else x.slidePrev();x.mousewheel.lastScrollTime=(new window.Date).getTime()}return x.params.autoplay&&x.stopAutoplay(),e.preventDefault?e.preventDefault():e.returnValue=!1,!1}}function u(e,i){e=t(e);var n,r,s,o=x.rtl?-1:1;n=e.attr("data-swiper-parallax")||"0",r=e.attr("data-swiper-parallax-x"),s=e.attr("data-swiper-parallax-y"),r||s?(r=r||"0",s=s||"0"):x.isHorizontal()?(r=n,s="0"):(s=n,r="0"),r=r.indexOf("%")>=0?parseInt(r,10)*i*o+"%":r*i*o+"px",s=s.indexOf("%")>=0?parseInt(s,10)*i+"%":s*i+"px",e.transform("translate3d("+r+", "+s+",0px)")}function h(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 i))return new i(e,r);var d={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},f=r&&r.virtualTranslate;r=r||{};var m={};for(var g in r)if("object"!=typeof r[g]||null===r[g]||(r[g].nodeType||r[g]===window||r[g]===document||"undefined"!=typeof n&&r[g]instanceof n||"undefined"!=typeof jQuery&&r[g]instanceof jQuery))m[g]=r[g];else{m[g]={};for(var v in r[g])m[g][v]=r[g][v]}for(var y in d)if("undefined"==typeof r[y])r[y]=d[y];else if("object"==typeof r[y])for(var w in d[y])"undefined"==typeof r[y][w]&&(r[y][w]=d[y][w]);var x=this;if(x.params=r,x.originalParams=m,x.classNames=[],"undefined"!=typeof t&&"undefined"!=typeof n&&(t=n),("undefined"!=typeof t||(t="undefined"==typeof n?window.Dom7||window.Zepto||window.jQuery:n))&&(x.$=t,x.currentBreakpoint=void 0,x.getActiveBreakpoint=function(){if(!x.params.breakpoints)return!1;var e,t=!1,i=[];for(e in x.params.breakpoints)x.params.breakpoints.hasOwnProperty(e)&&i.push(e);i.sort(function(e,t){return parseInt(e,10)>parseInt(t,10)});for(var n=0;n<i.length;n++)e=i[n],e>=window.innerWidth&&!t&&(t=e);return t||"max"},x.setBreakpoint=function(){var e=x.getActiveBreakpoint();if(e&&x.currentBreakpoint!==e){var t=e in x.params.breakpoints?x.params.breakpoints[e]:x.originalParams,i=x.params.loop&&t.slidesPerView!==x.params.slidesPerView;for(var n in t)x.params[n]=t[n];x.currentBreakpoint=e,i&&x.destroyLoop&&x.reLoop(!0)}},x.params.breakpoints&&x.setBreakpoint(),x.container=t(e),0!==x.container.length)){if(x.container.length>1){var b=[];return x.container.each(function(){b.push(new i(this,r))}),b}x.container[0].swiper=x,x.container.data("swiper",x),x.classNames.push("swiper-container-"+x.params.direction),x.params.freeMode&&x.classNames.push("swiper-container-free-mode"),x.support.flexbox||(x.classNames.push("swiper-container-no-flexbox"),x.params.slidesPerColumn=1),x.params.autoHeight&&x.classNames.push("swiper-container-autoheight"),(x.params.parallax||x.params.watchSlidesVisibility)&&(x.params.watchSlidesProgress=!0),["cube","coverflow","flip"].indexOf(x.params.effect)>=0&&(x.support.transforms3d?(x.params.watchSlidesProgress=!0,x.classNames.push("swiper-container-3d")):x.params.effect="slide"),"slide"!==x.params.effect&&x.classNames.push("swiper-container-"+x.params.effect),"cube"===x.params.effect&&(x.params.resistanceRatio=0,x.params.slidesPerView=1,x.params.slidesPerColumn=1,x.params.slidesPerGroup=1,x.params.centeredSlides=!1,x.params.spaceBetween=0,x.params.virtualTranslate=!0,x.params.setWrapperSize=!1),"fade"!==x.params.effect&&"flip"!==x.params.effect||(x.params.slidesPerView=1,x.params.slidesPerColumn=1,x.params.slidesPerGroup=1,x.params.watchSlidesProgress=!0,x.params.spaceBetween=0,x.params.setWrapperSize=!1,"undefined"==typeof f&&(x.params.virtualTranslate=!0)),x.params.grabCursor&&x.support.touch&&(x.params.grabCursor=!1),x.wrapper=x.container.children("."+x.params.wrapperClass),x.params.pagination&&(x.paginationContainer=t(x.params.pagination),x.params.uniqueNavElements&&"string"==typeof x.params.pagination&&x.paginationContainer.length>1&&1===x.container.find(x.params.pagination).length&&(x.paginationContainer=x.container.find(x.params.pagination)),"bullets"===x.params.paginationType&&x.params.paginationClickable?x.paginationContainer.addClass("swiper-pagination-clickable"):x.params.paginationClickable=!1,x.paginationContainer.addClass("swiper-pagination-"+x.params.paginationType)),(x.params.nextButton||x.params.prevButton)&&(x.params.nextButton&&(x.nextButton=t(x.params.nextButton),x.params.uniqueNavElements&&"string"==typeof x.params.nextButton&&x.nextButton.length>1&&1===x.container.find(x.params.nextButton).length&&(x.nextButton=x.container.find(x.params.nextButton))),x.params.prevButton&&(x.prevButton=t(x.params.prevButton),x.params.uniqueNavElements&&"string"==typeof x.params.prevButton&&x.prevButton.length>1&&1===x.container.find(x.params.prevButton).length&&(x.prevButton=x.container.find(x.params.prevButton)))),x.isHorizontal=function(){return"horizontal"===x.params.direction},x.rtl=x.isHorizontal()&&("rtl"===x.container[0].dir.toLowerCase()||"rtl"===x.container.css("direction")),x.rtl&&x.classNames.push("swiper-container-rtl"),x.rtl&&(x.wrongRTL="-webkit-box"===x.wrapper.css("display")),x.params.slidesPerColumn>1&&x.classNames.push("swiper-container-multirow"),x.device.android&&x.classNames.push("swiper-container-android"),x.container.addClass(x.classNames.join(" ")),x.translate=0,x.progress=0,x.velocity=0,x.lockSwipeToNext=function(){x.params.allowSwipeToNext=!1},x.lockSwipeToPrev=function(){x.params.allowSwipeToPrev=!1},x.lockSwipes=function(){x.params.allowSwipeToNext=x.params.allowSwipeToPrev=!1},x.unlockSwipeToNext=function(){x.params.allowSwipeToNext=!0},x.unlockSwipeToPrev=function(){x.params.allowSwipeToPrev=!0},x.unlockSwipes=function(){x.params.allowSwipeToNext=x.params.allowSwipeToPrev=!0},x.params.grabCursor&&(x.container[0].style.cursor="move",x.container[0].style.cursor="-webkit-grab",x.container[0].style.cursor="-moz-grab",x.container[0].style.cursor="grab"),x.imagesToLoad=[],x.imagesLoaded=0,x.loadImage=function(e,t,i,n,r){function s(){r&&r()}var o;e.complete&&n?s():t?(o=new window.Image,o.onload=s,o.onerror=s,i&&(o.srcset=i),t&&(o.src=t)):s()},x.preloadImages=function(){function e(){"undefined"!=typeof x&&null!==x&&(void 0!==x.imagesLoaded&&x.imagesLoaded++,x.imagesLoaded===x.imagesToLoad.length&&(x.params.updateOnImagesReady&&x.update(),x.emit("onImagesReady",x)))}x.imagesToLoad=x.container.find("img");for(var t=0;t<x.imagesToLoad.length;t++)x.loadImage(x.imagesToLoad[t],x.imagesToLoad[t].currentSrc||x.imagesToLoad[t].getAttribute("src"),x.imagesToLoad[t].srcset||x.imagesToLoad[t].getAttribute("srcset"),!0,e)},x.autoplayTimeoutId=void 0,x.autoplaying=!1,x.autoplayPaused=!1,x.startAutoplay=function(){return"undefined"!=typeof x.autoplayTimeoutId?!1:x.params.autoplay?x.autoplaying?!1:(x.autoplaying=!0,x.emit("onAutoplayStart",x),void o()):!1},x.stopAutoplay=function(e){x.autoplayTimeoutId&&(x.autoplayTimeoutId&&clearTimeout(x.autoplayTimeoutId),x.autoplaying=!1,x.autoplayTimeoutId=void 0,x.emit("onAutoplayStop",x))},x.pauseAutoplay=function(e){x.autoplayPaused||(x.autoplayTimeoutId&&clearTimeout(x.autoplayTimeoutId),x.autoplayPaused=!0,0===e?(x.autoplayPaused=!1,o()):x.wrapper.transitionEnd(function(){x&&(x.autoplayPaused=!1,x.autoplaying?o():x.stopAutoplay())}))},x.minTranslate=function(){return-x.snapGrid[0]},x.maxTranslate=function(){return-x.snapGrid[x.snapGrid.length-1]},x.updateAutoHeight=function(){var e=x.slides.eq(x.activeIndex)[0];if("undefined"!=typeof e){var t=e.offsetHeight;t&&x.wrapper.css("height",t+"px")}},x.updateContainerSize=function(){var e,t;e="undefined"!=typeof x.params.width?x.params.width:x.container[0].clientWidth,t="undefined"!=typeof x.params.height?x.params.height:x.container[0].clientHeight,0===e&&x.isHorizontal()||0===t&&!x.isHorizontal()||(e=e-parseInt(x.container.css("padding-left"),10)-parseInt(x.container.css("padding-right"),10),t=t-parseInt(x.container.css("padding-top"),10)-parseInt(x.container.css("padding-bottom"),10),x.width=e,x.height=t,x.size=x.isHorizontal()?x.width:x.height)},x.updateSlidesSize=function(){x.slides=x.wrapper.children("."+x.params.slideClass),x.snapGrid=[],x.slidesGrid=[],x.slidesSizesGrid=[];var e,t=x.params.spaceBetween,i=-x.params.slidesOffsetBefore,n=0,r=0;if("undefined"!=typeof x.size){"string"==typeof t&&t.indexOf("%")>=0&&(t=parseFloat(t.replace("%",""))/100*x.size),x.virtualSize=-t,x.rtl?x.slides.css({marginLeft:"",marginTop:""}):x.slides.css({marginRight:"",marginBottom:""});var o;x.params.slidesPerColumn>1&&(o=Math.floor(x.slides.length/x.params.slidesPerColumn)===x.slides.length/x.params.slidesPerColumn?x.slides.length:Math.ceil(x.slides.length/x.params.slidesPerColumn)*x.params.slidesPerColumn,"auto"!==x.params.slidesPerView&&"row"===x.params.slidesPerColumnFill&&(o=Math.max(o,x.params.slidesPerView*x.params.slidesPerColumn)));var a,l=x.params.slidesPerColumn,p=o/l,c=p-(x.params.slidesPerColumn*p-x.slides.length);for(e=0;e<x.slides.length;e++){a=0;var u=x.slides.eq(e);if(x.params.slidesPerColumn>1){var h,d,f;"column"===x.params.slidesPerColumnFill?(d=Math.floor(e/l),f=e-d*l,(d>c||d===c&&f===l-1)&&++f>=l&&(f=0,d++),h=d+f*o/l,u.css({"-webkit-box-ordinal-group":h,"-moz-box-ordinal-group":h,"-ms-flex-order":h,"-webkit-order":h,order:h})):(f=Math.floor(e/p),d=e-f*p),u.css({"margin-top":0!==f&&x.params.spaceBetween&&x.params.spaceBetween+"px"}).attr("data-swiper-column",d).attr("data-swiper-row",f)}"none"!==u.css("display")&&("auto"===x.params.slidesPerView?(a=x.isHorizontal()?u.outerWidth(!0):u.outerHeight(!0),x.params.roundLengths&&(a=s(a))):(a=(x.size-(x.params.slidesPerView-1)*t)/x.params.slidesPerView,x.params.roundLengths&&(a=s(a)),x.isHorizontal()?x.slides[e].style.width=a+"px":x.slides[e].style.height=a+"px"),x.slides[e].swiperSlideSize=a,x.slidesSizesGrid.push(a),x.params.centeredSlides?(i=i+a/2+n/2+t,0===e&&(i=i-x.size/2-t),Math.abs(i)<.001&&(i=0),r%x.params.slidesPerGroup===0&&x.snapGrid.push(i),x.slidesGrid.push(i)):(r%x.params.slidesPerGroup===0&&x.snapGrid.push(i),x.slidesGrid.push(i),i=i+a+t),x.virtualSize+=a+t,n=a,r++)}x.virtualSize=Math.max(x.virtualSize,x.size)+x.params.slidesOffsetAfter;var m;if(x.rtl&&x.wrongRTL&&("slide"===x.params.effect||"coverflow"===x.params.effect)&&x.wrapper.css({width:x.virtualSize+x.params.spaceBetween+"px"}),x.support.flexbox&&!x.params.setWrapperSize||(x.isHorizontal()?x.wrapper.css({width:x.virtualSize+x.params.spaceBetween+"px"}):x.wrapper.css({height:x.virtualSize+x.params.spaceBetween+"px"})),x.params.slidesPerColumn>1&&(x.virtualSize=(a+x.params.spaceBetween)*o,x.virtualSize=Math.ceil(x.virtualSize/x.params.slidesPerColumn)-x.params.spaceBetween,x.wrapper.css({width:x.virtualSize+x.params.spaceBetween+"px"}),x.params.centeredSlides)){for(m=[],e=0;e<x.snapGrid.length;e++)x.snapGrid[e]<x.virtualSize+x.snapGrid[0]&&m.push(x.snapGrid[e]);x.snapGrid=m}if(!x.params.centeredSlides){for(m=[],e=0;e<x.snapGrid.length;e++)x.snapGrid[e]<=x.virtualSize-x.size&&m.push(x.snapGrid[e]);x.snapGrid=m,Math.floor(x.virtualSize-x.size)-Math.floor(x.snapGrid[x.snapGrid.length-1])>1&&x.snapGrid.push(x.virtualSize-x.size)}0===x.snapGrid.length&&(x.snapGrid=[0]),0!==x.params.spaceBetween&&(x.isHorizontal()?x.rtl?x.slides.css({marginLeft:t+"px"}):x.slides.css({marginRight:t+"px"}):x.slides.css({marginBottom:t+"px"})),x.params.watchSlidesProgress&&x.updateSlidesOffset()}},x.updateSlidesOffset=function(){for(var e=0;e<x.slides.length;e++)x.slides[e].swiperSlideOffset=x.isHorizontal()?x.slides[e].offsetLeft:x.slides[e].offsetTop},x.updateSlidesProgress=function(e){if("undefined"==typeof e&&(e=x.translate||0),0!==x.slides.length){"undefined"==typeof x.slides[0].swiperSlideOffset&&x.updateSlidesOffset();var t=-e;x.rtl&&(t=e),x.slides.removeClass(x.params.slideVisibleClass);for(var i=0;i<x.slides.length;i++){var n=x.slides[i],r=(t-n.swiperSlideOffset)/(n.swiperSlideSize+x.params.spaceBetween);if(x.params.watchSlidesVisibility){var s=-(t-n.swiperSlideOffset),o=s+x.slidesSizesGrid[i],a=s>=0&&s<x.size||o>0&&o<=x.size||0>=s&&o>=x.size;a&&x.slides.eq(i).addClass(x.params.slideVisibleClass)}n.progress=x.rtl?-r:r}}},x.updateProgress=function(e){"undefined"==typeof e&&(e=x.translate||0);var t=x.maxTranslate()-x.minTranslate(),i=x.isBeginning,n=x.isEnd;0===t?(x.progress=0,x.isBeginning=x.isEnd=!0):(x.progress=(e-x.minTranslate())/t,x.isBeginning=x.progress<=0,x.isEnd=x.progress>=1),x.isBeginning&&!i&&x.emit("onReachBeginning",x),x.isEnd&&!n&&x.emit("onReachEnd",x),x.params.watchSlidesProgress&&x.updateSlidesProgress(e),x.emit("onProgress",x,x.progress)},x.updateActiveIndex=function(){var e,t,i,n=x.rtl?x.translate:-x.translate;for(t=0;t<x.slidesGrid.length;t++)"undefined"!=typeof x.slidesGrid[t+1]?n>=x.slidesGrid[t]&&n<x.slidesGrid[t+1]-(x.slidesGrid[t+1]-x.slidesGrid[t])/2?e=t:n>=x.slidesGrid[t]&&n<x.slidesGrid[t+1]&&(e=t+1):n>=x.slidesGrid[t]&&(e=t);(0>e||"undefined"==typeof e)&&(e=0),i=Math.floor(e/x.params.slidesPerGroup),i>=x.snapGrid.length&&(i=x.snapGrid.length-1),e!==x.activeIndex&&(x.snapIndex=i,x.previousIndex=x.activeIndex,x.activeIndex=e,x.updateClasses())},x.updateClasses=function(){x.slides.removeClass(x.params.slideActiveClass+" "+x.params.slideNextClass+" "+x.params.slidePrevClass);var e=x.slides.eq(x.activeIndex);e.addClass(x.params.slideActiveClass);var i=e.next("."+x.params.slideClass).addClass(x.params.slideNextClass);x.params.loop&&0===i.length&&x.slides.eq(0).addClass(x.params.slideNextClass);var n=e.prev("."+x.params.slideClass).addClass(x.params.slidePrevClass);if(x.params.loop&&0===n.length&&x.slides.eq(-1).addClass(x.params.slidePrevClass),x.paginationContainer&&x.paginationContainer.length>0){var r,s=x.params.loop?Math.ceil((x.slides.length-2*x.loopedSlides)/x.params.slidesPerGroup):x.snapGrid.length;if(x.params.loop?(r=Math.ceil((x.activeIndex-x.loopedSlides)/x.params.slidesPerGroup),r>x.slides.length-1-2*x.loopedSlides&&(r-=x.slides.length-2*x.loopedSlides),r>s-1&&(r-=s),0>r&&"bullets"!==x.params.paginationType&&(r=s+r)):r="undefined"!=typeof x.snapIndex?x.snapIndex:x.activeIndex||0,"bullets"===x.params.paginationType&&x.bullets&&x.bullets.length>0&&(x.bullets.removeClass(x.params.bulletActiveClass),x.paginationContainer.length>1?x.bullets.each(function(){t(this).index()===r&&t(this).addClass(x.params.bulletActiveClass)}):x.bullets.eq(r).addClass(x.params.bulletActiveClass)),"fraction"===x.params.paginationType&&(x.paginationContainer.find("."+x.params.paginationCurrentClass).text(r+1),x.paginationContainer.find("."+x.params.paginationTotalClass).text(s)),"progress"===x.params.paginationType){var o=(r+1)/s,a=o,l=1;x.isHorizontal()||(l=o,a=1),x.paginationContainer.find("."+x.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX("+a+") scaleY("+l+")").transition(x.params.speed)}"custom"===x.params.paginationType&&x.params.paginationCustomRender&&(x.paginationContainer.html(x.params.paginationCustomRender(x,r+1,s)),x.emit("onPaginationRendered",x,x.paginationContainer[0]))}x.params.loop||(x.params.prevButton&&x.prevButton&&x.prevButton.length>0&&(x.isBeginning?(x.prevButton.addClass(x.params.buttonDisabledClass),x.params.a11y&&x.a11y&&x.a11y.disable(x.prevButton)):(x.prevButton.removeClass(x.params.buttonDisabledClass),x.params.a11y&&x.a11y&&x.a11y.enable(x.prevButton))),x.params.nextButton&&x.nextButton&&x.nextButton.length>0&&(x.isEnd?(x.nextButton.addClass(x.params.buttonDisabledClass),x.params.a11y&&x.a11y&&x.a11y.disable(x.nextButton)):(x.nextButton.removeClass(x.params.buttonDisabledClass),x.params.a11y&&x.a11y&&x.a11y.enable(x.nextButton))))},x.updatePagination=function(){if(x.params.pagination&&x.paginationContainer&&x.paginationContainer.length>0){var e="";if("bullets"===x.params.paginationType){for(var t=x.params.loop?Math.ceil((x.slides.length-2*x.loopedSlides)/x.params.slidesPerGroup):x.snapGrid.length,i=0;t>i;i++)e+=x.params.paginationBulletRender?x.params.paginationBulletRender(i,x.params.bulletClass):"<"+x.params.paginationElement+' class="'+x.params.bulletClass+'"></'+x.params.paginationElement+">";x.paginationContainer.html(e),x.bullets=x.paginationContainer.find("."+x.params.bulletClass),x.params.paginationClickable&&x.params.a11y&&x.a11y&&x.a11y.initPagination()}"fraction"===x.params.paginationType&&(e=x.params.paginationFractionRender?x.params.paginationFractionRender(x,x.params.paginationCurrentClass,x.params.paginationTotalClass):'<span class="'+x.params.paginationCurrentClass+'"></span> / <span class="'+x.params.paginationTotalClass+'"></span>',x.paginationContainer.html(e)),"progress"===x.params.paginationType&&(e=x.params.paginationProgressRender?x.params.paginationProgressRender(x,x.params.paginationProgressbarClass):'<span class="'+x.params.paginationProgressbarClass+'"></span>',x.paginationContainer.html(e)),"custom"!==x.params.paginationType&&x.emit("onPaginationRendered",x,x.paginationContainer[0])}},x.update=function(e){function t(){n=Math.min(Math.max(x.translate,x.maxTranslate()),x.minTranslate()),x.setWrapperTranslate(n),x.updateActiveIndex(),x.updateClasses()}if(x.updateContainerSize(),x.updateSlidesSize(),x.updateProgress(),x.updatePagination(),x.updateClasses(),x.params.scrollbar&&x.scrollbar&&x.scrollbar.set(),e){var i,n;x.controller&&x.controller.spline&&(x.controller.spline=void 0),x.params.freeMode?(t(),x.params.autoHeight&&x.updateAutoHeight()):(i=("auto"===x.params.slidesPerView||x.params.slidesPerView>1)&&x.isEnd&&!x.params.centeredSlides?x.slideTo(x.slides.length-1,0,!1,!0):x.slideTo(x.activeIndex,0,!1,!0),i||t())}else x.params.autoHeight&&x.updateAutoHeight()},x.onResize=function(e){x.params.breakpoints&&x.setBreakpoint();var t=x.params.allowSwipeToPrev,i=x.params.allowSwipeToNext;x.params.allowSwipeToPrev=x.params.allowSwipeToNext=!0,x.updateContainerSize(),x.updateSlidesSize(),("auto"===x.params.slidesPerView||x.params.freeMode||e)&&x.updatePagination(),x.params.scrollbar&&x.scrollbar&&x.scrollbar.set(),x.controller&&x.controller.spline&&(x.controller.spline=void 0);var n=!1;if(x.params.freeMode){var r=Math.min(Math.max(x.translate,x.maxTranslate()),x.minTranslate());x.setWrapperTranslate(r),x.updateActiveIndex(),x.updateClasses(),x.params.autoHeight&&x.updateAutoHeight()}else x.updateClasses(),n=("auto"===x.params.slidesPerView||x.params.slidesPerView>1)&&x.isEnd&&!x.params.centeredSlides?x.slideTo(x.slides.length-1,0,!1,!0):x.slideTo(x.activeIndex,0,!1,!0);x.params.lazyLoading&&!n&&x.lazy&&x.lazy.load(),x.params.allowSwipeToPrev=t,x.params.allowSwipeToNext=i};var T=["mousedown","mousemove","mouseup"];window.navigator.pointerEnabled?T=["pointerdown","pointermove","pointerup"]:window.navigator.msPointerEnabled&&(T=["MSPointerDown","MSPointerMove","MSPointerUp"]),x.touchEvents={start:x.support.touch||!x.params.simulateTouch?"touchstart":T[0],move:x.support.touch||!x.params.simulateTouch?"touchmove":T[1],end:x.support.touch||!x.params.simulateTouch?"touchend":T[2]},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===x.params.touchEventsTarget?x.container:x.wrapper).addClass("swiper-wp8-"+x.params.direction),x.initEvents=function(e){var t=e?"off":"on",i=e?"removeEventListener":"addEventListener",n="container"===x.params.touchEventsTarget?x.container[0]:x.wrapper[0],s=x.support.touch?n:document,o=!!x.params.nested;x.browser.ie?(n[i](x.touchEvents.start,x.onTouchStart,!1),
s[i](x.touchEvents.move,x.onTouchMove,o),s[i](x.touchEvents.end,x.onTouchEnd,!1)):(x.support.touch&&(n[i](x.touchEvents.start,x.onTouchStart,!1),n[i](x.touchEvents.move,x.onTouchMove,o),n[i](x.touchEvents.end,x.onTouchEnd,!1)),!r.simulateTouch||x.device.ios||x.device.android||(n[i]("mousedown",x.onTouchStart,!1),document[i]("mousemove",x.onTouchMove,o),document[i]("mouseup",x.onTouchEnd,!1))),window[i]("resize",x.onResize),x.params.nextButton&&x.nextButton&&x.nextButton.length>0&&(x.nextButton[t]("click",x.onClickNext),x.params.a11y&&x.a11y&&x.nextButton[t]("keydown",x.a11y.onEnterKey)),x.params.prevButton&&x.prevButton&&x.prevButton.length>0&&(x.prevButton[t]("click",x.onClickPrev),x.params.a11y&&x.a11y&&x.prevButton[t]("keydown",x.a11y.onEnterKey)),x.params.pagination&&x.params.paginationClickable&&(x.paginationContainer[t]("click","."+x.params.bulletClass,x.onClickIndex),x.params.a11y&&x.a11y&&x.paginationContainer[t]("keydown","."+x.params.bulletClass,x.a11y.onEnterKey)),(x.params.preventClicks||x.params.preventClicksPropagation)&&n[i]("click",x.preventClicks,!0)},x.attachEvents=function(){x.initEvents()},x.detachEvents=function(){x.initEvents(!0)},x.allowClick=!0,x.preventClicks=function(e){x.allowClick||(x.params.preventClicks&&e.preventDefault(),x.params.preventClicksPropagation&&x.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))},x.onClickNext=function(e){e.preventDefault(),x.isEnd&&!x.params.loop||x.slideNext()},x.onClickPrev=function(e){e.preventDefault(),x.isBeginning&&!x.params.loop||x.slidePrev()},x.onClickIndex=function(e){e.preventDefault();var i=t(this).index()*x.params.slidesPerGroup;x.params.loop&&(i+=x.loopedSlides),x.slideTo(i)},x.updateClickedSlide=function(e){var i=a(e,"."+x.params.slideClass),n=!1;if(i)for(var r=0;r<x.slides.length;r++)x.slides[r]===i&&(n=!0);if(!i||!n)return x.clickedSlide=void 0,void(x.clickedIndex=void 0);if(x.clickedSlide=i,x.clickedIndex=t(i).index(),x.params.slideToClickedSlide&&void 0!==x.clickedIndex&&x.clickedIndex!==x.activeIndex){var s,o=x.clickedIndex;if(x.params.loop){if(x.animating)return;s=t(x.clickedSlide).attr("data-swiper-slide-index"),x.params.centeredSlides?o<x.loopedSlides-x.params.slidesPerView/2||o>x.slides.length-x.loopedSlides+x.params.slidesPerView/2?(x.fixLoop(),o=x.wrapper.children("."+x.params.slideClass+'[data-swiper-slide-index="'+s+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){x.slideTo(o)},0)):x.slideTo(o):o>x.slides.length-x.params.slidesPerView?(x.fixLoop(),o=x.wrapper.children("."+x.params.slideClass+'[data-swiper-slide-index="'+s+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){x.slideTo(o)},0)):x.slideTo(o)}else x.slideTo(o)}};var S,C,E,k,A,P,D,z,M,L,I="input, select, textarea, button",N=Date.now(),H=[];x.animating=!1,x.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0};var B,X;if(x.onTouchStart=function(e){if(e.originalEvent&&(e=e.originalEvent),B="touchstart"===e.type,B||!("which"in e)||3!==e.which){if(x.params.noSwiping&&a(e,"."+x.params.noSwipingClass))return void(x.allowClick=!0);if(!x.params.swipeHandler||a(e,x.params.swipeHandler)){var i=x.touches.currentX="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,n=x.touches.currentY="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY;if(!(x.device.ios&&x.params.iOSEdgeSwipeDetection&&i<=x.params.iOSEdgeSwipeThreshold)){if(S=!0,C=!1,E=!0,A=void 0,X=void 0,x.touches.startX=i,x.touches.startY=n,k=Date.now(),x.allowClick=!0,x.updateContainerSize(),x.swipeDirection=void 0,x.params.threshold>0&&(z=!1),"touchstart"!==e.type){var r=!0;t(e.target).is(I)&&(r=!1),document.activeElement&&t(document.activeElement).is(I)&&document.activeElement.blur(),r&&e.preventDefault()}x.emit("onTouchStart",x,e)}}}},x.onTouchMove=function(e){if(e.originalEvent&&(e=e.originalEvent),!B||"mousemove"!==e.type){if(e.preventedByNestedSwiper)return x.touches.startX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,void(x.touches.startY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY);if(x.params.onlyExternal)return x.allowClick=!1,void(S&&(x.touches.startX=x.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,x.touches.startY=x.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,k=Date.now()));if(B&&document.activeElement&&e.target===document.activeElement&&t(e.target).is(I))return C=!0,void(x.allowClick=!1);if(E&&x.emit("onTouchMove",x,e),!(e.targetTouches&&e.targetTouches.length>1)){if(x.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,x.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,"undefined"==typeof A){var i=180*Math.atan2(Math.abs(x.touches.currentY-x.touches.startY),Math.abs(x.touches.currentX-x.touches.startX))/Math.PI;A=x.isHorizontal()?i>x.params.touchAngle:90-i>x.params.touchAngle}if(A&&x.emit("onTouchMoveOpposite",x,e),"undefined"==typeof X&&x.browser.ieTouch&&(x.touches.currentX===x.touches.startX&&x.touches.currentY===x.touches.startY||(X=!0)),S){if(A)return void(S=!1);if(X||!x.browser.ieTouch){x.allowClick=!1,x.emit("onSliderMove",x,e),e.preventDefault(),x.params.touchMoveStopPropagation&&!x.params.nested&&e.stopPropagation(),C||(r.loop&&x.fixLoop(),D=x.getWrapperTranslate(),x.setWrapperTransition(0),x.animating&&x.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),x.params.autoplay&&x.autoplaying&&(x.params.autoplayDisableOnInteraction?x.stopAutoplay():x.pauseAutoplay()),L=!1,x.params.grabCursor&&(x.container[0].style.cursor="move",x.container[0].style.cursor="-webkit-grabbing",x.container[0].style.cursor="-moz-grabbin",x.container[0].style.cursor="grabbing")),C=!0;var n=x.touches.diff=x.isHorizontal()?x.touches.currentX-x.touches.startX:x.touches.currentY-x.touches.startY;n*=x.params.touchRatio,x.rtl&&(n=-n),x.swipeDirection=n>0?"prev":"next",P=n+D;var s=!0;if(n>0&&P>x.minTranslate()?(s=!1,x.params.resistance&&(P=x.minTranslate()-1+Math.pow(-x.minTranslate()+D+n,x.params.resistanceRatio))):0>n&&P<x.maxTranslate()&&(s=!1,x.params.resistance&&(P=x.maxTranslate()+1-Math.pow(x.maxTranslate()-D-n,x.params.resistanceRatio))),s&&(e.preventedByNestedSwiper=!0),!x.params.allowSwipeToNext&&"next"===x.swipeDirection&&D>P&&(P=D),!x.params.allowSwipeToPrev&&"prev"===x.swipeDirection&&P>D&&(P=D),x.params.followFinger){if(x.params.threshold>0){if(!(Math.abs(n)>x.params.threshold||z))return void(P=D);if(!z)return z=!0,x.touches.startX=x.touches.currentX,x.touches.startY=x.touches.currentY,P=D,void(x.touches.diff=x.isHorizontal()?x.touches.currentX-x.touches.startX:x.touches.currentY-x.touches.startY)}(x.params.freeMode||x.params.watchSlidesProgress)&&x.updateActiveIndex(),x.params.freeMode&&(0===H.length&&H.push({position:x.touches[x.isHorizontal()?"startX":"startY"],time:k}),H.push({position:x.touches[x.isHorizontal()?"currentX":"currentY"],time:(new window.Date).getTime()})),x.updateProgress(P),x.setWrapperTranslate(P)}}}}}},x.onTouchEnd=function(e){if(e.originalEvent&&(e=e.originalEvent),E&&x.emit("onTouchEnd",x,e),E=!1,S){x.params.grabCursor&&C&&S&&(x.container[0].style.cursor="move",x.container[0].style.cursor="-webkit-grab",x.container[0].style.cursor="-moz-grab",x.container[0].style.cursor="grab");var i=Date.now(),n=i-k;if(x.allowClick&&(x.updateClickedSlide(e),x.emit("onTap",x,e),300>n&&i-N>300&&(M&&clearTimeout(M),M=setTimeout(function(){x&&(x.params.paginationHide&&x.paginationContainer.length>0&&!t(e.target).hasClass(x.params.bulletClass)&&x.paginationContainer.toggleClass(x.params.paginationHiddenClass),x.emit("onClick",x,e))},300)),300>n&&300>i-N&&(M&&clearTimeout(M),x.emit("onDoubleTap",x,e))),N=Date.now(),setTimeout(function(){x&&(x.allowClick=!0)},0),!S||!C||!x.swipeDirection||0===x.touches.diff||P===D)return void(S=C=!1);S=C=!1;var r;if(r=x.params.followFinger?x.rtl?x.translate:-x.translate:-P,x.params.freeMode){if(r<-x.minTranslate())return void x.slideTo(x.activeIndex);if(r>-x.maxTranslate())return void(x.slides.length<x.snapGrid.length?x.slideTo(x.snapGrid.length-1):x.slideTo(x.slides.length-1));if(x.params.freeModeMomentum){if(H.length>1){var s=H.pop(),o=H.pop(),a=s.position-o.position,l=s.time-o.time;x.velocity=a/l,x.velocity=x.velocity/2,Math.abs(x.velocity)<x.params.freeModeMinimumVelocity&&(x.velocity=0),(l>150||(new window.Date).getTime()-s.time>300)&&(x.velocity=0)}else x.velocity=0;H.length=0;var p=1e3*x.params.freeModeMomentumRatio,c=x.velocity*p,u=x.translate+c;x.rtl&&(u=-u);var h,d=!1,f=20*Math.abs(x.velocity)*x.params.freeModeMomentumBounceRatio;if(u<x.maxTranslate())x.params.freeModeMomentumBounce?(u+x.maxTranslate()<-f&&(u=x.maxTranslate()-f),h=x.maxTranslate(),d=!0,L=!0):u=x.maxTranslate();else if(u>x.minTranslate())x.params.freeModeMomentumBounce?(u-x.minTranslate()>f&&(u=x.minTranslate()+f),h=x.minTranslate(),d=!0,L=!0):u=x.minTranslate();else if(x.params.freeModeSticky){var m,g=0;for(g=0;g<x.snapGrid.length;g+=1)if(x.snapGrid[g]>-u){m=g;break}u=Math.abs(x.snapGrid[m]-u)<Math.abs(x.snapGrid[m-1]-u)||"next"===x.swipeDirection?x.snapGrid[m]:x.snapGrid[m-1],x.rtl||(u=-u)}if(0!==x.velocity)p=x.rtl?Math.abs((-u-x.translate)/x.velocity):Math.abs((u-x.translate)/x.velocity);else if(x.params.freeModeSticky)return void x.slideReset();x.params.freeModeMomentumBounce&&d?(x.updateProgress(h),x.setWrapperTransition(p),x.setWrapperTranslate(u),x.onTransitionStart(),x.animating=!0,x.wrapper.transitionEnd(function(){x&&L&&(x.emit("onMomentumBounce",x),x.setWrapperTransition(x.params.speed),x.setWrapperTranslate(h),x.wrapper.transitionEnd(function(){x&&x.onTransitionEnd()}))})):x.velocity?(x.updateProgress(u),x.setWrapperTransition(p),x.setWrapperTranslate(u),x.onTransitionStart(),x.animating||(x.animating=!0,x.wrapper.transitionEnd(function(){x&&x.onTransitionEnd()}))):x.updateProgress(u),x.updateActiveIndex()}return void((!x.params.freeModeMomentum||n>=x.params.longSwipesMs)&&(x.updateProgress(),x.updateActiveIndex()))}var v,y=0,w=x.slidesSizesGrid[0];for(v=0;v<x.slidesGrid.length;v+=x.params.slidesPerGroup)"undefined"!=typeof x.slidesGrid[v+x.params.slidesPerGroup]?r>=x.slidesGrid[v]&&r<x.slidesGrid[v+x.params.slidesPerGroup]&&(y=v,w=x.slidesGrid[v+x.params.slidesPerGroup]-x.slidesGrid[v]):r>=x.slidesGrid[v]&&(y=v,w=x.slidesGrid[x.slidesGrid.length-1]-x.slidesGrid[x.slidesGrid.length-2]);var b=(r-x.slidesGrid[y])/w;if(n>x.params.longSwipesMs){if(!x.params.longSwipes)return void x.slideTo(x.activeIndex);"next"===x.swipeDirection&&(b>=x.params.longSwipesRatio?x.slideTo(y+x.params.slidesPerGroup):x.slideTo(y)),"prev"===x.swipeDirection&&(b>1-x.params.longSwipesRatio?x.slideTo(y+x.params.slidesPerGroup):x.slideTo(y))}else{if(!x.params.shortSwipes)return void x.slideTo(x.activeIndex);"next"===x.swipeDirection&&x.slideTo(y+x.params.slidesPerGroup),"prev"===x.swipeDirection&&x.slideTo(y)}}},x._slideTo=function(e,t){return x.slideTo(e,t,!0,!0)},x.slideTo=function(e,t,i,n){"undefined"==typeof i&&(i=!0),"undefined"==typeof e&&(e=0),0>e&&(e=0),x.snapIndex=Math.floor(e/x.params.slidesPerGroup),x.snapIndex>=x.snapGrid.length&&(x.snapIndex=x.snapGrid.length-1);var r=-x.snapGrid[x.snapIndex];x.params.autoplay&&x.autoplaying&&(n||!x.params.autoplayDisableOnInteraction?x.pauseAutoplay(t):x.stopAutoplay()),x.updateProgress(r);for(var s=0;s<x.slidesGrid.length;s++)-Math.floor(100*r)>=Math.floor(100*x.slidesGrid[s])&&(e=s);return!x.params.allowSwipeToNext&&r<x.translate&&r<x.minTranslate()?!1:!x.params.allowSwipeToPrev&&r>x.translate&&r>x.maxTranslate()&&(x.activeIndex||0)!==e?!1:("undefined"==typeof t&&(t=x.params.speed),x.previousIndex=x.activeIndex||0,x.activeIndex=e,x.rtl&&-r===x.translate||!x.rtl&&r===x.translate?(x.params.autoHeight&&x.updateAutoHeight(),x.updateClasses(),"slide"!==x.params.effect&&x.setWrapperTranslate(r),!1):(x.updateClasses(),x.onTransitionStart(i),0===t?(x.setWrapperTranslate(r),x.setWrapperTransition(0),x.onTransitionEnd(i)):(x.setWrapperTranslate(r),x.setWrapperTransition(t),x.animating||(x.animating=!0,x.wrapper.transitionEnd(function(){x&&x.onTransitionEnd(i)}))),!0))},x.onTransitionStart=function(e){"undefined"==typeof e&&(e=!0),x.params.autoHeight&&x.updateAutoHeight(),x.lazy&&x.lazy.onTransitionStart(),e&&(x.emit("onTransitionStart",x),x.activeIndex!==x.previousIndex&&(x.emit("onSlideChangeStart",x),x.activeIndex>x.previousIndex?x.emit("onSlideNextStart",x):x.emit("onSlidePrevStart",x)))},x.onTransitionEnd=function(e){x.animating=!1,x.setWrapperTransition(0),"undefined"==typeof e&&(e=!0),x.lazy&&x.lazy.onTransitionEnd(),e&&(x.emit("onTransitionEnd",x),x.activeIndex!==x.previousIndex&&(x.emit("onSlideChangeEnd",x),x.activeIndex>x.previousIndex?x.emit("onSlideNextEnd",x):x.emit("onSlidePrevEnd",x))),x.params.hashnav&&x.hashnav&&x.hashnav.setHash()},x.slideNext=function(e,t,i){if(x.params.loop){if(x.animating)return!1;x.fixLoop();x.container[0].clientLeft;return x.slideTo(x.activeIndex+x.params.slidesPerGroup,t,e,i)}return x.slideTo(x.activeIndex+x.params.slidesPerGroup,t,e,i)},x._slideNext=function(e){return x.slideNext(!0,e,!0)},x.slidePrev=function(e,t,i){if(x.params.loop){if(x.animating)return!1;x.fixLoop();x.container[0].clientLeft;return x.slideTo(x.activeIndex-1,t,e,i)}return x.slideTo(x.activeIndex-1,t,e,i)},x._slidePrev=function(e){return x.slidePrev(!0,e,!0)},x.slideReset=function(e,t,i){return x.slideTo(x.activeIndex,t,e)},x.setWrapperTransition=function(e,t){x.wrapper.transition(e),"slide"!==x.params.effect&&x.effects[x.params.effect]&&x.effects[x.params.effect].setTransition(e),x.params.parallax&&x.parallax&&x.parallax.setTransition(e),x.params.scrollbar&&x.scrollbar&&x.scrollbar.setTransition(e),x.params.control&&x.controller&&x.controller.setTransition(e,t),x.emit("onSetTransition",x,e)},x.setWrapperTranslate=function(e,t,i){var n=0,r=0,o=0;x.isHorizontal()?n=x.rtl?-e:e:r=e,x.params.roundLengths&&(n=s(n),r=s(r)),x.params.virtualTranslate||(x.support.transforms3d?x.wrapper.transform("translate3d("+n+"px, "+r+"px, "+o+"px)"):x.wrapper.transform("translate("+n+"px, "+r+"px)")),x.translate=x.isHorizontal()?n:r;var a,l=x.maxTranslate()-x.minTranslate();a=0===l?0:(e-x.minTranslate())/l,a!==x.progress&&x.updateProgress(e),t&&x.updateActiveIndex(),"slide"!==x.params.effect&&x.effects[x.params.effect]&&x.effects[x.params.effect].setTranslate(x.translate),x.params.parallax&&x.parallax&&x.parallax.setTranslate(x.translate),x.params.scrollbar&&x.scrollbar&&x.scrollbar.setTranslate(x.translate),x.params.control&&x.controller&&x.controller.setTranslate(x.translate,i),x.emit("onSetTranslate",x,x.translate)},x.getTranslate=function(e,t){var i,n,r,s;return"undefined"==typeof t&&(t="x"),x.params.virtualTranslate?x.rtl?-x.translate:x.translate:(r=window.getComputedStyle(e,null),window.WebKitCSSMatrix?(n=r.transform||r.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),s=new window.WebKitCSSMatrix("none"===n?"":n)):(s=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=s.toString().split(",")),"x"===t&&(n=window.WebKitCSSMatrix?s.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(n=window.WebKitCSSMatrix?s.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),x.rtl&&n&&(n=-n),n||0)},x.getWrapperTranslate=function(e){return"undefined"==typeof e&&(e=x.isHorizontal()?"x":"y"),x.getTranslate(x.wrapper[0],e)},x.observers=[],x.initObservers=function(){if(x.params.observeParents)for(var e=x.container.parents(),t=0;t<e.length;t++)l(e[t]);l(x.container[0],{childList:!1}),l(x.wrapper[0],{attributes:!1})},x.disconnectObservers=function(){for(var e=0;e<x.observers.length;e++)x.observers[e].disconnect();x.observers=[]},x.createLoop=function(){x.wrapper.children("."+x.params.slideClass+"."+x.params.slideDuplicateClass).remove();var e=x.wrapper.children("."+x.params.slideClass);"auto"!==x.params.slidesPerView||x.params.loopedSlides||(x.params.loopedSlides=e.length),x.loopedSlides=parseInt(x.params.loopedSlides||x.params.slidesPerView,10),x.loopedSlides=x.loopedSlides+x.params.loopAdditionalSlides,x.loopedSlides>e.length&&(x.loopedSlides=e.length);var i,n=[],r=[];for(e.each(function(i,s){var o=t(this);i<x.loopedSlides&&r.push(s),i<e.length&&i>=e.length-x.loopedSlides&&n.push(s),o.attr("data-swiper-slide-index",i)}),i=0;i<r.length;i++)x.wrapper.append(t(r[i].cloneNode(!0)).addClass(x.params.slideDuplicateClass));for(i=n.length-1;i>=0;i--)x.wrapper.prepend(t(n[i].cloneNode(!0)).addClass(x.params.slideDuplicateClass))},x.destroyLoop=function(){x.wrapper.children("."+x.params.slideClass+"."+x.params.slideDuplicateClass).remove(),x.slides.removeAttr("data-swiper-slide-index")},x.reLoop=function(e){var t=x.activeIndex-x.loopedSlides;x.destroyLoop(),x.createLoop(),x.updateSlidesSize(),e&&x.slideTo(t+x.loopedSlides,0,!1)},x.fixLoop=function(){var e;x.activeIndex<x.loopedSlides?(e=x.slides.length-3*x.loopedSlides+x.activeIndex,e+=x.loopedSlides,x.slideTo(e,0,!1,!0)):("auto"===x.params.slidesPerView&&x.activeIndex>=2*x.loopedSlides||x.activeIndex>x.slides.length-2*x.params.slidesPerView)&&(e=-x.slides.length+x.activeIndex+x.loopedSlides,e+=x.loopedSlides,x.slideTo(e,0,!1,!0))},x.appendSlide=function(e){if(x.params.loop&&x.destroyLoop(),"object"==typeof e&&e.length)for(var t=0;t<e.length;t++)e[t]&&x.wrapper.append(e[t]);else x.wrapper.append(e);x.params.loop&&x.createLoop(),x.params.observer&&x.support.observer||x.update(!0)},x.prependSlide=function(e){x.params.loop&&x.destroyLoop();var t=x.activeIndex+1;if("object"==typeof e&&e.length){for(var i=0;i<e.length;i++)e[i]&&x.wrapper.prepend(e[i]);t=x.activeIndex+e.length}else x.wrapper.prepend(e);x.params.loop&&x.createLoop(),x.params.observer&&x.support.observer||x.update(!0),x.slideTo(t,0,!1)},x.removeSlide=function(e){x.params.loop&&(x.destroyLoop(),x.slides=x.wrapper.children("."+x.params.slideClass));var t,i=x.activeIndex;if("object"==typeof e&&e.length){for(var n=0;n<e.length;n++)t=e[n],x.slides[t]&&x.slides.eq(t).remove(),i>t&&i--;i=Math.max(i,0)}else t=e,x.slides[t]&&x.slides.eq(t).remove(),i>t&&i--,i=Math.max(i,0);x.params.loop&&x.createLoop(),x.params.observer&&x.support.observer||x.update(!0),x.params.loop?x.slideTo(i+x.loopedSlides,0,!1):x.slideTo(i,0,!1)},x.removeAllSlides=function(){for(var e=[],t=0;t<x.slides.length;t++)e.push(t);x.removeSlide(e)},x.effects={fade:{setTranslate:function(){for(var e=0;e<x.slides.length;e++){var t=x.slides.eq(e),i=t[0].swiperSlideOffset,n=-i;x.params.virtualTranslate||(n-=x.translate);var r=0;x.isHorizontal()||(r=n,n=0);var s=x.params.fade.crossFade?Math.max(1-Math.abs(t[0].progress),0):1+Math.min(Math.max(t[0].progress,-1),0);t.css({opacity:s}).transform("translate3d("+n+"px, "+r+"px, 0px)")}},setTransition:function(e){if(x.slides.transition(e),x.params.virtualTranslate&&0!==e){var t=!1;x.slides.transitionEnd(function(){if(!t&&x){t=!0,x.animating=!1;for(var e=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],i=0;i<e.length;i++)x.wrapper.trigger(e[i])}})}}},flip:{setTranslate:function(){for(var e=0;e<x.slides.length;e++){var i=x.slides.eq(e),n=i[0].progress;x.params.flip.limitRotation&&(n=Math.max(Math.min(i[0].progress,1),-1));var r=i[0].swiperSlideOffset,s=-180*n,o=s,a=0,l=-r,p=0;if(x.isHorizontal()?x.rtl&&(o=-o):(p=l,l=0,a=-o,o=0),i[0].style.zIndex=-Math.abs(Math.round(n))+x.slides.length,x.params.flip.slideShadows){var c=x.isHorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),u=x.isHorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");0===c.length&&(c=t('<div class="swiper-slide-shadow-'+(x.isHorizontal()?"left":"top")+'"></div>'),i.append(c)),0===u.length&&(u=t('<div class="swiper-slide-shadow-'+(x.isHorizontal()?"right":"bottom")+'"></div>'),i.append(u)),c.length&&(c[0].style.opacity=Math.max(-n,0)),u.length&&(u[0].style.opacity=Math.max(n,0))}i.transform("translate3d("+l+"px, "+p+"px, 0px) rotateX("+a+"deg) rotateY("+o+"deg)")}},setTransition:function(e){if(x.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),x.params.virtualTranslate&&0!==e){var i=!1;x.slides.eq(x.activeIndex).transitionEnd(function(){if(!i&&x&&t(this).hasClass(x.params.slideActiveClass)){i=!0,x.animating=!1;for(var e=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],n=0;n<e.length;n++)x.wrapper.trigger(e[n])}})}}},cube:{setTranslate:function(){var e,i=0;x.params.cube.shadow&&(x.isHorizontal()?(e=x.wrapper.find(".swiper-cube-shadow"),0===e.length&&(e=t('<div class="swiper-cube-shadow"></div>'),x.wrapper.append(e)),e.css({height:x.width+"px"})):(e=x.container.find(".swiper-cube-shadow"),0===e.length&&(e=t('<div class="swiper-cube-shadow"></div>'),x.container.append(e))));for(var n=0;n<x.slides.length;n++){var r=x.slides.eq(n),s=90*n,o=Math.floor(s/360);x.rtl&&(s=-s,o=Math.floor(-s/360));var a=Math.max(Math.min(r[0].progress,1),-1),l=0,p=0,c=0;n%4===0?(l=4*-o*x.size,c=0):(n-1)%4===0?(l=0,c=4*-o*x.size):(n-2)%4===0?(l=x.size+4*o*x.size,c=x.size):(n-3)%4===0&&(l=-x.size,c=3*x.size+4*x.size*o),x.rtl&&(l=-l),x.isHorizontal()||(p=l,l=0);var u="rotateX("+(x.isHorizontal()?0:-s)+"deg) rotateY("+(x.isHorizontal()?s:0)+"deg) translate3d("+l+"px, "+p+"px, "+c+"px)";if(1>=a&&a>-1&&(i=90*n+90*a,x.rtl&&(i=90*-n-90*a)),r.transform(u),x.params.cube.slideShadows){var h=x.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),d=x.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===h.length&&(h=t('<div class="swiper-slide-shadow-'+(x.isHorizontal()?"left":"top")+'"></div>'),r.append(h)),0===d.length&&(d=t('<div class="swiper-slide-shadow-'+(x.isHorizontal()?"right":"bottom")+'"></div>'),r.append(d)),h.length&&(h[0].style.opacity=Math.max(-a,0)),d.length&&(d[0].style.opacity=Math.max(a,0))}}if(x.wrapper.css({"-webkit-transform-origin":"50% 50% -"+x.size/2+"px","-moz-transform-origin":"50% 50% -"+x.size/2+"px","-ms-transform-origin":"50% 50% -"+x.size/2+"px","transform-origin":"50% 50% -"+x.size/2+"px"}),x.params.cube.shadow)if(x.isHorizontal())e.transform("translate3d(0px, "+(x.width/2+x.params.cube.shadowOffset)+"px, "+-x.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+x.params.cube.shadowScale+")");else{var f=Math.abs(i)-90*Math.floor(Math.abs(i)/90),m=1.5-(Math.sin(2*f*Math.PI/360)/2+Math.cos(2*f*Math.PI/360)/2),g=x.params.cube.shadowScale,v=x.params.cube.shadowScale/m,y=x.params.cube.shadowOffset;e.transform("scale3d("+g+", 1, "+v+") translate3d(0px, "+(x.height/2+y)+"px, "+-x.height/2/v+"px) rotateX(-90deg)")}var w=x.isSafari||x.isUiWebView?-x.size/2:0;x.wrapper.transform("translate3d(0px,0,"+w+"px) rotateX("+(x.isHorizontal()?0:i)+"deg) rotateY("+(x.isHorizontal()?-i:0)+"deg)")},setTransition:function(e){x.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),x.params.cube.shadow&&!x.isHorizontal()&&x.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{setTranslate:function(){for(var e=x.translate,i=x.isHorizontal()?-e+x.width/2:-e+x.height/2,n=x.isHorizontal()?x.params.coverflow.rotate:-x.params.coverflow.rotate,r=x.params.coverflow.depth,s=0,o=x.slides.length;o>s;s++){var a=x.slides.eq(s),l=x.slidesSizesGrid[s],p=a[0].swiperSlideOffset,c=(i-p-l/2)/l*x.params.coverflow.modifier,u=x.isHorizontal()?n*c:0,h=x.isHorizontal()?0:n*c,d=-r*Math.abs(c),f=x.isHorizontal()?0:x.params.coverflow.stretch*c,m=x.isHorizontal()?x.params.coverflow.stretch*c:0;Math.abs(m)<.001&&(m=0),Math.abs(f)<.001&&(f=0),Math.abs(d)<.001&&(d=0),Math.abs(u)<.001&&(u=0),Math.abs(h)<.001&&(h=0);var g="translate3d("+m+"px,"+f+"px,"+d+"px) rotateX("+h+"deg) rotateY("+u+"deg)";if(a.transform(g),a[0].style.zIndex=-Math.abs(Math.round(c))+1,x.params.coverflow.slideShadows){var v=x.isHorizontal()?a.find(".swiper-slide-shadow-left"):a.find(".swiper-slide-shadow-top"),y=x.isHorizontal()?a.find(".swiper-slide-shadow-right"):a.find(".swiper-slide-shadow-bottom");0===v.length&&(v=t('<div class="swiper-slide-shadow-'+(x.isHorizontal()?"left":"top")+'"></div>'),a.append(v)),0===y.length&&(y=t('<div class="swiper-slide-shadow-'+(x.isHorizontal()?"right":"bottom")+'"></div>'),a.append(y)),v.length&&(v[0].style.opacity=c>0?c:0),y.length&&(y[0].style.opacity=-c>0?-c:0)}}if(x.browser.ie){var w=x.wrapper[0].style;w.perspectiveOrigin=i+"px 50%"}},setTransition:function(e){x.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},x.lazy={initialImageLoaded:!1,loadImageInSlide:function(e,i){if("undefined"!=typeof e&&("undefined"==typeof i&&(i=!0),0!==x.slides.length)){var n=x.slides.eq(e),r=n.find(".swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");!n.hasClass("swiper-lazy")||n.hasClass("swiper-lazy-loaded")||n.hasClass("swiper-lazy-loading")||(r=r.add(n[0])),0!==r.length&&r.each(function(){var e=t(this);e.addClass("swiper-lazy-loading");var r=e.attr("data-background"),s=e.attr("data-src"),o=e.attr("data-srcset");x.loadImage(e[0],s||r,o,!1,function(){if(r?(e.css("background-image",'url("'+r+'")'),e.removeAttr("data-background")):(o&&(e.attr("srcset",o),e.removeAttr("data-srcset")),s&&(e.attr("src",s),e.removeAttr("data-src"))),e.addClass("swiper-lazy-loaded").removeClass("swiper-lazy-loading"),n.find(".swiper-lazy-preloader, .preloader").remove(),x.params.loop&&i){var t=n.attr("data-swiper-slide-index");if(n.hasClass(x.params.slideDuplicateClass)){var a=x.wrapper.children('[data-swiper-slide-index="'+t+'"]:not(.'+x.params.slideDuplicateClass+")");x.lazy.loadImageInSlide(a.index(),!1)}else{var l=x.wrapper.children("."+x.params.slideDuplicateClass+'[data-swiper-slide-index="'+t+'"]');x.lazy.loadImageInSlide(l.index(),!1)}}x.emit("onLazyImageReady",x,n[0],e[0])}),x.emit("onLazyImageLoad",x,n[0],e[0])})}},load:function(){var e;if(x.params.watchSlidesVisibility)x.wrapper.children("."+x.params.slideVisibleClass).each(function(){x.lazy.loadImageInSlide(t(this).index())});else if(x.params.slidesPerView>1)for(e=x.activeIndex;e<x.activeIndex+x.params.slidesPerView;e++)x.slides[e]&&x.lazy.loadImageInSlide(e);else x.lazy.loadImageInSlide(x.activeIndex);if(x.params.lazyLoadingInPrevNext)if(x.params.slidesPerView>1||x.params.lazyLoadingInPrevNextAmount&&x.params.lazyLoadingInPrevNextAmount>1){var i=x.params.lazyLoadingInPrevNextAmount,n=x.params.slidesPerView,r=Math.min(x.activeIndex+n+Math.max(i,n),x.slides.length),s=Math.max(x.activeIndex-Math.max(n,i),0);for(e=x.activeIndex+x.params.slidesPerView;r>e;e++)x.slides[e]&&x.lazy.loadImageInSlide(e);for(e=s;e<x.activeIndex;e++)x.slides[e]&&x.lazy.loadImageInSlide(e)}else{var o=x.wrapper.children("."+x.params.slideNextClass);o.length>0&&x.lazy.loadImageInSlide(o.index());var a=x.wrapper.children("."+x.params.slidePrevClass);a.length>0&&x.lazy.loadImageInSlide(a.index())}},onTransitionStart:function(){x.params.lazyLoading&&(x.params.lazyLoadingOnTransitionStart||!x.params.lazyLoadingOnTransitionStart&&!x.lazy.initialImageLoaded)&&x.lazy.load()},onTransitionEnd:function(){x.params.lazyLoading&&!x.params.lazyLoadingOnTransitionStart&&x.lazy.load()}},x.scrollbar={isTouched:!1,setDragPosition:function(e){var t=x.scrollbar,i=x.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,n=i-t.track.offset()[x.isHorizontal()?"left":"top"]-t.dragSize/2,r=-x.minTranslate()*t.moveDivider,s=-x.maxTranslate()*t.moveDivider;r>n?n=r:n>s&&(n=s),n=-n/t.moveDivider,x.updateProgress(n),x.setWrapperTranslate(n,!0)},dragStart:function(e){var t=x.scrollbar;t.isTouched=!0,e.preventDefault(),e.stopPropagation(),t.setDragPosition(e),clearTimeout(t.dragTimeout),t.track.transition(0),x.params.scrollbarHide&&t.track.css("opacity",1),x.wrapper.transition(100),t.drag.transition(100),x.emit("onScrollbarDragStart",x)},dragMove:function(e){var t=x.scrollbar;t.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),x.wrapper.transition(0),t.track.transition(0),t.drag.transition(0),x.emit("onScrollbarDragMove",x))},dragEnd:function(e){var t=x.scrollbar;t.isTouched&&(t.isTouched=!1,x.params.scrollbarHide&&(clearTimeout(t.dragTimeout),t.dragTimeout=setTimeout(function(){t.track.css("opacity",0),t.track.transition(400)},1e3)),x.emit("onScrollbarDragEnd",x),x.params.scrollbarSnapOnRelease&&x.slideReset())},enableDraggable:function(){var e=x.scrollbar,i=x.support.touch?e.track:document;t(e.track).on(x.touchEvents.start,e.dragStart),t(i).on(x.touchEvents.move,e.dragMove),t(i).on(x.touchEvents.end,e.dragEnd)},disableDraggable:function(){var e=x.scrollbar,i=x.support.touch?e.track:document;t(e.track).off(x.touchEvents.start,e.dragStart),t(i).off(x.touchEvents.move,e.dragMove),t(i).off(x.touchEvents.end,e.dragEnd)},set:function(){if(x.params.scrollbar){var e=x.scrollbar;e.track=t(x.params.scrollbar),x.params.uniqueNavElements&&"string"==typeof x.params.scrollbar&&e.track.length>1&&1===x.container.find(x.params.scrollbar).length&&(e.track=x.container.find(x.params.scrollbar)),e.drag=e.track.find(".swiper-scrollbar-drag"),0===e.drag.length&&(e.drag=t('<div class="swiper-scrollbar-drag"></div>'),e.track.append(e.drag)),e.drag[0].style.width="",e.drag[0].style.height="",e.trackSize=x.isHorizontal()?e.track[0].offsetWidth:e.track[0].offsetHeight,e.divider=x.size/x.virtualSize,e.moveDivider=e.divider*(e.trackSize/x.size),e.dragSize=e.trackSize*e.divider,x.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="",x.params.scrollbarHide&&(e.track[0].style.opacity=0)}},setTranslate:function(){if(x.params.scrollbar){var e,t=x.scrollbar,i=(x.translate||0,t.dragSize);e=(t.trackSize-t.dragSize)*x.progress,x.rtl&&x.isHorizontal()?(e=-e,e>0?(i=t.dragSize-e,e=0):-e+t.dragSize>t.trackSize&&(i=t.trackSize+e)):0>e?(i=t.dragSize+e,e=0):e+t.dragSize>t.trackSize&&(i=t.trackSize-e),x.isHorizontal()?(x.support.transforms3d?t.drag.transform("translate3d("+e+"px, 0, 0)"):t.drag.transform("translateX("+e+"px)"),t.drag[0].style.width=i+"px"):(x.support.transforms3d?t.drag.transform("translate3d(0px, "+e+"px, 0)"):t.drag.transform("translateY("+e+"px)"),t.drag[0].style.height=i+"px"),x.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){x.params.scrollbar&&x.scrollbar.drag.transition(e)}},x.controller={LinearSpline:function(e,t){this.x=e,this.y=t,this.lastIndex=e.length-1;var i,n;this.x.length;this.interpolate=function(e){return e?(n=r(this.x,e),i=n-1,(e-this.x[i])*(this.y[n]-this.y[i])/(this.x[n]-this.x[i])+this.y[i]):0};var r=function(){var e,t,i;return function(n,r){for(t=-1,e=n.length;e-t>1;)n[i=e+t>>1]<=r?t=i:e=i;return e}}()},getInterpolateFunction:function(e){x.controller.spline||(x.controller.spline=x.params.loop?new x.controller.LinearSpline(x.slidesGrid,e.slidesGrid):new x.controller.LinearSpline(x.snapGrid,e.snapGrid))},setTranslate:function(e,t){function n(t){e=t.rtl&&"horizontal"===t.params.direction?-x.translate:x.translate,"slide"===x.params.controlBy&&(x.controller.getInterpolateFunction(t),s=-x.controller.spline.interpolate(-e)),s&&"container"!==x.params.controlBy||(r=(t.maxTranslate()-t.minTranslate())/(x.maxTranslate()-x.minTranslate()),s=(e-x.minTranslate())*r+t.minTranslate()),x.params.controlInverse&&(s=t.maxTranslate()-s),t.updateProgress(s),t.setWrapperTranslate(s,!1,x),t.updateActiveIndex()}var r,s,o=x.params.control;if(x.isArray(o))for(var a=0;a<o.length;a++)o[a]!==t&&o[a]instanceof i&&n(o[a]);else o instanceof i&&t!==o&&n(o)},setTransition:function(e,t){function n(t){t.setWrapperTransition(e,x),
0!==e&&(t.onTransitionStart(),t.wrapper.transitionEnd(function(){s&&(t.params.loop&&"slide"===x.params.controlBy&&t.fixLoop(),t.onTransitionEnd())}))}var r,s=x.params.control;if(x.isArray(s))for(r=0;r<s.length;r++)s[r]!==t&&s[r]instanceof i&&n(s[r]);else s instanceof i&&t!==s&&n(s)}},x.hashnav={init:function(){if(x.params.hashnav){x.hashnav.initialized=!0;var e=document.location.hash.replace("#","");if(e)for(var t=0,i=0,n=x.slides.length;n>i;i++){var r=x.slides.eq(i),s=r.attr("data-hash");if(s===e&&!r.hasClass(x.params.slideDuplicateClass)){var o=r.index();x.slideTo(o,t,x.params.runCallbacksOnInit,!0)}}}},setHash:function(){x.hashnav.initialized&&x.params.hashnav&&(document.location.hash=x.slides.eq(x.activeIndex).attr("data-hash")||"")}},x.disableKeyboardControl=function(){x.params.keyboardControl=!1,t(document).off("keydown",p)},x.enableKeyboardControl=function(){x.params.keyboardControl=!0,t(document).on("keydown",p)},x.mousewheel={event:!1,lastScrollTime:(new window.Date).getTime()},x.params.mousewheelControl){try{new window.WheelEvent("wheel"),x.mousewheel.event="wheel"}catch(O){(window.WheelEvent||x.container[0]&&"wheel"in x.container[0])&&(x.mousewheel.event="wheel")}!x.mousewheel.event&&window.WheelEvent,x.mousewheel.event||void 0===document.onmousewheel||(x.mousewheel.event="mousewheel"),x.mousewheel.event||(x.mousewheel.event="DOMMouseScroll")}x.disableMousewheelControl=function(){return x.mousewheel.event?(x.container.off(x.mousewheel.event,c),!0):!1},x.enableMousewheelControl=function(){return x.mousewheel.event?(x.container.on(x.mousewheel.event,c),!0):!1},x.parallax={setTranslate:function(){x.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){u(this,x.progress)}),x.slides.each(function(){var e=t(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);u(this,t)})})},setTransition:function(e){"undefined"==typeof e&&(e=x.params.speed),x.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var i=t(this),n=parseInt(i.attr("data-swiper-parallax-duration"),10)||e;0===e&&(n=0),i.transition(n)})}},x._plugins=[];for(var Y in x.plugins){var _=x.plugins[Y](x,x.params[Y]);_&&x._plugins.push(_)}return x.callPlugins=function(e){for(var t=0;t<x._plugins.length;t++)e in x._plugins[t]&&x._plugins[t][e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},x.emitterEventListeners={},x.emit=function(e){x.params[e]&&x.params[e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);var t;if(x.emitterEventListeners[e])for(t=0;t<x.emitterEventListeners[e].length;t++)x.emitterEventListeners[e][t](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);x.callPlugins&&x.callPlugins(e,arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},x.on=function(e,t){return e=h(e),x.emitterEventListeners[e]||(x.emitterEventListeners[e]=[]),x.emitterEventListeners[e].push(t),x},x.off=function(e,t){var i;if(e=h(e),"undefined"==typeof t)return x.emitterEventListeners[e]=[],x;if(x.emitterEventListeners[e]&&0!==x.emitterEventListeners[e].length){for(i=0;i<x.emitterEventListeners[e].length;i++)x.emitterEventListeners[e][i]===t&&x.emitterEventListeners[e].splice(i,1);return x}},x.once=function(e,t){e=h(e);var i=function(){t(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]),x.off(e,i)};return x.on(e,i),x},x.a11y={makeFocusable:function(e){return e.attr("tabIndex","0"),e},addRole:function(e,t){return e.attr("role",t),e},addLabel:function(e,t){return e.attr("aria-label",t),e},disable:function(e){return e.attr("aria-disabled",!0),e},enable:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){13===e.keyCode&&(t(e.target).is(x.params.nextButton)?(x.onClickNext(e),x.isEnd?x.a11y.notify(x.params.lastSlideMessage):x.a11y.notify(x.params.nextSlideMessage)):t(e.target).is(x.params.prevButton)&&(x.onClickPrev(e),x.isBeginning?x.a11y.notify(x.params.firstSlideMessage):x.a11y.notify(x.params.prevSlideMessage)),t(e.target).is("."+x.params.bulletClass)&&t(e.target)[0].click())},liveRegion:t('<span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>'),notify:function(e){var t=x.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},init:function(){x.params.nextButton&&x.nextButton&&x.nextButton.length>0&&(x.a11y.makeFocusable(x.nextButton),x.a11y.addRole(x.nextButton,"button"),x.a11y.addLabel(x.nextButton,x.params.nextSlideMessage)),x.params.prevButton&&x.prevButton&&x.prevButton.length>0&&(x.a11y.makeFocusable(x.prevButton),x.a11y.addRole(x.prevButton,"button"),x.a11y.addLabel(x.prevButton,x.params.prevSlideMessage)),t(x.container).append(x.a11y.liveRegion)},initPagination:function(){x.params.pagination&&x.params.paginationClickable&&x.bullets&&x.bullets.length&&x.bullets.each(function(){var e=t(this);x.a11y.makeFocusable(e),x.a11y.addRole(e,"button"),x.a11y.addLabel(e,x.params.paginationBulletMessage.replace(/{{index}}/,e.index()+1))})},destroy:function(){x.a11y.liveRegion&&x.a11y.liveRegion.length>0&&x.a11y.liveRegion.remove()}},x.init=function(){x.params.loop&&x.createLoop(),x.updateContainerSize(),x.updateSlidesSize(),x.updatePagination(),x.params.scrollbar&&x.scrollbar&&(x.scrollbar.set(),x.params.scrollbarDraggable&&x.scrollbar.enableDraggable()),"slide"!==x.params.effect&&x.effects[x.params.effect]&&(x.params.loop||x.updateProgress(),x.effects[x.params.effect].setTranslate()),x.params.loop?x.slideTo(x.params.initialSlide+x.loopedSlides,0,x.params.runCallbacksOnInit):(x.slideTo(x.params.initialSlide,0,x.params.runCallbacksOnInit),0===x.params.initialSlide&&(x.parallax&&x.params.parallax&&x.parallax.setTranslate(),x.lazy&&x.params.lazyLoading&&(x.lazy.load(),x.lazy.initialImageLoaded=!0))),x.attachEvents(),x.params.observer&&x.support.observer&&x.initObservers(),x.params.preloadImages&&!x.params.lazyLoading&&x.preloadImages(),x.params.autoplay&&x.startAutoplay(),x.params.keyboardControl&&x.enableKeyboardControl&&x.enableKeyboardControl(),x.params.mousewheelControl&&x.enableMousewheelControl&&x.enableMousewheelControl(),x.params.hashnav&&x.hashnav&&x.hashnav.init(),x.params.a11y&&x.a11y&&x.a11y.init(),x.emit("onInit",x)},x.cleanupStyles=function(){x.container.removeClass(x.classNames.join(" ")).removeAttr("style"),x.wrapper.removeAttr("style"),x.slides&&x.slides.length&&x.slides.removeClass([x.params.slideVisibleClass,x.params.slideActiveClass,x.params.slideNextClass,x.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"),x.paginationContainer&&x.paginationContainer.length&&x.paginationContainer.removeClass(x.params.paginationHiddenClass),x.bullets&&x.bullets.length&&x.bullets.removeClass(x.params.bulletActiveClass),x.params.prevButton&&t(x.params.prevButton).removeClass(x.params.buttonDisabledClass),x.params.nextButton&&t(x.params.nextButton).removeClass(x.params.buttonDisabledClass),x.params.scrollbar&&x.scrollbar&&(x.scrollbar.track&&x.scrollbar.track.length&&x.scrollbar.track.removeAttr("style"),x.scrollbar.drag&&x.scrollbar.drag.length&&x.scrollbar.drag.removeAttr("style"))},x.destroy=function(e,t){x.detachEvents(),x.stopAutoplay(),x.params.scrollbar&&x.scrollbar&&x.params.scrollbarDraggable&&x.scrollbar.disableDraggable(),x.params.loop&&x.destroyLoop(),t&&x.cleanupStyles(),x.disconnectObservers(),x.params.keyboardControl&&x.disableKeyboardControl&&x.disableKeyboardControl(),x.params.mousewheelControl&&x.disableMousewheelControl&&x.disableMousewheelControl(),x.params.a11y&&x.a11y&&x.a11y.destroy(),x.emit("onDestroy"),e!==!1&&(x=null)},x.init(),x}};i.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.]+)?/),i=e.match(/(iPad).*OS\s([\d_]+)/),n=e.match(/(iPod)(.*OS\s([\d_]+))?/),r=!i&&e.match(/(iPhone\sOS)\s([\d_]+)/);return{ios:i||r||n,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(" "),i=0;i<t.length;i++)if(t[i]in e)return!0}(),observer:function(){return"MutationObserver"in window||"WebkitMutationObserver"in window}()},plugins:{}};for(var n=(function(){var e=function(e){var t=this,i=0;for(i=0;i<e.length;i++)t[i]=e[i];return t.length=e.length,this},t=function(t,i){var n=[],r=0;if(t&&!i&&t instanceof e)return t;if(t)if("string"==typeof t){var s,o,a=t.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){var l="div";for(0===a.indexOf("<li")&&(l="ul"),0===a.indexOf("<tr")&&(l="tbody"),0!==a.indexOf("<td")&&0!==a.indexOf("<th")||(l="tr"),0===a.indexOf("<tbody")&&(l="table"),0===a.indexOf("<option")&&(l="select"),o=document.createElement(l),o.innerHTML=t,r=0;r<o.childNodes.length;r++)n.push(o.childNodes[r])}else for(s=i||"#"!==t[0]||t.match(/[ .<>:~]/)?(i||document).querySelectorAll(t):[document.getElementById(t.split("#")[1])],r=0;r<s.length;r++)s[r]&&n.push(s[r])}else if(t.nodeType||t===window||t===document)n.push(t);else if(t.length>0&&t[0].nodeType)for(r=0;r<t.length;r++)n.push(t[r]);return new e(n)};return e.prototype={addClass:function(e){if("undefined"==typeof e)return this;for(var t=e.split(" "),i=0;i<t.length;i++)for(var n=0;n<this.length;n++)this[n].classList.add(t[i]);return this},removeClass:function(e){for(var t=e.split(" "),i=0;i<t.length;i++)for(var n=0;n<this.length;n++)this[n].classList.remove(t[i]);return this},hasClass:function(e){return this[0]?this[0].classList.contains(e):!1},toggleClass:function(e){for(var t=e.split(" "),i=0;i<t.length;i++)for(var n=0;n<this.length;n++)this[n].classList.toggle(t[i]);return this},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var i=0;i<this.length;i++)if(2===arguments.length)this[i].setAttribute(e,t);else for(var n in e)this[i][n]=e[n],this[i].setAttribute(n,e[n]);return this},removeAttr:function(e){for(var t=0;t<this.length;t++)this[t].removeAttribute(e);return this},data:function(e,t){if("undefined"!=typeof t){for(var i=0;i<this.length;i++){var n=this[i];n.dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[e]=t}return this}if(this[0]){var r=this[0].getAttribute("data-"+e);return r?r:this[0].dom7ElementDataStorage&&e in this[0].dom7ElementDataStorage?this[0].dom7ElementDataStorage[e]:void 0}},transform:function(e){for(var t=0;t<this.length;t++){var i=this[t].style;i.webkitTransform=i.MsTransform=i.msTransform=i.MozTransform=i.OTransform=i.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t++){var i=this[t].style;i.webkitTransitionDuration=i.MsTransitionDuration=i.msTransitionDuration=i.MozTransitionDuration=i.OTransitionDuration=i.transitionDuration=e}return this},on:function(e,i,n,r){function s(e){var r=e.target;if(t(r).is(i))n.call(r,e);else for(var s=t(r).parents(),o=0;o<s.length;o++)t(s[o]).is(i)&&n.call(s[o],e)}var o,a,l=e.split(" ");for(o=0;o<this.length;o++)if("function"==typeof i||i===!1)for("function"==typeof i&&(n=arguments[1],r=arguments[2]||!1),a=0;a<l.length;a++)this[o].addEventListener(l[a],n,r);else for(a=0;a<l.length;a++)this[o].dom7LiveListeners||(this[o].dom7LiveListeners=[]),this[o].dom7LiveListeners.push({listener:n,liveListener:s}),this[o].addEventListener(l[a],s,r);return this},off:function(e,t,i,n){for(var r=e.split(" "),s=0;s<r.length;s++)for(var o=0;o<this.length;o++)if("function"==typeof t||t===!1)"function"==typeof t&&(i=arguments[1],n=arguments[2]||!1),this[o].removeEventListener(r[s],i,n);else if(this[o].dom7LiveListeners)for(var a=0;a<this[o].dom7LiveListeners.length;a++)this[o].dom7LiveListeners[a].listener===i&&this[o].removeEventListener(r[s],this[o].dom7LiveListeners[a].liveListener,n);return this},once:function(e,t,i,n){function r(o){i(o),s.off(e,t,r,n)}var s=this;"function"==typeof t&&(t=!1,i=arguments[1],n=arguments[2]),s.on(e,t,r,n)},trigger:function(e,t){for(var i=0;i<this.length;i++){var n;try{n=new window.CustomEvent(e,{detail:t,bubbles:!0,cancelable:!0})}catch(r){n=document.createEvent("Event"),n.initEvent(e,!0,!0),n.detail=t}this[i].dispatchEvent(n)}return this},transitionEnd:function(e){function t(s){if(s.target===this)for(e.call(this,s),i=0;i<n.length;i++)r.off(n[i],t)}var i,n=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],r=this;if(e)for(i=0;i<n.length;i++)r.on(n[i],t);return this},width:function(){return this[0]===window?window.innerWidth:this.length>0?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(),i=document.body,n=e.clientTop||i.clientTop||0,r=e.clientLeft||i.clientLeft||0,s=window.pageYOffset||e.scrollTop,o=window.pageXOffset||e.scrollLeft;return{top:t.top+s-n,left:t.left+o-r}}return null},css:function(e,t){var i;if(1===arguments.length){if("string"!=typeof e){for(i=0;i<this.length;i++)for(var n in e)this[i].style[n]=e[n];return this}if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(i=0;i<this.length;i++)this[i].style[e]=t;return this}return this},each:function(e){for(var t=0;t<this.length;t++)e.call(this[t],t,this[t]);return this},html:function(e){if("undefined"==typeof e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t++)this[t].innerHTML=e;return this},text:function(e){if("undefined"==typeof e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t++)this[t].textContent=e;return this},is:function(i){if(!this[0])return!1;var n,r;if("string"==typeof i){var s=this[0];if(s===document)return i===document;if(s===window)return i===window;if(s.matches)return s.matches(i);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(i);if(s.mozMatchesSelector)return s.mozMatchesSelector(i);if(s.msMatchesSelector)return s.msMatchesSelector(i);for(n=t(i),r=0;r<n.length;r++)if(n[r]===this[0])return!0;return!1}if(i===document)return this[0]===document;if(i===window)return this[0]===window;if(i.nodeType||i instanceof e){for(n=i.nodeType?[i]:i,r=0;r<n.length;r++)if(n[r]===this[0])return!0;return!1}return!1},index:function(){if(this[0]){for(var e=this[0],t=0;null!==(e=e.previousSibling);)1===e.nodeType&&t++;return t}},eq:function(t){if("undefined"==typeof t)return this;var i,n=this.length;return t>n-1?new e([]):0>t?(i=n+t,new e(0>i?[]:[this[i]])):new e([this[t]])},append:function(t){var i,n;for(i=0;i<this.length;i++)if("string"==typeof t){var r=document.createElement("div");for(r.innerHTML=t;r.firstChild;)this[i].appendChild(r.firstChild)}else if(t instanceof e)for(n=0;n<t.length;n++)this[i].appendChild(t[n]);else this[i].appendChild(t);return this},prepend:function(t){var i,n;for(i=0;i<this.length;i++)if("string"==typeof t){var r=document.createElement("div");for(r.innerHTML=t,n=r.childNodes.length-1;n>=0;n--)this[i].insertBefore(r.childNodes[n],this[i].childNodes[0])}else if(t instanceof e)for(n=0;n<t.length;n++)this[i].insertBefore(t[n],this[i].childNodes[0]);else this[i].insertBefore(t,this[i].childNodes[0]);return this},insertBefore:function(e){for(var i=t(e),n=0;n<this.length;n++)if(1===i.length)i[0].parentNode.insertBefore(this[n],i[0]);else if(i.length>1)for(var r=0;r<i.length;r++)i[r].parentNode.insertBefore(this[n].cloneNode(!0),i[r])},insertAfter:function(e){for(var i=t(e),n=0;n<this.length;n++)if(1===i.length)i[0].parentNode.insertBefore(this[n],i[0].nextSibling);else if(i.length>1)for(var r=0;r<i.length;r++)i[r].parentNode.insertBefore(this[n].cloneNode(!0),i[r].nextSibling)},next:function(i){return new e(this.length>0?i?this[0].nextElementSibling&&t(this[0].nextElementSibling).is(i)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])},nextAll:function(i){var n=[],r=this[0];if(!r)return new e([]);for(;r.nextElementSibling;){var s=r.nextElementSibling;i?t(s).is(i)&&n.push(s):n.push(s),r=s}return new e(n)},prev:function(i){return new e(this.length>0?i?this[0].previousElementSibling&&t(this[0].previousElementSibling).is(i)?[this[0].previousElementSibling]:[]:this[0].previousElementSibling?[this[0].previousElementSibling]:[]:[])},prevAll:function(i){var n=[],r=this[0];if(!r)return new e([]);for(;r.previousElementSibling;){var s=r.previousElementSibling;i?t(s).is(i)&&n.push(s):n.push(s),r=s}return new e(n)},parent:function(e){for(var i=[],n=0;n<this.length;n++)e?t(this[n].parentNode).is(e)&&i.push(this[n].parentNode):i.push(this[n].parentNode);return t(t.unique(i))},parents:function(e){for(var i=[],n=0;n<this.length;n++)for(var r=this[n].parentNode;r;)e?t(r).is(e)&&i.push(r):i.push(r),r=r.parentNode;return t(t.unique(i))},find:function(t){for(var i=[],n=0;n<this.length;n++)for(var r=this[n].querySelectorAll(t),s=0;s<r.length;s++)i.push(r[s]);return new e(i)},children:function(i){for(var n=[],r=0;r<this.length;r++)for(var s=this[r].childNodes,o=0;o<s.length;o++)i?1===s[o].nodeType&&t(s[o]).is(i)&&n.push(s[o]):1===s[o].nodeType&&n.push(s[o]);return new e(t.unique(n))},remove:function(){for(var e=0;e<this.length;e++)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){var e,i,n=this;for(e=0;e<arguments.length;e++){var r=t(arguments[e]);for(i=0;i<r.length;i++)n[n.length]=r[i],n.length++}return n}},t.fn=e.prototype,t.unique=function(e){for(var t=[],i=0;i<e.length;i++)-1===t.indexOf(e[i])&&t.push(e[i]);return t},t}()),r=["jQuery","Zepto","Dom7"],s=0;s<r.length;s++)window[r[s]]&&e(window[r[s]]);var o;o="undefined"==typeof n?window.Dom7||window.Zepto||window.jQuery:n,o&&("transitionEnd"in o.fn||(o.fn.transitionEnd=function(e){function t(s){if(s.target===this)for(e.call(this,s),i=0;i<n.length;i++)r.off(n[i],t)}var i,n=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],r=this;if(e)for(i=0;i<n.length;i++)r.on(n[i],t);return this}),"transform"in o.fn||(o.fn.transform=function(e){for(var t=0;t<this.length;t++){var i=this[t].style;i.webkitTransform=i.MsTransform=i.msTransform=i.MozTransform=i.OTransform=i.transform=e}return this}),"transition"in o.fn||(o.fn.transition=function(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t++){var i=this[t].style;i.webkitTransitionDuration=i.MsTransitionDuration=i.msTransitionDuration=i.MozTransitionDuration=i.OTransitionDuration=i.transitionDuration=e}return this})),window.Swiper=i}(),e.exports=window.Swiper},function(e,t,i){var n=i(2);i(5),e.exports=function(e,t){var i,r={effect:"fadeIn",effect_speed:10,placeholder:"data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==",skip_invisible:!1},s=arguments.length;!function(){switch(s){case 0:i=n("img.lazy");break;case 1:e instanceof n?i=e:(i=n("img.lazy"),n.extend(r,e));break;case 2:i=e,r=n.extend(r,t)}}(),i.lazyload(r)}},function(e,t,i){var n=i(2);!function(e,t,i,n){var r=e(t);e.fn.lazyload=function(s){function o(){var t=0;l.each(function(){var i=e(this);if(!p.skip_invisible||i.is(":visible"))if(e.abovethetop(this,p)||e.leftofbegin(this,p));else if(e.belowthefold(this,p)||e.rightoffold(this,p)){if(++t>p.failure_limit)return!1}else i.trigger("appear"),t=0})}var a,l=this,p={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:t,data_attribute:"original",skip_invisible:!0,appear:null,load:null,yasPath:"/web/",yasImgDomain:"http://analytics.yhurl.com/yas.gif",placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC",try_again_css:null};return s&&(n!==s.failurelimit&&(s.failure_limit=s.failurelimit,delete s.failurelimit),n!==s.effectspeed&&(s.effect_speed=s.effectspeed,delete s.effectspeed),e.extend(p,s)),a=p.container===n||p.container===t?r:e(p.container),0===p.event.indexOf("scroll")&&a.bind(p.event,function(){return o()}),this.each(function(){var t=this,i=e(t);t.loaded=!1,i.attr("src")!==n&&i.attr("src")!==!1&&""!==i.attr("src")||i.is("img")&&i.attr("src",p.placeholder),i.one("appear",function(){if(i.timerid&&clearTimeout(i.timerid),!this.loaded){if(p.appear){var n=l.length;p.appear.call(t,n,p)}e("<img />").bind("error abort",function(){i.attr("src",p.placeholder),s({info:"error"})}).bind("load",function(){if(!i.loadtimeout){clearTimeout(i.timerid),i.attr("pfmrpt");var n=i.attr("data-"+p.data_attribute);i.hide(),i.is("img")?i.attr("src",n):i.css("background-image","url('"+n+"')"),i[p.effect](p.effect_speed),t.loaded=!0;var r=e.grep(l,function(e){return!e.loaded});if(l=e(r),p.load){var s=l.length;p.load.call(t,s,p)}}}).attr("src",i.attr("data-"+p.data_attribute)),i.src=i.attr("data-"+p.data_attribute),i.attr("pfmrpt")&&_yas&&_yas.add;var r=function(e){i.loadtimeout=!0,i.attr("pfmrpt")&&_yas&&_yas.add&&e.info,i.attr("src",""),setTimeout(function(){i.attr("src",i.src)},50)},s=function(t){i.loadtimeout=!0,i.attr("pfmrpt")&&_yas&&_yas.add&&t.info;var n=i.width(),s=i.height();if(p.try_again_css)var o=e("<div class="+p.try_again_css+" style='width:"+n+"px;height:"+s+"px;'></div>");else var o=e("<div style='background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC) ;text-align: center;position:relative;width:"+n+"px;height:"+s+"px;background-size:100%;'>加载失败</div>");o.addClass(i.attr("class")),i.replaceWith(o),i.timerid=setTimeout(r,5e3)}}}),0!==p.event.indexOf("scroll")&&i.bind(p.event,function(){t.loaded||i.trigger("appear")})}),r.bind("resize",function(){o()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&r.bind("pageshow",function(t){t.originalEvent&&t.originalEvent.persisted&&l.each(function(){e(this).trigger("appear")})}),e(i).ready(function(){o()}),this},e.belowthefold=function(i,s){var o;return o=s.container===n||s.container===t?(t.innerHeight?t.innerHeight:r.height())+r.scrollTop():e(s.container).offset().top+e(s.container).height(),o<=e(i).offset().top-s.threshold},e.rightoffold=function(i,s){var o;return o=s.container===n||s.container===t?r.width()+r.scrollLeft():e(s.container).offset().left+e(s.container).width(),o<=e(i).offset().left-s.threshold},e.abovethetop=function(i,s){var o;return o=s.container===n||s.container===t?r.scrollTop():e(s.container).offset().top,o>=e(i).offset().top+s.threshold+e(i).height()},e.leftofbegin=function(i,s){var o;return o=s.container===n||s.container===t?r.scrollLeft():e(s.container).offset().left,o>=e(i).offset().left+s.threshold+e(i).width()},e.inviewport=function(t,i){return!(e.rightoffold(t,i)||e.leftofbegin(t,i)||e.belowthefold(t,i)||e.abovethetop(t,i))}}(n,window,document)},,,function(e,t,i){function n(e){var t,i,n=document.cookie;return document.cookie&&""!==document.cookie&&(i=n.indexOf(e+"="),i>-1&&(i+=e.length+1,t=decodeURIComponent(d.trim(n.substring(i,n.indexOf(";",i)))))),t}function r(e,t,i){var n,r,s,o,a="";"undefined"!=typeof t&&(i=i||{},null===t&&(t="",i.expires=-1),i.expires&&("number"==typeof i.expires||i.expires.toUTCString)&&("number"==typeof i.expires?(o=new Date,o.setTime(o.getTime()+24*i.expires*60*60*1e3)):o=i.expires,a="; expires="+o.toUTCString()),n=i.path?"; path="+i.path:"",r=i.domain?"; domain="+i.domain:"",s=i.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),a,n,r,s].join(""))}function s(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function o(){var e,t=n("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function a(){var e=o();return 0===e?0:e[1]}function l(){var e=n("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function p(){var e;0!==m.length&&(e=Math.min(d(window).height(),window.screen.availHeight),d("body").height()<=e-parseInt(m.css("height"),0)?m.addClass("bottom"):m.removeClass("bottom"))}function c(e){var t=d(e).outerHeight();e&&m.css("margin-bottom",t+"px")}function u(){var e,t,i=[],n=window.location.search.slice(1).split("&");for(t=0;t<n.length;t++)e=n[t].split("="),i.push(e[0]),i[e[0]]=e[1];return i}function h(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var d=i(2),f=i(9),m=d("#yoho-footer"),g=d(".yoho-page"),v=d(".yoho-header");!function(){var e,t=m.children(".op-row"),i=d(".back-to-top"),n=o();p(),0===n?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+n[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),i.length>0&&(e=new f(i[0]),e.on("tap",function(e){return d(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),m.removeClass("hide")}(),function(e,t,i,n,r){var s=t.createElement(i),o=t.getElementsByTagName(i)[0];e.YohoAcquisitionObject=r,e[r]=function(){e[r].p=arguments},s.async=1,s.src=n,o.parentNode.insertBefore(s,o)}(window,document,"script","http://cdn.yoho.cn/yas-jssdk/1.0.14/yas.js","_yas"),function(){var e=a();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.14","yohobuy_m",e,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),d(this).addClass("highlight")}).on("touchend touchcancel","a",function(){d(this).removeClass("highlight")}),g.on("touchstart",".tap-hightlight",function(){d(this).siblings(".tap-hightlight").removeClass("highlight"),d(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){d(this).removeClass("highlight")}),d(".nav-home").on("touchstart",function(){d(".homebuttom").toggleClass("hide")}),function(){var e,t,i=0,n="webkit moz ms o".split(" "),r=window.requestAnimationFrame,s=window.cancelAnimationFrame;for(t=0;t<n.length&&(!r||!s);t++)e=n[t],r=r||window[e+"RequestAnimationFrame"],s=s||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];r&&s||(r=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-i)),r=window.setTimeout(function(){e(t+n)},n);return i=t+n,r},s=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=r,window.cancelAnimationFrame=s}(),d.extend({queryString:u}),11===m.find(".user-name").text().length&&m.find(".user-name").html(h(m.find(".user-name").text())),window.cookie=n,window.setCookie=r,window.isCookiesEnabled=s,window.getUser=o,window.getUid=a,window.getShoppingKey=l,window.rePosFooter=p,window.reMarginFooter=c,window.queryString=u()},function(e,t,i){var n;/*! Hammer.JS - v2.0.7 - 2016-04-22
* http://hammerjs.github.io/
*
* Copyright (c) 2016 Jorik Tangelder;
* Licensed under the MIT license */
!function(r,s,o,a){"use strict";function l(e,t,i){return setTimeout(d(e,i),t)}function p(e,t,i){return Array.isArray(e)?(c(e,i[t],i),!0):!1}function c(e,t,i){var n;if(e)if(e.forEach)e.forEach(t,i);else if(e.length!==a)for(n=0;n<e.length;)t.call(i,e[n],n,e),n++;else for(n in e)e.hasOwnProperty(n)&&t.call(i,e[n],n,e)}function u(e,t,i){var n="DEPRECATED METHOD: "+t+"\n"+i+" AT \n";return function(){var t=new Error("get-stack-trace"),i=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=r.console&&(r.console.warn||r.console.log);return s&&s.call(r.console,n,i),e.apply(this,arguments)}}function h(e,t,i){var n,r=t.prototype;n=e.prototype=Object.create(r),n.constructor=e,n._super=r,i&&me(n,i)}function d(e,t){return function(){return e.apply(t,arguments)}}function f(e,t){return typeof e==ye?e.apply(t?t[0]||a:a,t):e}function m(e,t){return e===a?t:e}function g(e,t,i){c(x(t),function(t){e.addEventListener(t,i,!1)})}function v(e,t,i){c(x(t),function(t){e.removeEventListener(t,i,!1)})}function y(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function w(e,t){return e.indexOf(t)>-1}function x(e){return e.trim().split(/\s+/g)}function b(e,t,i){if(e.indexOf&&!i)return e.indexOf(t);for(var n=0;n<e.length;){if(i&&e[n][i]==t||!i&&e[n]===t)return n;n++}return-1}function T(e){return Array.prototype.slice.call(e,0)}function S(e,t,i){for(var n=[],r=[],s=0;s<e.length;){var o=t?e[s][t]:e[s];b(r,o)<0&&n.push(e[s]),r[s]=o,s++}return i&&(n=t?n.sort(function(e,i){return e[t]>i[t]}):n.sort()),n}function C(e,t){for(var i,n,r=t[0].toUpperCase()+t.slice(1),s=0;s<ge.length;){if(i=ge[s],n=i?i+r:t,n in e)return n;s++}return a}function E(){return Ce++}function k(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||r}function A(e,t){var i=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){f(e.options.enable,[e])&&i.handler(t)},this.init()}function P(e){var t,i=e.options.inputClass;return new(t=i?i:Ae?W:Pe?F:ke?V:R)(e,D)}function D(e,t,i){var n=i.pointers.length,r=i.changedPointers.length,s=t&Ne&&n-r===0,o=t&(Be|Xe)&&n-r===0;i.isFirst=!!s,i.isFinal=!!o,s&&(e.session={}),i.eventType=t,z(e,i),e.emit("hammer.input",i),e.recognize(i),e.session.prevInput=i}function z(e,t){var i=e.session,n=t.pointers,r=n.length;i.firstInput||(i.firstInput=I(t)),r>1&&!i.firstMultiple?i.firstMultiple=I(t):1===r&&(i.firstMultiple=!1);var s=i.firstInput,o=i.firstMultiple,a=o?o.center:s.center,l=t.center=N(n);t.timeStamp=be(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=O(a,l),t.distance=X(a,l),M(i,t),t.offsetDirection=B(t.deltaX,t.deltaY);var p=H(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=p.x,t.overallVelocityY=p.y,t.overallVelocity=xe(p.x)>xe(p.y)?p.x:p.y,t.scale=o?_(o.pointers,n):1,t.rotation=o?Y(o.pointers,n):0,t.maxPointers=i.prevInput?t.pointers.length>i.prevInput.maxPointers?t.pointers.length:i.prevInput.maxPointers:t.pointers.length,L(i,t);var c=e.element;y(t.srcEvent.target,c)&&(c=t.srcEvent.target),t.target=c}function M(e,t){var i=t.center,n=e.offsetDelta||{},r=e.prevDelta||{},s=e.prevInput||{};t.eventType!==Ne&&s.eventType!==Be||(r=e.prevDelta={x:s.deltaX||0,y:s.deltaY||0},n=e.offsetDelta={x:i.x,y:i.y}),t.deltaX=r.x+(i.x-n.x),t.deltaY=r.y+(i.y-n.y)}function L(e,t){var i,n,r,s,o=e.lastInterval||t,l=t.timeStamp-o.timeStamp;if(t.eventType!=Xe&&(l>Ie||o.velocity===a)){var p=t.deltaX-o.deltaX,c=t.deltaY-o.deltaY,u=H(l,p,c);n=u.x,r=u.y,i=xe(u.x)>xe(u.y)?u.x:u.y,s=B(p,c),e.lastInterval=t}else i=o.velocity,n=o.velocityX,r=o.velocityY,s=o.direction;t.velocity=i,t.velocityX=n,t.velocityY=r,t.direction=s}function I(e){for(var t=[],i=0;i<e.pointers.length;)t[i]={clientX:we(e.pointers[i].clientX),clientY:we(e.pointers[i].clientY)},i++;return{timeStamp:be(),pointers:t,center:N(t),deltaX:e.deltaX,deltaY:e.deltaY}}function N(e){var t=e.length;if(1===t)return{x:we(e[0].clientX),y:we(e[0].clientY)};for(var i=0,n=0,r=0;t>r;)i+=e[r].clientX,n+=e[r].clientY,r++;return{x:we(i/t),y:we(n/t)}}function H(e,t,i){return{x:t/e||0,y:i/e||0}}function B(e,t){return e===t?Oe:xe(e)>=xe(t)?0>e?Ye:_e:0>t?Re:We}function X(e,t,i){i||(i=Ge);var n=t[i[0]]-e[i[0]],r=t[i[1]]-e[i[1]];return Math.sqrt(n*n+r*r)}function O(e,t,i){i||(i=Ge);var n=t[i[0]]-e[i[0]],r=t[i[1]]-e[i[1]];return 180*Math.atan2(r,n)/Math.PI}function Y(e,t){return O(t[1],t[0],Ve)+O(e[1],e[0],Ve)}function _(e,t){return X(t[0],t[1],Ve)/X(e[0],e[1],Ve)}function R(){this.evEl=$e,this.evWin=Ke,this.pressed=!1,A.apply(this,arguments)}function W(){this.evEl=Je,this.evWin=et,A.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function q(){this.evTarget=it,this.evWin=nt,this.started=!1,A.apply(this,arguments)}function j(e,t){var i=T(e.touches),n=T(e.changedTouches);return t&(Be|Xe)&&(i=S(i.concat(n),"identifier",!0)),[i,n]}function F(){this.evTarget=st,this.targetIds={},A.apply(this,arguments)}function G(e,t){var i=T(e.touches),n=this.targetIds;if(t&(Ne|He)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var r,s,o=T(e.changedTouches),a=[],l=this.target;if(s=i.filter(function(e){return y(e.target,l)}),t===Ne)for(r=0;r<s.length;)n[s[r].identifier]=!0,r++;for(r=0;r<o.length;)n[o[r].identifier]&&a.push(o[r]),t&(Be|Xe)&&delete n[o[r].identifier],r++;return a.length?[S(s.concat(a),"identifier",!0),a]:void 0}function V(){A.apply(this,arguments);var e=d(this.handler,this);this.touch=new F(this.manager,e),this.mouse=new R(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function U(e,t){e&Ne?(this.primaryTouch=t.changedPointers[0].identifier,$.call(this,t)):e&(Be|Xe)&&$.call(this,t)}function $(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var i={x:t.clientX,y:t.clientY};this.lastTouches.push(i);var n=this.lastTouches,r=function(){var e=n.indexOf(i);e>-1&&n.splice(e,1)};setTimeout(r,ot)}}function K(e){for(var t=e.srcEvent.clientX,i=e.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var r=this.lastTouches[n],s=Math.abs(t-r.x),o=Math.abs(i-r.y);if(at>=s&&at>=o)return!0}return!1}function Q(e,t){this.manager=e,this.set(t)}function Z(e){if(w(e,dt))return dt;var t=w(e,ft),i=w(e,mt);return t&&i?dt:t||i?t?ft:mt:w(e,ht)?ht:ut}function J(){if(!pt)return!1;var e={},t=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(i){e[i]=t?r.CSS.supports("touch-action",i):!0}),e}function ee(e){this.options=me({},this.defaults,e||{}),this.id=E(),this.manager=null,this.options.enable=m(this.options.enable,!0),this.state=vt,this.simultaneous={},this.requireFail=[]}function te(e){return e&Tt?"cancel":e&xt?"end":e&wt?"move":e&yt?"start":""}function ie(e){return e==We?"down":e==Re?"up":e==Ye?"left":e==_e?"right":""}function ne(e,t){var i=t.manager;return i?i.get(e):e}function re(){ee.apply(this,arguments)}function se(){re.apply(this,arguments),this.pX=null,this.pY=null}function oe(){re.apply(this,arguments)}function ae(){ee.apply(this,arguments),this._timer=null,this._input=null}function le(){re.apply(this,arguments)}function pe(){re.apply(this,arguments)}function ce(){ee.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ue(e,t){return t=t||{},t.recognizers=m(t.recognizers,ue.defaults.preset),new he(e,t)}function he(e,t){this.options=me({},ue.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=P(this),this.touchAction=new Q(this,this.options.touchAction),de(this,!0),c(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function de(e,t){var i=e.element;if(i.style){var n;c(e.options.cssProps,function(r,s){n=C(i.style,s),t?(e.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=e.oldCssProps[n]||""}),t||(e.oldCssProps={})}}function fe(e,t){var i=s.createEvent("Event");i.initEvent(e,!0,!0),i.gesture=t,t.target.dispatchEvent(i)}var me,ge=["","webkit","Moz","MS","ms","o"],ve=s.createElement("div"),ye="function",we=Math.round,xe=Math.abs,be=Date.now;me="function"!=typeof Object.assign?function(e){if(e===a||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),i=1;i<arguments.length;i++){var n=arguments[i];if(n!==a&&null!==n)for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}return t}:Object.assign;var Te=u(function(e,t,i){for(var n=Object.keys(t),r=0;r<n.length;)(!i||i&&e[n[r]]===a)&&(e[n[r]]=t[n[r]]),r++;return e},"extend","Use `assign`."),Se=u(function(e,t){return Te(e,t,!0)},"merge","Use `assign`."),Ce=1,Ee=/mobile|tablet|ip(ad|hone|od)|android/i,ke="ontouchstart"in r,Ae=C(r,"PointerEvent")!==a,Pe=ke&&Ee.test(navigator.userAgent),De="touch",ze="pen",Me="mouse",Le="kinect",Ie=25,Ne=1,He=2,Be=4,Xe=8,Oe=1,Ye=2,_e=4,Re=8,We=16,qe=Ye|_e,je=Re|We,Fe=qe|je,Ge=["x","y"],Ve=["clientX","clientY"];A.prototype={handler:function(){},init:function(){this.evEl&&g(this.element,this.evEl,this.domHandler),this.evTarget&&g(this.target,this.evTarget,this.domHandler),this.evWin&&g(k(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&v(this.element,this.evEl,this.domHandler),this.evTarget&&v(this.target,this.evTarget,this.domHandler),this.evWin&&v(k(this.element),this.evWin,this.domHandler)}};var Ue={mousedown:Ne,mousemove:He,mouseup:Be},$e="mousedown",Ke="mousemove mouseup";h(R,A,{handler:function(e){var t=Ue[e.type];t&Ne&&0===e.button&&(this.pressed=!0),t&He&&1!==e.which&&(t=Be),this.pressed&&(t&Be&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:Me,srcEvent:e}))}});var Qe={pointerdown:Ne,pointermove:He,pointerup:Be,pointercancel:Xe,pointerout:Xe},Ze={2:De,3:ze,4:Me,5:Le},Je="pointerdown",et="pointermove pointerup pointercancel";r.MSPointerEvent&&!r.PointerEvent&&(Je="MSPointerDown",et="MSPointerMove MSPointerUp MSPointerCancel"),h(W,A,{handler:function(e){var t=this.store,i=!1,n=e.type.toLowerCase().replace("ms",""),r=Qe[n],s=Ze[e.pointerType]||e.pointerType,o=s==De,a=b(t,e.pointerId,"pointerId");r&Ne&&(0===e.button||o)?0>a&&(t.push(e),a=t.length-1):r&(Be|Xe)&&(i=!0),0>a||(t[a]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:s,srcEvent:e}),i&&t.splice(a,1))}});var tt={touchstart:Ne,touchmove:He,touchend:Be,touchcancel:Xe},it="touchstart",nt="touchstart touchmove touchend touchcancel";h(q,A,{handler:function(e){var t=tt[e.type];if(t===Ne&&(this.started=!0),this.started){var i=j.call(this,e,t);t&(Be|Xe)&&i[0].length-i[1].length===0&&(this.started=!1),this.callback(this.manager,t,{pointers:i[0],changedPointers:i[1],pointerType:De,srcEvent:e})}}});var rt={touchstart:Ne,touchmove:He,touchend:Be,touchcancel:Xe},st="touchstart touchmove touchend touchcancel";h(F,A,{handler:function(e){var t=rt[e.type],i=G.call(this,e,t);i&&this.callback(this.manager,t,{pointers:i[0],changedPointers:i[1],pointerType:De,srcEvent:e})}});var ot=2500,at=25;h(V,A,{handler:function(e,t,i){var n=i.pointerType==De,r=i.pointerType==Me;if(!(r&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(n)U.call(this,t,i);else if(r&&K.call(this,i))return;this.callback(e,t,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var lt=C(ve.style,"touchAction"),pt=lt!==a,ct="compute",ut="auto",ht="manipulation",dt="none",ft="pan-x",mt="pan-y",gt=J();Q.prototype={set:function(e){e==ct&&(e=this.compute()),pt&&this.manager.element.style&>[e]&&(this.manager.element.style[lt]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return c(this.manager.recognizers,function(t){f(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),Z(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,i=e.offsetDirection;if(this.manager.session.prevented)return void t.preventDefault();var n=this.actions,r=w(n,dt)&&!gt[dt],s=w(n,mt)&&!gt[mt],o=w(n,ft)&&!gt[ft];if(r){var a=1===e.pointers.length,l=e.distance<2,p=e.deltaTime<250;if(a&&l&&p)return}return o&&s?void 0:r||s&&i&qe||o&&i&je?this.preventSrc(t):void 0},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var vt=1,yt=2,wt=4,xt=8,bt=xt,Tt=16,St=32;ee.prototype={defaults:{},set:function(e){return me(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(p(e,"recognizeWith",this))return this;var t=this.simultaneous;return e=ne(e,this),t[e.id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return p(e,"dropRecognizeWith",this)?this:(e=ne(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(p(e,"requireFailure",this))return this;var t=this.requireFail;return e=ne(e,this),-1===b(t,e)&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(p(e,"dropRequireFailure",this))return this;e=ne(e,this);var t=b(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){i.manager.emit(t,e)}var i=this,n=this.state;xt>n&&t(i.options.event+te(n)),t(i.options.event),e.additionalEvent&&t(e.additionalEvent),n>=xt&&t(i.options.event+te(n))},tryEmit:function(e){return this.canEmit()?this.emit(e):void(this.state=St)},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(St|vt)))return!1;e++}return!0},recognize:function(e){var t=me({},e);return f(this.options.enable,[this,t])?(this.state&(bt|Tt|St)&&(this.state=vt),this.state=this.process(t),void(this.state&(yt|wt|xt|Tt)&&this.tryEmit(t))):(this.reset(),void(this.state=St))},process:function(e){},getTouchAction:function(){},reset:function(){}},h(re,ee,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,i=e.eventType,n=t&(yt|wt),r=this.attrTest(e);return n&&(i&Xe||!r)?t|Tt:n||r?i&Be?t|xt:t&yt?t|wt:yt:St}}),h(se,re,{defaults:{event:"pan",threshold:10,pointers:1,direction:Fe},getTouchAction:function(){var e=this.options.direction,t=[];return e&qe&&t.push(mt),e&je&&t.push(ft),t},directionTest:function(e){var t=this.options,i=!0,n=e.distance,r=e.direction,s=e.deltaX,o=e.deltaY;return r&t.direction||(t.direction&qe?(r=0===s?Oe:0>s?Ye:_e,i=s!=this.pX,n=Math.abs(e.deltaX)):(r=0===o?Oe:0>o?Re:We,i=o!=this.pY,n=Math.abs(e.deltaY))),e.direction=r,i&&n>t.threshold&&r&t.direction},attrTest:function(e){return re.prototype.attrTest.call(this,e)&&(this.state&yt||!(this.state&yt)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=ie(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),h(oe,re,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[dt]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&yt)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),h(ae,ee,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ut]},process:function(e){var t=this.options,i=e.pointers.length===t.pointers,n=e.distance<t.threshold,r=e.deltaTime>t.time;if(this._input=e,!n||!i||e.eventType&(Be|Xe)&&!r)this.reset();else if(e.eventType&Ne)this.reset(),this._timer=l(function(){this.state=bt,this.tryEmit()},t.time,this);else if(e.eventType&Be)return bt;return St},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===bt&&(e&&e.eventType&Be?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=be(),this.manager.emit(this.options.event,this._input)))}}),h(le,re,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[dt]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&yt)}}),h(pe,re,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:qe|je,pointers:1},getTouchAction:function(){return se.prototype.getTouchAction.call(this)},attrTest:function(e){var t,i=this.options.direction;return i&(qe|je)?t=e.overallVelocity:i&qe?t=e.overallVelocityX:i&je&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&i&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&xe(t)>this.options.velocity&&e.eventType&Be},emit:function(e){var t=ie(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),h(ce,ee,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ht]},process:function(e){var t=this.options,i=e.pointers.length===t.pointers,n=e.distance<t.threshold,r=e.deltaTime<t.time;if(this.reset(),e.eventType&Ne&&0===this.count)return this.failTimeout();if(n&&r&&i){if(e.eventType!=Be)return this.failTimeout();var s=this.pTime?e.timeStamp-this.pTime<t.interval:!0,o=!this.pCenter||X(this.pCenter,e.center)<t.posThreshold;this.pTime=e.timeStamp,this.pCenter=e.center,o&&s?this.count+=1:this.count=1,this._input=e;var a=this.count%t.taps;if(0===a)return this.hasRequireFailures()?(this._timer=l(function(){this.state=bt,this.tryEmit()},t.interval,this),yt):bt}return St},failTimeout:function(){return this._timer=l(function(){this.state=St},this.options.interval,this),St},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==bt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ue.VERSION="2.0.7",ue.defaults={domEvents:!1,touchAction:ct,enable:!0,inputTarget:null,inputClass:null,preset:[[le,{enable:!1}],[oe,{enable:!1},["rotate"]],[pe,{direction:qe}],[se,{direction:qe},["swipe"]],[ce],[ce,{event:"doubletap",taps:2},["tap"]],[ae]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Ct=1,Et=2;he.prototype={set:function(e){return me(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?Et:Ct},recognize:function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);var i,n=this.recognizers,r=t.curRecognizer;(!r||r&&r.state&bt)&&(r=t.curRecognizer=null);for(var s=0;s<n.length;)i=n[s],t.stopped===Et||r&&i!=r&&!i.canRecognizeWith(r)?i.reset():i.recognize(e),!r&&i.state&(yt|wt|xt)&&(r=t.curRecognizer=i),s++}},get:function(e){if(e instanceof ee)return e;for(var t=this.recognizers,i=0;i<t.length;i++)if(t[i].options.event==e)return t[i];return null},add:function(e){if(p(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(p(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,i=b(t,e);-1!==i&&(t.splice(i,1),this.touchAction.update())}return this},on:function(e,t){if(e!==a&&t!==a){var i=this.handlers;return c(x(e),function(e){i[e]=i[e]||[],i[e].push(t)}),this}},off:function(e,t){if(e!==a){var i=this.handlers;return c(x(e),function(e){t?i[e]&&i[e].splice(b(i[e],t),1):delete i[e]}),this}},emit:function(e,t){this.options.domEvents&&fe(e,t);var i=this.handlers[e]&&this.handlers[e].slice();if(i&&i.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var n=0;n<i.length;)i[n](t),n++}},destroy:function(){this.element&&de(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},me(ue,{INPUT_START:Ne,INPUT_MOVE:He,INPUT_END:Be,INPUT_CANCEL:Xe,STATE_POSSIBLE:vt,STATE_BEGAN:yt,STATE_CHANGED:wt,STATE_ENDED:xt,STATE_RECOGNIZED:bt,STATE_CANCELLED:Tt,STATE_FAILED:St,DIRECTION_NONE:Oe,DIRECTION_LEFT:Ye,DIRECTION_RIGHT:_e,DIRECTION_UP:Re,DIRECTION_DOWN:We,DIRECTION_HORIZONTAL:qe,DIRECTION_VERTICAL:je,DIRECTION_ALL:Fe,Manager:he,Input:A,TouchAction:Q,TouchInput:F,MouseInput:R,PointerEventInput:W,TouchMouseInput:V,SingleTouchInput:q,Recognizer:ee,AttrRecognizer:re,Tap:ce,Pan:se,Swipe:pe,Pinch:oe,Rotate:le,Press:ae,on:g,off:v,each:c,merge:Se,extend:Te,assign:me,inherit:h,bindFn:d,prefixed:C});var kt="undefined"!=typeof r?r:"undefined"!=typeof self?self:{};kt.Hammer=ue,n=function(){return ue}.call(t,i,t,e),!(n!==a&&(e.exports=n))}(window,document,"Hammer")},,function(e,t,i){function n(e,t){var i,n;"undefined"!=typeof e&&(i=e.toString(),n=t&&t>0?t:2e3,r.text(i).show(),s=setTimeout(function(){"block"===r.css("display")&&r.hide()},n))}var r,s,o=i(2);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';o(".yoho-page").append(e),r=o("#yoho-tip"),r.on("touchend",function(){r.hide(),clearTimeout(s)})}(),t.show=n},function(e,t,i){function n(e){var t='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';p=!0,e||(e=l),e.append(t),o=e.children(".loading-mask")}function r(){p||(n(),p=!0),o.removeClass("hide")}function s(){o.addClass("hide")}var o,a=i(2),l=a(".yoho-page"),p=!1;t.init=n,t.showLoadingMask=r,t.hideLoadingMask=s,t.show=r,t.hide=s},,function(e,t){t.init=function(){Element.prototype.getText=function(){return void 0==this.innerText?this.textContent:this.innerText},Element.prototype.setText=function(e){void 0==this.innerText?this.textContent=e||"":this.innerText=e||""},Element.prototype.getFinalStyle=function(e,t){var i;return i=window.getComputedStyle?window.getComputedStyle(this,null)[e]:this.currentStyle[e],void 0!=t&&(i=i*t+"px"),i.substring(0,i.toString().length-2)},Element.prototype.mlellipsis=function(e){var t=this.getText(),i=this.getAttribute("title");null==i?this.setAttribute("title",t):this.setText(i);var n=this.getFinalStyle("fontSize");if(/msie/i.test(navigator.userAgent))var r=this.getFinalStyle("lineHeight",n);else var r=this.getFinalStyle("lineHeight");var s=Math.floor(this.clientHeight);"norm"==r?(r=Number(1.5*n),this.setAttribute("style","line-height:"+r+"px")):r=Number(r);var o=e*r;if(s>=o){for(t=this.getText();3*o<this.clientHeight;)this.setText(t.substring(0,t.length/2)),t=this.getText();for(;this.clientHeight-o>r-1&&(t=this.getText(),!(t.length<3));)this.setText(t.replace(/(\s)*([a-zA-Z0-9]+|\W)(\.\.\.)?$/,"..."))}},Element.prototype.getTextLineNumber=function(e){var t=this.getText(),i=this.getAttribute("title");null==i?this.setAttribute("title",t):this.setText(i);var n=this.getFinalStyle("fontSize");if(/msie/i.test(navigator.userAgent))var r=this.getFinalStyle("lineHeight",n);else var r=this.getFinalStyle("lineHeight");var s=this.clientHeight;return"norm"==r?(r=Number(1.5*n),this.setAttribute("style","line-height:"+r+"px")):r=Number(r),s/r}}},,function(e,t,i){function n(e,t){var i,n,o,a=r(window),l=!1;i=r(e),i.length&&(t.height&&i.height(t.height),o=-i.outerHeight(),this.iScroll=new s(i.get(0),{click:!0,probeType:3}),this.iScroll.on("scrollStart",function(){this.y>=o&&(l=!0),n=this.y,a.trigger("scroll")}),this.iScroll.on("scrollEnd",function(){l&&-1===this.directionY&&t.pullDown&&t.pullDown(),l=!1,n===this.y&&1===this.directionY&&t.pullUp&&t.pullUp(),a.trigger("scroll")}))}var r=i(2),s=i(17);e.exports=n},function(e,t,i){var n;/*! iScroll v5.2.0 ~ (c) 2008-2016 Matteo Spinelli ~ http://cubiq.org/license */
!function(r,s,o){function a(e,t){this.wrapper="string"==typeof e?s.querySelector(e):e,this.scroller=this.wrapper.children[0],this.scrollerStyle=this.scroller.style,this.options={resizeScrollbars:!0,mouseWheelSpeed:20,snapThreshold:.334,disablePointer:!u.hasPointer,disableTouch:u.hasPointer||!u.hasTouch,disableMouse:u.hasPointer||u.hasTouch,startX:0,startY:0,scrollY:!0,directionLockThreshold:5,momentum:!0,bounce:!0,bounceTime:600,bounceEasing:"",preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:"undefined"==typeof r.onmousedown};for(var i in t)this.options[i]=t[i];this.translateZ=this.options.HWCompositing&&u.hasPerspective?" translateZ(0)":"",this.options.useTransition=u.hasTransition&&this.options.useTransition,this.options.useTransform=u.hasTransform&&this.options.useTransform,this.options.eventPassthrough=this.options.eventPassthrough===!0?"vertical":this.options.eventPassthrough,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollY="vertical"==this.options.eventPassthrough?!1:this.options.scrollY,this.options.scrollX="horizontal"==this.options.eventPassthrough?!1:this.options.scrollX,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,this.options.bounceEasing="string"==typeof this.options.bounceEasing?u.ease[this.options.bounceEasing]||u.ease.circular:this.options.bounceEasing,this.options.resizePolling=void 0===this.options.resizePolling?60:this.options.resizePolling,this.options.tap===!0&&(this.options.tap="tap"),"scale"==this.options.shrinkScrollbars&&(this.options.useTransition=!1),this.options.invertWheelDirection=this.options.invertWheelDirection?-1:1,3==this.options.probeType&&(this.options.useTransition=!1),this.x=0,this.y=0,this.directionX=0,this.directionY=0,this._events={},this._init(),this.refresh(),this.scrollTo(this.options.startX,this.options.startY),this.enable()}function l(e,t,i){var n=s.createElement("div"),r=s.createElement("div");return i===!0&&(n.style.cssText="position:absolute;z-index:9999",r.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px"),r.className="iScrollIndicator","h"==e?(i===!0&&(n.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",r.style.height="100%"),n.className="iScrollHorizontalScrollbar"):(i===!0&&(n.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",r.style.width="100%"),n.className="iScrollVerticalScrollbar"),n.style.cssText+=";overflow:hidden",t||(n.style.pointerEvents="none"),n.appendChild(r),n}function p(e,t){this.wrapper="string"==typeof t.el?s.querySelector(t.el):t.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=e,this.options={listenX:!0,listenY:!0,interactive:!1,resize:!0,defaultScrollbars:!1,shrink:!1,fade:!1,speedRatioX:0,speedRatioY:0};for(var i in t)this.options[i]=t[i];if(this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.options.interactive&&(this.options.disableTouch||(u.addEvent(this.indicator,"touchstart",this),u.addEvent(r,"touchend",this)),this.options.disablePointer||(u.addEvent(this.indicator,u.prefixPointerEvent("pointerdown"),this),u.addEvent(r,u.prefixPointerEvent("pointerup"),this)),this.options.disableMouse||(u.addEvent(this.indicator,"mousedown",this),u.addEvent(r,"mouseup",this))),this.options.fade){this.wrapperStyle[u.style.transform]=this.scroller.translateZ;var n=u.style.transitionDuration;this.wrapperStyle[n]=u.isBadAndroid?"0.0001ms":"0ms";var o=this;u.isBadAndroid&&c(function(){"0.0001ms"===o.wrapperStyle[n]&&(o.wrapperStyle[n]="0s")}),this.wrapperStyle.opacity="0"}}var c=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.oRequestAnimationFrame||r.msRequestAnimationFrame||function(e){r.setTimeout(e,1e3/60)},u=function(){function e(e){return n===!1?!1:""===n?e:n+e.charAt(0).toUpperCase()+e.substr(1)}var t={},i=s.createElement("div").style,n=function(){for(var e,t=["t","webkitT","MozT","msT","OT"],n=0,r=t.length;r>n;n++)if(e=t[n]+"ransform",e in i)return t[n].substr(0,t[n].length-1);return!1}();t.getTime=Date.now||function(){return(new Date).getTime()},t.extend=function(e,t){for(var i in t)e[i]=t[i]},t.addEvent=function(e,t,i,n){e.addEventListener(t,i,!!n)},t.removeEvent=function(e,t,i,n){e.removeEventListener(t,i,!!n)},t.prefixPointerEvent=function(e){return r.MSPointerEvent?"MSPointer"+e.charAt(7).toUpperCase()+e.substr(8):e},t.momentum=function(e,t,i,n,r,s){var a,l,p=e-t,c=o.abs(p)/i;return s=void 0===s?6e-4:s,a=e+c*c/(2*s)*(0>p?-1:1),l=c/s,n>a?(a=r?n-r/2.5*(c/8):n,p=o.abs(a-e),l=p/c):a>0&&(a=r?r/2.5*(c/8):0,p=o.abs(e)+a,l=p/c),{destination:o.round(a),duration:l}};var a=e("transform");return t.extend(t,{hasTransform:a!==!1,hasPerspective:e("perspective")in i,hasTouch:"ontouchstart"in r,hasPointer:!(!r.PointerEvent&&!r.MSPointerEvent),hasTransition:e("transition")in i}),t.isBadAndroid=function(){var e=r.navigator.appVersion;if(/Android/.test(e)&&!/Chrome\/\d/.test(e)){var t=e.match(/Safari\/(\d+.\d)/);return t&&"object"==typeof t&&t.length>=2?parseFloat(t[1])<535.19:!0}return!1}(),t.extend(t.style={},{transform:a,transitionTimingFunction:e("transitionTimingFunction"),transitionDuration:e("transitionDuration"),transitionDelay:e("transitionDelay"),transformOrigin:e("transformOrigin")}),t.hasClass=function(e,t){var i=new RegExp("(^|\\s)"+t+"(\\s|$)");return i.test(e.className)},t.addClass=function(e,i){if(!t.hasClass(e,i)){var n=e.className.split(" ");n.push(i),e.className=n.join(" ")}},t.removeClass=function(e,i){if(t.hasClass(e,i)){var n=new RegExp("(^|\\s)"+i+"(\\s|$)","g");e.className=e.className.replace(n," ")}},t.offset=function(e){for(var t=-e.offsetLeft,i=-e.offsetTop;e=e.offsetParent;)t-=e.offsetLeft,i-=e.offsetTop;return{left:t,top:i}},t.preventDefaultException=function(e,t){for(var i in t)if(t[i].test(e[i]))return!0;return!1},t.extend(t.eventType={},{touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2,pointerdown:3,pointermove:3,pointerup:3,MSPointerDown:3,MSPointerMove:3,MSPointerUp:3}),t.extend(t.ease={},{quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(e){return e*(2-e)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",fn:function(e){return o.sqrt(1- --e*e)}},back:{style:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",fn:function(e){var t=4;return(e-=1)*e*((t+1)*e+t)+1}},bounce:{style:"",fn:function(e){return(e/=1)<1/2.75?7.5625*e*e:2/2.75>e?7.5625*(e-=1.5/2.75)*e+.75:2.5/2.75>e?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}},elastic:{style:"",fn:function(e){var t=.22,i=.4;return 0===e?0:1==e?1:i*o.pow(2,-10*e)*o.sin((e-t/4)*(2*o.PI)/t)+1}}}),t.tap=function(e,t){var i=s.createEvent("Event");i.initEvent(t,!0,!0),i.pageX=e.pageX,i.pageY=e.pageY,e.target.dispatchEvent(i)},t.click=function(e){var t,i=e.target;/(SELECT|INPUT|TEXTAREA)/i.test(i.tagName)||(t=s.createEvent("MouseEvents"),t.initMouseEvent("click",!0,!0,e.view,1,i.screenX,i.screenY,i.clientX,i.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,null),t._constructed=!0,i.dispatchEvent(t))},t}();a.prototype={version:"5.2.0",_init:function(){this._initEvents(),(this.options.scrollbars||this.options.indicators)&&this._initIndicators(),this.options.mouseWheel&&this._initWheel(),this.options.snap&&this._initSnap(),this.options.keyBindings&&this._initKeys()},destroy:function(){this._initEvents(!0),clearTimeout(this.resizeTimeout),this.resizeTimeout=null,this._execEvent("destroy")},_transitionEnd:function(e){e.target==this.scroller&&this.isInTransition&&(this._transitionTime(),this.resetPosition(this.options.bounceTime)||(this.isInTransition=!1,this._execEvent("scrollEnd")))},_start:function(e){if(1!=u.eventType[e.type]){var t;if(t=e.which?e.button:e.button<2?0:4==e.button?1:2,0!==t)return}if(this.enabled&&(!this.initiated||u.eventType[e.type]===this.initiated)){!this.options.preventDefault||u.isBadAndroid||u.preventDefaultException(e.target,this.options.preventDefaultException)||e.preventDefault();var i,n=e.touches?e.touches[0]:e;this.initiated=u.eventType[e.type],this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.directionLocked=0,this.startTime=u.getTime(),this.options.useTransition&&this.isInTransition?(this._transitionTime(),this.isInTransition=!1,i=this.getComputedPosition(),this._translate(o.round(i.x),o.round(i.y)),this._execEvent("scrollEnd")):!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,this._execEvent("scrollEnd")),this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=n.pageX,this.pointY=n.pageY,this._execEvent("beforeScrollStart")}},_move:function(e){if(this.enabled&&u.eventType[e.type]===this.initiated){this.options.preventDefault&&e.preventDefault();var t,i,n,r,s=e.touches?e.touches[0]:e,a=s.pageX-this.pointX,l=s.pageY-this.pointY,p=u.getTime();if(this.pointX=s.pageX,this.pointY=s.pageY,this.distX+=a,this.distY+=l,n=o.abs(this.distX),r=o.abs(this.distY),!(p-this.endTime>300&&10>n&&10>r)){if(this.directionLocked||this.options.freeScroll||(n>r+this.options.directionLockThreshold?this.directionLocked="h":r>=n+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"==this.directionLocked){if("vertical"==this.options.eventPassthrough)e.preventDefault();else if("horizontal"==this.options.eventPassthrough)return void(this.initiated=!1);l=0}else if("v"==this.directionLocked){if("horizontal"==this.options.eventPassthrough)e.preventDefault();else if("vertical"==this.options.eventPassthrough)return void(this.initiated=!1);a=0}a=this.hasHorizontalScroll?a:0,l=this.hasVerticalScroll?l:0,t=this.x+a,i=this.y+l,(t>0||t<this.maxScrollX)&&(t=this.options.bounce?this.x+a/3:t>0?0:this.maxScrollX),(i>0||i<this.maxScrollY)&&(i=this.options.bounce?this.y+l/3:i>0?0:this.maxScrollY),this.directionX=a>0?-1:0>a?1:0,this.directionY=l>0?-1:0>l?1:0,this.moved||this._execEvent("scrollStart"),this.moved=!0,this._translate(t,i),p-this.startTime>300&&(this.startTime=p,this.startX=this.x,this.startY=this.y,1==this.options.probeType&&this._execEvent("scroll")),this.options.probeType>1&&this._execEvent("scroll")}}},_end:function(e){if(this.enabled&&u.eventType[e.type]===this.initiated){this.options.preventDefault&&!u.preventDefaultException(e.target,this.options.preventDefaultException)&&e.preventDefault();var t,i,n=(e.changedTouches?e.changedTouches[0]:e,u.getTime()-this.startTime),r=o.round(this.x),s=o.round(this.y),a=o.abs(r-this.startX),l=o.abs(s-this.startY),p=0,c="";if(this.isInTransition=0,this.initiated=0,this.endTime=u.getTime(),!this.resetPosition(this.options.bounceTime)){if(this.scrollTo(r,s),!this.moved)return this.options.tap&&u.tap(e,this.options.tap),this.options.click&&u.click(e),void this._execEvent("scrollCancel");if(this._events.flick&&200>n&&100>a&&100>l)return void this._execEvent("flick");if(this.options.momentum&&300>n&&(t=this.hasHorizontalScroll?u.momentum(this.x,this.startX,n,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options.deceleration):{destination:r,duration:0},i=this.hasVerticalScroll?u.momentum(this.y,this.startY,n,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options.deceleration):{destination:s,duration:0},r=t.destination,s=i.destination,p=o.max(t.duration,i.duration),this.isInTransition=1),this.options.snap){var h=this._nearestSnap(r,s);this.currentPage=h,p=this.options.snapSpeed||o.max(o.max(o.min(o.abs(r-h.x),1e3),o.min(o.abs(s-h.y),1e3)),300),r=h.x,s=h.y,this.directionX=0,this.directionY=0,c=this.options.bounceEasing}return r!=this.x||s!=this.y?((r>0||r<this.maxScrollX||s>0||s<this.maxScrollY)&&(c=u.ease.quadratic),void this.scrollTo(r,s,p,c)):void this._execEvent("scrollEnd")}}},_resize:function(){var e=this;clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){e.refresh()},this.options.resizePolling)},resetPosition:function(e){var t=this.x,i=this.y;return e=e||0,!this.hasHorizontalScroll||this.x>0?t=0:this.x<this.maxScrollX&&(t=this.maxScrollX),!this.hasVerticalScroll||this.y>0?i=0:this.y<this.maxScrollY&&(i=this.maxScrollY),t==this.x&&i==this.y?!1:(this.scrollTo(t,i,e,this.options.bounceEasing),!0)},disable:function(){this.enabled=!1},enable:function(){this.enabled=!0},refresh:function(){this.wrapper.offsetHeight;this.wrapperWidth=this.wrapper.clientWidth,this.wrapperHeight=this.wrapper.clientHeight,this.scrollerWidth=this.scroller.offsetWidth,this.scrollerHeight=this.scroller.offsetHeight,this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.maxScrollY=this.wrapperHeight-this.scrollerHeight,this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<0,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<0,this.hasHorizontalScroll||(this.maxScrollX=0,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=0,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=u.offset(this.wrapper),this._execEvent("refresh"),this.resetPosition()},on:function(e,t){this._events[e]||(this._events[e]=[]),this._events[e].push(t)},off:function(e,t){if(this._events[e]){var i=this._events[e].indexOf(t);i>-1&&this._events[e].splice(i,1)}},_execEvent:function(e){if(this._events[e]){var t=0,i=this._events[e].length;if(i)for(;i>t;t++)this._events[e][t].apply(this,[].slice.call(arguments,1))}},scrollBy:function(e,t,i,n){e=this.x+e,t=this.y+t,i=i||0,this.scrollTo(e,t,i,n)},scrollTo:function(e,t,i,n){n=n||u.ease.circular,this.isInTransition=this.options.useTransition&&i>0;var r=this.options.useTransition&&n.style;!i||r?(r&&(this._transitionTimingFunction(n.style),this._transitionTime(i)),this._translate(e,t)):this._animate(e,t,i,n.fn)},scrollToElement:function(e,t,i,n,r){if(e=e.nodeType?e:this.scroller.querySelector(e)){var s=u.offset(e);s.left-=this.wrapperOffset.left,s.top-=this.wrapperOffset.top,i===!0&&(i=o.round(e.offsetWidth/2-this.wrapper.offsetWidth/2)),n===!0&&(n=o.round(e.offsetHeight/2-this.wrapper.offsetHeight/2)),s.left-=i||0,s.top-=n||0,s.left=s.left>0?0:s.left<this.maxScrollX?this.maxScrollX:s.left,s.top=s.top>0?0:s.top<this.maxScrollY?this.maxScrollY:s.top,t=void 0===t||null===t||"auto"===t?o.max(o.abs(this.x-s.left),o.abs(this.y-s.top)):t,this.scrollTo(s.left,s.top,t,r)}},_transitionTime:function(e){e=e||0;var t=u.style.transitionDuration;if(this.scrollerStyle[t]=e+"ms",!e&&u.isBadAndroid){this.scrollerStyle[t]="0.0001ms";var i=this;c(function(){"0.0001ms"===i.scrollerStyle[t]&&(i.scrollerStyle[t]="0s")})}if(this.indicators)for(var n=this.indicators.length;n--;)this.indicators[n].transitionTime(e)},_transitionTimingFunction:function(e){if(this.scrollerStyle[u.style.transitionTimingFunction]=e,this.indicators)for(var t=this.indicators.length;t--;)this.indicators[t].transitionTimingFunction(e)},_translate:function(e,t){if(this.options.useTransform?this.scrollerStyle[u.style.transform]="translate("+e+"px,"+t+"px)"+this.translateZ:(e=o.round(e),t=o.round(t),this.scrollerStyle.left=e+"px",this.scrollerStyle.top=t+"px"),this.x=e,this.y=t,this.indicators)for(var i=this.indicators.length;i--;)this.indicators[i].updatePosition()},_initEvents:function(e){var t=e?u.removeEvent:u.addEvent,i=this.options.bindToWrapper?this.wrapper:r;t(r,"orientationchange",this),t(r,"resize",this),this.options.click&&t(this.wrapper,"click",this,!0),this.options.disableMouse||(t(this.wrapper,"mousedown",this),t(i,"mousemove",this),t(i,"mousecancel",this),t(i,"mouseup",this)),u.hasPointer&&!this.options.disablePointer&&(t(this.wrapper,u.prefixPointerEvent("pointerdown"),this),t(i,u.prefixPointerEvent("pointermove"),this),t(i,u.prefixPointerEvent("pointercancel"),this),t(i,u.prefixPointerEvent("pointerup"),this)),u.hasTouch&&!this.options.disableTouch&&(t(this.wrapper,"touchstart",this),t(i,"touchmove",this),t(i,"touchcancel",this),t(i,"touchend",this)),t(this.scroller,"transitionend",this),t(this.scroller,"webkitTransitionEnd",this),t(this.scroller,"oTransitionEnd",this),t(this.scroller,"MSTransitionEnd",this)},getComputedPosition:function(){var e,t,i=r.getComputedStyle(this.scroller,null);return this.options.useTransform?(i=i[u.style.transform].split(")")[0].split(", "),e=+(i[12]||i[4]),t=+(i[13]||i[5])):(e=+i.left.replace(/[^-\d.]/g,""),t=+i.top.replace(/[^-\d.]/g,"")),{x:e,y:t}},_initIndicators:function(){function e(e){if(s.indicators)for(var t=s.indicators.length;t--;)e.call(s.indicators[t])}var t,i=this.options.interactiveScrollbars,n="string"!=typeof this.options.scrollbars,r=[],s=this;this.indicators=[],this.options.scrollbars&&(this.options.scrollY&&(t={el:l("v",i,this.options.scrollbars),interactive:i,defaultScrollbars:!0,customStyle:n,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenX:!1},this.wrapper.appendChild(t.el),r.push(t)),this.options.scrollX&&(t={el:l("h",i,this.options.scrollbars),interactive:i,defaultScrollbars:!0,customStyle:n,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenY:!1},this.wrapper.appendChild(t.el),r.push(t))),this.options.indicators&&(r=r.concat(this.options.indicators));for(var o=r.length;o--;)this.indicators.push(new p(this,r[o]));this.options.fadeScrollbars&&(this.on("scrollEnd",function(){e(function(){this.fade()})}),this.on("scrollCancel",function(){e(function(){this.fade()})}),this.on("scrollStart",function(){e(function(){this.fade(1)})}),this.on("beforeScrollStart",function(){e(function(){this.fade(1,!0)})})),this.on("refresh",function(){e(function(){this.refresh()})}),this.on("destroy",function(){e(function(){this.destroy()}),delete this.indicators})},_initWheel:function(){u.addEvent(this.wrapper,"wheel",this),u.addEvent(this.wrapper,"mousewheel",this),u.addEvent(this.wrapper,"DOMMouseScroll",this),this.on("destroy",function(){clearTimeout(this.wheelTimeout),this.wheelTimeout=null,u.removeEvent(this.wrapper,"wheel",this),u.removeEvent(this.wrapper,"mousewheel",this),u.removeEvent(this.wrapper,"DOMMouseScroll",this)})},_wheel:function(e){if(this.enabled){e.preventDefault();var t,i,n,r,s=this;if(void 0===this.wheelTimeout&&s._execEvent("scrollStart"),clearTimeout(this.wheelTimeout),this.wheelTimeout=setTimeout(function(){s.options.snap||s._execEvent("scrollEnd"),s.wheelTimeout=void 0},400),"deltaX"in e)1===e.deltaMode?(t=-e.deltaX*this.options.mouseWheelSpeed,i=-e.deltaY*this.options.mouseWheelSpeed):(t=-e.deltaX,i=-e.deltaY);else if("wheelDeltaX"in e)t=e.wheelDeltaX/120*this.options.mouseWheelSpeed,i=e.wheelDeltaY/120*this.options.mouseWheelSpeed;else if("wheelDelta"in e)t=i=e.wheelDelta/120*this.options.mouseWheelSpeed;else{if(!("detail"in e))return;t=i=-e.detail/3*this.options.mouseWheelSpeed}if(t*=this.options.invertWheelDirection,i*=this.options.invertWheelDirection,this.hasVerticalScroll||(t=i,i=0),this.options.snap)return n=this.currentPage.pageX,r=this.currentPage.pageY,t>0?n--:0>t&&n++,i>0?r--:0>i&&r++,void this.goToPage(n,r);n=this.x+o.round(this.hasHorizontalScroll?t:0),r=this.y+o.round(this.hasVerticalScroll?i:0),this.directionX=t>0?-1:0>t?1:0,this.directionY=i>0?-1:0>i?1:0,n>0?n=0:n<this.maxScrollX&&(n=this.maxScrollX),r>0?r=0:r<this.maxScrollY&&(r=this.maxScrollY),this.scrollTo(n,r,0),this.options.probeType>1&&this._execEvent("scroll")}},_initSnap:function(){this.currentPage={},"string"==typeof this.options.snap&&(this.options.snap=this.scroller.querySelectorAll(this.options.snap)),this.on("refresh",function(){var e,t,i,n,r,s,a=0,l=0,p=0,c=this.options.snapStepX||this.wrapperWidth,u=this.options.snapStepY||this.wrapperHeight;if(this.pages=[],this.wrapperWidth&&this.wrapperHeight&&this.scrollerWidth&&this.scrollerHeight){if(this.options.snap===!0)for(i=o.round(c/2),n=o.round(u/2);p>-this.scrollerWidth;){for(this.pages[a]=[],e=0,r=0;r>-this.scrollerHeight;)this.pages[a][e]={x:o.max(p,this.maxScrollX),y:o.max(r,this.maxScrollY),width:c,height:u,cx:p-i,cy:r-n},r-=u,e++;p-=c,a++}else for(s=this.options.snap,e=s.length,t=-1;e>a;a++)(0===a||s[a].offsetLeft<=s[a-1].offsetLeft)&&(l=0,t++),this.pages[l]||(this.pages[l]=[]),p=o.max(-s[a].offsetLeft,this.maxScrollX),r=o.max(-s[a].offsetTop,this.maxScrollY),i=p-o.round(s[a].offsetWidth/2),n=r-o.round(s[a].offsetHeight/2),this.pages[l][t]={x:p,y:r,width:s[a].offsetWidth,height:s[a].offsetHeight,cx:i,cy:n},p>this.maxScrollX&&l++;this.goToPage(this.currentPage.pageX||0,this.currentPage.pageY||0,0),this.options.snapThreshold%1===0?(this.snapThresholdX=this.options.snapThreshold,this.snapThresholdY=this.options.snapThreshold):(this.snapThresholdX=o.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].width*this.options.snapThreshold),this.snapThresholdY=o.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].height*this.options.snapThreshold))}}),this.on("flick",function(){var e=this.options.snapSpeed||o.max(o.max(o.min(o.abs(this.x-this.startX),1e3),o.min(o.abs(this.y-this.startY),1e3)),300);this.goToPage(this.currentPage.pageX+this.directionX,this.currentPage.pageY+this.directionY,e)})},_nearestSnap:function(e,t){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var i=0,n=this.pages.length,r=0;if(o.abs(e-this.absStartX)<this.snapThresholdX&&o.abs(t-this.absStartY)<this.snapThresholdY)return this.currentPage;for(e>0?e=0:e<this.maxScrollX&&(e=this.maxScrollX),t>0?t=0:t<this.maxScrollY&&(t=this.maxScrollY);n>i;i++)if(e>=this.pages[i][0].cx){e=this.pages[i][0].x;break}for(n=this.pages[i].length;n>r;r++)if(t>=this.pages[0][r].cy){t=this.pages[0][r].y;break}return i==this.currentPage.pageX&&(i+=this.directionX,0>i?i=0:i>=this.pages.length&&(i=this.pages.length-1),e=this.pages[i][0].x),r==this.currentPage.pageY&&(r+=this.directionY,0>r?r=0:r>=this.pages[0].length&&(r=this.pages[0].length-1),t=this.pages[0][r].y),{x:e,y:t,pageX:i,pageY:r}},goToPage:function(e,t,i,n){n=n||this.options.bounceEasing,e>=this.pages.length?e=this.pages.length-1:0>e&&(e=0),t>=this.pages[e].length?t=this.pages[e].length-1:0>t&&(t=0);var r=this.pages[e][t].x,s=this.pages[e][t].y;i=void 0===i?this.options.snapSpeed||o.max(o.max(o.min(o.abs(r-this.x),1e3),o.min(o.abs(s-this.y),1e3)),300):i,this.currentPage={x:r,y:s,pageX:e,pageY:t},this.scrollTo(r,s,i,n)},next:function(e,t){var i=this.currentPage.pageX,n=this.currentPage.pageY;i++,i>=this.pages.length&&this.hasVerticalScroll&&(i=0,n++),this.goToPage(i,n,e,t)},prev:function(e,t){var i=this.currentPage.pageX,n=this.currentPage.pageY;i--,0>i&&this.hasVerticalScroll&&(i=0,n--),this.goToPage(i,n,e,t)},_initKeys:function(e){var t,i={pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40};if("object"==typeof this.options.keyBindings)for(t in this.options.keyBindings)"string"==typeof this.options.keyBindings[t]&&(this.options.keyBindings[t]=this.options.keyBindings[t].toUpperCase().charCodeAt(0));else this.options.keyBindings={};for(t in i)this.options.keyBindings[t]=this.options.keyBindings[t]||i[t];u.addEvent(r,"keydown",this),this.on("destroy",function(){u.removeEvent(r,"keydown",this)})},_key:function(e){if(this.enabled){var t,i=this.options.snap,n=i?this.currentPage.pageX:this.x,r=i?this.currentPage.pageY:this.y,s=u.getTime(),a=this.keyTime||0,l=.25;switch(this.options.useTransition&&this.isInTransition&&(t=this.getComputedPosition(),this._translate(o.round(t.x),o.round(t.y)),this.isInTransition=!1),this.keyAcceleration=200>s-a?o.min(this.keyAcceleration+l,50):0,e.keyCode){case this.options.keyBindings.pageUp:this.hasHorizontalScroll&&!this.hasVerticalScroll?n+=i?1:this.wrapperWidth:r+=i?1:this.wrapperHeight;break;case this.options.keyBindings.pageDown:this.hasHorizontalScroll&&!this.hasVerticalScroll?n-=i?1:this.wrapperWidth:r-=i?1:this.wrapperHeight;break;case this.options.keyBindings.end:n=i?this.pages.length-1:this.maxScrollX,r=i?this.pages[0].length-1:this.maxScrollY;break;case this.options.keyBindings.home:n=0,r=0;break;case this.options.keyBindings.left:n+=i?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.up:r+=i?1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.right:n-=i?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.down:r-=i?1:5+this.keyAcceleration>>0;break;default:return}if(i)return void this.goToPage(n,r);n>0?(n=0,this.keyAcceleration=0):n<this.maxScrollX&&(n=this.maxScrollX,this.keyAcceleration=0),r>0?(r=0,this.keyAcceleration=0):r<this.maxScrollY&&(r=this.maxScrollY,this.keyAcceleration=0),this.scrollTo(n,r,0),this.keyTime=s}},_animate:function(e,t,i,n){function r(){var h,d,f,m=u.getTime();return m>=p?(s.isAnimating=!1,s._translate(e,t),void(s.resetPosition(s.options.bounceTime)||s._execEvent("scrollEnd"))):(m=(m-l)/i,f=n(m),h=(e-o)*f+o,d=(t-a)*f+a,s._translate(h,d),s.isAnimating&&c(r),void(3==s.options.probeType&&s._execEvent("scroll")))}var s=this,o=this.x,a=this.y,l=u.getTime(),p=l+i;this.isAnimating=!0,r()},handleEvent:function(e){switch(e.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(e);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(e);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(e);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(e);break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._wheel(e);break;case"keydown":this._key(e);break;case"click":this.enabled&&!e._constructed&&(e.preventDefault(),e.stopPropagation())}}},p.prototype={handleEvent:function(e){switch(e.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(e);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(e);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(e)}},destroy:function(){this.options.fadeScrollbars&&(clearTimeout(this.fadeTimeout),this.fadeTimeout=null),this.options.interactive&&(u.removeEvent(this.indicator,"touchstart",this),u.removeEvent(this.indicator,u.prefixPointerEvent("pointerdown"),this),u.removeEvent(this.indicator,"mousedown",this),u.removeEvent(r,"touchmove",this),u.removeEvent(r,u.prefixPointerEvent("pointermove"),this),u.removeEvent(r,"mousemove",this),u.removeEvent(r,"touchend",this),u.removeEvent(r,u.prefixPointerEvent("pointerup"),this),u.removeEvent(r,"mouseup",this)),this.options.defaultScrollbars&&this.wrapper.parentNode.removeChild(this.wrapper)},_start:function(e){var t=e.touches?e.touches[0]:e;e.preventDefault(),e.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=t.pageX,this.lastPointY=t.pageY,this.startTime=u.getTime(),this.options.disableTouch||u.addEvent(r,"touchmove",this),this.options.disablePointer||u.addEvent(r,u.prefixPointerEvent("pointermove"),this),this.options.disableMouse||u.addEvent(r,"mousemove",this),this.scroller._execEvent("beforeScrollStart")},_move:function(e){var t,i,n,r,s=e.touches?e.touches[0]:e,o=u.getTime();this.moved||this.scroller._execEvent("scrollStart"),this.moved=!0,t=s.pageX-this.lastPointX,this.lastPointX=s.pageX,i=s.pageY-this.lastPointY,this.lastPointY=s.pageY,n=this.x+t,r=this.y+i,this._pos(n,r),1==this.scroller.options.probeType&&o-this.startTime>300?(this.startTime=o,this.scroller._execEvent("scroll")):this.scroller.options.probeType>1&&this.scroller._execEvent("scroll"),e.preventDefault(),e.stopPropagation()},_end:function(e){if(this.initiated){if(this.initiated=!1,e.preventDefault(),e.stopPropagation(),u.removeEvent(r,"touchmove",this),u.removeEvent(r,u.prefixPointerEvent("pointermove"),this),u.removeEvent(r,"mousemove",this),this.scroller.options.snap){var t=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),i=this.options.snapSpeed||o.max(o.max(o.min(o.abs(this.scroller.x-t.x),1e3),o.min(o.abs(this.scroller.y-t.y),1e3)),300);this.scroller.x==t.x&&this.scroller.y==t.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=t,this.scroller.scrollTo(t.x,t.y,i,this.scroller.options.bounceEasing))}this.moved&&this.scroller._execEvent("scrollEnd")}},transitionTime:function(e){e=e||0;var t=u.style.transitionDuration;if(this.indicatorStyle[t]=e+"ms",!e&&u.isBadAndroid){this.indicatorStyle[t]="0.0001ms";var i=this;c(function(){"0.0001ms"===i.indicatorStyle[t]&&(i.indicatorStyle[t]="0s")})}},transitionTimingFunction:function(e){this.indicatorStyle[u.style.transitionTimingFunction]=e},refresh:function(){this.transitionTime(),this.options.listenX&&!this.options.listenY?this.indicatorStyle.display=this.scroller.hasHorizontalScroll?"block":"none":this.options.listenY&&!this.options.listenX?this.indicatorStyle.display=this.scroller.hasVerticalScroll?"block":"none":this.indicatorStyle.display=this.scroller.hasHorizontalScroll||this.scroller.hasVerticalScroll?"block":"none",this.scroller.hasHorizontalScroll&&this.scroller.hasVerticalScroll?(u.addClass(this.wrapper,"iScrollBothScrollbars"),u.removeClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="8px":this.wrapper.style.bottom="8px")):(u.removeClass(this.wrapper,"iScrollBothScrollbars"),u.addClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="2px":this.wrapper.style.bottom="2px"));this.wrapper.offsetHeight;this.options.listenX&&(this.wrapperWidth=this.wrapper.clientWidth,this.options.resize?(this.indicatorWidth=o.max(o.round(this.wrapperWidth*this.wrapperWidth/(this.scroller.scrollerWidth||this.wrapperWidth||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px"):this.indicatorWidth=this.indicator.clientWidth,this.maxPosX=this.wrapperWidth-this.indicatorWidth,"clip"==this.options.shrink?(this.minBoundaryX=-this.indicatorWidth+8,this.maxBoundaryX=this.wrapperWidth-8):(this.minBoundaryX=0,this.maxBoundaryX=this.maxPosX),this.sizeRatioX=this.options.speedRatioX||this.scroller.maxScrollX&&this.maxPosX/this.scroller.maxScrollX),this.options.listenY&&(this.wrapperHeight=this.wrapper.clientHeight,this.options.resize?(this.indicatorHeight=o.max(o.round(this.wrapperHeight*this.wrapperHeight/(this.scroller.scrollerHeight||this.wrapperHeight||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px"):this.indicatorHeight=this.indicator.clientHeight,this.maxPosY=this.wrapperHeight-this.indicatorHeight,"clip"==this.options.shrink?(this.minBoundaryY=-this.indicatorHeight+8,this.maxBoundaryY=this.wrapperHeight-8):(this.minBoundaryY=0,this.maxBoundaryY=this.maxPosY),this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.sizeRatioY=this.options.speedRatioY||this.scroller.maxScrollY&&this.maxPosY/this.scroller.maxScrollY),this.updatePosition()},updatePosition:function(){var e=this.options.listenX&&o.round(this.sizeRatioX*this.scroller.x)||0,t=this.options.listenY&&o.round(this.sizeRatioY*this.scroller.y)||0;this.options.ignoreBoundaries||(e<this.minBoundaryX?("scale"==this.options.shrink&&(this.width=o.max(this.indicatorWidth+e,8),this.indicatorStyle.width=this.width+"px"),e=this.minBoundaryX):e>this.maxBoundaryX?"scale"==this.options.shrink?(this.width=o.max(this.indicatorWidth-(e-this.maxPosX),8),this.indicatorStyle.width=this.width+"px",e=this.maxPosX+this.indicatorWidth-this.width):e=this.maxBoundaryX:"scale"==this.options.shrink&&this.width!=this.indicatorWidth&&(this.width=this.indicatorWidth,this.indicatorStyle.width=this.width+"px"),t<this.minBoundaryY?("scale"==this.options.shrink&&(this.height=o.max(this.indicatorHeight+3*t,8),
this.indicatorStyle.height=this.height+"px"),t=this.minBoundaryY):t>this.maxBoundaryY?"scale"==this.options.shrink?(this.height=o.max(this.indicatorHeight-3*(t-this.maxPosY),8),this.indicatorStyle.height=this.height+"px",t=this.maxPosY+this.indicatorHeight-this.height):t=this.maxBoundaryY:"scale"==this.options.shrink&&this.height!=this.indicatorHeight&&(this.height=this.indicatorHeight,this.indicatorStyle.height=this.height+"px")),this.x=e,this.y=t,this.scroller.options.useTransform?this.indicatorStyle[u.style.transform]="translate("+e+"px,"+t+"px)"+this.scroller.translateZ:(this.indicatorStyle.left=e+"px",this.indicatorStyle.top=t+"px")},_pos:function(e,t){0>e?e=0:e>this.maxPosX&&(e=this.maxPosX),0>t?t=0:t>this.maxPosY&&(t=this.maxPosY),e=this.options.listenX?o.round(e/this.sizeRatioX):this.scroller.x,t=this.options.listenY?o.round(t/this.sizeRatioY):this.scroller.y,this.scroller.scrollTo(e,t)},fade:function(e,t){if(!t||this.visible){clearTimeout(this.fadeTimeout),this.fadeTimeout=null;var i=e?250:500,n=e?0:300;e=e?"1":"0",this.wrapperStyle[u.style.transitionDuration]=i+"ms",this.fadeTimeout=setTimeout(function(e){this.wrapperStyle.opacity=e,this.visible=+e}.bind(this,e),n)}}},a.utils=u,"undefined"!=typeof e&&e.exports?e.exports=a:(n=function(){return a}.call(t,i,t,e),!(void 0!==n&&(e.exports=n)))}(window,document,Math)}]);