!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(e,t){var n=[],i=e.document,r=n.slice,o=n.concat,s=n.push,a=n.indexOf,l={},u=l.toString,c=l.hasOwnProperty,d={},h=function(e,t){return new h.fn.init(e,t)},f=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,g=/-([\da-z])/gi,m=function(e,t){return t.toUpperCase()};function v(e){var t=!!e&&"length"in e&&e.length,n=h.type(e);return"function"!==n&&!h.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}h.fn=h.prototype={jquery:"2.2.4",constructor:h,selector:"",length:0,toArray:function(){return r.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:r.call(this)},pushStack:function(e){var t=h.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return h.each(this,e)},map:function(e){return this.pushStack(h.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},h.extend=h.fn.extend=function(){var e,t,n,i,r,o,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||h.isFunction(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],s!==(i=e[t])&&(u&&i&&(h.isPlainObject(i)||(r=h.isArray(i)))?(r?(r=!1,o=n&&h.isArray(n)?n:[]):o=n&&h.isPlainObject(n)?n:{},s[t]=h.extend(u,o,i)):void 0!==i&&(s[t]=i));return s},h.extend({expando:"jQuery"+("2.2.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===h.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!h.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){var t;if("object"!==h.type(e)||e.nodeType||h.isWindow(e))return!1;if(e.constructor&&!c.call(e,"constructor")&&!c.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||c.call(e,t)},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?l[u.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=h.trim(e))&&(1===e.indexOf("use strict")?((t=i.createElement("script")).text=e,i.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(p,"ms-").replace(g,m)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,i=0;if(v(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(f,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(v(Object(e))?h.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:a.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,s=!n;r<o;r++)!t(e[r],r)!==s&&i.push(e[r]);return i},map:function(e,t,n){var i,r,s=0,a=[];if(v(e))for(i=e.length;s<i;s++)null!=(r=t(e[s],s,n))&&a.push(r);else for(s in e)null!=(r=t(e[s],s,n))&&a.push(r);return o.apply([],a)},guid:1,proxy:function(e,t){var n,i,o;if("string"==typeof t&&(n=e[t],t=e,e=n),h.isFunction(e))return i=r.call(arguments,2),(o=function(){return e.apply(t||this,i.concat(r.call(arguments)))}).guid=e.guid=e.guid||h.guid++,o},now:Date.now,support:d}),"function"==typeof Symbol&&(h.fn[Symbol.iterator]=n[Symbol.iterator]),h.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});var y=function(e){var t,n,i,r,o,s,a,l,u,c,d,h,f,p,g,m,v,y,w,b="sizzle"+1*new Date,x=e.document,k=0,S=0,C=oe(),T=oe(),_=oe(),E=function(e,t){return e===t&&(d=!0),0},O=1<<31,D={}.hasOwnProperty,P=[],A=P.pop,M=P.push,N=P.push,F=P.slice,L=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Y="[\\x20\\t\\r\\n\\f]",j="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",H="\\["+Y+"*("+j+")(?:"+Y+"*([*^$|!~]?=)"+Y+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+Y+"*\\]",z=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",R=new RegExp(Y+"+","g"),$=new RegExp("^"+Y+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Y+"+$","g"),q=new RegExp("^"+Y+"*,"+Y+"*"),W=new RegExp("^"+Y+"*([>+~]|"+Y+")"+Y+"*"),V=new RegExp("="+Y+"*([^\\]'\"]*?)"+Y+"*\\]","g"),X=new RegExp(z),B=new RegExp("^"+j+"$"),U={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Y+"*(even|odd|(([+-]|)(\\d*)n|)"+Y+"*(?:([+-]|)"+Y+"*(\\d+)|))"+Y+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+Y+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Y+"*((?:-\\d)?\\d*)"+Y+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+Y+"?|("+Y+")|.)","ig"),ne=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},ie=function(){h()};try{N.apply(P=F.call(x.childNodes),x.childNodes),P[x.childNodes.length].nodeType}catch(e){N={apply:P.length?function(e,t){M.apply(e,F.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function re(e,t,i,r){var o,a,u,c,d,p,v,y,k=t&&t.ownerDocument,S=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==S&&9!==S&&11!==S)return i;if(!r&&((t?t.ownerDocument||t:x)!==f&&h(t),t=t||f,g)){if(11!==S&&(p=K.exec(e)))if(o=p[1]){if(9===S){if(!(u=t.getElementById(o)))return i;if(u.id===o)return i.push(u),i}else if(k&&(u=k.getElementById(o))&&w(t,u)&&u.id===o)return i.push(u),i}else{if(p[2])return N.apply(i,t.getElementsByTagName(e)),i;if((o=p[3])&&n.getElementsByClassName&&t.getElementsByClassName)return N.apply(i,t.getElementsByClassName(o)),i}if(n.qsa&&!_[e+" "]&&(!m||!m.test(e))){if(1!==S)k=t,y=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(ee,"\\$&"):t.setAttribute("id",c=b),a=(v=s(e)).length,d=B.test(c)?"#"+c:"[id='"+c+"']";a--;)v[a]=d+" "+ge(v[a]);y=v.join(","),k=J.test(e)&&fe(t.parentNode)||t}if(y)try{return N.apply(i,k.querySelectorAll(y)),i}catch(e){}finally{c===b&&t.removeAttribute("id")}}}return l(e.replace($,"$1"),t,i,r)}function oe(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function se(e){return e[b]=!0,e}function ae(e){var t=f.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var n=e.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=t}function ue(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||O)-(~e.sourceIndex||O);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ce(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function de(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(e){return se(function(t){return t=+t,se(function(n,i){for(var r,o=e([],n.length,t),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})}function fe(e){return e&&void 0!==e.getElementsByTagName&&e}n=re.support={},o=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},h=re.setDocument=function(e){var t,r,s=e?e.ownerDocument||e:x;return s!==f&&9===s.nodeType&&s.documentElement?(p=(f=s).documentElement,g=!o(f),(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ie,!1):r.attachEvent&&r.attachEvent("onunload",ie)),n.attributes=ae(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ae(function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(f.getElementsByClassName),n.getById=ae(function(e){return p.appendChild(e).id=b,!f.getElementsByName||!f.getElementsByName(b).length}),n.getById?(i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}},i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}}):(delete i.find.ID,i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=Q.test(f.querySelectorAll))&&(ae(function(e){p.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+Y+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+Y+"*(?:value|"+I+")"),e.querySelectorAll("[id~="+b+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||m.push(".#.+[+~]")}),ae(function(e){var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+Y+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=Q.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ae(function(e){n.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),v.push("!=",z)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(p.compareDocumentPosition),w=t||Q.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},E=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e===f||e.ownerDocument===x&&w(x,e)?-1:t===f||t.ownerDocument===x&&w(x,t)?1:c?L(c,e)-L(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!r||!o)return e===f?-1:t===f?1:r?-1:o?1:c?L(c,e)-L(c,t):0;if(r===o)return ue(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ue(s[i],a[i]):s[i]===x?-1:a[i]===x?1:0},f):f},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&h(e),t=t.replace(V,"='$1']"),n.matchesSelector&&g&&!_[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return re(t,f,null,[e]).length>0},re.contains=function(e,t){return(e.ownerDocument||e)!==f&&h(e),w(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==f&&h(e);var r=i.attrHandle[t.toLowerCase()],o=r&&D.call(i.attrHandle,t.toLowerCase())?r(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,i=[],r=0,o=0;if(d=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(E),d){for(;t=e[o++];)t===e[o]&&(r=i.push(o));for(;r--;)e.splice(i[r],1)}return c=null,e},r=re.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},(i=re.selectors={cacheLength:50,createPseudo:se,match:U,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(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===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]||re.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]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return U.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|"+Y+")"+e+"("+Y+"|$)"))&&C(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var r=re.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(R," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,h,f,p,g=o!==s?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!l&&!a,w=!1;if(m){if(o){for(;g;){for(h=t;h=h[g];)if(a?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?m.firstChild:m.lastChild],s&&y){for(w=(f=(u=(c=(d=(h=m)[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===k&&u[1])&&u[2],h=f&&m.childNodes[f];h=++f&&h&&h[g]||(w=f=0)||p.pop();)if(1===h.nodeType&&++w&&h===t){c[e]=[k,f,w];break}}else if(y&&(w=f=(u=(c=(d=(h=t)[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===k&&u[1]),!1===w)for(;(h=++f&&h&&h[g]||(w=f=0)||p.pop())&&((a?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++w||(y&&((c=(d=h[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[k,w]),h!==t)););return(w-=r)===i||w%i==0&&w/i>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,n){for(var i,o=r(e,t),s=o.length;s--;)e[i=L(e,o[s])]=!(n[i]=o[s])}):function(e){return r(e,0,n)}):r}},pseudos:{not:se(function(e){var t=[],n=[],i=a(e.replace($,"$1"));return i[b]?se(function(e,t,n,r){for(var o,s=i(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:se(function(e){return function(t){return re(e,t).length>0}}),contains:se(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}}),lang:se(function(e){return B.test(e||"")||re.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},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,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return G.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:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var i=n<0?n+t:n;--i>=0;)e.push(i);return e}),gt:he(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=i.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=ce(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=de(t);function pe(){}function ge(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function me(e,t,n){var i=t.dir,r=n&&"parentNode"===i,o=S++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||r)return e(t,n,o)}:function(t,n,s){var a,l,u,c=[k,o];if(s){for(;t=t[i];)if((1===t.nodeType||r)&&e(t,n,s))return!0}else for(;t=t[i];)if(1===t.nodeType||r){if((a=(l=(u=t[b]||(t[b]={}))[t.uniqueID]||(u[t.uniqueID]={}))[i])&&a[0]===k&&a[1]===o)return c[2]=a[2];if(l[i]=c,c[2]=e(t,n,s))return!0}}}function ve(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function ye(e,t,n,i,r){for(var o,s=[],a=0,l=e.length,u=null!=t;a<l;a++)(o=e[a])&&(n&&!n(o,i,r)||(s.push(o),u&&t.push(a)));return s}function we(e,t,n,i,r,o){return i&&!i[b]&&(i=we(i)),r&&!r[b]&&(r=we(r,o)),se(function(o,s,a,l){var u,c,d,h=[],f=[],p=s.length,g=o||function(e,t,n){for(var i=0,r=t.length;i<r;i++)re(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),m=!e||!o&&t?g:ye(g,h,e,a,l),v=n?r||(o?e:p||i)?[]:s:m;if(n&&n(m,v,a,l),i)for(u=ye(v,f),i(u,[],a,l),c=u.length;c--;)(d=u[c])&&(v[f[c]]=!(m[f[c]]=d));if(o){if(r||e){if(r){for(u=[],c=v.length;c--;)(d=v[c])&&u.push(m[c]=d);r(null,v=[],u,l)}for(c=v.length;c--;)(d=v[c])&&(u=r?L(o,d):h[c])>-1&&(o[u]=!(s[u]=d))}}else v=ye(v===s?v.splice(p,v.length):v),r?r(null,s,v,l):N.apply(s,v)})}function be(e){for(var t,n,r,o=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],l=s?1:0,c=me(function(e){return e===t},a,!0),d=me(function(e){return L(t,e)>-1},a,!0),h=[function(e,n,i){var r=!s&&(i||n!==u)||((t=n).nodeType?c(e,n,i):d(e,n,i));return t=null,r}];l<o;l++)if(n=i.relative[e[l].type])h=[me(ve(h),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[b]){for(r=++l;r<o&&!i.relative[e[r].type];r++);return we(l>1&&ve(h),l>1&&ge(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace($,"$1"),n,l<r&&be(e.slice(l,r)),r<o&&be(e=e.slice(r)),r<o&&ge(e))}h.push(n)}return ve(h)}return pe.prototype=i.filters=i.pseudos,i.setFilters=new pe,s=re.tokenize=function(e,t){var n,r,o,s,a,l,u,c=T[e+" "];if(c)return t?0:c.slice(0);for(a=e,l=[],u=i.preFilter;a;){n&&!(r=q.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),n=!1,(r=W.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace($," ")}),a=a.slice(n.length));for(s in i.filter)!(r=U[s].exec(a))||u[s]&&!(r=u[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?re.error(e):T(e,l).slice(0)},a=re.compile=function(e,t){var n,r,o,a,l,c,d=[],p=[],m=_[e+" "];if(!m){for(t||(t=s(e)),n=t.length;n--;)(m=be(t[n]))[b]?d.push(m):p.push(m);(m=_(e,(r=p,a=(o=d).length>0,l=r.length>0,c=function(e,t,n,s,c){var d,p,m,v=0,y="0",w=e&&[],b=[],x=u,S=e||l&&i.find.TAG("*",c),C=k+=null==x?1:Math.random()||.1,T=S.length;for(c&&(u=t===f||t||c);y!==T&&null!=(d=S[y]);y++){if(l&&d){for(p=0,t||d.ownerDocument===f||(h(d),n=!g);m=r[p++];)if(m(d,t||f,n)){s.push(d);break}c&&(k=C)}a&&((d=!m&&d)&&v--,e&&w.push(d))}if(v+=y,a&&y!==v){for(p=0;m=o[p++];)m(w,b,t,n);if(e){if(v>0)for(;y--;)w[y]||b[y]||(b[y]=A.call(s));b=ye(b)}N.apply(s,b),c&&!e&&b.length>0&&v+o.length>1&&re.uniqueSort(s)}return c&&(k=C,u=x),w},a?se(c):c))).selector=e}return m},l=re.select=function(e,t,r,o){var l,u,c,d,h,f="function"==typeof e&&e,p=!o&&s(e=f.selector||e);if(r=r||[],1===p.length){if((u=p[0]=p[0].slice(0)).length>2&&"ID"===(c=u[0]).type&&n.getById&&9===t.nodeType&&g&&i.relative[u[1].type]){if(!(t=(i.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return r;f&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(l=U.needsContext.test(e)?0:u.length;l--&&(c=u[l],!i.relative[d=c.type]);)if((h=i.find[d])&&(o=h(c.matches[0].replace(te,ne),J.test(u[0].type)&&fe(t.parentNode)||t))){if(u.splice(l,1),!(e=o.length&&ge(u)))return N.apply(r,o),r;break}}return(f||a(e,p))(o,t,!g,r,!t||J.test(e)&&fe(t.parentNode)||t),r},n.sortStable=b.split("").sort(E).join("")===b,n.detectDuplicates=!!d,h(),n.sortDetached=ae(function(e){return 1&e.compareDocumentPosition(f.createElement("div"))}),ae(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ae(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ae(function(e){return null==e.getAttribute("disabled")})||le(I,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),re}(e);h.find=y,h.expr=y.selectors,h.expr[":"]=h.expr.pseudos,h.uniqueSort=h.unique=y.uniqueSort,h.text=y.getText,h.isXMLDoc=y.isXML,h.contains=y.contains;var w=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&h(e).is(n))break;i.push(e)}return i},b=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},x=h.expr.match.needsContext,k=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,S=/^.[^:#\[\.,]*$/;function C(e,t,n){if(h.isFunction(t))return h.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return h.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(S.test(t))return h.filter(t,e,n);t=h.filter(t,e)}return h.grep(e,function(e){return a.call(t,e)>-1!==n})}h.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?h.find.matchesSelector(i,e)?[i]:[]:h.find.matches(e,h.grep(t,function(e){return 1===e.nodeType}))},h.fn.extend({find:function(e){var t,n=this.length,i=[],r=this;if("string"!=typeof e)return this.pushStack(h(e).filter(function(){for(t=0;t<n;t++)if(h.contains(r[t],this))return!0}));for(t=0;t<n;t++)h.find(e,r[t],i);return(i=this.pushStack(n>1?h.unique(i):i)).selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(C(this,e||[],!1))},not:function(e){return this.pushStack(C(this,e||[],!0))},is:function(e){return!!C(this,"string"==typeof e&&x.test(e)?h(e):e||[],!1).length}});var T,_=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(h.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||T,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:_.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof h?t[0]:t,h.merge(this,h.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:i,!0)),k.test(r[1])&&h.isPlainObject(t))for(r in t)h.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=i.getElementById(r[2]))&&o.parentNode&&(this.length=1,this[0]=o),this.context=i,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):h.isFunction(e)?void 0!==n.ready?n.ready(e):e(h):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),h.makeArray(e,this))}).prototype=h.fn,T=h(i);var E=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function D(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}h.fn.extend({has:function(e){var t=h(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(h.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,i=0,r=this.length,o=[],s=x.test(e)||"string"!=typeof e?h(e,t||this.context):0;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&h.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?h.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?a.call(h(e),this[0]):a.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(h.uniqueSort(h.merge(this.get(),h(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),h.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return w(e,"parentNode")},parentsUntil:function(e,t,n){return w(e,"parentNode",n)},next:function(e){return D(e,"nextSibling")},prev:function(e){return D(e,"previousSibling")},nextAll:function(e){return w(e,"nextSibling")},prevAll:function(e){return w(e,"previousSibling")},nextUntil:function(e,t,n){return w(e,"nextSibling",n)},prevUntil:function(e,t,n){return w(e,"previousSibling",n)},siblings:function(e){return b((e.parentNode||{}).firstChild,e)},children:function(e){return b(e.firstChild)},contents:function(e){return e.contentDocument||h.merge([],e.childNodes)}},function(e,t){h.fn[e]=function(n,i){var r=h.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=h.filter(i,r)),this.length>1&&(O[e]||h.uniqueSort(r),E.test(e)&&r.reverse()),this.pushStack(r)}});var P,A=/\S+/g;function M(){i.removeEventListener("DOMContentLoaded",M),e.removeEventListener("load",M),h.ready()}h.Callbacks=function(e){var t,n;e="string"==typeof e?(t=e,n={},h.each(t.match(A)||[],function(e,t){n[t]=!0}),n):h.extend({},e);var i,r,o,s,a=[],l=[],u=-1,c=function(){for(s=e.once,o=i=!0;l.length;u=-1)for(r=l.shift();++u<a.length;)!1===a[u].apply(r[0],r[1])&&e.stopOnFalse&&(u=a.length,r=!1);e.memory||(r=!1),i=!1,s&&(a=r?[]:"")},d={add:function(){return a&&(r&&!i&&(u=a.length-1,l.push(r)),function t(n){h.each(n,function(n,i){h.isFunction(i)?e.unique&&d.has(i)||a.push(i):i&&i.length&&"string"!==h.type(i)&&t(i)})}(arguments),r&&!i&&c()),this},remove:function(){return h.each(arguments,function(e,t){for(var n;(n=h.inArray(t,a,n))>-1;)a.splice(n,1),n<=u&&u--}),this},has:function(e){return e?h.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return s=l=[],a=r="",this},disabled:function(){return!a},lock:function(){return s=l=[],r||(a=r=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),i||c()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!o}};return d},h.extend({Deferred:function(e){var t=[["resolve","done",h.Callbacks("once memory"),"resolved"],["reject","fail",h.Callbacks("once memory"),"rejected"],["notify","progress",h.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return h.Deferred(function(n){h.each(t,function(t,o){var s=h.isFunction(e[t])&&e[t];r[o[1]](function(){var e=s&&s.apply(this,arguments);e&&h.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===i?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?h.extend(e,i):i}},r={};return i.pipe=i.then,h.each(t,function(e,o){var s=o[2],a=o[3];i[o[1]]=s.add,a&&s.add(function(){n=a},t[1^e][2].disable,t[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=s.fireWith}),i.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,i,o=0,s=r.call(arguments),a=s.length,l=1!==a||e&&h.isFunction(e.promise)?a:0,u=1===l?e:h.Deferred(),c=function(e,n,i){return function(o){n[e]=this,i[e]=arguments.length>1?r.call(arguments):o,i===t?u.notifyWith(n,i):--l||u.resolveWith(n,i)}};if(a>1)for(t=new Array(a),n=new Array(a),i=new Array(a);o<a;o++)s[o]&&h.isFunction(s[o].promise)?s[o].promise().progress(c(o,n,t)).done(c(o,i,s)).fail(u.reject):--l;return l||u.resolveWith(i,s),u.promise()}}),h.fn.ready=function(e){return h.ready.promise().done(e),this},h.extend({isReady:!1,readyWait:1,holdReady:function(e){e?h.readyWait++:h.ready(!0)},ready:function(e){(!0===e?--h.readyWait:h.isReady)||(h.isReady=!0,!0!==e&&--h.readyWait>0||(P.resolveWith(i,[h]),h.fn.triggerHandler&&(h(i).triggerHandler("ready"),h(i).off("ready"))))}}),h.ready.promise=function(t){return P||(P=h.Deferred(),"complete"===i.readyState||"loading"!==i.readyState&&!i.documentElement.doScroll?e.setTimeout(h.ready):(i.addEventListener("DOMContentLoaded",M),e.addEventListener("load",M))),P.promise(t)},h.ready.promise();var N=function(e,t,n,i,r,o,s){var a=0,l=e.length,u=null==n;if("object"===h.type(n)){r=!0;for(a in n)N(e,t,a,n[a],!0,o,s)}else if(void 0!==i&&(r=!0,h.isFunction(i)||(s=!0),u&&(s?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(h(e),n)})),t))for(;a<l;a++)t(e[a],n,s?i:i.call(e[a],a,t(e[a],n)));return r?e:u?t.call(e):l?t(e[0],n):o},F=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function L(){this.expando=h.expando+L.uid++}L.uid=1,L.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!F(e))return{};var t=e[this.expando];return t||(t={},F(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[t]=n;else for(i in t)r[i]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var i;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(i=this.get(e,t))?i:this.get(e,h.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i,r,o=e[this.expando];if(void 0!==o){if(void 0===t)this.register(e);else{h.isArray(t)?i=t.concat(t.map(h.camelCase)):(r=h.camelCase(t),i=t in o?[t,r]:(i=r)in o?[i]:i.match(A)||[]),n=i.length;for(;n--;)delete o[i[n]]}(void 0===t||h.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!h.isEmptyObject(t)}};var I=new L,Y=new L,j=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,H=/[A-Z]/g;function z(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(H,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:j.test(n)?h.parseJSON(n):n)}catch(e){}Y.set(e,t,n)}else n=void 0;return n}h.extend({hasData:function(e){return Y.hasData(e)||I.hasData(e)},data:function(e,t,n){return Y.access(e,t,n)},removeData:function(e,t){Y.remove(e,t)},_data:function(e,t,n){return I.access(e,t,n)},_removeData:function(e,t){I.remove(e,t)}}),h.fn.extend({data:function(e,t){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(r=Y.get(o),1===o.nodeType&&!I.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=h.camelCase(i.slice(5)),z(o,i,r[i]));I.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){Y.set(this,e)}):N(this,function(t){var n,i;if(o&&void 0===t)return void 0!==(n=Y.get(o,e)||Y.get(o,e.replace(H,"-$&").toLowerCase()))?n:(i=h.camelCase(e),void 0!==(n=Y.get(o,i))?n:void 0!==(n=z(o,i,void 0))?n:void 0);i=h.camelCase(e),this.each(function(){var n=Y.get(this,i);Y.set(this,i,t),e.indexOf("-")>-1&&void 0!==n&&Y.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Y.remove(this,e)})}}),h.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=I.get(e,t),n&&(!i||h.isArray(n)?i=I.access(e,t,h.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=h.queue(e,t),i=n.length,r=n.shift(),o=h._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,function(){h.dequeue(e,t)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return I.get(e,n)||I.access(e,n,{empty:h.Callbacks("once memory").add(function(){I.remove(e,[t+"queue",n])})})}}),h.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?h.queue(this[0],e):void 0===t?this:this.each(function(){var n=h.queue(this,e,t);h._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&h.dequeue(this,e)})},dequeue:function(e){return this.each(function(){h.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=h.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=I.get(o[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(t)}});var R=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,$=new RegExp("^(?:([+-])=|)("+R+")([a-z%]*)$","i"),q=["Top","Right","Bottom","Left"],W=function(e,t){return e=t||e,"none"===h.css(e,"display")||!h.contains(e.ownerDocument,e)};function V(e,t,n,i){var r,o=1,s=20,a=i?function(){return i.cur()}:function(){return h.css(e,t,"")},l=a(),u=n&&n[3]||(h.cssNumber[t]?"":"px"),c=(h.cssNumber[t]||"px"!==u&&+l)&&$.exec(h.css(e,t));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;do{c/=o=o||".5",h.style(e,t,c+u)}while(o!==(o=a()/l)&&1!==o&&--s)}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}var X=/^(?:checkbox|radio)$/i,B=/<([\w:-]+)/,U=/^$|\/(?:java|ecma)script/i,G={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,"",""]};function Z(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&h.nodeName(e,t)?h.merge([e],n):n}function Q(e,t){for(var n=0,i=e.length;n<i;n++)I.set(e[n],"globalEval",!t||I.get(t[n],"globalEval"))}G.optgroup=G.option,G.tbody=G.tfoot=G.colgroup=G.caption=G.thead,G.th=G.td;var K,J,ee=/<|&#?\w+;/;function te(e,t,n,i,r){for(var o,s,a,l,u,c,d=t.createDocumentFragment(),f=[],p=0,g=e.length;p<g;p++)if((o=e[p])||0===o)if("object"===h.type(o))h.merge(f,o.nodeType?[o]:o);else if(ee.test(o)){for(s=s||d.appendChild(t.createElement("div")),a=(B.exec(o)||["",""])[1].toLowerCase(),l=G[a]||G._default,s.innerHTML=l[1]+h.htmlPrefilter(o)+l[2],c=l[0];c--;)s=s.lastChild;h.merge(f,s.childNodes),(s=d.firstChild).textContent=""}else f.push(t.createTextNode(o));for(d.textContent="",p=0;o=f[p++];)if(i&&h.inArray(o,i)>-1)r&&r.push(o);else if(u=h.contains(o.ownerDocument,o),s=Z(d.appendChild(o),"script"),u&&Q(s),n)for(c=0;o=s[c++];)U.test(o.type||"")&&n.push(o);return d}K=i.createDocumentFragment().appendChild(i.createElement("div")),(J=i.createElement("input")).setAttribute("type","radio"),J.setAttribute("checked","checked"),J.setAttribute("name","t"),K.appendChild(J),d.checkClone=K.cloneNode(!0).cloneNode(!0).lastChild.checked,K.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!K.cloneNode(!0).lastChild.defaultValue;var ne=/^key/,ie=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,re=/^([^.]*)(?:\.(.+)|)/;function oe(){return!0}function se(){return!1}function ae(){try{return i.activeElement}catch(e){}}function le(e,t,n,i,r,o){var s,a;if("object"==typeof t){"string"!=typeof n&&(i=i||n,n=void 0);for(a in t)le(e,a,n,i,t[a],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=se;else if(!r)return e;return 1===o&&(s=r,(r=function(e){return h().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=h.guid++)),e.each(function(){h.event.add(this,t,r,i,n)})}h.event={global:{},add:function(e,t,n,i,r){var o,s,a,l,u,c,d,f,p,g,m,v=I.get(e);if(v)for(n.handler&&(n=(o=n).handler,r=o.selector),n.guid||(n.guid=h.guid++),(l=v.events)||(l=v.events={}),(s=v.handle)||(s=v.handle=function(t){return void 0!==h&&h.event.triggered!==t.type?h.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(A)||[""]).length;u--;)p=m=(a=re.exec(t[u])||[])[1],g=(a[2]||"").split(".").sort(),p&&(d=h.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=h.event.special[p]||{},c=h.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&h.expr.match.needsContext.test(r),namespace:g.join(".")},o),(f=l[p])||((f=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,g,s)||e.addEventListener&&e.addEventListener(p,s)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,c):f.push(c),h.event.global[p]=!0)},remove:function(e,t,n,i,r){var o,s,a,l,u,c,d,f,p,g,m,v=I.hasData(e)&&I.get(e);if(v&&(l=v.events)){for(u=(t=(t||"").match(A)||[""]).length;u--;)if(p=m=(a=re.exec(t[u])||[])[1],g=(a[2]||"").split(".").sort(),p){for(d=h.event.special[p]||{},f=l[p=(i?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=f.length;o--;)c=f[o],!r&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(e,c));s&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,g,v.handle)||h.removeEvent(e,p,v.handle),delete l[p])}else for(p in l)h.event.remove(e,p+t[u],n,i,!0);h.isEmptyObject(l)&&I.remove(e,"handle events")}},dispatch:function(e){e=h.event.fix(e);var t,n,i,o,s,a,l=r.call(arguments),u=(I.get(this,"events")||{})[e.type]||[],c=h.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(a=h.event.handlers.call(this,e,u),t=0;(o=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,n=0;(s=o.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(s.namespace)||(e.handleObj=s,e.data=s.data,void 0!==(i=((h.event.special[s.origType]||{}).handle||s.handler).apply(o.elem,l))&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,o,s=[],a=t.delegateCount,l=e.target;if(a&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(i=[],n=0;n<a;n++)void 0===i[r=(o=t[n]).selector+" "]&&(i[r]=o.needsContext?h(r,this).index(l)>-1:h.find(r,this,null,[l]).length),i[r]&&i.push(o);i.length&&s.push({elem:l,handlers:i})}return a<t.length&&s.push({elem:this,handlers:t.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget detail 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(e,t){var n,r,o,s=t.button;return null==e.pageX&&null!=t.clientX&&(r=(n=e.target.ownerDocument||i).documentElement,o=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),e.which||void 0===s||(e.which=1&s?1:2&s?3:4&s?2:0),e}},fix:function(e){if(e[h.expando])return e;var t,n,r,o=e.type,s=e,a=this.fixHooks[o];for(a||(this.fixHooks[o]=a=ie.test(o)?this.mouseHooks:ne.test(o)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new h.Event(s),t=r.length;t--;)e[n=r[t]]=s[n];return e.target||(e.target=i),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,s):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ae()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===ae()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&h.nodeName(this,"input"))return this.click(),!1},_default:function(e){return h.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},h.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},h.Event=function(e,t){if(!(this instanceof h.Event))return new h.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?oe:se):this.type=e,t&&h.extend(this,t),this.timeStamp=e&&e.timeStamp||h.now(),this[h.expando]=!0},h.Event.prototype={constructor:h.Event,isDefaultPrevented:se,isPropagationStopped:se,isImmediatePropagationStopped:se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=oe,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=oe,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=oe,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},h.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){h.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,r=e.handleObj;return i&&(i===this||h.contains(this,i))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}}),h.fn.extend({on:function(e,t,n,i){return le(this,e,t,n,i)},one:function(e,t,n,i){return le(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,h(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=se),this.each(function(){h.event.remove(this,e,n,t)})}});var ue=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ce=/<script|<style|<link/i,de=/checked\s*(?:[^=]|=\s*.checked.)/i,he=/^true\/(.*)/,fe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function pe(e,t){return h.nodeName(e,"table")&&h.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ge(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function me(e){var t=he.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function ve(e,t){var n,i,r,o,s,a,l,u;if(1===t.nodeType){if(I.hasData(e)&&(o=I.access(e),s=I.set(t,o),u=o.events)){delete s.handle,s.events={};for(r in u)for(n=0,i=u[r].length;n<i;n++)h.event.add(t,r,u[r][n])}Y.hasData(e)&&(a=Y.access(e),l=h.extend({},a),Y.set(t,l))}}function ye(e,t,n,i){t=o.apply([],t);var r,s,a,l,u,c,f=0,p=e.length,g=p-1,m=t[0],v=h.isFunction(m);if(v||p>1&&"string"==typeof m&&!d.checkClone&&de.test(m))return e.each(function(r){var o=e.eq(r);v&&(t[0]=m.call(this,r,o.html())),ye(o,t,n,i)});if(p&&(s=(r=te(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=s),s||i)){for(l=(a=h.map(Z(r,"script"),ge)).length;f<p;f++)u=r,f!==g&&(u=h.clone(u,!0,!0),l&&h.merge(a,Z(u,"script"))),n.call(e[f],u,f);if(l)for(c=a[a.length-1].ownerDocument,h.map(a,me),f=0;f<l;f++)u=a[f],U.test(u.type||"")&&!I.access(u,"globalEval")&&h.contains(c,u)&&(u.src?h._evalUrl&&h._evalUrl(u.src):h.globalEval(u.textContent.replace(fe,"")))}return e}function we(e,t,n){for(var i,r=t?h.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||h.cleanData(Z(i)),i.parentNode&&(n&&h.contains(i.ownerDocument,i)&&Q(Z(i,"script")),i.parentNode.removeChild(i));return e}h.extend({htmlPrefilter:function(e){return e.replace(ue,"<$1></$2>")},clone:function(e,t,n){var i,r,o,s,a,l,u,c=e.cloneNode(!0),f=h.contains(e.ownerDocument,e);if(!(d.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||h.isXMLDoc(e)))for(s=Z(c),i=0,r=(o=Z(e)).length;i<r;i++)a=o[i],l=s[i],void 0,"input"===(u=l.nodeName.toLowerCase())&&X.test(a.type)?l.checked=a.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=a.defaultValue);if(t)if(n)for(o=o||Z(e),s=s||Z(c),i=0,r=o.length;i<r;i++)ve(o[i],s[i]);else ve(e,c);return(s=Z(c,"script")).length>0&&Q(s,!f&&Z(e,"script")),c},cleanData:function(e){for(var t,n,i,r=h.event.special,o=0;void 0!==(n=e[o]);o++)if(F(n)){if(t=n[I.expando]){if(t.events)for(i in t.events)r[i]?h.event.remove(n,i):h.removeEvent(n,i,t.handle);n[I.expando]=void 0}n[Y.expando]&&(n[Y.expando]=void 0)}}}),h.fn.extend({domManip:ye,detach:function(e){return we(this,e,!0)},remove:function(e){return we(this,e)},text:function(e){return N(this,function(e){return void 0===e?h.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return ye(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||pe(this,e).appendChild(e)})},prepend:function(){return ye(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return ye(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return ye(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(h.cleanData(Z(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return h.clone(this,e,t)})},html:function(e){return N(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ce.test(e)&&!G[(B.exec(e)||["",""])[1].toLowerCase()]){e=h.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(h.cleanData(Z(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return ye(this,arguments,function(t){var n=this.parentNode;h.inArray(this,e)<0&&(h.cleanData(Z(this)),n&&n.replaceChild(t,this))},e)}}),h.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){h.fn[e]=function(e){for(var n,i=[],r=h(e),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),h(r[a])[t](n),s.apply(i,n.get());return this.pushStack(i)}});var be,xe={HTML:"block",BODY:"block"};function ke(e,t){var n=h(t.createElement(e)).appendTo(t.body),i=h.css(n[0],"display");return n.detach(),i}function Se(e){var t=i,n=xe[e];return n||("none"!==(n=ke(e,t))&&n||((t=(be=(be||h("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=ke(e,t),be.detach()),xe[e]=n),n}var Ce=/^margin/,Te=new RegExp("^("+R+")(?!px)[a-z%]+$","i"),_e=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Ee=function(e,t,n,i){var r,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];r=n.apply(e,i||[]);for(o in t)e.style[o]=s[o];return r},Oe=i.documentElement;function De(e,t,n){var i,r,o,s,a=e.style;return""!==(s=(n=n||_e(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==s||h.contains(e.ownerDocument,e)||(s=h.style(e,t)),n&&!d.pixelMarginRight()&&Te.test(s)&&Ce.test(t)&&(i=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=r,a.maxWidth=o),void 0!==s?s+"":s}function Pe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){var t,n,r,o,s=i.createElement("div"),a=i.createElement("div");function l(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Oe.appendChild(s);var i=e.getComputedStyle(a);t="1%"!==i.top,o="2px"===i.marginLeft,n="4px"===i.width,a.style.marginRight="50%",r="4px"===i.marginRight,Oe.removeChild(s)}a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),h.extend(d,{pixelPosition:function(){return l(),t},boxSizingReliable:function(){return null==n&&l(),n},pixelMarginRight:function(){return null==n&&l(),r},reliableMarginLeft:function(){return null==n&&l(),o},reliableMarginRight:function(){var t,n=a.appendChild(i.createElement("div"));return n.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",a.style.width="1px",Oe.appendChild(s),t=!parseFloat(e.getComputedStyle(n).marginRight),Oe.removeChild(s),a.removeChild(n),t}}))}();var Ae=/^(none|table(?!-c[ea]).+)/,Me={position:"absolute",visibility:"hidden",display:"block"},Ne={letterSpacing:"0",fontWeight:"400"},Fe=["Webkit","O","Moz","ms"],Le=i.createElement("div").style;function Ie(e){if(e in Le)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Fe.length;n--;)if((e=Fe[n]+t)in Le)return e}function Ye(e,t,n){var i=$.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function je(e,t,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===t?1:0,s=0;o<4;o+=2)"margin"===n&&(s+=h.css(e,n+q[o],!0,r)),i?("content"===n&&(s-=h.css(e,"padding"+q[o],!0,r)),"margin"!==n&&(s-=h.css(e,"border"+q[o]+"Width",!0,r))):(s+=h.css(e,"padding"+q[o],!0,r),"padding"!==n&&(s+=h.css(e,"border"+q[o]+"Width",!0,r)));return s}function He(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=_e(e),s="border-box"===h.css(e,"boxSizing",!1,o);if(r<=0||null==r){if(((r=De(e,t,o))<0||null==r)&&(r=e.style[t]),Te.test(r))return r;i=s&&(d.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+je(e,t,n||(s?"border":"content"),i,o)+"px"}function ze(e,t){for(var n,i,r,o=[],s=0,a=e.length;s<a;s++)(i=e[s]).style&&(o[s]=I.get(i,"olddisplay"),n=i.style.display,t?(o[s]||"none"!==n||(i.style.display=""),""===i.style.display&&W(i)&&(o[s]=I.access(i,"olddisplay",Se(i.nodeName)))):(r=W(i),"none"===n&&r||I.set(i,"olddisplay",r?n:h.css(i,"display"))));for(s=0;s<a;s++)(i=e[s]).style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?o[s]||"":"none"));return e}function Re(e,t,n,i,r){return new Re.prototype.init(e,t,n,i,r)}h.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=De(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,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(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,s,a=h.camelCase(t),l=e.style;if(t=h.cssProps[a]||(h.cssProps[a]=Ie(a)||a),s=h.cssHooks[t]||h.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(e,!1,i))?r:l[t];"string"===(o=typeof n)&&(r=$.exec(n))&&r[1]&&(n=V(e,t,r),o="number"),null!=n&&n==n&&("number"===o&&(n+=r&&r[3]||(h.cssNumber[a]?"":"px")),d.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(l[t]=n))}},css:function(e,t,n,i){var r,o,s,a=h.camelCase(t);return t=h.cssProps[a]||(h.cssProps[a]=Ie(a)||a),(s=h.cssHooks[t]||h.cssHooks[a])&&"get"in s&&(r=s.get(e,!0,n)),void 0===r&&(r=De(e,t,i)),"normal"===r&&t in Ne&&(r=Ne[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),h.each(["height","width"],function(e,t){h.cssHooks[t]={get:function(e,n,i){if(n)return Ae.test(h.css(e,"display"))&&0===e.offsetWidth?Ee(e,Me,function(){return He(e,t,i)}):He(e,t,i)},set:function(e,n,i){var r,o=i&&_e(e),s=i&&je(e,t,i,"border-box"===h.css(e,"boxSizing",!1,o),o);return s&&(r=$.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=h.css(e,t)),Ye(0,n,s)}}}),h.cssHooks.marginLeft=Pe(d.reliableMarginLeft,function(e,t){if(t)return(parseFloat(De(e,"marginLeft"))||e.getBoundingClientRect().left-Ee(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),h.cssHooks.marginRight=Pe(d.reliableMarginRight,function(e,t){if(t)return Ee(e,{display:"inline-block"},De,[e,"marginRight"])}),h.each({margin:"",padding:"",border:"Width"},function(e,t){h.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+q[i]+t]=o[i]||o[i-2]||o[0];return r}},Ce.test(e)||(h.cssHooks[e+t].set=Ye)}),h.fn.extend({css:function(e,t){return N(this,function(e,t,n){var i,r,o={},s=0;if(h.isArray(t)){for(i=_e(e),r=t.length;s<r;s++)o[t[s]]=h.css(e,t[s],!1,i);return o}return void 0!==n?h.style(e,t,n):h.css(e,t)},e,t,arguments.length>1)},show:function(){return ze(this,!0)},hide:function(){return ze(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){W(this)?h(this).show():h(this).hide()})}}),h.Tween=Re,Re.prototype={constructor:Re,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||h.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(h.cssNumber[n]?"":"px")},cur:function(){var e=Re.propHooks[this.prop];return e&&e.get?e.get(this):Re.propHooks._default.get(this)},run:function(e){var t,n=Re.propHooks[this.prop];return this.options.duration?this.pos=t=h.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Re.propHooks._default.set(this),this}},Re.prototype.init.prototype=Re.prototype,Re.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=h.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){h.fx.step[e.prop]?h.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[h.cssProps[e.prop]]&&!h.cssHooks[e.prop]?e.elem[e.prop]=e.now:h.style(e.elem,e.prop,e.now+e.unit)}}},Re.propHooks.scrollTop=Re.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},h.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},h.fx=Re.prototype.init,h.fx.step={};var $e,qe,We,Ve,Xe,Be=/^(?:toggle|show|hide)$/,Ue=/queueHooks$/;function Ge(){return e.setTimeout(function(){$e=void 0}),$e=h.now()}function Ze(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=q[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function Qe(e,t,n){for(var i,r=(Ke.tweeners[t]||[]).concat(Ke.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,t,e))return i}function Ke(e,t,n){var i,r,o=0,s=Ke.prefilters.length,a=h.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=$e||Ge(),n=Math.max(0,u.startTime+u.duration-t),i=1-(n/u.duration||0),o=0,s=u.tweens.length;o<s;o++)u.tweens[o].run(i);return a.notifyWith(e,[u,i,n]),i<1&&s?n:(a.resolveWith(e,[u]),!1)},u=a.promise({elem:e,props:h.extend({},t),opts:h.extend(!0,{specialEasing:{},easing:h.easing._default},n),originalProperties:t,originalOptions:n,startTime:$e||Ge(),duration:n.duration,tweens:[],createTween:function(t,n){var i=h.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(i),i},stop:function(t){var n=0,i=t?u.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)u.tweens[n].run(1);return t?(a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u,t])):a.rejectWith(e,[u,t]),this}}),c=u.props;for(!function(e,t){var n,i,r,o,s;for(n in e)if(r=t[i=h.camelCase(n)],o=e[n],h.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(s=h.cssHooks[i])&&"expand"in s){o=s.expand(o),delete e[i];for(n in o)n in e||(e[n]=o[n],t[n]=r)}else t[i]=r}(c,u.opts.specialEasing);o<s;o++)if(i=Ke.prefilters[o].call(u,e,c,u.opts))return h.isFunction(i.stop)&&(h._queueHooks(u.elem,u.opts.queue).stop=h.proxy(i.stop,i)),i;return h.map(c,Qe,u),h.isFunction(u.opts.start)&&u.opts.start.call(e,u),h.fx.timer(h.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}h.Animation=h.extend(Ke,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return V(n.elem,e,$.exec(t),n),n}]},tweener:function(e,t){h.isFunction(e)?(t=e,e=["*"]):e=e.match(A);for(var n,i=0,r=e.length;i<r;i++)n=e[i],Ke.tweeners[n]=Ke.tweeners[n]||[],Ke.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,o,s,a,l,u,c=this,d={},f=e.style,p=e.nodeType&&W(e),g=I.get(e,"fxshow");n.queue||(null==(a=h._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,c.always(function(){c.always(function(){a.unqueued--,h.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],"inline"===("none"===(u=h.css(e,"display"))?I.get(e,"olddisplay")||Se(e.nodeName):u)&&"none"===h.css(e,"float")&&(f.display="inline-block")),n.overflow&&(f.overflow="hidden",c.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}));for(i in t)if(r=t[i],Be.exec(r)){if(delete t[i],o=o||"toggle"===r,r===(p?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;p=!0}d[i]=g&&g[i]||h.style(e,i)}else u=void 0;if(h.isEmptyObject(d))"inline"===("none"===u?Se(e.nodeName):u)&&(f.display=u);else{g?"hidden"in g&&(p=g.hidden):g=I.access(e,"fxshow",{}),o&&(g.hidden=!p),p?h(e).show():c.done(function(){h(e).hide()}),c.done(function(){var t;I.remove(e,"fxshow");for(t in d)h.style(e,t,d[t])});for(i in d)s=Qe(p?g[i]:0,i,c),i in g||(g[i]=s.start,p&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}}],prefilter:function(e,t){t?Ke.prefilters.unshift(e):Ke.prefilters.push(e)}}),h.speed=function(e,t,n){var i=e&&"object"==typeof e?h.extend({},e):{complete:n||!n&&t||h.isFunction(e)&&e,duration:e,easing:n&&t||t&&!h.isFunction(t)&&t};return i.duration=h.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in h.fx.speeds?h.fx.speeds[i.duration]:h.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){h.isFunction(i.old)&&i.old.call(this),i.queue&&h.dequeue(this,i.queue)},i},h.fn.extend({fadeTo:function(e,t,n,i){return this.filter(W).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=h.isEmptyObject(e),o=h.speed(t,n,i),s=function(){var t=Ke(this,h.extend({},e),o);(r||I.get(this,"finish"))&&t.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",o=h.timers,s=I.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&Ue.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||h.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=I.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=h.timers,s=i?i.length:0;for(n.finish=!0,h.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),h.each(["toggle","show","hide"],function(e,t){var n=h.fn[t];h.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(Ze(t,!0),e,i,r)}}),h.each({slideDown:Ze("show"),slideUp:Ze("hide"),slideToggle:Ze("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){h.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),h.timers=[],h.fx.tick=function(){var e,t=0,n=h.timers;for($e=h.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||h.fx.stop(),$e=void 0},h.fx.timer=function(e){h.timers.push(e),e()?h.fx.start():h.timers.pop()},h.fx.interval=13,h.fx.start=function(){qe||(qe=e.setInterval(h.fx.tick,h.fx.interval))},h.fx.stop=function(){e.clearInterval(qe),qe=null},h.fx.speeds={slow:600,fast:200,_default:400},h.fn.delay=function(t,n){return t=h.fx?h.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,i){var r=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(r)}})},We=i.createElement("input"),Ve=i.createElement("select"),Xe=Ve.appendChild(i.createElement("option")),We.type="checkbox",d.checkOn=""!==We.value,d.optSelected=Xe.selected,Ve.disabled=!0,d.optDisabled=!Xe.disabled,(We=i.createElement("input")).value="t",We.type="radio",d.radioValue="t"===We.value;var Je,et=h.expr.attrHandle;h.fn.extend({attr:function(e,t){return N(this,h.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){h.removeAttr(this,e)})}}),h.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?h.prop(e,t,n):(1===o&&h.isXMLDoc(e)||(t=t.toLowerCase(),r=h.attrHooks[t]||(h.expr.match.bool.test(t)?Je:void 0)),void 0!==n?null===n?void h.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=h.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&"radio"===t&&h.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i,r=0,o=t&&t.match(A);if(o&&1===e.nodeType)for(;n=o[r++];)i=h.propFix[n]||n,h.expr.match.bool.test(n)&&(e[i]=!1),e.removeAttribute(n)}}),Je={set:function(e,t,n){return!1===t?h.removeAttr(e,n):e.setAttribute(n,n),n}},h.each(h.expr.match.bool.source.match(/\w+/g),function(e,t){var n=et[t]||h.find.attr;et[t]=function(e,t,i){var r,o;return i||(o=et[t],et[t]=r,r=null!=n(e,t,i)?t.toLowerCase():null,et[t]=o),r}});var tt=/^(?:input|select|textarea|button)$/i,nt=/^(?:a|area)$/i;h.fn.extend({prop:function(e,t){return N(this,h.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[h.propFix[e]||e]})}}),h.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&h.isXMLDoc(e)||(t=h.propFix[t]||t,r=h.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=h.find.attr(e,"tabindex");return t?parseInt(t,10):tt.test(e.nodeName)||nt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),d.optSelected||(h.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),h.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){h.propFix[this.toLowerCase()]=this});var it=/[\t\r\n\f]/g;function rt(e){return e.getAttribute&&e.getAttribute("class")||""}h.fn.extend({addClass:function(e){var t,n,i,r,o,s,a,l=0;if(h.isFunction(e))return this.each(function(t){h(this).addClass(e.call(this,t,rt(this)))});if("string"==typeof e&&e)for(t=e.match(A)||[];n=this[l++];)if(r=rt(n),i=1===n.nodeType&&(" "+r+" ").replace(it," ")){for(s=0;o=t[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(a=h.trim(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,r,o,s,a,l=0;if(h.isFunction(e))return this.each(function(t){h(this).removeClass(e.call(this,t,rt(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(A)||[];n=this[l++];)if(r=rt(n),i=1===n.nodeType&&(" "+r+" ").replace(it," ")){for(s=0;o=t[s++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(a=h.trim(i))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):h.isFunction(e)?this.each(function(n){h(this).toggleClass(e.call(this,n,rt(this),t),t)}):this.each(function(){var t,i,r,o;if("string"===n)for(i=0,r=h(this),o=e.match(A)||[];t=o[i++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==n||((t=rt(this))&&I.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":I.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+rt(n)+" ").replace(it," ").indexOf(t)>-1)return!0;return!1}});var ot=/\r/g,st=/[\x20\t\r\n\f]+/g;h.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=h.isFunction(e),this.each(function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,h(this).val()):e)?r="":"number"==typeof r?r+="":h.isArray(r)&&(r=h.map(r,function(e){return null==e?"":e+""})),(t=h.valHooks[this.type]||h.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=h.valHooks[r.type]||h.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(ot,""):null==n?"":n:void 0}}),h.extend({valHooks:{option:{get:function(e){var t=h.find.attr(e,"value");return null!=t?t:h.trim(h.text(e)).replace(st," ")}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,o="select-one"===e.type||r<0,s=o?null:[],a=o?r+1:i.length,l=r<0?a:o?r:0;l<a;l++)if(((n=i[l]).selected||l===r)&&(d.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!h.nodeName(n.parentNode,"optgroup"))){if(t=h(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,i,r=e.options,o=h.makeArray(t),s=r.length;s--;)((i=r[s]).selected=h.inArray(h.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),h.each(["radio","checkbox"],function(){h.valHooks[this]={set:function(e,t){if(h.isArray(t))return e.checked=h.inArray(h(e).val(),t)>-1}},d.checkOn||(h.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var at=/^(?:focusinfocus|focusoutblur)$/;h.extend(h.event,{trigger:function(t,n,r,o){var s,a,l,u,d,f,p,g=[r||i],m=c.call(t,"type")?t.type:t,v=c.call(t,"namespace")?t.namespace.split("."):[];if(a=l=r=r||i,3!==r.nodeType&&8!==r.nodeType&&!at.test(m+h.event.triggered)&&(m.indexOf(".")>-1&&(m=(v=m.split(".")).shift(),v.sort()),d=m.indexOf(":")<0&&"on"+m,(t=t[h.expando]?t:new h.Event(m,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:h.makeArray(n,[t]),p=h.event.special[m]||{},o||!p.trigger||!1!==p.trigger.apply(r,n))){if(!o&&!p.noBubble&&!h.isWindow(r)){for(u=p.delegateType||m,at.test(u+m)||(a=a.parentNode);a;a=a.parentNode)g.push(a),l=a;l===(r.ownerDocument||i)&&g.push(l.defaultView||l.parentWindow||e)}for(s=0;(a=g[s++])&&!t.isPropagationStopped();)t.type=s>1?u:p.bindType||m,(f=(I.get(a,"events")||{})[t.type]&&I.get(a,"handle"))&&f.apply(a,n),(f=d&&a[d])&&f.apply&&F(a)&&(t.result=f.apply(a,n),!1===t.result&&t.preventDefault());return t.type=m,o||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(g.pop(),n)||!F(r)||d&&h.isFunction(r[m])&&!h.isWindow(r)&&((l=r[d])&&(r[d]=null),h.event.triggered=m,r[m](),h.event.triggered=void 0,l&&(r[d]=l)),t.result}},simulate:function(e,t,n){var i=h.extend(new h.Event,n,{type:e,isSimulated:!0});h.event.trigger(i,null,t)}}),h.fn.extend({trigger:function(e,t){return this.each(function(){h.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return h.event.trigger(e,t,n,!0)}}),h.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(e,t){h.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),h.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),d.focusin="onfocusin"in e,d.focusin||h.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){h.event.simulate(t,e.target,h.event.fix(e))};h.event.special[t]={setup:function(){var i=this.ownerDocument||this,r=I.access(i,t);r||i.addEventListener(e,n,!0),I.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=I.access(i,t)-1;r?I.access(i,t,r):(i.removeEventListener(e,n,!0),I.remove(i,t))}}});var lt=e.location,ut=h.now(),ct=/\?/;h.parseJSON=function(e){return JSON.parse(e+"")},h.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||h.error("Invalid XML: "+t),n};var dt=/#.*$/,ht=/([?&])_=[^&]*/,ft=/^(.*?):[ \t]*([^\r\n]*)$/gm,pt=/^(?:GET|HEAD)$/,gt=/^\/\//,mt={},vt={},yt="*/".concat("*"),wt=i.createElement("a");function bt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(A)||[];if(h.isFunction(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function xt(e,t,n,i){var r={},o=e===vt;function s(a){var l;return r[a]=!0,h.each(e[a]||[],function(e,a){var u=a(t,n,i);return"string"!=typeof u||o||r[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),s(u),!1)}),l}return s(t.dataTypes[0])||!r["*"]&&s("*")}function kt(e,t){var n,i,r=h.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&h.extend(!0,e,i),e}wt.href=lt.href,h.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:lt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(lt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":yt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":h.parseJSON,"text xml":h.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?kt(kt(e,h.ajaxSettings),t):kt(h.ajaxSettings,e)},ajaxPrefilter:bt(mt),ajaxTransport:bt(vt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,o,s,a,l,u,c,d,f=h.ajaxSetup({},n),p=f.context||f,g=f.context&&(p.nodeType||p.jquery)?h(p):h.event,m=h.Deferred(),v=h.Callbacks("once memory"),y=f.statusCode||{},w={},b={},x=0,k="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!a)for(a={};t=ft.exec(s);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=b[n]=b[n]||e,w[e]=t),this},overrideMimeType:function(e){return x||(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(x<2)for(t in e)y[t]=[y[t],e[t]];else S.always(e[S.status]);return this},abort:function(e){var t=e||k;return r&&r.abort(t),C(0,t),this}};if(m.promise(S).complete=v.add,S.success=S.done,S.error=S.fail,f.url=((t||f.url||lt.href)+"").replace(dt,"").replace(gt,lt.protocol+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=h.trim(f.dataType||"*").toLowerCase().match(A)||[""],null==f.crossDomain){u=i.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=wt.protocol+"//"+wt.host!=u.protocol+"//"+u.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=h.param(f.data,f.traditional)),xt(mt,f,n,S),2===x)return S;(c=h.event&&f.global)&&0==h.active++&&h.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!pt.test(f.type),o=f.url,f.hasContent||(f.data&&(o=f.url+=(ct.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=ht.test(o)?o.replace(ht,"$1_="+ut++):o+(ct.test(o)?"&":"?")+"_="+ut++)),f.ifModified&&(h.lastModified[o]&&S.setRequestHeader("If-Modified-Since",h.lastModified[o]),h.etag[o]&&S.setRequestHeader("If-None-Match",h.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&S.setRequestHeader("Content-Type",f.contentType),S.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+yt+"; q=0.01":""):f.accepts["*"]);for(d in f.headers)S.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,S,f)||2===x))return S.abort();k="abort";for(d in{success:1,error:1,complete:1})S[d](f[d]);if(r=xt(vt,f,n,S)){if(S.readyState=1,c&&g.trigger("ajaxSend",[S,f]),2===x)return S;f.async&&f.timeout>0&&(l=e.setTimeout(function(){S.abort("timeout")},f.timeout));try{x=1,r.send(w,C)}catch(e){if(!(x<2))throw e;C(-1,e)}}else C(-1,"No Transport");function C(t,n,i,a){var u,d,w,b,k,C=n;2!==x&&(x=2,l&&e.clearTimeout(l),r=void 0,s=a||"",S.readyState=t>0?4:0,u=t>=200&&t<300||304===t,i&&(b=function(e,t,n){for(var i,r,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,S,i)),b=function(e,t,n,i){var r,o,s,a,l,u={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)u[s.toLowerCase()]=e.converters[s];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=u[l+" "+o]||u["* "+o]))for(r in u)if((a=r.split(" "))[1]===o&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[r]:!0!==u[r]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(f,b,S,u),u?(f.ifModified&&((k=S.getResponseHeader("Last-Modified"))&&(h.lastModified[o]=k),(k=S.getResponseHeader("etag"))&&(h.etag[o]=k)),204===t||"HEAD"===f.type?C="nocontent":304===t?C="notmodified":(C=b.state,d=b.data,u=!(w=b.error))):(w=C,!t&&C||(C="error",t<0&&(t=0))),S.status=t,S.statusText=(n||C)+"",u?m.resolveWith(p,[d,C,S]):m.rejectWith(p,[S,C,w]),S.statusCode(y),y=void 0,c&&g.trigger(u?"ajaxSuccess":"ajaxError",[S,f,u?d:w]),v.fireWith(p,[S,C]),c&&(g.trigger("ajaxComplete",[S,f]),--h.active||h.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return h.get(e,t,n,"json")},getScript:function(e,t){return h.get(e,void 0,t,"script")}}),h.each(["get","post"],function(e,t){h[t]=function(e,n,i,r){return h.isFunction(n)&&(r=r||i,i=n,n=void 0),h.ajax(h.extend({url:e,type:t,dataType:r,data:n,success:i},h.isPlainObject(e)&&e))}}),h._evalUrl=function(e){return h.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},h.fn.extend({wrapAll:function(e){var t;return h.isFunction(e)?this.each(function(t){h(this).wrapAll(e.call(this,t))}):(this[0]&&(t=h(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return h.isFunction(e)?this.each(function(t){h(this).wrapInner(e.call(this,t))}):this.each(function(){var t=h(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=h.isFunction(e);return this.each(function(n){h(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){h.nodeName(this,"body")||h(this).replaceWith(this.childNodes)}).end()}}),h.expr.filters.hidden=function(e){return!h.expr.filters.visible(e)},h.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var St=/%20/g,Ct=/\[\]$/,Tt=/\r?\n/g,_t=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i;function Ot(e,t,n,i){var r;if(h.isArray(t))h.each(t,function(t,r){n||Ct.test(e)?i(e,r):Ot(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)});else if(n||"object"!==h.type(t))i(e,t);else for(r in t)Ot(e+"["+r+"]",t[r],n,i)}h.param=function(e,t){var n,i=[],r=function(e,t){t=h.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=h.ajaxSettings&&h.ajaxSettings.traditional),h.isArray(e)||e.jquery&&!h.isPlainObject(e))h.each(e,function(){r(this.name,this.value)});else for(n in e)Ot(n,e[n],t,r);return i.join("&").replace(St,"+")},h.fn.extend({serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=h.prop(this,"elements");return e?h.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!h(this).is(":disabled")&&Et.test(this.nodeName)&&!_t.test(e)&&(this.checked||!X.test(e))}).map(function(e,t){var n=h(this).val();return null==n?null:h.isArray(n)?h.map(n,function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}}):{name:t.name,value:n.replace(Tt,"\r\n")}}).get()}}),h.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Dt={0:200,1223:204},Pt=h.ajaxSettings.xhr();d.cors=!!Pt&&"withCredentials"in Pt,d.ajax=Pt=!!Pt,h.ajaxTransport(function(t){var n,i;if(d.cors||Pt&&!t.crossDomain)return{send:function(r,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(s in r)a.setRequestHeader(s,r[s]);n=function(e){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Dt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&i()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),h.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return h.globalEval(e),e}}}),h.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),h.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(r,o){t=h("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),i.head.appendChild(t[0])},abort:function(){n&&n()}}});var At=[],Mt=/(=)\?(?=&|$)|\?\?/;h.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=At.pop()||h.expando+"_"+ut++;return this[e]=!0,e}}),h.ajaxPrefilter("json jsonp",function(t,n,i){var r,o,s,a=!1!==t.jsonp&&(Mt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Mt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=h.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Mt,"$1"+r):!1!==t.jsonp&&(t.url+=(ct.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||h.error(r+" was not called"),s[0]},t.dataTypes[0]="json",o=e[r],e[r]=function(){s=arguments},i.always(function(){void 0===o?h(e).removeProp(r):e[r]=o,t[r]&&(t.jsonpCallback=n.jsonpCallback,At.push(r)),s&&h.isFunction(o)&&o(s[0]),s=o=void 0}),"script"}),h.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||i;var r=k.exec(e),o=!n&&[];return r?[t.createElement(r[1])]:(r=te([e],t,o),o&&o.length&&h(o).remove(),h.merge([],r.childNodes))};var Nt=h.fn.load;function Ft(e){return h.isWindow(e)?e:9===e.nodeType&&e.defaultView}h.fn.load=function(e,t,n){if("string"!=typeof e&&Nt)return Nt.apply(this,arguments);var i,r,o,s=this,a=e.indexOf(" ");return a>-1&&(i=h.trim(e.slice(a)),e=e.slice(0,a)),h.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),s.length>0&&h.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(i?h("<div>").append(h.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},h.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){h.fn[t]=function(e){return this.on(t,e)}}),h.expr.filters.animated=function(e){return h.grep(h.timers,function(t){return e===t.elem}).length},h.offset={setOffset:function(e,t,n){var i,r,o,s,a,l,u=h.css(e,"position"),c=h(e),d={};"static"===u&&(e.style.position="relative"),a=c.offset(),o=h.css(e,"top"),l=h.css(e,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(s=(i=c.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),h.isFunction(t)&&(t=t.call(e,n,h.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+r),"using"in t?t.using.call(e,d):c.css(d)}},h.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){h.offset.setOffset(this,e,t)});var t,n,i=this[0],r={top:0,left:0},o=i&&i.ownerDocument;return o?(t=o.documentElement,h.contains(t,i)?(r=i.getBoundingClientRect(),n=Ft(o),{top:r.top+n.pageYOffset-t.clientTop,left:r.left+n.pageXOffset-t.clientLeft}):r):void 0},position:function(){if(this[0]){var e,t,n=this[0],i={top:0,left:0};return"fixed"===h.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),h.nodeName(e[0],"html")||(i=e.offset()),i.top+=h.css(e[0],"borderTopWidth",!0),i.left+=h.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-h.css(n,"marginTop",!0),left:t.left-i.left-h.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===h.css(e,"position");)e=e.offsetParent;return e||Oe})}}),h.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;h.fn[e]=function(i){return N(this,function(e,i,r){var o=Ft(e);if(void 0===r)return o?o[t]:e[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):e[i]=r},e,i,arguments.length)}}),h.each(["top","left"],function(e,t){h.cssHooks[t]=Pe(d.pixelPosition,function(e,n){if(n)return n=De(e,t),Te.test(n)?h(e).position()[t]+"px":n})}),h.each({Height:"height",Width:"width"},function(e,t){h.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){h.fn[i]=function(i,r){var o=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===r?"margin":"border");return N(this,function(t,n,i){var r;return h.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===i?h.css(t,n,s):h.style(t,n,i,s)},t,o?i:void 0,o,null)}})}),h.fn.extend({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,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),h.fn.andSelf=h.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return h});var Lt=e.jQuery,It=e.$;return h.noConflict=function(t){return e.$===h&&(e.$=It),t&&e.jQuery===h&&(e.jQuery=Lt),h},t||(e.jQuery=e.$=h),h}),window.Modernizr=function(e,t,n){var i,r,o={},s=t.documentElement,a="modernizr",l=t.createElement(a),u=l.style,c=t.createElement("input"),d=":)",h={}.toString,f=" -webkit- -moz- -o- -ms- ".split(" "),p="Webkit Moz O ms".split(" "),g="Webkit Moz O ms".toLowerCase().split(" "),m="http://www.w3.org/2000/svg",v={},y={},w={},b=[],x=b.slice,k=function(e,n,i,r){var o,l,u,c,d=t.createElement("div"),h=t.body,f=h||t.createElement("body");if(parseInt(i,10))for(;i--;)(u=t.createElement("div")).id=r?r[i]:a+(i+1),d.appendChild(u);return o=["&#173;",'<style id="s',a,'">',e,"</style>"].join(""),d.id=a,(h?d:f).innerHTML+=o,f.appendChild(d),h||(f.style.background="",f.style.overflow="hidden",c=s.style.overflow,s.style.overflow="hidden",s.appendChild(f)),l=n(d,e),h?d.parentNode.removeChild(d):(f.parentNode.removeChild(f),s.style.overflow=c),!!l},S=function(){var e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(i,r){r=r||t.createElement(e[i]||"div");var o=(i="on"+i)in r;return o||(r.setAttribute||(r=t.createElement("div")),r.setAttribute&&r.removeAttribute&&(r.setAttribute(i,""),o=_(r[i],"function"),_(r[i],"undefined")||(r[i]=n),r.removeAttribute(i))),r=null,o}}(),C={}.hasOwnProperty;function T(e){u.cssText=e}function _(e,t){return typeof e===t}function E(e,t){return!!~(""+e).indexOf(t)}function O(e,t){for(var i in e){var r=e[i];if(!E(r,"-")&&u[r]!==n)return"pfx"!=t||r}return!1}function D(e,t,i){var r=e.charAt(0).toUpperCase()+e.slice(1),o=(e+" "+p.join(r+" ")+r).split(" ");return _(t,"string")||_(t,"undefined")?O(o,t):function(e,t,i){for(var r in e){var o=t[e[r]];if(o!==n)return!1===i?e[r]:_(o,"function")?o.bind(i||t):o}return!1}(o=(e+" "+g.join(r+" ")+r).split(" "),t,i)}r=_(C,"undefined")||_(C.call,"undefined")?function(e,t){return t in e&&_(e.constructor.prototype[t],"undefined")}:function(e,t){return C.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError;var n=x.call(arguments,1),i=function(){if(this instanceof i){var r=function(){};r.prototype=t.prototype;var o=new r,s=t.apply(o,n.concat(x.call(arguments)));return Object(s)===s?s:o}return t.apply(e,n.concat(x.call(arguments)))};return i}),v.flexbox=function(){return D("flexWrap")},v.flexboxlegacy=function(){return D("boxDirection")},v.canvas=function(){var e=t.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},v.canvastext=function(){return!(!o.canvas||!_(t.createElement("canvas").getContext("2d").fillText,"function"))},v.webgl=function(){return!!e.WebGLRenderingContext},v.touch=function(){var n;return"ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch?n=!0:k(["@media (",f.join("touch-enabled),("),a,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(e){n=9===e.offsetTop}),n},v.geolocation=function(){return"geolocation"in navigator},v.postmessage=function(){return!!e.postMessage},v.websqldatabase=function(){return!!e.openDatabase},v.indexedDB=function(){return!!D("indexedDB",e)},v.hashchange=function(){return S("hashchange",e)&&(t.documentMode===n||t.documentMode>7)},v.history=function(){return!(!e.history||!history.pushState)},v.draganddrop=function(){var e=t.createElement("div");return"draggable"in e||"ondragstart"in e&&"ondrop"in e},v.websockets=function(){return"WebSocket"in e||"MozWebSocket"in e},v.rgba=function(){return T("background-color:rgba(150,255,150,.5)"),E(u.backgroundColor,"rgba")},v.hsla=function(){return T("background-color:hsla(120,40%,100%,.5)"),E(u.backgroundColor,"rgba")||E(u.backgroundColor,"hsla")},v.multiplebgs=function(){return T("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(u.background)},v.backgroundsize=function(){return D("backgroundSize")},v.borderimage=function(){return D("borderImage")},v.borderradius=function(){return D("borderRadius")},v.boxshadow=function(){return D("boxShadow")},v.textshadow=function(){return""===t.createElement("div").style.textShadow},v.opacity=function(){var e,t;return e="opacity:.55",T(f.join(e+";")+(t||"")),/^0.55$/.test(u.opacity)},v.cssanimations=function(){return D("animationName")},v.csscolumns=function(){return D("columnCount")},v.cssgradients=function(){var e="background-image:";return T((e+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+e)+f.join("linear-gradient(left top,#9f9, white);"+e)).slice(0,-e.length)),E(u.backgroundImage,"gradient")},v.cssreflections=function(){return D("boxReflect")},v.csstransforms=function(){return!!D("transform")},v.csstransforms3d=function(){var e=!!D("perspective");return e&&"webkitPerspective"in s.style&&k("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t,n){e=9===t.offsetLeft&&3===t.offsetHeight}),e},v.csstransitions=function(){return D("transition")},v.fontface=function(){var e;return k('@font-face {font-family:"font";src:url("https://")}',function(n,i){var r=t.getElementById("smodernizr"),o=r.sheet||r.styleSheet,s=o?o.cssRules&&o.cssRules[0]?o.cssRules[0].cssText:o.cssText||"":"";e=/src/i.test(s)&&0===s.indexOf(i.split(" ")[0])}),e},v.generatedcontent=function(){var e;return k(["#",a,"{font:0/0 a}#",a,':after{content:"',d,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){e=t.offsetHeight>=3}),e},v.video=function(){var e=t.createElement("video"),n=!1;try{(n=!!e.canPlayType)&&((n=new Boolean(n)).ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(e){}return n},v.audio=function(){var e=t.createElement("audio"),n=!1;try{(n=!!e.canPlayType)&&((n=new Boolean(n)).ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=e.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(e){}return n},v.localstorage=function(){try{return localStorage.setItem(a,a),localStorage.removeItem(a),!0}catch(e){return!1}},v.sessionstorage=function(){try{return sessionStorage.setItem(a,a),sessionStorage.removeItem(a),!0}catch(e){return!1}},v.webworkers=function(){return!!e.Worker},v.applicationcache=function(){return!!e.applicationCache},v.svg=function(){return!!t.createElementNS&&!!t.createElementNS(m,"svg").createSVGRect},v.inlinesvg=function(){var e=t.createElement("div");return e.innerHTML="<svg/>",(e.firstChild&&e.firstChild.namespaceURI)==m},v.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(h.call(t.createElementNS(m,"animate")))},v.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(h.call(t.createElementNS(m,"clipPath")))};for(var P in v)r(v,P)&&(i=P.toLowerCase(),o[i]=v[P](),b.push((o[i]?"":"no-")+i));return o.input||(o.input=function(n){for(var i=0,r=n.length;i<r;i++)w[n[i]]=!!(n[i]in c);return w.list&&(w.list=!(!t.createElement("datalist")||!e.HTMLDataListElement)),w}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),o.inputtypes=function(e){for(var i,r,o,a=0,l=e.length;a<l;a++)c.setAttribute("type",r=e[a]),(i="text"!==c.type)&&(c.value=d,c.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(r)&&c.style.WebkitAppearance!==n?(s.appendChild(c),i=(o=t.defaultView).getComputedStyle&&"textfield"!==o.getComputedStyle(c,null).WebkitAppearance&&0!==c.offsetHeight,s.removeChild(c)):/^(search|tel)$/.test(r)||(i=/^(url|email)$/.test(r)?c.checkValidity&&!1===c.checkValidity():c.value!=d)),y[e[a]]=!!i;return y}("search tel url email datetime date month week time datetime-local number range color".split(" "))),o.addTest=function(e,t){if("object"==typeof e)for(var i in e)r(e,i)&&o.addTest(i,e[i]);else{if(e=e.toLowerCase(),o[e]!==n)return o;t="function"==typeof t?t():t,s.className+=" "+(t?"":"no-")+e,o[e]=t}return o},T(""),l=c=null,function(e,t){var n,i,r=e.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,s=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,a="_html5shiv",l=0,u={};function c(){var e=p.elements;return"string"==typeof e?e.split(" "):e}function d(e){var t=u[e[a]];return t||(t={},l++,e[a]=l,u[l]=t),t}function h(e,n,r){return n||(n=t),i?n.createElement(e):(r||(r=d(n)),!(a=r.cache[e]?r.cache[e].cloneNode():s.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e)).canHaveChildren||o.test(e)||a.tagUrn?a:r.frag.appendChild(a));var a}function f(e){e||(e=t);var r,o,s,a,l,u,f=d(e);return!p.shivCSS||n||f.hasCSS||(f.hasCSS=(o="article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}",s=(r=e).createElement("p"),a=r.getElementsByTagName("head")[0]||r.documentElement,s.innerHTML="x<style>"+o+"</style>",!!a.insertBefore(s.lastChild,a.firstChild))),i||(l=e,(u=f).cache||(u.cache={},u.createElem=l.createElement,u.createFrag=l.createDocumentFragment,u.frag=u.createFrag()),l.createElement=function(e){return p.shivMethods?h(e,l,u):u.createElem(e)},l.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+c().join().replace(/[\w\-]+/g,function(e){return u.createElem(e),u.frag.createElement(e),'c("'+e+'")'})+");return n}")(p,u.frag)),e}!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",n="hidden"in e,i=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(e){n=!0,i=!0}}();var p={elements:r.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==r.shivCSS,supportsUnknownElements:i,shivMethods:!1!==r.shivMethods,type:"default",shivDocument:f,createElement:h,createDocumentFragment:function(e,n){if(e||(e=t),i)return e.createDocumentFragment();for(var r=(n=n||d(e)).frag.cloneNode(),o=0,s=c(),a=s.length;o<a;o++)r.createElement(s[o]);return r}};e.html5=p,f(t)}(this,t),o._version="2.8.3",o._prefixes=f,o._domPrefixes=g,o._cssomPrefixes=p,o.mq=function(t){var n,i=e.matchMedia||e.msMatchMedia;return i?i(t)&&i(t).matches||!1:(k("@media "+t+" { #"+a+" { position: absolute; } }",function(t){n="absolute"==(e.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position}),n)},o.hasEvent=S,o.testProp=function(e){return O([e])},o.testAllProps=D,o.testStyles=k,o.prefixed=function(e,t,n){return t?D(e,t,n):D(e,"pfx")},s.className=s.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+" js "+b.join(" "),o}(this,this.document),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var e,t;function n(){return e.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function a(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){for(var n in t)u(t,n)&&(e[n]=t[n]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,i){return _t(e,t,n,i,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function f(e){if(null==e._isValid){var n=h(e),i=t.call(n.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&i);if(e._strict&&(r=r&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function p(e){var t=d(NaN);return null!=e?c(h(t),e):h(t).userInvalidated=!0,t}t=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var g=n.momentProperties=[];function m(e,t){var n,i,r;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=h(t)),o(t._locale)||(e._locale=t._locale),g.length>0)for(n=0;n<g.length;n++)o(r=t[i=g[n]])||(e[i]=r);return e}var v=!1;function y(e){m(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,n.updateOffset(this),v=!1)}function w(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function b(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function x(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=b(t)),n}function k(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&x(e[i])!==x(t[i]))&&s++;return s+o}function S(e){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,t){var i=!0;return c(function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),i){for(var r,o=[],s=0;s<arguments.length;s++){if(r="","object"==typeof arguments[s]){r+="\n["+s+"] ";for(var a in arguments[0])r+=a+": "+arguments[0][a]+", ";r=r.slice(0,-2)}else r=arguments[s];o.push(r)}S(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),i=!1}return t.apply(this,arguments)},t)}var T,_={};function E(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),_[e]||(S(t),_[e]=!0)}function O(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function D(e,t){var n,i=c({},e);for(n in t)u(t,n)&&(r(e[n])&&r(t[n])?(i[n]={},c(i[n],e[n]),c(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)u(e,n)&&!u(t,n)&&r(e[n])&&(i[n]=c({},i[n]));return i}function P(e){null!=e&&this.set(e)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var A={};function M(e,t){var n=e.toLowerCase();A[n]=A[n+"s"]=A[t]=e}function N(e){return"string"==typeof e?A[e]||A[e.toLowerCase()]:void 0}function F(e){var t,n,i={};for(n in e)u(e,n)&&(t=N(n))&&(i[t]=e[n]);return i}var L={};function I(e,t){L[e]=t}function Y(e,t,n){var i=""+Math.abs(e),r=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},R={};function $(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(R[e]=r),t&&(R[t[0]]=function(){return Y(r.apply(this,arguments),t[1],t[2])}),n&&(R[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function q(e,t){return e.isValid()?(t=W(t,e.localeData()),z[t]=z[t]||function(e){var t,n,i,r=e.match(j);for(t=0,n=r.length;t<n;t++)R[r[t]]?r[t]=R[r[t]]:r[t]=(i=r[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(t){var i,o="";for(i=0;i<n;i++)o+=O(r[i])?r[i].call(t,e):r[i];return o}}(t),z[t](e)):e.localeData().invalidDate()}function W(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(H.lastIndex=0;n>=0&&H.test(e);)e=e.replace(H,i),H.lastIndex=0,n-=1;return e}var V=/\d/,X=/\d\d/,B=/\d{3}/,U=/\d{4}/,G=/[+-]?\d{6}/,Z=/\d\d?/,Q=/\d\d\d\d?/,K=/\d\d\d\d\d\d?/,J=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,ne=/\d+/,ie=/[+-]?\d+/,re=/Z|[+-]\d\d:?\d\d/gi,oe=/Z|[+-]\d\d(?::?\d\d)?/gi,se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ae={};function le(e,t,n){ae[e]=O(t)?t:function(e,i){return e&&n?n:t}}function ue(e,t){return u(ae,e)?ae[e](t._strict,t._locale):new RegExp(ce(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r})))}function ce(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var de={};function he(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),s(t)&&(i=function(e,n){n[t]=x(e)}),n=0;n<e.length;n++)de[e[n]]=i}function fe(e,t){he(e,function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)})}var pe=0,ge=1,me=2,ve=3,ye=4,we=5,be=6,xe=7,ke=8;function Se(e){return Ce(e)?366:365}function Ce(e){return e%4==0&&e%100!=0||e%400==0}$("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),$(0,["YY",2],0,function(){return this.year()%100}),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),M("year","y"),I("year",1),le("Y",ie),le("YY",Z,X),le("YYYY",ee,U),le("YYYYY",te,G),le("YYYYYY",te,G),he(["YYYYY","YYYYYY"],pe),he("YYYY",function(e,t){t[pe]=2===e.length?n.parseTwoDigitYear(e):x(e)}),he("YY",function(e,t){t[pe]=n.parseTwoDigitYear(e)}),he("Y",function(e,t){t[pe]=parseInt(e,10)}),n.parseTwoDigitYear=function(e){return x(e)+(x(e)>68?1900:2e3)};var Te,_e=Ee("FullYear",!0);function Ee(e,t){return function(i){return null!=i?(De(this,e,i),n.updateOffset(this,t),this):Oe(this,e)}}function Oe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function De(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ce(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Pe(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Pe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,i=(t%(n=12)+n)%n;return e+=(t-i)/12,1===i?Ce(e)?29:28:31-i%7%2}Te=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},$("M",["MM",2],"Mo",function(){return this.month()+1}),$("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),$("MMMM",0,0,function(e){return this.localeData().months(this,e)}),M("month","M"),I("month",8),le("M",Z),le("MM",Z,X),le("MMM",function(e,t){return t.monthsShortRegex(e)}),le("MMMM",function(e,t){return t.monthsRegex(e)}),he(["M","MM"],function(e,t){t[ge]=x(e)-1}),he(["MMM","MMMM"],function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[ge]=r:h(n).invalidMonth=e});var Ae=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Me="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Fe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=x(t);else if(!s(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Pe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Le(e){return null!=e?(Fe(this,e),n.updateOffset(this,!0),this):Oe(this,"Month")}var Ie=se;var Ye=se;function je(){function e(e,t){return t.length-e.length}var t,n,i=[],r=[],o=[];for(t=0;t<12;t++)n=d([2e3,t]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(e),r.sort(e),o.sort(e),t=0;t<12;t++)i[t]=ce(i[t]),r[t]=ce(r[t]);for(t=0;t<24;t++)o[t]=ce(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function He(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function ze(e,t,n){var i=7+t-n;return-((7+He(e,0,i).getUTCDay()-t)%7)+i-1}function Re(e,t,n,i,r){var o,s,a=1+7*(t-1)+(7+n-i)%7+ze(e,i,r);return a<=0?s=Se(o=e-1)+a:a>Se(e)?(o=e+1,s=a-Se(e)):(o=e,s=a),{year:o,dayOfYear:s}}function $e(e,t,n){var i,r,o=ze(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?i=s+qe(r=e.year()-1,t,n):s>qe(e.year(),t,n)?(i=s-qe(e.year(),t,n),r=e.year()+1):(r=e.year(),i=s),{week:i,year:r}}function qe(e,t,n){var i=ze(e,t,n),r=ze(e+1,t,n);return(Se(e)-i+r)/7}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),M("week","w"),M("isoWeek","W"),I("week",5),I("isoWeek",5),le("w",Z),le("ww",Z,X),le("W",Z),le("WW",Z,X),fe(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=x(e)});$("d",0,"do","day"),$("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),$("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),$("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),M("day","d"),M("weekday","e"),M("isoWeekday","E"),I("day",11),I("weekday",11),I("isoWeekday",11),le("d",Z),le("e",Z),le("E",Z),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),fe(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:h(n).invalidWeekday=e}),fe(["d","e","E"],function(e,t,n,i){t[i]=x(e)});var We="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Xe="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Be=se;var Ue=se;var Ge=se;function Ze(){function e(e,t){return t.length-e.length}var t,n,i,r,o,s=[],a=[],l=[],u=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),s.push(i),a.push(r),l.push(o),u.push(i),u.push(r),u.push(o);for(s.sort(e),a.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)a[t]=ce(a[t]),l[t]=ce(l[t]),u[t]=ce(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Qe(){return this.hours()%12||12}function Ke(e,t){$(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Je(e,t){return t._meridiemParse}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Qe),$("k",["kk",2],0,function(){return this.hours()||24}),$("hmm",0,0,function(){return""+Qe.apply(this)+Y(this.minutes(),2)}),$("hmmss",0,0,function(){return""+Qe.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)}),$("Hmm",0,0,function(){return""+this.hours()+Y(this.minutes(),2)}),$("Hmmss",0,0,function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)}),Ke("a",!0),Ke("A",!1),M("hour","h"),I("hour",13),le("a",Je),le("A",Je),le("H",Z),le("h",Z),le("k",Z),le("HH",Z,X),le("hh",Z,X),le("kk",Z,X),le("hmm",Q),le("hmmss",K),le("Hmm",Q),le("Hmmss",K),he(["H","HH"],ve),he(["k","kk"],function(e,t,n){var i=x(e);t[ve]=24===i?0:i}),he(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),he(["h","hh"],function(e,t,n){t[ve]=x(e),h(n).bigHour=!0}),he("hmm",function(e,t,n){var i=e.length-2;t[ve]=x(e.substr(0,i)),t[ye]=x(e.substr(i)),h(n).bigHour=!0}),he("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[ve]=x(e.substr(0,i)),t[ye]=x(e.substr(i,2)),t[we]=x(e.substr(r)),h(n).bigHour=!0}),he("Hmm",function(e,t,n){var i=e.length-2;t[ve]=x(e.substr(0,i)),t[ye]=x(e.substr(i))}),he("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[ve]=x(e.substr(0,i)),t[ye]=x(e.substr(i,2)),t[we]=x(e.substr(r))});var et,tt=Ee("Hours",!0),nt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Me,monthsShort:Ne,week:{dow:0,doy:6},weekdays:We,weekdaysMin:Xe,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},it={},rt={};function ot(e){return e?e.toLowerCase().replace("_","-"):e}function st(e){var t=null;if(!it[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=et._abbr,require("./locale/"+e),at(t)}catch(e){}return it[e]}function at(e,t){var n;return e&&(n=o(t)?ut(e):lt(e,t))&&(et=n),et._abbr}function lt(e,t){if(null!==t){var n=nt;if(t.abbr=e,null!=it[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=it[e]._config;else if(null!=t.parentLocale){if(null==it[t.parentLocale])return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;n=it[t.parentLocale]._config}return it[e]=new P(D(n,t)),rt[e]&&rt[e].forEach(function(e){lt(e.name,e.config)}),at(e),it[e]}return delete it[e],null}function ut(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return et;if(!i(e)){if(t=st(e))return t;e=[e]}return function(e){for(var t,n,i,r,o=0;o<e.length;){for(t=(r=ot(e[o]).split("-")).length,n=(n=ot(e[o+1]))?n.split("-"):null;t>0;){if(i=st(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&k(r,n,!0)>=t-1)break;t--}o++}return null}(e)}function ct(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ge]<0||n[ge]>11?ge:n[me]<1||n[me]>Pe(n[pe],n[ge])?me:n[ve]<0||n[ve]>24||24===n[ve]&&(0!==n[ye]||0!==n[we]||0!==n[be])?ve:n[ye]<0||n[ye]>59?ye:n[we]<0||n[we]>59?we:n[be]<0||n[be]>999?be:-1,h(e)._overflowDayOfYear&&(t<pe||t>me)&&(t=me),h(e)._overflowWeeks&&-1===t&&(t=xe),h(e)._overflowWeekday&&-1===t&&(t=ke),h(e).overflow=t),e}function dt(e,t,n){return null!=e?e:null!=t?t:n}function ht(e){var t,i,r,o,s,a=[];if(!e._d){var l,u;for(l=e,u=new Date(n.now()),r=l._useUTC?[u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()]:[u.getFullYear(),u.getMonth(),u.getDate()],e._w&&null==e._a[me]&&null==e._a[ge]&&function(e){var t,n,i,r,o,s,a,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,s=4,n=dt(t.GG,e._a[pe],$e(Et(),1,4).year),i=dt(t.W,1),((r=dt(t.E,1))<1||r>7)&&(l=!0);else{o=e._locale._week.dow,s=e._locale._week.doy;var u=$e(Et(),o,s);n=dt(t.gg,e._a[pe],u.year),i=dt(t.w,u.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(l=!0)):r=o}i<1||i>qe(n,o,s)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(a=Re(n,i,r,o,s),e._a[pe]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(s=dt(e._a[pe],r[pe]),(e._dayOfYear>Se(s)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),i=He(s,0,e._dayOfYear),e._a[ge]=i.getUTCMonth(),e._a[me]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ve]&&0===e._a[ye]&&0===e._a[we]&&0===e._a[be]&&(e._nextDay=!0,e._a[ve]=0),e._d=(e._useUTC?He:function(e,t,n,i,r,o,s){var a=new Date(e,t,n,i,r,o,s);return e<100&&e>=0&&isFinite(a.getFullYear())&&a.setFullYear(e),a}).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ve]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(h(e).weekdayMismatch=!0)}}var ft=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,mt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],vt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],yt=/^\/?Date\((\-?\d+)/i;function wt(e){var t,n,i,r,o,s,a=e._i,l=ft.exec(a)||pt.exec(a);if(l){for(h(e).iso=!0,t=0,n=mt.length;t<n;t++)if(mt[t][1].exec(l[1])){r=mt[t][0],i=!1!==mt[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=vt.length;t<n;t++)if(vt[t][1].exec(l[3])){o=(l[2]||" ")+vt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!i&&null!=o)return void(e._isValid=!1);if(l[4]){if(!gt.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=r+(o||"")+(s||""),Ct(e)}else e._isValid=!1}var bt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function xt(e,t,n,i,r,o){var s=[function(e){var t=parseInt(e,10);{if(t<=49)return 2e3+t;if(t<=999)return 1900+t}return t}(e),Ne.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return o&&s.push(parseInt(o,10)),s}var kt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function St(e){var t,n,i,r=bt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());if(r){var o=xt(r[4],r[3],r[2],r[5],r[6],r[7]);if(t=r[1],n=o,i=e,t&&Ve.indexOf(t)!==new Date(n[0],n[1],n[2]).getDay()&&(h(i).weekdayMismatch=!0,i._isValid=!1,1))return;e._a=o,e._tzm=function(e,t,n){if(e)return kt[e];if(t)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(r[8],r[9],r[10]),e._d=He.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function Ct(e){if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],h(e).empty=!0;var t,i,r,o,s,a,l,c,d=""+e._i,f=d.length,p=0;for(r=W(e._f,e._locale).match(j)||[],t=0;t<r.length;t++)o=r[t],(i=(d.match(ue(o,e))||[])[0])&&((s=d.substr(0,d.indexOf(i))).length>0&&h(e).unusedInput.push(s),d=d.slice(d.indexOf(i)+i.length),p+=i.length),R[o]?(i?h(e).empty=!1:h(e).unusedTokens.push(o),a=o,c=e,null!=(l=i)&&u(de,a)&&de[a](l,c._a,c,a)):e._strict&&!i&&h(e).unusedTokens.push(o);h(e).charsLeftOver=f-p,d.length>0&&h(e).unusedInput.push(d),e._a[ve]<=12&&!0===h(e).bigHour&&e._a[ve]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[ve]=function(e,t,n){var i;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[ve],e._meridiem),ht(e),ct(e)}else St(e);else wt(e)}function Tt(e){var t,u,d,g,v=e._i,b=e._f;return e._locale=e._locale||ut(e._l),null===v||void 0===b&&""===v?p({nullInput:!0}):("string"==typeof v&&(e._i=v=e._locale.preparse(v)),w(v)?new y(ct(v)):(a(v)?e._d=v:i(b)?function(e){var t,n,i,r,o;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)o=0,t=m({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Ct(t),f(t)&&(o+=h(t).charsLeftOver,o+=10*h(t).unusedTokens.length,h(t).score=o,(null==i||o<i)&&(i=o,n=t));c(e,n||t)}(e):b?Ct(e):o(u=(t=e)._i)?t._d=new Date(n.now()):a(u)?t._d=new Date(u.valueOf()):"string"==typeof u?(d=t,null===(g=yt.exec(d._i))?(wt(d),!1===d._isValid&&(delete d._isValid,St(d),!1===d._isValid&&(delete d._isValid,n.createFromInputFallback(d)))):d._d=new Date(+g[1])):i(u)?(t._a=l(u.slice(0),function(e){return parseInt(e,10)}),ht(t)):r(u)?function(e){if(!e._d){var t=F(e._i);e._a=l([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ht(e)}}(t):s(u)?t._d=new Date(u):n.createFromInputFallback(t),f(e)||(e._d=null),e))}function _t(e,t,n,o,s){var a,l={};return!0!==n&&!1!==n||(o=n,n=void 0),(r(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||i(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=n,l._i=e,l._f=t,l._strict=o,(a=new y(ct(Tt(l))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Et(e,t,n,i){return _t(e,t,n,i,!1)}n.createFromInputFallback=C("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),n.ISO_8601=function(){},n.RFC_2822=function(){};var Ot=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Et.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p()}),Dt=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Et.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:p()});function Pt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Et();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var At=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Mt(e){var t=F(e),n=t.year||0,i=t.quarter||0,r=t.month||0,o=t.week||0,s=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Te.call(At,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,i=0;i<At.length;++i)if(e[At[i]]){if(n)return!1;parseFloat(e[At[i]])!==x(e[At[i]])&&(n=!0)}return!0}(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=ut(),this._bubble()}function Nt(e){return e instanceof Mt}function Ft(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Lt(e,t){$(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+Y(~~(e/60),2)+t+Y(~~e%60,2)})}Lt("Z",":"),Lt("ZZ",""),le("Z",oe),le("ZZ",oe),he(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Yt(oe,e)});var It=/([\+\-]|\d\d)/gi;function Yt(e,t){var n=(t||"").match(e);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(It)||["-",0,0],r=60*i[1]+x(i[2]);return 0===r?0:"+"===i[0]?r:-r}function jt(e,t){var i,r;return t._isUTC?(i=t.clone(),r=(w(e)||a(e)?e.valueOf():Et(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+r),n.updateOffset(i,!1),i):Et(e).local()}function Ht(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function zt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}n.updateOffset=function(){};var Rt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,$t=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qt(e,t){var n,i,r,o=e,a=null;return Nt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(o={},t?o[t]=e:o.milliseconds=e):(a=Rt.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:x(a[me])*n,h:x(a[ve])*n,m:x(a[ye])*n,s:x(a[we])*n,ms:x(Ft(1e3*a[be]))*n}):(a=$t.exec(e))?(n="-"===a[1]?-1:(a[1],1),o={y:Wt(a[2],n),M:Wt(a[3],n),w:Wt(a[4],n),d:Wt(a[5],n),h:Wt(a[6],n),m:Wt(a[7],n),s:Wt(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=jt(t,e),e.isBefore(t)?n=Vt(e,t):((n=Vt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Et(o.from),Et(o.to)),(o={}).ms=r.milliseconds,o.M=r.months),i=new Mt(o),Nt(e)&&u(e,"_locale")&&(i._locale=e._locale),i}function Wt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Vt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Xt(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),Bt(this,qt(n="string"==typeof n?+n:n,i),e),this}}function Bt(e,t,i,r){var o=t._milliseconds,s=Ft(t._days),a=Ft(t._months);e.isValid()&&(r=null==r||r,a&&Fe(e,Oe(e,"Month")+a*i),s&&De(e,"Date",Oe(e,"Date")+s*i),o&&e._d.setTime(e._d.valueOf()+o*i),r&&n.updateOffset(e,s||a))}qt.fn=Mt.prototype,qt.invalid=function(){return qt(NaN)};var Ut=Xt(1,"add"),Gt=Xt(-1,"subtract");function Zt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function Qt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ut(e))&&(this._locale=t),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Kt=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Jt(){return this._locale}function en(e,t){$(0,[e,e.length],0,t)}function tn(e,t,n,i,r){var o;return null==e?$e(this,i,r).year:(t>(o=qe(e,i,r))&&(t=o),function(e,t,n,i,r){var o=Re(e,t,n,i,r),s=He(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}.call(this,e,t,n,i,r))}$(0,["gg",2],0,function(){return this.weekYear()%100}),$(0,["GG",2],0,function(){return this.isoWeekYear()%100}),en("gggg","weekYear"),en("ggggg","weekYear"),en("GGGG","isoWeekYear"),en("GGGGG","isoWeekYear"),M("weekYear","gg"),M("isoWeekYear","GG"),I("weekYear",1),I("isoWeekYear",1),le("G",ie),le("g",ie),le("GG",Z,X),le("gg",Z,X),le("GGGG",ee,U),le("gggg",ee,U),le("GGGGG",te,G),le("ggggg",te,G),fe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=x(e)}),fe(["gg","GG"],function(e,t,i,r){t[r]=n.parseTwoDigitYear(e)}),$("Q",0,"Qo","quarter"),M("quarter","Q"),I("quarter",7),le("Q",V),he("Q",function(e,t){t[ge]=3*(x(e)-1)}),$("D",["DD",2],"Do","date"),M("date","D"),I("date",9),le("D",Z),le("DD",Z,X),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he(["D","DD"],me),he("Do",function(e,t){t[me]=x(e.match(Z)[0])});var nn=Ee("Date",!0);$("DDD",["DDDD",3],"DDDo","dayOfYear"),M("dayOfYear","DDD"),I("dayOfYear",4),le("DDD",J),le("DDDD",B),he(["DDD","DDDD"],function(e,t,n){n._dayOfYear=x(e)}),$("m",["mm",2],0,"minute"),M("minute","m"),I("minute",14),le("m",Z),le("mm",Z,X),he(["m","mm"],ye);var rn=Ee("Minutes",!1);$("s",["ss",2],0,"second"),M("second","s"),I("second",15),le("s",Z),le("ss",Z,X),he(["s","ss"],we);var on,sn=Ee("Seconds",!1);for($("S",0,0,function(){return~~(this.millisecond()/100)}),$(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),M("millisecond","ms"),I("millisecond",16),le("S",J,V),le("SS",J,X),le("SSS",J,B),on="SSSS";on.length<=9;on+="S")le(on,ne);function an(e,t){t[be]=x(1e3*("0."+e))}for(on="S";on.length<=9;on+="S")he(on,an);var ln=Ee("Milliseconds",!1);$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var un=y.prototype;function cn(e){return e}un.add=Ut,un.calendar=function(e,t){var i=e||Et(),r=jt(i,this).startOf("day"),o=n.calendarFormat(this,r)||"sameElse",s=t&&(O(t[o])?t[o].call(this,i):t[o]);return this.format(s||this.localeData().calendar(o,this,Et(i)))},un.clone=function(){return new y(this)},un.diff=function(e,t,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=jt(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=N(t)){case"year":o=Zt(this,i)/12;break;case"month":o=Zt(this,i);break;case"quarter":o=Zt(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:b(o)},un.endOf=function(e){return void 0===(e=N(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},un.format=function(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=q(this,e);return this.localeData().postformat(t)},un.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Et(e).isValid())?qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},un.fromNow=function(e){return this.from(Et(),e)},un.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Et(e).isValid())?qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},un.toNow=function(e){return this.to(Et(),e)},un.get=function(e){return O(this[e=N(e)])?this[e]():this},un.invalidAt=function(){return h(this).overflow},un.isAfter=function(e,t){var n=w(e)?e:Et(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(o(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},un.isBefore=function(e,t){var n=w(e)?e:Et(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(o(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},un.isBetween=function(e,t,n,i){return("("===(i=i||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))},un.isSame=function(e,t){var n,i=w(e)?e:Et(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=N(t||"millisecond"))?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},un.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},un.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},un.isValid=function(){return f(this)},un.lang=Kt,un.locale=Qt,un.localeData=Jt,un.max=Dt,un.min=Ot,un.parsingFlags=function(){return c({},h(this))},un.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:L[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=F(e)),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit]);else if(O(this[e=N(e)]))return this[e](t);return this},un.startOf=function(e){switch(e=N(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},un.subtract=Gt,un.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},un.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},un.toDate=function(){return new Date(this.valueOf())},un.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?q(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",q(n,"Z")):q(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},un.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=t+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+r)},un.toJSON=function(){return this.isValid()?this.toISOString():null},un.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},un.unix=function(){return Math.floor(this.valueOf()/1e3)},un.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},un.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},un.year=_e,un.isLeapYear=function(){return Ce(this.year())},un.weekYear=function(e){return tn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},un.isoWeekYear=function(e){return tn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},un.quarter=un.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},un.month=Le,un.daysInMonth=function(){return Pe(this.year(),this.month())},un.week=un.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},un.isoWeek=un.isoWeeks=function(e){var t=$e(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},un.weeksInYear=function(){var e=this.localeData()._week;return qe(this.year(),e.dow,e.doy)},un.isoWeeksInYear=function(){return qe(this.year(),1,4)},un.date=nn,un.day=un.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-i,"d")):i},un.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},un.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=(n=e,i=this.localeData(),"string"==typeof n?i.weekdaysParse(n)%7||7:isNaN(n)?null:n);return this.day(this.day()%7?t:t-7)}return this.day()||7;var n,i},un.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},un.hour=un.hours=tt,un.minute=un.minutes=rn,un.second=un.seconds=sn,un.millisecond=un.milliseconds=ln,un.utcOffset=function(e,t,i){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Yt(oe,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(r=Ht(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Bt(this,qt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Ht(this)},un.utc=function(e){return this.utcOffset(0,e)},un.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ht(this),"m")),this},un.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Yt(re,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},un.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Et(e).utcOffset():0,(this.utcOffset()-e)%60==0)},un.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},un.isLocal=function(){return!!this.isValid()&&!this._isUTC},un.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},un.isUtc=zt,un.isUTC=zt,un.zoneAbbr=function(){return this._isUTC?"UTC":""},un.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},un.dates=C("dates accessor is deprecated. Use date instead.",nn),un.months=C("months accessor is deprecated. Use month instead",Le),un.years=C("years accessor is deprecated. Use year instead",_e),un.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),un.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(m(e,this),(e=Tt(e))._a){var t=e._isUTC?d(e._a):Et(e._a);this._isDSTShifted=this.isValid()&&k(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var dn=P.prototype;function hn(e,t,n,i){var r=ut(),o=d().set(i,t);return r[n](o,e)}function fn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return hn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=hn(e,i,n,"month");return r}function pn(e,t,n,i){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var r,o=ut(),a=e?o._week.dow:0;if(null!=n)return hn(t,(n+a)%7,i,"day");var l=[];for(r=0;r<7;r++)l[r]=hn(t,(r+a)%7,i,"day");return l}dn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return O(i)?i.call(t,n):i},dn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},dn.invalidDate=function(){return this._invalidDate},dn.ordinal=function(e){return this._ordinal.replace("%d",e)},dn.preparse=cn,dn.postformat=cn,dn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return O(r)?r(e,t,n,i):r.replace(/%d/i,e)},dn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)},dn.set=function(e){var t,n;for(n in e)O(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},dn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ae).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},dn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ae.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},dn.monthsParse=function(e,t,n){var i,r,o;if(this._monthsParseExact)return function(e,t,n){var i,r,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=d([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=Te.call(this._shortMonthsParse,s))?r:null:-1!==(r=Te.call(this._longMonthsParse,s))?r:null:"MMM"===t?-1!==(r=Te.call(this._shortMonthsParse,s))?r:-1!==(r=Te.call(this._longMonthsParse,s))?r:null:-1!==(r=Te.call(this._longMonthsParse,s))?r:-1!==(r=Te.call(this._shortMonthsParse,s))?r:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=d([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},dn.monthsRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||je.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Ye),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},dn.monthsShortRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||je.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=Ie),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},dn.week=function(e){return $e(e,this._week.dow,this._week.doy).week},dn.firstDayOfYear=function(){return this._week.doy},dn.firstDayOfWeek=function(){return this._week.dow},dn.weekdays=function(e,t){return e?i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone},dn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},dn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},dn.weekdaysParse=function(e,t,n){var i,r,o;if(this._weekdaysParseExact)return function(e,t,n){var i,r,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=d([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=Te.call(this._weekdaysParse,s))?r:null:"ddd"===t?-1!==(r=Te.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=Te.call(this._minWeekdaysParse,s))?r:null:"dddd"===t?-1!==(r=Te.call(this._weekdaysParse,s))?r:-1!==(r=Te.call(this._shortWeekdaysParse,s))?r:-1!==(r=Te.call(this._minWeekdaysParse,s))?r:null:"ddd"===t?-1!==(r=Te.call(this._shortWeekdaysParse,s))?r:-1!==(r=Te.call(this._weekdaysParse,s))?r:-1!==(r=Te.call(this._minWeekdaysParse,s))?r:null:-1!==(r=Te.call(this._minWeekdaysParse,s))?r:-1!==(r=Te.call(this._weekdaysParse,s))?r:-1!==(r=Te.call(this._shortWeekdaysParse,s))?r:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=d([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},dn.weekdaysRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Be),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},dn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ue),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},dn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ge),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},dn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},dn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},at("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===x(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),n.lang=C("moment.lang is deprecated. Use moment.locale instead.",at),n.langData=C("moment.langData is deprecated. Use moment.localeData instead.",ut);var gn=Math.abs;function mn(e,t,n,i){var r=qt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function vn(e){return e<0?Math.floor(e):Math.ceil(e)}function yn(e){return 4800*e/146097}function wn(e){return 146097*e/4800}function bn(e){return function(){return this.as(e)}}var xn=bn("ms"),kn=bn("s"),Sn=bn("m"),Cn=bn("h"),Tn=bn("d"),_n=bn("w"),En=bn("M"),On=bn("y");function Dn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Pn=Dn("milliseconds"),An=Dn("seconds"),Mn=Dn("minutes"),Nn=Dn("hours"),Fn=Dn("days"),Ln=Dn("months"),In=Dn("years");var Yn=Math.round,jn={ss:44,s:45,m:45,h:22,d:26,M:11};var Hn=Math.abs;function zn(e){return(e>0)-(e<0)||+e}function Rn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Hn(this._milliseconds)/1e3,i=Hn(this._days),r=Hn(this._months);t=b((e=b(n/60))/60),n%=60,e%=60;var o=b(r/12),s=r%=12,a=i,l=t,u=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var h=d<0?"-":"",f=zn(this._months)!==zn(d)?"-":"",p=zn(this._days)!==zn(d)?"-":"",g=zn(this._milliseconds)!==zn(d)?"-":"";return h+"P"+(o?f+o+"Y":"")+(s?f+s+"M":"")+(a?p+a+"D":"")+(l||u||c?"T":"")+(l?g+l+"H":"")+(u?g+u+"M":"")+(c?g+c+"S":"")}var $n=Mt.prototype;return $n.isValid=function(){return this._isValid},$n.abs=function(){var e=this._data;return this._milliseconds=gn(this._milliseconds),this._days=gn(this._days),this._months=gn(this._months),e.milliseconds=gn(e.milliseconds),e.seconds=gn(e.seconds),e.minutes=gn(e.minutes),e.hours=gn(e.hours),e.months=gn(e.months),e.years=gn(e.years),this},$n.add=function(e,t){return mn(this,e,t,1)},$n.subtract=function(e,t){return mn(this,e,t,-1)},$n.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=N(e))||"year"===e)return t=this._days+i/864e5,n=this._months+yn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(wn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},$n.asMilliseconds=xn,$n.asSeconds=kn,$n.asMinutes=Sn,$n.asHours=Cn,$n.asDays=Tn,$n.asWeeks=_n,$n.asMonths=En,$n.asYears=On,$n.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN},$n._bubble=function(){var e,t,n,i,r,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*vn(wn(a)+s),s=0,a=0),l.milliseconds=o%1e3,e=b(o/1e3),l.seconds=e%60,t=b(e/60),l.minutes=t%60,n=b(t/60),l.hours=n%24,a+=r=b(yn(s+=b(n/24))),s-=vn(wn(r)),i=b(a/12),a%=12,l.days=s,l.months=a,l.years=i,this},$n.clone=function(){return qt(this)},$n.get=function(e){return e=N(e),this.isValid()?this[e+"s"]():NaN},$n.milliseconds=Pn,$n.seconds=An,$n.minutes=Mn,$n.hours=Nn,$n.days=Fn,$n.weeks=function(){return b(this.days()/7)},$n.months=Ln,$n.years=In,$n.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t,n,i,r,o,s,a,l,u,c,d,h=this.localeData(),f=(n=!e,i=h,r=qt(t=this).abs(),o=Yn(r.as("s")),s=Yn(r.as("m")),a=Yn(r.as("h")),l=Yn(r.as("d")),u=Yn(r.as("M")),c=Yn(r.as("y")),(d=o<=jn.ss&&["s",o]||o<jn.s&&["ss",o]||s<=1&&["m"]||s<jn.m&&["mm",s]||a<=1&&["h"]||a<jn.h&&["hh",a]||l<=1&&["d"]||l<jn.d&&["dd",l]||u<=1&&["M"]||u<jn.M&&["MM",u]||c<=1&&["y"]||["yy",c])[2]=n,d[3]=+t>0,d[4]=i,function(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}.apply(null,d));return e&&(f=h.pastFuture(+this,f)),h.postformat(f)},$n.toISOString=Rn,$n.toString=Rn,$n.toJSON=Rn,$n.locale=Qt,$n.localeData=Jt,$n.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Rn),$n.lang=Kt,$("X",0,0,"unix"),$("x",0,0,"valueOf"),le("x",ie),le("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),he("x",function(e,t,n){n._d=new Date(x(e))}),n.version="2.20.1",e=Et,n.fn=un,n.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},n.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=d,n.unix=function(e){return Et(1e3*e)},n.months=function(e,t){return fn(e,t,"months")},n.isDate=a,n.locale=at,n.invalid=p,n.duration=qt,n.isMoment=w,n.weekdays=function(e,t,n){return pn(e,t,n,"weekdays")},n.parseZone=function(){return Et.apply(null,arguments).parseZone()},n.localeData=ut,n.isDuration=Nt,n.monthsShort=function(e,t){return fn(e,t,"monthsShort")},n.weekdaysMin=function(e,t,n){return pn(e,t,n,"weekdaysMin")},n.defineLocale=lt,n.updateLocale=function(e,t){if(null!=t){var n,i,r=nt;null!=(i=st(e))&&(r=i._config),(n=new P(t=D(r,t))).parentLocale=it[e],it[e]=n,at(e)}else null!=it[e]&&(null!=it[e].parentLocale?it[e]=it[e].parentLocale:null!=it[e]&&delete it[e]);return it[e]},n.locales=function(){return T(it)},n.weekdaysShort=function(e,t,n){return pn(e,t,n,"weekdaysShort")},n.normalizeUnits=N,n.relativeTimeRounding=function(e){return void 0===e?Yn:"function"==typeof e&&(Yn=e,!0)},n.relativeTimeThreshold=function(e,t){return void 0!==jn[e]&&(void 0===t?jn[e]:(jn[e]=t,"s"===e&&(jn.ss=t-1),!0))},n.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},n.prototype=un,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},n}),function(){"use strict";function e(t,i){var r;if(i=i||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=i.touchBoundary||10,this.layer=t,this.tapDelay=i.tapDelay||200,this.tapTimeout=i.tapTimeout||700,!e.notNeeded(t)){for(var o=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],s=0,a=o.length;s<a;s++)this[o[s]]=l(this[o[s]],this);n&&(t.addEventListener("mouseover",this.onMouse,!0),t.addEventListener("mousedown",this.onMouse,!0),t.addEventListener("mouseup",this.onMouse,!0)),t.addEventListener("click",this.onClick,!0),t.addEventListener("touchstart",this.onTouchStart,!1),t.addEventListener("touchmove",this.onTouchMove,!1),t.addEventListener("touchend",this.onTouchEnd,!1),t.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(t.removeEventListener=function(e,n,i){var r=Node.prototype.removeEventListener;"click"===e?r.call(t,e,n.hijacked||n,i):r.call(t,e,n,i)},t.addEventListener=function(e,n,i){var r=Node.prototype.addEventListener;"click"===e?r.call(t,e,n.hijacked||(n.hijacked=function(e){e.propagationStopped||n(e)}),i):r.call(t,e,n,i)}),"function"==typeof t.onclick&&(r=t.onclick,t.addEventListener("click",function(e){r(e)},!1),t.onclick=null)}function l(e,t){return function(){return e.apply(t,arguments)}}}var t=navigator.userAgent.indexOf("Windows Phone")>=0,n=navigator.userAgent.indexOf("Android")>0&&!t,i=/iP(ad|hone|od)/.test(navigator.userAgent)&&!t,r=i&&/OS 4_\d(_\d)?/.test(navigator.userAgent),o=i&&/OS [6-7]_\d/.test(navigator.userAgent),s=navigator.userAgent.indexOf("BB10")>0;e.prototype.needsClick=function(e){switch(e.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e.disabled)return!0;break;case"input":if(i&&"file"===e.type||e.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(e.className)},e.prototype.needsFocus=function(e){switch(e.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!n;case"input":switch(e.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!e.disabled&&!e.readOnly;default:return/\bneedsfocus\b/.test(e.className)}},e.prototype.sendClick=function(e,t){var n,i;document.activeElement&&document.activeElement!==e&&document.activeElement.blur(),i=t.changedTouches[0],(n=document.createEvent("MouseEvents")).initMouseEvent(this.determineEventType(e),!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,e.dispatchEvent(n)},e.prototype.determineEventType=function(e){return n&&"select"===e.tagName.toLowerCase()?"mousedown":"click"},e.prototype.focus=function(e){var t;i&&e.setSelectionRange&&0!==e.type.indexOf("date")&&"time"!==e.type&&"month"!==e.type?(t=e.value.length,e.setSelectionRange(t,t)):e.focus()},e.prototype.updateScrollParent=function(e){var t,n;if(!(t=e.fastClickScrollParent)||!t.contains(e)){n=e;do{if(n.scrollHeight>n.offsetHeight){t=n,e.fastClickScrollParent=n;break}n=n.parentElement}while(n)}t&&(t.fastClickLastScrollTop=t.scrollTop)},e.prototype.getTargetElementFromEventTarget=function(e){return e.nodeType===Node.TEXT_NODE?e.parentNode:e},e.prototype.onTouchStart=function(e){var t,n,o;if(e.targetTouches.length>1)return!0;if(t=this.getTargetElementFromEventTarget(e.target),n=e.targetTouches[0],i){if((o=window.getSelection()).rangeCount&&!o.isCollapsed)return!0;if(!r){if(n.identifier&&n.identifier===this.lastTouchIdentifier)return e.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(t)}}return this.trackingClick=!0,this.trackingClickStart=e.timeStamp,this.targetElement=t,this.touchStartX=n.pageX,this.touchStartY=n.pageY,e.timeStamp-this.lastClickTime<this.tapDelay&&e.preventDefault(),!0},e.prototype.touchHasMoved=function(e){var t=e.changedTouches[0],n=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>n||Math.abs(t.pageY-this.touchStartY)>n},e.prototype.onTouchMove=function(e){return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(e.target)||this.touchHasMoved(e))&&(this.trackingClick=!1,this.targetElement=null),!0)},e.prototype.findControl=function(e){return void 0!==e.control?e.control:e.htmlFor?document.getElementById(e.htmlFor):e.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},e.prototype.onTouchEnd=function(e){var t,s,a,l,u,c=this.targetElement;if(!this.trackingClick)return!0;if(e.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(e.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=e.timeStamp,s=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,o&&(u=e.changedTouches[0],(c=document.elementFromPoint(u.pageX-window.pageXOffset,u.pageY-window.pageYOffset)||c).fastClickScrollParent=this.targetElement.fastClickScrollParent),"label"===(a=c.tagName.toLowerCase())){if(t=this.findControl(c)){if(this.focus(c),n)return!1;c=t}}else if(this.needsFocus(c))return e.timeStamp-s>100||i&&window.top!==window&&"input"===a?(this.targetElement=null,!1):(this.focus(c),this.sendClick(c,e),i&&"select"===a||(this.targetElement=null,e.preventDefault()),!1);return!(!i||r||!(l=c.fastClickScrollParent)||l.fastClickLastScrollTop===l.scrollTop)||(this.needsClick(c)||(e.preventDefault(),this.sendClick(c,e)),!1)},e.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},e.prototype.onMouse=function(e){return!this.targetElement||(!!e.forwardedTouchEvent||(!e.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(e.stopImmediatePropagation?e.stopImmediatePropagation():e.propagationStopped=!0,e.stopPropagation(),e.preventDefault(),!1))))},e.prototype.onClick=function(e){var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===e.target.type&&0===e.detail||((t=this.onMouse(e))||(this.targetElement=null),t)},e.prototype.destroy=function(){var e=this.layer;n&&(e.removeEventListener("mouseover",this.onMouse,!0),e.removeEventListener("mousedown",this.onMouse,!0),e.removeEventListener("mouseup",this.onMouse,!0)),e.removeEventListener("click",this.onClick,!0),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1),e.removeEventListener("touchcancel",this.onTouchCancel,!1)},e.notNeeded=function(e){var t,i,r;if(void 0===window.ontouchstart)return!0;if(i=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!n)return!0;if(t=document.querySelector("meta[name=viewport]")){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(i>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(s&&(r=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/))[1]>=10&&r[2]>=3&&(t=document.querySelector("meta[name=viewport]"))){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===e.style.msTouchAction||"manipulation"===e.style.touchAction||(!!(+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]>=27&&(t=document.querySelector("meta[name=viewport]"))&&(-1!==t.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))||("none"===e.style.touchAction||"manipulation"===e.style.touchAction))},e.attach=function(t,n){return new e(t,n)},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return e}):"undefined"!=typeof module&&module.exports?(module.exports=e.attach,module.exports.FastClick=e):window.FastClick=e}(),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?t(require("jquery")):t(e.jQuery)}(this,function(e){"use strict";var t={data:{index:0,name:"scrollbar"},firefox:/firefox/i.test(navigator.userAgent),macosx:/mac/i.test(navigator.platform),msedge:/edge\/\d+/i.test(navigator.userAgent),msie:/(msie|trident)/i.test(navigator.userAgent),mobile:/android|webos|iphone|ipad|ipod|blackberry/i.test(navigator.userAgent),overlay:null,scroll:null,scrolls:[],webkit:/webkit/i.test(navigator.userAgent)&&!/edge\/\d+/i.test(navigator.userAgent)};t.scrolls.add=function(e){this.remove(e).push(e)},t.scrolls.remove=function(t){for(;e.inArray(t,this)>=0;)this.splice(e.inArray(t,this),1);return this};var n={autoScrollSize:!0,autoUpdate:!0,debug:!1,disableBodyScroll:!1,duration:200,ignoreMobile:!1,ignoreOverlay:!1,isRtl:!1,scrollStep:30,showArrows:!1,stepScrolling:!0,scrollx:null,scrolly:null,onDestroy:null,onFallback:null,onInit:null,onScroll:null,onUpdate:null},i=function(i){var r;t.scroll||(t.overlay=!((r=l(!0)).height||r.width),t.scroll=l(),a(),e(window).resize(function(){var e=!1;if(t.scroll&&(t.scroll.height||t.scroll.width)){var n=l();n.height===t.scroll.height&&n.width===t.scroll.width||(t.scroll=n,e=!0)}a(e)})),this.container=i,this.namespace=".scrollbar_"+t.data.index++,this.options=e.extend({},n,window.jQueryScrollbarOptions||{}),this.scrollTo=null,this.scrollx={},this.scrolly={},i.data(t.data.name,this),t.scrolls.add(this)};i.prototype={destroy:function(){if(this.wrapper){this.container.removeData(t.data.name),t.scrolls.remove(this);var n=this.container.scrollLeft(),i=this.container.scrollTop();this.container.insertBefore(this.wrapper).css({height:"",margin:"","max-height":""}).removeClass("scroll-content scroll-scrollx_visible scroll-scrolly_visible").off(this.namespace).scrollLeft(n).scrollTop(i),this.scrollx.scroll.removeClass("scroll-scrollx_visible").find("div").addBack().off(this.namespace),this.scrolly.scroll.removeClass("scroll-scrolly_visible").find("div").addBack().off(this.namespace),this.wrapper.remove(),e(document).add("body").off(this.namespace),e.isFunction(this.options.onDestroy)&&this.options.onDestroy.apply(this,[this.container])}},init:function(n){var i=this,r=this.container,o=this.containerWrapper||r,s=this.namespace,a=e.extend(this.options,n||{}),l={x:this.scrollx,y:this.scrolly},c=this.wrapper,d={},h={scrollLeft:r.scrollLeft(),scrollTop:r.scrollTop()};if(t.mobile&&a.ignoreMobile||t.overlay&&a.ignoreOverlay||t.macosx&&!t.webkit)return e.isFunction(a.onFallback)&&a.onFallback.apply(this,[r]),!1;if(c)(d={height:"auto","margin-bottom":-1*t.scroll.height+"px","max-height":""})[a.isRtl?"margin-left":"margin-right"]=-1*t.scroll.width+"px",o.css(d);else{if(this.wrapper=c=e("<div>").addClass("scroll-wrapper").addClass(r.attr("class")).css("position","absolute"===r.css("position")?"absolute":"relative").insertBefore(r).append(r),a.isRtl&&c.addClass("scroll--rtl"),r.is("textarea")&&(this.containerWrapper=o=e("<div>").insertBefore(r).append(r),c.addClass("scroll-textarea")),(d={height:"auto","margin-bottom":-1*t.scroll.height+"px","max-height":""})[a.isRtl?"margin-left":"margin-right"]=-1*t.scroll.width+"px",o.addClass("scroll-content").css(d),r.on("scroll"+s,function(n){var o=r.scrollLeft(),s=r.scrollTop();if(a.isRtl)switch(!0){case t.firefox:o=Math.abs(o);case t.msedge||t.msie:o=r[0].scrollWidth-r[0].clientWidth-o}e.isFunction(a.onScroll)&&a.onScroll.call(i,{maxScroll:l.y.maxScrollOffset,scroll:s,size:l.y.size,visible:l.y.visible},{maxScroll:l.x.maxScrollOffset,scroll:o,size:l.x.size,visible:l.x.visible}),l.x.isVisible&&l.x.scroll.bar.css("left",o*l.x.kx+"px"),l.y.isVisible&&l.y.scroll.bar.css("top",s*l.y.kx+"px")}),c.on("scroll"+s,function(){c.scrollTop(0).scrollLeft(0)}),a.disableBodyScroll){var f=function(e){u(e)?l.y.isVisible&&l.y.mousewheel(e):l.x.isVisible&&l.x.mousewheel(e)};c.on("MozMousePixelScroll"+s,f),c.on("mousewheel"+s,f),t.mobile&&c.on("touchstart"+s,function(t){var n=t.originalEvent.touches&&t.originalEvent.touches[0]||t,i=n.pageX,o=n.pageY,a=r.scrollLeft(),l=r.scrollTop();e(document).on("touchmove"+s,function(e){var t=e.originalEvent.targetTouches&&e.originalEvent.targetTouches[0]||e;r.scrollLeft(a+i-t.pageX),r.scrollTop(l+o-t.pageY),e.preventDefault()}),e(document).on("touchend"+s,function(){e(document).off(s)})})}e.isFunction(a.onInit)&&a.onInit.apply(this,[r])}e.each(l,function(n,o){var c=null,d=1,h="x"===n?"scrollLeft":"scrollTop",f=a.scrollStep,p=function(){var e=r[h]();r[h](e+f),1==d&&e+f>=g&&(e=r[h]()),-1==d&&e+f<=g&&(e=r[h]()),r[h]()==e&&c&&c()},g=0;o.scroll||(o.scroll=i._getScroll(a["scroll"+n]).addClass("scroll-"+n),a.showArrows&&o.scroll.addClass("scroll-element_arrows_visible"),o.mousewheel=function(e){if(!o.isVisible||"x"===n&&u(e))return!0;if("y"===n&&!u(e))return l.x.mousewheel(e),!0;var t=-1*e.originalEvent.wheelDelta||e.originalEvent.detail,s=o.size-o.visible-o.offset;return t||("x"===n&&e.originalEvent.deltaX?t=40*e.originalEvent.deltaX:"y"===n&&e.originalEvent.deltaY&&(t=40*e.originalEvent.deltaY)),(t>0&&g<s||t<0&&g>0)&&((g+=t)<0&&(g=0),g>s&&(g=s),i.scrollTo=i.scrollTo||{},i.scrollTo[h]=g,setTimeout(function(){i.scrollTo&&(r.stop().animate(i.scrollTo,240,"linear",function(){g=r[h]()}),i.scrollTo=null)},1)),e.preventDefault(),!1},o.scroll.on("MozMousePixelScroll"+s,o.mousewheel).on("mousewheel"+s,o.mousewheel).on("mouseenter"+s,function(){g=r[h]()}),o.scroll.find(".scroll-arrow, .scroll-element_track").on("mousedown"+s,function(s){if(1!=s.which)return!0;d=1;var l={eventOffset:s["x"===n?"pageX":"pageY"],maxScrollValue:o.size-o.visible-o.offset,scrollbarOffset:o.scroll.bar.offset()["x"===n?"left":"top"],scrollbarSize:o.scroll.bar["x"===n?"outerWidth":"outerHeight"]()},u=0,m=0;if(e(this).hasClass("scroll-arrow")){if(d=e(this).hasClass("scroll-arrow_more")?1:-1,f=a.scrollStep*d,g=d>0?l.maxScrollValue:0,a.isRtl)switch(!0){case t.firefox:g=d>0?0:-1*l.maxScrollValue;break;case t.msie||t.msedge:}}else d=l.eventOffset>l.scrollbarOffset+l.scrollbarSize?1:l.eventOffset<l.scrollbarOffset?-1:0,"x"===n&&a.isRtl&&(t.msie||t.msedge)&&(d*=-1),f=Math.round(.75*o.visible)*d,g=l.eventOffset-l.scrollbarOffset-(a.stepScrolling?1==d?l.scrollbarSize:0:Math.round(l.scrollbarSize/2)),g=r[h]()+g/o.kx;return i.scrollTo=i.scrollTo||{},i.scrollTo[h]=a.stepScrolling?r[h]()+f:g,a.stepScrolling&&(c=function(){g=r[h](),clearInterval(m),clearTimeout(u),u=0,m=0},u=setTimeout(function(){m=setInterval(p,40)},a.duration+100)),setTimeout(function(){i.scrollTo&&(r.animate(i.scrollTo,a.duration),i.scrollTo=null)},1),i._handleMouseDown(c,s)}),o.scroll.bar.on("mousedown"+s,function(l){if(1!=l.which)return!0;var u=l["x"===n?"pageX":"pageY"],c=r[h]();return o.scroll.addClass("scroll-draggable"),e(document).on("mousemove"+s,function(e){var i=parseInt((e["x"===n?"pageX":"pageY"]-u)/o.kx,10);"x"===n&&a.isRtl&&(t.msie||t.msedge)&&(i*=-1),r[h](c+i)}),i._handleMouseDown(function(){o.scroll.removeClass("scroll-draggable"),g=r[h]()},l)}))}),e.each(l,function(e,t){var n="scroll-scroll"+e+"_visible",i="x"==e?l.y:l.x;t.scroll.removeClass(n),i.scroll.removeClass(n),o.removeClass(n)}),e.each(l,function(t,n){e.extend(n,"x"==t?{offset:parseInt(r.css("left"),10)||0,size:r.prop("scrollWidth"),visible:c.width()}:{offset:parseInt(r.css("top"),10)||0,size:r.prop("scrollHeight"),visible:c.height()})}),this._updateScroll("x",this.scrollx),this._updateScroll("y",this.scrolly),e.isFunction(a.onUpdate)&&a.onUpdate.apply(this,[r]),e.each(l,function(e,t){var n="x"===e?"left":"top",i="x"===e?"outerWidth":"outerHeight",o="x"===e?"width":"height",s=parseInt(r.css(n),10)||0,l=t.size,u=t.visible+s,c=t.scroll.size[i]()+(parseInt(t.scroll.size.css(n),10)||0);a.autoScrollSize&&(t.scrollbarSize=parseInt(c*u/l,10),t.scroll.bar.css(o,t.scrollbarSize+"px")),t.scrollbarSize=t.scroll.bar[i](),t.kx=(c-t.scrollbarSize)/(l-u)||1,t.maxScrollOffset=l-u}),r.scrollLeft(h.scrollLeft).scrollTop(h.scrollTop).trigger("scroll")},_getScroll:function(t){var n={advanced:['<div class="scroll-element">','<div class="scroll-element_corner"></div>','<div class="scroll-arrow scroll-arrow_less"></div>','<div class="scroll-arrow scroll-arrow_more"></div>','<div class="scroll-element_outer">','<div class="scroll-element_size"></div>','<div class="scroll-element_inner-wrapper">','<div class="scroll-element_inner scroll-element_track">','<div class="scroll-element_inner-bottom"></div>',"</div>","</div>",'<div class="scroll-bar">','<div class="scroll-bar_body">','<div class="scroll-bar_body-inner"></div>',"</div>",'<div class="scroll-bar_bottom"></div>','<div class="scroll-bar_center"></div>',"</div>","</div>","</div>"].join(""),simple:['<div class="scroll-element">','<div class="scroll-element_outer">','<div class="scroll-element_size"></div>','<div class="scroll-element_track"></div>','<div class="scroll-bar"></div>',"</div>","</div>"].join("")};return n[t]&&(t=n[t]),t||(t=n.simple),t="string"==typeof t?e(t).appendTo(this.wrapper):e(t),e.extend(t,{bar:t.find(".scroll-bar"),size:t.find(".scroll-element_size"),track:t.find(".scroll-element_track")}),t},_handleMouseDown:function(t,n){var i=this.namespace;return e(document).on("blur"+i,function(){e(document).add("body").off(i),t&&t()}),e(document).on("dragstart"+i,function(e){return e.preventDefault(),!1}),e(document).on("mouseup"+i,function(){e(document).add("body").off(i),t&&t()}),e("body").on("selectstart"+i,function(e){return e.preventDefault(),!1}),n&&n.preventDefault(),!1},_updateScroll:function(n,i){var r=this.container,o=this.containerWrapper||r,s="scroll-scroll"+n+"_visible",a="x"===n?this.scrolly:this.scrollx,l=parseInt(this.container.css("x"===n?"left":"top"),10)||0,u=this.wrapper,c=i.size,d=i.visible+l;i.isVisible=c-d>1,i.isVisible?(i.scroll.addClass(s),a.scroll.addClass(s),o.addClass(s)):(i.scroll.removeClass(s),a.scroll.removeClass(s),o.removeClass(s)),"y"===n&&(r.is("textarea")||c<d?o.css({height:d+t.scroll.height+"px","max-height":"none"}):o.css({"max-height":d+t.scroll.height+"px"})),i.size==r.prop("scrollWidth")&&a.size==r.prop("scrollHeight")&&i.visible==u.width()&&a.visible==u.height()&&i.offset==(parseInt(r.css("left"),10)||0)&&a.offset==(parseInt(r.css("top"),10)||0)||(e.extend(this.scrollx,{offset:parseInt(r.css("left"),10)||0,size:r.prop("scrollWidth"),visible:u.width()}),e.extend(this.scrolly,{offset:parseInt(r.css("top"),10)||0,size:this.container.prop("scrollHeight"),visible:u.height()}),this._updateScroll("x"===n?"y":"x",a))}};var r=i;e.fn.scrollbar=function(n,i){return"string"!=typeof n&&(i=n,n="init"),void 0===i&&(i=[]),e.isArray(i)||(i=[i]),this.not("body, .scroll-wrapper").each(function(){var o=e(this),s=o.data(t.data.name);(s||"init"===n)&&(s||(s=new r(o)),s[n]&&s[n].apply(s,i))}),this},e.fn.scrollbar.options=n;var o,s,a=(o=0,function(e){var n,i,r,s,l,u,c;for(n=0;n<t.scrolls.length;n++)i=(s=t.scrolls[n]).container,r=s.options,l=s.wrapper,u=s.scrollx,c=s.scrolly,(e||r.autoUpdate&&l&&l.is(":visible")&&(i.prop("scrollWidth")!=u.size||i.prop("scrollHeight")!=c.size||l.width()!=u.visible||l.height()!=c.visible))&&(s.init(),r.debug&&window.console&&console.log({scrollHeight:i.prop("scrollHeight")+":"+s.scrolly.size,scrollWidth:i.prop("scrollWidth")+":"+s.scrollx.size,visibleHeight:l.height()+":"+s.scrolly.visible,visibleWidth:l.width()+":"+s.scrollx.visible},!0));clearTimeout(o),o=setTimeout(a,300)});function l(n){if(t.webkit&&!n)return{height:0,width:0};if(!t.data.outer){var i={border:"none","box-sizing":"content-box",height:"200px",margin:"0",padding:"0",width:"200px"};t.data.inner=e("<div>").css(e.extend({},i)),t.data.outer=e("<div>").css(e.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},i)).append(t.data.inner).appendTo("body")}return t.data.outer.scrollLeft(1e3).scrollTop(1e3),{height:Math.ceil(t.data.outer.offset().top-t.data.inner.offset().top||0),width:Math.ceil(t.data.outer.offset().left-t.data.inner.offset().left||0)}}function u(e){var t=e.originalEvent;return(!t.axis||t.axis!==t.HORIZONTAL_AXIS)&&!t.wheelDeltaX}window.angular&&(s=window.angular).module("jQueryScrollbar",[]).provider("jQueryScrollbar",function(){var e=n;return{setOptions:function(t){s.extend(e,t)},$get:function(){return{options:s.copy(e)}}}}).directive("jqueryScrollbar",["jQueryScrollbar","$parse",function(e,t){return{restrict:"AC",link:function(n,i,r){var o=t(r.jqueryScrollbar)(n);i.scrollbar(o||e.options).on("$destroy",function(){i.scrollbar("destroy")})}}}])}),jQuery.extend({bez:function(e){var t="bez_"+jQuery.makeArray(arguments).join("_").replace(".","p");if("function"!=typeof jQuery.easing[t]){var n=function(e,t){var n=[null,null],i=[null,null],r=[null,null],o=function(o,s){return r[s]=3*e[s],i[s]=3*(t[s]-e[s])-r[s],n[s]=1-r[s]-i[s],o*(r[s]+o*(i[s]+o*n[s]))};return function(e){return o(function(e){for(var t,s,a=e,l=0;++l<14&&(t=o(a,0)-e,!(Math.abs(t)<.001));)a-=t/(s=a,r[0]+s*(2*i[0]+3*n[0]*s));return a}(e),1)}};jQuery.easing[t]=function(t,i,r,o,s){return o*n([e[0],e[1]],[e[2],e[3]])(i/s)+r}}return t}}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){e.fn.addBack=e.fn.addBack||e.fn.andSelf,e.fn.extend({actual:function(t,n){if(!this[t])throw'$.actual => The jQuery method "'+t+'" you called does not exist';var i,r,o=e.extend({absolute:!1,clone:!1,includeMargin:!1,display:"block"},n),s=this.eq(0);if(!0===o.clone)i=function(){s=s.clone().attr("style","position: absolute !important; top: -1000 !important; ").appendTo("body")},r=function(){s.remove()};else{var a,l=[],u="";i=function(){a=s.parents().addBack().filter(":hidden"),u+="visibility: hidden !important; display: "+o.display+" !important; ",!0===o.absolute&&(u+="position: absolute !important; "),a.each(function(){var t=e(this),n=t.attr("style");l.push(n),t.attr("style",n?n+";"+u:u)})},r=function(){a.each(function(t){var n=e(this),i=l[t];void 0===i?n.removeAttr("style"):n.attr("style",i)})}}i();var c=/(outer)/.test(t)?s[t](o.includeMargin):s[t]();return r(),c}})}),function(){"use strict";var e=0,t={};function n(i){if(!i)throw new Error("No options passed to Waypoint constructor");if(!i.element)throw new Error("No element option passed to Waypoint constructor");if(!i.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=n.Adapter.extend({},n.defaults,i),this.element=this.options.element,this.adapter=new n.Adapter(this.element),this.callback=i.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=n.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=n.Context.findOrCreateByElement(this.options.context),n.offsetAliases[this.options.offset]&&(this.options.offset=n.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),t[this.key]=this,e+=1}n.prototype.queueTrigger=function(e){this.group.queueTrigger(this,e)},n.prototype.trigger=function(e){this.enabled&&this.callback&&this.callback.apply(this,e)},n.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete t[this.key]},n.prototype.disable=function(){return this.enabled=!1,this},n.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},n.prototype.next=function(){return this.group.next(this)},n.prototype.previous=function(){return this.group.previous(this)},n.invokeAll=function(e){var n=[];for(var i in t)n.push(t[i]);for(var r=0,o=n.length;r<o;r++)n[r][e]()},n.destroyAll=function(){n.invokeAll("destroy")},n.disableAll=function(){n.invokeAll("disable")},n.enableAll=function(){n.invokeAll("enable")},n.refreshAll=function(){n.Context.refreshAll()},n.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},n.viewportWidth=function(){return document.documentElement.clientWidth},n.adapters=[],n.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},n.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=n}(),function(){"use strict";function e(e){window.setTimeout(e,1e3/60)}var t=0,n={},i=window.Waypoint,r=window.onload;function o(e){this.element=e,this.Adapter=i.Adapter,this.adapter=new this.Adapter(e),this.key="waypoint-context-"+t,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},e.waypointContextKey=this.key,n[e.waypointContextKey]=this,t+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}o.prototype.add=function(e){var t=e.options.horizontal?"horizontal":"vertical";this.waypoints[t][e.key]=e,this.refresh()},o.prototype.checkEmpty=function(){var e=this.Adapter.isEmptyObject(this.waypoints.horizontal),t=this.Adapter.isEmptyObject(this.waypoints.vertical);e&&t&&(this.adapter.off(".waypoints"),delete n[this.key])},o.prototype.createThrottledResizeHandler=function(){var e=this;function t(){e.handleResize(),e.didResize=!1}this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,i.requestAnimationFrame(t))})},o.prototype.createThrottledScrollHandler=function(){var e=this;function t(){e.handleScroll(),e.didScroll=!1}this.adapter.on("scroll.waypoints",function(){e.didScroll&&!i.isTouch||(e.didScroll=!0,i.requestAnimationFrame(t))})},o.prototype.handleResize=function(){i.Context.refreshAll()},o.prototype.handleScroll=function(){var e={},t={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var n in t){var i=t[n],r=i.newScroll>i.oldScroll?i.forward:i.backward;for(var o in this.waypoints[n]){var s=this.waypoints[n][o],a=i.oldScroll<s.triggerPoint,l=i.newScroll>=s.triggerPoint;(a&&l||!a&&!l)&&(s.queueTrigger(r),e[s.group.id]=s.group)}}for(var u in e)e[u].flushTriggers();this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}},o.prototype.innerHeight=function(){return this.element==this.element.window?i.viewportHeight():this.adapter.innerHeight()},o.prototype.remove=function(e){delete this.waypoints[e.axis][e.key],this.checkEmpty()},o.prototype.innerWidth=function(){return this.element==this.element.window?i.viewportWidth():this.adapter.innerWidth()},o.prototype.destroy=function(){var e=[];for(var t in this.waypoints)for(var n in this.waypoints[t])e.push(this.waypoints[t][n]);for(var i=0,r=e.length;i<r;i++)e[i].destroy()},o.prototype.refresh=function(){var e,t=this.element==this.element.window,n=t?void 0:this.adapter.offset(),r={};this.handleScroll(),e={horizontal:{contextOffset:t?0:n.left,contextScroll:t?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:t?0:n.top,contextScroll:t?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var o in e){var s=e[o];for(var a in this.waypoints[o]){var l,u,c,d,h=this.waypoints[o][a],f=h.options.offset,p=h.triggerPoint,g=0,m=null==p;h.element!==h.element.window&&(g=h.adapter.offset()[s.offsetProp]),"function"==typeof f?f=f.apply(h):"string"==typeof f&&(f=parseFloat(f),h.options.offset.indexOf("%")>-1&&(f=Math.ceil(s.contextDimension*f/100))),l=s.contextScroll-s.contextOffset,h.triggerPoint=g+l-f,u=p<s.oldScroll,c=h.triggerPoint>=s.oldScroll,d=!u&&!c,!m&&(u&&c)?(h.queueTrigger(s.backward),r[h.group.id]=h.group):!m&&d?(h.queueTrigger(s.forward),r[h.group.id]=h.group):m&&s.oldScroll>=h.triggerPoint&&(h.queueTrigger(s.forward),r[h.group.id]=h.group)}}return i.requestAnimationFrame(function(){for(var e in r)r[e].flushTriggers()}),this},o.findOrCreateByElement=function(e){return o.findByElement(e)||new o(e)},o.refreshAll=function(){for(var e in n)n[e].refresh()},o.findByElement=function(e){return n[e.waypointContextKey]},window.onload=function(){r&&r(),o.refreshAll()},i.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},i.Context=o}(),function(){"use strict";function e(e,t){return e.triggerPoint-t.triggerPoint}function t(e,t){return t.triggerPoint-e.triggerPoint}var n={vertical:{},horizontal:{}},i=window.Waypoint;function r(e){this.name=e.name,this.axis=e.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}r.prototype.add=function(e){this.waypoints.push(e)},r.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},r.prototype.flushTriggers=function(){for(var n in this.triggerQueues){var i=this.triggerQueues[n],r="up"===n||"left"===n;i.sort(r?t:e);for(var o=0,s=i.length;o<s;o+=1){var a=i[o];(a.options.continuous||o===i.length-1)&&a.trigger([n])}}this.clearTriggerQueues()},r.prototype.next=function(t){this.waypoints.sort(e);var n=i.Adapter.inArray(t,this.waypoints);return n===this.waypoints.length-1?null:this.waypoints[n+1]},r.prototype.previous=function(t){this.waypoints.sort(e);var n=i.Adapter.inArray(t,this.waypoints);return n?this.waypoints[n-1]:null},r.prototype.queueTrigger=function(e,t){this.triggerQueues[t].push(e)},r.prototype.remove=function(e){var t=i.Adapter.inArray(e,this.waypoints);t>-1&&this.waypoints.splice(t,1)},r.prototype.first=function(){return this.waypoints[0]},r.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},r.findOrCreate=function(e){return n[e.axis][e.name]||new r(e)},i.Group=r}(),function(){"use strict";var e=window.jQuery,t=window.Waypoint;function n(t){this.$element=e(t)}e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,t){n.prototype[t]=function(){var e=Array.prototype.slice.call(arguments);return this.$element[t].apply(this.$element,e)}}),e.each(["extend","inArray","isEmptyObject"],function(t,i){n[i]=e[i]}),t.adapters.push({name:"jquery",Adapter:n}),t.Adapter=n}(),function(){"use strict";var e=window.Waypoint;function t(t){return function(){var n=[],i=arguments[0];return t.isFunction(arguments[0])&&((i=t.extend({},arguments[1])).handler=arguments[0]),this.each(function(){var r=t.extend({},i,{element:this});"string"==typeof r.context&&(r.context=t(this).closest(r.context)[0]),n.push(new e(r))}),n}}window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}(),function(e){"use strict";if(!e.jQuery){var t=function(e,n){return new t.fn.init(e,n)};t.isWindow=function(e){return e&&e===e.window},t.type=function(e){return e?"object"==typeof e||"function"==typeof e?i[o.call(e)]||"object":typeof e:e+""},t.isArray=Array.isArray||function(e){return"array"===t.type(e)},t.isPlainObject=function(e){var n;if(!e||"object"!==t.type(e)||e.nodeType||t.isWindow(e))return!1;try{if(e.constructor&&!r.call(e,"constructor")&&!r.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(n in e);return void 0===n||r.call(e,n)},t.each=function(e,t,n){var i=0,r=e.length,o=l(e);if(n){if(o)for(;i<r&&!1!==t.apply(e[i],n);i++);else for(i in e)if(e.hasOwnProperty(i)&&!1===t.apply(e[i],n))break}else if(o)for(;i<r&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(e.hasOwnProperty(i)&&!1===t.call(e[i],i,e[i]))break;return e},t.data=function(e,i,r){if(void 0===r){var o=e[t.expando],s=o&&n[o];if(void 0===i)return s;if(s&&i in s)return s[i]}else if(void 0!==i){var a=e[t.expando]||(e[t.expando]=++t.uuid);return n[a]=n[a]||{},n[a][i]=r,r}},t.removeData=function(e,i){var r=e[t.expando],o=r&&n[r];o&&(i?t.each(i,function(e,t){delete o[t]}):delete n[r])},t.extend=function(){var e,n,i,r,o,s,a=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[l]||{},l++),"object"!=typeof a&&"function"!==t.type(a)&&(a={}),l===u&&(a=this,l--);l<u;l++)if(o=arguments[l])for(r in o)o.hasOwnProperty(r)&&(e=a[r],a!==(i=o[r])&&(c&&i&&(t.isPlainObject(i)||(n=t.isArray(i)))?(n?(n=!1,s=e&&t.isArray(e)?e:[]):s=e&&t.isPlainObject(e)?e:{},a[r]=t.extend(c,s,i)):void 0!==i&&(a[r]=i)));return a},t.queue=function(e,n,i){if(e){n=(n||"fx")+"queue";var r,o,s,a=t.data(e,n);return i?(!a||t.isArray(i)?a=t.data(e,n,(r=i,s=o||[],r&&(l(Object(r))?function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;)e[r++]=t[i++];if(n!=n)for(;void 0!==t[i];)e[r++]=t[i++];e.length=r}(s,"string"==typeof r?[r]:r):[].push.call(s,r)),s)):a.push(i),a):a||[]}},t.dequeue=function(e,n){t.each(e.nodeType?[e]:e,function(e,i){n=n||"fx";var r=t.queue(i,n),o=r.shift();"inprogress"===o&&(o=r.shift()),o&&("fx"===n&&r.unshift("inprogress"),o.call(i,function(){t.dequeue(i,n)}))})},t.fn=t.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw new Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){var e=this[0],n=function(e){for(var t=e.offsetParent;t&&"html"!==t.nodeName.toLowerCase()&&t.style&&"static"===t.style.position.toLowerCase();)t=t.offsetParent;return t||document}(e),i=this.offset(),r=/^(?:body|html)$/i.test(n.nodeName)?{top:0,left:0}:t(n).offset();return i.top-=parseFloat(e.style.marginTop)||0,i.left-=parseFloat(e.style.marginLeft)||0,n.style&&(r.top+=parseFloat(n.style.borderTopWidth)||0,r.left+=parseFloat(n.style.borderLeftWidth)||0),{top:i.top-r.top,left:i.left-r.left}}};var n={};t.expando="velocity"+(new Date).getTime(),t.uuid=0;for(var i={},r=i.hasOwnProperty,o=i.toString,s="Boolean Number String Function Array Date RegExp Object Error".split(" "),a=0;a<s.length;a++)i["[object "+s[a]+"]"]=s[a].toLowerCase();t.fn.init.prototype=t.fn,e.Velocity={Utilities:t}}function l(e){var n=e.length,i=t.type(e);return"function"!==i&&!t.isWindow(e)&&(!(1!==e.nodeType||!n)||("array"===i||0===n||"number"==typeof n&&n>0&&n-1 in e))}}(window),function(e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e():"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";return function(e,t,n,i){var r,o=function(){if(n.documentMode)return n.documentMode;for(var e=7;e>4;e--){var t=n.createElement("div");if(t.innerHTML="\x3c!--[if IE "+e+"]><span></span><![endif]--\x3e",t.getElementsByTagName("span").length)return t=null,e}return i}(),s=(r=0,t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(e){var t,n=(new Date).getTime();return t=Math.max(0,16-(n-r)),r=n+t,setTimeout(function(){e(n+t)},t)}),a=function(){var e=t.performance||{};if("function"!=typeof e.now){var n=e.timing&&e.timing.navigationStart?e.timing.navigationStart:(new Date).getTime();e.now=function(){return(new Date).getTime()-n}}return e}();var l=function(){var e=Array.prototype.slice;try{return e.call(n.documentElement),e}catch(t){return function(t,n){var i=this.length;if("number"!=typeof t&&(t=0),"number"!=typeof n&&(n=i),this.slice)return e.call(this,t,n);var r,o=[],s=t>=0?t:Math.max(0,i+t),a=(n<0?i+n:Math.min(n,i))-s;if(a>0)if(o=new Array(a),this.charAt)for(r=0;r<a;r++)o[r]=this.charAt(s+r);else for(r=0;r<a;r++)o[r]=this[s+r];return o}}}(),u=function(){return Array.prototype.includes?function(e,t){return e.includes(t)}:Array.prototype.indexOf?function(e,t){return e.indexOf(t)>=0}:function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1}};function c(e){return h.isWrapped(e)?e=l.call(e):h.isNode(e)&&(e=[e]),e}var d,h={isNumber:function(e){return"number"==typeof e},isString:function(e){return"string"==typeof e},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isWrapped:function(e){return e&&e!==t&&h.isNumber(e.length)&&!h.isString(e)&&!h.isFunction(e)&&!h.isNode(e)&&(0===e.length||h.isNode(e[0]))},isSVG:function(e){return t.SVGElement&&e instanceof t.SVGElement},isEmptyObject:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}},f=!1;if(e.fn&&e.fn.jquery?(d=e,f=!0):d=t.Velocity.Utilities,o<=8&&!f)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(!(o<=7)){var p=400,g="swing",m={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t.navigator.userAgent),isAndroid:/Android/i.test(t.navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(t.navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(t.navigator.userAgent),prefixElement:n.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[],delayedElements:{count:0}},CSS:{},Utilities:d,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:p,easing:g,begin:i,complete:i,progress:i,display:i,visibility:i,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0,promiseRejectEmpty:!0},init:function(e){d.data(e,"velocity",{isSVG:h.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:5,patch:1},debug:!1,timestamp:!0,pauseAll:function(e){var t=(new Date).getTime();d.each(m.State.calls,function(t,n){if(n){if(e!==i&&(n[2].queue!==e||!1===n[2].queue))return!0;n[5]={resume:!1}}}),d.each(m.State.delayedElements,function(e,n){n&&S(n,t)})},resumeAll:function(e){var t=(new Date).getTime();d.each(m.State.calls,function(t,n){if(n){if(e!==i&&(n[2].queue!==e||!1===n[2].queue))return!0;n[5]&&(n[5].resume=!0)}}),d.each(m.State.delayedElements,function(e,n){n&&C(n,t)})}};t.pageYOffset!==i?(m.State.scrollAnchor=t,m.State.scrollPropertyLeft="pageXOffset",m.State.scrollPropertyTop="pageYOffset"):(m.State.scrollAnchor=n.documentElement||n.body.parentNode||n.body,m.State.scrollPropertyLeft="scrollLeft",m.State.scrollPropertyTop="scrollTop");var v=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,n,i){var r={x:t.x+i.dx*n,v:t.v+i.dv*n,tension:t.tension,friction:t.friction};return{dx:r.v,dv:e(r)}}return function n(i,r,o){var s,a,l,u,c,d,h,f,p,g,m,v={x:-1,v:0,tension:null,friction:null},y=[0],w=0;for(i=parseFloat(i)||500,r=parseFloat(r)||20,o=o||null,v.tension=i,v.friction=r,a=(s=null!==o)?(w=n(i,r))/o*.016:.016;c=a,void 0,void 0,void 0,void 0,void 0,void 0,d={dx:(u=l||v).v,dv:e(u)},h=t(u,.5*c,d),f=t(u,.5*c,h),p=t(u,c,f),g=1/6*(d.dx+2*(h.dx+f.dx)+p.dx),m=1/6*(d.dv+2*(h.dv+f.dv)+p.dv),u.x=u.x+g*c,u.v=u.v+m*c,l=u,y.push(1+l.x),w+=16,Math.abs(l.x)>1e-4&&Math.abs(l.v)>1e-4;);return s?function(e){return y[e*(y.length-1)|0]}:w}}();m.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},d.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(e,t){m.Easings[t[0]]=T.apply(null,t[1])});var y=m.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{aliceblue:"240,248,255",antiquewhite:"250,235,215",aquamarine:"127,255,212",aqua:"0,255,255",azure:"240,255,255",beige:"245,245,220",bisque:"255,228,196",black:"0,0,0",blanchedalmond:"255,235,205",blueviolet:"138,43,226",blue:"0,0,255",brown:"165,42,42",burlywood:"222,184,135",cadetblue:"95,158,160",chartreuse:"127,255,0",chocolate:"210,105,30",coral:"255,127,80",cornflowerblue:"100,149,237",cornsilk:"255,248,220",crimson:"220,20,60",cyan:"0,255,255",darkblue:"0,0,139",darkcyan:"0,139,139",darkgoldenrod:"184,134,11",darkgray:"169,169,169",darkgrey:"169,169,169",darkgreen:"0,100,0",darkkhaki:"189,183,107",darkmagenta:"139,0,139",darkolivegreen:"85,107,47",darkorange:"255,140,0",darkorchid:"153,50,204",darkred:"139,0,0",darksalmon:"233,150,122",darkseagreen:"143,188,143",darkslateblue:"72,61,139",darkslategray:"47,79,79",darkturquoise:"0,206,209",darkviolet:"148,0,211",deeppink:"255,20,147",deepskyblue:"0,191,255",dimgray:"105,105,105",dimgrey:"105,105,105",dodgerblue:"30,144,255",firebrick:"178,34,34",floralwhite:"255,250,240",forestgreen:"34,139,34",fuchsia:"255,0,255",gainsboro:"220,220,220",ghostwhite:"248,248,255",gold:"255,215,0",goldenrod:"218,165,32",gray:"128,128,128",grey:"128,128,128",greenyellow:"173,255,47",green:"0,128,0",honeydew:"240,255,240",hotpink:"255,105,180",indianred:"205,92,92",indigo:"75,0,130",ivory:"255,255,240",khaki:"240,230,140",lavenderblush:"255,240,245",lavender:"230,230,250",lawngreen:"124,252,0",lemonchiffon:"255,250,205",lightblue:"173,216,230",lightcoral:"240,128,128",lightcyan:"224,255,255",lightgoldenrodyellow:"250,250,210",lightgray:"211,211,211",lightgrey:"211,211,211",lightgreen:"144,238,144",lightpink:"255,182,193",lightsalmon:"255,160,122",lightseagreen:"32,178,170",lightskyblue:"135,206,250",lightslategray:"119,136,153",lightsteelblue:"176,196,222",lightyellow:"255,255,224",limegreen:"50,205,50",lime:"0,255,0",linen:"250,240,230",magenta:"255,0,255",maroon:"128,0,0",mediumaquamarine:"102,205,170",mediumblue:"0,0,205",mediumorchid:"186,85,211",mediumpurple:"147,112,219",mediumseagreen:"60,179,113",mediumslateblue:"123,104,238",mediumspringgreen:"0,250,154",mediumturquoise:"72,209,204",mediumvioletred:"199,21,133",midnightblue:"25,25,112",mintcream:"245,255,250",mistyrose:"255,228,225",moccasin:"255,228,181",navajowhite:"255,222,173",navy:"0,0,128",oldlace:"253,245,230",olivedrab:"107,142,35",olive:"128,128,0",orangered:"255,69,0",orange:"255,165,0",orchid:"218,112,214",palegoldenrod:"238,232,170",palegreen:"152,251,152",paleturquoise:"175,238,238",palevioletred:"219,112,147",papayawhip:"255,239,213",peachpuff:"255,218,185",peru:"205,133,63",pink:"255,192,203",plum:"221,160,221",powderblue:"176,224,230",purple:"128,0,128",red:"255,0,0",rosybrown:"188,143,143",royalblue:"65,105,225",saddlebrown:"139,69,19",salmon:"250,128,114",sandybrown:"244,164,96",seagreen:"46,139,87",seashell:"255,245,238",sienna:"160,82,45",silver:"192,192,192",skyblue:"135,206,235",slateblue:"106,90,205",slategray:"112,128,144",snow:"255,250,250",springgreen:"0,255,127",steelblue:"70,130,180",tan:"210,180,140",teal:"0,128,128",thistle:"216,191,216",tomato:"255,99,71",turquoise:"64,224,208",violet:"238,130,238",wheat:"245,222,179",whitesmoke:"245,245,245",white:"255,255,255",yellowgreen:"154,205,50",yellow:"255,255,0"}},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e=0;e<y.Lists.colors.length;e++){var t="color"===y.Lists.colors[e]?"0 0 0 1":"255 255 255 1";y.Hooks.templates[y.Lists.colors[e]]=["Red Green Blue Alpha",t]}var n,i,r;if(o)for(n in y.Hooks.templates)if(y.Hooks.templates.hasOwnProperty(n)){r=(i=y.Hooks.templates[n])[0].split(" ");var s=i[1].match(y.RegEx.valueSplit);"Color"===r[0]&&(r.push(r.shift()),s.push(s.shift()),y.Hooks.templates[n]=[r.join(" "),s.join(" ")])}for(n in y.Hooks.templates)if(y.Hooks.templates.hasOwnProperty(n)){r=(i=y.Hooks.templates[n])[0].split(" ");for(var a in r)if(r.hasOwnProperty(a)){var l=n+r[a],u=a;y.Hooks.registered[l]=[n,u]}}},getRoot:function(e){var t=y.Hooks.registered[e];return t?t[0]:e},getUnit:function(e,t){var n=(e.substr(t||0,5).match(/^[a-z%]+/)||[])[0]||"";return n&&u(y.Lists.units,n)?n:""},fixColors:function(e){return e.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,function(e,t,n){return y.Lists.colorNames.hasOwnProperty(n)?(t||"rgba(")+y.Lists.colorNames[n]+(t?"":",1)"):t+n})},cleanRootPropertyValue:function(e,t){return y.RegEx.valueUnwrap.test(t)&&(t=t.match(y.RegEx.valueUnwrap)[1]),y.Values.isCSSNullValue(t)&&(t=y.Hooks.templates[e][1]),t},extractValue:function(e,t){var n=y.Hooks.registered[e];if(n){var i=n[0],r=n[1];return(t=y.Hooks.cleanRootPropertyValue(i,t)).toString().match(y.RegEx.valueSplit)[r]}return t},injectValue:function(e,t,n){var i=y.Hooks.registered[e];if(i){var r,o=i[0],s=i[1];return(r=(n=y.Hooks.cleanRootPropertyValue(o,n)).toString().match(y.RegEx.valueSplit))[s]=t,r.join(" ")}return n}},Normalizations:{registered:{clip:function(e,t,n){switch(e){case"name":return"clip";case"extract":var i;return i=y.RegEx.wrappedValueAlreadyExtracted.test(n)?n:(i=n.toString().match(y.RegEx.valueUnwrap))?i[1].replace(/,(\s+)?/g," "):n;case"inject":return"rect("+n+")"}},blur:function(e,t,n){switch(e){case"name":return m.State.isFirefox?"filter":"-webkit-filter";case"extract":var i=parseFloat(n);if(!i&&0!==i){var r=n.toString().match(/blur\(([0-9]+[A-z]+)\)/i);i=r?r[1]:0}return i;case"inject":return parseFloat(n)?"blur("+n+")":"none"}},opacity:function(e,t,n){if(o<=8)switch(e){case"name":return"filter";case"extract":var i=n.toString().match(/alpha\(opacity=(.*)\)/i);return n=i?i[1]/100:1;case"inject":return t.style.zoom=1,parseFloat(n)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(n),10)+")"}else switch(e){case"name":return"opacity";case"extract":case"inject":return n}}},register:function(){o&&!(o>9)||m.State.isGingerbread||(y.Lists.transformsBase=y.Lists.transformsBase.concat(y.Lists.transforms3D));for(var e=0;e<y.Lists.transformsBase.length;e++)!function(){var t=y.Lists.transformsBase[e];y.Normalizations.registered[t]=function(e,n,r){switch(e){case"name":return"transform";case"extract":return k(n)===i||k(n).transformCache[t]===i?/^scale/i.test(t)?1:0:k(n).transformCache[t].replace(/[()]/g,"");case"inject":var o=!1;switch(t.substr(0,t.length-1)){case"translate":o=!/(%|px|em|rem|vw|vh|\d)$/i.test(r);break;case"scal":case"scale":m.State.isAndroid&&k(n).transformCache[t]===i&&r<1&&(r=1),o=!/(\d)$/i.test(r);break;case"skew":case"rotate":o=!/(deg|\d)$/i.test(r)}return o||(k(n).transformCache[t]="("+r+")"),k(n).transformCache[t]}}}();for(var t=0;t<y.Lists.colors.length;t++)!function(){var e=y.Lists.colors[t];y.Normalizations.registered[e]=function(t,n,r){switch(t){case"name":return e;case"extract":var s;if(y.RegEx.wrappedValueAlreadyExtracted.test(r))s=r;else{var a,l={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(r)?a=l[r]!==i?l[r]:l.black:y.RegEx.isHex.test(r)?a="rgb("+y.Values.hexToRgb(r).join(" ")+")":/^rgba?\(/i.test(r)||(a=l.black),s=(a||r).toString().match(y.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return(!o||o>8)&&3===s.split(" ").length&&(s+=" 1"),s;case"inject":return/^rgb/.test(r)?r:(o<=8?4===r.split(" ").length&&(r=r.split(/\s+/).slice(0,3).join(" ")):3===r.split(" ").length&&(r+=" 1"),(o<=8?"rgb":"rgba")+"("+r.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")")}}}();function n(e,t,n){if("border-box"===y.getPropertyValue(t,"boxSizing").toString().toLowerCase()===(n||!1)){var i,r,o=0,s="width"===e?["Left","Right"]:["Top","Bottom"],a=["padding"+s[0],"padding"+s[1],"border"+s[0]+"Width","border"+s[1]+"Width"];for(i=0;i<a.length;i++)r=parseFloat(y.getPropertyValue(t,a[i])),isNaN(r)||(o+=r);return n?-o:o}return 0}function r(e,t){return function(i,r,o){switch(i){case"name":return e;case"extract":return parseFloat(o)+n(e,r,t);case"inject":return parseFloat(o)-n(e,r,t)+"px"}}}y.Normalizations.registered.innerWidth=r("width",!0),y.Normalizations.registered.innerHeight=r("height",!0),y.Normalizations.registered.outerWidth=r("width"),y.Normalizations.registered.outerHeight=r("height")}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})},SVGAttribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(o||m.State.isAndroid&&!m.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(e)},prefixCheck:function(e){if(m.State.prefixMatches[e])return[m.State.prefixMatches[e],!0];for(var t=["","Webkit","Moz","ms","O"],n=0,i=t.length;n<i;n++){var r;if(r=0===n?e:t[n]+e.replace(/^\w/,function(e){return e.toUpperCase()}),h.isString(m.State.prefixElement.style[r]))return m.State.prefixMatches[e]=r,[r,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var t;return e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,i){return t+t+n+n+i+i}),(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(e){return!e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e&&e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(e,t){if(e)if(e.classList)e.classList.add(t);else if(h.isString(e.className))e.className+=(e.className.length?" ":"")+t;else{var n=e.getAttribute(o<=7?"className":"class")||"";e.setAttribute("class",n+(n?" ":"")+t)}},removeClass:function(e,t){if(e)if(e.classList)e.classList.remove(t);else if(h.isString(e.className))e.className=e.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ");else{var n=e.getAttribute(o<=7?"className":"class")||"";e.setAttribute("class",n.replace(new RegExp("(^|s)"+t.split(" ").join("|")+"(s|$)","gi")," "))}}},getPropertyValue:function(e,n,r,s){function a(e,n){var r=0;if(o<=8)r=d.css(e,n);else{var l=!1;/^(width|height)$/.test(n)&&0===y.getPropertyValue(e,"display")&&(l=!0,y.setPropertyValue(e,"display",y.Values.getDisplayType(e)));var u,c=function(){l&&y.setPropertyValue(e,"display","none")};if(!s){if("height"===n&&"border-box"!==y.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var h=e.offsetHeight-(parseFloat(y.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(y.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(y.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(y.getPropertyValue(e,"paddingBottom"))||0);return c(),h}if("width"===n&&"border-box"!==y.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var f=e.offsetWidth-(parseFloat(y.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(y.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(y.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(y.getPropertyValue(e,"paddingRight"))||0);return c(),f}}u=k(e)===i?t.getComputedStyle(e,null):k(e).computedStyle?k(e).computedStyle:k(e).computedStyle=t.getComputedStyle(e,null),"borderColor"===n&&(n="borderTopColor"),""!==(r=9===o&&"filter"===n?u.getPropertyValue(n):u[n])&&null!==r||(r=e.style[n]),c()}if("auto"===r&&/^(top|right|bottom|left)$/i.test(n)){var p=a(e,"position");("fixed"===p||"absolute"===p&&/top|left/i.test(n))&&(r=d(e).position()[n]+"px")}return r}var l;if(y.Hooks.registered[n]){var u=n,c=y.Hooks.getRoot(u);r===i&&(r=y.getPropertyValue(e,y.Names.prefixCheck(c)[0])),y.Normalizations.registered[c]&&(r=y.Normalizations.registered[c]("extract",e,r)),l=y.Hooks.extractValue(u,r)}else if(y.Normalizations.registered[n]){var h,f;"transform"!==(h=y.Normalizations.registered[n]("name",e))&&(f=a(e,y.Names.prefixCheck(h)[0]),y.Values.isCSSNullValue(f)&&y.Hooks.templates[n]&&(f=y.Hooks.templates[n][1])),l=y.Normalizations.registered[n]("extract",e,f)}if(!/^[\d-]/.test(l)){var p=k(e);if(p&&p.isSVG&&y.Names.SVGAttribute(n))if(/^(height|width)$/i.test(n))try{l=e.getBBox()[n]}catch(e){l=0}else l=e.getAttribute(n);else l=a(e,y.Names.prefixCheck(n)[0])}return y.Values.isCSSNullValue(l)&&(l=0),m.debug>=2&&console.log("Get "+n+": "+l),l},setPropertyValue:function(e,n,i,r,s){var a=n;if("scroll"===n)s.container?s.container["scroll"+s.direction]=i:"Left"===s.direction?t.scrollTo(i,s.alternateValue):t.scrollTo(s.alternateValue,i);else if(y.Normalizations.registered[n]&&"transform"===y.Normalizations.registered[n]("name",e))y.Normalizations.registered[n]("inject",e,i),a="transform",i=k(e).transformCache[n];else{if(y.Hooks.registered[n]){var l=n,u=y.Hooks.getRoot(n);r=r||y.getPropertyValue(e,u),i=y.Hooks.injectValue(l,i,r),n=u}if(y.Normalizations.registered[n]&&(i=y.Normalizations.registered[n]("inject",e,i),n=y.Normalizations.registered[n]("name",e)),a=y.Names.prefixCheck(n)[0],o<=8)try{e.style[a]=i}catch(e){m.debug&&console.log("Browser does not support ["+i+"] for ["+a+"]")}else{var c=k(e);c&&c.isSVG&&y.Names.SVGAttribute(n)?e.setAttribute(n,i):e.style[a]=i}m.debug>=2&&console.log("Set "+n+" ("+a+"): "+i)}return[a,i]},flushTransformCache:function(e){var t="",n=k(e);if((o||m.State.isAndroid&&!m.State.isChrome)&&n&&n.isSVG){var i=function(t){return parseFloat(y.getPropertyValue(e,t))},r={translate:[i("translateX"),i("translateY")],skewX:[i("skewX")],skewY:[i("skewY")],scale:1!==i("scale")?[i("scale"),i("scale")]:[i("scaleX"),i("scaleY")],rotate:[i("rotateZ"),0,0]};d.each(k(e).transformCache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),r[e]&&(t+=e+"("+r[e].join(" ")+") ",delete r[e])})}else{var s,a;d.each(k(e).transformCache,function(n){if(s=k(e).transformCache[n],"transformPerspective"===n)return a=s,!0;9===o&&"rotateZ"===n&&(n="rotate"),t+=n+s+" "}),a&&(t="perspective"+a+" "+t)}y.setPropertyValue(e,"transform",t)}};y.Hooks.register(),y.Normalizations.register(),m.hook=function(e,t,n){var r;return e=c(e),d.each(e,function(e,o){if(k(o)===i&&m.init(o),n===i)r===i&&(r=y.getPropertyValue(o,t));else{var s=y.setPropertyValue(o,t,n);"transform"===s[0]&&m.CSS.flushTransformCache(o),r=s}}),r};var w=function(){var e;function r(){return o?b.promise||null:s}var o,s,a,l,f,g,v=arguments[0]&&(arguments[0].p||d.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||h.isString(arguments[0].properties));h.isWrapped(this)?(o=!1,a=0,l=this,s=this):(o=!0,a=1,l=v?arguments[0].elements||arguments[0].e:arguments[0]);var b={promise:null,resolver:null,rejecter:null};if(o&&m.Promise&&(b.promise=new m.Promise(function(e,t){b.resolver=e,b.rejecter=t})),v?(f=arguments[0].properties||arguments[0].p,g=arguments[0].options||arguments[0].o):(f=arguments[a],g=arguments[a+1]),l=c(l)){var x,T=l.length,D=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(f)&&!d.isPlainObject(g)){g={};for(var P=a+1;P<arguments.length;P++)h.isArray(arguments[P])||!/^(fast|normal|slow)$/i.test(arguments[P])&&!/^\d/.test(arguments[P])?h.isString(arguments[P])||h.isArray(arguments[P])?g.easing=arguments[P]:h.isFunction(arguments[P])&&(g.complete=arguments[P]):g.duration=arguments[P]}switch(f){case"scroll":x="scroll";break;case"reverse":x="reverse";break;case"pause":var A=(new Date).getTime();return d.each(l,function(e,t){S(t,A)}),d.each(m.State.calls,function(e,t){var n=!1;t&&d.each(t[1],function(e,r){var o=g===i?"":g;return!0!==o&&t[2].queue!==o&&(g!==i||!1!==t[2].queue)||(d.each(l,function(e,i){if(i===r)return t[5]={resume:!1},n=!0,!1}),!n&&void 0)})}),r();case"resume":return d.each(l,function(e,t){C(t)}),d.each(m.State.calls,function(e,t){var n=!1;t&&d.each(t[1],function(e,r){var o=g===i?"":g;return!0!==o&&t[2].queue!==o&&(g!==i||!1!==t[2].queue)||(!t[5]||(d.each(l,function(e,i){if(i===r)return t[5].resume=!0,n=!0,!1}),!n&&void 0))})}),r();case"finish":case"finishAll":case"stop":d.each(l,function(e,t){k(t)&&k(t).delayTimer&&(clearTimeout(k(t).delayTimer.setTimeout),k(t).delayTimer.next&&k(t).delayTimer.next(),delete k(t).delayTimer),"finishAll"!==f||!0!==g&&!h.isString(g)||(d.each(d.queue(t,h.isString(g)?g:""),function(e,t){h.isFunction(t)&&t()}),d.queue(t,h.isString(g)?g:"",[]))});var M=[];return d.each(m.State.calls,function(e,t){t&&d.each(t[1],function(n,r){var o=g===i?"":g;if(!0!==o&&t[2].queue!==o&&(g!==i||!1!==t[2].queue))return!0;d.each(l,function(n,i){if(i===r)if((!0===g||h.isString(g))&&(d.each(d.queue(i,h.isString(g)?g:""),function(e,t){h.isFunction(t)&&t(null,!0)}),d.queue(i,h.isString(g)?g:"",[])),"stop"===f){var s=k(i);s&&s.tweensContainer&&!1!==o&&d.each(s.tweensContainer,function(e,t){t.endValue=t.currentValue}),M.push(e)}else"finish"!==f&&"finishAll"!==f||(t[2].duration=1)})})}),"stop"===f&&(d.each(M,function(e,t){O(t,!0)}),b.promise&&b.resolver(l)),r();default:if(!d.isPlainObject(f)||h.isEmptyObject(f)){if(h.isString(f)&&m.Redirects[f]){var N=(e=d.extend({},g)).duration,F=e.delay||0;return!0===e.backwards&&(l=d.extend(!0,[],l).reverse()),d.each(l,function(t,n){parseFloat(e.stagger)?e.delay=F+parseFloat(e.stagger)*t:h.isFunction(e.stagger)&&(e.delay=F+e.stagger.call(n,t,T)),e.drag&&(e.duration=parseFloat(N)||(/^(callout|transition)/.test(f)?1e3:p),e.duration=Math.max(e.duration*(e.backwards?1-t/T:(t+1)/T),.75*e.duration,200)),m.Redirects[f].call(n,n,e||{},t,T,l,b.promise?b:i)}),r()}var L="Velocity: First argument ("+f+") was not a property map, a known action, or a registered redirect. Aborting.";return b.promise?b.rejecter(new Error(L)):t.console&&console.log(L),r()}x="start"}var I={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},Y=[];d.each(l,function(e,r){h.isNode(r)&&function(e,r){var o,s,a=d.extend({},m.defaults,g),c={};switch(k(e)===i&&m.init(e),parseFloat(a.delay)&&!1!==a.queue&&d.queue(e,a.queue,function(t,n){if(!0===n)return!0;m.velocityQueueEntryFlag=!0;var i=m.State.delayedElements.count++;m.State.delayedElements[i]=e;var r,o=(r=i,function(){m.State.delayedElements[r]=!1,t()});k(e).delayBegin=(new Date).getTime(),k(e).delay=parseFloat(a.delay),k(e).delayTimer={setTimeout:setTimeout(t,parseFloat(a.delay)),next:o}}),a.duration.toString().toLowerCase()){case"fast":a.duration=200;break;case"normal":a.duration=p;break;case"slow":a.duration=600;break;default:a.duration=parseFloat(a.duration)||1}function v(s){var p,v,w,S,C,O,P;if(a.begin&&0===D)try{a.begin.call(l,l)}catch(e){setTimeout(function(){throw e},1)}if("scroll"===x){var A,M,N,F=/^x$/i.test(a.axis)?"Left":"Top",L=parseFloat(a.offset)||0;a.container?h.isWrapped(a.container)||h.isNode(a.container)?(a.container=a.container[0]||a.container,N=(A=a.container["scroll"+F])+d(e).position()[F.toLowerCase()]+L):a.container=null:(A=m.State.scrollAnchor[m.State["scrollProperty"+F]],M=m.State.scrollAnchor[m.State["scrollProperty"+("Left"===F?"Top":"Left")]],N=d(e).offset()[F.toLowerCase()]+L),c={scroll:{rootPropertyValue:!1,startValue:A,currentValue:A,endValue:N,unitType:"",easing:a.easing,scrollData:{container:a.container,direction:F,alternateValue:M}},element:e},m.debug&&console.log("tweensContainer (scroll): ",c.scroll,e)}else if("reverse"===x){if(!(p=k(e)))return;if(!p.tweensContainer)return void d.dequeue(e,a.queue);"none"===p.opts.display&&(p.opts.display="auto"),"hidden"===p.opts.visibility&&(p.opts.visibility="visible"),p.opts.loop=!1,p.opts.begin=null,p.opts.complete=null,g.easing||delete a.easing,g.duration||delete a.duration,a=d.extend({},p.opts,a),v=d.extend(!0,{},p?p.tweensContainer:null);for(var j in v)if(v.hasOwnProperty(j)&&"element"!==j){var H=v[j].startValue;v[j].startValue=v[j].currentValue=v[j].endValue,v[j].endValue=H,h.isEmptyObject(g)||(v[j].easing=a.easing),m.debug&&console.log("reverse tweensContainer ("+j+"): "+JSON.stringify(v[j]),e)}c=v}else if("start"===x){(p=k(e))&&p.tweensContainer&&!0===p.isAnimating&&(v=p.tweensContainer);var z=function(r,s){var l,u=y.Hooks.getRoot(r),f=!1,g=s[0],w=s[1],b=s[2];if(p&&p.isSVG||"tween"===u||!1!==y.Names.prefixCheck(u)[1]||y.Normalizations.registered[u]!==i){(a.display!==i&&null!==a.display&&"none"!==a.display||a.visibility!==i&&"hidden"!==a.visibility)&&/opacity|filter/.test(r)&&!b&&0!==g&&(b=0),a._cacheValues&&v&&v[r]?(b===i&&(b=v[r].endValue+v[r].unitType),f=p.rootPropertyValueCache[u]):y.Hooks.registered[r]?b===i?(f=y.getPropertyValue(e,u),b=y.getPropertyValue(e,r,f)):f=y.Hooks.templates[u][1]:b===i&&(b=y.getPropertyValue(e,r));var x,k,S,C=!1,T=function(e,t){var n,i;return i=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(e){return n=e,""}),n||(n=y.Values.getUnitType(e)),[i,n]};if(b!==g&&h.isString(b)&&h.isString(g)){l="";var _=0,E=0,O=[],D=[],P=0,A=0,M=0;for(b=y.Hooks.fixColors(b),g=y.Hooks.fixColors(g);_<b.length&&E<g.length;){var N=b[_],F=g[E];if(/[\d\.-]/.test(N)&&/[\d\.-]/.test(F)){for(var L=N,Y=F,j=".",H=".";++_<b.length;){if((N=b[_])===j)j="..";else if(!/\d/.test(N))break;L+=N}for(;++E<g.length;){if((F=g[E])===H)H="..";else if(!/\d/.test(F))break;Y+=F}var z=y.Hooks.getUnit(b,_),R=y.Hooks.getUnit(g,E);if(_+=z.length,E+=R.length,z===R)L===Y?l+=L+z:(l+="{"+O.length+(A?"!":"")+"}"+z,O.push(parseFloat(L)),D.push(parseFloat(Y)));else{var $=parseFloat(L),q=parseFloat(Y);l+=(P<5?"calc":"")+"("+($?"{"+O.length+(A?"!":"")+"}":"0")+z+" + "+(q?"{"+(O.length+($?1:0))+(A?"!":"")+"}":"0")+R+")",$&&(O.push($),D.push(0)),q&&(O.push(0),D.push(q))}}else{if(N!==F){P=0;break}l+=N,_++,E++,0===P&&"c"===N||1===P&&"a"===N||2===P&&"l"===N||3===P&&"c"===N||P>=4&&"("===N?P++:(P&&P<5||P>=4&&")"===N&&--P<5)&&(P=0),0===A&&"r"===N||1===A&&"g"===N||2===A&&"b"===N||3===A&&"a"===N||A>=3&&"("===N?(3===A&&"a"===N&&(M=1),A++):M&&","===N?++M>3&&(A=M=0):(M&&A<(M?5:4)||A>=(M?4:3)&&")"===N&&--A<(M?5:4))&&(A=M=0)}}_===b.length&&E===g.length||(m.debug&&console.error('Trying to pattern match mis-matched strings ["'+g+'", "'+b+'"]'),l=i),l&&(O.length?(m.debug&&console.log('Pattern found "'+l+'" -> ',O,D,"["+b+","+g+"]"),b=O,g=D,k=S=""):l=i)}if(l||(b=(x=T(r,b))[0],S=x[1],g=(x=T(r,g))[0].replace(/^([+-\/*])=/,function(e,t){return C=t,""}),k=x[1],b=parseFloat(b)||0,g=parseFloat(g)||0,"%"===k&&(/^(fontSize|lineHeight)$/.test(r)?(g/=100,k="em"):/^scale/.test(r)?(g/=100,k=""):/(Red|Green|Blue)$/i.test(r)&&(g=g/100*255,k=""))),/[\/*]/.test(C))k=S;else if(S!==k&&0!==b)if(0===g)k=S;else{o=o||function(){var i={myParent:e.parentNode||n.body,position:y.getPropertyValue(e,"position"),fontSize:y.getPropertyValue(e,"fontSize")},r=i.position===I.lastPosition&&i.myParent===I.lastParent,o=i.fontSize===I.lastFontSize;I.lastParent=i.myParent,I.lastPosition=i.position,I.lastFontSize=i.fontSize;var s={};if(o&&r)s.emToPx=I.lastEmToPx,s.percentToPxWidth=I.lastPercentToPxWidth,s.percentToPxHeight=I.lastPercentToPxHeight;else{var a=p&&p.isSVG?n.createElementNS("http://www.w3.org/2000/svg","rect"):n.createElement("div");m.init(a),i.myParent.appendChild(a),d.each(["overflow","overflowX","overflowY"],function(e,t){m.CSS.setPropertyValue(a,t,"hidden")}),m.CSS.setPropertyValue(a,"position",i.position),m.CSS.setPropertyValue(a,"fontSize",i.fontSize),m.CSS.setPropertyValue(a,"boxSizing","content-box"),d.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(e,t){m.CSS.setPropertyValue(a,t,"100%")}),m.CSS.setPropertyValue(a,"paddingLeft","100em"),s.percentToPxWidth=I.lastPercentToPxWidth=(parseFloat(y.getPropertyValue(a,"width",null,!0))||1)/100,s.percentToPxHeight=I.lastPercentToPxHeight=(parseFloat(y.getPropertyValue(a,"height",null,!0))||1)/100,s.emToPx=I.lastEmToPx=(parseFloat(y.getPropertyValue(a,"paddingLeft"))||1)/100,i.myParent.removeChild(a)}return null===I.remToPx&&(I.remToPx=parseFloat(y.getPropertyValue(n.body,"fontSize"))||16),null===I.vwToPx&&(I.vwToPx=parseFloat(t.innerWidth)/100,I.vhToPx=parseFloat(t.innerHeight)/100),s.remToPx=I.remToPx,s.vwToPx=I.vwToPx,s.vhToPx=I.vhToPx,m.debug>=1&&console.log("Unit ratios: "+JSON.stringify(s),e),s}();var W=/margin|padding|left|right|width|text|word|letter/i.test(r)||/X$/.test(r)||"x"===r?"x":"y";switch(S){case"%":b*="x"===W?o.percentToPxWidth:o.percentToPxHeight;break;case"px":break;default:b*=o[S+"ToPx"]}switch(k){case"%":b*=1/("x"===W?o.percentToPxWidth:o.percentToPxHeight);break;case"px":break;default:b*=1/o[k+"ToPx"]}}switch(C){case"+":g=b+g;break;case"-":g=b-g;break;case"*":g*=b;break;case"/":g=b/g}c[r]={rootPropertyValue:f,startValue:b,currentValue:b,endValue:g,unitType:k,easing:w},l&&(c[r].pattern=l),m.debug&&console.log("tweensContainer ("+r+"): "+JSON.stringify(c[r]),e)}else m.debug&&console.log("Skipping ["+u+"] due to a lack of browser support.")};for(var R in f)if(f.hasOwnProperty(R)){var $=y.Names.camelCase(R),q=(w=f[R],S=void 0,C=void 0,O=void 0,P=void 0,h.isFunction(w)&&(w=w.call(e,r,T)),h.isArray(w)?(C=w[0],!h.isArray(w[1])&&/^[\d-]/.test(w[1])||h.isFunction(w[1])||y.RegEx.isHex.test(w[1])?P=w[1]:h.isString(w[1])&&!y.RegEx.isHex.test(w[1])&&m.Easings[w[1]]||h.isArray(w[1])?(O=S?w[1]:_(w[1],a.duration),P=w[2]):P=w[1]||w[2]):C=w,S||(O=O||a.easing),h.isFunction(C)&&(C=C.call(e,r,T)),h.isFunction(P)&&(P=P.call(e,r,T)),[C||0,O,P]);if(u(y.Lists.colors,$)){var W=q[0],V=q[1],X=q[2];if(y.RegEx.isHex.test(W)){for(var B=["Red","Green","Blue"],U=y.Values.hexToRgb(W),G=X?y.Values.hexToRgb(X):i,Z=0;Z<B.length;Z++){var Q=[U[Z]];V&&Q.push(V),G!==i&&Q.push(G[Z]),z($+B[Z],Q)}continue}}z($,q)}c.element=e}c.element&&(y.Values.addClass(e,"velocity-animating"),Y.push(c),(p=k(e))&&(""===a.queue&&(p.tweensContainer=c,p.opts=a),p.isAnimating=!0),D===T-1?(m.State.calls.push([Y,l,a,null,b.resolver,null,0]),!1===m.State.isTicking&&(m.State.isTicking=!0,E())):D++)}if(!1!==m.mock&&(!0===m.mock?a.duration=a.delay=1:(a.duration*=parseFloat(m.mock)||1,a.delay*=parseFloat(m.mock)||1)),a.easing=_(a.easing,a.duration),a.begin&&!h.isFunction(a.begin)&&(a.begin=null),a.progress&&!h.isFunction(a.progress)&&(a.progress=null),a.complete&&!h.isFunction(a.complete)&&(a.complete=null),a.display!==i&&null!==a.display&&(a.display=a.display.toString().toLowerCase(),"auto"===a.display&&(a.display=m.CSS.Values.getDisplayType(e))),a.visibility!==i&&null!==a.visibility&&(a.visibility=a.visibility.toString().toLowerCase()),a.mobileHA=a.mobileHA&&m.State.isMobile&&!m.State.isGingerbread,!1===a.queue)if(a.delay){var w=m.State.delayedElements.count++;m.State.delayedElements[w]=e;var S=(s=w,function(){m.State.delayedElements[s]=!1,v()});k(e).delayBegin=(new Date).getTime(),k(e).delay=parseFloat(a.delay),k(e).delayTimer={setTimeout:setTimeout(v,parseFloat(a.delay)),next:S}}else v();else d.queue(e,a.queue,function(e,t){if(!0===t)return b.promise&&b.resolver(l),!0;m.velocityQueueEntryFlag=!0,v()});""!==a.queue&&"fx"!==a.queue||"inprogress"===d.queue(e)[0]||d.dequeue(e)}(r,e)}),(e=d.extend({},m.defaults,g)).loop=parseInt(e.loop,10);var j=2*e.loop-1;if(e.loop)for(var H=0;H<j;H++){var z={delay:e.delay,progress:e.progress};H===j-1&&(z.display=e.display,z.visibility=e.visibility,z.complete=e.complete),w(l,"reverse",z)}return r()}b.promise&&(f&&g&&!1===g.promiseRejectEmpty?b.resolver():b.rejecter())};(m=d.extend(w,m)).animate=w;var b=t.requestAnimationFrame||s;if(!m.State.isMobile&&n.hidden!==i){var x=function(){n.hidden?(b=function(e){return setTimeout(function(){e(!0)},16)},E()):b=t.requestAnimationFrame||s};x(),n.addEventListener("visibilitychange",x)}return e.Velocity=m,e!==t&&(e.fn.velocity=w,e.fn.velocity.defaults=m.defaults),d.each(["Down","Up"],function(e,t){m.Redirects["slide"+t]=function(e,n,r,o,s,a){var l=d.extend({},n),u=l.begin,c=l.complete,h={},f={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};l.display===i&&(l.display="Down"===t?"inline"===m.CSS.Values.getDisplayType(e)?"inline-block":"block":"none"),l.begin=function(){0===r&&u&&u.call(s,s);for(var n in f)if(f.hasOwnProperty(n)){h[n]=e.style[n];var i=y.getPropertyValue(e,n);f[n]="Down"===t?[i,0]:[0,i]}h.overflow=e.style.overflow,e.style.overflow="hidden"},l.complete=function(){for(var t in h)h.hasOwnProperty(t)&&(e.style[t]=h[t]);r===o-1&&(c&&c.call(s,s),a&&a.resolver(s))},m(e,f,l)}}),d.each(["In","Out"],function(e,t){m.Redirects["fade"+t]=function(e,n,r,o,s,a){var l=d.extend({},n),u=l.complete,c={opacity:"In"===t?1:0};0!==r&&(l.begin=null),l.complete=r!==o-1?null:function(){u&&u.call(s,s),a&&a.resolver(s)},l.display===i&&(l.display="In"===t?"auto":"none"),m(this,c,l)}}),m}function k(e){var t=d.data(e,"velocity");return null===t?i:t}function S(e,t){var n=k(e);n&&n.delayTimer&&!n.delayPaused&&(n.delayRemaining=n.delay-t+n.delayBegin,n.delayPaused=!0,clearTimeout(n.delayTimer.setTimeout))}function C(e,t){var n=k(e);n&&n.delayTimer&&n.delayPaused&&(n.delayPaused=!1,n.delayTimer.setTimeout=setTimeout(n.delayTimer.next,n.delayRemaining))}function T(e,n,i,r){var o=4,s=.001,a=1e-7,l=10,u=11,c=1/(u-1),d="Float32Array"in t;if(4!==arguments.length)return!1;for(var h=0;h<4;++h)if("number"!=typeof arguments[h]||isNaN(arguments[h])||!isFinite(arguments[h]))return!1;e=Math.min(e,1),i=Math.min(i,1),e=Math.max(e,0),i=Math.max(i,0);var f=d?new Float32Array(u):new Array(u);function p(e,t){return 1-3*t+3*e}function g(e,t){return 3*t-6*e}function m(e){return 3*e}function v(e,t,n){return((p(t,n)*e+g(t,n))*e+m(t))*e}function y(e,t,n){return 3*p(t,n)*e*e+2*g(t,n)*e+m(t)}function w(t){for(var n=0,r=1,d=u-1;r!==d&&f[r]<=t;++r)n+=c;var h=n+(t-f[--r])/(f[r+1]-f[r])*c,p=y(h,e,i);return p>=s?function(t,n){for(var r=0;r<o;++r){var s=y(n,e,i);if(0===s)return n;n-=(v(n,e,i)-t)/s}return n}(t,h):0===p?h:function(t,n,r){var o,s,u=0;do{(o=v(s=n+(r-n)/2,e,i)-t)>0?r=s:n=s}while(Math.abs(o)>a&&++u<l);return s}(t,n,n+c)}var b=!1;function x(){b=!0,e===n&&i===r||function(){for(var t=0;t<u;++t)f[t]=v(t*c,e,i)}()}var k=function(t){return b||x(),e===n&&i===r?t:0===t?0:1===t?1:v(w(t),n,r)};k.getControlPoints=function(){return[{x:e,y:n},{x:i,y:r}]};var S="generateBezier("+[e,n,i,r]+")";return k.toString=function(){return S},k}function _(e,t){var n=e;return h.isString(e)?m.Easings[e]||(n=!1):n=h.isArray(e)&&1===e.length?function(e){return function(t){return Math.round(t*e)*(1/e)}}.apply(null,e):h.isArray(e)&&2===e.length?v.apply(null,e.concat([t])):!(!h.isArray(e)||4!==e.length)&&T.apply(null,e),!1===n&&(n=m.Easings[m.defaults.easing]?m.defaults.easing:g),n}function E(e){if(e){var t=m.timestamp&&!0!==e?e:a.now(),n=m.State.calls.length;n>1e4&&(m.State.calls=function(e){for(var t=-1,n=e?e.length:0,i=[];++t<n;){var r=e[t];r&&i.push(r)}return i}(m.State.calls),n=m.State.calls.length);for(var r=0;r<n;r++)if(m.State.calls[r]){var s=m.State.calls[r],l=s[0],u=s[2],c=s[3],f=!c,p=null,g=s[5],v=s[6];if(c||(c=m.State.calls[r][3]=t-16),g){if(!0!==g.resume)continue;c=s[3]=Math.round(t-v-16),s[5]=null}v=s[6]=t-c;for(var w=Math.min(v/u.duration,1),x=0,S=l.length;x<S;x++){var C=l[x],T=C.element;if(k(T)){var _=!1;if(u.display!==i&&null!==u.display&&"none"!==u.display){if("flex"===u.display){d.each(["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],function(e,t){y.setPropertyValue(T,"display",t)})}y.setPropertyValue(T,"display",u.display)}u.visibility!==i&&"hidden"!==u.visibility&&y.setPropertyValue(T,"visibility",u.visibility);for(var D in C)if(C.hasOwnProperty(D)&&"element"!==D){var P,A=C[D],M=h.isString(A.easing)?m.Easings[A.easing]:A.easing;if(h.isString(A.pattern)){var N=1===w?function(e,t,n){var i=A.endValue[t];return n?Math.round(i):i}:function(e,t,n){var i=A.startValue[t],r=A.endValue[t]-i,o=i+r*M(w,u,r);return n?Math.round(o):o};P=A.pattern.replace(/{(\d+)(!)?}/g,N)}else if(1===w)P=A.endValue;else{var F=A.endValue-A.startValue;P=A.startValue+F*M(w,u,F)}if(!f&&P===A.currentValue)continue;if(A.currentValue=P,"tween"===D)p=P;else{var L;if(y.Hooks.registered[D]){L=y.Hooks.getRoot(D);var I=k(T).rootPropertyValueCache[L];I&&(A.rootPropertyValue=I)}var Y=y.setPropertyValue(T,D,A.currentValue+(o<9&&0===parseFloat(P)?"":A.unitType),A.rootPropertyValue,A.scrollData);y.Hooks.registered[D]&&(y.Normalizations.registered[L]?k(T).rootPropertyValueCache[L]=y.Normalizations.registered[L]("extract",null,Y[1]):k(T).rootPropertyValueCache[L]=Y[1]),"transform"===Y[0]&&(_=!0)}}u.mobileHA&&k(T).transformCache.translate3d===i&&(k(T).transformCache.translate3d="(0px, 0px, 0px)",_=!0),_&&y.flushTransformCache(T)}}u.display!==i&&"none"!==u.display&&(m.State.calls[r][2].display=!1),u.visibility!==i&&"hidden"!==u.visibility&&(m.State.calls[r][2].visibility=!1),u.progress&&u.progress.call(s[1],s[1],w,Math.max(0,c+u.duration-t),c,p),1===w&&O(r)}}m.State.isTicking&&b(E)}function O(e,t){if(!m.State.calls[e])return!1;for(var n=m.State.calls[e][0],r=m.State.calls[e][1],o=m.State.calls[e][2],s=m.State.calls[e][4],a=!1,l=0,u=n.length;l<u;l++){var c=n[l].element;t||o.loop||("none"===o.display&&y.setPropertyValue(c,"display",o.display),"hidden"===o.visibility&&y.setPropertyValue(c,"visibility",o.visibility));var h=k(c);if(!0!==o.loop&&(d.queue(c)[1]===i||!/\.velocityQueueEntryFlag/i.test(d.queue(c)[1]))&&h){h.isAnimating=!1,h.rootPropertyValueCache={};var f=!1;d.each(y.Lists.transforms3D,function(e,t){var n=/^scale/.test(t)?1:0,r=h.transformCache[t];h.transformCache[t]!==i&&new RegExp("^\\("+n+"[^.]").test(r)&&(f=!0,delete h.transformCache[t])}),o.mobileHA&&(f=!0,delete h.transformCache.translate3d),f&&y.flushTransformCache(c),y.Values.removeClass(c,"velocity-animating")}if(!t&&o.complete&&!o.loop&&l===u-1)try{o.complete.call(r,r)}catch(e){setTimeout(function(){throw e},1)}s&&!0!==o.loop&&s(r),h&&!0===o.loop&&!t&&(d.each(h.tweensContainer,function(e,t){if(/^rotate/.test(e)&&(parseFloat(t.startValue)-parseFloat(t.endValue))%360==0){var n=t.startValue;t.startValue=t.endValue,t.endValue=n}/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)}),m(c,"reverse",{loop:!0,delay:o.delay})),!1!==o.queue&&d.dequeue(c,o.queue)}m.State.calls[e]=!1;for(var p=0,g=m.State.calls.length;p<g;p++)if(!1!==m.State.calls[p]){a=!0;break}!1===a&&(m.State.isTicking=!1,delete m.State.calls,m.State.calls=[])}jQuery.fn.velocity=jQuery.fn.animate}(window.jQuery||window.Zepto||window,window,window?window.document:void 0)}),function(e){"use strict";"function"==typeof require&&"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(["velocity"],e):e()}(function(){"use strict";return function(e,t,n,i){var r=e.Velocity;if(r&&r.Utilities){var o,s,a,l=r.Utilities,u=r.version;if(s=u,a=[],(o={major:1,minor:1,patch:0})&&s&&(l.each([o,s],function(e,t){var n=[];l.each(t,function(e,t){for(;t.toString().length<5;)t="0"+t;n.push(t)}),a.push(n.join(""))}),parseFloat(a[0])>parseFloat(a[1]))){var c="Velocity UI Pack: You need to update Velocity (velocity.js) to a newer version. Visit http://github.com/julianshapiro/velocity.";throw alert(c),new Error(c)}r.RegisterEffect=r.RegisterUI=function(e,t){return r.Redirects[e]=function(n,i,o,s,a,u,c){var d=o===s-1,h=0;c=c||t.loop,"function"==typeof t.defaultDuration?t.defaultDuration=t.defaultDuration.call(a,a):t.defaultDuration=parseFloat(t.defaultDuration);for(var f=0;f<t.calls.length;f++)"number"==typeof(y=t.calls[f][1])&&(h+=y);var p=h>=1?0:t.calls.length?(1-h)/t.calls.length:1;for(f=0;f<t.calls.length;f++){var g=t.calls[f],m=g[0],v=1e3,y=g[1],w=g[2]||{},b={};if(void 0!==i.duration?v=i.duration:void 0!==t.defaultDuration&&(v=t.defaultDuration),b.duration=v*("number"==typeof y?y:p),b.queue=i.queue||"",b.easing=w.easing||"ease",b.delay=parseFloat(w.delay)||0,b.loop=!t.loop&&w.loop,b._cacheValues=w._cacheValues||!0,0===f){if(b.delay+=parseFloat(i.delay)||0,0===o&&(b.begin=function(){i.begin&&i.begin.call(a,a);var t,n,o,s,u,c,d=e.match(/(In|Out)$/);d&&"In"===d[0]&&void 0!==m.opacity&&l.each(a.nodeType?[a]:a,function(e,t){r.CSS.setPropertyValue(t,"opacity",0)}),i.animateParentHeight&&d&&(t=a,n=d[0],o=v+b.delay,s=i.stagger,c=0,l.each(t.nodeType?[t]:t,function(e,t){s&&(o+=e*s),u=t.parentNode;var n=["height","paddingTop","paddingBottom","marginTop","marginBottom"];"border-box"===r.CSS.getPropertyValue(t,"boxSizing").toString().toLowerCase()&&(n=["height"]),l.each(n,function(e,n){c+=parseFloat(r.CSS.getPropertyValue(t,n))})}),r.animate(u,{height:("In"===n?"+":"-")+"="+c},{queue:!1,easing:"ease-in-out",duration:o*("In"===n?.6:1)}))}),null!==i.display)if(void 0!==i.display&&"none"!==i.display)b.display=i.display;else if(/In$/.test(e)){var x=r.CSS.Values.getDisplayType(n);b.display="inline"===x?"inline-block":x}i.visibility&&"hidden"!==i.visibility&&(b.visibility=i.visibility)}if(f===t.calls.length-1){var k=function(){void 0!==i.display&&"none"!==i.display||!/Out$/.test(e)||l.each(a.nodeType?[a]:a,function(e,t){r.CSS.setPropertyValue(t,"display","none")}),i.complete&&i.complete.call(a,a),u&&u.resolver(a||n)};b.complete=function(){if(c&&r.Redirects[e](n,i,o,s,a,u,!0===c||Math.max(0,c-1)),t.reset){for(var l in t.reset)if(t.reset.hasOwnProperty(l)){var h=t.reset[l];void 0!==r.CSS.Hooks.registered[l]||"string"!=typeof h&&"number"!=typeof h||(t.reset[l]=[t.reset[l],t.reset[l]])}var f={duration:0,queue:!1};d&&(f.complete=k),r.animate(n,t.reset,f)}else d&&k()},"hidden"===i.visibility&&(b.visibility=i.visibility)}r.animate(n,m,b)}},r},r.RegisterEffect.packagedEffects={"callout.bounce":{defaultDuration:550,calls:[[{translateY:-30},.25],[{translateY:0},.125],[{translateY:-15},.125],[{translateY:0},.25]]},"callout.shake":{defaultDuration:800,calls:[[{translateX:-11}],[{translateX:11}],[{translateX:-11}],[{translateX:11}],[{translateX:-11}],[{translateX:11}],[{translateX:-11}],[{translateX:0}]]},"callout.flash":{defaultDuration:1100,calls:[[{opacity:[0,"easeInOutQuad",1]}],[{opacity:[1,"easeInOutQuad"]}],[{opacity:[0,"easeInOutQuad"]}],[{opacity:[1,"easeInOutQuad"]}]]},"callout.pulse":{defaultDuration:825,calls:[[{scaleX:1.1,scaleY:1.1},.5,{easing:"easeInExpo"}],[{scaleX:1,scaleY:1},.5]]},"callout.swing":{defaultDuration:950,calls:[[{rotateZ:15}],[{rotateZ:-10}],[{rotateZ:5}],[{rotateZ:-5}],[{rotateZ:0}]]},"callout.tada":{defaultDuration:1e3,calls:[[{scaleX:.9,scaleY:.9,rotateZ:-3},.1],[{scaleX:1.1,scaleY:1.1,rotateZ:3},.1],[{scaleX:1.1,scaleY:1.1,rotateZ:-3},.1],["reverse",.125],["reverse",.125],["reverse",.125],["reverse",.125],["reverse",.125],[{scaleX:1,scaleY:1,rotateZ:0},.2]]},"transition.fadeIn":{defaultDuration:500,calls:[[{opacity:[1,0]}]]},"transition.fadeOut":{defaultDuration:500,calls:[[{opacity:[0,1]}]]},"transition.flipXIn":{defaultDuration:700,calls:[[{opacity:[1,0],transformPerspective:[800,800],rotateY:[0,-55]}]],reset:{transformPerspective:0}},"transition.flipXOut":{defaultDuration:700,calls:[[{opacity:[0,1],transformPerspective:[800,800],rotateY:55}]],reset:{transformPerspective:0,rotateY:0}},"transition.flipYIn":{defaultDuration:800,calls:[[{opacity:[1,0],transformPerspective:[800,800],rotateX:[0,-45]}]],reset:{transformPerspective:0}},"transition.flipYOut":{defaultDuration:800,calls:[[{opacity:[0,1],transformPerspective:[800,800],rotateX:25}]],reset:{transformPerspective:0,rotateX:0}},"transition.flipBounceXIn":{defaultDuration:900,calls:[[{opacity:[.725,0],transformPerspective:[400,400],rotateY:[-10,90]},.5],[{opacity:.8,rotateY:10},.25],[{opacity:1,rotateY:0},.25]],reset:{transformPerspective:0}},"transition.flipBounceXOut":{defaultDuration:800,calls:[[{opacity:[.9,1],transformPerspective:[400,400],rotateY:-10}],[{opacity:0,rotateY:90}]],reset:{transformPerspective:0,rotateY:0}},"transition.flipBounceYIn":{defaultDuration:850,calls:[[{opacity:[.725,0],transformPerspective:[400,400],rotateX:[-10,90]},.5],[{opacity:.8,rotateX:10},.25],[{opacity:1,rotateX:0},.25]],reset:{transformPerspective:0}},"transition.flipBounceYOut":{defaultDuration:800,calls:[[{opacity:[.9,1],transformPerspective:[400,400],rotateX:-15}],[{opacity:0,rotateX:90}]],reset:{transformPerspective:0,rotateX:0}},"transition.swoopIn":{defaultDuration:850,calls:[[{opacity:[1,0],transformOriginX:["100%","50%"],transformOriginY:["100%","100%"],scaleX:[1,0],scaleY:[1,0],translateX:[0,-700],translateZ:0}]],reset:{transformOriginX:"50%",transformOriginY:"50%"}},"transition.swoopOut":{defaultDuration:850,calls:[[{opacity:[0,1],transformOriginX:["50%","100%"],transformOriginY:["100%","100%"],scaleX:0,scaleY:0,translateX:-700,translateZ:0}]],reset:{transformOriginX:"50%",transformOriginY:"50%",scaleX:1,scaleY:1,translateX:0}},"transition.whirlIn":{defaultDuration:850,calls:[[{opacity:[1,0],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:[1,0],scaleY:[1,0],rotateY:[0,160]},1,{easing:"easeInOutSine"}]]},"transition.whirlOut":{defaultDuration:750,calls:[[{opacity:[0,"easeInOutQuint",1],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:0,scaleY:0,rotateY:160},1,{easing:"swing"}]],reset:{scaleX:1,scaleY:1,rotateY:0}},"transition.shrinkIn":{defaultDuration:750,calls:[[{opacity:[1,0],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:[1,1.5],scaleY:[1,1.5],translateZ:0}]]},"transition.shrinkOut":{defaultDuration:600,calls:[[{opacity:[0,1],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:1.3,scaleY:1.3,translateZ:0}]],reset:{scaleX:1,scaleY:1}},"transition.expandIn":{defaultDuration:700,calls:[[{opacity:[1,0],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:[1,.625],scaleY:[1,.625],translateZ:0}]]},"transition.expandOut":{defaultDuration:700,calls:[[{opacity:[0,1],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:.5,scaleY:.5,translateZ:0}]],reset:{scaleX:1,scaleY:1}},"transition.bounceIn":{defaultDuration:800,calls:[[{opacity:[1,0],scaleX:[1.05,.3],scaleY:[1.05,.3]},.35],[{scaleX:.9,scaleY:.9,translateZ:0},.2],[{scaleX:1,scaleY:1},.45]]},"transition.bounceOut":{defaultDuration:800,calls:[[{scaleX:.95,scaleY:.95},.35],[{scaleX:1.1,scaleY:1.1,translateZ:0},.35],[{opacity:[0,1],scaleX:.3,scaleY:.3},.3]],reset:{scaleX:1,scaleY:1}},"transition.bounceUpIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateY:[-30,1e3]},.6,{easing:"easeOutCirc"}],[{translateY:10},.2],[{translateY:0},.2]]},"transition.bounceUpOut":{defaultDuration:1e3,calls:[[{translateY:20},.2],[{opacity:[0,"easeInCirc",1],translateY:-1e3},.8]],reset:{translateY:0}},"transition.bounceDownIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateY:[30,-1e3]},.6,{easing:"easeOutCirc"}],[{translateY:-10},.2],[{translateY:0},.2]]},"transition.bounceDownOut":{defaultDuration:1e3,calls:[[{translateY:-20},.2],[{opacity:[0,"easeInCirc",1],translateY:1e3},.8]],reset:{translateY:0}},"transition.bounceLeftIn":{defaultDuration:750,calls:[[{opacity:[1,0],translateX:[30,-1250]},.6,{easing:"easeOutCirc"}],[{translateX:-10},.2],[{translateX:0},.2]]},"transition.bounceLeftOut":{defaultDuration:750,calls:[[{translateX:30},.2],[{opacity:[0,"easeInCirc",1],translateX:-1250},.8]],reset:{translateX:0}},"transition.bounceRightIn":{defaultDuration:750,calls:[[{opacity:[1,0],translateX:[-30,1250]},.6,{easing:"easeOutCirc"}],[{translateX:10},.2],[{translateX:0},.2]]},"transition.bounceRightOut":{defaultDuration:750,calls:[[{translateX:-30},.2],[{opacity:[0,"easeInCirc",1],translateX:1250},.8]],reset:{translateX:0}},"transition.slideUpIn":{defaultDuration:900,calls:[[{opacity:[1,0],translateY:[0,20],translateZ:0}]]},"transition.slideUpOut":{defaultDuration:900,calls:[[{opacity:[0,1],translateY:-20,translateZ:0}]],reset:{translateY:0}},"transition.slideDownIn":{defaultDuration:900,calls:[[{opacity:[1,0],translateY:[0,-20],translateZ:0}]]},"transition.slideDownOut":{defaultDuration:900,calls:[[{opacity:[0,1],translateY:20,translateZ:0}]],reset:{translateY:0}},"transition.slideLeftIn":{defaultDuration:1e3,calls:[[{opacity:[1,0],translateX:[0,-20],translateZ:0}]]},"transition.slideLeftOut":{defaultDuration:1050,calls:[[{opacity:[0,1],translateX:-20,translateZ:0}]],reset:{translateX:0}},"transition.slideRightIn":{defaultDuration:1e3,calls:[[{opacity:[1,0],translateX:[0,20],translateZ:0}]]},"transition.slideRightOut":{defaultDuration:1050,calls:[[{opacity:[0,1],translateX:20,translateZ:0}]],reset:{translateX:0}},"transition.slideUpBigIn":{defaultDuration:850,calls:[[{opacity:[1,0],translateY:[0,75],translateZ:0}]]},"transition.slideUpBigOut":{defaultDuration:800,calls:[[{opacity:[0,1],translateY:-75,translateZ:0}]],reset:{translateY:0}},"transition.slideDownBigIn":{defaultDuration:850,calls:[[{opacity:[1,0],translateY:[0,-75],translateZ:0}]]},"transition.slideDownBigOut":{defaultDuration:800,calls:[[{opacity:[0,1],translateY:75,translateZ:0}]],reset:{translateY:0}},"transition.slideLeftBigIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateX:[0,-75],translateZ:0}]]},"transition.slideLeftBigOut":{defaultDuration:750,calls:[[{opacity:[0,1],translateX:-75,translateZ:0}]],reset:{translateX:0}},"transition.slideRightBigIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateX:[0,75],translateZ:0}]]},"transition.slideRightBigOut":{defaultDuration:750,calls:[[{opacity:[0,1],translateX:75,translateZ:0}]],reset:{translateX:0}},"transition.perspectiveUpIn":{defaultDuration:800,calls:[[{opacity:[1,0],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:["100%","100%"],rotateX:[0,-180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveUpOut":{defaultDuration:850,calls:[[{opacity:[0,1],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:["100%","100%"],rotateX:-180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateX:0}},"transition.perspectiveDownIn":{defaultDuration:800,calls:[[{opacity:[1,0],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:[0,0],rotateX:[0,180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveDownOut":{defaultDuration:850,calls:[[{opacity:[0,1],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:[0,0],rotateX:180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateX:0}},"transition.perspectiveLeftIn":{defaultDuration:950,calls:[[{opacity:[1,0],transformPerspective:[2e3,2e3],transformOriginX:[0,0],transformOriginY:[0,0],rotateY:[0,-180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveLeftOut":{defaultDuration:950,calls:[[{opacity:[0,1],transformPerspective:[2e3,2e3],transformOriginX:[0,0],transformOriginY:[0,0],rotateY:-180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateY:0}},"transition.perspectiveRightIn":{defaultDuration:950,calls:[[{opacity:[1,0],transformPerspective:[2e3,2e3],transformOriginX:["100%","100%"],transformOriginY:[0,0],rotateY:[0,180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveRightOut":{defaultDuration:950,calls:[[{opacity:[0,1],transformPerspective:[2e3,2e3],transformOriginX:["100%","100%"],transformOriginY:[0,0],rotateY:180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateY:0}}};for(var d in r.RegisterEffect.packagedEffects)r.RegisterEffect.packagedEffects.hasOwnProperty(d)&&r.RegisterEffect(d,r.RegisterEffect.packagedEffects[d]);r.RunSequence=function(e){var t=l.extend(!0,[],e);t.length>1&&(l.each(t.reverse(),function(e,n){var i=t[e+1];if(i){var o=n.o||n.options,s=i.o||i.options,a=o&&!1===o.sequenceQueue?"begin":"complete",u=s&&s[a],c={};c[a]=function(){var e=i.e||i.elements,t=e.nodeType?[e]:e;u&&u.call(t,t),r(n)},i.o?i.o=l.extend({},s,c):i.options=l.extend({},s,c)}}),t.reverse()),r(t[0])}}else t.console&&console.log("Velocity UI Pack: Velocity must be loaded first. Aborting.")}(window.jQuery||window.Zepto||window,window,window&&window.document)}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):e.jquery_dotdotdot_js=t(e.jQuery)}(this,function(e){return function(e,t){"use strict";function n(t,o,l,c,d){var h=!1;return t.contents().detach().each(function(){var f=e(this);if(void 0===this)return!0;if(f.is("script, .dotdotdot-keep"))t.append(f);else{if(h)return!0;t.append(f),!d||f.is(c.after)||f.find(c.after).length||t[t.is("a, table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style")?"after":"append"](d),i(l,c)&&(h=3==this.nodeType?function(t,n,o,l,c){var d=t[0];if(!d)return!1;var h=a(d),f=-1!==h.indexOf(" ")?" ":"　",p="letter"==l.wrap?"":f,g=h.split(p),m=-1,v=-1,y=0,w=g.length-1;if(l.fallbackToLetter&&0===y&&0===w&&(p="",g=h.split(p),w=g.length-1),l.maxLength)h=r(h.trim().substr(0,l.maxLength),l),s(d,h);else{for(;w>=y&&(0!==y||0!==w);){var b=Math.floor((y+w)/2);if(b==v)break;v=b,s(d,g.slice(0,v+1).join(p)+l.ellipsis),o.children().each(function(){e(this).toggle().toggle()}),i(o,l)?(w=v,l.fallbackToLetter&&0===y&&0===w&&(p="",g=g[0].split(p),m=-1,v=-1,y=0,w=g.length-1)):(m=v,y=v)}if(-1==m||1===g.length&&0===g[0].length){var x=t.parent();t.detach();var k=c&&c.closest(x).length?c.length:0;if(x.contents().length>k?d=u(x.contents().eq(-1-k),n):(d=u(x,n,!0),k||x.detach()),d&&(h=r(a(d),l),s(d,h),k&&c)){var S=c.parent();e(d).parent().append(c),e.trim(S.html())||S.remove()}}else h=r(g.slice(0,m+1).join(p),l),s(d,h)}return!0}(f,o,l,c,d):n(f,o,l,c,d)),h||d&&d.detach()}}),i(l,c)&&n(l,o,l,c,d),o.addClass("is-truncated"),h}function i(e,t){return e.innerHeight()>t.maxHeight||t.maxLength&&e.text().trim().length>t.maxLength}function r(t,n){for(;e.inArray(t.slice(-1),n.lastCharacter.remove)>-1;)t=t.slice(0,-1);return e.inArray(t.slice(-1),n.lastCharacter.noEllipsis)<0&&(t+=n.ellipsis),t}function o(e){return{width:e.innerWidth(),height:e.innerHeight()}}function s(e,t){e.innerText?e.innerText=t:e.nodeValue?e.nodeValue=t:e.textContent&&(e.textContent=t)}function a(e){return e.innerText?e.innerText:e.nodeValue?e.nodeValue:e.textContent?e.textContent:""}function l(e){do{e=e.previousSibling}while(e&&1!==e.nodeType&&3!==e.nodeType);return e}function u(t,n,i){var r,o=t&&t[0];if(o){if(!i){if(3===o.nodeType)return o;if(e.trim(t.text()))return u(t.contents().last(),n)}for(r=l(o);!r;){if((t=t.parent()).is(n)||!t.length)return!1;r=l(t[0])}if(r)return u(e(r),n)}return!1}if(!e.fn.dotdotdot){e.fn.dotdotdot=function(t){if(0===this.length)return e.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){e(this).dotdotdot(t)});var r=e(window),s=this;s.data("dotdotdot")&&s.trigger("destroy.dot");var a=s.contents();s.data("dotdotdot-style",s.attr("style")||""),s.css("word-wrap","break-word"),"nowrap"===s.css("white-space")&&s.css("white-space","normal"),s.bind_events=function(){return s.on("update.dot",function(t,r){switch(s.removeClass("is-truncated"),t.preventDefault(),t.stopPropagation(),typeof u.height){case"number":u.maxHeight=u.height;break;case"function":u.maxHeight=u.height.call(s[0]);break;default:u.maxHeight=function(e){for(var t=e.innerHeight(),n=["paddingTop","paddingBottom"],i=0,r=n.length;r>i;i++){var o=parseInt(e.css(n[i]),10);isNaN(o)&&(o=0),t-=o}return t}(s)}u.maxHeight+=u.tolerance,void 0!==r&&(("string"==typeof r||"nodeType"in r&&1===r.nodeType)&&(r=e("<div />").append(r).contents()),r instanceof e&&(a=r)),(p=s.wrapInner('<div class="dotdotdot" />').children()).contents().detach().end().append(a.clone(!0)).find("br").replaceWith("  <br />  ").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var o=!1,l=!1;return d.afterElement&&((o=d.afterElement.clone(!0)).show(),d.afterElement.detach()),i(p,u)&&(l="children"==u.wrap?function(e,t,n){var r=e.children(),o=!1;e.empty();for(var s=0,a=r.length;a>s;s++){var l=r.eq(s);if(e.append(l),n&&e.append(n),i(e,t)){l.remove(),o=!0;break}n&&n.detach()}return o}(p,u,o):n(p,s,p,u,o)),p.replaceWith(p.contents()),p=null,e.isFunction(u.callback)&&u.callback.call(s[0],l,a),d.isTruncated=l,l}).on("isTruncated.dot",function(e,t){return e.preventDefault(),e.stopPropagation(),"function"==typeof t&&t.call(s[0],d.isTruncated),d.isTruncated}).on("originalContent.dot",function(e,t){return e.preventDefault(),e.stopPropagation(),"function"==typeof t&&t.call(s[0],a),a}).on("destroy.dot",function(e){e.preventDefault(),e.stopPropagation(),s.unwatch().unbind_events().contents().detach().end().append(a).attr("style",s.data("dotdotdot-style")||"").removeClass("is-truncated").data("dotdotdot",!1)}),s},s.unbind_events=function(){return s.off(".dot"),s},s.watch=function(){if(s.unwatch(),"window"==u.watch){var e=r.width(),t=r.height();r.on("resize.dot"+d.dotId,function(){var n=r.width(),i=r.height();e==n&&t==i&&u.windowResizeFix||(e=n,t=i,f&&clearInterval(f),f=setTimeout(function(){s.trigger("update.dot")},100))})}else h=o(s),f=setInterval(function(){if(s.is(":visible")){var e=o(s);h.width==e.width&&h.height==e.height||(s.trigger("update.dot"),h=e)}},500);return s},s.unwatch=function(){return e(window).off("resize.dot"+d.dotId),f&&clearInterval(f),s};var l,u=e.extend(!0,{},e.fn.dotdotdot.defaults,t),d={},h={},f=null,p=null;return u.lastCharacter.remove instanceof Array||(u.lastCharacter.remove=e.fn.dotdotdot.defaultArrays.lastCharacter.remove),u.lastCharacter.noEllipsis instanceof Array||(u.lastCharacter.noEllipsis=e.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),d.afterElement=!!(l=u.after)&&("string"==typeof l?!!(l=e(l,s)).length&&l:!!l.jquery&&l),d.isTruncated=!1,d.dotId=c++,s.data("dotdotdot",!0).bind_events().trigger("update.dot"),u.watch&&s.watch(),s},e.fn.dotdotdot.defaults={ellipsis:"… ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0,maxLength:null},e.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" ","　",",",";",".","!","?"],noEllipsis:[]}},e.fn.dotdotdot.debug=function(e){};var c=1}}(e),!0}),function(e){var t="iCheck",n=t+"-helper",i="radio",r="checked",o="un"+r,s="disabled";function a(e,t,n){var o=e[0],a=/er/.test(n)?_indeterminate:/bl/.test(n)?s:r,c=n==_update?{checked:o[r],disabled:o[s],indeterminate:"true"==e.attr(_indeterminate)||"false"==e.attr(_determinate)}:o[a];if(/^(ch|di|in)/.test(n)&&!c)l(e,a);else if(/^(un|en|de)/.test(n)&&c)u(e,a);else if(n==_update)for(var d in c)c[d]?l(e,d,!0):u(e,d,!0);else t&&"toggle"!=n||(t||e[_callback]("ifClicked"),c?o[_type]!==i&&u(e,a):l(e,a))}function l(a,l,c){var p=a[0],g=a.parent(),m=l==r,v=l==_indeterminate,y=l==s,w=v?_determinate:m?o:"enabled",b=d(a,w+h(p[_type])),x=d(a,l+h(p[_type]));if(!0!==p[l]){if(!c&&l==r&&p[_type]==i&&p.name){var k=a.closest("form"),S='input[name="'+p.name+'"]';(S=k.length?k.find(S):e(S)).each(function(){this!==p&&e(this).data(t)&&u(e(this),l)})}v?(p[l]=!0,p[r]&&u(a,r,"force")):(c||(p[l]=!0),m&&p[_indeterminate]&&u(a,_indeterminate,!1)),f(a,m,l,c)}p[s]&&d(a,_cursor,!0)&&g.find("."+n).css(_cursor,"default"),g[_add](x||d(a,l)||""),g.attr("role")&&!v&&g.attr("aria-"+(y?s:r),"true"),g[_remove](b||d(a,w)||"")}function u(e,t,i){var a=e[0],l=e.parent(),u=t==r,c=t==_indeterminate,p=t==s,g=c?_determinate:u?o:"enabled",m=d(e,g+h(a[_type])),v=d(e,t+h(a[_type]));!1!==a[t]&&(!c&&i&&"force"!=i||(a[t]=!1),f(e,u,g,i)),!a[s]&&d(e,_cursor,!0)&&l.find("."+n).css(_cursor,"pointer"),l[_remove](v||d(e,t)||""),l.attr("role")&&!c&&l.attr("aria-"+(p?s:r),"false"),l[_add](m||d(e,g)||"")}function c(n,i){n.data(t)&&(n.parent().html(n.attr("style",n.data(t).s||"")),i&&n[_callback](i),n.off(".i").unwrap(),e(_label+'[for="'+n[0].id+'"]').add(n.closest(_label)).off(".i"))}function d(e,n,i){if(e.data(t))return e.data(t).o[n+(i?"":"Class")]}function h(e){return e.charAt(0).toUpperCase()+e.slice(1)}function f(e,t,n,i){i||(t&&e[_callback]("ifToggled"),e[_callback]("ifChanged")[_callback]("if"+h(n)))}_determinate="determinate",_indeterminate="in"+_determinate,_update="update",_type="type",_click="click",_touch="touchbegin.i touchend.i",_add="addClass",_remove="removeClass",_callback="trigger",_label="label",_cursor="cursor",_mobile=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent),e.fn[t]=function(o,d){var h='input[type="checkbox"], input[type="'+i+'"]',f=e(),p=function(t){t.each(function(){var t=e(this);f=t.is(h)?f.add(t):f.add(t.find(h))})};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(o))return o=o.toLowerCase(),p(this),f.each(function(){var t=e(this);"destroy"==o?c(t,"ifDestroyed"):a(t,!0,o),e.isFunction(d)&&d()});if("object"!=typeof o&&o)return this;var g=e.extend({checkedClass:r,disabledClass:s,indeterminateClass:_indeterminate,labelHover:!0},o),m=g.handle,v=g.hoverClass||"hover",y=g.focusClass||"focus",w=g.activeClass||"active",b=!!g.labelHover,x=g.labelHoverClass||"hover",k=0|(""+g.increaseArea).replace("%","");return"checkbox"!=m&&m!=i||(h='input[type="'+m+'"]'),k<-50&&(k=-50),p(this),f.each(function(){var o=e(this);c(o);var d,h=this,f=h.id,p=-k+"%",m=100+2*k+"%",S={position:"absolute",top:p,left:p,display:"block",width:m,height:m,margin:0,padding:0,background:"#fff",border:0,opacity:0},C=_mobile?{position:"absolute",visibility:"hidden"}:k?S:{position:"absolute",opacity:0},T="checkbox"==h[_type]?g.checkboxClass||"icheckbox":g.radioClass||"i"+i,_=e(_label+'[for="'+f+'"]').add(o.closest(_label)),E=!!g.aria,O=t+"-"+Math.random().toString(36).substr(2,6),D='<div class="'+T+'" '+(E?'role="'+h[_type]+'" ':"");E&&_.each(function(){D+='aria-labelledby="',this.id?D+=this.id:(this.id=O,D+=O),D+='"'}),D=o.wrap(D+"/>")[_callback]("ifCreated").parent().append(g.insert),d=e('<ins class="'+n+'"/>').css(S).appendTo(D),o.data(t,{o:g,s:o.attr("style")}).css(C),g.inheritClass&&D[_add](h.className||""),g.inheritID&&f&&D.attr("id",t+"-"+f),"static"==D.css("position")&&D.css("position","relative"),a(o,!0,_update),_.length&&_.on(_click+".i mouseover.i mouseout.i "+_touch,function(t){var n=t[_type],i=e(this);if(!h[s]){if(n==_click){if(e(t.target).is("a"))return;a(o,!1,!0)}else b&&(/ut|nd/.test(n)?(D[_remove](v),i[_remove](x)):(D[_add](v),i[_add](x)));if(!_mobile)return!1;t.stopPropagation()}}),o.on(_click+".i focus.i blur.i keyup.i keydown.i keypress.i",function(e){var t=e[_type],n=e.keyCode;return t!=_click&&("keydown"==t&&32==n?(h[_type]==i&&h[r]||(h[r]?u(o,r):l(o,r)),!1):void("keyup"==t&&h[_type]==i?!h[r]&&l(o,r):/us|ur/.test(t)&&D["blur"==t?_remove:_add](y)))}),d.on(_click+" mousedown mouseup mouseover mouseout "+_touch,function(e){var t=e[_type],n=/wn|up/.test(t)?w:v;if(!h[s]){if(t==_click?a(o,!1,!0):(/wn|er|in/.test(t)?D[_add](n):D[_remove](n+" "+w),_.length&&b&&n==v&&_[/ut|nd/.test(t)?_remove:_add](x)),!_mobile)return!1;e.stopPropagation()}})})}}(window.jQuery||window.Zepto),function(e,t){"function"==typeof define&&define.amd?define("sifter",t):"object"==typeof exports?module.exports=t():e.Sifter=t()}(this,function(){var e=function(e,t){this.items=e,this.settings=t||{diacritics:!0}};e.prototype.tokenize=function(e){if(!(e=r(String(e||"").toLowerCase()))||!e.length)return[];var t,n,i,s,l=[],u=e.split(/ +/);for(t=0,n=u.length;t<n;t++){if(i=o(u[t]),this.settings.diacritics)for(s in a)a.hasOwnProperty(s)&&(i=i.replace(new RegExp(s,"g"),a[s]));l.push({string:u[t],regex:new RegExp(i,"i")})}return l},e.prototype.iterator=function(e,t){(s(e)?Array.prototype.forEach||function(e){for(var t=0,n=this.length;t<n;t++)e(this[t],t,this)}:function(e){for(var t in this)this.hasOwnProperty(t)&&e(this[t],t,this)}).apply(e,[t])},e.prototype.getScoreFunction=function(e,t){var n,r,o,s;e=this.prepareSearch(e,t),r=e.tokens,n=e.options.fields,o=r.length,s=e.options.nesting;var a,l=function(e,t){var n,i;return e?-1===(i=(e=String(e||"")).search(t.regex))?0:(n=t.string.length/e.length,0===i&&(n+=.5),n):0},u=(a=n.length)?1===a?function(e,t){return l(i(t,n[0],s),e)}:function(e,t){for(var r=0,o=0;r<a;r++)o+=l(i(t,n[r],s),e);return o/a}:function(){return 0};return o?1===o?function(e){return u(r[0],e)}:"and"===e.options.conjunction?function(e){for(var t,n=0,i=0;n<o;n++){if((t=u(r[n],e))<=0)return 0;i+=t}return i/o}:function(e){for(var t=0,n=0;t<o;t++)n+=u(r[t],e);return n/o}:function(){return 0}},e.prototype.getSortFunction=function(e,n){var r,o,s,a,l,u,c,d,h,f,p;if(p=!(e=(s=this).prepareSearch(e,n)).query&&n.sort_empty||n.sort,h=function(e,t){return"$score"===e?t.score:i(s.items[t.id],e,n.nesting)},l=[],p)for(r=0,o=p.length;r<o;r++)(e.query||"$score"!==p[r].field)&&l.push(p[r]);if(e.query){for(f=!0,r=0,o=l.length;r<o;r++)if("$score"===l[r].field){f=!1;break}f&&l.unshift({field:"$score",direction:"desc"})}else for(r=0,o=l.length;r<o;r++)if("$score"===l[r].field){l.splice(r,1);break}for(d=[],r=0,o=l.length;r<o;r++)d.push("desc"===l[r].direction?-1:1);return(u=l.length)?1===u?(a=l[0].field,c=d[0],function(e,n){return c*t(h(a,e),h(a,n))}):function(e,n){var i,r,o;for(i=0;i<u;i++)if(o=l[i].field,r=d[i]*t(h(o,e),h(o,n)))return r;return 0}:null},e.prototype.prepareSearch=function(e,t){if("object"==typeof e)return e;var i=(t=n({},t)).fields,r=t.sort,o=t.sort_empty;return i&&!s(i)&&(t.fields=[i]),r&&!s(r)&&(t.sort=[r]),o&&!s(o)&&(t.sort_empty=[o]),{options:t,query:String(e||"").toLowerCase(),tokens:this.tokenize(e),total:0,items:[]}},e.prototype.search=function(e,t){var n,i,r,o;return i=this.prepareSearch(e,t),t=i.options,e=i.query,o=t.score||this.getScoreFunction(i),e.length?this.iterator(this.items,function(e,r){n=o(e),(!1===t.filter||n>0)&&i.items.push({score:n,id:r})}):this.iterator(this.items,function(e,t){i.items.push({score:1,id:t})}),(r=this.getSortFunction(i,t))&&i.items.sort(r),i.total=i.items.length,"number"==typeof t.limit&&(i.items=i.items.slice(0,t.limit)),i};var t=function(e,t){return"number"==typeof e&&"number"==typeof t?e>t?1:e<t?-1:0:(e=l(String(e||"")))>(t=l(String(t||"")))?1:t>e?-1:0},n=function(e,t){var n,i,r,o;for(n=1,i=arguments.length;n<i;n++)if(o=arguments[n])for(r in o)o.hasOwnProperty(r)&&(e[r]=o[r]);return e},i=function(e,t,n){if(e&&t){if(!n)return e[t];for(var i=t.split(".");i.length&&(e=e[i.shift()]););return e}},r=function(e){return(e+"").replace(/^\s+|\s+$|/g,"")},o=function(e){return(e+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},s=Array.isArray||"undefined"!=typeof $&&$.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},a={a:"[aḀḁĂăÂâǍǎȺⱥȦȧẠạÄäÀàÁáĀāÃãÅåąĄÃąĄ]",b:"[b␢βΒB฿𐌁ᛒ]",c:"[cĆćĈĉČčĊċC̄c̄ÇçḈḉȻȼƇƈɕᴄＣｃ]",d:"[dĎďḊḋḐḑḌḍḒḓḎḏĐđD̦d̦ƉɖƊɗƋƌᵭᶁᶑȡᴅＤｄð]",e:"[eÉéÈèÊêḘḙĚěĔĕẼẽḚḛẺẻĖėËëĒēȨȩĘęᶒɆɇȄȅẾếỀềỄễỂểḜḝḖḗḔḕȆȇẸẹỆệⱸᴇＥｅɘǝƏƐε]",f:"[fƑƒḞḟ]",g:"[gɢ₲ǤǥĜĝĞğĢģƓɠĠġ]",h:"[hĤĥĦħḨḩẖẖḤḥḢḣɦʰǶƕ]",i:"[iÍíÌìĬĭÎîǏǐÏïḮḯĨĩĮįĪīỈỉȈȉȊȋỊịḬḭƗɨɨ̆ᵻᶖİiIıɪＩｉ]",j:"[jȷĴĵɈɉʝɟʲ]",k:"[kƘƙꝀꝁḰḱǨǩḲḳḴḵκϰ₭]",l:"[lŁłĽľĻļĹĺḶḷḸḹḼḽḺḻĿŀȽƚⱠⱡⱢɫɬᶅɭȴʟＬｌ]",n:"[nŃńǸǹŇňÑñṄṅŅņṆṇṊṋṈṉN̈n̈ƝɲȠƞᵰᶇɳȵɴＮｎŊŋ]",o:"[oØøÖöÓóÒòÔôǑǒŐőŎŏȮȯỌọƟɵƠơỎỏŌōÕõǪǫȌȍՕօ]",p:"[pṔṕṖṗⱣᵽƤƥᵱ]",q:"[qꝖꝗʠɊɋꝘꝙq̃]",r:"[rŔŕɌɍŘřŖŗṘṙȐȑȒȓṚṛⱤɽ]",s:"[sŚśṠṡṢṣꞨꞩŜŝŠšŞşȘșS̈s̈]",t:"[tŤťṪṫŢţṬṭƮʈȚțṰṱṮṯƬƭ]",u:"[uŬŭɄʉỤụÜüÚúÙùÛûǓǔŰűŬŭƯưỦủŪūŨũŲųȔȕ∪]",v:"[vṼṽṾṿƲʋꝞꝟⱱʋ]",w:"[wẂẃẀẁŴŵẄẅẆẇẈẉ]",x:"[xẌẍẊẋχ]",y:"[yÝýỲỳŶŷŸÿỸỹẎẏỴỵɎɏƳƴ]",z:"[zŹźẐẑŽžŻżẒẓẔẕƵƶ]"},l=function(){var e,t,n,i,r="",o={};for(n in a)if(a.hasOwnProperty(n))for(r+=i=a[n].substring(2,a[n].length-1),e=0,t=i.length;e<t;e++)o[i.charAt(e)]=n;var s=new RegExp("["+r+"]","g");return function(e){return e.replace(s,function(e){return o[e]}).toLowerCase()}}();return e}),function(e,t){"function"==typeof define&&define.amd?define("microplugin",t):"object"==typeof exports?module.exports=t():e.MicroPlugin=t()}(this,function(){var e={};e.mixin=function(e){e.plugins={},e.prototype.initializePlugins=function(e){var n,i,r,o=[];if(this.plugins={names:[],settings:{},requested:{},loaded:{}},t.isArray(e))for(n=0,i=e.length;n<i;n++)"string"==typeof e[n]?o.push(e[n]):(this.plugins.settings[e[n].name]=e[n].options,o.push(e[n].name));else if(e)for(r in e)e.hasOwnProperty(r)&&(this.plugins.settings[r]=e[r],o.push(r));for(;o.length;)this.require(o.shift())},e.prototype.loadPlugin=function(t){var n=this.plugins,i=e.plugins[t];if(!e.plugins.hasOwnProperty(t))throw new Error('Unable to find "'+t+'" plugin');n.requested[t]=!0,n.loaded[t]=i.fn.apply(this,[this.plugins.settings[t]||{}]),n.names.push(t)},e.prototype.require=function(e){var t=this.plugins;if(!this.plugins.loaded.hasOwnProperty(e)){if(t.requested[e])throw new Error('Plugin has circular dependency ("'+e+'")');this.loadPlugin(e)}return t.loaded[e]},e.define=function(t,n){e.plugins[t]={name:t,fn:n}}};var t={isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}};return e}),function(e,t){"function"==typeof define&&define.amd?define("selectize",["jquery","sifter","microplugin"],t):"object"==typeof exports?module.exports=t(require("jquery"),require("sifter"),require("microplugin")):e.Selectize=t(e.jQuery,e.Sifter,e.MicroPlugin)}(this,function(e,t,n){"use strict";var i=function(e,t){if("string"!=typeof t||t.length){var n="string"==typeof t?new RegExp(t,"i"):t,i=function(e){var t=0;if(3===e.nodeType){var r=e.data.search(n);if(r>=0&&e.data.length>0){var o=e.data.match(n),s=document.createElement("span");s.className="highlight";var a=e.splitText(r),l=(a.splitText(o[0].length),a.cloneNode(!0));s.appendChild(l),a.parentNode.replaceChild(s,a),t=1}}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName))for(var u=0;u<e.childNodes.length;++u)u+=i(e.childNodes[u]);return t};return e.each(function(){i(this)})}};e.fn.removeHighlight=function(){return this.find("span.highlight").each(function(){this.parentNode.firstChild.nodeName;var e=this.parentNode;e.replaceChild(this.firstChild,this),e.normalize()}).end()};var r=function(){};r.prototype={on:function(e,t){this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(t)},off:function(e,t){var n=arguments.length;return 0===n?delete this._events:1===n?delete this._events[e]:(this._events=this._events||{},void(e in this._events!=!1&&this._events[e].splice(this._events[e].indexOf(t),1)))},trigger:function(e){if(this._events=this._events||{},e in this._events!=!1)for(var t=0;t<this._events[e].length;t++)this._events[e][t].apply(this,Array.prototype.slice.call(arguments,1))}},r.mixin=function(e){for(var t=["on","off","trigger"],n=0;n<t.length;n++)e.prototype[t[n]]=r.prototype[t[n]]};var o=/Mac/.test(navigator.userAgent),s=o?91:17,a=o?18:17,l=!/android/i.test(window.navigator.userAgent)&&!!document.createElement("input").validity,u=function(e){return void 0!==e},c=function(e){return void 0===e||null===e?null:"boolean"==typeof e?e?"1":"0":e+""},d=function(e){return(e+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},h={};h.before=function(e,t,n){var i=e[t];e[t]=function(){return n.apply(e,arguments),i.apply(e,arguments)}},h.after=function(e,t,n){var i=e[t];e[t]=function(){var t=i.apply(e,arguments);return n.apply(e,arguments),t}};var f=function(e,t,n){var i,r=e.trigger,o={};e.trigger=function(){var n=arguments[0];if(-1===t.indexOf(n))return r.apply(e,arguments);o[n]=arguments},n.apply(e,[]),e.trigger=r;for(i in o)o.hasOwnProperty(i)&&r.apply(e,o[i])},p=function(e){var t={};if("selectionStart"in e)t.start=e.selectionStart,t.length=e.selectionEnd-t.start;else if(document.selection){e.focus();var n=document.selection.createRange(),i=document.selection.createRange().text.length;n.moveStart("character",-e.value.length),t.start=n.text.length-i,t.length=i}return t},g=function(t){var n=null,i=function(i,r){var o,s,a,l,u,c,d,h;i=i||window.event||{},r=r||{},i.metaKey||i.altKey||(r.force||!1!==t.data("grow"))&&(o=t.val(),i.type&&"keydown"===i.type.toLowerCase()&&(a=(s=i.keyCode)>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||32===s,46===s||8===s?(h=p(t[0])).length?o=o.substring(0,h.start)+o.substring(h.start+h.length):8===s&&h.start?o=o.substring(0,h.start-1)+o.substring(h.start+1):46===s&&void 0!==h.start&&(o=o.substring(0,h.start)+o.substring(h.start+1)):a&&(c=i.shiftKey,d=String.fromCharCode(i.keyCode),o+=d=c?d.toUpperCase():d.toLowerCase())),l=t.attr("placeholder"),!o&&l&&(o=l),(u=function(t,n){if(!t)return 0;var i=e("<test>").css({position:"absolute",top:-99999,left:-99999,width:"auto",padding:0,whiteSpace:"pre"}).text(t).appendTo("body");!function(e,t,n){var i,r,o={};if(n)for(i=0,r=n.length;i<r;i++)o[n[i]]=e.css(n[i]);else o=e.css();t.css(o)}(n,i,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]);var r=i.width();return i.remove(),r}(o,t)+4)!==n&&(n=u,t.width(u),t.triggerHandler("resize")))};t.on("keydown keyup update blur",i),i()},m=function(n,i){var r,o,s,a;(a=n[0]).selectize=this;var l,u,c,d=window.getComputedStyle&&window.getComputedStyle(a,null);if(s=(s=d?d.getPropertyValue("direction"):a.currentStyle&&a.currentStyle.direction)||n.parents("[dir]:first").attr("dir")||"",e.extend(this,{order:0,settings:i,$input:n,tabIndex:n.attr("tabindex")||"",tagType:"select"===a.tagName.toLowerCase()?1:2,rtl:/rtl/i.test(s),eventNS:".selectize"+ ++m.count,highlightedValue:null,isOpen:!1,isDisabled:!1,isRequired:n.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:null===i.loadThrottle?this.onSearchChange:(l=this.onSearchChange,u=i.loadThrottle,function(){var e=this,t=arguments;window.clearTimeout(c),c=window.setTimeout(function(){l.apply(e,t)},u)})}),this.sifter=new t(this.options,{diacritics:i.diacritics}),this.settings.options){for(r=0,o=this.settings.options.length;r<o;r++)this.registerOption(this.settings.options[r]);delete this.settings.options}if(this.settings.optgroups){for(r=0,o=this.settings.optgroups.length;r<o;r++)this.registerOptionGroup(this.settings.optgroups[r]);delete this.settings.optgroups}this.settings.mode=this.settings.mode||(1===this.settings.maxItems?"single":"multi"),"boolean"!=typeof this.settings.hideSelected&&(this.settings.hideSelected="multi"===this.settings.mode),this.initializePlugins(this.settings.plugins),this.setupCallbacks(),this.setupTemplates(),this.setup()};return r.mixin(m),void 0!==n?n.mixin(m):function(e,t){t||(t={});console.error("Selectize: "+e),t.explanation&&(console.group&&console.group(),console.error(t.explanation),console.group&&console.groupEnd())}("Dependency MicroPlugin is missing",{explanation:'Make sure you either: (1) are using the "standalone" version of Selectize, or (2) require MicroPlugin before you load Selectize.'}),e.extend(m.prototype,{setup:function(){var t,n,i,r,u,c,d,h,f,p,m,v,y,w,b=this,x=b.settings,k=b.eventNS,S=e(window),C=e(document),T=b.$input;if(d=b.settings.mode,h=T.attr("class")||"",t=e("<div>").addClass(x.wrapperClass).addClass(h).addClass(d),n=e("<div>").addClass(x.inputClass).addClass("items").appendTo(t),i=e('<input type="text" autocomplete="off" />').appendTo(n).attr("tabindex",T.is(":disabled")?"-1":b.tabIndex),c=e(x.dropdownParent||t),r=e("<div>").addClass(x.dropdownClass).addClass(d).hide().appendTo(c),u=e("<div>").addClass(x.dropdownContentClass).appendTo(r),(p=T.attr("id"))&&(i.attr("id",p+"-selectized"),e("label[for='"+p+"']").attr("for",p+"-selectized")),b.settings.copyClassesToDropdown&&r.addClass(h),t.css({width:T[0].style.width}),b.plugins.names.length&&(f="plugin-"+b.plugins.names.join(" plugin-"),t.addClass(f),r.addClass(f)),(null===x.maxItems||x.maxItems>1)&&1===b.tagType&&T.attr("multiple","multiple"),b.settings.placeholder&&i.attr("placeholder",x.placeholder),!b.settings.splitOn&&b.settings.delimiter){var _=b.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");b.settings.splitOn=new RegExp("\\s*"+_+"+\\s*")}T.attr("autocorrect")&&i.attr("autocorrect",T.attr("autocorrect")),T.attr("autocapitalize")&&i.attr("autocapitalize",T.attr("autocapitalize")),b.$wrapper=t,b.$control=n,b.$control_input=i,b.$dropdown=r,b.$dropdown_content=u,r.on("mouseenter","[data-selectable]",function(){return b.onOptionHover.apply(b,arguments)}),r.on("mousedown click","[data-selectable]",function(){return b.onOptionSelect.apply(b,arguments)}),v="mousedown",y="*:not(input)",w=function(){return b.onItemSelect.apply(b,arguments)},(m=n).on(v,y,function(e){for(var t=e.target;t&&t.parentNode!==m[0];)t=t.parentNode;return e.currentTarget=t,w.apply(this,[e])}),g(i),n.on({mousedown:function(){return b.onMouseDown.apply(b,arguments)},click:function(){return b.onClick.apply(b,arguments)}}),i.on({mousedown:function(e){e.stopPropagation()},keydown:function(){return b.onKeyDown.apply(b,arguments)},keyup:function(){return b.onKeyUp.apply(b,arguments)},keypress:function(){return b.onKeyPress.apply(b,arguments)},resize:function(){b.positionDropdown.apply(b,[])},blur:function(){return b.onBlur.apply(b,arguments)},focus:function(){return b.ignoreBlur=!1,b.onFocus.apply(b,arguments)},paste:function(){return b.onPaste.apply(b,arguments)}}),C.on("keydown"+k,function(e){b.isCmdDown=e[o?"metaKey":"ctrlKey"],b.isCtrlDown=e[o?"altKey":"ctrlKey"],b.isShiftDown=e.shiftKey}),C.on("keyup"+k,function(e){e.keyCode===a&&(b.isCtrlDown=!1),16===e.keyCode&&(b.isShiftDown=!1),e.keyCode===s&&(b.isCmdDown=!1)}),C.on("mousedown"+k,function(e){if(b.isFocused){if(e.target===b.$dropdown[0]||e.target.parentNode===b.$dropdown[0])return!1;b.$control.has(e.target).length||e.target===b.$control[0]||b.blur(e.target)}}),S.on(["scroll"+k,"resize"+k].join(" "),function(){b.isOpen&&b.positionDropdown.apply(b,arguments)}),S.on("mousemove"+k,function(){b.ignoreHover=!1}),this.revertSettings={$children:T.children().detach(),tabindex:T.attr("tabindex")},T.attr("tabindex",-1).hide().after(b.$wrapper),e.isArray(x.items)&&(b.setValue(x.items),delete x.items),l&&T.on("invalid"+k,function(e){e.preventDefault(),b.isInvalid=!0,b.refreshState()}),b.updateOriginalInput(),b.refreshItems(),b.refreshState(),b.updatePlaceholder(),b.isSetup=!0,T.is(":disabled")&&b.disable(),b.on("change",this.onChange),T.data("selectize",b),T.addClass("selectized"),b.trigger("initialize"),!0===x.preload&&b.onSearchChange("")},setupTemplates:function(){var t=this.settings.labelField,n=this.settings.optgroupLabelField,i={optgroup:function(e){return'<div class="optgroup">'+e.html+"</div>"},optgroup_header:function(e,t){return'<div class="optgroup-header">'+t(e[n])+"</div>"},option:function(e,n){return'<div class="option">'+n(e[t])+"</div>"},item:function(e,n){return'<div class="item">'+n(e[t])+"</div>"},option_create:function(e,t){return'<div class="create">Add <strong>'+t(e.input)+"</strong>&hellip;</div>"}};this.settings.render=e.extend({},i,this.settings.render)},setupCallbacks:function(){var e,t,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(e in n)n.hasOwnProperty(e)&&(t=this.settings[n[e]])&&this.on(e,t)},onClick:function(e){this.isFocused||(this.focus(),e.preventDefault())},onMouseDown:function(t){var n=this,i=t.isDefaultPrevented();e(t.target);if(n.isFocused){if(t.target!==n.$control_input[0])return"single"===n.settings.mode?n.isOpen?n.close():n.open():i||n.setActiveItem(null),!1}else i||window.setTimeout(function(){n.focus()},0)},onChange:function(){this.$input.trigger("change")},onPaste:function(t){var n=this;n.isFull()||n.isInputHidden||n.isLocked?t.preventDefault():n.settings.splitOn&&setTimeout(function(){var t=n.$control_input.val();if(t.match(n.settings.splitOn))for(var i=e.trim(t).split(n.settings.splitOn),r=0,o=i.length;r<o;r++)n.createItem(i[r])},0)},onKeyPress:function(e){if(this.isLocked)return e&&e.preventDefault();var t=String.fromCharCode(e.keyCode||e.which);return this.settings.create&&"multi"===this.settings.mode&&t===this.settings.delimiter?(this.createItem(),e.preventDefault(),!1):void 0},onKeyDown:function(e){e.target,this.$control_input[0];if(this.isLocked)9!==e.keyCode&&e.preventDefault();else{switch(e.keyCode){case 65:if(this.isCmdDown)return void this.selectAll();break;case 27:return void(this.isOpen&&(e.preventDefault(),e.stopPropagation(),this.close()));case 78:if(!e.ctrlKey||e.altKey)break;case 40:if(!this.isOpen&&this.hasOptions)this.open();else if(this.$activeOption){this.ignoreHover=!0;var t=this.getAdjacentOption(this.$activeOption,1);t.length&&this.setActiveOption(t,!0,!0)}return void e.preventDefault();case 80:if(!e.ctrlKey||e.altKey)break;case 38:if(this.$activeOption){this.ignoreHover=!0;var n=this.getAdjacentOption(this.$activeOption,-1);n.length&&this.setActiveOption(n,!0,!0)}return void e.preventDefault();case 13:return void(this.isOpen&&this.$activeOption&&(this.onOptionSelect({currentTarget:this.$activeOption}),e.preventDefault()));case 37:return void this.advanceSelection(-1,e);case 39:return void this.advanceSelection(1,e);case 9:return this.settings.selectOnTab&&this.isOpen&&this.$activeOption&&(this.onOptionSelect({currentTarget:this.$activeOption}),this.isFull()||e.preventDefault()),void(this.settings.create&&this.createItem()&&e.preventDefault());case 8:case 46:return void this.deleteSelection(e)}!this.isFull()&&!this.isInputHidden||(o?e.metaKey:e.ctrlKey)||e.preventDefault()}},onKeyUp:function(e){if(this.isLocked)return e&&e.preventDefault();var t=this.$control_input.val()||"";this.lastValue!==t&&(this.lastValue=t,this.onSearchChange(t),this.refreshOptions(),this.trigger("type",t))},onSearchChange:function(e){var t=this,n=t.settings.load;n&&(t.loadedSearches.hasOwnProperty(e)||(t.loadedSearches[e]=!0,t.load(function(i){n.apply(t,[e,i])})))},onFocus:function(e){var t=this.isFocused;if(this.isDisabled)return this.blur(),e&&e.preventDefault(),!1;this.ignoreFocus||(this.isFocused=!0,"focus"===this.settings.preload&&this.onSearchChange(""),t||this.trigger("focus"),this.$activeItems.length||(this.showInput(),this.setActiveItem(null),this.refreshOptions(!!this.settings.openOnFocus)),this.refreshState())},onBlur:function(e,t){var n=this;if(n.isFocused&&(n.isFocused=!1,!n.ignoreFocus)){if(!n.ignoreBlur&&document.activeElement===n.$dropdown_content[0])return n.ignoreBlur=!0,void n.onFocus(e);var i=function(){n.close(),n.setTextboxValue(""),n.setActiveItem(null),n.setActiveOption(null),n.setCaret(n.items.length),n.refreshState(),t&&t.focus&&t.focus(),n.ignoreFocus=!1,n.trigger("blur")};n.ignoreFocus=!0,n.settings.create&&n.settings.createOnBlur?n.createItem(null,!1,i):i()}},onOptionHover:function(e){this.ignoreHover||this.setActiveOption(e.currentTarget,!1)},onOptionSelect:function(t){var n,i,r=this;t.preventDefault&&(t.preventDefault(),t.stopPropagation()),(i=e(t.currentTarget)).hasClass("create")?r.createItem(null,function(){r.settings.closeAfterSelect&&r.close()}):void 0!==(n=i.attr("data-value"))&&(r.lastQuery=null,r.setTextboxValue(""),r.addItem(n),r.settings.closeAfterSelect?r.close():!r.settings.hideSelected&&t.type&&/mouse/.test(t.type)&&r.setActiveOption(r.getOption(n)))},onItemSelect:function(e){this.isLocked||"multi"===this.settings.mode&&(e.preventDefault(),this.setActiveItem(e.currentTarget,e))},load:function(e){var t=this,n=t.$wrapper.addClass(t.settings.loadingClass);t.loading++,e.apply(t,[function(e){t.loading=Math.max(t.loading-1,0),e&&e.length&&(t.addOption(e),t.refreshOptions(t.isFocused&&!t.isInputHidden)),t.loading||n.removeClass(t.settings.loadingClass),t.trigger("load",e)}])},setTextboxValue:function(e){var t=this.$control_input;t.val()!==e&&(t.val(e).triggerHandler("update"),this.lastValue=e)},getValue:function(){return 1===this.tagType&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(e,t){f(this,t?[]:["change"],function(){this.clear(t),this.addItems(e,t)})},setActiveItem:function(t,n){var i,r,o,s,a,l,u,c;if("single"!==this.settings.mode){if(!(t=e(t)).length)return e(this.$activeItems).removeClass("active"),this.$activeItems=[],void(this.isFocused&&this.showInput());if("mousedown"===(i=n&&n.type.toLowerCase())&&this.isShiftDown&&this.$activeItems.length){for(c=this.$control.children(".active:last"),(s=Array.prototype.indexOf.apply(this.$control[0].childNodes,[c[0]]))>(a=Array.prototype.indexOf.apply(this.$control[0].childNodes,[t[0]]))&&(u=s,s=a,a=u),r=s;r<=a;r++)l=this.$control[0].childNodes[r],-1===this.$activeItems.indexOf(l)&&(e(l).addClass("active"),this.$activeItems.push(l));n.preventDefault()}else"mousedown"===i&&this.isCtrlDown||"keydown"===i&&this.isShiftDown?t.hasClass("active")?(o=this.$activeItems.indexOf(t[0]),this.$activeItems.splice(o,1),t.removeClass("active")):this.$activeItems.push(t.addClass("active")[0]):(e(this.$activeItems).removeClass("active"),this.$activeItems=[t.addClass("active")[0]]);this.hideInput(),this.isFocused||this.focus()}},setActiveOption:function(t,n,i){var r,o,s,a,l;this.$activeOption&&this.$activeOption.removeClass("active"),this.$activeOption=null,(t=e(t)).length&&(this.$activeOption=t.addClass("active"),!n&&u(n)||(r=this.$dropdown_content.height(),o=this.$activeOption.outerHeight(!0),n=this.$dropdown_content.scrollTop()||0,a=s=this.$activeOption.offset().top-this.$dropdown_content.offset().top+n,l=s-r+o,s+o>r+n?this.$dropdown_content.stop().animate({scrollTop:l},i?this.settings.scrollDuration:0):s<n&&this.$dropdown_content.stop().animate({scrollTop:a},i?this.settings.scrollDuration:0)))},selectAll:function(){"single"!==this.settings.mode&&(this.$activeItems=Array.prototype.slice.apply(this.$control.children(":not(input)").addClass("active")),this.$activeItems.length&&(this.hideInput(),this.close()),this.focus())},hideInput:function(){this.setTextboxValue(""),this.$control_input.css({opacity:0,position:"absolute",left:this.rtl?1e4:-1e4}),this.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1,position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var e=this;e.isDisabled||(e.ignoreFocus=!0,e.$control_input[0].focus(),window.setTimeout(function(){e.ignoreFocus=!1,e.onFocus()},0))},blur:function(e){this.$control_input[0].blur(),this.onBlur(null,e)},getScoreFunction:function(e){return this.sifter.getScoreFunction(e,this.getSearchOptions())},getSearchOptions:function(){var e=this.settings,t=e.sortField;return"string"==typeof t&&(t=[{field:t}]),{fields:e.searchField,conjunction:e.searchConjunction,sort:t}},search:function(t){var n,i,r,o=this.settings,s=this.getSearchOptions();if(o.score&&"function"!=typeof(r=this.settings.score.apply(this,[t])))throw new Error('Selectize "score" setting must be a function that returns a function');if(t!==this.lastQuery?(this.lastQuery=t,i=this.sifter.search(t,e.extend(s,{score:r})),this.currentResults=i):i=e.extend(!0,{},this.currentResults),o.hideSelected)for(n=i.items.length-1;n>=0;n--)-1!==this.items.indexOf(c(i.items[n].id))&&i.items.splice(n,1);return i},refreshOptions:function(t){var n,r,o,s,a,l,u,d,h,f,p,g,m,v,y,w;void 0===t&&(t=!0);var b,x,k=this,S=e.trim(k.$control_input.val()),C=k.search(S),T=k.$dropdown_content,_=k.$activeOption&&c(k.$activeOption.attr("data-value"));for(s=C.items.length,"number"==typeof k.settings.maxOptions&&(s=Math.min(s,k.settings.maxOptions)),a={},l=[],n=0;n<s;n++)for(u=k.options[C.items[n].id],d=k.render("option",u),h=u[k.settings.optgroupField]||"",r=0,o=(f=e.isArray(h)?h:[h])&&f.length;r<o;r++)h=f[r],k.optgroups.hasOwnProperty(h)||(h=""),a.hasOwnProperty(h)||(a[h]=document.createDocumentFragment(),l.push(h)),a[h].appendChild(d);for(this.settings.lockOptgroupOrder&&l.sort(function(e,t){return(k.optgroups[e].$order||0)-(k.optgroups[t].$order||0)}),p=document.createDocumentFragment(),n=0,s=l.length;n<s;n++)h=l[n],k.optgroups.hasOwnProperty(h)&&a[h].childNodes.length?((g=document.createDocumentFragment()).appendChild(k.render("optgroup_header",k.optgroups[h])),g.appendChild(a[h]),p.appendChild(k.render("optgroup",e.extend({},k.optgroups[h],{html:(b=g,x=void 0,x=document.createElement("div"),x.appendChild(b.cloneNode(!0)),x.innerHTML),dom:g})))):p.appendChild(a[h]);if(T.html(p),k.settings.highlight&&C.query.length&&C.tokens.length)for(T.removeHighlight(),n=0,s=C.tokens.length;n<s;n++)i(T,C.tokens[n].regex);if(!k.settings.hideSelected)for(n=0,s=k.items.length;n<s;n++)k.getOption(k.items[n]).addClass("selected");(m=k.canCreate(S))&&(T.prepend(k.render("option_create",{input:S})),w=e(T[0].childNodes[0])),k.hasOptions=C.items.length>0||m,k.hasOptions?(C.items.length>0?((y=_&&k.getOption(_))&&y.length?v=y:"single"===k.settings.mode&&k.items.length&&(v=k.getOption(k.items[0])),v&&v.length||(v=w&&!k.settings.addPrecedence?k.getAdjacentOption(w,1):T.find("[data-selectable]:first"))):v=w,k.setActiveOption(v),t&&!k.isOpen&&k.open()):(k.setActiveOption(null),t&&k.isOpen&&k.close())},addOption:function(t){var n,i,r;if(e.isArray(t))for(n=0,i=t.length;n<i;n++)this.addOption(t[n]);else(r=this.registerOption(t))&&(this.userOptions[r]=!0,this.lastQuery=null,this.trigger("option_add",r,t))},registerOption:function(e){var t=c(e[this.settings.valueField]);return void 0!==t&&null!==t&&!this.options.hasOwnProperty(t)&&(e.$order=e.$order||++this.order,this.options[t]=e,t)},registerOptionGroup:function(e){var t=c(e[this.settings.optgroupValueField]);return!!t&&(e.$order=e.$order||++this.order,this.optgroups[t]=e,t)},addOptionGroup:function(e,t){t[this.settings.optgroupValueField]=e,(e=this.registerOptionGroup(t))&&this.trigger("optgroup_add",e,t)},removeOptionGroup:function(e){this.optgroups.hasOwnProperty(e)&&(delete this.optgroups[e],this.renderCache={},this.trigger("optgroup_remove",e))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(t,n){var i,r,o,s,a,l,u;if(t=c(t),o=c(n[this.settings.valueField]),null!==t&&this.options.hasOwnProperty(t)){if("string"!=typeof o)throw new Error("Value must be set in option data");u=this.options[t].$order,o!==t&&(delete this.options[t],-1!==(s=this.items.indexOf(t))&&this.items.splice(s,1,o)),n.$order=n.$order||u,this.options[o]=n,a=this.renderCache.item,l=this.renderCache.option,a&&(delete a[t],delete a[o]),l&&(delete l[t],delete l[o]),-1!==this.items.indexOf(o)&&(i=this.getItem(t),r=e(this.render("item",n)),i.hasClass("active")&&r.addClass("active"),i.replaceWith(r)),this.lastQuery=null,this.isOpen&&this.refreshOptions(!1)}},removeOption:function(e,t){e=c(e);var n=this.renderCache.item,i=this.renderCache.option;n&&delete n[e],i&&delete i[e],delete this.userOptions[e],delete this.options[e],this.lastQuery=null,this.trigger("option_remove",e),this.removeItem(e,t)},clearOptions:function(){this.loadedSearches={},this.userOptions={},this.renderCache={},this.options=this.sifter.items={},this.lastQuery=null,this.trigger("option_clear"),this.clear()},getOption:function(e){return this.getElementWithValue(e,this.$dropdown_content.find("[data-selectable]"))},getAdjacentOption:function(t,n){var i=this.$dropdown.find("[data-selectable]"),r=i.index(t)+n;return r>=0&&r<i.length?i.eq(r):e()},getElementWithValue:function(t,n){if(void 0!==(t=c(t))&&null!==t)for(var i=0,r=n.length;i<r;i++)if(n[i].getAttribute("data-value")===t)return e(n[i]);return e()},getItem:function(e){return this.getElementWithValue(e,this.$control.children())},addItems:function(t,n){for(var i=e.isArray(t)?t:[t],r=0,o=i.length;r<o;r++)this.isPending=r<o-1,this.addItem(i[r],n)},addItem:function(t,n){f(this,n?[]:["change"],function(){var i,r,o,s,a,l=this.settings.mode;t=c(t),-1===this.items.indexOf(t)?this.options.hasOwnProperty(t)&&("single"===l&&this.clear(n),"multi"===l&&this.isFull()||(i=e(this.render("item",this.options[t])),a=this.isFull(),this.items.splice(this.caretPos,0,t),this.insertAtCaret(i),(!this.isPending||!a&&this.isFull())&&this.refreshState(),this.isSetup&&(o=this.$dropdown_content.find("[data-selectable]"),this.isPending||(r=this.getOption(t),s=this.getAdjacentOption(r,1).attr("data-value"),this.refreshOptions(this.isFocused&&"single"!==l),s&&this.setActiveOption(this.getOption(s))),!o.length||this.isFull()?this.close():this.positionDropdown(),this.updatePlaceholder(),this.trigger("item_add",t,i),this.updateOriginalInput({silent:n})))):"single"===l&&this.close()})},removeItem:function(t,n){var i,r,o;i=t instanceof e?t:this.getItem(t),t=c(i.attr("data-value")),-1!==(r=this.items.indexOf(t))&&(i.remove(),i.hasClass("active")&&(o=this.$activeItems.indexOf(i[0]),this.$activeItems.splice(o,1)),this.items.splice(r,1),this.lastQuery=null,!this.settings.persist&&this.userOptions.hasOwnProperty(t)&&this.removeOption(t,n),r<this.caretPos&&this.setCaret(this.caretPos-1),this.refreshState(),this.updatePlaceholder(),this.updateOriginalInput({silent:n}),this.positionDropdown(),this.trigger("item_remove",t,i))},createItem:function(t,n){var i=this,r=i.caretPos;t=t||e.trim(i.$control_input.val()||"");var o=arguments[arguments.length-1];if("function"!=typeof o&&(o=function(){}),"boolean"!=typeof n&&(n=!0),!i.canCreate(t))return o(),!1;i.lock();var s,a,l="function"==typeof i.settings.create?this.settings.create:function(e){var t={};return t[i.settings.labelField]=e,t[i.settings.valueField]=e,t},u=(s=function(e){if(i.unlock(),!e||"object"!=typeof e)return o();var t=c(e[i.settings.valueField]);if("string"!=typeof t)return o();i.setTextboxValue(""),i.addOption(e),i.setCaret(r),i.addItem(t),i.refreshOptions(n&&"single"!==i.settings.mode),o(e)},a=!1,function(){a||(a=!0,s.apply(this,arguments))}),d=l.apply(this,[t,u]);return void 0!==d&&u(d),!0},refreshItems:function(){this.lastQuery=null,this.isSetup&&this.addItem(this.items),this.refreshState(),this.updateOriginalInput()},refreshState:function(){this.refreshValidityState(),this.refreshClasses()},refreshValidityState:function(){if(!this.isRequired)return!1;var e=!this.items.length;this.isInvalid=e,this.$control_input.prop("required",e),this.$input.prop("required",!e)},refreshClasses:function(){var t=this.isFull(),n=this.isLocked;this.$wrapper.toggleClass("rtl",this.rtl),this.$control.toggleClass("focus",this.isFocused).toggleClass("disabled",this.isDisabled).toggleClass("required",this.isRequired).toggleClass("invalid",this.isInvalid).toggleClass("locked",n).toggleClass("full",t).toggleClass("not-full",!t).toggleClass("input-active",this.isFocused&&!this.isInputHidden).toggleClass("dropdown-active",this.isOpen).toggleClass("has-options",!e.isEmptyObject(this.options)).toggleClass("has-items",this.items.length>0),this.$control_input.data("grow",!t&&!n)},isFull:function(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(e){var t,n,i,r;if(e=e||{},1===this.tagType){for(i=[],t=0,n=this.items.length;t<n;t++)r=this.options[this.items[t]][this.settings.labelField]||"",i.push('<option value="'+d(this.items[t])+'" selected="selected">'+d(r)+"</option>");i.length||this.$input.attr("multiple")||i.push('<option value="" selected="selected"></option>'),this.$input.html(i.join(""))}else this.$input.val(this.getValue()),this.$input.attr("value",this.$input.val());this.isSetup&&(e.silent||this.trigger("change",this.$input.val()))},updatePlaceholder:function(){if(this.settings.placeholder){var e=this.$control_input;this.items.length?e.removeAttr("placeholder"):e.attr("placeholder",this.settings.placeholder),e.triggerHandler("update",{force:!0})}},open:function(){this.isLocked||this.isOpen||"multi"===this.settings.mode&&this.isFull()||(this.focus(),this.isOpen=!0,this.refreshState(),this.$dropdown.css({visibility:"hidden",display:"block"}),this.positionDropdown(),this.$dropdown.css({visibility:"visible"}),this.trigger("dropdown_open",this.$dropdown))},close:function(){var e=this.isOpen;"single"===this.settings.mode&&this.items.length&&(this.hideInput(),this.$control_input.blur()),this.isOpen=!1,this.$dropdown.hide(),this.setActiveOption(null),this.refreshState(),e&&this.trigger("dropdown_close",this.$dropdown)},positionDropdown:function(){var e=this.$control,t="body"===this.settings.dropdownParent?e.offset():e.position();t.top+=e.outerHeight(!0),this.$dropdown.css({width:e.outerWidth(),top:t.top,left:t.left})},clear:function(e){this.items.length&&(this.$control.children(":not(input)").remove(),this.items=[],this.lastQuery=null,this.setCaret(0),this.setActiveItem(null),this.updatePlaceholder(),this.updateOriginalInput({silent:e}),this.refreshState(),this.showInput(),this.trigger("clear"))},insertAtCaret:function(t){var n=Math.min(this.caretPos,this.items.length);0===n?this.$control.prepend(t):e(this.$control[0].childNodes[n]).before(t),this.setCaret(n+1)},deleteSelection:function(t){var n,i,r,o,s,a,l,u,c;if(r=t&&8===t.keyCode?-1:1,o=p(this.$control_input[0]),this.$activeOption&&!this.settings.hideSelected&&(l=this.getAdjacentOption(this.$activeOption,-1).attr("data-value")),s=[],this.$activeItems.length){for(c=this.$control.children(".active:"+(r>0?"last":"first")),a=this.$control.children(":not(input)").index(c),r>0&&a++,n=0,i=this.$activeItems.length;n<i;n++)s.push(e(this.$activeItems[n]).attr("data-value"));t&&(t.preventDefault(),t.stopPropagation())}else(this.isFocused||"single"===this.settings.mode)&&this.items.length&&(r<0&&0===o.start&&0===o.length?s.push(this.items[this.caretPos-1]):r>0&&o.start===this.$control_input.val().length&&s.push(this.items[this.caretPos]));if(!s.length||"function"==typeof this.settings.onDelete&&!1===this.settings.onDelete.apply(this,[s]))return!1;for(void 0!==a&&this.setCaret(a);s.length;)this.removeItem(s.pop());return this.showInput(),this.positionDropdown(),this.refreshOptions(!0),l&&(u=this.getOption(l)).length&&this.setActiveOption(u),!0},advanceSelection:function(e,t){var n,i,r,o,s;0!==e&&(this.rtl&&(e*=-1),n=e>0?"last":"first",i=p(this.$control_input[0]),this.isFocused&&!this.isInputHidden?(o=this.$control_input.val().length,(e<0?0===i.start&&0===i.length:i.start===o)&&!o&&this.advanceCaret(e,t)):(s=this.$control.children(".active:"+n)).length&&(r=this.$control.children(":not(input)").index(s),this.setActiveItem(null),this.setCaret(e>0?r+1:r)))},advanceCaret:function(e,t){var n,i;0!==e&&(n=e>0?"next":"prev",this.isShiftDown?(i=this.$control_input[n]()).length&&(this.hideInput(),this.setActiveItem(i),t&&t.preventDefault()):this.setCaret(this.caretPos+e))},setCaret:function(t){var n,i,r,o;if(t="single"===this.settings.mode?this.items.length:Math.max(0,Math.min(this.items.length,t)),!this.isPending)for(n=0,i=(r=this.$control.children(":not(input)")).length;n<i;n++)o=e(r[n]).detach(),n<t?this.$control_input.before(o):this.$control.append(o);this.caretPos=t},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){this.$input.prop("disabled",!0),this.$control_input.prop("disabled",!0).prop("tabindex",-1),this.isDisabled=!0,this.lock()},enable:function(){this.$input.prop("disabled",!1),this.$control_input.prop("disabled",!1).prop("tabindex",this.tabIndex),this.isDisabled=!1,this.unlock()},destroy:function(){var t=this.eventNS,n=this.revertSettings;this.trigger("destroy"),this.off(),this.$wrapper.remove(),this.$dropdown.remove(),this.$input.html("").append(n.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:n.tabindex}).show(),this.$control_input.removeData("grow"),this.$input.removeData("selectize"),e(window).off(t),e(document).off(t),e(document.body).off(t),delete this.$input[0].selectize},render:function(t,n){var i,r,o="",s=!1;return"option"!==t&&"item"!==t||(s=!!(i=c(n[this.settings.valueField]))),s&&(u(this.renderCache[t])||(this.renderCache[t]={}),this.renderCache[t].hasOwnProperty(i))?this.renderCache[t][i]:(o=e(this.settings.render[t].apply(this,[n,d])),"option"===t||"option_create"===t?o.attr("data-selectable",""):"optgroup"===t&&(r=n[this.settings.optgroupValueField]||"",o.attr("data-group",r)),"option"!==t&&"item"!==t||o.attr("data-value",i||""),s&&(this.renderCache[t][i]=o[0]),o[0])},clearCache:function(e){void 0===e?this.renderCache={}:delete this.renderCache[e]},canCreate:function(e){if(!this.settings.create)return!1;var t=this.settings.createFilter;return e.length&&("function"!=typeof t||t.apply(this,[e]))&&("string"!=typeof t||new RegExp(t).test(e))&&(!(t instanceof RegExp)||t.test(e))}}),m.count=0,m.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!1,preload:!1,allowEmptyOption:!1,closeAfterSelect:!1,scrollDuration:60,loadThrottle:300,loadingClass:"loading",dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},e.fn.selectize=function(t){var n=e.fn.selectize.defaults,i=e.extend({},n,t),r=i.dataAttr,o=i.labelField,s=i.valueField,a=i.optgroupField,l=i.optgroupLabelField,u=i.optgroupValueField;return this.each(function(){if(!this.selectize){var d=e(this),h=this.tagName.toLowerCase(),f=d.attr("placeholder")||d.attr("data-placeholder");f||i.allowEmptyOption||(f=d.children('option[value=""]').text());var p={placeholder:f,options:[],optgroups:[],items:[]};"select"===h?function(t,n){var d,h,f,p,g=n.options,m={},v=function(e){var t=r&&e.attr(r);return"string"==typeof t&&t.length?JSON.parse(t):null},y=function(t,r){t=e(t);var l=c(t.val());if(l||i.allowEmptyOption)if(m.hasOwnProperty(l)){if(r){var u=m[l][a];u?e.isArray(u)?u.push(r):m[l][a]=[u,r]:m[l][a]=r}}else{var d=v(t)||{};d[o]=d[o]||t.text(),d[s]=d[s]||l,d[a]=d[a]||r,m[l]=d,g.push(d),t.is(":selected")&&n.items.push(l)}},w=function(t){var i,r,o,s,a;for((o=(t=e(t)).attr("label"))&&((s=v(t)||{})[l]=o,s[u]=o,n.optgroups.push(s)),i=0,r=(a=e("option",t)).length;i<r;i++)y(a[i],o)};for(n.maxItems=t.attr("multiple")?null:1,d=0,h=(p=t.children()).length;d<h;d++)"optgroup"===(f=p[d].tagName.toLowerCase())?w(p[d]):"option"===f&&y(p[d])}(d,p):function(t,n){var a,l,u,c,d=t.attr(r);if(d)for(n.options=JSON.parse(d),a=0,l=n.options.length;a<l;a++)n.items.push(n.options[a][s]);else{var h=e.trim(t.val()||"");if(!i.allowEmptyOption&&!h.length)return;for(a=0,l=(u=h.split(i.delimiter)).length;a<l;a++)(c={})[o]=u[a],c[s]=u[a],n.options.push(c);n.items=u}}(d,p),new m(d,e.extend(!0,{},n,p,t))}})},e.fn.selectize.defaults=m.defaults,e.fn.selectize.support={validity:l},m.define("drag_drop",function(t){if(!e.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');if("multi"===this.settings.mode){var n,i,r,o=this;o.lock=(n=o.lock,function(){var e=o.$control.data("sortable");return e&&e.disable(),n.apply(o,arguments)}),o.unlock=(i=o.unlock,function(){var e=o.$control.data("sortable");return e&&e.enable(),i.apply(o,arguments)}),o.setup=(r=o.setup,function(){r.apply(this,arguments);var t=o.$control.sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:o.isLocked,start:function(e,n){n.placeholder.css("width",n.helper.css("width")),t.css({overflow:"visible"})},stop:function(){t.css({overflow:"hidden"});var n=o.$activeItems?o.$activeItems.slice():null,i=[];t.children("[data-value]").each(function(){i.push(e(this).attr("data-value"))}),o.setValue(i),o.setActiveItem(n)}})})}}),m.define("dropdown_header",function(t){var n,i=this;t=e.extend({title:"Untitled",headerClass:"selectize-dropdown-header",titleRowClass:"selectize-dropdown-header-title",labelClass:"selectize-dropdown-header-label",closeClass:"selectize-dropdown-header-close",html:function(e){return'<div class="'+e.headerClass+'"><div class="'+e.titleRowClass+'"><span class="'+e.labelClass+'">'+e.title+'</span><a href="javascript:void(0)" class="'+e.closeClass+'">&times;</a></div></div>'}},t),i.setup=(n=i.setup,function(){n.apply(i,arguments),i.$dropdown_header=e(t.html(t)),i.$dropdown.prepend(i.$dropdown_header)})}),m.define("optgroup_columns",function(t){var n,i=this;t=e.extend({equalizeWidth:!0,equalizeHeight:!0},t),this.getAdjacentOption=function(t,n){var i=t.closest("[data-group]").find("[data-selectable]"),r=i.index(t)+n;return r>=0&&r<i.length?i.eq(r):e()},this.onKeyDown=(n=i.onKeyDown,function(e){var t,r,o,s;return!this.isOpen||37!==e.keyCode&&39!==e.keyCode?n.apply(this,arguments):(i.ignoreHover=!0,t=(s=this.$activeOption.closest("[data-group]")).find("[data-selectable]").index(this.$activeOption),void((r=(o=(s=37===e.keyCode?s.prev("[data-group]"):s.next("[data-group]")).find("[data-selectable]")).eq(Math.min(o.length-1,t))).length&&this.setActiveOption(r)))});var r=function(){var e,t=r.width,n=document;return void 0===t&&((e=n.createElement("div")).innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',e=e.firstChild,n.body.appendChild(e),t=r.width=e.offsetWidth-e.clientWidth,n.body.removeChild(e)),t},o=function(){var n,o,s,a,l,u,c;if((o=(c=e("[data-group]",i.$dropdown_content)).length)&&i.$dropdown_content.width()){if(t.equalizeHeight){for(s=0,n=0;n<o;n++)s=Math.max(s,c.eq(n).height());c.css({height:s})}t.equalizeWidth&&(u=i.$dropdown_content.innerWidth()-r(),a=Math.round(u/o),c.css({width:a}),o>1&&(l=u-a*(o-1),c.eq(o-1).css({width:l})))}};(t.equalizeHeight||t.equalizeWidth)&&(h.after(this,"positionDropdown",o),h.after(this,"refreshOptions",o))}),m.define("remove_button",function(t){t=e.extend({label:"&times;",title:"Remove",className:"remove",append:!0},t);var n,i,r,o,s;"single"!==this.settings.mode?(o=n=this,s='<a href="javascript:void(0)" class="'+(i=t).className+'" tabindex="-1" title="'+d(i.title)+'">'+i.label+"</a>",n.setup=(r=o.setup,function(){if(i.append){var t=o.settings.render.item;o.settings.render.item=function(e){return i=t.apply(n,arguments),r=s,o=i.search(/(<\/[^>]+>\s*)$/),i.substring(0,o)+r+i.substring(o);var i,r,o}}r.apply(n,arguments),n.$control.on("click","."+i.className,function(t){if(t.preventDefault(),!o.isLocked){var n=e(t.currentTarget).parent();o.setActiveItem(n),o.deleteSelection()&&o.setCaret(o.items.length)}})})):function(t,n){n.className="remove-single";var i,r=t,o='<a href="javascript:void(0)" class="'+n.className+'" tabindex="-1" title="'+d(n.title)+'">'+n.label+"</a>";t.setup=(i=r.setup,function(){if(n.append){var s=e(r.$input.context).attr("id"),a=(e("#"+s),r.settings.render.item);r.settings.render.item=function(e){return a.apply(t,arguments)+o}}i.apply(t,arguments),t.$control.on("click","."+n.className,function(e){e.preventDefault(),r.isLocked||r.clear()})})}(this,t)}),m.define("restore_on_backspace",function(e){var t,n=this;e.text=e.text||function(e){return e[this.settings.labelField]},this.onKeyDown=(t=n.onKeyDown,function(n){var i,r;return 8===n.keyCode&&""===this.$control_input.val()&&!this.$activeItems.length&&(i=this.caretPos-1)>=0&&i<this.items.length?(r=this.options[this.items[i]],this.deleteSelection(n)&&(this.setTextboxValue(e.text.apply(this,[r])),this.refreshOptions(!0)),void n.preventDefault()):t.apply(this,arguments)})}),m}),function(){function e(t){var n=e.modules[t];if(!n)throw new Error('failed to require "'+t+'"');return"exports"in n||"function"!=typeof n.definition||(n.client=n.component=!0,n.definition.call(this,n.exports={},n),delete n.definition),n.exports}e.loader="component",e.helper={},e.helper.semVerSort=function(e,t){for(var n=e.version.split("."),i=t.version.split("."),r=0;r<n.length;++r){var o=parseInt(n[r],10),s=parseInt(i[r],10);if(o!==s)return o>s?1:-1;var a=n[r].substr((""+o).length),l=i[r].substr((""+s).length);if(""===a&&""!==l)return 1;if(""!==a&&""===l)return-1;if(""!==a&&""!==l)return a>l?1:-1}return 0},e.latest=function(t,n){function i(e){throw new Error('failed to find latest module of "'+e+'"')}var r=/(.*)~(.*)@v?(\d+\.\d+\.\d+[^\/]*)$/;/(.*)~(.*)/.test(t)||i(t);for(var o=Object.keys(e.modules),s=[],a=[],l=0;l<o.length;l++){var u=o[l];if(new RegExp(t+"@").test(u)){var c=u.substr(t.length+1);null!=r.exec(u)?s.push({version:c,name:u}):a.push({version:c,name:u})}}if(0===s.concat(a).length&&i(t),s.length>0){var d=s.sort(e.helper.semVerSort).pop().name;return!0===n?d:e(d)}d=a.sort(function(e,t){return e.name>t.name})[0].name;return!0===n?d:e(d)},e.modules={},e.register=function(t,n){e.modules[t]={definition:n}},e.define=function(t,n){e.modules[t]={exports:n}},e.register("abpetkov~transitionize@0.0.3",function(e,t){function n(e,t){if(!(this instanceof n))return new n(e,t);this.element=e,this.props=t||{},this.init()}t.exports=n,n.prototype.isSafari=function(){return/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor)},n.prototype.init=function(){var e=[];for(var t in this.props)e.push(t+" "+this.props[t]);this.element.style.transition=e.join(", "),this.isSafari()&&(this.element.style.webkitTransition=e.join(", "))}}),e.register("ftlabs~fastclick@v0.6.11",function(e,t){function n(e){"use strict";var t,i=this;if(this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=10,this.layer=e,!e||!e.nodeType)throw new TypeError("Layer must be a document node");this.onClick=function(){return n.prototype.onClick.apply(i,arguments)},this.onMouse=function(){return n.prototype.onMouse.apply(i,arguments)},this.onTouchStart=function(){return n.prototype.onTouchStart.apply(i,arguments)},this.onTouchMove=function(){return n.prototype.onTouchMove.apply(i,arguments)},this.onTouchEnd=function(){return n.prototype.onTouchEnd.apply(i,arguments)},this.onTouchCancel=function(){return n.prototype.onTouchCancel.apply(i,arguments)},n.notNeeded(e)||(this.deviceIsAndroid&&(e.addEventListener("mouseover",this.onMouse,!0),e.addEventListener("mousedown",this.onMouse,!0),e.addEventListener("mouseup",this.onMouse,!0)),e.addEventListener("click",this.onClick,!0),e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1),e.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(e.removeEventListener=function(t,n,i){var r=Node.prototype.removeEventListener;"click"===t?r.call(e,t,n.hijacked||n,i):r.call(e,t,n,i)},e.addEventListener=function(t,n,i){var r=Node.prototype.addEventListener;"click"===t?r.call(e,t,n.hijacked||(n.hijacked=function(e){e.propagationStopped||n(e)}),i):r.call(e,t,n,i)}),"function"==typeof e.onclick&&(t=e.onclick,e.addEventListener("click",function(e){t(e)},!1),e.onclick=null))}n.prototype.deviceIsAndroid=navigator.userAgent.indexOf("Android")>0,n.prototype.deviceIsIOS=/iP(ad|hone|od)/.test(navigator.userAgent),n.prototype.deviceIsIOS4=n.prototype.deviceIsIOS&&/OS 4_\d(_\d)?/.test(navigator.userAgent),n.prototype.deviceIsIOSWithBadTarget=n.prototype.deviceIsIOS&&/OS ([6-9]|\d{2})_\d/.test(navigator.userAgent),n.prototype.needsClick=function(e){"use strict";switch(e.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e.disabled)return!0;break;case"input":if(this.deviceIsIOS&&"file"===e.type||e.disabled)return!0;break;case"label":case"video":return!0}return/\bneedsclick\b/.test(e.className)},n.prototype.needsFocus=function(e){"use strict";switch(e.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!this.deviceIsAndroid;case"input":switch(e.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!e.disabled&&!e.readOnly;default:return/\bneedsfocus\b/.test(e.className)}},n.prototype.sendClick=function(e,t){"use strict";var n,i;document.activeElement&&document.activeElement!==e&&document.activeElement.blur(),i=t.changedTouches[0],(n=document.createEvent("MouseEvents")).initMouseEvent(this.determineEventType(e),!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,e.dispatchEvent(n)},n.prototype.determineEventType=function(e){"use strict";return this.deviceIsAndroid&&"select"===e.tagName.toLowerCase()?"mousedown":"click"},n.prototype.focus=function(e){"use strict";var t;this.deviceIsIOS&&e.setSelectionRange&&0!==e.type.indexOf("date")&&"time"!==e.type?(t=e.value.length,e.setSelectionRange(t,t)):e.focus()},n.prototype.updateScrollParent=function(e){"use strict";var t,n;if(!(t=e.fastClickScrollParent)||!t.contains(e)){n=e;do{if(n.scrollHeight>n.offsetHeight){t=n,e.fastClickScrollParent=n;break}n=n.parentElement}while(n)}t&&(t.fastClickLastScrollTop=t.scrollTop)},n.prototype.getTargetElementFromEventTarget=function(e){"use strict";return e.nodeType===Node.TEXT_NODE?e.parentNode:e},n.prototype.onTouchStart=function(e){"use strict";var t,n,i;if(e.targetTouches.length>1)return!0;if(t=this.getTargetElementFromEventTarget(e.target),n=e.targetTouches[0],this.deviceIsIOS){if((i=window.getSelection()).rangeCount&&!i.isCollapsed)return!0;if(!this.deviceIsIOS4){if(n.identifier===this.lastTouchIdentifier)return e.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(t)}}return this.trackingClick=!0,this.trackingClickStart=e.timeStamp,this.targetElement=t,this.touchStartX=n.pageX,this.touchStartY=n.pageY,e.timeStamp-this.lastClickTime<200&&e.preventDefault(),!0},n.prototype.touchHasMoved=function(e){"use strict";var t=e.changedTouches[0],n=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>n||Math.abs(t.pageY-this.touchStartY)>n},n.prototype.onTouchMove=function(e){"use strict";return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(e.target)||this.touchHasMoved(e))&&(this.trackingClick=!1,this.targetElement=null),!0)},n.prototype.findControl=function(e){"use strict";return void 0!==e.control?e.control:e.htmlFor?document.getElementById(e.htmlFor):e.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},n.prototype.onTouchEnd=function(e){"use strict";var t,n,i,r,o,s=this.targetElement;if(!this.trackingClick)return!0;if(e.timeStamp-this.lastClickTime<200)return this.cancelNextClick=!0,!0;if(this.cancelNextClick=!1,this.lastClickTime=e.timeStamp,n=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,this.deviceIsIOSWithBadTarget&&(o=e.changedTouches[0],(s=document.elementFromPoint(o.pageX-window.pageXOffset,o.pageY-window.pageYOffset)||s).fastClickScrollParent=this.targetElement.fastClickScrollParent),"label"===(i=s.tagName.toLowerCase())){if(t=this.findControl(s)){if(this.focus(s),this.deviceIsAndroid)return!1;s=t}}else if(this.needsFocus(s))return e.timeStamp-n>100||this.deviceIsIOS&&window.top!==window&&"input"===i?(this.targetElement=null,!1):(this.focus(s),this.deviceIsIOS4&&"select"===i||(this.targetElement=null,e.preventDefault()),!1);return!(!this.deviceIsIOS||this.deviceIsIOS4||!(r=s.fastClickScrollParent)||r.fastClickLastScrollTop===r.scrollTop)||(this.needsClick(s)||(e.preventDefault(),this.sendClick(s,e)),!1)},n.prototype.onTouchCancel=function(){"use strict";this.trackingClick=!1,this.targetElement=null},n.prototype.onMouse=function(e){"use strict";return!this.targetElement||(!!e.forwardedTouchEvent||(!e.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(e.stopImmediatePropagation?e.stopImmediatePropagation():e.propagationStopped=!0,e.stopPropagation(),e.preventDefault(),!1))))},n.prototype.onClick=function(e){"use strict";var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===e.target.type&&0===e.detail||((t=this.onMouse(e))||(this.targetElement=null),t)},n.prototype.destroy=function(){"use strict";var e=this.layer;this.deviceIsAndroid&&(e.removeEventListener("mouseover",this.onMouse,!0),e.removeEventListener("mousedown",this.onMouse,!0),e.removeEventListener("mouseup",this.onMouse,!0)),e.removeEventListener("click",this.onClick,!0),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1),e.removeEventListener("touchcancel",this.onTouchCancel,!1)},n.notNeeded=function(e){"use strict";var t,i;if(void 0===window.ontouchstart)return!0;if(i=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!n.prototype.deviceIsAndroid)return!0;if(t=document.querySelector("meta[name=viewport]")){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(i>31&&window.innerWidth<=window.screen.width)return!0}}return"none"===e.style.msTouchAction},n.attach=function(e){"use strict";return new n(e)},"undefined"!=typeof define&&define.amd?define(function(){"use strict";return n}):void 0!==t&&t.exports?(t.exports=n.attach,t.exports.FastClick=n):window.FastClick=n}),e.register("component~indexof@0.0.3",function(e,t){t.exports=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}}),e.register("component~classes@1.2.1",function(t,n){var i=e("component~indexof@0.0.3"),r=/\s+/,o=Object.prototype.toString;function s(e){if(!e)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}n.exports=function(e){return new s(e)},s.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array();return~i(t,e)||t.push(e),this.el.className=t.join(" "),this},s.prototype.remove=function(e){if("[object RegExp]"==o.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=i(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},s.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},s.prototype.toggle=function(e,t){return this.list?(void 0!==t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this):(void 0!==t?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this)},s.prototype.array=function(){var e=this.el.className.replace(/^\s+|\s+$/g,"").split(r);return""===e[0]&&e.shift(),e},s.prototype.has=s.prototype.contains=function(e){return this.list?this.list.contains(e):!!~i(this.array(),e)}}),e.register("component~event@0.1.4",function(e,t){var n=window.addEventListener?"addEventListener":"attachEvent",i=window.removeEventListener?"removeEventListener":"detachEvent",r="addEventListener"!==n?"on":"";e.bind=function(e,t,i,o){return e[n](r+t,i,o||!1),i},e.unbind=function(e,t,n,o){return e[i](r+t,n,o||!1),n}}),e.register("component~query@0.0.3",function(e,t){function n(e,t){return t.querySelector(e)}(e=t.exports=function(e,t){return n(e,t=t||document)}).all=function(e,t){return(t=t||document).querySelectorAll(e)},e.engine=function(t){if(!t.one)throw new Error(".one callback required");if(!t.all)throw new Error(".all callback required");return n=t.one,e.all=t.all,e}}),e.register("component~matches-selector@0.1.5",function(t,n){var i=e("component~query@0.0.3"),r=Element.prototype,o=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector;n.exports=function(e,t){if(!e||1!==e.nodeType)return!1;if(o)return o.call(e,t);for(var n=i.all(t,e.parentNode),r=0;r<n.length;++r)if(n[r]==e)return!0;return!1}}),e.register("component~closest@0.1.4",function(t,n){var i=e("component~matches-selector@0.1.5");n.exports=function(e,t,n,r){for(e=n?{parentNode:e}:e,r=r||document;(e=e.parentNode)&&e!==document;){if(i(e,t))return e;if(e===r)return}}}),e.register("component~delegate@0.2.3",function(t,n){var i=e("component~closest@0.1.4"),r=e("component~event@0.1.4");t.bind=function(e,t,n,o,s){return r.bind(e,n,function(n){var r=n.target||n.srcElement;n.delegateTarget=i(r,t,!0,e),n.delegateTarget&&o.call(e,n)},s)},t.unbind=function(e,t,n,i){r.unbind(e,t,n,i)}}),e.register("component~events@1.0.9",function(t,n){var i=e("component~event@0.1.4"),r=e("component~delegate@0.2.3");function o(e,t){if(!(this instanceof o))return new o(e,t);if(!e)throw new Error("element required");if(!t)throw new Error("object required");this.el=e,this.obj=t,this._events={}}n.exports=o,o.prototype.sub=function(e,t,n){this._events[e]=this._events[e]||{},this._events[e][t]=n},o.prototype.bind=function(e,t){var n,o={name:(n=e.split(/ +/)).shift(),selector:n.join(" ")},s=this.el,a=this.obj,l=o.name,u=(t=t||"on"+l,[].slice.call(arguments,2));function c(){var e=[].slice.call(arguments).concat(u);a[t].apply(a,e)}return o.selector?c=r.bind(s,o.selector,l,c):i.bind(s,l,c),this.sub(l,t,c),c},o.prototype.unbind=function(e,t){if(0==arguments.length)return this.unbindAll();if(1==arguments.length)return this.unbindAllOf(e);var n=this._events[e];if(n){var r=n[t];r&&i.unbind(this.el,e,r)}},o.prototype.unbindAll=function(){for(var e in this._events)this.unbindAllOf(e)},o.prototype.unbindAllOf=function(e){var t=this._events[e];if(t)for(var n in t)this.unbind(e,n)}}),e.register("switchery",function(t,n){var i=e("abpetkov~transitionize@0.0.3"),r=e("ftlabs~fastclick@v0.6.11"),o=e("component~classes@1.2.1"),s=e("component~events@1.0.9");n.exports=l;var a={color:"#64bd63",secondaryColor:"#dfdfdf",jackColor:"#fff",jackSecondaryColor:null,className:"switchery",disabled:!1,disabledOpacity:.5,speed:"0.4s",size:"default"};function l(e,t){if(!(this instanceof l))return new l(e,t);this.element=e,this.options=t||{};for(var n in a)null==this.options[n]&&(this.options[n]=a[n]);null!=this.element&&"checkbox"==this.element.type&&this.init(),!0===this.isDisabled()&&this.disable()}l.prototype.hide=function(){this.element.style.display="none"},l.prototype.show=function(){var e=this.create();this.insertAfter(this.element,e)},l.prototype.create=function(){return this.switcher=document.createElement("span"),this.jack=document.createElement("small"),this.switcher.appendChild(this.jack),this.switcher.className=this.options.className,this.events=s(this.switcher,this),this.switcher},l.prototype.insertAfter=function(e,t){e.parentNode.insertBefore(t,e.nextSibling)},l.prototype.setPosition=function(e){var t=this.isChecked(),n=this.switcher,i=this.jack;e&&t?t=!1:e&&!t&&(t=!0),!0===t?(this.element.checked=!0,window.getComputedStyle?i.style.left=parseInt(window.getComputedStyle(n).width)-parseInt(window.getComputedStyle(i).width)+"px":i.style.left=parseInt(n.currentStyle.width)-parseInt(i.currentStyle.width)+"px",this.options.color&&this.colorize(),this.setSpeed()):(i.style.left=0,this.element.checked=!1,this.switcher.style.boxShadow="inset 0 0 0 0 "+this.options.secondaryColor,this.switcher.style.borderColor=this.options.secondaryColor,this.switcher.style.backgroundColor=this.options.secondaryColor!==a.secondaryColor?this.options.secondaryColor:"#fff",this.jack.style.backgroundColor=this.options.jackSecondaryColor!==this.options.jackColor?this.options.jackSecondaryColor:this.options.jackColor,this.setSpeed())},l.prototype.setSpeed=function(){var e={},t={"background-color":this.options.speed,left:this.options.speed.replace(/[a-z]/,"")/2+"s"};e=this.isChecked()?{border:this.options.speed,"box-shadow":this.options.speed,"background-color":3*this.options.speed.replace(/[a-z]/,"")+"s"}:{border:this.options.speed,"box-shadow":this.options.speed},i(this.switcher,e),i(this.jack,t)},l.prototype.setSize=function(){switch(this.options.size){case"small":o(this.switcher).add("switchery-small");break;case"large":o(this.switcher).add("switchery-large");break;default:o(this.switcher).add("switchery-default")}},l.prototype.colorize=function(){var e=this.switcher.offsetHeight/2;this.switcher.style.backgroundColor=this.options.color,this.switcher.style.borderColor=this.options.color,this.switcher.style.boxShadow="inset 0 0 0 "+e+"px "+this.options.color,this.jack.style.backgroundColor=this.options.jackColor},l.prototype.handleOnchange=function(e){if(document.dispatchEvent){var t=document.createEvent("HTMLEvents");t.initEvent("change",!0,!0),this.element.dispatchEvent(t)}else this.element.fireEvent("onchange")},l.prototype.handleChange=function(){var e=this,t=this.element;t.addEventListener?t.addEventListener("change",function(){e.setPosition()}):t.attachEvent("onchange",function(){e.setPosition()})},l.prototype.handleClick=function(){var e=this.switcher;r(e),this.events.bind("click","bindClick")},l.prototype.bindClick=function(){var e="label"!==this.element.parentNode.tagName.toLowerCase();this.setPosition(e),this.handleOnchange(this.element.checked)},l.prototype.markAsSwitched=function(){this.element.setAttribute("data-switchery",!0)},l.prototype.markedAsSwitched=function(){return this.element.getAttribute("data-switchery")},l.prototype.init=function(){this.hide(),this.show(),this.setSize(),this.setPosition(),this.markAsSwitched(),this.handleChange(),this.handleClick()},l.prototype.isChecked=function(){return this.element.checked},l.prototype.isDisabled=function(){return this.options.disabled||this.element.disabled||this.element.readOnly},l.prototype.destroy=function(){this.events.unbind()},l.prototype.enable=function(){this.options.disabled&&(this.options.disabled&&(this.options.disabled=!1),this.element.disabled&&(this.element.disabled=!1),this.element.readOnly&&(this.element.readOnly=!1),this.switcher.style.opacity=1,this.events.bind("click","bindClick"))},l.prototype.disable=function(){this.options.disabled||(this.options.disabled||(this.options.disabled=!0),this.element.disabled||(this.element.disabled=!0),this.element.readOnly||(this.element.readOnly=!0),this.switcher.style.opacity=this.options.disabledOpacity,this.destroy())}}),"object"==typeof exports?module.exports=e("switchery"):"function"==typeof define&&define.amd?define("Switchery",[],function(){return e("switchery")}):(this||window).Switchery=e("switchery")}();var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(){var e=/\blang(?:uage)?-(\w+)\b/i,t=0,n=_self.Prism={manual:_self.Prism&&_self.Prism.manual,disableWorkerMessageHandler:_self.Prism&&_self.Prism.disableWorkerMessageHandler,util:{encode:function(e){return e instanceof i?new i(e.type,n.util.encode(e.content),e.alias):"Array"===n.util.type(e)?e.map(n.util.encode):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function(e){switch(n.util.type(e)){case"Object":var t={};for(var i in e)e.hasOwnProperty(i)&&(t[i]=n.util.clone(e[i]));return t;case"Array":return e.map(function(e){return n.util.clone(e)})}return e}},languages:{extend:function(e,t){var i=n.util.clone(n.languages[e]);for(var r in t)i[r]=t[r];return i},insertBefore:function(e,t,i,r){var o=(r=r||n.languages)[e];if(2==arguments.length){i=arguments[1];for(var s in i)i.hasOwnProperty(s)&&(o[s]=i[s]);return o}var a={};for(var l in o)if(o.hasOwnProperty(l)){if(l==t)for(var s in i)i.hasOwnProperty(s)&&(a[s]=i[s]);a[l]=o[l]}return n.languages.DFS(n.languages,function(t,n){n===r[e]&&t!=e&&(this[t]=a)}),r[e]=a},DFS:function(e,t,i,r){r=r||{};for(var o in e)e.hasOwnProperty(o)&&(t.call(e,o,e[o],i||o),"Object"!==n.util.type(e[o])||r[n.util.objId(e[o])]?"Array"!==n.util.type(e[o])||r[n.util.objId(e[o])]||(r[n.util.objId(e[o])]=!0,n.languages.DFS(e[o],t,o,r)):(r[n.util.objId(e[o])]=!0,n.languages.DFS(e[o],t,null,r)))}},plugins:{},highlightAll:function(e,t){n.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,i){var r={callback:i,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};n.hooks.run("before-highlightall",r);for(var o,s=r.elements||e.querySelectorAll(r.selector),a=0;o=s[a++];)n.highlightElement(o,!0===t,r.callback)},highlightElement:function(t,i,r){for(var o,s,a=t;a&&!e.test(a.className);)a=a.parentNode;a&&(o=(a.className.match(e)||[,""])[1].toLowerCase(),s=n.languages[o]),t.className=t.className.replace(e,"").replace(/\s+/g," ")+" language-"+o,t.parentNode&&(a=t.parentNode,/pre/i.test(a.nodeName)&&(a.className=a.className.replace(e,"").replace(/\s+/g," ")+" language-"+o));var l={element:t,language:o,grammar:s,code:t.textContent};if(n.hooks.run("before-sanity-check",l),!l.code||!l.grammar)return l.code&&(n.hooks.run("before-highlight",l),l.element.textContent=l.code,n.hooks.run("after-highlight",l)),void n.hooks.run("complete",l);if(n.hooks.run("before-highlight",l),i&&_self.Worker){var u=new Worker(n.filename);u.onmessage=function(e){l.highlightedCode=e.data,n.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,r&&r.call(l.element),n.hooks.run("after-highlight",l),n.hooks.run("complete",l)},u.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else l.highlightedCode=n.highlight(l.code,l.grammar,l.language),n.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,r&&r.call(t),n.hooks.run("after-highlight",l),n.hooks.run("complete",l)},highlight:function(e,t,r){var o=n.tokenize(e,t);return i.stringify(n.util.encode(o),r)},matchGrammar:function(e,t,i,r,o,s,a){var l=n.Token;for(var u in i)if(i.hasOwnProperty(u)&&i[u]){if(u==a)return;var c=i[u];c="Array"===n.util.type(c)?c:[c];for(var d=0;d<c.length;++d){var h=c[d],f=h.inside,p=!!h.lookbehind,g=!!h.greedy,m=0,v=h.alias;if(g&&!h.pattern.global){var y=h.pattern.toString().match(/[imuy]*$/)[0];h.pattern=RegExp(h.pattern.source,y+"g")}h=h.pattern||h;for(var w=r,b=o;w<t.length;b+=t[w].length,++w){var x=t[w];if(t.length>e.length)return;if(!(x instanceof l)){h.lastIndex=0;var k=1;if(!(O=h.exec(x))&&g&&w!=t.length-1){if(h.lastIndex=b,!(O=h.exec(e)))break;for(var S=O.index+(p?O[1].length:0),C=O.index+O[0].length,T=w,_=b,E=t.length;T<E&&(_<C||!t[T].type&&!t[T-1].greedy);++T)S>=(_+=t[T].length)&&(++w,b=_);if(t[w]instanceof l||t[T-1].greedy)continue;k=T-w,x=e.slice(b,_),O.index-=b}if(O){p&&(m=O[1].length);C=(S=O.index+m)+(O=O[0].slice(m)).length;var O,D=x.slice(0,S),P=x.slice(C),A=[w,k];D&&(++w,b+=D.length,A.push(D));var M=new l(u,f?n.tokenize(O,f):O,v,O,g);if(A.push(M),P&&A.push(P),Array.prototype.splice.apply(t,A),1!=k&&n.matchGrammar(e,t,i,w,b,!0,u),s)break}else if(s)break}}}}},tokenize:function(e,t,i){var r=[e],o=t.rest;if(o){for(var s in o)t[s]=o[s];delete t.rest}return n.matchGrammar(e,r,t,0,0,!1),r},hooks:{all:{},add:function(e,t){var i=n.hooks.all;i[e]=i[e]||[],i[e].push(t)},run:function(e,t){var i=n.hooks.all[e];if(i&&i.length)for(var r,o=0;r=i[o++];)r(t)}}},i=n.Token=function(e,t,n,i,r){this.type=e,this.content=t,this.alias=n,this.length=0|(i||"").length,this.greedy=!!r};if(i.stringify=function(e,t,r){if("string"==typeof e)return e;if("Array"===n.util.type(e))return e.map(function(n){return i.stringify(n,t,e)}).join("");var o={type:e.type,content:i.stringify(e.content,t,r),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:r};if(e.alias){var s="Array"===n.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(o.classes,s)}n.hooks.run("wrap",o);var a=Object.keys(o.attributes).map(function(e){return e+'="'+(o.attributes[e]||"").replace(/"/g,"&quot;")+'"'}).join(" ");return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+(a?" "+a:"")+">"+o.content+"</"+o.tag+">"},!_self.document)return _self.addEventListener?(n.disableWorkerMessageHandler||_self.addEventListener("message",function(e){var t=JSON.parse(e.data),i=t.language,r=t.code,o=t.immediateClose;_self.postMessage(n.highlight(r,n.languages[i],i)),o&&_self.close()},!1),_self.Prism):_self.Prism;var r=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return r&&(n.filename=r.src,n.manual||r.hasAttribute("data-manual")||("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(n.highlightAll):window.setTimeout(n.highlightAll,16):document.addEventListener("DOMContentLoaded",n.highlightAll))),_self.Prism}();"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism),Prism.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:/<!DOCTYPE[\s\S]+?>/i,cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/(^|[^\\])["']/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Prism.languages.xml=Prism.languages.markup,Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(?:;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^{}\s][^{};]*?(?=\s*\{)/,string:{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/\B!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},Prism.languages.css.atrule.inside.rest=Prism.util.clone(Prism.languages.css),Prism.languages.markup&&(Prism.languages.insertBefore("markup","tag",{style:{pattern:/(<style[\s\S]*?>)[\s\S]*?(?=<\/style>)/i,lookbehind:!0,inside:Prism.languages.css,alias:"language-css",greedy:!0}}),Prism.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:Prism.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:Prism.languages.css}},alias:"language-css"}},Prism.languages.markup.tag)),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/[a-z0-9_]+(?=\()/i,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{keyword:/\b(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,number:/\b-?(?:0[xX][\dA-Fa-f]+|0[bB][01]+|0[oO][0-7]+|\d*\.?\d+(?:[Ee][+-]?\d+)?|NaN|Infinity)\b/,function:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*\()/i,operator:/-[-=]?|\+[+=]?|!=?=?|<<?=?|>>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/}),Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^/])\/(?!\/)(\[[^\]\r\n]+]|\\.|[^/\\\[\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=\s*(?:function\b|(?:\([^()]*\)|[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/i,alias:"function"}}),Prism.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^}]+\}/,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}}}),Prism.languages.markup&&Prism.languages.insertBefore("markup","tag",{script:{pattern:/(<script[\s\S]*?>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,inside:Prism.languages.javascript,alias:"language-javascript",greedy:!0}}),Prism.languages.js=Prism.languages.javascript,"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(){var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(document.querySelectorAll("pre[data-src]")).forEach(function(t){for(var n,i=t.getAttribute("data-src"),r=t,o=/\blang(?:uage)?-(?!\*)(\w+)\b/i;r&&!o.test(r.className);)r=r.parentNode;if(r&&(n=(t.className.match(o)||[,""])[1]),!n){var s=(i.match(/\.(\w+)$/)||[,""])[1];n=e[s]||s}var a=document.createElement("code");a.className="language-"+n,t.textContent="",a.textContent="Loading…",t.appendChild(a);var l=new XMLHttpRequest;l.open("GET",i,!0),l.onreadystatechange=function(){4==l.readyState&&(l.status<400&&l.responseText?(a.textContent=l.responseText,Prism.highlightElement(a)):l.status>=400?a.textContent="✖ Error "+l.status+" while fetching file: "+l.statusText:a.textContent="✖ Error: File does not exist or is empty")},l.send(null)})},document.addEventListener("DOMContentLoaded",self.Prism.fileHighlight)),Prism.languages.php=Prism.languages.extend("clike",{string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:and|or|xor|array|as|break|case|cfunction|class|const|continue|declare|default|die|do|else|elseif|enddeclare|endfor|endforeach|endif|endswitch|endwhile|extends|for|foreach|function|include|include_once|global|if|new|return|static|switch|use|require|require_once|var|while|abstract|interface|public|implements|private|protected|parent|throw|null|echo|print|trait|namespace|final|yield|goto|instanceof|finally|try|catch)\b/i,constant:/\b[A-Z0-9_]{2,}\b/,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0}}),Prism.languages.insertBefore("php","class-name",{"shell-comment":{pattern:/(^|[^\\])#.*/,lookbehind:!0,alias:"comment"}}),Prism.languages.insertBefore("php","keyword",{delimiter:{pattern:/\?>|<\?(?:php|=)?/i,alias:"important"},variable:/\$\w+\b/i,package:{pattern:/(\\|namespace\s+|use\s+)[\w\\]+/,lookbehind:!0,inside:{punctuation:/\\/}}}),Prism.languages.insertBefore("php","operator",{property:{pattern:/(->)[\w]+/,lookbehind:!0}}),Prism.languages.markup&&(Prism.hooks.add("before-highlight",function(e){"php"===e.language&&/(?:<\?php|<\?)/gi.test(e.code)&&(e.tokenStack=[],e.backupCode=e.code,e.code=e.code.replace(/(?:<\?php|<\?)[\s\S]*?(?:\?>|$)/gi,function(t){for(var n=e.tokenStack.length;-1!==e.backupCode.indexOf("___PHP"+n+"___");)++n;return e.tokenStack[n]=t,"___PHP"+n+"___"}),e.grammar=Prism.languages.markup)}),Prism.hooks.add("before-insert",function(e){"php"===e.language&&e.backupCode&&(e.code=e.backupCode,delete e.backupCode)}),Prism.hooks.add("after-highlight",function(e){if("php"===e.language&&e.tokenStack){e.grammar=Prism.languages.php;for(var t=0,n=Object.keys(e.tokenStack);t<n.length;++t){var i=n[t],r=e.tokenStack[i];e.highlightedCode=e.highlightedCode.replace("___PHP"+i+"___",'<span class="token php language-php">'+Prism.highlight(r,e.grammar,"php").replace(/\$/g,"$$$$")+"</span>")}e.element.innerHTML=e.highlightedCode}})),function(){if("undefined"!=typeof self&&self.Prism&&self.document){var e=/\n(?!$)/g,t=function(t){var i=n(t)["white-space"];if("pre-wrap"===i||"pre-line"===i){var r=t.querySelector("code"),o=t.querySelector(".line-numbers-rows"),s=t.querySelector(".line-numbers-sizer"),a=r.textContent.split(e);s||((s=document.createElement("span")).className="line-numbers-sizer",r.appendChild(s)),s.style.display="block",a.forEach(function(e,t){s.textContent=e||"\n";var n=s.getBoundingClientRect().height;o.children[t].style.height=n+"px"}),s.textContent="",s.style.display="none"}},n=function(e){return e?window.getComputedStyle?getComputedStyle(e):e.currentStyle||null:null};window.addEventListener("resize",function(){Array.prototype.forEach.call(document.querySelectorAll("pre.line-numbers"),t)}),Prism.hooks.add("complete",function(n){if(n.code){var i=n.element.parentNode,r=/\s*\bline-numbers\b\s*/;if(i&&/pre/i.test(i.nodeName)&&(r.test(i.className)||r.test(n.element.className))&&!n.element.querySelector(".line-numbers-rows")){r.test(n.element.className)&&(n.element.className=n.element.className.replace(r," ")),r.test(i.className)||(i.className+=" line-numbers");var o,s=n.code.match(e),a=s?s.length+1:1,l=new Array(a+1);l=l.join("<span></span>"),(o=document.createElement("span")).setAttribute("aria-hidden","true"),o.className="line-numbers-rows",o.innerHTML=l,i.hasAttribute("data-start")&&(i.style.counterReset="linenumber "+(parseInt(i.getAttribute("data-start"),10)-1)),n.element.appendChild(o),t(i),Prism.hooks.run("line-numbers",n)}}}),Prism.hooks.add("line-numbers",function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}),Prism.plugins.lineNumbers={getLine:function(e,t){if("PRE"===e.tagName&&e.classList.contains("line-numbers")){var n=e.querySelector(".line-numbers-rows"),i=parseInt(e.getAttribute("data-start"),10)||1,r=i+(n.children.length-1);t<i&&(t=i),t>r&&(t=r);var o=t-i;return n.children[o]}}}}}(),function(e,t){if("function"==typeof define&&define.amd)define(["exports","module"],t);else if("undefined"!=typeof exports&&"undefined"!=typeof module)t(exports,module);else{var n={exports:{}};t(n.exports,n),e.autosize=n.exports}}(this,function(e,t){"use strict";var n,i,r="function"==typeof Map?new Map:(n=[],i=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return i[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),i.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),i.splice(t,1))}}),o=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){o=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function s(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!r.has(e)){var t,n=null,i=e.clientWidth,s=null,a=function(){e.clientWidth!==i&&d()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),r.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:l,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function u(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function c(){var t=e.style.height,r=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="";var s=e.scrollHeight+n;0!==e.scrollHeight?(e.style.height=s+"px",i=e.clientWidth,r.forEach(function(e){e.node.scrollTop=e.scrollTop}),o&&(document.documentElement.scrollTop=o)):e.style.height=t}function d(){c();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),i="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(i!==t?"hidden"===n.overflowY&&(u("scroll"),c(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(u("hidden"),c(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),s!==i){s=i;var r=o("autosize:resized");try{e.dispatchEvent(r)}catch(e){}}}}function a(e){var t=r.get(e);t&&t.destroy()}function l(e){var t=r.get(e);t&&t.update()}var u=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((u=function(e){return e}).destroy=function(e){return e},u.update=function(e){return e}):((u=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return s(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e},u.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e}),t.exports=u}),function(e,t,n,i){"use strict";var r,o=["","webkit","Moz","MS","ms","o"],s=t.createElement("div"),a="function",l=Math.round,u=Math.abs,c=Date.now;function d(e,t,n){return setTimeout(y(e,n),t)}function h(e,t,n){return!!Array.isArray(e)&&(f(e,n[t],n),!0)}function f(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==i)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function p(t,n,i){var r="DEPRECATED METHOD: "+n+"\n"+i+" AT \n";return function(){var n=new Error("get-stack-trace"),i=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=e.console&&(e.console.warn||e.console.log);return o&&o.call(e.console,r,i),t.apply(this,arguments)}}r="function"!=typeof Object.assign?function(e){if(e===i||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==i&&null!==r)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t}:Object.assign;var g=p(function(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;)(!n||n&&e[r[o]]===i)&&(e[r[o]]=t[r[o]]),o++;return e},"extend","Use `assign`."),m=p(function(e,t){return g(e,t,!0)},"merge","Use `assign`.");function v(e,t,n){var i,o=t.prototype;(i=e.prototype=Object.create(o)).constructor=e,i._super=o,n&&r(i,n)}function y(e,t){return function(){return e.apply(t,arguments)}}function w(e,t){return typeof e==a?e.apply(t?t[0]||i:i,t):e}function b(e,t){return e===i?t:e}function x(e,t,n){f(T(t),function(t){e.addEventListener(t,n,!1)})}function k(e,t,n){f(T(t),function(t){e.removeEventListener(t,n,!1)})}function S(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function C(e,t){return e.indexOf(t)>-1}function T(e){return e.trim().split(/\s+/g)}function _(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function E(e){return Array.prototype.slice.call(e,0)}function O(e,t,n){for(var i=[],r=[],o=0;o<e.length;){var s=t?e[o][t]:e[o];_(r,s)<0&&i.push(e[o]),r[o]=s,o++}return n&&(i=t?i.sort(function(e,n){return e[t]>n[t]}):i.sort()),i}function D(e,t){for(var n,r,s=t[0].toUpperCase()+t.slice(1),a=0;a<o.length;){if((r=(n=o[a])?n+s:t)in e)return r;a++}return i}var P=1;function A(t){var n=t.ownerDocument||t;return n.defaultView||n.parentWindow||e}var M="ontouchstart"in e,N=D(e,"PointerEvent")!==i,F=M&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),L=25,I=1,Y=2,j=4,H=8,z=1,R=2,$=4,q=8,W=16,V=R|$,X=q|W,B=V|X,U=["x","y"],G=["clientX","clientY"];function Z(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){w(e.options.enable,[e])&&n.handler(t)},this.init()}function Q(e,t,n){var r=n.pointers.length,o=n.changedPointers.length,s=t&I&&r-o==0,a=t&(j|H)&&r-o==0;n.isFirst=!!s,n.isFinal=!!a,s&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,o=r.length;n.firstInput||(n.firstInput=K(t));o>1&&!n.firstMultiple?n.firstMultiple=K(t):1===o&&(n.firstMultiple=!1);var s=n.firstInput,a=n.firstMultiple,l=a?a.center:s.center,d=t.center=J(r);t.timeStamp=c(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=ie(l,d),t.distance=ne(l,d),function(e,t){var n=t.center,i=e.offsetDelta||{},r=e.prevDelta||{},o=e.prevInput||{};t.eventType!==I&&o.eventType!==j||(r=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y});t.deltaX=r.x+(n.x-i.x),t.deltaY=r.y+(n.y-i.y)}(n,t),t.offsetDirection=te(t.deltaX,t.deltaY);var h=ee(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=h.x,t.overallVelocityY=h.y,t.overallVelocity=u(h.x)>u(h.y)?h.x:h.y,t.scale=a?(g=a.pointers,m=r,ne(m[0],m[1],G)/ne(g[0],g[1],G)):1,t.rotation=a?(f=a.pointers,p=r,ie(p[1],p[0],G)+ie(f[1],f[0],G)):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,o,s,a=e.lastInterval||t,l=t.timeStamp-a.timeStamp;if(t.eventType!=H&&(l>L||a.velocity===i)){var c=t.deltaX-a.deltaX,d=t.deltaY-a.deltaY,h=ee(l,c,d);r=h.x,o=h.y,n=u(h.x)>u(h.y)?h.x:h.y,s=te(c,d),e.lastInterval=t}else n=a.velocity,r=a.velocityX,o=a.velocityY,s=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=s}(n,t);var f,p;var g,m;var v=e.element;S(t.srcEvent.target,v)&&(v=t.srcEvent.target);t.target=v}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function K(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:l(e.pointers[n].clientX),clientY:l(e.pointers[n].clientY)},n++;return{timeStamp:c(),pointers:t,center:J(t),deltaX:e.deltaX,deltaY:e.deltaY}}function J(e){var t=e.length;if(1===t)return{x:l(e[0].clientX),y:l(e[0].clientY)};for(var n=0,i=0,r=0;r<t;)n+=e[r].clientX,i+=e[r].clientY,r++;return{x:l(n/t),y:l(i/t)}}function ee(e,t,n){return{x:t/e||0,y:n/e||0}}function te(e,t){return e===t?z:u(e)>=u(t)?e<0?R:$:t<0?q:W}function ne(e,t,n){n||(n=U);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return Math.sqrt(i*i+r*r)}function ie(e,t,n){n||(n=U);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return 180*Math.atan2(r,i)/Math.PI}Z.prototype={handler:function(){},init:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(A(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(A(this.element),this.evWin,this.domHandler)}};var re={mousedown:I,mousemove:Y,mouseup:j},oe="mousedown",se="mousemove mouseup";function ae(){this.evEl=oe,this.evWin=se,this.pressed=!1,Z.apply(this,arguments)}v(ae,Z,{handler:function(e){var t=re[e.type];t&I&&0===e.button&&(this.pressed=!0),t&Y&&1!==e.which&&(t=j),this.pressed&&(t&j&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var le={pointerdown:I,pointermove:Y,pointerup:j,pointercancel:H,pointerout:H},ue={2:"touch",3:"pen",4:"mouse",5:"kinect"},ce="pointerdown",de="pointermove pointerup pointercancel";function he(){this.evEl=ce,this.evWin=de,Z.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}e.MSPointerEvent&&!e.PointerEvent&&(ce="MSPointerDown",de="MSPointerMove MSPointerUp MSPointerCancel"),v(he,Z,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),r=le[i],o=ue[e.pointerType]||e.pointerType,s="touch"==o,a=_(t,e.pointerId,"pointerId");r&I&&(0===e.button||s)?a<0&&(t.push(e),a=t.length-1):r&(j|H)&&(n=!0),a<0||(t[a]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(a,1))}});var fe={touchstart:I,touchmove:Y,touchend:j,touchcancel:H},pe="touchstart",ge="touchstart touchmove touchend touchcancel";function me(){this.evTarget=pe,this.evWin=ge,this.started=!1,Z.apply(this,arguments)}v(me,Z,{handler:function(e){var t=fe[e.type];if(t===I&&(this.started=!0),this.started){var n=function(e,t){var n=E(e.touches),i=E(e.changedTouches);t&(j|H)&&(n=O(n.concat(i),"identifier",!0));return[n,i]}.call(this,e,t);t&(j|H)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var ve={touchstart:I,touchmove:Y,touchend:j,touchcancel:H},ye="touchstart touchmove touchend touchcancel";function we(){this.evTarget=ye,this.targetIds={},Z.apply(this,arguments)}v(we,Z,{handler:function(e){var t=ve[e.type],n=function(e,t){var n=E(e.touches),i=this.targetIds;if(t&(I|Y)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,s=E(e.changedTouches),a=[],l=this.target;if(o=n.filter(function(e){return S(e.target,l)}),t===I)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;r=0;for(;r<s.length;)i[s[r].identifier]&&a.push(s[r]),t&(j|H)&&delete i[s[r].identifier],r++;if(!a.length)return;return[O(o.concat(a),"identifier",!0),a]}.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});var be=2500,xe=25;function ke(){Z.apply(this,arguments);var e=y(this.handler,this);this.touch=new we(this.manager,e),this.mouse=new ae(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function Se(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout(function(){var e=i.indexOf(n);e>-1&&i.splice(e,1)},be)}}v(ke,Z,{handler:function(e,t,n){var i="touch"==n.pointerType,r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)(function(e,t){e&I?(this.primaryTouch=t.changedPointers[0].identifier,Se.call(this,t)):e&(j|H)&&Se.call(this,t)}).call(this,t,n);else if(r&&function(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(t-r.x),s=Math.abs(n-r.y);if(o<=xe&&s<=xe)return!0}return!1}.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ce=D(s.style,"touchAction"),Te=Ce!==i,_e="auto",Ee="manipulation",Oe="none",De="pan-x",Pe="pan-y",Ae=function(){if(!Te)return!1;var t={},n=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(i){t[i]=!n||e.CSS.supports("touch-action",i)}),t}();function Me(e,t){this.manager=e,this.set(t)}Me.prototype={set:function(e){"compute"==e&&(e=this.compute()),Te&&this.manager.element.style&&Ae[e]&&(this.manager.element.style[Ce]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return f(this.manager.recognizers,function(t){w(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(e){if(C(e,Oe))return Oe;var t=C(e,De),n=C(e,Pe);if(t&&n)return Oe;if(t||n)return t?De:Pe;if(C(e,Ee))return Ee;return _e}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var i=this.actions,r=C(i,Oe)&&!Ae[Oe],o=C(i,Pe)&&!Ae[Pe],s=C(i,De)&&!Ae[De];if(r){var a=1===e.pointers.length,l=e.distance<2,u=e.deltaTime<250;if(a&&l&&u)return}if(!s||!o)return r||o&&n&V||s&&n&X?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Ne=1,Fe=2,Le=4,Ie=8,Ye=Ie,je=16;function He(e){this.options=r({},this.defaults,e||{}),this.id=P++,this.manager=null,this.options.enable=b(this.options.enable,!0),this.state=Ne,this.simultaneous={},this.requireFail=[]}function ze(e){return e&je?"cancel":e&Ie?"end":e&Le?"move":e&Fe?"start":""}function Re(e){return e==W?"down":e==q?"up":e==R?"left":e==$?"right":""}function $e(e,t){var n=t.manager;return n?n.get(e):e}function qe(){He.apply(this,arguments)}function We(){qe.apply(this,arguments),this.pX=null,this.pY=null}function Ve(){qe.apply(this,arguments)}function Xe(){He.apply(this,arguments),this._timer=null,this._input=null}function Be(){qe.apply(this,arguments)}function Ue(){qe.apply(this,arguments)}function Ge(){He.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ze(e,t){return(t=t||{}).recognizers=b(t.recognizers,Ze.defaults.preset),new Qe(e,t)}He.prototype={defaults:{},set:function(e){return r(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(h(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=$e(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return h(e,"dropRecognizeWith",this)?this:(e=$e(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(h(e,"requireFailure",this))return this;var t=this.requireFail;return-1===_(t,e=$e(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(h(e,"dropRequireFailure",this))return this;e=$e(e,this);var t=_(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function i(n){t.manager.emit(n,e)}n<Ie&&i(t.options.event+ze(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=Ie&&i(t.options.event+ze(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(32|Ne)))return!1;e++}return!0},recognize:function(e){var t=r({},e);if(!w(this.options.enable,[this,t]))return this.reset(),void(this.state=32);this.state&(Ye|je|32)&&(this.state=Ne),this.state=this.process(t),this.state&(Fe|Le|Ie|je)&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},v(qe,He,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,i=t&(Fe|Le),r=this.attrTest(e);return i&&(n&H||!r)?t|je:i||r?n&j?t|Ie:t&Fe?t|Le:Fe:32}}),v(We,qe,{defaults:{event:"pan",threshold:10,pointers:1,direction:B},getTouchAction:function(){var e=this.options.direction,t=[];return e&V&&t.push(Pe),e&X&&t.push(De),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,r=e.direction,o=e.deltaX,s=e.deltaY;return r&t.direction||(t.direction&V?(r=0===o?z:o<0?R:$,n=o!=this.pX,i=Math.abs(e.deltaX)):(r=0===s?z:s<0?q:W,n=s!=this.pY,i=Math.abs(e.deltaY))),e.direction=r,n&&i>t.threshold&&r&t.direction},attrTest:function(e){return qe.prototype.attrTest.call(this,e)&&(this.state&Fe||!(this.state&Fe)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Re(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),v(Ve,qe,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Oe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&Fe)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),v(Xe,He,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[_e]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime>t.time;if(this._input=e,!i||!n||e.eventType&(j|H)&&!r)this.reset();else if(e.eventType&I)this.reset(),this._timer=d(function(){this.state=Ye,this.tryEmit()},t.time,this);else if(e.eventType&j)return Ye;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===Ye&&(e&&e.eventType&j?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=c(),this.manager.emit(this.options.event,this._input)))}}),v(Be,qe,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Oe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&Fe)}}),v(Ue,qe,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:V|X,pointers:1},getTouchAction:function(){return We.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(V|X)?t=e.overallVelocity:n&V?t=e.overallVelocityX:n&X&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&u(t)>this.options.velocity&&e.eventType&j},emit:function(e){var t=Re(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),v(Ge,He,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ee]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime<t.time;if(this.reset(),e.eventType&I&&0===this.count)return this.failTimeout();if(i&&r&&n){if(e.eventType!=j)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,s=!this.pCenter||ne(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,s&&o?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=d(function(){this.state=Ye,this.tryEmit()},t.interval,this),Fe):Ye}return 32},failTimeout:function(){return this._timer=d(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Ye&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ze.VERSION="2.0.7",Ze.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Be,{enable:!1}],[Ve,{enable:!1},["rotate"]],[Ue,{direction:V}],[We,{direction:V},["swipe"]],[Ge],[Ge,{event:"doubletap",taps:2},["tap"]],[Xe]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Qe(e,t){var n;this.options=r({},Ze.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(N?he:F?we:M?ke:ae))(n,Q),this.touchAction=new Me(this,this.options.touchAction),Ke(this,!0),f(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function Ke(e,t){var n,i=e.element;i.style&&(f(e.options.cssProps,function(r,o){n=D(i.style,o),t?(e.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=e.oldCssProps[n]||""}),t||(e.oldCssProps={}))}Qe.prototype={set:function(e){return r(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var i=this.recognizers,r=t.curRecognizer;(!r||r&&r.state&Ye)&&(r=t.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===t.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(e),!r&&n.state&(Fe|Le|Ie)&&(r=t.curRecognizer=n),o++}},get:function(e){if(e instanceof He)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(h(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(h(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=_(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==i&&t!==i){var n=this.handlers;return f(T(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this}},off:function(e,t){if(e!==i){var n=this.handlers;return f(T(e),function(e){t?n[e]&&n[e].splice(_(n[e],t),1):delete n[e]}),this}},emit:function(e,n){var i,r,o;this.options.domEvents&&(i=e,r=n,(o=t.createEvent("Event")).initEvent(i,!0,!0),o.gesture=r,r.target.dispatchEvent(o));var s=this.handlers[e]&&this.handlers[e].slice();if(s&&s.length){n.type=e,n.preventDefault=function(){n.srcEvent.preventDefault()};for(var a=0;a<s.length;)s[a](n),a++}},destroy:function(){this.element&&Ke(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},r(Ze,{INPUT_START:I,INPUT_MOVE:Y,INPUT_END:j,INPUT_CANCEL:H,STATE_POSSIBLE:Ne,STATE_BEGAN:Fe,STATE_CHANGED:Le,STATE_ENDED:Ie,STATE_RECOGNIZED:Ye,STATE_CANCELLED:je,STATE_FAILED:32,DIRECTION_NONE:z,DIRECTION_LEFT:R,DIRECTION_RIGHT:$,DIRECTION_UP:q,DIRECTION_DOWN:W,DIRECTION_HORIZONTAL:V,DIRECTION_VERTICAL:X,DIRECTION_ALL:B,Manager:Qe,Input:Z,TouchAction:Me,TouchInput:we,MouseInput:ae,PointerEventInput:he,TouchMouseInput:ke,SingleTouchInput:me,Recognizer:He,AttrRecognizer:qe,Tap:Ge,Pan:We,Swipe:Ue,Pinch:Ve,Rotate:Be,Press:Xe,on:x,off:k,each:f,merge:m,extend:g,assign:r,inherit:v,bindFn:y,prefixed:D}),(void 0!==e?e:"undefined"!=typeof self?self:{}).Hammer=Ze,"function"==typeof define&&define.amd?define(function(){return Ze}):"undefined"!=typeof module&&module.exports?module.exports=Ze:e.Hammer=Ze}(window,document),function(e){var t,n,i=e.event;t=i.special.debouncedresize={setup:function(){e(this).on("resize",t.handler)},teardown:function(){e(this).off("resize",t.handler)},handler:function(e,r){var o=this,s=arguments,a=function(){e.type="debouncedresize",i.dispatch.apply(o,s)};n&&clearTimeout(n),r?a():n=setTimeout(a,t.threshold)},threshold:150}}(jQuery),function(){"use strict";var e="undefined"!=typeof window&&void 0!==window.document?window.document:{},t="undefined"!=typeof module&&module.exports,n="undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,i=function(){for(var t,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=0,r=n.length,o={};i<r;i++)if((t=n[i])&&t[1]in e){for(i=0;i<t.length;i++)o[n[0][i]]=t[i];return o}return!1}(),r={change:i.fullscreenchange,error:i.fullscreenerror},o={request:function(t){var r=i.requestFullscreen;t=t||e.documentElement,/ Version\/5\.1(?:\.\d+)? Safari\//.test(navigator.userAgent)?t[r]():t[r](n&&Element.ALLOW_KEYBOARD_INPUT)},exit:function(){e[i.exitFullscreen]()},toggle:function(e){this.isFullscreen?this.exit():this.request(e)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(t,n){var i=r[t];i&&e.addEventListener(i,n,!1)},off:function(t,n){var i=r[t];i&&e.removeEventListener(i,n,!1)},raw:i};i?(Object.defineProperties(o,{isFullscreen:{get:function(){return Boolean(e[i.fullscreenElement])}},element:{enumerable:!0,get:function(){return e[i.fullscreenElement]}},enabled:{enumerable:!0,get:function(){return Boolean(e[i.fullscreenEnabled])}}}),t?module.exports=o:window.screenfull=o):t?module.exports=!1:window.screenfull=!1}(),function(e,t){"use strict";"function"==typeof define&&define.amd?define([],function(){return e.Waves=t.call(e),e.Waves}):"object"==typeof exports?module.exports=t.call(e):e.Waves=t.call(e)}("object"==typeof global?global:this,function(){"use strict";var e=e||{},t=document.querySelectorAll.bind(document),n=Object.prototype.toString,i="ontouchstart"in window;function r(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function o(e){var i,o=n.call(e);return"[object String]"===o?t(e):r(e)&&/^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(o)&&e.hasOwnProperty("length")?e:r(i=e)&&i.nodeType>0?[e]:[]}function s(e){var t,n,i,r,o={top:0,left:0},s=e&&e.ownerDocument;return t=s.documentElement,void 0!==e.getBoundingClientRect&&(o=e.getBoundingClientRect()),n=null!==(r=i=s)&&r===r.window?i:9===i.nodeType&&i.defaultView,{top:o.top+n.pageYOffset-t.clientTop,left:o.left+n.pageXOffset-t.clientLeft}}function a(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+":"+e[n]+";");return t}var l={duration:750,delay:200,show:function(e,t,n){if(2===e.button)return!1;t=t||this;var i=document.createElement("div");i.className="waves-ripple waves-rippling",t.appendChild(i);var r=s(t),o=0,u=0;"touches"in e&&e.touches.length?(o=e.touches[0].pageY-r.top,u=e.touches[0].pageX-r.left):(o=e.pageY-r.top,u=e.pageX-r.left),u=u>=0?u:0,o=o>=0?o:0;var c="scale("+t.clientWidth/100*3+")",d="translate(0,0)";n&&(d="translate("+n.x+"px, "+n.y+"px)"),i.setAttribute("data-hold",Date.now()),i.setAttribute("data-x",u),i.setAttribute("data-y",o),i.setAttribute("data-scale",c),i.setAttribute("data-translate",d);var h={top:o+"px",left:u+"px"};i.classList.add("waves-notransition"),i.setAttribute("style",a(h)),i.classList.remove("waves-notransition"),h["-webkit-transform"]=c+" "+d,h["-moz-transform"]=c+" "+d,h["-ms-transform"]=c+" "+d,h["-o-transform"]=c+" "+d,h.transform=c+" "+d,h.opacity="1";var f="mousemove"===e.type?2500:l.duration;h["-webkit-transition-duration"]=f+"ms",h["-moz-transition-duration"]=f+"ms",h["-o-transition-duration"]=f+"ms",h["transition-duration"]=f+"ms",i.setAttribute("style",a(h))},hide:function(e,t){for(var n=(t=t||this).getElementsByClassName("waves-rippling"),r=0,o=n.length;r<o;r++)c(e,t,n[r]);i&&(t.removeEventListener("touchend",l.hide),t.removeEventListener("touchcancel",l.hide)),t.removeEventListener("mouseup",l.hide),t.removeEventListener("mouseleave",l.hide)}},u={input:function(e){var t=e.parentNode;if("i"!==t.tagName.toLowerCase()||!t.classList.contains("waves-effect")){var n=document.createElement("i");n.className=e.className+" waves-input-wrapper",e.className="waves-button-input",t.replaceChild(n,e),n.appendChild(e);var i=window.getComputedStyle(e,null),r=i.color,o=i.backgroundColor;n.setAttribute("style","color:"+r+";background:"+o),e.setAttribute("style","background-color:rgba(0,0,0,0);")}},img:function(e){var t=e.parentNode;if("i"!==t.tagName.toLowerCase()||!t.classList.contains("waves-effect")){var n=document.createElement("i");t.replaceChild(n,e),n.appendChild(e)}}};function c(e,t,n){if(n){n.classList.remove("waves-rippling");var i=n.getAttribute("data-x"),r=n.getAttribute("data-y"),o=n.getAttribute("data-scale"),s=n.getAttribute("data-translate"),u=350-(Date.now()-Number(n.getAttribute("data-hold")));u<0&&(u=0),"mousemove"===e.type&&(u=150);var c="mousemove"===e.type?2500:l.duration;setTimeout(function(){var e={top:r+"px",left:i+"px",opacity:"0","-webkit-transition-duration":c+"ms","-moz-transition-duration":c+"ms","-o-transition-duration":c+"ms","transition-duration":c+"ms","-webkit-transform":o+" "+s,"-moz-transform":o+" "+s,"-ms-transform":o+" "+s,"-o-transform":o+" "+s,transform:o+" "+s};n.setAttribute("style",a(e)),setTimeout(function(){try{t.removeChild(n)}catch(e){return!1}},c)},u)}}var d={touches:0,allowEvent:function(e){var t=!0;return/^(mousedown|mousemove)$/.test(e.type)&&d.touches&&(t=!1),t},registerEvent:function(e){var t=e.type;"touchstart"===t?d.touches+=1:/^(touchend|touchcancel)$/.test(t)&&setTimeout(function(){d.touches&&(d.touches-=1)},500)}};function h(e){var t=function(e){if(!1===d.allowEvent(e))return null;for(var t=null,n=e.target||e.srcElement;n.parentElement;){if(!(n instanceof SVGElement)&&n.classList.contains("waves-effect")){t=n;break}n=n.parentElement}return t}(e);if(null!==t){if(t.disabled||t.getAttribute("disabled")||t.classList.contains("disabled"))return;if(d.registerEvent(e),"touchstart"===e.type&&l.delay){var n=!1,r=setTimeout(function(){r=null,l.show(e,t)},l.delay),o=function(i){r&&(clearTimeout(r),r=null,l.show(e,t)),n||(n=!0,l.hide(i,t)),a()},s=function(e){r&&(clearTimeout(r),r=null),o(e),a()};t.addEventListener("touchmove",s,!1),t.addEventListener("touchend",o,!1),t.addEventListener("touchcancel",o,!1);var a=function(){t.removeEventListener("touchmove",s),t.removeEventListener("touchend",o),t.removeEventListener("touchcancel",o)}}else l.show(e,t),i&&(t.addEventListener("touchend",l.hide,!1),t.addEventListener("touchcancel",l.hide,!1)),t.addEventListener("mouseup",l.hide,!1),t.addEventListener("mouseleave",l.hide,!1)}}return e.init=function(e){var t=document.body;"duration"in(e=e||{})&&(l.duration=e.duration),"delay"in e&&(l.delay=e.delay),i&&(t.addEventListener("touchstart",h,!1),t.addEventListener("touchcancel",d.registerEvent,!1),t.addEventListener("touchend",d.registerEvent,!1)),t.addEventListener("mousedown",h,!1)},e.attach=function(e,t){var i,r;e=o(e),"[object Array]"===n.call(t)&&(t=t.join(" ")),t=t?" "+t:"";for(var s=0,a=e.length;s<a;s++)r=(i=e[s]).tagName.toLowerCase(),-1!==["input","img"].indexOf(r)&&(u[r](i),i=i.parentElement),-1===i.className.indexOf("waves-effect")&&(i.className+=" waves-effect"+t)},e.ripple=function(e,t){var n=(e=o(e)).length;if((t=t||{}).wait=t.wait||0,t.position=t.position||null,n)for(var i,r,a,u={},c=0,d={type:"mousedown",button:1},h=function(e,t){return function(){l.hide(e,t)}};c<n;c++)if(i=e[c],r=t.position||{x:i.clientWidth/2,y:i.clientHeight/2},a=s(i),u.x=a.left+r.x,u.y=a.top+r.y,d.pageX=u.x,d.pageY=u.y,l.show(d,i),t.wait>=0&&null!==t.wait){setTimeout(h({type:"mouseup",button:1},i),t.wait)}},e.calm=function(e){for(var t={type:"mouseup",button:1},n=0,i=(e=o(e)).length;n<i;n++)l.hide(t,e[n])},e.displayEffect=function(t){console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect"),e.init(t)},e});