Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 52.14.223.136
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
oasis /
aiet /
adm /
js /
[ HOME SHELL ]
Name
Size
Permission
Action
MainPageCompressed.js
341.08
KB
-rwxr-xr-x
admin.js
15.25
KB
-rwxr-xr-x
advanced-form-elements.js
5.41
KB
-rwxr-xr-x
compressed.js
440.45
KB
-rwxr-xr-x
control.js
18.43
KB
-rwxr-xr-x
demo.js
3.33
KB
-rwxr-xr-x
forgot-password.js
3.24
KB
-rwxr-xr-x
form_submit.js
1.3
KB
-rwxr-xr-x
helpers.js
576
B
-rwxr-xr-x
kusPhdAdm.js
63.8
KB
-rwxr-xr-x
kusPhdAdm_19082019.js
45.44
KB
-rwxr-xr-x
kusPhdAdm_24092018.js
29.74
KB
-rwxr-xr-x
kusPhdAdm_29122018.js
45.47
KB
-rwxr-xr-x
login.js
478
B
-rwxr-xr-x
script.js
3
B
-rwxr-xr-x
sign-in.js
4.29
KB
-rwxr-xr-x
sign-up.js
6.24
KB
-rwxr-xr-x
upload.js
5.62
KB
-rwxr-xr-x
validate.js
9.29
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : compressed.js
if(function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){var n=[],i=t.document,a=n.slice,o=n.concat,r=n.push,s=n.indexOf,l={},u=l.toString,c=l.hasOwnProperty,d={},h="1.12.4",f=function(t,e){return new f.fn.init(t,e)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,g=/^-ms-/,m=/-([\da-z])/gi,v=function(t,e){return e.toUpperCase()};function y(t){var e=!!t&&"length"in t&&t.length,n=f.type(t);return"function"!==n&&!f.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}f.fn=f.prototype={jquery:h,constructor:f,selector:"",length:0,toArray:function(){return a.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:a.call(this)},pushStack:function(t){var e=f.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return f.each(this,t)},map:function(t){return this.pushStack(f.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:r,sort:n.sort,splice:n.splice},f.extend=f.fn.extend=function(){var t,e,n,i,a,o,r=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof r&&(u=r,r=arguments[s]||{},s++),"object"==typeof r||f.isFunction(r)||(r={}),s===l&&(r=this,s--);s<l;s++)if(null!=(a=arguments[s]))for(i in a)t=r[i],r!==(n=a[i])&&(u&&n&&(f.isPlainObject(n)||(e=f.isArray(n)))?(e?(e=!1,o=t&&f.isArray(t)?t:[]):o=t&&f.isPlainObject(t)?t:{},r[i]=f.extend(u,o,n)):void 0!==n&&(r[i]=n));return r},f.extend({expando:"jQuery"+(h+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===f.type(t)},isArray:Array.isArray||function(t){return"array"===f.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){var e=t&&t.toString();return!f.isArray(t)&&e-parseFloat(e)+1>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==f.type(t)||t.nodeType||f.isWindow(t))return!1;try{if(t.constructor&&!c.call(t,"constructor")&&!c.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(!d.ownFirst)for(e in t)return c.call(t,e);for(e in t);return void 0===e||c.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[u.call(t)]||"object":typeof t},globalEval:function(e){e&&f.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(g,"ms-").replace(m,v)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,i=0;if(y(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(p,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(y(Object(t))?f.merge(n,"string"==typeof t?[t]:t):r.call(n,t)),n},inArray:function(t,e,n){var i;if(e){if(s)return s.call(e,t,n);for(i=e.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,e){for(var n=+e.length,i=0,a=t.length;i<n;)t[a++]=e[i++];if(n!=n)for(;void 0!==e[i];)t[a++]=e[i++];return t.length=a,t},grep:function(t,e,n){for(var i=[],a=0,o=t.length,r=!n;a<o;a++)!e(t[a],a)!==r&&i.push(t[a]);return i},map:function(t,e,n){var i,a,r=0,s=[];if(y(t))for(i=t.length;r<i;r++)null!=(a=e(t[r],r,n))&&s.push(a);else for(r in t)null!=(a=e(t[r],r,n))&&s.push(a);return o.apply([],s)},guid:1,proxy:function(t,e){var n,i,o;if("string"==typeof e&&(o=t[e],e=t,t=o),f.isFunction(t))return n=a.call(arguments,2),(i=function(){return t.apply(e||this,n.concat(a.call(arguments)))}).guid=t.guid=t.guid||f.guid++,i},now:function(){return+new Date},support:d}),"function"==typeof Symbol&&(f.fn[Symbol.iterator]=n[Symbol.iterator]),f.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){l["[object "+e+"]"]=e.toLowerCase()});var b=function(t){var e,n,i,a,o,r,s,l,u,c,d,h,f,p,g,m,v,y,b,x="sizzle"+1*new Date,k=t.document,w=0,S=0,C=ot(),T=ot(),_=ot(),D=function(t,e){return t===e&&(d=!0),0},M=1<<31,A={}.hasOwnProperty,P=[],E=P.pop,I=P.push,O=P.push,F=P.slice,R=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",$="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",B="\\["+L+"*("+$+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+$+"))|)"+L+"*\\]",j=":("+$+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",W=new RegExp(L+"+","g"),H=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),V=new RegExp("^"+L+"*,"+L+"*"),z=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),q=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),Y=new RegExp(j),U=new RegExp("^"+$+"$"),G={ID:new RegExp("^#("+$+")"),CLASS:new RegExp("^\\.("+$+")"),TAG:new RegExp("^("+$+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,tt=/'|\\/g,et=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),nt=function(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},it=function(){h()};try{O.apply(P=F.call(k.childNodes),k.childNodes),P[k.childNodes.length].nodeType}catch(t){O={apply:P.length?function(t,e){I.apply(t,F.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function at(t,e,i,a){var o,s,u,c,d,p,v,y,w=e&&e.ownerDocument,S=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==S&&9!==S&&11!==S)return i;if(!a&&((e?e.ownerDocument||e:k)!==f&&h(e),e=e||f,g)){if(11!==S&&(p=Z.exec(t)))if(o=p[1]){if(9===S){if(!(u=e.getElementById(o)))return i;if(u.id===o)return i.push(u),i}else if(w&&(u=w.getElementById(o))&&b(e,u)&&u.id===o)return i.push(u),i}else{if(p[2])return O.apply(i,e.getElementsByTagName(t)),i;if((o=p[3])&&n.getElementsByClassName&&e.getElementsByClassName)return O.apply(i,e.getElementsByClassName(o)),i}if(n.qsa&&!_[t+" "]&&(!m||!m.test(t))){if(1!==S)w=e,y=t;else if("object"!==e.nodeName.toLowerCase()){for((c=e.getAttribute("id"))?c=c.replace(tt,"\\$&"):e.setAttribute("id",c=x),s=(v=r(t)).length,d=U.test(c)?"#"+c:"[id='"+c+"']";s--;)v[s]=d+" "+gt(v[s]);y=v.join(","),w=J.test(t)&&ft(e.parentNode)||e}if(y)try{return O.apply(i,w.querySelectorAll(y)),i}catch(t){}finally{c===x&&e.removeAttribute("id")}}}return l(t.replace(H,"$1"),e,i,a)}function ot(){var t=[];return function e(n,a){return t.push(n+" ")>i.cacheLength&&delete e[t.shift()],e[n+" "]=a}}function rt(t){return t[x]=!0,t}function st(t){var e=f.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function lt(t,e){for(var n=t.split("|"),a=n.length;a--;)i.attrHandle[n[a]]=e}function ut(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||M)-(~t.sourceIndex||M);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ct(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function dt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function ht(t){return rt(function(e){return e=+e,rt(function(n,i){for(var a,o=t([],n.length,e),r=o.length;r--;)n[a=o[r]]&&(n[a]=!(i[a]=n[a]))})})}function ft(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=at.support={},o=at.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},h=at.setDocument=function(t){var e,a,r=t?t.ownerDocument||t:k;return r!==f&&9===r.nodeType&&r.documentElement?(p=(f=r).documentElement,g=!o(f),(a=f.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",it,!1):a.attachEvent&&a.attachEvent("onunload",it)),n.attributes=st(function(t){return t.className="i",!t.getAttribute("className")}),n.getElementsByTagName=st(function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length}),n.getElementsByClassName=K.test(f.getElementsByClassName),n.getById=st(function(t){return p.appendChild(t).id=x,!f.getElementsByName||!f.getElementsByName(x).length}),n.getById?(i.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n=e.getElementById(t);return n?[n]:[]}},i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}}):(delete i.find.ID,i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),i.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],a=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[a++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},v=[],m=[],(n.qsa=K.test(f.querySelectorAll))&&(st(function(t){p.appendChild(t).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+L+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+L+"*(?:value|"+N+")"),t.querySelectorAll("[id~="+x+"-]").length||m.push("~="),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]")}),st(function(t){var e=f.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+L+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=K.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&st(function(t){n.disconnectedMatch=y.call(t,"div"),y.call(t,"[s!='']:x"),v.push("!=",j)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),e=K.test(p.compareDocumentPosition),b=e||K.test(p.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},D=e?function(t,e){if(t===e)return d=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===i?t===f||t.ownerDocument===k&&b(k,t)?-1:e===f||e.ownerDocument===k&&b(k,e)?1:c?R(c,t)-R(c,e):0:4&i?-1:1)}:function(t,e){if(t===e)return d=!0,0;var n,i=0,a=t.parentNode,o=e.parentNode,r=[t],s=[e];if(!a||!o)return t===f?-1:e===f?1:a?-1:o?1:c?R(c,t)-R(c,e):0;if(a===o)return ut(t,e);for(n=t;n=n.parentNode;)r.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;r[i]===s[i];)i++;return i?ut(r[i],s[i]):r[i]===k?-1:s[i]===k?1:0},f):f},at.matches=function(t,e){return at(t,null,null,e)},at.matchesSelector=function(t,e){if((t.ownerDocument||t)!==f&&h(t),e=e.replace(q,"='$1']"),n.matchesSelector&&g&&!_[e+" "]&&(!v||!v.test(e))&&(!m||!m.test(e)))try{var i=y.call(t,e);if(i||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return at(e,f,null,[t]).length>0},at.contains=function(t,e){return(t.ownerDocument||t)!==f&&h(t),b(t,e)},at.attr=function(t,e){(t.ownerDocument||t)!==f&&h(t);var a=i.attrHandle[e.toLowerCase()],o=a&&A.call(i.attrHandle,e.toLowerCase())?a(t,e,!g):void 0;return void 0!==o?o:n.attributes||!g?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},at.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},at.uniqueSort=function(t){var e,i=[],a=0,o=0;if(d=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(D),d){for(;e=t[o++];)e===t[o]&&(a=i.push(o));for(;a--;)t.splice(i[a],1)}return c=null,t},a=at.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=a(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=a(e);return n},(i=at.selectors={cacheLength:50,createPseudo:rt,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||at.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&at.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return G.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&Y.test(n)&&(e=r(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=C[t+" "];return e||(e=new RegExp("(^|"+L+")"+t+"("+L+"|$)"))&&C(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(i){var a=at.attr(i,t);return null==a?"!="===e:!e||(a+="","="===e?a===n:"!="===e?a!==n:"^="===e?n&&0===a.indexOf(n):"*="===e?n&&a.indexOf(n)>-1:"$="===e?n&&a.slice(-n.length)===n:"~="===e?(" "+a.replace(W," ")+" ").indexOf(n)>-1:"|="===e&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,a){var o="nth"!==t.slice(0,3),r="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===a?function(t){return!!t.parentNode}:function(e,n,l){var u,c,d,h,f,p,g=o!==r?"nextSibling":"previousSibling",m=e.parentNode,v=s&&e.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(m){if(o){for(;g;){for(h=e;h=h[g];)if(s?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[r?m.firstChild:m.lastChild],r&&y){for(b=(f=(u=(c=(d=(h=m)[x]||(h[x]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===w&&u[1])&&u[2],h=f&&m.childNodes[f];h=++f&&h&&h[g]||(b=f=0)||p.pop();)if(1===h.nodeType&&++b&&h===e){c[t]=[w,f,b];break}}else if(y&&(b=f=(u=(c=(d=(h=e)[x]||(h[x]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===w&&u[1]),!1===b)for(;(h=++f&&h&&h[g]||(b=f=0)||p.pop())&&((s?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&((c=(d=h[x]||(h[x]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]=[w,b]),h!==e)););return(b-=a)===i||b%i==0&&b/i>=0}}},PSEUDO:function(t,e){var n,a=i.pseudos[t]||i.setFilters[t.toLowerCase()]||at.error("unsupported pseudo: "+t);return a[x]?a(e):a.length>1?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?rt(function(t,n){for(var i,o=a(t,e),r=o.length;r--;)t[i=R(t,o[r])]=!(n[i]=o[r])}):function(t){return a(t,0,n)}):a}},pseudos:{not:rt(function(t){var e=[],n=[],i=s(t.replace(H,"$1"));return i[x]?rt(function(t,e,n,a){for(var o,r=i(t,null,a,[]),s=t.length;s--;)(o=r[s])&&(t[s]=!(e[s]=o))}):function(t,a,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:rt(function(t){return function(e){return at(t,e).length>0}}),contains:rt(function(t){return t=t.replace(et,nt),function(e){return(e.textContent||e.innerText||a(e)).indexOf(t)>-1}}),lang:rt(function(t){return U.test(t||"")||at.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!i.pseudos.empty(t)},header:function(t){return X.test(t.nodeName)},input:function(t){return Q.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ht(function(){return[0]}),last:ht(function(t,e){return[e-1]}),eq:ht(function(t,e,n){return[n<0?n+e:n]}),even:ht(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:ht(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:ht(function(t,e,n){for(var i=n<0?n+e:n;--i>=0;)t.push(i);return t}),gt:ht(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[e]=ct(e);for(e in{submit:!0,reset:!0})i.pseudos[e]=dt(e);function pt(){}function gt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function mt(t,e,n){var i=e.dir,a=n&&"parentNode"===i,o=S++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,o)}:function(e,n,r){var s,l,u,c=[w,o];if(r){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,r))return!0}else for(;e=e[i];)if(1===e.nodeType||a){if((s=(l=(u=e[x]||(e[x]={}))[e.uniqueID]||(u[e.uniqueID]={}))[i])&&s[0]===w&&s[1]===o)return c[2]=s[2];if(l[i]=c,c[2]=t(e,n,r))return!0}}}function vt(t){return t.length>1?function(e,n,i){for(var a=t.length;a--;)if(!t[a](e,n,i))return!1;return!0}:t[0]}function yt(t,e,n,i,a){for(var o,r=[],s=0,l=t.length,u=null!=e;s<l;s++)(o=t[s])&&(n&&!n(o,i,a)||(r.push(o),u&&e.push(s)));return r}function bt(t,e,n,i,a,o){return i&&!i[x]&&(i=bt(i)),a&&!a[x]&&(a=bt(a,o)),rt(function(o,r,s,l){var u,c,d,h=[],f=[],p=r.length,g=o||function(t,e,n){for(var i=0,a=e.length;i<a;i++)at(t,e[i],n);return n}(e||"*",s.nodeType?[s]:s,[]),m=!t||!o&&e?g:yt(g,h,t,s,l),v=n?a||(o?t:p||i)?[]:r:m;if(n&&n(m,v,s,l),i)for(u=yt(v,f),i(u,[],s,l),c=u.length;c--;)(d=u[c])&&(v[f[c]]=!(m[f[c]]=d));if(o){if(a||t){if(a){for(u=[],c=v.length;c--;)(d=v[c])&&u.push(m[c]=d);a(null,v=[],u,l)}for(c=v.length;c--;)(d=v[c])&&(u=a?R(o,d):h[c])>-1&&(o[u]=!(r[u]=d))}}else v=yt(v===r?v.splice(p,v.length):v),a?a(null,r,v,l):O.apply(r,v)})}function xt(t){for(var e,n,a,o=t.length,r=i.relative[t[0].type],s=r||i.relative[" "],l=r?1:0,c=mt(function(t){return t===e},s,!0),d=mt(function(t){return R(e,t)>-1},s,!0),h=[function(t,n,i){var a=!r&&(i||n!==u)||((e=n).nodeType?c(t,n,i):d(t,n,i));return e=null,a}];l<o;l++)if(n=i.relative[t[l].type])h=[mt(vt(h),n)];else{if((n=i.filter[t[l].type].apply(null,t[l].matches))[x]){for(a=++l;a<o&&!i.relative[t[a].type];a++);return bt(l>1&&vt(h),l>1&>(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(H,"$1"),n,l<a&&xt(t.slice(l,a)),a<o&&xt(t=t.slice(a)),a<o&>(t))}h.push(n)}return vt(h)}return pt.prototype=i.filters=i.pseudos,i.setFilters=new pt,r=at.tokenize=function(t,e){var n,a,o,r,s,l,u,c=T[t+" "];if(c)return e?0:c.slice(0);for(s=t,l=[],u=i.preFilter;s;){for(r in n&&!(a=V.exec(s))||(a&&(s=s.slice(a[0].length)||s),l.push(o=[])),n=!1,(a=z.exec(s))&&(n=a.shift(),o.push({value:n,type:a[0].replace(H," ")}),s=s.slice(n.length)),i.filter)!(a=G[r].exec(s))||u[r]&&!(a=u[r](a))||(n=a.shift(),o.push({value:n,type:r,matches:a}),s=s.slice(n.length));if(!n)break}return e?s.length:s?at.error(t):T(t,l).slice(0)},s=at.compile=function(t,e){var n,a,o,s,l,c,d=[],p=[],m=_[t+" "];if(!m){for(e||(e=r(t)),n=e.length;n--;)(m=xt(e[n]))[x]?d.push(m):p.push(m);(m=_(t,(a=p,s=(o=d).length>0,l=a.length>0,c=function(t,e,n,r,c){var d,p,m,v=0,y="0",b=t&&[],x=[],k=u,S=t||l&&i.find.TAG("*",c),C=w+=null==k?1:Math.random()||.1,T=S.length;for(c&&(u=e===f||e||c);y!==T&&null!=(d=S[y]);y++){if(l&&d){for(p=0,e||d.ownerDocument===f||(h(d),n=!g);m=a[p++];)if(m(d,e||f,n)){r.push(d);break}c&&(w=C)}s&&((d=!m&&d)&&v--,t&&b.push(d))}if(v+=y,s&&y!==v){for(p=0;m=o[p++];)m(b,x,e,n);if(t){if(v>0)for(;y--;)b[y]||x[y]||(x[y]=E.call(r));x=yt(x)}O.apply(r,x),c&&!t&&x.length>0&&v+o.length>1&&at.uniqueSort(r)}return c&&(w=C,u=k),b},s?rt(c):c))).selector=t}return m},l=at.select=function(t,e,a,o){var l,u,c,d,h,f="function"==typeof t&&t,p=!o&&r(t=f.selector||t);if(a=a||[],1===p.length){if((u=p[0]=p[0].slice(0)).length>2&&"ID"===(c=u[0]).type&&n.getById&&9===e.nodeType&&g&&i.relative[u[1].type]){if(!(e=(i.find.ID(c.matches[0].replace(et,nt),e)||[])[0]))return a;f&&(e=e.parentNode),t=t.slice(u.shift().value.length)}for(l=G.needsContext.test(t)?0:u.length;l--&&(c=u[l],!i.relative[d=c.type]);)if((h=i.find[d])&&(o=h(c.matches[0].replace(et,nt),J.test(u[0].type)&&ft(e.parentNode)||e))){if(u.splice(l,1),!(t=o.length&>(u)))return O.apply(a,o),a;break}}return(f||s(t,p))(o,e,!g,a,!e||J.test(t)&&ft(e.parentNode)||e),a},n.sortStable=x.split("").sort(D).join("")===x,n.detectDuplicates=!!d,h(),n.sortDetached=st(function(t){return 1&t.compareDocumentPosition(f.createElement("div"))}),st(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||lt("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),n.attributes&&st(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||lt("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),st(function(t){return null==t.getAttribute("disabled")})||lt(N,function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),at}(t);f.find=b,f.expr=b.selectors,f.expr[":"]=f.expr.pseudos,f.uniqueSort=f.unique=b.uniqueSort,f.text=b.getText,f.isXMLDoc=b.isXML,f.contains=b.contains;var x=function(t,e,n){for(var i=[],a=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(a&&f(t).is(n))break;i.push(t)}return i},k=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},w=f.expr.match.needsContext,S=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,C=/^.[^:#\[\.,]*$/;function T(t,e,n){if(f.isFunction(e))return f.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return f.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(C.test(e))return f.filter(e,t,n);e=f.filter(e,t)}return f.grep(t,function(t){return f.inArray(t,e)>-1!==n})}f.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?f.find.matchesSelector(i,t)?[i]:[]:f.find.matches(t,f.grep(e,function(t){return 1===t.nodeType}))},f.fn.extend({find:function(t){var e,n=[],i=this,a=i.length;if("string"!=typeof t)return this.pushStack(f(t).filter(function(){for(e=0;e<a;e++)if(f.contains(i[e],this))return!0}));for(e=0;e<a;e++)f.find(t,i[e],n);return(n=this.pushStack(a>1?f.unique(n):n)).selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(T(this,t||[],!1))},not:function(t){return this.pushStack(T(this,t||[],!0))},is:function(t){return!!T(this,"string"==typeof t&&w.test(t)?f(t):t||[],!1).length}});var _,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(f.fn.init=function(t,e,n){var a,o;if(!t)return this;if(n=n||_,"string"==typeof t){if(!(a="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:D.exec(t))||!a[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(a[1]){if(e=e instanceof f?e[0]:e,f.merge(this,f.parseHTML(a[1],e&&e.nodeType?e.ownerDocument||e:i,!0)),S.test(a[1])&&f.isPlainObject(e))for(a in e)f.isFunction(this[a])?this[a](e[a]):this.attr(a,e[a]);return this}if((o=i.getElementById(a[2]))&&o.parentNode){if(o.id!==a[2])return _.find(t);this.length=1,this[0]=o}return this.context=i,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):f.isFunction(t)?void 0!==n.ready?n.ready(t):t(f):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),f.makeArray(t,this))}).prototype=f.fn,_=f(i);var M=/^(?:parents|prev(?:Until|All))/,A={children:!0,contents:!0,next:!0,prev:!0};function P(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}f.fn.extend({has:function(t){var e,n=f(t,this),i=n.length;return this.filter(function(){for(e=0;e<i;e++)if(f.contains(this,n[e]))return!0})},closest:function(t,e){for(var n,i=0,a=this.length,o=[],r=w.test(t)||"string"!=typeof t?f(t,e||this.context):0;i<a;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(r?r.index(n)>-1:1===n.nodeType&&f.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?f.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?f.inArray(this[0],f(t)):f.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(f.uniqueSort(f.merge(this.get(),f(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),f.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return x(t,"parentNode")},parentsUntil:function(t,e,n){return x(t,"parentNode",n)},next:function(t){return P(t,"nextSibling")},prev:function(t){return P(t,"previousSibling")},nextAll:function(t){return x(t,"nextSibling")},prevAll:function(t){return x(t,"previousSibling")},nextUntil:function(t,e,n){return x(t,"nextSibling",n)},prevUntil:function(t,e,n){return x(t,"previousSibling",n)},siblings:function(t){return k((t.parentNode||{}).firstChild,t)},children:function(t){return k(t.firstChild)},contents:function(t){return f.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:f.merge([],t.childNodes)}},function(t,e){f.fn[t]=function(n,i){var a=f.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(a=f.filter(i,a)),this.length>1&&(A[t]||(a=f.uniqueSort(a)),M.test(t)&&(a=a.reverse())),this.pushStack(a)}});var E,I,O=/\S+/g;function F(){i.addEventListener?(i.removeEventListener("DOMContentLoaded",R),t.removeEventListener("load",R)):(i.detachEvent("onreadystatechange",R),t.detachEvent("onload",R))}function R(){(i.addEventListener||"load"===t.event.type||"complete"===i.readyState)&&(F(),f.ready())}for(I in f.Callbacks=function(t){var e,n;t="string"==typeof t?(e=t,n={},f.each(e.match(O)||[],function(t,e){n[e]=!0}),n):f.extend({},t);var i,a,o,r,s=[],l=[],u=-1,c=function(){for(r=t.once,o=i=!0;l.length;u=-1)for(a=l.shift();++u<s.length;)!1===s[u].apply(a[0],a[1])&&t.stopOnFalse&&(u=s.length,a=!1);t.memory||(a=!1),i=!1,r&&(s=a?[]:"")},d={add:function(){return s&&(a&&!i&&(u=s.length-1,l.push(a)),function e(n){f.each(n,function(n,i){f.isFunction(i)?t.unique&&d.has(i)||s.push(i):i&&i.length&&"string"!==f.type(i)&&e(i)})}(arguments),a&&!i&&c()),this},remove:function(){return f.each(arguments,function(t,e){for(var n;(n=f.inArray(e,s,n))>-1;)s.splice(n,1),n<=u&&u--}),this},has:function(t){return t?f.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return r=l=[],s=a="",this},disabled:function(){return!s},lock:function(){return r=!0,a||d.disable(),this},locked:function(){return!!r},fireWith:function(t,e){return r||(e=[t,(e=e||[]).slice?e.slice():e],l.push(e),i||c()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!o}};return d},f.extend({Deferred:function(t){var e=[["resolve","done",f.Callbacks("once memory"),"resolved"],["reject","fail",f.Callbacks("once memory"),"rejected"],["notify","progress",f.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var t=arguments;return f.Deferred(function(n){f.each(e,function(e,o){var r=f.isFunction(t[e])&&t[e];a[o[1]](function(){var t=r&&r.apply(this,arguments);t&&f.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===i?n.promise():this,r?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?f.extend(t,i):i}},a={};return i.pipe=i.then,f.each(e,function(t,o){var r=o[2],s=o[3];i[o[1]]=r.add,s&&r.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),a[o[0]]=function(){return a[o[0]+"With"](this===a?i:this,arguments),this},a[o[0]+"With"]=r.fireWith}),i.promise(a),t&&t.call(a,a),a},when:function(t){var e,n,i,o=0,r=a.call(arguments),s=r.length,l=1!==s||t&&f.isFunction(t.promise)?s:0,u=1===l?t:f.Deferred(),c=function(t,n,i){return function(o){n[t]=this,i[t]=arguments.length>1?a.call(arguments):o,i===e?u.notifyWith(n,i):--l||u.resolveWith(n,i)}};if(s>1)for(e=new Array(s),n=new Array(s),i=new Array(s);o<s;o++)r[o]&&f.isFunction(r[o].promise)?r[o].promise().progress(c(o,n,e)).done(c(o,i,r)).fail(u.reject):--l;return l||u.resolveWith(i,r),u.promise()}}),f.fn.ready=function(t){return f.ready.promise().done(t),this},f.extend({isReady:!1,readyWait:1,holdReady:function(t){t?f.readyWait++:f.ready(!0)},ready:function(t){(!0===t?--f.readyWait:f.isReady)||(f.isReady=!0,!0!==t&&--f.readyWait>0||(E.resolveWith(i,[f]),f.fn.triggerHandler&&(f(i).triggerHandler("ready"),f(i).off("ready"))))}}),f.ready.promise=function(e){if(!E)if(E=f.Deferred(),"complete"===i.readyState||"loading"!==i.readyState&&!i.documentElement.doScroll)t.setTimeout(f.ready);else if(i.addEventListener)i.addEventListener("DOMContentLoaded",R),t.addEventListener("load",R);else{i.attachEvent("onreadystatechange",R),t.attachEvent("onload",R);var n=!1;try{n=null==t.frameElement&&i.documentElement}catch(t){}n&&n.doScroll&&function e(){if(!f.isReady){try{n.doScroll("left")}catch(n){return t.setTimeout(e,50)}F(),f.ready()}}()}return E.promise(e)},f.ready.promise(),f(d))break;d.ownFirst="0"===I,d.inlineBlockNeedsLayout=!1,f(function(){var t,e,n,a;(n=i.getElementsByTagName("body")[0])&&n.style&&(e=i.createElement("div"),(a=i.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(a).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",d.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(a))}),function(){var t=i.createElement("div");d.deleteExpando=!0;try{delete t.test}catch(t){d.deleteExpando=!1}t=null}();var N,L=function(t){var e=f.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||!0!==e&&t.getAttribute("classid")===e)},$=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,B=/([A-Z])/g;function j(t,e,n){if(void 0===n&&1===t.nodeType){var i="data-"+e.replace(B,"-$1").toLowerCase();if("string"==typeof(n=t.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:$.test(n)?f.parseJSON(n):n)}catch(t){}f.data(t,e,n)}else n=void 0}return n}function W(t){var e;for(e in t)if(("data"!==e||!f.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function H(t,e,i,a){if(L(t)){var o,r,s=f.expando,l=t.nodeType,u=l?f.cache:t,c=l?t[s]:t[s]&&s;if(c&&u[c]&&(a||u[c].data)||void 0!==i||"string"!=typeof e)return c||(c=l?t[s]=n.pop()||f.guid++:s),u[c]||(u[c]=l?{}:{toJSON:f.noop}),"object"!=typeof e&&"function"!=typeof e||(a?u[c]=f.extend(u[c],e):u[c].data=f.extend(u[c].data,e)),r=u[c],a||(r.data||(r.data={}),r=r.data),void 0!==i&&(r[f.camelCase(e)]=i),"string"==typeof e?null==(o=r[e])&&(o=r[f.camelCase(e)]):o=r,o}}function V(t,e,n){if(L(t)){var i,a,o=t.nodeType,r=o?f.cache:t,s=o?t[f.expando]:f.expando;if(r[s]){if(e&&(i=n?r[s]:r[s].data)){a=(e=f.isArray(e)?e.concat(f.map(e,f.camelCase)):e in i?[e]:(e=f.camelCase(e))in i?[e]:e.split(" ")).length;for(;a--;)delete i[e[a]];if(n?!W(i):!f.isEmptyObject(i))return}(n||(delete r[s].data,W(r[s])))&&(o?f.cleanData([t],!0):d.deleteExpando||r!=r.window?delete r[s]:r[s]=void 0)}}}f.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?f.cache[t[f.expando]]:t[f.expando])&&!W(t)},data:function(t,e,n){return H(t,e,n)},removeData:function(t,e){return V(t,e)},_data:function(t,e,n){return H(t,e,n,!0)},_removeData:function(t,e){return V(t,e,!0)}}),f.fn.extend({data:function(t,e){var n,i,a,o=this[0],r=o&&o.attributes;if(void 0===t){if(this.length&&(a=f.data(o),1===o.nodeType&&!f._data(o,"parsedAttrs"))){for(n=r.length;n--;)r[n]&&0===(i=r[n].name).indexOf("data-")&&j(o,i=f.camelCase(i.slice(5)),a[i]);f._data(o,"parsedAttrs",!0)}return a}return"object"==typeof t?this.each(function(){f.data(this,t)}):arguments.length>1?this.each(function(){f.data(this,t,e)}):o?j(o,t,f.data(o,t)):void 0},removeData:function(t){return this.each(function(){f.removeData(this,t)})}}),f.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=f._data(t,e),n&&(!i||f.isArray(n)?i=f._data(t,e,f.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=f.queue(t,e),i=n.length,a=n.shift(),o=f._queueHooks(t,e);"inprogress"===a&&(a=n.shift(),i--),a&&("fx"===e&&n.unshift("inprogress"),delete o.stop,a.call(t,function(){f.dequeue(t,e)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return f._data(t,n)||f._data(t,n,{empty:f.Callbacks("once memory").add(function(){f._removeData(t,e+"queue"),f._removeData(t,n)})})}}),f.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?f.queue(this[0],t):void 0===e?this:this.each(function(){var n=f.queue(this,t,e);f._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&f.dequeue(this,t)})},dequeue:function(t){return this.each(function(){f.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,a=f.Deferred(),o=this,r=this.length,s=function(){--i||a.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)(n=f._data(o[r],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),a.promise(e)}}),d.shrinkWrapBlocks=function(){return null!=N?N:(N=!1,(e=i.getElementsByTagName("body")[0])&&e.style?(t=i.createElement("div"),(n=i.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(n).appendChild(t),void 0!==t.style.zoom&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(i.createElement("div")).style.width="5px",N=3!==t.offsetWidth),e.removeChild(n),N):void 0);var t,e,n};var z=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,q=new RegExp("^(?:([+-])=|)("+z+")([a-z%]*)$","i"),Y=["Top","Right","Bottom","Left"],U=function(t,e){return t=e||t,"none"===f.css(t,"display")||!f.contains(t.ownerDocument,t)};function G(t,e,n,i){var a,o=1,r=20,s=i?function(){return i.cur()}:function(){return f.css(t,e,"")},l=s(),u=n&&n[3]||(f.cssNumber[e]?"":"px"),c=(f.cssNumber[e]||"px"!==u&&+l)&&q.exec(f.css(t,e));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;do{c/=o=o||".5",f.style(t,e,c+u)}while(o!==(o=s()/l)&&1!==o&&--r)}return n&&(c=+c||+l||0,a=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=a)),a}var Q,X,K,Z=function(t,e,n,i,a,o,r){var s=0,l=t.length,u=null==n;if("object"===f.type(n))for(s in a=!0,n)Z(t,e,s,n[s],!0,o,r);else if(void 0!==i&&(a=!0,f.isFunction(i)||(r=!0),u&&(r?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(f(t),n)})),e))for(;s<l;s++)e(t[s],n,r?i:i.call(t[s],s,e(t[s],n)));return a?t:u?e.call(t):l?e(t[0],n):o},J=/^(?:checkbox|radio)$/i,tt=/<([\w:-]+)/,et=/^$|\/(?:java|ecma)script/i,nt=/^\s+/,it="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function at(t){var e=it.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}Q=i.createElement("div"),X=i.createDocumentFragment(),K=i.createElement("input"),Q.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d.leadingWhitespace=3===Q.firstChild.nodeType,d.tbody=!Q.getElementsByTagName("tbody").length,d.htmlSerialize=!!Q.getElementsByTagName("link").length,d.html5Clone="<:nav></:nav>"!==i.createElement("nav").cloneNode(!0).outerHTML,K.type="checkbox",K.checked=!0,X.appendChild(K),d.appendChecked=K.checked,Q.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!Q.cloneNode(!0).lastChild.defaultValue,X.appendChild(Q),(K=i.createElement("input")).setAttribute("type","radio"),K.setAttribute("checked","checked"),K.setAttribute("name","t"),Q.appendChild(K),d.checkClone=Q.cloneNode(!0).cloneNode(!0).lastChild.checked,d.noCloneEvent=!!Q.addEventListener,Q[f.expando]=1,d.attributes=!Q.getAttribute(f.expando);var ot={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:d.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};function rt(t,e){var n,i,a=0,o=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):void 0;if(!o)for(o=[],n=t.childNodes||t;null!=(i=n[a]);a++)!e||f.nodeName(i,e)?o.push(i):f.merge(o,rt(i,e));return void 0===e||e&&f.nodeName(t,e)?f.merge([t],o):o}function st(t,e){for(var n,i=0;null!=(n=t[i]);i++)f._data(n,"globalEval",!e||f._data(e[i],"globalEval"))}ot.optgroup=ot.option,ot.tbody=ot.tfoot=ot.colgroup=ot.caption=ot.thead,ot.th=ot.td;var lt=/<|&#?\w+;/,ut=/<tbody/i;function ct(t){J.test(t.type)&&(t.defaultChecked=t.checked)}function dt(t,e,n,i,a){for(var o,r,s,l,u,c,h,p=t.length,g=at(e),m=[],v=0;v<p;v++)if((r=t[v])||0===r)if("object"===f.type(r))f.merge(m,r.nodeType?[r]:r);else if(lt.test(r)){for(l=l||g.appendChild(e.createElement("div")),u=(tt.exec(r)||["",""])[1].toLowerCase(),h=ot[u]||ot._default,l.innerHTML=h[1]+f.htmlPrefilter(r)+h[2],o=h[0];o--;)l=l.lastChild;if(!d.leadingWhitespace&&nt.test(r)&&m.push(e.createTextNode(nt.exec(r)[0])),!d.tbody)for(o=(r="table"!==u||ut.test(r)?"<table>"!==h[1]||ut.test(r)?0:l:l.firstChild)&&r.childNodes.length;o--;)f.nodeName(c=r.childNodes[o],"tbody")&&!c.childNodes.length&&r.removeChild(c);for(f.merge(m,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=g.lastChild}else m.push(e.createTextNode(r));for(l&&g.removeChild(l),d.appendChecked||f.grep(rt(m,"input"),ct),v=0;r=m[v++];)if(i&&f.inArray(r,i)>-1)a&&a.push(r);else if(s=f.contains(r.ownerDocument,r),l=rt(g.appendChild(r),"script"),s&&st(l),n)for(o=0;r=l[o++];)et.test(r.type||"")&&n.push(r);return l=null,g}!function(){var e,n,a=i.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})n="on"+e,(d[e]=n in t)||(a.setAttribute(n,"t"),d[e]=!1===a.attributes[n].expando);a=null}();var ht=/^(?:input|select|textarea)$/i,ft=/^key/,pt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,gt=/^(?:focusinfocus|focusoutblur)$/,mt=/^([^.]*)(?:\.(.+)|)/;function vt(){return!0}function yt(){return!1}function bt(){try{return i.activeElement}catch(t){}}function xt(t,e,n,i,a,o){var r,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)xt(t,s,n,i,e[s],o);return t}if(null==i&&null==a?(a=n,i=n=void 0):null==a&&("string"==typeof n?(a=i,i=void 0):(a=i,i=n,n=void 0)),!1===a)a=yt;else if(!a)return t;return 1===o&&(r=a,(a=function(t){return f().off(t),r.apply(this,arguments)}).guid=r.guid||(r.guid=f.guid++)),t.each(function(){f.event.add(this,e,a,i,n)})}f.event={global:{},add:function(t,e,n,i,a){var o,r,s,l,u,c,d,h,p,g,m,v=f._data(t);if(v){for(n.handler&&(n=(l=n).handler,a=l.selector),n.guid||(n.guid=f.guid++),(r=v.events)||(r=v.events={}),(c=v.handle)||((c=v.handle=function(t){return void 0===f||t&&f.event.triggered===t.type?void 0:f.event.dispatch.apply(c.elem,arguments)}).elem=t),s=(e=(e||"").match(O)||[""]).length;s--;)p=m=(o=mt.exec(e[s])||[])[1],g=(o[2]||"").split(".").sort(),p&&(u=f.event.special[p]||{},p=(a?u.delegateType:u.bindType)||p,u=f.event.special[p]||{},d=f.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:a,needsContext:a&&f.expr.match.needsContext.test(a),namespace:g.join(".")},l),(h=r[p])||((h=r[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,i,g,c)||(t.addEventListener?t.addEventListener(p,c,!1):t.attachEvent&&t.attachEvent("on"+p,c))),u.add&&(u.add.call(t,d),d.handler.guid||(d.handler.guid=n.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),f.event.global[p]=!0);t=null}},remove:function(t,e,n,i,a){var o,r,s,l,u,c,d,h,p,g,m,v=f.hasData(t)&&f._data(t);if(v&&(c=v.events)){for(u=(e=(e||"").match(O)||[""]).length;u--;)if(p=m=(s=mt.exec(e[u])||[])[1],g=(s[2]||"").split(".").sort(),p){for(d=f.event.special[p]||{},h=c[p=(i?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=h.length;o--;)r=h[o],!a&&m!==r.origType||n&&n.guid!==r.guid||s&&!s.test(r.namespace)||i&&i!==r.selector&&("**"!==i||!r.selector)||(h.splice(o,1),r.selector&&h.delegateCount--,d.remove&&d.remove.call(t,r));l&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,g,v.handle)||f.removeEvent(t,p,v.handle),delete c[p])}else for(p in c)f.event.remove(t,p+e[u],n,i,!0);f.isEmptyObject(c)&&(delete v.handle,f._removeData(t,"events"))}},trigger:function(e,n,a,o){var r,s,l,u,d,h,p,g=[a||i],m=c.call(e,"type")?e.type:e,v=c.call(e,"namespace")?e.namespace.split("."):[];if(l=h=a=a||i,3!==a.nodeType&&8!==a.nodeType&&!gt.test(m+f.event.triggered)&&(m.indexOf(".")>-1&&(m=(v=m.split(".")).shift(),v.sort()),s=m.indexOf(":")<0&&"on"+m,(e=e[f.expando]?e:new f.Event(m,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=a),n=null==n?[e]:f.makeArray(n,[e]),d=f.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(a,n))){if(!o&&!d.noBubble&&!f.isWindow(a)){for(u=d.delegateType||m,gt.test(u+m)||(l=l.parentNode);l;l=l.parentNode)g.push(l),h=l;h===(a.ownerDocument||i)&&g.push(h.defaultView||h.parentWindow||t)}for(p=0;(l=g[p++])&&!e.isPropagationStopped();)e.type=p>1?u:d.bindType||m,(r=(f._data(l,"events")||{})[e.type]&&f._data(l,"handle"))&&r.apply(l,n),(r=s&&l[s])&&r.apply&&L(l)&&(e.result=r.apply(l,n),!1===e.result&&e.preventDefault());if(e.type=m,!o&&!e.isDefaultPrevented()&&(!d._default||!1===d._default.apply(g.pop(),n))&&L(a)&&s&&a[m]&&!f.isWindow(a)){(h=a[s])&&(a[s]=null),f.event.triggered=m;try{a[m]()}catch(t){}f.event.triggered=void 0,h&&(a[s]=h)}return e.result}},dispatch:function(t){t=f.event.fix(t);var e,n,i,o,r,s,l=a.call(arguments),u=(f._data(this,"events")||{})[t.type]||[],c=f.event.special[t.type]||{};if(l[0]=t,t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(s=f.event.handlers.call(this,t,u),e=0;(o=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(r.namespace)||(t.handleObj=r,t.data=r.data,void 0!==(i=((f.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,l))&&!1===(t.result=i)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,a,o,r=[],s=e.delegateCount,l=t.target;if(s&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(i=[],n=0;n<s;n++)void 0===i[a=(o=e[n]).selector+" "]&&(i[a]=o.needsContext?f(a,this).index(l)>-1:f.find(a,this,null,[l]).length),i[a]&&i.push(o);i.length&&r.push({elem:l,handlers:i})}return s<e.length&&r.push({elem:this,handlers:e.slice(s)}),r},fix:function(t){if(t[f.expando])return t;var e,n,a,o=t.type,r=t,s=this.fixHooks[o];for(s||(this.fixHooks[o]=s=pt.test(o)?this.mouseHooks:ft.test(o)?this.keyHooks:{}),a=s.props?this.props.concat(s.props):this.props,t=new f.Event(r),e=a.length;e--;)t[n=a[e]]=r[n];return t.target||(t.target=r.srcElement||i),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,s.filter?s.filter(t,r):t},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(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,a,o,r=e.button,s=e.fromElement;return null==t.pageX&&null!=e.clientX&&(o=(a=t.target.ownerDocument||i).documentElement,n=a.body,t.pageX=e.clientX+(o&&o.scrollLeft||n&&n.scrollLeft||0)-(o&&o.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(o&&o.scrollTop||n&&n.scrollTop||0)-(o&&o.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&s&&(t.relatedTarget=s===t.target?e.toElement:s),t.which||void 0===r||(t.which=1&r?1:2&r?3:4&r?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==bt()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){if(this===bt()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(f.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(t){return f.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n){var i=f.extend(new f.Event,n,{type:t,isSimulated:!0});f.event.trigger(i,null,e),i.isDefaultPrevented()&&n.preventDefault()}},f.removeEvent=i.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)}:function(t,e,n){var i="on"+e;t.detachEvent&&(void 0===t[i]&&(t[i]=null),t.detachEvent(i,n))},f.Event=function(t,e){if(!(this instanceof f.Event))return new f.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?vt:yt):this.type=t,e&&f.extend(this,e),this.timeStamp=t&&t.timeStamp||f.now(),this[f.expando]=!0},f.Event.prototype={constructor:f.Event,isDefaultPrevented:yt,isPropagationStopped:yt,isImmediatePropagationStopped:yt,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=vt,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=vt,t&&!this.isSimulated&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=vt,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},f.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){f.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,a=t.handleObj;return i&&(i===this||f.contains(this,i))||(t.type=a.origType,n=a.handler.apply(this,arguments),t.type=e),n}}}),d.submit||(f.event.special.submit={setup:function(){if(f.nodeName(this,"form"))return!1;f.event.add(this,"click._submit keypress._submit",function(t){var e=t.target,n=f.nodeName(e,"input")||f.nodeName(e,"button")?f.prop(e,"form"):void 0;n&&!f._data(n,"submit")&&(f.event.add(n,"submit._submit",function(t){t._submitBubble=!0}),f._data(n,"submit",!0))})},postDispatch:function(t){t._submitBubble&&(delete t._submitBubble,this.parentNode&&!t.isTrigger&&f.event.simulate("submit",this.parentNode,t))},teardown:function(){if(f.nodeName(this,"form"))return!1;f.event.remove(this,"._submit")}}),d.change||(f.event.special.change={setup:function(){if(ht.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(f.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._justChanged=!0)}),f.event.add(this,"click._change",function(t){this._justChanged&&!t.isTrigger&&(this._justChanged=!1),f.event.simulate("change",this,t)})),!1;f.event.add(this,"beforeactivate._change",function(t){var e=t.target;ht.test(e.nodeName)&&!f._data(e,"change")&&(f.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||f.event.simulate("change",this.parentNode,t)}),f._data(e,"change",!0))})},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return f.event.remove(this,"._change"),!ht.test(this.nodeName)}}),d.focusin||f.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){f.event.simulate(e,t.target,f.event.fix(t))};f.event.special[e]={setup:function(){var i=this.ownerDocument||this,a=f._data(i,e);a||i.addEventListener(t,n,!0),f._data(i,e,(a||0)+1)},teardown:function(){var i=this.ownerDocument||this,a=f._data(i,e)-1;a?f._data(i,e,a):(i.removeEventListener(t,n,!0),f._removeData(i,e))}}}),f.fn.extend({on:function(t,e,n,i){return xt(this,t,e,n,i)},one:function(t,e,n,i){return xt(this,t,e,n,i,1)},off:function(t,e,n){var i,a;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,f(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(a in t)this.off(a,e,t[a]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=yt),this.each(function(){f.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){f.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return f.event.trigger(t,e,n,!0)}});var kt=/ jQuery\d+="(?:null|\d+)"/g,wt=new RegExp("<(?:"+it+")[\\s/>]","i"),St=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ct=/<script|<style|<link/i,Tt=/checked\s*(?:[^=]|=\s*.checked.)/i,_t=/^true\/(.*)/,Dt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Mt=at(i).appendChild(i.createElement("div"));function At(t,e){return f.nodeName(t,"table")&&f.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function Pt(t){return t.type=(null!==f.find.attr(t,"type"))+"/"+t.type,t}function Et(t){var e=_t.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function It(t,e){if(1===e.nodeType&&f.hasData(t)){var n,i,a,o=f._data(t),r=f._data(e,o),s=o.events;if(s)for(n in delete r.handle,r.events={},s)for(i=0,a=s[n].length;i<a;i++)f.event.add(e,n,s[n][i]);r.data&&(r.data=f.extend({},r.data))}}function Ot(t,e){var n,i,a;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!d.noCloneEvent&&e[f.expando]){for(i in(a=f._data(e)).events)f.removeEvent(e,i,a.handle);e.removeAttribute(f.expando)}"script"===n&&e.text!==t.text?(Pt(e).text=t.text,Et(e)):"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),d.html5Clone&&t.innerHTML&&!f.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&J.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===n?e.defaultSelected=e.selected=t.defaultSelected:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}}function Ft(t,e,n,i){e=o.apply([],e);var a,r,s,l,u,c,h=0,p=t.length,g=p-1,m=e[0],v=f.isFunction(m);if(v||p>1&&"string"==typeof m&&!d.checkClone&&Tt.test(m))return t.each(function(a){var o=t.eq(a);v&&(e[0]=m.call(this,a,o.html())),Ft(o,e,n,i)});if(p&&(a=(c=dt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===c.childNodes.length&&(c=a),a||i)){for(s=(l=f.map(rt(c,"script"),Pt)).length;h<p;h++)r=c,h!==g&&(r=f.clone(r,!0,!0),s&&f.merge(l,rt(r,"script"))),n.call(t[h],r,h);if(s)for(u=l[l.length-1].ownerDocument,f.map(l,Et),h=0;h<s;h++)r=l[h],et.test(r.type||"")&&!f._data(r,"globalEval")&&f.contains(u,r)&&(r.src?f._evalUrl&&f._evalUrl(r.src):f.globalEval((r.text||r.textContent||r.innerHTML||"").replace(Dt,"")));c=a=null}return t}function Rt(t,e,n){for(var i,a=e?f.filter(e,t):t,o=0;null!=(i=a[o]);o++)n||1!==i.nodeType||f.cleanData(rt(i)),i.parentNode&&(n&&f.contains(i.ownerDocument,i)&&st(rt(i,"script")),i.parentNode.removeChild(i));return t}f.extend({htmlPrefilter:function(t){return t.replace(St,"<$1></$2>")},clone:function(t,e,n){var i,a,o,r,s,l=f.contains(t.ownerDocument,t);if(d.html5Clone||f.isXMLDoc(t)||!wt.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(Mt.innerHTML=t.outerHTML,Mt.removeChild(o=Mt.firstChild)),!(d.noCloneEvent&&d.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||f.isXMLDoc(t)))for(i=rt(o),s=rt(t),r=0;null!=(a=s[r]);++r)i[r]&&Ot(a,i[r]);if(e)if(n)for(s=s||rt(t),i=i||rt(o),r=0;null!=(a=s[r]);r++)It(a,i[r]);else It(t,o);return(i=rt(o,"script")).length>0&&st(i,!l&&rt(t,"script")),i=s=a=null,o},cleanData:function(t,e){for(var i,a,o,r,s=0,l=f.expando,u=f.cache,c=d.attributes,h=f.event.special;null!=(i=t[s]);s++)if((e||L(i))&&(r=(o=i[l])&&u[o])){if(r.events)for(a in r.events)h[a]?f.event.remove(i,a):f.removeEvent(i,a,r.handle);u[o]&&(delete u[o],c||void 0===i.removeAttribute?i[l]=void 0:i.removeAttribute(l),n.push(o))}}}),f.fn.extend({domManip:Ft,detach:function(t){return Rt(this,t,!0)},remove:function(t){return Rt(this,t)},text:function(t){return Z(this,function(t){return void 0===t?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(t))},null,t,arguments.length)},append:function(){return Ft(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||At(this,t).appendChild(t)})},prepend:function(){return Ft(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=At(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Ft(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Ft(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&f.cleanData(rt(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&f.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return f.clone(this,t,e)})},html:function(t){return Z(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(kt,""):void 0;if("string"==typeof t&&!Ct.test(t)&&(d.htmlSerialize||!wt.test(t))&&(d.leadingWhitespace||!nt.test(t))&&!ot[(tt.exec(t)||["",""])[1].toLowerCase()]){t=f.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(f.cleanData(rt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Ft(this,arguments,function(e){var n=this.parentNode;f.inArray(this,t)<0&&(f.cleanData(rt(this)),n&&n.replaceChild(e,this))},t)}}),f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){f.fn[t]=function(t){for(var n,i=0,a=[],o=f(t),s=o.length-1;i<=s;i++)n=i===s?this:this.clone(!0),f(o[i])[e](n),r.apply(a,n.get());return this.pushStack(a)}});var Nt,Lt={HTML:"block",BODY:"block"};function $t(t,e){var n=f(e.createElement(t)).appendTo(e.body),i=f.css(n[0],"display");return n.detach(),i}function Bt(t){var e=i,n=Lt[t];return n||("none"!==(n=$t(t,e))&&n||((e=((Nt=(Nt||f("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentWindow||Nt[0].contentDocument).document).write(),e.close(),n=$t(t,e),Nt.detach()),Lt[t]=n),n}var jt=/^margin/,Wt=new RegExp("^("+z+")(?!px)[a-z%]+$","i"),Ht=function(t,e,n,i){var a,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in a=n.apply(t,i||[]),e)t.style[o]=r[o];return a},Vt=i.documentElement;!function(){var e,n,a,o,r,s,l=i.createElement("div"),u=i.createElement("div");function c(){var c,d,h=i.documentElement;h.appendChild(l),u.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",e=a=s=!1,n=r=!0,t.getComputedStyle&&(d=t.getComputedStyle(u),e="1%"!==(d||{}).top,s="2px"===(d||{}).marginLeft,a="4px"===(d||{width:"4px"}).width,u.style.marginRight="50%",n="4px"===(d||{marginRight:"4px"}).marginRight,(c=u.appendChild(i.createElement("div"))).style.cssText=u.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",u.style.width="1px",r=!parseFloat((t.getComputedStyle(c)||{}).marginRight),u.removeChild(c)),u.style.display="none",(o=0===u.getClientRects().length)&&(u.style.display="",u.innerHTML="<table><tr><td></td><td>t</td></tr></table>",u.childNodes[0].style.borderCollapse="separate",(c=u.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(o=0===c[0].offsetHeight)&&(c[0].style.display="",c[1].style.display="none",o=0===c[0].offsetHeight)),h.removeChild(l)}u.style&&(u.style.cssText="float:left;opacity:.5",d.opacity="0.5"===u.style.opacity,d.cssFloat=!!u.style.cssFloat,u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===u.style.backgroundClip,(l=i.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",u.innerHTML="",l.appendChild(u),d.boxSizing=""===u.style.boxSizing||""===u.style.MozBoxSizing||""===u.style.WebkitBoxSizing,f.extend(d,{reliableHiddenOffsets:function(){return null==e&&c(),o},boxSizingReliable:function(){return null==e&&c(),a},pixelMarginRight:function(){return null==e&&c(),n},pixelPosition:function(){return null==e&&c(),e},reliableMarginRight:function(){return null==e&&c(),r},reliableMarginLeft:function(){return null==e&&c(),s}}))}();var zt,qt,Yt=/^(top|right|bottom|left)$/;function Ut(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}t.getComputedStyle?(zt=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},qt=function(t,e,n){var i,a,o,r,s=t.style;return""!==(r=(n=n||zt(t))?n.getPropertyValue(e)||n[e]:void 0)&&void 0!==r||f.contains(t.ownerDocument,t)||(r=f.style(t,e)),n&&!d.pixelMarginRight()&&Wt.test(r)&&jt.test(e)&&(i=s.width,a=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=r,r=n.width,s.width=i,s.minWidth=a,s.maxWidth=o),void 0===r?r:r+""}):Vt.currentStyle&&(zt=function(t){return t.currentStyle},qt=function(t,e,n){var i,a,o,r,s=t.style;return null==(r=(n=n||zt(t))?n[e]:void 0)&&s&&s[e]&&(r=s[e]),Wt.test(r)&&!Yt.test(e)&&(i=s.left,(o=(a=t.runtimeStyle)&&a.left)&&(a.left=t.currentStyle.left),s.left="fontSize"===e?"1em":r,r=s.pixelLeft+"px",s.left=i,o&&(a.left=o)),void 0===r?r:r+""||"auto"});var Gt=/alpha\([^)]*\)/i,Qt=/opacity\s*=\s*([^)]*)/i,Xt=/^(none|table(?!-c[ea]).+)/,Kt=new RegExp("^("+z+")(.*)$","i"),Zt={position:"absolute",visibility:"hidden",display:"block"},Jt={letterSpacing:"0",fontWeight:"400"},te=["Webkit","O","Moz","ms"],ee=i.createElement("div").style;function ne(t){if(t in ee)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=te.length;n--;)if((t=te[n]+e)in ee)return t}function ie(t,e){for(var n,i,a,o=[],r=0,s=t.length;r<s;r++)(i=t[r]).style&&(o[r]=f._data(i,"olddisplay"),n=i.style.display,e?(o[r]||"none"!==n||(i.style.display=""),""===i.style.display&&U(i)&&(o[r]=f._data(i,"olddisplay",Bt(i.nodeName)))):(a=U(i),(n&&"none"!==n||!a)&&f._data(i,"olddisplay",a?n:f.css(i,"display"))));for(r=0;r<s;r++)(i=t[r]).style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?o[r]||"":"none"));return t}function ae(t,e,n){var i=Kt.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):e}function oe(t,e,n,i,a){for(var o=n===(i?"border":"content")?4:"width"===e?1:0,r=0;o<4;o+=2)"margin"===n&&(r+=f.css(t,n+Y[o],!0,a)),i?("content"===n&&(r-=f.css(t,"padding"+Y[o],!0,a)),"margin"!==n&&(r-=f.css(t,"border"+Y[o]+"Width",!0,a))):(r+=f.css(t,"padding"+Y[o],!0,a),"padding"!==n&&(r+=f.css(t,"border"+Y[o]+"Width",!0,a)));return r}function re(t,e,n){var i=!0,a="width"===e?t.offsetWidth:t.offsetHeight,o=zt(t),r=d.boxSizing&&"border-box"===f.css(t,"boxSizing",!1,o);if(a<=0||null==a){if(((a=qt(t,e,o))<0||null==a)&&(a=t.style[e]),Wt.test(a))return a;i=r&&(d.boxSizingReliable()||a===t.style[e]),a=parseFloat(a)||0}return a+oe(t,e,n||(r?"border":"content"),i,o)+"px"}function se(t,e,n,i,a){return new se.prototype.init(t,e,n,i,a)}f.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=qt(t,"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:d.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var a,o,r,s=f.camelCase(e),l=t.style;if(e=f.cssProps[s]||(f.cssProps[s]=ne(s)||s),r=f.cssHooks[e]||f.cssHooks[s],void 0===n)return r&&"get"in r&&void 0!==(a=r.get(t,!1,i))?a:l[e];if("string"===(o=typeof n)&&(a=q.exec(n))&&a[1]&&(n=G(t,e,a),o="number"),null!=n&&n==n&&("number"===o&&(n+=a&&a[3]||(f.cssNumber[s]?"":"px")),d.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),!(r&&"set"in r&&void 0===(n=r.set(t,n,i)))))try{l[e]=n}catch(t){}}},css:function(t,e,n,i){var a,o,r,s=f.camelCase(e);return e=f.cssProps[s]||(f.cssProps[s]=ne(s)||s),(r=f.cssHooks[e]||f.cssHooks[s])&&"get"in r&&(o=r.get(t,!0,n)),void 0===o&&(o=qt(t,e,i)),"normal"===o&&e in Jt&&(o=Jt[e]),""===n||n?(a=parseFloat(o),!0===n||isFinite(a)?a||0:o):o}}),f.each(["height","width"],function(t,e){f.cssHooks[e]={get:function(t,n,i){if(n)return Xt.test(f.css(t,"display"))&&0===t.offsetWidth?Ht(t,Zt,function(){return re(t,e,i)}):re(t,e,i)},set:function(t,n,i){var a=i&&zt(t);return ae(0,n,i?oe(t,e,i,d.boxSizing&&"border-box"===f.css(t,"boxSizing",!1,a),a):0)}}}),d.opacity||(f.cssHooks.opacity={get:function(t,e){return Qt.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,i=t.currentStyle,a=f.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=i&&i.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===f.trim(o.replace(Gt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||i&&!i.filter)||(n.filter=Gt.test(o)?o.replace(Gt,a):o+" "+a)}}),f.cssHooks.marginRight=Ut(d.reliableMarginRight,function(t,e){if(e)return Ht(t,{display:"inline-block"},qt,[t,"marginRight"])}),f.cssHooks.marginLeft=Ut(d.reliableMarginLeft,function(t,e){if(e)return(parseFloat(qt(t,"marginLeft"))||(f.contains(t.ownerDocument,t)?t.getBoundingClientRect().left-Ht(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}):0))+"px"}),f.each({margin:"",padding:"",border:"Width"},function(t,e){f.cssHooks[t+e]={expand:function(n){for(var i=0,a={},o="string"==typeof n?n.split(" "):[n];i<4;i++)a[t+Y[i]+e]=o[i]||o[i-2]||o[0];return a}},jt.test(t)||(f.cssHooks[t+e].set=ae)}),f.fn.extend({css:function(t,e){return Z(this,function(t,e,n){var i,a,o={},r=0;if(f.isArray(e)){for(i=zt(t),a=e.length;r<a;r++)o[e[r]]=f.css(t,e[r],!1,i);return o}return void 0!==n?f.style(t,e,n):f.css(t,e)},t,e,arguments.length>1)},show:function(){return ie(this,!0)},hide:function(){return ie(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){U(this)?f(this).show():f(this).hide()})}}),f.Tween=se,se.prototype={constructor:se,init:function(t,e,n,i,a,o){this.elem=t,this.prop=n,this.easing=a||f.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(f.cssNumber[n]?"":"px")},cur:function(){var t=se.propHooks[this.prop];return t&&t.get?t.get(this):se.propHooks._default.get(this)},run:function(t){var e,n=se.propHooks[this.prop];return this.options.duration?this.pos=e=f.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):se.propHooks._default.set(this),this}},se.prototype.init.prototype=se.prototype,se.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=f.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){f.fx.step[t.prop]?f.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[f.cssProps[t.prop]]&&!f.cssHooks[t.prop]?t.elem[t.prop]=t.now:f.style(t.elem,t.prop,t.now+t.unit)}}},se.propHooks.scrollTop=se.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},f.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},f.fx=se.prototype.init,f.fx.step={};var le,ue,ce,de,he,fe,pe,ge=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ve(){return t.setTimeout(function(){le=void 0}),le=f.now()}function ye(t,e){var n,i={height:t},a=0;for(e=e?1:0;a<4;a+=2-e)i["margin"+(n=Y[a])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function be(t,e,n){for(var i,a=(xe.tweeners[e]||[]).concat(xe.tweeners["*"]),o=0,r=a.length;o<r;o++)if(i=a[o].call(n,e,t))return i}function xe(t,e,n){var i,a,o=0,r=xe.prefilters.length,s=f.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var e=le||ve(),n=Math.max(0,u.startTime+u.duration-e),i=1-(n/u.duration||0),o=0,r=u.tweens.length;o<r;o++)u.tweens[o].run(i);return s.notifyWith(t,[u,i,n]),i<1&&r?n:(s.resolveWith(t,[u]),!1)},u=s.promise({elem:t,props:f.extend({},e),opts:f.extend(!0,{specialEasing:{},easing:f.easing._default},n),originalProperties:e,originalOptions:n,startTime:le||ve(),duration:n.duration,tweens:[],createTween:function(e,n){var i=f.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(a)return this;for(a=!0;n<i;n++)u.tweens[n].run(1);return e?(s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u,e])):s.rejectWith(t,[u,e]),this}}),c=u.props;for(!function(t,e){var n,i,a,o,r;for(n in t)if(a=e[i=f.camelCase(n)],o=t[n],f.isArray(o)&&(a=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(r=f.cssHooks[i])&&"expand"in r)for(n in o=r.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=a);else e[i]=a}(c,u.opts.specialEasing);o<r;o++)if(i=xe.prefilters[o].call(u,t,c,u.opts))return f.isFunction(i.stop)&&(f._queueHooks(u.elem,u.opts.queue).stop=f.proxy(i.stop,i)),i;return f.map(c,be,u),f.isFunction(u.opts.start)&&u.opts.start.call(t,u),f.fx.timer(f.extend(l,{elem:t,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)}f.Animation=f.extend(xe,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return G(n.elem,t,q.exec(e),n),n}]},tweener:function(t,e){f.isFunction(t)?(e=t,t=["*"]):t=t.match(O);for(var n,i=0,a=t.length;i<a;i++)n=t[i],xe.tweeners[n]=xe.tweeners[n]||[],xe.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,a,o,r,s,l,u,c=this,h={},p=t.style,g=t.nodeType&&U(t),m=f._data(t,"fxshow");for(i in n.queue||(null==(s=f._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,f.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(u=f.css(t,"display"))?f._data(t,"olddisplay")||Bt(t.nodeName):u)&&"none"===f.css(t,"float")&&(d.inlineBlockNeedsLayout&&"inline"!==Bt(t.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.shrinkWrapBlocks()||c.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),e)if(a=e[i],ge.exec(a)){if(delete e[i],o=o||"toggle"===a,a===(g?"hide":"show")){if("show"!==a||!m||void 0===m[i])continue;g=!0}h[i]=m&&m[i]||f.style(t,i)}else u=void 0;if(f.isEmptyObject(h))"inline"===("none"===u?Bt(t.nodeName):u)&&(p.display=u);else for(i in m?"hidden"in m&&(g=m.hidden):m=f._data(t,"fxshow",{}),o&&(m.hidden=!g),g?f(t).show():c.done(function(){f(t).hide()}),c.done(function(){var e;for(e in f._removeData(t,"fxshow"),h)f.style(t,e,h[e])}),h)r=be(g?m[i]:0,i,c),i in m||(m[i]=r.start,g&&(r.end=r.start,r.start="width"===i||"height"===i?1:0))}],prefilter:function(t,e){e?xe.prefilters.unshift(t):xe.prefilters.push(t)}}),f.speed=function(t,e,n){var i=t&&"object"==typeof t?f.extend({},t):{complete:n||!n&&e||f.isFunction(t)&&t,duration:t,easing:n&&e||e&&!f.isFunction(e)&&e};return i.duration=f.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in f.fx.speeds?f.fx.speeds[i.duration]:f.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){f.isFunction(i.old)&&i.old.call(this),i.queue&&f.dequeue(this,i.queue)},i},f.fn.extend({fadeTo:function(t,e,n,i){return this.filter(U).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var a=f.isEmptyObject(t),o=f.speed(e,n,i),r=function(){var e=xe(this,f.extend({},t),o);(a||f._data(this,"finish"))&&e.stop(!0)};return r.finish=r,a||!1===o.queue?this.each(r):this.queue(o.queue,r)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,a=null!=t&&t+"queueHooks",o=f.timers,r=f._data(this);if(a)r[a]&&r[a].stop&&i(r[a]);else for(a in r)r[a]&&r[a].stop&&me.test(a)&&i(r[a]);for(a=o.length;a--;)o[a].elem!==this||null!=t&&o[a].queue!==t||(o[a].anim.stop(n),e=!1,o.splice(a,1));!e&&n||f.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=f._data(this),i=n[t+"queue"],a=n[t+"queueHooks"],o=f.timers,r=i?i.length:0;for(n.finish=!0,f.queue(this,t,[]),a&&a.stop&&a.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<r;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),f.each(["toggle","show","hide"],function(t,e){var n=f.fn[e];f.fn[e]=function(t,i,a){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ye(e,!0),t,i,a)}}),f.each({slideDown:ye("show"),slideUp:ye("hide"),slideToggle:ye("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){f.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),f.timers=[],f.fx.tick=function(){var t,e=f.timers,n=0;for(le=f.now();n<e.length;n++)(t=e[n])()||e[n]!==t||e.splice(n--,1);e.length||f.fx.stop(),le=void 0},f.fx.timer=function(t){f.timers.push(t),t()?f.fx.start():f.timers.pop()},f.fx.interval=13,f.fx.start=function(){ue||(ue=t.setInterval(f.fx.tick,f.fx.interval))},f.fx.stop=function(){t.clearInterval(ue),ue=null},f.fx.speeds={slow:600,fast:200,_default:400},f.fn.delay=function(e,n){return e=f.fx&&f.fx.speeds[e]||e,n=n||"fx",this.queue(n,function(n,i){var a=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(a)}})},de=i.createElement("input"),he=i.createElement("div"),fe=i.createElement("select"),pe=fe.appendChild(i.createElement("option")),(he=i.createElement("div")).setAttribute("className","t"),he.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ce=he.getElementsByTagName("a")[0],de.setAttribute("type","checkbox"),he.appendChild(de),(ce=he.getElementsByTagName("a")[0]).style.cssText="top:1px",d.getSetAttribute="t"!==he.className,d.style=/top/.test(ce.getAttribute("style")),d.hrefNormalized="/a"===ce.getAttribute("href"),d.checkOn=!!de.value,d.optSelected=pe.selected,d.enctype=!!i.createElement("form").enctype,fe.disabled=!0,d.optDisabled=!pe.disabled,(de=i.createElement("input")).setAttribute("value",""),d.input=""===de.getAttribute("value"),de.value="t",de.setAttribute("type","radio"),d.radioValue="t"===de.value;var ke=/\r/g,we=/[\x20\t\r\n\f]+/g;f.fn.extend({val:function(t){var e,n,i,a=this[0];return arguments.length?(i=f.isFunction(t),this.each(function(n){var a;1===this.nodeType&&(null==(a=i?t.call(this,n,f(this).val()):t)?a="":"number"==typeof a?a+="":f.isArray(a)&&(a=f.map(a,function(t){return null==t?"":t+""})),(e=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,a,"value")||(this.value=a))})):a?(e=f.valHooks[a.type]||f.valHooks[a.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(a,"value"))?n:"string"==typeof(n=a.value)?n.replace(ke,""):null==n?"":n:void 0}}),f.extend({valHooks:{option:{get:function(t){var e=f.find.attr(t,"value");return null!=e?e:f.trim(f.text(t)).replace(we," ")}},select:{get:function(t){for(var e,n,i=t.options,a=t.selectedIndex,o="select-one"===t.type||a<0,r=o?null:[],s=o?a+1:i.length,l=a<0?s:o?a:0;l<s;l++)if(((n=i[l]).selected||l===a)&&(d.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!f.nodeName(n.parentNode,"optgroup"))){if(e=f(n).val(),o)return e;r.push(e)}return r},set:function(t,e){for(var n,i,a=t.options,o=f.makeArray(e),r=a.length;r--;)if(i=a[r],f.inArray(f.valHooks.option.get(i),o)>-1)try{i.selected=n=!0}catch(t){i.scrollHeight}else i.selected=!1;return n||(t.selectedIndex=-1),a}}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]={set:function(t,e){if(f.isArray(e))return t.checked=f.inArray(f(t).val(),e)>-1}},d.checkOn||(f.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Se,Ce,Te=f.expr.attrHandle,_e=/^(?:checked|selected)$/i,De=d.getSetAttribute,Me=d.input;f.fn.extend({attr:function(t,e){return Z(this,f.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){f.removeAttr(this,t)})}}),f.extend({attr:function(t,e,n){var i,a,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?f.prop(t,e,n):(1===o&&f.isXMLDoc(t)||(e=e.toLowerCase(),a=f.attrHooks[e]||(f.expr.match.bool.test(e)?Ce:Se)),void 0!==n?null===n?void f.removeAttr(t,e):a&&"set"in a&&void 0!==(i=a.set(t,n,e))?i:(t.setAttribute(e,n+""),n):a&&"get"in a&&null!==(i=a.get(t,e))?i:null==(i=f.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!d.radioValue&&"radio"===e&&f.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i,a=0,o=e&&e.match(O);if(o&&1===t.nodeType)for(;n=o[a++];)i=f.propFix[n]||n,f.expr.match.bool.test(n)?Me&&De||!_e.test(n)?t[i]=!1:t[f.camelCase("default-"+n)]=t[i]=!1:f.attr(t,n,""),t.removeAttribute(De?n:i)}}),Ce={set:function(t,e,n){return!1===e?f.removeAttr(t,n):Me&&De||!_e.test(n)?t.setAttribute(!De&&f.propFix[n]||n,n):t[f.camelCase("default-"+n)]=t[n]=!0,n}},f.each(f.expr.match.bool.source.match(/\w+/g),function(t,e){var n=Te[e]||f.find.attr;Me&&De||!_e.test(e)?Te[e]=function(t,e,i){var a,o;return i||(o=Te[e],Te[e]=a,a=null!=n(t,e,i)?e.toLowerCase():null,Te[e]=o),a}:Te[e]=function(t,e,n){if(!n)return t[f.camelCase("default-"+e)]?e.toLowerCase():null}}),Me&&De||(f.attrHooks.value={set:function(t,e,n){if(!f.nodeName(t,"input"))return Se&&Se.set(t,e,n);t.defaultValue=e}}),De||(Se={set:function(t,e,n){var i=t.getAttributeNode(n);if(i||t.setAttributeNode(i=t.ownerDocument.createAttribute(n)),i.value=e+="","value"===n||e===t.getAttribute(n))return e}},Te.id=Te.name=Te.coords=function(t,e,n){var i;if(!n)return(i=t.getAttributeNode(e))&&""!==i.value?i.value:null},f.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);if(n&&n.specified)return n.value},set:Se.set},f.attrHooks.contenteditable={set:function(t,e,n){Se.set(t,""!==e&&e,n)}},f.each(["width","height"],function(t,e){f.attrHooks[e]={set:function(t,n){if(""===n)return t.setAttribute(e,"auto"),n}}})),d.style||(f.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var Ae=/^(?:input|select|textarea|button|object)$/i,Pe=/^(?:a|area)$/i;f.fn.extend({prop:function(t,e){return Z(this,f.prop,t,e,arguments.length>1)},removeProp:function(t){return t=f.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(t){}})}}),f.extend({prop:function(t,e,n){var i,a,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&f.isXMLDoc(t)||(e=f.propFix[e]||e,a=f.propHooks[e]),void 0!==n?a&&"set"in a&&void 0!==(i=a.set(t,n,e))?i:t[e]=n:a&&"get"in a&&null!==(i=a.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=f.find.attr(t,"tabindex");return e?parseInt(e,10):Ae.test(t.nodeName)||Pe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),d.hrefNormalized||f.each(["href","src"],function(t,e){f.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),d.optSelected||(f.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),f.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){f.propFix[this.toLowerCase()]=this}),d.enctype||(f.propFix.enctype="encoding");var Ee=/[\t\r\n\f]/g;function Ie(t){return f.attr(t,"class")||""}f.fn.extend({addClass:function(t){var e,n,i,a,o,r,s,l=0;if(f.isFunction(t))return this.each(function(e){f(this).addClass(t.call(this,e,Ie(this)))});if("string"==typeof t&&t)for(e=t.match(O)||[];n=this[l++];)if(a=Ie(n),i=1===n.nodeType&&(" "+a+" ").replace(Ee," ")){for(r=0;o=e[r++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");a!==(s=f.trim(i))&&f.attr(n,"class",s)}return this},removeClass:function(t){var e,n,i,a,o,r,s,l=0;if(f.isFunction(t))return this.each(function(e){f(this).removeClass(t.call(this,e,Ie(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(O)||[];n=this[l++];)if(a=Ie(n),i=1===n.nodeType&&(" "+a+" ").replace(Ee," ")){for(r=0;o=e[r++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");a!==(s=f.trim(i))&&f.attr(n,"class",s)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):f.isFunction(t)?this.each(function(n){f(this).toggleClass(t.call(this,n,Ie(this),e),e)}):this.each(function(){var e,i,a,o;if("string"===n)for(i=0,a=f(this),o=t.match(O)||[];e=o[i++];)a.hasClass(e)?a.removeClass(e):a.addClass(e);else void 0!==t&&"boolean"!==n||((e=Ie(this))&&f._data(this,"__className__",e),f.attr(this,"class",e||!1===t?"":f._data(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+Ie(n)+" ").replace(Ee," ").indexOf(e)>-1)return!0;return!1}}),f.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(t,e){f.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),f.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}});var Oe=t.location,Fe=f.now(),Re=/\?/,Ne=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;f.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var n,i=null,a=f.trim(e+"");return a&&!f.trim(a.replace(Ne,function(t,e,a,o){return n&&e&&(i=0),0===i?t:(n=a||e,i+=!o-!a,"")}))?Function("return "+a)():f.error("Invalid JSON: "+e)},f.parseXML=function(e){var n,i;if(!e||"string"!=typeof e)return null;try{t.DOMParser?(i=new t.DOMParser,n=i.parseFromString(e,"text/xml")):((n=new t.ActiveXObject("Microsoft.XMLDOM")).async="false",n.loadXML(e))}catch(t){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||f.error("Invalid XML: "+e),n};var Le=/#.*$/,$e=/([?&])_=[^&]*/,Be=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,je=/^(?:GET|HEAD)$/,We=/^\/\//,He=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ve={},ze={},qe="*/".concat("*"),Ye=Oe.href,Ue=He.exec(Ye.toLowerCase())||[];function Ge(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,a=0,o=e.toLowerCase().match(O)||[];if(f.isFunction(n))for(;i=o[a++];)"+"===i.charAt(0)?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Qe(t,e,n,i){var a={},o=t===ze;function r(s){var l;return a[s]=!0,f.each(t[s]||[],function(t,s){var u=s(e,n,i);return"string"!=typeof u||o||a[u]?o?!(l=u):void 0:(e.dataTypes.unshift(u),r(u),!1)}),l}return r(e.dataTypes[0])||!a["*"]&&r("*")}function Xe(t,e){var n,i,a=f.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((a[i]?t:n||(n={}))[i]=e[i]);return n&&f.extend(!0,t,n),t}f.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ye,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ue[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qe,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":f.parseJSON,"text xml":f.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Xe(Xe(t,f.ajaxSettings),e):Xe(f.ajaxSettings,t)},ajaxPrefilter:Ge(Ve),ajaxTransport:Ge(ze),ajax:function(e,n){"object"==typeof e&&(n=e,e=void 0),n=n||{};var i,a,o,r,s,l,u,c,d=f.ajaxSetup({},n),h=d.context||d,p=d.context&&(h.nodeType||h.jquery)?f(h):f.event,g=f.Deferred(),m=f.Callbacks("once memory"),v=d.statusCode||{},y={},b={},x=0,k="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!c)for(c={};e=Be.exec(r);)c[e[1].toLowerCase()]=e[2];e=c[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?r:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=b[n]=b[n]||t,y[t]=e),this},overrideMimeType:function(t){return x||(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(x<2)for(e in t)v[e]=[v[e],t[e]];else w.always(t[w.status]);return this},abort:function(t){var e=t||k;return u&&u.abort(e),S(0,e),this}};if(g.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,d.url=((e||d.url||Ye)+"").replace(Le,"").replace(We,Ue[1]+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=f.trim(d.dataType||"*").toLowerCase().match(O)||[""],null==d.crossDomain&&(i=He.exec(d.url.toLowerCase()),d.crossDomain=!(!i||i[1]===Ue[1]&&i[2]===Ue[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(Ue[3]||("http:"===Ue[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=f.param(d.data,d.traditional)),Qe(Ve,d,n,w),2===x)return w;for(a in(l=f.event&&d.global)&&0==f.active++&&f.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!je.test(d.type),o=d.url,d.hasContent||(d.data&&(o=d.url+=(Re.test(o)?"&":"?")+d.data,delete d.data),!1===d.cache&&(d.url=$e.test(o)?o.replace($e,"$1_="+Fe++):o+(Re.test(o)?"&":"?")+"_="+Fe++)),d.ifModified&&(f.lastModified[o]&&w.setRequestHeader("If-Modified-Since",f.lastModified[o]),f.etag[o]&&w.setRequestHeader("If-None-Match",f.etag[o])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&w.setRequestHeader("Content-Type",d.contentType),w.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+qe+"; q=0.01":""):d.accepts["*"]),d.headers)w.setRequestHeader(a,d.headers[a]);if(d.beforeSend&&(!1===d.beforeSend.call(h,w,d)||2===x))return w.abort();for(a in k="abort",{success:1,error:1,complete:1})w[a](d[a]);if(u=Qe(ze,d,n,w)){if(w.readyState=1,l&&p.trigger("ajaxSend",[w,d]),2===x)return w;d.async&&d.timeout>0&&(s=t.setTimeout(function(){w.abort("timeout")},d.timeout));try{x=1,u.send(y,S)}catch(t){if(!(x<2))throw t;S(-1,t)}}else S(-1,"No Transport");function S(e,n,i,a){var c,y,b,k,S,C=n;2!==x&&(x=2,s&&t.clearTimeout(s),u=void 0,r=a||"",w.readyState=e>0?4:0,c=e>=200&&e<300||304===e,i&&(k=function(t,e,n){for(var i,a,o,r,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===a&&(a=t.mimeType||e.getResponseHeader("Content-Type"));if(a)for(r in s)if(s[r]&&s[r].test(a)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}i||(i=r)}o=o||i}if(o)return o!==l[0]&&l.unshift(o),n[o]}(d,w,i)),k=function(t,e,n,i){var a,o,r,s,l,u={},c=t.dataTypes.slice();if(c[1])for(r in t.converters)u[r.toLowerCase()]=t.converters[r];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(r=u[l+" "+o]||u["* "+o]))for(a in u)if((s=a.split(" "))[1]===o&&(r=u[l+" "+s[0]]||u["* "+s[0]])){!0===r?r=u[a]:!0!==u[a]&&(o=s[0],c.unshift(s[1]));break}if(!0!==r)if(r&&t.throws)e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(d,k,w,c),c?(d.ifModified&&((S=w.getResponseHeader("Last-Modified"))&&(f.lastModified[o]=S),(S=w.getResponseHeader("etag"))&&(f.etag[o]=S)),204===e||"HEAD"===d.type?C="nocontent":304===e?C="notmodified":(C=k.state,y=k.data,c=!(b=k.error))):(b=C,!e&&C||(C="error",e<0&&(e=0))),w.status=e,w.statusText=(n||C)+"",c?g.resolveWith(h,[y,C,w]):g.rejectWith(h,[w,C,b]),w.statusCode(v),v=void 0,l&&p.trigger(c?"ajaxSuccess":"ajaxError",[w,d,c?y:b]),m.fireWith(h,[w,C]),l&&(p.trigger("ajaxComplete",[w,d]),--f.active||f.event.trigger("ajaxStop")))}return w},getJSON:function(t,e,n){return f.get(t,e,n,"json")},getScript:function(t,e){return f.get(t,void 0,e,"script")}}),f.each(["get","post"],function(t,e){f[e]=function(t,n,i,a){return f.isFunction(n)&&(a=a||i,i=n,n=void 0),f.ajax(f.extend({url:t,type:e,dataType:a,data:n,success:i},f.isPlainObject(t)&&t))}}),f._evalUrl=function(t){return f.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},f.fn.extend({wrapAll:function(t){if(f.isFunction(t))return this.each(function(e){f(this).wrapAll(t.call(this,e))});if(this[0]){var e=f(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return f.isFunction(t)?this.each(function(e){f(this).wrapInner(t.call(this,e))}):this.each(function(){var e=f(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=f.isFunction(t);return this.each(function(n){f(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()}}),f.expr.filters.hidden=function(t){return d.reliableHiddenOffsets()?t.offsetWidth<=0&&t.offsetHeight<=0&&!t.getClientRects().length:function(t){if(!f.contains(t.ownerDocument||i,t))return!0;for(;t&&1===t.nodeType;){if("none"===((e=t).style&&e.style.display||f.css(e,"display"))||"hidden"===t.type)return!0;t=t.parentNode}var e;return!1}(t)},f.expr.filters.visible=function(t){return!f.expr.filters.hidden(t)};var Ke=/%20/g,Ze=/\[\]$/,Je=/\r?\n/g,tn=/^(?:submit|button|image|reset|file)$/i,en=/^(?:input|select|textarea|keygen)/i;function nn(t,e,n,i){var a;if(f.isArray(e))f.each(e,function(e,a){n||Ze.test(t)?i(t,a):nn(t+"["+("object"==typeof a&&null!=a?e:"")+"]",a,n,i)});else if(n||"object"!==f.type(e))i(t,e);else for(a in e)nn(t+"["+a+"]",e[a],n,i)}f.param=function(t,e){var n,i=[],a=function(t,e){e=f.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=f.ajaxSettings&&f.ajaxSettings.traditional),f.isArray(t)||t.jquery&&!f.isPlainObject(t))f.each(t,function(){a(this.name,this.value)});else for(n in t)nn(n,t[n],e,a);return i.join("&").replace(Ke,"+")},f.fn.extend({serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=f.prop(this,"elements");return t?f.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!f(this).is(":disabled")&&en.test(this.nodeName)&&!tn.test(t)&&(this.checked||!J.test(t))}).map(function(t,e){var n=f(this).val();return null==n?null:f.isArray(n)?f.map(n,function(t){return{name:e.name,value:t.replace(Je,"\r\n")}}):{name:e.name,value:n.replace(Je,"\r\n")}}).get()}}),f.ajaxSettings.xhr=void 0!==t.ActiveXObject?function(){return this.isLocal?ln():i.documentMode>8?sn():/^(get|post|head|put|delete|options)$/i.test(this.type)&&sn()||ln()}:sn;var an=0,on={},rn=f.ajaxSettings.xhr();function sn(){try{return new t.XMLHttpRequest}catch(t){}}function ln(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}t.attachEvent&&t.attachEvent("onunload",function(){for(var t in on)on[t](void 0,!0)}),d.cors=!!rn&&"withCredentials"in rn,(rn=d.ajax=!!rn)&&f.ajaxTransport(function(e){var n;if(!e.crossDomain||d.cors)return{send:function(i,a){var o,r=e.xhr(),s=++an;if(r.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)r[o]=e.xhrFields[o];for(o in e.mimeType&&r.overrideMimeType&&r.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)void 0!==i[o]&&r.setRequestHeader(o,i[o]+"");r.send(e.hasContent&&e.data||null),n=function(t,i){var o,l,u;if(n&&(i||4===r.readyState))if(delete on[s],n=void 0,r.onreadystatechange=f.noop,i)4!==r.readyState&&r.abort();else{u={},o=r.status,"string"==typeof r.responseText&&(u.text=r.responseText);try{l=r.statusText}catch(t){l=""}o||!e.isLocal||e.crossDomain?1223===o&&(o=204):o=u.text?200:404}u&&a(o,l,u,r.getAllResponseHeaders())},e.async?4===r.readyState?t.setTimeout(n):r.onreadystatechange=on[s]=n:n()},abort:function(){n&&n(void 0,!0)}}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return f.globalEval(t),t}}}),f.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),f.ajaxTransport("script",function(t){if(t.crossDomain){var e,n=i.head||f("head")[0]||i.documentElement;return{send:function(a,o){(e=i.createElement("script")).async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||o(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var un=[],cn=/(=)\?(?=&|$)|\?\?/;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=un.pop()||f.expando+"_"+Fe++;return this[t]=!0,t}}),f.ajaxPrefilter("json jsonp",function(e,n,i){var a,o,r,s=!1!==e.jsonp&&(cn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&cn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return a=e.jsonpCallback=f.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(cn,"$1"+a):!1!==e.jsonp&&(e.url+=(Re.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return r||f.error(a+" was not called"),r[0]},e.dataTypes[0]="json",o=t[a],t[a]=function(){r=arguments},i.always(function(){void 0===o?f(t).removeProp(a):t[a]=o,e[a]&&(e.jsonpCallback=n.jsonpCallback,un.push(a)),r&&f.isFunction(o)&&o(r[0]),r=o=void 0}),"script"}),f.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||i;var a=S.exec(t),o=!n&&[];return a?[e.createElement(a[1])]:(a=dt([t],e,o),o&&o.length&&f(o).remove(),f.merge([],a.childNodes))};var dn=f.fn.load;function hn(t){return f.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}f.fn.load=function(t,e,n){if("string"!=typeof t&&dn)return dn.apply(this,arguments);var i,a,o,r=this,s=t.indexOf(" ");return s>-1&&(i=f.trim(t.slice(s,t.length)),t=t.slice(0,s)),f.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(a="POST"),r.length>0&&f.ajax({url:t,type:a||"GET",dataType:"html",data:e}).done(function(t){o=arguments,r.html(i?f("<div>").append(f.parseHTML(t)).find(i):t)}).always(n&&function(t,e){r.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},f.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){f.fn[e]=function(t){return this.on(e,t)}}),f.expr.filters.animated=function(t){return f.grep(f.timers,function(e){return t===e.elem}).length},f.offset={setOffset:function(t,e,n){var i,a,o,r,s,l,u=f.css(t,"position"),c=f(t),d={};"static"===u&&(t.style.position="relative"),s=c.offset(),o=f.css(t,"top"),l=f.css(t,"left"),("absolute"===u||"fixed"===u)&&f.inArray("auto",[o,l])>-1?(r=(i=c.position()).top,a=i.left):(r=parseFloat(o)||0,a=parseFloat(l)||0),f.isFunction(e)&&(e=e.call(t,n,f.extend({},s))),null!=e.top&&(d.top=e.top-s.top+r),null!=e.left&&(d.left=e.left-s.left+a),"using"in e?e.using.call(t,d):c.css(d)}},f.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){f.offset.setOffset(this,t,e)});var e,n,i={top:0,left:0},a=this[0],o=a&&a.ownerDocument;return o?(e=o.documentElement,f.contains(e,a)?(void 0!==a.getBoundingClientRect&&(i=a.getBoundingClientRect()),n=hn(o),{top:i.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var t,e,n={top:0,left:0},i=this[0];return"fixed"===f.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),f.nodeName(t[0],"html")||(n=t.offset()),n.top+=f.css(t[0],"borderTopWidth",!0),n.left+=f.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-f.css(i,"marginTop",!0),left:e.left-n.left-f.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&!f.nodeName(t,"html")&&"static"===f.css(t,"position");)t=t.offsetParent;return t||Vt})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n=/Y/.test(e);f.fn[t]=function(i){return Z(this,function(t,i,a){var o=hn(t);if(void 0===a)return o?e in o?o[e]:o.document.documentElement[i]:t[i];o?o.scrollTo(n?f(o).scrollLeft():a,n?a:f(o).scrollTop()):t[i]=a},t,i,arguments.length,null)}}),f.each(["top","left"],function(t,e){f.cssHooks[e]=Ut(d.pixelPosition,function(t,n){if(n)return n=qt(t,e),Wt.test(n)?f(t).position()[e]+"px":n})}),f.each({Height:"height",Width:"width"},function(t,e){f.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){f.fn[i]=function(i,a){var o=arguments.length&&(n||"boolean"!=typeof i),r=n||(!0===i||!0===a?"margin":"border");return Z(this,function(e,n,i){var a;return f.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(a=e.documentElement,Math.max(e.body["scroll"+t],a["scroll"+t],e.body["offset"+t],a["offset"+t],a["client"+t])):void 0===i?f.css(e,n,r):f.style(e,n,i,r)},e,o?i:void 0,o,null)}})}),f.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),f.fn.size=function(){return this.length},f.fn.andSelf=f.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return f});var fn=t.jQuery,pn=t.$;return f.noConflict=function(e){return t.$===f&&(t.$=pn),e&&t.jQuery===f&&(t.jQuery=fn),f},e||(t.jQuery=t.$=f),f}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){"use strict";var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(),function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",function(){n=!0});return setTimeout(function(){n||t(i).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(t){"use strict";var e='[data-dismiss="alert"]',n=function(n){t(n).on("click",e,this.close)};n.VERSION="3.3.6",n.TRANSITION_DURATION=150,n.prototype.close=function(e){var i=t(this),a=i.attr("data-target");a||(a=(a=i.attr("href"))&&a.replace(/.*(?=#[^\s]*$)/,""));var o=t(a);function r(){o.detach().trigger("closed.bs.alert").remove()}e&&e.preventDefault(),o.length||(o=i.closest(".alert")),o.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",r).emulateTransitionEnd(n.TRANSITION_DURATION):r())};var i=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var i=t(this),a=i.data("bs.alert");a||i.data("bs.alert",a=new n(this)),"string"==typeof e&&a[e].call(i)})},t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=i,this},t(document).on("click.bs.alert.data-api",e,n.prototype.close)}(jQuery),function(t){"use strict";var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i),this.isLoading=!1};function n(n){return this.each(function(){var i=t(this),a=i.data("bs.button"),o="object"==typeof n&&n;a||i.data("bs.button",a=new e(this,o)),"toggle"==n?a.toggle():n&&a.setState(n)})}e.VERSION="3.3.6",e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var n="disabled",i=this.$element,a=i.is("input")?"val":"html",o=i.data();e+="Text",null==o.resetText&&i.data("resetText",i[a]()),setTimeout(t.proxy(function(){i[a](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n))},this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=n,t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(e){var i=t(e.target);i.hasClass("btn")||(i=i.closest(".btn")),n.call(i,"toggle"),t(e.target).is('input[type="radio"]')||t(e.target).is('input[type="checkbox"]')||e.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),function(t){"use strict";var e=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};function n(n){return this.each(function(){var i=t(this),a=i.data("bs.carousel"),o=t.extend({},e.DEFAULTS,i.data(),"object"==typeof n&&n),r="string"==typeof n?n:o.slide;a||i.data("bs.carousel",a=new e(this,o)),"number"==typeof n?a.to(n):r?a[r]():o.interval&&a.pause().cycle()})}e.VERSION="3.3.6",e.TRANSITION_DURATION=600,e.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},e.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},e.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},e.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},e.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);if(("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap)return e;var i=(n+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(i)},e.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},e.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},e.prototype.next=function(){if(!this.sliding)return this.slide("next")},e.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},e.prototype.slide=function(n,i){var a=this.$element.find(".item.active"),o=i||this.getItemForDirection(n,a),r=this.interval,s="next"==n?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var u=o[0],c=t.Event("slide.bs.carousel",{relatedTarget:u,direction:s});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=t(this.$indicators.children()[this.getItemIndex(o)]);d&&d.addClass("active")}var h=t.Event("slid.bs.carousel",{relatedTarget:u,direction:s});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(n),o[0].offsetWidth,a.addClass(s),o.addClass(s),a.one("bsTransitionEnd",function(){o.removeClass([n,s].join(" ")).addClass("active"),a.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(h)},0)}).emulateTransitionEnd(e.TRANSITION_DURATION)):(a.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(h)),r&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=n,t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var a=function(e){var i,a=t(this),o=t(a.attr("data-target")||(i=a.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var r=t.extend({},o.data(),a.data()),s=a.attr("data-slide-to");s&&(r.interval=!1),n.call(o,r),s&&o.data("bs.carousel").to(s),e.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",a).on("click.bs.carousel.data-api","[data-slide-to]",a),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),function(t){"use strict";var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(i)}function i(n){return this.each(function(){var i=t(this),a=i.data("bs.collapse"),o=t.extend({},e.DEFAULTS,i.data(),"object"==typeof n&&n);!a&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),a||i.data("bs.collapse",a=new e(this,o)),"string"==typeof n&&a[n]()})}e.VERSION="3.3.6",e.TRANSITION_DURATION=350,e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,a=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(a&&a.length&&(n=a.data("bs.collapse"))&&n.transitioning)){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){a&&a.length&&(i.call(a,"hide"),n||a.data("bs.collapse",null));var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var l=t.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[r](this.$element[0][l])}}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=t.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var a=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return a.call(this);this.$element[i](0).one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(e.TRANSITION_DURATION)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},e.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(e,i){var a=t(i);this.addAriaAndCollapsedClass(n(a),a)},this)).end()},e.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var a=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=a,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var a=t(this);a.attr("data-target")||e.preventDefault();var o=n(a),r=o.data("bs.collapse")?"toggle":a.data();i.call(o,r)})}(jQuery),function(t){"use strict";var e=".dropdown-backdrop",n='[data-toggle="dropdown"]',i=function(e){t(e).on("click.bs.dropdown",this.toggle)};function a(e){var n=e.attr("data-target");n||(n=(n=e.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&t(n);return i&&i.length?i:e.parent()}function o(i){i&&3===i.which||(t(e).remove(),t(n).each(function(){var e=t(this),n=a(e),o={relatedTarget:this};n.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(n[0],i.target)||(n.trigger(i=t.Event("hide.bs.dropdown",o)),i.isDefaultPrevented()||(e.attr("aria-expanded","false"),n.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))}))}i.VERSION="3.3.6",i.prototype.toggle=function(e){var n=t(this);if(!n.is(".disabled, :disabled")){var i=a(n),r=i.hasClass("open");if(o(),!r){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",o);var s={relatedTarget:this};if(i.trigger(e=t.Event("show.bs.dropdown",s)),e.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(t.Event("shown.bs.dropdown",s))}return!1}},i.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var i=t(this);if(e.preventDefault(),e.stopPropagation(),!i.is(".disabled, :disabled")){var o=a(i),r=o.hasClass("open");if(!r&&27!=e.which||r&&27==e.which)return 27==e.which&&o.find(n).trigger("focus"),i.trigger("click");var s=o.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var l=s.index(e.target);38==e.which&&l>0&&l--,40==e.which&&l<s.length-1&&l++,~l||(l=0),s.eq(l).trigger("focus")}}}};var r=t.fn.dropdown;t.fn.dropdown=function(e){return this.each(function(){var n=t(this),a=n.data("bs.dropdown");a||n.data("bs.dropdown",a=new i(this)),"string"==typeof e&&a[e].call(n)})},t.fn.dropdown.Constructor=i,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=r,this},t(document).on("click.bs.dropdown.data-api",o).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",n,i.prototype.toggle).on("keydown.bs.dropdown.data-api",n,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery),function(t){"use strict";var e=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function n(n,i){return this.each(function(){var a=t(this),o=a.data("bs.modal"),r=t.extend({},e.DEFAULTS,a.data(),"object"==typeof n&&n);o||a.data("bs.modal",o=new e(this,r)),"string"==typeof n?o[n](i):r.show&&o.show(i)})}e.VERSION="3.3.6",e.TRANSITION_DURATION=300,e.BACKDROP_TRANSITION_DURATION=150,e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},e.prototype.show=function(n){var i=this,a=t.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(a),this.isShown||a.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var a=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),a&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:n});a?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(e.TRANSITION_DURATION):i.$element.trigger("focus").trigger(o)}))},e.prototype.hide=function(n){n&&n.preventDefault(),n=t.Event("hide.bs.modal"),this.$element.trigger(n),this.isShown&&!n.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(e.TRANSITION_DURATION):this.hideModal())},e.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},e.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},e.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(n){var i=this,a=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&a;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+a).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!n)return;o?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):n()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){i.removeBackdrop(),n&&n()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):r()}else n&&n()},e.prototype.handleUpdate=function(){this.adjustDialog()},e.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},e.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},e.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},e.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},e.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},e.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var i=t.fn.modal;t.fn.modal=n,t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var i=t(this),a=i.attr("href"),o=t(i.attr("data-target")||a&&a.replace(/.*(?=#[^\s]+$)/,"")),r=o.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(a)&&a},o.data(),i.data());i.is("a")&&e.preventDefault(),o.one("show.bs.modal",function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),n.call(o,r,this)})}(jQuery),function(t){"use strict";var e=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};e.VERSION="3.3.6",e.TRANSITION_DURATION=150,e.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},e.prototype.init=function(e,n,i){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var a=this.options.trigger.split(" "),o=a.length;o--;){var r=a[o];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var s="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},e.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)}},e.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},e.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},e.prototype.show=function(){var n=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(n);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(n.isDefaultPrevented()||!i)return;var a=this,o=this.tip(),r=this.getUID(this.type);this.setContent(),o.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&o.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,u=l.test(s);u&&(s=s.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),d=o[0].offsetWidth,h=o[0].offsetHeight;if(u){var f=s,p=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+h>p.bottom?"top":"top"==s&&c.top-h<p.top?"bottom":"right"==s&&c.right+d>p.width?"left":"left"==s&&c.left-d<p.left?"right":s,o.removeClass(f).addClass(s)}var g=this.getCalculatedOffset(s,c,d,h);this.applyPlacement(g,s);var m=function(){var t=a.hoverState;a.$element.trigger("shown.bs."+a.type),a.hoverState=null,"out"==t&&a.leave(a)};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",m).emulateTransitionEnd(e.TRANSITION_DURATION):m()}},e.prototype.applyPlacement=function(e,n){var i=this.tip(),a=i[0].offsetWidth,o=i[0].offsetHeight,r=parseInt(i.css("margin-top"),10),s=parseInt(i.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(s)&&(s=0),e.top+=r,e.left+=s,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");var l=i[0].offsetWidth,u=i[0].offsetHeight;"top"==n&&u!=o&&(e.top=e.top+o-u);var c=this.getViewportAdjustedDelta(n,e,l,u);c.left?e.left+=c.left:e.top+=c.top;var d=/top|bottom/.test(n),h=d?2*c.left-a+l:2*c.top-o+u,f=d?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(h,i[0][f],d)},e.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},e.prototype.hide=function(n){var i=this,a=t(this.$tip),o=t.Event("hide.bs."+this.type);function r(){"in"!=i.hoverState&&a.detach(),i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),n&&n()}if(this.$element.trigger(o),!o.isDefaultPrevented())return a.removeClass("in"),t.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",r).emulateTransitionEnd(e.TRANSITION_DURATION):r(),this.hoverState=null,this},e.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(e){var n=(e=e||this.$element)[0],i="BODY"==n.tagName,a=n.getBoundingClientRect();null==a.width&&(a=t.extend({},a,{width:a.right-a.left,height:a.bottom-a.top}));var o=i?{top:0,left:0}:e.offset(),r={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},s=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},a,r,s,o)},e.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},e.prototype.getViewportAdjustedDelta=function(t,e,n,i){var a={top:0,left:0};if(!this.$viewport)return a;var o=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var s=e.top-o-r.scroll,l=e.top+o-r.scroll+i;s<r.top?a.top=r.top-s:l>r.top+r.height&&(a.top=r.top+r.height-l)}else{var u=e.left-o,c=e.left+o+n;u<r.left?a.left=r.left-u:c>r.right&&(a.left=r.left+r.width-c)}return a},e.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},e.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},e.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var n=this;e&&((n=t(e.currentTarget).data("bs."+this.type))||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},e.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})};var n=t.fn.tooltip;t.fn.tooltip=function(n){return this.each(function(){var i=t(this),a=i.data("bs.tooltip"),o="object"==typeof n&&n;!a&&/destroy|hide/.test(n)||(a||i.data("bs.tooltip",a=new e(this,o)),"string"==typeof n&&a[n]())})},t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.3.6",e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),e.prototype.constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=function(n){return this.each(function(){var i=t(this),a=i.data("bs.popover"),o="object"==typeof n&&n;!a&&/destroy|hide/.test(n)||(a||i.data("bs.popover",a=new e(this,o)),"string"==typeof n&&a[n]())})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),function(t){"use strict";function e(n,i){this.$body=t(document.body),this.$scrollElement=t(n).is(document.body)?t(window):t(n),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=t(this),a=i.data("bs.scrollspy"),o="object"==typeof n&&n;a||i.data("bs.scrollspy",a=new e(this,o)),"string"==typeof n&&a[n]()})}e.VERSION="3.3.6",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),a=e.data("target")||e.attr("href"),o=/^#./.test(a)&&t(a);return o&&o.length&&o.is(":visible")&&[[o[n]().top+i,a]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),a=this.offsets,o=this.targets,r=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=i)return r!=(t=o[o.length-1])&&this.activate(t);if(r&&e<a[0])return this.activeTarget=null,this.clear();for(t=a.length;t--;)r!=o[t]&&e>=a[t]&&(void 0===a[t+1]||e<a[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),function(t){"use strict";var e=function(e){this.element=t(e)};function n(n){return this.each(function(){var i=t(this),a=i.data("bs.tab");a||i.data("bs.tab",a=new e(this)),"string"==typeof n&&a[n]()})}e.VERSION="3.3.6",e.TRANSITION_DURATION=150,e.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var a=n.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),r=t.Event("show.bs.tab",{relatedTarget:a[0]});if(a.trigger(o),e.trigger(r),!r.isDefaultPrevented()&&!o.isDefaultPrevented()){var s=t(i);this.activate(e.closest("li"),n),this.activate(s,s.parent(),function(){a.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:a[0]})})}}},e.prototype.activate=function(n,i,a){var o=i.find("> .active"),r=a&&t.support.transition&&(o.length&&o.hasClass("fade")||!!i.find("> .fade").length);function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),r?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),a&&a()}o.length&&r?o.one("bsTransitionEnd",s).emulateTransitionEnd(e.TRANSITION_DURATION):s(),o.removeClass("in")};var i=t.fn.tab;t.fn.tab=n,t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var a=function(e){e.preventDefault(),n.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',a).on("click.bs.tab.data-api",'[data-toggle="pill"]',a)}(jQuery),function(t){"use strict";var e=function(n,i){this.options=t.extend({},e.DEFAULTS,i),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each(function(){var i=t(this),a=i.data("bs.affix"),o="object"==typeof n&&n;a||i.data("bs.affix",a=new e(this,o)),"string"==typeof n&&a[n]()})}e.VERSION="3.3.6",e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0,target:window},e.prototype.getState=function(t,e,n,i){var a=this.$target.scrollTop(),o=this.$element.offset(),r=this.$target.height();if(null!=n&&"top"==this.affixed)return a<n&&"top";if("bottom"==this.affixed)return null!=n?!(a+this.unpin<=o.top)&&"bottom":!(a+r<=t-i)&&"bottom";var s=null==this.affixed,l=s?a:o.top;return null!=n&&a<=n?"top":null!=i&&l+(s?r:e)>=t-i&&"bottom"},e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(e.RESET).addClass("affix");var t=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-t},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),i=this.options.offset,a=i.top,o=i.bottom,r=Math.max(t(document).height(),t(document.body).height());"object"!=typeof i&&(o=a=i),"function"==typeof a&&(a=i.top(this.$element)),"function"==typeof o&&(o=i.bottom(this.$element));var s=this.getState(r,n,a,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),u=t.Event(l+".bs.affix");if(this.$element.trigger(u),u.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(e.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:r-n-o})}};var i=t.fn.affix;t.fn.affix=n,t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var e=t(this),i=e.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),n.call(e,i)})})}(jQuery),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(0,function(t){!function(t){"use strict";var e,n,i,a,o,r,s;function l(e){return t.each([{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}],function(){e=e.replace(this.re,this.ch)}),e}function u(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},n="(?:"+Object.keys(e).join("|")+")",i=new RegExp(n),a=new RegExp(n,"g"),o=null==t?"":""+t;return i.test(o)?o.replace(a,function(t){return e[t]}):o}String.prototype.includes||(e={}.toString,n=function(){try{var t={},e=Object.defineProperty,n=e(t,t,t)&&e}catch(t){}return n}(),i="".indexOf,a=function(t){if(null==this)throw new TypeError;var n=String(this);if(t&&"[object RegExp]"==e.call(t))throw new TypeError;var a=n.length,o=String(t),r=o.length,s=arguments.length>1?arguments[1]:void 0,l=s?Number(s):0;return l!=l&&(l=0),!(r+Math.min(Math.max(l,0),a)>a)&&-1!=i.call(n,o,l)},n?n(String.prototype,"includes",{value:a,configurable:!0,writable:!0}):String.prototype.includes=a),String.prototype.startsWith||(o=function(){try{var t={},e=Object.defineProperty,n=e(t,t,t)&&e}catch(t){}return n}(),r={}.toString,s=function(t){if(null==this)throw new TypeError;var e=String(this);if(t&&"[object RegExp]"==r.call(t))throw new TypeError;var n=e.length,i=String(t),a=i.length,o=arguments.length>1?arguments[1]:void 0,s=o?Number(o):0;s!=s&&(s=0);var l=Math.min(Math.max(s,0),n);if(a+l>n)return!1;for(var u=-1;++u<a;)if(e.charCodeAt(l+u)!=i.charCodeAt(u))return!1;return!0},o?o(String.prototype,"startsWith",{value:s,configurable:!0,writable:!0}):String.prototype.startsWith=s),Object.keys||(Object.keys=function(t,e,n){for(e in n=[],t)n.hasOwnProperty.call(t,e)&&n.push(e);return n}),t.fn.triggerNative=function(t){var e,n=this[0];n.dispatchEvent?("function"==typeof Event?e=new Event(t,{bubbles:!0}):(e=document.createEvent("Event")).initEvent(t,!0,!1),n.dispatchEvent(e)):(n.fireEvent&&((e=document.createEventObject()).eventType=t,n.fireEvent("on"+t,e)),this.trigger(t))},t.expr[":"].icontains=function(e,n,i){var a=t(e);return(a.data("tokens")||a.text()).toUpperCase().includes(i[3].toUpperCase())},t.expr[":"].ibegins=function(e,n,i){var a=t(e);return(a.data("tokens")||a.text()).toUpperCase().startsWith(i[3].toUpperCase())},t.expr[":"].aicontains=function(e,n,i){var a=t(e);return(a.data("tokens")||a.data("normalizedText")||a.text()).toUpperCase().includes(i[3].toUpperCase())},t.expr[":"].aibegins=function(e,n,i){var a=t(e);return(a.data("tokens")||a.data("normalizedText")||a.text()).toUpperCase().startsWith(i[3].toUpperCase())};var c=function(e,n,i){i&&(i.stopPropagation(),i.preventDefault()),this.$element=t(e),this.$newElement=null,this.$button=null,this.$menu=null,this.$lis=null,this.options=n,null===this.options.title&&(this.options.title=this.$element.attr("title")),this.val=c.prototype.val,this.render=c.prototype.render,this.refresh=c.prototype.refresh,this.setStyle=c.prototype.setStyle,this.selectAll=c.prototype.selectAll,this.deselectAll=c.prototype.deselectAll,this.destroy=c.prototype.destroy,this.remove=c.prototype.remove,this.show=c.prototype.show,this.hide=c.prototype.hide,this.init()};function d(e,n){var i,a=arguments,o=e,r=n;[].shift.apply(a);var s=this.each(function(){var e=t(this);if(e.is("select")){var n=e.data("selectpicker"),s="object"==typeof o&&o;if(n){if(s)for(var l in s)s.hasOwnProperty(l)&&(n.options[l]=s[l])}else{var u=t.extend({},c.DEFAULTS,t.fn.selectpicker.defaults||{},e.data(),s);u.template=t.extend({},c.DEFAULTS.template,t.fn.selectpicker.defaults?t.fn.selectpicker.defaults.template:{},e.data().template,s.template),e.data("selectpicker",n=new c(this,u,r))}"string"==typeof o&&(i=n[o]instanceof Function?n[o].apply(n,a):n.options[o])}});return void 0!==i?i:s}c.VERSION="1.10.0",c.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(t,e){return 1==t?"{0} item selected":"{0} items selected"},maxOptionsText:function(t,e){return[1==t?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==e?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:"glyphicon",tickIcon:"glyphicon-ok",showTick:!1,template:{caret:'<span class="caret"></span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1},c.prototype={constructor:c,init:function(){var e=this,n=this.$element.attr("id");this.$element.addClass("bs-select-hidden"),this.liObj={},this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),this.$newElement=this.createView(),this.$element.after(this.$newElement).appendTo(this.$newElement),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(".dropdown-menu"),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),this.$element.removeClass("bs-select-hidden"),this.options.dropdownAlignRight&&this.$menu.addClass("dropdown-menu-right"),void 0!==n&&(this.$button.attr("data-id",n),t('label[for="'+n+'"]').click(function(t){t.preventDefault(),e.$button.focus()})),this.checkDisabled(),this.clickListener(),this.options.liveSearch&&this.liveSearchListener(),this.render(),this.setStyle(),this.setWidth(),this.options.container&&this.selectPosition(),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(t){e.$element.trigger("hide.bs.select",t)},"hidden.bs.dropdown":function(t){e.$element.trigger("hidden.bs.select",t)},"show.bs.dropdown":function(t){e.$element.trigger("show.bs.select",t)},"shown.bs.dropdown":function(t){e.$element.trigger("shown.bs.select",t)}}),e.$element[0].hasAttribute("required")&&this.$element.on("invalid",function(){e.$button.addClass("bs-invalid").focus(),e.$element.on({"focus.bs.select":function(){e.$button.focus(),e.$element.off("focus.bs.select")},"shown.bs.select":function(){e.$element.val(e.$element.val()).off("shown.bs.select")},"rendered.bs.select":function(){this.validity.valid&&e.$button.removeClass("bs-invalid"),e.$element.off("rendered.bs.select")}})}),setTimeout(function(){e.$element.trigger("loaded.bs.select")})},createDropdown:function(){var e=this.multiple||this.options.showTick?" show-tick":"",n=this.$element.parent().hasClass("input-group")?" input-group-btn":"",i=this.autofocus?" autofocus":"",a=this.options.header?'<div class="popover-title"><button type="button" class="close" aria-hidden="true">×</button>'+this.options.header+"</div>":"",o=this.options.liveSearch?'<div class="bs-searchbox"><input type="text" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+u(this.options.liveSearchPlaceholder)+'"')+"></div>":"",r=this.multiple&&this.options.actionsBox?'<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn btn-default">'+this.options.selectAllText+'</button><button type="button" class="actions-btn bs-deselect-all btn btn-default">'+this.options.deselectAllText+"</button></div></div>":"",s=this.multiple&&this.options.doneButton?'<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm btn-default">'+this.options.doneButtonText+"</button></div></div>":"",l='<div class="btn-group bootstrap-select'+e+n+'"><button type="button" class="'+this.options.styleBase+' dropdown-toggle" data-toggle="dropdown"'+i+'><span class="filter-option pull-left"></span> <span class="bs-caret">'+this.options.template.caret+'</span></button><div class="dropdown-menu open">'+a+o+r+'<ul class="dropdown-menu inner" role="menu"></ul>'+s+"</div></div>";return t(l)},createView:function(){var t=this.createDropdown(),e=this.createLi();return t.find("ul")[0].innerHTML=e,t},reloadLi:function(){this.destroyLi();var t=this.createLi();this.$menuInner[0].innerHTML=t},destroyLi:function(){this.$menu.find("li").remove()},createLi:function(){var e=this,n=[],i=0,a=document.createElement("option"),o=-1,r=function(t,e,n,i){return"<li"+(void 0!==n&""!==n?' class="'+n+'"':"")+(void 0!==e&null!==e?' data-original-index="'+e+'"':"")+(void 0!==i&null!==i?'data-optgroup="'+i+'"':"")+">"+t+"</li>"},s=function(t,n,i,a){return'<a tabindex="0"'+(void 0!==n?' class="'+n+'"':"")+(void 0!==i?' style="'+i+'"':"")+(e.options.liveSearchNormalize?' data-normalized-text="'+l(u(t))+'"':"")+(void 0!==a||null!==a?' data-tokens="'+a+'"':"")+">"+t+'<span class="'+e.options.iconBase+" "+e.options.tickIcon+' check-mark"></span></a>'};if(this.options.title&&!this.multiple&&(o--,!this.$element.find(".bs-title-option").length)){var c=this.$element[0];a.className="bs-title-option",a.appendChild(document.createTextNode(this.options.title)),a.value="",c.insertBefore(a,c.firstChild),void 0===t(c.options[c.selectedIndex]).attr("selected")&&(a.selected=!0)}return this.$element.find("option").each(function(a){var l=t(this);if(o++,!l.hasClass("bs-title-option")){var u=this.className||"",c=this.style.cssText,d=l.data("content")?l.data("content"):l.html(),h=l.data("tokens")?l.data("tokens"):null,f=void 0!==l.data("subtext")?'<small class="text-muted">'+l.data("subtext")+"</small>":"",p=void 0!==l.data("icon")?'<span class="'+e.options.iconBase+" "+l.data("icon")+'"></span> ':"",g="OPTGROUP"===this.parentNode.tagName,m=this.disabled||g&&this.parentNode.disabled;if(""!==p&&m&&(p="<span>"+p+"</span>"),e.options.hideDisabled&&m&&!g)o--;else{if(l.data("content")||(d=p+'<span class="text">'+d+f+"</span>"),g&&!0!==l.data("divider")){var v=" "+this.parentNode.className||"";if(0===l.index()){i+=1;var y=this.parentNode.label,b=void 0!==l.parent().data("subtext")?'<small class="text-muted">'+l.parent().data("subtext")+"</small>":"";y=(l.parent().data("icon")?'<span class="'+e.options.iconBase+" "+l.parent().data("icon")+'"></span> ':"")+'<span class="text">'+y+b+"</span>",0!==a&&n.length>0&&(o++,n.push(r("",null,"divider",i+"div"))),o++,n.push(r(y,null,"dropdown-header"+v,i))}if(e.options.hideDisabled&&m)return void o--;n.push(r(s(d,"opt "+u+v,c,h),a,"",i))}else!0===l.data("divider")?n.push(r("",a,"divider")):!0===l.data("hidden")?n.push(r(s(d,u,c,h),a,"hidden is-hidden")):(this.previousElementSibling&&"OPTGROUP"===this.previousElementSibling.tagName&&(o++,n.push(r("",null,"divider",i+"div"))),n.push(r(s(d,u,c,h),a)));e.liObj[a]=o}}}),this.multiple||0!==this.$element.find("option:selected").length||this.options.title||this.$element.find("option").eq(0).prop("selected",!0).attr("selected","selected"),n.join("")},findLis:function(){return null==this.$lis&&(this.$lis=this.$menu.find("li")),this.$lis},render:function(e){var n,i=this;!1!==e&&this.$element.find("option").each(function(t){var e=i.findLis().eq(i.liObj[t]);i.setDisabled(t,this.disabled||"OPTGROUP"===this.parentNode.tagName&&this.parentNode.disabled,e),i.setSelected(t,this.selected,e)}),this.tabIndex();var a=this.$element.find("option").map(function(){if(this.selected){if(i.options.hideDisabled&&(this.disabled||"OPTGROUP"===this.parentNode.tagName&&this.parentNode.disabled))return;var e,n=t(this),a=n.data("icon")&&i.options.showIcon?'<i class="'+i.options.iconBase+" "+n.data("icon")+'"></i> ':"";return e=i.options.showSubtext&&n.data("subtext")&&!i.multiple?' <small class="text-muted">'+n.data("subtext")+"</small>":"",void 0!==n.attr("title")?n.attr("title"):n.data("content")&&i.options.showContent?n.data("content"):a+n.html()+e}}).toArray(),o=this.multiple?a.join(this.options.multipleSeparator):a[0];if(this.multiple&&this.options.selectedTextFormat.indexOf("count")>-1){var r=this.options.selectedTextFormat.split(">");if(r.length>1&&a.length>r[1]||1==r.length&&a.length>=2){n=this.options.hideDisabled?", [disabled]":"";var s=this.$element.find("option").not('[data-divider="true"], [data-hidden="true"]'+n).length;o=("function"==typeof this.options.countSelectedText?this.options.countSelectedText(a.length,s):this.options.countSelectedText).replace("{0}",a.length.toString()).replace("{1}",s.toString())}}null==this.options.title&&(this.options.title=this.$element.attr("title")),"static"==this.options.selectedTextFormat&&(o=this.options.title),o||(o=void 0!==this.options.title?this.options.title:this.options.noneSelectedText),this.$button.attr("title",t.trim(o.replace(/<[^>]*>?/g,""))),this.$button.children(".filter-option").html(o),this.$element.trigger("rendered.bs.select")},setStyle:function(t,e){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));var n=t||this.options.style;"add"==e?this.$button.addClass(n):"remove"==e?this.$button.removeClass(n):(this.$button.removeClass(this.options.style),this.$button.addClass(n))},liHeight:function(e){if(e||!1!==this.options.size&&!this.sizeInfo){var n=document.createElement("div"),i=document.createElement("div"),a=document.createElement("ul"),o=document.createElement("li"),r=document.createElement("li"),s=document.createElement("a"),l=document.createElement("span"),u=this.options.header&&this.$menu.find(".popover-title").length>0?this.$menu.find(".popover-title")[0].cloneNode(!0):null,c=this.options.liveSearch?document.createElement("div"):null,d=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,h=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null;if(l.className="text",n.className=this.$menu[0].parentNode.className+" open",i.className="dropdown-menu open",a.className="dropdown-menu inner",o.className="divider",l.appendChild(document.createTextNode("Inner text")),s.appendChild(l),r.appendChild(s),a.appendChild(r),a.appendChild(o),u&&i.appendChild(u),c){var f=document.createElement("span");c.className="bs-searchbox",f.className="form-control",c.appendChild(f),i.appendChild(c)}d&&i.appendChild(d),i.appendChild(a),h&&i.appendChild(h),n.appendChild(i),document.body.appendChild(n);var p=s.offsetHeight,g=u?u.offsetHeight:0,m=c?c.offsetHeight:0,v=d?d.offsetHeight:0,y=h?h.offsetHeight:0,b=t(o).outerHeight(!0),x="function"==typeof getComputedStyle&&getComputedStyle(i),k=x?null:t(i),w=parseInt(x?x.paddingTop:k.css("paddingTop"))+parseInt(x?x.paddingBottom:k.css("paddingBottom"))+parseInt(x?x.borderTopWidth:k.css("borderTopWidth"))+parseInt(x?x.borderBottomWidth:k.css("borderBottomWidth")),S=w+parseInt(x?x.marginTop:k.css("marginTop"))+parseInt(x?x.marginBottom:k.css("marginBottom"))+2;document.body.removeChild(n),this.sizeInfo={liHeight:p,headerHeight:g,searchHeight:m,actionsHeight:v,doneButtonHeight:y,dividerHeight:b,menuPadding:w,menuExtras:S}}},setSize:function(){if(this.findLis(),this.liHeight(),this.options.header&&this.$menu.css("padding-top",0),!1!==this.options.size){var e,n,i,a,o=this,r=this.$menu,s=this.$menuInner,l=t(window),u=this.$newElement[0].offsetHeight,c=this.sizeInfo.liHeight,d=this.sizeInfo.headerHeight,h=this.sizeInfo.searchHeight,f=this.sizeInfo.actionsHeight,p=this.sizeInfo.doneButtonHeight,g=this.sizeInfo.dividerHeight,m=this.sizeInfo.menuPadding,v=this.sizeInfo.menuExtras,y=this.options.hideDisabled?".disabled":"",b=function(){i=o.$newElement.offset().top-l.scrollTop(),a=l.height()-i-u};if(b(),"auto"===this.options.size){var x=function(){var l,u=function(e,n){return function(i){return n?i.classList?i.classList.contains(e):t(i).hasClass(e):!(i.classList?i.classList.contains(e):t(i).hasClass(e))}},g=o.$menuInner[0].getElementsByTagName("li"),y=Array.prototype.filter?Array.prototype.filter.call(g,u("hidden",!1)):o.$lis.not(".hidden"),x=Array.prototype.filter?Array.prototype.filter.call(y,u("dropdown-header",!0)):y.filter(".dropdown-header");b(),e=a-v,o.options.container?(r.data("height")||r.data("height",r.height()),n=r.data("height")):n=r.height(),o.options.dropupAuto&&o.$newElement.toggleClass("dropup",i>a&&e-v<n),o.$newElement.hasClass("dropup")&&(e=i-v),l=y.length+x.length>3?3*c+v-2:0,r.css({"max-height":e+"px",overflow:"hidden","min-height":l+d+h+f+p+"px"}),s.css({"max-height":e-d-h-f-p-m+"px","overflow-y":"auto","min-height":Math.max(l-m,0)+"px"})};x(),this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",x),l.off("resize.getSize scroll.getSize").on("resize.getSize scroll.getSize",x)}else if(this.options.size&&"auto"!=this.options.size&&this.$lis.not(y).length>this.options.size){var k=this.$lis.not(".divider").not(y).children().slice(0,this.options.size).last().parent().index(),w=this.$lis.slice(0,k+1).filter(".divider").length;e=c*this.options.size+w*g+m,o.options.container?(r.data("height")||r.data("height",r.height()),n=r.data("height")):n=r.height(),o.options.dropupAuto&&this.$newElement.toggleClass("dropup",i>a&&e-v<n),r.css({"max-height":e+d+h+f+p+"px",overflow:"hidden","min-height":""}),s.css({"max-height":e-m+"px","overflow-y":"auto","min-height":""})}}},setWidth:function(){if("auto"===this.options.width){this.$menu.css("min-width","0");var t=this.$menu.parent().clone().appendTo("body"),e=this.options.container?this.$newElement.clone().appendTo("body"):t,n=t.children(".dropdown-menu").outerWidth(),i=e.css("width","auto").children("button").outerWidth();t.remove(),e.remove(),this.$newElement.css("width",Math.max(n,i)+"px")}else"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width",""));this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement.removeClass("fit-width")},selectPosition:function(){this.$bsContainer=t('<div class="bs-container" />');var e,n,i=this,a=function(t){i.$bsContainer.addClass(t.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass("dropup",t.hasClass("dropup")),e=t.offset(),n=t.hasClass("dropup")?0:t[0].offsetHeight,i.$bsContainer.css({top:e.top+n,left:e.left,width:t[0].offsetWidth})};this.$button.on("click",function(){var e=t(this);i.isDisabled()||(a(i.$newElement),i.$bsContainer.appendTo(i.options.container).toggleClass("open",!e.hasClass("open")).append(i.$menu))}),t(window).on("resize scroll",function(){a(i.$newElement)}),this.$element.on("hide.bs.select",function(){i.$menu.data("height",i.$menu.height()),i.$bsContainer.detach()})},setSelected:function(t,e,n){n||(n=this.findLis().eq(this.liObj[t])),n.toggleClass("selected",e)},setDisabled:function(t,e,n){n||(n=this.findLis().eq(this.liObj[t])),e?n.addClass("disabled").children("a").attr("href","#").attr("tabindex",-1):n.removeClass("disabled").children("a").removeAttr("href").attr("tabindex",0)},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var t=this;this.isDisabled()?(this.$newElement.addClass("disabled"),this.$button.addClass("disabled").attr("tabindex",-1)):(this.$button.hasClass("disabled")&&(this.$newElement.removeClass("disabled"),this.$button.removeClass("disabled")),-1!=this.$button.attr("tabindex")||this.$element.data("tabindex")||this.$button.removeAttr("tabindex")),this.$button.click(function(){return!t.isDisabled()})},tabIndex:function(){this.$element.data("tabindex")!==this.$element.attr("tabindex")&&-98!==this.$element.attr("tabindex")&&"-98"!==this.$element.attr("tabindex")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex"))),this.$element.attr("tabindex",-98)},clickListener:function(){var e=this,n=t(document);this.$newElement.on("touchstart.dropdown",".dropdown-menu",function(t){t.stopPropagation()}),n.data("spaceSelect",!1),this.$button.on("keyup",function(t){/(32)/.test(t.keyCode.toString(10))&&n.data("spaceSelect")&&(t.preventDefault(),n.data("spaceSelect",!1))}),this.$button.on("click",function(){e.setSize()}),this.$element.on("shown.bs.select",function(){if(e.options.liveSearch||e.multiple){if(!e.multiple){var t=e.liObj[e.$element[0].selectedIndex];if("number"!=typeof t||!1===e.options.size)return;var n=e.$lis.eq(t)[0].offsetTop-e.$menuInner[0].offsetTop;n=n-e.$menuInner[0].offsetHeight/2+e.sizeInfo.liHeight/2,e.$menuInner[0].scrollTop=n}}else e.$menuInner.find(".selected a").focus()}),this.$menuInner.on("click","li a",function(n){var i=t(this),a=i.parent().data("originalIndex"),o=e.$element.val(),r=e.$element.prop("selectedIndex");if(e.multiple&&n.stopPropagation(),n.preventDefault(),!e.isDisabled()&&!i.parent().hasClass("disabled")){var s=e.$element.find("option"),l=s.eq(a),u=l.prop("selected"),c=l.parent("optgroup"),d=e.options.maxOptions,h=c.data("maxOptions")||!1;if(e.multiple){if(l.prop("selected",!u),e.setSelected(a,!u),i.blur(),!1!==d||!1!==h){var f=d<s.filter(":selected").length,p=h<c.find("option:selected").length;if(d&&f||h&&p)if(d&&1==d)s.prop("selected",!1),l.prop("selected",!0),e.$menuInner.find(".selected").removeClass("selected"),e.setSelected(a,!0);else if(h&&1==h){c.find("option:selected").prop("selected",!1),l.prop("selected",!0);var g=i.parent().data("optgroup");e.$menuInner.find('[data-optgroup="'+g+'"]').removeClass("selected"),e.setSelected(a,!0)}else{var m="function"==typeof e.options.maxOptionsText?e.options.maxOptionsText(d,h):e.options.maxOptionsText,v=m[0].replace("{n}",d),y=m[1].replace("{n}",h),b=t('<div class="notify"></div>');m[2]&&(v=v.replace("{var}",m[2][d>1?0:1]),y=y.replace("{var}",m[2][h>1?0:1])),l.prop("selected",!1),e.$menu.append(b),d&&f&&(b.append(t("<div>"+v+"</div>")),e.$element.trigger("maxReached.bs.select")),h&&p&&(b.append(t("<div>"+y+"</div>")),e.$element.trigger("maxReachedGrp.bs.select")),setTimeout(function(){e.setSelected(a,!1)},10),b.delay(750).fadeOut(300,function(){t(this).remove()})}}}else s.prop("selected",!1),l.prop("selected",!0),e.$menuInner.find(".selected").removeClass("selected"),e.setSelected(a,!0);e.multiple?e.options.liveSearch&&e.$searchbox.focus():e.$button.focus(),(o!=e.$element.val()&&e.multiple||r!=e.$element.prop("selectedIndex")&&!e.multiple)&&e.$element.trigger("changed.bs.select",[a,l.prop("selected"),u]).triggerNative("change")}}),this.$menu.on("click","li.disabled a, .popover-title, .popover-title :not(.close)",function(n){n.currentTarget==this&&(n.preventDefault(),n.stopPropagation(),e.options.liveSearch&&!t(n.target).hasClass("close")?e.$searchbox.focus():e.$button.focus())}),this.$menuInner.on("click",".divider, .dropdown-header",function(t){t.preventDefault(),t.stopPropagation(),e.options.liveSearch?e.$searchbox.focus():e.$button.focus()}),this.$menu.on("click",".popover-title .close",function(){e.$button.click()}),this.$searchbox.on("click",function(t){t.stopPropagation()}),this.$menu.on("click",".actions-btn",function(n){e.options.liveSearch?e.$searchbox.focus():e.$button.focus(),n.preventDefault(),n.stopPropagation(),t(this).hasClass("bs-select-all")?e.selectAll():e.deselectAll()}),this.$element.change(function(){e.render(!1)})},liveSearchListener:function(){var e=this,n=t('<li class="no-results"></li>');this.$button.on("click.dropdown.data-api touchstart.dropdown.data-api",function(){e.$menuInner.find(".active").removeClass("active"),e.$searchbox.val()&&(e.$searchbox.val(""),e.$lis.not(".is-hidden").removeClass("hidden"),n.parent().length&&n.remove()),e.multiple||e.$menuInner.find(".selected").addClass("active"),setTimeout(function(){e.$searchbox.focus()},10)}),this.$searchbox.on("click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api",function(t){t.stopPropagation()}),this.$searchbox.on("input propertychange",function(){if(e.$searchbox.val()){var i=e.$lis.not(".is-hidden").removeClass("hidden").children("a");(i=e.options.liveSearchNormalize?i.not(":a"+e._searchStyle()+'("'+l(e.$searchbox.val())+'")'):i.not(":"+e._searchStyle()+'("'+e.$searchbox.val()+'")')).parent().addClass("hidden"),e.$lis.filter(".dropdown-header").each(function(){var n=t(this),i=n.data("optgroup");0===e.$lis.filter("[data-optgroup="+i+"]").not(n).not(".hidden").length&&(n.addClass("hidden"),e.$lis.filter("[data-optgroup="+i+"div]").addClass("hidden"))});var a=e.$lis.not(".hidden");a.each(function(e){var n=t(this);n.hasClass("divider")&&(n.index()===a.first().index()||n.index()===a.last().index()||a.eq(e+1).hasClass("divider"))&&n.addClass("hidden")}),e.$lis.not(".hidden, .no-results").length?n.parent().length&&n.remove():(n.parent().length&&n.remove(),n.html(e.options.noneResultsText.replace("{0}",'"'+u(e.$searchbox.val())+'"')).show(),e.$menuInner.append(n))}else e.$lis.not(".is-hidden").removeClass("hidden"),n.parent().length&&n.remove();e.$lis.filter(".active").removeClass("active"),e.$searchbox.val()&&e.$lis.not(".hidden, .divider, .dropdown-header").eq(0).addClass("active").children("a").focus(),t(this).focus()})},_searchStyle:function(){return{begins:"ibegins",startsWith:"ibegins"}[this.options.liveSearchStyle]||"icontains"},val:function(t){return void 0!==t?(this.$element.val(t),this.render(),this.$element):this.$element.val()},changeAll:function(e){void 0===e&&(e=!0),this.findLis();for(var n=this.$element.find("option"),i=this.$lis.not(".divider, .dropdown-header, .disabled, .hidden").toggleClass("selected",e),a=i.length,o=[],r=0;r<a;r++){var s=i[r].getAttribute("data-original-index");o[o.length]=n.eq(s)[0]}t(o).prop("selected",e),this.render(!1),this.$element.trigger("changed.bs.select").triggerNative("change")},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(t){(t=t||window.event)&&t.stopPropagation(),this.$button.trigger("click")},keydown:function(e){var n,i,a,o,r,s,u,c,d,h=t(this),f=h.is("input")?h.parent().parent():h.parent(),p=f.data("this"),g=":not(.disabled, .hidden, .dropdown-header, .divider)",m={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"};if(p.options.liveSearch&&(f=h.parent().parent()),p.options.container&&(f=p.$menu),n=t("[role=menu] li",f),!(d=p.$newElement.hasClass("open"))&&(e.keyCode>=48&&e.keyCode<=57||e.keyCode>=96&&e.keyCode<=105||e.keyCode>=65&&e.keyCode<=90)&&(p.options.container?p.$button.trigger("click"):(p.setSize(),p.$menu.parent().addClass("open"),d=!0),p.$searchbox.focus()),p.options.liveSearch&&(/(^9$|27)/.test(e.keyCode.toString(10))&&d&&0===p.$menu.find(".active").length&&(e.preventDefault(),p.$menu.parent().removeClass("open"),p.options.container&&p.$newElement.removeClass("open"),p.$button.focus()),n=t("[role=menu] li"+g,f),h.val()||/(38|40)/.test(e.keyCode.toString(10))||0===n.filter(".active").length&&(n=p.$menuInner.find("li"),n=p.options.liveSearchNormalize?n.filter(":a"+p._searchStyle()+"("+l(m[e.keyCode])+")"):n.filter(":"+p._searchStyle()+"("+m[e.keyCode]+")"))),n.length){if(/(38|40)/.test(e.keyCode.toString(10)))i=n.index(n.find("a").filter(":focus").parent()),o=n.filter(g).first().index(),r=n.filter(g).last().index(),a=n.eq(i).nextAll(g).eq(0).index(),s=n.eq(i).prevAll(g).eq(0).index(),u=n.eq(a).prevAll(g).eq(0).index(),p.options.liveSearch&&(n.each(function(e){t(this).hasClass("disabled")||t(this).data("index",e)}),i=n.index(n.filter(".active")),o=n.first().data("index"),r=n.last().data("index"),a=n.eq(i).nextAll().eq(0).data("index"),s=n.eq(i).prevAll().eq(0).data("index"),u=n.eq(a).prevAll().eq(0).data("index")),c=h.data("prevIndex"),38==e.keyCode?(p.options.liveSearch&&i--,i!=u&&i>s&&(i=s),i<o&&(i=o),i==c&&(i=r)):40==e.keyCode&&(p.options.liveSearch&&i++,-1==i&&(i=0),i!=u&&i<a&&(i=a),i>r&&(i=r),i==c&&(i=o)),h.data("prevIndex",i),p.options.liveSearch?(e.preventDefault(),h.hasClass("dropdown-toggle")||(n.removeClass("active").eq(i).addClass("active").children("a").focus(),h.focus())):n.eq(i).children("a").focus();else if(!h.is("input")){var v,y=[];n.each(function(){t(this).hasClass("disabled")||t.trim(t(this).children("a").text().toLowerCase()).substring(0,1)==m[e.keyCode]&&y.push(t(this).index())}),v=t(document).data("keycount"),v++,t(document).data("keycount",v),t.trim(t(":focus").text().toLowerCase()).substring(0,1)!=m[e.keyCode]?(v=1,t(document).data("keycount",v)):v>=y.length&&(t(document).data("keycount",0),v>y.length&&(v=1)),n.eq(y[v-1]).children("a").focus()}if((/(13|32)/.test(e.keyCode.toString(10))||/(^9$)/.test(e.keyCode.toString(10))&&p.options.selectOnTab)&&d){if(/(32)/.test(e.keyCode.toString(10))||e.preventDefault(),p.options.liveSearch)/(32)/.test(e.keyCode.toString(10))||(p.$menuInner.find(".active a").click(),h.focus());else{var b=t(":focus");b.click(),b.focus(),e.preventDefault(),t(document).data("spaceSelect",!0)}t(document).data("keycount",0)}(/(^9$|27)/.test(e.keyCode.toString(10))&&d&&(p.multiple||p.options.liveSearch)||/(27)/.test(e.keyCode.toString(10))&&!d)&&(p.$menu.parent().removeClass("open"),p.options.container&&p.$newElement.removeClass("open"),p.$button.focus())}},mobile:function(){this.$element.addClass("mobile-device")},refresh:function(){this.$lis=null,this.liObj={},this.reloadLi(),this.render(),this.checkDisabled(),this.liHeight(!0),this.setStyle(),this.setWidth(),this.$lis&&this.$searchbox.trigger("propertychange"),this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.$element.off(".bs.select").removeData("selectpicker").removeClass("bs-select-hidden selectpicker")}};var h=t.fn.selectpicker;t.fn.selectpicker=d,t.fn.selectpicker.Constructor=c,t.fn.selectpicker.noConflict=function(){return t.fn.selectpicker=h,this},t(document).data("keycount",0).on("keydown.bs.select",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="menu"], .bs-searchbox input',c.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="menu"], .bs-searchbox input',function(t){t.stopPropagation()}),t(window).on("load.bs.select.data-api",function(){t(".selectpicker").each(function(){var e=t(this);d.call(e,e.data())})})}(t)}),function(e){jQuery.fn.extend({slimScroll:function(n){var i=e.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},n);return this.each(function(){var a,o,r,s,l,u,c,d,h="<div></div>",f=30,p=!1,g=e(this);if(g.parent().hasClass(i.wrapperClass)){var m=g.scrollTop();if(x=g.parent().find("."+i.barClass),b=g.parent().find("."+i.railClass),C(),e.isPlainObject(n)){if("height"in n&&"auto"==n.height){g.parent().css("height","auto"),g.css("height","auto");var v=g.parent().parent().height();g.parent().css("height",v),g.css("height",v)}if("scrollTo"in n)m=parseInt(i.scrollTo);else if("scrollBy"in n)m+=parseInt(i.scrollBy);else if("destroy"in n)return x.remove(),b.remove(),void g.unwrap();S(m,!1,!0)}}else{i.height="auto"==i.height?g.parent().height():i.height;var y=e(h).addClass(i.wrapperClass).css({position:"relative",overflow:"hidden",width:i.width,height:i.height});g.css({overflow:"hidden",width:i.width,height:i.height});var b=e(h).addClass(i.railClass).css({width:i.size,height:"100%",position:"absolute",top:0,display:i.alwaysVisible&&i.railVisible?"block":"none","border-radius":i.railBorderRadius,background:i.railColor,opacity:i.railOpacity,zIndex:90}),x=e(h).addClass(i.barClass).css({background:i.color,width:i.size,position:"absolute",top:0,opacity:i.opacity,display:i.alwaysVisible?"block":"none","border-radius":i.borderRadius,BorderRadius:i.borderRadius,MozBorderRadius:i.borderRadius,WebkitBorderRadius:i.borderRadius,zIndex:99}),k="right"==i.position?{right:i.distance}:{left:i.distance};b.css(k),x.css(k),g.wrap(y),g.parent().append(x),g.parent().append(b),i.railDraggable&&x.bind("mousedown",function(n){var i=e(document);return r=!0,t=parseFloat(x.css("top")),pageY=n.pageY,i.bind("mousemove.slimscroll",function(e){currTop=t+e.pageY-pageY,x.css("top",currTop),S(0,x.position().top,!1)}),i.bind("mouseup.slimscroll",function(t){r=!1,_(),i.unbind(".slimscroll")}),!1}).bind("selectstart.slimscroll",function(t){return t.stopPropagation(),t.preventDefault(),!1}),b.hover(function(){T()},function(){_()}),x.hover(function(){o=!0},function(){o=!1}),g.hover(function(){a=!0,T(),_()},function(){a=!1,_()}),g.bind("touchstart",function(t,e){t.originalEvent.touches.length&&(l=t.originalEvent.touches[0].pageY)}),g.bind("touchmove",function(t){(p||t.originalEvent.preventDefault(),t.originalEvent.touches.length)&&(S((l-t.originalEvent.touches[0].pageY)/i.touchScrollStep,!0),l=t.originalEvent.touches[0].pageY)}),C(),"bottom"===i.start?(x.css({top:g.outerHeight()-x.outerHeight()}),S(0,!0)):"top"!==i.start&&(S(e(i.start).position().top,null,!0),i.alwaysVisible||x.hide()),function(){window.addEventListener?(this.addEventListener("DOMMouseScroll",w,!1),this.addEventListener("mousewheel",w,!1)):document.attachEvent("onmousewheel",w)}()}function w(t){if(a){var n=0;(t=t||window.event).wheelDelta&&(n=-t.wheelDelta/120),t.detail&&(n=t.detail/3);var o=t.target||t.srcTarget||t.srcElement;e(o).closest("."+i.wrapperClass).is(g.parent())&&S(n,!0),t.preventDefault&&!p&&t.preventDefault(),p||(t.returnValue=!1)}}function S(t,e,n){p=!1;var a=t,o=g.outerHeight()-x.outerHeight();if(e&&(a=parseInt(x.css("top"))+t*parseInt(i.wheelStep)/100*x.outerHeight(),a=Math.min(Math.max(a,0),o),a=t>0?Math.ceil(a):Math.floor(a),x.css({top:a+"px"})),a=(c=parseInt(x.css("top"))/(g.outerHeight()-x.outerHeight()))*(g[0].scrollHeight-g.outerHeight()),n){var r=(a=t)/g[0].scrollHeight*g.outerHeight();r=Math.min(Math.max(r,0),o),x.css({top:r+"px"})}g.scrollTop(a),g.trigger("slimscrolling",~~a),T(),_()}function C(){u=Math.max(g.outerHeight()/g[0].scrollHeight*g.outerHeight(),f),x.css({height:u+"px"});var t=u==g.outerHeight()?"none":"block";x.css({display:t})}function T(){if(C(),clearTimeout(s),c==~~c){if(p=i.allowPageScroll,d!=c){var t=0==~~c?"top":"bottom";g.trigger("slimscroll",t)}}else p=!1;d=c,u>=g.outerHeight()?p=!0:(x.stop(!0,!0).fadeIn("fast"),i.railVisible&&b.stop(!0,!0).fadeIn("fast"))}function _(){i.alwaysVisible||(s=setTimeout(function(){i.disableFadeOut&&a||o||r||(x.fadeOut("slow"),b.fadeOut("slow"))},1e3))}}),this}}),jQuery.fn.extend({slimscroll:jQuery.fn.slimScroll})}(jQuery),function(t,e){"use strict";"function"==typeof define&&define.amd?define([],function(){return e.apply(t)}):"object"==typeof exports?module.exports=e.call(t):t.Waves=e.call(t)}("object"==typeof global?global:this,function(){"use strict";var t=t||{},e=document.querySelectorAll.bind(document),n=Object.prototype.toString,i="ontouchstart"in window;function a(t){var e=typeof t;return"function"===e||"object"===e&&!!t}function o(t){var i,o=n.call(t);return"[object String]"===o?e(t):a(t)&&/^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(o)&&t.hasOwnProperty("length")?t:a(i=t)&&i.nodeType>0?[t]:[]}function r(t){var e,n,i,a,o={top:0,left:0},r=t&&t.ownerDocument;return e=r.documentElement,void 0!==t.getBoundingClientRect&&(o=t.getBoundingClientRect()),n=null!==(a=i=r)&&a===a.window?i:9===i.nodeType&&i.defaultView,{top:o.top+n.pageYOffset-e.clientTop,left:o.left+n.pageXOffset-e.clientLeft}}function s(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e+=n+":"+t[n]+";");return e}var l={duration:750,delay:200,show:function(t,e,n){if(2===t.button)return!1;e=e||this;var i=document.createElement("div");i.className="waves-ripple waves-rippling",e.appendChild(i);var a=r(e),o=0,u=0;"touches"in t&&t.touches.length?(o=t.touches[0].pageY-a.top,u=t.touches[0].pageX-a.left):(o=t.pageY-a.top,u=t.pageX-a.left),u=u>=0?u:0,o=o>=0?o:0;var c="scale("+e.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",s(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"===t.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",s(h))},hide:function(t,e){for(var n=(e=e||this).getElementsByClassName("waves-rippling"),i=0,a=n.length;i<a;i++)c(t,e,n[i])}},u={input:function(t){var e=t.parentNode;if("i"!==e.tagName.toLowerCase()||!e.classList.contains("waves-effect")){var n=document.createElement("i");n.className=t.className+" waves-input-wrapper",t.className="waves-button-input",e.replaceChild(n,t),n.appendChild(t);var i=window.getComputedStyle(t,null),a=i.color,o=i.backgroundColor;n.setAttribute("style","color:"+a+";background:"+o),t.setAttribute("style","background-color:rgba(0,0,0,0);")}},img:function(t){var e=t.parentNode;if("i"!==e.tagName.toLowerCase()||!e.classList.contains("waves-effect")){var n=document.createElement("i");e.replaceChild(n,t),n.appendChild(t)}}};function c(t,e,n){if(n){n.classList.remove("waves-rippling");var i=n.getAttribute("data-x"),a=n.getAttribute("data-y"),o=n.getAttribute("data-scale"),r=n.getAttribute("data-translate"),u=350-(Date.now()-Number(n.getAttribute("data-hold")));u<0&&(u=0),"mousemove"===t.type&&(u=150);var c="mousemove"===t.type?2500:l.duration;setTimeout(function(){var t={top:a+"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+" "+r,"-moz-transform":o+" "+r,"-ms-transform":o+" "+r,"-o-transform":o+" "+r,transform:o+" "+r};n.setAttribute("style",s(t)),setTimeout(function(){try{e.removeChild(n)}catch(t){return!1}},c)},u)}}var d={touches:0,allowEvent:function(t){var e=!0;return/^(mousedown|mousemove)$/.test(t.type)&&d.touches&&(e=!1),e},registerEvent:function(t){var e=t.type;"touchstart"===e?d.touches+=1:/^(touchend|touchcancel)$/.test(e)&&setTimeout(function(){d.touches&&(d.touches-=1)},500)}};function h(t){var e=function(t){if(!1===d.allowEvent(t))return null;for(var e=null,n=t.target||t.srcElement;null!==n.parentElement;){if(n.classList.contains("waves-effect")&&!(n instanceof SVGElement)){e=n;break}n=n.parentElement}return e}(t);if(null!==e){if(e.disabled||e.getAttribute("disabled")||e.classList.contains("disabled"))return;if(d.registerEvent(t),"touchstart"===t.type&&l.delay){var n=!1,a=setTimeout(function(){a=null,l.show(t,e)},l.delay),o=function(i){a&&(clearTimeout(a),a=null,l.show(t,e)),n||(n=!0,l.hide(i,e))};e.addEventListener("touchmove",function(t){a&&(clearTimeout(a),a=null),o(t)},!1),e.addEventListener("touchend",o,!1),e.addEventListener("touchcancel",o,!1)}else l.show(t,e),i&&(e.addEventListener("touchend",l.hide,!1),e.addEventListener("touchcancel",l.hide,!1)),e.addEventListener("mouseup",l.hide,!1),e.addEventListener("mouseleave",l.hide,!1)}}return t.init=function(t){var e=document.body;"duration"in(t=t||{})&&(l.duration=t.duration),"delay"in t&&(l.delay=t.delay),i&&(e.addEventListener("touchstart",h,!1),e.addEventListener("touchcancel",d.registerEvent,!1),e.addEventListener("touchend",d.registerEvent,!1)),e.addEventListener("mousedown",h,!1)},t.attach=function(t,e){var i,a;t=o(t),"[object Array]"===n.call(e)&&(e=e.join(" ")),e=e?" "+e:"";for(var r=0,s=t.length;r<s;r++)a=(i=t[r]).tagName.toLowerCase(),-1!==["input","img"].indexOf(a)&&(u[a](i),i=i.parentElement),-1===i.className.indexOf("waves-effect")&&(i.className+=" waves-effect"+e)},t.ripple=function(t,e){var n=(t=o(t)).length;if((e=e||{}).wait=e.wait||0,e.position=e.position||null,n)for(var i,a,s,u={},c=0,d={type:"mousedown",button:1},h=function(t,e){return function(){l.hide(t,e)}};c<n;c++)if(i=t[c],a=e.position||{x:i.clientWidth/2,y:i.clientHeight/2},s=r(i),u.x=s.left+a.x,u.y=s.top+a.y,d.pageX=u.x,d.pageY=u.y,l.show(d,i),e.wait>=0&&null!==e.wait){setTimeout(h({type:"mouseup",button:1},i),e.wait)}},t.calm=function(t){for(var e={type:"mouseup",button:1},n=0,i=(t=o(t)).length;n<i;n++)l.hide(e,t[n])},t.displayEffect=function(e){console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect"),t.init(e)},t}),function(t){function e(i,a){return this instanceof e?(t.isPlainObject(i)?a=i:(a=a||{}).alias=i,this.el=void 0,this.opts=t.extend(!0,{},this.defaults,a),this.noMasksCache=a&&void 0!==a.definitions,this.userOptions=a||{},this.events={},void n(this.opts.alias,a,this.opts)):new e(i,a)}function n(e,i,a){var o=a.aliases[e];return o?(o.alias&&n(o.alias,void 0,a),t.extend(!0,a,o),t.extend(!0,a,i),!0):(null===a.mask&&(a.mask=e),!1)}function i(n,i){function a(a,o){if(null!==a&&""!==a){if(1===a.length&&!1===n.greedy&&0!==n.repeat&&(n.placeholder=""),n.repeat>0||"*"===n.repeat||"+"===n.repeat){var r="*"===n.repeat?0:"+"===n.repeat?1:n.repeat;a=n.groupmarker.start+a+n.groupmarker.end+n.quantifiermarker.start+r+","+n.repeat+n.quantifiermarker.end}var s;return void 0===e.prototype.masksCache[a]||!0===i?(s={mask:a,maskToken:function(e){function i(t,e,n,i){this.matches=[],this.isGroup=t||!1,this.isOptional=e||!1,this.isQuantifier=n||!1,this.isAlternator=i||!1,this.quantifier={min:1,max:1}}function a(e,i,a){var o=n.definitions[i];a=void 0!==a?a:e.matches.length;var r=e.matches[a-1];if(o&&!m){o.placeholder=t.isFunction(o.placeholder)?o.placeholder(n):o.placeholder;for(var s=o.prevalidator,l=s?s.length:0,u=1;u<o.cardinality;u++){var c=l>=u?s[u-1]:[],d=c.validator,h=c.cardinality;e.matches.splice(a++,0,{fn:d?"string"==typeof d?new RegExp(d):new function(){this.test=d}:new RegExp("."),cardinality:h||1,optionality:e.isOptional,newBlockMarker:void 0===r||r.def!==(o.definitionSymbol||i),casing:o.casing,def:o.definitionSymbol||i,placeholder:o.placeholder,mask:i}),r=e.matches[a-1]}e.matches.splice(a++,0,{fn:o.validator?"string"==typeof o.validator?new RegExp(o.validator):new function(){this.test=o.validator}:new RegExp("."),cardinality:o.cardinality,optionality:e.isOptional,newBlockMarker:void 0===r||r.def!==(o.definitionSymbol||i),casing:o.casing,def:o.definitionSymbol||i,placeholder:o.placeholder,mask:i})}else e.matches.splice(a++,0,{fn:null,cardinality:0,optionality:e.isOptional,newBlockMarker:void 0===r||r.def!==i,casing:null,def:n.staticDefinitionSymbol||i,placeholder:void 0!==n.staticDefinitionSymbol?i:void 0,mask:i}),m=!1}function o(t,e){t.isGroup&&(t.isGroup=!1,a(t,n.groupmarker.start,0),!0!==e&&a(t,n.groupmarker.end))}function r(t,e,n,i){e.matches.length>0&&(void 0===i||i)&&o(e.matches[e.matches.length-1]),a(e,t)}function s(){if(y.length>0){if(d=y[y.length-1],r(u,d,0,!d.isAlternator),d.isAlternator){h=y.pop();for(var t=0;t<h.matches.length;t++)h.matches[t].isGroup=!1;y.length>0?(d=y[y.length-1]).matches.push(h):v.matches.push(h)}}else r(u,v)}for(var l,u,c,d,h,f,p,g=/(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g,m=!1,v=new i,y=[],b=[];l=g.exec(e);)if(u=l[0],m)s();else switch(u.charAt(0)){case n.escapeChar:m=!0;break;case n.optionalmarker.end:case n.groupmarker.end:if(void 0!==(c=y.pop()))if(y.length>0){if((d=y[y.length-1]).matches.push(c),d.isAlternator){h=y.pop();for(var x=0;x<h.matches.length;x++)h.matches[x].isGroup=!1;y.length>0?(d=y[y.length-1]).matches.push(h):v.matches.push(h)}}else v.matches.push(c);else s();break;case n.optionalmarker.start:y.push(new i(!1,!0));break;case n.groupmarker.start:y.push(new i(!0));break;case n.quantifiermarker.start:var k=new i(!1,!1,!0),w=(u=u.replace(/[{}]/g,"")).split(","),S=isNaN(w[0])?w[0]:parseInt(w[0]),C=1===w.length?S:isNaN(w[1])?w[1]:parseInt(w[1]);if(("*"===C||"+"===C)&&(S="*"===C?0:1),k.quantifier={min:S,max:C},y.length>0){var T=y[y.length-1].matches;(l=T.pop()).isGroup||((p=new i(!0)).matches.push(l),l=p),T.push(l),T.push(k)}else(l=v.matches.pop()).isGroup||((p=new i(!0)).matches.push(l),l=p),v.matches.push(l),v.matches.push(k);break;case n.alternatormarker:y.length>0?(d=y[y.length-1],f=d.matches.pop()):f=v.matches.pop(),f.isAlternator?y.push(f):((h=new i(!1,!1,!1,!0)).matches.push(f),y.push(h));break;default:s()}for(;y.length>0;)o(c=y.pop(),!0),v.matches.push(c);return v.matches.length>0&&(o(f=v.matches[v.matches.length-1]),b.push(v)),n.numericInput&&function t(e){for(var i in e.matches=e.matches.reverse(),e.matches){var a=parseInt(i);if(e.matches[i].isQuantifier&&e.matches[a+1]&&e.matches[a+1].isGroup){var o=e.matches[i];e.matches.splice(i,1),e.matches.splice(a+1,0,o)}void 0!==e.matches[i].matches?e.matches[i]=t(e.matches[i]):e.matches[i]=((r=e.matches[i])===n.optionalmarker.start?r=n.optionalmarker.end:r===n.optionalmarker.end?r=n.optionalmarker.start:r===n.groupmarker.start?r=n.groupmarker.end:r===n.groupmarker.end&&(r=n.groupmarker.start),r)}var r;return e}(b[0]),b}(a),validPositions:{},_buffer:void 0,buffer:void 0,tests:{},metadata:o},!0!==i&&(e.prototype.masksCache[n.numericInput?a.split("").reverse().join(""):a]=s,s=t.extend(!0,{},e.prototype.masksCache[n.numericInput?a.split("").reverse().join(""):a]))):s=t.extend(!0,{},e.prototype.masksCache[n.numericInput?a.split("").reverse().join(""):a]),s}}function o(t){return t.toString()}var r;if(t.isFunction(n.mask)&&(n.mask=n.mask(n)),t.isArray(n.mask)){if(n.mask.length>1){n.keepStatic=null===n.keepStatic||n.keepStatic;var s="(";return t.each(n.numericInput?n.mask.reverse():n.mask,function(e,n){s.length>1&&(s+=")|("),s+=o(void 0===n.mask||t.isFunction(n.mask)?n:n.mask)}),a(s+=")",n.mask)}n.mask=n.mask.pop()}return n.mask&&(r=void 0===n.mask.mask||t.isFunction(n.mask.mask)?a(o(n.mask),n.mask):a(o(n.mask.mask),n.mask)),r}function a(n,i,o){function u(t,e,n){e=e||0;var i,a,r,s=[],l=0,u=h();do{if(!0===t&&c().validPositions[l]){var d=c().validPositions[l];a=d.match,i=d.locator.slice(),s.push(!0===n?d.input:P(l,a))}else a=(r=g(l,i,l-1)).match,i=r.locator.slice(),(!1===o.jitMasking||u>l||isFinite(o.jitMasking)&&o.jitMasking>l)&&s.push(P(l,a));l++}while((void 0===et||et>l-1)&&null!==a.fn||null===a.fn&&""!==a.def||e>=l);return""===s[s.length-1]&&s.pop(),s}function c(){return i}function d(t){var e=c();e.buffer=void 0,!0!==t&&(e.tests={},e._buffer=void 0,e.validPositions={},e.p=0)}function h(t,e,n){var i=-1,a=-1,o=n||c().validPositions;for(var r in void 0===t&&(t=-1),o){var s=parseInt(r);o[s]&&(e||null!==o[s].match.fn)&&(t>=s&&(i=s),s>=t&&(a=s))}return-1!==i&&t-i>1||t>a?i:a}function f(e,n,i,a){if(a||o.insertMode&&void 0!==c().validPositions[e]&&void 0===i){var r,s=t.extend(!0,{},c().validPositions),l=h();for(r=e;l>=r;r++)delete c().validPositions[r];c().validPositions[e]=n;var u,f=!0,p=c().validPositions,g=!1;for(r=u=e;l>=r;r++){var m=s[r];if(void 0!==m)for(var y=u,x=-1;y<_()&&(null==m.match.fn&&p[r]&&(!0===p[r].match.optionalQuantifier||!0===p[r].match.optionality)||null!=m.match.fn);){if(null===m.match.fn||!o.keepStatic&&p[r]&&(void 0!==p[r+1]&&b(r+1,p[r].locator.slice(),r).length>1||void 0!==p[r].alternation)?y++:y=D(u),!1===g&&s[y]&&s[y].match.def===m.match.def){c().validPositions[y]=t.extend(!0,{},s[y]),c().validPositions[y].input=m.input,u=y,f=!0;break}if(v(y,m.match.def)){var k=C(y,m.input,!0,!0);if(f=!1!==k,u=k.caret||k.insert?h():y,g=!0,f)break}else{if(f=null==m.match.fn,x===y)break;x=y}}if(!f)break}if(!f)return c().validPositions=t.extend(!0,{},s),d(!0),!1}else c().validPositions[e]=n;return d(!0),!0}function p(e,n,i,a){function r(t){var e=c().validPositions[t];if(void 0!==e&&null===e.match.fn){var n=c().validPositions[t-1],i=c().validPositions[t+1];return void 0!==n&&void 0!==i}return!1}var s,l=e,u=t.extend(!0,{},c().validPositions),f=!1;for(c().p=e,s=n-1;s>=l;s--)void 0!==c().validPositions[s]&&(!0===i||!r(s)&&!1!==o.canClearPosition(c(),s,h(),a,o))&&delete c().validPositions[s];for(d(!0),s=l+1;s<=h();){for(;void 0!==c().validPositions[l];)l++;var p=c().validPositions[l];if(l>s&&(s=l+1),void 0===c().validPositions[s]&&T(s)||void 0!==p)s++;else{var m=g(s);!1===f&&u[l]&&u[l].match.def===m.match.def?(c().validPositions[l]=t.extend(!0,{},u[l]),c().validPositions[l].input=m.input,delete c().validPositions[s],s++):v(l,m.match.def)?!1!==C(l,m.input||P(s),!0)&&(delete c().validPositions[s],s++,f=!0):T(s)||(s++,l--),l++}}d(!0)}function g(t,e,n){var i=c().validPositions[t];if(void 0===i)for(var a=b(t,e,n),r=h(),s=c().validPositions[r]||b(0)[0],l=void 0!==s.alternation?s.locator[s.alternation].toString().split(","):[],u=0;u<a.length&&!((i=a[u]).match&&(o.greedy&&!0!==i.match.optionalQuantifier||(!1===i.match.optionality||!1===i.match.newBlockMarker)&&!0!==i.match.optionalQuantifier)&&(void 0===s.alternation||s.alternation!==i.alternation||void 0!==i.locator[s.alternation]&&S(i.locator[s.alternation].toString().split(","),l)));u++);return i}function m(t){return c().validPositions[t]?c().validPositions[t].match:b(t)[0].match}function v(t,e){for(var n=!1,i=b(t),a=0;a<i.length;a++)if(i[a].match&&i[a].match.def===e){n=!0;break}return n}function y(e,n){var i,a;return(c().tests[e]||c().validPositions[e])&&t.each(c().tests[e]||[c().validPositions[e]],function(t,e){var o=e.alternation?e.locator[e.alternation].toString().indexOf(n):-1;(void 0===a||a>o)&&-1!==o&&(i=e,a=o)}),i}function b(e,n,i){function a(n,i,r,s){function l(r,s,d){function g(e,n){var i=0===t.inArray(e,n.matches);return i||t.each(n.matches,function(t,a){return(!0!==a.isQuantifier||!(i=g(e,n.matches[t-1])))&&void 0}),i}if(u>1e4)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+c().mask;if(u===e&&void 0===r.matches)return h.push({match:r,locator:s.reverse(),cd:p}),!0;if(void 0!==r.matches){if(r.isGroup&&d!==r){if(r=l(n.matches[t.inArray(r,n.matches)+1],s))return!0}else if(r.isOptional){var m=r;if(r=a(r,i,s,d)){if(!g(o=h[h.length-1].match,m))return!0;f=!0,u=e}}else if(r.isAlternator){var v,b=r,x=[],k=h.slice(),w=s.length,S=i.length>0?i.shift():-1;if(-1===S||"string"==typeof S){var C,T=u,_=i.slice(),D=[];if("string"==typeof S)D=S.split(",");else for(C=0;C<b.matches.length;C++)D.push(C);for(var M=0;M<D.length;M++){if(C=parseInt(D[M]),h=[],$=void 0,$=y(u,C),i=$?$.locator.slice($.alternation+1):[],!0!==(r=l(b.matches[C]||n.matches[C],[C].concat(s),d)||r)&&void 0!==r&&D[D.length-1]<b.matches.length){var A=t.inArray(r,n.matches)+1;n.matches.length>A&&((r=l(n.matches[A],[A].concat(s.slice(1,s.length)),d))&&(D.push(A.toString()),t.each(h,function(t,e){e.alternation=s.length-1})))}v=h.slice(),u=T,h=[];for(var P=0;P<_.length;P++)i[P]=_[P];for(var E=0;E<v.length;E++){var I=v[E];I.alternation=I.alternation||w;for(var O=0;O<x.length;O++){var F=x[O];if(I.match.def===F.match.def&&("string"!=typeof S||-1!==t.inArray(I.locator[I.alternation].toString(),D))){I.match.mask===F.match.mask&&(v.splice(E,1),E--),-1===F.locator[I.alternation].toString().indexOf(I.locator[I.alternation])&&(F.locator[I.alternation]=F.locator[I.alternation]+","+I.locator[I.alternation],F.alternation=I.alternation);break}}}x=x.concat(v)}"string"==typeof S&&(x=t.map(x,function(e,n){if(isFinite(n)){var i=e.alternation,a=e.locator[i].toString().split(",");e.locator[i]=void 0,e.alternation=void 0;for(var o=0;o<a.length;o++)-1!==t.inArray(a[o],D)&&(void 0!==e.locator[i]?(e.locator[i]+=",",e.locator[i]+=a[o]):e.locator[i]=parseInt(a[o]),e.alternation=i);if(void 0!==e.locator[i])return e}})),h=k.concat(x),u=e,f=h.length>0}else r=l(b.matches[S]||n.matches[S],[S].concat(s),d);if(r)return!0}else if(r.isQuantifier&&d!==n.matches[t.inArray(r,n.matches)-1])for(var R=r,N=i.length>0?i.shift():0;N<(isNaN(R.quantifier.max)?N+1:R.quantifier.max)&&e>=u;N++){var L=n.matches[t.inArray(R,n.matches)-1];if(r=l(L,[N].concat(s),L)){if((o=h[h.length-1].match).optionalQuantifier=N>R.quantifier.min-1,g(o,L)){if(N>R.quantifier.min-1){f=!0,u=e;break}return!0}return!0}}else if(r=a(r,i,s,d))return!0}else u++;var $}for(var d=i.length>0?i.shift():0;d<n.matches.length;d++)if(!0!==n.matches[d].isQuantifier){var g=l(n.matches[d],[d].concat(r),s);if(g&&u===e)return g;if(u>e)break}}var o,r,s,l=c().maskToken,u=n?i:0,d=n||[0],h=[],f=!1,p=n?n.join(""):"";if(e>-1){if(void 0===n){for(var g,m=e-1;void 0===(g=c().validPositions[m]||c().tests[m])&&m>-1;)m--;void 0!==g&&m>-1&&(r=g,s=[],t.isArray(r)||(r=[r]),void 0===r[0].alternation?s=r[0].locator.slice():t.each(r,function(t,e){if(""!==e.def)if(0===s.length)s=e.locator.slice();else for(var n=0;n<s.length;n++)e.locator[n]&&-1===s[n].toString().indexOf(e.locator[n])&&(s[n]+=","+e.locator[n])}),p=(d=s).join(""),u=m)}if(c().tests[e]&&c().tests[e][0].cd===p)return c().tests[e];for(var v=d.shift();v<l.length;v++){if(a(l[v],d,[v])&&u===e||u>e)break}}return(0===h.length||f)&&h.push({match:{fn:null,cardinality:0,optionality:!0,casing:null,def:""},locator:[]}),c().tests[e]=t.extend(!0,[],h),c().tests[e]}function x(){return void 0===c()._buffer&&(c()._buffer=u(!1,1)),c()._buffer}function k(t){if(void 0===c().buffer||!0===t){if(!0===t)for(var e in c().tests)void 0===c().validPositions[e]&&delete c().tests[e];c().buffer=u(!0,h(),!0)}return c().buffer}function w(t,e,n){var i;if(n=n,!0===t)d(),t=0,e=n.length;else for(i=t;e>i;i++)delete c().validPositions[i],delete c().tests[i];for(i=t;e>i;i++)d(!0),n[i]!==o.skipOptionalPartCharacter&&C(i,n[i],!0,!0)}function S(e,n){for(var i=o.greedy?n:n.slice(0,1),a=!1,r=0;r<e.length;r++)if(-1!==t.inArray(e[r],i)){a=!0;break}return a}function C(n,i,a,r){function s(t){return it?t.begin-t.end>1||t.begin-t.end==1&&o.insertMode:t.end-t.begin>1||t.end-t.begin==1&&o.insertMode}function l(e,i,a,r){var l=!1;return t.each(b(e),function(u,g){for(var m=g.match,v=i?1:0,y="",b=m.cardinality;b>v;b--)y+=(x=e-(b-1),void 0===c().validPositions[x]?P(x):c().validPositions[x].input);var x;if(i&&(y+=i),k(!0),!1!==(l=null!=m.fn?m.fn.test(y,c(),e,a,o,s(n)):(i===m.def||i===o.skipOptionalPartCharacter)&&""!==m.def&&{c:m.placeholder||m.def,pos:e})){var S=void 0!==l.c?l.c:i;S=S===o.skipOptionalPartCharacter&&null===m.fn?m.placeholder||m.def:S;var T=e,_=k();if(void 0!==l.remove&&(t.isArray(l.remove)||(l.remove=[l.remove]),t.each(l.remove.sort(function(t,e){return e-t}),function(t,e){p(e,e+1,!0)})),void 0!==l.insert&&(t.isArray(l.insert)||(l.insert=[l.insert]),t.each(l.insert.sort(function(t,e){return t-e}),function(t,e){C(e.pos,e.c,!1,r)})),l.refreshFromBuffer){var D=l.refreshFromBuffer;if(a=!0,w(!0===D?D:D.start,D.end,_),void 0===l.pos&&void 0===l.c)return l.pos=h(),!1;if((T=void 0!==l.pos?l.pos:e)!==e)return l=t.extend(l,C(T,S,!0,r)),!1}else if(!0!==l&&void 0!==l.pos&&l.pos!==e&&(T=l.pos,w(e,T,k().slice()),T!==e))return l=t.extend(l,C(T,S,!0)),!1;return(!0===l||void 0!==l.pos||void 0!==l.c)&&(u>0&&d(!0),f(T,t.extend({},g,{input:function(t,e){switch(e.casing){case"upper":t=t.toUpperCase();break;case"lower":t=t.toLowerCase()}return t}(S,m)}),r,s(n))||(l=!1),!1)}}),l}function u(e,n){for(var i=c().validPositions[n].locator,a=i.length,o=e;n>o;o++)if(void 0===c().validPositions[o]&&!T(o,!0)){var r=b(o),s=r[0],l=-1;t.each(r,function(t,e){for(var n=0;a>n&&void 0!==e.locator[n]&&S(e.locator[n].toString().split(","),i[n].toString().split(","));n++)n>l&&(l=n,s=e)}),f(o,t.extend({},s,{input:s.match.placeholder||s.match.def}),!0)}}a=!0===a;var m,v=n;void 0!==n.begin&&(v=it&&!s(n)?n.end:n.begin);for(var x=!1,M=t.extend(!0,{},c().validPositions),A=v-1;A>-1&&!c().validPositions[A];A--);for(A++;v>A;A++)void 0===c().validPositions[A]&&(!1===o.jitMasking||o.jitMasking>A)&&((m=g(A)).match.def===o.radixPointDefinitionSymbol||!T(A,!0)||t.inArray(o.radixPoint,k())<A&&m.match.fn&&m.match.fn.test(P(A),c(),A,!1,o))&&l(h(A,!0)+1,m.match.placeholder||(null==m.match.fn?m.match.def:""!==P(A)?P(A):k()[A]),!0,r);if(s(n)&&(L(void 0,e.keyCode.DELETE,n),v=c().p),v<_()&&(x=l(v,i,a,r),(!a||!0===r)&&!1===x)){var E=c().validPositions[v];if(!E||null!==E.match.fn||E.match.def!==i&&i!==o.skipOptionalPartCharacter){if((o.insertMode||void 0===c().validPositions[D(v)])&&!T(v,!0)){var I=g(v).match;l(v,I=I.placeholder||I.def,a,r);for(var O=v+1,F=D(v);F>=O;O++)if(!1!==(x=l(O,i,a,r))){u(v,O),v=O;break}}}else x={caret:D(v)}}return!1===x&&o.keepStatic&&(x=function(e,n,i,a){for(var r,s,l,u,f,p,m=t.extend(!0,{},c().validPositions),v=t.extend(!0,{},c().tests),b=h();b>=0&&(!(u=c().validPositions[b])||void 0===u.alternation||(r=b,s=c().validPositions[r].alternation,g(r).locator[u.alternation]===u.locator[u.alternation]));b--);if(void 0!==s)for(var x in r=parseInt(r),c().validPositions)if(x=parseInt(x),u=c().validPositions[x],x>=r&&void 0!==u.alternation){var k;0===r?(k=[],t.each(c().tests[r],function(t,e){void 0!==e.locator[s]&&(k=k.concat(e.locator[s].toString().split(",")))})):k=c().validPositions[r].locator[s].toString().split(",");var w=void 0!==u.locator[s]?u.locator[s]:k[0];w.length>0&&(w=w.split(",")[0]);for(var S=0;S<k.length;S++){var T=[],_=0,D=0;if(w<k[S]){for(var M,A,E=x;E>=0;E--)if(void 0!==(M=c().validPositions[E])){var I=y(E,k[S]);c().validPositions[E].match.def!==I.match.def&&(T.push(c().validPositions[E].input),c().validPositions[E]=I,c().validPositions[E].input=P(E),null===c().validPositions[E].match.fn&&D++,M=I),A=M.locator[s],M.locator[s]=parseInt(k[S]);break}if(w!==M.locator[s]){for(f=x+1;f<h(void 0,!0)+1;f++)(p=c().validPositions[f])&&null!=p.match.fn?T.push(p.input):e>f&&_++,delete c().validPositions[f],delete c().tests[f];for(d(!0),o.keepStatic=!o.keepStatic,l=!0;T.length>0;){var O=T.shift();if(O!==o.skipOptionalPartCharacter&&!(l=C(h(void 0,!0)+1,O,!1,a)))break}if(M.alternation=s,M.locator[s]=A,l){var F=h(e)+1;for(f=x+1;f<h()+1;f++)(void 0===(p=c().validPositions[f])||null==p.match.fn)&&e>f&&D++;l=C((e+=D-_)>F?F:e,n,i,a)}if(o.keepStatic=!o.keepStatic,l)return l;d(),c().validPositions=t.extend(!0,{},m),c().tests=t.extend(!0,{},v)}}}break}return!1}(v,i,a,r)),!0===x&&(x={pos:v}),t.isFunction(o.postValidation)&&!1!==x&&!a&&!0!==r&&(x=!!o.postValidation(k(!0),x,o)&&x),void 0===x.pos&&(x.pos=v),!1===x&&(d(!0),c().validPositions=t.extend(!0,{},M)),x}function T(t,e){var n;return e?""===(n=g(t).match).def&&(n=m(t)):n=m(t),null!=n.fn?n.fn:!0!==e&&t>-1&&!o.keepStatic&&void 0===c().validPositions[t]&&b(t).length>2}function _(){var t;-1===(et=void 0!==J?J.maxLength:void 0)&&(et=void 0);var e,n=h(),i=c().validPositions[n],a=void 0!==i?i.locator.slice():void 0;for(e=n+1;void 0===i||null!==i.match.fn||null===i.match.fn&&""!==i.match.def;e++)a=(i=g(e,a,e-1)).locator.slice();return t=""!==m(e-1).def?e:e-1,void 0===et||et>t?t:et}function D(t,e){var n=_();if(t>=n)return n;for(var i=t;++i<n&&(!0===e&&(!0!==m(i).newBlockMarker||!T(i))||!0!==e&&!T(i)&&(!0!==o.nojumps||o.nojumpsThreshold>i)););return i}function M(t,e){var n=t;if(0>=n)return 0;for(;--n>0&&(!0===e&&!0!==m(n).newBlockMarker||!0!==e&&!T(n)););return n}function A(e,n,i,a,r){if(a&&t.isFunction(o.onBeforeWrite)){var s=o.onBeforeWrite(a,n,i,o);if(s){if(s.refreshFromBuffer){var l=s.refreshFromBuffer;w(!0===l?l:l.start,l.end,s.buffer||n),n=k(!0)}void 0!==i&&(i=void 0!==s.caret?s.caret:i)}}e.inputmask._valueSet(n.join("")),void 0===i||void 0!==a&&"blur"===a.type||O(e,i),!0===r&&(ot=!0,t(e).trigger("input"))}function P(t,e){if(void 0!==(e=e||m(t)).placeholder)return e.placeholder;if(null===e.fn){if(t>-1&&!o.keepStatic&&void 0===c().validPositions[t]){var n,i=b(t),a=[];if(i.length>2)for(var r=0;r<i.length;r++)if(!0!==i[r].match.optionality&&!0!==i[r].match.optionalQuantifier&&(null===i[r].match.fn||void 0===n||!1!==i[r].match.fn.test(n.match.def,c(),t,!0,o))&&(a.push(i[r]),null===i[r].match.fn&&(n=i[r]),a.length>1))return o.placeholder.charAt(t%o.placeholder.length)}return e.def}return o.placeholder.charAt(t%o.placeholder.length)}function E(n,i,a,r){var s,l=r.slice(),u="",f=0;if(d(),c().p=D(-1),!a)if(!0!==o.autoUnmask){var p=x().slice(0,D(-1)).join(""),m=l.join("").match(new RegExp("^"+e.escapeRegex(p),"g"));m&&m.length>0&&(l.splice(0,m.length*p.length),f=D(f))}else f=D(f);t.each(l,function(e,i){if(void 0!==i){var r=new t.Event("keypress");r.which=i.charCodeAt(0),u+=i;var l=h(void 0,!0),p=c().validPositions[l],m=g(l+1,p?p.locator.slice():void 0,l);if(!function(){var t=!1,e=x().slice(f,D(f)).join("").indexOf(u);if(-1!==e&&!T(f)){t=!0;for(var n=x().slice(f,f+e),i=0;i<n.length;i++)if(" "!==n[i]){t=!1;break}}return t}()||a||o.autoUnmask){var v=a?e:null==m.match.fn&&m.match.optionality&&l+1<c().p?l+1:c().p;s=B.call(n,r,!0,!1,a,v),f=v+1,u=""}else s=B.call(n,r,!0,!1,!0,l+1);if(!a&&t.isFunction(o.onBeforeWrite)&&((s=o.onBeforeWrite(r,k(),s.forwardPosition,o))&&s.refreshFromBuffer)){var y=s.refreshFromBuffer;w(!0===y?y:y.start,y.end,s.buffer),d(!0),s.caret&&(c().p=s.caret)}}}),i&&A(n,k(),document.activeElement===n?D(h(0)):void 0,new t.Event("checkval"))}function I(e){if(e&&void 0===e.inputmask)return e.value;var n=[],i=c().validPositions;for(var a in i)i[a].match&&null!=i[a].match.fn&&n.push(i[a].input);var r=0===n.length?null:(it?n.reverse():n).join("");if(null!==r){var s=(it?k().slice().reverse():k()).join("");t.isFunction(o.onUnMask)&&(r=o.onUnMask(s,r,o)||r)}return r}function O(t,e,n,i){function a(t){!0===i||!it||"number"!=typeof t||o.greedy&&""===o.placeholder||(t=k().join("").length-t);return t}var s;if("number"!=typeof e)return t.setSelectionRange?(e=t.selectionStart,n=t.selectionEnd):window.getSelection?((s=window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode===t||s.commonAncestorContainer===t)&&(e=s.startOffset,n=s.endOffset):document.selection&&document.selection.createRange&&(n=(e=0-(s=document.selection.createRange()).duplicate().moveStart("character",-t.inputmask._valueGet().length))+s.text.length),{begin:a(e),end:a(n)};e=a(e),n="number"==typeof(n=a(n))?n:e;var l=parseInt(((t.ownerDocument.defaultView||window).getComputedStyle?(t.ownerDocument.defaultView||window).getComputedStyle(t,null):t.currentStyle).fontSize)*n;if(t.scrollLeft=l>t.scrollWidth?l:0,r||!1!==o.insertMode||e!==n||n++,t.setSelectionRange)t.selectionStart=e,t.selectionEnd=n;else if(window.getSelection){if(s=document.createRange(),void 0===t.firstChild||null===t.firstChild){var u=document.createTextNode("");t.appendChild(u)}s.setStart(t.firstChild,e<t.inputmask._valueGet().length?e:t.inputmask._valueGet().length),s.setEnd(t.firstChild,n<t.inputmask._valueGet().length?n:t.inputmask._valueGet().length),s.collapse(!0);var c=window.getSelection();c.removeAllRanges(),c.addRange(s)}else t.createTextRange&&((s=t.createTextRange()).collapse(!0),s.moveEnd("character",n),s.moveStart("character",e),s.select())}function F(e){var n,i,a=k(),o=a.length,r=h(),s={},l=c().validPositions[r],u=void 0!==l?l.locator.slice():void 0;for(n=r+1;n<a.length;n++)u=(i=g(n,u,n-1)).locator.slice(),s[n]=t.extend(!0,{},i);var d=l&&void 0!==l.alternation?l.locator[l.alternation]:void 0;for(n=o-1;n>r&&(((i=s[n]).match.optionality||i.match.optionalQuantifier||d&&(d!==s[n].locator[l.alternation]&&null!=i.match.fn||null===i.match.fn&&i.locator[l.alternation]&&S(i.locator[l.alternation].toString().split(","),d.toString().split(","))&&""!==b(n)[0].def))&&a[n]===P(n,i.match));n--)o--;return e?{l:o,def:s[o]?s[o].match:void 0}:o}function R(t){for(var e=F(),n=t.length-1;n>e&&!T(n);n--);return t.splice(e,n+1-e),t}function N(e){if(t.isFunction(o.isComplete))return o.isComplete(e,o);if("*"!==o.repeat){var n=!1,i=F(!0),a=M(i.l);if(void 0===i.def||i.def.newBlockMarker||i.def.optionality||i.def.optionalQuantifier){n=!0;for(var r=0;a>=r;r++){var s=g(r).match;if(null!==s.fn&&void 0===c().validPositions[r]&&!0!==s.optionality&&!0!==s.optionalQuantifier||null===s.fn&&e[r]!==P(r,s)){n=!1;break}}}return n}}function L(n,i,a,r){if((o.numericInput||it)&&(i===e.keyCode.BACKSPACE?i=e.keyCode.DELETE:i===e.keyCode.DELETE&&(i=e.keyCode.BACKSPACE),it)){var s=a.end;a.end=a.begin,a.begin=s}i===e.keyCode.BACKSPACE&&(a.end-a.begin<1||!1===o.insertMode)?(a.begin=M(a.begin),void 0===c().validPositions[a.begin]||c().validPositions[a.begin].input!==o.groupSeparator&&c().validPositions[a.begin].input!==o.radixPoint||a.begin--):i===e.keyCode.DELETE&&a.begin===a.end&&(a.end=T(a.end)?a.end+1:D(a.end)+1,void 0===c().validPositions[a.begin]||c().validPositions[a.begin].input!==o.groupSeparator&&c().validPositions[a.begin].input!==o.radixPoint||a.end++),p(a.begin,a.end,!1,r),!0!==r&&function(){if(o.keepStatic){d(!0);var e,i=[],a=t.extend(!0,{},c().validPositions);for(e=h();e>=0;e--){var r=c().validPositions[e];if(r&&(null!=r.match.fn&&i.push(r.input),delete c().validPositions[e],void 0!==r.alternation&&r.locator[r.alternation]===g(e).locator[r.alternation]))break}if(e>-1)for(;i.length>0;){c().p=D(h());var s=new t.Event("keypress");s.which=i.pop().charCodeAt(0),B.call(n,s,!0,!1,!1,c().p)}else c().validPositions=t.extend(!0,{},a)}}();var l=h(a.begin);l<a.begin?(-1===l&&d(),c().p=D(l)):!0!==r&&(c().p=a.begin)}function $(n){var i,a,r,s,u=this,d=t(u),f=n.keyCode,p=O(u);if(f===e.keyCode.BACKSPACE||f===e.keyCode.DELETE||l&&f===e.keyCode.BACKSPACE_SAFARI||n.ctrlKey&&f===e.keyCode.X&&(i="cut",a=document.createElement("input"),(s=(r="on"+i)in a)||(a.setAttribute(r,"return;"),s="function"==typeof a[r]),a=null,!s))n.preventDefault(),L(u,f,p),A(u,k(),c().p,n,Z!==k().join("")),u.inputmask._valueGet()===x().join("")?d.trigger("cleared"):!0===N(k())&&d.trigger("complete"),o.showTooltip&&(u.title=o.tooltip||c().mask);else if(f===e.keyCode.END||f===e.keyCode.PAGE_DOWN){n.preventDefault();var g=D(h());o.insertMode||g!==_()||n.shiftKey||g--,O(u,n.shiftKey?p.begin:g,g,!0)}else f===e.keyCode.HOME&&!n.shiftKey||f===e.keyCode.PAGE_UP?(n.preventDefault(),O(u,0,n.shiftKey?p.begin:0,!0)):(o.undoOnEscape&&f===e.keyCode.ESCAPE||90===f&&n.ctrlKey)&&!0!==n.altKey?(E(u,!0,!1,Z.split("")),d.trigger("click")):f!==e.keyCode.INSERT||n.shiftKey||n.ctrlKey?!0===o.tabThrough&&f===e.keyCode.TAB?(!0===n.shiftKey?(null===m(p.begin).fn&&(p.begin=D(p.begin)),p.end=M(p.begin,!0),p.begin=M(p.end,!0)):(p.begin=D(p.begin,!0),p.end=D(p.begin,!0),p.end<_()&&p.end--),p.begin<_()&&(n.preventDefault(),O(u,p.begin,p.end))):!1!==o.insertMode||n.shiftKey||(f===e.keyCode.RIGHT?setTimeout(function(){var t=O(u);O(u,t.begin)},0):f===e.keyCode.LEFT&&setTimeout(function(){var t=O(u);O(u,it?t.begin+1:t.begin-1)},0)):(o.insertMode=!o.insertMode,O(u,o.insertMode||p.begin!==_()?p.begin:p.begin-1));o.onKeyDown.call(this,n,k(),O(u).begin,o),rt=-1!==t.inArray(f,o.ignorables)}function B(n,i,a,r,s){var l=t(this),u=n.which||n.charCode||n.keyCode;if(!(!0===i||n.ctrlKey&&n.altKey)&&(n.ctrlKey||n.metaKey||rt))return u===e.keyCode.ENTER&&Z!==k().join("")&&(Z=k().join(""),setTimeout(function(){l.trigger("change")},0)),!0;if(u){46===u&&!1===n.shiftKey&&","===o.radixPoint&&(u=44);var h,f=i?{begin:s,end:s}:O(this),p=String.fromCharCode(u);c().writeOutBuffer=!0;var g=C(f,p,r);if(!1!==g){var m=g.pos;if(d(!0),void 0!==g.caret)h=g.caret;else{var v=c().validPositions;h=!o.keepStatic&&(void 0!==v[m+1]&&b(m+1,v[m].locator.slice(),m).length>1||void 0!==v[m].alternation)?m+1:D(m)}c().p=h}if(!1!==a){var y=this;if(setTimeout(function(){o.onKeyValidation.call(y,u,g,o)},0),c().writeOutBuffer&&!1!==g){var x=k();A(this,x,o.numericInput&&void 0===g.caret?M(h):h,n,!0!==i),!0!==i&&setTimeout(function(){!0===N(x)&&l.trigger("complete")},0)}}if(o.showTooltip&&(this.title=o.tooltip||c().mask),n.preventDefault(),i)return g.forwardPosition=h,g}}function j(e){var n,i=this,a=e.originalEvent||e,r=t(i),s=i.inputmask._valueGet(!0),l=O(i);it&&(n=l.end,l.end=l.begin,l.begin=n);var u=s.substr(0,l.begin),c=s.substr(l.end,s.length);u===(it?x().reverse():x()).slice(0,l.begin).join("")&&(u=""),c===(it?x().reverse():x()).slice(l.end).join("")&&(c=""),it&&(n=u,u=c,c=n),window.clipboardData&&window.clipboardData.getData?s=u+window.clipboardData.getData("Text")+c:a.clipboardData&&a.clipboardData.getData&&(s=u+a.clipboardData.getData("text/plain")+c);var d=s;if(t.isFunction(o.onBeforePaste)){if(!1===(d=o.onBeforePaste(s,o)))return e.preventDefault();d||(d=s)}return E(i,!1,!1,it?d.split("").reverse():d.toString().split("")),A(i,k(),D(h()),e,!0),!0===N(k())&&r.trigger("complete"),e.preventDefault()}function W(n){var i=this,a=i.inputmask._valueGet();if(k().join("")!==a){var o=O(i);if(a=a.replace(new RegExp("("+e.escapeRegex(x().join(""))+")*"),""),s){var r=a.replace(k().join(""),"");if(1===r.length){var l=new t.Event("keypress");return l.which=r.charCodeAt(0),B.call(i,l,!0,!0,!1,c().validPositions[o.begin-1]?o.begin:o.begin-1),!1}}if(o.begin>a.length&&(O(i,a.length),o=O(i)),k().length-a.length!=1||a.charAt(o.begin)===k()[o.begin]||a.charAt(o.begin+1)===k()[o.begin]||T(o.begin)){for(var u=h()+1,d=k().slice(u).join("");null===a.match(e.escapeRegex(d)+"$");)d=d.slice(1);E(i,!0,!1,a=(a=a.replace(d,"")).split("")),!0===N(k())&&t(i).trigger("complete")}else n.keyCode=e.keyCode.BACKSPACE,$.call(i,n);n.preventDefault()}}function H(e){var n=this.inputmask._valueGet();E(this,!0,!1,(t.isFunction(o.onBeforeMask)&&o.onBeforeMask(n,o)||n).split("")),Z=k().join(""),(o.clearMaskOnLostFocus||o.clearIncomplete)&&this.inputmask._valueGet()===x().join("")&&this.inputmask._valueSet("")}function V(t){var e=this,n=e.inputmask._valueGet();o.showMaskOnFocus&&(!o.showMaskOnHover||o.showMaskOnHover&&""===n)?e.inputmask._valueGet()!==k().join("")&&A(e,k(),D(h())):!1===st&&O(e,D(h())),!0===o.positionCaretOnTab&&setTimeout(function(){O(e,D(h()))},0),Z=k().join("")}function z(t){if(st=!1,o.clearMaskOnLostFocus&&document.activeElement!==this){var e=k().slice(),n=this.inputmask._valueGet();n!==this.getAttribute("placeholder")&&""!==n&&(-1===h()&&n===x().join("")?e=[]:R(e),A(this,e))}}function q(e){var n=this;setTimeout(function(){if(document.activeElement===n){var e=O(n);if(e.begin===e.end)if(function(e){if(o.radixFocus&&""!==o.radixPoint){var n=c().validPositions;if(void 0===n[e]||n[e].input===P(e)){if(e<D(-1))return!0;var i=t.inArray(o.radixPoint,k());if(-1!==i){for(var a in n)if(a>i&&n[a].input!==P(a))return!1;return!0}}}return!1}(e.begin))O(n,o.numericInput?D(t.inArray(o.radixPoint,k())):t.inArray(o.radixPoint,k()));else{var i=e.begin,a=D(h(i,!0));if(a>i)O(n,T(i)||T(i-1)?i:D(i));else{var r=P(a);(""!==r&&k()[a]!==r||!T(a,!0)&&m(a).def===r)&&(a=D(a)),O(n,a)}}}},0)}function Y(t){var e=this;setTimeout(function(){O(e,0,D(h()))},0)}function U(n){var i=this,a=t(i),r=O(i),s=n.originalEvent||n,l=window.clipboardData||s.clipboardData,u=it?k().slice(r.end,r.begin):k().slice(r.begin,r.end);l.setData("text",it?u.reverse().join(""):u.join("")),document.execCommand&&document.execCommand("copy"),L(i,e.keyCode.DELETE,r),A(i,k(),c().p,n,Z!==k().join("")),i.inputmask._valueGet()===x().join("")&&a.trigger("cleared"),o.showTooltip&&(i.title=o.tooltip||c().mask)}function G(e){var n=t(this);if(this.inputmask){var i=this.inputmask._valueGet(),a=k().slice();Z!==a.join("")&&setTimeout(function(){n.trigger("change"),Z=a.join("")},0),""!==i&&(o.clearMaskOnLostFocus&&(-1===h()&&i===x().join("")?a=[]:R(a)),!1===N(a)&&(setTimeout(function(){n.trigger("incomplete")},0),o.clearIncomplete&&(d(),a=o.clearMaskOnLostFocus?[]:x().slice())),A(this,a,void 0,e))}}function Q(t){st=!0,document.activeElement!==this&&o.showMaskOnHover&&this.inputmask._valueGet()!==k().join("")&&A(this,k())}function X(t){Z!==k().join("")&&tt.trigger("change"),o.clearMaskOnLostFocus&&-1===h()&&J.inputmask._valueGet&&J.inputmask._valueGet()===x().join("")&&J.inputmask._valueSet(""),o.removeMaskOnSubmit&&(J.inputmask._valueSet(J.inputmask.unmaskedvalue(),!0),setTimeout(function(){A(J,k())},0))}function K(t){setTimeout(function(){tt.trigger("setvalue")},0)}var Z,J,tt,et,nt,it=!1,at=!1,ot=!1,rt=!1,st=!0,lt={on:function(n,i,a){var r=function(n){if(void 0===this.inputmask&&"FORM"!==this.nodeName){var i=t.data(this,"_inputmask_opts");i?new e(i).mask(this):lt.off(this)}else{if("setvalue"===n.type||!(this.disabled||this.readOnly&&!("keydown"===n.type&&n.ctrlKey&&67===n.keyCode||!1===o.tabThrough&&n.keyCode===e.keyCode.TAB))){switch(n.type){case"input":if(!0===ot)return ot=!1,n.preventDefault();break;case"keydown":at=!1,ot=!1;break;case"keypress":if(!0===at)return n.preventDefault();at=!0;break;case"click":if(s){var r=this;return setTimeout(function(){a.apply(r,arguments)},0),!1}}var l=a.apply(this,arguments);return!1===l&&(n.preventDefault(),n.stopPropagation()),l}n.preventDefault()}};n.inputmask.events[i]=n.inputmask.events[i]||[],n.inputmask.events[i].push(r),-1!==t.inArray(i,["submit","reset"])?null!=n.form&&t(n.form).on(i,r):t(n).on(i,r)},off:function(e,n){var i;e.inputmask&&e.inputmask.events&&(n?(i=[])[n]=e.inputmask.events[n]:i=e.inputmask.events,t.each(i,function(n,i){for(;i.length>0;){var a=i.pop();-1!==t.inArray(n,["submit","reset"])?null!=e.form&&t(e.form).off(n,a):t(e).off(n,a)}delete e.inputmask.events[n]}))}};if(void 0!==n)switch(n.action){case"isComplete":return J=n.el,N(k());case"unmaskedvalue":return void 0!==(J=n.el)&&void 0!==J.inputmask?(i=J.inputmask.maskset,o=J.inputmask.opts,it=J.inputmask.isRTL):(nt=n.value,o.numericInput&&(it=!0),nt=(t.isFunction(o.onBeforeMask)&&o.onBeforeMask(nt,o)||nt).split(""),E(void 0,!1,!1,it?nt.reverse():nt),t.isFunction(o.onBeforeWrite)&&o.onBeforeWrite(void 0,k(),0,o)),I(J);case"mask":J=n.el,i=J.inputmask.maskset,o=J.inputmask.opts,it=J.inputmask.isRTL,Z=k().join(""),function(e){if(tt=t(J=e),o.showTooltip&&(J.title=o.tooltip||c().mask),("rtl"===J.dir||o.rightAlign)&&(J.style.textAlign="right"),("rtl"===J.dir||o.numericInput)&&(J.dir="ltr",J.removeAttribute("dir"),J.inputmask.isRTL=!0,it=!0),lt.off(J),function(e){function n(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==h()||!0!==o.nullable?document.activeElement===this&&o.clearMaskOnLostFocus?(it?R(k().slice()).reverse():R(k().slice())).join(""):a.call(this):"":a.call(this)}function i(e){r.call(this,e),this.inputmask&&t(this).trigger("setvalue")}var a,r,s;if(!e.inputmask.__valueGet){if(Object.getOwnPropertyDescriptor){"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"==typeof"test".__proto__?function(t){return t.__proto__}:function(t){return t.constructor.prototype});var l=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value"):void 0;l&&l.get&&l.set?(a=l.get,r=l.set,Object.defineProperty(e,"value",{get:n,set:i,configurable:!0})):"INPUT"!==e.tagName&&(a=function(){return this.textContent},r=function(t){this.textContent=t},Object.defineProperty(e,"value",{get:n,set:i,configurable:!0}))}else document.__lookupGetter__&&e.__lookupGetter__("value")&&(a=e.__lookupGetter__("value"),r=e.__lookupSetter__("value"),e.__defineGetter__("value",n),e.__defineSetter__("value",i));e.inputmask.__valueGet=a,e.inputmask._valueGet=function(t){return it&&!0!==t?a.call(this.el).split("").reverse().join(""):a.call(this.el)},e.inputmask.__valueSet=r,e.inputmask._valueSet=function(t,e){r.call(this.el,null==t?"":!0!==e&&it?t.split("").reverse().join(""):t)},void 0===a&&(a=function(){return this.value},r=function(t){this.value=t},function(e){if(t.valHooks&&(void 0===t.valHooks[e]||!0!==t.valHooks[e].inputmaskpatch)){var n=t.valHooks[e]&&t.valHooks[e].get?t.valHooks[e].get:function(t){return t.value},i=t.valHooks[e]&&t.valHooks[e].set?t.valHooks[e].set:function(t,e){return t.value=e,t};t.valHooks[e]={get:function(t){if(t.inputmask){if(t.inputmask.opts.autoUnmask)return t.inputmask.unmaskedvalue();var e=n(t);return-1!==h(void 0,void 0,t.inputmask.maskset.validPositions)||!0!==o.nullable?e:""}return n(t)},set:function(e,n){var a,o=t(e);return a=i(e,n),e.inputmask&&o.trigger("setvalue"),a},inputmaskpatch:!0}}}(e.type),s=e,lt.on(s,"mouseenter",function(e){var n=t(this);this.inputmask._valueGet()!==k().join("")&&n.trigger("setvalue")}))}}(J),function(e,n){var i=e.getAttribute("type"),a="INPUT"===e.tagName&&-1!==t.inArray(i,n.supportsInputType)||e.isContentEditable||"TEXTAREA"===e.tagName;if(!a&&"INPUT"===e.tagName){var o=document.createElement("input");o.setAttribute("type",i),a="text"===o.type,o=null}return a}(J,o)&&(lt.on(J,"submit",X),lt.on(J,"reset",K),lt.on(J,"mouseenter",Q),lt.on(J,"blur",G),lt.on(J,"focus",V),lt.on(J,"mouseleave",z),lt.on(J,"click",q),lt.on(J,"dblclick",Y),lt.on(J,"paste",j),lt.on(J,"dragdrop",j),lt.on(J,"drop",j),lt.on(J,"cut",U),lt.on(J,"complete",o.oncomplete),lt.on(J,"incomplete",o.onincomplete),lt.on(J,"cleared",o.oncleared),lt.on(J,"keydown",$),lt.on(J,"keypress",B),lt.on(J,"input",W)),lt.on(J,"setvalue",H),""!==J.inputmask._valueGet()||!1===o.clearMaskOnLostFocus||document.activeElement===J){var n=t.isFunction(o.onBeforeMask)&&o.onBeforeMask(J.inputmask._valueGet(),o)||J.inputmask._valueGet();E(J,!0,!1,n.split(""));var i=k().slice();Z=i.join(""),!1===N(i)&&o.clearIncomplete&&d(),o.clearMaskOnLostFocus&&document.activeElement!==J&&(-1===h()?i=[]:R(i)),A(J,i),document.activeElement===J&&O(J,D(h()))}}(J);break;case"format":return o.numericInput&&(it=!0),nt=(t.isFunction(o.onBeforeMask)&&o.onBeforeMask(n.value,o)||n.value).split(""),E(void 0,!1,!1,it?nt.reverse():nt),t.isFunction(o.onBeforeWrite)&&o.onBeforeWrite(void 0,k(),0,o),n.metadata?{value:it?k().slice().reverse().join(""):k().join(""),metadata:a({action:"getmetadata"},i,o)}:it?k().slice().reverse().join(""):k().join("");case"isValid":o.numericInput&&(it=!0),n.value?(nt=n.value.split(""),E(void 0,!1,!0,it?nt.reverse():nt)):n.value=k().join("");for(var ut=k(),ct=F(),dt=ut.length-1;dt>ct&&!T(dt);dt--);return ut.splice(ct,dt+1-ct),N(ut)&&n.value===k().join("");case"getemptymask":return x().join("");case"remove":J=n.el,tt=t(J),i=J.inputmask.maskset,o=J.inputmask.opts,J.inputmask._valueSet(I(J)),lt.off(J),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(J),"value")&&J.inputmask.__valueGet&&Object.defineProperty(J,"value",{get:J.inputmask.__valueGet,set:J.inputmask.__valueSet,configurable:!0}):document.__lookupGetter__&&J.__lookupGetter__("value")&&J.inputmask.__valueGet&&(J.__defineGetter__("value",J.inputmask.__valueGet),J.__defineSetter__("value",J.inputmask.__valueSet)),J.inputmask=void 0;break;case"getmetadata":if(t.isArray(i.metadata)){for(var ht,ft=h(void 0,!0);ft>=0;ft--)if(c().validPositions[ft]&&void 0!==c().validPositions[ft].alternation){ht=c().validPositions[ft].alternation;break}return void 0!==ht?i.metadata[c().validPositions[ft].locator[ht]]:[]}return i.metadata}}e.prototype={defaults:{placeholder:"_",optionalmarker:{start:"[",end:"]"},quantifiermarker:{start:"{",end:"}"},groupmarker:{start:"(",end:")"},alternatormarker:"|",escapeChar:"\\",mask:null,oncomplete:t.noop,onincomplete:t.noop,oncleared:t.noop,repeat:0,greedy:!0,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,aliases:{},alias:null,onKeyDown:t.noop,onBeforeMask:null,onBeforePaste:function(e,n){return t.isFunction(n.onBeforeMask)?n.onBeforeMask(e,n):e},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:t.noop,skipOptionalPartCharacter:" ",showTooltip:!1,tooltip:void 0,numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",radixPointDefinitionSymbol:void 0,groupSeparator:"",radixFocus:!1,nojumps:!1,nojumpsThreshold:0,keepStatic:null,positionCaretOnTab:!1,tabThrough:!1,supportsInputType:["text","tel","password"],definitions:{9:{validator:"[0-9]",cardinality:1,definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",cardinality:1,definitionSymbol:"*"},"*":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",cardinality:1}},ignorables:[8,9,13,19,27,33,34,35,36,37,38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123],isComplete:null,canClearPosition:t.noop,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0},masksCache:{},mask:function(o){var r=this;return"string"==typeof o&&(o=document.getElementById(o)||document.querySelectorAll(o)),o=o.nodeName?[o]:o,t.each(o,function(o,s){var l=t.extend(!0,{},r.opts);!function(e,i,a){function o(t,n){null!==(n=void 0!==n?n:e.getAttribute("data-inputmask-"+t))&&("string"==typeof n&&(0===t.indexOf("on")?n=window[n]:"false"===n?n=!1:"true"===n&&(n=!0)),a[t]=n)}var r,s,l,u,c=e.getAttribute("data-inputmask");if(c&&""!==c&&(c=c.replace(new RegExp("'","g"),'"'),s=JSON.parse("{"+c+"}")),s)for(u in l=void 0,s)if("alias"===u.toLowerCase()){l=s[u];break}for(r in o("alias",l),a.alias&&n(a.alias,a,i),i){if(s)for(u in l=void 0,s)if(u.toLowerCase()===r.toLowerCase()){l=s[u];break}o(r,l)}t.extend(!0,i,a)}(s,l,t.extend(!0,{},r.userOptions));var u=i(l,r.noMasksCache);void 0!==u&&(void 0!==s.inputmask&&s.inputmask.remove(),s.inputmask=new e,s.inputmask.opts=l,s.inputmask.noMasksCache=r.noMasksCache,s.inputmask.userOptions=t.extend(!0,{},r.userOptions),s.inputmask.el=s,s.inputmask.maskset=u,s.inputmask.isRTL=!1,t.data(s,"_inputmask_opts",l),a({action:"mask",el:s}))}),o&&o[0]&&o[0].inputmask||this},option:function(e,n){return"string"==typeof e?this.opts[e]:"object"==typeof e?(t.extend(this.userOptions,e),this.el&&!0!==n&&this.mask(this.el),this):void 0},unmaskedvalue:function(t){return a({action:"unmaskedvalue",el:this.el,value:t},this.el&&this.el.inputmask?this.el.inputmask.maskset:i(this.opts,this.noMasksCache),this.opts)},remove:function(){return this.el?(a({action:"remove",el:this.el}),this.el.inputmask=void 0,this.el):void 0},getemptymask:function(){return a({action:"getemptymask"},this.maskset||i(this.opts,this.noMasksCache),this.opts)},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return a({action:"isComplete",el:this.el},this.maskset||i(this.opts,this.noMasksCache),this.opts)},getmetadata:function(){return a({action:"getmetadata"},this.maskset||i(this.opts,this.noMasksCache),this.opts)},isValid:function(t){return a({action:"isValid",value:t},this.maskset||i(this.opts,this.noMasksCache),this.opts)},format:function(t,e){return a({action:"format",value:t,metadata:e},this.maskset||i(this.opts,this.noMasksCache),this.opts)}},e.extendDefaults=function(n){t.extend(!0,e.prototype.defaults,n)},e.extendDefinitions=function(n){t.extend(!0,e.prototype.defaults.definitions,n)},e.extendAliases=function(n){t.extend(!0,e.prototype.defaults.aliases,n)},e.format=function(t,n,i){return e(n).format(t,i)},e.unmask=function(t,n){return e(n).unmaskedvalue(t)},e.isValid=function(t,n){return e(n).isValid(t)},e.remove=function(e){t.each(e,function(t,e){e.inputmask&&e.inputmask.remove()})},e.escapeRegex=function(t){return t.replace(new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim"),"\\$1")},e.keyCode={ALT:18,BACKSPACE:8,BACKSPACE_SAFARI:127,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91,X:88};var o=navigator.userAgent,r=/mobile/i.test(o),s=/iemobile/i.test(o),l=/iphone/i.test(o)&&!s;/android.*safari.*/i.test(o),window.Inputmask=e}(jQuery),function(t,e){void 0===t.fn.inputmask&&(t.fn.inputmask=function(n,i){var a,o=this[0];if(void 0===i&&(i={}),"string"==typeof n)switch(n){case"unmaskedvalue":return o&&o.inputmask?o.inputmask.unmaskedvalue():t(o).val();case"remove":return this.each(function(){this.inputmask&&this.inputmask.remove()});case"getemptymask":return o&&o.inputmask?o.inputmask.getemptymask():"";case"hasMaskedValue":return!(!o||!o.inputmask)&&o.inputmask.hasMaskedValue();case"isComplete":return!o||!o.inputmask||o.inputmask.isComplete();case"getmetadata":return o&&o.inputmask?o.inputmask.getmetadata():void 0;case"setvalue":t(o).val(i),o&&void 0!==o.inputmask&&t(o).triggerHandler("setvalue");break;case"option":if("string"!=typeof i)return this.each(function(){return void 0!==this.inputmask?this.inputmask.option(i):void 0});if(o&&void 0!==o.inputmask)return o.inputmask.option(i);break;default:return i.alias=n,a=new e(i),this.each(function(){a.mask(this)})}else{if("object"==typeof n)return a=new e(n),void 0===n.mask&&void 0===n.alias?this.each(function(){return void 0!==this.inputmask?this.inputmask.option(n):void a.mask(this)}):this.each(function(){a.mask(this)});if(void 0===n)return this.each(function(){(a=new e(i)).mask(this)})}}),t.fn.inputmask}(jQuery,Inputmask),function(t,e){e.extendDefinitions({h:{validator:"[01][0-9]|2[0-3]",cardinality:2,prevalidator:[{validator:"[0-2]",cardinality:1}]},s:{validator:"[0-5][0-9]",cardinality:2,prevalidator:[{validator:"[0-5]",cardinality:1}]},d:{validator:"0[1-9]|[12][0-9]|3[01]",cardinality:2,prevalidator:[{validator:"[0-3]",cardinality:1}]},m:{validator:"0[1-9]|1[012]",cardinality:2,prevalidator:[{validator:"[01]",cardinality:1}]},y:{validator:"(19|20)\\d{2}",cardinality:4,prevalidator:[{validator:"[12]",cardinality:1},{validator:"(19|20)",cardinality:2},{validator:"(19|20)\\d",cardinality:3}]}}),e.extendAliases({"dd/mm/yyyy":{mask:"1/2/y",placeholder:"dd/mm/yyyy",regex:{val1pre:new RegExp("[0-3]"),val1:new RegExp("0[1-9]|[12][0-9]|3[01]"),val2pre:function(t){var n=e.escapeRegex.call(this,t);return new RegExp("((0[1-9]|[12][0-9]|3[01])"+n+"[01])")},val2:function(t){var n=e.escapeRegex.call(this,t);return new RegExp("((0[1-9]|[12][0-9])"+n+"(0[1-9]|1[012]))|(30"+n+"(0[13-9]|1[012]))|(31"+n+"(0[13578]|1[02]))")}},leapday:"29/02/",separator:"/",yearrange:{minyear:1900,maxyear:2099},isInYearRange:function(t,e,n){if(isNaN(t))return!1;var i=parseInt(t.concat(e.toString().slice(t.length))),a=parseInt(t.concat(n.toString().slice(t.length)));return!isNaN(i)&&(i>=e&&n>=i)||!isNaN(a)&&(a>=e&&n>=a)},determinebaseyear:function(t,e,n){var i=(new Date).getFullYear();if(t>i)return t;if(i>e){for(var a=e.toString().slice(0,2),o=e.toString().slice(2,4);a+n>e;)a--;var r=a+o;return t>r?t:r}if(i>=t&&e>=i){for(var s=i.toString().slice(0,2);s+n>e;)s--;var l=s+n;return t>l?t:l}return i},onKeyDown:function(n,i,a,o){var r=t(this);if(n.ctrlKey&&n.keyCode===e.keyCode.RIGHT){var s=new Date;r.val(s.getDate().toString()+(s.getMonth()+1).toString()+s.getFullYear().toString()),r.trigger("setvalue")}},getFrontValue:function(t,e,n){for(var i=0,a=0,o=0;o<t.length&&"2"!==t.charAt(o);o++){var r=n.definitions[t.charAt(o)];r?(i+=a,a=r.cardinality):a++}return e.join("").substr(i,a)},definitions:{1:{validator:function(t,e,n,i,a){var o=a.regex.val1.test(t);return i||o||t.charAt(1)!==a.separator&&-1==="-./".indexOf(t.charAt(1))||!(o=a.regex.val1.test("0"+t.charAt(0)))?o:(e.buffer[n-1]="0",{refreshFromBuffer:{start:n-1,end:n},pos:n,c:t.charAt(0)})},cardinality:2,prevalidator:[{validator:function(t,e,n,i,a){var o=t;isNaN(e.buffer[n+1])||(o+=e.buffer[n+1]);var r=1===o.length?a.regex.val1pre.test(o):a.regex.val1.test(o);if(!i&&!r){if(r=a.regex.val1.test(t+"0"))return e.buffer[n]=t,e.buffer[++n]="0",{pos:n,c:"0"};if(r=a.regex.val1.test("0"+t))return e.buffer[n]="0",{pos:++n}}return r},cardinality:1}]},2:{validator:function(t,e,n,i,a){var o=a.getFrontValue(e.mask,e.buffer,a);-1!==o.indexOf(a.placeholder[0])&&(o="01"+a.separator);var r=a.regex.val2(a.separator).test(o+t);if(!i&&!r&&(t.charAt(1)===a.separator||-1!=="-./".indexOf(t.charAt(1)))&&(r=a.regex.val2(a.separator).test(o+"0"+t.charAt(0))))return e.buffer[n-1]="0",{refreshFromBuffer:{start:n-1,end:n},pos:n,c:t.charAt(0)};if(a.mask.indexOf("2")===a.mask.length-1&&r){if(e.buffer.join("").substr(4,4)+t!==a.leapday)return!0;var s=parseInt(e.buffer.join("").substr(0,4),10);return s%4==0&&(s%100!=0||s%400==0)}return r},cardinality:2,prevalidator:[{validator:function(t,e,n,i,a){isNaN(e.buffer[n+1])||(t+=e.buffer[n+1]);var o=a.getFrontValue(e.mask,e.buffer,a);-1!==o.indexOf(a.placeholder[0])&&(o="01"+a.separator);var r=1===t.length?a.regex.val2pre(a.separator).test(o+t):a.regex.val2(a.separator).test(o+t);return i||r||!(r=a.regex.val2(a.separator).test(o+"0"+t))?r:(e.buffer[n]="0",{pos:++n})},cardinality:1}]},y:{validator:function(t,e,n,i,a){if(a.isInYearRange(t,a.yearrange.minyear,a.yearrange.maxyear)){if(e.buffer.join("").substr(0,6)!==a.leapday)return!0;var o=parseInt(t,10);return o%4==0&&(o%100!=0||o%400==0)}return!1},cardinality:4,prevalidator:[{validator:function(t,e,n,i,a){var o=a.isInYearRange(t,a.yearrange.minyear,a.yearrange.maxyear);if(!i&&!o){var r=a.determinebaseyear(a.yearrange.minyear,a.yearrange.maxyear,t+"0").toString().slice(0,1);if(o=a.isInYearRange(r+t,a.yearrange.minyear,a.yearrange.maxyear))return e.buffer[n++]=r.charAt(0),{pos:n};if(r=a.determinebaseyear(a.yearrange.minyear,a.yearrange.maxyear,t+"0").toString().slice(0,2),o=a.isInYearRange(r+t,a.yearrange.minyear,a.yearrange.maxyear))return e.buffer[n++]=r.charAt(0),e.buffer[n++]=r.charAt(1),{pos:n}}return o},cardinality:1},{validator:function(t,e,n,i,a){var o=a.isInYearRange(t,a.yearrange.minyear,a.yearrange.maxyear);if(!i&&!o){var r=a.determinebaseyear(a.yearrange.minyear,a.yearrange.maxyear,t).toString().slice(0,2);if(o=a.isInYearRange(t[0]+r[1]+t[1],a.yearrange.minyear,a.yearrange.maxyear))return e.buffer[n++]=r.charAt(1),{pos:n};if(r=a.determinebaseyear(a.yearrange.minyear,a.yearrange.maxyear,t).toString().slice(0,2),a.isInYearRange(r+t,a.yearrange.minyear,a.yearrange.maxyear))if(e.buffer.join("").substr(0,6)!==a.leapday)o=!0;else{var s=parseInt(t,10);o=s%4==0&&(s%100!=0||s%400==0)}else o=!1;if(o)return e.buffer[n-1]=r.charAt(0),e.buffer[n++]=r.charAt(1),e.buffer[n++]=t.charAt(0),{refreshFromBuffer:{start:n-3,end:n},pos:n}}return o},cardinality:2},{validator:function(t,e,n,i,a){return a.isInYearRange(t,a.yearrange.minyear,a.yearrange.maxyear)},cardinality:3}]}},insertMode:!1,autoUnmask:!1},"mm/dd/yyyy":{placeholder:"mm/dd/yyyy",alias:"dd/mm/yyyy",regex:{val2pre:function(t){var n=e.escapeRegex.call(this,t);return new RegExp("((0[13-9]|1[012])"+n+"[0-3])|(02"+n+"[0-2])")},val2:function(t){var n=e.escapeRegex.call(this,t);return new RegExp("((0[1-9]|1[012])"+n+"(0[1-9]|[12][0-9]))|((0[13-9]|1[012])"+n+"30)|((0[13578]|1[02])"+n+"31)")},val1pre:new RegExp("[01]"),val1:new RegExp("0[1-9]|1[012]")},leapday:"02/29/",onKeyDown:function(n,i,a,o){var r=t(this);if(n.ctrlKey&&n.keyCode===e.keyCode.RIGHT){var s=new Date;r.val((s.getMonth()+1).toString()+s.getDate().toString()+s.getFullYear().toString()),r.trigger("setvalue")}}},"yyyy/mm/dd":{mask:"y/1/2",placeholder:"yyyy/mm/dd",alias:"mm/dd/yyyy",leapday:"/02/29",onKeyDown:function(n,i,a,o){var r=t(this);if(n.ctrlKey&&n.keyCode===e.keyCode.RIGHT){var s=new Date;r.val(s.getFullYear().toString()+(s.getMonth()+1).toString()+s.getDate().toString()),r.trigger("setvalue")}}},"dd.mm.yyyy":{mask:"1.2.y",placeholder:"dd.mm.yyyy",leapday:"29.02.",separator:".",alias:"dd/mm/yyyy"},"dd-mm-yyyy":{mask:"1-2-y",placeholder:"dd-mm-yyyy",leapday:"29-02-",separator:"-",alias:"dd/mm/yyyy"},"mm.dd.yyyy":{mask:"1.2.y",placeholder:"mm.dd.yyyy",leapday:"02.29.",separator:".",alias:"mm/dd/yyyy"},"mm-dd-yyyy":{mask:"1-2-y",placeholder:"mm-dd-yyyy",leapday:"02-29-",separator:"-",alias:"mm/dd/yyyy"},"yyyy.mm.dd":{mask:"y.1.2",placeholder:"yyyy.mm.dd",leapday:".02.29",separator:".",alias:"yyyy/mm/dd"},"yyyy-mm-dd":{mask:"y-1-2",placeholder:"yyyy-mm-dd",leapday:"-02-29",separator:"-",alias:"yyyy/mm/dd"},datetime:{mask:"1/2/y h:s",placeholder:"dd/mm/yyyy hh:mm",alias:"dd/mm/yyyy",regex:{hrspre:new RegExp("[012]"),hrs24:new RegExp("2[0-4]|1[3-9]"),hrs:new RegExp("[01][0-9]|2[0-4]"),ampm:new RegExp("^[a|p|A|P][m|M]"),mspre:new RegExp("[0-5]"),ms:new RegExp("[0-5][0-9]")},timeseparator:":",hourFormat:"24",definitions:{h:{validator:function(t,e,n,i,a){if("24"===a.hourFormat&&24===parseInt(t,10))return e.buffer[n-1]="0",e.buffer[n]="0",{refreshFromBuffer:{start:n-1,end:n},c:"0"};var o=a.regex.hrs.test(t);if(!i&&!o&&(t.charAt(1)===a.timeseparator||-1!=="-.:".indexOf(t.charAt(1)))&&(o=a.regex.hrs.test("0"+t.charAt(0))))return e.buffer[n-1]="0",e.buffer[n]=t.charAt(0),{refreshFromBuffer:{start:++n-2,end:n},pos:n,c:a.timeseparator};if(o&&"24"!==a.hourFormat&&a.regex.hrs24.test(t)){var r=parseInt(t,10);return 24===r?(e.buffer[n+5]="a",e.buffer[n+6]="m"):(e.buffer[n+5]="p",e.buffer[n+6]="m"),10>(r-=12)?(e.buffer[n]=r.toString(),e.buffer[n-1]="0"):(e.buffer[n]=r.toString().charAt(1),e.buffer[n-1]=r.toString().charAt(0)),{refreshFromBuffer:{start:n-1,end:n+6},c:e.buffer[n]}}return o},cardinality:2,prevalidator:[{validator:function(t,e,n,i,a){var o=a.regex.hrspre.test(t);return i||o||!(o=a.regex.hrs.test("0"+t))?o:(e.buffer[n]="0",{pos:++n})},cardinality:1}]},s:{validator:"[0-5][0-9]",cardinality:2,prevalidator:[{validator:function(t,e,n,i,a){var o=a.regex.mspre.test(t);return i||o||!(o=a.regex.ms.test("0"+t))?o:(e.buffer[n]="0",{pos:++n})},cardinality:1}]},t:{validator:function(t,e,n,i,a){return a.regex.ampm.test(t+"m")},casing:"lower",cardinality:1}},insertMode:!1,autoUnmask:!1},datetime12:{mask:"1/2/y h:s t\\m",placeholder:"dd/mm/yyyy hh:mm xm",alias:"datetime",hourFormat:"12"},"mm/dd/yyyy hh:mm xm":{mask:"1/2/y h:s t\\m",placeholder:"mm/dd/yyyy hh:mm xm",alias:"datetime12",regex:{val2pre:function(t){var n=e.escapeRegex.call(this,t);return new RegExp("((0[13-9]|1[012])"+n+"[0-3])|(02"+n+"[0-2])")},val2:function(t){var n=e.escapeRegex.call(this,t);return new RegExp("((0[1-9]|1[012])"+n+"(0[1-9]|[12][0-9]))|((0[13-9]|1[012])"+n+"30)|((0[13578]|1[02])"+n+"31)")},val1pre:new RegExp("[01]"),val1:new RegExp("0[1-9]|1[012]")},leapday:"02/29/",onKeyDown:function(n,i,a,o){var r=t(this);if(n.ctrlKey&&n.keyCode===e.keyCode.RIGHT){var s=new Date;r.val((s.getMonth()+1).toString()+s.getDate().toString()+s.getFullYear().toString()),r.trigger("setvalue")}}},"hh:mm t":{mask:"h:s t\\m",placeholder:"hh:mm xm",alias:"datetime",hourFormat:"12"},"h:s t":{mask:"h:s t\\m",placeholder:"hh:mm xm",alias:"datetime",hourFormat:"12"},"hh:mm:ss":{mask:"h:s:s",placeholder:"hh:mm:ss",alias:"datetime",autoUnmask:!1},"hh:mm":{mask:"h:s",placeholder:"hh:mm",alias:"datetime",autoUnmask:!1},date:{alias:"dd/mm/yyyy"},"mm/yyyy":{mask:"1/y",placeholder:"mm/yyyy",leapday:"donotuse",separator:"/",alias:"mm/dd/yyyy"},shamsi:{regex:{val2pre:function(t){var n=e.escapeRegex.call(this,t);return new RegExp("((0[1-9]|1[012])"+n+"[0-3])")},val2:function(t){var n=e.escapeRegex.call(this,t);return new RegExp("((0[1-9]|1[012])"+n+"(0[1-9]|[12][0-9]))|((0[1-9]|1[012])"+n+"30)|((0[1-6])"+n+"31)")},val1pre:new RegExp("[01]"),val1:new RegExp("0[1-9]|1[012]")},yearrange:{minyear:1300,maxyear:1499},mask:"y/1/2",leapday:"/12/30",placeholder:"yyyy/mm/dd",alias:"mm/dd/yyyy",clearIncomplete:!0}})}(jQuery,Inputmask),function(t,e){e.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",cardinality:1,casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",cardinality:1,casing:"upper"},"#":{validator:"[0-9A-Fa-f]",cardinality:1,casing:"upper"}}),e.extendAliases({url:{definitions:{i:{validator:".",cardinality:1}},mask:"(\\http://)|(\\http\\s://)|(ftp://)|(ftp\\s://)i{+}",insertMode:!1,autoUnmask:!1},ip:{mask:"i[i[i]].i[i[i]].i[i[i]].i[i[i]]",definitions:{i:{validator:function(t,e,n,i,a){return n-1>-1&&"."!==e.buffer[n-1]?(t=e.buffer[n-1]+t,t=n-2>-1&&"."!==e.buffer[n-2]?e.buffer[n-2]+t:"0"+t):t="00"+t,new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(t)},cardinality:1}},onUnMask:function(t,e,n){return t}},email:{mask:"*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",greedy:!1,onBeforePaste:function(t,e){return(t=t.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-9A-Za-z!#$%&'*+/=?^_`{|}~-]",cardinality:1,casing:"lower"},"-":{validator:"[0-9A-Za-z-]",cardinality:1,casing:"lower"}},onUnMask:function(t,e,n){return t}},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",cardinality:1,casing:"upper"}},clearIncomplete:!0,autoUnmask:!0}})}(jQuery,Inputmask),function(t,e){e.extendAliases({numeric:{mask:function(t){function n(e){for(var n="",i=0;i<e.length;i++)n+=t.definitions[e.charAt(i)]||t.optionalmarker.start===e.charAt(i)||t.optionalmarker.end===e.charAt(i)||t.quantifiermarker.start===e.charAt(i)||t.quantifiermarker.end===e.charAt(i)||t.groupmarker.start===e.charAt(i)||t.groupmarker.end===e.charAt(i)||t.alternatormarker===e.charAt(i)?"\\"+e.charAt(i):e.charAt(i);return n}if(0!==t.repeat&&isNaN(t.integerDigits)&&(t.integerDigits=t.repeat),t.repeat=0,t.groupSeparator===t.radixPoint&&("."===t.radixPoint?t.groupSeparator=",":","===t.radixPoint?t.groupSeparator=".":t.groupSeparator="")," "===t.groupSeparator&&(t.skipOptionalPartCharacter=void 0),t.autoGroup=t.autoGroup&&""!==t.groupSeparator,t.autoGroup&&("string"==typeof t.groupSize&&isFinite(t.groupSize)&&(t.groupSize=parseInt(t.groupSize)),isFinite(t.integerDigits))){var i=Math.floor(t.integerDigits/t.groupSize),a=t.integerDigits%t.groupSize;t.integerDigits=parseInt(t.integerDigits)+(0===a?i-1:i),t.integerDigits<1&&(t.integerDigits="*")}t.placeholder.length>1&&(t.placeholder=t.placeholder.charAt(0)),t.radixFocus=t.radixFocus&&""!==t.placeholder&&!0===t.integerOptional,t.definitions[";"]=t.definitions["~"],t.definitions[";"].definitionSymbol="~",!0===t.numericInput&&(t.radixFocus=!1,t.digitsOptional=!1,isNaN(t.digits)&&(t.digits=2),t.decimalProtect=!1);var o=n(t.prefix);return o+="[+]",o+=!0===t.integerOptional?"~{1,"+t.integerDigits+"}":"~{"+t.integerDigits+"}",void 0!==t.digits&&(isNaN(t.digits)||parseInt(t.digits)>0)&&(t.decimalProtect&&(t.radixPointDefinitionSymbol=":"),o+=t.digitsOptional?"["+(t.decimalProtect?":":t.radixPoint)+";{1,"+t.digits+"}]":(t.decimalProtect?":":t.radixPoint)+";{"+t.digits+"}"),o+="[-]",o+=n(t.suffix),t.greedy=!1,null!==t.min&&(t.min=t.min.toString().replace(new RegExp(e.escapeRegex(t.groupSeparator),"g"),""),","===t.radixPoint&&(t.min=t.min.replace(t.radixPoint,"."))),null!==t.max&&(t.max=t.max.toString().replace(new RegExp(e.escapeRegex(t.groupSeparator),"g"),""),","===t.radixPoint&&(t.max=t.max.replace(t.radixPoint,"."))),o},placeholder:"",greedy:!1,digits:"*",digitsOptional:!0,radixPoint:".",radixFocus:!0,groupSize:3,groupSeparator:"",autoGroup:!1,allowPlus:!0,allowMinus:!0,negationSymbol:{front:"-",back:""},integerDigits:"+",integerOptional:!0,prefix:"",suffix:"",rightAlign:!0,decimalProtect:!0,min:null,max:null,step:1,insertMode:!0,autoUnmask:!1,unmaskAsNumber:!1,postFormat:function(n,i,a){!0===a.numericInput&&(n=n.reverse(),isFinite(i)&&(i=n.join("").length-i-1));var o,r,s=!1;n.length>=a.suffix.length&&n.join("").indexOf(a.suffix)===n.length-a.suffix.length&&(n.length=n.length-a.suffix.length,s=!0);var l=!1,u=n[i=i>=n.length?n.length-1:i<a.prefix.length?a.prefix.length:i],c=n.slice();u===a.groupSeparator&&(c.splice(i--,1),u=c[i]),u!==a.radixPoint&&u!==a.negationSymbol.front&&u!==a.negationSymbol.back&&(c[i]="?");var d=c.join(""),h=d;if(d.length>0&&a.autoGroup||-1!==d.indexOf(a.groupSeparator)){var f=e.escapeRegex(a.groupSeparator);l=0===d.indexOf(a.groupSeparator);var p=(d=d.replace(new RegExp(f,"g"),"")).split(a.radixPoint);if((d=""===a.radixPoint?d:p[0])!==a.prefix+"?0"&&d.length>=a.groupSize+a.prefix.length)for(var g=new RegExp("([-+]?[\\d?]+)([\\d?]{"+a.groupSize+"})");g.test(d)&&""!==a.groupSeparator;)d=(d=d.replace(g,"$1"+a.groupSeparator+"$2")).replace(a.groupSeparator+a.groupSeparator,a.groupSeparator);""!==a.radixPoint&&p.length>1&&(d+=a.radixPoint+p[1])}for(l=h!==d,n.length=d.length,o=0,r=d.length;r>o;o++)n[o]=d.charAt(o);var m=t.inArray("?",n);if(-1===m&&(m=t.inArray(u,n)),n[m]=u,!l&&s)for(o=0,r=a.suffix.length;r>o;o++)n.push(a.suffix.charAt(o));return m=a.numericInput&&isFinite(i)?n.join("").length-m-1:m,a.numericInput&&(n=n.reverse(),t.inArray(a.radixPoint,n)<m&&n.join("").length-a.suffix.length!==m&&(m-=1)),{pos:m,refreshFromBuffer:l,buffer:n}},onBeforeWrite:function(n,i,a,o){var r;if(n&&("blur"===n.type||"checkval"===n.type||"keydown"===n.type)){var s=o.numericInput?i.slice().reverse().join(""):i.join(""),l=s.replace(o.prefix,"");l=(l=l.replace(o.suffix,"")).replace(new RegExp(e.escapeRegex(o.groupSeparator),"g"),""),","===o.radixPoint&&(l=l.replace(o.radixPoint,"."));var u=l.match(new RegExp("[-"+e.escapeRegex(o.negationSymbol.front)+"]","g"));if(u=null!==u&&1===u.length,l=(l=l.replace(new RegExp("[-"+e.escapeRegex(o.negationSymbol.front)+"]","g"),"")).replace(new RegExp(e.escapeRegex(o.negationSymbol.back)+"$"),""),isNaN(o.placeholder)&&(l=l.replace(new RegExp(e.escapeRegex(o.placeholder),"g"),"")),""!==(l=l===o.negationSymbol.front?l+"0":l)&&isFinite(l)){var c=parseFloat(l),d=u?-1*c:c;if(null!==o.min&&isFinite(o.min)&&d<parseFloat(o.min)?(c=Math.abs(o.min),u=o.min<0,s=void 0):null!==o.max&&isFinite(o.max)&&d>parseFloat(o.max)&&(c=Math.abs(o.max),u=o.max<0,s=void 0),l=c.toString().replace(".",o.radixPoint).split(""),isFinite(o.digits)){var h=t.inArray(o.radixPoint,l),f=t.inArray(o.radixPoint,s);-1===h&&(l.push(o.radixPoint),h=l.length-1);for(var p=1;p<=o.digits;p++)o.digitsOptional||void 0!==l[h+p]&&l[h+p]!==o.placeholder.charAt(0)?-1!==f&&void 0!==s[f+p]&&(l[h+p]=l[h+p]||s[f+p]):l[h+p]="0";l[l.length-1]===o.radixPoint&&delete l[l.length-1]}if(c.toString()!==l&&c.toString()+"."!==l||u)return!u||0===c&&"blur"===n.type||(l.unshift(o.negationSymbol.front),l.push(o.negationSymbol.back)),l=(o.prefix+l.join("")).split(""),o.numericInput&&(l=l.reverse()),(r=o.postFormat(l,o.numericInput?a:a-1,o)).buffer&&(r.refreshFromBuffer=r.buffer.join("")!==i.join("")),r}}return o.autoGroup?((r=o.postFormat(i,o.numericInput?a:a-1,o)).caret=a<=o.prefix.length?r.pos:r.pos+1,r):void 0},regex:{integerPart:function(t){return new RegExp("["+e.escapeRegex(t.negationSymbol.front)+"+]?\\d+")},integerNPart:function(t){return new RegExp("[\\d"+e.escapeRegex(t.groupSeparator)+e.escapeRegex(t.placeholder.charAt(0))+"]+")}},signHandler:function(t,e,n,i,a){if(!i&&a.allowMinus&&"-"===t||a.allowPlus&&"+"===t){var o=e.buffer.join("").match(a.regex.integerPart(a));if(o&&o[0].length>0)return e.buffer[o.index]===("-"===t?"+":a.negationSymbol.front)?"-"===t?""!==a.negationSymbol.back?{pos:o.index,c:a.negationSymbol.front,remove:o.index,caret:n,insert:{pos:e.buffer.length-a.suffix.length-1,c:a.negationSymbol.back}}:{pos:o.index,c:a.negationSymbol.front,remove:o.index,caret:n}:""!==a.negationSymbol.back?{pos:o.index,c:"+",remove:[o.index,e.buffer.length-a.suffix.length-1],caret:n}:{pos:o.index,c:"+",remove:o.index,caret:n}:e.buffer[o.index]===("-"===t?a.negationSymbol.front:"+")?"-"===t&&""!==a.negationSymbol.back?{remove:[o.index,e.buffer.length-a.suffix.length-1],caret:n-1}:{remove:o.index,caret:n-1}:"-"===t?""!==a.negationSymbol.back?{pos:o.index,c:a.negationSymbol.front,caret:n+1,insert:{pos:e.buffer.length-a.suffix.length,c:a.negationSymbol.back}}:{pos:o.index,c:a.negationSymbol.front,caret:n+1}:{pos:o.index,c:t,caret:n+1}}return!1},radixHandler:function(e,n,i,a,o){if(!a&&!0!==o.numericInput&&e===o.radixPoint&&void 0!==o.digits&&(isNaN(o.digits)||parseInt(o.digits)>0)){var r=t.inArray(o.radixPoint,n.buffer),s=n.buffer.join("").match(o.regex.integerPart(o));if(-1!==r&&n.validPositions[r])return n.validPositions[r-1]?{caret:r+1}:{pos:s.index,c:s[0],caret:r+1};if(!s||"0"===s[0]&&s.index+1!==i)return n.buffer[s?s.index:i]="0",{pos:(s?s.index:i)+1,c:o.radixPoint}}return!1},leadingZeroHandler:function(e,n,i,a,o,r){if(!a)if(!0===o.numericInput){var s=n.buffer.slice("").reverse();if("0"===s[o.prefix.length]&&void 0===n.validPositions[i-1])return{pos:i,remove:s.length-o.prefix.length-1}}else{var l=t.inArray(o.radixPoint,n.buffer),u=n.buffer.slice(0,-1!==l?l:void 0).join("").match(o.regex.integerNPart(o));if(u&&(-1===l||l>=i)){var c=-1===l?0:parseInt(n.buffer.slice(l+1).join(""));if(0===u[0].indexOf(""!==o.placeholder?o.placeholder.charAt(0):"0")&&(u.index+1===i||!0!==r&&0===c))return n.buffer.splice(u.index,1),{pos:u.index,remove:u.index};if("0"===e&&i<=u.index&&u[0]!==o.groupSeparator)return!1}}return!0},definitions:{"~":{validator:function(n,i,a,o,r,s){var l=r.signHandler(n,i,a,o,r);if(!l&&(!(l=r.radixHandler(n,i,a,o,r))&&(!0===(l=o?new RegExp("[0-9"+e.escapeRegex(r.groupSeparator)+"]").test(n):new RegExp("[0-9]").test(n))&&!0===(l=r.leadingZeroHandler(n,i,a,o,r,s))))){var u=t.inArray(r.radixPoint,i.buffer);l=-1!==u&&(!1===r.digitsOptional||i.validPositions[a])&&!0!==r.numericInput&&a>u&&!o?{pos:a,remove:a}:{pos:a}}return l},cardinality:1},"+":{validator:function(t,e,n,i,a){var o=a.signHandler(t,e,n,i,a);return!o&&(i&&a.allowMinus&&t===a.negationSymbol.front||a.allowMinus&&"-"===t||a.allowPlus&&"+"===t)&&(o=!(!i&&"-"===t)||(""!==a.negationSymbol.back?{pos:n,c:"-"===t?a.negationSymbol.front:"+",caret:n+1,insert:{pos:e.buffer.length,c:a.negationSymbol.back}}:{pos:n,c:"-"===t?a.negationSymbol.front:"+",caret:n+1})),o},cardinality:1,placeholder:""},"-":{validator:function(t,e,n,i,a){var o=a.signHandler(t,e,n,i,a);return!o&&i&&a.allowMinus&&t===a.negationSymbol.back&&(o=!0),o},cardinality:1,placeholder:""},":":{validator:function(t,n,i,a,o){var r=o.signHandler(t,n,i,a,o);if(!r){var s="["+e.escapeRegex(o.radixPoint)+"]";(r=new RegExp(s).test(t))&&n.validPositions[i]&&n.validPositions[i].match.placeholder===o.radixPoint&&(r={caret:i+1})}return r?{c:o.radixPoint}:r},cardinality:1,placeholder:function(t){return t.radixPoint}}},onUnMask:function(t,n,i){var a=t.replace(i.prefix,"");return a=(a=a.replace(i.suffix,"")).replace(new RegExp(e.escapeRegex(i.groupSeparator),"g"),""),i.unmaskAsNumber?(""!==i.radixPoint&&-1!==a.indexOf(i.radixPoint)&&(a=a.replace(e.escapeRegex.call(this,i.radixPoint),".")),Number(a)):a},isComplete:function(t,n){var i=t.join(""),a=t.slice();if(n.postFormat(a,0,n),a.join("")!==i)return!1;var o=i.replace(n.prefix,"");return o=(o=o.replace(n.suffix,"")).replace(new RegExp(e.escapeRegex(n.groupSeparator),"g"),""),","===n.radixPoint&&(o=o.replace(e.escapeRegex(n.radixPoint),".")),isFinite(o)},onBeforeMask:function(t,n){if(""!==n.radixPoint&&isFinite(t))t=t.toString().replace(".",n.radixPoint);else{var i=t.match(/,/g),a=t.match(/\./g);a&&i?a.length>i.length?t=(t=t.replace(/\./g,"")).replace(",",n.radixPoint):i.length>a.length?t=(t=t.replace(/,/g,"")).replace(".",n.radixPoint):t=t.indexOf(".")<t.indexOf(",")?t.replace(/\./g,""):t=t.replace(/,/g,""):t=t.replace(new RegExp(e.escapeRegex(n.groupSeparator),"g"),"")}if(0===n.digits&&(-1!==t.indexOf(".")?t=t.substring(0,t.indexOf(".")):-1!==t.indexOf(",")&&(t=t.substring(0,t.indexOf(",")))),""!==n.radixPoint&&isFinite(n.digits)&&-1!==t.indexOf(n.radixPoint)){var o=t.split(n.radixPoint)[1].match(new RegExp("\\d*"))[0];if(parseInt(n.digits)<o.toString().length){var r=Math.pow(10,parseInt(n.digits));t=t.replace(e.escapeRegex(n.radixPoint),"."),t=(t=Math.round(parseFloat(t)*r)/r).toString().replace(".",n.radixPoint)}}return t.toString()},canClearPosition:function(t,e,n,i,a){var o=t.validPositions[e].input;return o!==a.radixPoint||null!==t.validPositions[e].match.fn&&!1===a.decimalProtect||isFinite(o)||e===n||o===a.groupSeparator||o===a.negationSymbol.front||o===a.negationSymbol.back},onKeyDown:function(n,i,a,o){var r=t(this);if(n.ctrlKey)switch(n.keyCode){case e.keyCode.UP:r.val(parseFloat(this.inputmask.unmaskedvalue())+parseInt(o.step)),r.trigger("setvalue");break;case e.keyCode.DOWN:r.val(parseFloat(this.inputmask.unmaskedvalue())-parseInt(o.step)),r.trigger("setvalue")}}},currency:{prefix:"$ ",groupSeparator:",",alias:"numeric",placeholder:"0",autoGroup:!0,digits:2,digitsOptional:!1,clearMaskOnLostFocus:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",digits:0,radixPoint:""},percentage:{alias:"numeric",digits:2,radixPoint:".",placeholder:"0",autoGroup:!1,min:0,max:100,suffix:" %",allowPlus:!1,allowMinus:!1}})}(jQuery,Inputmask),function(t,e){e.extendAliases({phone:{url:"phone-codes/phone-codes.js",countrycode:"",phoneCodeCache:{},mask:function(e){if(void 0===e.phoneCodeCache[e.url]){var n=[];e.definitions["#"]=e.definitions[9],t.ajax({url:e.url,async:!1,type:"get",dataType:"json",success:function(t){n=t},error:function(t,n,i){alert(i+" - "+e.url)}}),e.phoneCodeCache[e.url]=n.sort(function(t,e){return(t.mask||t)<(e.mask||e)?-1:1})}return e.phoneCodeCache[e.url]},keepStatic:!1,nojumps:!0,nojumpsThreshold:1,onBeforeMask:function(t,e){var n=t.replace(/^0{1,2}/,"").replace(/[\s]/g,"");return(n.indexOf(e.countrycode)>1||-1===n.indexOf(e.countrycode))&&(n="+"+e.countrycode+n),n}},phonebe:{alias:"phone",url:"phone-codes/phone-be.js",countrycode:"32",nojumpsThreshold:4}})}(jQuery,Inputmask),function(t,e){e.extendAliases({Regex:{mask:"r",greedy:!1,repeat:"*",regex:null,regexTokens:null,tokenizer:/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,quantifierFilter:/[0-9]+[^,]/,isComplete:function(t,e){return new RegExp(e.regex).test(t.join(""))},definitions:{r:{validator:function(e,n,i,a,o){function r(t,e){this.matches=[],this.isGroup=t||!1,this.isQuantifier=e||!1,this.quantifier={min:1,max:1},this.repeaterPart=void 0}function s(e,n){var i=!1;n&&(d+="(",f++);for(var a=0;a<e.matches.length;a++){var o=e.matches[a];if(!0===o.isGroup)i=s(o,!0);else if(!0===o.isQuantifier){var r=t.inArray(o,e.matches),u=e.matches[r-1],c=d;if(isNaN(o.quantifier.max)){for(;o.repeaterPart&&o.repeaterPart!==d&&o.repeaterPart.length>d.length&&!(i=s(u,!0)););(i=i||s(u,!0))&&(o.repeaterPart=d),d=c+o.quantifier.max}else{for(var h=0,p=o.quantifier.max-1;p>h&&!(i=s(u,!0));h++);d=c+"{"+o.quantifier.min+","+o.quantifier.max+"}"}}else if(void 0!==o.matches)for(var g=0;g<o.length&&!(i=s(o[g],n));g++);else{var m;if("["==o.charAt(0)){m=d,m+=o;for(var v=0;f>v;v++)m+=")";i=new RegExp("^("+m+")$").test(l)}else for(var y=0,b=o.length;b>y;y++)if("\\"!==o.charAt(y)){m=d,m=(m+=o.substr(0,y+1)).replace(/\|$/,"");for(v=0;f>v;v++)m+=")";if(i=new RegExp("^("+m+")$").test(l))break}d+=o}if(i)break}return n&&(d+=")",f--),i}var l,u,c=n.buffer.slice(),d="",h=!1,f=0;null===o.regexTokens&&function(){var t,e,n=new r,i=[];for(o.regexTokens=[];t=o.tokenizer.exec(o.regex);)switch(e=t[0],e.charAt(0)){case"(":i.push(new r(!0));break;case")":u=i.pop(),i.length>0?i[i.length-1].matches.push(u):n.matches.push(u);break;case"{":case"+":case"*":var a=new r(!1,!0),s=(e=e.replace(/[{}]/g,"")).split(","),l=isNaN(s[0])?s[0]:parseInt(s[0]),c=1===s.length?l:isNaN(s[1])?s[1]:parseInt(s[1]);if(a.quantifier={min:l,max:c},i.length>0){var d=i[i.length-1].matches;(t=d.pop()).isGroup||((u=new r(!0)).matches.push(t),t=u),d.push(t),d.push(a)}else(t=n.matches.pop()).isGroup||((u=new r(!0)).matches.push(t),t=u),n.matches.push(t),n.matches.push(a);break;default:i.length>0?i[i.length-1].matches.push(e):n.matches.push(e)}n.matches.length>0&&o.regexTokens.push(n)}(),c.splice(i,0,e),l=c.join("");for(var p=0;p<o.regexTokens.length;p++){var g=o.regexTokens[p];if(h=s(g,g.isGroup))break}return h},cardinality:1}}}})}(jQuery,Inputmask),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Chart=t()}}(function(){return function t(e,n,i){function a(r,s){if(!n[r]){if(!e[r]){var l="function"==typeof require&&require;if(!s&&l)return l(r,!0);if(o)return o(r,!0);var u=new Error("Cannot find module '"+r+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[r]={exports:{}};e[r][0].call(c.exports,function(t){var n=e[r][1][t];return a(n||t)},c,c.exports,t,e,n,i)}return n[r].exports}for(var o="function"==typeof require&&require,r=0;r<i.length;r++)a(i[r]);return a}({1:[function(t,e,n){var i=t(5);function a(t){if(t){var e=[0,0,0],n=1,a=t.match(/^#([a-fA-F0-9]{3})$/);if(a){a=a[1];for(var o=0;o<e.length;o++)e[o]=parseInt(a[o]+a[o],16)}else if(a=t.match(/^#([a-fA-F0-9]{6})$/)){a=a[1];for(o=0;o<e.length;o++)e[o]=parseInt(a.slice(2*o,2*o+2),16)}else if(a=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(o=0;o<e.length;o++)e[o]=parseInt(a[o+1]);n=parseFloat(a[4])}else if(a=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(o=0;o<e.length;o++)e[o]=Math.round(2.55*parseFloat(a[o+1]));n=parseFloat(a[4])}else if(a=t.match(/(\w+)/)){if("transparent"==a[1])return[0,0,0,0];if(!(e=i[a[1]]))return}for(o=0;o<e.length;o++)e[o]=c(e[o],0,255);return n=n||0==n?c(n,0,1):1,e[3]=n,e}}function o(t){if(t){var e=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var n=parseFloat(e[4]);return[c(parseInt(e[1]),0,360),c(parseFloat(e[2]),0,100),c(parseFloat(e[3]),0,100),c(isNaN(n)?1:n,0,1)]}}}function r(t){if(t){var e=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var n=parseFloat(e[4]);return[c(parseInt(e[1]),0,360),c(parseFloat(e[2]),0,100),c(parseFloat(e[3]),0,100),c(isNaN(n)?1:n,0,1)]}}}function s(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function l(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function u(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function c(t,e,n){return Math.min(Math.max(e,t),n)}function d(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}e.exports={getRgba:a,getHsla:o,getRgb:function(t){var e=a(t);return e&&e.slice(0,3)},getHsl:function(t){var e=o(t);return e&&e.slice(0,3)},getHwb:r,getAlpha:function(t){var e=a(t);{if(e)return e[3];if(e=o(t))return e[3];if(e=r(t))return e[3]}},hexString:function(t){return"#"+d(t[0])+d(t[1])+d(t[2])},rgbString:function(t,e){if(e<1||t[3]&&t[3]<1)return s(t,e);return"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:s,percentString:function(t,e){if(e<1||t[3]&&t[3]<1)return l(t,e);var n=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),a=Math.round(t[2]/255*100);return"rgb("+n+"%, "+i+"%, "+a+"%)"},percentaString:l,hslString:function(t,e){if(e<1||t[3]&&t[3]<1)return u(t,e);return"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:u,hwbString:function(t,e){void 0===e&&(e=void 0!==t[3]?t[3]:1);return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return h[t.slice(0,3)]}};var h={};for(var f in i)h[i[f]]=f},{5:5}],2:[function(t,e,n){var i=t(4),a=t(1),o=function(t){if(t instanceof o)return t;if(!(this instanceof o))return new o(t);var e;if(this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},"string"==typeof t)if(e=a.getRgba(t))this.setValues("rgb",e);else if(e=a.getHsla(t))this.setValues("hsl",e);else{if(!(e=a.getHwb(t)))throw new Error('Unable to parse color from string "'+t+'"');this.setValues("hwb",e)}else if("object"==typeof t)if(void 0!==(e=t).r||void 0!==e.red)this.setValues("rgb",e);else if(void 0!==e.l||void 0!==e.lightness)this.setValues("hsl",e);else if(void 0!==e.v||void 0!==e.value)this.setValues("hsv",e);else if(void 0!==e.w||void 0!==e.whiteness)this.setValues("hwb",e);else{if(void 0===e.c&&void 0===e.cyan)throw new Error("Unable to parse color from object "+JSON.stringify(t));this.setValues("cmyk",e)}};o.prototype={rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t=(t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return a.hexString(this.values.rgb)},rgbString:function(){return a.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return a.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return a.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return a.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return a.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return a.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return a.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=t,i=void 0===e?.5:e,a=2*i-1,o=this.alpha()-n.alpha(),r=((a*o==-1?a:(a+o)/(1+a*o))+1)/2,s=1-r;return this.rgb(r*this.red()+s*n.red(),r*this.green()+s*n.green(),r*this.blue()+s*n.blue()).alpha(this.alpha()*i+n.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new o,i=this.values,a=n.values;for(var r in i)i.hasOwnProperty(r)&&(t=i[r],"[object Array]"===(e={}.toString.call(t))?a[r]=t.slice(0):"[object Number]"===e?a[r]=t:console.error("unexpected color value:",t));return n}},o.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},o.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},o.prototype.getValues=function(t){for(var e=this.values,n={},i=0;i<t.length;i++)n[t.charAt(i)]=e[t][i];return 1!==e.alpha&&(n.a=e.alpha),n},o.prototype.setValues=function(t,e){var n,a,o=this.values,r=this.spaces,s=this.maxes,l=1;if("alpha"===t)l=e;else if(e.length)o[t]=e.slice(0,t.length),l=e[t.length];else if(void 0!==e[t.charAt(0)]){for(n=0;n<t.length;n++)o[t][n]=e[t.charAt(n)];l=e.a}else if(void 0!==e[r[t][0]]){var u=r[t];for(n=0;n<t.length;n++)o[t][n]=e[u[n]];l=e.alpha}if(o.alpha=Math.max(0,Math.min(1,void 0===l?o.alpha:l)),"alpha"===t)return!1;for(n=0;n<t.length;n++)a=Math.max(0,Math.min(s[t][n],o[t][n])),o[t][n]=Math.round(a);for(var c in r)c!==t&&(o[c]=i[t][c](o[t]));return!0},o.prototype.setSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n),this)},o.prototype.setChannel=function(t,e,n){var i=this.values[t];return void 0===n?i[e]:n===i[e]?this:(i[e]=n,this.setValues(t,i),this)},"undefined"!=typeof window&&(window.Color=o),e.exports=o},{1:1,4:4}],3:[function(t,e,n){function i(t){var e,n,i=t[0]/255,a=t[1]/255,o=t[2]/255,r=Math.min(i,a,o),s=Math.max(i,a,o),l=s-r;return s==r?e=0:i==s?e=(a-o)/l:a==s?e=2+(o-i)/l:o==s&&(e=4+(i-a)/l),(e=Math.min(60*e,360))<0&&(e+=360),n=(r+s)/2,[e,100*(s==r?0:n<=.5?l/(s+r):l/(2-s-r)),100*n]}function a(t){var e,n,i=t[0],a=t[1],o=t[2],r=Math.min(i,a,o),s=Math.max(i,a,o),l=s-r;return n=0==s?0:l/s*1e3/10,s==r?e=0:i==s?e=(a-o)/l:a==s?e=2+(o-i)/l:o==s&&(e=4+(i-a)/l),(e=Math.min(60*e,360))<0&&(e+=360),[e,n,s/255*1e3/10]}function o(t){var e=t[0],n=t[1],a=t[2];return[i(t)[0],100*(1/255*Math.min(e,Math.min(n,a))),100*(a=1-1/255*Math.max(e,Math.max(n,a)))]}function s(t){var e,n=t[0]/255,i=t[1]/255,a=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-i,1-a)))/(1-e)||0),100*((1-i-e)/(1-e)||0),100*((1-a-e)/(1-e)||0),100*e]}function l(t){return T[JSON.stringify(t)]}function u(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*e+.7152*n+.0722*i),100*(.0193*e+.1192*n+.9505*i)]}function c(t){var e=u(t),n=e[0],i=e[1],a=e[2];return i/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]}function d(t){var e,n,i,a,o,r=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return[o=255*l,o,o];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var u=0;u<3;u++)(i=r+1/3*-(u-1))<0&&i++,i>1&&i--,o=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e,a[u]=255*o;return a}function h(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,a=Math.floor(e)%6,o=e-Math.floor(e),r=255*i*(1-n),s=255*i*(1-n*o),l=255*i*(1-n*(1-o));i*=255;switch(a){case 0:return[i,l,r];case 1:return[s,i,r];case 2:return[r,i,l];case 3:return[r,s,i];case 4:return[l,r,i];case 5:return[i,r,s]}}function f(t){var e,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),i=6*o-(e=Math.floor(6*o)),0!=(1&e)&&(i=1-i),a=s+i*((n=1-l)-s),e){default:case 6:case 0:r=n,g=a,b=s;break;case 1:r=a,g=n,b=s;break;case 2:r=s,g=n,b=a;break;case 3:r=s,g=a,b=n;break;case 4:r=a,g=s,b=n;break;case 5:r=n,g=s,b=a}return[255*r,255*g,255*b]}function p(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a=t[3]/100;return[255*(1-Math.min(1,e*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,i*(1-a)+a))]}function m(t){var e,n,i,a=t[0]/100,o=t[1]/100,r=t[2]/100;return n=-.9689*a+1.8758*o+.0415*r,i=.0557*a+-.204*o+1.057*r,e=(e=3.2406*a+-1.5372*o+-.4986*r)>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]}function v(t){var e=t[0],n=t[1],i=t[2];return n/=100,i/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]}function y(t){var e,n,i,a,o=t[0],r=t[1],s=t[2];return o<=8?a=(n=100*o/903.3)/100*7.787+16/116:(n=100*Math.pow((o+16)/116,3),a=Math.pow(n/100,1/3)),[e=e/95.047<=.008856?e=95.047*(r/500+a-16/116)/7.787:95.047*Math.pow(r/500+a,3),n,i=i/108.883<=.008859?i=108.883*(a-s/200-16/116)/7.787:108.883*Math.pow(a-s/200,3)]}function x(t){var e,n=t[0],i=t[1],a=t[2];return(e=360*Math.atan2(a,i)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(i*i+a*a),e]}function k(t){return m(y(t))}function w(t){var e,n=t[0],i=t[1];return e=t[2]/360*2*Math.PI,[n,i*Math.cos(e),i*Math.sin(e)]}function S(t){return C[t]}e.exports={rgb2hsl:i,rgb2hsv:a,rgb2hwb:o,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:u,rgb2lab:c,rgb2lch:function(t){return x(c(t))},hsl2rgb:d,hsl2hsv:function(t){var e=t[0],n=t[1]/100,i=t[2]/100;if(0===i)return[0,0,0];return[e,100*(2*(n*=(i*=2)<=1?i:2-i)/(i+n)),100*((i+n)/2)]},hsl2hwb:function(t){return o(d(t))},hsl2cmyk:function(t){return s(d(t))},hsl2keyword:function(t){return l(d(t))},hsv2rgb:h,hsv2hsl:function(t){var e,n,i=t[0],a=t[1]/100,o=t[2]/100;return e=a*o,[i,100*(e=(e/=(n=(2-a)*o)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(t){return o(h(t))},hsv2cmyk:function(t){return s(h(t))},hsv2keyword:function(t){return l(h(t))},hwb2rgb:f,hwb2hsl:function(t){return i(f(t))},hwb2hsv:function(t){return a(f(t))},hwb2cmyk:function(t){return s(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:p,cmyk2hsl:function(t){return i(p(t))},cmyk2hsv:function(t){return a(p(t))},cmyk2hwb:function(t){return o(p(t))},cmyk2keyword:function(t){return l(p(t))},keyword2rgb:S,keyword2hsl:function(t){return i(S(t))},keyword2hsv:function(t){return a(S(t))},keyword2hwb:function(t){return o(S(t))},keyword2cmyk:function(t){return s(S(t))},keyword2lab:function(t){return c(S(t))},keyword2xyz:function(t){return u(S(t))},xyz2rgb:m,xyz2lab:v,xyz2lch:function(t){return x(v(t))},lab2xyz:y,lab2rgb:k,lab2lch:x,lch2lab:w,lch2xyz:function(t){return y(w(t))},lch2rgb:function(t){return k(w(t))}};var C={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],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],darkgreen:[0,100,0],darkgrey:[169,169,169],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],darkslategrey:[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],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],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],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],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],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,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],rebeccapurple:[102,51,153],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],slategrey:[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],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},T={};for(var _ in C)T[JSON.stringify(C[_])]=_},{}],4:[function(t,e,n){var i=t(3),a=function(){return new u};for(var o in i){a[o+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),i[t](e)}}(o);var r=/(\w+)2(\w+)/.exec(o),s=r[1],l=r[2];(a[s]=a[s]||{})[l]=a[o]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var n=i[t](e);if("string"==typeof n||void 0===n)return n;for(var a=0;a<n.length;a++)n[a]=Math.round(n[a]);return n}}(o)}var u=function(){this.convs={}};u.prototype.routeSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n))},u.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},u.prototype.getValues=function(t){var e=this.convs[t];if(!e){var n=this.space,i=this.convs[n];e=a[n][t](i),this.convs[t]=e}return e},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(t){u.prototype[t]=function(e){return this.routeSpace(t,arguments)}}),e.exports=a},{3:3}],5:[function(t,e,n){e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],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],darkgreen:[0,100,0],darkgrey:[169,169,169],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],darkslategrey:[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],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],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],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],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],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,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],rebeccapurple:[102,51,153],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],slategrey:[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],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],6:[function(t,e,n){var i,a;i=this,a=function(){"use strict";var n,i;function a(){return n.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return"[object Object]"===Object.prototype.toString.call(t)}function s(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t,e){for(var n in e)u(e,n)&&(t[n]=e[n]);return u(e,"toString")&&(t.toString=e.toString),u(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,n,i){return we(t,e,n,i,!0).utc()}function h(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}),t._pf}function f(t){if(null==t._isValid){var e=h(t),n=i.call(e.parsedDateParts,function(t){return null!=t});t._isValid=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function p(t){var e=d(NaN);return null!=t?c(h(e),t):h(e).userInvalidated=!0,e}function g(t){return void 0===t}i=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i<n;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var m=a.momentProperties=[];function v(t,e){var n,i,a;if(g(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),g(e._i)||(t._i=e._i),g(e._f)||(t._f=e._f),g(e._l)||(t._l=e._l),g(e._strict)||(t._strict=e._strict),g(e._tzm)||(t._tzm=e._tzm),g(e._isUTC)||(t._isUTC=e._isUTC),g(e._offset)||(t._offset=e._offset),g(e._pf)||(t._pf=h(e)),g(e._locale)||(t._locale=e._locale),m.length>0)for(n in m)g(a=e[i=m[n]])||(t[i]=a);return t}var y=!1;function b(t){v(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),!1===y&&(y=!0,a.updateOffset(this),y=!1)}function x(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function k(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function w(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=k(e)),n}function S(t,e,n){var i,a=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),r=0;for(i=0;i<a;i++)(n&&t[i]!==e[i]||!n&&w(t[i])!==w(e[i]))&&r++;return r+o}function C(t){!1===a.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function T(t,e){var n=!0;return c(function(){return null!=a.deprecationHandler&&a.deprecationHandler(null,t),n&&(C(t+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),n=!1),e.apply(this,arguments)},e)}var _,D={};function M(t,e){null!=a.deprecationHandler&&a.deprecationHandler(t,e),D[t]||(C(e),D[t]=!0)}function A(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function P(t,e){var n,i=c({},t);for(n in e)u(e,n)&&(r(t[n])&&r(e[n])?(i[n]={},c(i[n],t[n]),c(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)u(t,n)&&!u(e,n)&&r(t[n])&&(i[n]=c({},i[n]));return i}function E(t){null!=t&&this.set(t)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,_=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)u(t,e)&&n.push(e);return n};var I={};function O(t,e){var n=t.toLowerCase();I[n]=I[n+"s"]=I[e]=t}function F(t){return"string"==typeof t?I[t]||I[t.toLowerCase()]:void 0}function R(t){var e,n,i={};for(n in t)u(t,n)&&(e=F(n))&&(i[e]=t[n]);return i}var N={};function L(t,e){N[t]=e}function $(t,e){return function(n){return null!=n?(j(this,t,n),a.updateOffset(this,e),this):B(this,t)}}function B(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function j(t,e,n){t.isValid()&&t._d["set"+(t._isUTC?"UTC":"")+e](n)}function W(t,e,n){var i=""+Math.abs(t),a=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+i}var H=/(\[[^\[]*\])|(\\)?([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,V=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},q={};function Y(t,e,n,i){var a=i;"string"==typeof i&&(a=function(){return this[i]()}),t&&(q[t]=a),e&&(q[e[0]]=function(){return W(a.apply(this,arguments),e[1],e[2])}),n&&(q[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function U(t,e){return t.isValid()?(e=G(e,t.localeData()),z[e]=z[e]||function(t){var e,n,i,a=t.match(H);for(e=0,n=a.length;e<n;e++)q[a[e]]?a[e]=q[a[e]]:a[e]=(i=a[e]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(e){var i,o="";for(i=0;i<n;i++)o+=a[i]instanceof Function?a[i].call(e,t):a[i];return o}}(e),z[e](t)):t.localeData().invalidDate()}function G(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(V.lastIndex=0;n>=0&&V.test(t);)t=t.replace(V,i),V.lastIndex=0,n-=1;return t}var Q=/\d/,X=/\d\d/,K=/\d{3}/,Z=/\d{4}/,J=/[+-]?\d{6}/,tt=/\d\d?/,et=/\d\d\d\d?/,nt=/\d\d\d\d\d\d?/,it=/\d{1,3}/,at=/\d{1,4}/,ot=/[+-]?\d{1,6}/,rt=/\d+/,st=/[+-]?\d+/,lt=/Z|[+-]\d\d:?\d\d/gi,ut=/Z|[+-]\d\d(?::?\d\d)?/gi,ct=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,dt={};function ht(t,e,n){dt[t]=A(e)?e:function(t,i){return t&&n?n:e}}function ft(t,e){return u(dt,t)?dt[t](e._strict,e._locale):new RegExp(pt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,a){return e||n||i||a})))}function pt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var gt={};function mt(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),"number"==typeof e&&(i=function(t,n){n[e]=w(t)}),n=0;n<t.length;n++)gt[t[n]]=i}function vt(t,e){mt(t,function(t,n,i,a){i._w=i._w||{},e(t,i._w,i,a)})}var yt,bt=0,xt=1,kt=2,wt=3,St=4,Ct=5,Tt=6,_t=7,Dt=8;function Mt(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}yt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},Y("M",["MM",2],"Mo",function(){return this.month()+1}),Y("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),Y("MMMM",0,0,function(t){return this.localeData().months(this,t)}),O("month","M"),L("month",8),ht("M",tt),ht("MM",tt,X),ht("MMM",function(t,e){return e.monthsShortRegex(t)}),ht("MMMM",function(t,e){return e.monthsRegex(t)}),mt(["M","MM"],function(t,e){e[xt]=w(t)-1}),mt(["MMM","MMMM"],function(t,e,n,i){var a=n._locale.monthsParse(t,i,n._strict);null!=a?e[xt]=a:h(n).invalidMonth=t});var At=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,Pt="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Et="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function It(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=w(e);else if("number"!=typeof(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Mt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Ot(t){return null!=t?(It(this,t),a.updateOffset(this,!0),this):B(this,"Month")}var Ft=ct;var Rt=ct;function Nt(){function t(t,e){return e.length-t.length}var e,n,i=[],a=[],o=[];for(e=0;e<12;e++)n=d([2e3,e]),i.push(this.monthsShort(n,"")),a.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(t),a.sort(t),o.sort(t),e=0;e<12;e++)i[e]=pt(i[e]),a[e]=pt(a[e]);for(e=0;e<24;e++)o[e]=pt(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Lt(t){return $t(t)?366:365}function $t(t){return t%4==0&&t%100!=0||t%400==0}Y("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),Y(0,["YY",2],0,function(){return this.year()%100}),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),O("year","y"),L("year",1),ht("Y",st),ht("YY",tt,X),ht("YYYY",at,Z),ht("YYYYY",ot,J),ht("YYYYYY",ot,J),mt(["YYYYY","YYYYYY"],bt),mt("YYYY",function(t,e){e[bt]=2===t.length?a.parseTwoDigitYear(t):w(t)}),mt("YY",function(t,e){e[bt]=a.parseTwoDigitYear(t)}),mt("Y",function(t,e){e[bt]=parseInt(t,10)}),a.parseTwoDigitYear=function(t){return w(t)+(w(t)>68?1900:2e3)};var Bt=$("FullYear",!0);function jt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Wt(t,e,n){var i=7+e-n;return-((7+jt(t,0,i).getUTCDay()-e)%7)+i-1}function Ht(t,e,n,i,a){var o,r,s=1+7*(e-1)+(7+n-i)%7+Wt(t,i,a);return s<=0?r=Lt(o=t-1)+s:s>Lt(t)?(o=t+1,r=s-Lt(t)):(o=t,r=s),{year:o,dayOfYear:r}}function Vt(t,e,n){var i,a,o=Wt(t.year(),e,n),r=Math.floor((t.dayOfYear()-o-1)/7)+1;return r<1?i=r+zt(a=t.year()-1,e,n):r>zt(t.year(),e,n)?(i=r-zt(t.year(),e,n),a=t.year()+1):(a=t.year(),i=r),{week:i,year:a}}function zt(t,e,n){var i=Wt(t,e,n),a=Wt(t+1,e,n);return(Lt(t)-i+a)/7}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),O("week","w"),O("isoWeek","W"),L("week",5),L("isoWeek",5),ht("w",tt),ht("ww",tt,X),ht("W",tt),ht("WW",tt,X),vt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=w(t)});Y("d",0,"do","day"),Y("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),Y("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),Y("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),O("day","d"),O("weekday","e"),O("isoWeekday","E"),L("day",11),L("weekday",11),L("isoWeekday",11),ht("d",tt),ht("e",tt),ht("E",tt),ht("dd",function(t,e){return e.weekdaysMinRegex(t)}),ht("ddd",function(t,e){return e.weekdaysShortRegex(t)}),ht("dddd",function(t,e){return e.weekdaysRegex(t)}),vt(["dd","ddd","dddd"],function(t,e,n,i){var a=n._locale.weekdaysParse(t,i,n._strict);null!=a?e.d=a:h(n).invalidWeekday=t}),vt(["d","e","E"],function(t,e,n,i){e[i]=w(t)});var qt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Yt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Ut="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Gt=ct;var Qt=ct;var Xt=ct;function Kt(){function t(t,e){return e.length-t.length}var e,n,i,a,o,r=[],s=[],l=[],u=[];for(e=0;e<7;e++)n=d([2e3,1]).day(e),i=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),o=this.weekdays(n,""),r.push(i),s.push(a),l.push(o),u.push(i),u.push(a),u.push(o);for(r.sort(t),s.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)s[e]=pt(s[e]),l[e]=pt(l[e]),u[e]=pt(u[e]);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("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Zt(){return this.hours()%12||12}function Jt(t,e){Y(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function te(t,e){return e._meridiemParse}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,Zt),Y("k",["kk",2],0,function(){return this.hours()||24}),Y("hmm",0,0,function(){return""+Zt.apply(this)+W(this.minutes(),2)}),Y("hmmss",0,0,function(){return""+Zt.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),Y("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),Y("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),Jt("a",!0),Jt("A",!1),O("hour","h"),L("hour",13),ht("a",te),ht("A",te),ht("H",tt),ht("h",tt),ht("HH",tt,X),ht("hh",tt,X),ht("hmm",et),ht("hmmss",nt),ht("Hmm",et),ht("Hmmss",nt),mt(["H","HH"],wt),mt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),mt(["h","hh"],function(t,e,n){e[wt]=w(t),h(n).bigHour=!0}),mt("hmm",function(t,e,n){var i=t.length-2;e[wt]=w(t.substr(0,i)),e[St]=w(t.substr(i)),h(n).bigHour=!0}),mt("hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[wt]=w(t.substr(0,i)),e[St]=w(t.substr(i,2)),e[Ct]=w(t.substr(a)),h(n).bigHour=!0}),mt("Hmm",function(t,e,n){var i=t.length-2;e[wt]=w(t.substr(0,i)),e[St]=w(t.substr(i))}),mt("Hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[wt]=w(t.substr(0,i)),e[St]=w(t.substr(i,2)),e[Ct]=w(t.substr(a))});var ee,ne=$("Hours",!0),ie={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",ordinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few 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:Pt,monthsShort:Et,week:{dow:0,doy:6},weekdays:qt,weekdaysMin:Ut,weekdaysShort:Yt,meridiemParse:/[ap]\.?m?\.?/i},ae={};function oe(t){return t?t.toLowerCase().replace("_","-"):t}function re(n){var i=null;if(!ae[n]&&void 0!==e&&e&&e.exports)try{i=ee._abbr,t("./locale/"+n),se(i)}catch(t){}return ae[n]}function se(t,e){var n;return t&&(n=g(e)?ue(t):le(t,e))&&(ee=n),ee._abbr}function le(t,e){if(null!==e){var n=ie;return e.abbr=t,null!=ae[t]?(M("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=ae[t]._config):null!=e.parentLocale&&(null!=ae[e.parentLocale]?n=ae[e.parentLocale]._config:M("parentLocaleUndefined","specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/")),ae[t]=new E(P(n,e)),se(t),ae[t]}return delete ae[t],null}function ue(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ee;if(!o(t)){if(e=re(t))return e;t=[t]}return function(t){for(var e,n,i,a,o=0;o<t.length;){for(e=(a=oe(t[o]).split("-")).length,n=(n=oe(t[o+1]))?n.split("-"):null;e>0;){if(i=re(a.slice(0,e).join("-")))return i;if(n&&n.length>=e&&S(a,n,!0)>=e-1)break;e--}o++}return null}(t)}function ce(t){var e,n=t._a;return n&&-2===h(t).overflow&&(e=n[xt]<0||n[xt]>11?xt:n[kt]<1||n[kt]>Mt(n[bt],n[xt])?kt:n[wt]<0||n[wt]>24||24===n[wt]&&(0!==n[St]||0!==n[Ct]||0!==n[Tt])?wt:n[St]<0||n[St]>59?St:n[Ct]<0||n[Ct]>59?Ct:n[Tt]<0||n[Tt]>999?Tt:-1,h(t)._overflowDayOfYear&&(e<bt||e>kt)&&(e=kt),h(t)._overflowWeeks&&-1===e&&(e=_t),h(t)._overflowWeekday&&-1===e&&(e=Dt),h(t).overflow=e),t}var de=/^\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)?)?/,he=/^\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)?)?/,fe=/Z|[+-]\d\d(?::?\d\d)?/,pe=[["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}/]],ge=[["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/]],me=/^\/?Date\((\-?\d+)/i;function ve(t){var e,n,i,a,o,r,s=t._i,l=de.exec(s)||he.exec(s);if(l){for(h(t).iso=!0,e=0,n=pe.length;e<n;e++)if(pe[e][1].exec(l[1])){a=pe[e][0],i=!1!==pe[e][2];break}if(null==a)return void(t._isValid=!1);if(l[3]){for(e=0,n=ge.length;e<n;e++)if(ge[e][1].exec(l[3])){o=(l[2]||" ")+ge[e][0];break}if(null==o)return void(t._isValid=!1)}if(!i&&null!=o)return void(t._isValid=!1);if(l[4]){if(!fe.exec(l[4]))return void(t._isValid=!1);r="Z"}t._f=a+(o||"")+(r||""),xe(t)}else t._isValid=!1}function ye(t,e,n){return null!=t?t:null!=e?e:n}function be(t){var e,n,i,o,r=[];if(!t._d){var s,l;for(s=t,l=new Date(a.now()),i=s._useUTC?[l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()]:[l.getFullYear(),l.getMonth(),l.getDate()],t._w&&null==t._a[kt]&&null==t._a[xt]&&function(t){var e,n,i,a,o,r,s,l;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,r=4,n=ye(e.GG,t._a[bt],Vt(Se(),1,4).year),i=ye(e.W,1),((a=ye(e.E,1))<1||a>7)&&(l=!0)):(o=t._locale._week.dow,r=t._locale._week.doy,n=ye(e.gg,t._a[bt],Vt(Se(),o,r).year),i=ye(e.w,1),null!=e.d?((a=e.d)<0||a>6)&&(l=!0):null!=e.e?(a=e.e+o,(e.e<0||e.e>6)&&(l=!0)):a=o);i<1||i>zt(n,o,r)?h(t)._overflowWeeks=!0:null!=l?h(t)._overflowWeekday=!0:(s=Ht(n,i,a,o,r),t._a[bt]=s.year,t._dayOfYear=s.dayOfYear)}(t),t._dayOfYear&&(o=ye(t._a[bt],i[bt]),t._dayOfYear>Lt(o)&&(h(t)._overflowDayOfYear=!0),n=jt(o,0,t._dayOfYear),t._a[xt]=n.getUTCMonth(),t._a[kt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=r[e]=i[e];for(;e<7;e++)t._a[e]=r[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[wt]&&0===t._a[St]&&0===t._a[Ct]&&0===t._a[Tt]&&(t._nextDay=!0,t._a[wt]=0),t._d=(t._useUTC?jt:function(t,e,n,i,a,o,r){var s=new Date(t,e,n,i,a,o,r);return t<100&&t>=0&&isFinite(s.getFullYear())&&s.setFullYear(t),s}).apply(null,r),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[wt]=24)}}function xe(t){if(t._f!==a.ISO_8601){t._a=[],h(t).empty=!0;var e,n,i,o,r,s,l,c,d=""+t._i,f=d.length,p=0;for(i=G(t._f,t._locale).match(H)||[],e=0;e<i.length;e++)o=i[e],(n=(d.match(ft(o,t))||[])[0])&&((r=d.substr(0,d.indexOf(n))).length>0&&h(t).unusedInput.push(r),d=d.slice(d.indexOf(n)+n.length),p+=n.length),q[o]?(n?h(t).empty=!1:h(t).unusedTokens.push(o),s=o,c=t,null!=(l=n)&&u(gt,s)&>[s](l,c._a,c,s)):t._strict&&!n&&h(t).unusedTokens.push(o);h(t).charsLeftOver=f-p,d.length>0&&h(t).unusedInput.push(d),t._a[wt]<=12&&!0===h(t).bigHour&&t._a[wt]>0&&(h(t).bigHour=void 0),h(t).parsedDateParts=t._a.slice(0),h(t).meridiem=t._meridiem,t._a[wt]=function(t,e,n){var i;if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}(t._locale,t._a[wt],t._meridiem),be(t),ce(t)}else ve(t)}function ke(t){var e,n,i,r,u=t._i,d=t._f;return t._locale=t._locale||ue(t._l),null===u||void 0===d&&""===u?p({nullInput:!0}):("string"==typeof u&&(t._i=u=t._locale.preparse(u)),x(u)?new b(ce(u)):(o(d)?function(t){var e,n,i,a,o;if(0===t._f.length)return h(t).invalidFormat=!0,void(t._d=new Date(NaN));for(a=0;a<t._f.length;a++)o=0,e=v({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[a],xe(e),f(e)&&(o+=h(e).charsLeftOver,o+=10*h(e).unusedTokens.length,h(e).score=o,(null==i||o<i)&&(i=o,n=e));c(t,n||e)}(t):s(u)?t._d=u:d?xe(t):void 0===(n=(e=t)._i)?e._d=new Date(a.now()):s(n)?e._d=new Date(n.valueOf()):"string"==typeof n?(i=e,null===(r=me.exec(i._i))?(ve(i),!1===i._isValid&&(delete i._isValid,a.createFromInputFallback(i))):i._d=new Date(+r[1])):o(n)?(e._a=l(n.slice(0),function(t){return parseInt(t,10)}),be(e)):"object"==typeof n?function(t){if(!t._d){var e=R(t._i);t._a=l([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),be(t)}}(e):"number"==typeof n?e._d=new Date(n):a.createFromInputFallback(e),f(t)||(t._d=null),t))}function we(t,e,n,i,a){var s,l={};return"boolean"==typeof n&&(i=n,n=void 0),(r(t)&&function(t){var e;for(e in t)return!1;return!0}(t)||o(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=n,l._i=t,l._f=e,l._strict=i,(s=new b(ce(ke(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Se(t,e,n,i){return we(t,e,n,i,!1)}a.createFromInputFallback=T("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),a.ISO_8601=function(){};var Ce=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Se.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:p()}),Te=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Se.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:p()});function _e(t,e){var n,i;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return Se();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}function De(t){var e=R(t),n=e.year||0,i=e.quarter||0,a=e.month||0,o=e.week||0,r=e.day||0,s=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+r+7*o,this._months=+a+3*i+12*n,this._data={},this._locale=ue(),this._bubble()}function Me(t){return t instanceof De}function Ae(t,e){Y(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+W(~~(t/60),2)+e+W(~~t%60,2)})}Ae("Z",":"),Ae("ZZ",""),ht("Z",ut),ht("ZZ",ut),mt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Ee(ut,t)});var Pe=/([\+\-]|\d\d)/gi;function Ee(t,e){var n=(e||"").match(t)||[],i=((n[n.length-1]||[])+"").match(Pe)||["-",0,0],a=60*i[1]+w(i[2]);return"+"===i[0]?a:-a}function Ie(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(x(t)||s(t)?t.valueOf():Se(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),a.updateOffset(n,!1),n):Se(t).local()}function Oe(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Fe(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}a.updateOffset=function(){};var Re=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,Ne=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;function Le(t,e){var n,i,a,o=t,r=null;return Me(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(o={},e?o[e]=t:o.milliseconds=t):(r=Re.exec(t))?(n="-"===r[1]?-1:1,o={y:0,d:w(r[kt])*n,h:w(r[wt])*n,m:w(r[St])*n,s:w(r[Ct])*n,ms:w(r[Tt])*n}):(r=Ne.exec(t))?(n="-"===r[1]?-1:1,o={y:$e(r[2],n),M:$e(r[3],n),w:$e(r[4],n),d:$e(r[5],n),h:$e(r[6],n),m:$e(r[7],n),s:$e(r[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(a=function(t,e){var n;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=Ie(e,t),t.isBefore(e)?n=Be(t,e):((n=Be(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Se(o.from),Se(o.to)),(o={}).ms=a.milliseconds,o.M=a.months),i=new De(o),Me(t)&&u(t,"_locale")&&(i._locale=t._locale),i}function $e(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Be(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function je(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function We(t,e){return function(n,i){var a;return null===i||isNaN(+i)||(M(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=i,i=a),He(this,Le(n="string"==typeof n?+n:n,i),t),this}}function He(t,e,n,i){var o=e._milliseconds,r=je(e._days),s=je(e._months);t.isValid()&&(i=null==i||i,o&&t._d.setTime(t._d.valueOf()+o*n),r&&j(t,"Date",B(t,"Date")+r*n),s&&It(t,B(t,"Month")+s*n),i&&a.updateOffset(t,r||s))}Le.fn=De.prototype;var Ve=We(1,"add"),ze=We(-1,"subtract");function qe(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ue(t))&&(this._locale=e),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ye=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function Ue(){return this._locale}function Ge(t,e){Y(0,[t,t.length],0,e)}function Qe(t,e,n,i,a){var o;return null==t?Vt(this,i,a).year:(e>(o=zt(t,i,a))&&(e=o),function(t,e,n,i,a){var o=Ht(t,e,n,i,a),r=jt(o.year,0,o.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}.call(this,t,e,n,i,a))}Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ge("gggg","weekYear"),Ge("ggggg","weekYear"),Ge("GGGG","isoWeekYear"),Ge("GGGGG","isoWeekYear"),O("weekYear","gg"),O("isoWeekYear","GG"),L("weekYear",1),L("isoWeekYear",1),ht("G",st),ht("g",st),ht("GG",tt,X),ht("gg",tt,X),ht("GGGG",at,Z),ht("gggg",at,Z),ht("GGGGG",ot,J),ht("ggggg",ot,J),vt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=w(t)}),vt(["gg","GG"],function(t,e,n,i){e[i]=a.parseTwoDigitYear(t)}),Y("Q",0,"Qo","quarter"),O("quarter","Q"),L("quarter",7),ht("Q",Q),mt("Q",function(t,e){e[xt]=3*(w(t)-1)}),Y("D",["DD",2],"Do","date"),O("date","D"),L("date",9),ht("D",tt),ht("DD",tt,X),ht("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),mt(["D","DD"],kt),mt("Do",function(t,e){e[kt]=w(t.match(tt)[0])});var Xe=$("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),O("dayOfYear","DDD"),L("dayOfYear",4),ht("DDD",it),ht("DDDD",K),mt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=w(t)}),Y("m",["mm",2],0,"minute"),O("minute","m"),L("minute",14),ht("m",tt),ht("mm",tt,X),mt(["m","mm"],St);var Ke=$("Minutes",!1);Y("s",["ss",2],0,"second"),O("second","s"),L("second",15),ht("s",tt),ht("ss",tt,X),mt(["s","ss"],Ct);var Ze,Je=$("Seconds",!1);for(Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),O("millisecond","ms"),L("millisecond",16),ht("S",it,Q),ht("SS",it,X),ht("SSS",it,K),Ze="SSSS";Ze.length<=9;Ze+="S")ht(Ze,rt);function tn(t,e){e[Tt]=w(1e3*("0."+t))}for(Ze="S";Ze.length<=9;Ze+="S")mt(Ze,tn);var en=$("Milliseconds",!1);Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var nn=b.prototype;nn.add=Ve,nn.calendar=function(t,e){var n=t||Se(),i=Ie(n,this).startOf("day"),o=a.calendarFormat(this,i)||"sameElse",r=e&&(A(e[o])?e[o].call(this,n):e[o]);return this.format(r||this.localeData().calendar(o,this,Se(n)))},nn.clone=function(){return new b(this)},nn.diff=function(t,e,n){var i,a,o,r;return this.isValid()&&(i=Ie(t,this)).isValid()?(a=6e4*(i.utcOffset()-this.utcOffset()),"year"===(e=F(e))||"month"===e||"quarter"===e?(s=this,l=i,d=12*(l.year()-s.year())+(l.month()-s.month()),h=s.clone().add(d,"months"),l-h<0?(u=s.clone().add(d-1,"months"),c=(l-h)/(h-u)):(u=s.clone().add(d+1,"months"),c=(l-h)/(u-h)),r=-(d+c)||0,"quarter"===e?r/=3:"year"===e&&(r/=12)):(o=this-i,r="second"===e?o/1e3:"minute"===e?o/6e4:"hour"===e?o/36e5:"day"===e?(o-a)/864e5:"week"===e?(o-a)/6048e5:o),n?r:k(r)):NaN;var s,l,u,c,d,h},nn.endOf=function(t){return void 0===(t=F(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))},nn.format=function(t){t||(t=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)},nn.from=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||Se(t).isValid())?Le({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},nn.fromNow=function(t){return this.from(Se(),t)},nn.to=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||Se(t).isValid())?Le({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},nn.toNow=function(t){return this.to(Se(),t)},nn.get=function(t){return A(this[t=F(t)])?this[t]():this},nn.invalidAt=function(){return h(this).overflow},nn.isAfter=function(t,e){var n=x(t)?t:Se(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=F(g(e)?"millisecond":e))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},nn.isBefore=function(t,e){var n=x(t)?t:Se(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=F(g(e)?"millisecond":e))?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},nn.isBetween=function(t,e,n,i){return("("===(i=i||"()")[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===i[1]?this.isBefore(e,n):!this.isAfter(e,n))},nn.isSame=function(t,e){var n,i=x(t)?t:Se(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=F(e||"millisecond"))?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},nn.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},nn.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},nn.isValid=function(){return f(this)},nn.lang=Ye,nn.locale=qe,nn.localeData=Ue,nn.max=Te,nn.min=Ce,nn.parsingFlags=function(){return c({},h(this))},nn.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e=[];for(var n in t)e.push({unit:n,priority:N[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}(t=R(t)),i=0;i<n.length;i++)this[n[i].unit](t[n[i].unit]);else if(A(this[t=F(t)]))return this[t](e);return this},nn.startOf=function(t){switch(t=F(t)){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"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},nn.subtract=ze,nn.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},nn.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},nn.toDate=function(){return new Date(this.valueOf())},nn.toISOString=function(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?A(Date.prototype.toISOString)?this.toDate().toISOString():U(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):U(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},nn.toJSON=function(){return this.isValid()?this.toISOString():null},nn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},nn.unix=function(){return Math.floor(this.valueOf()/1e3)},nn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},nn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},nn.year=Bt,nn.isLeapYear=function(){return $t(this.year())},nn.weekYear=function(t){return Qe.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},nn.isoWeekYear=function(t){return Qe.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},nn.quarter=nn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},nn.month=Ot,nn.daysInMonth=function(){return Mt(this.year(),this.month())},nn.week=nn.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},nn.isoWeek=nn.isoWeeks=function(t){var e=Vt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},nn.weeksInYear=function(){var t=this.localeData()._week;return zt(this.year(),t.dow,t.doy)},nn.isoWeeksInYear=function(){return zt(this.year(),1,4)},nn.date=Xe,nn.day=nn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-i,"d")):i},nn.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},nn.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=(n=t,i=this.localeData(),"string"==typeof n?i.weekdaysParse(n)%7||7:isNaN(n)?null:n);return this.day(this.day()%7?e:e-7)}return this.day()||7;var n,i},nn.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},nn.hour=nn.hours=ne,nn.minute=nn.minutes=Ke,nn.second=nn.seconds=Je,nn.millisecond=nn.milliseconds=en,nn.utcOffset=function(t,e){var n,i=this._offset||0;return this.isValid()?null!=t?("string"==typeof t?t=Ee(ut,t):Math.abs(t)<16&&(t*=60),!this._isUTC&&e&&(n=Oe(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),i!==t&&(!e||this._changeInProgress?He(this,Le(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:Oe(this):null!=t?this:NaN},nn.utc=function(t){return this.utcOffset(0,t)},nn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Oe(this),"m")),this},nn.parseZone=function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Ee(lt,this._i)),this},nn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Se(t).utcOffset():0,(this.utcOffset()-t)%60==0)},nn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},nn.isLocal=function(){return!!this.isValid()&&!this._isUTC},nn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},nn.isUtc=Fe,nn.isUTC=Fe,nn.zoneAbbr=function(){return this._isUTC?"UTC":""},nn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},nn.dates=T("dates accessor is deprecated. Use date instead.",Xe),nn.months=T("months accessor is deprecated. Use month instead",Ot),nn.years=T("years accessor is deprecated. Use year instead",Bt),nn.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),nn.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!g(this._isDSTShifted))return this._isDSTShifted;var t={};if(v(t,this),(t=ke(t))._a){var e=t._isUTC?d(t._a):Se(t._a);this._isDSTShifted=this.isValid()&&S(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var an=nn;function on(t){return t}var rn=E.prototype;function sn(t,e,n,i){var a=ue(),o=d().set(i,e);return a[n](o,t)}function ln(t,e,n){if("number"==typeof t&&(e=t,t=void 0),t=t||"",null!=e)return sn(t,e,n,"month");var i,a=[];for(i=0;i<12;i++)a[i]=sn(t,i,n,"month");return a}function un(t,e,n,i){"boolean"==typeof t?("number"==typeof e&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,"number"==typeof e&&(n=e,e=void 0),e=e||"");var a,o=ue(),r=t?o._week.dow:0;if(null!=n)return sn(e,(n+r)%7,i,"day");var s=[];for(a=0;a<7;a++)s[a]=sn(e,(a+r)%7,i,"day");return s}rn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return A(i)?i.call(e,n):i},rn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},rn.invalidDate=function(){return this._invalidDate},rn.ordinal=function(t){return this._ordinal.replace("%d",t)},rn.preparse=on,rn.postformat=on,rn.relativeTime=function(t,e,n,i){var a=this._relativeTime[n];return A(a)?a(t,e,n,i):a.replace(/%d/i,t)},rn.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return A(n)?n(e):n.replace(/%s/i,e)},rn.set=function(t){var e,n;for(n in t)A(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},rn.months=function(t,e){return o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||At).test(e)?"format":"standalone"][t.month()]},rn.monthsShort=function(t,e){return o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[At.test(e)?"format":"standalone"][t.month()]},rn.monthsParse=function(t,e,n){var i,a,o;if(this._monthsParseExact)return function(t,e,n){var i,a,o,r=t.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"===e?-1!==(a=yt.call(this._shortMonthsParse,r))?a:null:-1!==(a=yt.call(this._longMonthsParse,r))?a:null:"MMM"===e?-1!==(a=yt.call(this._shortMonthsParse,r))?a:-1!==(a=yt.call(this._longMonthsParse,r))?a:null:-1!==(a=yt.call(this._longMonthsParse,r))?a:-1!==(a=yt.call(this._shortMonthsParse,r))?a:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=d([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},rn.monthsRegex=function(t){return this._monthsParseExact?(u(this,"_monthsRegex")||Nt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Rt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},rn.monthsShortRegex=function(t){return this._monthsParseExact?(u(this,"_monthsRegex")||Nt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=Ft),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},rn.week=function(t){return Vt(t,this._week.dow,this._week.doy).week},rn.firstDayOfYear=function(){return this._week.doy},rn.firstDayOfWeek=function(){return this._week.dow},rn.weekdays=function(t,e){return o(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]},rn.weekdaysMin=function(t){return this._weekdaysMin[t.day()]},rn.weekdaysShort=function(t){return this._weekdaysShort[t.day()]},rn.weekdaysParse=function(t,e,n){var i,a,o;if(this._weekdaysParseExact)return function(t,e,n){var i,a,o,r=t.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"===e?-1!==(a=yt.call(this._weekdaysParse,r))?a:null:"ddd"===e?-1!==(a=yt.call(this._shortWeekdaysParse,r))?a:null:-1!==(a=yt.call(this._minWeekdaysParse,r))?a:null:"dddd"===e?-1!==(a=yt.call(this._weekdaysParse,r))?a:-1!==(a=yt.call(this._shortWeekdaysParse,r))?a:-1!==(a=yt.call(this._minWeekdaysParse,r))?a:null:"ddd"===e?-1!==(a=yt.call(this._shortWeekdaysParse,r))?a:-1!==(a=yt.call(this._weekdaysParse,r))?a:-1!==(a=yt.call(this._minWeekdaysParse,r))?a:null:-1!==(a=yt.call(this._minWeekdaysParse,r))?a:-1!==(a=yt.call(this._weekdaysParse,r))?a:-1!==(a=yt.call(this._shortWeekdaysParse,r))?a:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=d([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},rn.weekdaysRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Gt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},rn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},rn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},rn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},rn.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},se("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===w(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),a.lang=T("moment.lang is deprecated. Use moment.locale instead.",se),a.langData=T("moment.langData is deprecated. Use moment.localeData instead.",ue);var cn=Math.abs;function dn(t,e,n,i){var a=Le(e,n);return t._milliseconds+=i*a._milliseconds,t._days+=i*a._days,t._months+=i*a._months,t._bubble()}function hn(t){return t<0?Math.floor(t):Math.ceil(t)}function fn(t){return 4800*t/146097}function pn(t){return 146097*t/4800}function gn(t){return function(){return this.as(t)}}var mn=gn("ms"),vn=gn("s"),yn=gn("m"),bn=gn("h"),xn=gn("d"),kn=gn("w"),wn=gn("M"),Sn=gn("y");function Cn(t){return function(){return this._data[t]}}var Tn=Cn("milliseconds"),_n=Cn("seconds"),Dn=Cn("minutes"),Mn=Cn("hours"),An=Cn("days"),Pn=Cn("months"),En=Cn("years");var In=Math.round,On={s:45,m:45,h:22,d:26,M:11};var Fn=Math.abs;function Rn(){var t,e,n=Fn(this._milliseconds)/1e3,i=Fn(this._days),a=Fn(this._months);e=k((t=k(n/60))/60),n%=60,t%=60;var o=k(a/12),r=a%=12,s=i,l=e,u=t,c=n,d=this.asSeconds();return d?(d<0?"-":"")+"P"+(o?o+"Y":"")+(r?r+"M":"")+(s?s+"D":"")+(l||u||c?"T":"")+(l?l+"H":"")+(u?u+"M":"")+(c?c+"S":""):"P0D"}var Nn=De.prototype;return Nn.abs=function(){var t=this._data;return this._milliseconds=cn(this._milliseconds),this._days=cn(this._days),this._months=cn(this._months),t.milliseconds=cn(t.milliseconds),t.seconds=cn(t.seconds),t.minutes=cn(t.minutes),t.hours=cn(t.hours),t.months=cn(t.months),t.years=cn(t.years),this},Nn.add=function(t,e){return dn(this,t,e,1)},Nn.subtract=function(t,e){return dn(this,t,e,-1)},Nn.as=function(t){var e,n,i=this._milliseconds;if("month"===(t=F(t))||"year"===t)return e=this._days+i/864e5,n=this._months+fn(e),"month"===t?n:n/12;switch(e=this._days+Math.round(pn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},Nn.asMilliseconds=mn,Nn.asSeconds=vn,Nn.asMinutes=yn,Nn.asHours=bn,Nn.asDays=xn,Nn.asWeeks=kn,Nn.asMonths=wn,Nn.asYears=Sn,Nn.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12)},Nn._bubble=function(){var t,e,n,i,a,o=this._milliseconds,r=this._days,s=this._months,l=this._data;return o>=0&&r>=0&&s>=0||o<=0&&r<=0&&s<=0||(o+=864e5*hn(pn(s)+r),r=0,s=0),l.milliseconds=o%1e3,t=k(o/1e3),l.seconds=t%60,e=k(t/60),l.minutes=e%60,n=k(e/60),l.hours=n%24,s+=a=k(fn(r+=k(n/24))),r-=hn(pn(a)),i=k(s/12),s%=12,l.days=r,l.months=s,l.years=i,this},Nn.get=function(t){return this[(t=F(t))+"s"]()},Nn.milliseconds=Tn,Nn.seconds=_n,Nn.minutes=Dn,Nn.hours=Mn,Nn.days=An,Nn.weeks=function(){return k(this.days()/7)},Nn.months=Pn,Nn.years=En,Nn.humanize=function(t){var e,n,i,a,o,r,s,l,u,c,d,h=this.localeData(),f=(n=!t,i=h,a=Le(e=this).abs(),o=In(a.as("s")),r=In(a.as("m")),s=In(a.as("h")),l=In(a.as("d")),u=In(a.as("M")),c=In(a.as("y")),(d=o<On.s&&["s",o]||r<=1&&["m"]||r<On.m&&["mm",r]||s<=1&&["h"]||s<On.h&&["hh",s]||l<=1&&["d"]||l<On.d&&["dd",l]||u<=1&&["M"]||u<On.M&&["MM",u]||c<=1&&["y"]||["yy",c])[2]=n,d[3]=+e>0,d[4]=i,function(t,e,n,i,a){return a.relativeTime(e||1,!!n,t,i)}.apply(null,d));return t&&(f=h.pastFuture(+this,f)),h.postformat(f)},Nn.toISOString=Rn,Nn.toString=Rn,Nn.toJSON=Rn,Nn.locale=qe,Nn.localeData=Ue,Nn.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Rn),Nn.lang=Ye,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),ht("x",st),ht("X",/[+-]?\d+(\.\d{1,3})?/),mt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),mt("x",function(t,e,n){n._d=new Date(w(t))}),a.version="2.14.1",n=Se,a.fn=an,a.min=function(){return _e("isBefore",[].slice.call(arguments,0))},a.max=function(){return _e("isAfter",[].slice.call(arguments,0))},a.now=function(){return Date.now?Date.now():+new Date},a.utc=d,a.unix=function(t){return Se(1e3*t)},a.months=function(t,e){return ln(t,e,"months")},a.isDate=s,a.locale=se,a.invalid=p,a.duration=Le,a.isMoment=x,a.weekdays=function(t,e,n){return un(t,e,n,"weekdays")},a.parseZone=function(){return Se.apply(null,arguments).parseZone()},a.localeData=ue,a.isDuration=Me,a.monthsShort=function(t,e){return ln(t,e,"monthsShort")},a.weekdaysMin=function(t,e,n){return un(t,e,n,"weekdaysMin")},a.defineLocale=le,a.updateLocale=function(t,e){if(null!=e){var n,i=ie;null!=ae[t]&&(i=ae[t]._config),(n=new E(e=P(i,e))).parentLocale=ae[t],ae[t]=n,se(t)}else null!=ae[t]&&(null!=ae[t].parentLocale?ae[t]=ae[t].parentLocale:null!=ae[t]&&delete ae[t]);return ae[t]},a.locales=function(){return _(ae)},a.weekdaysShort=function(t,e,n){return un(t,e,n,"weekdaysShort")},a.normalizeUnits=F,a.relativeTimeRounding=function(t){return void 0===t?In:"function"==typeof t&&(In=t,!0)},a.relativeTimeThreshold=function(t,e){return void 0!==On[t]&&(void 0===e?On[t]:(On[t]=e,!0))},a.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},a.prototype=an,a},"object"==typeof n&&void 0!==e?e.exports=a():i.moment=a()},{}],7:[function(t,e,n){var i=t(27)();t(26)(i),t(22)(i),t(25)(i),t(21)(i),t(23)(i),t(24)(i),t(28)(i),t(32)(i),t(30)(i),t(31)(i),t(33)(i),t(29)(i),t(34)(i),t(35)(i),t(36)(i),t(37)(i),t(38)(i),t(41)(i),t(39)(i),t(40)(i),t(42)(i),t(43)(i),t(44)(i),t(15)(i),t(16)(i),t(17)(i),t(18)(i),t(19)(i),t(20)(i),t(8)(i),t(9)(i),t(10)(i),t(11)(i),t(12)(i),t(13)(i),t(14)(i),window.Chart=e.exports=i},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,8:8,9:9}],8:[function(t,e,n){"use strict";e.exports=function(t){t.Bar=function(e,n){return n.type="bar",new t(e,n)}}},{}],9:[function(t,e,n){"use strict";e.exports=function(t){t.Bubble=function(e,n){return n.type="bubble",new t(e,n)}}},{}],10:[function(t,e,n){"use strict";e.exports=function(t){t.Doughnut=function(e,n){return n.type="doughnut",new t(e,n)}}},{}],11:[function(t,e,n){"use strict";e.exports=function(t){t.Line=function(e,n){return n.type="line",new t(e,n)}}},{}],12:[function(t,e,n){"use strict";e.exports=function(t){t.PolarArea=function(e,n){return n.type="polarArea",new t(e,n)}}},{}],13:[function(t,e,n){"use strict";e.exports=function(t){t.Radar=function(e,n){return n.options=t.helpers.configMerge({aspectRatio:1},n.options),n.type="radar",new t(e,n)}}},{}],14:[function(t,e,n){"use strict";e.exports=function(t){t.defaults.scatter={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-1"}],yAxes:[{type:"linear",position:"left",id:"y-axis-1"}]},tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}},t.controllers.scatter=t.controllers.line,t.Scatter=function(e,n){return n.type="scatter",new t(e,n)}}},{}],15:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.bar={hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}},t.controllers.bar=t.DatasetController.extend({dataElementType:t.elements.Rectangle,initialize:function(e,n){t.DatasetController.prototype.initialize.call(this,e,n),this.getMeta().bar=!0},getBarCount:function(){var t=this,n=0;return e.each(t.chart.data.datasets,function(e,i){t.chart.getDatasetMeta(i).bar&&t.chart.isDatasetVisible(i)&&++n},t),n},update:function(t){var n=this;e.each(n.getMeta().data,function(e,i){n.updateElement(e,i,t)},n)},updateElement:function(t,n,i){var a=this,o=a.getMeta(),r=a.getScaleForId(o.xAxisID),s=a.getScaleForId(o.yAxisID),l=s.getBasePixel(),u=a.chart.options.elements.rectangle,c=t.custom||{},d=a.getDataset();e.extend(t,{_xScale:r,_yScale:s,_datasetIndex:a.index,_index:n,_model:{x:a.calculateBarX(n,a.index),y:i?l:a.calculateBarY(n,a.index),label:a.chart.data.labels[n],datasetLabel:d.label,base:i?l:a.calculateBarBase(a.index,n),width:a.calculateBarWidth(n),backgroundColor:c.backgroundColor?c.backgroundColor:e.getValueAtIndexOrDefault(d.backgroundColor,n,u.backgroundColor),borderSkipped:c.borderSkipped?c.borderSkipped:u.borderSkipped,borderColor:c.borderColor?c.borderColor:e.getValueAtIndexOrDefault(d.borderColor,n,u.borderColor),borderWidth:c.borderWidth?c.borderWidth:e.getValueAtIndexOrDefault(d.borderWidth,n,u.borderWidth)}}),t.pivot()},calculateBarBase:function(t,e){var n=this.getMeta(),i=this.getScaleForId(n.yAxisID),a=0;if(i.options.stacked){for(var o=this.chart,r=o.data.datasets,s=Number(r[t].data[e]),l=0;l<t;l++){var u=r[l],c=o.getDatasetMeta(l);if(c.bar&&c.yAxisID===i.id&&o.isDatasetVisible(l)){var d=Number(u.data[e]);a+=s<0?Math.min(d,0):Math.max(d,0)}}return i.getPixelForValue(a)}return i.getBasePixel()},getRuler:function(t){var e,n=this.getMeta(),i=this.getScaleForId(n.xAxisID),a=this.getBarCount(),o=(e="category"===i.options.type?i.getPixelForTick(t+1)-i.getPixelForTick(t):i.width/i.ticks.length)*i.options.categoryPercentage,r=(e-e*i.options.categoryPercentage)/2,s=o/a;i.ticks.length!==this.chart.data.labels.length&&(s*=i.ticks.length/this.chart.data.labels.length);return{datasetCount:a,tickWidth:e,categoryWidth:o,categorySpacing:r,fullBarWidth:s,barWidth:s*i.options.barPercentage,barSpacing:s-s*i.options.barPercentage}},calculateBarWidth:function(t){var e=this.getScaleForId(this.getMeta().xAxisID);if(e.options.barThickness)return e.options.barThickness;var n=this.getRuler(t);return e.options.stacked?n.categoryWidth:n.barWidth},getBarIndex:function(t){var e,n=0;for(e=0;e<t;++e)this.chart.getDatasetMeta(e).bar&&this.chart.isDatasetVisible(e)&&++n;return n},calculateBarX:function(t,e){var n=this.getMeta(),i=this.getScaleForId(n.xAxisID),a=this.getBarIndex(e),o=this.getRuler(t),r=i.getPixelForValue(null,t,e,this.chart.isCombo);return r-=this.chart.isCombo?o.tickWidth/2:0,i.options.stacked?r+o.categoryWidth/2+o.categorySpacing:r+o.barWidth/2+o.categorySpacing+o.barWidth*a+o.barSpacing/2+o.barSpacing*a},calculateBarY:function(t,e){var n=this.getMeta(),i=this.getScaleForId(n.yAxisID),a=Number(this.getDataset().data[t]);if(i.options.stacked){for(var o=0,r=0,s=0;s<e;s++){var l=this.chart.data.datasets[s],u=this.chart.getDatasetMeta(s);if(u.bar&&u.yAxisID===i.id&&this.chart.isDatasetVisible(s)){var c=Number(l.data[t]);c<0?r+=c||0:o+=c||0}}return a<0?i.getPixelForValue(r+a):i.getPixelForValue(o+a)}return i.getPixelForValue(a)},draw:function(t){var n=this,i=t||1;e.each(n.getMeta().data,function(t,e){var a=n.getDataset().data[e];null==a||isNaN(a)||t.transition(i).draw()},n)},setHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},o=t._model;o.backgroundColor=a.hoverBackgroundColor?a.hoverBackgroundColor:e.getValueAtIndexOrDefault(n.hoverBackgroundColor,i,e.getHoverColor(o.backgroundColor)),o.borderColor=a.hoverBorderColor?a.hoverBorderColor:e.getValueAtIndexOrDefault(n.hoverBorderColor,i,e.getHoverColor(o.borderColor)),o.borderWidth=a.hoverBorderWidth?a.hoverBorderWidth:e.getValueAtIndexOrDefault(n.hoverBorderWidth,i,o.borderWidth)},removeHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},o=t._model,r=this.chart.options.elements.rectangle;o.backgroundColor=a.backgroundColor?a.backgroundColor:e.getValueAtIndexOrDefault(n.backgroundColor,i,r.backgroundColor),o.borderColor=a.borderColor?a.borderColor:e.getValueAtIndexOrDefault(n.borderColor,i,r.borderColor),o.borderWidth=a.borderWidth?a.borderWidth:e.getValueAtIndexOrDefault(n.borderWidth,i,r.borderWidth)}}),t.defaults.horizontalBar={hover:{mode:"label"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(t,e){var n="";return t.length>0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index<e.labels.length&&(n=e.labels[t[0].index])),n},label:function(t,e){return(e.datasets[t.datasetIndex].label||"")+": "+t.xLabel}}}},t.controllers.horizontalBar=t.controllers.bar.extend({updateElement:function(t,n,i){var a=this,o=a.getMeta(),r=a.getScaleForId(o.xAxisID),s=a.getScaleForId(o.yAxisID),l=r.getBasePixel(),u=t.custom||{},c=a.getDataset(),d=a.chart.options.elements.rectangle;e.extend(t,{_xScale:r,_yScale:s,_datasetIndex:a.index,_index:n,_model:{x:i?l:a.calculateBarX(n,a.index),y:a.calculateBarY(n,a.index),label:a.chart.data.labels[n],datasetLabel:c.label,base:i?l:a.calculateBarBase(a.index,n),height:a.calculateBarHeight(n),backgroundColor:u.backgroundColor?u.backgroundColor:e.getValueAtIndexOrDefault(c.backgroundColor,n,d.backgroundColor),borderSkipped:u.borderSkipped?u.borderSkipped:d.borderSkipped,borderColor:u.borderColor?u.borderColor:e.getValueAtIndexOrDefault(c.borderColor,n,d.borderColor),borderWidth:u.borderWidth?u.borderWidth:e.getValueAtIndexOrDefault(c.borderWidth,n,d.borderWidth)},draw:function(){var t=this._chart.ctx,e=this._view,n=e.height/2,i=e.y-n,a=e.y+n,o=e.base-(e.base-e.x),r=e.borderWidth/2;e.borderWidth&&(i+=r,a-=r,o+=r),t.beginPath(),t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth;var s=[[e.base,a],[e.base,i],[o,i],[o,a]],l=["bottom","left","top","right"].indexOf(e.borderSkipped,0);function u(t){return s[(l+t)%4]}-1===l&&(l=0),t.moveTo.apply(t,u(0));for(var c=1;c<4;c++)t.lineTo.apply(t,u(c));t.fill(),e.borderWidth&&t.stroke()},inRange:function(t,e){var n=this._view,i=!1;return n&&(i=n.x<n.base?e>=n.y-n.height/2&&e<=n.y+n.height/2&&t>=n.x&&t<=n.base:e>=n.y-n.height/2&&e<=n.y+n.height/2&&t>=n.base&&t<=n.x),i}}),t.pivot()},calculateBarBase:function(t,e){var n=this.getMeta(),i=this.getScaleForId(n.xAxisID),a=0;if(i.options.stacked){for(var o=this.chart,r=o.data.datasets,s=Number(r[t].data[e]),l=0;l<t;l++){var u=r[l],c=o.getDatasetMeta(l);if(c.bar&&c.xAxisID===i.id&&o.isDatasetVisible(l)){var d=Number(u.data[e]);a+=s<0?Math.min(d,0):Math.max(d,0)}}return i.getPixelForValue(a)}return i.getBasePixel()},getRuler:function(t){var e,n=this.getMeta(),i=this.getScaleForId(n.yAxisID),a=this.getBarCount(),o=(e="category"===i.options.type?i.getPixelForTick(t+1)-i.getPixelForTick(t):i.width/i.ticks.length)*i.options.categoryPercentage,r=(e-e*i.options.categoryPercentage)/2,s=o/a;i.ticks.length!==this.chart.data.labels.length&&(s*=i.ticks.length/this.chart.data.labels.length);return{datasetCount:a,tickHeight:e,categoryHeight:o,categorySpacing:r,fullBarHeight:s,barHeight:s*i.options.barPercentage,barSpacing:s-s*i.options.barPercentage}},calculateBarHeight:function(t){var e=this.getScaleForId(this.getMeta().yAxisID);if(e.options.barThickness)return e.options.barThickness;var n=this.getRuler(t);return e.options.stacked?n.categoryHeight:n.barHeight},calculateBarX:function(t,e){var n=this.getMeta(),i=this.getScaleForId(n.xAxisID),a=Number(this.getDataset().data[t]);if(i.options.stacked){for(var o=0,r=0,s=0;s<e;s++){var l=this.chart.data.datasets[s],u=this.chart.getDatasetMeta(s);if(u.bar&&u.xAxisID===i.id&&this.chart.isDatasetVisible(s)){var c=Number(l.data[t]);c<0?r+=c||0:o+=c||0}}return a<0?i.getPixelForValue(r+a):i.getPixelForValue(o+a)}return i.getPixelForValue(a)},calculateBarY:function(t,e){var n=this.getMeta(),i=this.getScaleForId(n.yAxisID),a=this.getBarIndex(e),o=this.getRuler(t),r=i.getPixelForValue(null,t,e,this.chart.isCombo);return r-=this.chart.isCombo?o.tickHeight/2:0,i.options.stacked?r+o.categoryHeight/2+o.categorySpacing:r+o.barHeight/2+o.categorySpacing+o.barHeight*a+o.barSpacing/2+o.barSpacing*a}})}},{}],16:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.bubble={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.datasets[t.datasetIndex].label||"",i=e.datasets[t.datasetIndex].data[t.index];return n+": ("+i.x+", "+i.y+", "+i.r+")"}}}},t.controllers.bubble=t.DatasetController.extend({dataElementType:t.elements.Point,update:function(t){var n=this,i=n.getMeta().data;e.each(i,function(e,i){n.updateElement(e,i,t)})},updateElement:function(n,i,a){var o=this.getMeta(),r=this.getScaleForId(o.xAxisID),s=this.getScaleForId(o.yAxisID),l=n.custom||{},u=this.getDataset(),c=u.data[i],d=this.chart.options.elements.point,h=this.index;e.extend(n,{_xScale:r,_yScale:s,_datasetIndex:h,_index:i,_model:{x:a?r.getPixelForDecimal(.5):r.getPixelForValue("object"==typeof c?c:NaN,i,h,this.chart.isCombo),y:a?s.getBasePixel():s.getPixelForValue(c,i,h),radius:a?0:l.radius?l.radius:this.getRadius(c),hitRadius:l.hitRadius?l.hitRadius:e.getValueAtIndexOrDefault(u.hitRadius,i,d.hitRadius)}}),t.DatasetController.prototype.removeHoverStyle.call(this,n,d);var f=n._model;f.skip=l.skip?l.skip:isNaN(f.x)||isNaN(f.y),n.pivot()},getRadius:function(t){return t.r||this.chart.options.elements.point.radius},setHoverStyle:function(n){t.DatasetController.prototype.setHoverStyle.call(this,n);var i=this.chart.data.datasets[n._datasetIndex],a=n._index,o=n.custom||{};n._model.radius=o.hoverRadius?o.hoverRadius:e.getValueAtIndexOrDefault(i.hoverRadius,a,this.chart.options.elements.point.hoverRadius)+this.getRadius(i.data[a])},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.point);var n=this.chart.data.datasets[e._datasetIndex].data[e._index],i=e.custom||{};e._model.radius=i.radius?i.radius:this.getRadius(n)}})}},{}],17:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers,n=t.defaults;n.doughnut={animation:{animateRotate:!0,animateScale:!1},aspectRatio:1,hover:{mode:"single"},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var n=t.data,i=n.datasets,a=n.labels;if(i.length)for(var o=0;o<i[0].data.length;++o)e.push('<li><span style="background-color:'+i[0].backgroundColor[o]+'"></span>'),a[o]&&e.push(a[o]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var n=t.data;return n.labels.length&&n.datasets.length?n.labels.map(function(i,a){var o=t.getDatasetMeta(0),r=n.datasets[0],s=o.data[a],l=s&&s.custom||{},u=e.getValueAtIndexOrDefault,c=t.options.elements.arc;return{text:i,fillStyle:l.backgroundColor?l.backgroundColor:u(r.backgroundColor,a,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(r.borderColor,a,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(r.borderWidth,a,c.borderWidth),hidden:isNaN(r.data[a])||o.data[a].hidden,index:a}}):[]}},onClick:function(t,e){var n,i,a,o=e.index,r=this.chart;for(n=0,i=(r.data.datasets||[]).length;n<i;++n)(a=r.getDatasetMeta(n)).data[o].hidden=!a.data[o].hidden;r.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+e.datasets[t.datasetIndex].data[t.index]}}}},n.pie=e.clone(n.doughnut),e.extend(n.pie,{cutoutPercentage:0}),t.controllers.doughnut=t.controllers.pie=t.DatasetController.extend({dataElementType:t.elements.Arc,linkScales:e.noop,getRingIndex:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&++e;return e},update:function(t){var n=this,i=n.chart,a=i.chartArea,o=i.options,r=o.elements.arc,s=a.right-a.left-r.borderWidth,l=a.bottom-a.top-r.borderWidth,u=Math.min(s,l),c={x:0,y:0},d=n.getMeta(),h=o.cutoutPercentage,f=o.circumference;if(f<2*Math.PI){var p=o.rotation%(2*Math.PI),g=(p+=2*Math.PI*(p>=Math.PI?-1:p<-Math.PI?1:0))+f,m=Math.cos(p),v=Math.sin(p),y=Math.cos(g),b=Math.sin(g),x=p<=0&&0<=g||p<=2*Math.PI&&2*Math.PI<=g,k=p<=.5*Math.PI&&.5*Math.PI<=g||p<=2.5*Math.PI&&2.5*Math.PI<=g,w=p<=-Math.PI&&-Math.PI<=g||p<=Math.PI&&Math.PI<=g,S=p<=.5*-Math.PI&&.5*-Math.PI<=g||p<=1.5*Math.PI&&1.5*Math.PI<=g,C=h/100,T=w?-1:Math.min(m*(m<0?1:C),y*(y<0?1:C)),_=S?-1:Math.min(v*(v<0?1:C),b*(b<0?1:C)),D=x?1:Math.max(m*(m>0?1:C),y*(y>0?1:C)),M=k?1:Math.max(v*(v>0?1:C),b*(b>0?1:C)),A=.5*(D-T),P=.5*(M-_);u=Math.min(s/A,l/P),c={x:-.5*(D+T),y:-.5*(M+_)}}i.borderWidth=n.getMaxBorderWidth(d.data),i.outerRadius=Math.max((u-i.borderWidth)/2,0),i.innerRadius=Math.max(h?i.outerRadius/100*h:1,0),i.radiusLength=(i.outerRadius-i.innerRadius)/i.getVisibleDatasetCount(),i.offsetX=c.x*i.outerRadius,i.offsetY=c.y*i.outerRadius,d.total=n.calculateTotal(),n.outerRadius=i.outerRadius-i.radiusLength*n.getRingIndex(n.index),n.innerRadius=n.outerRadius-i.radiusLength,e.each(d.data,function(e,i){n.updateElement(e,i,t)})},updateElement:function(t,n,i){var a=this.chart,o=a.chartArea,r=a.options,s=r.animation,l=(o.left+o.right)/2,u=(o.top+o.bottom)/2,c=r.rotation,d=r.rotation,h=this.getDataset(),f=i&&s.animateRotate?0:t.hidden?0:this.calculateCircumference(h.data[n])*(r.circumference/(2*Math.PI)),p=i&&s.animateScale?0:this.innerRadius,g=i&&s.animateScale?0:this.outerRadius,m=e.getValueAtIndexOrDefault;e.extend(t,{_datasetIndex:this.index,_index:n,_model:{x:l+a.offsetX,y:u+a.offsetY,startAngle:c,endAngle:d,circumference:f,outerRadius:g,innerRadius:p,label:m(h.label,n,a.data.labels[n])}});var v=t._model;this.removeHoverStyle(t),i&&s.animateRotate||(v.startAngle=0===n?r.rotation:this.getMeta().data[n-1]._model.endAngle,v.endAngle=v.startAngle+v.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,n=this.getDataset(),i=this.getMeta(),a=0;return e.each(i.data,function(e,i){t=n.data[i],isNaN(t)||e.hidden||(a+=Math.abs(t))}),a},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,n,i=0,a=this.index,o=t.length,r=0;r<o;r++)e=t[r]._model?t[r]._model.borderWidth:0,i=(n=t[r]._chart?t[r]._chart.config.data.datasets[a].hoverBorderWidth:0)>(i=e>i?e:i)?n:i;return i}})}},{}],18:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;function n(t,n){return e.getValueOrDefault(t.showLine,n.showLines)}t.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}},t.controllers.line=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,addElementAndReset:function(e){var i=this.chart.options,a=this.getMeta();t.DatasetController.prototype.addElementAndReset.call(this,e),n(this.getDataset(),i)&&0!==a.dataset._model.tension&&this.updateBezierControlPoints()},update:function(t){var i,a,o,r=this.getMeta(),s=r.dataset,l=r.data||[],u=this.chart.options,c=u.elements.line,d=this.getScaleForId(r.yAxisID),h=this.getDataset(),f=n(h,u);for(f&&(o=s.custom||{},void 0!==h.tension&&void 0===h.lineTension&&(h.lineTension=h.tension),s._scale=d,s._datasetIndex=this.index,s._children=l,s._model={spanGaps:h.spanGaps?h.spanGaps:u.spanGaps,tension:o.tension?o.tension:e.getValueOrDefault(h.lineTension,c.tension),backgroundColor:o.backgroundColor?o.backgroundColor:h.backgroundColor||c.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:h.borderWidth||c.borderWidth,borderColor:o.borderColor?o.borderColor:h.borderColor||c.borderColor,borderCapStyle:o.borderCapStyle?o.borderCapStyle:h.borderCapStyle||c.borderCapStyle,borderDash:o.borderDash?o.borderDash:h.borderDash||c.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:h.borderDashOffset||c.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:h.borderJoinStyle||c.borderJoinStyle,fill:o.fill?o.fill:void 0!==h.fill?h.fill:c.fill,steppedLine:o.steppedLine?o.steppedLine:e.getValueOrDefault(h.steppedLine,c.stepped),scaleTop:d.top,scaleBottom:d.bottom,scaleZero:d.getBasePixel()},s.pivot()),i=0,a=l.length;i<a;++i)this.updateElement(l[i],i,t);for(f&&0!==s._model.tension&&this.updateBezierControlPoints(),i=0,a=l.length;i<a;++i)l[i].pivot()},getPointBackgroundColor:function(t,n){var i=this.chart.options.elements.point.backgroundColor,a=this.getDataset(),o=t.custom||{};return o.backgroundColor?i=o.backgroundColor:a.pointBackgroundColor?i=e.getValueAtIndexOrDefault(a.pointBackgroundColor,n,i):a.backgroundColor&&(i=a.backgroundColor),i},getPointBorderColor:function(t,n){var i=this.chart.options.elements.point.borderColor,a=this.getDataset(),o=t.custom||{};return o.borderColor?i=o.borderColor:a.pointBorderColor?i=e.getValueAtIndexOrDefault(a.pointBorderColor,n,i):a.borderColor&&(i=a.borderColor),i},getPointBorderWidth:function(t,n){var i=this.chart.options.elements.point.borderWidth,a=this.getDataset(),o=t.custom||{};return o.borderWidth?i=o.borderWidth:a.pointBorderWidth?i=e.getValueAtIndexOrDefault(a.pointBorderWidth,n,i):a.borderWidth&&(i=a.borderWidth),i},updateElement:function(t,n,i){var a,o,r=this,s=r.getMeta(),l=t.custom||{},u=r.getDataset(),c=r.index,d=u.data[n],h=r.getScaleForId(s.yAxisID),f=r.getScaleForId(s.xAxisID),p=r.chart.options.elements.point;void 0!==u.radius&&void 0===u.pointRadius&&(u.pointRadius=u.radius),void 0!==u.hitRadius&&void 0===u.pointHitRadius&&(u.pointHitRadius=u.hitRadius),a=f.getPixelForValue("object"==typeof d?d:NaN,n,c,r.chart.isCombo),o=i?h.getBasePixel():r.calculatePointY(d,n,c),t._xScale=f,t._yScale=h,t._datasetIndex=c,t._index=n,t._model={x:a,y:o,skip:l.skip||isNaN(a)||isNaN(o),radius:l.radius||e.getValueAtIndexOrDefault(u.pointRadius,n,p.radius),pointStyle:l.pointStyle||e.getValueAtIndexOrDefault(u.pointStyle,n,p.pointStyle),backgroundColor:r.getPointBackgroundColor(t,n),borderColor:r.getPointBorderColor(t,n),borderWidth:r.getPointBorderWidth(t,n),tension:s.dataset._model?s.dataset._model.tension:0,steppedLine:!!s.dataset._model&&s.dataset._model.steppedLine,hitRadius:l.hitRadius||e.getValueAtIndexOrDefault(u.pointHitRadius,n,p.hitRadius)}},calculatePointY:function(t,e,n){var i,a,o,r=this.chart,s=this.getMeta(),l=this.getScaleForId(s.yAxisID),u=0,c=0;if(l.options.stacked){for(i=0;i<n;i++)if(a=r.data.datasets[i],"line"===(o=r.getDatasetMeta(i)).type&&o.yAxisID===l.id&&r.isDatasetVisible(i)){var d=Number(l.getRightValue(a.data[e]));d<0?c+=d||0:u+=d||0}var h=Number(l.getRightValue(t));return h<0?l.getPixelForValue(c+h):l.getPixelForValue(u+h)}return l.getPixelForValue(t)},updateBezierControlPoints:function(){var t,n,i,a,o=this.getMeta(),r=this.chart.chartArea,s=(o.data||[]).filter(function(t){return!t._model.skip}),l=this.chart.options.elements.line.capBezierPoints;function u(t,e,n){return l?Math.max(Math.min(t,n),e):t}for(t=0,n=s.length;t<n;++t)i=s[t]._model,a=e.splineCurve(e.previousItem(s,t)._model,i,e.nextItem(s,t)._model,o.dataset._model.tension),i.controlPointPreviousX=u(a.previous.x,r.left,r.right),i.controlPointPreviousY=u(a.previous.y,r.top,r.bottom),i.controlPointNextX=u(a.next.x,r.left,r.right),i.controlPointNextY=u(a.next.y,r.top,r.bottom)},draw:function(t){var e,i,a=this.getMeta(),o=a.data||[],r=t||1;for(e=0,i=o.length;e<i;++e)o[e].transition(r);for(n(this.getDataset(),this.chart.options)&&a.dataset.transition(r).draw(),e=0,i=o.length;e<i;++e)o[e].draw()},setHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},o=t._model;o.radius=a.hoverRadius||e.getValueAtIndexOrDefault(n.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),o.backgroundColor=a.hoverBackgroundColor||e.getValueAtIndexOrDefault(n.pointHoverBackgroundColor,i,e.getHoverColor(o.backgroundColor)),o.borderColor=a.hoverBorderColor||e.getValueAtIndexOrDefault(n.pointHoverBorderColor,i,e.getHoverColor(o.borderColor)),o.borderWidth=a.hoverBorderWidth||e.getValueAtIndexOrDefault(n.pointHoverBorderWidth,i,o.borderWidth)},removeHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},o=t._model;void 0!==n.radius&&void 0===n.pointRadius&&(n.pointRadius=n.radius),o.radius=a.radius||e.getValueAtIndexOrDefault(n.pointRadius,i,this.chart.options.elements.point.radius),o.backgroundColor=this.getPointBackgroundColor(t,i),o.borderColor=this.getPointBorderColor(t,i),o.borderWidth=this.getPointBorderWidth(t,i)}})}},{}],19:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.polarArea={scale:{type:"radialLinear",lineArc:!0,ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,aspectRatio:1,legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var n=t.data,i=n.datasets,a=n.labels;if(i.length)for(var o=0;o<i[0].data.length;++o)e.push('<li><span style="background-color:'+i[0].backgroundColor[o]+'">'),a[o]&&e.push(a[o]),e.push("</span></li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var n=t.data;return n.labels.length&&n.datasets.length?n.labels.map(function(i,a){var o=t.getDatasetMeta(0),r=n.datasets[0],s=o.data[a].custom||{},l=e.getValueAtIndexOrDefault,u=t.options.elements.arc;return{text:i,fillStyle:s.backgroundColor?s.backgroundColor:l(r.backgroundColor,a,u.backgroundColor),strokeStyle:s.borderColor?s.borderColor:l(r.borderColor,a,u.borderColor),lineWidth:s.borderWidth?s.borderWidth:l(r.borderWidth,a,u.borderWidth),hidden:isNaN(r.data[a])||o.data[a].hidden,index:a}}):[]}},onClick:function(t,e){var n,i,a,o=e.index,r=this.chart;for(n=0,i=(r.data.datasets||[]).length;n<i;++n)(a=r.getDatasetMeta(n)).data[o].hidden=!a.data[o].hidden;r.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}},t.controllers.polarArea=t.DatasetController.extend({dataElementType:t.elements.Arc,linkScales:e.noop,update:function(t){var n=this,i=n.chart,a=i.chartArea,o=n.getMeta(),r=i.options,s=r.elements.arc,l=Math.min(a.right-a.left,a.bottom-a.top);i.outerRadius=Math.max((l-s.borderWidth/2)/2,0),i.innerRadius=Math.max(r.cutoutPercentage?i.outerRadius/100*r.cutoutPercentage:1,0),i.radiusLength=(i.outerRadius-i.innerRadius)/i.getVisibleDatasetCount(),n.outerRadius=i.outerRadius-i.radiusLength*n.index,n.innerRadius=n.outerRadius-i.radiusLength,o.count=n.countVisibleElements(),e.each(o.data,function(e,i){n.updateElement(e,i,t)})},updateElement:function(t,n,i){for(var a=this.chart,o=this.getDataset(),r=a.options,s=r.animation,l=a.scale,u=e.getValueAtIndexOrDefault,c=a.data.labels,d=this.calculateCircumference(o.data[n]),h=l.xCenter,f=l.yCenter,p=0,g=this.getMeta(),m=0;m<n;++m)isNaN(o.data[m])||g.data[m].hidden||++p;var v=r.startAngle,y=t.hidden?0:l.getDistanceFromCenterForValue(o.data[n]),b=v+d*p,x=b+(t.hidden?0:d),k=s.animateScale?0:l.getDistanceFromCenterForValue(o.data[n]);e.extend(t,{_datasetIndex:this.index,_index:n,_scale:l,_model:{x:h,y:f,innerRadius:0,outerRadius:i?k:y,startAngle:i&&s.animateRotate?v:b,endAngle:i&&s.animateRotate?v:x,label:u(c,n,c[n])}}),this.removeHoverStyle(t),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},countVisibleElements:function(){var t=this.getDataset(),n=this.getMeta(),i=0;return e.each(n.data,function(e,n){isNaN(t.data[n])||e.hidden||i++}),i},calculateCircumference:function(t){var e=this.getMeta().count;return e>0&&!isNaN(t)?2*Math.PI/e:0}})}},{}],20:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.radar={scale:{type:"radialLinear"},elements:{line:{tension:0}}},t.controllers.radar=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,linkScales:e.noop,addElementAndReset:function(e){t.DatasetController.prototype.addElementAndReset.call(this,e),this.updateBezierControlPoints()},update:function(t){var n=this,i=n.getMeta(),a=i.dataset,o=i.data,r=a.custom||{},s=n.getDataset(),l=n.chart.options.elements.line,u=n.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),e.extend(i.dataset,{_datasetIndex:n.index,_children:o,_loop:!0,_model:{tension:r.tension?r.tension:e.getValueOrDefault(s.lineTension,l.tension),backgroundColor:r.backgroundColor?r.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:s.borderWidth||l.borderWidth,borderColor:r.borderColor?r.borderColor:s.borderColor||l.borderColor,fill:r.fill?r.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:r.borderCapStyle?r.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:r.borderDash?r.borderDash:s.borderDash||l.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle,scaleTop:u.top,scaleBottom:u.bottom,scaleZero:u.getBasePosition()}}),i.dataset.pivot(),e.each(o,function(e,i){n.updateElement(e,i,t)},n),n.updateBezierControlPoints()},updateElement:function(t,n,i){var a=t.custom||{},o=this.getDataset(),r=this.chart.scale,s=this.chart.options.elements.point,l=r.getPointPositionForValue(n,o.data[n]);e.extend(t,{_datasetIndex:this.index,_index:n,_scale:r,_model:{x:i?r.xCenter:l.x,y:i?r.yCenter:l.y,tension:a.tension?a.tension:e.getValueOrDefault(o.tension,this.chart.options.elements.line.tension),radius:a.radius?a.radius:e.getValueAtIndexOrDefault(o.pointRadius,n,s.radius),backgroundColor:a.backgroundColor?a.backgroundColor:e.getValueAtIndexOrDefault(o.pointBackgroundColor,n,s.backgroundColor),borderColor:a.borderColor?a.borderColor:e.getValueAtIndexOrDefault(o.pointBorderColor,n,s.borderColor),borderWidth:a.borderWidth?a.borderWidth:e.getValueAtIndexOrDefault(o.pointBorderWidth,n,s.borderWidth),pointStyle:a.pointStyle?a.pointStyle:e.getValueAtIndexOrDefault(o.pointStyle,n,s.pointStyle),hitRadius:a.hitRadius?a.hitRadius:e.getValueAtIndexOrDefault(o.hitRadius,n,s.hitRadius)}}),t._model.skip=a.skip?a.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,n=this.getMeta();e.each(n.data,function(i,a){var o=i._model,r=e.splineCurve(e.previousItem(n.data,a,!0)._model,o,e.nextItem(n.data,a,!0)._model,o.tension);o.controlPointPreviousX=Math.max(Math.min(r.previous.x,t.right),t.left),o.controlPointPreviousY=Math.max(Math.min(r.previous.y,t.bottom),t.top),o.controlPointNextX=Math.max(Math.min(r.next.x,t.right),t.left),o.controlPointNextY=Math.max(Math.min(r.next.y,t.bottom),t.top),i.pivot()})},draw:function(t){var n=this.getMeta(),i=t||1;e.each(n.data,function(t){t.transition(i)}),n.dataset.transition(i).draw(),e.each(n.data,function(t){t.draw()})},setHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],i=t.custom||{},a=t._index,o=t._model;o.radius=i.hoverRadius?i.hoverRadius:e.getValueAtIndexOrDefault(n.pointHoverRadius,a,this.chart.options.elements.point.hoverRadius),o.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:e.getValueAtIndexOrDefault(n.pointHoverBackgroundColor,a,e.getHoverColor(o.backgroundColor)),o.borderColor=i.hoverBorderColor?i.hoverBorderColor:e.getValueAtIndexOrDefault(n.pointHoverBorderColor,a,e.getHoverColor(o.borderColor)),o.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:e.getValueAtIndexOrDefault(n.pointHoverBorderWidth,a,o.borderWidth)},removeHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],i=t.custom||{},a=t._index,o=t._model,r=this.chart.options.elements.point;o.radius=i.radius?i.radius:e.getValueAtIndexOrDefault(n.radius,a,r.radius),o.backgroundColor=i.backgroundColor?i.backgroundColor:e.getValueAtIndexOrDefault(n.pointBackgroundColor,a,r.backgroundColor),o.borderColor=i.borderColor?i.borderColor:e.getValueAtIndexOrDefault(n.pointBorderColor,a,r.borderColor),o.borderWidth=i.borderWidth?i.borderWidth:e.getValueAtIndexOrDefault(n.pointBorderWidth,a,r.borderWidth)}})}},{}],21:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.global.animation={duration:1e3,easing:"easeOutQuart",onProgress:e.noop,onComplete:e.noop},t.Animation=t.Element.extend({currentStep:null,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,i){i||(t.animating=!0);for(var a=0;a<this.animations.length;++a)if(this.animations[a].chartInstance===t)return void(this.animations[a].animationObject=e);this.animations.push({chartInstance:t,animationObject:e}),1===this.animations.length&&this.requestAnimationFrame()},cancelAnimation:function(t){var n=e.findIndex(this.animations,function(e){return e.chartInstance===t});-1!==n&&(this.animations.splice(n,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=e.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=this,e=Date.now(),n=0;t.dropFrames>1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1);for(var i=0;i<t.animations.length;)null===t.animations[i].animationObject.currentStep&&(t.animations[i].animationObject.currentStep=0),t.animations[i].animationObject.currentStep+=1+n,t.animations[i].animationObject.currentStep>t.animations[i].animationObject.numSteps&&(t.animations[i].animationObject.currentStep=t.animations[i].animationObject.numSteps),t.animations[i].animationObject.render(t.animations[i].chartInstance,t.animations[i].animationObject),t.animations[i].animationObject.onAnimationProgress&&t.animations[i].animationObject.onAnimationProgress.call&&t.animations[i].animationObject.onAnimationProgress.call(t.animations[i].chartInstance,t.animations[i]),t.animations[i].animationObject.currentStep===t.animations[i].animationObject.numSteps?(t.animations[i].animationObject.onAnimationComplete&&t.animations[i].animationObject.onAnimationComplete.call&&t.animations[i].animationObject.onAnimationComplete.call(t.animations[i].chartInstance,t.animations[i]),t.animations[i].chartInstance.animating=!1,t.animations.splice(i,1)):++i;var a=(Date.now()-e)/t.frameDuration;t.dropFrames+=a,t.animations.length>0&&t.requestAnimationFrame()}}}},{}],22:[function(t,e,n){"use strict";e.exports=function(t){(t.canvasHelpers={}).drawPoint=function(t,e,n,i,a){var o,r,s,l,u,c;if("object"!=typeof e||"[object HTMLImageElement]"!==(o=e.toString())&&"[object HTMLCanvasElement]"!==o){if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(i,a,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),u=(r=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(i-r/2,a+u/3),t.lineTo(i+r/2,a+u/3),t.lineTo(i,a-2*u/3),t.closePath(),t.fill();break;case"rect":c=1/Math.SQRT2*n,t.beginPath(),t.fillRect(i-c,a-c,2*c,2*c),t.strokeRect(i-c,a-c,2*c,2*c);break;case"rectRot":c=1/Math.SQRT2*n,t.beginPath(),t.moveTo(i-c,a),t.lineTo(i,a+c),t.lineTo(i+c,a),t.lineTo(i,a-c),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(i,a+n),t.lineTo(i,a-n),t.moveTo(i-n,a),t.lineTo(i+n,a),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(i-s,a-l),t.lineTo(i+s,a+l),t.moveTo(i-s,a+l),t.lineTo(i+s,a-l),t.closePath();break;case"star":t.beginPath(),t.moveTo(i,a+n),t.lineTo(i,a-n),t.moveTo(i-n,a),t.lineTo(i+n,a),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(i-s,a-l),t.lineTo(i+s,a+l),t.moveTo(i-s,a+l),t.lineTo(i+s,a-l),t.closePath();break;case"line":t.beginPath(),t.moveTo(i-n,a),t.lineTo(i+n,a),t.closePath();break;case"dash":t.beginPath(),t.moveTo(i,a),t.lineTo(i+n,a),t.closePath()}t.stroke()}}else t.drawImage(e,i-e.width/2,a-e.height/2)}}},{}],23:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;t.types={},t.instances={},t.controllers={},t.Controller=function(n){return this.chart=n,this.config=n.config,this.options=this.config.options=e.configMerge(t.defaults.global,t.defaults[this.config.type],this.config.options||{}),this.id=e.uid(),Object.defineProperty(this,"data",{get:function(){return this.config.data}}),t.instances[this.id]=this,this.options.responsive&&this.resize(!0),this.initialize(),this},e.extend(t.Controller.prototype,{initialize:function(){var e=this;return t.plugins.notify("beforeInit",[e]),e.bindEvents(),e.ensureScalesHaveIDs(),e.buildOrUpdateControllers(),e.buildScales(),e.updateLayout(),e.resetElements(),e.initToolTip(),e.update(),t.plugins.notify("afterInit",[e]),e},clear:function(){return e.clear(this.chart),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(n){var i=this,a=i.chart,o=a.canvas,r=e.getMaximumWidth(o),s=a.aspectRatio,l=i.options.maintainAspectRatio&&!1===isNaN(s)&&isFinite(s)&&0!==s?r/s:e.getMaximumHeight(o);if(!(a.width!==r||a.height!==l))return i;o.width=a.width=r,o.height=a.height=l,e.retinaScale(a);var u={width:r,height:l};return t.plugins.notify("resize",[i,u]),i.options.onResize&&i.options.onResize(i,u),n||(i.stop(),i.update(i.options.responsiveAnimationDuration)),i},ensureScalesHaveIDs:function(){var t=this.options,n=t.scales||{},i=t.scale;e.each(n.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),e.each(n.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),i&&(i.id=i.id||"scale")},buildScales:function(){var n=this,i=n.options,a=n.scales={},o=[];i.scales&&(o=o.concat((i.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category"}}),(i.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear"}}))),i.scale&&o.push({options:i.scale,dtype:"radialLinear",isDefault:!0}),e.each(o,function(i){var o=i.options,r=e.getValueOrDefault(o.type,i.dtype),s=t.scaleService.getScaleConstructor(r);if(s){var l=new s({id:o.id,options:o,ctx:n.chart.ctx,chart:n});a[l.id]=l,i.isDefault&&(n.scale=l)}}),t.scaleService.addScalesToLayout(this)},updateLayout:function(){t.layoutService.update(this,this.chart.width,this.chart.height)},buildOrUpdateControllers:function(){var n=this,i=[],a=[];if(e.each(n.data.datasets,function(e,o){var r=n.getDatasetMeta(o);r.type||(r.type=e.type||n.config.type),i.push(r.type),r.controller?r.controller.updateIndex(o):(r.controller=new t.controllers[r.type](n,o),a.push(r.controller))},n),i.length>1)for(var o=1;o<i.length;o++)if(i[o]!==i[o-1]){n.isCombo=!0;break}return a},resetElements:function(){var t=this;e.each(t.data.datasets,function(e,n){t.getDatasetMeta(n).controller.reset()},t)},update:function(n,i){var a=this;t.plugins.notify("beforeUpdate",[a]),a.tooltip._data=a.data;var o=a.buildOrUpdateControllers();e.each(a.data.datasets,function(t,e){a.getDatasetMeta(e).controller.buildOrUpdateElements()},a),t.layoutService.update(a,a.chart.width,a.chart.height),t.plugins.notify("afterScaleUpdate",[a]),e.each(o,function(t){t.reset()}),a.updateDatasets(),t.plugins.notify("afterUpdate",[a]),a.render(n,i)},updateDatasets:function(){var e,n;if(t.plugins.notify("beforeDatasetsUpdate",[this])){for(e=0,n=this.data.datasets.length;e<n;++e)this.getDatasetMeta(e).controller.update();t.plugins.notify("afterDatasetsUpdate",[this])}},render:function(n,i){t.plugins.notify("beforeRender",[this]);var a=this.options.animation;if(a&&(void 0!==n&&0!==n||void 0===n&&0!==a.duration)){var o=new t.Animation;o.numSteps=(n||a.duration)/16.66,o.easing=a.easing,o.render=function(t,n){var i=e.easingEffects[n.easing],a=n.currentStep/n.numSteps,o=i(a);t.draw(o,a,n.currentStep)},o.onAnimationProgress=a.onProgress,o.onAnimationComplete=a.onComplete,t.animationService.addAnimation(this,o,n,i)}else this.draw(),a&&a.onComplete&&a.onComplete.call&&a.onComplete.call(this);return this},draw:function(n){var i=this,a=n||1;i.clear(),t.plugins.notify("beforeDraw",[i,a]),e.each(i.boxes,function(t){t.draw(i.chartArea)},i),i.scale&&i.scale.draw(),t.plugins.notify("beforeDatasetsDraw",[i,a]),e.each(i.data.datasets,function(t,e){i.isDatasetVisible(e)&&i.getDatasetMeta(e).controller.draw(n)},i,!0),t.plugins.notify("afterDatasetsDraw",[i,a]),i.tooltip.transition(a).draw(),t.plugins.notify("afterDraw",[i,a])},getElementAtEvent:function(t){var n=this,i=e.getRelativePosition(t,n.chart),a=[];return e.each(n.data.datasets,function(t,o){if(n.isDatasetVisible(o)){var r=n.getDatasetMeta(o);e.each(r.data,function(t){if(t.inRange(i.x,i.y))return a.push(t),a})}}),a.slice(0,1)},getElementsAtEvent:function(t){var n=this,i=e.getRelativePosition(t,n.chart),a=[],o=function(){if(n.data.datasets)for(var t=0;t<n.data.datasets.length;t++){var e=n.getDatasetMeta(t);if(n.isDatasetVisible(t))for(var a=0;a<e.data.length;a++)if(e.data[a].inRange(i.x,i.y))return e.data[a]}}.call(n);return o?(e.each(n.data.datasets,function(t,e){if(n.isDatasetVisible(e)){var i=n.getDatasetMeta(e).data[o._index];i&&!i._view.skip&&a.push(i)}},n),a):a},getElementsAtXAxis:function(t){var n=this,i=e.getRelativePosition(t,n.chart),a=[],o=function(){if(n.data.datasets)for(var t=0;t<n.data.datasets.length;t++){var e=n.getDatasetMeta(t);if(n.isDatasetVisible(t))for(var a=0;a<e.data.length;a++)if(e.data[a].inLabelRange(i.x,i.y))return e.data[a]}}.call(n);return o?(e.each(n.data.datasets,function(t,i){if(n.isDatasetVisible(i)){var r=n.getDatasetMeta(i),s=e.findIndex(r.data,function(t){return o._model.x===t._model.x});-1===s||r.data[s]._view.skip||a.push(r.data[s])}},n),a):a},getElementsAtEventForMode:function(t,e){switch(e){case"single":return this.getElementAtEvent(t);case"label":return this.getElementsAtEvent(t);case"dataset":return this.getDatasetAtEvent(t);case"x-axis":return this.getElementsAtXAxis(t);default:return t}},getDatasetAtEvent:function(t){var e=this.getElementAtEvent(t);return e.length>0&&(e=this.getDatasetMeta(e[0]._datasetIndex).data),e},getDatasetMeta:function(t){var e=this.data.datasets[t];e._meta||(e._meta={});var n=e._meta[this.id];return n||(n=e._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),n},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e<n;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroy:function(){var n=this;n.stop(),n.clear(),e.unbindEvents(n,n.events),e.removeResizeListener(n.chart.canvas.parentNode);var i=n.chart.canvas;i.width=n.chart.width,i.height=n.chart.height,void 0!==n.chart.originalDevicePixelRatio&&n.chart.ctx.scale(1/n.chart.originalDevicePixelRatio,1/n.chart.originalDevicePixelRatio),i.style.width=n.chart.originalCanvasStyleWidth,i.style.height=n.chart.originalCanvasStyleHeight,t.plugins.notify("destroy",[n]),delete t.instances[n.id]},toBase64Image:function(){return this.chart.canvas.toDataURL.apply(this.chart.canvas,arguments)},initToolTip:function(){this.tooltip=new t.Tooltip({_chart:this.chart,_chartInstance:this,_data:this.data,_options:this.options.tooltips},this)},bindEvents:function(){var t=this;e.bindEvents(t,t.options.events,function(e){t.eventHandler(e)})},updateHoverStyle:function(t,e,n){var i,a,o,r=n?"setHoverStyle":"removeHoverStyle";switch(e){case"single":t=[t[0]];break;case"label":case"dataset":case"x-axis":break;default:return}for(a=0,o=t.length;a<o;++a)(i=t[a])&&this.getDatasetMeta(i._datasetIndex).controller[r](i)},eventHandler:function(t){var n=this,i=n.tooltip,a=n.options||{},o=a.hover,r=a.tooltips;return n.lastActive=n.lastActive||[],n.lastTooltipActive=n.lastTooltipActive||[],"mouseout"===t.type?(n.active=[],n.tooltipActive=[]):(n.active=n.getElementsAtEventForMode(t,o.mode),n.tooltipActive=n.getElementsAtEventForMode(t,r.mode)),o.onHover&&o.onHover.call(n,n.active),"mouseup"!==t.type&&"click"!==t.type||(a.onClick&&a.onClick.call(n,t,n.active),n.legend&&n.legend.handleEvent&&n.legend.handleEvent(t)),n.lastActive.length&&n.updateHoverStyle(n.lastActive,o.mode,!1),n.active.length&&o.mode&&n.updateHoverStyle(n.active,o.mode,!0),(r.enabled||r.custom)&&(i.initialize(),i._active=n.tooltipActive,i.update(!0)),i.pivot(),n.animating||e.arrayEquals(n.active,n.lastActive)&&e.arrayEquals(n.tooltipActive,n.lastTooltipActive)||(n.stop(),(r.enabled||r.custom)&&i.update(!0),n.render(o.animationDuration,!0)),n.lastActive=n.active,n.lastTooltipActive=n.tooltipActive,n}})}},{}],24:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers,n=e.noop;t.DatasetController=function(t,e){this.initialize.call(this,t,e)},e.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){this.chart=t,this.index=e,this.linkScales(),this.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this.getMeta(),e=this.getDataset();null===t.xAxisID&&(t.xAxisID=e.xAxisID||this.chart.options.scales.xAxes[0].id),null===t.yAxisID&&(t.yAxisID=e.yAxisID||this.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart.chart,_datasetIndex:this.index,_index:t})},addElements:function(){var t,e,n=this.getMeta(),i=this.getDataset().data||[],a=n.data;for(t=0,e=i.length;t<e;++t)a[t]=a[t]||this.createMetaData(n,t);n.dataset=n.dataset||this.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var t=this.getMeta().data,e=this.getDataset().data.length,n=t.length;if(e<n)t.splice(e,n-e);else if(e>n)for(var i=n;i<e;++i)this.addElementAndReset(i)},update:n,draw:function(t){var n=t||1;e.each(this.getMeta().data,function(t){t.transition(n).draw()})},removeHoverStyle:function(t,n){var i=this.chart.data.datasets[t._datasetIndex],a=t._index,o=t.custom||{},r=e.getValueAtIndexOrDefault,s=t._model;s.backgroundColor=o.backgroundColor?o.backgroundColor:r(i.backgroundColor,a,n.backgroundColor),s.borderColor=o.borderColor?o.borderColor:r(i.borderColor,a,n.borderColor),s.borderWidth=o.borderWidth?o.borderWidth:r(i.borderWidth,a,n.borderWidth)},setHoverStyle:function(t){var n=this.chart.data.datasets[t._datasetIndex],i=t._index,a=t.custom||{},o=e.getValueAtIndexOrDefault,r=e.getHoverColor,s=t._model;s.backgroundColor=a.hoverBackgroundColor?a.hoverBackgroundColor:o(n.hoverBackgroundColor,i,r(s.backgroundColor)),s.borderColor=a.hoverBorderColor?a.hoverBorderColor:o(n.hoverBorderColor,i,r(s.borderColor)),s.borderWidth=a.hoverBorderWidth?a.hoverBorderWidth:o(n.hoverBorderWidth,i,s.borderWidth)}}),t.DatasetController.extend=e.inherits}},{}],25:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;t.elements={},t.Element=function(t){e.extend(this,t),this.initialize.apply(this,arguments)},e.extend(t.Element.prototype,{initialize:function(){this.hidden=!1},pivot:function(){return this._view||(this._view=e.clone(this._model)),this._start=e.clone(this._view),this},transition:function(t){var n=this;return n._view||(n._view=e.clone(n._model)),1===t?(n._view=n._model,n._start=null,n):(n._start||n.pivot(),e.each(n._model,function(i,a){if("_"===a[0]);else if(n._view.hasOwnProperty(a))if(i===n._view[a]);else if("string"==typeof i)try{var o=e.color(n._model[a]).mix(e.color(n._start[a]),t);n._view[a]=o.rgbString()}catch(t){n._view[a]=i}else if("number"==typeof i){var r=void 0!==n._start[a]&&!1===isNaN(n._start[a])?n._start[a]:0;n._view[a]=(n._model[a]-r)*t+r}else n._view[a]=i;else"number"!=typeof i||isNaN(n._view[a])?n._view[a]=i:n._view[a]=i*t},n),n)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return e.isNumber(this._model.x)&&e.isNumber(this._model.y)}}),t.Element.extend=e.inherits}},{}],26:[function(t,e,n){"use strict";var i=t(2);e.exports=function(t){var e,n=t.helpers={};n.each=function(t,e,i,a){var o,r;if(n.isArray(t))if(r=t.length,a)for(o=r-1;o>=0;o--)e.call(i,t[o],o);else for(o=0;o<r;o++)e.call(i,t[o],o);else if("object"==typeof t){var s=Object.keys(t);for(r=s.length,o=0;o<r;o++)e.call(i,t[s[o]],s[o])}},n.clone=function(t){var e={};return n.each(t,function(t,i){n.isArray(t)?e[i]=t.slice(0):e[i]="object"==typeof t&&null!==t?n.clone(t):t}),e},n.extend=function(t){for(var e=function(e,n){t[n]=e},i=1,a=arguments.length;i<a;i++)n.each(arguments[i],e);return t},n.configMerge=function(e){var i=n.clone(e);return n.each(Array.prototype.slice.call(arguments,1),function(e){n.each(e,function(e,a){if("scales"===a)i[a]=n.scaleMerge(i.hasOwnProperty(a)?i[a]:{},e);else if("scale"===a)i[a]=n.configMerge(i.hasOwnProperty(a)?i[a]:{},t.scaleService.getScaleDefaults(e.type),e);else if(i.hasOwnProperty(a)&&n.isArray(i[a])&&n.isArray(e)){var o=i[a];n.each(e,function(t,e){e<o.length?"object"==typeof o[e]&&null!==o[e]&&"object"==typeof t&&null!==t?o[e]=n.configMerge(o[e],t):o[e]=t:o.push(t)})}else i.hasOwnProperty(a)&&"object"==typeof i[a]&&null!==i[a]&&"object"==typeof e?i[a]=n.configMerge(i[a],e):i[a]=e})}),i},n.scaleMerge=function(e,i){var a=n.clone(e);return n.each(i,function(e,i){"xAxes"===i||"yAxes"===i?a.hasOwnProperty(i)?n.each(e,function(e,o){var r=n.getValueOrDefault(e.type,"xAxes"===i?"category":"linear"),s=t.scaleService.getScaleDefaults(r);o>=a[i].length||!a[i][o].type?a[i].push(n.configMerge(s,e)):e.type&&e.type!==a[i][o].type?a[i][o]=n.configMerge(a[i][o],s,e):a[i][o]=n.configMerge(a[i][o],e)}):(a[i]=[],n.each(e,function(e){var o=n.getValueOrDefault(e.type,"xAxes"===i?"category":"linear");a[i].push(n.configMerge(t.scaleService.getScaleDefaults(o),e))})):a.hasOwnProperty(i)&&"object"==typeof a[i]&&null!==a[i]&&"object"==typeof e?a[i]=n.configMerge(a[i],e):a[i]=e}),a},n.getValueAtIndexOrDefault=function(t,e,i){return null==t?i:n.isArray(t)?e<t.length?t[e]:i:t},n.getValueOrDefault=function(t,e){return void 0===t?e:t},n.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var n=0,i=t.length;n<i;++n)if(t[n]===e)return n;return-1},n.where=function(t,e){if(n.isArray(t)&&Array.prototype.filter)return t.filter(e);var i=[];return n.each(t,function(t){e(t)&&i.push(t)}),i},n.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var i=0,a=t.length;i<a;++i)if(e.call(n,t[i],i,t))return i;return-1},n.findNextWhere=function(t,e,n){null==n&&(n=-1);for(var i=n+1;i<t.length;i++){var a=t[i];if(e(a))return a}},n.findPreviousWhere=function(t,e,n){null==n&&(n=t.length);for(var i=n-1;i>=0;i--){var a=t[i];if(e(a))return a}},n.inherits=function(t){var e=this,i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},a=function(){this.constructor=i};return a.prototype=e.prototype,i.prototype=new a,i.extend=n.inherits,t&&n.extend(i.prototype,t),i.__super__=e.prototype,i},n.noop=function(){},n.uid=(e=0,function(){return e++}),n.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},n.almostEquals=function(t,e,n){return Math.abs(t-e)<n},n.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},n.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},n.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0===(t=+t)||isNaN(t)?t:t>0?1:-1},n.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},n.toRadians=function(t){return t*(Math.PI/180)},n.toDegrees=function(t){return t*(180/Math.PI)},n.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,a=Math.sqrt(n*n+i*i),o=Math.atan2(i,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:a}},n.aliasPixel=function(t){return t%2==0?0:.5},n.splineCurve=function(t,e,n,i){var a=t.skip?e:t,o=e,r=n.skip?e:n,s=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),l=Math.sqrt(Math.pow(r.x-o.x,2)+Math.pow(r.y-o.y,2)),u=s/(s+l),c=l/(s+l),d=i*(u=isNaN(u)?0:u),h=i*(c=isNaN(c)?0:c);return{previous:{x:o.x-d*(r.x-a.x),y:o.y-d*(r.y-a.y)},next:{x:o.x+h*(r.x-a.x),y:o.y+h*(r.y-a.y)}}},n.nextItem=function(t,e,n){return n?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},n.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},n.niceNum=function(t,e){var i=Math.floor(n.log10(t)),a=t/Math.pow(10,i);return(e?a<1.5?1:a<3?2:a<7?5:10:a<=1?1:a<=2?2:a<=5?5:10)*Math.pow(10,i)};var a=n.easingEffects={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-1*t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1*((t=t/1-1)*t*t+1)},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-1*((t=t/1-1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return 1*(t/=1)*t*t*t*t},easeOutQuint:function(t){return 1*((t=t/1-1)*t*t*t*t+1)},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return-1*Math.cos(t/1*(Math.PI/2))+1},easeOutSine:function(t){return 1*Math.sin(t/1*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t/1)-1)},easeInExpo:function(t){return 0===t?1:1*Math.pow(2,10*(t/1-1))},easeOutExpo:function(t){return 1===t?1:1*(1-Math.pow(2,-10*t/1))},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return t>=1?t:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return 1*Math.sqrt(1-(t=t/1-1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1==(t/=1)?1:(n||(n=.3),i<Math.abs(1)?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1==(t/=1)?1:(n||(n=.3),i<Math.abs(1)?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((1*t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.3*1.5*1),i<Math.abs(1)?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){return 1*(t/=1)*t*(2.70158*t-1.70158)},easeOutBack:function(t){return 1*((t=t/1-1)*t*(2.70158*t+1.70158)+1)},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-a.easeOutBounce(1-t)},easeOutBounce:function(t){return(t/=1)<1/2.75?7.5625*t*t*1:t<2/2.75?1*(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1*(7.5625*(t-=2.25/2.75)*t+.9375):1*(7.5625*(t-=2.625/2.75)*t+.984375)},easeInOutBounce:function(t){return t<.5?.5*a.easeInBounce(2*t):.5*a.easeOutBounce(2*t-1)+.5}};function o(t,e,n){var i;return"string"==typeof t?(i=parseInt(t,10),-1!=t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}function r(t){return null!=t&&"none"!==t}function s(t,e,n){var i=document.defaultView,a=t.parentNode,s=i.getComputedStyle(t)[e],l=i.getComputedStyle(a)[e],u=r(s),c=r(l),d=Number.POSITIVE_INFINITY;return u||c?Math.min(u?o(s,t,n):d,c?o(l,a,n):d):"none"}n.requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},n.cancelAnimFrame=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(t){return window.clearTimeout(t,1e3/60)},n.getRelativePosition=function(t,e){var i,a,o=t.originalEvent||t,r=t.currentTarget||t.srcElement,s=r.getBoundingClientRect(),l=o.touches;l&&l.length>0?(i=l[0].clientX,a=l[0].clientY):(i=o.clientX,a=o.clientY);var u=parseFloat(n.getStyle(r,"padding-left")),c=parseFloat(n.getStyle(r,"padding-top")),d=parseFloat(n.getStyle(r,"padding-right")),h=parseFloat(n.getStyle(r,"padding-bottom")),f=s.right-s.left-u-d,p=s.bottom-s.top-c-h;return{x:i=Math.round((i-s.left-u)/f*r.width/e.currentDevicePixelRatio),y:a=Math.round((a-s.top-c)/p*r.height/e.currentDevicePixelRatio)}},n.addEvent=function(t,e,n){t.addEventListener?t.addEventListener(e,n):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n},n.removeEvent=function(t,e,i){t.removeEventListener?t.removeEventListener(e,i,!1):t.detachEvent?t.detachEvent("on"+e,i):t["on"+e]=n.noop},n.bindEvents=function(t,e,i){var a=t.events=t.events||{};n.each(e,function(e){a[e]=function(){i.apply(t,arguments)},n.addEvent(t.chart.canvas,e,a[e])})},n.unbindEvents=function(t,e){var i=t.chart.canvas;n.each(e,function(t,e){n.removeEvent(i,e,t)})},n.getConstraintWidth=function(t){return s(t,"max-width","clientWidth")},n.getConstraintHeight=function(t){return s(t,"max-height","clientHeight")},n.getMaximumWidth=function(t){var e=t.parentNode,i=parseInt(n.getStyle(e,"padding-left"))+parseInt(n.getStyle(e,"padding-right")),a=e.clientWidth-i,o=n.getConstraintWidth(t);return isNaN(o)?a:Math.min(a,o)},n.getMaximumHeight=function(t){var e=t.parentNode,i=parseInt(n.getStyle(e,"padding-top"))+parseInt(n.getStyle(e,"padding-bottom")),a=e.clientHeight-i,o=n.getConstraintHeight(t);return isNaN(o)?a:Math.min(a,o)},n.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},n.retinaScale=function(t){var e=t.ctx,n=t.canvas,i=n.width,a=n.height,o=t.currentDevicePixelRatio=window.devicePixelRatio||1;1!==o&&(n.height=a*o,n.width=i*o,e.scale(o,o),t.originalDevicePixelRatio=t.originalDevicePixelRatio||o),n.style.width=i+"px",n.style.height=a+"px"},n.clear=function(t){t.ctx.clearRect(0,0,t.width,t.height)},n.fontString=function(t,e,n){return e+" "+t+"px "+n},n.longestText=function(t,e,i,a){var o=(a=a||{}).data=a.data||{},r=a.garbageCollect=a.garbageCollect||[];a.font!==e&&(o=a.data={},r=a.garbageCollect=[],a.font=e),t.font=e;var s=0;n.each(i,function(e){null!=e&&!0!==n.isArray(e)?s=n.measureText(t,o,r,s,e):n.isArray(e)&&n.each(e,function(e){null==e||n.isArray(e)||(s=n.measureText(t,o,r,s,e))})});var l=r.length/2;if(l>i.length){for(var u=0;u<l;u++)delete o[r[u]];r.splice(0,l)}return s},n.measureText=function(t,e,n,i,a){var o=e[a];return o||(o=e[a]=t.measureText(a).width,n.push(a)),o>i&&(i=o),i},n.numberOfLabelLines=function(t){var e=1;return n.each(t,function(t){n.isArray(t)&&t.length>e&&(e=t.length)}),e},n.drawRoundedRectangle=function(t,e,n,i,a,o){t.beginPath(),t.moveTo(e+o,n),t.lineTo(e+i-o,n),t.quadraticCurveTo(e+i,n,e+i,n+o),t.lineTo(e+i,n+a-o),t.quadraticCurveTo(e+i,n+a,e+i-o,n+a),t.lineTo(e+o,n+a),t.quadraticCurveTo(e,n+a,e,n+a-o),t.lineTo(e,n+o),t.quadraticCurveTo(e,n,e+o,n),t.closePath()},n.color=function(e){return i?e instanceof CanvasGradient?i(t.defaults.global.defaultColor):i(e):(console.log("Color.js not found!"),e)},n.addResizeListener=function(t,e){var n=document.createElement("iframe"),i="chartjs-hidden-iframe";n.classlist?n.classlist.add(i):n.setAttribute("class",i);var a=n.style;a.width="100%",a.display="block",a.border=0,a.height=0,a.margin=0,a.position="absolute",a.left=0,a.right=0,a.top=0,a.bottom=0,t.insertBefore(n,t.firstChild),(n.contentWindow||n).onresize=function(){e&&e()}},n.removeResizeListener=function(t){var e=t.querySelector(".chartjs-hidden-iframe");e&&e.parentNode.removeChild(e)},n.isArray=Array.isArray?function(t){return Array.isArray(t)}:function(t){return"[object Array]"===Object.prototype.toString.call(t)},n.arrayEquals=function(t,e){var i,a,o,r;if(!t||!e||t.length!=e.length)return!1;for(i=0,a=t.length;i<a;++i)if(o=t[i],r=e[i],o instanceof Array&&r instanceof Array){if(!n.arrayEquals(o,r))return!1}else if(o!=r)return!1;return!0},n.callCallback=function(t,e,n){t&&"function"==typeof t.call&&t.apply(n,e)},n.getHoverColor=function(t){return t instanceof CanvasPattern?t:n.color(t).saturate(.5).darken(.1).rgbString()}}},{2:2}],27:[function(t,e,n){"use strict";e.exports=function(){var t=function(e,n){var i=this,a=t.helpers;return i.config=n||{data:{datasets:[]}},e.length&&e[0].getContext&&(e=e[0]),e.getContext&&(e=e.getContext("2d")),i.ctx=e,i.canvas=e.canvas,e.canvas.style.display=e.canvas.style.display||"block",i.width=e.canvas.width||parseInt(a.getStyle(e.canvas,"width"),10)||a.getMaximumWidth(e.canvas),i.height=e.canvas.height||parseInt(a.getStyle(e.canvas,"height"),10)||a.getMaximumHeight(e.canvas),i.aspectRatio=i.width/i.height,(isNaN(i.aspectRatio)||!1===isFinite(i.aspectRatio))&&(i.aspectRatio=void 0!==n.aspectRatio?n.aspectRatio:2),i.originalCanvasStyleWidth=e.canvas.style.width,i.originalCanvasStyleHeight=e.canvas.style.height,a.retinaScale(i),i.controller=new t.Controller(i),a.addResizeListener(e.canvas.parentNode,function(){i.controller&&i.controller.config.options.responsive&&i.controller.resize()}),i.controller?i.controller:i};return t.defaults={global:{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"single",animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var n=0;n<t.data.datasets.length;n++)e.push('<li><span style="background-color:'+t.data.datasets[n].backgroundColor+'"></span>'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("</li>");return e.push("</ul>"),e.join("")}}},t.Chart=t,t}},{}],28:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),t.boxes.push(e)},removeBox:function(t,e){t.boxes&&t.boxes.splice(t.boxes.indexOf(e),1)},update:function(t,n,i){if(t){var a=0,o=e.where(t.boxes,function(t){return"left"===t.options.position}),r=e.where(t.boxes,function(t){return"right"===t.options.position}),s=e.where(t.boxes,function(t){return"top"===t.options.position}),l=e.where(t.boxes,function(t){return"bottom"===t.options.position}),u=e.where(t.boxes,function(t){return"chartArea"===t.options.position});s.sort(function(t,e){return(e.options.fullWidth?1:0)-(t.options.fullWidth?1:0)}),l.sort(function(t,e){return(t.options.fullWidth?1:0)-(e.options.fullWidth?1:0)});var c=n-2*a,d=i-0,h=d/2,f=(n-c/2)/(o.length+r.length),p=(i-h)/(s.length+l.length),g=c,m=d,v=[];e.each(o.concat(r,s,l),function(t){var e,n=t.isHorizontal();n?(e=t.update(t.options.fullWidth?c:g,p),m-=e.height):(e=t.update(f,h),g-=e.width);v.push({horizontal:n,minSize:e,box:t})});var y=a,b=a,x=0,k=0;e.each(o.concat(r),_),e.each(o,function(t){y+=t.width}),e.each(r,function(t){b+=t.width}),e.each(s.concat(l),_),e.each(s,function(t){x+=t.height}),e.each(l,function(t){k+=t.height}),e.each(o.concat(r),function(t){var n=e.findNextWhere(v,function(e){return e.box===t}),i={left:0,right:0,top:x,bottom:k};n&&t.update(n.minSize.width,m,i)}),y=a,b=a,x=0,k=0,e.each(o,function(t){y+=t.width}),e.each(r,function(t){b+=t.width}),e.each(s,function(t){x+=t.height}),e.each(l,function(t){k+=t.height});var w=i-x-k,S=n-y-b;S===g&&w===m||(e.each(o,function(t){t.height=w}),e.each(r,function(t){t.height=w}),e.each(s,function(t){t.options.fullWidth||(t.width=S)}),e.each(l,function(t){t.options.fullWidth||(t.width=S)}),m=w,g=S);var C=a,T=0;e.each(o.concat(s),D),C+=g,T+=m,e.each(r,D),e.each(l,D),t.chartArea={left:y,top:x,right:y+g,bottom:x+m},e.each(u,function(e){e.left=t.chartArea.left,e.top=t.chartArea.top,e.right=t.chartArea.right,e.bottom=t.chartArea.bottom,e.update(g,m)})}function _(t){var n=e.findNextWhere(v,function(e){return e.box===t});if(n)if(t.isHorizontal()){var i={left:y,right:b,top:0,bottom:0};t.update(t.options.fullWidth?c:g,d/2,i)}else t.update(n.minSize.width,m)}function D(t){t.isHorizontal()?(t.left=t.options.fullWidth?a:y,t.right=t.options.fullWidth?n-a:y+g,t.top=T,t.bottom=T+t.height,T=t.bottom):(t.left=C,t.right=C+t.width,t.top=x,t.bottom=x+m,C=t.right)}}}}},{}],29:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers,n=e.noop;t.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,onClick:function(t,e){var n=e.datasetIndex,i=this.chart,a=i.getDatasetMeta(n);a.hidden=null===a.hidden?!i.data.datasets[n].hidden:null,i.update()},labels:{boxWidth:40,padding:10,generateLabels:function(t){var n=t.data;return e.isArray(n.datasets)?n.datasets.map(function(n,i){return{text:n.label,fillStyle:e.isArray(n.backgroundColor)?n.backgroundColor[0]:n.backgroundColor,hidden:!t.isDatasetVisible(i),lineCap:n.borderCapStyle,lineDash:n.borderDash,lineDashOffset:n.borderDashOffset,lineJoin:n.borderJoinStyle,lineWidth:n.borderWidth,strokeStyle:n.borderColor,pointStyle:n.pointStyle,datasetIndex:i}},this):[]}}},t.Legend=t.Element.extend({initialize:function(t){e.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:n,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:n,beforeSetDimensions:n,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:n,beforeBuildLabels:n,buildLabels:function(){this.legendItems=this.options.labels.generateLabels.call(this,this.chart),this.options.reverse&&this.legendItems.reverse()},afterBuildLabels:n,beforeFit:n,fit:function(){var n=this,i=n.options,a=i.labels,o=i.display,r=n.ctx,s=t.defaults.global,l=e.getValueOrDefault,u=l(a.fontSize,s.defaultFontSize),c=l(a.fontStyle,s.defaultFontStyle),d=l(a.fontFamily,s.defaultFontFamily),h=e.fontString(u,c,d),f=n.legendHitBoxes=[],p=n.minSize,g=n.isHorizontal();if(g?(p.width=n.maxWidth,p.height=o?10:0):(p.width=o?10:0,p.height=n.maxHeight),o)if(r.font=h,g){var m=n.lineWidths=[0],v=n.legendItems.length?u+a.padding:0;r.textAlign="left",r.textBaseline="top",e.each(n.legendItems,function(t,e){var i=(a.usePointStyle?u*Math.sqrt(2):a.boxWidth)+u/2+r.measureText(t.text).width;m[m.length-1]+i+a.padding>=n.width&&(v+=u+a.padding,m[m.length]=n.left),f[e]={left:0,top:0,width:i,height:u},m[m.length-1]+=i+a.padding}),p.height+=v}else{var y=a.padding,b=n.columnWidths=[],x=a.padding,k=0,w=0,S=u+y;e.each(n.legendItems,function(t,e){var n=(a.usePointStyle?2*a.boxWidth:a.boxWidth)+u/2+r.measureText(t.text).width;w+S>p.height&&(x+=k+a.padding,b.push(k),k=0,w=0),k=Math.max(k,n),w+=S,f[e]={left:0,top:0,width:n,height:u}}),x+=k,b.push(k),p.width+=x}n.width=p.width,n.height=p.height},afterFit:n,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var n=this,i=n.options,a=i.labels,o=t.defaults.global,r=o.elements.line,s=n.width,l=n.lineWidths;if(i.display){var u,c=n.ctx,d=e.getValueOrDefault,h=d(a.fontColor,o.defaultFontColor),f=d(a.fontSize,o.defaultFontSize),p=d(a.fontStyle,o.defaultFontStyle),g=d(a.fontFamily,o.defaultFontFamily),m=e.fontString(f,p,g);c.textAlign="left",c.textBaseline="top",c.lineWidth=.5,c.strokeStyle=h,c.fillStyle=h,c.font=m;var v=a.boxWidth,y=n.legendHitBoxes,b=n.isHorizontal();u=b?{x:n.left+(s-l[0])/2,y:n.top+a.padding,line:0}:{x:n.left+a.padding,y:n.top+a.padding,line:0};var x=f+a.padding;e.each(n.legendItems,function(e,h){var p,g,m,k,w=c.measureText(e.text).width,S=a.usePointStyle?f+f/2+w:v+f/2+w,C=u.x,T=u.y;b?C+S>=s&&(T=u.y+=x,u.line++,C=u.x=n.left+(s-l[u.line])/2):T+x>n.bottom&&(C=u.x=C+n.columnWidths[u.line]+a.padding,T=u.y=n.top,u.line++),function(e,n,a){if(!(isNaN(v)||v<=0)){if(c.save(),c.fillStyle=d(a.fillStyle,o.defaultColor),c.lineCap=d(a.lineCap,r.borderCapStyle),c.lineDashOffset=d(a.lineDashOffset,r.borderDashOffset),c.lineJoin=d(a.lineJoin,r.borderJoinStyle),c.lineWidth=d(a.lineWidth,r.borderWidth),c.strokeStyle=d(a.strokeStyle,o.defaultColor),c.setLineDash&&c.setLineDash(d(a.lineDash,r.borderDash)),i.labels&&i.labels.usePointStyle){var s=f*Math.SQRT2/2,l=s/Math.SQRT2,u=e+l,h=n+l;t.canvasHelpers.drawPoint(c,a.pointStyle,s,u,h)}else c.strokeRect(e,n,v,f),c.fillRect(e,n,v,f);c.restore()}}(C,T,e),y[h].left=C,y[h].top=T,p=C,g=T,m=e,k=w,c.fillText(m.text,v+f/2+p,g),m.hidden&&(c.beginPath(),c.lineWidth=2,c.moveTo(v+f/2+p,g+f/2),c.lineTo(v+f/2+p+k,g+f/2),c.stroke()),b?u.x+=S+a.padding:u.y+=x})}},handleEvent:function(t){var n=e.getRelativePosition(t,this.chart.chart),i=n.x,a=n.y,o=this.options;if(i>=this.left&&i<=this.right&&a>=this.top&&a<=this.bottom)for(var r=this.legendHitBoxes,s=0;s<r.length;++s){var l=r[s];if(i>=l.left&&i<=l.left+l.width&&a>=l.top&&a<=l.top+l.height){o.onClick&&o.onClick.call(this,t,this.legendItems[s]);break}}}}),t.plugins.register({beforeInit:function(e){var n=e.options.legend;n&&(e.legend=new t.Legend({ctx:e.chart.ctx,options:n,chart:e}),t.layoutService.addBox(e,e.legend))}})}},{}],30:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers.noop;t.plugins={_plugins:[],register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)})},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)})},clear:function(){this._plugins=[]},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e){var n,i,a=this._plugins,o=a.length;for(n=0;n<o;++n)if("function"==typeof(i=a[n])[t]&&!1===i[t].apply(i,e||[]))return!1;return!0}},t.PluginBase=t.Element.extend({beforeInit:e,afterInit:e,beforeUpdate:e,afterUpdate:e,beforeDraw:e,afterDraw:e,destroy:e}),t.pluginService=t.plugins}},{}],31:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.scale={display:!0,position:"left",gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",offsetGridLines:!1},scaleLabel:{labelString:"",display:!1},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:10,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:function(t){return e.isArray(t)?t:""+t}}},t.Scale=t.Element.extend({beforeUpdate:function(){e.callCallback(this.options.beforeUpdate,[this])},update:function(t,n,i){var a=this;return a.beforeUpdate(),a.maxWidth=t,a.maxHeight=n,a.margins=e.extend({left:0,right:0,top:0,bottom:0},i),a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeDataLimits(),a.determineDataLimits(),a.afterDataLimits(),a.beforeBuildTicks(),a.buildTicks(),a.afterBuildTicks(),a.beforeTickToLabelConversion(),a.convertTicksToLabels(),a.afterTickToLabelConversion(),a.beforeCalculateTickRotation(),a.calculateTickRotation(),a.afterCalculateTickRotation(),a.beforeFit(),a.fit(),a.afterFit(),a.afterUpdate(),a.minSize},afterUpdate:function(){e.callCallback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){e.callCallback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){e.callCallback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){e.callCallback(this.options.beforeDataLimits,[this])},determineDataLimits:e.noop,afterDataLimits:function(){e.callCallback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){e.callCallback(this.options.beforeBuildTicks,[this])},buildTicks:e.noop,afterBuildTicks:function(){e.callCallback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){e.callCallback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this;t.ticks=t.ticks.map(function(e,n,i){return t.options.ticks.userCallback?t.options.ticks.userCallback(e,n,i):t.options.ticks.callback(e,n,i)},t)},afterTickToLabelConversion:function(){e.callCallback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){e.callCallback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var n=this,i=n.ctx,a=t.defaults.global,o=n.options.ticks,r=e.getValueOrDefault(o.fontSize,a.defaultFontSize),s=e.getValueOrDefault(o.fontStyle,a.defaultFontStyle),l=e.getValueOrDefault(o.fontFamily,a.defaultFontFamily),u=e.fontString(r,s,l);i.font=u;var c,d=i.measureText(n.ticks[0]).width,h=i.measureText(n.ticks[n.ticks.length-1]).width;if(n.labelRotation=o.minRotation||0,n.paddingRight=0,n.paddingLeft=0,n.options.display&&n.isHorizontal()){n.paddingRight=h/2+3,n.paddingLeft=d/2+3,n.longestTextCache||(n.longestTextCache={});for(var f,p,g=e.longestText(i,u,n.ticks,n.longestTextCache),m=g,v=n.getPixelForTick(1)-n.getPixelForTick(0)-6;m>v&&n.labelRotation<o.maxRotation;){if(f=Math.cos(e.toRadians(n.labelRotation)),p=Math.sin(e.toRadians(n.labelRotation)),(c=f*d)+r/2>n.yLabelWidth&&(n.paddingLeft=c+r/2),n.paddingRight=r/2,p*g>n.maxHeight){n.labelRotation--;break}n.labelRotation++,m=f*g}}n.margins&&(n.paddingLeft=Math.max(n.paddingLeft-n.margins.left,0),n.paddingRight=Math.max(n.paddingRight-n.margins.right,0))},afterCalculateTickRotation:function(){e.callCallback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){e.callCallback(this.options.beforeFit,[this])},fit:function(){var n=this,i=n.minSize={width:0,height:0},a=n.options,o=t.defaults.global,r=a.ticks,s=a.scaleLabel,l=a.display,u=n.isHorizontal(),c=e.getValueOrDefault(r.fontSize,o.defaultFontSize),d=e.getValueOrDefault(r.fontStyle,o.defaultFontStyle),h=e.getValueOrDefault(r.fontFamily,o.defaultFontFamily),f=e.fontString(c,d,h),p=e.getValueOrDefault(s.fontSize,o.defaultFontSize),g=a.gridLines.tickMarkLength;if(i.width=u?n.isFullWidth()?n.maxWidth-n.margins.left-n.margins.right:n.maxWidth:l?g:0,i.height=u?l?g:0:n.maxHeight,s.display&&l&&(u?i.height+=1.5*p:i.width+=1.5*p),r.display&&l){n.longestTextCache||(n.longestTextCache={});var m=e.longestText(n.ctx,f,n.ticks,n.longestTextCache),v=e.numberOfLabelLines(n.ticks),y=.5*c;if(u){n.longestLabelWidth=m;var b=Math.sin(e.toRadians(n.labelRotation))*n.longestLabelWidth+c*v+y*v;i.height=Math.min(n.maxHeight,i.height+b),n.ctx.font=f;var x=n.ctx.measureText(n.ticks[0]).width,k=n.ctx.measureText(n.ticks[n.ticks.length-1]).width,w=Math.cos(e.toRadians(n.labelRotation)),S=Math.sin(e.toRadians(n.labelRotation));n.paddingLeft=0!==n.labelRotation?w*x+3:x/2+3,n.paddingRight=0!==n.labelRotation?S*(c/2)+3:k/2+3}else{var C=n.maxWidth-i.width;r.mirror?m=0:m+=n.options.ticks.padding,m<C?i.width+=m:i.width=n.maxWidth,n.paddingTop=c/2,n.paddingBottom=c/2}}n.margins&&(n.paddingLeft=Math.max(n.paddingLeft-n.margins.left,0),n.paddingTop=Math.max(n.paddingTop-n.margins.top,0),n.paddingRight=Math.max(n.paddingRight-n.margins.right,0),n.paddingBottom=Math.max(n.paddingBottom-n.margins.bottom,0)),n.width=i.width,n.height=i.height},afterFit:function(){e.callCallback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){return null==t?NaN:"number"==typeof t&&isNaN(t)?NaN:"object"==typeof t?t instanceof Date||t.isValid?t:this.getRightValue(this.isHorizontal()?t.x:t.y):t},getLabelForIndex:e.noop,getPixelForValue:e.noop,getValueForPixel:e.noop,getPixelForTick:function(t,e){var n=this;if(n.isHorizontal()){var i=(n.width-(n.paddingLeft+n.paddingRight))/Math.max(n.ticks.length-(n.options.gridLines.offsetGridLines?0:1),1),a=i*t+n.paddingLeft;e&&(a+=i/2);var o=n.left+Math.round(a);return o+=n.isFullWidth()?n.margins.left:0}var r=n.height-(n.paddingTop+n.paddingBottom);return n.top+t*(r/(n.ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft,i=e.left+Math.round(n);return i+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){var t=this.min,e=this.max;return this.getPixelForValue(this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0)},draw:function(n){var i=this,a=i.options;if(a.display){var o,r,s=i.ctx,l=t.defaults.global,u=a.ticks,c=a.gridLines,d=a.scaleLabel,h=0!==i.labelRotation,f=u.autoSkip,p=i.isHorizontal();u.maxTicksLimit&&(r=u.maxTicksLimit);var g=e.getValueOrDefault(u.fontColor,l.defaultFontColor),m=e.getValueOrDefault(u.fontSize,l.defaultFontSize),v=e.getValueOrDefault(u.fontStyle,l.defaultFontStyle),y=e.getValueOrDefault(u.fontFamily,l.defaultFontFamily),b=e.fontString(m,v,y),x=c.tickMarkLength,k=e.getValueOrDefault(d.fontColor,l.defaultFontColor),w=e.getValueOrDefault(d.fontSize,l.defaultFontSize),S=e.getValueOrDefault(d.fontStyle,l.defaultFontStyle),C=e.getValueOrDefault(d.fontFamily,l.defaultFontFamily),T=e.fontString(w,S,C),_=e.toRadians(i.labelRotation),D=Math.cos(_),M=i.longestLabelWidth*D;s.fillStyle=g;var A=[];if(p){if(o=!1,h&&(M/=2),(M+u.autoSkipPadding)*i.ticks.length>i.width-(i.paddingLeft+i.paddingRight)&&(o=1+Math.floor((M+u.autoSkipPadding)*i.ticks.length/(i.width-(i.paddingLeft+i.paddingRight)))),r&&i.ticks.length>r)for(;!o||i.ticks.length/(o||1)>r;)o||(o=1),o+=1;f||(o=!1)}var P="right"===a.position?i.left:i.right-x,E="right"===a.position?i.left+x:i.right,I="bottom"===a.position?i.top:i.bottom-x,O="bottom"===a.position?i.top+x:i.bottom;if(e.each(i.ticks,function(t,r){if(null!=t){var s=i.ticks.length===r+1;if((!(o>1&&r%o>0||r%o==0&&r+o>=i.ticks.length)||s)&&null!=t){var l,d,f,g,m,v,y,b,k,w,S,C;r===(void 0!==i.zeroLineIndex?i.zeroLineIndex:0)?(l=c.zeroLineWidth,d=c.zeroLineColor):(l=e.getValueAtIndexOrDefault(c.lineWidth,r),d=e.getValueAtIndexOrDefault(c.color,r));var T,D="middle";if(p){h||(D="top"===a.position?"bottom":"top"),T=h?"right":"center";var M=i.getPixelForTick(r)+e.aliasPixel(l);S=i.getPixelForTick(r,c.offsetGridLines)+u.labelOffset,C=h?i.top+12:"top"===a.position?i.bottom-x:i.top+x,f=m=y=k=M,g=I,v=O,b=n.top,w=n.bottom}else{"left"===a.position?u.mirror?(S=i.right+u.padding,T="left"):(S=i.right-u.padding,T="right"):u.mirror?(S=i.left-u.padding,T="right"):(S=i.left+u.padding,T="left");var F=i.getPixelForTick(r);F+=e.aliasPixel(l),C=i.getPixelForTick(r,c.offsetGridLines),f=P,m=E,y=n.left,k=n.right,g=v=b=w=F}A.push({tx1:f,ty1:g,tx2:m,ty2:v,x1:y,y1:b,x2:k,y2:w,labelX:S,labelY:C,glWidth:l,glColor:d,rotation:-1*_,label:t,textBaseline:D,textAlign:T})}}}),e.each(A,function(t){if(c.display&&(s.lineWidth=t.glWidth,s.strokeStyle=t.glColor,s.beginPath(),c.drawTicks&&(s.moveTo(t.tx1,t.ty1),s.lineTo(t.tx2,t.ty2)),c.drawOnChartArea&&(s.moveTo(t.x1,t.y1),s.lineTo(t.x2,t.y2)),s.stroke()),u.display){s.save(),s.translate(t.labelX,t.labelY),s.rotate(t.rotation),s.font=b,s.textBaseline=t.textBaseline,s.textAlign=t.textAlign;var n=t.label;if(e.isArray(n))for(var i=0,a=0;i<n.length;++i)s.fillText(""+n[i],0,a),a+=1.5*m;else s.fillText(n,0,0);s.restore()}}),d.display){var F,R,N=0;if(p)F=i.left+(i.right-i.left)/2,R="bottom"===a.position?i.bottom-w/2:i.top+w/2;else{var L="left"===a.position;F=L?i.left+w/2:i.right-w/2,R=i.top+(i.bottom-i.top)/2,N=L?-.5*Math.PI:.5*Math.PI}s.save(),s.translate(F,R),s.rotate(N),s.textAlign="center",s.textBaseline="middle",s.fillStyle=k,s.font=T,s.fillText(d.labelString,0,0),s.restore()}if(c.drawBorder){s.lineWidth=e.getValueAtIndexOrDefault(c.lineWidth,0),s.strokeStyle=e.getValueAtIndexOrDefault(c.color,0);var $=i.left,B=i.right,j=i.top,W=i.bottom,H=e.aliasPixel(s.lineWidth);p?(j=W="top"===a.position?i.bottom:i.top,j+=H,W+=H):($=B="left"===a.position?i.right:i.left,$+=H,B+=H),s.beginPath(),s.moveTo($,j),s.lineTo(B,W),s.stroke()}}}})}},{}],32:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;t.scaleService={constructors:{},defaults:{},registerScaleType:function(t,n,i){this.constructors[t]=n,this.defaults[t]=e.clone(i)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(n){return this.defaults.hasOwnProperty(n)?e.scaleMerge(t.defaults.scale,this.defaults[n]):{}},updateScaleDefaults:function(t,n){var i=this.defaults;i.hasOwnProperty(t)&&(i[t]=e.extend(i[t],n))},addScalesToLayout:function(n){e.each(n.scales,function(e){t.layoutService.addBox(n,e)})}}}},{}],33:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.global.title={display:!1,position:"top",fullWidth:!0,fontStyle:"bold",padding:10,text:""};var n=e.noop;t.Title=t.Element.extend({initialize:function(n){e.extend(this,n),this.options=e.configMerge(t.defaults.global.title,n.options),this.legendHitBoxes=[]},beforeUpdate:function(){var n=this.chart.options;n&&n.title&&(this.options=e.configMerge(t.defaults.global.title,n.title))},update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:n,beforeSetDimensions:n,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:n,beforeBuildLabels:n,buildLabels:n,afterBuildLabels:n,beforeFit:n,fit:function(){var n=e.getValueOrDefault,i=this.options,a=t.defaults.global,o=i.display,r=n(i.fontSize,a.defaultFontSize),s=this.minSize;this.isHorizontal()?(s.width=this.maxWidth,s.height=o?r+2*i.padding:0):(s.width=o?r+2*i.padding:0,s.height=this.maxHeight),this.width=s.width,this.height=s.height},afterFit:n,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var n=this.ctx,i=e.getValueOrDefault,a=this.options,o=t.defaults.global;if(a.display){var r,s,l=i(a.fontSize,o.defaultFontSize),u=i(a.fontStyle,o.defaultFontStyle),c=i(a.fontFamily,o.defaultFontFamily),d=e.fontString(l,u,c),h=0,f=this.top,p=this.left,g=this.bottom,m=this.right;n.fillStyle=i(a.fontColor,o.defaultFontColor),n.font=d,this.isHorizontal()?(r=p+(m-p)/2,s=f+(g-f)/2):(r="left"===a.position?p+l/2:m-l/2,s=f+(g-f)/2,h=Math.PI*("left"===a.position?-.5:.5)),n.save(),n.translate(r,s),n.rotate(h),n.textAlign="center",n.textBaseline="middle",n.fillText(a.text,0,0),n.restore()}}}),t.plugins.register({beforeInit:function(e){var n=e.options.title;n&&(e.titleBlock=new t.Title({ctx:e.chart.ctx,options:n,chart:e}),t.layoutService.addBox(e,e.titleBlock))}})}},{}],34:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers;function n(t,n){return n&&(e.isArray(n)?Array.prototype.push.apply(t,n):t.push(n)),t}t.defaults.global.tooltips={enabled:!0,custom:null,mode:"single",backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,yAlign:"center",xAlign:"center",caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",callbacks:{beforeTitle:e.noop,title:function(t,e){var n="",i=e.labels,a=i?i.length:0;if(t.length>0){var o=t[0];o.xLabel?n=o.xLabel:a>0&&o.index<a&&(n=i[o.index])}return n},afterTitle:e.noop,beforeBody:e.noop,beforeLabel:e.noop,label:function(t,e){return(e.datasets[t.datasetIndex].label||"")+": "+t.yLabel},labelColor:function(t,e){var n=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},afterLabel:e.noop,afterBody:e.noop,beforeFooter:e.noop,footer:e.noop,afterFooter:e.noop}},t.Tooltip=t.Element.extend({initialize:function(){var n=t.defaults.global,i=this._options,a=e.getValueOrDefault;e.extend(this,{_model:{xPadding:i.xPadding,yPadding:i.yPadding,xAlign:i.xAlign,yAlign:i.yAlign,bodyFontColor:i.bodyFontColor,_bodyFontFamily:a(i.bodyFontFamily,n.defaultFontFamily),_bodyFontStyle:a(i.bodyFontStyle,n.defaultFontStyle),_bodyAlign:i.bodyAlign,bodyFontSize:a(i.bodyFontSize,n.defaultFontSize),bodySpacing:i.bodySpacing,titleFontColor:i.titleFontColor,_titleFontFamily:a(i.titleFontFamily,n.defaultFontFamily),_titleFontStyle:a(i.titleFontStyle,n.defaultFontStyle),titleFontSize:a(i.titleFontSize,n.defaultFontSize),_titleAlign:i.titleAlign,titleSpacing:i.titleSpacing,titleMarginBottom:i.titleMarginBottom,footerFontColor:i.footerFontColor,_footerFontFamily:a(i.footerFontFamily,n.defaultFontFamily),_footerFontStyle:a(i.footerFontStyle,n.defaultFontStyle),footerFontSize:a(i.footerFontSize,n.defaultFontSize),_footerAlign:i.footerAlign,footerSpacing:i.footerSpacing,footerMarginTop:i.footerMarginTop,caretSize:i.caretSize,cornerRadius:i.cornerRadius,backgroundColor:i.backgroundColor,opacity:0,legendColorBackground:i.multiKeyBackground}})},getTitle:function(){var t=this._options.callbacks,e=t.beforeTitle.apply(this,arguments),i=t.title.apply(this,arguments),a=t.afterTitle.apply(this,arguments),o=[];return o=n(o=n(o=n(o,e),i),a)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return e.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,i){var a=this,o=a._options.callbacks,r=[];return e.each(t,function(t){var e={before:[],lines:[],after:[]};n(e.before,o.beforeLabel.call(a,t,i)),n(e.lines,o.label.call(a,t,i)),n(e.after,o.afterLabel.call(a,t,i)),r.push(e)}),r},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return e.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this._options.callbacks,e=t.beforeFooter.apply(this,arguments),i=t.footer.apply(this,arguments),a=t.afterFooter.apply(this,arguments),o=[];return o=n(o=n(o=n(o,e),i),a)},update:function(t){var n,i,a,o,r,s,l,u=this,c=u._options,d=u._model,h=u._active,f=u._data,p=u._chartInstance;if(h.length){d.opacity=1;var g=[],m=function(t){if(!t.length)return!1;var e,n,i=[],a=[];for(e=0,n=t.length;e<n;++e){var o=t[e];if(o&&o.hasValue()){var r=o.tooltipPosition();i.push(r.x),a.push(r.y)}}var s=0,l=0;for(e=0;e<i.length;++e)i[e]&&(s+=i[e],l+=a[e]);return{x:Math.round(s/i.length),y:Math.round(l/i.length)}}(h),v=[];for(n=0,i=h.length;n<i;++n)v.push((a=h[n],o=void 0,r=void 0,void 0,void 0,o=a._xScale,r=a._yScale||a._scale,s=a._index,l=a._datasetIndex,{xLabel:o?o.getLabelForIndex(s,l):"",yLabel:r?r.getLabelForIndex(s,l):"",index:s,datasetIndex:l}));c.itemSort&&(v=v.sort(c.itemSort)),h.length>1&&e.each(v,function(t){g.push(c.callbacks.labelColor.call(u,t,p))}),e.extend(d,{title:u.getTitle(v,f),beforeBody:u.getBeforeBody(v,f),body:u.getBody(v,f),afterBody:u.getAfterBody(v,f),footer:u.getFooter(v,f),x:Math.round(m.x),y:Math.round(m.y),caretPadding:e.getValueOrDefault(m.padding,2),labelColors:g});var y=u.getTooltipSize(d);u.determineAlignment(y),e.extend(d,u.getBackgroundPoint(d,y))}else u._model.opacity=0;return t&&c.custom&&c.custom.call(u,d),u},getTooltipSize:function(t){var n=this._chart.ctx,i={height:2*t.yPadding,width:0},a=t.body,o=a.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);o+=t.beforeBody.length+t.afterBody.length;var r=t.title.length,s=t.footer.length,l=t.titleFontSize,u=t.bodyFontSize,c=t.footerFontSize;i.height+=r*l,i.height+=(r-1)*t.titleSpacing,i.height+=r?t.titleMarginBottom:0,i.height+=o*u,i.height+=o?(o-1)*t.bodySpacing:0,i.height+=s?t.footerMarginTop:0,i.height+=s*c,i.height+=s?(s-1)*t.footerSpacing:0;var d=0,h=function(t){i.width=Math.max(i.width,n.measureText(t).width+d)};return n.font=e.fontString(l,t._titleFontStyle,t._titleFontFamily),e.each(t.title,h),n.font=e.fontString(u,t._bodyFontStyle,t._bodyFontFamily),e.each(t.beforeBody.concat(t.afterBody),h),d=a.length>1?u+2:0,e.each(a,function(t){e.each(t.before,h),e.each(t.lines,h),e.each(t.after,h)}),d=0,n.font=e.fontString(c,t._footerFontStyle,t._footerFontFamily),e.each(t.footer,h),i.width+=2*t.xPadding,i},determineAlignment:function(t){var e,n,i,a,o,r=this._model,s=this._chart,l=this._chartInstance.chartArea;r.y<t.height?r.yAlign="top":r.y>s.height-t.height&&(r.yAlign="bottom");var u=(l.left+l.right)/2,c=(l.top+l.bottom)/2;"center"===r.yAlign?(e=function(t){return t<=u},n=function(t){return t>u}):(e=function(e){return e<=t.width/2},n=function(e){return e>=s.width-t.width/2}),i=function(e){return e+t.width>s.width},a=function(e){return e-t.width<0},o=function(t){return t<=c?"top":"bottom"},e(r.x)?(r.xAlign="left",i(r.x)&&(r.xAlign="center",r.yAlign=o(r.y))):n(r.x)&&(r.xAlign="right",a(r.x)&&(r.xAlign="center",r.yAlign=o(r.y)))},getBackgroundPoint:function(t,e){var n={x:t.x,y:t.y},i=t.caretSize,a=t.caretPadding,o=t.cornerRadius,r=t.xAlign,s=t.yAlign,l=i+a,u=o+a;return"right"===r?n.x-=e.width:"center"===r&&(n.x-=e.width/2),"top"===s?n.y+=l:n.y-="bottom"===s?e.height+l:e.height/2,"center"===s?"left"===r?n.x+=l:"right"===r&&(n.x-=l):"left"===r?n.x-=u:"right"===r&&(n.x+=u),n},drawCaret:function(t,n,i){var a,o,r,s,l,u,c=this._view,d=this._chart.ctx,h=c.caretSize,f=c.cornerRadius,p=c.xAlign,g=c.yAlign,m=t.x,v=t.y,y=n.width,b=n.height;"center"===g?("left"===p?(o=(a=m)-h,r=a):(o=(a=m+y)+h,r=a),s=(l=v+b/2)-h,u=l+h):("left"===p?r=(o=(a=m+f)+h)+h:"right"===p?r=(o=(a=m+y-f)-h)-h:(a=(o=m+y/2)-h,r=o+h),"top"===g?(l=(s=v)-h,u=s):(l=(s=v+b)+h,u=s));var x=e.color(c.backgroundColor);d.fillStyle=x.alpha(i*x.alpha()).rgbString(),d.beginPath(),d.moveTo(a,s),d.lineTo(o,l),d.lineTo(r,u),d.closePath(),d.fill()},drawTitle:function(t,n,i,a){var o=n.title;if(o.length){i.textAlign=n._titleAlign,i.textBaseline="top";var r,s,l=n.titleFontSize,u=n.titleSpacing,c=e.color(n.titleFontColor);for(i.fillStyle=c.alpha(a*c.alpha()).rgbString(),i.font=e.fontString(l,n._titleFontStyle,n._titleFontFamily),r=0,s=o.length;r<s;++r)i.fillText(o[r],t.x,t.y),t.y+=l+u,r+1===o.length&&(t.y+=n.titleMarginBottom-u)}},drawBody:function(t,n,i,a){var o=n.bodyFontSize,r=n.bodySpacing,s=n.body;i.textAlign=n._bodyAlign,i.textBaseline="top";var l=e.color(n.bodyFontColor),u=l.alpha(a*l.alpha()).rgbString();i.fillStyle=u,i.font=e.fontString(o,n._bodyFontStyle,n._bodyFontFamily);var c=0,d=function(e){i.fillText(e,t.x+c,t.y),t.y+=o+r};e.each(n.beforeBody,d);var h=s.length>1;c=h?o+2:0,e.each(s,function(r,s){e.each(r.before,d),e.each(r.lines,function(r){h&&(i.fillStyle=e.color(n.legendColorBackground).alpha(a).rgbaString(),i.fillRect(t.x,t.y,o,o),i.strokeStyle=e.color(n.labelColors[s].borderColor).alpha(a).rgbaString(),i.strokeRect(t.x,t.y,o,o),i.fillStyle=e.color(n.labelColors[s].backgroundColor).alpha(a).rgbaString(),i.fillRect(t.x+1,t.y+1,o-2,o-2),i.fillStyle=u),d(r)}),e.each(r.after,d)}),c=0,e.each(n.afterBody,d),t.y-=r},drawFooter:function(t,n,i,a){var o=n.footer;if(o.length){t.y+=n.footerMarginTop,i.textAlign=n._footerAlign,i.textBaseline="top";var r=e.color(n.footerFontColor);i.fillStyle=r.alpha(a*r.alpha()).rgbString(),i.font=e.fontString(n.footerFontSize,n._footerFontStyle,n._footerFontFamily),e.each(o,function(e){i.fillText(e,t.x,t.y),t.y+=n.footerFontSize+n.footerSpacing})}},draw:function(){var t=this._chart.ctx,n=this._view;if(0!==n.opacity){var i=this.getTooltipSize(n),a={x:n.x,y:n.y},o=Math.abs(n.opacity<.001)?0:n.opacity;if(this._options.enabled){var r=e.color(n.backgroundColor);t.fillStyle=r.alpha(o*r.alpha()).rgbString(),e.drawRoundedRectangle(t,a.x,a.y,i.width,i.height,n.cornerRadius),t.fill(),this.drawCaret(a,i,o),a.x+=n.xPadding,a.y+=n.yPadding,this.drawTitle(a,n,t,o),this.drawBody(a,n,t,o),this.drawFooter(a,n,t,o)}}}})}},{}],35:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers,n=t.defaults.global;n.elements.arc={backgroundColor:n.defaultColor,borderColor:"#fff",borderWidth:2},t.elements.Arc=t.Element.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,n){var i=this._view;if(i){for(var a=e.getAngleFromPoint(i,{x:t,y:n}),o=a.angle,r=a.distance,s=i.startAngle,l=i.endAngle;l<s;)l+=2*Math.PI;for(;o>l;)o-=2*Math.PI;for(;o<s;)o+=2*Math.PI;var u=o>=s&&o<=l,c=r>=i.innerRadius&&r<=i.outerRadius;return u&&c}return!1},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},{}],36:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers,n=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:n.defaultColor,borderWidth:3,borderColor:n.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){var t=this._view,i=t.spanGaps,a=t.scaleZero,o=this._loop,r=this._chart.ctx;function s(t,e){var n=e._view;!0===e._view.steppedLine?(r.lineTo(e._view.x,t._view.y),r.lineTo(e._view.x,e._view.y)):0===e._view.tension?r.lineTo(n.x,n.y):r.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,n.controlPointPreviousX,n.controlPointPreviousY,n.x,n.y)}r.save();var l,u,c,d,h=this._children.slice(),f=-1;if(o&&h.length&&h.push(h[0]),h.length&&t.fill){for(r.beginPath(),l=0;l<h.length;++l)u=h[l],c=e.previousItem(h,l),d=u._view,0===l?(o?r.moveTo(a.x,a.y):r.moveTo(d.x,a),d.skip||(f=l,r.lineTo(d.x,d.y))):(c=-1===f?c:h[f],d.skip?i||f!==l-1||(o?r.lineTo(a.x,a.y):r.lineTo(c._view.x,a)):(f!==l-1?i&&-1!==f?s(c,u):o?r.lineTo(d.x,d.y):(r.lineTo(d.x,a),r.lineTo(d.x,d.y)):s(c,u),f=l));o||r.lineTo(h[f]._view.x,a),r.fillStyle=t.backgroundColor||n.defaultColor,r.closePath(),r.fill()}var p=n.elements.line;for(r.lineCap=t.borderCapStyle||p.borderCapStyle,r.setLineDash&&r.setLineDash(t.borderDash||p.borderDash),r.lineDashOffset=t.borderDashOffset||p.borderDashOffset,r.lineJoin=t.borderJoinStyle||p.borderJoinStyle,r.lineWidth=t.borderWidth||p.borderWidth,r.strokeStyle=t.borderColor||n.defaultColor,r.beginPath(),f=-1,l=0;l<h.length;++l)u=h[l],c=e.previousItem(h,l),d=u._view,0===l?d.skip||(r.moveTo(d.x,d.y),f=l):(c=-1===f?c:h[f],d.skip||(f!==l-1&&!i||-1===f?r.moveTo(d.x,d.y):s(c,u),f=l));r.stroke(),r.restore()}})}},{}],37:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers,n=t.defaults.global,i=n.defaultColor;n.elements.point={radius:3,pointStyle:"circle",backgroundColor:i,borderWidth:1,borderColor:i,hitRadius:1,hoverRadius:4,hoverBorderWidth:1},t.elements.Point=t.Element.extend({inRange:function(t,e){var n=this._view;return!!n&&Math.pow(t-n.x,2)+Math.pow(e-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hitRadius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(){var a=this._view,o=this._chart.ctx,r=a.pointStyle,s=a.radius,l=a.x,u=a.y;a.skip||(o.strokeStyle=a.borderColor||i,o.lineWidth=e.getValueOrDefault(a.borderWidth,n.elements.point.borderWidth),o.fillStyle=a.backgroundColor||i,t.canvasHelpers.drawPoint(o,r,s,l,u))}})}},{}],38:[function(t,e,n){"use strict";e.exports=function(t){var e=t.defaults.global;e.elements.rectangle={backgroundColor:e.defaultColor,borderWidth:0,borderColor:e.defaultColor,borderSkipped:"bottom"},t.elements.Rectangle=t.Element.extend({draw:function(){var t=this._chart.ctx,e=this._view,n=e.width/2,i=e.x-n,a=e.x+n,o=e.base-(e.base-e.y),r=e.borderWidth/2;e.borderWidth&&(i+=r,a-=r,o+=r),t.beginPath(),t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth;var s=[[i,e.base],[i,o],[a,o],[a,e.base]],l=["bottom","left","top","right"].indexOf(e.borderSkipped,0);function u(t){return s[(l+t)%4]}-1===l&&(l=0),t.moveTo.apply(t,u(0));for(var c=1;c<4;c++)t.lineTo.apply(t,u(c));t.fill(),e.borderWidth&&t.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n=this._view;return!!n&&(n.y<n.base?t>=n.x-n.width/2&&t<=n.x+n.width/2&&e>=n.y&&e<=n.base:t>=n.x-n.width/2&&t<=n.x+n.width/2&&e>=n.base&&e<=n.y)},inLabelRange:function(t){var e=this._view;return!!e&&(t>=e.x-e.width/2&&t<=e.x+e.width/2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers,n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t,n=this,i=n.getLabels();n.minIndex=0,n.maxIndex=i.length-1,void 0!==n.options.ticks.min&&(t=e.indexOf(i,n.options.ticks.min),n.minIndex=-1!==t?t:n.minIndex),void 0!==n.options.ticks.max&&(t=e.indexOf(i,n.options.ticks.max),n.maxIndex=-1!==t?t:n.maxIndex),n.min=i[n.minIndex],n.max=i[n.maxIndex]},buildTicks:function(){var t=this.getLabels();this.ticks=0===this.minIndex&&this.maxIndex===t.length-1?t:t.slice(this.minIndex,this.maxIndex+1)},getLabelForIndex:function(t){return this.ticks[t]},getPixelForValue:function(t,e,n,i){var a=this,o=Math.max(a.maxIndex+1-a.minIndex-(a.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t){var r=a.getLabels().indexOf(t);e=-1!==r?r:e}if(a.isHorizontal()){var s=(a.width-(a.paddingLeft+a.paddingRight))/o,l=s*(e-a.minIndex)+a.paddingLeft;return a.options.gridLines.offsetGridLines&&i&&(l+=s/2),a.left+Math.round(l)}var u=(a.height-(a.paddingTop+a.paddingBottom))/o,c=u*(e-a.minIndex)+a.paddingTop;return a.options.gridLines.offsetGridLines&&i&&(c+=u/2),a.top+Math.round(c)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e=this,n=Math.max(e.ticks.length-(e.options.gridLines.offsetGridLines?0:1),1),i=e.isHorizontal(),a=(i?e.width-(e.paddingLeft+e.paddingRight):e.height-(e.paddingTop+e.paddingBottom))/n;return t-=i?e.left:e.top,e.options.gridLines.offsetGridLines&&(t-=a/2),(t-=i?e.paddingLeft:e.paddingTop)<=0?0:Math.round(t/a)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,{position:"bottom"})}},{}],40:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers,n={position:"left",ticks:{callback:function(t,n,i){var a=i.length>3?i[2]-i[1]:i[1]-i[0];Math.abs(a)>1&&t!==Math.floor(t)&&(a=t-Math.floor(t));var o=e.log10(Math.abs(a)),r="";if(0!==t){var s=-1*Math.floor(o);s=Math.max(Math.min(s,20),0),r=t.toFixed(s)}else r="0";return r}}},i=t.LinearScaleBase.extend({determineDataLimits:function(){var t=this,n=t.options,i=t.chart,a=i.data.datasets,o=t.isHorizontal();function r(e){return o?e.xAxisID===t.id:e.yAxisID===t.id}if(t.min=null,t.max=null,n.stacked){var s={};e.each(a,function(a,o){var l=i.getDatasetMeta(o);void 0===s[l.type]&&(s[l.type]={positiveValues:[],negativeValues:[]});var u=s[l.type].positiveValues,c=s[l.type].negativeValues;i.isDatasetVisible(o)&&r(l)&&e.each(a.data,function(e,i){var a=+t.getRightValue(e);isNaN(a)||l.data[i].hidden||(u[i]=u[i]||0,c[i]=c[i]||0,n.relativePoints?u[i]=100:a<0?(!0,c[i]+=a):(!0,u[i]+=a))})}),e.each(s,function(n){var i=n.positiveValues.concat(n.negativeValues),a=e.min(i),o=e.max(i);t.min=null===t.min?a:Math.min(t.min,a),t.max=null===t.max?o:Math.max(t.max,o)})}else e.each(a,function(n,a){var o=i.getDatasetMeta(a);i.isDatasetVisible(a)&&r(o)&&e.each(n.data,function(e,n){var i=+t.getRightValue(e);isNaN(i)||o.data[n].hidden||(null===t.min?t.min=i:i<t.min&&(t.min=i),null===t.max?t.max=i:i>t.max&&(t.max=i))})});this.handleTickRangeOptions()},getTickLimit:function(){var n,i=this.options.ticks;if(this.isHorizontal())n=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(this.width/50));else{var a=e.getValueOrDefault(i.fontSize,t.defaults.global.defaultFontSize);n=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(this.height/(2*a)))}return n},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,n,i=this,a=i.paddingLeft,o=i.paddingBottom,r=i.start,s=+i.getRightValue(t),l=i.end-r;return i.isHorizontal()?(n=i.width-(a+i.paddingRight),e=i.left+n/l*(s-r),Math.round(e+a)):(n=i.height-(i.paddingTop+o),e=i.bottom-o-n/l*(s-r),Math.round(e))},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),i=e.paddingLeft,a=e.paddingBottom,o=n?e.width-(i+e.paddingRight):e.height-(e.paddingTop+a),r=(n?t-e.left-i:e.bottom-a-t)/o;return e.start+(e.end-e.start)*r},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",i,n)}},{}],41:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers,n=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,n=t.options.ticks;if(n.beginAtZero){var i=e.sign(t.min),a=e.sign(t.max);i<0&&a<0?t.max=0:i>0&&a>0&&(t.min=0)}void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(t.max=Math.max(t.max,n.suggestedMax)),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:n,handleDirectionalChanges:n,buildTicks:function(){var t,n=this,i=n.options,a=n.ticks=[],o=i.ticks,r=e.getValueOrDefault,s=n.getTickLimit();if(s=Math.max(2,s),o.fixedStepSize&&o.fixedStepSize>0||o.stepSize&&o.stepSize>0)t=r(o.fixedStepSize,o.stepSize);else{var l=e.niceNum(n.max-n.min,!1);t=e.niceNum(l/(s-1),!0)}var u=Math.floor(n.min/t)*t,c=Math.ceil(n.max/t)*t,d=(c-u)/t;d=e.almostEquals(d,Math.round(d),t/1e3)?Math.round(d):Math.ceil(d),a.push(void 0!==o.min?o.min:u);for(var h=1;h<d;++h)a.push(u+h*t);a.push(void 0!==o.max?o.max:c),n.handleDirectionalChanges(),n.max=e.max(a),n.min=e.min(a),o.reverse?(a.reverse(),n.start=n.max,n.end=n.min):(n.start=n.min,n.end=n.max)},convertTicksToLabels:function(){this.ticksAsNumbers=this.ticks.slice(),this.zeroLineIndex=this.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(this)}})}},{}],42:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers,n={position:"left",ticks:{callback:function(t,n,i){var a=t/Math.pow(10,Math.floor(e.log10(t)));return 1===a||2===a||5===a||0===n||n===i.length-1?t.toExponential():""}}},i=t.Scale.extend({determineDataLimits:function(){var t=this,n=t.options,i=n.ticks,a=t.chart,o=a.data.datasets,r=e.getValueOrDefault,s=t.isHorizontal();function l(e){return s?e.xAxisID===t.id:e.yAxisID===t.id}if(t.min=null,t.max=null,n.stacked){var u={};e.each(o,function(i,o){var r=a.getDatasetMeta(o);a.isDatasetVisible(o)&&l(r)&&(void 0===u[r.type]&&(u[r.type]=[]),e.each(i.data,function(e,i){var a=u[r.type],o=+t.getRightValue(e);isNaN(o)||r.data[i].hidden||(a[i]=a[i]||0,n.relativePoints?a[i]=100:a[i]+=o)}))}),e.each(u,function(n){var i=e.min(n),a=e.max(n);t.min=null===t.min?i:Math.min(t.min,i),t.max=null===t.max?a:Math.max(t.max,a)})}else e.each(o,function(n,i){var o=a.getDatasetMeta(i);a.isDatasetVisible(i)&&l(o)&&e.each(n.data,function(e,n){var i=+t.getRightValue(e);isNaN(i)||o.data[n].hidden||(null===t.min?t.min=i:i<t.min&&(t.min=i),null===t.max?t.max=i:i>t.max&&(t.max=i))})});t.min=r(i.min,t.min),t.max=r(i.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(e.log10(t.min))-1),t.max=Math.pow(10,Math.floor(e.log10(t.max))+1)):(t.min=1,t.max=10))},buildTicks:function(){for(var t=this,n=t.options.ticks,i=e.getValueOrDefault,a=t.ticks=[],o=i(n.min,Math.pow(10,Math.floor(e.log10(t.min))));o<t.max;){a.push(o);var r=Math.floor(e.log10(o)),s=Math.floor(o/Math.pow(10,r))+1;10===s&&(s=1,++r),o=s*Math.pow(10,r)}var l=i(n.max,o);a.push(l),t.isHorizontal()||a.reverse(),t.max=e.max(a),t.min=e.min(a),n.reverse?(a.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),t.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){return this.getPixelForValue(this.tickValues[t])},getPixelForValue:function(t){var n,i,a=this,o=a.start,r=+a.getRightValue(t),s=e.log10(a.end)-e.log10(o),l=a.paddingTop,u=a.paddingBottom,c=a.paddingLeft;return a.isHorizontal()?0===r?i=a.left+c:(n=a.width-(c+a.paddingRight),i=a.left+n/s*(e.log10(r)-e.log10(o)),i+=c):0===r?i=a.top+l:(n=a.height-(l+u),i=a.bottom-u-n/s*(e.log10(r)-e.log10(o))),i},getValueForPixel:function(t){var n,i,a=this,o=e.log10(a.end)-e.log10(a.start);return a.isHorizontal()?(i=a.width-(a.paddingLeft+a.paddingRight),n=a.start*Math.pow(10,(t-a.left-a.paddingLeft)*o/i)):(i=a.height-(a.paddingTop+a.paddingBottom),n=Math.pow(10,(a.bottom-a.paddingBottom-t)*o/i)/a.start),n}});t.scaleService.registerScaleType("logarithmic",i,n)}},{}],43:[function(t,e,n){"use strict";e.exports=function(t){var e=t.helpers,n=t.defaults.global,i=t.LinearScaleBase.extend({getValueCount:function(){return this.chart.data.labels.length},setDimensions:function(){var t=this,i=t.options,a=i.ticks;t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2);var o=e.min([t.height,t.width]),r=e.getValueOrDefault(a.fontSize,n.defaultFontSize);t.drawingArea=i.display?o/2-(r/2+a.backdropPaddingY):o/2},determineDataLimits:function(){var t=this,n=t.chart;t.min=null,t.max=null,e.each(n.data.datasets,function(i,a){if(n.isDatasetVisible(a)){var o=n.getDatasetMeta(a);e.each(i.data,function(e,n){var i=+t.getRightValue(e);isNaN(i)||o.data[n].hidden||(null===t.min?t.min=i:i<t.min&&(t.min=i),null===t.max?t.max=i:i>t.max&&(t.max=i))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,i=e.getValueOrDefault(t.fontSize,n.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*i)))},convertTicksToLabels:function(){t.LinearScaleBase.prototype.convertTicksToLabels.call(this),this.pointLabels=this.chart.data.labels.map(this.options.pointLabels.callback,this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,i,a,o,r,s,l,u,c,d,h,f,p=this.options.pointLabels,g=e.getValueOrDefault(p.fontSize,n.defaultFontSize),m=e.getValueOrDefault(p.fontStyle,n.defaultFontStyle),v=e.getValueOrDefault(p.fontFamily,n.defaultFontFamily),y=e.fontString(g,m,v),b=e.min([this.height/2-g-5,this.width/2]),x=this.width,k=0;for(this.ctx.font=y,i=0;i<this.getValueCount();i++){t=this.getPointPosition(i,b),a=this.ctx.measureText(this.pointLabels[i]?this.pointLabels[i]:"").width+5;var w=360*(this.getIndexAngle(i)+Math.PI/2)/(2*Math.PI)%360;0===w||180===w?(o=a/2,t.x+o>x&&(x=t.x+o,r=i),t.x-o<k&&(k=t.x-o,l=i)):w<180?t.x+a>x&&(x=t.x+a,r=i):t.x-a<k&&(k=t.x-a,l=i)}c=k,d=Math.ceil(x-this.width),s=this.getIndexAngle(r),u=this.getIndexAngle(l),h=d/Math.sin(s+Math.PI/2),f=c/Math.sin(u+Math.PI/2),h=e.isNumber(h)?h:0,f=e.isNumber(f)?f:0,this.drawingArea=Math.round(b-(f+h)/2),this.setCenterPoint(f,h)},setCenterPoint:function(t,e){var n=this.width-e-this.drawingArea,i=t+this.drawingArea;this.xCenter=Math.round((i+n)/2+this.left),this.yCenter=Math.round(this.height/2+this.top)},getIndexAngle:function(t){var e=2*Math.PI/this.getValueCount(),n=(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360;return t*e-Math.PI/2+n},getDistanceFromCenterForValue:function(t){if(null===t)return 0;var e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e},getPointPosition:function(t,e){var n=this.getIndexAngle(t);return{x:Math.round(Math.cos(n)*e)+this.xCenter,y:Math.round(Math.sin(n)*e)+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this.min,e=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0)},draw:function(){var t=this,i=t.options,a=i.gridLines,o=i.ticks,r=i.angleLines,s=i.pointLabels,l=e.getValueOrDefault;if(i.display){var u=t.ctx,c=l(o.fontSize,n.defaultFontSize),d=l(o.fontStyle,n.defaultFontStyle),h=l(o.fontFamily,n.defaultFontFamily),f=e.fontString(c,d,h);if(e.each(t.ticks,function(r,s){if(s>0||i.reverse){var d=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),h=t.yCenter-d;if(a.display&&0!==s)if(u.strokeStyle=e.getValueAtIndexOrDefault(a.color,s-1),u.lineWidth=e.getValueAtIndexOrDefault(a.lineWidth,s-1),i.lineArc)u.beginPath(),u.arc(t.xCenter,t.yCenter,d,0,2*Math.PI),u.closePath(),u.stroke();else{u.beginPath();for(var p=0;p<t.getValueCount();p++){var g=t.getPointPosition(p,d);0===p?u.moveTo(g.x,g.y):u.lineTo(g.x,g.y)}u.closePath(),u.stroke()}if(o.display){var m=l(o.fontColor,n.defaultFontColor);if(u.font=f,o.showLabelBackdrop){var v=u.measureText(r).width;u.fillStyle=o.backdropColor,u.fillRect(t.xCenter-v/2-o.backdropPaddingX,h-c/2-o.backdropPaddingY,v+2*o.backdropPaddingX,c+2*o.backdropPaddingY)}u.textAlign="center",u.textBaseline="middle",u.fillStyle=m,u.fillText(r,t.xCenter,h)}}}),!i.lineArc){u.lineWidth=r.lineWidth,u.strokeStyle=r.color;for(var p=t.getDistanceFromCenterForValue(i.reverse?t.min:t.max),g=l(s.fontSize,n.defaultFontSize),m=l(s.fontStyle,n.defaultFontStyle),v=l(s.fontFamily,n.defaultFontFamily),y=e.fontString(g,m,v),b=t.getValueCount()-1;b>=0;b--){if(r.display){var x=t.getPointPosition(b,p);u.beginPath(),u.moveTo(t.xCenter,t.yCenter),u.lineTo(x.x,x.y),u.stroke(),u.closePath()}var k=t.getPointPosition(b,p+5),w=l(s.fontColor,n.defaultFontColor);u.font=y,u.fillStyle=w;var S=t.pointLabels,C=360*(this.getIndexAngle(b)+Math.PI/2)/(2*Math.PI)%360;u.textAlign=0===C||180===C?"center":C<180?"left":"right",u.textBaseline=90===C||270===C?"middle":C>270||C<90?"bottom":"top",u.fillText(S[b]?S[b]:"",k.x,k.y)}}}}});t.scaleService.registerScaleType("radialLinear",i,{display:!0,animate:!0,lineArc:!1,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2},pointLabels:{fontSize:10,callback:function(t){return t}}})}},{}],44:[function(t,e,n){"use strict";var i=t(6);i="function"==typeof i?i:window.moment,e.exports=function(t){var e=t.helpers,n={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},a=t.Scale.extend({initialize:function(){if(!i)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return void 0!==this.labelMoments[t]?this.labelMoments[t][e]:null},getMomentStartOf:function(t){return"week"===this.options.time.unit&&!1!==this.options.time.isoWeekday?t.clone().startOf("isoWeek").isoWeekday(this.options.time.isoWeekday):t.clone().startOf(this.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var n=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var i=t.parseTime(e);i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),n.push(i))},t),t.firstTick=i.min.call(t,n),t.lastTick=i.max.call(t,n)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(a,o){var r=[],s=t.chart.isDatasetVisible(o);"object"==typeof a.data[0]&&null!==a.data[0]?e.each(a.data,function(e){var n=t.parseTime(t.getRightValue(e));n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),r.push(n),s&&(t.firstTick=null!==t.firstTick?i.min(t.firstTick,n):n,t.lastTick=null!==t.lastTick?i.max(t.lastTick,n):n))},t):r=n,t.labelMoments.push(r)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||i()).clone(),t.lastTick=(t.lastTick||i()).clone()},buildTicks:function(){var i=this;i.ctx.save();var a,o=e.getValueOrDefault(i.options.ticks.fontSize,t.defaults.global.defaultFontSize),r=e.getValueOrDefault(i.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),s=e.getValueOrDefault(i.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),l=e.fontString(o,r,s);if(i.ctx.font=l,i.ticks=[],i.unitScale=1,i.scaleSizeInUnits=0,i.options.time.unit)i.tickUnit=i.options.time.unit||"day",i.displayFormat=i.options.time.displayFormats[i.tickUnit],i.scaleSizeInUnits=i.lastTick.diff(i.firstTick,i.tickUnit,!0),i.unitScale=e.getValueOrDefault(i.options.time.unitStepSize,1);else{var u=i.isHorizontal()?i.width-(i.paddingLeft+i.paddingRight):i.height-(i.paddingTop+i.paddingBottom),c=i.tickFormatFunction(i.firstTick,0,[]),d=i.ctx.measureText(c).width,h=u/(d=d*Math.cos(e.toRadians(i.options.ticks.maxRotation))+o*Math.sin(e.toRadians(i.options.ticks.maxRotation)));i.tickUnit="millisecond",i.scaleSizeInUnits=i.lastTick.diff(i.firstTick,i.tickUnit,!0),i.displayFormat=i.options.time.displayFormats[i.tickUnit];for(var f=0,p=n.units[f];f<n.units.length;){if(i.unitScale=1,e.isArray(p.steps)&&Math.ceil(i.scaleSizeInUnits/h)<e.max(p.steps)){for(var g=0;g<p.steps.length;++g)if(p.steps[g]>=Math.ceil(i.scaleSizeInUnits/h)){i.unitScale=e.getValueOrDefault(i.options.time.unitStepSize,p.steps[g]);break}break}if(!1===p.maxStep||Math.ceil(i.scaleSizeInUnits/h)<p.maxStep){i.unitScale=e.getValueOrDefault(i.options.time.unitStepSize,Math.ceil(i.scaleSizeInUnits/h));break}p=n.units[++f],i.tickUnit=p.name;var m=i.firstTick.diff(i.getMomentStartOf(i.firstTick),i.tickUnit,!0),v=i.getMomentStartOf(i.lastTick.clone().add(1,i.tickUnit)).diff(i.lastTick,i.tickUnit,!0);i.scaleSizeInUnits=i.lastTick.diff(i.firstTick,i.tickUnit,!0)+m+v,i.displayFormat=i.options.time.displayFormats[p.name]}}if(i.options.time.min?a=i.getMomentStartOf(i.firstTick):(i.firstTick=i.getMomentStartOf(i.firstTick),a=i.firstTick),!i.options.time.max){var y=i.getMomentStartOf(i.lastTick),b=y.diff(i.lastTick,i.tickUnit,!0);b<0?i.lastTick=i.getMomentStartOf(i.lastTick.add(1,i.tickUnit)):b>=0&&(i.lastTick=y),i.scaleSizeInUnits=i.lastTick.diff(i.firstTick,i.tickUnit,!0)}i.smallestLabelSeparation=i.width,e.each(i.chart.data.datasets,function(t,e){for(var n=1;n<i.labelMoments[e].length;n++)i.smallestLabelSeparation=Math.min(i.smallestLabelSeparation,i.labelMoments[e][n].diff(i.labelMoments[e][n-1],i.tickUnit,!0))},i),i.options.time.displayFormat&&(i.displayFormat=i.options.time.displayFormat),i.ticks.push(i.firstTick.clone());for(var x=1;x<=i.scaleSizeInUnits;++x){var k=a.clone().add(x,i.tickUnit);if(i.options.time.max&&k.diff(i.lastTick,i.tickUnit,!0)>=0)break;x%i.unitScale==0&&i.ticks.push(k)}0===i.ticks[i.ticks.length-1].diff(i.lastTick,i.tickUnit)&&0!==i.scaleSizeInUnits||(i.options.time.max?(i.ticks.push(i.lastTick.clone()),i.scaleSizeInUnits=i.lastTick.diff(i.ticks[0],i.tickUnit,!0)):(i.ticks.push(i.lastTick.clone()),i.scaleSizeInUnits=i.lastTick.diff(i.firstTick,i.tickUnit,!0))),i.ctx.restore()},getLabelForIndex:function(t,e){var n=this.chart.data.labels&&t<this.chart.data.labels.length?this.chart.data.labels[t]:"";return"object"==typeof this.chart.data.datasets[e].data[0]&&(n=this.getRightValue(this.chart.data.datasets[e].data[t])),this.options.time.tooltipFormat&&(n=this.parseTime(n).format(this.options.time.tooltipFormat)),n},tickFormatFunction:function(t,n,i){var a=t.format(this.displayFormat),o=this.options.ticks,r=e.getValueOrDefault(o.callback,o.userCallback);return r?r(a,n,i):a},convertTicksToLabels:function(){this.tickMoments=this.ticks,this.ticks=this.ticks.map(this.tickFormatFunction,this)},getPixelForValue:function(t,e,n){var a=this;t&&t.isValid||(t=i(a.getRightValue(t)));var o=t&&t.isValid&&t.isValid()?t:a.getLabelMoment(n,e);if(o){var r=o.diff(a.firstTick,a.tickUnit,!0),s=0!==r?r/a.scaleSizeInUnits:r;if(a.isHorizontal()){var l=(a.width-(a.paddingLeft+a.paddingRight))*s+a.paddingLeft;return a.left+Math.round(l)}var u=(a.height-(a.paddingTop+a.paddingBottom))*s+a.paddingTop;return a.top+Math.round(u)}},getPixelForTick:function(t){return this.getPixelForValue(this.tickMoments[t],null,null)},getValueForPixel:function(t){var e=this,n=e.isHorizontal()?e.width-(e.paddingLeft+e.paddingRight):e.height-(e.paddingTop+e.paddingBottom),a=(t-(e.isHorizontal()?e.left+e.paddingLeft:e.top+e.paddingTop))/n;return a*=e.scaleSizeInUnits,e.firstTick.clone().add(i.duration(a,e.tickUnit).asSeconds(),"seconds")},parseTime:function(t){return"string"==typeof this.options.time.parser?i(t,this.options.time.parser):"function"==typeof this.options.time.parser?this.options.time.parser(t):"function"==typeof t.getMonth||"number"==typeof t?i(t):t.isValid&&t.isValid()?t:"string"!=typeof this.options.time.format&&this.options.time.format.call?(console.warn("options.time.format is deprecated and replaced by options.time.parser. See http://nnnick.github.io/Chart.js/docs-v2/#scales-time-scale"),this.options.time.format(t)):i(t,this.options.time.format)}});t.scaleService.registerScaleType("time",a,{position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}})}},{6:6}]},{},[7])(7)}),function(t,e,n){"use strict";!function t(e,n,i){function a(r,s){if(!n[r]){if(!e[r]){var l="function"==typeof require&&require;if(!s&&l)return l(r,!0);if(o)return o(r,!0);var u=new Error("Cannot find module '"+r+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[r]={exports:{}};e[r][0].call(c.exports,function(t){var n=e[r][1][t];return a(n||t)},c,c.exports,t,e,n,i)}return n[r].exports}for(var o="function"==typeof require&&require,r=0;r<i.length;r++)a(i[r]);return a}({1:[function(i,a,o){var r=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(o,"__esModule",{value:!0});var s,l,u,c,d=i("./modules/handle-dom"),h=i("./modules/utils"),f=i("./modules/handle-swal-dom"),p=i("./modules/handle-click"),g=r(i("./modules/handle-key")),m=r(i("./modules/default-params")),v=r(i("./modules/set-params"));o.default=u=c=function(){function i(t){var e=a;return e[t]===n?m.default[t]:e[t]}var a=arguments[0];if(d.addClass(e.body,"stop-scrolling"),f.resetInput(),a===n)return h.logStr("SweetAlert expects at least 1 attribute!"),!1;var o=h.extend({},m.default);switch(typeof a){case"string":o.title=a,o.text=arguments[1]||"",o.type=arguments[2]||"";break;case"object":if(a.title===n)return h.logStr('Missing "title" argument!'),!1;for(var r in o.title=a.title,m.default)o[r]=i(r);o.confirmButtonText=o.showCancelButton?"Confirm":m.default.confirmButtonText,o.confirmButtonText=i("confirmButtonText"),o.doneFunction=arguments[1]||null;break;default:return h.logStr('Unexpected type of argument! Expected "string" or "object", got '+typeof a),!1}v.default(o),f.fixVerticalPosition(),f.openModal(arguments[1]);for(var u=f.getModal(),y=u.querySelectorAll("button"),b=["onclick","onmouseover","onmouseout","onmousedown","onmouseup","onfocus"],x=function(t){return p.handleButton(t,o,u)},k=0;k<y.length;k++)for(var w=0;w<b.length;w++){var S=b[w];y[k][S]=x}f.getOverlay().onclick=x,s=t.onkeydown;t.onkeydown=function(t){return g.default(t,o,u)},t.onfocus=function(){setTimeout(function(){l!==n&&(l.focus(),l=n)},0)},c.enableButtons()},u.setDefaults=c.setDefaults=function(t){if(!t)throw new Error("userParams is required");if("object"!=typeof t)throw new Error("userParams has to be a object");h.extend(m.default,t)},u.close=c.close=function(){var i=f.getModal();d.fadeOut(f.getOverlay(),5),d.fadeOut(i,5),d.removeClass(i,"showSweetAlert"),d.addClass(i,"hideSweetAlert"),d.removeClass(i,"visible");var a=i.querySelector(".sa-icon.sa-success");d.removeClass(a,"animate"),d.removeClass(a.querySelector(".sa-tip"),"animateSuccessTip"),d.removeClass(a.querySelector(".sa-long"),"animateSuccessLong");var o=i.querySelector(".sa-icon.sa-error");d.removeClass(o,"animateErrorIcon"),d.removeClass(o.querySelector(".sa-x-mark"),"animateXMark");var r=i.querySelector(".sa-icon.sa-warning");return d.removeClass(r,"pulseWarning"),d.removeClass(r.querySelector(".sa-body"),"pulseWarningIns"),d.removeClass(r.querySelector(".sa-dot"),"pulseWarningIns"),setTimeout(function(){var t=i.getAttribute("data-custom-class");d.removeClass(i,t)},300),d.removeClass(e.body,"stop-scrolling"),t.onkeydown=s,t.previousActiveElement&&t.previousActiveElement.focus(),l=n,clearTimeout(i.timeout),!0},u.showInputError=c.showInputError=function(t){var e=f.getModal(),n=e.querySelector(".sa-input-error");d.addClass(n,"show");var i=e.querySelector(".sa-error-container");d.addClass(i,"show"),i.querySelector("p").innerHTML=t,setTimeout(function(){u.enableButtons()},1),e.querySelector("input").focus()},u.resetInputError=c.resetInputError=function(t){if(t&&13===t.keyCode)return!1;var e=f.getModal(),n=e.querySelector(".sa-input-error");d.removeClass(n,"show");var i=e.querySelector(".sa-error-container");d.removeClass(i,"show")},u.disableButtons=c.disableButtons=function(){var t=f.getModal(),e=t.querySelector("button.confirm"),n=t.querySelector("button.cancel");e.disabled=!0,n.disabled=!0},u.enableButtons=c.enableButtons=function(){var t=f.getModal(),e=t.querySelector("button.confirm"),n=t.querySelector("button.cancel");e.disabled=!1,n.disabled=!1},void 0!==t?t.sweetAlert=t.swal=u:h.logStr("SweetAlert is a frontend module!"),a.exports=o.default},{"./modules/default-params":2,"./modules/handle-click":3,"./modules/handle-dom":4,"./modules/handle-key":5,"./modules/handle-swal-dom":6,"./modules/set-params":8,"./modules/utils":9}],2:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});n.default={title:"",text:"",type:null,allowOutsideClick:!1,showConfirmButton:!0,showCancelButton:!1,closeOnConfirm:!0,closeOnCancel:!0,confirmButtonText:"OK",confirmButtonColor:"#8CD4F5",cancelButtonText:"Cancel",imageUrl:null,imageSize:null,timer:null,customClass:"",html:!1,animation:!0,allowEscapeKey:!0,inputType:"text",inputPlaceholder:"",inputValue:"",showLoaderOnConfirm:!1},e.exports=n.default},{}],3:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0});var a=e("./utils"),o=(e("./handle-swal-dom"),e("./handle-dom")),r=function(t,e){var n=!0;o.hasClass(t,"show-input")&&((n=t.querySelector("input").value)||(n="")),e.doneFunction(n),e.closeOnConfirm&&sweetAlert.close(),e.showLoaderOnConfirm&&sweetAlert.disableButtons()},s=function(t,e){var n=String(e.doneFunction).replace(/\s/g,"");"function("===n.substring(0,9)&&")"!==n.substring(9,10)&&e.doneFunction(!1),e.closeOnCancel&&sweetAlert.close()};i.default={handleButton:function(e,n,i){function l(t){p&&n.confirmButtonColor&&(f.style.backgroundColor=t)}var u,c,d,h=e||t.event,f=h.target||h.srcElement,p=-1!==f.className.indexOf("confirm"),g=-1!==f.className.indexOf("sweet-overlay"),m=o.hasClass(i,"visible"),v=n.doneFunction&&"true"===i.getAttribute("data-has-done-function");switch(p&&n.confirmButtonColor&&(u=n.confirmButtonColor,c=a.colorLuminance(u,-.04),d=a.colorLuminance(u,-.14)),h.type){case"mouseover":l(c);break;case"mouseout":l(u);break;case"mousedown":l(d);break;case"mouseup":l(c);break;case"focus":var y=i.querySelector("button.confirm"),b=i.querySelector("button.cancel");p?b.style.boxShadow="none":y.style.boxShadow="none";break;case"click":var x=i===f,k=o.isDescendant(i,f);if(!x&&!k&&m&&!n.allowOutsideClick)break;p&&v&&m?r(i,n):v&&m||g?s(i,n):o.isDescendant(i,f)&&"BUTTON"===f.tagName&&sweetAlert.close()}},handleConfirm:r,handleCancel:s},n.exports=i.default},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],4:[function(n,i,a){Object.defineProperty(a,"__esModule",{value:!0});var o=function(t,e){return new RegExp(" "+e+" ").test(" "+t.className+" ")},r=function(t){t.style.opacity="",t.style.display="block"},s=function(t){t.style.opacity="",t.style.display="none"};a.hasClass=o,a.addClass=function(t,e){o(t,e)||(t.className+=" "+e)},a.removeClass=function(t,e){var n=" "+t.className.replace(/[\t\r\n]/g," ")+" ";if(o(t,e)){for(;n.indexOf(" "+e+" ")>=0;)n=n.replace(" "+e+" "," ");t.className=n.replace(/^\s+|\s+$/g,"")}},a.escapeHtml=function(t){var n=e.createElement("div");return n.appendChild(e.createTextNode(t)),n.innerHTML},a._show=r,a.show=function(t){if(t&&!t.length)return r(t);for(var e=0;e<t.length;++e)r(t[e])},a._hide=s,a.hide=function(t){if(t&&!t.length)return s(t);for(var e=0;e<t.length;++e)s(t[e])},a.isDescendant=function(t,e){for(var n=e.parentNode;null!==n;){if(n===t)return!0;n=n.parentNode}return!1},a.getTopMargin=function(t){t.style.left="-9999px",t.style.display="block";var e,n=t.clientHeight;return e="undefined"!=typeof getComputedStyle?parseInt(getComputedStyle(t).getPropertyValue("padding-top"),10):parseInt(t.currentStyle.padding),t.style.left="",t.style.display="none","-"+parseInt((n+e)/2)+"px"},a.fadeIn=function(t,e){if(+t.style.opacity<1){e=e||16,t.style.opacity=0,t.style.display="block";var n=+new Date,i=function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){t.style.opacity=+t.style.opacity+(new Date-n)/100,n=+new Date,+t.style.opacity<1&&setTimeout(i,e)});i()}t.style.display="block"},a.fadeOut=function(t,e){e=e||16,t.style.opacity=1;var n=+new Date,i=function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){t.style.opacity=+t.style.opacity-(new Date-n)/100,n=+new Date,+t.style.opacity>0?setTimeout(i,e):t.style.display="none"});i()},a.fireClick=function(n){if("function"==typeof MouseEvent){var i=new MouseEvent("click",{view:t,bubbles:!1,cancelable:!0});n.dispatchEvent(i)}else if(e.createEvent){var a=e.createEvent("MouseEvents");a.initEvent("click",!1,!1),n.dispatchEvent(a)}else e.createEventObject?n.fireEvent("onclick"):"function"==typeof n.onclick&&n.onclick()},a.stopEventPropagation=function(e){"function"==typeof e.stopPropagation?(e.stopPropagation(),e.preventDefault()):t.event&&t.event.hasOwnProperty("cancelBubble")&&(t.event.cancelBubble=!0)}},{}],5:[function(e,i,a){Object.defineProperty(a,"__esModule",{value:!0});var o=e("./handle-dom"),r=e("./handle-swal-dom");a.default=function(e,i,a){var s=e||t.event,l=s.keyCode||s.which,u=a.querySelector("button.confirm"),c=a.querySelector("button.cancel"),d=a.querySelectorAll("button[tabindex]");if(-1!==[9,13,32,27].indexOf(l)){for(var h=s.target||s.srcElement,f=-1,p=0;p<d.length;p++)if(h===d[p]){f=p;break}9===l?(h=-1===f?u:f===d.length-1?d[0]:d[f+1],o.stopEventPropagation(s),h.focus(),i.confirmButtonColor&&r.setFocusStyle(h,i.confirmButtonColor)):13===l?("INPUT"===h.tagName&&(h=u,u.focus()),h=-1===f?u:n):27===l&&!0===i.allowEscapeKey?(h=c,o.fireClick(h,s)):h=n}},i.exports=a.default},{"./handle-dom":4,"./handle-swal-dom":6}],6:[function(n,i,a){var o=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(a,"__esModule",{value:!0});var r=n("./utils"),s=n("./handle-dom"),l=o(n("./default-params")),u=o(n("./injected-html")),c=function(){var t=e.createElement("div");for(t.innerHTML=u.default;t.firstChild;)e.body.appendChild(t.firstChild)},d=function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){var t=e.querySelector(".sweet-alert");return t||(c(),t=d()),t}),h=function(){var t=d();return t?t.querySelector("input"):void 0},f=function(){return e.querySelector(".sweet-overlay")},p=function(t){if(t&&13===t.keyCode)return!1;var e=d(),n=e.querySelector(".sa-input-error");s.removeClass(n,"show");var i=e.querySelector(".sa-error-container");s.removeClass(i,"show")};a.sweetAlertInitialize=c,a.getModal=d,a.getOverlay=f,a.getInput=h,a.setFocusStyle=function(t,e){var n=r.hexToRgb(e);t.style.boxShadow="0 0 2px rgba("+n+", 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.05)"},a.openModal=function(n){var i=d();s.fadeIn(f(),10),s.show(i),s.addClass(i,"showSweetAlert"),s.removeClass(i,"hideSweetAlert"),t.previousActiveElement=e.activeElement,i.querySelector("button.confirm").focus(),setTimeout(function(){s.addClass(i,"visible")},500);var a=i.getAttribute("data-timer");if("null"!==a&&""!==a){var o=n;i.timeout=setTimeout(function(){o&&"true"===i.getAttribute("data-has-done-function")?o(null):sweetAlert.close()},a)}},a.resetInput=function(){var t=d(),e=h();s.removeClass(t,"show-input"),e.value=l.default.inputValue,e.setAttribute("type",l.default.inputType),e.setAttribute("placeholder",l.default.inputPlaceholder),p()},a.resetInputError=p,a.fixVerticalPosition=function(){d().style.marginTop=s.getTopMargin(d())}},{"./default-params":2,"./handle-dom":4,"./injected-html":7,"./utils":9}],7:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0});n.default='<div class="sweet-overlay" tabIndex="-1"></div><div class="sweet-alert"><div class="sa-icon sa-error">\n <span class="sa-x-mark">\n <span class="sa-line sa-left"></span>\n <span class="sa-line sa-right"></span>\n </span>\n </div><div class="sa-icon sa-warning">\n <span class="sa-body"></span>\n <span class="sa-dot"></span>\n </div><div class="sa-icon sa-info"></div><div class="sa-icon sa-success">\n <span class="sa-line sa-tip"></span>\n <span class="sa-line sa-long"></span>\n\n <div class="sa-placeholder"></div>\n <div class="sa-fix"></div>\n </div><div class="sa-icon sa-custom"></div><h2>Title</h2>\n <p>Text</p>\n <fieldset>\n <input type="text" tabIndex="3" />\n <div class="sa-input-error"></div>\n </fieldset><div class="sa-error-container">\n <div class="icon">!</div>\n <p>Not valid!</p>\n </div><div class="sa-button-container">\n <button class="cancel" tabIndex="2">Cancel</button>\n <div class="sa-confirm-button-container">\n <button class="confirm" tabIndex="1">OK</button><div class="la-ball-fall">\n <div></div>\n <div></div>\n <div></div>\n </div>\n </div>\n </div></div>',e.exports=n.default},{}],8:[function(t,e,i){Object.defineProperty(i,"__esModule",{value:!0});var a=t("./utils"),o=t("./handle-swal-dom"),r=t("./handle-dom"),s=["error","warning","info","success","input","prompt"];i.default=function(t){var e=o.getModal(),i=e.querySelector("h2"),l=e.querySelector("p"),u=e.querySelector("button.cancel"),c=e.querySelector("button.confirm");if(i.innerHTML=t.html?t.title:r.escapeHtml(t.title).split("\n").join("<br>"),l.innerHTML=t.html?t.text:r.escapeHtml(t.text||"").split("\n").join("<br>"),t.text&&r.show(l),t.customClass)r.addClass(e,t.customClass),e.setAttribute("data-custom-class",t.customClass);else{var d=e.getAttribute("data-custom-class");r.removeClass(e,d),e.setAttribute("data-custom-class","")}if(r.hide(e.querySelectorAll(".sa-icon")),t.type&&!a.isIE8()){var h=function(){for(var i=!1,a=0;a<s.length;a++)if(t.type===s[a]){i=!0;break}if(!i)return logStr("Unknown alert type: "+t.type),{v:!1};var l=n;-1!==["success","error","warning","info"].indexOf(t.type)&&(l=e.querySelector(".sa-icon.sa-"+t.type),r.show(l));var u=o.getInput();switch(t.type){case"success":r.addClass(l,"animate"),r.addClass(l.querySelector(".sa-tip"),"animateSuccessTip"),r.addClass(l.querySelector(".sa-long"),"animateSuccessLong");break;case"error":r.addClass(l,"animateErrorIcon"),r.addClass(l.querySelector(".sa-x-mark"),"animateXMark");break;case"warning":r.addClass(l,"pulseWarning"),r.addClass(l.querySelector(".sa-body"),"pulseWarningIns"),r.addClass(l.querySelector(".sa-dot"),"pulseWarningIns");break;case"input":case"prompt":u.setAttribute("type",t.inputType),u.value=t.inputValue,u.setAttribute("placeholder",t.inputPlaceholder),r.addClass(e,"show-input"),setTimeout(function(){u.focus(),u.addEventListener("keyup",swal.resetInputError)},400)}}();if("object"==typeof h)return h.v}if(t.imageUrl){var f=e.querySelector(".sa-icon.sa-custom");f.style.backgroundImage="url("+t.imageUrl+")",r.show(f);var p=80,g=80;if(t.imageSize){var m=t.imageSize.toString().split("x"),v=m[0],y=m[1];v&&y?(p=v,g=y):logStr("Parameter imageSize expects value with format WIDTHxHEIGHT, got "+t.imageSize)}f.setAttribute("style",f.getAttribute("style")+"width:"+p+"px; height:"+g+"px")}e.setAttribute("data-has-cancel-button",t.showCancelButton),t.showCancelButton?u.style.display="inline-block":r.hide(u),e.setAttribute("data-has-confirm-button",t.showConfirmButton),t.showConfirmButton?c.style.display="inline-block":r.hide(c),t.cancelButtonText&&(u.innerHTML=r.escapeHtml(t.cancelButtonText)),t.confirmButtonText&&(c.innerHTML=r.escapeHtml(t.confirmButtonText)),t.confirmButtonColor&&(c.style.backgroundColor=t.confirmButtonColor,c.style.borderLeftColor=t.confirmLoadingButtonColor,c.style.borderRightColor=t.confirmLoadingButtonColor,o.setFocusStyle(c,t.confirmButtonColor)),e.setAttribute("data-allow-outside-click",t.allowOutsideClick);var b=!!t.doneFunction;e.setAttribute("data-has-done-function",b),t.animation?"string"==typeof t.animation?e.setAttribute("data-animation",t.animation):e.setAttribute("data-animation","pop"):e.setAttribute("data-animation","none"),e.setAttribute("data-timer",t.timer)},e.exports=i.default},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],9:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0});i.extend=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},i.hexToRgb=function(t){var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?parseInt(e[1],16)+", "+parseInt(e[2],16)+", "+parseInt(e[3],16):null},i.isIE8=function(){return t.attachEvent&&!t.addEventListener},i.logStr=function(e){t.console&&t.console.log("SweetAlert: "+e)},i.colorLuminance=function(t,e){(t=String(t).replace(/[^0-9a-f]/gi,"")).length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),e=e||0;var n,i,a="#";for(i=0;3>i;i++)n=parseInt(t.substr(2*i,2),16),a+=("00"+(n=Math.round(Math.min(Math.max(0,n+n*e),255)).toString(16))).substr(n.length);return a}},{}]},{},[1]),"function"==typeof define&&define.amd?define(function(){return sweetAlert}):"undefined"!=typeof module&&module.exports&&(module.exports=sweetAlert)}(window,document),function(t){t.fn.waitMe=function(e){return this.each(function(){var n,i,a,o,r,s,l=t(this),u="waitMe",c=!1,d="background-color",h="",f="",p={init:function(){switch(r=t.extend({effect:"bounce",text:"",bg:"rgba(255,255,255,0.7)",color:"#000",maxSize:"",source:"",onClose:function(){}},e),s=(new Date).getMilliseconds(),o=t('<div class="'+u+'" data-waitme_id="'+s+'"></div>'),r.effect){case"none":a=0;break;case"bounce":a=3;break;case"rotateplane":a=1;break;case"stretch":a=5;break;case"orbit":a=2;break;case"roundBounce":a=12;break;case"win8":case"win8_linear":a=5,c=!0;break;case"ios":a=12;break;case"facebook":a=3;break;case"rotation":a=1,d="border-color";break;case"timer":if(a=2,t.isArray(r.color))var p=r.color[0];else p=r.color;h="border-color:"+p;break;case"pulse":a=1,d="border-color";break;case"progressBar":a=1;break;case"bouncePulse":a=3;break;case"img":a=1}if(""!==h&&(h+=";"),a>0){if("img"===r.effect)f='<img src="'+r.source+'">';else for(var g=1;g<=a;++g){if(t.isArray(r.color))null==(p=r.color[g])&&(p="#000");else p=r.color;f+=c?'<div class="'+u+"_progress_elem"+g+'"><div style="'+d+":"+p+'"></div></div>':'<div class="'+u+"_progress_elem"+g+'" style="'+d+":"+p+'"></div>'}i=t('<div class="'+u+"_progress "+r.effect+'" style="'+h+'">'+f+"</div>")}if(r.text&&""===r.maxSize){if(t.isArray(r.color))p=r.color[0];else p=r.color;n=t('<div class="'+u+'_text" style="color:'+p+'">'+r.text+"</div>")}var m=l.find("> ."+u);m&&m.remove();var v=t('<div class="'+u+'_content"></div>');v.append(i,n),o.append(v),"HTML"==l[0].tagName&&(l=t("body")),l.addClass(u+"_container").attr("data-waitme_id",s).append(o),m=l.find("> ."+u);var y=l.find("."+u+"_content");if(m.css({background:r.bg}),y.css({marginTop:-y.outerHeight()/2+"px"}),""!==r.maxSize){var b=i.outerHeight(),x=(i.outerWidth(),b);"img"===r.effect?(i.css({height:r.maxSize+"px"}),i.find(">img").css({maxHeight:"100%"}),y.css({marginTop:-y.outerHeight()/2+"px"})):r.maxSize<x&&v.css({transform:"scale("+r.maxSize/x+")"})}function k(t){y.css({top:"auto",transform:"translateY("+t+"px) translateZ(0)"})}if(l.outerHeight()>t(window).height()){var w=t(window).scrollTop(),S=y.outerHeight(),C=l.offset().top,T=l.outerHeight(),_=w-C+t(window).height()/2;_<0&&(_=Math.abs(_)),_-S>=0&&_+S<=T?(C-w>t(window).height()/2&&(_=S),k(_)):k(_=w>C+T-S?w-C-S:w-C+S),t(document).scroll(function(){var e=t(window).scrollTop()-C+t(window).height()/2;e-S>=0&&e+S<=T&&k(e)})}return m.on("destroyed",function(){r.onClose&&t.isFunction(r.onClose)&&r.onClose(),m.trigger("close")}),t.event.special.destroyed={remove:function(t){t.handler&&t.handler()}},m},hide:function(){var t;t=l.attr("data-waitme_id"),l.removeClass(u+"_container").removeAttr("data-waitme_id"),l.find("."+u+'[data-waitme_id="'+t+'"]').remove()}};return p[e]?p[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void 0:p.init.apply(this,arguments)})},t(window).on("load",function(){t("body.waitMe_body").addClass("hideMe"),setTimeout(function(){t("body.waitMe_body").find(".waitMe_container:not([data-waitme_id])").remove(),t("body.waitMe_body").removeClass("waitMe_body hideMe")},200)})}(jQuery);
Close