/** * swiper 6.7.1 * most modern mobile touch slider and framework with hardware accelerated transitions * https://swiperjs.com * * copyright 2014-2021 vladimir kharlampidi * * released under the mit license * * released on: june 23, 2021 */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalthis?globalthis:e||self).swiper=t()}(this,(function(){"use strict";function e(e,t){for(var a=0;a0&&i(e[s],t[s])}))}var s={body:{},addeventlistener:function(){},removeeventlistener:function(){},activeelement:{blur:function(){},nodename:""},queryselector:function(){return null},queryselectorall:function(){return[]},getelementbyid:function(){return null},createevent:function(){return{initevent:function(){}}},createelement:function(){return{children:[],childnodes:[],style:{},setattribute:function(){},getelementsbytagname:function(){return[]}}},createelementns:function(){return{}},importnode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function r(){var e="undefined"!=typeof document?document:{};return i(e,s),e}var n={document:s,navigator:{useragent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replacestate:function(){},pushstate:function(){},go:function(){},back:function(){}},customevent:function(){return this},addeventlistener:function(){},removeeventlistener:function(){},getcomputedstyle:function(){return{getpropertyvalue:function(){return""}}},image:function(){},date:function(){},screen:{},settimeout:function(){},cleartimeout:function(){},matchmedia:function(){return{}},requestanimationframe:function(e){return"undefined"==typeof settimeout?(e(),null):settimeout(e,0)},cancelanimationframe:function(e){"undefined"!=typeof settimeout&&cleartimeout(e)}};function l(){var e="undefined"!=typeof window?window:{};return i(e,n),e}function o(e){return(o=object.setprototypeof?object.getprototypeof:function(e){return e.__proto__||object.getprototypeof(e)})(e)}function d(e,t){return(d=object.setprototypeof||function(e,t){return e.__proto__=t,e})(e,t)}function p(){if("undefined"==typeof reflect||!reflect.construct)return!1;if(reflect.construct.sham)return!1;if("function"==typeof proxy)return!0;try{return date.prototype.tostring.call(reflect.construct(date,[],(function(){}))),!0}catch(e){return!1}}function u(e,t,a){return(u=p()?reflect.construct:function(e,t,a){var i=[null];i.push.apply(i,t);var s=new(function.bind.apply(e,i));return a&&d(s,a.prototype),s}).apply(null,arguments)}function c(e){var t="function"==typeof map?new map:void 0;return(c=function(e){if(null===e||(a=e,-1===function.tostring.call(a).indexof("[native code]")))return e;var a;if("function"!=typeof e)throw new typeerror("super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return u(e,arguments,o(this).constructor)}return i.prototype=object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),d(i,e)})(e)}var h=function(e){var t,a;function i(t){var a,i,s;return a=e.call.apply(e,[this].concat(t))||this,i=function(e){if(void 0===e)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return e}(a),s=i.__proto__,object.defineproperty(i,"__proto__",{get:function(){return s},set:function(e){s.__proto__=e}}),a}return a=e,(t=i).prototype=object.create(a.prototype),t.prototype.constructor=t,t.__proto__=a,i}(c(array));function v(e){void 0===e&&(e=[]);var t=[];return e.foreach((function(e){array.isarray(e)?t.push.apply(t,v(e)):t.push(e)})),t}function f(e,t){return array.prototype.filter.call(e,t)}function m(e,t){var a=l(),i=r(),s=[];if(!t&&e instanceof h)return e;if(!e)return new h(s);if("string"==typeof e){var n=e.trim();if(n.indexof("<")>=0&&n.indexof(">")>=0){var o="div";0===n.indexof("0})).length>0},toggleclass:function(){for(var e=arguments.length,t=new array(e),a=0;a=0;h-=1){var v=c[h];r&&v.listener===r||r&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===r?(u.removeeventlistener(d,v.proxylistener,n),c.splice(h,1)):r||(u.removeeventlistener(d,v.proxylistener,n),c.splice(h,1))}}return this},trigger:function(){for(var e=l(),t=arguments.length,a=new array(t),i=0;i0})),p.dispatchevent(u),p.dom7eventdata=[],delete p.dom7eventdata}}return this},transitionend:function(e){var t=this;return e&&t.on("transitionend",(function a(i){i.target===this&&(e.call(this,i),t.off("transitionend",a))})),this},outerwidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetwidth+parsefloat(t.getpropertyvalue("margin-right"))+parsefloat(t.getpropertyvalue("margin-left"))}return this[0].offsetwidth}return null},outerheight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetheight+parsefloat(t.getpropertyvalue("margin-top"))+parsefloat(t.getpropertyvalue("margin-bottom"))}return this[0].offsetheight}return null},styles:function(){var e=l();return this[0]?e.getcomputedstyle(this[0],null):{}},offset:function(){if(this.length>0){var e=l(),t=r(),a=this[0],i=a.getboundingclientrect(),s=t.body,n=a.clienttop||s.clienttop||0,o=a.clientleft||s.clientleft||0,d=a===e?e.scrolly:a.scrolltop,p=a===e?e.scrollx:a.scrollleft;return{top:i.top+d-n,left:i.left+p-o}}return null},css:function(e,t){var a,i=l();if(1===arguments.length){if("string"!=typeof e){for(a=0;at-1)return m([]);if(e<0){var a=t+e;return m(a<0?[]:[this[a]])}return m([this[e]])},append:function(){for(var e,t=r(),a=0;a=0;a-=1)this[t].insertbefore(s.childnodes[a],this[t].childnodes[0])}else if(e instanceof h)for(a=0;a0?e?this[0].nextelementsibling&&m(this[0].nextelementsibling).is(e)?m([this[0].nextelementsibling]):m([]):this[0].nextelementsibling?m([this[0].nextelementsibling]):m([]):m([])},nextall:function(e){var t=[],a=this[0];if(!a)return m([]);for(;a.nextelementsibling;){var i=a.nextelementsibling;e?m(i).is(e)&&t.push(i):t.push(i),a=i}return m(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previouselementsibling&&m(t.previouselementsibling).is(e)?m([t.previouselementsibling]):m([]):t.previouselementsibling?m([t.previouselementsibling]):m([])}return m([])},prevall:function(e){var t=[],a=this[0];if(!a)return m([]);for(;a.previouselementsibling;){var i=a.previouselementsibling;e?m(i).is(e)&&t.push(i):t.push(i),a=i}return m(t)},parent:function(e){for(var t=[],a=0;a6&&(i=i.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),s=new r.webkitcssmatrix("none"===i?"":i)):a=(s=n.moztransform||n.otransform||n.mstransform||n.mstransform||n.transform||n.getpropertyvalue("transform").replace("translate(","matrix(1, 0, 0, 1,")).tostring().split(","),"x"===t&&(i=r.webkitcssmatrix?s.m41:16===a.length?parsefloat(a[12]):parsefloat(a[4])),"y"===t&&(i=r.webkitcssmatrix?s.m42:16===a.length?parsefloat(a[13]):parsefloat(a[5])),i||0}function c(e){return"object"==typeof e&&null!==e&&e.constructor&&"object"===object.prototype.tostring.call(e).slice(8,-1)}function s(){for(var e=object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"],a="undefined"!=typeof window?window.htmlelement:void 0,i=1;i=0,observer:"mutationobserver"in e||"webkitmutationobserver"in e,passivelistener:function(){var t=!1;try{var a=object.defineproperty({},"passive",{get:function(){t=!0}});e.addeventlistener("testpassivelistener",null,a)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),g}function $(e){return void 0===e&&(e={}),b||(b=function(e){var t=(void 0===e?{}:e).useragent,a=k(),i=l(),s=i.navigator.platform,r=t||i.navigator.useragent,n={ios:!1,android:!1},o=i.screen.width,d=i.screen.height,p=r.match(/(android);?[\s\/]+([\d.]+)?/),u=r.match(/(ipad).*os\s([\d_]+)/),c=r.match(/(ipod)(.*os\s([\d_]+))?/),h=!u&&r.match(/(iphone\sos|ios)\s([\d_]+)/),v="win32"===s,f="macintel"===s;return!u&&f&&a.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexof(o+"x"+d)>=0&&((u=r.match(/(version)\/([\d.]+)/))||(u=[0,1,"13_0_0"]),f=!1),p&&!v&&(n.os="android",n.android=!0),(u||h||c)&&(n.os="ios",n.ios=!0),n}(e)),b}function l(){return w||(w=function(){var e,t=l();return{isedge:!!t.navigator.useragent.match(/edge/g),issafari:(e=t.navigator.useragent.tolowercase(),e.indexof("safari")>=0&&e.indexof("chrome")<0&&e.indexof("android")<0),iswebview:/(iphone|ipod|ipad).*applewebkit(?!.*safari)/i.test(t.navigator.useragent)}}()),w}object.keys(y).foreach((function(e){object.defineproperty(m.fn,e,{value:y[e],writable:!0})}));var i={name:"resize",create:function(){var e=this;s(e,{resize:{observer:null,createobserver:function(){e&&!e.destroyed&&e.initialized&&(e.resize.observer=new resizeobserver((function(t){var a=e.width,i=e.height,s=a,r=i;t.foreach((function(t){var a=t.contentboxsize,i=t.contentrect,n=t.target;n&&n!==e.el||(s=i?i.width:(a[0]||a).inlinesize,r=i?i.height:(a[0]||a).blocksize)})),s===a&&r===i||e.resize.resizehandler()})),e.resize.observer.observe(e.el))},removeobserver:function(){e.resize.observer&&e.resize.observer.unobserve&&e.el&&(e.resize.observer.unobserve(e.el),e.resize.observer=null)},resizehandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeresize"),e.emit("resize"))},orientationchangehandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(e){var t=l();e.params.resizeobserver&&void 0!==l().resizeobserver?e.resize.createobserver():(t.addeventlistener("resize",e.resize.resizehandler),t.addeventlistener("orientationchange",e.resize.orientationchangehandler))},destroy:function(e){var t=l();e.resize.removeobserver(),t.removeeventlistener("resize",e.resize.resizehandler),t.removeeventlistener("orientationchange",e.resize.orientationchangehandler)}}},o={attach:function(e,t){void 0===t&&(t={});var a=l(),i=this,s=new(a.mutationobserver||a.webkitmutationobserver)((function(e){if(1!==e.length){var t=function(){i.emit("observerupdate",e[0])};a.requestanimationframe?a.requestanimationframe(t):a.settimeout(t,0)}else i.emit("observerupdate",e[0])}));s.observe(e,{attributes:void 0===t.attributes||t.attributes,childlist:void 0===t.childlist||t.childlist,characterdata:void 0===t.characterdata||t.characterdata}),i.observer.observers.push(s)},init:function(){var e=this;if(e.support.observer&&e.params.observer){if(e.params.observeparents)for(var t=e.$el.parents(),a=0;a0))if(!s.istouched||!s.ismoved)if(!!n.noswipingclass&&""!==n.noswipingclass&&d.target&&d.target.shadowroot&&e.path&&e.path[0]&&(p=m(e.path[0])),n.noswiping&&p.closest(n.noswipingselector?n.noswipingselector:"."+n.noswipingclass)[0])t.allowclick=!0;else if(!n.swipehandler||p.closest(n.swipehandler)[0]){o.currentx="touchstart"===d.type?d.targettouches[0].pagex:d.pagex,o.currenty="touchstart"===d.type?d.targettouches[0].pagey:d.pagey;var u=o.currentx,c=o.currenty,h=n.edgeswipedetection||n.iosedgeswipedetection,v=n.edgeswipethreshold||n.iosedgeswipethreshold;if(h&&(u<=v||u>=i.innerwidth-v)){if("prevent"!==h)return;e.preventdefault()}if(s(s,{istouched:!0,ismoved:!1,allowtouchcallbacks:!0,isscrolling:void 0,startmoving:void 0}),o.startx=u,o.starty=c,s.touchstarttime=x(),t.allowclick=!0,t.updatesize(),t.swipedirection=void 0,n.threshold>0&&(s.allowthresholdmove=!1),"touchstart"!==d.type){var f=!0;p.is(s.focusableelements)&&(f=!1),a.activeelement&&m(a.activeelement).is(s.focusableelements)&&a.activeelement!==p[0]&&a.activeelement.blur();var g=f&&t.allowtouchmove&&n.touchstartpreventdefault;!n.touchstartforcepreventdefault&&!g||p[0].iscontenteditable||d.preventdefault()}t.emit("touchstart",d)}}}function n(e){var t=r(),a=this,i=a.toucheventsdata,s=a.params,n=a.touches,l=a.rtltranslate;if(a.enabled){var o=e;if(o.originalevent&&(o=o.originalevent),i.istouched){if(!i.istouchevent||"touchmove"===o.type){var d="touchmove"===o.type&&o.targettouches&&(o.targettouches[0]||o.changedtouches[0]),p="touchmove"===o.type?d.pagex:o.pagex,u="touchmove"===o.type?d.pagey:o.pagey;if(o.preventedbynestedswiper)return n.startx=p,void(n.starty=u);if(!a.allowtouchmove)return a.allowclick=!1,void(i.istouched&&(s(n,{startx:p,starty:u,currentx:p,currenty:u}),i.touchstarttime=x()));if(i.istouchevent&&s.touchreleaseonedges&&!s.loop)if(a.isvertical()){if(un.starty&&a.translate>=a.mintranslate())return i.istouched=!1,void(i.ismoved=!1)}else if(pn.startx&&a.translate>=a.mintranslate())return;if(i.istouchevent&&t.activeelement&&o.target===t.activeelement&&m(o.target).is(i.focusableelements))return i.ismoved=!0,void(a.allowclick=!1);if(i.allowtouchcallbacks&&a.emit("touchmove",o),!(o.targettouches&&o.targettouches.length>1)){n.currentx=p,n.currenty=u;var c=n.currentx-n.startx,h=n.currenty-n.starty;if(!(a.params.threshold&&math.sqrt(math.pow(c,2)+math.pow(h,2))=25&&(v=180*math.atan2(math.abs(h),math.abs(c))/math.pi,i.isscrolling=a.ishorizontal()?v>s.touchangle:90-v>s.touchangle);if(i.isscrolling&&a.emit("touchmoveopposite",o),void 0===i.startmoving&&(n.currentx===n.startx&&n.currenty===n.starty||(i.startmoving=!0)),i.isscrolling)i.istouched=!1;else if(i.startmoving){a.allowclick=!1,!s.cssmode&&o.cancelable&&o.preventdefault(),s.touchmovestoppropagation&&!s.nested&&o.stoppropagation(),i.ismoved||(s.loop&&a.loopfix(),i.starttranslate=a.gettranslate(),a.settransition(0),a.animating&&a.$wrapperel.trigger("webkittransitionend transitionend"),i.allowmomentumbounce=!1,!s.grabcursor||!0!==a.allowslidenext&&!0!==a.allowslideprev||a.setgrabcursor(!0),a.emit("sliderfirstmove",o)),a.emit("slidermove",o),i.ismoved=!0;var f=a.ishorizontal()?c:h;n.diff=f,f*=s.touchratio,l&&(f=-f),a.swipedirection=f>0?"prev":"next",i.currenttranslate=f+i.starttranslate;var g=!0,b=s.resistanceratio;if(s.touchreleaseonedges&&(b=0),f>0&&i.currenttranslate>a.mintranslate()?(g=!1,s.resistance&&(i.currenttranslate=a.mintranslate()-1+math.pow(-a.mintranslate()+i.starttranslate+f,b))):f<0&&i.currenttranslatei.starttranslate&&(i.currenttranslate=i.starttranslate),a.allowslideprev||a.allowslidenext||(i.currenttranslate=i.starttranslate),s.threshold>0){if(!(math.abs(f)>s.threshold||i.allowthresholdmove))return void(i.currenttranslate=i.starttranslate);if(!i.allowthresholdmove)return i.allowthresholdmove=!0,n.startx=n.currentx,n.starty=n.currenty,i.currenttranslate=i.starttranslate,void(n.diff=a.ishorizontal()?n.currentx-n.startx:n.currenty-n.starty)}s.followfinger&&!s.cssmode&&((s.freemode||s.watchslidesprogress||s.watchslidesvisibility)&&(a.updateactiveindex(),a.updateslidesclasses()),s.freemode&&(0===i.velocities.length&&i.velocities.push({position:n[a.ishorizontal()?"startx":"starty"],time:i.touchstarttime}),i.velocities.push({position:n[a.ishorizontal()?"currentx":"currenty"],time:x()})),a.updateprogress(i.currenttranslate),a.settranslate(i.currenttranslate))}}}}}else i.startmoving&&i.isscrolling&&a.emit("touchmoveopposite",o)}}function g(e){var t=this,a=t.toucheventsdata,i=t.params,s=t.touches,r=t.rtltranslate,n=t.$wrapperel,l=t.slidesgrid,o=t.snapgrid;if(t.enabled){var d=e;if(d.originalevent&&(d=d.originalevent),a.allowtouchcallbacks&&t.emit("touchend",d),a.allowtouchcallbacks=!1,!a.istouched)return a.ismoved&&i.grabcursor&&t.setgrabcursor(!1),a.ismoved=!1,void(a.startmoving=!1);i.grabcursor&&a.ismoved&&a.istouched&&(!0===t.allowslidenext||!0===t.allowslideprev)&&t.setgrabcursor(!1);var p,u=x(),c=u-a.touchstarttime;if(t.allowclick&&(t.updateclickedslide(d),t.emit("tap click",d),c<300&&u-a.lastclicktime<300&&t.emit("doubletap doubleclick",d)),a.lastclicktime=x(),e((function(){t.destroyed||(t.allowclick=!0)})),!a.istouched||!a.ismoved||!t.swipedirection||0===s.diff||a.currenttranslate===a.starttranslate)return a.istouched=!1,a.ismoved=!1,void(a.startmoving=!1);if(a.istouched=!1,a.ismoved=!1,a.startmoving=!1,p=i.followfinger?r?t.translate:-t.translate:-a.currenttranslate,!i.cssmode)if(i.freemode){if(p<-t.mintranslate())return void t.slideto(t.activeindex);if(p>-t.maxtranslate())return void(t.slides.length1){var h=a.velocities.pop(),v=a.velocities.pop(),f=h.position-v.position,m=h.time-v.time;t.velocity=f/m,t.velocity/=2,math.abs(t.velocity)150||x()-h.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=i.freemodemomentumvelocityratio,a.velocities.length=0;var g=1e3*i.freemodemomentumratio,b=t.velocity*g,w=t.translate+b;r&&(w=-w);var y,t,c=!1,s=20*math.abs(t.velocity)*i.freemodemomentumbounceratio;if(wt.mintranslate())i.freemodemomentumbounce?(w-t.mintranslate()>s&&(w=t.mintranslate()+s),y=t.mintranslate(),c=!0,a.allowmomentumbounce=!0):w=t.mintranslate(),i.loop&&i.centeredslides&&(t=!0);else if(i.freemodesticky){for(var m,z=0;z-w){m=z;break}w=-(w=math.abs(o[m]-w)=i.longswipesms)&&(t.updateprogress(),t.updateactiveindex(),t.updateslidesclasses())}else{for(var $=0,l=t.slidessizesgrid[0],i=0;i=l[i]&&p=l[i]&&($=i,l=l[l.length-1]-l[l.length-2])}var a=(p-l[$])/l,d=$i.longswipesms){if(!i.longswipes)return void t.slideto(t.activeindex);"next"===t.swipedirection&&(a>=i.longswipesratio?t.slideto($+d):t.slideto($)),"prev"===t.swipedirection&&(a>1-i.longswipesratio?t.slideto($+d):t.slideto($))}else{if(!i.shortswipes)return void t.slideto(t.activeindex);t.navigation&&(d.target===t.navigation.nextel||d.target===t.navigation.prevel)?d.target===t.navigation.nextel?t.slideto($+d):t.slideto($):("next"===t.swipedirection&&t.slideto($+d),"prev"===t.swipedirection&&t.slideto($))}}}}function b(){var e=this,t=e.params,a=e.el;if(!a||0!==a.offsetwidth){t.breakpoints&&e.setbreakpoint();var i=e.allowslidenext,s=e.allowslideprev,r=e.snapgrid;e.allowslidenext=!0,e.allowslideprev=!0,e.updatesize(),e.updateslides(),e.updateslidesclasses(),("auto"===t.slidesperview||t.slidesperview>1)&&e.isend&&!e.isbeginning&&!e.params.centeredslides?e.slideto(e.slides.length-1,0,!1,!0):e.slideto(e.activeindex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowslideprev=s,e.allowslidenext=i,e.params.watchoverflow&&r!==e.snapgrid&&e.checkoverflow()}}function h(e){var t=this;t.enabled&&(t.allowclick||(t.params.preventclicks&&e.preventdefault(),t.params.preventclickspropagation&&t.animating&&(e.stoppropagation(),e.stopimmediatepropagation())))}function x(){var e=this,t=e.wrapperel,a=e.rtltranslate;if(e.enabled){e.previoustranslate=e.translate,e.ishorizontal()?e.translate=a?t.scrollwidth-t.offsetwidth-t.scrollleft:-t.scrollleft:e.translate=-t.scrolltop,-0===e.translate&&(e.translate=0),e.updateactiveindex(),e.updateslidesclasses();var i=e.maxtranslate()-e.mintranslate();(0===i?0:(e.translate-e.mintranslate())/i)!==e.progress&&e.updateprogress(a?-e.translate:e.translate),e.emit("settranslate",e.translate,!1)}}var y=!1;function r(){}var w={init:!0,direction:"horizontal",toucheventstarget:"container",initialslide:0,speed:300,cssmode:!1,updateonwindowresize:!0,resizeobserver:!1,nested:!1,createelements:!1,enabled:!0,focusableelements:"input, select, option, textarea, button, video, label",width:null,height:null,preventinteractionontransition:!1,useragent:null,url:null,edgeswipedetection:!1,edgeswipethreshold:20,freemode:!1,freemodemomentum:!0,freemodemomentumratio:1,freemodemomentumbounce:!0,freemodemomentumbounceratio:1,freemodemomentumvelocityratio:1,freemodesticky:!1,freemodeminimumvelocity:.02,autoheight:!1,setwrappersize:!1,virtualtranslate:!1,effect:"slide",breakpoints:void 0,breakpointsbase:"window",spacebetween:0,slidesperview:1,slidespercolumn:1,slidespercolumnfill:"column",slidespergroup:1,slidespergroupskip:0,centeredslides:!1,centeredslidesbounds:!1,slidesoffsetbefore:0,slidesoffsetafter:0,normalizeslideindex:!0,centerinsufficientslides:!1,watchoverflow:!1,roundlengths:!1,touchratio:1,touchangle:45,simulatetouch:!0,shortswipes:!0,longswipes:!0,longswipesratio:.5,longswipesms:300,followfinger:!0,allowtouchmove:!0,threshold:0,touchmovestoppropagation:!1,touchstartpreventdefault:!0,touchstartforcepreventdefault:!1,touchreleaseonedges:!1,uniquenavelements:!0,resistance:!0,resistanceratio:.85,watchslidesprogress:!1,watchslidesvisibility:!1,grabcursor:!1,preventclicks:!0,preventclickspropagation:!0,slidetoclickedslide:!1,preloadimages:!0,updateonimagesready:!0,loop:!1,loopadditionalslides:0,loopedslides:null,loopfillgroupwithblank:!1,looppreventsslide:!0,allowslideprev:!0,allowslidenext:!0,swipehandler:null,noswiping:!0,noswipingclass:"swiper-no-swiping",noswipingselector:null,passivelisteners:!0,containermodifierclass:"swiper-container-",slideclass:"swiper-slide",slideblankclass:"swiper-slide-invisible-blank",slideactiveclass:"swiper-slide-active",slideduplicateactiveclass:"swiper-slide-duplicate-active",slidevisibleclass:"swiper-slide-visible",slideduplicateclass:"swiper-slide-duplicate",slidenextclass:"swiper-slide-next",slideduplicatenextclass:"swiper-slide-duplicate-next",slideprevclass:"swiper-slide-prev",slideduplicateprevclass:"swiper-slide-duplicate-prev",wrapperclass:"swiper-wrapper",runcallbacksoninit:!0,_emitclasses:!1},v={modular:{useparams:function(e){var t=this;t.modules&&object.keys(t.modules).foreach((function(a){var i=t.modules[a];i.params&&s(e,i.params)}))},usemodules:function(e){void 0===e&&(e={});var t=this;t.modules&&object.keys(t.modules).foreach((function(a){var i=t.modules[a],s=e[a]||{};i.on&&t.on&&object.keys(i.on).foreach((function(e){t.on(e,i.on[e])})),i.create&&i.create.bind(t)(s)}))}},eventsemitter:{on:function(e,t,a){var i=this;if("function"!=typeof t)return i;var s=a?"unshift":"push";return e.split(" ").foreach((function(e){i.eventslisteners[e]||(i.eventslisteners[e]=[]),i.eventslisteners[e][s](t)})),i},once:function(e,t,a){var i=this;if("function"!=typeof t)return i;function s(){i.off(e,s),s.__emitterproxy&&delete s.__emitterproxy;for(var a=arguments.length,r=new array(a),n=0;n=0&&t.eventsanylisteners.splice(a,1),t},off:function(e,t){var a=this;return a.eventslisteners?(e.split(" ").foreach((function(e){void 0===t?a.eventslisteners[e]=[]:a.eventslisteners[e]&&a.eventslisteners[e].foreach((function(i,s){(i===t||i.__emitterproxy&&i.__emitterproxy===t)&&a.eventslisteners[e].splice(s,1)}))})),a):a},emit:function(){var e,t,a,i=this;if(!i.eventslisteners)return i;for(var s=arguments.length,r=new array(s),n=0;n=0&&(w=parsefloat(w.replace("%",""))/100*r),e.virtualsize=-w,n?p.css({marginleft:"",margintop:""}):p.css({marginright:"",marginbottom:""}),i.slidespercolumn>1&&(t=math.floor(u/i.slidespercolumn)===u/e.params.slidespercolumn?u:math.ceil(u/i.slidespercolumn)*i.slidespercolumn,"auto"!==i.slidesperview&&"row"===i.slidespercolumnfill&&(t=math.max(t,i.slidesperview*i.slidespercolumn)));for(var m,z,p,k=i.slidespercolumn,$=t/k,l=math.floor(u/i.slidespercolumn),i=0;i1){var a=void 0,d=void 0,n=void 0;if("row"===i.slidespercolumnfill&&i.slidespergroup>1){var g=math.floor(i/(i.slidespergroup*i.slidespercolumn)),b=i-i.slidespercolumn*i.slidespergroup*g,h=0===g?i.slidespergroup:math.min(math.ceil((u-g*k*i.slidespergroup)/k),i.slidespergroup);a=(d=b-(n=math.floor(b/h))*h+g*i.slidespergroup)+n*t/k,o.css({"-webkit-box-ordinal-group":a,"-moz-box-ordinal-group":a,"-ms-flex-order":a,"-webkit-order":a,order:a})}else"column"===i.slidespercolumnfill?(n=i-(d=math.floor(i/k))*k,(d>l||d===l&&n===k-1)&&(n+=1)>=k&&(n=0,d+=1)):d=i-(n=math.floor(i/$))*$;o.css(t("margin-top"),0!==n?i.spacebetween&&i.spacebetween+"px":"")}if("none"!==o.css("display")){if("auto"===i.slidesperview){var x=getcomputedstyle(o[0]),y=o[0].style.transform,r=o[0].style.webkittransform;if(y&&(o[0].style.transform="none"),r&&(o[0].style.webkittransform="none"),i.roundlengths)c=e.ishorizontal()?o.outerwidth(!0):o.outerheight(!0);else{var w=a(x,"width"),v=a(x,"padding-left"),f=a(x,"padding-right"),_=a(x,"margin-left"),q=a(x,"margin-right"),j=x.getpropertyvalue("box-sizing");if(j&&"border-box"===j)c=w+_+q;else{var u=o[0],k=u.clientwidth;c=w+v+f+_+q+(u.offsetwidth-k)}}y&&(o[0].style.transform=y),r&&(o[0].style.webkittransform=r),i.roundlengths&&(c=math.floor(c))}else c=(r-(i.slidesperview-1)*w)/i.slidesperview,i.roundlengths&&(c=math.floor(c)),p[i]&&(p[i].style[t("width")]=c+"px");p[i]&&(p[i].swiperslidesize=c),v.push(c),i.centeredslides?(y=y+c/2+e/2+w,0===e&&0!==i&&(y=y-r/2-w),0===i&&(y=y-r/2-w),math.abs(y)<.001&&(y=0),i.roundlengths&&(y=math.floor(y)),x%i.slidespergroup==0&&c.push(y),h.push(y)):(i.roundlengths&&(y=math.floor(y)),(x-math.min(e.params.slidespergroupskip,x))%e.params.slidespergroup==0&&c.push(y),h.push(y),y=y+c+w),e.virtualsize+=c+w,e=c,x+=1}}if(e.virtualsize=math.max(e.virtualsize,r)+m,n&&l&&("slide"===i.effect||"coverflow"===i.effect)&&s.css({width:e.virtualsize+i.spacebetween+"px"}),i.setwrappersize)s.css(((z={})[t("width")]=e.virtualsize+i.spacebetween+"px",z));if(i.slidespercolumn>1)if(e.virtualsize=(c+i.spacebetween)*t,e.virtualsize=math.ceil(e.virtualsize/i.slidespercolumn)-i.spacebetween,s.css(((p={})[t("width")]=e.virtualsize+i.spacebetween+"px",p)),i.centeredslides){m=[];for(var z=0;z1&&c.push(e.virtualsize-r)}if(0===c.length&&(c=[0]),0!==i.spacebetween){var te,ae=e.ishorizontal()&&n?"marginleft":t("marginright");p.filter((function(e,t){return!i.cssmode||t!==p.length-1})).css(((te={})[ae]=w+"px",te))}if(i.centeredslides&&i.centeredslidesbounds){var ie=0;v.foreach((function(e){ie+=e+(i.spacebetween?i.spacebetween:0)}));var se=(ie-=i.spacebetween)-r;c=c.map((function(e){return e<0?-f:e>se?se+m:e}))}if(i.centerinsufficientslides){var re=0;if(v.foreach((function(e){re+=e+(i.spacebetween?i.spacebetween:0)})),(re-=i.spacebetween)1)if(a.params.centeredslides)a.visibleslides.each((function(e){i.push(e)}));else for(t=0;ta.slides.length&&!s)break;i.push(n(l))}else i.push(n(a.activeindex));for(t=0;tr?o:r}r&&a.$wrapperel.css("height",r+"px")},updateslidesoffset:function(){for(var e=this.slides,t=0;t=0&&d1&&p<=t.size||d<=0&&p>=t.size)&&(t.visibleslides.push(l),t.visibleslidesindexes.push(n),i.eq(n).addclass(a.slidevisibleclass))}l.progress=s?-o:o}t.visibleslides=m(t.visibleslides)}},updateprogress:function(e){var t=this;if(void 0===e){var a=t.rtltranslate?-1:1;e=t&&t.translate&&t.translate*a||0}var i=t.params,s=t.maxtranslate()-t.mintranslate(),r=t.progress,n=t.isbeginning,l=t.isend,o=n,d=l;0===s?(r=0,n=!0,l=!0):(n=(r=(e-t.mintranslate())/s)<=0,l=r>=1),s(t,{progress:r,isbeginning:n,isend:l}),(i.watchslidesprogress||i.watchslidesvisibility||i.centeredslides&&i.autoheight)&&t.updateslidesprogress(e),n&&!o&&t.emit("reachbeginning toedge"),l&&!d&&t.emit("reachend toedge"),(o&&!n||d&&!l)&&t.emit("fromedge"),t.emit("progress",r)},updateslidesclasses:function(){var e,t=this,a=t.slides,i=t.params,s=t.$wrapperel,r=t.activeindex,n=t.realindex,l=t.virtual&&i.virtual.enabled;a.removeclass(i.slideactiveclass+" "+i.slidenextclass+" "+i.slideprevclass+" "+i.slideduplicateactiveclass+" "+i.slideduplicatenextclass+" "+i.slideduplicateprevclass),(e=l?t.$wrapperel.find("."+i.slideclass+'[data-swiper-slide-index="'+r+'"]'):a.eq(r)).addclass(i.slideactiveclass),i.loop&&(e.hasclass(i.slideduplicateclass)?s.children("."+i.slideclass+":not(."+i.slideduplicateclass+')[data-swiper-slide-index="'+n+'"]').addclass(i.slideduplicateactiveclass):s.children("."+i.slideclass+"."+i.slideduplicateclass+'[data-swiper-slide-index="'+n+'"]').addclass(i.slideduplicateactiveclass));var o=e.nextall("."+i.slideclass).eq(0).addclass(i.slidenextclass);i.loop&&0===o.length&&(o=a.eq(0)).addclass(i.slidenextclass);var d=e.prevall("."+i.slideclass).eq(0).addclass(i.slideprevclass);i.loop&&0===d.length&&(d=a.eq(-1)).addclass(i.slideprevclass),i.loop&&(o.hasclass(i.slideduplicateclass)?s.children("."+i.slideclass+":not(."+i.slideduplicateclass+')[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicatenextclass):s.children("."+i.slideclass+"."+i.slideduplicateclass+'[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicatenextclass),d.hasclass(i.slideduplicateclass)?s.children("."+i.slideclass+":not(."+i.slideduplicateclass+')[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicateprevclass):s.children("."+i.slideclass+"."+i.slideduplicateclass+'[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicateprevclass)),t.emitslidesclasses()},updateactiveindex:function(e){var t,a=this,i=a.rtltranslate?a.translate:-a.translate,s=a.slidesgrid,r=a.snapgrid,n=a.params,l=a.activeindex,o=a.realindex,d=a.snapindex,p=e;if(void 0===p){for(var u=0;u=s[u]&&i=s[u]&&i=s[u]&&(p=u);n.normalizeslideindex&&(p<0||void 0===p)&&(p=0)}if(r.indexof(i)>=0)t=r.indexof(i);else{var c=math.min(n.slidespergroupskip,p);t=c+math.floor((p-c)/n.slidespergroup)}if(t>=r.length&&(t=r.length-1),p!==l){var h=parseint(a.slides.eq(p).attr("data-swiper-slide-index")||p,10);s(a,{snapindex:t,realindex:h,previousindex:l,activeindex:p}),a.emit("activeindexchange"),a.emit("snapindexchange"),o!==h&&a.emit("realindexchange"),(a.initialized||a.params.runcallbacksoninit)&&a.emit("slidechange")}else t!==d&&(a.snapindex=t,a.emit("snapindexchange"))},updateclickedslide:function(e){var t,a=this,i=a.params,s=m(e.target).closest("."+i.slideclass)[0],r=!1;if(s)for(var n=0;nd?d:i&&er?"next":is?"next":i=d.length&&(g=d.length-1),(c||o.initialslide||0)===(u||0)&&a&&n.emit("beforeslidechangestart");var b,w=-d[g];if(n.updateprogress(w),o.normalizeslideindex)for(var y=0;y=x&&e=x&&e=x&&(l=y)}if(n.initialized&&l!==c){if(!n.allowslidenext&&wn.translate&&w>n.maxtranslate()&&(c||0)!==l)return!1}if(b=l>c?"next":l=e&&(h=e)})),void 0!==h&&(p=l.indexof(h))<0&&(p=i.activeindex-1),i.slideto(p,e,t,a)},slidereset:function(e,t,a){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideto(this.activeindex,e,t,a)},slidetoclosest:function(e,t,a,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===i&&(i=.5);var s=this,r=s.activeindex,n=math.min(s.params.slidespergroupskip,r),l=n+math.floor((r-n)/s.params.slidespergroup),o=s.rtltranslate?s.translate:-s.translate;if(o>=s.snapgrid[l]){var d=s.snapgrid[l];o-d>(s.snapgrid[l+1]-d)*i&&(r+=s.params.slidespergroup)}else{var p=s.snapgrid[l-1];o-p<=(s.snapgrid[l]-p)*i&&(r-=s.params.slidespergroup)}return r=math.max(r,0),r=math.min(r,s.slidesgrid.length-1),s.slideto(r,e,t,a)},slidetoclickedslide:function(){var e,t=this,a=t.params,i=t.$wrapperel,s="auto"===a.slidesperview?t.slidesperviewdynamic():a.slidesperview,r=t.clickedindex;if(a.loop){if(t.animating)return;e=parseint(m(t.clickedslide).attr("data-swiper-slide-index"),10),a.centeredslides?rt.slides.length-t.loopedslides+s/2?(t.loopfix(),r=i.children("."+a.slideclass+'[data-swiper-slide-index="'+e+'"]:not(.'+a.slideduplicateclass+")").eq(0).index(),e((function(){t.slideto(r)}))):t.slideto(r):r>t.slides.length-s?(t.loopfix(),r=i.children("."+a.slideclass+'[data-swiper-slide-index="'+e+'"]:not(.'+a.slideduplicateclass+")").eq(0).index(),e((function(){t.slideto(r)}))):t.slideto(r)}else t.slideto(r)}},loop:{loopcreate:function(){var e=this,t=r(),a=e.params,i=e.$wrapperel;i.children("."+a.slideclass+"."+a.slideduplicateclass).remove();var s=i.children("."+a.slideclass);if(a.loopfillgroupwithblank){var n=a.slidespergroup-s.length%a.slidespergroup;if(n!==a.slidespergroup){for(var l=0;ls.length&&(e.loopedslides=s.length);var d=[],p=[];s.each((function(t,a){var i=m(t);a=s.length-e.loopedslides&&d.push(t),i.attr("data-swiper-slide-index",a)}));for(var u=0;u=0;c-=1)i.prepend(m(d[c].clonenode(!0)).addclass(a.slideduplicateclass))},loopfix:function(){var e=this;e.emit("beforeloopfix");var t,a=e.activeindex,i=e.slides,s=e.loopedslides,r=e.allowslideprev,n=e.allowslidenext,l=e.snapgrid,o=e.rtltranslate;e.allowslideprev=!0,e.allowslidenext=!0;var d=-l[a]-e.gettranslate();if(a=i.length-s){t=-i.length+a+s,t+=s,e.slideto(t,0,!1,!0)&&0!==d&&e.settranslate((o?-e.translate:e.translate)-d)}e.allowslideprev=r,e.allowslidenext=n,e.emit("loopfix")},loopdestroy:function(){var e=this,t=e.$wrapperel,a=e.params,i=e.slides;t.children("."+a.slideclass+"."+a.slideduplicateclass+",."+a.slideclass+"."+a.slideblankclass).remove(),i.removeattr("data-swiper-slide-index")}},grabcursor:{setgrabcursor:function(e){var t=this;if(!(t.support.touch||!t.params.simulatetouch||t.params.watchoverflow&&t.islocked||t.params.cssmode)){var a=t.el;a.style.cursor="move",a.style.cursor=e?"-webkit-grabbing":"-webkit-grab",a.style.cursor=e?"-moz-grabbin":"-moz-grab",a.style.cursor=e?"grabbing":"grab"}},unsetgrabcursor:function(){var e=this;e.support.touch||e.params.watchoverflow&&e.islocked||e.params.cssmode||(e.el.style.cursor="")}},manipulation:{appendslide:function(e){var t=this,a=t.$wrapperel,i=t.params;if(i.loop&&t.loopdestroy(),"object"==typeof e&&"length"in e)for(var s=0;s=n)a.appendslide(t);else{for(var l=r>e?r+1:r,o=[],d=n-1;d>=e;d-=1){var p=a.slides.eq(d);p.remove(),o.unshift(p)}if("object"==typeof t&&"length"in t){for(var u=0;ue?r+t.length:r}else i.append(t);for(var c=0;c1,c=p.slidespercolumn>1,h=r.enabled;u&&!c?(n.removeclass(r.containermodifierclass+"multirow "+r.containermodifierclass+"multirow-column"),e.emitcontainerclasses()):!u&&c&&(n.addclass(r.containermodifierclass+"multirow"),"column"===p.slidespercolumnfill&&n.addclass(r.containermodifierclass+"multirow-column"),e.emitcontainerclasses());var v=p.direction&&p.direction!==r.direction,f=r.loop&&(p.slidesperview!==r.slidesperview||v);v&&a&&e.changedirection(),s(e.params,p);var m=e.params.enabled;s(e,{allowtouchmove:e.params.allowtouchmove,allowslidenext:e.params.allowslidenext,allowslideprev:e.params.allowslideprev}),h&&!m?e.disable():!h&&m&&e.enable(),e.currentbreakpoint=o,e.emit("_beforebreakpoint",p),f&&a&&(e.loopdestroy(),e.loopcreate(),e.updateslides(),e.slideto(t-s+e.loopedslides,0,!1)),e.emit("breakpoint",p)}}},getbreakpoint:function(e,t,a){if(void 0===t&&(t="window"),e&&("container"!==t||a)){var i=!1,s=l(),r="window"===t?s.innerheight:a.clientheight,n=object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexof("@")){var t=parsefloat(e.substr(1));return{value:r*t,point:e}}return{value:e,point:e}}));n.sort((function(e,t){return parseint(e.value,10)-parseint(t.value,10)}));for(var o=0;o0&&t.slidesoffsetbefore+t.spacebetween*(e.slides.length-1)+e.slides[0].offsetwidth*e.slides.length;t.slidesoffsetbefore&&t.slidesoffsetafter&&i?e.islocked=i<=e.size:e.islocked=1===e.snapgrid.length,e.allowslidenext=!e.islocked,e.allowslideprev=!e.islocked,a!==e.islocked&&e.emit(e.islocked?"lock":"unlock"),a&&a!==e.islocked&&(e.isend=!1,e.navigation&&e.navigation.update())}},classes:{addclasses:function(){var e,t,a,i=this,s=i.classnames,r=i.params,n=i.rtl,l=i.$el,o=i.device,d=i.support,p=(e=["initialized",r.direction,{"pointer-events":d.pointerevents&&!d.touch},{"free-mode":r.freemode},{autoheight:r.autoheight},{rtl:n},{multirow:r.slidespercolumn>1},{"multirow-column":r.slidespercolumn>1&&"column"===r.slidespercolumnfill},{android:o.android},{ios:o.ios},{"css-mode":r.cssmode}],t=r.containermodifierclass,a=[],e.foreach((function(e){"object"==typeof e?object.keys(e).foreach((function(i){e[i]&&a.push(t+i)})):"string"==typeof e&&a.push(t+e)})),a);s.push.apply(s,p),l.addclass([].concat(s).join(" ")),i.emitcontainerclasses()},removeclasses:function(){var e=this,t=e.$el,a=e.classnames;t.removeclass(a.join(" ")),e.emitcontainerclasses()}},images:{loadimage:function(e,t,a,i,s,r){var n,o=l();function d(){r&&r()}m(e).parent("picture")[0]||e.complete&&s?d():t?((n=new o.image).onload=d,n.onerror=d,i&&(n.sizes=i),a&&(n.srcset=a),t&&(n.src=t)):d()},preloadimages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesloaded&&(e.imagesloaded+=1),e.imagesloaded===e.imagestoload.length&&(e.params.updateonimagesready&&e.update(),e.emit("imagesready")))}e.imagestoload=e.$el.find("img");for(var a=0;a1){var n=[];return m(a.el).each((function(e){var i=s({},a,{el:e});n.push(new t(i))})),n}var l=this;l.__swiper__=!0,l.support=k(),l.device=$({useragent:a.useragent}),l.browser=l(),l.eventslisteners={},l.eventsanylisteners=[],void 0===l.modules&&(l.modules={}),object.keys(l.modules).foreach((function(e){var t=l.modules[e];if(t.params){var i=object.keys(t.params)[0],s=t.params[i];if("object"!=typeof s||null===s)return;if(["navigation","pagination","scrollbar"].indexof(i)>=0&&!0===a[i]&&(a[i]={auto:!0}),!(i in a)||!("enabled"in s))return;!0===a[i]&&(a[i]={enabled:!0}),"object"!=typeof a[i]||"enabled"in a[i]||(a[i].enabled=!0),a[i]||(a[i]={enabled:!1})}}));var o,d,p=s({},w);return l.useparams(p),l.params=s({},p,f,a),l.originalparams=s({},l.params),l.passedparams=s({},a),l.params&&l.params.on&&object.keys(l.params.on).foreach((function(e){l.on(e,l.params.on[e])})),l.params&&l.params.onany&&l.onany(l.params.onany),l.$=m,s(l,{enabled:l.params.enabled,el:e,classnames:[],slides:m(),slidesgrid:[],snapgrid:[],slidessizesgrid:[],ishorizontal:function(){return"horizontal"===l.params.direction},isvertical:function(){return"vertical"===l.params.direction},activeindex:0,realindex:0,isbeginning:!0,isend:!1,translate:0,previoustranslate:0,progress:0,velocity:0,animating:!1,allowslidenext:l.params.allowslidenext,allowslideprev:l.params.allowslideprev,touchevents:(o=["touchstart","touchmove","touchend","touchcancel"],d=["mousedown","mousemove","mouseup"],l.support.pointerevents&&(d=["pointerdown","pointermove","pointerup"]),l.toucheventstouch={start:o[0],move:o[1],end:o[2],cancel:o[3]},l.toucheventsdesktop={start:d[0],move:d[1],end:d[2]},l.support.touch||!l.params.simulatetouch?l.toucheventstouch:l.toucheventsdesktop),toucheventsdata:{istouched:void 0,ismoved:void 0,allowtouchcallbacks:void 0,touchstarttime:void 0,isscrolling:void 0,currenttranslate:void 0,starttranslate:void 0,allowthresholdmove:void 0,focusableelements:l.params.focusableelements,lastclicktime:x(),clicktimeout:void 0,velocities:[],allowmomentumbounce:void 0,istouchevent:void 0,startmoving:void 0},allowclick:!0,allowtouchmove:l.params.allowtouchmove,touches:{startx:0,starty:0,currentx:0,currenty:0,diff:0},imagestoload:[],imagesloaded:0}),l.usemodules(),l.emit("_swiper"),l.params.init&&l.init(),l}var a,i,s,n=t.prototype;return n.enable=function(){var e=this;e.enabled||(e.enabled=!0,e.params.grabcursor&&e.setgrabcursor(),e.emit("enable"))},n.disable=function(){var e=this;e.enabled&&(e.enabled=!1,e.params.grabcursor&&e.unsetgrabcursor(),e.emit("disable"))},n.setprogress=function(e,t){var a=this;e=math.min(math.max(e,0),1);var i=a.mintranslate(),s=(a.maxtranslate()-i)*e+i;a.translateto(s,void 0===t?0:t),a.updateactiveindex(),a.updateslidesclasses()},n.emitcontainerclasses=function(){var e=this;if(e.params._emitclasses&&e.el){var t=e.el.classname.split(" ").filter((function(t){return 0===t.indexof("swiper-container")||0===t.indexof(e.params.containermodifierclass)}));e.emit("_containerclasses",t.join(" "))}},n.getslideclasses=function(e){var t=this;return e.classname.split(" ").filter((function(e){return 0===e.indexof("swiper-slide")||0===e.indexof(t.params.slideclass)})).join(" ")},n.emitslidesclasses=function(){var e=this;if(e.params._emitclasses&&e.el){var t=[];e.slides.each((function(a){var i=e.getslideclasses(a);t.push({slideel:a,classnames:i}),e.emit("_slideclass",a,i)})),e.emit("_slideclasses",t)}},n.slidesperviewdynamic=function(){var e=this,t=e.params,a=e.slides,i=e.slidesgrid,s=e.size,r=e.activeindex,n=1;if(t.centeredslides){for(var l,o=a[r].swiperslidesize,d=r+1;ds&&(l=!0));for(var p=r-1;p>=0;p-=1)a[p]&&!l&&(n+=1,(o+=a[p].swiperslidesize)>s&&(l=!0))}else for(var u=r+1;u1)&&e.isend&&!e.params.centeredslides?e.slideto(e.slides.length-1,0,!1,!0):e.slideto(e.activeindex,0,!1,!0))||i(),a.watchoverflow&&t!==e.snapgrid&&e.checkoverflow(),e.emit("update")}function i(){var t=e.rtltranslate?-1*e.translate:e.translate,a=math.min(math.max(t,e.maxtranslate()),e.mintranslate());e.settranslate(a),e.updateactiveindex(),e.updateslidesclasses()}},n.changedirection=function(e,t){void 0===t&&(t=!0);var a=this,i=a.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(a.$el.removeclass(""+a.params.containermodifierclass+i).addclass(""+a.params.containermodifierclass+e),a.emitcontainerclasses(),a.params.direction=e,a.slides.each((function(t){"vertical"===e?t.style.width="":t.style.height=""})),a.emit("changedirection"),t&&a.update()),a},n.mount=function(e){var t=this;if(t.mounted)return!0;var a=m(e||t.params.el);if(!(e=a[0]))return!1;e.swiper=t;var i=function(){return"."+(t.params.wrapperclass||"").trim().split(" ").join(".")},s=function(){if(e&&e.shadowroot&&e.shadowroot.queryselector){var t=m(e.shadowroot.queryselector(i()));return t.children=function(e){return a.children(e)},t}return a.children(i())}();if(0===s.length&&t.params.createelements){var n=r().createelement("div");s=m(n),n.classname=t.params.wrapperclass,a.append(n),a.children("."+t.params.slideclass).each((function(e){s.append(e)}))}return s(t,{$el:a,el:e,$wrapperel:s,wrapperel:s[0],mounted:!0,rtl:"rtl"===e.dir.tolowercase()||"rtl"===a.css("direction"),rtltranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.tolowercase()||"rtl"===a.css("direction")),wrongrtl:"-webkit-box"===s.css("display")}),!0},n.init=function(e){var t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeinit"),t.params.breakpoints&&t.setbreakpoint(),t.addclasses(),t.params.loop&&t.loopcreate(),t.updatesize(),t.updateslides(),t.params.watchoverflow&&t.checkoverflow(),t.params.grabcursor&&t.enabled&&t.setgrabcursor(),t.params.preloadimages&&t.preloadimages(),t.params.loop?t.slideto(t.params.initialslide+t.loopedslides,0,t.params.runcallbacksoninit,!1,!0):t.slideto(t.params.initialslide,0,t.params.runcallbacksoninit,!1,!0),t.attachevents(),t.initialized=!0,t.emit("init"),t.emit("afterinit")),t},n.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var a,i=this,s=i.params,r=i.$el,n=i.$wrapperel,l=i.slides;return void 0===i.params||i.destroyed||(i.emit("beforedestroy"),i.initialized=!1,i.detachevents(),s.loop&&i.loopdestroy(),t&&(i.removeclasses(),r.removeattr("style"),n.removeattr("style"),l&&l.length&&l.removeclass([s.slidevisibleclass,s.slideactiveclass,s.slidenextclass,s.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-slide-index")),i.emit("destroy"),object.keys(i.eventslisteners).foreach((function(e){i.off(e)})),!1!==e&&(i.$el[0].swiper=null,a=i,object.keys(a).foreach((function(e){try{a[e]=null}catch(e){}try{delete a[e]}catch(e){}}))),i.destroyed=!0),null},t.extenddefaults=function(e){s(f,e)},t.installmodule=function(e){t.prototype.modules||(t.prototype.modules={});var a=e.name||object.keys(t.prototype.modules).length+"_"+x();t.prototype.modules[a]=e},t.use=function(e){return array.isarray(e)?(e.foreach((function(e){return t.installmodule(e)})),t):(t.installmodule(e),t)},a=t,s=[{key:"extendeddefaults",get:function(){return f}},{key:"defaults",get:function(){return w}}],(i=null)&&e(a.prototype,i),s&&e(a,s),t}();object.keys(v).foreach((function(e){object.keys(v[e]).foreach((function(t){_.prototype[t]=v[e][t]}))})),_.use([i,a]);var q={update:function(e){var t=this,a=t.params,i=a.slidesperview,s=a.slidespergroup,r=a.centeredslides,n=t.params.virtual,l=n.addslidesbefore,o=n.addslidesafter,d=t.virtual,p=d.from,u=d.to,c=d.slides,h=d.slidesgrid,v=d.renderslide,f=d.offset;t.updateactiveindex();var m,g,b,w=t.activeindex||0;m=t.rtltranslate?"right":t.ishorizontal()?"left":"top",r?(g=math.floor(i/2)+s+o,b=math.floor(i/2)+s+l):(g=i+(s-1)+o,b=s+l);var y=math.max((w||0)-b,0),e=math.min((w||0)+g,c.length-1),x=(t.slidesgrid[y]||0)-(t.slidesgrid[0]||0);function t(){t.updateslides(),t.updateprogress(),t.updateslidesclasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(s(t.virtual,{from:y,to:e,offset:x,slidesgrid:t.slidesgrid}),p===y&&u===e&&!e)return t.slidesgrid!==h&&x!==f&&t.slides.css(m,x+"px"),void t.updateprogress();if(t.params.virtual.renderexternal)return t.params.virtual.renderexternal.call(t,{offset:x,from:y,to:e,slides:function(){for(var e=[],t=y;t<=e;t+=1)e.push(c[t]);return e}()}),void(t.params.virtual.renderexternalupdate&&t());var c=[],m=[];if(e)t.$wrapperel.find("."+t.params.slideclass).remove();else for(var z=p;z<=u;z+=1)(ze)&&t.$wrapperel.find("."+t.params.slideclass+'[data-swiper-slide-index="'+z+'"]').remove();for(var p=0;p=y&&p<=e&&(void 0===u||e?m.push(p):(p>u&&m.push(p),p'+e+"");return s.attr("data-swiper-slide-index")||s.attr("data-swiper-slide-index",t),i.cache&&(a.virtual.cache[t]=s),s},appendslide:function(e){var t=this;if("object"==typeof e&&"length"in e)for(var a=0;a=0;i-=1)t.virtual.slides.splice(e[i],1),t.params.virtual.cache&&delete t.virtual.cache[e[i]],e[i]0&&0===t.$el.parents("."+t.params.slideactiveclass).length)return;var g=t.$el,b=g[0].clientwidth,w=g[0].clientheight,y=a.innerwidth,e=a.innerheight,x=t.$el.offset();s&&(x.left-=t.$el[0].scrollleft);for(var t=[[x.left,x.top],[x.left+b,x.top],[x.left,x.top+w],[x.left+b,x.top+w]],c=0;c=0&&s[0]<=y&&s[1]>=0&&s[1]<=e){if(0===s[0]&&0===s[1])continue;m=!0}}if(!m)return}t.ishorizontal()?((p||u||c||h)&&(n.preventdefault?n.preventdefault():n.returnvalue=!1),((u||h)&&!s||(p||c)&&s)&&t.slidenext(),((p||c)&&!s||(u||h)&&s)&&t.slideprev()):((p||u||v||f)&&(n.preventdefault?n.preventdefault():n.returnvalue=!1),(u||f)&&t.slidenext(),(p||v)&&t.slideprev()),t.emit("keypress",o)}}},enable:function(){var e=this,t=r();e.keyboard.enabled||(m(t).on("keydown",e.keyboard.handle),e.keyboard.enabled=!0)},disable:function(){var e=this,t=r();e.keyboard.enabled&&(m(t).off("keydown",e.keyboard.handle),e.keyboard.enabled=!1)}},k={name:"keyboard",params:{keyboard:{enabled:!1,onlyinviewport:!0,pageupdown:!0}},create:function(){m(this,{keyboard:t({enabled:!1},u)})},on:{init:function(e){e.params.keyboard.enabled&&e.keyboard.enable()},destroy:function(e){e.keyboard.enabled&&e.keyboard.disable()}}};var z={lastscrolltime:x(),lasteventbeforesnap:void 0,recentwheelevents:[],event:function(){return l().navigator.useragent.indexof("firefox")>-1?"dommousescroll":function(){var e=r(),t="onwheel",a=t in e;if(!a){var i=e.createelement("div");i.setattribute(t,"return;"),a="function"==typeof i.onwheel}return!a&&e.implementation&&e.implementation.hasfeature&&!0!==e.implementation.hasfeature("","")&&(a=e.implementation.hasfeature("events.wheel","3.0")),a}()?"wheel":"mousewheel"},normalize:function(e){var t=0,a=0,i=0,s=0;return"detail"in e&&(a=e.detail),"wheeldelta"in e&&(a=-e.wheeldelta/120),"wheeldeltay"in e&&(a=-e.wheeldeltay/120),"wheeldeltax"in e&&(t=-e.wheeldeltax/120),"axis"in e&&e.axis===e.horizontal_axis&&(t=a,a=0),i=10*t,s=10*a,"deltay"in e&&(s=e.deltay),"deltax"in e&&(i=e.deltax),e.shiftkey&&!i&&(i=s,s=0),(i||s)&&e.deltamode&&(1===e.deltamode?(i*=40,s*=40):(i*=800,s*=800)),i&&!t&&(t=i<1?-1:1),s&&!a&&(a=s<1?-1:1),{spinx:t,spiny:a,pixelx:i,pixely:s}},handlemouseenter:function(){this.enabled&&(this.mouseentered=!0)},handlemouseleave:function(){this.enabled&&(this.mouseentered=!1)},handle:function(e){var t=e,a=this;if(a.enabled){var i=a.params.mousewheel;a.params.cssmode&&t.preventdefault();var s=a.$el;if("container"!==a.params.mousewheel.eventstarget&&(s=m(a.params.mousewheel.eventstarget)),!a.mouseentered&&!s[0].contains(t.target)&&!i.releaseonedges)return!0;t.originalevent&&(t=t.originalevent);var r=0,n=a.rtltranslate?-1:1,l=z.normalize(t);if(i.forcetoaxis)if(a.ishorizontal()){if(!(math.abs(l.pixelx)>math.abs(l.pixely)))return!0;r=-l.pixelx*n}else{if(!(math.abs(l.pixely)>math.abs(l.pixelx)))return!0;r=-l.pixely}else r=math.abs(l.pixelx)>math.abs(l.pixely)?-l.pixelx*n:-l.pixely;if(0===r)return!0;i.invert&&(r=-r);var o=a.gettranslate()+r*i.sensitivity;if(o>=a.mintranslate()&&(o=a.mintranslate()),o<=a.maxtranslate()&&(o=a.maxtranslate()),(!!a.params.loop||!(o===a.mintranslate()||o===a.maxtranslate()))&&a.params.nested&&t.stoppropagation(),a.params.freemode){var d={time:x(),delta:math.abs(r),direction:math.sign(r)},p=a.mousewheel.lasteventbeforesnap,u=p&&d.time=a.mintranslate()&&(c=a.mintranslate()),c<=a.maxtranslate()&&(c=a.maxtranslate()),a.settransition(0),a.settranslate(c),a.updateprogress(),a.updateactiveindex(),a.updateslidesclasses(),(!h&&a.isbeginning||!v&&a.isend)&&a.updateslidesclasses(),a.params.freemodesticky){cleartimeout(a.mousewheel.timeout),a.mousewheel.timeout=void 0;var f=a.mousewheel.recentwheelevents;f.length>=15&&f.shift();var g=f.length?f[f.length-1]:void 0,b=f[0];if(f.push(d),g&&(d.delta>g.delta||d.direction!==g.direction))f.splice(0);else if(f.length>=15&&d.time-b.time<500&&b.delta-d.delta>=1&&d.delta<=6){var w=r>0?.8:.2;a.mousewheel.lasteventbeforesnap=d,f.splice(0),a.mousewheel.timeout=e((function(){a.slidetoclosest(a.params.speed,!0,void 0,w)}),0)}a.mousewheel.timeout||(a.mousewheel.timeout=e((function(){a.mousewheel.lasteventbeforesnap=d,f.splice(0),a.slidetoclosest(a.params.speed,!0,void 0,.5)}),500))}if(u||a.emit("scroll",t),a.params.autoplay&&a.params.autoplaydisableoninteraction&&a.autoplay.stop(),c===a.mintranslate()||c===a.maxtranslate())return!0}}else{var y={time:x(),delta:math.abs(r),direction:math.sign(r),raw:e},t=a.mousewheel.recentwheelevents;t.length>=2&&t.shift();var c=t.length?t[t.length-1]:void 0;if(t.push(y),c?(y.direction!==c.direction||y.delta>c.delta||y.time>c.time+150)&&a.mousewheel.animateslider(y):a.mousewheel.animateslider(y),a.mousewheel.releasescroll(y))return!0}return t.preventdefault?t.preventdefault():t.returnvalue=!1,!1}},animateslider:function(e){var t=this,a=l();return!(this.params.mousewheel.thresholddelta&&e.delta=6&&x()-t.mousewheel.lastscrolltime<60||(e.direction<0?t.isend&&!t.params.loop||t.animating||(t.slidenext(),t.emit("scroll",e.raw)):t.isbeginning&&!t.params.loop||t.animating||(t.slideprev(),t.emit("scroll",e.raw)),t.mousewheel.lastscrolltime=(new a.date).gettime(),!1)))},releasescroll:function(e){var t=this,a=t.params.mousewheel;if(e.direction<0){if(t.isend&&!t.params.loop&&a.releaseonedges)return!0}else if(t.isbeginning&&!t.params.loop&&a.releaseonedges)return!0;return!1},enable:function(){var e=this,t=z.event();if(e.params.cssmode)return e.wrapperel.removeeventlistener(t,e.mousewheel.handle),!0;if(!t)return!1;if(e.mousewheel.enabled)return!1;var a=e.$el;return"container"!==e.params.mousewheel.eventstarget&&(a=m(e.params.mousewheel.eventstarget)),a.on("mouseenter",e.mousewheel.handlemouseenter),a.on("mouseleave",e.mousewheel.handlemouseleave),a.on(t,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable:function(){var e=this,t=z.event();if(e.params.cssmode)return e.wrapperel.addeventlistener(t,e.mousewheel.handle),!0;if(!t)return!1;if(!e.mousewheel.enabled)return!1;var a=e.$el;return"container"!==e.params.mousewheel.eventstarget&&(a=m(e.params.mousewheel.eventstarget)),a.off(t,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}},j={toggleel:function(e,t){e[t?"addclass":"removeclass"](this.params.navigation.disabledclass),e[0]&&"button"===e[0].tagname&&(e[0].disabled=t)},update:function(){var e=this,t=e.params.navigation,a=e.navigation.toggleel;if(!e.params.loop){var i=e.navigation,s=i.$nextel,r=i.$prevel;r&&r.length>0&&(e.isbeginning?a(r,!0):a(r,!1),e.params.watchoverflow&&e.enabled&&r[e.islocked?"addclass":"removeclass"](t.lockclass)),s&&s.length>0&&(e.isend?a(s,!0):a(s,!1),e.params.watchoverflow&&e.enabled&&s[e.islocked?"addclass":"removeclass"](t.lockclass))}},onprevclick:function(e){var t=this;e.preventdefault(),t.isbeginning&&!t.params.loop||t.slideprev()},onnextclick:function(e){var t=this;e.preventdefault(),t.isend&&!t.params.loop||t.slidenext()},init:function(){var e,t,a=this,i=a.params.navigation;(a.params.navigation=p(a.$el,a.params.navigation,a.params.createelements,{nextel:"swiper-button-next",prevel:"swiper-button-prev"}),i.nextel||i.prevel)&&(i.nextel&&(e=m(i.nextel),a.params.uniquenavelements&&"string"==typeof i.nextel&&e.length>1&&1===a.$el.find(i.nextel).length&&(e=a.$el.find(i.nextel))),i.prevel&&(t=m(i.prevel),a.params.uniquenavelements&&"string"==typeof i.prevel&&t.length>1&&1===a.$el.find(i.prevel).length&&(t=a.$el.find(i.prevel))),e&&e.length>0&&e.on("click",a.navigation.onnextclick),t&&t.length>0&&t.on("click",a.navigation.onprevclick),s(a.navigation,{$nextel:e,nextel:e&&e[0],$prevel:t,prevel:t&&t[0]}),a.enabled||(e&&e.addclass(i.lockclass),t&&t.addclass(i.lockclass)))},destroy:function(){var e=this,t=e.navigation,a=t.$nextel,i=t.$prevel;a&&a.length&&(a.off("click",e.navigation.onnextclick),a.removeclass(e.params.navigation.disabledclass)),i&&i.length&&(i.off("click",e.navigation.onprevclick),i.removeclass(e.params.navigation.disabledclass))}},q={update:function(){var e=this,t=e.rtl,a=e.params.pagination;if(a.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var i,s=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,r=e.pagination.$el,n=e.params.loop?math.ceil((s-2*e.loopedslides)/e.params.slidespergroup):e.snapgrid.length;if(e.params.loop?((i=math.ceil((e.activeindex-e.loopedslides)/e.params.slidespergroup))>s-1-2*e.loopedslides&&(i-=s-2*e.loopedslides),i>n-1&&(i-=n),i<0&&"bullets"!==e.params.paginationtype&&(i=n+i)):i=void 0!==e.snapindex?e.snapindex:e.activeindex||0,"bullets"===a.type&&e.pagination.bullets&&e.pagination.bullets.length>0){var l,o,d,p=e.pagination.bullets;if(a.dynamicbullets&&(e.pagination.bulletsize=p.eq(0)[e.ishorizontal()?"outerwidth":"outerheight"](!0),r.css(e.ishorizontal()?"width":"height",e.pagination.bulletsize*(a.dynamicmainbullets+4)+"px"),a.dynamicmainbullets>1&&void 0!==e.previousindex&&(e.pagination.dynamicbulletindex+=i-e.previousindex,e.pagination.dynamicbulletindex>a.dynamicmainbullets-1?e.pagination.dynamicbulletindex=a.dynamicmainbullets-1:e.pagination.dynamicbulletindex<0&&(e.pagination.dynamicbulletindex=0)),l=i-e.pagination.dynamicbulletindex,d=((o=l+(math.min(p.length,a.dynamicmainbullets)-1))+l)/2),p.removeclass(a.bulletactiveclass+" "+a.bulletactiveclass+"-next "+a.bulletactiveclass+"-next-next "+a.bulletactiveclass+"-prev "+a.bulletactiveclass+"-prev-prev "+a.bulletactiveclass+"-main"),r.length>1)p.each((function(e){var t=m(e),s=t.index();s===i&&t.addclass(a.bulletactiveclass),a.dynamicbullets&&(s>=l&&s<=o&&t.addclass(a.bulletactiveclass+"-main"),s===l&&t.prev().addclass(a.bulletactiveclass+"-prev").prev().addclass(a.bulletactiveclass+"-prev-prev"),s===o&&t.next().addclass(a.bulletactiveclass+"-next").next().addclass(a.bulletactiveclass+"-next-next"))}));else{var u=p.eq(i),c=u.index();if(u.addclass(a.bulletactiveclass),a.dynamicbullets){for(var h=p.eq(l),v=p.eq(o),f=l;f<=o;f+=1)p.eq(f).addclass(a.bulletactiveclass+"-main");if(e.params.loop)if(c>=p.length-a.dynamicmainbullets){for(var g=a.dynamicmainbullets;g>=0;g-=1)p.eq(p.length-g).addclass(a.bulletactiveclass+"-main");p.eq(p.length-a.dynamicmainbullets-1).addclass(a.bulletactiveclass+"-prev")}else h.prev().addclass(a.bulletactiveclass+"-prev").prev().addclass(a.bulletactiveclass+"-prev-prev"),v.next().addclass(a.bulletactiveclass+"-next").next().addclass(a.bulletactiveclass+"-next-next");else h.prev().addclass(a.bulletactiveclass+"-prev").prev().addclass(a.bulletactiveclass+"-prev-prev"),v.next().addclass(a.bulletactiveclass+"-next").next().addclass(a.bulletactiveclass+"-next-next")}}if(a.dynamicbullets){var b=math.min(p.length,a.dynamicmainbullets+4),w=(e.pagination.bulletsize*b-e.pagination.bulletsize)/2-d*e.pagination.bulletsize,y=t?"right":"left";p.css(e.ishorizontal()?y:"top",w+"px")}}if("fraction"===a.type&&(r.find(z(a.currentclass)).text(a.formatfractioncurrent(i+1)),r.find(z(a.totalclass)).text(a.formatfractiontotal(n))),"progressbar"===a.type){var e;e=a.progressbaropposite?e.ishorizontal()?"vertical":"horizontal":e.ishorizontal()?"horizontal":"vertical";var x=(i+1)/n,t=1,c=1;"horizontal"===e?t=x:c=x,r.find(z(a.progressbarfillclass)).transform("translate3d(0,0,0) scalex("+t+") scaley("+c+")").transition(e.params.speed)}"custom"===a.type&&a.rendercustom?(r.html(a.rendercustom(e,i+1,n)),e.emit("paginationrender",r[0])):e.emit("paginationupdate",r[0]),e.params.watchoverflow&&e.enabled&&r[e.islocked?"addclass":"removeclass"](a.lockclass)}},render:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var a=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,i=e.pagination.$el,s="";if("bullets"===t.type){var r=e.params.loop?math.ceil((a-2*e.loopedslides)/e.params.slidespergroup):e.snapgrid.length;e.params.freemode&&!e.params.loop&&r>a&&(r=a);for(var n=0;n";i.html(s),e.pagination.bullets=i.find(z(t.bulletclass))}"fraction"===t.type&&(s=t.renderfraction?t.renderfraction.call(e,t.currentclass,t.totalclass):' / ',i.html(s)),"progressbar"===t.type&&(s=t.renderprogressbar?t.renderprogressbar.call(e,t.progressbarfillclass):'',i.html(s)),"custom"!==t.type&&e.emit("paginationrender",e.pagination.$el[0])}},init:function(){var e=this;e.params.pagination=p(e.$el,e.params.pagination,e.params.createelements,{el:"swiper-pagination"});var t=e.params.pagination;if(t.el){var a=m(t.el);0!==a.length&&(e.params.uniquenavelements&&"string"==typeof t.el&&a.length>1&&(a=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&a.addclass(t.clickableclass),a.addclass(t.modifierclass+t.type),"bullets"===t.type&&t.dynamicbullets&&(a.addclass(""+t.modifierclass+t.type+"-dynamic"),e.pagination.dynamicbulletindex=0,t.dynamicmainbullets<1&&(t.dynamicmainbullets=1)),"progressbar"===t.type&&t.progressbaropposite&&a.addclass(t.progressbaroppositeclass),t.clickable&&a.on("click",z(t.bulletclass),(function(t){t.preventdefault();var a=m(this).index()*e.params.slidespergroup;e.params.loop&&(a+=e.loopedslides),e.slideto(a)})),s(e.pagination,{$el:a,el:a[0]}),e.enabled||a.addclass(t.lockclass))}},destroy:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var a=e.pagination.$el;a.removeclass(t.hiddenclass),a.removeclass(t.modifierclass+t.type),e.pagination.bullets&&e.pagination.bullets.removeclass(t.bulletactiveclass),t.clickable&&a.off("click",z(t.bulletclass))}}},ee={settranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,a=e.rtltranslate,i=e.progress,s=t.dragsize,r=t.tracksize,n=t.$dragel,l=t.$el,o=e.params.scrollbar,d=s,p=(r-s)*i;a?(p=-p)>0?(d=s-p,p=0):-p+s>r&&(d=r+p):p<0?(d=s+p,p=0):p+s>r&&(d=r-p),e.ishorizontal()?(n.transform("translate3d("+p+"px, 0, 0)"),n[0].style.width=d+"px"):(n.transform("translate3d(0px, "+p+"px, 0)"),n[0].style.height=d+"px"),o.hide&&(cleartimeout(e.scrollbar.timeout),l[0].style.opacity=1,e.scrollbar.timeout=settimeout((function(){l[0].style.opacity=0,l.transition(400)}),1e3))}},settransition:function(e){var t=this;t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragel.transition(e)},updatesize:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,a=t.$dragel,i=t.$el;a[0].style.width="",a[0].style.height="";var s,r=e.ishorizontal()?i[0].offsetwidth:i[0].offsetheight,n=e.size/e.virtualsize,l=n*(r/e.size);s="auto"===e.params.scrollbar.dragsize?r*n:parseint(e.params.scrollbar.dragsize,10),e.ishorizontal()?a[0].style.width=s+"px":a[0].style.height=s+"px",i[0].style.display=n>=1?"none":"",e.params.scrollbar.hide&&(i[0].style.opacity=0),s(t,{tracksize:r,divider:n,movedivider:l,dragsize:s}),e.params.watchoverflow&&e.enabled&&t.$el[e.islocked?"addclass":"removeclass"](e.params.scrollbar.lockclass)}},getpointerposition:function(e){return this.ishorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].clientx:e.clientx:"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].clienty:e.clienty},setdragposition:function(e){var t,a=this,i=a.scrollbar,s=a.rtltranslate,r=i.$el,n=i.dragsize,l=i.tracksize,o=i.dragstartpos;t=(i.getpointerposition(e)-r.offset()[a.ishorizontal()?"left":"top"]-(null!==o?o:n/2))/(l-n),t=math.max(math.min(t,1),0),s&&(t=1-t);var d=a.mintranslate()+(a.maxtranslate()-a.mintranslate())*t;a.updateprogress(d),a.settranslate(d),a.updateactiveindex(),a.updateslidesclasses()},ondragstart:function(e){var t=this,a=t.params.scrollbar,i=t.scrollbar,s=t.$wrapperel,r=i.$el,n=i.$dragel;t.scrollbar.istouched=!0,t.scrollbar.dragstartpos=e.target===n[0]||e.target===n?i.getpointerposition(e)-e.target.getboundingclientrect()[t.ishorizontal()?"left":"top"]:null,e.preventdefault(),e.stoppropagation(),s.transition(100),n.transition(100),i.setdragposition(e),cleartimeout(t.scrollbar.dragtimeout),r.transition(0),a.hide&&r.css("opacity",1),t.params.cssmode&&t.$wrapperel.css("scroll-snap-type","none"),t.emit("scrollbardragstart",e)},ondragmove:function(e){var t=this,a=t.scrollbar,i=t.$wrapperel,s=a.$el,r=a.$dragel;t.scrollbar.istouched&&(e.preventdefault?e.preventdefault():e.returnvalue=!1,a.setdragposition(e),i.transition(0),s.transition(0),r.transition(0),t.emit("scrollbardragmove",e))},ondragend:function(e){var t=this,a=t.params.scrollbar,i=t.scrollbar,s=t.$wrapperel,r=i.$el;t.scrollbar.istouched&&(t.scrollbar.istouched=!1,t.params.cssmode&&(t.$wrapperel.css("scroll-snap-type",""),s.transition("")),a.hide&&(cleartimeout(t.scrollbar.dragtimeout),t.scrollbar.dragtimeout=e((function(){r.css("opacity",0),r.transition(400)}),1e3)),t.emit("scrollbardragend",e),a.snaponrelease&&t.slidetoclosest())},enabledraggable:function(){var e=this;if(e.params.scrollbar.el){var t=r(),a=e.scrollbar,i=e.toucheventstouch,s=e.toucheventsdesktop,n=e.params,l=e.support,o=a.$el[0],d=!(!l.passivelistener||!n.passivelisteners)&&{passive:!1,capture:!1},p=!(!l.passivelistener||!n.passivelisteners)&&{passive:!0,capture:!1};o&&(l.touch?(o.addeventlistener(i.start,e.scrollbar.ondragstart,d),o.addeventlistener(i.move,e.scrollbar.ondragmove,d),o.addeventlistener(i.end,e.scrollbar.ondragend,p)):(o.addeventlistener(s.start,e.scrollbar.ondragstart,d),t.addeventlistener(s.move,e.scrollbar.ondragmove,d),t.addeventlistener(s.end,e.scrollbar.ondragend,p)))}},disabledraggable:function(){var e=this;if(e.params.scrollbar.el){var t=r(),a=e.scrollbar,i=e.toucheventstouch,s=e.toucheventsdesktop,n=e.params,l=e.support,o=a.$el[0],d=!(!l.passivelistener||!n.passivelisteners)&&{passive:!1,capture:!1},p=!(!l.passivelistener||!n.passivelisteners)&&{passive:!0,capture:!1};o&&(l.touch?(o.removeeventlistener(i.start,e.scrollbar.ondragstart,d),o.removeeventlistener(i.move,e.scrollbar.ondragmove,d),o.removeeventlistener(i.end,e.scrollbar.ondragend,p)):(o.removeeventlistener(s.start,e.scrollbar.ondragstart,d),t.removeeventlistener(s.move,e.scrollbar.ondragmove,d),t.removeeventlistener(s.end,e.scrollbar.ondragend,p)))}},init:function(){var e=this,t=e.scrollbar,a=e.$el;e.params.scrollbar=p(a,e.params.scrollbar,e.params.createelements,{el:"swiper-scrollbar"});var i=e.params.scrollbar;if(i.el){var s=m(i.el);e.params.uniquenavelements&&"string"==typeof i.el&&s.length>1&&1===a.find(i.el).length&&(s=a.find(i.el));var r=s.find("."+e.params.scrollbar.dragclass);0===r.length&&(r=m('
'),s.append(r)),s(t,{$el:s,el:s[0],$dragel:r,dragel:r[0]}),i.draggable&&t.enabledraggable(),s&&s[e.enabled?"removeclass":"addclass"](e.params.scrollbar.lockclass)}},destroy:function(){this.scrollbar.disabledraggable()}},te={settransform:function(e,t){var a=this.rtl,i=m(e),s=a?-1:1,r=i.attr("data-swiper-parallax")||"0",n=i.attr("data-swiper-parallax-x"),l=i.attr("data-swiper-parallax-y"),o=i.attr("data-swiper-parallax-scale"),d=i.attr("data-swiper-parallax-opacity");if(n||l?(n=n||"0",l=l||"0"):this.ishorizontal()?(n=r,l="0"):(l=r,n="0"),n=n.indexof("%")>=0?parseint(n,10)*t*s+"%":n*t*s+"px",l=l.indexof("%")>=0?parseint(l,10)*t+"%":l*t+"px",null!=d){var p=d-(d-1)*(1-math.abs(t));i[0].style.opacity=p}if(null==o)i.transform("translate3d("+n+", "+l+", 0px)");else{var u=o-(o-1)*(1-math.abs(t));i.transform("translate3d("+n+", "+l+", 0px) scale("+u+")")}},settranslate:function(){var e=this,t=e.$el,a=e.slides,i=e.progress,s=e.snapgrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t){e.parallax.settransform(t,i)})),a.each((function(t,a){var r=t.progress;e.params.slidespergroup>1&&"auto"!==e.params.slidesperview&&(r+=math.ceil(a/2)-i*(s.length-1)),r=math.min(math.max(r,-1),1),m(t).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t){e.parallax.settransform(t,r)}))}))},settransition:function(e){void 0===e&&(e=this.params.speed);this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t){var a=m(t),i=parseint(a.attr("data-swiper-parallax-duration"),10)||e;0===e&&(i=0),a.transition(i)}))}},ae={getdistancebetweentouches:function(e){if(e.targettouches.length<2)return 1;var t=e.targettouches[0].pagex,a=e.targettouches[0].pagey,i=e.targettouches[1].pagex,s=e.targettouches[1].pagey;return math.sqrt(math.pow(i-t,2)+math.pow(s-a,2))},ongesturestart:function(e){var t=this,a=t.support,i=t.params.zoom,s=t.zoom,r=s.gesture;if(s.fakegesturetouched=!1,s.fakegesturemoved=!1,!a.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targettouches.length<2)return;s.fakegesturetouched=!0,r.scalestart=ae.getdistancebetweentouches(e)}r.$slideel&&r.$slideel.length||(r.$slideel=m(e.target).closest("."+t.params.slideclass),0===r.$slideel.length&&(r.$slideel=t.slides.eq(t.activeindex)),r.$imageel=r.$slideel.find("img, svg, canvas, picture, .swiper-zoom-target"),r.$imagewrapel=r.$imageel.parent("."+i.containerclass),r.maxratio=r.$imagewrapel.attr("data-swiper-zoom")||i.maxratio,0!==r.$imagewrapel.length)?(r.$imageel&&r.$imageel.transition(0),t.zoom.isscaling=!0):r.$imageel=void 0},ongesturechange:function(e){var t=this,a=t.support,i=t.params.zoom,s=t.zoom,r=s.gesture;if(!a.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targettouches.length<2)return;s.fakegesturemoved=!0,r.scalemove=ae.getdistancebetweentouches(e)}r.$imageel&&0!==r.$imageel.length?(a.gestures?s.scale=e.scale*s.currentscale:s.scale=r.scalemove/r.scalestart*s.currentscale,s.scale>r.maxratio&&(s.scale=r.maxratio-1+math.pow(s.scale-r.maxratio+1,.5)),s.scales.touchesstart.x))return void(s.istouched=!1);if(!t.ishorizontal()&&(math.floor(s.miny)===math.floor(s.starty)&&s.touchescurrent.ys.touchesstart.y))return void(s.istouched=!1)}e.cancelable&&e.preventdefault(),e.stoppropagation(),s.ismoved=!0,s.currentx=s.touchescurrent.x-s.touchesstart.x+s.startx,s.currenty=s.touchescurrent.y-s.touchesstart.y+s.starty,s.currentxs.maxx&&(s.currentx=s.maxx-1+math.pow(s.currentx-s.maxx+1,.8)),s.currentys.maxy&&(s.currenty=s.maxy-1+math.pow(s.currenty-s.maxy+1,.8)),r.prevpositionx||(r.prevpositionx=s.touchescurrent.x),r.prevpositiony||(r.prevpositiony=s.touchescurrent.y),r.prevtime||(r.prevtime=date.now()),r.x=(s.touchescurrent.x-r.prevpositionx)/(date.now()-r.prevtime)/2,r.y=(s.touchescurrent.y-r.prevpositiony)/(date.now()-r.prevtime)/2,math.abs(s.touchescurrent.x-r.prevpositionx)<2&&(r.x=0),math.abs(s.touchescurrent.y-r.prevpositiony)<2&&(r.y=0),r.prevpositionx=s.touchescurrent.x,r.prevpositiony=s.touchescurrent.y,r.prevtime=date.now(),i.$imagewrapel.transform("translate3d("+s.currentx+"px, "+s.currenty+"px,0)")}}},ontouchend:function(){var e=this.zoom,t=e.gesture,a=e.image,i=e.velocity;if(t.$imageel&&0!==t.$imageel.length){if(!a.istouched||!a.ismoved)return a.istouched=!1,void(a.ismoved=!1);a.istouched=!1,a.ismoved=!1;var s=300,r=300,n=i.x*s,l=a.currentx+n,o=i.y*r,d=a.currenty+o;0!==i.x&&(s=math.abs((l-a.currentx)/i.x)),0!==i.y&&(r=math.abs((d-a.currenty)/i.y));var p=math.max(s,r);a.currentx=l,a.currenty=d;var u=a.width*e.scale,c=a.height*e.scale;a.minx=math.min(t.slidewidth/2-u/2,0),a.maxx=-a.minx,a.miny=math.min(t.slideheight/2-c/2,0),a.maxy=-a.miny,a.currentx=math.max(math.min(a.currentx,a.maxx),a.minx),a.currenty=math.max(math.min(a.currenty,a.maxy),a.miny),t.$imagewrapel.transition(p).transform("translate3d("+a.currentx+"px, "+a.currenty+"px,0)")}},ontransitionend:function(){var e=this,t=e.zoom,a=t.gesture;a.$slideel&&e.previousindex!==e.activeindex&&(a.$imageel&&a.$imageel.transform("translate3d(0,0,0) scale(1)"),a.$imagewrapel&&a.$imagewrapel.transform("translate3d(0,0,0)"),t.scale=1,t.currentscale=1,a.$slideel=void 0,a.$imageel=void 0,a.$imagewrapel=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,a,i,s,r,n,o,d,p,u,c,h,v,f,m,g,b=this,w=l(),y=b.zoom,e=b.params.zoom,x=y.gesture,t=y.image;(x.$slideel||(b.params.virtual&&b.params.virtual.enabled&&b.virtual?x.$slideel=b.$wrapperel.children("."+b.params.slideactiveclass):x.$slideel=b.slides.eq(b.activeindex),x.$imageel=x.$slideel.find("img, svg, canvas, picture, .swiper-zoom-target"),x.$imagewrapel=x.$imageel.parent("."+e.containerclass)),x.$imageel&&0!==x.$imageel.length&&x.$imagewrapel&&0!==x.$imagewrapel.length)&&(x.$slideel.addclass(""+e.zoomedslideclass),void 0===t.touchesstart.x&&e?(t="touchend"===e.type?e.changedtouches[0].pagex:e.pagex,a="touchend"===e.type?e.changedtouches[0].pagey:e.pagey):(t=t.touchesstart.x,a=t.touchesstart.y),y.scale=x.$imagewrapel.attr("data-swiper-zoom")||e.maxratio,y.currentscale=x.$imagewrapel.attr("data-swiper-zoom")||e.maxratio,e?(m=x.$slideel[0].offsetwidth,g=x.$slideel[0].offsetheight,i=x.$slideel.offset().left+w.scrollx+m/2-t,s=x.$slideel.offset().top+w.scrolly+g/2-a,o=x.$imageel[0].offsetwidth,d=x.$imageel[0].offsetheight,p=o*y.scale,u=d*y.scale,v=-(c=math.min(m/2-p/2,0)),f=-(h=math.min(g/2-u/2,0)),(r=i*y.scale)v&&(r=v),(n=s*y.scale)f&&(n=f)):(r=0,n=0),x.$imagewrapel.transition(300).transform("translate3d("+r+"px, "+n+"px,0)"),x.$imageel.transition(300).transform("translate3d(0,0,0) scale("+y.scale+")"))},out:function(){var e=this,t=e.zoom,a=e.params.zoom,i=t.gesture;i.$slideel||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?i.$slideel=e.$wrapperel.children("."+e.params.slideactiveclass):i.$slideel=e.slides.eq(e.activeindex),i.$imageel=i.$slideel.find("img, svg, canvas, picture, .swiper-zoom-target"),i.$imagewrapel=i.$imageel.parent("."+a.containerclass)),i.$imageel&&0!==i.$imageel.length&&i.$imagewrapel&&0!==i.$imagewrapel.length&&(t.scale=1,t.currentscale=1,i.$imagewrapel.transition(300).transform("translate3d(0,0,0)"),i.$imageel.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideel.removeclass(""+a.zoomedslideclass),i.$slideel=void 0)},togglegestures:function(e){var t=this,a=t.zoom,i=a.slideselector,s=a.passivelistener;t.$wrapperel[e]("gesturestart",i,a.ongesturestart,s),t.$wrapperel[e]("gesturechange",i,a.ongesturechange,s),t.$wrapperel[e]("gestureend",i,a.ongestureend,s)},enablegestures:function(){this.zoom.gesturesenabled||(this.zoom.gesturesenabled=!0,this.zoom.togglegestures("on"))},disablegestures:function(){this.zoom.gesturesenabled&&(this.zoom.gesturesenabled=!1,this.zoom.togglegestures("off"))},enable:function(){var e=this,t=e.support,a=e.zoom;if(!a.enabled){a.enabled=!0;var i=!("touchstart"!==e.touchevents.start||!t.passivelistener||!e.params.passivelisteners)&&{passive:!0,capture:!1},s=!t.passivelistener||{passive:!1,capture:!0},r="."+e.params.slideclass;e.zoom.passivelistener=i,e.zoom.slideselector=r,t.gestures?(e.$wrapperel.on(e.touchevents.start,e.zoom.enablegestures,i),e.$wrapperel.on(e.touchevents.end,e.zoom.disablegestures,i)):"touchstart"===e.touchevents.start&&(e.$wrapperel.on(e.touchevents.start,r,a.ongesturestart,i),e.$wrapperel.on(e.touchevents.move,r,a.ongesturechange,s),e.$wrapperel.on(e.touchevents.end,r,a.ongestureend,i),e.touchevents.cancel&&e.$wrapperel.on(e.touchevents.cancel,r,a.ongestureend,i)),e.$wrapperel.on(e.touchevents.move,"."+e.params.zoom.containerclass,a.ontouchmove,s)}},disable:function(){var e=this,t=e.zoom;if(t.enabled){var a=e.support;e.zoom.enabled=!1;var i=!("touchstart"!==e.touchevents.start||!a.passivelistener||!e.params.passivelisteners)&&{passive:!0,capture:!1},s=!a.passivelistener||{passive:!1,capture:!0},r="."+e.params.slideclass;a.gestures?(e.$wrapperel.off(e.touchevents.start,e.zoom.enablegestures,i),e.$wrapperel.off(e.touchevents.end,e.zoom.disablegestures,i)):"touchstart"===e.touchevents.start&&(e.$wrapperel.off(e.touchevents.start,r,t.ongesturestart,i),e.$wrapperel.off(e.touchevents.move,r,t.ongesturechange,s),e.$wrapperel.off(e.touchevents.end,r,t.ongestureend,i),e.touchevents.cancel&&e.$wrapperel.off(e.touchevents.cancel,r,t.ongestureend,i)),e.$wrapperel.off(e.touchevents.move,"."+e.params.zoom.containerclass,t.ontouchmove,s)}}},ie={loadinslide:function(e,t){void 0===t&&(t=!0);var a=this,i=a.params.lazy;if(void 0!==e&&0!==a.slides.length){var s=a.virtual&&a.params.virtual.enabled?a.$wrapperel.children("."+a.params.slideclass+'[data-swiper-slide-index="'+e+'"]'):a.slides.eq(e),r=s.find("."+i.elementclass+":not(."+i.loadedclass+"):not(."+i.loadingclass+")");!s.hasclass(i.elementclass)||s.hasclass(i.loadedclass)||s.hasclass(i.loadingclass)||r.push(s[0]),0!==r.length&&r.each((function(e){var r=m(e);r.addclass(i.loadingclass);var n=r.attr("data-background"),l=r.attr("data-src"),o=r.attr("data-srcset"),d=r.attr("data-sizes"),p=r.parent("picture");a.loadimage(r[0],l||n,o,d,!1,(function(){if(null!=a&&a&&(!a||a.params)&&!a.destroyed){if(n?(r.css("background-image",'url("'+n+'")'),r.removeattr("data-background")):(o&&(r.attr("srcset",o),r.removeattr("data-srcset")),d&&(r.attr("sizes",d),r.removeattr("data-sizes")),p.length&&p.children("source").each((function(e){var t=m(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeattr("data-srcset"))})),l&&(r.attr("src",l),r.removeattr("data-src"))),r.addclass(i.loadedclass).removeclass(i.loadingclass),s.find("."+i.preloaderclass).remove(),a.params.loop&&t){var e=s.attr("data-swiper-slide-index");if(s.hasclass(a.params.slideduplicateclass)){var u=a.$wrapperel.children('[data-swiper-slide-index="'+e+'"]:not(.'+a.params.slideduplicateclass+")");a.lazy.loadinslide(u.index(),!1)}else{var c=a.$wrapperel.children("."+a.params.slideduplicateclass+'[data-swiper-slide-index="'+e+'"]');a.lazy.loadinslide(c.index(),!1)}}a.emit("lazyimageready",s[0],r[0]),a.params.autoheight&&a.updateautoheight()}})),a.emit("lazyimageload",s[0],r[0])}))}},load:function(){var e=this,t=e.$wrapperel,a=e.params,i=e.slides,s=e.activeindex,r=e.virtual&&a.virtual.enabled,n=a.lazy,l=a.slidesperview;function o(e){if(r){if(t.children("."+a.slideclass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(i[e])return!0;return!1}function d(e){return r?m(e).attr("data-swiper-slide-index"):m(e).index()}if("auto"===l&&(l=0),e.lazy.initialimageloaded||(e.lazy.initialimageloaded=!0),e.params.watchslidesvisibility)t.children("."+a.slidevisibleclass).each((function(t){var a=r?m(t).attr("data-swiper-slide-index"):m(t).index();e.lazy.loadinslide(a)}));else if(l>1)for(var p=s;p1||n.loadprevnextamount&&n.loadprevnextamount>1){for(var u=n.loadprevnextamount,c=l,h=math.min(s+c+math.max(u,c),i.length),v=math.max(s-math.max(c,u),0),f=s+l;f0&&e.lazy.loadinslide(d(b));var w=t.children("."+a.slideprevclass);w.length>0&&e.lazy.loadinslide(d(w))}},checkinviewonload:function(){var e=l(),t=this;if(t&&!t.destroyed){var a=t.params.lazy.scrollingelement?m(t.params.lazy.scrollingelement):m(e),i=a[0]===e,s=i?e.innerwidth:a[0].offsetwidth,r=i?e.innerheight:a[0].offsetheight,n=t.$el.offset(),o=!1;t.rtltranslate&&(n.left-=t.$el[0].scrollleft);for(var d=[[n.left,n.top],[n.left+t.width,n.top],[n.left,n.top+t.height],[n.left+t.width,n.top+t.height]],p=0;p=0&&u[0]<=s&&u[1]>=0&&u[1]<=r){if(0===u[0]&&0===u[1])continue;o=!0}}var c=!("touchstart"!==t.touchevents.start||!t.support.passivelistener||!t.params.passivelisteners)&&{passive:!0,capture:!1};o?(t.lazy.load(),a.off("scroll",t.lazy.checkinviewonload,c)):t.lazy.scrollhandlerattached||(t.lazy.scrollhandlerattached=!0,a.on("scroll",t.lazy.checkinviewonload,c))}}},se={linearspline:function(e,t){var a,i,s,r,n,l=function(e,t){for(i=-1,a=e.length;a-i>1;)e[s=a+i>>1]<=t?i=s:a=s;return a};return this.x=e,this.y=t,this.lastindex=e.length-1,this.interpolate=function(e){return e?(n=l(this.x,e),r=n-1,(e-this.x[r])*(this.y[n]-this.y[r])/(this.x[n]-this.x[r])+this.y[r]):0},this},getinterpolatefunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new se.linearspline(t.slidesgrid,e.slidesgrid):new se.linearspline(t.snapgrid,e.snapgrid))},settranslate:function(e,t){var a,i,s=this,r=s.controller.control,n=s.constructor;function l(e){var t=s.rtltranslate?-s.translate:s.translate;"slide"===s.params.controller.by&&(s.controller.getinterpolatefunction(e),i=-s.controller.spline.interpolate(-t)),i&&"container"!==s.params.controller.by||(a=(e.maxtranslate()-e.mintranslate())/(s.maxtranslate()-s.mintranslate()),i=(t-s.mintranslate())*a+e.mintranslate()),s.params.controller.inverse&&(i=e.maxtranslate()-i),e.updateprogress(i),e.settranslate(i,s),e.updateactiveindex(),e.updateslidesclasses()}if(array.isarray(r))for(var o=0;o0&&(e.isbeginning?(e.a11y.disableel(i),e.a11y.makeelnotfocusable(i)):(e.a11y.enableel(i),e.a11y.makeelfocusable(i))),a&&a.length>0&&(e.isend?(e.a11y.disableel(a),e.a11y.makeelnotfocusable(a)):(e.a11y.enableel(a),e.a11y.makeelfocusable(a)))}},updatepagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(a){var i=m(a);e.a11y.makeelfocusable(i),e.params.pagination.renderbullet||(e.a11y.addelrole(i,"button"),e.a11y.addellabel(i,t.paginationbulletmessage.replace(/\{\{index\}\}/,i.index()+1)))}))},init:function(){var e=this,t=e.params.a11y;e.$el.append(e.a11y.liveregion);var a=e.$el;t.containerroledescriptionmessage&&e.a11y.addelroledescription(a,t.containerroledescriptionmessage),t.containermessage&&e.a11y.addellabel(a,t.containermessage);var i,s,r=e.$wrapperel,n=r.attr("id")||"swiper-wrapper-"+e.a11y.getrandomnumber(16),l=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";e.a11y.addelid(r,n),e.a11y.addellive(r,l),t.itemroledescriptionmessage&&e.a11y.addelroledescription(m(e.slides),t.itemroledescriptionmessage),e.a11y.addelrole(m(e.slides),t.sliderole),e.slides.each((function(a){var i=m(a),s=t.slidelabelmessage.replace(/\{\{index\}\}/,i.index()+1).replace(/\{\{slideslength\}\}/,e.slides.length);e.a11y.addellabel(i,s)})),e.navigation&&e.navigation.$nextel&&(i=e.navigation.$nextel),e.navigation&&e.navigation.$prevel&&(s=e.navigation.$prevel),i&&i.length&&(e.a11y.makeelfocusable(i),"button"!==i[0].tagname&&(e.a11y.addelrole(i,"button"),i.on("keydown",e.a11y.onenterorspacekey)),e.a11y.addellabel(i,t.nextslidemessage),e.a11y.addelcontrols(i,n)),s&&s.length&&(e.a11y.makeelfocusable(s),"button"!==s[0].tagname&&(e.a11y.addelrole(s,"button"),s.on("keydown",e.a11y.onenterorspacekey)),e.a11y.addellabel(s,t.prevslidemessage),e.a11y.addelcontrols(s,n)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown",z(e.params.pagination.bulletclass),e.a11y.onenterorspacekey)},destroy:function(){var e,t,a=this;a.a11y.liveregion&&a.a11y.liveregion.length>0&&a.a11y.liveregion.remove(),a.navigation&&a.navigation.$nextel&&(e=a.navigation.$nextel),a.navigation&&a.navigation.$prevel&&(t=a.navigation.$prevel),e&&e.off("keydown",a.a11y.onenterorspacekey),t&&t.off("keydown",a.a11y.onenterorspacekey),a.pagination&&a.params.pagination.clickable&&a.pagination.bullets&&a.pagination.bullets.length&&a.pagination.$el.off("keydown",z(a.params.pagination.bulletclass),a.a11y.onenterorspacekey)}},ne={init:function(){var e=this,t=l();if(e.params.history){if(!t.history||!t.history.pushstate)return e.params.history.enabled=!1,void(e.params.hashnavigation.enabled=!0);var a=e.history;a.initialized=!0,a.paths=ne.getpathvalues(e.params.url),(a.paths.key||a.paths.value)&&(a.scrolltoslide(0,a.paths.value,e.params.runcallbacksoninit),e.params.history.replacestate||t.addeventlistener("popstate",e.history.sethistorypopstate))}},destroy:function(){var e=l();this.params.history.replacestate||e.removeeventlistener("popstate",this.history.sethistorypopstate)},sethistorypopstate:function(){var e=this;e.history.paths=ne.getpathvalues(e.params.url),e.history.scrolltoslide(e.params.speed,e.history.paths.value,!1)},getpathvalues:function(e){var t=l(),a=(e?new url(e):t.location).pathname.slice(1).split("/").filter((function(e){return""!==e})),i=a.length;return{key:a[i-2],value:a[i-1]}},sethistory:function(e,t){var a=this,i=l();if(a.history.initialized&&a.params.history.enabled){var s;s=a.params.url?new url(a.params.url):i.location;var r=a.slides.eq(t),n=ne.slugify(r.attr("data-history"));if(a.params.history.root.length>0){var o=a.params.history.root;"/"===o[o.length-1]&&(o=o.slice(0,o.length-1)),n=o+"/"+e+"/"+n}else s.pathname.includes(e)||(n=e+"/"+n);var d=i.history.state;d&&d.value===n||(a.params.history.replacestate?i.history.replacestate({value:n},null,n):i.history.pushstate({value:n},null,n))}},slugify:function(e){return e.tostring().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrolltoslide:function(e,t,a){var i=this;if(t)for(var s=0,r=i.slides.length;s'),i.append(e)),e.css({height:r+"px"})):0===(e=a.find(".swiper-cube-shadow")).length&&(e=m('
'),a.append(e)));for(var v=0;v-1&&(h=90*g+90*y,l&&(h=90*-g-90*y)),f.transform(c),p.slideshadows){var s=u?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),m=u?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===s.length&&(s=m('
'),f.append(s)),0===m.length&&(m=m('
'),f.append(m)),s.length&&(s[0].style.opacity=math.max(-y,0)),m.length&&(m[0].style.opacity=math.max(y,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+o/2+"px","-moz-transform-origin":"50% 50% -"+o/2+"px","-ms-transform-origin":"50% 50% -"+o/2+"px","transform-origin":"50% 50% -"+o/2+"px"}),p.shadow)if(u)e.transform("translate3d(0px, "+(r/2+p.shadowoffset)+"px, "+-r/2+"px) rotatex(90deg) rotatez(0deg) scale("+p.shadowscale+")");else{var z=math.abs(h)-90*math.floor(math.abs(h)/90),p=1.5-(math.sin(2*z*math.pi/360)/2+math.cos(2*z*math.pi/360)/2),k=p.shadowscale,$=p.shadowscale/p,l=p.shadowoffset;e.transform("scale3d("+k+", 1, "+$+") translate3d(0px, "+(n/2+l)+"px, "+-n/2/$+"px) rotatex(-90deg)")}var i=d.issafari||d.iswebview?-o/2:0;i.transform("translate3d(0px,0,"+i+"px) rotatex("+(t.ishorizontal()?0:h)+"deg) rotatey("+(t.ishorizontal()?-h:0)+"deg)")},settransition:function(e){var t=this,a=t.$el;t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeeffect.shadow&&!t.ishorizontal()&&a.find(".swiper-cube-shadow").transition(e)}},ue={settranslate:function(){for(var e=this,t=e.slides,a=e.rtltranslate,i=0;i'),s.append(p)),0===u.length&&(u=m('
'),s.append(u)),p.length&&(p[0].style.opacity=math.max(-r,0)),u.length&&(u[0].style.opacity=math.max(r,0))}s.transform("translate3d("+o+"px, "+d+"px, 0px) rotatex("+l+"deg) rotatey("+n+"deg)")}},settransition:function(e){var t=this,a=t.slides,i=t.activeindex,s=t.$wrapperel;if(a.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualtranslate&&0!==e){var r=!1;a.eq(i).transitionend((function(){if(!r&&t&&!t.destroyed){r=!0,t.animating=!1;for(var e=["webkittransitionend","transitionend"],a=0;a'),h.append(s)),0===m.length&&(m=m('
'),h.append(m)),s.length&&(s[0].style.opacity=f>0?f:0),m.length&&(m[0].style.opacity=-f>0?-f:0)}}},settransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},he={init:function(){var e=this,t=e.params.thumbs;if(e.thumbs.initialized)return!1;e.thumbs.initialized=!0;var a=e.constructor;return t.swiper instanceof a?(e.thumbs.swiper=t.swiper,s(e.thumbs.swiper.originalparams,{watchslidesprogress:!0,slidetoclickedslide:!1}),s(e.thumbs.swiper.params,{watchslidesprogress:!0,slidetoclickedslide:!1})):c(t.swiper)&&(e.thumbs.swiper=new a(s({},t.swiper,{watchslidesvisibility:!0,watchslidesprogress:!0,slidetoclickedslide:!1})),e.thumbs.swipercreated=!0),e.thumbs.swiper.$el.addclass(e.params.thumbs.thumbscontainerclass),e.thumbs.swiper.on("tap",e.thumbs.onthumbclick),!0},onthumbclick:function(){var e=this,t=e.thumbs.swiper;if(t){var a=t.clickedindex,i=t.clickedslide;if(!(i&&m(i).hasclass(e.params.thumbs.slidethumbactiveclass)||null==a)){var s;if(s=t.params.loop?parseint(m(t.clickedslide).attr("data-swiper-slide-index"),10):a,e.params.loop){var r=e.activeindex;e.slides.eq(r).hasclass(e.params.slideduplicateclass)&&(e.loopfix(),e._clientleft=e.$wrapperel[0].clientleft,r=e.activeindex);var n=e.slides.eq(r).prevall('[data-swiper-slide-index="'+s+'"]').eq(0).index(),l=e.slides.eq(r).nextall('[data-swiper-slide-index="'+s+'"]').eq(0).index();s=void 0===n?l:void 0===l?n:l-r1?p:o:p-ot.previousindex?"next":"prev"}else l=(n=t.realindex)>t.previousindex?"next":"prev";r&&(n+="next"===l?s:-1*s),a.visibleslidesindexes&&a.visibleslidesindexes.indexof(n)<0&&(a.params.centeredslides?n=n>o?n-math.floor(i/2)+1:n+math.floor(i/2)-1:n>o&&a.params.slidespergroup,a.slideto(n,e?0:void 0))}var u=1,c=t.params.thumbs.slidethumbactiveclass;if(t.params.slidesperview>1&&!t.params.centeredslides&&(u=t.params.slidesperview),t.params.thumbs.multipleactivethumbs||(u=1),u=math.floor(u),a.slides.removeclass(c),a.params.loop||a.params.virtual&&a.params.virtual.enabled)for(var h=0;h0&&!m(a).hasclass(e.params.pagination.bulletclass)){if(e.navigation&&(e.navigation.nextel&&a===e.navigation.nextel||e.navigation.prevel&&a===e.navigation.prevel))return;!0===e.pagination.$el.hasclass(e.params.pagination.hiddenclass)?e.emit("paginationshow"):e.emit("paginationhide"),e.pagination.$el.toggleclass(e.params.pagination.hiddenclass)}}}},{name:"scrollbar",params:{scrollbar:{el:null,dragsize:"auto",hide:!1,draggable:!1,snaponrelease:!0,lockclass:"swiper-scrollbar-lock",dragclass:"swiper-scrollbar-drag"}},create:function(){m(this,{scrollbar:t({istouched:!1,timeout:null,dragtimeout:null},ee)})},on:{init:function(e){e.scrollbar.init(),e.scrollbar.updatesize(),e.scrollbar.settranslate()},update:function(e){e.scrollbar.updatesize()},resize:function(e){e.scrollbar.updatesize()},observerupdate:function(e){e.scrollbar.updatesize()},settranslate:function(e){e.scrollbar.settranslate()},settransition:function(e,t){e.scrollbar.settransition(t)},"enable disable":function(e){var t=e.scrollbar.$el;t&&t[e.enabled?"removeclass":"addclass"](e.params.scrollbar.lockclass)},destroy:function(e){e.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){m(this,{parallax:t({},te)})},on:{beforeinit:function(e){e.params.parallax.enabled&&(e.params.watchslidesprogress=!0,e.originalparams.watchslidesprogress=!0)},init:function(e){e.params.parallax.enabled&&e.parallax.settranslate()},settranslate:function(e){e.params.parallax.enabled&&e.parallax.settranslate()},settransition:function(e,t){e.params.parallax.enabled&&e.parallax.settransition(t)}}},{name:"zoom",params:{zoom:{enabled:!1,maxratio:3,minratio:1,toggle:!0,containerclass:"swiper-zoom-container",zoomedslideclass:"swiper-slide-zoomed"}},create:function(){var e=this;m(e,{zoom:t({enabled:!1,scale:1,currentscale:1,isscaling:!1,gesture:{$slideel:void 0,slidewidth:void 0,slideheight:void 0,$imageel:void 0,$imagewrapel:void 0,maxratio:3},image:{istouched:void 0,ismoved:void 0,currentx:void 0,currenty:void 0,minx:void 0,miny:void 0,maxx:void 0,maxy:void 0,width:void 0,height:void 0,startx:void 0,starty:void 0,touchesstart:{},touchescurrent:{}},velocity:{x:void 0,y:void 0,prevpositionx:void 0,prevpositiony:void 0,prevtime:void 0}},ae)});var a=1;object.defineproperty(e.zoom,"scale",{get:function(){return a},set:function(t){if(a!==t){var i=e.zoom.gesture.$imageel?e.zoom.gesture.$imageel[0]:void 0,s=e.zoom.gesture.$slideel?e.zoom.gesture.$slideel[0]:void 0;e.emit("zoomchange",t,i,s)}a=t}})},on:{init:function(e){e.params.zoom.enabled&&e.zoom.enable()},destroy:function(e){e.zoom.disable()},touchstart:function(e,t){e.zoom.enabled&&e.zoom.ontouchstart(t)},touchend:function(e,t){e.zoom.enabled&&e.zoom.ontouchend(t)},doubletap:function(e,t){!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&e.zoom.toggle(t)},transitionend:function(e){e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.ontransitionend()},slidechange:function(e){e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssmode&&e.zoom.ontransitionend()}}},{name:"lazy",params:{lazy:{checkinview:!1,enabled:!1,loadprevnext:!1,loadprevnextamount:1,loadontransitionstart:!1,scrollingelement:"",elementclass:"swiper-lazy",loadingclass:"swiper-lazy-loading",loadedclass:"swiper-lazy-loaded",preloaderclass:"swiper-lazy-preloader"}},create:function(){m(this,{lazy:t({initialimageloaded:!1},ie)})},on:{beforeinit:function(e){e.params.lazy.enabled&&e.params.preloadimages&&(e.params.preloadimages=!1)},init:function(e){e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialslide&&(e.params.lazy.checkinview?e.lazy.checkinviewonload():e.lazy.load())},scroll:function(e){e.params.freemode&&!e.params.freemodesticky&&e.lazy.load()},"scrollbardragmove resize _freemodenomomentumrelease":function(e){e.params.lazy.enabled&&e.lazy.load()},transitionstart:function(e){e.params.lazy.enabled&&(e.params.lazy.loadontransitionstart||!e.params.lazy.loadontransitionstart&&!e.lazy.initialimageloaded)&&e.lazy.load()},transitionend:function(e){e.params.lazy.enabled&&!e.params.lazy.loadontransitionstart&&e.lazy.load()},slidechange:function(e){e.params.lazy.enabled&&e.params.cssmode&&e.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){m(this,{controller:t({control:this.params.controller.control},se)})},on:{update:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerupdate:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},settranslate:function(e,t,a){e.controller.control&&e.controller.settranslate(t,a)},settransition:function(e,t,a){e.controller.control&&e.controller.settransition(t,a)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationclass:"swiper-notification",prevslidemessage:"previous slide",nextslidemessage:"next slide",firstslidemessage:"this is the first slide",lastslidemessage:"this is the last slide",paginationbulletmessage:"go to slide {{index}}",slidelabelmessage:"{{index}} / {{slideslength}}",containermessage:null,containerroledescriptionmessage:null,itemroledescriptionmessage:null,sliderole:"group"}},create:function(){m(this,{a11y:t({},re,{liveregion:m('')})})},on:{afterinit:function(e){e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updatenavigation())},toedge:function(e){e.params.a11y.enabled&&e.a11y.updatenavigation()},fromedge:function(e){e.params.a11y.enabled&&e.a11y.updatenavigation()},paginationupdate:function(e){e.params.a11y.enabled&&e.a11y.updatepagination()},destroy:function(e){e.params.a11y.enabled&&e.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,root:"",replacestate:!1,key:"slides"}},create:function(){m(this,{history:t({},ne)})},on:{init:function(e){e.params.history.enabled&&e.history.init()},destroy:function(e){e.params.history.enabled&&e.history.destroy()},"transitionend _freemodenomomentumrelease":function(e){e.history.initialized&&e.history.sethistory(e.params.history.key,e.activeindex)},slidechange:function(e){e.history.initialized&&e.params.cssmode&&e.history.sethistory(e.params.history.key,e.activeindex)}}},{name:"hash-navigation",params:{hashnavigation:{enabled:!1,replacestate:!1,watchstate:!1}},create:function(){m(this,{hashnavigation:t({initialized:!1},le)})},on:{init:function(e){e.params.hashnavigation.enabled&&e.hashnavigation.init()},destroy:function(e){e.params.hashnavigation.enabled&&e.hashnavigation.destroy()},"transitionend _freemodenomomentumrelease":function(e){e.hashnavigation.initialized&&e.hashnavigation.sethash()},slidechange:function(e){e.hashnavigation.initialized&&e.params.cssmode&&e.hashnavigation.sethash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitfortransition:!0,disableoninteraction:!0,stoponlastslide:!1,reversedirection:!1,pauseonmouseenter:!1}},create:function(){m(this,{autoplay:t({},oe,{running:!1,paused:!1})})},on:{init:function(e){e.params.autoplay.enabled&&(e.autoplay.start(),r().addeventlistener("visibilitychange",e.autoplay.onvisibilitychange),e.autoplay.attachmouseevents())},beforetransitionstart:function(e,t,a){e.autoplay.running&&(a||!e.params.autoplay.disableoninteraction?e.autoplay.pause(t):e.autoplay.stop())},sliderfirstmove:function(e){e.autoplay.running&&(e.params.autoplay.disableoninteraction?e.autoplay.stop():e.autoplay.pause())},touchend:function(e){e.params.cssmode&&e.autoplay.paused&&!e.params.autoplay.disableoninteraction&&e.autoplay.run()},destroy:function(e){e.autoplay.detachmouseevents(),e.autoplay.running&&e.autoplay.stop(),r().removeeventlistener("visibilitychange",e.autoplay.onvisibilitychange)}}},{name:"effect-fade",params:{fadeeffect:{crossfade:!1}},create:function(){m(this,{fadeeffect:t({},de)})},on:{beforeinit:function(e){if("fade"===e.params.effect){e.classnames.push(e.params.containermodifierclass+"fade");var t={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,spacebetween:0,virtualtranslate:!0};s(e.params,t),s(e.originalparams,t)}},settranslate:function(e){"fade"===e.params.effect&&e.fadeeffect.settranslate()},settransition:function(e,t){"fade"===e.params.effect&&e.fadeeffect.settransition(t)}}},{name:"effect-cube",params:{cubeeffect:{slideshadows:!0,shadow:!0,shadowoffset:20,shadowscale:.94}},create:function(){m(this,{cubeeffect:t({},pe)})},on:{beforeinit:function(e){if("cube"===e.params.effect){e.classnames.push(e.params.containermodifierclass+"cube"),e.classnames.push(e.params.containermodifierclass+"3d");var t={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,resistanceratio:0,spacebetween:0,centeredslides:!1,virtualtranslate:!0};s(e.params,t),s(e.originalparams,t)}},settranslate:function(e){"cube"===e.params.effect&&e.cubeeffect.settranslate()},settransition:function(e,t){"cube"===e.params.effect&&e.cubeeffect.settransition(t)}}},{name:"effect-flip",params:{flipeffect:{slideshadows:!0,limitrotation:!0}},create:function(){m(this,{flipeffect:t({},ue)})},on:{beforeinit:function(e){if("flip"===e.params.effect){e.classnames.push(e.params.containermodifierclass+"flip"),e.classnames.push(e.params.containermodifierclass+"3d");var t={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,spacebetween:0,virtualtranslate:!0};s(e.params,t),s(e.originalparams,t)}},settranslate:function(e){"flip"===e.params.effect&&e.flipeffect.settranslate()},settransition:function(e,t){"flip"===e.params.effect&&e.flipeffect.settransition(t)}}},{name:"effect-coverflow",params:{coverfloweffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideshadows:!0}},create:function(){m(this,{coverfloweffect:t({},ce)})},on:{beforeinit:function(e){"coverflow"===e.params.effect&&(e.classnames.push(e.params.containermodifierclass+"coverflow"),e.classnames.push(e.params.containermodifierclass+"3d"),e.params.watchslidesprogress=!0,e.originalparams.watchslidesprogress=!0)},settranslate:function(e){"coverflow"===e.params.effect&&e.coverfloweffect.settranslate()},settransition:function(e,t){"coverflow"===e.params.effect&&e.coverfloweffect.settransition(t)}}},{name:"thumbs",params:{thumbs:{swiper:null,multipleactivethumbs:!0,autoscrolloffset:0,slidethumbactiveclass:"swiper-slide-thumb-active",thumbscontainerclass:"swiper-container-thumbs"}},create:function(){m(this,{thumbs:t({swiper:null,initialized:!1},he)})},on:{beforeinit:function(e){var t=e.params.thumbs;t&&t.swiper&&(e.thumbs.init(),e.thumbs.update(!0))},slidechange:function(e){e.thumbs.swiper&&e.thumbs.update()},update:function(e){e.thumbs.swiper&&e.thumbs.update()},resize:function(e){e.thumbs.swiper&&e.thumbs.update()},observerupdate:function(e){e.thumbs.swiper&&e.thumbs.update()},settransition:function(e,t){var a=e.thumbs.swiper;a&&a.settransition(t)},beforedestroy:function(e){var t=e.thumbs.swiper;t&&e.thumbs.swipercreated&&t&&t.destroy()}}}];return _.use(ve),_})); /* * * scrollup * url: http://markgoodyear.com/labs/scrollup/ * v2.4.1 * */ ! function(l, o, e) { "use strict"; l.fn.scrollup = function(o) { l.data(e.body, "scrollup") || (l.data(e.body, "scrollup", !0), l.fn.scrollup.init(o)) }, l.fn.scrollup.init = function(r) { var s, t, c, i, n, a, d, p = l.fn.scrollup.settings = l.extend({}, l.fn.scrollup.defaults, r), f = !1; switch (d = p.scrolltrigger ? l(p.scrolltrigger) : l("", { id: p.scrollname, href: "#top" }), p.scrolltitle && d.attr("title", p.scrolltitle), d.appendto("body"), p.scrollimg || p.scrolltrigger || d.html(p.scrolltext), d.css({ display: "none", position: "fixed", zindex: p.zindex }), p.activeoverlay && l("
", { id: p.scrollname + "-active" }).css({ position: "absolute", top: p.scrolldistance + "px", width: "100%", bordertop: "1px dotted" + p.activeoverlay, zindex: p.zindex }).appendto("body"), p.animation) { case "fade": s = "fadein", t = "fadeout", c = p.animationspeed; break; case "slide": s = "slidedown", t = "slideup", c = p.animationspeed; break; default: s = "show", t = "hide", c = 0 } i = "top" === p.scrollfrom ? p.scrolldistance : l(e).height() - l(o).height() - p.scrolldistance, n = l(o).scroll(function() { l(o).scrolltop() > i ? f || (d[s](c), f = !0) : f && (d[t](c), f = !1) }), p.scrolltarget ? "number" == typeof p.scrolltarget ? a = p.scrolltarget : "string" == typeof p.scrolltarget && (a = math.floor(l(p.scrolltarget).offset().top)) : a = 0, d.click(function(o) { o.preventdefault(), l("html, body").animate({ scrolltop: a }, p.scrollspeed, p.easingtype) }) }, l.fn.scrollup.defaults = { scrollname: "scrollup", scrolldistance: 300, scrollfrom: "top", scrollspeed: 300, easingtype: "linear", animation: "fade", animationspeed: 200, scrolltrigger: !1, scrolltarget: !1, scrolltext: "scroll to top", scrolltitle: !1, scrollimg: !1, activeoverlay: !1, zindex: 2147483647 }, l.fn.scrollup.destroy = function(r) { l.removedata(e.body, "scrollup"), l("#" + l.fn.scrollup.settings.scrollname).remove(), l("#" + l.fn.scrollup.settings.scrollname + "-active").remove(), l.fn.jquery.split(".")[1] >= 7 ? l(o).off("scroll", r) : l(o).unbind("scroll", r) }, l.scrollup = l.fn.scrollup }(jquery, window, document); /*! zoom 1.7.21 license: mit http://www.jacklmoore.com/zoom */ (function(o) { var t = { url: !1, callback: !1, target: !1, duration: 120, on: "mouseover", touch: !0, onzoomin: !1, onzoomout: !1, magnify: 1 }; o.zoom = function(t, n, e, i) { var u, c, a, r, m, l, s, f = o(t), h = f.css("position"), d = o(n); return t.style.position = /(absolute|fixed)/.test(h) ? h : "relative", t.style.overflow = "hidden", e.style.width = e.style.height = "", o(e).addclass("zoomimg").css({ position: "absolute", top: 0, left: 0, opacity: 0, width: e.width * i, height: e.height * i, border: "none", maxwidth: "none", maxheight: "none" }).appendto(t), { init: function() { c = f.outerwidth(), u = f.outerheight(), n === t ? (r = c, a = u) : (r = d.outerwidth(), a = d.outerheight()), m = (e.width - c) / r, l = (e.height - u) / a, s = d.offset() }, move: function(o) { var t = o.pagex - s.left, n = o.pagey - s.top; n = math.max(math.min(n, a), 0), t = math.max(math.min(t, r), 0), e.style.left = t * -m + "px", e.style.top = n * -l + "px" } } }, o.fn.zoom = function(n) { return this.each(function() { var e = o.extend({}, t, n || {}), i = e.target && o(e.target)[0] || this, u = this, c = o(u), a = document.createelement("img"), r = o(a), m = "mousemove.zoom", l = !1, s = !1; if (!e.url) { var f = u.queryselector("img"); if (f && (e.url = f.getattribute("data-src") || f.currentsrc || f.src), !e.url) return } c.one("zoom.destroy", function(o, t) { c.off(".zoom"), i.style.position = o, i.style.overflow = t, a.onload = null, r.remove() }.bind(this, i.style.position, i.style.overflow)), a.onload = function() { function t(t) { f.init(), f.move(t), r.stop().fadeto(o.support.opacity ? e.duration : 0, 1, o.isfunction(e.onzoomin) ? e.onzoomin.call(a) : !1) } function n() { r.stop().fadeto(e.duration, 0, o.isfunction(e.onzoomout) ? e.onzoomout.call(a) : !1) } var f = o.zoom(i, u, a, e.magnify); "grab" === e.on ? c.on("mousedown.zoom", function(e) { 1 === e.which && (o(document).one("mouseup.zoom", function() { n(), o(document).off(m, f.move) }), t(e), o(document).on(m, f.move), e.preventdefault()) }) : "click" === e.on ? c.on("click.zoom", function(e) { return l ? void 0 : (l = !0, t(e), o(document).on(m, f.move), o(document).one("click.zoom", function() { n(), l = !1, o(document).off(m, f.move) }), !1) }) : "toggle" === e.on ? c.on("click.zoom", function(o) { l ? n() : t(o), l = !l }) : "mouseover" === e.on && (f.init(), c.on("mouseenter.zoom", t).on("mouseleave.zoom", n).on(m, f.move)), e.touch && c.on("touchstart.zoom", function(o) { o.preventdefault(), s ? (s = !1, n()) : (s = !0, t(o.originalevent.touches[0] || o.originalevent.changedtouches[0])) }).on("touchmove.zoom", function(o) { o.preventdefault(), f.move(o.originalevent.touches[0] || o.originalevent.changedtouches[0]) }).on("touchend.zoom", function(o) { o.preventdefault(), s && (s = !1, n()) }), o.isfunction(e.callback) && e.callback.call(a) }, a.setattribute("role", "presentation"), a.alt = "", a.src = e.url }) }, o.fn.zoom.defaults = t })(window.jquery); /* jquery nice select - v1.0 https://github.com/hernansartorio/jquery-nice-select made by hernán sartorio */ ! function(e) { e.fn.niceselect = function(t) { function s(t) { t.after(e("
").addclass("nice-select").addclass(t.attr("class") || "").addclass(t.attr("disabled") ? "disabled" : "").attr("tabindex", t.attr("disabled") ? null : "0").html('
    ')); var s = t.next(), n = t.find("option"), i = t.find("option:selected"); s.find(".current").html(i.data("display") || i.text()), n.each(function(t) { var n = e(this), i = n.data("display"); s.find("ul").append(e("
  • ").attr("data-value", n.val()).attr("data-display", i || null).addclass("option" + (n.is(":selected") ? " selected" : "") + (n.is(":disabled") ? " disabled" : "")).html(n.text())) }) } if ("string" == typeof t) return "update" == t ? this.each(function() { var t = e(this), n = e(this).next(".nice-select"), i = n.hasclass("open"); n.length && (n.remove(), s(t), i && t.next().trigger("click")) }) : "destroy" == t ? (this.each(function() { var t = e(this), s = e(this).next(".nice-select"); s.length && (s.remove(), t.css("display", "")) }), 0 == e(".nice-select").length && e(document).off(".nice_select")) : console.log('method "' + t + '" does not exist.'), this; this.hide(), this.each(function() { var t = e(this); t.next().hasclass("nice-select") || s(t) }), e(document).off(".nice_select"), e(document).on("click.nice_select", ".nice-select", function(t) { var s = e(this); e(".nice-select").not(s).removeclass("open"), s.toggleclass("open"), s.hasclass("open") ? (s.find(".option"), s.find(".focus").removeclass("focus"), s.find(".selected").addclass("focus")) : s.focus() }), e(document).on("click.nice_select", function(t) { 0 === e(t.target).closest(".nice-select").length && e(".nice-select").removeclass("open").find(".option") }), e(document).on("click.nice_select", ".nice-select .option:not(.disabled)", function(t) { var s = e(this), n = s.closest(".nice-select"); n.find(".selected").removeclass("selected"), s.addclass("selected"); var i = s.data("display") || s.text(); n.find(".current").text(i), n.prev("select").val(s.data("value")).trigger("change") }), e(document).on("keydown.nice_select", ".nice-select", function(t) { var s = e(this), n = e(s.find(".focus") || s.find(".list .option.selected")); if (32 == t.keycode || 13 == t.keycode) return s.hasclass("open") ? n.trigger("click") : s.trigger("click"), !1; if (40 == t.keycode) { if (s.hasclass("open")) { var i = n.nextall(".option:not(.disabled)").first(); i.length > 0 && (s.find(".focus").removeclass("focus"), i.addclass("focus")) } else s.trigger("click"); return !1 } if (38 == t.keycode) { if (s.hasclass("open")) { var l = n.prevall(".option:not(.disabled)").first(); l.length > 0 && (s.find(".focus").removeclass("focus"), l.addclass("focus")) } else s.trigger("click"); return !1 } if (27 == t.keycode) s.hasclass("open") && s.trigger("click"); else if (9 == t.keycode && s.hasclass("open")) return !1 }); var n = document.createelement("a").style; return n.csstext = "pointer-events:auto", "auto" !== n.pointerevents && e("html").addclass("no-csspointerevents"), this } }(jquery); /*! jquery ui - v1.12.1 - 2016-09-14 * http://jqueryui.com * includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js * copyright jquery foundation and other contributors; licensed mit */ (function(t) { "function" == typeof define && define.amd ? define(["jquery"], t) : t(jquery) })(function(t) { function e(t) { for (var e = t.css("visibility"); "inherit" === e;) t = t.parent(), e = t.css("visibility"); return "hidden" !== e } function i(t) { for (var e, i; t.length && t[0] !== document;) { if (e = t.css("position"), ("absolute" === e || "relative" === e || "fixed" === e) && (i = parseint(t.css("zindex"), 10), !isnan(i) && 0 !== i)) return i; t = t.parent() } return 0 } function s() { this._curinst = null, this._keyevent = !1, this._disabledinputs = [], this._datepickershowing = !1, this._indialog = !1, this._maindivid = "ui-datepicker-div", this._inlineclass = "ui-datepicker-inline", this._appendclass = "ui-datepicker-append", this._triggerclass = "ui-datepicker-trigger", this._dialogclass = "ui-datepicker-dialog", this._disableclass = "ui-datepicker-disabled", this._unselectableclass = "ui-datepicker-unselectable", this._currentclass = "ui-datepicker-current-day", this._dayoverclass = "ui-datepicker-days-cell-over", this.regional = [], this.regional[""] = { closetext: "done", prevtext: "prev", nexttext: "next", currenttext: "today", monthnames: ["january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december"], monthnamesshort: ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"], daynames: ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"], daynamesshort: ["sun", "mon", "tue", "wed", "thu", "fri", "sat"], daynamesmin: ["su", "mo", "tu", "we", "th", "fr", "sa"], weekheader: "wk", dateformat: "mm/dd/yy", firstday: 0, isrtl: !1, showmonthafteryear: !1, yearsuffix: "" }, this._defaults = { showon: "focus", showanim: "fadein", showoptions: {}, defaultdate: null, appendtext: "", buttontext: "...", buttonimage: "", buttonimageonly: !1, hideifnoprevnext: !1, navigationasdateformat: !1, gotocurrent: !1, changemonth: !1, changeyear: !1, yearrange: "c-10:c+10", showothermonths: !1, selectothermonths: !1, showweek: !1, calculateweek: this.iso8601week, shortyearcutoff: "+10", mindate: null, maxdate: null, duration: "fast", beforeshowday: null, beforeshow: null, onselect: null, onchangemonthyear: null, onclose: null, numberofmonths: 1, showcurrentatpos: 0, stepmonths: 1, stepbigmonths: 12, altfield: "", altformat: "", constraininput: !0, showbuttonpanel: !1, autosize: !1, disabled: !1 }, t.extend(this._defaults, this.regional[""]), this.regional.en = t.extend(!0, {}, this.regional[""]), this.regional["en-us"] = t.extend(!0, {}, this.regional.en), this.dpdiv = n(t("
    ")) } function n(e) { var i = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a"; return e.on("mouseout", i, function() { t(this).removeclass("ui-state-hover"), -1 !== this.classname.indexof("ui-datepicker-prev") && t(this).removeclass("ui-datepicker-prev-hover"), -1 !== this.classname.indexof("ui-datepicker-next") && t(this).removeclass("ui-datepicker-next-hover") }).on("mouseover", i, o) } function o() { t.datepicker._isdisableddatepicker(m.inline ? m.dpdiv.parent()[0] : m.input[0]) || (t(this).parents(".ui-datepicker-calendar").find("a").removeclass("ui-state-hover"), t(this).addclass("ui-state-hover"), -1 !== this.classname.indexof("ui-datepicker-prev") && t(this).addclass("ui-datepicker-prev-hover"), -1 !== this.classname.indexof("ui-datepicker-next") && t(this).addclass("ui-datepicker-next-hover")) } function a(e, i) { t.extend(e, i); for (var s in i) null == i[s] && (e[s] = i[s]); return e } function r(t) { return function() { var e = this.element.val(); t.apply(this, arguments), this._refresh(), e !== this.element.val() && this._trigger("change") } } t.ui = t.ui || {}, t.ui.version = "1.12.1"; var h = 0, l = array.prototype.slice; t.cleandata = function(e) { return function(i) { var s, n, o; for (o = 0; null != (n = i[o]); o++) try { s = t._data(n, "events"), s && s.remove && t(n).triggerhandler("remove") } catch (a) {} e(i) } }(t.cleandata), t.widget = function(e, i, s) { var n, o, a, r = {}, h = e.split(".")[0]; e = e.split(".")[1]; var l = h + "-" + e; return s || (s = i, i = t.widget), t.isarray(s) && (s = t.extend.apply(null, [{}].concat(s))), t.expr[":"][l.tolowercase()] = function(e) { return !!t.data(e, l) }, t[h] = t[h] || {}, n = t[h][e], o = t[h][e] = function(t, e) { return this._createwidget ? (arguments.length && this._createwidget(t, e), void 0) : new o(t, e) }, t.extend(o, n, { version: s.version, _proto: t.extend({}, s), _childconstructors: [] }), a = new i, a.options = t.widget.extend({}, a.options), t.each(s, function(e, s) { return t.isfunction(s) ? (r[e] = function() { function t() { return i.prototype[e].apply(this, arguments) } function n(t) { return i.prototype[e].apply(this, t) } return function() { var e, i = this._super, o = this._superapply; return this._super = t, this._superapply = n, e = s.apply(this, arguments), this._super = i, this._superapply = o, e } }(), void 0) : (r[e] = s, void 0) }), o.prototype = t.widget.extend(a, { widgeteventprefix: n ? a.widgeteventprefix || e : e }, r, { constructor: o, namespace: h, widgetname: e, widgetfullname: l }), n ? (t.each(n._childconstructors, function(e, i) { var s = i.prototype; t.widget(s.namespace + "." + s.widgetname, o, i._proto) }), delete n._childconstructors) : i._childconstructors.push(o), t.widget.bridge(e, o), o }, t.widget.extend = function(e) { for (var i, s, n = l.call(arguments, 1), o = 0, a = n.length; a > o; o++) for (i in n[o]) s = n[o][i], n[o].hasownproperty(i) && void 0 !== s && (e[i] = t.isplainobject(s) ? t.isplainobject(e[i]) ? t.widget.extend({}, e[i], s) : t.widget.extend({}, s) : s); return e }, t.widget.bridge = function(e, i) { var s = i.prototype.widgetfullname || e; t.fn[e] = function(n) { var o = "string" == typeof n, a = l.call(arguments, 1), r = this; return o ? this.length || "instance" !== n ? this.each(function() { var i, o = t.data(this, s); return "instance" === n ? (r = o, !1) : o ? t.isfunction(o[n]) && "_" !== n.charat(0) ? (i = o[n].apply(o, a), i !== o && void 0 !== i ? (r = i && i.jquery ? r.pushstack(i.get()) : i, !1) : void 0) : t.error("no such method '" + n + "' for " + e + " widget instance") : t.error("cannot call methods on " + e + " prior to initialization; " + "attempted to call method '" + n + "'") }) : r = void 0 : (a.length && (n = t.widget.extend.apply(null, [n].concat(a))), this.each(function() { var e = t.data(this, s); e ? (e.option(n || {}), e._init && e._init()) : t.data(this, s, new i(n, this)) })), r } }, t.widget = function() {}, t.widget._childconstructors = [], t.widget.prototype = { widgetname: "widget", widgeteventprefix: "", defaultelement: "
    ", options: { classes: {}, disabled: !1, create: null }, _createwidget: function(e, i) { i = t(i || this.defaultelement || this)[0], this.element = t(i), this.uuid = h++, this.eventnamespace = "." + this.widgetname + this.uuid, this.bindings = t(), this.hoverable = t(), this.focusable = t(), this.classeselementlookup = {}, i !== this && (t.data(i, this.widgetfullname, this), this._on(!0, this.element, { remove: function(t) { t.target === i && this.destroy() } }), this.document = t(i.style ? i.ownerdocument : i.document || i), this.window = t(this.document[0].defaultview || this.document[0].parentwindow)), this.options = t.widget.extend({}, this.options, this._getcreateoptions(), e), this._create(), this.options.disabled && this._setoptiondisabled(this.options.disabled), this._trigger("create", null, this._getcreateeventdata()), this._init() }, _getcreateoptions: function() { return {} }, _getcreateeventdata: t.noop, _create: t.noop, _init: t.noop, destroy: function() { var e = this; this._destroy(), t.each(this.classeselementlookup, function(t, i) { e._removeclass(i, t) }), this.element.off(this.eventnamespace).removedata(this.widgetfullname), this.widget().off(this.eventnamespace).removeattr("aria-disabled"), this.bindings.off(this.eventnamespace) }, _destroy: t.noop, widget: function() { return this.element }, option: function(e, i) { var s, n, o, a = e; if (0 === arguments.length) return t.widget.extend({}, this.options); if ("string" == typeof e) if (a = {}, s = e.split("."), e = s.shift(), s.length) { for (n = a[e] = t.widget.extend({}, this.options[e]), o = 0; s.length - 1 > o; o++) n[s[o]] = n[s[o]] || {}, n = n[s[o]]; if (e = s.pop(), 1 === arguments.length) return void 0 === n[e] ? null : n[e]; n[e] = i } else { if (1 === arguments.length) return void 0 === this.options[e] ? null : this.options[e]; a[e] = i } return this._setoptions(a), this }, _setoptions: function(t) { var e; for (e in t) this._setoption(e, t[e]); return this }, _setoption: function(t, e) { return "classes" === t && this._setoptionclasses(e), this.options[t] = e, "disabled" === t && this._setoptiondisabled(e), this }, _setoptionclasses: function(e) { var i, s, n; for (i in e) n = this.classeselementlookup[i], e[i] !== this.options.classes[i] && n && n.length && (s = t(n.get()), this._removeclass(n, i), s.addclass(this._classes({ element: s, keys: i, classes: e, add: !0 }))) }, _setoptiondisabled: function(t) { this._toggleclass(this.widget(), this.widgetfullname + "-disabled", null, !!t), t && (this._removeclass(this.hoverable, null, "ui-state-hover"), this._removeclass(this.focusable, null, "ui-state-focus")) }, enable: function() { return this._setoptions({ disabled: !1 }) }, disable: function() { return this._setoptions({ disabled: !0 }) }, _classes: function(e) { function i(i, o) { var a, r; for (r = 0; i.length > r; r++) a = n.classeselementlookup[i[r]] || t(), a = e.add ? t(t.unique(a.get().concat(e.element.get()))) : t(a.not(e.element).get()), n.classeselementlookup[i[r]] = a, s.push(i[r]), o && e.classes[i[r]] && s.push(e.classes[i[r]]) } var s = [], n = this; return e = t.extend({ element: this.element, classes: this.options.classes || {} }, e), this._on(e.element, { remove: "_untrackclasseselement" }), e.keys && i(e.keys.match(/\s+/g) || [], !0), e.extra && i(e.extra.match(/\s+/g) || []), s.join(" ") }, _untrackclasseselement: function(e) { var i = this; t.each(i.classeselementlookup, function(s, n) {-1 !== t.inarray(e.target, n) && (i.classeselementlookup[s] = t(n.not(e.target).get())) }) }, _removeclass: function(t, e, i) { return this._toggleclass(t, e, i, !1) }, _addclass: function(t, e, i) { return this._toggleclass(t, e, i, !0) }, _toggleclass: function(t, e, i, s) { s = "boolean" == typeof s ? s : i; var n = "string" == typeof t || null === t, o = { extra: n ? e : i, keys: n ? t : e, element: n ? this.element : t, add: s }; return o.element.toggleclass(this._classes(o), s), this }, _on: function(e, i, s) { var n, o = this; "boolean" != typeof e && (s = i, i = e, e = !1), s ? (i = n = t(i), this.bindings = this.bindings.add(i)) : (s = i, i = this.element, n = this.widget()), t.each(s, function(s, a) { function r() { return e || o.options.disabled !== !0 && !t(this).hasclass("ui-state-disabled") ? ("string" == typeof a ? o[a] : a).apply(o, arguments) : void 0 } "string" != typeof a && (r.guid = a.guid = a.guid || r.guid || t.guid++); var h = s.match(/^([\w:-]*)\s*(.*)$/), l = h[1] + o.eventnamespace, c = h[2]; c ? n.on(l, c, r) : i.on(l, r) }) }, _off: function(e, i) { i = (i || "").split(" ").join(this.eventnamespace + " ") + this.eventnamespace, e.off(i).off(i), this.bindings = t(this.bindings.not(e).get()), this.focusable = t(this.focusable.not(e).get()), this.hoverable = t(this.hoverable.not(e).get()) }, _delay: function(t, e) { function i() { return ("string" == typeof t ? s[t] : t).apply(s, arguments) } var s = this; return settimeout(i, e || 0) }, _hoverable: function(e) { this.hoverable = this.hoverable.add(e), this._on(e, { mouseenter: function(e) { this._addclass(t(e.currenttarget), null, "ui-state-hover") }, mouseleave: function(e) { this._removeclass(t(e.currenttarget), null, "ui-state-hover") } }) }, _focusable: function(e) { this.focusable = this.focusable.add(e), this._on(e, { focusin: function(e) { this._addclass(t(e.currenttarget), null, "ui-state-focus") }, focusout: function(e) { this._removeclass(t(e.currenttarget), null, "ui-state-focus") } }) }, _trigger: function(e, i, s) { var n, o, a = this.options[e]; if (s = s || {}, i = t.event(i), i.type = (e === this.widgeteventprefix ? e : this.widgeteventprefix + e).tolowercase(), i.target = this.element[0], o = i.originalevent) for (n in o) n in i || (i[n] = o[n]); return this.element.trigger(i, s), !(t.isfunction(a) && a.apply(this.element[0], [i].concat(s)) === !1 || i.isdefaultprevented()) } }, t.each({ show: "fadein", hide: "fadeout" }, function(e, i) { t.widget.prototype["_" + e] = function(s, n, o) { "string" == typeof n && (n = { effect: n }); var a, r = n ? n === !0 || "number" == typeof n ? i : n.effect || i : e; n = n || {}, "number" == typeof n && (n = { duration: n }), a = !t.isemptyobject(n), n.complete = o, n.delay && s.delay(n.delay), a && t.effects && t.effects.effect[r] ? s[e](n) : r !== e && s[r] ? s[r](n.duration, n.easing, o) : s.queue(function(i) { t(this)[e](), o && o.call(s[0]), i() }) } }), t.widget, function() { function e(t, e, i) { return [parsefloat(t[0]) * (u.test(t[0]) ? e / 100 : 1), parsefloat(t[1]) * (u.test(t[1]) ? i / 100 : 1)] } function i(e, i) { return parseint(t.css(e, i), 10) || 0 } function s(e) { var i = e[0]; return 9 === i.nodetype ? { width: e.width(), height: e.height(), offset: { top: 0, left: 0 } } : t.iswindow(i) ? { width: e.width(), height: e.height(), offset: { top: e.scrolltop(), left: e.scrollleft() } } : i.preventdefault ? { width: 0, height: 0, offset: { top: i.pagey, left: i.pagex } } : { width: e.outerwidth(), height: e.outerheight(), offset: e.offset() } } var n, o = math.max, a = math.abs, r = /left|center|right/, h = /top|center|bottom/, l = /[\+\-]\d+(\.[\d]+)?%?/, c = /^\w+/, u = /%$/, d = t.fn.position; t.position = { scrollbarwidth: function() { if (void 0 !== n) return n; var e, i, s = t("
    "), o = s.children()[0]; return t("body").append(s), e = o.offsetwidth, s.css("overflow", "scroll"), i = o.offsetwidth, e === i && (i = s[0].clientwidth), s.remove(), n = e - i }, getscrollinfo: function(e) { var i = e.iswindow || e.isdocument ? "" : e.element.css("overflow-x"), s = e.iswindow || e.isdocument ? "" : e.element.css("overflow-y"), n = "scroll" === i || "auto" === i && e.width < e.element[0].scrollwidth, o = "scroll" === s || "auto" === s && e.height < e.element[0].scrollheight; return { width: o ? t.position.scrollbarwidth() : 0, height: n ? t.position.scrollbarwidth() : 0 } }, getwithininfo: function(e) { var i = t(e || window), s = t.iswindow(i[0]), n = !!i[0] && 9 === i[0].nodetype, o = !s && !n; return { element: i, iswindow: s, isdocument: n, offset: o ? t(e).offset() : { left: 0, top: 0 }, scrollleft: i.scrollleft(), scrolltop: i.scrolltop(), width: i.outerwidth(), height: i.outerheight() } } }, t.fn.position = function(n) { if (!n || !n.of) return d.apply(this, arguments); n = t.extend({}, n); var u, p, f, g, m, _, v = t(n.of), b = t.position.getwithininfo(n.within), y = t.position.getscrollinfo(b), w = (n.collision || "flip").split(" "), k = {}; return _ = s(v), v[0].preventdefault && (n.at = "left top"), p = _.width, f = _.height, g = _.offset, m = t.extend({}, g), t.each(["my", "at"], function() { var t, e, i = (n[this] || "").split(" "); 1 === i.length && (i = r.test(i[0]) ? i.concat(["center"]) : h.test(i[0]) ? ["center"].concat(i) : ["center", "center"]), i[0] = r.test(i[0]) ? i[0] : "center", i[1] = h.test(i[1]) ? i[1] : "center", t = l.exec(i[0]), e = l.exec(i[1]), k[this] = [t ? t[0] : 0, e ? e[0] : 0], n[this] = [c.exec(i[0])[0], c.exec(i[1])[0]] }), 1 === w.length && (w[1] = w[0]), "right" === n.at[0] ? m.left += p : "center" === n.at[0] && (m.left += p / 2), "bottom" === n.at[1] ? m.top += f : "center" === n.at[1] && (m.top += f / 2), u = e(k.at, p, f), m.left += u[0], m.top += u[1], this.each(function() { var s, r, h = t(this), l = h.outerwidth(), c = h.outerheight(), d = i(this, "marginleft"), _ = i(this, "margintop"), x = l + d + i(this, "marginright") + y.width, c = c + _ + i(this, "marginbottom") + y.height, d = t.extend({}, m), i = e(k.my, h.outerwidth(), h.outerheight()); "right" === n.my[0] ? d.left -= l : "center" === n.my[0] && (d.left -= l / 2), "bottom" === n.my[1] ? d.top -= c : "center" === n.my[1] && (d.top -= c / 2), d.left += i[0], d.top += i[1], s = { marginleft: d, margintop: _ }, t.each(["left", "top"], function(e, i) { t.ui.position[w[e]] && t.ui.position[w[e]][i](d, { targetwidth: p, targetheight: f, elemwidth: l, elemheight: c, collisionposition: s, collisionwidth: x, collisionheight: c, offset: [u[0] + i[0], u[1] + i[1]], my: n.my, at: n.at, within: b, elem: h }) }), n.using && (r = function(t) { var e = g.left - d.left, i = e + p - l, s = g.top - d.top, r = s + f - c, u = { target: { element: v, left: g.left, top: g.top, width: p, height: f }, element: { element: h, left: d.left, top: d.top, width: l, height: c }, horizontal: 0 > i ? "left" : e > 0 ? "right" : "center", vertical: 0 > r ? "top" : s > 0 ? "bottom" : "middle" }; l > p && p > a(e + i) && (u.horizontal = "center"), c > f && f > a(s + r) && (u.vertical = "middle"), u.important = o(a(e), a(i)) > o(a(s), a(r)) ? "horizontal" : "vertical", n.using.call(this, t, u) }), h.offset(t.extend(d, { using: r })) }) }, t.ui.position = { fit: { left: function(t, e) { var i, s = e.within, n = s.iswindow ? s.scrollleft : s.offset.left, a = s.width, r = t.left - e.collisionposition.marginleft, h = n - r, l = r + e.collisionwidth - a - n; e.collisionwidth > a ? h > 0 && 0 >= l ? (i = t.left + h + e.collisionwidth - a - n, t.left += h - i) : t.left = l > 0 && 0 >= h ? n : h > l ? n + a - e.collisionwidth : n : h > 0 ? t.left += h : l > 0 ? t.left -= l : t.left = o(t.left - r, t.left) }, top: function(t, e) { var i, s = e.within, n = s.iswindow ? s.scrolltop : s.offset.top, a = e.within.height, r = t.top - e.collisionposition.margintop, h = n - r, l = r + e.collisionheight - a - n; e.collisionheight > a ? h > 0 && 0 >= l ? (i = t.top + h + e.collisionheight - a - n, t.top += h - i) : t.top = l > 0 && 0 >= h ? n : h > l ? n + a - e.collisionheight : n : h > 0 ? t.top += h : l > 0 ? t.top -= l : t.top = o(t.top - r, t.top) } }, flip: { left: function(t, e) { var i, s, n = e.within, o = n.offset.left + n.scrollleft, r = n.width, h = n.iswindow ? n.scrollleft : n.offset.left, l = t.left - e.collisionposition.marginleft, c = l - h, u = l + e.collisionwidth - r - h, d = "left" === e.my[0] ? -e.elemwidth : "right" === e.my[0] ? e.elemwidth : 0, p = "left" === e.at[0] ? e.targetwidth : "right" === e.at[0] ? -e.targetwidth : 0, f = -2 * e.offset[0]; 0 > c ? (i = t.left + d + p + f + e.collisionwidth - r - o, (0 > i || a(c) > i) && (t.left += d + p + f)) : u > 0 && (s = t.left - e.collisionposition.marginleft + d + p + f - h, (s > 0 || u > a(s)) && (t.left += d + p + f)) }, top: function(t, e) { var i, s, n = e.within, o = n.offset.top + n.scrolltop, r = n.height, h = n.iswindow ? n.scrolltop : n.offset.top, l = t.top - e.collisionposition.margintop, c = l - h, u = l + e.collisionheight - r - h, d = "top" === e.my[1], p = d ? -e.elemheight : "bottom" === e.my[1] ? e.elemheight : 0, f = "top" === e.at[1] ? e.targetheight : "bottom" === e.at[1] ? -e.targetheight : 0, g = -2 * e.offset[1]; 0 > c ? (s = t.top + p + f + g + e.collisionheight - r - o, (0 > s || a(c) > s) && (t.top += p + f + g)) : u > 0 && (i = t.top - e.collisionposition.margintop + p + f + g - h, (i > 0 || u > a(i)) && (t.top += p + f + g)) } }, flipfit: { left: function() { t.ui.position.flip.left.apply(this, arguments), t.ui.position.fit.left.apply(this, arguments) }, top: function() { t.ui.position.flip.top.apply(this, arguments), t.ui.position.fit.top.apply(this, arguments) } } } }(), t.ui.position, t.extend(t.expr[":"], { data: t.expr.createpseudo ? t.expr.createpseudo(function(e) { return function(i) { return !!t.data(i, e) } }) : function(e, i, s) { return !!t.data(e, s[3]) } }), t.fn.extend({ disableselection: function() { var t = "onselectstart" in document.createelement("div") ? "selectstart" : "mousedown"; return function() { return this.on(t + ".ui-disableselection", function(t) { t.preventdefault() }) } }(), enableselection: function() { return this.off(".ui-disableselection") } }); var c = "ui-effects-", u = "ui-effects-style", d = "ui-effects-animated", p = t; t.effects = { effect: {} }, function(t, e) { function i(t, e, i) { var s = u[e.type] || {}; return null == t ? i || !e.def ? null : e.def : (t = s.floor ? ~~t : parsefloat(t), isnan(t) ? e.def : s.mod ? (t + s.mod) % s.mod : 0 > t ? 0 : t > s.max ? s.max : t) } function s(i) { var s = l(), n = s._rgba = []; return i = i.tolowercase(), f(h, function(t, o) { var a, r = o.re.exec(i), h = r && o.parse(r), l = o.space || "rgba"; return h ? (a = s[l](h), s[c[l].cache] = a[c[l].cache], n = s._rgba = a._rgba, !1) : e }), n.length ? ("0,0,0,0" === n.join() && t.extend(n, o.transparent), s) : o[i] } function n(t, e, i) { return i = (i + 1) % 1, 1 > 6 * i ? t + 6 * (e - t) * i : 1 > 2 * i ? e : 2 > 3 * i ? t + 6 * (e - t) * (2 / 3 - i) : t } var o, a = "backgroundcolor borderbottomcolor borderleftcolor borderrightcolor bordertopcolor color columnrulecolor outlinecolor textdecorationcolor textemphasiscolor", r = /^([\-+])=\s*(\d+\.?\d*)/, h = [{ re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/, parse: function(t) { return [t[1], t[2], t[3], t[4]] } }, { re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/, parse: function(t) { return [2.55 * t[1], 2.55 * t[2], 2.55 * t[3], t[4]] } }, { re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/, parse: function(t) { return [parseint(t[1], 16), parseint(t[2], 16), parseint(t[3], 16)] } }, { re: /#([a-f0-9])([a-f0-9])([a-f0-9])/, parse: function(t) { return [parseint(t[1] + t[1], 16), parseint(t[2] + t[2], 16), parseint(t[3] + t[3], 16)] } }, { re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/, space: "hsla", parse: function(t) { return [t[1], t[2] / 100, t[3] / 100, t[4]] } }], l = t.color = function(e, i, s, n) { return new t.color.fn.parse(e, i, s, n) }, c = { rgba: { props: { red: { idx: 0, type: "byte" }, green: { idx: 1, type: "byte" }, blue: { idx: 2, type: "byte" } } }, hsla: { props: { hue: { idx: 0, type: "degrees" }, saturation: { idx: 1, type: "percent" }, lightness: { idx: 2, type: "percent" } } } }, u = { "byte": { floor: !0, max: 255 }, percent: { max: 1 }, degrees: { mod: 360, floor: !0 } }, d = l.support = {}, p = t("

    ")[0], f = t.each; p.style.csstext = "background-color:rgba(1,1,1,.5)", d.rgba = p.style.backgroundcolor.indexof("rgba") > -1, f(c, function(t, e) { e.cache = "_" + t, e.props.alpha = { idx: 3, type: "percent", def: 1 } }), l.fn = t.extend(l.prototype, { parse: function(n, a, r, h) { if (n === e) return this._rgba = [null, null, null, null], this; (n.jquery || n.nodetype) && (n = t(n).css(a), a = e); var u = this, d = t.type(n), p = this._rgba = []; return a !== e && (n = [n, a, r, h], d = "array"), "string" === d ? this.parse(s(n) || o._default) : "array" === d ? (f(c.rgba.props, function(t, e) { p[e.idx] = i(n[e.idx], e) }), this) : "object" === d ? (n instanceof l ? f(c, function(t, e) { n[e.cache] && (u[e.cache] = n[e.cache].slice()) }) : f(c, function(e, s) { var o = s.cache; f(s.props, function(t, e) { if (!u[o] && s.to) { if ("alpha" === t || null == n[t]) return; u[o] = s.to(u._rgba) } u[o][e.idx] = i(n[t], e, !0) }), u[o] && 0 > t.inarray(null, u[o].slice(0, 3)) && (u[o][3] = 1, s.from && (u._rgba = s.from(u[o]))) }), this) : e }, is: function(t) { var i = l(t), s = !0, n = this; return f(c, function(t, o) { var a, r = i[o.cache]; return r && (a = n[o.cache] || o.to && o.to(n._rgba) || [], f(o.props, function(t, i) { return null != r[i.idx] ? s = r[i.idx] === a[i.idx] : e })), s }), s }, _space: function() { var t = [], e = this; return f(c, function(i, s) { e[s.cache] && t.push(i) }), t.pop() }, transition: function(t, e) { var s = l(t), n = s._space(), o = c[n], a = 0 === this.alpha() ? l("transparent") : this, r = a[o.cache] || o.to(a._rgba), h = r.slice(); return s = s[o.cache], f(o.props, function(t, n) { var o = n.idx, a = r[o], l = s[o], c = u[n.type] || {}; null !== l && (null === a ? h[o] = l : (c.mod && (l - a > c.mod / 2 ? a += c.mod : a - l > c.mod / 2 && (a -= c.mod)), h[o] = i((l - a) * e + a, n))) }), this[n](h) }, blend: function(e) { if (1 === this._rgba[3]) return this; var i = this._rgba.slice(), s = i.pop(), n = l(e)._rgba; return l(t.map(i, function(t, e) { return (1 - s) * n[e] + s * t })) }, torgbastring: function() { var e = "rgba(", i = t.map(this._rgba, function(t, e) { return null == t ? e > 2 ? 1 : 0 : t }); return 1 === i[3] && (i.pop(), e = "rgb("), e + i.join() + ")" }, tohslastring: function() { var e = "hsla(", i = t.map(this.hsla(), function(t, e) { return null == t && (t = e > 2 ? 1 : 0), e && 3 > e && (t = math.round(100 * t) + "%"), t }); return 1 === i[3] && (i.pop(), e = "hsl("), e + i.join() + ")" }, tohexstring: function(e) { var i = this._rgba.slice(), s = i.pop(); return e && i.push(~~(255 * s)), "#" + t.map(i, function(t) { return t = (t || 0).tostring(16), 1 === t.length ? "0" + t : t }).join("") }, tostring: function() { return 0 === this._rgba[3] ? "transparent" : this.torgbastring() } }), l.fn.parse.prototype = l.fn, c.hsla.to = function(t) { if (null == t[0] || null == t[1] || null == t[2]) return [null, null, null, t[3]]; var e, i, s = t[0] / 255, n = t[1] / 255, o = t[2] / 255, a = t[3], r = math.max(s, n, o), h = math.min(s, n, o), l = r - h, c = r + h, u = .5 * c; return e = h === r ? 0 : s === r ? 60 * (n - o) / l + 360 : n === r ? 60 * (o - s) / l + 120 : 60 * (s - n) / l + 240, i = 0 === l ? 0 : .5 >= u ? l / c : l / (2 - c), [math.round(e) % 360, i, u, null == a ? 1 : a] }, c.hsla.from = function(t) { if (null == t[0] || null == t[1] || null == t[2]) return [null, null, null, t[3]]; var e = t[0] / 360, i = t[1], s = t[2], o = t[3], a = .5 >= s ? s * (1 + i) : s + i - s * i, r = 2 * s - a; return [math.round(255 * n(r, a, e + 1 / 3)), math.round(255 * n(r, a, e)), math.round(255 * n(r, a, e - 1 / 3)), o] }, f(c, function(s, n) { var o = n.props, a = n.cache, h = n.to, c = n.from; l.fn[s] = function(s) { if (h && !this[a] && (this[a] = h(this._rgba)), s === e) return this[a].slice(); var n, r = t.type(s), u = "array" === r || "object" === r ? s : arguments, d = this[a].slice(); return f(o, function(t, e) { var s = u["object" === r ? t : e.idx]; null == s && (s = d[e.idx]), d[e.idx] = i(s, e) }), c ? (n = l(c(d)), n[a] = d, n) : l(d) }, f(o, function(e, i) { l.fn[e] || (l.fn[e] = function(n) { var o, a = t.type(n), h = "alpha" === e ? this._hsla ? "hsla" : "rgba" : s, l = this[h](), c = l[i.idx]; return "undefined" === a ? c : ("function" === a && (n = n.call(this, c), a = t.type(n)), null == n && i.empty ? this : ("string" === a && (o = r.exec(n), o && (n = c + parsefloat(o[2]) * ("+" === o[1] ? 1 : -1))), l[i.idx] = n, this[h](l))) }) }) }), l.hook = function(e) { var i = e.split(" "); f(i, function(e, i) { t.csshooks[i] = { set: function(e, n) { var o, a, r = ""; if ("transparent" !== n && ("string" !== t.type(n) || (o = s(n)))) { if (n = l(o || n), !d.rgba && 1 !== n._rgba[3]) { for (a = "backgroundcolor" === i ? e.parentnode : e; ("" === r || "transparent" === r) && a && a.style;) try { r = t.css(a, "backgroundcolor"), a = a.parentnode } catch (h) {} n = n.blend(r && "transparent" !== r ? r : "_default") } n = n.torgbastring() } try { e.style[i] = n } catch (h) {} } }, t.fx.step[i] = function(e) { e.colorinit || (e.start = l(e.elem, i), e.end = l(e.end), e.colorinit = !0), t.csshooks[i].set(e.elem, e.start.transition(e.end, e.pos)) } }) }, l.hook(a), t.csshooks.bordercolor = { expand: function(t) { var e = {}; return f(["top", "right", "bottom", "left"], function(i, s) { e["border" + s + "color"] = t }), e } }, o = t.color.names = { aqua: "#00ffff", black: "#000000", blue: "#0000ff", fuchsia: "#ff00ff", gray: "#808080", green: "#008000", lime: "#00ff00", maroon: "#800000", navy: "#000080", olive: "#808000", purple: "#800080", red: "#ff0000", silver: "#c0c0c0", teal: "#008080", white: "#ffffff", yellow: "#ffff00", transparent: [null, null, null, 0], _default: "#ffffff" } }(p), function() { function e(e) { var i, s, n = e.ownerdocument.defaultview ? e.ownerdocument.defaultview.getcomputedstyle(e, null) : e.currentstyle, o = {}; if (n && n.length && n[0] && n[n[0]]) for (s = n.length; s--;) i = n[s], "string" == typeof n[i] && (o[t.camelcase(i)] = n[i]); else for (i in n) "string" == typeof n[i] && (o[i] = n[i]); return o } function i(e, i) { var s, o, a = {}; for (s in i) o = i[s], e[s] !== o && (n[s] || (t.fx.step[s] || !isnan(parsefloat(o))) && (a[s] = o)); return a } var s = ["add", "remove", "toggle"], n = { border: 1, borderbottom: 1, bordercolor: 1, borderleft: 1, borderright: 1, bordertop: 1, borderwidth: 1, margin: 1, padding: 1 }; t.each(["borderleftstyle", "borderrightstyle", "borderbottomstyle", "bordertopstyle"], function(e, i) { t.fx.step[i] = function(t) { ("none" !== t.end && !t.setattr || 1 === t.pos && !t.setattr) && (p.style(t.elem, i, t.end), t.setattr = !0) } }), t.fn.addback || (t.fn.addback = function(t) { return this.add(null == t ? this.prevobject : this.prevobject.filter(t)) }), t.effects.animateclass = function(n, o, a, r) { var h = t.speed(o, a, r); return this.queue(function() { var o, a = t(this), r = a.attr("class") || "", l = h.children ? a.find("*").addback() : a; l = l.map(function() { var i = t(this); return { el: i, start: e(this) } }), o = function() { t.each(s, function(t, e) { n[e] && a[e + "class"](n[e]) }) }, o(), l = l.map(function() { return this.end = e(this.el[0]), this.diff = i(this.start, this.end), this }), a.attr("class", r), l = l.map(function() { var e = this, i = t.deferred(), s = t.extend({}, h, { queue: !1, complete: function() { i.resolve(e) } }); return this.el.animate(this.diff, s), i.promise() }), t.when.apply(t, l.get()).done(function() { o(), t.each(arguments, function() { var e = this.el; t.each(this.diff, function(t) { e.css(t, "") }) }), h.complete.call(a[0]) }) }) }, t.fn.extend({ addclass: function(e) { return function(i, s, n, o) { return s ? t.effects.animateclass.call(this, { add: i }, s, n, o) : e.apply(this, arguments) } }(t.fn.addclass), removeclass: function(e) { return function(i, s, n, o) { return arguments.length > 1 ? t.effects.animateclass.call(this, { remove: i }, s, n, o) : e.apply(this, arguments) } }(t.fn.removeclass), toggleclass: function(e) { return function(i, s, n, o, a) { return "boolean" == typeof s || void 0 === s ? n ? t.effects.animateclass.call(this, s ? { add: i } : { remove: i }, n, o, a) : e.apply(this, arguments) : t.effects.animateclass.call(this, { toggle: i }, s, n, o) } }(t.fn.toggleclass), switchclass: function(e, i, s, n, o) { return t.effects.animateclass.call(this, { add: i, remove: e }, s, n, o) } }) }(), function() { function e(e, i, s, n) { return t.isplainobject(e) && (i = e, e = e.effect), e = { effect: e }, null == i && (i = {}), t.isfunction(i) && (n = i, s = null, i = {}), ("number" == typeof i || t.fx.speeds[i]) && (n = s, s = i, i = {}), t.isfunction(s) && (n = s, s = null), i && t.extend(e, i), s = s || i.duration, e.duration = t.fx.off ? 0 : "number" == typeof s ? s : s in t.fx.speeds ? t.fx.speeds[s] : t.fx.speeds._default, e.complete = n || i.complete, e } function i(e) { return !e || "number" == typeof e || t.fx.speeds[e] ? !0 : "string" != typeof e || t.effects.effect[e] ? t.isfunction(e) ? !0 : "object" != typeof e || e.effect ? !1 : !0 : !0 } function s(t, e) { var i = e.outerwidth(), s = e.outerheight(), n = /^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/, o = n.exec(t) || ["", 0, i, s, 0]; return { top: parsefloat(o[1]) || 0, right: "auto" === o[2] ? i : parsefloat(o[2]), bottom: "auto" === o[3] ? s : parsefloat(o[3]), left: parsefloat(o[4]) || 0 } } t.expr && t.expr.filters && t.expr.filters.animated && (t.expr.filters.animated = function(e) { return function(i) { return !!t(i).data(d) || e(i) } }(t.expr.filters.animated)), t.uibackcompat !== !1 && t.extend(t.effects, { save: function(t, e) { for (var i = 0, s = e.length; s > i; i++) null !== e[i] && t.data(c + e[i], t[0].style[e[i]]) }, restore: function(t, e) { for (var i, s = 0, n = e.length; n > s; s++) null !== e[s] && (i = t.data(c + e[s]), t.css(e[s], i)) }, setmode: function(t, e) { return "toggle" === e && (e = t.is(":hidden") ? "show" : "hide"), e }, createwrapper: function(e) { if (e.parent().is(".ui-effects-wrapper")) return e.parent(); var i = { width: e.outerwidth(!0), height: e.outerheight(!0), "float": e.css("float") }, s = t("

    ").addclass("ui-effects-wrapper").css({ fontsize: "100%", background: "transparent", border: "none", margin: 0, padding: 0 }), n = { width: e.width(), height: e.height() }, o = document.activeelement; try { o.id } catch (a) { o = document.body } return e.wrap(s), (e[0] === o || t.contains(e[0], o)) && t(o).trigger("focus"), s = e.parent(), "static" === e.css("position") ? (s.css({ position: "relative" }), e.css({ position: "relative" })) : (t.extend(i, { position: e.css("position"), zindex: e.css("z-index") }), t.each(["top", "left", "bottom", "right"], function(t, s) { i[s] = e.css(s), isnan(parseint(i[s], 10)) && (i[s] = "auto") }), e.css({ position: "relative", top: 0, left: 0, right: "auto", bottom: "auto" })), e.css(n), s.css(i).show() }, removewrapper: function(e) { var i = document.activeelement; return e.parent().is(".ui-effects-wrapper") && (e.parent().replacewith(e), (e[0] === i || t.contains(e[0], i)) && t(i).trigger("focus")), e } }), t.extend(t.effects, { version: "1.12.1", define: function(e, i, s) { return s || (s = i, i = "effect"), t.effects.effect[e] = s, t.effects.effect[e].mode = i, s }, scaleddimensions: function(t, e, i) { if (0 === e) return { height: 0, width: 0, outerheight: 0, outerwidth: 0 }; var s = "horizontal" !== i ? (e || 100) / 100 : 1, n = "vertical" !== i ? (e || 100) / 100 : 1; return { height: t.height() * n, width: t.width() * s, outerheight: t.outerheight() * n, outerwidth: t.outerwidth() * s } }, cliptobox: function(t) { return { width: t.clip.right - t.clip.left, height: t.clip.bottom - t.clip.top, left: t.clip.left, top: t.clip.top } }, unshift: function(t, e, i) { var s = t.queue(); e > 1 && s.splice.apply(s, [1, 0].concat(s.splice(e, i))), t.dequeue() }, savestyle: function(t) { t.data(u, t[0].style.csstext) }, restorestyle: function(t) { t[0].style.csstext = t.data(u) || "", t.removedata(u) }, mode: function(t, e) { var i = t.is(":hidden"); return "toggle" === e && (e = i ? "show" : "hide"), (i ? "hide" === e : "show" === e) && (e = "none"), e }, getbaseline: function(t, e) { var i, s; switch (t[0]) { case "top": i = 0; break; case "middle": i = .5; break; case "bottom": i = 1; break; default: i = t[0] / e.height } switch (t[1]) { case "left": s = 0; break; case "center": s = .5; break; case "right": s = 1; break; default: s = t[1] / e.width } return { x: s, y: i } }, createplaceholder: function(e) { var i, s = e.css("position"), n = e.position(); return e.css({ margintop: e.css("margintop"), marginbottom: e.css("marginbottom"), marginleft: e.css("marginleft"), marginright: e.css("marginright") }).outerwidth(e.outerwidth()).outerheight(e.outerheight()), /^(static|relative)/.test(s) && (s = "absolute", i = t("<" + e[0].nodename + ">").insertafter(e).css({ display: /^(inline|ruby)/.test(e.css("display")) ? "inline-block" : "block", visibility: "hidden", margintop: e.css("margintop"), marginbottom: e.css("marginbottom"), marginleft: e.css("marginleft"), marginright: e.css("marginright"), "float": e.css("float") }).outerwidth(e.outerwidth()).outerheight(e.outerheight()).addclass("ui-effects-placeholder"), e.data(c + "placeholder", i)), e.css({ position: s, left: n.left, top: n.top }), i }, removeplaceholder: function(t) { var e = c + "placeholder", i = t.data(e); i && (i.remove(), t.removedata(e)) }, cleanup: function(e) { t.effects.restorestyle(e), t.effects.removeplaceholder(e) }, settransition: function(e, i, s, n) { return n = n || {}, t.each(i, function(t, i) { var o = e.cssunit(i); o[0] > 0 && (n[i] = o[0] * s + o[1]) }), n } }), t.fn.extend({ effect: function() { function i(e) { function i() { r.removedata(d), t.effects.cleanup(r), "hide" === s.mode && r.hide(), a() } function a() { t.isfunction(h) && h.call(r[0]), t.isfunction(e) && e() } var r = t(this); s.mode = c.shift(), t.uibackcompat === !1 || o ? "none" === s.mode ? (r[l](), a()) : n.call(r[0], s, i) : (r.is(":hidden") ? "hide" === l : "show" === l) ? (r[l](), a()) : n.call(r[0], s, a) } var s = e.apply(this, arguments), n = t.effects.effect[s.effect], o = n.mode, a = s.queue, r = a || "fx", h = s.complete, l = s.mode, c = [], u = function(e) { var i = t(this), s = t.effects.mode(i, l) || o; i.data(d, !0), c.push(s), o && ("show" === s || s === o && "hide" === s) && i.show(), o && "none" === s || t.effects.savestyle(i), t.isfunction(e) && e() }; return t.fx.off || !n ? l ? this[l](s.duration, h) : this.each(function() { h && h.call(this) }) : a === !1 ? this.each(u).each(i) : this.queue(r, u).queue(r, i) }, show: function(t) { return function(s) { if (i(s)) return t.apply(this, arguments); var n = e.apply(this, arguments); return n.mode = "show", this.effect.call(this, n) } }(t.fn.show), hide: function(t) { return function(s) { if (i(s)) return t.apply(this, arguments); var n = e.apply(this, arguments); return n.mode = "hide", this.effect.call(this, n) } }(t.fn.hide), toggle: function(t) { return function(s) { if (i(s) || "boolean" == typeof s) return t.apply(this, arguments); var n = e.apply(this, arguments); return n.mode = "toggle", this.effect.call(this, n) } }(t.fn.toggle), cssunit: function(e) { var i = this.css(e), s = []; return t.each(["em", "px", "%", "pt"], function(t, e) { i.indexof(e) > 0 && (s = [parsefloat(i), e]) }), s }, cssclip: function(t) { return t ? this.css("clip", "rect(" + t.top + "px " + t.right + "px " + t.bottom + "px " + t.left + "px)") : s(this.css("clip"), this) }, transfer: function(e, i) { var s = t(this), n = t(e.to), o = "fixed" === n.css("position"), a = t("body"), r = o ? a.scrolltop() : 0, h = o ? a.scrollleft() : 0, l = n.offset(), c = { top: l.top - r, left: l.left - h, height: n.innerheight(), width: n.innerwidth() }, u = s.offset(), d = t("
    ").appendto("body").addclass(e.classname).css({ top: u.top - r, left: u.left - h, height: s.innerheight(), width: s.innerwidth(), position: o ? "fixed" : "absolute" }).animate(c, e.duration, e.easing, function() { d.remove(), t.isfunction(i) && i() }) } }), t.fx.step.clip = function(e) { e.clipinit || (e.start = t(e.elem).cssclip(), "string" == typeof e.end && (e.end = s(e.end, e.elem)), e.clipinit = !0), t(e.elem).cssclip({ top: e.pos * (e.end.top - e.start.top) + e.start.top, right: e.pos * (e.end.right - e.start.right) + e.start.right, bottom: e.pos * (e.end.bottom - e.start.bottom) + e.start.bottom, left: e.pos * (e.end.left - e.start.left) + e.start.left }) } }(), function() { var e = {}; t.each(["quad", "cubic", "quart", "quint", "expo"], function(t, i) { e[i] = function(e) { return math.pow(e, t + 2) } }), t.extend(e, { sine: function(t) { return 1 - math.cos(t * math.pi / 2) }, circ: function(t) { return 1 - math.sqrt(1 - t * t) }, elastic: function(t) { return 0 === t || 1 === t ? t : -math.pow(2, 8 * (t - 1)) * math.sin((80 * (t - 1) - 7.5) * math.pi / 15) }, back: function(t) { return t * t * (3 * t - 2) }, bounce: function(t) { for (var e, i = 4; ((e = math.pow(2, --i)) - 1) / 11 > t;); return 1 / math.pow(4, 3 - i) - 7.5625 * math.pow((3 * e - 2) / 22 - t, 2) } }), t.each(e, function(e, i) { t.easing["easein" + e] = i, t.easing["easeout" + e] = function(t) { return 1 - i(1 - t) }, t.easing["easeinout" + e] = function(t) { return .5 > t ? i(2 * t) / 2 : 1 - i(-2 * t + 2) / 2 } }) }(); var f = t.effects; t.effects.define("blind", "hide", function(e, i) { var s = { up: ["bottom", "top"], vertical: ["bottom", "top"], down: ["top", "bottom"], left: ["right", "left"], horizontal: ["right", "left"], right: ["left", "right"] }, n = t(this), o = e.direction || "up", a = n.cssclip(), r = { clip: t.extend({}, a) }, h = t.effects.createplaceholder(n); r.clip[s[o][0]] = r.clip[s[o][1]], "show" === e.mode && (n.cssclip(r.clip), h && h.css(t.effects.cliptobox(r)), r.clip = a), h && h.animate(t.effects.cliptobox(r), e.duration, e.easing), n.animate(r, { queue: !1, duration: e.duration, easing: e.easing, complete: i }) }), t.effects.define("bounce", function(e, i) { var s, n, o, a = t(this), r = e.mode, h = "hide" === r, l = "show" === r, c = e.direction || "up", u = e.distance, d = e.times || 5, p = 2 * d + (l || h ? 1 : 0), f = e.duration / p, g = e.easing, m = "up" === c || "down" === c ? "top" : "left", _ = "up" === c || "left" === c, v = 0, b = a.queue().length; for (t.effects.createplaceholder(a), o = a.css(m), u || (u = a["top" === m ? "outerheight" : "outerwidth"]() / 3), l && (n = { opacity: 1 }, n[m] = o, a.css("opacity", 0).css(m, _ ? 2 * -u : 2 * u).animate(n, f, g)), h && (u /= math.pow(2, d - 1)), n = {}, n[m] = o; d > v; v++) s = {}, s[m] = (_ ? "-=" : "+=") + u, a.animate(s, f, g).animate(n, f, g), u = h ? 2 * u : u / 2; h && (s = { opacity: 0 }, s[m] = (_ ? "-=" : "+=") + u, a.animate(s, f, g)), a.queue(i), t.effects.unshift(a, b, p + 1) }), t.effects.define("clip", "hide", function(e, i) { var s, n = {}, o = t(this), a = e.direction || "vertical", r = "both" === a, h = r || "horizontal" === a, l = r || "vertical" === a; s = o.cssclip(), n.clip = { top: l ? (s.bottom - s.top) / 2 : s.top, right: h ? (s.right - s.left) / 2 : s.right, bottom: l ? (s.bottom - s.top) / 2 : s.bottom, left: h ? (s.right - s.left) / 2 : s.left }, t.effects.createplaceholder(o), "show" === e.mode && (o.cssclip(n.clip), n.clip = s), o.animate(n, { queue: !1, duration: e.duration, easing: e.easing, complete: i }) }), t.effects.define("drop", "hide", function(e, i) { var s, n = t(this), o = e.mode, a = "show" === o, r = e.direction || "left", h = "up" === r || "down" === r ? "top" : "left", l = "up" === r || "left" === r ? "-=" : "+=", c = "+=" === l ? "-=" : "+=", u = { opacity: 0 }; t.effects.createplaceholder(n), s = e.distance || n["top" === h ? "outerheight" : "outerwidth"](!0) / 2, u[h] = l + s, a && (n.css(u), u[h] = c + s, u.opacity = 1), n.animate(u, { queue: !1, duration: e.duration, easing: e.easing, complete: i }) }), t.effects.define("explode", "hide", function(e, i) { function s() { b.push(this), b.length === u * d && n() } function n() { p.css({ visibility: "visible" }), t(b).remove(), i() } var o, a, r, h, l, c, u = e.pieces ? math.round(math.sqrt(e.pieces)) : 3, d = u, p = t(this), f = e.mode, g = "show" === f, m = p.show().css("visibility", "hidden").offset(), _ = math.ceil(p.outerwidth() / d), v = math.ceil(p.outerheight() / u), b = []; for (o = 0; u > o; o++) for (h = m.top + o * v, c = o - (u - 1) / 2, a = 0; d > a; a++) r = m.left + a * _, l = a - (d - 1) / 2, p.clone().appendto("body").wrap("
    ").css({ position: "absolute", visibility: "visible", left: -a * _, top: -o * v }).parent().addclass("ui-effects-explode").css({ position: "absolute", overflow: "hidden", width: _, height: v, left: r + (g ? l * _ : 0), top: h + (g ? c * v : 0), opacity: g ? 0 : 1 }).animate({ left: r + (g ? 0 : l * _), top: h + (g ? 0 : c * v), opacity: g ? 1 : 0 }, e.duration || 500, e.easing, s) }), t.effects.define("fade", "toggle", function(e, i) { var s = "show" === e.mode; t(this).css("opacity", s ? 0 : 1).animate({ opacity: s ? 1 : 0 }, { queue: !1, duration: e.duration, easing: e.easing, complete: i }) }), t.effects.define("fold", "hide", function(e, i) { var s = t(this), n = e.mode, o = "show" === n, a = "hide" === n, r = e.size || 15, h = /([0-9]+)%/.exec(r), l = !!e.horizfirst, c = l ? ["right", "bottom"] : ["bottom", "right"], u = e.duration / 2, d = t.effects.createplaceholder(s), p = s.cssclip(), f = { clip: t.extend({}, p) }, g = { clip: t.extend({}, p) }, m = [p[c[0]], p[c[1]]], _ = s.queue().length; h && (r = parseint(h[1], 10) / 100 * m[a ? 0 : 1]), f.clip[c[0]] = r, g.clip[c[0]] = r, g.clip[c[1]] = 0, o && (s.cssclip(g.clip), d && d.css(t.effects.cliptobox(g)), g.clip = p), s.queue(function(i) { d && d.animate(t.effects.cliptobox(f), u, e.easing).animate(t.effects.cliptobox(g), u, e.easing), i() }).animate(f, u, e.easing).animate(g, u, e.easing).queue(i), t.effects.unshift(s, _, 4) }), t.effects.define("highlight", "show", function(e, i) { var s = t(this), n = { backgroundcolor: s.css("backgroundcolor") }; "hide" === e.mode && (n.opacity = 0), t.effects.savestyle(s), s.css({ backgroundimage: "none", backgroundcolor: e.color || "#ffff99" }).animate(n, { queue: !1, duration: e.duration, easing: e.easing, complete: i }) }), t.effects.define("size", function(e, i) { var s, n, o, a = t(this), r = ["fontsize"], h = ["bordertopwidth", "borderbottomwidth", "paddingtop", "paddingbottom"], l = ["borderleftwidth", "borderrightwidth", "paddingleft", "paddingright"], c = e.mode, u = "effect" !== c, d = e.scale || "both", p = e.origin || ["middle", "center"], f = a.css("position"), g = a.position(), m = t.effects.scaleddimensions(a), _ = e.from || m, v = e.to || t.effects.scaleddimensions(a, 0); t.effects.createplaceholder(a), "show" === c && (o = _, _ = v, v = o), n = { from: { y: _.height / m.height, x: _.width / m.width }, to: { y: v.height / m.height, x: v.width / m.width } }, ("box" === d || "both" === d) && (n.from.y !== n.to.y && (_ = t.effects.settransition(a, h, n.from.y, _), v = t.effects.settransition(a, h, n.to.y, v)), n.from.x !== n.to.x && (_ = t.effects.settransition(a, l, n.from.x, _), v = t.effects.settransition(a, l, n.to.x, v))), ("content" === d || "both" === d) && n.from.y !== n.to.y && (_ = t.effects.settransition(a, r, n.from.y, _), v = t.effects.settransition(a, r, n.to.y, v)), p && (s = t.effects.getbaseline(p, m), _.top = (m.outerheight - _.outerheight) * s.y + g.top, _.left = (m.outerwidth - _.outerwidth) * s.x + g.left, v.top = (m.outerheight - v.outerheight) * s.y + g.top, v.left = (m.outerwidth - v.outerwidth) * s.x + g.left), a.css(_), ("content" === d || "both" === d) && (h = h.concat(["margintop", "marginbottom"]).concat(r), l = l.concat(["marginleft", "marginright"]), a.find("*[width]").each(function() { var i = t(this), s = t.effects.scaleddimensions(i), o = { height: s.height * n.from.y, width: s.width * n.from.x, outerheight: s.outerheight * n.from.y, outerwidth: s.outerwidth * n.from.x }, a = { height: s.height * n.to.y, width: s.width * n.to.x, outerheight: s.height * n.to.y, outerwidth: s.width * n.to.x }; n.from.y !== n.to.y && (o = t.effects.settransition(i, h, n.from.y, o), a = t.effects.settransition(i, h, n.to.y, a)), n.from.x !== n.to.x && (o = t.effects.settransition(i, l, n.from.x, o), a = t.effects.settransition(i, l, n.to.x, a)), u && t.effects.savestyle(i), i.css(o), i.animate(a, e.duration, e.easing, function() { u && t.effects.restorestyle(i) }) })), a.animate(v, { queue: !1, duration: e.duration, easing: e.easing, complete: function() { var e = a.offset(); 0 === v.opacity && a.css("opacity", _.opacity), u || (a.css("position", "static" === f ? "relative" : f).offset(e), t.effects.savestyle(a)), i() } }) }), t.effects.define("scale", function(e, i) { var s = t(this), n = e.mode, o = parseint(e.percent, 10) || (0 === parseint(e.percent, 10) ? 0 : "effect" !== n ? 0 : 100), a = t.extend(!0, { from: t.effects.scaleddimensions(s), to: t.effects.scaleddimensions(s, o, e.direction || "both"), origin: e.origin || ["middle", "center"] }, e); e.fade && (a.from.opacity = 1, a.to.opacity = 0), t.effects.effect.size.call(this, a, i) }), t.effects.define("puff", "hide", function(e, i) { var s = t.extend(!0, {}, e, { fade: !0, percent: parseint(e.percent, 10) || 150 }); t.effects.effect.scale.call(this, s, i) }), t.effects.define("pulsate", "show", function(e, i) { var s = t(this), n = e.mode, o = "show" === n, a = "hide" === n, r = o || a, h = 2 * (e.times || 5) + (r ? 1 : 0), l = e.duration / h, c = 0, u = 1, d = s.queue().length; for ((o || !s.is(":visible")) && (s.css("opacity", 0).show(), c = 1); h > u; u++) s.animate({ opacity: c }, l, e.easing), c = 1 - c; s.animate({ opacity: c }, l, e.easing), s.queue(i), t.effects.unshift(s, d, h + 1) }), t.effects.define("shake", function(e, i) { var s = 1, n = t(this), o = e.direction || "left", a = e.distance || 20, r = e.times || 3, h = 2 * r + 1, l = math.round(e.duration / h), c = "up" === o || "down" === o ? "top" : "left", u = "up" === o || "left" === o, d = {}, p = {}, f = {}, g = n.queue().length; for (t.effects.createplaceholder(n), d[c] = (u ? "-=" : "+=") + a, p[c] = (u ? "+=" : "-=") + 2 * a, f[c] = (u ? "-=" : "+=") + 2 * a, n.animate(d, l, e.easing); r > s; s++) n.animate(p, l, e.easing).animate(f, l, e.easing); n.animate(p, l, e.easing).animate(d, l / 2, e.easing).queue(i), t.effects.unshift(n, g, h + 1) }), t.effects.define("slide", "show", function(e, i) { var s, n, o = t(this), a = { up: ["bottom", "top"], down: ["top", "bottom"], left: ["right", "left"], right: ["left", "right"] }, r = e.mode, h = e.direction || "left", l = "up" === h || "down" === h ? "top" : "left", c = "up" === h || "left" === h, u = e.distance || o["top" === l ? "outerheight" : "outerwidth"](!0), d = {}; t.effects.createplaceholder(o), s = o.cssclip(), n = o.position()[l], d[l] = (c ? -1 : 1) * u + n, d.clip = o.cssclip(), d.clip[a[h][1]] = d.clip[a[h][0]], "show" === r && (o.cssclip(d.clip), o.css(l, d[l]), d.clip = s, d[l] = n), o.animate(d, { queue: !1, duration: e.duration, easing: e.easing, complete: i }) }); var f; t.uibackcompat !== !1 && (f = t.effects.define("transfer", function(e, i) { t(this).transfer(e, i) })), t.ui.focusable = function(i, s) { var n, o, a, r, h, l = i.nodename.tolowercase(); return "area" === l ? (n = i.parentnode, o = n.name, i.href && o && "map" === n.nodename.tolowercase() ? (a = t("img[usemap='#" + o + "']"), a.length > 0 && a.is(":visible")) : !1) : (/^(input|select|textarea|button|object)$/.test(l) ? (r = !i.disabled, r && (h = t(i).closest("fieldset")[0], h && (r = !h.disabled))) : r = "a" === l ? i.href || s : s, r && t(i).is(":visible") && e(t(i))) }, t.extend(t.expr[":"], { focusable: function(e) { return t.ui.focusable(e, null != t.attr(e, "tabindex")) } }), t.ui.focusable, t.fn.form = function() { return "string" == typeof this[0].form ? this.closest("form") : t(this[0].form) }, t.ui.formresetmixin = { _formresethandler: function() { var e = t(this); settimeout(function() { var i = e.data("ui-form-reset-instances"); t.each(i, function() { this.refresh() }) }) }, _bindformresethandler: function() { if (this.form = this.element.form(), this.form.length) { var t = this.form.data("ui-form-reset-instances") || []; t.length || this.form.on("reset.ui-form-reset", this._formresethandler), t.push(this), this.form.data("ui-form-reset-instances", t) } }, _unbindformresethandler: function() { if (this.form.length) { var e = this.form.data("ui-form-reset-instances"); e.splice(t.inarray(this, e), 1), e.length ? this.form.data("ui-form-reset-instances", e) : this.form.removedata("ui-form-reset-instances").off("reset.ui-form-reset") } } }, "1.7" === t.fn.jquery.substring(0, 3) && (t.each(["width", "height"], function(e, i) { function s(e, i, s, o) { return t.each(n, function() { i -= parsefloat(t.css(e, "padding" + this)) || 0, s && (i -= parsefloat(t.css(e, "border" + this + "width")) || 0), o && (i -= parsefloat(t.css(e, "margin" + this)) || 0) }), i } var n = "width" === i ? ["left", "right"] : ["top", "bottom"], o = i.tolowercase(), a = { innerwidth: t.fn.innerwidth, innerheight: t.fn.innerheight, outerwidth: t.fn.outerwidth, outerheight: t.fn.outerheight }; t.fn["inner" + i] = function(e) { return void 0 === e ? a["inner" + i].call(this) : this.each(function() { t(this).css(o, s(this, e) + "px") }) }, t.fn["outer" + i] = function(e, n) { return "number" != typeof e ? a["outer" + i].call(this, e) : this.each(function() { t(this).css(o, s(this, e, !0, n) + "px") }) } }), t.fn.addback = function(t) { return this.add(null == t ? this.prevobject : this.prevobject.filter(t)) }), t.ui.keycode = { backspace: 8, comma: 188, delete: 46, down: 40, end: 35, enter: 13, escape: 27, home: 36, left: 37, page_down: 34, page_up: 33, period: 190, right: 39, space: 32, tab: 9, up: 38 }, t.ui.escapeselector = function() { var t = /([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g; return function(e) { return e.replace(t, "\\$1") } }(), t.fn.labels = function() { var e, i, s, n, o; return this[0].labels && this[0].labels.length ? this.pushstack(this[0].labels) : (n = this.eq(0).parents("label"), s = this.attr("id"), s && (e = this.eq(0).parents().last(), o = e.add(e.length ? e.siblings() : this.siblings()), i = "label[for='" + t.ui.escapeselector(s) + "']", n = n.add(o.find(i).addback(i))), this.pushstack(n)) }, t.fn.scrollparent = function(e) { var i = this.css("position"), s = "absolute" === i, n = e ? /(auto|scroll|hidden)/ : /(auto|scroll)/, o = this.parents().filter(function() { var e = t(this); return s && "static" === e.css("position") ? !1 : n.test(e.css("overflow") + e.css("overflow-y") + e.css("overflow-x")) }).eq(0); return "fixed" !== i && o.length ? o : t(this[0].ownerdocument || document) }, t.extend(t.expr[":"], { tabbable: function(e) { var i = t.attr(e, "tabindex"), s = null != i; return (!s || i >= 0) && t.ui.focusable(e, s) } }), t.fn.extend({ uniqueid: function() { var t = 0; return function() { return this.each(function() { this.id || (this.id = "ui-id-" + ++t) }) } }(), removeuniqueid: function() { return this.each(function() { /^ui-id-\d+$/.test(this.id) && t(this).removeattr("id") }) } }), t.widget("ui.accordion", { version: "1.12.1", options: { active: 0, animate: {}, classes: { "ui-accordion-header": "ui-corner-top", "ui-accordion-header-collapsed": "ui-corner-all", "ui-accordion-content": "ui-corner-bottom" }, collapsible: !1, event: "click", header: "> li > :first-child, > :not(li):even", heightstyle: "auto", icons: { activeheader: "ui-icon-triangle-1-s", header: "ui-icon-triangle-1-e" }, activate: null, beforeactivate: null }, hideprops: { bordertopwidth: "hide", borderbottomwidth: "hide", paddingtop: "hide", paddingbottom: "hide", height: "hide" }, showprops: { bordertopwidth: "show", borderbottomwidth: "show", paddingtop: "show", paddingbottom: "show", height: "show" }, _create: function() { var e = this.options; this.prevshow = this.prevhide = t(), this._addclass("ui-accordion", "ui-widget ui-helper-reset"), this.element.attr("role", "tablist"), e.collapsible || e.active !== !1 && null != e.active || (e.active = 0), this._processpanels(), 0 > e.active && (e.active += this.headers.length), this._refresh() }, _getcreateeventdata: function() { return { header: this.active, panel: this.active.length ? this.active.next() : t() } }, _createicons: function() { var e, i, s = this.options.icons; s && (e = t(""), this._addclass(e, "ui-accordion-header-icon", "ui-icon " + s.header), e.prependto(this.headers), i = this.active.children(".ui-accordion-header-icon"), this._removeclass(i, s.header)._addclass(i, null, s.activeheader)._addclass(this.headers, "ui-accordion-icons")) }, _destroyicons: function() { this._removeclass(this.headers, "ui-accordion-icons"), this.headers.children(".ui-accordion-header-icon").remove() }, _destroy: function() { var t; this.element.removeattr("role"), this.headers.removeattr("role aria-expanded aria-selected aria-controls tabindex").removeuniqueid(), this._destroyicons(), t = this.headers.next().css("display", "").removeattr("role aria-hidden aria-labelledby").removeuniqueid(), "content" !== this.options.heightstyle && t.css("height", "") }, _setoption: function(t, e) { return "active" === t ? (this._activate(e), void 0) : ("event" === t && (this.options.event && this._off(this.headers, this.options.event), this._setupevents(e)), this._super(t, e), "collapsible" !== t || e || this.options.active !== !1 || this._activate(0), "icons" === t && (this._destroyicons(), e && this._createicons()), void 0) }, _setoptiondisabled: function(t) { this._super(t), this.element.attr("aria-disabled", t), this._toggleclass(null, "ui-state-disabled", !!t), this._toggleclass(this.headers.add(this.headers.next()), null, "ui-state-disabled", !!t) }, _keydown: function(e) { if (!e.altkey && !e.ctrlkey) { var i = t.ui.keycode, s = this.headers.length, n = this.headers.index(e.target), o = !1; switch (e.keycode) { case i.right: case i.down: o = this.headers[(n + 1) % s]; break; case i.left: case i.up: o = this.headers[(n - 1 + s) % s]; break; case i.space: case i.enter: this._eventhandler(e); break; case i.home: o = this.headers[0]; break; case i.end: o = this.headers[s - 1] } o && (t(e.target).attr("tabindex", -1), t(o).attr("tabindex", 0), t(o).trigger("focus"), e.preventdefault()) } }, _panelkeydown: function(e) { e.keycode === t.ui.keycode.up && e.ctrlkey && t(e.currenttarget).prev().trigger("focus") }, refresh: function() { var e = this.options; this._processpanels(), e.active === !1 && e.collapsible === !0 || !this.headers.length ? (e.active = !1, this.active = t()) : e.active === !1 ? this._activate(0) : this.active.length && !t.contains(this.element[0], this.active[0]) ? this.headers.length === this.headers.find(".ui-state-disabled").length ? (e.active = !1, this.active = t()) : this._activate(math.max(0, e.active - 1)) : e.active = this.headers.index(this.active), this._destroyicons(), this._refresh() }, _processpanels: function() { var t = this.headers, e = this.panels; this.headers = this.element.find(this.options.header), this._addclass(this.headers, "ui-accordion-header ui-accordion-header-collapsed", "ui-state-default"), this.panels = this.headers.next().filter(":not(.ui-accordion-content-active)").hide(), this._addclass(this.panels, "ui-accordion-content", "ui-helper-reset ui-widget-content"), e && (this._off(t.not(this.headers)), this._off(e.not(this.panels))) }, _refresh: function() { var e, i = this.options, s = i.heightstyle, n = this.element.parent(); this.active = this._findactive(i.active), this._addclass(this.active, "ui-accordion-header-active", "ui-state-active")._removeclass(this.active, "ui-accordion-header-collapsed"), this._addclass(this.active.next(), "ui-accordion-content-active"), this.active.next().show(), this.headers.attr("role", "tab").each(function() { var e = t(this), i = e.uniqueid().attr("id"), s = e.next(), n = s.uniqueid().attr("id"); e.attr("aria-controls", n), s.attr("aria-labelledby", i) }).next().attr("role", "tabpanel"), this.headers.not(this.active).attr({ "aria-selected": "false", "aria-expanded": "false", tabindex: -1 }).next().attr({ "aria-hidden": "true" }).hide(), this.active.length ? this.active.attr({ "aria-selected": "true", "aria-expanded": "true", tabindex: 0 }).next().attr({ "aria-hidden": "false" }) : this.headers.eq(0).attr("tabindex", 0), this._createicons(), this._setupevents(i.event), "fill" === s ? (e = n.height(), this.element.siblings(":visible").each(function() { var i = t(this), s = i.css("position"); "absolute" !== s && "fixed" !== s && (e -= i.outerheight(!0)) }), this.headers.each(function() { e -= t(this).outerheight(!0) }), this.headers.next().each(function() { t(this).height(math.max(0, e - t(this).innerheight() + t(this).height())) }).css("overflow", "auto")) : "auto" === s && (e = 0, this.headers.next().each(function() { var i = t(this).is(":visible"); i || t(this).show(), e = math.max(e, t(this).css("height", "").height()), i || t(this).hide() }).height(e)) }, _activate: function(e) { var i = this._findactive(e)[0]; i !== this.active[0] && (i = i || this.active[0], this._eventhandler({ target: i, currenttarget: i, preventdefault: t.noop })) }, _findactive: function(e) { return "number" == typeof e ? this.headers.eq(e) : t() }, _setupevents: function(e) { var i = { keydown: "_keydown" }; e && t.each(e.split(" "), function(t, e) { i[e] = "_eventhandler" }), this._off(this.headers.add(this.headers.next())), this._on(this.headers, i), this._on(this.headers.next(), { keydown: "_panelkeydown" }), this._hoverable(this.headers), this._focusable(this.headers) }, _eventhandler: function(e) { var i, s, n = this.options, o = this.active, a = t(e.currenttarget), r = a[0] === o[0], h = r && n.collapsible, l = h ? t() : a.next(), c = o.next(), u = { oldheader: o, oldpanel: c, newheader: h ? t() : a, newpanel: l }; e.preventdefault(), r && !n.collapsible || this._trigger("beforeactivate", e, u) === !1 || (n.active = h ? !1 : this.headers.index(a), this.active = r ? t() : a, this._toggle(u), this._removeclass(o, "ui-accordion-header-active", "ui-state-active"), n.icons && (i = o.children(".ui-accordion-header-icon"), this._removeclass(i, null, n.icons.activeheader)._addclass(i, null, n.icons.header)), r || (this._removeclass(a, "ui-accordion-header-collapsed")._addclass(a, "ui-accordion-header-active", "ui-state-active"), n.icons && (s = a.children(".ui-accordion-header-icon"), this._removeclass(s, null, n.icons.header)._addclass(s, null, n.icons.activeheader)), this._addclass(a.next(), "ui-accordion-content-active"))) }, _toggle: function(e) { var i = e.newpanel, s = this.prevshow.length ? this.prevshow : e.oldpanel; this.prevshow.add(this.prevhide).stop(!0, !0), this.prevshow = i, this.prevhide = s, this.options.animate ? this._animate(i, s, e) : (s.hide(), i.show(), this._togglecomplete(e)), s.attr({ "aria-hidden": "true" }), s.prev().attr({ "aria-selected": "false", "aria-expanded": "false" }), i.length && s.length ? s.prev().attr({ tabindex: -1, "aria-expanded": "false" }) : i.length && this.headers.filter(function() { return 0 === parseint(t(this).attr("tabindex"), 10) }).attr("tabindex", -1), i.attr("aria-hidden", "false").prev().attr({ "aria-selected": "true", "aria-expanded": "true", tabindex: 0 }) }, _animate: function(t, e, i) { var s, n, o, a = this, r = 0, h = t.css("box-sizing"), l = t.length && (!e.length || t.index() < e.index()), c = this.options.animate || {}, u = l && c.down || c, d = function() { a._togglecomplete(i) }; return "number" == typeof u && (o = u), "string" == typeof u && (n = u), n = n || u.easing || c.easing, o = o || u.duration || c.duration, e.length ? t.length ? (s = t.show().outerheight(), e.animate(this.hideprops, { duration: o, easing: n, step: function(t, e) { e.now = math.round(t) } }), t.hide().animate(this.showprops, { duration: o, easing: n, complete: d, step: function(t, i) { i.now = math.round(t), "height" !== i.prop ? "content-box" === h && (r += i.now) : "content" !== a.options.heightstyle && (i.now = math.round(s - e.outerheight() - r), r = 0) } }), void 0) : e.animate(this.hideprops, o, n, d) : t.animate(this.showprops, o, n, d) }, _togglecomplete: function(t) { var e = t.oldpanel, i = e.prev(); this._removeclass(e, "ui-accordion-content-active"), this._removeclass(i, "ui-accordion-header-active")._addclass(i, "ui-accordion-header-collapsed"), e.length && (e.parent()[0].classname = e.parent()[0].classname), this._trigger("activate", null, t) } }), t.ui.safeactiveelement = function(t) { var e; try { e = t.activeelement } catch (i) { e = t.body } return e || (e = t.body), e.nodename || (e = t.body), e }, t.widget("ui.menu", { version: "1.12.1", defaultelement: "