PageSourceSearch

https://mekanken.com/cms/wp-content/themes/mekanken/js/main-min.js?929175873

js mekanken.com collected 2026-10-01 15:14:26 UTC 332,448 bytes, 40 lines download raw bytes

vendor: 29,286 bytes, lines 1-25
1/*!
2 * jQuery JavaScript Library v2.2.4
3 * http://jquery.com/
4 *
5 * Includes Sizzle.js
6 * http://sizzlejs.com/
7 *
8 * Copyright jQuery Foundation and other contributors
9 * Released under the MIT license
10 * http://jquery.org/license
11 *
12 * Date: 2016-05-20T17:23Z
13 */
14!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,(function(t,e){var i=[],n=t.document,s=i.slice,o=i.concat,r=i.push,a=i.indexOf,l={},c=l.toString,h=l.hasOwnProperty,u={},d="2.2.4",f=function(t,e){return new f.fn.init(t,e)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,g=/^-ms-/,m=/-([\da-z])/gi,x=function(t,e){return e.toUpperCase()};function b(t){var e=!!t&&"length"in t&&t.length,i=f.type(t);return"function"!==i&&!f.isWindow(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}f.fn=f.prototype={jquery:d,constructor:f,selector:"",length:0,toArray:function(){return s.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:s.call(this)},pushStack:function(t){var e=f.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return f.each(this,t)},map:function(t){return this.pushStack(f.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:r,sort:i.sort,splice:i.splice},f.extend=f.fn.extend=function(){var t,e,i,n,s,o,r=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[a]||{},a++),"object"==typeof r||f.isFunction(r)||(r={}),a===l&&(r=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)i=r[e],r!==(n=t[e])&&(c&&n&&(f.isPlainObject(n)||(s=f.isArray(n)))?(s?(s=!1,o=i&&f.isArray(i)?i:[]):o=i&&f.isPlainObject(i)?i:{},r[e]=f.extend(c,o,n)):void 0!==n&&(r[e]=n));return r},f.extend({expando:"jQuery"+(d+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===f.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!f.isArray(t)&&e-parseFloat(e)+1>=0},isPlainObject:function(t){var e;if("object"!==f.type(t)||t.nodeType||f.isWindow(t))return!1;if(t.constructor&&!h.call(t,"constructor")&&!h.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(e in t);return void 0===e||h.call(t,e)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[c.call(t)]||"object":typeof t},globalEval:function(t){var e,i=eval;(t=f.trim(t))&&(1===t.indexOf("use strict")?((e=n.createElement("script")).text=t,n.head.appendChild(e).parentNode.removeChild(e)):i(t))},camelCase:function(t){return t.replace(g,"ms-").replace(m,x)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var i,n=0;if(b(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},trim:function(t){return null==t?"":(t+"").replace(p,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(b(Object(t))?f.merge(i,"string"==typeof t?[t]:t):r.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:a.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,s=t.length;n<i;n++)t[s++]=e[n];return t.length=s,t},grep:function(t,e,i){for(var n=[],s=0,o=t.length,r=!i;s<o;s++)!e(t[s],s)!==r&&n.push(t[s]);return n},map:function(t,e,i){var n,s,r=0,a=[];if(b(t))for(n=t.length;r<n;r++)null!=(s=e(t[r],r,i))&&a.push(s);else for(r in t)null!=(s=e(t[r],r,i))&&a.push(s);return o.apply([],a)},guid:1,proxy:function(t,e){var i,n,o;if("string"==typeof e&&(i=t[e],e=t,t=i),f.isFunction(t))return n=s.call(arguments,2),o=function(){return t.apply(e||this,n.concat(s.call(arguments)))},o.guid=t.guid=t.guid||f.guid++,o},now:Date.now,support:u}),"function"==typeof Symbol&&(f.fn[Symbol.iterator]=i[Symbol.iterator]),f.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){l["[object "+e+"]"]=e.toLowerCase()}));var v=
15/*!
16 * Sizzle CSS Selector Engine v2.2.1
17 * http://sizzlejs.com/
18 *
19 * Copyright jQuery Foundation and other contributors
20 * Released under the MIT license
21 * http://jquery.org/license
22 *
23 * Date: 2015-10-17
24 */
25function(t){var e,i,n,s,o,r,a,l,c,h,u,d,f,p,g,m,x,b,v,y="sizzle"+1*new Date,_=t.document,w=0,k=0,M=rt(),C=rt(),S=rt(),T=function(t,e){return t===e&&(u=!0),0},D=1<<31,P={}.hasOwnProperty,E=[],A=E.pop,O=E.push,L=E.push,I=E.slice,R=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",j="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",z="\\["+F+"*("+j+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+F+"*\\]",B=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",H=new RegExp(F+"+","g"),W=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),V=new RegExp("^"+F+"*,"+F+"*"),q=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),U=new RegExp("="+F+"*([^\\]'\"]*?)"+F+"*\\]","g"),Y=new RegExp(B),X=new RegExp("^"+j+"$"),G={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=/'|\\/g,it=new RegExp("\\\\([\\da-f]{1,6}"+F+"?|("+F+")|.)","ig"),nt=function(t,e,i){var n="0x"+e-65536;return n!=n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},st=function(){d()};try{L.apply(E=I.call(_.childNodes),_.childNodes),E[_.childNodes.length].nodeType}catch(t){L={apply:E.length?function(t,e){O.apply(t,I.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function ot(t,e,n,s){var o,a,c,h,u,p,x,b,w=e&&e.ownerDocument,k=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==k&&9!==k&&11!==k)return n;if(!s&&((e?e.ownerDocument||e:_)!==f&&d(e),e=e||f,g)){if(11!==k&&(p=Z.exec(t)))if(o=p[1]){if(9===k){if(!(c=e.getElementById(o)))return n;if(c.id===o)return n.push(c),n}else if(w&&(c=w.getElementById(o))&&v(e,c)&&c.id===o)return n.push(c),n}else{if(p[2])return L.apply(n,e.getElementsByTagName(t)),n;if((o=p[3])&&i.getElementsByClassName&&e.getElementsByClassName)return L.apply(n,e.getElementsByClassName(o)),n}if(i.qsa&&!S[t+" "]&&(!m||!m.test(t))){if(1!==k)w=e,b=t;else if("object"!==e.nodeName.toLowerCase()){for((h=e.getAttribute("id"))?h=h.replace(et,"\\$&"):e.setAttribute("id",h=y),a=(x=r(t)).length,u=X.test(h)?"#"+h:"[id='"+h+"']";a--;)x[a]=u+" "+mt(x[a]);b=x.join(","),w=tt.test(t)&&pt(e.parentNode)||e}if(b)try{return L.apply(n,w.querySelectorAll(b)),n}catch(t){}finally{h===y&&e.removeAttribute("id")}}}return l(t.replace(W,"$1"),e,n,s)}function rt(){var t=[];return function e(i,s){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=s}}function at(t){return t[y]=!0,t}function lt(t){var e=f.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ct(t,e){for(var i=t.split("|"),s=i.length;s--;)n.attrHandle[i[s]]=e}function ht(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||D)-(~t.sourceIndex||D);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ut(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function dt(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function ft(t){return at((function(e){return e=+e,at((function(i,n){for(var s,o=t([],i.length,e),r=o.length;r--;)i[s=o[r]]&&(i[s]=!(n[s]=i[s]))}))}))}function pt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in i=ot.support={},o=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},d=ot.setDocument=function(t){var e,s,r=t?t.ownerDocument||t:_;return r!==f&&9===r.nodeType&&r.documentElement?(p=(f=r).documentElement,g=!o(f),(s=f.defaultView)&&s.top!==s&&(s.addEventListener?s.addEventListener("unload",st,!1):s.attachEvent&&s.attachEvent("onunload",st)),i.attributes=lt((function(t){return t.className="i",!t.getAttribute("className")})),i.getElementsByTagName=lt((function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length})),i.getElementsByClassName=J.test(f.getElementsByClassName),i.getById=lt((function(t){return p.appendChild(t).id=y,!f.getElementsByName||!f.getElementsByName(y).length})),i.getById?(n.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var i=e.getElementById(t);return i?[i]:[]}},n.filter.ID=function(t){var e=t.replace(it,nt);return function(t){return t.getAttribute("id")===e}}):(delete n.find.ID,n.filter.ID=function(t){var e=t.replace(it,nt);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}}),n.find.TAG=i.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):i.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[s++];)1===i.nodeType&&n.push(i);return n}return o},n.find.CLASS=i.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},x=[],m=[],(i.qsa=J.test(f.querySelectorAll))&&(lt((function(t){p.appendChild(t).innerHTML="<a id='"+y+"'></a><select id='"+y+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+F+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+F+"*(?:value|"+N+")"),t.querySelectorAll("[id~="+y+"-]").length||m.push("~="),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+y+"+*").length||m.push(".#.+[+~]")})),lt((function(t){var e=f.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+F+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")}))),(i.matchesSelector=J.test(b=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&lt((function(t){i.disconnectedMatch=b.call(t,"div"),b.call(t,"[s!='']:x"),x.push("!=",B)})),m=m.length&&new RegExp(m.join("|")),x=x.length&&new RegExp(x.join("|")),e=J.test(p.compareDocumentPosition),v=e||J.test(p.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},T=e?function(t,e){if(t===e)return u=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===n?t===f||t.ownerDocument===_&&v(_,t)?-1:e===f||e.ownerDocument===_&&v(_,e)?1:h?R(h,t)-R(h,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var i,n=0,s=t.parentNode,o=e.parentNode,r=[t],a=[e];if(!s||!o)return t===f?-1:e===f?1:s?-1:o?1:h?R(h,t)-R(h,e):0;if(s===o)return ht(t,e);for(i=t;i=i.parentNode;)r.unshift(i);for(i=e;i=i.parentNode;)a.unshift(i);for(;r[n]===a[n];)n++;return n?ht(r[n],a[n]):r[n]===_?-1:a[n]===_?1:0},f):f},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if((t.ownerDocument||t)!==f&&d(t),e=e.replace(U,"='$1']"),i.matchesSelector&&g&&!S[e+" "]&&(!x||!x.test(e))&&(!m||!m.test(e)))try{var n=b.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return ot(e,f,null,[t]).length>0},ot.contains=function(t,e){return(t.ownerDocument||t)!==f&&d(t),v(t,e)},ot.attr=function(t,e){(t.ownerDocument||t)!==f&&d(t);var s=n.attrHandle[e.toLowerCase()],o=s&&P.call(n.attrHandle,e.toLowerCase())?s(t,e,!g):void 0;return void 0!==o?o:i.attributes||!g?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},ot.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,n=[],s=0,o=0;if(u=!i.detectDuplicates,h=!i.sortStable&&t.slice(0),t.sort(T),u){for(;e=t[o++];)e===t[o]&&(s=n.push(o));for(;s--;)t.splice(n[s],1)}return h=null,t},s=ot.getText=function(t){var e,i="",n=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=s(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[n++];)i+=s(e);return i},n=ot.selectors={cacheLength:50,createPseudo:at,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(it,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(it,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ot.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return G.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&Y.test(i)&&(e=r(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(it,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=M[t+" "];return e||(e=new RegExp("(^|"+F+")"+t+"("+F+"|$)"))&&M(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,i){return function(n){var s=ot.attr(n,t);return null==s?"!="===e:!e||(s+="","="===e?s===i:"!="===e?s!==i:"^="===e?i&&0===s.indexOf(i):"*="===e?i&&s.indexOf(i)>-1:"$="===e?i&&s.slice(-i.length)===i:"~="===e?(" "+s.replace(H," ")+" ").indexOf(i)>-1:"|="===e&&(s===i||s.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,s){var o="nth"!==t.slice(0,3),r="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===s?function(t){return!!t.parentNode}:function(e,i,l){var c,h,u,d,f,p,g=o!==r?"nextSibling":"previousSibling",m=e.parentNode,x=a&&e.nodeName.toLowerCase(),b=!l&&!a,v=!1;if(m){if(o){for(;g;){for(d=e;d=d[g];)if(a?d.nodeName.toLowerCase()===x:1===d.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[r?m.firstChild:m.lastChild],r&&b){for(v=(f=(c=(h=(u=(d=m)[y]||(d[y]={}))[d.uniqueID]||(u[d.uniqueID]={}))[t]||[])[0]===w&&c[1])&&c[2],d=f&&m.childNodes[f];d=++f&&d&&d[g]||(v=f=0)||p.pop();)if(1===d.nodeType&&++v&&d===e){h[t]=[w,f,v];break}}else if(b&&(v=f=(c=(h=(u=(d=e)[y]||(d[y]={}))[d.uniqueID]||(u[d.uniqueID]={}))[t]||[])[0]===w&&c[1]),!1===v)for(;(d=++f&&d&&d[g]||(v=f=0)||p.pop())&&((a?d.nodeName.toLowerCase()!==x:1!==d.nodeType)||!++v||(b&&((h=(u=d[y]||(d[y]={}))[d.uniqueID]||(u[d.uniqueID]={}))[t]=[w,v]),d!==e)););return(v-=s)===n||v%n==0&&v/n>=0}}},PSEUDO:function(t,e){var i,s=n.pseudos[t]||n.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return s[y]?s(e):s.length>1?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?at((function(t,i){for(var n,o=s(t,e),r=o.length;r--;)t[n=R(t,o[r])]=!(i[n]=o[r])})):function(t){return s(t,0,i)}):s}},pseudos:{not:at((function(t){var e=[],i=[],n=a(t.replace(W,"$1"));return n[y]?at((function(t,e,i,s){for(var o,r=n(t,null,s,[]),a=t.length;a--;)(o=r[a])&&(t[a]=!(e[a]=o))})):function(t,s,o){return e[0]=t,n(e,null,o,i),e[0]=null,!i.pop()}})),has:at((function(t){return function(e){return ot(t,e).length>0}})),contains:at((function(t){return t=t.replace(it,nt),function(e){return(e.textContent||e.innerText||s(e)).indexOf(t)>-1}})),lang:at((function(t){return X.test(t||"")||ot.error("unsupported lang: "+t),t=t.replace(it,nt).toLowerCase(),function(e){var i;do{if(i=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return Q.test(t.nodeName)},input:function(t){return K.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ft((function(){return[0]})),last:ft((function(t,e){return[e-1]})),eq:ft((function(t,e,i){return[i<0?i+e:i]})),even:ft((function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t})),odd:ft((function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t})),lt:ft((function(t,e,i){for(var n=i<0?i+e:i;--n>=0;)t.push(n);return t})),gt:ft((function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t}))}},n.pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=ut(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=dt(e);function gt(){}function mt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function xt(t,e,i){var n=e.dir,s=i&&"parentNode"===n,o=k++;return e.first?function(e,i,o){for(;e=e[n];)if(1===e.nodeType||s)return t(e,i,o)}:function(e,i,r){var a,l,c,h=[w,o];if(r){for(;e=e[n];)if((1===e.nodeType||s)&&t(e,i,r))return!0}else for(;e=e[n];)if(1===e.nodeType||s){if((a=(l=(c=e[y]||(e[y]={}))[e.uniqueID]||(c[e.uniqueID]={}))[n])&&a[0]===w&&a[1]===o)return h[2]=a[2];if(l[n]=h,h[2]=t(e,i,r))return!0}}}function bt(t){return t.length>1?function(e,i,n){for(var s=t.length;s--;)if(!t[s](e,i,n))return!1;return!0}:t[0]}function vt(t,e,i,n,s){for(var o,r=[],a=0,l=t.length,c=null!=e;a<l;a++)(o=t[a])&&(i&&!i(o,n,s)||(r.push(o),c&&e.push(a)));return r}function yt(t,e,i,n,s,o){return n&&!n[y]&&(n=yt(n)),s&&!s[y]&&(s=yt(s,o)),at((function(o,r,a,l){var c,h,u,d=[],f=[],p=r.length,g=o||function(t,e,i){for(var n=0,s=e.length;n<s;n++)ot(t,e[n],i);return i}(e||"*",a.nodeType?[a]:a,[]),m=!t||!o&&e?g:vt(g,d,t,a,l),x=i?s||(o?t:p||n)?[]:r:m;if(i&&i(m,x,a,l),n)for(c=vt(x,f),n(c,[],a,l),h=c.length;h--;)(u=c[h])&&(x[f[h]]=!(m[f[h]]=u));if(o){if(s||t){if(s){for(c=[],h=x.length;h--;)(u=x[h])&&c.push(m[h]=u);s(null,x=[],c,l)}for(h=x.length;h--;)(u=x[h])&&(c=s?R(o,u):d[h])>-1&&(o[c]=!(r[c]=u))}}else x=vt(x===r?x.splice(p,x.length):x),s?s(null,r,x,l):L.apply(r,x)}))}function _t(t){for(var e,i,s,o=t.length,r=n.relative[t[0].type],a=r||n.relative[" "],l=r?1:0,h=xt((function(t){return t===e}),a,!0),u=xt((function(t){return R(e,t)>-1}),a,!0),d=[function(t,i,n){var s=!r&&(n||i!==c)||((e=i).nodeType?h(t,i,n):u(t,i,n));return e=null,s}];l<o;l++)if(i=n.relative[t[l].type])d=[xt(bt(d),i)];else{if((i=n.filter[t[l].type].apply(null,t[l].matches))[y]){for(s=++l;s<o&&!n.relative[t[s].type];s++);return yt(l>1&&bt(d),l>1&&mt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(W,"$1"),i,l<s&&_t(t.slice(l,s)),s<o&&_t(t=t.slice(s)),s<o&&mt(t))}d.push(i)}return bt(d)}return gt.prototype=n.filters=n.pseudos,n.setFilters=new gt,r=ot.tokenize=function(t,e){var i,s,o,r,a,l,c,h=C[t+" "];if(h)return e?0:h.slice(0);for(a=t,l=[],c=n.preFilter;a;){for(r in i&&!(s=V.exec(a))||(s&&(a=a.slice(s[0].length)||a),l.push(o=[])),i=!1,(s=q.exec(a))&&(i=s.shift(),o.push({value:i,type:s[0].replace(W," ")}),a=a.slice(i.length)),n.filter)!(s=G[r].exec(a))||c[r]&&!(s=c[r](s))||(i=s.shift(),o.push({value:i,type:r,matches:s}),a=a.slice(i.length));if(!i)break}return e?a.length:a?ot.error(t):C(t,l).slice(0)},a=ot.compile=function(t,e){var i,s=[],o=[],a=S[t+" "];if(!a){for(e||(e=r(t)),i=e.length;i--;)(a=_t(e[i]))[y]?s.push(a):o.push(a);a=S(t,function(t,e){var i=e.length>0,s=t.length>0,o=function(o,r,a,l,h){var u,p,m,x=0,b="0",v=o&&[],y=[],_=c,k=o||s&&n.find.TAG("*",h),M=w+=null==_?1:Math.random()||.1,C=k.length;for(h&&(c=r===f||r||h);b!==C&&null!=(u=k[b]);b++){if(s&&u){for(p=0,r||u.ownerDocument===f||(d(u),a=!g);m=t[p++];)if(m(u,r||f,a)){l.push(u);break}h&&(w=M)}i&&((u=!m&&u)&&x--,o&&v.push(u))}if(x+=b,i&&b!==x){for(p=0;m=e[p++];)m(v,y,r,a);if(o){if(x>0)for(;b--;)v[b]||y[b]||(y[b]=A.call(l));y=vt(y)}L.apply(l,y),h&&!o&&y.length>0&&x+e.length>1&&ot.uniqueSort(l)}return h&&(w=M,c=_),v};return i?at(o):o}(o,s)),a.selector=t}return a},l=ot.select=function(t,e,s,o){var l,c,h,u,d,f="function"==typeof t&&t,p=!o&&r(t=f.selector||t);if(s=s||[],1===p.length){if((c=p[0]=p[0].slice(0)).length>2&&"ID"===(h=c[0]).type&&i.getById&&9===e.nodeType&&g&&n.relative[c[1].type]){if(!(e=(n.find.ID(h.matches[0].replace(it,nt),e)||[])[0]))return s;f&&(e=e.parentNode),t=t.slice(c.shift().value.length)}for(l=G.needsContext.test(t)?0:c.length;l--&&(h=c[l],!n.relative[u=h.type]);)if((d=n.find[u])&&(o=d(h.matches[0].replace(it,nt),tt.test(c[0].type)&&pt(e.parentNode)||e))){if(c.splice(l,1),!(t=o.length&&mt(c)))return L.apply(s,o),s;break}}return(f||a(t,p))(o,e,!g,s,!e||tt.test(t)&&pt(e.parentNode)||e),s},i.sortStable=y.split("").sort(T).join("")===y,i.detectDuplicates=!!u,d(),i.sortDetached=lt((function(t){return 1&t.compareDocumentPosition(f.createElement("div"))})),lt((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ct("type|href|height|width",(function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),i.attributes&&lt((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ct("value",(function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),lt((function(t){return null==t.getAttribute("disabled")}))||ct(N,(function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null})),ot}(t);f.find=v,f.expr=v.selectors,f.expr[":"]=f.expr.pseudos,f.uniqueSort=f.unique=v.uniqueSort,f.text=v.getText,f.isXMLDoc=v.isXML,f.contains=v.contains;var y=function(t,e,i){for(var n=[],s=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&f(t).is(i))break;n.push(t)}return n},_=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},w=f.expr.match.needsContext,k=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,M=/^.[^:#\[\.,]*$/;function C(t,e,i){if(f.isFunction(e))return f.grep(t,(function(t,n){return!!e.call(t,n,t)!==i}));if(e.nodeType)return f.grep(t,(function(t){return t===e!==i}));if("string"==typeof e){if(M.test(e))return f.filter(e,t,i);e=f.filter(e,t)}return f.grep(t,(function(t){return a.call(e,t)>-1!==i}))}f.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?f.find.matchesSelector(n,t)?[n]:[]:f.find.matches(t,f.grep(e,(function(t){return 1===t.nodeType})))},f.fn.extend({find:function(t){var e,i=this.length,n=[],s=this;if("string"!=typeof t)return this.pushStack(f(t).filter((function(){for(e=0;e<i;e++)if(f.contains(s[e],this))return!0})));for(e=0;e<i;e++)f.find(t,s[e],n);return(n=this.pushStack(i>1?f.unique(n):n)).selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(C(this,t||[],!1))},not:function(t){return this.pushStack(C(this,t||[],!0))},is:function(t){return!!C(this,"string"==typeof t&&w.test(t)?f(t):t||[],!1).length}});var S,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(f.fn.init=function(t,e,i){var s,o;if(!t)return this;if(i=i||S,"string"==typeof t){if(!(s="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:T.exec(t))||!s[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(s[1]){if(e=e instanceof f?e[0]:e,f.merge(this,f.parseHTML(s[1],e&&e.nodeType?e.ownerDocument||e:n,!0)),k.test(s[1])&&f.isPlainObject(e))for(s in e)f.isFunction(this[s])?this[s](e[s]):this.attr(s,e[s]);return this}return(o=n.getElementById(s[2]))&&o.parentNode&&(this.length=1,this[0]=o),this.context=n,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):f.isFunction(t)?void 0!==i.ready?i.ready(t):t(f):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),f.makeArray(t,this))}).prototype=f.fn,S=f(n);var D=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function E(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}f.fn.extend({has:function(t){var e=f(t,this),i=e.length;return this.filter((function(){for(var t=0;t<i;t++)if(f.contains(this,e[t]))return!0}))},closest:function(t,e){for(var i,n=0,s=this.length,o=[],r=w.test(t)||"string"!=typeof t?f(t,e||this.context):0;n<s;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?r.index(i)>-1:1===i.nodeType&&f.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?f.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?a.call(f(t),this[0]):a.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(f.uniqueSort(f.merge(this.get(),f(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),f.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return y(t,"parentNode")},parentsUntil:function(t,e,i){return y(t,"parentNode",i)},next:function(t){return E(t,"nextSibling")},prev:function(t){return E(t,"previousSibling")},nextAll:function(t){return y(t,"nextSibling")},prevAll:function(t){return y(t,"previousSibling")},nextUntil:function(t,e,i){return y(t,"nextSibling",i)},prevUntil:function(t,e,i){return y(t,"previousSibling",i)},siblings:function(t){return _((t.parentNode||{}).firstChild,t)},children:function(t){return _(t.firstChild)},contents:function(t){return t.contentDocument||f.merge([],t.childNodes)}},(function(t,e){f.fn[t]=function(i,n){var s=f.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=f.filter(n,s)),this.length>1&&(P[t]||f.uniqueSort(s),D.test(t)&&s.reverse()),this.pushStack(s)}}));var A,O=/\S+/g;function L(){n.removeEventListener("DOMContentLoaded",L),t.removeEventListener("load",L),f.ready()}f.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return f.each(t.match(O)||[],(function(t,i){e[i]=!0})),e}(t):f.extend({},t);var e,i,n,s,o=[],r=[],a=-1,l=function(){for(s=t.once,n=e=!0;r.length;a=-1)for(i=r.shift();++a<o.length;)!1===o[a].apply(i[0],i[1])&&t.stopOnFalse&&(a=o.length,i=!1);t.memory||(i=!1),e=!1,s&&(o=i?[]:"")},c={add:function(){return o&&(i&&!e&&(a=o.length-1,r.push(i)),function e(i){f.each(i,(function(i,n){f.isFunction(n)?t.unique&&c.has(n)||o.push(n):n&&n.length&&"string"!==f.type(n)&&e(n)}))}(arguments),i&&!e&&l()),this},remove:function(){return f.each(arguments,(function(t,e){for(var i;(i=f.inArray(e,o,i))>-1;)o.splice(i,1),i<=a&&a--})),this},has:function(t){return t?f.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return s=r=[],o=i="",this},disabled:function(){return!o},lock:function(){return s=r=[],i||(o=i=""),this},locked:function(){return!!s},fireWith:function(t,i){return s||(i=[t,(i=i||[]).slice?i.slice():i],r.push(i),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},f.extend({Deferred:function(t){var e=[["resolve","done",f.Callbacks("once memory"),"resolved"],["reject","fail",f.Callbacks("once memory"),"rejected"],["notify","progress",f.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var t=arguments;return f.Deferred((function(i){f.each(e,(function(e,o){var r=f.isFunction(t[e])&&t[e];s[o[1]]((function(){var t=r&&r.apply(this,arguments);t&&f.isFunction(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[o[0]+"With"](this===n?i.promise():this,r?[t]:arguments)}))})),t=null})).promise()},promise:function(t){return null!=t?f.extend(t,n):n}},s={};return n.pipe=n.then,f.each(e,(function(t,o){var r=o[2],a=o[3];
25n[o[1]]=r.add,a&&r.add((function(){i=a}),e[1^t][2].disable,e[2][2].lock),s[o[0]]=function(){return s[o[0]+"With"](this===s?n:this,arguments),this},s[o[0]+"With"]=r.fireWith})),n.promise(s),t&&t.call(s,s),s},when:function(t){var e,i,n,o=0,r=s.call(arguments),a=r.length,l=1!==a||t&&f.isFunction(t.promise)?a:0,c=1===l?t:f.Deferred(),h=function(t,i,n){return function(o){i[t]=this,n[t]=arguments.length>1?s.call(arguments):o,n===e?c.notifyWith(i,n):--l||c.resolveWith(i,n)}};if(a>1)for(e=new Array(a),i=new Array(a),n=new Array(a);o<a;o++)r[o]&&f.isFunction(r[o].promise)?r[o].promise().progress(h(o,i,e)).done(h(o,n,r)).fail(c.reject):--l;return l||c.resolveWith(n,r),c.promise()}}),f.fn.ready=function(t){return f.ready.promise().done(t),this},f.extend({isReady:!1,readyWait:1,holdReady:function(t){t?f.readyWait++:f.ready(!0)},ready:function(t){(!0===t?--f.readyWait:f.isReady)||(f.isReady=!0,!0!==t&&--f.readyWait>0||(A.resolveWith(n,[f]),f.fn.triggerHandler&&(f(n).triggerHandler("ready"),f(n).off("ready"))))}}),f.ready.promise=function(e){return A||(A=f.Deferred(),"complete"===n.readyState||"loading"!==n.readyState&&!n.documentElement.doScroll?t.setTimeout(f.ready):(n.addEventListener("DOMContentLoaded",L),t.addEventListener("load",L))),A.promise(e)},f.ready.promise();var I=function(t,e,i,n,s,o,r){var a=0,l=t.length,c=null==i;if("object"===f.type(i))for(a in s=!0,i)I(t,e,a,i[a],!0,o,r);else if(void 0!==n&&(s=!0,f.isFunction(n)||(r=!0),c&&(r?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(f(t),i)})),e))for(;a<l;a++)e(t[a],i,r?n:n.call(t[a],a,e(t[a],i)));return s?t:c?e.call(t):l?e(t[0],i):o},R=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function N(){this.expando=f.expando+N.uid++}N.uid=1,N.prototype={register:function(t,e){var i=e||{};return t.nodeType?t[this.expando]=i:Object.defineProperty(t,this.expando,{value:i,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){if(!R(t))return{};var e=t[this.expando];return e||(e={},R(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,s=this.cache(t);if("string"==typeof e)s[e]=i;else for(n in e)s[n]=e[n];return s},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,i){var n;return void 0===e||e&&"string"==typeof e&&void 0===i?void 0!==(n=this.get(t,e))?n:this.get(t,f.camelCase(e)):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n,s,o=t[this.expando];if(void 0!==o){if(void 0===e)this.register(t);else{f.isArray(e)?n=e.concat(e.map(f.camelCase)):(s=f.camelCase(e),n=e in o?[e,s]:(n=s)in o?[n]:n.match(O)||[]),i=n.length;for(;i--;)delete o[n[i]]}(void 0===e||f.isEmptyObject(o))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!f.isEmptyObject(e)}};var F=new N,j=new N,z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,B=/[A-Z]/g;function H(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(B,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:z.test(i)?f.parseJSON(i):i)}catch(t){}j.set(t,e,i)}else i=void 0;return i}f.extend({hasData:function(t){return j.hasData(t)||F.hasData(t)},data:function(t,e,i){return j.access(t,e,i)},removeData:function(t,e){j.remove(t,e)},_data:function(t,e,i){return F.access(t,e,i)},_removeData:function(t,e){F.remove(t,e)}}),f.fn.extend({data:function(t,e){var i,n,s,o=this[0],r=o&&o.attributes;if(void 0===t){if(this.length&&(s=j.get(o),1===o.nodeType&&!F.get(o,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&0===(n=r[i].name).indexOf("data-")&&(n=f.camelCase(n.slice(5)),H(o,n,s[n]));F.set(o,"hasDataAttrs",!0)}return s}return"object"==typeof t?this.each((function(){j.set(this,t)})):I(this,(function(e){var i,n;if(o&&void 0===e)return void 0!==(i=j.get(o,t)||j.get(o,t.replace(B,"-$&").toLowerCase()))?i:(n=f.camelCase(t),void 0!==(i=j.get(o,n))||void 0!==(i=H(o,n,void 0))?i:void 0);n=f.camelCase(t),this.each((function(){var i=j.get(this,n);j.set(this,n,e),t.indexOf("-")>-1&&void 0!==i&&j.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){j.remove(this,t)}))}}
vendor: 4,206 bytes, lines 25-26
25),f.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=F.get(t,e),i&&(!n||f.isArray(i)?n=F.access(t,e,f.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=f.queue(t,e),n=i.length,s=i.shift(),o=f._queueHooks(t,e);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete o.stop,s.call(t,(function(){f.dequeue(t,e)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return F.get(t,i)||F.access(t,i,{empty:f.Callbacks("once memory").add((function(){F.remove(t,[e+"queue",i])}))})}}),f.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?f.queue(this[0],t):void 0===e?this:this.each((function(){var i=f.queue(this,t,e);f._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&f.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){f.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,s=f.Deferred(),o=this,r=this.length,a=function(){--n||s.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)(i=F.get(o[r],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),s.promise(e)}});var W=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,V=new RegExp("^(?:([+-])=|)("+W+")([a-z%]*)$","i"),q=["Top","Right","Bottom","Left"],U=function(t,e){return t=e||t,"none"===f.css(t,"display")||!f.contains(t.ownerDocument,t)};function Y(t,e,i,n){var s,o=1,r=20,a=n?function(){return n.cur()}:function(){return f.css(t,e,"")},l=a(),c=i&&i[3]||(f.cssNumber[e]?"":"px"),h=(f.cssNumber[e]||"px"!==c&&+l)&&V.exec(f.css(t,e));if(h&&h[3]!==c){c=c||h[3],i=i||[],h=+l||1;do{h/=o=o||".5",f.style(t,e,h+c)}while(o!==(o=a()/l)&&1!==o&&--r)}return i&&(h=+h||+l||0,s=i[1]?h+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=h,n.end=s)),s}var X=/^(?:checkbox|radio)$/i,G=/<([\w:-]+)/,K=/^$|\/(?:java|ecma)script/i,Q={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function J(t,e){var i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&f.nodeName(t,e)?f.merge([t],i):i}function Z(t,e){for(var i=0,n=t.length;i<n;i++)F.set(t[i],"globalEval",!e||F.get(e[i],"globalEval"))}Q.optgroup=Q.option,Q.tbody=Q.tfoot=Q.colgroup=Q.caption=Q.thead,Q.th=Q.td;var tt,et,it=/<|&#?\w+;/;function nt(t,e,i,n,s){for(var o,r,a,l,c,h,u=e.createDocumentFragment(),d=[],p=0,g=t.length;p<g;p++)if((o=t[p])||0===o)if("object"===f.type(o))f.merge(d,o.nodeType?[o]:o);else if(it.test(o)){for(r=r||u.appendChild(e.createElement("div")),a=(G.exec(o)||["",""])[1].toLowerCase(),l=Q[a]||Q._default,r.innerHTML=l[1]+f.htmlPrefilter(o)+l[2],h=l[0];h--;)r=r.lastChild;f.merge(d,r.childNodes),(r=u.firstChild).textContent=""}else d.push(e.createTextNode(o));for(u.textContent="",
26p=0;o=d[p++];)if(n&&f.inArray(o,n)>-1)s&&s.push(o);else if(c=f.contains(o.ownerDocument,o),r=J(u.appendChild(o),"script"),c&&Z(r),i)for(h=0;o=r[h++];)K.test(o.type||"")&&i.push(o);return u}tt=n.createDocumentFragment().appendChild(n.createElement("div")),(et=n.createElement("input")).setAttribute("type","radio"),et.setAttribute("checked","checked"),et.setAttribute("name","t"),tt.appendChild(et),u.checkClone=tt.cloneNode(!0).cloneNode(!0).lastChild.checked,tt.innerHTML="<textarea>x</textarea>",u.noCloneChecked=!!tt.cloneNode(!0).lastChild.defaultValue;var st=/^key/,ot=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rt=/^([^.]*)(?:\.(.+)|)/;function at(){return!0}function lt(){return!1}function ct(){try{return n.activeElement}catch(t){}}function ht(t,e,i,n,s,o){var r,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=void 0),e)ht(t,a,i,n,e[a],o);return t}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=lt;else if(!s)return t;return 1===o&&(r=s,s=function(t){return f().off(t),r.apply(this,arguments)},s.guid=r.guid||(r.guid=f.guid++)),t.each((function(){f.event.add(this,e,s,n,i)}))}f.event={global:{}
vendor: 4,484 bytes, line 26
26,add:function(t,e,i,n,s){var o,r,a,l,c,h,u,d,p,g,m,x=F.get(t);if(x)for(i.handler&&(i=(o=i).handler,s=o.selector),i.guid||(i.guid=f.guid++),(l=x.events)||(l=x.events={}),(r=x.handle)||(r=x.handle=function(e){return void 0!==f&&f.event.triggered!==e.type?f.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(O)||[""]).length;c--;)p=m=(a=rt.exec(e[c])||[])[1],g=(a[2]||"").split(".").sort(),p&&(u=f.event.special[p]||{},p=(s?u.delegateType:u.bindType)||p,u=f.event.special[p]||{},h=f.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&f.expr.match.needsContext.test(s),namespace:g.join(".")},o),(d=l[p])||((d=l[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,n,g,r)||t.addEventListener&&t.addEventListener(p,r)),u.add&&(u.add.call(t,h),h.handler.guid||(h.handler.guid=i.guid)),s?d.splice(d.delegateCount++,0,h):d.push(h),f.event.global[p]=!0)},remove:function(t,e,i,n,s){var o,r,a,l,c,h,u,d,p,g,m,x=F.hasData(t)&&F.get(t);if(x&&(l=x.events)){for(c=(e=(e||"").match(O)||[""]).length;c--;)if(p=m=(a=rt.exec(e[c])||[])[1],g=(a[2]||"").split(".").sort(),p){for(u=f.event.special[p]||{},d=l[p=(n?u.delegateType:u.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=d.length;o--;)h=d[o],!s&&m!==h.origType||i&&i.guid!==h.guid||a&&!a.test(h.namespace)||n&&n!==h.selector&&("**"!==n||!h.selector)||(d.splice(o,1),h.selector&&d.delegateCount--,u.remove&&u.remove.call(t,h));r&&!d.length&&(u.teardown&&!1!==u.teardown.call(t,g,x.handle)||f.removeEvent(t,p,x.handle),delete l[p])}else for(p in l)f.event.remove(t,p+e[c],i,n,!0);f.isEmptyObject(l)&&F.remove(t,"handle events")}},dispatch:function(t){t=f.event.fix(t);var e,i,n,o,r,a,l=s.call(arguments),c=(F.get(this,"events")||{})[t.type]||[],h=f.event.special[t.type]||{};if(l[0]=t,t.delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,t)){for(a=f.event.handlers.call(this,t,c),e=0;(o=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=o.elem,i=0;(r=o.handlers[i++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(r.namespace)||(t.handleObj=r,t.data=r.data,void 0!==(n=((f.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,l))&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,s,o,r=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(n=[],i=0;i<a;i++)void 0===n[s=(o=e[i]).selector+" "]&&(n[s]=o.needsContext?f(s,this).index(l)>-1:f.find(s,this,null,[l]).length),n[s]&&n.push(o);n.length&&r.push({elem:l,handlers:n})}return a<e.length&&r.push({elem:this,handlers:e.slice(a)}),r},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var i,s,o,r=e.button;return null==t.pageX&&null!=e.clientX&&(s=(i=t.target.ownerDocument||n).documentElement,o=i.body,t.pageX=e.clientX+(s&&s.scrollLeft||o&&o.scrollLeft||0)-(s&&s.clientLeft||o&&o.clientLeft||0),t.pageY=e.clientY+(s&&s.scrollTop||o&&o.scrollTop||0)-(s&&s.clientTop||o&&o.clientTop||0)),t.which||void 0===r||(t.which=1&r?1:2&r?3:4&r?2:0),t}},fix:function(t){if(t[f.expando])return t;var e,i,s,o=t.type,r=t,a=this.fixHooks[o];for(a||(this.fixHooks[o]=a=ot.test(o)?this.mouseHooks:st.test(o)?this.keyHooks:{}),s=a.props?this.props.concat(a.props):this.props,t=new f.Event(r),e=s.length;e--;)t[i=s[e]]=r[i];return t.target||(t.target=n),3===t.target.nodeType&&(t.target=t.target.parentNode),a.filter?a.filter(t,r):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ct()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===ct()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&f.nodeName(this,"input"))return this.click(),!1},_default:function(t){return f.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}}
vendor: 5,682 bytes, line 26
26,f.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},f.Event=function(t,e){if(!(this instanceof f.Event))return new f.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?at:lt):this.type=t,e&&f.extend(this,e),this.timeStamp=t&&t.timeStamp||f.now(),this[f.expando]=!0},f.Event.prototype={constructor:f.Event,isDefaultPrevented:lt,isPropagationStopped:lt,isImmediatePropagationStopped:lt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=at,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=at,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=at,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},f.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){f.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=t.relatedTarget,s=t.handleObj;return n&&(n===this||f.contains(this,n))||(t.type=s.origType,i=s.handler.apply(this,arguments),t.type=e),i}}})),f.fn.extend({on:function(t,e,i,n){return ht(this,t,e,i,n)},one:function(t,e,i,n){return ht(this,t,e,i,n,1)},off:function(t,e,i){var n,s;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,f(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(s in t)this.off(s,e,t[s]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=lt),this.each((function(){f.event.remove(this,t,i,e)}))}});var ut=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,dt=/<script|<style|<link/i,ft=/checked\s*(?:[^=]|=\s*.checked.)/i,pt=/^true\/(.*)/,gt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function mt(t,e){return f.nodeName(t,"table")&&f.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function xt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function bt(t){var e=pt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function vt(t,e){var i,n,s,o,r,a,l,c;if(1===e.nodeType){if(F.hasData(t)&&(o=F.access(t),r=F.set(e,o),c=o.events))for(s in delete r.handle,r.events={},c)for(i=0,n=c[s].length;i<n;i++)f.event.add(e,s,c[s][i]);j.hasData(t)&&(a=j.access(t),l=f.extend({},a),j.set(e,l))}}function yt(t,e,i,n){e=o.apply([],e);var s,r,a,l,c,h,d=0,p=t.length,g=p-1,m=e[0],x=f.isFunction(m);if(x||p>1&&"string"==typeof m&&!u.checkClone&&ft.test(m))return t.each((function(s){var o=t.eq(s);x&&(e[0]=m.call(this,s,o.html())),yt(o,e,i,n)}));if(p&&(r=(s=nt(e,t[0].ownerDocument,!1,t,n)).firstChild,1===s.childNodes.length&&(s=r),r||n)){for(l=(a=f.map(J(s,"script"),xt)).length;d<p;d++)c=s,d!==g&&(c=f.clone(c,!0,!0),l&&f.merge(a,J(c,"script"))),i.call(t[d],c,d);if(l)for(h=a[a.length-1].ownerDocument,f.map(a,bt),d=0;d<l;d++)c=a[d],K.test(c.type||"")&&!F.access(c,"globalEval")&&f.contains(h,c)&&(c.src?f._evalUrl&&f._evalUrl(c.src):f.globalEval(c.textContent.replace(gt,"")))}return t}function _t(t,e,i){for(var n,s=e?f.filter(e,t):t,o=0;null!=(n=s[o]);o++)i||1!==n.nodeType||f.cleanData(J(n)),n.parentNode&&(i&&f.contains(n.ownerDocument,n)&&Z(J(n,"script")),n.parentNode.removeChild(n));return t}f.extend({htmlPrefilter:function(t){return t.replace(ut,"<$1></$2>")},clone:function(t,e,i){var n,s,o,r,a,l,c,h=t.cloneNode(!0),d=f.contains(t.ownerDocument,t);if(!(u.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||f.isXMLDoc(t)))for(r=J(h),n=0,s=(o=J(t)).length;n<s;n++)a=o[n],l=r[n],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&X.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(e)if(i)for(o=o||J(t),r=r||J(h),n=0,s=o.length;n<s;n++)vt(o[n],r[n]);else vt(t,h);return(r=J(h,"script")).length>0&&Z(r,!d&&J(t,"script")),h},cleanData:function(t){for(var e,i,n,s=f.event.special,o=0;void 0!==(i=t[o]);o++)if(R(i)){if(e=i[F.expando]){if(e.events)for(n in e.events)s[n]?f.event.remove(i,n):f.removeEvent(i,n,e.handle);i[F.expando]=void 0}i[j.expando]&&(i[j.expando]=void 0)}}}),f.fn.extend({domManip:yt,detach:function(t){return _t(this,t,!0)},remove:function(t){return _t(this,t)},text:function(t){return I(this,(function(t){return void 0===t?f.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return yt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||mt(this,t).appendChild(t)}))},prepend:function(){return yt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=mt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return yt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return yt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(f.cleanData(J(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return f.clone(this,t,e)}))},html:function(t){return I(this,(function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!dt.test(t)&&!Q[(G.exec(t)||["",""])[1].toLowerCase()]){t=f.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}
vendor: 4,393 bytes, line 26
26).nodeType&&(f.cleanData(J(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return yt(this,arguments,(function(e){var i=this.parentNode;f.inArray(this,t)<0&&(f.cleanData(J(this)),i&&i.replaceChild(e,this))}),t)}}),f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){f.fn[t]=function(t){for(var i,n=[],s=f(t),o=s.length-1,a=0;a<=o;a++)i=a===o?this:this.clone(!0),f(s[a])[e](i),r.apply(n,i.get());return this.pushStack(n)}}));var wt,kt={HTML:"block",BODY:"block"};function Mt(t,e){var i=f(e.createElement(t)).appendTo(e.body),n=f.css(i[0],"display");return i.detach(),n}function Ct(t){var e=n,i=kt[t];return i||("none"!==(i=Mt(t,e))&&i||((e=(wt=(wt||f("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),i=Mt(t,e),wt.detach()),kt[t]=i),i}var St=/^margin/,Tt=new RegExp("^("+W+")(?!px)[a-z%]+$","i"),Dt=function(e){var i=e.ownerDocument.defaultView;return i&&i.opener||(i=t),i.getComputedStyle(e)},Pt=function(t,e,i,n){var s,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in s=i.apply(t,n||[]),e)t.style[o]=r[o];return s},Et=n.documentElement;function At(t,e,i){var n,s,o,r,a=t.style;return""!==(r=(i=i||Dt(t))?i.getPropertyValue(e)||i[e]:void 0)&&void 0!==r||f.contains(t.ownerDocument,t)||(r=f.style(t,e)),i&&!u.pixelMarginRight()&&Tt.test(r)&&St.test(e)&&(n=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=i.width,a.width=n,a.minWidth=s,a.maxWidth=o),void 0!==r?r+"":r}function Ot(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){var e,i,s,o,r=n.createElement("div"),a=n.createElement("div");function l(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Et.appendChild(r);var n=t.getComputedStyle(a);e="1%"!==n.top,o="2px"===n.marginLeft,i="4px"===n.width,a.style.marginRight="50%",s="4px"===n.marginRight,Et.removeChild(r)}a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",u.clearCloneStyle="content-box"===a.style.backgroundClip,r.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",r.appendChild(a),f.extend(u,{pixelPosition:function(){return l(),e},boxSizingReliable:function(){return null==i&&l(),i},pixelMarginRight:function(){return null==i&&l(),s},reliableMarginLeft:function(){return null==i&&l(),o},reliableMarginRight:function(){var e,i=a.appendChild(n.createElement("div"));return i.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",a.style.width="1px",Et.appendChild(r),e=!parseFloat(t.getComputedStyle(i).marginRight),Et.removeChild(r),a.removeChild(i),e}}))}();var Lt=/^(none|table(?!-c[ea]).+)/,It={position:"absolute",visibility:"hidden",display:"block"},Rt={letterSpacing:"0",fontWeight:"400"},Nt=["Webkit","O","Moz","ms"],Ft=n.createElement("div").style;function jt(t){if(t in Ft)return t;for(var e=t[0].toUpperCase()+t.slice(1),i=Nt.length;i--;)if((t=Nt[i]+e)in Ft)return t}function $t(t,e,i){var n=V.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function zt(t,e,i,n,s){for(var o=i===(n?"border":"content")?4:"width"===e?1:0,r=0;o<4;o+=2)"margin"===i&&(r+=f.css(t,i+q[o],!0,s)),n?("content"===i&&(r-=f.css(t,"padding"+q[o],!0,s)),"margin"!==i&&(r-=f.css(t,"border"+q[o]+"Width",!0,s))):(r+=f.css(t,"padding"+q[o],!0,s),"padding"!==i&&(r+=f.css(t,"border"+q[o]+"Width",!0,s)));return r}function Bt(t,e,i){var n=!0,s="width"===e?t.offsetWidth:t.offsetHeight,o=Dt(t),r="border-box"===f.css(t,"boxSizing",!1,o);if(s<=0||null==s){if(((s=At(t,e,o))<0||null==s)&&(s=t.style[e]),Tt.test(s))return s;n=r&&(u.boxSizingReliable()||s===t.style[e]),s=parseFloat(s)||0}return s+zt(t,e,i||(r?"border":"content"),n,o)+"px"}function Ht(t,e){for(var i,n,s,o=[],r=0,a=t.length;r<a;r++)(n=t[r]).style&&(o[r]=F.get(n,"olddisplay"),i=n.style.display,e?(o[r]||"none"!==i||(n.style.display=""),""===n.style.display&&U(n)&&(o[r]=F.access(n,"olddisplay",Ct(n.nodeName)))):(s=U(n),"none"===i&&s||F.set(n,"olddisplay",s?i:f.css(n,"dis
26play"))));for(r=0;r<a;r++)(n=t[r]).style&&(e&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=e?o[r]||"":"none"));return t}function Wt(t,e,i,n,s){return new Wt.prototype.init(t,e,i,n,s)}f.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=At(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,o,r,a=f.camelCase(e),l=t.style;if(e=f.cssProps[a]||(f.cssProps[a]=jt(a)||a),r=f.cssHooks[e]||f.cssHooks[a],void 0===i)return r&&"get"in r&&void 0!==(s=r.get(t,!1,n))?s:l[e];"string"===(o=typeof i)&&(s=V.exec(i))&&s[1]&&(i=Y(t,e,s),o="number"),null!=i&&i==i&&("number"===o&&(i+=s&&s[3]||(f.cssNumber[a]?"":"px")),u.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,n))||(l[e]=i))}},css:function(t,e,i,n){var s,o,r,a=f.camelCase(e);return e=f.cssProps[a]||(f.cssProps[a]=jt(a)||a),(r=f.cssHooks[e]||f.cssHooks[a])&&"get"in r&&(s=r.get(t,!0,i)),void 0===s&&(s=At(t,e,n)),"normal"===s&&e in Rt&&(s=Rt[e]),""===i||i?(o=parseFloat(s),!0===i||isFinite(o)?o||0:s):s}}),f.each(["height","width"],(function(t,e){f.cssHooks[e]={get:function(t,i,n){if(i)return Lt.test(f.css(t,"display"))&&0===t.offsetWidth?Pt(t,It,(function(){return Bt(t,e,n)})):Bt(t,e,n)},set:function(t,i,n){var s,o=n&&Dt(t),r=n&&zt(t,e,n,"border-box"===f.css(t,"boxSizing",!1,o),o);return r&&(s=V.exec(i))&&"px"!==(s[3]||"px")&&(t.style[e]=i,i=f.css(t,e)),$t(0,i,r)}}})),f.cssHooks.marginLeft=Ot(u.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(At(t,"marginLeft"))||t.getBoundingClientRect().left-Pt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),f.cssHooks.marginRight=Ot(u.reliableMarginRight,(function(t,e){if(e)return Pt(t,{display:"inline-block"},At,[t,"marginRight"])})),f.each({margin:"",padding:"",border:"Width"},(function(t,e){f.cssHooks[t+e]={expand:function(i){for(var n=0,s={},o="string"==typeof i?i.split(" "):[i];n<4;n++)s[t+q[n]+e]=o[n]||o[n-2]||o[0];return s}},St.test(t)||(f.cssHooks[t+e].set=$t)})),f.fn.extend({css:function(t,e){return I(this,(function(t,e,i){var n,s,o={},r=0;if(f.isArray(e)){for(n=Dt(t),s=e.length;r<s;r++)o[e[r]]=f.css(t,e[r],!1,n);return o}return void 0!==i?f.style(t,e,i):f.css(t,e)}),t,e,arguments.length>1)},show:function(){return Ht(this,!0)},hide:function(){return Ht(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){U(this)?f(this).show():f(this).hide()}))}}),f.Tween=Wt,Wt.prototype={constructor:Wt,init:function(t,e,i,n,s,o){this.elem=t,this.prop=i,this.easing=s||f.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(f.cssNumber[i]?"":"px")},cur:function(){var t=Wt.propHooks[this.prop];return t&&t.get?t.get(this):Wt.propHooks._default.get(this)},run:function(t){var e,i=Wt.propHooks[this.prop];return this.options.duration?this.pos=e=f.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):Wt.propHooks._default.set(this),this}},Wt.prototype.init.prototype=Wt.prototype,Wt.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=f.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){f.fx.step[t.prop]?f.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[f.cssProps[t.prop]]&&!f.cssHooks[t.prop]?t.elem[t.prop]=t.now:f.style(t.elem,t.prop,t.now+t.unit)}}},Wt.propHooks.scrollTop=Wt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},f.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},f.fx=Wt.prototype.init,f.fx.step={};var Vt,qt,Ut=/^(?:toggle|show|hide)$/,Yt=/queueHooks$/;function Xt(){return t.setTimeout((function(){Vt=void 0})),Vt=f.now()}function Gt(t,e){var i,n=0,s={height:t};for(e=e?1:0;n<4;n+=2-e)s["margin"+(i=q[n])]=s["padding"+i]=t;return e&&(s.opacity=s.width=t),s}function Kt(t,e,i){for(var n,s=(Qt.tweeners[e]||[]).concat(Qt.tweeners["*"]),o=0,r=s.length;o<r;o++)if(n=s[o].call(i,e,t))return n}function Qt(t,e,i){var n,s,o=0,r=Qt.prefilters.length,a=f.Deferred().always((function(){delete l.elem})),l=function(){if(s)return!1;for(var e=Vt||Xt(),i=Math.max(0,c.startTime+c.duration-e),n=1-(i/c.duration||0),o=0,r=c.tweens.length;o<r;o++)c.tweens[o].run(n);return a.notifyWith(t,[c,n,i]),n<1&&r?i:(a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:f.extend({},e),opts:f.extend(!0,{specialEasing:{},easing:f.easing._default},i),originalProperties:e,originalOptions:i,startTime:Vt||Xt(),duration:i.duration,tweens:[],createTween:function(e,i){var n=f.Tween(t,c.opts,e,i,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var i=0,n=e?c.tweens.length:0;if(s)return this;for(s=!0;i<n;i++)c.tweens[i].run(1);
vendor: 5,466 bytes, line 26
26return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),h=c.props;for(!function(t,e){var i,n,s,o,r;for(i in t)if(s=e[n=f.camelCase(i)],o=t[i],f.isArray(o)&&(s=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(r=f.cssHooks[n])&&"expand"in r)for(i in o=r.expand(o),delete t[n],o)i in t||(t[i]=o[i],e[i]=s);else e[n]=s}(h,c.opts.specialEasing);o<r;o++)if(n=Qt.prefilters[o].call(c,t,h,c.opts))return f.isFunction(n.stop)&&(f._queueHooks(c.elem,c.opts.queue).stop=f.proxy(n.stop,n)),n;return f.map(h,Kt,c),f.isFunction(c.opts.start)&&c.opts.start.call(t,c),f.fx.timer(f.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}f.Animation=f.extend(Qt,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return Y(i.elem,t,V.exec(e),i),i}]},tweener:function(t,e){f.isFunction(t)?(e=t,t=["*"]):t=t.match(O);for(var i,n=0,s=t.length;n<s;n++)i=t[n],Qt.tweeners[i]=Qt.tweeners[i]||[],Qt.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,s,o,r,a,l,c,h=this,u={},d=t.style,p=t.nodeType&&U(t),g=F.get(t,"fxshow");for(n in i.queue||(null==(a=f._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,f.queue(t,"fx").length||a.empty.fire()}))}))),1===t.nodeType&&("height"in e||"width"in e)&&(i.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===("none"===(c=f.css(t,"display"))?F.get(t,"olddisplay")||Ct(t.nodeName):c)&&"none"===f.css(t,"float")&&(d.display="inline-block")),i.overflow&&(d.overflow="hidden",h.always((function(){d.overflow=i.overflow[0],d.overflowX=i.overflow[1],d.overflowY=i.overflow[2]}))),e)if(s=e[n],Ut.exec(s)){if(delete e[n],o=o||"toggle"===s,s===(p?"hide":"show")){if("show"!==s||!g||void 0===g[n])continue;p=!0}u[n]=g&&g[n]||f.style(t,n)}else c=void 0;if(f.isEmptyObject(u))"inline"===("none"===c?Ct(t.nodeName):c)&&(d.display=c);else for(n in g?"hidden"in g&&(p=g.hidden):g=F.access(t,"fxshow",{}),o&&(g.hidden=!p),p?f(t).show():h.done((function(){f(t).hide()})),h.done((function(){var e;for(e in F.remove(t,"fxshow"),u)f.style(t,e,u[e])})),u)r=Kt(p?g[n]:0,n,h),n in g||(g[n]=r.start,p&&(r.end=r.start,r.start="width"===n||"height"===n?1:0))}],prefilter:function(t,e){e?Qt.prefilters.unshift(t):Qt.prefilters.push(t)}}),f.speed=function(t,e,i){var n=t&&"object"==typeof t?f.extend({},t):{complete:i||!i&&e||f.isFunction(t)&&t,duration:t,easing:i&&e||e&&!f.isFunction(e)&&e};return n.duration=f.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in f.fx.speeds?f.fx.speeds[n.duration]:f.fx.speeds._default,null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){f.isFunction(n.old)&&n.old.call(this),n.queue&&f.dequeue(this,n.queue)},n},f.fn.extend({fadeTo:function(t,e,i,n){return this.filter(U).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var s=f.isEmptyObject(t),o=f.speed(e,i,n),r=function(){var e=Qt(this,f.extend({},t),o);(s||F.get(this,"finish"))&&e.stop(!0)};return r.finish=r,s||!1===o.queue?this.each(r):this.queue(o.queue,r)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each((function(){var e=!0,s=null!=t&&t+"queueHooks",o=f.timers,r=F.get(this);if(s)r[s]&&r[s].stop&&n(r[s]);else for(s in r)r[s]&&r[s].stop&&Yt.test(s)&&n(r[s]);for(s=o.length;s--;)o[s].elem!==this||null!=t&&o[s].queue!==t||(o[s].anim.stop(i),e=!1,o.splice(s,1));!e&&i||f.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,i=F.get(this),n=i[t+"queue"],s=i[t+"queueHooks"],o=f.timers,r=n?n.length:0;for(i.finish=!0,f.queue(this,t,[]),s&&s.stop&&s.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<r;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish}))}}),f.each(["toggle","show","hide"],(function(t,e){var i=f.fn[e];f.fn[e]=function(t,n,s){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(Gt(e,!0),t,n,s)}})),f.each({slideDown:Gt("show"),slideUp:Gt("hide"),slideToggle:Gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){f.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}})),f.timers=[],f.fx.tick=function(){var t,e=0,i=f.timers;for(Vt=f.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||f.fx.stop(),Vt=void 0},f.fx.timer=function(t){f.timers.push(t),t()?f.fx.start():f.timers.pop()},f.fx.interval=13,f.fx.start=function(){qt||(qt=t.setInterval(f.fx.tick,f.fx.interval))},f.fx.stop=function(){t.clearInterval(qt),qt=null},f.fx.speeds={slow:600,fast:200,_default:400},f.fn.delay=function(e,i){return e=f.fx&&f.fx.speeds[e]||e,i=i||"fx",this.queue(i,(function(i,n){var s=t.setTimeout(i,e);n.stop=function(){t.clearTimeout(s)}}))},function(){var t=n.createElement("input"),e=n.createElement("select"),i=e.appendChild(n.createElement("option"));t.type="checkbox",u.checkOn=""!==t.value,u.optSelected=i.selected,e.disabled=!0,u.optDisabled=!i.disabled,(t=n.createElement("input")).value="t",t.type="radio",u.radioValue="t"===t.value}();var Jt,Zt=f.expr.attrHandle;f.fn.extend({attr:function(t,e){return I(this,f.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){f.removeAttr(this,t)}))}}
vendor: 4,764 bytes, line 26
26),f.extend({attr:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?f.prop(t,e,i):(1===o&&f.isXMLDoc(t)||(e=e.toLowerCase(),s=f.attrHooks[e]||(f.expr.match.bool.test(e)?Jt:void 0)),void 0!==i?null===i?void f.removeAttr(t,e):s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:(t.setAttribute(e,i+""),i):s&&"get"in s&&null!==(n=s.get(t,e))?n:null==(n=f.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!u.radioValue&&"radio"===e&&f.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n,s=0,o=e&&e.match(O);if(o&&1===t.nodeType)for(;i=o[s++];)n=f.propFix[i]||i,f.expr.match.bool.test(i)&&(t[n]=!1),t.removeAttribute(i)}}),Jt={set:function(t,e,i){return!1===e?f.removeAttr(t,i):t.setAttribute(i,i),i}},f.each(f.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=Zt[e]||f.find.attr;Zt[e]=function(t,e,n){var s,o;return n||(o=Zt[e],Zt[e]=s,s=null!=i(t,e,n)?e.toLowerCase():null,Zt[e]=o),s}}));var te=/^(?:input|select|textarea|button)$/i,ee=/^(?:a|area)$/i;f.fn.extend({prop:function(t,e){return I(this,f.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[f.propFix[t]||t]}))}}),f.extend({prop:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&f.isXMLDoc(t)||(e=f.propFix[e]||e,s=f.propHooks[e]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:t[e]=i:s&&"get"in s&&null!==(n=s.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=f.find.attr(t,"tabindex");return e?parseInt(e,10):te.test(t.nodeName)||ee.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),u.optSelected||(f.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),f.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){f.propFix[this.toLowerCase()]=this}));var ie=/[\t\r\n\f]/g;function ne(t){return t.getAttribute&&t.getAttribute("class")||""}f.fn.extend({addClass:function(t){var e,i,n,s,o,r,a,l=0;if(f.isFunction(t))return this.each((function(e){f(this).addClass(t.call(this,e,ne(this)))}));if("string"==typeof t&&t)for(e=t.match(O)||[];i=this[l++];)if(s=ne(i),n=1===i.nodeType&&(" "+s+" ").replace(ie," ")){for(r=0;o=e[r++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");s!==(a=f.trim(n))&&i.setAttribute("class",a)}return this},removeClass:function(t){var e,i,n,s,o,r,a,l=0;if(f.isFunction(t))return this.each((function(e){f(this).removeClass(t.call(this,e,ne(this)))}));if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(O)||[];i=this[l++];)if(s=ne(i),n=1===i.nodeType&&(" "+s+" ").replace(ie," ")){for(r=0;o=e[r++];)for(;n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");s!==(a=f.trim(n))&&i.setAttribute("class",a)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):f.isFunction(t)?this.each((function(i){f(this).toggleClass(t.call(this,i,ne(this),e),e)})):this.each((function(){var e,n,s,o;if("string"===i)for(n=0,s=f(this),o=t.match(O)||[];e=o[n++];)s.hasClass(e)?s.removeClass(e):s.addClass(e);else void 0!==t&&"boolean"!==i||((e=ne(this))&&F.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":F.get(this,"__className__")||""))}))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+ne(i)+" ").replace(ie," ").indexOf(e)>-1)return!0;return!1}});var se=/\r/g,oe=/[\x20\t\r\n\f]+/g;f.fn.extend({val:function(t){var e,i,n,s=this[0];return arguments.length?(n=f.isFunction(t),this.each((function(i){var s;1===this.nodeType&&(null==(s=n?t.call(this,i,f(this).val()):t)?s="":"number"==typeof s?s+="":f.isArray(s)&&(s=f.map(s,(function(t){return null==t?"":t+""}))),(e=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,s,"value")||(this.value=s))}))):s?(e=f.valHooks[s.type]||f.valHooks[s.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(s,"value"))?i:"string"==typeof(i=s.value)?i.replace(se,""):null==i?"":i:void 0}}),f.extend({valHooks:{option:{get:function(t){var e=f.find.attr(t,"value");return null!=e?e:f.trim(f.text(t)).replace(oe," ")}},select:{get:function(t){for(var e,i,n=t.options,s=t.selectedIndex,o="select-one"===t.type||s<0,r=o?null:[],a=o?s+1:n.length,l=s<0?a:o?s:0;l<a;l++)if(((i=n[l]).selected||l===s)&&(u.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!f.nodeName(i.parentNode,"optgroup"))){if(e=f(i).val(),o)return e;r.push(e)}return r}
vendor: 4,574 bytes, lines 26-27
26,set:function(t,e){for(var i,n,s=t.options,o=f.makeArray(e),r=s.length;r--;)((n=s[r]).selected=f.inArray(f.valHooks.option.get(n),o)>-1)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),f.each(["radio","checkbox"],(function(){f.valHooks[this]={set:function(t,e){if(f.isArray(e))return t.checked=f.inArray(f(t).val(),e)>-1}},u.checkOn||(f.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var re=/^(?:focusinfocus|focusoutblur)$/;f.extend(f.event,{trigger:function(e,i,s,o){var r,a,l,c,u,d,p,g=[s||n],m=h.call(e,"type")?e.type:e,x=h.call(e,"namespace")?e.namespace.split("."):[];if(a=l=s=s||n,3!==s.nodeType&&8!==s.nodeType&&!re.test(m+f.event.triggered)&&(m.indexOf(".")>-1&&(x=m.split("."),m=x.shift(),x.sort()),u=m.indexOf(":")<0&&"on"+m,
27(e=e[f.expando]?e:new f.Event(m,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=x.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+x.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=s),i=null==i?[e]:f.makeArray(i,[e]),p=f.event.special[m]||{},o||!p.trigger||!1!==p.trigger.apply(s,i))){if(!o&&!p.noBubble&&!f.isWindow(s)){for(c=p.delegateType||m,re.test(c+m)||(a=a.parentNode);a;a=a.parentNode)g.push(a),l=a;l===(s.ownerDocument||n)&&g.push(l.defaultView||l.parentWindow||t)}for(r=0;(a=g[r++])&&!e.isPropagationStopped();)e.type=r>1?c:p.bindType||m,(d=(F.get(a,"events")||{})[e.type]&&F.get(a,"handle"))&&d.apply(a,i),(d=u&&a[u])&&d.apply&&R(a)&&(e.result=d.apply(a,i),!1===e.result&&e.preventDefault());return e.type=m,o||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(g.pop(),i)||!R(s)||u&&f.isFunction(s[m])&&!f.isWindow(s)&&((l=s[u])&&(s[u]=null),f.event.triggered=m,s[m](),f.event.triggered=void 0,l&&(s[u]=l)),e.result}},simulate:function(t,e,i){var n=f.extend(new f.Event,i,{type:t,isSimulated:!0});f.event.trigger(n,null,e)}}),f.fn.extend({trigger:function(t,e){return this.each((function(){f.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var i=this[0];if(i)return f.event.trigger(t,e,i,!0)}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(t,e){f.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}})),f.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),u.focusin="onfocusin"in t,u.focusin||f.each({focus:"focusin",blur:"focusout"},(function(t,e){var i=function(t){f.event.simulate(e,t.target,f.event.fix(t))};f.event.special[e]={setup:function(){var n=this.ownerDocument||this,s=F.access(n,e);s||n.addEventListener(t,i,!0),F.access(n,e,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this,s=F.access(n,e)-1;s?F.access(n,e,s):(n.removeEventListener(t,i,!0),F.remove(n,e))}}}));var ae=t.location,le=f.now(),ce=/\?/;f.parseJSON=function(t){return JSON.parse(t+"")},f.parseXML=function(e){var i;if(!e||"string"!=typeof e)return null;try{i=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){i=void 0}return i&&!i.getElementsByTagName("parsererror").length||f.error("Invalid XML: "+e),i};var he=/#.*$/,ue=/([?&])_=[^&]*/,de=/^(.*?):[ \t]*([^\r\n]*)$/gm,fe=/^(?:GET|HEAD)$/,pe=/^\/\//,ge={},me={},xe="*/".concat("*"),be=n.createElement("a");function ve(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,s=0,o=e.toLowerCase().match(O)||[];if(f.isFunction(i))for(;n=o[s++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function ye(t,e,i,n){var s={},o=t===me;function r(a){var l;return s[a]=!0,f.each(t[a]||[],(function(t,a){var c=a(e,i,n);return"string"!=typeof c||o||s[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),r(c),!1)})),l}return r(e.dataTypes[0])||!s["*"]&&r("*")}function _e(t,e){var i,n,s=f.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((s[i]?t:n||(n={}))[i]=e[i]);return n&&f.extend(!0,t,n),t}be.href=ae.href,f.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ae.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ae.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":xe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML}
vendor: 4,108 bytes, line 27
27,flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?_e(_e(t,f.ajaxSettings),e):_e(f.ajaxSettings,t)},ajaxPrefilter:ve(ge),ajaxTransport:ve(me),ajax:function(e,i){"object"==typeof e&&(i=e,e=void 0),i=i||{};var s,o,r,a,l,c,h,u,d=f.ajaxSetup({},i),p=d.context||d,g=d.context&&(p.nodeType||p.jquery)?f(p):f.event,m=f.Deferred(),x=f.Callbacks("once memory"),b=d.statusCode||{},v={},y={},_=0,w="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(2===_){if(!a)for(a={};e=de.exec(r);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===_?r:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return _||(t=y[i]=y[i]||t,v[t]=e),this},overrideMimeType:function(t){return _||(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(_<2)for(e in t)b[e]=[b[e],t[e]];else k.always(t[k.status]);return this},abort:function(t){var e=t||w;return s&&s.abort(e),M(0,e),this}};if(m.promise(k).complete=x.add,k.success=k.done,k.error=k.fail,d.url=((e||d.url||ae.href)+"").replace(he,"").replace(pe,ae.protocol+"//"),d.type=i.method||i.type||d.method||d.type,d.dataTypes=f.trim(d.dataType||"*").toLowerCase().match(O)||[""],null==d.crossDomain){c=n.createElement("a");try{c.href=d.url,c.href=c.href,d.crossDomain=be.protocol+"//"+be.host!=c.protocol+"//"+c.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=f.param(d.data,d.traditional)),ye(ge,d,i,k),2===_)return k;for(u in(h=f.event&&d.global)&&0==f.active++&&f.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!fe.test(d.type),o=d.url,d.hasContent||(d.data&&(o=d.url+=(ce.test(o)?"&":"?")+d.data,delete d.data),!1===d.cache&&(d.url=ue.test(o)?o.replace(ue,"$1_="+le++):o+(ce.test(o)?"&":"?")+"_="+le++)),d.ifModified&&(f.lastModified[o]&&k.setRequestHeader("If-Modified-Since",f.lastModified[o]),f.etag[o]&&k.setRequestHeader("If-None-Match",f.etag[o])),(d.data&&d.hasContent&&!1!==d.contentType||i.contentType)&&k.setRequestHeader("Content-Type",d.contentType),k.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+xe+"; q=0.01":""):d.accepts["*"]),d.headers)k.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(!1===d.beforeSend.call(p,k,d)||2===_))return k.abort();for(u in w="abort",{success:1,error:1,complete:1})k[u](d[u]);if(s=ye(me,d,i,k)){if(k.readyState=1,h&&g.trigger("ajaxSend",[k,d]),2===_)return k;d.async&&d.timeout>0&&(l=t.setTimeout((function(){k.abort("timeout")}),d.timeout));try{_=1,s.send(v,M)}catch(t){if(!(_<2))throw t;M(-1,t)}}else M(-1,"No Transport");function M(e,i,n,a){var c,u,v,y,w,M=i;2!==_&&(_=2,l&&t.clearTimeout(l),s=void 0,r=a||"",k.readyState=e>0?4:0,c=e>=200&&e<300||304===e,n&&(y=function(t,e,i){for(var n,s,o,r,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in i)o=l[0];else{for(s in i){if(!l[0]||t.converters[s+" "+l[0]]){o=s;break}r||(r=s)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),i[o]}(d,k,n)),y=function(t,e,i,n){var s,o,r,a,l,c={},h=t.dataTypes.slice();if(h[1])for(r in t.converters)c[r.toLowerCase()]=t.converters[r];for(o=h.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=h.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(r=c[l+" "+o]||c["* "+o]))for(s in c)if((a=s.split(" "))[1]===o&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[s]:!0!==c[s]&&(o=a[0],h.unshift(a[1]));break}if(!0!==r)if(r&&t.throws)e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(d,y,k,c),c?(d.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(f.lastModified[o]=w),(w=k.getResponseHeader("etag"))&&(f.etag[o]=w)),204===e||"HEAD"===d.type?M="nocontent":304===e?M="notmodified":(M=y.state,u=y.data,c=!(v=y.error))):(v=M,!e&&M||(M="error",e<0&&(e=0))),k.status=e,k.statusText=(i||M)+"",c?m.resolveWith(p,[u,M,k]):m.rejectWith(p,[k,M,v]),
vendor: 1,681 bytes, line 27
27k.statusCode(b),b=void 0,h&&g.trigger(c?"ajaxSuccess":"ajaxError",[k,d,c?u:v]),x.fireWith(p,[k,M]),h&&(g.trigger("ajaxComplete",[k,d]),--f.active||f.event.trigger("ajaxStop")))}return k},getJSON:function(t,e,i){return f.get(t,e,i,"json")},getScript:function(t,e){return f.get(t,void 0,e,"script")}}),f.each(["get","post"],(function(t,e){f[e]=function(t,i,n,s){return f.isFunction(i)&&(s=s||n,n=i,i=void 0),f.ajax(f.extend({url:t,type:e,dataType:s,data:i,success:n},f.isPlainObject(t)&&t))}})),f._evalUrl=function(t){return f.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},f.fn.extend({wrapAll:function(t){var e;return f.isFunction(t)?this.each((function(e){f(this).wrapAll(t.call(this,e))})):(this[0]&&(e=f(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this)},wrapInner:function(t){return f.isFunction(t)?this.each((function(e){f(this).wrapInner(t.call(this,e))})):this.each((function(){var e=f(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=f.isFunction(t);return this.each((function(i){f(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(){return this.parent().each((function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)})).end()}}),f.expr.filters.hidden=function(t){return!f.expr.filters.visible(t)},f.expr.filters.visible=function(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0};var we=/%20/g,ke=/\[\]$/,Me=/\r?\n/g,Ce=/^(?:submit|button|image|reset|file)$/i,Se=/^(?:input|select|textarea|keygen)/i;function Te(t,e,i,n){var s;
vendor: 4,113 bytes, line 27
27if(f.isArray(e))f.each(e,(function(e,s){i||ke.test(t)?n(t,s):Te(t+"["+("object"==typeof s&&null!=s?e:"")+"]",s,i,n)}));else if(i||"object"!==f.type(e))n(t,e);else for(s in e)Te(t+"["+s+"]",e[s],i,n)}f.param=function(t,e){var i,n=[],s=function(t,e){e=f.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=f.ajaxSettings&&f.ajaxSettings.traditional),f.isArray(t)||t.jquery&&!f.isPlainObject(t))f.each(t,(function(){s(this.name,this.value)}));else for(i in t)Te(i,t[i],e,s);return n.join("&").replace(we,"+")},f.fn.extend({serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=f.prop(this,"elements");return t?f.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!f(this).is(":disabled")&&Se.test(this.nodeName)&&!Ce.test(t)&&(this.checked||!X.test(t))})).map((function(t,e){var i=f(this).val();return null==i?null:f.isArray(i)?f.map(i,(function(t){return{name:e.name,value:t.replace(Me,"\r\n")}})):{name:e.name,value:i.replace(Me,"\r\n")}})).get()}}),f.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var De={0:200,1223:204},Pe=f.ajaxSettings.xhr();u.cors=!!Pe&&"withCredentials"in Pe,u.ajax=Pe=!!Pe,f.ajaxTransport((function(e){var i,n;if(u.cors||Pe&&!e.crossDomain)return{send:function(s,o){var r,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)a[r]=e.xhrFields[r];for(r in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest"),s)a.setRequestHeader(r,s[r]);i=function(t){return function(){i&&(i=n=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(De[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=i(),n=a.onerror=i("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&t.setTimeout((function(){i&&n()}))},i=i("abort");try{a.send(e.hasContent&&e.data||null)}catch(t){if(i)throw t}},abort:function(){i&&i()}}})),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return f.globalEval(t),t}}}),f.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),f.ajaxTransport("script",(function(t){var e,i;if(t.crossDomain)return{send:function(s,o){e=f("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&o("error"===t.type?404:200,t.type)}),n.head.appendChild(e[0])},abort:function(){i&&i()}}}));var Ee=[],Ae=/(=)\?(?=&|$)|\?\?/;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ee.pop()||f.expando+"_"+le++;return this[t]=!0,t}}),f.ajaxPrefilter("json jsonp",(function(e,i,n){var s,o,r,a=!1!==e.jsonp&&(Ae.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ae.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return s=e.jsonpCallback=f.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ae,"$1"+s):!1!==e.jsonp&&(e.url+=(ce.test(e.url)?"&":"?")+e.jsonp+"="+s),e.converters["script json"]=function(){return r||f.error(s+" was not called"),r[0]},e.dataTypes[0]="json",o=t[s],t[s]=function(){r=arguments},n.always((function(){void 0===o?f(t).removeProp(s):t[s]=o,e[s]&&(e.jsonpCallback=i.jsonpCallback,Ee.push(s)),r&&f.isFunction(o)&&o(r[0]),r=o=void 0})),"script"})),f.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||n;var s=k.exec(t),o=!i&&[];return s?[e.createElement(s[1])]:(s=nt([t],e,o),o&&o.length&&f(o).remove(),f.merge([],s.childNodes))};var Oe=f.fn.load;function Le(t){return f.isWindow(t)?t:9===t.nodeType&&t.defaultView}
27f.fn.load=function(t,e,i){if("string"!=typeof t&&Oe)return Oe.apply(this,arguments);var n,s,o,r=this,a=t.indexOf(" ");return a>-1&&(n=f.trim(t.slice(a)),t=t.slice(0,a)),f.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(s="POST"),r.length>0&&f.ajax({url:t,type:s||"GET",dataType:"html",data:e}).done((function(t){o=arguments,r.html(n?f("<div>").append(f.parseHTML(t)).find(n):t)})).always(i&&function(t,e){r.each((function(){i.apply(this,o||[t.responseText,e,t])}))}),this},f.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){f.fn[e]=function(t){return this.on(e,t)}})),f.expr.filters.animated=function(t){return f.grep(f.timers,(function(e){return t===e.elem})).length},f.offset={setOffset:function(t,e,i){var n,s,o,r,a,l,c=f.css(t,"position"),h=f(t),u={};"static"===c&&(t.style.position="relative"),a=h.offset(),o=f.css(t,"top"),l=f.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(r=(n=h.position()).top,s=n.left):(r=parseFloat(o)||0,s=parseFloat(l)||0),f.isFunction(e)&&(e=e.call(t,i,f.extend({},a))),null!=e.top&&(u.top=e.top-a.top+r),null!=e.left&&(u.left=e.left-a.left+s),"using"in e?e.using.call(t,u):h.css(u)}},f.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){f.offset.setOffset(this,t,e)}));var e,i,n=this[0],s={top:0,left:0},o=n&&n.ownerDocument;return o?(e=o.documentElement,f.contains(e,n)?(s=n.getBoundingClientRect(),i=Le(o),{top:s.top+i.pageYOffset-e.clientTop,left:s.left+i.pageXOffset-e.clientLeft}):s):void 0},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return"fixed"===f.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),f.nodeName(t[0],"html")||(n=t.offset()),n.top+=f.css(t[0],"borderTopWidth",!0),n.left+=f.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-f.css(i,"marginTop",!0),left:e.left-n.left-f.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===f.css(t,"position");)t=t.offsetParent;return t||Et}))}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var i="pageYOffset"===e;f.fn[t]=function(n){return I(this,(function(t,n,s){var o=Le(t);if(void 0===s)return o?o[e]:t[n];o?o.scrollTo(i?o.pageXOffset:s,i?s:o.pageYOffset):t[n]=s}),t,n,arguments.length)}})),f.each(["top","left"],(function(t,e){f.cssHooks[e]=Ot(u.pixelPosition,(function(t,i){if(i)return i=At(t,e),Tt.test(i)?f(t).position()[e]+"px":i}))})),f.each({Height:"height",Width:"width"},(function(t,e){f.each({padding:"inner"+t,content:e,"":"outer"+t},(function(i,n){f.fn[n]=function(n,s){var o=arguments.length&&(i||"boolean"!=typeof n),r=i||(!0===n||!0===s?"margin":"border");return I(this,(function(e,i,n){var s;return f.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===n?f.css(e,i,r):f.style(e,i,n,r)}),e,o?n:void 0,o,null)}}))})),f.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},size:function(){return this.length}}),f.fn.andSelf=f.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],(function(){return f}));var Ie=t.jQuery,Re=t.$;return f.noConflict=function(e){return t.$===f&&(t.$=Re),e&&t.jQuery===f&&(t.jQuery=Ie),f},e||(t.jQuery=t.$=f),f})),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{easeInOutCirc:function(t,e,i,n,s){return(e/=s/2)<1?-n/2*(Math.sqrt(1-e*e)-1)+i:n/2*(Math.sqrt(1-(e-=2)*e)+1)+i}}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,s=i[n];e=e||[];for(var o=this._onceEvents&&this._onceEvents[t];s;){var r=o&&o[s];r&&(this.off(t,s),delete o[s]),s.apply(this,e),s=i[n+=r?0:1]}return this}},e.allOff=e.removeAllListeners=function(){delete this._events,delete this._onceEvents},t})),function(t,e){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],(function(i){return e(t,i)})):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t,e,s){return this instanceof n?("string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=function(t){var e=[];
27if(Array.isArray(t))e=t;else if("number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e}(t),this.options=i({},this.options),"function"==typeof e?s=e:i(this.options,e),s&&this.on("always",s),this.getImages(),r&&(this.jqDeferred=new r.Deferred),void setTimeout(function(){this.check()}.bind(this))):new n(t,e,s)}function s(t){this.img=t}function o(t,e){this.url=t,this.element=e,this.img=new Image}var r=t.jQuery,a=t.console;n.prototype=Object.create(e.prototype),n.prototype.options={},n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},n.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&l[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var s=i[n];this.addImage(s)}if("string"==typeof this.options.background){var o=t.querySelectorAll(this.options.background);for(n=0;n<o.length;n++){var r=o[n];this.addElementBackgroundImages(r)}}}};var l={1:!0,9:!0,11:!0};return n.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var s=n&&n[2];s&&this.addBackground(s,t),n=i.exec(e.backgroundImage)}},n.prototype.addImage=function(t){var e=new s(t);this.images.push(e)},n.prototype.addBackground=function(t,e){var i=new o(t,e);this.images.push(i)},n.prototype.check=function(){function t(t,i,n){setTimeout((function(){e.progress(t,i,n)}))}var e=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach((function(e){e.once("progress",t),e.check()})):void this.complete()},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,t,e)},n.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},s.prototype=Object.create(e.prototype),s.prototype.check=function(){return this.getIsImageComplete()?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},s.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},s.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},s.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},s.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},s.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},s.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},o.prototype=Object.create(s.prototype),o.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},o.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},o.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((r=e).fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(r(this))})},n.makeJQueryPlugin(),n})),function(t){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],t):t("undefined"!=typeof module&&module.exports?require("jquery"):jQuery)}((function($){"use strict";function t(t){return!t||void 0!==t.allowPageScroll||void 0===t.swipe&&void 0===t.swipeStatus||(t.allowPageScroll=l),void 0!==t.click&&void 0===t.tap&&(t.tap=t.click),t||(t={}),t=$.extend({},$.fn.swipe.defaults,t),this.each((function(){var i=$(this),n=i.data(S);n||(n=new e(this,t),i.data(S,n))}))}function e(t,e){function T(t){if(!(!0===wt.data(S+"_intouch")||$(t.target).closest(e.excludedElements,wt).length>0)){var r=t.originalEvent?t.originalEvent:t;if(!r.pointerType||"mouse"!=r.pointerType||0!=e.fallbackToMouseEvents){var a,l=r.touches,c=l?l[0]:r;return kt=v,l?Mt=l.length:!1!==e.preventDefaultEvents&&t.preventDefault(),dt=0,ft=null,pt=null,yt=null,gt=0,mt=0,xt=0,bt=1,vt=0,(h={}
27)[i]=et(i),h[n]=et(n),h[s]=et(s),h[o]=et(o),_t=h,G(),J(0,c),!l||Mt===e.fingers||e.fingers===x||B()?(St=ot(),2==Mt&&(J(1,l[1]),mt=xt=nt(Ct[0].start,Ct[1].start)),(e.swipeStatus||e.pinchStatus)&&(a=I(r,kt))):a=!1,!1===a?(I(r,kt=w),a):(e.hold&&(Ot=setTimeout($.proxy((function(){wt.trigger("hold",[r.target]),e.hold&&(a=e.hold.call(wt,r,r.target))}),this),e.longTapThreshold)),Q(!0),null)}}var h}function D(t){var h,u,d=t.originalEvent?t.originalEvent:t;if(kt!==_&&kt!==w&&!K()){var f,p=d.touches,b=Z(p?p[0]:d);if(Tt=ot(),p&&(Mt=p.length),e.hold&&clearTimeout(Ot),kt=y,2==Mt&&(0==mt?(J(1,p[1]),mt=xt=nt(Ct[0].start,Ct[1].start)):(Z(p[1]),xt=nt(Ct[0].end,Ct[1].end),Ct[0].end,Ct[1].end,yt=bt<1?a:r),bt=(xt/mt*1).toFixed(2),vt=Math.abs(mt-xt)),Mt===e.fingers||e.fingers===x||!p||B()){if(ft=st(b.start,b.end),function(t,r){if(!1!==e.preventDefaultEvents)if(e.allowPageScroll===l)t.preventDefault();else{var a=e.allowPageScroll===c;switch(r){case i:(e.swipeLeft&&a||!a&&e.allowPageScroll!=g)&&t.preventDefault();break;case n:(e.swipeRight&&a||!a&&e.allowPageScroll!=g)&&t.preventDefault();break;case s:(e.swipeUp&&a||!a&&e.allowPageScroll!=m)&&t.preventDefault();break;case o:(e.swipeDown&&a||!a&&e.allowPageScroll!=m)&&t.preventDefault()}}}(t,pt=st(b.last,b.end)),h=b.start,u=b.end,dt=Math.round(Math.sqrt(Math.pow(u.x-h.x,2)+Math.pow(u.y-h.y,2))),gt=it(),function(t,e){t!=l&&(e=Math.max(e,tt(t)),_t[t].distance=e)}(ft,dt),f=I(d,kt),!e.triggerOnTouchEnd||e.triggerOnTouchLeave){var v=!0;if(e.triggerOnTouchLeave){var k=function(t){var e=(t=$(t)).offset(),i={left:e.left,right:e.left+t.outerWidth(),top:e.top,bottom:e.top+t.outerHeight()};return i}(this);v=function(t,e){return t.x>e.left&&t.x<e.right&&t.y>e.top&&t.y<e.bottom}(b.end,k)}!e.triggerOnTouchEnd&&v?kt=L(y):e.triggerOnTouchLeave&&!v&&(kt=L(_)),kt!=w&&kt!=_||I(d,kt)}}else I(d,kt=w);!1===f&&I(d,kt=w)}}function P(t){var i=t.originalEvent?t.originalEvent:t,n=i.touches;if(n){if(n.length&&!K())return function(t){Dt=ot(),Pt=t.touches.length+1}(i),!0;if(n.length&&K())return!0}return K()&&(Mt=Pt),Tt=ot(),gt=it(),F()||!N()?I(i,kt=w):e.triggerOnTouchEnd||!1===e.triggerOnTouchEnd&&kt===y?(!1!==e.preventDefaultEvents&&t.preventDefault(),I(i,kt=_)):!e.triggerOnTouchEnd&&U()?R(i,kt=_,d):kt===y&&I(i,kt=w),Q(!1),null}function E(){Mt=0,Tt=0,St=0,mt=0,xt=0,bt=1,G(),Q(!1)}function A(t){var i=t.originalEvent?t.originalEvent:t;e.triggerOnTouchLeave&&I(i,kt=L(_))}function O(){wt.unbind(at,T),wt.unbind(ut,E),wt.unbind(lt,D),wt.unbind(ct,P),ht&&wt.unbind(ht,A),Q(!1)}function L(t){var i=t,n=j(),s=N(),o=F();return!n||o?i=w:!s||t!=y||e.triggerOnTouchEnd&&!e.triggerOnTouchLeave?!s&&t==_&&e.triggerOnTouchLeave&&(i=w):i=_,i}function I(t,i){var n,s=t.touches;return(!(!H()||!W())||W())&&(n=R(t,i,h)),(!(!z()||!B())||B())&&!1!==n&&(n=R(t,i,u)),X()&&Y()&&!1!==n?n=R(t,i,f):gt>e.longTapThreshold&&dt<b&&e.longTap&&!1!==n?n=R(t,i,p):!(1!==Mt&&k||!(isNaN(dt)||dt<e.threshold)||!U())&&!1!==n&&(n=R(t,i,d)),i===w&&E(),i===_&&(s&&s.length||E()),n}function R(t,l,c){var g;if(c==h){if(wt.trigger("swipeStatus",[l,ft||null,dt||0,gt||0,Mt,Ct,pt]),e.swipeStatus&&!1===(g=e.swipeStatus.call(wt,t,l,ft||null,dt||0,gt||0,Mt,Ct,pt)))return!1;if(l==_&&H()){if(clearTimeout(At),clearTimeout(Ot),wt.trigger("swipe",[ft,dt,gt,Mt,Ct,pt]),e.swipe&&!1===(g=e.swipe.call(wt,t,ft,dt,gt,Mt,Ct,pt)))return!1;switch(ft){case i:wt.trigger("swipeLeft",[ft,dt,gt,Mt,Ct,pt]),e.swipeLeft&&(g=e.swipeLeft.call(wt,t,ft,dt,gt,Mt,Ct,pt));break;case n:wt.trigger("swipeRight",[ft,dt,gt,Mt,Ct,pt]),e.swipeRight&&(g=e.swipeRight.call(wt,t,ft,dt,gt,Mt,Ct,pt));break;case s:wt.trigger("swipeUp",[ft,dt,gt,Mt,Ct,pt]),e.swipeUp&&(g=e.swipeUp.call(wt,t,ft,dt,gt,Mt,Ct,pt));break;case o:wt.trigger("swipeDown",[ft,dt,gt,Mt,Ct,pt]),e.swipeDown&&(g=e.swipeDown.call(wt,t,ft,dt,gt,Mt,Ct,pt))}}}if(c==u){if(wt.trigger("pinchStatus",[l,yt||null,vt||0,gt||0,Mt,bt,Ct]),e.pinchStatus&&!1===(g=e.pinchStatus.call(wt,t,l,yt||null,vt||0,gt||0,Mt,bt,Ct)))return!1;if(l==_&&z())switch(yt){case r:wt.trigger("pinchIn",[yt||null,vt||0,gt||0,Mt,bt,Ct]),e.pinchIn&&(g=e.pinchIn.call(wt,t,yt||null,vt||0,gt||0,Mt,bt,Ct));break;case a:wt.trigger("pinchOut",[yt||null,vt||0,gt||0,Mt,bt,Ct]),e.pinchOut&&(g=e.pinchOut.call(wt,t,yt||null,vt||0,gt||0,Mt,bt,Ct))}}return c==d?l!==w&&l!==_||(clearTimeout(At),clearTimeout(Ot),Y()&&!X()?(Et=ot(),At=setTimeout($.proxy((function(){Et=null,wt.trigger("tap",[t.target]),e.tap&&(g=e.tap.call(wt,t,t.target))}),this),e.doubleTapThreshold)):(Et=null,wt.trigger("tap",[t.target]),e.tap&&(g=e.tap.call(wt,t,t.target)))):c==f?l!==w&&l!==_||(clearTimeout(At),clearTimeout(Ot),Et=null,wt.trigger("doubletap",[t.target]),e.doubleTap&&(g=e.doubleTap.call(wt,t,t.target))):c==p&&(l!==w&&l!==_||(clearTimeout(At),Et=null,wt.trigger("longtap",[t.target]),e.longTap&&(g=e.longTap.call(wt,t,t.target)))),g}function N(){var t=!0;return null!==e.threshold&&(t=dt>=e.threshold),t}function F(){var t=!1;return null!==e.cancelThreshold&&null!==ft&&(t=tt(ft)-dt>=e.cancelThreshold),t}function j(){return!(e.maxTimeThreshold&&gt>=e.maxTimeThreshold)}function z(){var t=V(),i=q(),n=null===e.pinchThreshold||vt>=e.pinchThreshold;return t&&i&&n}function B(){return!!(e.pinchStatus||e.pinchIn||e.pinchOut)}function H(){var t=j(),e=N(),i=V(),n=q();return!F()&&n&&i&&e&&t}function W(){return!!(e.swipe||e.swipeStatus||e.swipeLeft||e.swipeRight||e.swipeUp||e.swipeDown)}function V(){return Mt===e.fingers||e.fingers===x||!k}function q(){return 0!==Ct[0].end.x}
27function U(){return!!e.tap}function Y(){return!!e.doubleTap}function X(){if(null==Et)return!1;var t=ot();return Y()&&t-Et<=e.doubleTapThreshold}function G(){Dt=0,Pt=0}function K(){var t=!1;Dt&&(ot()-Dt<=e.fingerReleaseThreshold&&(t=!0));return t}function Q(t){wt&&(!0===t?(wt.bind(lt,D),wt.bind(ct,P),ht&&wt.bind(ht,A)):(wt.unbind(lt,D,!1),wt.unbind(ct,P,!1),ht&&wt.unbind(ht,A,!1)),wt.data(S+"_intouch",!0===t))}function J(t,e){var i={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return i.start.x=i.last.x=i.end.x=e.pageX||e.clientX,i.start.y=i.last.y=i.end.y=e.pageY||e.clientY,Ct[t]=i,i}function Z(t){var e=void 0!==t.identifier?t.identifier:0,i=function(t){return Ct[t]||null}(e);return null===i&&(i=J(e,t)),i.last.x=i.end.x,i.last.y=i.end.y,i.end.x=t.pageX||t.clientX,i.end.y=t.pageY||t.clientY,i}function tt(t){if(_t[t])return _t[t].distance}function et(t){return{direction:t,distance:0}}function it(){return Tt-St}function nt(t,e){var i=Math.abs(t.x-e.x),n=Math.abs(t.y-e.y);return Math.round(Math.sqrt(i*i+n*n))}function st(t,e){if(a=e,(r=t).x==a.x&&r.y==a.y)return l;var r,a,c=function(t,e){var i=t.x-e.x,n=e.y-t.y,s=Math.atan2(n,i),o=Math.round(180*s/Math.PI);return o<0&&(o=360-Math.abs(o)),o}(t,e);return c<=45&&c>=0||c<=360&&c>=315?i:c>=135&&c<=225?n:c>45&&c<135?o:s}function ot(){return(new Date).getTime()}e=$.extend({},e);var rt=k||C||!e.fallbackToMouseEvents,at=rt?C?M?"MSPointerDown":"pointerdown":"touchstart":"mousedown",lt=rt?C?M?"MSPointerMove":"pointermove":"touchmove":"mousemove",ct=rt?C?M?"MSPointerUp":"pointerup":"touchend":"mouseup",ht=rt?C?"mouseleave":null:"mouseleave",ut=C?M?"MSPointerCancel":"pointercancel":"touchcancel",dt=0,ft=null,pt=null,gt=0,mt=0,xt=0,bt=1,vt=0,yt=0,_t=null,wt=$(t),kt="start",Mt=0,Ct={},St=0,Tt=0,Dt=0,Pt=0,Et=0,At=null,Ot=null;try{wt.bind(at,T),wt.bind(ut,E)}catch(t){$.error("events not supported "+at+","+ut+" on jQuery.swipe")}this.enable=function(){return this.disable(),wt.bind(at,T),wt.bind(ut,E),wt},this.disable=function(){return O(),wt},this.destroy=function(){O(),wt.data(S,null),wt=null},this.option=function(t,i){if("object"==typeof t)e=$.extend(e,t);else if(void 0!==e[t]){if(void 0===i)return e[t];e[t]=i}else{if(!t)return e;$.error("Option "+t+" does not exist on jQuery.swipe.options")}return null}}var i="left",n="right",s="up",o="down",r="in",a="out",l="none",c="auto",h="swipe",u="pinch",d="tap",f="doubletap",p="longtap",g="horizontal",m="vertical",x="all",b=10,v="start",y="move",_="end",w="cancel",k="ontouchstart"in window,M=window.navigator.msPointerEnabled&&!window.PointerEvent&&!k,C=(window.PointerEvent||window.navigator.msPointerEnabled)&&!k,S="TouchSwipe";$.fn.swipe=function(e){var i=$(this),n=i.data(S);if(n&&"string"==typeof e){if(n[e])return n[e].apply(n,Array.prototype.slice.call(arguments,1))
28;$.error("Method "+e+" does not exist on jQuery.swipe")}else if(n&&"object"==typeof e)n.option.apply(n,arguments);else if(!(n||"object"!=typeof e&&e))return t.apply(this,arguments);return i},$.fn.swipe.version="1.6.18",$.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0},$.fn.swipe.phases={PHASE_START:v,PHASE_MOVE:y,PHASE_END:_,PHASE_CANCEL:w},$.fn.swipe.directions={LEFT:i,RIGHT:n,UP:s,DOWN:o,IN:r,OUT:a},$.fn.swipe.pageScroll={NONE:l,HORIZONTAL:g,VERTICAL:m,AUTO:c},$.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:x}})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Chart=e()}(this,(function(){"use strict";var t=Object.freeze({__proto__:null,get Colors(){return Lo},get Decimation(){return No},get Filler(){return Zo},get Legend(){return nr},get SubTitle(){return ar},get Title(){return or},get Tooltip(){return wr}});function e(){}const i=(()=>{let t=0;return()=>t++})();function n(t){return null==t}function s(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function o(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function r(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function a(t,e){return r(t)?t:e}function l(t,e){return void 0===t?e:t}const c=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e,h=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function u(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function d(t,e,i,n){let r,a,l;if(s(t))if(a=t.length,n)for(r=a-1;r>=0;r--)e.call(i,t[r],r);else for(r=0;r<a;r++)e.call(i,t[r],r);else if(o(t))for(l=Object.keys(t),a=l.length,r=0;r<a;r++)e.call(i,t[l[r]],l[r])}function f(t,e){let i,n,s,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;i<n;++i)if(s=t[i],o=e[i],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function p(t){if(s(t))return t.map(p);if(o(t)){const e=Object.create(null),i=Object.keys(t),n=i.length;let s=0;for(;s<n;++s)e[i[s]]=p(t[i[s]]);return e}return t}function g(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function m(t,e,i,n){if(!g(t))return;const s=e[t],r=i[t];o(s)&&o(r)?x(s,r,n):e[t]=p(r)}function x(t,e,i){const n=s(e)?e:[e],r=n.length;if(!o(t))return t;const a=(i=i||{}).merger||m;let l;for(let e=0;e<r;++e){if(l=n[e],!o(l))continue;const s=Object.keys(l);for(let e=0,n=s.length;e<n;++e)a(s[e],t,l,i)}return t}function b(t,e){return x(t,e,{merger:v})}function v(t,e,i){if(!g(t))return;const n=e[t],s=i[t];o(n)&&o(s)?b(n,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=p(s))}const y={"":t=>t,x:t=>t.x,y:t=>t.y};function _(t){const e=t.split("."),i=[];let n="";for(const t of e)n+=t,n.endsWith("\\")?n=n.slice(0,-1)+".":(i.push(n),n="");return i}function w(t,e){const i=y[e]||(y[e]=function(t){const e=_(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function k(t){return t.charAt(0).toUpperCase()+t.slice(1)}const M=t=>void 0!==t,C=t=>"function"==typeof t,S=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};function T(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const D=Math.PI,P=2*D,E=P+D,A=Number.POSITIVE_INFINITY,O=D/180,L=D/2,I=D/4,R=2*D/3,N=Math.log10,F=Math.sign;function j(t,e,i){return Math.abs(t-e)<i}function z(t){const e=Math.round(t);t=j(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(N(t))),n=t/i;return(n<=1?1:n<=2?2:n<=5?5:10)*i}function B(t){const e=[],i=Math.sqrt(t);let n;for(n=1;n<i;n++)t%n==0&&(e.push(n),e.push(t/n));return i===(0|i)&&e.push(i),e.sort(((t,e)=>t-e)).pop(),e}function H(t){return!isNaN(parseFloat(t))&&isFinite(t)}
vendor: 4,941 bytes, lines 28-34
28function W(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}function V(t,e,i){let n,s,o;for(n=0,s=t.length;n<s;n++)o=t[n][i],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function $(t){return t*(D/180)}function q(t){return t*(180/D)}function U(t){if(!r(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function Y(t,e){const i=e.x-t.x,n=e.y-t.y,s=Math.sqrt(i*i+n*n);let o=Math.atan2(n,i);return o<-.5*D&&(o+=P),{angle:o,distance:s}}function X(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function G(t,e){return(t-e+E)%P-D}function K(t){return(t%P+P)%P}function Q(t,e,i,n){const s=K(t),o=K(e),r=K(i),a=K(o-s),l=K(r-s),c=K(s-o),h=K(s-r);return s===o||s===r||n&&o===r||a>l&&c<h}function J(t,e,i){return Math.max(e,Math.min(i,t))}function Z(t){return J(t,-32768,32767)}function tt(t,e,i,n=1e-6){return t>=Math.min(e,i)-n&&t<=Math.max(e,i)+n}function et(t,e,i){i=i||(i=>t[i]<e);let n,s=t.length-1,o=0;for(;s-o>1;)n=o+s>>1,i(n)?o=n:s=n;return{lo:o,hi:s}}const it=(t,e,i,n)=>et(t,i,n?n=>{const s=t[n][e];return s<i||s===i&&t[n+1][e]===i}:n=>t[n][e]<i),nt=(t,e,i)=>et(t,i,(n=>t[n][e]>=i));function st(t,e,i){let n=0,s=t.length;for(;n<s&&t[n]<e;)n++;for(;s>n&&t[s-1]>i;)s--;return n>0||s<t.length?t.slice(n,s):t}const ot=["push","pop","shift","splice","unshift"];function rt(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),ot.forEach((e=>{const i="_onData"+k(e),n=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const s=n.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"==typeof t[i]&&t[i](...e)})),s}})})))}function at(t,e){const i=t._chartjs;if(!i)return;const n=i.listeners,s=n.indexOf(e);-1!==s&&n.splice(s,1),n.length>0||(ot.forEach((e=>{delete t[e]})),delete t._chartjs)}function lt(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const ct="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function ht(t,e){let i=[],n=!1;return function(...s){i=s,n||(n=!0,ct.call(window,(()=>{n=!1,t.apply(e,i)})))}}function ut(t,e){let i;return function(...n){return e?(clearTimeout(i),i=setTimeout(t,e,n)):t.apply(this,n),e}}const dt=t=>"start"===t?"left":"end"===t?"right":"center",ft=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2,pt=(t,e,i,n)=>t===(n?"left":"right")?i:"center"===t?(e+i)/2:e;function gt(t,e,i){const n=e.length;let s=0,o=n;if(t._sorted){const{iScale:r,_parsed:a}=t,l=r.axis,{min:c,max:h,minDefined:u,maxDefined:d}=r.getUserBounds();u&&(s=J(Math.min(it(a,r.axis,c).lo,i?n:it(e,l,r.getPixelForValue(c)).lo),0,n-1)),o=d?J(Math.max(it(a,r.axis,h,!0).hi+1,i?0:it(e,l,r.getPixelForValue(h),!0).hi+1),s,n)-s:n-s}return{start:s,count:o}}function mt(t){const{xScale:e,yScale:i,_scaleRanges:n}=t,s={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!n)return t._scaleRanges=s,!0;const o=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,s),o}var xt=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,n){const s=e.listeners[n],o=e.duration;s.forEach((n=>n({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=ct.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,n)=>{if(!i.running||!i.items.length)return;const s=i.items;let o,r=s.length-1,a=!1;for(;r>=0;--r)o=s[r],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),a=!0):(s[r]=s[s.length-1],s.pop());a&&(n.draw(),this._notify(n,i,t,"progress")),s.length||(i.running=!1,this._notify(n,i,t,"complete"),i.initial=!1),e+=s.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let n=i.length-1;for(;n>=0;--n)i[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};
29/*!
30 * @kurkle/color v0.3.2
31 * https://github.com/kurkle/color#readme
32 * (c) 2023 Jukka Kurkela
33 * Released under the MIT License
34 */function bt(t){return t+.5|0}const vt=(t,e,i)=>Math.max(Math.min(t,i),e);function yt(t){return vt(bt(2.55*t),0,255)}function _t(t){return vt(bt(255*t),0,255)}function wt(t){return vt(bt(t/2.55)/100,0,1)}
vendor: 3,801 bytes, line 34
34function kt(t){return vt(bt(100*t),0,100)}const Mt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Ct=[..."0123456789ABCDEF"],St=t=>Ct[15&t],Tt=t=>Ct[(240&t)>>4]+Ct[15&t],Dt=t=>(240&t)>>4==(15&t);const Pt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Et(t,e,i){const n=e*Math.min(i,1-i),s=(e,s=(e+t/30)%12)=>i-n*Math.max(Math.min(s-3,9-s,1),-1);return[s(0),s(8),s(4)]}function At(t,e,i){const n=(n,s=(n+t/60)%6)=>i-i*e*Math.max(Math.min(s,4-s,1),0);return[n(5),n(3),n(1)]}function Ot(t,e,i){const n=Et(t,1,.5);let s;for(e+i>1&&(s=1/(e+i),e*=s,i*=s),s=0;s<3;s++)n[s]*=1-e-i,n[s]+=e;return n}function Lt(t){const e=t.r/255,i=t.g/255,n=t.b/255,s=Math.max(e,i,n),o=Math.min(e,i,n),r=(s+o)/2;let a,l,c;return s!==o&&(c=s-o,l=r>.5?c/(2-s-o):c/(s+o),a=function(t,e,i,n,s){return t===s?(e-i)/n+(e<i?6:0):e===s?(i-t)/n+2:(t-e)/n+4}(e,i,n,c,s),a=60*a+.5),[0|a,l||0,r]}function It(t,e,i,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,n)).map(_t)}function Rt(t,e,i){return It(Et,t,e,i)}function Nt(t){return(t%360+360)%360}const Ft={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},jt={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let $t;const zt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Bt=t=>
vendor: 5,550 bytes, line 34
34t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Ht=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Wt(t,e,i){if(t){let n=Lt(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*i,0===e?360:1)),n=Rt(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function Vt(t,e){return t?Object.assign(e||{},t):t}function qt(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=_t(t[3]))):(e=Vt(t,{r:0,g:0,b:0,a:1})).a=_t(e.a),e}function Ut(t){return"r"===t.charAt(0)?function(t){const e=zt.exec(t);let i,n,s,o=255;if(e){if(e[7]!==i){const t=+e[7];o=e[8]?yt(t):vt(255*t,0,255)}return i=+e[1],n=+e[3],s=+e[5],i=255&(e[2]?yt(i):vt(i,0,255)),n=255&(e[4]?yt(n):vt(n,0,255)),s=255&(e[6]?yt(s):vt(s,0,255)),{r:i,g:n,b:s,a:o}}}(t):function(t){const e=Pt.exec(t);let i,n=255;if(!e)return;e[5]!==i&&(n=e[6]?yt(+e[5]):_t(+e[5]));const s=Nt(+e[2]),o=+e[3]/100,r=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return It(Ot,t,e,i)}(s,o,r):"hsv"===e[1]?function(t,e,i){return It(At,t,e,i)}(s,o,r):Rt(s,o,r),{r:i[0],g:i[1],b:i[2],a:n}}(t)}class Yt{constructor(t){if(t instanceof Yt)return t;const e=typeof t;let i;var n,s,o;"object"===e?i=qt(t):"string"===e&&(o=(n=t).length,"#"===n[0]&&(4===o||5===o?s={r:255&17*Mt[n[1]],g:255&17*Mt[n[2]],b:255&17*Mt[n[3]],a:5===o?17*Mt[n[4]]:255}:7!==o&&9!==o||(s={r:Mt[n[1]]<<4|Mt[n[2]],g:Mt[n[3]]<<4|Mt[n[4]],b:Mt[n[5]]<<4|Mt[n[6]],a:9===o?Mt[n[7]]<<4|Mt[n[8]]:255})),i=s||function(t){$t||($t=function(){const t={},e=Object.keys(jt),i=Object.keys(Ft);let n,s,o,r,a;for(n=0;n<e.length;n++){for(r=a=e[n],s=0;s<i.length;s++)o=i[s],a=a.replace(o,Ft[o]);o=parseInt(jt[r],16),t[a]=[o>>16&255,o>>8&255,255&o]}return t}(),$t.transparent=[0,0,0,0]);const e=$t[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||Ut(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Vt(this._rgb);return t&&(t.a=wt(t.a)),t}set rgb(t){this._rgb=qt(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${wt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?function(t){var e=(t=>Dt(t.r)&&Dt(t.g)&&Dt(t.b)&&Dt(t.a))(t)?St:Tt;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Lt(t),i=e[0],n=kt(e[1]),s=kt(e[2]);return t.a<255?`hsla(${i}, ${n}%, ${s}%, ${wt(t.a)})`:`hsl(${i}, ${n}%, ${s}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,n=t.rgb;let s;const o=e===s?.5:e,r=2*o-1,a=i.a-n.a,l=((r*a==-1?r:(r+a)/(1+r*a))+1)/2;s=1-l,i.r=255&l*i.r+s*n.r+.5,i.g=255&l*i.g+s*n.g+.5,i.b=255&l*i.b+s*n.b+.5,i.a=o*i.a+(1-o)*n.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const n=Ht(wt(t.r)),s=Ht(wt(t.g)),o=Ht(wt(t.b));return{r:_t(Bt(n+i*(Ht(wt(e.r))-n))),g:_t(Bt(s+i*(Ht(wt(e.g))-s))),b:_t(Bt(o+i*(Ht(wt(e.b))-o))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Yt(this.rgb)}alpha(t){return this._rgb.a=_t(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=bt(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Wt(this._rgb,2,t),this}darken(t){return Wt(this._rgb,2,-t),this}saturate(t){return Wt(this._rgb,1,t),this}desaturate(t){return Wt(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=Lt(t);i[0]=Nt(i[0]+e),i=Rt(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function Xt(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Gt(t){return Xt(t)?t:new Yt(t)}function Kt(t){return Xt(t)?t:new Yt(t).saturate(.5).darken(.1).hexString()}const Qt=["x","y","borderWidth","radius","tension"],Jt=["color","borderColor","backgroundColor"],Zt=new Map;function te(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let n=Zt.get(i);return n||(n=new Intl.NumberFormat(t,e),Zt.set(i,n)),n}(e,i).format(t)}const ee={values:t=>s(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const n=this.chart.options.locale;let s,o=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(s="scientific"),o=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t)),i}(t,i)}const r=N(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),te(t,n,l)},logarithmic(t,e,i){if(0===t)return"0";const n=i[e].significand||t/Math.pow(10,Math.floor(N(t)));return[1,2,3,5,10,15].includes(n)||e>.8*i.length?ee.numeric.call(this,t,e,i):""}};var ie={formatters:ee};const ne=Object.create(null),se=Object.create(null);function oe(t,e){if(!e)return t;const i=e.split(".");for(let e=0,n=i.length;e<n;++e){const n=i[e];t=t[n]||(t[n]=Object.create(null))}return t}function re(t,e,i){return"string"==typeof e?x(oe(t,e),i):x(oe(t,""),e)}var ae=new class{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={}
vendor: 4,194 bytes, line 34
34,this.hoverBackgroundColor=(t,e)=>Kt(e.backgroundColor),this.hoverBorderColor=(t,e)=>Kt(e.borderColor),this.hoverColor=(t,e)=>Kt(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return re(this,t,e)}get(t){return oe(this,t)}describe(t,e){return re(se,t,e)}override(t,e){return re(ne,t,e)}route(t,e,i,n){const s=oe(this,t),r=oe(this,i),a="_"+e;Object.defineProperties(s,{[a]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=r[n];return o(t)?Object.assign({},e,t):l(t,e)},set(t){this[a]=t}}})}apply(t){t.forEach((t=>t(this)))}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:Jt},numbers:{type:"number",properties:Qt}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ie.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function le(){return"undefined"!=typeof window&&"undefined"!=typeof document}function ce(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function he(t,e,i){let n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[i])):n=t,n}const ue=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function de(t,e){return ue(t).getPropertyValue(e)}const fe=["top","right","bottom","left"];function pe(t,e,i){const n={};i=i?"-"+i:"";for(let s=0;s<4;s++){const o=fe[s];n[o]=parseFloat(t[e+"-"+o+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const ge=(t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot);function me(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:n}=e,s=ue(i),o="border-box"===s.boxSizing,r=pe(s,"padding"),a=pe(s,"border","width"),{x:l,y:c,box:h}=function(t,e){const i=t.touches,n=i&&i.length?i[0]:t,{offsetX:s,offsetY:o}=n;let r,a,l=!1;if(ge(s,o,t.target))r=s,a=o;else{const t=e.getBoundingClientRect();r=n.clientX-t.left,a=n.clientY-t.top,l=!0}return{x:r,y:a,box:l}}(t,i),u=r.left+(h&&a.left),d=r.top+(h&&a.top);let{width:f,height:p}=e;return o&&(f-=r.width+a.width,p-=r.height+a.height),{x:Math.round((l-u)/f*i.width/n),y:Math.round((c-d)/p*i.height/n)}}const xe=t=>Math.round(10*t)/10;
vendor: 4,600 bytes, line 34
34function be(t,e,i,n){const s=ue(t),o=pe(s,"margin"),r=he(s.maxWidth,t,"clientWidth")||A,a=he(s.maxHeight,t,"clientHeight")||A,l=function(t,e,i){let n,s;if(void 0===e||void 0===i){const o=ce(t);if(o){const t=o.getBoundingClientRect(),r=ue(o),a=pe(r,"border","width"),l=pe(r,"padding");e=t.width-l.width-a.width,i=t.height-l.height-a.height,n=he(r.maxWidth,o,"clientWidth"),s=he(r.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:n||A,maxHeight:s||A}}(t,e,i);let{width:c,height:h}=l;if("content-box"===s.boxSizing){const t=pe(s,"border","width"),e=pe(s,"padding");c-=e.width+t.width,h-=e.height+t.height}return c=Math.max(0,c-o.width),h=Math.max(0,n?c/n:h-o.height),c=xe(Math.min(c,r,l.maxWidth)),h=xe(Math.min(h,a,l.maxHeight)),c&&!h&&(h=xe(c/2)),(void 0!==e||void 0!==i)&&n&&l.height&&h>l.height&&(h=l.height,c=xe(Math.floor(h*n))),{width:c,height:h}}function ve(t,e,i){const n=e||1,s=Math.floor(t.height*n),o=Math.floor(t.width*n);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const r=t.canvas;return r.style&&(i||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||r.height!==s||r.width!==o)&&(t.currentDevicePixelRatio=n,r.height=s,r.width=o,t.ctx.setTransform(n,0,0,n,0,0),!0)}const ye=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function _e(t,e){const i=de(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function we(t){return!t||n(t.size)||n(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function ke(t,e,i,n,s){let o=e[s];return o||(o=e[s]=t.measureText(s).width,i.push(s)),o>n&&(n=o),n}function Me(t,e,i,n){let o=(n=n||{}).data=n.data||{},r=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(o=n.data={},r=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let a=0;const l=i.length;let c,h,u,d,f;for(c=0;c<l;c++)if(d=i[c],null==d||s(d)){if(s(d))for(h=0,u=d.length;h<u;h++)f=d[h],null==f||s(f)||(a=ke(t,o,r,a,f))}else a=ke(t,o,r,a,d);t.restore();const p=r.length/2;if(p>i.length){for(c=0;c<p;c++)delete o[r[c]];r.splice(0,p)}return a}function Ce(t,e,i){const n=t.currentDevicePixelRatio,s=0!==i?Math.max(i/2,.5):0;return Math.round((e-s)*n)/n+s}function Se(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function Te(t,e,i,n){De(t,e,i,n,null)}function De(t,e,i,n,s){let o,r,a,l,c,h,u,d;const f=e.pointStyle,p=e.rotation,g=e.radius;let m=(p||0)*O;if(f&&"object"==typeof f&&(o=f.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(i,n),t.rotate(m),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void t.restore();if(!(isNaN(g)||g<=0)){switch(t.beginPath(),f){default:s?t.ellipse(i,n,s/2,g,0,0,P):t.arc(i,n,g,0,P),t.closePath();break;case"triangle":h=s?s/2:g,t.moveTo(i+Math.sin(m)*h,n-Math.cos(m)*g),m+=R,t.lineTo(i+Math.sin(m)*h,n-Math.cos(m)*g),m+=R,t.lineTo(i+Math.sin(m)*h,n-Math.cos(m)*g),t.closePath();break;case"rectRounded":c=.516*g,l=g-c,r=Math.cos(m+I)*l,u=Math.cos(m+I)*(s?s/2-c:l),a=Math.sin(m+I)*l,d=Math.sin(m+I)*(s?s/2-c:l),t.arc(i-u,n-a,c,m-D,m-L),t.arc(i+d,n-r,c,m-L,m),t.arc(i+u,n+a,c,m,m+L),t.arc(i-d,n+r,c,m+L,m+D),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,h=s?s/2:l,t.rect(i-h,n-l,2*h,2*l);break}m+=I;case"rectRot":u=Math.cos(m)*(s?s/2:g),r=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(s?s/2:g),t.moveTo(i-u,n-a),t.lineTo(i+d,n-r),t.lineTo(i+u,n+a),t.lineTo(i-d,n+r),t.closePath();break;case"crossRot":m+=I;case"cross":u=Math.cos(m)*(s?s/2:g),r=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(s?s/2:g),t.moveTo(i-u,n-a),t.lineTo(i+u,n+a),t.moveTo(i+d,n-r),t.lineTo(i-d,n+r);break;case"star":u=Math.cos(m)*(s?s/2:g),r=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(s?s/2:g),t.moveTo(i-u,n-a),t.lineTo(i+u,n+a),t.moveTo(i+d,n-r),t.lineTo(i-d,n+r),m+=I,u=Math.cos(m)*(s?s/2:g),r=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(s?s/2:g),t.moveTo(i-u,n-a),t.lineTo(i+u,n+a),t.moveTo(i+d,n-r),t.lineTo(i-d,n+r);break;case"line":r=s?s/2:Math.cos(m)*g,a=Math.sin(m)*g,t.moveTo(i-r,n-a),t.lineTo(i+r,n+a);break;case"dash":t.moveTo(i,n),t.lineTo(i+Math.cos(m)*(s?s/2:g),n+Math.sin(m)*g);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function Pe(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function Ee(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}
vendor: 4,752 bytes, line 34
34function Ae(t){t.restore()}function Oe(t,e,i,n,s){if(!e)return t.lineTo(i.x,i.y);if("middle"===s){const n=(e.x+i.x)/2;t.lineTo(n,e.y),t.lineTo(n,i.y)}else"after"===s!=!!n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function Le(t,e,i,n){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(n?e.cp1x:e.cp2x,n?e.cp1y:e.cp2y,n?i.cp2x:i.cp1x,n?i.cp2y:i.cp1y,i.x,i.y)}function Ie(t,e,i,n,s){if(s.strikethrough||s.underline){const o=t.measureText(n),r=e-o.actualBoundingBoxLeft,a=e+o.actualBoundingBoxRight,l=i-o.actualBoundingBoxAscent,c=i+o.actualBoundingBoxDescent,h=s.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(r,h),t.lineTo(a,h),t.stroke()}}function Re(t,e){const i=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=i}function Ne(t,e,i,o,r,a={}){const l=s(e)?e:[e],c=a.strokeWidth>0&&""!==a.strokeColor;let h,u;for(t.save(),t.font=r.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),n(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,a),h=0;h<l.length;++h)u=l[h],a.backdrop&&Re(t,a.backdrop),c&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),n(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(u,i,o,a.maxWidth)),t.fillText(u,i,o,a.maxWidth),Ie(t,i,o,u,a),o+=Number(r.lineHeight);t.restore()}function Fe(t,e){const{x:i,y:n,w:s,h:o,radius:r}=e;t.arc(i+r.topLeft,n+r.topLeft,r.topLeft,-L,D,!0),t.lineTo(i,n+o-r.bottomLeft),t.arc(i+r.bottomLeft,n+o-r.bottomLeft,r.bottomLeft,D,L,!0),t.lineTo(i+s-r.bottomRight,n+o),t.arc(i+s-r.bottomRight,n+o-r.bottomRight,r.bottomRight,L,0,!0),t.lineTo(i+s,n+r.topRight),t.arc(i+s-r.topRight,n+r.topRight,r.topRight,0,-L,!0),t.lineTo(i+r.topLeft,n)}function je(t,e=[""],i,n,s=(()=>t[0])){const o=i||t;void 0===n&&(n=Ge("_fallback",t));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:n,_getTarget:s,override:i=>je([i,...t],e,o,n)};return new Proxy(r,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,n)=>We(i,n,(()=>function(t,e,i,n){let s;for(const o of e)if(s=Ge(Be(o,t),i),void 0!==s)return He(t,s)?Ye(i,n,t,s):s}(n,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ke(t).includes(e),ownKeys:t=>Ke(t),set(t,e,i){const n=t._storage||(t._storage=s());return t[e]=n[e]=i,delete t._keys,!0}})}function $e(t,e,i,n){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:ze(t,n),setContext:e=>$e(t,e,i,n),override:s=>$e(t.override(s),e,i,n)};return new Proxy(r,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>We(t,e,(()=>function(t,e,i){const{_proxy:n,_context:r,_subProxy:a,_descriptors:l}=t;let c=n[e];return C(c)&&l.isScriptable(e)&&(c=function(t,e,i,n){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=i;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(o,r||n);return a.delete(t),He(t,l)&&(l=Ye(s._scopes,s,t,l)),l}(e,c,t,i)),s(c)&&c.length&&(c=function(t,e,i,n){const{_proxy:s,_context:r,_subProxy:a,_descriptors:l}=i;if(void 0!==r.index&&n(t))return e[r.index%e.length];if(o(e[0])){const i=e,n=s._scopes.filter((t=>t!==i));e=[];for(const o of i){const i=Ye(n,s,t,o);e.push($e(i,r,a&&a[t],l))}}return e}(e,c,t,l.isIndexable)),He(e,c)&&(c=$e(c,r,a&&a[e],l)),c}(t,e,i))),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,n)=>(t[i]=n,delete e[i],!0)})}function ze(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:n=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:i,indexable:n,isScriptable:C(i)?i:()=>i,isIndexable:C(n)?n:()=>n}}const Be=(t,e)=>t?t+k(e):e,He=(t,e)=>o(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function We(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const n=i();return t[e]=n,n}function Ve(t,e,i){return C(t)?t(e,i):t}const qe=(t,e)=>!0===t?e:"string"==typeof t?w(e,t):void 0;function Ue(t,e,i,n,s){for(const o of e){const e=qe(i,o);if(e){t.add(e);const o=Ve(e._fallback,i,s);if(void 0!==o&&o!==i&&o!==n)return o}else if(!1===e&&void 0!==n&&i!==n)return null}return!1}function Ye(t,e,i,n){const r=e._rootScopes,a=Ve(e._fallback,i,n),l=[...t,...r],c=new Set;c.add(n);let h=Xe(c,l,i,a||i,n);return null!==h&&(void 0===a||a===i||(h=Xe(c,l,a,h,n),null!==h))&&je(Array.from(c),[""],r,a,(()=>
vendor: 4,667 bytes, line 34
34function(t,e,i){const n=t._getTarget();e in n||(n[e]={});const r=n[e];return s(r)&&o(i)?i:r||{}}(e,i,n)))}function Xe(t,e,i,n,s){for(;i;)i=Ue(t,e,i,n,s);return i}function Ge(t,e){for(const i of e){if(!i)continue;const e=i[t];if(void 0!==e)return e}}function Ke(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Qe(t,e,i,n){const{iScale:s}=t,{key:o="r"}=this._parsing,r=new Array(n);let a,l,c,h;for(a=0,l=n;a<l;++a)c=a+i,h=e[c],r[a]={r:s.parse(w(h,o),c)};return r}const Je=Number.EPSILON||1e-14,Ze=(t,e)=>e<t.length&&!t[e].skip&&t[e],ti=t=>"x"===t?"y":"x";function ei(t,e,i,n){const s=t.skip?e:t,o=e,r=i.skip?e:i,a=X(o,s),l=X(r,o);let c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const u=n*c,d=n*h;return{previous:{x:o.x-u*(r.x-s.x),y:o.y-u*(r.y-s.y)},next:{x:o.x+d*(r.x-s.x),y:o.y+d*(r.y-s.y)}}}function ii(t,e="x"){const i=ti(e),n=t.length,s=Array(n).fill(0),o=Array(n);let r,a,l,c=Ze(t,0);for(r=0;r<n;++r)if(a=l,l=c,c=Ze(t,r+1),l){if(c){const t=c[e]-l[e];s[r]=0!==t?(c[i]-l[i])/t:0}o[r]=a?c?F(s[r-1])!==F(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}!function(t,e,i){const n=t.length;let s,o,r,a,l,c=Ze(t,0);for(let h=0;h<n-1;++h)l=c,c=Ze(t,h+1),l&&c&&(j(e[h],0,Je)?i[h]=i[h+1]=0:(s=i[h]/e[h],o=i[h+1]/e[h],a=Math.pow(s,2)+Math.pow(o,2),a<=9||(r=3/Math.sqrt(a),i[h]=s*r*e[h],i[h+1]=o*r*e[h])))}(t,s,o),function(t,e,i="x"){const n=ti(i),s=t.length;let o,r,a,l=Ze(t,0);for(let c=0;c<s;++c){if(r=a,a=l,l=Ze(t,c+1),!a)continue;const s=a[i],h=a[n];r&&(o=(s-r[i])/3,a[`cp1${i}`]=s-o,a[`cp1${n}`]=h-o*e[c]),l&&(o=(l[i]-s)/3,a[`cp2${i}`]=s+o,a[`cp2${n}`]=h+o*e[c])}}(t,o,e)}function ni(t,e,i){return Math.max(Math.min(t,i),e)}function si(t,e,i,n,s){let o,r,a,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)ii(t,s);else{let i=n?t[t.length-1]:t[0];for(o=0,r=t.length;o<r;++o)a=t[o],l=ei(i,a,t[Math.min(o+1,r-(n?0:1))%r],e.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,i=a}e.capBezierPoints&&function(t,e){let i,n,s,o,r,a=Pe(t[0],e);for(i=0,n=t.length;i<n;++i)r=o,o=a,a=i<n-1&&Pe(t[i+1],e),o&&(s=t[i],r&&(s.cp1x=ni(s.cp1x,e.left,e.right),s.cp1y=ni(s.cp1y,e.top,e.bottom)),a&&(s.cp2x=ni(s.cp2x,e.left,e.right),s.cp2y=ni(s.cp2y,e.top,e.bottom)))}(t,i)}const oi=t=>0===t||1===t,ri=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*P/i),ai=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*P/i)+1,li={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*L),easeOutSine:t=>Math.sin(t*L),easeInOutSine:t=>-.5*(Math.cos(D*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>oi(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>oi(t)?t:ri(t,.075,.3),easeOutElastic:t=>oi(t)?t:ai(t,.075,.3),easeInOutElastic(t){const e=.1125;return oi(t)?t:t<.5?.5*ri(2*t,e,.45):.5+.5*ai(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-li.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*li.easeInBounce(2*t):.5*li.easeOutBounce(2*t-1)+.5};function ci(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function hi(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:"middle"===n?i<.5?t.y:e.y:"after"===n?i<1?t.y:e.y:i>0?e.y:t.y}}function ui(t,e,i,n){const s={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},r=ci(t,s,i),a=ci(s,o,i),l=ci(o,e,i),c=ci(r,a,i),h=ci(a,l,i);return ci(c,h,i)}const di=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,fi=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function pi(t,e){const i=(""+t).match(di);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}const gi=t=>+t||0;function mi(t,e){const i={}
vendor: 4,837 bytes, lines 34-35
34,n=o(e),s=n?Object.keys(e):e,r=o(t)?n?i=>l(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of s)i[t]=gi(r(t));return i}function xi(t){return mi(t,{top:"y",right:"x",bottom:"y",left:"x"})}function bi(t){return mi(t,["topLeft","topRight","bottomLeft","bottomRight"])}function vi(t){const e=xi(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function yi(t,e){t=t||{},e=e||ae.font;let i=l(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let n=l(t.style,e.style);n&&!(""+n).match(fi)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const s={family:l(t.family,e.family),lineHeight:pi(l(t.lineHeight,e.lineHeight),i),size:i,style:n,weight:l(t.weight,e.weight),string:""};return s.string=we(s),s}function _i(t,e,i,n){let o,r,a,l=!0;for(o=0,r=t.length;o<r;++o)if(a=t[o],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),l=!1),void 0!==i&&s(a)&&(a=a[i%a.length],l=!1),void 0!==a))return n&&!l&&(n.cacheable=!1),a}function wi(t,e,i){const{min:n,max:s}=t,o=h(e,(s-n)/2),r=(t,e)=>i&&0===t?0:t+e;return{min:r(n,-Math.abs(o)),max:r(s,o)}}function ki(t,e){return Object.assign(Object.create(t),e)}function Mi(t,e,i){return t?function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,i):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function Ci(t,e){let i,n;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,n=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=n)}function Si(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Ti(t){return"angle"===t?{between:Q,compare:G,normalize:K}:{between:tt,compare:(t,e)=>t-e,normalize:t=>t}}function Di({start:t,end:e,count:i,loop:n,style:s}){return{start:t%i,end:e%i,loop:n&&(e-t+1)%i==0,style:s}}function Pi(t,e,i){if(!i)return[t];const{property:n,start:s,end:o}=i,r=e.length,{compare:a,between:l,normalize:c}=Ti(n),{start:h,end:u,loop:d,style:f}=function(t,e,i){const{property:n,start:s,end:o}=i,{between:r,normalize:a}=Ti(n),l=e.length;let c,h,{start:u,end:d,loop:f}=t;if(f){for(u+=l,d+=l,c=0,h=l;c<h&&r(a(e[u%l][n]),s,o);++c)u--,d--;u%=l,d%=l}return d<u&&(d+=l),{start:u,end:d,loop:f,style:t.style}}(t,e,i),p=[];let g,m,x,b=!1,v=null;for(let t=h,i=h;t<=u;++t)m=e[t%r],m.skip||(g=c(m[n]),g!==x&&(b=l(g,s,o),null===v&&(b||l(s,x,g)&&0!==a(s,x))&&(v=0===a(g,s)?t:i),null!==v&&(!b||0===a(o,g)||l(o,x,g))&&(p.push(Di({start:v,end:t,loop:d,count:r,style:f})),v=null),i=t,x=g));return null!==v&&p.push(Di({start:v,end:u,loop:d,count:r,style:f})),p}function Ei(t,e){const i=[],n=t.segments;for(let s=0;s<n.length;s++){const o=Pi(n[s],t.points,e);o.length&&i.push(...o)}return i}function Ai(t,e){const i=t.points,n=t.options.spanGaps,s=i.length;if(!s)return[];const o=!!t._loop,{start:r,end:a}=function(t,e,i,n){let s=0,o=e-1;if(i&&!n)for(;s<e&&!t[s].skip;)s++;for(;s<e&&t[s].skip;)s++;for(s%=e,i&&(o+=s);o>s&&t[o%e].skip;)o--;return o%=e,{start:s,end:o}}(i,s,o,n);return Oi(t,!0===n?[{start:r,end:a,loop:o}]:function(t,e,i,n){const s=t.length,o=[];let r,a=e,l=t[e];for(r=e+1;r<=i;++r){const i=t[r%s];i.skip||i.stop?l.skip||(n=!1,o.push({start:e%s,end:(r-1)%s,loop:n}),e=a=i.stop?r:null):(a=r,l.skip&&(e=r)),l=i}return null!==a&&o.push({start:e%s,end:a%s,loop:n}),o}(i,r,a<r?a+s:a,!!t._fullLoop&&0===r&&a===s-1),i,e)}function Oi(t,e,i,n){return n&&n.setContext&&i?function(t,e,i,n){const s=t._chart.getContext(),o=Li(t.options),{_datasetIndex:r,options:{spanGaps:a}}=t,l=i.length,c=[];let h=o,u=e[0].start,d=u;function f(t,e,n,s){const o=a?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=o;for(;i[e%l].skip;)e+=o;t%l!=e%l&&(c.push({start:t%l,end:e%l,loop:n,style:s}),h=s,u=e%l)}}for(const t of e){u=a?u:t.start;let e,o=i[u%l];for(d=u+1;d<=t.end;d++){const a=i[d%l];e=Li(n.setContext(ki(s,{type:"segment",p0:o,p1:a,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:r}))),Ii(e,h)&&f(u,d-1,t.loop,h),o=a,h=e}u<d-1&&f(u,d-1,t.loop,h)}return c}(t,e,i,n):e}function Li(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,
35borderWidth:t.borderWidth,borderColor:t.borderColor}}function Ii(t,e){if(!e)return!1;const i=[],n=function(t,e){return Xt(e)?(i.includes(e)||i.push(e),i.indexOf(e)):e};return JSON.stringify(t,n)!==JSON.stringify(e,n)}var Ri=Object.freeze({__proto__:null,HALF_PI:L,INFINITY:A,PI:D,PITAU:E,QUARTER_PI:I,RAD_PER_DEG:O,TAU:P,TWO_THIRDS_PI:R,_addGrace:wi,_alignPixel:Ce,_alignStartEnd:ft,_angleBetween:Q,_angleDiff:G,_arrayUnique:lt,_attachContext:$e,_bezierCurveTo:Le,_bezierInterpolation:ui,_boundSegment:Pi,_boundSegments:Ei,_capitalize:k,_computeSegments:Ai,_createResolver:je,_decimalPlaces:U,_deprecated:function(t,e,
vendor: 4,616 bytes, line 35
35i,n){void 0!==e&&console.warn(t+': "'+i+'" is deprecated. Please use "'+n+'" instead')},_descriptors:ze,_elementsEqual:f,_factorize:B,_filterBetween:st,_getParentNode:ce,_getStartAndCountOfVisiblePoints:gt,_int16Range:Z,_isBetween:tt,_isClickEvent:T,_isDomSupported:le,_isPointInArea:Pe,_limitValue:J,_longestText:Me,_lookup:et,_lookupByKey:it,_measureText:ke,_merger:m,_mergerIf:v,_normalizeAngle:K,_parseObjectDataRadialScale:Qe,_pointInLine:ci,_readValueToProps:mi,_rlookupByKey:nt,_scaleRangesChanged:mt,_setMinAndMaxByKey:V,_splitKey:_,_steppedInterpolation:hi,_steppedLineTo:Oe,_textX:pt,_toLeftRightCenter:dt,_updateBezierControlPoints:si,addRoundedRectPath:Fe,almostEquals:j,almostWhole:W,callback:u,clearCanvas:Se,clipArea:Ee,clone:p,color:Gt,createContext:ki,debounce:ut,defined:M,distanceBetweenPoints:X,drawPoint:Te,drawPointLegend:De,each:d,easingEffects:li,finiteOrDefault:a,fontString:function(t,e,i){return e+" "+t+"px "+i},formatNumber:te,getAngleFromPoint:Y,getHoverColor:Kt,getMaximumSize:be,getRelativePosition:me,getRtlAdapter:Mi,getStyle:de,isArray:s,isFinite:r,isFunction:C,isNullOrUndef:n,isNumber:H,isObject:o,isPatternOrGradient:Xt,listenArrayEvents:rt,log10:N,merge:x,mergeIf:b,niceNum:z,noop:e,overrideTextDirection:Ci,readUsedSize:_e,renderText:Ne,requestAnimFrame:ct,resolve:_i,resolveObjectKey:w,restoreTextDirection:Si,retinaScale:ve,setsEqual:S,sign:F,splineCurve:ei,splineCurveMonotone:ii,supportsEventListenerOptions:ye,throttled:ht,toDegrees:q,toDimension:h,toFont:yi,toFontString:we,toLineHeight:pi,toPadding:vi,toPercentage:c,toRadians:$,toTRBL:xi,toTRBLCorners:bi,uid:i,unclipArea:Ae,unlistenArrayEvents:at,valueOrDefault:l});function Ni(t,e,i,n){const{controller:s,data:o,_sorted:r}=t,a=s._cachedMeta.iScale;if(a&&e===a.axis&&"r"!==e&&r&&o.length){const t=a._reversePixels?nt:it;if(!n)return t(o,e,i);if(s._sharedOptions){const n=o[0],s="function"==typeof n.getRange&&n.getRange(e);if(s){const n=t(o,e,i-s),r=t(o,e,i+s);return{lo:n.lo,hi:r.hi}}}}return{lo:0,hi:o.length-1}}function Fi(t,e,i,n,s){const o=t.getSortedVisibleDatasetMetas(),r=i[e];for(let t=0,i=o.length;t<i;++t){const{index:i,data:a}=o[t],{lo:l,hi:c}=Ni(o[t],e,r,s);for(let t=l;t<=c;++t){const e=a[t];e.skip||n(e,i,t)}}}function ji(t,e,i,n,s){const o=[];return s||t.isPointInArea(e)?(Fi(t,i,e,(function(i,r,a){(s||Pe(i,t.chartArea,0))&&i.inRange(e.x,e.y,n)&&o.push({element:i,datasetIndex:r,index:a})}),!0),o):o}function $i(t,e,i,n,s,o){return o||t.isPointInArea(e)?"r"!==i||n?function(t,e,i,n,s,o){let r=[];const a=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,n){const s=e?Math.abs(t.x-n.x):0,o=i?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}(i);let l=Number.POSITIVE_INFINITY;return Fi(t,i,e,(function(i,c,h){const u=i.inRange(e.x,e.y,s);if(n&&!u)return;const d=i.getCenterPoint(s);if(!o&&!t.isPointInArea(d)&&!u)return;const f=a(e,d);f<l?(r=[{element:i,datasetIndex:c,index:h}],l=f):f===l&&r.push({element:i,datasetIndex:c,index:h})})),r}(t,e,i,n,s,o):function(t,e,i,n){let s=[];return Fi(t,i,e,(function(t,i,o){const{startAngle:r,endAngle:a}=t.getProps(["startAngle","endAngle"],n),{angle:l}=Y(t,{x:e.x,y:e.y});Q(l,r,a)&&s.push({element:t,datasetIndex:i,index:o})})),s}(t,e,i,s):[]}function zi(t,e,i,n,s){const o=[],r="x"===i?"inXRange":"inYRange";let a=!1;return Fi(t,i,e,((t,n,l)=>{t[r](e[i],s)&&(o.push({element:t,datasetIndex:n,index:l}),a=a||t.inRange(e.x,e.y,s))})),n&&!a?[]:o}var Bi={evaluateInteractionItems:Fi,modes:{index(t,e,i,n){const s=me(e,t),o=i.axis||"x",r=i.includeInvisible||!1,a=i.intersect?ji(t,s,o,n,r):$i(t,s,o,!1,n,r),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=a[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,i,n){const s=me(e,t),o=i.axis||"xy",r=i.includeInvisible||!1;let a=i.intersect?ji(t,s,o,n,r):$i(t,s,o,!1,n,r);if(a.length>0){const e=a[0].datasetIndex,i=t.getDatasetMeta(e).data;a=[];for(let t=0;t<i.length;++t)a.push({element:i[t],datasetIndex:e,index:t})}return a},point:(t,e,i,n)=>ji(t,me(e,t),i.axis||"xy",n,i.includeInvisible||!1),nearest(t,e,i,n){const s=me(e,t),o=i.axis||"xy",r=i.includeInvisible||!1;return $i(t,s,o,i.intersect,n,r)},x:(t,e,i,n)=>zi(t,me(e,t),"x",i.intersect,n),y:(t,e,i,n)=>zi(t,me(e,t),"y",i.intersect,n)}};const Hi=["left","top","right","bottom"];function Wi(t,e){return t.filter((t=>t.pos===e))}function Vi(t,e){return t.filter((t=>-1===Hi.indexOf(t.pos)&&t.box.axis===e))}function qi(t,e){return t.sort(((t,i)=>{const n=e?i:t,s=e?t:i;return n.weight===s.weight?n.index-s.index:n.weight-s.weight}))}
vendor: 4,253 bytes, line 35
35function Ui(t,e,i,n){return Math.max(t[i],e[i])+Math.max(t[n],e[n])}function Yi(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Xi(t,e,i,n){const{pos:s,box:r}=i,a=t.maxPadding;if(!o(s)){i.size&&(t[s]-=i.size);const e=n[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?r.height:r.width),i.size=e.size/e.count,t[s]+=i.size}r.getPadding&&Yi(a,r.getPadding());const l=Math.max(0,e.outerWidth-Ui(a,t,"left","right")),c=Math.max(0,e.outerHeight-Ui(a,t,"top","bottom")),h=l!==t.w,u=c!==t.h;return t.w=l,t.h=c,i.horizontal?{same:h,other:u}:{same:u,other:h}}function Gi(t,e){const i=e.maxPadding;return function(t){const n={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{n[t]=Math.max(e[t],i[t])})),n}(t?["left","right"]:["top","bottom"])}function Ki(t,e,i,n){const s=[];let o,r,a,l,c,h;for(o=0,r=t.length,c=0;o<r;++o){a=t[o],l=a.box,l.update(a.width||e.w,a.height||e.h,Gi(a.horizontal,e));const{same:r,other:u}=Xi(e,i,a,n);c|=r&&s.length,h=h||u,l.fullSize||s.push(a)}return c&&Ki(s,e,i,n)||h}function Qi(t,e,i,n,s){t.top=i,t.left=e,t.right=e+n,t.bottom=i+s,t.width=n,t.height=s}function Ji(t,e,i,n){const s=i.padding;let{x:o,y:r}=e;for(const a of t){const t=a.box,l=n[a.stack]||{count:1,placed:0,weight:1},c=a.stackWeight/l.weight||1;if(a.horizontal){const n=e.w*c,o=l.size||t.height;M(l.start)&&(r=l.start),t.fullSize?Qi(t,s.left,r,i.outerWidth-s.right-s.left,o):Qi(t,e.left+l.placed,r,n,o),l.start=r,l.placed+=n,r=t.bottom}else{const n=e.h*c,r=l.size||t.width;M(l.start)&&(o=l.start),t.fullSize?Qi(t,o,s.top,r,i.outerHeight-s.bottom-s.top):Qi(t,o,e.top+l.placed,r,n),l.start=o,l.placed+=n,o=t.right}}e.x=o,e.y=r}var Zi={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,n){if(!t)return;const s=vi(t.options.layout.padding),o=Math.max(e-s.width,0),r=Math.max(i-s.height,0),a=function(t){const e=function(t){const e=[];let i,n,s,o,r,a;for(i=0,n=(t||[]).length;i<n;++i)s=t[i],({position:o,options:{stack:r,stackWeight:a=1}}=s),e.push({index:i,box:s,pos:o,horizontal:s.isHorizontal(),weight:s.weight,stack:r&&o+r,stackWeight:a});return e}(t),i=qi(e.filter((t=>t.box.fullSize)),!0),n=qi(Wi(e,"left"),!0),s=qi(Wi(e,"right")),o=qi(Wi(e,"top"),!0),r=qi(Wi(e,"bottom")),a=Vi(e,"x"),l=Vi(e,"y");return{fullSize:i,leftAndTop:n.concat(o),rightAndBottom:s.concat(l).concat(r).concat(a),chartArea:Wi(e,"chartArea"),vertical:n.concat(s).concat(l),horizontal:o.concat(r).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;d(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const h=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:s,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),f=Object.assign({},s);Yi(f,vi(n));const p=Object.assign({maxPadding:f,w:o,h:r,x:s.left,y:s.top},s),g=function(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:n,stackWeight:s}=i;if(!t||!Hi.includes(n))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return e}(t),{vBoxMaxWidth:n,hBoxMaxHeight:s}=e;let o,r,a;for(o=0,r=t.length;o<r;++o){a=t[o];const{fullSize:r}=a.box,l=i[a.stack],c=l&&a.stackWeight/l.weight;a.horizontal?(a.width=c?c*n:r&&e.availableWidth,a.height=s):(a.width=n,a.height=c?c*s:r&&e.availableHeight)}return i}(l.concat(c),u);Ki(a.fullSize,p,u,g),Ki(l,p,u,g),Ki(c,p,u,g)&&Ki(l,p,u,g),function(t){const e=t.maxPadding;function i(i){const n=Math.max(e[i]-t[i],0);return t[i]+=n,n}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(p),Ji(a.leftAndTop,p,u,g),p.x+=p.w,p.y+=p.h,Ji(a.rightAndBottom,p,u,g),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},d(a.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class tn{acquireContext(t,e){}releaseContext(t){return!1}
vendor: 5,230 bytes, line 35
35addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,n){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):i)}}isAttached(t){return!0}updateConfig(t){}}class en extends tn{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const nn="$chartjs",sn={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},on=t=>null===t||""===t,rn=!!ye&&{passive:!0};function an(t,e,i){t.canvas.removeEventListener(e,i,rn)}function ln(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function cn(t,e,i){const n=t.canvas,s=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||ln(i.addedNodes,n),e=e&&!ln(i.removedNodes,n);e&&i()}));return s.observe(document,{childList:!0,subtree:!0}),s}function hn(t,e,i){const n=t.canvas,s=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||ln(i.removedNodes,n),e=e&&!ln(i.addedNodes,n);e&&i()}));return s.observe(document,{childList:!0,subtree:!0}),s}const un=new Map;let dn=0;function fn(){const t=window.devicePixelRatio;t!==dn&&(dn=t,un.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function pn(t,e,i){const n=t.canvas,s=n&&ce(n);if(!s)return;const o=ht(((t,e)=>{const n=s.clientWidth;i(t,e),n<s.clientWidth&&i()}),window),r=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,n=e.contentRect.height;0===i&&0===n||o(i,n)}));return r.observe(s),function(t,e){un.size||window.addEventListener("resize",fn),un.set(t,e)}(t,o),r}function gn(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){un.delete(t),un.size||window.removeEventListener("resize",fn)}(t)}function mn(t,e,i){const n=t.canvas,s=ht((e=>{null!==t.ctx&&i(function(t,e){const i=sn[t.type]||t.type,{x:n,y:s}=me(t,e);return{type:i,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==s?s:null}}(e,t))}),t);return function(t,e,i){t.addEventListener(e,i,rn)}(n,e,s),s}class xn extends tn{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,n=t.getAttribute("height"),s=t.getAttribute("width");if(t[nn]={initial:{height:n,width:s,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",on(s)){const e=_e(t,"width");void 0!==e&&(t.width=e)}if(on(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=_e(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[nn])return!1;const i=e[nn].initial;["height","width"].forEach((t=>{const s=i[t];n(s)?e.removeAttribute(t):e.setAttribute(t,s)}));const s=i.style||{};return Object.keys(s).forEach((t=>{e.style[t]=s[t]})),e.width=e.width,delete e[nn],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),s={attach:cn,detach:hn,resize:pn}[e]||mn;n[e]=s(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),n=i[e];n&&(({attach:gn,detach:gn,resize:gn}[e]||an)(t,e,n),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,n){return be(t,e,i,n)}isAttached(t){const e=ce(t);return!(!e||!e.isConnected)}}function bn(t){return!le()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?en:xn}var vn=Object.freeze({__proto__:null,BasePlatform:tn,BasicPlatform:en,DomPlatform:xn,_detectPlatform:bn});const yn="transparent",_n={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const n=Gt(t||yn),s=n.valid&&Gt(e||yn);return s&&s.valid?s.mix(n,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class wn{constructor(t,e,i,n){const s=e[i];n=_i([t.to,n,s,t.from]);const o=_i([t.from,s,n]);this._active=!0,this._fn=t.fn||_n[t.type||typeof o],this._easing=li[t.easing]||li.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=o,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const n=this._target[this._prop],s=i-this._start,o=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=_i([t.to,e,n,t.from]),this._from=_i([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,n=this._prop,s=this._from,o=this._loop,r=this._to;let a;if(this._active=s!==r&&(o||e<i),!this._active)return this._target[n]=r,void this._notify(!0);e<0?this._target[n]=s:(a=e/i%2,a=o&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[n]=this._fn(s,r,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}class kn{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!o(t))return;const e=Object.keys(ae.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach((n=>{const r=t[n];if(!o(r))return;const a={};for(const t of e)a[t]=r[t];
vendor: 8,993 bytes, line 35
35(s(r.properties)&&r.properties||[n]).forEach((t=>{t!==n&&i.has(t)||i.set(t,a)}))}))}_animateOptions(t,e){const i=e.options,n=function(t,e){if(!e)return;let i=t.options;if(i)return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i;t.options=e}(t,i);if(!n)return[];const s=this._createAnimations(n,i);return i.$shared&&function(t,e){const i=[],n=Object.keys(e);for(let e=0;e<n.length;e++){const s=t[n[e]];s&&s.active()&&i.push(s.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),s}_createAnimations(t,e){const i=this._properties,n=[],s=t.$animations||(t.$animations={}),o=Object.keys(e),r=Date.now();let a;for(a=o.length-1;a>=0;--a){const l=o[a];if("$"===l.charAt(0))continue;if("options"===l){n.push(...this._animateOptions(t,e));continue}const c=e[l];let h=s[l];const u=i.get(l);if(h){if(u&&h.active()){h.update(u,c,r);continue}h.cancel()}u&&u.duration?(s[l]=h=new wn(u,t,l,c),n.push(h)):t[l]=c}return n}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(xt.add(this._chart,i),!0):void 0}}function Mn(t,e){const i=t&&t.options||{},n=i.reverse,s=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:n?o:s,end:n?s:o}}function Cn(t,e){const i=[],n=t._getSortedDatasetMetas(e);let s,o;for(s=0,o=n.length;s<o;++s)i.push(n[s].index);return i}function Sn(t,e,i,n={}){const s=t.keys,o="single"===n.mode;let a,l,c,h;if(null!==e){for(a=0,l=s.length;a<l;++a){if(c=+s[a],c===i){if(n.all)continue;break}h=t.values[c],r(h)&&(o||0===e||F(e)===F(h))&&(e+=h)}return e}}function Tn(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function Dn(t,e,i){const n=t[e]||(t[e]={});return n[i]||(n[i]={})}function Pn(t,e,i,n){for(const s of e.getMatchingVisibleMetas(n).reverse()){const e=t[s.index];if(i&&e>0||!i&&e<0)return s.index}return null}function En(t,e){const{chart:i,_cachedMeta:n}=t,s=i._stacks||(i._stacks={}),{iScale:o,vScale:r,index:a}=n,l=o.axis,c=r.axis,h=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,r,n),u=e.length;let d;for(let t=0;t<u;++t){const i=e[t],{[l]:o,[c]:u}=i;d=(i._stacks||(i._stacks={}))[c]=Dn(s,h,o),d[a]=u,d._top=Pn(d,r,!0,n.type),d._bottom=Pn(d,r,!1,n.type),(d._visualValues||(d._visualValues={}))[a]=u}}function An(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function On(t,e){const i=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[n]||void 0===e[n][i])return;delete e[n][i],void 0!==e[n]._visualValues&&void 0!==e[n]._visualValues[i]&&delete e[n]._visualValues[i]}}}const Ln=t=>"reset"===t||"none"===t,In=(t,e)=>e?t:Object.assign({},t);class Rn{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Tn(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&On(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),n=(t,e,i,n)=>"x"===t?e:"r"===t?n:i,s=e.xAxisID=l(i.xAxisID,An(t,"x")),o=e.yAxisID=l(i.yAxisID,An(t,"y")),r=e.rAxisID=l(i.rAxisID,An(t,"r")),a=e.indexAxis,c=e.iAxisID=n(a,s,o,r),h=e.vAxisID=n(a,o,s,r);e.xScale=this.getScaleForId(s),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(r),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&at(this._data,this),t._stacked&&On(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(o(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let n,s,o;for(n=0,s=e.length;n<s;++n)o=e[n],i[n]={x:o,y:t[o]};return i}(e);else if(i!==e){if(i){at(i,this);const t=this._cachedMeta;On(t),t._parsed=[]}e&&Object.isExtensible(e)&&rt(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let n=!1;this._dataCheck();const s=e._stacked;e._stacked=Tn(e.vScale,e),e.stack!==i.stack&&(n=!0,On(e),e.stack=i.stack),this._resyncElements(t),(n||s!==e._stacked)&&En(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:n}=this,{iScale:r,_stacked:a}=i,l=r.axis;let c,h,u,d=0===t&&e===n.length||i._sorted,f=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=n,i._sorted=!0,u=n;else{u=s(n[t])?this.parseArrayData(i,n,t,e):o(n[t])?this.parseObjectData(i,n,t,e):this.parsePrimitiveData(i,n,t,e);const r=()=>null===h[l]||f&&h[l]<f[l];for(c=0;c<e;++c)i._parsed[c+t]=h=u[c],d&&(r()&&(d=!1),f=h);i._sorted=d}a&&En(this,u)}parsePrimitiveData(t,e,i,n){const{iScale:s,vScale:o}=t,r=s.axis,a=o.axis,l=s.getLabels(),c=s===o,h=new Array(n);let u,d,f;for(u=0,d=n;u<d;++u)f=u+i,h[u]={[r]:c||s.parse(l[f],f),[a]:o.parse(e[f],f)};return h}parseArrayData(t,e,i,n){const{xScale:s,yScale:o}=t,r=new Array(n);let a,l,c,h;for(a=0,l=n;a<l;++a)c=a+i,h=e[c],r[a]={x:s.parse(h[0],c),y:o.parse(h[1],c)};return r}parseObjectData(t,e,i,n){const{xScale:s,yScale:o}=t,{xAxisKey:r="x",yAxisKey:a="y"}=this._parsing,l=new Array(n);let c,h,u,d;for(c=0,h=n;c<h;++c)u=c+i,d=e[u],l[c]={x:s.parse(w(d,r),u),y:o.parse(w(d,a),u)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const n=this.chart,s=this._cachedMeta,o=e[t.axis];return Sn({keys:Cn(n,!0),values:e._stacks[t.axis]._visualValues},o,s.index,{mode:i})}updateRangeFromParsed(t,e,i,n){const s=i[e.axis];let o=null===s?NaN:s;const r=n&&i._stacks[e.axis];n&&r&&(n.values=r,o=Sn(n,s,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const i=this._cachedMeta,n=i._parsed,s=i._sorted&&t===i.iScale,o=n.length,a=this._getOtherScale(t),l=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:Cn(i,!0),values:null})(e,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:u}=function(t){const{min:e,max:i,minDefined:n,maxDefined:s}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:s?i:Number.POSITIVE_INFINITY}}(a);let d,f;function p(){f=n[d];const e=f[a.axis];return!r(f[t.axis])||h>e||u<e}for(d=0;d<o&&(p()||(this.updateRangeFromParsed(c,t,f,l),!s));++d);if(s)for(d=o-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(c,t,f,l);break}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let n,s,o;for(n=0,s=e.length;n<s;++n)o=e[n][t.axis],r(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,n=e.vScale,s=this.getParsed(t);return{label:i?""+i.getLabelForValue(s[i.axis]):"",value:n?""+n.getLabelForValue(s[n.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,n,s;return o(t)?(e=t.top,i=t.right,n=t.bottom,s=t.left):e=i=n=s=t,{top:e,right:i,bottom:n,left:s,disabled:!1===t}}(l(this.options.clip,function(t,e,i){if(!1===i)return!1;const n=Mn(t,i),s=Mn(e,i);return{top:s.end,right:n.end,bottom:s.start,left:n.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,n=i.data||[],s=e.chartArea,o=[],r=this._drawStart||0,a=this._drawCount||n.length-r,l=this.options.drawActiveElementsOnTop;let c;for(i.dataset&&i.dataset.draw(t,s,r,a),c=r;c<r+a;++c){const e=n[c];e.hidden||(e.active&&l?o.push(e):e.draw(t,s))}for(c=0;c<o.length;++c)o[c].draw(t,s)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const n=this.getDataset();let s;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];
vendor: 18,777 bytes, lines 35-36
35s=e.$context||(e.$context=function(t,e,i){return ki(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),s.parsed=this.getParsed(t),s.raw=n.data[t],s.index=s.dataIndex=t}else s=this.$context||(this.$context=function(t,e){return ki(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),s.dataset=n,s.index=s.datasetIndex=this.index;return s.active=!!e,s.mode=i,s}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const n="active"===e,s=this._cachedDataOpts,o=t+"-"+e,r=s[o],a=this.enableOptionSharing&&M(i);if(r)return In(r,a);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),h=n?[`${t}Hover`,"hover",t,""]:[t,""],u=l.getOptionScopes(this.getDataset(),c),d=Object.keys(ae.elements[t]),f=l.resolveNamedOptions(u,d,(()=>this.getContext(i,n,e)),h);return f.$shared&&(f.$shared=a,s[o]=Object.freeze(In(f,a))),f}_resolveAnimations(t,e,i){const n=this.chart,s=this._cachedDataOpts,o=`animation-${e}`,r=s[o];if(r)return r;let a;if(!1!==n.options.animation){const n=this.chart.config,s=n.datasetAnimationScopeKeys(this._type,e),o=n.getOptionScopes(this.getDataset(),s);a=n.createResolver(o,this.getContext(t,i,e))}const l=new kn(n,a&&a.animations);return a&&a._cacheable&&(s[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ln(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),n=this._sharedOptions,s=this.getSharedOptions(i),o=this.includeOptions(e,s)||s!==n;return this.updateSharedOptions(s,e,i),{sharedOptions:s,includeOptions:o}}updateElement(t,e,i,n){Ln(n)?Object.assign(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e,i){t&&!Ln(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,n){t.active=n;const s=this.getStyle(e,n);this._resolveAnimations(e,i,n).update(t,{options:!n&&this.getSharedOptions(s)||s})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const n=i.length,s=e.length,o=Math.min(s,n);o&&this.parse(0,o),s>n?this._insertElements(n,s-n,t):s<n&&this._removeElements(s,n-s)}_insertElements(t,e,i=!0){const n=this._cachedMeta,s=n.data,o=t+e;let r;const a=t=>{for(t.length+=e,r=t.length-1;r>=o;r--)t[r]=t[r-e]};for(a(s),r=t;r<o;++r)s[r]=new this.dataElementType;this._parsing&&a(n._parsed),this.parse(t,e),i&&this.updateElements(s,t,e,"reset")}updateElements(t,e,i,n){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const n=i._parsed.splice(t,e);i._stacked&&On(i,n)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,n]=t;this[e](i,n)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}class Nn{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return H(this.x)&&H(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const n={};return t.forEach((t=>{n[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),n}}function Fn(t,e){const i=t.options.ticks,s=function(t){const e=t.options.offset,i=t._tickSize(),n=t._length/i+(e?0:1),s=t._maxLength/i;return Math.floor(Math.min(n,s))}(t),o=Math.min(i.maxTicksLimit||s,s),r=i.major.enabled?function(t){const e=[];let i,n;for(i=0,n=t.length;i<n;i++)t[i].major&&e.push(i);return e}(e):[],a=r.length,l=r[0],c=r[a-1],h=[];if(a>o)return function(t,e,i,n){let s,o=0,r=i[0];for(n=Math.ceil(n),s=0;s<t.length;s++)s===r&&(e.push(t[s]),o++,r=i[o*n])}(e,h,r,a/o),h;const u=function(t,e,i){const n=function(t){const e=t.length;let i,n;if(e<2)return!1;for(n=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==n)return!1;return n}(t),s=e.length/i;if(!n)return Math.max(s,1);const o=B(n);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>s)return e}return Math.max(s,1)}(r,e,o);if(a>0){let t,i;const s=a>1?Math.round((c-l)/(a-1)):null;for(jn(e,h,u,n(s)?0:l-s,l),t=0,i=a-1;t<i;t++)jn(e,h,u,r[t],r[t+1]);return jn(e,h,u,c,n(s)?e.length:c+s),h}return jn(e,h,u),h}function jn(t,e,i,n,s){const o=l(n,0),r=Math.min(l(s,t.length),t.length);let a,c,h,u=0;for(i=Math.ceil(i),s&&(a=s-n,i=a/Math.floor(a/i)),h=o;h<0;)u++,h=Math.round(o+u*i);for(c=Math.max(o,0);c<r;c++)c===h&&(e.push(t[c]),u++,h=Math.round(o+u*i))}const $n=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i,zn=(t,e)=>Math.min(e||t,t);function Bn(t,e){const i=[],n=t.length/e,s=t.length;let o=0;for(;o<s;o+=n)i.push(t[Math.floor(o)]);return i}function Hn(t,e,i){const n=t.ticks.length,s=Math.min(e,n-1),o=t._startPixel,r=t._endPixel,a=1e-6;let l,c=t.getPixelForTick(s);if(!(i&&(l=1===n?Math.max(c-o,r-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(s-1))/2,c+=s<e?l:-l,c<o-a||c>r+a)))return c}function Wn(t){return t.drawTicks?t.tickLength:0}function Vn(t,e){if(!t.display)return 0;const i=yi(t.font,e),n=vi(t.padding);return(s(t.text)?t.text.length:1)*i.lineHeight+n.height}function qn(t,e,i){let n=dt(t);return(i&&"right"!==e||!i&&"right"===e)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class Un extends Nn{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:n}=this;return t=a(t,Number.POSITIVE_INFINITY),e=a(e,Number.NEGATIVE_INFINITY),i=a(i,Number.POSITIVE_INFINITY),n=a(n,Number.NEGATIVE_INFINITY),{min:a(t,i),max:a(e,n),minDefined:r(t),maxDefined:r(e)}}getMinMax(t){let e,{min:i,max:n,minDefined:s,maxDefined:o}=this.getUserBounds();if(s&&o)return{min:i,max:n};const r=this.getMatchingVisibleMetas();for(let a=0,l=r.length;a<l;++a)e=r[a].controller.getMinMax(this,t),s||(i=Math.min(i,e.min)),o||(n=Math.max(n,e.max));return i=o&&i>n?n:i,n=s&&i>n?i:n,{min:a(i,a(n,i)),max:a(n,a(i,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},
36this._dataLimitsCached=!1}beforeUpdate(){u(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:n,grace:s,ticks:o}=this.options,r=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=wi(this,s,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=r<this.ticks.length;this._convertTicksToLabels(a?Bn(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=Fn(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){u(this.options.afterUpdate,[this])}beforeSetDimensions(){u(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){u(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),u(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){u(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,n,s;for(i=0,n=t.length;i<n;i++)s=t[i],s.label=u(e.callback,[s.value,i,t],this)}afterTickToLabelConversion(){u(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){u(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=zn(this.ticks.length,t.ticks.maxTicksLimit),n=e.minRotation||0,s=e.maxRotation;let o,r,a,l=n;if(!this._isVisible()||!e.display||n>=s||i<=1||!this.isHorizontal())return void(this.labelRotation=n);const c=this._getLabelSizes(),h=c.widest.width,u=c.highest.height,d=J(this.chart.width-h,0,this.maxWidth);o=t.offset?this.maxWidth/i:d/(i-1),h+6>o&&(o=d/(i-(t.offset?.5:1)),r=this.maxHeight-Wn(t.grid)-e.padding-Vn(t.title,this.chart.options.font),a=Math.sqrt(h*h+u*u),l=q(Math.min(Math.asin(J((c.highest.height+6)/o,-1,1)),Math.asin(J(r/a,-1,1))-Math.asin(J(u/a,-1,1)))),l=Math.max(n,Math.min(s,l))),this.labelRotation=l}afterCalculateLabelRotation(){u(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){u(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:n,grid:s}}=this,o=this._isVisible(),r=this.isHorizontal();if(o){const o=Vn(n,e.options.font);if(r?(t.width=this.maxWidth,t.height=Wn(s)+o):(t.height=this.maxHeight,t.width=Wn(s)+o),i.display&&this.ticks.length){const{first:e,last:n,widest:s,highest:o}=this._getLabelSizes(),a=2*i.padding,l=$(this.labelRotation),c=Math.cos(l),h=Math.sin(l);if(r){const e=i.mirror?0:h*s.width+c*o.height;t.height=Math.min(this.maxHeight,t.height+e+a)}else{const e=i.mirror?0:c*s.width+h*o.height;t.width=Math.min(this.maxWidth,t.width+e+a)}this._calculatePadding(e,n,h,c)}}this._handleMargins(),r?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,n){const{ticks:{align:s,padding:o},position:r}=this.options,a=0!==this.labelRotation,l="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,u=0;a?l?(h=n*t.width,u=i*e.height):(h=i*t.height,u=n*e.width):"start"===s?u=e.width:"end"===s?h=t.width:"inner"!==s&&(h=t.width/2,u=e.width/2),this.paddingLeft=Math.max((h-r+o)*this.width/(this.width-r),0),this.paddingRight=Math.max((u-c+o)*this.width/(this.width-c),0)}else{let i=e.height/2,n=t.height/2;"start"===s?(i=0,n=t.height):"end"===s&&(i=e.height,n=0),this.paddingTop=i+o,this.paddingBottom=n+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){u(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)n(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=Bn(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,i){const{ctx:o,_longestTextCache:r}=this,a=[],l=[],c=Math.floor(e/zn(e,i));let h,u,f,p,g,m,x,b,v,y,_,w=0,k=0;for(h=0;h<e;h+=c){if(p=t[h].label,g=this._resolveTickFontOptions(h),o.font=m=g.string,x=r[m]=r[m]||{data:{},gc:[]},b=g.lineHeight,v=y=0,n(p)||s(p)){if(s(p))for(u=0,f=p.length;u<f;++u)_=p[u],n(_)||s(_)||(v=ke(o,x.data,x.gc,v,_),y+=b)}else v=ke(o,x.data,x.gc,v,p),y=b;a.push(v),l.push(y),w=Math.max(v,w),k=Math.max(y,k)}!function(t,e){d(t,(t=>{const i=t.gc,n=i.length/2;let s;if(n>e){for(s=0;s<n;++s)delete t.data[i[s]];i.splice(0,n)}}))}(r,e);const M=a.indexOf(w),C=l.indexOf(k),S=t=>({width:a[t]||0,height:l[t]||0});return{first:S(0),last:S(e-1),widest:S(M),highest:S(C),widths:a,heights:l}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return Z(this._alignToPixels?Ce(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const i=e[t];return i.$context||(i.$context=function(t,e,i){return ki(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=ki(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=$(this.labelRotation),i=Math.abs(Math.cos(e)),n=Math.abs(Math.sin(e)),s=this._getLabelSizes(),o=t.autoSkipPadding||0,r=s?s.widest.width+o:0,a=s?s.highest.height+o:0;return this.isHorizontal()?a*i>r*n?r/i:a/n:a*n<r*i?a/i:r/n}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,n=this.options,{grid:s,position:r,border:a}=n,c=s.offset,h=this.isHorizontal(),u=this.ticks.length+(c?1:0),d=Wn(s),f=[],p=a.setContext(this.getContext()),g=p.display?p.width:0,m=g/2,x=function(t){return Ce(i,t,g)};let b,v,y,_,w,k,M,C,S,T,D,P;if("top"===r)b=x(this.bottom),k=this.bottom-d,C=b-m,T=x(t.top)+m,P=t.bottom;else if("bottom"===r)b=x(this.top),T=t.top,P=x(t.bottom)-m,k=b+m,C=this.top+d;else if("left"===r)b=x(this.right),w=this.right-d,M=b-m,S=x(t.left)+m,D=t.right;else if("right"===r)b=x(this.left),S=t.left,D=x(t.right)-m,w=b+m,M=this.left+d;else if("x"===e){if("center"===r)b=x((t.top+t.bottom)/2+.5);else if(o(r)){const t=Object.keys(r)[0],e=r[t];b=x(this.chart.scales[t].getPixelForValue(e))}T=t.top,P=t.bottom,k=b+m,C=k+d}else if("y"===e){if("center"===r)b=x((t.left+t.right)/2);else if(o(r)){const t=Object.keys(r)[0],e=r[t];b=x(this.chart.scales[t].getPixelForValue(e))}w=b-m,M=w-d,S=t.left,D=t.right}const E=l(n.ticks.maxTicksLimit,u),A=Math.max(1,Math.ceil(u/E));for(v=0;v<u;v+=A){const t=this.getContext(v),e=s.setContext(t),n=a.setContext(t),o=e.lineWidth,r=e.color,l=n.dash||[],u=n.dashOffset,d=e.tickWidth,p=e.tickColor,g=e.tickBorderDash||[],m=e.tickBorderDashOffset;y=Hn(this,v,c),void 0!==y&&(_=Ce(i,y,o),h?w=M=S=D=_:k=C=T=P=_,f.push({tx1:w,ty1:k,tx2:M,ty2:C,x1:S,y1:T,x2:D,y2:P,width:o,color:r,borderDash:l,borderDashOffset:u,tickWidth:d,tickColor:p,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=u,this._borderValue=b,f}_computeLabelItems(t){const e=this.axis,i=this.options,{position:n,ticks:r}=i,a=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:h,padding:u,mirror:d}=r,f=Wn(i.grid),p=f+u,g=d?-u:p,m=-$(this.labelRotation),x=[];let b,v,y,_,w,k,M,C,S,T,D,P,E="middle";if("top"===n)k=this.bottom-g,M=this._getXAxisLabelAlignment();else if("bottom"===n)k=this.top+g,M=this._getXAxisLabelAlignment();else if("left"===n){const t=this._getYAxisLabelAlignment(f);M=t.textAlign,w=t.x}else if("right"===n){const t=this._getYAxisLabelAlignment(f);M=t.textAlign,w=t.x}else if("x"===e){if("center"===n)k=(t.top+t.bottom)/2+p;else if(o(n)){const t=Object.keys(n)[0],e=n[t];k=this.chart.scales[t].getPixelForValue(e)+p}M=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===n)w=(t.left+t.right)/2-p;else if(o(n)){const t=Object.keys(n)[0],e=n[t];w=this.chart.scales[t].getPixelForValue(e)}M=this._getYAxisLabelAlignment(f).textAlign}"y"===e&&("start"===c?E="top":"end"===c&&(E="bottom"));const A=this._getLabelSizes();for(b=0,v=l.length;b<v;++b){y=l[b],_=y.label;const t=r.setContext(this.getContext(b));C=this.getPixelForTick(b)+r.labelOffset,S=this._resolveTickFontOptions(b),T=S.lineHeight,D=s(_)?_.length:1;const e=D/2,i=t.color,o=t.textStrokeColor,c=t.textStrokeWidth;let u,f=M;
vendor: 1,809 bytes, line 36
36if(a?(w=C,"inner"===M&&(f=b===v-1?this.options.reverse?"left":"right":0===b?this.options.reverse?"right":"left":"center"),P="top"===n?"near"===h||0!==m?-D*T+T/2:"center"===h?-A.highest.height/2-e*T+T:-A.highest.height+T/2:"near"===h||0!==m?T/2:"center"===h?A.highest.height/2-e*T:A.highest.height-D*T,d&&(P*=-1),0===m||t.showLabelBackdrop||(w+=T/2*Math.sin(m))):(k=C,P=(1-D)*T/2),t.showLabelBackdrop){const e=vi(t.backdropPadding),i=A.heights[b],n=A.widths[b];let s=P-e.top,o=0-e.left;switch(E){case"middle":s-=i/2;break;case"bottom":s-=i}switch(M){case"center":o-=n/2;break;case"right":o-=n}u={left:o,top:s,width:n+e.width,height:i+e.height,color:t.backdropColor}}x.push({label:_,font:S,textOffset:P,options:{rotation:m,color:i,strokeColor:o,strokeWidth:c,textAlign:f,textBaseline:E,translation:[w,k],backdrop:u}})}return x}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-$(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:n,padding:s}}=this.options,o=t+s,r=this._getLabelSizes().widest.width;let a,l;return"left"===e?n?(l=this.right+s,"near"===i?a="left":"center"===i?(a="center",l+=r/2):(a="right",l+=r)):(l=this.right-o,"near"===i?a="right":"center"===i?(a="center",l-=r/2):(a="left",l=this.left)):"right"===e?n?(l=this.left+s,"near"===i?a="right":"center"===i?(a="center",l-=r/2):(a="left",l-=r)):(l=this.left+o,"near"===i?a="left":"center"===i?(a="center",l+=r/2):(a="right",l=this.right)):a="right",{textAlign:a,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}
vendor: 5,337 bytes, line 36
36:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:n,width:s,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,n,s,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex((e=>e.value===t));return i>=0?e.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const e=this.options.grid,i=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const r=(t,e,n)=>{n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(s=0,o=n.length;s<o;++s){const t=n[s];e.drawOnChartArea&&r({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&r({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:i,grid:n}}=this,s=i.setContext(this.getContext()),o=i.display?s.width:0;if(!o)return;const r=n.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let l,c,h,u;this.isHorizontal()?(l=Ce(t,this.left,o)-o/2,c=Ce(t,this.right,r)+r/2,h=u=a):(h=Ce(t,this.top,o)-o/2,u=Ce(t,this.bottom,r)+r/2,l=c=a),e.save(),e.lineWidth=s.width,e.strokeStyle=s.color,e.beginPath(),e.moveTo(l,h),e.lineTo(c,u),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&Ee(e,i);const n=this.getLabelItems(t);for(const t of n){const i=t.options,n=t.font;Ne(e,t.label,0,t.textOffset,n,i)}i&&Ae(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:n}}=this;if(!i.display)return;const r=yi(i.font),a=vi(i.padding),l=i.align;let c=r.lineHeight/2;"bottom"===e||"center"===e||o(e)?(c+=a.bottom,s(i.text)&&(c+=r.lineHeight*(i.text.length-1))):c+=a.top;const{titleX:h,titleY:u,maxWidth:d,rotation:f}=function(t,e,i,n){const{top:s,left:r,bottom:a,right:l,chart:c}=t,{chartArea:h,scales:u}=c;let d,f,p,g=0;const m=a-s,x=l-r;if(t.isHorizontal()){if(f=ft(n,r,l),o(i)){const t=Object.keys(i)[0],n=i[t];p=u[t].getPixelForValue(n)+m-e}else p="center"===i?(h.bottom+h.top)/2+m-e:$n(t,i,e);d=l-r}else{if(o(i)){const t=Object.keys(i)[0],n=i[t];f=u[t].getPixelForValue(n)-x+e}else f="center"===i?(h.left+h.right)/2-x+e:$n(t,i,e);p=ft(n,a,s),g="left"===i?-L:L}return{titleX:f,titleY:p,maxWidth:d,rotation:g}}(this,c,e,l);Ne(t,i.text,0,0,r,{color:i.color,maxWidth:d,rotation:f,textAlign:qn(l,e,n),textBaseline:"middle",translation:[h,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,i=l(t.grid&&t.grid.z,-1),n=l(t.border&&t.border.z,0);return this._isVisible()&&this.draw===Un.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",n=[];let s,o;for(s=0,o=e.length;s<o;++s){const o=e[s];o[i]!==this.id||t&&o.type!==t||n.push(o)}return n}_resolveTickFontOptions(t){return yi(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Yn{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let i;(function(t){return"id"in t&&"defaults"in t})(e)&&(i=this.register(e));const n=this.items,s=t.id,o=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+t);return s in n||(n[s]=t,function(t,e,i){const n=x(Object.create(null),[i?ae.get(i):{},ae.get(e),t.defaults]);ae.set(e,n),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((i=>{const n=i.split("."),s=n.pop(),o=[t].concat(n).join("."),r=e[i].split("."),a=r.pop(),l=r.join(".");ae.route(o,s,l,a)}))}(e,t.defaultRoutes),t.descriptors&&ae.describe(e,t.descriptors)}(t,o,i),this.override&&ae.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,n=this.scope;i in e&&delete e[i],n&&i in ae[n]&&(delete ae[n][i],this.override&&delete ne[i])}}var Xn=new class{constructor(){this.controllers=new Yn(Rn,"datasets",!0),this.elements=new Yn(Nn,"elements"),this.plugins=new Yn(Object,"plugins"),this.scales=new Yn(Un,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}
vendor: 4,250 bytes, line 36
36removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach((e=>{const n=i||this._getRegistryForType(e);i||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):d(e,(e=>{const n=i||this._getRegistryForType(e);this._exec(t,n,e)}))}))}_exec(t,e,i){const n=k(t);u(i["before"+n],[],i),e[t](i),u(i["after"+n],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const n=e.get(t);if(void 0===n)throw new Error('"'+t+'" is not a registered '+i+".");return n}};class Gn{constructor(){this._init=[]}notify(t,e,i,n){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const s=n?this._descriptors(t).filter(n):this._descriptors(t),o=this._notify(s,t,e,i);return"afterDestroy"===e&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,i,n){n=n||{};for(const s of t){const t=s.plugin;if(!1===u(t[i],[e,n,s.options],t)&&n.cancelable)return!1}return!0}invalidate(){n(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,n=l(i.options&&i.options.plugins,{}),s=function(t){const e={},i=[],n=Object.keys(Xn.plugins.items);for(let t=0;t<n.length;t++)i.push(Xn.getPlugin(n[t]));const s=t.plugins||[];for(let t=0;t<s.length;t++){const n=s[t];-1===i.indexOf(n)&&(i.push(n),e[n.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==n||e?function(t,{plugins:e,localIds:i},n,s){const o=[],r=t.getContext();for(const a of e){const e=a.id,l=Kn(n[e],s);null!==l&&o.push({plugin:a,options:Qn(t.config,{plugin:a,local:i[e]},l,r)})}return o}(t,s,n,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,n=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(n(e,i),t,"stop"),this._notify(n(i,e),t,"start")}}function Kn(t,e){return e||!1!==t?!0===t?{}:t:null}function Qn(t,{plugin:e,local:i},n,s){const o=t.pluginScopeKeys(e),r=t.getOptionScopes(n,o);return i&&e.defaults&&r.push(e.defaults),t.createResolver(r,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Jn(t,e){const i=ae.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function Zn(t){if("x"===t||"y"===t||"r"===t)return t}function ts(t,...e){if(Zn(t))return t;for(const n of e){const e=n.axis||("top"===(i=n.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.length>1&&Zn(t[0].toLowerCase());if(e)return e}var i;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function es(t,e,i){if(i[e+"AxisID"]===t)return{axis:e}}function is(t){const e=t.options||(t.options={});e.plugins=l(e.plugins,{}),e.scales=function(t,e){const i=ne[t.type]||{scales:{}},n=e.scales||{},s=Jn(t.type,e),r=Object.create(null);return Object.keys(n).forEach((e=>{const a=n[e];if(!o(a))return console.error(`Invalid scale configuration for scale: ${e}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const l=ts(e,a,function(t,e){if(e.data&&e.data.datasets){const i=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(i.length)return es(t,"x",i[0])||es(t,"y",i[0])}return{}}(e,t),ae.scales[a.type]),c=function(t,e){return t===e?"_index_":"_value_"}(l,s),h=i.scales||{};r[e]=b(Object.create(null),[{axis:l},a,h[l],h[c]])})),t.data.datasets.forEach((i=>{const s=i.type||t.type,o=i.indexAxis||Jn(s,e),a=(ne[s]||{}).scales||{};Object.keys(a).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,o),s=i[e+"AxisID"]||e;r[s]=r[s]||Object.create(null),b(r[s],[{axis:e},n[s],a[t]])}))})),Object.keys(r).forEach((t=>{const e=r[t];b(e,[ae.scales[e.type],ae.scale])})),r}(t,e)}function ns(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const ss=new Map,os=new Set;function rs(t,e){let i=ss.get(t);
vendor: 9,807 bytes, line 36
36return i||(i=e(),ss.set(t,i),os.add(i)),i}const as=(t,e,i)=>{const n=w(e,i);void 0!==n&&t.add(n)};class ls{constructor(t){this._config=function(t){return(t=t||{}).data=ns(t.data),is(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=ns(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),is(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return rs(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return rs(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return rs(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return rs(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let n=i.get(t);return n&&!e||(n=new Map,i.set(t,n)),n}getOptionScopes(t,e,i){const{options:n,type:s}=this,o=this._cachedScopes(t,i),r=o.get(e);if(r)return r;const a=new Set;e.forEach((e=>{t&&(a.add(t),e.forEach((e=>as(a,t,e)))),e.forEach((t=>as(a,n,t))),e.forEach((t=>as(a,ne[s]||{},t))),e.forEach((t=>as(a,ae,t))),e.forEach((t=>as(a,se,t)))}));const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),os.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,ne[e]||{},ae.datasets[e]||{},{type:e},ae,se]}resolveNamedOptions(t,e,i,n=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=cs(this._resolverCache,t,n);let l=r;(function(t,e){const{isScriptable:i,isIndexable:n}=ze(t);for(const o of e){const e=i(o),r=n(o),a=(r||e)&&t[o];if(e&&(C(a)||hs(a))||r&&s(a))return!0}return!1})(r,e)&&(o.$shared=!1,l=$e(r,i=C(i)?i():i,this.createResolver(t,i,a)));for(const t of e)o[t]=l[t];return o}createResolver(t,e,i=[""],n){const{resolver:s}=cs(this._resolverCache,t,i);return o(e)?$e(s,e,void 0,n):s}}function cs(t,e,i){let n=t.get(e);n||(n=new Map,t.set(e,n));const s=i.join();let o=n.get(s);return o||(o={resolver:je(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},n.set(s,o)),o}const hs=t=>o(t)&&Object.getOwnPropertyNames(t).reduce(((e,i)=>e||C(t[i])),!1),us=["top","bottom","left","right","chartArea"];function ds(t,e){return"top"===t||"bottom"===t||-1===us.indexOf(t)&&"x"===e}function fs(t,e){return function(i,n){return i[t]===n[t]?i[e]-n[e]:i[t]-n[t]}}function ps(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),u(i&&i.onComplete,[t],e)}function gs(t){const e=t.chart,i=e.options.animation;u(i&&i.onProgress,[t],e)}function ms(t){return le()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const xs={},bs=t=>{const e=ms(t);return Object.values(xs).filter((t=>t.canvas===e)).pop()};function vs(t,e,i){const n=Object.keys(t);for(const s of n){const n=+s;if(n>=e){const o=t[s];delete t[s],(i>0||n>e)&&(t[n+i]=o)}}}class ys{static defaults=ae;static instances=xs;static overrides=ne;static registry=Xn;static version="4.3.0";static getChart=bs;static register(...t){Xn.add(...t),_s()}static unregister(...t){Xn.remove(...t),_s()}constructor(t,e){const n=this.config=new ls(e),s=ms(t),o=bs(s);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||bn(s)),this.platform.updateConfig(n);const a=this.platform.acquireContext(s,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,h=l&&l.width;this.id=i(),this.ctx=a,this.canvas=l,this.width=h,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Gn,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=ut((t=>this.update(t)),r.resizeDelay||0),this._dataChanges=[],xs[this.id]=this,a&&l?(xt.listen(this,"complete",ps),xt.listen(this,"progress",gs),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:s,_aspectRatio:o}=this;return n(t)?e&&o?o:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Xn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ve(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Se(this.canvas,this.ctx),this}stop(){return xt.stop(this),this}resize(t,e){xt.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,n=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(n,t,e,s),r=i.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,ve(this,r,!0)&&(this.notifyPlugins("resize",{size:o}),u(i.onResize,[this,o],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){d(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,n=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let s=[];e&&(s=s.concat(Object.keys(e).map((t=>{const i=e[t],n=ts(t,i),s="r"===n,o="x"===n;return{options:i,dposition:s?"chartArea":o?"bottom":"left",dtype:s?"radialLinear":o?"category":"linear"}})))),d(s,(e=>{const s=e.options,o=s.id,r=ts(o,s),a=l(s.type,e.dtype);void 0!==s.position&&ds(s.position,r)===ds(e.dposition)||(s.position=e.dposition),n[o]=!0;let c=null;o in i&&i[o].type===a?c=i[o]:(c=new(Xn.getScale(a))({id:o,type:a,ctx:this.ctx,chart:this}),i[c.id]=c),c.init(s,t)})),d(n,((t,e)=>{t||delete i[e]})),d(i,(t=>{Zi.configure(this,t,t.options),Zi.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(fs("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,n;for(this._removeUnreferencedMetasets(),i=0,n=e.length;i<n;i++){const n=e[i];let s=this.getDatasetMeta(i);const o=n.type||this.config.type;if(s.type&&s.type!==o&&(this._destroyDatasetMeta(i),s=this.getDatasetMeta(i)),s.type=o,s.indexAxis=n.indexAxis||Jn(o,this.options),s.order=n.order||0,s.index=i,s.label=""+n.label,s.visible=this.isDatasetVisible(i),s.controller)s.controller.updateIndex(i),s.controller.linkScales();else{const e=Xn.getController(o),{datasetElementType:n,dataElementType:r}=ae.datasets[o];Object.assign(e,{dataElementType:Xn.getElement(r),datasetElementType:n&&Xn.getElement(n)}),s.controller=new e(this,i),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){d(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),i=!n&&-1===s.indexOf(e);e.buildOrUpdateElements(i),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),n||d(s,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(fs("z","_idx"));const{_active:r,_lastEvent:a}=this;a?this._eventHandler(a,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){d(this.scales,(t=>{Zi.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);S(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:n,count:s}of e)vs(t,n,"_removeElements"===i?-s:s)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),n=i(0);for(let t=1;t<e;t++)if(!S(n,i(t)))return;return Array.from(n).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Zi.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],d(this.boxes,(t=>
vendor: 4,889 bytes, lines 36-37
36{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){
37for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,C(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),n={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",n)&&(i.controller._update(e),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(xt.has(this)?this.attached&&!xt.running(this)&&xt.start(this):(this.draw(),ps({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,i=[];let n,s;for(n=0,s=e.length;n<s;++n){const s=e[n];t&&!s.visible||i.push(s)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,n=!i.disabled,s=function(t){const{xScale:e,yScale:i}=t;if(e&&i)return{left:e.left,right:e.right,top:i.top,bottom:i.bottom}}(t)||this.chartArea,o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(n&&Ee(e,{left:!1===i.left?0:s.left-i.left,right:!1===i.right?this.width:s.right+i.right,top:!1===i.top?0:s.top-i.top,bottom:!1===i.bottom?this.height:s.bottom+i.bottom}),t.controller.draw(),n&&Ae(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Pe(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,n){const s=Bi.modes[e];return"function"==typeof s?s(this,t,i,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let n=i.filter((t=>t&&t._dataset===e)).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(n)),n}getContext(){return this.$context||(this.$context=ki(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const n=i?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,n);M(e)?(s.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(s,{visible:i}),this.update((e=>e.datasetIndex===t?n:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),xt.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Se(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete xs[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,i=(i,n)=>{e.addEventListener(this,i,n),t[i]=n},n=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};d(this.options.events,(t=>i(t,n)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,n)=>{e.addEventListener(this,i,n),t[i]=n},n=(i,n)=>{t[i]&&(e.removeEventListener(this,i,n),delete t[i])},s=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const r=()=>{n("attach",r),this.attached=!0,this.resize(),i("resize",s),i("detach",o)};o=()=>{this.attached=!1,n("resize",s),this._stop(),this._resize(0,0),i("attach",r)}
vendor: 12,621 bytes, line 37
37,e.isAttached(this.canvas)?r():o()}unbindEvents(){d(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},d(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const n=i?"set":"remove";let s,o,r,a;for("dataset"===e&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+n+"DatasetHoverStyle"]()),r=0,a=t.length;r<a;++r){o=t[r];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[n+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map((({datasetIndex:t,index:e})=>{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}));!f(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,i){const n=this.options.hover,s=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=s(e,t),r=i?t:s(t,e);o.length&&this.updateHoverStyle(o,n.mode,!1),r.length&&n.mode&&this.updateHoverStyle(r,n.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,n))return;const s=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,n),(s||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:n=[],options:s}=this,o=e,r=this._getActiveElements(t,n,i,o),a=T(t),l=function(t,e,i,n){return i&&"mouseout"!==t.type?n?e:t:null}(t,this._lastEvent,i,a);i&&(this._lastEvent=null,u(s.onHover,[t,r,this],this),a&&u(s.onClick,[t,r,this],this));const c=!f(r,n);return(c||e)&&(this._active=r,this._updateHoverStyles(r,n,e)),this._lastEvent=l,c}_getActiveElements(t,e,i,n){if("mouseout"===t.type)return[];if(!i)return e;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,n)}}function _s(){return d(ys.instances,(t=>t._plugins.invalidate()))}function ws(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ks{static override(t){Object.assign(ks.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return ws()}parse(){return ws()}format(){return ws()}add(){return ws()}diff(){return ws()}startOf(){return ws()}endOf(){return ws()}}var Ms={_date:ks};function Cs(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let n=[];for(let e=0,s=i.length;e<s;e++)n=n.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=lt(n.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let n,s,o,r,a=e._length;const l=()=>{32767!==o&&-32768!==o&&(M(r)&&(a=Math.min(a,Math.abs(o-r)||a)),r=o)};for(n=0,s=i.length;n<s;++n)o=e.getPixelForValue(i[n]),l();for(r=void 0,n=0,s=e.ticks.length;n<s;++n)o=e.getPixelForTick(n),l();return a}function Ss(t,e,i,n){return s(t)?function(t,e,i,n){const s=i.parse(t[0],n),o=i.parse(t[1],n),r=Math.min(s,o),a=Math.max(s,o);let l=r,c=a;Math.abs(r)>Math.abs(a)&&(l=a,c=r),e[i.axis]=c,e._custom={barStart:l,barEnd:c,start:s,end:o,min:r,max:a}}(t,e,i,n):e[i.axis]=i.parse(t,n),e}function Ts(t,e,i,n){const s=t.iScale,o=t.vScale,r=s.getLabels(),a=s===o,l=[];let c,h,u,d;for(c=i,h=i+n;c<h;++c)d=e[c],u={},u[s.axis]=a||s.parse(r[c],c),l.push(Ss(d,u,o,c));return l}function Ds(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Ps(t,e,i,n){let s=e.borderSkipped;const o={};if(!s)return void(t.borderSkipped=o);if(!0===s)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:r,end:a,reverse:l,top:c,bottom:h}=function(t){let e,i,n,s,o;return t.horizontal?(e=t.base>t.x,i="left",n="right"):(e=t.base<t.y,i="bottom",n="top"),e?(s="end",o="start"):(s="start",o="end"),{start:i,end:n,reverse:e,top:s,bottom:o}}(t);"middle"===s&&i&&(t.enableBorderRadius=!0,(i._top||0)===n?s=c:(i._bottom||0)===n?s=h:(o[Es(h,r,a,l)]=!0,s=c)),o[Es(s,r,a,l)]=!0,t.borderSkipped=o}function Es(t,e,i,n){var s,o,r;return n?(r=i,t=As(t=(s=t)===(o=e)?r:s===r?o:s,i,e)):t=As(t,e,i),t}function As(t,e,i){return"start"===t?e:"end"===t?i:t}function Os(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}class Ls extends Rn{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:n}}=t.legend.options;return e.labels.map(((e,s)=>{const o=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:n,lineWidth:o.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=i;else{let s,r,a=t=>+i[t];if(o(i[t])){const{key:t="value"}=this._parsing;a=e=>+w(i[e],t)}for(s=t,r=t+e;s<r;++s)n._parsed[s]=a(s)}}_getRotation(){return $(this.options.rotation-90)}_getCircumference(){return $(this.options.circumference)}_getRotationExtents(){let t=P,e=-P;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const n=this.chart.getDatasetMeta(i).controller,s=n._getRotation(),o=n._getCircumference();t=Math.min(t,s),e=Math.max(e,s+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,n=this._cachedMeta,s=n.data,o=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,r=Math.max((Math.min(i.width,i.height)-o)/2,0),a=Math.min(c(this.options.cutout,r),1),l=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:p,offsetX:g,offsetY:m}=function(t,e,i){let n=1,s=1,o=0,r=0;if(e<P){const a=t,l=a+e,c=Math.cos(a),h=Math.sin(a),u=Math.cos(l),d=Math.sin(l),f=(t,e,n)=>Q(t,a,l,!0)?1:Math.max(e,e*i,n,n*i),p=(t,e,n)=>Q(t,a,l,!0)?-1:Math.min(e,e*i,n,n*i),g=f(0,c,u),m=f(L,h,d),x=p(D,c,u),b=p(D+L,h,d);n=(g-x)/2,s=(m-b)/2,o=-(g+x)/2,r=-(m+b)/2}return{ratioX:n,ratioY:s,offsetX:o,offsetY:r}}(d,u,a),x=(i.width-o)/f,b=(i.height-o)/p,v=Math.max(Math.min(x,b)/2,0),y=h(this.options.radius,v),_=(y-Math.max(y*a,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*y,this.offsetY=m*y,n.total=this.calculateTotal(),this.outerRadius=y-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*l,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){const i=this.options,n=this._cachedMeta,s=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===n._parsed[t]||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*s/P)}updateElements(t,e,i,n){const s="reset"===n,o=this.chart,r=o.chartArea,a=o.options.animation,l=(r.left+r.right)/2,c=(r.top+r.bottom)/2,h=s&&a.animateScale,u=h?0:this.innerRadius,d=h?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(e,n);let g,m=this._getRotation();for(g=0;g<e;++g)m+=this._circumference(g,s);for(g=e;g<e+i;++g){const e=this._circumference(g,s),i=t[g],o={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:d,innerRadius:u};p&&(o.options=f||this.resolveDataElementOptions(g,i.active?"active":n)),m+=e,this.updateElement(i,g,o,n)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,n=0;for(i=0;i<e.length;i++){const s=t._parsed[i];null===s||isNaN(s)||!this.chart.getDataVisibility(i)||e[i].hidden||(n+=Math.abs(s))}return n}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?P*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=te(e._parsed[t],i.options.locale);return{label:n[t]||"",value:s}}getMaxBorderWidth(t){let e=0;const i=this.chart;let n,s,o,r,a;if(!t)for(n=0,s=i.data.datasets.length;n<s;++n)if(i.isDatasetVisible(n)){o=i.getDatasetMeta(n),t=o.data,r=o.controller;break}if(!t)return 0;for(n=0,s=t.length;n<s;++n)a=r.resolveDataElementOptions(n),"inner"!==a.borderAlign&&(e=Math.max(e,a.borderWidth||0,a.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,n=t.length;i<n;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(l(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class Is extends Rn{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:n}}=t.legend.options;return e.labels.map(((e,s)=>{const o=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:n,lineWidth:o.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=te(e._parsed[t].r,i.options.locale);return{label:n[t]||"",value:s}}parseObjectData(t,e,i,n){return Qe.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,i)=>{const n=this.getParsed(i).r;!isNaN(n)&&this.chart.getDataVisibility(i)&&(n<e.min&&(e.min=n),n>e.max&&(e.max=n))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,n=Math.min(e.right-e.left,e.bottom-e.top),s=Math.max(n/2,0),o=(s-Math.max(i.cutoutPercentage?s/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=s-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,n){const s="reset"===n,o=this.chart,r=o.options.animation,a=this._cachedMeta.rScale,l=a.xCenter,c=a.yCenter,h=a.getIndexAngle(0)-.5*D;let u,d=h;const f=360/this.countVisibleElements();for(u=0;u<e;++u)d+=this._computeAngle(u,n,f);for(u=e;u<e+i;u++){const e=t[u];let i=d,p=d+this._computeAngle(u,n,f),g=o.getDataVisibility(u)?a.getDistanceFromCenterForValue(this.getParsed(u).r):0;d=p,s&&(r.animateScale&&(g=0),r.animateRotate&&(i=p=h));const m={x:l,y:c,innerRadius:0,outerRadius:g,startAngle:i,endAngle:p,options:this.resolveDataElementOptions(u,e.active?"active":n)};this.updateElement(e,u,m,n)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++})),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?$(this.resolveDataElementOptions(t,e).angle||i):0}}var Rs=Object.freeze({__proto__:null,BarController:class extends Rn{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,i,n){return Ts(t,e,i,n)}
vendor: 4,855 bytes, line 37
37parseArrayData(t,e,i,n){return Ts(t,e,i,n)}parseObjectData(t,e,i,n){const{iScale:s,vScale:o}=t,{xAxisKey:r="x",yAxisKey:a="y"}=this._parsing,l="x"===s.axis?r:a,c="x"===o.axis?r:a,h=[];let u,d,f,p;for(u=i,d=i+n;u<d;++u)p=e[u],f={},f[s.axis]=s.parse(w(p,l),u),h.push(Ss(w(p,c),f,o,u));return h}updateRangeFromParsed(t,e,i,n){super.updateRangeFromParsed(t,e,i,n);const s=i._custom;s&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:n}=e,s=this.getParsed(t),o=s._custom,r=Ds(o)?"["+o.start+", "+o.end+"]":""+n.getLabelForValue(s[n.axis]);return{label:""+i.getLabelForValue(s[i.axis]),value:r}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,s){const o="reset"===s,{index:r,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),h=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(e,s);for(let f=e;f<e+i;f++){const e=this.getParsed(f),i=o||n(e[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),p=this._calculateBarIndexPixels(f,h),g=(e._stacks||{})[a.axis],m={horizontal:c,base:i.base,enableBorderRadius:!g||Ds(e._custom)||r===g._top||r===g._bottom,x:c?i.head:p.center,y:c?p.center:i.head,height:c?p.size:Math.abs(i.size),width:c?Math.abs(i.size):p.size};d&&(m.options=u||this.resolveDataElementOptions(f,t[f].active?"active":s));const x=m.options||t[f].options;Ps(m,x,g,r),Os(m,x,h.ratio),this.updateElement(t[f],f,m,s)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),o=i.options.stacked,r=[],a=t=>{const i=t.controller.getParsed(e),s=i&&i[t.vScale.axis];if(n(s)||isNaN(s))return!0};for(const i of s)if((void 0===e||!a(i))&&((!1===o||-1===r.indexOf(i.stack)||void 0===o&&void 0===i.stack)&&r.push(i.stack),i.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const n=this._getStacks(t,i),s=void 0!==e?n.indexOf(e):-1;return-1===s?n.length-1:s}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,n=[];let s,o;for(s=0,o=e.data.length;s<o;++s)n.push(i.getPixelForValue(this.getParsed(s)[i.axis],s));const r=t.barThickness;return{min:r||Cs(e),pixels:n,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:r?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i,index:s},options:{base:o,minBarLength:r}}=this,a=o||0,l=this.getParsed(t),c=l._custom,h=Ds(c);let u,d,f=l[e.axis],p=0,g=i?this.applyStack(e,l,i):f;g!==f&&(p=g-f,g=f),h&&(f=c.barStart,g=c.barEnd-c.barStart,0!==f&&F(f)!==F(c.barEnd)&&(p=0),p+=f);const m=n(o)||h?p:o;let x=e.getPixelForValue(m);if(u=this.chart.getDataVisibility(t)?e.getPixelForValue(p+g):x,d=u-x,Math.abs(d)<r){d=function(t,e,i){return 0!==t?F(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(d,e,a)*r,f===a&&(x-=d/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),o=Math.min(t,n),c=Math.max(t,n);x=Math.max(Math.min(x,c),o),u=x+d,i&&!h&&(l._stacks[e.axis]._visualValues[s]=e.getValueForPixel(u)-e.getValueForPixel(x))}if(x===e.getPixelForValue(a)){const t=F(d)*e.getLineWidthForValue(a)/2;x+=t,d-=t}return{size:d,base:x,head:u,center:u+d/2}}_calculateBarIndexPixels(t,e){const i=e.scale,s=this.options,o=s.skipNull,r=l(s.maxBarThickness,1/0);let a,c;if(e.grouped){const i=o?this._getStackCount(t):e.stackCount,l="flex"===s.barThickness?function(t,e,i,n){const s=e.pixels,o=s[t];let r=t>0?s[t-1]:null,a=t<s.length-1?s[t+1]:null;const l=i.categoryPercentage;null===r&&(r=o-(null===a?e.end-e.start:a-o)),null===a&&(a=o+o-r);const c=o-(o-Math.min(r,a))/2*l;return{chunk:Math.abs(a-r)/2*l/n,ratio:i.barPercentage,start:c}}(t,e,s,i):function(t,e,i,s){const o=i.barThickness;let r,a;return n(o)?(r=e.min*i.categoryPercentage,a=i.barPercentage):(r=o*s,a=1),{chunk:r/s,ratio:a,start:e.pixels[t]-r/2}}(t,e,s,i),h=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=l.start+l.chunk*h+l.chunk/2,c=Math.min(r,l.chunk*l.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),c=Math.min(r,e.min*e.ratio);return{base:a-c/2,head:a+c/2,center:a,size:c}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,n=i.length;let s=0;for(;s<n;++s)null!==this.getParsed(s)[e.axis]&&i[s].draw(this._ctx)}},BubbleController:class extends Rn{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}
vendor: 4,219 bytes, line 37
37parsePrimitiveData(t,e,i,n){const s=super.parsePrimitiveData(t,e,i,n);for(let t=0;t<s.length;t++)s[t]._custom=this.resolveDataElementOptions(t+i).radius;return s}parseArrayData(t,e,i,n){const s=super.parseArrayData(t,e,i,n);for(let t=0;t<s.length;t++){const n=e[i+t];s[t]._custom=l(n[2],this.resolveDataElementOptions(t+i).radius)}return s}parseObjectData(t,e,i,n){const s=super.parseObjectData(t,e,i,n);for(let t=0;t<s.length;t++){const n=e[i+t];s[t]._custom=l(n&&n.r&&+n.r,this.resolveDataElementOptions(t+i).radius)}return s}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:n,yScale:s}=e,o=this.getParsed(t),r=n.getLabelForValue(o.x),a=s.getLabelForValue(o.y),l=o._custom;return{label:i[t]||"",value:"("+r+", "+a+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:r}=this._cachedMeta,{sharedOptions:a,includeOptions:l}=this._getSharedOptions(e,n),c=o.axis,h=r.axis;for(let u=e;u<e+i;u++){const e=t[u],i=!s&&this.getParsed(u),d={},f=d[c]=s?o.getPixelForDecimal(.5):o.getPixelForValue(i[c]),p=d[h]=s?r.getBasePixel():r.getPixelForValue(i[h]);d.skip=isNaN(f)||isNaN(p),l&&(d.options=a||this.resolveDataElementOptions(u,e.active?"active":n),s&&(d.options.radius=0)),this.updateElement(e,u,d,n)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let n=super.resolveDataElementOptions(t,e);n.$shared&&(n=Object.assign({},n,{$shared:!1}));const s=n.radius;return"active"!==e&&(n.radius=0),n.radius+=l(i&&i._custom,s),n}},DoughnutController:Ls,LineController:class extends Rn{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:n=[],_dataset:s}=e,o=this.chart._animationsDisabled;let{start:r,count:a}=gt(e,n,o);this._drawStart=r,this._drawCount=a,mt(e)&&(r=0,a=n.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=n;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:l},t),this.updateElements(n,r,a,t)}updateElements(t,e,i,s){const o="reset"===s,{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:h,includeOptions:u}=this._getSharedOptions(e,s),d=r.axis,f=a.axis,{spanGaps:p,segment:g}=this.options,m=H(p)?p:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||"none"===s,b=e+i,v=t.length;let y=e>0&&this.getParsed(e-1);for(let i=0;i<v;++i){const p=t[i],v=x?p:{};if(i<e||i>=b){v.skip=!0;continue}const _=this.getParsed(i),w=n(_[f]),k=v[d]=r.getPixelForValue(_[d],i),M=v[f]=o||w?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,_,l):_[f],i);v.skip=isNaN(k)||isNaN(M)||w,v.stop=i>0&&Math.abs(_[d]-y[d])>m,g&&(v.parsed=_,v.raw=c.data[i]),u&&(v.options=h||this.resolveDataElementOptions(i,p.active?"active":s)),x||this.updateElement(p,i,v,s),y=_}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return i;const s=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}},PieController:class extends Ls{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},PolarAreaController:Is,RadarController:class extends Rn{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}
vendor: 4,366 bytes, line 37
37parseObjectData(t,e,i,n){return Qe.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta,i=e.dataset,n=e.data||[],s=e.iScale.getLabels();if(i.points=n,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:s.length===n.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(n,0,n.length,t)}updateElements(t,e,i,n){const s=this._cachedMeta.rScale,o="reset"===n;for(let r=e;r<e+i;r++){const e=t[r],i=this.resolveDataElementOptions(r,e.active?"active":n),a=s.getPointPositionForValue(r,this.getParsed(r).r),l=o?s.xCenter:a.x,c=o?s.yCenter:a.y,h={x:l,y:c,angle:a.angle,skip:isNaN(l)||isNaN(c),options:i};this.updateElement(e,r,h,n)}}},ScatterController:class extends Rn{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:n,yScale:s}=e,o=this.getParsed(t),r=n.getLabelForValue(o.x),a=s.getLabelForValue(o.y);return{label:i[t]||"",value:"("+r+", "+a+")"}}update(t){const e=this._cachedMeta,{data:i=[]}=e,n=this.chart._animationsDisabled;let{start:s,count:o}=gt(e,i,n);if(this._drawStart=s,this._drawCount=o,mt(e)&&(s=0,o=i.length),this.options.showLine){const{dataset:s,_dataset:o}=e;s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!o._decimated,s.points=i;const r=this.resolveDatasetElementOptions(t);r.segment=this.options.segment,this.updateElement(s,void 0,{animated:!n,options:r},t)}this.updateElements(i,s,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,i,s){const o="reset"===s,{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,h=this.resolveDataElementOptions(e,s),u=this.getSharedOptions(h),d=this.includeOptions(s,u),f=r.axis,p=a.axis,{spanGaps:g,segment:m}=this.options,x=H(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===s;let v=e>0&&this.getParsed(e-1);for(let h=e;h<e+i;++h){const e=t[h],i=this.getParsed(h),g=b?e:{},y=n(i[p]),_=g[f]=r.getPixelForValue(i[f],h),w=g[p]=o||y?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,i,l):i[p],h);g.skip=isNaN(_)||isNaN(w)||y,g.stop=h>0&&Math.abs(i[f]-v[f])>x,m&&(g.parsed=i,g.raw=c.data[h]),d&&(g.options=u||this.resolveDataElementOptions(h,e.active?"active":s)),b||this.updateElement(e,h,g,s),v=i}this.updateSharedOptions(u,s,h)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,n=i.options&&i.options.borderWidth||0;if(!e.length)return n;const s=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(n,s,o)/2}}});function Ns(t,e,i,n){return{x:i+t*Math.cos(e),y:n+t*Math.sin(e)}}function Fs(t,e,i,n,s,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=e,u=Math.max(e.outerRadius+n+i-c,0),d=h>0?h+n+i+c:0;let f=0;const p=s-l;if(n){const t=((h>0?h-n:0)+(u>0?u-n:0))/2;f=(p-(0!==t?p*t/(t+n):p))/2}const g=(p-Math.max(.001,p*u-i/D)/u)/2,m=l+g+f,x=s-g-f,{outerStart:b,outerEnd:v,innerStart:y,innerEnd:_}=function(t,e,i,n){const s=mi(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),o=(i-e)/2,r=Math.min(o,n*e/2),a=t=>{const e=(i-Math.min(o,t))*n/2;return J(t,0,Math.min(o,e))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:J(s.innerStart,0,r),innerEnd:J(s.innerEnd,0,r)}}(e,d,u,x-m),w=u-b,k=u-v,M=m+b/w,C=x-v/k,S=d+y,T=d+_,P=m+y/S,E=x-_/T;if(t.beginPath(),o){const e=(M+C)/2;if(t.arc(r,a,u,M,e),t.arc(r,a,u,e,C),v>0){const e=Ns(k,C,r,a);t.arc(e.x,e.y,v,C,x+L)}const i=Ns(T,x,r,a);if(t.lineTo(i.x,i.y),_>0){const e=Ns(T,E,r,a);t.arc(e.x,e.y,_,x+L,E+Math.PI)}const n=(x-_/d+(m+y/d))/2;if(t.arc(r,a,d,x-_/d,n,!0),t.arc(r,a,d,n,m+y/d,!0),y>0){const e=Ns(S,P,r,a);t.arc(e.x,e.y,y,P+Math.PI,m-L)}const s=Ns(w,m,r,a);if(t.lineTo(s.x,s.y),b>0){const e=Ns(w,M,r,a);t.arc(e.x,e.y,b,m-L,M)}}else{t.moveTo(r,a);const e=Math.cos(M)*u+r,i=Math.sin(M)*u+a;t.lineTo(e,i);const n=Math.cos(C)*u+r,s=Math.sin(C)*u+a;t.lineTo(n,s)}t.closePath()}
vendor: 4,427 bytes, lines 37-38
37function js(t,e,i=e){t.lineCap=l(i.borderCapStyle,e.borderCapStyle),t.setLineDash(l(i.borderDash,e.borderDash)),t.lineDashOffset=l(i.borderDashOffset,e.borderDashOffset),t.lineJoin=l(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=l(i.borderWidth,e.borderWidth),t.strokeStyle=l(i.borderColor,e.borderColor)}function $s(t,e,i){t.lineTo(i.x,i.y)}function zs(t,e,i={}){const n=t.length,{start:s=0,end:o=n-1}=i,{start:r,end:a}=e,l=Math.max(s,r),c=Math.min(o,a),h=s<r&&o<r||s>a&&o>a;return{count:n,start:l,loop:e.loop,ilen:c<l&&!h?n+c-l:c-l}}function Bs(t,e,i,n){const{points:s,options:o}=e,{count:r,start:a,loop:l,ilen:c}=zs(s,i,n),h=function(t){return t.stepped?Oe:t.tension||"monotone"===t.cubicInterpolationMode?Le:$s}(o);let u,d,f,{move:p=!0,reverse:g}=n||{};for(u=0;u<=c;++u)d=s[(a+(g?c-u:u))%r],d.skip||(p?(t.moveTo(d.x,d.y),p=!1):h(t,f,d,g,o.stepped),f=d);return l&&(d=s[(a+(g?c:0))%r],h(t,f,d,g,o.stepped)),!!l}function Hs(t,e,i,n){const s=e.points,{count:o,start:r,ilen:a}=zs(s,i,n),{move:l=!0,reverse:c}=n||{};let h,u,d,f,p,g,m=0,x=0;const b=t=>(r+(c?a-t:t))%o,v=()=>{f!==p&&(t.lineTo(m,p),t.lineTo(m,f),t.lineTo(m,g))};for(l&&(u=s[b(0)],t.moveTo(u.x,u.y)),h=0;h<=a;++h){if(u=s[b(h)],u.skip)continue;const e=u.x,i=u.y,n=0|e;n===d?(i<f?f=i:i>p&&(p=i),m=(x*m+e)/++x):(v(),t.lineTo(e,i),d=n,x=0,f=p=i),g=i}v()}
38function Ws(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i?Bs:Hs}const Vs="function"==typeof Path2D;class qs extends Nn{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const n=i.spanGaps?this._loop:this._fullLoop;si(this._points,i,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Ai(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,n=t[e],s=this.points,o=Ei(this,{property:e,start:n,end:n});if(!o.length)return;const r=[],a=function(t){return t.stepped?hi:t.tension||"monotone"===t.cubicInterpolationMode?ui:ci}(i);let l,c;for(l=0,c=o.length;l<c;++l){const{start:c,end:h}=o[l],u=s[c],d=s[h];if(u===d){r.push(u);continue}const f=a(u,d,Math.abs((n-u[e])/(d[e]-u[e])),i.stepped);f[e]=t[e],r.push(f)}return 1===r.length?r[0]:r}pathSegment(t,e,i){return Ws(this)(t,this,e,i)}path(t,e,i){const n=this.segments,s=Ws(this);let o=this._loop;e=e||0,i=i||this.points.length-e;for(const r of n)o&=s(t,this,r,{start:e,end:e+i-1});return!!o}draw(t,e,i,n){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),function(t,e,i,n){Vs&&!e.options.segment?function(t,e,i,n){let s=e._path;s||(s=e._path=new Path2D,e.path(s,i,n)&&s.closePath()),js(t,e.options),t.stroke(s)}(t,e,i,n):function(t,e,i,n){const{segments:s,options:o}=e,r=Ws(e);for(const a of s)js(t,o,a.style),t.beginPath(),r(t,e,a,{start:i,end:i+n-1})&&t.closePath(),t.stroke()}(t,e,i,n)}(t,this,i,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Us(t,e,i,n){const s=t.options,{[i]:o}=t.getProps([i],n);return Math.abs(e-o)<s.radius+s.hitRadius}function Ys(t,e){const{x:i,y:n,base:s,width:o,height:r}=t.getProps(["x","y","base","width","height"],e);let a,l,c,h,u;return t.horizontal?(u=r/2,a=Math.min(i,s),l=Math.max(i,s),c=n-u,h=n+u):(u=o/2,a=i-u,l=i+u,c=Math.min(n,s),h=Math.max(n,s)),{left:a,top:c,right:l,bottom:h}}function Xs(t,e,i,n){return t?0:J(e,i,n)}function Gs(t){const e=Ys(t),i=e.right-e.left,n=e.bottom-e.top,s=function(t,e,
vendor: 3,483 bytes, line 38
38i){const n=t.options.borderWidth,s=t.borderSkipped,o=xi(n);return{t:Xs(s.top,o.top,0,i),r:Xs(s.right,o.right,0,e),b:Xs(s.bottom,o.bottom,0,i),l:Xs(s.left,o.left,0,e)}}(t,i/2,n/2),r=function(t,e,i){const{enableBorderRadius:n}=t.getProps(["enableBorderRadius"]),s=t.options.borderRadius,r=bi(s),a=Math.min(e,i),l=t.borderSkipped,c=n||o(s);return{topLeft:Xs(!c||l.top||l.left,r.topLeft,0,a),topRight:Xs(!c||l.top||l.right,r.topRight,0,a),bottomLeft:Xs(!c||l.bottom||l.left,r.bottomLeft,0,a),bottomRight:Xs(!c||l.bottom||l.right,r.bottomRight,0,a)}}(t,i/2,n/2);return{outer:{x:e.left,y:e.top,w:i,h:n,radius:r},inner:{x:e.left+s.l,y:e.top+s.t,w:i-s.l-s.r,h:n-s.t-s.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,r.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(s.b,s.r))}}}}function Ks(t,e,i,n){const s=null===e,o=null===i,r=t&&!(s&&o)&&Ys(t,n);return r&&(s||tt(e,r.left,r.right))&&(o||tt(i,r.top,r.bottom))}function Qs(t,e){t.rect(e.x,e.y,e.w,e.h)}function Js(t,e,i={}){const n=t.x!==i.x?-e:0,s=t.y!==i.y?-e:0,o=(t.x+t.w!==i.x+i.w?e:0)-n,r=(t.y+t.h!==i.y+i.h?e:0)-s;return{x:t.x+n,y:t.y+s,w:t.w+o,h:t.h+r,radius:t.radius}}var Zs=Object.freeze({__proto__:null,ArcElement:class extends Nn{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.getProps(["x","y"],i),{angle:s,distance:o}=Y(n,{x:t,y:e}),{startAngle:r,endAngle:a,innerRadius:c,outerRadius:h,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),d=(this.options.spacing+this.options.borderWidth)/2,f=l(u,a-r)>=P||Q(s,r,a),p=tt(o,c+d,h+d);return f&&p}getCenterPoint(t){const{x:e,y:i,startAngle:n,endAngle:s,innerRadius:o,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:a,spacing:l}=this.options,c=(n+s)/2,h=(o+r+l+a)/2;return{x:e+Math.cos(c)*h,y:i+Math.sin(c)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,n=(e.offset||0)/4,s=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>P?Math.floor(i/P):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();const r=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(r)*n,Math.sin(r)*n);const a=n*(1-Math.sin(Math.min(D,i||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,i,n,s){const{fullCircles:o,startAngle:r,circumference:a}=e;let l=e.endAngle;if(o){Fs(t,e,i,n,l,s);for(let e=0;e<o;++e)t.fill();isNaN(a)||(l=r+(a%P||P))}Fs(t,e,i,n,l,s),t.fill()}(t,this,a,s,o),function(t,e,i,n,s){const{fullCircles:o,startAngle:r,circumference:a,options:l}=e,{borderWidth:c,borderJoinStyle:h,borderDash:u,borderDashOffset:d}=l,f="inner"===l.borderAlign;if(!c)return;t.setLineDash(u||[]),t.lineDashOffset=d,f?(t.lineWidth=2*c,t.lineJoin=
vendor: 8,797 bytes, line 38
38h||"round"):(t.lineWidth=c,t.lineJoin=h||"bevel");let p=e.endAngle;if(o){Fs(t,e,i,n,p,s);for(let e=0;e<o;++e)t.stroke();isNaN(a)||(p=r+(a%P||P))}f&&function(t,e,i){const{startAngle:n,pixelMargin:s,x:o,y:r,outerRadius:a,innerRadius:l}=e;let c=s/a;t.beginPath(),t.arc(o,r,a,n-c,i+c),l>s?(c=s/l,t.arc(o,r,l,i+c,n-c,!0)):t.arc(o,r,s,i+L,n-L),t.closePath(),t.clip()}(t,e,p),o||(Fs(t,e,i,n,p,s),t.stroke())}(t,this,a,s,o),t.restore()}},BarElement:class extends Nn{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:i,backgroundColor:n}}=this,{inner:s,outer:o}=Gs(this),r=(a=o.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?Fe:Qs;var a;t.save(),o.w===s.w&&o.h===s.h||(t.beginPath(),r(t,Js(o,e,s)),t.clip(),r(t,Js(s,-e,o)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),r(t,Js(s,e)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,i){return Ks(this,t,e,i)}inXRange(t,e){return Ks(this,t,null,e)}inYRange(t,e){return Ks(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:n,horizontal:s}=this.getProps(["x","y","base","horizontal"],t);return{x:s?(e+n)/2:e,y:s?i:(i+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}},LineElement:qs,PointElement:class extends Nn{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.options,{x:s,y:o}=this.getProps(["x","y"],i);return Math.pow(t-s,2)+Math.pow(e-o,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return Us(this,t,"x",e)}inYRange(t,e){return Us(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!Pe(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,Te(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}});function to(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}function eo(t,e,{horizontal:i,minRotation:n}){const s=$(n),o=(i?Math.sin(s):Math.cos(s))||.001,r=.75*e*(""+t).length;return Math.min(e/o,r)}class io extends Un{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return n(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:n,max:s}=this;const o=t=>n=e?n:t,r=t=>s=i?s:t;if(t){const t=F(n),e=F(s);t<0&&e<0?r(0):t>0&&e>0&&o(0)}if(n===s){let e=0===s?1:Math.abs(.05*s);r(s+e),t||o(n-e)}this.min=n,this.max=s}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:n}=t;return n?(e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s=function(t,e){const i=[],{bounds:s,step:o,min:r,max:a,precision:l,count:c,maxTicks:h,maxDigits:u,includeBounds:d}=t,f=o||1,p=h-1,{min:g,max:m}=e,x=!n(r),b=!n(a),v=!n(c),y=(m-g)/(u+1);let _,w,k,M,C=z((m-g)/p/f)*f;if(C<1e-14&&!x&&!b)return[{value:g},{value:m}];M=Math.ceil(m/C)-Math.floor(g/C),M>p&&(C=z(M*C/p/f)*f),n(l)||(_=Math.pow(10,l),C=Math.ceil(C*_)/_),"ticks"===s?(w=Math.floor(g/C)*C,k=Math.ceil(m/C)*C):(w=g,k=m),x&&b&&o&&W((a-r)/o,C/1e3)?(M=Math.round(Math.min((a-r)/C,h)),C=(a-r)/M,w=r,k=a):v?(w=x?r:w,k=b?a:k,M=c-1,C=(k-w)/M):(M=(k-w)/C,M=j(M,Math.round(M),C/1e3)?Math.round(M):Math.ceil(M));const S=Math.max(U(C),U(w));_=Math.pow(10,n(l)?S:l),w=Math.round(w*_)/_,k=Math.round(k*_)/_;let T=0;for(x&&(d&&w!==r?(i.push({value:r}),w<r&&T++,j(Math.round((w+T*C)*_)/_,r,eo(r,y,t))&&T++):w<r&&T++);T<M;++T){const t=Math.round((w+T*C)*_)/_;if(b&&t>a)break;i.push({value:t})}return b&&d&&k!==a?i.length&&j(i[i.length-1].value,a,eo(a,y,t))?i[i.length-1].value=a:i.push({value:a}):b&&k!==a||i.push({value:k}),i}({maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&V(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const n=(i-e)/Math.max(t.length-1,1)/2;e-=n,i+=n}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return te(t,this.chart.options.locale,this.options.ticks.format)}}class no extends io{static id="linear";static defaults={ticks:{callback:ie.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=r(t)?t:0,this.max=r(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=$(this.options.ticks.minRotation),n=(t?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/n))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const so=t=>Math.floor(N(t)),oo=(t,e)=>Math.pow(10,so(t)+e);function ro(t){return 1==t/Math.pow(10,so(t))}function ao(t,e,i){const n=Math.pow(10,i),s=Math.floor(t/n);return Math.ceil(e/n)-s}class lo extends Un{static id="logarithmic";static defaults={ticks:{callback:ie.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=io.prototype.parse.apply(this,[t,e]);if(0!==i)return r(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=r(t)?Math.max(0,t):null,this.max=r(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!r(this._userMin)&&(this.min=t===oo(this.min,0)?oo(this.min,-1):oo(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,n=this.max;const s=e=>i=t?i:e,o=t=>n=e?n:t;i===n&&(i<=0?(s(1),o(10)):(s(oo(i,-1)),o(oo(n,1)))),i<=0&&s(oo(n,-1)),n<=0&&o(oo(i,1)),this.min=i,this.max=n}buildTicks(){const t=this.options,e=function(t,{min:e,max:i}){e=a(t.min,e);const n=[],s=so(e);let o=function(t,e){let i=so(e-t);for(;ao(t,e,i)>10;)i++;for(;ao(t,e,i)<10;)i--;return Math.min(i,so(t))}(e,i),r=o<0?Math.pow(10,Math.abs(o)):1;const l=Math.pow(10,o),c=s>o?Math.pow(10,s):0,h=Math.round((e-c)*r)/r,u=Math.floor((e-c)/l/10)*l*10;let d=Math.floor((h-u)/Math.pow(10,o)),f=a(t.min,Math.round((c+u+d*Math.pow(10,o))*r)/r);for(;f<i;)n.push({value:f,major:ro(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(o++,d=2,r=o>=0?1:r),f=Math.round((c+u+d*Math.pow(10,o))*r)/r;const p=a(t.max,f);return n.push({value:p,major:ro(p),significand:d}),n}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&V(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":te(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=N(t),this._valueRange=N(this.max)-N(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(N(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function co(t){const e=t.ticks;if(e.display&&t.display){const t=vi(e.backdropPadding);return l(e.font&&e.font.size,ae.font.size)+t.height}return 0}function ho(t,e,i,n,s){return t===n||t===s?{start:e-i/2,end:e+i/2}:t<n||t>s?{start:e-i,end:e}:{start:e,end:e+i}}
vendor: 4,544 bytes, line 38
38function uo(t,e,i,n,s){const o=Math.abs(Math.sin(i)),r=Math.abs(Math.cos(i));let a=0,l=0;n.start<e.l?(a=(e.l-n.start)/o,t.l=Math.min(t.l,e.l-a)):n.end>e.r&&(a=(n.end-e.r)/o,t.r=Math.max(t.r,e.r+a)),s.start<e.t?(l=(e.t-s.start)/r,t.t=Math.min(t.t,e.t-l)):s.end>e.b&&(l=(s.end-e.b)/r,t.b=Math.max(t.b,e.b+l))}function fo(t,e,i){const n=t.drawingArea,{extra:s,additionalAngle:o,padding:r,size:a}=i,l=t.getPointPosition(e,n+s+r,o),c=Math.round(q(K(l.angle+L))),h=function(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}(l.y,a.h,c),u=function(t){return 0===t||180===t?"center":t<180?"left":"right"}(c),d=function(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}(l.x,a.w,u);return{visible:!0,x:l.x,y:h,textAlign:u,left:d,top:h,right:d+a.w,bottom:h+a.h}}function po(t,e){if(!e)return!0;const{left:i,top:n,right:s,bottom:o}=t;return!(Pe({x:i,y:n},e)||Pe({x:i,y:o},e)||Pe({x:s,y:n},e)||Pe({x:s,y:o},e))}function go(t,e,i){const{left:s,top:o,right:r,bottom:a}=i,{backdropColor:l}=e;if(!n(l)){const i=bi(e.borderRadius),n=vi(e.backdropPadding);t.fillStyle=l;const c=s-n.left,h=o-n.top,u=r-s+n.width,d=a-o+n.height;Object.values(i).some((t=>0!==t))?(t.beginPath(),Fe(t,{x:c,y:h,w:u,h:d,radius:i}),t.fill()):t.fillRect(c,h,u,d)}}function mo(t,e,i,n){const{ctx:s}=t;if(i)s.arc(t.xCenter,t.yCenter,e,0,P);else{let i=t.getPointPosition(0,e);s.moveTo(i.x,i.y);for(let o=1;o<n;o++)i=t.getPointPosition(o,e),s.lineTo(i.x,i.y)}}class xo extends io{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ie.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=vi(co(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=r(t)&&!isNaN(t)?t:0,this.max=r(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/co(this.options))}generateTickLabels(t){io.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const i=u(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?function(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),n=[],o=[],r=t._pointLabels.length,a=t.options.pointLabels,l=a.centerPointLabels?D/r:0;for(let d=0;d<r;d++){const r=a.setContext(t.getPointLabelContext(d));o[d]=r.padding;const f=t.getPointPosition(d,t.drawingArea+o[d],l),p=yi(r.font),g=(c=t.ctx,h=p,u=s(u=t._pointLabels[d])?u:[u],{w:Me(c,h.string,u),h:u.length*h.lineHeight});n[d]=g;const m=K(t.getIndexAngle(d)+l),x=Math.round(q(m));uo(i,e,m,ho(x,f.x,g.w,0,180),ho(x,f.y,g.h,90,270))}var c,h,u;t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){const n=[],s=t._pointLabels.length,o=t.options,{centerPointLabels:r,display:a}=o.pointLabels,l={extra:co(o)/2,additionalAngle:r?D/s:0};let c;for(let o=0;o<s;o++){l.padding=i[o],l.size=e[o];const s=fo(t,o,l);n.push(s),"auto"===a&&(s.visible=po(s,c),s.visible&&(c=s))}return n}(t,n,o)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,n){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,n))}getIndexAngle(t){return K(t*(P/(this._pointLabels.length||1))+$(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(n(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(n(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const i=e[t];
vendor: 5,154 bytes, line 38
38return function(t,e,i){return ki(t,{label:i,index:e,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const n=this.getIndexAngle(t)-L+i;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter,angle:n}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:i,right:n,bottom:s}=this._pointLabelItems[t];return{left:e,top:i,right:n,bottom:s}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),mo(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:n,border:s}=e,o=this._pointLabels.length;let r,a,l;if(e.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:n}}=t;for(let s=e-1;s>=0;s--){const e=t._pointLabelItems[s];if(!e.visible)continue;const o=n.setContext(t.getPointLabelContext(s));go(i,o,e);const r=yi(o.font),{x:a,y:l,textAlign:c}=e;Ne(i,t._pointLabels[s],a,l+r.lineHeight/2,r,{color:o.color,textAlign:c,textBaseline:"middle"})}}(this,o),n.display&&this.ticks.forEach(((t,e)=>{if(0!==e){a=this.getDistanceFromCenterForValue(t.value);const i=this.getContext(e),r=n.setContext(i),l=s.setContext(i);!function(t,e,i,n,s){const o=t.ctx,r=e.circular,{color:a,lineWidth:l}=e;!r&&!n||!a||!l||i<0||(o.save(),o.strokeStyle=a,o.lineWidth=l,o.setLineDash(s.dash),o.lineDashOffset=s.dashOffset,o.beginPath(),mo(t,i,r,n),o.closePath(),o.stroke(),o.restore())}(this,r,a,o,l)}})),i.display){for(t.save(),r=o-1;r>=0;r--){const n=i.setContext(this.getPointLabelContext(r)),{color:s,lineWidth:o}=n;o&&s&&(t.lineWidth=o,t.strokeStyle=s,t.setLineDash(n.borderDash),t.lineDashOffset=n.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(r,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const n=this.getIndexAngle(0);let s,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((n,r)=>{if(0===r&&!e.reverse)return;const a=i.setContext(this.getContext(r)),l=yi(a.font);if(s=this.getDistanceFromCenterForValue(this.ticks[r].value),a.showLabelBackdrop){t.font=l.string,o=t.measureText(n.label).width,t.fillStyle=a.backdropColor;const e=vi(a.backdropPadding);t.fillRect(-o/2-e.left,-s-l.size/2-e.top,o+e.width,l.size+e.height)}Ne(t,n.label,0,-s,l,{color:a.color})})),t.restore()}drawTitle(){}}const bo={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}},vo=Object.keys(bo);function yo(t,e){return t-e}function _o(t,e){if(n(e))return null;const i=t._adapter,{parser:s,round:o,isoWeekday:a}=t._parseOpts;let l=e;return"function"==typeof s&&(l=s(l)),r(l)||(l="string"==typeof s?i.parse(l,s):i.parse(l)),null===l?null:(o&&(l="week"!==o||!H(a)&&!0!==a?i.startOf(l,o):i.startOf(l,"isoWeek",a)),+l)}function wo(t,e,i,n){const s=vo.length;for(let o=vo.indexOf(t);o<s-1;++o){const t=bo[vo[o]],s=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(s*t.size))<=n)return vo[o]}return vo[s-1]}function ko(t,e,i){if(i){if(i.length){const{lo:n,hi:s}=et(i,e);t[i[n]>=e?i[n]:i[s]]=!0}}else t[e]=!0}function Mo(t,e,i){const n=[],s={},o=e.length;let r,a;for(r=0;r<o;++r)a=e[r],s[a]=r,n.push({value:a,major:!1});return 0!==o&&i?function(t,e,i,n){const s=t._adapter,o=+s.startOf(e[0].value,n),r=e[e.length-1].value;let a,l;for(a=o;a<=r;a=+s.add(a,1,n))l=i[a],l>=0&&(e[l].major=!0);return e}(t,n,s,i):n}class Co extends Un{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const i=t.time||(t.time={}),n=this._adapter=new Ms._date(t.adapters.date);n.init(e),b(i.displayFormats,n.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:_o(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:n,max:s,minDefined:o,maxDefined:a}=this.getUserBounds();function l(t){o||isNaN(t.min)||(n=Math.min(n,t.min)),a||isNaN(t.max)||(s=Math.max(s,t.max))}o&&a||(l(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||l(this.getMinMax(!1))),n=r(n)&&
vendor: 4,939 bytes, line 38
38!isNaN(n)?n:+e.startOf(Date.now(),i),s=r(s)&&!isNaN(s)?s:+e.endOf(Date.now(),i)+1,this.min=Math.min(n,s-1),this.max=Math.max(n+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,n="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const s=this.min,o=st(n,s,this.max);return this._unit=e.unit||(i.autoSkip?wo(e.minUnit,this.min,this.max,this._getLabelCapacity(s)):function(t,e,i,n,s){for(let o=vo.length-1;o>=vo.indexOf(i);o--){const i=vo[o];if(bo[i].common&&t._adapter.diff(s,n,i)>=e-1)return i}return vo[i?vo.indexOf(i):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=vo.indexOf(t)+1,i=vo.length;e<i;++e)if(bo[vo[e]].common)return vo[e]}(this._unit):void 0,this.initOffsets(n),t.reverse&&o.reverse(),Mo(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t=[]){let e,i,n=0,s=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),n=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),s=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=J(n,0,o),s=J(s,0,o),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const t=this._adapter,e=this.min,i=this.max,n=this.options,s=n.time,o=s.unit||wo(s.minUnit,e,i,this._getLabelCapacity(e)),r=l(n.ticks.stepSize,1),a="week"===o&&s.isoWeekday,c=H(a)||!0===a,h={};let u,d,f=e;if(c&&(f=+t.startOf(f,"isoWeek",a)),f=+t.startOf(f,c?"day":o),t.diff(i,e,o)>1e5*r)throw new Error(e+" and "+i+" are too far apart with stepSize of "+r+" "+o);const p="data"===n.ticks.source&&this.getDataTimestamps();for(u=f,d=0;u<i;u=+t.add(u,r,o),d++)ko(h,u,p);return u!==i&&"ticks"!==n.bounds&&1!==d||ko(h,u,p),Object.keys(h).sort(((t,e)=>t-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){const i=this.options.time.displayFormats,n=this._unit,s=e||i[n];return this._adapter.format(t,s)}_tickFormatFunction(t,e,i,n){const s=this.options,o=s.ticks.callback;if(o)return u(o,[t,e,i],this);const r=s.time.displayFormats,a=this._unit,l=this._majorUnit,c=a&&r[a],h=l&&r[l],d=i[e],f=l&&h&&d&&d.major;return this._adapter.format(t,n||(f?h:c))}generateTickLabels(t){let e,i,n;for(e=0,i=t.length;e<i;++e)n=t[e],n.label=this._tickFormatFunction(n.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,n=$(this.isHorizontal()?e.maxRotation:e.minRotation),s=Math.cos(n),o=Math.sin(n),r=this._resolveTickFontOptions(0).size;return{w:i*s+r*o,h:i*o+r*s}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,n=i[e.unit]||i.millisecond,s=this._tickFormatFunction(t,0,Mo(this,[t],this._majorUnit),n),o=this._getLabelSize(s),r=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return r>0?r:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(t=0,e=n.length;t<e;++t)i=i.concat(n[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const n=this.getLabels();for(e=0,i=n.length;e<i;++e)t.push(_o(this,n[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return lt(t.sort(yo))}}function So(t,e,i){let n,s,o,r,a=0,l=t.length-1;i?(e>=t[a].pos&&e<=t[l].pos&&({lo:a,hi:l}=it(t,"pos",e)),({pos:n,time:o}=t[a]),({pos:s,time:r}=t[l])):(e>=t[a].time&&e<=t[l].time&&({lo:a,hi:l}=it(t,"time",e)),({time:n,pos:o}=t[a]),({time:s,pos:r}=t[l]));const c=s-n;return c?o+(r-o)*(e-n)/c:o}var To=Object.freeze({__proto__:null,CategoryScale:class extends Un{static id="category";static defaults={ticks:{callback:to}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:n}of e)t[i]===n&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(n(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:J(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:function(t,e,
vendor: 8,365 bytes, lines 38-39
38i,n){const s=t.indexOf(e);return-1===s?((t,e,i,n)=>("string"==typeof e?(i=t.push(e)-1,n.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,n):s!==t.lastIndexOf(e)?i:s}(i,t,l(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(n=this.getLabels().length-1)),this.min=i,this.max=n}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,n=[];let s=this.getLabels();s=0===t&&e===s.length-1?s:s.slice(t,e+1),this._valueRange=Math.max(s.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)n.push({value:i});return n}getLabelForValue(t){return to.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},LinearScale:no,LogarithmicScale:lo,RadialLinearScale:xo,TimeScale:Co,TimeSeriesScale:class extends Co{static id="timeseries";static defaults=Co.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=So(e,this.min),this._tableRange=So(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,n=[],s=[];let o,r,a,l,c;for(o=0,r=t.length;o<r;++o)l=t[o],l>=e&&l<=i&&n.push(l);if(n.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,r=n.length;o<r;++o)c=n[o+1],a=n[o-1],l=n[o],Math.round((c+a)/2)!==l&&s.push({time:l,pos:o/(r-1)});return s}_getTimestampsForTable(){let t=this._cache.all||[]
39;if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(So(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return So(this._table,i*this._tableRange+this._minPos,!0)}}});const Do=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Po=Do.map((t=>t.replace("rgb(","rgba(").replace(")",", 0.5)")));function Eo(t){return Do[t%Do.length]}function Ao(t){return Po[t%Po.length]}function Oo(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var Lo={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,i){if(!i.enabled)return;const{data:{datasets:n},options:s}=t.config,{elements:o}=s;if(!i.forceOverride&&(Oo(n)||(r=s)&&(r.borderColor||r.backgroundColor)||o&&Oo(o)))return;var r;const a=function(t){let e=0;return(i,n)=>{const s=t.getDatasetMeta(n).controller;s instanceof Ls?e=function(t,e){return t.backgroundColor=t.data.map((()=>Eo(e++))),e}(i,e):s instanceof Is?e=function(t,e){return t.backgroundColor=t.data.map((()=>Ao(e++))),e}(i,e):s&&(e=function(t,e){return t.borderColor=Eo(e),t.backgroundColor=Ao(e),++e}(i,e))}}(t);n.forEach(a)}};function Io(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function Ro(t){t.data.datasets.forEach((t=>{Io(t)}))}var No={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void Ro(t);const s=t.width;t.data.datasets.forEach(((e,o)=>{const{_data:r,indexAxis:a}=e,l=t.getDatasetMeta(o),c=r||e.data;if("y"===_i([a,t.options.indexAxis]))return;if(!l.controller.supportsDecimation)return;const h=t.scales[l.xAxisID];if("linear"!==h.type&&"time"!==h.type)return;if(t.options.parsing)return;let u,{start:d,count:f}=function(t,e){const i=e.length;let n,s=0;const{iScale:o}=t,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(s=J(it(e,o.axis,r).lo,0,i-1)),n=c?J(it(e,o.axis,a).hi+1,s,i)-s:i-s,{start:s,count:n}}(l,c);if(f<=(i.threshold||4*s))Io(e);else{switch(n(r)&&(e._data=c,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":u=function(t,e,i,n,s){const o=s.samples||n;if(o>=i)return t.slice(e,e+i);const r=[],a=(i-2)/(o-2);let l=0;const c=e+i-1;let h,u,d,f,p,g=e;for(r[l++]=t[g],h=0;h<o-2;h++){let n,s=0,o=0;const c=Math.floor((h+1)*a)+1+e,m=Math.min(Math.floor((h+2)*a)+1,i)+e,x=m-c;for(n=c;n<m;n++)s+=t[n].x,o+=t[n].y;s/=x,o/=x;const b=Math.floor(h*a)+1+e,v=Math.min(Math.floor((h+1)*a)+1,i)+e,{x:y,y:_}=t[g];for(d=f=-1,n=b;n<v;n++)f=.5*Math.abs((y-s)*(t[n].y-_)-(y-t[n].x)*(o-_)),f>d&&(d=f,u=t[n],p=n);r[l++]=u,g=p}return r[l++]=t[c],r}(c,d,f,s,i);break;case"min-max":u=function(t,e,i,s){let o,r,a,l,c,h,u,d,f,p,g=0,m=0;const x=[],b=e+i-1,v=t[e].x,y=t[b].x-v;for(o=e;o<e+i;++o){r=t[o],a=(r.x-v)/y*s,l=r.y;const e=0|a;if(e===c)l<f?(f=l,h=o):l>p&&(p=l,u=o),g=(m*g+r.x)/++m;else{const i=o-1;if(!n(h)&&!n(u)){const e=Math.min(h,u),n=Math.max(h,u);e!==d&&e!==i&&x.push({...t[e],x:g}),n!==d&&n!==i&&x.push({...t[n],x:g})}o>0&&i!==d&&x.push(t[i]),x.push(r),c=e,m=0,f=p=l,h=u=d=o}}return x}(c,d,f,s);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=u}}))},destroy(t){Ro(t)}};function Fo(t,e,i,n){if(n)return;let s=e[t],o=i[t];return"angle"===t&&(s=K(s),o=K(o)),{property:t,start:s,end:o}}function jo(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function $o(t,e,i,n){return t&&e?n(t[i],e[i]):t?t[i]:e?e[i]:0}function zo(t,e){let i=[],n=!1;return s(t)?(n=!0,i=t):i=function(t,e){const{x:i=null,y:n=null}=t||{},s=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=jo(t,e,s);const r=s[t],a=s[e];null!==n?(o.push({x:r.x,y:n}),o.push({x:a.x,y:n})):null!==i&&(o.push({x:i,y:r.y}),o.push({x:i,y:a.y}))})),o}(t,e),i.length?new qs({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function Bo(t){return t&&!1!==t.fill}function Ho(t,e,i){let n=t[e].fill;const s=[e];let o;if(!i)return n;for(;!1!==n&&-1===s.indexOf(n);){if(!r(n))return n;if(o=t[n],!o)return!1;if(o.visible)return n;s.push(n),n=o.fill}return!1}function Wo(t,e,i){const n=function(t){const e=t.options,i=e.fill;let n=l(i&&i.target,i);return void 0===n&&(n=!!e.backgroundColor),!1!==n&&null!==n&&(!0===n?"origin":n)}(t);if(o(n))return!isNaN(n.value)&&n;let s=parseFloat(n);return r(s)&&Math.floor(s)===s?function(t,e,i,n){return"-"!==t&&"+"!==t||(i=e+i),!(i===e||i<0||i>=n)&&i}(n[0],e,s,i):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function Vo(t,e,i){const n=[];for(let s=0;s<i.length;s++){const o=i[s],{first:r,last:a,point:l}=qo(o,e,"x");if(!(!l||r&&a))if(r)n.unshift(l);else if(t.push(l),!a)break}t.push(...n)}function qo(t,e,i){const n=t.interpolate(e,i);if(!n)return{};const s=n[i],o=t.segments,r=t.points;let a=!1,l=!1;for(let t=0;t<o.length;t++){const e=o[t],n=r[e.start][i],c=r[e.end][i];if(tt(s,n,c)){a=s===n,l=s===c;break}}return{first:a,last:l,point:n}}class Uo{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:n,y:s,radius:o}=this;return e=e||{start:0,end:P},t.arc(n,s,o,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:n}=this,s=t.angle;return{x:e+Math.cos(s)*n,y:i+Math.sin(s)*n,angle:s}}}function Yo(t){const{chart:e,fill:i,line:n}=t;if(r(i))return function(t,e){const i=t.getDatasetMeta(e);return i&&t.isDatasetVisible(e)?i.dataset:null}(e,i);if("stack"===i)return function(t){const{scale:e,index:i,line:n}=t,s=[],o=n.segments,r=n.points,a=function(t,e){const i=[],n=t.getMatchingVisibleMetas("line");for(let t=0;t<n.length;t++){const s=n[t];if(s.index===e)break;s.hidden||i.unshift(s.dataset)}return i}(e,i);a.push(zo({x:null,y:e.bottom},n));for(let t=0;t<o.length;t++){const e=o[t];for(let t=e.start;t<=e.end;t++)Vo(s,r[t],a)}return new qs({points:s,options:{}})}(t);if("shape"===i)return!0;const s=function(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:i}=t,n=e.options,s=e.getLabels().length,r=n.reverse?e.max:e.min,a=function(t,e,
vendor: 5,375 bytes, line 39
39i){let n;return n="start"===t?i:"end"===t?e.options.reverse?e.min:e.max:o(t)?t.value:e.getBaseValue(),n}(i,e,r),l=[];if(n.grid.circular){const t=e.getPointPositionForValue(0,r);return new Uo({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(a)})}for(let t=0;t<s;++t)l.push(e.getPointPositionForValue(t,a));return l}(t):function(t){const{scale:e={},fill:i}=t,n=function(t,e){let i=null;return"start"===t?i=e.bottom:"end"===t?i=e.top:o(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if(r(n)){const t=e.isHorizontal();return{x:t?n:null,y:t?null:n}}return null}(t)}(t);return s instanceof Uo?s:zo(s,n)}function Xo(t,e,i){const n=Yo(e),{line:s,scale:o,axis:r}=e,a=s.options,l=a.fill,c=a.backgroundColor,{above:h=c,below:u=c}=l||{};n&&s.points.length&&(Ee(t,i),function(t,e){const{line:i,target:n,above:s,below:o,area:r,scale:a}=e,l=i._loop?"angle":e.axis;t.save(),"x"===l&&o!==s&&(Go(t,n,r.top),Ko(t,{line:i,target:n,color:s,scale:a,property:l}),t.restore(),t.save(),Go(t,n,r.bottom)),Ko(t,{line:i,target:n,color:o,scale:a,property:l}),t.restore()}(t,{line:s,target:n,above:h,below:u,area:i,scale:o,axis:r}),Ae(t))}function Go(t,e,i){const{segments:n,points:s}=e;let o=!0,r=!1;t.beginPath();for(const a of n){const{start:n,end:l}=a,c=s[n],h=s[jo(n,l,s)];o?(t.moveTo(c.x,c.y),o=!1):(t.lineTo(c.x,i),t.lineTo(c.x,c.y)),r=!!e.pathSegment(t,a,{move:r}),r?t.closePath():t.lineTo(h.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function Ko(t,e){const{line:i,target:n,property:s,color:o,scale:r}=e,a=function(t,e,i){const n=t.segments,s=t.points,o=e.points,r=[];for(const t of n){let{start:n,end:a}=t;a=jo(n,a,s);const l=Fo(i,s[n],s[a],t.loop);if(!e.segments){r.push({source:t,target:l,start:s[n],end:s[a]});continue}const c=Ei(e,l);for(const e of c){const n=Fo(i,o[e.start],o[e.end],e.loop),a=Pi(t,s,n);for(const t of a)r.push({source:t,target:e,start:{[i]:$o(l,n,"start",Math.max)},end:{[i]:$o(l,n,"end",Math.min)}})}}return r}(i,n,s);for(const{source:e,target:l,start:c,end:h}of a){const{style:{backgroundColor:a=o}={}}=e,u=!0!==n;t.save(),t.fillStyle=a,Qo(t,r,u&&Fo(s,c,h)),t.beginPath();const d=!!i.pathSegment(t,e);let f;if(u){d?t.closePath():Jo(t,n,h,s);const e=!!n.pathSegment(t,l,{move:d,reverse:!0});f=d&&e,f||Jo(t,n,c,s)}t.closePath(),t.fill(f?"evenodd":"nonzero"),t.restore()}}function Qo(t,e,i){const{top:n,bottom:s}=e.chart.chartArea,{property:o,start:r,end:a}=i||{};"x"===o&&(t.beginPath(),t.rect(r,n,a-r,s-n),t.clip())}function Jo(t,e,i,n){const s=e.interpolate(i,n);s&&t.lineTo(s.x,s.y)}var Zo={id:"filler",afterDatasetsUpdate(t,e,i){const n=(t.data.datasets||[]).length,s=[];let o,r,a,l;for(r=0;r<n;++r)o=t.getDatasetMeta(r),a=o.dataset,l=null,a&&a.options&&a instanceof qs&&(l={visible:t.isDatasetVisible(r),index:r,fill:Wo(a,r,n),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=l,s.push(l);for(r=0;r<n;++r)l=s[r],l&&!1!==l.fill&&(l.fill=Ho(s,r,i.propagate))},beforeDraw(t,e,i){const n="beforeDraw"===i.drawTime,s=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let e=s.length-1;e>=0;--e){const i=s[e].$filler;i&&(i.line.updateControlPoints(o,i.axis),n&&i.fill&&Xo(t.ctx,i,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;Bo(i)&&Xo(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const n=e.meta.$filler;Bo(n)&&"beforeDatasetDraw"===i.drawTime&&Xo(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const tr=(t,e)=>{let{boxHeight:i=e,boxWidth:n=e}=t;return t.usePointStyle&&(i=Math.min(i,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(e,i)}};class er extends Nn{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=u(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,n=yi(i.font),s=n.size,o=this._computeTitleHeight(),{boxWidth:r,itemHeight:a}=tr(i,s);let l,c;e.font=n.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(o,s,r,a)+10):(c=this.maxHeight,l=this._fitCols(o,n,r,a)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,n){const{ctx:s,maxWidth:o,options:{labels:{padding:r}}}=this,a=this.legendHitBoxes=[],l=this.lineWidths=[0],c=n+r;let h=t;s.textAlign="left",s.textBaseline="middle";let u=-1,d=-c;
vendor: 5,347 bytes, line 39
39return this.legendItems.forEach(((t,f)=>{const p=i+e/2+s.measureText(t.text).width;(0===f||l[l.length-1]+p+2*r>o)&&(h+=c,l[l.length-(f>0?0:1)]=0,d+=c,u++),a[f]={left:0,top:d,row:u,width:p,height:n},l[l.length-1]+=p+r})),h}_fitCols(t,e,i,n){const{ctx:s,maxHeight:o,options:{labels:{padding:r}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],c=o-t;let h=r,u=0,d=0,f=0,p=0;return this.legendItems.forEach(((t,o)=>{const{itemWidth:g,itemHeight:m}=function(t,e,i,n,s){const o=function(t,e,i,n){let s=t.text;return s&&"string"!=typeof s&&(s=s.reduce(((t,e)=>t.length>e.length?t:e))),e+i.size/2+n.measureText(s).width}(n,t,e,i),r=function(t,e,i){let n=t;return"string"!=typeof e.text&&(n=ir(e,i)),n}(s,n,e.lineHeight);return{itemWidth:o,itemHeight:r}}(i,e,s,t,n);o>0&&d+m+2*r>c&&(h+=u+r,l.push({width:u,height:d}),f+=u+r,p++,u=d=0),a[o]={left:f,top:d,col:p,width:g,height:m},u=Math.max(u,g),d+=m+r})),h+=u,l.push({width:u,height:d}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:n},rtl:s}}=this,o=Mi(s,this.left,this.width);if(this.isHorizontal()){let s=0,r=ft(i,this.left+n,this.right-this.lineWidths[s]);for(const a of e)s!==a.row&&(s=a.row,r=ft(i,this.left+n,this.right-this.lineWidths[s])),a.top+=this.top+t+n,a.left=o.leftForLtr(o.x(r),a.width),r+=a.width+n}else{let s=0,r=ft(i,this.top+t+n,this.bottom-this.columnSizes[s].height);for(const a of e)a.col!==s&&(s=a.col,r=ft(i,this.top+t+n,this.bottom-this.columnSizes[s].height)),a.top=r,a.left+=this.left+n,a.left=o.leftForLtr(o.x(a.left),a.width),r+=a.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Ee(t,this),this._draw(),Ae(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:n}=this,{align:s,labels:o}=t,r=ae.color,a=Mi(t.rtl,this.left,this.width),c=yi(o.font),{padding:h}=o,u=c.size,d=u/2;let f;this.drawTitle(),n.textAlign=a.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;const{boxWidth:p,boxHeight:g,itemHeight:m}=tr(o,u),x=this.isHorizontal(),b=this._computeTitleHeight();f=x?{x:ft(s,this.left+h,this.right-i[0]),y:this.top+h+b,line:0}:{x:this.left+h,y:ft(s,this.top+b+h,this.bottom-e[0].height),line:0},Ci(this.ctx,t.textDirection);const v=m+h;this.legendItems.forEach(((y,_)=>{n.strokeStyle=y.fontColor,n.fillStyle=y.fontColor;const w=n.measureText(y.text).width,k=a.textAlign(y.textAlign||(y.textAlign=o.textAlign)),M=p+d+w;let C=f.x,S=f.y;if(a.setWidth(this.width),x?_>0&&C+M+h>this.right&&(S=f.y+=v,f.line++,C=f.x=ft(s,this.left+h,this.right-i[f.line])):_>0&&S+v>this.bottom&&(C=f.x=C+e[f.line].width+h,f.line++,S=f.y=ft(s,this.top+b+h,this.bottom-e[f.line].height)),function(t,e,i){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;n.save();const s=l(i.lineWidth,1);if(n.fillStyle=l(i.fillStyle,r),n.lineCap=l(i.lineCap,"butt"),n.lineDashOffset=l(i.lineDashOffset,0),n.lineJoin=l(i.lineJoin,"miter"),n.lineWidth=s,n.strokeStyle=l(i.strokeStyle,r),n.setLineDash(l(i.lineDash,[])),o.usePointStyle){const r={radius:g*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:s},l=a.xPlus(t,p/2);De(n,r,l,e+d,o.pointStyleWidth&&p)}else{const o=e+Math.max((u-g)/2,0),r=a.leftForLtr(t,p),l=bi(i.borderRadius);n.beginPath(),Object.values(l).some((t=>0!==t))?Fe(n,{x:r,y:o,w:p,h:g,radius:l}):n.rect(r,o,p,g),n.fill(),0!==s&&n.stroke()}n.restore()}(a.x(C),S,y),C=pt(k,C+p+d,x?C+M:this.right,t.rtl),function(t,e,i){Ne(n,i.text,t,e+m/2,c,{strikethrough:i.hidden,textAlign:a.textAlign(i.textAlign)})}(a.x(C),S,y),x)f.x+=M+h;else if("string"!=typeof y.text){const t=c.lineHeight;f.y+=ir(y,t)}else f.y+=v})),Si(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=yi(e.font),n=vi(e.padding);if(!e.display)return;const s=Mi(t.rtl,this.left,this.width),o=this.ctx,r=e.position,a=i.size/2,l=n.top+a;let c,h=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),c=this.top+l,h=ft(t.align,h,this.right-u);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=l+ft(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const d=ft(r,h,h+u);o.textAlign=s.textAlign(dt(r)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=i.string,Ne(o,e.text,d,c,i)}_computeTitleHeight(){const t=this.options.title,e=yi(t.font),i=vi(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,n,s;if(tt(t,this.left,this.right)&&tt(e,this.top,this.bottom))for(s=this.legendHitBoxes,i=0;i<s.length;++i)if(n=s[i],tt(t,n.left,n.left+n.width)&&tt(e,n.top,n.top+n.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const o=this._hoveredItem,r=(s=i,null!==(n=o)&&null!==s&&n.datasetIndex===s.datasetIndex&&n.index===s.index);o&&!r&&u(e.onLeave,[t,o,this],this),this._hoveredItem=i,i&&!r&&u(e.onHover,[t,i,this],this)}else i&&u(e.onClick,[t,i,this],this);var n,s}}function ir(t,e){return e*(t.text?t.text.length+.5:0)}var nr={id:"legend",_element:er,start(t,e,i){const n=t.legend=new er({ctx:t.ctx,options:i,chart:t});
vendor: 5,382 bytes, line 39
39Zi.configure(t,n,i),Zi.addBox(t,n)},stop(t){Zi.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const n=t.legend;Zi.configure(t,n,i),n.options=i},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){const n=e.datasetIndex,s=i.chart;s.isDatasetVisible(n)?(s.hide(n),e.hidden=!0):(s.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:n,textAlign:s,color:o,useBorderRadius:r,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const l=t.controller.getStyle(i?0:void 0),c=vi(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:n||l.pointStyle,rotation:l.rotation,textAlign:s||l.textAlign,borderRadius:r&&(a||l.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class sr extends Nn{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const n=s(i.text)?i.text.length:1;this._padding=vi(i.padding);const o=n*yi(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:n,right:s,options:o}=this,r=o.align;let a,l,c,h=0;return this.isHorizontal()?(l=ft(r,i,s),c=e+t,a=s-i):("left"===o.position?(l=i+t,c=ft(r,n,e),h=-.5*D):(l=s-t,c=ft(r,e,n),h=.5*D),a=n-e),{titleX:l,titleY:c,maxWidth:a,rotation:h}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=yi(e.font),n=i.lineHeight/2+this._padding.top,{titleX:s,titleY:o,maxWidth:r,rotation:a}=this._drawArgs(n);Ne(t,e.text,0,0,i,{color:e.color,maxWidth:r,rotation:a,textAlign:dt(e.align),textBaseline:"middle",translation:[s,o]})}}var or={id:"title",_element:sr,start(t,e,i){!function(t,e){const i=new sr({ctx:t.ctx,options:e,chart:t});Zi.configure(t,i,e),Zi.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;Zi.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const n=t.titleBlock;Zi.configure(t,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const rr=new WeakMap;var ar={id:"subtitle",start(t,e,i){const n=new sr({ctx:t.ctx,options:i,chart:t});Zi.configure(t,n,i),Zi.addBox(t,n),rr.set(t,n)},stop(t){Zi.removeBox(t,rr.get(t)),rr.delete(t)},beforeUpdate(t,e,i){const n=rr.get(t);Zi.configure(t,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const lr={average(t){if(!t.length)return!1;let e,i,n=0,s=0,o=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();n+=t.x,s+=t.y,++o}}return{x:n/o,y:s/o}},nearest(t,e){if(!t.length)return!1;let i,n,s,o=e.x,r=e.y,a=Number.POSITIVE_INFINITY;for(i=0,n=t.length;i<n;++i){const n=t[i].element;if(n&&n.hasValue()){const t=X(e,n.getCenterPoint());t<a&&(a=t,s=n)}}if(s){const t=s.tooltipPosition();o=t.x,r=t.y}return{x:o,y:r}}};function cr(t,e){return e&&(s(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function hr(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function ur(t,e){const{element:i,datasetIndex:n,index:s}=e,o=t.getDatasetMeta(n).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:t,label:r,parsed:o.getParsed(s),raw:t.data.datasets[n].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:n,element:i}}function dr(t,e){const i=t.chart.ctx,{body:n,footer:s,title:o}=t,{boxWidth:r,boxHeight:a}=e,l=yi(e.bodyFont),c=yi(e.titleFont),h=yi(e.footerFont),u=o.length,f=s.length,p=n.length,g=vi(e.padding);let m=g.height,x=0,b=n.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);b+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),b&&(m+=p*(e.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(b-p)*l.lineHeight+(b-1)*e.bodySpacing),f&&(m+=e.footerMarginTop+f*h.lineHeight+(f-1)*e.footerSpacing);let v=0;const y=function(t){x=Math.max(x,i.measureText(t).width+v)};return i.save(),i.font=c.string,d(t.title,y),i.font=l.string,d(t.beforeBody.concat(t.afterBody),y),v=e.displayColors?r+2+e.boxPadding:0,d(n,(t=>{d(t.before,y),d(t.lines,y),d(t.after,y)}
vendor: 4,573 bytes, line 39
39)),v=0,i.font=h.string,d(t.footer,y),i.restore(),x+=g.width,{width:x,height:m}}function fr(t,e,i,n){const{x:s,width:o}=i,{width:r,chartArea:{left:a,right:l}}=t;let c="center";return"center"===n?c=s<=(a+l)/2?"left":"right":s<=o/2?c="left":s>=r-o/2&&(c="right"),function(t,e,i,n){const{x:s,width:o}=n,r=i.caretSize+i.caretPadding;return"left"===t&&s+o+r>e.width||"right"===t&&s-o-r<0||void 0}(c,t,e,i)&&(c="center"),c}function pr(t,e,i){const n=i.yAlign||e.yAlign||function(t,e){const{y:i,height:n}=e;return i<n/2?"top":i>t.height-n/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||fr(t,e,i,n),yAlign:n}}function gr(t,e,i,n){const{caretSize:s,caretPadding:o,cornerRadius:r}=t,{xAlign:a,yAlign:l}=i,c=s+o,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=bi(r);let p=function(t,e){let{x:i,width:n}=t;return"right"===e?i-=n:"center"===e&&(i-=n/2),i}(e,a);const g=function(t,e,i){let{y:n,height:s}=t;return"top"===e?n+=i:n-="bottom"===e?s+i:s/2,n}(e,l,c);return"center"===l?"left"===a?p+=c:"right"===a&&(p-=c):"left"===a?p-=Math.max(h,d)+s:"right"===a&&(p+=Math.max(u,f)+s),{x:J(p,0,n.width-e.width),y:J(g,0,n.height-e.height)}}function mr(t,e,i){const n=vi(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function xr(t){return cr([],hr(t))}function br(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const vr={beforeTitle:e,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,n=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return i[e.dataIndex]}return""},afterTitle:e,beforeBody:e,beforeLabel:e,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return n(i)||(e+=i),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:e,afterBody:e,beforeFooter:e,footer:e,afterFooter:e};function yr(t,e,i,n){const s=t[e].call(i,n);return void 0===s?vr[e].call(i,n):s}class _r extends Nn{static positioners=lr;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),n=i.enabled&&e.options.animation&&i.animations,s=new kn(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=(this,ki(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"})))}getTitle(t,e){const{callbacks:i}=e,n=yr(i,"beforeTitle",this,t),s=yr(i,"title",this,t),o=yr(i,"afterTitle",this,t);let r=[];return r=cr(r,hr(n)),r=cr(r,hr(s)),r=cr(r,hr(o)),r}getBeforeBody(t,e){return xr(yr(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:i}=e,n=[];return d(t,(t=>{const e={before:[],lines:[],after:[]},s=br(i,t);cr(e.before,hr(yr(s,"beforeLabel",this,t))),cr(e.lines,yr(s,"label",this,t)),cr(e.after,hr(yr(s,"afterLabel",this,t))),n.push(e)})),n}getAfterBody(t,e){return xr(yr(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:i}=e,n=yr(i,"beforeFooter",this,t),s=yr(i,"footer",this,t),o=yr(i,"afterFooter",this,t);let r=[];return r=cr(r,hr(n)),r=cr(r,hr(s)),r=cr(r,hr(o)),r}_createItems(t){const e=this._active,i=this.chart.data,n=[],s=[],o=[];let r,a,l=[];for(r=0,a=e.length;r<a;++r)l.push(ur(this.chart,e[r]));return t.filter&&(l=l.filter(((e,n,s)=>t.filter(e,n,s,i)))),t.itemSort&&(l=l.sort(((e,n)=>
vendor: 9,477 bytes, lines 39-40
39t.itemSort(e,n,i)))),d(l,(e=>{const i=br(t.callbacks,e);n.push(yr(i,"labelColor",this,e)),s.push(yr(i,"labelPointStyle",this,e)),o.push(yr(i,"labelTextColor",this,e))})),this.labelColors=n,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),n=this._active;let s,o=[];if(n.length){const t=lr[i.position].call(this,n,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=dr(this,i),r=Object.assign({},t,e),a=pr(this.chart,i,r),l=gr(i,r,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,s={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(s={opacity:0});this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,n){const s=this.getCaretPosition(t,i,n);e.lineTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.lineTo(s.x3,s.y3)}getCaretPosition(t,e,i){const{xAlign:n,yAlign:s}=this,{caretSize:o,cornerRadius:r}=i,{topLeft:a,topRight:l,bottomLeft:c,bottomRight:h}=bi(r),{x:u,y:d}=t,{width:f,height:p}=e;let g,m,x,b,v,y;return"center"===s?(v=d+p/2,"left"===n?(g=u,m=g-o,b=v+o,y=v-o):(g=u+f,m=g+o,b=v-o,y=v+o),x=g):(m="left"===n?u+Math.max(a,c)+o:"right"===n?u+f-Math.max(l,h)-o:this.caretX,"top"===s?(b=d,v=b-o,g=m-o,x=m+o):(b=d+p,v=b+o,g=m+o,x=m-o),y=b),{x1:g,x2:m,x3:x,y1:b,y2:v,y3:y}}drawTitle(t,e,i){const n=this.title,s=n.length;let o,r,a;if(s){const l=Mi(i.rtl,this.x,this.width);for(t.x=mr(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",o=yi(i.titleFont),r=i.titleSpacing,e.fillStyle=i.titleColor,e.font=o.string,a=0;a<s;++a)e.fillText(n[a],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r,a+1===s&&(t.y+=i.titleMarginBottom-r)}}_drawColorBox(t,e,i,n,s){const r=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:l,boxWidth:c}=s,h=yi(s.bodyFont),u=mr(this,"left",s),d=n.x(u),f=l<h.lineHeight?(h.lineHeight-l)/2:0,p=e.y+f;if(s.usePointStyle){const e={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},i=n.leftForLtr(d,c)+c/2,o=p+l/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,Te(t,e,i,o),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,Te(t,e,i,o)}else{t.lineWidth=o(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const e=n.leftForLtr(d,c),i=n.leftForLtr(n.xPlus(d,1),c-2),a=bi(r.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=s.multiKeyBackground,Fe(t,{x:e,y:p,w:c,h:l,radius:a}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),Fe(t,{x:i,y:p+1,w:c-2,h:l-2,radius:a}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(e,p,c,l),t.strokeRect(e,p,c,l),t.fillStyle=r.backgroundColor,t.fillRect(i,p+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:n}=this,{bodySpacing:s,bodyAlign:o,displayColors:r,boxHeight:a,boxWidth:l,boxPadding:c}=i,h=yi(i.bodyFont);let u=h.lineHeight,f=0;const p=Mi(i.rtl,this.x,this.width),g=function(i){e.fillText(i,p.x(t.x+f),t.y+u/2),t.y+=u+s},m=p.textAlign(o);let x,b,v,y,_,w,k;for(e.textAlign=o,e.textBaseline="middle",e.font=h.string,t.x=mr(this,m,i),e.fillStyle=i.bodyColor,d(this.beforeBody,g),f=r&&"right"!==m?"center"===o?l/2+c:l+2+c:0,y=0,w=n.length;y<w;++y){for(x=n[y],b=this.labelTextColors[y],e.fillStyle=b,d(x.before,g),v=x.lines,r&&v.length&&(this._drawColorBox(e,t,y,p,i),u=Math.max(h.lineHeight,a)),_=0,k=v.length;_<k;++_)g(v[_]),u=h.lineHeight;d(x.after,g)}f=0,u=h.lineHeight,d(this.afterBody,g),t.y-=s}drawFooter(t,e,i){const n=this.footer,s=n.length;let o,r;if(s){const a=Mi(i.rtl,this.x,this.width);for(t.x=mr(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=a.textAlign(i.footerAlign),e.textBaseline="middle",o=yi(i.footerFont),e.fillStyle=i.footerColor,e.font=o.string,r=0;r<s;++r)e.fillText(n[r],a.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,e,i,n){const{xAlign:s,yAlign:o}=this,{x:r,y:a}=t,{width:l,height:c}=i,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=bi(n.cornerRadius);e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.beginPath(),e.moveTo(r+h,a),"top"===o&&this.drawCaret(t,e,i,n),e.lineTo(r+l-u,a),e.quadraticCurveTo(r+l,a,r+l,a+u),"center"===o&&"right"===s&&this.drawCaret(t,e,i,n),e.lineTo(r+l,a+c-f),e.quadraticCurveTo(r+l,a+c,r+l-f,a+c),"bottom"===o&&this.drawCaret(t,e,i,n),e.lineTo(r+d,a+c),e.quadraticCurveTo(r,a+c,r,a+c-d),"center"===o&&"left"===s&&this.drawCaret(t,e,i,n),e.lineTo(r,a+h),e.quadraticCurveTo(r,a,r+h,a),e.closePath(),e.fill(),
40n.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,n=i&&i.x,s=i&&i.y;if(n||s){const i=lr[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=dr(this,t),r=Object.assign({},i,this._size),a=pr(e,t,r),l=gr(t,r,a,e);n._to===l.x&&s._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=vi(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=i,this.drawBackground(s,t,n,e),Ci(t,e.textDirection),s.y+=o.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),Si(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,n=t.map((({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}})),s=!f(i,n),o=this._positionChanged(n,e);(s||o)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,s=this._active||[],o=this._getActiveElements(t,s,e,i),r=this._positionChanged(o,t),a=e||!f(o,s)||r;return a&&(this._active=o,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),a}_getActiveElements(t,e,i,n){const s=this.options;if("mouseout"===t.type)return[];if(!n)return e;const o=this.chart.getElementsAtEventForMode(t,s.mode,s,i);return s.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:n,options:s}=this,o=lr[s.position].call(this,t,e);return!1!==o&&(i!==o.x||n!==o.y)}}var wr={id:"tooltip",_element:_r,positioners:lr,afterInit(t,e,i){i&&(t.tooltip=new _r({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:vr},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};return ys.register(Rs,To,Zs,t),ys.helpers={...Ri},ys._adapters=Ms,ys.Animation=wn,ys.Animations=kn,ys.animator=xt,ys.controllers=Xn.controllers.items,ys.DatasetController=Rn,ys.Element=Nn,ys.elements=Zs,ys.Interaction=Bi,ys.layouts=Zi,ys.platforms=vn,ys.Scale=Un,ys.Ticks=ie,Object.assign(ys,Rs,To,Zs,t,vn),ys.Chart=ys,"undefined"!=typeof window&&(window.Chart=ys),ys})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("chart.js/helpers"),require("chart.js")):"function"==typeof define&&define.amd?define(["chart.js/helpers","chart.js"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).ChartDataLabels=e(t.Chart.helpers,t.Chart)}(this,(function(t,e){"use strict";var i=function(){if("undefined"!=typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t)return(t.deviceXDPI||1)/(t.logicalXDPI||1)}return 1}
vendor: 10,867 bytes, line 40
40(),n=function(t,e,i){var n,s=[].concat(e),o=s.length,r=t.font,a=0;for(t.font=i.string,n=0;n<o;++n)a=Math.max(t.measureText(s[n]).width,a);return t.font=r,{height:o*i.lineHeight,width:a}};function s(t,e){var i=e.x,n=e.y;if(null===i)return{x:0,y:-1};if(null===n)return{x:1,y:0};var s=t.x-i,o=t.y-n,r=Math.sqrt(s*s+o*o);return{x:r?s/r:0,y:r?o/r:-1}}function o(t,e,i){var n=0;return t<i.left?n|=1:t>i.right&&(n|=2),e<i.top?n|=8:e>i.bottom&&(n|=4),n}function r(t,e){var i,n,s=e.anchor,r=t;return e.clamp&&(r=function(t,e){for(var i,n,s,r=t.x0,a=t.y0,l=t.x1,c=t.y1,h=o(r,a,e),u=o(l,c,e);h|u&&!(h&u);)8&(i=h||u)?(n=r+(l-r)*(e.top-a)/(c-a),s=e.top):4&i?(n=r+(l-r)*(e.bottom-a)/(c-a),s=e.bottom):2&i?(s=a+(c-a)*(e.right-r)/(l-r),n=e.right):1&i&&(s=a+(c-a)*(e.left-r)/(l-r),n=e.left),i===h?h=o(r=n,a=s,e):u=o(l=n,c=s,e);return{x0:r,x1:l,y0:a,y1:c}}(r,e.area)),"start"===s?(i=r.x0,n=r.y0):"end"===s?(i=r.x1,n=r.y1):(i=(r.x0+r.x1)/2,n=(r.y0+r.y1)/2),function(t,e,i,n,s){switch(s){case"center":i=n=0;break;case"bottom":i=0,n=1;break;case"right":i=1,n=0;break;case"left":i=-1,n=0;break;case"top":i=0,n=-1;break;case"start":i=-i,n=-n;break;case"end":break;default:s*=Math.PI/180,i=Math.cos(s),n=Math.sin(s)}return{x:t,y:e,vx:i,vy:n}}(i,n,t.vx,t.vy,e.align)}var a=function(t,e){var i=(t.startAngle+t.endAngle)/2,n=Math.cos(i),s=Math.sin(i),o=t.innerRadius,a=t.outerRadius;return r({x0:t.x+n*o,y0:t.y+s*o,x1:t.x+n*a,y1:t.y+s*a,vx:n,vy:s},e)},l=function(t,e){var i=s(t,e.origin),n=i.x*t.options.radius,o=i.y*t.options.radius;return r({x0:t.x-n,y0:t.y-o,x1:t.x+n,y1:t.y+o,vx:i.x,vy:i.y},e)},c=function(t,e){var i=s(t,e.origin),n=t.x,o=t.y,a=0,l=0;return t.horizontal?(n=Math.min(t.x,t.base),a=Math.abs(t.base-t.x)):(o=Math.min(t.y,t.base),l=Math.abs(t.base-t.y)),r({x0:n,y0:o+l,x1:n+a,y1:o,vx:i.x,vy:i.y},e)},h=function(t,e){var i=s(t,e.origin);return r({x0:t.x,y0:t.y,x1:t.x+(t.width||0),y1:t.y+(t.height||0),vx:i.x,vy:i.y},e)},u=function(t){return Math.round(t*i)/i};function d(t,e){var i=e.chart.getDatasetMeta(e.datasetIndex).vScale;if(!i)return null;if(void 0!==i.xCenter&&void 0!==i.yCenter)return{x:i.xCenter,y:i.yCenter};var n=i.getBasePixel();return t.horizontal?{x:n,y:null}:{x:null,y:n}}function f(t,e,i){var n=t.shadowBlur,s=i.stroked,o=u(i.x),r=u(i.y),a=u(i.w);s&&t.strokeText(e,o,r,a),i.filled&&(n&&s&&(t.shadowBlur=0),t.fillText(e,o,r,a),n&&s&&(t.shadowBlur=n))}var p=function(t,e,i,n){var s=this;s._config=t,s._index=n,s._model=null,s._rects=null,s._ctx=e,s._el=i};t.merge(p.prototype,{_modelize:function(i,s,o,r){var u,f=this,p=f._index,g=t.toFont(t.resolve([o.font,{}],r,p)),m=t.resolve([o.color,e.defaults.color],r,p);return{align:t.resolve([o.align,"center"],r,p),anchor:t.resolve([o.anchor,"center"],r,p),area:r.chart.chartArea,backgroundColor:t.resolve([o.backgroundColor,null],r,p),borderColor:t.resolve([o.borderColor,null],r,p),borderRadius:t.resolve([o.borderRadius,0],r,p),borderWidth:t.resolve([o.borderWidth,0],r,p),clamp:t.resolve([o.clamp,!1],r,p),clip:t.resolve([o.clip,!1],r,p),color:m,display:i,font:g,lines:s,offset:t.resolve([o.offset,4],r,p),opacity:t.resolve([o.opacity,1],r,p),origin:d(f._el,r),padding:t.toPadding(t.resolve([o.padding,4],r,p)),positioner:(u=f._el,u instanceof e.ArcElement?a:u instanceof e.PointElement?l:u instanceof e.BarElement?c:h),rotation:t.resolve([o.rotation,0],r,p)*(Math.PI/180),size:n(f._ctx,s,g),textAlign:t.resolve([o.textAlign,"start"],r,p),textShadowBlur:t.resolve([o.textShadowBlur,0],r,p),textShadowColor:t.resolve([o.textShadowColor,m],r,p),textStrokeColor:t.resolve([o.textStrokeColor,m],r,p),textStrokeWidth:t.resolve([o.textStrokeWidth,0],r,p)}},update:function(e){var i,n,s,o=this,r=null,a=null,l=o._index,c=o._config,h=t.resolve([c.display,!0],e,l);h&&(i=e.dataset.data[l],n=t.valueOrDefault(t.callback(c.formatter,[i,e]),i),(s=t.isNullOrUndef(n)?[]:function(e){var i,n=[];for(e=[].concat(e);e.length;)"string"==typeof(i=e.pop())?n.unshift.apply(n,i.split("\n")):Array.isArray(i)?e.push.apply(e,i):t.isNullOrUndef(e)||n.unshift(""+i);return n}(n)).length&&(a=function(t){var e=t.borderWidth||0,i=t.padding,n=t.size.height,s=t.size.width,o=-s/2,r=-n/2;return{frame:{x:o-i.left-e,y:r-i.top-e,w:s+i.width+2*e,h:n+i.height+2*e},text:{x:o,y:r,w:s,h:n}}}(r=o._modelize(h,s,c,e)))),o._model=r,o._rects=a},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(t,e){var i,n=t.ctx,s=this._model,o=this._rects;this.visible()&&(n.save(),s.clip&&(i=s.area,n.beginPath(),n.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),n.clip()),n.globalAlpha=function(t,e,i){return Math.max(t,Math.min(e,i))}(0,s.opacity,1),n.translate(u(e.x),u(e.y)),n.rotate(s.rotation),function(t,e,i){var n=i.backgroundColor,s=i.borderColor,o=i.borderWidth;(n||s&&o)&&(t.beginPath(),function(t,e,i,n,s,o){var r=Math.PI/2;if(o){var a=Math.min(o,s/2,n/2),l=e+a,c=i+a,h=e+n-a,u=i+s-a;t.moveTo(e,c),l<h&&c<u?(t.arc(l,c,a,-Math.PI,-r),t.arc(h,c,a,-r,0),t.arc(h,u,a,0,r),t.arc(l,u,a,r,Math.PI)):l<h?(t.moveTo(l,i),t.arc(h,c,a,-r,r),t.arc(l,c,a,r,Math.PI+r)):c<u?(t.arc(l,c,a,-Math.PI,0),t.arc(l,u,a,0,Math.PI)):t.arc(l,c,a,-Math.PI,Math.PI),t.closePath(),t.moveTo(e,i)}else t.rect(e,i,n,s)}(t,u(e.x)+o/2,u(e.y)+o/2,u(e.w)-o,u(e.h)-o,i.borderRadius),t.closePath(),n&&(t.fillStyle=n,t.fill()),s&&o&&(t.strokeStyle=s,t.lineWidth=o,t.lineJoin="miter",t.stroke()))}(n,o.frame,s),function(t,e,i,n){var s,o=n.textAlign,r=n.color,a=!!r,l=n.font,c=e.length,h=n.textStrokeColor,u=n.textStrokeWidth,d=h&&u;if(c&&(a||d))for(i=function(t,e,i){var n=i.lineHeight,s=t.w,o=t.x;return"center"===e?o+=s/2:"end"!==e&&"right"!==e||(o+=s),{h:n,w:s,x:o,y:t.y+n/2}}(i,o,l),t.font=l.string,t.textAlign=o,t.textBaseline="middle",t.shadowBlur=n.textShadowBlur,t.shadowColor=n.textShadowColor,a&&(t.fillStyle=r),d&&(t.lineJoin="round",t.lineWidth=u,t.strokeStyle=h),s=0,c=e.length;s<c;++s)f(t,e[s],{stroked:d,filled:a,w:i.w,x:i.x,y:i.y+i.h*s})}(n,s.lines,o.text,s),n.restore())}});var g=Number.MIN_SAFE_INTEGER||-9007199254740991,m=Number.MAX_SAFE_INTEGER||9007199254740991;function x(t,e,i){var n=Math.cos(i),s=Math.sin(i),o=e.x,r=e.y;return{x:o+n*(t.x-o)-s*(t.y-r),y:r+s*(t.x-o)+n*(t.y-r)}}function b(t,e){var i,n,s,o,r,a=m,l=g,c=e.origin;for(i=0;i<t.length;++i)s=(n=t[i]).x-c.x,o=n.y-c.y,r=e.vx*s+e.vy*o,a=Math.min(a,r),l=Math.max(l,r);return{min:a,max:l}}function v(t,e){var i=e.x-t.x,n=e.y-t.y,s=Math.sqrt(i*i+n*n);return{vx:(e.x-t.x)/s,vy:(e.y-t.y)/s,origin:t,ln:s}}var y=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};function $(t,e,i){var n=e.positioner(t,e),s=n.vx,o=n.vy;if(!s&&!o)return{x:n.x,y:n.y};var r=i.w,a=i.h,l=e.rotation,c=Math.abs(r/2*Math.cos(l))+Math.abs(a/2*Math.sin(l)),h=Math.abs(r/2*Math.sin(l))+Math.abs(a/2*Math.cos(l)),u=1/Math.max(Math.abs(s),Math.abs(o));return c*=s*u,h*=o*u,c+=e.offset*s,h+=e.offset*o,{x:n.x+c,y:n.y+h}}t.merge(y.prototype,{center:function(){var t=this._rect;return{x:t.x+t.w/2,y:t.y+t.h/2}},update:function(t,e,i){this._rotation=i,this._rect={x:e.x+t.x,y:e.y+t.y,w:e.w,h:e.h}},contains:function(t){var e=this,i=e._rect;return!((t=x(t,e.center(),-e._rotation)).x<i.x-1||t.y<i.y-1||t.x>i.x+i.w+2||t.y>i.y+i.h+2)},intersects:function(t){var e,i,n,s=this._points(),o=t._points(),r=[v(s[0],s[1]),v(s[0],s[3])];for(this._rotation!==t._rotation&&r.push(v(o[0],o[1]),v(o[0],o[3])),e=0;e<r.length;++e)if(i=b(s,r[e]),n=b(o,r[e]),i.max<n.min||n.max<i.min)return!1;return!0},_points:function(){var t=this,e=t._rect,i=t._rotation,n=t.center();return[x({x:e.x,y:e.y},n,i),x({x:e.x+e.w,y:e.y},n,i),x({x:e.x+e.w,y:e.y+e.h},n,i),x({x:e.x,y:e.y+e.h},n,i)]}});var _={prepare:function(t){var e,i,n,s,o,r=[];for(e=0,n=t.length;e<n;++e)for(i=0,s=t[e].length;i<s;++i)o=t[e][i],r.push(o),o.$layout={_box:new y,_hidable:!1,_visible:!0,_set:e,_idx:o._index};return r.sort((function(t,e){var i=t.$layout,n=e.$layout;return i._idx===n._idx?n._set-i._set:n._idx-i._idx})),this.update(r),r},update:function(t){var e,i,n,s,o,r=!1;for(e=0,i=t.length;e<i;++e)s=(n=t[e]).model(),(o=n.$layout)._hidable=s&&"auto"===s.display,o._visible=n.visible(),r|=o._hidable;r&&function(t){var e,i,n,s,o,r,a;for(e=0,i=t.length;e<i;++e)(s=(n=t[e]).$layout)._visible&&(a=new Proxy(n._el,{get:(t,e)=>t.getProps([e],!0)[e]}),o=n.geometry(),r=$(a,n.model(),o),s._box.update(r,o,n.rotation()));!function(t,e){var i,n,s,o;for(i=t.length-1;i>=0;--i)for(s=t[i].$layout,n=i-1;n>=0&&s._visible;--n)(o=t[n].$layout)._visible&&s._box.intersects(o._box)&&e(s,o)}(t,(function(t,e){var i=t._hidable,n=e._hidable;i&&n||n?e._visible=!1:i&&(t._visible=!1)}))}(t)},lookup:function(t,e){var i,n;for(i=t.length-1;i>=0;--i)if((n=t[i].$layout)&&n._visible&&n._box.contains(e))return t[i];return null},draw:function(t,e){var i,n,s,o,r,a;for(i=0,n=e.length;i<n;++i)(o=(s=e[i]).$layout)._visible&&(r=s.geometry(),a=$(s._el,s.model(),r),o._box.update(a,r,s.rotation()),s.draw(t,a))}},w="$default";function k(e,i,n,s){if(i){var o,r=n.$context,a=n.$groups;i[a._set]&&(o=i[a._set][a._key])&&!0===t.callback(o,[r,s])&&(e.$datalabels._dirty=!0,n.update(r))}}return{id:"datalabels",defaults:{align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:function(e){if(t.isNullOrUndef(e))return null;var i,n,s,o=e;if(t.isObject(e))if(t.isNullOrUndef(e.label))if(t.isNullOrUndef(e.r))for(o="",s=0,n=(i=Object.keys(e)).length;s<n;++s)o+=(0!==s?", ":"")+i[s]+": "+e[i[s]];else o=e.r;else o=e.label;return""+o},labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},beforeInit:function(t){t.$datalabels={_actives:[]}},beforeUpdate:function(t){var e=t.$datalabels;e._listened=!1,e._listeners={},e._datasets=[],e._labels=[]},afterDatasetUpdate:function(e,i,n){var s,o,r,a,l,c,h,u,d=i.index,f=e.$datalabels,g=f._datasets[d]=[],m=e.isDatasetVisible(d),x=e.data.datasets[d],b=function(e,i){var n,s,o,r=e.datalabels,a=[];return!1===r?null:(!0===r&&(r={}),i=t.merge({},[i,r]),s=i.labels||{},o=Object.keys(s),delete i.labels,o.length?o.forEach((function(e){s[e]&&a.push(t.merge({},[i,s[e],{_key:e}]))})):a.push(i),n=a.reduce((function(e,i){return t.each(i.listeners||{},(function(t,n){e[n]=e[n]||{},e[n][i._key||w]=t})),delete i.listeners,e}),{}),{labels:a,listeners:n})}(x,n),v=i.meta.data||[],y=e.ctx;for(y.save(),s=0,r=v.length;s<r;++s)if((h=v[s]).$datalabels=[],m&&h&&e.getDataVisibility(s)&&!h.skip)for(o=0,a=b.labels.length;o<a;++o)c=(l=b.labels[o])._key,(u=new p(l,y,h,s)).$groups={_set:d,_key:c||w},u.$context={active:!1,chart:e,dataIndex:s,dataset:x,datasetIndex:d},u.update(u.$context),h.$datalabels.push(u),g.push(u);
40y.restore(),t.merge(f._listeners,b.listeners,{merger:function(t,e,n){e[t]=e[t]||{},e[t][i.index]=n[t],f._listened=!0}})},afterUpdate:function(t){t.$datalabels._labels=_.prepare(t.$datalabels._datasets)},afterDatasetsDraw:function(t){_.draw(t,t.$datalabels._labels)},beforeEvent:function(t,e){if(t.$datalabels._listened){var i=e.event;switch(i.type){case"mousemove":case"mouseout":!function(t,e){var i,n,s=t.$datalabels,o=s._listeners;if(o.enter||o.leave){if("mousemove"===e.type)n=_.lookup(s._labels,e);else if("mouseout"!==e.type)return;i=s._hovered,s._hovered=n,function(t,e,i,n,s){var o,r;(i||n)&&(i?n?i!==n&&(r=o=!0):r=!0:o=!0,r&&k(t,e.leave,i,s),o&&k(t,e.enter,n,s))}(t,o,i,n,e)}}(t,i);break;case"click":!function(t,e){var i=t.$datalabels,n=i._listeners.click,s=n&&_.lookup(i._labels,e);s&&k(t,n,s,e)}(t,i)}}},afterEvent:function(t){var e,i,n,s,o,r,a,l=t.$datalabels,c=function(t,e){var i,n,s,o,r=t.slice(),a=[];for(i=0,s=e.length;i<s;++i)o=e[i],-1===(n=r.indexOf(o))?a.push([o,1]):r.splice(n,1);for(i=0,s=r.length;i<s;++i)a.push([r[i],-1]);return a}(l._actives,l._actives=t.getActiveElements());for(e=0,i=c.length;e<i;++e)if((o=c[e])[1])for(n=0,s=(a=o[0].element.$datalabels||[]).length;n<s;++n)(r=a[n]).$context.active=1===o[1],r.update(r.$context);(l._dirty||c.length)&&(_.update(l._labels),t.render()),delete l._dirty}}}));var wW,wH,mobile,unit=36,$body=$("body");function detectmobile(){wW=$(window).width(),wH=$(window).height(),mobile=wW<641}function downloadFile(t,e){"use strict";var i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType="blob",i.onload=function(t){var n=i.response;if(window.navigator.msSaveBlob)window.navigator.msSaveBlob(n,e);else{var s=window.URL.createObjectURL(n),o=document.createElement("a");document.body.appendChild(o),o.href=s,o.download=e,o.click(),document.body.removeChild(o)}},i.send()}$(window).on("orientationchange resize",(function(){detectmobile()})),$((function(){detectmobile(),$(document).on("click",'a[href^="#"]',(function(){var t=$(this).attr("href"),e=$("#"==t||""==t?"html":t).offset().top-110;return $("html, body").animate({scrollTop:e},500,"swing"),!1}));var t=$("#scrolltop");t.length&&t.click((function(){$("html, body").animate({scrollTop:0},500,"swing")})),$(window).scroll((function(){$(this).scrollTop()>=10?$body.addClass("scrolled"):$body.removeClass("scrolled")}));var e=$("#search");$("#gnav");$("#search-show").click((function(){return e.show(),$body.addClass("modalshown"),!1})),$("#search-close").click((function(){return e.hide(),$body.removeClass("modalshown"),!1})),$("#show-nav").click((function(){return $body.addClass("menushown"),$body.addClass("modalshown"),!1})),$("#gnav-close").click((function(){return $body.removeClass("menushown"),$body.removeClass("modalshown"),!1}))})),$((function(){var t=$("#top-mv");if(t.length){var e=!1;!function(){var i=t.find("li.data");if(i.length){var n=20,s=7;mobile&&(n=33.33,s=5),i.each((function(){$(this).find(".data-bg").each((function(){var t=$(this);for(let e=0;e<s;e++){var i,o=$('<div class="arrow">');Math.random()>=.5&&o.addClass("rotate"),i=-n/2+(e-1)*n,o.css({top:0,left:i+"%"}),t.append(o)}var r=t.find(".arrow");setInterval((function(){e&&((r=t.find(".arrow")).each((function(){var t=$(this);Math.random()>=.5?t.addClass("rotate"):t.removeClass("rotate")})),r.animate({left:"+="+n+"%"},(function(){r.eq(s-1).prependTo(t).css("left",-1.5*n+"%")})))}),2e3)}))}))}}(),function(){var i,n,s,o=t,r=(o.find("ul"),o.find("li")),a=r.length,l=0;$navL=o.find(".nav-l"),$navR=o.find(".nav-r"),r.first().addClass("on"),r.first().hasClass("data")&&(e=!0);function c(){i=l==a-1?0:l+1,u()}function h(){i=0==l?a-1:l-1,u()}function u(){n=r.eq(i),s=r.eq(l),e=!!n.hasClass("data"),n.addClass("ready"),s.fadeOut(800,(function(){r.removeClass("on").removeClass("ready"),n.addClass("on"),s.show(),l=i}))}o.swipe({swipe:function(t,e,i,n,s){"right"==e&&(r.is(":animated")||h()),"left"==e&&(r.is(":animated")||c())},threshold:30,allowPageScroll:"vertical"}),$navL.length&&$navL.click((function(){r.is(":animated")||h()}));$navR.length&&$navR.click((function(){r.is(":animated")||c()}))}()}var i,n,s,o=$("#marquee");
40o.length&&(i=o.find("ul"),(n=o.find("li")).innerWidth(),n.length,s=0,n.each((function(){s+=$(this).innerWidth()})),i.width(s+10).addClass("ready")),$("#top-pj").length&&function(){var t=$("#pj-slider"),e=t.find("ul"),i=t.find("li"),n=0,s=i.length,o=t.find(".nav-r"),r=t.find(".nav-l"),a=0,l=0,c=0,h=0,u=!1;function d(){i.each((function(t){$(this).css("left",t*(n+h))}));var o=i.last(),r=i.first();o.clone().addClass("cloned").prependTo(e),r.clone().addClass("cloned").appendTo(e),i=t.find("li"),s+=2,f()}function f(){mobile?(n=.75*t.width(),h=.064*t.width()):(n=.25*t.width(),h=.03*t.width()),c=-l*(n+h);var s=(a-1)*(n+h);i.width(n),e.css({transform:"translateX("+c+"px)"}),e.find("li").each((function(t){$(this).css("left",s+t*(n+h))}));var o=0;i.each((function(){var t=$(this).height();t>o&&(o=t)})),t.height(o)}t.on("click","a",(function(){return!1})),d();var p,g=!1;function m(){l=a+1,b("next")}function x(){l=a-1,b("prev")}function b(o){u=!0,c=-l*(n+h),e.css({transform:"translateX("+c+"px)"}),setTimeout((function(){"next"==o&&(e.find("li").eq(2).clone().appendTo(e).css("left",(s-2+a)*(n+h)),e.find("li").first().remove()),"prev"==o&&(e.find("li").eq(s-3).clone().prependTo(e).css("left",(a-1)*(n+h)),e.find("li").last().remove()),i=t.find("li")}),10),u=!1,a=l,y()}$(window).on("orientationchange resize",(function(){!1!==g&&clearTimeout(g),g=setTimeout((function(){f()}),200)})),o.length&&o.click((function(){m()}));r.length&&r.click((function(){x()}));function v(){p=setInterval((function(){i.is(":animated")||m()}),3e3)}function y(){clearInterval(p),v()}v(),t.swipe({swipeStatus:function(i,n,s,o,r,a,l,h){if("cancel"!=n&&"end"!=n&&(e.addClass("disable-transition"),t.addClass("grabbing"),clearInterval(p),"left"==s?e.css("transform","translateX("+(c-o/2)+"px)"):"right"==s&&e.css("transform","translateX("+(c+o/2)+"px)")),"cancel"==n&&(e.removeClass("disable-transition"),t.removeClass("grabbing"),e.css("transform","translateX("+c+"px)"),o<3)){var d=$(i.target).parent("a");if(d.length){var f=d.attr("href");null!=f&&(window.location.href=f)}}if("end"==n){if(e.removeClass("disable-transition"),t.removeClass("grabbing"),"right"==s&&!u)return x(),!1;if("left"==s&&!u)return m(),!1;e.css("transform","translateX("+c+"px)")}},threshold:40,maxTimeThreshold:5e3,fingers:"all",allowPageScroll:"vertical",excludedElements:""})}();var r=$("#rec-slider");r.length&&function(){for(var t,e,i=r,n=(i.find("ul"),i.find("li")),s=n.find(".arrow"),o=n.length,a=0,l=i.find(".nav-b"),c=0,h=0;h<o;h++)l.append("<div>");function u(){var t=n.eq(c).innerHeight();i.height(t)}l.find("div:first-child").addClass("on"),n.first().addClass("on"),s.first().addClass("on"),u();var d,f=!1;function p(){c=a==o-1?0:a+1,m()}function g(){c=0==a?o-1:a-1,m()}function m(){t=$("#rec-slider li").eq(c),e=$("#rec-slider li").eq(a),t.addClass("ready"),t.find(".arrow").addClass("on"),u(),e.fadeOut(400,(function(){n.removeClass("on"),n.removeClass("ready"),t.addClass("on"),e.show(),e.find(".arrow").removeClass("on"),a=c})),l.find("div").removeClass("on"),l.find("div").eq(c).addClass("on"),b()}function x(){d=setInterval((function(){mobile||p()}),3e3)}function b(){clearInterval(d),x()}$(window).on("orientationchange resize",(function(){!1!==f&&clearTimeout(f),f=setTimeout((function(){u()}),200)})),l.find("div").click((function(){n.is(":animated")||(c=l.find("div").index(this),m())})),i.swipe({swipe:function(t,e,i,s,o){"right"==e&&(n.is(":animated")||g()),"left"==e&&(n.is(":animated")||p())},threshold:30,allowPageScroll:"vertical"}),x()}();var a=$("#show-all-pp");a.length&&a.click((function(){return $("#popular-post-list").find("li:nth-child(n+4)").fadeIn().css("display","flex"),$(this).parent().hide(),!1}))})),$((function(){var t=$(".search-result-list");t.length&&t.each((function(){var t=$(this),e=t.data("type"),i=t.next(".more");do{t.children("li:lt(12)").wrapAll('<ul class="'+e+'-list row"></ul>')}while(t.children("li").length);var n=$("ul."+e+"-list");n.hide(),n.first().show(),n.length>1?i.find("a").click((function(){var t=n.filter(":hidden").eq(0);return t.length?t.slideDown(200):i.remove(),!1})):i.hide()}))})),$((function(){var t=$("#sidebar");t.length&&(t.find(".parent").click((function(){$(this).toggleClass("on"),$(this).next(".child").slideToggle(200)})),t.find(":checked").parents(".child").slideToggle(200).prev(".parent").addClass("on"),$(".nav-block-ttl").click((function(){mobile&&($(this).toggleClass("on"),$(this).next(".nav-list, .search").slideToggle(200))})));var e,i,n=$("#contents-single");n.length&&(e=n.find(".wyswyg h2"),i=$("#contents-table"),e.length>
401&&e.each((function(t){var e=$(this),n=e.text(),s=$('<li><a href="#heading-'+t+'">'+n+"</a></li>");e.attr("id","heading-"+t),i.append(s)}))),$("#data-single").length&&function(){var t=$("#data-name").text(),e=$("#industry"),i=e.find("[value='その他']"),n=$("#dd-industry-other");$("#industry-other").change((function(){var t=$(this).val();i.attr("value","その他("+t+")")})),e.change((function(){$(this).val().startsWith("その他")?n.show():n.hide()}));var s=$("#purpose"),o=s.find("[value='その他']"),r=$("#dd-purpose-other"),a=$("#purpose-other"),l=!1;a.change((function(){var t=$(this).val();o.attr("value","その他("+t+")")})),s.change((function(){$(this).val().startsWith("その他")?(r.show(),l=!0):(r.hide(),l=!1)}));var c,h,u,d=$("#data-modal"),f=$("#data-thanks"),p=!1,g=!1;function m(){d.fadeOut(),u.data("modalshown",!1),$body.removeClass("modalshown")}$(".open-dl-modal").on("contextmenu",(function(){return!1})),$(".open-dl-modal").find("a").click((function(){var e=(u=$(this)).data("extensions"),i=u.text();i=$.trim(i),h=u.attr("href");var n=u.data("filename");if(c=n?t+"("+n+")":t,0==u.data("modalshown"))return console.log(c),g?mobile?location.href=h:downloadFile(h,c):(d.find("#data-dl-submit").removeClass().addClass(e),$("#data-submit").attr("value",i),d.find("input[name=data]").val(t),d.fadeIn(),u.data("modalshown",!0),$body.addClass("modalshown"),p=!0),!1})),document.addEventListener("wpcf7mailsent",(function(t){mobile?location.href=h:downloadFile(h,c),d.addClass("thanks"),g=!0}),!1),$("#modal-close").click((function(){return m(),!1})),$(window).keyup((function(t){p&&27==t.keyCode&&m()})),f.swipe({swipe:function(t,e,i,n,s){"up"==e&&m()},threshold:30});var x=$("<span>").addClass("wpcf7-not-valid-tip").text("入力してください。");$("#data-submit").click((function(){if(l&&0===a.val().length)return r.append(x),!1;x.remove()}))}()}));const colors=["#0000FF","#52CC94","#FF4D6F","#895F30","#CCC6B6","#A035BA","#F75819","#1DB6F2","#398200","#FFB55C"];function csvToObj(t){let e,i=csv.responseText.split(/\r\n|\n/),n=!1;for(let s=0;s<i.length;++s){let o=i[s].split(",");if(o.length>1)if(0==s)"media"==o[0]||"answer"==o[0]?(t.year=o.slice(2),n=!0):t.year=o.slice(1);else if(n){o[0]!=e&&(e=o[0],t[e]={});let i=o[1],n=o.slice(2);t[e][i]=n}else{1==s&&(e="利用/所有している",t[e]={});let i=o[0],n=o.slice(1);t[e][i]=n}}}$((function(){var t=$(".data-countup");if(t.length){var e=$("#data-tgl");if(e.length){var i,n=e.find("a");n.click((function(){return i!=$(this).data("target")&&(i=$(this).data("target"),$(".data-tgl-countup").find(".datum").each((function(){var t=$(this);t.data("tgl")==i?t.show():t.hide()})),r(".data-tgl-countup"),n.removeClass("on"),$(this).addClass("on")),!1}))}var s=t.find(".datum"),o=20;function r(e){(s=e?$(e).find(".datum"):t.find(".datum")).filter(":visible").each((function(){var t=$(this),e=[],i=t.text();if(-1!==(i=i.replace(/,/g,"")).indexOf(".")){!0;var n=String(i).split(".");n[1].length&&n[1].replace(/\r?\n/g,"").length}for(var s=10;s>=1;s--){var r=parseInt(i/10*s);r=parseFloat(i/10*s).toFixed(1),e.unshift(r)}t.data("counterup-nums",e),t.text("0");t.data("counterup-func",(function(){t.text(t.data("counterup-nums").shift()),t.data("counterup-nums").length?setTimeout(t.data("counterup-func"),o):(t.data("counterup-nums"),t.data("counterup-nums",null),t.data("counterup-func",null))})),setTimeout(t.data("counterup-func"),o)}))}s.filter(":first-child").css("opacity","1"),r()}Chart.register(ChartDataLabels);var a=$("#survey-chart");if(a.length){let m=$("#survey-ttl").text(),x=!1,b=[];$("#survey-annotation").length&&(x=!0,b.push($("#survey-annotation").text()),b.push(" "));let v={};csvToObj(v);const y=document.getElementById("survey-chart"),_=y.getContext("2d");let w,k,M,C,S=v.year,T="全体",D=0,P=[],E=a.attr("class");Chart.defaults.font.family="century-gothic, 'Noto Sans JP', sans-serif";const A={id:"customPlugins",beforeDraw:function(t,e){_.save(),_.fillStyle="white",_.fillRect(0,0,y.width,y.height),_.font="11px century-gothic, 'Noto Sans JP', sans-serif",_.textAlign="right";let i=t.height,n=t.width;_.fillStyle="#8E8B80",_.fillText("メディア環境研究所「メディア定点調査」",n-15,i-35),_.fillText("© 株式会社博報堂",n-17,i-55)},beforeInit(t){const e=t.legend.fit;t.legend.fit=function(){e.bind(t.legend)(),this.height+=20}}};!function(t){D=0,P=[];for(let e in v)"year"!=e&&(M="contact"==t?{label:e,data:v[e][T],borderWidth:0,borderColor:colors[D],backgroundColor:colors[D]}:{label:e,data:v[e][T],borderWidth:2,borderColor:colors[D],backgroundColor:colors[D],clip:!1},P.push(M),D==colors.length-1?D=0:D++)}(E),"contact"==E?(C="bar",k={responsive:!0,maintainAspectRatio:!1,layout:{padding:{bottom:80}},scales:{x:{stacked:!0},y:{stacked:!0,max:500,beginAtZero:!0,ticks:{callback:function(t,e,
40i){return t+"分"}}}},plugins:{title:{display:!0,text:m+"("+T+")",font:{size:15}},tooltip:{callbacks:{label:function(t){let e=t.dataset.label||"",i=t.dataIndex;return e&&(e+=": "),null!==t.parsed.y&&(e+=t.dataset.data[i]+"分"),e}}},datalabels:{anchor:"center",align:"center",formatter:function(t,e){return t&&!mobile?t+"分":""},font:{size:9},color:"white"}}}):(C="line",k={responsive:!0,maintainAspectRatio:!1,layout:{padding:{bottom:80}},scales:{y:{beginAtZero:!0,max:100,ticks:{callback:function(t,e,i){return t+"%"}}}},plugins:{title:{display:!0,text:m+"("+T+")",font:{size:14}},subtitle:{display:function(){return x},text:b,font:{size:12}},tooltip:{callbacks:{label:function(t){let e=t.dataset.label||"",i=t.dataIndex;return e&&(e+=": "),null!==t.parsed.y&&(e+=t.dataset.data[i]+"%"),e}}},datalabels:{anchor:"end",align:"end",formatter:function(t,e){return t&&!mobile?t+"%":""},font:{size:9,lineHeight:1},color:function(t){return t.dataset.borderColor},padding:0}}}),w=new Chart(_,{type:C,data:{labels:S,datasets:P},options:k,plugins:[A]});var l=$("#genage-tgl");if(l.length){var c=l.find("a");c.click((function(){return T!=$(this).data("target")&&(T=$(this).data("target"),c.removeClass("on"),$(this).addClass("on"),w&&function(t){D=0;let e=[];for(let t in v)"year"!=t&&e.push(v[t][T]);if(w){for(let t in e)w.data.datasets[t].data=e[t];w.options.plugins.title.text=m+"("+T+")",w.update()}}()),!1}))}var h=$("#dl-chart-as-img");h.length&&h.click((function(){return downloadFile(document.getElementById("survey-chart").toDataURL("image/jpeg",.8),m+".jpg"),!1}));var u=$("#dl-csv");u.length&&u.click((function(){return downloadFile($(this).attr("href"),m),!1}))}var d=$("#media-util-tgl");if(d.length){var f=d.find("a"),p=$("#media-util-contents").find(".media-util-block"),g=p.first().data("content");f.click((function(){return g!=$(this).data("target")&&(g=$(this).data("target"),p.each((function(){var t=$(this);t.data("content")==g?t.show():t.hide()})),r(),f.removeClass("on"),$(this).addClass("on")),!1}))}}));

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.