/*! sidr - v2.2.1 - 2016-02-17 * http://www.berriart.com/sidr/ * copyright (c) 2013-2016 alberto varela; licensed mit */ !function(){"use strict";function a(a,b,c){var d=new o(b);switch(a){case"open":d.open(c);break;case"close":d.close(c);break;case"toggle":d.toggle(c);break;default:p.error("method "+a+" does not exist on jquery.sidr")}}function b(a){return"status"===a?h:s[a]?s[a].apply(this,array.prototype.slice.call(arguments,1)):"function"!=typeof a&&"string"!=typeof a&&a?void q.error("method "+a+" does not exist on jquery.sidr"):s.toggle.apply(this,arguments)}function c(a,b){if("function"==typeof b.source){var c=b.source(name);a.html(c)}else if("string"==typeof b.source&&i.isurl(b.source))u.get(b.source,function(b){a.html(b)});else if("string"==typeof b.source){var d="",e=b.source.split(",");if(u.each(e,function(a,b){d+='
'+u(b).html()+"
"}),b.renaming){var f=u("
").html(d);f.find("*").each(function(a,b){var c=u(b);i.addprefixes(c)}),d=f.html()}a.html(d)}else null!==b.source&&u.error("invalid sidr source");return a}function d(a){var d=i.transitions,e=u.extend({name:"sidr",speed:200,side:"left",source:null,renaming:!0,body:"body",displace:!0,timing:"ease",method:"toggle",bind:"touchstart click",onopen:function(){},onclose:function(){},onopenend:function(){},oncloseend:function(){}},a),f=e.name,g=u("#"+f);return 0===g.length&&(g=u("
").attr("id",f).appendto(u("body"))),d.supported&&g.css(d.property,e.side+" "+e.speed/1e3+"s "+e.timing),g.addclass("sidr").addclass(e.side).data({speed:e.speed,side:e.side,body:e.body,displace:e.displace,timing:e.timing,method:e.method,onopen:e.onopen,onclose:e.onclose,onopenend:e.onopenend,oncloseend:e.oncloseend}),g=c(g,e),this.each(function(){var a=u(this),c=a.data("sidr"),d=!1;c||(h.moving=!1,h.opened=!1,a.data("sidr",f),a.bind(e.bind,function(a){a.preventdefault(),d||(d=!0,b(e.method,f),settimeout(function(){d=!1},100))}))})}var e={};e.classcallcheck=function(a,b){if(!(a instanceof b))throw new typeerror("cannot call a class as a function")},e.createclass=function(){function a(a,b){for(var c=0;c