!function(t){"function"==typeof define&&define.amd?define([],t):"undefined"!=typeof module&&null!==module&&module.exports?module.exports=t:t()}((function(){var t=Object.assign||window.jQuery&&jQuery.extend,e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t,e){return window.setTimeout((function(){t()}),25)};!function(){if("function"==typeof window.CustomEvent)return!1;function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}t.prototype=window.Event.prototype,window.CustomEvent=t}();var n={textarea:!0,input:!0,select:!0,button:!0},i="mousemove",o="mouseup dragstart",a="mouseup",u="touchmove",c="touchend",r="touchend",d=/\s+/,f={bubbles:!0,cancelable:!0},m="function"==typeof Symbol?Symbol("events"):{};function s(t){return t[m]||(t[m]={})}function v(t,e,n,i,o){e=e.split(d);var a,u=s(t),c=e.length;function r(t){n(t,i)}for(;c--;)(u[a=e[c]]||(u[a]=[])).push([n,r]),t.addEventListener(a,r)}function l(t,e,n,i){e=e.split(d);var o,a,u,c=s(t),r=e.length;if(c)for(;r--;)if(a=c[o=e[r]])for(u=a.length;u--;)a[u][0]===n&&(t.removeEventListener(o,a[u][1]),a.splice(u,1))}function p(e,n,i){var o=function(t){return new CustomEvent(t,f)}(n);i&&t(o,i),e.dispatchEvent(o)}function g(t){var n=t,i=!1,o=!1;function a(t){i?(n(),e(a),o=!0,i=!1):o=!1}this.kick=function(t){i=!0,o||a()},this.end=function(t){var e=n;t&&(o?(n=i?function(){e(),t()}:t,i=!0):t())}}function h(){}function X(t){t.preventDefault()}function Y(t,e){var n,i;if(t.identifiedTouch)return t.identifiedTouch(e);for(n=-1,i=t.length;++n