diff --git a/README.md b/README.md index b005fb9b..97cb9bff 100644 --- a/README.md +++ b/README.md @@ -183,7 +183,7 @@ Use of this software is governed by the Fair Source License included in the LICE In order to deal with the case of my death or this software becoming abandoned it has an open eventually clause where the licence will change exactly 3 years after the publish date of a version release. This means that if version 1.0.0 was released on 1 July 2010 then it can be taken using the listed alternate licence on 2 July 2013. This licence, version and time is all specified below. -After the following date 15 June the software version '1.3.10' is dual licenced under the Fair Source Licence included in the LICENSE.txt file or under the GNU General Public License Version 3 with terms specified at https://www.gnu.org/licenses/gpl-3.0.txt +After the following date 29 September 2020 the software version '1.3.11' is dual licenced under the Fair Source Licence included in the LICENSE.txt file or under the GNU General Public License Version 3 with terms specified at https://www.gnu.org/licenses/gpl-3.0.txt OWASP Database is licensed under https://creativecommons.org/licenses/by-sa/3.0/ sourced under Creative Commons from https://codecrawler.codeplex.com/ https://www.owasp.org/index.php/Category:OWASP_Code_Crawler and https://www.owasp.org/index.php/OWASP_Code_Review_Guide_Table_of_Contents this database was modified to JSON and with slight corrections to spelling and puncuation where applicable. @@ -193,7 +193,7 @@ File Classifier Database is licensed under https://creativecommons.org/licenses/ Change Log ========== -XX XXXX XXXX - 1.3.11 https://github.com/boyter/searchcode-server/projects/4 +29 September 2017 - 1.3.11 https://github.com/boyter/searchcode-server/projects/4 - Add link to repository source on repository overview page https://github.com/boyter/searchcode-server/issues/126 - Removed property index_queue_batch_size as it is no longer required - Change check_filerepo_changes to default size of 600 as check is now far more efficient https://github.com/boyter/searchcode-server/issues/133 diff --git a/src/main/resources/public/js/script.min.js b/src/main/resources/public/js/script.min.js index e302b267..64809aad 100644 --- a/src/main/resources/public/js/script.min.js +++ b/src/main/resources/public/js/script.min.js @@ -1,82 +1,82 @@ -(function(){function v(a){return function(c,k,e,d){k=P(k,d,4);var n=!E(c)&&q.keys(c),p=(n||c).length,t=0arguments.length&&(e=c[n?n[t]:t],t+=a);for(var z=k,h=e;0<=t&&p>t;t+=a)var y=n?n[t]:t,h=z(h,c[y],y,c);return h}}function f(a){return function(c,k,e){k=A(k,e);e=G(c);for(var d=0d;d+=a)if(k(c[d],d,c))return d;return-1}}function l(a,c,k){return function(d,n,p){var t=0,z=G(d);if("number"==typeof p)0p;p+=a)if(d[p]===n)return p;return-1}}function u(a,c){var k=L.length,e=a.constructor,e=q.isFunction(e)&&e.prototype||d,n="constructor";for(q.has(a,n)&&!q.contains(c,n)&&c.push(n);k--;)n=L[k],n in a&&a[n]!==e[n]&&!q.contains(c,n)&&c.push(n)}var w=this,x=w._,h=Array.prototype,d=Object.prototype,c=h.push,e=h.slice,a=d.toString,k=d.hasOwnProperty,n=Array.isArray,p=Object.keys,t=Function.prototype.bind, -z=Object.create,y=function(){},q=function(a){return a instanceof q?a:this instanceof q?void(this._wrapped=a):new q(a)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=q),exports._=q):w._=q;q.VERSION="1.8.3";var P=function(a,c,k){if(void 0===c)return a;switch(null==k?3:k){case 1:return function(k){return a.call(c,k)};case 2:return function(k,e){return a.call(c,k,e)};case 3:return function(k,e,d){return a.call(c,k,e,d)};case 4:return function(k,e,d,n){return a.call(c, -k,e,d,n)}}return function(){return a.apply(c,arguments)}},A=function(a,c,k){return null==a?q.identity:q.isFunction(a)?P(a,c,k):q.isObject(a)?q.matcher(a):q.property(a)};q.iteratee=function(a,c){return A(a,c,1/0)};var F=function(a,c){return function(k){var e=arguments.length;if(2>e||null==k)return k;for(var d=1;e>d;d++)for(var n=arguments[d],p=a(n),t=p.length,z=0;t>z;z++){var h=p[z];c&&void 0!==k[h]||(k[h]=n[h])}return k}},D=function(a){if(!q.isObject(a))return{};if(z)return z(a);y.prototype=a;a=new y; -return y.prototype=null,a},C=function(a){return function(c){return null==c?void 0:c[a]}},B=Math.pow(2,53)-1,G=C("length"),E=function(a){a=G(a);return"number"==typeof a&&0<=a&&B>=a};q.each=q.forEach=function(a,c,k){c=P(c,k);var e;if(E(a))for(k=0,e=a.length;e>k;k++)c(a[k],k,a);else{var d=q.keys(a);k=0;for(e=d.length;e>k;k++)c(a[d[k]],d[k],a)}return a};q.map=q.collect=function(a,c,k){c=A(c,k);k=!E(a)&&q.keys(a);for(var e=(k||a).length,d=Array(e),n=0;e>n;n++){var p=k?k[n]:n;d[n]=c(a[p],p,a)}return d}; -q.reduce=q.foldl=q.inject=v(1);q.reduceRight=q.foldr=v(-1);q.find=q.detect=function(a,c,k){var e;return e=E(a)?q.findIndex(a,c,k):q.findKey(a,c,k),void 0!==e&&-1!==e?a[e]:void 0};q.filter=q.select=function(a,c,k){var e=[];return c=A(c,k),q.each(a,function(a,k,d){c(a,k,d)&&e.push(a)}),e};q.reject=function(a,c,k){return q.filter(a,q.negate(A(c)),k)};q.every=q.all=function(a,c,k){c=A(c,k);k=!E(a)&&q.keys(a);for(var e=(k||a).length,d=0;e>d;d++){var n=k?k[d]:d;if(!c(a[n],n,a))return!1}return!0};q.some= -q.any=function(a,c,k){c=A(c,k);k=!E(a)&&q.keys(a);for(var e=(k||a).length,d=0;e>d;d++){var n=k?k[d]:d;if(c(a[n],n,a))return!0}return!1};q.contains=q.includes=q.include=function(a,c,k,e){return E(a)||(a=q.values(a)),("number"!=typeof k||e)&&(k=0),0<=q.indexOf(a,c,k)};q.invoke=function(a,c){var k=e.call(arguments,2),d=q.isFunction(c);return q.map(a,function(a){var e=d?c:a[c];return null==e?e:e.apply(a,k)})};q.pluck=function(a,c){return q.map(a,q.property(c))};q.where=function(a,c){return q.filter(a, -q.matcher(c))};q.findWhere=function(a,c){return q.find(a,q.matcher(c))};q.max=function(a,c,k){var e,d=-1/0,n=-1/0;if(null==c&&null!=a){a=E(a)?a:q.values(a);for(var p=0,t=a.length;t>p;p++)k=a[p],k>d&&(d=k)}else c=A(c,k),q.each(a,function(a,k,p){e=c(a,k,p);(e>n||e===-1/0&&d===-1/0)&&(d=a,n=e)});return d};q.min=function(a,c,k){var e,d=1/0,n=1/0;if(null==c&&null!=a){a=E(a)?a:q.values(a);for(var p=0,t=a.length;t>p;p++)k=a[p],d>k&&(d=k)}else c=A(c,k),q.each(a,function(a,k,p){e=c(a,k,p);(n>e||1/0===e&&1/ -0===d)&&(d=a,n=e)});return d};q.shuffle=function(a){for(var c=E(a)?a:q.values(a),k=c.length,e=Array(k),d=0;k>d;d++)a=q.random(0,d),a!==d&&(e[d]=e[a]),e[a]=c[d];return e};q.sample=function(a,c,k){return null==c||k?(E(a)||(a=q.values(a)),a[q.random(a.length-1)]):q.shuffle(a).slice(0,Math.max(0,c))};q.sortBy=function(a,c,k){return c=A(c,k),q.pluck(q.map(a,function(a,k,e){return{value:a,index:k,criteria:c(a,k,e)}}).sort(function(a,c){var k=a.criteria,e=c.criteria;if(k!==e){if(k>e||void 0===k)return 1; -if(e>k||void 0===e)return-1}return a.index-c.index}),"value")};var H=function(a){return function(c,k,e){var d={};return k=A(k,e),q.each(c,function(e,n){var p=k(e,n,c);a(d,e,p)}),d}};q.groupBy=H(function(a,c,k){q.has(a,k)?a[k].push(c):a[k]=[c]});q.indexBy=H(function(a,c,k){a[k]=c});q.countBy=H(function(a,c,k){q.has(a,k)?a[k]++:a[k]=1});q.toArray=function(a){return a?q.isArray(a)?e.call(a):E(a)?q.map(a,q.identity):q.values(a):[]};q.size=function(a){return null==a?0:E(a)?a.length:q.keys(a).length};q.partition= -function(a,c,k){c=A(c,k);var e=[],d=[];return q.each(a,function(a,k,n){(c(a,k,n)?e:d).push(a)}),[e,d]};q.first=q.head=q.take=function(a,c,k){return null==a?void 0:null==c||k?a[0]:q.initial(a,a.length-c)};q.initial=function(a,c,k){return e.call(a,0,Math.max(0,a.length-(null==c||k?1:c)))};q.last=function(a,c,k){return null==a?void 0:null==c||k?a[a.length-1]:q.rest(a,Math.max(0,a.length-c))};q.rest=q.tail=q.drop=function(a,c,k){return e.call(a,null==c||k?1:c)};q.compact=function(a){return q.filter(a, -q.identity)};var K=function(a,c,k,e){var d=[],n=0;e=e||0;for(var p=G(a);p>e;e++){var t=a[e];if(E(t)&&(q.isArray(t)||q.isArguments(t))){c||(t=K(t,c,k));var z=0,h=t.length;for(d.length+=h;h>z;)d[n++]=t[z++]}else k||(d[n++]=t)}return d};q.flatten=function(a,c){return K(a,c,!1)};q.without=function(a){return q.difference(a,e.call(arguments,1))};q.uniq=q.unique=function(a,c,k,e){q.isBoolean(c)||(e=k,k=c,c=!1);null!=k&&(k=A(k,e));e=[];for(var d=[],n=0,p=G(a);p>n;n++){var t=a[n],z=k?k(t,n,a):t;c?(n&&d=== -z||e.push(t),d=z):k?q.contains(d,z)||(d.push(z),e.push(t)):q.contains(e,t)||e.push(t)}return e};q.union=function(){return q.uniq(K(arguments,!0,!0))};q.intersection=function(a){for(var c=[],k=arguments.length,e=0,d=G(a);d>e;e++){var n=a[e];if(!q.contains(c,n)){for(var p=1;k>p&&q.contains(arguments[p],n);p++);p===k&&c.push(n)}}return c};q.difference=function(a){var c=K(arguments,!0,!0,1);return q.filter(a,function(a){return!q.contains(c,a)})};q.zip=function(){return q.unzip(arguments)};q.unzip=function(a){for(var c= -a&&q.max(a,G).length||0,k=Array(c),e=0;c>e;e++)k[e]=q.pluck(a,e);return k};q.object=function(a,c){for(var k={},e=0,d=G(a);d>e;e++)c?k[a[e]]=c[e]:k[a[e][0]]=a[e][1];return k};q.findIndex=f(1);q.findLastIndex=f(-1);q.sortedIndex=function(a,c,k,e){k=A(k,e,1);c=k(c);e=0;for(var d=G(a);d>e;){var n=Math.floor((e+d)/2);k(a[n])d;d++,a+=k)e[d]=a;return e};var I=function(a,c,k,e,d){if(!(e instanceof c))return a.apply(k,d);c=D(a.prototype);a=a.apply(c,d);return q.isObject(a)?a:c};q.bind=function(a,c){if(t&&a.bind===t)return t.apply(a,e.call(arguments,1));if(!q.isFunction(a))throw new TypeError("Bind must be called on a function");var k=e.call(arguments,2),d=function(){return I(a,d,c,this,k.concat(e.call(arguments)))};return d};q.partial=function(a){var c=e.call(arguments,1),k=function(){for(var e= -0,d=c.length,n=Array(d),p=0;d>p;p++)n[p]=c[p]===q?arguments[e++]:c[p];for(;e=e)throw Error("bindAll must be passed function names");for(c=1;e>c;c++)k=arguments[c],a[k]=q.bind(a[k],a);return a};q.memoize=function(a,c){var k=function(e){var d=k.cache,n=""+(c?c.apply(this,arguments):e);return q.has(d,n)||(d[n]=a.apply(this,arguments)),d[n]};return k.cache={},k};q.delay= -function(a,c){var k=e.call(arguments,2);return setTimeout(function(){return a.apply(null,k)},c)};q.defer=q.partial(q.delay,q,1);q.throttle=function(a,c,k){var e,d,n,p=null,t=0;k||(k={});var z=function(){t=!1===k.leading?0:q.now();p=null;n=a.apply(e,d);p||(e=d=null)};return function(){var h=q.now();t||!1!==k.leading||(t=h);var y=c-(h-t);return e=this,d=arguments,0>=y||y>c?(p&&(clearTimeout(p),p=null),t=h,n=a.apply(e,d),p||(e=d=null)):p||!1===k.trailing||(p=setTimeout(z,y)),n}};q.debounce=function(a, -c,k){var e,d,n,p,t,z=function(){var h=q.now()-p;c>h&&0<=h?e=setTimeout(z,c-h):(e=null,k||(t=a.apply(n,d),e||(n=d=null)))};return function(){n=this;d=arguments;p=q.now();var h=k&&!e;return e||(e=setTimeout(z,c)),h&&(t=a.apply(n,d),n=d=null),t}};q.wrap=function(a,c){return q.partial(c,a)};q.negate=function(a){return function(){return!a.apply(this,arguments)}};q.compose=function(){var a=arguments,c=a.length-1;return function(){for(var k=c,e=a[c].apply(this,arguments);k--;)e=a[k].call(this,e);return e}}; -q.after=function(a,c){return function(){return 1>--a?c.apply(this,arguments):void 0}};q.before=function(a,c){var k;return function(){return 0<--a&&(k=c.apply(this,arguments)),1>=a&&(c=null),k}};q.once=q.partial(q.before,2);var N=!{toString:null}.propertyIsEnumerable("toString"),L="valueOf isPrototypeOf toString propertyIsEnumerable hasOwnProperty toLocaleString".split(" ");q.keys=function(a){if(!q.isObject(a))return[];if(p)return p(a);var c=[],k;for(k in a)q.has(a,k)&&c.push(k);return N&&u(a,c),c}; -q.allKeys=function(a){if(!q.isObject(a))return[];var c=[],k;for(k in a)c.push(k);return N&&u(a,c),c};q.values=function(a){for(var c=q.keys(a),k=c.length,e=Array(k),d=0;k>d;d++)e[d]=a[c[d]];return e};q.mapObject=function(a,c,k){c=A(c,k);for(var e=q.keys(a),d=e.length,n={},p=0;d>p;p++)k=e[p],n[k]=c(a[k],k,a);return n};q.pairs=function(a){for(var c=q.keys(a),k=c.length,e=Array(k),d=0;k>d;d++)e[d]=[c[d],a[c[d]]];return e};q.invert=function(a){for(var c={},k=q.keys(a),e=0,d=k.length;d>e;e++)c[a[k[e]]]= -k[e];return c};q.functions=q.methods=function(a){var c=[],k;for(k in a)q.isFunction(a[k])&&c.push(k);return c.sort()};q.extend=F(q.allKeys);q.extendOwn=q.assign=F(q.keys);q.findKey=function(a,c,k){c=A(c,k);var e;k=q.keys(a);for(var d=0,n=k.length;n>d;d++)if(e=k[d],c(a[e],e,a))return e};q.pick=function(a,c,k){var e,d,n={},p=a;if(null==p)return n;q.isFunction(c)?(d=q.allKeys(p),e=P(c,k)):(d=K(arguments,!1,!1,1),e=function(a,c,k){return c in k},p=Object(p));for(var t=0,z=d.length;z>t;t++){var h=d[t], -y=p[h];e(y,h,p)&&(n[h]=y)}return n};q.omit=function(a,c,k){if(q.isFunction(c))c=q.negate(c);else{var e=q.map(K(arguments,!1,!1,1),String);c=function(a,c){return!q.contains(e,c)}}return q.pick(a,c,k)};q.defaults=F(q.allKeys,!0);q.create=function(a,c){var k=D(a);return c&&q.extendOwn(k,c),k};q.clone=function(a){return q.isObject(a)?q.isArray(a)?a.slice():q.extend({},a):a};q.tap=function(a,c){return c(a),a};q.isMatch=function(a,c){var k=q.keys(c),e=k.length;if(null==a)return!e;for(var d=Object(a),n= -0;e>n;n++){var p=k[n];if(c[p]!==d[p]||!(p in d))return!1}return!0};var M=function(c,k,e,d){if(c===k)return 0!==c||1/c===1/k;if(null==c||null==k)return c===k;c instanceof q&&(c=c._wrapped);k instanceof q&&(k=k._wrapped);var n=a.call(c);if(n!==a.call(k))return!1;switch(n){case "[object RegExp]":case "[object String]":return""+c==""+k;case "[object Number]":return+c!==+c?+k!==+k:0===+c?1/+c===1/k:+c===+k;case "[object Date]":case "[object Boolean]":return+c===+k}n="[object Array]"===n;if(!n){if("object"!= -typeof c||"object"!=typeof k)return!1;var p=c.constructor,t=k.constructor;if(p!==t&&!(q.isFunction(p)&&p instanceof p&&q.isFunction(t)&&t instanceof t)&&"constructor"in c&&"constructor"in k)return!1}e=e||[];d=d||[];for(p=e.length;p--;)if(e[p]===c)return d[p]===k;if(e.push(c),d.push(k),n){if(p=c.length,p!==k.length)return!1;for(;p--;)if(!M(c[p],k[p],e,d))return!1}else{var z,n=q.keys(c);if(p=n.length,q.keys(k).length!==p)return!1;for(;p--;)if(z=n[p],!q.has(k,z)||!M(c[z],k[z],e,d))return!1}return e.pop(), -d.pop(),!0};q.isEqual=function(a,c){return M(a,c)};q.isEmpty=function(a){return null==a?!0:E(a)&&(q.isArray(a)||q.isString(a)||q.isArguments(a))?0===a.length:0===q.keys(a).length};q.isElement=function(a){return!(!a||1!==a.nodeType)};q.isArray=n||function(c){return"[object Array]"===a.call(c)};q.isObject=function(a){var c=typeof a;return"function"===c||"object"===c&&!!a};q.each("Arguments Function String Number Date RegExp Error".split(" "),function(c){q["is"+c]=function(k){return a.call(k)==="[object "+ -c+"]"}});q.isArguments(arguments)||(q.isArguments=function(a){return q.has(a,"callee")});"function"!=typeof/./&&"object"!=typeof Int8Array&&(q.isFunction=function(a){return"function"==typeof a||!1});q.isFinite=function(a){return isFinite(a)&&!isNaN(parseFloat(a))};q.isNaN=function(a){return q.isNumber(a)&&a!==+a};q.isBoolean=function(c){return!0===c||!1===c||"[object Boolean]"===a.call(c)};q.isNull=function(a){return null===a};q.isUndefined=function(a){return void 0===a};q.has=function(a,c){return null!= -a&&k.call(a,c)};q.noConflict=function(){return w._=x,this};q.identity=function(a){return a};q.constant=function(a){return function(){return a}};q.noop=function(){};q.property=C;q.propertyOf=function(a){return null==a?function(){}:function(c){return a[c]}};q.matcher=q.matches=function(a){return a=q.extendOwn({},a),function(c){return q.isMatch(c,a)}};q.times=function(a,c,k){var e=Array(Math.max(0,a));c=P(c,k,1);for(k=0;a>k;k++)e[k]=c(k);return e};q.random=function(a,c){return null==c&&(c=a,a=0),a+Math.floor(Math.random()* -(c-a+1))};q.now=Date.now||function(){return(new Date).getTime()};n={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"};F=q.invert(n);C=function(a){var c=function(c){return a[c]},k="(?:"+q.keys(a).join("|")+")",e=RegExp(k),d=RegExp(k,"g");return function(a){return a=null==a?"":""+a,e.test(a)?a.replace(d,c):a}};q.escape=C(n);q.unescape=C(F);q.result=function(a,c,k){c=null==a?void 0:a[c];return void 0===c&&(c=k),q.isFunction(c)?c.call(a):c};var S=0;q.uniqueId=function(a){var c= -++S+"";return a?a+c:c};q.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var W=/(.)^/,Z={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Y=/\\|'|\r|\n|\u2028|\u2029/g,Q=function(a){return"\\"+Z[a]};q.template=function(a,c,k){!c&&k&&(c=k);c=q.defaults({},c,q.templateSettings);k=RegExp([(c.escape||W).source,(c.interpolate||W).source,(c.evaluate||W).source].join("|")+"|$","g");var e=0,d="__p+='";a.replace(k,function(c,k,n, -p,t){return d+=a.slice(e,t).replace(Y,Q),e=t+c.length,k?d+="'+\n((__t=("+k+"))==null?'':_.escape(__t))+\n'":n?d+="'+\n((__t=("+n+"))==null?'':__t)+\n'":p&&(d+="';\n"+p+"\n__p+='"),c});d+="';\n";c.variable||(d="with(obj||{}){\n"+d+"}\n");d="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+d+"return __p;\n";try{var n=new Function(c.variable||"obj","_",d)}catch(p){throw p.source=d,p;}k=function(a){return n.call(this,a,q)};return k.source="function("+(c.variable|| -"obj")+"){\n"+d+"}",k};q.chain=function(a){a=q(a);return a._chain=!0,a};var T=function(a,c){return a._chain?q(c).chain():c};q.mixin=function(a){q.each(q.functions(a),function(k){var e=q[k]=a[k];q.prototype[k]=function(){var a=[this._wrapped];return c.apply(a,arguments),T(this,e.apply(q,a))}})};q.mixin(q);q.each("pop push reverse shift sort splice unshift".split(" "),function(a){var c=h[a];q.prototype[a]=function(){var k=this._wrapped;return c.apply(k,arguments),"shift"!==a&&"splice"!==a||0!==k.length|| -delete k[0],T(this,k)}});q.each(["concat","join","slice"],function(a){var c=h[a];q.prototype[a]=function(){return T(this,c.apply(this._wrapped,arguments))}});q.prototype.value=function(){return this._wrapped};q.prototype.valueOf=q.prototype.toJSON=q.prototype.value;q.prototype.toString=function(){return""+this._wrapped};"function"==typeof define&&define.amd&&define("underscore",[],function(){return q})}).call(this);(function(){function v(f,l,u){this.maxSize_=f||-1;this.debug_=l||!1;this.storage_=u||new v.BasicCacheStorage;this.fillFactor_=.75;this.stats_={};this.stats_.hits=0;this.stats_.misses=0;this.log_("Initialized cache with size "+f)}v.Priority={LOW:1,NORMAL:2,HIGH:4};v.BasicCacheStorage=function(){this.items_={};this.count_=0};v.BasicCacheStorage.prototype.get=function(f){return this.items_[f]};v.BasicCacheStorage.prototype.set=function(f,l){"undefined"===typeof this.get(f)&&this.count_++;this.items_[f]= +(function(){function v(a){return function(c,d,k,e){d=T(d,e,4);var n=!E(c)&&q.keys(c),p=(n||c).length,t=0arguments.length&&(k=c[n?n[t]:t],t+=a);for(var A=d,h=k;0<=t&&p>t;t+=a)var z=n?n[t]:t,h=A(h,c[z],z,c);return h}}function f(a){return function(c,d,k){d=x(d,k);k=F(c);for(var e=0e;e+=a)if(d(c[e],e,c))return e;return-1}}function l(a,d,k){return function(e,n,p){var t=0,A=F(e);if("number"==typeof p)0p;p+=a)if(e[p]===n)return p;return-1}}function u(a,c){var d=L.length,k=a.constructor,k=q.isFunction(k)&&k.prototype||e,n="constructor";for(q.has(a,n)&&!q.contains(c,n)&&c.push(n);d--;)n=L[d],n in a&&a[n]!==k[n]&&!q.contains(c,n)&&c.push(n)}var w=this,y=w._,h=Array.prototype,e=Object.prototype,d=h.push,c=h.slice,a=e.toString,k=e.hasOwnProperty,n=Array.isArray,p=Object.keys,t=Function.prototype.bind, +A=Object.create,z=function(){},q=function(a){return a instanceof q?a:this instanceof q?void(this._wrapped=a):new q(a)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=q),exports._=q):w._=q;q.VERSION="1.8.3";var T=function(a,c,k){if(void 0===c)return a;switch(null==k?3:k){case 1:return function(k){return a.call(c,k)};case 2:return function(k,d){return a.call(c,k,d)};case 3:return function(k,d,e){return a.call(c,k,d,e)};case 4:return function(k,d,e,n){return a.call(c, +k,d,e,n)}}return function(){return a.apply(c,arguments)}},x=function(a,c,k){return null==a?q.identity:q.isFunction(a)?T(a,c,k):q.isObject(a)?q.matcher(a):q.property(a)};q.iteratee=function(a,c){return x(a,c,1/0)};var G=function(a,c){return function(k){var d=arguments.length;if(2>d||null==k)return k;for(var e=1;d>e;e++)for(var n=arguments[e],p=a(n),t=p.length,A=0;t>A;A++){var h=p[A];c&&void 0!==k[h]||(k[h]=n[h])}return k}},D=function(a){if(!q.isObject(a))return{};if(A)return A(a);z.prototype=a;a=new z; +return z.prototype=null,a},C=function(a){return function(k){return null==k?void 0:k[a]}},B=Math.pow(2,53)-1,F=C("length"),E=function(a){a=F(a);return"number"==typeof a&&0<=a&&B>=a};q.each=q.forEach=function(a,k,c){k=T(k,c);var d;if(E(a))for(c=0,d=a.length;d>c;c++)k(a[c],c,a);else{var e=q.keys(a);c=0;for(d=e.length;d>c;c++)k(a[e[c]],e[c],a)}return a};q.map=q.collect=function(a,c,k){c=x(c,k);k=!E(a)&&q.keys(a);for(var d=(k||a).length,e=Array(d),n=0;d>n;n++){var p=k?k[n]:n;e[n]=c(a[p],p,a)}return e}; +q.reduce=q.foldl=q.inject=v(1);q.reduceRight=q.foldr=v(-1);q.find=q.detect=function(a,c,k){var d;return d=E(a)?q.findIndex(a,c,k):q.findKey(a,c,k),void 0!==d&&-1!==d?a[d]:void 0};q.filter=q.select=function(a,c,k){var d=[];return c=x(c,k),q.each(a,function(a,k,e){c(a,k,e)&&d.push(a)}),d};q.reject=function(a,c,k){return q.filter(a,q.negate(x(c)),k)};q.every=q.all=function(a,c,k){c=x(c,k);k=!E(a)&&q.keys(a);for(var d=(k||a).length,e=0;d>e;e++){var n=k?k[e]:e;if(!c(a[n],n,a))return!1}return!0};q.some= +q.any=function(a,k,c){k=x(k,c);c=!E(a)&&q.keys(a);for(var d=(c||a).length,e=0;d>e;e++){var n=c?c[e]:e;if(k(a[n],n,a))return!0}return!1};q.contains=q.includes=q.include=function(a,c,k,d){return E(a)||(a=q.values(a)),("number"!=typeof k||d)&&(k=0),0<=q.indexOf(a,c,k)};q.invoke=function(a,k){var d=c.call(arguments,2),e=q.isFunction(k);return q.map(a,function(a){var c=e?k:a[k];return null==c?c:c.apply(a,d)})};q.pluck=function(a,k){return q.map(a,q.property(k))};q.where=function(a,k){return q.filter(a, +q.matcher(k))};q.findWhere=function(a,k){return q.find(a,q.matcher(k))};q.max=function(a,k,c){var d,e=-1/0,n=-1/0;if(null==k&&null!=a){a=E(a)?a:q.values(a);for(var p=0,t=a.length;t>p;p++)c=a[p],c>e&&(e=c)}else k=x(k,c),q.each(a,function(a,c,p){d=k(a,c,p);(d>n||d===-1/0&&e===-1/0)&&(e=a,n=d)});return e};q.min=function(a,k,c){var d,e=1/0,n=1/0;if(null==k&&null!=a){a=E(a)?a:q.values(a);for(var p=0,t=a.length;t>p;p++)c=a[p],e>c&&(e=c)}else k=x(k,c),q.each(a,function(a,c,p){d=k(a,c,p);(n>d||1/0===d&&1/ +0===e)&&(e=a,n=d)});return e};q.shuffle=function(a){for(var k=E(a)?a:q.values(a),c=k.length,d=Array(c),e=0;c>e;e++)a=q.random(0,e),a!==e&&(d[e]=d[a]),d[a]=k[e];return d};q.sample=function(a,k,c){return null==k||c?(E(a)||(a=q.values(a)),a[q.random(a.length-1)]):q.shuffle(a).slice(0,Math.max(0,k))};q.sortBy=function(a,k,c){return k=x(k,c),q.pluck(q.map(a,function(a,c,d){return{value:a,index:c,criteria:k(a,c,d)}}).sort(function(a,k){var c=a.criteria,d=k.criteria;if(c!==d){if(c>d||void 0===c)return 1; +if(d>c||void 0===d)return-1}return a.index-k.index}),"value")};var H=function(a){return function(k,c,d){var e={};return c=x(c,d),q.each(k,function(d,n){var p=c(d,n,k);a(e,d,p)}),e}};q.groupBy=H(function(a,c,k){q.has(a,k)?a[k].push(c):a[k]=[c]});q.indexBy=H(function(a,k,c){a[c]=k});q.countBy=H(function(a,k,c){q.has(a,c)?a[c]++:a[c]=1});q.toArray=function(a){return a?q.isArray(a)?c.call(a):E(a)?q.map(a,q.identity):q.values(a):[]};q.size=function(a){return null==a?0:E(a)?a.length:q.keys(a).length};q.partition= +function(a,c,k){c=x(c,k);var d=[],e=[];return q.each(a,function(a,k,n){(c(a,k,n)?d:e).push(a)}),[d,e]};q.first=q.head=q.take=function(a,c,k){return null==a?void 0:null==c||k?a[0]:q.initial(a,a.length-c)};q.initial=function(a,k,d){return c.call(a,0,Math.max(0,a.length-(null==k||d?1:k)))};q.last=function(a,c,k){return null==a?void 0:null==c||k?a[a.length-1]:q.rest(a,Math.max(0,a.length-c))};q.rest=q.tail=q.drop=function(a,k,d){return c.call(a,null==k||d?1:k)};q.compact=function(a){return q.filter(a, +q.identity)};var K=function(a,k,c,d){var e=[],n=0;d=d||0;for(var p=F(a);p>d;d++){var t=a[d];if(E(t)&&(q.isArray(t)||q.isArguments(t))){k||(t=K(t,k,c));var A=0,h=t.length;for(e.length+=h;h>A;)e[n++]=t[A++]}else c||(e[n++]=t)}return e};q.flatten=function(a,k){return K(a,k,!1)};q.without=function(a){return q.difference(a,c.call(arguments,1))};q.uniq=q.unique=function(a,k,c,d){q.isBoolean(k)||(d=c,c=k,k=!1);null!=c&&(c=x(c,d));d=[];for(var e=[],n=0,p=F(a);p>n;n++){var t=a[n],A=c?c(t,n,a):t;k?(n&&e=== +A||d.push(t),e=A):c?q.contains(e,A)||(e.push(A),d.push(t)):q.contains(d,t)||d.push(t)}return d};q.union=function(){return q.uniq(K(arguments,!0,!0))};q.intersection=function(a){for(var c=[],k=arguments.length,d=0,e=F(a);e>d;d++){var n=a[d];if(!q.contains(c,n)){for(var p=1;k>p&&q.contains(arguments[p],n);p++);p===k&&c.push(n)}}return c};q.difference=function(a){var c=K(arguments,!0,!0,1);return q.filter(a,function(a){return!q.contains(c,a)})};q.zip=function(){return q.unzip(arguments)};q.unzip=function(a){for(var c= +a&&q.max(a,F).length||0,k=Array(c),d=0;c>d;d++)k[d]=q.pluck(a,d);return k};q.object=function(a,c){for(var k={},d=0,e=F(a);e>d;d++)c?k[a[d]]=c[d]:k[a[d][0]]=a[d][1];return k};q.findIndex=f(1);q.findLastIndex=f(-1);q.sortedIndex=function(a,c,k,d){k=x(k,d,1);c=k(c);d=0;for(var e=F(a);e>d;){var n=Math.floor((d+e)/2);k(a[n])e;e++,a+=k)d[e]=a;return d};var I=function(a,c,k,d,e){if(!(d instanceof c))return a.apply(k,e);c=D(a.prototype);a=a.apply(c,e);return q.isObject(a)?a:c};q.bind=function(a,k){if(t&&a.bind===t)return t.apply(a,c.call(arguments,1));if(!q.isFunction(a))throw new TypeError("Bind must be called on a function");var d=c.call(arguments,2),e=function(){return I(a,e,k,this,d.concat(c.call(arguments)))};return e};q.partial=function(a){var k=c.call(arguments,1),d=function(){for(var c= +0,e=k.length,n=Array(e),p=0;e>p;p++)n[p]=k[p]===q?arguments[c++]:k[p];for(;c=d)throw Error("bindAll must be passed function names");for(c=1;d>c;c++)k=arguments[c],a[k]=q.bind(a[k],a);return a};q.memoize=function(a,c){var k=function(d){var e=k.cache,n=""+(c?c.apply(this,arguments):d);return q.has(e,n)||(e[n]=a.apply(this,arguments)),e[n]};return k.cache={},k};q.delay= +function(a,k){var d=c.call(arguments,2);return setTimeout(function(){return a.apply(null,d)},k)};q.defer=q.partial(q.delay,q,1);q.throttle=function(a,c,k){var d,e,n,p=null,t=0;k||(k={});var A=function(){t=!1===k.leading?0:q.now();p=null;n=a.apply(d,e);p||(d=e=null)};return function(){var h=q.now();t||!1!==k.leading||(t=h);var z=c-(h-t);return d=this,e=arguments,0>=z||z>c?(p&&(clearTimeout(p),p=null),t=h,n=a.apply(d,e),p||(d=e=null)):p||!1===k.trailing||(p=setTimeout(A,z)),n}};q.debounce=function(a, +k,c){var d,e,n,p,t,A=function(){var h=q.now()-p;k>h&&0<=h?d=setTimeout(A,k-h):(d=null,c||(t=a.apply(n,e),d||(n=e=null)))};return function(){n=this;e=arguments;p=q.now();var h=c&&!d;return d||(d=setTimeout(A,k)),h&&(t=a.apply(n,e),n=e=null),t}};q.wrap=function(a,k){return q.partial(k,a)};q.negate=function(a){return function(){return!a.apply(this,arguments)}};q.compose=function(){var a=arguments,k=a.length-1;return function(){for(var c=k,d=a[k].apply(this,arguments);c--;)d=a[c].call(this,d);return d}}; +q.after=function(a,k){return function(){return 1>--a?k.apply(this,arguments):void 0}};q.before=function(a,k){var c;return function(){return 0<--a&&(c=k.apply(this,arguments)),1>=a&&(k=null),c}};q.once=q.partial(q.before,2);var N=!{toString:null}.propertyIsEnumerable("toString"),L="valueOf isPrototypeOf toString propertyIsEnumerable hasOwnProperty toLocaleString".split(" ");q.keys=function(a){if(!q.isObject(a))return[];if(p)return p(a);var k=[],c;for(c in a)q.has(a,c)&&k.push(c);return N&&u(a,k),k}; +q.allKeys=function(a){if(!q.isObject(a))return[];var k=[],c;for(c in a)k.push(c);return N&&u(a,k),k};q.values=function(a){for(var k=q.keys(a),c=k.length,d=Array(c),e=0;c>e;e++)d[e]=a[k[e]];return d};q.mapObject=function(a,k,c){k=x(k,c);for(var d=q.keys(a),e=d.length,n={},p=0;e>p;p++)c=d[p],n[c]=k(a[c],c,a);return n};q.pairs=function(a){for(var k=q.keys(a),c=k.length,d=Array(c),e=0;c>e;e++)d[e]=[k[e],a[k[e]]];return d};q.invert=function(a){for(var k={},c=q.keys(a),d=0,e=c.length;e>d;d++)k[a[c[d]]]= +c[d];return k};q.functions=q.methods=function(a){var k=[],c;for(c in a)q.isFunction(a[c])&&k.push(c);return k.sort()};q.extend=G(q.allKeys);q.extendOwn=q.assign=G(q.keys);q.findKey=function(a,k,c){k=x(k,c);var d;c=q.keys(a);for(var e=0,n=c.length;n>e;e++)if(d=c[e],k(a[d],d,a))return d};q.pick=function(a,k,c){var d,e,n={},p=a;if(null==p)return n;q.isFunction(k)?(e=q.allKeys(p),d=T(k,c)):(e=K(arguments,!1,!1,1),d=function(a,k,c){return k in c},p=Object(p));for(var t=0,A=e.length;A>t;t++){var h=e[t], +z=p[h];d(z,h,p)&&(n[h]=z)}return n};q.omit=function(a,k,c){if(q.isFunction(k))k=q.negate(k);else{var d=q.map(K(arguments,!1,!1,1),String);k=function(a,k){return!q.contains(d,k)}}return q.pick(a,k,c)};q.defaults=G(q.allKeys,!0);q.create=function(a,k){var c=D(a);return k&&q.extendOwn(c,k),c};q.clone=function(a){return q.isObject(a)?q.isArray(a)?a.slice():q.extend({},a):a};q.tap=function(a,k){return k(a),a};q.isMatch=function(a,k){var c=q.keys(k),d=c.length;if(null==a)return!d;for(var e=Object(a),n= +0;d>n;n++){var p=c[n];if(k[p]!==e[p]||!(p in e))return!1}return!0};var M=function(k,c,d,e){if(k===c)return 0!==k||1/k===1/c;if(null==k||null==c)return k===c;k instanceof q&&(k=k._wrapped);c instanceof q&&(c=c._wrapped);var n=a.call(k);if(n!==a.call(c))return!1;switch(n){case "[object RegExp]":case "[object String]":return""+k==""+c;case "[object Number]":return+k!==+k?+c!==+c:0===+k?1/+k===1/c:+k===+c;case "[object Date]":case "[object Boolean]":return+k===+c}n="[object Array]"===n;if(!n){if("object"!= +typeof k||"object"!=typeof c)return!1;var p=k.constructor,t=c.constructor;if(p!==t&&!(q.isFunction(p)&&p instanceof p&&q.isFunction(t)&&t instanceof t)&&"constructor"in k&&"constructor"in c)return!1}d=d||[];e=e||[];for(p=d.length;p--;)if(d[p]===k)return e[p]===c;if(d.push(k),e.push(c),n){if(p=k.length,p!==c.length)return!1;for(;p--;)if(!M(k[p],c[p],d,e))return!1}else{var A,n=q.keys(k);if(p=n.length,q.keys(c).length!==p)return!1;for(;p--;)if(A=n[p],!q.has(c,A)||!M(k[A],c[A],d,e))return!1}return d.pop(), +e.pop(),!0};q.isEqual=function(a,k){return M(a,k)};q.isEmpty=function(a){return null==a?!0:E(a)&&(q.isArray(a)||q.isString(a)||q.isArguments(a))?0===a.length:0===q.keys(a).length};q.isElement=function(a){return!(!a||1!==a.nodeType)};q.isArray=n||function(k){return"[object Array]"===a.call(k)};q.isObject=function(a){var k=typeof a;return"function"===k||"object"===k&&!!a};q.each("Arguments Function String Number Date RegExp Error".split(" "),function(k){q["is"+k]=function(c){return a.call(c)==="[object "+ +k+"]"}});q.isArguments(arguments)||(q.isArguments=function(a){return q.has(a,"callee")});"function"!=typeof/./&&"object"!=typeof Int8Array&&(q.isFunction=function(a){return"function"==typeof a||!1});q.isFinite=function(a){return isFinite(a)&&!isNaN(parseFloat(a))};q.isNaN=function(a){return q.isNumber(a)&&a!==+a};q.isBoolean=function(k){return!0===k||!1===k||"[object Boolean]"===a.call(k)};q.isNull=function(a){return null===a};q.isUndefined=function(a){return void 0===a};q.has=function(a,c){return null!= +a&&k.call(a,c)};q.noConflict=function(){return w._=y,this};q.identity=function(a){return a};q.constant=function(a){return function(){return a}};q.noop=function(){};q.property=C;q.propertyOf=function(a){return null==a?function(){}:function(k){return a[k]}};q.matcher=q.matches=function(a){return a=q.extendOwn({},a),function(k){return q.isMatch(k,a)}};q.times=function(a,k,c){var d=Array(Math.max(0,a));k=T(k,c,1);for(c=0;a>c;c++)d[c]=k(c);return d};q.random=function(a,k){return null==k&&(k=a,a=0),a+Math.floor(Math.random()* +(k-a+1))};q.now=Date.now||function(){return(new Date).getTime()};n={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"};G=q.invert(n);C=function(a){var k=function(k){return a[k]},c="(?:"+q.keys(a).join("|")+")",d=RegExp(c),e=RegExp(c,"g");return function(a){return a=null==a?"":""+a,d.test(a)?a.replace(e,k):a}};q.escape=C(n);q.unescape=C(G);q.result=function(a,k,c){k=null==a?void 0:a[k];return void 0===k&&(k=c),q.isFunction(k)?k.call(a):k};var R=0;q.uniqueId=function(a){var k= +++R+"";return a?a+k:k};q.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var W=/(.)^/,Z={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Y=/\\|'|\r|\n|\u2028|\u2029/g,P=function(a){return"\\"+Z[a]};q.template=function(a,k,c){!k&&c&&(k=c);k=q.defaults({},k,q.templateSettings);c=RegExp([(k.escape||W).source,(k.interpolate||W).source,(k.evaluate||W).source].join("|")+"|$","g");var d=0,e="__p+='";a.replace(c,function(k,c,n, +p,t){return e+=a.slice(d,t).replace(Y,P),d=t+k.length,c?e+="'+\n((__t=("+c+"))==null?'':_.escape(__t))+\n'":n?e+="'+\n((__t=("+n+"))==null?'':__t)+\n'":p&&(e+="';\n"+p+"\n__p+='"),k});e+="';\n";k.variable||(e="with(obj||{}){\n"+e+"}\n");e="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+e+"return __p;\n";try{var n=new Function(k.variable||"obj","_",e)}catch(p){throw p.source=e,p;}c=function(a){return n.call(this,a,q)};return c.source="function("+(k.variable|| +"obj")+"){\n"+e+"}",c};q.chain=function(a){a=q(a);return a._chain=!0,a};var S=function(a,k){return a._chain?q(k).chain():k};q.mixin=function(a){q.each(q.functions(a),function(k){var c=q[k]=a[k];q.prototype[k]=function(){var a=[this._wrapped];return d.apply(a,arguments),S(this,c.apply(q,a))}})};q.mixin(q);q.each("pop push reverse shift sort splice unshift".split(" "),function(a){var k=h[a];q.prototype[a]=function(){var c=this._wrapped;return k.apply(c,arguments),"shift"!==a&&"splice"!==a||0!==c.length|| +delete c[0],S(this,c)}});q.each(["concat","join","slice"],function(a){var k=h[a];q.prototype[a]=function(){return S(this,k.apply(this._wrapped,arguments))}});q.prototype.value=function(){return this._wrapped};q.prototype.valueOf=q.prototype.toJSON=q.prototype.value;q.prototype.toString=function(){return""+this._wrapped};"function"==typeof define&&define.amd&&define("underscore",[],function(){return q})}).call(this);(function(){function v(f,l,u){this.maxSize_=f||-1;this.debug_=l||!1;this.storage_=u||new v.BasicCacheStorage;this.fillFactor_=.75;this.stats_={};this.stats_.hits=0;this.stats_.misses=0;this.log_("Initialized cache with size "+f)}v.Priority={LOW:1,NORMAL:2,HIGH:4};v.BasicCacheStorage=function(){this.items_={};this.count_=0};v.BasicCacheStorage.prototype.get=function(f){return this.items_[f]};v.BasicCacheStorage.prototype.set=function(f,l){"undefined"===typeof this.get(f)&&this.count_++;this.items_[f]= l};v.BasicCacheStorage.prototype.size=function(f,l){return this.count_};v.BasicCacheStorage.prototype.remove=function(f){var l=this.get(f);"undefined"!==typeof l&&this.count_--;delete this.items_[f];return l};v.BasicCacheStorage.prototype.keys=function(){var f=[],l;for(l in this.items_)f.push(l);return f};v.LocalStorageCacheStorage=function(f){this.prefix_="cache-storage."+(f||"default")+".";f=this.prefix_.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");this.regexp_=new RegExp("^"+f)};v.LocalStorageCacheStorage.prototype.get= function(f){return(f=window.localStorage[this.prefix_+f])?JSON.parse(f):null};v.LocalStorageCacheStorage.prototype.set=function(f,l){window.localStorage[this.prefix_+f]=JSON.stringify(l)};v.LocalStorageCacheStorage.prototype.size=function(f,l){return this.keys().length};v.LocalStorageCacheStorage.prototype.remove=function(f){var l=this.get(f);delete window.localStorage[this.prefix_+f];return l};v.LocalStorageCacheStorage.prototype.keys=function(){var f=[],l;for(l in window.localStorage)l.match(this.regexp_)&& f.push(l.replace(this.prefix_,""));return f};v.prototype.getItem=function(f){var l=this.storage_.get(f);null!=l&&(this.isExpired_(l)?(this.removeItem(f),l=null):l.lastAccessed=(new Date).getTime());(l=l?l.value:null)?(this.stats_.hits++,this.log_("Cache HIT for key "+f)):(this.stats_.misses++,this.log_("Cache MISS for key "+f));return l};v._CacheItem=function(f,l,u){if(!f)throw Error("key cannot be null or empty");this.key=f;this.value=l;u=u||{};u.expirationAbsolute&&(u.expirationAbsolute=u.expirationAbsolute.getTime()); u.priority||(u.priority=v.Priority.NORMAL);this.options=u;this.lastAccessed=(new Date).getTime()};v.prototype.setItem=function(f,l,u){null!=this.storage_.get(f)&&this.removeItem(f);this.addItem_(new v._CacheItem(f,l,u));this.log_("Setting key "+f);if(0this.maxSize_){var w=this;setTimeout(function(){w.purge_.call(w)},0)}};v.prototype.clear=function(){for(var f=this.storage_.keys(),l=0;l
    ",l=this.storage_.keys(),v=0;v"+w.key.toString()+" = "+w.value.toString()+"";return f+"
