var Zepto=function(){function n(a){return{}.toString.call(a)=="[object Function]"}function z(a){return a instanceof Object}function A(a){return a instanceof Array}function J(a){return a.filter(function(b){return b!==f&&b!==null})}function K(a){return a.replace(/-+(.)?/g,function(b,c){return c?c.toUpperCase():""})}function q(a){return a.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function B(a){return a.filter(function(b,
c,e){return e.indexOf(b)==c})}function C(a){return a in u?u[a]:u[a]=RegExp("(^|\\s)"+a+"(\\s|$)")}function D(a,b){b===f&&E.test(a);b in F||(b="*");var c=F[b];c.innerHTML=""+a;return k.call(c.childNodes)}function o(a,b){a=a||l;a.__proto__=o.prototype;a.selector=b||"";return a}function d(a,b){if(!a)return o();if(b!==f)return d(b).find(a);else if(n(a))return d(g).ready(a);else if(a instanceof o)return a;else{var c;if(A(a))c=J(a);else if(L.indexOf(a.nodeType)>=0||a===window){c=[a];a=null}else if(E.test(a)){c=
D(a,RegExp.$1);a=null}else c=a.nodeType&&a.nodeType==3?[a]:m(g,a);return o(c,a)}}function r(a,b){return b===f?d(a):d(a).filter(b)}function p(a,b,c,e){return n(b)?b.call(a,c,e):b}function M(a,b,c){var e=!a||a==3?b:b.parentNode;e.insertBefore(c,!a?e.firstChild:a==1?b.nextSibling:a==2?b:null)}function G(a,b){b(a);for(h in a.childNodes)G(a.childNodes[h],b)}var f,h,m,j,l=[],k=l.slice,g=window.document,v={},u={},w=g.defaultView.getComputedStyle,H={"column-count":1,columns:1,"font-weight":1,"line-height":1,
opacity:1,"z-index":1,zoom:1},E=/^\s*<(\w+)[^>]*>/,L=[1,9,11],x=g.createElement("table"),I=g.createElement("tr"),F={tr:g.createElement("tbody"),tbody:x,thead:x,tfoot:x,td:I,th:I,"*":g.createElement("div")};d.extend=function(a){k.call(arguments,1).forEach(function(b){for(h in b)a[h]=b[h]});return a};d.qsa=m=function(a,b){return k.call(a.querySelectorAll(b))};d.isFunction=n;d.isObject=z;d.isArray=A;d.map=function(a,b){var c,e=[],i;if(typeof a.length=="number")for(i=0;i<a.length;i++){c=b(a[i],i);c!=
null&&e.push(c)}else for(i in a){c=b(a[i],i);c!=null&&e.push(c)}return e.length>0?[].concat.apply([],e):e};d.fn={forEach:l.forEach,reduce:l.reduce,push:l.push,indexOf:l.indexOf,concat:l.concat,map:function(a){return d.map(this,function(b,c){return a.call(b,c,b)})},slice:function(){return d(k.apply(this,arguments))},ready:function(a){if(g.readyState=="complete"||g.readyState=="loaded")a();g.addEventListener("DOMContentLoaded",a,false);return this},get:function(a){return a===f?this:this[a]},size:function(){return this.length},
remove:function(){return this.each(function(){this.parentNode!=null&&this.parentNode.removeChild(this)})},each:function(a){this.forEach(function(b,c){a.call(b,c,b)});return this},filter:function(a){return d([].filter.call(this,function(b){return m(b.parentNode,a).indexOf(b)>=0}))},end:function(){return this.prevObject||d()},add:function(a,b){return d(B(this.concat(d(a,b))))},is:function(a){return this.length>0&&d(this[0]).filter(a).length>0},not:function(a){var b=[];if(n(a)&&a.call!==f)this.each(function(e){a.call(this,
e)||b.push(this)});else{var c=typeof a=="string"?this.filter(a):typeof a.length=="number"&&n(a.item)?k.call(a):d(a);this.forEach(function(e){c.indexOf(e)<0&&b.push(e)})}return d(b)},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return d(this[0])},last:function(){return d(this[this.length-1])},find:function(a){var b;b=this.length==1?m(this[0],a):this.map(function(){return m(this,a)});return d(b)},closest:function(a,b){var c=this[0],e=m(b!==f?b:g,a);if(e.length===0)c=
null;for(;c&&c!==g&&e.indexOf(c)<0;)c=c.parentNode;return d(c!==g&&c)},parents:function(a){for(var b=[],c=this;c.length>0;)c=d.map(c,function(e){if((e=e.parentNode)&&e!==g&&b.indexOf(e)<0){b.push(e);return e}});return r(b,a)},parent:function(a){return r(B(this.pluck("parentNode")),a)},children:function(a){return r(this.map(function(){return k.call(this.children)}),a)},siblings:function(a){return r(this.map(function(b,c){return k.call(c.parentNode.children).filter(function(e){return e!==c})}),a)},
empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(a){return this.map(function(){return this[a]})},show:function(){return this.each(function(){this.style.display=="none"&&(this.style.display=null);if(w(this,"").getPropertyValue("display")=="none"){var a=this.style,b=this.nodeName,c,e;if(!v[b]){c=g.createElement(b);g.body.appendChild(c);e=w(c,"").getPropertyValue("display");c.parentNode.removeChild(c);e=="none"&&(e="block");v[b]=e}a.display=v[b]}})},replaceWith:function(a){return this.each(function(){var b=
this.parentNode,c=this.nextSibling;d(this).remove();c?d(c).before(a):d(b).append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(d(a)[0].cloneNode(false))})},wrapAll:function(a){if(this[0]){d(this[0]).before(a=d(a));a.append(this)}return this},unwrap:function(){this.parent().each(function(){d(this).replaceWith(d(this).children())});return this},hide:function(){return this.css("display","none")},toggle:function(a){return(a===f?this.css("display")=="none":a)?this.show():this.hide()},
prev:function(){return d(this.pluck("previousElementSibling"))},next:function(){return d(this.pluck("nextElementSibling"))},html:function(a){return a===f?this.length>0?this[0].innerHTML:null:this.each(function(b){var c=this.innerHTML;d(this).empty().append(p(this,a,b,c))})},text:function(a){return a===f?this.length>0?this[0].textContent:null:this.each(function(){this.textContent=a})},attr:function(a,b){return typeof a=="string"&&b===f?this.length>0&&this[0].nodeName=="INPUT"&&this[0].type=="text"&&
a=="value"?this.val():this.length>0?this[0].getAttribute(a)||(a in this[0]?this[0][a]:f):f:this.each(function(c){if(z(a))for(h in a)this.setAttribute(h,a[h]);else this.setAttribute(a,p(this,b,c,this.getAttribute(a)))})},removeAttr:function(a){return this.each(function(){this.removeAttribute(a)})},data:function(a,b){return this.attr("data-"+a,b)},val:function(a){return a===f?this.length>0?this[0].value:null:this.each(function(){this.value=a})},offset:function(){if(this.length==0)return null;var a=
this[0].getBoundingClientRect();return{left:a.left+g.body.scrollLeft,top:a.top+g.body.scrollTop,width:a.width,height:a.height}},css:function(a,b){if(b===f&&typeof a=="string")return this[0].style[K(a)]||w(this[0],"").getPropertyValue(a);var c="";for(h in a)c+=q(h)+":"+(typeof a[h]=="number"&&!H[q(h)]?a[h]+"px":a[h])+";";if(typeof a=="string")c=q(a)+":"+(typeof b=="number"&&!H[q(a)]?b+"px":b);return this.each(function(){this.style.cssText+=";"+c})},index:function(a){return a?this.indexOf(d(a)[0]):
this.parent().children().indexOf(this[0])},hasClass:function(a){return this.length<1?false:C(a).test(this[0].className)},addClass:function(a){return this.each(function(b){j=[];var c=this.className;p(this,a,b,c).split(/\s+/g).forEach(function(e){d(this).hasClass(e)||j.push(e)},this);j.length&&(this.className+=(c?" ":"")+j.join(" "))})},removeClass:function(a){return this.each(function(b){if(a===f)return this.className="";j=this.className;p(this,a,b,j).split(/\s+/g).forEach(function(c){j=j.replace(C(c),
" ")});this.className=j.trim()})},toggleClass:function(a,b){return this.each(function(c){c=p(this,a,c,this.className);b!==f&&!b||d(this).hasClass(c)?d(this).removeClass(c):d(this).addClass(c)})}};"filter,add,not,eq,first,last,find,closest,parents,parent,children,siblings".split(",").forEach(function(a){var b=d.fn[a];d.fn[a]=function(){var c=b.apply(this,arguments);c.prevObject=this;return c}});["width","height"].forEach(function(a){d.fn[a]=function(b){var c;return b===f?(c=this.offset())&&c[a]:this.css(a,
b)}});["prepend","after","before","append"].forEach(function(a,b){d.fn[a]=function(c){var e=typeof c=="object"?c:D(c);"length"in e||(e=[e]);if(e.length<1)return this;var i=this.length,N=i>1,O=b<2;return this.each(function(P,Q){for(var s=0;s<e.length;s++){var t=e[O?e.length-s-1:s];G(t,function(y){y.nodeName!=null&&y.nodeName.toUpperCase()==="SCRIPT"&&window.eval.call(window,y.innerHTML)});if(N&&P<i-1)t=t.cloneNode(true);M(b,Q,t)}})}});["append","prepend"].forEach(function(a){d.fn[a+"To"]=function(b){if(typeof b!=
"object")b=d(b);b[a](this);return this}});o.prototype=d.fn;return d}();"$"in window||(window.$=Zepto);

