Advertisement
Guest User

Infinity

a guest
Jan 20th, 2016
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 191.31 KB | None | 0 0
  1. !function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(r,Ke){function Q(t){var n="length"in t&&t.length,r=e.type(t);return"function"===r||e.isWindow(t)?!1:1===t.nodeType&&n?!0:"array"===r||0===n||"number"==typeof n&&n>0&&n-1 in t}function K(n,t,r){if(e.isFunction(t))return e.grep(n,function(e,n){return!!t.call(e,n,e)!==r});if(t.nodeType)return e.grep(n,function(e){return e===t!==r});if("string"==typeof t){if(yt.test(t))return e.filter(t,n,r);t=e.filter(t,n)}return e.grep(n,function(e){return O.call(t,e)>=0!==r})}function Z(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function mt(t){var n=Ie[t]={};return e.each(t.match(l)||[],function(t,e){n[e]=!0}),n}function L(){n.removeEventListener("DOMContentLoaded",L,!1),r.removeEventListener("load",L,!1),e.ready()}function f(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=e.expando+f.uid++}function _e(n,r,t){var i;if(void 0===t&&1===n.nodeType)if(i="data-"+r.replace(Ze,"-$1").toLowerCase(),t=n.getAttribute(i),"string"==typeof t){try{t="true"===t?!0:"false"===t?!1:"null"===t?null:+t+""===t?+t:Lt.test(t)?e.parseJSON(t):t}catch(a){}o.set(n,r,t)}else t=void 0;return t}function T(){return!0}function m(){return!1}function ye(){try{return n.activeElement}catch(e){}}function Le(t,n){return e.nodeName(t,"table")&&e.nodeName(11!==n.nodeType?n:n.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function Qe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function pt(e){var t=Nt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function M(n,r){for(var e=0,i=n.length;i>e;e++)t.set(n[e],"globalEval",!r||t.get(r[e],"globalEval"))}function Pe(n,r){var i,c,a,u,l,f,p,s;if(1===r.nodeType){if(t.hasData(n)&&(u=t.access(n),l=t.set(r,u),s=u.events)){delete l.handle,l.events={};for(a in s)for(i=0,c=s[a].length;c>i;i++)e.event.add(r,a,s[a][i])}o.hasData(n)&&(f=o.access(n),p=e.extend({},f),o.set(r,p))}}function s(t,n){var r=t.getElementsByTagName?t.getElementsByTagName(n||"*"):t.querySelectorAll?t.querySelectorAll(n||"*"):[];return void 0===n||n&&e.nodeName(t,n)?e.merge([t],r):r}function st(e,t){var n=t.nodeName.toLowerCase();"input"===n&&re.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function Ae(o,n){var i,t=e(n.createElement(o)).appendTo(n.body),a=r.getDefaultComputedStyle&&(i=r.getDefaultComputedStyle(t[0]))?i.display:e.css(t[0],"display");return t.detach(),a}function W(i){var r=n,t=pe[i];return t||(t=Ae(i,r),"none"!==t&&t||(j=(j||e("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=j[0].contentDocument,r.write(),r.close(),t=Ae(i,r),j.detach()),pe[i]=t),t}function A(i,o,r){var a,s,u,t,n=i.style;return r=r||N(i),r&&(t=r.getPropertyValue(o)||r[o]),r&&(""!==t||e.contains(i.ownerDocument,i)||(t=e.style(i,o)),R.test(t)&&de.test(o)&&(a=n.width,s=n.minWidth,u=n.maxWidth,n.minWidth=n.maxWidth=n.width=t,t=r.width,n.width=a,n.minWidth=s,n.maxWidth=u)),void 0!==t?t+"":t}function te(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function ne(t,e){if(e in t)return e;for(var r=e[0].toUpperCase()+e.slice(1),i=e,n=me.length;n--;)if(e=me[n]+r,e in t)return e;return i}function ce(r,t,n){var e=ze.exec(t);return e?Math.max(0,e[1]-(n||0))+(e[2]||"px"):t}function fe(i,s,n,a,o){for(var t=n===(a?"border":"content")?4:"width"===s?1:0,r=0;4>t;t+=2)"margin"===n&&(r+=e.css(i,n+d[t],!0,o)),a?("content"===n&&(r-=e.css(i,"padding"+d[t],!0,o)),"margin"!==n&&(r-=e.css(i,"border"+d[t]+"Width",!0,o))):(r+=e.css(i,"padding"+d[t],!0,o),"padding"!==n&&(r+=e.css(i,"border"+d[t]+"Width",!0,o)));return r}function he(n,r,u){var a=!0,t="width"===r?n.offsetWidth:n.offsetHeight,o=N(n),s="border-box"===e.css(n,"boxSizing",!1,o);if(0>=t||null==t){if(t=A(n,r,o),(0>t||null==t)&&(t=n.style[r]),R.test(t))return t;a=s&&(i.boxSizingReliable()||t===n.style[r]),t=parseFloat(t)||0}return t+fe(n,r,u||(s?"border":"content"),a,o)+"px"}function ge(i,s){for(var o,n,u,a=[],r=0,l=i.length;l>r;r++)n=i[r],n.style&&(a[r]=t.get(n,"olddisplay"),o=n.style.display,s?(a[r]||"none"!==o||(n.style.display=""),""===n.style.display&&_(n)&&(a[r]=t.access(n,"olddisplay",W(n.nodeName)))):(u=_(n),"none"===o&&u||t.set(n,"olddisplay",u?o:e.css(n,"display"))));for(r=0;l>r;r++)n=i[r],n.style&&(s&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=s?a[r]||"":"none"));return i}function a(e,t,n,r,i){return new a.prototype.init(e,t,n,r,i)}function we(){return setTimeout(function(){y=void 0}),y=e.now()}function E(n,t){var r,i=0,e={height:n};for(t=t?1:0;4>i;i+=2-t)r=d[i],e["margin"+r]=e["padding"+r]=n;return t&&(e.opacity=e.width=n),e}function Ee(i,t,o){for(var n,r=(w[t]||[]).concat(w["*"]),e=0,a=r.length;a>e;e++)if(n=r[e].call(o,t,i))return n}function Xe(n,p,l){var r,f,g,h,a,m,s,v,c=this,d={},o=n.style,u=n.nodeType&&_(n),i=t.get(n,"fxshow");l.queue||(a=e._queueHooks(n,"fx"),null==a.unqueued&&(a.unqueued=0,m=a.empty.fire,a.empty.fire=function(){a.unqueued||m()}),a.unqueued++,c.always(function(){c.always(function(){a.unqueued--,e.queue(n,"fx").length||a.empty.fire()})})),1===n.nodeType&&("height"in p||"width"in p)&&(l.overflow=[o.overflow,o.overflowX,o.overflowY],s=e.css(n,"display"),v="none"===s?t.get(n,"olddisplay")||W(n.nodeName):s,"inline"===v&&"none"===e.css(n,"float")&&(o.display="inline-block")),l.overflow&&(o.overflow="hidden",c.always(function(){o.overflow=l.overflow[0],o.overflowX=l.overflow[1],o.overflowY=l.overflow[2]}));for(r in p)if(f=p[r],Ye.exec(f)){if(delete p[r],g=g||"toggle"===f,f===(u?"hide":"show")){if("show"!==f||!i||void 0===i[r])continue;u=!0}d[r]=i&&i[r]||e.style(n,r)}else s=void 0;if(e.isEmptyObject(d))"inline"===("none"===s?W(n.nodeName):s)&&(o.display=s);else{i?"hidden"in i&&(u=i.hidden):i=t.access(n,"fxshow",{}),g&&(i.hidden=!u),u?e(n).show():c.done(function(){e(n).hide()}),c.done(function(){var r;t.remove(n,"fxshow");for(r in d)e.style(n,r,d[r])});for(r in d)h=Ee(u?i[r]:0,r,c),r in i||(i[r]=h.start,u&&(h.end=h.start,h.start="width"===r||"height"===r?1:0))}}function Je(r,s){var t,i,o,n,a;for(t in r)if(i=e.camelCase(t),o=s[i],n=r[t],e.isArray(n)&&(o=n[1],n=r[t]=n[0]),t!==i&&(r[i]=n,delete r[t]),a=e.cssHooks[i],a&&"expand"in a){n=a.expand(n),delete r[i];for(t in n)t in r||(r[t]=n[t],s[t]=o)}else s[i]=o}function He(n,u,a){var c,o,s=0,f=D.length,r=e.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var u=y||we(),e=Math.max(0,t.startTime+t.duration-u),l=e/t.duration||0,i=1-l,a=0,s=t.tweens.length;s>a;a++)t.tweens[a].run(i);return r.notifyWith(n,[t,i,e]),1>i&&s?e:(r.resolveWith(n,[t]),!1)},t=r.promise({elem:n,props:e.extend({},u),opts:e.extend(!0,{specialEasing:{}},a),originalProperties:u,originalOptions:a,startTime:y||we(),duration:a.duration,tweens:[],createTween:function(r,o){var i=e.Tween(n,t.opts,r,o,t.opts.specialEasing[r]||t.opts.easing);return t.tweens.push(i),i},stop:function(e){var i=0,a=e?t.tweens.length:0;if(o)return this;for(o=!0;a>i;i++)t.tweens[i].run(1);return e?r.resolveWith(n,[t,e]):r.rejectWith(n,[t,e]),this}}),i=t.props;for(Je(i,t.opts.specialEasing);f>s;s++)if(c=D[s].call(t,n,i,t.opts))return c;return e.map(i,Ee,t),e.isFunction(t.opts.start)&&t.opts.start.call(n,t),e.fx.timer(e.extend(l,{elem:n,anim:t,queue:t.opts.queue})),t.progress(t.opts.progress).done(t.opts.done,t.opts.complete).fail(t.opts.fail).always(t.opts.always)}function Oe(t){return function(r,i){"string"!=typeof r&&(i=r,r="*");var n,o=0,a=r.toLowerCase().match(l)||[];if(e.isFunction(i))for(;n=a[o++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function $e(i,t,a,s){function n(u){var l;return r[u]=!0,e.each(i[u]||[],function(u,i){var e=i(t,a,s);return"string"!=typeof e||o||r[e]?o?!(l=e):void 0:(t.dataTypes.unshift(e),n(e),!1)}),l}var r={},o=i===X;return n(t.dataTypes[0])||!r["*"]&&n("*")}function P(r,i){var t,n,o=e.ajaxSettings.flatOptions||{};for(t in i)void 0!==i[t]&&((o[t]?r:n||(n={}))[t]=i[t]);return n&&e.extend(!0,r,n),r}function _t(r,u,o){for(var i,t,n,a,s=r.contents,e=r.dataTypes;"*"===e[0];)e.shift(),void 0===i&&(i=r.mimeType||u.getResponseHeader("Content-Type"));if(i)for(t in s)if(s[t]&&s[t].test(i)){e.unshift(t);break}if(e[0]in o)n=e[0];else{for(t in o){if(!e[0]||r.converters[t+" "+e[0]]){n=t;break}a||(a=t)}n=n||a}return n?(n!==e[0]&&e.unshift(n),o[n]):void 0}function We(n,r,c,l){var s,e,t,a,i,o={},u=n.dataTypes.slice();if(u[1])for(t in n.converters)o[t.toLowerCase()]=n.converters[t];for(e=u.shift();e;)if(n.responseFields[e]&&(c[n.responseFields[e]]=r),!i&&l&&n.dataFilter&&(r=n.dataFilter(r,n.dataType)),i=e,e=u.shift())if("*"===e)e=i;else if("*"!==i&&i!==e){if(t=o[i+" "+e]||o["* "+e],!t)for(s in o)if(a=s.split(" "),a[1]===e&&(t=o[i+" "+a[0]]||o["* "+a[0]])){t===!0?t=o[s]:o[s]!==!0&&(e=a[0],u.unshift(a[1]));break}if(t!==!0)if(t&&n["throws"])r=t(r);else try{r=t(r)}catch(f){return{state:"parsererror",error:t?f:"No conversion from "+i+" to "+e}}}return{state:"success",data:r}}function U(n,t,r,i){var o;if(e.isArray(t))e.each(t,function(t,e){r||At.test(n)?i(n,e):U(n+"["+("object"==typeof e?t:"")+"]",e,r,i)});else if(r||"object"!==e.type(t))i(n,t);else for(o in t)U(n+"["+o+"]",t[o],r,i)}function ee(t){return e.isWindow(t)?t:9===t.nodeType&&t.defaultView}var g=[],c=g.slice,ie=g.concat,F=g.push,O=g.indexOf,q={},qt=q.toString,Y=q.hasOwnProperty,i={},n=r.document,xe="2.1.4",e=function(t,n){return new e.fn.init(t,n)},tt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,nt=/^-ms-/,it=/-([\da-z])/gi,ot=function(t,e){return e.toUpperCase()};e.fn=e.prototype={jquery:xe,constructor:e,selector:"",length:0,toArray:function(){return c.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:c.call(this)},pushStack:function(n){var t=e.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(t,n){return e.each(this,t,n)},map:function(t){return this.pushStack(e.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var n=this.length,e=+t+(0>t?n:0);return this.pushStack(e>=0&&n>e?[this[e]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:F,sort:g.sort,splice:g.splice},e.extend=e.fn.extend=function(){var a,o,r,n,s,u,t=arguments[0]||{},i=1,c=arguments.length,l=!1;for("boolean"==typeof t&&(l=t,t=arguments[i]||{},i++),"object"==typeof t||e.isFunction(t)||(t={}),i===c&&(t=this,i--);c>i;i++)if(null!=(a=arguments[i]))for(o in a)r=t[o],n=a[o],t!==n&&(l&&n&&(e.isPlainObject(n)||(s=e.isArray(n)))?(s?(s=!1,u=r&&e.isArray(r)?r:[]):u=r&&e.isPlainObject(r)?r:{},t[o]=e.extend(l,u,n)):void 0!==n&&(t[o]=n));return t},e.extend({expando:"jQuery"+(xe+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(t){return"function"===e.type(t)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(t){return!e.isArray(t)&&t-parseFloat(t)+1>=0},isPlainObject:function(t){return"object"!==e.type(t)||t.nodeType||e.isWindow(t)?!1:t.constructor&&!Y.call(t.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?q[qt.call(e)]||"object":typeof e},globalEval:function(t){var r,i=eval;t=e.trim(t),t&&(1===t.indexOf("use strict")?(r=n.createElement("script"),r.text=t,n.head.appendChild(r).parentNode.removeChild(r)):i(t))},camelCase:function(e){return e.replace(nt,"ms-").replace(it,ot)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(t,r,i){var n,e=0,o=t.length,a=Q(t);if(i){if(a)for(;o>e&&(n=r.apply(t[e],i),n!==!1);e++);else for(e in t)if(n=r.apply(t[e],i),n===!1)break}else if(a)for(;o>e&&(n=r.call(t[e],e,t[e]),n!==!1);e++);else for(e in t)if(n=r.call(t[e],e,t[e]),n===!1)break;return t},trim:function(e){return null==e?"":(e+"").replace(tt,"")},makeArray:function(t,r){var n=r||[];return null!=t&&(Q(Object(t))?e.merge(n,"string"==typeof t?[t]:t):F.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:O.call(e,t,n)},merge:function(e,n){for(var i=+n.length,t=0,r=e.length;i>t;t++)e[r++]=n[t];return e.length=r,e},grep:function(t,i,o){for(var n,r=[],e=0,a=t.length,s=!o;a>e;e++)n=!i(t[e],e),n!==s&&r.push(t[e]);return r},map:function(n,i,o){var t,e=0,a=n.length,s=Q(n),r=[];if(s)for(;a>e;e++)t=i(n[e],e,o),null!=t&&r.push(t);else for(e in n)t=i(n[e],e,o),null!=t&&r.push(t);return ie.apply([],r)},guid:1,proxy:function(t,n){var i,o,r;return"string"==typeof n&&(i=t[n],n=t,t=i),e.isFunction(t)?(o=c.call(arguments,2),r=function(){return t.apply(n||this,o.concat(c.call(arguments)))},r.guid=t.guid=t.guid||e.guid++,r):void 0},now:Date.now,support:i}),e.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){q["[object "+e+"]"]=e.toLowerCase()});var v=function(W){function n(n,e,t,x){var h,u,c,l,g,d,m,f,_,y;if((e?e.ownerDocument||e:s)!==a&&b(e),e=e||a,t=t||[],l=e.nodeType,"string"!=typeof n||!n||1!==l&&9!==l&&11!==l)return t;if(!x&&p){if(11!==l&&(h=ye.exec(n)))if(c=h[1]){if(9===l){if(u=e.getElementById(c),!u||!u.parentNode)return t;if(u.id===c)return t.push(u),t}else if(e.ownerDocument&&(u=e.ownerDocument.getElementById(c))&&T(e,u)&&u.id===c)return t.push(u),t}else{if(h[2])return v.apply(t,e.getElementsByTagName(n)),t;if((c=h[3])&&r.getElementsByClassName)return v.apply(t,e.getElementsByClassName(c)),t}if(r.qsa&&(!o||!o.test(n))){if(f=m=i,_=e,y=1!==l&&n,1===l&&"object"!==e.nodeName.toLowerCase()){for(d=C(n),(m=e.getAttribute("id"))?f=m.replace(be,"\\$&"):e.setAttribute("id",f),f="[id='"+f+"'] ",g=d.length;g--;)d[g]=f+I(d[g]);_=$.test(n)&&M(e.parentNode)||e,y=d.join(",")}if(y)try{return v.apply(t,_.querySelectorAll(y)),t}catch(w){}finally{m||e.removeAttribute("id")}}}return Z(n.replace(S,"$1"),e,t,x)}function B(){function t(r,i){return n.push(r+" ")>e.cacheLength&&delete t[n.shift()],t[r+" "]=i}var n=[];return t}function u(e){return e[i]=!0,e}function c(t){var e=a.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function R(t,r){for(var i=t.split("|"),n=t.length;n--;)e.attrHandle[i[n]]=r}function oe(t,n){var e=n&&t,r=e&&1===t.nodeType&&1===n.nodeType&&(~n.sourceIndex||re)-(~t.sourceIndex||re);if(r)return r;if(e)for(;e=e.nextSibling;)if(e===n)return-1;return t?1:-1}function xe(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function _e(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function _(e){return u(function(t){return t=+t,u(function(n,a){for(var r,i=e([],n.length,t),o=i.length;o--;)n[r=i[o]]&&(n[r]=!(a[r]=n[r]))})})}function M(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function ie(){}function I(t){for(var e=0,r=t.length,n="";r>e;e++)n+=t[e].value;return n}function z(t,r,a){var e=r.dir,n=a&&"parentNode"===e,o=ke++;return r.first?function(r,i,o){for(;r=r[e];)if(1===r.nodeType||n)return t(r,i,o)}:function(r,c,s){var a,u,l=[f,o];if(s){for(;r=r[e];)if((1===r.nodeType||n)&&t(r,c,s))return!0}else for(;r=r[e];)if(1===r.nodeType||n){if(u=r[i]||(r[i]={}),(a=u[e])&&a[0]===f&&a[1]===o)return l[2]=a[2];if(u[e]=l,l[2]=t(r,c,s))return!0}}}function G(e){return e.length>1?function(n,r,i){for(var t=e.length;t--;)if(!e[t](n,r,i))return!1;return!0}:e[0]}function he(i,t,r){for(var e=0,o=t.length;o>e;e++)n(i,t[e],r);return r}function H(n,r,i,a,s){for(var t,o=[],e=0,u=n.length,l=null!=r;u>e;e++)(t=n[e])&&(!i||i(t,a,s))&&(o.push(t),l&&r.push(e));return o}function P(n,o,r,t,e,a){return t&&!t[i]&&(t=P(t)),e&&!e[i]&&(e=P(e,a)),u(function(f,c,l,p){var s,a,u,g=[],h=[],y=c.length,_=f||he(o||"*",l.nodeType?[l]:l,[]),d=!n||!f&&o?_:H(_,g,n,l,p),i=r?e||(f?n:y||t)?[]:c:d;if(r&&r(d,i,l,p),t)for(s=H(i,h),t(s,[],l,p),a=s.length;a--;)(u=s[a])&&(i[h[a]]=!(d[h[a]]=u));if(f){if(e||n){if(e){for(s=[],a=i.length;a--;)(u=i[a])&&s.push(d[a]=u);e(null,i=[],s,p)}for(a=i.length;a--;)(u=i[a])&&(s=e?m(f,u):g[a])>-1&&(f[s]=!(c[s]=u))}}else i=H(i===c?i.splice(y,i.length):i),e?e(null,c,i,p):v.apply(c,i)})}function F(t){for(var s,o,r,u=t.length,l=e.relative[t[0].type],c=l||e.relative[" "],n=l?1:0,f=z(function(e){return e===s},c,!0),p=z(function(e){return m(s,e)>-1},c,!0),a=[function(n,e,t){var r=!l&&(t||e!==O)||((s=e).nodeType?f(n,e,t):p(n,e,t));return s=null,r}];u>n;n++)if(o=e.relative[t[n].type])a=[z(G(a),o)];else{if(o=e.filter[t[n].type].apply(null,t[n].matches),o[i]){for(r=++n;u>r&&!e.relative[t[r].type];r++);return P(n>1&&G(a),n>1&&I(t.slice(0,n-1).concat({value:" "===t[n-2].type?"*":""})).replace(S,"$1"),o,r>n&&F(t.slice(n,r)),u>r&&F(t=t.slice(r)),u>r&&I(t))}a.push(o)}return G(a)}function ue(i,t){var r=t.length>0,o=i.length>0,s=function(d,m,b,y,p){var l,g,h,c=0,s="0",_=d&&[],u=[],x=O,w=d||o&&e.find.TAG("*",p),k=f+=null==x?1:Math.random()||.1,A=w.length;for(p&&(O=m!==a&&m);s!==A&&null!=(l=w[s]);s++){if(o&&l){for(g=0;h=i[g++];)if(h(l,m,b)){y.push(l);break}p&&(f=k)}r&&((l=!h&&l)&&c--,d&&_.push(l))}if(c+=s,r&&s!==c){for(g=0;h=t[g++];)h(_,u,m,b);if(d){if(c>0)for(;s--;)_[s]||u[s]||(u[s]=le.call(y));u=H(u)}v.apply(y,u),p&&!d&&u.length>0&&c+t.length>1&&n.uniqueSort(y)}return p&&(f=k,O=x),_};return r?u(s):s}var w,r,e,j,ne,C,L,Z,O,g,k,b,a,l,p,o,y,N,T,i="sizzle"+1*new Date,s=W.document,f=0,ke=0,Y=B(),K=B(),ee=B(),V=function(e,t){return e===t&&(k=!0),0},re=1<<31,we={}.hasOwnProperty,x=[],le=x.pop,me=x.push,v=x.push,Q=x.slice,m=function(t,n){for(var e=0,r=t.length;r>e;e++)if(t[e]===n)return e;return-1},U="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="[\\x20\\t\\r\\n\\f]",A="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",X=A.replace("w","w#"),te="\\["+t+"*("+A+")(?:"+t+"*([*^$|!~]?=)"+t+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+X+"))|)"+t+"*\\]",q=":("+A+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+te+")*)|.*)\\)|)",se=new RegExp(t+"+","g"),S=new RegExp("^"+t+"+|((?:^|[^\\\\])(?:\\\\.)*)"+t+"+$","g"),ae=new RegExp("^"+t+"*,"+t+"*"),ce=new RegExp("^"+t+"*([>+~]|"+t+")"+t+"*"),fe=new RegExp("="+t+"*([^\\]'\"]*?)"+t+"*\\]","g"),pe=new RegExp(q),de=new RegExp("^"+X+"$"),D={ID:new RegExp("^#("+A+")"),CLASS:new RegExp("^\\.("+A+")"),TAG:new RegExp("^("+A.replace("w","w*")+")"),ATTR:new RegExp("^"+te),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+t+"*(even|odd|(([+-]|)(\\d*)n|)"+t+"*(?:([+-]|)"+t+"*(\\d+)|))"+t+"*\\)|)","i"),bool:new RegExp("^(?:"+U+")$","i"),needsContext:new RegExp("^"+t+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+t+"*((?:-\\d)?\\d*)"+t+"*\\)|)(?=[^-]|$)","i")},ge=/^(?:input|select|textarea|button)$/i,ve=/^h\d$/i,E=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,be=/'|\\/g,d=new RegExp("\\\\([\\da-f]{1,6}"+t+"?|("+t+")|.)","ig"),h=function(r,t,n){var e="0x"+t-65536;return e!==e||n?t:0>e?String.fromCharCode(e+65536):String.fromCharCode(e>>10|55296,1023&e|56320)},J=function(){b()};try{v.apply(x=Q.call(s.childNodes),s.childNodes),x[s.childNodes.length].nodeType}catch(Ae){v={apply:x.length?function(e,t){me.apply(e,Q.call(t))}:function(e,n){for(var t=e.length,r=0;e[t++]=n[r++];);e.length=t-1}}}r=n.support={},ne=n.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},b=n.setDocument=function(f){var v,u,n=f?f.ownerDocument||f:s;return n!==a&&9===n.nodeType&&n.documentElement?(a=n,l=n.documentElement,u=n.defaultView,u&&u!==u.top&&(u.addEventListener?u.addEventListener("unload",J,!1):u.attachEvent&&u.attachEvent("onunload",J)),p=!ne(n),r.attributes=c(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=c(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=E.test(n.getElementsByClassName),r.getById=c(function(e){return l.appendChild(e).id=i,!n.getElementsByName||!n.getElementsByName(i).length}),r.getById?(e.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&p){var e=t.getElementById(n);return e&&e.parentNode?[e]:[]}},e.filter.ID=function(e){var t=e.replace(d,h);return function(e){return e.getAttribute("id")===t}}):(delete e.find.ID,e.filter.ID=function(e){var t=e.replace(d,h);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),e.find.TAG=r.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):r.qsa?e.querySelectorAll(t):void 0}:function(t,i){var e,n=[],o=0,r=i.getElementsByTagName(t);if("*"===t){for(;e=r[o++];)1===e.nodeType&&n.push(e);return n}return r},e.find.CLASS=r.getElementsByClassName&&function(e,t){return p?t.getElementsByClassName(e):void 0},y=[],o=[],(r.qsa=E.test(n.querySelectorAll))&&(c(function(e){l.appendChild(e).innerHTML="<a id='"+i+"'></a><select id='"+i+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+t+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||o.push("\\["+t+"*(?:value|"+U+")"),e.querySelectorAll("[id~="+i+"-]").length||o.push("~="),e.querySelectorAll(":checked").length||o.push(":checked"),e.querySelectorAll("a#"+i+"+*").length||o.push(".#.+[+~]")}),c(function(e){var r=n.createElement("input");r.setAttribute("type","hidden"),e.appendChild(r).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&o.push("name"+t+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||o.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),o.push(",.*:")})),(r.matchesSelector=E.test(N=l.matches||l.webkitMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.msMatchesSelector))&&c(function(e){r.disconnectedMatch=N.call(e,"div"),N.call(e,"[s!='']:x"),y.push("!=",q)}),o=o.length&&new RegExp(o.join("|")),y=y.length&&new RegExp(y.join("|")),v=E.test(l.compareDocumentPosition),T=v||E.test(l.contains)?function(e,n){var r=9===e.nodeType?e.documentElement:e,t=n&&n.parentNode;return e===t||!(!t||1!==t.nodeType||!(r.contains?r.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},V=v?function(e,t){if(e===t)return k=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i?i:(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&i||!r.sortDetached&&t.compareDocumentPosition(e)===i?e===n||e.ownerDocument===s&&T(s,e)?-1:t===n||t.ownerDocument===s&&T(s,t)?1:g?m(g,e)-m(g,t):0:4&i?-1:1)}:function(r,i){if(r===i)return k=!0,0;var e,t=0,u=r.parentNode,l=i.parentNode,o=[r],a=[i];if(!u||!l)return r===n?-1:i===n?1:u?-1:l?1:g?m(g,r)-m(g,i):0;if(u===l)return oe(r,i);for(e=r;e=e.parentNode;)o.unshift(e);for(e=i;e=e.parentNode;)a.unshift(e);for(;o[t]===a[t];)t++;return t?oe(o[t],a[t]):o[t]===s?-1:a[t]===s?1:0},n):a},n.matches=function(e,t){return n(e,null,null,t)},n.matchesSelector=function(e,t){if((e.ownerDocument||e)!==a&&b(e),t=t.replace(fe,"='$1']"),r.matchesSelector&&p&&(!y||!y.test(t))&&(!o||!o.test(t)))try{var i=N.call(e,t);if(i||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(s){}return n(t,a,null,[e]).length>0},n.contains=function(e,t){return(e.ownerDocument||e)!==a&&b(e),T(e,t)},n.attr=function(t,n){(t.ownerDocument||t)!==a&&b(t);var o=e.attrHandle[n.toLowerCase()],i=o&&we.call(e.attrHandle,n.toLowerCase())?o(t,n,!p):void 0;return void 0!==i?i:r.attributes||!p?t.getAttribute(n):(i=t.getAttributeNode(n))&&i.specified?i.value:null},n.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},n.uniqueSort=function(e){var i,o=[],t=0,n=0;if(k=!r.detectDuplicates,g=!r.sortStable&&e.slice(0),e.sort(V),k){for(;i=e[n++];)i===e[n]&&(t=o.push(n));for(;t--;)e.splice(o[t],1)}return g=null,e},j=n.getText=function(e){var r,n="",i=0,t=e.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=j(e)}else if(3===t||4===t)return e.nodeValue}else for(;r=e[i++];)n+=j(r);return n},e=n.selectors={cacheLength:50,createPseudo:u,match:D,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(d,h),e[3]=(e[3]||e[4]||e[5]||"").replace(d,h),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||n.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&n.error(e[0]),e},PSEUDO:function(e){var n,t=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":t&&pe.test(t)&&(n=C(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(e[0]=e[0].slice(0,n),e[2]=t.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(d,h).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var n=Y[e+" "];return n||(n=new RegExp("(^|"+t+")"+e+"("+t+"|$)"))&&Y(e,function(e){return n.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(r,t,e){return function(o){var i=n.attr(o,r);return null==i?"!="===t:t?(i+="","="===t?i===e:"!="===t?i!==e:"^="===t?e&&0===i.indexOf(e):"*="===t?e&&i.indexOf(e)>-1:"$="===t?e&&i.slice(-e.length)===e:"~="===t?(" "+i.replace(se," ")+" ").indexOf(e)>-1:"|="===t?i===e||i.slice(0,e.length+1)===e+"-":!1):!0}},CHILD:function(e,s,u,t,o){var a="nth"!==e.slice(0,3),r="last"!==e.slice(-4),n="of-type"===s;return 1===t&&0===o?function(e){return!!e.parentNode}:function(p,b,_){var c,v,s,u,l,h,g=a!==r?"nextSibling":"previousSibling",d=p.parentNode,y=n&&p.nodeName.toLowerCase(),m=!_&&!n;if(d){if(a){for(;g;){for(s=p;s=s[g];)if(n?s.nodeName.toLowerCase()===y:1===s.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[r?d.firstChild:d.lastChild],r&&m){for(v=d[i]||(d[i]={}),c=v[e]||[],l=c[0]===f&&c[1],u=c[0]===f&&c[2],s=l&&d.childNodes[l];s=++l&&s&&s[g]||(u=l=0)||h.pop();)if(1===s.nodeType&&++u&&s===p){v[e]=[f,l,u];break}}else if(m&&(c=(p[i]||(p[i]={}))[e])&&c[0]===f)u=c[1];else for(;(s=++l&&s&&s[g]||(u=l=0)||h.pop())&&((n?s.nodeName.toLowerCase()!==y:1!==s.nodeType)||!++u||(m&&((s[i]||(s[i]={}))[e]=[f,u]),s!==p)););return u-=o,u===t||u%t===0&&u/t>=0}}},PSEUDO:function(t,o){var a,r=e.pseudos[t]||e.setFilters[t.toLowerCase()]||n.error("unsupported pseudo: "+t);return r[i]?r(o):r.length>1?(a=[t,t,"",o],e.setFilters.hasOwnProperty(t.toLowerCase())?u(function(e,a){for(var t,n=r(e,o),i=n.length;i--;)t=m(e,n[i]),e[t]=!(a[t]=n[i])}):function(e){return r(e,0,a)}):r}},pseudos:{not:u(function(r){var e=[],n=[],t=L(r.replace(S,"$1"));return t[i]?u(function(n,i,s,o){for(var r,a=t(n,null,o,[]),e=n.length;e--;)(r=a[e])&&(n[e]=!(i[e]=r))}):function(r,o,i){return e[0]=r,t(e,null,i,n),e[0]=null,!n.pop()}}),has:u(function(e){return function(t){return n(e,t).length>0}}),contains:u(function(e){return e=e.replace(d,h),function(t){return(t.textContent||t.innerText||j(t)).indexOf(e)>-1}}),lang:u(function(e){return de.test(e||"")||n.error("unsupported lang: "+e),e=e.replace(d,h).toLowerCase(),function(t){var n;do if(n=p?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=W.location&&W.location.hash;return e&&e.slice(1)===t.id},root:function(e){return e===l},focus:function(e){return e===a.activeElement&&(!a.hasFocus||a.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(e){return ve.test(e.nodeName)},input:function(e){return ge.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:_(function(){return[0]}),last:_(function(t,e){return[e-1]}),eq:_(function(n,t,e){return[0>e?e+t:e]}),even:_(function(t,n){for(var e=0;n>e;e+=2)t.push(e);return t}),odd:_(function(t,n){for(var e=1;n>e;e+=2)t.push(e);return t}),lt:_(function(t,r,e){for(var n=0>e?e+r:e;--n>=0;)t.push(n);return t}),gt:_(function(t,n,e){for(var r=0>e?e+n:e;++r<n;)t.push(r);return t})}},e.pseudos.nth=e.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[w]=xe(w);for(w in{submit:!0,reset:!0})e.pseudos[w]=_e(w);return ie.prototype=e.filters=e.pseudos,e.setFilters=new ie,C=n.tokenize=function(a,c){var i,r,s,o,t,u,l,f=K[a+" "];if(f)return c?0:f.slice(0);for(t=a,u=[],l=e.preFilter;t;){(!i||(r=ae.exec(t)))&&(r&&(t=t.slice(r[0].length)||t),u.push(s=[])),i=!1,(r=ce.exec(t))&&(i=r.shift(),s.push({value:i,type:r[0].replace(S," ")}),t=t.slice(i.length));for(o in e.filter)!(r=D[o].exec(t))||l[o]&&!(r=l[o](r))||(i=r.shift(),s.push({value:i,type:o,matches:r}),t=t.slice(i.length));if(!i)break}return c?t.length:t?n.error(a):K(a,u).slice(0)},L=n.compile=function(t,n){var r,o=[],a=[],e=ee[t+" "];if(!e){for(n||(n=C(t)),r=n.length;r--;)e=F(n[r]),e[i]?o.push(e):a.push(e);e=ee(t,ue(a,o)),e.selector=t}return e},Z=n.select=function(t,n,o,a){var u,i,s,f,g,c="function"==typeof t&&t,l=!a&&C(t=c.selector||t);if(o=o||[],1===l.length){if(i=l[0]=l[0].slice(0),i.length>2&&"ID"===(s=i[0]).type&&r.getById&&9===n.nodeType&&p&&e.relative[i[1].type]){if(n=(e.find.ID(s.matches[0].replace(d,h),n)||[])[0],!n)return o;c&&(n=n.parentNode),t=t.slice(i.shift().value.length)}for(u=D.needsContext.test(t)?0:i.length;u--&&(s=i[u],!e.relative[f=s.type]);)if((g=e.find[f])&&(a=g(s.matches[0].replace(d,h),$.test(i[0].type)&&M(n.parentNode)||n))){if(i.splice(u,1),t=a.length&&I(i),!t)return v.apply(o,a),o;break}}return(c||L(t,l))(a,n,!p,o,$.test(t)&&M(n.parentNode)||n),o},r.sortStable=i.split("").sort(V).join("")===i,r.detectDuplicates=!!k,b(),r.sortDetached=c(function(e){return 1&e.compareDocumentPosition(a.createElement("div"))}),c(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||R("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),r.attributes&&c(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||R("value",function(e,n,t){return t||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),c(function(e){return null==e.getAttribute("disabled")})||R(U,function(n,e,r){var t;return r?void 0:n[e]===!0?e.toLowerCase():(t=n.getAttributeNode(e))&&t.specified?t.value:null}),n}(r);e.find=v,e.expr=v.selectors,e.expr[":"]=e.expr.pseudos,e.unique=v.uniqueSort,e.text=v.getText,e.isXMLDoc=v.isXML,e.contains=v.contains;var Te=e.expr.match.needsContext,Ce=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,yt=/^.[^:#\[\.,]*$/;e.filter=function(t,n,i){var r=n[0];return i&&(t=":not("+t+")"),1===n.length&&1===r.nodeType?e.find.matchesSelector(r,t)?[r]:[]:e.find.matches(t,e.grep(n,function(e){return 1===e.nodeType}))},e.fn.extend({find:function(r){var t,i=this.length,n=[],o=this;if("string"!=typeof r)return this.pushStack(e(r).filter(function(){for(t=0;i>t;t++)if(e.contains(o[t],this))return!0;
  2. }));for(t=0;i>t;t++)e.find(r,o[t],n);return n=this.pushStack(i>1?e.unique(n):n),n.selector=this.selector?this.selector+" "+r:r,n},filter:function(e){return this.pushStack(K(this,e||[],!1))},not:function(e){return this.pushStack(K(this,e||[],!0))},is:function(t){return!!K(this,"string"==typeof t&&Te.test(t)?e(t):t||[],!1).length}});var S,Tt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,Dt=e.fn.init=function(t,r){var i,o;if(!t)return this;if("string"==typeof t){if(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Tt.exec(t),!i||!i[1]&&r)return!r||r.jquery?(r||S).find(t):this.constructor(r).find(t);if(i[1]){if(r=r instanceof e?r[0]:r,e.merge(this,e.parseHTML(i[1],r&&r.nodeType?r.ownerDocument||r:n,!0)),Ce.test(i[1])&&e.isPlainObject(r))for(i in r)e.isFunction(this[i])?this[i](r[i]):this.attr(i,r[i]);return this}return o=n.getElementById(i[2]),o&&o.parentNode&&(this.length=1,this[0]=o),this.context=n,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):e.isFunction(t)?"undefined"!=typeof S.ready?S.ready(t):t(e):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),e.makeArray(t,this))};Dt.prototype=e.fn,S=e(n);var It=/^(?:parents|prev(?:Until|All))/,Ot={children:!0,contents:!0,next:!0,prev:!0};e.extend({dir:function(t,i,n){for(var r=[],o=void 0!==n;(t=t[i])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&e(t).is(n))break;r.push(t)}return r},sibling:function(e,n){for(var t=[];e;e=e.nextSibling)1===e.nodeType&&e!==n&&t.push(e);return t}}),e.fn.extend({has:function(n){var t=e(n,this),r=t.length;return this.filter(function(){for(var n=0;r>n;n++)if(e.contains(this,t[n]))return!0})},closest:function(n,o){for(var t,i=0,s=this.length,r=[],a=Te.test(n)||"string"!=typeof n?e(n,o||this.context):0;s>i;i++)for(t=this[i];t&&t!==o;t=t.parentNode)if(t.nodeType<11&&(a?a.index(t)>-1:1===t.nodeType&&e.find.matchesSelector(t,n))){r.push(t);break}return this.pushStack(r.length>1?e.unique(r):r)},index:function(t){return t?"string"==typeof t?O.call(e(t),this[0]):O.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,n){return this.pushStack(e.unique(e.merge(this.get(),e(t,n))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),e.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return e.dir(t,"parentNode")},parentsUntil:function(t,r,n){return e.dir(t,"parentNode",n)},next:function(e){return Z(e,"nextSibling")},prev:function(e){return Z(e,"previousSibling")},nextAll:function(t){return e.dir(t,"nextSibling")},prevAll:function(t){return e.dir(t,"previousSibling")},nextUntil:function(t,r,n){return e.dir(t,"nextSibling",n)},prevUntil:function(t,r,n){return e.dir(t,"previousSibling",n)},siblings:function(t){return e.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return e.sibling(t.firstChild)},contents:function(t){return t.contentDocument||e.merge([],t.childNodes)}},function(t,n){e.fn[t]=function(o,i){var r=e.map(this,n,o);return"Until"!==t.slice(-5)&&(i=o),i&&"string"==typeof i&&(r=e.filter(i,r)),this.length>1&&(Ot[t]||e.unique(r),It.test(t)&&r.reverse()),this.pushStack(r)}});var l=/\S+/g,Ie={};e.Callbacks=function(n){n="string"==typeof n?Ie[n]||mt(n):e.extend({},n);var i,c,s,l,a,o,t=[],r=!n.once&&[],f=function(e){for(i=n.memory&&e,c=!0,o=l||0,l=0,a=t.length,s=!0;t&&a>o;o++)if(t[o].apply(e[0],e[1])===!1&&n.stopOnFalse){i=!1;break}s=!1,t&&(r?r.length&&f(r.shift()):i?t=[]:u.disable())},u={add:function(){if(t){var r=t.length;!function o(r){e.each(r,function(a,r){var i=e.type(r);"function"===i?n.unique&&u.has(r)||t.push(r):r&&r.length&&"string"!==i&&o(r)})}(arguments),s?a=t.length:i&&(l=r,f(i))}return this},remove:function(){return t&&e.each(arguments,function(i,r){for(var n;(n=e.inArray(r,t,n))>-1;)t.splice(n,1),s&&(a>=n&&a--,o>=n&&o--)}),this},has:function(n){return n?e.inArray(n,t)>-1:!(!t||!t.length)},empty:function(){return t=[],a=0,this},disable:function(){return t=r=i=void 0,this},disabled:function(){return!t},lock:function(){return r=void 0,i||u.disable(),this},locked:function(){return!r},fireWith:function(n,e){return!t||c&&!r||(e=e||[],e=[n,e.slice?e.slice():e],s?r.push(e):f(e)),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!c}};return u},e.extend({Deferred:function(i){var r=[["resolve","done",e.Callbacks("once memory"),"resolved"],["reject","fail",e.Callbacks("once memory"),"rejected"],["notify","progress",e.Callbacks("memory")]],o="pending",n={state:function(){return o},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var i=arguments;return e.Deferred(function(o){e.each(r,function(a,s){var r=e.isFunction(i[a])&&i[a];t[s[1]](function(){var t=r&&r.apply(this,arguments);t&&e.isFunction(t.promise)?t.promise().done(o.resolve).fail(o.reject).progress(o.notify):o[s[0]+"With"](this===n?o.promise():this,r?[t]:arguments)})}),i=null}).promise()},promise:function(t){return null!=t?e.extend(t,n):n}},t={};return n.pipe=n.then,e.each(r,function(s,e){var i=e[2],a=e[3];n[e[1]]=i.add,a&&i.add(function(){o=a},r[1^s][2].disable,r[2][2].lock),t[e[0]]=function(){return t[e[0]+"With"](this===t?n:this,arguments),this},t[e[0]+"With"]=i.fireWith}),n.promise(t),i&&i.call(t,t),t},when:function(a){var s,l,u,t=0,r=c.call(arguments),n=r.length,o=1!==n||a&&e.isFunction(a.promise)?n:0,i=1===o?a:e.Deferred(),f=function(n,t,e){return function(r){t[n]=this,e[n]=arguments.length>1?c.call(arguments):r,e===s?i.notifyWith(t,e):--o||i.resolveWith(t,e)}};if(n>1)for(s=new Array(n),l=new Array(n),u=new Array(n);n>t;t++)r[t]&&e.isFunction(r[t].promise)?r[t].promise().done(f(t,u,r)).fail(i.reject).progress(f(t,l,s)):--o;return o||i.resolveWith(u,r),i.promise()}});var I;e.fn.ready=function(t){return e.ready.promise().done(t),this},e.extend({isReady:!1,readyWait:1,holdReady:function(t){t?e.readyWait++:e.ready(!0)},ready:function(t){(t===!0?--e.readyWait:e.isReady)||(e.isReady=!0,t!==!0&&--e.readyWait>0||(I.resolveWith(n,[e]),e.fn.triggerHandler&&(e(n).triggerHandler("ready"),e(n).off("ready"))))}}),e.ready.promise=function(t){return I||(I=e.Deferred(),"complete"===n.readyState?setTimeout(e.ready):(n.addEventListener("DOMContentLoaded",L,!1),r.addEventListener("load",L,!1))),I.promise(t)},e.ready.promise();var p=e.access=function(n,t,i,o,u,l,a){var r=0,c=n.length,s=null==i;if("object"===e.type(i)){u=!0;for(r in i)e.access(n,t,r,i[r],!0,l,a)}else if(void 0!==o&&(u=!0,e.isFunction(o)||(a=!0),s&&(a?(t.call(n,o),t=null):(s=t,t=function(t,r,n){return s.call(e(t),n)})),t))for(;c>r;r++)t(n[r],i,a?o:o.call(n[r],r,t(n[r],i)));return u?n:s?t.call(n):c?t(n[0],i):l};e.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},f.uid=1,f.accepts=e.acceptData,f.prototype={key:function(n){if(!f.accepts(n))return 0;var r={},t=n[this.expando];if(!t){t=f.uid++;try{r[this.expando]={value:t},Object.defineProperties(n,r)}catch(i){r[this.expando]=t,e.extend(n,r)}}return this.cache[t]||(this.cache[t]={}),t},set:function(o,t,a){var r,i=this.key(o),n=this.cache[i];if("string"==typeof t)n[t]=a;else if(e.isEmptyObject(n))e.extend(this.cache[i],t);else for(r in t)n[r]=t[r];return n},get:function(n,e){var t=this.cache[this.key(n)];return void 0===e?t:t[e]},access:function(r,t,n){var i;return void 0===t||t&&"string"==typeof t&&void 0===n?(i=this.get(r,t),void 0!==i?i:this.get(r,e.camelCase(t))):(this.set(r,t,n),void 0!==n?n:t)},remove:function(s,n){var r,t,i,a=this.key(s),o=this.cache[a];if(void 0===n)this.cache[a]={};else{e.isArray(n)?t=n.concat(n.map(e.camelCase)):(i=e.camelCase(n),n in o?t=[n,i]:(t=i,t=t in o?[t]:t.match(l)||[])),r=t.length;for(;r--;)delete o[t[r]]}},hasData:function(t){return!e.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var t=new f,o=new f,Lt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ze=/([A-Z])/g;e.extend({hasData:function(e){return o.hasData(e)||t.hasData(e)},data:function(e,t,n){return o.access(e,t,n)},removeData:function(e,t){o.remove(e,t)},_data:function(e,n,r){return t.access(e,n,r)},_removeData:function(e,n){t.remove(e,n)}}),e.fn.extend({data:function(r,l){var a,i,s,n=this[0],u=n&&n.attributes;if(void 0===r){if(this.length&&(s=o.get(n),1===n.nodeType&&!t.get(n,"hasDataAttrs"))){for(a=u.length;a--;)u[a]&&(i=u[a].name,0===i.indexOf("data-")&&(i=e.camelCase(i.slice(5)),_e(n,i,s[i])));t.set(n,"hasDataAttrs",!0)}return s}return"object"==typeof r?this.each(function(){o.set(this,r)}):p(this,function(a){var t,i=e.camelCase(r);if(n&&void 0===a){if(t=o.get(n,r),void 0!==t)return t;if(t=o.get(n,i),void 0!==t)return t;if(t=_e(n,i,void 0),void 0!==t)return t}else this.each(function(){var e=o.get(this,i);o.set(this,i,a),-1!==r.indexOf("-")&&void 0!==e&&o.set(this,r,a)})},null,l,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){o.remove(this,e)})}}),e.extend({queue:function(o,r,i){var n;return o?(r=(r||"fx")+"queue",n=t.get(o,r),i&&(!n||e.isArray(i)?n=t.access(o,r,e.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(n,t){t=t||"fx";var r=e.queue(n,t),a=r.length,i=r.shift(),o=e._queueHooks(n,t),s=function(){e.dequeue(n,t)};"inprogress"===i&&(i=r.shift(),a--),i&&("fx"===t&&r.unshift("inprogress"),delete o.stop,i.call(n,s,o)),!a&&o&&o.empty.fire()},_queueHooks:function(n,i){var r=i+"queueHooks";return t.get(n,r)||t.access(n,r,{empty:e.Callbacks("once memory").add(function(){t.remove(n,[i+"queue",r])})})}}),e.fn.extend({queue:function(t,n){var r=2;return"string"!=typeof t&&(n=t,t="fx",r--),arguments.length<r?e.queue(this[0],t):void 0===n?this:this.each(function(){var r=e.queue(this,t,n);e._queueHooks(this,t),"fx"===t&&"inprogress"!==r[0]&&e.dequeue(this,t)})},dequeue:function(t){return this.each(function(){e.dequeue(this,t)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(n,o){var r,a=1,s=e.Deferred(),i=this,u=this.length,l=function(){--a||s.resolveWith(i,[i])};for("string"!=typeof n&&(o=n,n=void 0),n=n||"fx";u--;)r=t.get(i[u],n+"queueHooks"),r&&r.empty&&(a++,r.empty.add(l));return l(),s.promise(o)}});var C=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,d=["Top","Right","Bottom","Left"],_=function(t,n){return t=n||t,"none"===e.css(t,"display")||!e.contains(t.ownerDocument,t)},re=/^(?:checkbox|radio)$/i;!function(){var r=n.createDocumentFragment(),e=r.appendChild(n.createElement("div")),t=n.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),i.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",i.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var b="undefined";i.focusinBubbles="onfocusin"in r;var lt=/^key/,ct=/^(?:mouse|pointer|contextmenu)|click/,oe=/^(?:focusinfocus|focusoutblur)$/,ae=/^([^.]*)(?:\.(.+)|)$/;e.event={global:{},add:function(o,f,r,y,a){var d,p,v,h,g,u,i,s,n,m,_,c=t.get(o);if(c)for(r.handler&&(d=r,r=d.handler,a=d.selector),r.guid||(r.guid=e.guid++),(h=c.events)||(h=c.events={}),(p=c.handle)||(p=c.handle=function(t){return typeof e!==b&&e.event.triggered!==t.type?e.event.dispatch.apply(o,arguments):void 0}),f=(f||"").match(l)||[""],g=f.length;g--;)v=ae.exec(f[g])||[],n=_=v[1],m=(v[2]||"").split(".").sort(),n&&(i=e.event.special[n]||{},n=(a?i.delegateType:i.bindType)||n,i=e.event.special[n]||{},u=e.extend({type:n,origType:_,data:y,handler:r,guid:r.guid,selector:a,needsContext:a&&e.expr.match.needsContext.test(a),namespace:m.join(".")},d),(s=h[n])||(s=h[n]=[],s.delegateCount=0,i.setup&&i.setup.call(o,y,m,p)!==!1||o.addEventListener&&o.addEventListener(n,p,!1)),i.add&&(i.add.call(o,u),u.handler.guid||(u.handler.guid=r.guid)),a?s.splice(s.delegateCount++,0,u):s.push(u),e.event.global[n]=!0)},remove:function(i,f,g,c,_){var h,m,a,p,d,r,o,s,n,v,y,u=t.hasData(i)&&t.get(i);if(u&&(p=u.events)){for(f=(f||"").match(l)||[""],d=f.length;d--;)if(a=ae.exec(f[d])||[],n=y=a[1],v=(a[2]||"").split(".").sort(),n){for(o=e.event.special[n]||{},n=(c?o.delegateType:o.bindType)||n,s=p[n]||[],a=a[2]&&new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"),m=h=s.length;h--;)r=s[h],!_&&y!==r.origType||g&&g.guid!==r.guid||a&&!a.test(r.namespace)||c&&c!==r.selector&&("**"!==c||!r.selector)||(s.splice(h,1),r.selector&&s.delegateCount--,o.remove&&o.remove.call(i,r));m&&!s.length&&(o.teardown&&o.teardown.call(i,v,u.handle)!==!1||e.removeEvent(i,n,u.handle),delete p[n])}else for(n in p)e.event.remove(i,n+f[d],g,c,!0);e.isEmptyObject(p)&&(delete u.handle,t.remove(i,"events"))}},trigger:function(i,c,o,g){var v,s,u,m,f,p,l,h=[o||n],a=Y.call(i,"type")?i.type:i,d=Y.call(i,"namespace")?i.namespace.split("."):[];if(s=u=o=o||n,3!==o.nodeType&&8!==o.nodeType&&!oe.test(a+e.event.triggered)&&(a.indexOf(".")>=0&&(d=a.split("."),a=d.shift(),d.sort()),f=a.indexOf(":")<0&&"on"+a,i=i[e.expando]?i:new e.Event(a,"object"==typeof i&&i),i.isTrigger=g?2:3,i.namespace=d.join("."),i.namespace_re=i.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,i.result=void 0,i.target||(i.target=o),c=null==c?[i]:e.makeArray(c,[i]),l=e.event.special[a]||{},g||!l.trigger||l.trigger.apply(o,c)!==!1)){if(!g&&!l.noBubble&&!e.isWindow(o)){for(m=l.delegateType||a,oe.test(m+a)||(s=s.parentNode);s;s=s.parentNode)h.push(s),u=s;u===(o.ownerDocument||n)&&h.push(u.defaultView||u.parentWindow||r)}for(v=0;(s=h[v++])&&!i.isPropagationStopped();)i.type=v>1?m:l.bindType||a,p=(t.get(s,"events")||{})[i.type]&&t.get(s,"handle"),p&&p.apply(s,c),p=f&&s[f],p&&p.apply&&e.acceptData(s)&&(i.result=p.apply(s,c),i.result===!1&&i.preventDefault());return i.type=a,g||i.isDefaultPrevented()||l._default&&l._default.apply(h.pop(),c)!==!1||!e.acceptData(o)||f&&e.isFunction(o[a])&&!e.isWindow(o)&&(u=o[f],u&&(o[f]=null),e.event.triggered=a,o[a](),e.event.triggered=void 0,u&&(o[f]=u)),i.result}},dispatch:function(n){n=e.event.fix(n);var s,u,a,i,r,l=[],f=c.call(arguments),p=(t.get(this,"events")||{})[n.type]||[],o=e.event.special[n.type]||{};if(f[0]=n,n.delegateTarget=this,!o.preDispatch||o.preDispatch.call(this,n)!==!1){for(l=e.event.handlers.call(this,n,p),s=0;(i=l[s++])&&!n.isPropagationStopped();)for(n.currentTarget=i.elem,u=0;(r=i.handlers[u++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(r.namespace))&&(n.handleObj=r,n.data=r.data,a=((e.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,f),void 0!==a&&(n.result=a)===!1&&(n.preventDefault(),n.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,n),n.result}},handlers:function(i,o){var a,n,r,s,l=[],u=o.delegateCount,t=i.target;if(u&&t.nodeType&&(!i.button||"click"!==i.type))for(;t!==this;t=t.parentNode||this)if(t.disabled!==!0||"click"!==i.type){for(n=[],a=0;u>a;a++)s=o[a],r=s.selector+" ",void 0===n[r]&&(n[r]=s.needsContext?e(r,this).index(t)>=0:e.find(r,this,null,[t]).length),n[r]&&n.push(s);n.length&&l.push({elem:t,handlers:n})}return u<o.length&&l.push({elem:this,handlers:o.slice(u)}),l},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(r,i){var a,e,t,o=i.button;return null==r.pageX&&null!=i.clientX&&(a=r.target.ownerDocument||n,e=a.documentElement,t=a.body,r.pageX=i.clientX+(e&&e.scrollLeft||t&&t.scrollLeft||0)-(e&&e.clientLeft||t&&t.clientLeft||0),r.pageY=i.clientY+(e&&e.scrollTop||t&&t.scrollTop||0)-(e&&e.clientTop||t&&t.clientTop||0)),r.which||void 0===o||(r.which=1&o?1:2&o?3:4&o?2:0),r}},fix:function(t){if(t[e.expando])return t;var o,a,s,i=t.type,u=t,r=this.fixHooks[i];for(r||(this.fixHooks[i]=r=ct.test(i)?this.mouseHooks:lt.test(i)?this.keyHooks:{}),s=r.props?this.props.concat(r.props):this.props,t=new e.Event(u),o=s.length;o--;)a=s[o],t[a]=u[a];return t.target||(t.target=n),3===t.target.nodeType&&(t.target=t.target.parentNode),r.filter?r.filter(t,u):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==ye()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===ye()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&e.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return e.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(i,n,r,o){var t=e.extend(new e.Event,r,{type:i,isSimulated:!0,originalEvent:{}});o?e.event.trigger(t,null,n):e.event.dispatch.call(n,t),t.isDefaultPrevented()&&r.preventDefault()}},e.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},e.Event=function(t,n){return this instanceof e.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?T:m):this.type=t,n&&e.extend(this,n),this.timeStamp=t&&t.timeStamp||e.now(),void(this[e.expando]=!0)):new e.Event(t,n)},e.Event.prototype={isDefaultPrevented:m,isPropagationStopped:m,isImmediatePropagationStopped:m,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=T,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=T,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=T,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},e.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){e.event.special[n]={delegateType:t,bindType:t,handle:function(n){var i,o=this,r=n.relatedTarget,a=n.handleObj;return(!r||r!==o&&!e.contains(o,r))&&(n.type=a.origType,i=a.handler.apply(this,arguments),n.type=t),i}}}),i.focusinBubbles||e.each({focus:"focusin",blur:"focusout"},function(r,n){var i=function(t){e.event.simulate(n,t.target,e.event.fix(t),!0)};e.event.special[n]={setup:function(){var e=this.ownerDocument||this,o=t.access(e,n);o||e.addEventListener(r,i,!0),t.access(e,n,(o||0)+1)},teardown:function(){var e=this.ownerDocument||this,o=t.access(e,n)-1;o?t.access(e,n,o):(e.removeEventListener(r,i,!0),t.remove(e,n))}}}),e.fn.extend({on:function(i,n,r,t,s){var o,a;if("object"==typeof i){"string"!=typeof n&&(r=r||n,n=void 0);for(a in i)this.on(a,n,r,i[a],s);return this}if(null==r&&null==t?(t=n,r=n=void 0):null==t&&("string"==typeof n?(t=r,r=void 0):(t=r,r=n,n=void 0)),t===!1)t=m;else if(!t)return this;return 1===s&&(o=t,t=function(t){return e().off(t),o.apply(this,arguments)},t.guid=o.guid||(o.guid=e.guid++)),this.each(function(){e.event.add(this,i,t,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(t,r,i){var n,o;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,e(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(o in t)this.off(o,r,t[o]);return this}return(r===!1||"function"==typeof r)&&(i=r,r=void 0),i===!1&&(i=m),this.each(function(){e.event.remove(this,t,i,r)})},trigger:function(t,n){return this.each(function(){e.event.trigger(t,n,this)})},triggerHandler:function(n,r){var t=this[0];return t?e.event.trigger(n,r,t,!0):void 0}});var se=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ue=/<([\w:]+)/,bt=/<|&#?\w+;/,xt=/<(?:script|style|link)/i,wt=/checked\s*(?:[^=]|=\s*.checked.)/i,le=/^$|\/(?:java|ecma)script/i,Nt=/^true\/(.*)/,Ht=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,u={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};u.optgroup=u.option,u.tbody=u.tfoot=u.colgroup=u.caption=u.thead,u.th=u.td,e.extend({clone:function(t,l,c){var n,u,o,r,a=t.cloneNode(!0),f=e.contains(t.ownerDocument,t);if(!(i.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||e.isXMLDoc(t)))for(r=s(a),o=s(t),n=0,u=o.length;u>n;n++)st(o[n],r[n]);if(l)if(c)for(o=o||s(t),r=r||s(a),n=0,u=o.length;u>n;n++)Pe(o[n],r[n]);else Pe(t,a);return r=s(a,"script"),r.length>0&&M(r,!f&&s(t,"script")),a},buildFragment:function(p,c,d,g){for(var t,n,h,o,f,a,r=c.createDocumentFragment(),l=[],i=0,v=p.length;v>i;i++)if(t=p[i],t||0===t)if("object"===e.type(t))e.merge(l,t.nodeType?[t]:t);else if(bt.test(t)){for(n=n||r.appendChild(c.createElement("div")),h=(ue.exec(t)||["",""])[1].toLowerCase(),o=u[h]||u._default,n.innerHTML=o[1]+t.replace(se,"<$1></$2>")+o[2],a=o[0];a--;)n=n.lastChild;e.merge(l,n.childNodes),n=r.firstChild,n.textContent=""}else l.push(c.createTextNode(t));for(r.textContent="",i=0;t=l[i++];)if((!g||-1===e.inArray(t,g))&&(f=e.contains(t.ownerDocument,t),n=s(r.appendChild(t),"script"),f&&M(n),d))for(a=0;t=n[a++];)le.test(t.type||"")&&d.push(t);return r},cleanData:function(u){for(var i,n,a,r,l=e.event.special,s=0;void 0!==(n=u[s]);s++){if(e.acceptData(n)&&(r=n[t.expando],r&&(i=t.cache[r]))){if(i.events)for(a in i.events)l[a]?e.event.remove(n,a):e.removeEvent(n,a,i.handle);t.cache[r]&&delete t.cache[r]}delete o.cache[n[o.expando]]}}}),e.fn.extend({text:function(t){return p(this,function(t){return void 0===t?e.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=t)})},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Le(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Le(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(n,r){for(var t,o=n?e.filter(n,this):this,i=0;null!=(t=o[i]);i++)r||1!==t.nodeType||e.cleanData(s(t)),t.parentNode&&(r&&e.contains(t.ownerDocument,t)&&M(s(t,"script")),t.parentNode.removeChild(t));return this},empty:function(){for(var t,n=0;null!=(t=this[n]);n++)1===t.nodeType&&(e.cleanData(s(t,!1)),t.textContent="");return this},clone:function(t,n){return t=null==t?!1:t,n=null==n?t:n,this.map(function(){return e.clone(this,t,n)})},html:function(t){return p(this,function(t){var n=this[0]||{},r=0,i=this.length;if(void 0===t&&1===n.nodeType)return n.innerHTML;if("string"==typeof t&&!xt.test(t)&&!u[(ue.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(se,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(e.cleanData(s(n,!1)),n.innerHTML=t);n=0}catch(o){}}n&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(n){t=this.parentNode,e.cleanData(s(this)),t&&t.replaceChild(n,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(a,d){a=ie.apply([],a);var u,p,o,l,n,g,r=0,c=this.length,m=this,v=c-1,f=a[0],h=e.isFunction(f);if(h||c>1&&"string"==typeof f&&!i.checkClone&&wt.test(f))return this.each(function(e){var t=m.eq(e);h&&(a[0]=f.call(this,e,t.html())),t.domManip(a,d)});if(c&&(u=e.buildFragment(a,this[0].ownerDocument,!1,this),p=u.firstChild,1===u.childNodes.length&&(u=p),p)){for(o=e.map(s(u,"script"),Qe),l=o.length;c>r;r++)n=u,r!==v&&(n=e.clone(n,!0,!0),l&&e.merge(o,s(n,"script"))),d.call(this[r],n,r);if(l)for(g=o[o.length-1].ownerDocument,e.map(o,pt),r=0;l>r;r++)n=o[r],le.test(n.type||"")&&!t.access(n,"globalEval")&&e.contains(g,n)&&(n.src?e._evalUrl&&e._evalUrl(n.src):e.globalEval(n.textContent.replace(Ht,"")))}return this}}),e.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,n){e.fn[t]=function(s){for(var r,i=[],o=e(s),a=o.length-1,t=0;a>=t;t++)r=t===a?this:this.clone(!0),e(o[t])[n](r),F.apply(i,r.get());return this.pushStack(i)}});var j,pe={},de=/^margin/,R=new RegExp("^("+C+")(?!px)[a-z%]+$","i"),N=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):r.getComputedStyle(e,null)};!function(){function u(){t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",t.innerHTML="",a.appendChild(o);var e=r.getComputedStyle(t,null);l="1%"!==e.top,s="4px"===e.width,a.removeChild(o)}var l,s,a=n.documentElement,o=n.createElement("div"),t=n.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",i.clearCloneStyle="content-box"===t.style.backgroundClip,o.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",o.appendChild(t),r.getComputedStyle&&e.extend(i,{pixelPosition:function(){return u(),l},boxSizingReliable:function(){return null==s&&u(),s},reliableMarginRight:function(){var i,e=t.appendChild(n.createElement("div"));return e.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",t.style.width="1px",a.appendChild(o),i=!parseFloat(r.getComputedStyle(e,null).marginRight),a.removeChild(o),t.removeChild(e),i}}))}(),e.swap=function(t,n,o,a){var r,e,i={};for(e in n)i[e]=t.style[e],t.style[e]=n[e];r=o.apply(t,a||[]);for(e in n)t.style[e]=i[e];return r};var Be=/^(none|table(?!-c[ea]).+)/,ze=new RegExp("^("+C+")(.*)$","i"),Ve=new RegExp("^([+-])=("+C+")","i"),Ge={position:"absolute",visibility:"hidden",display:"block"},ve={letterSpacing:"0",fontWeight:"400"},me=["Webkit","O","Moz","ms"];e.extend({cssHooks:{opacity:{get:function(t,n){if(n){var e=A(t,"opacity");return""===e?"1":e}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(n,r,t,c){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var a,u,o,s=e.camelCase(r),l=n.style;return r=e.cssProps[s]||(e.cssProps[s]=ne(l,s)),o=e.cssHooks[r]||e.cssHooks[s],void 0===t?o&&"get"in o&&void 0!==(a=o.get(n,!1,c))?a:l[r]:(u=typeof t,"string"===u&&(a=Ve.exec(t))&&(t=(a[1]+1)*a[2]+parseFloat(e.css(n,r)),u="number"),null!=t&&t===t&&("number"!==u||e.cssNumber[s]||(t+="px"),i.clearCloneStyle||""!==t||0!==r.indexOf("background")||(l[r]="inherit"),o&&"set"in o&&void 0===(t=o.set(n,t,c))||(l[r]=t)),void 0)}},css:function(a,n,r,u){var t,s,i,o=e.camelCase(n);return n=e.cssProps[o]||(e.cssProps[o]=ne(a.style,o)),i=e.cssHooks[n]||e.cssHooks[o],i&&"get"in i&&(t=i.get(a,!0,r)),void 0===t&&(t=A(a,n,u)),"normal"===t&&n in ve&&(t=ve[n]),""===r||r?(s=parseFloat(t),r===!0||e.isNumeric(s)?s||0:t):t}}),e.each(["height","width"],function(n,t){e.cssHooks[t]={get:function(n,i,r){return i?Be.test(e.css(n,"display"))&&0===n.offsetWidth?e.swap(n,Ge,function(){return he(n,t,r)}):he(n,t,r):void 0},set:function(n,o,r){var i=r&&N(n);return ce(n,o,r?fe(n,t,r,"border-box"===e.css(n,"boxSizing",!1,i),i):0)}}}),e.cssHooks.marginRight=te(i.reliableMarginRight,function(t,n){return n?e.swap(t,{display:"inline-block"},A,[t,"marginRight"]):void 0}),e.each({margin:"",padding:"",border:"Width"},function(t,n){e.cssHooks[t+n]={expand:function(r){for(var e=0,o={},i="string"==typeof r?r.split(" "):[r];4>e;e++)o[t+d[e]+n]=i[e]||i[e-2]||i[0];return o}},de.test(t)||(e.cssHooks[t+n].set=ce)}),e.fn.extend({css:function(t,n){return p(this,function(n,t,i){var o,a,s={},r=0;if(e.isArray(t)){for(o=N(n),a=t.length;a>r;r++)s[t[r]]=e.css(n,t[r],!1,o);return s}return void 0!==i?e.style(n,t,i):e.css(n,t)},t,n,arguments.length>1)},show:function(){return ge(this,!0)},hide:function(){return ge(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){_(this)?e(this).show():e(this).hide()})}}),e.Tween=a,a.prototype={constructor:a,init:function(n,r,t,i,o,a){this.elem=n,this.prop=t,this.easing=o||"swing",this.options=r,this.start=this.now=this.cur(),this.end=i,this.unit=a||(e.cssNumber[t]?"":"px")},cur:function(){var e=a.propHooks[this.prop];return e&&e.get?e.get(this):a.propHooks._default.get(this)},run:function(t){var n,r=a.propHooks[this.prop];return this.options.duration?this.pos=n=e.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=n=t,this.now=(this.end-this.start)*n+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):a.propHooks._default.set(this),this}},a.prototype.init.prototype=a.prototype,a.propHooks={_default:{get:function(t){var n;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(n=e.css(t.elem,t.prop,""),n&&"auto"!==n?n:0):t.elem[t.prop]},set:function(t){e.fx.step[t.prop]?e.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[e.cssProps[t.prop]]||e.cssHooks[t.prop])?e.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},a.propHooks.scrollTop=a.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},e.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},e.fx=a.prototype.init,e.fx.step={};var y,H,Ye=/^(?:toggle|show|hide)$/,be=new RegExp("^(?:([+-])=|)("+C+")([a-z%]*)$","i"),et=/queueHooks$/,D=[Xe],w={"*":[function(a,u){var r=this.createTween(a,u),s=r.cur(),t=be.exec(u),i=t&&t[3]||(e.cssNumber[a]?"":"px"),n=(e.cssNumber[a]||"px"!==i&&+s)&&be.exec(e.css(r.elem,a)),o=1,l=20;if(n&&n[3]!==i){i=i||n[3],t=t||[],n=+s||1;do o=o||".5",n/=o,e.style(r.elem,a,n+i);while(o!==(o=r.cur()/s)&&1!==o&&--l)}return t&&(n=r.start=+n||+s||0,r.unit=i,r.end=t[1]?n+(t[1]+1)*t[2]:+t[2]),r}]};e.Animation=e.extend(He,{tweener:function(t,i){e.isFunction(t)?(i=t,t=["*"]):t=t.split(" ");for(var n,r=0,o=t.length;o>r;r++)n=t[r],w[n]=w[n]||[],w[n].unshift(i)},prefilter:function(e,t){t?D.unshift(e):D.push(e)}}),e.speed=function(n,r,i){var t=n&&"object"==typeof n?e.extend({},n):{complete:i||!i&&r||e.isFunction(n)&&n,duration:n,easing:i&&r||r&&!e.isFunction(r)&&r};return t.duration=e.fx.off?0:"number"==typeof t.duration?t.duration:t.duration in e.fx.speeds?e.fx.speeds[t.duration]:e.fx.speeds._default,(null==t.queue||t.queue===!0)&&(t.queue="fx"),t.old=t.complete,t.complete=function(){e.isFunction(t.old)&&t.old.call(this),t.queue&&e.dequeue(this,t.queue)},t},e.fn.extend({fadeTo:function(e,t,n,r){return this.filter(_).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(i,a,s,u){var o=e.isEmptyObject(i),r=e.speed(a,s,u),n=function(){var n=He(this,e.extend({},i),r);(o||t.get(this,"finish"))&&n.stop(!0)};return n.finish=n,o||r.queue===!1?this.each(n):this.queue(r.queue,n)},stop:function(n,i,r){var o=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof n&&(r=i,i=n,n=void 0),i&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var u=!0,i=null!=n&&n+"queueHooks",s=e.timers,a=t.get(this);if(i)a[i]&&a[i].stop&&o(a[i]);else for(i in a)a[i]&&a[i].stop&&et.test(i)&&o(a[i]);for(i=s.length;i--;)s[i].elem!==this||null!=n&&s[i].queue!==n||(s[i].anim.stop(r),u=!1,s.splice(i,1));(u||!r)&&e.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var r,a=t.get(this),i=a[n+"queue"],s=a[n+"queueHooks"],o=e.timers,u=i?i.length:0;for(a.finish=!0,e.queue(this,n,[]),s&&s.stop&&s.stop.call(this,!0),r=o.length;r--;)o[r].elem===this&&o[r].queue===n&&(o[r].anim.stop(!0),o.splice(r,1));for(r=0;u>r;r++)i[r]&&i[r].finish&&i[r].finish.call(this);delete a.finish})}
  3. }),e.each(["toggle","show","hide"],function(r,t){var n=e.fn[t];e.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(E(t,!0),e,r,i)}}),e.each({slideDown:E("show"),slideUp:E("hide"),slideToggle:E("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,n){e.fn[t]=function(e,t,r){return this.animate(n,e,t,r)}}),e.timers=[],e.fx.tick=function(){var r,t=0,n=e.timers;for(y=e.now();t<n.length;t++)r=n[t],r()||n[t]!==r||n.splice(t--,1);n.length||e.fx.stop(),y=void 0},e.fx.timer=function(t){e.timers.push(t),t()?e.fx.start():e.timers.pop()},e.fx.interval=13,e.fx.start=function(){H||(H=setInterval(e.fx.tick,e.fx.interval))},e.fx.stop=function(){clearInterval(H),H=null},e.fx.speeds={slow:600,fast:200,_default:400},e.fn.delay=function(t,n){return t=e.fx?e.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(e,n){var r=setTimeout(e,t);n.stop=function(){clearTimeout(r)}})},function(){var e=n.createElement("input"),t=n.createElement("select"),r=t.appendChild(n.createElement("option"));e.type="checkbox",i.checkOn=""!==e.value,i.optSelected=r.selected,t.disabled=!0,i.optDisabled=!r.disabled,e=n.createElement("input"),e.value="t",e.type="radio",i.radioValue="t"===e.value}();var rt,ke,k=e.expr.attrHandle;e.fn.extend({attr:function(t,n){return p(this,e.attr,t,n,arguments.length>1)},removeAttr:function(t){return this.each(function(){e.removeAttr(this,t)})}}),e.extend({attr:function(t,n,o){var r,i,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return typeof t.getAttribute===b?e.prop(t,n,o):(1===a&&e.isXMLDoc(t)||(n=n.toLowerCase(),r=e.attrHooks[n]||(e.expr.match.bool.test(n)?ke:rt)),void 0===o?r&&"get"in r&&null!==(i=r.get(t,n))?i:(i=e.find.attr(t,n),null==i?void 0:i):null!==o?r&&"set"in r&&void 0!==(i=r.set(t,o,n))?i:(t.setAttribute(n,o+""),o):void e.removeAttr(t,n))},removeAttr:function(n,r){var t,i,a=0,o=r&&r.match(l);if(o&&1===n.nodeType)for(;t=o[a++];)i=e.propFix[t]||t,e.expr.match.bool.test(t)&&(n[i]=!1),n.removeAttribute(t)},attrHooks:{type:{set:function(t,n){if(!i.radioValue&&"radio"===n&&e.nodeName(t,"input")){var r=t.value;return t.setAttribute("type",n),r&&(t.value=r),n}}}}}),ke={set:function(n,r,t){return r===!1?e.removeAttr(n,t):n.setAttribute(t,t),t}},e.each(e.expr.match.bool.source.match(/\w+/g),function(r,t){var n=k[t]||e.find.attr;k[t]=function(o,e,r){var t,i;return r||(i=k[e],k[e]=t,t=null!=n(o,e,r)?e.toLowerCase():null,k[e]=i),t}});var at=/^(?:input|select|textarea|button)$/i;e.fn.extend({prop:function(t,n){return p(this,e.prop,t,n,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[e.propFix[t]||t]})}}),e.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(n,t,a){var i,r,s,o=n.nodeType;if(n&&3!==o&&8!==o&&2!==o)return s=1!==o||!e.isXMLDoc(n),s&&(t=e.propFix[t]||t,r=e.propHooks[t]),void 0!==a?r&&"set"in r&&void 0!==(i=r.set(n,a,t))?i:n[t]=a:r&&"get"in r&&null!==(i=r.get(n,t))?i:n[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||at.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),i.optSelected||(e.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),e.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){e.propFix[this.toLowerCase()]=this});var z=/[\t\r\n\f]/g;e.fn.extend({addClass:function(n){var s,t,r,i,u,o,c="string"==typeof n&&n,a=0,f=this.length;if(e.isFunction(n))return this.each(function(t){e(this).addClass(n.call(this,t,this.className))});if(c)for(s=(n||"").match(l)||[];f>a;a++)if(t=this[a],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(z," "):" ")){for(u=0;i=s[u++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");o=e.trim(r),t.className!==o&&(t.className=o)}return this},removeClass:function(t){var s,n,r,i,u,o,c=0===arguments.length||"string"==typeof t&&t,a=0,f=this.length;if(e.isFunction(t))return this.each(function(n){e(this).removeClass(t.call(this,n,this.className))});if(c)for(s=(t||"").match(l)||[];f>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(z," "):"")){for(u=0;i=s[u++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");o=t?e.trim(r):"",n.className!==o&&(n.className=o)}return this},toggleClass:function(n,r){var i=typeof n;return"boolean"==typeof r&&"string"===i?r?this.addClass(n):this.removeClass(n):e.isFunction(n)?this.each(function(t){e(this).toggleClass(n.call(this,t,this.className,r),r)}):this.each(function(){if("string"===i)for(var r,a=0,o=e(this),s=n.match(l)||[];r=s[a++];)o.hasClass(r)?o.removeClass(r):o.addClass(r);else(i===b||"boolean"===i)&&(this.className&&t.set(this,"__className__",this.className),this.className=this.className||n===!1?"":t.get(this,"__className__")||"")})},hasClass:function(t){for(var n=" "+t+" ",e=0,r=this.length;r>e;e++)if(1===this[e].nodeType&&(" "+this[e].className+" ").replace(z," ").indexOf(n)>=0)return!0;return!1}});var ut=/\r/g;e.fn.extend({val:function(i){var t,n,o,r=this[0];{if(arguments.length)return o=e.isFunction(i),this.each(function(r){var n;1===this.nodeType&&(n=o?i.call(this,r,e(this).val()):i,null==n?n="":"number"==typeof n?n+="":e.isArray(n)&&(n=e.map(n,function(e){return null==e?"":e+""})),t=e.valHooks[this.type]||e.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,n,"value")||(this.value=n))});if(r)return t=e.valHooks[r.type]||e.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(ut,""):null==n?"":n)}}}),e.extend({valHooks:{option:{get:function(t){var n=e.find.attr(t,"value");return null!=n?n:e.trim(e.text(t))}},select:{get:function(a){for(var s,t,u=a.options,n=a.selectedIndex,r="select-one"===a.type||0>n,l=r?null:[],c=r?n+1:u.length,o=0>n?c:r?n:0;c>o;o++)if(t=u[o],(t.selected||o===n)&&(i.optDisabled?!t.disabled:null===t.getAttribute("disabled"))&&(!t.parentNode.disabled||!e.nodeName(t.parentNode,"optgroup"))){if(s=e(t).val(),r)return s;l.push(s)}return l},set:function(n,s){for(var r,t,i=n.options,o=e.makeArray(s),a=i.length;a--;)t=i[a],(t.selected=e.inArray(t.value,o)>=0)&&(r=!0);return r||(n.selectedIndex=-1),o}}}}),e.each(["radio","checkbox"],function(){e.valHooks[this]={set:function(t,n){return e.isArray(n)?t.checked=e.inArray(e(t).val(),n)>=0:void 0}},i.checkOn||(e.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),e.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){e.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),e.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var V=e.now(),G=/\?/;e.parseJSON=function(e){return JSON.parse(e+"")},e.parseXML=function(n){var t,r;if(!n||"string"!=typeof n)return null;try{r=new DOMParser,t=r.parseFromString(n,"text/xml")}catch(i){t=void 0}return(!t||t.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+n),t};var ft=/#.*$/,je=/([?&])_=[^&]*/,dt=/^(.*?):[ \t]*([^\r\n]*)$/gm,ht=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,gt=/^(?:GET|HEAD)$/,vt=/^\/\//,Ne=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Se={},X={},De="*/".concat("*"),J=r.location.href,h=Ne.exec(J.toLowerCase())||[];e.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:J,type:"GET",isLocal:ht.test(h[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":De,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":e.parseJSON,"text xml":e.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,n){return n?P(P(t,e.ajaxSettings),n):P(e.ajaxSettings,t)},ajaxPrefilter:Oe(Se),ajaxTransport:Oe(X),ajax:function(d,o){function p(o,g,w,k){var u,h,d,l,p,s=g;2!==i&&(i=2,_&&clearTimeout(_),c=void 0,b=k||"",n.readyState=o>0?4:0,u=o>=200&&300>o||304===o,w&&(l=_t(t,n,w)),l=We(t,l,n,u),u?(t.ifModified&&(p=n.getResponseHeader("Last-Modified"),p&&(e.lastModified[r]=p),p=n.getResponseHeader("etag"),p&&(e.etag[r]=p)),204===o||"HEAD"===t.type?s="nocontent":304===o?s="notmodified":(s=l.state,h=l.data,d=l.error,u=!d)):(d=s,(o||!s)&&(s="error",0>o&&(o=0))),n.status=o,n.statusText=(g||s)+"",u?m.resolveWith(a,[h,s,n]):m.rejectWith(a,[n,s,d]),n.statusCode(v),v=void 0,f&&y.trigger(u?"ajaxSuccess":"ajaxError",[n,t,u?h:d]),x.fireWith(a,[n,s]),f&&(y.trigger("ajaxComplete",[n,t]),--e.active||e.event.trigger("ajaxStop")))}"object"==typeof d&&(o=d,d=void 0),o=o||{};var c,r,b,g,_,s,f,u,t=e.ajaxSetup({},o),a=t.context||t,y=t.context&&(a.nodeType||a.jquery)?e(a):e.event,m=e.Deferred(),x=e.Callbacks("once memory"),v=t.statusCode||{},w={},k={},i=0,A="canceled",n={readyState:0,getResponseHeader:function(t){var e;if(2===i){if(!g)for(g={};e=dt.exec(b);)g[e[1].toLowerCase()]=e[2];e=g[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===i?b:null},setRequestHeader:function(e,n){var t=e.toLowerCase();return i||(e=k[t]=k[t]||e,w[e]=n),this},overrideMimeType:function(e){return i||(t.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>i)for(t in e)v[t]=[v[t],e[t]];else n.always(e[n.status]);return this},abort:function(t){var e=t||A;return c&&c.abort(e),p(0,e),this}};if(m.promise(n).complete=x.add,n.success=n.done,n.error=n.fail,t.url=((d||t.url||J)+"").replace(ft,"").replace(vt,h[1]+"//"),t.type=o.method||o.type||t.method||t.type,t.dataTypes=e.trim(t.dataType||"*").toLowerCase().match(l)||[""],null==t.crossDomain&&(s=Ne.exec(t.url.toLowerCase()),t.crossDomain=!(!s||s[1]===h[1]&&s[2]===h[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(h[3]||("http:"===h[1]?"80":"443")))),t.data&&t.processData&&"string"!=typeof t.data&&(t.data=e.param(t.data,t.traditional)),$e(Se,t,o,n),2===i)return n;f=e.event&&t.global,f&&0===e.active++&&e.event.trigger("ajaxStart"),t.type=t.type.toUpperCase(),t.hasContent=!gt.test(t.type),r=t.url,t.hasContent||(t.data&&(r=t.url+=(G.test(r)?"&":"?")+t.data,delete t.data),t.cache===!1&&(t.url=je.test(r)?r.replace(je,"$1_="+V++):r+(G.test(r)?"&":"?")+"_="+V++)),t.ifModified&&(e.lastModified[r]&&n.setRequestHeader("If-Modified-Since",e.lastModified[r]),e.etag[r]&&n.setRequestHeader("If-None-Match",e.etag[r])),(t.data&&t.hasContent&&t.contentType!==!1||o.contentType)&&n.setRequestHeader("Content-Type",t.contentType),n.setRequestHeader("Accept",t.dataTypes[0]&&t.accepts[t.dataTypes[0]]?t.accepts[t.dataTypes[0]]+("*"!==t.dataTypes[0]?", "+De+"; q=0.01":""):t.accepts["*"]);for(u in t.headers)n.setRequestHeader(u,t.headers[u]);if(t.beforeSend&&(t.beforeSend.call(a,n,t)===!1||2===i))return n.abort();A="abort";for(u in{success:1,error:1,complete:1})n[u](t[u]);if(c=$e(X,t,o,n)){n.readyState=1,f&&y.trigger("ajaxSend",[n,t]),t.async&&t.timeout>0&&(_=setTimeout(function(){n.abort("timeout")},t.timeout));try{i=1,c.send(w,p)}catch(T){if(!(2>i))throw T;p(-1,T)}}else p(-1,"No Transport");return n},getJSON:function(t,n,r){return e.get(t,n,r,"json")},getScript:function(t,n){return e.get(t,void 0,n,"script")}}),e.each(["get","post"],function(n,t){e[t]=function(o,n,r,i){return e.isFunction(n)&&(i=i||r,r=n,n=void 0),e.ajax({url:o,type:t,dataType:i,data:n,success:r})}}),e._evalUrl=function(t){return e.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},e.fn.extend({wrapAll:function(t){var n;return e.isFunction(t)?this.each(function(n){e(this).wrapAll(t.call(this,n))}):(this[0]&&(n=e(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&n.insertBefore(this[0]),n.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(t){return e.isFunction(t)?this.each(function(n){e(this).wrapInner(t.call(this,n))}):this.each(function(){var n=e(this),r=n.contents();r.length?r.wrapAll(t):n.append(t)})},wrap:function(t){var n=e.isFunction(t);return this.each(function(r){e(this).wrapAll(n?t.call(this,r):t)})},unwrap:function(){return this.parent().each(function(){e.nodeName(this,"body")||e(this).replaceWith(this.childNodes)}).end()}}),e.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},e.expr.filters.visible=function(t){return!e.expr.filters.hidden(t)};var kt=/%20/g,At=/\[\]$/,qe=/\r?\n/g,Ct=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i;e.param=function(t,n){var r,i=[],o=function(n,t){t=e.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(void 0===n&&(n=e.ajaxSettings&&e.ajaxSettings.traditional),e.isArray(t)||t.jquery&&!e.isPlainObject(t))e.each(t,function(){o(this.name,this.value)});else for(r in t)U(r,t[r],n,o);return i.join("&").replace(kt,"+")},e.fn.extend({serialize:function(){return e.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=e.prop(this,"elements");return t?e.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!e(this).is(":disabled")&&Et.test(this.nodeName)&&!Ct.test(t)&&(this.checked||!re.test(t))}).map(function(r,n){var t=e(this).val();return null==t?null:e.isArray(t)?e.map(t,function(e){return{name:n.name,value:e.replace(qe,"\r\n")}}):{name:n.name,value:t.replace(qe,"\r\n")}}).get()}}),e.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var jt=0,$={},St={0:200,1223:204},x=e.ajaxSettings.xhr();r.attachEvent&&r.attachEvent("onunload",function(){for(var e in $)$[e]()}),i.cors=!!x&&"withCredentials"in x,i.ajax=x=!!x,e.ajaxTransport(function(e){var t;return i.cors||x&&!e.crossDomain?{send:function(i,o){var r,n=e.xhr(),a=++jt;if(n.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)n[r]=e.xhrFields[r];e.mimeType&&n.overrideMimeType&&n.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(r in i)n.setRequestHeader(r,i[r]);t=function(e){return function(){t&&(delete $[a],t=n.onload=n.onerror=null,"abort"===e?n.abort():"error"===e?o(n.status,n.statusText):o(St[n.status]||n.status,n.statusText,"string"==typeof n.responseText?{text:n.responseText}:void 0,n.getAllResponseHeaders()))}},n.onload=t(),n.onerror=t("error"),t=$[a]=t("abort");try{n.send(e.hasContent&&e.data||null)}catch(s){if(t)throw s}},abort:function(){t&&t()}}:void 0}),e.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return e.globalEval(t),t}}}),e.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),e.ajaxTransport("script",function(r){if(r.crossDomain){var i,t;return{send:function(a,o){i=e("<script>").prop({async:!0,charset:r.scriptCharset,src:r.url}).on("load error",t=function(e){i.remove(),t=null,e&&o("error"===e.type?404:200,e.type)}),n.head.appendChild(i[0])},abort:function(){t&&t()}}}});var Re=[],B=/(=)\?(?=&|$)|\?\?/;e.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Re.pop()||e.expando+"_"+V++;return this[t]=!0,t}}),e.ajaxPrefilter("json jsonp",function(t,s,u){var n,o,i,a=t.jsonp!==!1&&(B.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&B.test(t.data)&&"data");return a||"jsonp"===t.dataTypes[0]?(n=t.jsonpCallback=e.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(B,"$1"+n):t.jsonp!==!1&&(t.url+=(G.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return i||e.error(n+" was not called"),i[0]},t.dataTypes[0]="json",o=r[n],r[n]=function(){i=arguments},u.always(function(){r[n]=o,t[n]&&(t.jsonpCallback=s.jsonpCallback,Re.push(n)),i&&e.isFunction(o)&&o(i[0]),i=o=void 0}),"script"):void 0}),e.parseHTML=function(r,t,a){if(!r||"string"!=typeof r)return null;"boolean"==typeof t&&(a=t,t=!1),t=t||n;var i=Ce.exec(r),o=!a&&[];return i?[t.createElement(i[1])]:(i=e.buildFragment([r],t,o),o&&o.length&&e(o).remove(),e.merge([],i.childNodes))};var Fe=e.fn.load;e.fn.load=function(t,n,r){if("string"!=typeof t&&Fe)return Fe.apply(this,arguments);var i,s,u,o=this,a=t.indexOf(" ");return a>=0&&(i=e.trim(t.slice(a)),t=t.slice(0,a)),e.isFunction(n)?(r=n,n=void 0):n&&"object"==typeof n&&(s="POST"),o.length>0&&e.ajax({url:t,type:s,dataType:"html",data:n}).done(function(t){u=arguments,o.html(i?e("<div>").append(e.parseHTML(t)).find(i):t)}).complete(r&&function(e,t){o.each(r,u||[e.responseText,t,e])}),this},e.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){e.fn[t]=function(e){return this.on(t,e)}}),e.expr.filters.animated=function(t){return e.grep(e.timers,function(e){return t===e.elem}).length};var Me=r.document.documentElement;e.offset={setOffset:function(n,t,d){var s,o,a,f,r,u,p,l=e.css(n,"position"),c=e(n),i={};"static"===l&&(n.style.position="relative"),r=c.offset(),a=e.css(n,"top"),u=e.css(n,"left"),p=("absolute"===l||"fixed"===l)&&(a+u).indexOf("auto")>-1,p?(s=c.position(),f=s.top,o=s.left):(f=parseFloat(a)||0,o=parseFloat(u)||0),e.isFunction(t)&&(t=t.call(n,d,r)),null!=t.top&&(i.top=t.top-r.top+f),null!=t.left&&(i.left=t.left-r.left+o),"using"in t?t.using.call(n,i):c.css(i)}},e.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(t){e.offset.setOffset(this,a,t)});var n,i,t=this[0],r={top:0,left:0},o=t&&t.ownerDocument;if(o)return n=o.documentElement,e.contains(n,t)?(typeof t.getBoundingClientRect!==b&&(r=t.getBoundingClientRect()),i=ee(o),{top:r.top+i.pageYOffset-n.clientTop,left:r.left+i.pageXOffset-n.clientLeft}):r},position:function(){if(this[0]){var t,r,i=this[0],n={top:0,left:0};return"fixed"===e.css(i,"position")?r=i.getBoundingClientRect():(t=this.offsetParent(),r=this.offset(),e.nodeName(t[0],"html")||(n=t.offset()),n.top+=e.css(t[0],"borderTopWidth",!0),n.left+=e.css(t[0],"borderLeftWidth",!0)),{top:r.top-n.top-e.css(i,"marginTop",!0),left:r.left-n.left-e.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Me;t&&!e.nodeName(t,"html")&&"static"===e.css(t,"position");)t=t.offsetParent;return t||Me})}}),e.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var i="pageYOffset"===n;e.fn[t]=function(e){return p(this,function(o,a,e){var t=ee(o);return void 0===e?t?t[n]:o[a]:void(t?t.scrollTo(i?r.pageXOffset:e,i?e:r.pageYOffset):o[a]=e)},t,e,arguments.length,null)}}),e.each(["top","left"],function(n,t){e.cssHooks[t]=te(i.pixelPosition,function(r,n){return n?(n=A(r,t),R.test(n)?e(r).position()[t]+"px":n):void 0})}),e.each({Height:"height",Width:"width"},function(t,n){e.each({padding:"inner"+t,content:n,"":"outer"+t},function(r,i){e.fn[i]=function(i,s){var o=arguments.length&&(r||"boolean"!=typeof i),a=r||(i===!0||s===!0?"margin":"border");return p(this,function(n,i,o){var r;return e.isWindow(n)?n.document.documentElement["client"+t]:9===n.nodeType?(r=n.documentElement,Math.max(n.body["scroll"+t],r["scroll"+t],n.body["offset"+t],r["offset"+t],r["client"+t])):void 0===o?e.css(n,i,a):e.style(n,i,o,a)},n,o?i:void 0,o,null)}})}),e.fn.size=function(){return this.length},e.fn.andSelf=e.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return e});var $t=r.jQuery,Ue=r.$;return e.noConflict=function(t){return r.$===e&&(r.$=Ue),t&&r.jQuery===e&&(r.jQuery=$t),e},typeof Ke===b&&(r.jQuery=r.$=e),e});var e=function(t,r,a){var e="_sub",o=!1,n=this;"string"==typeof a?e=a:"string"==typeof r?e=r:"string"==typeof t&&(e=t),"boolean"==typeof r?o=r:"boolean"==typeof t&&(o=t),("object"==typeof t||"function"==typeof t)&&(n=t);var i={};i[e]=[];var s=function(n,r){for(var t=0;t<n[e].length;t++)(void 0===r||null===r||n[e][t]===r)&&(n[e].splice(t,1),t--)},u=function(t,n){for(sub in t)"object"==typeof t[sub]&&sub!==e&&t.hasOwnProperty(sub)&&u(t[sub],n);s(t,n)};n.publish=function(u,p){var t;t=arguments.length>2?Array.prototype.slice.apply(arguments,[1]):p?p:[],void 0===t.length&&(t=[t]);var r=i,l=[];u=u||"";var a=u.split(".");o&&t.push(a),l.push(r);for(var s=0;s<a.length&&""!==a[s]&&void 0!==r[a[s]];s++)r=r[a[s]],l.push(r);for(var c,d=!1;c=l.pop();){for(var f=0;f<c[e].length;f++)c[e][f].apply(this,t)===!1&&(d=!0);if(d)break}return n},n.subscribe=function(a,s){var r=i;a=a||"";for(var o=a.split("."),t=0;t<o.length&&""!==o[t];t++)r[o[t]]||(r[o[t]]={},r[o[t]][e]=[]),r=r[o[t]];return r[e].push(s),n},n.unsubscribe=function(o,e,l){var t=i;if(o=o||"",""!=o)for(var a=o.split("."),r=0;r<a.length&&""!==a[r];r++){if(void 0===t[a[r]])return;t=t[a[r]]}return"boolean"==typeof e&&(l=e,e=null),l?u(t,e):s(t,e),n}};!function(t,e){"object"==typeof exports&&exports&&"string"!=typeof exports.nodeName?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):(t.Mustache={},e(Mustache))}(this,function(e){function o(e){return"function"==typeof e}function d(e){return i(e)?"array":typeof e}function a(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function u(e,t){return null!=e&&"object"==typeof e&&t in e}function g(e,t){return c.call(e,t)}function p(e){return!g(m,e)}function f(e){return String(e).replace(/[&<>"'\/]/g,function(e){return y[e]})}function h(j,S){function H(){if(C&&!h)for(;d.length;)delete c[d.pop()];else d=[];C=!1,h=!1}function N(e){if("string"==typeof e&&(e=e.split(b,2)),!i(e)||2!==e.length)throw new Error("Invalid tags: "+e);A=new RegExp(a(e[0])+"\\s*"),f=new RegExp("\\s*"+a(e[1])),E=new RegExp("\\s*"+a("}"+e[1]))}if(!j)return[];var A,f,E,y=[],c=[],d=[],C=!1,h=!1;N(S||e.tags);for(var s,n,o,g,T,u,t=new r(j);!t.eos();){if(s=t.pos,o=t.scanUntil(A))for(var m=0,D=o.length;D>m;++m)g=o.charAt(m),p(g)?d.push(c.length):h=!0,c.push(["text",g,s,s+1]),s+=1,"\n"===g&&H();if(!t.scan(A))break;if(C=!0,n=t.scan(k)||"name",t.scan(_),"="===n?(o=t.scanUntil(l),t.scan(l),t.scanUntil(f)):"{"===n?(o=t.scanUntil(E),t.scan(w),t.scanUntil(f),n="&"):o=t.scanUntil(f),!t.scan(f))throw new Error("Unclosed tag at "+t.pos);if(T=[n,o,s,t.pos],c.push(T),"#"===n||"^"===n)y.push(T);else if("/"===n){if(u=y.pop(),!u)throw new Error('Unopened section "'+o+'" at '+s);if(u[1]!==o)throw new Error('Unclosed section "'+u[1]+'" at '+s)}else"name"===n||"{"===n||"&"===n?h=!0:"="===n&&N(o)}if(u=y.pop())throw new Error('Unclosed section "'+u[1]+'" at '+t.pos);return x(v(c))}function v(r){for(var e,t,i=[],n=0,o=r.length;o>n;++n)e=r[n],e&&("text"===e[0]&&t&&"text"===t[0]?(t[1]+=e[1],t[3]=e[3]):(i.push(e),t=e));return i}function x(o){for(var e,a,r=[],n=r,t=[],i=0,s=o.length;s>i;++i)switch(e=o[i],e[0]){case"#":case"^":n.push(e),t.push(e),n=e[4]=[];break;case"/":a=t.pop(),a[5]=e[2],n=t.length>0?t[t.length-1][4]:r;break;default:n.push(e)}return r}function r(e){this.string=e,this.tail=e,this.pos=0}function n(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function t(){this.cache={}}var A=Object.prototype.toString,i=Array.isArray||function(e){return"[object Array]"===A.call(e)},c=RegExp.prototype.test,m=/\S/,y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},_=/\s*/,b=/\s+/,l=/\s*=/,w=/\s*\}/,k=/#|\^|\/|>|\{|&|=|!/;r.prototype.eos=function(){return""===this.tail},r.prototype.scan=function(n){var e=this.tail.match(n);if(!e||0!==e.index)return"";var t=e[0];return this.tail=this.tail.substring(t.length),this.pos+=t.length,t},r.prototype.scanUntil=function(n){var e,t=this.tail.search(n);switch(t){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,t),this.tail=this.tail.substring(t)}return this.pos+=e.length,e},n.prototype.push=function(e){return new n(e,this)},n.prototype.lookup=function(t){var e,a=this.cache;if(a.hasOwnProperty(t))e=a[t];else{for(var r,i,n=this,s=!1;n;){if(t.indexOf(".")>0)for(e=n.view,r=t.split("."),i=0;null!=e&&i<r.length;)i===r.length-1&&(s=u(e,r[i])),e=e[r[i++]];else e=n.view[t],s=u(n.view,t);if(s)break;n=n.parent}a[t]=e}return o(e)&&(e=e.call(this.view)),e},t.prototype.clearCache=function(){this.cache={}},t.prototype.parse=function(e,r){var n=this.cache,t=n[e];return null==t&&(t=n[e]=h(e,r)),t},t.prototype.render=function(t,e,r){var i=this.parse(t),o=e instanceof n?e:new n(e);return this.renderTokens(i,o,r,t)},t.prototype.renderTokens=function(s,r,i,o){for(var t,n,e,u="",a=0,l=s.length;l>a;++a)e=void 0,t=s[a],n=t[0],"#"===n?e=this.renderSection(t,r,i,o):"^"===n?e=this.renderInverted(t,r,i,o):">"===n?e=this.renderPartial(t,r,i,o):"&"===n?e=this.unescapedValue(t,r):"name"===n?e=this.escapedValue(t,r):"text"===n&&(e=this.rawValue(t)),void 0!==e&&(u+=e);return u},t.prototype.renderSection=function(t,n,s,r){function l(e){return c.render(e,n,s)}var c=this,a="",e=n.lookup(t[1]);if(e){if(i(e))for(var u=0,f=e.length;f>u;++u)a+=this.renderTokens(t[4],n.push(e[u]),s,r);else if("object"==typeof e||"string"==typeof e||"number"==typeof e)a+=this.renderTokens(t[4],n.push(e),s,r);else if(o(e)){if("string"!=typeof r)throw new Error("Cannot use higher-order sections without the original template");e=e.call(n.view,r.slice(t[3],t[5]),l),null!=e&&(a+=e)}else a+=this.renderTokens(t[4],n,s,r);return a}},t.prototype.renderInverted=function(t,n,r,o){var e=n.lookup(t[1]);return!e||i(e)&&0===e.length?this.renderTokens(t[4],n,r,o):void 0},t.prototype.renderPartial=function(n,r,e){if(e){var t=o(e)?e(n[1]):e[n[1]];return null!=t?this.renderTokens(this.parse(t),r,e,t):void 0}},t.prototype.unescapedValue=function(t,n){var e=n.lookup(t[1]);return null!=e?e:void 0},t.prototype.escapedValue=function(n,r){var t=r.lookup(n[1]);return null!=t?e.escape(t):void 0},t.prototype.rawValue=function(e){return e[1]},e.name="mustache.js",e.version="2.1.3",e.tags=["{{","}}"];var s=new t;e.clearCache=function(){return s.clearCache()},e.parse=function(e,t){return s.parse(e,t)},e.render=function(e,t,n){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+d(e)+'" was given as the first argument for mustache#render(template, view, partials)');return s.render(e,t,n)},e.to_html=function(r,i,a,t){var n=e.render(r,i,a);return o(t)?void t(n):n},e.escape=f,e.Scanner=r,e.Context=n,e.Writer=t}),function(){function $(t,n){if(t!==n){var o=null===t,a=t===e,r=t===t,s=null===n,u=n===e,i=n===n;if(t>n&&!s||!r||o&&!u&&i||a&&i)return 1;if(n>t&&!o||!i||s&&!a&&r||u&&r)return-1}return 0}function ee(t,i,n){for(var r=t.length,e=n?r:-1;n?e--:++e<r;)if(i(t[e],e,t))return e;return-1}function p(e,t,r){if(t!==t)return ue(e,r);for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}function Ze(e){return"function"==typeof e||!1}function r(e){return null==e?"":e+""}function G(t,n){for(var e=-1,r=t.length;++e<r&&n.indexOf(t.charAt(e))>-1;);return e}function J(t,n){for(var e=t.length;e--&&n.indexOf(t.charAt(e))>-1;);return e}function Be(e,t){return $(e.criteria,t.criteria)||e.index-t.index}function Fe(n,r,i){for(var e=-1,o=n.criteria,s=r.criteria,u=o.length,l=i.length;++e<u;){var t=$(o[e],s[e]);if(t){if(e>=l)return t;var a=i[e];return t*("asc"===a||a===!0?1:-1)}}return n.index-r.index}function Pe(e){return Me[e]}function Oe(e){return We[e]}function he(e,t,n){return t?e=ze[e]:n&&(e=Q[e]),"\\"+e}function ge(e){return"\\"+Q[e]}function ue(t,i,n){for(var o=t.length,e=i+(n?0:-1);n?e--:++e<o;){var r=t[e];if(r!==r)return e}return-1}function i(e){return!!e&&"object"==typeof e}function se(e){return 160>=e&&e>=9&&13>=e||32==e||160==e||5760==e||6158==e||e>=8192&&(8202>=e||8232==e||8233==e||8239==e||8287==e||12288==e||65279==e)}function d(t,r){for(var e=-1,i=t.length,o=-1,n=[];++e<i;)t[e]===r&&(t[e]=M,n[++o]=e);return n}function be(t,r){for(var i,e=-1,s=t.length,u=-1,o=[];++e<s;){var n=t[e],a=r?r(n,e,t):n;e&&i===a||(i=a,o[++u]=n)}return o}function oe(t){for(var e=-1,n=t.length;++e<n&&se(t.charCodeAt(e)););return e}function ie(t){for(var e=t.length;e--&&se(t.charCodeAt(e)););return e}function Ae(e){return Ue[e]}function ne(se){function b(e){if(i(e)&&!w(e)&&!(e instanceof z)){if(e instanceof ut)return e;if(Me.call(e,"__chain__")&&Me.call(e,"__wrapped__"))return tr(e)}return new ut(e)}function rn(){}function ut(e,t,n){this.__wrapped__=e,this.__actions__=n||[],this.__chain__=!!t}function z(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Gt,this.__views__=[]}function ds(){var e=new z(this.__wrapped__);return e.__actions__=Je(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Je(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Je(this.__views__),e}function Ii(){if(this.__filtered__){var e=new z(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Wi(){var e=this.__wrapped__.value(),c=this.__dir__,u=w(e),b=0>c,n=u?e.length:0,o=va(0,n,this.__views__),a=o.start,s=o.end,t=s-a,l=b?s:a-1,m=this.__iteratees__,y=m.length,p=0,d=Ye(t,this.__takeCount__);if(!u||E>n||n==t&&d==t)return oi(e,this.__actions__);var h=[];e:for(;t--&&d>p;){l+=c;for(var g=-1,r=e[l];++g<y;){var f=m[g],_=f.iteratee,v=f.type,i=_(r);if(v==B)r=i;else if(!i){if(v==we)continue e;break e}}h[p++]=r}return h}function St(){this.__data__={}}function To(e){return this.has(e)&&delete this.__data__[e]}function Jo(t){return"__proto__"==t?e:this.__data__[t]}function ta(e){return"__proto__"!=e&&Me.call(this.__data__,e)}function ps(e,t){return"__proto__"!=e&&(this.__data__[e]=t),this}function Hi(e){var t=e?e.length:0;for(this.data={hash:Yr(null),set:new Vr};t--;)this.push(e[t])}function tn(n,e){var t=n.data,r="string"==typeof e||Y(e)?t.set.has(e):t.hash[e];return r?0:-1}function Fi(e){var t=this.data;"string"==typeof e||Y(e)?t.set.add(e):t.hash[e]=!0}function Mi(n,r){for(var e=-1,i=n.length,o=-1,a=r.length,t=Q(i+a);++e<i;)t[e]=n[e];for(;++o<a;)t[e++]=r[o];return t}function Je(n,e){var t=-1,r=n.length;for(e||(e=Q(r));++t<r;)e[t]=n[t];return e}function st(e,n){for(var t=-1,r=e.length;++t<r&&n(e[t],t,e)!==!1;);return e}function co(e,n){for(var t=e.length;t--&&n(e[t],t,e)!==!1;);return e}function Si(e,n){for(var t=-1,r=e.length;++t<r;)if(!n(e[t],t,e))return!1;return!0}function jo(t,a,s,u){for(var n=-1,l=t.length,e=u,r=e;++n<l;){var i=t[n],o=+a(i);s(o,e)&&(e=o,r=i)}return r}function pn(e,i){for(var t=-1,o=e.length,a=-1,n=[];++t<o;){var r=e[t];i(r,t,e)&&(n[++a]=r)}return n}function Tt(t,i){for(var e=-1,n=t.length,r=Q(n);++e<n;)r[e]=i(t[e],e,t);return r}function $t(e,n){for(var t=-1,r=n.length,i=e.length;++t<r;)e[i+t]=n[t];return e}function Ni(e,i,t,o){var n=-1,r=e.length;for(o&&r&&(t=e[++n]);++n<r;)t=i(t,e[n],n,e);return t}function Fs(t,r,n,i){var e=t.length;for(i&&e&&(n=t[--e]);e--;)n=r(n,t[e],e,t);return n}function ji(e,n){for(var t=-1,r=e.length;++t<r;)if(n(e[t],t,e))return!0;return!1}function Oi(e,r){for(var t=e.length,n=0;t--;)n+=+r(e[t])||0;return n}function Pi(t,n){return t===e?n:t}function Ei(t,n,r,i){return t!==e&&Me.call(i,r)?t:n}function _n(t,o,u){for(var a=-1,s=ze(o),l=s.length;++a<l;){var n=s[a],r=t[n],i=u(r,o[n],n,t,o);(i===i?i===r:r!==r)&&(r!==e||n in t)||(t[n]=i)}return t}function Ht(t,e){return null==e?t:wi(e,ze(e),t)}function Ai(t,o){for(var n=-1,a=null==t,s=!a&&We(t),l=s?t.length:0,u=o.length,r=Q(u);++n<u;){var i=o[n];s?r[n]=ht(i,l)?t[i]:e:r[n]=a?e:t[i]}return r}function wi(i,t,e){e||(e={});for(var n=-1,o=t.length;++n<o;){var r=t[n];e[r]=i[r]}return e}function en(t,n,i){var r=typeof t;return"function"==r?n===e?t:tt(t,n,i):null==t?kt:"object"==r?qt(t):n===e?Wt(t):fi(t,n)}function wt(n,l,c,h,u,i,o){var r;if(c&&(r=u?c(n,h,u):c(n)),r!==e)return r;if(!Y(n))return n;var p=w(n);if(p){if(r=ya(n),!l)return Je(n,r);
  4. }else{var s=nt.call(n),d=s==j;if(s!=a&&s!=v&&(!d||u))return t[s]?ka(n,s,l):u?n:{};if(r=ba(d?{}:n),!l)return Ht(r,n)}i||(i=[]),o||(o=[]);for(var f=i.length;f--;)if(i[f]==n)return o[f];return i.push(n),o.push(r),(p?st:ct)(n,function(t,e){r[e]=wt(t,l,c,e,n,i,o)}),r}function _i(t,n,r){if("function"!=typeof t)throw new it(o);return on(function(){t.apply(e,r)},n)}function Rt(o,t){var u=o?o.length:0,n=[];if(!u)return n;var a=-1,r=At(),i=r===p,s=i&&t.length>=E?yn(t):null,c=t.length;s&&(r=tn,i=!1,t=s);e:for(;++a<u;){var e=o[a];if(i&&e===e){for(var l=c;l--;)if(t[l]===e)continue e;n.push(e)}else r(t,e,0)<0&&n.push(e)}return n}function Na(t,n){var e=!0;return at(t,function(t,r,i){return e=!!n(t,r,i)}),e}function La(r,i,o,n){var e=n,t=e;return at(r,function(a,s,u){var r=+i(a,s,u);(o(r,e)||r===n&&r===t)&&(e=r,t=a)}),t}function Pa(i,o,t,n){var r=i.length;for(t=null==t?0:+t||0,0>t&&(t=-t>r?0:r+t),n=n===e||n>r?r:+n||0,0>n&&(n+=r),r=t>n?0:n>>>0,t>>>=0;r>t;)i[t++]=o;return i}function mi(t,n){var e=[];return at(t,function(t,r,i){n(t,r,i)&&e.push(t)}),e}function vi(t,n,r,i){var e;return r(t,function(t,r,o){return n(t,r,o)?(e=i?r:t,!1):void 0}),e}function Qe(r,o,n,e){e||(e=[]);for(var a=-1,s=r.length;++a<s;){var t=r[a];i(t)&&We(t)&&(n||w(t)||ft(t))?o?Qe(t,o,n,e):$t(e,t):n||(e[e.length]=t)}return e}function di(e,t){return Tn(e,t,gt)}function ct(e,t){return Tn(e,t,ze)}function Dn(e,t){return hi(e,t,ze)}function $n(i,e){for(var t=-1,o=e.length,a=-1,n=[];++t<o;){var r=e[t];mt(i[r])&&(n[++a]=r)}return n}function vt(t,r,i){if(null!=t){i!==e&&i in ot(t)&&(r=[i]);for(var n=0,o=r.length;null!=t&&o>n;)t=t[r[n++]];return n&&n==o?t:e}}function Zt(e,t,n,r,o,a){return e===t?!0:null==e||null==t||!Y(e)&&!i(t)?e!==e&&t!==t:Ui(e,t,Zt,n,r,o,a)}function Ui(e,t,c,p,u,n,r){var s=w(e),d=w(t),i=y,o=y;s||(i=nt.call(e),i==v?i=a:i!=a&&(s=Et(e))),d||(o=nt.call(t),o==v?o=a:o!=a&&(d=Et(t)));var f=i==a,_=o==a,h=i==o;if(h&&!s&&!f)return Go(e,t,i);if(!u){var g=f&&Me.call(e,"__wrapped__"),m=_&&Me.call(t,"__wrapped__");if(g||m)return c(g?e.value():e,m?t.value():t,p,u,n,r)}if(!h)return!1;n||(n=[]),r||(r=[]);for(var l=n.length;l--;)if(n[l]==e)return r[l]==t;n.push(e),r.push(t);var b=(s?Oo:Xo)(e,t,c,p,u,n,r);return n.pop(),r.pop(),b}function pi(n,o,i){var r=o.length,l=r,f=!i;if(null==n)return!l;for(n=ot(n);r--;){var t=o[r];if(f&&t[2]?t[1]!==n[t[0]]:!(t[0]in n))return!1}for(;++r<l;){t=o[r];var a=t[0],s=n[a],c=t[1];if(f&&t[2]){if(s===e&&!(a in n))return!1}else{var u=i?i(s,c,a):e;if(!(u===e?Zt(c,s,i,!0):u))return!1}}return!0}function fn(e,n){var r=-1,t=We(e)?Q(e.length):[];return at(e,function(e,i,o){t[++r]=n(e,i,o)}),t}function qt(i){var t=pr(i);if(1==t.length&&t[0][2]){var n=t[0][0],r=t[0][1];return function(t){return null==t?!1:t[n]===r&&(r!==e||n in ot(t))}}return function(e){return pi(e,t)}}function fi(t,n){var r=w(t),i=yt(t)&&cr(n),o=t+"";return t=pt(t),function(a){if(null==a)return!1;var s=o;if(a=ot(a),(r||!i)&&!(s in a)){if(a=1==t.length?a:vt(a,rt(t,0,-1)),null==a)return!1;s=Ot(t),a=ot(a)}return a[s]===n?n!==e||s in a:Zt(n,a[s],e,!0)}}function ci(t,n,r,o,a){if(!Y(t))return t;var s=We(n)&&(w(n)||Et(n)),u=s?e:ze(n);return st(u||n,function(f,l){if(u&&(l=f,f=n[l]),i(f))o||(o=[]),a||(a=[]),Ko(t,n,l,ci,r,o,a);else{var p=t[l],c=r?r(p,f,l,t,n):e,d=c===e;d&&(c=f),c===e&&(!s||l in t)||!d&&(c===c?c===p:p!==p)||(t[l]=c)}}),t}function Ko(o,f,i,p,s,a,c){for(var u=a.length,r=f[i];u--;)if(a[u]==r)return void(o[i]=c[u]);var t=o[i],n=s?s(t,r,i,o,f):e,l=n===e;l&&(n=r,We(r)&&(w(r)||Et(r))?n=w(t)?t:We(t)?Je(t):[]:Xt(r)||ft(r)?n=ft(t)?vr(t):Xt(t)?t:{}:l=!1),a.push(r),c.push(n),l?o[i]=p(n,r,s,a,c):(n===n?n!==t:t===t)&&(o[i]=n)}function vn(t){return function(n){return null==n?e:n[t]}}function ga(e){var t=e+"";return e=pt(e),function(n){return vt(n,e,t)}}function li(t,n){for(var r=t?n.length:0;r--;){var e=n[r];if(e!=i&&ht(e)){var i=e;Xr.call(t,e,1)}}return t}function bn(e,t){return e+xt(ii()*(t-e+1))}function Ra(n,r,e,t,i){return i(n,function(n,i,o){e=t?(t=!1,n):r(e,n,i,o)}),e}function rt(o,t,n){var i=-1,r=o.length;t=null==t?0:+t||0,0>t&&(t=-t>r?0:r+t),n=n===e||n>r?r:+n||0,0>n&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var a=Q(r);++i<r;)a[i]=o[i+t];return a}function Wa(t,n){var e;return at(t,function(t,r,i){return e=n(t,r,i),!e}),!!e}function ui(e,n){var t=e.length;for(e.sort(n);t--;)e[t]=e[t].value;return e}function ai(t,e,n){var r=X(),i=-1;e=Tt(e,function(e){return r(e)});var o=fn(t,function(t){var n=Tt(e,function(e){return e(t)});return{criteria:n,index:++i,value:t}});return ui(o,function(e,t){return Fe(e,t,n)})}function vs(t,n){var e=0;return at(t,function(t,r,i){e+=+n(t,r,i)||0}),e}function jn(u,n){var a=-1,s=At(),c=u.length,l=s===p,o=l&&c>=E,e=o?yn():null,i=[];e?(s=tn,l=!1):(o=!1,e=n?[]:i);e:for(;++a<c;){var t=u[a],r=n?n(t,a,u):t;if(l&&t===t){for(var f=e.length;f--;)if(e[f]===r)continue e;n&&e.push(r),i.push(t)}else s(e,r,0)<0&&((n||o)&&e.push(r),i.push(t))}return i}function Sn(i,t){for(var e=-1,n=t.length,r=Q(n);++e<n;)r[e]=i[t[e]];return r}function Pt(n,i,o,t){for(var r=n.length,e=t?r:-1;(t?e--:++e<r)&&i(n[e],e,n););return o?rt(n,t?0:e,t?e+1:r):rt(n,t?e+1:0,t?r:e)}function oi(i,n){var e=i;e instanceof z&&(e=e.value());for(var r=-1,o=n.length;++r<o;){var t=n[r];e=t.func.apply(t.thisArg,$t([e],t.args))}return e}function qn(n,e,a){var r=0,t=n?n.length:r;if("number"==typeof e&&e===e&&Ha>=t){for(;t>r;){var i=r+t>>>1,o=n[i];(a?e>=o:e>o)&&null!==o?r=i+1:t=i}return t}return ri(n,e,kt,a)}function ri(o,t,c,r){t=c(t);for(var a=0,i=o?o.length:0,d=t!==t,h=null===t,p=t===e;i>a;){var u=xt((a+i)/2),n=c(o[u]),l=n!==e,s=n===n;if(d)var f=s||r;else f=h?s&&l&&(r||null!=n):p?s&&(r||l):null==n?!1:r?t>=n:t>n;f?a=u+1:i=u}return Ye(i,Sa)}function tt(t,n,r){if("function"!=typeof t)return kt;if(n===e)return t;switch(r){case 1:return function(e){return t.call(n,e)};case 3:return function(e,r,i){return t.call(n,e,r,i)};case 4:return function(e,r,i,o){return t.call(n,e,r,i,o)};case 5:return function(e,r,i,o,a){return t.call(n,e,r,i,o,a)}}return function(){return t.apply(n,arguments)}}function ni(e){var t=new aa(e.byteLength),n=new Jr(t);return n.set(new Jr(e)),t}function ei(r,i,o){for(var a=o.length,e=-1,s=Ue(r.length-a,0),t=-1,u=i.length,n=Q(u+s);++t<u;)n[t]=i[t];for(;++e<a;)n[o[e]]=r[e];for(;s--;)n[t++]=r[e++];return n}function Zr(n,o,l){for(var s=-1,i=l.length,e=-1,a=Ue(n.length-i,0),r=-1,u=o.length,t=Q(a+u);++e<a;)t[e]=n[e];for(var c=e;++r<u;)t[c+r]=o[r];for(;++s<i;)t[c+l[s]]=n[e++];return t}function Vt(e,t){return function(n,r,s){var i=t?t():{};if(r=X(r,s,3),w(n))for(var o=-1,u=n.length;++o<u;){var a=n[o];e(i,a,r(a,o,n),n)}else at(n,function(t,o,n){e(i,t,r(t,o,n),n)});return i}}function Kr(t){return V(function(o,i){var s=-1,n=null==o?0:i.length,r=n>2?i[n-2]:e,u=n>2?i[2]:e,a=n>1?i[n-1]:e;for("function"==typeof r?(r=tt(r,a,5),n-=2):(r="function"==typeof a?a:e,n-=r?1:0),u&&H(i[0],i[1],u)&&(r=3>n?e:r,n=1);++s<n;){var l=i[s];l&&t(o,l,r)}return o})}function Gr(t,e){return function(n,o){var i=n?Nt(n):0;if(!lt(i))return t(n,o);for(var r=e?i:-1,a=ot(n);(e?r--:++r<i)&&o(a[r],r,a)!==!1;);return n}}function zr(e){return function(t,s,u){for(var r=ot(t),i=u(t),o=i.length,n=e?o:-1;e?n--:++n<o;){var a=i[n];if(s(r[a],a,r)===!1)break}return t}}function Yo(e,n){function t(){var i=this&&this!==s&&this instanceof t?r:e;return i.apply(n,arguments)}var r=Ut(e);return t}function yn(e){return Yr&&Vr?new Hi(e):null}function Bt(e){return function(i){for(var t=-1,r=Ar(xr(i)),o=r.length,n="";++t<o;)n=e(n,r[t],t);return n}}function Ut(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Lt(e.prototype),r=e.apply(n,t);return Y(r)?r:n}}function Br(n){function t(i,r,o){o&&H(i,r,o)&&(r=e);var a=dt(i,n,e,e,e,e,e,r);return a.placeholder=t.placeholder,a}return t}function Ur(t,n){return V(function(r){var i=r[0];return null==i?i:(r.push(n),t.apply(e,r))})}function Mr(n,t){return function(r,i,o){if(o&&H(r,i,o)&&(i=e),i=X(i,o,3),1==i.length){r=w(r)?r:Nn(r);var a=jo(r,i,n,t);if(!r.length||a!==t)return a}return La(r,i,n,t)}}function Pr(t,n){return function(r,i,a){if(i=X(i,a,3),w(r)){var o=ee(r,i,n);return o>-1?r[o]:e}return vi(r,i,t)}}function Lr(e){return function(t,n,r){return t&&t.length?(n=X(n,r,3),ee(t,n,e)):-1}}function $r(e){return function(n,t,r){return t=X(t,r,3),vi(n,t,e,!0)}}function Or(t){return function(){for(var n,i=arguments.length,s=t?i:-1,p=0,u=Q(i);t?s--:++s<i;){var r=u[p++]=arguments[s];if("function"!=typeof r)throw new it(o);!n&&ut.prototype.thru&&"wrapper"==Jt(r)&&(n=new ut([],!0))}for(s=n?-1:i;++s<i;){r=u[s];var f=Jt(r),a="wrapper"==f?xn(r):e;n=a&&wn(a[0])&&a[1]==(c|T|l|N)&&!a[4].length&&1==a[9]?n[Jt(a[0])].apply(n,a[3]):1==r.length&&wn(r)?n[f]():n.thru(r)}return function(){var t=arguments,e=t[0];if(n&&1==t.length&&w(e)&&e.length>=E)return n.plant(e).value();for(var r=0,o=i?u[r].apply(this,t):e;++r<i;)o=u[r].call(this,o);return o}}}function Hr(t,n){return function(r,i,o){return"function"==typeof i&&o===e&&w(r)?t(r,i):n(r,tt(i,o,3))}}function Sr(t){return function(i,n,r){return("function"!=typeof n||r!==e)&&(n=tt(n,r,3)),t(i,n,gt)}}function jr(t){return function(i,n,r){return("function"!=typeof n||r!==e)&&(n=tt(n,r,3)),t(i,n)}}function Cr(e){return function(r,t,i){var n={};return t=X(t,i,3),ct(r,function(r,i,a){var o=t(r,i,a);i=e?o:i,r=e?r:o,n[i]=r}),n}}function Tr(e){return function(t,n,i){return t=r(t),(e?t:"")+mr(t,n,i)+(e?"":t)}}function br(n){var t=V(function(i,r){var o=d(r,t.placeholder);return dt(i,n,e,r,o)});return t}function yr(t,n){return function(r,i,o,a){var s=arguments.length<3;return"function"==typeof i&&a===e&&w(r)?t(r,i,o,s):Ra(r,X(i,a,4),o,s,n)}}function sn(r,t,p,g,w,m,x,i,o,v){function a(){for(var T=arguments.length,N=T,c=Q(T);N--;)c[N]=arguments[N];if(g&&(c=ei(c,g,w)),m&&(c=Zr(c,m,x)),n||A){var H=a.placeholder,E=d(c,H);if(T-=E.length,v>T){var R=i?Je(i):e,L=Ue(v-T,0),P=n?E:e,$=n?e:E,O=n?c:e,q=n?e:c;t|=n?l:_,t&=~(n?_:l),k||(t&=~(u|h));var I=[r,t,p,O,P,q,$,R,o,L],j=sn.apply(e,I);return wn(r)&&yi(j,I),j.placeholder=H,j}}var S=b?p:this,D=f?S[r]:r;return i&&(c=Li(c,i)),y&&o<c.length&&(c.length=o),this&&this!==s&&this instanceof a&&(D=C||Ut(r)),D.apply(S,c)}var y=t&c,b=t&u,f=t&h,n=t&T,k=t&Z,A=t&K,C=f?e:Ut(r);return a}function mr(i,e,t){var n=i.length;if(e=+e,n>=e||!Ct(e))return"";var r=e-n;return t=null==t?" ":t+"",wr(t,zt(r/t.length)).slice(0,r)}function Qi(e,r,i,t){function n(){for(var f=-1,l=arguments.length,r=-1,c=t.length,u=Q(c+l);++r<c;)u[r]=t[r];for(;l--;)u[r++]=arguments[++f];var p=this&&this!==s&&this instanceof n?a:e;return p.apply(o?i:this,u)}var o=r&u,a=Ut(e);return n}function ln(n){var t=bt[n];return function(r,n){return n=n===e?0:+n||0,n?(n=la(10,n),t(r*n)/n):t(r)}}function dr(e){return function(n,r,t,o){var i=X(t);return null==t&&i===en?qn(n,r,e):ri(n,r,i(t,o,1),e)}}function dt(a,n,b,r,i,y,g,s){var f=n&h;if(!f&&"function"!=typeof a)throw new it(o);var c=r?r.length:0;if(c||(n&=~(l|_),r=i=e),c-=i?i.length:0,n&_){var v=r,m=i;r=i=e}var p=f?e:xn(a),t=[a,n,b,r,i,v,m,y,g,s];if(p&&(Hs(t,p),n=t[1],s=t[9]),t[9]=null==s?f?0:a.length:Ue(s-c,0)||0,n==u)var d=Yo(t[0],t[2]);else d=n!=l&&n!=(u|l)||t[4].length?sn.apply(e,t):Qi.apply(e,t);var x=p?gi:yi;return x(d,t)}function Oo(f,a,p,r,t,l,u){var i=-1,s=f.length,c=a.length;if(s!=c&&!(t&&c>s))return!1;for(;++i<s;){var n=f[i],o=a[i],d=r?r(t?o:n,t?n:o,i):e;if(d!==e){if(d)continue;return!1}if(t){if(!ji(a,function(e){return n===e||p(n,e,r,t,l,u)}))return!1}else if(n!==o&&!p(n,o,r,t,l,u))return!1}return!0}function Go(e,t,n){switch(n){case x:case A:return+e==+t;case C:return e.name==t.name&&e.message==t.message;case k:return e!=+e?t!=+t:e==+t;case m:case g:return e==t+""}return!1}function Xo(i,r,y,d,n,g,m){var l=ze(i),p=l.length,_=ze(r),v=_.length;if(p!=v&&!n)return!1;for(var a=p;a--;){var t=l[a];if(!(n?t in r:Me.call(r,t)))return!1}for(var u=n;++a<p;){t=l[a];var f=i[t],c=r[t],h=d?d(n?c:f,n?f:c,t):e;if(!(h===e?y(f,c,d,n,g,m):h))return!1;u||(u="constructor"==t)}if(!u){var o=i.constructor,s=r.constructor;if(o!=s&&"constructor"in i&&"constructor"in r&&!("function"==typeof o&&o instanceof o&&"function"==typeof s&&s instanceof s))return!1}return!0}function X(n,r,t){var e=b.callback||Mt;return e=e===Mt?en:e,t?e(n,r,t):e}function Jt(t){for(var n=t.name+"",e=Yt[n],r=e?e.length:0;r--;){var i=e[r],o=i.func;if(null==o||o==t)return i.name}return n}function At(t,n,r){var e=b.indexOf||kn;return e=e===kn?p:e,t?e(t,n,r):e}function pr(n){for(var e=_r(n),t=e.length;t--;)e[t][2]=cr(e[t][1]);return e}function jt(t,r){var n=null==t?e:t[r];return ur(n)?n:e}function va(e,t,r){for(var i=-1,a=r.length;++i<a;){var o=r[i],n=o.size;switch(o.type){case"drop":e+=n;break;case"dropRight":t-=n;break;case"take":t=Ye(t,e+n);break;case"takeRight":e=Ue(e,t-n)}}return{start:e,end:t}}function ya(e){var n=e.length,t=new e.constructor(n);return n&&"string"==typeof e[0]&&Me.call(e,"index")&&(t.index=e.index,t.input=e.input),t}function ba(t){var e=t.constructor;return"function"==typeof e&&e instanceof e||(e=_t),new e}function ka(e,i,o){var t=e.constructor;switch(i){case O:return ni(e);case x:case A:return new t(+e);case D:case U:case W:case F:case P:case L:case q:case I:case R:var n=e.buffer;return new t(o?ni(n):n,e.byteOffset,e.length);case k:case g:return new t(e);case m:var r=new t(e.source,te.exec(e));r.lastIndex=e.lastIndex}return r}function mn(t,n,i){null==t||yt(n,t)||(n=pt(n),t=1==n.length?t:vt(t,rt(n,0,-1)),n=Ot(n));var r=null==t?t:t[n];return null==r?e:r.apply(t,i)}function We(e){return null!=e&&lt(Nt(e))}function ht(e,t){return e="number"==typeof e||De.test(e)?+e:-1,t=null==t?si:t,e>-1&&e%1==0&&t>e}function H(n,t,e){if(!Y(e))return!1;var i=typeof t;if("number"==i?We(e)&&ht(t,e.length):"string"==i&&t in e){var r=e[t];return n===n?n===r:r!==r}return!1}function yt(e,t){var n=typeof e;if("string"==n&&et.test(e)||"number"==n)return!0;if(w(e))return!1;var r=!xe.test(e);return r||null!=t&&e in ot(t)}function wn(e){var n=Jt(e),t=b[n];if("function"!=typeof t||!(n in z.prototype))return!1;if(e===t)return!0;var r=xn(t);return!!r&&e===r[0]}function lt(e){return"number"==typeof e&&e>-1&&e%1==0&&si>=e}function cr(e){return e===e&&!Y(e)}function Hs(e,t){var o=e[1],i=t[1],a=o|i,s=c>a,l=i==c&&o==T||i==c&&o==N&&e[7].length<=t[8]||i==(c|N)&&o==T;if(!s&&!l)return e;i&u&&(e[2]=t[2],a|=o&u?0:Z);var n=t[3];if(n){var r=e[3];e[3]=r?ei(r,n,t[4]):Je(n),e[4]=r?d(e[3],M):Je(t[4])}return n=t[5],n&&(r=e[5],e[5]=r?Zr(r,n,t[6]):Je(n),e[6]=r?d(e[5],M):Je(t[6])),n=t[7],n&&(e[7]=Je(n)),i&c&&(e[8]=null==e[8]?t[8]:Ye(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function sr(t,n){return t===e?n:an(t,n,sr)}function ar(e,n){e=ot(e);for(var r=-1,o=n.length,i={};++r<o;){var t=n[r];t in e&&(i[t]=e[t])}return i}function or(t,n){var e={};return di(t,function(t,r,i){n(t,r,i)&&(e[r]=t)}),e}function Li(t,r){for(var i=t.length,n=Ye(r.length,i),a=Je(t);n--;){var o=r[n];t[n]=ht(o,i)?a[o]:e}return t}function rr(e){for(var r=gt(e),i=r.length,t=i&&e.length,s=!!t&&lt(t)&&(w(e)||ft(e)),o=-1,a=[];++o<i;){var n=r[o];(s&&ht(n,t)||Me.call(e,n))&&a.push(n)}return a}function Nn(e){return null==e?[]:We(e)?Y(e)?e:_t(e):Ft(e)}function ot(e){return Y(e)?e:_t(e)}function pt(e){if(w(e))return e;var t=[];return r(e).replace(ke,function(e,n,r,i){t.push(r?i.replace(Ee,"$1"):n||e)}),t}function tr(e){return e instanceof z?e.clone():new ut(e.__wrapped__,e.__chain__,Je(e.__actions__))}function zi(t,e,r){e=(r?H(t,e,r):null==e)?1:Ue(xt(e)||1,1);for(var n=0,i=t?t.length:0,a=-1,o=Q(zt(i/e));i>n;)o[++a]=rt(t,n,n+=e);return o}function Gi(e){for(var t=-1,i=e?e.length:0,o=-1,n=[];++t<i;){var r=e[t];r&&(n[++o]=r)}return n}function er(t,e,n){var r=t?t.length:0;return r?((n?H(t,e,n):null==e)&&(e=1),rt(t,0>e?0:e)):[]}function Zn(t,e,n){var r=t?t.length:0;return r?((n?H(t,e,n):null==e)&&(e=1),e=r-(+e||0),rt(t,0,0>e?0:e)):[]}function eo(e,t,n){return e&&e.length?Pt(e,X(t,n,3),!0,!0):[]}function to(e,t,n){return e&&e.length?Pt(e,X(t,n,3),!0):[]}function oo(t,n,e,r){var i=t?t.length:0;return i?(e&&"number"!=typeof e&&H(t,n,e)&&(e=0,r=i),Pa(t,n,e,r)):[]}function Jn(t){return t?t[0]:e}function mo(e,t,n){var r=e?e.length:0;return n&&H(e,t,n)&&(t=!1),r?Qe(e,t):[]}function bo(e){var t=e?e.length:0;return t?Qe(e,!0):[]}function kn(e,n,t){var i=e?e.length:0;if(!i)return-1;if("number"==typeof t)t=0>t?Ue(i+t,0):t;else if(t){var r=qn(e,n);return i>r&&(n===n?n===e[r]:e[r]!==e[r])?r:-1}return p(e,n,t||0)}function Co(e){return Zn(e,1)}function Ot(t){var n=t?t.length:0;return n?t[n-1]:e}function No(n,t,r){var i=n?n.length:0;if(!i)return-1;var e=i;if("number"==typeof r)e=(0>r?Ue(i+r,0):Ye(r||0,i-1))+1;else if(r){e=qn(n,t,!0)-1;var o=n[e];return(t===t?t===o:o!==o)?e:-1}if(t!==t)return ue(n,e,!0);for(;e--;)if(n[e]===t)return e;return-1}function Ho(){var t=arguments,e=t[0];if(!e||!e.length)return e;for(var r=0,i=At(),o=t.length;++r<o;)for(var n=0,a=t[r];(n=i(e,a,n))>-1;)Xr.call(e,n,1);return e}function Io(e,n,a){var r=[];if(!e||!e.length)return r;var t=-1,i=[],s=e.length;for(n=X(n,a,3);++t<s;){var o=e[t];n(o,t,e)&&(r.push(o),i.push(t))}return li(e,i),r}function Xn(e){return er(e,1)}function Mo(t,n,e){var r=t?t.length:0;return r?(e&&"number"!=typeof e&&H(t,n,e)&&(n=0,e=r),rt(t,n,e)):[]}function Wo(t,e,n){var r=t?t.length:0;return r?((n?H(t,e,n):null==e)&&(e=1),rt(t,0,0>e?0:e)):[]}function Bo(t,e,n){var r=t?t.length:0;return r?((n?H(t,e,n):null==e)&&(e=1),e=r-(+e||0),rt(t,0>e?0:e)):[]}function zo(e,t,n){return e&&e.length?Pt(e,X(t,n,3),!1,!0):[]}function Vo(e,t,n){return e&&e.length?Pt(e,X(t,n,3)):[]}function Gn(r,n,t,i){var a=r?r.length:0;if(!a)return[];null!=n&&"boolean"!=typeof n&&(i=t,t=H(r,n,i)?e:n,n=!1);var o=X();return(null!=t||o!==en)&&(t=o(t,i,3)),n&&At()===p?be(r,t):jn(r,t)}function Fn(e){if(!e||!e.length)return[];var n=-1,t=0;e=pn(e,function(e){return We(e)?(t=Ue(e.length,t),!0):void 0});for(var r=Q(t);++n<t;)r[n]=Tt(e,vn(n));return r}function Vn(n,t,i){var o=n?n.length:0;if(!o)return[];var r=Fn(n);return null==t?r:(t=tt(t,i,4),Tt(r,function(n){return Ni(n,t,e,!0)}))}function Qo(){for(var n=-1,r=arguments.length;++n<r;){var t=arguments[n];if(We(t))var e=e?$t(Rt(e,t),Rt(t,e)):t}return e?jn(e):[]}function Rr(e,t){var r=-1,o=e?e.length:0,i={};for(!o||t||w(e[0])||(t=[]);++r<o;){var n=e[r];t?i[n]=t[r]:n&&(i[n[0]]=n[1])}return i}function Bn(t){var e=b(t);return e.__chain__=!0,e}function ea(e,t,n){return t.call(n,e),e}function Wn(e,t,n){return t.call(n,e)}function ra(){return Bn(this)}function sa(){return new ut(this.value(),this.__chain__)}function fa(i){for(var t,e=this;e instanceof rn;){var n=tr(e);t?r.__wrapped__=n:t=n;var r=n;e=e.__wrapped__}return r.__wrapped__=i,t}function pa(){var n=this.__wrapped__,r=function(e){return e.reverse()};if(n instanceof z){var t=n;return this.__actions__.length&&(t=new z(this)),t=t.reverse(),t.__actions__.push({func:Wn,args:[r],thisArg:e}),new ut(t,this.__chain__)}return this.thru(r)}function da(){return this.value()+""}function ha(){return oi(this.__wrapped__,this.__actions__)}function zn(r,t,n){var i=w(r)?Si:Na;return n&&H(r,t,n)&&(t=e),("function"!=typeof t||n!==e)&&(t=X(t,n,3)),i(r,t)}function Mn(t,e,n){var r=w(t)?pn:mi;return e=X(e,n,3),r(t,e)}function ma(e,t){return dn(e,qt(t))}function Pn(e,r,t,i){var n=e?Nt(e):0;return lt(n)||(e=Ft(e),n=e.length),t="number"!=typeof t||i&&H(r,t,i)?0:0>t?Ue(n+t,0):t||0,"string"==typeof e||!w(e)&&gn(e)?n>=t&&e.indexOf(r,t)>-1:!!n&&At(e,r,t)>-1}function Rn(t,e,n){var r=w(t)?Tt:fn;return e=X(e,n,3),r(t,e)}function xa(e,t){return Rn(e,Wt(t))}function wa(t,e,n){var r=w(t)?pn:mi;return e=X(e,n,3),r(t,function(t,n,r){return!e(t,n,r)})}function nn(r,t,a){if(a?H(r,t,a):null==t){r=Nn(r);var i=r.length;return i>0?r[bn(0,i-1)]:e}var o=-1,n=gr(r),i=n.length,u=i-1;for(t=Ye(0>t?0:+t||0,i);++o<t;){var s=bn(o,u),l=n[s];n[s]=n[o],n[o]=l}return n.length=t,n}function Ca(e){return nn(e,Gt)}function ja(e){var t=e?Nt(e):0;return lt(t)?t:ze(e).length}function Qn(r,t,n){var i=w(r)?ji:Wa;return n&&H(r,t,n)&&(t=e),("function"!=typeof t||n!==e)&&(t=X(t,n,3)),i(r,t)}function Da(n,t,r){if(null==n)return[];r&&H(n,t,r)&&(t=e);var i=-1;t=X(t,r,3);var o=fn(n,function(e,n,r){return{criteria:t(e,n,r),index:++i,value:e}});return ui(o,Be)}function Ia(r,n,t,i){return null==r?[]:(i&&H(n,t,i)&&(t=e),w(n)||(n=null==n?[]:[n]),w(t)||(t=null==t?[]:[t]),ai(r,n,t))}function Oa(e,t){return Mn(e,qt(t))}function qa(e,t){if("function"!=typeof t){if("function"!=typeof e)throw new it(o);var n=e;e=t,t=n}return e=Ct(e=+e)?e:0,function(){return--e<1?t.apply(this,arguments):void 0}}function $a(n,t,r){return r&&H(n,t,r)&&(t=e),t=n&&null==t?n.length:Ue(+t||0,0),dt(n,c,e,e,e,e,t)}function Kn(t,n){var r;if("function"!=typeof n){if("function"!=typeof t)throw new it(o);var i=t;t=n,n=i}return function(){return--t>0&&(r=n.apply(this,arguments)),1>=t&&(n=e),r}}function Yn(h,r,i){function b(){t&&It(t),n&&It(n),c=0,n=t=d=e}function y(i,r){r&&It(r),n=t=d=e,i&&(c=Dt(),p=h.apply(s,a),t||n||(a=s=e))}function m(){var e=r-(Dt()-f);0>=e||e>r?y(d,n):t=on(m,e)}function _(){y(u,t)}function v(){if(a=arguments,f=Dt(),s=this,d=u&&(t||!g),l===!1)var v=g&&!t;else{n||g||(c=f);var o=l-(f-c),i=0>=o||o>l;i?(n&&(n=It(n)),c=f,p=h.apply(s,a)):n||(n=on(_,o))}return i&&t?t=It(t):t||r===l||(t=on(m,r)),v&&(i=!0,p=h.apply(s,a)),!i||t||n||(a=s=e),p}var a,n,p,f,s,t,d,c=0,l=!1,u=!0;if("function"!=typeof h)throw new it(o);if(r=0>r?0:+r||0,i===!0){var g=!0;u=!1}else Y(i)&&(g=!!i.leading,l="maxWait"in i&&Ue(+i.maxWait||0,r),u="trailing"in i?!!i.trailing:u);return v.cancel=b,v}function On(n,e){if("function"!=typeof n||e&&"function"!=typeof e)throw new it(o);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=t.cache;if(o.has(i))return o.get(i);var a=n.apply(this,r);return t.cache=o.set(i,a),a};return t.cache=new On.Cache,t}function Fa(e){if("function"!=typeof e)throw new it(o);return function(){return!e.apply(this,arguments)}}function Ma(e){return Kn(2,e)}function V(n,t){if("function"!=typeof n)throw new it(o);return t=Ue(t===e?n.length-1:+t||0,0),function(){for(var r=arguments,e=-1,a=Ue(r.length-t,0),i=Q(a);++e<a;)i[e]=r[t+e];switch(t){case 0:return n.call(this,i);case 1:return n.call(this,r[0],i);case 2:return n.call(this,r[0],r[1],i)}var o=Q(t+1);for(e=-1;++e<t;)o[e]=r[e];return o[t]=i,n.apply(this,o)}}function Ua(e){if("function"!=typeof e)throw new it(o);return function(t){return e.apply(this,t)}}function is(r,i,e){var t=!0,n=!0;if("function"!=typeof r)throw new it(o);return e===!1?t=!1:Y(e)&&(t="leading"in e?!!e.leading:t,n="trailing"in e?!!e.trailing:n),Yn(r,i,{leading:t,maxWait:+i,trailing:n})}function as(n,t){return t=null==t?kt:t,dt(t,l,e,[n],[])}function ss(n,e,t,r){return e&&"boolean"!=typeof e&&H(n,e,t)?e=!1:"function"==typeof e&&(r=t,t=e,e=!1),"function"==typeof t?wt(n,e,tt(t,r,3)):wt(n,e)}function iu(e,t,n){return"function"==typeof t?wt(e,!0,tt(t,n,3)):wt(e,!0)}function nr(e,t){return e>t}function gs(e,t){return e>=t}function ft(e){return i(e)&&We(e)&&Me.call(e,"callee")&&!ca.call(e,"callee")}function ys(e){return e===!0||e===!1||i(e)&&nt.call(e)==x}function As(e){return i(e)&&nt.call(e)==A}function Ns(e){return!!e&&1===e.nodeType&&i(e)&&!Xt(e)}function Ss(e){return null==e?!0:We(e)&&(w(e)||gn(e)||ft(e)||i(e)&&mt(e.splice))?!e.length:!ze(e).length}function ir(n,r,t,o){t="function"==typeof t?tt(t,o,3):e;var i=t?t(n,r):e;return i===e?Zt(n,r,t):!!i}function En(e){return i(e)&&"string"==typeof e.message&&nt.call(e)==C}function Ks(e){return"number"==typeof e&&Ct(e)}function mt(e){return Y(e)&&nt.call(e)==j}function Y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function qi(n,r,t,i){return t="function"==typeof t?tt(t,i,3):e,pi(n,pr(r),t)}function $i(e){return lr(e)&&e!=+e}function ur(e){return null==e?!1:mt(e)?oa.test(Wr.call(e)):i(e)&&He.test(e)}function Ri(e){return null===e}function lr(e){return"number"==typeof e||i(e)&&nt.call(e)==k}function Xt(t){var n;if(!i(t)||nt.call(t)!=a||ft(t)||!Me.call(t,"constructor")&&(n=t.constructor,"function"==typeof n&&!(n instanceof n)))return!1;var r;return di(t,function(t,e){r=e}),r===e||Me.call(t,r)}function fr(e){return Y(e)&&nt.call(e)==m}function gn(e){return"string"==typeof e||i(e)&&nt.call(e)==g}function Et(e){return i(e)&&lt(e.length)&&!!n[nt.call(e)]}function Bi(t){return t===e}function hr(e,t){return t>e}function Vi(e,t){return t>=e}function gr(e){var t=e?Nt(e):0;return lt(t)?t?Je(e):[]:Ft(e)}function vr(e){return wi(e,gt(e))}function Ji(n,t,r){var i=Lt(n);return r&&H(n,t,r)&&(t=e),t?Ht(i,t):i}function un(e){return $n(e,gt(e))}function Ki(t,n,i){var r=null==t?e:vt(t,pt(n),n+"");return r===e?i:r}function Yi(e,t){if(null==e)return!1;var n=Me.call(e,t);if(!n&&!yt(t)){if(t=pt(t),e=1==t.length?e:vt(e,rt(t,0,-1)),null==e)return!1;t=Ot(t),n=Me.call(e,t)}return n||lt(e.length)&&ht(t,e.length)&&(w(e)||ft(e))}function Zi(i,o,a){a&&H(i,o,a)&&(o=e);for(var s=-1,u=ze(i),l=u.length,t={};++s<l;){var n=u[s],r=i[n];o?Me.call(t,r)?t[r].push(n):t[r]=[n]:t[r]=n}return t}function gt(e){if(null==e)return[];Y(e)||(e=_t(e));var t=e.length;t=t&&lt(t)&&(w(e)||ft(e))&&t||0;for(var o=e.constructor,r=-1,a="function"==typeof o&&o.prototype===e,i=Q(t),s=t>0;++r<t;)i[r]=r+"";for(var n in e)s&&ht(n,t)||"constructor"==n&&(a||!Me.call(e,n))||i.push(n);return i}function _r(e){e=ot(e);for(var t=-1,n=ze(e),r=n.length,i=Q(r);++t<r;){var o=n[t];i[t]=[o,e[o]]}return i}function no(t,r,i){var n=null==t?e:t[r];return n===e&&(null==t||yt(r,t)||(r=pt(r),t=1==r.length?t:vt(t,rt(r,0,-1)),n=null==t?e:t[Ot(r)]),n=n===e?i:n),mt(n)?n.call(t):n}function ro(n,e,s){if(null==n)return n;var o=e+"";e=null!=n[o]||yt(e,n)?[o]:pt(e);for(var r=-1,a=e.length,u=a-1,t=n;null!=t&&++r<a;){var i=e[r];Y(t)&&(r==u?t[i]=s:null==t[i]&&(t[i]=ht(e[r+1])?[]:{})),t=t[i]}return n}function io(t,r,n,a){var i=w(t)||Et(t);if(r=X(r,a,4),null==n)if(i||Y(t)){var o=t.constructor;n=i?w(t)?new o:[]:Lt(mt(o)?o.prototype:e)}else n={};return(i?st:ct)(t,function(e,t,i){return r(n,e,t,i)}),n}function Ft(e){return Sn(e,ze(e))}function ao(e){return Sn(e,gt(e))}function so(r,t,n){return t=+t||0,n===e?(n=t,t=0):n=+n||0,r>=Ye(t,n)&&r<Ue(t,n)}function uo(t,n,r){r&&H(t,n,r)&&(n=r=e);var a=null==t,i=null==n;if(null==r&&(i&&"boolean"==typeof t?(r=t,t=1):"boolean"==typeof n&&(r=n,i=!0)),a&&i&&(n=1,i=!1),t=+t||0,i?(n=t,t=0):n=+n||0,r||t%1||n%1){var o=ii();return Ye(t+o*(n-t+ua("1e-"+((o+"").length-1))),n)}return bn(t,n)}function lo(e){return e=r(e),e&&e.charAt(0).toUpperCase()+e.slice(1)}function xr(e){return e=r(e),e&&e.replace(fe,Pe).replace(Ce,"")}function fo(n,i,t){n=r(n),i+="";var o=n.length;return t=t===e?o:Ye(0>t?0:+t||0,o),t-=i.length,t>=0&&n.indexOf(i,t)==t}function po(e){return e=r(e),e&&me.test(e)?e.replace(le,Oe):e}function ho(e){return e=r(e),e&&Te.test(e)?e.replace(re,he):e||"(?:)"}function go(e,t,n){e=r(e),t=+t;var i=e.length;if(i>=t||!Ct(t))return e;var o=(t-i)/2,a=xt(o),s=zt(o);return n=mr("",s,n),n.slice(0,a)+e+n}function vo(t,e,n){return(n?H(t,e,n):null==e)?e=0:e&&(e=+e),t=kr(t),Ta(t,e||(Se.test(t)?16:10))}function wr(t,e){var n="";if(t=r(t),e=+e,1>e||!t||!Ct(e))return n;do e%2&&(n+=t),e=xt(e/2),t+=t;while(e);return n}function yo(t,n,e){return t=r(t),e=null==e?0:Ye(0>e?0:+e||0,t.length),t.lastIndexOf(n,e)==e}function _o(i,n,a){var d=b.templateSettings;a&&H(i,n,a)&&(n=a=e),i=r(i),n=_n(Ht({},a||n),d,Ei);var c,s,p=_n(Ht({},n.imports),d.imports,Ei),l=ze(p),m=Sn(p,l),f=0,h=n.interpolate||S,t="__p += '",v=Cn((n.escape||S).source+"|"+h.source+"|"+(h===ae?je:S).source+"|"+(n.evaluate||S).source+"|$","g"),g="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++Re+"]")+"\n";i.replace(v,function(n,r,e,u,o,a){return e||(e=u),t+=i.slice(f,a).replace(qe,ge),r&&(c=!0,t+="' +\n__e("+r+") +\n'"),o&&(s=!0,t+="';\n"+o+";\n__p += '"),e&&(t+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),f=a+n.length,n}),t+="';\n";var u=n.variable;u||(t="with (obj) {\n"+t+"\n}\n"),t=(s?t.replace(pe,""):t).replace(Ie,"$1").replace(de,"$1;"),t="function("+(u||"obj")+") {\n"+(u?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(c?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+t+"return __p\n}";var o=Di(function(){return Ir(l,g+"return "+t).apply(e,m)});if(o.source=t,En(o))throw o;return o}function kr(e,t,n){var i=e;return(e=r(e))?(n?H(i,t,n):null==t)?e.slice(oe(e),ie(e)+1):(t+="",e.slice(G(e,t),J(e,t)+1)):e}function xo(e,t,n){var i=e;return e=r(e),e?(n?H(i,t,n):null==t)?e.slice(oe(e)):e.slice(G(e,t+"")):e}function wo(e,t,n){var i=e;return e=r(e),e?(n?H(i,t,n):null==t)?e.slice(0,ie(e)+1):e.slice(0,J(e,t+"")+1):e}function ko(i,n,c){c&&H(i,n,c)&&(n=e);var u=Ve,s=Ge;if(null!=n)if(Y(n)){var t="separator"in n?n.separator:t;u="length"in n?+n.length||0:u,s="omission"in n?r(n.omission):s}else u=+n||0;if(i=r(i),u>=i.length)return i;var o=u-s.length;if(1>o)return s;var a=i.slice(0,o);if(null==t)return a+s;if(fr(t)){if(i.slice(o).search(t)){var f,l,d=i.slice(0,o);for(t.global||(t=Cn(t.source,(te.exec(t)||"")+"g")),t.lastIndex=0;f=t.exec(d);)l=f.index;a=a.slice(0,null==l?o:l)}}else if(i.indexOf(t,o)!=o){var p=a.lastIndexOf(t);p>-1&&(a=a.slice(0,p))}return a+s}function Ao(e){return e=r(e),e&&ve.test(e)?e.replace(ce,Ae):e}function Ar(t,n,i){return i&&H(t,n,i)&&(n=e),t=r(t),t.match(n||$e)||[]}function Mt(t,n,r){return r&&H(t,n,r)&&(n=e),i(t)?Er(t):en(t,n)}function Eo(e){return function(){return e}}function kt(e){return e}function Er(e){return qt(wt(e,!0))}function So(e,t){return fi(e,wt(t,!0))}function In(t,n,i){if(null==i){var l=Y(n),o=l?ze(n):e,r=o&&o.length?$n(n,o):e;(r?r.length:l)||(r=!1,i=n,n=t,t=this)}r||(r=$n(n,ze(n)));var a=!0,u=-1,f=mt(t),p=r.length;i===!1?a=!1:Y(i)&&"chain"in i&&(a=i.chain);for(;++u<p;){var s=r[u],c=n[s];t[s]=c,f&&(t.prototype[s]=function(e){return function(){var r=this.__chain__;if(a||r){var n=t(this.__wrapped__),i=n.__actions__=Je(this.__actions__);return i.push({func:e,args:arguments,thisArg:t}),n.__chain__=r,n}return e.apply(t,$t([this.value()],arguments))}}(c))}return t}function Do(){return s._=ia,this}function Nr(){}function Wt(e){return yt(e)?vn(e):ga(e)}function qo(e){return function(t){return vt(e,pt(t),t+"")}}function $o(t,r,n){n&&H(t,r,n)&&(r=n=e),t=+t||0,n=null==n?1:+n||0,null==r?(r=t,t=0):r=+r||0;for(var i=-1,o=Ue(zt((r-t)/(n||1)),0),a=Q(o);++i<o;)a[i]=t,t+=n;return a}function Lo(e,n,i){if(e=xt(e),1>e||!Ct(e))return[];var t=-1,r=Q(Ye(e,Qt));for(n=tt(n,i,1);++t<e;)Qt>t?r[t]=n(t):n(t);return r}function Ro(e){var t=++na;return r(e)+t}function Po(e,t){return(+e||0)+(+t||0)}function Fo(n,t,r){return r&&H(n,t,r)&&(t=e),t=X(t,r,3),1==t.length?Oi(w(n)?n:Nn(n),t):vs(n,t)}se=se?f.defaults(s.Object(),se,f.pick(s,Le)):s;var Q=se.Array,Dr=se.Date,Uo=se.Error,Ir=se.Function,bt=se.Math,qr=se.Number,_t=se.Object,Cn=se.RegExp,Un=se.String,it=se.TypeError,Fr=Q.prototype,An=_t.prototype,Zo=Un.prototype,Wr=Ir.prototype.toString,Me=An.hasOwnProperty,na=0,nt=An.toString,ia=s._,oa=Cn("^"+Wr.call(Me).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),aa=se.ArrayBuffer,It=se.clearTimeout,ua=se.parseFloat,la=bt.pow,ca=An.propertyIsEnumerable,Vr=jt(se,"Set"),on=se.setTimeout,Xr=Fr.splice,Jr=se.Uint8Array,Qr=jt(se,"WeakMap"),zt=bt.ceil,Yr=jt(_t,"create"),xt=bt.floor,_a=jt(Q,"isArray"),Ct=se.isFinite,ti=jt(_t,"keys"),Ue=bt.max,Ye=bt.min,Aa=jt(Dr,"now"),Ta=se.parseInt,ii=bt.random,Ea=qr.NEGATIVE_INFINITY,Gt=qr.POSITIVE_INFINITY,Qt=4294967295,Sa=Qt-1,Ha=Qt>>>1,si=9007199254740991,Kt=Qr&&new Qr,Yt={};b.support={};b.templateSettings={escape:ye,evaluate:_e,interpolate:ae,variable:"",imports:{_:b}};var Lt=function(){function t(){}return function(n){if(Y(n)){t.prototype=n;var r=new t;t.prototype=e}return r||{}}}(),at=Gr(ct),cn=Gr(Dn,!0),Tn=zr(),hi=zr(!0),gi=Kt?function(e,t){return Kt.set(e,t),e}:kt,xn=Kt?function(e){return Kt.get(e)}:Nr,Nt=vn("length"),yi=function(){var e=0,t=0;return function(n,i){var r=Dt(),o=Ke-(r-t);if(t=r,o>0){if(++e>=Xe)return n}else e=0;return gi(n,i)}}(),Ba=V(function(e,t){return i(e)&&We(e)?Rt(e,Qe(t,!1,!0)):[];
  5. }),za=Lr(),Va=Lr(!0),Ga=V(function(n){for(var u=n.length,t=u,s=Q(c),i=At(),d=i===p,o=[];t--;){var e=n[t]=We(e=n[t])?e:[];s[t]=d&&e.length>=120?yn(t&&e):null}var a=n[0],l=-1,c=a?a.length:0,r=s[0];e:for(;++l<c;)if(e=a[l],(r?tn(r,e):i(o,e,0))<0){for(var t=u;--t;){var f=s[t];if((f?tn(f,e):i(n[t],e,0))<0)continue e}r&&r.push(e),o.push(e)}return o}),Xa=V(function(t,e){e=Qe(e);var n=Ai(t,e);return li(t,e.sort($)),n}),Ja=dr(),Qa=dr(!0),Ka=V(function(e){return jn(Qe(e,!1,!0))}),Ya=V(function(e,t){return We(e)?Rt(e,t):[]}),Za=V(Fn),es=V(function(n){var t=n.length,i=t>2?n[t-2]:e,r=t>1?n[t-1]:e;return t>2&&"function"==typeof i?t-=2:(i=t>1&&"function"==typeof r?(--t,r):e,r=e),n.length=t,Vn(n,i,r)}),ts=V(function(e){return e=Qe(e),this.thru(function(t){return Mi(w(t)?t:[ot(t)],e)})}),ns=V(function(e,t){return Ai(e,Qe(t))}),rs=Vt(function(e,n,t){Me.call(e,t)?++e[t]:e[t]=1}),dn=Pr(at),os=Pr(cn,!0),bi=Hr(st,at),xi=Hr(co,cn),us=Vt(function(e,n,t){Me.call(e,t)?e[t].push(n):e[t]=[n]}),ls=Vt(function(e,t,n){e[n]=t}),cs=V(function(n,t,r){var o=-1,a="function"==typeof t,s=yt(t),i=We(n)?Q(n.length):[];return at(n,function(n){var u=a?t:s&&null!=n?n[t]:e;i[++o]=u?u.apply(n,r):mn(n,t,r)}),i}),fs=Vt(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ln=yr(Ni,at),ki=yr(Fs,cn),hs=V(function(t,e){if(null==t)return[];var n=e[2];return n&&H(e[0],e[1],n)&&(e.length=1),ai(t,Qe(e),[])}),Dt=Aa||function(){return(new Dr).getTime()},Ti=V(function(n,r,e){var t=u;if(e.length){var i=d(e,Ti.placeholder);t|=l}return dt(n,t,r,e,i)}),ms=V(function(e,t){t=t.length?Qe(t):un(e);for(var n=-1,i=t.length;++n<i;){var r=t[n];e[r]=dt(e[r],u,e)}return e}),Ci=V(function(n,r,e){var t=u|h;if(e.length){var i=d(e,Ci.placeholder);t|=l}return dt(r,t,n,e,i)}),_s=Br(T),bs=Br(K),xs=V(function(e,t){return _i(e,1,t)}),ws=V(function(e,t,n){return _i(e,t,n)}),ks=Or(),hn=Or(!0),Ts=V(function(t,e){if(e=Qe(e),"function"!=typeof t||!Si(e,Ze))throw new it(o);var n=e.length;return V(function(r){for(var i=Ye(r.length,n);i--;)r[i]=e[i](r[i]);return t.apply(this,r)})}),Cs=br(l),Es=br(_),js=V(function(t,n){return dt(t,N,e,e,e,Qe(n))}),w=_a||function(e){return i(e)&&lt(e.length)&&nt.call(e)==y},an=Kr(ci),Hn=Kr(function(e,t,n){return n?_n(e,t,n):Ht(e,t)}),Ds=Ur(Hn,Pi),Is=Ur(an,sr),Os=$r(ct),qs=$r(Dn),$s=Sr(Tn),Ls=Sr(hi),Rs=jr(ct),Ps=jr(Dn),ze=ti?function(t){var n=null==t?e:t.constructor;return"function"==typeof n&&n.prototype===t||"function"!=typeof t&&We(t)?rr(t):Y(t)?ti(t):[]}:rr,Ms=Cr(!0),Ws=Cr(),Us=V(function(t,e){if(null==t)return{};if("function"!=typeof e[0]){var e=Tt(Qe(e),Un);return ar(t,Rt(gt(t),e))}var n=tt(e[0],e[1],3);return or(t,function(e,t,r){return!n(e,t,r)})}),Bs=V(function(t,e){return null==t?{}:"function"==typeof e[0]?or(t,tt(e[0],e[1],3)):ar(t,Qe(e))}),zs=Bt(function(t,e,n){return e=e.toLowerCase(),t+(n?e.charAt(0).toUpperCase()+e.slice(1):e)}),Vs=Bt(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Gs=Tr(),Xs=Tr(!0),Js=Bt(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Qs=Bt(function(t,e,n){return t+(n?" ":"")+(e.charAt(0).toUpperCase()+e.slice(1))}),Di=V(function(n,r){try{return n.apply(e,r)}catch(t){return En(t)?t:new Uo(t)}}),Ys=V(function(e,t){return function(n){return mn(n,e,t)}}),Zs=V(function(e,t){return function(n){return mn(e,n,t)}}),eu=ln("ceil"),tu=ln("floor"),nu=Mr(nr,Ea),ru=Mr(hr,Gt),Xi=ln("round");return b.prototype=rn.prototype,ut.prototype=Lt(rn.prototype),ut.prototype.constructor=ut,z.prototype=Lt(rn.prototype),z.prototype.constructor=z,St.prototype["delete"]=To,St.prototype.get=Jo,St.prototype.has=ta,St.prototype.set=ps,Hi.prototype.push=Fi,On.Cache=St,b.after=qa,b.ary=$a,b.assign=Hn,b.at=ns,b.before=Kn,b.bind=Ti,b.bindAll=ms,b.bindKey=Ci,b.callback=Mt,b.chain=Bn,b.chunk=zi,b.compact=Gi,b.constant=Eo,b.countBy=rs,b.create=Ji,b.curry=_s,b.curryRight=bs,b.debounce=Yn,b.defaults=Ds,b.defaultsDeep=Is,b.defer=xs,b.delay=ws,b.difference=Ba,b.drop=er,b.dropRight=Zn,b.dropRightWhile=eo,b.dropWhile=to,b.fill=oo,b.filter=Mn,b.flatten=mo,b.flattenDeep=bo,b.flow=ks,b.flowRight=hn,b.forEach=bi,b.forEachRight=xi,b.forIn=$s,b.forInRight=Ls,b.forOwn=Rs,b.forOwnRight=Ps,b.functions=un,b.groupBy=us,b.indexBy=ls,b.initial=Co,b.intersection=Ga,b.invert=Zi,b.invoke=cs,b.keys=ze,b.keysIn=gt,b.map=Rn,b.mapKeys=Ms,b.mapValues=Ws,b.matches=Er,b.matchesProperty=So,b.memoize=On,b.merge=an,b.method=Ys,b.methodOf=Zs,b.mixin=In,b.modArgs=Ts,b.negate=Fa,b.omit=Us,b.once=Ma,b.pairs=_r,b.partial=Cs,b.partialRight=Es,b.partition=fs,b.pick=Bs,b.pluck=xa,b.property=Wt,b.propertyOf=qo,b.pull=Ho,b.pullAt=Xa,b.range=$o,b.rearg=js,b.reject=wa,b.remove=Io,b.rest=Xn,b.restParam=V,b.set=ro,b.shuffle=Ca,b.slice=Mo,b.sortBy=Da,b.sortByAll=hs,b.sortByOrder=Ia,b.spread=Ua,b.take=Wo,b.takeRight=Bo,b.takeRightWhile=zo,b.takeWhile=Vo,b.tap=ea,b.throttle=is,b.thru=Wn,b.times=Lo,b.toArray=gr,b.toPlainObject=vr,b.transform=io,b.union=Ka,b.uniq=Gn,b.unzip=Fn,b.unzipWith=Vn,b.values=Ft,b.valuesIn=ao,b.where=Oa,b.without=Ya,b.wrap=as,b.xor=Qo,b.zip=Za,b.zipObject=Rr,b.zipWith=es,b.backflow=hn,b.collect=Rn,b.compose=hn,b.each=bi,b.eachRight=xi,b.extend=Hn,b.iteratee=Mt,b.methods=un,b.object=Rr,b.select=Mn,b.tail=Xn,b.unique=Gn,In(b,b),b.add=Po,b.attempt=Di,b.camelCase=zs,b.capitalize=lo,b.ceil=eu,b.clone=ss,b.cloneDeep=iu,b.deburr=xr,b.endsWith=fo,b.escape=po,b.escapeRegExp=ho,b.every=zn,b.find=dn,b.findIndex=za,b.findKey=Os,b.findLast=os,b.findLastIndex=Va,b.findLastKey=qs,b.findWhere=ma,b.first=Jn,b.floor=tu,b.get=Ki,b.gt=nr,b.gte=gs,b.has=Yi,b.identity=kt,b.includes=Pn,b.indexOf=kn,b.inRange=so,b.isArguments=ft,b.isArray=w,b.isBoolean=ys,b.isDate=As,b.isElement=Ns,b.isEmpty=Ss,b.isEqual=ir,b.isError=En,b.isFinite=Ks,b.isFunction=mt,b.isMatch=qi,b.isNaN=$i,b.isNative=ur,b.isNull=Ri,b.isNumber=lr,b.isObject=Y,b.isPlainObject=Xt,b.isRegExp=fr,b.isString=gn,b.isTypedArray=Et,b.isUndefined=Bi,b.kebabCase=Vs,b.last=Ot,b.lastIndexOf=No,b.lt=hr,b.lte=Vi,b.max=nu,b.min=ru,b.noConflict=Do,b.noop=Nr,b.now=Dt,b.pad=go,b.padLeft=Gs,b.padRight=Xs,b.parseInt=vo,b.random=uo,b.reduce=Ln,b.reduceRight=ki,b.repeat=wr,b.result=no,b.round=Xi,b.runInContext=ne,b.size=ja,b.snakeCase=Js,b.some=Qn,b.sortedIndex=Ja,b.sortedLastIndex=Qa,b.startCase=Qs,b.startsWith=yo,b.sum=Fo,b.template=_o,b.trim=kr,b.trimLeft=xo,b.trimRight=wo,b.trunc=ko,b.unescape=Ao,b.uniqueId=Ro,b.words=Ar,b.all=zn,b.any=Qn,b.contains=Pn,b.eq=ir,b.detect=dn,b.foldl=Ln,b.foldr=ki,b.head=Jn,b.include=Pn,b.inject=Ln,In(b,function(){var e={};return ct(b,function(n,t){b.prototype[t]||(e[t]=n)}),e}(),!1),b.sample=nn,b.prototype.sample=function(e){return this.__chain__||null!=e?this.thru(function(t){return nn(t,e)}):nn(this.value())},b.VERSION=Ne,st(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){b[e].placeholder=b}),st(["drop","take"],function(e,t){z.prototype[e]=function(n){var i=this.__filtered__;if(i&&!t)return new z(this);n=null==n?1:Ue(xt(n)||0,0);var r=this.clone();return i?r.__takeCount__=Ye(r.__takeCount__,n):r.__views__.push({size:n,type:e+(r.__dir__<0?"Right":"")}),r},z.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),st(["filter","map","takeWhile"],function(t,n){var e=n+1,r=e!=B;z.prototype[t]=function(n,i){var t=this.clone();return t.__iteratees__.push({iteratee:X(n,i,1),type:e}),t.__filtered__=t.__filtered__||r,t}}),st(["first","last"],function(e,t){var n="take"+(t?"Right":"");z.prototype[e]=function(){return this[n](1).value()[0]}}),st(["initial","rest"],function(e,t){var n="drop"+(t?"":"Right");z.prototype[e]=function(){return this.__filtered__?new z(this):this[n](1)}}),st(["pluck","where"],function(t,e){var n=e?"filter":"map",r=e?qt:Wt;z.prototype[t]=function(e){return this[n](r(e))}}),z.prototype.compact=function(){return this.filter(kt)},z.prototype.reject=function(e,t){return e=X(e,t,1),this.filter(function(t){return!e(t)})},z.prototype.slice=function(n,r){n=null==n?0:+n||0;var t=this;return t.__filtered__&&(n>0||0>r)?new z(t):(0>n?t=t.takeRight(-n):n&&(t=t.drop(n)),r!==e&&(r=+r||0,t=0>r?t.dropRight(-r):t.take(r-n)),t)},z.prototype.takeRightWhile=function(e,t){return this.reverse().takeWhile(e,t).reverse()},z.prototype.toArray=function(){return this.take(Gt)},ct(z.prototype,function(i,t){var o=/^(?:filter|map|reject)|While$/.test(t),n=/^(?:first|last)$/.test(t),r=b[n?"take"+("last"==t?"Right":""):t];r&&(b.prototype[t]=function(){var a=n?[1]:arguments,u=this.__chain__,t=this.__wrapped__,g=!!this.__actions__.length,s=t instanceof z,h=a[0],l=s||w(t);l&&o&&"function"==typeof h&&1!=h.length&&(s=l=!1);var p=function(t){return n&&u?r(t,1)[0]:r.apply(e,$t([t],a))},d={func:Wn,args:[p],thisArg:e},c=s&&!g;if(n&&!u)return c?(t=t.clone(),t.__actions__.push(d),i.call(t)):r.call(e,this.value())[0];if(!n&&l){t=c?t:new z(this);var f=i.apply(t,a);return f.__actions__.push(d),new ut(f,u)}return this.thru(p)})}),st(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(e){var t=(/^(?:replace|split)$/.test(e)?Zo:Fr)[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:join|pop|replace|shift)$/.test(e);b.prototype[e]=function(){var e=arguments;return r&&!this.__chain__?t.apply(this.value(),e):this[n](function(n){return t.apply(n,e)})}}),ct(z.prototype,function(i,t){var e=b[t];if(e){var n=e.name+"",r=Yt[n]||(Yt[n]=[]);r.push({name:t,func:e})}}),Yt[sn(e,h).name]=[{name:"wrapper",func:e}],z.prototype.clone=ds,z.prototype.reverse=Ii,z.prototype.value=Wi,b.prototype.chain=ra,b.prototype.commit=sa,b.prototype.concat=ts,b.prototype.plant=fa,b.prototype.reverse=pa,b.prototype.toString=da,b.prototype.run=b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=ha,b.prototype.collect=b.prototype.map,b.prototype.head=b.prototype.first,b.prototype.select=b.prototype.filter,b.prototype.tail=b.prototype.rest,b}var e,Ne="3.10.1",u=1,h=2,Z=4,T=8,K=16,l=32,_=64,c=128,N=256,Ve=30,Ge="...",Xe=150,Ke=16,E=200,we=1,B=2,o="Expected a function",M="__lodash_placeholder__",v="[object Arguments]",y="[object Array]",x="[object Boolean]",A="[object Date]",C="[object Error]",j="[object Function]",X="[object Map]",k="[object Number]",a="[object Object]",m="[object RegExp]",Y="[object Set]",g="[object String]",z="[object WeakMap]",O="[object ArrayBuffer]",D="[object Float32Array]",U="[object Float64Array]",W="[object Int8Array]",F="[object Int16Array]",P="[object Int32Array]",L="[object Uint8Array]",q="[object Uint8ClampedArray]",I="[object Uint16Array]",R="[object Uint32Array]",pe=/\b__p \+= '';/g,Ie=/\b(__p \+=) '' \+/g,de=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ce=/&(?:amp|lt|gt|quot|#39|#96);/g,le=/[&<>"'`]/g,ve=RegExp(ce.source),me=RegExp(le.source),ye=/<%-([\s\S]+?)%>/g,_e=/<%([\s\S]+?)%>/g,ae=/<%=([\s\S]+?)%>/g,xe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,et=/^\w*$/,ke=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,re=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,Te=RegExp(re.source),Ce=/[\u0300-\u036f\ufe20-\ufe23]/g,Ee=/\\(\\)?/g,je=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,te=/\w*$/,Se=/^0[xX]/,He=/^\[object .+?Constructor\]$/,De=/^\d+$/,fe=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,S=/($^)/,qe=/['\n\r\u2028\u2029\\]/g,$e=function(){var e="[A-Z\\xc0-\\xd6\\xd8-\\xde]",t="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(e+"+(?="+e+t+")|"+e+"?"+t+"|"+e+"+|[0-9]+","g")}(),Le=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],Re=-1,n={};n[D]=n[U]=n[W]=n[F]=n[P]=n[L]=n[q]=n[I]=n[R]=!0,n[v]=n[y]=n[O]=n[x]=n[A]=n[C]=n[j]=n[X]=n[k]=n[a]=n[m]=n[Y]=n[g]=n[z]=!1;var t={};t[v]=t[y]=t[O]=t[x]=t[A]=t[D]=t[U]=t[W]=t[F]=t[P]=t[k]=t[a]=t[m]=t[g]=t[L]=t[q]=t[I]=t[R]=!0,t[C]=t[j]=t[X]=t[Y]=t[z]=!1;var Me={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à ":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},We={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},Ue={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},H={"function":!0,object:!0},ze={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Q={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},w=H[typeof exports]&&exports&&!exports.nodeType&&exports,b=H[typeof module]&&module&&!module.nodeType&&module,Je=w&&b&&"object"==typeof global&&global&&global.Object&&global,Qe=H[typeof self]&&self&&self.Object&&self,V=H[typeof window]&&window&&window.Object&&window,Ye=b&&b.exports===w&&w,s=Je||V!==(this&&this.window)&&V||Qe||this,f=ne();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(s._=f,define(function(){return f})):w&&b?Ye?(b.exports=f)._=f:w._=f:s._=f}.call(this),function(t){var e="object"==typeof self&&self.self==self&&self||"object"==typeof global&&global.global==global&&global;if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(n,r,i){e.Backbone=t(e,i,n,r)});else if("undefined"!=typeof exports){var n,r=require("underscore");try{n=require("jquery")}catch(i){}t(e,exports,r,n)}else e.Backbone=t(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}(function(l,t,e,q){var H=l.Backbone,_=Array.prototype.slice;t.VERSION="1.2.3",t.$=q,t.noConflict=function(){return l.Backbone=H,this},t.emulateHTTP=!1,t.emulateJSON=!1;var F=function(r,t,n){switch(r){case 1:return function(){return e[t](this[n])};case 2:return function(r){return e[t](this[n],r)};case 3:return function(r,i){return e[t](this[n],u(r,this),i)};case 4:return function(r,i,o){return e[t](this[n],u(r,this),i,o)};default:return function(){var r=_.call(arguments);return r.unshift(this[n]),e[t].apply(e,r)}}},c=function(t,n,r){e.each(n,function(i,n){e[n]&&(t.prototype[n]=F(i,n,r))})},u=function(t,n){return e.isFunction(t)?t:e.isObject(t)&&!n._isModel(t)?T(t):e.isString(t)?function(e){return e.get(t)}:t},T=function(t){var n=e.matches(t);return function(e){return n(e.attributes)}},n=t.Events={},f=/\s+/,i=function(u,n,t,s,a){var r,o=0;if(t&&"object"==typeof t){void 0!==s&&"context"in a&&void 0===a.context&&(a.context=s);for(r=e.keys(t);o<r.length;o++)n=i(u,n,r[o],t[r[o]],a)}else if(t&&f.test(t))for(r=t.split(f);o<r.length;o++)n=u(n,r[o],s,a);else n=u(n,t,s,a);return n};n.on=function(e,t,n){return d(this,e,t,n)};var d=function(e,n,r,o,t){if(e._events=i(S,e._events||{},n,r,{context:o,ctx:e,listening:t}),t){var a=e._listeners||(e._listeners={});a[t.id]=t}return e};n.listenTo=function(t,o,a){if(!t)return this;var n=t._listenId||(t._listenId=e.uniqueId("l")),r=this._listeningTo||(this._listeningTo={}),i=r[n];if(!i){var s=this._listenId||(this._listenId=e.uniqueId("l"));i=r[n]={obj:t,objId:n,id:s,listeningTo:r,count:0}}return d(t,o,a,this,i),this};var S=function(e,r,i,t){if(i){var a=e[r]||(e[r]=[]),o=t.context,s=t.ctx,n=t.listening;n&&n.count++,a.push({callback:i,context:o,ctx:o||s,listening:n})}return e};n.off=function(e,t,n){return this._events?(this._events=i(C,this._events,e,t,{context:n,listeners:this._listeners}),this):this},n.stopListening=function(r,a,s){var t=this._listeningTo;if(!t)return this;for(var i=r?[r._listenId]:e.keys(t),n=0;n<i.length;n++){var o=t[i[n]];if(!o)break;o.obj.off(a,s,this)}return e.isEmpty(t)&&(this._listeningTo=void 0),this};var C=function(n,r,s,d){if(n){var t,i=0,u=d.context,a=d.listeners;if(r||s||u){for(var p=r?[r]:e.keys(n);i<p.length;i++){r=p[i];var l=n[r];if(!l)break;for(var c=[],f=0;f<l.length;f++){var o=l[f];s&&s!==o.callback&&s!==o.callback._callback||u&&u!==o.context?c.push(o):(t=o.listening,t&&0===--t.count&&(delete a[t.id],delete t.listeningTo[t.objId]))}c.length?n[r]=c:delete n[r]}return e.size(n)?n:void 0}for(var h=e.keys(a);i<h.length;i++)t=a[h[i]],delete a[t.id],delete t.listeningTo[t.objId]}};n.once=function(t,n,r){var o=i(v,{},t,n,e.bind(this.off,this));return this.on(o,void 0,r)},n.listenToOnce=function(t,n,r){var o=i(v,{},n,r,e.bind(this.stopListening,this,t));return this.listenTo(t,o)};var v=function(n,r,t,o){if(t){var i=n[r]=e.once(function(){o(r,i),t.apply(this,arguments)});i._callback=t}return n};n.trigger=function(r){if(!this._events)return this;for(var t=Math.max(0,arguments.length-1),n=Array(t),e=0;t>e;e++)n[e]=arguments[e+1];return i(A,this._events,r,void 0,n),this};var A=function(t,r,o,i){if(t){var n=t[r],e=t.all;n&&e&&(e=e.slice()),n&&y(n,i),e&&y(e,[r].concat(i))}return t},y=function(n,r){var e,t=-1,i=n.length,o=r[0],a=r[1],s=r[2];switch(r.length){case 0:for(;++t<i;)(e=n[t]).callback.call(e.ctx);return;case 1:for(;++t<i;)(e=n[t]).callback.call(e.ctx,o);return;case 2:for(;++t<i;)(e=n[t]).callback.call(e.ctx,o,a);return;case 3:for(;++t<i;)(e=n[t]).callback.call(e.ctx,o,a,s);return;default:for(;++t<i;)(e=n[t]).callback.apply(e.ctx,r);return}};n.bind=n.on,n.unbind=n.off,e.extend(t,n);var o=t.Model=function(r,t){var n=r||{};t||(t={}),this.cid=e.uniqueId(this.cidPrefix),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(n=this.parse(n,t)||{}),n=e.defaults({},n,e.result(this,"defaults")),this.set(n,t),this.changed={},this.initialize.apply(this,arguments)};e.extend(o.prototype,n,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",initialize:function(){},toJSON:function(t){return e.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(t){return e.escape(this.get(t))},has:function(e){return null!=this.get(e)},matches:function(t){return!!e.iteratee(t,this)(this.attributes)},set:function(s,r,t){if(null==s)return this;var o;if("object"==typeof s?(o=s,t=r):(o={})[s]=r,t||(t={}),!this._validate(o,t))return!1;var d=t.unset,c=t.silent,i=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=e.clone(this.attributes),this.changed={});var a=this.attributes,f=this.changed,p=this._previousAttributes;for(var n in o)r=o[n],e.isEqual(a[n],r)||i.push(n),e.isEqual(p[n],r)?delete f[n]:f[n]=r,d?delete a[n]:a[n]=r;if(this.id=this.get(this.idAttribute),!c){i.length&&(this._pending=t);for(var u=0;u<i.length;u++)this.trigger("change:"+i[u],this,a[i[u]],t)}if(l)return this;if(!c)for(;this._pending;)t=this._pending,this._pending=!1,this.trigger("change",this,t);return this._pending=!1,this._changing=!1,this},unset:function(t,n){return this.set(t,void 0,e.extend({},n,{unset:!0}))},clear:function(n){var t={};for(var r in this.attributes)t[r]=void 0;return this.set(t,e.extend({},n,{unset:!0}))},hasChanged:function(t){return null==t?!e.isEmpty(this.changed):e.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?e.clone(this.changed):!1;var o=this._changing?this._previousAttributes:this.attributes,n={};for(var r in t){var i=t[r];e.isEqual(o[r],i)||(n[r]=i)}return e.size(n)?n:!1},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return e.clone(this._previousAttributes)},fetch:function(t){t=e.extend({parse:!0},t);var n=this,r=t.success;return t.success=function(e){var i=t.parse?n.parse(e,t):e;return n.set(i,t)?(r&&r.call(t.context,n,e,t),void n.trigger("sync",n,e,t)):!1},a(this,t),this.sync("read",this,t)},save:function(i,u,t){var n;null==i||"object"==typeof i?(n=i,t=u):(n={})[i]=u,t=e.extend({validate:!0,parse:!0},t);var o=t.wait;if(n&&!o){if(!this.set(n,t))return!1}else if(!this._validate(n,t))return!1;var r=this,l=t.success,s=this.attributes;t.success=function(i){r.attributes=s;var a=t.parse?r.parse(i,t):i;return o&&(a=e.extend({},n,a)),a&&!r.set(a,t)?!1:(l&&l.call(t.context,r,i,t),void r.trigger("sync",r,i,t))},a(this,t),n&&o&&(this.attributes=e.extend({},s,n));var c=this.isNew()?"create":t.patch?"patch":"update";"patch"!==c||t.attrs||(t.attrs=n);var f=this.sync(c,this,t);return this.attributes=s,f},destroy:function(t){t=t?e.clone(t):{};var n=this,r=t.success,i=t.wait,o=function(){n.stopListening(),n.trigger("destroy",n,n.collection,t)};t.success=function(e){i&&o(),r&&r.call(t.context,n,e,t),n.isNew()||n.trigger("sync",n,e,t)};var s=!1;return this.isNew()?e.defer(t.success):(a(this,t),s=this.sync("delete",this,t)),i||o(),s},url:function(){var t=e.result(this,"urlRoot")||e.result(this.collection,"url")||p();if(this.isNew())return t;var n=this.get(this.idAttribute);return t.replace(/[^\/]$/,"$&/")+encodeURIComponent(n)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},e.defaults({validate:!0},t))},_validate:function(t,n){if(!n.validate||!this.validate)return!0;t=e.extend({},this.attributes,t);var r=this.validationError=this.validate(t,n)||null;return r?(this.trigger("invalid",this,r,e.extend(n,{validationError:r})),!1):!0}});var x={keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1};c(o,x,"attributes");var s=t.Collection=function(n,t){t||(t={}),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),n&&this.reset(n,e.extend({silent:!0},t))},w={add:!0,remove:!0,merge:!0},k={add:!0,remove:!1},m=function(n,i,t){t=Math.min(Math.max(t,0),n.length);for(var r=Array(n.length-t),o=i.length,e=0;e<r.length;e++)r[e]=n[e+t];for(e=0;o>e;e++)n[e+t]=i[e];for(e=0;e<r.length;e++)n[e+o+t]=r[e]};e.extend(s.prototype,n,{model:o,initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return t.sync.apply(this,arguments)},add:function(t,n){return this.set(t,e.extend({merge:!1},n,k))},remove:function(t,n){n=e.extend({},n);var i=!e.isArray(t);t=i?[t]:e.clone(t);var r=this._removeModels(t,n);return!n.silent&&r&&this.trigger("update",this,n),i?r[0]:r},set:function(r,t){if(null!=r){t=e.defaults({},t,w),t.parse&&!this._isModel(r)&&(r=this.parse(r,t));var g=!e.isArray(r);r=g?[r]:r.slice();var o=t.at;null!=o&&(o=+o),0>o&&(o+=this.length+1);for(var n,s=[],u=[],c=[],f={},y=t.add,x=t.merge,h=t.remove,l=!1,p=this.comparator&&null==o&&t.sort!==!1,b=e.isString(this.comparator)?this.comparator:null,i=0;i<r.length;i++){n=r[i];var a=this.get(n);if(a){if(x&&n!==a){var d=this._isModel(n)?n.attributes:n;t.parse&&(d=a.parse(d,t)),a.set(d,t),p&&!l&&(l=a.hasChanged(b))}f[a.cid]||(f[a.cid]=!0,s.push(a)),r[i]=a}else y&&(n=r[i]=this._prepareModel(n,t),n&&(u.push(n),this._addReference(n,t),f[n.cid]=!0,s.push(n)))}if(h){for(i=0;i<this.length;i++)n=this.models[i],f[n.cid]||c.push(n);c.length&&this._removeModels(c,t)}var v=!1,_=!p&&y&&h;if(s.length&&_?(v=this.length!=s.length||e.some(this.models,function(e,t){return e!==s[t]}),this.models.length=0,m(this.models,s,0),this.length=this.models.length):u.length&&(p&&(l=!0),m(this.models,u,null==o?this.length:o),this.length=this.models.length),l&&this.sort({silent:!0}),!t.silent){for(i=0;i<u.length;i++)null!=o&&(t.index=o+i),n=u[i],n.trigger("add",n,this,t);(l||v)&&this.trigger("sort",this,t),(u.length||c.length)&&this.trigger("update",this,t)}return g?r[0]:r}},reset:function(n,t){t=t?e.clone(t):{};for(var r=0;r<this.models.length;r++)this._removeReference(this.models[r],t);return t.previousModels=this.models,this._reset(),n=this.add(n,e.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),n},push:function(t,n){return this.add(t,e.extend({at:this.length},n))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e)},unshift:function(t,n){return this.add(t,e.extend({at:0},n))},shift:function(e){var t=this.at(0);return this.remove(t,e)},slice:function(){return _.apply(this.models,arguments)},get:function(e){if(null==e)return void 0;var t=this.modelId(this._isModel(e)?e.attributes:e);return this._byId[e]||this._byId[t]||this._byId[e.cid]},at:function(e){return 0>e&&(e+=this.length),this.models[e]},where:function(e,t){return this[t?"find":"filter"](e)},findWhere:function(e){return this.where(e,!0)},sort:function(n){var t=this.comparator;if(!t)throw new Error("Cannot sort a set without a comparator");n||(n={});var r=t.length;return e.isFunction(t)&&(t=e.bind(t,this)),1===r||e.isString(t)?this.models=this.sortBy(t):this.models.sort(t),n.silent||this.trigger("sort",this,n),this},pluck:function(t){return e.invoke(this.models,"get",t)},fetch:function(t){t=e.extend({parse:!0},t);var r=t.success,n=this;return t.success=function(e){var i=t.reset?"reset":"set";n[i](e,t),r&&r.call(t.context,n,e,t),n.trigger("sync",n,e,t)},a(this,t),this.sync("read",this,t)},create:function(n,t){t=t?e.clone(t):{};var r=t.wait;if(n=this._prepareModel(n,t),!n)return!1;r||this.add(n,t);var o=this,i=t.success;return t.success=function(t,n,e){r&&o.add(t,e),i&&i.call(e.context,t,n,e)},n.save(null,t),n},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(e){return e[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(n,t){if(this._isModel(n))return n.collection||(n.collection=this),n;t=t?e.clone(t):{},t.collection=this;var r=new this.model(n,t);return r.validationError?(this.trigger("invalid",this,r.validationError,t),!1):r},_removeModels:function(i,t){for(var n=[],r=0;r<i.length;r++){var e=this.get(i[r]);if(e){var o=this.indexOf(e);this.models.splice(o,1),this.length--,t.silent||(t.index=o,e.trigger("remove",e,this,t)),n.push(e),this._removeReference(e,t)}}return n.length?n:!1},_isModel:function(e){return e instanceof o},_addReference:function(e,n){this._byId[e.cid]=e;var t=this.modelId(e.attributes);null!=t&&(this._byId[t]=e),e.on("all",this._onModelEvent,this)},_removeReference:function(e,n){delete this._byId[e.cid];var t=this.modelId(e.attributes);null!=t&&delete this._byId[t],this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,i,o){if("add"!==e&&"remove"!==e||i===this){if("destroy"===e&&this.remove(t,o),"change"===e){var n=this.modelId(t.previousAttributes()),r=this.modelId(t.attributes);n!==r&&(null!=n&&delete this._byId[n],null!=r&&(this._byId[r]=t))}this.trigger.apply(this,arguments)}}});var M={forEach:3,each:3,map:3,collect:3,reduce:4,foldl:4,inject:4,reduceRight:4,foldr:4,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3};c(s,M,"models");var g=t.View=function(t){this.cid=e.uniqueId("view"),e.extend(this,e.pick(t,j)),this._ensureElement(),this.initialize.apply(this,arguments)},E=/^(\S+)\s*(.*)$/,j=["model","collection","el","id","attributes","className","tagName","events"];e.extend(g.prototype,n,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(e){return this.undelegateEvents(),this._setElement(e),this.delegateEvents(),this},_setElement:function(e){this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0]},delegateEvents:function(t){if(t||(t=e.result(this,"events")),!t)return this;this.undelegateEvents();for(var r in t){var n=t[r];if(e.isFunction(n)||(n=this[n]),n){var i=r.match(E);this.delegate(i[1],i[2],e.bind(n,this))}}return this},delegate:function(e,t,n){return this.$el.on(e+".delegateEvents"+this.cid,t,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(e,t,n){return this.$el.off(e+".delegateEvents"+this.cid,t,n),this},_createElement:function(e){return document.createElement(e)},_ensureElement:function(){if(this.el)this.setElement(e.result(this,"el"));else{var t=e.extend({},e.result(this,"attributes"));this.id&&(t.id=e.result(this,"id")),this.className&&(t["class"]=e.result(this,"className")),this.setElement(this._createElement(e.result(this,"tagName"))),this._setAttributes(t)}},_setAttributes:function(e){this.$el.attr(e)}}),t.sync=function(a,o,n){var i=N[a];e.defaults(n||(n={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var r={type:i,dataType:"json"};if(n.url||(r.url=e.result(o,"url")||p()),null!=n.data||!o||"create"!==a&&"update"!==a&&"patch"!==a||(r.contentType="application/json",r.data=JSON.stringify(n.attrs||o.toJSON(n))),n.emulateJSON&&(r.contentType="application/x-www-form-urlencoded",r.data=r.data?{model:r.data}:{}),n.emulateHTTP&&("PUT"===i||"DELETE"===i||"PATCH"===i)){r.type="POST",n.emulateJSON&&(r.data._method=i);var s=n.beforeSend;n.beforeSend=function(e){return e.setRequestHeader("X-HTTP-Method-Override",i),s?s.apply(this,arguments):void 0}}"GET"===r.type||n.emulateJSON||(r.processData=!1);var u=n.error;n.error=function(r,e,t){n.textStatus=e,n.errorThrown=t,u&&u.call(n.context,r,e,t)};var l=n.xhr=t.ajax(e.extend(r,n));return o.trigger("request",o,l,n),l};var N={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var h=t.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},b=/\((.*?)\)/g,D=/(\(\?)?:\w+/g,I=/\*\w+/g,O=/[\-{}\[\]+?.,\\\^$|#\s]/g;e.extend(h.prototype,n,{initialize:function(){},route:function(i,n,o){e.isRegExp(i)||(i=this._routeToRegExp(i)),e.isFunction(n)&&(o=n,n=""),o||(o=this[n]);var r=this;return t.history.route(i,function(a){var e=r._extractParameters(i,a);r.execute(o,e,n)!==!1&&(r.trigger.apply(r,["route:"+n].concat(e)),r.trigger("route",n,e),t.history.trigger("route",r,n,e))}),this},execute:function(e,t,n){e&&e.apply(this,t)},navigate:function(e,n){return t.history.navigate(e,n),this},_bindRoutes:function(){if(this.routes){this.routes=e.result(this,"routes");for(var t,n=e.keys(this.routes);null!=(t=n.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(e){return e=e.replace(O,"\\$&").replace(b,"(?:$1)?").replace(D,function(e,t){return t?e:"([^/?]+)"}).replace(I,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(n,r){var t=n.exec(r).slice(1);return e.map(t,function(e,n){return n===t.length-1?e||null:e?decodeURIComponent(e):null})}});var r=t.History=function(){this.handlers=[],this.checkUrl=e.bind(this.checkUrl,this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},$=/^[#\/]|\s+$/g,L=/^\/+|\/+$/g,R=/#.*$/;r.started=!1,e.extend(r.prototype,n,{interval:50,atRoot:function(){var e=this.location.pathname.replace(/[^\/]$/,"$&/");return e===this.root&&!this.getSearch()},matchRoot:function(){var e=this.decodeFragment(this.location.pathname),t=e.slice(0,this.root.length-1)+"/";return t===this.root},decodeFragment:function(e){return decodeURI(e.replace(/%25/g,"%2525"))},getSearch:function(){var e=this.location.href.replace(/#.*/,"").match(/\?.+/);return e?e[0]:""},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getPath:function(){var e=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===e.charAt(0)?e.slice(1):e},getFragment:function(e){return null==e&&(e=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),e.replace($,"")},start:function(o){if(r.started)throw new Error("Backbone.history has already been started");if(r.started=!0,this.options=e.extend({root:"/"},this.options,o),
  6. this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(L,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var a=this.root.slice(0,-1)||"/";return this.location.replace(a+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var n=document.body,t=n.insertBefore(this.iframe,n.firstChild).contentWindow;t.document.open(),t.document.close(),t.location.hash="#"+this.fragment}var i=window.addEventListener||function(e,t){return attachEvent("on"+e,t)};return this._usePushState?i("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?i("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.options.silent?void 0:this.loadUrl()},stop:function(){var e=window.removeEventListener||function(e,t){return detachEvent("on"+e,t)};this._usePushState?e("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&e("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),r.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(t){var e=this.getFragment();return e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e===this.fragment?!1:(this.iframe&&this.navigate(e),void this.loadUrl())},loadUrl:function(t){return this.matchRoot()?(t=this.fragment=this.getFragment(t),e.some(this.handlers,function(e){return e.route.test(t)?(e.callback(t),!0):void 0})):!1},navigate:function(e,t){if(!r.started)return!1;t&&t!==!0||(t={trigger:!!t}),e=this.getFragment(e||"");var n=this.root;(""===e||"?"===e.charAt(0))&&(n=n.slice(0,-1)||"/");var o=n+e;if(e=this.decodeFragment(e.replace(R,"")),this.fragment!==e){if(this.fragment=e,this._usePushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,o);else{if(!this._wantsHashChange)return this.location.assign(o);if(this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getHash(this.iframe.contentWindow)){var i=this.iframe.contentWindow;t.replace||(i.document.open(),i.document.close()),this._updateHash(i.location,e,t.replace)}}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){if(n){var r=e.href.replace(/(javascript:|#).*$/,"");e.replace(r+"#"+t)}else e.hash="#"+t}}),t.history=new r;var P=function(n,o){var t,r=this;t=n&&e.has(n,"constructor")?n.constructor:function(){return r.apply(this,arguments)},e.extend(t,r,o);var i=function(){this.constructor=t};return i.prototype=r.prototype,t.prototype=new i,n&&e.extend(t.prototype,n),t.__super__=r.prototype,t};o.extend=s.extend=h.extend=g.extend=r.extend=P;var p=function(){throw new Error('A "url" property or function must be specified')},a=function(t,e){var n=e.error;e.error=function(r){n&&n.call(e.context,t,r,e),t.trigger("error",t,r,e)}};return t}),Function.prototype.bind&&/^object$|^function$/.test(typeof console)&&"object"==typeof console.log&&"function"==typeof window.addEventListener&&(["assert","clear","dir","error","info","log","profile","profileEnd","warn"].forEach(function(e){console[e]=this.call(console[e],console)},Function.prototype.bind),["_exception","count","debug","dirxml","group","groupCollapsed","groupEnd","table","time","timeEnd","timeline","timelineEnd","timeStamp","trace"].forEach(function(e){console[e]=console.log})),function(t,e){"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):window[t]=e()}("log",function(){var e,t=navigator.userAgent,n=function(){var e=/Windows\sNT\s(\d+\.\d+)/;return"undefined"!=typeof console&&console.log&&/MSIE\s(\d+)/.test(t)&&e.test(t)&&parseFloat(e.exec(t)[1])>=6.1?!0:!1}(),s=function(){var e=Function.prototype.bind;return(!e||e&&"undefined"==typeof window.addEventListener)&&"object"==typeof console&&"object"==typeof console.log}(),i=!n&&!s&&/Trident\//.test(t),c=n||window.console&&"function"==typeof console.log,a=0,r={label:"Log:",collapsed:!0},u=function(){!function(t,i,n,o,r,c,s,u,a,l,e){t.getElementById(r)||(e=t[i+"NS"]&&t.documentElement.namespaceURI,e=e?t[i+"NS"](e,"script"):t[i]("script"),e[n]("id",r),e[n]("src",a+s+l),e[n](r,c),(t[o]("head")[0]||t[o]("body")[0]).appendChild(e),e=new Image,e[n]("src",a+u))}(document,"createElement","setAttribute","getElementsByTagName","FirebugLite","4","firebug-lite.js","releases/lite/latest/skin/xp/sprite.png","https://getfirebug.com/","#startOpened")},l=function(t){var e=t.split("\n")[2];return e=e.indexOf(" (")>=0?e.split(" (")[1].substring(0,e.length-1):e.split("at ")[1],e="@"+e.substr(e.lastIndexOf("/")+1)},o=function(e){var r,t,n;if(null===e)return"null";if(/function|undefined|string|boolean|number/.test(typeof e))return typeof e;if("object"==typeof e)for(r=Object.prototype.toString.call(e),t=["Math","ErrorEvent","Error","Date","RegExp","Event","Array"],n=t.length;n--;)return r==="[object "+t[n]+"]"?t[n].toLowerCase():"object"==typeof HTMLElement&&e instanceof HTMLElement?"element":"string"==typeof e.nodeName&&1===e.nodeType?"element":"object"==typeof Node&&e instanceof Node?"node":"number"==typeof e.nodeType&&"string"==typeof e.nodeName?"node":/^\[object (HTMLCollection|NodeList|Object)\]$/.test(r)&&"number"==typeof e.length&&"undefined"!=typeof e.item&&(0===e.length||"object"==typeof e[0]&&e[0].nodeType>0)?"nodelist":"object";return"unknown"};return e=function(){var c,r,t=arguments,f=Array.prototype.slice.call(t),p=n||window.console&&"function"==typeof console.log;if(e.history.push(arguments),p){if(e.options.group&&(e.options.group.collapsed?console.groupCollapsed(e.options.group.label):console.group(e.options.group.label)),e.options.lineNumber&&(c=new Error,c.fileName&&c.lineNumber?f.push("@"+c.fileName.substr(c.fileName.lastIndexOf("/")+1)+":"+c.lineNumber+":1"):c.stack&&f.push(l(c.stack))),e.detailPrint&&e.needsDetailPrint)for(console.log("-----------------"),t=e.detailPrint(t),r=0;r<t.length;)console.log(t[r]),r++;else if(1===f.length&&"string"==typeof f[0])console.log(f.toString());else if(i)for(r=0;r<t.length;)i&&"object"===o(t[r])?console.dir(t[r]):console.log(t[r]),r++;else console.log(f);e.options.group&&console.groupEnd()}else if(s)if(e.detailPrint)for(t=e.detailPrint(t),t.unshift("-----------------"),r=0;r<t.length;)Function.prototype.call.call(console.log,console,Array.prototype.slice.call([t[r]])),r++;else Function.prototype.call.call(console.log,console,Array.prototype.slice.call(t));else document.getElementById("FirebugLite")?20>a?(setTimeout(function(){window.log.apply(window,t)},500),a++):a=0:(u(),setTimeout(function(){window.log.apply(window,t)},3e3),e.needsDetailPrint=!1)},e.history=[],e.options={lineNumber:!0,group:!1},i&&!e.options.group&&(e.options.group=r),e.settings=function(t){t&&"object"===o(t)&&(c&&console.group&&("boolean"==typeof t.group?t.group?e.options.group=r:e.options.group=!1:"object"===o(t.group)&&(e.options.group=r,"undefined"!=typeof t.group.collapsed&&(e.options.group.collapsed=!!t.group.collapsed),"string"==typeof t.group.label&&(e.options.group.label=t.group.label))),"undefined"!=typeof t.lineNumber&&(e.options.lineNumber=!!t.lineNumber))},e}),function(t){"use strict";var n={developerMode:!0,events:new e,init:function(){},proxy:function(e,t){return function(){if(n.developerMode!==!1)return e.apply(t,arguments);try{return e.apply(t,arguments)}catch(r){}}},createCookie:function(n,r,t){if(t){var e=new Date;e.setTime(e.getTime()+24*t*60*60*1e3);var i="; expires="+e.toGMTString()}else var i="";document.cookie=n+"="+r+i+"; path=/"},getCookie:function(n){if(document.cookie.length>0){var e=document.cookie.indexOf(n+"=");if(-1!=e){e=e+n.length+1;var t=document.cookie.indexOf(";",e);return-1==t&&(t=document.cookie.length),unescape(document.cookie.substring(e,t))}}return""},getParentUrl:function(){var t=parent!==window,e=null;return t&&(e=document.referrer),e}};t.Application=$.extend(n,t.Application),t.t=$.noop}(window),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){var r=[],a=e(document),i=navigator.userAgent.toLowerCase(),o=e(window),n=[],t={ieQuirks:null,msie:/msie/.test(i)&&!/opera/.test(i),opera:/opera/.test(i)};t.ie6=t.msie&&/msie 6./.test(i)&&"object"!=typeof window.XMLHttpRequest,t.ie7=t.msie&&/msie 7.0/.test(i),e.modal=function(t,n){return e.modal.impl.init(t,n)},e.modal.close=function(){e.modal.impl.close()},e.modal.focus=function(t){e.modal.impl.focus(t)},e.modal.setContainerDimensions=function(){e.modal.impl.setContainerDimensions()},e.modal.setPosition=function(){e.modal.impl.setPosition()},e.modal.update=function(t,n){e.modal.impl.update(t,n)},e.fn.modal=function(t){return e.modal.impl.init(this,t)},e.modal.defaults={appendTo:"body",focus:!0,opacity:50,overlayId:"simplemodal-overlay",overlayCss:{},containerId:"simplemodal-container",containerCss:{},dataId:"simplemodal-data",dataCss:{},minHeight:null,minWidth:null,maxHeight:null,maxWidth:null,autoResize:!1,autoPosition:!0,zIndex:1e3,close:!0,closeHTML:'<a class="modalCloseImg" title="Close"></a>',closeClass:"simplemodal-close",escClose:!0,overlayClose:!1,fixed:!0,position:null,persist:!1,modal:!0,onOpen:null,onShow:null,onClose:null},e.modal.impl={d:{},init:function(r,i){var n=this;if(n.d.data)return!1;if(t.ieQuirks=t.msie&&!e.support.boxModel,n.o=e.extend({},e.modal.defaults,i),n.zIndex=n.o.zIndex,n.occb=!1,"object"==typeof r)r=r instanceof e?r:e(r),n.d.placeholder=!1,r.parent().parent().size()>0&&(r.before(e("<span></span>").attr("id","simplemodal-placeholder").css({display:"none"})),n.d.placeholder=!0,n.display=r.css("display"),n.o.persist||(n.d.orig=r.clone(!0)));else{if("string"!=typeof r&&"number"!=typeof r)return alert("SimpleModal Error: Unsupported data type: "+typeof r),n;r=e("<div></div>").html(r)}return n.create(r),r=null,n.open(),e.isFunction(n.o.onShow)&&n.o.onShow.apply(n,[n.d]),n},create:function(o){var i=this;i.getDimensions(),i.o.modal&&t.ie6&&(i.d.iframe=e('<iframe src="javascript:false;"></iframe>').css(e.extend(i.o.iframeCss,{display:"none",opacity:0,position:"fixed",height:n[0],width:n[1],zIndex:i.o.zIndex,top:0,left:0})).appendTo(i.o.appendTo)),i.d.overlay=e("<div></div>").attr("id",i.o.overlayId).addClass("simplemodal-overlay").css(e.extend(i.o.overlayCss,{display:"none",opacity:i.o.opacity/100,height:i.o.modal?r[0]:0,width:i.o.modal?r[1]:0,position:"fixed",left:0,top:0,zIndex:i.o.zIndex+1})).appendTo(i.o.appendTo),i.d.container=e("<div></div>").attr("id",i.o.containerId).addClass("simplemodal-container").css(e.extend({position:i.o.fixed?"fixed":"absolute"},i.o.containerCss,{display:"none",zIndex:i.o.zIndex+2})).append(i.o.close&&i.o.closeHTML?e(i.o.closeHTML).addClass(i.o.closeClass):"").appendTo(i.o.appendTo),i.d.wrap=e("<div></div>").attr("tabIndex",-1).addClass("simplemodal-wrap").css({height:"100%",outline:0,width:"100%"}).appendTo(i.d.container),i.d.data=o.attr("id",o.attr("id")||i.o.dataId).addClass("simplemodal-data").css(e.extend(i.o.dataCss,{display:"none"})).appendTo("body"),o=null,i.setContainerDimensions(),i.d.data.appendTo(i.d.wrap),(t.ie6||t.ieQuirks)&&i.fixIE()},bindEvents:function(){var i=this;e("."+i.o.closeClass).bind("click.simplemodal",function(e){e.preventDefault(),i.close()}),i.o.modal&&i.o.close&&i.o.overlayClose&&i.d.overlay.bind("click.simplemodal",function(e){e.preventDefault(),i.close()}),a.bind("keydown.simplemodal",function(e){i.o.modal&&9===e.keyCode?i.watchTab(e):i.o.close&&i.o.escClose&&27===e.keyCode&&(e.preventDefault(),i.close())}),o.bind("resize.simplemodal orientationchange.simplemodal",function(){i.getDimensions(),i.o.autoResize?i.setContainerDimensions():i.o.autoPosition&&i.setPosition(),t.ie6||t.ieQuirks?i.fixIE():i.o.modal&&(i.d.iframe&&i.d.iframe.css({height:n[0],width:n[1]}),i.d.overlay.css({height:r[0],width:r[1]}))})},unbindEvents:function(){e("."+this.o.closeClass).unbind("click.simplemodal"),a.unbind("keydown.simplemodal"),o.unbind(".simplemodal"),this.d.overlay.unbind("click.simplemodal")},fixIE:function(){},focus:function(t){var n=this,i=t&&-1!==e.inArray(t,["first","last"])?t:"first",r=e(":input:enabled:visible:"+i,n.d.wrap);setTimeout(function(){r.length>0?r.focus():n.d.wrap.focus()},10)},getDimensions:function(){var e="undefined"==typeof window.innerHeight?o.height():window.innerHeight;r=[a.height(),a.width()],n=[e,o.width()]},getVal:function(e,t){return e?"number"==typeof e?e:"auto"===e?0:e.indexOf("%")>0?parseInt(e.replace(/%/,""))/100*("h"===t?n[0]:n[1]):parseInt(e.replace(/px/,"")):null},update:function(t,n){var e=this;return e.d.data?(conosle.log(t,n),e.d.origHeight=e.getVal(t,"h"),e.d.origWidth=e.getVal(n,"w"),e.d.data.hide(),t&&e.d.container.css("height",t),n&&e.d.container.css("width",n),e.setContainerDimensions(),e.d.data.show(),e.o.focus&&e.focus(),e.unbindEvents(),void e.bindEvents()):!1},setContainerDimensions:function(){var e=this,d=t.ie6||t.ie7,r=e.d.origHeight?e.d.origHeight:t.opera?e.d.container.height():e.getVal(d?e.d.container[0].currentStyle.height:e.d.container.css("height"),"h"),i=e.d.origWidth?e.d.origWidth:t.opera?e.d.container.width():e.getVal(d?e.d.container[0].currentStyle.width:e.d.container.css("width"),"w"),u=e.d.data.outerHeight(!0),s=e.d.data.outerWidth(!0);e.d.origHeight=e.d.origHeight||r,e.d.origWidth=e.d.origWidth||i;var p=e.o.maxHeight?e.getVal(e.o.maxHeight,"h"):null,f=e.o.maxWidth?e.getVal(e.o.maxWidth,"w"):null,l=p&&p<n[0]?p:n[0],c=f&&f<n[1]?f:n[1],a=e.o.minHeight?e.getVal(e.o.minHeight,"h"):"auto";r=r?e.o.autoResize&&r>l?l:a>r?a:r:u?u>l?l:e.o.minHeight&&"auto"!==a&&a>u?a:u:a;var o=e.o.minWidth?e.getVal(e.o.minWidth,"w"):"auto";i=i?e.o.autoResize&&i>c?c:o>i?o:i:s?s>c?c:e.o.minWidth&&"auto"!==o&&o>s?o:s:o,e.d.container.css({height:r,width:i}),e.d.wrap.css({overflow:u>r||s>i?"auto":"visible"}),e.o.autoPosition&&e.setPosition()},setPosition:function(){var t,r,e=this,i=n[0]/2-e.d.container.outerHeight(!0)/2,a=n[1]/2-e.d.container.outerWidth(!0)/2,s="fixed"!==e.d.container.css("position")?o.scrollTop():0;e.o.position&&"[object Array]"===Object.prototype.toString.call(e.o.position)?(t=s+(e.o.position[0]||i),r=e.o.position[1]||a):(t=s+i,r=a),e.d.container.css({left:r,top:t})},watchTab:function(t){var n=this;if(e(t.target).parents(".simplemodal-container").length>0){if(n.inputs=e(":input:enabled:visible:first, :input:enabled:visible:last",n.d.data[0]),!t.shiftKey&&t.target===n.inputs[n.inputs.length-1]||t.shiftKey&&t.target===n.inputs[0]||0===n.inputs.length){t.preventDefault();var r=t.shiftKey?"last":"first";n.focus(r)}}else t.preventDefault(),n.focus()},open:function(){var t=this;t.d.iframe&&t.d.iframe.show(),e.isFunction(t.o.onOpen)?t.o.onOpen.apply(t,[t.d]):(t.d.overlay.show(),t.d.container.show(),t.d.data.show()),t.o.focus&&t.focus(),t.bindEvents()},close:function(){var t=this;if(!t.d.data)return!1;if(t.unbindEvents(),e.isFunction(t.o.onClose)&&!t.occb)t.occb=!0,t.o.onClose.apply(t,[t.d]);else{if(t.d.placeholder){var n=e("#simplemodal-placeholder");t.o.persist?n.replaceWith(t.d.data.removeClass("simplemodal-data").css("display",t.display)):(t.d.data.hide().remove(),n.replaceWith(t.d.orig))}else t.d.data.hide().remove();t.d.container.hide().remove(),t.d.overlay.hide(),t.d.iframe&&t.d.iframe.hide().remove(),t.d.overlay.remove(),t.d={}}}}}),function(e){function t(e,t){return"function"==typeof e?e.call(t):e}function r(e){for(;e=e.parentNode;)if(e==document)return!0;return!1}function n(t,n){this.$element=e(t),this.options=n,this.enabled=!0,this.fixTitle()}n.prototype={show:function(){var u=this.getTitle();if(u&&this.enabled){var r=this.tip();r.find(".tipsy-inner")[this.options.html?"html":"text"](u),r[0].className="tipsy",r.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);var i,n=e.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight}),a=r[0].offsetWidth,s=r[0].offsetHeight,o=t(this.options.gravity,this.$element[0]);switch(o.charAt(0)){case"n":i={top:n.top+n.height+this.options.offset,left:n.left+n.width/2-a/2};break;case"s":i={top:n.top-s-this.options.offset,left:n.left+n.width/2-a/2};break;case"e":i={top:n.top+n.height/2-s/2,left:n.left-a-this.options.offset};break;case"w":i={top:n.top+n.height/2-s/2,left:n.left+n.width+this.options.offset}}2==o.length&&("w"==o.charAt(1)?i.left=n.left+n.width/2-15:i.left=n.left+n.width/2-a+15),r.css(i).addClass("tipsy-"+o),r.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+o.charAt(0),this.options.className&&r.addClass(t(this.options.className,this.$element[0])),this.options.fade?r.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):r.css({visibility:"visible",opacity:this.options.opacity})}},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){e(this).remove()}):this.tip().remove()},fixTitle:function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("original-title"))&&e.attr("original-title",e.attr("title")||"").removeAttr("title")},getTitle:function(){var t,n=this.$element,e=this.options;this.fixTitle();var t,e=this.options;return"string"==typeof e.title?t=n.attr("title"==e.title?"original-title":e.title):"function"==typeof e.title&&(t=e.title.call(n[0])),t=(""+t).replace(/(^\s*|\s*$)/,""),t||e.fallback},tip:function(){return this.$tip||(this.$tip=e('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>'),this.$tip.data("tipsy-pointee",this.$element[0])),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},e.fn.tipsy=function(t){function r(r){var i=e.data(r,"tipsy");return i||(i=new n(r,e.fn.tipsy.elementOptions(r,t)),e.data(r,"tipsy",i)),i}function a(){var e=r(this);e.hoverState="in",0==t.delayIn?e.show():(e.fixTitle(),setTimeout(function(){"in"==e.hoverState&&e.show()},t.delayIn))}function s(){var e=r(this);e.hoverState="out",0==t.delayOut?e.hide():setTimeout(function(){"out"==e.hoverState&&e.hide()},t.delayOut)}if(t===!0)return this.data("tipsy");if("string"==typeof t){var i=this.data("tipsy");return i&&i[t](),this}if(t=e.extend({},e.fn.tipsy.defaults,t),t.live||this.each(function(){r(this)}),"manual"!=t.trigger){var o=t.live?"live":"bind",u="hover"==t.trigger?"mouseenter":"focus",l="hover"==t.trigger?"mouseleave":"blur";this[o](u,a)[o](l,s)}return this},e.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:.8,title:"title",trigger:"hover"},e.fn.tipsy.revalidate=function(){e(".tipsy").each(function(){var t=e.data(this,"tipsy-pointee");t&&r(t)||e(this).remove()})},e.fn.tipsy.elementOptions=function(n,t){return e.metadata?e.extend({},t,e(n).metadata()):t},e.fn.tipsy.autoNS=function(){return e(this).offset().top>e(document).scrollTop()+e(window).height()/2?"s":"n"},e.fn.tipsy.autoWE=function(){return e(this).offset().left>e(document).scrollLeft()+e(window).width()/2?"e":"w"},e.fn.tipsy.autoBounds=function(t,n){return function(){var r={ns:n[0],ew:n.length>1?n[1]:!1},o=e(document).scrollTop()+t,a=e(document).scrollLeft()+t,i=e(this);return i.offset().top<o&&(r.ns="n"),i.offset().left<a&&(r.ew="w"),e(window).width()+e(document).scrollLeft()-i.offset().left<t&&(r.ew="e"),e(window).height()+e(document).scrollTop()-i.offset().top<t&&(r.ns="s"),r.ns+(r.ew?r.ew:"")}}}(jQuery),function(t){"use strict";function e(){}e.prototype={post:function(n,t,e){return e=e||{},t=t||{},e.type="POST",this._request(n,t,e)},get:function(n,t,e){return e=e||{},t=t||{},e.type="GET",this._request(n,t,e)},_request:function(n,t,i){t.ajax=!0,Application.settings.app_signed_request&&(t.app_signed_request=Application.settings.app_signed_request),Application.settings.fb_signed_request&&(t.signed_request=Application.settings.fb_signed_request),Application.settings.fb_auth_expired&&(t.fb_auth_expired=Application.settings.fb_auth_expired),Application.settings.t_1&&(t.t_1=Application.settings.t_1,Application.settings.t_2&&(t.t_2=Application.settings.t_2)),0!==n.indexOf("/")&&(n="/"+n);var o={dataType:"json",url:Application.settings.base_request_url+n,data:t,track:!0,check_status:!0,track_timings:!1},a=(new Date).getTime(),r=$.extend(o,i),e=$.ajax(r),s=this;return e.done(this._set_app_signed_request),e.done(this._update_user),e.done(this._check_app_version),e.done(this._set_page_title),e.done(this._check_event_notification),e.done(this._fire_application_event),e.done(this._check_fb_auth_expired),e.done(this._update_game_settings),1==r.check_status&&e.fail(this._check_status),1==r.track_timings&&e.done(function(){if("undefined"!=typeof Application.Helpers.GoogleAnalyticsHelper){var e={timingLabel:n,start_time:a};"undefined"!=typeof t.templates&&(e.timingCategory="templates",$.isArray(t.templates)&&(e.timingLabel=e.timingLabel+t.templates.join(","))),Application.Helpers.GoogleAnalyticsHelper.track_user_timing(e)}}),e.done(this._track_pixel),1==r.track&&e.done(function(e){s._track_pageview(n)}),e},_fire_application_event:function(e){Application.events.publish("ajax.request",e)},_check_event_notification:function(e){if("undefined"!=typeof Application.Views.AchievementNotificationView){if(!Application.AchievementNotification){var n={web:!0};"undefined"!=typeof FreeRider&&(n.web=!1),Application.AchievementNotification=new Application.Views.AchievementNotificationView(n)}if("undefined"!=typeof e.data&&("undefined"!=typeof e.data.achievements_earned&&$.each(e.data.achievements_earned,function(t,e){Application.AchievementNotification.notify(e)}),"undefined"!=typeof e.data.campaign_events&&$.each(e.data.campaign_events,function(t,e){e.campaign_event=!0,Application.AchievementNotification.notify(e)}),"undefined"!=typeof e.data.leaderboard_passed_events&&$.each(e.data.leaderboard_passed_events,function(t,e){Application.AchievementNotification.notify(e)}),"undefined"!=typeof e.data.inventory_events&&$.each(e.data.inventory_events,function(t,e){Application.AchievementNotification.notify(e)}),"undefined"!=typeof e.data.rewarded_video_event))if("undefined"!=typeof Application.settings.rewarded_ads.hyprmx&&Application.settings.rewarded_ads.hyprmx)e.data.rewarded_video_event.ad_network="hyprmx",Application.AchievementNotification.notify(e.data.rewarded_video_event);else if("supersonic"===e.data.rewarded_video_event.ad_network)try{ssa_json={applicationUserId:Application.User.get("u_id"),applicationKey:e.data.rewarded_video_event.app_key,onCampaignsReady:function(t){Application.AchievementNotification.notify(e.data.rewarded_video_event)},onCampaignsDone:function(){"undefined"!=typeof Application.Helpers.GoogleAnalyticsHelper&&Application.Helpers.GoogleAnalyticsHelper.track_event({category:"rewarded-video",action:"rewarded-video-prompt-supersonic-done",label:"supersonic-done",non_interaction:!0})},forceHttps:1,pagination:!1,applicationUserAgeGroup:0,onCampaignOpen:function(e){"undefined"!=typeof Application.Helpers.GoogleAnalyticsHelper&&Application.Helpers.GoogleAnalyticsHelper.track_event({category:"rewarded-video",action:"rewarded-video-prompt-supersonic-open",label:"supersonic-open",non_interaction:!0})},onCampaignClose:function(e){"undefined"!=typeof Application.Helpers.GoogleAnalyticsHelper&&Application.Helpers.GoogleAnalyticsHelper.track_event({category:"rewarded-video",action:"rewarded-video-prompt-supersonic-close",label:"supersonic-close",non_interaction:!0})},onCampaignCompleted:function(e){"undefined"!=typeof Application.Helpers.AjaxHelper&&Application.Helpers.AjaxHelper.get("/callbacks/reload_user_stats",{},{check_status:!1,track:!1}),"undefined"!=typeof Application.Helpers.GoogleAnalyticsHelper&&Application.Helpers.GoogleAnalyticsHelper.track_event({category:"rewarded-video",action:"rewarded-video-prompt-supersonic-completed",label:"supersonic-completed",non_interaction:!0})}};var t=Application.User.get("sex");("male"==t||"female"==t)&&(ssa_json.applicationUserGender=t),function(t,n){var e=t.createElement(n),r=t.getElementsByTagName(n)[0];e.async=!0,e.src=("https:"!=location.protocol?"http://jsd.supersonicads.com":"https://a248.e.akamai.net/ssastatic.s3.amazonaws.com")+"/inlineDelivery/delivery.min.gz.js",r.parentNode.insertBefore(e,r)}(document,"script")}catch(r){}}},_check_status:function(t){var e=t.status;404===e&&Application.router.do_route(Application.settings.base_platform_url+"/page-not-found"),500===e&&Application.router.do_route(Application.settings.base_platform_url+"/error")},_set_app_signed_request:function(e){"undefined"!=typeof e.app_signed_request&&(Application.settings.app_signed_request=e.app_signed_request)},_set_fb_signed_request:function(e){"undefined"!=typeof e.fb_signed_request&&(Application.settings.fb_signed_request=e.fb_signed_request)},_update_game_settings:function(e){e.game_settings&&(GameSettings=_.extend(GameSettings,e.game_settings))},_update_user:function(e){if("undefined"!=typeof e.data&&"undefined"!=typeof e.data.update_user&&e.data.update_user){var t=!1,n=!1;"undefined"!=typeof e.data.user&&(t=e.data.user),"undefined"!=typeof e.data.user_stats&&(n=e.data.user_stats);var r=!1;try{window.parent!==window&&window.parent.Application}catch(i){r=!0}0==r&&window.parent!==window&&window.parent.Application&&window.parent.Application.User?window.parent.Application.User.set_user(t,n):Application.User&&Application.User.set_user(t,n)}},_check_app_version:function(e){"undefined"!=typeof e.app_version&&"undefined"!=typeof Application.settings.app_version&&Application.settings.app_version!=e.app_version&&(Application.router.version_changed=!0)},_check_fb_auth_expired:function(e){"undefined"!=typeof e.fb_auth_expired&&(Application.settings.fb_auth_expired=e.fb_auth_expired)},_set_page_title:function(e){"undefined"!=typeof e.app_title&&(document.title=e.app_title)},_track_pixel:function(e){if("undefined"!=typeof e.kl_px)if($("#kl_px").length)$("#kl_px").attr("src",e.kl_px);else{var t=$('<img name="kl_px" id="kl_px" width="1" height="1" src="'+e.kl_px+'" style="display:none;" />');$("body").append(t)}},_track_pageview:function(e){"undefined"!=typeof Application.Helpers.GoogleAnalyticsHelper&&Application.Helpers.GoogleAnalyticsHelper.track_pageview({page:e})}},t.AjaxHelper=new e}(Application.Helpers=Application.Helpers||{}),function(t){"use strict";function e(){}var n=Application.Helpers.AjaxHelper;e.prototype={cached_templates:{},getTemplates:function(e,i){var t={},r=this,e=e.slice(0);if($.each(e,function(i,n){"undefined"!=typeof r.cached_templates[n]&&(t[n]=r.cached_templates[n],delete e[i])}),"undefined"!=typeof e[0]){var o=n.post("templates/",{templates:e},{track:!1});o.done(function(n){if(1==n.code){var o=n.templates;for(var e in o)Mustache.parse(e),r.cached_templates[e]=o[e],t[e]=o[e]}i(t),n=null})}else i(t)},render:function(t,n,e){return e.base_platform_url=Application.settings.base_platform_url,e.base_platform_external_url=Application.settings.base_platform_url,e.base_platform_short_url=Application.settings.base_platform_short_url,e.base_request_url=Application.settings.base_request_url,e.base_cdn_url=Application.settings.base_cdn_url,e.platform=Application.settings.platform,e.app_signed_request=Application.settings.app_signed_request,e.device=Application.settings.device,e.is_mobile=Application.settings.is_mobile,e.is_xbox=Application.settings.is_xbox,e.dfp_ads_enabled=Application.settings.dfp_ads_enabled,e.is_fb_canvas=Application.settings.is_fb_canvas,e.is_fb_mobile=Application.settings.is_fb_mobile,e.is_web=Application.settings.is_web,e.share_metadata=Application.settings.share_metadata,e.rewarded_ads=Application.settings.rewarded_ads,"undefined"!=typeof Application.User&&(e.user_logged_in=Application.User.is_logged_in(),e.user_logged_in&&(e.user_beginner_pts=Application.settings.user_stats.beginner_pts),e.is_admin=Application.settings.is_admin,e.dfp_ads_enabled&&Application.User.get("plus")&&(e.dfp_ads_enabled=!1)),e.features={friends_enabled:Application.settings.features.friends_enabled},Mustache.render(t,e,n)}},t.TemplateHelper=new e}(Application.Helpers=Application.Helpers||{}),function(t){"use strict";function e(){this.initialize()}e.prototype={loaded:Application.settings.gg_analytics_loaded||!1,is_enabled:Application.settings.gg_analytics_enabled||!1,initialize:function(){0==this.loaded&&this.is_enabled&&this.loadAnalytics()},loadAnalytics:function(){!function(e,i,o,a,t,n,r){e.GoogleAnalyticsObject=t,e[t]=e[t]||function(){(e[t].q=e[t].q||[]).push(arguments)},e[t].l=1*new Date,n=i.createElement(o),r=i.getElementsByTagName(o)[0],n.async=1,n.src=a,r.parentNode.insertBefore(n,r)}(window,document,"script","//www.google-analytics.com/analytics.js","_ga"),_ga("create",Application.settings.gg_analytics_code,Application.settings.app_domain),_ga("send","pageview"),this.loaded=!0},track_pageview:function(e){this.is_enabled&&_ga("send","pageview",e)},set_user_id:function(e){this.is_enabled&&_ga("set","&uid",e)},set_custom:function(e){this.is_enabled&&(e.install_day&&_ga("set","dimension1",e.install_day),e.install_week&&_ga("set","dimension2",e.install_week),e.install_month&&_ga("set","dimension3",e.install_month),e.t1_t2&&_ga("set","dimension4",e.t1_t2),"undefined"!=typeof e.day&&_ga("set","dimension5",e.day.toString()),e.sex&&_ga("set","dimension6",e.sex),"undefined"!=typeof e.friend_cnt&&_ga("set","dimension7",e.friend_cnt.toString()),e.platforms&&_ga("set","dimension8",e.platforms),e.visit_t1_t2&&_ga("set","dimension9",e.visit_t1_t2))},track_user_timing:function(e){var e=$.extend({timingCategory:"ajax",timingVar:"page",timingLabel:""},e);if(this.is_enabled){var t=(new Date).getTime(),n=t-e.start_time;_ga("send","timing",e.timingCategory,e.timingVar,n,e.timingLabel)}},track_event:function(e){var e=$.extend({label:"",value:0,non_interaction:!1},e);this.is_enabled&&_ga("send",{hitType:"event",eventCategory:e.category,eventAction:e.action,eventLabel:String(e.label),eventValue:e.value,nonInteraction:e.non_interaction})}},t.GoogleAnalyticsHelper=new e}(Application.Helpers=Application.Helpers||{}),function(t){"use strict";function e(){this.initialize()}e.prototype={queue:[],loaded:!1,initialize:function(){this.bindAsyncLoading(),this.loadSDK(),this.initAppEvents()},bindAsyncLoading:function(){var e=this;window.fbAsyncInit=function(){FB.init({appId:Application.settings.fb_app_id,status:!0,cookie:!0,version:Application.settings.fb_graph_v,xfbml:!1}),e.loaded=!0,e.checkQueue()}},loadSDK:function(){!function(t,n,r){var e,i=t.getElementsByTagName(n)[0];t.getElementById(r)||(e=t.createElement(n),e.id=r,e.src="//connect.facebook.net/en_US/sdk.js",i.parentNode.insertBefore(e,i))}(document,"script","facebook-jssdk")},initAppEvents:function(){this.isAppEventsEnabled()&&this.exec(["AppEvents","activateApp"],[])},logCustomAppEvent:function(t,e){e=$.extend({value:null,params:{}},e),this.isAppEventsEnabled()&&this.exec(["AppEvents","logEvent"],[t,e.value,e.params])},isAppEventsEnabled:function(){return Application.settings.is_fb_canvas||Application.settings.is_fb_mobile},exec:function(e,t){if(this.loaded)try{if(e instanceof Array){for(var n=FB,r=0;r<e.length;r++)n=n[e[r]];n.apply(null,t)}else FB[e].apply(null,t)}catch(i){}else this.queue.push({method:e,args:t})},checkQueue:function(){for(var e=this.queue;e.length>0;){var t=e.shift();try{this.exec(t.method,t.args)}catch(n){console.log(n.message);
  7. }}},inviteFriends:function(){var e={method:"apprequests",message:"Play Free Rider HD with me!",filters:["app_non_users"],frictionlessRequests:!0};this.exec("ui",[e])},getPageInfo:function(e){this.exec(["Canvas","getPageInfo"],[e])},fbPaymentsCallback:function(e,t){e.msg&&alert(e.msg)}},t.FacebookHelper=new e}(Application.Helpers=Application.Helpers||{}),function(t){"use strict";var e=Application.Helpers.TemplateHelper,n=Application.Helpers.AjaxHelper,r=Application.Helpers.GoogleAnalyticsHelper,i=["campaign/campaign_skip_modal"],o=Backbone.View.extend({initialize:function(n){var t=this;this.options=n,Application.events.publish("scrollTo",{x:0,y:0}),this._getTemplates(i,function(n){var r=n["campaign/campaign_skip_modal"],i=e.render(r,{},t.options);$("body").prepend(i),t.setElement($("#campaign-skip-modal"))})},events:{"click #campaign-skip-modal-close":"close_modal","click #campaign-skip-modal-cancel":"close_modal","click #campaign-skip-modal-skip":"skip_track"},skip_track:function(){var e=this,t=(this.$el.addClass("loading"),n.get("track_api/skip_campaign_track/"+this.options.id));t.done(function(t){1==t.result?(e.track_success_event(),e.options.success(t),e.close_modal()):(e.options.fail(t),e.close_modal())}),t.fail(function(){e.close_modal()})},track_success_event:function(){r.track_event({category:"campaign-track",action:"track-skip",label:this.options.id})},close_modal:function(){this.$el.unbind(),this.$el.remove(),this.options.cancel()},_getTemplates:function(t,n){var r=this;e.getTemplates(t,function(e){r.templates=e,n(e)})}});t.CampaignSkipModal=o}(Application.Views=Application.Views||{}),function(r){"use strict";var e=Application.Helpers.TemplateHelper,t=Application.Helpers.AjaxHelper,n=Application.Helpers.GoogleAnalyticsHelper,i=["campaign/campaign_unlock_modal"],o=Backbone.View.extend({initialize:function(e){var t=this;this.options=e,this.render(e,function(){t.get_requirements()})},events:{"click #campaign-unlock-modal-close":"close_modal","click #campaign-unlock-modal-cancel":"cancel","click #campaign-unlock-modal-action":"unlock_campaign","click .add-friends":"add_friends"},add_friends:function(){var e=Application.User.get("u_name");Application.router.do_route(Application.settings.base_platform_url+"/u/"+e+"/friends"),this.close_modal()},render:function(n,t){var r=this;this._getTemplates(i,function(o){var a=o["campaign/campaign_unlock_modal"],i=e.render(a,{},n);$("#campaign-unlock-modal").length>0?$("#campaign-unlock-modal").replaceWith(i):$("body").prepend(i),r.setElement($("#campaign-unlock-modal")),t&&t()})},get_requirements:function(){var e=this,n=t.get("track_api/get_campaign_requirements/"+this.options.id);n.done(function(t){if(1==t.result){var n=_.extend({},this.options,t.data);e.render(n)}else e.close_modal()})},unlock_campaign:function(){var e=this,n=(this.$el.addClass("loading"),t.get("track_api/unlock_campaign/"+this.options.id));n.done(function(t){1==t.result?(e.track_success_event(),e.options.success(t),e.close_modal()):(e.options.fail(t),e.close_modal())}),n.fail(function(){e.close_modal()})},track_success_event:function(){n.track_event({category:"campaign-track",action:"campaign-unlock",label:this.options.id})},cancel:function(){n.track_event({category:"campaign-track",action:"campaign-unlock-cancel",label:this.options.id}),this.close_modal()},close_modal:function(){this.$el.unbind(),this.$el.remove(),this.options.cancel()},_getTemplates:function(t,n){var r=this;e.getTemplates(t,function(e){r.templates=e,n(e)})}});r.CampaignUnlockModal=o}(Application.Views=Application.Views||{});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement