!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.slideout=t()}}(function(){var t,e,n;return function i(t,e,n){function o(s,a){if(!e[s]){if(!t[s]){var u=typeof require=="function"&&require;if(!a&&u)return u(s,!0);if(r)return r(s,!0);var f=new error("cannot find module '"+s+"'");throw f.code="module_not_found",f}var l=e[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return o(n?n:e)},l,l.exports,i,t,e,n)}return e[s].exports}var r=typeof require=="function"&&require;for(var s=0;st._tolerance?t.open():t.close()}t._moved=false});this.panel.addeventlistener(l.move,function(e){if(s||t._preventopen||typeof e.touches==="undefined"){return}var n=e.touches[0].clientx-t._startoffsetx;var i=t._currentoffsetx=n;if(math.abs(i)>t._padding){return}if(math.abs(n)>20){t._opening=true;var o=n*t._orientation;if(t._opened&&o>0||!t._opened&&o<0){return}if(o<=0){i=n+t._padding*t._orientation;t._opening=false}if(!t._moved&&u.classname.search("slideout-open")===-1){u.classname+=" slideout-open"}t.panel.style[c+"transform"]=t.panel.style.transform="translate3d("+i+"px, 0, 0)";t.emit("translate",i);t._moved=true}})};d.prototype.enabletouch=function(){this._touch=true;return this};d.prototype.disabletouch=function(){this._touch=false;return this};e.exports=d},{decouple:2,emitter:3}],2:[function(t,e,n){"use strict";var i=function(){return window.requestanimationframe||window.webkitrequestanimationframe||function(t){window.settimeout(t,1e3/60)}}();function o(t,e,n){var o,r=false;function s(t){o=t;a()}function a(){if(!r){i(u);r=true}}function u(){n.call(t,o);r=false}t.addeventlistener(e,s,false)}e.exports=o},{}],3:[function(t,e,n){"use strict";var i=function(t,e){if(!(t instanceof e)){throw new typeerror("cannot call a class as a function")}};n.__esmodule=true;var o=function(){function t(){i(this,t)}t.prototype.on=function e(t,n){this._eventcollection=this._eventcollection||{};this._eventcollection[t]=this._eventcollection[t]||[];this._eventcollection[t].push(n);return this};t.prototype.once=function n(t,e){var n=this;function i(){n.off(t,i);e.apply(this,arguments)}i.listener=e;this.on(t,i);return this};t.prototype.off=function o(t,e){var n=undefined;if(!this._eventcollection||!(n=this._eventcollection[t])){return this}n.foreach(function(t,i){if(t===e||t.listener===e){n.splice(i,1)}});if(n.length===0){delete this._eventcollection[t]}return this};t.prototype.emit=function r(t){var e=this;for(var n=arguments.length,i=array(n>1?n-1:0),o=1;o