"};v.prototype.resize=function(f){this.log_("Resizing Cache from "+this.maxSize_+" to "+f);var l=this.maxSize_;this.maxSize_=f;0l||ff&&this.purge_();this.log_("Resizing done")};v.prototype.purge_=function(){var f= -[],l=Math.round(this.maxSize_*this.fillFactor_);0>this.maxSize_&&(l=this.size()*this.fillFactor_);for(var v=this.storage_.keys(),w=0;wl)for(f=f.sort(function(d,c){return d.options.priority!=c.options.priority?c.options.priority-d.options.priority:c.lastAccessed-d.lastAccessed});f.length>l;)v=f.pop(),this.removeItem(v.key);this.log_("Purged cached")};v.prototype.addItem_=function(f,l){try{this.storage_.set(f.key, +[],l=Math.round(this.maxSize_*this.fillFactor_);0>this.maxSize_&&(l=this.size()*this.fillFactor_);for(var v=this.storage_.keys(),w=0;wl)for(f=f.sort(function(e,d){return e.options.priority!=d.options.priority?d.options.priority-e.options.priority:d.lastAccessed-e.lastAccessed});f.length>l;)v=f.pop(),this.removeItem(v.key);this.log_("Purged cached")};v.prototype.addItem_=function(f,l){try{this.storage_.set(f.key, f)}catch(v){if(l)throw this.log_("Failed setting again, giving up: "+v.toString()),v;this.log_("Error adding item, purging and trying again: "+v.toString());this.purge_();this.addItem_(f,!0)}};v.prototype.removeItem=function(f){var l=this.storage_.remove(f);this.log_("removed key "+f);l&&l.options&&l.options.callback&&setTimeout(function(){l.options.callback.call(null,l.key,l.value)},0);return l?l.value:null};v.prototype.removeWhere=function(f){for(var l=this.storage_.keys(),v=0;va.length?"0"+a:a}var n=f(6);l.exports={getRgba:w,getHsla:x,getRgb:function(a){return(a=w(a))&&a.slice(0,3)},getHsl:function(a){return(a=x(a))&&a.slice(0,3)},getHwb:h,getAlpha:function(a){var c=w(a);return c?c[3]:(c=x(a))?c[3]:(c=h(a))?c[3]:void 0},hexString:function(a){return"#"+k(a[0])+k(a[1])+k(a[2])},rgbString:function(a,c){return 1>c||a[3]&&1>a[3]?d(a,c):"rgb("+a[0]+", "+a[1]+", "+a[2]+")"},rgbaString:d,percentString:function(a,k){return 1> -k||a[3]&&1>a[3]?c(a,k):"rgb("+Math.round(a[0]/255*100)+"%, "+Math.round(a[1]/255*100)+"%, "+Math.round(a[2]/255*100)+"%)"},percentaString:c,hslString:function(a,c){return 1>c||a[3]&&1>a[3]?e(a,c):"hsl("+a[0]+", "+a[1]+"%, "+a[2]+"%)"},hslaString:e,hwbString:function(a,c){return void 0===c&&(c=void 0!==a[3]?a[3]:1),"hwb("+a[0]+", "+a[1]+"%, "+a[2]+"%"+(void 0!==c&&1!==c?", "+c:"")+")"},keyword:function(a){return p[a.slice(0,3)]}};var p={},t;for(t in n)p[n[t]]=t},{6:6}],3:[function(f,l,u){var w=f(5), -x=f(2),h=function(d){if(d instanceof h)return d;if(!(this instanceof h))return new h(d);this.valid=!1;this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var c;"string"==typeof d?(c=x.getRgba(d),c?this.setValues("rgb",c):(c=x.getHsla(d))?this.setValues("hsl",c):(c=x.getHwb(d))&&this.setValues("hwb",c)):"object"==typeof d&&(c=d,void 0!==c.r||void 0!==c.red?this.setValues("rgb",c):void 0!==c.l||void 0!==c.lightness?this.setValues("hsl",c):void 0!==c.v||void 0!==c.value? -this.setValues("hsv",c):void 0!==c.w||void 0!==c.whiteness?this.setValues("hwb",c):void 0===c.c&&void 0===c.cyan||this.setValues("cmyk",c))};h.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb}, -hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var d=this.values;return 1!==d.alpha?d.hwb.concat([d.alpha]):d.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var d=this.values;return d.rgb.concat([d.alpha])},hslaArray:function(){var d=this.values;return d.hsl.concat([d.alpha])},alpha:function(d){return void 0===d?this.values.alpha:(this.setValues("alpha",d),this)},red:function(d){return this.setChannel("rgb",0,d)}, -green:function(d){return this.setChannel("rgb",1,d)},blue:function(d){return this.setChannel("rgb",2,d)},hue:function(d){return d&&(d%=360,d=0>d?360+d:d),this.setChannel("hsl",0,d)},saturation:function(d){return this.setChannel("hsl",1,d)},lightness:function(d){return this.setChannel("hsl",2,d)},saturationv:function(d){return this.setChannel("hsv",1,d)},whiteness:function(d){return this.setChannel("hwb",1,d)},blackness:function(d){return this.setChannel("hwb",2,d)},value:function(d){return this.setChannel("hsv", -2,d)},cyan:function(d){return this.setChannel("cmyk",0,d)},magenta:function(d){return this.setChannel("cmyk",1,d)},yellow:function(d){return this.setChannel("cmyk",2,d)},black:function(d){return this.setChannel("cmyk",3,d)},hexString:function(){return x.hexString(this.values.rgb)},rgbString:function(){return x.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return x.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return x.percentString(this.values.rgb,this.values.alpha)}, -hslString:function(){return x.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return x.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return x.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return x.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var d=this.values.rgb;return d[0]<<16|d[1]<<8|d[2]},luminosity:function(){for(var d=this.values.rgb,c=[],e=0;e=a?a/12.92:Math.pow((a+.055)/ -1.055,2.4)}return.2126*c[0]+.7152*c[1]+.0722*c[2]},contrast:function(d){var c=this.luminosity();d=d.luminosity();return c>d?(c+.05)/(d+.05):(d+.05)/(c+.05)},level:function(d){d=this.contrast(d);return 7.1<=d?"AAA":4.5<=d?"AA":""},dark:function(){var d=this.values.rgb;return 128>(299*d[0]+587*d[1]+114*d[2])/1E3},light:function(){return!this.dark()},negate:function(){for(var d=[],c=0;3>c;c++)d[c]=255-this.values.rgb[c];return this.setValues("rgb",d),this},lighten:function(d){var c=this.values.hsl;return c[2]+= -c[2]*d,this.setValues("hsl",c),this},darken:function(d){var c=this.values.hsl;return c[2]-=c[2]*d,this.setValues("hsl",c),this},saturate:function(d){var c=this.values.hsl;return c[1]+=c[1]*d,this.setValues("hsl",c),this},desaturate:function(d){var c=this.values.hsl;return c[1]-=c[1]*d,this.setValues("hsl",c),this},whiten:function(d){var c=this.values.hwb;return c[1]+=c[1]*d,this.setValues("hwb",c),this},blacken:function(d){var c=this.values.hwb;return c[2]+=c[2]*d,this.setValues("hwb",c),this},greyscale:function(){var d= -this.values.rgb,d=.3*d[0]+.59*d[1]+.11*d[2];return this.setValues("rgb",[d,d,d]),this},clearer:function(d){var c=this.values.alpha;return this.setValues("alpha",c-c*d),this},opaquer:function(d){var c=this.values.alpha;return this.setValues("alpha",c+c*d),this},rotate:function(d){var c=this.values.hsl;d=(c[0]+d)%360;return c[0]=0>d?360+d:d,this.setValues("hsl",c),this},mix:function(d,c){var e=void 0===c?.5:c,a=2*e-1,k=this.alpha()-d.alpha(),a=((-1===a*k?a:(a+k)/(1+a*k))+1)/2,k=1-a;return this.rgb(a* -this.red()+k*d.red(),a*this.green()+k*d.green(),a*this.blue()+k*d.blue()).alpha(this.alpha()*e+d.alpha()*(1-e))},toJSON:function(){return this.rgb()},clone:function(){var d,c,e=new h,a=this.values,k=e.values,n;for(n in a)a.hasOwnProperty(n)&&(d=a[n],c={}.toString.call(d),"[object Array]"===c?k[n]=d.slice(0):"[object Number]"===c?k[n]=d:console.error("unexpected color value:",d));return e}};h.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation", -"value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]};h.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]};h.prototype.getValues=function(d){for(var c=this.values,e={},a=0;ac&&(c+=360),e=(p+t)/2,k=t== -p?0:.5>=e?h/(t+p):h/(2-t-p),[c,100*k,100*e]}function x(a){var c,k,e,d=a[0],n=a[1];a=a[2];var p=Math.min(d,n,a),t=Math.max(d,n,a),h=t-p;return k=0==t?0:h/t*1E3/10,t==p?c=0:d==t?c=(n-a)/h:n==t?c=2+(a-d)/h:a==t&&(c=4+(d-n)/h),c=Math.min(60*c,360),0>c&&(c+=360),e=t/255*1E3/10,[c,k,e]}function h(a){var c=a[0],k=a[1],e=a[2];a=w(a)[0];var d=1/255*Math.min(c,Math.min(k,e)),e=1-1/255*Math.max(c,Math.max(k,e));return[a,100*d,100*e]}function d(a){var c,k,e,d,n=a[0]/255,p=a[1]/255;a=a[2]/255;return d=Math.min(1- -n,1-p,1-a),c=(1-n-d)/(1-d)||0,k=(1-p-d)/(1-d)||0,e=(1-a-d)/(1-d)||0,[100*c,100*k,100*e,100*d]}function c(a){return C[JSON.stringify(a)]}function e(a){var c=a[0]/255,k=a[1]/255;a=a[2]/255;c=.04045a?a*(1+c):a+c-a*c;a=2*a-c;e=[0,0,0];for(var n=0;3>n;n++)k=d+1/3*-(n-1),0>k&&k++,16*k?a+6*(c-a)*k:1>2*k?c:2>3*k?a+(c-a)*(2/3-k)*6:a,e[n]=255*k;return e}function n(a){var c=a[0]/60,k=a[1]/100;a=a[2]/100;var e= -Math.floor(c)%6,d=c-Math.floor(c),c=255*a*(1-k),n=255*a*(1-k*d),k=255*a*(1-k*(1-d));a*=255;switch(e){case 0:return[a,k,c];case 1:return[n,a,c];case 2:return[c,a,k];case 3:return[c,n,a];case 4:return[k,c,a];case 5:return[a,c,n]}}function p(a){var c,k,e,d;d=a[0]/360;var n=a[1]/100;a=a[2]/100;var p=n+a;switch(1=n?(k=100*n/903.3,d=k/100*7.787+16/116):(k=100*Math.pow((n+ -16)/116,3),d=Math.pow(k/100,1/3)),c=.008856>=c/95.047?c=95.047*(p/500+d-16/116)/7.787:95.047*Math.pow(p/500+d,3),e=.008859>=e/108.883?e=108.883*(d-a/200-16/116)/7.787:108.883*Math.pow(d-a/200,3),[c,k,e]}function P(a){var c,k,e,d=a[0],n=a[1];a=a[2];return c=Math.atan2(a,n),k=360*c/2/Math.PI,0>k&&(k+=360),e=Math.sqrt(n*n+a*a),[d,e,k]}function A(a){return z(q(a))}function F(a){var c,k,e,d=a[0],n=a[1];return e=a[2]/360*2*Math.PI,c=n*Math.cos(e),k=n*Math.sin(e),[d,c,k]}l.exports={rgb2hsl:w,rgb2hsv:x,rgb2hwb:h, -rgb2cmyk:d,rgb2keyword:c,rgb2xyz:e,rgb2lab:a,rgb2lch:function(c){return P(a(c))},hsl2rgb:k,hsl2hsv:function(a){var c,k,e=a[0],d=a[1]/100;a=a[2]/100;return 0===a?[0,0,0]:(a*=2,d*=1>=a?a:2-a,k=(a+d)/2,c=2*d/(a+d),[e,100*c,100*k])},hsl2hwb:function(a){return h(k(a))},hsl2cmyk:function(a){return d(k(a))},hsl2keyword:function(a){return c(k(a))},hsv2rgb:n,hsv2hsl:function(a){var c,k,e=a[0],d=a[1]/100;a=a[2]/100;return k=(2-d)*a,c=d*a,c/=1>=k?k:2-k,c=c||0,k/=2,[e,100*c,100*k]},hsv2hwb:function(a){return h(n(a))}, -hsv2cmyk:function(a){return d(n(a))},hsv2keyword:function(a){return c(n(a))},hwb2rgb:p,hwb2hsl:function(a){return w(p(a))},hwb2hsv:function(a){return x(p(a))},hwb2cmyk:function(a){return d(p(a))},hwb2keyword:function(a){return c(p(a))},cmyk2rgb:t,cmyk2hsl:function(a){return w(t(a))},cmyk2hsv:function(a){return x(t(a))},cmyk2hwb:function(a){return h(t(a))},cmyk2keyword:function(a){return c(t(a))},keyword2rgb:function(a){return D[a]},keyword2hsl:function(a){return w(D[a])},keyword2hsv:function(a){return x(D[a])}, -keyword2hwb:function(a){return h(D[a])},keyword2cmyk:function(a){return d(D[a])},keyword2lab:function(c){return a(D[c])},keyword2xyz:function(a){return e(D[a])},xyz2rgb:z,xyz2lab:y,xyz2lch:function(a){return P(y(a))},lab2xyz:q,lab2rgb:A,lab2lch:P,lch2lab:F,lch2xyz:function(a){return q(F(a))},lch2rgb:function(a){return A(F(a))}};var D={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0, +l[v],y=this.storage_.get(w);!0===f(w,y.value)&&this.removeItem(w)}};v.prototype.size=function(){return this.storage_.size()};v.prototype.isExpired_=function(f){var l=(new Date).getTime(),v=!1;f.options.expirationAbsolute&&f.options.expirationAbsolutea.length?"0"+a:a}var n=f(6);l.exports={getRgba:w,getHsla:y,getRgb:function(a){return(a=w(a))&&a.slice(0,3)},getHsl:function(a){return(a=y(a))&&a.slice(0,3)},getHwb:h,getAlpha:function(a){var k=w(a);return k?k[3]:(k=y(a))?k[3]:(k=h(a))?k[3]:void 0},hexString:function(a){return"#"+k(a[0])+k(a[1])+k(a[2])},rgbString:function(a,k){return 1>k||a[3]&&1>a[3]?e(a,k):"rgb("+a[0]+", "+a[1]+", "+a[2]+")"},rgbaString:e,percentString:function(a,k){return 1> +k||a[3]&&1>a[3]?d(a,k):"rgb("+Math.round(a[0]/255*100)+"%, "+Math.round(a[1]/255*100)+"%, "+Math.round(a[2]/255*100)+"%)"},percentaString:d,hslString:function(a,k){return 1>k||a[3]&&1>a[3]?c(a,k):"hsl("+a[0]+", "+a[1]+"%, "+a[2]+"%)"},hslaString:c,hwbString:function(a,k){return void 0===k&&(k=void 0!==a[3]?a[3]:1),"hwb("+a[0]+", "+a[1]+"%, "+a[2]+"%"+(void 0!==k&&1!==k?", "+k:"")+")"},keyword:function(a){return p[a.slice(0,3)]}};var p={},t;for(t in n)p[n[t]]=t},{6:6}],3:[function(f,l,u){var w=f(5), +y=f(2),h=function(e){if(e instanceof h)return e;if(!(this instanceof h))return new h(e);this.valid=!1;this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var d;"string"==typeof e?(d=y.getRgba(e),d?this.setValues("rgb",d):(d=y.getHsla(e))?this.setValues("hsl",d):(d=y.getHwb(e))&&this.setValues("hwb",d)):"object"==typeof e&&(d=e,void 0!==d.r||void 0!==d.red?this.setValues("rgb",d):void 0!==d.l||void 0!==d.lightness?this.setValues("hsl",d):void 0!==d.v||void 0!==d.value? +this.setValues("hsv",d):void 0!==d.w||void 0!==d.whiteness?this.setValues("hwb",d):void 0===d.c&&void 0===d.cyan||this.setValues("cmyk",d))};h.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb}, +hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)}, +green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e%=360,e=0>e?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv", +2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return y.hexString(this.values.rgb)},rgbString:function(){return y.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return y.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return y.percentString(this.values.rgb,this.values.alpha)}, +hslString:function(){return y.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return y.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return y.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return y.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,d=[],c=0;c=a?a/12.92:Math.pow((a+.055)/ +1.055,2.4)}return.2126*d[0]+.7152*d[1]+.0722*d[2]},contrast:function(e){var d=this.luminosity();e=e.luminosity();return d>e?(d+.05)/(e+.05):(e+.05)/(d+.05)},level:function(e){e=this.contrast(e);return 7.1<=e?"AAA":4.5<=e?"AA":""},dark:function(){var e=this.values.rgb;return 128>(299*e[0]+587*e[1]+114*e[2])/1E3},light:function(){return!this.dark()},negate:function(){for(var e=[],d=0;3>d;d++)e[d]=255-this.values.rgb[d];return this.setValues("rgb",e),this},lighten:function(e){var d=this.values.hsl;return d[2]+= +d[2]*e,this.setValues("hsl",d),this},darken:function(e){var d=this.values.hsl;return d[2]-=d[2]*e,this.setValues("hsl",d),this},saturate:function(e){var d=this.values.hsl;return d[1]+=d[1]*e,this.setValues("hsl",d),this},desaturate:function(e){var d=this.values.hsl;return d[1]-=d[1]*e,this.setValues("hsl",d),this},whiten:function(e){var d=this.values.hwb;return d[1]+=d[1]*e,this.setValues("hwb",d),this},blacken:function(e){var d=this.values.hwb;return d[2]+=d[2]*e,this.setValues("hwb",d),this},greyscale:function(){var e= +this.values.rgb,e=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(e){var d=this.values.alpha;return this.setValues("alpha",d-d*e),this},opaquer:function(e){var d=this.values.alpha;return this.setValues("alpha",d+d*e),this},rotate:function(e){var d=this.values.hsl;e=(d[0]+e)%360;return d[0]=0>e?360+e:e,this.setValues("hsl",d),this},mix:function(e,d){var c=void 0===d?.5:d,a=2*c-1,k=this.alpha()-e.alpha(),a=((-1===a*k?a:(a+k)/(1+a*k))+1)/2,k=1-a;return this.rgb(a* +this.red()+k*e.red(),a*this.green()+k*e.green(),a*this.blue()+k*e.blue()).alpha(this.alpha()*c+e.alpha()*(1-c))},toJSON:function(){return this.rgb()},clone:function(){var e,d,c=new h,a=this.values,k=c.values,n;for(n in a)a.hasOwnProperty(n)&&(e=a[n],d={}.toString.call(e),"[object Array]"===d?k[n]=e.slice(0):"[object Number]"===d?k[n]=e:console.error("unexpected color value:",e));return c}};h.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation", +"value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]};h.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]};h.prototype.getValues=function(e){for(var d=this.values,c={},a=0;ak&&(k+=360),d=(p+t)/2,c=t== +p?0:.5>=d?h/(t+p):h/(2-t-p),[k,100*c,100*d]}function y(a){var k,c,d,e=a[0],n=a[1];a=a[2];var p=Math.min(e,n,a),t=Math.max(e,n,a),h=t-p;return c=0==t?0:h/t*1E3/10,t==p?k=0:e==t?k=(n-a)/h:n==t?k=2+(a-e)/h:a==t&&(k=4+(e-n)/h),k=Math.min(60*k,360),0>k&&(k+=360),d=t/255*1E3/10,[k,c,d]}function h(a){var k=a[0],c=a[1],d=a[2];a=w(a)[0];var e=1/255*Math.min(k,Math.min(c,d)),d=1-1/255*Math.max(k,Math.max(c,d));return[a,100*e,100*d]}function e(a){var k,c,d,e,n=a[0]/255,p=a[1]/255;a=a[2]/255;return e=Math.min(1- +n,1-p,1-a),k=(1-n-e)/(1-e)||0,c=(1-p-e)/(1-e)||0,d=(1-a-e)/(1-e)||0,[100*k,100*c,100*d,100*e]}function d(a){return C[JSON.stringify(a)]}function c(a){var k=a[0]/255,c=a[1]/255;a=a[2]/255;k=.04045a?a*(1+k):a+k-a*k;a=2*a-k;d=[0,0,0];for(var n=0;3>n;n++)c=e+1/3*-(n-1),0>c&&c++,16*c?a+6*(k-a)*c:1>2*c?k:2>3*c?a+(k-a)*(2/3-c)*6:a,d[n]=255*c;return d}function n(a){var k=a[0]/60,c=a[1]/100;a=a[2]/100;var d= +Math.floor(k)%6,e=k-Math.floor(k),k=255*a*(1-c),n=255*a*(1-c*e),c=255*a*(1-c*(1-e));a*=255;switch(d){case 0:return[a,c,k];case 1:return[n,a,k];case 2:return[k,a,c];case 3:return[k,n,a];case 4:return[c,k,a];case 5:return[a,k,n]}}function p(a){var k,c,d,e;e=a[0]/360;var n=a[1]/100;a=a[2]/100;var p=n+a;switch(1=n?(c=100*n/903.3,e=c/100*7.787+16/116):(c=100*Math.pow((n+ +16)/116,3),e=Math.pow(c/100,1/3)),k=.008856>=k/95.047?k=95.047*(p/500+e-16/116)/7.787:95.047*Math.pow(p/500+e,3),d=.008859>=d/108.883?d=108.883*(e-a/200-16/116)/7.787:108.883*Math.pow(e-a/200,3),[k,c,d]}function T(a){var k,c,d,e=a[0],n=a[1];a=a[2];return k=Math.atan2(a,n),c=360*k/2/Math.PI,0>c&&(c+=360),d=Math.sqrt(n*n+a*a),[e,d,c]}function x(a){return A(q(a))}function G(a){var k,c,d,e=a[0],n=a[1];return d=a[2]/360*2*Math.PI,k=n*Math.cos(d),c=n*Math.sin(d),[e,k,c]}l.exports={rgb2hsl:w,rgb2hsv:y,rgb2hwb:h, +rgb2cmyk:e,rgb2keyword:d,rgb2xyz:c,rgb2lab:a,rgb2lch:function(k){return T(a(k))},hsl2rgb:k,hsl2hsv:function(a){var k,c,d=a[0],e=a[1]/100;a=a[2]/100;return 0===a?[0,0,0]:(a*=2,e*=1>=a?a:2-a,c=(a+e)/2,k=2*e/(a+e),[d,100*k,100*c])},hsl2hwb:function(a){return h(k(a))},hsl2cmyk:function(a){return e(k(a))},hsl2keyword:function(a){return d(k(a))},hsv2rgb:n,hsv2hsl:function(a){var k,c,d=a[0],e=a[1]/100;a=a[2]/100;return c=(2-e)*a,k=e*a,k/=1>=c?c:2-c,k=k||0,c/=2,[d,100*k,100*c]},hsv2hwb:function(a){return h(n(a))}, +hsv2cmyk:function(a){return e(n(a))},hsv2keyword:function(a){return d(n(a))},hwb2rgb:p,hwb2hsl:function(a){return w(p(a))},hwb2hsv:function(a){return y(p(a))},hwb2cmyk:function(a){return e(p(a))},hwb2keyword:function(a){return d(p(a))},cmyk2rgb:t,cmyk2hsl:function(a){return w(t(a))},cmyk2hsv:function(a){return y(t(a))},cmyk2hwb:function(a){return h(t(a))},cmyk2keyword:function(a){return d(t(a))},keyword2rgb:function(a){return D[a]},keyword2hsl:function(a){return w(D[a])},keyword2hsv:function(a){return y(D[a])}, +keyword2hwb:function(a){return h(D[a])},keyword2cmyk:function(a){return e(D[a])},keyword2lab:function(k){return a(D[k])},keyword2xyz:function(a){return c(D[a])},xyz2rgb:A,xyz2lab:z,xyz2lch:function(a){return T(z(a))},lab2xyz:q,lab2rgb:x,lab2lch:T,lch2lab:G,lch2xyz:function(a){return q(G(a))},lch2rgb:function(a){return x(G(a))}};var D={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0, 0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255, 140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218, 165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255, 182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72, 209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221, 160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216, -191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},C={},B;for(B in D)C[JSON.stringify(D[B])]=B},{}],5:[function(f,l,u){var w=f(4),x=function(){return new d},h;for(h in w)x[h+"Raw"]=function(c){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),w[c](e)}}(h),u=/(\w+)2(\w+)/.exec(h),f=u[1],u=u[2],x[f]=x[f]||{},x[f][u]=x[h]=function(c){return function(e){"number"== -typeof e&&(e=Array.prototype.slice.call(arguments));var a=w[c](e);if("string"==typeof a||void 0===a)return a;for(var k=0;kl&&0>a||0<=l&&0');var e=d.data;d=e.datasets;e=e.labels;if(d.length)for(var a=0;a'),e[a]&&c.push(e[a]),c.push(""); -return c.push(""),c.join("")},legend:{labels:{generateLabels:function(d){var c=d.data;return c.labels.length&&c.datasets.length?c.labels.map(function(e,a){var k=d.getDatasetMeta(0),n=c.datasets[0],p=k.data[a],t=p&&p.custom||{},h=l.getValueAtIndexOrDefault,f=d.options.elements.arc,p=t.backgroundColor?t.backgroundColor:h(n.backgroundColor,a,f.backgroundColor),q=t.borderColor?t.borderColor:h(n.borderColor,a,f.borderColor),t=t.borderWidth?t.borderWidth:h(n.borderWidth,a,f.borderWidth);return{text:e, -fillStyle:p,strokeStyle:q,lineWidth:t,hidden:isNaN(n.data[a])||k.data[a].hidden,index:a}}):[]}},onClick:function(d,c){var e,a,k,n=c.index,p=this.chart;e=0;for(a=(p.data.datasets||[]).length;e=Math.PI?-1:t<-Math.PI?1:0),w=t+w,A=Math.cos(t),f=Math.sin(t),u=Math.cos(w),D=Math.sin(w),C=q/100,h=t<=-Math.PI&&-Math.PI<=w||t<=Math.PI&&Math.PI<=w?-1:Math.min(A*(0>A?1:C),u*(0>u?1:C)),k=t<=.5*-Math.PI&&.5*-Math.PI<=w||t<=1.5*Math.PI&&1.5*Math.PI<=w?-1:Math.min(f*(0>f?1:C),D*(0>D?1:C)),A=0>=t&&0<=w||t<=2*Math.PI&&2*Math.PI<=w?1:Math.max(A*(0a?c:a,a=e>a?e:a;return a}})}},{}],18:[function(f,l,u){l.exports=function(f){var l=f.helpers;f.defaults.line={showLines:!0, -spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}};f.controllers.line=f.DatasetController.extend({datasetElementType:f.elements.Line,dataElementType:f.elements.Point,update:function(h){var d,c,e=this.getMeta(),a=e.dataset,k=e.data||[];c=this.chart.options;var n=c.elements.line,p=this.getScaleForId(e.yAxisID),t=this.getDataset();(e=l.getValueOrDefault(t.showLine,c.showLines))&&(d=a.custom||{},void 0!==t.tension&&void 0===t.lineTension&& -(t.lineTension=t.tension),a._scale=p,a._datasetIndex=this.index,a._children=k,a._model={spanGaps:t.spanGaps?t.spanGaps:c.spanGaps,tension:d.tension?d.tension:l.getValueOrDefault(t.lineTension,n.tension),backgroundColor:d.backgroundColor?d.backgroundColor:t.backgroundColor||n.backgroundColor,borderWidth:d.borderWidth?d.borderWidth:t.borderWidth||n.borderWidth,borderColor:d.borderColor?d.borderColor:t.borderColor||n.borderColor,borderCapStyle:d.borderCapStyle?d.borderCapStyle:t.borderCapStyle||n.borderCapStyle, -borderDash:d.borderDash?d.borderDash:t.borderDash||n.borderDash,borderDashOffset:d.borderDashOffset?d.borderDashOffset:t.borderDashOffset||n.borderDashOffset,borderJoinStyle:d.borderJoinStyle?d.borderJoinStyle:t.borderJoinStyle||n.borderJoinStyle,fill:d.fill?d.fill:void 0!==t.fill?t.fill:n.fill,steppedLine:d.steppedLine?d.steppedLine:l.getValueOrDefault(t.steppedLine,n.stepped),cubicInterpolationMode:d.cubicInterpolationMode?d.cubicInterpolationMode:l.getValueOrDefault(t.cubicInterpolationMode,n.cubicInterpolationMode)}, -a.pivot());d=0;for(c=k.length;da?z+=a||0:t+=a||0;h=Number(p.getRightValue(h));return 0>h?p.getPixelForValue(z+h):p.getPixelForValue(t+ -h)}return p.getPixelForValue(h)},updateBezierControlPoints:function(){var h,d,c,e,a=this.getMeta(),k=this.chart.chartArea,n=a.data||[];if(a.dataset._model.spanGaps&&(n=n.filter(function(a){return!a._model.skip})),"monotone"===a.dataset._model.cubicInterpolationMode)l.splineCurveMonotone(n);else for(h=0,d=n.length;h');var c=h.data;h=c.datasets;c=c.labels;if(h.length)for(var e=0;e'),c[e]&&d.push(c[e]),d.push("");return d.push(""),d.join("")},legend:{labels:{generateLabels:function(h){var d=h.data;return d.labels.length&&d.datasets.length?d.labels.map(function(c,e){var a=h.getDatasetMeta(0),k=d.datasets[0],n= -a.data[e].custom||{},p=l.getValueAtIndexOrDefault,t=h.options.elements.arc,z=n.backgroundColor?n.backgroundColor:p(k.backgroundColor,e,t.backgroundColor),f=n.borderColor?n.borderColor:p(k.borderColor,e,t.borderColor),n=n.borderWidth?n.borderWidth:p(k.borderWidth,e,t.borderWidth);return{text:c,fillStyle:z,strokeStyle:f,lineWidth:n,hidden:isNaN(k.data[e])||a.data[e].hidden,index:e}}):[]}},onClick:function(h,d){var c,e,a,k=d.index,n=this.chart;c=0;for(e=(n.data.datasets||[]).length;cf&&0>a||0<=f&&0');var c=e.data;e=c.datasets;c=c.labels;if(e.length)for(var a=0;a'),c[a]&&d.push(c[a]),d.push(""); +return d.push(""),d.join("")},legend:{labels:{generateLabels:function(e){var d=e.data;return d.labels.length&&d.datasets.length?d.labels.map(function(c,a){var k=e.getDatasetMeta(0),n=d.datasets[0],p=k.data[a],t=p&&p.custom||{},h=l.getValueAtIndexOrDefault,f=e.options.elements.arc,p=t.backgroundColor?t.backgroundColor:h(n.backgroundColor,a,f.backgroundColor),q=t.borderColor?t.borderColor:h(n.borderColor,a,f.borderColor),t=t.borderWidth?t.borderWidth:h(n.borderWidth,a,f.borderWidth);return{text:c, +fillStyle:p,strokeStyle:q,lineWidth:t,hidden:isNaN(n.data[a])||k.data[a].hidden,index:a}}):[]}},onClick:function(e,d){var c,a,k,n=d.index,p=this.chart;c=0;for(a=(p.data.datasets||[]).length;c=Math.PI?-1:t<-Math.PI?1:0),w=t+w,x=Math.cos(t),f=Math.sin(t),u=Math.cos(w),D=Math.sin(w),C=q/100,h=t<=-Math.PI&&-Math.PI<=w||t<=Math.PI&&Math.PI<=w?-1:Math.min(x*(0>x?1:C),u*(0>u?1:C)),k=t<=.5*-Math.PI&&.5*-Math.PI<=w||t<=1.5*Math.PI&&1.5*Math.PI<=w?-1:Math.min(f*(0>f?1:C),D*(0>D?1:C)),x=0>=t&&0<=w||t<=2*Math.PI&&2*Math.PI<=w?1:Math.max(x*(0a?d:a,a=c>a?c:a;return a}})}},{}],18:[function(f,l,u){l.exports=function(f){var l=f.helpers;f.defaults.line={showLines:!0, +spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}};f.controllers.line=f.DatasetController.extend({datasetElementType:f.elements.Line,dataElementType:f.elements.Point,update:function(h){var e,d,c=this.getMeta(),a=c.dataset,k=c.data||[];d=this.chart.options;var n=d.elements.line,p=this.getScaleForId(c.yAxisID),t=this.getDataset();(c=l.getValueOrDefault(t.showLine,d.showLines))&&(e=a.custom||{},void 0!==t.tension&&void 0===t.lineTension&& +(t.lineTension=t.tension),a._scale=p,a._datasetIndex=this.index,a._children=k,a._model={spanGaps:t.spanGaps?t.spanGaps:d.spanGaps,tension:e.tension?e.tension:l.getValueOrDefault(t.lineTension,n.tension),backgroundColor:e.backgroundColor?e.backgroundColor:t.backgroundColor||n.backgroundColor,borderWidth:e.borderWidth?e.borderWidth:t.borderWidth||n.borderWidth,borderColor:e.borderColor?e.borderColor:t.borderColor||n.borderColor,borderCapStyle:e.borderCapStyle?e.borderCapStyle:t.borderCapStyle||n.borderCapStyle, +borderDash:e.borderDash?e.borderDash:t.borderDash||n.borderDash,borderDashOffset:e.borderDashOffset?e.borderDashOffset:t.borderDashOffset||n.borderDashOffset,borderJoinStyle:e.borderJoinStyle?e.borderJoinStyle:t.borderJoinStyle||n.borderJoinStyle,fill:e.fill?e.fill:void 0!==t.fill?t.fill:n.fill,steppedLine:e.steppedLine?e.steppedLine:l.getValueOrDefault(t.steppedLine,n.stepped),cubicInterpolationMode:e.cubicInterpolationMode?e.cubicInterpolationMode:l.getValueOrDefault(t.cubicInterpolationMode,n.cubicInterpolationMode)}, +a.pivot());e=0;for(d=k.length;ea?A+=a||0:t+=a||0;h=Number(p.getRightValue(h));return 0>h?p.getPixelForValue(A+h):p.getPixelForValue(t+ +h)}return p.getPixelForValue(h)},updateBezierControlPoints:function(){var h,e,d,c,a=this.getMeta(),k=this.chart.chartArea,n=a.data||[];if(a.dataset._model.spanGaps&&(n=n.filter(function(a){return!a._model.skip})),"monotone"===a.dataset._model.cubicInterpolationMode)l.splineCurveMonotone(n);else for(h=0,e=n.length;h');var d=h.data;h=d.datasets;d=d.labels;if(h.length)for(var c=0;c'),d[c]&&e.push(d[c]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(h){var e=h.data;return e.labels.length&&e.datasets.length?e.labels.map(function(d,c){var a=h.getDatasetMeta(0),k=e.datasets[0],n= +a.data[c].custom||{},p=l.getValueAtIndexOrDefault,t=h.options.elements.arc,A=n.backgroundColor?n.backgroundColor:p(k.backgroundColor,c,t.backgroundColor),f=n.borderColor?n.borderColor:p(k.borderColor,c,t.borderColor),n=n.borderWidth?n.borderWidth:p(k.borderWidth,c,t.borderWidth);return{text:d,fillStyle:A,strokeStyle:f,lineWidth:n,hidden:isNaN(k.data[c])||a.data[c].hidden,index:c}}):[]}},onClick:function(h,e){var d,c,a,k=e.index,n=this.chart;d=0;for(c=(n.data.datasets||[]).length;d=d.numSteps?(l.callback(d.onAnimationComplete,[d],c),c.animating=!1,e.splice(a,1)):++a}};Object.defineProperty(f.Animation.prototype,"animationObject",{get:function(){return this}});Object.defineProperty(f.Animation.prototype,"chartInstance",{get:function(){return this.chart}, -set:function(h){this.chart=h}})}},{}],22:[function(f,l,u){l.exports=function(f){var l=f.canvasHelpers={};l.drawPoint=function(h,d,c,e,a){var k;if("object"==typeof d&&(k=d.toString(),"[object HTMLImageElement]"===k||"[object HTMLCanvasElement]"===k))return void h.drawImage(d,e-d.width/2,a-d.height/2,d.width,d.height);if(!(isNaN(c)||0>=c)){switch(d){default:h.beginPath();h.arc(e,a,c,0,2*Math.PI);h.closePath();h.fill();break;case "triangle":h.beginPath();c=3*c/Math.sqrt(3);d=c*Math.sqrt(3)/2;h.moveTo(e- -c/2,a+d/3);h.lineTo(e+c/2,a+d/3);h.lineTo(e,a-2*d/3);h.closePath();h.fill();break;case "rect":c*=1/Math.SQRT2;h.beginPath();h.fillRect(e-c,a-c,2*c,2*c);h.strokeRect(e-c,a-c,2*c,2*c);break;case "rectRounded":d=c/Math.SQRT2;k=Math.SQRT2*c;f.helpers.drawRoundedRectangle(h,e-d,a-d,k,k,c/2);h.fill();break;case "rectRot":c*=1/Math.SQRT2;h.beginPath();h.moveTo(e-c,a);h.lineTo(e,a+c);h.lineTo(e+c,a);h.lineTo(e,a-c);h.closePath();h.fill();break;case "cross":h.beginPath();h.moveTo(e,a+c);h.lineTo(e,a-c);h.moveTo(e- -c,a);h.lineTo(e+c,a);h.closePath();break;case "crossRot":h.beginPath();d=Math.cos(Math.PI/4)*c;c*=Math.sin(Math.PI/4);h.moveTo(e-d,a-c);h.lineTo(e+d,a+c);h.moveTo(e-d,a+c);h.lineTo(e+d,a-c);h.closePath();break;case "star":h.beginPath();h.moveTo(e,a+c);h.lineTo(e,a-c);h.moveTo(e-c,a);h.lineTo(e+c,a);d=Math.cos(Math.PI/4)*c;c*=Math.sin(Math.PI/4);h.moveTo(e-d,a-c);h.lineTo(e+d,a+c);h.moveTo(e-d,a+c);h.lineTo(e+d,a-c);h.closePath();break;case "line":h.beginPath();h.moveTo(e-c,a);h.lineTo(e+c,a);h.closePath(); -break;case "dash":h.beginPath(),h.moveTo(e,a),h.lineTo(e+c,a),h.closePath()}h.stroke()}};l.clipArea=function(h,d){h.save();h.beginPath();h.rect(d.left,d.top,d.right-d.left,d.bottom-d.top);h.clip()};l.unclipArea=function(h){h.restore()};l.lineTo=function(h,d,c,e){return c.steppedLine?("after"===c.steppedLine?h.lineTo(d.x,c.y):h.lineTo(c.x,d.y),void h.lineTo(c.x,c.y)):c.tension?void h.bezierCurveTo(e?d.controlPointPreviousX:d.controlPointNextX,e?d.controlPointPreviousY:d.controlPointNextY,e?c.controlPointNextX: -c.controlPointPreviousX,e?c.controlPointNextY:c.controlPointPreviousY,c.x,c.y):void h.lineTo(c.x,c.y)};f.helpers.canvas=l}},{}],23:[function(f,l,u){l.exports=function(f){function l(a){a=a||{};var e=a.data=a.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],a.options=c.configMerge(f.defaults.global,f.defaults[a.type],a.options||{}),a}function h(a){var c=a.options;c.scale?a.scale.options=c.scale:c.scales&&c.scales.xAxes.concat(c.scales.yAxes).forEach(function(c){a.scales[c.id].options= -c});a.tooltip._options=c.tooltips}function d(a){return"top"===a||"bottom"===a}var c=f.helpers,e=f.plugins,a=f.platform;f.types={};f.instances={};f.controllers={};c.extend(f.prototype,{construct:function(k,e){var d=this;e=l(e);var t=a.acquireContext(k,e),h=t&&t.canvas,y=h&&h.height,q=h&&h.width;return d.id=c.uid(),d.ctx=t,d.canvas=h,d.config=e,d.width=q,d.height=y,d.aspectRatio=y?q/y:null,d.options=e.options,d._bufferedRender=!1,d.chart=d,d.controller=d,f.instances[d.id]=d,Object.defineProperty(d, -"data",{get:function(){return d.config.data},set:function(a){d.config.data=a}}),t&&h?(d.initialize(),void d.update()):void console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){return e.notify(this,"beforeInit"),c.retinaScale(this),this.bindEvents(),this.options.responsive&&this.resize(!0),this.ensureScalesHaveIDs(),this.buildScales(),this.initToolTip(),e.notify(this,"afterInit"),this},clear:function(){return c.clear(this),this},stop:function(){return f.animationService.cancelAnimation(this), -this},resize:function(a){var d=this.canvas,p=this.options.maintainAspectRatio&&this.aspectRatio||null,t=Math.floor(c.getMaximumWidth(d)),p=Math.floor(p?t/p:c.getMaximumHeight(d));this.width===t&&this.height===p||(d.width=this.width=t,d.height=this.height=p,d.style.width=t+"px",d.style.height=p+"px",c.retinaScale(this),a)||(a={width:t,height:p},e.notify(this,"resize",[a]),this.options.onResize&&this.options.onResize(this,a),this.stop(),this.update(this.options.responsiveAnimationDuration))},ensureScalesHaveIDs:function(){var a= -this.options,e=a.scales||{},a=a.scale;c.each(e.xAxes,function(a,c){a.id=a.id||"x-axis-"+c});c.each(e.yAxes,function(a,c){a.id=a.id||"y-axis-"+c});a&&(a.id=a.id||"scale")},buildScales:function(){var a=this,e=a.options,p=a.scales={},t=[];e.scales&&(t=t.concat((e.scales.xAxes||[]).map(function(a){return{options:a,dtype:"category",dposition:"bottom"}}),(e.scales.yAxes||[]).map(function(a){return{options:a,dtype:"linear",dposition:"left"}})));e.scale&&t.push({options:e.scale,dtype:"radialLinear",isDefault:!0, -dposition:"chartArea"});c.each(t,function(e){var n=e.options,t=c.getValueOrDefault(n.type,e.dtype);if(t=f.scaleService.getScaleConstructor(t))d(n.position)!==d(e.dposition)&&(n.position=e.dposition),n=new t({id:n.id,options:n,ctx:a.ctx,chart:a}),p[n.id]=n,e.isDefault&&(a.scale=n)});f.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var a=this,e=[],d=[];if(c.each(a.data.datasets,function(c,t){var h=a.getDatasetMeta(t);if(h.type||(h.type=c.type||a.config.type),e.push(h.type), -h.controller)h.controller.updateIndex(t);else{var l=f.controllers[h.type];if(void 0===l)throw Error('"'+h.type+'" is not a chart type.');h.controller=new l(a,t);d.push(h.controller)}},a),1=e.numSteps?(l.callback(e.onAnimationComplete,[e],d),d.animating=!1,c.splice(a,1)):++a}};Object.defineProperty(f.Animation.prototype,"animationObject",{get:function(){return this}});Object.defineProperty(f.Animation.prototype,"chartInstance",{get:function(){return this.chart}, +set:function(h){this.chart=h}})}},{}],22:[function(f,l,u){l.exports=function(f){var l=f.canvasHelpers={};l.drawPoint=function(h,e,d,c,a){var k;if("object"==typeof e&&(k=e.toString(),"[object HTMLImageElement]"===k||"[object HTMLCanvasElement]"===k))return void h.drawImage(e,c-e.width/2,a-e.height/2,e.width,e.height);if(!(isNaN(d)||0>=d)){switch(e){default:h.beginPath();h.arc(c,a,d,0,2*Math.PI);h.closePath();h.fill();break;case "triangle":h.beginPath();d=3*d/Math.sqrt(3);e=d*Math.sqrt(3)/2;h.moveTo(c- +d/2,a+e/3);h.lineTo(c+d/2,a+e/3);h.lineTo(c,a-2*e/3);h.closePath();h.fill();break;case "rect":d*=1/Math.SQRT2;h.beginPath();h.fillRect(c-d,a-d,2*d,2*d);h.strokeRect(c-d,a-d,2*d,2*d);break;case "rectRounded":e=d/Math.SQRT2;k=Math.SQRT2*d;f.helpers.drawRoundedRectangle(h,c-e,a-e,k,k,d/2);h.fill();break;case "rectRot":d*=1/Math.SQRT2;h.beginPath();h.moveTo(c-d,a);h.lineTo(c,a+d);h.lineTo(c+d,a);h.lineTo(c,a-d);h.closePath();h.fill();break;case "cross":h.beginPath();h.moveTo(c,a+d);h.lineTo(c,a-d);h.moveTo(c- +d,a);h.lineTo(c+d,a);h.closePath();break;case "crossRot":h.beginPath();e=Math.cos(Math.PI/4)*d;d*=Math.sin(Math.PI/4);h.moveTo(c-e,a-d);h.lineTo(c+e,a+d);h.moveTo(c-e,a+d);h.lineTo(c+e,a-d);h.closePath();break;case "star":h.beginPath();h.moveTo(c,a+d);h.lineTo(c,a-d);h.moveTo(c-d,a);h.lineTo(c+d,a);e=Math.cos(Math.PI/4)*d;d*=Math.sin(Math.PI/4);h.moveTo(c-e,a-d);h.lineTo(c+e,a+d);h.moveTo(c-e,a+d);h.lineTo(c+e,a-d);h.closePath();break;case "line":h.beginPath();h.moveTo(c-d,a);h.lineTo(c+d,a);h.closePath(); +break;case "dash":h.beginPath(),h.moveTo(c,a),h.lineTo(c+d,a),h.closePath()}h.stroke()}};l.clipArea=function(h,e){h.save();h.beginPath();h.rect(e.left,e.top,e.right-e.left,e.bottom-e.top);h.clip()};l.unclipArea=function(h){h.restore()};l.lineTo=function(h,e,d,c){return d.steppedLine?("after"===d.steppedLine?h.lineTo(e.x,d.y):h.lineTo(d.x,e.y),void h.lineTo(d.x,d.y)):d.tension?void h.bezierCurveTo(c?e.controlPointPreviousX:e.controlPointNextX,c?e.controlPointPreviousY:e.controlPointNextY,c?d.controlPointNextX: +d.controlPointPreviousX,c?d.controlPointNextY:d.controlPointPreviousY,d.x,d.y):void h.lineTo(d.x,d.y)};f.helpers.canvas=l}},{}],23:[function(f,l,u){l.exports=function(f){function l(a){a=a||{};var c=a.data=a.data||{};return c.datasets=c.datasets||[],c.labels=c.labels||[],a.options=d.configMerge(f.defaults.global,f.defaults[a.type],a.options||{}),a}function h(a){var c=a.options;c.scale?a.scale.options=c.scale:c.scales&&c.scales.xAxes.concat(c.scales.yAxes).forEach(function(c){a.scales[c.id].options= +c});a.tooltip._options=c.tooltips}function e(a){return"top"===a||"bottom"===a}var d=f.helpers,c=f.plugins,a=f.platform;f.types={};f.instances={};f.controllers={};d.extend(f.prototype,{construct:function(k,c){var e=this;c=l(c);var t=a.acquireContext(k,c),h=t&&t.canvas,z=h&&h.height,q=h&&h.width;return e.id=d.uid(),e.ctx=t,e.canvas=h,e.config=c,e.width=q,e.height=z,e.aspectRatio=z?q/z:null,e.options=c.options,e._bufferedRender=!1,e.chart=e,e.controller=e,f.instances[e.id]=e,Object.defineProperty(e, +"data",{get:function(){return e.config.data},set:function(a){e.config.data=a}}),t&&h?(e.initialize(),void e.update()):void console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){return c.notify(this,"beforeInit"),d.retinaScale(this),this.bindEvents(),this.options.responsive&&this.resize(!0),this.ensureScalesHaveIDs(),this.buildScales(),this.initToolTip(),c.notify(this,"afterInit"),this},clear:function(){return d.clear(this),this},stop:function(){return f.animationService.cancelAnimation(this), +this},resize:function(a){var e=this.canvas,p=this.options.maintainAspectRatio&&this.aspectRatio||null,t=Math.floor(d.getMaximumWidth(e)),p=Math.floor(p?t/p:d.getMaximumHeight(e));this.width===t&&this.height===p||(e.width=this.width=t,e.height=this.height=p,e.style.width=t+"px",e.style.height=p+"px",d.retinaScale(this),a)||(a={width:t,height:p},c.notify(this,"resize",[a]),this.options.onResize&&this.options.onResize(this,a),this.stop(),this.update(this.options.responsiveAnimationDuration))},ensureScalesHaveIDs:function(){var a= +this.options,c=a.scales||{},a=a.scale;d.each(c.xAxes,function(a,k){a.id=a.id||"x-axis-"+k});d.each(c.yAxes,function(a,k){a.id=a.id||"y-axis-"+k});a&&(a.id=a.id||"scale")},buildScales:function(){var a=this,c=a.options,p=a.scales={},t=[];c.scales&&(t=t.concat((c.scales.xAxes||[]).map(function(a){return{options:a,dtype:"category",dposition:"bottom"}}),(c.scales.yAxes||[]).map(function(a){return{options:a,dtype:"linear",dposition:"left"}})));c.scale&&t.push({options:c.scale,dtype:"radialLinear",isDefault:!0, +dposition:"chartArea"});d.each(t,function(c){var n=c.options,t=d.getValueOrDefault(n.type,c.dtype);if(t=f.scaleService.getScaleConstructor(t))e(n.position)!==e(c.dposition)&&(n.position=c.dposition),n=new t({id:n.id,options:n,ctx:a.ctx,chart:a}),p[n.id]=n,c.isDefault&&(a.scale=n)});f.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var a=this,c=[],e=[];if(d.each(a.data.datasets,function(d,t){var h=a.getDatasetMeta(t);if(h.type||(h.type=d.type||a.config.type),c.push(h.type), +h.controller)h.controller.updateIndex(t);else{var l=f.controllers[h.type];if(void 0===l)throw Error('"'+h.type+'" is not a chart type.');h.controller=new l(a,t);e.push(h.controller)}},a),1k&&this.insertElements(k,a-k)},insertElements:function(c,a){for(var k=0;k=d[e].length||!d[e][k].type?d[e].push(c.configMerge(p,a)):a.type&&a.type!==d[e][k].type?d[e][k]=c.configMerge(d[e][k],p,a):d[e][k]=c.configMerge(d[e][k], -a)}):(d[e]=[],c.each(a,function(a){var k=c.getValueOrDefault(a.type,"xAxes"===e?"category":"linear");d[e].push(c.configMerge(f.scaleService.getScaleDefaults(k),a))})):d.hasOwnProperty(e)&&"object"==typeof d[e]&&null!==d[e]&&"object"==typeof a?d[e]=c.configMerge(d[e],a):d[e]=a}),d};c.getValueAtIndexOrDefault=function(a,e,d){return void 0===a||null===a?d:c.isArray(a)?ea};c.max=function(a){return a.reduce(function(a,c){return isNaN(c)?a:Math.max(a,c)},Number.NEGATIVE_INFINITY)};c.min=function(a){return a.reduce(function(a,c){return isNaN(c)?a:Math.min(a,c)},Number.POSITIVE_INFINITY)};c.sign=Math.sign?function(a){return Math.sign(a)}:function(a){return a=+a,0===a||isNaN(a)?a:0=w||(A=3/Math.sqrt(w),d.mK=q*A*d.deltaK,p.mK=l*A*d.deltaK)));var x;for(a=0;a=a.length-1?a[0]:a[c+1]:c>=a.length-1?a[a.length-1]:a[c+1]};c.previousItem=function(a,c,e){return e?0>=c?a[a.length-1]:a[c-1]:0>=c?a[0]:a[c-1]};c.niceNum=function(a,e){var d,p=Math.floor(c.log10(a)), -h=a/Math.pow(10,p);return d=e?1.5>h?1:3>h?2:7>h?5:10:1>=h?1:2>=h?2:5>=h?5:10,d*Math.pow(10,p)};var e=c.easingEffects={linear:function(a){return a},easeInQuad:function(a){return a*a},easeOutQuad:function(a){return-1*a*(a-2)},easeInOutQuad:function(a){return 1>(a/=.5)?.5*a*a:-.5*(--a*(a-2)-1)},easeInCubic:function(a){return a*a*a},easeOutCubic:function(a){return 1*((a=a/1-1)*a*a+1)},easeInOutCubic:function(a){return 1>(a/=.5)?.5*a*a*a:.5*((a-=2)*a*a+2)},easeInQuart:function(a){return a*a*a*a},easeOutQuart:function(a){return-1* +this),l(c,this),this._data=c);this.resyncElements()},update:e.noop,transition:function(c){for(var a=this.getMeta(),k=a.data||[],d=k.length,e=0;ek&&this.insertElements(k,a-k)},insertElements:function(c,a){for(var k=0;k=e[c].length||!e[c][k].type?e[c].push(d.configMerge(p,a)):a.type&&a.type!==e[c][k].type?e[c][k]=d.configMerge(e[c][k],p,a):e[c][k]=d.configMerge(e[c][k], +a)}):(e[c]=[],d.each(a,function(a){var k=d.getValueOrDefault(a.type,"xAxes"===c?"category":"linear");e[c].push(d.configMerge(f.scaleService.getScaleDefaults(k),a))})):e.hasOwnProperty(c)&&"object"==typeof e[c]&&null!==e[c]&&"object"==typeof a?e[c]=d.configMerge(e[c],a):e[c]=a}),e};d.getValueAtIndexOrDefault=function(a,c,e){return void 0===a||null===a?e:d.isArray(a)?ca};d.max=function(a){return a.reduce(function(a,c){return isNaN(c)?a:Math.max(a,c)},Number.NEGATIVE_INFINITY)};d.min=function(a){return a.reduce(function(a,c){return isNaN(c)?a:Math.min(a,c)},Number.POSITIVE_INFINITY)};d.sign=Math.sign?function(a){return Math.sign(a)}:function(a){return a=+a,0===a||isNaN(a)?a:0=w||(x=3/Math.sqrt(w),e.mK=q*x*e.deltaK,p.mK=l*x*e.deltaK)));var y;for(a=0;a=a.length-1?a[0]:a[c+1]:c>=a.length-1?a[a.length-1]:a[c+1]};d.previousItem=function(a,c,d){return d?0>=c?a[a.length-1]:a[c-1]:0>=c?a[0]:a[c-1]};d.niceNum=function(a,c){var e,p=Math.floor(d.log10(a)), +t=a/Math.pow(10,p);return e=c?1.5>t?1:3>t?2:7>t?5:10:1>=t?1:2>=t?2:5>=t?5:10,e*Math.pow(10,p)};var c=d.easingEffects={linear:function(a){return a},easeInQuad:function(a){return a*a},easeOutQuad:function(a){return-1*a*(a-2)},easeInOutQuad:function(a){return 1>(a/=.5)?.5*a*a:-.5*(--a*(a-2)-1)},easeInCubic:function(a){return a*a*a},easeOutCubic:function(a){return 1*((a=a/1-1)*a*a+1)},easeInOutCubic:function(a){return 1>(a/=.5)?.5*a*a*a:.5*((a-=2)*a*a+2)},easeInQuart:function(a){return a*a*a*a},easeOutQuart:function(a){return-1* ((a=a/1-1)*a*a*a-1)},easeInOutQuart:function(a){return 1>(a/=.5)?.5*a*a*a*a:-.5*((a-=2)*a*a*a-2)},easeInQuint:function(a){return 1*(a/=1)*a*a*a*a},easeOutQuint:function(a){return 1*((a=a/1-1)*a*a*a*a+1)},easeInOutQuint:function(a){return 1>(a/=.5)?.5*a*a*a*a*a:.5*((a-=2)*a*a*a*a+2)},easeInSine:function(a){return-1*Math.cos(a/1*(Math.PI/2))+1},easeOutSine:function(a){return 1*Math.sin(a/1*(Math.PI/2))},easeInOutSine:function(a){return-.5*(Math.cos(Math.PI*a/1)-1)},easeInExpo:function(a){return 0=== -a?1:1*Math.pow(2,10*(a/1-1))},easeOutExpo:function(a){return 1===a?1:1*(-Math.pow(2,-10*a/1)+1)},easeInOutExpo:function(a){return 0===a?0:1===a?1:1>(a/=.5)?.5*Math.pow(2,10*(a-1)):.5*(-Math.pow(2,-10*--a)+2)},easeInCirc:function(a){return 1<=a?a:-1*(Math.sqrt(1-(a/=1)*a)-1)},easeOutCirc:function(a){return 1*Math.sqrt(1-(a=a/1-1)*a)},easeInOutCirc:function(a){return 1>(a/=.5)?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)},easeInElastic:function(a){var c=1.70158,e=0,d=1;return 0===a?0:1===(a/= -1)?1:(e||(e=.3),da?-.5*d*Math.pow(2, -10*--a)*Math.sin(2*(1*a-c)*Math.PI/e):d*Math.pow(2,-10*--a)*Math.sin(2*(1*a-c)*Math.PI/e)*.5+1)},easeInBack:function(a){return 1*(a/=1)*a*(2.70158*a-1.70158)},easeOutBack:function(a){return 1*((a=a/1-1)*a*(2.70158*a+1.70158)+1)},easeInOutBack:function(a){var c=1.70158;return 1>(a/=.5)?.5*a*a*(((c*=1.525)+1)*a-c):.5*((a-=2)*a*(((c*=1.525)+1)*a+c)+2)},easeInBounce:function(a){return 1-e.easeOutBounce(1-a)},easeOutBounce:function(a){return(a/=1)<1/2.75?7.5625*a*a:a<2/2.75?1*(7.5625*(a-=1.5/2.75)*a+.75): -a<2.5/2.75?1*(7.5625*(a-=2.25/2.75)*a+.9375):1*(7.5625*(a-=2.625/2.75)*a+.984375)},easeInOutBounce:function(a){return.5>a?.5*e.easeInBounce(2*a):.5*e.easeOutBounce(2*a-1)+.5}};c.requestAnimFrame=function(){return"undefined"==typeof window?function(a){a()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){return window.setTimeout(a,1E3/60)}}();c.getRelativePosition=function(a, -e){var d,p,h=a.originalEvent||a,f=a.currentTarget||a.srcElement,l=f.getBoundingClientRect(),q=h.touches;q&&0d.length){for(d=0;dd&&(d=f),d};c.numberOfLabelLines=function(a){var e=1;return c.each(a,function(a){c.isArray(a)&&a.length>e&&(e=a.length)}),e};c.drawRoundedRectangle=function(a, -c,e,d,h,f){a.beginPath();a.moveTo(c+f,e);a.lineTo(c+d-f,e);a.quadraticCurveTo(c+d,e,c+d,e+f);a.lineTo(c+d,e+h-f);a.quadraticCurveTo(c+d,e+h,c+d-f,e+h);a.lineTo(c+f,e+h);a.quadraticCurveTo(c,e+h,c,e+h-f);a.lineTo(c,e+f);a.quadraticCurveTo(c,e,c+f,e);a.closePath()};c.color=w?function(a){return a instanceof CanvasGradient&&(a=f.defaults.global.defaultColor),w(a)}:function(a){return console.error("Color.js not found!"),a};c.isArray=Array.isArray?function(a){return Array.isArray(a)}:function(a){return"[object Array]"=== -Object.prototype.toString.call(a)};c.arrayEquals=function(a,e){var d,h,t,f;if(!a||!e||a.length!==e.length)return!1;d=0;for(h=a.length;d');for(var d=0;d'),f.data.datasets[d].label&&h.push(f.data.datasets[d].label), -h.push("");return h.push(""),h.join("")}}},f.Chart=f,f}},{}],29:[function(f,l,u){l.exports=function(f){function l(c,e){return d.where(c,function(a){return a.position===e})}function h(c,e){c.forEach(function(a,c){return a._tmpIndex_=c,a});c.sort(function(a,c){var d=e?c:a,h=e?a:c;return d.weight===h.weight?d._tmpIndex_-h._tmpIndex_:d.weight-h.weight});c.forEach(function(a){delete a._tmpIndex_})}var d=f.helpers;f.layoutService={defaults:{},addBox:function(c,e){c.boxes||(c.boxes=[]);e.fullWidth= -e.fullWidth||!1;e.position=e.position||"top";e.weight=e.weight||0;c.boxes.push(e)},removeBox:function(c,e){var a=c.boxes?c.boxes.indexOf(e):-1;-1!==a&&c.boxes.splice(a,1)},configure:function(c,e,a){for(var d=["fullWidth","position","weight"],h=d.length,p=0;pa&&kthis.maxHeight){k--;break}k++;f*=c}}this.labelRotation=k},afterCalculateTickRotation:function(){d.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){d.callback(this.options.beforeFit,[this])},fit:function(){var c=this.minSize={width:0,height:0},e=this.options,a=e.ticks,k=e.scaleLabel,f=e.gridLines,p=e.display,t=this.isHorizontal(),z=h(a),y=1.5*h(k).size,q=e.gridLines.tickMarkLength; -if(t?c.width=this.isFullWidth()?this.maxWidth-this.margins.left-this.margins.right:this.maxWidth:c.width=p&&f.drawTicks?q:0,t?c.height=p&&f.drawTicks?q:0:c.height=this.maxHeight,k.display&&p&&(t?c.height+=y:c.width+=y),a.display&&p)f=d.longestText(this.ctx,z.font,this.ticks,this.longestTextCache),p=d.numberOfLabelLines(this.ticks),k=.5*z.size,t?(this.longestLabelWidth=f,t=d.toRadians(this.labelRotation),a=Math.cos(t),c.height=Math.min(this.maxHeight,c.height+(Math.sin(t)*f+z.size*p+k*p)),this.ctx.font= -z.font,t=l(this.ctx,this.ticks[0],z.font),z=l(this.ctx,this.ticks[this.ticks.length-1],z.font),0!==this.labelRotation?(this.paddingLeft="bottom"===e.position?a*t+3:a*k+3,this.paddingRight="bottom"===e.position?a*k+3:a*z+3):(this.paddingLeft=t/2+3,this.paddingRight=z/2+3)):(a.mirror?f=0:f+=this.options.ticks.padding,c.width=Math.min(this.maxWidth,c.width+f),this.paddingTop=z.size/2,this.paddingBottom=z.size/2);this.handleMargins();this.width=c.width;this.height=c.height},handleMargins:function(){this.margins&& -(this.paddingLeft=Math.max(this.paddingLeft-this.margins.left,0),this.paddingTop=Math.max(this.paddingTop-this.margins.top,0),this.paddingRight=Math.max(this.paddingRight-this.margins.right,0),this.paddingBottom=Math.max(this.paddingBottom-this.margins.bottom,0))},afterFit:function(){d.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(c){return null=== -c||"undefined"==typeof c?NaN:"number"!=typeof c||isFinite(c)?"object"==typeof c?c instanceof Date||c.isValid?c:this.getRightValue(this.isHorizontal()?c.x:c.y):c:NaN},getLabelForIndex:d.noop,getPixelForValue:d.noop,getValueForPixel:d.noop,getPixelForTick:function(c,e){if(this.isHorizontal()){var a=(this.width-(this.paddingLeft+this.paddingRight))/Math.max(this.ticks.length-(this.options.gridLines.offsetGridLines?0:1),1),d=a*c+this.paddingLeft;e&&(d+=a/2);return this.left+Math.round(d)+(this.isFullWidth()? -this.margins.left:0)}return this.top+(this.height-(this.paddingTop+this.paddingBottom))/(this.ticks.length-1)*c},getPixelForDecimal:function(c){return this.isHorizontal()?this.left+Math.round((this.width-(this.paddingLeft+this.paddingRight))*c+this.paddingLeft)+(this.isFullWidth()?this.margins.left:0):this.top+c*this.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var c=this.min,e=this.max;return this.beginAtZero?0:0>c&&0>e?e:0e.width-(e.paddingLeft+e.paddingRight)&&(k=1+Math.floor((K+l.autoSkipPadding)*e.ticks.length/(e.width-(e.paddingLeft+e.paddingRight)))),n&&e.ticks.length>n)for(;!k||e.ticks.length/(k||1)>n;)k||(k=1),k+=1;A||(k=!1)}var N="right"===a.position?e.left:e.right-B,L="right"===a.position?e.left+B:e.right,M="bottom"===a.position?e.top:e.bottom-B,S="bottom"===a.position?e.top+B:e.bottom;if(d.each(e.ticks,function(h,p){if(void 0!==h&&null!==h){var f=e.ticks.length===p+1;if((!(1=e.ticks.length)||f)&&void 0!==h&&null!==h){var n,q,A,w;p===("undefined"!=typeof e.zeroLineIndex?e.zeroLineIndex:0)?(n=y.zeroLineWidth,q=y.zeroLineColor,A=y.zeroLineBorderDash,w=y.zeroLineBorderDashOffset):(n=d.getValueAtIndexOrDefault(y.lineWidth,p),q=d.getValueAtIndexOrDefault(y.color,p),A=d.getValueOrDefault(y.borderDash,t.borderDash),w=d.getValueOrDefault(y.borderDashOffset,t.borderDashOffset));var C,D,E,G,K,la,sa,ta,ea,ca,ua=f="middle";x?("bottom"===a.position?(ua=u?"middle":"top",f= -u?"right":"center",ca=e.top+B):(ua=u?"middle":"bottom",f=u?"left":"center",ca=e.bottom-B),C=e.getPixelForTick(p)+d.aliasPixel(n),ea=e.getPixelForTick(p,y.offsetGridLines)+l.labelOffset,C=E=K=sa=C,D=M,G=S,la=c.top,ta=c.bottom):(ca="left"===a.position,C=l.padding,l.mirror?(f=ca?"left":"right",ea=C):(f=ca?"right":"left",ea=B+C),ea=ca?e.right-ea:e.left+ea,D=e.getPixelForTick(p),D+=d.aliasPixel(n),ca=e.getPixelForTick(p,y.offsetGridLines),C=N,E=L,K=c.left,sa=c.right,D=G=la=ta=D);I.push({tx1:C,ty1:D,tx2:E, -ty2:G,x1:K,y1:la,x2:sa,y2:ta,labelX:ea,labelY:ca,glWidth:n,glColor:q,glBorderDash:A,glBorderDashOffset:w,rotation:-1*H,label:h,textBaseline:ua,textAlign:f})}}}),d.each(I,function(a){if(y.display&&(p.save(),p.lineWidth=a.glWidth,p.strokeStyle=a.glColor,p.setLineDash&&(p.setLineDash(a.glBorderDash),p.lineDashOffset=a.glBorderDashOffset),p.beginPath(),y.drawTicks&&(p.moveTo(a.tx1,a.ty1),p.lineTo(a.tx2,a.ty2)),y.drawOnChartArea&&(p.moveTo(a.x1,a.y1),p.lineTo(a.x2,a.y2)),p.stroke(),p.restore()),l.display){p.save(); -p.translate(a.labelX,a.labelY);p.rotate(a.rotation);p.font=C.font;p.textBaseline=a.textBaseline;p.textAlign=a.textAlign;a=a.label;if(d.isArray(a))for(var c=0,e=0;cd.height-c.height&&(f="bottom");var n,l,u,w,x=(k.left+k.right)/2,E=(k.top+k.bottom)/2;"center"===f?(n=function(a){return a<=x},l=function(a){return a>x}):(n=function(a){return a<=c.width/2},l=function(a){return a>=d.width-c.width/2});k=function(a){return a+c.width>d.width};u=function(a){return 0>a-c.width};w=function(a){return a<=E?"top":"bottom"};n(e.x)? -(h="left",k(e.x)&&(h="center",f=w(e.y))):l(e.x)&&(h="right",u(e.x)&&(h="center",f=w(e.y)));e=a._options;return{xAlign:e.xAlign?e.xAlign:h,yAlign:e.yAlign?e.yAlign:f}}function k(a,c,e){var d=a.x,k=a.y,h=a.caretPadding,f=e.xAlign;e=e.yAlign;var n=a.caretSize+h;a=a.cornerRadius+h;return"right"===f?d-=c.width:"center"===f&&(d-=c.width/2),"top"===e?k+=n:k-="bottom"===e?c.height+n:c.height/2,"center"===e?"left"===f?d+=n:"right"===f&&(d-=n):"left"===f?d-=a:"right"===f&&(d+=a),{x:d,y:k}}var n=f.helpers;f.defaults.global.tooltips= +a?1:1*Math.pow(2,10*(a/1-1))},easeOutExpo:function(a){return 1===a?1:1*(-Math.pow(2,-10*a/1)+1)},easeInOutExpo:function(a){return 0===a?0:1===a?1:1>(a/=.5)?.5*Math.pow(2,10*(a-1)):.5*(-Math.pow(2,-10*--a)+2)},easeInCirc:function(a){return 1<=a?a:-1*(Math.sqrt(1-(a/=1)*a)-1)},easeOutCirc:function(a){return 1*Math.sqrt(1-(a=a/1-1)*a)},easeInOutCirc:function(a){return 1>(a/=.5)?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)},easeInElastic:function(a){var c=1.70158,d=0,e=1;return 0===a?0:1===(a/= +1)?1:(d||(d=.3),ea?-.5*e*Math.pow(2, +10*--a)*Math.sin(2*(1*a-c)*Math.PI/d):e*Math.pow(2,-10*--a)*Math.sin(2*(1*a-c)*Math.PI/d)*.5+1)},easeInBack:function(a){return 1*(a/=1)*a*(2.70158*a-1.70158)},easeOutBack:function(a){return 1*((a=a/1-1)*a*(2.70158*a+1.70158)+1)},easeInOutBack:function(a){var c=1.70158;return 1>(a/=.5)?.5*a*a*(((c*=1.525)+1)*a-c):.5*((a-=2)*a*(((c*=1.525)+1)*a+c)+2)},easeInBounce:function(a){return 1-c.easeOutBounce(1-a)},easeOutBounce:function(a){return(a/=1)<1/2.75?7.5625*a*a:a<2/2.75?1*(7.5625*(a-=1.5/2.75)*a+.75): +a<2.5/2.75?1*(7.5625*(a-=2.25/2.75)*a+.9375):1*(7.5625*(a-=2.625/2.75)*a+.984375)},easeInOutBounce:function(a){return.5>a?.5*c.easeInBounce(2*a):.5*c.easeOutBounce(2*a-1)+.5}};d.requestAnimFrame=function(){return"undefined"==typeof window?function(a){a()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){return window.setTimeout(a,1E3/60)}}();d.getRelativePosition=function(a, +c){var e,p,t=a.originalEvent||a,h=a.currentTarget||a.srcElement,f=h.getBoundingClientRect(),q=t.touches;q&&0e.length){for(e=0;ee&&(e=f),e};d.numberOfLabelLines=function(a){var c=1;return d.each(a,function(a){d.isArray(a)&&a.length>c&&(c=a.length)}),c};d.drawRoundedRectangle=function(a, +c,d,e,h,f){a.beginPath();a.moveTo(c+f,d);a.lineTo(c+e-f,d);a.quadraticCurveTo(c+e,d,c+e,d+f);a.lineTo(c+e,d+h-f);a.quadraticCurveTo(c+e,d+h,c+e-f,d+h);a.lineTo(c+f,d+h);a.quadraticCurveTo(c,d+h,c,d+h-f);a.lineTo(c,d+f);a.quadraticCurveTo(c,d,c+f,d);a.closePath()};d.color=w?function(a){return a instanceof CanvasGradient&&(a=f.defaults.global.defaultColor),w(a)}:function(a){return console.error("Color.js not found!"),a};d.isArray=Array.isArray?function(a){return Array.isArray(a)}:function(a){return"[object Array]"=== +Object.prototype.toString.call(a)};d.arrayEquals=function(a,c){var e,p,h,f;if(!a||!c||a.length!==c.length)return!1;e=0;for(p=a.length;e');for(var e=0;e'),f.data.datasets[e].label&&h.push(f.data.datasets[e].label), +h.push("");return h.push(""),h.join("")}}},f.Chart=f,f}},{}],29:[function(f,l,u){l.exports=function(f){function l(d,c){return e.where(d,function(a){return a.position===c})}function h(d,c){d.forEach(function(a,c){return a._tmpIndex_=c,a});d.sort(function(a,d){var e=c?d:a,h=c?a:d;return e.weight===h.weight?e._tmpIndex_-h._tmpIndex_:e.weight-h.weight});d.forEach(function(a){delete a._tmpIndex_})}var e=f.helpers;f.layoutService={defaults:{},addBox:function(d,c){d.boxes||(d.boxes=[]);c.fullWidth= +c.fullWidth||!1;c.position=c.position||"top";c.weight=c.weight||0;d.boxes.push(c)},removeBox:function(d,c){var a=d.boxes?d.boxes.indexOf(c):-1;-1!==a&&d.boxes.splice(a,1)},configure:function(d,c,a){for(var e=["fullWidth","position","weight"],h=e.length,p=0;pa&&kthis.maxHeight){k--;break}k++;f*=d}}this.labelRotation=k},afterCalculateTickRotation:function(){e.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){e.callback(this.options.beforeFit,[this])},fit:function(){var d=this.minSize={width:0,height:0},c=this.options,a=c.ticks,k=c.scaleLabel,f=c.gridLines,p=c.display,t=this.isHorizontal(),A=h(a),z=1.5*h(k).size,q=c.gridLines.tickMarkLength; +if(t?d.width=this.isFullWidth()?this.maxWidth-this.margins.left-this.margins.right:this.maxWidth:d.width=p&&f.drawTicks?q:0,t?d.height=p&&f.drawTicks?q:0:d.height=this.maxHeight,k.display&&p&&(t?d.height+=z:d.width+=z),a.display&&p)f=e.longestText(this.ctx,A.font,this.ticks,this.longestTextCache),p=e.numberOfLabelLines(this.ticks),k=.5*A.size,t?(this.longestLabelWidth=f,t=e.toRadians(this.labelRotation),a=Math.cos(t),d.height=Math.min(this.maxHeight,d.height+(Math.sin(t)*f+A.size*p+k*p)),this.ctx.font= +A.font,t=l(this.ctx,this.ticks[0],A.font),A=l(this.ctx,this.ticks[this.ticks.length-1],A.font),0!==this.labelRotation?(this.paddingLeft="bottom"===c.position?a*t+3:a*k+3,this.paddingRight="bottom"===c.position?a*k+3:a*A+3):(this.paddingLeft=t/2+3,this.paddingRight=A/2+3)):(a.mirror?f=0:f+=this.options.ticks.padding,d.width=Math.min(this.maxWidth,d.width+f),this.paddingTop=A.size/2,this.paddingBottom=A.size/2);this.handleMargins();this.width=d.width;this.height=d.height},handleMargins:function(){this.margins&& +(this.paddingLeft=Math.max(this.paddingLeft-this.margins.left,0),this.paddingTop=Math.max(this.paddingTop-this.margins.top,0),this.paddingRight=Math.max(this.paddingRight-this.margins.right,0),this.paddingBottom=Math.max(this.paddingBottom-this.margins.bottom,0))},afterFit:function(){e.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(d){return null=== +d||"undefined"==typeof d?NaN:"number"!=typeof d||isFinite(d)?"object"==typeof d?d instanceof Date||d.isValid?d:this.getRightValue(this.isHorizontal()?d.x:d.y):d:NaN},getLabelForIndex:e.noop,getPixelForValue:e.noop,getValueForPixel:e.noop,getPixelForTick:function(d,c){if(this.isHorizontal()){var a=(this.width-(this.paddingLeft+this.paddingRight))/Math.max(this.ticks.length-(this.options.gridLines.offsetGridLines?0:1),1),e=a*d+this.paddingLeft;c&&(e+=a/2);return this.left+Math.round(e)+(this.isFullWidth()? +this.margins.left:0)}return this.top+(this.height-(this.paddingTop+this.paddingBottom))/(this.ticks.length-1)*d},getPixelForDecimal:function(d){return this.isHorizontal()?this.left+Math.round((this.width-(this.paddingLeft+this.paddingRight))*d+this.paddingLeft)+(this.isFullWidth()?this.margins.left:0):this.top+d*this.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var d=this.min,c=this.max;return this.beginAtZero?0:0>d&&0>c?c:0c.width-(c.paddingLeft+c.paddingRight)&&(k=1+Math.floor((K+l.autoSkipPadding)*c.ticks.length/(c.width-(c.paddingLeft+c.paddingRight)))),n&&c.ticks.length>n)for(;!k||c.ticks.length/(k||1)>n;)k||(k=1),k+=1;x||(k=!1)}var N="right"===a.position?c.left:c.right-B,L="right"===a.position?c.left+B:c.right,M="bottom"===a.position?c.top:c.bottom-B,R="bottom"===a.position?c.top+B:c.bottom;if(e.each(c.ticks,function(h,p){if(void 0!==h&&null!==h){var f=c.ticks.length===p+1;if((!(1=c.ticks.length)||f)&&void 0!==h&&null!==h){var n,q,x,w;p===("undefined"!=typeof c.zeroLineIndex?c.zeroLineIndex:0)?(n=z.zeroLineWidth,q=z.zeroLineColor,x=z.zeroLineBorderDash,w=z.zeroLineBorderDashOffset):(n=e.getValueAtIndexOrDefault(z.lineWidth,p),q=e.getValueAtIndexOrDefault(z.color,p),x=e.getValueOrDefault(z.borderDash,t.borderDash),w=e.getValueOrDefault(z.borderDashOffset,t.borderDashOffset));var C,D,E,F,K,la,sa,ta,ea,ca,ua=f="middle";y?("bottom"===a.position?(ua=u?"middle":"top",f= +u?"right":"center",ca=c.top+B):(ua=u?"middle":"bottom",f=u?"left":"center",ca=c.bottom-B),C=c.getPixelForTick(p)+e.aliasPixel(n),ea=c.getPixelForTick(p,z.offsetGridLines)+l.labelOffset,C=E=K=sa=C,D=M,F=R,la=d.top,ta=d.bottom):(ca="left"===a.position,C=l.padding,l.mirror?(f=ca?"left":"right",ea=C):(f=ca?"right":"left",ea=B+C),ea=ca?c.right-ea:c.left+ea,D=c.getPixelForTick(p),D+=e.aliasPixel(n),ca=c.getPixelForTick(p,z.offsetGridLines),C=N,E=L,K=d.left,sa=d.right,D=F=la=ta=D);I.push({tx1:C,ty1:D,tx2:E, +ty2:F,x1:K,y1:la,x2:sa,y2:ta,labelX:ea,labelY:ca,glWidth:n,glColor:q,glBorderDash:x,glBorderDashOffset:w,rotation:-1*H,label:h,textBaseline:ua,textAlign:f})}}}),e.each(I,function(a){if(z.display&&(p.save(),p.lineWidth=a.glWidth,p.strokeStyle=a.glColor,p.setLineDash&&(p.setLineDash(a.glBorderDash),p.lineDashOffset=a.glBorderDashOffset),p.beginPath(),z.drawTicks&&(p.moveTo(a.tx1,a.ty1),p.lineTo(a.tx2,a.ty2)),z.drawOnChartArea&&(p.moveTo(a.x1,a.y1),p.lineTo(a.x2,a.y2)),p.stroke(),p.restore()),l.display){p.save(); +p.translate(a.labelX,a.labelY);p.rotate(a.rotation);p.font=C.font;p.textBaseline=a.textBaseline;p.textAlign=a.textAlign;a=a.label;if(e.isArray(a))for(var c=0,d=0;ce.height-c.height&&(f="bottom");var n,l,u,w,y=(k.left+k.right)/2,E=(k.top+k.bottom)/2;"center"===f?(n=function(a){return a<=y},l=function(a){return a>y}):(n=function(a){return a<=c.width/2},l=function(a){return a>=e.width-c.width/2});k=function(a){return a+c.width>e.width};u=function(a){return 0>a-c.width};w=function(a){return a<=E?"top":"bottom"};n(d.x)? +(h="left",k(d.x)&&(h="center",f=w(d.y))):l(d.x)&&(h="right",u(d.x)&&(h="center",f=w(d.y)));d=a._options;return{xAlign:d.xAlign?d.xAlign:h,yAlign:d.yAlign?d.yAlign:f}}function k(a,c,d){var e=a.x,k=a.y,h=a.caretPadding,f=d.xAlign;d=d.yAlign;var n=a.caretSize+h;a=a.cornerRadius+h;return"right"===f?e-=c.width:"center"===f&&(e-=c.width/2),"top"===d?k+=n:k-="bottom"===d?c.height+n:c.height/2,"center"===d?"left"===f?e+=n:"right"===f&&(e-=n):"left"===f?e-=a:"right"===f&&(e+=a),{x:e,y:k}}var n=f.helpers;f.defaults.global.tooltips= {enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0, -callbacks:{beforeTitle:n.noop,title:function(a,c){var e="",d=c.labels,k=d?d.length:0;if(0c.opacity)?0:c.opacity,h=c.title.length||c.beforeBody.length||c.body.length||c.afterBody.length||c.footer.length;this._options.enabled&&h&&(this.drawBackground(d,c,a,e,k),d.x+=c.xPadding,d.y+=c.yPadding,this.drawTitle(d,c,a,k),this.drawBody(d,c,a,k),this.drawFooter(d,c,a,k))}},handleEvent:function(a){var c=this._options, -e=!1;if(this._lastActive=this._lastActive||[],"mouseout"===a.type?this._active=[]:this._active=this._chart.getElementsAtEventForMode(a,c.mode,c),e=!n.arrayEquals(this._active,this._lastActive),!e)return!1;if(this._lastActive=this._active,c.enabled||c.custom)this._eventPosition={x:a.x,y:a.y},a=this._model,this.update(!0),this.pivot(),e|=a.x!==this._model.x||a.y!==this._model.y;return e}});f.Tooltip.positioners={average:function(a){if(!a.length)return!1;var c,e,d=0,k=0,h=0;c=0;for(e=a.length;cf;)k-=2*Math.PI;for(;k=e.innerRadius&&h<=e.outerRadius;return k>=a&&k<=f&&e}return!1},getCenterPoint:function(){var d=this._view,c=(d.startAngle+d.endAngle)/2,e= -(d.innerRadius+d.outerRadius)/2;return{x:d.x+Math.cos(c)*e,y:d.y+Math.sin(c)*e}},getArea:function(){var d=this._view;return(d.endAngle-d.startAngle)/(2*Math.PI)*Math.PI*(Math.pow(d.outerRadius,2)-Math.pow(d.innerRadius,2))},tooltipPosition:function(){var d=this._view,c=d.startAngle+(d.endAngle-d.startAngle)/2,e=(d.outerRadius-d.innerRadius)/2+d.innerRadius;return{x:d.x+Math.cos(c)*e,y:d.y+Math.sin(c)*e}},draw:function(){var d=this._chart.ctx,c=this._view,e=c.startAngle,a=c.endAngle;d.beginPath(); -d.arc(c.x,c.y,c.outerRadius,e,a);d.arc(c.x,c.y,c.innerRadius,a,e,!0);d.closePath();d.strokeStyle=c.borderColor;d.lineWidth=c.borderWidth;d.fillStyle=c.backgroundColor;d.fill();d.lineJoin="bevel";c.borderWidth&&d.stroke()}})}},{}],36:[function(f,l,u){l.exports=function(f){var l=f.helpers,h=f.defaults.global;f.defaults.global.elements.line={tension:.4,backgroundColor:h.defaultColor,borderWidth:3,borderColor:h.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter", -capBezierPoints:!0,fill:!0};f.elements.Line=f.Element.extend({draw:function(){var d,c,e,a;d=this._view;var k=this._chart.ctx,f=d.spanGaps,p=this._children.slice();c=h.elements.line;var t=-1;this._loop&&p.length&&p.push(p[0]);k.save();k.lineCap=d.borderCapStyle||c.borderCapStyle;k.setLineDash&&k.setLineDash(d.borderDash||c.borderDash);k.lineDashOffset=d.borderDashOffset||c.borderDashOffset;k.lineJoin=d.borderJoinStyle||c.borderJoinStyle;k.lineWidth=d.borderWidth||c.borderWidth;k.strokeStyle=d.borderColor|| -h.defaultColor;k.beginPath();t=-1;for(d=0;dd?1:-1,h=1,f=z.borderSkipped||"left"):(d=z.x-z.width/2,c=z.x+z.width/2,e=z.y,a=z.base,k=1,h=a>e?1:-1,f=z.borderSkipped|| -"bottom"),u){var q=Math.min(Math.abs(d-c),Math.abs(e-a)),u=u>q?q:u,w=u/2,q=d+("left"!==f?w*k:0);k=c+("right"!==f?-w*k:0);var x=e+("top"!==f?w*h:0);h=a+("bottom"!==f?-w*h:0);q!==k&&(e=x,a=h);x!==h&&(d=q,c=k)}l.beginPath();l.fillStyle=z.backgroundColor;l.strokeStyle=z.borderColor;l.lineWidth=u;d=[[d,a],[d,e],[c,e],[c,a]];f=["bottom","left","top","right"].indexOf(f,0);-1===f&&(f=0);c=d[(f+0)%4];l.moveTo(c[0],c[1]);for(e=1;4>e;e++)c=d[(f+e)%4],l.lineTo(c[0],c[1]);l.fill();u&&l.stroke()},height:function(){var d= -this._view;return d.base-d.y},inRange:function(d,c){var e=!1;this._view&&(e=l(this),e=d>=e.left&&d<=e.right&&c>=e.top&&c<=e.bottom);return e},inLabelRange:function(d,c){if(!this._view)return!1;var e=l(this);return void 0!==this._view.width?d>=e.left&&d<=e.right:c>=e.top&&c<=e.bottom},inXRange:function(d){var c=l(this);return d>=c.left&&d<=c.right},inYRange:function(d){var c=l(this);return d>=c.top&&d<=c.bottom},getCenterPoint:function(){var d,c,e=this._view;return void 0!==this._view.width?(d=e.x, -c=(e.y+e.base)/2):(d=(e.x+e.base)/2,c=e.y),{x:d,y:c}},getArea:function(){var d=this._view;return d.width*Math.abs(d.y-d.base)},tooltipPosition:function(){var d=this._view;return{x:d.x,y:d.y}}})}},{}],39:[function(f,l,u){l.exports=function(f){function l(a,c){var d=e.getStyle(a,c);return(d=d&&d.match(/^(\d+)(\.\d+)?px$/))?Number(d[1]):void 0}function h(a,c,e,d,h){return{type:a,chart:c,"native":h||null,x:void 0!==e?e:null,y:void 0!==d?d:null}}function d(a){var c=document.createElement("iframe");return c.className= -"chartjs-hidden-iframe",c.style.cssText="display:block;overflow:hidden;border:0;margin:0;top:0;left:0;bottom:0;right:0;height:100%;width:100%;position:absolute;pointer-events:none;z-index:-1;",c.tabIndex=-1,e.addEvent(c,"load",function(){e.addEvent(c.contentWindow||c,"resize",a);a()}),c}function c(a,c,f){var l=a._chartjs={ticking:!1};l.resizer=d(function(){l.ticking||(l.ticking=!0,e.requestAnimFrame.call(window,function(){if(l.resizer)return l.ticking=!1,c(h("resize",f))}))});a.insertBefore(l.resizer, -a.firstChild)}var e=f.helpers,a={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};return{acquireContext:function(a,c){"string"==typeof a?a=document.getElementById(a):a.length&&(a=a[0]);a&&a.canvas&&(a=a.canvas);var e=a&&a.getContext&&a.getContext("2d");if(e&&e.canvas===a){var d=a,h=d.style,f=d.getAttribute("height"),q=d.getAttribute("width");if(d._chartjs= -{initial:{height:f,width:q,style:{display:h.display,height:h.height,width:h.width}}},h.display=h.display||"block",null===q||""===q){var u=l(d,"width");void 0!==u&&(d.width=u)}if(null===f||""===f)""===d.style.height?d.height=d.width/(c.options.aspectRatio||2):(h=l(d,"height"),void 0!==u&&(d.height=h))}else e=null;return e},releaseContext:function(a){var c=a.canvas;if(c._chartjs){var d=c._chartjs.initial;["height","width"].forEach(function(a){var e=d[a];void 0===e||null===e?c.removeAttribute(a):c.setAttribute(a, -e)});e.each(d.style||{},function(a,e){c.style[e]=a});c.width=c.width;delete c._chartjs}},addEventListener:function(d,f,l){var t=d.canvas;if("resize"===f)return void c(t.parentNode,l,d);var u=l._chartjs||(l._chartjs={}),u=(u.proxies||(u.proxies={}))[d.id+"_"+f]=function(c){var f=a[c.type]||c.type,n=e.getRelativePosition(c,d);c=h(f,d,n.x,n.y,c);l(c)};e.addEvent(t,f,u)},removeEventListener:function(a,c,d){var h=a.canvas;"resize"===c?(c=h.parentNode)&&c._chartjs&&((h=c._chartjs.resizer)&&(h.parentNode.removeChild(h), -c._chartjs.resizer=null),delete c._chartjs):(a=((d._chartjs||{}).proxies||{})[a.id+"_"+c])&&e.removeEvent(h,c,a)}}}},{}],40:[function(f,l,u){var w=f(39);l.exports=function(f){f.platform={acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}};f.helpers.extend(f.platform,w(f))}},{39:39}],41:[function(f,l,u){l.exports=function(f){function l(a,c,e){var d;a=a._model||{};var h=a.fill;if(void 0===h&&(h=!!a.backgroundColor),!1===h||null===h)return!1; -if(!0===h)return"origin";if(d=parseFloat(h,10),isFinite(d)&&Math.floor(d)===d)return"-"!==h[0]&&"+"!==h[0]||(d=c+d),!(d===c||0>d||d>=e)&&d;switch(h){case "bottom":return"start";case "top":return"end";case "zero":return"origin";case "origin":case "start":case "end":return h;default:return!1}}function h(a){var c,e=a.el._model||{},d=a.el._scale||{};a=a.fill;var h=null;if(isFinite(a))return null;if("start"===a?h=void 0===e.scaleBottom?d.bottom:e.scaleBottom:"end"===a?h=void 0===e.scaleTop?d.top:e.scaleTop: -void 0!==e.scaleZero?h=e.scaleZero:d.getBasePosition?h=d.getBasePosition():d.getBasePixel&&(h=d.getBasePixel()),void 0!==h&&null!==h){if(void 0!==h.x&&void 0!==h.y)return h;if("number"==typeof h&&isFinite(h))return c=d.isHorizontal(),{x:c?h:null,y:c?null:h}}return null}function d(a,c,d,h,f){var l;if(h&&f){a.moveTo(c[0].x,c[0].y);for(l=1;l=c.width&&(F+=u+d.padding,A[A.length]= -c.left);q[h]={left:0,top:0,width:f,height:u};A[A.length-1]+=f+d.padding});x.height+=F}else{var a=d.padding,D=c.columnWidths=[],C=d.padding,B=0,G=0,E=u+a;h.each(c.legendItems,function(a,c){var e=(d.usePointStyle?u*Math.SQRT2:d.boxWidth)+u/2+l.measureText(a.text).width;G+E>x.height&&(C+=B+d.padding,D.push(B),B=0,G=0);B=Math.max(B,e);G+=E;q[c]={left:0,top:0,width:e,height:u}});C+=B;D.push(B);x.width+=C}c.width=x.width;c.height=x.height},afterFit:c,isHorizontal:function(){return"top"===this.options.position|| -"bottom"===this.options.position},draw:function(){var c=this,a=c.options,d=a.labels,l=f.defaults.global,p=l.elements.line,t=c.width,u=c.lineWidths;if(a.display){var y,q=c.ctx,x=h.getValueOrDefault,A=x(d.fontColor,l.defaultFontColor),F=x(d.fontSize,l.defaultFontSize),D=x(d.fontStyle,l.defaultFontStyle),C=x(d.fontFamily,l.defaultFontFamily),D=h.fontString(F,D,C);q.textAlign="left";q.textBaseline="top";q.lineWidth=.5;q.strokeStyle=A;q.fillStyle=A;q.font=D;var B=d.usePointStyle?F*Math.SQRT2:d.boxWidth, -G=c.legendHitBoxes,E=c.isHorizontal();y=E?{x:c.left+(t-u[0])/2,y:c.top+d.padding,line:0}:{x:c.left+d.padding,y:c.top+d.padding,line:0};var H=F+d.padding;h.each(c.legendItems,function(h,A){var C=q.measureText(h.text).width,D=B+F/2+C,M=y.x,S=y.y;E?M+D>=t&&(S=y.y+=H,y.line++,M=y.x=c.left+(t-u[y.line])/2):S+H>c.bottom&&(M=y.x=M+c.columnWidths[y.line]+d.padding,S=y.y=c.top+d.padding,y.line++);var W=M,Z=S;if(!(isNaN(B)||0>=B)){q.save();q.fillStyle=x(h.fillStyle,l.defaultColor);q.lineCap=x(h.lineCap,p.borderCapStyle); -q.lineDashOffset=x(h.lineDashOffset,p.borderDashOffset);q.lineJoin=x(h.lineJoin,p.borderJoinStyle);q.lineWidth=x(h.lineWidth,p.borderWidth);q.strokeStyle=x(h.strokeStyle,l.defaultColor);var Y=0===x(h.lineWidth,p.borderWidth);if(q.setLineDash&&q.setLineDash(x(h.lineDash,p.borderDash)),a.labels&&a.labels.usePointStyle){var Y=F*Math.SQRT2/2,Q=Y/Math.SQRT2;f.canvasHelpers.drawPoint(q,h.pointStyle,Y,W+Q,Z+Q)}else Y||q.strokeRect(W,Z,B,F),q.fillRect(W,Z,B,F);q.restore()}G[A].left=M;G[A].top=S;q.fillText(h.text, -B+F/2+M,S);h.hidden&&(q.beginPath(),q.lineWidth=2,q.moveTo(B+F/2+M,S+F/2),q.lineTo(B+F/2+M+C,S+F/2),q.stroke());E?y.x+=D+d.padding:y.y+=H})}},handleEvent:function(c){var a=this.options,d="mouseup"===c.type?"click":c.type,h=!1;if("mousemove"===d){if(!a.onHover)return}else if("click"!==d||!a.onClick)return;var f=c.x,l=c.y;if(f>=this.left&&f<=this.right&&l>=this.top&&l<=this.bottom)for(var u=this.legendHitBoxes,x=0;x=q.left&&f<=q.left+q.width&&l>=q.top&&l<=q.top+q.height){if("click"=== -d){a.onClick.call(this,c["native"],this.legendItems[x]);h=!0;break}if("mousemove"===d){a.onHover.call(this,c["native"],this.legendItems[x]);h=!0;break}}}return h}}),{id:"legend",beforeInit:function(c){var a=c.options.legend;a&&l(c,a)},beforeUpdate:function(c){var a=c.options.legend,k=c.legend;a?(a=h.configMerge(f.defaults.global.legend,a),k?(d.configure(c,k,a),k.options=a):l(c,a)):k&&(d.removeBox(c,k),delete c.legend)},afterEvent:function(c,a){var d=c.legend;d&&d.handleEvent(a)}}}},{}],43:[function(f, -l,u){l.exports=function(f){function l(c,a){var h=new f.Title({ctx:c.ctx,options:a,chart:c});d.configure(c,h,a);d.addBox(c,h);c.titleBlock=h}var h=f.helpers,d=f.layoutService,c=h.noop;return f.defaults.global.title={display:!1,position:"top",fullWidth:!0,weight:2E3,fontStyle:"bold",padding:10,text:""},f.Title=f.Element.extend({initialize:function(c){h.extend(this,c);this.legendHitBoxes=[]},beforeUpdate:c,update:function(c,a,d){return this.beforeUpdate(),this.maxWidth=c,this.maxHeight=a,this.margins= -d,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this.beforeBuildLabels(),this.buildLabels(),this.afterBuildLabels(),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate(),this.minSize},afterUpdate:c,beforeSetDimensions:c,setDimensions:function(){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.paddingBottom=this.paddingRight=this.paddingTop=this.paddingLeft=0;this.minSize= -{width:0,height:0}},afterSetDimensions:c,beforeBuildLabels:c,buildLabels:c,afterBuildLabels:c,beforeFit:c,fit:function(){var c=h.getValueOrDefault,a=this.options,d=a.display,c=c(a.fontSize,f.defaults.global.defaultFontSize),l=this.minSize;this.isHorizontal()?(l.width=this.maxWidth,l.height=d?c+2*a.padding:0):(l.width=d?c+2*a.padding:0,l.height=this.maxHeight);this.width=l.width;this.height=l.height},afterFit:c,isHorizontal:function(){var c=this.options.position;return"top"===c||"bottom"===c},draw:function(){var c= -this.ctx,a=h.getValueOrDefault,d=this.options,l=f.defaults.global;if(d.display){var p,t,u,x=a(d.fontSize,l.defaultFontSize),q=a(d.fontStyle,l.defaultFontStyle),P=a(d.fontFamily,l.defaultFontFamily),q=h.fontString(x,q,P),P=0,A=this.top,F=this.left,D=this.bottom,C=this.right;c.fillStyle=a(d.fontColor,l.defaultFontColor);c.font=q;this.isHorizontal()?(p=F+(C-F)/2,t=A+(D-A)/2,u=C-F):(p="left"===d.position?F+x/2:C-x/2,t=A+(D-A)/2,u=D-A,P=Math.PI*("left"===d.position?-.5:.5));c.save();c.translate(p,t);c.rotate(P); -c.textAlign="center";c.textBaseline="middle";c.fillText(d.text,0,0,u);c.restore()}}}),{id:"title",beforeInit:function(c){var a=c.options.title;a&&l(c,a)},beforeUpdate:function(c){var a=c.options.title,k=c.titleBlock;a?(a=h.configMerge(f.defaults.global.title,a),k?(d.configure(c,k,a),k.options=a):l(c,a)):k&&(f.layoutService.removeBox(c,k),delete c.titleBlock)}}}},{}],44:[function(f,l,u){l.exports=function(f){var l=f.helpers,h=f.Scale.extend({getLabels:function(){var d=this.chart.data;return(this.isHorizontal()? -d.xLabels:d.yLabels)||d.labels},determineDataLimits:function(){var d=this.getLabels();this.minIndex=0;this.maxIndex=d.length-1;var c;void 0!==this.options.ticks.min&&(c=l.indexOf(d,this.options.ticks.min),this.minIndex=-1!==c?c:this.minIndex);void 0!==this.options.ticks.max&&(c=l.indexOf(d,this.options.ticks.max),this.maxIndex=-1!==c?c:this.maxIndex);this.min=d[this.minIndex];this.max=d[this.maxIndex]},buildTicks:function(){var d=this.getLabels();this.ticks=0===this.minIndex&&this.maxIndex===d.length- -1?d:d.slice(this.minIndex,this.maxIndex+1)},getLabelForIndex:function(d,c){var e=this.chart.data,a=this.isHorizontal();return e.yLabels&&!a?this.getRightValue(e.datasets[c].data[d]):this.ticks[d-this.minIndex]},getPixelForValue:function(d,c,e,a){var h;e=Math.max(this.maxIndex+1-this.minIndex-(this.options.gridLines.offsetGridLines?0:1),1);if(void 0!==d&&null!==d&&(h=this.isHorizontal()?d.x:d.y),void 0!==h||void 0!==d&&isNaN(c)){var f=this.getLabels();d=f.indexOf(h||d);c=-1!==d?d:c}if(this.isHorizontal())return d= -this.width/e,c=d*(c-this.minIndex),(this.options.gridLines.offsetGridLines&&a||this.maxIndex===this.minIndex&&a)&&(c+=d/2),this.left+Math.round(c);d=this.height/e;c=d*(c-this.minIndex);return this.options.gridLines.offsetGridLines&&a&&(c+=d/2),this.top+Math.round(c)},getPixelForTick:function(d,c){return this.getPixelForValue(this.ticks[d],d+this.minIndex,null,c)},getValueForPixel:function(d){var c=Math.max(this.ticks.length-(this.options.gridLines.offsetGridLines?0:1),1),e=this.isHorizontal(),c=(e? -this.width:this.height)/c;return d-=e?this.left:this.top,this.options.gridLines.offsetGridLines&&(d-=c/2),0>=d?0:Math.round(d/c)},getBasePixel:function(){return this.bottom}});f.scaleService.registerScaleType("category",h,{position:"bottom"})}},{}],45:[function(f,l,u){l.exports=function(f){var l=f.helpers,h={position:"left",ticks:{callback:f.Ticks.formatters.linear}},d=f.LinearScaleBase.extend({determineDataLimits:function(){function c(a){return p?a.xAxisID===d.id:a.yAxisID===d.id}var d=this,a=d.options, -h=d.chart,f=h.data.datasets,p=d.isHorizontal();d.min=null;d.max=null;var t=a.stacked;if(void 0===t&&l.each(f,function(a,d){if(!t){var e=h.getDatasetMeta(d);h.isDatasetVisible(d)&&c(e)&&void 0!==e.stack&&(t=!0)}}),a.stacked||t){var u={};l.each(f,function(f,n){var p=h.getDatasetMeta(n),t=[p.type,void 0===a.stacked&&void 0===p.stack?n:"",p.stack].join(".");void 0===u[t]&&(u[t]={positiveValues:[],negativeValues:[]});var w=u[t].positiveValues,D=u[t].negativeValues;h.isDatasetVisible(n)&&c(p)&&l.each(f.data, -function(c,h){var f=+d.getRightValue(c);isNaN(f)||p.data[h].hidden||(w[h]=w[h]||0,D[h]=D[h]||0,a.relativePoints?w[h]=100:0>f?D[h]+=f:w[h]+=f)})});l.each(u,function(a){var c=a.positiveValues.concat(a.negativeValues);a=l.min(c);c=l.max(c);d.min=null===d.min?a:Math.min(d.min,a);d.max=null===d.max?c:Math.max(d.max,c)})}else l.each(f,function(a,f){var n=h.getDatasetMeta(f);h.isDatasetVisible(f)&&c(n)&&l.each(a.data,function(a,c){var h=+d.getRightValue(a);isNaN(h)||n.data[c].hidden||(null===d.min?d.min= -h:hd.max&&(d.max=h))})});d.min=isFinite(d.min)?d.min:0;d.max=isFinite(d.max)?d.max:1;this.handleTickRangeOptions()},getTickLimit:function(){var c;c=this.options.ticks;if(this.isHorizontal())c=Math.min(c.maxTicksLimit?c.maxTicksLimit:11,Math.ceil(this.width/50));else{var d=l.getValueOrDefault(c.fontSize,f.defaults.global.defaultFontSize);c=Math.min(c.maxTicksLimit?c.maxTicksLimit:11,Math.ceil(this.height/(2*d)))}return c},handleDirectionalChanges:function(){this.isHorizontal()|| -this.ticks.reverse()},getLabelForIndex:function(c,d){return+this.getRightValue(this.chart.data.datasets[d].data[c])},getPixelForValue:function(c){var d,a=this.start;c=+this.getRightValue(c);var h=this.end-a;return this.isHorizontal()?(d=this.left+this.width/h*(c-a),Math.round(d)):(d=this.bottom-this.height/h*(c-a),Math.round(d))},getValueForPixel:function(c){var d=this.isHorizontal();return this.start+(d?c-this.left:this.bottom-c)/(d?this.width:this.height)*(this.end-this.start)},getPixelForTick:function(c){return this.getPixelForValue(this.ticksAsNumbers[c])}}); -f.scaleService.registerScaleType("linear",d,h)}},{}],46:[function(f,l,u){l.exports=function(f){var l=f.helpers,h=l.noop;f.LinearScaleBase=f.Scale.extend({handleTickRangeOptions:function(){var d=this.options.ticks;if(d.beginAtZero){var c=l.sign(this.min),e=l.sign(this.max);0>c&&0>e?this.max=0:0d.max&&(d.max=h),0!==h&&(null===d.minNotZero|| -hh?{start:c-d-5,end:c}:{start:c,end:c+d+5}}function c(c){var d=c.ctx,e=a.getValueOrDefault,f=c.options,p=f.angleLines,n=f.pointLabels;d.lineWidth=p.lineWidth; -d.strokeStyle=p.color;var f=c.getDistanceFromCenterForValue(f.reverse?c.min:c.max),u=h(c);d.textBaseline="top";for(var w=l(c)-1;0<=w;w--){if(p.display){var C=c.getPointPosition(w,f);d.beginPath();d.moveTo(c.xCenter,c.yCenter);d.lineTo(C.x,C.y);d.stroke();d.closePath()}if(n.display){var C=c.getPointPosition(w,f+5),B=e(n.fontColor,k.defaultFontColor);d.font=u.font;d.fillStyle=B;B=c.getIndexAngle(w);B=a.toDegrees(B);d.textAlign=0===B||180===B?"center":180>B?"left":"right";var G=c._pointLabelSizes[w], -E=C;90===B||270===B?E.y-=G.h/2:(270B)&&(E.y-=G.h);var B=d,G=c.pointLabels[w]||"",H=u.size;if(a.isArray(G))for(var E=C.y,H=1.5*H,K=0;Kn.r&&(n.r=B.end,u.r=C);f.startn.b&&(n.b=f.end,u.b=C)}this.setReductions(p, -n,u)}else this.drawingArea=Math.round(Math.min(this.height/2,this.width/2)),this.setCenterPoint(0,0,0,0)},setReductions:function(a,c,d){var h=c.l/Math.sin(d.l),f=Math.max(c.r-this.width,0)/Math.sin(d.r),k=-c.t/Math.cos(d.t);c=-Math.max(c.b-this.height,0)/Math.cos(d.b);h=e(h);f=e(f);k=e(k);c=e(c);this.drawingArea=Math.min(Math.round(a-(h+f)/2),Math.round(a-(k+c)/2));this.setCenterPoint(h,f,k,c)},setCenterPoint:function(a,c,d,e){d+=this.drawingArea;e=this.height-e-this.drawingArea;this.xCenter=Math.round((a+ +callbacks:{beforeTitle:n.noop,title:function(a,c){var d="",e=c.labels,k=e?e.length:0;if(0c.opacity)?0:c.opacity,h=c.title.length||c.beforeBody.length||c.body.length||c.afterBody.length||c.footer.length;this._options.enabled&&h&&(this.drawBackground(e,c,a,d,k),e.x+=c.xPadding,e.y+=c.yPadding,this.drawTitle(e,c,a,k),this.drawBody(e,c,a,k),this.drawFooter(e,c,a,k))}},handleEvent:function(a){var c=this._options, +d=!1;if(this._lastActive=this._lastActive||[],"mouseout"===a.type?this._active=[]:this._active=this._chart.getElementsAtEventForMode(a,c.mode,c),d=!n.arrayEquals(this._active,this._lastActive),!d)return!1;if(this._lastActive=this._active,c.enabled||c.custom)this._eventPosition={x:a.x,y:a.y},a=this._model,this.update(!0),this.pivot(),d|=a.x!==this._model.x||a.y!==this._model.y;return d}});f.Tooltip.positioners={average:function(a){if(!a.length)return!1;var c,d,e=0,k=0,h=0;c=0;for(d=a.length;cf;)k-=2*Math.PI;for(;k=c.innerRadius&&h<=c.outerRadius;return k>=a&&k<=f&&c}return!1},getCenterPoint:function(){var e=this._view,d=(e.startAngle+e.endAngle)/2,c= +(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(d)*c,y:e.y+Math.sin(d)*c}},getArea:function(){var e=this._view;return(e.endAngle-e.startAngle)/(2*Math.PI)*Math.PI*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,d=e.startAngle+(e.endAngle-e.startAngle)/2,c=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(d)*c,y:e.y+Math.sin(d)*c}},draw:function(){var e=this._chart.ctx,d=this._view,c=d.startAngle,a=d.endAngle;e.beginPath(); +e.arc(d.x,d.y,d.outerRadius,c,a);e.arc(d.x,d.y,d.innerRadius,a,c,!0);e.closePath();e.strokeStyle=d.borderColor;e.lineWidth=d.borderWidth;e.fillStyle=d.backgroundColor;e.fill();e.lineJoin="bevel";d.borderWidth&&e.stroke()}})}},{}],36:[function(f,l,u){l.exports=function(f){var l=f.helpers,h=f.defaults.global;f.defaults.global.elements.line={tension:.4,backgroundColor:h.defaultColor,borderWidth:3,borderColor:h.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter", +capBezierPoints:!0,fill:!0};f.elements.Line=f.Element.extend({draw:function(){var e,d,c,a;e=this._view;var k=this._chart.ctx,f=e.spanGaps,p=this._children.slice();d=h.elements.line;var t=-1;this._loop&&p.length&&p.push(p[0]);k.save();k.lineCap=e.borderCapStyle||d.borderCapStyle;k.setLineDash&&k.setLineDash(e.borderDash||d.borderDash);k.lineDashOffset=e.borderDashOffset||d.borderDashOffset;k.lineJoin=e.borderJoinStyle||d.borderJoinStyle;k.lineWidth=e.borderWidth||d.borderWidth;k.strokeStyle=e.borderColor|| +h.defaultColor;k.beginPath();t=-1;for(e=0;ee?1:-1,h=1,f=A.borderSkipped||"left"):(e=A.x-A.width/2,d=A.x+A.width/2,c=A.y,a=A.base,k=1,h=a>c?1:-1,f=A.borderSkipped|| +"bottom"),u){var q=Math.min(Math.abs(e-d),Math.abs(c-a)),u=u>q?q:u,w=u/2,q=e+("left"!==f?w*k:0);k=d+("right"!==f?-w*k:0);var x=c+("top"!==f?w*h:0);h=a+("bottom"!==f?-w*h:0);q!==k&&(c=x,a=h);x!==h&&(e=q,d=k)}l.beginPath();l.fillStyle=A.backgroundColor;l.strokeStyle=A.borderColor;l.lineWidth=u;e=[[e,a],[e,c],[d,c],[d,a]];f=["bottom","left","top","right"].indexOf(f,0);-1===f&&(f=0);d=e[(f+0)%4];l.moveTo(d[0],d[1]);for(c=1;4>c;c++)d=e[(f+c)%4],l.lineTo(d[0],d[1]);l.fill();u&&l.stroke()},height:function(){var e= +this._view;return e.base-e.y},inRange:function(e,d){var c=!1;this._view&&(c=l(this),c=e>=c.left&&e<=c.right&&d>=c.top&&d<=c.bottom);return c},inLabelRange:function(e,d){if(!this._view)return!1;var c=l(this);return void 0!==this._view.width?e>=c.left&&e<=c.right:d>=c.top&&d<=c.bottom},inXRange:function(e){var d=l(this);return e>=d.left&&e<=d.right},inYRange:function(e){var d=l(this);return e>=d.top&&e<=d.bottom},getCenterPoint:function(){var e,d,c=this._view;return void 0!==this._view.width?(e=c.x, +d=(c.y+c.base)/2):(e=(c.x+c.base)/2,d=c.y),{x:e,y:d}},getArea:function(){var e=this._view;return e.width*Math.abs(e.y-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}})}},{}],39:[function(f,l,u){l.exports=function(f){function l(a,d){var e=c.getStyle(a,d);return(e=e&&e.match(/^(\d+)(\.\d+)?px$/))?Number(e[1]):void 0}function h(a,c,d,e,h){return{type:a,chart:c,"native":h||null,x:void 0!==d?d:null,y:void 0!==e?e:null}}function e(a){var d=document.createElement("iframe");return d.className= +"chartjs-hidden-iframe",d.style.cssText="display:block;overflow:hidden;border:0;margin:0;top:0;left:0;bottom:0;right:0;height:100%;width:100%;position:absolute;pointer-events:none;z-index:-1;",d.tabIndex=-1,c.addEvent(d,"load",function(){c.addEvent(d.contentWindow||d,"resize",a);a()}),d}function d(a,d,f){var l=a._chartjs={ticking:!1};l.resizer=e(function(){l.ticking||(l.ticking=!0,c.requestAnimFrame.call(window,function(){if(l.resizer)return l.ticking=!1,d(h("resize",f))}))});a.insertBefore(l.resizer, +a.firstChild)}var c=f.helpers,a={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};return{acquireContext:function(a,c){"string"==typeof a?a=document.getElementById(a):a.length&&(a=a[0]);a&&a.canvas&&(a=a.canvas);var d=a&&a.getContext&&a.getContext("2d");if(d&&d.canvas===a){var e=a,h=e.style,f=e.getAttribute("height"),q=e.getAttribute("width");if(e._chartjs= +{initial:{height:f,width:q,style:{display:h.display,height:h.height,width:h.width}}},h.display=h.display||"block",null===q||""===q){var u=l(e,"width");void 0!==u&&(e.width=u)}if(null===f||""===f)""===e.style.height?e.height=e.width/(c.options.aspectRatio||2):(h=l(e,"height"),void 0!==u&&(e.height=h))}else d=null;return d},releaseContext:function(a){var d=a.canvas;if(d._chartjs){var e=d._chartjs.initial;["height","width"].forEach(function(a){var c=e[a];void 0===c||null===c?d.removeAttribute(a):d.setAttribute(a, +c)});c.each(e.style||{},function(a,c){d.style[c]=a});d.width=d.width;delete d._chartjs}},addEventListener:function(e,f,l){var t=e.canvas;if("resize"===f)return void d(t.parentNode,l,e);var u=l._chartjs||(l._chartjs={}),u=(u.proxies||(u.proxies={}))[e.id+"_"+f]=function(d){var f=a[d.type]||d.type,n=c.getRelativePosition(d,e);d=h(f,e,n.x,n.y,d);l(d)};c.addEvent(t,f,u)},removeEventListener:function(a,d,e){var h=a.canvas;"resize"===d?(d=h.parentNode)&&d._chartjs&&((h=d._chartjs.resizer)&&(h.parentNode.removeChild(h), +d._chartjs.resizer=null),delete d._chartjs):(a=((e._chartjs||{}).proxies||{})[a.id+"_"+d])&&c.removeEvent(h,d,a)}}}},{}],40:[function(f,l,u){var w=f(39);l.exports=function(f){f.platform={acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}};f.helpers.extend(f.platform,w(f))}},{39:39}],41:[function(f,l,u){l.exports=function(f){function l(a,c,d){var e;a=a._model||{};var h=a.fill;if(void 0===h&&(h=!!a.backgroundColor),!1===h||null===h)return!1; +if(!0===h)return"origin";if(e=parseFloat(h,10),isFinite(e)&&Math.floor(e)===e)return"-"!==h[0]&&"+"!==h[0]||(e=c+e),!(e===c||0>e||e>=d)&&e;switch(h){case "bottom":return"start";case "top":return"end";case "zero":return"origin";case "origin":case "start":case "end":return h;default:return!1}}function h(a){var c,d=a.el._model||{},e=a.el._scale||{};a=a.fill;var h=null;if(isFinite(a))return null;if("start"===a?h=void 0===d.scaleBottom?e.bottom:d.scaleBottom:"end"===a?h=void 0===d.scaleTop?e.top:d.scaleTop: +void 0!==d.scaleZero?h=d.scaleZero:e.getBasePosition?h=e.getBasePosition():e.getBasePixel&&(h=e.getBasePixel()),void 0!==h&&null!==h){if(void 0!==h.x&&void 0!==h.y)return h;if("number"==typeof h&&isFinite(h))return c=e.isHorizontal(),{x:c?h:null,y:c?null:h}}return null}function e(a,d,e,h,f){var l;if(h&&f){a.moveTo(d[0].x,d[0].y);for(l=1;l=c.width&&(G+=u+d.padding,x[x.length]= +c.left);q[h]={left:0,top:0,width:f,height:u};x[x.length-1]+=f+d.padding});y.height+=G}else{var a=d.padding,D=c.columnWidths=[],C=d.padding,B=0,F=0,E=u+a;h.each(c.legendItems,function(a,c){var h=(d.usePointStyle?u*Math.SQRT2:d.boxWidth)+u/2+e.measureText(a.text).width;F+E>y.height&&(C+=B+d.padding,D.push(B),B=0,F=0);B=Math.max(B,h);F+=E;q[c]={left:0,top:0,width:h,height:u}});C+=B;D.push(B);y.width+=C}c.width=y.width;c.height=y.height},afterFit:d,isHorizontal:function(){return"top"===this.options.position|| +"bottom"===this.options.position},draw:function(){var c=this,a=c.options,d=a.labels,e=f.defaults.global,l=e.elements.line,t=c.width,u=c.lineWidths;if(a.display){var z,q=c.ctx,y=h.getValueOrDefault,x=y(d.fontColor,e.defaultFontColor),G=y(d.fontSize,e.defaultFontSize),D=y(d.fontStyle,e.defaultFontStyle),C=y(d.fontFamily,e.defaultFontFamily),D=h.fontString(G,D,C);q.textAlign="left";q.textBaseline="top";q.lineWidth=.5;q.strokeStyle=x;q.fillStyle=x;q.font=D;var B=d.usePointStyle?G*Math.SQRT2:d.boxWidth, +F=c.legendHitBoxes,E=c.isHorizontal();z=E?{x:c.left+(t-u[0])/2,y:c.top+d.padding,line:0}:{x:c.left+d.padding,y:c.top+d.padding,line:0};var H=G+d.padding;h.each(c.legendItems,function(h,x){var C=q.measureText(h.text).width,D=B+G/2+C,M=z.x,R=z.y;E?M+D>=t&&(R=z.y+=H,z.line++,M=z.x=c.left+(t-u[z.line])/2):R+H>c.bottom&&(M=z.x=M+c.columnWidths[z.line]+d.padding,R=z.y=c.top+d.padding,z.line++);var W=M,Z=R;if(!(isNaN(B)||0>=B)){q.save();q.fillStyle=y(h.fillStyle,e.defaultColor);q.lineCap=y(h.lineCap,l.borderCapStyle); +q.lineDashOffset=y(h.lineDashOffset,l.borderDashOffset);q.lineJoin=y(h.lineJoin,l.borderJoinStyle);q.lineWidth=y(h.lineWidth,l.borderWidth);q.strokeStyle=y(h.strokeStyle,e.defaultColor);var Y=0===y(h.lineWidth,l.borderWidth);if(q.setLineDash&&q.setLineDash(y(h.lineDash,l.borderDash)),a.labels&&a.labels.usePointStyle){var Y=G*Math.SQRT2/2,P=Y/Math.SQRT2;f.canvasHelpers.drawPoint(q,h.pointStyle,Y,W+P,Z+P)}else Y||q.strokeRect(W,Z,B,G),q.fillRect(W,Z,B,G);q.restore()}F[x].left=M;F[x].top=R;q.fillText(h.text, +B+G/2+M,R);h.hidden&&(q.beginPath(),q.lineWidth=2,q.moveTo(B+G/2+M,R+G/2),q.lineTo(B+G/2+M+C,R+G/2),q.stroke());E?z.x+=D+d.padding:z.y+=H})}},handleEvent:function(c){var a=this.options,d="mouseup"===c.type?"click":c.type,e=!1;if("mousemove"===d){if(!a.onHover)return}else if("click"!==d||!a.onClick)return;var h=c.x,f=c.y;if(h>=this.left&&h<=this.right&&f>=this.top&&f<=this.bottom)for(var l=this.legendHitBoxes,u=0;u=q.left&&h<=q.left+q.width&&f>=q.top&&f<=q.top+q.height){if("click"=== +d){a.onClick.call(this,c["native"],this.legendItems[u]);e=!0;break}if("mousemove"===d){a.onHover.call(this,c["native"],this.legendItems[u]);e=!0;break}}}return e}}),{id:"legend",beforeInit:function(c){var a=c.options.legend;a&&l(c,a)},beforeUpdate:function(c){var a=c.options.legend,d=c.legend;a?(a=h.configMerge(f.defaults.global.legend,a),d?(e.configure(c,d,a),d.options=a):l(c,a)):d&&(e.removeBox(c,d),delete c.legend)},afterEvent:function(c,a){var d=c.legend;d&&d.handleEvent(a)}}}},{}],43:[function(f, +l,u){l.exports=function(f){function l(c,a){var d=new f.Title({ctx:c.ctx,options:a,chart:c});e.configure(c,d,a);e.addBox(c,d);c.titleBlock=d}var h=f.helpers,e=f.layoutService,d=h.noop;return f.defaults.global.title={display:!1,position:"top",fullWidth:!0,weight:2E3,fontStyle:"bold",padding:10,text:""},f.Title=f.Element.extend({initialize:function(c){h.extend(this,c);this.legendHitBoxes=[]},beforeUpdate:d,update:function(c,a,d){return this.beforeUpdate(),this.maxWidth=c,this.maxHeight=a,this.margins= +d,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this.beforeBuildLabels(),this.buildLabels(),this.afterBuildLabels(),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate(),this.minSize},afterUpdate:d,beforeSetDimensions:d,setDimensions:function(){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.paddingBottom=this.paddingRight=this.paddingTop=this.paddingLeft=0;this.minSize= +{width:0,height:0}},afterSetDimensions:d,beforeBuildLabels:d,buildLabels:d,afterBuildLabels:d,beforeFit:d,fit:function(){var c=h.getValueOrDefault,a=this.options,d=a.display,c=c(a.fontSize,f.defaults.global.defaultFontSize),e=this.minSize;this.isHorizontal()?(e.width=this.maxWidth,e.height=d?c+2*a.padding:0):(e.width=d?c+2*a.padding:0,e.height=this.maxHeight);this.width=e.width;this.height=e.height},afterFit:d,isHorizontal:function(){var c=this.options.position;return"top"===c||"bottom"===c},draw:function(){var c= +this.ctx,a=h.getValueOrDefault,d=this.options,e=f.defaults.global;if(d.display){var l,t,u,z=a(d.fontSize,e.defaultFontSize),q=a(d.fontStyle,e.defaultFontStyle),y=a(d.fontFamily,e.defaultFontFamily),q=h.fontString(z,q,y),y=0,x=this.top,G=this.left,D=this.bottom,C=this.right;c.fillStyle=a(d.fontColor,e.defaultFontColor);c.font=q;this.isHorizontal()?(l=G+(C-G)/2,t=x+(D-x)/2,u=C-G):(l="left"===d.position?G+z/2:C-z/2,t=x+(D-x)/2,u=D-x,y=Math.PI*("left"===d.position?-.5:.5));c.save();c.translate(l,t);c.rotate(y); +c.textAlign="center";c.textBaseline="middle";c.fillText(d.text,0,0,u);c.restore()}}}),{id:"title",beforeInit:function(c){var a=c.options.title;a&&l(c,a)},beforeUpdate:function(c){var a=c.options.title,d=c.titleBlock;a?(a=h.configMerge(f.defaults.global.title,a),d?(e.configure(c,d,a),d.options=a):l(c,a)):d&&(f.layoutService.removeBox(c,d),delete c.titleBlock)}}}},{}],44:[function(f,l,u){l.exports=function(f){var l=f.helpers,h=f.Scale.extend({getLabels:function(){var e=this.chart.data;return(this.isHorizontal()? +e.xLabels:e.yLabels)||e.labels},determineDataLimits:function(){var e=this.getLabels();this.minIndex=0;this.maxIndex=e.length-1;var d;void 0!==this.options.ticks.min&&(d=l.indexOf(e,this.options.ticks.min),this.minIndex=-1!==d?d:this.minIndex);void 0!==this.options.ticks.max&&(d=l.indexOf(e,this.options.ticks.max),this.maxIndex=-1!==d?d:this.maxIndex);this.min=e[this.minIndex];this.max=e[this.maxIndex]},buildTicks:function(){var e=this.getLabels();this.ticks=0===this.minIndex&&this.maxIndex===e.length- +1?e:e.slice(this.minIndex,this.maxIndex+1)},getLabelForIndex:function(e,d){var c=this.chart.data,a=this.isHorizontal();return c.yLabels&&!a?this.getRightValue(c.datasets[d].data[e]):this.ticks[e-this.minIndex]},getPixelForValue:function(e,d,c,a){var k;c=Math.max(this.maxIndex+1-this.minIndex-(this.options.gridLines.offsetGridLines?0:1),1);if(void 0!==e&&null!==e&&(k=this.isHorizontal()?e.x:e.y),void 0!==k||void 0!==e&&isNaN(d)){var h=this.getLabels();e=h.indexOf(k||e);d=-1!==e?e:d}if(this.isHorizontal())return e= +this.width/c,d=e*(d-this.minIndex),(this.options.gridLines.offsetGridLines&&a||this.maxIndex===this.minIndex&&a)&&(d+=e/2),this.left+Math.round(d);e=this.height/c;d=e*(d-this.minIndex);return this.options.gridLines.offsetGridLines&&a&&(d+=e/2),this.top+Math.round(d)},getPixelForTick:function(e,d){return this.getPixelForValue(this.ticks[e],e+this.minIndex,null,d)},getValueForPixel:function(e){var d=Math.max(this.ticks.length-(this.options.gridLines.offsetGridLines?0:1),1),c=this.isHorizontal(),d=(c? +this.width:this.height)/d;return e-=c?this.left:this.top,this.options.gridLines.offsetGridLines&&(e-=d/2),0>=e?0:Math.round(e/d)},getBasePixel:function(){return this.bottom}});f.scaleService.registerScaleType("category",h,{position:"bottom"})}},{}],45:[function(f,l,u){l.exports=function(f){var l=f.helpers,h={position:"left",ticks:{callback:f.Ticks.formatters.linear}},e=f.LinearScaleBase.extend({determineDataLimits:function(){function d(a){return f?a.xAxisID===c.id:a.yAxisID===c.id}var c=this,a=c.options, +e=c.chart,h=e.data.datasets,f=c.isHorizontal();c.min=null;c.max=null;var t=a.stacked;if(void 0===t&&l.each(h,function(a,c){if(!t){var h=e.getDatasetMeta(c);e.isDatasetVisible(c)&&d(h)&&void 0!==h.stack&&(t=!0)}}),a.stacked||t){var u={};l.each(h,function(h,f){var p=e.getDatasetMeta(f),n=[p.type,void 0===a.stacked&&void 0===p.stack?f:"",p.stack].join(".");void 0===u[n]&&(u[n]={positiveValues:[],negativeValues:[]});var t=u[n].positiveValues,w=u[n].negativeValues;e.isDatasetVisible(f)&&d(p)&&l.each(h.data, +function(d,e){var k=+c.getRightValue(d);isNaN(k)||p.data[e].hidden||(t[e]=t[e]||0,w[e]=w[e]||0,a.relativePoints?t[e]=100:0>k?w[e]+=k:t[e]+=k)})});l.each(u,function(a){var d=a.positiveValues.concat(a.negativeValues);a=l.min(d);d=l.max(d);c.min=null===c.min?a:Math.min(c.min,a);c.max=null===c.max?d:Math.max(c.max,d)})}else l.each(h,function(a,h){var f=e.getDatasetMeta(h);e.isDatasetVisible(h)&&d(f)&&l.each(a.data,function(a,d){var e=+c.getRightValue(a);isNaN(e)||f.data[d].hidden||(null===c.min?c.min= +e:ec.max&&(c.max=e))})});c.min=isFinite(c.min)?c.min:0;c.max=isFinite(c.max)?c.max:1;this.handleTickRangeOptions()},getTickLimit:function(){var d;d=this.options.ticks;if(this.isHorizontal())d=Math.min(d.maxTicksLimit?d.maxTicksLimit:11,Math.ceil(this.width/50));else{var c=l.getValueOrDefault(d.fontSize,f.defaults.global.defaultFontSize);d=Math.min(d.maxTicksLimit?d.maxTicksLimit:11,Math.ceil(this.height/(2*c)))}return d},handleDirectionalChanges:function(){this.isHorizontal()|| +this.ticks.reverse()},getLabelForIndex:function(d,c){return+this.getRightValue(this.chart.data.datasets[c].data[d])},getPixelForValue:function(d){var c,a=this.start;d=+this.getRightValue(d);var e=this.end-a;return this.isHorizontal()?(c=this.left+this.width/e*(d-a),Math.round(c)):(c=this.bottom-this.height/e*(d-a),Math.round(c))},getValueForPixel:function(d){var c=this.isHorizontal();return this.start+(c?d-this.left:this.bottom-d)/(c?this.width:this.height)*(this.end-this.start)},getPixelForTick:function(d){return this.getPixelForValue(this.ticksAsNumbers[d])}}); +f.scaleService.registerScaleType("linear",e,h)}},{}],46:[function(f,l,u){l.exports=function(f){var l=f.helpers,h=l.noop;f.LinearScaleBase=f.Scale.extend({handleTickRangeOptions:function(){var e=this.options.ticks;if(e.beginAtZero){var d=l.sign(this.min),c=l.sign(this.max);0>d&&0>c?this.max=0:0c.max&&(c.max=e),0!==e&&(null===c.minNotZero|| +ek?{start:c-d-5,end:c}:{start:c,end:c+d+5}}function d(c){var d=c.ctx,e=a.getValueOrDefault,f=c.options,p=f.angleLines,n=f.pointLabels;d.lineWidth=p.lineWidth; +d.strokeStyle=p.color;var f=c.getDistanceFromCenterForValue(f.reverse?c.min:c.max),u=h(c);d.textBaseline="top";for(var w=l(c)-1;0<=w;w--){if(p.display){var C=c.getPointPosition(w,f);d.beginPath();d.moveTo(c.xCenter,c.yCenter);d.lineTo(C.x,C.y);d.stroke();d.closePath()}if(n.display){var C=c.getPointPosition(w,f+5),B=e(n.fontColor,k.defaultFontColor);d.font=u.font;d.fillStyle=B;B=c.getIndexAngle(w);B=a.toDegrees(B);d.textAlign=0===B||180===B?"center":180>B?"left":"right";var F=c._pointLabelSizes[w], +E=C;90===B||270===B?E.y-=F.h/2:(270B)&&(E.y-=F.h);var B=d,F=c.pointLabels[w]||"",H=u.size;if(a.isArray(F))for(var E=C.y,H=1.5*H,K=0;Kn.r&&(n.r=B.end,u.r=C);k.startn.b&&(n.b=k.end,u.b=C)}this.setReductions(p, +n,u)}else this.drawingArea=Math.round(Math.min(this.height/2,this.width/2)),this.setCenterPoint(0,0,0,0)},setReductions:function(a,d,e){var k=d.l/Math.sin(e.l),f=Math.max(d.r-this.width,0)/Math.sin(e.r),h=-d.t/Math.cos(e.t);d=-Math.max(d.b-this.height,0)/Math.cos(e.b);k=c(k);f=c(f);h=c(h);d=c(d);this.drawingArea=Math.min(Math.round(a-(k+f)/2),Math.round(a-(h+d)/2));this.setCenterPoint(k,f,h,d)},setCenterPoint:function(a,c,d,e){d+=this.drawingArea;e=this.height-e-this.drawingArea;this.xCenter=Math.round((a+ this.drawingArea+(this.width-c-this.drawingArea))/2+this.left);this.yCenter=Math.round((d+e)/2+this.top)},getIndexAngle:function(a){var c=2*Math.PI/l(this);return a*c+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(a){if(null===a)return 0;var c=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-a)*c:(a-this.min)*c},getPointPosition:function(a,c){var d=this.getIndexAngle(a)-Math.PI/2;return{x:Math.round(Math.cos(d)* -c)+this.xCenter,y:Math.round(Math.sin(d)*c)+this.yCenter}},getPointPositionForValue:function(a,c){return this.getPointPosition(a,this.getDistanceFromCenterForValue(c))},getBasePosition:function(){var a=this.min,c=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:0>a&&0>c?c:0w;B++)D=y.steps[B],F=Math.ceil(q/(P*D));else for(;F>w&&0e;e++)d[e-1]=arguments[e];if(u(a))return W(a,d);if(!w(a))throw Error("selector in m(selector, attrs, children) should be a string"); +c)+this.xCenter,y:Math.round(Math.sin(d)*c)+this.yCenter}},getPointPositionForValue:function(a,c){return this.getPointPosition(a,this.getDistanceFromCenterForValue(c))},getBasePosition:function(){var a=this.min,c=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:0>a&&0>c?c:0u;B++)D=w.steps[B],G=Math.ceil(q/(T*D));else for(;G>u&&0e;e++)d[e-1]=arguments[e];if(u(a))return W(a,d);if(!w(a))throw Error("selector in m(selector, attrs, children) should be a string"); var e=(f=null!=c&&u(c)&&!("tag"in c||"view"in c||"subtree"in c))?c:{},d=f?d.slice(1):d,d={tag:"div",attrs:{},children:1===d.length&&fa(d[0])?d[0]:d},f=d.attrs,h,k=[],l=/(?:(^|#|\.)([^#\.\[\]]+))|(\[.+?\])/g;for(;h=l.exec(a);)""===h[1]&&h[2]?d.tag=h[2]:"#"===h[1]?d.attrs.id=h[2]:"."===h[1]?k.push(h[2]):"["===h[3][0]&&(h=/\[(.+?)(?:=("|'|)(.*?)\2)?\]/.exec(h[3]),d.attrs[h[1]]=h[3]||"");var l="class"in e?"class":"className",p;for(p in e)ga.call(e,p)&&(p===l&&null!=e[p]&&""!==e[p]?(k.push(e[p]),f[p]= -""):f[p]=e[p]);k.length&&(f[l]=k.join(" "));return d}function d(a,c){for(var d=0;de.indexOf(a)&&E([a],[c[d]])});a.length\s*[^<]/g),null!=a)return a.length}else if(fa(a))return a.length;return 1}function F(a,d,h,k,l,q,u,v,w){a=e(a);var x=[],y=d.length===a.length,z=0,D={},B=!1;c(d,function(a,c){B=!0;D[d[c].attrs.key]= -{action:La,index:c}});t(a);B&&(d=n(a,d,D,h));for(var E=0,F=0,G=a.length;G>F;F++){var H=C(h,l,d,k,a[F],d[E],q,k+z||z,u,v,w);H!==f&&(y=y&&H.nodes.intact,z+=A(H),d[E++]=H)}return y||p(a,d,x),d}function D(a,c,d,e){null!=e.onunload&&0>va.map(function(a){return a.handler}).indexOf(e.onunload)&&va.push({controller:e,handler:e.onunload});a.push(d);c.push(e)}function C(c,d,e,k,p,n,t,v,x,A,z){var B;a:{try{if(null!=p&&null!=p.toString()){B=p;break a}}catch(H){}B=""}p=B;if("retain"===p.subtree)c=n;else{a:{B= -p;if(null!=n){if(na.call(n)===na.call(B)){e=n;break a}if(e&&e.nodes){k=v-k;var K=k+(fa(B)?B:n.nodes).length;E(e.nodes.slice(k,K),e.slice(k,K))}else n.nodes&&E(n.nodes,n)}e=(n=new B.constructor,n.tag&&(n={}),n.nodes=[],n)}n=e;if(fa(p))c=F(p,n,c,v,d,t,x,A,z);else if(null!=p&&u(p)){var J,U=n;d=[];var I=[];n=p;for(e=(p=U)&&p.controllers;null!=n.view;){B=n;n=n.view.$original||n.view;k=e;var K=I,M=d,L;L=p.views;var Q=n,S=k,T=B.controller,R=void 0;L=(R="diff"===h.redraw.strategy()&&L?L.indexOf(Q):-1,-1< -R?S[R]:l(T)?new T:{});R=B&&B.attrs&&B.attrs.key;n=(B=0===ha||Da||k&&-1("key"in J.attrs?1:0);(y(J,U,p),w(J.tag))?(p=0===U.nodes.length,A=J.attrs.xmlns?J.attrs.xmlns: -"svg"===J.tag?"http://www.w3.org/2000/svg":"math"===J.tag?"http://www.w3.org/1998/Math/MathML":A,p?(B=J,n=A,B=B.attrs.is?null==n?O.createElement(B.tag,B.attrs.is):O.createElementNS(n,B.tag,B.attrs.is):null==n?O.createElement(B.tag):O.createElementNS(n,B.tag),n=J,e=e?G(B,n.tag,n.attrs,{},A):n.attrs,a(c,B,v),n=J,n=null!=n.children&&0y.message.indexOf("Invalid argument"))throw y;}}k=void 0}!k}return e}function E(a,c){for(var d=a.length-1;-1d.indexOf(a)&&E([a],[c[e]])});a.length\s*[^<]/g),null!=a)return a.length}else if(fa(a))return a.length;return 1}function G(a,e,h,k,l,q,u,v,w){a=c(a);var y=[],z=e.length===a.length,A=0,D={},B=!1;d(e,function(a,c){B=!0;D[e[c].attrs.key]= +{action:La,index:c}});t(a);B&&(e=n(a,e,D,h));for(var E=0,F=0,G=a.length;G>F;F++){var H=C(h,l,e,k,a[F],e[E],q,k+A||A,u,v,w);H!==f&&(z=z&&H.nodes.intact,A+=x(H),e[E++]=H)}return z||p(a,e,y),e}function D(a,c,d,e){null!=e.onunload&&0>va.map(function(a){return a.handler}).indexOf(e.onunload)&&va.push({controller:e,handler:e.onunload});a.push(d);c.push(e)}function C(c,d,e,k,p,n,t,v,x,y,A){var B;a:{try{if(null!=p&&null!=p.toString()){B=p;break a}}catch(H){}B=""}p=B;if("retain"===p.subtree)c=n;else{a:{B= +p;if(null!=n){if(na.call(n)===na.call(B)){e=n;break a}if(e&&e.nodes){k=v-k;var K=k+(fa(B)?B:n.nodes).length;E(e.nodes.slice(k,K),e.slice(k,K))}else n.nodes&&E(n.nodes,n)}e=(n=new B.constructor,n.tag&&(n={}),n.nodes=[],n)}n=e;if(fa(p))c=G(p,n,c,v,d,t,x,y,A);else if(null!=p&&u(p)){var J,U=n;d=[];var I=[];n=p;for(e=(p=U)&&p.controllers;null!=n.view;){B=n;n=n.view.$original||n.view;k=e;var K=I,M=d,L;L=p.views;var P=n,R=k,S=B.controller,Q=void 0;L=(Q="diff"===h.redraw.strategy()&&L?L.indexOf(P):-1,-1< +Q?R[Q]:l(S)?new S:{});Q=B&&B.attrs&&B.attrs.key;n=(B=0===ha||Da||k&&-1("key"in J.attrs?1:0);(z(J,U,p),w(J.tag))?(p=0===U.nodes.length,y=J.attrs.xmlns?J.attrs.xmlns: +"svg"===J.tag?"http://www.w3.org/2000/svg":"math"===J.tag?"http://www.w3.org/1998/Math/MathML":y,p?(B=J,n=y,B=B.attrs.is?null==n?O.createElement(B.tag,B.attrs.is):O.createElementNS(n,B.tag,B.attrs.is):null==n?O.createElement(B.tag):O.createElementNS(n,B.tag),n=J,e=e?F(B,n.tag,n.attrs,{},y):n.attrs,a(c,B,v),n=J,n=null!=n.children&&0y.message.indexOf("Invalid argument"))throw y;}}k=void 0}!k}return e}function E(a,c){for(var d=a.length-1;-1c?Ea.push(a)-1:c}function S(a){function c(){return arguments.length&&(a=arguments[0]),a}return c.toJSON=function(){return a},c}function W(a,c){function d(){return(a.controller||x).apply(this,c)||this}function e(d){for(var f=[d].concat(c),h=1;hc?Ea.push(a)-1:c}function R(a){function c(){return arguments.length&&(a=arguments[0]),a}return c.toJSON=function(){return a},c}function W(a,c){function d(){return(a.controller||y).apply(this,c)||this}function e(d){for(var f=[d].concat(c),h=1;hc.status?a.onload({type:"load",target:c}):a.onerror({type:"error",target:c}))},a.serialize===JSON.stringify&&a.data&&"GET"!==a.method&&c.setRequestHeader("Content-Type","application/json; charset=utf-8"),a.deserialize===JSON.parse&&c.setRequestHeader("Accept","application/json, text/*"),l(a.config)){var d=a.config(c,a);null!=d&&(c=d)}if((d="GET"!==a.method&&a.data?a.data:"")&&!w(d)&&d.constructor!==v.FormData)throw Error("Request data should be either be a string or FormData. Check the `serialize` option in `m.request`"); return c.send(d),c}function ca(a){return a.dataType&&"jsonp"===a.dataType.toLowerCase()?ta(a):ea(a)}function ua(a,c,d){"GET"===a.method&&"jsonp"!==a.dataType?(d=0>a.url.indexOf("?")?"?":"&",c=aa(c),a.url+=c?d+c:""):a.data=d(c)}function Ra(a,c){return c&&(a=a.replace(/:[a-z]\w+/gi,function(a){var d=a.slice(1);a=c[d]||a;return delete c[d],a})),a}h.version=function(){return"v0.2.5"};var O,ja,Ca,Pa,ga={}.hasOwnProperty,na={}.toString,fa=Array.isArray||function(a){return"[object Array]"===na.call(a)}, Sa={AREA:1,BASE:1,BR:1,COL:1,COMMAND:1,EMBED:1,HR:1,IMG:1,INPUT:1,KEYGEN:1,LINK:1,META:1,PARAM:1,SOURCE:1,TRACK:1,WBR:1};h.deps=function(a){a=v=a||window;O=a.document;ja=a.location;Pa=a.cancelAnimationFrame||a.clearTimeout;Ca=a.requestAnimationFrame||a.setTimeout;return v};h.deps(v);var La=1,Ka=2,Ja=3,ha=0;h.startComputation=function(){ha++};h.endComputation=function(){1e&&(e=wa.length);var f=!1,h={preventDefault:function(){f=!0;oa=xa=null}};return d(va,function(a){a.handler.call(a.controller,h);a.controller.onunload=null}),f?d(va,function(a){a.controller.onunload=a.handler}):va=[],ia[e]&&l(ia[e].onunload)&&ia[e].onunload(h),Z(c,a,e,f)};var Ga=!1;h.redraw=function(a){if(!Ga){Ga=!0;a&&(Da=!0);try{ma&&!a?(Ca===v.requestAnimationFrame||16d&&(d=wa.length);var f=!1,h={preventDefault:function(){f=!0;oa=xa=null}};return e(va,function(a){a.handler.call(a.controller,h);a.controller.onunload=null}),f?e(va,function(a){a.controller.onunload=a.handler}):va=[],ia[d]&&l(ia[d].onunload)&&ia[d].onunload(h),Z(c,a,d,f)};var Ga=!1;h.redraw=function(a){if(!Ga){Ga=!0;a&&(Da=!0);try{ma&&!a?(Ca===v.requestAnimationFrame||16d?"0"+d:d;f=10>f.getDate()?"0"+f.getDate():f.getDate();return h+"/"+d+"/"+f}),l=l.splice(l.length-SearchModel.chartlimit(),l.length);u={labels:l,datasets:[{label:SearchModel.query(),fill:!0,lineTension:.1,backgroundColor:"rgba(75,192,192,0.4)",borderColor:"#428bca",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",pointBorderColor:"rgba(75,192,192,1)",pointBackgroundColor:"#fff",pointBorderWidth:5,pointHoverRadius:5,pointHoverBackgroundColor:"rgba(75,192,192,1)", -pointHoverBorderColor:"rgba(220,220,220,1)",pointHoverBorderWidth:1,pointRadius:1,pointHitRadius:10,data:_.map(l,function(l){return f[l]}),spanGaps:!0}]};v=new Chart(v,{type:"line",data:u,options:{legend:{display:!1},responsiveAnimationDuration:0,scales:{xAxes:[{ticks:{maxRotation:30,minRotation:30,callback:function(f,h,d){return 30>d.length?f:0===parseInt(h)%3||h==d.length-1?""+f:""}}}],yAxes:[{ticks:{callback:function(f,h,d){return-1!==(""+f).indexOf(".")?"":""+parseInt(f)}}}]},animation:{duration:0}}}); -SearchModel.chart(v)}}},SearchComponent={view:function(v){return m("div",[m.component(SearchOptionsComponent),m.component(SearchChartComponent),m.component(SearchCountComponent,{totalhits:SearchModel.totalhits(),query:SearchModel.query(),repofilters:SearchModel.activerepositoryfilters(),languagefilters:SearchModel.activelangfilters(),ownerfilters:SearchModel.activeownfilters()}),m.component(SearchLoadingComponent,{currentlyloading:SearchModel.currentlyloading()}),m("div.row",[m("div.col-md-3.search-filters-container.search-filters", -[m.component(SearchNextPreviousComponent,{currentpage:SearchModel.currentpage(),pages:SearchModel.pages(),setpage:SearchModel.setpage,search:SearchModel.search,totalhits:SearchModel.totalhits()}),m.component(SearchAlternateFilterComponent,{query:SearchModel.query(),altquery:SearchModel.altquery()}),m.component(SearchRepositoriesFilterComponent,{repofilters:SearchModel.repofilters(),search:SearchModel.search,filterinstantly:SearchModel.filterinstantly}),m.component(SearchLanguagesFilterComponent,{languagefilters:SearchModel.languagefilters(), -search:SearchModel.search,filterinstantly:SearchModel.filterinstantly}),m.component(SearchOwnersFilterComponent),m.component(SearchPathFilterComponent),m.component(SearchYearFilterComponent),m.component(SearchYearMonthFilterComponent),m.component(SearchYearMonthDayFilterComponent),m.component(SearchRevisionComponent),m.component(SearchDeletedComponent),m.component(SearchButtonFilterComponent,{totalhits:SearchModel.totalhits(),clearfilters:SearchModel.clearfilters,search:SearchModel.search,languagefilters:SearchModel.langfilters(), -repofilters:SearchModel.repositoryfilters(),ownfilters:SearchModel.ownfilters(),filterinstantly:SearchModel.filterinstantly}),m.component(FilterOptionsComponent,{filterinstantly:SearchModel.filterinstantly}),m.component(RSSComponent)]),m("div.col-md-9.search-results",[m.component(SearchNoResultsComponent,{totalhits:SearchModel.totalhits(),query:SearchModel.query(),altquery:SearchModel.altquery()}),m.component(SearchResultsComponent,{coderesults:SearchModel.coderesults()})]),m.component(SearchPagesComponent, -{currentpage:SearchModel.currentpage(),pages:SearchModel.pages(),search:SearchModel.search})])])}},SearchNoResultsComponent={controller:function(){return{doaltquery:function(v){SearchModel.searchvalue(v);SearchModel.search()}}},view:function(v,f){if(0!==f.totalhits)return m("div");var l=m("h5","Try searching with fewer and more general keywords or if you have filters remove them.");0!==f.altquery.length&&(l="Try one of the following searches instead",1===f.altquery.length&&(l="Try the following search instead"), -l=m("div",[m("h5",l),m("ul",{style:{"list-style-type":"none"}},_.map(f.altquery,function(f){return m("li",m("a",{href:"",onclick:function(){v.doaltquery(f)}},f))}))]));return m("div",[m("h4","No results found for ",m("i.grey",f.query)),l])}},SearchNextPreviousComponent={controller:function(){},view:function(v,f){if(void 0===f.pages||void 0===f.totalhits||0===f.totalhits)return m("div");var l="",u="";0==SearchModel.currentpage()&&(l="disabled");SearchModel.currentpage()+1>=f.pages.length&&(u="disabled"); -return m("div",[m("h5","Page "+(SearchModel.currentpage()+1)+" of "+(0==f.pages.length?1:f.pages.length)),m("div.center",m("input.btn.btn-xs.btn-success.filter-button",{type:"submit",disabled:l,onclick:function(){f.search(SearchModel.currentpage()-1)},value:"\u25c0 Previous"}),m("span",m.trust(" ")),m("input.btn.btn-xs.btn-success.filter-button",{type:"submit",disabled:u,onclick:function(){f.search(SearchModel.currentpage()+1)},value:"Next \u25b6"}))])}},SearchLoadingComponent={view:function(){var v= -{};!1===SearchModel.currentlyloading()&&(v={style:{display:"none"}});return m("div.search-loading",v,[m("img",{src:"/img/loading.gif"}),m("h5","Loading...")])}},SearchPagesComponent={controller:function(){},view:function(v,f){return m("div.search-pagination",m("ul.pagination",[_.map(f.pages,function(l){return m("li",{"class":l==SearchModel.currentpage()?"active":""},m("a",{onclick:function(){f.search(l);window.scrollTo(0,0)}},l+1))})]))}},SearchButtonFilterComponent={controller:function(){},view:function(v, -f){return void 0===f.totalhits?m("div"):0===f.totalhits?m("div",[m("h5","Filter Results"),m("div.center",m("input.btn.btn-xs.btn-success.filter-button",{type:"submit",onclick:function(){f.clearfilters();f.search()},value:"Remove"}),m("span",m.trust(" ")),m("span.filter-button",{style:{height:"1px","float":"right"}},""))]):m("div",[m("h5","Filter Results"),m("div.center",m("input.btn.btn-xs.btn-success.filter-button",{type:"submit",onclick:function(){f.clearfilters();f.search()},value:"Remove"}), -m("span",m.trust(" ")),m("input.btn.btn-xs.btn-success.filter-button",{type:"submit",disabled:SearchModel.filterinstantly(),onclick:function(){f.search()},value:"Apply"}))])}},FilterOptionsComponent={controller:function(){return{togglehistory:function(){SearchModel.togglehistory();SearchModel.search()},toggleinstant:function(){SearchModel.toggleinstant()},togglecompact:function(){SearchModel.togglecompact()},toggleliteral:function(){SearchModel.toggleliteral();SearchModel.search()}}},view:function(v, -f){var l={type:"checkbox",onclick:v.toggleinstant},u={type:"checkbox",onclick:v.togglecompact},w={type:"checkbox",onclick:v.toggleliteral},x={type:"checkbox",onclick:v.togglehistory};SearchModel.filterinstantly()&&(l.checked="checked");SearchModel.compactview()&&(u.checked="checked");SearchModel.literalview()&&(w.checked="checked");SearchModel.searchhistory()&&(x.checked="checked");return m("div",m("h5","Search Options"),m("div",[m("div.checkbox",m("label",[m("input",l),m("span","Apply Filters Instantly")])), -m("div.checkbox",m("label",[m("input",u),m("span","Compact View")])),m("div.checkbox",m("label",[m("input",w),m("span",[m("span","Literal Search "),m("small",m("a",{href:"/documentation/#literal"},"(help)"))])])),!1===ff_timesearchenabled?m("span"):m("div.checkbox",m("label",[m("input",x),m("span","Search Across History")]))]))}},RSSComponent={view:function(v,f){return m("div",m("div",[m("div.checkbox",m("label",[m("a",{href:"/api/codesearch/rss/"+SearchModel.getsearchquerystring()},"RSS Feed of Search")]))]))}}, -SearchRepositoriesFilterComponent={controller:function(){var v=!1;return{trimrepo:function(f){0!==SearchModel.repofiltertext().length||v||(f=_.first(f,5));0!==SearchModel.repofiltertext().length&&(f=_.filter(f,function(f){return-1!==f.repoName.toLowerCase().indexOf(SearchModel.repofiltertext())}));return f},toggleshowall:function(){v=!v},showall:function(){return v},trimlength:function(){return 5},clickenvent:function(f){SearchModel.togglefilter("repo",f)},filtervalue:function(f){SearchModel.repofiltertext(f)}, -hasfilter:function(){return 0!==SearchModel.repofiltertext().length},getfiltervalue:function(){return SearchModel.repofiltertext()}}},view:function(v,f){var l=m("div");if(void 0===f.repofilters||0==f.repofilters.length)return l;!v.hasfilter()&&v.trimlength()=f.pages.length&&(u="disabled");return m("div",[m("h5","Page "+(SearchModel.currentpage()+1)+" of "+(0==f.pages.length?1:f.pages.length)),m("div.center",m("input.btn.btn-xs.btn-success.filter-button",{type:"submit",disabled:l,onclick:function(){f.search(SearchModel.currentpage()-1)},value:"\u25c0 Previous"}),m("span",m.trust(" ")),m("input.btn.btn-xs.btn-success.filter-button",{type:"submit",disabled:u,onclick:function(){f.search(SearchModel.currentpage()+ +1)},value:"Next \u25b6"}))])}},SearchLoadingComponent={view:function(){var v={};!1===SearchModel.currentlyloading()&&(v={style:{display:"none"}});return m("div.search-loading",v,[m("img",{src:"/img/loading.gif"}),m("h5","Loading...")])}},SearchPagesComponent={controller:function(){},view:function(v,f){return m("div.search-pagination",m("ul.pagination",[_.map(f.pages,function(l){return m("li",{"class":l==SearchModel.currentpage()?"active":""},m("a",{onclick:function(){f.search(l);window.scrollTo(0, +0)}},l+1))})]))}},SearchButtonFilterComponent={controller:function(){},view:function(v,f){return void 0===f.totalhits?m("div"):0===f.totalhits?m("div",[m("h5","Filter Results"),m("div.center",m("input.btn.btn-xs.btn-success.filter-button",{type:"submit",onclick:function(){f.clearfilters();f.search()},value:"Remove"}),m("span",m.trust(" ")),m("span.filter-button",{style:{height:"1px","float":"right"}},""))]):m("div",[m("h5","Filter Results"),m("div.center",m("input.btn.btn-xs.btn-success.filter-button", +{type:"submit",onclick:function(){f.clearfilters();f.search()},value:"Remove"}),m("span",m.trust(" ")),m("input.btn.btn-xs.btn-success.filter-button",{type:"submit",disabled:SearchModel.filterinstantly(),onclick:function(){f.search()},value:"Apply"}))])}},FilterOptionsComponent={controller:function(){return{togglehistory:function(){SearchModel.togglehistory();SearchModel.search()},toggleinstant:function(){SearchModel.toggleinstant()},togglecompact:function(){SearchModel.togglecompact()},toggleliteral:function(){SearchModel.toggleliteral(); +SearchModel.search()}}},view:function(v,f){var l={type:"checkbox",onclick:v.toggleinstant},u={type:"checkbox",onclick:v.togglecompact},w={type:"checkbox",onclick:v.toggleliteral},y={type:"checkbox",onclick:v.togglehistory};SearchModel.filterinstantly()&&(l.checked="checked");SearchModel.compactview()&&(u.checked="checked");SearchModel.literalview()&&(w.checked="checked");SearchModel.searchhistory()&&(y.checked="checked");return m("div",m("h5","Search Options"),m("div",[m("div.checkbox",m("label", +[m("input",l),m("span","Apply Filters Instantly")])),m("div.checkbox",m("label",[m("input",u),m("span","Compact View")])),m("div.checkbox",m("label",[m("input",w),m("span",[m("span","Literal Search "),m("small",m("a",{href:"/documentation/#literal"},"(help)"))])])),!1===ff_timesearchenabled?m("span"):m("div.checkbox",m("label",[m("input",y),m("span","Search Across History")]))]))}},RSSComponent={view:function(v,f){return m("div",m("div",[m("div.checkbox",m("label",[m("a",{href:"/api/codesearch/rss/"+ +SearchModel.getsearchquerystring()},"RSS Feed of Search")]))]))}},SearchRepositoriesFilterComponent={controller:function(){var v=!1;return{trimrepo:function(f){0!==SearchModel.repofiltertext().length||v||(f=_.first(f,5));0!==SearchModel.repofiltertext().length&&(f=_.filter(f,function(f){return-1!==f.repoName.toLowerCase().indexOf(SearchModel.repofiltertext())}));return f},toggleshowall:function(){v=!v},showall:function(){return v},trimlength:function(){return 5},clickenvent:function(f){SearchModel.togglefilter("repo", +f)},filtervalue:function(f){SearchModel.repofiltertext(f)},hasfilter:function(){return 0!==SearchModel.repofiltertext().length},getfiltervalue:function(){return SearchModel.repofiltertext()}}},view:function(v,f){var l=m("div");if(void 0===f.repofilters||0==f.repofilters.length)return l;!v.hasfilter()&&v.trimlength() ${embed} - +