/* Zepto v1.2.0-28-g763b3d6 - zepto event - zeptojs.com/license */ !function(t,e){“function”==typeof define&&define.amd?define(function(){return e(t)}):e(t)}(window,function(t){var e=function(){function Z(t){return null==t?String(t):C||“object”}function j(t){return“function”==Z(t)}function k(t){return null!=t&&t==t.window}function D(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function M(t){return“object”==Z(t)}function z(t){return M(t)&&!k(t)&&Object.getPrototypeOf(t)==Object.prototype}function V(t){var e=!!t&&“length”in t&&t.length,n=i.type(t);return“function”!=n&&!k(t)&&(“array”==n||0===e||“number”==typeof e&&e>0&&e-1 in t)}function _(t){return u.call(t,function(t){return null!=t})}function B(t){return t.length>0?i.fn.concat.apply([],t):t}function F(t){return t.replace(/::/g,“/”).replace(/(+)([A-Z])/g,“$1_$2”).replace(/()([A-Z])/g,“$1_$2”).replace(/_/g,“-”).toLowerCase()}function q(t){return t in l?l:l=new RegExp(“(^|\s)”t“(\s|$)”)}function I(t,e){return“number”!=typeof e||h?e:e+“px”}function R(t){var e,n;return c||(e=a.createElement(t),a.body.appendChild(e),n=getComputedStyle(e,“”).getPropertyValue(“display”),e.parentNode.removeChild(e),“none”==n&&(n=“block”),c=n),c}function H(t){return“children”in t?f.call(t.children):i.map(t.childNodes,function(t){return 1==t.nodeType?t:void 0})}function X(t,e){var n,i=t?t.length:0;for(n=0;i>n;n++)this=t;this.length=i,this.selector=e||“”}function Y(t,i,r){for(n in i)r&&(z(i)||$(i))?(z(i)&&!z(t)&&(t={}),$(i)&&!$(t)&&(t=[]),Y(t,i,r)):i!==e&&(t=i)}function J(t,e){return null==e?i(t):i(t).filter(e)}function U(t,e,n,i){return j(e)?e.call(t,n,i):e}function W(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function G(t,n){var i=t.className||“”,r=i&&i.baseVal!==e;return n===e?r?i.baseVal:i:void(r?i.baseVal=n:t.className=n)}function K(t){try{return t?“true”==t||(“false”==t?!1:“null”==t?null:t“”==t?+t:/^[/.test(t)?i.parseJSON(t):t):t}catch(e){return t}}function Q(t,e){e(t);for(var n=0,i=t.childNodes.length;i>n;n++)Q(t.childNodes,e)}var d=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,m=/<(?!area|br|col|embed|hr|img|input|link|meta|param)((+)[^>]*)/>/gi,g=/^(?:body|html)$/i,v=/()/g,y=,E=,b=a.createElement(”table“),w=a.createElement(”tr“),x={tr:a.createElement(”tbody“),tbody:b,thead:b,tfoot:b,td:w,th:w,”*“:a.createElement(”div“)},N=/^*$/,C={},S=C.toString,O={},A=a.createElement(”div“),L={tabindex:”tabIndex“,readonly:”readOnly“,”for“:”htmlFor“,”class“:”className“,maxlength:”maxLength“,cellspacing:”cellSpacing“,cellpadding:”cellPadding“,rowspan:”rowSpan“,colspan:”colSpan“,usemap:”useMap“,frameborder:”frameBorder“,contenteditable:”contentEditable“},$=Array.isArray||function(t){return t instanceof Array};return O.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var i,r=t.parentNode,o=!r;return o&&(r=A).appendChild(t),i=~O.qsa(r,e).indexOf(t),o&&A.removeChild(t),i},P=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():”“})},T=function(t){return u.call(t,function(e,n){return t.indexOf(e)==n})},O.fragment=function(t,n,r){var o,s,u;return d.test(t)&&(o=i(a.createElement(RegExp.$1))),o||(t.replace&&(t=t.replace(m,”<$1></$2>“)),n===e&&(n=p.test(t)&&RegExp.$1),n in x||(n=”*“),u=x,u.innerHTML=”“+t,o=i.each(f.call(u.childNodes),function(){u.removeChild(this)})),z®&&(s=i(o),i.each(r,function(t,e){y.indexOf(t)>-1?s(e):s.attr(t,e)})),o},O.Z=function(t,e){return new X(t,e)},O.isZ=function(t){return t instanceof O.Z},O.init=function(t,n){var r;if(!t)return O.Z();if(”string“==typeof t)if(t=t.trim(),”<"==t&&p.test(t))r=O.fragment(t,RegExp.$1,n),t=null;else{if(n!==e)return i(n).find(t);r=O.qsa(a,t)}else{if(j(t))return i(a).ready(t);if(O.isZ(t))return t;if($(t))r=_(t);else if(M(t))r=,t=null;else if(p.test(t))r=O.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==e)return i(n).find(t);r=O.qsa(a,t)}}return O.Z(r,t)},i=function(t,e){return O.init(t,e)},i.extend=function(t){var e,n=f.call(arguments,1);return“boolean”==typeof t&&(e=t,t=n.shift()),n.forEach(function(n){Y(t,n,e)}),t},O.qsa=function(t,e){var n,i=“#”==e,r=!i&&“.”==e,o=i||r?e.slice(1):e,s=N.test(o);return t.getElementById&&s&&i?(n=t.getElementById(o))?:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:f.call(s&&!i&&t.getElementsByClassName?r?t.getElementsByClassName(o):t.getElementsByTagName(e):t.querySelectorAll(e))},i.contains=a.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},i.type=Z,i.isFunction=j,i.isWindow=k,i.isArray=$,i.isPlainObject=z,i.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},i.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&“boolean”!=n&&(“string”!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},i.inArray=function(t,e,n){return o.indexOf.call(e,t,n)},i.camelCase=P,i.trim=function(t){return null==t?“”:String.prototype.trim.call(t)},i.uuid=0,i.support={},i.expr={},i.noop=function(){},i.map=function(t,e){var n,r,o,i=[];if(V(t))for(r=0;r,r),null!=n&&i.push(n);else for(o in t)n=e(t,o),null!=n&&i.push(n);return B(i)},i.each=function(t,e){var n,i;if(V(t)){for(n=0;n,n,t)===!1)return t}else for(i in t)if(e.call(t,i,t)===!1)return t;return t},i.grep=function(t,e){return u.call(t,e)},t.JSON&&(i.parseJSON=JSON.parse),i.each(“Boolean Number String Function Array Date RegExp Object Error”.split(“ ”),function(t,e){C[“[object ”e“]”]=e.toLowerCase()}),i.fn={constructor:O.Z,length:0,forEach:o.forEach,reduce:o.reduce,push:o.push,sort:o.sort,splice:o.splice,indexOf:o.indexOf,concat:function(){var t,e,n=[];for(t=0;t,n=O.isZ(e)?e.toArray():e;return s.apply(O.isZ(this)?this.toArray():this,n)},map:function(t){return i(i.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return i(f.apply(this,arguments))},ready:function(e){if(“complete”===a.readyState||“loading”!==a.readyState&&!a.documentElement.doScroll)setTimeout(function(){e(i)},0);else{var n=function(){a.removeEventListener(“DOMContentLoaded”,n,!1),t.removeEventListener(“load”,n,!1),e(i)};a.addEventListener(“DOMContentLoaded”,n,!1),t.addEventListener(“load”,n,!1)}return this},get:function(t){return t?this.length>0&&O.matches(this,t):t&&this.selector==t.selector},not:function(t){var n=[];if(j(t)&&t.call!==e)this.each(function(e){t.call(this,e)||n.push(this)});else{var r=”string“==typeof t?this.filter(t):V(t)&&j(t.item)?f.call(t):i(t);this.forEach(function(t){r.indexOf(t)<0&&n.push(t)})}return i(n)},has:function(t){return this.filter(function(){return M(t)?i.contains(this,t):i(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this;return t&&!M(t)?t:i(t)},last:function(){var t=this;return t&&!M(t)?t:i(t)},find:function(t){var e,n=this;return e=t?”object“==typeof t?i(t).filter(function(){var t=this;return o.some.call(n,function(e){return i.contains(e,t)})}):1==this.length?i(O.qsa(this,t)):this.map(function(){return O.qsa(this,t)}):i()},closest:function(t,e){var n=[],r=”object“==typeof t&&i(t);return this.each(function(i,o){for(;o&&!(r?r.indexOf(o)>=0:O.matches(o,t));)o=o!==e&&!D(o)&&o.parentNode;o&&n.indexOf(o)<0&&n.push(o)}),i(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=i.map(n,function(t){return(t=t.parentNode)&&!D(t)&&e.indexOf(t)<0?(e.push(t),t):void 0});return J(e,t)},parent:function(t){return J(T(this.pluck(”parentNode“)),t)},children:function(t){return J(this.map(function(){return H(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||f.call(this.childNodes)})},siblings:function(t){return J(this.map(function(t,e){return u.call(H(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=”“})},pluck:function(t){return i.map(this,function(e){return e})},show:function(){return this.each(function(){”none“==this.style.display&&(this.style.display=”“),”none“==getComputedStyle(this,”“).getPropertyValue(”display“)&&(this.style.display=R(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=j(t);if(this&&!e)var n=i(t).get(0),r=n.parentNode||this.length>1;return this.each(function(o){i(this).wrapAll(e?t.call(this,o):r?n.cloneNode(!0):n)})},wrapAll:function(t){if(this){i(this).before(t=i(t));for(var e;(e=t.children()).length;)t=e.first();i(t).append(this)}return this},wrapInner:function(t){var e=j(t);return this.each(function(n){var r=i(this),o=r.contents(),s=e?t.call(this,n):t;o.length?o.wrapAll(s):r.append(s)})},unwrap:function(){return this.parent().each(function(){i(this).replaceWith(i(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css(”display“,”none“)},toggle:function(t){return this.each(function(){var n=i(this);(t===e?”none“==n.css(”display“):t)?n.show():n.hide()})},prev:function(t){return i(this.pluck(”previousElementSibling“)).filter(t||”*“)},next:function(t){return i(this.pluck(”nextElementSibling“)).filter(t||”*“)},html:function(t){return 0 in arguments?this.each(function(e){var n=this.innerHTML;i(this).empty().append(U(this,t,e,n))}):0 in this?this.innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var n=U(this,t,e,this.textContent);this.textContent=null==n?”“:”“+n}):0 in this?this.pluck(”textContent“).join(”“):null},attr:function(t,i){var r;return”string“!=typeof t||1 in arguments?this.each(function(e){if(1===this.nodeType)if(M(t))for(n in t)W(this,n,t);else W(this,t,U(this,i,e,this.getAttribute(t)))}):0 in this&&1==this.nodeType&&null!=(r=this.getAttribute(t))?r:e},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(” “).forEach(function(t){W(this,t)},this)})},prop:function(t,e){return t=L||t,”string“!=typeof t||1 in arguments?this.each(function(i){if(M(t))for(n in t)this[L||n]=t;else this=U(this,e,i,this)}):this&&this[t]},removeProp:function(t){return t=L||t,this.each(function(){delete this})},data:function(t,n){var i=”data-“+t.replace(v,”-$1“).toLowerCase(),r=1 in arguments?this.attr(i,n):this.attr(i);return null!==r?K®:e},val:function(t){return 0 in arguments?(null==t&&(t=”“),this.each(function(e){this.value=U(this,t,e,this.value)})):this&&(this.multiple?i(this).find(”option“).filter(function(){return this.selected}).pluck(”value“):this.value)},offset:function(e){if(e)return this.each(function(t){var n=i(this),r=U(this,e,t,n.offset()),o=n.offsetParent().offset(),s={top:r.top-o.top,left:r.left-o.left};”static“==n.css(”position“)&&(s.position=”relative“),n.css(s)});if(!this.length)return null;if(a.documentElement!==this&&!i.contains(a.documentElement,this))return{top:0,left:0};var n=this.getBoundingClientRect();return{left:n.left+t.pageXOffset,top:n.top+t.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(t,e){if(arguments.length<2){var r=this;if(”string“==typeof t){if(!r)return;return r.style||getComputedStyle(r,”“).getPropertyValue(t)}if($(t)){if(!r)return;var o={},s=getComputedStyle(r,”“);return i.each(t,function(t,e){o=r.style||s.getPropertyValue(e)}),o}}var u=”“;if(”string“==Z(t))e||0===e?u=F(t)+”:“+I(t,e):this.each(function(){this.style.removeProperty(F(t))});else for(n in t)t||0===t?u+=F(n)+”:“+I(n,t)+”;“:this.each(function(){this.style.removeProperty(F(n))});return this.each(function(){this.style.cssText+=”;“+u})},index:function(t){return t?this.indexOf(i(t)):this.parent().children().indexOf(this)},hasClass:function(t){return t?o.some.call(this,function(t){return this.test(G(t))},q(t)):!1},addClass:function(t){return t?this.each(function(e){if(”className“in this){r=[];var n=G(this),o=U(this,t,e,n);o.split(/s+/g).forEach(function(t){i(this).hasClass(t)||r.push(t)},this),r.length&&G(this,n+(n?” “:”“)+r.join(” “))}}):this},removeClass:function(t){return this.each(function(n){if(”className“in this){if(t===e)return G(this,”“);r=G(this),U(this,t,n,r).split(/s+/g).forEach(function(t){r=r.replace(q(t),” “)}),G(this,r.trim())}})},toggleClass:function(t,n){return t?this.each(function®{var o=i(this),s=U(this,t,r,G(this));s.split(/s+/g).forEach(function(t){(n===e?!o.hasClass(t):n)?o.addClass(t):o.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var n=”scrollTop“in this;return t===e?n?this.scrollTop:this.pageYOffset:this.each(n?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var n=”scrollLeft“in this;return t===e?n?this.scrollLeft:this.pageXOffset:this.each(n?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this,e=this.offsetParent(),n=this.offset(),r=g.test(e.nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(i(t).css(”margin-top“))||0,n.left-=parseFloat(i(t).css(”margin-left“))||0,r.top+=parseFloat(i(e).css(”border-top-width“))||0,r.left+=parseFloat(i(e).css(”border-left-width“))||0,{top:n.top-r.top,left:n.left-r.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||a.body;t&&!g.test(t.nodeName)&&”static“==i(t).css(”position“);)t=t.offsetParent;return t})}},i.fn.detach=i.fn.remove,.forEach(function(t){var n=t.replace(/./,function(t){return t.toUpperCase()});i.fn=function®{var o,s=this;return r===e?k(s)?s:D(s)?s.documentElement:(o=this.offset())&&o:this.each(function(e){s=i(this),s.css(t,U(this,r,e,s()))})}}),E.forEach(function(n,r){var o=r%2;i.fn=function(){var n,u,s=i.map(arguments,function(t){var r=[];return n=Z(t),”array“==n?(t.forEach(function(t){return t.nodeType!==e?r.push(t):i.zepto.isZ(t)?r=r.concat(t.get()):void(r=r.concat(O.fragment(t)))}),r):”object“==n||null==t?t:O.fragment(t)}),f=this.length>1;return s.length<1?this:this.each(function(e,n){u=o?n:n.parentNode,n=0==r?n.nextSibling:1==r?n.firstChild:2==r?n:null;var c=i.contains(a.documentElement,u);s.forEach(function(e){if(f)e=e.cloneNode(!0);else if(!u)return i(e).remove();u.insertBefore(e,n),c&&Q(e,function(e){if(!(null==e.nodeName||”SCRIPT“!==e.nodeName.toUpperCase()||e.type&&”text/javascript“!==e.type||e.src)){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}})})})},i.fn=function(t){return i(t)(this),this}}),O.Z.prototype=X.prototype=i.fn,O.uniq=T,O.deserializeValue=K,i.zepto=O,i}();return t.Zepto=e,void 0===t.$&&(t.$=e),function(e){function h(t){return t._zid||(t._zid=n++)}function p(t,e,n,i){if(e=d(e),e.ns)var r=m(e.ns);return(u||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||r.test(t.ns))&&(!n||h(t.fn)===h(n))&&(!i||t.sel==i)})}function d(t){var e=(”“+t).split(”.“);return{e:e,ns:e.slice(1).sort().join(” “)}}function m(t){return new RegExp(”(?:^| )“+t.replace(” “,” .* ?“)+”(?: |$)“)}function g(t,e){return t.del&&!a&&t.e in c||!!e}function v(t){return l||a&&c||t}function y(t,n,r,o,s,f,a){var c=h(t),p=u||(u=[]);n.split(/s/).forEach(function(n){if(”ready“==n)return e(document).ready®;var u=d(n);u.fn=r,u.sel=s,u.e in l&&(r=function(t){var n=t.relatedTarget;return!n||n!==this&&!e.contains(this,n)?u.fn.apply(this,arguments):void 0}),u.del=f;var c=f||r;u.proxy=function(e){if(e=C(e),!e.isImmediatePropagationStopped()){e.data=o;var n=c.apply(t,e._args==i?:[e].concat(e._args));return n===!1&&(e.preventDefault(),e.stopPropagation()),n}},u.i=p.length,p.push(u),”addEventListener“in t&&t.addEventListener(v(u.e),u.proxy,g(u,a))})}function E(t,e,n,i,r){var o=h(t);(e||”“).split(/s/).forEach(function(e){p(t,e,n,i).forEach(function(e){delete u[e.i],”removeEventListener“in t&&t.removeEventListener(v(e.e),e.proxy,g(e,r))})})}function C(t,n){if(n||!t.isDefaultPrevented){n||(n=t),e.each(N,function(e,i){var r=n;t=function(){return this=b,r&&r.apply(n,arguments)},t=w});try{t.timeStamp||(t.timeStamp=Date.now())}catch®{}(n.defaultPrevented!==i?n.defaultPrevented:”returnValue“in n?n.returnValue===!1:n.getPreventDefault&&n.getPreventDefault())&&(t.isDefaultPrevented=b)}return t}function S(t){var e,n={originalEvent:t};for(e in t)x.test(e)||t===i||(n=t);return C(n,t)}var i,n=1,r=Array.prototype.slice,o=e.isFunction,s=function(t){return”string“==typeof t},u={},f={},a=”onfocusin“in t,c={focus:”focusin“,blur:”focusout“},l={mouseenter:”mouseover“,mouseleave:”mouseout“};f.click=f.mousedown=f.mouseup=f.mousemove=”MouseEvents“,e.event={add:y,remove:E},e.proxy=function(t,n){var i=2 in arguments&&r.call(arguments,2);if(o(t)){var u=function(){return t.apply(n,i?i.concat(r.call(arguments)):arguments)};return u._zid=h(t),u}if(s(n))return i?(i.unshift(t,t),e.proxy.apply(null,i)):e.proxy(t,t);throw new TypeError(”expected function“)},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,i){return this.on(t,e,n,i,1)};var b=function(){return!0},w=function(){return!1},x=/^(|returnValue$|layer$|webkitMovement$)/,N={preventDefault:”isDefaultPrevented“,stopImmediatePropagation:”isImmediatePropagationStopped“,stopPropagation:”isPropagationStopped“};e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,n,u,f,a){var c,l,h=this;return t&&!s(t)?(e.each(t,function(t,e){h.on(t,n,u,e,a)}),h):(s(n)||o(f)||f===!1||(f=u,u=n,n=i),(f===i||u===!1)&&(f=u,u=i),f===!1&&(f=w),h.each(function(i,o){a&&(c=function(t){return E(o,t.type,f),f.apply(this,arguments)}),n&&(l=function(t){var i,s=e(t.target).closest(n,o).get(0);return s&&s!==o?(i=e.extend(S(t),{currentTarget:s,liveFired:o}),(c||f).apply(s,.concat(r.call(arguments,1)))):void 0}),y(o,t,f,u,n,l||c)}))},e.fn.off=function(t,n,r){var u=this;return t&&!s(t)?(e.each(t,function(t,e){u.off(t,n,e)}),u):(s(n)||o®||r===!1||(r=n,n=i),r===!1&&(r=w),u.each(function(){E(this,t,r,n)}))},e.fn.trigger=function(t,n){return t=s(t)||e.isPlainObject(t)?e.Event(t):C(t),t._args=n,this.each(function(){t.type in c&&”function“==typeof this?this():”dispatchEvent“in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)})},e.fn.triggerHandler=function(t,n){var i,r;return this.each(function(o,u){i=S(s(t)?e.Event(t):t),i._args=n,i.target=u,e.each(p(u,t.type||t),function(t,e){return r=e.proxy(i),i.isImmediatePropagationStopped()?!1:void 0})}),r},”focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error“.split(” “).forEach(function(t){e.fn=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}}),e.Event=function(t,e){s(t)||(e=t,t=e.type);var n=document.createEvent(f||”Events“),i=!0;if(e)for(var r in e)”bubbles“==r?i=!!e:n=e;return n.initEvent(t,i,!0),C(n)}}(e),e});