1(function(){var e=this;(function(){(function(){this.Rails={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:{selector:"button[data-remote]:not([form]), button[data-confirm]:not([form])",exclude:"form button"},inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form:not([data-turbo=true])",formInputClickSelector:"form:not([data-turbo=true]) input[type=submit], form:not([data-turbo=true]) input[type=image], form:not([data-turbo=true]) button[type=submit], form:not([data-turbo=true]) button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",formDisableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",formEnableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]"}}).call(this)}).call(e);var y=e.Rails;(function(){(function(){var t;t=null,y.loadCSPNonce=function(){var e;return t=null!=(e=document.querySelector("meta[name=csp-nonce]"))?e.content:void 0},y.cspNonce=function(){return null!=t?t:y.loadCSPNonce()}}).call(this),function(){var i,n;n=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector,y.matches=function(e,t){return null!=t.exclude?n.call(e,t.selector)&&!n.call(e,t.exclude):n.call(e,t)},i="_ujsData",y.getData=function(e,t){var n;return null!=(n=e[i])?n[t]:void 0},y.setData=function(e,t,n){return null==e[i]&&(e[i]={}),e[i][t]=n},y.$=function(e){return Array.prototype.slice.call(document.querySelectorAll(e))}}.call(this),function(){var n,i,r;n=y.$,r=y.csrfToken=function(){var e;return(e=document.querySelector("meta[name=csrf-token]"))&&e.content},i=y.csrfParam=function(){var e;return(e=document.querySelector("meta[name=csrf-param]"))&&e.content},y.CSRFProtection=function(e){var t;if(null!=(t=r()))return e.setRequestHeader("X-CSRF-Token",t)},y.refreshCSRFTokens=function(){var e,t;if(t=r(),e=i(),null!=t&&null!=e)return n('form input[name="'+e+'"]').forEach(function(e){return e.value=t})}}.call(this),function(){var r,t,a,n;a=y.matches,"function"!=typeof(r=window.CustomEvent)&&((r=function(e,t){var n;return(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}).prototype=window.Event.prototype,n=r.prototype.preventDefault,r.prototype.preventDefault=function(){var e;return e=n.call(this),this.cancelable&&!this.defaultPrevented&&Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),e}),t=y.fire=function(e,t,n){var i;return i=new r(t,{bubbles:!0,cancelable:!0,detail:n}),e.dispatchEvent(i),!i.defaultPrevented},y.stopEverything=function(e){return t(e.target,"ujs:everythingStopped"),e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()},y.delegate=function(e,n,t,i){return e.addEventListener(t,function(e){var t;for(t=e.target;t instanceof Element&&!a(t,n);)t=t.parentNode;if(t instanceof Element&&!1===i.call(t,e))return e.preventDefault(),e.stopPropagation()})}}.call(this),function(){var t,i,e,a,r,o;a=y.cspNonce,i=y.CSRFProtection,y.fire,t={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},y.ajax=function(n){var i;return n=r(n),i=e(n,function(){var e,t;return t=o(null!=(e=i.response)?e:i.responseText,i.getResponseHeader("Content-Type")),2===Math.floor(i.status/100)?"function"==typeof n.success&&n.success(t,i.statusText,i):"function"==typeof n.error&&n.error(t,i.statusText,i),"function"==typeof n.complete?n.complete(i,i.statusText):void 0}),!(null!=n.beforeSend&&!n.beforeSend(i,n))&&(i.readyState===XMLHttpRequest.OPENED?i.send(n.data):void 0)},r=function(e){return e.url=e.url||location.href,e.type=e.type.toUpperCase(),"GET"===e.type&&e.data&&(e.url.indexOf("?")<0?e.url+="?"+e.data:e.url+="&"+e.data),null==t[e.dataType]&&(e.dataType="*"),e.accept=t[e.dataType],"*"!==e.dataType&&(e.accept+=", */*; q=0.01"),e},e=function(e,t){var n;return(n=new XMLHttpRequest).open(e.type,e.url,!0),n.setRequestHeader("Accept",e.accept),"string"==typeof e.data&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),e.crossDomain||(n.setRequestHeader("X-Requested-With","XMLHttpRequest"),i(n)),n.withCredentials=!!e.withCredentials,n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE)return t(n)},n},o=function(e,t){var n,i;if("string"==typeof e&&"string"==typeof t)if(t.match(/\bjson\b/))try{e=JSON.parse(e)}catch(r){}else if(t.match(/\b(?:java|ecma)script\b/))(i=document.createElement("script")).setAttribute("nonce",a()),i.text=e,document.head.appendChild(i).parentNode.removeChild(i);else if(t.match(/\b(xml|html|svg)\b/)){n=new DOMParser,t=t.replace(/;.+/,"");try{e=n.parseFromString(e,t)}catch(r){}}return e},y.href=function(e){return e.href},y.isCrossDomain=function(e){var t,n;(t=document.createElement("a")).href=location.href,n=document.createElement("a");try{return n.href=e,!((!n.protocol||":"===n.protocol)&&!n.host||t.protocol+"//"+t.host==n.protocol+"//"+n.host)}catch(i){return i,!0}}}.call(this),function(){var r,a;r=y.matches,a=function(e){return Array.prototype.slice.call(e)},y.serializeElement=function(e,t){var n,i;
1return n=[e],r(e,"form")&&(n=a(e.elements)),i=[],n.forEach(function(t){if(t.name&&!t.disabled&&!r(t,"fieldset[disabled] *"))return r(t,"select")?a(t.options).forEach(function(e){if(e.selected)return i.push({name:t.name,value:e.value})}):t.checked||-1===["radio","checkbox","submit"].indexOf(t.type)?i.push({name:t.name,value:t.value}):void 0}),t&&i.push(t),i.map(function(e){return null!=e.name?encodeURIComponent(e.name)+"="+encodeURIComponent(e.value):e}).join("&")},y.formElements=function(e,t){return r(e,"form")?a(e.elements).filter(function(e){return r(e,t)}):a(e.querySelectorAll(t))}}.call(this),function(){var t,a,n;a=y.fire,n=y.stopEverything,y.handleConfirm=function(e){if(!t(this))return n(e)},y.confirm=function(e){return confirm(e)},t=function(e){var t,n,i;if(!(i=e.getAttribute("data-confirm")))return!0;if(t=!1,a(e,"confirm")){try{t=y.confirm(i,e)}catch(r){}n=a(e,"confirm:complete",[t])}return t&&n}}.call(this),function(){var n,i,r,a,o,s,t,l,u,c,d,h;c=y.matches,l=y.getData,d=y.setData,h=y.stopEverything,t=y.formElements,y.handleDisabledElement=function(e){if(this.disabled)return h(e)},y.enableElement=function(e){var t;if(e instanceof Event){if(u(e))return;t=e.target}else t=e;return c(t,y.linkDisableSelector)?s(t):c(t,y.buttonDisableSelector)||c(t,y.formEnableSelector)?a(t):c(t,y.formSubmitSelector)?o(t):void 0},y.disableElement=function(e){var t;return t=e instanceof Event?e.target:e,c(t,y.linkDisableSelector)?r(t):c(t,y.buttonDisableSelector)||c(t,y.formDisableSelector)?n(t):c(t,y.formSubmitSelector)?i(t):void 0},r=function(e){var t;if(!l(e,"ujs:disabled"))return null!=(t=e.getAttribute("data-disable-with"))&&(d(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t),e.addEventListener("click",h),d(e,"ujs:disabled",!0)},s=function(e){var t;return null!=(t=l(e,"ujs:enable-with"))&&(e.innerHTML=t,d(e,"ujs:enable-with",null)),e.removeEventListener("click",h),d(e,"ujs:disabled",null)},i=function(e){return t(e,y.formDisableSelector).forEach(n)},n=function(e){var t;if(!l(e,"ujs:disabled"))return null!=(t=e.getAttribute("data-disable-with"))&&(c(e,"button")?(d(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t):(d(e,"ujs:enable-with",e.value),e.value=t)),e.disabled=!0,d(e,"ujs:disabled",!0)},o=function(e){return t(e,y.formEnableSelector).forEach(a)},a=function(e){var t;return null!=(t=l(e,"ujs:enable-with"))&&(c(e,"button")?e.innerHTML=t:e.value=t,d(e,"ujs:enable-with",null)),e.disabled=!1,d(e,"ujs:disabled",null)},u=function(e){var t,n;return null!=(null!=(n=null!=(t=e.detail)?t[0]:void 0)?n.getResponseHeader("X-Xhr-Redirect"):void 0)}}.call(this),function(){var l;l=y.stopEverything,y.handleMethod=function(e){var t,n,i,r,a,o,s;if(s=(o=this).getAttribute("data-method"))return a=y.href(o),n=y.csrfToken(),t=y.csrfParam(),i=document.createElement("form"),r="<input name='_method' value='"+s+"' type='hidden' />",null==t||null==n||y.isCrossDomain(a)||(r+="<input name='"+t+"' value='"+n+"' type='hidden' />"),r+='<input type="submit" />',i.method="post",i.action=a,i.target=o.target,i.innerHTML=r,i.style.display="none",document.body.appendChild(i),i.querySelector('[type="submit"]').click(),l(e)}}.call(this),function(){var l,u,c,d,h,f,p,g,m,v=[].slice;f=y.matches,c=y.getData,g=y.setData,u=y.fire,m=y.stopEverything,l=y.ajax,d=y.isCrossDomain,p=y.serializeElement,h=function(e){var t;return null!=(t=e.getAttribute("data-remote"))&&"false"!==t},y.handleRemote=function(e){var t,n,i,r,a,o,s;return!h(r=this)||(u(r,"ajax:before")?(s=r.getAttribute("data-with-credentials"),i=r.getAttribute("data-type")||"script",f(r,y.formSubmitSelector)?(t=c(r,"ujs:submit-button"),a=c(r,"ujs:submit-button-formmethod")||r.method,o=c(r,"ujs:submit-button-formaction")||r.getAttribute("action")||location.href,"GET"===a.toUpperCase()&&(o=o.replace(/\?.*$/,"")),"multipart/form-data"===r.enctype?(n=new FormData(r),null!=t&&n.append(t.name,t.value)):n=p(r,t),g(r,"ujs:submit-button",null),g(r,"ujs:submit-button-formmethod",null),g(r,"ujs:submit-button-formaction",null)):f(r,y.buttonClickSelector)||f(r,y.inputChangeSelector)?(a=r.getAttribute("data-method"),o=r.getAttribute("data-url"),n=p(r,r.getAttribute("data-params"))):(a=r.getAttribute("data-method"),o=y.href(r),n=r.getAttribute("data-params")),l({type:a||"GET",url:o,data:n,dataType:i,beforeSend:function(e,t){return u(r,"ajax:beforeSend",[e,t])?u(r,"ajax:send",[e]):(u(r,"ajax:stopped"),!1)},success:function(){var e;return e=1<=arguments.length?v.call(arguments,0):[],u(r,"ajax:success",e)},error:function(){var e;return e=1<=arguments.length?v.call(arguments,0):[],u(r,"ajax:error",e)},complete:function(){var e;return e=1<=arguments.length?v.call(arguments,0):[],u(r,"ajax:complete",e)},crossDomain:d(o),withCredentials:null!=s&&"false"!==s}),m(e)):(u(r,"ajax:stopped"),!1))},y.formSubmitButtonClick=function(){var e,t;if(t=(e=this).form)return e.name&&g(t,"ujs:submit-button",{name:e.name,value:e.value}),g(t,"ujs:formnovalidate-button",e.formNoValidate),g(t,"ujs:submit-button-formaction",e.getAttribute("formaction")),g(t,"ujs:submit-button-formmethod",e.getAttribute("formmethod"))},y.preventInsignificantClick=function(e){var t,n,i,r;if(r=((i=this).getAttribute("data-method")||"GET").toUpperCase(),t=i.getAttribute("data-params"),n=(e.metaKey||e.ctrlKey)&&"GET"===r&&!t,null!=e.button&&0!==e.button||n)return e.stopImmediatePropagation()}}.call(this),function(){var e,i,t,n,r,a,o,s,l,u,c,d,h,f,p;if(a=y.fire,t=y.delegate,s=y.getData,e=y.$,p=y.refreshCSRFTokens,i=y.CSRFProtection,h=y.loadCSPNonce,r=y.enableElement,n=y.disableElement,u=y.handleDisabledElement,l=y.handleConfirm,f=y.preventInsignificantClick,d=y.handleRemote,o=y.formSubmitButtonClick,c=y.handleMethod,"undefined"!=typeof jQuery&&null!==jQuery&&null!=jQuery.ajax){if(jQuery.rails)throw new Error("If you load both jquery_ujs and rails-u
1js, use rails-ujs only.");jQuery.rails=y,jQuery.ajaxPrefilter(function(e,t,n){if(!e.crossDomain)return i(n)})}y.start=function(){if(window._rails_loaded)throw new Error("rails-ujs has already been loaded!");return window.addEventListener("pageshow",function(){return e(y.formEnableSelector).forEach(function(e){if(s(e,"ujs:disabled"))return r(e)}),e(y.linkDisableSelector).forEach(function(e){if(s(e,"ujs:disabled"))return r(e)})}),t(document,y.linkDisableSelector,"ajax:complete",r),t(document,y.linkDisableSelector,"ajax:stopped",r),t(document,y.buttonDisableSelector,"ajax:complete",r),t(document,y.buttonDisableSelector,"ajax:stopped",r),t(document,y.linkClickSelector,"click",f),t(document,y.linkClickSelector,"click",u),t(document,y.linkClickSelector,"click",l),t(document,y.linkClickSelector,"click",n),t(document,y.linkClickSelector,"click",d),t(document,y.linkClickSelector,"click",c),t(document,y.buttonClickSelector,"click",f),t(document,y.buttonClickSelector,"click",u),t(document,y.buttonClickSelector,"click",l),t(document,y.buttonClickSelector,"click",n),t(document,y.buttonClickSelector,"click",d),t(document,y.inputChangeSelector,"change",u),t(document,y.inputChangeSelector,"change",l),t(document,y.inputChangeSelector,"change",d),t(document,y.formSubmitSelector,"submit",u),t(document,y.formSubmitSelector,"submit",l),t(document,y.formSubmitSelector,"submit",d),t(document,y.formSubmitSelector,"submit",function(e){return setTimeout(function(){return n(e)},13)}),t(document,y.formSubmitSelector,"ajax:send",n),t(document,y.formSubmitSelector,"ajax:complete",r),t(document,y.formInputClickSelector,"click",f),t(document,y.formInputClickSelector,"click",u),t(document,y.formInputClickSelector,"click",l),t(document,y.formInputClickSelector,"click",o),document.addEventListener("DOMContentLoaded",p),document.addEventListener("DOMContentLoaded",h),window._rails_loaded=!0},window.Rails===y&&a(document,"rails:attachBindings")&&y.start()}.call(this)}).call(this),"object"==typeof module&&module.exports?module.exports=y:"function"==typeof define&&define.amd&&define(y)}).call(this),function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(k,e){function s(e){var t=!!e&&"length"in e&&e.length,n=fe.type(e);return"function"!==n&&!fe.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function t(e,n,i){if(fe.isFunction(n))return fe.grep(e,function(e,t){return!!n.call(e,t,e)!==i});if(n.nodeType)return fe.grep(e,function(e){return e===n!==i});if("string"==typeof n){if(ke.test(n))return fe.filter(n,e,i);n=fe.filter(n,e)}return fe.grep(e,function(e){return-1<fe.inArray(e,n)!==i})}function n(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function c(e){var n={};return fe.each(e.match(Le)||[],function(e,t){n[t]=!0}),n}function r(){ie.addEventListener?(ie.removeEventListener("DOMContentLoaded",a),k.removeEventListener("load",a)):(ie.detachEvent("onreadystatechange",a),k.detachEvent("onload",a))}function a(){(ie.addEventListener||"load"===k.event.type||"complete"===ie.readyState)&&(r(),fe.ready())}function l(e,t,n){if(n===undefined&&1===e.nodeType){var i="data-"+t.replace(Oe,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Ie.test(n)?fe.parseJSON(n):n)}catch(r){}fe.data(e,t,n)}else n=undefined}return n}function u(e){var t;for(t in e)if(("data"!==t||!fe.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function i(e,t,n,i){if(Pe(e)){var r,a,o=fe.expando,s=e.nodeType,l=s?fe.cache:e,u=s?e[o]:e[o]&&o;if(u&&l[u]&&(i||l[u].data)||n!==undefined||"string"!=typeof t)return u||(u=s?e[o]=ne.pop()||fe.guid++:o),l[u]||(l[u]=s?{}:{toJSON:fe.noop}),"object"!=typeof t&&"function"!=typeof t||(i?l[u]=fe.extend(l[u],t):l[u].data=fe.extend(l[u].data,t)),a=l[u],i||(a.data||(a.data={}),a=a.data),n!==undefined&&(a[fe.camelCase(t)]=n),"string"==typeof t?null==(r=a[t])&&(r=a[fe.camelCase(t)]):r=a,r}}function o(e,t,n){if(Pe(e)){var i,r,a=e.nodeType,o=a?fe.cache:e,s=a?e[fe.expando]:fe.expando;if(o[s]){if(t&&(i=n?o[s]:o[s].data)){r=(t=fe.isArray(t)?t.concat(fe.map(t,fe.camelCase)):t in i?[t]:(t=fe.camelCase(t))in i?[t]:t.split(" ")).length;for(;r--;)delete i[t[r]];
1if(n?!u(i):!fe.isEmptyObject(i))return}(n||(delete o[s].data,u(o[s])))&&(a?fe.cleanData([e],!0):de.deleteExpando||o!=o.window?delete o[s]:o[s]=undefined)}}}function d(e,t,n,i){var r,a=1,o=20,s=i?function(){return i.cur()}:function(){return fe.css(e,t,"")},l=s(),u=n&&n[3]||(fe.cssNumber[t]?"":"px"),c=(fe.cssNumber[t]||"px"!==u&&+l)&&je.exec(fe.css(e,t));if(c&&c[3]!==u)for(u=u||c[3],n=n||[],c=+l||1;c/=a=a||".5",fe.style(e,t,c+u),a!==(a=s()/l)&&1!==a&&--o;);return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}function m(e){var t=Ge.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function v(e,t){var n,i,r=0,a="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):undefined;if(!a)for(a=[],n=e.childNodes||e;null!=(i=n[r]);r++)!t||fe.nodeName(i,t)?a.push(i):fe.merge(a,v(i,t));return t===undefined||t&&fe.nodeName(e,t)?fe.merge([e],a):a}function y(e,t){for(var n,i=0;null!=(n=e[i]);i++)fe._data(n,"globalEval",!t||fe._data(t[i],"globalEval"))}function b(e){Ye.test(e.type)&&(e.defaultChecked=e.checked)}function g(e,t,n,i,r){for(var a,o,s,l,u,c,d,h=e.length,f=m(t),p=[],g=0;g<h;g++)if((o=e[g])||0===o)if("object"===fe.type(o))fe.merge(p,o.nodeType?[o]:o);else if(Xe.test(o)){for(l=l||f.appendChild(t.createElement("div")),u=(Ve.exec(o)||["",""])[1].toLowerCase(),d=$e[u]||$e._default,l.innerHTML=d[1]+fe.htmlPrefilter(o)+d[2],a=d[0];a--;)l=l.lastChild;if(!de.leadingWhitespace&&Ue.test(o)&&p.push(t.createTextNode(Ue.exec(o)[0])),!de.tbody)for(a=(o="table"!==u||Ke.test(o)?"<table>"!==d[1]||Ke.test(o)?0:l:l.firstChild)&&o.childNodes.length;a--;)fe.nodeName(c=o.childNodes[a],"tbody")&&!c.childNodes.length&&o.removeChild(c);for(fe.merge(p,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=f.lastChild}else p.push(t.createTextNode(o));for(l&&f.removeChild(l),de.appendChecked||fe.grep(v(p,"input"),b),g=0;o=p[g++];)if(i&&-1<fe.inArray(o,i))r&&r.push(o);else if(s=fe.contains(o.ownerDocument,o),l=v(f.appendChild(o),"script"),s&&y(l),n)for(a=0;o=l[a++];)qe.test(o.type||"")&&n.push(o);return l=null,f}function h(){return!0}function f(){return!1}function p(){try{return ie.activeElement}catch(e){}}function x(e,t,n,i,r,a){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=undefined),t)x(e,s,n,i,t[s],a);return e}if(null==i&&null==r?(r=n,i=n=undefined):null==r&&("string"==typeof n?(r=i,i=undefined):(r=i,i=n,n=undefined)),!1===r)r=f;else if(!r)return e;return 1===a&&(o=r,(r=function(e){return fe().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=fe.guid++)),e.each(function(){fe.event.add(this,t,r,i,n)})}function _(e,t){return fe.nodeName(e,"table")&&fe.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function w(e){return e.type=(null!==fe.find.attr(e,"type"))+"/"+e.type,e}function C(e){var t=st.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function S(e,t){if(1===t.nodeType&&fe.hasData(e)){var n,i,r,a=fe._data(e),o=fe._data(t,a),s=a.events;if(s)for(n in delete o.handle,o.events={},s)for(i=0,r=s[n].length;i<r;i++)fe.event.add(t,n,s[n][i]);o.data&&(o.data=fe.extend({},o.data))}}function M(e,t){var n,i,r;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!de.noCloneEvent&&t[fe.expando]){for(i in(r=fe._data(t)).events)fe.removeEvent(t,i,r.handle);t.removeAttribute(fe.expando)}"script"===n&&t.text!==e.text?(w(t).text=e.text,C(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),de.html5Clone&&e.innerHTML&&!fe.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ye.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}function T(n,i,r,a){i=ae.apply([],i);var e,t,o,s,l,u,c=0,d=n.length,h=d-1,f=i[0],p=fe.isFunction(f);if(p||1<d&&"string"==typeof f&&!de.checkClone&&ot.test(f))return n.each(function(e){var t=n.eq(e);p&&(i[0]=f.call(this,e,t.html())),T(t,i,r,a)});if(d&&(e=(u=g(i,n[0].ownerDocument,!1,n,a)).firstChild,1===u.childNodes.length&&(u=e),e||a)){for(o=(s=fe.map(v(u,"script"),w)).length;c<d;c++)t=u,c!==h&&(t=fe.clone(t,!0,!0),o&&fe.merge(s,v(t,"script"))),r.call(n[c],t,c);if(o)for(l=s[s.length-1].ownerDocument,fe.map(s,C),c=0;c<o;c++)t=s[c],qe.test(t.type||"")&&!fe._data(t,"globalEval")&&fe.contains(l,t)&&(t.src?fe._evalUrl&&fe._evalUrl(t.src):fe.globalEval((t.text||t.textContent||t.innerHTML||"").replace(lt,"")));u=e=null}return n}function D(e,t,n){for(var i,r=t?fe.filter(t,e):e,a=0;null!=(i=r[a]);a++)n||1!==i.nodeType||fe.cleanData(v(i)),i.parentNode&&(n&&fe.contains(i.ownerDocument,i)&&y(v(i,"script")),i.parentNode.removeChild(i));return e}function A(e,t){var n=fe(t.createElement(e)).appendTo(t.body),i=fe.css(n[0],"display");return n.detach(),i}function L(e){var t=ie,n=dt[e];return n||("none"!==(n=A(e,t))&&n||((t=((ct=(ct||fe("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||ct[0].contentDocument).document).write(),t.close(),n=A(e,t),ct.detach()),dt[e]=n),n}function E(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function P(e){if(e in Mt)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=St.length;n--;)if((e=St[n]+t)in Mt)return e}function I(e,t){for(var n,i,r,a=[],o=0,s=e.length;o<s;o++)(i=e[o]).style&&(a[o]=fe._data(i,"olddisplay"),n=i.style.display,t?(a[o]||"none"!==n||(i.style.display=""),""===i.style.display&&We(i)&&(a[o]=fe._data(i,"olddisplay",L(i.nodeName)))):(r=We(i),(n&&"none"!==n||!r)&&fe._data(i,"olddisplay",r?n:fe.css(i,"dis
1play"))));for(o=0;o<s;o++)(i=e[o]).style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?a[o]||"":"none"));return e}function O(e,t,n){var i=wt.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function N(e,t,n,i,r){for(var a=n===(i?"border":"content")?4:"width"===t?1:0,o=0;a<4;a+=2)"margin"===n&&(o+=fe.css(e,n+He[a],!0,r)),i?("content"===n&&(o-=fe.css(e,"padding"+He[a],!0,r)),"margin"!==n&&(o-=fe.css(e,"border"+He[a]+"Width",!0,r))):(o+=fe.css(e,"padding"+He[a],!0,r),"padding"!==n&&(o+=fe.css(e,"border"+He[a]+"Width",!0,r)));return o}function F(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,a=mt(e),o=de.boxSizing&&"border-box"===fe.css(e,"boxSizing",!1,a);if(r<=0||null==r){if(((r=vt(e,t,a))<0||null==r)&&(r=e.style[t]),ft.test(r))return r;i=o&&(de.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+N(e,t,n||(o?"border":"content"),i,a)+"px"}function z(e,t,n,i,r){return new z.prototype.init(e,t,n,i,r)}function R(){return k.setTimeout(function(){Tt=undefined}),Tt=fe.now()}function j(e,t){var n,i={height:e},r=0;for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=He[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function H(e,t,n){for(var i,r=(Y.tweeners[t]||[]).concat(Y.tweeners["*"]),a=0,o=r.length;a<o;a++)if(i=r[a].call(n,t,e))return i}function W(t,e,n){var i,r,a,o,s,l,u,c=this,d={},h=t.style,f=t.nodeType&&We(t),p=fe._data(t,"fxshow");for(i in n.queue||(null==(s=fe._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--,fe.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],"inline"===("none"===(u=fe.css(t,"display"))?fe._data(t,"olddisplay")||L(t.nodeName):u)&&"none"===fe.css(t,"float")&&(de.inlineBlockNeedsLayout&&"inline"!==L(t.nodeName)?h.zoom=1:h.display="inline-block")),n.overflow&&(h.overflow="hidden",de.shrinkWrapBlocks()||c.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),e)if(r=e[i],Ot.exec(r)){if(delete e[i],a=a||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!p||p[i]===undefined)continue;f=!0}d[i]=p&&p[i]||fe.style(t,i)}else u=undefined;if(fe.isEmptyObject(d))"inline"===("none"===u?L(t.nodeName):u)&&(h.display=u);else for(i in p?"hidden"in p&&(f=p.hidden):p=fe._data(t,"fxshow",{}),a&&(p.hidden=!f),f?fe(t).show():c.done(function(){fe(t).hide()}),c.done(function(){var e;for(e in fe._removeData(t,"fxshow"),d)fe.style(t,e,d[e])}),d)o=H(f?p[i]:0,i,c),i in p||(p[i]=o.start,f&&(o.end=o.start,o.start="width"===i||"height"===i?1:0))}function B(e,t){var n,i,r,a,o;for(n in e)if(r=t[i=fe.camelCase(n)],a=e[n],fe.isArray(a)&&(r=a[1],a=e[n]=a[0]),n!==i&&(e[i]=a,delete e[n]),(o=fe.cssHooks[i])&&"expand"in o)for(n in a=o.expand(a),delete e[i],a)n in e||(e[n]=a[n],t[n]=r);else t[i]=r}function Y(a,e,t){var n,o,i=0,r=Y.prefilters.length,s=fe.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var e=Tt||R(),t=Math.max(0,u.startTime+u.duration-e),n=1-(t/u.duration||0),i=0,r=u.tweens.length;i<r;i++)u.tweens[i].run(n);return s.notifyWith(a,[u,n,t]),n<1&&r?t:(s.resolveWith(a,[u]),!1)},u=s.promise({elem:a,props:fe.extend({},e),opts:fe.extend(!0,{specialEasing:{},easing:fe.easing._default},t),originalProperties:e,originalOptions:t,startTime:Tt||R(),duration:t.duration,tweens:[],createTween:function(e,t){var n=fe.Tween(a,u.opts,e,t,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var t=0,n=e?u.tweens.length:0;if(o)return this;for(o=!0;t<n;t++)u.tweens[t].run(1);return e?(s.notifyWith(a,[u,1,0]),s.resolveWith(a,[u,e])):s.rejectWith(a,[u,e]),this}}),c=u.props;for(B(c,u.opts.specialEasing);i<r;i++)if(n=Y.prefilters[i].call(u,a,c,u.opts))return fe.isFunction(n.stop)&&(fe._queueHooks(u.elem,u.opts.queue).stop=fe.proxy(n.stop,n)),n;return fe.map(c,H,u),fe.isFunction(u.opts.start)&&u.opts.start.call(a,u),fe.fx.timer(fe.extend(l,{elem:a,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)}function V(e){return fe.attr(e,"class")||""}function q(a){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,r=e.toLowerCase().match(Le)||[];if(fe.isFunction(t))for(;n=r[i++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(a[n]=a[n]||[]).unshift(t)):(a[n]=a[n]||[]).push(t)}}function U(t,r,a,o){function s(e){var i;return l[e]=!0,fe.each(t[e]||[],function(e,t){var n=t(r,a,o);return"string"!=typeof n||u||l[n]?u?!(i=n):void 0:(r.dataTypes.unshift(n),s(n),!1)}),i}var l={},u=t===on;return s(r.dataTypes[0])||!l["*"]&&s("*")}function G(e,t){var n,i,r=fe.ajaxSettings.flatOptions||{};for(i in t)t[i]!==undefined&&((r[i]?e:n||(n={}))[i]=t[i]);return n&&fe.extend(!0,e,n),e}function $(e,t,n){for(var i,r,a,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),r===undefined&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){l.unshift(o);break}if(l[0]in n)a=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){a=o;break}i||(i=o)}a=a||i}if(a)return a!==l[0]&&l.unshift(a),n[a]}function X(e,t,n,i){var r,a,o,s,l,u={},c=e.dataTypes.slice();if(c[1])for(o in e.converters)u[o.toLowerCase()]=e.converters[o];for(a=c.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=c.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(o=u[l+" "+a]||u["* "+a]))for(r in u)if((s=r.split(" "))[1]===a&&(o=u[l+" "+s[0]]||u["* "+s[0]])){!0===o?o=u[r]:!0!==u[r]&&(a=s[0],c.unshift(s[1]));break}if(!0!==o)if(o&&e["throws"])t=o(t);else try{t=o(t)}catch(d){return{state:"parsererror",error:o?d:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}function K(e){return e.style&&e.style.display||fe.css(e,"display")}function Z(e){if(!fe.contains(e.ownerDocument||ie,e))return!0;for(;e&&1===e.nodeType;){if("none"===K(e)||"hidden"===e.type)return!0;e=e.parentNode}return!1}function J(n,e,i,r){var t;if(fe.isArray(e))fe.each(e,function(e,t){i||dn.test(n)?r(n,t):J(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,i,r)});else if(i||"object"!==fe.type(e))r(n,e);else for(t in e)J(n+"["+t+"]",e[t],i,r)}function Q(){try{return new k.XMLHttpRequest}catch(e){}}function ee(){try{return new k.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function te(e){return fe.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var ne=[],ie=k.document,re=ne.slice,ae=ne.concat,oe=ne.push,se=ne.indexOf,le={},ue=le.toString,ce=le.hasOwnProperty,de={},he="1.12.4",fe=function(e,t){return new fe.fn.init(e,t)},pe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ge=/^-ms-/,me=/-([\da-z])/gi,ve=function(e,t){return t.toUpperCase()};fe.fn=fe.prototype={jquery:he,constructor:fe,selector:"",length:0,toArray:function(){return re.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:re.call(this)},pushStack:function(e){var t=fe.merge(this.constructor(),e);
1return t.prevObject=this,t.context=this.context,t},each:function(e){return fe.each(this,e)},map:function(n){return this.pushStack(fe.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(re.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:oe,sort:ne.sort,splice:ne.splice},fe.extend=fe.fn.extend=function(e){var t,n,i,r,a,o,s=e||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[l]||{},l++),"object"==typeof s||fe.isFunction(s)||(s={}),l===u&&(s=this,l--);l<u;l++)if(null!=(a=arguments[l]))for(r in a)t=s[r],s!==(i=a[r])&&(c&&i&&(fe.isPlainObject(i)||(n=fe.isArray(i)))?(n?(n=!1,o=t&&fe.isArray(t)?t:[]):o=t&&fe.isPlainObject(t)?t:{},s[r]=fe.extend(c,o,i)):i!==undefined&&(s[r]=i));return s},fe.extend({expando:"jQuery"+(he+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===fe.type(e)},isArray:Array.isArray||function(e){return"array"===fe.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!fe.isArray(e)&&0<=t-parseFloat(t)+1},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==fe.type(e)||e.nodeType||fe.isWindow(e))return!1;try{if(e.constructor&&!ce.call(e,"constructor")&&!ce.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(!de.ownFirst)for(t in e)return ce.call(e,t);for(t in e);return t===undefined||ce.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?le[ue.call(e)]||"object":typeof e},globalEval:function(e){e&&fe.trim(e)&&(k.execScript||function(e){k.eval.call(k,e)})(e)},camelCase:function(e){return e.replace(ge,"ms-").replace(me,ve)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,i=0;if(s(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(pe,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(s(Object(e))?fe.merge(n,"string"==typeof e?[e]:e):oe.call(n,e)),n},inArray:function(e,t,n){var i;if(t){if(se)return se.call(t,e,n);for(i=t.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;)e[r++]=t[i++];if(n!=n)for(;t[i]!==undefined;)e[r++]=t[i++];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,a=e.length,o=!n;r<a;r++)!t(e[r],r)!==o&&i.push(e[r]);return i},map:function(e,t,n){var i,r,a=0,o=[];if(s(e))for(i=e.length;a<i;a++)null!=(r=t(e[a],a,n))&&o.push(r);else for(a in e)null!=(r=t(e[a],a,n))&&o.push(r);return ae.apply([],o)},guid:1,proxy:function(e,t){var n,i,r;return"string"==typeof t&&(r=e[t],t=e,e=r),fe.isFunction(e)?(n=re.call(arguments,2),(i=function(){return e.apply(t||this,n.concat(re.call(arguments)))}).guid=e.guid=e.guid||fe.guid++,i):undefined},now:function(){return+new Date},support:de}),"function"==typeof Symbol&&(fe.fn[Symbol.iterator]=ne[Symbol.iterator]),fe.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){le["[object "+t+"]"]=t.toLowerCase()});var ye=function(n){function x(e,t,n,i){var r,a,o,s,l,u,c,d,h=t&&t.ownerDocument,f=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==f&&9!==f&&11!==f)return n;if(!i&&((t?t.ownerDocument||t:H)!==P&&E(t),t=t||P,O)){if(11!==f&&(u=ve.exec(e)))if(r=u[1]){if(9===f){if(!(o=t.getElementById(r)))return n;if(o.id===r)return n.push(o),n}else if(h&&(o=h.getElementById(r))&&R(t,o 2)&&o.id===r)return n.push(o),n}else{if(u[2])return J.apply(n,t.getElementsByTagName(e)),n;if((r=u[3])&&v.getElementsByClassName&&t.getElementsByClassName)return J.apply(n,t.getElementsByClassName(r)),n}if(v.qsa&&!q[e+" "]&&(!N||!N.test(e))){if(1!==f)h=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(be,"\\$&"):t.setAttribute("id",s=j),a=(c=S(e)).length,l=he.test(s)?"#"+s:"[id='"+s+"']";a--;)c[a]=l+" "+m(c[a]);d=c.join(","),h=ye.test(e)&&g(t.parentNode)||t}if(d)try{return J.apply(n,h.querySelectorAll(d)),n}catch(p){}finally{s===j&&t.removeAttribute("id")}}}return T(e.replace(se,"$1"),t,n,i)}function e(){function n(e,t){return i.push(e+" ")>w.cacheLength&&delete n[i.shift()],n[e+" "]=t}var i=[];return n}function l(e){return e[j]=!0,e}function r(e){var t=P.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function t(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function u(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||G)-(~e.sourceIndex||G);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function i(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function a(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function o(o){return l(function(a){return a=+a,l(function(e,t){for(var n,i=o([],e.length,a),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function g(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function s(){}function m(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function d(s,e,t){var l=e.dir,u=t&&"parentNode"===l,c=B++;return e.first?function(e,t,n){for(;e=e[l];)if(1===e.nodeType||u)return s(e,t,n)}:function(e,t,n){var i,r,a,o=[W,c];if(n){for(;e=e[l];
vendor: 10,079 bytes, line 2
2)if((1===e.nodeType||u)&&s(e,t,n))return!0}else for(;e=e[l];)if(1===e.nodeType||u){if((i=(r=(a=e[j]||(e[j]={}))[e.uniqueID]||(a[e.uniqueID]={}))[l])&&i[0]===W&&i[1]===c)return o[2]=i[2];if((r[l]=o)[2]=s(e,t,n))return!0}}}function h(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function y(e,t,n){for(var i=0,r=t.length;i<r;i++)x(e,t[i],n);return n}function _(e,t,n,i,r){for(var a,o=[],s=0,l=e.length,u=null!=t;s<l;s++)(a=e[s])&&(n&&!n(a,i,r)||(o.push(a),u&&t.push(s)));return o}function b(f,p,g,m,v,e){return m&&!m[j]&&(m=b(m)),v&&!v[j]&&(v=b(v,e)),l(function(e,t,n,i){var r,a,o,s=[],l=[],u=t.length,c=e||y(p||"*",n.nodeType?[n]:n,[]),d=!f||!e&&p?c:_(c,s,f,n,i),h=g?v||(e?f:u||m)?[]:t:d;if(g&&g(d,h,n,i),m)for(r=_(h,l),m(r,[],n,i),a=r.length;a--;)(o=r[a])&&(h[l[a]]=!(d[l[a]]=o));if(e){if(v||f){if(v){for(r=[],a=h.length;a--;)(o=h[a])&&r.push(d[a]=o);v(null,h=[],r,i)}for(a=h.length;a--;)(o=h[a])&&-1<(r=v?ee(e,o):s[a])&&(e[r]=!(t[r]=o))}}else h=_(h===t?h.splice(u,h.length):h),v?v(null,t,h,i):J.apply(t,h)})}function f(e){for(var r,t,n,i=e.length,a=w.relative[e[0].type],o=a||w.relative[" "],s=a?1:0,l=d(function(e){return e===r},o,!0),u=d(function(e){return-1<ee(r,e)},o,!0),c=[function(e,t,n){var i=!a&&(n||t!==D)||((r=t).nodeType?l(e,t,n):u(e,t,n));return r=null,i}];s<i;s++)if(t=w.relative[e[s].type])c=[d(h(c),t)];else{if((t=w.filter[e[s].type].apply(null,e[s].matches))[j]){for(n=++s;n<i&&!w.relative[e[n].type];n++);return b(1<s&&h(c),1<s&&m(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),t,s<n&&f(e.slice(s,n)),n<i&&f(e=e.slice(n)),n<i&&m(e))}c.push(t)}return h(c)}function c(m,v){var y=0<v.length,b=0<m.length,e=function(e,t,n,i,r){var a,o,s,l=0,u="0",c=e&&[],d=[],h=D,f=e||b&&w.find.TAG("*",r),p=W+=null==h?1:Math.random()||.1,g=f.length;for(r&&(D=t===P||t||r);u!==g&&null!=(a=f[u]);u++){if(b&&a){for(o=0,t||a.ownerDocument===P||(E(a),n=!O);s=m[o++];)if(s(a,t||P,n)){i.push(a);break}r&&(W=p)}y&&((a=!s&&a)&&l--,e&&c.push(a))}if(l+=u,y&&u!==l){for(o=0;s=v[o++];)s(c,d,t,n);if(e){if(0<l)for(;u--;)c[u]||d[u]||(d[u]=K.call(i));d=_(d)}J.apply(i,d),r&&!e&&0<d.length&&1<l+v.length&&x.uniqueSort(i)}return r&&(W=p,D=h),c};return y?l(e):e}var p,v,w,k,C,S,M,T,D,A,L,E,P,I,O,N,F,z,R,j="sizzle"+1*new Date,H=n.document,W=0,B=0,Y=e(),V=e(),q=e(),U=function(e,t){return e===t&&(L=!0),0},G=1<<31,$={}.hasOwnProperty,X=[],K=X.pop,Z=X.push,J=X.push,Q=X.slice,ee=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",re="\\["+ne+"*("+ie+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+ne+"*\\]",ae=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+re+")*)|.*)\\)|)",oe=new RegExp(ne+"+","g"),se=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),le=new RegExp("^"+ne+"*,"+ne+"*"),ue=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),ce=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),de=new RegExp(ae),he=new RegExp("^"+ie+"$"),fe={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie+"|[*])"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},pe=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,be=/'|\\/g,xe=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),_e=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},we=function(){E()};try{J.apply(X=Q.call(H.childNodes),H.childNodes),X[H.childNodes.length].nodeType}catch(ke){J={apply:X.length?function(e,t){Z.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}for(p in v=x.support={},C=x.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},E=x.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:H;return i!==P&&9===i.nodeType&&i.documentElement&&(I=(P=i).documentElement,O=!C(P),(n=P.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",we,!1):n.attachEvent&&n.attachEvent("onunload",we)),v.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),v.getElementsByTagName=r(function(e){return e.appendChild(P.createComment("")),!e.getElementsByTagName("*").length}),v.getElementsByClassName=me.test(P.getElementsByClassName),v.getById=r(function(e){return I.appendChild(e).id=j,!P.getElementsByName||!P.getElementsByName(j).length}),v.getById?(w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&O){var n=t.getElementById(e);return n?[n]:[]}},w.filter.ID=function(e){var t=e.replace(xe,_e);return function(e){return e.getAttribute("id")===t}}):(delete w.find.ID,w.filter.ID=function(e){var n=e.replace(xe,_e);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}}),w.find.TAG=v.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):v.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,a=t.getElementsByTagName(e);if("*"!==e)return a;for(;n=a[r++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=v.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&O)return t.getElementsByClassName(e)},F=[],N=[],(v.qsa=me.test(P.querySelectorAll))&&(r(function(e){I.appendChild(e).innerHTML="<a id='"+j+"'></a><select id='"+j+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&N.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||N.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+j+"-]").length||N.push("~="),e.querySelectorAll(":checked").length||N.push(":checked"),e.querySelectorAll("a#"+j+"+*").length||N.push(".#.+[+~]")}),r(function(e){var t=P.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&N.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||N.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),N.push(",.*:")})),(v.matchesSelector=me.test(z=I.matches||I.webkitMatchesSelector||I.mozMatchesSelector||I.oMatchesSelector||I.msMatchesSelector))&&r(function(e){v.disconnectedMatch=z.call(e,"div"),z.call(e,"[s!='']:x"),F.push("!=",ae)}),N=N.length&&new RegExp(N.join("|")),F=F.length&&new RegExp(F.join("|")),t=me.test(I.compareDocumentPosition),R=t||me.test(I.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=t?function(e,t){if(e===t)return L=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!v.sortDetached&&t.compareDocumentPosition(e)===n?e===P||e.ownerDocument===H&&R(H,e)?-1:t===P||t.ownerDocument===H&&R(H,t)?1:A?ee(A,e)-ee(A,t):0:4&n?-1:1)}:function(e,t){if(e===t)return L=!0,0;var n,i=0,r=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!r||!a)return e===P?-1:t===P?1:r?-1:a?1:A?ee(A,e)-ee(A,t):0;if(r===a)return u(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[i]===s[i];)i++;return i?u(o[i],s[i]):o[i]===H?-1:s[i]===H?1:0}),P},x.matches=function(e,t){return x(e,null,null,t)},x.matchesSelector=function(e,t){if((e.ownerDocument||e)!==P&&E(e),t=t.replace(ce,"='$1']"),v.matchesSelector&&O&&!q[t+" "]&&(!F||!F.test(t))&&(!N||!N.test(t)))try{var n=z.call(e,t);if(n||v.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(ke){}return 0<x(t,P,null,[e]).length},x.contains=function(e,t){return(e.ownerDocument||e)!==P&&E(e),R(e,t)},x.attr=function(e,t){(e.ownerDocument||e)!==P&&E(e);var n=w.attrHandle[t.toLowerCase()],i=n&&$.call(w.attrHandle,t.toLowerCase())?n(e,t,!O):undefined;return i!==undefined?i:v.attributes||!O?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},x.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},x.uniqueSort=function(e){var t,n=[],i=0,r=0;if(L=!v.detectDuplicates,A=!v.sortStable&&e.slice(0),e.sort(U),L){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return A=null,e},k=x.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=k(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=k(t);return n},(w=x.selectors={cacheLength:50,createPseudo:l,match:fe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(xe,_e),e[3]=(e[3]||e[4]||e[5]||"").replace(xe,_e),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||x.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&x.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&de.test(n)&&(t=S(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(xe,_e).toLowerCase();return"*"===e?function(){return!0}
vendor: 6,394 bytes, line 2
2:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Y[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&Y(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=x.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1<t.indexOf(r):"$="===i?r&&t.slice(-r.length)===r:"~="===i?-1<(" "+t.replace(oe," ")+" ").indexOf(r):"|="===i&&(t===r||t.slice(0,r.length+1)===r+"-"))}},CHILD:function(p,e,t,g,m){var v="nth"!==p.slice(0,3),y="last"!==p.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,r,a,o,s,l,u=v!==y?"nextSibling":"previousSibling",c=e.parentNode,d=b&&e.nodeName.toLowerCase(),h=!n&&!b,f=!1;if(c){if(v){for(;u;){for(o=e;o=o[u];)if(b?o.nodeName.toLowerCase()===d:1===o.nodeType)return!1;l=u="only"===p&&!l&&"nextSibling"}return!0}if(l=[y?c.firstChild:c.lastChild],y&&h){for(f=(s=(i=(r=(a=(o=c)[j]||(o[j]={}))[o.uniqueID]||(a[o.uniqueID]={}))[p]||[])[0]===W&&i[1])&&i[2],o=s&&c.childNodes[s];o=++s&&o&&o[u]||(f=s=0)||l.pop();)if(1===o.nodeType&&++f&&o===e){r[p]=[W,s,f];break}}else if(h&&(f=s=(i=(r=(a=(o=e)[j]||(o[j]={}))[o.uniqueID]||(a[o.uniqueID]={}))[p]||[])[0]===W&&i[1]),!1===f)for(;(o=++s&&o&&o[u]||(f=s=0)||l.pop())&&((b?o.nodeName.toLowerCase()!==d:1!==o.nodeType)||!++f||(h&&((r=(a=o[j]||(o[j]={}))[o.uniqueID]||(a[o.uniqueID]={}))[p]=[W,f]),o!==e)););return(f-=m)===g||f%g==0&&0<=f/g}}},PSEUDO:function(e,a){var t,o=w.pseudos[e]||w.setFilters[e.toLowerCase()]||x.error("unsupported pseudo: "+e);return o[j]?o(a):1<o.length?(t=[e,e,"",a],w.setFilters.hasOwnProperty(e.toLowerCase())?l(function(e,t){for(var n,i=o(e,a),r=i.length;r--;)e[n=ee(e,i[r])]=!(t[n]=i[r])}):function(e){return o(e,0,t)}):o}},pseudos:{not:l(function(e){var i=[],r=[],s=M(e.replace(se,"$1"));return s[j]?l(function(e,t,n,i){for(var r,a=s(e,null,i,[]),o=e.length;o--;)(r=a[o])&&(e[o]=!(t[o]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),i[0]=null,!r.pop()}}),has:l(function(t){return function(e){return 0<x(t,e).length}}),contains:l(function(t){return t=t.replace(xe,_e),function(e){return-1<(e.textContent||e.innerText||k(e)).indexOf(t)}}),lang:l(function(n){return he.test(n||"")||x.error("unsupported lang: "+n),n=n.replace(xe,_e).toLowerCase(),function(e){var t;do{if(t=O?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===I},focus:function(e){return e===P.activeElement&&(!P.hasFocus||P.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return ge.test(e.nodeName)},input:function(e){return pe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:o(function(){return[0]}),last:o(function(e,t){return[t-1]}),eq:o(function(e,t,n){return[n<0?n+t:n]}),even:o(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:o(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:o(function(e,t,n){for(var i=n<0?n+t:n;0<=--i;)e.push(i);return e}),gt:o(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[p]=i(p);for(p in{submit:!0,reset:!0})w.pseudos[p]=a(p);return s.prototype=w.filters=w.pseudos,w.setFilters=new s,S=x.tokenize=function(e,t){var n,i,r,a,o,s,l,u=V[e+" "];if(u)return t?0:u.slice(0);for(o=e,s=[],l=w.preFilter;o;){for(a in n&&!(i=le.exec(o))||(i&&(o=o.slice(i[0].length)||o),s.push(r=[])),n=!1,(i=ue.exec(o))&&(n=i.shift(),r.push({value:n,type:i[0].replace(se," ")}),o=o.slice(n.length)),w.filter)!(i=fe[a].exec(o))||l[a]&&!(i=l[a](i))||(n=i.shift(),r.push({value:n,type:a,matches:i}),o=o.slice(n.length));if(!n)break}return t?o.length:o?x.error(e):V(e,s).slice(0)},M=x.compile=function(e,t){var n,i=[],r=[],a=q[e+" "];if(!a){for(t||(t=S(e)),n=t.length;n--;)(a=f(t[n]))[j]?i.push(a):r.push(a);(a=q(e,c(r,i))).selector=e}return a},T=x.select=function(e,t,n,i){var r,a,o,s,l,u="function"==typeof e&&e,c=!i&&S(e=u.selector||e);if(n=n||[],1===c.length){if(2<(a=c[0]=c[0].slice(0)).length&&"ID"===(o=a[0]).type&&v.getById&&9===t.nodeType&&O&&w.relative[a[1].type]){if(!(t=(w.find.ID(o.matches[0].replace(xe,_e),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(r=fe.needsContext.test(e)?0:a.length;r--&&(o=a[r],!w.relative[s=o.type]);)if((l=w.find[s])&&(i=l(o.matches[0].replace(xe,_e),ye.test(a[0].type)&&g(t.parentNode)||t))){if(a.splice(r,1),!(e=i.length&&m(a)))return J.apply(n,i),n;break}}return(u||M(e,c))(i,t,!O,n,!t||ye.test(e)&&g(t.parentNode)||t),n},v.sortStable=j.split("").sort(U).join("")===j,v.detectDuplicates=!!L,E(),v.sortDetached=r(function(e){return 1&e.compareDocumentPosition(P.createElement("div"))}),r(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||t("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),v.attributes&&r(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||t("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||t(te,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),x}(k);fe.find=ye,fe.expr=ye.selectors,fe.expr[":"]=fe.expr.pseudos,fe.uniqueSort=fe.unique=ye.uniqueSort,fe.text=ye.getText,fe.isXMLDoc=ye.isXML,fe.contains=ye.contains;
2var be=function(e,t,n){for(var i=[],r=n!==undefined;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&fe(e).is(n))break;i.push(e)}return i},xe=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},_e=fe.expr.match.needsContext,we=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,ke=/^.[^:#\[\.,]*$/;fe.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?fe.find.matchesSelector(i,e)?[i]:[]:fe.find.matches(e,fe.grep(t,function(e){return 1===e.nodeType}))},fe.fn.extend({find:function(e){var t,n=[],i=this,r=i.length;if("string"!=typeof e)return this.pushStack(fe(e).filter(function(){for(t=0;t<r;t++)if(fe.contains(i[t],this))return!0}));for(t=0;t<r;t++)fe.find(e,i[t],n);return(n=this.pushStack(1<r?fe.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(t(this,e||[],!1))},not:function(e){return this.pushStack(t(this,e||[],!0))},is:function(e){return!!t(this,"string"==typeof e&&_e.test(e)?fe(e):e||[],!1).length}});var Ce,Se=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(fe.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||Ce,"string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):fe.isFunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(fe):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),fe.makeArray(e,this));if(!(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:Se.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof fe?t[0]:t,fe.merge(this,fe.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:ie,!0)),we.test(i[1])&&fe.isPlainObject(t))for(i in t)fe.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}if((r=ie.getElementById(i[2]))&&r.parentNode){if(r.id!==i[2])return Ce.find(e);this.length=1,this[0]=r}return this.context=ie,this.selector=e,this}).prototype=fe.fn,Ce=fe(ie);var Me=/^(?:parents|prev(?:Until|All))/,Te={children:!0,contents:!0,next:!0,prev:!0};fe.fn.extend({has:function(e){var t,n=fe(e,this),i=n.length;return this.filter(function(){for(t=0;t<i;t++)if(fe.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,i=0,r=this.length,a=[],o=_e.test(e)||"string"!=typeof e?fe(e,t||this.context):0;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?-1<o.index(n):1===n.nodeType&&fe.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(1<a.length?fe.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?fe.inArray(this[0],fe(e)):fe.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(fe.uniqueSort(fe.merge(this.get(),fe(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),fe.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return be(e,"parentNode")},parentsUntil:function(e,t,n){return be(e,"parentNode",n)},next:function(e){return n(e,"nextSibling")},prev:function(e){return n(e,"previousSibling")},nextAll:function(e){return be(e,"nextSibling")},prevAll:function(e){return be(e,"previousSibling")},nextUntil:function(e,t,n){return be(e,"nextSibling",n)},prevUntil:function(e,t,n){return be(e,"previousSibling",n)},siblings:function(e){return xe((e.parentNode||{}).firstChild,e)},children:function(e){return xe(e.firstChild)},contents:function(e){return fe.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:fe.merge([],e.childNodes)}},function(i,r){fe.fn[i]=function(e,t){var n=fe.map(this,r,e);return"Until"!==i.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=fe.filter(t,n)),1<this.length&&(Te[i]||(n=fe.uniqueSort(n)),Me.test(i)&&(n=n.reverse())),this.pushStack(n)}});var De,Ae,Le=/\S+/g;for(Ae in fe.Callbacks=function(i){i="string"==typeof i?c(i):fe.extend({},i);var r,e,t,n,a=[],o=[],s=-1,l=function(){for(n=i.once,t=r=!0;o.length;s=-1)for(e=o.shift();++s<a.length;)!1===a[s].apply(e[0],e[1])&&i.stopOnFalse&&(s=a.length,e=!1);i.memory||(e=!1),r=!1,n&&(a=e?[]:"")},u={add:function(){return a&&(e&&!r&&(s=a.length-1,o.push(e)),function n(e){fe.each(e,function(e,t){fe.isFunction(t)?i.unique&&u.has(t)||a.push(t):t&&t.length&&"string"!==fe.type(t)&&n(t)})}(arguments),e&&!r&&l()),this},remove:function(){return fe.each(arguments,function(e,t){for(var n;-1<(n=fe.inArray(t,a,n));)a.splice(n,1),n<=s&&s--}),this},has:function(e){return e?-1<fe.inArray(e,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return n=o=[],a=e="",this},disabled:function(){return!a},lock:function(){return n=!0,e||u.disable(),this},locked:function(){return!!n},fireWith:function(e,t){return n||(t=[e,(t=t||[]).slice?t.slice():t],o.push(t),r||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!t}};return u},fe.extend({Deferred:function(e){var a=[["resolve","done",fe.Callbacks("once memory"),"resolved"],["reject","fail",fe.Callbacks("once memory"),"rejected"],["notify","progress",fe.Callbacks("memory")]],r="pending",o={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var r=arguments;return fe.Deferred(function(i){fe.each(a,function(e,t){var n=fe.isFunction(r[e])&&r[e];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&fe.isFunction(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[t[0]+"With"](this===o?i.promise():this,n?[e]:arguments)})}),r=null}).promise()},promise:function(e){return null!=e?fe.extend(e,o):o}},s={};
2return o.pipe=o.then,fe.each(a,function(e,t){var n=t[2],i=t[3];o[t[1]]=n.add,i&&n.add(function(){r=i},a[1^e][2].disable,a[2][2].lock),s[t[0]]=function(){return s[t[0]+"With"](this===s?o:this,arguments),this},s[t[0]+"With"]=n.fireWith}),o.promise(s),e&&e.call(s,s),s},when:function(e){var r,t,n,i=0,a=re.call(arguments),o=a.length,s=1!==o||e&&fe.isFunction(e.promise)?o:0,l=1===s?e:fe.Deferred(),u=function(t,n,i){return function(e){n[t]=this,i[t]=1<arguments.length?re.call(arguments):e,i===r?l.notifyWith(n,i):--s||l.resolveWith(n,i)}};if(1<o)for(r=new Array(o),t=new Array(o),n=new Array(o);i<o;i++)a[i]&&fe.isFunction(a[i].promise)?a[i].promise().progress(u(i,t,r)).done(u(i,n,a)).fail(l.reject):--s;return s||l.resolveWith(n,a),l.promise()}}),fe.fn.ready=function(e){return fe.ready.promise().done(e),this},fe.extend({isReady:!1,readyWait:1,holdReady:function(e){e?fe.readyWait++:fe.ready(!0)},ready:function(e){(!0===e?--fe.readyWait:fe.isReady)||(fe.isReady=!0)!==e&&0<--fe.readyWait||(De.resolveWith(ie,[fe]),fe.fn.triggerHandler&&(fe(ie).triggerHandler("ready"),fe(ie).off("ready")))}}),fe.ready.promise=function(e){if(!De)if(De=fe.Deferred(),"complete"===ie.readyState||"loading"!==ie.readyState&&!ie.documentElement.doScroll)k.setTimeout(fe.ready);else if(ie.addEventListener)ie.addEventListener("DOMContentLoaded",a),k.addEventListener("load",a);else{ie.attachEvent("onreadystatechange",a),k.attachEvent("onload",a);var t=!1;try{t=null==k.frameElement&&ie.documentElement}catch(n){}t&&t.doScroll&&function i(){if(!fe.isReady){try{t.doScroll("left")}catch(n){return k.setTimeout(i,50)}r(),fe.ready()}}()}return De.promise(e)},fe.ready.promise(),fe(de))break;de.ownFirst="0"===Ae,de.inlineBlockNeedsLayout=!1,fe(function(){var e,t,n,i;(n=ie.getElementsByTagName("body")[0])&&n.style&&(t=ie.createElement("div"),(i=ie.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",de.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(i))}),function(){var e=ie.createElement("div");de.deleteExpando=!0;try{delete e.test}catch(t){de.deleteExpando=!1}e=null}();var Ee,Pe=function(e){var t=fe.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)},Ie=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Oe=/([A-Z])/g;fe.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?fe.cache[e[fe.expando]]:e[fe.expando])&&!u(e)},data:function(e,t,n){return i(e,t,n)},removeData:function(e,t){return o(e,t)},_data:function(e,t,n){return i(e,t,n,!0)},_removeData:function(e,t){return o(e,t,!0)}}),fe.fn.extend({data:function(e,t){var n,i,r,a=this[0],o=a&&a.attributes;if(e!==undefined)return"object"==typeof e?this.each(function(){fe.data(this,e)}):1<arguments.length?this.each(function(){fe.data(this,e,t)}):a?l(a,e,fe.data(a,e)):undefined;if(this.length&&(r=fe.data(a),1===a.nodeType&&!fe._data(a,"parsedAttrs"))){for(n=o.length;n--;)o[n]&&0===(i=o[n].name).indexOf("data-")&&l(a,i=fe.camelCase(i.slice(5)),r[i]);fe._data(a,"parsedAttrs",!0)}return r},removeData:function(e){return this.each(function(){fe.removeData(this,e)})}}),fe.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=fe._data(e,t),n&&(!i||fe.isArray(n)?i=fe._data(e,t,fe.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=fe.queue(e,t),i=n.length,r=n.shift(),a=fe._queueHooks(e,t),o=function(){fe.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete a.stop,r.call(e,o,a)),!i&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return fe._data(e,n)||fe._data(e,n,{empty:fe.Callbacks("once memory").add(function(){fe._removeData(e,t+"queue"),fe._removeData(e,n)})})}}),fe.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?fe.queue(this[0],t):n===undefined?this:this.each(function(){var e=fe.queue(this,t,n);fe._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&fe.dequeue(this,t)})},dequeue:function(e){return this.each(function(){fe.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=fe.Deferred(),a=this,o=this.length,s=function(){--i||r.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=undefined),e=e||"fx";o--;)(n=fe._data(a[o],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(t)}}),de.shrinkWrapBlocks=function(){return null!=Ee?Ee:(Ee=!1,(t=ie.getElementsByTagName("body")[0])&&t.style?(e=ie.createElement("div"),(n=ie.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(n).appendChild(e),"undefined"!=typeof e.style.zoom&&(e.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",e.appendChild(ie.createElement("div")).style.width="5px",Ee=3!==e.offsetWidth),t.removeChild(n),Ee):void 0);var e,t,n};var Ne,Fe,ze,Re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,je=new RegExp("^(?:([+-])=|)("+Re+")([a-z%]*)$","i"),He=["Top","Right","Bottom","Left"],We=function(e,t){return e=t||e,"none"===fe.css(e,"display")||!fe.contains(e.ownerDocument,e)},Be=function(e,t,n,i,r,a,o){var s=0,l=e.length,u=null==n;
2if("object"===fe.type(n))for(s in r=!0,n)Be(e,t,s,n[s],!0,a,o);else if(i!==undefined&&(r=!0,fe.isFunction(i)||(o=!0),u&&(o?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(fe(e),n)})),t))for(;s<l;s++)t(e[s],n,o?i:i.call(e[s],s,t(e[s],n)));return r?e:u?t.call(e):l?t(e[0],n):a},Ye=/^(?:checkbox|radio)$/i,Ve=/<([\w:-]+)/,qe=/^$|\/(?:java|ecma)script/i,Ue=/^\s+/,Ge="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";Ne=ie.createElement("div"),Fe=ie.createDocumentFragment(),ze=ie.createElement("input"),Ne.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",de.leadingWhitespace=3===Ne.firstChild.nodeType,de.tbody=!Ne.getElementsByTagName("tbody").length,de.htmlSerialize=!!Ne.getElementsByTagName("link").length,de.html5Clone="<:nav></:nav>"!==ie.createElement("nav").cloneNode(!0).outerHTML,ze.type="checkbox",ze.checked=!0,Fe.appendChild(ze),de.appendChecked=ze.checked,Ne.innerHTML="<textarea>x</textarea>",de.noCloneChecked=!!Ne.cloneNode(!0).lastChild.defaultValue,Fe.appendChild(Ne),(ze=ie.createElement("input")).setAttribute("type","radio"),ze.setAttribute("checked","checked"),ze.setAttribute("name","t"),Ne.appendChild(ze),de.checkClone=Ne.cloneNode(!0).cloneNode(!0).lastChild.checked,de.noCloneEvent=!!Ne.addEventListener,Ne[fe.expando]=1,de.attributes=!Ne.getAttribute(fe.expando);var $e={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:de.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};$e.optgroup=$e.option,$e.tbody=$e.tfoot=$e.colgroup=$e.caption=$e.thead,$e.th=$e.td;var Xe=/<|&#?\w+;/,Ke=/<tbody/i;!function(){var e,t,n=ie.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})t="on"+e,(de[e]=t in k)||(n.setAttribute(t,"t"),de[e]=!1===n.attributes[t].expando);n=null}();var Ze=/^(?:input|select|textarea)$/i,Je=/^key/,Qe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,et=/^(?:focusinfocus|focusoutblur)$/,tt=/^([^.]*)(?:\.(.+)|)/;fe.event={global:{},add:function(e,t,n,i,r){var a,o,s,l,u,c,d,h,f,p,g,m=fe._data(e);if(m){for(n.handler&&(n=(l=n).handler,r=l.selector),n.guid||(n.guid=fe.guid++),(o=m.events)||(o=m.events={}),(c=m.handle)||((c=m.handle=function(e){return void 0===fe||e&&fe.event.triggered===e.type?undefined:fe.event.dispatch.apply(c.elem,arguments)}).elem=e),s=(t=(t||"").match(Le)||[""]).length;s--;)f=g=(a=tt.exec(t[s])||[])[1],p=(a[2]||"").split(".").sort(),f&&(u=fe.event.special[f]||{},f=(r?u.delegateType:u.bindType)||f,u=fe.event.special[f]||{},d=fe.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&fe.expr.match.needsContext.test(r),namespace:p.join(".")},l),(h=o[f])||((h=o[f]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,i,p,c)||(e.addEventListener?e.addEventListener(f,c,!1):e.attachEvent&&e.attachEvent("on"+f,c))),u.add&&(u.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,d):h.push(d),fe.event.global[f]=!0);e=null}},remove:function(e,t,n 3,i,r){var a,o,s,l,u,c,d,h,f,p,g,m=fe.hasData(e)&&fe._data(e);if(m&&(c=m.events)){for(u=(t=(t||"").match(Le)||[""]).length;u--;)if(f=g=(s=tt.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),f){for(d=fe.event.special[f]||{},h=c[f=(i?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=a=h.length;a--;)o=h[a],!r&&g!==o.origType||n&&n.guid!==o.guid||s&&!s.test(o.namespace)||i&&i!==o.selector&&("**"!==i||!o.selector)||(h.splice(a,1),o.selector&&h.delegateCount--,d.remove&&d.remove.call(e,o));l&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,m.handle)||fe.removeEvent(e,f,m.handle),delete c[f])}else for(f in c)fe.event.remove(e,f+t[u],n,i,!0);fe.isEmptyObject(c)&&(delete m.handle,fe._removeData(e,"events"))}},trigger:function(e,t,n,i){var r,a,o,s,l,u,c,d=[n||ie],h=ce.call(e,"type")?e.type:e,f=ce.call(e,"namespace")?e.namespace.split("."):[];if(o=u=n=n||ie,3!==n.nodeType&&8!==n.nodeType&&!et.test(h+fe.event.triggered)&&(-1<h.indexOf(".")&&(h=(f=h.split(".")).shift(),f.sort()),a=h.indexOf(":")<0&&"on"+h,(e=e[fe.expando]?e:new fe.Event(h,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.
3join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=undefined,e.target||(e.target=n),t=null==t?[e]:fe.makeArray(t,[e]),l=fe.event.special[h]||{},i||!l.trigger||!1!==l.trigger.apply(n,t))){if(!i&&!l.noBubble&&!fe.isWindow(n)){for(s=l.delegateType||h,et.test(s+h)||(o=o.parentNode);o;o=o.parentNode)d.push(o),u=o;u===(n.ownerDocument||ie)&&d.push(u.defaultView||u.parentWindow||k)}for(c=0;(o=d[c++])&&!e.isPropagationStopped();)e.type=1<c?s:l.bindType||h,(r=(fe._data(o,"events")||{})[e.type]&&fe._data(o,"handle"))&&r.apply(o,t),(r=a&&o[a])&&r.apply&&Pe(o)&&(e.result=r.apply(o,t),!1===e.result&&e.preventDefault());if(e.type=h,!i&&!e.isDefaultPrevented()&&(!l._default||!1===l._default.apply(d.pop(),t))&&Pe(n)&&a&&n[h]&&!fe.isWindow(n)){(u=n[a])&&(n[a]=null),fe.event.triggered=h;try{n[h]()}catch(p){}fe.event.triggered=undefined,u&&(n[a]=u)}return e.result}},dispatch:function(e){e=fe.event.fix(e);var t,n,i,r,a,o=[],s=re.call(arguments),l=(fe._data(this,"events")||{})[e.type]||[],u=fe.event.special[e.type]||{};if((s[0]=e).delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(o=fe.event.handlers.call(this,e,l),t=0;(r=o[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,n=0;(a=r.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(a.namespace)||(e.handleObj=a,e.data=a.data,(i=((fe.event.special[a.origType]||{}).handle||a.handler).apply(r.elem,s))!==undefined&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,a,o=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(i=[],n=0;n<s;n++)i[r=(a=t[n]).selector+" "]===undefined&&(i[r]=a.needsContext?-1<fe(r,this).index(l):fe.find(r,this,null,[l]).length),i[r]&&i.push(a);i.length&&o.push({elem:l,handlers:i})}return s<t.length&&o.push({elem:this,handlers:t.slice(s)}),o},fix:function(e){if(e[fe.expando])return e;var t,n,i,r=e.type,a=e,o=this.fixHooks[r];for(o||(this.fixHooks[r]=o=Qe.test(r)?this.mouseHooks:Je.test(r)?this.keyHooks:{}),i=o.props?this.props.concat(o.props):this.props,e=new fe.Event(a),t=i.length;t--;)e[n=i[t]]=a[n];return e.target||(e.target=a.srcElement||ie),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,o.filter?o.filter(e,a):e},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,r,a=t.button,o=t.fromElement;return null==e.pageX&&null!=t.clientX&&(r=(i=e.target.ownerDocument||ie).documentElement,n=i.body,e.pageX=t.clientX+(r&&r.scrollLeft||n&&n.scrollLeft||0)-(r&&r.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||n&&n.scrollTop||0)-(r&&r.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&o&&(e.relatedTarget=o===e.target?t.toElement:o),e.which||a===undefined||(e.which=1&a?1:2&a?3:4&a?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==p()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===p()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(fe.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return fe.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n){var i=fe.extend(new fe.Event,n,{type:e,isSimulated:!0});fe.event.trigger(i,null,t),i.isDefaultPrevented()&&n.preventDefault()}},fe.removeEvent=ie.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)}:function(e,t,n){var i="on"+t;e.detachEvent&&("undefined"==typeof e[i]&&(e[i]=null),e.detachEvent(i,n))},fe.Event=function(e,t){if(!(this instanceof fe.Event))return new fe.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===undefined&&!1===e.returnValue?h:f):this.type=e,t&&fe.extend(this,t),this.timeStamp=e&&e.timeStamp||fe.now(),this[fe.expando]=!0},fe.Event.prototype={constructor:fe.Event,isDefaultPrevented:f,isPropagationStopped:f,isImmediatePropagationStopped:f,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=h,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=h,e&&!this.isSimulated&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=h,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}}
3,fe.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,a){fe.event.special[e]={delegateType:a,bindType:a,handle:function(e){var t,n=this,i=e.relatedTarget,r=e.handleObj;return i&&(i===n||fe.contains(n,i))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=a),t}}}),de.submit||(fe.event.special.submit={setup:function(){if(fe.nodeName(this,"form"))return!1;fe.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=fe.nodeName(t,"input")||fe.nodeName(t,"button")?fe.prop(t,"form"):undefined;n&&!fe._data(n,"submit")&&(fe.event.add(n,"submit._submit",function(e){e._submitBubble=!0}),fe._data(n,"submit",!0))})},postDispatch:function(e){e._submitBubble&&(delete e._submitBubble,this.parentNode&&!e.isTrigger&&fe.event.simulate("submit",this.parentNode,e))},teardown:function(){if(fe.nodeName(this,"form"))return!1;fe.event.remove(this,"._submit")}}),de.change||(fe.event.special.change={setup:function(){if(Ze.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(fe.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._justChanged=!0)}),fe.event.add(this,"click._change",function(e){this._justChanged&&!e.isTrigger&&(this._justChanged=!1),fe.event.simulate("change",this,e)})),!1;fe.event.add(this,"beforeactivate._change",function(e){var t=e.target;Ze.test(t.nodeName)&&!fe._data(t,"change")&&(fe.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||fe.event.simulate("change",this.parentNode,e)}),fe._data(t,"change",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return fe.event.remove(this,"._change"),!Ze.test(this.nodeName)}}),de.focusin||fe.each({focus:"focusin",blur:"focusout"},function(n,i){var r=function(e){fe.event.simulate(i,e.target,fe.event.fix(e))};fe.event.special[i]={setup:function(){var e=this.ownerDocument||this,t=fe._data(e,i);t||e.addEventListener(n,r,!0),fe._data(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=fe._data(e,i)-1;t?fe._data(e,i,t):(e.removeEventListener(n,r,!0),fe._removeData(e,i))}}}),fe.fn.extend({on:function(e,t,n,i){return x(this,e,t,n,i)},one:function(e,t,n,i){return x(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,fe(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=undefined),!1===n&&(n=f),this.each(function(){fe.event.remove(this,e,n,t)});for(r in e)this.off(r,t,e[r]);return this},trigger:function(e,t){return this.each(function(){fe.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return fe.event.trigger(e,t,n,!0)}});var nt=/ jQuery\d+="(?:null|\d+)"/g,it=new RegExp("<(?:"+Ge+")[\\s/>]","i"),rt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,at=/<script|<style|<link/i,ot=/checked\s*(?:[^=]|=\s*.checked.)/i,st=/^true\/(.*)/,lt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ut=m(ie).appendChild(ie.createElement("div"));fe.extend({htmlPrefilter:function(e){return e.replace(rt,"<$1></$2>")},clone:function(e,t,n){var i,r,a,o,s,l=fe.contains(e.ownerDocument,e);if(de.html5Clone||fe.isXMLDoc(e)||!it.test("<"+e.nodeName+">")?a=e.cloneNode(!0):(ut.innerHTML=e.outerHTML,ut.removeChild(a=ut.firstChild)),!(de.noCloneEvent&&de.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||fe.isXMLDoc(e)))for(i=v(a),s=v(e),o=0;null!=(r=s[o]);++o)i[o]&&M(r,i[o]);if(t)if(n)for(s=s||v(e),i=i||v(a),o=0;null!=(r=s[o]);o++)S(r,i[o]);else S(e,a);return 0<(i=v(a,"script")).length&&y(i,!l&&v(e,"script")),i=s=r=null,a},cleanData:function(e,t){for(var n,i,r,a,o=0,s=fe.expando,l=fe.cache,u=de.attributes,c=fe.event.special;null!=(n=e[o]);o++)if((t||Pe(n))&&(a=(r=n[s])&&l[r])){if(a.events)for(i in a.events)c[i]?fe.event.remove(n,i):fe.removeEvent(n,i,a.handle);l[r]&&(delete l[r],u||"undefined"==typeof n.removeAttribute?n[s]=undefined:n.removeAttribute(s),ne.push(r))}}}),fe.fn.extend({domManip:T,detach:function(e){return D(this,e,!0)},remove:function(e){return D(this,e)},text:function(e){return Be(this,function(e){return e===undefined?fe.text(this):this.empty().append((this[0]&&this[0].ownerDocument||ie).createTextNode(e))},null,e,arguments.length)},append:function(){return T(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||_(this,e).appendChild(e)})},prepend:function(){return T(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=_(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return T(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return T(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&fe.cleanData(v(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&fe.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return fe.clone(this,e,t)})},html:function(e){return Be(this,function(e){var t=this[0]||{},n=0,i=this.length;if(e===undefined)return 1===t.nodeType?t.innerHTML.replace(nt,""):undefined;if("string"==typeof e&&!at.test(e)&&(de.htmlSerialize||!it.test(e))&&(de.leadingWhitespace||!Ue.test(e))&&!$e[(Ve.exec(e)||["",""])[1].toLowerCase()]){e=fe.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(fe.cleanData(v(t,!1)),t.innerHTML=e);t=0}catch(r){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return T(this,arguments,function(e){var t=this.parentNode;fe.inArray(this,n)<0&&(fe.cleanData(v(this)),t&&t.replaceChild(e,this))},n)}}),fe.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,o){fe.fn[e]=function(e){for(var t,n=0,i=[],r=fe(e),a=r.length-1;n<=a;n++)t=n===a?this:this.clone(!0),fe(r[n])[o](t),oe.apply(i,t.get());return this.pushStack(i)}});var ct,dt={HTML:"block",BODY:"block"},ht=/^margin/,ft=new RegExp("^("+Re+")(?!px)[a-z%]+$","i"),pt=function(e,t,n,i){var r,a,o={};for(a in t)o[a]=e.style[a],e.style[a]=t[a];for(a in r=n.apply(e,i||[]),t)e.style[a]=o[a];return r},gt=ie.documentElement;!function(){function e(){var e,t,n=ie.documentElement;n.appendChild(u),c.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%",i=a=l=!1,r=s=!0,k.getComputedStyle&&(t=k.getComputedStyle(c),i="1%"!==(t||{}).top,l="2px"===(t||{}).marginLeft,a="4px"===(t||{width:"4px"}).width,c.style.marginRight="50%",r="4px"===(t||{marginRight:"4px"}).marginRight,(e=c.appendChild(ie.createElement("div"))).style.cssText=c.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",c.style.width="1px",s=!parseFloat((k.getComputedStyle(e)||{}).marginRight),c.removeChild(e)),c.style.display="none",(o=0===c.getClientRects().length)&&(c.style.display="",c.innerHTML="<table><tr><td></td><td>t</td></tr></table>",c.childNodes[0].style.borderCollapse="separate",(e=c.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(o=0===e[0].offsetHeight)&&(e[0].style.display="",e[1].style.display="none",o=0===e[0].offsetHeight)),n.removeChild(u)}var i,r,a,o,s,l,u=ie.createElement("div"),c=ie.createElement("div");c.style&&(c.style.cssText="float:left;opacity:.5",de.opacity="0.5"===c.style.opacity,de.cssFloat=!!c.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",de.clearCloneStyle="content-box"===c.style.backgroundClip,(u=ie.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",c.innerHTML="",u.appendChild(c),de.boxSizing=""===c.style.boxSizing||""===c.style.MozBoxSizing||""===c.style.WebkitBoxSizing,fe.extend(de,{reliableHiddenOffsets:function(){return null==i&&e(
3),o},boxSizingReliable:function(){return null==i&&e(),a},pixelMarginRight:function(){return null==i&&e(),r},pixelPosition:function(){return null==i&&e(),i},reliableMarginRight:function(){return null==i&&e(),s},reliableMarginLeft:function(){return null==i&&e(),l}}))}();var mt,vt,yt=/^(top|right|bottom|left)$/;k.getComputedStyle?(mt=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=k),t.getComputedStyle(e)},vt=function(e,t,n){var i,r,a,o,s=e.style;return""!==(o=(n=n||mt(e))?n.getPropertyValue(t)||n[t]:undefined)&&o!==undefined||fe.contains(e.ownerDocument,e)||(o=fe.style(e,t)),n&&!de.pixelMarginRight()&&ft.test(o)&&ht.test(t)&&(i=s.width,r=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=i,s.minWidth=r,s.maxWidth=a),o===undefined?o:o+""}):gt.currentStyle&&(mt=function(e){return e.currentStyle},vt=function(e,t,n){var i,r,a,o,s=e.style;return null==(o=(n=n||mt(e))?n[t]:undefined)&&s&&s[t]&&(o=s[t]),ft.test(o)&&!yt.test(t)&&(i=s.left,(a=(r=e.runtimeStyle)&&r.left)&&(r.left=e.currentStyle.left),s.left="fontSize"===t?"1em":o,o=s.pixelLeft+"px",s.left=i,a&&(r.left=a)),o===undefined?o:o+""||"auto"});var bt=/alpha\([^)]*\)/i,xt=/opacity\s*=\s*([^)]*)/i,_t=/^(none|table(?!-c[ea]).+)/,wt=new RegExp("^("+Re+")(.*)$","i"),kt={position:"absolute",visibility:"hidden",display:"block"},Ct={letterSpacing:"0",fontWeight:"400"},St=["Webkit","O","Moz","ms"],Mt=ie.createElement("div").style;fe.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=vt(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":de.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,a,o,s=fe.camelCase(t),l=e.style;if(t=fe.cssProps[s]||(fe.cssProps[s]=P(s)||s),o=fe.cssHooks[t]||fe.cssHooks[s],n===undefined)return o&&"get"in o&&(r=o.get(e,!1,i))!==undefined?r:l[t];if("string"===(a=typeof n)&&(r=je.exec(n))&&r[1]&&(n=d(e,t,r),a="number"),null!=n&&n==n&&("number"===a&&(n+=r&&r[3]||(fe.cssNumber[s]?"":"px")),de.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(o&&"set"in o&&(n=o.set(e,n,i))===undefined)))try{l[t]=n}catch(u){}}},css:function(e,t,n,i){var r,a,o,s=fe.camelCase(t);return t=fe.cssProps[s]||(fe.cssProps[s]=P(s)||s),(o=fe.cssHooks[t]||fe.cssHooks[s])&&"get"in o&&(a=o.get(e,!0,n)),a===undefined&&(a=vt(e,t,i)),"normal"===a&&t in Ct&&(a=Ct[t]),""===n||n?(r=parseFloat(a),!0===n||isFinite(r)?r||0:a):a}}),fe.each(["height","width"],function(e,r){fe.cssHooks[r]={get:function(e,t,n){if(t)return _t.test(fe.css(e,"display"))&&0===e.offsetWidth?pt(e,kt,function(){return F(e,r,n)}):F(e,r,n)},set:function(e,t,n){var i=n&&mt(e);return O(e,t,n?N(e,r,n,de.boxSizing&&"border-box"===fe.css(e,"boxSizing",!1,i),i):0)}}}),de.opacity||(fe.cssHooks.opacity={get:function(e,t){return xt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,r=fe.isNumeric(t)?"alpha(opacity="+100*t+")":"",a=i&&i.filter||n.filter||"";((n.zoom=1)<=t||""===t)&&""===fe.trim(a.replace(bt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=bt.test(a)?a.replace(bt,r):a+" "+r)}}),fe.cssHooks.marginRight=E(de.reliableMarginRight,function(e,t){if(t)return pt(e,{display:"inline-block"},vt,[e,"marginRight"])}),fe.cssHooks.marginLeft=E(de.reliableMarginLeft,function(e,t){if(t)return(parseFloat(vt(e,"marginLeft"))||(fe.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-pt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}),fe.each({margin:"",padding:"",border:"Width"},function(r,a){fe.cssHooks[r+a]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[r+He[t]+a]=i[t]||i[t-2]||i[0];return n}},ht.test(r)||(fe.cssHooks[r+a].set=O)}),fe.fn.extend({css:function(e,t){return Be(this,function(e,t,n){var i,r,a={},o=0;if(fe.isArray(t)){for(i=mt(e),r=t.length;o<r;o++)a[t[o]]=fe.css(e,t[o],!1,i);return a}return n!==undefined?fe.style(e,t,n):fe.css(e,t)},e,t,1<arguments.length)},show:function(){return I(this,!0)},hide:function(){return I(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){We(this)?fe(this).show():fe(this).hide()})}}),(fe.Tween=z).prototype={constructor:z,init:function(e,t,n,i,r,a){this.elem=e,this.prop=n,this.easing=r||fe.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=a||(fe.cssNumber[n]?"":"px")},cur:function(){var e=z.propHooks[this.prop];return e&&e.get?e.get(this):z.propHooks._default.get(this)},run:function(e){var t,n=z.propHooks[this.prop];return this.options.duration?this.pos=t=fe.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):z.propHooks._default.set(this),this}},z.prototype.init.prototype=z.prototype,z.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=fe.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){fe.fx.step[e.prop]?fe.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[fe.cssProps[e.prop]]&&!fe.cssHooks[e.prop]?e.elem[e.prop]=e.now:fe.style(e.elem,e.prop,e.now+e.unit)}}},z.propHooks.scrollTop=z.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},fe.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},fe.fx=z.prototype.init,fe.fx.step={};var Tt,Dt,At,Lt,Et,Pt,It,Ot=/^(?:toggle|show|hide)$/,Nt=/queueHooks$/;fe.Animation=fe.extend(Y,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return d(n.elem,e,je.exec(t),n),n}]},tweener:function(e,t){fe.isFunction(e)?(t=e,e=["*"]):e=e.match(Le);for(var n,i=0,r=e.length;i<r;i++)n=e[i],Y.tweeners[n]=Y.tweeners[n]||[],Y.tweeners[n].unshift(t)},prefilters:[W],prefilter:function(e,t){t?Y.prefilters.unshift(e):Y.prefilters.push(e)}}),fe.speed=function(e,t,n){var i=e&&"object"==typeof e?fe.extend({},e):{complete:n||!n&&t||fe.isFunction(e)&&e,duration:e,easing:n&&t||t&&!fe.isFunction(t)&&t};return i.duration=fe.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in fe.fx.speeds?fe.fx.speeds[i.duration]:fe.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){fe.isFunction(i.old)&&i.old.call(this),i.queue&&fe.dequeue(this,i.queue)},i},fe.fn.extend({fadeTo:function(e,t,n,i){return this.filter(We).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){var r=fe.isEmptyObject(t),a=fe.speed(e,n,i),o=function(){var e=Y(this,fe.extend({},t),a);(r||fe._data(this,"finish"))&&e.stop(!0)};return o.finish=o,r||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(r,e,a){var o=function(e){var t=e.stop;delete e.stop,t(a)};return"string"!=typeof r&&(a=e,e=r,r=undefined),e&&!1!==r&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",n=fe.timers,i=fe._data(this);if(t)i[t]&&i[t].stop&&o(i[t]);else for(t in i)i[t]&&i[t].stop&&Nt.test(t)&&o(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=r&&n[t].queue!==r||(n[t].anim.stop(a),e=!1,n.splice(t,1)
3);!e&&a||fe.dequeue(this,r)})},finish:function(o){return!1!==o&&(o=o||"fx"),this.each(function(){var e,t=fe._data(this),n=t[o+"queue"],i=t[o+"queueHooks"],r=fe.timers,a=n?n.length:0;for(t.finish=!0,fe.queue(this,o,[]),i&&i.stop&&i.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===o&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<a;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),fe.each(["toggle","show","hide"],function(e,i){var r=fe.fn[i];fe.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(j(i,!0),e,t,n)}}),fe.each({slideDown:j("show"),slideUp:j("hide"),slideToggle:j("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){fe.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),fe.timers=[],fe.fx.tick=function(){var e,t=fe.timers,n=0;for(Tt=fe.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||fe.fx.stop(),Tt=undefined},fe.fx.timer=function(e){fe.timers.push(e),e()?fe.fx.start():fe.timers.pop()},fe.fx.interval=13,fe.fx.start=function(){Dt||(Dt=k.setInterval(fe.fx.tick,fe.fx.interval))},fe.fx.stop=function(){k.clearInterval(Dt),Dt=null},fe.fx.speeds={slow:600,fast:200,_default:400},fe.fn.delay=function(i,e){return i=fe.fx&&fe.fx.speeds[i]||i,e=e||"fx",this.queue(e,function(e,t){var n=k.setTimeout(e,i);t.stop=function(){k.clearTimeout(n)}})},Lt=ie.createElement("input"),Et=ie.createElement("div"),Pt=ie.createElement("select"),It=Pt.appendChild(ie.createElement("option")),(Et=ie.createElement("div")).setAttribute("className","t"),Et.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",At=Et.getElementsByTagName("a")[0],Lt.setAttribute("type","checkbox"),Et.appendChild(Lt),(At=Et.getElementsByTagName("a")[0]).style.cssText="top:1px",de.getSetAttribute="t"!==Et.className,de.style=/top/.test(At.getAttribute("style")),de.hrefNormalized="/a"===At.getAttribute("href"),de.checkOn=!!Lt.value,de.optSelected=It.
3selected,de.enctype=!!ie.createElement("form").enctype,Pt.disabled=!0,de.optDisabled=!It.disabled,(Lt=ie.createElement("input")).setAttribute("value",""),de.input=""===Lt.getAttribute("value"),Lt.value="t",Lt.setAttribute("type","radio"),de.radioValue="t"===Lt.value;var Ft=/\r/g,zt=/[\x20\t\r\n\f]+/g;fe.fn.extend({val:function(n){var i,e,r,t=this[0];return arguments.length?(r=fe.isFunction(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=r?n.call(this,e,fe(this).val()):n)?t="":"number"==typeof t?t+="":fe.isArray(t)&&(t=fe.map(t,function(e){return null==e?"":e+""})),(i=fe.valHooks[this.type]||fe.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&i.set(this,t,"value")!==undefined||(this.value=t))})):t?(i=fe.valHooks[t.type]||fe.valHooks[t.nodeName.toLowerCase()])&&"get"in i&&(e=i.get(t,"value"))!==undefined?e:"string"==typeof(e=t.value)?e.replace(Ft,""):null==e?"":e:void 0}}),fe.extend({valHooks:{option:{get:function(e){var t=fe.find.attr(e,"value");return null!=t?t:fe.trim(fe.text(e)).replace(zt," ")}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,a="select-one"===e.type||r<0,o=a?null:[],s=a?r+1:i.length,l=r<0?s:a?r:0;l<s;l++)if(((n=i[l]).selected||l===r)&&(de.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!fe.nodeName(n.parentNode,"optgroup"))){if(t=fe(n).val(),a)return t;o.push(t)}return o},set:function(e,t){for(var n,i,r=e.options,a=fe.makeArray(t),o=r.length;o--;)if(i=r[o],-1<fe.inArray(fe.valHooks.option.get(i),a))try{i.selected=n=!0}catch(s){i.scrollHeight}else i.selected=!1;return n||(e.selectedIndex=-1),r}}}}),fe.each(["radio","checkbox"],function(){fe.valHooks[this]={set:function(e,t){if(fe.isArray(t))return e.checked=-1<fe.inArray(fe(e).val(),t)}},de.checkOn||(fe.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Rt,jt,Ht=fe.expr.attrHandle,Wt=/^(?:checked|selected)$/i,Bt=de.getSetAttribute,Yt=de.input;fe.fn.extend({attr:function(e,t){return Be(this,fe.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){fe.removeAttr(this,e)})}}),fe.extend({attr:function(e,t,n){var i,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return"undefined"==typeof e.getAttribute?fe.prop(e,t,n):(1===a&&fe.isXMLDoc(e)||(t=t.toLowerCase(),r=fe.attrHooks[t]||(fe.expr.match.bool.test(t)?jt:Rt)),n!==undefined?null===n?void fe.removeAttr(e,t):r&&"set"in r&&(i=r.set(e,n,t))!==undefined?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=fe.find.attr(e,t))?undefined:i)},attrHooks:{type:{set:function(e,t){if(!de.radioValue&&"radio"===t&&fe.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i,r=0,a=t&&t.match(Le);if(a&&1===e.nodeType)for(;n=a[r++];)i=fe.propFix[n]||n,fe.expr.match.bool.test(n)?Yt&&Bt||!Wt.test(n)?e[i]=!1:e[fe.camelCase("default-"+n)]=e[i]=!1:fe.attr(e,n,""),e.removeAttribute(Bt?n:i)}}),jt={set:function(e,t,n){return!1===t?fe.removeAttr(e,n):Yt&&Bt||!Wt.test(n)?e.setAttribute(!Bt&&fe.propFix[n]||n,n):e[fe.camelCase("default-"+n)]=e[n]=!0,n}},fe.each(fe.expr.match.bool.source.match(/\w+/g),function(e,t){var a=Ht[t]||fe.find.attr;Yt&&Bt||!Wt.test(t)?Ht[t]=function(e,t,n){var i,r;return n||(r=Ht[t],Ht[t]=i,i=null!=a(e,t,n)?t.toLowerCase():null,Ht[t]=r),i}:Ht[t]=function(e,t,n){if(!n)return e[fe.camelCase("default-"+t)]?t.toLowerCase():null}}),Yt&&Bt||(fe.attrHooks.value={set:function(e,t,n){if(!fe.nodeName(e,"input"))return Rt&&Rt.set(e,t,n);e.defaultValue=t}}),Bt||(Rt={set:function(e,t,n){var i=e.getAttributeNode(n);if(i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n))return t}},Ht.id=Ht.name=Ht.coords=function(e,t,n){var i;if(!n)return(i=e.getAttributeNode(t))&&""!==i.value?i.value:null},fe.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:Rt.set},fe.attrHooks.contenteditable={set:function(e,t,n){Rt.set(e,""!==t&&t,n)}},fe.each(["width","height"],function(e,n){fe.attrHooks[n]={set:function(e,t){if(""===t)return e.setAttribute(n,"auto"),t}}})),de.style||(fe.attrHooks.style={get:function(e){return e.style.cssText||undefined},set:function(e,t){return e.style.cssText=t+""}});var Vt=/^(?:input|select|textarea|button|object)$/i,qt=/^(?:a|area)$/i;fe.fn.extend({prop:function(e,t){return Be(this,fe.prop,e,t,1<arguments.length)},removeProp:function(t){return t=fe.propFix[t]||t,this.each(function(){try{this[t]=undefined,delete this[t]}catch(e){}})}}),fe.extend({prop:function(e,t,n){var i,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&fe.isXMLDoc(e)||(t=fe.propFix[t]||t,r=fe.propHooks[t]),n!==undefined?r&&"set"in r&&(i=r.set(e,n,t))!==undefined?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=fe.find.attr(e,"tabindex");return t?parseInt(t,10):Vt.test(e.nodeName)||qt.test(e.nodeName)&&e.href?
30:-1}}},propFix:{"for":"htmlFor","class":"className"}}),de.hrefNormalized||fe.each(["href","src"],function(e,t){fe.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),de.optSelected||(fe.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),fe.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){fe.propFix[this.toLowerCase()]=this}),de.enctype||(fe.propFix.enctype="encoding");var Ut=/[\t\r\n\f]/g;fe.fn.extend({addClass:function(t){var e,n,i,r,a,o,s,l=0;if(fe.isFunction(t))return this.each(function(e){fe(this).addClass(t.call(this,e,V(this)))});if("string"==typeof t&&t)for(e=t.match(Le)||[];n=this[l++];)if(r=V(n),i=1===n.nodeType&&(" "+r+" ").replace(Ut," ")){for(o=0;a=e[o++];)i.indexOf(" "+a+" ")<0&&(i+=a+" ");r!==(s=fe.trim(i))&&fe.attr(n,"class",s)}return this},removeClass:function(t){var e,n,i,r,a,o,s,l=0;if(fe.isFunction(t))return this.each(function(e){fe(this).removeClass(t.call(this,e,V(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(Le)||[];n=this[l++];)if(r=V(n),i=1===n.nodeType&&(" "+r+" ").replace(Ut," ")){for(o=0;a=e[o++];)for(;-1<i.indexOf(" "+a+" ");)i=i.replace(" "+a+" "," ");r!==(s=fe.trim(i))&&fe.attr(n,"class",s)}return this},toggleClass:function(r,t){var a=typeof r;return"boolean"==typeof t&&"string"===a?t?this.addClass(r):this.removeClass(r):fe.isFunction(r)?this.each(function(e){fe(this).toggleClass(r.call(this,e,V(this),t),t)}):this.each(function(){var e,t,n,i;if("string"===a)for(t=0,n=fe(this),i=r.match(Le)||[];e=i[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else r!==undefined&&"boolean"!==a||((e=V(this))&&fe._data(this,"__className__",e),fe.attr(this,"class",e||!1===r?"":fe._data(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+V(n)+" ").replace(Ut," ").indexOf(t))return!0;return!1}}),fe.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,n){fe.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),fe.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var Gt=k.location,$t=fe.now(),Xt=/\?/,Kt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;fe.parseJSON=function(e){if(k.JSON&&k.JSON.parse)return k.JSON.parse(e+"");var r,a=null,t=fe.trim(e+"");return t&&!fe.trim(t.replace(Kt,function(e,t,n,i){return r&&t&&(a=0),0===a?e:(r=n||t,a+=!i-!n,"")}))?Function("return "+t)():fe.error("Invalid JSON: "+e)},fe.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{k.DOMParser?t=(new k.DOMParser).parseFromString(e,"text/xml"):((t=new k.ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e))}catch(n){t=undefined}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||fe.error("Invalid XML: "+e),t};var Zt=/#.*$/,Jt=/([?&])_=[^&]*/,Qt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,en=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,tn=/^(?:GET|HEAD)$/,nn=/^\/\//,rn=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,an={},on={},sn="*/".concat("*"),ln=Gt.href,un=rn.exec(ln.toLowerCase())||[];fe.extend({active:0,lastModified:{},etag:{}, 4ajaxSettings:{url:ln,type:"GET",isLocal:en.test(un[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":sn,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":fe.parseJSON,"text xml":fe.parseXML}
4,flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?G(G(e,fe.ajaxSettings),t):G(fe.ajaxSettings,e)},ajaxPrefilter:q(an),ajaxTransport:q(on),ajax:function(e,t){function n(e,t,n,i){var r,a,o,s,l,u=t;2!==_&&(_=2,h&&k.clearTimeout(h),p=undefined,d=i||"",w.readyState=0<e?4:0,r=200<=e&&e<300||304===e,n&&(s=$(g,w,n)),s=X(g,s,w,r),r?(g.ifModified&&((l=w.getResponseHeader("Last-Modified"))&&(fe.lastModified[c]=l),(l=w.getResponseHeader("etag"))&&(fe.etag[c]=l)),204===e||"HEAD"===g.type?u="nocontent":304===e?u="notmodified":(u=s.state,a=s.data,r=!(o=s.error))):(o=u,!e&&u||(u="error",e<0&&(e=0))),w.status=e,w.statusText=(t||u)+"",r?y.resolveWith(m,[a,u,w]):y.rejectWith(m,[w,u,o]),w.statusCode(x),x=undefined,f&&v.trigger(r?"ajaxSuccess":"ajaxError",[w,g,r?a:o]),b.fireWith(m,[w,u]),f&&(v.trigger("ajaxComplete",[w,g]),--fe.active||fe.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=undefined),t=t||{};var i,r,c,d,h,f,p,a,g=fe.ajaxSetup({},t),m=g.context||g,v=g.context&&(m.nodeType||m.jquery)?fe(m):fe.event,y=fe.Deferred(),b=fe.Callbacks("once memory"),x=g.statusCode||{},o={},s={},_=0,l="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===_){if(!a)for(a={};t=Qt.exec(d);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===_?d:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return _||(e=s[n]=s[n]||e,o[e]=t),this},overrideMimeType:function(e){return _||(g.mimeType=e),this},statusCode:function(e){var t;if(e)if(_<2)for(t in e)x[t]=[x[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||l;return p&&p.abort(t),n(0,t),this}};if(y.promise(w).complete=b.add,w.success=w.done,w.error=w.fail,g.url=((e||g.url||ln)+"").replace(Zt,"").replace(nn,un[1]+"//"),g.type=t.method||t.type||g.method||g.type,g.dataTypes=fe.trim(g.dataType||"*").toLowerCase().match(Le)||[""],null==g.crossDomain&&(i=rn.exec(g.url.toLowerCase()),g.crossDomain=!(!i||i[1]===un[1]&&i[2]===un[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(un[3]||("http:"===un[1]?"80":"443")))),g.data&&g.processData&&"string"!=typeof g.data&&(g.data=fe.param(g.data,g.traditional)),U(an,g,t,w),2===_)return w;for(r in(f=fe.event&&g.global)&&0==fe.active++&&fe.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!tn.test(g.type),c=g.url,g.hasContent||(g.data&&(c=g.url+=(Xt.test(c)?"&":"?")+g.data,delete g.data),!1===g.cache&&(g.url=Jt.test(c)?c.replace(Jt,"$1_="+$t++):c+(Xt.test(c)?"&":"?")+"_="+$t++)),g.ifModified&&(fe.lastModified[c]&&w.setRequestHeader("If-Modified-Since",fe.lastModified[c]),fe.etag[c]&&w.setRequestHeader("If-None-Match",fe.etag[c])),(g.data&&g.hasContent&&!1!==g.contentType||t.contentType)&&w.setRequestHeader("Content-Type",g.contentType),w.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+sn+"; q=0.01":""):g.accepts["*"]),g.headers)w.setRequestHeader(r,g.headers[r]);if(g.beforeSend&&(!1===g.beforeSend.call(m,w,g)||2===_))return w.abort();for(r in l="abort",{success:1,error:1,complete:1})w[r](g[r]);if(p=U(on,g,t,w)){if(w.readyState=1,f&&v.trigger("ajaxSend",[w,g]),2===_)return w;g.async&&0<g.timeout&&(h=k.setTimeout(function(){w.abort("timeout")},g.timeout));try{_=1,p.send(o,n)}catch(u){if(!(_<2))throw u;n(-1,u)}}else n(-1,"No Transport");return w},getJSON:function(e,t,n){return fe.get(e,t,n,"json")},getScript:function(e,t){return fe.get(e,undefined,t,"script")}}),fe.each(["get","post"],function(e,r){fe[r]=function(e,t,n,i){return fe.isFunction(t)&&(i=i||n,n=t,t=undefined),fe.ajax(fe.extend({url:e,type:r,dataType:i,data:t,success:n},fe.isPlainObject(e)&&e))}}),fe._evalUrl=function(e){return fe.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},fe.fn.extend({wrapAll:function(t){if(fe.isFunction(t))return this.each(function(e){fe(this).wrapAll(t.call(this,e))});if(this[0]){var e=fe(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(n){return fe.isFunction(n)?this.each(function(e){fe(this).wrapInner(n.call(this,e))}):this.each(function(){var e=fe(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=fe.isFunction(t);return this.each(function(e){fe(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){fe.nodeName(this,"body")||fe(this).replaceWith(this.childNodes)}).end()}}),fe.expr.filters.hidden=function(e){return de.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:Z(e)},fe.expr.filters.visible=function(e){return!fe.expr.filters.hidden(e)};var cn=/%20/g,dn=/\[\]$/,hn=/\r?\n/g,fn=/^(?:submit|button|image|reset|file)$/i,pn=/^(?:input|select|textarea|keygen)/i;fe.param=function(e,t){var n,i=[],r=function(e,t){t=fe.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(t===undefined&&(t=fe.ajaxSettings&&fe.ajaxSettings.traditional),fe.isArray(e)||e.jquery&&!fe.isPlainObject(e))fe.each(e,function(){r(this.name,this.value)});else for(n in e)J(n,e[n],t,r);return i.join("&").replace(cn,"+")},fe.fn.extend({serialize:function(){return fe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=fe.prop(this,"elements");return e?fe.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!fe(this).is(":disabled")&&pn.test(this.nodeName)&&!fn.test(e)&&(this.checked||!Ye.test(e))}).map(function(e,t){var n=fe(this).val();return null==n?null:fe.isArray(n)?fe.map(n,function(e){return{name:t.name,value:e.replace(hn,"\r\n")}}):{name:t.name,value:n.replace(hn,"\r\n")}}).get()}}),fe.ajaxSettings.xhr=k.ActiveXObject!==undefined?function(){return this.isLocal?ee():8<ie.documentMode?Q():/^(get|post|head|put|delete|options)$/i.test(this.t
4ype)&&Q()||ee()}:Q;var gn=0,mn={},vn=fe.ajaxSettings.xhr();k.attachEvent&&k.attachEvent("onunload",function(){for(var e in mn)mn[e](undefined,!0)}),de.cors=!!vn&&"withCredentials"in vn,(vn=de.ajax=!!vn)&&fe.ajaxTransport(function(u){var c;if(!u.crossDomain||de.cors)return{send:function(e,o){var t,s=u.xhr(),l=++gn;if(s.open(u.type,u.url,u.async,u.username,u.password),u.xhrFields)for(t in u.xhrFields)s[t]=u.xhrFields[t];for(t in u.mimeType&&s.overrideMimeType&&s.overrideMimeType(u.mimeType),u.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)e[t]!==undefined&&s.setRequestHeader(t,e[t]+"");s.send(u.hasContent&&u.data||null),c=function(e,t){var n,i,r;if(c&&(t||4===s.readyState))if(delete mn[l],c=undefined,s.onreadystatechange=fe.noop,t)4!==s.readyState&&s.abort();else{r={},n=s.status,"string"==typeof s.responseText&&(r.text=s.responseText);try{i=s.statusText}catch(a){i=""}n||!u.isLocal||u.crossDomain?1223===n&&(n=204):n=r.text?200:404}r&&o(n,i,r,s.getAllResponseHeaders())},u.async?4===s.readyState?k.setTimeout(c):s.onreadystatechange=mn[l]=c:c()},abort:function(){c&&c(undefined,!0)}}}),fe.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return fe.globalEval(e),e}}}),fe.ajaxPrefilter("script",function(e){e.cache===undefined&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),fe.ajaxTransport("script",function(t){if(t.crossDomain){var i,r=ie.head||fe("head")[0]||ie.documentElement;return{send:function(e,n){(i=ie.createElement("script")).async=!0,t.scriptCharset&&(i.charset=t.scriptCharset),i.src=t.url,i.onload=i.onreadystatechange=function(e,t){(t||!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,i.parentNode&&i.parentNode.removeChild(i),i=null,t||n(200,"success"))},r.insertBefore(i,r.firstChild)},abort:function(){i&&i.onload(undefined,!0)}}}});var yn=[],bn=/(=)\?(?=&|$)|\?\?/;fe.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=yn.pop()||fe.expando+"_"+$t++;return this[e]=!0,e}}),fe.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,a,o=!1!==e.jsonp&&(bn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&bn.test(e.data)&&"data");if(o||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=fe.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(bn,"$1"+i):!1!==e.jsonp&&(e.url+=(Xt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||fe.error(i+" was not called"),a[0]},e.dataTypes[0]="json",r=k[i],k[i]=function(){a=arguments},n.always(function(){r===undefined?fe(k).removeProp(i):k[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,yn.push(i)),a&&fe.isFunction(r)&&r(a[0]),a=r=undefined}),"script"}),fe.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||ie;var i=we.exec(e),r=!n&&[];return i?[t.createElement(i[1])]:(i=g([e],t,r),r&&r.length&&fe(r).remove(),fe.merge([],i.childNodes))};var xn=fe.fn.load;fe.fn.load=function(e,t,n){if("string"!=typeof e&&xn)return xn.apply(this,arguments);var i,r,a,o=this,s=e.indexOf(" ");return-1<s&&(i=fe.trim(e.slice(s,e.length)),e=e.slice(0,s)),fe.isFunction(t)?(n=t,t=undefined):t&&"object"==typeof t&&(r="POST"),0<o.length&&fe.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){a=arguments,o.html(i?fe("<div>").append(fe.parseHTML(e)).find(i):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},fe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){fe.fn[t]=function(e){return this.on(t,e)}}),fe.expr.filters.animated=function(t){return fe.grep(fe.timers,function(e){return t===e.elem}).length},fe.offset={setOffset:function(e,t,n){var i,r,a,o,s,l,u=fe.css(e,"position"),c=fe(e),d={};"static"===u&&(e.style.position="relative"),s=c.offset(),a=fe.css(e,"top"),l=fe.css(e,"left"),("absolute"===u||"fixed"===u)&&-1<fe.inArray("auto",[a,l])?(o=(i=c.position()).top,r=i.left):(o=parseFloat(a)||0,r=parseFloat(l)||0),fe.isFunction(t)&&(t=t.call(e,n,fe.extend({},s))),null!=t.top&&(d.top=t.top-s.top+o),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):c.css(d)}},fe.fn.extend({offset:function(t){if(arguments.length)return t===undefined?this:this.each(function(e){fe.offset.setOffset(this,t,e)});var e,n,i={top:0,left:0}
4,r=this[0],a=r&&r.ownerDocument;return a?(e=a.documentElement,fe.contains(e,r)?("undefined"!=typeof r.getBoundingClientRect&&(i=r.getBoundingClientRect()),n=te(a),{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 e,t,n={top:0,left:0},i=this[0];return"fixed"===fe.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),fe.nodeName(e[0],"html")||(n=e.offset()),n.top+=fe.css(e[0],"borderTopWidth",!0),n.left+=fe.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-fe.css(i,"marginTop",!0),left:t.left-n.left-fe.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&!fe.nodeName(e,"html")&&"static"===fe.css(e,"position");)e=e.offsetParent;return e||gt})}}),fe.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var a=/Y/.test(r);fe.fn[t]=function(e){return Be(this,function(e,t,n){var i=te(e);if(n===undefined)return i?r in i?i[r]:i.document.documentElement[t]:e[t];i?i.scrollTo(a?fe(i).scrollLeft():n,a?n:fe(i).scrollTop()):e[t]=n},t,e,arguments.length,null)}}),fe.each(["top","left"],function(e,n){fe.cssHooks[n]=E(de.pixelPosition,function(e,t){if(t)return t=vt(e,n),ft.test(t)?fe(e).position()[n]+"px":t})}),fe.each({Height:"height",Width:"width"},function(a,o){fe.each({padding:"inner"+a,content:o,"":"outer"+a},function(i,e){fe.fn[e]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return Be(this,function(e,t,n){var i;return fe.isWindow(e)?e.document.documentElement["client"+a]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+a],i["scroll"+a],e.body["offset"+a],i["offset"+a],i["client"+a])):n===undefined?fe.css(e,t,r):fe.style(e,t,n,r)},o,n?e:undefined,n,null)}})}),fe.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),fe.fn.size=function(){return this.length},fe.fn.andSelf=fe.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return fe});var _n=k.jQuery,wn=k.$;return fe.noConflict=function(e){return k.$===fe&&(k.$=wn),e&&k.jQuery===fe&&(k.jQuery=_n),fe},e||(k.jQuery=k.$=fe),fe}),function(){var e=function(me,ve,ye){"use strict";return function(){var le=[["Afghanistan (\u202b\u0627\u0641\u063a\u0627\u0646\u0633\u062a\u0627\u0646\u202c\u200e)","af","93"],["Albania (Shqip\xebri)","al","355"],["Algeria (\u202b\u0627\u0644\u062c\u0632\u0627\u0626\u0631\u202c\u200e)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (\u0540\u0561\u0575\u0561\u057d\u057f\u0561\u0576)","am","374"],["Aruba","aw","297"],["Australia","au","61",0],["Austria (\xd6sterreich)","at","43"],["Azerbaijan (Az\u0259rbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (\u202b\u0627\u0644\u0628\u062d\u0631\u064a\u0646\u202c\u200e)","bh","973"],["Bangladesh (\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u044c)","by","375"],["Belgium (Belgi\xeb)","be","32"],["Belize","bz","501"],["Benin (B\xe9nin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (\u0f60\u0f56\u0fb2\u0f74\u0f42)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (\u0411\u043e\u0441\u043d\u0430 \u0438 \u0425\u0435\u0440\u0446\u0435\u0433\u043e\u0432\u0438\u043d\u0430)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (\u0411\u044a\u043b\u0433\u0430\u0440\u0438\u044f)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (\u1780\u1798\u17d2\u1796\u17bb\u1787\u17b6)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (R\xe9publique centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (\u4e2d\u56fd)","cn","86"],["Christmas Island","cx","61",2],["Cocos (Keeling) Islands","cc","61",1],["Colombia","co","57"],["Comoros (\u202b\u062c\u0632\u0631 \u0627\u0644\u0642\u0645\u0631\u202c\u200e)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["C\xf4te d\u2019Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Cura\xe7ao","cw","599",0],["Cyprus (\u039a\u03cd\u03c0\u03c1\u03bf\u03c2)","cy","357"],["Czech Republic (\u010cesk\xe1 republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]
4],["Dominican Republic (Rep\xfablica Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (\u202b\u0645\u0635\u0631\u202c\u200e)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (F\xf8royar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane fran\xe7aise)","gf","594"],["French Polynesia (Polyn\xe9sie fran\xe7aise)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (\u10e1\u10d0\u10e5\u10d0\u10e0\u10d7\u10d5\u10d4\u10da\u10dd)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (\u0395\u03bb\u03bb\u03ac\u03b4\u03b1)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guin\xe9e)","gn","224"],["Guinea-Bissau (Guin\xe9 Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (\u9999\u6e2f)","hk","852"],["Hungary (Magyarorsz\xe1g)","hu","36"],["Iceland (\xcdsland)","is","354"],["India (\u092d\u093e\u0930\u0924)","in","91"],["Indonesia","id","62"],["Iran (\u202b\u0627\u06cc\u0631\u0627\u0646\u202c\u200e)","ir","98"],["Iraq (\u202b\u0627\u0644\u0639\u0631\u0627\u0642\u202c\u200e)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (\u202b\u05d9\u05e9\u05e8\u05d0\u05dc\u202c\u200e)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (\u65e5\u672c)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (\u202b\u0627\u0644\u0623\u0631\u062f\u0646\u202c\u200e)","jo","962"],["Kazakhstan (\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (\u202b\u0627\u0644\u0643\u0648\u064a\u062a\u202c\u200e)","kw","965"],["Kyrgyzstan (\u041a\u044b\u0440\u0433\u044b\u0437\u0441\u0442\u0430\u043d)","kg","996"],["Laos (\u0ea5\u0eb2\u0ea7)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (\u202b\u0644\u0628\u0646\u0627\u0646\u202c\u200e)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (\u202b\u0644\u064a\u0628\u064a\u0627\u202c\u200e)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (\u6fb3\u9580)","mo","853"],["Macedonia (FYROM) (\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0438\u0458\u0430)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (\u202b\u0645\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u0627\u202c\u200e)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (M\xe9xico)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (\u041c\u043e\u043d\u0433\u043e\u043b)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (\u202b\u0627\u0644\u0645\u063a\u0631\u0628\u202c\u200e)","ma","212",0],["Mozambique (Mo\xe7ambique)","mz","258"],["Myanmar (Burma) (\u1019\u103c\u1014\u103a\u1019\u102c)","mm","95"],["Namibia (Namibi\xeb)","na","264"],["Nauru","nr","674"],["Nepal (\u0928\u0947\u092a\u093e\u0932)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Cal\xe9donie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (\uc870\uc120 \ubbfc\uc8fc\uc8fc\uc758 \uc778\ubbfc \uacf5\ud654\uad6d)","kp","850"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (\u202b\u0639\u064f\u0645\u0627\u0646\u202c\u200e)","om","968"],["Pakistan (\u202b\u067e\u0627\u06a9\u0633\u062a\u0627\u0646\u202c\u200e)","pk","92"],["Palau","pw","680"],["Palestine (\u202b\u0641\u0644\u0633\u0637\u064a\u0646\u202c\u200e)","ps","970"],["Panama (Panam\xe1)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Per\xfa)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (\u202b\u0642\u0637\u0631\u202c\u200e)","qa","974"],["R\xe9union (La R\xe9union)","re","262",0],["Romania (Rom\xe2nia)","ro","40"],["Russia (\u0420\u043e\u0441\u0441\u0438\u044f)","ru","7",0],["Rwanda","rw","250"],["Saint Barth\xe9lemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie fran\xe7aise))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["S\xe3o Tom\xe9 and Pr\xedncipe (S\xe3o Tom\xe9 e Pr\xedncipe)","st","239"],["Saudi Arabia (\u202b\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629\u202c\u200e)","sa","966"],["Senegal (S\xe9n\xe9gal)","sn","221"],["Serbia (\u0421\u0440\u0431\u0438\u0458\u0430)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["S
4omalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (\ub300\ud55c\ubbfc\uad6d)","kr","82"],["South Sudan (\u202b\u062c\u0646\u0648\u0628 \u0627\u0644\u0633\u0648\u062f\u0627\u0646\u202c\u200e)","ss","211"],["Spain (Espa\xf1a)","es","34"],["Sri Lanka (\u0dc1\u0dca\u200d\u0dbb\u0dd3 \u0dbd\u0d82\u0d9a\u0dcf\u0dc0)","lk","94"],["Sudan (\u202b\u0627\u0644\u0633\u0648\u062f\u0627\u0646\u202c\u200e)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Swaziland","sz","268"],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (\u202b\u0633\u0648\u0631\u064a\u0627\u202c\u200e)","sy","963"],["Taiwan (\u53f0\u7063)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (\u0e44\u0e17\u0e22)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (\u202b\u062a\u0648\u0646\u0633\u202c\u200e)","tn","216"],["Turkey (T\xfcrkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (\u0423\u043a\u0440\u0430\u0457\u043d\u0430)","ua","380"],["United Arab Emirates (\u202b\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062a \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0627\u0644\u0645\u062a\u062d\u062f\u0629\u202c\u200e)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (O\u02bbzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Citt\xe0 del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Vi\u1ec7t Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (\u202b\u0627\u0644\u0635\u062d\u0631\u0627\u0621 \u0627\u0644\u063a\u0631\u0628\u064a\u0629\u202c\u200e)","eh","212",1,["5288","5289"]],["Yemen (\u202b\u0627\u0644\u064a\u0645\u0646\u202c\u200e)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["\xc5land Islands","ax","358",1,["18"]]];for(var e=0;e<le.length;e++){var t=le[e];le[e]={name:t[0],iso2:t[1],dialCode:t[2],priority:t[3]||0,areaCodes:t[4]||null}}"use strict";function ue(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function ce(e,t,n){if(t)i(e.prototype,t);if(n)i(e,n);return e}me.intlTelInputGlobals={getInstance:function n(e){var t=e.getAttribute("data-intl-tel-input-id");return me.intlTelInputGlobals.instances[t]},instances:{}};var de=0;var he={allowDropdown:true,autoHideDialCode:true,autoPlaceholder:"polite",customContainer:"",customPlaceholder:null,dropdownContainer:null,excludeCountries:[],formatOnDisplay:true,geoIpLookup:null,hiddenInput:"",initialCountry:"",localizedCountries:null,nationalMode:true,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:false,utilsScript:""};var fe=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"];me.addEventListener("load",function(){me.intlTelInputGlobals.windowLoaded=true});var pe=function pe(e,t){var n=Object.keys(e);for(var i=0;i<n.length;i++){t(n[i],e[n[i]])}};var ge=function ge(t){pe(me.intlTelInputGlobals.instances,function(e){me.intlTelInputGlobals.instances[e][t]()})};var r=function(){function r(e,t){var n=this;ue(this,r);this.id=de++;this.telInput=e;this.activeItem=null;this.highlightedItem=null;var i=t||{};this.options={};pe(he,function(e,t){n.options[e]=i.hasOwnProperty(e)?i[e]:t});this.hadInitialPlaceholder=Boolean(e.getAttribute("placeholder"))}ce(r,[{key:"_init",value:function i(){var n=this;if(this.options.nationalMode)this.options.autoHideDialCode=false;if(this.options.separateDialCode){this.options.autoHideDialCode=this.options.nationalMode=false}this.isMobile=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);if(this.isMobile){ve.body.classList.add("iti-mobile");if(!this.options.dropdownContainer)this.options.dropdownContainer=ve.body}if(typeof Promise!=="undefined"){var e=new Promise(function(e,t){n.resolveAutoCountryPromise=e;n.rejectAutoCountryPromise=t});var t=new Promise(function(e,t){n.resolveUtilsScriptPromise=e;n.rejectUtilsScriptPromise=t});this.promise=Promise.all([e,t])}else{this.resolveAutoCountryPromise=this.rejectAutoCountryPromise=function(){};this.resolveUtilsScriptPromise=this.rejectUtilsScriptPromise=function(){}}this.selectedCountryData={};this._processCountryData();this._generateMarkup();this._setInitialState();this._initListeners();this._initRequests()}},{key:"_processCountryData",value:function e(){this._processAllCountries();this._processCountryCodes();this._processPreferredCountries();if(this.options.localizedCountries)this._translateCountriesByLocale();if(this.options.onlyCountries.length||this.options.localizedCountries){this.countries.sort(this._countryNameSort)}}},{key:"_addCountryCode",value:function a(e,t,n){if(t.length>this.dialCodeMaxLen){this.dialCodeMaxLen=t.length}if(!this.countryCodes.hasOwnProperty(t)){this.countryCodes[t]=[]}for(var i=0;i<this.countryCodes[t].length;i++){if(this.countryCodes[t][i]===e)return}var r=n!==ye?n:this.countryCodes[t].length;this.countryCodes[t][r]=e}},{key:"_processAllCountries",value:function o(){if(this.options.onlyCountries.length){var t=this.options.onlyCountries.map(function(e){return e.toLowerCase()});this.countries=le.filter(function(e){return t.indexOf(e.iso2)>-1})}else if(this.options.excludeCountries.length){var n=this.options.excludeCountries.map(function(e){return e.toLowerCase()});this.countries=le.filter(function(e){return n.indexOf(e.iso2)===-1})}else{this.countries=le}}},{key:"_translateCountriesByLocale",value:function n(){for(var e=0;e<this.countries.length;e++){var t=this.countries[e].iso2.toLowerCase();if(this.options.localizedCountries.hasOwnProperty(t)){this.countries[e].name=this.options.localizedCountries[t]}}}},{key:"_countryNameSort",value:function s(e,t){return e.name.localeCompare(t.name)}},{key:"_processCountryCodes",value:function u(){this.dialCodeMaxLen=0;this.countryCodes={};for(var e=0;e<this.countries.length;e++){var t=this.countries[e];this._addCountryCode(t.iso2,t.dialCode,t.priority)}for(var n=0;n<this.countries.length;n++){var i=this.countries[n];if(i.areaCodes){var r=this.countryCodes[i.dialCode][0];for(var a=0;a<i.areaCodes.length;a++){var o=i.areaCodes[a];for(var s=1;s<o.length;s++){var l=i.dialCode+o.substr(0,s);this._addCountryCode(r,l);this._addCountryCode(i.iso2,l)}this._addCountryCode(i.iso2,i.dialCode+o)}}}}},{key:"_processPreferredCountries",value:function l(){this.preferredCountries=[];for(var e=0;e<this.options.preferredCountries.length;e++){var t=this.options.preferredCountries[e].toLowerCase();var n=this._getCountryData(t,false,true);if(n)this.preferredCountries.push(n)}}}
4,{key:"_createEl",value:function c(e,t,n){var i=ve.createElement(e);if(t)pe(t,function(e,t){return i.setAttribute(e,t)});if(n)n.appendChild(i);return i}},{key:"_generateMarkup",value:function d(){this.telInput.setAttribute("autocomplete","off");var e="iti";if(this.options.allowDropdown)e+=" iti--allow-dropdown";if(this.options.separateDialCode)e+=" iti--separate-dial-code";if(this.options.customContainer){e+=" ";e+=this.options.customContainer}var t=this._createEl("div",{"class":e});this.telInput.parentNode.insertBefore(t,this.telInput);this.flagsContainer=this._createEl("div",{"class":"iti__flag-container"},t);t.appendChild(this.telInput);this.selectedFlag=this._createEl("div",{"class":"iti__selected-flag",role:"combobox","aria-owns":"country-listbox"},this.flagsContainer);this.selectedFlagInner=this._createEl("div",{"class":"iti__flag"},this.selectedFlag);if(this.options.separateDialCode){this.selectedDialCode=this._createEl("div",{"class":"iti__selected-dial-code"},this.selectedFlag)}if(this.options.allowDropdown){this.selectedFlag.setAttribute("tabindex","0");this.dropdownArrow=this._createEl("div",{"class":"iti__arrow"},this.selectedFlag);this.countryList=this._createEl("ul",{"class":"iti__country-list iti__hide",id:"country-listbox","aria-expanded":"false",role:"listbox"});if(this.preferredCountries.length){this._appendListItems(this.preferredCountries,"iti__preferred");this._createEl("li",{"class":"iti__divider",role:"separator","aria-disabled":"true"},this.countryList)}this._appendListItems(this.countries,"iti__standard");if(this.options.dropdownContainer){this.dropdown=this._createEl("div",{"class":"iti iti--container"});this.dropdown.appendChild(this.countryList)}else{this.flagsContainer.appendChild(this.countryList)}}if(this.options.hiddenInput){var n=this.options.hiddenInput;var i=this.telInput.getAttribute("name");if(i){var r=i.lastIndexOf("[");if(r!==-1)n="".concat(i.substr(0,r),"[").concat(n,"]")}this.hiddenInput=this._createEl("input",{type:"hidden",name:n});t.appendChild(this.hiddenInput)}}},{key:"_appendListItems",value:function h(e,t){var n="";for(var i=0;i<e.length;i++){var r=e[i];n+="<li class='iti__country ".concat(t,"' tabIndex='-1' id='iti-item-").concat(r.iso2,"' role='option' data-dial-code='").concat(r.dialCode,"' data-country-code='").concat(r.iso2,"'>");n+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(r.iso2,"'></div></div>");n+="<span class='iti__country-name'>".concat(r.name,"</span>");n+="<span class='iti__dial-code'>+".concat(r.dialCode,"</span>");n+="</li>"}this.countryList.insertAdjacentHTML("beforeend",n)}},{key:"_setInitialState",value:function f(){var e=this.telInput.value;var t=this._getDialCode(e);var n=this._isRegionlessNanp(e);var i=this.options,r=i.initialCountry,a=i.nationalMode,o=i.autoHideDialCode,s=i.separateDialCode;if(t&&!n){this._updateFlagFromNumber(e)}else if(r!=="auto"){if(r){this._setFlag(r.toLowerCase())}else{if(t&&n){this._setFlag("us")}else{this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2;if(!e){this._setFlag(this.defaultCountry)}}}if(!e&&!a&&!o&&!s){this.telInput.value="+".concat(this.selectedCountryData.dialCode)}}if(e)this._updateValFromNumber(e)}},{key:"_initListeners",value:function t(){this._initKeyListeners();if(this.options.autoHideDialCode)this._initBlurListeners();if(this.options.allowDropdown)this._initDropdownListeners();if(this.hiddenInput)this._initHiddenInputListener()}},{ 5key:"_initHiddenInputListener",value:function p(){var e=this;this._handleHiddenInputSubmit=function(){e.hiddenInput.value=e.getNumber()};if(this.telInput.form)this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_getClosestLabel",value:function g(){var e=this.telInput;while(e&&e.tagName!=="LABEL"){e=e.parentNode}return e}},{key:"_initDropdownListeners",value:function m(){var n=this;this._handleLabelClick=function(e){if(n.countryList.classList.contains("iti__hide"))n.telInput.focus();else e.preventDefault()};var e=this._getClosestLabel();if(e)e.addEventListener("click",this._handleLabelClick);this._handleClickSelectedFlag=function(){if(n.countryList.classList.contains("iti__hide")&&!n.telInput.disabled&&!n.telInput.readOnly){n._showDropdown()}};this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag);this._handleFlagsContainerKeydown=function(e){var t=n.countryList.classList.contains("iti__hide");if(t&&["ArrowUp","ArrowDown"," ","Enter"].indexOf(e.key)!==-1){e.preventDefault();e.stopPropagation();n._showDropdown()}if(e.key==="Tab")n._closeDropdown()};this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function v(){var e=this;if(this.options.utilsScript&&!me.intlTelInputUtils){if(me.intlTelInputGlobals.windowLoaded){me.intlTelInputGlobals.loadUtils(this.options.utilsScript)}else{me.addEventListener("load",function(){me.intlTelInputGlobals.loadUtils(e.options.utilsScript)})}}else this.resolveUtilsScriptPromise();if(this.options.initialCountry==="auto")this._loadAutoCountry();else this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function y(){if(me.intlTelInputGlobals.autoCountry){this.handleAutoCountry()}else if(!me.intlTelInputGlobals.startedLoadingAutoCountry){me.intlTelInputGlobals.startedLoadingAutoCountry=true;if(typeof this.options.geoIpLookup==="function"){this.options.geoIpLookup(function(e){me.intlTelInputGlobals.autoCountry=e.toLowerCase();setTimeout(function(){return ge("handleAutoCountry")})},function(){return ge("rejectAutoCountryPromise")})}}}},{key:"_initKeyListeners",value:function b(){var e=this;this._handleKeyupEvent=function(){if(e._updateFlagFromNumber(e.telInput.value)){e._triggerCountryChange()}};this.telInput.addEventListener("keyup",this._handleKeyupEvent);this._handleClipboardEvent=function(){setTimeout(e._handleKeyupEvent)};this.telInput.addEventListener("cut",this._handleClipboardEvent);this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_cap",value:function x(e){var t=this.telInput.getAttribute("maxlength");return t&&e.length>t?e.substr(0,t):e}},{key:"_initBlurListeners",value:function _(){var e=this;this._handleSubmitOrBlurEvent=function(){e._removeEmptyDialCode()};if(this.telInput.form)this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent);this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function w(){if(this.telInput.value.charAt(0)==="
5+"){var e=this._getNumeric(this.telInput.value);if(!e||this.selectedCountryData.dialCode===e){this.telInput.value=""}}}},{key:"_getNumeric",value:function k(e){return e.replace(/\D/g,"")}},{key:"_trigger",value:function C(e){var t=ve.createEvent("Event");t.initEvent(e,true,true);this.telInput.dispatchEvent(t)}},{key:"_showDropdown",value:function S(){this.countryList.classList.remove("iti__hide");this.countryList.setAttribute("aria-expanded","true");this._setDropdownPosition();if(this.activeItem){this._highlightListItem(this.activeItem,false);this._scrollTo(this.activeItem,true)}this._bindDropdownListeners();this.dropdownArrow.classList.add("iti__arrow--up");this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function M(e,t,n){if(n&&!e.classList.contains(t))e.classList.add(t);else if(!n&&e.classList.contains(t))e.classList.remove(t)}},{key:"_setDropdownPosition",value:function T(){var e=this;if(this.options.dropdownContainer){this.options.dropdownContainer.appendChild(this.dropdown)}if(!this.isMobile){var t=this.telInput.getBoundingClientRect();var n=me.pageYOffset||ve.documentElement.scrollTop;var i=t.top+n;var r=this.countryList.offsetHeight;var a=i+this.telInput.offsetHeight+r<n+me.innerHeight;var o=i-r>n;this._toggleClass(this.countryList,"iti__country-list--dropup",!a&&o);if(this.options.dropdownContainer){var s=!a&&o?0:this.telInput.offsetHeight;this.dropdown.style.top="".concat(i+s,"px");this.dropdown.style.left="".concat(t.left+ve.body.scrollLeft,"px");this._handleWindowScroll=function(){return e._closeDropdown()};me.addEventListener("scroll",this._handleWindowScroll)}}}},{key:"_getClosestListItem",value:function D(e){var t=e;while(t&&t!==this.countryList&&!t.classList.contains("iti__country")){t=t.parentNode}return t===this.countryList?null:t}},{key:"_bindDropdownListeners",value:function A(){var n=this;this._handleMouseoverCountryList=function(e){var t=n._getClosestListItem(e.target);if(t)n._highlightListItem(t,false)};this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList);this._handleClickCountryList=function(e){var t=n._getClosestListItem(e.target);if(t)n._selectListItem(t)};this.countryList.addEventListener("click",this._handleClickCountryList);var e=true;this._handleClickOffToClose=function(){if(!e)n._closeDropdown();e=false};ve.documentElement.addEventListener("click",this._handleClickOffToClose);var t="";var i=null;this._handleKeydownOnDropdown=function(e){e.preventDefault();if(e.key==="ArrowUp"||e.key==="ArrowDown")n._handleUpDownKey(e.key);else if(e.key==="Enter")n._handleEnterKey();else if(e.key==="Escape")n._closeDropdown();else if(/^[a-zA-Z\xc0-\xff ]$/.test(e.key)){if(i)clearTimeout(i);t+=e.key.toLowerCase();n._searchForCountry(t);i=setTimeout(function(){t=""},1e3)}};ve.addEventListener("keydown",this._handleKeydownOnDropdown)}},{key:"_handleUpDownKey",value:function L(e){var t=e==="ArrowUp"?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;if(t){if(t.classList.contains("iti__divider")){t=e==="ArrowUp"?t.previousElementSibling:t.nextElementSibling}this._highlightListItem(t,true)}}},{key:"_handleEnterKey",value:function E(){if(this.highlightedItem)this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function P(e){for(var t=0;t<this.countries.length;t++){if(this._startsWith(this.countries[t].name,e)){var n=this.countryList.querySelector("#iti-item-".concat(this.countries[t].iso2));this._highlightListItem(n,false);this._scrollTo(n,true);break}}}},{key:"_startsWith",value:function I(e,t){return e.substr(0,t.length).toLowerCase()===t}},{key:"_updateValFromNumber",value:function O(e){var t=e;if(this.options.formatOnDisplay&&me.intlTelInputUtils&&this.selectedCountryData){var n=!this.options.separateDialCode&&(this.options.nationalMode||t.charAt(0)!=="+");var i=intlTelInputUtils.numberFormat,r=i.NATIONAL,a=i.INTERNATIONAL;var o=n?r:a;t=intlTelInputUtils.formatNumber(t,this.selectedCountryData.iso2,o)}t=this._beforeSetNumber(t);this.telInput.value=t}},{key:"_updateFlagFromNumber",value:function N(e){var t=e;var n=this.selectedCountryData.dialCode;var i=n==="1";if(t&&this.options.nationalMode&&i&&t.charAt(0)!=="+"){if(t.charAt(0)!=="1")t="1".concat(t);t="+".concat(t)}if(this.options.separateDialCode&&n&&t.charAt(0)!=="+"){t="+".concat(n).concat(t)}var r=this._getDialCode(t);var a=this._getNumeric(t);var o=null;if(r){var s=this.countryCodes[this._getNumeric(r)];var l=s.indexOf(this.selectedCountryData.iso2)!==-1&&a.length<=r.length-1;var u=n==="1"&&this._isRegionlessNanp(a);if(!u&&!l){for(var c=0;c<s.length;c++){if(s[c]){o=s[c];break}}}}
5else if(t.charAt(0)==="+"&&a.length){o=""}else if(!t||t==="+"){o=this.defaultCountry}if(o!==null){return this._setFlag(o)}return false}},{key:"_isRegionlessNanp",value:function F(e){var t=this._getNumeric(e);if(t.charAt(0)==="1"){var n=t.substr(1,3);return fe.indexOf(n)!==-1}return false}},{key:"_highlightListItem",value:function z(e,t){var n=this.highlightedItem;if(n)n.classList.remove("iti__highlight");this.highlightedItem=e;this.highlightedItem.classList.add("iti__highlight");if(t)this.highlightedItem.focus()}},{key:"_getCountryData",value:function R(e,t,n){var i=t?le:this.countries;for(var r=0;r<i.length;r++){if(i[r].iso2===e){return i[r]}}if(n){return null}throw new Error("No country data for '".concat(e,"'"))}},{key:"_setFlag",value:function j(e){var t=this.selectedCountryData.iso2?this.selectedCountryData:{};this.selectedCountryData=e?this._getCountryData(e,false,false):{};if(this.selectedCountryData.iso2){this.defaultCountry=this.selectedCountryData.iso2}this.selectedFlagInner.setAttribute("class","iti__flag iti__".concat(e));var n=e?"".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):"Unknown";this.selectedFlag.setAttribute("title",n);if(this.options.separateDialCode){var i=this.selectedCountryData.dialCode?"+".concat(this.selectedCountryData.dialCode):"";this.selectedDialCode.innerHTML=i;var r=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth();this.telInput.style.paddingLeft="".concat(r+6,"px")}this._updatePlaceholder();if(this.options.allowDropdown){var a=this.activeItem;if(a){a.classList.remove("iti__active");a.setAttribute("aria-selected","false")}if(e){var o=this.countryList.querySelector("#iti-item-".concat(e));o.setAttribute("aria-selected","true");o.classList.add("iti__active");this.activeItem=o;this.countryList.setAttribute("aria-activedescendant",o.getAttribute("id"))}}return t.iso2!==e}},{key:"_getHiddenSelectedFlagWidth",value:function H(){var e=this.telInput.parentNode.cloneNode();e.style.visibility="hidden";ve.body.appendChild(e);var t=this.selectedFlag.cloneNode(true);e.appendChild(t);var n=t.offsetWidth;e.parentNode.removeChild(e);return n}},{key:"_updatePlaceholder",value:function W(){var e=this.options.autoPlaceholder==="aggressive"||!this.hadInitialPlaceholder&&this.options.autoPlaceholder==="polite";if(me.intlTelInputUtils&&e){var t=intlTelInputUtils.numberType[this.options.placeholderNumberType];var n=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,t):"";n=this._beforeSetNumber(n);if(typeof this.options.customPlaceholder==="function"){n=this.options.customPlaceholder(n,this.selectedCountryData)}this.telInput.setAttribute("placeholder",n)}}},{key:"_selectListItem",value:function B(e){var t=this._setFlag(e.getAttribute("data-country-code"));this._closeDropdown();this._updateDialCode(e.getAttribute("data-dial-code"),true);this.telInput.focus();var n=this.telInput.value.length;this.telInput.setSelectionRange(n,n);if(t){this._triggerCountryChange()}}},{key:"_closeDropdown",value:function Y(){this.countryList.classList.add("iti__hide");this.countryList.setAttribute("aria-expanded","false");this.dropdownArrow.classList.remove("iti__arrow--up");ve.removeEventListener("keydown",this._handleKeydownOnDropdown);ve.documentElement.removeEventListener("click",this._handleClickOffToClose);this.countryList.removeEventListener("mouseover",this._handleMouseoverCountryList);this.countryList.removeEventListener("click",this._handleClickCountryList);if(this.options.dropdownContainer){if(!this.isMobile)me.removeEventListener("scroll",this._handleWindowScroll);if(this.dropdown.parentNode)this.dropdown.parentNode.removeChild(this.dropdown)}this._trigger("close:countrydropdown")}},{key:"_scrollTo",value:function V(e,t){var n=this.countryList;var i=me.pageYOffset||ve.documentElement.scrollTop;var r=n.offsetHeight;var a=n.getBoundingClientRect().top+i;var o=a+r;var s=e.offsetHeight;var l=e.getBoundingClientRect().top+i;var u=l+s;var c=l-a+n.scrollTop;var d=r/2-s/2;if(l<a){if(t)c-=d;n.scrollTop=c}else if(u>o){if(t)c+=d;var h=r-s;n.scrollTop=c-h}}},{key:"_updateDialCode",value:function q(e,t){var n=this.telInput.value;var i="+".concat(e);var r;
5if(n.charAt(0)==="+"){var a=this._getDialCode(n);if(a){r=n.replace(a,i)}else{r=i}}else if(this.options.nationalMode||this.options.separateDialCode){return}else{if(n){r=i+n}else if(t||!this.options.autoHideDialCode){r=i}else{return}}this.telInput.value=r}},{key:"_getDialCode",value:function U(e){var t="";if(e.charAt(0)==="+"){var n="";for(var i=0;i<e.length;i++){var r=e.charAt(i);if(!isNaN(parseInt(r,10))){n+=r;if(this.countryCodes[n]){t=e.substr(0,i+1)}if(n.length===this.dialCodeMaxLen){break}}}}return t}},{key:"_getFullNumber",value:function G(){var e=this.telInput.value.trim();var t=this.selectedCountryData.dialCode;var n;var i=this._getNumeric(e);if(this.options.separateDialCode&&e.charAt(0)!=="+"&&t&&i){n="+".concat(t)}else{n=""}return n+e}},{key:"_beforeSetNumber",value:function $(e){var t=e;if(this.options.separateDialCode){var n=this._getDialCode(t);if(n){n="+".concat(this.selectedCountryData.dialCode);var i=t[n.length]===" "||t[n.length]==="-"?n.length+1:n.length;t=t.substr(i)}}return this._cap(t)}},{key:"_triggerCountryChange",value:function X(){this._trigger("countrychange")}},{key:"handleAutoCountry",value:function K(){if(this.options.initialCountry==="auto"){this.defaultCountry=me.intlTelInputGlobals.autoCountry;if(!this.telInput.value){this.setCountry(this.defaultCountry)}this.resolveAutoCountryPromise()}}},{key:"handleUtils",value:function Z(){if(me.intlTelInputUtils){if(this.telInput.value){this._updateValFromNumber(this.telInput.value)}this._updatePlaceholder()}this.resolveUtilsScriptPromise()}},{key:"destroy",value:function J(){var e=this.telInput.form;if(this.options.allowDropdown){this._closeDropdown();this.selectedFlag.removeEventListener("click",this._handleClickSelectedFlag);this.flagsContainer.removeEventListener("keydown",this._handleFlagsContainerKeydown);var t=this._getClosestLabel();if(t)t.removeEventListener("click",this._handleLabelClick)}if(this.hiddenInput&&e)e.removeEventListener("submit",this._handleHiddenInputSubmit);if(this.options.autoHideDialCode){if(e)e.removeEventListener("submit",this._handleSubmitOrBlurEvent);this.telInput.removeEventListener("blur",this._handleSubmitOrBlurEvent)}this.telInput.removeEventListener("keyup",this._handleKeyupEvent);this.telInput.removeEventListener("cut",this._handleClipboardEvent);this.telInput.removeEventListener("paste",this._handleClipboardEvent);this.telInput.removeAttribute("data-intl-tel-input-id");var n=this.telInput.parentNode;n.parentNode.insertBefore(this.telInput,n);n.parentNode.removeChild(n);delete me.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function Q(){if(me.intlTelInputUtils){return intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2)}return""}},{key:"getNumber",value:function ee(e){if(me.intlTelInputUtils){var t=this.selectedCountryData.iso2;return intlTelInputUtils.formatNumber(this._getFullNumber(),t,e)}return""}},{key:"getNumberType",value:function te(){if(me.intlTelInputUtils){return intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2)}return-99}},{key:"getSelectedCountryData",value:function ne(){return this.selectedCountryData}},{key:"getValidationError",value:function ie(){if(me.intlTelInputUtils){var e=this.selectedCountryData.iso2;return intlTelInputUtils.getValidationError(this._getFullNumber(),e)}return-99}},{key:"isValidNumber",value:function re(){var e=this._getFullNumber().trim();var t=this.options.nationalMode?this.selectedCountryData.iso2:"";return me.intlTelInputUtils?intlTelInputUtils.isValidNumber(e,t):null}},{key:"setCountry",value:function ae(e){var t=e.toLowerCase();if(!this.selectedFlagInner.classList.contains("iti__".concat(t))){this._setFlag(t);this._updateDialCode(this.selectedCountryData.dialCode,false);this._triggerCountryChange()}}},{key:"setNumber",value:function oe(e){var t=this._updateFlagFromNumber(e);this._updateValFromNumber(e);if(t){this._triggerCountryChange()}}},{key:"setPlaceholderNumberType",value:function se(e){this.options.placeholderNumberType=e;this._updatePlaceholder()}}]);return r}();me.intlTelInputGlobals.getCountryData=function(){return le};var a=function a(e,t,n){var i=ve.createElement("script");i.onload=function(){ge("handleUtils");if(t)t()};i.onerror=function(){ge("rejectUtilsScriptPromise");if(n)n()};i.className="iti-load-utils";i.async=true;i.src=e;ve.body.appendChild(i)};me.intlTelInputGlobals.loadUtils=function(n){if(!me.intlTelInputUtils&&!me.intlTelInputGlobals.startedLoadingUtilsScript){me.intlTelInputGlobals.startedLoadingUtilsScript=true;if(typeof Promise!=="undefined"){return new Promise(function(e,t){return a(n,e,t)})}a(n)}return null};me.intlTelInputGlobals.defaults=he;me.intlTelInputGlobals.version="16.0.3";return function(e,t){var n=new r(e,t);n._init();e.setAttribute("data-intl-tel-input-id",n.id);me.intlTelInputGlobals.instances[n.id]=n;return n}}()}(window,document);"object"==typeof module&&module.exports?module.exports=e:window.intlTelInput=e}();var libPhoneNumberUtilsPath="/assets/libphonenumber/utils-60484d644596f525096949d8516e2475ece9b2fb657b2312b95a9f9c1e6d4e4d.js",zxcvbnPath="/assets/zxcvbn-e7412f869165a6520c3524e0b0931e4de2064a8341498f628e421b2a68683e68.js";!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.ActionCable={})}(this,function(e){"use strict";function o(e){if("function"==typeof e&&(e=e()),!e||/^wss?:/i.test(e))return e;var t=document.createElement("a");return t.href=e,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href}function t(e){var t=0<arguments.length&&e!==undefined?arguments[0]:n("url")||i.default_mount_path;return new r(t)}function n(e){var t=document.head.querySelector("meta[name='action-cable-"+e+"']");if(t)return t.getAttribute("content")}var f={logger:self.console,WebSocket:self.WebSocket},g={log:function a(){if(this.enabled){for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];n.push(Date.now()),(e=f.logger).log.apply(e,["[ActionCable]"].concat(n))}}},p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},s=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}(),v=function v(){return(new Date).getTime()},y=function y(e){return(v()-e)/1e3},b=function b(e,t,n){return Math.max(t,Math.min(n,e))},x=function(){function t(e){m(this,t),this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=e,this.reconnectAttempts=0}return t.prototype.start=function e(){this.isRunning()||(this.startedAt=v(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),g.log("ConnectionMonitor started. pollInterval = "+this.getPollInterval()+" ms"))},t.prototype.stop=function n(){this.isRunning()&&(this.stoppedAt=v(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),g.log("ConnectionMonitor stopped"))},t.prototype.isRunning=function i(){return this.startedAt&&!this.stoppedAt},t.prototype.recordPing=function r(){this.pingedAt=v()},t.prototype.recordConnect=function a(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,g.log("ConnectionMonitor recorded connect")},t.prototype.recordDisconnect=function o(){this.disconnectedAt=v(),g.log("ConnectionMonitor recorded disconnect")},t.prototype.startPolling=function s(){this.stopPolling(),this.poll()},t.prototype.stopPolling=function l(){clearTimeout(this.pollTimeout)},t.prototype.poll=function u(){var e=this;this.pollTimeout=setTimeout(function(){e.reconnectIfStale(),e.poll()},this.getPollInterval())},t.prototype.getPollInterval=function c(){var e=this.constructor.pollInterval,t=e.min,n=e.max,i=e.multiplier*Math.log(this.reconnectAttempts+1);return Math.round(1e3*b(i,t,n))},t.prototype.reconnectIfStale=function d(){this.connectionIsStale()&&(g.log("ConnectionMonitor detected stale c
5onnection. reconnectAttempts = "+this.reconnectAttempts+", pollInterval = "+this.getPollInterval()+" ms, time disconnected = "+y(this.disconnectedAt)+" s, stale threshold = "+this.constructor.staleThreshold+" s"),this.reconnectAttempts++,this.disconnectedRecently()?g.log("ConnectionMonitor skipping reopening recent disconnect"):(g.log("ConnectionMonitor reopening"),this.connection.reopen()))},t.prototype.connectionIsStale=function h(){return y(this.pingedAt?this.pingedAt:this.startedAt)>this.constructor.staleThreshold},t.prototype.disconnectedRecently=function f(){return this.disconnectedAt&&y(this.disconnectedAt)<this.constructor.staleThreshold},t.prototype.visibilityDidChange=function p(){var e=this;"visible"===document.visibilityState&&setTimeout(function(){!e.connectionIsStale()&&e.connection.isOpen()||(g.log("ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = "+document.visibilityState),e.connection.reopen())},200)},t}();x.pollInterval={min:3,max:30,multiplier:5},x.staleThreshold=6;var i={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]},l=i.message_types,_=i.protocols,w=_.slice(0,_.length-1),k=[].indexOf,u=function(){function t(e){m(this,t),this.open=this.open.bind(this),this.consumer=e,this.subscriptions=this.consumer.subscriptions,this.monitor=new x(this),this.disconnected=!0}return t.prototype.send=function n(e){return!!this.isOpen()&&(this.webSocket.send(JSON.stringify(e)),!0)},t.prototype.open=function e(){return this.isActive()?(g.log("Attempted to open WebSocket, but existing socket is "+this.getState()),!1):(g.log("Opening WebSocket, current state is "+this.getState()+", subprotocols: "+_),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new f.WebSocket(this.consumer.url,_),this.installEventHandlers(),this.monitor.start(),!0)},t.prototype.close=function i(e){if((0<arguments.length&&e!==undefined?arguments[0]:{allowReconnect:!0}).allowReconnect||this.monitor.stop(),this.isActive())return this.webSocket.close()},t.prototype.reopen=function r(){if(g.log("Reopening WebSocket, current state is "+this.getState()),!this.isActive())return this.open();try{return this.close()}catch(e){g.log("Failed to reopen WebSocket",e)}finally{g.log("Reopening WebSocket in "+this.constructor.reopenDelay+"ms"),setTimeout(this.open,this.constructor.reopenDelay)}},t.prototype.getProtocol=function a(){if(this.webSocket)return this.webSocket.protocol},t.prototype.isOpen=function o(){return this.isState("open")},t.prototype.isActive=function s(){return this.isState("open","connecting")},t.prototype.isProtocolSupported=function l(){return 0<=k.call(w,this.getProtocol())},t.prototype.isState=function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0<=k.call(t,this.getState())},t.prototype.getState=function c(){if(this.webSocket)for(var e in f.WebSocket)if(f.WebSocket[e]===this.webSocket.readyState)return e.toLowerCase();return null},t.prototype.installEventHandlers=function d(){for(var e in this.events){var t=this.events[e].bind(this);this.webSocket["on"+e]=t}},t.prototype.uninstallEventHandlers=function h(){for(var e in this.events)this.webSocket["on"+e]=function(){}},t}();u.reopenDelay=500,u.prototype.events={message:function e(t){if(this.isProtocolSupported()){var n=JSON.parse(t.data),i=n.identifier,e=n.message,r=n.reason,a=n.reconnect;switch(n.type){case l.welcome:return this.monitor.recordConnect(),this.subscriptions.reload();case l.disconnect:return g.log("Disconnecting. Reason: "+r),this.close({allowReconnect:a});case l.ping:return this.monitor.recordPing();case l.confirmation:return this.subscriptions.confirmSubscription(i),this.subscriptions.notify(i,"connected");case l.rejection:return this.subscriptions.reject(i);default:return this.subscriptions.notify(i,"received",e)}}},open:function h(){if(g.log("WebSocket onopen event, using '"+this.getProtocol()+"' subprotocol"),this.disconnected=!1,!this.isProtocolSupp
5orted())return g.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close:function M(){if(g.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error:function T(){g.log("WebSocket onerror event")}};var c=function c(e,t){if(null!=t)for(var n in t){var i=t[n];e[n]=i}return e},C=function(){function a(e,t,n){var i=1<arguments.length&&t!==undefined?arguments[1]:{},r=n;m(this,a),this.consumer=e,this.identifier=JSON.stringify(i),c(this,r)}return a.prototype.perform=function i(e,t){var n=1<arguments.length&&t!==undefined?arguments[1]:{};return n.action=e,this.send(n)},a.prototype.send=function t(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})},a.prototype.unsubscribe=function e(){return this.consumer.subscriptions.remove(this)},a}(),S=function(){function t(e){m(this,t),this.subscriptions=e,this.pendingSubscriptions=[]}return t.prototype.guarantee=function n(e){-1==this.pendingSubscriptions.indexOf(e)?(g.log("SubscriptionGuarantor guaranteeing "+e.identifier),this.pendingSubscriptions.push(e)):g.log("SubscriptionGuarantor already guaranteeing "+e.identifier),this.startGuaranteeing()},t.prototype.forget=function e(t){g.log("SubscriptionGuarantor forgetting "+t.identifier),this.pendingSubscriptions=this.pendingSubscriptions.filter(function(e){return e!==t})},t.prototype.startGuaranteeing=function i(){this.stopGuaranteeing(),this.retrySubscribing()},t.prototype.stopGuaranteeing=function r(){clearTimeout(this.retryTimeout)},t.prototype.retrySubscribing=function a(){var t=this;this.retryTimeout=setTimeout(function(){t.subscriptions&&"function"==typeof t.subscriptions.subscribe&&t.pendingSubscriptions.map(function(e){g.log("SubscriptionGuarantor resubscribing "+e.identifier),t.subscriptions.subscribe(e)})},500)},t}(),d=function(){function t(e){m(this,t),this.consumer=e,this.guarantor=new S(this),this.subscriptions=[]}return t.prototype.create=function a(e,t){var n=e,i="object"===(void 0===n?"undefined":p(n))?n:{channel:n},r=new C(this.consumer,i,t);return this.add(r)},t.prototype.add=function n(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.subscribe(e),e},t.prototype.remove=function i(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e},t.prototype.reject=function r(e){var t=this;return this.findAll(e).map(function(e){return t.forget(e),t.notify(e,"rejected"),e})},t.prototype.forget=function e(t){return this.guarantor.forget(t),this.subscriptions=this.subscriptions.filter(function(e){return e!==t}),t},t.prototype.findAll=function o(t){return this.subscriptions.filter(function(e){return e.identifier===t})},t.prototype.reload=function s(){var t=this;return this.subscriptions.map(function(e){return t.subscribe(e)})},t.prototype.notifyAll=function l(t){for(var n=this,e=arguments.length,i=Array(1<e?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];return this.subscriptions.map(function(e){return n.notify.apply(n,[e,t].concat(i))})},t.prototype.notify=function u(e,t){for(var n=arguments.length,i=Array(2<n?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return("string"==typeof e?this.findAll(e):[e]).map(function(e){return"function"==typeof e[t]?e[t].apply(e,i):undefined})},t.prototype.subscribe=function c(e){this.sendCommand(e,"subscribe")&&this.guarantor.guarantee(e)},t.prototype.confirmSubscription=function d(e){var t=this;g.log("Subscription confirmed "+e),this.findAll(e).map(function(e){return t.guarantor.forget(e)})},t.prototype.sendCommand=function h(e,t){var n=e.identifier;return this.consumer.send({command:t,identifier:n})},t}(),r=function(){function t(e){m(this,t),this._url=e,this.subscriptions=new d(this),this.connection=new u(this)}return t.prototype.send=function n(e){return this.connection.send(e)},t.prototype.connect=function e(){return this.connection.open()},t.prototype.disconnect=function i(){return this.connection.close({allowReconnect:!1})},t.prototype.ensureActiveConnection=function r(){if(!this.connection.isActive())return this.connection.open()},s(t,[{key:"url",get:function a(){return o(this._url)}}]),t}();e.Connection=u,e.ConnectionMonitor=x,e.Consumer=r,e.INTERNAL=i,e.Subscription=C,e.Subscriptions=d,e.SubscriptionGuarantor=S,e.adapters=f,e.createWebSocketURL=o,e.logger=g,e.createConsumer=t,e.getConfig=n,Object.defineProperty(e,"__esMo
5dule",{value:!0})}),function(){this.App||(this.App={}),App.cable=ActionCable.createConsumer()}.call(this),$(document).ready(function(){if($(".new_user").each(function(e,t){function n(){var e=$("input[type='radio'][name='user[password_autogeneration_requested]'][value='true']:checked",t).val();$(".password_input_fields",t)[0].style.display=e?"none":"block"}var i=$(".password_generation_choice",t)[0];if(i){var r=document.getElementById("user_password_autogeneration_requested_true").checked,a=document.getElementById("user_password_autogeneration_requested_false").checked;r||a||(document.getElementById("user_password_autogeneration_requested_true").checked=!0),n(),$(t).on("change","input[type='radio'][name='user[password_autogeneration_requested]']",function(){n()}),i.style.display="block"}}),0<document.getElementsByClassName("new_user devise").length){var e=document.getElementById("user_user_name"),t=document.getElementById("user_name_syntax_warning_length"),n=document.getElementById("user_name_syntax_warning_allowed_characters");document.getElementById("user_name_syntax_suggestion").onclick=function(){e.value=e.value.toLowerCase().replace(/[^a-z0-9_\.]/g,"_"),n.classList.remove("show")},e.onblur=function(){0!==e.value.length&&e.value.length<6&&t.classList.add("show")},e.onkeyup=function(){(0===e.value.length||6<=e.value.length)&&t.classList.remove("show"),0!==e.value.length&&e.value.match(/[^a-z0-9_\.]/)?n.classList.add("show"):n.classList.remove("show")}}}),$(document).ready(function(){if(document.getElementsByClassName("faq-page").length){var e=function e(){var n=function n(e){if(/^#\S+$/.test(e)){var t=document.querySelector(".faq-page div"+e+" details");t&&t.setAttribute("open","")}};n(window.location.hash)};e(),window.addEventListener("hashchange",e)}}),$(document).ready(function(){Array.prototype.forEach.call(document.getElementsByClassName("js_clickable"),function(t){t.addEventListener("click",function(){var e=t.getAttribute("data-target-url");window.location=e})})}),function(){function e(){var e=$("#page_header").height();$("#mobile_menu, #menu_overlay").css("top",e+"px");var t=$(window).height()-e;$("#mobile_menu, #menu_overlay").css("height",t+"px")}$("#mobile_menu").removeClass("without_javascript"),$("#mobile_menu-checkbox").removeAttr("checked"),e(),$("#mobile_menu-checkbox").change(function(){switch(e(),this.checked){case!0:$("body").removeClass("scrollbar_enabled "),$("body").addClass("scrollbar_disabled");break;case!1:$("body").removeClass("scrollbar_disabled"),$("body").addClass("scrollbar_enabled ")}}),$(window).resize(function(){e(),$("#mobile_menu-checkbox").is(":checked")&&$("#mobile_menu").is(":hidden")&&$("#mobile_menu-checkbox").removeAttr("checked").change()}),$("#menu_overlay").click(function(){$("#mobile_menu-checkbox").removeAttr("checked").change()})}.call(this),function(){function e(e,n){var i=document.createElement("script");i.async=1,i.onload=i.onreadystatechange=function(e,t){(t||!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,i=undefined,!t&&n&&setTimeout(n,0))},i.src=e,document.head.appendChild(i)}function i(i,r){var a;return function(){var e=this,t=arguments,n=function(){a=null,i.apply(e,t)};clearTimeout(a),a=setTimeout(n,r)}}function u(e){return--e*e*e+1}function t(r){function a(e){e=void 0!==e?e:"",t.className="password_strength_label "+e}function o(e){e=void 0!==e?e:0,n.style.backgroundColor="hsl( "+e+", 50%, 50%)",n.style.boxShadow="0 0 10px hsla("+e+", 50%, 50%, 0.5)"}function s(e){e=void 0!==e?e:0;var t=Math.max(0,Math.min(e,32)/32);n.style.width=100*u(t)+"%",o(120*t)}function e(){var e=l.value;if(0===e.length)a(),s();else{r.style.width=r.previousElementSibling.getBoundingClientRect().width+"px";var t=zxcvbn(e);s( 6t.guesses_log10);var n="easy";n=t.guesses_log10<=12?"easy":t.guesses_log10<=20?"weak":t.guesses_log10<=30?"secure":"very_secure";var i=setTimeout(function(){a(n)},500);$.getJSON("/password_lookup/plain/"+encodeURIComponent(e),function(e){clearTimeout(i),0<e.occurrences_count&&(n+="_public",o()),a(n)})}}var l=r.previousElementSibling,t=r.querySelector(".password_strength_label"),n=r.querySelector(".bar-inner");l.addEventListener("input",i(e,200))}
6password_strength_indicators=document.querySelectorAll(".password_strength_indication_area"),0<password_strength_indicators.length&&e(zxcvbnPath,function(){password_strength_indicators.forEach(t)})}(),navigator.serviceWorker&&navigator.serviceWorker.register("/serviceworker.js",{scope:"/"}),window.addEventListener("beforeinstallprompt",function(){});var docReadyCountdownFunc=function(){function t(e){var t=$("#time_until_next_basic_income");t.length&&(t[0].innerHTML=e)}function n(e){"number"!=typeof e&&(e=0);var t=Math.sign(e);e*=t,e/=1e3;var n=Math.floor(e/3600).toString(),i=Math.floor(e/60%60).toString(),r=Math.floor(e%60).toString(),a=n.padStart(2,0)+":"+i.padStart(2,0)+":"+r.padStart(2,0);return 0<t?o.countdown_positive.replace("%{time}",a):o.countdown_negative.replace("%{time}",a)}function i(e){t(n(o.parsed_timestamp_when_next_basic_income_is_available-e+o.now_start))}function e(){var e=(new Date).getTime()-o.now_start+1e3*o.seconds_until_next_basic_income_is_available;if(3e5<=Math.abs(e-o.parsed_timestamp_when_next_basic_income_is_available)&&(o.parsed_timestamp_when_next_basic_income_is_available=e),!o.claimable_basic_income_available&&!o.maintenance_overdue&&!isNaN(o.parsed_timestamp_when_next_basic_income_is_available))if(0<o.parsed_timestamp_when_next_basic_income_is_available-((new Date).getTime()-o.now_start)){i((new Date).getTime());setInterval(function(){i((new Date).getTime())},1e3)}else setTimeout(function(){location.reload()},3e4)}var r=$("#dashboard_data_container"),o={claimable_basic_income_available:r.data("claimable-basic-income-available"),timestamp_when_next_basic_income_is_available:r.data("timestamp-when-next-basic-income-is-available"),parsed_timestamp_when_next_basic_income_is_available:Date.parse(r.data("timestamp-when-next-basic-income-is-available")),seconds_until_next_basic_income_is_available:r.data("seconds-until-next-basic-income-is-available"),maintenance_overdue:r.data("maintenance-overdue"),countdown_positive:r.data("countdown-positive"),countdown_negative:r.data("countdown-negative"),reload_message_overdue:r.data("reload-message-overdue"),now_start:0};return e(),new Clipboard(".clipboard-btn"),{data:o,setCountdown:t,getCountdownString:n,countdownIntervalHandler:i,initCountdown:e}},countdown={};$(document).ready(function(){countdown=docReadyCountdownFunc()}),function(){var n=document.getElementById("telephone_number_claim_telephone_number");if(n){n.name="telephone_number_claim[telephone_number_input]";var i=window.intlTelInput(n,{formatOnInit:!0,separateDialCode:!0,utilsScript:libPhoneNumberUtilsPath,hiddenInput:"telephone_number",initialCountry:"gb",preferredCountries:[],separateDialCode:!0,autoPlaceholder:"gentle",formatOnDisplay:!1});n.removeAttribute("minlength"),n.removeAttribute("maxlength"),n.removeAttribute("pattern");for(var e=n.parentElement;"FORM"!==e.tagName;)e=e.parentElement;var t=function(){var e=i.selectedCountryData,t=window.intlTelInputUtils.formatNumber(n.value,e.iso2,0);t.startsWith("+"+e.dialCode)&&(t=t.slice(e.dialCode.length+1)),n.value=t};n.addEventListener("blur",t),n.addEventListener("paste",function(){setTimeout(t)}),e.addEventListener("submit",function(){var e=i.selectedCountryData.iso2;return 0===window.intlTelInputUtils.getValidationError(n.value,e)&&(i._handleHiddenInputSubmit(),!0)})}}(),$(document).ready(function(){function e(e){return new RegExp("(?:^(?:([0-9]{12}|[a-z][a-z0-9_\\.]{5,127}?)\\+8(?:[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))$)|(?:^(?:([3][0-9][0-9a-f]{22}|[67][0-9a-f]{11,255}?)\\+9(?:[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}))$)","").test(e)}function t(e){return/^\-?\+?\d+([\.,\u066b]\d+)?$/.test(e)}function n(e){return/^\-\d+([\.,\u066b]\d+)?$/.test(e)}function i(e){return e=e.replace(/[,\u066b]/,"."),(e=Number(e))<c.value}function r(e){e?(m.type="submit",m.classList.remove("btn-secondary"),m.classList.add("btn-primary")):(m.type="button",m.classList.add("btn-secondary"),m.classList.remove("btn-primary"))}function a(){form_is_valid=!0,e(l.value)?g.classList.remove("show"):form_is_valid=!1,t(u.value)&&!n(u.value)?i(u.value)&&d.classList.remove("show"):form_is_valid=!1,r(form_is_valid)}function o(){e(l.value)||0==l.value.length||g.classList.add("show")}function s(){amount_input_value=u.value,0!=amount_input_value.length&&(t(amount_input_value)?n(amount_input_value)?(d.innerHTML=f,d.classList.add("show")):i(amount_input_value)||(d.innerHTML=p,d.classList.add("show")):(d.innerHTML=h,d.classList.add("show")))}if(0<document.getElementsByClassName("form_warning address").length){var l=document.getElementById("simple_transfer_recipient"),u=document.getElementById("transfer_amount"),c=document.getElementById("estimated_available_amount"),d=document.getElementById("amount_error"),h=document.getElementById("amount_is_not_a_number_error_message").value,f=document.getElementById("amount_is_negative_error_message").value,p=document.getElementById("balance_is_not_sufficient_error_message").value,g=document.getElementById("address_invali
6d_error"),m=document.getElementById("submit");window.addEventListener("load",a),l.addEventListener("input",a),l.addEventListener("blur",o),u.addEventListener("input",a),u.addEventListener("blur",s)}}),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Clipboard=e()}}(function(){var o;return function c(a,o,s){function l(n,e){if(!o[n]){if(!a[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(u)return u(n,!0);var i=new Error("Cannot find module '"+n+"'");throw i.code="MODULE_NOT_FOUND",i}var r=o[n]={exports:{}};a[n][0].call(r.exports,function(e){var t=a[n][1][e];return l(t||e)},r,r.exports,c,a,o,s)}return o[n].exports}for(var u="function"==typeof require&&require,e=0;e<s.length;e++)l(s[e]);return l}({1:[function(e,t){function n(e,t){for(;e&&e.nodeType!==i;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}var i=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}t.exports=n},{}],2:[function(e,t){function n(e,t,n,i,r){var a=o.apply(this,arguments);return e.addEventListener(n,a,r),{destroy:function(){e.removeEventListener(n,a,r)}}}function o(t,n,e,i){return function(e){e.delegateTarget=r(e.target,n),e.delegateTarget&&i.call(t,e)}}var r=e("./closest");t.exports=n},{"./closest":1}],3:[function(e,t,n){n.node=function(e){return e!==undefined&&e instanceof HTMLElement&&1===e.nodeType},n.nodeList=function(e){var t=Object.prototype.toString.call(e);return e!==undefined&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in e&&(0===e.length||n.node(e[0]))},n.string=function(e){return"string"==typeof e||e instanceof String},n.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},{}],4:[function(e,t){function n(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!o.string(t))throw new TypeError("Second argument must be a String");if(!o.fn(n))throw new TypeError("Third argument must be a Function");if(o.node(e))return i(e,t,n);if(o.nodeList(e))return r(e,t,n);if(o.string(e))return a(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function i(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function r(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}function a(e,t,n){return s(document.body,e,t,n)}var o=e("./is"),s=e("delegate");t.exports=n},{"./is":3,delegate:2}],5:[function(e,t){function n(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var i=window.getSelection(),r=document.createRange();r.selectNodeContents(e),i.removeAllRanges(),i.addRange(r),t=i.toString()}return t}t.exports=n},{}],6:[function(e,t){function n(){}n.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function i(){r.off(e,i),t.apply(n,arguments)}var r=this;return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,r=n.length;i<r;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],r=[];if(i&&t)for(var a=0,o=i.length;a<o;a++)i[a].fn!==t&&i[a].fn._!==t&&r.push(i[a]);return r.length?n[e]=r:delete n[e],this}},t.exports=n},{}],7:[function(i,r,a){!function(e,t){if("function"==typeof o&&o.amd)o(["module","select"],t);else if(void 0!==a)t(r,i("select"));
vendor: 6,728 bytes, line 6
6else{var n={exports:{}};t(n,e.select),e.clipboardAction=n.exports}}(this,function(e,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=n(t),p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}(),i=function(){function t(e){h(this,t),this.resolveOptions(e),this.initSelection()}return g(t,[{key:"resolveOptions",value:function n(e){var t=0<arguments.length&&e!==undefined?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function e(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function i(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,f["default"])(this.fakeElem),this.copyText()}},{key:"removeFake",value:function r(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function a(){this.selectedText=(0,f["default"])(this.target),this.copyText()}},{key:"copyText",value:function o(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function s(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function l(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function u(){this.removeFake()}},{key:"action",set:function c(e){var t=0<arguments.length&&e!==undefined?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function d(){return this._action}},{key:"target",set:function c(e){if(e!==undefined){if(!e||"object"!==(void 0===e?"undefined":p(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function d(){return this._target}}]),t}();e.exports=i})},{select:5}],8:[function(i,r,a){!function(e,t){if("function"==typeof o&&o.amd)o(["module","./clipboard-action","tiny-emitter","good-listener"],t);else if(void 0!==a)t(r,i("./clipboard-action"),i("tiny-emitter"),i("good-listener"));else{var n={exports:{}};t(n,e.clipboardAction,e.tinyEmitter,e.goodListener),e.clipboard=n.exports}}(this,function(e,t,n,i){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function h(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}var f=r(t),p=r(n),g=r(i),m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}(),a=function(){function i(e,t){u(this,i);var n=c(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return n.resolveOptions(t),n.listenClick(e),n}return d(i,p["default"]),v(i,[{key:"resolveOptions",value:function n(e){var t=0<arguments.length&&e!==undefined?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===m(t.container)?t.container:document.body}},{key:"listenClick",value:function r(e){var t=this;this.listener=(0,g["default"])(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function a(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new f["default"]({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function t(e){return h("action",e)}},{key:"defaultTarget",value:function o(e){var t=h("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function s(e){return h("text",e)}},{key:"destroy",value:function e(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function l(e){var t=0<arguments.length&&e!==undefined?arguments[0]:["copy","cut"],n="string"==typeof t?[t]:t,i=!!document.queryCommandSupported;
6return n.forEach(function(e){i=i&&!!document.queryCommandSupported(e)}),i}}]),i}();e.exports=a})},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Chart=t()}(this,function(){"use strict";function Ha(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function e(e,t){return e(t={exports:{}},t.exports),t.exports}function t(e){return e&&e["default"]||e}function u(){for(var e={},t=Object.keys($t),n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}function s(e){var t=u(),n=[e];for(t[e].distance=0;n.length;)for(var i=n.pop(),r=Object.keys($t[i]),a=r.length,o=0;o<a;o++){var s=r[o],l=t[s];-1===l.distance&&(l.distance=t[i].distance+1,l.parent=i,n.unshift(s))}return t}function a(t,n){return function(e){return n(t(e))}}function l(e,t){for(var n=[t[e].parent,e],i=$t[t[e].parent][e],r=t[e].parent;t[r].parent;)n.unshift(t[r].parent),i=a($t[t[r].parent][r],i),r=t[r].parent;return i.conversion=n,i}function r(t){var e=function(e){return e===undefined||null===e?e:(1<arguments.length&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}function o(r){var e=function(e){if(e===undefined||null===e)return e;1<arguments.length&&(e=Array.prototype.slice.call(arguments));var t=r(e);if("object"==typeof t)for(var n=t.length,i=0;i<n;i++)t[i]=Math.round(t[i]);return t};return"conversion"in r&&(e.conversion=r.conversion),e}function n(e){if(e){var t=/^#([a-fA-F0-9]{3,4})$/i,n=/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i,i=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,r=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,a=/(\w+)/,o=[0,0,0],s=1,l=e.match(t),u="";if(l){u=(l=l[1])[3];for(var c=0;c<o.length;c++)o[c]=parseInt(l[c]+l[c],16);u&&(s=Math.round(parseInt(u+u,16)/255*100)/100)}else if(l=e.match(n)){u=l[2],l=l[1];for(c=0;c<o.length;c++)o[c]=parseInt(l.slice(2*c,2*c+2),16);u&&(s=Math.round(parseInt(u,16)/255*100)/100)}else if(l=e.match(i)){for(c=0;c<o.length;c++)o[c]=parseInt(l[c+1]);s=parseFloat(l[4])}else if(l=e.match(r)){for(c=0;c<o.length;c++)o[c]=Math.round(2.55*parseFloat(l[c+1]));s=parseFloat(l[4])}else if(l=e.match(a)){if("transparent"==l[1])return[0,0,0,0];if(!(o=Jt[l[1]]))return}for(c=0;c<o.length;c++)o[c]=k(o[c],0,255);return s=s||0==s?k(s,0,1):1,o[3]=s,o}}function i(e){if(e){var t=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,n=e.match(t);if(n){var i=parseFloat(n[4]);return[k(parseInt(n[1]),0,360),k(parseFloat(n[2]),0,100),k(parseFloat(n[3]),0,100),k(isNaN(i)?1:i,0,1)]}}}function c(e){if(e){var t=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,n=e.match(t);if(n){var i=parseFloat(n[4]);return[k(parseInt(n[1]),0,360),k(parseFloat(n[2]),0,100),k(parseFloat(n[3]),0,100),k(isNaN(i)?1:i,0,1)]}}}function d(e){var t=n(e);return t&&t.slice(0,3)}function h(e){var t=i(e);return t&&t.slice(0,3)}function f(e){var t=n(e);return t?t[3]:(t=i(e))?t[3]:(t=c(e))?t[3]:void 0}function p(e,t){t=t!==undefined&&3===e.length?t:e[3];return"#"+C(e[0])+C(e[1])+C(e[2])+(0<=t&&t<1?C(Math.round(255*t)):"")}function g(e,t){return t<1||e[3]&&e[3]<1?m(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"}function m(e,t){return t===undefined&&(t=e[3]!==undefined?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function v(e,t){return t<1||e[3]&&e[3]<1?y(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"}function y(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function b(e,t){return t<1||e[3]&&e[3]<1?x(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"}function x(e,t){return t===undefined&&(t=e[3]!==undefined?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function _(e,t){return t===undefined&&(t=e[3]!==undefined?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(t!==undefined&&1!==t?", "+t:"")+")"}function w(e){return en[e.slice(0,3)]}
vendor: 16,098 bytes, lines 6-7
6function k(e,t,n){return Math.min(Math.max(t,e),n)}function C(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}function S(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function M(e){return!e||sn.isNullOrUndef(e.size)||sn.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function T(e,t,n,i){var r,a,o,s,l,u,c,d,h,f=Object.keys(n);for(r=0,a=f.length;r<a;++r)if(u=n[o=f[r]],t.hasOwnProperty(o)||(t[o]=u),(s=t[o])!==u&&"_"!==o[0]){if(e.hasOwnProperty(o)||(e[o]=s),(c=typeof u)===typeof(l=e[o]))if("string"===c){if((d=an(l)).valid&&(h=an(u)).valid){t[o]=h.mix(d,i).rgbString();continue}}else if(Mn.isFinite(l)&&Mn.isFinite(u)){t[o]=l+(u-l)*i;continue}t[o]=u}}function D(r,e){r._chartjs?r._chartjs.listeners.push(e):(Object.defineProperty(r,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Rn.forEach(function(e){var n="onData"+e.charAt(0).toUpperCase()+e.slice(1),i=r[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),e=i.apply(this,t);return Mn.each(r._chartjs.listeners,function(e){"function"==typeof e[n]&&e[n].apply(e,t)}),e}})}))}function A(t,e){var n=t._chartjs;if(n){var i=n.listeners,r=i.indexOf(e);-1!==r&&i.splice(r,1),0<i.length||(Rn.forEach(function(e){delete t[e]}),delete t._chartjs)}}function L(e,t){var n=t.startAngle,i=t.endAngle,r=t.pixelMargin,a=r/t.outerRadius,o=t.x,s=t.y;e.beginPath(),e.arc(o,s,t.outerRadius,n-a,i+a),t.innerRadius>r?(a=r/t.innerRadius,e.arc(o,s,t.innerRadius-r,i+a,n-a,!0)):e.arc(o,s,r,i+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}function E(e,t,n,i){var r,a=n.endAngle;for(i&&(n.endAngle=n.startAngle+Wn,L(e,n),n.endAngle=a,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=Wn,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+Wn,n.startAngle,!0),r=0;r<n.fullCircles;++r)e.stroke();for(e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.startAngle+Wn),r=0;r<n.fullCircles;++r)e.stroke()}function P(e,t,n){var i="inner"===t.borderAlign;i?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&E(e,t,n,i),i&&L(e,n),e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.endAngle),e.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0),e.closePath(),e.stroke()}function I(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}function O(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius}function N(e){return e&&e.width!==undefined}function F(e){var t,n,i,r,a;return N(e)?(a=e.width/2,t=e.x-a,n=e.x+a,i=Math.min(e.y,e.base),r=Math.max(e.y,e.base)):(a=e.height/2,t=Math.min(e.x,e.base),n=Math.max(e.x,e.base),i=e.y-a,r=e.y+a),{left:t,top:i,right:n,bottom:r}}function z(e,t,n){return e===t?n:e===n?t:e}function R(e){var t=e.borderSkipped,n={};return t&&(e.horizontal?e.base>e.x&&(t=z(t,"left","right")):e.base<e.y&&(t=z(t,"bottom","top")),n[t]=!0),n}function j(e,t,n){var i,r,a,o,s=e.borderWidth,l=R(e);return Mn.isObject(s)?(i=+s.top||0,r=+s.right||0,a=+s.bottom||0,o=+s.left||0):i=r=a=o=+s||0,{t:l.top||i<0?0:n<i?n:i,r:l.right||r<0?0:t<r?t:r,b:l.bottom||a<0?0:n<a?n:a,l:l.left||o<0?0:t<o?t:o}}function H(e){var t=F(e),n=t.right-t.left,i=t.bottom-t.top,r=j(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b}}}function W(e,t,n){var i=null===t,r=null===n,a=!(!e||i&&r)&&F(e);return a&&(i||t>=a.left&&t<=a.right)&&(r||n>=a.top&&n<=a.bottom)}function B(e,t){var n,i,r,a,o=e._length;for(r=1,a=t.length;r<a;++r)o=Math.min(o,Math.abs(t[r]-t[r-1]));for(r=0,a=e.getTicks().length;r<a;++r)i=e.getPixelForTick(r),o=0<r?Math.min(o,Math.abs(i-n)):o,n=i;return o}function Y(e,t,n){var i,r,a=n.barThickness,o=t.stackCount,s=t.pixels[e],l=Mn.isNullOrUndef(a)?B(t.scale,t.pixels):-1;return Mn.isNullOrUndef(a)?(i=l*n.categoryPercentage,r=n.barPercentage):(i=a*o,r=1),{chunk:i/o,ratio:r,start:s-i/2}}function V(e,t,n){var i,r=t.pixels,a=r[e],o=0<e?r[e-1]:null,s=e<r.length-1?r[e+1]:null,l=n.categoryPercentage;return null===o&&(o=a-(null===s?t.end-t.start:s-a)),null===s&&(s=a+a-o),i=a-(a-Math.min(o,s))/2*l,{chunk:Math.abs(s-o)/2*l/t.stackCount,ratio:n.barPercentage,start:i}}function q(e,t){var n=e&&e.options.ticks||{},i=n.reverse,r=n.min===undefined?t:0,a=n.max===undefined?t:0;return{start:i?a:r,end:i?r:a}}function U(e,t,n){var i=n/2,r=q(e,i),a=q(t,i);return{top:a.end,right:r.end,bottom:a.start,left:r.start}}function G(e){var t,n,i,r;return Mn.isObject(e)?(t=e.top,n=e.right,i=e.bottom,r=e.left):t=n=i=r=e,{top:t,right:n,bottom:i,left:r}}function $(e,t){return e["native"]?{x:e.x,y:e.y}:Mn.getRelativePosition(e,t)}function X(e,t){var n,i,r,a,o,s,l=e._getSortedVisibleDatasetMetas();for(i=0,a=l.length;i<a;++i)for(r=0,o=(n=l[i].data).length;r<o;++r)(s=n[r])._view.skip||t(s)}function K(e,t){var n=[];return X(e,function(e){e.inRange(t.x,t.y)&&n.push(e)}),n}function Z(e,i,r,a){var o=Number.POSITIVE_INFINITY,s=[];return X(e,function(e){if(!r||e.inRange(i.x,i.y)){var t=e.getCenterPoint(),n=a(i,t);n<o?(s=[e],o=n):n===o&&s.push(e)}}),s}function J(e){var r=-1!==e.indexOf("x"),a=-1!==e.indexOf("y");return function(e,t){var n=r?Math.abs(e.x-t.x):0,i=a?Math.abs(e.y-t.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(i,2))}}function Q(e,t,n){var i=$(t,e);n.axis=n.axis||"x";var r=J(n.axis),a=n.intersect?K(e,i):Z(e,i,!1,r),o=[];return a.length?(e._getSortedVisibleDatasetMetas().forEach(function(e){var t=e.data[a[0]._index];t&&!t._view.skip&&o.push(t)}),o):[]}function ee(e,t){return Mn.where(e,function(e){return e.pos===t})}function te(e,r){return e.sort(function(e,t){var n=r?t:e,i=r?e:t;return n.weight===i.weight?n.index-i.index:n.weight-i.weight})}function ne(e){var t,n,i,r=[];for(t=0,n=(e||[]).length;t<n;++t)i=e[t],r.push({index:t,box:i,pos:i.position,horizontal:i.isHorizontal(),weight:i.weight});return r}function ie(e,t){var n,i,r;for(n=0,i=e.length;n<i;++n)(r=e[n]).width=r.horizontal?r.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,r.height=r.horizontal&&t.hBoxMaxHeight}function re(e){var t=ne(e),n=te(ee(t,"left"),!0),i=te(ee(t,"right")),r=te(ee(t,"top"),!0),a=te(ee(t,"bottom"));return{leftAndTop:n.concat(r),rightAndBottom:i.concat(a),chartArea:ee(t,"chartArea"),vertical:n.concat(i),horizontal:r.concat(a)}}function ae(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function oe(e,t,n){var i,r,a=n.box,o=e.maxPadding;if(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?a.height:a.width,e[n.pos]+=n.size,a.getPadding){var s=a.getPadding();o.top=Math.max(o.top,s.top),o.left=Math.max(o.left,s.left),o.bottom=Math.max(o.bottom,s.bottom),o.right=Math.max(o.right,s.right)}if(i=t.outerWidth-ae(o,e,"left","right"),r=t.outerHeight-ae(o,e,"top","bottom"),i!==e.w||r!==e.h){e.w=i,e.h=r;var l=n.horizontal?[i,e.w]:[r,e.h];return!(l[0]===l[1]||isNaN(l[0])&&isNaN(l[1]))}}function se(n){function e(e){var t=Math.max(i[e]-n[e],0);return n[e]+=t,t}var i=n.maxPadding;n.y+=e("top"),n.x+=e("left"),e("right"),e("bottom")}function le(e,n){function t(e){var t={left:0,top:0,right:0,bottom:0};return e.forEach(function(e){t[e]=Math.max(n[e],i[e])}),t}var i=n.maxPadding;return t(e?["left","right"]:["top","bottom"])}function ue(e,t,n){var i,r,a,o,s,l,u=[];for(i=0,r=e.length;i<r;++i)(o=(a=e[i]).box).update(a.width||t.w,a.height||t.h,le(a.horizontal,t)),oe(t,n,a)&&(l=!0,u.length&&(s=!0)),o.fullWidth||u.push(a);return s&&ue(u,t,n)||l}function ce(e,t,n){var i,r,a,o,s=n.padding,l=t.x,u=t.y;for(i=0,r=e.length;i<r;++i)o=(a=e[i]).box,a.horizontal?(o.left=o.fullWidth?s.left:t.left,o.right=o.fullWidth?n.outerWidth-s.right:t.left+t.w,o.top=u,o.bottom=u+o.height,o.width=o.right-o.left,u=o.bottom):(o.left=l,o.right=l+o.width,o.top=t.top,o.bottom=t.top+t.h,o.height=o.bottom-o.top,l=o.right);t.x=l,t.y=u}function de(e,t){var n=Mn.getStyle(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):undefined}function he(e,t){var n=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e[Li]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===r||""===r){var a=de(e,"width");a!==undefined&&(e.width=a)}if(null===i||""===i)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var o=de(e,"height");a!==undefined&&(e.height=o)}return e}function fe(e,t,n){e.addEventListener(t,n,zi)}function pe(e,t,n){e.removeEventListener(t,n,zi)}function ge(e,t,n,i,r){return{type:e,chart:t,"native":r||null,x:n!==undefined?n:null,y:i!==undefined?i:null}}function me(e,t){var n=Fi[e.type]||e.type,i=Mn.getRelativePosition(e,t);return ge(n,t,i.x,i.y,e)}function ve(e,t){var n=!1,i=[];return function(){i=Array.prototype.slice.call(arguments),t=t||this,n||(n=!0,Mn.requestAnimFrame.call(window,function(){n=!1,e.apply(t,i)}))}}function ye(e){var t=document.createElement("div");return t.className=e||"",t}function be(e){var t=1e6,n=ye(Pi),i=ye(Pi+"-expand"),r=ye(Pi+"-shrink");i.appendChild(ye()),r.appendChild(ye()),n.appendChild(i),n.appendChild(r),n._reset=function(){i.scrollLeft=t,i.scrollTop=t,r.scrollLeft=t,r.scrollTop=t};var a=function(){n._reset(),e()};return fe(i,"scroll",a.bind(i,"expand")),fe(r,"scroll",a.bind(r,"shrink")),n}function xe(t,n){var e=t[Li]||(t[Li]={}),i=e.renderProxy=function(e){e.animationName===Oi&&n()};Mn.each(Ni,function(e){fe(t,e,i)}),e.reflow=!!t.offsetParent,t.classList.add(Ii)}function _e(t){var e=t[Li]||{},n=e.renderProxy;n&&(Mn.each(Ni,function(e){pe(t,e,n)}),delete e.renderProxy),t.classList.remove(Ii)}function we(n,i,r){var a=n[Li]||(n[Li]={}),t=a.resizer=be(ve(function(){if(a.resizer){var e=r.options.maintainAspectRatio&&n.parentNode,t=e?e.clientWidth:0;i(ge("resize",r)),e&&e.clientWidth<t&&r.canvas&&i(ge("resize",r))}}));xe(n,function(){if(a.resizer){var e=n.parentNode;e&&e!==t.parentNode&&e.insertBefore(t,e.firstChild),t._reset()}})}function ke(e){var t=e[Li]||{},n=t.resizer;delete t.resizer,_e(e),n&&n.parentNode&&n.parentNode.removeChild(n)}function Ce(e,t){var n=e[Li]||(e[Li]={});if(!n.containsStyles){n.containsStyles=!0,t="/* Chart.js */\n"+t;var i=document.createElement("style");i.setAttribute("type","text/css"),i.appendChild(document.createTextNode(t)),e.appendChild(i)}}function Se(e,t){return t&&(Mn.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Me(e){return("string"==typeof e||e instanceof String)&&-1<e.indexOf("\n")?e.split("\n"):e}function Te(e){var t=e._xScale,n=e._yScale||e._scale,i=e._index,r=e._datasetIndex,a=e._chart.getDatasetMeta(r).controller,o=a._getIndexScale(),s=a._getValueScale();return{xLabel:t?t.getLabelForIndex(i,r):"",yLabel:n?n.getLabelForIndex(i,r):"",label:o?""+o.getLabelForIndex(i,r):"",value:s?""+s.getLabelForIndex(i,r):"",index:i,datasetIndex:r,x:e._model.x,y:e._model.y}}function De(e){var t=bn.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Yi(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Yi(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Yi(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Yi(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Yi(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Yi(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Yi(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Yi(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Yi(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function Ae(e,t){var n=e._chart.ctx,i=2*t.yPadding,r=0,a=t.body,o=a.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0);o+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,l=t.footer.length, 7u=t.titleFontSize,c=t.bodyFontSize,d=t.footerFontSize;i+=s*u,i+=s?(s-1)*t.titleSpacing:0,i+=s?t.titleMarginBottom:0,i+=o*c,i+=o?(o-1)*t.bodySpacing:0,i+=l?t.footerMarginTop:0,i+=l*d,i+=l?(l-1)*t.footerSpacing:0;var h=0,f=function(e){r=Math.max(r,n.measureText(e).width+h)};return n.font=Mn.fontString(u,t._titleFontStyle,t._titleFontFamily),Mn.each(t.title,f),n.font=Mn.fontString(c,t._bodyFontStyle,t._bodyFontFamily),Mn.each(t.beforeBody.concat(t.afterBody),f),h=t.displayColors?c+2:0,Mn.each(a,function(e){Mn.each(e.before,f),Mn.each(e.lines,f),Mn.each(e.after,f)}),h=0,n.font=Mn.fontString(d,t._footerFontStyle,t._footerFontFamily),Mn.each(t.footer,f),{width:r+=2*t.xPadding,height:i}}function Le(e,t){var n,i,r,a,o,s=e._model,l=e._chart,u=e._chart.chartArea,c="center",d="center";s.y<t.height?d="top":s.y>l.height-t.height&&(d="bottom");var h=(u.left+u.right)/2,f=(u.top+u.bottom)/2;"center"===d?(n=function(e){return e<=h},i=function(e){return h<e}):(n=function(e){return e<=t.width/2},i=function(e){return e>=l.width-t.width/2}),r=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},a=function(e){return e-t.width-s.caretSize-s.caretPadding<0},o=function(e){return e<=f?"top":"bottom"},n(s.x)?(c="left",r(s.x)&&(c="center",d=o(s.y))):i(s.x)&&(c="right",a(s.x)&&(c="center",d=o(s.y)));var p=e._options;return{xAlign:p.xAlign?p.xAlign:c,yAlign:p.yAlign?p.yAlign:d}}function Ee(e,t,n,i){var r=e.x,a=e.y,o=e.caretSize,s=e.caretPadding,l=e.cornerRadius,u=n.xAlign,c=n.yAlign,d=o+s,h=l+s;return"right"===u?r-=t.width:"center"===u&&((r-=t.width/2)+t.width>i.width&&(r=i.width-t.width),r<0&&(r=0)),"top"===c?a+=d:a-="bottom"===c?t.height+d:t.height/2,"center"===c?"left"===u?r+=d:"right"===u&&(r-=d):"left"===u?r-=h:"right"===u&&(r+=h),{x:r,y:a}}function Pe(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Ie(e){return Se([],Me(e))}function Oe(){return Mn.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,i){if("xAxes"===e||"yAxes"===e){var r,a,o,s=n[e].length;for(t[e]||(t[e]=[]),r=0;r<s;++r)o=n[e][r],a=Xi(o.type,"xAxes"===e?"category":"linear"),r>=t[e].length&&t[e].push({}),!t[e][r].type||o.type&&o.type!==t[e][r].type?Mn.merge(t[e][r],[Bi.getScaleDefaults(a),o]):Mn.merge(t[e][r],o)}else Mn._merger(e,t,n,i)}})}function Ne(){return Mn.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,i){var r=t[e]||Object.create(null),a=n[e];"scales"===e?t[e]=Oe(r,a):"scale"===e?t[e]=Mn.merge(r,[Bi.getScaleDefaults(a.type),a]):Mn._merger(e,t,n,i)}})}function Fe(e){var t=(e=e||Object.create(null)).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Ne(bn.global,bn[e.type],e.options||{}),e}function ze(t){var e=t.options;Mn.each(t.scales,function(e){Mi.removeBox(t,e)}),e=Ne(bn.global,bn[t.config.type],e),t.options=t.config.options=e,t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.tooltip._options=e.tooltips,t.tooltip.initialize()}function Re(e,t,n){for(var i,r=function(e){return e.id===i};i=t+n++,0<=Mn.findIndex(e,r););return i}function je(e){return"top"===e||"bottom"===e}function He(n,i){return function(e,t){return e[n]===t[n]?e[i]-t[i]:e[n]-t[n]}}function We(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Be(e){this.options=e||{}}function Ye(e,t){for(var n=[],i=e.length/t,r=0,a=e.length;r<a;r+=i)n.push(e[Math.floor(r)]);return n}function Ve(e,t,n){var i,r=e.getTicks().length,a=Math.min(t,r-1),o=e.getPixelForTick(a),s=e._startPixel,l=e._endPixel,u=1e-6;if(!(n&&(i=1===r?Math.max(o-s,l-o):0===t?(e.getPixelForTick(1)-o)/2:(o-e.getPixelForTick(a-1))/2,(o+=a<t?i:-i)<s-u||l+u<o)))return o}function qe(e,r){Mn.each(e,function(e){var t,n=e.gc,i=n.length/2;if(r<i){for(t=0;t<i;++t)delete e.data[n[t]];n.splice(0,i)}})}function Ue(e,t,n,i){function r(e){return{width:b[e]||0,height:x[e]||
70,offset:_[e]||0}}var a,o,s,l,u,c,d,h,f,p,g,m,v,y=n.length,b=[],x=[],_=[],w=0,k=0;for(a=0;a<y;++a){if(l=n[a].label,u=n[a].major?t.major:t.minor,e.font=c=u.string,d=i[c]=i[c]||{data:{},gc:[]},h=u.lineHeight,f=p=0,nr(l)||tr(l)){if(tr(l))for(o=0,s=l.length;o<s;++o)g=l[o],nr(g)||tr(g)||(f=Mn.measureText(e,d.data,d.gc,f,g),p+=h)}else f=Mn.measureText(e,d.data,d.gc,f,l),p=h;b.push(f),x.push(p),_.push(h/2),w=Math.max(f,w),k=Math.max(p,k)}return qe(i,y),m=b.indexOf(w),v=x.indexOf(k),{first:r(0),last:r(y-1),widest:r(m),highest:r(v)}}function Ge(e){return e.drawTicks?e.tickMarkLength:0}function $e(e){var t,n;return e.display?(t=Mn.options._parseFont(e),n=Mn.options.toPadding(e.padding),t.lineHeight+n.height):0}function Xe(e,t){return Mn.extend(Mn.options._parseFont({fontFamily:ir(t.fontFamily,e.fontFamily),fontSize:ir(t.fontSize,e.fontSize),fontStyle:ir(t.fontStyle,e.fontStyle),lineHeight:ir(t.lineHeight,e.lineHeight)}),{color:Mn.options.resolve([t.fontColor,e.fontColor,bn.global.defaultFontColor])})}function Ke(e){var t=Xe(e,e.minor);return{minor:t,major:e.major.enabled?Xe(e,e.major):t}}function Ze(e){var t,n,i,r=[];for(n=0,i=e.length;n<i;++n)"undefined"!=typeof(t=e[n])._index&&r.push(t);return r}function Je(e){var t,n,i=e.length;if(i<2)return!1;for(n=e[0],t=1;t<i;++t)if(e[t]-e[t-1]!==n)return!1;return n}function Qe(e,t,n,i){var r,a,o,s,l=Je(e),u=(t.length-1)/i;if(!l)return Math.max(u,1);for(o=0,s=(r=Mn.math._factorize(l)).length-1;o<s;o++)if(u<(a=r[o]))return a;return Math.max(u,1)}function et(e){var t,n,i=[];for(t=0,n=e.length;t<n;t++)e[t].major&&i.push(t);return i}function tt(e,t,n){var i,r,a=0,o=t[0];for(n=Math.ceil(n),i=0;i<e.length;i++)r=e[i],i===o?(r._index=i,o=t[++a*n]):delete r.label}function nt(e,t,n,i){var r,a,o,s,l=ir(n,0),u=Math.min(ir(i,e.length),e.length),c=0;for(t=Math.ceil(t),i&&(t=(r=i-n)/Math.floor(r/t)),s=l;s<0;)c++,s=Math.round(l+c*t);for(a=Math.max(l,0);a<u;a++)o=e[a],a===s?(o._index=a,c++,s=Math.round(l+c*t)):delete o.label}function it(e,t){var n,i,r,a,o=[],s=1e-14,l=e.stepSize,u=l||1,c=e.maxTicks-1,d=e.min,h=e.max,f=e.precision,p=t.min,g=t.max,m=Mn.niceNum((g-p)/c/u)*u;if(m<s&&hr(d)&&hr(h))return[p,g];c<(a=Math.ceil(g/m)-Math.floor(p/m))&&(m=Mn.niceNum(a*m/c/u)*u),l||hr(f)?n=Math.pow(10,Mn._decimalPlaces(m)):(n=Math.pow(10,f),m=Math.ceil(m*n)/n),i=Math.floor(p/m)*m,r=Math.ceil(g/m)*m,l&&(!hr(d)&&Mn.almostWhole(d/m,m/1e3)&&(i=d),!hr(h)&&Mn.almostWhole(h/m,m/1e3)&&(r=h)),a=(r-i)/m,a=Mn.almostEquals(a,Math.round(a),m/1e3)?Math.round(a):Math.ceil(a),i=Math.round(i*n)/n,r=Math.round(r*n)/n,o.push(hr(d)?i:d);for(var v=1;v<a;++v)o.push(Math.round((i+v*m)*n)/n);return o.push(hr(h)?r:h),o}function rt(e,t,n){var i=[n.type,t===undefined&&n.stack===undefined?n.index:"",n.stack].join(".");return e[i]===undefined&&(e[i]={pos:[],neg:[]}),e[i]}function at(e,t,n,i){var r,a,o=e.options,s=rt(t,o.stacked,n),l=s.pos,u=s.neg,c=i.length;for(r=0;r<c;++r)a=e._parseValue(i[r]),isNaN(a.min)||isNaN(a.max)||n.data[r].hidden||(l[r]=l[r]||0,u[r]=u[r]||0,o.relativePoints?l[r]=100:a.min<0||a.max<0?u[r]+=a.min:l[r]+=a.max)}function ot(e,t,n){var i,r,a=n.length;for(i=0;i<a;++i)r=e._parseValue(n[i]),isNaN(r.min)||isNaN(r.max)||t.data[i].hidden||(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}function st(e,t){var n,i,r=[],a=br(e.min,Math.pow(10,Math.floor(xr(t.min)))),o=Math.floor(xr(t.max)),s=Math.ceil(t.max/Math.pow(10,o));0===a?(n=Math.floor(xr(t.minNotZero)),i=Math.floor(t.minNotZero/Math.pow(10,n)),r.push(a),a=i*Math.pow(10,n)):(n=Math.floor(xr(a)),i=Math.floor(a/Math.pow(10,n)));for(var l=n<0?Math.pow(10,Math.abs(n)):1;r.push(a),10===++i&&(i=1,l=0<=++n?1:l),a=Math.round(i*Math.pow(10,n)*l)/l,n<o||n===o&&i<s;);var u=br(e.max,a);return r.push(u),r}function lt(e,t){return Mn.isFinite(e)&&0<=e?e:t}function ut(e){var t=e.ticks;return t.display&&e.display?Cr(t.fontSize,bn.global.defaultFontSize)+2*t.backdropPaddingY:0}function ct(e,t,n){return Mn.isArray(n)?{w:Mn.longestText(e,e.font,n),h:n.length*t}:{w:e.measureText(n).width,h:t}}function dt(e,t,n,i,r){return e===i||e===r?{start:t-n/2,end:t+n/2}:e<i||r<e?{start:t-n,end:t}:{start:t,end:t+n}}function ht(e){var t,n,i,r=Mn.options._parseFont(e.options.pointLabels),a={l:0,r:e.width,t:0,b:e.height-e.paddingTop},o={};e.ctx.font=r.string,e._pointLabelSizes=[];var s=e.chart.data.labels.length;for(t=0;t<s;t++){i=e.getPointPosition(t,e.drawingArea+5),n=ct(e.ctx,r.lineHeight,e.pointLabels[t]),e._pointLabelSizes[t]=n;var l=e.getIndexAngle(t),u=Mn.toDegrees(l)%360,c=dt(u,i.x,n.w,0,180),d=dt(u,i.y,n.h,90,270);c.start<a.l&&(a.l=c.start,o.l=l),c.end>a.r&&(a.r=c.end,o.r=l),d.start<a.t&&(a.t=d.start,o.t=l),d.end>a.b&&(a.b=d.end,o.b=l)}e.setReductions(e.drawingArea,a,o)}function ft(e){return 0===e||180===e?"center":e<180?"left":"right"}function pt(e,t,n,i){var r,a,o=n.y+i/2;if(Mn.isArray(t))for(r=0,a=t.length;r<a;
vendor: 3,948 bytes, line 7
7++r)e.fillText(t[r],n.x,o),o+=i;else e.fillText(t,n.x,o)}function gt(e,t,n){90===e||270===e?n.y-=t.h/2:(270<e||e<90)&&(n.y-=t.h)}function mt(e){var t=e.ctx,n=e.options,i=n.pointLabels,r=ut(n),a=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),o=Mn.options._parseFont(i);t.save(),t.font=o.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;0<=s;s--){var l=0===s?r/2:0,u=e.getPointPosition(s,a+l+5),c=Sr(i.fontColor,s,bn.global.defaultFontColor);t.fillStyle=c;var d=e.getIndexAngle(s),h=Mn.toDegrees(d);t.textAlign=ft(h),gt(h,e._pointLabelSizes[s],u),pt(t,e.pointLabels[s],u,o.lineHeight)}t.restore()}function vt(e,t,n,i){var r,a=e.ctx,o=t.circular,s=e.chart.data.labels.length,l=Sr(t.color,i-1),u=Sr(t.lineWidth,i-1);if((o||s)&&l&&u){if(a.save(),a.strokeStyle=l,a.lineWidth=u,a.setLineDash&&(a.setLineDash(t.borderDash||[]),a.lineDashOffset=t.borderDashOffset||0),a.beginPath(),o)a.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{r=e.getPointPosition(0,n),a.moveTo(r.x,r.y);for(var c=1;c<s;c++)r=e.getPointPosition(c,n),a.lineTo(r.x,r.y)}a.closePath(),a.stroke(),a.restore()}}function yt(e){return Mn.isNumber(e)?e:0}function bt(e,t){return e-t}function xt(e){var t,n,i,r={},a=[];for(t=0,n=e.length;t<n;++t)r[i=e[t]]||(r[i]=!0,a.push(i));return a}function _t(e){return Mn.valueOrDefault(e.time.min,e.ticks.min)}function wt(e){return Mn.valueOrDefault(e.time.max,e.ticks.max)}function kt(e,t,n,i){if("linear"===i||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var r,a,o,s,l,u=[],c=[t];for(r=0,a=e.length;r<a;++r)t<(s=e[r])&&s<n&&c.push(s);for(c.push(n),r=0,a=c.length;r<a;++r)l=c[r+1],o=c[r-1],s=c[r],o!==undefined&&l!==undefined&&Math.round((l+o)/2)===s||u.push({time:s,pos:r/(a-1)});return u}function Ct(e,t,n){for(var i,r,a,o=0,s=e.length-1;0<=o&&o<=s;){if(r=e[(i=o+s>>1)-1]||null,a=e[i],!r)return{lo:null,hi:a};if(a[t]<n)o=i+1;else{if(!(r[t]>n))return{lo:r,hi:a};s=i-1}}return{lo:a,hi:null}}function St(e,t,n,i){var r=Ct(e,t,n),a=r.lo?r.hi?r.lo:e[e.length-2]:e[0],o=r.lo?r.hi?r.hi:e[e.length-1]:e[1],s=o[t]-a[t],l=s?(n-a[t])/s:0,u=(o[i]-a[i])*l;return a[i]+u}function Mt(e,t){var n=e._adapter,i=e.options.time,r=i.parser,a=r||i.format,o=t;return"function"==typeof r&&(o=r(o)),Mn.isFinite(o)||(o="string"==typeof a?n.parse(o,a):n.parse(o)),null!==o?+o:(r||"function"!=typeof a||(o=a(t),Mn.isFinite(o)||(o=n.parse(o))),o)}function Tt(e,t){if(Mn.isNullOrUndef(t))return null;var n=e.options.time,i=Mt(e,e.getRightValue(t));return null===i||n.round&&(i=+e._adapter.startOf(i,n.round)),i}function Dt(e,t,n,i){var r,a,o,s=Fr.length;for(r=Fr.indexOf(e);r<s-1;++r)if(o=(a=Nr[Fr[r]]).steps?a.steps:Or,a.common&&Math.ceil((n-t)/(o*a.size))<=i)return Fr[r];return Fr[s-1]}function At(e,t,n,i,r){var a,o;for(a=Fr.length-1;a>=Fr.indexOf(n);a--)if(o=Fr[a],Nr[o].common&&e._adapter.diff(r,i,o)>=t-1)return o;return Fr[n?Fr.indexOf(n):0]}function Lt(e){for(var t=Fr.indexOf(e)+1,n=Fr.length;t<n;++t)if(Nr[Fr[t]].common)return Fr[t]}function Et(e,t,n,i){var r,a=e._adapter,o=e.options,s=o.time,l=s.unit||Dt(s.minUnit,t,n,i),u=Er([s.stepSize,s.unitStepSize,1]),c="week"===l&&s.isoWeekday,d=t,h=[];if(c&&(d=+a.startOf(d,"isoWeek",c)),d=+a.startOf(d,c?"day":l),a.diff(n,t,l)>1e5*u)throw t+" and "+n+" are too far apart with stepSize of "+u+" "+l;for(r=d;r<n;r=+a.add(r,u,l))h.push(r);return r!==n&&"ticks"!==o.bounds||h.push(r),h}function Pt(e,t,n,i,r){var a,o,s=0,l=0;return r.offset&&t.length&&(a=St(e,"time",t[0],"pos"),s=1===t.length?1-a:(St(e,"time",t[1],"pos")-a)/2,o=St(e,"time",t[t.length-1],"pos"),l=1===t.length?o:(o-St(e,"time",t[t.length-2],"pos"))/2),{start:s,end:l,factor:1/(s+1+l)}}function It(e,t,n,i){var r,a,o=e._adapter,s=+o.startOf(t[0].value,i),l=t[t.length-1].value;for(r=s;r<=l;r=+o.add(r,1,i))0<=(a=n[r])&&(t[a].major=!0);return t}function Ot(e,t,n){var i,r,a=[],o={},s=t.length;for(i=0;i<s;++i)o[r=t[i]]=i,a.push({value:r,major:!1});return 0!==s&&n?It(e,a,o,n):a}function Nt(e,t,n){var i,r=e._model||{},a=r.fill;
7if(a===undefined&&(a=!!r.backgroundColor),!1===a||null===a)return!1;if(!0===a)return"origin";if(i=parseFloat(a,10),isFinite(i)&&Math.floor(i)===i)return"-"!==a[0]&&"+"!==a[0]||(i=t+i),!(i===t||i<0||n<=i)&&i;switch(a){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return a;default:return!1}}function Ft(e){var t,n=e.el._model||{},i=e.el._scale||{},r=e.fill,a=null;if(isFinite(r))return null;if("start"===r?a=n.scaleBottom===undefined?i.bottom:n.scaleBottom:"end"===r?a=n.scaleTop===undefined?i.top:n.scaleTop:n.scaleZero!==undefined?a=n.scaleZero:i.getBasePixel&&(a=i.getBasePixel()),a!==undefined&&null!==a){if(a.x!==undefined&&a.y!==undefined)return a;if(Mn.isFinite(a))return{x:(t=i.isHorizontal())?a:null,y:t?null:a}}return null}function zt(e){var t,n,i,r,a,o=e.el._scale,s=o.options,l=o.chart.data.labels.length,u=e.fill,c=[];if(!l)return null;for(t=s.ticks.reverse?o.max:o.min,n=s.ticks.reverse?o.min:o.max,i=o.getPointPositionForValue(0,t),r=0;r<l;++r)a="start"===u||"end"===u?o.getPointPositionForValue(r,"start"===u?t:n):o.getBasePosition(r),s.gridLines.circular&&(a.cx=i.x,a.cy=i.y,a.angle=o.getIndexAngle(r)-Math.PI/2),c.push(a);return c}function Rt(e){return(e.el._scale||{}).getPointPositionForValue?zt(e):Ft(e)}function jt(e,t,n){var i,r=e[t].fill,a=[t];if(!n)return r;for(;!1!==r&&-1===a.indexOf(r);){if(!isFinite(r))return r;if(!(i=e[r]))return!1;if(i.visible)return r;a.push(r),r=i.fill}return!1}function Ht(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),Yr[n](e))}function Wt(e){return e&&!e.skip}function Bt(e,t,n,i,r){var a,o,s,l;if(i&&r){for(e.moveTo(t[0].x,t[0].y),a=1;a<i;++a)Mn.canvas.lineTo(e,t[a-1],t[a]);if(n[0].angle===undefined)for(e.lineTo(n[r-1].x,n[r-1].y),a=r-1;0<a;--a)Mn.canvas.lineTo(e,n[a],n[a-1],!0);else for(o=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-o,2)+Math.pow(n[0].y-s,2)),a=r-1;0<a;--a)e.arc(o,s,l,n[a].angle,n[a-1].angle,!0)}}function Yt(e,t,n,i,r,a){var o,s,l,u,c,d,h,f,p=t.length,g=i.spanGaps,m=[],v=[],y=0,b=0;for(e.beginPath(),o=0,s=p;o<s;++o)c=n(u=t[l=o%p]._view,l,i),d=Wt(u),h=Wt(c),a&&f===undefined&&d&&(s=p+(f=o+1)),d&&h?(y=m.push(u),b=v.push(c)):y&&b&&(g?(d&&m.push(u),h&&v.push(c)):(Bt(e,m,v,y,b),y=b=0,m=[],v=[]));Bt(e,m,v,y,b),e.closePath(),e.fillStyle=r,e.fill()}function Vt(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}function qt(e,t){var n=new $r({ctx:e.ctx,options:t,chart:e});Mi.configure(e,n,t),Mi.addBox(e,n),e.legend=n}function Ut(e,t){var n=new Zr({ctx:e.ctx,options:t,chart:e});Mi.configure(e,n,t),Mi.addBox(e,n),e.titleBlock=n}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var Gt={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],ol
vendor: 5,853 bytes, line 7
7ive:[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=e(function(e){function o(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}var s={};for(var t in Gt)Gt.hasOwnProperty(t)&&(s[Gt[t]]=t);var l=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var n in l)if(l.hasOwnProperty(n)){if(!("channels"in l[n]))throw new Error("missing channels property: "+n);if(!("labels"in l[n]))throw new Error("missing channel labels property: "+n);if(l[n].labels.length!==l[n].channels)throw new Error("channel and label counts mismatch: "+n);var i=l[n].channels,r=l[n].labels;delete l[n].channels,delete l[n].labels,Object.defineProperty(l[n],"channels",{value:i}),Object.defineProperty(l[n],"labels",{value:r})}l.rgb.hsl=function(e){var t,n,i=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),l=s-o;return s===o?t=0:i===s?t=(r-a)/l:r===s?t=2+(a-i)/l:a===s&&(t=4+(i-r)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(o+s)/2,[t,100*(s===o?0:n<=.5?l/(s+o):l/(2-s-o)),100*n]},l.rgb.hsv=function(e){var t,n,i,r,a,o=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(o,s,l),c=u-Math.min(o,s,l),d=function(e){return(u-e)/6/c+.5};return 0===c?r=a=0:(a=c/u,t=d(o),n=d(s),i=d(l),o===u?r=i-n:s===u?r=1/3+t-i:l===u&&(r=2/3+n-t),r<0?r+=1:1<r&&(r-=1)),[360*r,100*a,100*u]},l.rgb.hwb=function(e){var t=e[0],n=e[1],i=e[2];return[l.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,i))),100*(i=1-1/255*Math.max(t,Math.max(n,i)))]},l.rgb.cmyk=function(e){var t,n=e[0]/255,i=e[1]/255,r=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-i,1-r)))/(1-t)||0),100*((1-i-t)/(1-t)||0),100*((1-r-t)/(1-t)||0),100*t]},l.rgb.keyword=function(e){var t=s[e];if(t)return t;var n,i=Infinity;for(var r in Gt)if(Gt.hasOwnProperty(r)){var a=o(e,Gt[r]);a<i&&(i=a,n=r)}return n},l.keyword.rgb=function(e){return Gt[e]},l.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*(.4124*(t=.04045<t?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=.04045<n?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=.04045<i?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*t+.7152*n+.0722*i),100*(.0193*t+.1192*n+.9505*i)]},l.rgb.lab=function(e){var t=l.rgb.xyz(e),n=t[0],i=t[1],r=t[2];return i/=100,r/=108.883,n=.008856<(n/=95.047)?Math.pow(n,1/3):7.787*n+16/116,[116*(i=.008856<i?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(r=.008856<r?Math.pow(r,1/3):7.787*r+16/116))]},l.hsl.rgb=function(e){var t,n,i,r,a,o=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[a=255*l,a,a];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),r=[0,0,0];for(var u=0;u<3;u++)(i=o+1/3*-(u-1))<0&&i++,1<i&&i--,a=6*i<1?t+6*(n-t)*i:2*i<1?n:3*i<2?t+(n-t)*(2/3-i)*6:t,r[u]=255*a;return r},l.hsl.hsv=function(e){var t=e[0],n=e[1]/100,i=e[2]/100,r=n,a=Math.max(i,.01);return n*=(i*=2)<=1?i:2-i,r*=a<=1?a:2-a,[t,100*(0===i?2*r/(a+r):2*n/(i+n)),100*((i+n)/2)]},l.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,i=e[2]/100,r=Math.floor(t)%6,a=t-Math.floor(t),o=255*i*(1-n),s=255*i*(1-n*a),l=255*i*(1-n*(1-a));switch(i*=255,r){case 0:return[i,l,o];case 1:return[s,i,o];case 2:return[o,i,l];case 3:return[o,s,i];case 4:return[l,o,i];case 5:return[i,o,s]}},l.hsv.hsl=function(e){var t,n,i,r=e[0],a=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return i=(2-a)*o,n=a*s,[r,100*(n=(n/=(t=(2-a)*s)<=1?t:2-t)||0),100*(i/=2)]},l.hwb.rgb=function(e){var t,n,i,r,a,o,s,l=e[0]/360,u=e[1]/100,c=e[2]/100,d=u+c;switch(1<d&&(u/=d,c/=d),i=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(i=1-i),r=u+i*((n=1-c)-u),t){default:case 6:case 0:a=n,o=r,s=u;break;case 1:a=r,o=n,s=u;break;case 2:a=u,o=n,s=r;break;case 3:a=u,o=r,s=n;break;case 4:a=r,o=u,s=n;break;case 5:a=n,o=u,s=r}return[255*a,255*o,255*s]},l.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,i=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,i*(1-r)+r))]},l.xyz.rgb=function(e){var t,n,i,r=e[0]/100,a=e[1]/100,o=e[2]/100;return n=-.9689*r+1.8758*a+.0415*o,i=.0557*r+-.204*a+1.057*o,t=.0031308<(t=3.2406*r+-1.5372*a+-.4986*o)?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=.0031308<n?1.055*Math.pow(n,1/2.4)-.055:12.92*n,i=.0031308<i?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},l.xyz.lab=function(e){var t=e[0],n=e[1],i=e[2];return n/=100,i/=108.883,t=.008856<(t/=95.047)?Math.pow(t,1/3):7.787*t+16/116,[116*(n=.008856<n?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(i=.008856<i?Math.pow(i,1/3):7.787*i+16/116))]},l.lab.xyz=function(e){var t,n,i,r=e[0];
vendor: 4,020 bytes, line 7
7t=e[1]/500+(n=(r+16)/116),i=n-e[2]/200;var a=Math.pow(n,3),o=Math.pow(t,3),s=Math.pow(i,3);return n=.008856<a?a:(n-16/116)/7.787,t=.008856<o?o:(t-16/116)/7.787,i=.008856<s?s:(i-16/116)/7.787,[t*=95.047,n*=100,i*=108.883]},l.lab.lch=function(e){var t,n=e[0],i=e[1],r=e[2];return(t=360*Math.atan2(r,i)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(i*i+r*r),t]},l.lch.lab=function(e){var t,n=e[0],i=e[1];return t=e[2]/360*2*Math.PI,[n,i*Math.cos(t),i*Math.sin(t)]},l.rgb.ansi16=function(e,t){var n=e[0],i=e[1],r=e[2],a=1 in arguments?t:l.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(i/255)<<1|Math.round(n/255));return 2===a&&(o+=60),o},l.hsv.ansi16=function(e){return l.rgb.ansi16(l.hsv.rgb(e),e[2])},l.rgb.ansi256=function(e){var t=e[0],n=e[1],i=e[2];return t===n&&n===i?t<8?16:248<t?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},l.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return 50<e&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(50<e));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},l.ansi256.rgb=function(e){if(232<=e){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},l.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},l.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map(function(e){return e+e}).join(""));var i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},l.rgb.hcg=function(e){var t,n=e[0]/255,i=e[1]/255,r=e[2]/255,a=Math.max(Math.max(n,i),r),o=Math.min(Math.min(n,i),r),s=a-o;return t=s<=0?0:a===n?(i-r)/s%6:a===i?2+(r-n)/s:4+(n-i)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},l.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,i=1,r=0;return(i=n<.5?2*t*n:2*t*(1-n))<1&&(r=(n-.5*i)/(1-i)),[e[0],100*i,100*r]},l.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,i=t*n,r=0;return i<1&&(r=(n-i)/(1-i)),[e[0],100*i,100*r]},l.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,i=e[2]/100;if(0===n)return[255*i,255*i,255*i];var r=[0,0,0],a=t%1*6,o=a%1,s=1-o,l=0;switch(Math.floor(a)){case 0:r[0]=1,r[1]=o,r[2]=0;break;case 1:r[0]=s,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=o;break;case 3:r[0]=0,r[1]=s,r[2]=1;break;case 4:r[0]=o,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=s}return l=(1-n)*i,[255*(n*r[0]+l),255*(n*r[1]+l),255*(n*r[2]+l)]},l.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),i=0;return 0<n&&(i=t/n),[e[0],100*i,100*n]},l.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return 0<n&&n<.5?i=t/(2*n):.5<=n&&n<1&&(i=t/(2*(1-n))),[e[0],100*i,100*n]},l.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},l.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,i=n-t,r=0;return i<1&&(r=(n-i)/(1-i)),[e[0],100*i,100*r]},l.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},l.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},l.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},l.gray.hsl=l.gray.hsv=function(e){return[0,0,e[0]]},l.gray.hwb=function(e){return[0,100,e[0]]},l.gray.cmyk=function(e){return[0,0,0,e[0]]},l.gray.lab=function(e){return[e[0],0,0]},l.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},l.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}),Xt=($t.rgb,$t.hsl,$t.hsv,$t.hwb,$t.cmyk,$t.xyz,$t.lab,$t.lch,$t.hex,$t.keyword,$t.ansi16,$t.ansi256,$t.hcg,$t.apple,$t.gray,function(e){for(var t=s(e),n={},i=Object.keys(t),r=i.length,a=0;a<r;a++){var o=i[a];null!==t[o].parent&&(n[o]=l(o,t))}return n}),Kt={};Object.keys($t).forEach(function(n){Kt[n]={},Object.defineProperty(Kt[n],"channels",{value:$t[n].channels}),Object.defineProperty(Kt[n],"labels",{value:$t[n].labels});var i=Xt(n);
7Object.keys(i).forEach(function(e){var t=i[e];Kt[n][e]=o(t),Kt[n][e].raw=r(t)})});var Zt=Kt,Jt={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]},Qt={getRgba:n,getHsla:i,getRgb:d,getHsl:h,getHwb:c,getAlpha:f,hexString:p,rgbString:g,rgbaString:m,percentString:v,percentaString:y,hslString:b,hslaString:x,hwbString:_,keyword:w},en={};for(var tn in Jt)en[Jt[tn]]=tn;var nn=function(e){return e instanceof nn?e:this instanceof nn?(this.valid=!1,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},void("string"==typeof e?(t=Qt.getRgba(e))?this.setValues("rgb",t):(t=Qt.getHsla(e))?this.setValues("hsl",t):(t=Qt.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&((t=e).r!==undefined||t.red!==undefined?this.setValues("rgb",t):t.l!==undefined||t.lightness!==un
7defined?this.setValues("hsl",t):t.v!==undefined||t.value!==undefined?this.setValues("hsv",t):t.w!==undefined||t.whiteness!==undefined?this.setValues("hwb",t):t.c===undefined&&t.cyan===undefined||this.setValues("cmyk",t)))):new nn(e);var t};nn.prototype={isValid:function(){return this.valid},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 e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])}, 8hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return e===undefined?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return Qt.hexString(this.values.rgb)},rgbString:function(){return Qt.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return Qt.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return Qt.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return Qt.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return Qt.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return Qt.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return Qt.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var i=e[n]/255;t[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return n<t?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return 7.1<=t?"AAA":4.5<=t?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=this,i=e,r=t===undefined?.5:t,a=2*r-1,o=n.alpha()-i.alpha(),s=((a*o==-1?a:(a+o)/(1+a*o))+1)/2,l=1-s;return this.rgb(s*n.red()+l*i.red(),s*n.green()+l*i.green(),s*n.blue()+l*i.blue()).alpha(n.alpha()*r+i.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new nn,i=this.values,r=n.values;for(var a in i)i.hasOwnProperty(a)&&(e=i[a],"[object Array]"===(t={}.toString.call(e))?r[a]=e.slice(0):"[object Number]"===t?r[a]=e:console.error("unexpected color value:",e));return n}},nn.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},nn.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},nn.prototype.getValues=function(e){for(var t=this.values,n={},i=0;i<e.length;i++)n[e.charAt(i)]=t[e][i];return 1!==t.alpha&&(n.a=t.alpha),n},nn.prototype.setValues=function(e,t){var n,i,r=this.values,a=this.spaces,o=this.maxes,s=1;if(this.valid=!0,"alpha"===e)s=t;else if(t.length)r[e]=t.slice(0,e.length),s=t[e.length];else if(t[e.charAt(0)]!==undefined){for(n=0;n<e.length;n++)r[e][n]=t[e.charAt(n)];s=t.a}else if(t[a[e][0]]!==undefined){var l=a[e];for(n=0;n<e.length;n++)r[e][n]=t[l[n]];s=t.alpha}if(r.alpha=Math.max(0,Math.min(1,s===undefined?r.alpha:s)),"alpha"===e)return!1;for(n=0;n<e.length;n++)i=Math.max(0,Math.min(o[e][n],r[e][n])),r[e][n]=Math.round(i);for(var u in a)u!==e&&(r[u]=Zt[e][u](r[e]));return!0},nn.prototype.setSpace=function(e,t){var n=t[0];return n===undefined?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n
vendor: 9,734 bytes, line 8
8),this)},nn.prototype.setChannel=function(e,t,n){var i=this.values[e];return n===undefined?i[t]:(n===i[t]||(i[t]=n,this.setValues(e,i)),this)},"undefined"!=typeof window&&(window.Color=nn);var rn,an=nn,on={noop:function(){},uid:(rn=0,function(){return rn++}),isNullOrUndef:function(e){return null==e},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},isFinite:function(e){return("number"==typeof e||e instanceof Number)&&isFinite(e)},valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,n){return on.valueOrDefault(on.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)},each:function(e,t,n,i){var r,a,o;if(on.isArray(e))if(a=e.length,i)for(r=a-1;0<=r;r--)t.call(n,e[r],r);else for(r=0;r<a;r++)t.call(n,e[r],r);else if(on.isObject(e))for(a=(o=Object.keys(e)).length,r=0;r<a;r++)t.call(n,e[o[r]],o[r])},arrayEquals:function(e,t){var n,i,r,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],a=t[n],r instanceof Array&&a instanceof Array){if(!on.arrayEquals(r,a))return!1}else if(r!==a)return!1;return!0},clone:function(e){if(on.isArray(e))return e.map(on.clone);if(on.isObject(e)){for(var t=Object.create(e),n=Object.keys(e),i=n.length,r=0;r<i;++r)t[n[r]]=on.clone(e[n[r]]);return t}return e},_merger:function(e,t,n,i){if(S(e)){var r=t[e],a=n[e];on.isObject(r)&&on.isObject(a)?on.merge(r,a,i):t[e]=on.clone(a)}},_mergerIf:function(e,t,n){if(S(e)){var i=t[e],r=n[e];on.isObject(i)&&on.isObject(r)?on.mergeIf(i,r):t.hasOwnProperty(e)||(t[e]=on.clone(r))}},merge:function(e,t,n){var i,r,a,o,s,l=on.isArray(t)?t:[t],u=l.length;if(!on.isObject(e))return e;for(i=(n=n||{}).merger||on._merger,r=0;r<u;++r)if(t=l[r],on.isObject(t))for(s=0,o=(a=Object.keys(t)).length;s<o;++s)i(a[s],e,t,n);return e},mergeIf:function(e,t){return on.merge(e,t,{merger:on._mergerIf})},extend:Object.assign||function(e){return on.merge(e,[].slice.call(arguments,1),{merger:function(e,t,n){t[e]=n[e]}})},inherits:function(e){var t=this,n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},i=function(){this.constructor=n};return i.prototype=t.prototype,n.prototype=new i,n.extend=on.inherits,e&&on.extend(n.prototype,e),n.__super__=t.prototype,n},_deprecated:function(e,t,n,i){t!==undefined&&console.warn(e+': "'+n+'" is deprecated. Please use "'+i+'" instead')}},sn=on;on.callCallback=on.callback,on.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},on.getValueOrDefault=on.valueOrDefault,on.getValueAtIndexOrDefault=on.valueAtIndexOrDefault;var ln={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return 1<=e?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-ln.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*ln.easeInBounce(2*e):.5*ln.easeOutBounce(2*e-1)+.5}},un={effects:ln};sn.easingEffects=ln;var cn=Math.PI,dn=cn/180,hn=2*cn,fn=cn/2,pn=cn/4,gn=2*cn/3,mn={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,i,r,a){if(a){var o=Math.min(a,r/2,i/2),s=t+o,l=n+o,u=t+i-o,c=n+r-o;e.moveTo(t,l),s<u&&l<c?(e.arc(s,l,o,-cn,-fn),e.arc(u,l,o,-fn,0),e.arc(u,c,o,0,fn),e.arc(s,c,o,fn,cn)):s<u?(e.moveTo(s,n),e.arc(u,l,o,-fn,fn),e.arc(s,l,o,fn,cn+fn)):l<c?(e.arc(s,l,o,-cn,0),e.arc(s,c,o,0,cn)):e.arc(s,l,o,-cn,cn),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,i,r)},drawPoint:function(e,t,n,i,r,a){var o,s,l,u,c,d=(a||0)*dn;if(t&&"object"==typeof t&&("[object HTMLImageElement]"===(o=t.toString())||"[object HTMLCanvasElement]"===o))return e.save(),e.translate(i,r),e.rotate(d),e.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),void e.restore();if(!(isNaN(n)||n<=0)){switch(e.beginPath(),t){default:e.arc(i,r,n,0,hn),e.closePath();break;case"triangle":e.moveTo(i+Math.sin(d)*n,r-Math.cos(d)*n),d+=gn,e.lineTo(i+Math.sin(d)*n,r-Math.cos(d)*n),d+=gn,e.lineTo(i+Math.sin(d)*n,r-Math.cos(d)*n),e.closePath();break;case"rectRounded":u=n-(c=.516*n),s=Math.cos(d+pn)*u,l=Math.sin(d+pn)*u,e.arc(i-s,r-l,c,d-cn,d-fn),e.arc(i+l,r-s,c,d-fn,d),e.arc(i+s,r+l,c,d,d+fn),e.arc(i-l,r+s,c,d+fn,d+cn),e.closePath();break;case"rect":if(!a){u=Math.SQRT1_2*n,e.rect(i-u,r-u,2*u,2*u);break}d+=pn;case"rectRot":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+l,r-s),e.lineTo(i+s,r+l),e.lineTo(i-l,r+s),e.closePath();break;case"crossRot":d+=pn;case"cross":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l),e.moveTo(i+l,r-s),e.lineTo(i-l,r+s);break;case"star":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l),e.moveTo(i+l,r-s),e.lineTo(i-l,r+s),d+=pn,s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l),e.moveTo(i+l,r-s),e.lineTo(i-l,r+s);break;case"line":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l);break;case"dash":e.moveTo(i,r),e.lineTo(i+Math.cos(d)*n,r+Math.sin(d)*n)}e.fill(),e.stroke()}},_isPointInArea:function(e,t){var n=1e-6;return e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,i){var r=n.steppedLine;if(r){if("middle"===r){var a=(t.x+n.x)/2;e.lineTo(a,i?n.y:t.y),e.lineTo(a,i?t.y:n.y)}else"after"===r&&!i||"after"!==r&&i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}else n.tension?e.bezierCurveTo(i?t.controlPointPreviousX:t.controlPointNextX,i?t.controlPointPreviousY:t.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}},vn=mn;sn.clear=mn.clear,sn.drawRoundedRectangle=function(e){e.beginPath(),mn.roundedRect.apply(mn,arguments)};var yn={_set:function(e,t){return sn.merge(this[e]||(this[e]={}),t)}};yn._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var bn=yn,xn=sn.valueOrDefault,_n={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,i,r;return sn.isObject(e)?(t=+e.top||0,n=+e.right||0,i=+e.bottom||0,r=+e.left||0):t=n=i=r=+e||0,{top:t,right:n,bottom:i,left:r,height:t+i,width:r+n}},_parseFont:function(e){var t=bn.global,n=xn(e.fontSize,t.defaultFontSize),i={family:xn(e.fontFamily,t.defaultFontFamily),lineHeight:sn.options.toLineHeight(xn(e.lineHeight,t.defaultLineHeight),n),size:n,style:xn(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return i.string=M(i),i},resolve:function(e,t,n,i){var r,a,o,s=!0;for(r=0,a=e.length;r<a;++r)if((o=e[r])!==undefined&&(t!==undefined&&"function"==typeof o&&(o=o(t),s=!1),n!==undefined&&sn.isArray(o)&&(o=o[n],s=!1),o!==undefined))return i&&!s&&(i.cacheable=!1),o}},wn={_factorize:function(e){var t,n=[],i=Math.sqrt(e);for(t=1;t<i;t++)e%t==0&&(n.push(t),n.push(e/t));return i===(0|i)&&n.push(i),n.sort(function(e,t){return e-t}).pop(),n},log10:Math.log10||function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t}},kn=wn;sn.log10=wn.log10;var Cn=function(t,n){return{x:function(e){return t+t+n-e},setWidth:function(e){n=e}
8,textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}},Sn=function(){return{x:function(e){return e},setWidth:function(){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e){return e}}},Mn=sn,Tn=un,Dn=vn,An=_n,Ln=kn,En={getRtlAdapter:function(e,t,n){return e?Cn(t,n):Sn()},overrideTextDirection:function(e,t){var n,i;"ltr"!==t&&"rtl"!==t||(i=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)},restoreTextDirection:function(e){var t=e.prevTextDirection;t!==undefined&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}};Mn.easing=Tn,Mn.canvas=Dn,Mn.options=An,Mn.math=Ln,Mn.rtl=En;var Pn=function(e){Mn.extend(this,e),this.initialize.apply(this,arguments)};Mn.extend(Pn.prototype,{_type:undefined,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=Mn.extend({},e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,i=t._start,r=t._view;return n&&1!==e?(r||(r=t._view={}),i||(i=t._start={}),T(i,r,n,e)):(t._view=Mn.extend({},n),t._start=null),t},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return Mn.isNumber(this._model.x)&&Mn.isNumber(this._model.y)}}),Pn.extend=Mn.inherits;var In=Pn,On=In.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),Nn=On;Object.defineProperty(On.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(On.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),bn._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:Mn.noop,onComplete:Mn.noop}});var Fn={animations:[],request:null,addAnimation:function(e,t,n,i){var r,a,o=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=n,i||(e.animating=!0),r=0,a=o.length;r<a;++r)if(o[r].chart===e)return void(o[r]=t);o.push(t),1===o.length&&this.requestAnimationFrame()},cancelAnimation:function(t){var e=Mn.findIndex(this.animations,function(e){return e.chart===t});-1!==e&&(this.animations.splice(e,1),t.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=Mn.requestAnimFrame.call(window,function(){e.request=null,e.startDigest()}))},startDigest:function(){var e=this;e.advance(),0<e.animations.length&&e.requestAnimationFrame()},advance:function(){for(var e,t,n,i,r=this.animations,a=0;a<r.length;)t=(e=r[a]).chart,n=e.numSteps,i=Math.floor((Date.now()-e.startTime)/e.duration*n)+1,e.currentStep=Math.min(i,n),Mn.callback(e.render,[t,e],t),Mn.callback(e.onAnimationProgress,[e],t),e.currentStep>=n?(Mn.callback(e.onAnimationComplete,[e],t),t.animating=!1,r.splice(a,1)):++a}},zn=Mn.options.resolve,Rn=["push","pop","shift","splice","unshift"],jn=function(e,t){this.initialize(e,t)};Mn.extend(jn.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.chart,i=n.scales,r=e.getDataset(),a=n.options.scales;null!==t.xAxisID&&t.xAxisID in i&&!r.xAxisID||(t.xAxisID=r.xAxisID||a.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in i&&!r.yAxisID||(t.yAxisID=r.yAxisID||a.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())}
vendor: 14,375 bytes, lines 8-9
8,_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&A(this._data,this)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,n=t.dataElementType;return n&&new n({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var e,t,n=this,i=n.getMeta(),r=n.getDataset().data||[],a=i.data;for(e=0,t=r.length;e<t;++e)a[e]=a[e]||n.createMetaData(e);i.dataset=i.dataset||n.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e=this,t=e.getDataset(),n=t.data||(t.data=[]);e._data!==n&&(e._data&&A(e._data,e),n&&Object.isExtensible(n)&&D(n,e),e._data=n),e.resyncElements()},_configure:function(){var e=this;e._config=Mn.merge(Object.create(null),[e.chart.options.datasets[e._type],e.getDataset()],{merger:function(e,t,n){"_meta"!==e&&"data"!==e&&Mn._merger(e,t,n)}})},_update:function(e){var t=this;t._configure(),t._cachedDataOpts=null,t.update(e)},update:Mn.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],i=n.length,r=0;r<i;++r)n[r].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,i=0;for(e.dataset&&e.dataset.draw();i<n;++i)t[i].draw()},getStyle:function(e){var t,n=this,i=n.getMeta(),r=i.dataset;return n._configure(),r&&e===undefined?t=n._resolveDatasetElementOptions(r||{}):(e=e||0,t=n._resolveDataElementOptions(i.data[e]||{},e)),!1!==t.fill&&null!==t.fill||(t.backgroundColor=t.borderColor),t},_resolveDatasetElementOptions:function(e,t){var n,i,r,a,o=this,s=o.chart,l=o._config,u=e.custom||{},c=s.options.elements[o.datasetElementType.prototype._type]||{},d=o._datasetElementOptions,h={},f={chart:s,dataset:o.getDataset(),datasetIndex:o.index,hover:t};for(n=0,i=d.length;n<i;++n)r=d[n],a=t?"hover"+r.charAt(0).toUpperCase()+r.slice(1):r,h[r]=zn([u[a],l[a],c[a]],f);return h},_resolveDataElementOptions:function(e,t){var n=this,i=e&&e.custom,r=n._cachedDataOpts;if(r&&!i)return r;var a,o,s,l,u=n.chart,c=n._config,d=u.options.elements[n.dataElementType.prototype._type]||{},h=n._dataElementOptions,f={},p={chart:u,dataIndex:t,dataset:n.getDataset(),datasetIndex:n.index},g={cacheable:!i};if(i=i||{},Mn.isArray(h))for(o=0,s=h.length;o<s;++o)f[l=h[o]]=zn([i[l],c[l],d[l]],p,t,g);else for(o=0,s=(a=Object.keys(h)).length;o<s;++o)f[l=a[o]]=zn([i[l],c[h[l]],c[l],d[l]],p,t,g);return g.cacheable&&(n._cachedDataOpts=Object.freeze(f)),f},removeHoverStyle:function(e){Mn.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,i=e.custom||{},r=e._model,a=Mn.getHoverColor;e.$previousStyle={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth},r.backgroundColor=zn([i.hoverBackgroundColor,t.hoverBackgroundColor,a(r.backgroundColor)],undefined,n),r.borderColor=zn([i.hoverBorderColor,t.hoverBorderColor,a(r.borderColor)],undefined,n),r.borderWidth=zn([i.hoverBorderWidth,t.hoverBorderWidth,r.borderWidth],undefined,n)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e,t,n,i,r,a,o=this.getMeta().dataset,s={};if(o){for(a=o._model,r=this._resolveDatasetElementOptions(o,!0),e=0,t=(i=Object.keys(r)).length;e<t;++e)s[n=i[e]]=a[n],a[n]=r[n];o.$previousStyle=s}},resyncElements:function(){var e=this,t=e.getMeta(),n=e.getDataset().data,i=t.data.length,r=n.length;r<i?t.data.splice(r,i-r):i<r&&e.insertElements(i,r-i)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),jn.extend=Mn.inherits;var Hn=jn,Wn=2*Math.PI;bn._set("global",{elements:{arc:{backgroundColor:bn.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var Bn=In.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var i=Mn.getAngleFromPoint(n,{x:e,y:t}),r=i.angle,a=i.distance,o=n.startAngle,s=n.endAngle;s<o;)s+=Wn;for(;s<r;)r-=Wn;for(;r<o;)r+=Wn;var l=o<=r&&r<=s,u=a>=n.innerRadius&&a<=n.outerRadius;return l&&u}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,i="inner"===n.borderAlign?.33:0,r={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-i,0),pixelMargin:i,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/Wn)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,r.fullCircles){for(r.endAngle=r.startAngle+Wn,t.beginPath(),t.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),e=0;e<r.fullCircles;++e)t.fill();r.endAngle=r.startAngle+n.circumference%Wn}t.beginPath(),t.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),t.fill(),n.borderWidth&&P(t,n,r),t.restore()}}),Yn=Mn.valueOrDefault,Vn=bn.global.defaultColor;bn._set("global",{elements:{line:{tension:.4,backgroundColor:Vn,borderWidth:3,borderColor:Vn,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var qn=In.extend({_type:"line",draw:function(){var e,t,n,i=this,r=i._view,a=i._chart.ctx,o=r.spanGaps,s=i._children.slice(),l=bn.global,u=l.elements.line,c=-1,d=i._loop;if(s.length){if(i._loop){for(e=0;e<s.length;++e)if(t=Mn.previousItem(s,e),!s[e]._view.skip&&t._view.skip){s=s.slice(e).concat(s.slice(0,e)),d=o;break}d&&s.push(s[0])}for(a.save(),a.lineCap=r.borderCapStyle||u.borderCapStyle,a.setLineDash&&a.setLineDash(r.borderDash||u.borderDash),a.lineDashOffset=Yn(r.borderDashOffset,u.borderDashOffset),a.lineJoin=r.borderJoinStyle||u.borderJoinStyle,a.lineWidth=Yn(r.borderWidth,u.borderWidth),a.strokeStyle=r.borderColor||l.defaultColor,a.beginPath(),(n=s[0]._view).skip||(a.moveTo(n.x,n.y),c=0),e=1;e<s.length;++e)n=s[e]._view,t=-1===c?Mn.previousItem(s,e):s[c],n.skip||(c!==e-1&&!o||-1===c?a.moveTo(n.x,n.y):Mn.canvas.lineTo(a,t._view,n),c=e);d&&a.closePath(),a.stroke(),a.restore()}}}),Un=Mn.valueOrDefault,Gn=bn.global.defaultColor;bn._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:Gn,borderColor:Gn,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var $n=In.extend({_type:"point",inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:I,inXRange:I,inYRange:O,getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._chart.ctx,i=t.pointStyle,r=t.rotation,a=t.radius,o=t.x,s=t.y,l=bn.global,u=l.defaultColor;t.skip||(e===undefined||Mn.canvas._isPointInArea(t,e))&&(n.strokeStyle=t.borderColor||u,n.lineWidth=Un(t.borderWidth,l.elements.point.borderWidth),n.fillStyle=t.backgroundColor||u,Mn.canvas.drawPoint(n,i,a,o,s,r))}}),Xn=bn.global.defaultColor;bn._set("global",{elements:{rectangle:{backgroundColor:Xn,borderColor:Xn,borderSkipped:"bottom",borderWidth:0}}});var Kn=In.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,n=H(t),i=n.outer,r=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(i.x,i.y,i.w,i.h),i.w===r.w&&i.h===r.h||(e.save(),e.beginPath(),e.rect(i.x,i.y,i.w,i.h),e.clip(),e.fillStyle=t.borderColor,e.rect(r.x,r.y,r.w,r.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return W(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return N(n)?W(n,e,null):W(n,null,t)},inXRange:function(e){return W(this._view,e,null)},inYRange:function(e){return W(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return N(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return N(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),Zn={},Jn=Bn,Qn=qn,ei=$n,ti=Kn;Zn.Arc=Jn,Zn.Line=Qn,Zn.Point=ei,Zn.Rectangle=ti;var ni=Mn._deprecated,ii=Mn.valueOrDefault;bn._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),bn._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var ri=Hn.extend({dataElementType:Zn.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,n=this;Hn.prototype.initialize.apply(n,arguments),(e=n.getMeta()).stack=n.getDataset().stack,e.bar=!0,t=n._getIndexScale().options,ni("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),ni("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),ni("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),ni("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),ni("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,n,i=this,r=i.getMeta().data;for(i._ruler=i.getRuler(),t=0,n=r.length;t<n;++t)i.updateElement(r[t],t,e)},updateElement:function(e,t,n){var i=this,r=i.getMeta(),a=i.getDataset(),o=i._resolveDataElementOptions(e,t);e._xScale=i.getScaleForId(r.xAxisID),e._yScale=i.getScaleForId(r.yAxisID),e._datasetIndex=i.index,e._index=t,e._model={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderSkipped:o.borderSkipped,borderWidth:o.borderWidth,datasetLabel:a.label,label:i.chart.data.labels[t]},Mn.isArray(a.data[t])&&(e._model.borderSkipped=null),i._updateElementGeometry(e,t,n,o),e.pivot()},_updateElementGeometry:function(e,t,n,i){var r=this,a=e._model,o=r._getValueScale(),s=o.getBasePixel(),l=o.isHorizontal(),u=r._ruler||r.getRuler(),c=r.calculateBarValuePixels(r.index,t,i),d=r.calculateBarIndexPixels(r.index,t,u,i);a.horizontal=l,a.base=n?s:c.base,a.x=l?n?s:c.head:d.center,a.y=l?d.center:n?s:c.head,a.height=l?d.size:undefined,a.width=l?undefined:d.size},_getStacks:function(e){var t,n,i=this,r=i._getIndexScale(),a=r._getMatchingVisibleMetas(i._type),o=r.options.stacked,s=a.length,l=[];for(t=0;t<s&&(n=a[t],(!1===o||-1===l.indexOf(n.stack)||o===undefined&&n.stack===undefined)&&l.push(n.stack),n.index!==e);++t);return l},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),i=t!==undefined?n.indexOf(t):-1;return-1===i?n.length-1:i},getRuler:function(){var e,t,n=this,i=n._getIndexScale(),r=[];for(e=0,t=n.getMeta().data.length;e<t;++e)r.push(i.getPixelForValue(null,e,n.index));return{pixels:r,start:i._startPixel,end:i._endPixel,stackCount:n.getStackCount(),scale:i}},calculateBarValuePixels:function(e,t,n){var i,r,a,o,s,l,u,c=this,d=c.chart,h=c._getValueScale(),f=h.isHorizontal(),p=d.data.datasets,g=h._getMatchingVisibleMetas(c._type),m=h._parseValue(p[e].data[t]),v=n.minBarLength,y=h.options.stacked,b=c.getMeta().stack,x=m.start===undefined?0:0<=m.max&&0<=m.min?m.min:m.max,_=m.start===undefined?m.end:0<=m.max&&0<=m.min?m.max-m.min:m.min-m.max,w=g.length;if(y||y===undefined&&b!==undefined)for(i=0;i<w&&(r=g[i]).index!==e;++i)r.stack===b&&(a=(u=h._parseValue(p[r.index].data[t])).start===undefined?u.end:0<=u.min&&0<=u.max?u.max:u.min,(m.min<0&&a<0||0<=m.max&&0<a)&&(x+=a));return o=h.getPixelForValue(x),l=(s=h.getPixelForValue(x+_))-o,v!==undefined&&Math.abs(l)<v&&(l=v,s=0<=_&&!f||_<0&&f?o-v:o+v),{size:l,base:o,head:s,center:s+l/2}},calculateBarIndexPixels:function(e,t,n,i){var r=this,a="flex"===i.barThickness?V(t,n,i):Y(t,n,i),o=r.getStackIndex(e,r.getMeta().stack),s=a.start+a.chunk*o+a.chunk/2,l=Math.min(ii(i.maxBarThickness,Infinity),a.chunk*a.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}},draw:function(){var e=this,t=e.chart,n=e._getValueScale(),i=e.getMeta().data,r=e.getDataset(),a=i.length,o=0;for(Mn.canvas.clipArea(t.ctx,t.chartArea);o<a;++o){var s=n._parseValue(r.data[o]);isNaN(s.min)||isNaN(s.max)||i[o].draw()}Mn.canvas.unclipArea(t.ctx)},_resolveDataElementOptions:function(){var e=this,t=Mn.extend({},Hn.prototype._resolveDataElementOptions.apply(e,arguments)),n=e._getIndexScale().options,i=e._getValueScale().options;return t.barPercentage=ii(n.barPercentage,t.barPercentage),t.barThickness=ii(n.barThickness,t.barThickness),t.categoryPercentage=ii(n.categoryPercentage,t.categoryPercentage),t.maxBarThickness=ii(n.maxBarThickness,t.maxBarThickness),t.minBarLength=ii(i.minBarLength,t.minBarLength),t}}),ai=Mn.valueOrDefault,oi=Mn.options.resolve;bn._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]}, 9tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",i=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+i.r+")"}}}});var si=Hn.extend({dataElementType:Zn.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroun
9dColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(n){var i=this,e=i.getMeta().data;Mn.each(e,function(e,t){i.updateElement(e,t,n)})},updateElement:function(e,t,n){var i=this,r=i.getMeta(),a=e.custom||{},o=i.getScaleForId(r.xAxisID),s=i.getScaleForId(r.yAxisID),l=i._resolveDataElementOptions(e,t),u=i.getDataset().data[t],c=i.index,d=n?o.getPixelForDecimal(.5):o.getPixelForValue("object"==typeof u?u:NaN,t,c),h=n?s.getBasePixel():s.getPixelForValue(u,t,c);e._xScale=o,e._yScale=s,e._options=l,e._datasetIndex=c,e._index=t,e._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:n?0:l.radius,skip:a.skip||isNaN(d)||isNaN(h),x:d,y:h},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options,i=Mn.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=ai(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=ai(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=ai(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveDataElementOptions:function(e,t){var n=this,i=n.chart,r=n.getDataset(),a=e.custom||{},o=r.data[t]||{},s=Hn.prototype._resolveDataElementOptions.apply(n,arguments),l={chart:i,dataIndex:t,dataset:r,datasetIndex:n.index};return n._cachedDataOpts===s&&(s=Mn.extend({},s)),s.radius=oi([a.radius,o.r,n._config.radius,i.options.elements.point.radius],l,t),s}}),li=Mn.valueOrDefault,ui=Math.PI,ci=2*ui,di=ui/2;bn._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t,n,i,r=document.createElement("ul"),a=e.data,o=a.datasets,s=a.labels;if(r.setAttribute("class",e.id+"-legend"),o.length)for(n=o[t=0].data.length;t<n;++t)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[t],s[t]&&i.appendChild(document.createTextNode(s[t]));return r.outerHTML},legend:{labels:{generateLabels:function(r){var a=r.data;return a.labels.length&&a.datasets.length?a.labels.map(function(e,t){var n=r.getDatasetMeta(0),i=n.controller.getStyle(t);return{text:e,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,hidden:isNaN(a.datasets[0].data[t])||n.data[t].hidden,index:t}}):[]}},onClick:function(e,t){var n,i,r,a=t.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n<i;++n)(r=o.getDatasetMeta(n)).data[a]&&(r.data[a].hidden=!r.data[a].hidden);o.update()}},cutoutPercentage:50,rotation:-di,circumference:ci,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],i=": "+t.datasets[e.datasetIndex].data[e.index];return Mn.isArray(n)?(n=n.slice())[0]+=i:n+=i,n}}}});var hi=Hn.extend({dataElementType:Zn.Arc,linkScales:Mn.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t,n,i,r,a=this,o=a.chart,s=o.chartArea,l=o.options,u=1,c=1,d=0,h=0,f=a.getMeta(),p=f.data,g=l.cutoutPercentage/100||0,m=l.circumference,v=a._getRingWeight(a.index);if(m<ci){var y=l.rotation%ci,b=(y+=ui<=y?-ci:y<-ui?ci:0)+m,x=Math.cos(y),_=Math.sin(y),w=Math.cos(b),k=Math.sin(b),C=y<=0&&0<=b||ci<=b,S=y<=di&&di<=b||ci+di<=b,M=y<=-di&&-di<=b||ui+di<=b,T=y===-ui||ui<=b?-1:Math.min(x,x*g,w,w*g),D=M?-1:Math.min(_,_*g,k,k*g),A=C?1:Math.max(x,x*g,w,w*g),L=S?1:Math.max(_,_*g,k,k*g);u=(A-T)/2,c=(L-D)/2,d=-(A+T)/2,h=-(L+D)/2}for(i=0,r=p.length;i<r;++i)p[i]._options=a._resolveDataElementOptions(p[i],i);for(o.borderWidth=a.getMaxBorderWidth(),t=(s.right-s.left-o.borderWidth)/u,n=(s.bottom-s.top-o.borderWidth)/c,o.outerRadius=Math.max(Math.min(t,n)/2,0),o.innerRadius=Math.max(o.outerRadius*g,0),o.radiusLength=(o.outerRadius-o.innerRadius)/(a._getVisibleDatasetWeightTotal()||1),o.offsetX=d*o.outerRadius,o.offsetY=h*o.outerRadius,f.total=a.c
vendor: 3,404 bytes, line 9
9alculateTotal(),a.outerRadius=o.outerRadius-o.radiusLength*a._getRingWeightOffset(a.index),a.innerRadius=Math.max(a.outerRadius-o.radiusLength*v,0),i=0,r=p.length;i<r;++i)a.updateElement(p[i],i,e)},updateElement:function(e,t,n){var i=this,r=i.chart,a=r.chartArea,o=r.options,s=o.animation,l=(a.left+a.right)/2,u=(a.top+a.bottom)/2,c=o.rotation,d=o.rotation,h=i.getDataset(),f=n&&s.animateRotate?0:e.hidden?0:i.calculateCircumference(h.data[t])*(o.circumference/ci),p=n&&s.animateScale?0:i.innerRadius,g=n&&s.animateScale?0:i.outerRadius,m=e._options||{};Mn.extend(e,{_datasetIndex:i.index,_index:t,_model:{backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,borderAlign:m.borderAlign,x:l+r.offsetX,y:u+r.offsetY,startAngle:c,endAngle:d,circumference:f,outerRadius:g,innerRadius:p,label:Mn.valueAtIndexOrDefault(h.label,t,r.data.labels[t])}});var v=e._model;n&&s.animateRotate||(v.startAngle=0===t?o.rotation:i.getMeta().data[t-1]._model.endAngle,v.endAngle=v.startAngle+v.circumference),e.pivot()},calculateTotal:function(){var n,i=this.getDataset(),e=this.getMeta(),r=0;return Mn.each(e.data,function(e,t){n=i.data[t],isNaN(n)||e.hidden||(r+=Math.abs(n))}),r},calculateCircumference:function(e){var t=this.getMeta().total;return 0<t&&!isNaN(e)?ci*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,i,r,a,o,s,l,u=this,c=0,d=u.chart;if(!e)for(t=0,n=d.data.datasets.length;t<n;++t)if(d.isDatasetVisible(t)){e=(i=d.getDatasetMeta(t)).data,t!==u.index&&(a=i.controller);break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)r=e[t],a?(a._configure(),o=a._resolveDataElementOptions(r,t)):o=r._options,"inner"!==o.borderAlign&&(c=(c=c<(s=o.borderWidth)?s:c)<(l=o.hoverBorderWidth)?l:c);return c},setHoverStyle:function(e){var t=e._model,n=e._options,i=Mn.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=li(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=li(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=li(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t},_getRingWeight:function(e){return Math.max(li(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});bn._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),bn._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var fi=ri.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),pi=Mn.valueOrDefault,gi=Mn.options.resolve,mi=Mn.canvas._isPointInArea;bn._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var vi=Hn.extend({datasetElementType:Zn.Line,dataElementType:Zn.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
9dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var t,n,i=this,r=i.getMeta(),a=r.dataset,o=r.data||[],s=i.chart.options,l=i._config,u=i._showLine=pi(l.showLine,s.showLines);for(i._xScale=i.getScaleForId(r.xAxisID),i._yScale=i.getScaleForId(r.yAxisID),u&&(l.tension!==undefined&&l.lineTension===undefined&&(l.lineTension=l.tension),a._scale=i._yScale,a._datasetIndex=i.index,a._children=o,a._model=i._resolveDatasetElementOptions(a),a.pivot()),t=0,n=o.length;t<n;++t)i.updateElement(o[t],t,e);for(u&&0!==a._model.tension&&i.updateBezierControlPoints(),t=0,n=o.length;t<n;++t)o[t].pivot()},updateElement:function(e,t,n){var i,r,a=this,o=a.getMeta(),s=e.custom||{},l=a.getDataset(),u=a.index,c=l.data[t],d=a._xScale,h=a._yScale,f=o.dataset._model,p=a._resolveDataElementOptions(e,t);i=d.getPixelForValue("object"==typeof c?c:NaN,t,u),r=n?h.getBasePixel():a.calculatePointY(c,t,u),e._xScale=d,e._yScale=h,e._options=p,e._datasetIndex=u,e._index=t,e._model={x:i,y:r,skip:s.skip||isNaN(i)||isNaN(r),radius:p.radius,pointStyle:p.pointStyle,rotation:p.rotation,backgroundColor:p.backgroundColor,borderColor:p.borderColor,borderWidth:p.borderWidth,tension:pi(s.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:p.hitRadius}},_resolveDatasetElementOptions:function(e){var t=this,n=t._config,i=e.custom||{},r=t.chart.options,a=r.elements.line,o=Hn.prototype._resolveDatasetElementOptions.apply(t,arguments);return o.spanGaps=pi(n.spanGaps,r.spanGaps),o.tension=pi(n.lineTension,a.tension),o.steppedLine=gi([i.steppedLine,n.steppedLine,a.stepped]),o.clip=G(pi(n.clip,U(t._xScale,t._yScale,o.borderWidth))),o},calculatePointY:function(e,t,n){var i,r,a,o,s,l,u,c=this,d=c.chart,h=c._yScale,f=0,p=0;if(h.options.stacked){for(s=+h.getRightValue(e),u=(l=d._getSortedVisibleDatasetMetas()).length,i=0;i<u&&(a=l[i]).index!==n;++i)r=d.data.datasets[a.index],"line"===a.type&&a.yAxisID===h.id&&((o=+h.getRightValue(r.data[t]))<0?p+=o||0:f+=o||0);return s<0?h.getPixelForValue(p+s):h.getPixelForValue(f+s)}return h.getPixelForValue(e)},updateBezierControlPoints:function(){function e(e,t,n){return Math.max(Math.min(e,n),t)}var t,n,i,r,a=this,o=a.chart,s=a.getMeta(),l=s.dataset._model,u=o.chartArea,c=s.data||[];if(l.spanGaps&&(c=c.filter(function(e){return!e._model.skip})),"monotone"===l.cubicInterpolationMode)Mn.splineCurveMonotone(c);else for(t=0,n=c.length;t<n;++t)i=c[t]._model,r=Mn.splineCurve(Mn.previousItem(c,t)._model,i,Mn.nextItem(c,t)._model,l.tension),i.controlPointPreviousX=r.previous.x,i.controlPointPreviousY=r.previous.y,i.controlPointNextX=r.next.x,i.controlPointNextY=r.next.y;if(o.options.elements.line.capBezierPoints)for(t=0,n=c.length;t<n;++t)i=c[t]._model,mi(i,u)&&(0<t&&mi(c[t-1]._model,u)&&(i.controlPointPreviousX=e(i.controlPointPreviousX,u.left,u.right),i.controlPointPreviousY=e(i.controlPointPreviousY,u.top,u.bottom)),t<c.length-1&&mi(c[t+1]._model,u)&&(i.controlPointNextX=e(i.controlPointNextX,u.left,u.right),i.controlPointNextY=e(i.controlPointNextY,u.top,u.bottom)))},draw:function(){var e,t=this,n=t.chart,i=t.getMeta(),r=i.data||[],a=n.chartArea,o=n.canvas,s=0,l=r.length;for(t._showLine&&(e=i.dataset._model.clip,Mn.canvas.clipArea(n.ctx,{left:!1===e.left?0:a.left-e.left,right:!1===e.right?o.width:a.right+e.right,top:!1===e.top?0:a.top-e.top,bottom:!1===e.bottom?o.height:a.bottom+e.bottom}),i.dataset.draw(),Mn.canvas.unclipArea(n.ctx));s<l;++s)r[s].draw(a)},setHoverStyle:function(e){var t=e._model,n=e._options,i=Mn.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=pi(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=pi(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=pi(n.hoverBorderWidth,n.borderWidth),t.radius=pi(n.hoverRadius,n.radius)}}),yi=Mn.options.resolve;bn._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t,n,i,r=document.createElement("ul"),a=e.data,o=a.datasets,s=a.labels;if(r.setAttribute("class",e.id+"-legend"),o.length)for(n=o[t=0].data.length;t<n;++t)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[t],s[t]&&i.appendChild(document.createTextNode(s[t]));return r.outerHTML},legend:{labels:{generateLabels:function(r){var a=r.data;return a.labels.length&&a.datasets.length?a.labels.map(function(e,t){var n=r.getDatasetMeta(0),i=n.controller.getStyle(t);return{text:e,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,hidden:isNaN(a.datasets[0].data[t])||n.data[t].hidden,index:t}}):[]}},onClick:function(e,t){var n,i,r,a=t.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n<i;++n)(r=o.getDatasetMeta(n)).data[a].hidden=!r.data[a].hidden;o.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var bi=Hn.extend({dataElementType:Zn.Arc,linkScales:Mn.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroun
9dColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,i,r=this,a=r.getDataset(),o=r.getMeta(),s=r.chart.options.startAngle||0,l=r._starts=[],u=r._angles=[],c=o.data;for(r._updateRadius(),o.count=r.countVisibleElements(),t=0,n=a.data.length;t<n;t++)l[t]=s,i=r._computeAngle(t),s+=u[t]=i;for(t=0,n=c.length;t<n;++t)c[t]._options=r._resolveDataElementOptions(c[t],t),r.updateElement(c[t],t,e)},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,i=t.options,r=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max(r/2,0),t.innerRadius=Math.max(i.cutoutPercentage?t.outerRadius/100*i.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var i=this,r=i.chart,a=i.getDataset(),o=r.options,s=o.animation,l=r.scale,u=r.data.labels,c=l.xCenter,d=l.yCenter,h=o.startAngle,f=e.hidden?0:l.getDistanceFromCenterForValue(a.data[t]),p=i._starts[t],g=p+(e.hidden?0:i._angles[t]),m=s.animateScale?0:l.getDistanceFromCenterForValue(a.data[t]),v=e._options||{};Mn.extend(e,{_datasetIndex:i.index,_index:t,_scale:l,_model:{backgroundColor:v.backgroundColor,borderColor:v.borderColor,borderWidth:v.borderWidth,borderAlign:v.borderAlign,x:c,y:d,innerRadius:0,outerRadius:n?m:f,startAngle:n&&s.animateRotate?h:p,endAngle:n&&s.animateRotate?h:g,label:Mn.valueAtIndexOrDefault(u,t,u[t])}}),e.pivot()},countVisibleElements:function(){var n=this.getDataset(),e=this.getMeta(),i=0;return Mn.each(e.data,function(e,t){isNaN(n.data[t])||e.hidden||i++}),i},setHoverStyle:function(e){var t=e._model,n=e._options,i=Mn.getHoverColor,r=Mn.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=r(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=r(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=r(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(e){var t=this,n=this.getMeta().count,i=t.getDataset(),r=t.getMeta();if(isNaN(i.data[e])||r.data[e].hidden)return 0;var a={chart:t.chart,dataIndex:e,dataset:i,datasetIndex:t.index};return yi([t.chart.options.elements.arc.angle,2*Math.PI/n],a,e)}});bn._set("pie",Mn.clone(bn.doughnut)),bn._set("pie",{cutoutPercentage:0});var xi=hi,_i=Mn.valueOrDefault;bn._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var wi=Hn.extend({datasetElementType:Zn.Line,dataElementType:Zn.Point,linkScales:Mn.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
9dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,i=this,r=i.getMeta(),a=r.dataset,o=r.data||[],s=i.chart.scale,l=i._config;for(l.tension!==undefined&&l.lineTension===undefined&&(l.lineTension=l.tension),a._scale=s,a._datasetIndex=i.index,a._children=o,a._loop=!0,a._model=i._resolveDatasetElementOptions(a),a.pivot(),t=0,n=o.length;t<n;++t)i.updateElement(o[t],t,e);for(i.updateBezierControlPoints(),t=0,n=o.length;t<n;++t)o[t].pivot()},updateElement:function(e,t,n){var i=this,r=e.custom||{},a=i.getDataset(),o=i.chart.scale,s=o.getPointPositionForValue(t,a.data[t]),l=i._resolveDataElementOptions(e,t),u=i.getMeta().dataset._model,c=n?o.xCenter:s.x,d=n?o.yCenter:s.y;e._scale=o,e._options=l,e._datasetIndex=i.index,e._index=t,e._model={x:c,y:d,skip:r.skip||isNaN(c)||isNaN(d),radius:l.radius,pointStyle:l.pointStyle,rotation:l.rotation,backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,tension:_i(r.tension,u?u.tension:0),hitRadius:l.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,t=e._config,n=e.chart.options,i=Hn.prototype._resolveDatasetElementOptions.apply(e,arguments);return i.spanGaps=_i(t.spanGaps,n.spanGaps),i.tension=_i(t.lineTension,n.elements.line.tension),i},updateBezierControlPoints:function(){function e(e,t,n){return Math.max(Math.min(e,n),t)}var t,n,i,r,a=this,o=a.getMeta(),s=a.chart.chartArea,l=o.data||[];for(o.dataset._model.spanGaps&&(l=l.filter(function(e){return!e._model.skip})),t=0,n=l.length;t<n;++t)i=l[t]._model,r=Mn.splineCurve(Mn.previousItem(l,t,!0)._model,i,Mn.nextItem(l,t,!0)._model,i.tension),i.controlPointPreviousX=e(r.previous.x,s.left,s.right),i.controlPointPreviousY=e(r.previous.y,s.top,s.bottom),i.controlPointNextX=e(r.next.x,s.left,s.right),i.controlPointNextY=e(r.next.y,s.top,s.bottom)},setHoverStyle:function(e){var t=e._model,n=e._options,i=Mn.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=_i(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=_i(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=_i(n.hoverBorderWidth,n.borderWidth),t.radius=_i(n.hoverRadius,n.radius)}});bn._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),bn._set("global",{datasets:{scatter:{showLine:!1}}});var ki={bar:ri,bubble:si,doughnut:hi,horizontalBar:fi,line:vi,polarArea:bi,pie:xi,radar:wi,scatter:vi},Ci={modes:{single:function(e,t){var n=$(t,e),i=[];return X(e,function(e){if(e.inRange(n.x,n.y))return i.push(e),i}),i.slice(0,1)},label:Q,index:Q,dataset:function(e,t,n){var i=$(t,e);n.axis=n.axis||"xy";var r=J(n.axis),a=n.intersect?K(e,i):Z(e,i,!1,r);return 0<a.length&&(a=e.getDatasetMeta(a[0]._datasetIndex).data),a},"x-axis":function(e,t){return Q(e,t,{intersect:!1})},point:function(e,t){return K(e,$(t,e))},nearest:function(e,t,n){var i=$(t,e);n.axis=n.axis||"xy";var r=J(n.axis);return Z(e,i,n.intersect,r)},x:function(e,t,n){var i=$(t,e),r=[],a=!1;return X(e,function(e){e.inXRange(i.x)&&r.push(e),e.inRange(i.x,i.y)&&(a=!0)}),n.intersect&&!a&&(r=[]),r},y:function(e,t,n){var i=$(t,e),r=[],a=!1;return X(e,function(e){e.inYRange(i.y)&&r.push(e),e.inRange(i.x,i.y)&&(a=!0)}),n.intersect&&!a&&(r=[]),r}}},Si=Mn.extend;bn._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var Mi={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]},e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var i,r=["fullWidth","position","weight"],a=r.length,o=0;o<a;++o)i=r[o],n.hasOwnProperty(i)&&(t[i]=n[i])},update:function(n,e,t){if(n){var i=n.options.layout||{},r=Mn.options.toPadding(i.padding),a=e-r.width,o=t-r.height,s=re(n.boxes),l=s.vertical,u=s.horizontal,c=Object.freeze({outerWidth:e,outerHeight:t,padding:r,availableWidth:a,vBoxMaxWidth:a/2/l.length,hBoxMaxHeight:o/2}),d=Si({maxPadding:Si({},r),w:a,h:o,x:r.left,y:r.top},r);ie(l.concat(u),c),ue(l,d,c),ue(u,d,c)&&ue(l,d,c),se(d),ce(s.leftAndTop,d,c),d.x+=d.w,d.y+=d.h,ce(s.rightAndBottom,d,c),n.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h},Mn.each(s.chartArea,function(e){var t=e.box;Si(t,n.chartArea),t.update(d.w,d.h)})}}},Ti={acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}},Di="/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n",Ai=t(Object.freeze({__proto__:null,"default":Di})),Li="$chartjs",Ei="chartjs-",Pi=Ei+"size-monitor",Ii=Ei+"render-monitor",Oi=Ei+"render-animation",Ni=["animationstart","webkitAnimationStart"],Fi={touchstart:"mousedown",touchmove:"mou
9semove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},zi=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(n){}return e}()&&{passive:!0},Ri={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document;Ce(t.host?t:document.head,Ai)}},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(this._ensureLoaded(e),he(e,t),n):null},releaseContext:function(e){var n=e.canvas;if(n[Li]){var i=n[Li].initial;["height","width"].forEach(function(e){var t=i[e];Mn.isNullOrUndef(t)?n.removeAttribute(e):n.setAttribute(e,t)}),Mn.each(i.style||{},function(e,t){n.style[t]=e}),n.width=n.width,delete n[Li]}},addEventListener:function(t,e,n){var i=t.canvas;if("resize"!==e){var r=n[Li]||(n[Li]={});fe(i,e,(r.proxies||(r.proxies={}))[t.id+"_"+e]=function(e){n(me(e,t))})}else we(i,n,t)},removeEventListener:function(e,t,n){var i=e.canvas;if("resize"!==t){var r=((n[Li]||{}).proxies||{})[e.id+"_"+t];r&&pe(i,t,r)}else ke(i)}};Mn.addEvent=fe,Mn.removeEvent=pe;var ji=Ri._enabled?Ri:Ti,Hi=Mn.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},ji);bn._set("global",{plugins:{}});var Wi={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),this._cacheId++},unregister:function(e){var n=this._plugins;[].concat(e).forEach(function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var i,r,a,o,s,l=this.descriptors(e),u=l.length;for(i=0;i<u;++i)if("function"==typeof(s=(a=(r=l[i]).plugin)[t])&&((o=[e].concat(n||[])).push(r.options),!1===s.apply(a,o)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var i=[],r=[],n=e&&e.config||{},a=n.options&&n.options.plugins||{};return this._plugins.concat(n.plugins||[]).forEach(function(e){if(-1===i.indexOf(e)){var t=e.id,n=a[t];!1!==n&&(!0===n&&(n=Mn.clone(bn.global.plugins[t])),i.push(e),r.push({plugin:e,options:n||{}}))}}),t.descriptors=r,t.id=this._cacheId,r},_invalidate:function(e){delete e.$plugins}},Bi={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=Mn.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:undefined},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?Mn.merge
9(Object.create(null),[bn.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var n=this;n.defaults.hasOwnProperty(e)&&(n.defaults[e]=Mn.extend(n.defaults[e],t))},addScalesToLayout:function(t){Mn.each(t.scales,function(e){e.fullWidth=e.options.fullWidth,e.position=e.options.position,e.weight=e.options.weight,Mi.addBox(t,e)})}},Yi=Mn.valueOrDefault,Vi=Mn.rtl.getRtlAdapter;bn._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,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,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:Mn.noop,title:function(e,t){var n="",i=t.labels,r=i?i.length:0;if(0<e.length){var a=e[0];a.label?n=a.label:a.xLabel?n=a.xLabel:0<r&&a.index<r&&(n=i[a.index])}return n},afterTitle:Mn.noop,beforeBody:Mn.noop,beforeLabel:Mn.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),Mn.isNullOrUndef(e.value)?n+=e.yLabel:n+=e.value,n},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:Mn.noop,afterBody:Mn.noop,beforeFooter:Mn.noop,footer:Mn.noop,afterFooter:Mn.noop}}});var qi={average:function(e){if(!e.length)return!1;var t,n,i=0,r=0,a=0;for(t=0,n=e.length;t<n;++t){var o=e[t];if(o&&o.hasValue()){var s=o.tooltipPosition();i+=s.x,r+=s.y,++a}}return{x:i/a,y:r/a}},nearest:function(e,t){var n,i,r,a=t.x,o=t.y,s=Number.POSITIVE_INFINITY;for(n=0,i=e.length;n<i;++n){var l=e[n];if(l&&l.hasValue()){var u=l.getCenterPoint(),c=Mn.distanceBetweenPoints(t,u);c<s&&(s=c,r=l)}}if(r){var d=r.tooltipPosition();a=d.x,o=d.y}return{x:a,y:o}}},Ui=In.extend({initialize:function(){this._model=De(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options.callbacks,n=t.beforeTitle.apply(e,arguments),i=t.title.apply(e,arguments),r=t.afterTitle.apply(e,arguments),a=[];return a=Se(a=Se(a=Se(a,Me(n)),Me(i)),Me(r))},getBeforeBody:function(){return Ie(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,n){var i=this,r=i._options.callbacks,a=[];return Mn.each(e,function(e){var t={before:[],lines:[],after:[]};Se(t.before,Me(r.beforeLabel.call(i,e,n))),Se(t.lines,r.label.call(i,e,n)),Se(t.after,Me(r.afterLabel.call(i,e,n))),a.push(t)}),a},getAfterBody:function(){return Ie(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),i=t.footer.apply(e,arguments),r=t.afterFooter.apply(e,arguments),a=[];return a=Se(a=Se(a=Se(a,Me(n)),Me(i)),Me(r))},update:function(e){var t,n,i=this,r=i._options,a=i._model,o=i._model=De(r),s=i._active,l=i._data,u={xAlign:a.xAlign,yAlign:a.yAlign},c={x:a.x,y:a.y},d={width:a.width,height:a.height},h={x:a.caretX,y:a.caretY};if(s.length){o.opacity=1;var f=[],p=[];h=qi[r.position].call(i,s,i._eventPosition);var g=[];for(t=0,n=s.length;t<n;++t)g.push(Te(s[t]));r.filter&&(g=g.filter(function(e){return r.filter(e,l)})),r.itemSort&&(g=g.sort(function(e,t){return r.itemSort(e,t,l)})),Mn.each(g,function(e){f.push(r.callbacks.labelColor.call(i,e,i._chart)),p.push(r.callbacks.labelTextColor.call(i,e,i._chart))}),o.title=i.getTitle(g,l),o.beforeBody=i.getBeforeBody(g,l),o.body=i.getBody(g,l),o.afterBody=i.getAfterBody(g,l),o.footer=i.getFooter(g,l),o.x=h.x,o.y=h.y,o.caretPadding=r.caretPadding,o.labelColors=f,o.labelTextColors=p,o.dataPoints=g,c=Ee(o,d=Ae(this,o),u=Le(this,d),i._chart)}else o.opacity=0;return o.xAlign=u.xAlign,o.yAlign=u.yAlign,o.x=c.x,o.y=c.y,o.width=d.width,o.height=d.height,o.caretX=h.x,o.caretY=h.y,i._model=o,e&&r.custom&&r.custom.call(i,o),i},drawCaret:function(e,t){var n=this._chart.ctx,i=this._view,r=this.getCaretPosition(e,t,i);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)},getCaretPosition:function(e,t,n){var i,r,a,o,s,l,u=n.caretSize,c=n.cornerRadius,d=n.xAlign,h=n.yAlign,f=e.x,p=e.y,g=t.width,m=t.height;if("center"===h)s=p+m/2,"left"===d?(r=(i=f)-u,a=i,o=s+u,l=s-u):(r=(i=f+g)+u,a=i,o=s-u,l=s+u);else if(i="left"===d?(r=f+c+u)-u:"right"===d?(r=f+g-c-u)-u:(r=n.caretX)-u,a=r+u,"top"===h)s=(o=p)-u,l=o;else{s=(o=p+m)+u,l=o;var v=a;a=i,i=v}return{x1:i,x2:r,x3:a,y1:o,y2:s,y3:l}},drawTitle:function(e,t,n){var i,r,a,o=t.title,s=o.length;if(s){var l=Vi(t.rtl,t.x,t.width);for(e.x=Pe(t,t._titleAlign),n.textAlign=l.textAlign(t._titleAlign),n.textBaseline="middle",i=t.titleFontSize,r=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=
vendor: 8,045 bytes, lines 9-10
9Mn.fontString(i,t._titleFontStyle,t._titleFontFamily),a=0;a<s;++a)n.fillText(o[a],l.x(e.x),e.y+i/2),e.y+=i+r,a+1===s&&(e.y+=t.titleMarginBottom-r)}},drawBody:function(t,e,n){var i,r,a,o,s,l,u,c,d=e.bodyFontSize,h=e.bodySpacing,f=e._bodyAlign,p=e.body,g=e.displayColors,m=0,v=g?Pe(e,"left"):0,y=Vi(e.rtl,e.x,e.width),b=function(e){n.fillText(e,y.x(t.x+m),t.y+d/2),t.y+=d+h},x=y.textAlign(f);for(n.textAlign=f,n.textBaseline="middle",n.font=Mn.fontString(d,e._bodyFontStyle,e._bodyFontFamily),t.x=Pe(e,x),n.fillStyle=e.bodyFontColor,Mn.each(e.beforeBody,b),m=g&&"right"!==x?"center"===f?d/2+1:d+2:0,s=0,u=p.length;s<u;++s){for(i=p[s],r=e.labelTextColors[s],a=e.labelColors[s],n.fillStyle=r,Mn.each(i.before,b),l=0,c=(o=i.lines).length;l<c;++l){if(g){var _=y.x(v);n.fillStyle=e.legendColorBackground,n.fillRect(y.leftForLtr(_,d),t.y,d,d),n.lineWidth=1,n.strokeStyle=a.borderColor,n.strokeRect(y.leftForLtr(_,d),t.y,d,d),n.fillStyle=a.backgroundColor,n.fillRect(y.leftForLtr(y.xPlus(_,1),d-2),t.y+1,d-2,d-2),n.fillStyle=r}b(o[l])}Mn.each(i.after,b)}m=0,Mn.each(e.afterBody,b),t.y-=h},drawFooter:function(e,t,n){var i,r,a=t.footer,o=a.length;if(o){var s=Vi(t.rtl,t.x,t.width);for(e.x=Pe(t,t._footerAlign),e.y+=t.footerMarginTop,n.textAlign=s.textAlign(t._footerAlign),n.textBaseline="middle",i=t.footerFontSize,n.fillStyle=t.footerFontColor,n.font=Mn.fontString(i,t._footerFontStyle,t._footerFontFamily),r=0;r<o;++r)n.fillText(a[r],s.x(e.x),e.y+i/2),e.y+=i+t.footerSpacing}},drawBackground:function(e,t,n,i){n.fillStyle=t.backgroundColor,n.strokeStyle=t.borderColor,n.lineWidth=t.borderWidth;var r=t.xAlign,a=t.yAlign,o=e.x,s=e.y,l=i.width,u=i.height,c=t.cornerRadius;n.beginPath(),n.moveTo(o+c,s),"top"===a&&this.drawCaret(e,i),n.lineTo(o+l-c,s),n.quadraticCurveTo(o+l,s,o+l,s+c),"center"===a&&"right"===r&&this.drawCaret(e,i),n.lineTo(o+l,s+u-c),n.quadraticCurveTo(o+l,s+u,o+l-c,s+u),"bottom"===a&&this.drawCaret(e,i),n.lineTo(o+c,s+u),n.quadraticCurveTo(o,s+u,o,s+u-c),"center"===a&&"left"===r&&this.drawCaret(e,i),n.lineTo(o,s+c),n.quadraticCurveTo(o,s,o+c,s),n.closePath(),n.fill(),0<t.borderWidth&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},i={x:t.x,y:t.y},r=Math.abs(t.opacity<.001)?0:t.opacity, 10a=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&a&&(e.save(),e.globalAlpha=r,this.drawBackground(i,t,e,n),i.y+=t.yPadding,Mn.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(i,t,e),this.drawBody(i,t,e),this.drawFooter(i,t,e),Mn.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t=this,n=t._options,i=!1;return t._lastActive=t._lastActive||[],"mouseout"===e.type?t._active=[]:(t._active=t._chart.getElementsAtEventForMode(e,n.mode,n),n.reverse&&t._active.reverse()),(i=!Mn.arrayEquals(t._active,t._lastActive))&&(t._lastActive=t._active,(n.enabled||n.custom)&&(t._eventPosition={x:e.x,y:e.y},t.update(!0),t.pivot())),i}}),Gi=qi,$i=Ui;$i.positioners=Gi;var Xi=Mn.valueOrDefault;bn._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Ki=function(e,t){return this.construct(e,t),this};Mn.extend(Ki.prototype,{construct:function(e,t){var n=this;t=Fe(t);var i=Hi.acquireContext(e,t),r=i&&i.canvas,a=r&&r.height,o=r&&r.width;n.id=Mn.uid(),n.ctx=i,n.canvas=r,n.config=t,n.width=o,n.height=a,n.aspectRatio=a?o/a:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],(n.chart=n).controller=n,Ki.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),i&&r?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return Wi.notify(e,"beforeInit"),Mn.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),Wi.notify(e,"afterInit"),e},clear:function(){return Mn.canvas.clear(this),this},stop:function(){return Fn.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,i=t.canvas,r=n.maintainAspectRatio&&t.aspectRatio||null,a=Math.max(0,Math.floor(Mn.getMaximumWidth(i))),o=Math.max(0,Math.floor(r?a/r:Mn.getMaximumHeight(i)));if((t.width!==a||t.height!==o)&&(i.width=t.width=a,i.height=t.height=o,i.style.width=a+"px",i.style.height=o+"px",Mn.retinaScale(t,n.devicePixelRatio),!e)){var s={width:a,height:o};Wi.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,n=e.scales||{},t=e.scale;Mn.each(n.xAxes,function(e,t){e.id||(e.id=Re(n.xAxes,"x-axis-",t))}),Mn.each(n.yAxes,function(e,t){e.id||(e.id=Re(n.yAxes,"y-axis-",t))}),t&&(t.id=t.id||"scale")},buildOrUpdateScales:function(){var o=this,e=o.options,s=o.scales||{},t=[],l=Object.keys(s).reduce(function(e,t){return e[t]=!1,e},{});e.scales&&(t=t.concat((e.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(e.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))),e.scale&&t.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),Mn.each(t,function(e){var t=e.options,n=t.id,i=Xi(t.type,e.dtype);je(t.position)!==je(e.dposition)&&(t.position=e.dposition),l[n]=!0;var r=null;if(n in s&&s[n].type===i)(r=s[n]).options=t,r.ctx=o.ctx,r.chart=o;else{var a=Bi.getScaleConstructor(i);if(!a)return;r=new a({id:n,type:i,options:t,ctx:o.ctx,chart:o}),s[r.id]=r}r.mergeTicksOptions(),e.isDefault&&(o.scale=r)}),Mn.each(l,function(e,t){e||delete s[t]}),o.scales=s,Bi.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,i=[],r=n.data.datasets;for(e=0,t=r.length;e<t;e++){var a=r[e],o=n.getDatasetMeta(e),s=a.type||n.config.type;if(o.type&&o.type!==s&&(n.destroyDatasetMeta(e),o=n.getDatasetMeta(e)),o.type=s,o.order=a.order||0,o.index=e,o.controller)o.controller.updateIndex(e),o.controller.linkScales();else{var l=ki[o.type];if(l===undefined)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new l(n,e),i.push(o.controller)}}return i},resetElements:function(){var n=this;Mn.each(n.data.datasets,function(e,t){n.getDatasetMeta(t).controller.reset()},n)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e,t){var n,i,r=this;if(e&&"object"==typeof e||(e={duration:e,lazy:t}),ze(r),Wi._invalidate(r),!1!==Wi.notify(r,"beforeUpdate")){r.tooltip._data=r.data;var a=r.buildOrUpdateControllers();for(n=0,i=r.data.datasets.length;n<i;n++)r.getDatasetMeta(n).controller.buildOrUpdateElements();r.updateLayout(),r.options.animation&&r.options.animation.duration&&Mn.each(a,function(e){e.reset()}),r.updateDatasets(),r.tooltip.initialize(),r.lastActive=[],Wi.notify(r,"afterUpdate"),r._layers.sort(He("z","_idx")),r._bufferedRender?r._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:r.render(e)}},updateLayout:function(){var t=this;!1!==Wi.notify(t,"beforeLayout")&&(Mi.update(this,this.width,this.height),t._layers=[],Mn.each(t.boxes,function(e){e._configure&&e._configure(),t._layers.push.apply(t._layers,e._layers())},t),t._layers.forEach(function(e,t){e._idx=t}),Wi.notify(t,"afterScaleUpdate"),Wi.notify(t,"afterLayout"))},updateDatasets:function(){var e=this;if(!1!==Wi.notify(e,"beforeDatasetsUpdate")){for(var t=0,n=e.data.datasets.length;t<n;++t)e.updateDataset(t);Wi.notify(e,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this,n=t.getDatasetMeta(e),i={meta:n,index:e};!1!==Wi.notify(t,"beforeDatasetUpdate",[i])&&(n.controller._update(),Wi.notify(t,"afterDatasetUpdate",[i]))},render:function(e,t){var n=this;e&&"object"==typeof e||(e={duration:e,lazy:t});var i=n.options.animation,r=Xi(e.duration,i&&i.duration),a=e.lazy;if(!1!==Wi.notify(n,"beforeRender")){var o=function(e){Wi.notify(n,"afterRe
10nder"),Mn.callback(i&&i.onComplete,[e],n)};if(i&&r){var s=new Nn({numSteps:r/16.66,easing:e.easing||i.easing,render:function(e,t){var n=Mn.easing.effects[t.easing],i=t.currentStep,r=i/t.numSteps;e.draw(n(r),r,i)},onAnimationProgress:i.onProgress,onAnimationComplete:o});Fn.addAnimation(n,s,r,a)}else n.draw(),o(new Nn({numSteps:0,chart:n}));return n}},draw:function(e){var t,n,i=this;if(i.clear(),Mn.isNullOrUndef(e)&&(e=1),i.transition(e),!(i.width<=0||i.height<=0)&&!1!==Wi.notify(i,"beforeDraw",[e])){for(n=i._layers,t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(i.chartArea);for(i.drawDatasets(e);t<n.length;++t)n[t].draw(i.chartArea);i._drawTooltip(e),Wi.notify(i,"afterDraw",[e])}},transition:function(e){for(var t=this,n=0,i=(t.data.datasets||[]).length;n<i;++n)t.isDatasetVisible(n)&&t.getDatasetMeta(n).controller.transition(e);t.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var t,n,i=this,r=[];for(t=0,n=(i.data.datasets||[]).length;t<n;++t)e&&!i.isDatasetVisible(t)||r.push(i.getDatasetMeta(t));return r.sort(He("order","index")),r},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t,n,i=this;if(!1!==Wi.notify(i,"beforeDatasetsDraw",[e])){for(n=(t=i._getSortedVisibleDatasetMetas()).length-1;0<=n;--n)i.drawDataset(t[n],e);Wi.notify(i,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n=this,i={meta:e,index:e.index,easingValue:t};!1!==Wi.notify(n,"beforeDatasetDraw",[i])&&(e.controller.draw(t),Wi.notify(n,"afterDatasetDraw",[i]))},_drawTooltip:function(e){var t=this,n=t.tooltip,i={tooltip:n,easingValue:e};!1!==Wi.notify(t,"beforeTooltipDraw",[i])&&(n.draw(),Wi.notify(t,"afterTooltipDraw",[i]))},getElementAtEvent:function(e){return Ci.modes.single(this,e)},getElementsAtEvent:function(e){return Ci.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return Ci.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var i=Ci.modes[t];return"function"==typeof i?i(this,e,n):[]},getDatasetAtEvent:function(e){return Ci.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this,n=t.data.datasets[e];n._meta||(n._meta={});var i=n._meta[t.id];return i||(i=n._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n.order||0,index:e}),i},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],i=n._meta&&n._meta[t];i&&(i.controller.destroy(),delete n._meta[t])},destroy:function(){var e,t,n=this,i=n.canvas;for(n.stop(),e=0,t=n.data.datasets.length;e<t;++e)n.destroyDatasetMeta(e);i&&(n.unbindEvents(),Mn.canvas.clear(n),Hi.releaseContext(n.ctx),n.canvas=null,n.ctx=null),Wi.notify(n,"destroy"),delete Ki.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new $i({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var t=this,n=t._listeners={},i=function(){t.eventHandler.apply(t,arguments)};Mn.each(t.options.events,function(e){Hi.addEventListener(t,e,i),n[e]=i}),t.options.responsive&&(i=function(){t.resize()},Hi.addEventListener(t,"resize",i),n.resize=i)},unbindEvents:function(){var n=this,e=n._listeners;e&&(delete n._listeners,Mn.each(e,function(e,t){Hi.removeEventListener(n,t,e)}))},updateHoverStyle:function(e,t,n){var i,r,a,o=n?"set":"remove";for(r=0,a=e.length;r<a;++r)(i=e[r])&&this.getDatasetMeta(i._datasetIndex).controller[o+"HoverStyle"](i);"dataset"===t&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+o+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==Wi.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var i=t.handleEvent(e);n&&(i=n._start?n.handleEvent(e):i|n.handleEvent(e)),Wi.notify(t,"afterEvent",[e]);var r=t._bufferedRequest;return r?t.render(r):i&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t=this,n=t.options||{},i=n.hover,r=!1;return t.lastActive=t.lastActive||[],"mouseout"===e.type?t.active=[]:t.active=t.getElementsAtEventForMode(e,i.mode,i),Mn.callback(n.onHover||n.hover.onHover,[e["native"],t.active],t),"mouseup"!==e.type&&"click"!==e.type||n.onClick&&n.onClick.call(t,e["native"],t.active),t.lastActive.length&&t.updateHoverStyle(t.lastActive,i.mode,!1),t.active.length&&i.mode&&t.updateHoverStyle(t.active,i.mode,!0),r=!Mn.arrayEquals(t.active,t.lastActive),t.lastActive=t.active,r}}),Ki.instances={};var Zi=Ki;(Ki.Controller=Ki).types={},Mn.configMerge=Ne,Mn.scaleMerge=Oe;
vendor: 12,609 bytes, line 10
10var Ji=function(){function c(e,t,n){var i;return"string"==typeof e?(i=parseInt(e,10),-1!==e.indexOf("%")&&(i=i/100*t.parentNode[n])):i=e,i}function d(e){return e!==undefined&&null!==e&&"none"!==e}function t(e,t,n){var i=document.defaultView,r=Mn._getParentNode(e),a=i.getComputedStyle(e)[t],o=i.getComputedStyle(r)[t],s=d(a),l=d(o),u=Number.POSITIVE_INFINITY;return s||l?Math.min(s?c(a,e,n):u,l?c(o,r,n):u):"none"}Mn.where=function(e,t){if(Mn.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return Mn.each(e,function(e){t(e)&&n.push(e)}),n},Mn.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=n===undefined?e:n;for(var i=0,r=e.length;i<r;++i)if(t.call(n,e[i],i,e))return i;return-1},Mn.findNextWhere=function(e,t,n){Mn.isNullOrUndef(n)&&(n=-1);for(var i=n+1;i<e.length;i++){var r=e[i];if(t(r))return r}},Mn.findPreviousWhere=function(e,t,n){Mn.isNullOrUndef(n)&&(n=e.length);for(var i=n-1;0<=i;i--){var r=e[i];if(t(r))return r}},Mn.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},Mn.almostEquals=function(e,t,n){return Math.abs(e-t)<n},Mn.almostWhole=function(e,t){var n=Math.round(e);return n-t<=e&&e<=n+t},Mn.max=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.max(e,t)},Number.NEGATIVE_INFINITY)},Mn.min=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.min(e,t)},Number.POSITIVE_INFINITY)},Mn.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0===(e=+e)||isNaN(e)?e:0<e?1:-1},Mn.toRadians=function(e){return e*(Math.PI/180)},Mn.toDegrees=function(e){return e*(180/Math.PI)},Mn._decimalPlaces=function(e){if(Mn.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},Mn.getAngleFromPoint=function(e,t){var n=t.x-e.x,i=t.y-e.y,r=Math.sqrt(n*n+i*i),a=Math.atan2(i,n);return a<-.5*Math.PI&&(a+=2*Math.PI),{angle:a,distance:r}},Mn.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Mn.aliasPixel=function(e){return e%2==0?0:.5},Mn._alignPixel=function(e,t,n){var i=e.currentDevicePixelRatio,r=n/2;return Math.round((t-r)*i)/i+r},Mn.splineCurve=function(e,t,n,i){var r=e.skip?t:e,a=t,o=n.skip?t:n,s=Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),l=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.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:a.x-d*(o.x-r.x),y:a.y-d*(o.y-r.y)},next:{x:a.x+h*(o.x-r.x),y:a.y+h*(o.y-r.y)}}},Mn.EPSILON=Number.EPSILON||1e-14,Mn.splineCurveMonotone=function(e){var t,n,i,r,a,o,s,l,u,c=(e||[]).map(function(e){return{model:e._model,deltaK:0,mK:0}}),d=c.length;for(t=0;t<d;++t)if(!(i=c[t]).model.skip){if(n=0<t?c[t-1]:null,(r=t<d-1?c[t+1]:null)&&!r.model.skip){var h=r.model.x-i.model.x;i.deltaK=0!==h?(r.model.y-i.model.y)/h:0}!n||n.model.skip?i.mK=i.deltaK:!r||r.model.skip?i.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(i.deltaK)?i.mK=0:i.mK=(n.deltaK+i.deltaK)/2}for(t=0;t<d-1;++t)i=c[t],r=c[t+1],i.model.skip||r.model.skip||(Mn.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=r.mK=0:(a=i.mK/i.deltaK,o=r.mK/i.deltaK,(l=Math.pow(a,2)+Math.pow(o,2))<=9||(s=3/Math.sqrt(l),i.mK=a*s*i.deltaK,r.mK=o*s*i.deltaK)));for(t=0;t<d;++t)(i=c[t]).model.skip||(n=0<t?c[t-1]:null,r=t<d-1?c[t+1]:null,n&&!n.model.skip&&(u=(i.model.x-n.model.x)/3,i.model.controlPointPreviousX=i.model.x-u,i.model.controlPointPreviousY=i.model.y-u*i.mK),r&&!r.model.skip&&(u=(r.model.x-i.model.x)/3,i.model.controlPointNextX=i.model.x+u,i.model.controlPointNextY=i.model.y+u*i.mK))},Mn.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},Mn.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},Mn.niceNum=function(e,t){var n=Math.floor(Mn.log10(e)),i=e/Math.pow(10,n);return(t?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},Mn.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},Mn.getRelativePosition=function(e,t){var n,i,r=e.originalEvent||e,a=e.target||e.srcElement,o=a.getBoundingClientRect(),s=r.touches;s&&0<s.length?(n=s[0].clientX,i=s[0].clientY):(n=r.clientX,i=r.clientY);var l=parseFloat(Mn.getStyle(a,"padding-left")),u=parseFloat(Mn.getStyle(a,"padding-top")),c=parseFloat(Mn.getStyle(a,"padding-right")),d=parseFloat(Mn.getStyle(a,"padding-bottom")),h=o.right-o.left-l-c,f=o.bottom-o.top-u-d;return{x:n=Math.round((n-o.left-l)/h*a.width/t.currentDevicePixelRatio),y:i=Math.round((i-o.top-u)/f*a.height/t.currentDevicePixelRatio)}},Mn.getConstraintWidth=function(e){return t(e,"max-width","clientWidth")},Mn.getConstraintHeight=function(e){return t(e,"max-height","clientHeight")},Mn._calculatePadding=function(e,t,n){return-1<(t=Mn.getStyle(e,t)).indexOf("%")?n*parseInt(t,10)/100:parseInt(t,10)},Mn._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},Mn.getMaximumWidth=function(e){var t=Mn._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,i=n-Mn._calculatePadding(t,"padding-left",n)-Mn._calculatePadding(t,"padding-right",n),r=Mn.getConstraintWidth(e);return isNaN(r)?i:Math.min(i,r)},Mn.getMaximumHeight=function(e){var t=Mn._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,i=n-Mn._calculatePadding(t,"padding-top",n)-Mn._calculatePadding(t,"padding-bottom",n),r=Mn.getConstraintHeight(e);return isNaN(r)?i:Math.min(i,r)},Mn.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},Mn.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var i=e.canvas,r=e.height,a=e.width;i.height=r*n,i.width=a*n,e.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=r+"px",i.style.width=a+"px")}},Mn.fontString=function(e,t,n){return t+" "+e+"px "+n},Mn.longestText=function(e,t,n,i){var r=(i=i||{}).data=i.data||{},a=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},a=i.garbageCollect=[],i.font=t),e.font=t;var o,s,l,u,c,d=0,h=n.length;for(o=0;o<h;o++)if((u=n[o])!==undefined&&null!==u&&!0!==Mn.isArray(u))d=Mn.measureText(e,r,a,d,u);else if(Mn.isArray(u))for(s=0,l=u.length;s<l;s++)(c=u[s])===undefined||null===c||Mn.isArray(c)||(d=Mn.measureText(e,r,a,d,c));var f=a.length/2;if(f>n.length){for(o=0;o<f;o++)delete r[a[o]];a.splice(0,f)}return d},Mn.measureText=function(e,t,n,i,r){var a=t[r];return a||(a=t[r]=e.measureText(r).width,n.push(r)),i<a&&(i=a),i},Mn.numberOfLabelLines=function(e){var t=1;return Mn.each(e,function(e){Mn.isArray(e)&&e.length>t&&(t=e.length)}),t},Mn.color=an?function(e){return e instanceof CanvasGradient&&(e=bn.global.defaultColor),an(e)}:function(e){return console.error("Color.js not found!"),e},Mn.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:Mn.color(e).saturate(.5).darken(.1).rgbString()}};Mn.extend(Be.prototype,{formats:We,parse:We,format:We,add:We,diff:We,startOf:We,endOf:We,_create:function(e){return e}}),Be.override=function(e){Mn.extend(Be.prototype,e)};var Qi={_date:Be},er={formatters:{values:function(e){return Mn.isArray(e)?e:""+e},linear:function(e,t,n){var i=3<n.length?n[2]-n[1]:n[1]-n[0];1<Math.abs(i)&&e!==Math.floor(e)&&(i=e-Math.floor(e));var r=Mn.log10(Math.abs(i)),a="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var o=Mn.log10(Math.abs(e)),s=Math.floor(o)-Math.floor(r);s=Math.max(Math.min(s,20),0),a=e.toExponential(s)}else{var l=-1*Math.floor(r);l=Math.max(Math.min(l,20),0),a=e.toFixed(l)}else a="0";return a},logarithmic:function(e,t,n){var i=e/Math.pow(10,Math.floor(Mn.log10(e)));return 0===e?"0":1===i||2===i||5===i||0===t||t===n.length-1?e.toExponential():""}}},tr=Mn.isArray,nr=Mn.isNullOrUndef,ir=Mn.valueOrDefault,rr=Mn.valueAtIndexOrDefault;bn._set("scale",{display:!0,position:"left",offset:!1,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)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:er.formatters.values,minor:{},major:{}}});var ar=In.extend({zeroLineIndex:0,getPadding:function(){var e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){Mn.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var i,r,a,o,s,l=this,u=l.options.ticks,c=u.sampleSize;if(l.beforeUpdate(),l.maxWidth=e,l.maxHeight=t,l.margins=Mn.extend({left:0,right:0,top:0,bottom:0},n),l._ticks=null,l.ticks=null,l._labelSizes=null,l._maxLabelLines=0,l.longestLabelWidth=0,l.longestTextCache=l.longestTextCache||{},l._gridLineItems=null,l._labelItems=null,l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),o=l.buildTicks()||[],(!(o=l.afterBuildTicks(o)||o)||!o.length)&&l.ticks)for(o=[],i=0,r=l.ticks.length;i<r;++i)o.push({value:l.ticks[i],major:!1});return s=c<(l._ticks=o).length,a=l._convertTicksToLabels(s?Ye(o,c):o),l._configure(),l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l._ticksToDraw=u.display&&(u.autoSkip||"auto"===u.source)?l._autoSkip(o):o,s&&(a=l._convertTicksToLabels(l._ticksToDraw)),l.ticks=a,l.afterUpdate(),l.minSize},_configure:function(){var e,t,n=this,i=n.options.ticks.reverse;n.isHorizontal()?(e=n.left,t=n.right):(e=n.top,t=n.bottom,i=!i),n._startPixel=e,n._endPixel=t,n._reversePixels=i,n._length=t-e},afterUpdate:function(){Mn.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){Mn.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){Mn.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){Mn.callback(this.options.beforeDataLimits,[this])},determineDataLimits:Mn.noop,afterDataLimits:function(){Mn.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){Mn.callback(this.options.beforeBuildTicks,[this])},buildTicks:Mn.noop,afterBuildTicks:function(e){var t=this;return tr(e)&&e.length?Mn.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=Mn.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){Mn.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this,t=e.options.ticks;e.ticks=e.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){Mn.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){Mn.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e,t,n,i,r,a,o,s=this,l=s.options,u=l.ticks,c=s.getTicks().length,d=u.minRotation||0,h=u.maxRotation,f=d;!s._isVisible()||!u.display||h<=d||c<=1||!s.isHorizontal()?s.labelRotation=d:(t=(e=s._getLabelSizes()).widest.width,n=e.highest.height-e.highest.offset,i=Math.min(s.maxWidth,s.chart.width-t),(r=l.offset?s.maxWidth/c:i/(c-1))<t+6&&(r=i/(c-(l.offset?.5:1)),a=s.maxHeight-Ge(l.gridLines)-u.padding-$e(l.scaleLabel),o=Math.sqrt(t*t+n*n),f=Mn.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/r,1)),Math.asin(Math.min(a/o,1))-Math.asin(n/o))),f=Math.max(d,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){Mn.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){Mn.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,i=e.options,r=i.ticks,a=i.scaleLabel,o=i.gridLines,s=e._isVisible(),l="bottom"===i.position,u=e.isHorizontal();if(u?t.width=e.maxWidth:s&&(t.width=Ge(o)+$e(a)),u?s&&(t.height=Ge(o)+$e(a)):t.height=e.maxHeight,r.dis
10play&&s){var c=Ke(r),d=e._getLabelSizes(),h=d.first,f=d.last,p=d.widest,g=d.highest,m=.4*c.minor.lineHeight,v=r.padding;if(u){var y=0!==e.labelRotation,b=Mn.toRadians(e.labelRotation),x=Math.cos(b),_=Math.sin(b),w=_*p.width+x*(g.height-(y?g.offset:0))+(y?0:m);t.height=Math.min(e.maxHeight,t.height+w+v);var k,C,S=e.getPixelForTick(0)-e.left,M=e.right-e.getPixelForTick(e.getTicks().length-1);y?(k=l?x*h.width+_*h.offset:_*(h.height-h.offset),C=l?_*(f.height-f.offset):x*f.width+_*f.offset):(k=h.width/2,C=f.width/2),e.paddingLeft=Math.max((k-S)*e.width/(e.width-S),0)+3,e.paddingRight=Math.max((C-M)*e.width/(e.width-M),0)+3}else{var T=r.mirror?0:p.width+v+m;t.width=Math.min(e.maxWidth,t.width+T),e.paddingTop=h.height/2,e.paddingBottom=f.height/2}}e.handleMargins(),u?(e.width=e._length=n.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){Mn.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(nr(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(e.x!==undefined)return this.getRightValue(e.x)}else if(e.y!==undefined)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,i,r=this;for(r.ticks=e.map(function(e){return e.value}),r.beforeTickToLabelConversion(),t=r.convertTicksToLabels(e)||r.ticks,r.afterTickToLabelConversion(),n=0,i=e.length;n<i;++n)e[n].label=t[n];return t},_getLabelSizes:function(){var e=this,t=e._labelSizes;return t||(e._labelSizes=t=Ue(e.ctx,Ke(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,n,i,r;return tr(e)?(t=+this.getRightValue(e[0]),n=+this.getRightValue(e[1]),i=Math.min(t,n),r=Math.max(t,n)):(e=+this.getRightValue(e),t=undefined,r=i=n=e),{min:i,max:r,start:t,end:n}},_getScaleLabel:function(e){var t=this._parseValue(e);return t.start!==undefined?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:Mn.noop,getPixelForValue:Mn.noop,getValueForPixel:Mn.noop,getPixelForTick:function(e){var t=this,n=t.options.offset,i=t._ticks.length,r=1/Math.max(i-(n?0:1),1);return e<0||i-1<e?null:t.getPixelForDecimal(e*r+(n?r/2:0))},getPixelForDecimal:function(e){var t=this;return t._reversePixels&&(e=1-e),t._startPixel+e*t._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,n=e.max;return e.beginAtZero?0:t<0&&n<0?n:0<t&&0<n?t:0},_autoSkip:function(e){var t,n,i,r,a=this,o=a.options.ticks,s=a._length,l=o.maxTicksLimit||s/a._tickSize()+1,u=o.major.enabled?et(e):[],c=u.length,d=u[0],h=u[c-1];if(l<c)return tt(e,u,c/l),Ze(e);if(i=Qe(u,e,s,l),0<c){for(t=0,n=c-1;t<n;t++)nt(e,i,u[t],u[t+1]);return r=1<c?(h-d)/(c-1):null,nt(e,i,Mn.isNullOrUndef(r)?0:d-r,d),nt(e,i,h,Mn.isNullOrUndef(r)?e.length:h+r),Ze(e)}return nt(e,i),Ze(e)},_tickSize:function(){var e=this,t=e.options.ticks,n=Mn.toRadians(e.labelRotation),i=Math.abs(Math.cos(n)),r=Math.abs(Math.sin(n)),a=e._getLabelSizes(),o=t.autoSkipPadding||0,s=a?a.widest.width+o:0,l=a?a.highest.height+o:0;return e.isHorizontal()?s*r<l*i?s/i:l/r:l*r<s*i?l/i:s/r},_isVisible:function(){var e,t,n,i=this,r=i.chart,a=i.options.display;if("auto"!==a)return!!a;for(e=0,t=r.data.datasets.length;e<t;++e)if(r.isDatasetVisible(e)&&((n=r.getDatasetMeta(e)).xAxisID===i.id||n.yAxisID===i.id))return!0;return!1},_computeGridLineItems:function(e){var t,n,i,r,a,o,s,l,u,c,d,h,f,p,g,m,v,y=this,b=y.chart,x=y.options,_=x.gridLines,w=x.position,k=_.offsetGridLines,C=y.isHorizontal(),S=y._ticksToDraw,M=S.length+(k?1:0),T=Ge(_),D=[],A=_.drawBorder?rr(_.lineWidth,0,0):0,L=A/2,E=Mn._alignPixel,P=function(e){return E(b,e,A)};for("top"===w?(t=P(y.bottom),s=y.bottom-T,u=t-L,d=P(e.top)+L,f=e.bottom):"bottom"===w?(t=P(y.top),d=e.top,f=P(e.bottom)-L,s=t+L,u=y.top+T):"left"===w?(t=P(y.right),o=y.right-T,l=t-L,c=P(e.left)+L,h=e.right):(t=P(y.left),c=e.left,h=P(e.right)-L,o=t+L,l=y.left+T),n=0;n<M;++n)i=S[n]||{},nr(i.label)&&n<S.length||(n===y.zeroLineIndex&&x.offset===k?(p=_.zeroLineWi
vendor: 3,272 bytes, line 10
10dth,g=_.zeroLineColor,m=_.zeroLineBorderDash||[],v=_.zeroLineBorderDashOffset||0):(p=rr(_.lineWidth,n,1),g=rr(_.color,n,"rgba(0,0,0,0.1)"),m=_.borderDash||[],v=_.borderDashOffset||0),(r=Ve(y,i._index||n,k))!==undefined&&(a=E(b,r,p),C?o=l=c=h=a:s=u=d=f=a,D.push({tx1:o,ty1:s,tx2:l,ty2:u,x1:c,y1:d,x2:h,y2:f,width:p,color:g,borderDash:m,borderDashOffset:v})));return D.ticksLength=M,D.borderValue=t,D},_computeLabelItems:function(){var e,t,n,i,r,a,o,s,l,u,c,d,h=this,f=h.options,p=f.ticks,g=f.position,m=p.mirror,v=h.isHorizontal(),y=h._ticksToDraw,b=Ke(p),x=p.padding,_=Ge(f.gridLines),w=-Mn.toRadians(h.labelRotation),k=[];for("top"===g?(a=h.bottom-_-x,o=w?"left":"center"):"bottom"===g?(a=h.top+_+x,o=w?"right":"center"):"left"===g?(r=h.right-(m?0:_)-x,o=m?"left":"right"):(r=h.left+(m?0:_)+x,o=m?"right":"left"),e=0,t=y.length;e<t;++e)i=(n=y[e]).label,nr(i)||(s=h.getPixelForTick(n._index||e)+p.labelOffset,u=(l=n.major?b.major:b.minor).lineHeight,c=tr(i)?i.length:1,v?(r=s,d="top"===g?((w?1:.5)-c)*u:(w?0:.5)*u):(a=s,d=(1-c)*u/2),k.push({x:r,y:a,rotation:w,label:i,font:l,textOffset:d,textAlign:o}));return k},_drawGrid:function(e){var t=this,n=t.options.gridLines;if(n.display){var i,r,a,o,s,l=t.ctx,u=t.chart,c=Mn._alignPixel,d=n.drawBorder?rr(n.lineWidth,0,0):0,h=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(a=0,o=h.length;a<o;++a)i=(s=h[a]).width,r=s.color,i&&r&&(l.save(),l.lineWidth=i,l.strokeStyle=r,l.setLineDash&&(l.setLineDash(s.borderDash),l.lineDashOffset=s.borderDashOffset),l.beginPath(),n.drawTicks&&(l.moveTo(s.tx1,s.ty1),l.lineTo(s.tx2,s.ty2)),n.drawOnChartArea&&(l.moveTo(s.x1,s.y1),l.lineTo(s.x2,s.y2)),l.stroke(),l.restore());if(d){var f,p,g,m,v=d,y=rr(n.lineWidth,h.ticksLength-1,1),b=h.borderValue;t.isHorizontal()?(f=c(u,t.left,v)-v/2,p=c(u,t.right,y)+y/2,g=m=b):(g=c(u,t.top,v)-v/2,m=c(u,t.bottom,y)+y/2,f=p=b),l.lineWidth=d,l.strokeStyle=rr(n.color,0),l.beginPath(),l.moveTo(f,g),l.lineTo(p,m),l.stroke()}}},_drawLabels:function(){var e=this;if(e.options.ticks.display){var t,n,i,r,a,o,s,l,u=e.ctx,c=e._labelItems||(e._labelItems=e._computeLabelItems());for(t=0,i=c.length;t<i;++t){if(o=(a=c[t]).font,u.save(),u.translate(a.x,a.y),u.rotate(a.rotation),u.font=o.string,u.fillStyle=o.color,u.textBaseline="middle",u.textAlign=a.textAlign,s=a.label,l=a.textOffset,tr(s))for(n=0,r=s.length;n<r;++n)u.fillText(""+s[n],0,l),l+=o.lineHeight;else u.fillText(s,0,l);u.restore()}}},_drawTitle:function(){var e=this,t=e.ctx,n=e.options,i=n.scaleLabel;if(i.display){var r,a,o=ir(i.fontColor,bn.global.defaultFontColor),s=Mn.options._parseFont(i),l=Mn.options.toPadding(i.padding),u=s.lineHeight/2,c=n.position,d=0;if(e.isHorizontal())r=e.left+e.width/2,a="bottom"===c?e.bottom-u-l.bottom:e.top+u+l.top;else{var h="left"===c;r=h?e.left+u+l.top:e.right-u-l.top,a=e.top+e.height/2,d=h?-.5*Math.PI:.5*Math.PI}t.save(),t.translate(r,a),t.rotate(d),t.textAlign="center",t.textBaseline="middle",t.fillStyle=o,t.font=s.string,t.fillText(i.labelString,0,0),t.restore()}},draw:function(e){var t=this;t._isVisible()&&(t._drawGrid(e),t._drawTitle(),t._drawLabels())},_layers:function(){var e=this,t=e.options,n=t.ticks&&t.ticks.z||0,i=t.gridLines&&t.gridLines.z||0;return e._isVisible()&&n!==i&&e.draw===e._draw?[{z:i,draw:function(){e._drawGri
10d.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:n,draw:function(){e._drawLabels.apply(e,arguments)}}]:[{z:n,draw:function(){e.draw.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(t){var n=this,i=n.isHorizontal();return n.chart._getSortedVisibleDatasetMetas().filter(function(e){return(!t||e.type===t)&&(i?e.xAxisID===n.id:e.yAxisID===n.id)})}});ar.prototype._draw=ar.prototype.draw;var or=ar,sr=Mn.isNullOrUndef,lr={position:"bottom"},ur=or.extend({determineDataLimits:function(){var e,t=this,n=t._getLabels(),i=t.options.ticks,r=i.min,a=i.max,o=0,s=n.length-1;r!==undefined&&0<=(e=n.indexOf(r))&&(o=e),a!==undefined&&0<=(e=n.indexOf(a))&&(s=e),t.minIndex=o,t.maxIndex=s,t.min=n[o],t.max=n[s]},buildTicks:function(){var e=this,t=e._getLabels(),n=e.minIndex,i=e.maxIndex;e.ticks=0===n&&i===t.length-1?t:t.slice(n,i+1)},getLabelForIndex:function(e,t){var n=this,i=n.chart;return i.getDatasetMeta(t).controller._getValueScaleId()===n.id?n.getRightValue(i.data.datasets[t].data[e]):n._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;or.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var i,r,a,o=this;return sr(t)||sr(n)||(e=o.chart.data.datasets[n].data[t]),sr(e)||(i=o.isHorizontal()?e.x:e.y),(i!==undefined||e!==undefined&&isNaN(t))&&(r=o._getLabels(),e=Mn.valueOrDefault(i,e),t=-1!==(a=r.indexOf(e))?a:t,isNaN(t 11)&&(t=e)),o.getPixelForDecimal((t-o._startValue)/o._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=this,n=Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange);return Math.min(Math.max(n,0),t.ticks.length-1)},getBasePixel:function(){return this.bottom}}),cr=lr;ur._defaults=cr;var dr=Mn.noop,hr=Mn.isNullOrUndef,fr=or.extend({getRightValue:function(e){return"string"==typeof e?+e:or.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=Mn.sign(e.min),i=Mn.sign(e.max);n<0&&i<0?e.max=0:0<n&&0<i&&(e.min=0)}var r=t.min!==undefined||t.suggestedMin!==undefined,a=t.max!==undefined||t.suggestedMax!==undefined;t.min!==undefined?e.min=t.min:t.suggestedMin!==undefined&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),t.max!==undefined?e.max=t.max:t.suggestedMax!==undefined&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),r!==a&&e.min>=e.max&&(r?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this,n=t.options.ticks,i=n.stepSize,r=n.maxTicksLimit;return i?e=Math.ceil(t.max/i)-Math.floor(t.min/i)+1:(e=t._computeTickLimit(),r=r||11),r&&(e=Math.min(r,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:dr,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:Mn.valueOrDefault(t.fixedStepSize,t.stepSize)},r=e.ticks=it(i,e);e.handleDirectionalChanges(),e.max=Mn.max(r),e.min=Mn.min(r),t.reverse?(r.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),or.prototype.convertTicksToLabels.call(e)},_configure:function(){var e,t=this,n=t.getTicks(),i=t.min,r=t.max;or.prototype._configure.call(t),t.options.offset&&n.length&&(i-=e=(r-i)/Math.max(n.length-1,1)/2,r+=e),t._startValue=i,t._endValue=r,t._valueRange=r-i}}),pr={position:"left",ticks:{callback:er.formatters.linear}},gr=0,mr=1,vr=fr.extend({determineDataLimits:function(){var e,t,n,i,r=this,a=r.options,o=r.chart.data.datasets,s=r._getMatchingVisibleMetas(),l=a.stacked,u={},c=s.length;if(r.min=Number.POSITIVE_INFINITY,r.max=Number.NEGATIVE_INFINITY,l===undefined)for(e=0;!l&&e<c;++e)l=(t=s[e]).stack!==undefined;for(e=0;e<c;++e)n=o[(t=s[e]).index].data,l?at(r,u,t,n):ot(r,t,n);Mn.each(u,function(e){i=e.pos.concat(e.neg),r.min=Math.min(r.min,Mn.min(i)),r.max=Math.max(r.max,Mn.max(i))}),r.min=Mn.isFinite(r.min)&&!isNaN(r.min)?r.min:gr,r.max=Mn.isFinite(r.max)&&!isNaN(r.max)?r.max:mr,r.handleTickRangeOptions()},_computeTickLimit:function(){var e,t=this;return t.isHorizontal()?Math.ceil(t.width/40):(e=Mn.options._parseFont(t.options.ticks),Math.ceil(t.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this;return t.getPixelForDecimal((+t.getRightValue(e)-t._startValue)/t._valueRange)},getValueForPixel:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange},getPixelForTick:function(e){var t=this.ticksAsNumbers;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])}}),yr=pr;vr._defaults=yr;var br=Mn.valueOrDefault,xr=Mn.math.log10,_r={position:"left",ticks:{callback:er.formatters.logarithmic}},wr=or.extend({determineDataLimits:function(){function e(e){return d?e.xAxisID===s.id:e.yAxisID===s.id}var t,n,i,r,a,o,s=this,l=s.options,u=s.chart,c=u.data.datasets,d=s.isHorizontal();s.min=Number.POSITIVE_INFINITY,s.max=Number.NEGATIVE_INFINITY,s.minNotZero=Number.POSITIVE_INFINITY;var h=l.stacked;if(h===undefined)for(t=0;t<c.length;t++)if(n=u.getDatasetMeta(t),u.isDatasetVisible(t)&&e(n)&&n.stack!==undefined){h=!0;break}if(l.stacked||h){var f={};for(t=0;t<c.length;t++){var p=[(n=u.getDatasetMeta(t)).type,l.stacked===undefined&&n.stack===undefined?t:"",n.stack].join(".");if(u.isDatasetVisible(t)&&e(n))for(f[p]===undefined&&(f[p]=[]),a=0,o=(r=c[t].data).length;a<o;a++){var g=f[p];i=s._parseValue(r[a]),isNaN(i.min)||isNaN(i.max)||n.data[a].hidden||i.min<0||i.max<0||(g[a]=g[a]||0,g[a]+=i.max)}}Mn.each(f,function(e){if(0<e.length){var t=Mn.min(e),n=Mn.max(e);s.min=Math.min(s.min,t),s.max=Math.max(s.max,n)}})}else for(t=0;t<c.length;t++)if(n=u.getDatasetMeta(t),u.isDatasetVisible(t)&&e(n))for(a=0,o=(r=c[t].data).length;a<o;a++)i=s._parseValue(r[a]),isNaN(i.min)||isNaN(i.max)||n.data[a].hidden||i.min<0||i.max<0||(s.min=Math.min(i.min,s.min),s.max=Math.max(i.max,s.max),0!==i.min&&(s.minNotZero=Math.min(i.min,s.minNotZero)));s.min=Mn.isFinite(s.min)?s.min:null,s.max=Mn.isFinite(s.max)?s.max:null,s.minNotZero=Mn.isFinite(s.minNotZero)?s.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks,n=1,i=10;e.min=lt(t.min,e.min),e.max=lt(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(xr(e.min))-1),e.max=Math.pow(10,Math.floor(xr(e.max))+1)):(e.min=n,e.max=i)),null===e.min&&(e.min=Math.pow(10,Math.floor(xr(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(xr(e.min))+1):i),null===e.minNotZero&&(0<e.min?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(xr(e.max))):e.minNotZero=n)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),i={min:lt(t.min),max:lt(t.max)},r=e.ticks=st(i,e);e.max=Mn.max(r),e.min=Mn.min(r),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&r.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),or.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){var t=this.tickValues;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(xr(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;or.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=br(e.options.ticks.fontSize,bn.global.defaultFontSize)/e._length),e._startValue=xr(t),e._valueOffset=n,e._valueRange=(xr(e.max)-xr(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&0<e&&(n=(xr(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(n)},getValueForPixel:function(e){var t=this,n=t.getDecimalForPixel(e);return 0===n&&0===t.min?0:Math.pow(10,t._startValue+(n-t._valueOffset)*t._valueRange)}}),kr=_r;wr._defaults=kr;var Cr=Mn.valueOrDefault,Sr=Mn.valueAtIndexOrDefault,Mr=Mn.options.resolve,Tr={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:er.formatters.linear}
vendor: 4,710 bytes, line 11
11,pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}},Dr=fr.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=ut(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var r=this,n=r.chart,a=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;Mn.each(n.data.datasets,function(e,t){if(n.isDatasetVisible(t)){var i=n.getDatasetMeta(t);Mn.each(e.data,function(e,t){var n=+r.getRightValue(e);isNaN(n)||i.data[t].hidden||(a=Math.min(n,a),o=Math.max(n,o))})}}),r.min=a===Number.POSITIVE_INFINITY?0:a,r.max=o===Number.NEGATIVE_INFINITY?0:o,r.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/ut(this.options))},convertTicksToLabels:function(){var t=this;fr.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(function(){var e=Mn.callback(t.options.pointLabels.callback,arguments,t);return e||0===e?e:""})},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this,t=e.options;t.display&&t.pointLabels.display?ht(e):e.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var i=this,r=t.l/Math.sin(n.l),a=Math.max(t.r-i.width,0)/Math.sin(n.r),o=-t.t/Math.cos(n.t),s=-Math.max(t.b-(i.height-i.paddingTop),0)/Math.cos(n.b);r=yt(r),a=yt(a),o=yt(o),s=yt(s),i.drawingArea=Math.min(Math.floor(e-(r+a)/2),Math.floor(e-(o+s)/2)),i.setCenterPoint(r,a,o,s)},setCenterPoint:function(e,t,n,i){var r=this,a=r.width-t-r.drawingArea,o=e+r.drawingArea,s=n+r.drawingArea,l=r.height-r.paddingTop-i-r.drawingArea;r.xCenter=Math.floor((o+a)/2+r.left),r.yCenter=Math.floor((s+l)/2+r.top+r.paddingTop)},getIndexAngle:function(e){var t=this.chart,n=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(Mn.isNullOrUndef(e))return NaN;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this,i=n.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(i)*t+n.xCenter,y:Math.sin(i)*t+n.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this,n=t.min,i=t.max;return t.getPointPositionForValue(e||0,t.beginAtZero?0:n<0&&i<0?i:0<n&&0<i?n:0)},_drawGrid:function(){var e,n,t,i=this,r=i.ctx,a=i.options,o=a.gridLines,s=a.angleLines,l=Cr(s.lineWidth,o.lineWidth),u=Cr(s.color,o.color);if(a.pointLabels.display&&mt(i),o.display&&Mn.each(i.ticks,function(e,t){0!==t&&(n=i.getDistanceFromCenterForValue(i.ticksAsNumbers[t]),vt(i,o,n,t))}),s.display&&l&&u){for(r.save(),r.lineWidth=l,r.strokeStyle=u,r.setLineDash&&(r.setLineDash(Mr([s.borderDash,o.borderDash,[]])),r.lineDashOffset=Mr([s.borderDashOffset,o.borderDashOffset,0])),e=i.chart.data.labels.length-1;0<=e;e--)n=i.getDistanceFromCenterForValue(a.ticks.reverse?i.min:i.max),t=i.getPointPosition(e,n),r.beginPath(),r.moveTo(i.xCenter,i.yCenter),r.lineTo(t.x,t.y),r.stroke();r.restore()}},_drawLabels:function(){var n=this,i=n.ctx,r=n.options.ticks;if(r.display){var a,o,e=n.getIndexAngle(0),s=Mn.options._parseFont(r),l=Cr(r.fontColor,bn.global.defaultFontColor);i.save(),i.font=s.string,i.translate(n.xCenter,n.yCenter),i.rotate(e),i.textAlign="center",i.textBaseline="middle",Mn.each(n.ticks,function(e,t){(0!==t||r.reverse)&&(a=n.getDistanceFromCenterForValue(n.ticksAsNumbers[t]),r.showLabelBackdrop&&(o=i.measureText(e).width,i.fillStyle=r.backdropColor,i.fillRect(-o/2-r.backdropPaddingX,-a-s.size/2-r.backdropPaddingY,o+2*r.backdropPaddingX,s.size+2*r.backdropPaddingY)),i.fillStyle=l,i.fillText(e,0,-a))}),i.restore()}},_drawTitle:Mn.noop}),Ar=Tr;Dr._defaults=Ar;var Lr=Mn._deprecated,Er=Mn.options.resolve,Pr=Mn.valueOrDefault,Ir=Number.MIN_SAFE_INTEGER||-9007199254740991,Or=Number.MAX_SAFE_INTEGER||9007199254740991,Nr={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Fr=Object.keys(Nr),zr={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}},Rr=or.extend({initialize:function(){this.mergeTicksOptions(),or.prototype.initialize.call(this)}
11,update:function(){var e=this,t=e.options,n=t.time||(t.time={}),i=e._adapter=new Qi._date(t.adapters.date);return Lr("time scale",n.format,"time.format","time.parser"),Lr("time scale",n.min,"time.min","ticks.min"),Lr("time scale",n.max,"time.max","ticks.max"),Mn.mergeIf(n.displayFormats,i.formats()),or.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&e.t!==undefined&&(e=e.t),or.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,i,r,a,o,s=this,l=s.chart,u=s._adapter,c=s.options,d=c.time.unit||"day",h=Or,f=Ir,p=[],g=[],m=[],v=s._getLabels();for(e=0,n=v.length;e<n;++e)m.push(Tt(s,v[e]));for(e=0,n=(l.data.datasets||[]).length;e<n;++e)if(l.isDatasetVisible(e))if(r=l.data.datasets[e].data,Mn.isObject(r[0]))for(g[e]=[],t=0,i=r.length;t<i;++t)a=Tt(s,r[t]),p.push(a),g[e][t]=a;else g[e]=m.slice(0),o||(p=p.concat(m),o=!0);else g[e]=[];m.length&&(h=Math.min(h,m[0]),f=Math.max(f,m[m.length-1])),p.length&&(p=1<n?xt(p).sort(bt):p.sort(bt),h=Math.min(h,p[0]),f=Math.max(f,p[p.length-1])),h=Tt(s,_t(c))||h,f=Tt(s,wt(c))||f,h=h===Or?+u.startOf(Date.now(),d):h,f=f===Ir?+u.endOf(Date.now(),d)+1:f,s.min=Math.min(h,f),s.max=Math.max(h+1,f),s._table=[],s._timestamps={data:p,datasets:g,labels:m}},buildTicks:function(){var e,t,n,i=this,r=i.min,a=i.max,o=i.options,s=o.ticks,l=o.time,u=i._timestamps,c=[],d=i.getLabelCapacity(r),h=s.source,f=o.distribution;for(u="data"===h||"auto"===h&&"series"===f?u.data:"labels"===h?u.labels:Et(i,r,a,d),"ticks"===o.bounds&&u.length&&(r=u[0],a=u[u.length-1]),r=Tt(i,_t(o))||r,a=Tt(i,wt(o))||a,e=0,t=u.length;e<t;++e)r<=(n=u[e])&&n<=a&&c.push(n);return i.min=r,i.max=a,i._unit=l.unit||(s.autoSkip?Dt(l.minUnit,i.min,i.max,d):At(i,c.length,l.minUnit,i.min,i.max)),i._majorUnit=s.major.enabled&&"year"!==i._unit?Lt(i._unit):undefined,i._table=kt(i._timestamps.data,r,a,f),i._offsets=Pt(i._table,c,r,a,o),s.reverse&&c.reverse(),Ot(i,c,i._majorUnit)},getLabelForIndex:function(e,t){var n=this,i=n._adapter,r=n.chart.data,a=n.options.time,o=r.labels&&e<r.labels.length?r.labels[e]:"",s=r.datasets[t].data[e];return Mn.isObject(s)&&(o=n.getRightValue(s)),a.tooltipFormat?i.format(Mt(n,o),a.tooltipFormat):"string"==typeof o?o:i.format(Mt(n,o),a.displayFormats.datetime)},tickFormatFunction:function(e,t,n,i){var r=this,a=r._adapter,o=r.options,s=o.time.displayFormats,l=s[r._unit],u=r._majorUnit,c=s[u],d=n[t],h=o.ticks,f=u&&c&&d&&d.major,p=a.format(e,i||(f?c:l)),g=f?h.major:h.minor,m=Er([g.callback,g.userCallback,h.callback,h.userCallback]);return m?m(p,t,n):p},convertTicksToLabels:function(e){var t,n,i=[];for(t=0,n=e.length;t<n;++t)i.push(this.tickFormatFunction(e[t].value,t,e));return i},getPixelForOffset:function(e){var t=this,n=t._offsets,i=St(t._table,"time",e,"pos");return t.getPixelForDecimal((n.start+i)*n.factor)},getPixelForValue:function(e,t,n){var i=this,r=null;if(t!==undefined&&n!==undefined&&(r=i._timestamps.datasets[n][t]),null===r&&(r=Tt(i,e)),null!==r)return i.getPixelForOffset(r)},getPixelForTick:function(e){var t=this.getTicks();return 0<=e&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,n=t._offsets,i=t.getDecimalForPixel(e)/n.factor-n.end,r=St(t._table,"pos",i,"time");return t._adapter._create(r)},_getLabelSize:function(e){var t=this,n=t.options.ticks,i=t.ctx.measureText(e).width,r=Mn.toRadians(t.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(r),o=Math.sin(r),s=Pr(n.fontSize,bn.global.defaultFontSize);return{w:i*a+s*o,h:i*o+s*a}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,n=t.options.time,i=n.displayFormats,r=i[n.unit]||i.millisecond,a=t.tickFormatFunction(e,0,Ot(t,[e],t._majorUnit),r),o=t._getLabelSize(a),s=Math.floor(t.isHorizontal()?t.width/o.w:t.height/o.h);return t.options.offset&&s--,0<s?s:1}}),jr=zr;Rr._defaults=jr;var Hr={category:ur,linear:vr,logarithmic:wr,radialLinear:Dr,time:Rr},Wr=e(function(ja){var e;e=function(){function u(){return Ei.apply(null,arguments)}function e(e){Ei=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}function a(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function r(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function n(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}
11function h(e,t){for(var n in t)d(t,n)&&(e[n]=t[n]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,i){return St(e,t,n,i,!0).utc()}function t(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function p(e){return null==e._pf&&(e._pf=t()),e._pf}function g(e){if(null==e._isValid){var t=p(e),n=Pi.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&t.bigHour===undefined),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function i(e){var t=f(NaN);return null!=e?h(p(t),e):p(t).userInvalidated=!0,t}function m(e,t){var n,i,r;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=p(t)),a(t._locale)||(e._locale=t._locale),0<Oi.length)for(n=0;n<Oi.length;n++)a(r=t[i=Oi[n]])||(e[i]=r);return e}function v(e){m(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Ni&&(Ni=!0,u.updateOffset(this),Ni=!1)}function y(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function b(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function x(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=b(t)),n}function _(e,t,n){var i,r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&x(e[i])!==x(t[i]))&&o++;return o+a}function w(e){!1===u.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(a,o){var s=!0;return h(function(e){if(null!=u.deprecationHandler&&u.deprecationHandler(null,a),s){for(var t,n=[],i=0;i<arguments.length;i++){if(t="","object"==typeof arguments[i]){for(var r in t+="\n["+i+"] ",e)t+=r+": "+arguments[0][r]+", ";t=t.slice(0,-2)}else t=arguments[i];n.push(t)}w(a+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),s=!1}return o.apply(this,arguments)},o)}function C(e,t){null!=u.deprecationHandler&&u.deprecationHandler(e,t),Fi[e]||(w(t),Fi[e]=!0)}function S(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function M(e){var t,n;for(n in e)S(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function T(e,t){var n,i=h({},e);for(n in t)d(t,n)&&(s(e[n])&&s(t[n])?(i[n]={},h(i[n],e[n]),h(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)d(e,n)&&!d(t,n)&&s(e[n])&&(i[n]=h({},i[n]));return i}function D(e){null!=e&&this.set(e)}function A(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return S(i)?i.call(t,n):i}function L(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function E(){return this._invalidDate}function P(e){return this._ordinal.replace("%d",e)}function I(e,t,n,i){var r=this._relativeTime[n];return S(r)?r(e,t,n,i):r.replace(/%d/i,e)}function O(e,t){var n=this._relativeTime[0<e?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)}function N(e,t){var n=e.toLowerCase();Yi[n]=Yi[n+"s"]=Yi[t]=e}function F(e){return"string"==typeof e?Yi[e]||Yi[e.toLowerCase()]:undefined}function z(e){var t,n,i={};for(n in e)d(e,n)&&(t=F(n))&&(i[t]=e[n]);return i}function R(e,t){Vi[e]=t}function j(e){var t=[];for(var n in e)t.push({unit:n,priority:Vi[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function H(e,t,n){var i=""+Math.abs(e),r=t-i.length;return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function W(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&($i[e]=r),t&&($i[t[0]]=function(){return H(r.apply(this,arguments),t[1],t[2])}),n&&($i[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function B(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Y(i){var e,r,a=i.match(qi);for(e=0,r=a.length;e<r;e++)$i[a[e]]?a[e]=$i[a[e]]:a[e]=B(a[e]);return function(e){var t,n="";for(t=0;t<r;t++)n+=S(a[t])?a[t].call(e,i):a[t];return n}}function V(e,t){return e.isValid()?(t=q(t,e.localeData()),Gi[t]=Gi[t]||Y(t),Gi[t](e)):e.localeData().invalidDate()}function q(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(Ui.lastIndex=0;0<=i&&Ui.test(e);)e=e.replace(Ui,n),Ui.lastIndex=0,i-=1;return e}function U(e,t,n){hr[e]=S(t)?t:function(e){return e&&n?n:t}}function G(e,t){return d(hr,e)?hr[e](t._strict,t._locale):new RegExp($(e))}function $(e){return X(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}))}function X(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function K(e,n){var t,i=n;for("string"==typeof e&&(e=[e]),c(n)&&(i=function(e,t){t[n]=x(e)}),t=0;t<e.length;t++)fr[e[t]]=i}function Z(e,r){K(e,function(e,t,n,i){n._w=n._w||{},r(e,n._w,n,i)})}function J(e,t,n){null!=t&&d(fr,e)&&fr[e](t,n._a,n,e)}function Q(e){return ee(e)?366:365}function ee(e){return e%4==0&&e%100!=0||e%400==0}function te(){return ee(this.year())}function ne(t,n){return function(e){return null!=e?(re(this,t,e),u.updateOffset(this,n),this):ie(this,t)}}function ie(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function re(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ee(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),le(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function ae(e){return S(this[e=F(e)])?this[e]():this}
vendor: 10,006 bytes, line 11
11function oe(e,t){if("object"==typeof e)for(var n=j(e=z(e)),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit]);else if(S(this[e=F(e)]))return this[e](t);return this}function se(e,t){return(e%t+t)%t}function le(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=se(t,12);return e+=(t-n)/12,1===n?ee(e)?29:28:31-n%7%2}function ue(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Sr).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function ce(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Sr.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function de(e,t,n){var i,r,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)a=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=kr.call(this._shortMonthsParse,o))?r:null:-1!==(r=kr.call(this._longMonthsParse,o))?r:null:"MMM"===t?-1!==(r=kr.call(this._shortMonthsParse,o))?r:-1!==(r=kr.call(this._longMonthsParse,o))?r:null:-1!==(r=kr.call(this._longMonthsParse,o))?r:-1!==(r=kr.call(this._shortMonthsParse,o))?r:null}function he(e,t,n){var i,r,a;if(this._monthsParseExact)return de.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function fe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=x(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),le(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function pe(e){return null!=e?(fe(this,e),u.updateOffset(this,!0),this):ie(this,"Month")}function ge(){return le(this.year(),this.month())}function me(e){return this._monthsParseExact?(d(this,"_monthsRegex")||ye.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Dr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ve(e){return this._monthsParseExact?(d(this,"_monthsRegex")||ye.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Ar),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ye(){function e(e,t){return t.length-e.length}var t,n,i=[],r=[],a=[];for(t=0;t<12;t++)n=f([2e3,t]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(i.sort(e),r.sort(e),a.sort(e),t=0;t<12;t++)i[t]=X(i[t]),r[t]=X(r[t]);for(t=0;t<24;t++)a[t]=X(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function be(e,t,n,i,r,a,o){var s;return e<100&&0<=e?(s=new Date(e+400,t,n,i,r,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,r,a,o),s}function xe(e){var t;if(e<100&&0<=e){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function _e(e,t,n){var i=7+t-n;return-((7+xe(e,0,i).getUTCDay()-t)%7)+i-1}function we(e,t,n,i,r){var a,o,s=1+7*(t-1)+(7+n-i)%7+_e(e,i,r);return s<=0?o=Q(a=e-1)+s:s>Q(e)?(a=e+1,o=s-Q(e)):(a=e,o=s),{year:a,dayOfYear:o}}function ke(e,t,n){var i,r,a=_e(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?i=o+Ce(r=e.year()-1,t,n):o>Ce(e.year(),t,n)?(i=o-Ce(e.year(),t,n),r=e.year()+1):(r=e.year(),i=o),{week:i,year:r}}function Ce(e,t,n){var i=_e(e,t,n),r=_e(e+1,t,n);return(Q(e)-i+r)/7}function Se(e){return ke(e,this._week.dow,this._week.doy).week}function Me(){return this._week.dow}function Te(){return this._week.doy}function De(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ae(e){var t=ke(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Le(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ee(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Pe(e,t){return e.slice(t,7).concat(e.slice(0,t))}function Ie(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Pe(n,this._week.dow):e?n[e.day()]:n}function Oe(e){return!0===e?Pe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ne(e){return!0===e?Pe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Fe(e,t,n){var i,r,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=kr.call(this._weekdaysParse,o))?r:null:"ddd"===t?-1!==(r=kr.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=kr.call(this._minWeekdaysParse,o))?r:null:"dddd"===t?-1!==(r=kr.call(this._weekdaysParse,o))?r:-1!==(r=kr.call(this._shortWeekdaysParse,o))?r:-1!==(r=kr.call(this._minWeekdaysParse,o))?r:null:"ddd"===t?-1!==(r=kr.call(this._shortWeekdaysParse,o))?r:-1!==(r=kr.call(this._weekdaysParse,o))?r:-1!==(r=kr.call(this._minWeekdaysParse,o))?r:null:-1!==(r=kr.call(this._minWeekdaysParse,o))?r:-1!==(r=kr.call(this._weekdaysParse,o))?r:-1!==(r=kr.call(this._shortWeekdaysParse,o))?r:null}function ze(e,t,n){var i,r,a;if(this._weekdaysParseExact)return Fe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function Re(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Le(e,this.localeData()),this.add(e-t,"d")):t}function je(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function He(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t=Ee(e,this.localeData());return this.day(this.day()%7?t:t-7)}function We(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Or),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Be(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Nr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ye(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Ve.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Fr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ve(){function e(e,t){return t.length-e.length}var t,n,i,r,a,o=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),a=this.weekdays(n,""),o.push(i),s.push(r),l.push(a),u.push(i),u.push(r),u.push(a);for(o.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=X(s[t]),l[t]=X(l[t]),u[t]=X(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function qe(){return this.hours()%12||12}function Ue(){return this.hours()||24}function Ge(e,t){W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function $e(e,t){return t._meridiemParse}function Xe(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ke(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"}function Ze(e){return e?e.toLowerCase().replace("_","-"):e}function Je(e){for(var t,n,i,r,a=0;a<e.length;){for(t=(r=Ze(e[a]).split("-")).length,n=(n=Ze(e[a+1]))?n.split("-"):null;0<t;){if(i=Qe(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&_(r,n,!0)>=t-1)break;t--}a++}return zr}function Qe(e){var t=null;if(
12!Wr[e]&&ja&&ja.exports)try{t=zr._abbr,Ha("./locale/"+e),et(t)}catch(n){}return Wr[e]}function et(e,t){var n;return e&&((n=a(t)?it(e):tt(e,t))?zr=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),zr._abbr}function tt(e,t){if(null===t)return delete Wr[e],null;var n,i=Hr;if(t.abbr=e,null!=Wr[e])C("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."),i=Wr[e]._config;else if(null!=t.parentLocale)if(null!=Wr[t.parentLocale])i=Wr[t.parentLocale]._config;else{if(null==(n=Qe(t.parentLocale)))return Br[t.parentLocale]||(Br[t.parentLocale]=[]),Br[t.parentLocale].push({name:e,config:t}),null;i=n._config}return Wr[e]=new D(T(i,t)),Br[e]&&Br[e].forEach(function(e){tt(e.name,e.config)}),et(e),Wr[e]}function nt(e,t){if(null!=t){var n,i,r=Hr;null!=(i=Qe(e))&&(r=i._config),(n=new D(t=T(r,t))).parentLocale=Wr[e],Wr[e]=n,et(e)}else null!=Wr[e]&&(null!=Wr[e].parentLocale?Wr[e]=Wr[e].parentLocale:null!=Wr[e]&&delete Wr[e]);return Wr[e]}function it(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return zr;if(!o(e)){if(t=Qe(e))return t;e=[e]}return Je(e)}function rt(){return Ii(Wr)}function at(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[gr]<0||11<n[gr]?gr:n[mr]<1||n[mr]>le(n[pr],n[gr])?mr:n[vr]<0||24<n[vr]||24===n[vr]&&(0!==n[yr]||0!==n[br]||0!==n[xr])?vr:n[yr]<0||59<n[yr]?yr:n[br]<0||59<n[br]?br:n[xr]<0||999<n[xr]?xr:-1,p(e)._overflowDayOfYear&&(t<pr||mr<t)&&(t=mr),p(e)._overflowWeeks&&-1===t&&(t=_r),p(e)._overflowWeekday&&-1===t&&(t=wr),p(e).overflow=t),e}function ot(e,t,n){return null!=e?e:null!=t?t:n}function st(e){var t=new Date(u.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function lt(e){var t,n,i,r,a,o=[];if(!e._d){for(i=st(e),e._w&&null==e._a[mr]&&null==e._a[gr]&&ut(e),null!=e._dayOfYear&&(a=ot(e._a[pr],i[pr]),(e._dayOfYear>Q(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=xe(a,0,e._dayOfYear),e._a[gr]=n.getUTCMonth(),e._a[mr]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[vr]&&0===e._a[yr]&&0===e._a[br]&&0===e._a[xr]&&(e._nextDay=!0,e._a[vr]=0),e._d=(e._useUTC?xe:be).apply(null,o),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[vr]=24),e._w&&"undefined"!=typeof e._w.d&&e._w.d!==r&&(p(e).weekdayMismatch=!0)}}function ut(e){var t,n,i,r,a,o,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,o=4,n=ot(t.GG,e._a[pr],ke(Mt(),1,4).year),i=ot(t.W,1),((r=ot(t.E,1))<1||7<r)&&(l=!0);else{a=e._locale._week.dow,o=e._locale._week.doy;var u=ke(Mt(),a,o);n=ot(t.gg,e._a[pr],u.year),i=ot(t.w,u.week),null!=t.d?((r=t.d)<0||6<r)&&(l=!0):null!=t.e?(r=t.e+a,(t.e<0||6<t.e)&&(l=!0)):r=a}i<1||i>Ce(n,a,o)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=we(n,i,r,a,o),e._a[pr]=s.year,e._dayOfYear=s.dayOfYear)}function ct(e){var t,n,i,r,a,o,s=e._i,l=Yr.exec(s)||Vr.exec(s);if(l){for(p(e).iso=!0,t=0,n=Ur.length;t<n;t++)if(Ur[t][1].exec(l[1])){r=Ur[t][0],i=!1!==Ur[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=Gr.length;t<n;t++)if(Gr[t][1].exec(l[3])){a=(l[2]||" ")+Gr[t][0];break}if(null==a)return void(e._isValid=!1)}if(!i&&null!=a)return void(e._isValid=!1);if(l[4]){if(!qr.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=r+(a||"")+(o||""),yt(e)}else e._isValid=!1}function dt(e,t,n,i,r,a){var o=[ht(e),Tr.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return a&&o.push(parseInt(a,10)),o}function ht(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function ft(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function pt(e,t,n){if(e&&Pr.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay())return p(n).weekdayMismatch=!0,n._isValid=!1;return!0}function gt(e,t,n){if(e)return Kr[e];if(t)return 0;var i=parseInt(n,10),r=i%100;return 60*((i-r)/100)+r}function mt(e){var t=Xr.exec(ft(e._i));if(t){var n=dt(t[4],t[3],t[2],t[5],t[6],t[7]);if(!pt(t[1],n,e))return;e._a=n,e._tzm=gt(t[8],t[9],t[10]),e._d=xe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function vt(e){var t=$r.exec(e._i);
12null===t?(ct(e),!1===e._isValid&&(delete e._isValid,mt(e),!1===e._isValid&&(delete e._isValid,u.createFromInputFallback(e)))):e._d=new Date(+t[1])}function yt(e){if(e._f!==u.ISO_8601)if(e._f!==u.RFC_2822){e._a=[],p(e).empty=!0;var t,n,i,r,a,o=""+e._i,s=o.length,l=0;for(i=q(e._f,e._locale).match(qi)||[],t=0;t<i.length;t++)r=i[t],(n=(o.match(G(r,e))||[])[0])&&(0<(a=o.substr(0,o.indexOf(n))).length&&p(e).unusedInput.push(a),o=o.slice(o.indexOf(n)+n.length),l+=n.length),$i[r]?(n?p(e).empty=!1:p(e).unusedTokens.push(r),J(r,n,e)):e._strict&&!n&&p(e).unusedTokens.push(r);p(e).charsLeftOver=s-l,0<o.length&&p(e).unusedInput.push(o),e._a[vr]<=12&&!0===p(e).bigHour&&0<e._a[vr]&&(p(e).bigHour=undefined),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[vr]=bt(e._locale,e._a[vr],e._meridiem),lt(e),at(e)}else mt(e);else ct(e)}function bt(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):(null!=e.isPM&&((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0)),t)}function xt(e){var t,n,i,r,a;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)a=0,t=m({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],yt(t),g(t)&&(a+=p(t).charsLeftOver,a+=10*p(t).unusedTokens.length,p(t).score=a,(null==i||a<i)&&(i=a,n=t));h(e,n||t)}function _t(e){if(!e._d){var t=z(e._i);e._a=n([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),lt(e)}}function wt(e){var t=new v(at(kt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=undefined),t}function kt(e){var t=e._i,n=e._f;return e._locale=e._locale||it(e._l),null===t||n===undefined&&""===t?i({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),y(t)?new v(at(t)):(r(t)?e._d=t:o(n)?xt(e):n?yt(e):Ct(e),g(e)||(e._d=null),e))}function Ct(e){var t=e._i;a(t)?e._d=new Date(u.now()):r(t)?e._d=new Date(t.valueOf()):"string"==typeof t?vt(e):o(t)?(e._a=n(t.slice(0),function(e){return parseInt(e,10)}),lt(e)):s(t)?_t(e):c(t)?e._d=new Date(t):u.createFromInputFallback(e)}function St(e,t,n,i,r){var a={};return!0!==n&&!1!==n||(i=n,n=undefined),(s(e)&&l(e)||o(e)&&0===e.length)&&(e=undefined),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=n,a._i=e,a._f=t,a._strict=i,wt(a)}function Mt(e,t,n,i){return St(e,t,n,i,!1)}function Tt(e,t){var n,i;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Mt();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function Dt(){return Tt("isBefore",[].slice.call(arguments,0))}function At(){return Tt("isAfter",[].slice.call(arguments,0))}function Lt(e){for(var t in e)if(-1===kr.call(ea,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,i=0;i<ea.length;++i)if(e[ea[i]]){if(n)return!1;parseFloat(e[ea[i]])!==x(e[ea[i]])&&(n=!0)}return!0}function Et(){return this._isValid}function Pt(){return Zt(NaN)}function It(e){var t=z(e),n=t.year||0,i=t.quarter||0,r=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=Lt(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+o+7*a,this._months=+r+3*i+12*n,this._data={},this._locale=it(),this._bubble()}function Ot(e){return e instanceof It}function Nt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,n){W(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+H(~~(e/60),2)+n+H(~~e%60,2)})}function zt(e,t){var n=(t||"").match(e);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(ta)||["-",0,0],r=60*i[1]+x(i[2]);return 0===r?0:"+"===i[0]?r:-r}function Rt(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(y(e)||r(e)?e.valueOf():Mt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),u.updateOffset(n,!1),n):Mt(e).local()}function jt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ht(e,t,n){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?r:jt(this);if("string"==typeof e){if(null===(e=zt(ur,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=jt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?nn(this,Zt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,u.updateOffset(this,!0),this._changeInProgress=null)),this}function Wt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Bt(e){return this.utcOffset(0,e)}function Yt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(jt(this),"m")),this}function Vt(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=zt(lr,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function qt(e){return!!this.isValid()&&(e=e?Mt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Ut(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Gt(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(m(e,this),(e=kt(e))._a){var t=e._isUTC?f(e._a):Mt(e._a);this._isDSTShifted=this.isValid()&&0<_(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted}function $t(){return!!this.isValid()&&!this._isUTC}function Xt(){return!!this.isValid()&&this._isUTC}function Kt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Zt(e,t){var n,i,r,a=e,o=null;return Ot(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:c(e)?(a={},t?a[t]=e:a.milliseconds=e):(o=na.exec(e))?(n="-"===o[1]?-1:1,a={y:0,d:x(o[mr])*n,h:x(o[vr])*n,m:x(o[yr])*n,s:x(o[br])*n,ms:x(Nt(1e3*o[xr]))*n}):(o=ia.exec(e))?(n="-"===o[1]?-1:1,a={y:Jt(o[2],n),M:Jt(o[3],n),w:Jt(o[4],n),d:Jt(o[5],n),h:Jt(o[6],n),m:Jt(o[7],n),s:Jt(o[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(r=en(Mt(a.from),Mt(a.to)),(a={}).ms=r.milliseconds,a.M=r.months),i=new It(a),Ot(e)&&d(e,"_locale")&&(i._locale=e._locale),i}function Jt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Qt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function en(e,t){var n;return e.isValid()&&t.isValid()?(t=Rt(t,e),e.isBefore(t)?n=Qt(e,t):((n=Qt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function tn(i,r){return function(e,t){var n;
12return null===t||isNaN(+t)||(C(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),nn(this,Zt(e="string"==typeof e?+e:e,t),i),this}}function nn(e,t,n,i){var r=t._milliseconds,a=Nt(t._days),o=Nt(t._months);e.isValid()&&(i=null==i||i,o&&fe(e,ie(e,"Month")+o*n),a&&re(e,"Date",ie(e,"Date")+a*n),r&&e._d.setTime(e._d.valueOf()+r*n),i&&u.updateOffset(e,a||o))}function rn(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function an(e,t){var n=e||Mt(),i=Rt(n,this).startOf("day"),r=u.calendarFormat(this,i)||"sameElse",a=t&&(S(t[r])?t[r].call(this,n):t[r]);return this.format(a||this.localeData().calendar(r,this,Mt(n)))}function on(){return new v(this)}function sn(e,t){var n=y(e)?e:Mt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function ln(e,t){var n=y(e)?e:Mt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function un(e,t,n,i){var r=y(e)?e:Mt(e),a=y(t)?t:Mt(t);return!!(this.isValid()&&r.isValid()&&a.isValid())&&(("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(a,n):!this.isAfter(a,n)))}function cn(e,t){var n,i=y(e)?e:Mt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function dn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function hn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function fn(e,t,n){var i,r,a;if(!this.isValid())return NaN;if(!(i=Rt(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=F(t)){case"year":a=pn(this,i)/12;break;case"month":a=pn(this,i);break;case"quarter":a=pn(this,i)/3;break;case"second":a=(this-i)/1e3;break;case"minute":a=(this-i)/6e4;break;case"hour":a=(this-i)/36e5;break;case"day":a=(this-i-r)/864e5;break;case"week":a=(this-i-r)/6048e5;break;default:a=this-i}return n?a:b(a)}function pn(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function gn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function mn(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||9999<n.year()?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function vn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]';return this.format(n+i+r+a)}function yn(e){e||(e=this.isUtc()?u.defaultFormatUtc:u.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)}function bn(e,t){return this.isValid()&&(y(e)&&e.isValid()||Mt(e).isValid())?Zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function xn(e){return this.from(Mt(),e)}function _n(e,t){return this.isValid()&&(y(e)&&e.isValid()||Mt(e).isValid())?Zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function wn(e){return this.to(Mt(),e)}function kn(e){var t;return e===undefined?this._locale._abbr:(null!=(t=it(e))&&(this._locale=t),this)}function Cn(){return this._locale}function Sn(e,t){return(e%t+t)%t}function Mn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-ca:new Date(e,t,n).valueOf()}function Tn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-ca:Date.UTC(e,t,n
12)}function Dn(e){var t;if((e=F(e))===undefined||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?Tn:Mn;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Sn(t+(this._isUTC?0:this.utcOffset()*la),ua);break;case"minute":t=this._d.valueOf(),t-=Sn(t,la);break;case"second":t=this._d.valueOf(),t-=Sn(t,sa)}return this._d.setTime(t),u.updateOffset(this,!0),this}function An(e){var t;if((e=F(e))===undefined||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?Tn:Mn;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ua-Sn(t+(this._isUTC?0:this.utcOffset()*la),ua)-1;break;case"minute":t=this._d.valueOf(),t+=la-Sn(t,la)-1;break;case"second":t=this._d.valueOf(),t+=sa-Sn(t,sa)-1}return this._d.setTime(t),u.updateOffset(this,!0),this}function Ln(){return this._d.valueOf()-6e4*(this._offset||0)}function En(){return Math.floor(this.valueOf()/1e3)}function Pn(){return new Date(this.valueOf())}function In(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function On(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Nn(){return this.isValid()?this.toISOString():null}function Fn(){return g(this)}function zn(){return h({},p(this))}function Rn(){return p(this).overflow}function jn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Hn(e,t){W(0,[e,e.length],0,t)}function Wn(e){return qn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Bn(e){return qn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Yn(){return Ce(this.year(),1,4)}function Vn(){var e=this.localeData()._week;return Ce(this.year(),e.dow,e.doy)}function qn(e,t,n,i,r){var a;return null==e?ke(this,i,r).year:((a=Ce(e,i,r))<t&&(t=a),Un.call(this,e,t,n,i,r))}function Un(e,t,n,i,r){var a=we(e,t,n,i,r),o=xe(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Gn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function $n(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Xn(e,t){t[xr]=x(1e3*("0."+e))}function Kn(){return this._isUTC?"UTC":""}function Zn(){return this._isUTC?"Coordinated Universal Time":""}function Jn(e){return Mt(1e3*e)}function Qn(){return Mt.apply(null,arguments).parseZone()}function ei(e){return e}function ti(e,t,n,i){var r=it(),a=f().set(i,t);return r[n](a,e)}function ni(e,t,n){if(c(e)&&(t=e,e=undefined),e=e||"",null!=t)return ti(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=ti(e,i,n,"month");return r}function ii(e,t,n,i){"boolean"==typeof e?c(t)&&(n=t,t=undefined):(t=e,e=!1,c(n=t)&&(n=t,t=undefined)),t=t||"";var r,a=it(),o=e?a._week.dow:0;if(null!=n)return ti(t,(n+o)%7,i,"day");var s=[];for(r=0;r<7;r++)s[r]=ti(t,(r+o)%7,i,"day");return s}function ri(e,t){return ni(e,t,"months")}function ai(e,t){return ni(e,t,"monthsShort")}function oi(e,t,n){return ii(e,t,n,"weekdays")}function si(e,t,n){return ii(e,t,n,"weekdaysShort")}function li(e,t,n){return ii(e,t,n,"weekdaysMin")}function ui(){var e=this._data;return this._milliseconds=ya(this._milliseconds),this._days=ya(this._days),this._months=ya(this._months),e.milliseconds=ya(e.milliseconds),e.seconds=ya(e.seconds),e.minutes=ya(e.minutes),e.hours=ya(e.hours),e.months=ya(e.months),e.years=ya(e.years),this}function ci(e,t,n,i){var r=Zt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function di(e,t){return ci(this,e,t,1)}function hi(e,t){return ci(this,e,t,-1)}function fi(e){return e<0?Math.floor(e):Math.ceil(e)}function pi(){var e,t,n,i,r,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return 0<=a&&0<=o&&0<=s||a<=0&&o<=0&&s<=0||(a+=864e5*fi(mi(s)+o),s=o=0),l.milliseconds=a%1e3,e=b(a/1e3),l.seconds=e%60,t=b(e/60),l.minutes=t%60,n=b(t/60),l.hours=n%24,s+=r=b(gi(o+=b(n/24))),o-=fi(mi(r)),i=b(s/12),s%=12,l.days=o,l.months=s,l.years=i,this}function gi(e){return 4800*e/146097}function mi(e){return 146097*e/4800}function vi(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=F(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+gi(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(mi(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function yi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN}function bi(e){return function(){return this.as(e)}}function xi(){return Zt(this)}function _i(e){return e=F(e),this.isValid()?this[e+"s"]():NaN}function wi(e){return function(){return this.isValid()?this._data[e]:NaN}}function ki(){return b(this.days()/7)}function Ci(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function Si(e,t,n){var i=Zt(e).abs(),r=Na(i.as("s")),a=Na(i.as("m")),o=Na(i.as("h")),s=Na(i.as("d")),l=Na(i.as("M")),u=Na(i.as("y")),c=r<=Fa.ss&&["s",r]||r<Fa.s&&["ss",r]||a<=1&&["m"]||a<Fa.m&&["mm",a]||o<=1&&["h"]||o<Fa.h&&["hh",o]||s<=1&&["d"]||s<Fa.d&&["dd",s]||l<=1&&["M"]||l<Fa.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=t,c[3]=0<+e,c[4]=n,Ci.apply(null,c)}function Mi(e){return e===undefined?Na:"function"==typeof e&&(Na=e,!0)}function Ti(e,t){return Fa[e]!==undefined&&(t===undefined?Fa[e]:(Fa[e]=t,"s"===e&&(Fa.ss=t-1),!0))}function Di(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=Si(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function Ai(e){return(0<e)-(e<0)||+e}function Li(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=za(this._milliseconds)/1e3,i=za(this._days),r=za(this._months);t=b((e=b(n/60))/60),n%=60,e%=60;var a=b(r/12),o=r%=12,s=i,l=t,u=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var h=d<0?"-":"",f=Ai(this._months)!==Ai(d)?"-":"",p=Ai(this._days)!==Ai(d)?"-":"",g=Ai(this._milliseconds)!==Ai(d)?"-":"";return h+"P"+(a?f+a+"Y":"")+(o?f+o+"M":"")+(s?p+s+"D":"")+(l||u||c?"T":"")+(l?g+l+"H":"")+(u?g+u+"M":"")+(c?g+c+"S":"")}var Ei,Pi;Pi=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var Ii,Oi=u.momentProperties=[],Ni=!1,Fi={};u.suppressDeprecationWarnings=!1,u.deprecationHandler=null,Ii=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)d(e,t)&&n.push(t);return n};var zi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Ri={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"},ji="Invalid date",Hi="%d",Wi=/\d{1,2}/,Bi={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Yi={},Vi={},qi=/(\[[^\[]*\])|(\\)?([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}
12|x|X|zz?|ZZ?|.)/g,Ui=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Gi={},$i={},Xi=/\d/,Ki=/\d\d/,Zi=/\d{3}/,Ji=/\d{4}/,Qi=/[+-]?\d{6}/,er=/\d\d?/,tr=/\d\d\d\d?/,nr=/\d\d\d\d\d\d?/,ir=/\d{1,3}/,rr=/\d{1,4}/,ar=/[+-]?\d{1,6}/,or=/\d+/,sr=/[+-]?\d+/,lr=/Z|[+-]\d\d:?\d\d/gi,ur=/Z|[+-]\d\d(?::?\d\d)?/gi,cr=/[+-]?\d+(\.\d{1,3})?/,dr=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,hr={},fr={},pr=0,gr=1,mr=2,vr=3,yr=4,br=5,xr=6,_r=7,wr=8;W("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),W(0,["YY",2],0,function(){return this.year()%100}),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),N("year","y"),R("year",1),U("Y",sr),U("YY",er,Ki),U("YYYY",rr,Ji),U("YYYYY",ar,Qi),U("YYYYYY",ar,Qi),K(["YYYYY","YYYYYY"],pr),K("YYYY",function(e,t){t[pr]=2===e.length?u.parseTwoDigitYear(e):x(e)}),K("YY",function(e,t){t[pr]=u.parseTwoDigitYear(e)}),K("Y",function(e,t){t[pr]=parseInt(e,10)}),u.parseTwoDigitYear=function(e){return x(e)+(68<x(e)?1900:2e3)};var kr,Cr=ne("FullYear",!0);kr=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},W("M",["MM",2],"Mo",function(){return this.month()+1}),W("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),W("MMMM",0,0,function(e){return this.localeData().months(this,e)}),N("month","M"),R("month",8),U("M",er),U("MM",er,Ki),U("MMM",function(e,t){return t.monthsShortRegex(e)}),U("MMMM",function(e,t){return t.monthsRegex(e)}),K(["M","MM"],function(e,t){t[gr]=x(e)-1}),K(["MMM","MMMM"],function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[gr]=r:p(n).invalidMonth=e});var Sr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Mr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Tr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Dr=dr,Ar=dr;W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),R("week",5),R("isoWeek",5),U("w",er),U("ww",er,Ki),U("W",er),U("WW",er,Ki),Z(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=x(e)});var Lr={dow:0,doy:6};W("d",0,"do","day"),W("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),R("day",11),R("weekday",11),R("isoWeekday",11),U("d",er),U("e",er),U("E",er),U("dd",function(e,t){return t.weekdaysMinRegex(e)}),U("ddd",function(e,t){return t.weekdaysShortRegex(e)}),U("dddd",function(e,t){return t.weekdaysRegex(e)}),Z(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e}),Z(["d","e","E"],function(e,t,n,i){t[i]=x(e)});var Er="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Pr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ir="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Or=dr,Nr=dr,Fr=dr;W("H",["HH",2],0,"hour"),W("h",["hh",2],0,qe),W("k",["kk",2],0,Ue),W("hmm",0,0,function(){return""+qe.apply(this)+H(this.minutes(),2)}),W("hmmss",0,0,function(){return""+qe.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+H(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)}),Ge("a",!0),Ge("A",!1),N("hour","h"),R("hour",13),U("a",$e),U("A",$e),U("H",er),U("h",er),U("k",er),U("HH",er,Ki),U("hh",er,Ki),U("kk",er,Ki),U("hmm",tr),U("hmmss",nr),U("Hmm",tr),U("Hmmss",nr),K(["H","HH"],vr),K(["k","kk"],function(e,t){var n=x(e);t[vr]=24===n?0:n}),K(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),K(["h","hh"],function(e,t,n){t[vr]=x(e),p(n).bigHour=!0}),K("hmm",function(e,t,n){var i=e.length-2;t[vr]=x(e.substr(0,i)),t[yr]=x(e.substr(i)),p(n).bigHour=!0}),K("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[vr]=x(e.substr(0,i)),t[yr]=x(e.substr(i,2)),t[br]=x(e.substr(r)),p(n).bigHour=!0}),K("Hmm",function(e,t){var n=e.length-2;t[vr]=x(e.substr(0,n)),t[yr]=x(e.substr(n))}),K("Hmmss",function(e,t){var n=e.length-4,i=e.length-2;t[vr]=x(e.substr(0,n)),t[yr]=x(e.substr(n,2)),t[br]=x(e.substr(i))});var zr,Rr=/[ap]\.?m?\.?/i,jr=ne("Hours",!0),Hr={calendar:zi,longDateFormat:Ri,invalidDate:ji,ordinal:Hi,dayOfMonthOrdinalParse:Wi,relativeTime:Bi,months:Mr,monthsShort:Tr,week:Lr,weekdays:Er,
vendor: 7,582 bytes, lines 12-13
12weekdaysMin:Ir,weekdaysShort:Pr,meridiemParse:Rr},Wr={},Br={},Yr=/^\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)?)?$/,Vr=/^\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)?)?$/,qr=/Z|[+-]\d\d(?::?\d\d)?/,Ur=[["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}/]],Gr=[["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/]],$r=/^\/?Date\((\-?\d+)/i,Xr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Kr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};u.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),u.ISO_8601=function(){},u.RFC_2822=function(){};var Zr=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Mt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:i()}),Jr=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Mt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:i()}),Qr=function(){return Date.now?Date.now():+new Date},ea=["year","quarter","month","week","day","hour","minute","second","millisecond"];Ft("Z",":"),Ft("ZZ",""),U("Z",ur),U("ZZ",ur),K(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=zt(ur,e)});var ta=/([\+\-]|\d\d)/gi;u.updateOffset=function(){};var na=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,ia=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Zt.fn=It.prototype,Zt.invalid=Pt;var ra=tn(1,"add"),aa=tn(-1,"subtract");u.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",u.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var oa=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===undefined?this.localeData():this.locale(e)}),sa=1e3,la=60*sa,ua=60*la,ca=3506328*ua;W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Hn("gggg","weekYear"),Hn("ggggg","weekYear"),Hn("GGGG","isoWeekYear"),Hn("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),R("weekYear",1),R("isoWeekYear",1),U("G",sr),U("g",sr),U("GG",er,Ki),U("gg",er,Ki),U("GGGG",rr,Ji),U("gggg",rr,Ji),U("GGGGG",ar,Qi),U("ggggg",ar,Qi),Z(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=x(e)}),Z(["gg","GG"],function(e,t,n,i){t[i]=u.parseTwoDigitYear(e)}),W("Q",0,"Qo","quarter"),N("quarter","Q"),R("quarter",7),U("Q",Xi),K("Q",function(e,t){t[gr]=3*(x(e)-1)}),W("D",["DD",2],"Do","date"),N("date","D"),R("date",9),U("D",er),U("DD",er,Ki),U("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),K(["D","DD"],mr),K("Do",function(e,t){t[mr]=x(e.match(er)[0])});var da=ne("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),R("dayOfYear",4),U("DDD",ir),U("DDDD",Zi),K(["DDD","DDDD"],function(e,t,n){n._dayOfYear=x(e)}),W("m",["mm",2],0,"minute"),N("minute","m"),R("minute",14),U("m",er),U("mm",er,Ki),K(["m","mm"],yr);var ha=ne("Minutes",!1);W("s",["ss",2],0,"second"),N("second","s"),R("second",15),U("s",er),U("ss",er,Ki),K(["s","ss"],br);var fa,pa=ne("Seconds",!1);for(W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0 13,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),N("millisecond","ms"),R("millisecond",16),U("S",ir,Xi),U("SS",ir,Ki),U("SSS",ir,Zi),fa="SSSS";fa.length<=9;fa+="S")U(fa,or);for(fa="S";fa.length<=9;fa+="S")K(fa,Xn);var ga=ne("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var ma=v.prototype;ma.add=ra,ma.calendar=an,ma.clone=on,ma.diff=fn,ma.endOf=An,ma.format=yn,ma.from=bn,ma.fromNow=xn,ma.to=_n,ma.toNow=wn,ma.get=ae,ma.invalidAt=Rn,ma.isAfter=sn,ma.isBefore=ln,ma.isBetween=un,ma.isSame=cn,ma.isSameOrAfter=dn,ma.isSameOrBefore=hn,ma.isValid=Fn,ma.lang=oa,ma.locale=kn,ma.localeData=Cn,ma.max=Jr,ma.min=Zr,ma.parsingFlags=zn,ma.set=oe,ma.startOf=Dn,ma.subtract=aa,ma.toArray=In,ma.toObject=On,ma.toDate=Pn,ma.toISOString=mn,ma.inspect=vn,ma.toJSON=Nn,ma.toString=gn,ma.unix=En,ma.valueOf=Ln,ma.creationData=jn,ma.year=Cr,ma.isLeapYear=te,ma.weekYear=Wn,ma.isoWeekYear=Bn,ma.quarter=ma.quarters=Gn,ma.month=pe,ma.daysInMonth=ge,ma.week=ma.weeks=De,ma.isoWeek=ma.isoWeeks=Ae,ma.weeksInYear=Vn,ma.isoWeeksInYear=Yn,ma.date=da,ma.day=ma.days=Re,ma.weekday=je,ma.isoWeekday=He,ma.dayOfYear=$n,ma.hour=ma.hours=jr,ma.minute=ma.minutes=ha,ma.second=ma.seconds=pa,ma.millisecond=ma.milliseconds=ga,ma.utcOffset=Ht,ma.utc=Bt,ma.local=Yt,ma.parseZone=Vt,ma.hasAlignedHourOffset=qt,ma.isDST=Ut,ma.isLocal=$t,ma.isUtcOffset=Xt,ma.isUtc=Kt,ma.isUTC=Kt,ma.zoneAbbr=Kn,ma.zoneName=Zn,ma.dates=k("dates accessor is deprecated. Use date instead.",da),ma.months=k("months accessor is deprecated. Use month instead",pe),ma.years=k("years accessor is deprecated. Use year instead",Cr),ma.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Wt),ma.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Gt);var va=D.prototype;va.calendar=A,va.longDateFormat=L,va.invalidDate=E,va.ordinal=P,va.preparse=ei,va.postformat=ei,va.relativeTime=I,va.pastFuture=O,va.set=M,va.months=ue,va.monthsShort=ce,va.monthsParse=he,va.monthsRegex=ve,va.monthsShortRegex=me,va.week=Se,va.firstDayOfYear=Te,va.firstDayOfWeek=Me,va.weekdays=Ie,va.weekdaysMin=Ne,va.weekdaysShort=Oe,va.weekdaysParse=ze,va.weekdaysRegex=We,va.weekdaysShortRegex=Be,va.weekdaysMinRegex=Ye,va.isPM=Xe,va.meridiem=Ke,et("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===x(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),u.lang=k("moment.lang is deprecated. Use moment.locale instead.",et),u.langData=k("moment.langData is deprecated. Use moment.localeData instead.",it);var ya=Math.abs,ba=bi("ms"),xa=bi("s"),_a=bi("m"),wa=bi("h"),ka=bi("d"),C
vendor: 11,435 bytes, line 13
13a=bi("w"),Sa=bi("M"),Ma=bi("Q"),Ta=bi("y"),Da=wi("milliseconds"),Aa=wi("seconds"),La=wi("minutes"),Ea=wi("hours"),Pa=wi("days"),Ia=wi("months"),Oa=wi("years"),Na=Math.round,Fa={ss:44,s:45,m:45,h:22,d:26,M:11},za=Math.abs,Ra=It.prototype;return Ra.isValid=Et,Ra.abs=ui,Ra.add=di,Ra.subtract=hi,Ra.as=vi,Ra.asMilliseconds=ba,Ra.asSeconds=xa,Ra.asMinutes=_a,Ra.asHours=wa,Ra.asDays=ka,Ra.asWeeks=Ca,Ra.asMonths=Sa,Ra.asQuarters=Ma,Ra.asYears=Ta,Ra.valueOf=yi,Ra._bubble=pi,Ra.clone=xi,Ra.get=_i,Ra.milliseconds=Da,Ra.seconds=Aa,Ra.minutes=La,Ra.hours=Ea,Ra.days=Pa,Ra.weeks=ki,Ra.months=Ia,Ra.years=Oa,Ra.humanize=Di,Ra.toISOString=Li,Ra.toString=Li,Ra.toJSON=Li,Ra.locale=kn,Ra.localeData=Cn,Ra.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Li),Ra.lang=oa,W("X",0,0,"unix"),W("x",0,0,"valueOf"),U("x",sr),U("X",cr),K("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),K("x",function(e,t,n){n._d=new Date(x(e))}),u.version="2.24.0",e(Mt),u.fn=ma,u.min=Dt,u.max=At,u.now=Qr,u.utc=f,u.unix=Jn,u.months=ri,u.isDate=r,u.locale=et,u.invalid=i,u.duration=Zt,u.isMoment=y,u.weekdays=oi,u.parseZone=Qn,u.localeData=it,u.isDuration=Ot,u.monthsShort=ai,u.weekdaysMin=li,u.defineLocale=tt,u.updateLocale=nt,u.locales=rt,u.weekdaysShort=si,u.normalizeUnits=F,u.relativeTimeRounding=Mi,u.relativeTimeThreshold=Ti,u.calendarFormat=rn,u.prototype=ma,u.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},u},ja.exports=e()}),Br={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Qi._date.override("function"==typeof Wr?{_id:"moment",formats:function(){return Br},parse:function(e,t){return"string"==typeof e&&"string"==typeof t?e=Wr(e,t):e instanceof Wr||(e=Wr(e)),e.isValid()?e.valueOf():null},format:function(e,t){return Wr(e).format(t)},add:function(e,t,n){return Wr(e).add(t,n).valueOf()},diff:function(e,t,n){return Wr(e).diff(Wr(t),n)},startOf:function(e,t,n){return e=Wr(e),"isoWeek"===t?e.isoWeekday(n).valueOf():e.startOf(t).valueOf()},endOf:function(e,t){return Wr(e).endOf(t).valueOf()},_create:function(e){return Wr(e)}}:{}),bn._set("global",{plugins:{filler:{propagate:!0}}});var Yr={dataset:function(e){var t=e.fill,n=e.chart,i=n.getDatasetMeta(t),r=i&&n.isDatasetVisible(t)&&i.dataset._children||[],a=r.length||0;return a?function(e,t){return t<a&&r[t]._view||null}:null},boundary:function(e){var n=e.boundary,t=n?n.x:null,i=n?n.y:null;return Mn.isArray(n)?function(e,t){return n[t]}:function(e){return{x:null===t?e.x:t,y:null===i?e.y:i}}}},Vr={id:"filler",afterDatasetsUpdate:function(e,t){var n,i,r,a,o=(e.data.datasets||[]).length,s=t.propagate,l=[];for(i=0;i<o;++i)a=null,(r=(n=e.getDatasetMeta(i)).dataset)&&r._model&&r instanceof Zn.Line&&(a={visible:e.isDatasetVisible(i),fill:Nt(r,i,o),chart:e,el:r}),n.$filler=a,l.push(a);for(i=0;i<o;++i)(a=l[i])&&(a.fill=jt(l,i,s),a.boundary=Rt(a),a.mapper=Ht(a))},beforeDatasetsDraw:function(e){var t,n,i,r,a,o,s,l=e._getSortedVisibleDatasetMetas(),u=e.ctx;for(n=l.length-1;0<=n;--n)(t=l[n].$filler)&&t.visible&&(r=(i=t.el)._view,a=i._children||[],o=t.mapper,s=r.backgroundColor||bn.global.defaultColor,o&&s&&a.length&&(Mn.canvas.clipArea(u,e.chartArea),Yt(u,a,o,r,s,i._loop),Mn.canvas.unclipArea(u)))}},qr=Mn.rtl.getRtlAdapter,Ur=Mn.noop,Gr=Mn.valueOrDefault;bn._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,i=this.chart,r=i.getDatasetMeta(n);r.hidden=null===r.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(n){var i=n.data.datasets,e=n.options.legend||{},r=e.labels&&e.labels.usePointStyle;return n._getSortedDatasetMetas().map(function(e){var t=e.controller.getStyle(r?0:undefined);return{text:i[e.index].label,fillStyle:t.backgroundColor,hidden:!n.isDatasetVisible(e.index),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,rotation:t.rotation,datasetIndex:e.index}},this)}}},legendCallback:function(e){var t,n,i,r=document.createElement("ul"),a=e.data.datasets;for(r.setAttribute("class",e.id+"-legend"),t=0,n=a.length;t<n;t++)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[t].backgroundColor,a[t].label&&i.appendChild(document.createTextNode(a[t].label));return r.outerHTML}});var $r=In.extend({initialize:function(e){var t=this;Mn.extend(t,e),t.legendHitBoxes=[],t._hoveredItem=null,t.doughnutMode=!1},beforeUpdate:Ur,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,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:Ur,beforeSetDimensions:Ur,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Ur,beforeBuildLabels:Ur,buildLabels:function(){var t=this,n=t.options.labels||{},e=Mn.callback(n.generateLabels,[t.chart],t)||[];n.filter&&(e=e.filter(function(e){return n.filter(e,t.chart.data)})),t.options.reverse&&e.reverse(),t.legendItems=e},afterBuildLabels:Ur,beforeFit:Ur,fit:function(){var e=this,t=e.options,i=t.labels,n=t.display,r=e.ctx,a=Mn.options._parseFont(i),o=a.size,s=e.legendHitBoxes=[],l=e.minSize,u=e.isHorizontal();if(u?(l.width=e.maxWidth,l.height=n?10:0):(l.width=n?10:0,l.height=e.maxHeight),n){if(r.font=a.string,u){var c=e.lineWidths=[0],d=0;r.textAlign="left",r.textBaseline="middle",Mn.each(e.legendItems,function(e,t){var n=Vt(i,o)+o/2+r.measureText(e.text).width;(0===t||c[c.length-1]+n+2*i.padding>l.width)&&(d+=o+i.padding,c[c.length-(0<t?0:1)]=0),s[t]={left:0,top:0,width:n,height:o},c[c.length-1]+=n+i.padding}),l.height+=d}else{var h=i.padding,f=e.columnWidths=[],p=e.columnHeights=[],g=i.padding,m=0,v=0;Mn.each(e.legendItems,function(e,t){var n=Vt(i,o)+o/2+r.measureText(e.text).width;0<t&&v+o+2*h>l.height&&(g+=m+i.padding,f.push(m),p.push(v),v=m=0),m=Math.max(m,n),v+=o+h,s[t]={left:0,top:0,width:n,height:o}}),g+=m,f.push(m),p.push(v),l.width+=g}e.width=l.width,e.height=l.height}else e.width=l.width=e.height=l.height=0},afterFit:Ur,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var s=this,n=s.options,l=n.labels,e=bn.global,u=e.defaultColor,c=e.elements.line,d=s.height,h=s.columnHeights,f=s.width,p=s.lineWidths;if(n.display){var g,m=qr(n.rtl,s.left,s.minSize.width),v=s.ctx,t=Gr(l.fontColor,e.defaultFontColor),i=Mn.options._parseFont(l),y=i.size;v.textAlign=m.textAlign("left"),v.textBaseline="middle",v.lineWidth=.5,v.strokeStyle=t,v.fillStyle=t,v.font=i.string;var b=Vt(l,y),x=s.legendHitBoxes,_=function(e,t,n){if(!(isNaN(b)||b<=0)){v.save();var i=Gr(n.lineWidth,c.borderWidth);if(v.fillStyle=Gr(n.fillStyle,u),v.lineCap=Gr(n.lineCap,c.borderCapStyle),v.lineDashOffset=Gr(n.lineDashOffset,c.borderDashOffset),v.lineJoin=Gr(n.lineJoin,c.borderJoinStyle),v.lineWidth=i,v.strokeStyle=Gr(n.strokeStyle,u),v.setLineDash&&v.setLineDash(Gr(n.lineDash,c.borderDash)),l&&l.usePointStyle){var r=b*Math.SQRT2/2,a=m.xPlus(e,b/2),o=t+y/2;Mn.canvas.drawPoint(v,n.pointStyle,r,a,o,n.rotation)}else v.fillRect(m.leftForLtr(e,b),t,b,y),0!==i&&v.strokeRect(m.leftForLtr(e,b),t,b,y);v.restore()}},w=function(e,t,n,i){var r=y/2,a=m.xPlus(e,b+r),o=t+r;v.fillText(n.text,a,o),n.hidden&&(v.beginPath(),v.lineWidth=2,v.moveTo(a,o),v.lineTo(m.xPlus(a,i),o),v.stroke())},k=function(e,t){switch(n.align){case"start":return l.padding;case"end":return e-t;default:return(e-t+l.padding)/2}},C=s.isHorizontal();g=C?{x:s.left+k(f,p[0]),y:s.top+l.padding,line:0}:{x:s.left+l.padding,y:s.top+k(d,h[0]),line:0},Mn.rtl.overrideTextDirection(s.ctx,n.textDirection);var S=y+l.padding;Mn.each(s.legendItems,function(e,t){var n=v.measureText(e.text).width,i=b+y/2+n,r=g.x,a=g.y;m.setWidth(s.minSize.width),C?0<t&&r+i+l.padding>s.left+s.minSize.width&&(a=g.y+=S,g.line++,r=g.x=s.left+k(f,p[g.line])):0<t&&a+S>s.top+s.minSize.height&&(r=g.x=r+s.columnWidths[g.line]+l.padding,g.line++,a=g.y=s.top+k(d,h[g.line]));var o=m.x(r);_(o,a,e),x[t].left=m.leftForLtr(o,x[t].width),x[t].top=a,w(o,a,e,n),C?g.x+=i+l.padding:g.y+=S}),Mn.rtl.restoreTextDirection(s.ctx,n.textDirection)}},_getLegendItemAt:function(e,t){var n,i,r,a=this;if(e>=a.left&&e<=a.right&&t>=a.top&&t<=a.bottom)for(r=a.legendHitBoxes,n=0;n<r.length;++n)if(e>=(i=r[n]).left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height)return a.legendItems[n];return null},handleEvent:function(e){var t,n=this,i=n.options,r="mouseup"===e.type?"click":e.type;if("mousemove"===r){if(!i.onHover&&!i.onLeave)return}else{if("click"!==r)return;if(!i.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===r?t&&i.onClick&&i.onClick.call(n,e["native"],t):(i.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&i.onLeave.call(n,e["native"],n._hoveredItem),n._hoveredItem=t),i.onHover&&t&&i.onHover.call(n,e["native"],t))}}),Xr={id:"legend",_element:$r,beforeInit:function(e){var t=e.options.legend;t&&qt(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(Mn.mergeIf(t,bn.global.legend),n?(Mi.configure(e,n,t),n.options=t):qt(e,t)):n&&(Mi.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},Kr=Mn.noop;bn._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Zr=In.extend({initialize:function(e){var t=this;Mn.extend(t,e),t.legendHitBoxes=[]},beforeUpdate:Kr,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,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:Kr,beforeSetDimensions:Kr,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Kr,beforeBuildLabels:Kr,buildLabels:Kr,afterBuildLabels:Kr,beforeFit:Kr,fit:function(){var e,t=this,n=t.options,i=t.minSize={},r=t.isHorizontal();n.display?(e=(Mn.isArray(n.text)?n.text.length:1)*Mn.options._parseFont(n).lineHeight+2*n.padding,t.width=i.width=r?t.maxWidth:e,t.height=i.height=r?e:t.maxHeight):t.width=i.width=t.height=i.height=0},afterFit:Kr,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var i,r,a,o=Mn.options._parseFont(n),s=o.lineHeight,l=s/2+n.padding,u=0,c=e.top,d=e.left,h=e.bottom,f=e.right;t.fillStyle=Mn.valueOrDefault(n.fontColor,bn.global.defaultFontColor),t.font=o.string,e.isHorizontal()?(r=d+(f-d)/2,a=c+l,i=f-d):(r="left"
13===n.position?d+l:f-l,a=c+(h-c)/2,i=h-c,u=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(r,a),t.rotate(u),t.textAlign="center",t.textBaseline="middle";var p=n.text;if(Mn.isArray(p))for(var g=0,m=0;m<p.length;++m)t.fillText(p[m],0,g,i),g+=s;else t.fillText(p,0,0,i);t.restore()}}}),Jr={},Qr=Vr,ea=Xr,ta={id:"title",_element:Zr,beforeInit:function(e){var t=e.options.title;t&&Ut(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(Mn.mergeIf(t,bn.global.title),n?(Mi.configure(e,n,t),n.options=t):Ut(e,t)):n&&(Mi.removeBox(e,n),delete e.titleBlock)}};for(var na in Jr.filler=Qr,Jr.legend=ea,Jr.title=ta,Zi.helpers=Mn,Ji(),Zi._adapters=Qi,Zi.Animation=Nn,Zi.animationService=Fn,Zi.controllers=ki,Zi.DatasetController=Hn,Zi.defaults=bn,Zi.Element=In,Zi.elements=Zn,Zi.Interaction=Ci,Zi.layouts=Mi,Zi.platform=Hi,Zi.plugins=Wi,Zi.Scale=or,Zi.scaleService=Bi,Zi.Ticks=er,Zi.Tooltip=$i,Zi.helpers.each(Hr,function(e,t){Zi.scaleService.registerScaleType(t,e,e._defaults)}),Jr)Jr.hasOwnProperty(na)&&Zi.plugins.register(Jr[na]);Zi.platform.initialize();var ia=Zi;return"undefined"!=typeof window&&(window.Chart=Zi),(Zi.Chart=Zi).Legend=Jr.legend._element,Zi.Title=Jr.title._element,Zi.pluginService=Zi.plugins,Zi.PluginBase=Zi.Element.extend({}),Zi.canvasHelpers=Zi.helpers.canvas,Zi.layoutService=Zi.layouts,Zi.LinearScaleBase=fr,Zi.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(n){Zi[n]=function(e,t){return new Zi(e,Zi.helpers.merge(t||{},{type:n.charAt(0).toLowerCase()+n.slice(1)}))}}),ia}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Chartkick=t()}(this,function(){"use strict";function h(e){return"[object Array]"===Object.prototype.toString.call(e)}function o(e){return e instanceof Function}function i(e){return"[object Object]"===Object.prototype.toString.call(e)&&!o(e)&&e instanceof Object}function r(e,t){var n;for(n in t)"__proto__"!==n&&(i(t[n])||h(t[n])?(i(t[n])&&!i(e[n])&&(e[n]={}),h(t[n])&&!h(e[n])&&(e[n]=[]),r(e[n],t[n])):t[n]!==undefined&&(e[n]=t[n]))}function U(e,t){var n={};return r(n,e),r(n,t),n}function a(e){var t,n,i,r,a,o,s,l,u,c,d;return"[object Date]"===(c=Object.prototype.toString.call(e))?e:"[object String]"===c&&(i=e.match(H))?(d=parseInt(i[1],10),o=parseInt(i[3],10)-1,t=parseInt(i[5],10),n=parseInt(i[7],10),a=i[9]?parseInt(i[9],10):0,u=i[11]?parseInt(i[11],10):0,r=i[12]?1e3*parseFloat(W+i[12].slice(1)):0,l=Date.UTC(d,o,t,n,a,u,r),i[13]&&i[14]&&(s=60*i[15],i[17]&&(s+=parseInt(i[17],10)),l-=60*(s*="-"===i[14]?-1:1)*1e3),new Date(l)):void 0}function f(e){var t,n,i;for(t=0;t<e.length;t++)for(i=e[t].data,n=0;n<i.length;n++)if(i[n][1]<0)return!0;return!1}function p(e){return""+e}function G(e){return parseFloat(e)}function $(e){var t,n,i,r;if("object"!=typeof e)if("number"==typeof e)e=new Date(1e3*e);else{if(t=(e=p(e)).match(j))return n=parseInt(t[1],10),i=parseInt(t[3],10)-1,r=parseInt(t[5],10),new Date(n,i,r);e=a(e.replace(/ /,"T").replace(" ","").replace("UTC","Z"))||new Date(e)}return e}function s(e){if(!h(e)){var t,n=[];for(t in e)e.hasOwnProperty(t)&&n.push([t,e[t]]);e=n}return e}function l(a,o,s,l,u,c,d,h){return function(e,t,n){var i=e.data,r=U({},a);return r=U(r,n||{}),(e.hideLegend||"legend"in t)&&o(r,t.legend,e.hideLegend),t.title&&s(r,t.title),"min"in t?l(r,t.min):f(i)||l(r,0),t.max&&u(r,t.max),"stacked"in t&&c(r,t.stacked),t.colors&&(r.colors=t.colors),t.xtitle&&d(r,t.xtitle),t.ytitle&&h(r,t.ytitle),r=U(r,t.library||{})}}function g(e,t){return e[0].getTime()-t[0].getTime()}function m(e,t){return e[0]-t[0]}function X(e,t){return e-t}function K(e){return 0===e.getMilliseconds()&&0===e.getSeconds()}function Z(e){return K(e)&&0===e.getMinutes()}function J(e){return Z(e)&&0===e.getHours()}function Q(e,t){return J(e)&&e.getDay()===t}function ee(e){return J(e)&&1===e.getDate()}function te(e){return ee(e)&&0===e.getMonth()}function u(e){return!isNaN($(e))&&6<=p(e).length}function c(e){return"number"==typeof e}function v(e,t,n,i){e=e||"",n.prefix&&(t<0&&(t*=-1,e+="-"),e+=n.prefix);var r=n.suffix||"",a=n.precision,o=n.round;if(n.byteScale){var s,l=i?n.byteScale:t;0x1000000000000000<=l?(t/=0x1000000000000000,s=6):0x4000000000000<=l?(t/=0x4000000000000,s=5):1099511627776<=l?(t/=1099511627776,s=4):1073741824<=l?(t/=1073741824,s=3):1048576<=l?(t/=1048576,s=2):1024<=l?(t/=1024,s=1):s=0,a===undefined&&o===undefined&&(1023.5<=t&&s<B.length-1&&(s+=t=1),a=1e3<=t?4:3),r=" "+B[s]}
13if(a!==undefined&&o!==undefined)throw Error("Use either round or precision, not both");if(!i&&(a!==undefined&&(t=t.toPrecision(a),n.zeros||(t=parseFloat(t))),o!==undefined))if(o<0){var u=Math.pow(10,-1*o);t=parseInt((1*t/u).toFixed(0))*u}else t=t.toFixed(o),n.zeros||(t=parseFloat(t));if(n.thousands||n.decimal){var c=(t=p(t)).split(".");t=c[0],n.thousands&&(t=t.replace(/\B(?=(\d{3})+(?!\d))/g,n.thousands)),1<c.length&&(t+=(n.decimal||".")+c[1])}return e+t+r}function ne(e,t,n){return n in t?t[n]:n in e.options?e.options[n]:null}function d(e){var t,n,i;for(t=0;t<e.length;t++)for(i=e[t].data,n=0;n<i.length;n++)if(0!=i[n][1])return!1;return!0}function y(e,t,n){Re.push([e,t,n]),b()}function b(){if(je<He){var e=Re.shift();e&&(je++,t(e[0],e[1],e[2]),b())}}function x(){je--,b()}function t(e,t,r){n(e,t,function(e,t,n){var i="string"==typeof n?n:n.message;r(i)})}function n(e,t,n){var i=window.jQuery||window.Zepto||window.$;if(i&&i.ajax)i.ajax({dataType:"json",url:e,success:t,error:n,complete:x});else{var r=new XMLHttpRequest;r.open("GET",e,!0),r.setRequestHeader("Content-Type","application/json"),r.onload=function(){x(),200===r.status?t(JSON.parse(r.responseText),r.statusText,r):n(r,"error",r.statusText)},r.send()}}function _(e,t){document.body.innerText?e.innerText=t:e.textContent=t}function w(e,t,n){n||(t="Error Loading Chart: "+t),_(e,t),e.style.color="#ff0000"}function k(e){try{e.__render()}catch(t){throw w(e.element,t.message),t}}function C(t,e){if("string"==typeof e)y(e,function(e){t.rawData=e,k(t)},function(e){w(t.element,e)});else if("function"==typeof e)try{e(function(e){t.rawData=e,k(t)},function(e){w(t.element,e,!0)})}catch(n){w(t.element,n,!0)}else t.rawData=e,k(t)}function S(n){var i=n.element,r=document.createElement("a"),a=n.options.download;!0===a?a={}:"string"==typeof a&&(a={filename:a}),r.download=a.filename||"chart.png",r.style.position="absolute",r.style.top="20px",r.style.right="20px",r.style.zIndex=1e3,r.style.lineHeight="20px",r.target="_blank";var e=document.createElement("img");
13e.alt="Download",e.style.border="none",e.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAABCFBMVEUAAADMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMywEsqxAAAAV3RSTlMAAQIDBggJCgsMDQ4PERQaHB0eISIjJCouLzE0OTo/QUJHSUpLTU5PUllhYmltcHh5foWLjI+SlaCio6atr7S1t7m6vsHHyM7R2tze5Obo7fHz9ff5+/1hlxK2AAAA30lEQVQYGUXBhVYCQQBA0TdYWAt2d3d3YWAHyur7/z9xgD16Lw0DW+XKx+1GgX+FRzM3HWQWrHl5N/oapW5RPe0PkBu+UYeICvozTWZVK23Ao04B79oJrOsJDOoxkZoQPWgX29pHpCZEk7rEvQYiNSFq1UMqvlCjJkRBS1R8hb00Vb/TajtBL7nTHE1X1vyMQF732dQhyF2o6SAwrzP06iUQzvwsArlnzcOdrgBhJyHa1QOgO9U1GsKuvjUTjavliZYQ8nNPapG6sap/3nrIdJ6bOWzmX/fy0XVpfzZP3S8OJT3g9EEiJwAAAABJRU5ErkJggg==",r.appendChild(e),i.style.position="relative",n.__downloadAttached=!0,n.__enterEvent=M(i,"mouseover",function(e){var t=e.relatedTarget;t&&(t===this||T(this,t))||!n.options.download||(r.href=n.toImage(a),i.appendChild(r))}),n.__leaveEvent=M(i,"mouseout",function(e){var t=e.relatedTarget;t&&(t===this||T(this,t))||r.parentNode&&r.parentNode.removeChild(r)})}function M(e,t,n){if(e.addEventListener)return e.addEventListener(t,n,!1),n;var i=function(){return n.call(e,window.event)};return e.attachEvent("on"+t,i),i}function e(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function T(e,t){if(e===t)return!1;for(;t&&t!==e;)t=t.parentNode;return t===e}function D(e){if(e){if("Highcharts"===e.product)return Ce;if(e.charts)return ze;if(o(e))return ye}throw new Error("Unknown adapter")}function A(e){var t=new(D(e))(e);-1===Be.indexOf(t)&&Be.push(t)}function L(){"Chart"in window&&A(window.Chart),"Highcharts"in window&&A(window.Highcharts),window.google&&window.google.charts&&A(window.google)}function E(e,t){if("PieChart"===t||"GeoChart"===t||"Timeline"===t)return 0===e.length;for(var n=0;n<e.length;n++)if(0<e[n].data.length)return!1;return!0}function P(e,t){t.options.messages&&t.options.messages.empty&&E(t.data,e)?_(t.element,t.options.messages.empty):(I(e,t),t.options.download&&!t.__downloadAttached&&"chartjs"===t.adapter&&S(t))}function I(e,t){var n,i,r,a;for(r="render"+e,a=t.options.adapter,L(),n=0;n<Be.length;n++)if(i=Be[n],(!a||a===i.name)&&o(i[r]))return t.adapter=i.name,(t.__adapterObject=i)[r](t);throw 0<Be.length?new Error("No charting library found for "+e):new Error("No charting libraries found - be sure to include one before your charts")}function O(e,t,n){return E(e)?!n.xmin&&!n.xmax||n.xmin&&!u(n.xmin)||n.xmax&&!u(n.xmax)?"number":"datetime":N(e,c)?"number":!t&&N(e,u)?"datetime":"string"}function N(e,t){var n,i,r;for(n=0;n<e.length;n++)for(r=s(e[n].data),i=0;i<r.length;i++)if(!t(r[i][0]))return!1;return!0}function F(e){var t,n,i=[];for(t=0;t<e.length;t++){var r={};for(n in e[t])e[t].hasOwnProperty(n)&&(r[n]=e[t][n]);i.push(r)}return i}function z(e,t,n){var i,r=e.options,a=e.rawData;for(!h(a)||"object"!=typeof a[0]||h(a[0])?(a=[{name:r.label,data:a}],e.hideLegend=!0):e.hideLegend=!1,a=F(a),i=0;i<a.length;i++)a[i].data=s(a[i].data);for(e.xtype=t||(r.discrete?"string":O(a,n,r)),i=0;i<a.length;i++)a[i].data=Ve(a[i].data,e.xtype);return a}function R(e){var t,n=s(e.rawData);for(t=0;t<n.length;t++)n[t]=[p(n[t][0]),G(n[t][1])];return n}var j=/^(\d\d\d\d)(-)?(\d\d)(-)?(\d\d)$/i,H=/(\d\d\d\d)(-)?(\d\d)(-)?(\d\d)(T)?(\d\d)(:)?(\d\d)?(:)?(\d\d)?([.,]\d+)?($|Z|([+-])(\d\d)(:)?(\d\d)?)/i,W=String(1.5).charAt(1),B=["bytes","KB","MB","GB","TB","PB","EB"],Y={maintainAspectRatio:!1,animation:!1,tooltips:{displayColors:!1,callbacks:{}},legend:{},title:{fontSize:20,fontColor:"#333"}},V={scales:{yAxes:[{ticks:{maxTicksLimit:4},scaleLabel:{fontSize:16,fontColor:"#333"}}],xAxes:[{gridLines:{drawOnChartArea:!1},scaleLabel:{fontSize:16,fontColor:"#333"},time:{},ticks:{}}]}},ie=["#3366CC","#DC3912","#FF9900","#109618","#990099","#3B3EAC","#0099C6","#DD4477","#66AA00","#B82E2E","#316395","#994499","#22AA99","#AAAA11","#6633CC","#E67300","#8B0707","#329262","#5574A6","#651067"],q=function(e,t,n){t!==undefined?(e.legend.display=!!t,t&&!0!==t&&(e.legend.position=t)):n&&(e.legend.display=!1)},re=function(e,t){e.title.display=!0,e.title.text=t},ae=function(e,t){null!==t&&(e.scales.yAxes[0].ticks.min=G(t))},oe=function(e,t){e.scales.yAxes[0].ticks.max=G(t)},se=function(e,t){null!==t&&(e.scales.xAxes[0].ticks.min=G(t))},le=function(e,t){e.scales.xAxes[0].ticks.max=G(t)},ue=function(e,t){e.scales.xAxes[0].stacked=!!t,e.scales.yAxes[0].stacked=!!t},ce=function(e,t){e.scales.xAxes[0].scaleLabel.display=!0,e.scales.xAxes[0].scaleLabel.labelString=t},de=function(e,t){e.scales.yAxes[0].scaleLabel.display=!0,e.scales.yAxes[0].scaleLabel.labelString=t},he=function(e,t){var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?"rgba("+parseInt(n[1],16)+", "+parseInt(n[2],16)+", "+parseInt(n[3],16)+", "+t+")":e},fe=function(e){return null!=e},pe=function(e,t,n){var i=Math.ceil(e.element.offsetWidth/4/t.labels.length);25<i?i=25:i<10&&(i=10),n.scales.xAxes[0].ticks.callback||(n.scales.xAxes[0].ticks.callback=function(e){return(e=p(e)).length>i?e.substring(0,i-2)+"...":e})},ge=function(e,t,n){var r={prefix:e.options.prefix,suffix:e.options.suffix,thousands:e.options.thousands,decimal
13:e.options.decimal,precision:e.options.precision,round:e.options.round,zeros:e.options.zeros};if(e.options.bytes){var i=e.data;"pie"===n&&(i=[{data:i}]);for(var a=0,o=0;o<i.length;o++)for(var s=i[o],l=0;l<s.data.length;l++)s.data[l][1]>a&&(a=s.data[l][1]);for(var u=1;1024<=a;)u*=1024,a/=1024;r.byteScale=u}if("pie"!==n){var c=t.scales.yAxes;"bar"===n&&(c=t.scales.xAxes),r.byteScale&&(c[0].ticks.stepSize||(c[0].ticks.stepSize=r.byteScale/2),c[0].ticks.maxTicksLimit||(c[0].ticks.maxTicksLimit=4)),c[0].ticks.callback||(c[0].ticks.callback=function(e){return v("",e,r,!0)})}if(!t.tooltips.callbacks.label)if("scatter"===n)t.tooltips.callbacks.label=function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),n+"("+e.xLabel+", "+e.yLabel+")"};else if("bubble"===n)t.tooltips.callbacks.label=function(e,t){var n=t.datasets[e.datasetIndex].label||"";n&&(n+=": ");var i=t.datasets[e.datasetIndex].data[e.index];return n+"("+e.xLabel+", "+e.yLabel+", "+i.v+")"};else if("pie"===n)t.tooltips.callbacks.label=function(e,t){var n=t.labels[e.index],i=": ";return h(n)?(n=n.slice())[0]+=i:n+=i,v(n,t.datasets[e.datasetIndex].data[e.index],r)};else{var d="bar"===n?"xLabel":"yLabel";t.tooltips.callbacks.label=function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),v(n,e[d],r)}}},me=l(U(Y,V),q,re,ae,oe,ue,ce,de),ve=function(e,t,n,i){var r,a=[],o=[],s=e.options.colors||ie,l=!0,u=!0,c=!0,d=!0,h=!0,f=!0,p=e.data,g=0;if("bubble"===n)for(var m=0;m<p.length;m++)for(var v=p[m],y=0;y<v.data.length;y++)v.data[y][2]>g&&(g=v.data[y][2]);var b,x,_,w,k,C=[],S=[];if("bar"===n||"column"===n||"number"!==e.xtype&&"bubble"!==e.xtype){var M,T,D=[];for(b=0;b<p.length;b++)for(_=p[b],x=0;x<_.data.length;x++)w=_.data[x],C[k="datetime"==e.xtype?w[0].getTime():w[0]]||(C[k]=new Array(p.length)),C[k][b]=G(w[1]),-1===D.indexOf(k)&&D.push(k);for("datetime"!==e.xtype&&"number"!==e.xtype||D.sort(X),x=0;x<p.length;x++)S.push([]);for(T=0;T<D.length;T++)for(b=D[T],"datetime"===e.xtype?(M=new Date(G(b)),l=l&&J(M),r||(r=M.getDay()),u=u&&Q(M,r),c=c&&ee(M),d=d&&te(M),h=h&&Z(M),f=f&&K(M)):M=b,o.push(M),x=0;x<p.length;x++)S[x].push(C[b][x]===undefined?null:C[b][x])}else for(var A=0;A<p.length;A++){for(var L=p[A],E=[],P=0;P<L.data.length;P++){var I={x:G(L.data[P][0]),y:G(L.data[P][1])};"bubble"===n&&(I.r=20*G(L.data[P][2])/g,I.v=L.data[P][2]),E.push(I)}S.push(E)}for(b=0;b<p.length;b++){var O=(_=p[b]).color||s[b],N="line"!==n?he(O,.5):O,F={label:_.name||"",data:S[b],fill:"area"===n,borderColor:O,backgroundColor:N,pointBackgroun
13dColor:O,borderWidth:2,pointHoverBackgroundColor:O};_.stack&&(F.stack=_.stack),!1===ne(e,_,"curve")&&(F.lineTension=0),!1===ne(e,_,"points")&&(F.pointRadius=0,F.pointHitRadius=5),F=U(F=U(F=U(F,e.options.dataset||{}),_.library||{}),_.dataset||{}),a.push(F)}var z=e.options.xmin,R=e.options.xmax;if("datetime"===e.xtype){var j="math"in i.helpers?"ticks":"time";fe(z)&&(t.scales.xAxes[0][j].min=$(z).getTime()),fe(R)&&(t.scales.xAxes[0][j].max=$(R).getTime())}else"number"===e.xtype&&(fe(z)&&(t.scales.xAxes[0].ticks.min=z),fe(R)&&(t.scales.xAxes[0].ticks.max=R));if("datetime"===e.xtype&&0===o.length&&(fe(z)&&o.push($(z)),fe(R)&&o.push($(R)),f=h=d=c=u=l=!1),"datetime"===e.xtype&&0<o.length){var H=(fe(z)?$(z):o[0]).getTime(),W=(fe(R)?$(R):o[0]).getTime();for(b=1;b<o.length;b++){var B=o[b].getTime();B<H&&(H=B),W<B&&(W=B)}var Y,V=(W-H)/864e5;if(!t.scales.xAxes[0].time.unit)if(d||3650<V?(t.scales.xAxes[0].time.unit="year",Y=365):c||300<V?(t.scales.xAxes[0].time.unit="month",Y=30):l||10<V?(t.scales.xAxes[0].time.unit="day",Y=1):h||.5<V?(t.scales.xAxes[0].time.displayFormats={hour:"MMM D, h a"},t.scales.xAxes[0].time.unit="hour",Y=1/24):f&&(t.scales.xAxes[0].time.displayFormats={minute:"h:mm a"},t.scales.xAxes[0].time.unit="minute",Y=1/24/60),Y&&0<V){var q=Math.ceil(V/Y/(e.element.offsetWidth/100));u&&1===Y&&(q=7*Math.ceil(q/7)),t.scales.xAxes[0].time.unitStepSize=q}t.scales.xAxes[0].time.tooltipFormat||(l?t.scales.xAxes[0].time.tooltipFormat="ll":h?t.scales.xAxes[0].time.tooltipFormat="MMM D, h a":f&&(t.scales.xAxes[0].time.tooltipFormat="h:mm a"))}return{labels:o,datasets:a}},ye=function ye(e){this.name="chartjs",this.library=e};ye.prototype.renderLineChart=function Ge(e,t){var n={};!e.options.max&&d(e.data)&&(n.max=1);var i=me(e,U(n,e.options));ge(e,i,t);var r=ve(e,i,t||"line",this.library);"number"===e.xtype?(i.scales.xAxes[0].type="linear",i.scales.xAxes[0].position="bottom"):i.scales.xAxes[0].type="string"===e.xtype?"category":"time",this.drawChart(e,"line",r,i)},ye.prototype.renderPieChart=function $e(e){var t=U({},Y);e.options.donut&&(t.cutoutPercentage=50),"legend"in e.options&&q(t,e.options.legend),e.options.title&&re(t,e.options.title),t=U(t,e.options.library||{}),ge(e,t,"pie");for(var n=[],i=[],r=0;r<e.data.length;r++){var a=e.data[r];n.push(a[0]),i.push(a[1])}var o={data:i,backgroundColor:e.options.colors||ie},s={labels:n,datasets:[o=U(o,e.options.dataset||{})]};this.drawChart(e,"pie",s,t)},ye.prototype.renderColumnChart=function Xe(e,t){var n;if("bar"===t){var i=U(Y,V);delete i.scales.yAxes[0].ticks.maxTicksLimit,n=l(i,q,re,se,le,ue,ce,de)(e,e.options)}else n=me(e,e.options);ge(e,n,t);var r=ve(e,n,"column",this.library);"bar"!==t&&pe(e,r,n),this.drawChart(e,"bar"===t?"horizontalBar":"bar",r,n)},ye.prototype.renderAreaChart=function Ke(e){this.renderLineChart(e,"area")},ye.prototype.renderBarChart=function Ze(e){this.renderColumnChart(e,"bar")},ye.prototype.renderScatterChart=function Je(e,t){t=t||"scatter";var n=me(e,e.options);ge(e,n,t),"showLines"in n||(n.showLines=!1);var i=ve(e,n,t,this.library);n.scales.xAxes[0].type="linear",n.scales.xAxes[0].position="bottom",this.drawChart(e,t,i,n)},ye.prototype.renderBubbleChart=function Qe(e){this.renderScatterChart(e,"bubble")},ye.prototype.destroy=function et(e){e.chart&&e.chart.destroy()};var be={chart:{},xAxis:{title:{text:null},labels:{style:{fontSize:"12px"}}},yAxis:{title:{text:null},labels:{style:{fontSize:"12px"}}},title:{text:null},credits:{enabled:!(ye.prototype.drawChart=function tt(e,t,n,i){this.destroy(e);var r={type:t,data:n,options:i};e.options.code&&window.console.log("new Chart(ctx, "+JSON.stringify(r)+");"),e.element.innerHTML="<canvas></canvas>";var a=e.element.getElementsByTagName("CANVAS")[0];e.chart=new this.library(a,r)})},legend:{borderWidth:0},tooltip:{style:{fontSize:"12px"}},plotOptions:{areaspline:{},area:{},series:{marker:{}}}},xe=function(e,t,n){t!==undefined?(e.legend.enabled=!!t,t&&!0!==t&&("top"===t||"bottom"===t?e.legend.verticalAlign=t:(e.legend.layout="vertical",e.legend.verticalAlign="middle",e.legend.align=t))):n&&(e.legend.enabled=!1)},_e=function(e,t){e.title.text=t},we=l(be,xe,_e,function(e, 14t){e.yAxis.min=t},function(e,t){e.yAxis.max=t},function(e,t){var n=t?!0===t?"normal":t:null;e.plotOptions.series.stacking=n,e.plotOptions.area.stacking=n,e.plotOptions.areaspline.stacking=n},function(e,t){e.xAxis.title.text=t},function(e,t){e.yAxis.title.text=t}
14),ke=function(e,t,n){var i={prefix:e.options.prefix,suffix:e.options.suffix,thousands:e.options.thousands,decimal:e.options.decimal,precision:e.options.precision,round:e.options.round,zeros:e.options.zeros};"pie"===n||t.yAxis.labels.formatter||(t.yAxis.labels.formatter=function(){return v("",this.value,i)}),t.tooltip.pointFormatter||(t.tooltip.pointFormatter=function(){return'<span style="color:'+this.color+'">\u25cf</span> '+v(this.series.name+": <b>",this.y,i)+"</b><br/>"})},Ce=function ye(e){this.name="highcharts",this.library=e};Ce.prototype.renderLineChart=function Ge(e,t){var n={};"areaspline"===(t=t||"spline")&&(n={plotOptions:{areaspline:{stacking:"normal"},area:{stacking:"normal"},series:{marker:{enabled:!1}}}}),!1===e.options.curve&&("areaspline"===t?t="area":"spline"===t&&(t="line"));var i,r,a,o=we(e,e.options,n);o.xAxis.type="string"===e.xtype?"category":"number"===e.xtype?"linear":"datetime",o.chart.type||(o.chart.type=t),ke(e,o,t);var s=e.data;for(r=0;r<s.length;r++){if(s[r].name=s[r].name||"Value",i=s[r].data,"datetime"===e.xtype)for(a=0;a<i.length;a++)i[a][0]=i[a][0].getTime();!(s[r].marker={symbol:"circle"})===e.options.points&&(s[r].marker.enabled=!1)}this.drawChart(e,s,o)},Ce.prototype.renderScatterChart=function Je(e){var t=we(e,e.options,{});t.chart.type="scatter",this.drawChart(e,e.data,t)},Ce.prototype.renderPieChart=function $e(e){var t=U(be,{});e.options.colors&&(t.colors=e.options.colors),e.options.donut&&(t.plotOptions={pie:{innerSize:"50%"}}),"legend"in e.options&&xe(t,e.options.legend),e.options.title&&_e(t,e.options.title);var n=U(t,e.options.library||{});ke(e,n,"pie");var i=[{type:"pie",name:e.options.label||"Value",data:e.data}];this.drawChart(e,i,n)},Ce.prototype.renderColumnChart=function Xe(e,t){t=t||"column";var n,i,r,a,o=e.data,s=we(e,e.options),l=[],u=[];for(s.chart.type=t,ke(e,s,t),n=0;n<o.length;n++)for(r=o[n],i=0;i<r.data.length;i++)l[(a=r.data[i])[0]]||(l[a[0]]=new Array(o.length),u.push(a[0])),l[a[0]][n]=a[1];"number"===e.xtype&&u.sort(X),s.xAxis.categories=u;var c,d=[];for(n=0;n<o.length;n++){for(a=[],i=0;i<u.length;i++)a.push(l[u[i]][n]||0);c={name:o[n].name||"Value",data:a},o[n].stack&&(c.stack=o[n].stack),d.push(c)}this.drawChart(e,d,s)},Ce.prototype.renderBarChart=function Ze(e){this.renderColumnChart(e,"bar")},Ce.prototype.renderAreaChart=function Ke(e){this.renderLineChart(e,"areaspline")},Ce.prototype.destroy=function et(e){e.chart&&e.chart.destroy()},Ce.prototype.drawChart=function tt(e,t,n){this.destroy(e),n.chart.renderTo=e.element.id,n.series=t,e.options.code&&window.console.log("new Highcharts.Chart("+JSON.stringify(n)+");"),e.chart=new this.library.Chart(n)};var Se={},Me=[],Te={chartArea:{},fontName:"'Lucida Grande', 'Lucida Sans Unicode', Verdana, Arial, Helvetica, sans-serif",pointSize:6,legend:{textStyle:{fontSize:12,color:"#444"},alignment:"center",position:"right"},curveType:"function",hAxis:{textStyle:{color:"#666",fontSize:12},titleTextStyle:{},gridlines:{color:"transparent"},baselineColor:"#ccc",viewWindow:{}},vAxis:{textStyle:{color:"#666",fontSize:12},titleTextStyle:{},baselineColor:"#ccc",viewWindow:{}},tooltip:{textStyle:{color:"#666",fontSize:12}}},De=function(e,t,n){var i;t!==undefined?(i=t?!0===t?"right":t:"none",e.legend.position=i):n&&(e.legend.position="none")},Ae=function(e,t){e.title=t,e.titleTextStyle={color:"#333",fontSize:"20px"}},Le=function(e,t){e.hAxis.viewWindow.min=t},Ee=function(e,t){e.hAxis.viewWindow.max=t},Pe=function(e,t){e.isStacked=t||!1},Ie=function(e,t){e.hAxis.title=t,e.hAxis.titleTextStyle.italic=!1},Oe=function(e,t){e.vAxis.title=t,e.vAxis.titleTextStyle.italic=!1},Ne=l(Te,De,Ae,function(e,t){e.vAxis.viewWindow.min=t},function(e,t){e.vAxis.viewWindow.max=t},Pe,Ie,Oe),Fe=function(e){window.attachEvent?window.attachEvent("onresize",e):window.addEventListener&&window.addEventListener("resize",e,!0),e()},ze=function ye(e){this.name="google",this.library=e};ze.prototype.renderLineChart=function Ge(i){var r=this;this.waitForLoaded(i,function(){var e={};!1===i.options.curve&&(e.curveType="none"),!1===i.options.points&&(e.pointSize=0);var t=Ne(i,i.options,e),n=r.createDataTable(i.data,i.xtype);r.drawChart(i,"LineChart",n,t)})},ze.prototype.renderPieChart=function $e(i){var r=this;this.waitForLoaded(i,function(){var e={chartArea:{top:"10%",height:"80%"},legend:{}};i.options.colors&&(e.colors=i.options.colors),i.options.donut&&(e.pieHole=.5),"legend"in i.options&&De(e,i.options.legend),i.options.title&&Ae(e,i.options.title);var t=U(U(Te,e),i.options.library||{}),n=new r.library.visualization.DataTable;n.addColumn("string",""),n.addColumn("number","Value"),n.addRows(i.data),r.drawChart(i,"PieChart",n,t)})},ze.prototype.renderColumnChart=function Xe(n){var i=this;this.waitForLoaded(n,function(){var e=Ne(n,n.options),t=i.createDataTable(n.data,n.xtype);i.drawChart(n,"ColumnChart",t,e)})},ze.prototype.renderBarChart=function Ze(i){var r=this;this.waitForLoaded(i,function(){var e={hAxis:{gridlines:{color:"#ccc"}}},t=l(Te,De,Ae,Le,Ee,Pe,Ie,Oe)(i,i.options,e),n=r.createDataTable(i.data,i.xtype);r.drawChart(i,"BarChart",n,t)})},ze.prototype.renderAreaChart=function Ke(i){var r=this;this.waitForLoaded(i,function(){var e={isStacked:!0,pointSize:0,areaOpacity:.5},t=Ne(i,i.options,e),n=r.createDataTable(i.data,i.xtype);r.drawChart(i,"AreaChart",n,t)})},ze.prototype.renderGeoChart=function nt(i){var r=this;this.waitForLoaded(i,"geochart",function(){var e={legend:"none",colorAxis:{colors:i.options.colors||["#f6c7b6","#ce502d"]}},t=U(U(Te,e),i.options.library||{}),n=new r.library.visualization.DataTable;n.addColumn("string",""),n.addColumn("number",i.options.label||"Value"),n.addRows(i.data),r.drawChart(i,"GeoChart",n,t)})},ze.prototype.renderScatterChart=function Je(u){var c=this;this.waitForLoaded(u,function(){var e,t,n,i,r={},a=Ne(u,u.options,r),o=u.data,s=[];for(e=0;e<o.length;e++)for(o[e].name=o[e].name||"Value",i=o[e].data,t=0;t<i.length;t++){var l=new Array(o.length+1);l[0]=i[t][0],l[e+1]=i[t][1],s.push(l)}for((n=new c.library.visualization.DataTable).addColumn("number",""),e=0;e<o.length;e++)n.addColumn("number",o[e].name);n.addRows(s),c.drawChart(u,"ScatterChart",n,a)})},ze.prototype.renderTimeline=function it(i){var r=this;this.waitForLoaded(i,"timeline",function(){var e={legend:"none"};i.options.colors&&(e.colors=i.options.colors);var t=U(U(Te,e),i.options.library||{}),n=new r.library.visualization.DataTable;n.addColumn({type:"string",id:"Name"}),n.addColumn({type:"date",id:"Start"}),n.addColumn({type:"date",id:"End"}),n.addRows(i.data),i.element.style.lineHeight="normal",r.drawChart(i,"Timeline",n,t)})},ze.prototype.destroy=function et(e){e.chart&&e.chart.clearChart()},ze.prototype.drawChart=function tt(e,t,n,i){this.destroy(e),e.options.code&&window.console.log("var data = new google.visualization.DataTable("+n.toJSON()+");\nvar chart = new google.visualization."+t+"(element);\nchart.draw(data, "+JSON.stringify(i)+");"),e.chart=new this.library.visualization[t](e.element),Fe(function(){e.chart.draw(n,i)})},ze.prototype.waitForLoaded=function rt(e,t,n){var i=this;if(n||(n=t,t="corechart"),Me.push({pack:t,callback:n}),Se[t])this.runCallbacks();else{Se[t]=!0;var r={packages:[t],callback:function(){i.runCallbacks()}},a=e.__config();a.language&&(r.language=a.language),"geochart"===t&&a.mapsApiKey&&(r.mapsApiKey=a.mapsApiKey),this.library.charts.load("current",r)}},ze.prototype.runCallbacks=function at(){for(var e,t=0;t<Me.length;t++)e=Me[t],this.library.visualization&&("corechart"===e.pack&&this.library.visualization.LineChart||"timeline"===e.pack&&this.library.visualization.Timeline||"geochart"===e.pack&&this.library.visualization.GeoChart)&&(e.callback(),Me.splice(t,1),t--)},ze.prototype.createDataTable=function ve(e,t){var n,i,r,a,o,s=[],l=[];for(n=0;n<e.length;n++)for(r=e[n],e[n].name=e[n].name||"Value",i=0;i<r.data.length;i++)a=r.data[i],s[o="datetime"===t?a[0].getTime():a[0]]||(s[o]=new Array(e.length),l.push(o)),s[o][n]=G(a[1]);var u,c=[],d=!0;for(i=0;i<l.length;i++)n=l[i],"datetime"===t?(u=new Date(G(n)),d=d&&J(u)):u="number"===t?G(n):n,c.push([u].concat(s[n]));if("datetime"===t)c.sort(g);else if("number"===t){for(c.sort(m),n=0;n<c.length;n++)c[n][0]=p(c[n][0]);t="string"}var h=new this.library.visualization.DataTable;for(t="datetime"===t&&d?"date":t,h.addColumn(t,""),n=0;n<e.length;n++)h.addColumn("number",e[n].name);return h.addRows(c),h};var Re=[],je=0,He=4,We={},Be=[],Ye=function(e,t){return e="number"===t?G(e):"datetime"===t?$(e):p(e)},Ve=function(e,t){var n,i,r=[];for(i=0;i<e.length;i++)"bubble"===t?r.push([G(e[i][0]),G(e[i][1]),G(e[i][2])]):(n=Ye(e[i][0],t),r.push([n,G(e[i][1])]));return"datetime"===t?r.sort(g):"number"===t&&r.sort(m),r},qe=function qe(e,t,n){var i;if("string"==typeof e&&(i=e,!(e=document.getElementById(e))))throw new Error("No element with id "+i);this.element=e,this.options=U(Ue.options,n||{}),this.dataSource=t,C(Ue.charts[e.id]=this,t),this.options.refresh&&this.startRefresh()};qe.prototype.getElement=function ot(){return this.element},qe.prototype.getDataSource=function st(){return this.dataSource},qe.prototype.getData=function lt(){return this.data},qe.prototype.getOptions=function ut(){return this.options},qe.prototype.getChartObject=function ct(){return this.chart},qe.prototype.getAdapter=function dt(){return this.adapter},qe.prototype.updateData=function ht(e,t){this.dataSource=e,t&&this.__updateOptions(t),C(this,e)},qe.prototype.setOptions=function ft(e){this.__updateOptions(e),this.redraw()},qe.prototype.redraw=function pt(){C(this,this.rawData)},qe.prototype.refreshData=function gt(){if("string"==typeof this.dataSource){var e=-1===this.dataSource.indexOf("?")?"?":"&";C(this,this.dataSource+e+"_="+(new Date).getTime())}else"function"==typeof this.dataSource&&C(this,this.dataSource)},qe.prototype.startRefresh=function mt(){var e=this,t=this.options.refresh;if(t&&"string"!=typeof this.dataSource&&"function"!=typeof this.dataSource)throw new Error("Data source must be a URL or callback for refresh");if(!this.intervalId){if(!t)throw new Error("No refresh interval");this.intervalId=setInterval(function(){e.refreshData()},1e3*t)}},qe.prototype.stopRefresh=function vt(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)},qe.prototype.toImage=function yt(e){if("chartjs"!==this.adapter)return null;if(e&&e.background&&"transparent"!==e.background){var t=this.chart.chart.canvas,n=this.chart.chart.ctx,i=document.createElement("canvas"),r=i.getContext("2d");return i.width=n.canvas.width,i.height=n.canvas.height,r.fillStyle=e.background,r.fillRect(0,0,i.width,i.height),r.drawImage(t,0,0),i.toDataURL("image/png")}return this.chart.toBase64Image()},qe.prototype.destroy=function et(){this.__adapterObject&&this.__adapterObject.destroy(this),this.__enterEvent&&e(this.element,"mouseover",this.__enterEvent),this.__leaveEvent&&e(this.element,"mouseout",this.__leaveEvent)},qe.prototype.__updateOptions=function bt(e){var t=e.refresh&&e.refresh!==this.options.refresh;this.options=U(Ue.options,e),t&&(this.stopRefresh(),this.startRefresh())}
14,qe.prototype.__render=function xt(){this.data=this.__processData(),P(this.__chartName(),this)},qe.prototype.__config=function _t(){return We};var Ue={LineChart:function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),(t.prototype.constructor=t).prototype.__processData=function n(){return z(this)},t.prototype.__chartName=function i(){return"LineChart"},t}(qe),PieChart:function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),(t.prototype.constructor=t).prototype.__processData=function n(){return R(this)},t.prototype.__chartName=function i(){return"PieChart"},t}(qe),ColumnChart:function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),(t.prototype.constructor=t).prototype.__processData=function n(){return z(this,null,!0)},t.prototype.__chartName=function i(){return"ColumnChart"},t}(qe),BarChart:function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),(t.prototype.constructor=t).prototype.__processData=function n(){return z(this,null,!0)},t.prototype.__chartName=function i(){return"BarChart"},t}(qe),AreaChart:function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),(t.prototype.constructor=t).prototype.__processData=function n(){return z(this)},t.prototype.__chartName=function i(){return"AreaChart"},t}(qe),GeoChart:function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),(t.prototype.constructor=t).prototype.__processData=function n(){return R(this)},t.prototype.__chartName=function i(){return"GeoChart"},t}(qe),ScatterChart:function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),(t.prototype.constructor=t).prototype.__processData=function n(){return z(this,"number")},t.prototype.__chartName=function i(){return"ScatterChart"},t}(qe),BubbleChart:function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),(t.prototype.constructor=t).prototype.__processData=function n(){return z(this,"bubble")},t.prototype.__chartName=function i(){return"BubbleChart"},t}(qe),Timeline:function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),(t.prototype.constructor=t).prototype.__processData=function n(){var e,t=this.rawData;for(e=0;e<t.length;e++)t[e][1]=$(t[e][1]),t[e][2]=$(t[e][2]);return t},t.prototype.__chartName=function i(){return"Timeline"},t}(qe),charts:{},configure:function(e){for(var t in e)e.hasOwnProperty(t)&&(We[t]=e[t])},setDefaultOptions:function(e){Ue.options=e},eachChart:function(e){for(var t in Ue.charts)Ue.charts.hasOwnProperty(t)&&e(Ue.charts[t])},config:We,options:{},adapters:Be,addAdapter:A,use:function(e){return A(e),Ue}};return"undefined"==typeof window||window.Chartkick||(window.Chartkick=Ue),Ue["default"]=Ue}),document.documentElement.classList.remove("no-js"),document.documentElement.classList.add("js"),Chart.defaults.global.defaultFontFamily="'Noto Sans', Arial, sans-serif";
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.