// unslider js !function($){return $?($.Unslider=function(t,n){var e=this;return e._="unslider",e.defaults={autoplay:!1,delay:3e3,speed:750,easing:"swing",keys:{prev:37,next:39},nav:!0,arrows:{prev:'',next:''},animation:"horizontal",selectors:{container:"ul:first",slides:"li"},animateHeight:!1,activeClass:e._+"-active",swipe:!0},e.$context=t,e.options={},e.$parent=null,e.$container=null,e.$slides=null,e.$nav=null,e.$arrows=[],e.total=0,e.current=0,e.prefix=e._+"-",e.eventSuffix="."+e.prefix+~~(2e3*Math.random()),e.interval=null,e.init=function(t){return e.options=$.extend({},e.defaults,t),e.$container=e.$context.find(e.options.selectors.container).addClass(e.prefix+"wrap"),e.$slides=e.$container.children(e.options.selectors.slides),e.setup(),$.each(["nav","arrows","keys","infinite"],function(t,n){e.options[n]&&e["init"+$._ucfirst(n)]()}),jQuery.event.special.swipe&&e.options.swipe&&e.initSwipe(),e.options.autoplay&&e.start(),e.calculateSlides(),e.$context.trigger(e._+".ready"),e.animate(e.options.index||e.current,"init")},e.setup=function(){e.$context.addClass(e.prefix+e.options.animation).wrap('
'),e.$parent=e.$context.parent("."+e._);var t=e.$context.css("position");"static"===t&&e.$context.css("position","relative"),e.$context.css("overflow","hidden")},e.calculateSlides=function(){if(e.total=e.$slides.length,"fade"!==e.options.animation){var t="width";"vertical"===e.options.animation&&(t="height"),e.$container.css(t,100*e.total+"%").addClass(e.prefix+"carousel"),e.$slides.css(t,100/e.total+"%")}},e.start=function(){return e.interval=setTimeout(function(){e.next()},e.options.delay),e},e.stop=function(){return clearTimeout(e.interval),e},e.initNav=function(){var t=$('');e.$slides.each(function(n){var i=this.getAttribute("data-nav")||n+1;$.isFunction(e.options.nav)&&(i=e.options.nav.call(e.$slides.eq(n),n,i)),t.children("ol").append('
  • '+i+"
  • ")}),e.$nav=t.insertAfter(e.$context),e.$nav.find("li").on("click"+e.eventSuffix,function(){var t=$(this).addClass(e.options.activeClass);t.siblings().removeClass(e.options.activeClass),e.animate(t.attr("data-slide"))})},e.initArrows=function(){e.options.arrows===!0&&(e.options.arrows=e.defaults.arrows),$.each(e.options.arrows,function(t,n){e.$arrows.push($(n).insertAfter(e.$context).on("click"+e.eventSuffix,e[t]))})},e.initKeys=function(){e.options.keys===!0&&(e.options.keys=e.defaults.keys),$(document).on("keyup"+e.eventSuffix,function(t){$.each(e.options.keys,function(n,i){t.which===i&&$.isFunction(e[n])&&e[n].call(e)})})},e.initSwipe=function(){var t=e.$slides.width();e.$container.on({swipeleft:e.next,swiperight:e.prev,movestart:function(t){return t.distX>t.distY&&t.distX<-t.distY||t.distX-t.distY?!!t.preventDefault():void e.$container.css("position","relative")}}),"fade"!==e.options.animation&&e.$container.on({move:function(n){e.$container.css("left",-(100*e.current)+100*n.distX/t+"%")},moveend:function(n){return Math.abs(n.distX)/t<$.event.special.swipe.settings.threshold?e._move(e.$container,{left:-(100*e.current)+"%"},!1,200):void 0}})},e.initInfinite=function(){var t=["first","last"];$.each(t,function(n,i){e.$slides.push.apply(e.$slides,e.$slides.filter(':not(".'+e._+'-clone")')[i]().clone().addClass(e._+"-clone")["insert"+(0===n?"After":"Before")](e.$slides[t[~~!n]]()))})},e.destroyArrows=function(){$.each(e.$arrows,function(t){t.remove()})},e.destroySwipe=function(){e.$container.off("movestart move moveend")},e.destroyKeys=function(){$(document).off("keyup"+e.eventSuffix)},e.setIndex=function(t){return 0>t&&(t=e.total-1),e.current=Math.min(Math.max(0,t),e.total-1),e.options.nav&&e.$nav.find('[data-slide="'+e.current+'"]')._active(e.options.activeClass),e.$slides.eq(e.current)._active(e.options.activeClass),e},e.animate=function(t,n){if("first"===t&&(t=0),"last"===t&&(t=e.total),isNaN(t))return e;e.options.autoplay&&e.stop().start(),e.setIndex(t),e.$context.trigger(e._+".change",[t,e.$slides.eq(t)]);var i="animate"+$._ucfirst(e.options.animation);return $.isFunction(e[i])&&e[i](e.current,n),e},e.next=function(){var t=e.current+1;return t>=e.total&&(t=0),e.animate(t,"next")},e.prev=function(){return e.animate(e.current-1,"prev")},e.animateHorizontal=function(t){var n="left";return"rtl"===e.$context.attr("dir")&&(n="right"),e.options.infinite&&e.$container.css("margin-"+n,"-100%"),e.slide(n,t)},e.animateVertical=function(t){return e.options.animateHeight=!0,e.options.infinite&&e.$container.css("margin-top",-e.$slides.outerHeight()),e.slide("top",t)},e.slide=function(t,n){if(e.options.animateHeight&&e._move(e.$context,{height:e.$slides.eq(n).outerHeight()},!1),e.options.infinite){var i;n===e.total-1&&(i=e.total-3,n=-1),n===e.total-2&&(i=0,n=e.total-2),"number"==typeof i&&(e.setIndex(i),e.$context.on(e._+".moved",function(){e.current===i&&e.$container.css(t,-(100*i)+"%").off(e._+".moved")}))}var o={};return o[t]=-(100*n)+"%",e._move(e.$container,o)},e.animateFade=function(t){var n=e.$slides.eq(t).addClass(e.options.activeClass);e._move(n.siblings().removeClass(e.options.activeClass),{opacity:0}),e._move(n,{opacity:1},!1)},e._move=function(t,n,i,o){return i!==!1&&(i=function(){e.$context.trigger(e._+".moved")}),t._move(n,o||e.options.speed,e.options.easing,i)},e.init(n)},$.fn._active=function(t){return this.addClass(t).siblings().removeClass(t)},$._ucfirst=function(t){return(t+"").toLowerCase().replace(/^./,function(t){return t.toUpperCase()})},$.fn._move=function(){return this.stop(!0,!0),$.fn[$.fn.velocity?"velocity":"animate"].apply(this,arguments)},void($.fn.unslider=function(t){return this.each(function(){var n=$(this);if("string"==typeof t&&n.data("unslider")){t=t.split(":");var e=n.data("unslider")[t[0]];if($.isFunction(e))return e.apply(n,t[1]?t[1].split(","):null)}return n.data("unslider",new $.Unslider(n,t))})})):console.warn("Unslider needs jQuery")}(window.jQuery); // unslider jq move !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e,t){function n(e){function t(e){i?(n(),O(t),a=!0,i=!1):a=!1}var n=e,i=!1,a=!1;this.kick=function(e){i=!0,a||t()},this.end=function(e){var t=n;e&&(a?(n=i?function(){t(),e()}:e,i=!0):e())}}function i(){return!0}function a(){return!1}function o(e){e.preventDefault()}function r(e){z[e.target.tagName.toLowerCase()]||e.preventDefault()}function u(e){return 1===e.which&&!e.ctrlKey&&!e.altKey}function c(e,t){var n,i;if(e.identifiedTouch)return e.identifiedTouch(t);for(n=-1,i=e.length;++na*a+o*o||y(e,t,n,a,o,i)}function Y(){return this._handled=i,!1}function w(e){e._handled()}function y(e,t,n,i,a,o){var r,u;t.target;r=e.targetTouches,u=e.timeStamp-t.timeStamp,t.type="movestart",t.distX=i,t.distY=a,t.deltaX=i,t.deltaY=a,t.pageX=n.pageX,t.pageY=n.pageY,t.velocityX=i/u,t.velocityY=a/u,t.targetTouches=r,t.finger=r?r.length:1,t._handled=Y,t._preventTouchmoveDefault=function(){e.preventDefault()},N(t.target,t),o(t.identifier)}function T(e){var t=e.data.event,n=e.data.timer;D(t,e,e.timeStamp,n)}function S(e){var t=e.data.event,n=e.data.timer;k(),F(t,n,function(){setTimeout(function(){L(t.target,"click",a)},0)})}function k(e){L(document,Q.move,T),L(document,Q.end,S)}function _(e){var t=e.data.event,n=e.data.timer,i=d(e,t);i&&(e.preventDefault(),t.targetTouches=e.targetTouches,D(t,i,e.timeStamp,n))}function q(e){var t=e.data.event,n=e.data.timer,i=c(e.changedTouches,t.identifier);i&&(A(t),F(t,n))}function A(e){L(document,"."+e.identifier,_),L(document,"."+e.identifier,q)}function D(e,t,n,i){var a=n-e.timeStamp;e.type="move",e.distX=t.pageX-e.startX,e.distY=t.pageY-e.startY,e.deltaX=t.pageX-e.pageX,e.deltaY=t.pageY-e.pageY,e.velocityX=.3*e.velocityX+.7*e.deltaX/a,e.velocityY=.3*e.velocityY+.7*e.deltaY/a,e.pageX=t.pageX,e.pageY=t.pageY,i.kick()}function F(e,t,n){t.end(function(){return e.type="moveend",N(e.target,e),n&&n()})}function R(e,t,n){return K(this,"movestart.move",w),!0}function x(e){return L(this,"dragstart drag",o),L(this,"mousedown touchstart",r),L(this,"movestart",w),!0}function b(e){"move"!==e.namespace&&"moveend"!==e.namespace&&(K(this,"dragstart."+e.guid+" drag."+e.guid,o,t,e.selector),K(this,"mousedown."+e.guid,r,t,e.selector))}function j(e){"move"!==e.namespace&&"moveend"!==e.namespace&&(L(this,"dragstart."+e.guid+" drag."+e.guid),L(this,"mousedown."+e.guid))}var C=6,K=e.event.add,L=e.event.remove,N=function(t,n,i){e.event.trigger(n,i,t)},O=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){return window.setTimeout(function(){e()},25)}}(),z={textarea:!0,input:!0,select:!0,button:!0},Q={move:"mousemove",cancel:"mouseup dragstart",end:"mouseup"},B={move:"touchmove",cancel:"touchend",end:"touchend"};e.event.special.movestart={setup:R,teardown:x,add:b,remove:j,_default:function(e){var i,o;e._handled()&&(i={target:e.target,startX:e.startX,startY:e.startY,pageX:e.pageX,pageY:e.pageY,distX:e.distX,distY:e.distY,deltaX:e.deltaX,deltaY:e.deltaY,velocityX:e.velocityX,velocityY:e.velocityY,timeStamp:e.timeStamp,identifier:e.identifier,targetTouches:e.targetTouches,finger:e.finger},o={event:i,timer:new n(function(t){N(e.target,i)})},e.identifier===t?(K(e.target,"click",a),K(document,Q.move,T,o),K(document,Q.end,S,o)):(e._preventTouchmoveDefault(),K(document,B.move+"."+e.identifier,_,o),K(document,B.end+"."+e.identifier,q,o)))}},e.event.special.move={setup:function(){K(this,"movestart.move",e.noop)},teardown:function(){L(this,"movestart.move",e.noop)}},e.event.special.moveend={setup:function(){K(this,"movestart.moveend",e.noop)},teardown:function(){L(this,"movestart.moveend",e.noop)}},K(document,"mousedown.move",m),K(document,"touchstart.move",g),"function"==typeof Array.prototype.indexOf&&!function(e,t){for(var n=["changedTouches","targetTouches"],i=n.length;i--;)-1===e.event.props.indexOf(n[i])&&e.event.props.push(n[i])}(e)}); // jq swipe !function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t,e){function i(t){var e,i,s;e=t.target.offsetWidth,i=t.target.offsetHeight,s={distX:t.distX,distY:t.distY,velocityX:t.velocityX,velocityY:t.velocityY,finger:t.finger},t.distX>t.distY?t.distX>-t.distY?(t.distX/e>o.threshold||t.velocityX*t.distX/e*o.sensitivity>1)&&(s.type="swiperight",d(t.currentTarget,s)):(-t.distY/i>o.threshold||t.velocityY*t.distY/e*o.sensitivity>1)&&(s.type="swipeup",d(t.currentTarget,s)):t.distX>-t.distY?(t.distY/i>o.threshold||t.velocityY*t.distY/e*o.sensitivity>1)&&(s.type="swipedown",d(t.currentTarget,s)):(-t.distX/e>o.threshold||t.velocityX*t.distX/e*o.sensitivity>1)&&(s.type="swipeleft",d(t.currentTarget,s))}function s(e){var i=t.data(e,"event_swipe");return i||(i={count:0},t.data(e,"event_swipe",i)),i}var n=t.event.add,r=t.event.remove,d=function(e,i,s){t.event.trigger(i,s,e)},o={threshold:.4,sensitivity:6};t.event.special.swipe=t.event.special.swipeleft=t.event.special.swiperight=t.event.special.swipeup=t.event.special.swipedown={setup:function(t,e,r){var t=s(this);if(!(t.count++>0))return n(this,"moveend",i),!0},teardown:function(){var t=s(this);if(!(--t.count>0))return r(this,"moveend",i),!0},settings:o}});