| Server IP : 51.254.39.36 / Your IP : 216.73.217.109 Web Server : Microsoft-IIS/10.0 System : Windows NT WIN-12GDIEC772I 10.0 build 20348 (Windows Server 2022) AMD64 User : IWPD_21(allbatf787) ( 0) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Inetpub/vhosts/allbat-sb.fr/httpdocs/wp-content/plugins/kadence-slider/js/min/ |
Upload File : |
function defineSequence(e,t){"use strict";var i=[],n=0,a=function(a,r){function o(e){return"[object Array]"===Object.prototype.toString.call(e)}function s(e,t){for(var i in t)e[i]=t[i];return e}function d(e,t){var i;return e.currentStyle?i=e.currentStyle[t]:document.defaultView&&document.defaultView.getComputedStyle&&(i=document.defaultView.getComputedStyle(e,"")[t]),i}function u(e,t,i){if(e.addEventListener)return e.addEventListener(t,i,!1),i;if(e.attachEvent){var n=function(){i.call(e)};return e.attachEvent("on"+t,n),n}}function l(e,t,i){e.addEventListener?e.removeEventListener(t,i,!1):e.detachEvent&&e.detachEvent("on"+t,i)}function c(e){var t,i;return i=e.indexOf("ms")>-1?1:1e3,t="0s"==e?0:parseFloat(e.replace("s",""))*i}function p(e,t){return void 0!==e?new RegExp("(\\s|^)"+t+"(\\s|$)").test(e.className):void 0}function h(e,t){var i,n,a;for(!1===o(e)&&(n=1,e=[e]),n=e.length,a=0;n>a;a++)!1===p(i=e[a],t)&&(i.className+=(i.className?" ":"")+t)}function f(e,t){var i,n,a;for(!1===o(e)?(n=1,e=[e]):n=e.length,a=0;n>a;a++)!0===p(i=e[a],t)&&(i.className=i.className.replace(new RegExp("(\\s|^)"+t+"(\\s|$)")," ").replace(/^\s+|\s+$/g,""))}function v(e,t){var i=e.getBoundingClientRect(),n=!1;return t.clientX>=i.left&&t.clientX<=i.right&&t.clientY>=i.top&&t.clientY<=i.bottom&&(n=!0),n}function m(e,t,i){if("BODY"===t.nodeName)return!1;if(e!==t)return i=t,m(e,t.parentNode,i);if(void 0!==i)for(var n=i,a=e.getElementsByTagName(n.nodeName),r=a.length;r--;)if(n===a[r])return r+1}function g(e){var i=0,n=t.DIRECTION_NONE;return(void 0!==e.left||void 0!==e.right)&&(i+=1),(void 0!==e.up||void 0!==e.down)&&(i+=2),1===i?n=t.DIRECTION_HORIZONTAL:2===i?n=t.DIRECTION_VERTICAL:3===i&&(n=t.DIRECTION_ALL),n}function y(e,t){var i="seq-",n="no-touch";!0===t.touch&&(n="touch"),h(e,i+n)}var k=a.getAttribute("data-seq-enabled");if(null!==k)return i[k];a.setAttribute("data-seq-enabled",n),n++;var b={startingStepId:1,startingStepAnimatesIn:!1,cycle:!0,phaseThreshold:!0,reverseWhenNavigatingBackwards:!1,reverseTimingFunctionWhenNavigatingBackwards:!1,moveActiveStepToTop:!0,animateCanvas:!0,animateCanvasDuration:250,autoPlay:!1,autoPlayInterval:5e3,autoPlayDelay:null,autoPlayDirection:1,autoPlayButton:!0,autoPlayPauseOnHover:!0,navigationSkip:!0,navigationSkipThreshold:250,fadeStepWhenSkipped:!0,fadeStepTime:500,ignorePhaseThresholdWhenSkipped:!1,preventReverseSkipping:!1,nextButton:!0,prevButton:!0,pagination:!0,preloader:!1,preloadTheseSteps:[1],preloadTheseImages:[],hideStepsUntilPreloaded:!1,pausePreloader:!1,keyNavigation:!1,numericKeysGoToSteps:!1,keyEvents:{left:function(e){e.prev()},right:function(e){e.next()}},swipeNavigation:!0,swipeEvents:{left:function(e){e.next()},right:function(e){e.prev()},up:void 0,down:void 0},swipeHammerOptions:{},hashTags:!1,hashDataAttribute:!1,hashChangesOnFirstStep:!1,fallback:{speed:500}},T=50,w=100,S={WebkitAnimation:"-webkit-",animation:""},P=function(e,t,i){function n(e){g.cssText=e}function a(e,t){return typeof e===t}function r(e,t){return!!~(""+e).indexOf(t)}function o(e,t){for(var n in e){var a=e[n];if(!r(a,"-")&&g[a]!==i)return"pfx"!=t||a}return!1}function s(e,t,n){for(var r in e){var o=t[e[r]];if(o!==i)return!1===n?e[r]:a(o,"function")?o.bind(n||t):o}return!1}function d(e,t,i){var n=e.charAt(0).toUpperCase()+e.slice(1),r=(e+" "+b.join(n+" ")+n).split(" ");return a(t,"string")||a(t,"undefined")?o(r,t):s(r=(e+" "+T.join(n+" ")+n).split(" "),t,i)}var u,l,c,p="2.8.3",h={},f=t.documentElement,v="modernizr",m=t.createElement(v),g=m.style,y=({}.toString," -webkit- -moz- -o- -ms- ".split(" ")),k="Webkit Moz O ms",b=k.split(" "),T=k.toLowerCase().split(" "),w="http://www.w3.org/2000/svg",S={},P=[],E=P.slice,x=function(e,i,n,a){var r,o,s,d,u=t.createElement("div"),l=t.body,c=l||t.createElement("body");if(parseInt(n,10))for(;n--;)(s=t.createElement("div")).id=a?a[n]:v+(n+1),u.appendChild(s);return r=["­",'<style id="s',v,'">',e,"</style>"].join(""),u.id=v,(l?u:c).innerHTML+=r,c.appendChild(u),l||(c.style.background="",c.style.overflow="hidden",d=f.style.overflow,f.style.overflow="hidden",f.appendChild(c)),o=i(u,e),l?u.parentNode.removeChild(u):(c.parentNode.removeChild(c),f.style.overflow=d),!!o},I={}.hasOwnProperty;for(var A in c=a(I,"undefined")||a(I.call,"undefined")?function(e,t){return t in e&&a(e.constructor.prototype[t],"undefined")}:function(e,t){return I.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError;var i=E.call(arguments,1),n=function(){if(this instanceof n){var a=function(){};a.prototype=t.prototype;var r=new a,o=t.apply(r,i.concat(E.call(arguments)));return Object(o)===o?o:r}return t.apply(e,i.concat(E.call(arguments)))};return n}),S.touch=function(){var i;return"ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch?i=!0:x(["@media (",y.join("touch-enabled),("),v,")","{#modernizr{top:9px;position:absolute}}"].join(""),(function(e){i=9===e.offsetTop})),i},S.cssanimations=function(){return d("animationName")},S.csstransforms=function(){return!!d("transform")},S.csstransitions=function(){return d("transition")},S.svg=function(){return!!t.createElementNS&&!!t.createElementNS(w,"svg").createSVGRect},S)c(S,A)&&(l=A.toLowerCase(),h[l]=S[A](),P.push((h[l]?"":"no-")+l));return h.addTest=function(e,t){if("object"==typeof e)for(var n in e)c(e,n)&&h.addTest(n,e[n]);else{if(e=e.toLowerCase(),h[e]!==i)return h;t="function"==typeof t?t():t,"undefined"!=typeof enableClasses&&enableClasses&&(f.className+=" "+(t?"":"no-")+e),h[e]=t}return h},n(""),m=u=null,h._version=p,h._prefixes=y,h._domPrefixes=T,h._cssomPrefixes=b,h.testProp=function(e){return o([e])},h.testAllProps=d,h.testStyles=x,h.prefixed=function(e,t,i){return t?d(e,t,i):d(e,"pfx")},h}(window,window.document),E,x;Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var i=this.length>>>0;for(t=+t||0,Math.abs(t)===1/0&&(t=0),0>t&&(0>(t+=i)&&(t=0));i>t;t++)if(this[t]===e)return t;return-1}),void 0!==document.hidden?(E="hidden",x="visibilitychange"):void 0!==document.mozHidden?(E="mozHidden",x="mozvisibilitychange"):void 0!==document.msHidden?(E="msHidden",x="msvisibilitychange"):void 0!==document.webkitHidden&&(E="webkitHidden",x="webkitvisibilitychange");var I={modernizr:P};return I.ui={defaultElements:{nextButton:"seq-next",prevButton:"seq-prev",autoPlayButton:"seq-autoplay",pagination:"seq-pagination",preloader:"seq-preloader"},getElements:function(e,t){var i,n,a,r,o,s=[];for(a=(n=!0===t?document.querySelectorAll("."+this.defaultElements[e]):document.querySelectorAll(t)).length,o=0;a>o;o++)(null===(r=(i=n[o]).getAttribute("rel"))||r===I.$container.getAttribute("id"))&&s.push(i);return s},show:function(e,t){!0===I.propertySupport.transitions?(e.style[P.prefixed("transitionDuration")]=t+"ms",e.style[P.prefixed("transitionProperty")]="opacity, "+P.prefixed("transform"),e.style.opacity=1):I.animationFallback.animate(e,"opacity","",0,1,t)},hide:function(e,t,i){!0===I.propertySupport.transitions?(e.style[P.prefixed("transitionDuration")]=t+"ms",e.style[P.prefixed("transitionProperty")]="opacity, "+P.prefixed("transform"),e.style.opacity=0):I.animationFallback.animate(e,"opacity","",1,0,t),void 0!==i&&(I.hideTimer=setTimeout((function(){i()}),t))}},I.autoPlay={init:function(){I.isAutoPlayPaused=!1,I.isAutoPlaying=!1},getDelay:function(e,t,i){switch(e){case!0:e=null===t?i:t;break;case!1:case void 0:e=0}return e},start:function(e,t){if(!0===I.isAutoPlaying||!1===I.isReady)return!1;var i=I.options;return e=this.getDelay(e,i.autoPlayDelay,i.autoPlayInterval),void 0===t&&I.started(I),h(I.$container,"seq-autoplaying"),h(I.$autoPlay,"seq-autoplaying"),i.autoPlay=!0,I.isAutoPlaying=!0,!1===I.isAnimating&&(I.autoPlayTimer=setTimeout((function(){1===i.autoPlayDirection?I.next():I.prev()}),e)),!0},stop:function(){return!0===I.options.autoPlay&&!0===I.isAutoPlaying&&(I.options.autoPlay=!1,I.isAutoPlaying=!1,clearTimeout(I.autoPlayTimer),f(I.$container,"seq-autoplaying"),f(I.$autoPlay,"seq-autoplaying"),I.stopped(I),!0)},unpause:function(){return!0===I.isAutoPlayPaused&&(I.isAutoPlayPaused=!1,this.start(!0),!0)},pause:function(){return!0===I.options.autoPlay&&(I.isAutoPlayPaused=!0,this.stop(),!0)}},I.canvas={init:function(e){void 0!==I.$screen&&(I.$screen.style.height="100%",I.$screen.style.width="100%"),I.canvas.getTransformProperties()},getSteps:function(e){var t,i,n,a=[],r=e.children,o=r.length;for(I.stepProperties={},n=0;o>n;n++)i=r[n],t=n+1,a.push(i),I.stepProperties[t]={},I.stepProperties[t].isActive=!1;return a},getTransformProperties:function(){var e,t,i,n;for(e=0;e<I.noOfSteps;e++)t=I.$steps[e],i=e+1,(n={seqX:0,seqY:0,seqZ:0}).seqX+=-1*t.offsetLeft,n.seqY+=-1*t.offsetTop,I.stepProperties[i].canvasTransform=n},move:function(e,t){if(!0===I.options.animateCanvas){var i,n=0;return!0===t&&!1===I.firstRun&&(n=I.options.animateCanvasDuration),!1===I.isFallbackMode&&(i=I.stepProperties[e].canvasTransform,I.$canvas.style[P.prefixed("transitionDuration")]=n+"ms",I.$canvas.style[P.prefixed("transform")]="translateX("+i.seqX+"px) translateY("+i.seqY+"px) translateZ("+i.seqZ+"px) "),!0}return!1},removeNoJsClass:function(){if(!0!==I.isFallbackMode)for(var e=0;e<I.$steps.length;e++){var t=I.$steps[e];if(!0===p(t,"seq-in")){var i=e+1;I.animation.resetInheritedSpeed(i),f(t,"seq-in")}}}},I.animation={getPhaseProperties:function(e){var t,i,n,a,r=I.$steps[e-1],o=r.querySelectorAll("*[data-seq]"),s=r.querySelectorAll("*"),u=s.length,l=[],p=[],h=[],f=[],v=[],m=[];for(i=0;u>i;i++)n=c(d(t=s[i],P.prefixed("transitionDuration"))),a=c(d(t,P.prefixed("transitionDelay"))),f.push(n),v.push(a),m.push(n+a),null!==t.getAttribute("data-seq")&&(l.push(n),p.push(a),h.push(n+a));var g=Math.max.apply(Math,f),y=Math.max.apply(Math,v),k=Math.max.apply(Math,m),b,T,w;return{stepId:e,stepElement:r,children:s,animatedChildren:o,watchedTimings:{maxDuration:Math.max.apply(Math,l),maxDelay:Math.max.apply(Math,p),maxTotal:Math.max.apply(Math,h)},timings:{maxDuration:g,maxDelay:y,maxTotal:k}}},getPhaseThreshold:function(e,t,i,n){var a=0;return!0===i&&!0===I.options.ignorePhaseThresholdWhenSkipped&&(e=!0),void 0===e&&(!0===t?a=n:!1!==t&&(a=t)),a},getReversePhaseDelay:function(e,t,i,n,a){var r=0,o=0,s=0;return!0===i||!1!==n&&!1!==a||((r=e-t)>0?s=r:0>r&&(o=Math.abs(r))),{next:s,current:o}},moveActiveStepToTop:function(e,t){if(!0===I.options.moveActiveStepToTop){var i=I.$steps[I.prevStepId-1],n=I.noOfSteps-1;i.style.zIndex=1,e.style.zIndex=n,t.style.zIndex=I.noOfSteps}return null},manageNavigationSkip:function(e,t){var i,n,a,r,o;if(!0!==I.isFallbackMode&&(I.ui.show(t,0),!0===I.options.navigationSkip)){if(I.navigationSkipThresholdActive=!0,0!==I.phasesAnimating&&(clearTimeout(I.phaseThresholdTimer),clearTimeout(I.nextPhaseStartedTimer),!0===I.options.fadeStepWhenSkipped))for(i=1;i<=I.noOfSteps;i++)!0===(n=I.stepProperties[i]).isActive&&i!==e&&(a=I.$steps[i-1],r=i,(o={}).id=r,o.element=a,I.phasesSkipped.push(o),I.animation.stepSkipped(a));I.navigationSkipThresholdTimer=setTimeout((function(){I.navigationSkipThresholdActive=!1}),I.options.navigationSkipThreshold)}},stepSkipped:function(e){I.ui.hide(e,I.options.fadeStepTime,(function(){}))},changeStep:function(e){var t="seq-step"+e;if(void 0!==I.currentStepId){var i="seq-step"+I.currentStepId;h(I.$container,t),f(I.$container,i)}else h(I.$container,t)},reverseProperties:function(e,t,i,n,a){var r,o,s,u,l,p,h,f=this,v=e.children,m=v.length,g=e.timings,y="",k="",b=[],T=[];for(o=0;m>o;o++)l=(s=c(d(r=v[o],P.prefixed("transitionDuration"))))+(u=c(d(r,P.prefixed("transitionDelay")))),u=g.maxTotal-l,!0!==n&&(u+=t),l=s+u,b.push(l),null!==r.getAttribute("data-seq")&&T.push(l),!0===a.reverseTimingFunctionWhenNavigatingBackwards&&(y=d(r,P.prefixed("transitionTimingFunction")),k=f.reverseTimingFunction(y)),r.style[P.prefixed("transition")]=s+"ms "+u+"ms "+k;return p=Math.max.apply(Math,b),h=Math.max.apply(Math,T),setTimeout((function(){f.domDelay((function(){for(o=0;m>o;o++)(r=v[o]).style[P.prefixed("transition")]=""}))}),p+i),h},forward:function(e,t,i,n,a){var r,o,s,d=this;!1===I.firstRun&&d.currentPhaseStarted(I.currentStepId),f(i,"seq-out"),d.domDelay((function(){r=d.startAnimateOut(I.currentStepId,t,1),o=r.watchedTimings.maxTotal,s=d.getPhaseThreshold(n,I.options.phaseThreshold,I.isAnimating,o),I.isAnimating=!0,d.startAnimateIn(e,o,i,s,a)}))},reverse:function(e,t,i,n,a){var r,o,s,d,u,l=this,c=0;h(i,"seq-out"),l.domDelay((function(){o=l.getPhaseProperties(I.currentStepId,"current"),s=l.getPhaseProperties(e,"next"),c=l.getPhaseThreshold(n,I.options.phaseThreshold,I.isAnimating,o.timings.maxTotal),r=l.getReversePhaseDelay(o.timings.maxTotal,s.timings.maxTotal,I.options.phaseThreshold,I.options.ignorePhaseThresholdWhenSkipped,I.isAnimating),d=l.reverseProperties(o,r.current,0,n,I.options),u=l.reverseProperties(s,r.next,c,n,I.options),l.startAnimateOut(I.currentStepId,t,-1,d),I.isAnimating=!0,!1===I.firstRun&&l.currentPhaseStarted(I.currentStepId),l.startAnimateIn(e,d,i,c,a,u)}))},startAnimateIn:function(e,t,i,n,a,r){var o,s,d=this;I.prevStepId=I.currentStepId,I.currentStepId=e,!0===I.firstRun&&I.pagination.update(),!1===I.firstRun||!0===I.options.startingStepAnimatesIn?(I.stepProperties[e].isActive=!0,I.nextPhaseStartedTimer=setTimeout((function(){d.nextPhaseStarted(e,a)}),n),I.phaseThresholdTimer=setTimeout((function(){h(i,"seq-in"),f(i,"seq-out"),void 0===r&&(o=I.animation.getPhaseProperties(e,"next"),r=o.watchedTimings.maxTotal),d.phaseEnded(e,"next",r,d.nextPhaseEnded),s=d.getStepDuration(t,r,I.options.phaseThreshold),I.stepEndedTimer=setTimeout((function(){I.animation.stepEnded(e)}),s)}),n)):(d.resetInheritedSpeed(e),I.phasesAnimating=0,I.isAnimating=!1,!0===I.options.autoPlay&&I.autoPlay.start(!0),h(i,"seq-in"),f(i,"seq-out")),I.firstRun=!1},startAnimateOut:function(e,t,i,n){var a,r=this;return 1===i?(f(t,"seq-in"),h(t,"seq-out"),n=(a=r.getPhaseProperties(e,"current")).watchedTimings.maxTotal):f(t,"seq-in"),!1===I.firstRun&&(I.stepProperties[e].isActive=!0,r.phaseEnded(e,"current",n,r.currentPhaseEnded)),a},getStepDuration:function(e,t,i){var n;switch(i){case!0:n=t;break;case!1:n=e>=t?e:t;break;default:n=e>=t+i?e-i:t}return n},currentPhaseStarted:function(e){I.phasesAnimating++,I.currentPhaseStarted(e,I)},currentPhaseEnded:function(e){I.currentPhaseEnded(e,I)},nextPhaseStarted:function(e,t){I.phasesAnimating++,void 0===t&&I.hashTags.update(),I.pagination.update(),I.nextPhaseStarted(e,I)},nextPhaseEnded:function(e){I.nextPhaseEnded(e,I)},phaseEnded:function(e,t,i,n){var a;a=function(e){I.stepProperties[e].isActive=!1,I.phasesAnimating--,n(e)},"current"===t?I.currentPhaseEndedTimer=setTimeout((function(){a(e)}),i):I.nextPhaseEndedTimer=setTimeout((function(){a(e)}),i)},stepEnded:function(e){I.isAnimating=!1,I.isAutoPlaying=!1,!0===I.options.autoPlay&&I.autoPlay.start(!0,!0),I.animationEnded(e,I)},reversePhase:function(e){var t;return{"seq-out":"seq-in","seq-in":"seq-out"}[e]},domDelay:function(e){setTimeout((function(){e()}),T)},reverseTimingFunction:function(e){if(""===e||void 0===e)return e;var t,i,n,a,r={linear:"cubic-bezier(0.0,0.0,1.0,1.0)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1.0)","ease-in":"cubic-bezier(0.42, 0.0, 1.0, 1.0)","ease-in-out":"cubic-bezier(0.42, 0.0, 0.58, 1.0)","ease-out":"cubic-bezier(0.0, 0.0, 0.58, 1.0)"};for(e.indexOf("cubic-bezier")<0&&(e=r[e=e.split(",")[0]]),i=(t=e.replace("cubic-bezier(","").replace(")","").split(",")).length,a=0;i>a;a++)t[a]=parseFloat(t[a]);return e="cubic-bezier("+(n=[1-t[2],1-t[3],1-t[0],1-t[1]])+")"},resetInheritedSpeed:function(e){if(!0!==I.isFallbackMode){var t,i,n=I.$steps[e-1].querySelectorAll("*"),a=n.length;for(i=0;a>i;i++)(t=n[i]).style[P.prefixed("transition")]="0ms 0ms";I.animation.domDelay((function(){for(i=0;a>i;i++)(t=n[i]).style[P.prefixed("transition")]=""}))}},getDirection:function(e,t,i,n,a,r,o){var s=1;return s=void 0!==t?t:!0===r||!0===a?!0===o&&1===e&&i===n?1:i>e?-1:1:1},requiresFallbackMode:function(e){var t,i=!1;return!1===e.transitions&&(i=!0),i},getPropertySupport:function(e){var t=!1,i=!1;return!0===P.csstransitions&&(t=!0),!0===P.cssanimations&&(i=!0),{transitions:t,animations:i}}},I.animationFallback={animate:function(e,t,i,n,a,r,o){if(!1!==e){var s=(new Date).getTime(),d=setInterval((function(){var u=Math.min(1,((new Date).getTime()-s)/r);e.style[t]=n+u*(a-n)+i,1===u&&(void 0!==o&&o(),clearInterval(d))}),25);e.style[t]=n+i}},setupCanvas:function(e){var t,i,n;if(!0===I.isFallbackMode)for(h(I.$container,"seq-fallback"),void 0!==I.$screen&&(I.$screen.style.overflow="hidden",I.$screen.style.width="100%",I.$screen.style.height="100%"),I.$canvas.style.width="100%",I.$canvas.style.height="100%",this.canvasWidth=I.$canvas.offsetWidth,t=0;t<I.noOfSteps;t++)n=t+1,h(i=I.$steps[t],"seq-in"),i.style.width="100%",i.style.height="100%",i.style.position="absolute",i.style.whiteSpace="normal",i.style.left="100%"},moveCanvas:function(e,t,i,n){if(!0===n){var a=0,r=-100,o=100,s=0;-1===i&&(r=100,o=-100),this.animate(t,"left","%",0,r,I.options.fallback.speed),this.animate(e,"left","%",o,0,I.options.fallback.speed)}else t.style.left="-100%",e.style.left="0"},goTo:function(e,t,i,n,a,r,o){I.prevStepId=I.currentStepId,I.currentStepId=e,void 0===o&&I.hashTags.update(),I.pagination.update(),!1===I.firstRun?(this.moveCanvas(a,i,r,!0),I.isAnimating=!0,I.animationStarted(I.currentStepId,I),I.stepEndedTimer=setTimeout((function(){I.animation.stepEnded(I.currentStepId)}),I.options.fallback.speed)):(this.moveCanvas(a,i,r,!1),I.firstRun=!1,!0===I.options.autoPlay&&I.autoPlay.start(!0))}},I.pagination={getLinks:function(e,t){var i,n,a=e.childNodes,r=a.length,o=[];for(n=0;r>n;n++)1===(i=a[n]).nodeType&&o.push(i);return o},update:function(){if(void 0!==I.$pagination.elements){var e,t,i,n,a=I.currentStepId-1,r=I.$pagination.elements.length;if(void 0!==I.$pagination.currentLinks)for(n=I.$pagination.currentLinks.length,e=0;n>e;e++)f(i=I.$pagination.currentLinks[e],"seq-current");for(I.$pagination.currentLinks=[],t=0;r>t;t++)i=I.$pagination.links[t][a],I.$pagination.currentLinks.push(i),h(i,"seq-current")}return I.$pagination.currentLinks}},I.hashTags={init:function(e){var t,i;!0===I.options.hashTags&&(I.hasPushstate=!(!window.history||!history.pushState),i=location.hash.replace("#!",""),I.stepHashTags=this.getStepHashTags(),""!==i&&(I.currentHashTag=i,(t=this.hasCorrespondingStep(I.currentHashTag))>-1&&(e=t+1)));return e},hasCorrespondingStep:function(e){var t=-1,i=I.stepHashTags.indexOf(e);return i>-1&&(t=i),t},getStepHashTags:function(){var e,t,i=[];for(e=0;e<I.noOfSteps;e++)t=!1===I.options.hashDataAttribute?I.$steps[e].id:I.$steps[e].getAttribute("data-seq-hashtag"),i.push(t);return i},update:function(){if(!0===I.options.hashTags&&!1===I.firstRun||!0===I.options.hashTags&&!0===I.firstRun&&!0===I.options.hashChangesOnFirstStep){var e=I.currentStepId-1;I.currentHashTag=I.stepHashTags[e],""!==I.currentHashtag&&(!0===I.hasPushstate?history.pushState(null,null,"#!"+I.currentHashTag):location.hash="#!"+I.currentHashTag)}},setupEvent:function(){if("onhashchange"in window){if(window.addEventListener)return window.addHashChange=function(e,t){window.addEventListener("hashchange",e,t)},void(window.removeHashChange=function(e){window.removeEventListener("hashchange",e)});if(window.attachEvent)return window.addHashChange=function(e){window.attachEvent("onhashchange",e)},void(window.removeHashChange=function(e){window.detachEvent("onhashchange",e)})}var e=[],t=location.href;window.addHashChange=function(t,i){"function"==typeof t&&e[i?"unshift":"push"](t)},window.removeHashChange=function(t){for(var i=e.length-1;i>=0;i--)e[i]===t&&e.splice(i,1)},setInterval((function(){var i=location.href;if(t!==i){var n=t;t=i;for(var a=0;a<e.length;a++)e[a].call(window,{type:"hashchange",newURL:i,oldURL:n})}}),100)}},I.preload={defaultHtml:'<svg width="39" height="16" viewBox="0 0 39 16" xmlns="http://www.w3.org/2000/svg" class="seq-preload-indicator"><title>Sequence.js Preloading Indicator</title><desc>Three orange dots increasing in size from left to right</desc><g fill="#F96D38"><path class="seq-preload-circle seq-preload-circle-1" d="M3.999 12.012c2.209 0 3.999-1.791 3.999-3.999s-1.79-3.999-3.999-3.999-3.999 1.791-3.999 3.999 1.79 3.999 3.999 3.999z"/><path class="seq-preload-circle seq-preload-circle-2" d="M15.996 13.468c3.018 0 5.465-2.447 5.465-5.466 0-3.018-2.447-5.465-5.465-5.465-3.019 0-5.466 2.447-5.466 5.465 0 3.019 2.447 5.466 5.466 5.466z"/><path class="seq-preload-circle seq-preload-circle-3" d="M31.322 15.334c4.049 0 7.332-3.282 7.332-7.332 0-4.049-3.282-7.332-7.332-7.332s-7.332 3.283-7.332 7.332c0 4.05 3.283 7.332 7.332 7.332z"/></g></svg>',fallbackHtml:'<div class="seq-preload-indicator seq-preload-indicator-fallback"><div class="seq-preload-circle seq-preload-circle-1"></div><div class="seq-preload-circle seq-preload-circle-2"></div><div class="seq-preload-circle seq-preload-circle-3"></div></div>',defaultStyles:"@"+S[P.prefixed("animation")]+"keyframes seq-preloader {50% {opacity: 1;}100% {opacity: 0;}}.seq-preloader {background: white;visibility: visible;opacity: 1;position: absolute;z-index: 9999;height: 100%;width: 100%;top: 0;left: 0;right: 0;bottom: 0;} .seq-preloader.seq-preloaded {opacity: 0;visibility: hidden;"+P.prefixed("transition")+": visibility 0s .5s, opacity .5s;}.seq-preload-indicator {overflow: visible;position: relative;top: 50%;left: 50%;-webkit-transform: translate(-50%, -50%);transform: translate(-50%, -50%);}.seq-preload-circle {display: inline-block;height: 12px;width: 12px;fill: #F96D38;opacity: 0;"+S[P.prefixed("animation")]+"animation: seq-preloader 1.25s infinite;}.seq-preload-circle-2 {"+S[P.prefixed("animation")]+"animation-delay: .15s;}.seq-preload-circle-3 {"+S[P.prefixed("animation")]+"animation-delay: .3s;}.seq-preload-indicator-fallback{width: 42px;margin-left: -21px;overflow: visible;}.seq-preload-indicator-fallback .seq-preload-circle {width: 8px; height:8px;background-color: #F96D38;border-radius: 100%; opacity: 1;display: inline-block; vertical-align: middle;}.seq-preload-indicator-fallback .seq-preload-circle-2{margin-left: 3px; margin-right: 3px; width: 12px; height: 12px;}.seq-preload-indicator-fallback .seq-preload-circle-3{width: 16px; height: 16px;}",init:function(t){if(!1!==I.options.preloader){var i,n,a,r,o,s,d=this;return h(I.$container,"seq-preloading"),I.$preloader=I.ui.getElements("preloader",I.options.preloader),d.append(),d.addStyles(),d.toggleStepsVisibility("hide"),i=d.getImagesToPreload(I.options.preloadTheseSteps),n=d.getImagesToPreload(I.options.preloadTheseImages,!0),a=i.concat(n),(r=e(a)).on("always",(function(e){d.complete(t)})),o=1,r.on("progress",(function(e,t){s=t.isLoaded?"loaded":"broken",I.preloadProgress(s,t.img.src,o++,a.length,I)})),!0}return!1},complete:function(e){I.preloaded(I),!0!==I.options.pausePreloader&&(this.toggleStepsVisibility("show"),f(I.$container,"seq-preloading"),h(I.$container,"seq-preloaded"),h(I.$preloader[0],"seq-preloaded"),void 0!==this.preloadIndicatorTimer&&clearInterval(this.preloadIndicatorTimer),(!1===P.prefixed("animation")||!1===P.svg)&&(I.$preloader[0].style.display="none"),void 0!==e&&e())},addStyles:function(){if(!0===I.options.preloader){var e=document.head||document.getElementsByTagName("head")[0];if(this.styleElement=document.createElement("style"),this.styleElement.type="text/css",this.styleElement.styleSheet?this.styleElement.styleSheet.cssText=this.defaultStyles:this.styleElement.appendChild(document.createTextNode(this.defaultStyles)),e.appendChild(this.styleElement),!1===P.prefixed("animation")||!1===P.svg){var t=I.$preloader[0].firstChild,i=function(){t.style.visibility="hidden",preloadFlashTime=1e3,setTimeout((function(){t.style.visibility="visible"}),500)};i(),this.preloadIndicatorTimer=setInterval((function(){i()}),1e3)}return!0}return!1},removeStyles:function(){this.styleElement.parentNode.removeChild(this.styleElement)},getImagesToPreload:function(e,t){var i=[];if(!0===o(e)){var n,a,r,s,d,u,l,c,p=e.length;if(!0!==t)for(n=0;p>n;n++)for(d=(s=(r=I.$steps[n]).getElementsByTagName("img")).length,a=0;d>a;a++)u=s[a],i.push(u);else for(l=[],n=0;p>n;n++)c=e[n],l[n]=new Image,l[n].src=c,i.push(l[n])}return i},append:function(){return!0===I.options.preloader&&(I.$preloader=document.createElement("div"),I.$preloader.className="seq-preloader",I.$preloader=[I.$preloader],!1!==P.prefixed("animation")&&!0===P.svg?I.$preloader[0].innerHTML=I.preload.defaultHtml:I.$preloader[0].innerHTML=I.preload.fallbackHtml,I.$container.insertBefore(I.$preloader[0],null),!0)},toggleStepsVisibility:function(e){if(!0===I.options.hideStepsUntilPreloaded){var t,i;for(t=0;t<I.noOfSteps;t++)i=I.$steps[t],"hide"===e?I.ui.hide(i,0):I.ui.show(i,0);return!0}return!1}},I.manageEvents={list:{load:[],click:[],touchstart:[],mousemove:[],mouseleave:[],hammer:[],keyup:[],hashchange:[],resize:[]},init:function(){return I.manageEvents.list[x]=[],!0===I.options.hashTags&&this.add.hashChange(),!0===I.options.swipeNavigation?this.add.swipeNavigation():I.hammerTime=!1,!0===I.options.keyNavigation&&this.add.keyNavigation(),this.add.resizeThrottle(),this.add.pageVisibility(),!1!==I.options.nextButton&&(I.$next=I.ui.getElements("nextButton",I.options.nextButton),this.add.button(I.$next,"nav",I.next)),!1!==I.options.prevButton&&(I.$prev=I.ui.getElements("prevButton",I.options.prevButton),this.add.button(I.$prev,"nav",I.prev)),!1!==I.options.autoPlayButton&&(I.$autoPlay=I.ui.getElements("autoPlayButton",I.options.autoPlayButton),this.add.button(I.$autoPlay,"nav",I.toggleAutoPlay)),this.add.stopOnHover(),!1!==I.options.pagination&&(I.$pagination={},I.$pagination.relatedElementId=n,I.$pagination.links=[],I.$pagination.elements=I.ui.getElements("pagination",I.options.pagination),this.add.button(I.$pagination.elements,"pagination")),null},removeAll:function(e){var t,i;for(t in e)!0===e.hasOwnProperty(t)&&(i=e[t],this.remove(t));return null},remove:function(e){var t=I.manageEvents.list[e],i=t.length;switch(e){case"hashchange":!0===I.options.hashTags&&removeHashChange(t[0].handler);break;case"hammer":if(I.manageEvents.list.hammer.length>0&&void 0!==document.querySelectorAll){var n=I.manageEvents.list.hammer[0].handler;I.hammerTime.off("swipe",[n])}break;default:for(var a=0;i>a;a++){var r=t[a];l(r.element,e,r.handler)}}},add:{hashChange:function(){I.hashTags.setupEvent();var e=function(e){var t,i;t=(t=e.newURL||location.href).split("#!")[1],I.currentHashTag!==t&&(i=I.stepHashTags.indexOf(t)+1,I.currentHashTag=t,I.goTo(i,void 0,void 0,!0))};return addHashChange(e),I.manageEvents.list.hashchange.push({element:window,handler:e}),I.manageEvents.list.hashchange},button:function(e,t,i){var n,a,r,o,s,d,l,c=e.length;switch(t){case"nav":r=function(e){n=u(e,"click",(function(e){e||(e=window.event),e.preventDefault?e.preventDefault():e.returnValue=!1,i()}))};break;case"pagination":r=function(e,t){n=u(e,"click",(function(e,t){e||(e=window.event),e.preventDefault?e.preventDefault():e.returnValue=!1;var i=e.target||e.srcElement;d=m(o=this,i),I.goTo(d)})),I.$pagination.links.push(I.pagination.getLinks(e,t))}}for(l=0;c>l;l++)(s=(a=e[l]).getAttribute("rel"))===I.$container.id&&null===a.getAttribute("data-seq-button")?(a.setAttribute("data-seq-button",!0),r(a,s)):null===s&&null===a.getAttribute("data-seq-button")&&r(a,s),I.manageEvents.list.click.push({element:a,handler:n});return I.manageEvents.list.click},stopOnHover:function(){var e,t;return I.isMouseOver=!1,e=u(I.$container,"touchstart",(function(e){I.isTouched=!0})),I.manageEvents.list.touchstart.push({element:I.$container,handler:e}),t=u(I.$container,"mousemove",(function(e){return e=e||window.event,!0===I.isTouched?void(I.isTouched=!1):void(!0===v(I.$container,e)?(!0===I.options.autoPlayPauseOnHover&&!1===I.isMouseOver&&I.autoPlay.pause(),I.isMouseOver=!0):(!0===I.options.autoPlayPauseOnHover&&!0===I.isMouseOver&&I.autoPlay.unpause(),I.isMouseOver=!1))})),I.manageEvents.list.mousemove.push({element:I.$container,handler:t}),t=u(I.$container,"mouseleave",(function(e){!0===I.options.autoPlayPauseOnHover&&I.autoPlay.unpause(),I.isMouseOver=!1})),I.manageEvents.list.mouseleave.push({element:I.$container,handler:t}),null},swipeNavigation:function(){var e,i;void 0!==window.addEventListener?"function"==typeof t&&(i=function(e){switch(e.direction){case 2:I.options.swipeEvents.left(I);break;case 4:I.options.swipeEvents.right(I);break;case 8:I.options.swipeEvents.up(I);break;case 16:I.options.swipeEvents.down(I)}},I.hammerTime=new t(I.$container).on("swipe",i),I.hammerTime.get("swipe").set(I.options.swipeHammerOptions),e=g(I.options.swipeEvents),I.hammerTime.get("swipe").set({direction:e}),I.manageEvents.list.hammer.push({element:I.$container,handler:i})):I.hammerTime=!1},keyNavigation:function(){var e=u(document,"keyup",(function(e){e||(e=window.event);var t=parseInt(String.fromCharCode(e.keyCode));switch(t>0&&t<=I.noOfSteps&&I.options.numericKeysGoToSteps&&I.goTo(t),e.keyCode){case 37:I.options.keyEvents.left(I);break;case 39:I.options.keyEvents.right(I)}}));I.manageEvents.list.keyup.push({element:document,handler:e})},resizeThrottle:function(){function e(){setTimeout((function(){I.canvas.getTransformProperties(),!0===I.propertySupport.transitions&&I.canvas.move(I.currentStepId,!1)}),500),I.throttledResize(I)}var t,i;i=u(window,"resize",(function(i){clearTimeout(t),t=setTimeout(e,w)})),I.manageEvents.list.resize.push({element:window,handler:i})},pageVisibility:function(){var e=u(document,x,(function(){document[E]?I.autoPlay.pause():I.autoPlay.unpause()}),!1);I.manageEvents.list[x].push({element:document,handler:e})}}},I.init=function(t){var i,n,a,o;I.options=s(b,r),I.isAnimating=!1,I.isReady=!1,I.$container=t,I.$screen=I.$container.querySelectorAll(".seq-screen")[0],I.$canvas=I.$container.querySelectorAll(".seq-canvas")[0],I.$steps=I.canvas.getSteps(I.$canvas),I.noOfSteps=I.$steps.length,I.phasesAnimating=0,I.phasesSkipped=[],y(I.$container,P),i=I.options.startingStepId,h(I.$container,"seq-active"),I.propertySupport=I.animation.getPropertySupport(),I.isFallbackMode=I.animation.requiresFallbackMode(I.propertySupport),I.canvas.init(i),I.canvas.removeNoJsClass(I),I.manageEvents.init(),I.autoPlay.init(),I.firstRun=!0,i=I.hashTags.init(i),1===I.options.autoPlayDirection?(a=i-1,I.prevStepId=1>a?I.noOfSteps:a):(a=i+1,I.prevStepId=a>I.noOfSteps?1:a),I.currentStepId=I.prevStepId,n=I.prevStepId,I.animationFallback.setupCanvas(i),o=function(){I.animation.domDelay((function(){I.animation.domDelay((function(){I.animation.resetInheritedSpeed(n)})),I.isReady=!0,I.ready(I),I.goTo(i,I.options.autoPlayDirection,!0)}))},!1!==I.options.preloader&&void 0!==document.querySelectorAll&&"function"==typeof e?I.preload.init((function(){o()})):o()},I.destroy=function(){var e,t,i;for(I.autoPlay.stop(),clearTimeout(I.autoPlayTimer),clearTimeout(I.phaseThresholdTimer),clearTimeout(I.stepEndedTimer),clearTimeout(I.currentPhaseEndedTimer),clearTimeout(I.nextPhaseStartedTimer),clearTimeout(I.nextPhaseEndedTimer),clearTimeout(I.fadeStepTimer),clearTimeout(I.hideTimer),clearTimeout(I.navigationSkipThresholdTimer),I.manageEvents.removeAll(I.manageEvents.list),f(I.$pagination.currentLinks,"seq-current"),f(I.$container,"seq-step"+I.currentStepId),f(I.$container,"seq-active"),I.$container.removeAttribute("style"),void 0!==I.$screen&&I.$screen.removeAttribute("style"),I.$canvas.removeAttribute("style"),e=0;e<I.noOfSteps;e++)(t=I.$steps[e]).removeAttribute("style"),I.animation.resetInheritedSpeed(e+1),f(t,"seq-in"),f(t,"seq-out");return i=I.$steps[I.options.startingStepId-1],I.animation.resetInheritedSpeed(I.options.startingStepId),h(i,"seq-in"),a.removeAttribute("data-seq-enabled"),I.destroyed(I),I=null},I.next=function(){var e=I.currentStepId+1;return!(e>I.noOfSteps&&!1===I.options.cycle)&&(e>I.noOfSteps&&(e=1),I.goTo(e),e)},I.prev=function(){var e,t=I.currentStepId-1;return!(1>t&&!1===I.options.cycle)&&(1>t&&(t=I.noOfSteps),!0===I.options.reverseWhenNavigatingBackwards&&(e=-1),I.goTo(t,e),t)},
I.toggleAutoPlay=function(e){return!1===I.isAutoPlaying?I.start(e):I.stop(),I.isAutoPlaying},I.stop=function(){I.autoPlay.stop()},I.start=function(e){I.autoPlay.start(e)},I.goTo=function(e,t,i,n){return t=I.animation.getDirection(e,t,I.currentStepId,I.noOfSteps,I.isFallbackMode,I.options.reverseWhenNavigatingBackwards,I.options.cycle),!(void 0===e||1>e||e>I.noOfSteps||e===I.currentStepId||!1===I.options.navigationSkip&&!0===I.isAnimating||!0===I.options.navigationSkip&&!0===I.navigationSkipThresholdActive&&void 0===n||!0===I.isFallbackMode&&!0===I.isAnimating&&void 0===n||!0===I.options.preventReverseSkipping&&I.direction!==t&&!0===I.isAnimating)&&(clearTimeout(I.autoPlayTimer),I.direction=t,1===t?f(I.$container,"seq-reversed"):h(I.$container,"seq-reversed"),a=I.$steps[I.currentStepId-1],r=I.$steps[e-1],I.animation.moveActiveStepToTop(a,r),I.animation.changeStep(e),!1===I.isFallbackMode?(I.animation.resetInheritedSpeed(e),(!1===I.firstRun||!0===I.firstRun&&!0===I.options.startingStepAnimatesIn)&&I.animationStarted(e,I),I.canvas.move(e,!0),I.animation.manageNavigationSkip(e,r),1===t?I.animation.forward(e,a,r,i,n):I.animation.reverse(e,a,r,i,n)):I.animationFallback.goTo(e,I.currentStepId,a,e,r,t,n),!0);var a,r},I.started=function(e){},I.stopped=function(e){},I.animationStarted=function(e,t){},I.animationEnded=function(e,t){},I.currentPhaseStarted=function(e,t){},I.currentPhaseEnded=function(e,t){},I.nextPhaseStarted=function(e,t){},I.nextPhaseEnded=function(e,t){},I.throttledResize=function(e){},I.preloaded=function(e){},I.preloadProgress=function(e,t,i,n,a){},I.ready=function(e){},I.destroyed=function(e){},I.utils={addClass:h,removeClass:f,addEvent:u,removeEvent:l},I.init(a),i.push(I),I};return a}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function e(t){return typeof t}:function e(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}if(function(){function e(){}function t(e,t){for(var i=e.length;i--;)if(e[i].listener===t)return i;return-1}function i(e){return function(){return this[e].apply(this,arguments)}}var n=e.prototype,a=this,r=a.EventEmitter;n.getListeners=function(e){var t,i,n=this._getEvents();if("object"==typeof e)for(i in t={},n)n.hasOwnProperty(i)&&e.test(i)&&(t[i]=n[i]);else t=n[e]||(n[e]=[]);return t},n.flattenListeners=function(e){var t,i=[];for(t=0;e.length>t;t+=1)i.push(e[t].listener);return i},n.getListenersAsObject=function(e){var t,i=this.getListeners(e);return i instanceof Array&&((t={})[e]=i),t||i},n.addListener=function(e,i){var n,a=this.getListenersAsObject(e),r="object"==typeof i;for(n in a)a.hasOwnProperty(n)&&-1===t(a[n],i)&&a[n].push(r?i:{listener:i,once:!1});return this},n.on=i("addListener"),n.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},n.once=i("addOnceListener"),n.defineEvent=function(e){return this.getListeners(e),this},n.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},n.removeListener=function(e,i){var n,a,r=this.getListenersAsObject(e);for(a in r)r.hasOwnProperty(a)&&(-1!==(n=t(r[a],i))&&r[a].splice(n,1));return this},n.off=i("removeListener"),n.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},n.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},n.manipulateListeners=function(e,t,i){var n,a,r=e?this.removeListener:this.addListener,o=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(n=i.length;n--;)r.call(this,t,i[n]);else for(n in t)t.hasOwnProperty(n)&&(a=t[n])&&("function"==typeof a?r.call(this,n,a):o.call(this,n,a));return this},n.removeEvent=function(e){var t,i=typeof e,n=this._getEvents();if("string"===i)delete n[e];else if("object"===i)for(t in n)n.hasOwnProperty(t)&&e.test(t)&&delete n[t];else delete this._events;return this},n.removeAllListeners=i("removeEvent"),n.emitEvent=function(e,t){var i,n,a,r,o=this.getListenersAsObject(e);for(a in o)if(o.hasOwnProperty(a))for(n=o[a].length;n--;)!0===(i=o[a][n]).once&&this.removeListener(e,i.listener),(r=i.listener.apply(this,t||[]))===this._getOnceReturnValue()&&this.removeListener(e,i.listener);return this},n.trigger=i("emitEvent"),n.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},n.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},n._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},n._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return a.EventEmitter=r,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],(function(){return e})):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}.call(this),function(e){function t(t){var i=e.event;return i.target=i.target||i.srcElement||t,i}var i=document.documentElement,n=function(){};i.addEventListener?n=function(e,t,i){e.addEventListener(t,i,!1)}:i.attachEvent&&(n=function(e,i,n){e[i+n]=n.handleEvent?function(){var i=t(e);n.handleEvent.call(n,i)}:function(){var i=t(e);n.call(e,i)},e.attachEvent("on"+i,e[i+n])});var a=function(){};i.removeEventListener?a=function(e,t,i){e.removeEventListener(t,i,!1)}:i.detachEvent&&(a=function(e,t,i){e.detachEvent("on"+t,e[t+i]);try{delete e[t+i]}catch(n){e[t+i]=void 0}});var r={bind:n,unbind:a};"function"==typeof define&&define.amd?define("eventie/eventie",r):e.eventie=r}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],(function(i,n){return t(e,i,n)})):"object"==typeof exports?module.exports=t(e,require("eventEmitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(this,(function(e,t,i){function n(e,t){for(var i in t)e[i]=t[i];return e}function a(e){return"[object Array]"===p.call(e)}function r(e){var t=[];if(a(e))t=e;else if("number"==typeof e.length)for(var i=0,n=e.length;n>i;i++)t.push(e[i]);else t.push(e);return t}function o(e,t,i){if(!(this instanceof o))return new o(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=r(e),this.options=n({},this.options),"function"==typeof t?i=t:n(this.options,t),i&&this.on("always",i),this.getImages(),u&&(this.jqDeferred=new u.Deferred);var a=this;setTimeout((function(){a.check()}))}function s(e){this.img=e}function d(e){this.src=e,h[e]=this}var u=e.jQuery,l=e.console,c=void 0!==l,p=Object.prototype.toString;o.prototype=new t,o.prototype.options={},o.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var i=this.elements[e];if("IMG"===i.nodeName&&this.addImage(i),i.nodeType&&(1===i.nodeType||9===i.nodeType))for(var n=i.querySelectorAll("img"),a=0,r=n.length;r>a;a++){var o=n[a];this.addImage(o)}}},o.prototype.addImage=function(e){var t=new s(e);this.images.push(t)},o.prototype.check=function(){function e(e,a){return t.options.debug&&c&&l.log("confirm",e,a),t.progress(e),++i===n&&t.complete(),!0}var t=this,i=0,n=this.images.length;if(this.hasAnyBroken=!1,n)for(var a=0;n>a;a++){var r=this.images[a];r.on("confirm",e),r.check()}else this.complete()},o.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout((function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)}))},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout((function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var i=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[i](t)}}))},u&&(u.fn.imagesLoaded=function(e,t){var i;return new o(this,e,t).jqDeferred.promise(u(this))}),s.prototype=new t,s.prototype.check=function(){var e=h[this.img.src]||new d(this.img.src);if(e.isConfirmed)this.confirm(e.isLoaded,"cached was confirmed");else if(this.img.complete&&void 0!==this.img.naturalWidth)this.confirm(0!==this.img.naturalWidth,"naturalWidth");else{var t=this;e.on("confirm",(function(e,i){return t.confirm(e.isLoaded,i),!0})),e.check()}},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var h={};return d.prototype=new t,d.prototype.check=function(){if(!this.isChecked){var e=new Image;i.bind(e,"load",this),i.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},d.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},d.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},d.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},d.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},d.prototype.unbindProxyEvents=function(e){i.unbind(e.target,"load",this),i.unbind(e.target,"error",this)},o})),function(e,t,i,n){"use strict";function a(e,t,i){return setTimeout(l(e,i),t)}function r(e,t,i){return!!Array.isArray(e)&&(o(e,i[t],i),!0)}function o(e,t,i){var a;if(e)if(e.forEach)e.forEach(t,i);else if(e.length!==n)for(a=0;a<e.length;)t.call(i,e[a],a,e),a++;else for(a in e)e.hasOwnProperty(a)&&t.call(i,e[a],a,e)}function s(e,t,i){for(var a=Object.keys(t),r=0;r<a.length;)(!i||i&&e[a[r]]===n)&&(e[a[r]]=t[a[r]]),r++;return e}function d(e,t){return s(e,t,!0)}function u(e,t,i){var n,a=t.prototype;(n=e.prototype=Object.create(a)).constructor=e,n._super=a,i&&s(n,i)}function l(e,t){return function(){return e.apply(t,arguments)}}function c(e,t){return typeof e==le?e.apply(t&&t[0]||n,t):e}function p(e,t){return e===n?t:e}function h(e,t,i){o(g(t),(function(t){e.addEventListener(t,i,!1)}))}function f(e,t,i){o(g(t),(function(t){e.removeEventListener(t,i,!1)}))}function v(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function m(e,t){return e.indexOf(t)>-1}function g(e){return e.trim().split(/\s+/g)}function y(e,t,i){if(e.indexOf&&!i)return e.indexOf(t);for(var n=0;n<e.length;){if(i&&e[n][i]==t||!i&&e[n]===t)return n;n++}return-1}function k(e){return Array.prototype.slice.call(e,0)}function b(e,t,i){for(var n=[],a=[],r=0;r<e.length;){var o=t?e[r][t]:e[r];y(a,o)<0&&n.push(e[r]),a[r]=o,r++}return i&&(n=t?n.sort((function(e,i){return e[t]>i[t]})):n.sort()),n}function T(e,t){for(var i,a,r=t[0].toUpperCase()+t.slice(1),o=0;o<de.length;){if((a=(i=de[o])?i+r:t)in e)return a;o++}return n}function w(){return fe++}function S(e){var t=e.ownerDocument;return t.defaultView||t.parentWindow}function P(e,t){var i=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){c(e.options.enable,[e])&&i.handler(t)},this.init()}function E(e){var t,i=e.options.inputClass;return new(t=i||(ge?j:ye?F:me?W:N))(e,x)}function x(e,t,i){var n=i.pointers.length,a=i.changedPointers.length,r=t&Pe&&n-a==0,o=t&(xe|Ie)&&n-a==0;i.isFirst=!!r,i.isFinal=!!o,r&&(e.session={}),i.eventType=t,I(e,i),e.emit("hammer.input",i),e.recognize(i),e.session.prevInput=i}function I(e,t){var i=e.session,n=t.pointers,a=n.length;i.firstInput||(i.firstInput=C(t)),a>1&&!i.firstMultiple?i.firstMultiple=C(t):1===a&&(i.firstMultiple=!1);var r=i.firstInput,o=i.firstMultiple,s=o?o.center:r.center,d=t.center=O(n);t.timeStamp=he(),t.deltaTime=t.timeStamp-r.timeStamp,t.angle=z(s,d),t.distance=L(s,d),A(i,t),t.offsetDirection=_(t.deltaX,t.deltaY),t.scale=o?M(o.pointers,n):1,t.rotation=o?R(o.pointers,n):0,q(i,t);var u=e.element;v(t.srcEvent.target,u)&&(u=t.srcEvent.target),t.target=u}function A(e,t){var i=t.center,n=e.offsetDelta||{},a=e.prevDelta||{},r=e.prevInput||{};(t.eventType===Pe||r.eventType===xe)&&(a=e.prevDelta={x:r.deltaX||0,y:r.deltaY||0},n=e.offsetDelta={x:i.x,y:i.y}),t.deltaX=a.x+(i.x-n.x),t.deltaY=a.y+(i.y-n.y)}function q(e,t){var i,a,r,o,s=e.lastInterval||t,d=t.timeStamp-s.timeStamp;if(t.eventType!=Ie&&(d>Se||s.velocity===n)){var u=s.deltaX-t.deltaX,l=s.deltaY-t.deltaY,c=D(d,u,l);a=c.x,r=c.y,i=pe(c.x)>pe(c.y)?c.x:c.y,o=_(u,l),e.lastInterval=t}else i=s.velocity,a=s.velocityX,r=s.velocityY,o=s.direction;t.velocity=i,t.velocityX=a,t.velocityY=r,t.direction=o}function C(e){for(var t=[],i=0;i<e.pointers.length;)t[i]={clientX:ce(e.pointers[i].clientX),clientY:ce(e.pointers[i].clientY)},i++;return{timeStamp:he(),pointers:t,center:O(t),deltaX:e.deltaX,deltaY:e.deltaY}}function O(e){var t=e.length;if(1===t)return{x:ce(e[0].clientX),y:ce(e[0].clientY)};for(var i=0,n=0,a=0;t>a;)i+=e[a].clientX,n+=e[a].clientY,a++;return{x:ce(i/t),y:ce(n/t)}}function D(e,t,i){return{x:t/e||0,y:i/e||0}}function _(e,t){return e===t?Ae:pe(e)>=pe(t)?e>0?qe:$e:t>0?Ce:Oe}function L(e,t,i){i||(i=ze);var n=t[i[0]]-e[i[0]],a=t[i[1]]-e[i[1]];return Math.sqrt(n*n+a*a)}function z(e,t,i){i||(i=ze);var n=t[i[0]]-e[i[0]],a=t[i[1]]-e[i[1]];return 180*Math.atan2(a,n)/Math.PI}function R(e,t){return z(t[1],t[0],Re)-z(e[1],e[0],Re)}function M(e,t){return L(t[0],t[1],Re)/L(e[0],e[1],Re)}function N(){this.evEl=Ne,this.evWin=je,this.allow=!0,this.pressed=!1,P.apply(this,arguments)}function j(){this.evEl=Fe,this.evWin=Ye,P.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function H(){this.evTarget=Ve,this.evWin=Xe,this.started=!1,P.apply(this,arguments)}function B(e,t){var i=k(e.touches),n=k(e.changedTouches);return t&(xe|Ie)&&(i=b(i.concat(n),"identifier",!0)),[i,n]}function F(){this.evTarget=Ue,this.targetIds={},P.apply(this,arguments)}function Y(e,t){var i=k(e.touches),n=this.targetIds;if(t&(Pe|Ee)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var a,r,o=k(e.changedTouches),s=[],d=this.target;if(r=i.filter((function(e){return v(e.target,d)})),t===Pe)for(a=0;a<r.length;)n[r[a].identifier]=!0,a++;for(a=0;a<o.length;)n[o[a].identifier]&&s.push(o[a]),t&(xe|Ie)&&delete n[o[a].identifier],a++;return s.length?[b(r.concat(s),"identifier",!0),s]:void 0}function W(){P.apply(this,arguments);var e=l(this.handler,this);this.touch=new F(this.manager,e),this.mouse=new N(this.manager,e)}function V(e,t){this.manager=e,this.set(t)}function X(e){if(m(e,tt))return tt;var t=m(e,it),i=m(e,nt);return t&&i?it+" "+nt:t||i?t?it:nt:m(e,et)?et:Je}function Q(e){this.id=w(),this.manager=null,this.options=d(e||{},this.defaults),this.options.enable=p(this.options.enable,!0),this.state=at,this.simultaneous={},this.requireFail=[]}function U(e){return e&ut?"cancel":e&st?"end":e&ot?"move":e&rt?"start":""}function G(e){return e==Oe?"down":e==Ce?"up":e==qe?"left":e==$e?"right":""}function Z(e,t){var i=t.manager;return i?i.get(e):e}function K(){Q.apply(this,arguments)}function $(){K.apply(this,arguments),this.pX=null,this.pY=null}function J(){K.apply(this,arguments)}function ee(){Q.apply(this,arguments),this._timer=null,this._input=null}function te(){K.apply(this,arguments)}function ie(){K.apply(this,arguments)}function ne(){Q.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ae(e,t){return(t=t||{}).recognizers=p(t.recognizers,ae.defaults.preset),new re(e,t)}function re(e,t){t=t||{},this.options=d(t,ae.defaults),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.element=e,this.input=E(this),this.touchAction=new V(this,this.options.touchAction),oe(this,!0),o(t.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function oe(e,t){var i=e.element;o(e.options.cssProps,(function(e,n){i.style[T(i.style,n)]=t?e:""}))}function se(e,i){var n=t.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=i,i.target.dispatchEvent(n)}var de=["","webkit","moz","MS","ms","o"],ue=t.createElement("div"),le="function",ce=Math.round,pe=Math.abs,he=Date.now,fe=1,ve=/mobile|tablet|ip(ad|hone|od)|android/i,me="ontouchstart"in e,ge=T(e,"PointerEvent")!==n,ye=me&&ve.test(navigator.userAgent),ke="touch",be="pen",Te="mouse",we="kinect",Se=25,Pe=1,Ee=2,xe=4,Ie=8,Ae=1,qe=2,$e=4,Ce=8,Oe=16,De=qe|$e,_e=Ce|Oe,Le=De|_e,ze=["x","y"],Re=["clientX","clientY"];P.prototype={handler:function(){},init:function(){this.evEl&&h(this.element,this.evEl,this.domHandler),this.evTarget&&h(this.target,this.evTarget,this.domHandler),this.evWin&&h(S(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&f(this.element,this.evEl,this.domHandler),this.evTarget&&f(this.target,this.evTarget,this.domHandler),this.evWin&&f(S(this.element),this.evWin,this.domHandler)}};var Me={mousedown:Pe,mousemove:Ee,mouseup:xe},Ne="mousedown",je="mousemove mouseup";u(N,P,{handler:function(e){var t=Me[e.type];t&Pe&&0===e.button&&(this.pressed=!0),t&Ee&&1!==e.which&&(t=xe),this.pressed&&this.allow&&(t&xe&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:Te,srcEvent:e}))}});var He={pointerdown:Pe,pointermove:Ee,pointerup:xe,pointercancel:Ie,pointerout:Ie},Be={2:ke,3:be,4:Te,5:we},Fe="pointerdown",Ye="pointermove pointerup pointercancel";e.MSPointerEvent&&(Fe="MSPointerDown",Ye="MSPointerMove MSPointerUp MSPointerCancel"),u(j,P,{handler:function(e){var t=this.store,i=!1,n=e.type.toLowerCase().replace("ms",""),a=He[n],r=Be[e.pointerType]||e.pointerType,o=r==ke,s=y(t,e.pointerId,"pointerId");a&Pe&&(0===e.button||o)?0>s&&(t.push(e),s=t.length-1):a&(xe|Ie)&&(i=!0),0>s||(t[s]=e,this.callback(this.manager,a,{pointers:t,changedPointers:[e],pointerType:r,srcEvent:e}),i&&t.splice(s,1))}});var We={touchstart:Pe,touchmove:Ee,touchend:xe,touchcancel:Ie},Ve="touchstart",Xe="touchstart touchmove touchend touchcancel";u(H,P,{handler:function(e){var t=We[e.type];if(t===Pe&&(this.started=!0),this.started){var i=B.call(this,e,t);t&(xe|Ie)&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:i[0],changedPointers:i[1],pointerType:ke,srcEvent:e})}}});var Qe={touchstart:Pe,touchmove:Ee,touchend:xe,touchcancel:Ie},Ue="touchstart touchmove touchend touchcancel";u(F,P,{handler:function(e){var t=Qe[e.type],i=Y.call(this,e,t);i&&this.callback(this.manager,t,{pointers:i[0],changedPointers:i[1],pointerType:ke,srcEvent:e})}}),u(W,P,{handler:function(e,t,i){var n=i.pointerType==ke,a=i.pointerType==Te;if(n)this.mouse.allow=!1;else if(a&&!this.mouse.allow)return;t&(xe|Ie)&&(this.mouse.allow=!0),this.callback(e,t,i)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ge=T(ue.style,"touchAction"),Ze=Ge!==n,Ke="compute",Je="auto",et="manipulation",tt="none",it="pan-x",nt="pan-y";V.prototype={set:function(e){e==Ke&&(e=this.compute()),Ze&&(this.manager.element.style[Ge]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return o(this.manager.recognizers,(function(t){c(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),X(e.join(" "))},preventDefaults:function(e){if(!Ze){var t=e.srcEvent,i=e.offsetDirection;if(this.manager.session.prevented)return void t.preventDefault();var n=this.actions,a=m(n,tt),r=m(n,nt),o=m(n,it);return a||r&&i&De||o&&i&_e?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var at=1,rt=2,ot=4,st=8,dt=st,ut=16,lt=32;Q.prototype={defaults:{},set:function(e){return s(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(r(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Z(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return r(e,"dropRecognizeWith",this)||(e=Z(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(r(e,"requireFailure",this))return this;var t=this.requireFail;return-1===y(t,e=Z(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(r(e,"dropRequireFailure",this))return this;e=Z(e,this);var t=y(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){i.manager.emit(i.options.event+(t?U(n):""),e)}var i=this,n=this.state;st>n&&t(!0),t(),n>=st&&t(!0)},tryEmit:function(e){return this.canEmit()?this.emit(e):void(this.state=lt)},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(lt|at)))return!1;e++}return!0},recognize:function(e){var t=s({},e);return c(this.options.enable,[this,t])?(this.state&(dt|ut|lt)&&(this.state=at),this.state=this.process(t),void(this.state&(rt|ot|st|ut)&&this.tryEmit(t))):(this.reset(),void(this.state=lt))},process:function(){},getTouchAction:function(){},reset:function(){}},u(K,Q,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,i=e.eventType,n=t&(rt|ot),a=this.attrTest(e);return n&&(i&Ie||!a)?t|ut:n||a?i&xe?t|st:t&rt?t|ot:rt:lt}}),u($,K,{defaults:{event:"pan",threshold:10,pointers:1,direction:Le},getTouchAction:function(){var e=this.options.direction,t=[];return e&De&&t.push(nt),e&_e&&t.push(it),t},directionTest:function(e){var t=this.options,i=!0,n=e.distance,a=e.direction,r=e.deltaX,o=e.deltaY;return a&t.direction||(t.direction&De?(a=0===r?Ae:0>r?qe:$e,i=r!=this.pX,n=Math.abs(e.deltaX)):(a=0===o?Ae:0>o?Ce:Oe,i=o!=this.pY,n=Math.abs(e.deltaY))),e.direction=a,i&&n>t.threshold&&a&t.direction},attrTest:function(e){return K.prototype.attrTest.call(this,e)&&(this.state&rt||!(this.state&rt)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=G(e.direction);t&&this.manager.emit(this.options.event+t,e),this._super.emit.call(this,e)}}),u(J,K,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[tt]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&rt)},emit:function(e){if(this._super.emit.call(this,e),1!==e.scale){var t=e.scale<1?"in":"out";this.manager.emit(this.options.event+t,e)}}}),u(ee,Q,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[Je]},process:function(e){var t=this.options,i=e.pointers.length===t.pointers,n=e.distance<t.threshold,r=e.deltaTime>t.time;if(this._input=e,!n||!i||e.eventType&(xe|Ie)&&!r)this.reset();else if(e.eventType&Pe)this.reset(),this._timer=a((function(){this.state=dt,this.tryEmit()}),t.time,this);else if(e.eventType&xe)return dt;return lt},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===dt&&(e&&e.eventType&xe?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=he(),this.manager.emit(this.options.event,this._input)))}}),u(te,K,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[tt]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&rt)}}),u(ie,K,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:De|_e,pointers:1},getTouchAction:function(){return $.prototype.getTouchAction.call(this)},attrTest:function(e){var t,i=this.options.direction;return i&(De|_e)?t=e.velocity:i&De?t=e.velocityX:i&_e&&(t=e.velocityY),this._super.attrTest.call(this,e)&&i&e.direction&&e.distance>this.options.threshold&&pe(t)>this.options.velocity&&e.eventType&xe},emit:function(e){var t=G(e.direction);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),u(ne,Q,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[et]},process:function(e){var t=this.options,i=e.pointers.length===t.pointers,n=e.distance<t.threshold,r=e.deltaTime<t.time;if(this.reset(),e.eventType&Pe&&0===this.count)return this.failTimeout();if(n&&r&&i){if(e.eventType!=xe)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,s=!this.pCenter||L(this.pCenter,e.center)<t.posThreshold,d;if(this.pTime=e.timeStamp,this.pCenter=e.center,s&&o?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=a((function(){this.state=dt,this.tryEmit()}),t.interval,this),rt):dt}return lt},failTimeout:function(){return this._timer=a((function(){this.state=lt}),this.options.interval,this),lt},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==dt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ae.VERSION="2.0.4",ae.defaults={domEvents:!1,touchAction:Ke,enable:!0,inputTarget:null,inputClass:null,preset:[[te,{enable:!1}],[J,{enable:!1},["rotate"]],[ie,{direction:De}],[$,{direction:De},["swipe"]],[ne],[ne,{event:"doubletap",taps:2},["tap"]],[ee]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var ct=1,pt=2;re.prototype={set:function(e){return s(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);var i,n=this.recognizers,a=t.curRecognizer;(!a||a&&a.state&dt)&&(a=t.curRecognizer=null);for(var r=0;r<n.length;)i=n[r],2===t.stopped||a&&i!=a&&!i.canRecognizeWith(a)?i.reset():i.recognize(e),!a&&i.state&(rt|ot|st)&&(a=t.curRecognizer=i),r++}},get:function(e){if(e instanceof Q)return e;for(var t=this.recognizers,i=0;i<t.length;i++)if(t[i].options.event==e)return t[i];return null},add:function(e){if(r(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(r(e,"remove",this))return this;var t=this.recognizers;return e=this.get(e),t.splice(y(t,e),1),this.touchAction.update(),this},on:function(e,t){var i=this.handlers;return o(g(e),(function(e){i[e]=i[e]||[],i[e].push(t)})),this},off:function(e,t){var i=this.handlers;return o(g(e),(function(e){t?i[e].splice(y(i[e],t),1):delete i[e]})),this},emit:function(e,t){this.options.domEvents&&se(e,t);var i=this.handlers[e]&&this.handlers[e].slice();if(i&&i.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var n=0;n<i.length;)i[n](t),n++}},destroy:function(){this.element&&oe(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},s(ae,{INPUT_START:Pe,INPUT_MOVE:Ee,INPUT_END:xe,INPUT_CANCEL:Ie,STATE_POSSIBLE:at,STATE_BEGAN:rt,STATE_CHANGED:ot,STATE_ENDED:st,STATE_RECOGNIZED:dt,STATE_CANCELLED:ut,STATE_FAILED:lt,DIRECTION_NONE:Ae,DIRECTION_LEFT:qe,DIRECTION_RIGHT:$e,DIRECTION_UP:Ce,DIRECTION_DOWN:Oe,DIRECTION_HORIZONTAL:De,DIRECTION_VERTICAL:_e,DIRECTION_ALL:Le,Manager:re,Input:P,TouchAction:V,TouchInput:F,MouseInput:N,PointerEventInput:j,TouchMouseInput:W,SingleTouchInput:H,Recognizer:Q,AttrRecognizer:K,Tap:ne,Pan:$,Swipe:ie,Pinch:J,Rotate:te,Press:ee,on:h,off:f,each:o,merge:d,extend:s,inherit:u,bindFn:l,prefixed:T}),typeof define==le&&define.amd?define((function(){return ae})):"undefined"!=typeof module&&module.exports?module.exports=ae:e[i]=ae}(window,document,"Hammer"),"function"==typeof define&&define.amd)define(["imagesLoaded","Hammer"],defineSequence);else{Hammer="function"!=typeof Hammer?null:Hammer,imagesLoaded="function"!=typeof imagesLoaded?null:imagesLoaded;var sequence=defineSequence(imagesLoaded,Hammer)}
/*!
* Vidbg v1.1.1 (https://github.com/blakewilson/vidbg)
* Vidbg By Blake Wilson
* Edited in Fix for Safari issue
* @license Licensed Under MIT (https://github.com/blakewilson/vidbg/blob/master/LICENSE)
*/!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(e.jQuery)}(this,(function($){"use strict";function e(e){var t={},i,n,a,r,o,s,d;for(d=0,s=(o=e.replace(/\s*:\s*/g,":").replace(/\s*,\s*/g,",").split(",")).length;d<s&&-1===(n=o[d]).search(/^(http|https|ftp):\/\//)&&-1!==n.search(":");d++)i=n.indexOf(":"),a=n.substring(0,i),(r=n.substring(i+1))||(r=void 0),"string"==typeof r&&(r="true"===r||"false"!==r&&r),"string"==typeof r&&(r=isNaN(r)?r:+r),t[a]=r;return null==a&&null==r?e:t}function t(e){var t=(e=""+e).split(/\s+/),i="50%",n="50%",a,r,o;for(o=0,a=t.length;o<a;o++)"left"===(r=t[o])?i="0%":"right"===r?i="100%":"top"===r?n="0%":"bottom"===r?n="100%":"center"===r?0===o?i="50%":n="50%":0===o?i=r:n=r;return{x:i,y:n}}function i(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,(function(e,t,i,n){return t+t+i+i+n+n}));var i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return i?{r:parseInt(i[1],16),g:parseInt(i[2],16),b:parseInt(i[3],16)}:null}function n(t,i,n){this.$element=$(t),"string"==typeof i&&(i=e(i)),n?"string"==typeof n&&(n=e(n)):n={},this.settings=$.extend({},r,n),this.path=i;try{this.init()}catch(e){if(e.message!==o)throw e}}var a="vidbg",r={volume:1,playbackRate:1,muted:!0,loop:!0,autoplay:!0,position:"50% 50%",overlay:!1,overlayColor:"#000",overlayAlpha:.3,resizing:!0},o="Not implemented";n.prototype.init=function(){var e=this,n=e.path,a=n,r="",s=e.$element,d=e.settings,u=t(d.position),l,c,p;c=e.$wrapper=$('<div class="vidbg-container">').css({position:"absolute","z-index":-1,top:0,left:0,bottom:0,right:0,overflow:"hidden","-webkit-background-size":"cover","-moz-background-size":"cover","-o-background-size":"cover","background-size":"cover","background-repeat":"no-repeat","background-position":u.x+" "+u.y}),"object"==typeof n&&(n.poster?a=n.poster:n.mp4?a=n.mp4:n.webm&&(a=n.webm)),c.css("background-image","url("+a+")"),"static"===s.css("position")&&s.css("position","relative"),s.css("z-index","1"),s.is("body")&&c.css({position:"fixed"}),s.prepend(c),"object"==typeof n?(n.mp4&&(r+='<source src="'+n.mp4+'" type="video/mp4">'),n.webm&&(r+='<source src="'+n.webm+'" type="video/webm">'),l=e.$video=$("<video playsinline>"+r+"</video>")):l=e.$video=$('<video playsinline><source src="'+n+'" type="video/mp4"><source src="'+n+'" type="video/webm"></video>');try{l.prop({autoplay:d.autoplay,loop:d.loop,volume:d.volume,muted:d.muted,defaultMuted:d.muted,playbackRate:d.playbackRate,defaultPlaybackRate:d.playbackRate})}catch(e){throw new Error(o)}l.css({margin:"auto",position:"absolute","z-index":-1,top:u.y,left:u.x,"-webkit-transform":"translate(-"+u.x+", -"+u.y+")","-ms-transform":"translate(-"+u.x+", -"+u.y+")","-moz-transform":"translate(-"+u.x+", -"+u.y+")",transform:"translate(-"+u.x+", -"+u.y+")","max-width":"none",visibility:"hidden",opacity:0}).one("canplaythrough.vidbg",(function(){e.resize(),-1==navigator.userAgent.indexOf("Safari")||-1!=navigator.userAgent.indexOf("Chrome")||isMobile_kt_slider.any()||l.css({visibility:"visible",opacity:1})})).one("playing.vidbg",(function(){l.css({visibility:"visible",opacity:1}),c.css("background-image","none")})),s.on("resize.vidbg",(function(){d.resizing&&e.resize()})),c.append(l),p=e.$overlay=$('<div class="vidbg-overlay">').css({position:"absolute",top:0,left:0,right:0,bottom:0,background:"rgba("+i(d.overlayColor).r+", "+i(d.overlayColor).g+", "+i(d.overlayColor).b+", "+d.overlayAlpha+")"}),d.overlay&&c.append(p)},n.prototype.getVideoObject=function(){return this.$video[0]},n.prototype.resize=function(){if(this.$video){var e=this.$wrapper,t=this.$video,i=t[0],n=i.videoHeight,a=i.videoWidth,r=e.height(),o=e.width();o/a>r/n?t.css({width:o+2,height:"auto"}):t.css({width:"auto",height:r+2})}},n.prototype.destroy=function(){delete $.vidbg.lookup[this.index],this.$video&&this.$video.off(a),this.$element.off(a).removeData(a),this.$wrapper.remove()},$.vidbg={lookup:[]},$.fn.vidbg=function(e,t){var i;return this.each((function(){(i=$.data(this,a))&&i.destroy(),(i=new n(this,e,t)).index=$.vidbg.lookup.push(i)-1,$.data(this,a,i)})),this},$(document).ready((function(){var e=$(window);e.on("resize.vidbg",(function(){for(var e=$.vidbg.lookup.length,t=0,i;t<e;t++)(i=$.vidbg.lookup[t])&&i.settings.resizing&&i.resize()})),e.on("unload.vidbg",(function(){return!1})),$(document).find("[data-vidbg-bg]").each((function(e,t){var i=$(t),n=i.data("vidbg-options"),a=i.data("vidbg-bg");i.vidbg(a,n)}))}))})),"function"!=typeof Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),function(e,t,i){var n=function e(n){var r=i.createElement("script"),o=i.getElementsByTagName("head")[0];"file://"==t.location.origin?r.src="http://www.youtube.com/iframe_api":r.src="//www.youtube.com/iframe_api",o.appendChild(r),r=o=null,a(n)},a=function i(n){"undefined"==typeof YT&&void 0===t.loadingPlayer?(t.loadingPlayer=!0,t.dfd=e.Deferred(),t.onYouTubeIframeAPIReady=function(){t.onYouTubeIframeAPIReady=null,t.dfd.resolve("done"),n()}):"object"===("undefined"==typeof YT?"undefined":_typeof(YT))?n():t.dfd.done((function(e){n()}))};YTPlayer={player:null,defaults:{ratio:16/9,videoId:"LSmgKRx5pBo",mute:!0,repeat:!0,width:e(t).width(),playButtonClass:"YTPlayer-play",pauseButtonClass:"YTPlayer-pause",muteButtonClass:"YTPlayer-mute",volumeUpClass:"YTPlayer-volume-up",volumeDownClass:"YTPlayer-volume-down",start:0,pauseOnScroll:!1,fitToBackground:!0,playerVars:{iv_load_policy:3,modestbranding:1,autoplay:1,controls:0,showinfo:0,wmode:"opaque",branding:0,autohide:0},events:null},init:function i(a,r){var o=this;return o.userOptions=r,o.$body=e("body"),o.$node=e(a),o.$window=e(t),o.defaults.events={onReady:function e(t){o.onPlayerReady(t),o.options.pauseOnScroll&&o.pauseOnScroll(),"function"==typeof o.options.callback&&o.options.callback.call(this)},onStateChange:function e(t){1===t.data?(o.$node.find("img").fadeOut(400),o.$node.addClass("loaded")):0===t.data&&o.options.repeat&&o.player.seekTo(o.options.start)}},o.options=e.extend(!0,{},o.defaults,o.userOptions),o.options.height=Math.ceil(o.options.width/o.options.ratio),o.ID=(new Date).getTime(),o.holderID="YTPlayer-ID-"+o.ID,o.options.fitToBackground?o.createBackgroundVideo():o.createContainerVideo(),o.$window.on("resize.YTplayer"+o.ID,(function(){o.resize(o)})),n(o.onYouTubeIframeAPIReady.bind(o)),o.resize(o),o},pauseOnScroll:function e(){var t=this;t.$window.on("scroll.YTplayer"+t.ID,(function(){var e;1===t.player.getPlayerState()&&t.player.pauseVideo()})),t.$window.scrollStopped((function(){var e;2===t.player.getPlayerState()&&t.player.playVideo()}))},createContainerVideo:function t(){var i=this,n=e('<div id="ytplayer-container'+i.ID+'" > <div id="'+i.holderID+'" class="ytplayer-player-inline"></div> </div> <div id="ytplayer-shield" class="ytplayer-shield"></div>');i.$node.append(n),i.$YTPlayerString=n,n=null},createBackgroundVideo:function t(){var i=this,n=e('<div id="ytplayer-container'+i.ID+'" class="ytplayer-container background"> <div id="'+i.holderID+'" class="ytplayer-player"></div> </div> <div id="ytplayer-shield" class="ytplayer-shield"></div>');i.$node.append(n),i.$YTPlayerString=n,n=null},resize:function t(i){var n=i.$node;i.options.fitToBackground||(n=i.$node);var a=n.width(),r,o=n.height(),s,d=e("#"+i.holderID);a/i.options.ratio<o?(r=Math.ceil(o*i.options.ratio),d.width(r).height(o).css({position:"absolute",left:(a-r)/2,top:0})):(s=Math.ceil(a/i.options.ratio),d.width(a).height(s).css({position:"absolute",left:0,top:(o-s)/2})),n=d=null},onYouTubeIframeAPIReady:function e(){var i=this;i.player=new t.YT.Player(i.holderID,i.options)},onPlayerReady:function e(t){this.options.mute&&t.target.mute(),t.target.playVideo()},getPlayer:function e(){return this.player},destroy:function i(){var n=this;n.$node.removeData("yt-init").removeData("ytPlayer").removeClass("loaded"),n.$YTPlayerString.remove(),e(t).off("resize.YTplayer"+n.ID),e(t).off("scroll.YTplayer"+n.ID),n.$body=null,n.$node=null,n.$YTPlayerString=null,n.player.destroy(),n.player=null}},e.fn.scrollStopped=function(t){var i=e(this),n=this;i.scroll((function(){i.data("scrollTimeout")&&clearTimeout(i.data("scrollTimeout")),i.data("scrollTimeout",setTimeout(t,250,n))}))},e.fn.YTPlayer=function(t){return this.each((function(){var i=this;e(i).data("yt-init",!0);var n=Object.create(YTPlayer);n.init(i,t),e.data(i,"ytPlayer",n)}))}}(jQuery,window,document),function($){$.fn.appear_ksp=function(e,t){var i=$.extend({data:void 0,one:!0,accX:0,accY:0},t);return this.each((function(){var t=$(this);if(t.appeared=!1,e){var n=$(window),a=function(){if(t.is(":visible")){var e=n.scrollLeft(),a=n.scrollTop(),r=t.offset(),o=r.left,s=r.top,d=i.accX,u=i.accY,l=t.height(),c=n.height(),p=t.width(),h=n.width();s+l+u>=a&&s<=a+c+u&&o+p+d>=e&&o<=e+h+d?t.appeared||t.trigger("appear",i.data):t.appeared=!1}else t.appeared=!1},r=function(){if(t.appeared=!0,i.one){n.unbind("scroll",a);var r=$.inArray(a,$.fn.appear_ksp.checks);r>=0&&$.fn.appear_ksp.checks.splice(r,1)}e.apply(this,arguments)};i.one?t.one("appear",i.data,r):t.bind("appear",i.data,r),n.scroll(a),$.fn.appear_ksp.checks.push(a),a()}else t.trigger("appear",i.data)}))},$.extend($.fn.appear_ksp,{checks:[],timeout:null,checkAll:function(){var e=$.fn.appear_ksp.checks.length;if(e>0)for(;e--;)$.fn.appear_ksp.checks[e]()},run:function(){$.fn.appear_ksp.timeout&&clearTimeout($.fn.appear_ksp.timeout),$.fn.appear_ksp.timeout=setTimeout($.fn.appear_ksp.checkAll,20)}}),$.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],(function(e,t){var i=$.fn[t];i&&($.fn[t]=function(){var e=i.apply(this,arguments);return $.fn.appear_ksp.run(),e})}))}(jQuery);var isMobile_kt_slider={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return isMobile_kt_slider.Android()||isMobile_kt_slider.BlackBerry()||isMobile_kt_slider.iOS()||isMobile_kt_slider.Opera()||isMobile_kt_slider.Windows()}};jQuery(document).ready((function($){function e(e){var e,t=$(e="."+e).find(".kad-slide-1 img.kt-ratio-img").height(),i=$(e).attr("data-ktslider-height");if(""==t&&(t=i),t>i)var n=i,a="50%",r=-+t/2;else var n=t,a=0,r=0;$(e).find(".kad-slider").height(n),$(e).find(".kad-slider .kad-slider-canvas").height(n),$(e).find(".kad-slider .kad-slide img.kt-ratio-img").css("top",a),$(e).find(".kad-slider .kad-slide img.kt-ratio-img").css("margin-top",r)}function t(e){var e,t=$(e="."+e).attr("data-ktslider-count"),i=$(e).attr("data-ktslider-height");if("1"==t)var n=$(e).find(".kad-slider .kad-slide img.kt-ratio-img").height();else var n=$(e).find(".kad-slider .seq-in .kad-slide img.kt-ratio-img").height();if(""==n&&(n=i),n>i)var a=i,r="50%",o=-+n/2;else var a=n,r=0,o=0;$(e).find(".kad-slider").height(a),$(e).find(".kad-slider .kad-slider-canvas").height(a),"1"==t?(jQuery(".kad-slider .kad-slide img.kt-ratio-img").css("top",r),jQuery(".kad-slider .kad-slide img.kt-ratio-img").css("margin-top",o)):(jQuery(".kad-slider .seq-in .kad-slide img.kt-ratio-img").css("top",r),jQuery(".kad-slider .seq-in .kad-slide img.kt-ratio-img").css("margin-top",o))}function i(e){var t,i;jQuery("#"+e+".kad-slider").find(".ksp-layer").each((function(){$(this).addClass($(this).data("in"))})),jQuery(".kad-slider .kad-slide-1").find(".ksp-layer").each((function(){var e=$(this).data("delay"),t=$(this).data("ease");t>1100?t-=500:t>600&&(t-=400);var i=e+t;$(this).css({opacity:0}),$(this).delay(i).queue((function(e){e(),$(this).css({opacity:1})}))}))}function n(e){var t=jQuery("#"+e+".kad-slider .kad-slide-1"),i=t.attr("data-video-slide");if("youtube"==i){var n=t.attr("data-video-id"),a=parseInt(t.attr("data-video-sound")),r=parseInt(t.attr("data-video-loop")),o=t.attr("data-video-ratio"),s=parseInt(t.attr("data-video-start")),d=parseInt(t.attr("data-video-playpause"));1==a?(a=!1,t.find(".ksp-background-video-mute").show()):a=!0,""!=o||(o="1.777777778"),""!=s||(s="0"),r=1==r,1==d&&t.find(".ksp-background-video-pause").show(),t.YTPlayer({ratio:o,width:t.width(),mute:a,repeat:r,videoId:n,host:"http://www.youtube.com",fitToBackground:!1,playerVars:{rel:0,start:s}})}else if("html5"==i){var u=t.attr("data-video-mp4"),l=t.attr("data-video-webm"),c=t.attr("data-video-poster"),a=parseInt(t.attr("data-video-sound")),r=parseInt(t.attr("data-video-loop")),d=parseInt(t.attr("data-video-playpause"));1==a?(a=!1,t.find(".ksp-background-video-mute").show()):a=!0,r=1==r,1==d&&t.find(".ksp-background-video-pause").show(),t.vidbg({mp4:u,webm:l,poster:c},{muted:a,loop:r,overlay:!1})}}function a(e){var t;if("1"==jQuery("."+e).attr("data-ktslider-count"))var i=jQuery("."+e+" .kad-slide");else var i=jQuery("."+e+" .kad-slider .seq-in .kad-slide");var n=i.attr("data-video-slide"),a;if("youtube"==n)(a=i.data("ytPlayer").player).pauseVideo();else if("html5"==n){var a;(a=i.find(".vidbg-container video")).get(0)&&(a.get(0).paused||a.get(0).pause())}}function r(e){var t;if("1"==jQuery("."+e).attr("data-ktslider-count"))var i=jQuery("."+e+" .kad-slide");else var i=jQuery("."+e+" .kad-slider .seq-in .kad-slide");var n=i.attr("data-video-slide");if("youtube"==n)if(void 0!==i.data("ytPlayer")){var a;(a=i.data("ytPlayer").player).playVideo()}else{var r=i.attr("data-video-id"),o=parseInt(i.attr("data-video-sound")),s=parseInt(i.attr("data-video-loop")),d=parseInt(i.attr("data-video-ratio")),u=parseInt(i.attr("data-video-start")),l=parseInt(i.attr("data-video-playpause"));1==o?(o=!1,i.find(".ksp-background-video-mute").show()):o=!0,""!=d||(d="16 / 9"),""!=u||(u="0"),s=1==s,1==l&&i.find(".ksp-background-video-pause").show(),i.YTPlayer({ratio:d,width:i.width(),mute:o,repeat:s,videoId:r,fitToBackground:!1,playerVars:{rel:0,start:u}})}else if("html5"==n){var a;if((a=i.find(".vidbg-container video")).get(0))a.get(0).play();else{var c=i.attr("data-video-mp4"),p=i.attr("data-video-webm"),h=i.attr("data-video-poster"),o=parseInt(i.attr("data-video-sound")),s=parseInt(i.attr("data-video-loop")),l=parseInt(i.attr("data-video-playpause"));1==o?(o=!1,i.find(".ksp-background-video-mute").show()):o=!0,s=1==s,1==l&&i.find(".ksp-background-video-pause").show(),i.vidbg({mp4:c,webm:p,poster:h},{muted:o,loop:s,overlay:!1})}}}function o(e){var t=jQuery("."+e).attr("data-ktslider-count");if(jQuery("."+e).find(".ksp-layer").each((function(){$(this).css({opacity:0})})),"1"==t)var i=jQuery("."+e+" .kad-slide");else var i=jQuery("."+e+" .kad-slider .seq-in .kad-slide");i.find(".ksp-layer").each((function(){var e=$(this).data("delay"),t=$(this).data("ease");t>1100?t-=500:t>600?t-=300:t>200&&(t-=200);var i=e+t;$(this).delay(i).queue((function(e){e(),$(this).css({opacity:1})}))}))}function s(e){setTimeout((function(){d(e)}),25)}function d(e){function i(e){return e*a()}function n(t,i){var n=$(e).height(),a=$(e).attr("data-ktslider-height"),r=n/a;if(n>=a)var o,s,d,u=t*r+(i*r-i)/2.5;else var u=t*r;return u}function a(){var t=$(e).width(),i=$(e).attr("data-ktslider-width");return t>=i?1:t/i}function r(){var t,i;return $(e).height()/$(e).attr("data-ktslider-height")}var o=e,e,s=$(e="."+e).attr("data-ktslider-height-type");if("full"==s){var d=jQuery(window).height(),u=$(e).data("ktslider-height-offset");$(u).length?offset_height=$(u).height():offset_height=0,$(e).find(".kad-slider").height(d-offset_height),$(e).find(".kad-slider .kad-slider-canvas").height(d-offset_height)}else"ratio"==s?t(o):($(e).find(".kad-slider").height(i($(e).attr("data-ktslider-height"))),$(e).find(".kad-slider .kad-slider-canvas").height(i($(e).attr("data-ktslider-height"))));$(e).find(".kad-slide").each((function(){$(this).find(".ksp-layer-wrap").each((function(){$(this).css({top:n($(this).data("top"),$(this).height()),left:i($(this).data("left"))});var e=$(this).find(".ksp-layer");e.hasClass("ksp-text-layer")?e.css({"line-height":n(e.data("line-height"))+"px","letter-spacing":i(e.data("letter-spacing"))+"px","font-size":i(e.data("font-size"))}):e.hasClass("ksp-btn-layer")?e.css({"line-height":i(e.data("line-height"))+"px","letter-spacing":i(e.data("letter-spacing"))+"px","padding-left":i(e.data("padding"))+"px","padding-right":i(e.data("padding"))+"px","border-width":i(e.data("border-width"))+"px","font-size":i(e.data("font-size"))}):e.hasClass("ksp-image-layer")&&e.css({width:i(e.data("width")),height:i(e.data("height"))})}))}))}function u(){var e=jQuery(window).height();jQuery(".kad-slider-wrapper .kad-slider").height(e),jQuery(".kad-slider-wrapper .kad-slider .kad-slider-canvas").height(e)}function l(e){var e,t=$(e="."+e).find(".kad-slide img.kt-ratio-img").height(),i=$(e).attr("data-ktslider-height");if(t>i)var n=i,a="50%",r=-+t/2;else var n=t,a=0,r=0;$(e).find(".kad-slider").height(n),$(e).find(".kad-slider .kad-slider-canvas").height(n),$(e).find(".kad-slider .kad-slide img").css("top",a),$(e).find(".kad-slider .kad-slide img").css("margin-top",r)}function c(e){var e,t=$(e="."+e).attr("data-ktslider-count"),i=$(e).attr("data-ktslider-height");if("1"==t)var n=$(e).find(".kad-slider .kad-slide img.kt-ratio-img").height();else var n=$(e).find(".kad-slider .seq-in .kad-slide img.kt-ratio-img").height();if(n>i)var a=i,r="50%",o=-+n/2;else var a=n,r=0,o=0;$(e).find(".kad-slider").height(a),$(e).find(".kad-slider .kad-slider-canvas").height(a),"1"==t?($(e).find(".kad-slider .kad-slide img").css("top",r),$(e).find(".kad-slider .kad-slide img").css("margin-top",o)):($(e).find(".kad-slider .seq-in .kad-slide img").css("top",r),$(e).find(".kad-slider .seq-in .kad-slide img").css("margin-top",o))}function p(){var e=-.004*$(window).scrollTop();$(".sliderclass .kad-slider-parallax .kad-slider .caption-case-inner").css({opacity:e+1}),$(".sliderclass .kad_fullslider_arrow").css({opacity:e+1}),$(".sliderclass .kad-slider ul.kad-slider-pagination").css({opacity:e+1})}$(".kad-slider-parallax .kad-slider .kad-slide").each((function(){$(this).css({backgroundPosition:"50% 0px"}),$(this).appear_ksp((function(){var e=$(this);$(window).scroll((function(){var t,i="50% "+-$(window).scrollTop()/10+"px";e.css({backgroundPosition:i})}))}))})),$(".ksp-background-video-buttons-youtube a").on("click",(function(){var e,t=$(this).closest(".kad-slide").data("ytPlayer").player;$(this).hasClass("ksp-background-video-play")?(t.playVideo(),$(this).siblings(".ksp-background-video-pause").show(),$(this).hide()):$(this).hasClass("ksp-background-video-pause")?(t.pauseVideo(),$(this).siblings(".ksp-background-video-play").show(),$(this).hide()):$(this).hasClass("ksp-background-video-mute")?(t.mute(),$(this).siblings(".ksp-background-video-unmute").show(),$(this).hide()):$(this).hasClass("ksp-background-video-unmute")&&(t.unMute(),$(this).siblings(".ksp-background-video-mute").show(),$(this).hide())})),$(".ksp-background-video-buttons-html5 a").on("click",(function(){var e,t=$(this).closest(".kad-slide").find(".vidbg-container video");$(this).hasClass("ksp-background-video-play")?(t.get(0).play(),$(this).siblings(".ksp-background-video-pause").show(),$(this).hide()):$(this).hasClass("ksp-background-video-pause")?(t.get(0).pause(),$(this).siblings(".ksp-background-video-play").show(),$(this).hide()):$(this).hasClass("ksp-background-video-mute")?(t.prop("muted",!0),$(this).siblings(".ksp-background-video-unmute").show(),$(this).hide()):$(this).hasClass("ksp-background-video-unmute")&&(t.prop("muted",!1),$(this).siblings(".ksp-background-video-mute").show(),$(this).hide())})),$(".ksp-slider-wrapper").each((function(t){var u=$(this),l=u.attr("data-ktslider-auto-play"),c=u.attr("data-ktslider-pause-time"),p=u.attr("data-ktslider-id"),h=u.attr("data-ktslider-height"),f=u.attr("data-ktslider-pause-hover"),v=u.attr("data-ktslider-height-type"),m=u.attr("data-ktslider-width"),g=u.attr("data-ktslider-count"),y="kad-slider-"+p;u.find(".ksp-btn-layer").each((function(){$(this).mouseover((function(){$(this).css("color",$(this).data("hcolor")),$(this).css("border-color",$(this).data("hborder-color")),$(this).css("background",$(this).data("hbackground-color"))})),$(this).mouseout((function(){$(this).css("color",$(this).data("color")),$(this).css("border-color",$(this).data("border-color")),$(this).css("background",$(this).data("background-color"))}))})),"ratio"==v?u.find(".kad-slide-1 img.kt-ratio-img").imagesLoaded((function(){e(y),d(y)})):d(y);var k={animateStartingFrameIn:!1,autoPlay:l="true"==l,preloader:!0,autoPlayPauseOnHover:f="true"==f,autoPlayInterval:c,fadeFrameWhenSkipped:!0,fadeFrameTime:700,pagination:".ksp-pag-"+p,nextButton:".ksp-next-"+p,prevButton:".ksp-prev-"+p},b=document.getElementById(y),T=sequence(b,k);1==g?T.preloaded=function(){n(y),i(y)}:T.ready=function(){n(y),i(y)},T.currentPhaseStarted=function(e,t){a(t.$container.id)},T.nextPhaseEnded="ratio"==v?function(e,t){d(t.$container.id),r(t.$container.id),o(t.$container.id)}:function(e,t){r(t.$container.id),o(t.$container.id)},T.throttledResize=function(e){d(e.$container.id)},$(window).on("panelsStretchRows",s(y))})),$(".sliderclass .kad-slider-parallax .kad-slider .caption-case-inner").css({opacity:1}),$(".sliderclass .kad_fullslider_arrow").css({opacity:1}),$(".sliderclass .kad-slider ul.kad-slider-pagination").css({opacity:1}),$(window).scroll(p),$(".kad-slider-wrapper").each((function(){var e=$(this),t=e.attr("data-ktslider-auto-play"),i=e.attr("data-ktslider-pause-time"),n=e.attr("data-ktslider-pause-hover"),a=e.attr("data-ktslider-id"),r=e.attr("data-ktslider-height"),o=e.attr("data-ktslider-height-type"),s=e.attr("data-ktslider-width"),d="kad-slider-"+a,p;if("full"==o)u(),isMobile_kt_slider.any()?$(window).on("orientationchange",(function(){u()})):$(window).resize((function(){clearTimeout(p),p=setTimeout(u,100)}));else if("ratio"==o){var p;if(l(d),isMobile_kt_slider.any())$(window).on("orientationchange",(function(){c()}));else $(window).resize((function(){clearTimeout(p),p=setTimeout(c,100)}))}var h={animateStartingFrameIn:!0,autoPlay:t="true"==t,preloader:!0,autoPlayPauseOnHover:n="true"==n,autoPlayInterval:i,fadeFrameWhenSkipped:!0,fadeFrameTime:700,pagination:".kad-pag-"+a,nextButton:".kad-next-"+a,prevButton:".kad-prev-"+a},f=document.getElementById(d),v=sequence(f,h);"ratio"==o&&(v.nextPhaseEnded=function(e,t){c(t.$container.id)},v.throttledResize=function(e){c(e.$container.id)})}))}));