/gi,v=/^(?:body|html)$/i,A=/([A-Z])/g,E=["val","css","html","text","data","width","height","offset"],y=d.createElement("table"),T=d.createElement("tr"),b={tr:d.createElement("tbody"),tbody:y,thead:y,tfoot:y,td:T,th:T,"*":d.createElement("div")},_=/complete|loaded|interactive/,S=/^[\w-]*$/,C={},R=C.toString,L={},w=d.createElement("div"),k={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},I=Array.isArray||function(e){return e instanceof Array};function O(e){return null==e?String(e):C[R.call(e)]||"object"}function P(e){return"function"==O(e)}function D(e){return null!=e&&e==e.window}function N(e){return null!=e&&e.nodeType==e.DOCUMENT_NODE}function M(e){return"object"==O(e)}function x(e){return M(e)&&!D(e)&&Object.getPrototypeOf(e)==Object.prototype}function F(e){var t=!!e&&"length"in e&&e.length,s=i.type(e);return"function"!=s&&!D(e)&&("array"==s||0===t||"number"==typeof t&&t>0&&t-1 in e)}function B(e){return e.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 U(e){return e in u?u[e]:u[e]=new RegExp("(^|\\s)"+e+"(\\s|$)")}function $(e,t){return"number"!=typeof t||p[B(e)]?t:t+"px"}function V(e){return"children"in e?c.call(e.children):i.map(e.childNodes,(function(e){if(1==e.nodeType)return e}))}function G(e,t){var i,s=e?e.length:0;for(i=0;i$2>")),s===e&&(s=f.test(t)&&RegExp.$1),s in b||(s="*"),(a=b[s]).innerHTML=""+t,r=i.each(c.call(a.childNodes),(function(){a.removeChild(this)}))),x(n)&&(o=i(r),i.each(n,(function(e,t){E.indexOf(e)>-1?o[e](t):o.attr(e,t)}))),r},L.Z=function(e,t){return new G(e,t)},L.isZ=function(e){return e instanceof L.Z},L.init=function(t,s){var n,r;if(!t)return L.Z();if("string"==typeof t)if("<"==(t=t.trim())[0]&&f.test(t))n=L.fragment(t,RegExp.$1,s),t=null;else{if(s!==e)return i(s).find(t);n=L.qsa(d,t)}else{if(P(t))return i(d).ready(t);if(L.isZ(t))return t;if(I(t))r=t,n=l.call(r,(function(e){return null!=e}));else if(M(t))n=[t],t=null;else if(f.test(t))n=L.fragment(t.trim(),RegExp.$1,s),t=null;else{if(s!==e)return i(s).find(t);n=L.qsa(d,t)}}return L.Z(n,t)},(i=function(e,t){return L.init(e,t)}).extend=function(e){var t,i=c.call(arguments,1);return"boolean"==typeof e&&(t=e,e=i.shift()),i.forEach((function(i){j(e,i,t)})),e},L.qsa=function(e,t){var i,s="#"==t[0],n=!s&&"."==t[0],r=s||n?t.slice(1):t,o=S.test(r);return e.getElementById&&o&&s?(i=e.getElementById(r))?[i]:[]:1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType?[]:c.call(o&&!s&&e.getElementsByClassName?n?e.getElementsByClassName(r):e.getElementsByTagName(t):e.querySelectorAll(t))},i.contains=d.documentElement.contains?function(e,t){return e!==t&&e.contains(t)}:function(e,t){for(;t&&(t=t.parentNode);)if(t===e)return!0;return!1},i.type=O,i.isFunction=P,i.isWindow=D,i.isArray=I,i.isPlainObject=x,i.isEmptyObject=function(e){var t;for(t in e)return!1;return!0},i.isNumeric=function(e){var t=Number(e),i=typeof e;return null!=e&&"boolean"!=i&&("string"!=i||e.length)&&!isNaN(t)&&isFinite(t)||!1},i.inArray=function(e,t,i){return o.indexOf.call(t,e,i)},i.camelCase=n,i.trim=function(e){return null==e?"":String.prototype.trim.call(e)},i.uuid=0,i.support={},i.expr={},i.noop=function(){},i.map=function(e,t){var s,n,r,o,a=[];if(F(e))for(n=0;n0?i.fn.concat.apply([],o):o},i.each=function(e,t){var i,s;if(F(e)){for(i=0;i=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each((function(){null!=this.parentNode&&this.parentNode.removeChild(this)}))},each:function(e){return o.every.call(this,(function(t,i){return!1!==e.call(t,i,t)})),this},filter:function(e){return P(e)?this.not(this.not(e)):i(l.call(this,(function(t){return L.matches(t,e)})))},add:function(e,t){return i(r(this.concat(i(e,t))))},is:function(e){return this.length>0&&L.matches(this[0],e)},not:function(t){var s=[];if(P(t)&&t.call!==e)this.each((function(e){t.call(this,e)||s.push(this)}));else{var n="string"==typeof t?this.filter(t):F(t)&&P(t.item)?c.call(t):i(t);this.forEach((function(e){n.indexOf(e)<0&&s.push(e)}))}return i(s)},has:function(e){return this.filter((function(){return M(e)?i.contains(this,e):i(this).find(e).size()}))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){var e=this[0];return e&&!M(e)?e:i(e)},last:function(){var e=this[this.length-1];return e&&!M(e)?e:i(e)},find:function(e){var t=this;return e?"object"==typeof e?i(e).filter((function(){var e=this;return o.some.call(t,(function(t){return i.contains(t,e)}))})):1==this.length?i(L.qsa(this[0],e)):this.map((function(){return L.qsa(this,e)})):i()},closest:function(e,t){var s=[],n="object"==typeof e&&i(e);return this.each((function(i,r){for(;r&&!(n?n.indexOf(r)>=0:L.matches(r,e));)r=r!==t&&!N(r)&&r.parentNode;r&&s.indexOf(r)<0&&s.push(r)})),i(s)},parents:function(e){for(var t=[],s=this;s.length>0;)s=i.map(s,(function(e){if((e=e.parentNode)&&!N(e)&&t.indexOf(e)<0)return t.push(e),e}));return K(t,e)},parent:function(e){return K(r(this.pluck("parentNode")),e)},children:function(e){return K(this.map((function(){return V(this)})),e)},contents:function(){return this.map((function(){return this.contentDocument||c.call(this.childNodes)}))},siblings:function(e){return K(this.map((function(e,t){return l.call(V(t.parentNode),(function(e){return e!==t}))})),e)},empty:function(){return this.each((function(){this.innerHTML=""}))},pluck:function(e){return i.map(this,(function(t){return t[e]}))},show:function(){return this.each((function(){var e,t,i;"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=(e=this.nodeName,h[e]||(t=d.createElement(e),d.body.appendChild(t),i=getComputedStyle(t,"").getPropertyValue("display"),t.parentNode.removeChild(t),"none"==i&&(i="block"),h[e]=i),h[e]))}))},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){var t=P(e);if(this[0]&&!t)var s=i(e).get(0),n=s.parentNode||this.length>1;return this.each((function(r){i(this).wrapAll(t?e.call(this,r):n?s.cloneNode(!0):s)}))},wrapAll:function(e){if(this[0]){var t;for(i(this[0]).before(e=i(e));(t=e.children()).length;)e=t.first();i(e).append(this)}return this},wrapInner:function(e){var t=P(e);return this.each((function(s){var n=i(this),r=n.contents(),o=t?e.call(this,s):e;r.length?r.wrapAll(o):n.append(o)}))},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 s=i(this);(t===e?"none"==s.css("display"):t)?s.show():s.hide()}))},prev:function(e){return i(this.pluck("previousElementSibling")).filter(e||"*")},next:function(e){return i(this.pluck("nextElementSibling")).filter(e||"*")},html:function(e){return 0 in arguments?this.each((function(t){var s=this.innerHTML;i(this).empty().append(H(this,e,t,s))})):0 in this?this[0].innerHTML:null},text:function(e){return 0 in arguments?this.each((function(t){var i=H(this,e,t,this.textContent);this.textContent=null==i?"":""+i})):0 in this?this.pluck("textContent").join(""):null},attr:function(i,s){var n;return"string"!=typeof i||1 in arguments?this.each((function(e){if(1===this.nodeType)if(M(i))for(t in i)Y(this,t,i[t]);else Y(this,i,H(this,s,e,this.getAttribute(i)))})):0 in this&&1==this[0].nodeType&&null!=(n=this[0].getAttribute(i))?n:e},removeAttr:function(e){return this.each((function(){1===this.nodeType&&e.split(" ").forEach((function(e){Y(this,e)}),this)}))},prop:function(e,t){return e=k[e]||e,1 in arguments?this.each((function(i){this[e]=H(this,t,i,this[e])})):this[0]&&this[0][e]},removeProp:function(e){return e=k[e]||e,this.each((function(){delete this[e]}))},data:function(t,i){var s="data-"+t.replace(A,"-$1").toLowerCase(),n=1 in arguments?this.attr(s,i):this.attr(s);return null!==n?z(n):e},val:function(e){return 0 in arguments?(null==e&&(e=""),this.each((function(t){this.value=H(this,e,t,this.value)}))):this[0]&&(this[0].multiple?i(this[0]).find("option").filter((function(){return this.selected})).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each((function(t){var s=i(this),n=H(this,e,t,s.offset()),r=s.offsetParent().offset(),o={top:n.top-r.top,left:n.left-r.left};"static"==s.css("position")&&(o.position="relative"),s.css(o)}));if(!this.length)return null;if(d.documentElement!==this[0]&&!i.contains(d.documentElement,this[0]))return{top:0,left:0};var t=this[0].getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,width:Math.round(t.width),height:Math.round(t.height)}},css:function(e,s){if(arguments.length<2){var r=this[0];if("string"==typeof e){if(!r)return;return r.style[n(e)]||getComputedStyle(r,"").getPropertyValue(e)}if(I(e)){if(!r)return;var o={},a=getComputedStyle(r,"");return i.each(e,(function(e,t){o[t]=r.style[n(t)]||a.getPropertyValue(t)})),o}}var l="";if("string"==O(e))s||0===s?l=B(e)+":"+$(e,s):this.each((function(){this.style.removeProperty(B(e))}));else for(t in e)e[t]||0===e[t]?l+=B(t)+":"+$(t,e[t])+";":this.each((function(){this.style.removeProperty(B(t))}));return this.each((function(){this.style.cssText+=";"+l}))},index:function(e){return e?this.indexOf(i(e)[0]):this.parent().children().indexOf(this[0])},hasClass:function(e){return!!e&&o.some.call(this,(function(e){return this.test(W(e))}),U(e))},addClass:function(e){return e?this.each((function(t){if("className"in this){s=[];var n=W(this);H(this,e,t,n).split(/\s+/g).forEach((function(e){i(this).hasClass(e)||s.push(e)}),this),s.length&&W(this,n+(n?" ":"")+s.join(" "))}})):this},removeClass:function(t){return this.each((function(i){if("className"in this){if(t===e)return W(this,"");s=W(this),H(this,t,i,s).split(/\s+/g).forEach((function(e){s=s.replace(U(e)," ")})),W(this,s.trim())}}))},toggleClass:function(t,s){return t?this.each((function(n){var r=i(this);H(this,t,n,W(this)).split(/\s+/g).forEach((function(t){(s===e?!r.hasClass(t):s)?r.addClass(t):r.removeClass(t)}))})):this},scrollTop:function(t){if(this.length){var i="scrollTop"in this[0];return t===e?i?this[0].scrollTop:this[0].pageYOffset:this.each(i?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var i="scrollLeft"in this[0];return t===e?i?this[0].scrollLeft:this[0].pageXOffset:this.each(i?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var e=this[0],t=this.offsetParent(),s=this.offset(),n=v.test(t[0].nodeName)?{top:0,left:0}:t.offset();return s.top-=parseFloat(i(e).css("margin-top"))||0,s.left-=parseFloat(i(e).css("margin-left"))||0,n.top+=parseFloat(i(t[0]).css("border-top-width"))||0,n.left+=parseFloat(i(t[0]).css("border-left-width"))||0,{top:s.top-n.top,left:s.left-n.left}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||d.body;e&&!v.test(e.nodeName)&&"static"==i(e).css("position");)e=e.offsetParent;return e}))}},i.fn.detach=i.fn.remove,["width","height"].forEach((function(t){var s=t.replace(/./,(function(e){return e[0].toUpperCase()}));i.fn[t]=function(n){var r,o=this[0];return n===e?D(o)?o["inner"+s]:N(o)?o.documentElement["scroll"+s]:(r=this.offset())&&r[t]:this.each((function(e){(o=i(this)).css(t,H(this,n,e,o[t]()))}))}})),["after","prepend","before","append"].forEach((function(t,s){var n=s%2;i.fn[t]=function(){var t,r,o=i.map(arguments,(function(s){var n=[];return"array"==(t=O(s))?(s.forEach((function(t){return t.nodeType!==e?n.push(t):i.zepto.isZ(t)?n=n.concat(t.get()):void(n=n.concat(L.fragment(t)))})),n):"object"==t||null==s?s:L.fragment(s)})),a=this.length>1;return o.length<1?this:this.each((function(e,t){r=n?t:t.parentNode,t=0==s?t.nextSibling:1==s?t.firstChild:2==s?t:null;var l=i.contains(d.documentElement,r);o.forEach((function(e){if(a)e=e.cloneNode(!0);else if(!r)return i(e).remove();r.insertBefore(e,t),l&&q(e,(function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var t=e.ownerDocument?e.ownerDocument.defaultView:window;t.eval.call(t,e.innerHTML)}}))}))}))},i.fn[n?t+"To":"insert"+(s?"Before":"After")]=function(e){return i(e)[t](this),this}})),L.Z.prototype=G.prototype=i.fn,L.uniq=r,L.deserializeValue=z,i.zepto=L,i}();window.Zepto=t,void 0===window.$&&(window.$=t),function(e){var t,i,s=+new Date,n=window.document,r=/