!function(e){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery.touchSwipe.js"],e):e(jQuery)}(function(ae){"use strict";var ue="left",se="right",ce="up",pe="down",he="in",de="out",fe="none",ge="auto",we="swipe",ve="pinch",Te="tap",be="doubletap",Se="longtap",Ee="horizontal",me="vertical",ye="all",Oe=10,xe="start",Me="move",Pe="end",De="cancel",Le="ontouchstart"in window,Re=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,ke=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,Ae="TouchSwipe";function i(e,v){var t=Le||ke||!v.fallbackToMouseEvents,n=t?ke?Re?"MSPointerDown":"pointerdown":"touchstart":"mousedown",i=t?ke?Re?"MSPointerMove":"pointermove":"touchmove":"mousemove",r=t?ke?Re?"MSPointerUp":"pointerup":"touchend":"mouseup",l=t?null:"mouseleave",o=ke?Re?"MSPointerCancel":"pointercancel":"touchcancel",T=0,b=null,S=0,E=0,m=0,y=1,O=0,x=0,M=null,a=ae(e),P="start",D=0,L=null,u=0,R=0,s=0,c=0,p=0,h=null,k=null;try{a.bind(n,d),a.bind(o,w)}catch(e){ae.error("events not supported "+n+","+o+" on jQuery.swipe")}function d(e){if(!0!==a.data(Ae+"_intouch")&&!(0r.left&&i.xr.top&&i.yv.longTapThreshold&&T=v.threshold),e}function _(){var e=!1;return null!==v.cancelThreshold&&null!==b&&(e=ne(b)-T>=v.cancelThreshold),e}function Q(){return!v.maxTimeThreshold||!(S>=v.maxTimeThreshold)}function C(){var e=V(),t=z(),n=null===v.pinchThreshold||O>=v.pinchThreshold;return e&&t&&n}function X(){return!!(v.pinchStatus||v.pinchIn||v.pinchOut)}function Y(){return!(!C()||!X())}function q(){var e=Q(),t=H(),n=V(),i=z();return!_()&&i&&n&&t&&e}function W(){return!!(v.swipe||v.swipeStatus||v.swipeLeft||v.swipeRight||v.swipeUp||v.swipeDown)}function F(){return!(!q()||!W())}function V(){return D===v.fingers||v.fingers===ye||!Le}function z(){return 0!==L[0].end.x}function G(){return!!v.tap}function Z(){return!!v.doubleTap}function B(){if(null==p)return!1;var e=oe();return Z()&&e-p<=v.doubleTapThreshold}function J(){c=s=0}function K(){var e=!1;s&&(oe()-s<=v.fingerReleaseThreshold&&(e=!0));return e}function $(e){!0===e?(a.bind(i,f),a.bind(r,g),l&&a.bind(l,A)):(a.unbind(i,f,!1),a.unbind(r,g,!1),l&&a.unbind(l,A,!1)),a.data(Ae+"_intouch",!0===e)}function ee(e,t){var n=void 0!==t.identifier?t.identifier:0;return L[e].identifier=n,L[e].start.x=L[e].end.x=t.pageX||t.clientX,L[e].start.y=L[e].end.y=t.pageY||t.clientY,L[e]}function te(e){var t=function(e){for(var t=0;t