From 069bb0ef49841ee56e8d7fbdfc32624e5870f7a6 Mon Sep 17 00:00:00 2001 From: agoujot <145840578+agoujot@users.noreply.github.com> Date: Wed, 16 Apr 2025 16:17:32 +0200 Subject: [PATCH 1/9] make the day count in the timecard update with timezone change by replacing timeCardDatasets line 339 with chart.data.datasets. timeCardDatasets is the initial value, whereas chart.data.datasets is the updated value (timeCardDatasets doesn't get updated because we do chart.data.datasets = chart.data.datasets --- assets/js/editcounter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/editcounter.js b/assets/js/editcounter.js index 180e33e37..2e12ec76f 100644 --- a/assets/js/editcounter.js +++ b/assets/js/editcounter.js @@ -336,7 +336,7 @@ xtools.editcounter.setupTimecard = function (timeCardDatasets, days) { if (index === 0 || index > 7) { return ''; } - return timeCardDatasets[index - 1].data.reduce(function (a, b) { + return chart.data.datasets[index - 1].data.reduce(function (a, b) { return a + parseInt(b.value, 10); }, 0); } From b844f8c18b032370840519dbeaf79a478a73fd55 Mon Sep 17 00:00:00 2001 From: MusikAnimal Date: Thu, 17 Apr 2025 02:44:02 -0400 Subject: [PATCH 2/9] Commit compiled assets --- public/build/app.79f750e0.js | 2 ++ ...{app.b0664648.js.LICENSE.txt => app.79f750e0.js.LICENSE.txt} | 0 public/build/app.b0664648.js | 2 -- public/build/entrypoints.json | 2 +- public/build/manifest.json | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 public/build/app.79f750e0.js rename public/build/{app.b0664648.js.LICENSE.txt => app.79f750e0.js.LICENSE.txt} (100%) delete mode 100644 public/build/app.b0664648.js diff --git a/public/build/app.79f750e0.js b/public/build/app.79f750e0.js new file mode 100644 index 000000000..c45b35959 --- /dev/null +++ b/public/build/app.79f750e0.js @@ -0,0 +1,2 @@ +/*! For license information please see app.79f750e0.js.LICENSE.txt */ +(self.webpackChunkxtools=self.webpackChunkxtools||[]).push([[524],{3441:()=>{xtools.adminstats={},$((function(){var t=$("#project_input"),e=t.val();0!==$("body.adminstats, body.patrollerstats, body.stewardstats").length&&(xtools.application.setupMultiSelectListeners(),$(".group-selector").on("change",(function(){$(".action-selector").addClass("hidden"),$(".action-selector--"+$(this).val()).removeClass("hidden"),$(".xt-page-title--title").text($.i18n("tool-"+$(this).val()+"stats")),$(".xt-page-title--desc").text($.i18n("tool-"+$(this).val()+"stats-desc"));var n=$.i18n("tool-"+$(this).val()+"stats")+" - "+$.i18n("xtools-title");document.title=n,history.replaceState({},n,"/"+$(this).val()+"stats"),"steward"===$(this).val()?(e=t.val(),t.val("meta.wikimedia.org")):t.val(e),xtools.application.setupMultiSelectListeners()})))}))},9654:(t,e,n)=>{n(8636),n(5086),$((function(){if($("body.authorship").length){var t=$("#show_selector");t.on("change",(function(t){$(".show-option").addClass("hidden").find("input").prop("disabled",!0),$(".show-option--".concat(t.target.value)).removeClass("hidden").find("input").prop("disabled",!1)})),window.onload=function(){return t.trigger("change")}}}))},5611:(t,e,n)=>{n(8476),n(5086),n(8379),n(7899),n(2231),n(115),xtools.autoedits={},$((function(){if($("body.autoedits").length){var t=$(".contributions-container"),e=$("#tool_selector");if(e.length)return xtools.autoedits.fetchTools=function(t){e.prop("disabled",!0),$.get("/api/project/automated_tools/"+t).done((function(t){t.error||(delete t.project,delete t.elapsed_time,e.html('"),Object.keys(t).forEach((function(n){e.append('")}))),e.prop("disabled",!1)}))},$(document).ready((function(){$("#project_input").on("change.autoedits",(function(){xtools.autoedits.fetchTools($("#project_input").val())}))})),void xtools.autoedits.fetchTools($("#project_input").val());if(xtools.application.setupToggleTable(window.countsByTool,window.toolsChart,"count",(function(t){var e=0;Object.keys(t).forEach((function(n){e+=parseInt(t[n].count,10)}));var n=Object.keys(t).length;$(".tools--tools").text(n.toLocaleString(i18nLang)+" "+$.i18n("num-tools",n)),$(".tools--count").text(e.toLocaleString(i18nLang))})),t.length){var n=$(".contributions-table").length?"setupContributionsNavListeners":"loadContributions";xtools.application[n]((function(t){return"".concat(t.target,"-contributions/").concat(t.project,"/").concat(t.username)+"/".concat(t.namespace,"/").concat(t.start,"/").concat(t.end)}),t.data("target"))}}}))},3600:(t,e,n)=>{n(7136),n(173),n(9073),n(6048),n(8636),n(5086),xtools.blame={},$((function(){if($("body.blame").length){$(".diff-empty").length===$(".diff tr").length-1&&$(".diff-empty").eq(0).text("(".concat($.i18n("diff-empty").toLowerCase(),")")).addClass("text-muted text-center").prop("width","20%"),$(".diff-addedline").each((function(){var t=xtools.blame.query.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),e=function(e){var n=new RegExp("(".concat(t,")"),"gi");$(e).html($(e).html().replace(n,"$1"))};$(this).find(".diffchange-inline").length?$(".diffchange-inline").each((function(){e(this)})):e(this)}));var t=$("#show_selector");t.on("change",(function(t){$(".show-option").addClass("hidden").find("input").prop("disabled",!0),$(".show-option--".concat(t.target.value)).removeClass("hidden").find("input").prop("disabled",!1)})),window.onload=function(){return t.trigger("change")}}}))},514:(t,e,n)=>{function o(t,e){xtools.categoryedits.$select2Input.data("select2")&&(xtools.categoryedits.$select2Input.off("change"),xtools.categoryedits.$select2Input.select2("val",null),xtools.categoryedits.$select2Input.select2("data",null),xtools.categoryedits.$select2Input.select2("destroy"));var n=e||xtools.categoryedits.$select2Input.data("ns"),o={ajax:{url:t||xtools.categoryedits.$select2Input.data("api"),dataType:"jsonp",jsonpCallback:"categorySuggestionCallback",delay:200,data:function(t){return{action:"query",list:"prefixsearch",format:"json",pssearch:t.term||"",psnamespace:14,cirrusUseCompletionSuggester:"yes"}},processResults:function(t){var e=t?t.query:{},o=[];return e&&e.prefixsearch.length&&(o=e.prefixsearch.map((function(t){var e=t.title.replace(new RegExp("^"+n+":"),"");return{id:e.score(),text:e}}))),{results:o}}},placeholder:$.i18n("category-search"),maximumSelectionLength:10,minimumInputLength:1};xtools.categoryedits.$select2Input.select2(o)}n(475),n(8476),n(5086),n(8379),n(7899),n(2231),n(9581),n(7136),n(173),n(9073),n(6048),xtools.categoryedits={},$((function(){$("body.categoryedits").length&&$(document).ready((function(){var t;xtools.categoryedits.$select2Input=$("#category_selector"),o(),$("#project_input").on("xtools.projectLoaded",(function(t,e){$.get(xtBaseUrl+"api/project/namespaces/"+e.project).done((function(t){o(t.api,t.namespaces[14])}))})),$("form").on("submit",(function(){$("#category_input").val(xtools.categoryedits.$select2Input.val().join("|"))})),xtools.application.setupToggleTable(window.countsByCategory,window.categoryChart,"editCount",(function(t){var e=0,n=0;Object.keys(t).forEach((function(o){e+=parseInt(t[o].editCount,10),n+=parseInt(t[o].pageCount,10)}));var o=Object.keys(t).length;$(".category--category").text(o.toLocaleString(i18nLang)+" "+$.i18n("num-categories",o)),$(".category--count").text(e.toLocaleString(i18nLang)),$(".category--percent-of-edit-count").text(100*(e/xtools.categoryedits.userEditCount).toLocaleString(i18nLang)+"%"),$(".category--pages").text(n.toLocaleString(i18nLang))})),$(".contributions-container").length&&(t=$(".contributions-table").length?"setupContributionsNavListeners":"loadContributions",xtools.application[t]((function(t){return"categoryedits-contributions/"+t.project+"/"+t.username+"/"+t.categories+"/"+t.start+"/"+t.end}),"Category"))}))}))},5779:(t,e,n)=>{function o(t){$("#project_input").val(xtools.application.vars.lastProject),$(".site-notice").append("")}function a(){var t=$("#page_input"),e=$("#user_input"),n=$("#namespace_select");if(t[0]||e[0]||$("#project_input")[0]){t.data("typeahead")&&t.data("typeahead").destroy(),e.data("typeahead")&&e.data("typeahead").destroy(),xtools.application.vars.apiPath||(xtools.application.vars.apiPath=$("#page_input").data("api")||$("#user_input").data("api"));var o={url:xtools.application.vars.apiPath,timeout:200,triggerLength:1,method:"get",preDispatch:null,preProcess:null};t[0]&&t.typeahead({ajax:Object.assign(o,{preDispatch:function(t){n[0]&&"0"!==n.val()&&(t=n.find("option:selected").text().trim()+":"+t);return{action:"query",list:"prefixsearch",format:"json",pssearch:t}},preProcess:function(t){var e="";return n[0]&&"0"!==n.val()&&(e=n.find("option:selected").text().trim()),t.query.prefixsearch.map((function(t){return t.title.replace(new RegExp("^"+e+":"),"")}))}})}),e[0]&&e.typeahead({ajax:Object.assign(o,{preDispatch:function(t){return{action:"query",list:"prefixsearch",format:"json",pssearch:"User:"+t}},preProcess:function(t){return t.query.prefixsearch.map((function(t){return t.title.split("/")[0].substr(t.title.indexOf(":")+1)})).filter((function(t,e,n){return n.indexOf(t)===e}))}})})}}function i(t){t?($(".form-control").prop("readonly",!1),$(".form-submit").prop("disabled",!1),$(".form-submit").text($.i18n("submit")).prop("disabled",!1)):$("#content form").on("submit",(function(){document.activeElement.blur(),$(".form-control").prop("readonly",!0),$(".form-submit").prop("disabled",!0).html($.i18n("loading")+" ");var t=Date.now();setInterval((function(){var e=Math.round((Date.now()-t)/1e3),n=Math.floor(e/60),o=("00"+(e-60*n)).slice(-2);$("#submit_timer").text(n+":"+o)}),1e3)}))}n(8665),n(5086),n(9979),n(4602),n(789),n(933),n(9218),n(2231),n(8636),n(5231),n(6088),n(8476),n(8379),n(7899),n(4189),n(8329),n(9581),n(7136),n(173),n(9073),n(6048),n(9693),n(17),n(9560),n(9389),n(8772),n(4913),xtools={},xtools.application={},xtools.application.vars={sectionOffset:{}},xtools.application.chartGridColor="rgba(0, 0, 0, 0.1)",window.matchMedia("(prefers-color-scheme: dark)").matches&&(Chart.defaults.global.defaultFontColor="#AAA",xtools.application.chartGridColor="#333"),$.i18n({locale:i18nLang}).load(i18nPaths),$((function(){$(document).ready((function(){if($(".xt-hide").on("click",(function(){$(this).hide(),$(this).siblings(".xt-show").show(),$(this).parents(".panel-heading").length?$(this).parents(".panel-heading").siblings(".panel-body").hide():$(this).parents(".xt-show-hide--parent").next(".xt-show-hide--target").hide()})),$(".xt-show").on("click",(function(){$(this).hide(),$(this).siblings(".xt-hide").show(),$(this).parents(".panel-heading").length?$(this).parents(".panel-heading").siblings(".panel-body").show():$(this).parents(".xt-show-hide--parent").next(".xt-show-hide--target").show()})),function(){var t=$(window).width(),e=$(".tool-links").outerWidth(),n=$(".nav-buttons").outerWidth();if(t<768)return;e+n>t&&$(".tool-links--more").removeClass("hidden");var o=$(".tool-links--entry").length;for(;o>0&&e+n>t;){var a=$(".tool-links--nav > .tool-links--entry:not(.active)").last().remove();$(".tool-links--more .dropdown-menu").append(a),e=$(".tool-links").outerWidth(),o--}}(),xtools.application.setupColumnSorting(),function(){var t=$(".xt-toc");if(!t||!t[0])return;xtools.application.vars.tocHeight=t.height();var e=function(){$(".xt-toc").find("a").off("click").on("click",(function(t){document.activeElement.blur();var e=$("#"+$(t.target).data("section"));$(window).scrollTop(e.offset().top-xtools.application.vars.tocHeight),$(this).parents(".xt-toc").find("a").removeClass("bold"),n(),xtools.application.vars.$tocClone.addClass("bold")}))};xtools.application.setupTocListeners=e;var n=function(){xtools.application.vars.$tocClone||(xtools.application.vars.$tocClone=t.clone(),xtools.application.vars.$tocClone.addClass("fixed"),t.after(xtools.application.vars.$tocClone),e())};xtools.application.buildSectionOffsets=function(){$.each(t.find("a"),(function(t,e){var n=$(e).data("section");xtools.application.vars.sectionOffset[n]=$("#"+n).offset().top}))},$(".xt-show, .xt-hide").on("click",xtools.application.buildSectionOffsets),xtools.application.buildSectionOffsets(),e();var o=t.offset().top;$(window).on("scroll.toc",(function(t){var e,a=$(t.target).scrollTop(),i=a>o;i?(xtools.application.vars.$tocClone||n(),Object.keys(xtools.application.vars.sectionOffset).forEach((function(t){a>xtools.application.vars.sectionOffset[t]-xtools.application.vars.tocHeight-1&&(e=xtools.application.vars.$tocClone.find('a[data-section="'+t+'"]'))})),xtools.application.vars.$tocClone.find("a").removeClass("bold"),e&&e.addClass("bold")):!i&&xtools.application.vars.$tocClone&&(xtools.application.vars.$tocClone.remove(),xtools.application.vars.$tocClone=null)}))}(),function(){var t=$(".table-sticky-header");if(!t||!t[0])return;var e,n=t.find("thead tr").eq(0),o=function(){e||(e=n.clone(),n.addClass("sticky-heading"),n.before(e),n.find("th").each((function(t){$(this).css("width",e.find("th").eq(t).outerWidth())})),n.css("width",e.outerWidth()+1))},a=t.offset().top;$(window).on("scroll.stickyHeader",(function(i){var r=$(i.target).scrollTop()>a;r&&!e?o():!r&&e?(n.removeClass("sticky-heading"),e.remove(),e=null):e&&n.css("top",$(window).scrollTop()-t.offset().top)}))}(),function(){var t=$("#project_input");if(!t)return;t.length&&$("#namespace_select").length?(xtools.application.vars.lastProject=$("#project_input").val(),$("#project_input").off("change").on("change",(function(){$("#namespace_select").prop("disabled",!0);var t=this.value;$.get(xtBaseUrl+"api/project/namespaces/"+t).done((function(e){var n=$('#namespace_select option[value="all"]').eq(0).clone();for(var o in $("#namespace_select").html(n),xtools.application.vars.apiPath=e.api,e.namespaces)if(e.namespaces.hasOwnProperty(o)){var i=0===parseInt(o,10)?$.i18n("mainspace"):e.namespaces[o];$("#namespace_select").append("")}$("#namespace_select").val(0),xtools.application.vars.lastProject=t,a()})).fail(o.bind(this,t)).always((function(){$("#namespace_select").prop("disabled",!1)}))})),$("#namespace_select").on("change",a)):($("#user_input")[0]||$("#page_input")[0])&&(xtools.application.vars.lastProject=t.val(),t.on("change",(function(){var e=this.value;$.get(xtBaseUrl+"api/project/normalize/"+e).done((function(n){xtools.application.vars.apiPath=n.api,xtools.application.vars.lastProject=e,a(),t.trigger("xtools.projectLoaded",n)})).fail(o.bind(this,e))})))}(),a(),i(),"function"==typeof URL){var t=new URL(window.location.href).searchParams.get("focus");t&&$("[name=".concat(t,"]")).focus()}})),window.onpageshow=function(t){t.persisted&&i(!0)}})),xtools.application.setupToggleTable=function(t,e,n,o){var a;$(".toggle-table").on("click",".toggle-table--toggle",(function(){a||(a=Object.assign({},t));var i=$(this).data("index"),r=$(this).data("key");"true"===$(this).attr("data-disabled")?(a[r]=t[r],e.data.datasets[0].data[i]=parseInt(n?a[r][n]:a[r],10),$(this).attr("data-disabled","false")):(delete a[r],e.data.datasets[0].data[i]=null,$(this).attr("data-disabled","true")),$(this).parents("tr").toggleClass("excluded"),$(this).find(".glyphicon").toggleClass("glyphicon-remove").toggleClass("glyphicon-plus"),o(a,r,i),e.update()}))},xtools.application.setupColumnSorting=function(){var t,e;$(".sort-link").on("click",(function(){t=e===$(this).data("column")?-t:1,$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var n=1===t?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";$(this).find(".glyphicon").addClass(n).removeClass("glyphicon-sort"),e=$(this).data("column");var o=$(this).parents("table"),a=o.find(".sort-entry--"+e).parent();a.length&&(a.sort((function(n,o){var a=$(n).find(".sort-entry--"+e).data("value")||0,i=$(o).find(".sort-entry--"+e).data("value")||0;return isNaN(a)||(a=parseFloat(a)||0),isNaN(i)||(i=parseFloat(i)||0),ai?-t:0})),$(".sort-entry--rank").length>0&&$.each(a,(function(t,e){$(e).find(".sort-entry--rank").text(t+1)})),o.find("tbody").html(a))}))},xtools.application.setupMultiSelectListeners=function(){var t=$(".multi-select--body:not(.hidden) .multi-select--option");t.on("change",(function(){$(".multi-select--all").prop("checked",$(".multi-select--body:not(.hidden) .multi-select--option:checked").length===t.length)})),$(".multi-select--all").on("click",(function(){t.prop("checked",$(this).prop("checked"))}))}},6618:(t,e,n)=>{function o(){xtools.application.vars.offset||(xtools.application.vars.initialOffset=$(".contributions-container").data("offset"),xtools.application.vars.offset=xtools.application.vars.initialOffset)}n(9218),n(2231),n(8665),n(5086),n(9979),n(4602),n(933),n(7136),n(785),n(9389),n(6048),n(9073),n(173),Object.assign(xtools.application.vars,{initialOffset:"",offset:"",prevOffsets:[],initialLoad:!1}),xtools.application.loadContributions=function(t,e){o();var n=$(".contributions-container"),a=$(".contributions-loading"),i=n.data(),r=t(i),s=parseInt(i.limit,10)||50,l=new URLSearchParams(window.location.search),u=xtBaseUrl+r+"/"+xtools.application.vars.offset,c=location.pathname.split("/")[1],d=u.split("/")[1];n.addClass("contributions-container--loading"),a.show(),l.set("limit",s.toString()),l.append("htmlonly","yes"),$.ajax({url:u+"?"+l.toString(),timeout:6e4}).always((function(){n.removeClass("contributions-container--loading"),a.hide()})).done((function(o){if(n.html(o).show(),xtools.application.setupContributionsNavListeners(t,e),xtools.application.vars.initialOffset||(xtools.application.vars.initialOffset=$(".contribs-row-date").first().data("value"),xtools.application.vars.initialLoad=!0),c!==d){var a=new RegExp("^/".concat(d,"/(.*)/"));u=u.replace(a,"/".concat(c,"/$1/"))}xtools.application.vars.initialLoad?xtools.application.vars.initialLoad=!1:(l.delete("htmlonly"),window.history.replaceState(null,document.title,u+"?"+l.toString()),n.parents(".panel")[0].scrollIntoView()),xtools.application.vars.offset"+i+"")).show()}))},xtools.application.setupContributionsNavListeners=function(t,e){o(),$(".contributions--prev").off("click").one("click",(function(n){n.preventDefault(),xtools.application.vars.offset=xtools.application.vars.prevOffsets.pop()||xtools.application.vars.initialOffset,xtools.application.loadContributions(t,e)})),$(".contributions--next").off("click").one("click",(function(n){n.preventDefault(),xtools.application.vars.offset&&xtools.application.vars.prevOffsets.push(xtools.application.vars.offset),xtools.application.vars.offset=$(".contribs-row-date").last().data("value"),xtools.application.loadContributions(t,e)})),$("#contributions_limit").on("change",(function(t){var e=parseInt(t.target.value,10);$(".contributions-container").data("limit",e),$(".contributions--prev-text").text($.i18n("pager-newer-n",e).capitalize()),$(".contributions--next-text").text($.i18n("pager-older-n",e).capitalize())}))}},9143:(t,e,n)=>{n(7136),n(173),n(17),n(5086),n(9693),n(5852),n(4913),String.prototype.descore=function(){return this.replace(/_/g," ")},String.prototype.score=function(){return this.replace(/ /g,"_")},String.prototype.escape=function(){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,(function(e){return t[e]}))},Array.prototype.unique=function(){return this.filter((function(t,e,n){return n.indexOf(t)===e}))},Object.defineProperty(String.prototype,"capitalize",{value:function(){return this.charAt(0).toUpperCase()+this.slice(1)},enumerable:!1})},9307:(t,e,n)=>{function o(t,e){var n=0,o=[];Object.keys(t).forEach((function(e){var a=parseInt(t[e],10);o.push(a),n+=a}));var i=Object.keys(t).length;$(".namespaces--namespaces").text(i.toLocaleString(i18nLang)+" "+$.i18n("num-namespaces",i)),$(".namespaces--count").text(n.toLocaleString(i18nLang)),o.forEach((function(t){var e=r(t,n);$(".namespaces-table .sort-entry--count[data-value="+t+"]").text(t.toLocaleString(i18nLang)+" ("+e+")")})),["year","month"].forEach((function(t){var n=window[t+"countsChart"],o=window.namespaces[e]||$.i18n("mainspace");if(n){var i=0;n.data.datasets.forEach((function(t,e){t.label===o&&(i=e)}));var r=n.getDatasetMeta(i);r.hidden=null===r.hidden?!n.data.datasets[i].hidden:null,r.hidden?xtools.editcounter.excludedNamespaces.push(o):xtools.editcounter.excludedNamespaces=xtools.editcounter.excludedNamespaces.filter((function(t){return t!==o})),window[t+"countsChart"].config.data.labels=a(t,n.data.datasets),n.update()}}))}function a(t,e){var n=i(t,e);return Object.keys(n).map((function(e){var o=n[e].toString().length,a=2*(xtools.editcounter.maxDigits[t]-o);return e+Array(a+5).join("\t")+n[e].toLocaleString(i18nLang,{useGrouping:!1})}))}function i(t,e){var n={};return e.forEach((function(e){-1===xtools.editcounter.excludedNamespaces.indexOf(e.label)&&e.data.forEach((function(e,o){n[xtools.editcounter.chartLabels[t][o]]||(n[xtools.editcounter.chartLabels[t][o]]=0),n[xtools.editcounter.chartLabels[t][o]]+=e}))})),n}function r(t,e){return(t/e).toLocaleString(i18nLang,{style:"percent"})}n(8476),n(5086),n(8379),n(7899),n(2231),n(17),n(9581),n(9389),n(6048),n(475),n(9693),n(7136),n(173),n(2982),n(533),n(8825),n(115),n(6088),xtools.editcounter={},xtools.editcounter.excludedNamespaces=[],xtools.editcounter.chartLabels={},xtools.editcounter.maxDigits={},$((function(){0!==$("body.editcounter").length&&(xtools.application.setupMultiSelectListeners(),$(".chart-wrapper").each((function(){var t=$(this).data("chart-type");if(void 0===t)return!1;var e=$(this).data("chart-data"),n=$(this).data("chart-labels"),o=$("canvas",$(this));new Chart(o,{type:t,data:{labels:n,datasets:[{data:e}]}})})),xtools.application.setupToggleTable(window.namespaceTotals,window.namespaceChart,null,o))})),xtools.editcounter.setupMonthYearChart=function(t,e,n,o,s){var l=e.map((function(t){return t.label}));xtools.editcounter.maxDigits[t]=o.toString().length,xtools.editcounter.chartLabels[t]=n,window[t+"countsChart"]=new Chart($("#"+t+"counts-canvas"),{type:"horizontalBar",data:{labels:a(t,e),datasets:e},options:{tooltips:{mode:"nearest",intersect:!0,callbacks:{label:function(n){var o=i(t,e),a=Object.keys(o).map((function(t){return o[t]})),s=a[n.index],l=r(n.xLabel,s);return n.xLabel.toLocaleString(i18nLang)+" ("+l+")"},title:function(t){return t[0].yLabel.replace(/\t.*/,"")+" - "+l[t[0].datasetIndex]}}},responsive:!0,maintainAspectRatio:!1,scales:{xAxes:[{stacked:!0,ticks:{beginAtZero:!0,reverse:i18nRTL,callback:function(t){if(Math.floor(t)===t)return t.toLocaleString(i18nLang)}},gridLines:{color:xtools.application.chartGridColor}}],yAxes:[{stacked:!0,barThickness:18,position:i18nRTL?"right":"left",gridLines:{color:xtools.application.chartGridColor}}]},legend:{display:s}}})},xtools.editcounter.setupTimecard=function(t,e){var n=(new Date).getTimezoneOffset()/60;t=t.map((function(t){return t.backgroundColor=new Array(t.data.length).fill(t.backgroundColor),t})),window.chart=new Chart($("#timecard-bubble-chart"),{type:"bubble",data:{datasets:t},options:{responsive:!0,legend:{display:!1},layout:{padding:{right:0}},elements:{point:{radius:function(t){var e=t.dataIndex;return t.dataset.data[e].scale},hitRadius:8}},scales:{yAxes:[{ticks:{min:0,max:8,stepSize:1,padding:25,callback:function(t,n){return e[n]}},position:i18nRTL?"right":"left",gridLines:{color:xtools.application.chartGridColor}},{ticks:{min:0,max:8,stepSize:1,padding:25,callback:function(t,e){return 0===e||e>7?"":chart.data.datasets[e-1].data.reduce((function(t,e){return t+parseInt(e.value,10)}),0)}},position:i18nRTL?"left":"right"}],xAxes:[{ticks:{beginAtZero:!0,min:0,max:24,stepSize:1,reverse:i18nRTL,padding:0,callback:function(t){return t%2==0?t+":00":""}},gridLines:{color:xtools.application.chartGridColor}}]},tooltips:{displayColors:!1,callbacks:{title:function(t){return e[7-t[0].yLabel+1]+" "+parseInt(t[0].xLabel)+":"+String(t[0].xLabel%1*60).padStart(2,"0")},label:function(e){var n=[t[e.datasetIndex].data[e.index].value];return"".concat(n," ").concat($.i18n("num-edits",[n]))}}}}}),$((function(){$(".use-local-time").prop("checked",!1).on("click",(function(){var t=$(this).is(":checked")?n:-n,e=new Array(7);chart.data.datasets.forEach((function(t){return e[t.data[0].day_of_week-1]=t.backgroundColor[0]})),chart.data.datasets=chart.data.datasets.map((function(n){var o=[];return n.data=n.data.map((function(n){var a=parseFloat(n.hour)-t,i=parseInt(n.day_of_week,10);return a<0?(a=24+a,(i-=1)<1&&(i=7+i)):a>=24&&(a-=24,(i+=1)>7&&(i-=7)),n.hour=a.toString(),n.x=a.toString(),n.day_of_week=i.toString(),n.y=(8-i).toString(),o.push(e[i-1]),n})),n.backgroundColor=o,n})),$(this).is(":checked"),chart.update()}))}))}},6730:(t,e,n)=>{n(115),xtools.globalcontribs={},$((function(){0!==$("body.globalcontribs").length&&xtools.application.setupContributionsNavListeners((function(t){return"globalcontribs/".concat(t.username,"/").concat(t.namespace,"/").concat(t.start,"/").concat(t.end)}),"globalcontribs")}))},1680:(t,e,n)=>{n(7136),n(173),xtools.pageinfo={},$((function(){if($("body.pageinfo").length){var t=function(){xtools.application.setupToggleTable(window.textshares,window.textsharesChart,"percentage",$.noop)},e=$(".textshares-container");if(e[0]){var n=xtBaseUrl+"authorship/"+e.data("project")+"/"+e.data("page")+"/"+(xtools.pageinfo.endDate?xtools.pageinfo.endDate+"/":"");n="".concat(n.replace(/\/$/,""),"?htmlonly=yes"),$.ajax({url:n,timeout:3e4}).done((function(n){e.replaceWith(n),xtools.application.buildSectionOffsets(),xtools.application.setupTocListeners(),xtools.application.setupColumnSorting(),t()})).fail((function(t,n,o){e.replaceWith($.i18n("api-error","Authorship API: "+o+""))}))}else $(".textshares-table").length&&t()}}))},1595:(t,e,n)=>{n(8476),n(5086),n(8379),n(7899),n(4867),n(9389),n(6048),n(8636),xtools.pages={},$((function(){if($("body.pages").length){var t={};xtools.application.setupToggleTable(window.countsByNamespace,window.pieChart,"count",(function(t){var e={count:0,deleted:0,redirects:0};Object.keys(t).forEach((function(n){e.count+=t[n].count,e.deleted+=t[n].deleted,e.redirects+=t[n].redirects})),$(".namespaces--namespaces").text(Object.keys(t).length.toLocaleString()+" "+$.i18n("num-namespaces",Object.keys(t).length)),$(".namespaces--pages").text(e.count.toLocaleString()),$(".namespaces--deleted").text(e.deleted.toLocaleString()+" ("+(e.deleted/e.count*100).toFixed(1)+"%)"),$(".namespaces--redirects").text(e.redirects.toLocaleString()+" ("+(e.redirects/e.count*100).toFixed(1)+"%)")})),$(".deleted-page").on("mouseenter",(function(e){var n=$(this).data("page-title"),o=$(this).data("namespace"),a=$(this).data("datetime").toString(),i=$(this).data("username"),r=function(t){$(e.target).find(".tooltip-body").html(t)};if(void 0!==t[o+"/"+n])return r(t[o+"/"+n]);var s=function(){r(""+$.i18n("api-error","Deletion Summary API")+"")};$.ajax({url:xtBaseUrl+"pages/deletion_summary/"+wikiDomain+"/"+i+"/"+o+"/"+n+"/"+a}).done((function(e){if(null===e.summary)return s();r(e.summary),t[o+"/"+n]=e.summary})).fail(s)}))}}))},1223:()=>{xtools.topedits={},$((function(){$("body.topedits").length&&$("#namespace_select").on("change",(function(){$("#page_input").prop("disabled","all"===$(this).val())}))}))},7852:(t,e,n)=>{var o,a,i,s;function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}n(7136),n(6255),n(2231),n(4913),n(6088),n(9389),n(5086),n(6048),n(8665),n(4602),n(115),n(8476),n(9693),n(475),n(9581),n(2982),n(4009),n(17),n(2157),n(8763),n(9560),n(5852),n(8379),n(7899),n(533),n(4538),n(1145),n(6943),n(8772),n(5231),n(4867),n(4895),n(4189),n(557),n(8844),n(2006),n(3534),n(590),n(4216),n(9979),s=function(){return function t(e,n,o){function a(r,s){if(!n[r]){if(!e[r]){if(i)return i(r,!0);var l=new Error("Cannot find module '"+r+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[r]={exports:{}};e[r][0].call(u.exports,(function(t){return a(e[r][1][t]||t)}),u,u.exports,t,e,n,o)}return n[r].exports}for(var i=void 0,r=0;rn?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=this,o=t,a=void 0===e?.5:e,i=2*a-1,r=n.alpha()-o.alpha(),s=((i*r==-1?i:(i+r)/(1+i*r))+1)/2,l=1-s;return this.rgb(s*n.red()+l*o.red(),s*n.green()+l*o.green(),s*n.blue()+l*o.blue()).alpha(n.alpha()*a+o.alpha()*(1-a))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new i,o=this.values,a=n.values;for(var r in o)o.hasOwnProperty(r)&&(t=o[r],"[object Array]"===(e={}.toString.call(t))?a[r]=t.slice(0):"[object Number]"===e?a[r]=t:console.error("unexpected color value:",t));return n}},i.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},i.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},i.prototype.getValues=function(t){for(var e=this.values,n={},o=0;o.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92)),100*(.2126*e+.7152*n+.0722*o),100*(.0193*e+.1192*n+.9505*o)]}function c(t){var e=u(t),n=e[0],o=e[1],a=e[2];return o/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116)-16,500*(n-o),200*(o-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]}function d(t){var e,n,o,a,i,r=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return[i=255*l,i,i];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var u=0;u<3;u++)(o=r+1/3*-(u-1))<0&&o++,o>1&&o--,i=6*o<1?e+6*(n-e)*o:2*o<1?n:3*o<2?e+(n-e)*(2/3-o)*6:e,a[u]=255*i;return a}function h(t){var e=t[0]/60,n=t[1]/100,o=t[2]/100,a=Math.floor(e)%6,i=e-Math.floor(e),r=255*o*(1-n),s=255*o*(1-n*i),l=255*o*(1-n*(1-i));switch(o*=255,a){case 0:return[o,l,r];case 1:return[s,o,r];case 2:return[r,o,l];case 3:return[r,s,o];case 4:return[l,r,o];case 5:return[o,r,s]}}function f(t){var e,n,o,a,i=t[0]/360,s=t[1]/100,l=t[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),o=6*i-(e=Math.floor(6*i)),!!(1&e)&&(o=1-o),a=s+o*((n=1-l)-s),e){default:case 6:case 0:r=n,g=a,b=s;break;case 1:r=a,g=n,b=s;break;case 2:r=s,g=n,b=a;break;case 3:r=s,g=a,b=n;break;case 4:r=a,g=s,b=n;break;case 5:r=n,g=s,b=a}return[255*r,255*g,255*b]}function p(t){var e=t[0]/100,n=t[1]/100,o=t[2]/100,a=t[3]/100;return[255*(1-Math.min(1,e*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,o*(1-a)+a))]}function v(t){var e,n,o,a=t[0]/100,i=t[1]/100,r=t[2]/100;return n=-.9689*a+1.8758*i+.0415*r,o=.0557*a+-.204*i+1.057*r,e=(e=3.2406*a+-1.5372*i+-.4986*r)>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*=12.92,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(o=Math.min(Math.max(0,o),1))]}function m(t){var e=t[0],n=t[1],o=t[2];return n/=100,o/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]}function x(t){var e,n,o,a,i=t[0],r=t[1],s=t[2];return i<=8?a=(n=100*i/903.3)/100*7.787+16/116:(n=100*Math.pow((i+16)/116,3),a=Math.pow(n/100,1/3)),[e=e/95.047<=.008856?e=95.047*(r/500+a-16/116)/7.787:95.047*Math.pow(r/500+a,3),n,o=o/108.883<=.008859?o=108.883*(a-s/200-16/116)/7.787:108.883*Math.pow(a-s/200,3)]}function y(t){var e,n=t[0],o=t[1],a=t[2];return(e=360*Math.atan2(a,o)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(o*o+a*a),e]}function k(t){return v(x(t))}function w(t){var e,n=t[0],o=t[1];return e=t[2]/360*2*Math.PI,[n,o*Math.cos(e),o*Math.sin(e)]}function C(t){return S[t]}e.exports={rgb2hsl:o,rgb2hsv:a,rgb2hwb:i,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:u,rgb2lab:c,rgb2lch:function(t){return y(c(t))},hsl2rgb:d,hsl2hsv:function(t){var e=t[0],n=t[1]/100,o=t[2]/100;return 0===o?[0,0,0]:[e,2*(n*=(o*=2)<=1?o:2-o)/(o+n)*100,(o+n)/2*100]},hsl2hwb:function(t){return i(d(t))},hsl2cmyk:function(t){return s(d(t))},hsl2keyword:function(t){return l(d(t))},hsv2rgb:h,hsv2hsl:function(t){var e,n,o=t[0],a=t[1]/100,i=t[2]/100;return e=a*i,[o,100*(e=(e/=(n=(2-a)*i)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(t){return i(h(t))},hsv2cmyk:function(t){return s(h(t))},hsv2keyword:function(t){return l(h(t))},hwb2rgb:f,hwb2hsl:function(t){return o(f(t))},hwb2hsv:function(t){return a(f(t))},hwb2cmyk:function(t){return s(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:p,cmyk2hsl:function(t){return o(p(t))},cmyk2hsv:function(t){return a(p(t))},cmyk2hwb:function(t){return i(p(t))},cmyk2keyword:function(t){return l(p(t))},keyword2rgb:C,keyword2hsl:function(t){return o(C(t))},keyword2hsv:function(t){return a(C(t))},keyword2hwb:function(t){return i(C(t))},keyword2cmyk:function(t){return s(C(t))},keyword2lab:function(t){return c(C(t))},keyword2xyz:function(t){return u(C(t))},xyz2rgb:v,xyz2lab:m,xyz2lch:function(t){return y(m(t))},lab2xyz:x,lab2rgb:k,lab2lch:y,lch2lab:w,lch2xyz:function(t){return x(w(t))},lch2rgb:function(t){return k(w(t))}};var S={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]},M={};for(var _ in S)M[JSON.stringify(S[_])]=_},{}],5:[function(t,e,n){var o=t(4),a=function(){return new u};for(var i in o){a[i+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),o[t](e)}}(i);var r=/(\w+)2(\w+)/.exec(i),s=r[1],l=r[2];(a[s]=a[s]||{})[l]=a[i]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var n=o[t](e);if("string"==typeof n||void 0===n)return n;for(var a=0;a0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index=0&&a>0)&&(v+=a));return i=d.getPixelForValue(v),{size:s=((r=d.getPixelForValue(v+f))-i)/2,base:i,head:r,center:r+s/2}},calculateBarIndexPixels:function(t,e,n){var o,a,r,s,l,u=n.scale.options,c=this.getStackIndex(t),d=n.pixels,h=d[e],f=d.length,p=n.start,g=n.end;return 1===f?(o=h>p?h-p:g-h,a=h0&&(o=(h-d[e-1])/2,e===f-1&&(a=o)),e');var n=t.data,o=n.datasets,a=n.labels;if(o.length)for(var i=0;i'),a[i]&&e.push(a[i]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,o){var a=t.getDatasetMeta(0),r=e.datasets[0],s=a.data[o],l=s&&s.custom||{},u=i.valueAtIndexOrDefault,c=t.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(r.backgroundColor,o,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(r.borderColor,o,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(r.borderWidth,o,c.borderWidth),hidden:isNaN(r.data[o])||a.data[o].hidden,index:o}})):[]}},onClick:function(t,e){var n,o,a,i=e.index,r=this.chart;for(n=0,o=(r.data.datasets||[]).length;n=Math.PI?-1:p<-Math.PI?1:0))+f,v={x:Math.cos(p),y:Math.sin(p)},m={x:Math.cos(g),y:Math.sin(g)},b=p<=0&&g>=0||p<=2*Math.PI&&2*Math.PI<=g,x=p<=.5*Math.PI&&.5*Math.PI<=g||p<=2.5*Math.PI&&2.5*Math.PI<=g,y=p<=-Math.PI&&-Math.PI<=g||p<=Math.PI&&Math.PI<=g,k=p<=.5*-Math.PI&&.5*-Math.PI<=g||p<=1.5*Math.PI&&1.5*Math.PI<=g,w=h/100,C={x:y?-1:Math.min(v.x*(v.x<0?1:w),m.x*(m.x<0?1:w)),y:k?-1:Math.min(v.y*(v.y<0?1:w),m.y*(m.y<0?1:w))},S={x:b?1:Math.max(v.x*(v.x>0?1:w),m.x*(m.x>0?1:w)),y:x?1:Math.max(v.y*(v.y>0?1:w),m.y*(m.y>0?1:w))},M={width:.5*(S.x-C.x),height:.5*(S.y-C.y)};u=Math.min(s/M.width,l/M.height),c={x:-.5*(S.x+C.x),y:-.5*(S.y+C.y)}}n.borderWidth=e.getMaxBorderWidth(d.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(h?n.outerRadius/100*h:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=c.x*n.outerRadius,n.offsetY=c.y*n.outerRadius,d.total=e.calculateTotal(),e.outerRadius=n.outerRadius-n.radiusLength*e.getRingIndex(e.index),e.innerRadius=Math.max(e.outerRadius-n.radiusLength,0),i.each(d.data,(function(n,o){e.updateElement(n,o,t)}))},updateElement:function(t,e,n){var o=this,a=o.chart,r=a.chartArea,s=a.options,l=s.animation,u=(r.left+r.right)/2,c=(r.top+r.bottom)/2,d=s.rotation,h=s.rotation,f=o.getDataset(),p=n&&l.animateRotate||t.hidden?0:o.calculateCircumference(f.data[e])*(s.circumference/(2*Math.PI)),g=n&&l.animateScale?0:o.innerRadius,v=n&&l.animateScale?0:o.outerRadius,m=i.valueAtIndexOrDefault;i.extend(t,{_datasetIndex:o.index,_index:e,_model:{x:u+a.offsetX,y:c+a.offsetY,startAngle:d,endAngle:h,circumference:p,outerRadius:v,innerRadius:g,label:m(f.label,e,a.data.labels[e])}});var b=t._model;this.removeHoverStyle(t),n&&l.animateRotate||(b.startAngle=0===e?s.rotation:o.getMeta().data[e-1]._model.endAngle,b.endAngle=b.startAngle+b.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,e=this.getDataset(),n=this.getMeta(),o=0;return i.each(n.data,(function(n,a){t=e.data[a],isNaN(t)||n.hidden||(o+=Math.abs(t))})),o},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,n,o=0,a=this.index,i=t.length,r=0;r(o=e>o?e:o)?n:o;return o}})}},{25:25,40:40,45:45}],18:[function(t,e,n){"use strict";var o=t(25),a=t(40),i=t(45);o._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(t){function e(t,e){return i.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,update:function(t){var n,o,a,r=this,s=r.getMeta(),l=s.dataset,u=s.data||[],c=r.chart.options,d=c.elements.line,h=r.getScaleForId(s.yAxisID),f=r.getDataset(),p=e(f,c);for(p&&(a=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=h,l._datasetIndex=r.index,l._children=u,l._model={spanGaps:f.spanGaps?f.spanGaps:c.spanGaps,tension:a.tension?a.tension:i.valueOrDefault(f.lineTension,d.tension),backgroundColor:a.backgroundColor?a.backgroundColor:f.backgroundColor||d.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:f.borderWidth||d.borderWidth,borderColor:a.borderColor?a.borderColor:f.borderColor||d.borderColor,borderCapStyle:a.borderCapStyle?a.borderCapStyle:f.borderCapStyle||d.borderCapStyle,borderDash:a.borderDash?a.borderDash:f.borderDash||d.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:f.borderDashOffset||d.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:f.borderJoinStyle||d.borderJoinStyle,fill:a.fill?a.fill:void 0!==f.fill?f.fill:d.fill,steppedLine:a.steppedLine?a.steppedLine:i.valueOrDefault(f.steppedLine,d.stepped),cubicInterpolationMode:a.cubicInterpolationMode?a.cubicInterpolationMode:i.valueOrDefault(f.cubicInterpolationMode,d.cubicInterpolationMode)},l.pivot()),n=0,o=u.length;n');var n=t.data,o=n.datasets,a=n.labels;if(o.length)for(var i=0;i'),a[i]&&e.push(a[i]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,o){var a=t.getDatasetMeta(0),r=e.datasets[0],s=a.data[o].custom||{},l=i.valueAtIndexOrDefault,u=t.options.elements.arc;return{text:n,fillStyle:s.backgroundColor?s.backgroundColor:l(r.backgroundColor,o,u.backgroundColor),strokeStyle:s.borderColor?s.borderColor:l(r.borderColor,o,u.borderColor),lineWidth:s.borderWidth?s.borderWidth:l(r.borderWidth,o,u.borderWidth),hidden:isNaN(r.data[o])||a.data[o].hidden,index:o}})):[]}},onClick:function(t,e){var n,o,a,i=e.index,r=this.chart;for(n=0,o=(r.data.datasets||[]).length;n0&&!isNaN(t)?2*Math.PI/e:0}})}},{25:25,40:40,45:45}],20:[function(t,e,n){"use strict";var o=t(25),a=t(40),i=t(45);o._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,linkScales:i.noop,update:function(t){var e=this,n=e.getMeta(),o=n.dataset,a=n.data,r=o.custom||{},s=e.getDataset(),l=e.chart.options.elements.line,u=e.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),i.extend(n.dataset,{_datasetIndex:e.index,_scale:u,_children:a,_loop:!0,_model:{tension:r.tension?r.tension:i.valueOrDefault(s.lineTension,l.tension),backgroundColor:r.backgroundColor?r.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:s.borderWidth||l.borderWidth,borderColor:r.borderColor?r.borderColor:s.borderColor||l.borderColor,fill:r.fill?r.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:r.borderCapStyle?r.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:r.borderDash?r.borderDash:s.borderDash||l.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle}}),n.dataset.pivot(),i.each(a,(function(n,o){e.updateElement(n,o,t)}),e),e.updateBezierControlPoints()},updateElement:function(t,e,n){var o=this,a=t.custom||{},r=o.getDataset(),s=o.chart.scale,l=o.chart.options.elements.point,u=s.getPointPositionForValue(e,r.data[e]);void 0!==r.radius&&void 0===r.pointRadius&&(r.pointRadius=r.radius),void 0!==r.hitRadius&&void 0===r.pointHitRadius&&(r.pointHitRadius=r.hitRadius),i.extend(t,{_datasetIndex:o.index,_index:e,_scale:s,_model:{x:n?s.xCenter:u.x,y:n?s.yCenter:u.y,tension:a.tension?a.tension:i.valueOrDefault(r.lineTension,o.chart.options.elements.line.tension),radius:a.radius?a.radius:i.valueAtIndexOrDefault(r.pointRadius,e,l.radius),backgroundColor:a.backgroundColor?a.backgroundColor:i.valueAtIndexOrDefault(r.pointBackgroundColor,e,l.backgroundColor),borderColor:a.borderColor?a.borderColor:i.valueAtIndexOrDefault(r.pointBorderColor,e,l.borderColor),borderWidth:a.borderWidth?a.borderWidth:i.valueAtIndexOrDefault(r.pointBorderWidth,e,l.borderWidth),pointStyle:a.pointStyle?a.pointStyle:i.valueAtIndexOrDefault(r.pointStyle,e,l.pointStyle),hitRadius:a.hitRadius?a.hitRadius:i.valueAtIndexOrDefault(r.pointHitRadius,e,l.hitRadius)}}),t._model.skip=a.skip?a.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,e=this.getMeta();i.each(e.data,(function(n,o){var a=n._model,r=i.splineCurve(i.previousItem(e.data,o,!0)._model,a,i.nextItem(e.data,o,!0)._model,a.tension);a.controlPointPreviousX=Math.max(Math.min(r.previous.x,t.right),t.left),a.controlPointPreviousY=Math.max(Math.min(r.previous.y,t.bottom),t.top),a.controlPointNextX=Math.max(Math.min(r.next.x,t.right),t.left),a.controlPointNextY=Math.max(Math.min(r.next.y,t.bottom),t.top),n.pivot()}))},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},o=t._index,a=t._model;a.radius=n.hoverRadius?n.hoverRadius:i.valueAtIndexOrDefault(e.pointHoverRadius,o,this.chart.options.elements.point.hoverRadius),a.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:i.valueAtIndexOrDefault(e.pointHoverBackgroundColor,o,i.getHoverColor(a.backgroundColor)),a.borderColor=n.hoverBorderColor?n.hoverBorderColor:i.valueAtIndexOrDefault(e.pointHoverBorderColor,o,i.getHoverColor(a.borderColor)),a.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:i.valueAtIndexOrDefault(e.pointHoverBorderWidth,o,a.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},o=t._index,a=t._model,r=this.chart.options.elements.point;a.radius=n.radius?n.radius:i.valueAtIndexOrDefault(e.pointRadius,o,r.radius),a.backgroundColor=n.backgroundColor?n.backgroundColor:i.valueAtIndexOrDefault(e.pointBackgroundColor,o,r.backgroundColor),a.borderColor=n.borderColor?n.borderColor:i.valueAtIndexOrDefault(e.pointBorderColor,o,r.borderColor),a.borderWidth=n.borderWidth?n.borderWidth:i.valueAtIndexOrDefault(e.pointBorderWidth,o,r.borderWidth)}})}},{25:25,40:40,45:45}],21:[function(t,e,n){"use strict";t(25)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),e.exports=function(t){t.controllers.scatter=t.controllers.line}},{25:25}],22:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45);o._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:i.noop,onComplete:i.noop}}),e.exports=function(t){t.Animation=a.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,o){var a,i,r=this.animations;for(e.chart=t,o||(t.animating=!0),a=0,i=r.length;a1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);var o=Date.now();t.dropFrames+=(o-e)/t.frameDuration,t.animations.length>0&&t.requestAnimationFrame()},advance:function(t){for(var e,n,o=this.animations,a=0;a=e.numSteps?(i.callback(e.onAnimationComplete,[e],n),n.animating=!1,o.splice(a,1)):++a}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,n){"use strict";var o=t(25),a=t(45),i=t(28),r=t(48);e.exports=function(t){function e(t){var e=(t=t||{}).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=a.configMerge(o.global,o[t.type],t.options||{}),t}function n(t){return"top"===t||"bottom"===t}var s=t.plugins;t.types={},t.instances={},t.controllers={},a.extend(t.prototype,{construct:function(n,o){var i=this;o=e(o);var s=r.acquireContext(n,o),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;i.id=a.uid(),i.ctx=s,i.canvas=l,i.config=o,i.width=c,i.height=u,i.aspectRatio=u?c/u:null,i.options=o.options,i._bufferedRender=!1,i.chart=i,i.controller=i,t.instances[i.id]=i,Object.defineProperty(i,"data",{get:function(){return i.config.data},set:function(t){i.config.data=t}}),s&&l?(i.initialize(),i.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return s.notify(t,"beforeInit"),a.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),s.notify(t,"afterInit"),t},clear:function(){return a.canvas.clear(this),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,o=e.canvas,i=n.maintainAspectRatio&&e.aspectRatio||null,r=Math.max(0,Math.floor(a.getMaximumWidth(o))),l=Math.max(0,Math.floor(i?r/i:a.getMaximumHeight(o)));if((e.width!==r||e.height!==l)&&(o.width=e.width=r,o.height=e.height=l,o.style.width=r+"px",o.style.height=l+"px",a.retinaScale(e,n.devicePixelRatio),!t)){var u={width:r,height:l};s.notify(e,"resize",[u]),e.options.onResize&&e.options.onResize(e,u),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;a.each(e.xAxes,(function(t,e){t.id=t.id||"x-axis-"+e})),a.each(e.yAxes,(function(t,e){t.id=t.id||"y-axis-"+e})),n&&(n.id=n.id||"scale")},buildScales:function(){var e=this,o=e.options,i=e.scales={},r=[];o.scales&&(r=r.concat((o.scales.xAxes||[]).map((function(t){return{options:t,dtype:"category",dposition:"bottom"}})),(o.scales.yAxes||[]).map((function(t){return{options:t,dtype:"linear",dposition:"left"}})))),o.scale&&r.push({options:o.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),a.each(r,(function(o){var r=o.options,s=a.valueOrDefault(r.type,o.dtype),l=t.scaleService.getScaleConstructor(s);if(l){n(r.position)!==n(o.dposition)&&(r.position=o.dposition);var u=new l({id:r.id,options:r,ctx:e.ctx,chart:e});i[u.id]=u,u.mergeTicksOptions(),o.isDefault&&(e.scale=u)}})),t.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,n=[],o=[];return a.each(e.data.datasets,(function(a,i){var r=e.getDatasetMeta(i),s=a.type||e.config.type;if(r.type&&r.type!==s&&(e.destroyDatasetMeta(i),r=e.getDatasetMeta(i)),r.type=s,n.push(r.type),r.controller)r.controller.updateIndex(i);else{var l=t.controllers[r.type];if(void 0===l)throw new Error('"'+r.type+'" is not a chart type.');r.controller=new l(e,i),o.push(r.controller)}}),e),o},resetElements:function(){var t=this;a.each(t.data.datasets,(function(e,n){t.getDatasetMeta(n).controller.reset()}),t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e=this;if(t&&"object"==l(t)||(t={duration:t,lazy:arguments[1]}),function(t){var e=t.options;e.scale?t.scale.options=e.scale:e.scales&&e.scales.xAxes.concat(e.scales.yAxes).forEach((function(e){t.scales[e.id].options=e})),t.tooltip._options=e.tooltips}(e),!1!==s.notify(e,"beforeUpdate")){e.tooltip._data=e.data;var n=e.buildOrUpdateControllers();a.each(e.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.buildOrUpdateElements()}),e),e.updateLayout(),a.each(n,(function(t){t.reset()})),e.updateDatasets(),s.notify(e,"afterUpdate"),e._bufferedRender?e._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:e.render(t)}},updateLayout:function(){var e=this;!1!==s.notify(e,"beforeLayout")&&(t.layoutService.update(this,this.width,this.height),s.notify(e,"afterScaleUpdate"),s.notify(e,"afterLayout"))},updateDatasets:function(){var t=this;if(!1!==s.notify(t,"beforeDatasetsUpdate")){for(var e=0,n=t.data.datasets.length;e=0;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);s.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this,o=n.getDatasetMeta(t),a={meta:o,index:t,easingValue:e};!1!==s.notify(n,"beforeDatasetDraw",[a])&&(o.controller.draw(e),s.notify(n,"afterDatasetDraw",[a]))},getElementAtEvent:function(t){return i.modes.single(this,t)},getElementsAtEvent:function(t){return i.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return i.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var o=i.modes[e];return"function"==typeof o?o(this,t,n):[]},getDatasetAtEvent:function(t){return i.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,n=e.data.datasets[t];n._meta||(n._meta={});var o=n._meta[e.id];return o||(o=n._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),o},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e0||(a.forEach((function(e){delete t[e]})),delete t._chartjs)}}var a=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},o.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null===e.xAxisID&&(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,o=n.getMeta(),a=n.getDataset().data||[],i=o.data;for(t=0,e=a.length;to&&t.insertElements(o,a-o)},insertElements:function(t,e){for(var n=0;n=n[e].length&&n[e].push({}),!n[e][r].type||l.type&&l.type!==n[e][r].type?i.merge(n[e][r],[t.scaleService.getScaleDefaults(s),l]):i.merge(n[e][r],l)}else i._merger(e,n,o,a)}})},i.where=function(t,e){if(i.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return i.each(t,(function(t){e(t)&&n.push(t)})),n},i.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var o=0,a=t.length;o=0;o--){var a=t[o];if(e(a))return a}},i.inherits=function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},o=function(){this.constructor=n};return o.prototype=e.prototype,n.prototype=new o,n.extend=i.inherits,t&&i.extend(n.prototype,t),n.__super__=e.prototype,n},i.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},i.almostEquals=function(t,e,n){return Math.abs(t-e)t},i.max=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.max(t,e)}),Number.NEGATIVE_INFINITY)},i.min=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.min(t,e)}),Number.POSITIVE_INFINITY)},i.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},i.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},i.toRadians=function(t){return t*(Math.PI/180)},i.toDegrees=function(t){return t*(180/Math.PI)},i.getAngleFromPoint=function(t,e){var n=e.x-t.x,o=e.y-t.y,a=Math.sqrt(n*n+o*o),i=Math.atan2(o,n);return i<-.5*Math.PI&&(i+=2*Math.PI),{angle:i,distance:a}},i.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},i.aliasPixel=function(t){return t%2==0?0:.5},i.splineCurve=function(t,e,n,o){var a=t.skip?e:t,i=e,r=n.skip?e:n,s=Math.sqrt(Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2)),l=Math.sqrt(Math.pow(r.x-i.x,2)+Math.pow(r.y-i.y,2)),u=s/(s+l),c=l/(s+l),d=o*(u=isNaN(u)?0:u),h=o*(c=isNaN(c)?0:c);return{previous:{x:i.x-d*(r.x-a.x),y:i.y-d*(r.y-a.y)},next:{x:i.x+h*(r.x-a.x),y:i.y+h*(r.y-a.y)}}},i.EPSILON=Number.EPSILON||1e-14,i.splineCurveMonotone=function(t){var e,n,o,a,r,s,l,u,c,d=(t||[]).map((function(t){return{model:t._model,deltaK:0,mK:0}})),h=d.length;for(e=0;e0?d[e-1]:null,(a=e0?d[e-1]:null,a=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},i.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},i.niceNum=function(t,e){var n=Math.floor(i.log10(t)),o=t/Math.pow(10,n);return(e?o<1.5?1:o<3?2:o<7?5:10:o<=1?1:o<=2?2:o<=5?5:10)*Math.pow(10,n)},i.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},i.getRelativePosition=function(t,e){var n,o,a=t.originalEvent||t,r=t.currentTarget||t.srcElement,s=r.getBoundingClientRect(),l=a.touches;l&&l.length>0?(n=l[0].clientX,o=l[0].clientY):(n=a.clientX,o=a.clientY);var u=parseFloat(i.getStyle(r,"padding-left")),c=parseFloat(i.getStyle(r,"padding-top")),d=parseFloat(i.getStyle(r,"padding-right")),h=parseFloat(i.getStyle(r,"padding-bottom")),f=s.right-s.left-u-d,p=s.bottom-s.top-c-h;return{x:n=Math.round((n-s.left-u)/f*r.width/e.currentDevicePixelRatio),y:o=Math.round((o-s.top-c)/p*r.height/e.currentDevicePixelRatio)}},i.getConstraintWidth=function(t){return r(t,"max-width","clientWidth")},i.getConstraintHeight=function(t){return r(t,"max-height","clientHeight")},i.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var n=parseInt(i.getStyle(e,"padding-left"),10),o=parseInt(i.getStyle(e,"padding-right"),10),a=e.clientWidth-n-o,r=i.getConstraintWidth(t);return isNaN(r)?a:Math.min(a,r)},i.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var n=parseInt(i.getStyle(e,"padding-top"),10),o=parseInt(i.getStyle(e,"padding-bottom"),10),a=e.clientHeight-n-o,r=i.getConstraintHeight(t);return isNaN(r)?a:Math.min(a,r)},i.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},i.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;if(1!==n){var o=t.canvas,a=t.height,i=t.width;o.height=a*n,o.width=i*n,t.ctx.scale(n,n),o.style.height=a+"px",o.style.width=i+"px"}},i.fontString=function(t,e,n){return e+" "+t+"px "+n},i.longestText=function(t,e,n,o){var a=(o=o||{}).data=o.data||{},r=o.garbageCollect=o.garbageCollect||[];o.font!==e&&(a=o.data={},r=o.garbageCollect=[],o.font=e),t.font=e;var s=0;i.each(n,(function(e){null!=e&&!0!==i.isArray(e)?s=i.measureText(t,a,r,s,e):i.isArray(e)&&i.each(e,(function(e){null==e||i.isArray(e)||(s=i.measureText(t,a,r,s,e))}))}));var l=r.length/2;if(l>n.length){for(var u=0;uo&&(o=i),o},i.numberOfLabelLines=function(t){var e=1;return i.each(t,(function(t){i.isArray(t)&&t.length>e&&(e=t.length)})),e},i.color=o?function(t){return t instanceof CanvasGradient&&(t=a.global.defaultColor),o(t)}:function(t){return console.error("Color.js not found!"),t},i.getHoverColor=function(t){return t instanceof CanvasPattern?t:i.color(t).saturate(.5).darken(.1).rgbString()}}},{25:25,3:3,45:45}],28:[function(t,e,n){"use strict";function o(t,e){return t.native?{x:t.x,y:t.y}:u.getRelativePosition(t,e)}function a(t,e){var n,o,a,i,r;for(o=0,i=t.data.datasets.length;o0&&(u=t.getDatasetMeta(u[0]._datasetIndex).data),u},"x-axis":function(t,e){return l(t,e,{intersect:!0})},point:function(t,e){return i(t,o(e,t))},nearest:function(t,e,n){var a=o(e,t);n.axis=n.axis||"xy";var i=s(n.axis),l=r(t,a,n.intersect,i);return l.length>1&&l.sort((function(t,e){var n=t.getArea()-e.getArea();return 0===n&&(n=t._datasetIndex-e._datasetIndex),n})),l.slice(0,1)},x:function(t,e,n){var i=o(e,t),r=[],s=!1;return a(t,(function(t){t.inXRange(i.x)&&r.push(t),t.inRange(i.x,i.y)&&(s=!0)})),n.intersect&&!s&&(r=[]),r},y:function(t,e,n){var i=o(e,t),r=[],s=!1;return a(t,(function(t){t.inYRange(i.y)&&r.push(t),t.inRange(i.x,i.y)&&(s=!0)})),n.intersect&&!s&&(r=[]),r}}}},{45:45}],29:[function(t,e,n){"use strict";t(25)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.Chart=t,t}},{25:25}],30:[function(t,e,n){"use strict";var o=t(45);e.exports=function(t){function e(t,e){return o.where(t,(function(t){return t.position===e}))}function n(t,e){t.forEach((function(t,e){return t._tmpIndex_=e,t})),t.sort((function(t,n){var o=e?n:t,a=e?t:n;return o.weight===a.weight?o._tmpIndex_-a._tmpIndex_:o.weight-a.weight})),t.forEach((function(t){delete t._tmpIndex_}))}t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var o,a=["fullWidth","position","weight"],i=a.length,r=0;rh&&lt.maxHeight){l--;break}l++,d=u*c}t.labelRotation=l},afterCalculateTickRotation:function(){s.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){s.callback(this.options.beforeFit,[this])},fit:function(){var t=this,a=t.minSize={width:0,height:0},i=o(t._ticks),r=t.options,u=r.ticks,c=r.scaleLabel,d=r.gridLines,h=r.display,f=t.isHorizontal(),p=n(u),g=r.gridLines.tickMarkLength;if(a.width=f?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:h&&d.drawTicks?g:0,a.height=f?h&&d.drawTicks?g:0:t.maxHeight,c.display&&h){var v=l(c)+s.options.toPadding(c.padding).height;f?a.height+=v:a.width+=v}if(u.display&&h){var m=s.longestText(t.ctx,p.font,i,t.longestTextCache),b=s.numberOfLabelLines(i),x=.5*p.size,y=t.options.ticks.padding;if(f){t.longestLabelWidth=m;var k=s.toRadians(t.labelRotation),w=Math.cos(k),C=Math.sin(k)*m+p.size*b+x*(b-1)+x;a.height=Math.min(t.maxHeight,a.height+C+y),t.ctx.font=p.font;var S=e(t.ctx,i[0],p.font),M=e(t.ctx,i[i.length-1],p.font);0!==t.labelRotation?(t.paddingLeft="bottom"===r.position?w*S+3:w*x+3,t.paddingRight="bottom"===r.position?w*x+3:w*M+3):(t.paddingLeft=S/2+3,t.paddingRight=M/2+3)}else u.mirror?m=0:m+=y+x,a.width=Math.min(t.maxWidth,a.width+m),t.paddingTop=p.size/2,t.paddingBottom=p.size/2}t.handleMargins(),t.width=a.width,t.height=a.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){s.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(s.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:s.noop,getPixelForValue:s.noop,getValueForPixel:s.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var o=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(n?0:1),1),a=o*t+e.paddingLeft;return n&&(a+=o/2),e.left+Math.round(a)+(e.isFullWidth()?e.margins.left:0)}var i=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(i/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft;return e.left+Math.round(n)+(e.isFullWidth()?e.margins.left:0)}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,n=t.max;return t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0},_autoSkip:function(t){var e,n,o,a,i=this,r=i.isHorizontal(),l=i.options.ticks.minor,u=t.length,c=s.toRadians(i.labelRotation),d=Math.cos(c),h=i.longestLabelWidth*d,f=[];for(l.maxTicksLimit&&(a=l.maxTicksLimit),r&&(e=!1,(h+l.autoSkipPadding)*u>i.width-(i.paddingLeft+i.paddingRight)&&(e=1+Math.floor((h+l.autoSkipPadding)*u/(i.width-(i.paddingLeft+i.paddingRight)))),a&&u>a&&(e=Math.max(e,Math.floor(u/a)))),n=0;n1&&n%e>0||n%e==0&&n+e>=u)&&n!==u-1||s.isNullOrUndef(o.label))&&delete o.label,f.push(o);return f},draw:function(t){var e=this,o=e.options;if(o.display){var r=e.ctx,u=i.global,c=o.ticks.minor,d=o.ticks.major||c,h=o.gridLines,f=o.scaleLabel,p=0!==e.labelRotation,g=e.isHorizontal(),v=c.autoSkip?e._autoSkip(e.getTicks()):e.getTicks(),m=s.valueOrDefault(c.fontColor,u.defaultFontColor),b=n(c),x=s.valueOrDefault(d.fontColor,u.defaultFontColor),y=n(d),k=h.drawTicks?h.tickMarkLength:0,w=s.valueOrDefault(f.fontColor,u.defaultFontColor),C=n(f),S=s.options.toPadding(f.padding),M=s.toRadians(e.labelRotation),_=[],I="right"===o.position?e.left:e.right-k,D="right"===o.position?e.left+k:e.right,P="bottom"===o.position?e.top:e.bottom-k,A="bottom"===o.position?e.top+k:e.bottom;if(s.each(v,(function(n,i){if(void 0!==n.label){var r,l,d,f,m=n.label;i===e.zeroLineIndex&&o.offset===h.offsetGridLines?(r=h.zeroLineWidth,l=h.zeroLineColor,d=h.zeroLineBorderDash,f=h.zeroLineBorderDashOffset):(r=s.valueAtIndexOrDefault(h.lineWidth,i),l=s.valueAtIndexOrDefault(h.color,i),d=s.valueOrDefault(h.borderDash,u.borderDash),f=s.valueOrDefault(h.borderDashOffset,u.borderDashOffset));var b,x,y,w,C,S,T,F,L,$,O="middle",z="middle",R=c.padding;if(g){var j=k+R;"bottom"===o.position?(z=p?"middle":"top",O=p?"right":"center",$=e.top+j):(z=p?"middle":"bottom",O=p?"left":"center",$=e.bottom-j);var B=a(e,i,h.offsetGridLines&&v.length>1);B1);E0)n=t.stepSize;else{var i=o.niceNum(e.max-e.min,!1);n=o.niceNum(i/(t.maxTicks-1),!0)}var r=Math.floor(e.min/n)*n,s=Math.ceil(e.max/n)*n;t.min&&t.max&&t.stepSize&&o.almostWhole((t.max-t.min)/t.stepSize,n/1e3)&&(r=t.min,s=t.max);var l=(s-r)/n;l=o.almostEquals(l,Math.round(l),n/1e3)?Math.round(l):Math.ceil(l),a.push(void 0!==t.min?t.min:r);for(var u=1;u3?n[2]-n[1]:n[1]-n[0];Math.abs(a)>1&&t!==Math.floor(t)&&(a=t-Math.floor(t));var i=o.log10(Math.abs(a)),r="";if(0!==t){var s=-1*Math.floor(i);s=Math.max(Math.min(s,20),0),r=t.toFixed(s)}else r="0";return r},logarithmic:function(t,e,n){var a=t/Math.pow(10,Math.floor(o.log10(t)));return 0===t?"0":1===a||2===a||5===a||0===e||e===n.length-1?t.toExponential():""}}}},{45:45}],35:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45);o._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:i.noop,title:function(t,e){var n="",o=e.labels,a=o?o.length:0;if(t.length>0){var i=t[0];i.xLabel?n=i.xLabel:a>0&&i.indexo.height-e.height&&(r="bottom");var s,l,u,c,d,h=(a.left+a.right)/2,f=(a.top+a.bottom)/2;"center"===r?(s=function(t){return t<=h},l=function(t){return t>h}):(s=function(t){return t<=e.width/2},l=function(t){return t>=o.width-e.width/2}),u=function(t){return t+e.width>o.width},c=function(t){return t-e.width<0},d=function(t){return t<=f?"top":"bottom"},s(n.x)?(i="left",u(n.x)&&(i="center",r=d(n.y))):l(n.x)&&(i="right",c(n.x)&&(i="center",r=d(n.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:i,yAlign:p.yAlign?p.yAlign:r}}(this,g))}else c.opacity=0;return c.xAlign=f.xAlign,c.yAlign=f.yAlign,c.x=p.x,c.y=p.y,c.width=g.width,c.height=g.height,c.caretX=v.x,c.caretY=v.y,a._model=c,e&&l.custom&&l.custom.call(a,c),a},drawCaret:function(t,e){var n=this._chart.ctx,o=this._view,a=this.getCaretPosition(t,e,o);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)},getCaretPosition:function(t,e,n){var o,a,i,r,s,l,u=n.caretSize,c=n.cornerRadius,d=n.xAlign,h=n.yAlign,f=t.x,p=t.y,g=e.width,v=e.height;if("center"===h)s=p+v/2,"left"===d?(a=(o=f)-u,i=o,r=s+u,l=s-u):(a=(o=f+g)+u,i=o,r=s-u,l=s+u);else if("left"===d?(o=(a=f+c+u)-u,i=a+u):"right"===d?(o=(a=f+g-c-u)-u,i=a+u):(o=(a=f+g/2)-u,i=a+u),"top"===h)s=(r=p)-u,l=r;else{s=(r=p+v)+u,l=r;var m=i;i=o,o=m}return{x1:o,x2:a,x3:i,y1:r,y2:s,y3:l}},drawTitle:function(t,n,o,a){var r=n.title;if(r.length){o.textAlign=n._titleAlign,o.textBaseline="top";var s,l,u=n.titleFontSize,c=n.titleSpacing;for(o.fillStyle=e(n.titleFontColor,a),o.font=i.fontString(u,n._titleFontStyle,n._titleFontFamily),s=0,l=r.length;s0&&o.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},o={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity,i=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&i&&(this.drawBackground(o,e,t,n,a),o.x+=e.xPadding,o.y+=e.yPadding,this.drawTitle(o,e,t,a),this.drawBody(o,e,t,a),this.drawFooter(o,e,t,a))}},handleEvent:function(t){var e=this,n=e._options,o=!1;if(e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:e._active=e._chart.getElementsAtEventForMode(t,n.mode,n),!(o=!i.arrayEquals(e._active,e._lastActive)))return!1;if(e._lastActive=e._active,n.enabled||n.custom){e._eventPosition={x:t.x,y:t.y};var a=e._model;e.update(!0),e.pivot(),o|=a.x!==e._model.x||a.y!==e._model.y}return o}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,n,o=0,a=0,i=0;for(e=0,n=t.length;el;)a-=2*Math.PI;for(;a=s&&a<=l,c=r>=n.innerRadius&&r<=n.outerRadius;return u&&c}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,o=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,o),t.arc(e.x,e.y,e.innerRadius,o,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45),r=o.global;o._set("global",{elements:{line:{tension:.4,backgroundColor:r.defaultColor,borderWidth:3,borderColor:r.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var t,e,n,o,a=this,s=a._view,l=a._chart.ctx,u=s.spanGaps,c=a._children.slice(),d=r.elements.line,h=-1;for(a._loop&&c.length&&c.push(c[0]),l.save(),l.lineCap=s.borderCapStyle||d.borderCapStyle,l.setLineDash&&l.setLineDash(s.borderDash||d.borderDash),l.lineDashOffset=s.borderDashOffset||d.borderDashOffset,l.lineJoin=s.borderJoinStyle||d.borderJoinStyle,l.lineWidth=s.borderWidth||d.borderWidth,l.strokeStyle=s.borderColor||r.defaultColor,l.beginPath(),h=-1,t=0;te?1:-1,r=1,s=u.borderSkipped||"left"):(e=u.x-u.width/2,n=u.x+u.width/2,o=u.y,i=1,r=(a=u.base)>o?1:-1,s=u.borderSkipped||"bottom"),c){var d=Math.min(Math.abs(e-n),Math.abs(o-a)),h=(c=c>d?d:c)/2,f=e+("left"!==s?h*i:0),p=n+("right"!==s?-h*i:0),g=o+("top"!==s?h*r:0),v=a+("bottom"!==s?-h*r:0);f!==p&&(o=g,a=v),g!==v&&(e=f,n=p)}l.beginPath(),l.fillStyle=u.backgroundColor,l.strokeStyle=u.borderColor,l.lineWidth=c;var m=[[e,a],[e,o],[n,o],[n,a]],b=["bottom","left","top","right"].indexOf(s,0);-1===b&&(b=0);var x=t(0);l.moveTo(x[0],x[1]);for(var y=1;y<4;y++)x=t(y),l.lineTo(x[0],x[1]);l.fill(),c&&l.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n=!1;if(this._view){var o=a(this);n=t>=o.left&&t<=o.right&&e>=o.top&&e<=o.bottom}return n},inLabelRange:function(t,e){var n=this;if(!n._view)return!1;var i=a(n);return o(n)?t>=i.left&&t<=i.right:e>=i.top&&e<=i.bottom},inXRange:function(t){var e=a(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=a(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,n=this._view;return o(this)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,n){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,n){"use strict";var o=t(42);n=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,o,a,i){if(i){var r=Math.min(i,o/2),s=Math.min(i,a/2);t.moveTo(e+r,n),t.lineTo(e+o-r,n),t.quadraticCurveTo(e+o,n,e+o,n+s),t.lineTo(e+o,n+a-s),t.quadraticCurveTo(e+o,n+a,e+o-r,n+a),t.lineTo(e+r,n+a),t.quadraticCurveTo(e,n+a,e,n+a-s),t.lineTo(e,n+s),t.quadraticCurveTo(e,n,e+r,n)}else t.rect(e,n,o,a)},drawPoint:function(t,e,n,o,a){var i,r,s,u,c,d;if("object"!=l(e)||"[object HTMLImageElement]"!==(i=e.toString())&&"[object HTMLCanvasElement]"!==i){if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(o,a,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),c=(r=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(o-r/2,a+c/3),t.lineTo(o+r/2,a+c/3),t.lineTo(o,a-2*c/3),t.closePath(),t.fill();break;case"rect":d=1/Math.SQRT2*n,t.beginPath(),t.fillRect(o-d,a-d,2*d,2*d),t.strokeRect(o-d,a-d,2*d,2*d);break;case"rectRounded":var h=n/Math.SQRT2,f=o-h,p=a-h,g=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,f,p,g,g,n/2),t.closePath(),t.fill();break;case"rectRot":d=1/Math.SQRT2*n,t.beginPath(),t.moveTo(o-d,a),t.lineTo(o,a+d),t.lineTo(o+d,a),t.lineTo(o,a-d),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(o,a+n),t.lineTo(o,a-n),t.moveTo(o-n,a),t.lineTo(o+n,a),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,t.moveTo(o-s,a-u),t.lineTo(o+s,a+u),t.moveTo(o-s,a+u),t.lineTo(o+s,a-u),t.closePath();break;case"star":t.beginPath(),t.moveTo(o,a+n),t.lineTo(o,a-n),t.moveTo(o-n,a),t.lineTo(o+n,a),s=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,t.moveTo(o-s,a-u),t.lineTo(o+s,a+u),t.moveTo(o-s,a+u),t.lineTo(o+s,a-u),t.closePath();break;case"line":t.beginPath(),t.moveTo(o-n,a),t.lineTo(o+n,a),t.closePath();break;case"dash":t.beginPath(),t.moveTo(o,a),t.lineTo(o+n,a),t.closePath()}t.stroke()}}else t.drawImage(e,o-e.width/2,a-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,o){if(n.steppedLine)return"after"===n.steppedLine&&!o||"after"!==n.steppedLine&&o?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y);n.tension?t.bezierCurveTo(o?e.controlPointPreviousX:e.controlPointNextX,o?e.controlPointPreviousY:e.controlPointNextY,o?n.controlPointNextX:n.controlPointPreviousX,o?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}},o.clear=n.clear,o.drawRoundedRectangle=function(t){t.beginPath(),n.roundedRect.apply(n,arguments),t.closePath()}},{42:42}],42:[function(t,e,n){"use strict";var o={noop:function(){},uid:function(){var t=0;return function(){return t++}}(),isNullOrUndef:function(t){return null==t},isArray:Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return o.valueOrDefault(o.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,a){var i,r,s;if(o.isArray(t))if(r=t.length,a)for(i=r-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;i=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,o=1;return 0===t?0:1===t?1:(n||(n=.3),o<1?(o=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/o),-o*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,o=1;return 0===t?0:1===t?1:(n||(n=.3),o<1?(o=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/o),o*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,o=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),o<1?(o=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/o),t<1?o*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:o*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-a.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*a.easeInBounce(2*t):.5*a.easeOutBounce(2*t-1)+.5}};e.exports={effects:a},o.easingEffects=a},{42:42}],44:[function(t,e,n){"use strict";var o=t(42);e.exports={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,a,i;return o.isObject(t)?(e=+t.top||0,n=+t.right||0,a=+t.bottom||0,i=+t.left||0):e=n=a=i=+t||0,{top:e,right:n,bottom:a,left:i,height:e+a,width:i+n}},resolve:function(t,e,n){var a,i,r;for(a=0,i=t.length;a
';var i=e.childNodes[0],r=e.childNodes[1];e._reset=function(){i.scrollLeft=1e6,i.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6};var s=function(){e._reset(),t()};return a(i,"scroll",s.bind(i,"expand")),a(r,"scroll",s.bind(r,"shrink")),e}(function(t,e){var n=!1,o=[];return function(){o=Array.prototype.slice.call(arguments),e=e||this,n||(n=!0,u.requestAnimFrame.call(window,(function(){n=!1,t.apply(e,o)})))}}((function(){if(o.resizer)return e(r("resize",n))})));!function(t,e){var n=(t[c]||(t[c]={})).renderProxy=function(t){t.animationName===f&&e()};u.each(p,(function(e){a(t,e,n)})),t.classList.add(h)}(t,(function(){if(o.resizer){var e=t.parentNode;e&&e!==i.parentNode&&e.insertBefore(i,e.firstChild),i._reset()}}))}function l(t){var e=t[c]||{},n=e.resizer;delete e.resizer,function(t){var e=t[c]||{},n=e.renderProxy;n&&(u.each(p,(function(e){i(t,e,n)})),delete e.renderProxy),t.classList.remove(h)}(t),n&&n.parentNode&&n.parentNode.removeChild(n)}var u=t(45),c="$chartjs",d="chartjs-",h=d+"render-monitor",f=d+"render-animation",p=["animationstart","webkitAnimationStart"],g={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},v=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t="from{opacity:0.99}to{opacity:1}";!function(t,e){var n=t._style||document.createElement("style");t._style||(t._style=n,e="/* Chart.js */\n"+e,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(e))}(this,"@-webkit-keyframes "+f+"{"+t+"}@keyframes "+f+"{"+t+"}."+h+"{-webkit-animation:"+f+" 0.001s;animation:"+f+" 0.001s;}")},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){var n=t.style,a=t.getAttribute("height"),i=t.getAttribute("width");if(t[c]={initial:{height:a,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===i||""===i){var r=o(t,"width");void 0!==r&&(t.width=r)}if(null===a||""===a)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var s=o(t,"height");void 0!==r&&(t.height=s)}}(t,e),n):null},releaseContext:function(t){var e=t.canvas;if(e[c]){var n=e[c].initial;["height","width"].forEach((function(t){var o=n[t];u.isNullOrUndef(o)?e.removeAttribute(t):e.setAttribute(t,o)})),u.each(n.style||{},(function(t,n){e.style[n]=t})),e.width=e.width,delete e[c]}},addEventListener:function(t,e,n){var o=t.canvas;if("resize"!==e){var i=n[c]||(n[c]={});a(o,e,(i.proxies||(i.proxies={}))[t.id+"_"+e]=function(e){n(function(t,e){var n=g[t.type]||t.type,o=u.getRelativePosition(t,e);return r(n,e,o.x,o.y,t)}(e,t))})}else s(o,n,t)},removeEventListener:function(t,e,n){var o=t.canvas;if("resize"!==e){var a=((n[c]||{}).proxies||{})[t.id+"_"+e];a&&i(o,e,a)}else l(o)}},u.addEvent=a,u.removeEvent=i},{45:45}],48:[function(t,e,n){"use strict";var o=t(45),a=t(46),i=t(47),r=i._enabled?i:a;e.exports=o.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},r)},{45:45,46:46,47:47}],49:[function(t,e,n){"use strict";var o=t(25),a=t(40),i=t(45);o._set("global",{plugins:{filler:{propagate:!0}}}),e.exports=function(){function t(t,e,n){var o,a=t._model||{},i=a.fill;if(void 0===i&&(i=!!a.backgroundColor),!1===i||null===i)return!1;if(!0===i)return"origin";if(o=parseFloat(i,10),isFinite(o)&&Math.floor(o)===o)return"-"!==i[0]&&"+"!==i[0]||(o=e+o),!(o===e||o<0||o>=n)&&o;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}function e(t){var e,n=t.el._model||{},o=t.el._scale||{},a=t.fill,i=null;if(isFinite(a))return null;if("start"===a?i=void 0===n.scaleBottom?o.bottom:n.scaleBottom:"end"===a?i=void 0===n.scaleTop?o.top:n.scaleTop:void 0!==n.scaleZero?i=n.scaleZero:o.getBasePosition?i=o.getBasePosition():o.getBasePixel&&(i=o.getBasePixel()),null!=i){if(void 0!==i.x&&void 0!==i.y)return i;if("number"==typeof i&&isFinite(i))return{x:(e=o.isHorizontal())?i:null,y:e?null:i}}return null}function n(t,e,n){var o,a=t[e].fill,i=[e];if(!n)return a;for(;!1!==a&&-1===i.indexOf(a);){if(!isFinite(a))return a;if(!(o=t[a]))return!1;if(o.visible)return a;i.push(a),a=o.fill}return!1}function r(t){var e=t.fill,n="dataset";return!1===e?null:(isFinite(e)||(n="boundary"),c[n](t))}function s(t){return t&&!t.skip}function l(t,e,n,o,a){var r;if(o&&a){for(t.moveTo(e[0].x,e[0].y),r=1;r0;--r)i.canvas.lineTo(t,n[r],n[r-1],!0)}}function u(t,e,n,o,a,i){var r,u,c,d,h,f,p,g=e.length,v=o.spanGaps,m=[],b=[],x=0,y=0;for(t.beginPath(),r=0,u=g+!!i;r');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("");return e.push(""),e.join("")}}),e.exports=function(t){function e(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function n(e,n){var o=new t.Legend({ctx:e.ctx,options:n,chart:e});r.configure(e,o,n),r.addBox(e,o),e.legend=o}var r=t.layoutService,s=i.noop;return t.Legend=a.extend({initialize:function(t){i.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:s,update:function(t,e,n){var o=this;return o.beforeUpdate(),o.maxWidth=t,o.maxHeight=e,o.margins=n,o.beforeSetDimensions(),o.setDimensions(),o.afterSetDimensions(),o.beforeBuildLabels(),o.buildLabels(),o.afterBuildLabels(),o.beforeFit(),o.fit(),o.afterFit(),o.afterUpdate(),o.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function(){var t=this,e=t.options.labels||{},n=i.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter((function(n){return e.filter(n,t.chart.data)}))),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:s,beforeFit:s,fit:function(){var t=this,n=t.options,a=n.labels,r=n.display,s=t.ctx,l=o.global,u=i.valueOrDefault,c=u(a.fontSize,l.defaultFontSize),d=u(a.fontStyle,l.defaultFontStyle),h=u(a.fontFamily,l.defaultFontFamily),f=i.fontString(c,d,h),p=t.legendHitBoxes=[],g=t.minSize,v=t.isHorizontal();if(v?(g.width=t.maxWidth,g.height=r?10:0):(g.width=r?10:0,g.height=t.maxHeight),r)if(s.font=f,v){var m=t.lineWidths=[0],b=t.legendItems.length?c+a.padding:0;s.textAlign="left",s.textBaseline="top",i.each(t.legendItems,(function(n,o){var i=e(a,c)+c/2+s.measureText(n.text).width;m[m.length-1]+i+a.padding>=t.width&&(b+=c+a.padding,m[m.length]=t.left),p[o]={left:0,top:0,width:i,height:c},m[m.length-1]+=i+a.padding})),g.height+=b}else{var x=a.padding,y=t.columnWidths=[],k=a.padding,w=0,C=0,S=c+x;i.each(t.legendItems,(function(t,n){var o=e(a,c)+c/2+s.measureText(t.text).width;C+S>g.height&&(k+=w+a.padding,y.push(w),w=0,C=0),w=Math.max(w,o),C+=S,p[n]={left:0,top:0,width:o,height:c}})),k+=w,y.push(w),g.width+=k}t.width=g.width,t.height=g.height},afterFit:s,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,n=t.options,a=n.labels,r=o.global,s=r.elements.line,l=t.width,u=t.lineWidths;if(n.display){var c,d=t.ctx,h=i.valueOrDefault,f=h(a.fontColor,r.defaultFontColor),p=h(a.fontSize,r.defaultFontSize),g=h(a.fontStyle,r.defaultFontStyle),v=h(a.fontFamily,r.defaultFontFamily),m=i.fontString(p,g,v);d.textAlign="left",d.textBaseline="middle",d.lineWidth=.5,d.strokeStyle=f,d.fillStyle=f,d.font=m;var b=e(a,p),x=t.legendHitBoxes,y=function(t,e,o){if(!(isNaN(b)||b<=0)){d.save(),d.fillStyle=h(o.fillStyle,r.defaultColor),d.lineCap=h(o.lineCap,s.borderCapStyle),d.lineDashOffset=h(o.lineDashOffset,s.borderDashOffset),d.lineJoin=h(o.lineJoin,s.borderJoinStyle),d.lineWidth=h(o.lineWidth,s.borderWidth),d.strokeStyle=h(o.strokeStyle,r.defaultColor);var a=0===h(o.lineWidth,s.borderWidth);if(d.setLineDash&&d.setLineDash(h(o.lineDash,s.borderDash)),n.labels&&n.labels.usePointStyle){var l=p*Math.SQRT2/2,u=l/Math.SQRT2,c=t+u,f=e+u;i.canvas.drawPoint(d,o.pointStyle,l,c,f)}else a||d.strokeRect(t,e,b,p),d.fillRect(t,e,b,p);d.restore()}},k=t.isHorizontal();c=k?{x:t.left+(l-u[0])/2,y:t.top+a.padding,line:0}:{x:t.left+a.padding,y:t.top+a.padding,line:0};var w=p+a.padding;i.each(t.legendItems,(function(e,n){var o=d.measureText(e.text).width,i=b+p/2+o,r=c.x,s=c.y;k?r+i>=l&&(s=c.y+=w,c.line++,r=c.x=t.left+(l-u[c.line])/2):s+w>t.bottom&&(r=c.x=r+t.columnWidths[c.line]+a.padding,s=c.y=t.top+a.padding,c.line++),y(r,s,e),x[n].left=r,x[n].top=s,function(t,e,n,o){var a=p/2,i=b+a+t,r=e+a;d.fillText(n.text,i,r),n.hidden&&(d.beginPath(),d.lineWidth=2,d.moveTo(i,r),d.lineTo(i+o,r),d.stroke())}(r,s,e,o),k?c.x+=i+a.padding:c.y+=w}))}},handleEvent:function(t){var e=this,n=e.options,o="mouseup"===t.type?"click":t.type,a=!1;if("mousemove"===o){if(!n.onHover)return}else{if("click"!==o)return;if(!n.onClick)return}var i=t.x,r=t.y;if(i>=e.left&&i<=e.right&&r>=e.top&&r<=e.bottom)for(var s=e.legendHitBoxes,l=0;l=u.left&&i<=u.left+u.width&&r>=u.top&&r<=u.top+u.height){if("click"===o){n.onClick.call(e,t.native,e.legendItems[l]),a=!0;break}if("mousemove"===o){n.onHover.call(e,t.native,e.legendItems[l]),a=!0;break}}}return a}}),{id:"legend",beforeInit:function(t){var e=t.options.legend;e&&n(t,e)},beforeUpdate:function(t){var e=t.options.legend,a=t.legend;e?(i.mergeIf(e,o.global.legend),a?(r.configure(t,a,e),a.options=e):n(t,e)):a&&(r.removeBox(t,a),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}}}},{25:25,26:26,45:45}],51:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45);o._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),e.exports=function(t){function e(e,o){var a=new t.Title({ctx:e.ctx,options:o,chart:e});n.configure(e,a,o),n.addBox(e,a),e.titleBlock=a}var n=t.layoutService,r=i.noop;return t.Title=a.extend({initialize:function(t){i.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:r,update:function(t,e,n){var o=this;return o.beforeUpdate(),o.maxWidth=t,o.maxHeight=e,o.margins=n,o.beforeSetDimensions(),o.setDimensions(),o.afterSetDimensions(),o.beforeBuildLabels(),o.buildLabels(),o.afterBuildLabels(),o.beforeFit(),o.fit(),o.afterFit(),o.afterUpdate(),o.minSize},afterUpdate:r,beforeSetDimensions:r,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:r,beforeBuildLabels:r,buildLabels:r,afterBuildLabels:r,beforeFit:r,fit:function(){var t=this,e=i.valueOrDefault,n=t.options,a=n.display,r=e(n.fontSize,o.global.defaultFontSize),s=t.minSize,l=i.isArray(n.text)?n.text.length:1,u=i.options.toLineHeight(n.lineHeight,r),c=a?l*u+2*n.padding:0;t.isHorizontal()?(s.width=t.maxWidth,s.height=c):(s.width=c,s.height=t.maxHeight),t.width=s.width,t.height=s.height},afterFit:r,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=i.valueOrDefault,a=t.options,r=o.global;if(a.display){var s,l,u,c=n(a.fontSize,r.defaultFontSize),d=n(a.fontStyle,r.defaultFontStyle),h=n(a.fontFamily,r.defaultFontFamily),f=i.fontString(c,d,h),p=i.options.toLineHeight(a.lineHeight,c),g=p/2+a.padding,v=0,m=t.top,b=t.left,x=t.bottom,y=t.right;e.fillStyle=n(a.fontColor,r.defaultFontColor),e.font=f,t.isHorizontal()?(l=b+(y-b)/2,u=m+g,s=y-b):(l="left"===a.position?b+g:y-g,u=m+(x-m)/2,s=x-m,v=Math.PI*("left"===a.position?-.5:.5)),e.save(),e.translate(l,u),e.rotate(v),e.textAlign="center",e.textBaseline="middle";var k=a.text;if(i.isArray(k))for(var w=0,C=0;Ce.max)&&(e.max=o))}))}));e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this,n=e.options.ticks;if(e.isHorizontal())t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.width/50));else{var i=a.valueOrDefault(n.fontSize,o.global.defaultFontSize);t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.height/(2*i)))}return t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,n=this,o=n.start,a=+n.getRightValue(t),i=n.end-o;return n.isHorizontal()?(e=n.left+n.width/i*(a-o),Math.round(e)):(e=n.bottom-n.height/i*(a-o),Math.round(e))},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),o=n?e.width:e.height,a=(n?t-e.left:e.bottom-t)/o;return e.start+(e.end-e.start)*a},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,e)}},{25:25,34:34,45:45}],54:[function(t,e,n){"use strict";var o=t(45),a=t(34);e.exports=function(t){var e=o.noop;t.LinearScaleBase=t.Scale.extend({getRightValue:function(e){return"string"==typeof e?+e:t.Scale.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=o.sign(t.min),a=o.sign(t.max);n<0&&a<0?t.max=0:n>0&&a>0&&(t.min=0)}var i=void 0!==e.min||void 0!==e.suggestedMin,r=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),i!==r&&t.min>=t.max&&(i?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,stepSize:o.valueOrDefault(e.fixedStepSize,e.stepSize)},r=t.ticks=a.generators.linear(i,t);t.handleDirectionalChanges(),t.max=o.max(r),t.min=o.min(r),e.reverse?(r.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{34:34,45:45}],55:[function(t,e,n){"use strict";var o=t(45),a=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:a.formatters.logarithmic}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return l?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,a=n.ticks,i=e.chart,r=i.data.datasets,s=o.valueOrDefault,l=e.isHorizontal();e.min=null,e.max=null,e.minNotZero=null;var u=n.stacked;if(void 0===u&&o.each(r,(function(e,n){if(!u){var o=i.getDatasetMeta(n);i.isDatasetVisible(n)&&t(o)&&void 0!==o.stack&&(u=!0)}})),n.stacked||u){var c={};o.each(r,(function(a,r){var s=i.getDatasetMeta(r),l=[s.type,void 0===n.stacked&&void 0===s.stack?r:"",s.stack].join(".");i.isDatasetVisible(r)&&t(s)&&(void 0===c[l]&&(c[l]=[]),o.each(a.data,(function(t,o){var a=c[l],i=+e.getRightValue(t);isNaN(i)||s.data[o].hidden||(a[o]=a[o]||0,n.relativePoints?a[o]=100:a[o]+=i)})))})),o.each(c,(function(t){var n=o.min(t),a=o.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?a:Math.max(e.max,a)}))}else o.each(r,(function(n,a){var r=i.getDatasetMeta(a);i.isDatasetVisible(a)&&t(r)&&o.each(n.data,(function(t,n){var o=+e.getRightValue(t);isNaN(o)||r.data[n].hidden||((null===e.min||oe.max)&&(e.max=o),0!==o&&(null===e.minNotZero||oa?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function l(t){return 0===t||180===t?"center":t<180?"left":"right"}function u(t,e,n,o){if(a.isArray(e))for(var i=n.y,r=1.5*o,s=0;s270||t<90)&&(n.y-=e.h)}function d(t){var o=t.ctx,i=a.valueOrDefault,r=t.options,s=r.angleLines,d=r.pointLabels;o.lineWidth=s.lineWidth,o.strokeStyle=s.color;var h=t.getDistanceFromCenterForValue(r.ticks.reverse?t.min:t.max),f=n(t);o.textBaseline="top";for(var g=e(t)-1;g>=0;g--){if(s.display){var v=t.getPointPosition(g,h);o.beginPath(),o.moveTo(t.xCenter,t.yCenter),o.lineTo(v.x,v.y),o.stroke(),o.closePath()}if(d.display){var m=t.getPointPosition(g,h+5),b=i(d.fontColor,p.defaultFontColor);o.font=f.font,o.fillStyle=b;var x=t.getIndexAngle(g),y=a.toDegrees(x);o.textAlign=l(y),c(y,t._pointLabelSizes[g],m),u(o,t.pointLabels[g]||"",m,f.size)}}}function h(t,n,o,i){var r=t.ctx;if(r.strokeStyle=a.valueAtIndexOrDefault(n.color,i-1),r.lineWidth=a.valueAtIndexOrDefault(n.lineWidth,i-1),t.options.gridLines.circular)r.beginPath(),r.arc(t.xCenter,t.yCenter,o,0,2*Math.PI),r.closePath(),r.stroke();else{var s=e(t);if(0===s)return;r.beginPath();var l=t.getPointPosition(0,o);r.moveTo(l.x,l.y);for(var u=1;ud.r&&(d.r=v.end,h.r=p),m.startd.b&&(d.b=m.end,h.b=p)}t.setReductions(c,d,h)}(this):function(t){var e=Math.min(t.height/2,t.width/2);t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0)}(this)},setReductions:function(t,e,n){var o=this,a=e.l/Math.sin(n.l),i=Math.max(e.r-o.width,0)/Math.sin(n.r),r=-e.t/Math.cos(n.t),s=-Math.max(e.b-o.height,0)/Math.cos(n.b);a=f(a),i=f(i),r=f(r),s=f(s),o.drawingArea=Math.min(Math.round(t-(a+i)/2),Math.round(t-(r+s)/2)),o.setCenterPoint(a,i,r,s)},setCenterPoint:function(t,e,n,o){var a=this,i=a.width-e-a.drawingArea,r=t+a.drawingArea,s=n+a.drawingArea,l=a.height-o-a.drawingArea;a.xCenter=Math.round((r+i)/2+a.left),a.yCenter=Math.round((s+l)/2+a.top)},getIndexAngle:function(t){return t*(2*Math.PI/e(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var n=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*n:(t-e.min)*n},getPointPosition:function(t,e){var n=this,o=n.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(o)*e)+n.xCenter,y:Math.round(Math.sin(o)*e)+n.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this,e=t.min,n=t.max;return t.getPointPositionForValue(0,t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0)},draw:function(){var t=this,e=t.options,n=e.gridLines,o=e.ticks,i=a.valueOrDefault;if(e.display){var r=t.ctx,s=this.getIndexAngle(0),l=i(o.fontSize,p.defaultFontSize),u=i(o.fontStyle,p.defaultFontStyle),c=i(o.fontFamily,p.defaultFontFamily),f=a.fontString(l,u,c);a.each(t.ticks,(function(e,a){if(a>0||o.reverse){var u=t.getDistanceFromCenterForValue(t.ticksAsNumbers[a]);if(n.display&&0!==a&&h(t,n,u,a),o.display){var c=i(o.fontColor,p.defaultFontColor);if(r.font=f,r.save(),r.translate(t.xCenter,t.yCenter),r.rotate(s),o.showLabelBackdrop){var d=r.measureText(e).width;r.fillStyle=o.backdropColor,r.fillRect(-d/2-o.backdropPaddingX,-u-l/2-o.backdropPaddingY,d+2*o.backdropPaddingX,l+2*o.backdropPaddingY)}r.textAlign="center",r.textBaseline="middle",r.fillStyle=c,r.fillText(e,0,-u),r.restore()}}})),(e.angleLines.display||e.pointLabels.display)&&d(t)}}});t.scaleService.registerScaleType("radialLinear",v,g)}},{25:25,34:34,45:45}],57:[function(t,e,n){"use strict";function o(t,e){return t-e}function a(t){var e,n,o,a={},i=[];for(e=0,n=t.length;e=0&&r<=s;){if(a=t[(o=r+s>>1)-1]||null,i=t[o],!a)return{lo:null,hi:i};if(i[e]n))return{lo:a,hi:i};s=o-1}}return{lo:i,hi:null}}(t,e,n),i=a.lo?a.hi?a.lo:t[t.length-2]:t[0],r=a.lo?a.hi?a.hi:t[t.length-1]:t[1],s=r[e]-i[e],l=s?(n-i[e])/s:0,u=(r[o]-i[o])*l;return i[o]+u}function r(t,e){var n=e.parser,o=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof o?h(t,o):(t instanceof h||(t=h(t)),t.isValid()?t:"function"==typeof o?o(t):t)}function s(t,e){if(p.isNullOrUndef(t))return null;var n=e.options.time,o=r(e.getRightValue(t),n);return o.isValid()?(n.round&&o.startOf(n.round),o.valueOf()):null}function l(t,e,n,o){var a,i,r,s=b.length;for(a=b.indexOf(t);a1?e[1]:o,s=e[0],l=(i(t,"time",r,"pos")-i(t,"time",s,"pos"))/2),a.time.max||(r=e[e.length-1],s=e.length>1?e[e.length-2]:n,u=(i(t,"time",r,"pos")-i(t,"time",s,"pos"))/2)),{left:l,right:u}}function d(t,e){var n,o,a,i,r=[];for(n=0,o=t.length;n=a&&n<=i&&y.push(n);return o.min=a,o.max=i,o._unit=g,o._majorUnit=v,o._minorFormat=f[g],o._majorFormat=f[v],o._table=function(t,e,n,o){if("linear"===o||!t.length)return[{time:e,pos:0},{time:n,pos:1}];var a,i,r,s,l,u=[],c=[e];for(a=0,i=t.length;ae&&s=0&&t{function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}n(8636),n(5086),n(8329),n(8772),n(4913),n(9693),n(115),n(7136),n(173),n(9073),n(6048),n(9581),n(3534),n(590),n(4216),n(8665),n(9979),n(4602),function(t){"use strict";var e=function(e,n){t.fn.typeahead.defaults;n.scrollBar&&(n.items=100,n.menu='');var o=this;if(o.$element=t(e),o.options=t.extend({},t.fn.typeahead.defaults,n),o.$menu=t(o.options.menu).insertAfter(o.$element),o.eventSupported=o.options.eventSupported||o.eventSupported,o.grepper=o.options.grepper||o.grepper,o.highlighter=o.options.highlighter||o.highlighter,o.lookup=o.options.lookup||o.lookup,o.matcher=o.options.matcher||o.matcher,o.render=o.options.render||o.render,o.onSelect=o.options.onSelect||null,o.sorter=o.options.sorter||o.sorter,o.source=o.options.source||o.source,o.displayField=o.options.displayField||o.displayField,o.valueField=o.options.valueField||o.valueField,o.options.ajax){var a=o.options.ajax;"string"==typeof a?o.ajax=t.extend({},t.fn.typeahead.defaults.ajax,{url:a}):("string"==typeof a.displayField&&(o.displayField=o.options.displayField=a.displayField),"string"==typeof a.valueField&&(o.valueField=o.options.valueField=a.valueField),o.ajax=t.extend({},t.fn.typeahead.defaults.ajax,a)),o.ajax.url||(o.ajax=null),o.query=""}else o.source=o.options.source,o.ajax=null;o.shown=!1,o.listen()};e.prototype={constructor:e,eventSupported:function(t){var e=t in this.$element;return e||(this.$element.setAttribute(t,"return;"),e="function"==typeof this.$element[t]),e},select:function(){var t=this.$menu.find(".active").attr("data-value"),e=this.$menu.find(".active a").text();return this.options.onSelect&&this.options.onSelect({value:t,text:e}),this.$element.val(this.updater(e)).change(),this.hide()},updater:function(t){return t},show:function(){var e=t.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});if(this.$menu.css({top:e.top+e.height,left:e.left}),this.options.alignWidth){var n=t(this.$element[0]).outerWidth();this.$menu.css({width:n})}return this.$menu.show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},ajaxLookup:function(){var e=t.trim(this.$element.val());if(e===this.query)return this;if(this.query=e,this.ajax.timerId&&(clearTimeout(this.ajax.timerId),this.ajax.timerId=null),!e||e.length"+e+""}))},render:function(e){var n,a=this,i="string"==typeof a.options.displayField;return(e=t(e).map((function(e,r){return"object"===o(r)?(n=i?r[a.options.displayField]:a.options.displayField(r),e=t(a.options.item).attr("data-value",r[a.options.valueField])):(n=r,e=t(a.options.item).attr("data-value",r)),e.find("a").html(a.highlighter(n)),e[0]}))).first().addClass("active"),this.$menu.html(e),this},grepper:function(e){var n,o,a=this,i="string"==typeof a.options.displayField;if(!(i&&e&&e.length))return null;if(e[0].hasOwnProperty(a.options.displayField))n=t.grep(e,(function(t){return o=i?t[a.options.displayField]:a.options.displayField(t),a.matcher(o)}));else{if("string"!=typeof e[0])return null;n=t.grep(e,(function(t){return a.matcher(t)}))}return this.sorter(n)},next:function(e){var n=this.$menu.find(".active").removeClass("active").next();if(n.length||(n=t(this.$menu.find("li")[0])),this.options.scrollBar){var o=this.$menu.children("li").index(n);o%8==0&&this.$menu.scrollTop(26*o)}n.addClass("active")},prev:function(t){var e=this.$menu.find(".active").removeClass("active").prev();if(e.length||(e=this.$menu.find("li").last()),this.options.scrollBar){var n=this.$menu.children("li"),o=n.length-1,a=n.index(e);(o-a)%8==0&&this.$menu.scrollTop(26*(a-7))}e.addClass("active")},listen:function(){this.$element.on("focus",t.proxy(this.focus,this)).on("blur",t.proxy(this.blur,this)).on("keypress",t.proxy(this.keypress,this)).on("keyup",t.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",t.proxy(this.keydown,this)),this.$menu.on("click",t.proxy(this.click,this)).on("mouseenter","li",t.proxy(this.mouseenter,this)).on("mouseleave","li",t.proxy(this.mouseleave,this))},move:function(t){if(this.shown){switch(t.keyCode){case 9:case 13:case 27:t.preventDefault();break;case 38:t.preventDefault(),this.prev();break;case 40:t.preventDefault(),this.next()}t.stopPropagation()}},keydown:function(e){this.suppressKeyPressRepeat=~t.inArray(e.keyCode,[40,38,9,13,27]),this.move(e)},keypress:function(t){this.suppressKeyPressRepeat||this.move(t)},keyup:function(t){switch(t.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.ajax?this.ajaxLookup():this.lookup()}t.stopPropagation(),t.preventDefault()},focus:function(t){this.focused=!0},blur:function(t){this.focused=!1,!this.mousedover&&this.shown&&this.hide()},click:function(t){t.stopPropagation(),t.preventDefault(),this.select(),this.$element.focus()},mouseenter:function(e){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),t(e.currentTarget).addClass("active")},mouseleave:function(t){this.mousedover=!1,!this.focused&&this.shown&&this.hide()},destroy:function(){this.$element.off("focus",t.proxy(this.focus,this)).off("blur",t.proxy(this.blur,this)).off("keypress",t.proxy(this.keypress,this)).off("keyup",t.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.off("keydown",t.proxy(this.keydown,this)),this.$menu.off("click",t.proxy(this.click,this)).off("mouseenter","li",t.proxy(this.mouseenter,this)).off("mouseleave","li",t.proxy(this.mouseleave,this)),this.$element.removeData("typeahead")}},t.fn.typeahead=function(n){return this.each((function(){var a=t(this),i=a.data("typeahead"),r="object"===o(n)&&n;i||a.data("typeahead",i=new e(this,r)),"string"==typeof n&&i[n]()}))},t.fn.typeahead.defaults={source:[],items:10,scrollBar:!1,alignWidth:!0,menu:'',item:'
  • ',valueField:"id",displayField:"name",onSelect:function(){},ajax:{url:null,timeout:300,method:"get",triggerLength:1,loadingClass:null,preDispatch:null,preProcess:null}},t.fn.typeahead.Constructor=e,t((function(){t("body").on("focus.typeahead.data-api",'[data-provide="typeahead"]',(function(e){var n=t(this);n.data("typeahead")||(e.preventDefault(),n.typeahead(n.data()))}))}))}(window.jQuery)},2811:function(t,e,n){var o,a;function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}n(4913),n(475),n(115),n(9693),n(8636),n(5086),n(7136),n(173),n(2231),n(6255),n(9389),n(6048),n(9581),n(6088),n(9073),n(3534),n(590),n(4216),n(8665),n(9979),n(4602),function(t){"use strict";var e,n,o=Array.prototype.slice;(n=function(e){this.options=t.extend({},n.defaults,e),this.parser=this.options.parser,this.locale=this.options.locale,this.messageStore=this.options.messageStore,this.languages={},this.init()}).prototype={init:function(){var e=this;String.locale=e.locale,String.prototype.toLocaleString=function(){var n,o,a,i,r,s,l;for(a=this.valueOf(),i=e.locale,r=0;i;){o=(n=i.split("-")).length;do{if(s=n.slice(0,o).join("-"),l=e.messageStore.get(s,a))return l;o--}while(o);if("en"===i)break;i=t.i18n.fallbacks[e.locale]&&t.i18n.fallbacks[e.locale][r]||e.options.fallbackLocale,t.i18n.log("Trying fallback locale for "+e.locale+": "+i),r++}return""}},destroy:function(){t.removeData(document,"i18n")},load:function(e,n){var o,a,i,r={};if(e||n||(e="i18n/"+t.i18n().locale+".json",n=t.i18n().locale),"string"==typeof e&&"json"!==e.split(".").pop()){for(a in r[n]=e+"/"+n+".json",o=(t.i18n.fallbacks[n]||[]).concat(this.options.fallbackLocale))r[i=o[a]]=e+"/"+i+".json";return this.load(r)}return this.messageStore.load(e,n)},parse:function(e,n){var o=e.toLocaleString();return this.parser.language=t.i18n.languages[t.i18n().locale]||t.i18n.languages.default,""===o&&(o=e),this.parser.parse(o,n)}},t.i18n=function(e,a){var r,s=t.data(document,"i18n"),l="object"===i(e)&&e;return l&&l.locale&&s&&s.locale!==l.locale&&(String.locale=s.locale=l.locale),s||(s=new n(l),t.data(document,"i18n",s)),"string"==typeof e?(r=void 0!==a?o.call(arguments,1):[],s.parse(e,r)):s},t.fn.i18n=function(){var e=t.data(document,"i18n");return e||(e=new n,t.data(document,"i18n",e)),String.locale=e.locale,this.each((function(){var n,o,a,i,r=t(this),s=r.data("i18n");s?(n=s.indexOf("["),o=s.indexOf("]"),-1!==n&&-1!==o&&n1?["CONCAT"].concat(t):t[0]}function P(){var t=w([h,n,I]);return null===t?null:[t[0],t[2]]}function A(){var t=w([h,n,v]);return null===t?null:[t[0],t[2]]}function T(){var t=w([f,d,p]);return null===t?null:t[1]}if(e=S("|"),n=S(":"),o=S("\\"),a=M(/^./),i=S("$"),r=M(/^\d+/),s=M(/^[^{}\[\]$\\]/),l=M(/^[^{}\[\]$\\|]/),k([_,M(/^[^{}\[\]$\s]/)]),u=k([_,l]),c=k([_,s]),b=M(/^[ !"$&'()*,.\/0-9;=?@A-Z\^_`a-z~\x80-\xFF+\-]+/),x=function(t){return t.toString()},h=function(){var t=b();return null===t?null:x(t)},d=k([function(){var t=w([k([P,A]),C(0,D)]);return null===t?null:t[0].concat(t[1])},function(){var t=w([h,C(0,D)]);return null===t?null:[t[0]].concat(t[1])}]),f=S("{{"),p=S("}}"),g=k([T,I,function(){var t=C(1,c)();return null===t?null:t.join("")}]),v=k([T,I,function(){var t=C(1,u)();return null===t?null:t.join("")}]),null===(m=function(){var t=C(0,g)();return null===t?null:["CONCAT"].concat(t)}())||y!==t.length)throw new Error("Parse error at position "+y.toString()+" in input: "+t);return m}},t.extend(t.i18n.parser,new e)}(jQuery),function(t){"use strict";var e=function(){this.language=t.i18n.languages[String.locale]||t.i18n.languages.default};e.prototype={constructor:e,emit:function(e,n){var o,a,r,s=this;switch(i(e)){case"string":case"number":o=e;break;case"object":if(a=t.map(e.slice(1),(function(t){return s.emit(t,n)})),r=e[0].toLowerCase(),"function"!=typeof s[r])throw new Error('unknown operation "'+r+'"');o=s[r](a,n);break;case"undefined":o="";break;default:throw new Error("unexpected type in AST: "+i(e))}return o},concat:function(e){var n="";return t.each(e,(function(t,e){n+=e})),n},replace:function(t,e){var n=parseInt(t[0],10);return n=parseInt(t[0],10)&&e[0]{},1536:()=>{},2559:()=>{},2553:()=>{},5264:()=>{},6387:()=>{},5985:()=>{},63:()=>{},3888:()=>{},7278:()=>{},3704:()=>{}},t=>{var e=e=>t(t.s=e);t.O(0,[450],(()=>(e(2811),e(7852),e(6108),e(9143),e(5779),e(6618),e(3441),e(1680),e(9654),e(5611),e(3600),e(514),e(9307),e(6730),e(1595),e(1223),e(9662),e(63),e(1536),e(2559),e(2553),e(5264),e(6387),e(5985),e(3888),e(3704),e(7278))));t.O()}]); \ No newline at end of file diff --git a/public/build/app.b0664648.js.LICENSE.txt b/public/build/app.79f750e0.js.LICENSE.txt similarity index 100% rename from public/build/app.b0664648.js.LICENSE.txt rename to public/build/app.79f750e0.js.LICENSE.txt diff --git a/public/build/app.b0664648.js b/public/build/app.b0664648.js deleted file mode 100644 index 951a9147e..000000000 --- a/public/build/app.b0664648.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see app.b0664648.js.LICENSE.txt */ -(self.webpackChunkxtools=self.webpackChunkxtools||[]).push([[524],{3441:()=>{xtools.adminstats={},$((function(){var t=$("#project_input"),e=t.val();0!==$("body.adminstats, body.patrollerstats, body.stewardstats").length&&(xtools.application.setupMultiSelectListeners(),$(".group-selector").on("change",(function(){$(".action-selector").addClass("hidden"),$(".action-selector--"+$(this).val()).removeClass("hidden"),$(".xt-page-title--title").text($.i18n("tool-"+$(this).val()+"stats")),$(".xt-page-title--desc").text($.i18n("tool-"+$(this).val()+"stats-desc"));var n=$.i18n("tool-"+$(this).val()+"stats")+" - "+$.i18n("xtools-title");document.title=n,history.replaceState({},n,"/"+$(this).val()+"stats"),"steward"===$(this).val()?(e=t.val(),t.val("meta.wikimedia.org")):t.val(e),xtools.application.setupMultiSelectListeners()})))}))},9654:(t,e,n)=>{n(8636),n(5086),$((function(){if($("body.authorship").length){var t=$("#show_selector");t.on("change",(function(t){$(".show-option").addClass("hidden").find("input").prop("disabled",!0),$(".show-option--".concat(t.target.value)).removeClass("hidden").find("input").prop("disabled",!1)})),window.onload=function(){return t.trigger("change")}}}))},5611:(t,e,n)=>{n(8476),n(5086),n(8379),n(7899),n(2231),n(115),xtools.autoedits={},$((function(){if($("body.autoedits").length){var t=$(".contributions-container"),e=$("#tool_selector");if(e.length)return xtools.autoedits.fetchTools=function(t){e.prop("disabled",!0),$.get("/api/project/automated_tools/"+t).done((function(t){t.error||(delete t.project,delete t.elapsed_time,e.html('"),Object.keys(t).forEach((function(n){e.append('")}))),e.prop("disabled",!1)}))},$(document).ready((function(){$("#project_input").on("change.autoedits",(function(){xtools.autoedits.fetchTools($("#project_input").val())}))})),void xtools.autoedits.fetchTools($("#project_input").val());if(xtools.application.setupToggleTable(window.countsByTool,window.toolsChart,"count",(function(t){var e=0;Object.keys(t).forEach((function(n){e+=parseInt(t[n].count,10)}));var n=Object.keys(t).length;$(".tools--tools").text(n.toLocaleString(i18nLang)+" "+$.i18n("num-tools",n)),$(".tools--count").text(e.toLocaleString(i18nLang))})),t.length){var n=$(".contributions-table").length?"setupContributionsNavListeners":"loadContributions";xtools.application[n]((function(t){return"".concat(t.target,"-contributions/").concat(t.project,"/").concat(t.username)+"/".concat(t.namespace,"/").concat(t.start,"/").concat(t.end)}),t.data("target"))}}}))},3600:(t,e,n)=>{n(7136),n(173),n(9073),n(6048),n(8636),n(5086),xtools.blame={},$((function(){if($("body.blame").length){$(".diff-empty").length===$(".diff tr").length-1&&$(".diff-empty").eq(0).text("(".concat($.i18n("diff-empty").toLowerCase(),")")).addClass("text-muted text-center").prop("width","20%"),$(".diff-addedline").each((function(){var t=xtools.blame.query.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),e=function(e){var n=new RegExp("(".concat(t,")"),"gi");$(e).html($(e).html().replace(n,"$1"))};$(this).find(".diffchange-inline").length?$(".diffchange-inline").each((function(){e(this)})):e(this)}));var t=$("#show_selector");t.on("change",(function(t){$(".show-option").addClass("hidden").find("input").prop("disabled",!0),$(".show-option--".concat(t.target.value)).removeClass("hidden").find("input").prop("disabled",!1)})),window.onload=function(){return t.trigger("change")}}}))},514:(t,e,n)=>{function o(t,e){xtools.categoryedits.$select2Input.data("select2")&&(xtools.categoryedits.$select2Input.off("change"),xtools.categoryedits.$select2Input.select2("val",null),xtools.categoryedits.$select2Input.select2("data",null),xtools.categoryedits.$select2Input.select2("destroy"));var n=e||xtools.categoryedits.$select2Input.data("ns"),o={ajax:{url:t||xtools.categoryedits.$select2Input.data("api"),dataType:"jsonp",jsonpCallback:"categorySuggestionCallback",delay:200,data:function(t){return{action:"query",list:"prefixsearch",format:"json",pssearch:t.term||"",psnamespace:14,cirrusUseCompletionSuggester:"yes"}},processResults:function(t){var e=t?t.query:{},o=[];return e&&e.prefixsearch.length&&(o=e.prefixsearch.map((function(t){var e=t.title.replace(new RegExp("^"+n+":"),"");return{id:e.score(),text:e}}))),{results:o}}},placeholder:$.i18n("category-search"),maximumSelectionLength:10,minimumInputLength:1};xtools.categoryedits.$select2Input.select2(o)}n(475),n(8476),n(5086),n(8379),n(7899),n(2231),n(9581),n(7136),n(173),n(9073),n(6048),xtools.categoryedits={},$((function(){$("body.categoryedits").length&&$(document).ready((function(){var t;xtools.categoryedits.$select2Input=$("#category_selector"),o(),$("#project_input").on("xtools.projectLoaded",(function(t,e){$.get(xtBaseUrl+"api/project/namespaces/"+e.project).done((function(t){o(t.api,t.namespaces[14])}))})),$("form").on("submit",(function(){$("#category_input").val(xtools.categoryedits.$select2Input.val().join("|"))})),xtools.application.setupToggleTable(window.countsByCategory,window.categoryChart,"editCount",(function(t){var e=0,n=0;Object.keys(t).forEach((function(o){e+=parseInt(t[o].editCount,10),n+=parseInt(t[o].pageCount,10)}));var o=Object.keys(t).length;$(".category--category").text(o.toLocaleString(i18nLang)+" "+$.i18n("num-categories",o)),$(".category--count").text(e.toLocaleString(i18nLang)),$(".category--percent-of-edit-count").text(100*(e/xtools.categoryedits.userEditCount).toLocaleString(i18nLang)+"%"),$(".category--pages").text(n.toLocaleString(i18nLang))})),$(".contributions-container").length&&(t=$(".contributions-table").length?"setupContributionsNavListeners":"loadContributions",xtools.application[t]((function(t){return"categoryedits-contributions/"+t.project+"/"+t.username+"/"+t.categories+"/"+t.start+"/"+t.end}),"Category"))}))}))},5779:(t,e,n)=>{function o(t){$("#project_input").val(xtools.application.vars.lastProject),$(".site-notice").append("")}function a(){var t=$("#page_input"),e=$("#user_input"),n=$("#namespace_select");if(t[0]||e[0]||$("#project_input")[0]){t.data("typeahead")&&t.data("typeahead").destroy(),e.data("typeahead")&&e.data("typeahead").destroy(),xtools.application.vars.apiPath||(xtools.application.vars.apiPath=$("#page_input").data("api")||$("#user_input").data("api"));var o={url:xtools.application.vars.apiPath,timeout:200,triggerLength:1,method:"get",preDispatch:null,preProcess:null};t[0]&&t.typeahead({ajax:Object.assign(o,{preDispatch:function(t){n[0]&&"0"!==n.val()&&(t=n.find("option:selected").text().trim()+":"+t);return{action:"query",list:"prefixsearch",format:"json",pssearch:t}},preProcess:function(t){var e="";return n[0]&&"0"!==n.val()&&(e=n.find("option:selected").text().trim()),t.query.prefixsearch.map((function(t){return t.title.replace(new RegExp("^"+e+":"),"")}))}})}),e[0]&&e.typeahead({ajax:Object.assign(o,{preDispatch:function(t){return{action:"query",list:"prefixsearch",format:"json",pssearch:"User:"+t}},preProcess:function(t){return t.query.prefixsearch.map((function(t){return t.title.split("/")[0].substr(t.title.indexOf(":")+1)})).filter((function(t,e,n){return n.indexOf(t)===e}))}})})}}function i(t){t?($(".form-control").prop("readonly",!1),$(".form-submit").prop("disabled",!1),$(".form-submit").text($.i18n("submit")).prop("disabled",!1)):$("#content form").on("submit",(function(){document.activeElement.blur(),$(".form-control").prop("readonly",!0),$(".form-submit").prop("disabled",!0).html($.i18n("loading")+" ");var t=Date.now();setInterval((function(){var e=Math.round((Date.now()-t)/1e3),n=Math.floor(e/60),o=("00"+(e-60*n)).slice(-2);$("#submit_timer").text(n+":"+o)}),1e3)}))}n(8665),n(5086),n(9979),n(4602),n(789),n(933),n(9218),n(2231),n(8636),n(5231),n(6088),n(8476),n(8379),n(7899),n(4189),n(8329),n(9581),n(7136),n(173),n(9073),n(6048),n(9693),n(17),n(9560),n(9389),n(8772),n(4913),xtools={},xtools.application={},xtools.application.vars={sectionOffset:{}},xtools.application.chartGridColor="rgba(0, 0, 0, 0.1)",window.matchMedia("(prefers-color-scheme: dark)").matches&&(Chart.defaults.global.defaultFontColor="#AAA",xtools.application.chartGridColor="#333"),$.i18n({locale:i18nLang}).load(i18nPaths),$((function(){$(document).ready((function(){if($(".xt-hide").on("click",(function(){$(this).hide(),$(this).siblings(".xt-show").show(),$(this).parents(".panel-heading").length?$(this).parents(".panel-heading").siblings(".panel-body").hide():$(this).parents(".xt-show-hide--parent").next(".xt-show-hide--target").hide()})),$(".xt-show").on("click",(function(){$(this).hide(),$(this).siblings(".xt-hide").show(),$(this).parents(".panel-heading").length?$(this).parents(".panel-heading").siblings(".panel-body").show():$(this).parents(".xt-show-hide--parent").next(".xt-show-hide--target").show()})),function(){var t=$(window).width(),e=$(".tool-links").outerWidth(),n=$(".nav-buttons").outerWidth();if(t<768)return;e+n>t&&$(".tool-links--more").removeClass("hidden");var o=$(".tool-links--entry").length;for(;o>0&&e+n>t;){var a=$(".tool-links--nav > .tool-links--entry:not(.active)").last().remove();$(".tool-links--more .dropdown-menu").append(a),e=$(".tool-links").outerWidth(),o--}}(),xtools.application.setupColumnSorting(),function(){var t=$(".xt-toc");if(!t||!t[0])return;xtools.application.vars.tocHeight=t.height();var e=function(){$(".xt-toc").find("a").off("click").on("click",(function(t){document.activeElement.blur();var e=$("#"+$(t.target).data("section"));$(window).scrollTop(e.offset().top-xtools.application.vars.tocHeight),$(this).parents(".xt-toc").find("a").removeClass("bold"),n(),xtools.application.vars.$tocClone.addClass("bold")}))};xtools.application.setupTocListeners=e;var n=function(){xtools.application.vars.$tocClone||(xtools.application.vars.$tocClone=t.clone(),xtools.application.vars.$tocClone.addClass("fixed"),t.after(xtools.application.vars.$tocClone),e())};xtools.application.buildSectionOffsets=function(){$.each(t.find("a"),(function(t,e){var n=$(e).data("section");xtools.application.vars.sectionOffset[n]=$("#"+n).offset().top}))},$(".xt-show, .xt-hide").on("click",xtools.application.buildSectionOffsets),xtools.application.buildSectionOffsets(),e();var o=t.offset().top;$(window).on("scroll.toc",(function(t){var e,a=$(t.target).scrollTop(),i=a>o;i?(xtools.application.vars.$tocClone||n(),Object.keys(xtools.application.vars.sectionOffset).forEach((function(t){a>xtools.application.vars.sectionOffset[t]-xtools.application.vars.tocHeight-1&&(e=xtools.application.vars.$tocClone.find('a[data-section="'+t+'"]'))})),xtools.application.vars.$tocClone.find("a").removeClass("bold"),e&&e.addClass("bold")):!i&&xtools.application.vars.$tocClone&&(xtools.application.vars.$tocClone.remove(),xtools.application.vars.$tocClone=null)}))}(),function(){var t=$(".table-sticky-header");if(!t||!t[0])return;var e,n=t.find("thead tr").eq(0),o=function(){e||(e=n.clone(),n.addClass("sticky-heading"),n.before(e),n.find("th").each((function(t){$(this).css("width",e.find("th").eq(t).outerWidth())})),n.css("width",e.outerWidth()+1))},a=t.offset().top;$(window).on("scroll.stickyHeader",(function(i){var r=$(i.target).scrollTop()>a;r&&!e?o():!r&&e?(n.removeClass("sticky-heading"),e.remove(),e=null):e&&n.css("top",$(window).scrollTop()-t.offset().top)}))}(),function(){var t=$("#project_input");if(!t)return;t.length&&$("#namespace_select").length?(xtools.application.vars.lastProject=$("#project_input").val(),$("#project_input").off("change").on("change",(function(){$("#namespace_select").prop("disabled",!0);var t=this.value;$.get(xtBaseUrl+"api/project/namespaces/"+t).done((function(e){var n=$('#namespace_select option[value="all"]').eq(0).clone();for(var o in $("#namespace_select").html(n),xtools.application.vars.apiPath=e.api,e.namespaces)if(e.namespaces.hasOwnProperty(o)){var i=0===parseInt(o,10)?$.i18n("mainspace"):e.namespaces[o];$("#namespace_select").append("")}$("#namespace_select").val(0),xtools.application.vars.lastProject=t,a()})).fail(o.bind(this,t)).always((function(){$("#namespace_select").prop("disabled",!1)}))})),$("#namespace_select").on("change",a)):($("#user_input")[0]||$("#page_input")[0])&&(xtools.application.vars.lastProject=t.val(),t.on("change",(function(){var e=this.value;$.get(xtBaseUrl+"api/project/normalize/"+e).done((function(n){xtools.application.vars.apiPath=n.api,xtools.application.vars.lastProject=e,a(),t.trigger("xtools.projectLoaded",n)})).fail(o.bind(this,e))})))}(),a(),i(),"function"==typeof URL){var t=new URL(window.location.href).searchParams.get("focus");t&&$("[name=".concat(t,"]")).focus()}})),window.onpageshow=function(t){t.persisted&&i(!0)}})),xtools.application.setupToggleTable=function(t,e,n,o){var a;$(".toggle-table").on("click",".toggle-table--toggle",(function(){a||(a=Object.assign({},t));var i=$(this).data("index"),r=$(this).data("key");"true"===$(this).attr("data-disabled")?(a[r]=t[r],e.data.datasets[0].data[i]=parseInt(n?a[r][n]:a[r],10),$(this).attr("data-disabled","false")):(delete a[r],e.data.datasets[0].data[i]=null,$(this).attr("data-disabled","true")),$(this).parents("tr").toggleClass("excluded"),$(this).find(".glyphicon").toggleClass("glyphicon-remove").toggleClass("glyphicon-plus"),o(a,r,i),e.update()}))},xtools.application.setupColumnSorting=function(){var t,e;$(".sort-link").on("click",(function(){t=e===$(this).data("column")?-t:1,$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var n=1===t?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";$(this).find(".glyphicon").addClass(n).removeClass("glyphicon-sort"),e=$(this).data("column");var o=$(this).parents("table"),a=o.find(".sort-entry--"+e).parent();a.length&&(a.sort((function(n,o){var a=$(n).find(".sort-entry--"+e).data("value")||0,i=$(o).find(".sort-entry--"+e).data("value")||0;return isNaN(a)||(a=parseFloat(a)||0),isNaN(i)||(i=parseFloat(i)||0),ai?-t:0})),$(".sort-entry--rank").length>0&&$.each(a,(function(t,e){$(e).find(".sort-entry--rank").text(t+1)})),o.find("tbody").html(a))}))},xtools.application.setupMultiSelectListeners=function(){var t=$(".multi-select--body:not(.hidden) .multi-select--option");t.on("change",(function(){$(".multi-select--all").prop("checked",$(".multi-select--body:not(.hidden) .multi-select--option:checked").length===t.length)})),$(".multi-select--all").on("click",(function(){t.prop("checked",$(this).prop("checked"))}))}},6618:(t,e,n)=>{function o(){xtools.application.vars.offset||(xtools.application.vars.initialOffset=$(".contributions-container").data("offset"),xtools.application.vars.offset=xtools.application.vars.initialOffset)}n(9218),n(2231),n(8665),n(5086),n(9979),n(4602),n(933),n(7136),n(785),n(9389),n(6048),n(9073),n(173),Object.assign(xtools.application.vars,{initialOffset:"",offset:"",prevOffsets:[],initialLoad:!1}),xtools.application.loadContributions=function(t,e){o();var n=$(".contributions-container"),a=$(".contributions-loading"),i=n.data(),r=t(i),s=parseInt(i.limit,10)||50,l=new URLSearchParams(window.location.search),u=xtBaseUrl+r+"/"+xtools.application.vars.offset,c=location.pathname.split("/")[1],d=u.split("/")[1];n.addClass("contributions-container--loading"),a.show(),l.set("limit",s.toString()),l.append("htmlonly","yes"),$.ajax({url:u+"?"+l.toString(),timeout:6e4}).always((function(){n.removeClass("contributions-container--loading"),a.hide()})).done((function(o){if(n.html(o).show(),xtools.application.setupContributionsNavListeners(t,e),xtools.application.vars.initialOffset||(xtools.application.vars.initialOffset=$(".contribs-row-date").first().data("value"),xtools.application.vars.initialLoad=!0),c!==d){var a=new RegExp("^/".concat(d,"/(.*)/"));u=u.replace(a,"/".concat(c,"/$1/"))}xtools.application.vars.initialLoad?xtools.application.vars.initialLoad=!1:(l.delete("htmlonly"),window.history.replaceState(null,document.title,u+"?"+l.toString()),n.parents(".panel")[0].scrollIntoView()),xtools.application.vars.offset"+i+"")).show()}))},xtools.application.setupContributionsNavListeners=function(t,e){o(),$(".contributions--prev").off("click").one("click",(function(n){n.preventDefault(),xtools.application.vars.offset=xtools.application.vars.prevOffsets.pop()||xtools.application.vars.initialOffset,xtools.application.loadContributions(t,e)})),$(".contributions--next").off("click").one("click",(function(n){n.preventDefault(),xtools.application.vars.offset&&xtools.application.vars.prevOffsets.push(xtools.application.vars.offset),xtools.application.vars.offset=$(".contribs-row-date").last().data("value"),xtools.application.loadContributions(t,e)})),$("#contributions_limit").on("change",(function(t){var e=parseInt(t.target.value,10);$(".contributions-container").data("limit",e),$(".contributions--prev-text").text($.i18n("pager-newer-n",e).capitalize()),$(".contributions--next-text").text($.i18n("pager-older-n",e).capitalize())}))}},9143:(t,e,n)=>{n(7136),n(173),n(17),n(5086),n(9693),n(5852),n(4913),String.prototype.descore=function(){return this.replace(/_/g," ")},String.prototype.score=function(){return this.replace(/ /g,"_")},String.prototype.escape=function(){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,(function(e){return t[e]}))},Array.prototype.unique=function(){return this.filter((function(t,e,n){return n.indexOf(t)===e}))},Object.defineProperty(String.prototype,"capitalize",{value:function(){return this.charAt(0).toUpperCase()+this.slice(1)},enumerable:!1})},9307:(t,e,n)=>{function o(t,e){var n=0,o=[];Object.keys(t).forEach((function(e){var a=parseInt(t[e],10);o.push(a),n+=a}));var i=Object.keys(t).length;$(".namespaces--namespaces").text(i.toLocaleString(i18nLang)+" "+$.i18n("num-namespaces",i)),$(".namespaces--count").text(n.toLocaleString(i18nLang)),o.forEach((function(t){var e=r(t,n);$(".namespaces-table .sort-entry--count[data-value="+t+"]").text(t.toLocaleString(i18nLang)+" ("+e+")")})),["year","month"].forEach((function(t){var n=window[t+"countsChart"],o=window.namespaces[e]||$.i18n("mainspace");if(n){var i=0;n.data.datasets.forEach((function(t,e){t.label===o&&(i=e)}));var r=n.getDatasetMeta(i);r.hidden=null===r.hidden?!n.data.datasets[i].hidden:null,r.hidden?xtools.editcounter.excludedNamespaces.push(o):xtools.editcounter.excludedNamespaces=xtools.editcounter.excludedNamespaces.filter((function(t){return t!==o})),window[t+"countsChart"].config.data.labels=a(t,n.data.datasets),n.update()}}))}function a(t,e){var n=i(t,e);return Object.keys(n).map((function(e){var o=n[e].toString().length,a=2*(xtools.editcounter.maxDigits[t]-o);return e+Array(a+5).join("\t")+n[e].toLocaleString(i18nLang,{useGrouping:!1})}))}function i(t,e){var n={};return e.forEach((function(e){-1===xtools.editcounter.excludedNamespaces.indexOf(e.label)&&e.data.forEach((function(e,o){n[xtools.editcounter.chartLabels[t][o]]||(n[xtools.editcounter.chartLabels[t][o]]=0),n[xtools.editcounter.chartLabels[t][o]]+=e}))})),n}function r(t,e){return(t/e).toLocaleString(i18nLang,{style:"percent"})}n(8476),n(5086),n(8379),n(7899),n(2231),n(17),n(9581),n(9389),n(6048),n(475),n(9693),n(7136),n(173),n(2982),n(533),n(8825),n(115),n(6088),xtools.editcounter={},xtools.editcounter.excludedNamespaces=[],xtools.editcounter.chartLabels={},xtools.editcounter.maxDigits={},$((function(){0!==$("body.editcounter").length&&(xtools.application.setupMultiSelectListeners(),$(".chart-wrapper").each((function(){var t=$(this).data("chart-type");if(void 0===t)return!1;var e=$(this).data("chart-data"),n=$(this).data("chart-labels"),o=$("canvas",$(this));new Chart(o,{type:t,data:{labels:n,datasets:[{data:e}]}})})),xtools.application.setupToggleTable(window.namespaceTotals,window.namespaceChart,null,o))})),xtools.editcounter.setupMonthYearChart=function(t,e,n,o,s){var l=e.map((function(t){return t.label}));xtools.editcounter.maxDigits[t]=o.toString().length,xtools.editcounter.chartLabels[t]=n,window[t+"countsChart"]=new Chart($("#"+t+"counts-canvas"),{type:"horizontalBar",data:{labels:a(t,e),datasets:e},options:{tooltips:{mode:"nearest",intersect:!0,callbacks:{label:function(n){var o=i(t,e),a=Object.keys(o).map((function(t){return o[t]})),s=a[n.index],l=r(n.xLabel,s);return n.xLabel.toLocaleString(i18nLang)+" ("+l+")"},title:function(t){return t[0].yLabel.replace(/\t.*/,"")+" - "+l[t[0].datasetIndex]}}},responsive:!0,maintainAspectRatio:!1,scales:{xAxes:[{stacked:!0,ticks:{beginAtZero:!0,reverse:i18nRTL,callback:function(t){if(Math.floor(t)===t)return t.toLocaleString(i18nLang)}},gridLines:{color:xtools.application.chartGridColor}}],yAxes:[{stacked:!0,barThickness:18,position:i18nRTL?"right":"left",gridLines:{color:xtools.application.chartGridColor}}]},legend:{display:s}}})},xtools.editcounter.setupTimecard=function(t,e){var n=(new Date).getTimezoneOffset()/60;t=t.map((function(t){return t.backgroundColor=new Array(t.data.length).fill(t.backgroundColor),t})),window.chart=new Chart($("#timecard-bubble-chart"),{type:"bubble",data:{datasets:t},options:{responsive:!0,legend:{display:!1},layout:{padding:{right:0}},elements:{point:{radius:function(t){var e=t.dataIndex;return t.dataset.data[e].scale},hitRadius:8}},scales:{yAxes:[{ticks:{min:0,max:8,stepSize:1,padding:25,callback:function(t,n){return e[n]}},position:i18nRTL?"right":"left",gridLines:{color:xtools.application.chartGridColor}},{ticks:{min:0,max:8,stepSize:1,padding:25,callback:function(e,n){return 0===n||n>7?"":t[n-1].data.reduce((function(t,e){return t+parseInt(e.value,10)}),0)}},position:i18nRTL?"left":"right"}],xAxes:[{ticks:{beginAtZero:!0,min:0,max:24,stepSize:1,reverse:i18nRTL,padding:0,callback:function(t){return t%2==0?t+":00":""}},gridLines:{color:xtools.application.chartGridColor}}]},tooltips:{displayColors:!1,callbacks:{title:function(t){return e[7-t[0].yLabel+1]+" "+parseInt(t[0].xLabel)+":"+String(t[0].xLabel%1*60).padStart(2,"0")},label:function(e){var n=[t[e.datasetIndex].data[e.index].value];return"".concat(n," ").concat($.i18n("num-edits",[n]))}}}}}),$((function(){$(".use-local-time").prop("checked",!1).on("click",(function(){var t=$(this).is(":checked")?n:-n,e=new Array(7);chart.data.datasets.forEach((function(t){return e[t.data[0].day_of_week-1]=t.backgroundColor[0]})),chart.data.datasets=chart.data.datasets.map((function(n){var o=[];return n.data=n.data.map((function(n){var a=parseFloat(n.hour)-t,i=parseInt(n.day_of_week,10);return a<0?(a=24+a,(i-=1)<1&&(i=7+i)):a>=24&&(a-=24,(i+=1)>7&&(i-=7)),n.hour=a.toString(),n.x=a.toString(),n.day_of_week=i.toString(),n.y=(8-i).toString(),o.push(e[i-1]),n})),n.backgroundColor=o,n})),$(this).is(":checked"),chart.update()}))}))}},6730:(t,e,n)=>{n(115),xtools.globalcontribs={},$((function(){0!==$("body.globalcontribs").length&&xtools.application.setupContributionsNavListeners((function(t){return"globalcontribs/".concat(t.username,"/").concat(t.namespace,"/").concat(t.start,"/").concat(t.end)}),"globalcontribs")}))},1680:(t,e,n)=>{n(7136),n(173),xtools.pageinfo={},$((function(){if($("body.pageinfo").length){var t=function(){xtools.application.setupToggleTable(window.textshares,window.textsharesChart,"percentage",$.noop)},e=$(".textshares-container");if(e[0]){var n=xtBaseUrl+"authorship/"+e.data("project")+"/"+e.data("page")+"/"+(xtools.pageinfo.endDate?xtools.pageinfo.endDate+"/":"");n="".concat(n.replace(/\/$/,""),"?htmlonly=yes"),$.ajax({url:n,timeout:3e4}).done((function(n){e.replaceWith(n),xtools.application.buildSectionOffsets(),xtools.application.setupTocListeners(),xtools.application.setupColumnSorting(),t()})).fail((function(t,n,o){e.replaceWith($.i18n("api-error","Authorship API: "+o+""))}))}else $(".textshares-table").length&&t()}}))},1595:(t,e,n)=>{n(8476),n(5086),n(8379),n(7899),n(4867),n(9389),n(6048),n(8636),xtools.pages={},$((function(){if($("body.pages").length){var t={};xtools.application.setupToggleTable(window.countsByNamespace,window.pieChart,"count",(function(t){var e={count:0,deleted:0,redirects:0};Object.keys(t).forEach((function(n){e.count+=t[n].count,e.deleted+=t[n].deleted,e.redirects+=t[n].redirects})),$(".namespaces--namespaces").text(Object.keys(t).length.toLocaleString()+" "+$.i18n("num-namespaces",Object.keys(t).length)),$(".namespaces--pages").text(e.count.toLocaleString()),$(".namespaces--deleted").text(e.deleted.toLocaleString()+" ("+(e.deleted/e.count*100).toFixed(1)+"%)"),$(".namespaces--redirects").text(e.redirects.toLocaleString()+" ("+(e.redirects/e.count*100).toFixed(1)+"%)")})),$(".deleted-page").on("mouseenter",(function(e){var n=$(this).data("page-title"),o=$(this).data("namespace"),a=$(this).data("datetime").toString(),i=$(this).data("username"),r=function(t){$(e.target).find(".tooltip-body").html(t)};if(void 0!==t[o+"/"+n])return r(t[o+"/"+n]);var s=function(){r(""+$.i18n("api-error","Deletion Summary API")+"")};$.ajax({url:xtBaseUrl+"pages/deletion_summary/"+wikiDomain+"/"+i+"/"+o+"/"+n+"/"+a}).done((function(e){if(null===e.summary)return s();r(e.summary),t[o+"/"+n]=e.summary})).fail(s)}))}}))},1223:()=>{xtools.topedits={},$((function(){$("body.topedits").length&&$("#namespace_select").on("change",(function(){$("#page_input").prop("disabled","all"===$(this).val())}))}))},7852:(t,e,n)=>{var o,a,i,s;function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}n(7136),n(6255),n(2231),n(4913),n(6088),n(9389),n(5086),n(6048),n(8665),n(4602),n(115),n(8476),n(9693),n(475),n(9581),n(2982),n(4009),n(17),n(2157),n(8763),n(9560),n(5852),n(8379),n(7899),n(533),n(4538),n(1145),n(6943),n(8772),n(5231),n(4867),n(4895),n(4189),n(557),n(8844),n(2006),n(3534),n(590),n(4216),n(9979),s=function(){return function t(e,n,o){function a(r,s){if(!n[r]){if(!e[r]){if(i)return i(r,!0);var l=new Error("Cannot find module '"+r+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[r]={exports:{}};e[r][0].call(u.exports,(function(t){return a(e[r][1][t]||t)}),u,u.exports,t,e,n,o)}return n[r].exports}for(var i=void 0,r=0;rn?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=this,o=t,a=void 0===e?.5:e,i=2*a-1,r=n.alpha()-o.alpha(),s=((i*r==-1?i:(i+r)/(1+i*r))+1)/2,l=1-s;return this.rgb(s*n.red()+l*o.red(),s*n.green()+l*o.green(),s*n.blue()+l*o.blue()).alpha(n.alpha()*a+o.alpha()*(1-a))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new i,o=this.values,a=n.values;for(var r in o)o.hasOwnProperty(r)&&(t=o[r],"[object Array]"===(e={}.toString.call(t))?a[r]=t.slice(0):"[object Number]"===e?a[r]=t:console.error("unexpected color value:",t));return n}},i.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},i.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},i.prototype.getValues=function(t){for(var e=this.values,n={},o=0;o.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92)),100*(.2126*e+.7152*n+.0722*o),100*(.0193*e+.1192*n+.9505*o)]}function c(t){var e=u(t),n=e[0],o=e[1],a=e[2];return o/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116)-16,500*(n-o),200*(o-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]}function d(t){var e,n,o,a,i,r=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return[i=255*l,i,i];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var u=0;u<3;u++)(o=r+1/3*-(u-1))<0&&o++,o>1&&o--,i=6*o<1?e+6*(n-e)*o:2*o<1?n:3*o<2?e+(n-e)*(2/3-o)*6:e,a[u]=255*i;return a}function h(t){var e=t[0]/60,n=t[1]/100,o=t[2]/100,a=Math.floor(e)%6,i=e-Math.floor(e),r=255*o*(1-n),s=255*o*(1-n*i),l=255*o*(1-n*(1-i));switch(o*=255,a){case 0:return[o,l,r];case 1:return[s,o,r];case 2:return[r,o,l];case 3:return[r,s,o];case 4:return[l,r,o];case 5:return[o,r,s]}}function f(t){var e,n,o,a,i=t[0]/360,s=t[1]/100,l=t[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),o=6*i-(e=Math.floor(6*i)),!!(1&e)&&(o=1-o),a=s+o*((n=1-l)-s),e){default:case 6:case 0:r=n,g=a,b=s;break;case 1:r=a,g=n,b=s;break;case 2:r=s,g=n,b=a;break;case 3:r=s,g=a,b=n;break;case 4:r=a,g=s,b=n;break;case 5:r=n,g=s,b=a}return[255*r,255*g,255*b]}function p(t){var e=t[0]/100,n=t[1]/100,o=t[2]/100,a=t[3]/100;return[255*(1-Math.min(1,e*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,o*(1-a)+a))]}function v(t){var e,n,o,a=t[0]/100,i=t[1]/100,r=t[2]/100;return n=-.9689*a+1.8758*i+.0415*r,o=.0557*a+-.204*i+1.057*r,e=(e=3.2406*a+-1.5372*i+-.4986*r)>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*=12.92,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(o=Math.min(Math.max(0,o),1))]}function m(t){var e=t[0],n=t[1],o=t[2];return n/=100,o/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]}function x(t){var e,n,o,a,i=t[0],r=t[1],s=t[2];return i<=8?a=(n=100*i/903.3)/100*7.787+16/116:(n=100*Math.pow((i+16)/116,3),a=Math.pow(n/100,1/3)),[e=e/95.047<=.008856?e=95.047*(r/500+a-16/116)/7.787:95.047*Math.pow(r/500+a,3),n,o=o/108.883<=.008859?o=108.883*(a-s/200-16/116)/7.787:108.883*Math.pow(a-s/200,3)]}function y(t){var e,n=t[0],o=t[1],a=t[2];return(e=360*Math.atan2(a,o)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(o*o+a*a),e]}function k(t){return v(x(t))}function w(t){var e,n=t[0],o=t[1];return e=t[2]/360*2*Math.PI,[n,o*Math.cos(e),o*Math.sin(e)]}function C(t){return S[t]}e.exports={rgb2hsl:o,rgb2hsv:a,rgb2hwb:i,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:u,rgb2lab:c,rgb2lch:function(t){return y(c(t))},hsl2rgb:d,hsl2hsv:function(t){var e=t[0],n=t[1]/100,o=t[2]/100;return 0===o?[0,0,0]:[e,2*(n*=(o*=2)<=1?o:2-o)/(o+n)*100,(o+n)/2*100]},hsl2hwb:function(t){return i(d(t))},hsl2cmyk:function(t){return s(d(t))},hsl2keyword:function(t){return l(d(t))},hsv2rgb:h,hsv2hsl:function(t){var e,n,o=t[0],a=t[1]/100,i=t[2]/100;return e=a*i,[o,100*(e=(e/=(n=(2-a)*i)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(t){return i(h(t))},hsv2cmyk:function(t){return s(h(t))},hsv2keyword:function(t){return l(h(t))},hwb2rgb:f,hwb2hsl:function(t){return o(f(t))},hwb2hsv:function(t){return a(f(t))},hwb2cmyk:function(t){return s(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:p,cmyk2hsl:function(t){return o(p(t))},cmyk2hsv:function(t){return a(p(t))},cmyk2hwb:function(t){return i(p(t))},cmyk2keyword:function(t){return l(p(t))},keyword2rgb:C,keyword2hsl:function(t){return o(C(t))},keyword2hsv:function(t){return a(C(t))},keyword2hwb:function(t){return i(C(t))},keyword2cmyk:function(t){return s(C(t))},keyword2lab:function(t){return c(C(t))},keyword2xyz:function(t){return u(C(t))},xyz2rgb:v,xyz2lab:m,xyz2lch:function(t){return y(m(t))},lab2xyz:x,lab2rgb:k,lab2lch:y,lch2lab:w,lch2xyz:function(t){return x(w(t))},lch2rgb:function(t){return k(w(t))}};var S={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]},M={};for(var _ in S)M[JSON.stringify(S[_])]=_},{}],5:[function(t,e,n){var o=t(4),a=function(){return new u};for(var i in o){a[i+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),o[t](e)}}(i);var r=/(\w+)2(\w+)/.exec(i),s=r[1],l=r[2];(a[s]=a[s]||{})[l]=a[i]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var n=o[t](e);if("string"==typeof n||void 0===n)return n;for(var a=0;a0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index=0&&a>0)&&(v+=a));return i=d.getPixelForValue(v),{size:s=((r=d.getPixelForValue(v+f))-i)/2,base:i,head:r,center:r+s/2}},calculateBarIndexPixels:function(t,e,n){var o,a,r,s,l,u=n.scale.options,c=this.getStackIndex(t),d=n.pixels,h=d[e],f=d.length,p=n.start,g=n.end;return 1===f?(o=h>p?h-p:g-h,a=h0&&(o=(h-d[e-1])/2,e===f-1&&(a=o)),e');var n=t.data,o=n.datasets,a=n.labels;if(o.length)for(var i=0;i'),a[i]&&e.push(a[i]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,o){var a=t.getDatasetMeta(0),r=e.datasets[0],s=a.data[o],l=s&&s.custom||{},u=i.valueAtIndexOrDefault,c=t.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(r.backgroundColor,o,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(r.borderColor,o,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(r.borderWidth,o,c.borderWidth),hidden:isNaN(r.data[o])||a.data[o].hidden,index:o}})):[]}},onClick:function(t,e){var n,o,a,i=e.index,r=this.chart;for(n=0,o=(r.data.datasets||[]).length;n=Math.PI?-1:p<-Math.PI?1:0))+f,v={x:Math.cos(p),y:Math.sin(p)},m={x:Math.cos(g),y:Math.sin(g)},b=p<=0&&g>=0||p<=2*Math.PI&&2*Math.PI<=g,x=p<=.5*Math.PI&&.5*Math.PI<=g||p<=2.5*Math.PI&&2.5*Math.PI<=g,y=p<=-Math.PI&&-Math.PI<=g||p<=Math.PI&&Math.PI<=g,k=p<=.5*-Math.PI&&.5*-Math.PI<=g||p<=1.5*Math.PI&&1.5*Math.PI<=g,w=h/100,C={x:y?-1:Math.min(v.x*(v.x<0?1:w),m.x*(m.x<0?1:w)),y:k?-1:Math.min(v.y*(v.y<0?1:w),m.y*(m.y<0?1:w))},S={x:b?1:Math.max(v.x*(v.x>0?1:w),m.x*(m.x>0?1:w)),y:x?1:Math.max(v.y*(v.y>0?1:w),m.y*(m.y>0?1:w))},M={width:.5*(S.x-C.x),height:.5*(S.y-C.y)};u=Math.min(s/M.width,l/M.height),c={x:-.5*(S.x+C.x),y:-.5*(S.y+C.y)}}n.borderWidth=e.getMaxBorderWidth(d.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(h?n.outerRadius/100*h:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=c.x*n.outerRadius,n.offsetY=c.y*n.outerRadius,d.total=e.calculateTotal(),e.outerRadius=n.outerRadius-n.radiusLength*e.getRingIndex(e.index),e.innerRadius=Math.max(e.outerRadius-n.radiusLength,0),i.each(d.data,(function(n,o){e.updateElement(n,o,t)}))},updateElement:function(t,e,n){var o=this,a=o.chart,r=a.chartArea,s=a.options,l=s.animation,u=(r.left+r.right)/2,c=(r.top+r.bottom)/2,d=s.rotation,h=s.rotation,f=o.getDataset(),p=n&&l.animateRotate||t.hidden?0:o.calculateCircumference(f.data[e])*(s.circumference/(2*Math.PI)),g=n&&l.animateScale?0:o.innerRadius,v=n&&l.animateScale?0:o.outerRadius,m=i.valueAtIndexOrDefault;i.extend(t,{_datasetIndex:o.index,_index:e,_model:{x:u+a.offsetX,y:c+a.offsetY,startAngle:d,endAngle:h,circumference:p,outerRadius:v,innerRadius:g,label:m(f.label,e,a.data.labels[e])}});var b=t._model;this.removeHoverStyle(t),n&&l.animateRotate||(b.startAngle=0===e?s.rotation:o.getMeta().data[e-1]._model.endAngle,b.endAngle=b.startAngle+b.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,e=this.getDataset(),n=this.getMeta(),o=0;return i.each(n.data,(function(n,a){t=e.data[a],isNaN(t)||n.hidden||(o+=Math.abs(t))})),o},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,n,o=0,a=this.index,i=t.length,r=0;r(o=e>o?e:o)?n:o;return o}})}},{25:25,40:40,45:45}],18:[function(t,e,n){"use strict";var o=t(25),a=t(40),i=t(45);o._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(t){function e(t,e){return i.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,update:function(t){var n,o,a,r=this,s=r.getMeta(),l=s.dataset,u=s.data||[],c=r.chart.options,d=c.elements.line,h=r.getScaleForId(s.yAxisID),f=r.getDataset(),p=e(f,c);for(p&&(a=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=h,l._datasetIndex=r.index,l._children=u,l._model={spanGaps:f.spanGaps?f.spanGaps:c.spanGaps,tension:a.tension?a.tension:i.valueOrDefault(f.lineTension,d.tension),backgroundColor:a.backgroundColor?a.backgroundColor:f.backgroundColor||d.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:f.borderWidth||d.borderWidth,borderColor:a.borderColor?a.borderColor:f.borderColor||d.borderColor,borderCapStyle:a.borderCapStyle?a.borderCapStyle:f.borderCapStyle||d.borderCapStyle,borderDash:a.borderDash?a.borderDash:f.borderDash||d.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:f.borderDashOffset||d.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:f.borderJoinStyle||d.borderJoinStyle,fill:a.fill?a.fill:void 0!==f.fill?f.fill:d.fill,steppedLine:a.steppedLine?a.steppedLine:i.valueOrDefault(f.steppedLine,d.stepped),cubicInterpolationMode:a.cubicInterpolationMode?a.cubicInterpolationMode:i.valueOrDefault(f.cubicInterpolationMode,d.cubicInterpolationMode)},l.pivot()),n=0,o=u.length;n');var n=t.data,o=n.datasets,a=n.labels;if(o.length)for(var i=0;i'),a[i]&&e.push(a[i]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,o){var a=t.getDatasetMeta(0),r=e.datasets[0],s=a.data[o].custom||{},l=i.valueAtIndexOrDefault,u=t.options.elements.arc;return{text:n,fillStyle:s.backgroundColor?s.backgroundColor:l(r.backgroundColor,o,u.backgroundColor),strokeStyle:s.borderColor?s.borderColor:l(r.borderColor,o,u.borderColor),lineWidth:s.borderWidth?s.borderWidth:l(r.borderWidth,o,u.borderWidth),hidden:isNaN(r.data[o])||a.data[o].hidden,index:o}})):[]}},onClick:function(t,e){var n,o,a,i=e.index,r=this.chart;for(n=0,o=(r.data.datasets||[]).length;n0&&!isNaN(t)?2*Math.PI/e:0}})}},{25:25,40:40,45:45}],20:[function(t,e,n){"use strict";var o=t(25),a=t(40),i=t(45);o._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,linkScales:i.noop,update:function(t){var e=this,n=e.getMeta(),o=n.dataset,a=n.data,r=o.custom||{},s=e.getDataset(),l=e.chart.options.elements.line,u=e.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),i.extend(n.dataset,{_datasetIndex:e.index,_scale:u,_children:a,_loop:!0,_model:{tension:r.tension?r.tension:i.valueOrDefault(s.lineTension,l.tension),backgroundColor:r.backgroundColor?r.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:s.borderWidth||l.borderWidth,borderColor:r.borderColor?r.borderColor:s.borderColor||l.borderColor,fill:r.fill?r.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:r.borderCapStyle?r.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:r.borderDash?r.borderDash:s.borderDash||l.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle}}),n.dataset.pivot(),i.each(a,(function(n,o){e.updateElement(n,o,t)}),e),e.updateBezierControlPoints()},updateElement:function(t,e,n){var o=this,a=t.custom||{},r=o.getDataset(),s=o.chart.scale,l=o.chart.options.elements.point,u=s.getPointPositionForValue(e,r.data[e]);void 0!==r.radius&&void 0===r.pointRadius&&(r.pointRadius=r.radius),void 0!==r.hitRadius&&void 0===r.pointHitRadius&&(r.pointHitRadius=r.hitRadius),i.extend(t,{_datasetIndex:o.index,_index:e,_scale:s,_model:{x:n?s.xCenter:u.x,y:n?s.yCenter:u.y,tension:a.tension?a.tension:i.valueOrDefault(r.lineTension,o.chart.options.elements.line.tension),radius:a.radius?a.radius:i.valueAtIndexOrDefault(r.pointRadius,e,l.radius),backgroundColor:a.backgroundColor?a.backgroundColor:i.valueAtIndexOrDefault(r.pointBackgroundColor,e,l.backgroundColor),borderColor:a.borderColor?a.borderColor:i.valueAtIndexOrDefault(r.pointBorderColor,e,l.borderColor),borderWidth:a.borderWidth?a.borderWidth:i.valueAtIndexOrDefault(r.pointBorderWidth,e,l.borderWidth),pointStyle:a.pointStyle?a.pointStyle:i.valueAtIndexOrDefault(r.pointStyle,e,l.pointStyle),hitRadius:a.hitRadius?a.hitRadius:i.valueAtIndexOrDefault(r.pointHitRadius,e,l.hitRadius)}}),t._model.skip=a.skip?a.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,e=this.getMeta();i.each(e.data,(function(n,o){var a=n._model,r=i.splineCurve(i.previousItem(e.data,o,!0)._model,a,i.nextItem(e.data,o,!0)._model,a.tension);a.controlPointPreviousX=Math.max(Math.min(r.previous.x,t.right),t.left),a.controlPointPreviousY=Math.max(Math.min(r.previous.y,t.bottom),t.top),a.controlPointNextX=Math.max(Math.min(r.next.x,t.right),t.left),a.controlPointNextY=Math.max(Math.min(r.next.y,t.bottom),t.top),n.pivot()}))},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},o=t._index,a=t._model;a.radius=n.hoverRadius?n.hoverRadius:i.valueAtIndexOrDefault(e.pointHoverRadius,o,this.chart.options.elements.point.hoverRadius),a.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:i.valueAtIndexOrDefault(e.pointHoverBackgroundColor,o,i.getHoverColor(a.backgroundColor)),a.borderColor=n.hoverBorderColor?n.hoverBorderColor:i.valueAtIndexOrDefault(e.pointHoverBorderColor,o,i.getHoverColor(a.borderColor)),a.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:i.valueAtIndexOrDefault(e.pointHoverBorderWidth,o,a.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},o=t._index,a=t._model,r=this.chart.options.elements.point;a.radius=n.radius?n.radius:i.valueAtIndexOrDefault(e.pointRadius,o,r.radius),a.backgroundColor=n.backgroundColor?n.backgroundColor:i.valueAtIndexOrDefault(e.pointBackgroundColor,o,r.backgroundColor),a.borderColor=n.borderColor?n.borderColor:i.valueAtIndexOrDefault(e.pointBorderColor,o,r.borderColor),a.borderWidth=n.borderWidth?n.borderWidth:i.valueAtIndexOrDefault(e.pointBorderWidth,o,r.borderWidth)}})}},{25:25,40:40,45:45}],21:[function(t,e,n){"use strict";t(25)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),e.exports=function(t){t.controllers.scatter=t.controllers.line}},{25:25}],22:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45);o._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:i.noop,onComplete:i.noop}}),e.exports=function(t){t.Animation=a.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,o){var a,i,r=this.animations;for(e.chart=t,o||(t.animating=!0),a=0,i=r.length;a1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);var o=Date.now();t.dropFrames+=(o-e)/t.frameDuration,t.animations.length>0&&t.requestAnimationFrame()},advance:function(t){for(var e,n,o=this.animations,a=0;a=e.numSteps?(i.callback(e.onAnimationComplete,[e],n),n.animating=!1,o.splice(a,1)):++a}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,n){"use strict";var o=t(25),a=t(45),i=t(28),r=t(48);e.exports=function(t){function e(t){var e=(t=t||{}).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=a.configMerge(o.global,o[t.type],t.options||{}),t}function n(t){return"top"===t||"bottom"===t}var s=t.plugins;t.types={},t.instances={},t.controllers={},a.extend(t.prototype,{construct:function(n,o){var i=this;o=e(o);var s=r.acquireContext(n,o),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;i.id=a.uid(),i.ctx=s,i.canvas=l,i.config=o,i.width=c,i.height=u,i.aspectRatio=u?c/u:null,i.options=o.options,i._bufferedRender=!1,i.chart=i,i.controller=i,t.instances[i.id]=i,Object.defineProperty(i,"data",{get:function(){return i.config.data},set:function(t){i.config.data=t}}),s&&l?(i.initialize(),i.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return s.notify(t,"beforeInit"),a.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),s.notify(t,"afterInit"),t},clear:function(){return a.canvas.clear(this),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,o=e.canvas,i=n.maintainAspectRatio&&e.aspectRatio||null,r=Math.max(0,Math.floor(a.getMaximumWidth(o))),l=Math.max(0,Math.floor(i?r/i:a.getMaximumHeight(o)));if((e.width!==r||e.height!==l)&&(o.width=e.width=r,o.height=e.height=l,o.style.width=r+"px",o.style.height=l+"px",a.retinaScale(e,n.devicePixelRatio),!t)){var u={width:r,height:l};s.notify(e,"resize",[u]),e.options.onResize&&e.options.onResize(e,u),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;a.each(e.xAxes,(function(t,e){t.id=t.id||"x-axis-"+e})),a.each(e.yAxes,(function(t,e){t.id=t.id||"y-axis-"+e})),n&&(n.id=n.id||"scale")},buildScales:function(){var e=this,o=e.options,i=e.scales={},r=[];o.scales&&(r=r.concat((o.scales.xAxes||[]).map((function(t){return{options:t,dtype:"category",dposition:"bottom"}})),(o.scales.yAxes||[]).map((function(t){return{options:t,dtype:"linear",dposition:"left"}})))),o.scale&&r.push({options:o.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),a.each(r,(function(o){var r=o.options,s=a.valueOrDefault(r.type,o.dtype),l=t.scaleService.getScaleConstructor(s);if(l){n(r.position)!==n(o.dposition)&&(r.position=o.dposition);var u=new l({id:r.id,options:r,ctx:e.ctx,chart:e});i[u.id]=u,u.mergeTicksOptions(),o.isDefault&&(e.scale=u)}})),t.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,n=[],o=[];return a.each(e.data.datasets,(function(a,i){var r=e.getDatasetMeta(i),s=a.type||e.config.type;if(r.type&&r.type!==s&&(e.destroyDatasetMeta(i),r=e.getDatasetMeta(i)),r.type=s,n.push(r.type),r.controller)r.controller.updateIndex(i);else{var l=t.controllers[r.type];if(void 0===l)throw new Error('"'+r.type+'" is not a chart type.');r.controller=new l(e,i),o.push(r.controller)}}),e),o},resetElements:function(){var t=this;a.each(t.data.datasets,(function(e,n){t.getDatasetMeta(n).controller.reset()}),t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e=this;if(t&&"object"==l(t)||(t={duration:t,lazy:arguments[1]}),function(t){var e=t.options;e.scale?t.scale.options=e.scale:e.scales&&e.scales.xAxes.concat(e.scales.yAxes).forEach((function(e){t.scales[e.id].options=e})),t.tooltip._options=e.tooltips}(e),!1!==s.notify(e,"beforeUpdate")){e.tooltip._data=e.data;var n=e.buildOrUpdateControllers();a.each(e.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.buildOrUpdateElements()}),e),e.updateLayout(),a.each(n,(function(t){t.reset()})),e.updateDatasets(),s.notify(e,"afterUpdate"),e._bufferedRender?e._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:e.render(t)}},updateLayout:function(){var e=this;!1!==s.notify(e,"beforeLayout")&&(t.layoutService.update(this,this.width,this.height),s.notify(e,"afterScaleUpdate"),s.notify(e,"afterLayout"))},updateDatasets:function(){var t=this;if(!1!==s.notify(t,"beforeDatasetsUpdate")){for(var e=0,n=t.data.datasets.length;e=0;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);s.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this,o=n.getDatasetMeta(t),a={meta:o,index:t,easingValue:e};!1!==s.notify(n,"beforeDatasetDraw",[a])&&(o.controller.draw(e),s.notify(n,"afterDatasetDraw",[a]))},getElementAtEvent:function(t){return i.modes.single(this,t)},getElementsAtEvent:function(t){return i.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return i.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var o=i.modes[e];return"function"==typeof o?o(this,t,n):[]},getDatasetAtEvent:function(t){return i.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,n=e.data.datasets[t];n._meta||(n._meta={});var o=n._meta[e.id];return o||(o=n._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),o},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e0||(a.forEach((function(e){delete t[e]})),delete t._chartjs)}}var a=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},o.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null===e.xAxisID&&(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,o=n.getMeta(),a=n.getDataset().data||[],i=o.data;for(t=0,e=a.length;to&&t.insertElements(o,a-o)},insertElements:function(t,e){for(var n=0;n=n[e].length&&n[e].push({}),!n[e][r].type||l.type&&l.type!==n[e][r].type?i.merge(n[e][r],[t.scaleService.getScaleDefaults(s),l]):i.merge(n[e][r],l)}else i._merger(e,n,o,a)}})},i.where=function(t,e){if(i.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return i.each(t,(function(t){e(t)&&n.push(t)})),n},i.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var o=0,a=t.length;o=0;o--){var a=t[o];if(e(a))return a}},i.inherits=function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},o=function(){this.constructor=n};return o.prototype=e.prototype,n.prototype=new o,n.extend=i.inherits,t&&i.extend(n.prototype,t),n.__super__=e.prototype,n},i.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},i.almostEquals=function(t,e,n){return Math.abs(t-e)t},i.max=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.max(t,e)}),Number.NEGATIVE_INFINITY)},i.min=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.min(t,e)}),Number.POSITIVE_INFINITY)},i.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},i.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},i.toRadians=function(t){return t*(Math.PI/180)},i.toDegrees=function(t){return t*(180/Math.PI)},i.getAngleFromPoint=function(t,e){var n=e.x-t.x,o=e.y-t.y,a=Math.sqrt(n*n+o*o),i=Math.atan2(o,n);return i<-.5*Math.PI&&(i+=2*Math.PI),{angle:i,distance:a}},i.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},i.aliasPixel=function(t){return t%2==0?0:.5},i.splineCurve=function(t,e,n,o){var a=t.skip?e:t,i=e,r=n.skip?e:n,s=Math.sqrt(Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2)),l=Math.sqrt(Math.pow(r.x-i.x,2)+Math.pow(r.y-i.y,2)),u=s/(s+l),c=l/(s+l),d=o*(u=isNaN(u)?0:u),h=o*(c=isNaN(c)?0:c);return{previous:{x:i.x-d*(r.x-a.x),y:i.y-d*(r.y-a.y)},next:{x:i.x+h*(r.x-a.x),y:i.y+h*(r.y-a.y)}}},i.EPSILON=Number.EPSILON||1e-14,i.splineCurveMonotone=function(t){var e,n,o,a,r,s,l,u,c,d=(t||[]).map((function(t){return{model:t._model,deltaK:0,mK:0}})),h=d.length;for(e=0;e0?d[e-1]:null,(a=e0?d[e-1]:null,a=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},i.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},i.niceNum=function(t,e){var n=Math.floor(i.log10(t)),o=t/Math.pow(10,n);return(e?o<1.5?1:o<3?2:o<7?5:10:o<=1?1:o<=2?2:o<=5?5:10)*Math.pow(10,n)},i.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},i.getRelativePosition=function(t,e){var n,o,a=t.originalEvent||t,r=t.currentTarget||t.srcElement,s=r.getBoundingClientRect(),l=a.touches;l&&l.length>0?(n=l[0].clientX,o=l[0].clientY):(n=a.clientX,o=a.clientY);var u=parseFloat(i.getStyle(r,"padding-left")),c=parseFloat(i.getStyle(r,"padding-top")),d=parseFloat(i.getStyle(r,"padding-right")),h=parseFloat(i.getStyle(r,"padding-bottom")),f=s.right-s.left-u-d,p=s.bottom-s.top-c-h;return{x:n=Math.round((n-s.left-u)/f*r.width/e.currentDevicePixelRatio),y:o=Math.round((o-s.top-c)/p*r.height/e.currentDevicePixelRatio)}},i.getConstraintWidth=function(t){return r(t,"max-width","clientWidth")},i.getConstraintHeight=function(t){return r(t,"max-height","clientHeight")},i.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var n=parseInt(i.getStyle(e,"padding-left"),10),o=parseInt(i.getStyle(e,"padding-right"),10),a=e.clientWidth-n-o,r=i.getConstraintWidth(t);return isNaN(r)?a:Math.min(a,r)},i.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var n=parseInt(i.getStyle(e,"padding-top"),10),o=parseInt(i.getStyle(e,"padding-bottom"),10),a=e.clientHeight-n-o,r=i.getConstraintHeight(t);return isNaN(r)?a:Math.min(a,r)},i.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},i.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;if(1!==n){var o=t.canvas,a=t.height,i=t.width;o.height=a*n,o.width=i*n,t.ctx.scale(n,n),o.style.height=a+"px",o.style.width=i+"px"}},i.fontString=function(t,e,n){return e+" "+t+"px "+n},i.longestText=function(t,e,n,o){var a=(o=o||{}).data=o.data||{},r=o.garbageCollect=o.garbageCollect||[];o.font!==e&&(a=o.data={},r=o.garbageCollect=[],o.font=e),t.font=e;var s=0;i.each(n,(function(e){null!=e&&!0!==i.isArray(e)?s=i.measureText(t,a,r,s,e):i.isArray(e)&&i.each(e,(function(e){null==e||i.isArray(e)||(s=i.measureText(t,a,r,s,e))}))}));var l=r.length/2;if(l>n.length){for(var u=0;uo&&(o=i),o},i.numberOfLabelLines=function(t){var e=1;return i.each(t,(function(t){i.isArray(t)&&t.length>e&&(e=t.length)})),e},i.color=o?function(t){return t instanceof CanvasGradient&&(t=a.global.defaultColor),o(t)}:function(t){return console.error("Color.js not found!"),t},i.getHoverColor=function(t){return t instanceof CanvasPattern?t:i.color(t).saturate(.5).darken(.1).rgbString()}}},{25:25,3:3,45:45}],28:[function(t,e,n){"use strict";function o(t,e){return t.native?{x:t.x,y:t.y}:u.getRelativePosition(t,e)}function a(t,e){var n,o,a,i,r;for(o=0,i=t.data.datasets.length;o0&&(u=t.getDatasetMeta(u[0]._datasetIndex).data),u},"x-axis":function(t,e){return l(t,e,{intersect:!0})},point:function(t,e){return i(t,o(e,t))},nearest:function(t,e,n){var a=o(e,t);n.axis=n.axis||"xy";var i=s(n.axis),l=r(t,a,n.intersect,i);return l.length>1&&l.sort((function(t,e){var n=t.getArea()-e.getArea();return 0===n&&(n=t._datasetIndex-e._datasetIndex),n})),l.slice(0,1)},x:function(t,e,n){var i=o(e,t),r=[],s=!1;return a(t,(function(t){t.inXRange(i.x)&&r.push(t),t.inRange(i.x,i.y)&&(s=!0)})),n.intersect&&!s&&(r=[]),r},y:function(t,e,n){var i=o(e,t),r=[],s=!1;return a(t,(function(t){t.inYRange(i.y)&&r.push(t),t.inRange(i.x,i.y)&&(s=!0)})),n.intersect&&!s&&(r=[]),r}}}},{45:45}],29:[function(t,e,n){"use strict";t(25)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.Chart=t,t}},{25:25}],30:[function(t,e,n){"use strict";var o=t(45);e.exports=function(t){function e(t,e){return o.where(t,(function(t){return t.position===e}))}function n(t,e){t.forEach((function(t,e){return t._tmpIndex_=e,t})),t.sort((function(t,n){var o=e?n:t,a=e?t:n;return o.weight===a.weight?o._tmpIndex_-a._tmpIndex_:o.weight-a.weight})),t.forEach((function(t){delete t._tmpIndex_}))}t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var o,a=["fullWidth","position","weight"],i=a.length,r=0;rh&&lt.maxHeight){l--;break}l++,d=u*c}t.labelRotation=l},afterCalculateTickRotation:function(){s.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){s.callback(this.options.beforeFit,[this])},fit:function(){var t=this,a=t.minSize={width:0,height:0},i=o(t._ticks),r=t.options,u=r.ticks,c=r.scaleLabel,d=r.gridLines,h=r.display,f=t.isHorizontal(),p=n(u),g=r.gridLines.tickMarkLength;if(a.width=f?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:h&&d.drawTicks?g:0,a.height=f?h&&d.drawTicks?g:0:t.maxHeight,c.display&&h){var v=l(c)+s.options.toPadding(c.padding).height;f?a.height+=v:a.width+=v}if(u.display&&h){var m=s.longestText(t.ctx,p.font,i,t.longestTextCache),b=s.numberOfLabelLines(i),x=.5*p.size,y=t.options.ticks.padding;if(f){t.longestLabelWidth=m;var k=s.toRadians(t.labelRotation),w=Math.cos(k),C=Math.sin(k)*m+p.size*b+x*(b-1)+x;a.height=Math.min(t.maxHeight,a.height+C+y),t.ctx.font=p.font;var S=e(t.ctx,i[0],p.font),M=e(t.ctx,i[i.length-1],p.font);0!==t.labelRotation?(t.paddingLeft="bottom"===r.position?w*S+3:w*x+3,t.paddingRight="bottom"===r.position?w*x+3:w*M+3):(t.paddingLeft=S/2+3,t.paddingRight=M/2+3)}else u.mirror?m=0:m+=y+x,a.width=Math.min(t.maxWidth,a.width+m),t.paddingTop=p.size/2,t.paddingBottom=p.size/2}t.handleMargins(),t.width=a.width,t.height=a.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){s.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(s.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:s.noop,getPixelForValue:s.noop,getValueForPixel:s.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var o=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(n?0:1),1),a=o*t+e.paddingLeft;return n&&(a+=o/2),e.left+Math.round(a)+(e.isFullWidth()?e.margins.left:0)}var i=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(i/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft;return e.left+Math.round(n)+(e.isFullWidth()?e.margins.left:0)}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,n=t.max;return t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0},_autoSkip:function(t){var e,n,o,a,i=this,r=i.isHorizontal(),l=i.options.ticks.minor,u=t.length,c=s.toRadians(i.labelRotation),d=Math.cos(c),h=i.longestLabelWidth*d,f=[];for(l.maxTicksLimit&&(a=l.maxTicksLimit),r&&(e=!1,(h+l.autoSkipPadding)*u>i.width-(i.paddingLeft+i.paddingRight)&&(e=1+Math.floor((h+l.autoSkipPadding)*u/(i.width-(i.paddingLeft+i.paddingRight)))),a&&u>a&&(e=Math.max(e,Math.floor(u/a)))),n=0;n1&&n%e>0||n%e==0&&n+e>=u)&&n!==u-1||s.isNullOrUndef(o.label))&&delete o.label,f.push(o);return f},draw:function(t){var e=this,o=e.options;if(o.display){var r=e.ctx,u=i.global,c=o.ticks.minor,d=o.ticks.major||c,h=o.gridLines,f=o.scaleLabel,p=0!==e.labelRotation,g=e.isHorizontal(),v=c.autoSkip?e._autoSkip(e.getTicks()):e.getTicks(),m=s.valueOrDefault(c.fontColor,u.defaultFontColor),b=n(c),x=s.valueOrDefault(d.fontColor,u.defaultFontColor),y=n(d),k=h.drawTicks?h.tickMarkLength:0,w=s.valueOrDefault(f.fontColor,u.defaultFontColor),C=n(f),S=s.options.toPadding(f.padding),M=s.toRadians(e.labelRotation),_=[],I="right"===o.position?e.left:e.right-k,D="right"===o.position?e.left+k:e.right,P="bottom"===o.position?e.top:e.bottom-k,A="bottom"===o.position?e.top+k:e.bottom;if(s.each(v,(function(n,i){if(void 0!==n.label){var r,l,d,f,m=n.label;i===e.zeroLineIndex&&o.offset===h.offsetGridLines?(r=h.zeroLineWidth,l=h.zeroLineColor,d=h.zeroLineBorderDash,f=h.zeroLineBorderDashOffset):(r=s.valueAtIndexOrDefault(h.lineWidth,i),l=s.valueAtIndexOrDefault(h.color,i),d=s.valueOrDefault(h.borderDash,u.borderDash),f=s.valueOrDefault(h.borderDashOffset,u.borderDashOffset));var b,x,y,w,C,S,T,F,L,$,O="middle",z="middle",R=c.padding;if(g){var j=k+R;"bottom"===o.position?(z=p?"middle":"top",O=p?"right":"center",$=e.top+j):(z=p?"middle":"bottom",O=p?"left":"center",$=e.bottom-j);var B=a(e,i,h.offsetGridLines&&v.length>1);B1);E0)n=t.stepSize;else{var i=o.niceNum(e.max-e.min,!1);n=o.niceNum(i/(t.maxTicks-1),!0)}var r=Math.floor(e.min/n)*n,s=Math.ceil(e.max/n)*n;t.min&&t.max&&t.stepSize&&o.almostWhole((t.max-t.min)/t.stepSize,n/1e3)&&(r=t.min,s=t.max);var l=(s-r)/n;l=o.almostEquals(l,Math.round(l),n/1e3)?Math.round(l):Math.ceil(l),a.push(void 0!==t.min?t.min:r);for(var u=1;u3?n[2]-n[1]:n[1]-n[0];Math.abs(a)>1&&t!==Math.floor(t)&&(a=t-Math.floor(t));var i=o.log10(Math.abs(a)),r="";if(0!==t){var s=-1*Math.floor(i);s=Math.max(Math.min(s,20),0),r=t.toFixed(s)}else r="0";return r},logarithmic:function(t,e,n){var a=t/Math.pow(10,Math.floor(o.log10(t)));return 0===t?"0":1===a||2===a||5===a||0===e||e===n.length-1?t.toExponential():""}}}},{45:45}],35:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45);o._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:i.noop,title:function(t,e){var n="",o=e.labels,a=o?o.length:0;if(t.length>0){var i=t[0];i.xLabel?n=i.xLabel:a>0&&i.indexo.height-e.height&&(r="bottom");var s,l,u,c,d,h=(a.left+a.right)/2,f=(a.top+a.bottom)/2;"center"===r?(s=function(t){return t<=h},l=function(t){return t>h}):(s=function(t){return t<=e.width/2},l=function(t){return t>=o.width-e.width/2}),u=function(t){return t+e.width>o.width},c=function(t){return t-e.width<0},d=function(t){return t<=f?"top":"bottom"},s(n.x)?(i="left",u(n.x)&&(i="center",r=d(n.y))):l(n.x)&&(i="right",c(n.x)&&(i="center",r=d(n.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:i,yAlign:p.yAlign?p.yAlign:r}}(this,g))}else c.opacity=0;return c.xAlign=f.xAlign,c.yAlign=f.yAlign,c.x=p.x,c.y=p.y,c.width=g.width,c.height=g.height,c.caretX=v.x,c.caretY=v.y,a._model=c,e&&l.custom&&l.custom.call(a,c),a},drawCaret:function(t,e){var n=this._chart.ctx,o=this._view,a=this.getCaretPosition(t,e,o);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)},getCaretPosition:function(t,e,n){var o,a,i,r,s,l,u=n.caretSize,c=n.cornerRadius,d=n.xAlign,h=n.yAlign,f=t.x,p=t.y,g=e.width,v=e.height;if("center"===h)s=p+v/2,"left"===d?(a=(o=f)-u,i=o,r=s+u,l=s-u):(a=(o=f+g)+u,i=o,r=s-u,l=s+u);else if("left"===d?(o=(a=f+c+u)-u,i=a+u):"right"===d?(o=(a=f+g-c-u)-u,i=a+u):(o=(a=f+g/2)-u,i=a+u),"top"===h)s=(r=p)-u,l=r;else{s=(r=p+v)+u,l=r;var m=i;i=o,o=m}return{x1:o,x2:a,x3:i,y1:r,y2:s,y3:l}},drawTitle:function(t,n,o,a){var r=n.title;if(r.length){o.textAlign=n._titleAlign,o.textBaseline="top";var s,l,u=n.titleFontSize,c=n.titleSpacing;for(o.fillStyle=e(n.titleFontColor,a),o.font=i.fontString(u,n._titleFontStyle,n._titleFontFamily),s=0,l=r.length;s0&&o.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},o={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity,i=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&i&&(this.drawBackground(o,e,t,n,a),o.x+=e.xPadding,o.y+=e.yPadding,this.drawTitle(o,e,t,a),this.drawBody(o,e,t,a),this.drawFooter(o,e,t,a))}},handleEvent:function(t){var e=this,n=e._options,o=!1;if(e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:e._active=e._chart.getElementsAtEventForMode(t,n.mode,n),!(o=!i.arrayEquals(e._active,e._lastActive)))return!1;if(e._lastActive=e._active,n.enabled||n.custom){e._eventPosition={x:t.x,y:t.y};var a=e._model;e.update(!0),e.pivot(),o|=a.x!==e._model.x||a.y!==e._model.y}return o}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,n,o=0,a=0,i=0;for(e=0,n=t.length;el;)a-=2*Math.PI;for(;a=s&&a<=l,c=r>=n.innerRadius&&r<=n.outerRadius;return u&&c}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,o=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,o),t.arc(e.x,e.y,e.innerRadius,o,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45),r=o.global;o._set("global",{elements:{line:{tension:.4,backgroundColor:r.defaultColor,borderWidth:3,borderColor:r.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var t,e,n,o,a=this,s=a._view,l=a._chart.ctx,u=s.spanGaps,c=a._children.slice(),d=r.elements.line,h=-1;for(a._loop&&c.length&&c.push(c[0]),l.save(),l.lineCap=s.borderCapStyle||d.borderCapStyle,l.setLineDash&&l.setLineDash(s.borderDash||d.borderDash),l.lineDashOffset=s.borderDashOffset||d.borderDashOffset,l.lineJoin=s.borderJoinStyle||d.borderJoinStyle,l.lineWidth=s.borderWidth||d.borderWidth,l.strokeStyle=s.borderColor||r.defaultColor,l.beginPath(),h=-1,t=0;te?1:-1,r=1,s=u.borderSkipped||"left"):(e=u.x-u.width/2,n=u.x+u.width/2,o=u.y,i=1,r=(a=u.base)>o?1:-1,s=u.borderSkipped||"bottom"),c){var d=Math.min(Math.abs(e-n),Math.abs(o-a)),h=(c=c>d?d:c)/2,f=e+("left"!==s?h*i:0),p=n+("right"!==s?-h*i:0),g=o+("top"!==s?h*r:0),v=a+("bottom"!==s?-h*r:0);f!==p&&(o=g,a=v),g!==v&&(e=f,n=p)}l.beginPath(),l.fillStyle=u.backgroundColor,l.strokeStyle=u.borderColor,l.lineWidth=c;var m=[[e,a],[e,o],[n,o],[n,a]],b=["bottom","left","top","right"].indexOf(s,0);-1===b&&(b=0);var x=t(0);l.moveTo(x[0],x[1]);for(var y=1;y<4;y++)x=t(y),l.lineTo(x[0],x[1]);l.fill(),c&&l.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n=!1;if(this._view){var o=a(this);n=t>=o.left&&t<=o.right&&e>=o.top&&e<=o.bottom}return n},inLabelRange:function(t,e){var n=this;if(!n._view)return!1;var i=a(n);return o(n)?t>=i.left&&t<=i.right:e>=i.top&&e<=i.bottom},inXRange:function(t){var e=a(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=a(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,n=this._view;return o(this)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,n){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,n){"use strict";var o=t(42);n=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,o,a,i){if(i){var r=Math.min(i,o/2),s=Math.min(i,a/2);t.moveTo(e+r,n),t.lineTo(e+o-r,n),t.quadraticCurveTo(e+o,n,e+o,n+s),t.lineTo(e+o,n+a-s),t.quadraticCurveTo(e+o,n+a,e+o-r,n+a),t.lineTo(e+r,n+a),t.quadraticCurveTo(e,n+a,e,n+a-s),t.lineTo(e,n+s),t.quadraticCurveTo(e,n,e+r,n)}else t.rect(e,n,o,a)},drawPoint:function(t,e,n,o,a){var i,r,s,u,c,d;if("object"!=l(e)||"[object HTMLImageElement]"!==(i=e.toString())&&"[object HTMLCanvasElement]"!==i){if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(o,a,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),c=(r=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(o-r/2,a+c/3),t.lineTo(o+r/2,a+c/3),t.lineTo(o,a-2*c/3),t.closePath(),t.fill();break;case"rect":d=1/Math.SQRT2*n,t.beginPath(),t.fillRect(o-d,a-d,2*d,2*d),t.strokeRect(o-d,a-d,2*d,2*d);break;case"rectRounded":var h=n/Math.SQRT2,f=o-h,p=a-h,g=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,f,p,g,g,n/2),t.closePath(),t.fill();break;case"rectRot":d=1/Math.SQRT2*n,t.beginPath(),t.moveTo(o-d,a),t.lineTo(o,a+d),t.lineTo(o+d,a),t.lineTo(o,a-d),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(o,a+n),t.lineTo(o,a-n),t.moveTo(o-n,a),t.lineTo(o+n,a),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,t.moveTo(o-s,a-u),t.lineTo(o+s,a+u),t.moveTo(o-s,a+u),t.lineTo(o+s,a-u),t.closePath();break;case"star":t.beginPath(),t.moveTo(o,a+n),t.lineTo(o,a-n),t.moveTo(o-n,a),t.lineTo(o+n,a),s=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,t.moveTo(o-s,a-u),t.lineTo(o+s,a+u),t.moveTo(o-s,a+u),t.lineTo(o+s,a-u),t.closePath();break;case"line":t.beginPath(),t.moveTo(o-n,a),t.lineTo(o+n,a),t.closePath();break;case"dash":t.beginPath(),t.moveTo(o,a),t.lineTo(o+n,a),t.closePath()}t.stroke()}}else t.drawImage(e,o-e.width/2,a-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,o){if(n.steppedLine)return"after"===n.steppedLine&&!o||"after"!==n.steppedLine&&o?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y);n.tension?t.bezierCurveTo(o?e.controlPointPreviousX:e.controlPointNextX,o?e.controlPointPreviousY:e.controlPointNextY,o?n.controlPointNextX:n.controlPointPreviousX,o?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}},o.clear=n.clear,o.drawRoundedRectangle=function(t){t.beginPath(),n.roundedRect.apply(n,arguments),t.closePath()}},{42:42}],42:[function(t,e,n){"use strict";var o={noop:function(){},uid:function(){var t=0;return function(){return t++}}(),isNullOrUndef:function(t){return null==t},isArray:Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return o.valueOrDefault(o.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,a){var i,r,s;if(o.isArray(t))if(r=t.length,a)for(i=r-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;i=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,o=1;return 0===t?0:1===t?1:(n||(n=.3),o<1?(o=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/o),-o*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,o=1;return 0===t?0:1===t?1:(n||(n=.3),o<1?(o=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/o),o*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,o=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),o<1?(o=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/o),t<1?o*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:o*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-a.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*a.easeInBounce(2*t):.5*a.easeOutBounce(2*t-1)+.5}};e.exports={effects:a},o.easingEffects=a},{42:42}],44:[function(t,e,n){"use strict";var o=t(42);e.exports={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,a,i;return o.isObject(t)?(e=+t.top||0,n=+t.right||0,a=+t.bottom||0,i=+t.left||0):e=n=a=i=+t||0,{top:e,right:n,bottom:a,left:i,height:e+a,width:i+n}},resolve:function(t,e,n){var a,i,r;for(a=0,i=t.length;a
    ';var i=e.childNodes[0],r=e.childNodes[1];e._reset=function(){i.scrollLeft=1e6,i.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6};var s=function(){e._reset(),t()};return a(i,"scroll",s.bind(i,"expand")),a(r,"scroll",s.bind(r,"shrink")),e}(function(t,e){var n=!1,o=[];return function(){o=Array.prototype.slice.call(arguments),e=e||this,n||(n=!0,u.requestAnimFrame.call(window,(function(){n=!1,t.apply(e,o)})))}}((function(){if(o.resizer)return e(r("resize",n))})));!function(t,e){var n=(t[c]||(t[c]={})).renderProxy=function(t){t.animationName===f&&e()};u.each(p,(function(e){a(t,e,n)})),t.classList.add(h)}(t,(function(){if(o.resizer){var e=t.parentNode;e&&e!==i.parentNode&&e.insertBefore(i,e.firstChild),i._reset()}}))}function l(t){var e=t[c]||{},n=e.resizer;delete e.resizer,function(t){var e=t[c]||{},n=e.renderProxy;n&&(u.each(p,(function(e){i(t,e,n)})),delete e.renderProxy),t.classList.remove(h)}(t),n&&n.parentNode&&n.parentNode.removeChild(n)}var u=t(45),c="$chartjs",d="chartjs-",h=d+"render-monitor",f=d+"render-animation",p=["animationstart","webkitAnimationStart"],g={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},v=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t="from{opacity:0.99}to{opacity:1}";!function(t,e){var n=t._style||document.createElement("style");t._style||(t._style=n,e="/* Chart.js */\n"+e,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(e))}(this,"@-webkit-keyframes "+f+"{"+t+"}@keyframes "+f+"{"+t+"}."+h+"{-webkit-animation:"+f+" 0.001s;animation:"+f+" 0.001s;}")},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){var n=t.style,a=t.getAttribute("height"),i=t.getAttribute("width");if(t[c]={initial:{height:a,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===i||""===i){var r=o(t,"width");void 0!==r&&(t.width=r)}if(null===a||""===a)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var s=o(t,"height");void 0!==r&&(t.height=s)}}(t,e),n):null},releaseContext:function(t){var e=t.canvas;if(e[c]){var n=e[c].initial;["height","width"].forEach((function(t){var o=n[t];u.isNullOrUndef(o)?e.removeAttribute(t):e.setAttribute(t,o)})),u.each(n.style||{},(function(t,n){e.style[n]=t})),e.width=e.width,delete e[c]}},addEventListener:function(t,e,n){var o=t.canvas;if("resize"!==e){var i=n[c]||(n[c]={});a(o,e,(i.proxies||(i.proxies={}))[t.id+"_"+e]=function(e){n(function(t,e){var n=g[t.type]||t.type,o=u.getRelativePosition(t,e);return r(n,e,o.x,o.y,t)}(e,t))})}else s(o,n,t)},removeEventListener:function(t,e,n){var o=t.canvas;if("resize"!==e){var a=((n[c]||{}).proxies||{})[t.id+"_"+e];a&&i(o,e,a)}else l(o)}},u.addEvent=a,u.removeEvent=i},{45:45}],48:[function(t,e,n){"use strict";var o=t(45),a=t(46),i=t(47),r=i._enabled?i:a;e.exports=o.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},r)},{45:45,46:46,47:47}],49:[function(t,e,n){"use strict";var o=t(25),a=t(40),i=t(45);o._set("global",{plugins:{filler:{propagate:!0}}}),e.exports=function(){function t(t,e,n){var o,a=t._model||{},i=a.fill;if(void 0===i&&(i=!!a.backgroundColor),!1===i||null===i)return!1;if(!0===i)return"origin";if(o=parseFloat(i,10),isFinite(o)&&Math.floor(o)===o)return"-"!==i[0]&&"+"!==i[0]||(o=e+o),!(o===e||o<0||o>=n)&&o;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}function e(t){var e,n=t.el._model||{},o=t.el._scale||{},a=t.fill,i=null;if(isFinite(a))return null;if("start"===a?i=void 0===n.scaleBottom?o.bottom:n.scaleBottom:"end"===a?i=void 0===n.scaleTop?o.top:n.scaleTop:void 0!==n.scaleZero?i=n.scaleZero:o.getBasePosition?i=o.getBasePosition():o.getBasePixel&&(i=o.getBasePixel()),null!=i){if(void 0!==i.x&&void 0!==i.y)return i;if("number"==typeof i&&isFinite(i))return{x:(e=o.isHorizontal())?i:null,y:e?null:i}}return null}function n(t,e,n){var o,a=t[e].fill,i=[e];if(!n)return a;for(;!1!==a&&-1===i.indexOf(a);){if(!isFinite(a))return a;if(!(o=t[a]))return!1;if(o.visible)return a;i.push(a),a=o.fill}return!1}function r(t){var e=t.fill,n="dataset";return!1===e?null:(isFinite(e)||(n="boundary"),c[n](t))}function s(t){return t&&!t.skip}function l(t,e,n,o,a){var r;if(o&&a){for(t.moveTo(e[0].x,e[0].y),r=1;r0;--r)i.canvas.lineTo(t,n[r],n[r-1],!0)}}function u(t,e,n,o,a,i){var r,u,c,d,h,f,p,g=e.length,v=o.spanGaps,m=[],b=[],x=0,y=0;for(t.beginPath(),r=0,u=g+!!i;r');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("");return e.push(""),e.join("")}}),e.exports=function(t){function e(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function n(e,n){var o=new t.Legend({ctx:e.ctx,options:n,chart:e});r.configure(e,o,n),r.addBox(e,o),e.legend=o}var r=t.layoutService,s=i.noop;return t.Legend=a.extend({initialize:function(t){i.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:s,update:function(t,e,n){var o=this;return o.beforeUpdate(),o.maxWidth=t,o.maxHeight=e,o.margins=n,o.beforeSetDimensions(),o.setDimensions(),o.afterSetDimensions(),o.beforeBuildLabels(),o.buildLabels(),o.afterBuildLabels(),o.beforeFit(),o.fit(),o.afterFit(),o.afterUpdate(),o.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function(){var t=this,e=t.options.labels||{},n=i.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter((function(n){return e.filter(n,t.chart.data)}))),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:s,beforeFit:s,fit:function(){var t=this,n=t.options,a=n.labels,r=n.display,s=t.ctx,l=o.global,u=i.valueOrDefault,c=u(a.fontSize,l.defaultFontSize),d=u(a.fontStyle,l.defaultFontStyle),h=u(a.fontFamily,l.defaultFontFamily),f=i.fontString(c,d,h),p=t.legendHitBoxes=[],g=t.minSize,v=t.isHorizontal();if(v?(g.width=t.maxWidth,g.height=r?10:0):(g.width=r?10:0,g.height=t.maxHeight),r)if(s.font=f,v){var m=t.lineWidths=[0],b=t.legendItems.length?c+a.padding:0;s.textAlign="left",s.textBaseline="top",i.each(t.legendItems,(function(n,o){var i=e(a,c)+c/2+s.measureText(n.text).width;m[m.length-1]+i+a.padding>=t.width&&(b+=c+a.padding,m[m.length]=t.left),p[o]={left:0,top:0,width:i,height:c},m[m.length-1]+=i+a.padding})),g.height+=b}else{var x=a.padding,y=t.columnWidths=[],k=a.padding,w=0,C=0,S=c+x;i.each(t.legendItems,(function(t,n){var o=e(a,c)+c/2+s.measureText(t.text).width;C+S>g.height&&(k+=w+a.padding,y.push(w),w=0,C=0),w=Math.max(w,o),C+=S,p[n]={left:0,top:0,width:o,height:c}})),k+=w,y.push(w),g.width+=k}t.width=g.width,t.height=g.height},afterFit:s,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,n=t.options,a=n.labels,r=o.global,s=r.elements.line,l=t.width,u=t.lineWidths;if(n.display){var c,d=t.ctx,h=i.valueOrDefault,f=h(a.fontColor,r.defaultFontColor),p=h(a.fontSize,r.defaultFontSize),g=h(a.fontStyle,r.defaultFontStyle),v=h(a.fontFamily,r.defaultFontFamily),m=i.fontString(p,g,v);d.textAlign="left",d.textBaseline="middle",d.lineWidth=.5,d.strokeStyle=f,d.fillStyle=f,d.font=m;var b=e(a,p),x=t.legendHitBoxes,y=function(t,e,o){if(!(isNaN(b)||b<=0)){d.save(),d.fillStyle=h(o.fillStyle,r.defaultColor),d.lineCap=h(o.lineCap,s.borderCapStyle),d.lineDashOffset=h(o.lineDashOffset,s.borderDashOffset),d.lineJoin=h(o.lineJoin,s.borderJoinStyle),d.lineWidth=h(o.lineWidth,s.borderWidth),d.strokeStyle=h(o.strokeStyle,r.defaultColor);var a=0===h(o.lineWidth,s.borderWidth);if(d.setLineDash&&d.setLineDash(h(o.lineDash,s.borderDash)),n.labels&&n.labels.usePointStyle){var l=p*Math.SQRT2/2,u=l/Math.SQRT2,c=t+u,f=e+u;i.canvas.drawPoint(d,o.pointStyle,l,c,f)}else a||d.strokeRect(t,e,b,p),d.fillRect(t,e,b,p);d.restore()}},k=t.isHorizontal();c=k?{x:t.left+(l-u[0])/2,y:t.top+a.padding,line:0}:{x:t.left+a.padding,y:t.top+a.padding,line:0};var w=p+a.padding;i.each(t.legendItems,(function(e,n){var o=d.measureText(e.text).width,i=b+p/2+o,r=c.x,s=c.y;k?r+i>=l&&(s=c.y+=w,c.line++,r=c.x=t.left+(l-u[c.line])/2):s+w>t.bottom&&(r=c.x=r+t.columnWidths[c.line]+a.padding,s=c.y=t.top+a.padding,c.line++),y(r,s,e),x[n].left=r,x[n].top=s,function(t,e,n,o){var a=p/2,i=b+a+t,r=e+a;d.fillText(n.text,i,r),n.hidden&&(d.beginPath(),d.lineWidth=2,d.moveTo(i,r),d.lineTo(i+o,r),d.stroke())}(r,s,e,o),k?c.x+=i+a.padding:c.y+=w}))}},handleEvent:function(t){var e=this,n=e.options,o="mouseup"===t.type?"click":t.type,a=!1;if("mousemove"===o){if(!n.onHover)return}else{if("click"!==o)return;if(!n.onClick)return}var i=t.x,r=t.y;if(i>=e.left&&i<=e.right&&r>=e.top&&r<=e.bottom)for(var s=e.legendHitBoxes,l=0;l=u.left&&i<=u.left+u.width&&r>=u.top&&r<=u.top+u.height){if("click"===o){n.onClick.call(e,t.native,e.legendItems[l]),a=!0;break}if("mousemove"===o){n.onHover.call(e,t.native,e.legendItems[l]),a=!0;break}}}return a}}),{id:"legend",beforeInit:function(t){var e=t.options.legend;e&&n(t,e)},beforeUpdate:function(t){var e=t.options.legend,a=t.legend;e?(i.mergeIf(e,o.global.legend),a?(r.configure(t,a,e),a.options=e):n(t,e)):a&&(r.removeBox(t,a),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}}}},{25:25,26:26,45:45}],51:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45);o._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),e.exports=function(t){function e(e,o){var a=new t.Title({ctx:e.ctx,options:o,chart:e});n.configure(e,a,o),n.addBox(e,a),e.titleBlock=a}var n=t.layoutService,r=i.noop;return t.Title=a.extend({initialize:function(t){i.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:r,update:function(t,e,n){var o=this;return o.beforeUpdate(),o.maxWidth=t,o.maxHeight=e,o.margins=n,o.beforeSetDimensions(),o.setDimensions(),o.afterSetDimensions(),o.beforeBuildLabels(),o.buildLabels(),o.afterBuildLabels(),o.beforeFit(),o.fit(),o.afterFit(),o.afterUpdate(),o.minSize},afterUpdate:r,beforeSetDimensions:r,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:r,beforeBuildLabels:r,buildLabels:r,afterBuildLabels:r,beforeFit:r,fit:function(){var t=this,e=i.valueOrDefault,n=t.options,a=n.display,r=e(n.fontSize,o.global.defaultFontSize),s=t.minSize,l=i.isArray(n.text)?n.text.length:1,u=i.options.toLineHeight(n.lineHeight,r),c=a?l*u+2*n.padding:0;t.isHorizontal()?(s.width=t.maxWidth,s.height=c):(s.width=c,s.height=t.maxHeight),t.width=s.width,t.height=s.height},afterFit:r,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=i.valueOrDefault,a=t.options,r=o.global;if(a.display){var s,l,u,c=n(a.fontSize,r.defaultFontSize),d=n(a.fontStyle,r.defaultFontStyle),h=n(a.fontFamily,r.defaultFontFamily),f=i.fontString(c,d,h),p=i.options.toLineHeight(a.lineHeight,c),g=p/2+a.padding,v=0,m=t.top,b=t.left,x=t.bottom,y=t.right;e.fillStyle=n(a.fontColor,r.defaultFontColor),e.font=f,t.isHorizontal()?(l=b+(y-b)/2,u=m+g,s=y-b):(l="left"===a.position?b+g:y-g,u=m+(x-m)/2,s=x-m,v=Math.PI*("left"===a.position?-.5:.5)),e.save(),e.translate(l,u),e.rotate(v),e.textAlign="center",e.textBaseline="middle";var k=a.text;if(i.isArray(k))for(var w=0,C=0;Ce.max)&&(e.max=o))}))}));e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this,n=e.options.ticks;if(e.isHorizontal())t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.width/50));else{var i=a.valueOrDefault(n.fontSize,o.global.defaultFontSize);t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.height/(2*i)))}return t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,n=this,o=n.start,a=+n.getRightValue(t),i=n.end-o;return n.isHorizontal()?(e=n.left+n.width/i*(a-o),Math.round(e)):(e=n.bottom-n.height/i*(a-o),Math.round(e))},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),o=n?e.width:e.height,a=(n?t-e.left:e.bottom-t)/o;return e.start+(e.end-e.start)*a},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,e)}},{25:25,34:34,45:45}],54:[function(t,e,n){"use strict";var o=t(45),a=t(34);e.exports=function(t){var e=o.noop;t.LinearScaleBase=t.Scale.extend({getRightValue:function(e){return"string"==typeof e?+e:t.Scale.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=o.sign(t.min),a=o.sign(t.max);n<0&&a<0?t.max=0:n>0&&a>0&&(t.min=0)}var i=void 0!==e.min||void 0!==e.suggestedMin,r=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),i!==r&&t.min>=t.max&&(i?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,stepSize:o.valueOrDefault(e.fixedStepSize,e.stepSize)},r=t.ticks=a.generators.linear(i,t);t.handleDirectionalChanges(),t.max=o.max(r),t.min=o.min(r),e.reverse?(r.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{34:34,45:45}],55:[function(t,e,n){"use strict";var o=t(45),a=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:a.formatters.logarithmic}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return l?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,a=n.ticks,i=e.chart,r=i.data.datasets,s=o.valueOrDefault,l=e.isHorizontal();e.min=null,e.max=null,e.minNotZero=null;var u=n.stacked;if(void 0===u&&o.each(r,(function(e,n){if(!u){var o=i.getDatasetMeta(n);i.isDatasetVisible(n)&&t(o)&&void 0!==o.stack&&(u=!0)}})),n.stacked||u){var c={};o.each(r,(function(a,r){var s=i.getDatasetMeta(r),l=[s.type,void 0===n.stacked&&void 0===s.stack?r:"",s.stack].join(".");i.isDatasetVisible(r)&&t(s)&&(void 0===c[l]&&(c[l]=[]),o.each(a.data,(function(t,o){var a=c[l],i=+e.getRightValue(t);isNaN(i)||s.data[o].hidden||(a[o]=a[o]||0,n.relativePoints?a[o]=100:a[o]+=i)})))})),o.each(c,(function(t){var n=o.min(t),a=o.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?a:Math.max(e.max,a)}))}else o.each(r,(function(n,a){var r=i.getDatasetMeta(a);i.isDatasetVisible(a)&&t(r)&&o.each(n.data,(function(t,n){var o=+e.getRightValue(t);isNaN(o)||r.data[n].hidden||((null===e.min||oe.max)&&(e.max=o),0!==o&&(null===e.minNotZero||oa?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function l(t){return 0===t||180===t?"center":t<180?"left":"right"}function u(t,e,n,o){if(a.isArray(e))for(var i=n.y,r=1.5*o,s=0;s270||t<90)&&(n.y-=e.h)}function d(t){var o=t.ctx,i=a.valueOrDefault,r=t.options,s=r.angleLines,d=r.pointLabels;o.lineWidth=s.lineWidth,o.strokeStyle=s.color;var h=t.getDistanceFromCenterForValue(r.ticks.reverse?t.min:t.max),f=n(t);o.textBaseline="top";for(var g=e(t)-1;g>=0;g--){if(s.display){var v=t.getPointPosition(g,h);o.beginPath(),o.moveTo(t.xCenter,t.yCenter),o.lineTo(v.x,v.y),o.stroke(),o.closePath()}if(d.display){var m=t.getPointPosition(g,h+5),b=i(d.fontColor,p.defaultFontColor);o.font=f.font,o.fillStyle=b;var x=t.getIndexAngle(g),y=a.toDegrees(x);o.textAlign=l(y),c(y,t._pointLabelSizes[g],m),u(o,t.pointLabels[g]||"",m,f.size)}}}function h(t,n,o,i){var r=t.ctx;if(r.strokeStyle=a.valueAtIndexOrDefault(n.color,i-1),r.lineWidth=a.valueAtIndexOrDefault(n.lineWidth,i-1),t.options.gridLines.circular)r.beginPath(),r.arc(t.xCenter,t.yCenter,o,0,2*Math.PI),r.closePath(),r.stroke();else{var s=e(t);if(0===s)return;r.beginPath();var l=t.getPointPosition(0,o);r.moveTo(l.x,l.y);for(var u=1;ud.r&&(d.r=v.end,h.r=p),m.startd.b&&(d.b=m.end,h.b=p)}t.setReductions(c,d,h)}(this):function(t){var e=Math.min(t.height/2,t.width/2);t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0)}(this)},setReductions:function(t,e,n){var o=this,a=e.l/Math.sin(n.l),i=Math.max(e.r-o.width,0)/Math.sin(n.r),r=-e.t/Math.cos(n.t),s=-Math.max(e.b-o.height,0)/Math.cos(n.b);a=f(a),i=f(i),r=f(r),s=f(s),o.drawingArea=Math.min(Math.round(t-(a+i)/2),Math.round(t-(r+s)/2)),o.setCenterPoint(a,i,r,s)},setCenterPoint:function(t,e,n,o){var a=this,i=a.width-e-a.drawingArea,r=t+a.drawingArea,s=n+a.drawingArea,l=a.height-o-a.drawingArea;a.xCenter=Math.round((r+i)/2+a.left),a.yCenter=Math.round((s+l)/2+a.top)},getIndexAngle:function(t){return t*(2*Math.PI/e(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var n=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*n:(t-e.min)*n},getPointPosition:function(t,e){var n=this,o=n.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(o)*e)+n.xCenter,y:Math.round(Math.sin(o)*e)+n.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this,e=t.min,n=t.max;return t.getPointPositionForValue(0,t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0)},draw:function(){var t=this,e=t.options,n=e.gridLines,o=e.ticks,i=a.valueOrDefault;if(e.display){var r=t.ctx,s=this.getIndexAngle(0),l=i(o.fontSize,p.defaultFontSize),u=i(o.fontStyle,p.defaultFontStyle),c=i(o.fontFamily,p.defaultFontFamily),f=a.fontString(l,u,c);a.each(t.ticks,(function(e,a){if(a>0||o.reverse){var u=t.getDistanceFromCenterForValue(t.ticksAsNumbers[a]);if(n.display&&0!==a&&h(t,n,u,a),o.display){var c=i(o.fontColor,p.defaultFontColor);if(r.font=f,r.save(),r.translate(t.xCenter,t.yCenter),r.rotate(s),o.showLabelBackdrop){var d=r.measureText(e).width;r.fillStyle=o.backdropColor,r.fillRect(-d/2-o.backdropPaddingX,-u-l/2-o.backdropPaddingY,d+2*o.backdropPaddingX,l+2*o.backdropPaddingY)}r.textAlign="center",r.textBaseline="middle",r.fillStyle=c,r.fillText(e,0,-u),r.restore()}}})),(e.angleLines.display||e.pointLabels.display)&&d(t)}}});t.scaleService.registerScaleType("radialLinear",v,g)}},{25:25,34:34,45:45}],57:[function(t,e,n){"use strict";function o(t,e){return t-e}function a(t){var e,n,o,a={},i=[];for(e=0,n=t.length;e=0&&r<=s;){if(a=t[(o=r+s>>1)-1]||null,i=t[o],!a)return{lo:null,hi:i};if(i[e]n))return{lo:a,hi:i};s=o-1}}return{lo:i,hi:null}}(t,e,n),i=a.lo?a.hi?a.lo:t[t.length-2]:t[0],r=a.lo?a.hi?a.hi:t[t.length-1]:t[1],s=r[e]-i[e],l=s?(n-i[e])/s:0,u=(r[o]-i[o])*l;return i[o]+u}function r(t,e){var n=e.parser,o=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof o?h(t,o):(t instanceof h||(t=h(t)),t.isValid()?t:"function"==typeof o?o(t):t)}function s(t,e){if(p.isNullOrUndef(t))return null;var n=e.options.time,o=r(e.getRightValue(t),n);return o.isValid()?(n.round&&o.startOf(n.round),o.valueOf()):null}function l(t,e,n,o){var a,i,r,s=b.length;for(a=b.indexOf(t);a1?e[1]:o,s=e[0],l=(i(t,"time",r,"pos")-i(t,"time",s,"pos"))/2),a.time.max||(r=e[e.length-1],s=e.length>1?e[e.length-2]:n,u=(i(t,"time",r,"pos")-i(t,"time",s,"pos"))/2)),{left:l,right:u}}function d(t,e){var n,o,a,i,r=[];for(n=0,o=t.length;n=a&&n<=i&&y.push(n);return o.min=a,o.max=i,o._unit=g,o._majorUnit=v,o._minorFormat=f[g],o._majorFormat=f[v],o._table=function(t,e,n,o){if("linear"===o||!t.length)return[{time:e,pos:0},{time:n,pos:1}];var a,i,r,s,l,u=[],c=[e];for(a=0,i=t.length;ae&&s=0&&t{function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}n(8636),n(5086),n(8329),n(8772),n(4913),n(9693),n(115),n(7136),n(173),n(9073),n(6048),n(9581),n(3534),n(590),n(4216),n(8665),n(9979),n(4602),function(t){"use strict";var e=function(e,n){t.fn.typeahead.defaults;n.scrollBar&&(n.items=100,n.menu='');var o=this;if(o.$element=t(e),o.options=t.extend({},t.fn.typeahead.defaults,n),o.$menu=t(o.options.menu).insertAfter(o.$element),o.eventSupported=o.options.eventSupported||o.eventSupported,o.grepper=o.options.grepper||o.grepper,o.highlighter=o.options.highlighter||o.highlighter,o.lookup=o.options.lookup||o.lookup,o.matcher=o.options.matcher||o.matcher,o.render=o.options.render||o.render,o.onSelect=o.options.onSelect||null,o.sorter=o.options.sorter||o.sorter,o.source=o.options.source||o.source,o.displayField=o.options.displayField||o.displayField,o.valueField=o.options.valueField||o.valueField,o.options.ajax){var a=o.options.ajax;"string"==typeof a?o.ajax=t.extend({},t.fn.typeahead.defaults.ajax,{url:a}):("string"==typeof a.displayField&&(o.displayField=o.options.displayField=a.displayField),"string"==typeof a.valueField&&(o.valueField=o.options.valueField=a.valueField),o.ajax=t.extend({},t.fn.typeahead.defaults.ajax,a)),o.ajax.url||(o.ajax=null),o.query=""}else o.source=o.options.source,o.ajax=null;o.shown=!1,o.listen()};e.prototype={constructor:e,eventSupported:function(t){var e=t in this.$element;return e||(this.$element.setAttribute(t,"return;"),e="function"==typeof this.$element[t]),e},select:function(){var t=this.$menu.find(".active").attr("data-value"),e=this.$menu.find(".active a").text();return this.options.onSelect&&this.options.onSelect({value:t,text:e}),this.$element.val(this.updater(e)).change(),this.hide()},updater:function(t){return t},show:function(){var e=t.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});if(this.$menu.css({top:e.top+e.height,left:e.left}),this.options.alignWidth){var n=t(this.$element[0]).outerWidth();this.$menu.css({width:n})}return this.$menu.show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},ajaxLookup:function(){var e=t.trim(this.$element.val());if(e===this.query)return this;if(this.query=e,this.ajax.timerId&&(clearTimeout(this.ajax.timerId),this.ajax.timerId=null),!e||e.length"+e+""}))},render:function(e){var n,a=this,i="string"==typeof a.options.displayField;return(e=t(e).map((function(e,r){return"object"===o(r)?(n=i?r[a.options.displayField]:a.options.displayField(r),e=t(a.options.item).attr("data-value",r[a.options.valueField])):(n=r,e=t(a.options.item).attr("data-value",r)),e.find("a").html(a.highlighter(n)),e[0]}))).first().addClass("active"),this.$menu.html(e),this},grepper:function(e){var n,o,a=this,i="string"==typeof a.options.displayField;if(!(i&&e&&e.length))return null;if(e[0].hasOwnProperty(a.options.displayField))n=t.grep(e,(function(t){return o=i?t[a.options.displayField]:a.options.displayField(t),a.matcher(o)}));else{if("string"!=typeof e[0])return null;n=t.grep(e,(function(t){return a.matcher(t)}))}return this.sorter(n)},next:function(e){var n=this.$menu.find(".active").removeClass("active").next();if(n.length||(n=t(this.$menu.find("li")[0])),this.options.scrollBar){var o=this.$menu.children("li").index(n);o%8==0&&this.$menu.scrollTop(26*o)}n.addClass("active")},prev:function(t){var e=this.$menu.find(".active").removeClass("active").prev();if(e.length||(e=this.$menu.find("li").last()),this.options.scrollBar){var n=this.$menu.children("li"),o=n.length-1,a=n.index(e);(o-a)%8==0&&this.$menu.scrollTop(26*(a-7))}e.addClass("active")},listen:function(){this.$element.on("focus",t.proxy(this.focus,this)).on("blur",t.proxy(this.blur,this)).on("keypress",t.proxy(this.keypress,this)).on("keyup",t.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",t.proxy(this.keydown,this)),this.$menu.on("click",t.proxy(this.click,this)).on("mouseenter","li",t.proxy(this.mouseenter,this)).on("mouseleave","li",t.proxy(this.mouseleave,this))},move:function(t){if(this.shown){switch(t.keyCode){case 9:case 13:case 27:t.preventDefault();break;case 38:t.preventDefault(),this.prev();break;case 40:t.preventDefault(),this.next()}t.stopPropagation()}},keydown:function(e){this.suppressKeyPressRepeat=~t.inArray(e.keyCode,[40,38,9,13,27]),this.move(e)},keypress:function(t){this.suppressKeyPressRepeat||this.move(t)},keyup:function(t){switch(t.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.ajax?this.ajaxLookup():this.lookup()}t.stopPropagation(),t.preventDefault()},focus:function(t){this.focused=!0},blur:function(t){this.focused=!1,!this.mousedover&&this.shown&&this.hide()},click:function(t){t.stopPropagation(),t.preventDefault(),this.select(),this.$element.focus()},mouseenter:function(e){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),t(e.currentTarget).addClass("active")},mouseleave:function(t){this.mousedover=!1,!this.focused&&this.shown&&this.hide()},destroy:function(){this.$element.off("focus",t.proxy(this.focus,this)).off("blur",t.proxy(this.blur,this)).off("keypress",t.proxy(this.keypress,this)).off("keyup",t.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.off("keydown",t.proxy(this.keydown,this)),this.$menu.off("click",t.proxy(this.click,this)).off("mouseenter","li",t.proxy(this.mouseenter,this)).off("mouseleave","li",t.proxy(this.mouseleave,this)),this.$element.removeData("typeahead")}},t.fn.typeahead=function(n){return this.each((function(){var a=t(this),i=a.data("typeahead"),r="object"===o(n)&&n;i||a.data("typeahead",i=new e(this,r)),"string"==typeof n&&i[n]()}))},t.fn.typeahead.defaults={source:[],items:10,scrollBar:!1,alignWidth:!0,menu:'',item:'
  • ',valueField:"id",displayField:"name",onSelect:function(){},ajax:{url:null,timeout:300,method:"get",triggerLength:1,loadingClass:null,preDispatch:null,preProcess:null}},t.fn.typeahead.Constructor=e,t((function(){t("body").on("focus.typeahead.data-api",'[data-provide="typeahead"]',(function(e){var n=t(this);n.data("typeahead")||(e.preventDefault(),n.typeahead(n.data()))}))}))}(window.jQuery)},2811:function(t,e,n){var o,a;function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}n(4913),n(475),n(115),n(9693),n(8636),n(5086),n(7136),n(173),n(2231),n(6255),n(9389),n(6048),n(9581),n(6088),n(9073),n(3534),n(590),n(4216),n(8665),n(9979),n(4602),function(t){"use strict";var e,n,o=Array.prototype.slice;(n=function(e){this.options=t.extend({},n.defaults,e),this.parser=this.options.parser,this.locale=this.options.locale,this.messageStore=this.options.messageStore,this.languages={},this.init()}).prototype={init:function(){var e=this;String.locale=e.locale,String.prototype.toLocaleString=function(){var n,o,a,i,r,s,l;for(a=this.valueOf(),i=e.locale,r=0;i;){o=(n=i.split("-")).length;do{if(s=n.slice(0,o).join("-"),l=e.messageStore.get(s,a))return l;o--}while(o);if("en"===i)break;i=t.i18n.fallbacks[e.locale]&&t.i18n.fallbacks[e.locale][r]||e.options.fallbackLocale,t.i18n.log("Trying fallback locale for "+e.locale+": "+i),r++}return""}},destroy:function(){t.removeData(document,"i18n")},load:function(e,n){var o,a,i,r={};if(e||n||(e="i18n/"+t.i18n().locale+".json",n=t.i18n().locale),"string"==typeof e&&"json"!==e.split(".").pop()){for(a in r[n]=e+"/"+n+".json",o=(t.i18n.fallbacks[n]||[]).concat(this.options.fallbackLocale))r[i=o[a]]=e+"/"+i+".json";return this.load(r)}return this.messageStore.load(e,n)},parse:function(e,n){var o=e.toLocaleString();return this.parser.language=t.i18n.languages[t.i18n().locale]||t.i18n.languages.default,""===o&&(o=e),this.parser.parse(o,n)}},t.i18n=function(e,a){var r,s=t.data(document,"i18n"),l="object"===i(e)&&e;return l&&l.locale&&s&&s.locale!==l.locale&&(String.locale=s.locale=l.locale),s||(s=new n(l),t.data(document,"i18n",s)),"string"==typeof e?(r=void 0!==a?o.call(arguments,1):[],s.parse(e,r)):s},t.fn.i18n=function(){var e=t.data(document,"i18n");return e||(e=new n,t.data(document,"i18n",e)),String.locale=e.locale,this.each((function(){var n,o,a,i,r=t(this),s=r.data("i18n");s?(n=s.indexOf("["),o=s.indexOf("]"),-1!==n&&-1!==o&&n1?["CONCAT"].concat(t):t[0]}function P(){var t=w([h,n,I]);return null===t?null:[t[0],t[2]]}function A(){var t=w([h,n,v]);return null===t?null:[t[0],t[2]]}function T(){var t=w([f,d,p]);return null===t?null:t[1]}if(e=S("|"),n=S(":"),o=S("\\"),a=M(/^./),i=S("$"),r=M(/^\d+/),s=M(/^[^{}\[\]$\\]/),l=M(/^[^{}\[\]$\\|]/),k([_,M(/^[^{}\[\]$\s]/)]),u=k([_,l]),c=k([_,s]),b=M(/^[ !"$&'()*,.\/0-9;=?@A-Z\^_`a-z~\x80-\xFF+\-]+/),x=function(t){return t.toString()},h=function(){var t=b();return null===t?null:x(t)},d=k([function(){var t=w([k([P,A]),C(0,D)]);return null===t?null:t[0].concat(t[1])},function(){var t=w([h,C(0,D)]);return null===t?null:[t[0]].concat(t[1])}]),f=S("{{"),p=S("}}"),g=k([T,I,function(){var t=C(1,c)();return null===t?null:t.join("")}]),v=k([T,I,function(){var t=C(1,u)();return null===t?null:t.join("")}]),null===(m=function(){var t=C(0,g)();return null===t?null:["CONCAT"].concat(t)}())||y!==t.length)throw new Error("Parse error at position "+y.toString()+" in input: "+t);return m}},t.extend(t.i18n.parser,new e)}(jQuery),function(t){"use strict";var e=function(){this.language=t.i18n.languages[String.locale]||t.i18n.languages.default};e.prototype={constructor:e,emit:function(e,n){var o,a,r,s=this;switch(i(e)){case"string":case"number":o=e;break;case"object":if(a=t.map(e.slice(1),(function(t){return s.emit(t,n)})),r=e[0].toLowerCase(),"function"!=typeof s[r])throw new Error('unknown operation "'+r+'"');o=s[r](a,n);break;case"undefined":o="";break;default:throw new Error("unexpected type in AST: "+i(e))}return o},concat:function(e){var n="";return t.each(e,(function(t,e){n+=e})),n},replace:function(t,e){var n=parseInt(t[0],10);return n=parseInt(t[0],10)&&e[0]{},1536:()=>{},2559:()=>{},2553:()=>{},5264:()=>{},6387:()=>{},5985:()=>{},63:()=>{},3888:()=>{},7278:()=>{},3704:()=>{}},t=>{var e=e=>t(t.s=e);t.O(0,[450],(()=>(e(2811),e(7852),e(6108),e(9143),e(5779),e(6618),e(3441),e(1680),e(9654),e(5611),e(3600),e(514),e(9307),e(6730),e(1595),e(1223),e(9662),e(63),e(1536),e(2559),e(2553),e(5264),e(6387),e(5985),e(3888),e(3704),e(7278))));t.O()}]); \ No newline at end of file diff --git a/public/build/entrypoints.json b/public/build/entrypoints.json index c448876df..470780344 100644 --- a/public/build/entrypoints.json +++ b/public/build/entrypoints.json @@ -4,7 +4,7 @@ "js": [ "/build/runtime.c217f8c4.js", "/build/450.304e1a09.js", - "/build/app.b0664648.js" + "/build/app.79f750e0.js" ], "css": [ "/build/app.df7c9813.css" diff --git a/public/build/manifest.json b/public/build/manifest.json index a8fd6a7cd..1028e19bd 100644 --- a/public/build/manifest.json +++ b/public/build/manifest.json @@ -1,6 +1,6 @@ { "build/app.css": "/build/app.df7c9813.css", - "build/app.js": "/build/app.b0664648.js", + "build/app.js": "/build/app.79f750e0.js", "build/runtime.js": "/build/runtime.c217f8c4.js", "build/450.304e1a09.js": "/build/450.304e1a09.js", "build/images/VPS-badge.svg": "/build/images/VPS-badge.svg", From 6928b29de0f797be1b108b45fdd37554d3e7ac5e Mon Sep 17 00:00:00 2001 From: agoujot <145840578+agoujot@users.noreply.github.com> Date: Thu, 17 Apr 2025 10:18:39 +0200 Subject: [PATCH 3/9] take care of chart not being defined in first callback calls by using window.chart ? chart.data.datasets : timeCardDatasets --- assets/js/editcounter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/editcounter.js b/assets/js/editcounter.js index 2e12ec76f..c09d26eee 100644 --- a/assets/js/editcounter.js +++ b/assets/js/editcounter.js @@ -336,7 +336,8 @@ xtools.editcounter.setupTimecard = function (timeCardDatasets, days) { if (index === 0 || index > 7) { return ''; } - return chart.data.datasets[index - 1].data.reduce(function (a, b) { + let datasets = window.chart ? chart.data.datasets : timeCardDatasets; + return datasets[index - 1].data.reduce(function (a, b) { return a + parseInt(b.value, 10); }, 0); } From 3b7a3671998d11b81d16823e2effdbe76721377b Mon Sep 17 00:00:00 2001 From: MusikAnimal Date: Thu, 17 Apr 2025 16:16:30 -0400 Subject: [PATCH 4/9] Commit compiled assets --- public/build/app.48b6b1cc.js | 2 ++ ...{app.79f750e0.js.LICENSE.txt => app.48b6b1cc.js.LICENSE.txt} | 0 public/build/app.79f750e0.js | 2 -- public/build/entrypoints.json | 2 +- public/build/manifest.json | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 public/build/app.48b6b1cc.js rename public/build/{app.79f750e0.js.LICENSE.txt => app.48b6b1cc.js.LICENSE.txt} (100%) delete mode 100644 public/build/app.79f750e0.js diff --git a/public/build/app.48b6b1cc.js b/public/build/app.48b6b1cc.js new file mode 100644 index 000000000..2733d4254 --- /dev/null +++ b/public/build/app.48b6b1cc.js @@ -0,0 +1,2 @@ +/*! For license information please see app.48b6b1cc.js.LICENSE.txt */ +(self.webpackChunkxtools=self.webpackChunkxtools||[]).push([[524],{3441:()=>{xtools.adminstats={},$((function(){var t=$("#project_input"),e=t.val();0!==$("body.adminstats, body.patrollerstats, body.stewardstats").length&&(xtools.application.setupMultiSelectListeners(),$(".group-selector").on("change",(function(){$(".action-selector").addClass("hidden"),$(".action-selector--"+$(this).val()).removeClass("hidden"),$(".xt-page-title--title").text($.i18n("tool-"+$(this).val()+"stats")),$(".xt-page-title--desc").text($.i18n("tool-"+$(this).val()+"stats-desc"));var n=$.i18n("tool-"+$(this).val()+"stats")+" - "+$.i18n("xtools-title");document.title=n,history.replaceState({},n,"/"+$(this).val()+"stats"),"steward"===$(this).val()?(e=t.val(),t.val("meta.wikimedia.org")):t.val(e),xtools.application.setupMultiSelectListeners()})))}))},9654:(t,e,n)=>{n(8636),n(5086),$((function(){if($("body.authorship").length){var t=$("#show_selector");t.on("change",(function(t){$(".show-option").addClass("hidden").find("input").prop("disabled",!0),$(".show-option--".concat(t.target.value)).removeClass("hidden").find("input").prop("disabled",!1)})),window.onload=function(){return t.trigger("change")}}}))},5611:(t,e,n)=>{n(8476),n(5086),n(8379),n(7899),n(2231),n(115),xtools.autoedits={},$((function(){if($("body.autoedits").length){var t=$(".contributions-container"),e=$("#tool_selector");if(e.length)return xtools.autoedits.fetchTools=function(t){e.prop("disabled",!0),$.get("/api/project/automated_tools/"+t).done((function(t){t.error||(delete t.project,delete t.elapsed_time,e.html('"),Object.keys(t).forEach((function(n){e.append('")}))),e.prop("disabled",!1)}))},$(document).ready((function(){$("#project_input").on("change.autoedits",(function(){xtools.autoedits.fetchTools($("#project_input").val())}))})),void xtools.autoedits.fetchTools($("#project_input").val());if(xtools.application.setupToggleTable(window.countsByTool,window.toolsChart,"count",(function(t){var e=0;Object.keys(t).forEach((function(n){e+=parseInt(t[n].count,10)}));var n=Object.keys(t).length;$(".tools--tools").text(n.toLocaleString(i18nLang)+" "+$.i18n("num-tools",n)),$(".tools--count").text(e.toLocaleString(i18nLang))})),t.length){var n=$(".contributions-table").length?"setupContributionsNavListeners":"loadContributions";xtools.application[n]((function(t){return"".concat(t.target,"-contributions/").concat(t.project,"/").concat(t.username)+"/".concat(t.namespace,"/").concat(t.start,"/").concat(t.end)}),t.data("target"))}}}))},3600:(t,e,n)=>{n(7136),n(173),n(9073),n(6048),n(8636),n(5086),xtools.blame={},$((function(){if($("body.blame").length){$(".diff-empty").length===$(".diff tr").length-1&&$(".diff-empty").eq(0).text("(".concat($.i18n("diff-empty").toLowerCase(),")")).addClass("text-muted text-center").prop("width","20%"),$(".diff-addedline").each((function(){var t=xtools.blame.query.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),e=function(e){var n=new RegExp("(".concat(t,")"),"gi");$(e).html($(e).html().replace(n,"$1"))};$(this).find(".diffchange-inline").length?$(".diffchange-inline").each((function(){e(this)})):e(this)}));var t=$("#show_selector");t.on("change",(function(t){$(".show-option").addClass("hidden").find("input").prop("disabled",!0),$(".show-option--".concat(t.target.value)).removeClass("hidden").find("input").prop("disabled",!1)})),window.onload=function(){return t.trigger("change")}}}))},514:(t,e,n)=>{function o(t,e){xtools.categoryedits.$select2Input.data("select2")&&(xtools.categoryedits.$select2Input.off("change"),xtools.categoryedits.$select2Input.select2("val",null),xtools.categoryedits.$select2Input.select2("data",null),xtools.categoryedits.$select2Input.select2("destroy"));var n=e||xtools.categoryedits.$select2Input.data("ns"),o={ajax:{url:t||xtools.categoryedits.$select2Input.data("api"),dataType:"jsonp",jsonpCallback:"categorySuggestionCallback",delay:200,data:function(t){return{action:"query",list:"prefixsearch",format:"json",pssearch:t.term||"",psnamespace:14,cirrusUseCompletionSuggester:"yes"}},processResults:function(t){var e=t?t.query:{},o=[];return e&&e.prefixsearch.length&&(o=e.prefixsearch.map((function(t){var e=t.title.replace(new RegExp("^"+n+":"),"");return{id:e.score(),text:e}}))),{results:o}}},placeholder:$.i18n("category-search"),maximumSelectionLength:10,minimumInputLength:1};xtools.categoryedits.$select2Input.select2(o)}n(475),n(8476),n(5086),n(8379),n(7899),n(2231),n(9581),n(7136),n(173),n(9073),n(6048),xtools.categoryedits={},$((function(){$("body.categoryedits").length&&$(document).ready((function(){var t;xtools.categoryedits.$select2Input=$("#category_selector"),o(),$("#project_input").on("xtools.projectLoaded",(function(t,e){$.get(xtBaseUrl+"api/project/namespaces/"+e.project).done((function(t){o(t.api,t.namespaces[14])}))})),$("form").on("submit",(function(){$("#category_input").val(xtools.categoryedits.$select2Input.val().join("|"))})),xtools.application.setupToggleTable(window.countsByCategory,window.categoryChart,"editCount",(function(t){var e=0,n=0;Object.keys(t).forEach((function(o){e+=parseInt(t[o].editCount,10),n+=parseInt(t[o].pageCount,10)}));var o=Object.keys(t).length;$(".category--category").text(o.toLocaleString(i18nLang)+" "+$.i18n("num-categories",o)),$(".category--count").text(e.toLocaleString(i18nLang)),$(".category--percent-of-edit-count").text(100*(e/xtools.categoryedits.userEditCount).toLocaleString(i18nLang)+"%"),$(".category--pages").text(n.toLocaleString(i18nLang))})),$(".contributions-container").length&&(t=$(".contributions-table").length?"setupContributionsNavListeners":"loadContributions",xtools.application[t]((function(t){return"categoryedits-contributions/"+t.project+"/"+t.username+"/"+t.categories+"/"+t.start+"/"+t.end}),"Category"))}))}))},5779:(t,e,n)=>{function o(t){$("#project_input").val(xtools.application.vars.lastProject),$(".site-notice").append("")}function a(){var t=$("#page_input"),e=$("#user_input"),n=$("#namespace_select");if(t[0]||e[0]||$("#project_input")[0]){t.data("typeahead")&&t.data("typeahead").destroy(),e.data("typeahead")&&e.data("typeahead").destroy(),xtools.application.vars.apiPath||(xtools.application.vars.apiPath=$("#page_input").data("api")||$("#user_input").data("api"));var o={url:xtools.application.vars.apiPath,timeout:200,triggerLength:1,method:"get",preDispatch:null,preProcess:null};t[0]&&t.typeahead({ajax:Object.assign(o,{preDispatch:function(t){n[0]&&"0"!==n.val()&&(t=n.find("option:selected").text().trim()+":"+t);return{action:"query",list:"prefixsearch",format:"json",pssearch:t}},preProcess:function(t){var e="";return n[0]&&"0"!==n.val()&&(e=n.find("option:selected").text().trim()),t.query.prefixsearch.map((function(t){return t.title.replace(new RegExp("^"+e+":"),"")}))}})}),e[0]&&e.typeahead({ajax:Object.assign(o,{preDispatch:function(t){return{action:"query",list:"prefixsearch",format:"json",pssearch:"User:"+t}},preProcess:function(t){return t.query.prefixsearch.map((function(t){return t.title.split("/")[0].substr(t.title.indexOf(":")+1)})).filter((function(t,e,n){return n.indexOf(t)===e}))}})})}}function i(t){t?($(".form-control").prop("readonly",!1),$(".form-submit").prop("disabled",!1),$(".form-submit").text($.i18n("submit")).prop("disabled",!1)):$("#content form").on("submit",(function(){document.activeElement.blur(),$(".form-control").prop("readonly",!0),$(".form-submit").prop("disabled",!0).html($.i18n("loading")+" ");var t=Date.now();setInterval((function(){var e=Math.round((Date.now()-t)/1e3),n=Math.floor(e/60),o=("00"+(e-60*n)).slice(-2);$("#submit_timer").text(n+":"+o)}),1e3)}))}n(8665),n(5086),n(9979),n(4602),n(789),n(933),n(9218),n(2231),n(8636),n(5231),n(6088),n(8476),n(8379),n(7899),n(4189),n(8329),n(9581),n(7136),n(173),n(9073),n(6048),n(9693),n(17),n(9560),n(9389),n(8772),n(4913),xtools={},xtools.application={},xtools.application.vars={sectionOffset:{}},xtools.application.chartGridColor="rgba(0, 0, 0, 0.1)",window.matchMedia("(prefers-color-scheme: dark)").matches&&(Chart.defaults.global.defaultFontColor="#AAA",xtools.application.chartGridColor="#333"),$.i18n({locale:i18nLang}).load(i18nPaths),$((function(){$(document).ready((function(){if($(".xt-hide").on("click",(function(){$(this).hide(),$(this).siblings(".xt-show").show(),$(this).parents(".panel-heading").length?$(this).parents(".panel-heading").siblings(".panel-body").hide():$(this).parents(".xt-show-hide--parent").next(".xt-show-hide--target").hide()})),$(".xt-show").on("click",(function(){$(this).hide(),$(this).siblings(".xt-hide").show(),$(this).parents(".panel-heading").length?$(this).parents(".panel-heading").siblings(".panel-body").show():$(this).parents(".xt-show-hide--parent").next(".xt-show-hide--target").show()})),function(){var t=$(window).width(),e=$(".tool-links").outerWidth(),n=$(".nav-buttons").outerWidth();if(t<768)return;e+n>t&&$(".tool-links--more").removeClass("hidden");var o=$(".tool-links--entry").length;for(;o>0&&e+n>t;){var a=$(".tool-links--nav > .tool-links--entry:not(.active)").last().remove();$(".tool-links--more .dropdown-menu").append(a),e=$(".tool-links").outerWidth(),o--}}(),xtools.application.setupColumnSorting(),function(){var t=$(".xt-toc");if(!t||!t[0])return;xtools.application.vars.tocHeight=t.height();var e=function(){$(".xt-toc").find("a").off("click").on("click",(function(t){document.activeElement.blur();var e=$("#"+$(t.target).data("section"));$(window).scrollTop(e.offset().top-xtools.application.vars.tocHeight),$(this).parents(".xt-toc").find("a").removeClass("bold"),n(),xtools.application.vars.$tocClone.addClass("bold")}))};xtools.application.setupTocListeners=e;var n=function(){xtools.application.vars.$tocClone||(xtools.application.vars.$tocClone=t.clone(),xtools.application.vars.$tocClone.addClass("fixed"),t.after(xtools.application.vars.$tocClone),e())};xtools.application.buildSectionOffsets=function(){$.each(t.find("a"),(function(t,e){var n=$(e).data("section");xtools.application.vars.sectionOffset[n]=$("#"+n).offset().top}))},$(".xt-show, .xt-hide").on("click",xtools.application.buildSectionOffsets),xtools.application.buildSectionOffsets(),e();var o=t.offset().top;$(window).on("scroll.toc",(function(t){var e,a=$(t.target).scrollTop(),i=a>o;i?(xtools.application.vars.$tocClone||n(),Object.keys(xtools.application.vars.sectionOffset).forEach((function(t){a>xtools.application.vars.sectionOffset[t]-xtools.application.vars.tocHeight-1&&(e=xtools.application.vars.$tocClone.find('a[data-section="'+t+'"]'))})),xtools.application.vars.$tocClone.find("a").removeClass("bold"),e&&e.addClass("bold")):!i&&xtools.application.vars.$tocClone&&(xtools.application.vars.$tocClone.remove(),xtools.application.vars.$tocClone=null)}))}(),function(){var t=$(".table-sticky-header");if(!t||!t[0])return;var e,n=t.find("thead tr").eq(0),o=function(){e||(e=n.clone(),n.addClass("sticky-heading"),n.before(e),n.find("th").each((function(t){$(this).css("width",e.find("th").eq(t).outerWidth())})),n.css("width",e.outerWidth()+1))},a=t.offset().top;$(window).on("scroll.stickyHeader",(function(i){var r=$(i.target).scrollTop()>a;r&&!e?o():!r&&e?(n.removeClass("sticky-heading"),e.remove(),e=null):e&&n.css("top",$(window).scrollTop()-t.offset().top)}))}(),function(){var t=$("#project_input");if(!t)return;t.length&&$("#namespace_select").length?(xtools.application.vars.lastProject=$("#project_input").val(),$("#project_input").off("change").on("change",(function(){$("#namespace_select").prop("disabled",!0);var t=this.value;$.get(xtBaseUrl+"api/project/namespaces/"+t).done((function(e){var n=$('#namespace_select option[value="all"]').eq(0).clone();for(var o in $("#namespace_select").html(n),xtools.application.vars.apiPath=e.api,e.namespaces)if(e.namespaces.hasOwnProperty(o)){var i=0===parseInt(o,10)?$.i18n("mainspace"):e.namespaces[o];$("#namespace_select").append("")}$("#namespace_select").val(0),xtools.application.vars.lastProject=t,a()})).fail(o.bind(this,t)).always((function(){$("#namespace_select").prop("disabled",!1)}))})),$("#namespace_select").on("change",a)):($("#user_input")[0]||$("#page_input")[0])&&(xtools.application.vars.lastProject=t.val(),t.on("change",(function(){var e=this.value;$.get(xtBaseUrl+"api/project/normalize/"+e).done((function(n){xtools.application.vars.apiPath=n.api,xtools.application.vars.lastProject=e,a(),t.trigger("xtools.projectLoaded",n)})).fail(o.bind(this,e))})))}(),a(),i(),"function"==typeof URL){var t=new URL(window.location.href).searchParams.get("focus");t&&$("[name=".concat(t,"]")).focus()}})),window.onpageshow=function(t){t.persisted&&i(!0)}})),xtools.application.setupToggleTable=function(t,e,n,o){var a;$(".toggle-table").on("click",".toggle-table--toggle",(function(){a||(a=Object.assign({},t));var i=$(this).data("index"),r=$(this).data("key");"true"===$(this).attr("data-disabled")?(a[r]=t[r],e.data.datasets[0].data[i]=parseInt(n?a[r][n]:a[r],10),$(this).attr("data-disabled","false")):(delete a[r],e.data.datasets[0].data[i]=null,$(this).attr("data-disabled","true")),$(this).parents("tr").toggleClass("excluded"),$(this).find(".glyphicon").toggleClass("glyphicon-remove").toggleClass("glyphicon-plus"),o(a,r,i),e.update()}))},xtools.application.setupColumnSorting=function(){var t,e;$(".sort-link").on("click",(function(){t=e===$(this).data("column")?-t:1,$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var n=1===t?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";$(this).find(".glyphicon").addClass(n).removeClass("glyphicon-sort"),e=$(this).data("column");var o=$(this).parents("table"),a=o.find(".sort-entry--"+e).parent();a.length&&(a.sort((function(n,o){var a=$(n).find(".sort-entry--"+e).data("value")||0,i=$(o).find(".sort-entry--"+e).data("value")||0;return isNaN(a)||(a=parseFloat(a)||0),isNaN(i)||(i=parseFloat(i)||0),ai?-t:0})),$(".sort-entry--rank").length>0&&$.each(a,(function(t,e){$(e).find(".sort-entry--rank").text(t+1)})),o.find("tbody").html(a))}))},xtools.application.setupMultiSelectListeners=function(){var t=$(".multi-select--body:not(.hidden) .multi-select--option");t.on("change",(function(){$(".multi-select--all").prop("checked",$(".multi-select--body:not(.hidden) .multi-select--option:checked").length===t.length)})),$(".multi-select--all").on("click",(function(){t.prop("checked",$(this).prop("checked"))}))}},6618:(t,e,n)=>{function o(){xtools.application.vars.offset||(xtools.application.vars.initialOffset=$(".contributions-container").data("offset"),xtools.application.vars.offset=xtools.application.vars.initialOffset)}n(9218),n(2231),n(8665),n(5086),n(9979),n(4602),n(933),n(7136),n(785),n(9389),n(6048),n(9073),n(173),Object.assign(xtools.application.vars,{initialOffset:"",offset:"",prevOffsets:[],initialLoad:!1}),xtools.application.loadContributions=function(t,e){o();var n=$(".contributions-container"),a=$(".contributions-loading"),i=n.data(),r=t(i),s=parseInt(i.limit,10)||50,l=new URLSearchParams(window.location.search),u=xtBaseUrl+r+"/"+xtools.application.vars.offset,c=location.pathname.split("/")[1],d=u.split("/")[1];n.addClass("contributions-container--loading"),a.show(),l.set("limit",s.toString()),l.append("htmlonly","yes"),$.ajax({url:u+"?"+l.toString(),timeout:6e4}).always((function(){n.removeClass("contributions-container--loading"),a.hide()})).done((function(o){if(n.html(o).show(),xtools.application.setupContributionsNavListeners(t,e),xtools.application.vars.initialOffset||(xtools.application.vars.initialOffset=$(".contribs-row-date").first().data("value"),xtools.application.vars.initialLoad=!0),c!==d){var a=new RegExp("^/".concat(d,"/(.*)/"));u=u.replace(a,"/".concat(c,"/$1/"))}xtools.application.vars.initialLoad?xtools.application.vars.initialLoad=!1:(l.delete("htmlonly"),window.history.replaceState(null,document.title,u+"?"+l.toString()),n.parents(".panel")[0].scrollIntoView()),xtools.application.vars.offset"+i+"")).show()}))},xtools.application.setupContributionsNavListeners=function(t,e){o(),$(".contributions--prev").off("click").one("click",(function(n){n.preventDefault(),xtools.application.vars.offset=xtools.application.vars.prevOffsets.pop()||xtools.application.vars.initialOffset,xtools.application.loadContributions(t,e)})),$(".contributions--next").off("click").one("click",(function(n){n.preventDefault(),xtools.application.vars.offset&&xtools.application.vars.prevOffsets.push(xtools.application.vars.offset),xtools.application.vars.offset=$(".contribs-row-date").last().data("value"),xtools.application.loadContributions(t,e)})),$("#contributions_limit").on("change",(function(t){var e=parseInt(t.target.value,10);$(".contributions-container").data("limit",e),$(".contributions--prev-text").text($.i18n("pager-newer-n",e).capitalize()),$(".contributions--next-text").text($.i18n("pager-older-n",e).capitalize())}))}},9143:(t,e,n)=>{n(7136),n(173),n(17),n(5086),n(9693),n(5852),n(4913),String.prototype.descore=function(){return this.replace(/_/g," ")},String.prototype.score=function(){return this.replace(/ /g,"_")},String.prototype.escape=function(){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,(function(e){return t[e]}))},Array.prototype.unique=function(){return this.filter((function(t,e,n){return n.indexOf(t)===e}))},Object.defineProperty(String.prototype,"capitalize",{value:function(){return this.charAt(0).toUpperCase()+this.slice(1)},enumerable:!1})},9307:(t,e,n)=>{function o(t,e){var n=0,o=[];Object.keys(t).forEach((function(e){var a=parseInt(t[e],10);o.push(a),n+=a}));var i=Object.keys(t).length;$(".namespaces--namespaces").text(i.toLocaleString(i18nLang)+" "+$.i18n("num-namespaces",i)),$(".namespaces--count").text(n.toLocaleString(i18nLang)),o.forEach((function(t){var e=r(t,n);$(".namespaces-table .sort-entry--count[data-value="+t+"]").text(t.toLocaleString(i18nLang)+" ("+e+")")})),["year","month"].forEach((function(t){var n=window[t+"countsChart"],o=window.namespaces[e]||$.i18n("mainspace");if(n){var i=0;n.data.datasets.forEach((function(t,e){t.label===o&&(i=e)}));var r=n.getDatasetMeta(i);r.hidden=null===r.hidden?!n.data.datasets[i].hidden:null,r.hidden?xtools.editcounter.excludedNamespaces.push(o):xtools.editcounter.excludedNamespaces=xtools.editcounter.excludedNamespaces.filter((function(t){return t!==o})),window[t+"countsChart"].config.data.labels=a(t,n.data.datasets),n.update()}}))}function a(t,e){var n=i(t,e);return Object.keys(n).map((function(e){var o=n[e].toString().length,a=2*(xtools.editcounter.maxDigits[t]-o);return e+Array(a+5).join("\t")+n[e].toLocaleString(i18nLang,{useGrouping:!1})}))}function i(t,e){var n={};return e.forEach((function(e){-1===xtools.editcounter.excludedNamespaces.indexOf(e.label)&&e.data.forEach((function(e,o){n[xtools.editcounter.chartLabels[t][o]]||(n[xtools.editcounter.chartLabels[t][o]]=0),n[xtools.editcounter.chartLabels[t][o]]+=e}))})),n}function r(t,e){return(t/e).toLocaleString(i18nLang,{style:"percent"})}n(8476),n(5086),n(8379),n(7899),n(2231),n(17),n(9581),n(9389),n(6048),n(475),n(9693),n(7136),n(173),n(2982),n(533),n(8825),n(115),n(6088),xtools.editcounter={},xtools.editcounter.excludedNamespaces=[],xtools.editcounter.chartLabels={},xtools.editcounter.maxDigits={},$((function(){0!==$("body.editcounter").length&&(xtools.application.setupMultiSelectListeners(),$(".chart-wrapper").each((function(){var t=$(this).data("chart-type");if(void 0===t)return!1;var e=$(this).data("chart-data"),n=$(this).data("chart-labels"),o=$("canvas",$(this));new Chart(o,{type:t,data:{labels:n,datasets:[{data:e}]}})})),xtools.application.setupToggleTable(window.namespaceTotals,window.namespaceChart,null,o))})),xtools.editcounter.setupMonthYearChart=function(t,e,n,o,s){var l=e.map((function(t){return t.label}));xtools.editcounter.maxDigits[t]=o.toString().length,xtools.editcounter.chartLabels[t]=n,window[t+"countsChart"]=new Chart($("#"+t+"counts-canvas"),{type:"horizontalBar",data:{labels:a(t,e),datasets:e},options:{tooltips:{mode:"nearest",intersect:!0,callbacks:{label:function(n){var o=i(t,e),a=Object.keys(o).map((function(t){return o[t]})),s=a[n.index],l=r(n.xLabel,s);return n.xLabel.toLocaleString(i18nLang)+" ("+l+")"},title:function(t){return t[0].yLabel.replace(/\t.*/,"")+" - "+l[t[0].datasetIndex]}}},responsive:!0,maintainAspectRatio:!1,scales:{xAxes:[{stacked:!0,ticks:{beginAtZero:!0,reverse:i18nRTL,callback:function(t){if(Math.floor(t)===t)return t.toLocaleString(i18nLang)}},gridLines:{color:xtools.application.chartGridColor}}],yAxes:[{stacked:!0,barThickness:18,position:i18nRTL?"right":"left",gridLines:{color:xtools.application.chartGridColor}}]},legend:{display:s}}})},xtools.editcounter.setupTimecard=function(t,e){var n=(new Date).getTimezoneOffset()/60;t=t.map((function(t){return t.backgroundColor=new Array(t.data.length).fill(t.backgroundColor),t})),window.chart=new Chart($("#timecard-bubble-chart"),{type:"bubble",data:{datasets:t},options:{responsive:!0,legend:{display:!1},layout:{padding:{right:0}},elements:{point:{radius:function(t){var e=t.dataIndex;return t.dataset.data[e].scale},hitRadius:8}},scales:{yAxes:[{ticks:{min:0,max:8,stepSize:1,padding:25,callback:function(t,n){return e[n]}},position:i18nRTL?"right":"left",gridLines:{color:xtools.application.chartGridColor}},{ticks:{min:0,max:8,stepSize:1,padding:25,callback:function(e,n){return 0===n||n>7?"":(window.chart?chart.data.datasets:t)[n-1].data.reduce((function(t,e){return t+parseInt(e.value,10)}),0)}},position:i18nRTL?"left":"right"}],xAxes:[{ticks:{beginAtZero:!0,min:0,max:24,stepSize:1,reverse:i18nRTL,padding:0,callback:function(t){return t%2==0?t+":00":""}},gridLines:{color:xtools.application.chartGridColor}}]},tooltips:{displayColors:!1,callbacks:{title:function(t){return e[7-t[0].yLabel+1]+" "+parseInt(t[0].xLabel)+":"+String(t[0].xLabel%1*60).padStart(2,"0")},label:function(e){var n=[t[e.datasetIndex].data[e.index].value];return"".concat(n," ").concat($.i18n("num-edits",[n]))}}}}}),$((function(){$(".use-local-time").prop("checked",!1).on("click",(function(){var t=$(this).is(":checked")?n:-n,e=new Array(7);chart.data.datasets.forEach((function(t){return e[t.data[0].day_of_week-1]=t.backgroundColor[0]})),chart.data.datasets=chart.data.datasets.map((function(n){var o=[];return n.data=n.data.map((function(n){var a=parseFloat(n.hour)-t,i=parseInt(n.day_of_week,10);return a<0?(a=24+a,(i-=1)<1&&(i=7+i)):a>=24&&(a-=24,(i+=1)>7&&(i-=7)),n.hour=a.toString(),n.x=a.toString(),n.day_of_week=i.toString(),n.y=(8-i).toString(),o.push(e[i-1]),n})),n.backgroundColor=o,n})),$(this).is(":checked"),chart.update()}))}))}},6730:(t,e,n)=>{n(115),xtools.globalcontribs={},$((function(){0!==$("body.globalcontribs").length&&xtools.application.setupContributionsNavListeners((function(t){return"globalcontribs/".concat(t.username,"/").concat(t.namespace,"/").concat(t.start,"/").concat(t.end)}),"globalcontribs")}))},1680:(t,e,n)=>{n(7136),n(173),xtools.pageinfo={},$((function(){if($("body.pageinfo").length){var t=function(){xtools.application.setupToggleTable(window.textshares,window.textsharesChart,"percentage",$.noop)},e=$(".textshares-container");if(e[0]){var n=xtBaseUrl+"authorship/"+e.data("project")+"/"+e.data("page")+"/"+(xtools.pageinfo.endDate?xtools.pageinfo.endDate+"/":"");n="".concat(n.replace(/\/$/,""),"?htmlonly=yes"),$.ajax({url:n,timeout:3e4}).done((function(n){e.replaceWith(n),xtools.application.buildSectionOffsets(),xtools.application.setupTocListeners(),xtools.application.setupColumnSorting(),t()})).fail((function(t,n,o){e.replaceWith($.i18n("api-error","Authorship API: "+o+""))}))}else $(".textshares-table").length&&t()}}))},1595:(t,e,n)=>{n(8476),n(5086),n(8379),n(7899),n(4867),n(9389),n(6048),n(8636),xtools.pages={},$((function(){if($("body.pages").length){var t={};xtools.application.setupToggleTable(window.countsByNamespace,window.pieChart,"count",(function(t){var e={count:0,deleted:0,redirects:0};Object.keys(t).forEach((function(n){e.count+=t[n].count,e.deleted+=t[n].deleted,e.redirects+=t[n].redirects})),$(".namespaces--namespaces").text(Object.keys(t).length.toLocaleString()+" "+$.i18n("num-namespaces",Object.keys(t).length)),$(".namespaces--pages").text(e.count.toLocaleString()),$(".namespaces--deleted").text(e.deleted.toLocaleString()+" ("+(e.deleted/e.count*100).toFixed(1)+"%)"),$(".namespaces--redirects").text(e.redirects.toLocaleString()+" ("+(e.redirects/e.count*100).toFixed(1)+"%)")})),$(".deleted-page").on("mouseenter",(function(e){var n=$(this).data("page-title"),o=$(this).data("namespace"),a=$(this).data("datetime").toString(),i=$(this).data("username"),r=function(t){$(e.target).find(".tooltip-body").html(t)};if(void 0!==t[o+"/"+n])return r(t[o+"/"+n]);var s=function(){r(""+$.i18n("api-error","Deletion Summary API")+"")};$.ajax({url:xtBaseUrl+"pages/deletion_summary/"+wikiDomain+"/"+i+"/"+o+"/"+n+"/"+a}).done((function(e){if(null===e.summary)return s();r(e.summary),t[o+"/"+n]=e.summary})).fail(s)}))}}))},1223:()=>{xtools.topedits={},$((function(){$("body.topedits").length&&$("#namespace_select").on("change",(function(){$("#page_input").prop("disabled","all"===$(this).val())}))}))},7852:(t,e,n)=>{var o,a,i,s;function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}n(7136),n(6255),n(2231),n(4913),n(6088),n(9389),n(5086),n(6048),n(8665),n(4602),n(115),n(8476),n(9693),n(475),n(9581),n(2982),n(4009),n(17),n(2157),n(8763),n(9560),n(5852),n(8379),n(7899),n(533),n(4538),n(1145),n(6943),n(8772),n(5231),n(4867),n(4895),n(4189),n(557),n(8844),n(2006),n(3534),n(590),n(4216),n(9979),s=function(){return function t(e,n,o){function a(r,s){if(!n[r]){if(!e[r]){if(i)return i(r,!0);var l=new Error("Cannot find module '"+r+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[r]={exports:{}};e[r][0].call(u.exports,(function(t){return a(e[r][1][t]||t)}),u,u.exports,t,e,n,o)}return n[r].exports}for(var i=void 0,r=0;rn?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=this,o=t,a=void 0===e?.5:e,i=2*a-1,r=n.alpha()-o.alpha(),s=((i*r==-1?i:(i+r)/(1+i*r))+1)/2,l=1-s;return this.rgb(s*n.red()+l*o.red(),s*n.green()+l*o.green(),s*n.blue()+l*o.blue()).alpha(n.alpha()*a+o.alpha()*(1-a))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new i,o=this.values,a=n.values;for(var r in o)o.hasOwnProperty(r)&&(t=o[r],"[object Array]"===(e={}.toString.call(t))?a[r]=t.slice(0):"[object Number]"===e?a[r]=t:console.error("unexpected color value:",t));return n}},i.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},i.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},i.prototype.getValues=function(t){for(var e=this.values,n={},o=0;o.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92)),100*(.2126*e+.7152*n+.0722*o),100*(.0193*e+.1192*n+.9505*o)]}function c(t){var e=u(t),n=e[0],o=e[1],a=e[2];return o/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116)-16,500*(n-o),200*(o-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]}function d(t){var e,n,o,a,i,r=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return[i=255*l,i,i];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var u=0;u<3;u++)(o=r+1/3*-(u-1))<0&&o++,o>1&&o--,i=6*o<1?e+6*(n-e)*o:2*o<1?n:3*o<2?e+(n-e)*(2/3-o)*6:e,a[u]=255*i;return a}function h(t){var e=t[0]/60,n=t[1]/100,o=t[2]/100,a=Math.floor(e)%6,i=e-Math.floor(e),r=255*o*(1-n),s=255*o*(1-n*i),l=255*o*(1-n*(1-i));switch(o*=255,a){case 0:return[o,l,r];case 1:return[s,o,r];case 2:return[r,o,l];case 3:return[r,s,o];case 4:return[l,r,o];case 5:return[o,r,s]}}function f(t){var e,n,o,a,i=t[0]/360,s=t[1]/100,l=t[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),o=6*i-(e=Math.floor(6*i)),!!(1&e)&&(o=1-o),a=s+o*((n=1-l)-s),e){default:case 6:case 0:r=n,g=a,b=s;break;case 1:r=a,g=n,b=s;break;case 2:r=s,g=n,b=a;break;case 3:r=s,g=a,b=n;break;case 4:r=a,g=s,b=n;break;case 5:r=n,g=s,b=a}return[255*r,255*g,255*b]}function p(t){var e=t[0]/100,n=t[1]/100,o=t[2]/100,a=t[3]/100;return[255*(1-Math.min(1,e*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,o*(1-a)+a))]}function v(t){var e,n,o,a=t[0]/100,i=t[1]/100,r=t[2]/100;return n=-.9689*a+1.8758*i+.0415*r,o=.0557*a+-.204*i+1.057*r,e=(e=3.2406*a+-1.5372*i+-.4986*r)>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*=12.92,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(o=Math.min(Math.max(0,o),1))]}function m(t){var e=t[0],n=t[1],o=t[2];return n/=100,o/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]}function x(t){var e,n,o,a,i=t[0],r=t[1],s=t[2];return i<=8?a=(n=100*i/903.3)/100*7.787+16/116:(n=100*Math.pow((i+16)/116,3),a=Math.pow(n/100,1/3)),[e=e/95.047<=.008856?e=95.047*(r/500+a-16/116)/7.787:95.047*Math.pow(r/500+a,3),n,o=o/108.883<=.008859?o=108.883*(a-s/200-16/116)/7.787:108.883*Math.pow(a-s/200,3)]}function y(t){var e,n=t[0],o=t[1],a=t[2];return(e=360*Math.atan2(a,o)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(o*o+a*a),e]}function k(t){return v(x(t))}function w(t){var e,n=t[0],o=t[1];return e=t[2]/360*2*Math.PI,[n,o*Math.cos(e),o*Math.sin(e)]}function C(t){return S[t]}e.exports={rgb2hsl:o,rgb2hsv:a,rgb2hwb:i,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:u,rgb2lab:c,rgb2lch:function(t){return y(c(t))},hsl2rgb:d,hsl2hsv:function(t){var e=t[0],n=t[1]/100,o=t[2]/100;return 0===o?[0,0,0]:[e,2*(n*=(o*=2)<=1?o:2-o)/(o+n)*100,(o+n)/2*100]},hsl2hwb:function(t){return i(d(t))},hsl2cmyk:function(t){return s(d(t))},hsl2keyword:function(t){return l(d(t))},hsv2rgb:h,hsv2hsl:function(t){var e,n,o=t[0],a=t[1]/100,i=t[2]/100;return e=a*i,[o,100*(e=(e/=(n=(2-a)*i)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(t){return i(h(t))},hsv2cmyk:function(t){return s(h(t))},hsv2keyword:function(t){return l(h(t))},hwb2rgb:f,hwb2hsl:function(t){return o(f(t))},hwb2hsv:function(t){return a(f(t))},hwb2cmyk:function(t){return s(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:p,cmyk2hsl:function(t){return o(p(t))},cmyk2hsv:function(t){return a(p(t))},cmyk2hwb:function(t){return i(p(t))},cmyk2keyword:function(t){return l(p(t))},keyword2rgb:C,keyword2hsl:function(t){return o(C(t))},keyword2hsv:function(t){return a(C(t))},keyword2hwb:function(t){return i(C(t))},keyword2cmyk:function(t){return s(C(t))},keyword2lab:function(t){return c(C(t))},keyword2xyz:function(t){return u(C(t))},xyz2rgb:v,xyz2lab:m,xyz2lch:function(t){return y(m(t))},lab2xyz:x,lab2rgb:k,lab2lch:y,lch2lab:w,lch2xyz:function(t){return x(w(t))},lch2rgb:function(t){return k(w(t))}};var S={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]},M={};for(var _ in S)M[JSON.stringify(S[_])]=_},{}],5:[function(t,e,n){var o=t(4),a=function(){return new u};for(var i in o){a[i+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),o[t](e)}}(i);var r=/(\w+)2(\w+)/.exec(i),s=r[1],l=r[2];(a[s]=a[s]||{})[l]=a[i]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var n=o[t](e);if("string"==typeof n||void 0===n)return n;for(var a=0;a0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index=0&&a>0)&&(v+=a));return i=d.getPixelForValue(v),{size:s=((r=d.getPixelForValue(v+f))-i)/2,base:i,head:r,center:r+s/2}},calculateBarIndexPixels:function(t,e,n){var o,a,r,s,l,u=n.scale.options,c=this.getStackIndex(t),d=n.pixels,h=d[e],f=d.length,p=n.start,g=n.end;return 1===f?(o=h>p?h-p:g-h,a=h0&&(o=(h-d[e-1])/2,e===f-1&&(a=o)),e');var n=t.data,o=n.datasets,a=n.labels;if(o.length)for(var i=0;i'),a[i]&&e.push(a[i]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,o){var a=t.getDatasetMeta(0),r=e.datasets[0],s=a.data[o],l=s&&s.custom||{},u=i.valueAtIndexOrDefault,c=t.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(r.backgroundColor,o,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(r.borderColor,o,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(r.borderWidth,o,c.borderWidth),hidden:isNaN(r.data[o])||a.data[o].hidden,index:o}})):[]}},onClick:function(t,e){var n,o,a,i=e.index,r=this.chart;for(n=0,o=(r.data.datasets||[]).length;n=Math.PI?-1:p<-Math.PI?1:0))+f,v={x:Math.cos(p),y:Math.sin(p)},m={x:Math.cos(g),y:Math.sin(g)},b=p<=0&&g>=0||p<=2*Math.PI&&2*Math.PI<=g,x=p<=.5*Math.PI&&.5*Math.PI<=g||p<=2.5*Math.PI&&2.5*Math.PI<=g,y=p<=-Math.PI&&-Math.PI<=g||p<=Math.PI&&Math.PI<=g,k=p<=.5*-Math.PI&&.5*-Math.PI<=g||p<=1.5*Math.PI&&1.5*Math.PI<=g,w=h/100,C={x:y?-1:Math.min(v.x*(v.x<0?1:w),m.x*(m.x<0?1:w)),y:k?-1:Math.min(v.y*(v.y<0?1:w),m.y*(m.y<0?1:w))},S={x:b?1:Math.max(v.x*(v.x>0?1:w),m.x*(m.x>0?1:w)),y:x?1:Math.max(v.y*(v.y>0?1:w),m.y*(m.y>0?1:w))},M={width:.5*(S.x-C.x),height:.5*(S.y-C.y)};u=Math.min(s/M.width,l/M.height),c={x:-.5*(S.x+C.x),y:-.5*(S.y+C.y)}}n.borderWidth=e.getMaxBorderWidth(d.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(h?n.outerRadius/100*h:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=c.x*n.outerRadius,n.offsetY=c.y*n.outerRadius,d.total=e.calculateTotal(),e.outerRadius=n.outerRadius-n.radiusLength*e.getRingIndex(e.index),e.innerRadius=Math.max(e.outerRadius-n.radiusLength,0),i.each(d.data,(function(n,o){e.updateElement(n,o,t)}))},updateElement:function(t,e,n){var o=this,a=o.chart,r=a.chartArea,s=a.options,l=s.animation,u=(r.left+r.right)/2,c=(r.top+r.bottom)/2,d=s.rotation,h=s.rotation,f=o.getDataset(),p=n&&l.animateRotate||t.hidden?0:o.calculateCircumference(f.data[e])*(s.circumference/(2*Math.PI)),g=n&&l.animateScale?0:o.innerRadius,v=n&&l.animateScale?0:o.outerRadius,m=i.valueAtIndexOrDefault;i.extend(t,{_datasetIndex:o.index,_index:e,_model:{x:u+a.offsetX,y:c+a.offsetY,startAngle:d,endAngle:h,circumference:p,outerRadius:v,innerRadius:g,label:m(f.label,e,a.data.labels[e])}});var b=t._model;this.removeHoverStyle(t),n&&l.animateRotate||(b.startAngle=0===e?s.rotation:o.getMeta().data[e-1]._model.endAngle,b.endAngle=b.startAngle+b.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,e=this.getDataset(),n=this.getMeta(),o=0;return i.each(n.data,(function(n,a){t=e.data[a],isNaN(t)||n.hidden||(o+=Math.abs(t))})),o},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,n,o=0,a=this.index,i=t.length,r=0;r(o=e>o?e:o)?n:o;return o}})}},{25:25,40:40,45:45}],18:[function(t,e,n){"use strict";var o=t(25),a=t(40),i=t(45);o._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(t){function e(t,e){return i.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,update:function(t){var n,o,a,r=this,s=r.getMeta(),l=s.dataset,u=s.data||[],c=r.chart.options,d=c.elements.line,h=r.getScaleForId(s.yAxisID),f=r.getDataset(),p=e(f,c);for(p&&(a=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=h,l._datasetIndex=r.index,l._children=u,l._model={spanGaps:f.spanGaps?f.spanGaps:c.spanGaps,tension:a.tension?a.tension:i.valueOrDefault(f.lineTension,d.tension),backgroundColor:a.backgroundColor?a.backgroundColor:f.backgroundColor||d.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:f.borderWidth||d.borderWidth,borderColor:a.borderColor?a.borderColor:f.borderColor||d.borderColor,borderCapStyle:a.borderCapStyle?a.borderCapStyle:f.borderCapStyle||d.borderCapStyle,borderDash:a.borderDash?a.borderDash:f.borderDash||d.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:f.borderDashOffset||d.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:f.borderJoinStyle||d.borderJoinStyle,fill:a.fill?a.fill:void 0!==f.fill?f.fill:d.fill,steppedLine:a.steppedLine?a.steppedLine:i.valueOrDefault(f.steppedLine,d.stepped),cubicInterpolationMode:a.cubicInterpolationMode?a.cubicInterpolationMode:i.valueOrDefault(f.cubicInterpolationMode,d.cubicInterpolationMode)},l.pivot()),n=0,o=u.length;n');var n=t.data,o=n.datasets,a=n.labels;if(o.length)for(var i=0;i'),a[i]&&e.push(a[i]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,o){var a=t.getDatasetMeta(0),r=e.datasets[0],s=a.data[o].custom||{},l=i.valueAtIndexOrDefault,u=t.options.elements.arc;return{text:n,fillStyle:s.backgroundColor?s.backgroundColor:l(r.backgroundColor,o,u.backgroundColor),strokeStyle:s.borderColor?s.borderColor:l(r.borderColor,o,u.borderColor),lineWidth:s.borderWidth?s.borderWidth:l(r.borderWidth,o,u.borderWidth),hidden:isNaN(r.data[o])||a.data[o].hidden,index:o}})):[]}},onClick:function(t,e){var n,o,a,i=e.index,r=this.chart;for(n=0,o=(r.data.datasets||[]).length;n0&&!isNaN(t)?2*Math.PI/e:0}})}},{25:25,40:40,45:45}],20:[function(t,e,n){"use strict";var o=t(25),a=t(40),i=t(45);o._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,linkScales:i.noop,update:function(t){var e=this,n=e.getMeta(),o=n.dataset,a=n.data,r=o.custom||{},s=e.getDataset(),l=e.chart.options.elements.line,u=e.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),i.extend(n.dataset,{_datasetIndex:e.index,_scale:u,_children:a,_loop:!0,_model:{tension:r.tension?r.tension:i.valueOrDefault(s.lineTension,l.tension),backgroundColor:r.backgroundColor?r.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:s.borderWidth||l.borderWidth,borderColor:r.borderColor?r.borderColor:s.borderColor||l.borderColor,fill:r.fill?r.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:r.borderCapStyle?r.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:r.borderDash?r.borderDash:s.borderDash||l.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle}}),n.dataset.pivot(),i.each(a,(function(n,o){e.updateElement(n,o,t)}),e),e.updateBezierControlPoints()},updateElement:function(t,e,n){var o=this,a=t.custom||{},r=o.getDataset(),s=o.chart.scale,l=o.chart.options.elements.point,u=s.getPointPositionForValue(e,r.data[e]);void 0!==r.radius&&void 0===r.pointRadius&&(r.pointRadius=r.radius),void 0!==r.hitRadius&&void 0===r.pointHitRadius&&(r.pointHitRadius=r.hitRadius),i.extend(t,{_datasetIndex:o.index,_index:e,_scale:s,_model:{x:n?s.xCenter:u.x,y:n?s.yCenter:u.y,tension:a.tension?a.tension:i.valueOrDefault(r.lineTension,o.chart.options.elements.line.tension),radius:a.radius?a.radius:i.valueAtIndexOrDefault(r.pointRadius,e,l.radius),backgroundColor:a.backgroundColor?a.backgroundColor:i.valueAtIndexOrDefault(r.pointBackgroundColor,e,l.backgroundColor),borderColor:a.borderColor?a.borderColor:i.valueAtIndexOrDefault(r.pointBorderColor,e,l.borderColor),borderWidth:a.borderWidth?a.borderWidth:i.valueAtIndexOrDefault(r.pointBorderWidth,e,l.borderWidth),pointStyle:a.pointStyle?a.pointStyle:i.valueAtIndexOrDefault(r.pointStyle,e,l.pointStyle),hitRadius:a.hitRadius?a.hitRadius:i.valueAtIndexOrDefault(r.pointHitRadius,e,l.hitRadius)}}),t._model.skip=a.skip?a.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,e=this.getMeta();i.each(e.data,(function(n,o){var a=n._model,r=i.splineCurve(i.previousItem(e.data,o,!0)._model,a,i.nextItem(e.data,o,!0)._model,a.tension);a.controlPointPreviousX=Math.max(Math.min(r.previous.x,t.right),t.left),a.controlPointPreviousY=Math.max(Math.min(r.previous.y,t.bottom),t.top),a.controlPointNextX=Math.max(Math.min(r.next.x,t.right),t.left),a.controlPointNextY=Math.max(Math.min(r.next.y,t.bottom),t.top),n.pivot()}))},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},o=t._index,a=t._model;a.radius=n.hoverRadius?n.hoverRadius:i.valueAtIndexOrDefault(e.pointHoverRadius,o,this.chart.options.elements.point.hoverRadius),a.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:i.valueAtIndexOrDefault(e.pointHoverBackgroundColor,o,i.getHoverColor(a.backgroundColor)),a.borderColor=n.hoverBorderColor?n.hoverBorderColor:i.valueAtIndexOrDefault(e.pointHoverBorderColor,o,i.getHoverColor(a.borderColor)),a.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:i.valueAtIndexOrDefault(e.pointHoverBorderWidth,o,a.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},o=t._index,a=t._model,r=this.chart.options.elements.point;a.radius=n.radius?n.radius:i.valueAtIndexOrDefault(e.pointRadius,o,r.radius),a.backgroundColor=n.backgroundColor?n.backgroundColor:i.valueAtIndexOrDefault(e.pointBackgroundColor,o,r.backgroundColor),a.borderColor=n.borderColor?n.borderColor:i.valueAtIndexOrDefault(e.pointBorderColor,o,r.borderColor),a.borderWidth=n.borderWidth?n.borderWidth:i.valueAtIndexOrDefault(e.pointBorderWidth,o,r.borderWidth)}})}},{25:25,40:40,45:45}],21:[function(t,e,n){"use strict";t(25)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),e.exports=function(t){t.controllers.scatter=t.controllers.line}},{25:25}],22:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45);o._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:i.noop,onComplete:i.noop}}),e.exports=function(t){t.Animation=a.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,o){var a,i,r=this.animations;for(e.chart=t,o||(t.animating=!0),a=0,i=r.length;a1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);var o=Date.now();t.dropFrames+=(o-e)/t.frameDuration,t.animations.length>0&&t.requestAnimationFrame()},advance:function(t){for(var e,n,o=this.animations,a=0;a=e.numSteps?(i.callback(e.onAnimationComplete,[e],n),n.animating=!1,o.splice(a,1)):++a}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,n){"use strict";var o=t(25),a=t(45),i=t(28),r=t(48);e.exports=function(t){function e(t){var e=(t=t||{}).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=a.configMerge(o.global,o[t.type],t.options||{}),t}function n(t){return"top"===t||"bottom"===t}var s=t.plugins;t.types={},t.instances={},t.controllers={},a.extend(t.prototype,{construct:function(n,o){var i=this;o=e(o);var s=r.acquireContext(n,o),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;i.id=a.uid(),i.ctx=s,i.canvas=l,i.config=o,i.width=c,i.height=u,i.aspectRatio=u?c/u:null,i.options=o.options,i._bufferedRender=!1,i.chart=i,i.controller=i,t.instances[i.id]=i,Object.defineProperty(i,"data",{get:function(){return i.config.data},set:function(t){i.config.data=t}}),s&&l?(i.initialize(),i.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return s.notify(t,"beforeInit"),a.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),s.notify(t,"afterInit"),t},clear:function(){return a.canvas.clear(this),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,o=e.canvas,i=n.maintainAspectRatio&&e.aspectRatio||null,r=Math.max(0,Math.floor(a.getMaximumWidth(o))),l=Math.max(0,Math.floor(i?r/i:a.getMaximumHeight(o)));if((e.width!==r||e.height!==l)&&(o.width=e.width=r,o.height=e.height=l,o.style.width=r+"px",o.style.height=l+"px",a.retinaScale(e,n.devicePixelRatio),!t)){var u={width:r,height:l};s.notify(e,"resize",[u]),e.options.onResize&&e.options.onResize(e,u),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;a.each(e.xAxes,(function(t,e){t.id=t.id||"x-axis-"+e})),a.each(e.yAxes,(function(t,e){t.id=t.id||"y-axis-"+e})),n&&(n.id=n.id||"scale")},buildScales:function(){var e=this,o=e.options,i=e.scales={},r=[];o.scales&&(r=r.concat((o.scales.xAxes||[]).map((function(t){return{options:t,dtype:"category",dposition:"bottom"}})),(o.scales.yAxes||[]).map((function(t){return{options:t,dtype:"linear",dposition:"left"}})))),o.scale&&r.push({options:o.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),a.each(r,(function(o){var r=o.options,s=a.valueOrDefault(r.type,o.dtype),l=t.scaleService.getScaleConstructor(s);if(l){n(r.position)!==n(o.dposition)&&(r.position=o.dposition);var u=new l({id:r.id,options:r,ctx:e.ctx,chart:e});i[u.id]=u,u.mergeTicksOptions(),o.isDefault&&(e.scale=u)}})),t.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,n=[],o=[];return a.each(e.data.datasets,(function(a,i){var r=e.getDatasetMeta(i),s=a.type||e.config.type;if(r.type&&r.type!==s&&(e.destroyDatasetMeta(i),r=e.getDatasetMeta(i)),r.type=s,n.push(r.type),r.controller)r.controller.updateIndex(i);else{var l=t.controllers[r.type];if(void 0===l)throw new Error('"'+r.type+'" is not a chart type.');r.controller=new l(e,i),o.push(r.controller)}}),e),o},resetElements:function(){var t=this;a.each(t.data.datasets,(function(e,n){t.getDatasetMeta(n).controller.reset()}),t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e=this;if(t&&"object"==l(t)||(t={duration:t,lazy:arguments[1]}),function(t){var e=t.options;e.scale?t.scale.options=e.scale:e.scales&&e.scales.xAxes.concat(e.scales.yAxes).forEach((function(e){t.scales[e.id].options=e})),t.tooltip._options=e.tooltips}(e),!1!==s.notify(e,"beforeUpdate")){e.tooltip._data=e.data;var n=e.buildOrUpdateControllers();a.each(e.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.buildOrUpdateElements()}),e),e.updateLayout(),a.each(n,(function(t){t.reset()})),e.updateDatasets(),s.notify(e,"afterUpdate"),e._bufferedRender?e._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:e.render(t)}},updateLayout:function(){var e=this;!1!==s.notify(e,"beforeLayout")&&(t.layoutService.update(this,this.width,this.height),s.notify(e,"afterScaleUpdate"),s.notify(e,"afterLayout"))},updateDatasets:function(){var t=this;if(!1!==s.notify(t,"beforeDatasetsUpdate")){for(var e=0,n=t.data.datasets.length;e=0;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);s.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this,o=n.getDatasetMeta(t),a={meta:o,index:t,easingValue:e};!1!==s.notify(n,"beforeDatasetDraw",[a])&&(o.controller.draw(e),s.notify(n,"afterDatasetDraw",[a]))},getElementAtEvent:function(t){return i.modes.single(this,t)},getElementsAtEvent:function(t){return i.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return i.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var o=i.modes[e];return"function"==typeof o?o(this,t,n):[]},getDatasetAtEvent:function(t){return i.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,n=e.data.datasets[t];n._meta||(n._meta={});var o=n._meta[e.id];return o||(o=n._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),o},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e0||(a.forEach((function(e){delete t[e]})),delete t._chartjs)}}var a=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},o.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null===e.xAxisID&&(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,o=n.getMeta(),a=n.getDataset().data||[],i=o.data;for(t=0,e=a.length;to&&t.insertElements(o,a-o)},insertElements:function(t,e){for(var n=0;n=n[e].length&&n[e].push({}),!n[e][r].type||l.type&&l.type!==n[e][r].type?i.merge(n[e][r],[t.scaleService.getScaleDefaults(s),l]):i.merge(n[e][r],l)}else i._merger(e,n,o,a)}})},i.where=function(t,e){if(i.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return i.each(t,(function(t){e(t)&&n.push(t)})),n},i.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var o=0,a=t.length;o=0;o--){var a=t[o];if(e(a))return a}},i.inherits=function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},o=function(){this.constructor=n};return o.prototype=e.prototype,n.prototype=new o,n.extend=i.inherits,t&&i.extend(n.prototype,t),n.__super__=e.prototype,n},i.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},i.almostEquals=function(t,e,n){return Math.abs(t-e)t},i.max=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.max(t,e)}),Number.NEGATIVE_INFINITY)},i.min=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.min(t,e)}),Number.POSITIVE_INFINITY)},i.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},i.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},i.toRadians=function(t){return t*(Math.PI/180)},i.toDegrees=function(t){return t*(180/Math.PI)},i.getAngleFromPoint=function(t,e){var n=e.x-t.x,o=e.y-t.y,a=Math.sqrt(n*n+o*o),i=Math.atan2(o,n);return i<-.5*Math.PI&&(i+=2*Math.PI),{angle:i,distance:a}},i.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},i.aliasPixel=function(t){return t%2==0?0:.5},i.splineCurve=function(t,e,n,o){var a=t.skip?e:t,i=e,r=n.skip?e:n,s=Math.sqrt(Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2)),l=Math.sqrt(Math.pow(r.x-i.x,2)+Math.pow(r.y-i.y,2)),u=s/(s+l),c=l/(s+l),d=o*(u=isNaN(u)?0:u),h=o*(c=isNaN(c)?0:c);return{previous:{x:i.x-d*(r.x-a.x),y:i.y-d*(r.y-a.y)},next:{x:i.x+h*(r.x-a.x),y:i.y+h*(r.y-a.y)}}},i.EPSILON=Number.EPSILON||1e-14,i.splineCurveMonotone=function(t){var e,n,o,a,r,s,l,u,c,d=(t||[]).map((function(t){return{model:t._model,deltaK:0,mK:0}})),h=d.length;for(e=0;e0?d[e-1]:null,(a=e0?d[e-1]:null,a=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},i.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},i.niceNum=function(t,e){var n=Math.floor(i.log10(t)),o=t/Math.pow(10,n);return(e?o<1.5?1:o<3?2:o<7?5:10:o<=1?1:o<=2?2:o<=5?5:10)*Math.pow(10,n)},i.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},i.getRelativePosition=function(t,e){var n,o,a=t.originalEvent||t,r=t.currentTarget||t.srcElement,s=r.getBoundingClientRect(),l=a.touches;l&&l.length>0?(n=l[0].clientX,o=l[0].clientY):(n=a.clientX,o=a.clientY);var u=parseFloat(i.getStyle(r,"padding-left")),c=parseFloat(i.getStyle(r,"padding-top")),d=parseFloat(i.getStyle(r,"padding-right")),h=parseFloat(i.getStyle(r,"padding-bottom")),f=s.right-s.left-u-d,p=s.bottom-s.top-c-h;return{x:n=Math.round((n-s.left-u)/f*r.width/e.currentDevicePixelRatio),y:o=Math.round((o-s.top-c)/p*r.height/e.currentDevicePixelRatio)}},i.getConstraintWidth=function(t){return r(t,"max-width","clientWidth")},i.getConstraintHeight=function(t){return r(t,"max-height","clientHeight")},i.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var n=parseInt(i.getStyle(e,"padding-left"),10),o=parseInt(i.getStyle(e,"padding-right"),10),a=e.clientWidth-n-o,r=i.getConstraintWidth(t);return isNaN(r)?a:Math.min(a,r)},i.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var n=parseInt(i.getStyle(e,"padding-top"),10),o=parseInt(i.getStyle(e,"padding-bottom"),10),a=e.clientHeight-n-o,r=i.getConstraintHeight(t);return isNaN(r)?a:Math.min(a,r)},i.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},i.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;if(1!==n){var o=t.canvas,a=t.height,i=t.width;o.height=a*n,o.width=i*n,t.ctx.scale(n,n),o.style.height=a+"px",o.style.width=i+"px"}},i.fontString=function(t,e,n){return e+" "+t+"px "+n},i.longestText=function(t,e,n,o){var a=(o=o||{}).data=o.data||{},r=o.garbageCollect=o.garbageCollect||[];o.font!==e&&(a=o.data={},r=o.garbageCollect=[],o.font=e),t.font=e;var s=0;i.each(n,(function(e){null!=e&&!0!==i.isArray(e)?s=i.measureText(t,a,r,s,e):i.isArray(e)&&i.each(e,(function(e){null==e||i.isArray(e)||(s=i.measureText(t,a,r,s,e))}))}));var l=r.length/2;if(l>n.length){for(var u=0;uo&&(o=i),o},i.numberOfLabelLines=function(t){var e=1;return i.each(t,(function(t){i.isArray(t)&&t.length>e&&(e=t.length)})),e},i.color=o?function(t){return t instanceof CanvasGradient&&(t=a.global.defaultColor),o(t)}:function(t){return console.error("Color.js not found!"),t},i.getHoverColor=function(t){return t instanceof CanvasPattern?t:i.color(t).saturate(.5).darken(.1).rgbString()}}},{25:25,3:3,45:45}],28:[function(t,e,n){"use strict";function o(t,e){return t.native?{x:t.x,y:t.y}:u.getRelativePosition(t,e)}function a(t,e){var n,o,a,i,r;for(o=0,i=t.data.datasets.length;o0&&(u=t.getDatasetMeta(u[0]._datasetIndex).data),u},"x-axis":function(t,e){return l(t,e,{intersect:!0})},point:function(t,e){return i(t,o(e,t))},nearest:function(t,e,n){var a=o(e,t);n.axis=n.axis||"xy";var i=s(n.axis),l=r(t,a,n.intersect,i);return l.length>1&&l.sort((function(t,e){var n=t.getArea()-e.getArea();return 0===n&&(n=t._datasetIndex-e._datasetIndex),n})),l.slice(0,1)},x:function(t,e,n){var i=o(e,t),r=[],s=!1;return a(t,(function(t){t.inXRange(i.x)&&r.push(t),t.inRange(i.x,i.y)&&(s=!0)})),n.intersect&&!s&&(r=[]),r},y:function(t,e,n){var i=o(e,t),r=[],s=!1;return a(t,(function(t){t.inYRange(i.y)&&r.push(t),t.inRange(i.x,i.y)&&(s=!0)})),n.intersect&&!s&&(r=[]),r}}}},{45:45}],29:[function(t,e,n){"use strict";t(25)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.Chart=t,t}},{25:25}],30:[function(t,e,n){"use strict";var o=t(45);e.exports=function(t){function e(t,e){return o.where(t,(function(t){return t.position===e}))}function n(t,e){t.forEach((function(t,e){return t._tmpIndex_=e,t})),t.sort((function(t,n){var o=e?n:t,a=e?t:n;return o.weight===a.weight?o._tmpIndex_-a._tmpIndex_:o.weight-a.weight})),t.forEach((function(t){delete t._tmpIndex_}))}t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var o,a=["fullWidth","position","weight"],i=a.length,r=0;rh&&lt.maxHeight){l--;break}l++,d=u*c}t.labelRotation=l},afterCalculateTickRotation:function(){s.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){s.callback(this.options.beforeFit,[this])},fit:function(){var t=this,a=t.minSize={width:0,height:0},i=o(t._ticks),r=t.options,u=r.ticks,c=r.scaleLabel,d=r.gridLines,h=r.display,f=t.isHorizontal(),p=n(u),g=r.gridLines.tickMarkLength;if(a.width=f?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:h&&d.drawTicks?g:0,a.height=f?h&&d.drawTicks?g:0:t.maxHeight,c.display&&h){var v=l(c)+s.options.toPadding(c.padding).height;f?a.height+=v:a.width+=v}if(u.display&&h){var m=s.longestText(t.ctx,p.font,i,t.longestTextCache),b=s.numberOfLabelLines(i),x=.5*p.size,y=t.options.ticks.padding;if(f){t.longestLabelWidth=m;var k=s.toRadians(t.labelRotation),w=Math.cos(k),C=Math.sin(k)*m+p.size*b+x*(b-1)+x;a.height=Math.min(t.maxHeight,a.height+C+y),t.ctx.font=p.font;var S=e(t.ctx,i[0],p.font),M=e(t.ctx,i[i.length-1],p.font);0!==t.labelRotation?(t.paddingLeft="bottom"===r.position?w*S+3:w*x+3,t.paddingRight="bottom"===r.position?w*x+3:w*M+3):(t.paddingLeft=S/2+3,t.paddingRight=M/2+3)}else u.mirror?m=0:m+=y+x,a.width=Math.min(t.maxWidth,a.width+m),t.paddingTop=p.size/2,t.paddingBottom=p.size/2}t.handleMargins(),t.width=a.width,t.height=a.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){s.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(s.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:s.noop,getPixelForValue:s.noop,getValueForPixel:s.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var o=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(n?0:1),1),a=o*t+e.paddingLeft;return n&&(a+=o/2),e.left+Math.round(a)+(e.isFullWidth()?e.margins.left:0)}var i=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(i/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft;return e.left+Math.round(n)+(e.isFullWidth()?e.margins.left:0)}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,n=t.max;return t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0},_autoSkip:function(t){var e,n,o,a,i=this,r=i.isHorizontal(),l=i.options.ticks.minor,u=t.length,c=s.toRadians(i.labelRotation),d=Math.cos(c),h=i.longestLabelWidth*d,f=[];for(l.maxTicksLimit&&(a=l.maxTicksLimit),r&&(e=!1,(h+l.autoSkipPadding)*u>i.width-(i.paddingLeft+i.paddingRight)&&(e=1+Math.floor((h+l.autoSkipPadding)*u/(i.width-(i.paddingLeft+i.paddingRight)))),a&&u>a&&(e=Math.max(e,Math.floor(u/a)))),n=0;n1&&n%e>0||n%e==0&&n+e>=u)&&n!==u-1||s.isNullOrUndef(o.label))&&delete o.label,f.push(o);return f},draw:function(t){var e=this,o=e.options;if(o.display){var r=e.ctx,u=i.global,c=o.ticks.minor,d=o.ticks.major||c,h=o.gridLines,f=o.scaleLabel,p=0!==e.labelRotation,g=e.isHorizontal(),v=c.autoSkip?e._autoSkip(e.getTicks()):e.getTicks(),m=s.valueOrDefault(c.fontColor,u.defaultFontColor),b=n(c),x=s.valueOrDefault(d.fontColor,u.defaultFontColor),y=n(d),k=h.drawTicks?h.tickMarkLength:0,w=s.valueOrDefault(f.fontColor,u.defaultFontColor),C=n(f),S=s.options.toPadding(f.padding),M=s.toRadians(e.labelRotation),_=[],I="right"===o.position?e.left:e.right-k,D="right"===o.position?e.left+k:e.right,P="bottom"===o.position?e.top:e.bottom-k,A="bottom"===o.position?e.top+k:e.bottom;if(s.each(v,(function(n,i){if(void 0!==n.label){var r,l,d,f,m=n.label;i===e.zeroLineIndex&&o.offset===h.offsetGridLines?(r=h.zeroLineWidth,l=h.zeroLineColor,d=h.zeroLineBorderDash,f=h.zeroLineBorderDashOffset):(r=s.valueAtIndexOrDefault(h.lineWidth,i),l=s.valueAtIndexOrDefault(h.color,i),d=s.valueOrDefault(h.borderDash,u.borderDash),f=s.valueOrDefault(h.borderDashOffset,u.borderDashOffset));var b,x,y,w,C,S,T,F,L,$,O="middle",z="middle",R=c.padding;if(g){var j=k+R;"bottom"===o.position?(z=p?"middle":"top",O=p?"right":"center",$=e.top+j):(z=p?"middle":"bottom",O=p?"left":"center",$=e.bottom-j);var B=a(e,i,h.offsetGridLines&&v.length>1);B1);E0)n=t.stepSize;else{var i=o.niceNum(e.max-e.min,!1);n=o.niceNum(i/(t.maxTicks-1),!0)}var r=Math.floor(e.min/n)*n,s=Math.ceil(e.max/n)*n;t.min&&t.max&&t.stepSize&&o.almostWhole((t.max-t.min)/t.stepSize,n/1e3)&&(r=t.min,s=t.max);var l=(s-r)/n;l=o.almostEquals(l,Math.round(l),n/1e3)?Math.round(l):Math.ceil(l),a.push(void 0!==t.min?t.min:r);for(var u=1;u3?n[2]-n[1]:n[1]-n[0];Math.abs(a)>1&&t!==Math.floor(t)&&(a=t-Math.floor(t));var i=o.log10(Math.abs(a)),r="";if(0!==t){var s=-1*Math.floor(i);s=Math.max(Math.min(s,20),0),r=t.toFixed(s)}else r="0";return r},logarithmic:function(t,e,n){var a=t/Math.pow(10,Math.floor(o.log10(t)));return 0===t?"0":1===a||2===a||5===a||0===e||e===n.length-1?t.toExponential():""}}}},{45:45}],35:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45);o._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:i.noop,title:function(t,e){var n="",o=e.labels,a=o?o.length:0;if(t.length>0){var i=t[0];i.xLabel?n=i.xLabel:a>0&&i.indexo.height-e.height&&(r="bottom");var s,l,u,c,d,h=(a.left+a.right)/2,f=(a.top+a.bottom)/2;"center"===r?(s=function(t){return t<=h},l=function(t){return t>h}):(s=function(t){return t<=e.width/2},l=function(t){return t>=o.width-e.width/2}),u=function(t){return t+e.width>o.width},c=function(t){return t-e.width<0},d=function(t){return t<=f?"top":"bottom"},s(n.x)?(i="left",u(n.x)&&(i="center",r=d(n.y))):l(n.x)&&(i="right",c(n.x)&&(i="center",r=d(n.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:i,yAlign:p.yAlign?p.yAlign:r}}(this,g))}else c.opacity=0;return c.xAlign=f.xAlign,c.yAlign=f.yAlign,c.x=p.x,c.y=p.y,c.width=g.width,c.height=g.height,c.caretX=v.x,c.caretY=v.y,a._model=c,e&&l.custom&&l.custom.call(a,c),a},drawCaret:function(t,e){var n=this._chart.ctx,o=this._view,a=this.getCaretPosition(t,e,o);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)},getCaretPosition:function(t,e,n){var o,a,i,r,s,l,u=n.caretSize,c=n.cornerRadius,d=n.xAlign,h=n.yAlign,f=t.x,p=t.y,g=e.width,v=e.height;if("center"===h)s=p+v/2,"left"===d?(a=(o=f)-u,i=o,r=s+u,l=s-u):(a=(o=f+g)+u,i=o,r=s-u,l=s+u);else if("left"===d?(o=(a=f+c+u)-u,i=a+u):"right"===d?(o=(a=f+g-c-u)-u,i=a+u):(o=(a=f+g/2)-u,i=a+u),"top"===h)s=(r=p)-u,l=r;else{s=(r=p+v)+u,l=r;var m=i;i=o,o=m}return{x1:o,x2:a,x3:i,y1:r,y2:s,y3:l}},drawTitle:function(t,n,o,a){var r=n.title;if(r.length){o.textAlign=n._titleAlign,o.textBaseline="top";var s,l,u=n.titleFontSize,c=n.titleSpacing;for(o.fillStyle=e(n.titleFontColor,a),o.font=i.fontString(u,n._titleFontStyle,n._titleFontFamily),s=0,l=r.length;s0&&o.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},o={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity,i=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&i&&(this.drawBackground(o,e,t,n,a),o.x+=e.xPadding,o.y+=e.yPadding,this.drawTitle(o,e,t,a),this.drawBody(o,e,t,a),this.drawFooter(o,e,t,a))}},handleEvent:function(t){var e=this,n=e._options,o=!1;if(e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:e._active=e._chart.getElementsAtEventForMode(t,n.mode,n),!(o=!i.arrayEquals(e._active,e._lastActive)))return!1;if(e._lastActive=e._active,n.enabled||n.custom){e._eventPosition={x:t.x,y:t.y};var a=e._model;e.update(!0),e.pivot(),o|=a.x!==e._model.x||a.y!==e._model.y}return o}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,n,o=0,a=0,i=0;for(e=0,n=t.length;el;)a-=2*Math.PI;for(;a=s&&a<=l,c=r>=n.innerRadius&&r<=n.outerRadius;return u&&c}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,o=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,o),t.arc(e.x,e.y,e.innerRadius,o,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45),r=o.global;o._set("global",{elements:{line:{tension:.4,backgroundColor:r.defaultColor,borderWidth:3,borderColor:r.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var t,e,n,o,a=this,s=a._view,l=a._chart.ctx,u=s.spanGaps,c=a._children.slice(),d=r.elements.line,h=-1;for(a._loop&&c.length&&c.push(c[0]),l.save(),l.lineCap=s.borderCapStyle||d.borderCapStyle,l.setLineDash&&l.setLineDash(s.borderDash||d.borderDash),l.lineDashOffset=s.borderDashOffset||d.borderDashOffset,l.lineJoin=s.borderJoinStyle||d.borderJoinStyle,l.lineWidth=s.borderWidth||d.borderWidth,l.strokeStyle=s.borderColor||r.defaultColor,l.beginPath(),h=-1,t=0;te?1:-1,r=1,s=u.borderSkipped||"left"):(e=u.x-u.width/2,n=u.x+u.width/2,o=u.y,i=1,r=(a=u.base)>o?1:-1,s=u.borderSkipped||"bottom"),c){var d=Math.min(Math.abs(e-n),Math.abs(o-a)),h=(c=c>d?d:c)/2,f=e+("left"!==s?h*i:0),p=n+("right"!==s?-h*i:0),g=o+("top"!==s?h*r:0),v=a+("bottom"!==s?-h*r:0);f!==p&&(o=g,a=v),g!==v&&(e=f,n=p)}l.beginPath(),l.fillStyle=u.backgroundColor,l.strokeStyle=u.borderColor,l.lineWidth=c;var m=[[e,a],[e,o],[n,o],[n,a]],b=["bottom","left","top","right"].indexOf(s,0);-1===b&&(b=0);var x=t(0);l.moveTo(x[0],x[1]);for(var y=1;y<4;y++)x=t(y),l.lineTo(x[0],x[1]);l.fill(),c&&l.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n=!1;if(this._view){var o=a(this);n=t>=o.left&&t<=o.right&&e>=o.top&&e<=o.bottom}return n},inLabelRange:function(t,e){var n=this;if(!n._view)return!1;var i=a(n);return o(n)?t>=i.left&&t<=i.right:e>=i.top&&e<=i.bottom},inXRange:function(t){var e=a(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=a(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,n=this._view;return o(this)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,n){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,n){"use strict";var o=t(42);n=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,o,a,i){if(i){var r=Math.min(i,o/2),s=Math.min(i,a/2);t.moveTo(e+r,n),t.lineTo(e+o-r,n),t.quadraticCurveTo(e+o,n,e+o,n+s),t.lineTo(e+o,n+a-s),t.quadraticCurveTo(e+o,n+a,e+o-r,n+a),t.lineTo(e+r,n+a),t.quadraticCurveTo(e,n+a,e,n+a-s),t.lineTo(e,n+s),t.quadraticCurveTo(e,n,e+r,n)}else t.rect(e,n,o,a)},drawPoint:function(t,e,n,o,a){var i,r,s,u,c,d;if("object"!=l(e)||"[object HTMLImageElement]"!==(i=e.toString())&&"[object HTMLCanvasElement]"!==i){if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(o,a,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),c=(r=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(o-r/2,a+c/3),t.lineTo(o+r/2,a+c/3),t.lineTo(o,a-2*c/3),t.closePath(),t.fill();break;case"rect":d=1/Math.SQRT2*n,t.beginPath(),t.fillRect(o-d,a-d,2*d,2*d),t.strokeRect(o-d,a-d,2*d,2*d);break;case"rectRounded":var h=n/Math.SQRT2,f=o-h,p=a-h,g=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,f,p,g,g,n/2),t.closePath(),t.fill();break;case"rectRot":d=1/Math.SQRT2*n,t.beginPath(),t.moveTo(o-d,a),t.lineTo(o,a+d),t.lineTo(o+d,a),t.lineTo(o,a-d),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(o,a+n),t.lineTo(o,a-n),t.moveTo(o-n,a),t.lineTo(o+n,a),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,t.moveTo(o-s,a-u),t.lineTo(o+s,a+u),t.moveTo(o-s,a+u),t.lineTo(o+s,a-u),t.closePath();break;case"star":t.beginPath(),t.moveTo(o,a+n),t.lineTo(o,a-n),t.moveTo(o-n,a),t.lineTo(o+n,a),s=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,t.moveTo(o-s,a-u),t.lineTo(o+s,a+u),t.moveTo(o-s,a+u),t.lineTo(o+s,a-u),t.closePath();break;case"line":t.beginPath(),t.moveTo(o-n,a),t.lineTo(o+n,a),t.closePath();break;case"dash":t.beginPath(),t.moveTo(o,a),t.lineTo(o+n,a),t.closePath()}t.stroke()}}else t.drawImage(e,o-e.width/2,a-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,o){if(n.steppedLine)return"after"===n.steppedLine&&!o||"after"!==n.steppedLine&&o?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y);n.tension?t.bezierCurveTo(o?e.controlPointPreviousX:e.controlPointNextX,o?e.controlPointPreviousY:e.controlPointNextY,o?n.controlPointNextX:n.controlPointPreviousX,o?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}},o.clear=n.clear,o.drawRoundedRectangle=function(t){t.beginPath(),n.roundedRect.apply(n,arguments),t.closePath()}},{42:42}],42:[function(t,e,n){"use strict";var o={noop:function(){},uid:function(){var t=0;return function(){return t++}}(),isNullOrUndef:function(t){return null==t},isArray:Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return o.valueOrDefault(o.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,a){var i,r,s;if(o.isArray(t))if(r=t.length,a)for(i=r-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;i=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,o=1;return 0===t?0:1===t?1:(n||(n=.3),o<1?(o=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/o),-o*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,o=1;return 0===t?0:1===t?1:(n||(n=.3),o<1?(o=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/o),o*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,o=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),o<1?(o=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/o),t<1?o*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:o*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-a.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*a.easeInBounce(2*t):.5*a.easeOutBounce(2*t-1)+.5}};e.exports={effects:a},o.easingEffects=a},{42:42}],44:[function(t,e,n){"use strict";var o=t(42);e.exports={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,a,i;return o.isObject(t)?(e=+t.top||0,n=+t.right||0,a=+t.bottom||0,i=+t.left||0):e=n=a=i=+t||0,{top:e,right:n,bottom:a,left:i,height:e+a,width:i+n}},resolve:function(t,e,n){var a,i,r;for(a=0,i=t.length;a
    ';var i=e.childNodes[0],r=e.childNodes[1];e._reset=function(){i.scrollLeft=1e6,i.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6};var s=function(){e._reset(),t()};return a(i,"scroll",s.bind(i,"expand")),a(r,"scroll",s.bind(r,"shrink")),e}(function(t,e){var n=!1,o=[];return function(){o=Array.prototype.slice.call(arguments),e=e||this,n||(n=!0,u.requestAnimFrame.call(window,(function(){n=!1,t.apply(e,o)})))}}((function(){if(o.resizer)return e(r("resize",n))})));!function(t,e){var n=(t[c]||(t[c]={})).renderProxy=function(t){t.animationName===f&&e()};u.each(p,(function(e){a(t,e,n)})),t.classList.add(h)}(t,(function(){if(o.resizer){var e=t.parentNode;e&&e!==i.parentNode&&e.insertBefore(i,e.firstChild),i._reset()}}))}function l(t){var e=t[c]||{},n=e.resizer;delete e.resizer,function(t){var e=t[c]||{},n=e.renderProxy;n&&(u.each(p,(function(e){i(t,e,n)})),delete e.renderProxy),t.classList.remove(h)}(t),n&&n.parentNode&&n.parentNode.removeChild(n)}var u=t(45),c="$chartjs",d="chartjs-",h=d+"render-monitor",f=d+"render-animation",p=["animationstart","webkitAnimationStart"],g={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},v=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t="from{opacity:0.99}to{opacity:1}";!function(t,e){var n=t._style||document.createElement("style");t._style||(t._style=n,e="/* Chart.js */\n"+e,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(e))}(this,"@-webkit-keyframes "+f+"{"+t+"}@keyframes "+f+"{"+t+"}."+h+"{-webkit-animation:"+f+" 0.001s;animation:"+f+" 0.001s;}")},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){var n=t.style,a=t.getAttribute("height"),i=t.getAttribute("width");if(t[c]={initial:{height:a,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===i||""===i){var r=o(t,"width");void 0!==r&&(t.width=r)}if(null===a||""===a)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var s=o(t,"height");void 0!==r&&(t.height=s)}}(t,e),n):null},releaseContext:function(t){var e=t.canvas;if(e[c]){var n=e[c].initial;["height","width"].forEach((function(t){var o=n[t];u.isNullOrUndef(o)?e.removeAttribute(t):e.setAttribute(t,o)})),u.each(n.style||{},(function(t,n){e.style[n]=t})),e.width=e.width,delete e[c]}},addEventListener:function(t,e,n){var o=t.canvas;if("resize"!==e){var i=n[c]||(n[c]={});a(o,e,(i.proxies||(i.proxies={}))[t.id+"_"+e]=function(e){n(function(t,e){var n=g[t.type]||t.type,o=u.getRelativePosition(t,e);return r(n,e,o.x,o.y,t)}(e,t))})}else s(o,n,t)},removeEventListener:function(t,e,n){var o=t.canvas;if("resize"!==e){var a=((n[c]||{}).proxies||{})[t.id+"_"+e];a&&i(o,e,a)}else l(o)}},u.addEvent=a,u.removeEvent=i},{45:45}],48:[function(t,e,n){"use strict";var o=t(45),a=t(46),i=t(47),r=i._enabled?i:a;e.exports=o.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},r)},{45:45,46:46,47:47}],49:[function(t,e,n){"use strict";var o=t(25),a=t(40),i=t(45);o._set("global",{plugins:{filler:{propagate:!0}}}),e.exports=function(){function t(t,e,n){var o,a=t._model||{},i=a.fill;if(void 0===i&&(i=!!a.backgroundColor),!1===i||null===i)return!1;if(!0===i)return"origin";if(o=parseFloat(i,10),isFinite(o)&&Math.floor(o)===o)return"-"!==i[0]&&"+"!==i[0]||(o=e+o),!(o===e||o<0||o>=n)&&o;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}function e(t){var e,n=t.el._model||{},o=t.el._scale||{},a=t.fill,i=null;if(isFinite(a))return null;if("start"===a?i=void 0===n.scaleBottom?o.bottom:n.scaleBottom:"end"===a?i=void 0===n.scaleTop?o.top:n.scaleTop:void 0!==n.scaleZero?i=n.scaleZero:o.getBasePosition?i=o.getBasePosition():o.getBasePixel&&(i=o.getBasePixel()),null!=i){if(void 0!==i.x&&void 0!==i.y)return i;if("number"==typeof i&&isFinite(i))return{x:(e=o.isHorizontal())?i:null,y:e?null:i}}return null}function n(t,e,n){var o,a=t[e].fill,i=[e];if(!n)return a;for(;!1!==a&&-1===i.indexOf(a);){if(!isFinite(a))return a;if(!(o=t[a]))return!1;if(o.visible)return a;i.push(a),a=o.fill}return!1}function r(t){var e=t.fill,n="dataset";return!1===e?null:(isFinite(e)||(n="boundary"),c[n](t))}function s(t){return t&&!t.skip}function l(t,e,n,o,a){var r;if(o&&a){for(t.moveTo(e[0].x,e[0].y),r=1;r0;--r)i.canvas.lineTo(t,n[r],n[r-1],!0)}}function u(t,e,n,o,a,i){var r,u,c,d,h,f,p,g=e.length,v=o.spanGaps,m=[],b=[],x=0,y=0;for(t.beginPath(),r=0,u=g+!!i;r');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("");return e.push(""),e.join("")}}),e.exports=function(t){function e(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function n(e,n){var o=new t.Legend({ctx:e.ctx,options:n,chart:e});r.configure(e,o,n),r.addBox(e,o),e.legend=o}var r=t.layoutService,s=i.noop;return t.Legend=a.extend({initialize:function(t){i.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:s,update:function(t,e,n){var o=this;return o.beforeUpdate(),o.maxWidth=t,o.maxHeight=e,o.margins=n,o.beforeSetDimensions(),o.setDimensions(),o.afterSetDimensions(),o.beforeBuildLabels(),o.buildLabels(),o.afterBuildLabels(),o.beforeFit(),o.fit(),o.afterFit(),o.afterUpdate(),o.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function(){var t=this,e=t.options.labels||{},n=i.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter((function(n){return e.filter(n,t.chart.data)}))),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:s,beforeFit:s,fit:function(){var t=this,n=t.options,a=n.labels,r=n.display,s=t.ctx,l=o.global,u=i.valueOrDefault,c=u(a.fontSize,l.defaultFontSize),d=u(a.fontStyle,l.defaultFontStyle),h=u(a.fontFamily,l.defaultFontFamily),f=i.fontString(c,d,h),p=t.legendHitBoxes=[],g=t.minSize,v=t.isHorizontal();if(v?(g.width=t.maxWidth,g.height=r?10:0):(g.width=r?10:0,g.height=t.maxHeight),r)if(s.font=f,v){var m=t.lineWidths=[0],b=t.legendItems.length?c+a.padding:0;s.textAlign="left",s.textBaseline="top",i.each(t.legendItems,(function(n,o){var i=e(a,c)+c/2+s.measureText(n.text).width;m[m.length-1]+i+a.padding>=t.width&&(b+=c+a.padding,m[m.length]=t.left),p[o]={left:0,top:0,width:i,height:c},m[m.length-1]+=i+a.padding})),g.height+=b}else{var x=a.padding,y=t.columnWidths=[],k=a.padding,w=0,C=0,S=c+x;i.each(t.legendItems,(function(t,n){var o=e(a,c)+c/2+s.measureText(t.text).width;C+S>g.height&&(k+=w+a.padding,y.push(w),w=0,C=0),w=Math.max(w,o),C+=S,p[n]={left:0,top:0,width:o,height:c}})),k+=w,y.push(w),g.width+=k}t.width=g.width,t.height=g.height},afterFit:s,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,n=t.options,a=n.labels,r=o.global,s=r.elements.line,l=t.width,u=t.lineWidths;if(n.display){var c,d=t.ctx,h=i.valueOrDefault,f=h(a.fontColor,r.defaultFontColor),p=h(a.fontSize,r.defaultFontSize),g=h(a.fontStyle,r.defaultFontStyle),v=h(a.fontFamily,r.defaultFontFamily),m=i.fontString(p,g,v);d.textAlign="left",d.textBaseline="middle",d.lineWidth=.5,d.strokeStyle=f,d.fillStyle=f,d.font=m;var b=e(a,p),x=t.legendHitBoxes,y=function(t,e,o){if(!(isNaN(b)||b<=0)){d.save(),d.fillStyle=h(o.fillStyle,r.defaultColor),d.lineCap=h(o.lineCap,s.borderCapStyle),d.lineDashOffset=h(o.lineDashOffset,s.borderDashOffset),d.lineJoin=h(o.lineJoin,s.borderJoinStyle),d.lineWidth=h(o.lineWidth,s.borderWidth),d.strokeStyle=h(o.strokeStyle,r.defaultColor);var a=0===h(o.lineWidth,s.borderWidth);if(d.setLineDash&&d.setLineDash(h(o.lineDash,s.borderDash)),n.labels&&n.labels.usePointStyle){var l=p*Math.SQRT2/2,u=l/Math.SQRT2,c=t+u,f=e+u;i.canvas.drawPoint(d,o.pointStyle,l,c,f)}else a||d.strokeRect(t,e,b,p),d.fillRect(t,e,b,p);d.restore()}},k=t.isHorizontal();c=k?{x:t.left+(l-u[0])/2,y:t.top+a.padding,line:0}:{x:t.left+a.padding,y:t.top+a.padding,line:0};var w=p+a.padding;i.each(t.legendItems,(function(e,n){var o=d.measureText(e.text).width,i=b+p/2+o,r=c.x,s=c.y;k?r+i>=l&&(s=c.y+=w,c.line++,r=c.x=t.left+(l-u[c.line])/2):s+w>t.bottom&&(r=c.x=r+t.columnWidths[c.line]+a.padding,s=c.y=t.top+a.padding,c.line++),y(r,s,e),x[n].left=r,x[n].top=s,function(t,e,n,o){var a=p/2,i=b+a+t,r=e+a;d.fillText(n.text,i,r),n.hidden&&(d.beginPath(),d.lineWidth=2,d.moveTo(i,r),d.lineTo(i+o,r),d.stroke())}(r,s,e,o),k?c.x+=i+a.padding:c.y+=w}))}},handleEvent:function(t){var e=this,n=e.options,o="mouseup"===t.type?"click":t.type,a=!1;if("mousemove"===o){if(!n.onHover)return}else{if("click"!==o)return;if(!n.onClick)return}var i=t.x,r=t.y;if(i>=e.left&&i<=e.right&&r>=e.top&&r<=e.bottom)for(var s=e.legendHitBoxes,l=0;l=u.left&&i<=u.left+u.width&&r>=u.top&&r<=u.top+u.height){if("click"===o){n.onClick.call(e,t.native,e.legendItems[l]),a=!0;break}if("mousemove"===o){n.onHover.call(e,t.native,e.legendItems[l]),a=!0;break}}}return a}}),{id:"legend",beforeInit:function(t){var e=t.options.legend;e&&n(t,e)},beforeUpdate:function(t){var e=t.options.legend,a=t.legend;e?(i.mergeIf(e,o.global.legend),a?(r.configure(t,a,e),a.options=e):n(t,e)):a&&(r.removeBox(t,a),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}}}},{25:25,26:26,45:45}],51:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45);o._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),e.exports=function(t){function e(e,o){var a=new t.Title({ctx:e.ctx,options:o,chart:e});n.configure(e,a,o),n.addBox(e,a),e.titleBlock=a}var n=t.layoutService,r=i.noop;return t.Title=a.extend({initialize:function(t){i.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:r,update:function(t,e,n){var o=this;return o.beforeUpdate(),o.maxWidth=t,o.maxHeight=e,o.margins=n,o.beforeSetDimensions(),o.setDimensions(),o.afterSetDimensions(),o.beforeBuildLabels(),o.buildLabels(),o.afterBuildLabels(),o.beforeFit(),o.fit(),o.afterFit(),o.afterUpdate(),o.minSize},afterUpdate:r,beforeSetDimensions:r,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:r,beforeBuildLabels:r,buildLabels:r,afterBuildLabels:r,beforeFit:r,fit:function(){var t=this,e=i.valueOrDefault,n=t.options,a=n.display,r=e(n.fontSize,o.global.defaultFontSize),s=t.minSize,l=i.isArray(n.text)?n.text.length:1,u=i.options.toLineHeight(n.lineHeight,r),c=a?l*u+2*n.padding:0;t.isHorizontal()?(s.width=t.maxWidth,s.height=c):(s.width=c,s.height=t.maxHeight),t.width=s.width,t.height=s.height},afterFit:r,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=i.valueOrDefault,a=t.options,r=o.global;if(a.display){var s,l,u,c=n(a.fontSize,r.defaultFontSize),d=n(a.fontStyle,r.defaultFontStyle),h=n(a.fontFamily,r.defaultFontFamily),f=i.fontString(c,d,h),p=i.options.toLineHeight(a.lineHeight,c),g=p/2+a.padding,v=0,m=t.top,b=t.left,x=t.bottom,y=t.right;e.fillStyle=n(a.fontColor,r.defaultFontColor),e.font=f,t.isHorizontal()?(l=b+(y-b)/2,u=m+g,s=y-b):(l="left"===a.position?b+g:y-g,u=m+(x-m)/2,s=x-m,v=Math.PI*("left"===a.position?-.5:.5)),e.save(),e.translate(l,u),e.rotate(v),e.textAlign="center",e.textBaseline="middle";var k=a.text;if(i.isArray(k))for(var w=0,C=0;Ce.max)&&(e.max=o))}))}));e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this,n=e.options.ticks;if(e.isHorizontal())t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.width/50));else{var i=a.valueOrDefault(n.fontSize,o.global.defaultFontSize);t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.height/(2*i)))}return t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,n=this,o=n.start,a=+n.getRightValue(t),i=n.end-o;return n.isHorizontal()?(e=n.left+n.width/i*(a-o),Math.round(e)):(e=n.bottom-n.height/i*(a-o),Math.round(e))},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),o=n?e.width:e.height,a=(n?t-e.left:e.bottom-t)/o;return e.start+(e.end-e.start)*a},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,e)}},{25:25,34:34,45:45}],54:[function(t,e,n){"use strict";var o=t(45),a=t(34);e.exports=function(t){var e=o.noop;t.LinearScaleBase=t.Scale.extend({getRightValue:function(e){return"string"==typeof e?+e:t.Scale.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=o.sign(t.min),a=o.sign(t.max);n<0&&a<0?t.max=0:n>0&&a>0&&(t.min=0)}var i=void 0!==e.min||void 0!==e.suggestedMin,r=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),i!==r&&t.min>=t.max&&(i?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,stepSize:o.valueOrDefault(e.fixedStepSize,e.stepSize)},r=t.ticks=a.generators.linear(i,t);t.handleDirectionalChanges(),t.max=o.max(r),t.min=o.min(r),e.reverse?(r.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{34:34,45:45}],55:[function(t,e,n){"use strict";var o=t(45),a=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:a.formatters.logarithmic}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return l?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,a=n.ticks,i=e.chart,r=i.data.datasets,s=o.valueOrDefault,l=e.isHorizontal();e.min=null,e.max=null,e.minNotZero=null;var u=n.stacked;if(void 0===u&&o.each(r,(function(e,n){if(!u){var o=i.getDatasetMeta(n);i.isDatasetVisible(n)&&t(o)&&void 0!==o.stack&&(u=!0)}})),n.stacked||u){var c={};o.each(r,(function(a,r){var s=i.getDatasetMeta(r),l=[s.type,void 0===n.stacked&&void 0===s.stack?r:"",s.stack].join(".");i.isDatasetVisible(r)&&t(s)&&(void 0===c[l]&&(c[l]=[]),o.each(a.data,(function(t,o){var a=c[l],i=+e.getRightValue(t);isNaN(i)||s.data[o].hidden||(a[o]=a[o]||0,n.relativePoints?a[o]=100:a[o]+=i)})))})),o.each(c,(function(t){var n=o.min(t),a=o.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?a:Math.max(e.max,a)}))}else o.each(r,(function(n,a){var r=i.getDatasetMeta(a);i.isDatasetVisible(a)&&t(r)&&o.each(n.data,(function(t,n){var o=+e.getRightValue(t);isNaN(o)||r.data[n].hidden||((null===e.min||oe.max)&&(e.max=o),0!==o&&(null===e.minNotZero||oa?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function l(t){return 0===t||180===t?"center":t<180?"left":"right"}function u(t,e,n,o){if(a.isArray(e))for(var i=n.y,r=1.5*o,s=0;s270||t<90)&&(n.y-=e.h)}function d(t){var o=t.ctx,i=a.valueOrDefault,r=t.options,s=r.angleLines,d=r.pointLabels;o.lineWidth=s.lineWidth,o.strokeStyle=s.color;var h=t.getDistanceFromCenterForValue(r.ticks.reverse?t.min:t.max),f=n(t);o.textBaseline="top";for(var g=e(t)-1;g>=0;g--){if(s.display){var v=t.getPointPosition(g,h);o.beginPath(),o.moveTo(t.xCenter,t.yCenter),o.lineTo(v.x,v.y),o.stroke(),o.closePath()}if(d.display){var m=t.getPointPosition(g,h+5),b=i(d.fontColor,p.defaultFontColor);o.font=f.font,o.fillStyle=b;var x=t.getIndexAngle(g),y=a.toDegrees(x);o.textAlign=l(y),c(y,t._pointLabelSizes[g],m),u(o,t.pointLabels[g]||"",m,f.size)}}}function h(t,n,o,i){var r=t.ctx;if(r.strokeStyle=a.valueAtIndexOrDefault(n.color,i-1),r.lineWidth=a.valueAtIndexOrDefault(n.lineWidth,i-1),t.options.gridLines.circular)r.beginPath(),r.arc(t.xCenter,t.yCenter,o,0,2*Math.PI),r.closePath(),r.stroke();else{var s=e(t);if(0===s)return;r.beginPath();var l=t.getPointPosition(0,o);r.moveTo(l.x,l.y);for(var u=1;ud.r&&(d.r=v.end,h.r=p),m.startd.b&&(d.b=m.end,h.b=p)}t.setReductions(c,d,h)}(this):function(t){var e=Math.min(t.height/2,t.width/2);t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0)}(this)},setReductions:function(t,e,n){var o=this,a=e.l/Math.sin(n.l),i=Math.max(e.r-o.width,0)/Math.sin(n.r),r=-e.t/Math.cos(n.t),s=-Math.max(e.b-o.height,0)/Math.cos(n.b);a=f(a),i=f(i),r=f(r),s=f(s),o.drawingArea=Math.min(Math.round(t-(a+i)/2),Math.round(t-(r+s)/2)),o.setCenterPoint(a,i,r,s)},setCenterPoint:function(t,e,n,o){var a=this,i=a.width-e-a.drawingArea,r=t+a.drawingArea,s=n+a.drawingArea,l=a.height-o-a.drawingArea;a.xCenter=Math.round((r+i)/2+a.left),a.yCenter=Math.round((s+l)/2+a.top)},getIndexAngle:function(t){return t*(2*Math.PI/e(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var n=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*n:(t-e.min)*n},getPointPosition:function(t,e){var n=this,o=n.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(o)*e)+n.xCenter,y:Math.round(Math.sin(o)*e)+n.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this,e=t.min,n=t.max;return t.getPointPositionForValue(0,t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0)},draw:function(){var t=this,e=t.options,n=e.gridLines,o=e.ticks,i=a.valueOrDefault;if(e.display){var r=t.ctx,s=this.getIndexAngle(0),l=i(o.fontSize,p.defaultFontSize),u=i(o.fontStyle,p.defaultFontStyle),c=i(o.fontFamily,p.defaultFontFamily),f=a.fontString(l,u,c);a.each(t.ticks,(function(e,a){if(a>0||o.reverse){var u=t.getDistanceFromCenterForValue(t.ticksAsNumbers[a]);if(n.display&&0!==a&&h(t,n,u,a),o.display){var c=i(o.fontColor,p.defaultFontColor);if(r.font=f,r.save(),r.translate(t.xCenter,t.yCenter),r.rotate(s),o.showLabelBackdrop){var d=r.measureText(e).width;r.fillStyle=o.backdropColor,r.fillRect(-d/2-o.backdropPaddingX,-u-l/2-o.backdropPaddingY,d+2*o.backdropPaddingX,l+2*o.backdropPaddingY)}r.textAlign="center",r.textBaseline="middle",r.fillStyle=c,r.fillText(e,0,-u),r.restore()}}})),(e.angleLines.display||e.pointLabels.display)&&d(t)}}});t.scaleService.registerScaleType("radialLinear",v,g)}},{25:25,34:34,45:45}],57:[function(t,e,n){"use strict";function o(t,e){return t-e}function a(t){var e,n,o,a={},i=[];for(e=0,n=t.length;e=0&&r<=s;){if(a=t[(o=r+s>>1)-1]||null,i=t[o],!a)return{lo:null,hi:i};if(i[e]n))return{lo:a,hi:i};s=o-1}}return{lo:i,hi:null}}(t,e,n),i=a.lo?a.hi?a.lo:t[t.length-2]:t[0],r=a.lo?a.hi?a.hi:t[t.length-1]:t[1],s=r[e]-i[e],l=s?(n-i[e])/s:0,u=(r[o]-i[o])*l;return i[o]+u}function r(t,e){var n=e.parser,o=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof o?h(t,o):(t instanceof h||(t=h(t)),t.isValid()?t:"function"==typeof o?o(t):t)}function s(t,e){if(p.isNullOrUndef(t))return null;var n=e.options.time,o=r(e.getRightValue(t),n);return o.isValid()?(n.round&&o.startOf(n.round),o.valueOf()):null}function l(t,e,n,o){var a,i,r,s=b.length;for(a=b.indexOf(t);a1?e[1]:o,s=e[0],l=(i(t,"time",r,"pos")-i(t,"time",s,"pos"))/2),a.time.max||(r=e[e.length-1],s=e.length>1?e[e.length-2]:n,u=(i(t,"time",r,"pos")-i(t,"time",s,"pos"))/2)),{left:l,right:u}}function d(t,e){var n,o,a,i,r=[];for(n=0,o=t.length;n=a&&n<=i&&y.push(n);return o.min=a,o.max=i,o._unit=g,o._majorUnit=v,o._minorFormat=f[g],o._majorFormat=f[v],o._table=function(t,e,n,o){if("linear"===o||!t.length)return[{time:e,pos:0},{time:n,pos:1}];var a,i,r,s,l,u=[],c=[e];for(a=0,i=t.length;ae&&s=0&&t{function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}n(8636),n(5086),n(8329),n(8772),n(4913),n(9693),n(115),n(7136),n(173),n(9073),n(6048),n(9581),n(3534),n(590),n(4216),n(8665),n(9979),n(4602),function(t){"use strict";var e=function(e,n){t.fn.typeahead.defaults;n.scrollBar&&(n.items=100,n.menu='');var o=this;if(o.$element=t(e),o.options=t.extend({},t.fn.typeahead.defaults,n),o.$menu=t(o.options.menu).insertAfter(o.$element),o.eventSupported=o.options.eventSupported||o.eventSupported,o.grepper=o.options.grepper||o.grepper,o.highlighter=o.options.highlighter||o.highlighter,o.lookup=o.options.lookup||o.lookup,o.matcher=o.options.matcher||o.matcher,o.render=o.options.render||o.render,o.onSelect=o.options.onSelect||null,o.sorter=o.options.sorter||o.sorter,o.source=o.options.source||o.source,o.displayField=o.options.displayField||o.displayField,o.valueField=o.options.valueField||o.valueField,o.options.ajax){var a=o.options.ajax;"string"==typeof a?o.ajax=t.extend({},t.fn.typeahead.defaults.ajax,{url:a}):("string"==typeof a.displayField&&(o.displayField=o.options.displayField=a.displayField),"string"==typeof a.valueField&&(o.valueField=o.options.valueField=a.valueField),o.ajax=t.extend({},t.fn.typeahead.defaults.ajax,a)),o.ajax.url||(o.ajax=null),o.query=""}else o.source=o.options.source,o.ajax=null;o.shown=!1,o.listen()};e.prototype={constructor:e,eventSupported:function(t){var e=t in this.$element;return e||(this.$element.setAttribute(t,"return;"),e="function"==typeof this.$element[t]),e},select:function(){var t=this.$menu.find(".active").attr("data-value"),e=this.$menu.find(".active a").text();return this.options.onSelect&&this.options.onSelect({value:t,text:e}),this.$element.val(this.updater(e)).change(),this.hide()},updater:function(t){return t},show:function(){var e=t.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});if(this.$menu.css({top:e.top+e.height,left:e.left}),this.options.alignWidth){var n=t(this.$element[0]).outerWidth();this.$menu.css({width:n})}return this.$menu.show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},ajaxLookup:function(){var e=t.trim(this.$element.val());if(e===this.query)return this;if(this.query=e,this.ajax.timerId&&(clearTimeout(this.ajax.timerId),this.ajax.timerId=null),!e||e.length"+e+""}))},render:function(e){var n,a=this,i="string"==typeof a.options.displayField;return(e=t(e).map((function(e,r){return"object"===o(r)?(n=i?r[a.options.displayField]:a.options.displayField(r),e=t(a.options.item).attr("data-value",r[a.options.valueField])):(n=r,e=t(a.options.item).attr("data-value",r)),e.find("a").html(a.highlighter(n)),e[0]}))).first().addClass("active"),this.$menu.html(e),this},grepper:function(e){var n,o,a=this,i="string"==typeof a.options.displayField;if(!(i&&e&&e.length))return null;if(e[0].hasOwnProperty(a.options.displayField))n=t.grep(e,(function(t){return o=i?t[a.options.displayField]:a.options.displayField(t),a.matcher(o)}));else{if("string"!=typeof e[0])return null;n=t.grep(e,(function(t){return a.matcher(t)}))}return this.sorter(n)},next:function(e){var n=this.$menu.find(".active").removeClass("active").next();if(n.length||(n=t(this.$menu.find("li")[0])),this.options.scrollBar){var o=this.$menu.children("li").index(n);o%8==0&&this.$menu.scrollTop(26*o)}n.addClass("active")},prev:function(t){var e=this.$menu.find(".active").removeClass("active").prev();if(e.length||(e=this.$menu.find("li").last()),this.options.scrollBar){var n=this.$menu.children("li"),o=n.length-1,a=n.index(e);(o-a)%8==0&&this.$menu.scrollTop(26*(a-7))}e.addClass("active")},listen:function(){this.$element.on("focus",t.proxy(this.focus,this)).on("blur",t.proxy(this.blur,this)).on("keypress",t.proxy(this.keypress,this)).on("keyup",t.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",t.proxy(this.keydown,this)),this.$menu.on("click",t.proxy(this.click,this)).on("mouseenter","li",t.proxy(this.mouseenter,this)).on("mouseleave","li",t.proxy(this.mouseleave,this))},move:function(t){if(this.shown){switch(t.keyCode){case 9:case 13:case 27:t.preventDefault();break;case 38:t.preventDefault(),this.prev();break;case 40:t.preventDefault(),this.next()}t.stopPropagation()}},keydown:function(e){this.suppressKeyPressRepeat=~t.inArray(e.keyCode,[40,38,9,13,27]),this.move(e)},keypress:function(t){this.suppressKeyPressRepeat||this.move(t)},keyup:function(t){switch(t.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.ajax?this.ajaxLookup():this.lookup()}t.stopPropagation(),t.preventDefault()},focus:function(t){this.focused=!0},blur:function(t){this.focused=!1,!this.mousedover&&this.shown&&this.hide()},click:function(t){t.stopPropagation(),t.preventDefault(),this.select(),this.$element.focus()},mouseenter:function(e){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),t(e.currentTarget).addClass("active")},mouseleave:function(t){this.mousedover=!1,!this.focused&&this.shown&&this.hide()},destroy:function(){this.$element.off("focus",t.proxy(this.focus,this)).off("blur",t.proxy(this.blur,this)).off("keypress",t.proxy(this.keypress,this)).off("keyup",t.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.off("keydown",t.proxy(this.keydown,this)),this.$menu.off("click",t.proxy(this.click,this)).off("mouseenter","li",t.proxy(this.mouseenter,this)).off("mouseleave","li",t.proxy(this.mouseleave,this)),this.$element.removeData("typeahead")}},t.fn.typeahead=function(n){return this.each((function(){var a=t(this),i=a.data("typeahead"),r="object"===o(n)&&n;i||a.data("typeahead",i=new e(this,r)),"string"==typeof n&&i[n]()}))},t.fn.typeahead.defaults={source:[],items:10,scrollBar:!1,alignWidth:!0,menu:'',item:'
  • ',valueField:"id",displayField:"name",onSelect:function(){},ajax:{url:null,timeout:300,method:"get",triggerLength:1,loadingClass:null,preDispatch:null,preProcess:null}},t.fn.typeahead.Constructor=e,t((function(){t("body").on("focus.typeahead.data-api",'[data-provide="typeahead"]',(function(e){var n=t(this);n.data("typeahead")||(e.preventDefault(),n.typeahead(n.data()))}))}))}(window.jQuery)},2811:function(t,e,n){var o,a;function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}n(4913),n(475),n(115),n(9693),n(8636),n(5086),n(7136),n(173),n(2231),n(6255),n(9389),n(6048),n(9581),n(6088),n(9073),n(3534),n(590),n(4216),n(8665),n(9979),n(4602),function(t){"use strict";var e,n,o=Array.prototype.slice;(n=function(e){this.options=t.extend({},n.defaults,e),this.parser=this.options.parser,this.locale=this.options.locale,this.messageStore=this.options.messageStore,this.languages={},this.init()}).prototype={init:function(){var e=this;String.locale=e.locale,String.prototype.toLocaleString=function(){var n,o,a,i,r,s,l;for(a=this.valueOf(),i=e.locale,r=0;i;){o=(n=i.split("-")).length;do{if(s=n.slice(0,o).join("-"),l=e.messageStore.get(s,a))return l;o--}while(o);if("en"===i)break;i=t.i18n.fallbacks[e.locale]&&t.i18n.fallbacks[e.locale][r]||e.options.fallbackLocale,t.i18n.log("Trying fallback locale for "+e.locale+": "+i),r++}return""}},destroy:function(){t.removeData(document,"i18n")},load:function(e,n){var o,a,i,r={};if(e||n||(e="i18n/"+t.i18n().locale+".json",n=t.i18n().locale),"string"==typeof e&&"json"!==e.split(".").pop()){for(a in r[n]=e+"/"+n+".json",o=(t.i18n.fallbacks[n]||[]).concat(this.options.fallbackLocale))r[i=o[a]]=e+"/"+i+".json";return this.load(r)}return this.messageStore.load(e,n)},parse:function(e,n){var o=e.toLocaleString();return this.parser.language=t.i18n.languages[t.i18n().locale]||t.i18n.languages.default,""===o&&(o=e),this.parser.parse(o,n)}},t.i18n=function(e,a){var r,s=t.data(document,"i18n"),l="object"===i(e)&&e;return l&&l.locale&&s&&s.locale!==l.locale&&(String.locale=s.locale=l.locale),s||(s=new n(l),t.data(document,"i18n",s)),"string"==typeof e?(r=void 0!==a?o.call(arguments,1):[],s.parse(e,r)):s},t.fn.i18n=function(){var e=t.data(document,"i18n");return e||(e=new n,t.data(document,"i18n",e)),String.locale=e.locale,this.each((function(){var n,o,a,i,r=t(this),s=r.data("i18n");s?(n=s.indexOf("["),o=s.indexOf("]"),-1!==n&&-1!==o&&n1?["CONCAT"].concat(t):t[0]}function P(){var t=w([h,n,I]);return null===t?null:[t[0],t[2]]}function A(){var t=w([h,n,v]);return null===t?null:[t[0],t[2]]}function T(){var t=w([f,d,p]);return null===t?null:t[1]}if(e=S("|"),n=S(":"),o=S("\\"),a=M(/^./),i=S("$"),r=M(/^\d+/),s=M(/^[^{}\[\]$\\]/),l=M(/^[^{}\[\]$\\|]/),k([_,M(/^[^{}\[\]$\s]/)]),u=k([_,l]),c=k([_,s]),b=M(/^[ !"$&'()*,.\/0-9;=?@A-Z\^_`a-z~\x80-\xFF+\-]+/),x=function(t){return t.toString()},h=function(){var t=b();return null===t?null:x(t)},d=k([function(){var t=w([k([P,A]),C(0,D)]);return null===t?null:t[0].concat(t[1])},function(){var t=w([h,C(0,D)]);return null===t?null:[t[0]].concat(t[1])}]),f=S("{{"),p=S("}}"),g=k([T,I,function(){var t=C(1,c)();return null===t?null:t.join("")}]),v=k([T,I,function(){var t=C(1,u)();return null===t?null:t.join("")}]),null===(m=function(){var t=C(0,g)();return null===t?null:["CONCAT"].concat(t)}())||y!==t.length)throw new Error("Parse error at position "+y.toString()+" in input: "+t);return m}},t.extend(t.i18n.parser,new e)}(jQuery),function(t){"use strict";var e=function(){this.language=t.i18n.languages[String.locale]||t.i18n.languages.default};e.prototype={constructor:e,emit:function(e,n){var o,a,r,s=this;switch(i(e)){case"string":case"number":o=e;break;case"object":if(a=t.map(e.slice(1),(function(t){return s.emit(t,n)})),r=e[0].toLowerCase(),"function"!=typeof s[r])throw new Error('unknown operation "'+r+'"');o=s[r](a,n);break;case"undefined":o="";break;default:throw new Error("unexpected type in AST: "+i(e))}return o},concat:function(e){var n="";return t.each(e,(function(t,e){n+=e})),n},replace:function(t,e){var n=parseInt(t[0],10);return n=parseInt(t[0],10)&&e[0]{},1536:()=>{},2559:()=>{},2553:()=>{},5264:()=>{},6387:()=>{},5985:()=>{},63:()=>{},3888:()=>{},7278:()=>{},3704:()=>{}},t=>{var e=e=>t(t.s=e);t.O(0,[450],(()=>(e(2811),e(7852),e(6108),e(9143),e(5779),e(6618),e(3441),e(1680),e(9654),e(5611),e(3600),e(514),e(9307),e(6730),e(1595),e(1223),e(9662),e(63),e(1536),e(2559),e(2553),e(5264),e(6387),e(5985),e(3888),e(3704),e(7278))));t.O()}]); \ No newline at end of file diff --git a/public/build/app.79f750e0.js.LICENSE.txt b/public/build/app.48b6b1cc.js.LICENSE.txt similarity index 100% rename from public/build/app.79f750e0.js.LICENSE.txt rename to public/build/app.48b6b1cc.js.LICENSE.txt diff --git a/public/build/app.79f750e0.js b/public/build/app.79f750e0.js deleted file mode 100644 index c45b35959..000000000 --- a/public/build/app.79f750e0.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see app.79f750e0.js.LICENSE.txt */ -(self.webpackChunkxtools=self.webpackChunkxtools||[]).push([[524],{3441:()=>{xtools.adminstats={},$((function(){var t=$("#project_input"),e=t.val();0!==$("body.adminstats, body.patrollerstats, body.stewardstats").length&&(xtools.application.setupMultiSelectListeners(),$(".group-selector").on("change",(function(){$(".action-selector").addClass("hidden"),$(".action-selector--"+$(this).val()).removeClass("hidden"),$(".xt-page-title--title").text($.i18n("tool-"+$(this).val()+"stats")),$(".xt-page-title--desc").text($.i18n("tool-"+$(this).val()+"stats-desc"));var n=$.i18n("tool-"+$(this).val()+"stats")+" - "+$.i18n("xtools-title");document.title=n,history.replaceState({},n,"/"+$(this).val()+"stats"),"steward"===$(this).val()?(e=t.val(),t.val("meta.wikimedia.org")):t.val(e),xtools.application.setupMultiSelectListeners()})))}))},9654:(t,e,n)=>{n(8636),n(5086),$((function(){if($("body.authorship").length){var t=$("#show_selector");t.on("change",(function(t){$(".show-option").addClass("hidden").find("input").prop("disabled",!0),$(".show-option--".concat(t.target.value)).removeClass("hidden").find("input").prop("disabled",!1)})),window.onload=function(){return t.trigger("change")}}}))},5611:(t,e,n)=>{n(8476),n(5086),n(8379),n(7899),n(2231),n(115),xtools.autoedits={},$((function(){if($("body.autoedits").length){var t=$(".contributions-container"),e=$("#tool_selector");if(e.length)return xtools.autoedits.fetchTools=function(t){e.prop("disabled",!0),$.get("/api/project/automated_tools/"+t).done((function(t){t.error||(delete t.project,delete t.elapsed_time,e.html('"),Object.keys(t).forEach((function(n){e.append('")}))),e.prop("disabled",!1)}))},$(document).ready((function(){$("#project_input").on("change.autoedits",(function(){xtools.autoedits.fetchTools($("#project_input").val())}))})),void xtools.autoedits.fetchTools($("#project_input").val());if(xtools.application.setupToggleTable(window.countsByTool,window.toolsChart,"count",(function(t){var e=0;Object.keys(t).forEach((function(n){e+=parseInt(t[n].count,10)}));var n=Object.keys(t).length;$(".tools--tools").text(n.toLocaleString(i18nLang)+" "+$.i18n("num-tools",n)),$(".tools--count").text(e.toLocaleString(i18nLang))})),t.length){var n=$(".contributions-table").length?"setupContributionsNavListeners":"loadContributions";xtools.application[n]((function(t){return"".concat(t.target,"-contributions/").concat(t.project,"/").concat(t.username)+"/".concat(t.namespace,"/").concat(t.start,"/").concat(t.end)}),t.data("target"))}}}))},3600:(t,e,n)=>{n(7136),n(173),n(9073),n(6048),n(8636),n(5086),xtools.blame={},$((function(){if($("body.blame").length){$(".diff-empty").length===$(".diff tr").length-1&&$(".diff-empty").eq(0).text("(".concat($.i18n("diff-empty").toLowerCase(),")")).addClass("text-muted text-center").prop("width","20%"),$(".diff-addedline").each((function(){var t=xtools.blame.query.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),e=function(e){var n=new RegExp("(".concat(t,")"),"gi");$(e).html($(e).html().replace(n,"$1"))};$(this).find(".diffchange-inline").length?$(".diffchange-inline").each((function(){e(this)})):e(this)}));var t=$("#show_selector");t.on("change",(function(t){$(".show-option").addClass("hidden").find("input").prop("disabled",!0),$(".show-option--".concat(t.target.value)).removeClass("hidden").find("input").prop("disabled",!1)})),window.onload=function(){return t.trigger("change")}}}))},514:(t,e,n)=>{function o(t,e){xtools.categoryedits.$select2Input.data("select2")&&(xtools.categoryedits.$select2Input.off("change"),xtools.categoryedits.$select2Input.select2("val",null),xtools.categoryedits.$select2Input.select2("data",null),xtools.categoryedits.$select2Input.select2("destroy"));var n=e||xtools.categoryedits.$select2Input.data("ns"),o={ajax:{url:t||xtools.categoryedits.$select2Input.data("api"),dataType:"jsonp",jsonpCallback:"categorySuggestionCallback",delay:200,data:function(t){return{action:"query",list:"prefixsearch",format:"json",pssearch:t.term||"",psnamespace:14,cirrusUseCompletionSuggester:"yes"}},processResults:function(t){var e=t?t.query:{},o=[];return e&&e.prefixsearch.length&&(o=e.prefixsearch.map((function(t){var e=t.title.replace(new RegExp("^"+n+":"),"");return{id:e.score(),text:e}}))),{results:o}}},placeholder:$.i18n("category-search"),maximumSelectionLength:10,minimumInputLength:1};xtools.categoryedits.$select2Input.select2(o)}n(475),n(8476),n(5086),n(8379),n(7899),n(2231),n(9581),n(7136),n(173),n(9073),n(6048),xtools.categoryedits={},$((function(){$("body.categoryedits").length&&$(document).ready((function(){var t;xtools.categoryedits.$select2Input=$("#category_selector"),o(),$("#project_input").on("xtools.projectLoaded",(function(t,e){$.get(xtBaseUrl+"api/project/namespaces/"+e.project).done((function(t){o(t.api,t.namespaces[14])}))})),$("form").on("submit",(function(){$("#category_input").val(xtools.categoryedits.$select2Input.val().join("|"))})),xtools.application.setupToggleTable(window.countsByCategory,window.categoryChart,"editCount",(function(t){var e=0,n=0;Object.keys(t).forEach((function(o){e+=parseInt(t[o].editCount,10),n+=parseInt(t[o].pageCount,10)}));var o=Object.keys(t).length;$(".category--category").text(o.toLocaleString(i18nLang)+" "+$.i18n("num-categories",o)),$(".category--count").text(e.toLocaleString(i18nLang)),$(".category--percent-of-edit-count").text(100*(e/xtools.categoryedits.userEditCount).toLocaleString(i18nLang)+"%"),$(".category--pages").text(n.toLocaleString(i18nLang))})),$(".contributions-container").length&&(t=$(".contributions-table").length?"setupContributionsNavListeners":"loadContributions",xtools.application[t]((function(t){return"categoryedits-contributions/"+t.project+"/"+t.username+"/"+t.categories+"/"+t.start+"/"+t.end}),"Category"))}))}))},5779:(t,e,n)=>{function o(t){$("#project_input").val(xtools.application.vars.lastProject),$(".site-notice").append("")}function a(){var t=$("#page_input"),e=$("#user_input"),n=$("#namespace_select");if(t[0]||e[0]||$("#project_input")[0]){t.data("typeahead")&&t.data("typeahead").destroy(),e.data("typeahead")&&e.data("typeahead").destroy(),xtools.application.vars.apiPath||(xtools.application.vars.apiPath=$("#page_input").data("api")||$("#user_input").data("api"));var o={url:xtools.application.vars.apiPath,timeout:200,triggerLength:1,method:"get",preDispatch:null,preProcess:null};t[0]&&t.typeahead({ajax:Object.assign(o,{preDispatch:function(t){n[0]&&"0"!==n.val()&&(t=n.find("option:selected").text().trim()+":"+t);return{action:"query",list:"prefixsearch",format:"json",pssearch:t}},preProcess:function(t){var e="";return n[0]&&"0"!==n.val()&&(e=n.find("option:selected").text().trim()),t.query.prefixsearch.map((function(t){return t.title.replace(new RegExp("^"+e+":"),"")}))}})}),e[0]&&e.typeahead({ajax:Object.assign(o,{preDispatch:function(t){return{action:"query",list:"prefixsearch",format:"json",pssearch:"User:"+t}},preProcess:function(t){return t.query.prefixsearch.map((function(t){return t.title.split("/")[0].substr(t.title.indexOf(":")+1)})).filter((function(t,e,n){return n.indexOf(t)===e}))}})})}}function i(t){t?($(".form-control").prop("readonly",!1),$(".form-submit").prop("disabled",!1),$(".form-submit").text($.i18n("submit")).prop("disabled",!1)):$("#content form").on("submit",(function(){document.activeElement.blur(),$(".form-control").prop("readonly",!0),$(".form-submit").prop("disabled",!0).html($.i18n("loading")+" ");var t=Date.now();setInterval((function(){var e=Math.round((Date.now()-t)/1e3),n=Math.floor(e/60),o=("00"+(e-60*n)).slice(-2);$("#submit_timer").text(n+":"+o)}),1e3)}))}n(8665),n(5086),n(9979),n(4602),n(789),n(933),n(9218),n(2231),n(8636),n(5231),n(6088),n(8476),n(8379),n(7899),n(4189),n(8329),n(9581),n(7136),n(173),n(9073),n(6048),n(9693),n(17),n(9560),n(9389),n(8772),n(4913),xtools={},xtools.application={},xtools.application.vars={sectionOffset:{}},xtools.application.chartGridColor="rgba(0, 0, 0, 0.1)",window.matchMedia("(prefers-color-scheme: dark)").matches&&(Chart.defaults.global.defaultFontColor="#AAA",xtools.application.chartGridColor="#333"),$.i18n({locale:i18nLang}).load(i18nPaths),$((function(){$(document).ready((function(){if($(".xt-hide").on("click",(function(){$(this).hide(),$(this).siblings(".xt-show").show(),$(this).parents(".panel-heading").length?$(this).parents(".panel-heading").siblings(".panel-body").hide():$(this).parents(".xt-show-hide--parent").next(".xt-show-hide--target").hide()})),$(".xt-show").on("click",(function(){$(this).hide(),$(this).siblings(".xt-hide").show(),$(this).parents(".panel-heading").length?$(this).parents(".panel-heading").siblings(".panel-body").show():$(this).parents(".xt-show-hide--parent").next(".xt-show-hide--target").show()})),function(){var t=$(window).width(),e=$(".tool-links").outerWidth(),n=$(".nav-buttons").outerWidth();if(t<768)return;e+n>t&&$(".tool-links--more").removeClass("hidden");var o=$(".tool-links--entry").length;for(;o>0&&e+n>t;){var a=$(".tool-links--nav > .tool-links--entry:not(.active)").last().remove();$(".tool-links--more .dropdown-menu").append(a),e=$(".tool-links").outerWidth(),o--}}(),xtools.application.setupColumnSorting(),function(){var t=$(".xt-toc");if(!t||!t[0])return;xtools.application.vars.tocHeight=t.height();var e=function(){$(".xt-toc").find("a").off("click").on("click",(function(t){document.activeElement.blur();var e=$("#"+$(t.target).data("section"));$(window).scrollTop(e.offset().top-xtools.application.vars.tocHeight),$(this).parents(".xt-toc").find("a").removeClass("bold"),n(),xtools.application.vars.$tocClone.addClass("bold")}))};xtools.application.setupTocListeners=e;var n=function(){xtools.application.vars.$tocClone||(xtools.application.vars.$tocClone=t.clone(),xtools.application.vars.$tocClone.addClass("fixed"),t.after(xtools.application.vars.$tocClone),e())};xtools.application.buildSectionOffsets=function(){$.each(t.find("a"),(function(t,e){var n=$(e).data("section");xtools.application.vars.sectionOffset[n]=$("#"+n).offset().top}))},$(".xt-show, .xt-hide").on("click",xtools.application.buildSectionOffsets),xtools.application.buildSectionOffsets(),e();var o=t.offset().top;$(window).on("scroll.toc",(function(t){var e,a=$(t.target).scrollTop(),i=a>o;i?(xtools.application.vars.$tocClone||n(),Object.keys(xtools.application.vars.sectionOffset).forEach((function(t){a>xtools.application.vars.sectionOffset[t]-xtools.application.vars.tocHeight-1&&(e=xtools.application.vars.$tocClone.find('a[data-section="'+t+'"]'))})),xtools.application.vars.$tocClone.find("a").removeClass("bold"),e&&e.addClass("bold")):!i&&xtools.application.vars.$tocClone&&(xtools.application.vars.$tocClone.remove(),xtools.application.vars.$tocClone=null)}))}(),function(){var t=$(".table-sticky-header");if(!t||!t[0])return;var e,n=t.find("thead tr").eq(0),o=function(){e||(e=n.clone(),n.addClass("sticky-heading"),n.before(e),n.find("th").each((function(t){$(this).css("width",e.find("th").eq(t).outerWidth())})),n.css("width",e.outerWidth()+1))},a=t.offset().top;$(window).on("scroll.stickyHeader",(function(i){var r=$(i.target).scrollTop()>a;r&&!e?o():!r&&e?(n.removeClass("sticky-heading"),e.remove(),e=null):e&&n.css("top",$(window).scrollTop()-t.offset().top)}))}(),function(){var t=$("#project_input");if(!t)return;t.length&&$("#namespace_select").length?(xtools.application.vars.lastProject=$("#project_input").val(),$("#project_input").off("change").on("change",(function(){$("#namespace_select").prop("disabled",!0);var t=this.value;$.get(xtBaseUrl+"api/project/namespaces/"+t).done((function(e){var n=$('#namespace_select option[value="all"]').eq(0).clone();for(var o in $("#namespace_select").html(n),xtools.application.vars.apiPath=e.api,e.namespaces)if(e.namespaces.hasOwnProperty(o)){var i=0===parseInt(o,10)?$.i18n("mainspace"):e.namespaces[o];$("#namespace_select").append("")}$("#namespace_select").val(0),xtools.application.vars.lastProject=t,a()})).fail(o.bind(this,t)).always((function(){$("#namespace_select").prop("disabled",!1)}))})),$("#namespace_select").on("change",a)):($("#user_input")[0]||$("#page_input")[0])&&(xtools.application.vars.lastProject=t.val(),t.on("change",(function(){var e=this.value;$.get(xtBaseUrl+"api/project/normalize/"+e).done((function(n){xtools.application.vars.apiPath=n.api,xtools.application.vars.lastProject=e,a(),t.trigger("xtools.projectLoaded",n)})).fail(o.bind(this,e))})))}(),a(),i(),"function"==typeof URL){var t=new URL(window.location.href).searchParams.get("focus");t&&$("[name=".concat(t,"]")).focus()}})),window.onpageshow=function(t){t.persisted&&i(!0)}})),xtools.application.setupToggleTable=function(t,e,n,o){var a;$(".toggle-table").on("click",".toggle-table--toggle",(function(){a||(a=Object.assign({},t));var i=$(this).data("index"),r=$(this).data("key");"true"===$(this).attr("data-disabled")?(a[r]=t[r],e.data.datasets[0].data[i]=parseInt(n?a[r][n]:a[r],10),$(this).attr("data-disabled","false")):(delete a[r],e.data.datasets[0].data[i]=null,$(this).attr("data-disabled","true")),$(this).parents("tr").toggleClass("excluded"),$(this).find(".glyphicon").toggleClass("glyphicon-remove").toggleClass("glyphicon-plus"),o(a,r,i),e.update()}))},xtools.application.setupColumnSorting=function(){var t,e;$(".sort-link").on("click",(function(){t=e===$(this).data("column")?-t:1,$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var n=1===t?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";$(this).find(".glyphicon").addClass(n).removeClass("glyphicon-sort"),e=$(this).data("column");var o=$(this).parents("table"),a=o.find(".sort-entry--"+e).parent();a.length&&(a.sort((function(n,o){var a=$(n).find(".sort-entry--"+e).data("value")||0,i=$(o).find(".sort-entry--"+e).data("value")||0;return isNaN(a)||(a=parseFloat(a)||0),isNaN(i)||(i=parseFloat(i)||0),ai?-t:0})),$(".sort-entry--rank").length>0&&$.each(a,(function(t,e){$(e).find(".sort-entry--rank").text(t+1)})),o.find("tbody").html(a))}))},xtools.application.setupMultiSelectListeners=function(){var t=$(".multi-select--body:not(.hidden) .multi-select--option");t.on("change",(function(){$(".multi-select--all").prop("checked",$(".multi-select--body:not(.hidden) .multi-select--option:checked").length===t.length)})),$(".multi-select--all").on("click",(function(){t.prop("checked",$(this).prop("checked"))}))}},6618:(t,e,n)=>{function o(){xtools.application.vars.offset||(xtools.application.vars.initialOffset=$(".contributions-container").data("offset"),xtools.application.vars.offset=xtools.application.vars.initialOffset)}n(9218),n(2231),n(8665),n(5086),n(9979),n(4602),n(933),n(7136),n(785),n(9389),n(6048),n(9073),n(173),Object.assign(xtools.application.vars,{initialOffset:"",offset:"",prevOffsets:[],initialLoad:!1}),xtools.application.loadContributions=function(t,e){o();var n=$(".contributions-container"),a=$(".contributions-loading"),i=n.data(),r=t(i),s=parseInt(i.limit,10)||50,l=new URLSearchParams(window.location.search),u=xtBaseUrl+r+"/"+xtools.application.vars.offset,c=location.pathname.split("/")[1],d=u.split("/")[1];n.addClass("contributions-container--loading"),a.show(),l.set("limit",s.toString()),l.append("htmlonly","yes"),$.ajax({url:u+"?"+l.toString(),timeout:6e4}).always((function(){n.removeClass("contributions-container--loading"),a.hide()})).done((function(o){if(n.html(o).show(),xtools.application.setupContributionsNavListeners(t,e),xtools.application.vars.initialOffset||(xtools.application.vars.initialOffset=$(".contribs-row-date").first().data("value"),xtools.application.vars.initialLoad=!0),c!==d){var a=new RegExp("^/".concat(d,"/(.*)/"));u=u.replace(a,"/".concat(c,"/$1/"))}xtools.application.vars.initialLoad?xtools.application.vars.initialLoad=!1:(l.delete("htmlonly"),window.history.replaceState(null,document.title,u+"?"+l.toString()),n.parents(".panel")[0].scrollIntoView()),xtools.application.vars.offset"+i+"")).show()}))},xtools.application.setupContributionsNavListeners=function(t,e){o(),$(".contributions--prev").off("click").one("click",(function(n){n.preventDefault(),xtools.application.vars.offset=xtools.application.vars.prevOffsets.pop()||xtools.application.vars.initialOffset,xtools.application.loadContributions(t,e)})),$(".contributions--next").off("click").one("click",(function(n){n.preventDefault(),xtools.application.vars.offset&&xtools.application.vars.prevOffsets.push(xtools.application.vars.offset),xtools.application.vars.offset=$(".contribs-row-date").last().data("value"),xtools.application.loadContributions(t,e)})),$("#contributions_limit").on("change",(function(t){var e=parseInt(t.target.value,10);$(".contributions-container").data("limit",e),$(".contributions--prev-text").text($.i18n("pager-newer-n",e).capitalize()),$(".contributions--next-text").text($.i18n("pager-older-n",e).capitalize())}))}},9143:(t,e,n)=>{n(7136),n(173),n(17),n(5086),n(9693),n(5852),n(4913),String.prototype.descore=function(){return this.replace(/_/g," ")},String.prototype.score=function(){return this.replace(/ /g,"_")},String.prototype.escape=function(){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,(function(e){return t[e]}))},Array.prototype.unique=function(){return this.filter((function(t,e,n){return n.indexOf(t)===e}))},Object.defineProperty(String.prototype,"capitalize",{value:function(){return this.charAt(0).toUpperCase()+this.slice(1)},enumerable:!1})},9307:(t,e,n)=>{function o(t,e){var n=0,o=[];Object.keys(t).forEach((function(e){var a=parseInt(t[e],10);o.push(a),n+=a}));var i=Object.keys(t).length;$(".namespaces--namespaces").text(i.toLocaleString(i18nLang)+" "+$.i18n("num-namespaces",i)),$(".namespaces--count").text(n.toLocaleString(i18nLang)),o.forEach((function(t){var e=r(t,n);$(".namespaces-table .sort-entry--count[data-value="+t+"]").text(t.toLocaleString(i18nLang)+" ("+e+")")})),["year","month"].forEach((function(t){var n=window[t+"countsChart"],o=window.namespaces[e]||$.i18n("mainspace");if(n){var i=0;n.data.datasets.forEach((function(t,e){t.label===o&&(i=e)}));var r=n.getDatasetMeta(i);r.hidden=null===r.hidden?!n.data.datasets[i].hidden:null,r.hidden?xtools.editcounter.excludedNamespaces.push(o):xtools.editcounter.excludedNamespaces=xtools.editcounter.excludedNamespaces.filter((function(t){return t!==o})),window[t+"countsChart"].config.data.labels=a(t,n.data.datasets),n.update()}}))}function a(t,e){var n=i(t,e);return Object.keys(n).map((function(e){var o=n[e].toString().length,a=2*(xtools.editcounter.maxDigits[t]-o);return e+Array(a+5).join("\t")+n[e].toLocaleString(i18nLang,{useGrouping:!1})}))}function i(t,e){var n={};return e.forEach((function(e){-1===xtools.editcounter.excludedNamespaces.indexOf(e.label)&&e.data.forEach((function(e,o){n[xtools.editcounter.chartLabels[t][o]]||(n[xtools.editcounter.chartLabels[t][o]]=0),n[xtools.editcounter.chartLabels[t][o]]+=e}))})),n}function r(t,e){return(t/e).toLocaleString(i18nLang,{style:"percent"})}n(8476),n(5086),n(8379),n(7899),n(2231),n(17),n(9581),n(9389),n(6048),n(475),n(9693),n(7136),n(173),n(2982),n(533),n(8825),n(115),n(6088),xtools.editcounter={},xtools.editcounter.excludedNamespaces=[],xtools.editcounter.chartLabels={},xtools.editcounter.maxDigits={},$((function(){0!==$("body.editcounter").length&&(xtools.application.setupMultiSelectListeners(),$(".chart-wrapper").each((function(){var t=$(this).data("chart-type");if(void 0===t)return!1;var e=$(this).data("chart-data"),n=$(this).data("chart-labels"),o=$("canvas",$(this));new Chart(o,{type:t,data:{labels:n,datasets:[{data:e}]}})})),xtools.application.setupToggleTable(window.namespaceTotals,window.namespaceChart,null,o))})),xtools.editcounter.setupMonthYearChart=function(t,e,n,o,s){var l=e.map((function(t){return t.label}));xtools.editcounter.maxDigits[t]=o.toString().length,xtools.editcounter.chartLabels[t]=n,window[t+"countsChart"]=new Chart($("#"+t+"counts-canvas"),{type:"horizontalBar",data:{labels:a(t,e),datasets:e},options:{tooltips:{mode:"nearest",intersect:!0,callbacks:{label:function(n){var o=i(t,e),a=Object.keys(o).map((function(t){return o[t]})),s=a[n.index],l=r(n.xLabel,s);return n.xLabel.toLocaleString(i18nLang)+" ("+l+")"},title:function(t){return t[0].yLabel.replace(/\t.*/,"")+" - "+l[t[0].datasetIndex]}}},responsive:!0,maintainAspectRatio:!1,scales:{xAxes:[{stacked:!0,ticks:{beginAtZero:!0,reverse:i18nRTL,callback:function(t){if(Math.floor(t)===t)return t.toLocaleString(i18nLang)}},gridLines:{color:xtools.application.chartGridColor}}],yAxes:[{stacked:!0,barThickness:18,position:i18nRTL?"right":"left",gridLines:{color:xtools.application.chartGridColor}}]},legend:{display:s}}})},xtools.editcounter.setupTimecard=function(t,e){var n=(new Date).getTimezoneOffset()/60;t=t.map((function(t){return t.backgroundColor=new Array(t.data.length).fill(t.backgroundColor),t})),window.chart=new Chart($("#timecard-bubble-chart"),{type:"bubble",data:{datasets:t},options:{responsive:!0,legend:{display:!1},layout:{padding:{right:0}},elements:{point:{radius:function(t){var e=t.dataIndex;return t.dataset.data[e].scale},hitRadius:8}},scales:{yAxes:[{ticks:{min:0,max:8,stepSize:1,padding:25,callback:function(t,n){return e[n]}},position:i18nRTL?"right":"left",gridLines:{color:xtools.application.chartGridColor}},{ticks:{min:0,max:8,stepSize:1,padding:25,callback:function(t,e){return 0===e||e>7?"":chart.data.datasets[e-1].data.reduce((function(t,e){return t+parseInt(e.value,10)}),0)}},position:i18nRTL?"left":"right"}],xAxes:[{ticks:{beginAtZero:!0,min:0,max:24,stepSize:1,reverse:i18nRTL,padding:0,callback:function(t){return t%2==0?t+":00":""}},gridLines:{color:xtools.application.chartGridColor}}]},tooltips:{displayColors:!1,callbacks:{title:function(t){return e[7-t[0].yLabel+1]+" "+parseInt(t[0].xLabel)+":"+String(t[0].xLabel%1*60).padStart(2,"0")},label:function(e){var n=[t[e.datasetIndex].data[e.index].value];return"".concat(n," ").concat($.i18n("num-edits",[n]))}}}}}),$((function(){$(".use-local-time").prop("checked",!1).on("click",(function(){var t=$(this).is(":checked")?n:-n,e=new Array(7);chart.data.datasets.forEach((function(t){return e[t.data[0].day_of_week-1]=t.backgroundColor[0]})),chart.data.datasets=chart.data.datasets.map((function(n){var o=[];return n.data=n.data.map((function(n){var a=parseFloat(n.hour)-t,i=parseInt(n.day_of_week,10);return a<0?(a=24+a,(i-=1)<1&&(i=7+i)):a>=24&&(a-=24,(i+=1)>7&&(i-=7)),n.hour=a.toString(),n.x=a.toString(),n.day_of_week=i.toString(),n.y=(8-i).toString(),o.push(e[i-1]),n})),n.backgroundColor=o,n})),$(this).is(":checked"),chart.update()}))}))}},6730:(t,e,n)=>{n(115),xtools.globalcontribs={},$((function(){0!==$("body.globalcontribs").length&&xtools.application.setupContributionsNavListeners((function(t){return"globalcontribs/".concat(t.username,"/").concat(t.namespace,"/").concat(t.start,"/").concat(t.end)}),"globalcontribs")}))},1680:(t,e,n)=>{n(7136),n(173),xtools.pageinfo={},$((function(){if($("body.pageinfo").length){var t=function(){xtools.application.setupToggleTable(window.textshares,window.textsharesChart,"percentage",$.noop)},e=$(".textshares-container");if(e[0]){var n=xtBaseUrl+"authorship/"+e.data("project")+"/"+e.data("page")+"/"+(xtools.pageinfo.endDate?xtools.pageinfo.endDate+"/":"");n="".concat(n.replace(/\/$/,""),"?htmlonly=yes"),$.ajax({url:n,timeout:3e4}).done((function(n){e.replaceWith(n),xtools.application.buildSectionOffsets(),xtools.application.setupTocListeners(),xtools.application.setupColumnSorting(),t()})).fail((function(t,n,o){e.replaceWith($.i18n("api-error","Authorship API: "+o+""))}))}else $(".textshares-table").length&&t()}}))},1595:(t,e,n)=>{n(8476),n(5086),n(8379),n(7899),n(4867),n(9389),n(6048),n(8636),xtools.pages={},$((function(){if($("body.pages").length){var t={};xtools.application.setupToggleTable(window.countsByNamespace,window.pieChart,"count",(function(t){var e={count:0,deleted:0,redirects:0};Object.keys(t).forEach((function(n){e.count+=t[n].count,e.deleted+=t[n].deleted,e.redirects+=t[n].redirects})),$(".namespaces--namespaces").text(Object.keys(t).length.toLocaleString()+" "+$.i18n("num-namespaces",Object.keys(t).length)),$(".namespaces--pages").text(e.count.toLocaleString()),$(".namespaces--deleted").text(e.deleted.toLocaleString()+" ("+(e.deleted/e.count*100).toFixed(1)+"%)"),$(".namespaces--redirects").text(e.redirects.toLocaleString()+" ("+(e.redirects/e.count*100).toFixed(1)+"%)")})),$(".deleted-page").on("mouseenter",(function(e){var n=$(this).data("page-title"),o=$(this).data("namespace"),a=$(this).data("datetime").toString(),i=$(this).data("username"),r=function(t){$(e.target).find(".tooltip-body").html(t)};if(void 0!==t[o+"/"+n])return r(t[o+"/"+n]);var s=function(){r(""+$.i18n("api-error","Deletion Summary API")+"")};$.ajax({url:xtBaseUrl+"pages/deletion_summary/"+wikiDomain+"/"+i+"/"+o+"/"+n+"/"+a}).done((function(e){if(null===e.summary)return s();r(e.summary),t[o+"/"+n]=e.summary})).fail(s)}))}}))},1223:()=>{xtools.topedits={},$((function(){$("body.topedits").length&&$("#namespace_select").on("change",(function(){$("#page_input").prop("disabled","all"===$(this).val())}))}))},7852:(t,e,n)=>{var o,a,i,s;function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}n(7136),n(6255),n(2231),n(4913),n(6088),n(9389),n(5086),n(6048),n(8665),n(4602),n(115),n(8476),n(9693),n(475),n(9581),n(2982),n(4009),n(17),n(2157),n(8763),n(9560),n(5852),n(8379),n(7899),n(533),n(4538),n(1145),n(6943),n(8772),n(5231),n(4867),n(4895),n(4189),n(557),n(8844),n(2006),n(3534),n(590),n(4216),n(9979),s=function(){return function t(e,n,o){function a(r,s){if(!n[r]){if(!e[r]){if(i)return i(r,!0);var l=new Error("Cannot find module '"+r+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[r]={exports:{}};e[r][0].call(u.exports,(function(t){return a(e[r][1][t]||t)}),u,u.exports,t,e,n,o)}return n[r].exports}for(var i=void 0,r=0;rn?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=this,o=t,a=void 0===e?.5:e,i=2*a-1,r=n.alpha()-o.alpha(),s=((i*r==-1?i:(i+r)/(1+i*r))+1)/2,l=1-s;return this.rgb(s*n.red()+l*o.red(),s*n.green()+l*o.green(),s*n.blue()+l*o.blue()).alpha(n.alpha()*a+o.alpha()*(1-a))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new i,o=this.values,a=n.values;for(var r in o)o.hasOwnProperty(r)&&(t=o[r],"[object Array]"===(e={}.toString.call(t))?a[r]=t.slice(0):"[object Number]"===e?a[r]=t:console.error("unexpected color value:",t));return n}},i.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},i.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},i.prototype.getValues=function(t){for(var e=this.values,n={},o=0;o.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92)),100*(.2126*e+.7152*n+.0722*o),100*(.0193*e+.1192*n+.9505*o)]}function c(t){var e=u(t),n=e[0],o=e[1],a=e[2];return o/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116)-16,500*(n-o),200*(o-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]}function d(t){var e,n,o,a,i,r=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return[i=255*l,i,i];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var u=0;u<3;u++)(o=r+1/3*-(u-1))<0&&o++,o>1&&o--,i=6*o<1?e+6*(n-e)*o:2*o<1?n:3*o<2?e+(n-e)*(2/3-o)*6:e,a[u]=255*i;return a}function h(t){var e=t[0]/60,n=t[1]/100,o=t[2]/100,a=Math.floor(e)%6,i=e-Math.floor(e),r=255*o*(1-n),s=255*o*(1-n*i),l=255*o*(1-n*(1-i));switch(o*=255,a){case 0:return[o,l,r];case 1:return[s,o,r];case 2:return[r,o,l];case 3:return[r,s,o];case 4:return[l,r,o];case 5:return[o,r,s]}}function f(t){var e,n,o,a,i=t[0]/360,s=t[1]/100,l=t[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),o=6*i-(e=Math.floor(6*i)),!!(1&e)&&(o=1-o),a=s+o*((n=1-l)-s),e){default:case 6:case 0:r=n,g=a,b=s;break;case 1:r=a,g=n,b=s;break;case 2:r=s,g=n,b=a;break;case 3:r=s,g=a,b=n;break;case 4:r=a,g=s,b=n;break;case 5:r=n,g=s,b=a}return[255*r,255*g,255*b]}function p(t){var e=t[0]/100,n=t[1]/100,o=t[2]/100,a=t[3]/100;return[255*(1-Math.min(1,e*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,o*(1-a)+a))]}function v(t){var e,n,o,a=t[0]/100,i=t[1]/100,r=t[2]/100;return n=-.9689*a+1.8758*i+.0415*r,o=.0557*a+-.204*i+1.057*r,e=(e=3.2406*a+-1.5372*i+-.4986*r)>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*=12.92,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(o=Math.min(Math.max(0,o),1))]}function m(t){var e=t[0],n=t[1],o=t[2];return n/=100,o/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]}function x(t){var e,n,o,a,i=t[0],r=t[1],s=t[2];return i<=8?a=(n=100*i/903.3)/100*7.787+16/116:(n=100*Math.pow((i+16)/116,3),a=Math.pow(n/100,1/3)),[e=e/95.047<=.008856?e=95.047*(r/500+a-16/116)/7.787:95.047*Math.pow(r/500+a,3),n,o=o/108.883<=.008859?o=108.883*(a-s/200-16/116)/7.787:108.883*Math.pow(a-s/200,3)]}function y(t){var e,n=t[0],o=t[1],a=t[2];return(e=360*Math.atan2(a,o)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(o*o+a*a),e]}function k(t){return v(x(t))}function w(t){var e,n=t[0],o=t[1];return e=t[2]/360*2*Math.PI,[n,o*Math.cos(e),o*Math.sin(e)]}function C(t){return S[t]}e.exports={rgb2hsl:o,rgb2hsv:a,rgb2hwb:i,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:u,rgb2lab:c,rgb2lch:function(t){return y(c(t))},hsl2rgb:d,hsl2hsv:function(t){var e=t[0],n=t[1]/100,o=t[2]/100;return 0===o?[0,0,0]:[e,2*(n*=(o*=2)<=1?o:2-o)/(o+n)*100,(o+n)/2*100]},hsl2hwb:function(t){return i(d(t))},hsl2cmyk:function(t){return s(d(t))},hsl2keyword:function(t){return l(d(t))},hsv2rgb:h,hsv2hsl:function(t){var e,n,o=t[0],a=t[1]/100,i=t[2]/100;return e=a*i,[o,100*(e=(e/=(n=(2-a)*i)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(t){return i(h(t))},hsv2cmyk:function(t){return s(h(t))},hsv2keyword:function(t){return l(h(t))},hwb2rgb:f,hwb2hsl:function(t){return o(f(t))},hwb2hsv:function(t){return a(f(t))},hwb2cmyk:function(t){return s(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:p,cmyk2hsl:function(t){return o(p(t))},cmyk2hsv:function(t){return a(p(t))},cmyk2hwb:function(t){return i(p(t))},cmyk2keyword:function(t){return l(p(t))},keyword2rgb:C,keyword2hsl:function(t){return o(C(t))},keyword2hsv:function(t){return a(C(t))},keyword2hwb:function(t){return i(C(t))},keyword2cmyk:function(t){return s(C(t))},keyword2lab:function(t){return c(C(t))},keyword2xyz:function(t){return u(C(t))},xyz2rgb:v,xyz2lab:m,xyz2lch:function(t){return y(m(t))},lab2xyz:x,lab2rgb:k,lab2lch:y,lch2lab:w,lch2xyz:function(t){return x(w(t))},lch2rgb:function(t){return k(w(t))}};var S={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]},M={};for(var _ in S)M[JSON.stringify(S[_])]=_},{}],5:[function(t,e,n){var o=t(4),a=function(){return new u};for(var i in o){a[i+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),o[t](e)}}(i);var r=/(\w+)2(\w+)/.exec(i),s=r[1],l=r[2];(a[s]=a[s]||{})[l]=a[i]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var n=o[t](e);if("string"==typeof n||void 0===n)return n;for(var a=0;a0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index=0&&a>0)&&(v+=a));return i=d.getPixelForValue(v),{size:s=((r=d.getPixelForValue(v+f))-i)/2,base:i,head:r,center:r+s/2}},calculateBarIndexPixels:function(t,e,n){var o,a,r,s,l,u=n.scale.options,c=this.getStackIndex(t),d=n.pixels,h=d[e],f=d.length,p=n.start,g=n.end;return 1===f?(o=h>p?h-p:g-h,a=h0&&(o=(h-d[e-1])/2,e===f-1&&(a=o)),e');var n=t.data,o=n.datasets,a=n.labels;if(o.length)for(var i=0;i'),a[i]&&e.push(a[i]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,o){var a=t.getDatasetMeta(0),r=e.datasets[0],s=a.data[o],l=s&&s.custom||{},u=i.valueAtIndexOrDefault,c=t.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(r.backgroundColor,o,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(r.borderColor,o,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(r.borderWidth,o,c.borderWidth),hidden:isNaN(r.data[o])||a.data[o].hidden,index:o}})):[]}},onClick:function(t,e){var n,o,a,i=e.index,r=this.chart;for(n=0,o=(r.data.datasets||[]).length;n=Math.PI?-1:p<-Math.PI?1:0))+f,v={x:Math.cos(p),y:Math.sin(p)},m={x:Math.cos(g),y:Math.sin(g)},b=p<=0&&g>=0||p<=2*Math.PI&&2*Math.PI<=g,x=p<=.5*Math.PI&&.5*Math.PI<=g||p<=2.5*Math.PI&&2.5*Math.PI<=g,y=p<=-Math.PI&&-Math.PI<=g||p<=Math.PI&&Math.PI<=g,k=p<=.5*-Math.PI&&.5*-Math.PI<=g||p<=1.5*Math.PI&&1.5*Math.PI<=g,w=h/100,C={x:y?-1:Math.min(v.x*(v.x<0?1:w),m.x*(m.x<0?1:w)),y:k?-1:Math.min(v.y*(v.y<0?1:w),m.y*(m.y<0?1:w))},S={x:b?1:Math.max(v.x*(v.x>0?1:w),m.x*(m.x>0?1:w)),y:x?1:Math.max(v.y*(v.y>0?1:w),m.y*(m.y>0?1:w))},M={width:.5*(S.x-C.x),height:.5*(S.y-C.y)};u=Math.min(s/M.width,l/M.height),c={x:-.5*(S.x+C.x),y:-.5*(S.y+C.y)}}n.borderWidth=e.getMaxBorderWidth(d.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(h?n.outerRadius/100*h:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=c.x*n.outerRadius,n.offsetY=c.y*n.outerRadius,d.total=e.calculateTotal(),e.outerRadius=n.outerRadius-n.radiusLength*e.getRingIndex(e.index),e.innerRadius=Math.max(e.outerRadius-n.radiusLength,0),i.each(d.data,(function(n,o){e.updateElement(n,o,t)}))},updateElement:function(t,e,n){var o=this,a=o.chart,r=a.chartArea,s=a.options,l=s.animation,u=(r.left+r.right)/2,c=(r.top+r.bottom)/2,d=s.rotation,h=s.rotation,f=o.getDataset(),p=n&&l.animateRotate||t.hidden?0:o.calculateCircumference(f.data[e])*(s.circumference/(2*Math.PI)),g=n&&l.animateScale?0:o.innerRadius,v=n&&l.animateScale?0:o.outerRadius,m=i.valueAtIndexOrDefault;i.extend(t,{_datasetIndex:o.index,_index:e,_model:{x:u+a.offsetX,y:c+a.offsetY,startAngle:d,endAngle:h,circumference:p,outerRadius:v,innerRadius:g,label:m(f.label,e,a.data.labels[e])}});var b=t._model;this.removeHoverStyle(t),n&&l.animateRotate||(b.startAngle=0===e?s.rotation:o.getMeta().data[e-1]._model.endAngle,b.endAngle=b.startAngle+b.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,e=this.getDataset(),n=this.getMeta(),o=0;return i.each(n.data,(function(n,a){t=e.data[a],isNaN(t)||n.hidden||(o+=Math.abs(t))})),o},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,n,o=0,a=this.index,i=t.length,r=0;r(o=e>o?e:o)?n:o;return o}})}},{25:25,40:40,45:45}],18:[function(t,e,n){"use strict";var o=t(25),a=t(40),i=t(45);o._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(t){function e(t,e){return i.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,update:function(t){var n,o,a,r=this,s=r.getMeta(),l=s.dataset,u=s.data||[],c=r.chart.options,d=c.elements.line,h=r.getScaleForId(s.yAxisID),f=r.getDataset(),p=e(f,c);for(p&&(a=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=h,l._datasetIndex=r.index,l._children=u,l._model={spanGaps:f.spanGaps?f.spanGaps:c.spanGaps,tension:a.tension?a.tension:i.valueOrDefault(f.lineTension,d.tension),backgroundColor:a.backgroundColor?a.backgroundColor:f.backgroundColor||d.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:f.borderWidth||d.borderWidth,borderColor:a.borderColor?a.borderColor:f.borderColor||d.borderColor,borderCapStyle:a.borderCapStyle?a.borderCapStyle:f.borderCapStyle||d.borderCapStyle,borderDash:a.borderDash?a.borderDash:f.borderDash||d.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:f.borderDashOffset||d.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:f.borderJoinStyle||d.borderJoinStyle,fill:a.fill?a.fill:void 0!==f.fill?f.fill:d.fill,steppedLine:a.steppedLine?a.steppedLine:i.valueOrDefault(f.steppedLine,d.stepped),cubicInterpolationMode:a.cubicInterpolationMode?a.cubicInterpolationMode:i.valueOrDefault(f.cubicInterpolationMode,d.cubicInterpolationMode)},l.pivot()),n=0,o=u.length;n');var n=t.data,o=n.datasets,a=n.labels;if(o.length)for(var i=0;i'),a[i]&&e.push(a[i]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,o){var a=t.getDatasetMeta(0),r=e.datasets[0],s=a.data[o].custom||{},l=i.valueAtIndexOrDefault,u=t.options.elements.arc;return{text:n,fillStyle:s.backgroundColor?s.backgroundColor:l(r.backgroundColor,o,u.backgroundColor),strokeStyle:s.borderColor?s.borderColor:l(r.borderColor,o,u.borderColor),lineWidth:s.borderWidth?s.borderWidth:l(r.borderWidth,o,u.borderWidth),hidden:isNaN(r.data[o])||a.data[o].hidden,index:o}})):[]}},onClick:function(t,e){var n,o,a,i=e.index,r=this.chart;for(n=0,o=(r.data.datasets||[]).length;n0&&!isNaN(t)?2*Math.PI/e:0}})}},{25:25,40:40,45:45}],20:[function(t,e,n){"use strict";var o=t(25),a=t(40),i=t(45);o._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,linkScales:i.noop,update:function(t){var e=this,n=e.getMeta(),o=n.dataset,a=n.data,r=o.custom||{},s=e.getDataset(),l=e.chart.options.elements.line,u=e.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),i.extend(n.dataset,{_datasetIndex:e.index,_scale:u,_children:a,_loop:!0,_model:{tension:r.tension?r.tension:i.valueOrDefault(s.lineTension,l.tension),backgroundColor:r.backgroundColor?r.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:s.borderWidth||l.borderWidth,borderColor:r.borderColor?r.borderColor:s.borderColor||l.borderColor,fill:r.fill?r.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:r.borderCapStyle?r.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:r.borderDash?r.borderDash:s.borderDash||l.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle}}),n.dataset.pivot(),i.each(a,(function(n,o){e.updateElement(n,o,t)}),e),e.updateBezierControlPoints()},updateElement:function(t,e,n){var o=this,a=t.custom||{},r=o.getDataset(),s=o.chart.scale,l=o.chart.options.elements.point,u=s.getPointPositionForValue(e,r.data[e]);void 0!==r.radius&&void 0===r.pointRadius&&(r.pointRadius=r.radius),void 0!==r.hitRadius&&void 0===r.pointHitRadius&&(r.pointHitRadius=r.hitRadius),i.extend(t,{_datasetIndex:o.index,_index:e,_scale:s,_model:{x:n?s.xCenter:u.x,y:n?s.yCenter:u.y,tension:a.tension?a.tension:i.valueOrDefault(r.lineTension,o.chart.options.elements.line.tension),radius:a.radius?a.radius:i.valueAtIndexOrDefault(r.pointRadius,e,l.radius),backgroundColor:a.backgroundColor?a.backgroundColor:i.valueAtIndexOrDefault(r.pointBackgroundColor,e,l.backgroundColor),borderColor:a.borderColor?a.borderColor:i.valueAtIndexOrDefault(r.pointBorderColor,e,l.borderColor),borderWidth:a.borderWidth?a.borderWidth:i.valueAtIndexOrDefault(r.pointBorderWidth,e,l.borderWidth),pointStyle:a.pointStyle?a.pointStyle:i.valueAtIndexOrDefault(r.pointStyle,e,l.pointStyle),hitRadius:a.hitRadius?a.hitRadius:i.valueAtIndexOrDefault(r.pointHitRadius,e,l.hitRadius)}}),t._model.skip=a.skip?a.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,e=this.getMeta();i.each(e.data,(function(n,o){var a=n._model,r=i.splineCurve(i.previousItem(e.data,o,!0)._model,a,i.nextItem(e.data,o,!0)._model,a.tension);a.controlPointPreviousX=Math.max(Math.min(r.previous.x,t.right),t.left),a.controlPointPreviousY=Math.max(Math.min(r.previous.y,t.bottom),t.top),a.controlPointNextX=Math.max(Math.min(r.next.x,t.right),t.left),a.controlPointNextY=Math.max(Math.min(r.next.y,t.bottom),t.top),n.pivot()}))},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},o=t._index,a=t._model;a.radius=n.hoverRadius?n.hoverRadius:i.valueAtIndexOrDefault(e.pointHoverRadius,o,this.chart.options.elements.point.hoverRadius),a.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:i.valueAtIndexOrDefault(e.pointHoverBackgroundColor,o,i.getHoverColor(a.backgroundColor)),a.borderColor=n.hoverBorderColor?n.hoverBorderColor:i.valueAtIndexOrDefault(e.pointHoverBorderColor,o,i.getHoverColor(a.borderColor)),a.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:i.valueAtIndexOrDefault(e.pointHoverBorderWidth,o,a.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},o=t._index,a=t._model,r=this.chart.options.elements.point;a.radius=n.radius?n.radius:i.valueAtIndexOrDefault(e.pointRadius,o,r.radius),a.backgroundColor=n.backgroundColor?n.backgroundColor:i.valueAtIndexOrDefault(e.pointBackgroundColor,o,r.backgroundColor),a.borderColor=n.borderColor?n.borderColor:i.valueAtIndexOrDefault(e.pointBorderColor,o,r.borderColor),a.borderWidth=n.borderWidth?n.borderWidth:i.valueAtIndexOrDefault(e.pointBorderWidth,o,r.borderWidth)}})}},{25:25,40:40,45:45}],21:[function(t,e,n){"use strict";t(25)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),e.exports=function(t){t.controllers.scatter=t.controllers.line}},{25:25}],22:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45);o._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:i.noop,onComplete:i.noop}}),e.exports=function(t){t.Animation=a.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,o){var a,i,r=this.animations;for(e.chart=t,o||(t.animating=!0),a=0,i=r.length;a1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);var o=Date.now();t.dropFrames+=(o-e)/t.frameDuration,t.animations.length>0&&t.requestAnimationFrame()},advance:function(t){for(var e,n,o=this.animations,a=0;a=e.numSteps?(i.callback(e.onAnimationComplete,[e],n),n.animating=!1,o.splice(a,1)):++a}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,n){"use strict";var o=t(25),a=t(45),i=t(28),r=t(48);e.exports=function(t){function e(t){var e=(t=t||{}).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=a.configMerge(o.global,o[t.type],t.options||{}),t}function n(t){return"top"===t||"bottom"===t}var s=t.plugins;t.types={},t.instances={},t.controllers={},a.extend(t.prototype,{construct:function(n,o){var i=this;o=e(o);var s=r.acquireContext(n,o),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;i.id=a.uid(),i.ctx=s,i.canvas=l,i.config=o,i.width=c,i.height=u,i.aspectRatio=u?c/u:null,i.options=o.options,i._bufferedRender=!1,i.chart=i,i.controller=i,t.instances[i.id]=i,Object.defineProperty(i,"data",{get:function(){return i.config.data},set:function(t){i.config.data=t}}),s&&l?(i.initialize(),i.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return s.notify(t,"beforeInit"),a.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),s.notify(t,"afterInit"),t},clear:function(){return a.canvas.clear(this),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,o=e.canvas,i=n.maintainAspectRatio&&e.aspectRatio||null,r=Math.max(0,Math.floor(a.getMaximumWidth(o))),l=Math.max(0,Math.floor(i?r/i:a.getMaximumHeight(o)));if((e.width!==r||e.height!==l)&&(o.width=e.width=r,o.height=e.height=l,o.style.width=r+"px",o.style.height=l+"px",a.retinaScale(e,n.devicePixelRatio),!t)){var u={width:r,height:l};s.notify(e,"resize",[u]),e.options.onResize&&e.options.onResize(e,u),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;a.each(e.xAxes,(function(t,e){t.id=t.id||"x-axis-"+e})),a.each(e.yAxes,(function(t,e){t.id=t.id||"y-axis-"+e})),n&&(n.id=n.id||"scale")},buildScales:function(){var e=this,o=e.options,i=e.scales={},r=[];o.scales&&(r=r.concat((o.scales.xAxes||[]).map((function(t){return{options:t,dtype:"category",dposition:"bottom"}})),(o.scales.yAxes||[]).map((function(t){return{options:t,dtype:"linear",dposition:"left"}})))),o.scale&&r.push({options:o.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),a.each(r,(function(o){var r=o.options,s=a.valueOrDefault(r.type,o.dtype),l=t.scaleService.getScaleConstructor(s);if(l){n(r.position)!==n(o.dposition)&&(r.position=o.dposition);var u=new l({id:r.id,options:r,ctx:e.ctx,chart:e});i[u.id]=u,u.mergeTicksOptions(),o.isDefault&&(e.scale=u)}})),t.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,n=[],o=[];return a.each(e.data.datasets,(function(a,i){var r=e.getDatasetMeta(i),s=a.type||e.config.type;if(r.type&&r.type!==s&&(e.destroyDatasetMeta(i),r=e.getDatasetMeta(i)),r.type=s,n.push(r.type),r.controller)r.controller.updateIndex(i);else{var l=t.controllers[r.type];if(void 0===l)throw new Error('"'+r.type+'" is not a chart type.');r.controller=new l(e,i),o.push(r.controller)}}),e),o},resetElements:function(){var t=this;a.each(t.data.datasets,(function(e,n){t.getDatasetMeta(n).controller.reset()}),t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e=this;if(t&&"object"==l(t)||(t={duration:t,lazy:arguments[1]}),function(t){var e=t.options;e.scale?t.scale.options=e.scale:e.scales&&e.scales.xAxes.concat(e.scales.yAxes).forEach((function(e){t.scales[e.id].options=e})),t.tooltip._options=e.tooltips}(e),!1!==s.notify(e,"beforeUpdate")){e.tooltip._data=e.data;var n=e.buildOrUpdateControllers();a.each(e.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.buildOrUpdateElements()}),e),e.updateLayout(),a.each(n,(function(t){t.reset()})),e.updateDatasets(),s.notify(e,"afterUpdate"),e._bufferedRender?e._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:e.render(t)}},updateLayout:function(){var e=this;!1!==s.notify(e,"beforeLayout")&&(t.layoutService.update(this,this.width,this.height),s.notify(e,"afterScaleUpdate"),s.notify(e,"afterLayout"))},updateDatasets:function(){var t=this;if(!1!==s.notify(t,"beforeDatasetsUpdate")){for(var e=0,n=t.data.datasets.length;e=0;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);s.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this,o=n.getDatasetMeta(t),a={meta:o,index:t,easingValue:e};!1!==s.notify(n,"beforeDatasetDraw",[a])&&(o.controller.draw(e),s.notify(n,"afterDatasetDraw",[a]))},getElementAtEvent:function(t){return i.modes.single(this,t)},getElementsAtEvent:function(t){return i.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return i.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var o=i.modes[e];return"function"==typeof o?o(this,t,n):[]},getDatasetAtEvent:function(t){return i.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,n=e.data.datasets[t];n._meta||(n._meta={});var o=n._meta[e.id];return o||(o=n._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),o},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e0||(a.forEach((function(e){delete t[e]})),delete t._chartjs)}}var a=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},o.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null===e.xAxisID&&(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,o=n.getMeta(),a=n.getDataset().data||[],i=o.data;for(t=0,e=a.length;to&&t.insertElements(o,a-o)},insertElements:function(t,e){for(var n=0;n=n[e].length&&n[e].push({}),!n[e][r].type||l.type&&l.type!==n[e][r].type?i.merge(n[e][r],[t.scaleService.getScaleDefaults(s),l]):i.merge(n[e][r],l)}else i._merger(e,n,o,a)}})},i.where=function(t,e){if(i.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return i.each(t,(function(t){e(t)&&n.push(t)})),n},i.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var o=0,a=t.length;o=0;o--){var a=t[o];if(e(a))return a}},i.inherits=function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},o=function(){this.constructor=n};return o.prototype=e.prototype,n.prototype=new o,n.extend=i.inherits,t&&i.extend(n.prototype,t),n.__super__=e.prototype,n},i.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},i.almostEquals=function(t,e,n){return Math.abs(t-e)t},i.max=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.max(t,e)}),Number.NEGATIVE_INFINITY)},i.min=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.min(t,e)}),Number.POSITIVE_INFINITY)},i.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},i.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},i.toRadians=function(t){return t*(Math.PI/180)},i.toDegrees=function(t){return t*(180/Math.PI)},i.getAngleFromPoint=function(t,e){var n=e.x-t.x,o=e.y-t.y,a=Math.sqrt(n*n+o*o),i=Math.atan2(o,n);return i<-.5*Math.PI&&(i+=2*Math.PI),{angle:i,distance:a}},i.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},i.aliasPixel=function(t){return t%2==0?0:.5},i.splineCurve=function(t,e,n,o){var a=t.skip?e:t,i=e,r=n.skip?e:n,s=Math.sqrt(Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2)),l=Math.sqrt(Math.pow(r.x-i.x,2)+Math.pow(r.y-i.y,2)),u=s/(s+l),c=l/(s+l),d=o*(u=isNaN(u)?0:u),h=o*(c=isNaN(c)?0:c);return{previous:{x:i.x-d*(r.x-a.x),y:i.y-d*(r.y-a.y)},next:{x:i.x+h*(r.x-a.x),y:i.y+h*(r.y-a.y)}}},i.EPSILON=Number.EPSILON||1e-14,i.splineCurveMonotone=function(t){var e,n,o,a,r,s,l,u,c,d=(t||[]).map((function(t){return{model:t._model,deltaK:0,mK:0}})),h=d.length;for(e=0;e0?d[e-1]:null,(a=e0?d[e-1]:null,a=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},i.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},i.niceNum=function(t,e){var n=Math.floor(i.log10(t)),o=t/Math.pow(10,n);return(e?o<1.5?1:o<3?2:o<7?5:10:o<=1?1:o<=2?2:o<=5?5:10)*Math.pow(10,n)},i.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},i.getRelativePosition=function(t,e){var n,o,a=t.originalEvent||t,r=t.currentTarget||t.srcElement,s=r.getBoundingClientRect(),l=a.touches;l&&l.length>0?(n=l[0].clientX,o=l[0].clientY):(n=a.clientX,o=a.clientY);var u=parseFloat(i.getStyle(r,"padding-left")),c=parseFloat(i.getStyle(r,"padding-top")),d=parseFloat(i.getStyle(r,"padding-right")),h=parseFloat(i.getStyle(r,"padding-bottom")),f=s.right-s.left-u-d,p=s.bottom-s.top-c-h;return{x:n=Math.round((n-s.left-u)/f*r.width/e.currentDevicePixelRatio),y:o=Math.round((o-s.top-c)/p*r.height/e.currentDevicePixelRatio)}},i.getConstraintWidth=function(t){return r(t,"max-width","clientWidth")},i.getConstraintHeight=function(t){return r(t,"max-height","clientHeight")},i.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var n=parseInt(i.getStyle(e,"padding-left"),10),o=parseInt(i.getStyle(e,"padding-right"),10),a=e.clientWidth-n-o,r=i.getConstraintWidth(t);return isNaN(r)?a:Math.min(a,r)},i.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var n=parseInt(i.getStyle(e,"padding-top"),10),o=parseInt(i.getStyle(e,"padding-bottom"),10),a=e.clientHeight-n-o,r=i.getConstraintHeight(t);return isNaN(r)?a:Math.min(a,r)},i.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},i.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;if(1!==n){var o=t.canvas,a=t.height,i=t.width;o.height=a*n,o.width=i*n,t.ctx.scale(n,n),o.style.height=a+"px",o.style.width=i+"px"}},i.fontString=function(t,e,n){return e+" "+t+"px "+n},i.longestText=function(t,e,n,o){var a=(o=o||{}).data=o.data||{},r=o.garbageCollect=o.garbageCollect||[];o.font!==e&&(a=o.data={},r=o.garbageCollect=[],o.font=e),t.font=e;var s=0;i.each(n,(function(e){null!=e&&!0!==i.isArray(e)?s=i.measureText(t,a,r,s,e):i.isArray(e)&&i.each(e,(function(e){null==e||i.isArray(e)||(s=i.measureText(t,a,r,s,e))}))}));var l=r.length/2;if(l>n.length){for(var u=0;uo&&(o=i),o},i.numberOfLabelLines=function(t){var e=1;return i.each(t,(function(t){i.isArray(t)&&t.length>e&&(e=t.length)})),e},i.color=o?function(t){return t instanceof CanvasGradient&&(t=a.global.defaultColor),o(t)}:function(t){return console.error("Color.js not found!"),t},i.getHoverColor=function(t){return t instanceof CanvasPattern?t:i.color(t).saturate(.5).darken(.1).rgbString()}}},{25:25,3:3,45:45}],28:[function(t,e,n){"use strict";function o(t,e){return t.native?{x:t.x,y:t.y}:u.getRelativePosition(t,e)}function a(t,e){var n,o,a,i,r;for(o=0,i=t.data.datasets.length;o0&&(u=t.getDatasetMeta(u[0]._datasetIndex).data),u},"x-axis":function(t,e){return l(t,e,{intersect:!0})},point:function(t,e){return i(t,o(e,t))},nearest:function(t,e,n){var a=o(e,t);n.axis=n.axis||"xy";var i=s(n.axis),l=r(t,a,n.intersect,i);return l.length>1&&l.sort((function(t,e){var n=t.getArea()-e.getArea();return 0===n&&(n=t._datasetIndex-e._datasetIndex),n})),l.slice(0,1)},x:function(t,e,n){var i=o(e,t),r=[],s=!1;return a(t,(function(t){t.inXRange(i.x)&&r.push(t),t.inRange(i.x,i.y)&&(s=!0)})),n.intersect&&!s&&(r=[]),r},y:function(t,e,n){var i=o(e,t),r=[],s=!1;return a(t,(function(t){t.inYRange(i.y)&&r.push(t),t.inRange(i.x,i.y)&&(s=!0)})),n.intersect&&!s&&(r=[]),r}}}},{45:45}],29:[function(t,e,n){"use strict";t(25)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.Chart=t,t}},{25:25}],30:[function(t,e,n){"use strict";var o=t(45);e.exports=function(t){function e(t,e){return o.where(t,(function(t){return t.position===e}))}function n(t,e){t.forEach((function(t,e){return t._tmpIndex_=e,t})),t.sort((function(t,n){var o=e?n:t,a=e?t:n;return o.weight===a.weight?o._tmpIndex_-a._tmpIndex_:o.weight-a.weight})),t.forEach((function(t){delete t._tmpIndex_}))}t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var o,a=["fullWidth","position","weight"],i=a.length,r=0;rh&&lt.maxHeight){l--;break}l++,d=u*c}t.labelRotation=l},afterCalculateTickRotation:function(){s.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){s.callback(this.options.beforeFit,[this])},fit:function(){var t=this,a=t.minSize={width:0,height:0},i=o(t._ticks),r=t.options,u=r.ticks,c=r.scaleLabel,d=r.gridLines,h=r.display,f=t.isHorizontal(),p=n(u),g=r.gridLines.tickMarkLength;if(a.width=f?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:h&&d.drawTicks?g:0,a.height=f?h&&d.drawTicks?g:0:t.maxHeight,c.display&&h){var v=l(c)+s.options.toPadding(c.padding).height;f?a.height+=v:a.width+=v}if(u.display&&h){var m=s.longestText(t.ctx,p.font,i,t.longestTextCache),b=s.numberOfLabelLines(i),x=.5*p.size,y=t.options.ticks.padding;if(f){t.longestLabelWidth=m;var k=s.toRadians(t.labelRotation),w=Math.cos(k),C=Math.sin(k)*m+p.size*b+x*(b-1)+x;a.height=Math.min(t.maxHeight,a.height+C+y),t.ctx.font=p.font;var S=e(t.ctx,i[0],p.font),M=e(t.ctx,i[i.length-1],p.font);0!==t.labelRotation?(t.paddingLeft="bottom"===r.position?w*S+3:w*x+3,t.paddingRight="bottom"===r.position?w*x+3:w*M+3):(t.paddingLeft=S/2+3,t.paddingRight=M/2+3)}else u.mirror?m=0:m+=y+x,a.width=Math.min(t.maxWidth,a.width+m),t.paddingTop=p.size/2,t.paddingBottom=p.size/2}t.handleMargins(),t.width=a.width,t.height=a.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){s.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(s.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:s.noop,getPixelForValue:s.noop,getValueForPixel:s.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var o=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(n?0:1),1),a=o*t+e.paddingLeft;return n&&(a+=o/2),e.left+Math.round(a)+(e.isFullWidth()?e.margins.left:0)}var i=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(i/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft;return e.left+Math.round(n)+(e.isFullWidth()?e.margins.left:0)}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,n=t.max;return t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0},_autoSkip:function(t){var e,n,o,a,i=this,r=i.isHorizontal(),l=i.options.ticks.minor,u=t.length,c=s.toRadians(i.labelRotation),d=Math.cos(c),h=i.longestLabelWidth*d,f=[];for(l.maxTicksLimit&&(a=l.maxTicksLimit),r&&(e=!1,(h+l.autoSkipPadding)*u>i.width-(i.paddingLeft+i.paddingRight)&&(e=1+Math.floor((h+l.autoSkipPadding)*u/(i.width-(i.paddingLeft+i.paddingRight)))),a&&u>a&&(e=Math.max(e,Math.floor(u/a)))),n=0;n1&&n%e>0||n%e==0&&n+e>=u)&&n!==u-1||s.isNullOrUndef(o.label))&&delete o.label,f.push(o);return f},draw:function(t){var e=this,o=e.options;if(o.display){var r=e.ctx,u=i.global,c=o.ticks.minor,d=o.ticks.major||c,h=o.gridLines,f=o.scaleLabel,p=0!==e.labelRotation,g=e.isHorizontal(),v=c.autoSkip?e._autoSkip(e.getTicks()):e.getTicks(),m=s.valueOrDefault(c.fontColor,u.defaultFontColor),b=n(c),x=s.valueOrDefault(d.fontColor,u.defaultFontColor),y=n(d),k=h.drawTicks?h.tickMarkLength:0,w=s.valueOrDefault(f.fontColor,u.defaultFontColor),C=n(f),S=s.options.toPadding(f.padding),M=s.toRadians(e.labelRotation),_=[],I="right"===o.position?e.left:e.right-k,D="right"===o.position?e.left+k:e.right,P="bottom"===o.position?e.top:e.bottom-k,A="bottom"===o.position?e.top+k:e.bottom;if(s.each(v,(function(n,i){if(void 0!==n.label){var r,l,d,f,m=n.label;i===e.zeroLineIndex&&o.offset===h.offsetGridLines?(r=h.zeroLineWidth,l=h.zeroLineColor,d=h.zeroLineBorderDash,f=h.zeroLineBorderDashOffset):(r=s.valueAtIndexOrDefault(h.lineWidth,i),l=s.valueAtIndexOrDefault(h.color,i),d=s.valueOrDefault(h.borderDash,u.borderDash),f=s.valueOrDefault(h.borderDashOffset,u.borderDashOffset));var b,x,y,w,C,S,T,F,L,$,O="middle",z="middle",R=c.padding;if(g){var j=k+R;"bottom"===o.position?(z=p?"middle":"top",O=p?"right":"center",$=e.top+j):(z=p?"middle":"bottom",O=p?"left":"center",$=e.bottom-j);var B=a(e,i,h.offsetGridLines&&v.length>1);B1);E0)n=t.stepSize;else{var i=o.niceNum(e.max-e.min,!1);n=o.niceNum(i/(t.maxTicks-1),!0)}var r=Math.floor(e.min/n)*n,s=Math.ceil(e.max/n)*n;t.min&&t.max&&t.stepSize&&o.almostWhole((t.max-t.min)/t.stepSize,n/1e3)&&(r=t.min,s=t.max);var l=(s-r)/n;l=o.almostEquals(l,Math.round(l),n/1e3)?Math.round(l):Math.ceil(l),a.push(void 0!==t.min?t.min:r);for(var u=1;u3?n[2]-n[1]:n[1]-n[0];Math.abs(a)>1&&t!==Math.floor(t)&&(a=t-Math.floor(t));var i=o.log10(Math.abs(a)),r="";if(0!==t){var s=-1*Math.floor(i);s=Math.max(Math.min(s,20),0),r=t.toFixed(s)}else r="0";return r},logarithmic:function(t,e,n){var a=t/Math.pow(10,Math.floor(o.log10(t)));return 0===t?"0":1===a||2===a||5===a||0===e||e===n.length-1?t.toExponential():""}}}},{45:45}],35:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45);o._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:i.noop,title:function(t,e){var n="",o=e.labels,a=o?o.length:0;if(t.length>0){var i=t[0];i.xLabel?n=i.xLabel:a>0&&i.indexo.height-e.height&&(r="bottom");var s,l,u,c,d,h=(a.left+a.right)/2,f=(a.top+a.bottom)/2;"center"===r?(s=function(t){return t<=h},l=function(t){return t>h}):(s=function(t){return t<=e.width/2},l=function(t){return t>=o.width-e.width/2}),u=function(t){return t+e.width>o.width},c=function(t){return t-e.width<0},d=function(t){return t<=f?"top":"bottom"},s(n.x)?(i="left",u(n.x)&&(i="center",r=d(n.y))):l(n.x)&&(i="right",c(n.x)&&(i="center",r=d(n.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:i,yAlign:p.yAlign?p.yAlign:r}}(this,g))}else c.opacity=0;return c.xAlign=f.xAlign,c.yAlign=f.yAlign,c.x=p.x,c.y=p.y,c.width=g.width,c.height=g.height,c.caretX=v.x,c.caretY=v.y,a._model=c,e&&l.custom&&l.custom.call(a,c),a},drawCaret:function(t,e){var n=this._chart.ctx,o=this._view,a=this.getCaretPosition(t,e,o);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)},getCaretPosition:function(t,e,n){var o,a,i,r,s,l,u=n.caretSize,c=n.cornerRadius,d=n.xAlign,h=n.yAlign,f=t.x,p=t.y,g=e.width,v=e.height;if("center"===h)s=p+v/2,"left"===d?(a=(o=f)-u,i=o,r=s+u,l=s-u):(a=(o=f+g)+u,i=o,r=s-u,l=s+u);else if("left"===d?(o=(a=f+c+u)-u,i=a+u):"right"===d?(o=(a=f+g-c-u)-u,i=a+u):(o=(a=f+g/2)-u,i=a+u),"top"===h)s=(r=p)-u,l=r;else{s=(r=p+v)+u,l=r;var m=i;i=o,o=m}return{x1:o,x2:a,x3:i,y1:r,y2:s,y3:l}},drawTitle:function(t,n,o,a){var r=n.title;if(r.length){o.textAlign=n._titleAlign,o.textBaseline="top";var s,l,u=n.titleFontSize,c=n.titleSpacing;for(o.fillStyle=e(n.titleFontColor,a),o.font=i.fontString(u,n._titleFontStyle,n._titleFontFamily),s=0,l=r.length;s0&&o.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},o={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity,i=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&i&&(this.drawBackground(o,e,t,n,a),o.x+=e.xPadding,o.y+=e.yPadding,this.drawTitle(o,e,t,a),this.drawBody(o,e,t,a),this.drawFooter(o,e,t,a))}},handleEvent:function(t){var e=this,n=e._options,o=!1;if(e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:e._active=e._chart.getElementsAtEventForMode(t,n.mode,n),!(o=!i.arrayEquals(e._active,e._lastActive)))return!1;if(e._lastActive=e._active,n.enabled||n.custom){e._eventPosition={x:t.x,y:t.y};var a=e._model;e.update(!0),e.pivot(),o|=a.x!==e._model.x||a.y!==e._model.y}return o}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,n,o=0,a=0,i=0;for(e=0,n=t.length;el;)a-=2*Math.PI;for(;a=s&&a<=l,c=r>=n.innerRadius&&r<=n.outerRadius;return u&&c}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,o=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,o),t.arc(e.x,e.y,e.innerRadius,o,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45),r=o.global;o._set("global",{elements:{line:{tension:.4,backgroundColor:r.defaultColor,borderWidth:3,borderColor:r.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var t,e,n,o,a=this,s=a._view,l=a._chart.ctx,u=s.spanGaps,c=a._children.slice(),d=r.elements.line,h=-1;for(a._loop&&c.length&&c.push(c[0]),l.save(),l.lineCap=s.borderCapStyle||d.borderCapStyle,l.setLineDash&&l.setLineDash(s.borderDash||d.borderDash),l.lineDashOffset=s.borderDashOffset||d.borderDashOffset,l.lineJoin=s.borderJoinStyle||d.borderJoinStyle,l.lineWidth=s.borderWidth||d.borderWidth,l.strokeStyle=s.borderColor||r.defaultColor,l.beginPath(),h=-1,t=0;te?1:-1,r=1,s=u.borderSkipped||"left"):(e=u.x-u.width/2,n=u.x+u.width/2,o=u.y,i=1,r=(a=u.base)>o?1:-1,s=u.borderSkipped||"bottom"),c){var d=Math.min(Math.abs(e-n),Math.abs(o-a)),h=(c=c>d?d:c)/2,f=e+("left"!==s?h*i:0),p=n+("right"!==s?-h*i:0),g=o+("top"!==s?h*r:0),v=a+("bottom"!==s?-h*r:0);f!==p&&(o=g,a=v),g!==v&&(e=f,n=p)}l.beginPath(),l.fillStyle=u.backgroundColor,l.strokeStyle=u.borderColor,l.lineWidth=c;var m=[[e,a],[e,o],[n,o],[n,a]],b=["bottom","left","top","right"].indexOf(s,0);-1===b&&(b=0);var x=t(0);l.moveTo(x[0],x[1]);for(var y=1;y<4;y++)x=t(y),l.lineTo(x[0],x[1]);l.fill(),c&&l.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n=!1;if(this._view){var o=a(this);n=t>=o.left&&t<=o.right&&e>=o.top&&e<=o.bottom}return n},inLabelRange:function(t,e){var n=this;if(!n._view)return!1;var i=a(n);return o(n)?t>=i.left&&t<=i.right:e>=i.top&&e<=i.bottom},inXRange:function(t){var e=a(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=a(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,n=this._view;return o(this)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,n){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,n){"use strict";var o=t(42);n=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,o,a,i){if(i){var r=Math.min(i,o/2),s=Math.min(i,a/2);t.moveTo(e+r,n),t.lineTo(e+o-r,n),t.quadraticCurveTo(e+o,n,e+o,n+s),t.lineTo(e+o,n+a-s),t.quadraticCurveTo(e+o,n+a,e+o-r,n+a),t.lineTo(e+r,n+a),t.quadraticCurveTo(e,n+a,e,n+a-s),t.lineTo(e,n+s),t.quadraticCurveTo(e,n,e+r,n)}else t.rect(e,n,o,a)},drawPoint:function(t,e,n,o,a){var i,r,s,u,c,d;if("object"!=l(e)||"[object HTMLImageElement]"!==(i=e.toString())&&"[object HTMLCanvasElement]"!==i){if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(o,a,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),c=(r=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(o-r/2,a+c/3),t.lineTo(o+r/2,a+c/3),t.lineTo(o,a-2*c/3),t.closePath(),t.fill();break;case"rect":d=1/Math.SQRT2*n,t.beginPath(),t.fillRect(o-d,a-d,2*d,2*d),t.strokeRect(o-d,a-d,2*d,2*d);break;case"rectRounded":var h=n/Math.SQRT2,f=o-h,p=a-h,g=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,f,p,g,g,n/2),t.closePath(),t.fill();break;case"rectRot":d=1/Math.SQRT2*n,t.beginPath(),t.moveTo(o-d,a),t.lineTo(o,a+d),t.lineTo(o+d,a),t.lineTo(o,a-d),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(o,a+n),t.lineTo(o,a-n),t.moveTo(o-n,a),t.lineTo(o+n,a),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,t.moveTo(o-s,a-u),t.lineTo(o+s,a+u),t.moveTo(o-s,a+u),t.lineTo(o+s,a-u),t.closePath();break;case"star":t.beginPath(),t.moveTo(o,a+n),t.lineTo(o,a-n),t.moveTo(o-n,a),t.lineTo(o+n,a),s=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,t.moveTo(o-s,a-u),t.lineTo(o+s,a+u),t.moveTo(o-s,a+u),t.lineTo(o+s,a-u),t.closePath();break;case"line":t.beginPath(),t.moveTo(o-n,a),t.lineTo(o+n,a),t.closePath();break;case"dash":t.beginPath(),t.moveTo(o,a),t.lineTo(o+n,a),t.closePath()}t.stroke()}}else t.drawImage(e,o-e.width/2,a-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,o){if(n.steppedLine)return"after"===n.steppedLine&&!o||"after"!==n.steppedLine&&o?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y);n.tension?t.bezierCurveTo(o?e.controlPointPreviousX:e.controlPointNextX,o?e.controlPointPreviousY:e.controlPointNextY,o?n.controlPointNextX:n.controlPointPreviousX,o?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}},o.clear=n.clear,o.drawRoundedRectangle=function(t){t.beginPath(),n.roundedRect.apply(n,arguments),t.closePath()}},{42:42}],42:[function(t,e,n){"use strict";var o={noop:function(){},uid:function(){var t=0;return function(){return t++}}(),isNullOrUndef:function(t){return null==t},isArray:Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return o.valueOrDefault(o.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,a){var i,r,s;if(o.isArray(t))if(r=t.length,a)for(i=r-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;i=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,o=1;return 0===t?0:1===t?1:(n||(n=.3),o<1?(o=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/o),-o*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,o=1;return 0===t?0:1===t?1:(n||(n=.3),o<1?(o=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/o),o*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,o=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),o<1?(o=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/o),t<1?o*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:o*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-a.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*a.easeInBounce(2*t):.5*a.easeOutBounce(2*t-1)+.5}};e.exports={effects:a},o.easingEffects=a},{42:42}],44:[function(t,e,n){"use strict";var o=t(42);e.exports={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,a,i;return o.isObject(t)?(e=+t.top||0,n=+t.right||0,a=+t.bottom||0,i=+t.left||0):e=n=a=i=+t||0,{top:e,right:n,bottom:a,left:i,height:e+a,width:i+n}},resolve:function(t,e,n){var a,i,r;for(a=0,i=t.length;a
    ';var i=e.childNodes[0],r=e.childNodes[1];e._reset=function(){i.scrollLeft=1e6,i.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6};var s=function(){e._reset(),t()};return a(i,"scroll",s.bind(i,"expand")),a(r,"scroll",s.bind(r,"shrink")),e}(function(t,e){var n=!1,o=[];return function(){o=Array.prototype.slice.call(arguments),e=e||this,n||(n=!0,u.requestAnimFrame.call(window,(function(){n=!1,t.apply(e,o)})))}}((function(){if(o.resizer)return e(r("resize",n))})));!function(t,e){var n=(t[c]||(t[c]={})).renderProxy=function(t){t.animationName===f&&e()};u.each(p,(function(e){a(t,e,n)})),t.classList.add(h)}(t,(function(){if(o.resizer){var e=t.parentNode;e&&e!==i.parentNode&&e.insertBefore(i,e.firstChild),i._reset()}}))}function l(t){var e=t[c]||{},n=e.resizer;delete e.resizer,function(t){var e=t[c]||{},n=e.renderProxy;n&&(u.each(p,(function(e){i(t,e,n)})),delete e.renderProxy),t.classList.remove(h)}(t),n&&n.parentNode&&n.parentNode.removeChild(n)}var u=t(45),c="$chartjs",d="chartjs-",h=d+"render-monitor",f=d+"render-animation",p=["animationstart","webkitAnimationStart"],g={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},v=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t="from{opacity:0.99}to{opacity:1}";!function(t,e){var n=t._style||document.createElement("style");t._style||(t._style=n,e="/* Chart.js */\n"+e,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(e))}(this,"@-webkit-keyframes "+f+"{"+t+"}@keyframes "+f+"{"+t+"}."+h+"{-webkit-animation:"+f+" 0.001s;animation:"+f+" 0.001s;}")},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){var n=t.style,a=t.getAttribute("height"),i=t.getAttribute("width");if(t[c]={initial:{height:a,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===i||""===i){var r=o(t,"width");void 0!==r&&(t.width=r)}if(null===a||""===a)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var s=o(t,"height");void 0!==r&&(t.height=s)}}(t,e),n):null},releaseContext:function(t){var e=t.canvas;if(e[c]){var n=e[c].initial;["height","width"].forEach((function(t){var o=n[t];u.isNullOrUndef(o)?e.removeAttribute(t):e.setAttribute(t,o)})),u.each(n.style||{},(function(t,n){e.style[n]=t})),e.width=e.width,delete e[c]}},addEventListener:function(t,e,n){var o=t.canvas;if("resize"!==e){var i=n[c]||(n[c]={});a(o,e,(i.proxies||(i.proxies={}))[t.id+"_"+e]=function(e){n(function(t,e){var n=g[t.type]||t.type,o=u.getRelativePosition(t,e);return r(n,e,o.x,o.y,t)}(e,t))})}else s(o,n,t)},removeEventListener:function(t,e,n){var o=t.canvas;if("resize"!==e){var a=((n[c]||{}).proxies||{})[t.id+"_"+e];a&&i(o,e,a)}else l(o)}},u.addEvent=a,u.removeEvent=i},{45:45}],48:[function(t,e,n){"use strict";var o=t(45),a=t(46),i=t(47),r=i._enabled?i:a;e.exports=o.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},r)},{45:45,46:46,47:47}],49:[function(t,e,n){"use strict";var o=t(25),a=t(40),i=t(45);o._set("global",{plugins:{filler:{propagate:!0}}}),e.exports=function(){function t(t,e,n){var o,a=t._model||{},i=a.fill;if(void 0===i&&(i=!!a.backgroundColor),!1===i||null===i)return!1;if(!0===i)return"origin";if(o=parseFloat(i,10),isFinite(o)&&Math.floor(o)===o)return"-"!==i[0]&&"+"!==i[0]||(o=e+o),!(o===e||o<0||o>=n)&&o;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}function e(t){var e,n=t.el._model||{},o=t.el._scale||{},a=t.fill,i=null;if(isFinite(a))return null;if("start"===a?i=void 0===n.scaleBottom?o.bottom:n.scaleBottom:"end"===a?i=void 0===n.scaleTop?o.top:n.scaleTop:void 0!==n.scaleZero?i=n.scaleZero:o.getBasePosition?i=o.getBasePosition():o.getBasePixel&&(i=o.getBasePixel()),null!=i){if(void 0!==i.x&&void 0!==i.y)return i;if("number"==typeof i&&isFinite(i))return{x:(e=o.isHorizontal())?i:null,y:e?null:i}}return null}function n(t,e,n){var o,a=t[e].fill,i=[e];if(!n)return a;for(;!1!==a&&-1===i.indexOf(a);){if(!isFinite(a))return a;if(!(o=t[a]))return!1;if(o.visible)return a;i.push(a),a=o.fill}return!1}function r(t){var e=t.fill,n="dataset";return!1===e?null:(isFinite(e)||(n="boundary"),c[n](t))}function s(t){return t&&!t.skip}function l(t,e,n,o,a){var r;if(o&&a){for(t.moveTo(e[0].x,e[0].y),r=1;r0;--r)i.canvas.lineTo(t,n[r],n[r-1],!0)}}function u(t,e,n,o,a,i){var r,u,c,d,h,f,p,g=e.length,v=o.spanGaps,m=[],b=[],x=0,y=0;for(t.beginPath(),r=0,u=g+!!i;r');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("");return e.push(""),e.join("")}}),e.exports=function(t){function e(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function n(e,n){var o=new t.Legend({ctx:e.ctx,options:n,chart:e});r.configure(e,o,n),r.addBox(e,o),e.legend=o}var r=t.layoutService,s=i.noop;return t.Legend=a.extend({initialize:function(t){i.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:s,update:function(t,e,n){var o=this;return o.beforeUpdate(),o.maxWidth=t,o.maxHeight=e,o.margins=n,o.beforeSetDimensions(),o.setDimensions(),o.afterSetDimensions(),o.beforeBuildLabels(),o.buildLabels(),o.afterBuildLabels(),o.beforeFit(),o.fit(),o.afterFit(),o.afterUpdate(),o.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function(){var t=this,e=t.options.labels||{},n=i.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter((function(n){return e.filter(n,t.chart.data)}))),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:s,beforeFit:s,fit:function(){var t=this,n=t.options,a=n.labels,r=n.display,s=t.ctx,l=o.global,u=i.valueOrDefault,c=u(a.fontSize,l.defaultFontSize),d=u(a.fontStyle,l.defaultFontStyle),h=u(a.fontFamily,l.defaultFontFamily),f=i.fontString(c,d,h),p=t.legendHitBoxes=[],g=t.minSize,v=t.isHorizontal();if(v?(g.width=t.maxWidth,g.height=r?10:0):(g.width=r?10:0,g.height=t.maxHeight),r)if(s.font=f,v){var m=t.lineWidths=[0],b=t.legendItems.length?c+a.padding:0;s.textAlign="left",s.textBaseline="top",i.each(t.legendItems,(function(n,o){var i=e(a,c)+c/2+s.measureText(n.text).width;m[m.length-1]+i+a.padding>=t.width&&(b+=c+a.padding,m[m.length]=t.left),p[o]={left:0,top:0,width:i,height:c},m[m.length-1]+=i+a.padding})),g.height+=b}else{var x=a.padding,y=t.columnWidths=[],k=a.padding,w=0,C=0,S=c+x;i.each(t.legendItems,(function(t,n){var o=e(a,c)+c/2+s.measureText(t.text).width;C+S>g.height&&(k+=w+a.padding,y.push(w),w=0,C=0),w=Math.max(w,o),C+=S,p[n]={left:0,top:0,width:o,height:c}})),k+=w,y.push(w),g.width+=k}t.width=g.width,t.height=g.height},afterFit:s,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,n=t.options,a=n.labels,r=o.global,s=r.elements.line,l=t.width,u=t.lineWidths;if(n.display){var c,d=t.ctx,h=i.valueOrDefault,f=h(a.fontColor,r.defaultFontColor),p=h(a.fontSize,r.defaultFontSize),g=h(a.fontStyle,r.defaultFontStyle),v=h(a.fontFamily,r.defaultFontFamily),m=i.fontString(p,g,v);d.textAlign="left",d.textBaseline="middle",d.lineWidth=.5,d.strokeStyle=f,d.fillStyle=f,d.font=m;var b=e(a,p),x=t.legendHitBoxes,y=function(t,e,o){if(!(isNaN(b)||b<=0)){d.save(),d.fillStyle=h(o.fillStyle,r.defaultColor),d.lineCap=h(o.lineCap,s.borderCapStyle),d.lineDashOffset=h(o.lineDashOffset,s.borderDashOffset),d.lineJoin=h(o.lineJoin,s.borderJoinStyle),d.lineWidth=h(o.lineWidth,s.borderWidth),d.strokeStyle=h(o.strokeStyle,r.defaultColor);var a=0===h(o.lineWidth,s.borderWidth);if(d.setLineDash&&d.setLineDash(h(o.lineDash,s.borderDash)),n.labels&&n.labels.usePointStyle){var l=p*Math.SQRT2/2,u=l/Math.SQRT2,c=t+u,f=e+u;i.canvas.drawPoint(d,o.pointStyle,l,c,f)}else a||d.strokeRect(t,e,b,p),d.fillRect(t,e,b,p);d.restore()}},k=t.isHorizontal();c=k?{x:t.left+(l-u[0])/2,y:t.top+a.padding,line:0}:{x:t.left+a.padding,y:t.top+a.padding,line:0};var w=p+a.padding;i.each(t.legendItems,(function(e,n){var o=d.measureText(e.text).width,i=b+p/2+o,r=c.x,s=c.y;k?r+i>=l&&(s=c.y+=w,c.line++,r=c.x=t.left+(l-u[c.line])/2):s+w>t.bottom&&(r=c.x=r+t.columnWidths[c.line]+a.padding,s=c.y=t.top+a.padding,c.line++),y(r,s,e),x[n].left=r,x[n].top=s,function(t,e,n,o){var a=p/2,i=b+a+t,r=e+a;d.fillText(n.text,i,r),n.hidden&&(d.beginPath(),d.lineWidth=2,d.moveTo(i,r),d.lineTo(i+o,r),d.stroke())}(r,s,e,o),k?c.x+=i+a.padding:c.y+=w}))}},handleEvent:function(t){var e=this,n=e.options,o="mouseup"===t.type?"click":t.type,a=!1;if("mousemove"===o){if(!n.onHover)return}else{if("click"!==o)return;if(!n.onClick)return}var i=t.x,r=t.y;if(i>=e.left&&i<=e.right&&r>=e.top&&r<=e.bottom)for(var s=e.legendHitBoxes,l=0;l=u.left&&i<=u.left+u.width&&r>=u.top&&r<=u.top+u.height){if("click"===o){n.onClick.call(e,t.native,e.legendItems[l]),a=!0;break}if("mousemove"===o){n.onHover.call(e,t.native,e.legendItems[l]),a=!0;break}}}return a}}),{id:"legend",beforeInit:function(t){var e=t.options.legend;e&&n(t,e)},beforeUpdate:function(t){var e=t.options.legend,a=t.legend;e?(i.mergeIf(e,o.global.legend),a?(r.configure(t,a,e),a.options=e):n(t,e)):a&&(r.removeBox(t,a),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}}}},{25:25,26:26,45:45}],51:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45);o._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),e.exports=function(t){function e(e,o){var a=new t.Title({ctx:e.ctx,options:o,chart:e});n.configure(e,a,o),n.addBox(e,a),e.titleBlock=a}var n=t.layoutService,r=i.noop;return t.Title=a.extend({initialize:function(t){i.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:r,update:function(t,e,n){var o=this;return o.beforeUpdate(),o.maxWidth=t,o.maxHeight=e,o.margins=n,o.beforeSetDimensions(),o.setDimensions(),o.afterSetDimensions(),o.beforeBuildLabels(),o.buildLabels(),o.afterBuildLabels(),o.beforeFit(),o.fit(),o.afterFit(),o.afterUpdate(),o.minSize},afterUpdate:r,beforeSetDimensions:r,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:r,beforeBuildLabels:r,buildLabels:r,afterBuildLabels:r,beforeFit:r,fit:function(){var t=this,e=i.valueOrDefault,n=t.options,a=n.display,r=e(n.fontSize,o.global.defaultFontSize),s=t.minSize,l=i.isArray(n.text)?n.text.length:1,u=i.options.toLineHeight(n.lineHeight,r),c=a?l*u+2*n.padding:0;t.isHorizontal()?(s.width=t.maxWidth,s.height=c):(s.width=c,s.height=t.maxHeight),t.width=s.width,t.height=s.height},afterFit:r,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=i.valueOrDefault,a=t.options,r=o.global;if(a.display){var s,l,u,c=n(a.fontSize,r.defaultFontSize),d=n(a.fontStyle,r.defaultFontStyle),h=n(a.fontFamily,r.defaultFontFamily),f=i.fontString(c,d,h),p=i.options.toLineHeight(a.lineHeight,c),g=p/2+a.padding,v=0,m=t.top,b=t.left,x=t.bottom,y=t.right;e.fillStyle=n(a.fontColor,r.defaultFontColor),e.font=f,t.isHorizontal()?(l=b+(y-b)/2,u=m+g,s=y-b):(l="left"===a.position?b+g:y-g,u=m+(x-m)/2,s=x-m,v=Math.PI*("left"===a.position?-.5:.5)),e.save(),e.translate(l,u),e.rotate(v),e.textAlign="center",e.textBaseline="middle";var k=a.text;if(i.isArray(k))for(var w=0,C=0;Ce.max)&&(e.max=o))}))}));e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this,n=e.options.ticks;if(e.isHorizontal())t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.width/50));else{var i=a.valueOrDefault(n.fontSize,o.global.defaultFontSize);t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.height/(2*i)))}return t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,n=this,o=n.start,a=+n.getRightValue(t),i=n.end-o;return n.isHorizontal()?(e=n.left+n.width/i*(a-o),Math.round(e)):(e=n.bottom-n.height/i*(a-o),Math.round(e))},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),o=n?e.width:e.height,a=(n?t-e.left:e.bottom-t)/o;return e.start+(e.end-e.start)*a},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,e)}},{25:25,34:34,45:45}],54:[function(t,e,n){"use strict";var o=t(45),a=t(34);e.exports=function(t){var e=o.noop;t.LinearScaleBase=t.Scale.extend({getRightValue:function(e){return"string"==typeof e?+e:t.Scale.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=o.sign(t.min),a=o.sign(t.max);n<0&&a<0?t.max=0:n>0&&a>0&&(t.min=0)}var i=void 0!==e.min||void 0!==e.suggestedMin,r=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),i!==r&&t.min>=t.max&&(i?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,stepSize:o.valueOrDefault(e.fixedStepSize,e.stepSize)},r=t.ticks=a.generators.linear(i,t);t.handleDirectionalChanges(),t.max=o.max(r),t.min=o.min(r),e.reverse?(r.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{34:34,45:45}],55:[function(t,e,n){"use strict";var o=t(45),a=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:a.formatters.logarithmic}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return l?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,a=n.ticks,i=e.chart,r=i.data.datasets,s=o.valueOrDefault,l=e.isHorizontal();e.min=null,e.max=null,e.minNotZero=null;var u=n.stacked;if(void 0===u&&o.each(r,(function(e,n){if(!u){var o=i.getDatasetMeta(n);i.isDatasetVisible(n)&&t(o)&&void 0!==o.stack&&(u=!0)}})),n.stacked||u){var c={};o.each(r,(function(a,r){var s=i.getDatasetMeta(r),l=[s.type,void 0===n.stacked&&void 0===s.stack?r:"",s.stack].join(".");i.isDatasetVisible(r)&&t(s)&&(void 0===c[l]&&(c[l]=[]),o.each(a.data,(function(t,o){var a=c[l],i=+e.getRightValue(t);isNaN(i)||s.data[o].hidden||(a[o]=a[o]||0,n.relativePoints?a[o]=100:a[o]+=i)})))})),o.each(c,(function(t){var n=o.min(t),a=o.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?a:Math.max(e.max,a)}))}else o.each(r,(function(n,a){var r=i.getDatasetMeta(a);i.isDatasetVisible(a)&&t(r)&&o.each(n.data,(function(t,n){var o=+e.getRightValue(t);isNaN(o)||r.data[n].hidden||((null===e.min||oe.max)&&(e.max=o),0!==o&&(null===e.minNotZero||oa?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function l(t){return 0===t||180===t?"center":t<180?"left":"right"}function u(t,e,n,o){if(a.isArray(e))for(var i=n.y,r=1.5*o,s=0;s270||t<90)&&(n.y-=e.h)}function d(t){var o=t.ctx,i=a.valueOrDefault,r=t.options,s=r.angleLines,d=r.pointLabels;o.lineWidth=s.lineWidth,o.strokeStyle=s.color;var h=t.getDistanceFromCenterForValue(r.ticks.reverse?t.min:t.max),f=n(t);o.textBaseline="top";for(var g=e(t)-1;g>=0;g--){if(s.display){var v=t.getPointPosition(g,h);o.beginPath(),o.moveTo(t.xCenter,t.yCenter),o.lineTo(v.x,v.y),o.stroke(),o.closePath()}if(d.display){var m=t.getPointPosition(g,h+5),b=i(d.fontColor,p.defaultFontColor);o.font=f.font,o.fillStyle=b;var x=t.getIndexAngle(g),y=a.toDegrees(x);o.textAlign=l(y),c(y,t._pointLabelSizes[g],m),u(o,t.pointLabels[g]||"",m,f.size)}}}function h(t,n,o,i){var r=t.ctx;if(r.strokeStyle=a.valueAtIndexOrDefault(n.color,i-1),r.lineWidth=a.valueAtIndexOrDefault(n.lineWidth,i-1),t.options.gridLines.circular)r.beginPath(),r.arc(t.xCenter,t.yCenter,o,0,2*Math.PI),r.closePath(),r.stroke();else{var s=e(t);if(0===s)return;r.beginPath();var l=t.getPointPosition(0,o);r.moveTo(l.x,l.y);for(var u=1;ud.r&&(d.r=v.end,h.r=p),m.startd.b&&(d.b=m.end,h.b=p)}t.setReductions(c,d,h)}(this):function(t){var e=Math.min(t.height/2,t.width/2);t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0)}(this)},setReductions:function(t,e,n){var o=this,a=e.l/Math.sin(n.l),i=Math.max(e.r-o.width,0)/Math.sin(n.r),r=-e.t/Math.cos(n.t),s=-Math.max(e.b-o.height,0)/Math.cos(n.b);a=f(a),i=f(i),r=f(r),s=f(s),o.drawingArea=Math.min(Math.round(t-(a+i)/2),Math.round(t-(r+s)/2)),o.setCenterPoint(a,i,r,s)},setCenterPoint:function(t,e,n,o){var a=this,i=a.width-e-a.drawingArea,r=t+a.drawingArea,s=n+a.drawingArea,l=a.height-o-a.drawingArea;a.xCenter=Math.round((r+i)/2+a.left),a.yCenter=Math.round((s+l)/2+a.top)},getIndexAngle:function(t){return t*(2*Math.PI/e(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var n=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*n:(t-e.min)*n},getPointPosition:function(t,e){var n=this,o=n.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(o)*e)+n.xCenter,y:Math.round(Math.sin(o)*e)+n.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this,e=t.min,n=t.max;return t.getPointPositionForValue(0,t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0)},draw:function(){var t=this,e=t.options,n=e.gridLines,o=e.ticks,i=a.valueOrDefault;if(e.display){var r=t.ctx,s=this.getIndexAngle(0),l=i(o.fontSize,p.defaultFontSize),u=i(o.fontStyle,p.defaultFontStyle),c=i(o.fontFamily,p.defaultFontFamily),f=a.fontString(l,u,c);a.each(t.ticks,(function(e,a){if(a>0||o.reverse){var u=t.getDistanceFromCenterForValue(t.ticksAsNumbers[a]);if(n.display&&0!==a&&h(t,n,u,a),o.display){var c=i(o.fontColor,p.defaultFontColor);if(r.font=f,r.save(),r.translate(t.xCenter,t.yCenter),r.rotate(s),o.showLabelBackdrop){var d=r.measureText(e).width;r.fillStyle=o.backdropColor,r.fillRect(-d/2-o.backdropPaddingX,-u-l/2-o.backdropPaddingY,d+2*o.backdropPaddingX,l+2*o.backdropPaddingY)}r.textAlign="center",r.textBaseline="middle",r.fillStyle=c,r.fillText(e,0,-u),r.restore()}}})),(e.angleLines.display||e.pointLabels.display)&&d(t)}}});t.scaleService.registerScaleType("radialLinear",v,g)}},{25:25,34:34,45:45}],57:[function(t,e,n){"use strict";function o(t,e){return t-e}function a(t){var e,n,o,a={},i=[];for(e=0,n=t.length;e=0&&r<=s;){if(a=t[(o=r+s>>1)-1]||null,i=t[o],!a)return{lo:null,hi:i};if(i[e]n))return{lo:a,hi:i};s=o-1}}return{lo:i,hi:null}}(t,e,n),i=a.lo?a.hi?a.lo:t[t.length-2]:t[0],r=a.lo?a.hi?a.hi:t[t.length-1]:t[1],s=r[e]-i[e],l=s?(n-i[e])/s:0,u=(r[o]-i[o])*l;return i[o]+u}function r(t,e){var n=e.parser,o=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof o?h(t,o):(t instanceof h||(t=h(t)),t.isValid()?t:"function"==typeof o?o(t):t)}function s(t,e){if(p.isNullOrUndef(t))return null;var n=e.options.time,o=r(e.getRightValue(t),n);return o.isValid()?(n.round&&o.startOf(n.round),o.valueOf()):null}function l(t,e,n,o){var a,i,r,s=b.length;for(a=b.indexOf(t);a1?e[1]:o,s=e[0],l=(i(t,"time",r,"pos")-i(t,"time",s,"pos"))/2),a.time.max||(r=e[e.length-1],s=e.length>1?e[e.length-2]:n,u=(i(t,"time",r,"pos")-i(t,"time",s,"pos"))/2)),{left:l,right:u}}function d(t,e){var n,o,a,i,r=[];for(n=0,o=t.length;n=a&&n<=i&&y.push(n);return o.min=a,o.max=i,o._unit=g,o._majorUnit=v,o._minorFormat=f[g],o._majorFormat=f[v],o._table=function(t,e,n,o){if("linear"===o||!t.length)return[{time:e,pos:0},{time:n,pos:1}];var a,i,r,s,l,u=[],c=[e];for(a=0,i=t.length;ae&&s=0&&t{function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}n(8636),n(5086),n(8329),n(8772),n(4913),n(9693),n(115),n(7136),n(173),n(9073),n(6048),n(9581),n(3534),n(590),n(4216),n(8665),n(9979),n(4602),function(t){"use strict";var e=function(e,n){t.fn.typeahead.defaults;n.scrollBar&&(n.items=100,n.menu='');var o=this;if(o.$element=t(e),o.options=t.extend({},t.fn.typeahead.defaults,n),o.$menu=t(o.options.menu).insertAfter(o.$element),o.eventSupported=o.options.eventSupported||o.eventSupported,o.grepper=o.options.grepper||o.grepper,o.highlighter=o.options.highlighter||o.highlighter,o.lookup=o.options.lookup||o.lookup,o.matcher=o.options.matcher||o.matcher,o.render=o.options.render||o.render,o.onSelect=o.options.onSelect||null,o.sorter=o.options.sorter||o.sorter,o.source=o.options.source||o.source,o.displayField=o.options.displayField||o.displayField,o.valueField=o.options.valueField||o.valueField,o.options.ajax){var a=o.options.ajax;"string"==typeof a?o.ajax=t.extend({},t.fn.typeahead.defaults.ajax,{url:a}):("string"==typeof a.displayField&&(o.displayField=o.options.displayField=a.displayField),"string"==typeof a.valueField&&(o.valueField=o.options.valueField=a.valueField),o.ajax=t.extend({},t.fn.typeahead.defaults.ajax,a)),o.ajax.url||(o.ajax=null),o.query=""}else o.source=o.options.source,o.ajax=null;o.shown=!1,o.listen()};e.prototype={constructor:e,eventSupported:function(t){var e=t in this.$element;return e||(this.$element.setAttribute(t,"return;"),e="function"==typeof this.$element[t]),e},select:function(){var t=this.$menu.find(".active").attr("data-value"),e=this.$menu.find(".active a").text();return this.options.onSelect&&this.options.onSelect({value:t,text:e}),this.$element.val(this.updater(e)).change(),this.hide()},updater:function(t){return t},show:function(){var e=t.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});if(this.$menu.css({top:e.top+e.height,left:e.left}),this.options.alignWidth){var n=t(this.$element[0]).outerWidth();this.$menu.css({width:n})}return this.$menu.show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},ajaxLookup:function(){var e=t.trim(this.$element.val());if(e===this.query)return this;if(this.query=e,this.ajax.timerId&&(clearTimeout(this.ajax.timerId),this.ajax.timerId=null),!e||e.length"+e+""}))},render:function(e){var n,a=this,i="string"==typeof a.options.displayField;return(e=t(e).map((function(e,r){return"object"===o(r)?(n=i?r[a.options.displayField]:a.options.displayField(r),e=t(a.options.item).attr("data-value",r[a.options.valueField])):(n=r,e=t(a.options.item).attr("data-value",r)),e.find("a").html(a.highlighter(n)),e[0]}))).first().addClass("active"),this.$menu.html(e),this},grepper:function(e){var n,o,a=this,i="string"==typeof a.options.displayField;if(!(i&&e&&e.length))return null;if(e[0].hasOwnProperty(a.options.displayField))n=t.grep(e,(function(t){return o=i?t[a.options.displayField]:a.options.displayField(t),a.matcher(o)}));else{if("string"!=typeof e[0])return null;n=t.grep(e,(function(t){return a.matcher(t)}))}return this.sorter(n)},next:function(e){var n=this.$menu.find(".active").removeClass("active").next();if(n.length||(n=t(this.$menu.find("li")[0])),this.options.scrollBar){var o=this.$menu.children("li").index(n);o%8==0&&this.$menu.scrollTop(26*o)}n.addClass("active")},prev:function(t){var e=this.$menu.find(".active").removeClass("active").prev();if(e.length||(e=this.$menu.find("li").last()),this.options.scrollBar){var n=this.$menu.children("li"),o=n.length-1,a=n.index(e);(o-a)%8==0&&this.$menu.scrollTop(26*(a-7))}e.addClass("active")},listen:function(){this.$element.on("focus",t.proxy(this.focus,this)).on("blur",t.proxy(this.blur,this)).on("keypress",t.proxy(this.keypress,this)).on("keyup",t.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",t.proxy(this.keydown,this)),this.$menu.on("click",t.proxy(this.click,this)).on("mouseenter","li",t.proxy(this.mouseenter,this)).on("mouseleave","li",t.proxy(this.mouseleave,this))},move:function(t){if(this.shown){switch(t.keyCode){case 9:case 13:case 27:t.preventDefault();break;case 38:t.preventDefault(),this.prev();break;case 40:t.preventDefault(),this.next()}t.stopPropagation()}},keydown:function(e){this.suppressKeyPressRepeat=~t.inArray(e.keyCode,[40,38,9,13,27]),this.move(e)},keypress:function(t){this.suppressKeyPressRepeat||this.move(t)},keyup:function(t){switch(t.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.ajax?this.ajaxLookup():this.lookup()}t.stopPropagation(),t.preventDefault()},focus:function(t){this.focused=!0},blur:function(t){this.focused=!1,!this.mousedover&&this.shown&&this.hide()},click:function(t){t.stopPropagation(),t.preventDefault(),this.select(),this.$element.focus()},mouseenter:function(e){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),t(e.currentTarget).addClass("active")},mouseleave:function(t){this.mousedover=!1,!this.focused&&this.shown&&this.hide()},destroy:function(){this.$element.off("focus",t.proxy(this.focus,this)).off("blur",t.proxy(this.blur,this)).off("keypress",t.proxy(this.keypress,this)).off("keyup",t.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.off("keydown",t.proxy(this.keydown,this)),this.$menu.off("click",t.proxy(this.click,this)).off("mouseenter","li",t.proxy(this.mouseenter,this)).off("mouseleave","li",t.proxy(this.mouseleave,this)),this.$element.removeData("typeahead")}},t.fn.typeahead=function(n){return this.each((function(){var a=t(this),i=a.data("typeahead"),r="object"===o(n)&&n;i||a.data("typeahead",i=new e(this,r)),"string"==typeof n&&i[n]()}))},t.fn.typeahead.defaults={source:[],items:10,scrollBar:!1,alignWidth:!0,menu:'',item:'
  • ',valueField:"id",displayField:"name",onSelect:function(){},ajax:{url:null,timeout:300,method:"get",triggerLength:1,loadingClass:null,preDispatch:null,preProcess:null}},t.fn.typeahead.Constructor=e,t((function(){t("body").on("focus.typeahead.data-api",'[data-provide="typeahead"]',(function(e){var n=t(this);n.data("typeahead")||(e.preventDefault(),n.typeahead(n.data()))}))}))}(window.jQuery)},2811:function(t,e,n){var o,a;function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}n(4913),n(475),n(115),n(9693),n(8636),n(5086),n(7136),n(173),n(2231),n(6255),n(9389),n(6048),n(9581),n(6088),n(9073),n(3534),n(590),n(4216),n(8665),n(9979),n(4602),function(t){"use strict";var e,n,o=Array.prototype.slice;(n=function(e){this.options=t.extend({},n.defaults,e),this.parser=this.options.parser,this.locale=this.options.locale,this.messageStore=this.options.messageStore,this.languages={},this.init()}).prototype={init:function(){var e=this;String.locale=e.locale,String.prototype.toLocaleString=function(){var n,o,a,i,r,s,l;for(a=this.valueOf(),i=e.locale,r=0;i;){o=(n=i.split("-")).length;do{if(s=n.slice(0,o).join("-"),l=e.messageStore.get(s,a))return l;o--}while(o);if("en"===i)break;i=t.i18n.fallbacks[e.locale]&&t.i18n.fallbacks[e.locale][r]||e.options.fallbackLocale,t.i18n.log("Trying fallback locale for "+e.locale+": "+i),r++}return""}},destroy:function(){t.removeData(document,"i18n")},load:function(e,n){var o,a,i,r={};if(e||n||(e="i18n/"+t.i18n().locale+".json",n=t.i18n().locale),"string"==typeof e&&"json"!==e.split(".").pop()){for(a in r[n]=e+"/"+n+".json",o=(t.i18n.fallbacks[n]||[]).concat(this.options.fallbackLocale))r[i=o[a]]=e+"/"+i+".json";return this.load(r)}return this.messageStore.load(e,n)},parse:function(e,n){var o=e.toLocaleString();return this.parser.language=t.i18n.languages[t.i18n().locale]||t.i18n.languages.default,""===o&&(o=e),this.parser.parse(o,n)}},t.i18n=function(e,a){var r,s=t.data(document,"i18n"),l="object"===i(e)&&e;return l&&l.locale&&s&&s.locale!==l.locale&&(String.locale=s.locale=l.locale),s||(s=new n(l),t.data(document,"i18n",s)),"string"==typeof e?(r=void 0!==a?o.call(arguments,1):[],s.parse(e,r)):s},t.fn.i18n=function(){var e=t.data(document,"i18n");return e||(e=new n,t.data(document,"i18n",e)),String.locale=e.locale,this.each((function(){var n,o,a,i,r=t(this),s=r.data("i18n");s?(n=s.indexOf("["),o=s.indexOf("]"),-1!==n&&-1!==o&&n1?["CONCAT"].concat(t):t[0]}function P(){var t=w([h,n,I]);return null===t?null:[t[0],t[2]]}function A(){var t=w([h,n,v]);return null===t?null:[t[0],t[2]]}function T(){var t=w([f,d,p]);return null===t?null:t[1]}if(e=S("|"),n=S(":"),o=S("\\"),a=M(/^./),i=S("$"),r=M(/^\d+/),s=M(/^[^{}\[\]$\\]/),l=M(/^[^{}\[\]$\\|]/),k([_,M(/^[^{}\[\]$\s]/)]),u=k([_,l]),c=k([_,s]),b=M(/^[ !"$&'()*,.\/0-9;=?@A-Z\^_`a-z~\x80-\xFF+\-]+/),x=function(t){return t.toString()},h=function(){var t=b();return null===t?null:x(t)},d=k([function(){var t=w([k([P,A]),C(0,D)]);return null===t?null:t[0].concat(t[1])},function(){var t=w([h,C(0,D)]);return null===t?null:[t[0]].concat(t[1])}]),f=S("{{"),p=S("}}"),g=k([T,I,function(){var t=C(1,c)();return null===t?null:t.join("")}]),v=k([T,I,function(){var t=C(1,u)();return null===t?null:t.join("")}]),null===(m=function(){var t=C(0,g)();return null===t?null:["CONCAT"].concat(t)}())||y!==t.length)throw new Error("Parse error at position "+y.toString()+" in input: "+t);return m}},t.extend(t.i18n.parser,new e)}(jQuery),function(t){"use strict";var e=function(){this.language=t.i18n.languages[String.locale]||t.i18n.languages.default};e.prototype={constructor:e,emit:function(e,n){var o,a,r,s=this;switch(i(e)){case"string":case"number":o=e;break;case"object":if(a=t.map(e.slice(1),(function(t){return s.emit(t,n)})),r=e[0].toLowerCase(),"function"!=typeof s[r])throw new Error('unknown operation "'+r+'"');o=s[r](a,n);break;case"undefined":o="";break;default:throw new Error("unexpected type in AST: "+i(e))}return o},concat:function(e){var n="";return t.each(e,(function(t,e){n+=e})),n},replace:function(t,e){var n=parseInt(t[0],10);return n=parseInt(t[0],10)&&e[0]{},1536:()=>{},2559:()=>{},2553:()=>{},5264:()=>{},6387:()=>{},5985:()=>{},63:()=>{},3888:()=>{},7278:()=>{},3704:()=>{}},t=>{var e=e=>t(t.s=e);t.O(0,[450],(()=>(e(2811),e(7852),e(6108),e(9143),e(5779),e(6618),e(3441),e(1680),e(9654),e(5611),e(3600),e(514),e(9307),e(6730),e(1595),e(1223),e(9662),e(63),e(1536),e(2559),e(2553),e(5264),e(6387),e(5985),e(3888),e(3704),e(7278))));t.O()}]); \ No newline at end of file diff --git a/public/build/entrypoints.json b/public/build/entrypoints.json index 470780344..4f31b6163 100644 --- a/public/build/entrypoints.json +++ b/public/build/entrypoints.json @@ -4,7 +4,7 @@ "js": [ "/build/runtime.c217f8c4.js", "/build/450.304e1a09.js", - "/build/app.79f750e0.js" + "/build/app.48b6b1cc.js" ], "css": [ "/build/app.df7c9813.css" diff --git a/public/build/manifest.json b/public/build/manifest.json index 1028e19bd..9e49694e8 100644 --- a/public/build/manifest.json +++ b/public/build/manifest.json @@ -1,6 +1,6 @@ { "build/app.css": "/build/app.df7c9813.css", - "build/app.js": "/build/app.79f750e0.js", + "build/app.js": "/build/app.48b6b1cc.js", "build/runtime.js": "/build/runtime.c217f8c4.js", "build/450.304e1a09.js": "/build/450.304e1a09.js", "build/images/VPS-badge.svg": "/build/images/VPS-badge.svg", From 6a83d6f7d83fc186741047e26b2981ed4c9710ea Mon Sep 17 00:00:00 2001 From: agoujot <145840578+agoujot@users.noreply.github.com> Date: Tue, 22 Apr 2025 02:29:59 +0200 Subject: [PATCH 5/9] filter all hours to keep only those we want --- assets/js/editcounter.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/assets/js/editcounter.js b/assets/js/editcounter.js index c09d26eee..5fa88847c 100644 --- a/assets/js/editcounter.js +++ b/assets/js/editcounter.js @@ -256,7 +256,6 @@ xtools.editcounter.setupMonthYearChart = function (id, datasets, labels, maxTota }], yAxes: [{ stacked: true, - barThickness: 18, position: i18nRTL ? 'right' : 'left', gridLines: { color: xtools.application.chartGridColor @@ -336,8 +335,11 @@ xtools.editcounter.setupTimecard = function (timeCardDatasets, days) { if (index === 0 || index > 7) { return ''; } - let datasets = window.chart ? chart.data.datasets : timeCardDatasets; - return datasets[index - 1].data.reduce(function (a, b) { + let dataset = (window.chart ? window.chart.data.datasets : timeCardDatasets); + let hours = dataset.map((day) => day.data) + .flat() + .filter((datum) => datum.y == 8-index); + return hours.reduce(function (a, b) { return a + parseInt(b.value, 10); }, 0); } From 377e43d28169779768f7ef923c026005054b9084 Mon Sep 17 00:00:00 2001 From: agoujot <145840578+agoujot@users.noreply.github.com> Date: Tue, 22 Apr 2025 22:44:20 +0200 Subject: [PATCH 6/9] commit compiled assets --- public/build/65.b1ddf728.js | 1 + public/build/app.f6e6f244.js | 2 + public/build/app.f6e6f244.js.LICENSE.txt | 67 ++++++++++++++++++++++++ public/build/entrypoints.json | 4 +- public/build/manifest.json | 4 +- 5 files changed, 74 insertions(+), 4 deletions(-) create mode 100644 public/build/65.b1ddf728.js create mode 100644 public/build/app.f6e6f244.js create mode 100644 public/build/app.f6e6f244.js.LICENSE.txt diff --git a/public/build/65.b1ddf728.js b/public/build/65.b1ddf728.js new file mode 100644 index 000000000..607093178 --- /dev/null +++ b/public/build/65.b1ddf728.js @@ -0,0 +1 @@ +(self.webpackChunkxtools=self.webpackChunkxtools||[]).push([[65],{4601:(t,r,e)=>{var n=e(8420),o=e(3838),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not a function")}},7473:(t,r,e)=>{var n=e(8420),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},298:(t,r,e)=>{var n=e(1602),o=e(3105),i=e(3610).f,a=n("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,{configurable:!0,value:o(null)}),t.exports=function(t){s[a][t]=!0}},7234:(t,r,e)=>{"use strict";var n=e(7804).charAt;t.exports=function(t,r,e){return r+(e?n(t,r).length:1)}},5190:(t,r,e)=>{var n=e(7658),o=TypeError;t.exports=function(t,r){if(n(r,t))return t;throw o("Incorrect invocation")}},3938:(t,r,e)=>{var n=e(5335),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not an object")}},7806:(t,r,e)=>{"use strict";var n=e(2612),o=e(6539),i=e(3493);t.exports=function(t){for(var r=n(this),e=i(r),a=arguments.length,s=o(a>1?arguments[1]:void 0,e),u=a>2?arguments[2]:void 0,c=void 0===u?e:o(u,e);c>s;)r[s++]=t;return r}},516:(t,r,e)=>{"use strict";var n=e(1344).forEach,o=e(2349)("forEach");t.exports=o?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},1027:(t,r,e)=>{"use strict";var n=e(6885),o=e(2368),i=e(2612),a=e(1332),s=e(9034),u=e(1466),c=e(3493),f=e(2057),l=e(9526),p=e(1898),h=Array;t.exports=function(t){var r=i(t),e=u(this),v=arguments.length,g=v>1?arguments[1]:void 0,d=void 0!==g;d&&(g=n(g,v>2?arguments[2]:void 0));var y,m,b,x,S,w,O=p(r),E=0;if(!O||this===h&&s(O))for(y=c(r),m=e?new this(y):h(y);y>E;E++)w=d?g(r[E],E):r[E],f(m,E,w);else for(S=(x=l(r,O)).next,m=e?new this:[];!(b=o(S,x)).done;E++)w=d?a(x,g,[b.value,E],!0):b.value,f(m,E,w);return m.length=E,m}},8186:(t,r,e)=>{var n=e(5476),o=e(6539),i=e(3493),a=function(t){return function(r,e,a){var s,u=n(r),c=i(u),f=o(a,c);if(t&&e!=e){for(;c>f;)if((s=u[f++])!=s)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},1344:(t,r,e)=>{var n=e(6885),o=e(281),i=e(8664),a=e(2612),s=e(3493),u=e(2998),c=o([].push),f=function(t){var r=1==t,e=2==t,o=3==t,f=4==t,l=6==t,p=7==t,h=5==t||l;return function(v,g,d,y){for(var m,b,x=a(v),S=i(x),w=n(g,d),O=s(S),E=0,P=y||u,A=r?P(v,O):e||p?P(v,0):void 0;O>E;E++)if((h||E in S)&&(b=w(m=S[E],E,x),t))if(r)A[E]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return E;case 2:c(A,m)}else switch(t){case 4:return!1;case 7:c(A,m)}return l?-1:o||f?f:A}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},5634:(t,r,e)=>{var n=e(2074),o=e(1602),i=e(6845),a=o("species");t.exports=function(t){return i>=51||!n((function(){var r=[];return(r.constructor={})[a]=function(){return{foo:1}},1!==r[t](Boolean).foo}))}},2349:(t,r,e)=>{"use strict";var n=e(2074);t.exports=function(t,r){var e=[][t];return!!e&&n((function(){e.call(null,r||function(){return 1},1)}))}},2237:(t,r,e)=>{var n=e(4601),o=e(2612),i=e(8664),a=e(3493),s=TypeError,u=function(t){return function(r,e,u,c){n(e);var f=o(r),l=i(f),p=a(f),h=t?p-1:0,v=t?-1:1;if(u<2)for(;;){if(h in l){c=l[h],h+=v;break}if(h+=v,t?h<0:p<=h)throw s("Reduce of empty array with no initial value")}for(;t?h>=0:p>h;h+=v)h in l&&(c=e(c,l[h],h,f));return c}};t.exports={left:u(!1),right:u(!0)}},6648:(t,r,e)=>{"use strict";var n=e(5077),o=e(8679),i=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,r){if(o(t)&&!a(t,"length").writable)throw i("Cannot set read only .length");return t.length=r}:function(t,r){return t.length=r}},6056:(t,r,e)=>{var n=e(6539),o=e(3493),i=e(2057),a=Array,s=Math.max;t.exports=function(t,r,e){for(var u=o(t),c=n(r,u),f=n(void 0===e?u:e,u),l=a(s(f-c,0)),p=0;c{var n=e(281);t.exports=n([].slice)},8039:(t,r,e)=>{var n=e(6056),o=Math.floor,i=function(t,r){var e=t.length,u=o(e/2);return e<8?a(t,r):s(t,i(n(t,0,u),r),i(n(t,u),r),r)},a=function(t,r){for(var e,n,o=t.length,i=1;i0;)t[n]=t[--n];n!==i++&&(t[n]=e)}return t},s=function(t,r,e,n){for(var o=r.length,i=e.length,a=0,s=0;a{var n=e(8679),o=e(1466),i=e(5335),a=e(1602)("species"),s=Array;t.exports=function(t){var r;return n(t)&&(r=t.constructor,(o(r)&&(r===s||n(r.prototype))||i(r)&&null===(r=r[a]))&&(r=void 0)),void 0===r?s:r}},2998:(t,r,e)=>{var n=e(3892);t.exports=function(t,r){return new(n(t))(0===r?0:r)}},1332:(t,r,e)=>{var n=e(3938),o=e(9868);t.exports=function(t,r,e,i){try{return i?r(n(e)[0],e[1]):r(e)}catch(r){o(t,"throw",r)}}},8569:(t,r,e)=>{var n=e(281),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},3062:(t,r,e)=>{var n=e(3129),o=e(8420),i=e(8569),a=e(1602)("toStringTag"),s=Object,u="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=s(t),a))?e:u?i(r):"Object"==(n=i(r))&&o(r.callee)?"Arguments":n}},4361:(t,r,e)=>{var n=e(6490),o=e(5816),i=e(7632),a=e(3610);t.exports=function(t,r,e){for(var s=o(r),u=a.f,c=i.f,f=0;f{var n=e(2074);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},8296:t=>{t.exports=function(t,r){return{value:t,done:r}}},7712:(t,r,e)=>{var n=e(5077),o=e(3610),i=e(6843);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},6843:t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},2057:(t,r,e)=>{"use strict";var n=e(6032),o=e(3610),i=e(6843);t.exports=function(t,r,e){var a=n(r);a in t?o.f(t,a,i(0,e)):t[a]=e}},6477:(t,r,e)=>{var n=e(8218),o=e(3610);t.exports=function(t,r,e){return e.get&&n(e.get,r,{getter:!0}),e.set&&n(e.set,r,{setter:!0}),o.f(t,r,e)}},7485:(t,r,e)=>{var n=e(8420),o=e(3610),i=e(8218),a=e(9430);t.exports=function(t,r,e,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:r;if(n(e)&&i(e,c,s),s.global)u?t[r]=e:a(r,e);else{try{s.unsafe?t[r]&&(u=!0):delete t[r]}catch(t){}u?t[r]=e:o.f(t,r,{value:e,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},2760:(t,r,e)=>{var n=e(7485);t.exports=function(t,r,e){for(var o in r)n(t,o,r[o],e);return t}},9430:(t,r,e)=>{var n=e(200),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},4881:(t,r,e)=>{"use strict";var n=e(3838),o=TypeError;t.exports=function(t,r){if(!delete t[r])throw o("Cannot delete property "+n(r)+" of "+n(t))}},5077:(t,r,e)=>{var n=e(2074);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6568:t=>{var r="object"==typeof document&&document.all,e=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:e}},3262:(t,r,e)=>{var n=e(200),o=e(5335),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},7242:t=>{var r=TypeError;t.exports=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}},5549:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},2975:(t,r,e)=>{var n=e(3262)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},3727:(t,r,e)=>{var n=e(7061).match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]},6874:t=>{t.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},7413:(t,r,e)=>{var n=e(7061);t.exports=/MSIE|Trident/.test(n)},5223:(t,r,e)=>{var n=e(8569);t.exports="undefined"!=typeof process&&"process"==n(process)},7061:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},6845:(t,r,e)=>{var n,o,i=e(200),a=e(7061),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,f=c&&c.v8;f&&(o=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},2346:(t,r,e)=>{var n=e(7061).match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]},290:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1605:(t,r,e)=>{var n=e(200),o=e(7632).f,i=e(7712),a=e(7485),s=e(9430),u=e(4361),c=e(4977);t.exports=function(t,r){var e,f,l,p,h,v=t.target,g=t.global,d=t.stat;if(e=g?n:d?n[v]||s(v,{}):(n[v]||{}).prototype)for(f in r){if(p=r[f],l=t.dontCallGetSet?(h=o(e,f))&&h.value:e[f],!c(g?f:v+(d?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;u(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),a(e,f,p,t)}}},2074:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},779:(t,r,e)=>{"use strict";e(7136);var n=e(3091),o=e(7485),i=e(54),a=e(2074),s=e(1602),u=e(7712),c=s("species"),f=RegExp.prototype;t.exports=function(t,r,e,l){var p=s(t),h=!a((function(){var r={};return r[p]=function(){return 7},7!=""[t](r)})),v=h&&!a((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[c]=function(){return e},e.flags="",e[p]=/./[p]),e.exec=function(){return r=!0,null},e[p](""),!r}));if(!h||!v||e){var g=n(/./[p]),d=r(p,""[t],(function(t,r,e,o,a){var s=n(t),u=r.exec;return u===i||u===f.exec?h&&!a?{done:!0,value:g(r,e,o)}:{done:!0,value:s(e,r,o)}:{done:!1}}));o(String.prototype,t,d[0]),o(f,p,d[1])}l&&u(f[p],"sham",!0)}},9608:(t,r,e)=>{"use strict";var n=e(8679),o=e(3493),i=e(7242),a=e(6885),s=function(t,r,e,u,c,f,l,p){for(var h,v,g=c,d=0,y=!!l&&a(l,p);d0&&n(h)?(v=o(h),g=s(t,r,h,v,g,f-1)-1):(i(g+1),t[g]=h),g++),d++;return g};t.exports=s},9070:(t,r,e)=>{var n=e(8823),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},6885:(t,r,e)=>{var n=e(3091),o=e(4601),i=e(8823),a=n(n.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?a(t,r):function(){return t.apply(r,arguments)}}},8823:(t,r,e)=>{var n=e(2074);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8891:(t,r,e)=>{"use strict";var n=e(281),o=e(4601),i=e(5335),a=e(6490),s=e(9609),u=e(8823),c=Function,f=n([].concat),l=n([].join),p={};t.exports=u?c.bind:function(t){var r=o(this),e=r.prototype,n=s(arguments,1),u=function(){var e=f(n,s(arguments));return this instanceof u?function(t,r,e){if(!a(p,r)){for(var n=[],o=0;o{var n=e(8823),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},2071:(t,r,e)=>{var n=e(5077),o=e(6490),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,c=s&&(!n||n&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},1385:(t,r,e)=>{var n=e(281),o=e(4601);t.exports=function(t,r,e){try{return n(o(Object.getOwnPropertyDescriptor(t,r)[e]))}catch(t){}}},3091:(t,r,e)=>{var n=e(8569),o=e(281);t.exports=function(t){if("Function"===n(t))return o(t)}},281:(t,r,e)=>{var n=e(8823),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);t.exports=n?a:function(t){return function(){return i.apply(t,arguments)}}},6492:(t,r,e)=>{var n=e(200),o=e(8420);t.exports=function(t,r){return arguments.length<2?(e=n[t],o(e)?e:void 0):n[t]&&n[t][r];var e}},1898:(t,r,e)=>{var n=e(3062),o=e(6457),i=e(8406),a=e(2228),s=e(1602)("iterator");t.exports=function(t){if(!i(t))return o(t,s)||o(t,"@@iterator")||a[n(t)]}},9526:(t,r,e)=>{var n=e(2368),o=e(4601),i=e(3938),a=e(3838),s=e(1898),u=TypeError;t.exports=function(t,r){var e=arguments.length<2?s(t):r;if(o(e))return i(n(e,t));throw u(a(t)+" is not iterable")}},1110:(t,r,e)=>{var n=e(281),o=e(8679),i=e(8420),a=e(8569),s=e(5362),u=n([].push);t.exports=function(t){if(i(t))return t;if(o(t)){for(var r=t.length,e=[],n=0;n{var n=e(4601),o=e(8406);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},4433:(t,r,e)=>{var n=e(281),o=e(2612),i=Math.floor,a=n("".charAt),s=n("".replace),u=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,r,e,n,l,p){var h=e+t.length,v=n.length,g=f;return void 0!==l&&(l=o(l),g=c),s(p,g,(function(o,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return u(r,0,e);case"'":return u(r,h);case"<":c=l[u(s,1,-1)];break;default:var f=+s;if(0===f)return o;if(f>v){var p=i(f/10);return 0===p?o:p<=v?void 0===n[p-1]?a(s,1):n[p-1]+a(s,1):o}c=n[f-1]}return void 0===c?"":c}))}},200:(t,r,e)=>{var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||function(){return this}()||Function("return this")()},6490:(t,r,e)=>{var n=e(281),o=e(2612),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},7708:t=>{t.exports={}},8890:(t,r,e)=>{var n=e(6492);t.exports=n("document","documentElement")},7694:(t,r,e)=>{var n=e(5077),o=e(2074),i=e(3262);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8664:(t,r,e)=>{var n=e(281),o=e(2074),i=e(8569),a=Object,s=n("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?s(t,""):a(t)}:a},3054:(t,r,e)=>{var n=e(8420),o=e(5335),i=e(9686);t.exports=function(t,r,e){var a,s;return i&&n(a=r.constructor)&&a!==e&&o(s=a.prototype)&&s!==e.prototype&&i(t,s),t}},9965:(t,r,e)=>{var n=e(281),o=e(8420),i=e(9310),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},9206:(t,r,e)=>{var n,o,i,a=e(8369),s=e(200),u=e(5335),c=e(7712),f=e(6490),l=e(9310),p=e(5904),h=e(7708),v="Object already initialized",g=s.TypeError,d=s.WeakMap;if(a||l.state){var y=l.state||(l.state=new d);y.get=y.get,y.has=y.has,y.set=y.set,n=function(t,r){if(y.has(t))throw g(v);return r.facade=t,y.set(t,r),r},o=function(t){return y.get(t)||{}},i=function(t){return y.has(t)}}else{var m=p("state");h[m]=!0,n=function(t,r){if(f(t,m))throw g(v);return r.facade=t,c(t,m,r),r},o=function(t){return f(t,m)?t[m]:{}},i=function(t){return f(t,m)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(r){var e;if(!u(r)||(e=o(r)).type!==t)throw g("Incompatible receiver, "+t+" required");return e}}}},9034:(t,r,e)=>{var n=e(1602),o=e(2228),i=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},8679:(t,r,e)=>{var n=e(8569);t.exports=Array.isArray||function(t){return"Array"==n(t)}},8420:(t,r,e)=>{var n=e(6568),o=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},1466:(t,r,e)=>{var n=e(281),o=e(2074),i=e(8420),a=e(3062),s=e(6492),u=e(9965),c=function(){},f=[],l=s("Reflect","construct"),p=/^\s*(?:class|function)\b/,h=n(p.exec),v=!p.exec(c),g=function(t){if(!i(t))return!1;try{return l(c,f,t),!0}catch(t){return!1}},d=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return v||!!h(p,u(t))}catch(t){return!0}};d.sham=!0,t.exports=!l||o((function(){var t;return g(g.call)||!g(Object)||!g((function(){t=!0}))||t}))?d:g},4977:(t,r,e)=>{var n=e(2074),o=e(8420),i=/#|\.prototype\./,a=function(t,r){var e=u[s(t)];return e==f||e!=c&&(o(r)?n(r):!!r)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",f=a.POLYFILL="P";t.exports=a},8406:t=>{t.exports=function(t){return null==t}},5335:(t,r,e)=>{var n=e(8420),o=e(6568),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===i}:function(t){return"object"==typeof t?null!==t:n(t)}},6926:t=>{t.exports=!1},2449:(t,r,e)=>{var n=e(5335),o=e(8569),i=e(1602)("match");t.exports=function(t){var r;return n(t)&&(void 0!==(r=t[i])?!!r:"RegExp"==o(t))}},2328:(t,r,e)=>{var n=e(6492),o=e(8420),i=e(7658),a=e(5225),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,s(t))}},9868:(t,r,e)=>{var n=e(2368),o=e(3938),i=e(6457);t.exports=function(t,r,e){var a,s;o(t);try{if(!(a=i(t,"return"))){if("throw"===r)throw e;return e}a=n(a,t)}catch(t){s=!0,a=t}if("throw"===r)throw e;if(s)throw a;return o(a),e}},8287:(t,r,e)=>{"use strict";var n=e(9306).IteratorPrototype,o=e(3105),i=e(6843),a=e(5282),s=e(2228),u=function(){return this};t.exports=function(t,r,e,c){var f=r+" Iterator";return t.prototype=o(n,{next:i(+!c,e)}),a(t,f,!1,!0),s[f]=u,t}},6409:(t,r,e)=>{"use strict";var n=e(1605),o=e(2368),i=e(6926),a=e(2071),s=e(8420),u=e(8287),c=e(7970),f=e(9686),l=e(5282),p=e(7712),h=e(7485),v=e(1602),g=e(2228),d=e(9306),y=a.PROPER,m=a.CONFIGURABLE,b=d.IteratorPrototype,x=d.BUGGY_SAFARI_ITERATORS,S=v("iterator"),w="keys",O="values",E="entries",P=function(){return this};t.exports=function(t,r,e,a,v,d,A){u(e,r,a);var I,R,j,k=function(t){if(t===v&&C)return C;if(!x&&t in U)return U[t];switch(t){case w:case O:case E:return function(){return new e(this,t)}}return function(){return new e(this)}},L=r+" Iterator",T=!1,U=t.prototype,F=U[S]||U["@@iterator"]||v&&U[v],C=!x&&F||k(v),M="Array"==r&&U.entries||F;if(M&&(I=c(M.call(new t)))!==Object.prototype&&I.next&&(i||c(I)===b||(f?f(I,b):s(I[S])||h(I,S,P)),l(I,L,!0,!0),i&&(g[L]=P)),y&&v==O&&F&&F.name!==O&&(!i&&m?p(U,"name",O):(T=!0,C=function(){return o(F,this)})),v)if(R={values:k(O),keys:d?C:k(w),entries:k(E)},A)for(j in R)(x||T||!(j in U))&&h(U,j,R[j]);else n({target:r,proto:!0,forced:x||T},R);return i&&!A||U[S]===C||h(U,S,C,{name:v}),g[r]=C,R}},9306:(t,r,e)=>{"use strict";var n,o,i,a=e(2074),s=e(8420),u=e(5335),c=e(3105),f=e(7970),l=e(7485),p=e(1602),h=e(6926),v=p("iterator"),g=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(n=o):g=!0),!u(n)||a((function(){var t={};return n[v].call(t)!==t}))?n={}:h&&(n=c(n)),s(n[v])||l(n,v,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},2228:t=>{t.exports={}},3493:(t,r,e)=>{var n=e(3747);t.exports=function(t){return n(t.length)}},8218:(t,r,e)=>{var n=e(281),o=e(2074),i=e(8420),a=e(6490),s=e(5077),u=e(2071).CONFIGURABLE,c=e(9965),f=e(9206),l=f.enforce,p=f.get,h=String,v=Object.defineProperty,g=n("".slice),d=n("".replace),y=n([].join),m=s&&!o((function(){return 8!==v((function(){}),"length",{value:8}).length})),b=String(String).split("String"),x=t.exports=function(t,r,e){"Symbol("===g(h(r),0,7)&&(r="["+d(h(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!a(t,"name")||u&&t.name!==r)&&(s?v(t,"name",{value:r,configurable:!0}):t.name=r),m&&e&&a(e,"arity")&&t.length!==e.arity&&v(t,"length",{value:e.arity});try{e&&a(e,"constructor")&&e.constructor?s&&v(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=l(t);return a(n,"source")||(n.source=y(b,"string"==typeof r?r:"")),t};Function.prototype.toString=x((function(){return i(this)&&p(this).source||c(this)}),"toString")},3103:t=>{var r=Math.log,e=Math.LOG10E;t.exports=Math.log10||function(t){return r(t)*e}},1211:t=>{t.exports=Math.sign||function(t){var r=+t;return 0==r||r!=r?r:r<0?-1:1}},9830:t=>{var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},5963:(t,r,e)=>{var n=e(200),o=e(2074),i=e(281),a=e(5362),s=e(9163).trim,u=e(5073),c=i("".charAt),f=n.parseFloat,l=n.Symbol,p=l&&l.iterator,h=1/f(u+"-0")!=-1/0||p&&!o((function(){f(Object(p))}));t.exports=h?function(t){var r=s(a(t)),e=f(r);return 0===e&&"-"==c(r,0)?-0:e}:f},7292:(t,r,e)=>{var n=e(200),o=e(2074),i=e(281),a=e(5362),s=e(9163).trim,u=e(5073),c=n.parseInt,f=n.Symbol,l=f&&f.iterator,p=/^[+-]?0x/i,h=i(p.exec),v=8!==c(u+"08")||22!==c(u+"0x16")||l&&!o((function(){c(Object(l))}));t.exports=v?function(t,r){var e=s(a(t));return c(e,r>>>0||(h(p,e)?16:10))}:c},1688:(t,r,e)=>{"use strict";var n=e(5077),o=e(281),i=e(2368),a=e(2074),s=e(1641),u=e(8916),c=e(9304),f=e(2612),l=e(8664),p=Object.assign,h=Object.defineProperty,v=o([].concat);t.exports=!p||a((function(){if(n&&1!==p({b:1},p(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},e=Symbol(),o="abcdefghijklmnopqrst";return t[e]=7,o.split("").forEach((function(t){r[t]=t})),7!=p({},t)[e]||s(p({},r)).join("")!=o}))?function(t,r){for(var e=f(t),o=arguments.length,a=1,p=u.f,h=c.f;o>a;)for(var g,d=l(arguments[a++]),y=p?v(s(d),p(d)):s(d),m=y.length,b=0;m>b;)g=y[b++],n&&!i(h,d,g)||(e[g]=d[g]);return e}:p},3105:(t,r,e)=>{var n,o=e(3938),i=e(5318),a=e(290),s=e(7708),u=e(8890),c=e(3262),f=e(5904),l="prototype",p="script",h=f("IE_PROTO"),v=function(){},g=function(t){return"<"+p+">"+t+""},d=function(t){t.write(g("")),t.close();var r=t.parentWindow.Object;return t=null,r},y=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;y="undefined"!=typeof document?document.domain&&n?d(n):(r=c("iframe"),e="java"+p+":",r.style.display="none",u.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(g("document.F=Object")),t.close(),t.F):d(n);for(var o=a.length;o--;)delete y[l][a[o]];return y()};s[h]=!0,t.exports=Object.create||function(t,r){var e;return null!==t?(v[l]=o(t),e=new v,v[l]=null,e[h]=t):e=y(),void 0===r?e:i.f(e,r)}},5318:(t,r,e)=>{var n=e(5077),o=e(4491),i=e(3610),a=e(3938),s=e(5476),u=e(1641);r.f=n&&!o?Object.defineProperties:function(t,r){a(t);for(var e,n=s(r),o=u(r),c=o.length,f=0;c>f;)i.f(t,e=o[f++],n[e]);return t}},3610:(t,r,e)=>{var n=e(5077),o=e(7694),i=e(4491),a=e(3938),s=e(6032),u=TypeError,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",h="writable";r.f=n?i?function(t,r,e){if(a(t),r=s(r),a(e),"function"==typeof t&&"prototype"===r&&"value"in e&&h in e&&!e[h]){var n=f(t,r);n&&n[h]&&(t[r]=e.value,e={configurable:p in e?e[p]:n[p],enumerable:l in e?e[l]:n[l],writable:!1})}return c(t,r,e)}:c:function(t,r,e){if(a(t),r=s(r),a(e),o)try{return c(t,r,e)}catch(t){}if("get"in e||"set"in e)throw u("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},7632:(t,r,e)=>{var n=e(5077),o=e(2368),i=e(9304),a=e(6843),s=e(5476),u=e(6032),c=e(6490),f=e(7694),l=Object.getOwnPropertyDescriptor;r.f=n?l:function(t,r){if(t=s(t),r=u(r),f)try{return l(t,r)}catch(t){}if(c(t,r))return a(!o(i.f,t,r),t[r])}},6509:(t,r,e)=>{var n=e(8569),o=e(5476),i=e(4789).f,a=e(6056),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==n(t)?function(t){try{return i(t)}catch(t){return a(s)}}(t):i(o(t))}},4789:(t,r,e)=>{var n=e(6347),o=e(290).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},8916:(t,r)=>{r.f=Object.getOwnPropertySymbols},7970:(t,r,e)=>{var n=e(6490),o=e(8420),i=e(2612),a=e(5904),s=e(7168),u=a("IE_PROTO"),c=Object,f=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var r=i(t);if(n(r,u))return r[u];var e=r.constructor;return o(e)&&r instanceof e?e.prototype:r instanceof c?f:null}},7658:(t,r,e)=>{var n=e(281);t.exports=n({}.isPrototypeOf)},6347:(t,r,e)=>{var n=e(281),o=e(6490),i=e(5476),a=e(8186).indexOf,s=e(7708),u=n([].push);t.exports=function(t,r){var e,n=i(t),c=0,f=[];for(e in n)!o(s,e)&&o(n,e)&&u(f,e);for(;r.length>c;)o(n,e=r[c++])&&(~a(f,e)||u(f,e));return f}},1641:(t,r,e)=>{var n=e(6347),o=e(290);t.exports=Object.keys||function(t){return n(t,o)}},9304:(t,r)=>{"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},9686:(t,r,e)=>{var n=e(1385),o=e(3938),i=e(7473);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=n(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return o(e),i(n),r?t(e,n):e.__proto__=n,e}}():void 0)},4972:(t,r,e)=>{"use strict";var n=e(3129),o=e(3062);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},9751:(t,r,e)=>{var n=e(2368),o=e(8420),i=e(5335),a=TypeError;t.exports=function(t,r){var e,s;if("string"===r&&o(e=t.toString)&&!i(s=n(e,t)))return s;if(o(e=t.valueOf)&&!i(s=n(e,t)))return s;if("string"!==r&&o(e=t.toString)&&!i(s=n(e,t)))return s;throw a("Can't convert object to primitive value")}},5816:(t,r,e)=>{var n=e(6492),o=e(281),i=e(4789),a=e(8916),s=e(3938),u=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var r=i.f(s(t)),e=a.f;return e?u(r,e(t)):r}},9720:(t,r,e)=>{var n=e(200);t.exports=n},6527:(t,r,e)=>{var n=e(3610).f;t.exports=function(t,r,e){e in t||n(t,e,{configurable:!0,get:function(){return r[e]},set:function(t){r[e]=t}})}},6793:(t,r,e)=>{var n=e(2368),o=e(3938),i=e(8420),a=e(8569),s=e(54),u=TypeError;t.exports=function(t,r){var e=t.exec;if(i(e)){var c=n(e,t,r);return null!==c&&o(c),c}if("RegExp"===a(t))return n(s,t,r);throw u("RegExp#exec called on incompatible receiver")}},54:(t,r,e)=>{"use strict";var n,o,i=e(2368),a=e(281),s=e(5362),u=e(6844),c=e(2192),f=e(2),l=e(3105),p=e(9206).get,h=e(1036),v=e(8121),g=f("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,y=d,m=a("".charAt),b=a("".indexOf),x=a("".replace),S=a("".slice),w=(o=/b*/g,i(d,n=/a/,"a"),i(d,o,"a"),0!==n.lastIndex||0!==o.lastIndex),O=c.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];(w||E||O||h||v)&&(y=function(t){var r,e,n,o,a,c,f,h=this,v=p(h),P=s(t),A=v.raw;if(A)return A.lastIndex=h.lastIndex,r=i(y,A,P),h.lastIndex=A.lastIndex,r;var I=v.groups,R=O&&h.sticky,j=i(u,h),k=h.source,L=0,T=P;if(R&&(j=x(j,"y",""),-1===b(j,"g")&&(j+="g"),T=S(P,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==m(P,h.lastIndex-1))&&(k="(?: "+k+")",T=" "+T,L++),e=new RegExp("^(?:"+k+")",j)),E&&(e=new RegExp("^"+k+"$(?!\\s)",j)),w&&(n=h.lastIndex),o=i(d,R?e:h,T),R?o?(o.input=S(o.input,L),o[0]=S(o[0],L),o.index=h.lastIndex,h.lastIndex+=o[0].length):h.lastIndex=0:w&&o&&(h.lastIndex=h.global?o.index+o[0].length:n),E&&o&&o.length>1&&i(g,o[0],e,(function(){for(a=1;a{"use strict";var n=e(3938);t.exports=function(){var t=n(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r}},353:(t,r,e)=>{var n=e(2368),o=e(6490),i=e(7658),a=e(6844),s=RegExp.prototype;t.exports=function(t){var r=t.flags;return void 0!==r||"flags"in s||o(t,"flags")||!i(s,t)?r:n(a,t)}},2192:(t,r,e)=>{var n=e(2074),o=e(200).RegExp,i=n((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),a=i||n((function(){return!o("a","y").sticky})),s=i||n((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},1036:(t,r,e)=>{var n=e(2074),o=e(200).RegExp;t.exports=n((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},8121:(t,r,e)=>{var n=e(2074),o=e(200).RegExp;t.exports=n((function(){var t=o("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},1229:(t,r,e)=>{var n=e(8406),o=TypeError;t.exports=function(t){if(n(t))throw o("Can't call method on "+t);return t}},4741:t=>{t.exports=Object.is||function(t,r){return t===r?0!==t||1/t==1/r:t!=t&&r!=r}},8827:(t,r,e)=>{"use strict";var n,o=e(200),i=e(9070),a=e(8420),s=e(6874),u=e(7061),c=e(9609),f=e(6589),l=o.Function,p=/MSIE .\./.test(u)||s&&((n=o.Bun.version.split(".")).length<3||0==n[0]&&(n[1]<3||3==n[1]&&0==n[2]));t.exports=function(t,r){var e=r?2:1;return p?function(n,o){var s=f(arguments.length,1)>e,u=a(n)?n:l(n),p=s?c(arguments,e):[],h=s?function(){i(u,this,p)}:u;return r?t(h,o):t(h)}:t}},3524:(t,r,e)=>{"use strict";var n=e(6492),o=e(6477),i=e(1602),a=e(5077),s=i("species");t.exports=function(t){var r=n(t);a&&r&&!r[s]&&o(r,s,{configurable:!0,get:function(){return this}})}},5282:(t,r,e)=>{var n=e(3610).f,o=e(6490),i=e(1602)("toStringTag");t.exports=function(t,r,e){t&&!e&&(t=t.prototype),t&&!o(t,i)&&n(t,i,{configurable:!0,value:r})}},5904:(t,r,e)=>{var n=e(2),o=e(665),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},9310:(t,r,e)=>{var n=e(200),o=e(9430),i="__core-js_shared__",a=n[i]||o(i,{});t.exports=a},2:(t,r,e)=>{var n=e(6926),o=e(9310);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.30.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7804:(t,r,e)=>{var n=e(281),o=e(9328),i=e(5362),a=e(1229),s=n("".charAt),u=n("".charCodeAt),c=n("".slice),f=function(t){return function(r,e){var n,f,l=i(a(r)),p=o(e),h=l.length;return p<0||p>=h?t?"":void 0:(n=u(l,p))<55296||n>56319||p+1===h||(f=u(l,p+1))<56320||f>57343?t?s(l,p):n:t?c(l,p,p+2):f-56320+(n-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},7046:(t,r,e)=>{var n=e(7061);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},5214:(t,r,e)=>{var n=e(281),o=e(3747),i=e(5362),a=e(140),s=e(1229),u=n(a),c=n("".slice),f=Math.ceil,l=function(t){return function(r,e,n){var a,l,p=i(s(r)),h=o(e),v=p.length,g=void 0===n?" ":i(n);return h<=v||""==g?p:((l=u(g,f((a=h-v)/g.length))).length>a&&(l=c(l,0,a)),t?p+l:l+p)}};t.exports={start:l(!1),end:l(!0)}},3150:(t,r,e)=>{var n=e(281),o=2147483647,i=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",u=RangeError,c=n(a.exec),f=Math.floor,l=String.fromCharCode,p=n("".charCodeAt),h=n([].join),v=n([].push),g=n("".replace),d=n("".split),y=n("".toLowerCase),m=function(t){return t+22+75*(t<26)},b=function(t,r,e){var n=0;for(t=e?f(t/700):t>>1,t+=f(t/r);t>455;)t=f(t/35),n+=36;return f(n+36*t/(t+38))},x=function(t){var r=[];t=function(t){for(var r=[],e=0,n=t.length;e=55296&&o<=56319&&e=a&&nf((o-c)/S))throw u(s);for(c+=(x-a)*S,a=x,e=0;eo)throw u(s);if(n==a){for(var w=c,O=36;;){var E=O<=g?1:O>=g+26?26:O-g;if(w{"use strict";var n=e(9328),o=e(5362),i=e(1229),a=RangeError;t.exports=function(t){var r=o(i(this)),e="",s=n(t);if(s<0||s==1/0)throw a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(r+=r))1&s&&(e+=r);return e}},9233:(t,r,e)=>{var n=e(2071).PROPER,o=e(2074),i=e(5073);t.exports=function(t){return o((function(){return!!i[t]()||"​…᠎"!=="​…᠎"[t]()||n&&i[t].name!==t}))}},9163:(t,r,e)=>{var n=e(281),o=e(1229),i=e(5362),a=e(5073),s=n("".replace),u=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),f=function(t){return function(r){var e=i(o(r));return 1&t&&(e=s(e,u,"")),2&t&&(e=s(e,c,"$1")),e}};t.exports={start:f(1),end:f(2),trim:f(3)}},2072:(t,r,e)=>{var n=e(6845),o=e(2074);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},8237:(t,r,e)=>{var n=e(2368),o=e(6492),i=e(1602),a=e(7485);t.exports=function(){var t=o("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,s=i("toPrimitive");r&&!r[s]&&a(r,s,(function(t){return n(e,this)}),{arity:1})}},4569:(t,r,e)=>{var n=e(2072);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},7809:(t,r,e)=>{var n=e(281);t.exports=n(1..valueOf)},6539:(t,r,e)=>{var n=e(9328),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return e<0?o(e+r,0):i(e,r)}},5476:(t,r,e)=>{var n=e(8664),o=e(1229);t.exports=function(t){return n(o(t))}},9328:(t,r,e)=>{var n=e(9830);t.exports=function(t){var r=+t;return r!=r||0===r?0:n(r)}},3747:(t,r,e)=>{var n=e(9328),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},2612:(t,r,e)=>{var n=e(1229),o=Object;t.exports=function(t){return o(n(t))}},874:(t,r,e)=>{var n=e(2368),o=e(5335),i=e(2328),a=e(6457),s=e(9751),u=e(1602),c=TypeError,f=u("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,u=a(t,f);if(u){if(void 0===r&&(r="default"),e=n(u,t,r),!o(e)||i(e))return e;throw c("Can't convert object to primitive value")}return void 0===r&&(r="number"),s(t,r)}},6032:(t,r,e)=>{var n=e(874),o=e(2328);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},3129:(t,r,e)=>{var n={};n[e(1602)("toStringTag")]="z",t.exports="[object z]"===String(n)},5362:(t,r,e)=>{var n=e(3062),o=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},3838:t=>{var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},665:(t,r,e)=>{var n=e(281),o=0,i=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},9557:(t,r,e)=>{var n=e(2074),o=e(1602),i=e(5077),a=e(6926),s=o("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),r=t.searchParams,e="";return t.pathname="c%20d",r.forEach((function(t,n){r.delete("b"),e+=n+t})),a&&!t.toJSON||!r.size&&(a||!i)||!r.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==r.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!r[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==e||"x"!==new URL("http://x",void 0).host}))},5225:(t,r,e)=>{var n=e(2072);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},4491:(t,r,e)=>{var n=e(5077),o=e(2074);t.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},6589:t=>{var r=TypeError;t.exports=function(t,e){if(t{var n=e(200),o=e(8420),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},6100:(t,r,e)=>{var n=e(9720),o=e(6490),i=e(802),a=e(3610).f;t.exports=function(t){var r=n.Symbol||(n.Symbol={});o(r,t)||a(r,t,{value:i.f(t)})}},802:(t,r,e)=>{var n=e(1602);r.f=n},1602:(t,r,e)=>{var n=e(200),o=e(2),i=e(6490),a=e(665),s=e(2072),u=e(5225),c=n.Symbol,f=o("wks"),l=u?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return i(f,t)||(f[t]=s&&i(c,t)?c[t]:l("Symbol."+t)),f[t]}},5073:t=>{t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},115:(t,r,e)=>{"use strict";var n=e(1605),o=e(2074),i=e(8679),a=e(5335),s=e(2612),u=e(3493),c=e(7242),f=e(2057),l=e(2998),p=e(5634),h=e(1602),v=e(6845),g=h("isConcatSpreadable"),d=v>=51||!o((function(){var t=[];return t[g]=!1,t.concat()[0]!==t})),y=function(t){if(!a(t))return!1;var r=t[g];return void 0!==r?!!r:i(t)};n({target:"Array",proto:!0,arity:1,forced:!d||!p("concat")},{concat:function(t){var r,e,n,o,i,a=s(this),p=l(a,0),h=0;for(r=-1,n=arguments.length;r{var n=e(1605),o=e(7806),i=e(298);n({target:"Array",proto:!0},{fill:o}),i("fill")},17:(t,r,e)=>{"use strict";var n=e(1605),o=e(1344).filter;n({target:"Array",proto:!0,forced:!e(5634)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},2157:(t,r,e)=>{"use strict";var n=e(1605),o=e(1344).findIndex,i=e(298),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},8636:(t,r,e)=>{"use strict";var n=e(1605),o=e(1344).find,i=e(298),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},1128:(t,r,e)=>{"use strict";var n=e(1605),o=e(9608),i=e(2612),a=e(3493),s=e(9328),u=e(2998);n({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,r=i(this),e=a(r),n=u(r,0);return n.length=o(n,r,r,e,0,void 0===t?1:s(t)),n}})},8476:(t,r,e)=>{"use strict";var n=e(1605),o=e(516);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},9693:(t,r,e)=>{"use strict";var n=e(1605),o=e(3091),i=e(8186).indexOf,a=e(2349),s=o([].indexOf),u=!!s&&1/s([1],1,-0)<0;n({target:"Array",proto:!0,forced:u||!a("indexOf")},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return u?s(this,t,r)||0:i(this,t,r)}})},4895:(t,r,e)=>{e(1605)({target:"Array",stat:!0},{isArray:e(8679)})},8665:(t,r,e)=>{"use strict";var n=e(5476),o=e(298),i=e(2228),a=e(9206),s=e(3610).f,u=e(6409),c=e(8296),f=e(6926),l=e(5077),p="Array Iterator",h=a.set,v=a.getterFor(p);t.exports=u(Array,"Array",(function(t,r){h(this,{type:p,target:n(t),index:0,kind:r})}),(function(){var t=v(this),r=t.target,e=t.kind,n=t.index++;return!r||n>=r.length?(t.target=void 0,c(void 0,!0)):c("keys"==e?n:"values"==e?r[n]:[n,r[n]],!1)}),"values");var g=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!f&&l&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(t){}},475:(t,r,e)=>{"use strict";var n=e(1605),o=e(281),i=e(8664),a=e(5476),s=e(2349),u=o([].join);n({target:"Array",proto:!0,forced:i!=Object||!s("join",",")},{join:function(t){return u(a(this),void 0===t?",":t)}})},9581:(t,r,e)=>{"use strict";var n=e(1605),o=e(1344).map;n({target:"Array",proto:!0,forced:!e(5634)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},533:(t,r,e)=>{"use strict";var n=e(1605),o=e(2237).left,i=e(2349),a=e(6845);n({target:"Array",proto:!0,forced:!e(5223)&&a>79&&a<83||!i("reduce")},{reduce:function(t){var r=arguments.length;return o(this,t,r,r>1?arguments[1]:void 0)}})},557:(t,r,e)=>{"use strict";var n=e(1605),o=e(281),i=e(8679),a=o([].reverse),s=[1,2];n({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},4913:(t,r,e)=>{"use strict";var n=e(1605),o=e(8679),i=e(1466),a=e(5335),s=e(6539),u=e(3493),c=e(5476),f=e(2057),l=e(1602),p=e(5634),h=e(9609),v=p("slice"),g=l("species"),d=Array,y=Math.max;n({target:"Array",proto:!0,forced:!v},{slice:function(t,r){var e,n,l,p=c(this),v=u(p),m=s(t,v),b=s(void 0===r?v:r,v);if(o(p)&&(e=p.constructor,(i(e)&&(e===d||o(e.prototype))||a(e)&&null===(e=e[g]))&&(e=void 0),e===d||void 0===e))return h(p,m,b);for(n=new(void 0===e?d:e)(y(b-m,0)),l=0;m{"use strict";var n=e(1605),o=e(281),i=e(4601),a=e(2612),s=e(3493),u=e(4881),c=e(5362),f=e(2074),l=e(8039),p=e(2349),h=e(3727),v=e(7413),g=e(6845),d=e(2346),y=[],m=o(y.sort),b=o(y.push),x=f((function(){y.sort(void 0)})),S=f((function(){y.sort(null)})),w=p("sort"),O=!f((function(){if(g)return g<70;if(!(h&&h>3)){if(v)return!0;if(d)return d<603;var t,r,e,n,o="";for(t=65;t<76;t++){switch(r=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:e=3;break;case 68:case 71:e=4;break;default:e=2}for(n=0;n<47;n++)y.push({k:r+n,v:e})}for(y.sort((function(t,r){return r.v-t.v})),n=0;nc(e)?1:-1}}(t)),e=s(o),n=0;n{"use strict";var n=e(1605),o=e(2612),i=e(6539),a=e(9328),s=e(3493),u=e(6648),c=e(7242),f=e(2998),l=e(2057),p=e(4881),h=e(5634)("splice"),v=Math.max,g=Math.min;n({target:"Array",proto:!0,forced:!h},{splice:function(t,r){var e,n,h,d,y,m,b=o(this),x=s(b),S=i(t,x),w=arguments.length;for(0===w?e=n=0:1===w?(e=0,n=x-S):(e=w-2,n=g(v(a(r),0),x-S)),c(x+e-n),h=f(b,n),d=0;dx-n+e;d--)p(b,d-1)}else if(e>n)for(d=x-n;d>S;d--)m=d+e-1,(y=d+n-1)in b?b[m]=b[y]:p(b,m);for(d=0;d{e(298)("flat")},9560:(t,r,e)=>{var n=e(1605),o=e(281),i=Date,a=o(i.prototype.getTime);n({target:"Date",stat:!0},{now:function(){return a(new i)}})},9389:(t,r,e)=>{var n=e(281),o=e(7485),i=Date.prototype,a="Invalid Date",s="toString",u=n(i[s]),c=n(i.getTime);String(new Date(NaN))!=a&&o(i,s,(function(){var t=c(this);return t==t?u(this):a}))},4189:(t,r,e)=>{var n=e(1605),o=e(8891);n({target:"Function",proto:!0,forced:Function.bind!==o},{bind:o})},959:(t,r,e)=>{var n=e(1605),o=e(6492),i=e(9070),a=e(2368),s=e(281),u=e(2074),c=e(8420),f=e(2328),l=e(9609),p=e(1110),h=e(2072),v=String,g=o("JSON","stringify"),d=s(/./.exec),y=s("".charAt),m=s("".charCodeAt),b=s("".replace),x=s(1..toString),S=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,E=!h||u((function(){var t=o("Symbol")();return"[null]"!=g([t])||"{}"!=g({a:t})||"{}"!=g(Object(t))})),P=u((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),A=function(t,r){var e=l(arguments),n=p(r);if(c(n)||void 0!==t&&!f(t))return e[1]=function(t,r){if(c(n)&&(r=a(n,this,v(t),r)),!f(r))return r},i(g,null,e)},I=function(t,r,e){var n=y(e,r-1),o=y(e,r+1);return d(w,t)&&!d(O,o)||d(O,t)&&!d(w,n)?"\\u"+x(m(t,0),16):t};g&&n({target:"JSON",stat:!0,arity:3,forced:E||P},{stringify:function(t,r,e){var n=l(arguments),o=i(E?A:g,null,n);return P&&"string"==typeof o?b(o,S,I):o}})},1145:(t,r,e)=>{e(1605)({target:"Math",stat:!0},{log10:e(3103)})},4538:(t,r,e)=>{e(1605)({target:"Math",stat:!0},{sign:e(1211)})},4009:(t,r,e)=>{"use strict";var n=e(1605),o=e(6926),i=e(5077),a=e(200),s=e(9720),u=e(281),c=e(4977),f=e(6490),l=e(3054),p=e(7658),h=e(2328),v=e(874),g=e(2074),d=e(4789).f,y=e(7632).f,m=e(3610).f,b=e(7809),x=e(9163).trim,S="Number",w=a[S],O=s[S],E=w.prototype,P=a.TypeError,A=u("".slice),I=u("".charCodeAt),R=function(t){var r,e,n,o,i,a,s,u,c=v(t,"number");if(h(c))throw P("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=x(c),43===(r=I(c,0))||45===r){if(88===(e=I(c,2))||120===e)return NaN}else if(48===r){switch(I(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=A(c,2)).length,s=0;so)return NaN;return parseInt(i,n)}return+c},j=c(S,!w(" 0o1")||!w("0b1")||w("+0x1")),k=function(t){var r,e=arguments.length<1?0:w(function(t){var r=v(t,"number");return"bigint"==typeof r?r:R(r)}(t));return p(E,r=this)&&g((function(){b(r)}))?l(Object(e),this,k):e};k.prototype=E,j&&!o&&(E.constructor=k),n({global:!0,constructor:!0,wrap:!0,forced:j},{Number:k});var L=function(t,r){for(var e,n=i?d(r):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)f(r,e=n[o])&&!f(t,e)&&m(t,e,y(r,e))};o&&O&&L(s[S],O),(j||o)&&L(s[S],w)},6943:(t,r,e)=>{e(1605)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},2006:(t,r,e)=>{e(1605)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},8844:(t,r,e)=>{e(1605)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},4867:(t,r,e)=>{"use strict";var n=e(1605),o=e(281),i=e(9328),a=e(7809),s=e(140),u=e(2074),c=RangeError,f=String,l=Math.floor,p=o(s),h=o("".slice),v=o(1..toFixed),g=function(t,r,e){return 0===r?e:r%2==1?g(t,r-1,e*t):g(t*t,r/2,e)},d=function(t,r,e){for(var n=-1,o=e;++n<6;)o+=r*t[n],t[n]=o%1e7,o=l(o/1e7)},y=function(t,r){for(var e=6,n=0;--e>=0;)n+=t[e],t[e]=l(n/r),n=n%r*1e7},m=function(t){for(var r=6,e="";--r>=0;)if(""!==e||0===r||0!==t[r]){var n=f(t[r]);e=""===e?n:e+p("0",7-n.length)+n}return e};n({target:"Number",proto:!0,forced:u((function(){return"0.000"!==v(8e-5,3)||"1"!==v(.9,0)||"1.25"!==v(1.255,2)||"1000000000000000128"!==v(0xde0b6b3a7640080,0)}))||!u((function(){v({})}))},{toFixed:function(t){var r,e,n,o,s=a(this),u=i(t),l=[0,0,0,0,0,0],v="",b="0";if(u<0||u>20)throw c("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return f(s);if(s<0&&(v="-",s=-s),s>1e-21)if(e=(r=function(t){for(var r=0,e=t;e>=4096;)r+=12,e/=4096;for(;e>=2;)r+=1,e/=2;return r}(s*g(2,69,1))-69)<0?s*g(2,-r,1):s/g(2,r,1),e*=4503599627370496,(r=52-r)>0){for(d(l,0,e),n=u;n>=7;)d(l,1e7,0),n-=7;for(d(l,g(10,n,1),0),n=r-1;n>=23;)y(l,1<<23),n-=23;y(l,1<0?v+((o=b.length)<=u?"0."+p("0",u-o)+b:h(b,0,o-u)+"."+h(b,o-u)):v+b}})},9218:(t,r,e)=>{var n=e(1605),o=e(1688);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},5852:(t,r,e)=>{var n=e(1605),o=e(5077),i=e(3610).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},1074:(t,r,e)=>{var n=e(1605),o=e(2072),i=e(2074),a=e(8916),s=e(2612);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var r=a.f;return r?r(s(t)):[]}})},7899:(t,r,e)=>{var n=e(1605),o=e(2612),i=e(1641);n({target:"Object",stat:!0,forced:e(2074)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},5086:(t,r,e)=>{var n=e(3129),o=e(7485),i=e(4972);n||o(Object.prototype,"toString",i,{unsafe:!0})},6088:(t,r,e)=>{var n=e(1605),o=e(5963);n({global:!0,forced:parseFloat!=o},{parseFloat:o})},2231:(t,r,e)=>{var n=e(1605),o=e(7292);n({global:!0,forced:parseInt!=o},{parseInt:o})},9073:(t,r,e)=>{var n=e(5077),o=e(200),i=e(281),a=e(4977),s=e(3054),u=e(7712),c=e(4789).f,f=e(7658),l=e(2449),p=e(5362),h=e(353),v=e(2192),g=e(6527),d=e(7485),y=e(2074),m=e(6490),b=e(9206).enforce,x=e(3524),S=e(1602),w=e(1036),O=e(8121),E=S("match"),P=o.RegExp,A=P.prototype,I=o.SyntaxError,R=i(A.exec),j=i("".charAt),k=i("".replace),L=i("".indexOf),T=i("".slice),U=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,F=/a/g,C=/a/g,M=new P(F)!==F,N=v.MISSED_STICKY,_=v.UNSUPPORTED_Y,D=n&&(!M||N||w||O||y((function(){return C[E]=!1,P(F)!=F||P(C)==C||"/a/i"!=P(F,"i")})));if(a("RegExp",D)){for(var B=function(t,r){var e,n,o,i,a,c,v=f(A,this),g=l(t),d=void 0===r,y=[],x=t;if(!v&&g&&d&&t.constructor===B)return t;if((g||f(A,t))&&(t=t.source,d&&(r=h(x))),t=void 0===t?"":p(t),r=void 0===r?"":p(r),x=t,w&&"dotAll"in F&&(n=!!r&&L(r,"s")>-1)&&(r=k(r,/s/g,"")),e=r,N&&"sticky"in F&&(o=!!r&&L(r,"y")>-1)&&_&&(r=k(r,/y/g,"")),O&&(i=function(t){for(var r,e=t.length,n=0,o="",i=[],a={},s=!1,u=!1,c=0,f="";n<=e;n++){if("\\"===(r=j(t,n)))r+=j(t,++n);else if("]"===r)s=!1;else if(!s)switch(!0){case"["===r:s=!0;break;case"("===r:R(U,T(t,n+1))&&(n+=2,u=!0),o+=r,c++;continue;case">"===r&&u:if(""===f||m(a,f))throw new I("Invalid capture group name");a[f]=!0,i[i.length]=[f,c],u=!1,f="";continue}u?f+=r:o+=r}return[o,i]}(t),t=i[0],y=i[1]),a=s(P(t,r),v?this:A,B),(n||o||y.length)&&(c=b(a),n&&(c.dotAll=!0,c.raw=B(function(t){for(var r,e=t.length,n=0,o="",i=!1;n<=e;n++)"\\"!==(r=j(t,n))?i||"."!==r?("["===r?i=!0:"]"===r&&(i=!1),o+=r):o+="[\\s\\S]":o+=r+j(t,++n);return o}(t),e)),o&&(c.sticky=!0),y.length&&(c.groups=y)),t!==x)try{u(a,"source",""===x?"(?:)":x)}catch(t){}return a},H=c(P),q=0;H.length>q;)g(B,P,H[q++]);A.constructor=B,B.prototype=A,d(o,"RegExp",B,{constructor:!0})}x("RegExp")},7136:(t,r,e)=>{"use strict";var n=e(1605),o=e(54);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},6048:(t,r,e)=>{"use strict";var n=e(2071).PROPER,o=e(7485),i=e(3938),a=e(5362),s=e(2074),u=e(353),c="toString",f=RegExp.prototype[c],l=s((function(){return"/a/b"!=f.call({source:"a",flags:"b"})})),p=n&&f.name!=c;(l||p)&&o(RegExp.prototype,c,(function(){var t=i(this);return"/"+a(t.source)+"/"+a(u(t))}),{unsafe:!0})},9979:(t,r,e)=>{"use strict";var n=e(7804).charAt,o=e(5362),i=e(9206),a=e(6409),s=e(8296),u="String Iterator",c=i.set,f=i.getterFor(u);a(String,"String",(function(t){c(this,{type:u,string:o(t),index:0})}),(function(){var t,r=f(this),e=r.string,o=r.index;return o>=e.length?s(void 0,!0):(t=n(e,o),r.index+=t.length,s(t,!1))}))},6255:(t,r,e)=>{"use strict";var n=e(2368),o=e(779),i=e(3938),a=e(8406),s=e(3747),u=e(5362),c=e(1229),f=e(6457),l=e(7234),p=e(6793);o("match",(function(t,r,e){return[function(r){var e=c(this),o=a(r)?void 0:f(r,t);return o?n(o,r,e):new RegExp(r)[t](u(e))},function(t){var n=i(this),o=u(t),a=e(r,n,o);if(a.done)return a.value;if(!n.global)return p(n,o);var c=n.unicode;n.lastIndex=0;for(var f,h=[],v=0;null!==(f=p(n,o));){var g=u(f[0]);h[v]=g,""===g&&(n.lastIndex=l(o,s(n.lastIndex),c)),v++}return 0===v?null:h}]}))},8825:(t,r,e)=>{"use strict";var n=e(1605),o=e(5214).start;n({target:"String",proto:!0,forced:e(7046)},{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},173:(t,r,e)=>{"use strict";var n=e(9070),o=e(2368),i=e(281),a=e(779),s=e(2074),u=e(3938),c=e(8420),f=e(8406),l=e(9328),p=e(3747),h=e(5362),v=e(1229),g=e(7234),d=e(6457),y=e(4433),m=e(6793),b=e(1602)("replace"),x=Math.max,S=Math.min,w=i([].concat),O=i([].push),E=i("".indexOf),P=i("".slice),A="$0"==="a".replace(/./,"$0"),I=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(t,r,e){var i=I?"$":"$0";return[function(t,e){var n=v(this),i=f(t)?void 0:d(t,b);return i?o(i,t,n,e):o(r,h(n),t,e)},function(t,o){var a=u(this),s=h(t);if("string"==typeof o&&-1===E(o,i)&&-1===E(o,"$<")){var f=e(r,a,s,o);if(f.done)return f.value}var v=c(o);v||(o=h(o));var d=a.global;if(d){var b=a.unicode;a.lastIndex=0}for(var A=[];;){var I=m(a,s);if(null===I)break;if(O(A,I),!d)break;""===h(I[0])&&(a.lastIndex=g(s,p(a.lastIndex),b))}for(var R,j="",k=0,L=0;L=k&&(j+=P(s,k,U)+_,k=U+T.length)}return j+P(s,k)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}))||!A||I)},785:(t,r,e)=>{"use strict";var n=e(2368),o=e(779),i=e(3938),a=e(8406),s=e(1229),u=e(4741),c=e(5362),f=e(6457),l=e(6793);o("search",(function(t,r,e){return[function(r){var e=s(this),o=a(r)?void 0:f(r,t);return o?n(o,r,e):new RegExp(r)[t](c(e))},function(t){var n=i(this),o=c(t),a=e(r,n,o);if(a.done)return a.value;var s=n.lastIndex;u(s,0)||(n.lastIndex=0);var f=l(n,o);return u(n.lastIndex,s)||(n.lastIndex=s),null===f?-1:f.index}]}))},8329:(t,r,e)=>{"use strict";var n=e(1605),o=e(9163).trim;n({target:"String",proto:!0,forced:e(9233)("trim")},{trim:function(){return o(this)}})},7896:(t,r,e)=>{"use strict";var n=e(1605),o=e(200),i=e(2368),a=e(281),s=e(6926),u=e(5077),c=e(2072),f=e(2074),l=e(6490),p=e(7658),h=e(3938),v=e(5476),g=e(6032),d=e(5362),y=e(6843),m=e(3105),b=e(1641),x=e(4789),S=e(6509),w=e(8916),O=e(7632),E=e(3610),P=e(5318),A=e(9304),I=e(7485),R=e(6477),j=e(2),k=e(5904),L=e(7708),T=e(665),U=e(1602),F=e(802),C=e(6100),M=e(8237),N=e(5282),_=e(9206),D=e(1344).forEach,B=k("hidden"),H="Symbol",q="prototype",$=_.set,G=_.getterFor(H),z=Object[q],V=o.Symbol,W=V&&V[q],Y=o.TypeError,K=o.QObject,J=O.f,X=E.f,Q=S.f,Z=A.f,tt=a([].push),rt=j("symbols"),et=j("op-symbols"),nt=j("wks"),ot=!K||!K[q]||!K[q].findChild,it=u&&f((function(){return 7!=m(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=J(z,r);n&&delete z[r],X(t,r,e),n&&t!==z&&X(z,r,n)}:X,at=function(t,r){var e=rt[t]=m(W);return $(e,{type:H,tag:t,description:r}),u||(e.description=r),e},st=function(t,r,e){t===z&&st(et,r,e),h(t);var n=g(r);return h(e),l(rt,n)?(e.enumerable?(l(t,B)&&t[B][n]&&(t[B][n]=!1),e=m(e,{enumerable:y(0,!1)})):(l(t,B)||X(t,B,y(1,{})),t[B][n]=!0),it(t,n,e)):X(t,n,e)},ut=function(t,r){h(t);var e=v(r),n=b(e).concat(pt(e));return D(n,(function(r){u&&!i(ct,e,r)||st(t,r,e[r])})),t},ct=function(t){var r=g(t),e=i(Z,this,r);return!(this===z&&l(rt,r)&&!l(et,r))&&(!(e||!l(this,r)||!l(rt,r)||l(this,B)&&this[B][r])||e)},ft=function(t,r){var e=v(t),n=g(r);if(e!==z||!l(rt,n)||l(et,n)){var o=J(e,n);return!o||!l(rt,n)||l(e,B)&&e[B][n]||(o.enumerable=!0),o}},lt=function(t){var r=Q(v(t)),e=[];return D(r,(function(t){l(rt,t)||l(L,t)||tt(e,t)})),e},pt=function(t){var r=t===z,e=Q(r?et:v(t)),n=[];return D(e,(function(t){!l(rt,t)||r&&!l(z,t)||tt(n,rt[t])})),n};c||(I(W=(V=function(){if(p(W,this))throw Y("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?d(arguments[0]):void 0,r=T(t),e=function(t){this===z&&i(e,et,t),l(this,B)&&l(this[B],r)&&(this[B][r]=!1),it(this,r,y(1,t))};return u&&ot&&it(z,r,{configurable:!0,set:e}),at(r,t)})[q],"toString",(function(){return G(this).tag})),I(V,"withoutSetter",(function(t){return at(T(t),t)})),A.f=ct,E.f=st,P.f=ut,O.f=ft,x.f=S.f=lt,w.f=pt,F.f=function(t){return at(U(t),t)},u&&(R(W,"description",{configurable:!0,get:function(){return G(this).description}}),s||I(z,"propertyIsEnumerable",ct,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:V}),D(b(nt),(function(t){C(t)})),n({target:H,stat:!0,forced:!c},{useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,r){return void 0===r?m(t):ut(m(t),r)},defineProperty:st,defineProperties:ut,getOwnPropertyDescriptor:ft}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:lt}),M(),N(V,H),L[B]=!0},590:(t,r,e)=>{"use strict";var n=e(1605),o=e(5077),i=e(200),a=e(281),s=e(6490),u=e(8420),c=e(7658),f=e(5362),l=e(6477),p=e(4361),h=i.Symbol,v=h&&h.prototype;if(o&&u(h)&&(!("description"in v)||void 0!==h().description)){var g={},d=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),r=c(v,this)?new h(t):void 0===t?h():h(t);return""===t&&(g[r]=!0),r};p(d,h),d.prototype=v,v.constructor=d;var y="Symbol(test)"==String(h("test")),m=a(v.valueOf),b=a(v.toString),x=/^Symbol\((.*)\)[^)]+$/,S=a("".replace),w=a("".slice);l(v,"description",{configurable:!0,get:function(){var t=m(this);if(s(g,t))return"";var r=b(t),e=y?w(r,7,-1):S(r,x,"$1");return""===e?void 0:e}}),n({global:!0,constructor:!0,forced:!0},{Symbol:d})}},3883:(t,r,e)=>{var n=e(1605),o=e(6492),i=e(6490),a=e(5362),s=e(2),u=e(4569),c=s("string-to-symbol-registry"),f=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{for:function(t){var r=a(t);if(i(c,r))return c[r];var e=o("Symbol")(r);return c[r]=e,f[e]=r,e}})},4216:(t,r,e)=>{e(6100)("iterator")},3534:(t,r,e)=>{e(7896),e(3883),e(5245),e(959),e(1074)},5245:(t,r,e)=>{var n=e(1605),o=e(6490),i=e(2328),a=e(3838),s=e(2),u=e(4569),c=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!i(t))throw TypeError(a(t)+" is not a symbol");if(o(c,t))return c[t]}})},8379:(t,r,e)=>{var n=e(200),o=e(5549),i=e(2975),a=e(516),s=e(7712),u=function(t){if(t&&t.forEach!==a)try{s(t,"forEach",a)}catch(r){t.forEach=a}};for(var c in o)o[c]&&u(n[c]&&n[c].prototype);u(i)},4602:(t,r,e)=>{var n=e(200),o=e(5549),i=e(2975),a=e(8665),s=e(7712),u=e(1602),c=u("iterator"),f=u("toStringTag"),l=a.values,p=function(t,r){if(t){if(t[c]!==l)try{s(t,c,l)}catch(r){t[c]=l}if(t[f]||s(t,f,r),o[r])for(var e in a)if(t[e]!==a[e])try{s(t,e,a[e])}catch(r){t[e]=a[e]}}};for(var h in o)p(n[h]&&n[h].prototype,h);p(i,"DOMTokenList")},2776:(t,r,e)=>{var n=e(1605),o=e(200),i=e(8827)(o.setInterval,!0);n({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},538:(t,r,e)=>{var n=e(1605),o=e(200),i=e(8827)(o.setTimeout,!0);n({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},8772:(t,r,e)=>{e(2776),e(538)},7895:(t,r,e)=>{"use strict";e(8665);var n=e(1605),o=e(200),i=e(2368),a=e(281),s=e(5077),u=e(9557),c=e(7485),f=e(6477),l=e(2760),p=e(5282),h=e(8287),v=e(9206),g=e(5190),d=e(8420),y=e(6490),m=e(6885),b=e(3062),x=e(3938),S=e(5335),w=e(5362),O=e(3105),E=e(6843),P=e(9526),A=e(1898),I=e(6589),R=e(1602),j=e(8039),k=R("iterator"),L="URLSearchParams",T=L+"Iterator",U=v.set,F=v.getterFor(L),C=v.getterFor(T),M=Object.getOwnPropertyDescriptor,N=function(t){if(!s)return o[t];var r=M(o,t);return r&&r.value},_=N("fetch"),D=N("Request"),B=N("Headers"),H=D&&D.prototype,q=B&&B.prototype,$=o.RegExp,G=o.TypeError,z=o.decodeURIComponent,V=o.encodeURIComponent,W=a("".charAt),Y=a([].join),K=a([].push),J=a("".replace),X=a([].shift),Q=a([].splice),Z=a("".split),tt=a("".slice),rt=/\+/g,et=Array(4),nt=function(t){return et[t-1]||(et[t-1]=$("((?:%[\\da-f]{2}){"+t+"})","gi"))},ot=function(t){try{return z(t)}catch(r){return t}},it=function(t){var r=J(t,rt," "),e=4;try{return z(r)}catch(t){for(;e;)r=J(r,nt(e--),ot);return r}},at=/[!'()~]|%20/g,st={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ut=function(t){return st[t]},ct=function(t){return J(V(t),at,ut)},ft=h((function(t,r){U(this,{type:T,iterator:P(F(t).entries),kind:r})}),"Iterator",(function(){var t=C(this),r=t.kind,e=t.iterator.next(),n=e.value;return e.done||(e.value="keys"===r?n.key:"values"===r?n.value:[n.key,n.value]),e}),!0),lt=function(t){this.entries=[],this.url=null,void 0!==t&&(S(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===W(t,0)?tt(t,1):t:w(t)))};lt.prototype={type:L,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var r,e,n,o,a,s,u,c=A(t);if(c)for(e=(r=P(t,c)).next;!(n=i(e,r)).done;){if(a=(o=P(x(n.value))).next,(s=i(a,o)).done||(u=i(a,o)).done||!i(a,o).done)throw G("Expected sequence with length 2");K(this.entries,{key:w(s.value),value:w(u.value)})}else for(var f in t)y(t,f)&&K(this.entries,{key:f,value:w(t[f])})},parseQuery:function(t){if(t)for(var r,e,n=Z(t,"&"),o=0;o0?arguments[0]:void 0));s||(this.length=t.entries.length)},ht=pt.prototype;if(l(ht,{append:function(t,r){I(arguments.length,2);var e=F(this);K(e.entries,{key:w(t),value:w(r)}),s||this.length++,e.updateURL()},delete:function(t){I(arguments.length,1);for(var r=F(this),e=r.entries,n=w(t),o=0;or.key?1:-1})),t.updateURL()},forEach:function(t){for(var r,e=F(this).entries,n=m(t,arguments.length>1?arguments[1]:void 0),o=0;o1?dt(arguments[1]):{})}}),d(D)){var yt=function(t){return g(this,H),new D(t,arguments.length>1?dt(arguments[1]):{})};H.constructor=yt,yt.prototype=H,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:yt})}}t.exports={URLSearchParams:pt,getState:F}},933:(t,r,e)=>{e(7895)},5847:(t,r,e)=>{"use strict";e(9979);var n,o=e(1605),i=e(5077),a=e(9557),s=e(200),u=e(6885),c=e(281),f=e(7485),l=e(6477),p=e(5190),h=e(6490),v=e(1688),g=e(1027),d=e(6056),y=e(7804).codeAt,m=e(3150),b=e(5362),x=e(5282),S=e(6589),w=e(7895),O=e(9206),E=O.set,P=O.getterFor("URL"),A=w.URLSearchParams,I=w.getState,R=s.URL,j=s.TypeError,k=s.parseInt,L=Math.floor,T=Math.pow,U=c("".charAt),F=c(/./.exec),C=c([].join),M=c(1..toString),N=c([].pop),_=c([].push),D=c("".replace),B=c([].shift),H=c("".split),q=c("".slice),$=c("".toLowerCase),G=c([].unshift),z="Invalid scheme",V="Invalid host",W="Invalid port",Y=/[a-z]/i,K=/[\d+-.a-z]/i,J=/\d/,X=/^0x/i,Q=/^[0-7]+$/,Z=/^\d+$/,tt=/^[\da-f]+$/i,rt=/[\0\t\n\r #%/:<>?@[\\\]^|]/,et=/[\0\t\n\r #/:<>?@[\\\]^|]/,nt=/^[\u0000-\u0020]+/,ot=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,it=/[\t\n\r]/g,at=function(t){var r,e,n,o;if("number"==typeof t){for(r=[],e=0;e<4;e++)G(r,t%256),t=L(t/256);return C(r,".")}if("object"==typeof t){for(r="",n=function(t){for(var r=null,e=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>e&&(r=n,e=o),n=null,o=0):(null===n&&(n=i),++o);return o>e&&(r=n,e=o),r}(t),e=0;e<8;e++)o&&0===t[e]||(o&&(o=!1),n===e?(r+=e?":":"::",o=!0):(r+=M(t[e],16),e<7&&(r+=":")));return"["+r+"]"}return t},st={},ut=v({},st,{" ":1,'"':1,"<":1,">":1,"`":1}),ct=v({},ut,{"#":1,"?":1,"{":1,"}":1}),ft=v({},ct,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),lt=function(t,r){var e=y(t,0);return e>32&&e<127&&!h(r,t)?t:encodeURIComponent(t)},pt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ht=function(t,r){var e;return 2==t.length&&F(Y,U(t,0))&&(":"==(e=U(t,1))||!r&&"|"==e)},vt=function(t){var r;return t.length>1&&ht(q(t,0,2))&&(2==t.length||"/"===(r=U(t,2))||"\\"===r||"?"===r||"#"===r)},gt=function(t){return"."===t||"%2e"===$(t)},dt={},yt={},mt={},bt={},xt={},St={},wt={},Ot={},Et={},Pt={},At={},It={},Rt={},jt={},kt={},Lt={},Tt={},Ut={},Ft={},Ct={},Mt={},Nt=function(t,r,e){var n,o,i,a=b(t);if(r){if(o=this.parse(a))throw j(o);this.searchParams=null}else{if(void 0!==e&&(n=new Nt(e,!0)),o=this.parse(a,null,n))throw j(o);(i=I(new A)).bindURL(this),this.searchParams=i}};Nt.prototype={type:"URL",parse:function(t,r,e){var o,i,a,s,u,c=this,f=r||dt,l=0,p="",v=!1,y=!1,m=!1;for(t=b(t),r||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=D(t,nt,""),t=D(t,ot,"$1")),t=D(t,it,""),o=g(t);l<=o.length;){switch(i=o[l],f){case dt:if(!i||!F(Y,i)){if(r)return z;f=mt;continue}p+=$(i),f=yt;break;case yt:if(i&&(F(K,i)||"+"==i||"-"==i||"."==i))p+=$(i);else{if(":"!=i){if(r)return z;p="",f=mt,l=0;continue}if(r&&(c.isSpecial()!=h(pt,p)||"file"==p&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=p,r)return void(c.isSpecial()&&pt[c.scheme]==c.port&&(c.port=null));p="","file"==c.scheme?f=jt:c.isSpecial()&&e&&e.scheme==c.scheme?f=bt:c.isSpecial()?f=Ot:"/"==o[l+1]?(f=xt,l++):(c.cannotBeABaseURL=!0,_(c.path,""),f=Ft)}break;case mt:if(!e||e.cannotBeABaseURL&&"#"!=i)return z;if(e.cannotBeABaseURL&&"#"==i){c.scheme=e.scheme,c.path=d(e.path),c.query=e.query,c.fragment="",c.cannotBeABaseURL=!0,f=Mt;break}f="file"==e.scheme?jt:St;continue;case bt:if("/"!=i||"/"!=o[l+1]){f=St;continue}f=Et,l++;break;case xt:if("/"==i){f=Pt;break}f=Ut;continue;case St:if(c.scheme=e.scheme,i==n)c.username=e.username,c.password=e.password,c.host=e.host,c.port=e.port,c.path=d(e.path),c.query=e.query;else if("/"==i||"\\"==i&&c.isSpecial())f=wt;else if("?"==i)c.username=e.username,c.password=e.password,c.host=e.host,c.port=e.port,c.path=d(e.path),c.query="",f=Ct;else{if("#"!=i){c.username=e.username,c.password=e.password,c.host=e.host,c.port=e.port,c.path=d(e.path),c.path.length--,f=Ut;continue}c.username=e.username,c.password=e.password,c.host=e.host,c.port=e.port,c.path=d(e.path),c.query=e.query,c.fragment="",f=Mt}break;case wt:if(!c.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){c.username=e.username,c.password=e.password,c.host=e.host,c.port=e.port,f=Ut;continue}f=Pt}else f=Et;break;case Ot:if(f=Et,"/"!=i||"/"!=U(p,l+1))continue;l++;break;case Et:if("/"!=i&&"\\"!=i){f=Pt;continue}break;case Pt:if("@"==i){v&&(p="%40"+p),v=!0,a=g(p);for(var x=0;x65535)return W;c.port=c.isSpecial()&&O===pt[c.scheme]?null:O,p=""}if(r)return;f=Tt;continue}return W}p+=i;break;case jt:if(c.scheme="file","/"==i||"\\"==i)f=kt;else{if(!e||"file"!=e.scheme){f=Ut;continue}if(i==n)c.host=e.host,c.path=d(e.path),c.query=e.query;else if("?"==i)c.host=e.host,c.path=d(e.path),c.query="",f=Ct;else{if("#"!=i){vt(C(d(o,l),""))||(c.host=e.host,c.path=d(e.path),c.shortenPath()),f=Ut;continue}c.host=e.host,c.path=d(e.path),c.query=e.query,c.fragment="",f=Mt}}break;case kt:if("/"==i||"\\"==i){f=Lt;break}e&&"file"==e.scheme&&!vt(C(d(o,l),""))&&(ht(e.path[0],!0)?_(c.path,e.path[0]):c.host=e.host),f=Ut;continue;case Lt:if(i==n||"/"==i||"\\"==i||"?"==i||"#"==i){if(!r&&ht(p))f=Ut;else if(""==p){if(c.host="",r)return;f=Tt}else{if(s=c.parseHost(p))return s;if("localhost"==c.host&&(c.host=""),r)return;p="",f=Tt}continue}p+=i;break;case Tt:if(c.isSpecial()){if(f=Ut,"/"!=i&&"\\"!=i)continue}else if(r||"?"!=i)if(r||"#"!=i){if(i!=n&&(f=Ut,"/"!=i))continue}else c.fragment="",f=Mt;else c.query="",f=Ct;break;case Ut:if(i==n||"/"==i||"\\"==i&&c.isSpecial()||!r&&("?"==i||"#"==i)){if(".."===(u=$(u=p))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(c.shortenPath(),"/"==i||"\\"==i&&c.isSpecial()||_(c.path,"")):gt(p)?"/"==i||"\\"==i&&c.isSpecial()||_(c.path,""):("file"==c.scheme&&!c.path.length&&ht(p)&&(c.host&&(c.host=""),p=U(p,0)+":"),_(c.path,p)),p="","file"==c.scheme&&(i==n||"?"==i||"#"==i))for(;c.path.length>1&&""===c.path[0];)B(c.path);"?"==i?(c.query="",f=Ct):"#"==i&&(c.fragment="",f=Mt)}else p+=lt(i,ct);break;case Ft:"?"==i?(c.query="",f=Ct):"#"==i?(c.fragment="",f=Mt):i!=n&&(c.path[0]+=lt(i,st));break;case Ct:r||"#"!=i?i!=n&&("'"==i&&c.isSpecial()?c.query+="%27":c.query+="#"==i?"%23":lt(i,st)):(c.fragment="",f=Mt);break;case Mt:i!=n&&(c.fragment+=lt(i,ut))}l++}},parseHost:function(t){var r,e,n;if("["==U(t,0)){if("]"!=U(t,t.length-1))return V;if(r=function(t){var r,e,n,o,i,a,s,u=[0,0,0,0,0,0,0,0],c=0,f=null,l=0,p=function(){return U(t,l)};if(":"==p()){if(":"!=U(t,1))return;l+=2,f=++c}for(;p();){if(8==c)return;if(":"!=p()){for(r=e=0;e<4&&F(tt,p());)r=16*r+k(p(),16),l++,e++;if("."==p()){if(0==e)return;if(l-=e,c>6)return;for(n=0;p();){if(o=null,n>0){if(!("."==p()&&n<4))return;l++}if(!F(J,p()))return;for(;F(J,p());){if(i=k(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}u[c]=256*u[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==p()){if(l++,!p())return}else if(p())return;u[c++]=r}else{if(null!==f)return;l++,f=++c}}if(null!==f)for(a=c-f,c=7;0!=c&&a>0;)s=u[c],u[c--]=u[f+a-1],u[f+--a]=s;else if(8!=c)return;return u}(q(t,1,-1)),!r)return V;this.host=r}else if(this.isSpecial()){if(t=m(t),F(rt,t))return V;if(r=function(t){var r,e,n,o,i,a,s,u=H(t,".");if(u.length&&""==u[u.length-1]&&u.length--,(r=u.length)>4)return t;for(e=[],n=0;n1&&"0"==U(o,0)&&(i=F(X,o)?16:8,o=q(o,8==i?1:2)),""===o)a=0;else{if(!F(10==i?Z:8==i?Q:tt,o))return t;a=k(o,i)}_(e,a)}for(n=0;n=T(256,5-r))return null}else if(a>255)return null;for(s=N(e),n=0;n1?arguments[1]:void 0,n=E(r,new Nt(t,!1,e));i||(r.href=n.serialize(),r.origin=n.getOrigin(),r.protocol=n.getProtocol(),r.username=n.getUsername(),r.password=n.getPassword(),r.host=n.getHost(),r.hostname=n.getHostname(),r.port=n.getPort(),r.pathname=n.getPathname(),r.search=n.getSearch(),r.searchParams=n.getSearchParams(),r.hash=n.getHash())},Dt=_t.prototype,Bt=function(t,r){return{get:function(){return P(this)[t]()},set:r&&function(t){return P(this)[r](t)},configurable:!0,enumerable:!0}};if(i&&(l(Dt,"href",Bt("serialize","setHref")),l(Dt,"origin",Bt("getOrigin")),l(Dt,"protocol",Bt("getProtocol","setProtocol")),l(Dt,"username",Bt("getUsername","setUsername")),l(Dt,"password",Bt("getPassword","setPassword")),l(Dt,"host",Bt("getHost","setHost")),l(Dt,"hostname",Bt("getHostname","setHostname")),l(Dt,"port",Bt("getPort","setPort")),l(Dt,"pathname",Bt("getPathname","setPathname")),l(Dt,"search",Bt("getSearch","setSearch")),l(Dt,"searchParams",Bt("getSearchParams")),l(Dt,"hash",Bt("getHash","setHash"))),f(Dt,"toJSON",(function(){return P(this).serialize()}),{enumerable:!0}),f(Dt,"toString",(function(){return P(this).serialize()}),{enumerable:!0}),R){var Ht=R.createObjectURL,qt=R.revokeObjectURL;Ht&&f(_t,"createObjectURL",u(Ht,R)),qt&&f(_t,"revokeObjectURL",u(qt,R))}x(_t,"URL"),o({global:!0,constructor:!0,forced:!a,sham:!i},{URL:_t})},789:(t,r,e)=>{e(5847)}}]); \ No newline at end of file diff --git a/public/build/app.f6e6f244.js b/public/build/app.f6e6f244.js new file mode 100644 index 000000000..66d821abd --- /dev/null +++ b/public/build/app.f6e6f244.js @@ -0,0 +1,2 @@ +/*! For license information please see app.f6e6f244.js.LICENSE.txt */ +(self.webpackChunkxtools=self.webpackChunkxtools||[]).push([[524],{3441:()=>{xtools.adminstats={},$((function(){var t=$("#project_input"),e=t.val();0!==$("body.adminstats, body.patrollerstats, body.stewardstats").length&&(xtools.application.setupMultiSelectListeners(),$(".group-selector").on("change",(function(){$(".action-selector").addClass("hidden"),$(".action-selector--"+$(this).val()).removeClass("hidden"),$(".xt-page-title--title").text($.i18n("tool-"+$(this).val()+"stats")),$(".xt-page-title--desc").text($.i18n("tool-"+$(this).val()+"stats-desc"));var n=$.i18n("tool-"+$(this).val()+"stats")+" - "+$.i18n("xtools-title");document.title=n,history.replaceState({},n,"/"+$(this).val()+"stats"),"steward"===$(this).val()?(e=t.val(),t.val("meta.wikimedia.org")):t.val(e),xtools.application.setupMultiSelectListeners()})))}))},9654:(t,e,n)=>{n(8636),n(5086),$((function(){if($("body.authorship").length){var t=$("#show_selector");t.on("change",(function(t){$(".show-option").addClass("hidden").find("input").prop("disabled",!0),$(".show-option--".concat(t.target.value)).removeClass("hidden").find("input").prop("disabled",!1)})),window.onload=function(){return t.trigger("change")}}}))},5611:(t,e,n)=>{n(8476),n(5086),n(8379),n(7899),n(2231),n(115),xtools.autoedits={},$((function(){if($("body.autoedits").length){var t=$(".contributions-container"),e=$("#tool_selector");if(e.length)return xtools.autoedits.fetchTools=function(t){e.prop("disabled",!0),$.get("/api/project/automated_tools/"+t).done((function(t){t.error||(delete t.project,delete t.elapsed_time,e.html('"),Object.keys(t).forEach((function(n){e.append('")}))),e.prop("disabled",!1)}))},$(document).ready((function(){$("#project_input").on("change.autoedits",(function(){xtools.autoedits.fetchTools($("#project_input").val())}))})),void xtools.autoedits.fetchTools($("#project_input").val());if(xtools.application.setupToggleTable(window.countsByTool,window.toolsChart,"count",(function(t){var e=0;Object.keys(t).forEach((function(n){e+=parseInt(t[n].count,10)}));var n=Object.keys(t).length;$(".tools--tools").text(n.toLocaleString(i18nLang)+" "+$.i18n("num-tools",n)),$(".tools--count").text(e.toLocaleString(i18nLang))})),t.length){var n=$(".contributions-table").length?"setupContributionsNavListeners":"loadContributions";xtools.application[n]((function(t){return"".concat(t.target,"-contributions/").concat(t.project,"/").concat(t.username)+"/".concat(t.namespace,"/").concat(t.start,"/").concat(t.end)}),t.data("target"))}}}))},3600:(t,e,n)=>{n(7136),n(173),n(9073),n(6048),n(8636),n(5086),xtools.blame={},$((function(){if($("body.blame").length){$(".diff-empty").length===$(".diff tr").length-1&&$(".diff-empty").eq(0).text("(".concat($.i18n("diff-empty").toLowerCase(),")")).addClass("text-muted text-center").prop("width","20%"),$(".diff-addedline").each((function(){var t=xtools.blame.query.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),e=function(e){var n=new RegExp("(".concat(t,")"),"gi");$(e).html($(e).html().replace(n,"$1"))};$(this).find(".diffchange-inline").length?$(".diffchange-inline").each((function(){e(this)})):e(this)}));var t=$("#show_selector");t.on("change",(function(t){$(".show-option").addClass("hidden").find("input").prop("disabled",!0),$(".show-option--".concat(t.target.value)).removeClass("hidden").find("input").prop("disabled",!1)})),window.onload=function(){return t.trigger("change")}}}))},514:(t,e,n)=>{function o(t,e){xtools.categoryedits.$select2Input.data("select2")&&(xtools.categoryedits.$select2Input.off("change"),xtools.categoryedits.$select2Input.select2("val",null),xtools.categoryedits.$select2Input.select2("data",null),xtools.categoryedits.$select2Input.select2("destroy"));var n=e||xtools.categoryedits.$select2Input.data("ns"),o={ajax:{url:t||xtools.categoryedits.$select2Input.data("api"),dataType:"jsonp",jsonpCallback:"categorySuggestionCallback",delay:200,data:function(t){return{action:"query",list:"prefixsearch",format:"json",pssearch:t.term||"",psnamespace:14,cirrusUseCompletionSuggester:"yes"}},processResults:function(t){var e=t?t.query:{},o=[];return e&&e.prefixsearch.length&&(o=e.prefixsearch.map((function(t){var e=t.title.replace(new RegExp("^"+n+":"),"");return{id:e.score(),text:e}}))),{results:o}}},placeholder:$.i18n("category-search"),maximumSelectionLength:10,minimumInputLength:1};xtools.categoryedits.$select2Input.select2(o)}n(475),n(8476),n(5086),n(8379),n(7899),n(2231),n(9581),n(7136),n(173),n(9073),n(6048),xtools.categoryedits={},$((function(){$("body.categoryedits").length&&$(document).ready((function(){var t;xtools.categoryedits.$select2Input=$("#category_selector"),o(),$("#project_input").on("xtools.projectLoaded",(function(t,e){$.get(xtBaseUrl+"api/project/namespaces/"+e.project).done((function(t){o(t.api,t.namespaces[14])}))})),$("form").on("submit",(function(){$("#category_input").val(xtools.categoryedits.$select2Input.val().join("|"))})),xtools.application.setupToggleTable(window.countsByCategory,window.categoryChart,"editCount",(function(t){var e=0,n=0;Object.keys(t).forEach((function(o){e+=parseInt(t[o].editCount,10),n+=parseInt(t[o].pageCount,10)}));var o=Object.keys(t).length;$(".category--category").text(o.toLocaleString(i18nLang)+" "+$.i18n("num-categories",o)),$(".category--count").text(e.toLocaleString(i18nLang)),$(".category--percent-of-edit-count").text(100*(e/xtools.categoryedits.userEditCount).toLocaleString(i18nLang)+"%"),$(".category--pages").text(n.toLocaleString(i18nLang))})),$(".contributions-container").length&&(t=$(".contributions-table").length?"setupContributionsNavListeners":"loadContributions",xtools.application[t]((function(t){return"categoryedits-contributions/"+t.project+"/"+t.username+"/"+t.categories+"/"+t.start+"/"+t.end}),"Category"))}))}))},5779:(t,e,n)=>{function o(t){$("#project_input").val(xtools.application.vars.lastProject),$(".site-notice").append("")}function a(){var t=$("#page_input"),e=$("#user_input"),n=$("#namespace_select");if(t[0]||e[0]||$("#project_input")[0]){t.data("typeahead")&&t.data("typeahead").destroy(),e.data("typeahead")&&e.data("typeahead").destroy(),xtools.application.vars.apiPath||(xtools.application.vars.apiPath=$("#page_input").data("api")||$("#user_input").data("api"));var o={url:xtools.application.vars.apiPath,timeout:200,triggerLength:1,method:"get",preDispatch:null,preProcess:null};t[0]&&t.typeahead({ajax:Object.assign(o,{preDispatch:function(t){n[0]&&"0"!==n.val()&&(t=n.find("option:selected").text().trim()+":"+t);return{action:"query",list:"prefixsearch",format:"json",pssearch:t}},preProcess:function(t){var e="";return n[0]&&"0"!==n.val()&&(e=n.find("option:selected").text().trim()),t.query.prefixsearch.map((function(t){return t.title.replace(new RegExp("^"+e+":"),"")}))}})}),e[0]&&e.typeahead({ajax:Object.assign(o,{preDispatch:function(t){return{action:"query",list:"prefixsearch",format:"json",pssearch:"User:"+t}},preProcess:function(t){return t.query.prefixsearch.map((function(t){return t.title.split("/")[0].substr(t.title.indexOf(":")+1)})).filter((function(t,e,n){return n.indexOf(t)===e}))}})})}}function i(t){t?($(".form-control").prop("readonly",!1),$(".form-submit").prop("disabled",!1),$(".form-submit").text($.i18n("submit")).prop("disabled",!1)):$("#content form").on("submit",(function(){document.activeElement.blur(),$(".form-control").prop("readonly",!0),$(".form-submit").prop("disabled",!0).html($.i18n("loading")+" ");var t=Date.now();setInterval((function(){var e=Math.round((Date.now()-t)/1e3),n=Math.floor(e/60),o=("00"+(e-60*n)).slice(-2);$("#submit_timer").text(n+":"+o)}),1e3)}))}n(8665),n(5086),n(9979),n(4602),n(789),n(933),n(9218),n(2231),n(8636),n(5231),n(6088),n(8476),n(8379),n(7899),n(4189),n(8329),n(9581),n(7136),n(173),n(9073),n(6048),n(9693),n(17),n(9560),n(9389),n(8772),n(4913),xtools={},xtools.application={},xtools.application.vars={sectionOffset:{}},xtools.application.chartGridColor="rgba(0, 0, 0, 0.1)",window.matchMedia("(prefers-color-scheme: dark)").matches&&(Chart.defaults.global.defaultFontColor="#AAA",xtools.application.chartGridColor="#333"),$.i18n({locale:i18nLang}).load(i18nPaths),$((function(){$(document).ready((function(){if($(".xt-hide").on("click",(function(){$(this).hide(),$(this).siblings(".xt-show").show(),$(this).parents(".panel-heading").length?$(this).parents(".panel-heading").siblings(".panel-body").hide():$(this).parents(".xt-show-hide--parent").next(".xt-show-hide--target").hide()})),$(".xt-show").on("click",(function(){$(this).hide(),$(this).siblings(".xt-hide").show(),$(this).parents(".panel-heading").length?$(this).parents(".panel-heading").siblings(".panel-body").show():$(this).parents(".xt-show-hide--parent").next(".xt-show-hide--target").show()})),function(){var t=$(window).width(),e=$(".tool-links").outerWidth(),n=$(".nav-buttons").outerWidth();if(t<768)return;e+n>t&&$(".tool-links--more").removeClass("hidden");var o=$(".tool-links--entry").length;for(;o>0&&e+n>t;){var a=$(".tool-links--nav > .tool-links--entry:not(.active)").last().remove();$(".tool-links--more .dropdown-menu").append(a),e=$(".tool-links").outerWidth(),o--}}(),xtools.application.setupColumnSorting(),function(){var t=$(".xt-toc");if(!t||!t[0])return;xtools.application.vars.tocHeight=t.height();var e=function(){$(".xt-toc").find("a").off("click").on("click",(function(t){document.activeElement.blur();var e=$("#"+$(t.target).data("section"));$(window).scrollTop(e.offset().top-xtools.application.vars.tocHeight),$(this).parents(".xt-toc").find("a").removeClass("bold"),n(),xtools.application.vars.$tocClone.addClass("bold")}))};xtools.application.setupTocListeners=e;var n=function(){xtools.application.vars.$tocClone||(xtools.application.vars.$tocClone=t.clone(),xtools.application.vars.$tocClone.addClass("fixed"),t.after(xtools.application.vars.$tocClone),e())};xtools.application.buildSectionOffsets=function(){$.each(t.find("a"),(function(t,e){var n=$(e).data("section");xtools.application.vars.sectionOffset[n]=$("#"+n).offset().top}))},$(".xt-show, .xt-hide").on("click",xtools.application.buildSectionOffsets),xtools.application.buildSectionOffsets(),e();var o=t.offset().top;$(window).on("scroll.toc",(function(t){var e,a=$(t.target).scrollTop(),i=a>o;i?(xtools.application.vars.$tocClone||n(),Object.keys(xtools.application.vars.sectionOffset).forEach((function(t){a>xtools.application.vars.sectionOffset[t]-xtools.application.vars.tocHeight-1&&(e=xtools.application.vars.$tocClone.find('a[data-section="'+t+'"]'))})),xtools.application.vars.$tocClone.find("a").removeClass("bold"),e&&e.addClass("bold")):!i&&xtools.application.vars.$tocClone&&(xtools.application.vars.$tocClone.remove(),xtools.application.vars.$tocClone=null)}))}(),function(){var t=$(".table-sticky-header");if(!t||!t[0])return;var e,n=t.find("thead tr").eq(0),o=function(){e||(e=n.clone(),n.addClass("sticky-heading"),n.before(e),n.find("th").each((function(t){$(this).css("width",e.find("th").eq(t).outerWidth())})),n.css("width",e.outerWidth()+1))},a=t.offset().top;$(window).on("scroll.stickyHeader",(function(i){var r=$(i.target).scrollTop()>a;r&&!e?o():!r&&e?(n.removeClass("sticky-heading"),e.remove(),e=null):e&&n.css("top",$(window).scrollTop()-t.offset().top)}))}(),function(){var t=$("#project_input");if(!t)return;t.length&&$("#namespace_select").length?(xtools.application.vars.lastProject=$("#project_input").val(),$("#project_input").off("change").on("change",(function(){$("#namespace_select").prop("disabled",!0);var t=this.value;$.get(xtBaseUrl+"api/project/namespaces/"+t).done((function(e){var n=$('#namespace_select option[value="all"]').eq(0).clone();for(var o in $("#namespace_select").html(n),xtools.application.vars.apiPath=e.api,e.namespaces)if(e.namespaces.hasOwnProperty(o)){var i=0===parseInt(o,10)?$.i18n("mainspace"):e.namespaces[o];$("#namespace_select").append("")}$("#namespace_select").val(0),xtools.application.vars.lastProject=t,a()})).fail(o.bind(this,t)).always((function(){$("#namespace_select").prop("disabled",!1)}))})),$("#namespace_select").on("change",a)):($("#user_input")[0]||$("#page_input")[0])&&(xtools.application.vars.lastProject=t.val(),t.on("change",(function(){var e=this.value;$.get(xtBaseUrl+"api/project/normalize/"+e).done((function(n){xtools.application.vars.apiPath=n.api,xtools.application.vars.lastProject=e,a(),t.trigger("xtools.projectLoaded",n)})).fail(o.bind(this,e))})))}(),a(),i(),"function"==typeof URL){var t=new URL(window.location.href).searchParams.get("focus");t&&$("[name=".concat(t,"]")).focus()}})),window.onpageshow=function(t){t.persisted&&i(!0)}})),xtools.application.setupToggleTable=function(t,e,n,o){var a;$(".toggle-table").on("click",".toggle-table--toggle",(function(){a||(a=Object.assign({},t));var i=$(this).data("index"),r=$(this).data("key");"true"===$(this).attr("data-disabled")?(a[r]=t[r],e.data.datasets[0].data[i]=parseInt(n?a[r][n]:a[r],10),$(this).attr("data-disabled","false")):(delete a[r],e.data.datasets[0].data[i]=null,$(this).attr("data-disabled","true")),$(this).parents("tr").toggleClass("excluded"),$(this).find(".glyphicon").toggleClass("glyphicon-remove").toggleClass("glyphicon-plus"),o(a,r,i),e.update()}))},xtools.application.setupColumnSorting=function(){var t,e;$(".sort-link").on("click",(function(){t=e===$(this).data("column")?-t:1,$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var n=1===t?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";$(this).find(".glyphicon").addClass(n).removeClass("glyphicon-sort"),e=$(this).data("column");var o=$(this).parents("table"),a=o.find(".sort-entry--"+e).parent();a.length&&(a.sort((function(n,o){var a=$(n).find(".sort-entry--"+e).data("value")||0,i=$(o).find(".sort-entry--"+e).data("value")||0;return isNaN(a)||(a=parseFloat(a)||0),isNaN(i)||(i=parseFloat(i)||0),ai?-t:0})),$(".sort-entry--rank").length>0&&$.each(a,(function(t,e){$(e).find(".sort-entry--rank").text(t+1)})),o.find("tbody").html(a))}))},xtools.application.setupMultiSelectListeners=function(){var t=$(".multi-select--body:not(.hidden) .multi-select--option");t.on("change",(function(){$(".multi-select--all").prop("checked",$(".multi-select--body:not(.hidden) .multi-select--option:checked").length===t.length)})),$(".multi-select--all").on("click",(function(){t.prop("checked",$(this).prop("checked"))}))}},6618:(t,e,n)=>{function o(){xtools.application.vars.offset||(xtools.application.vars.initialOffset=$(".contributions-container").data("offset"),xtools.application.vars.offset=xtools.application.vars.initialOffset)}n(9218),n(2231),n(8665),n(5086),n(9979),n(4602),n(933),n(7136),n(785),n(9389),n(6048),n(9073),n(173),Object.assign(xtools.application.vars,{initialOffset:"",offset:"",prevOffsets:[],initialLoad:!1}),xtools.application.loadContributions=function(t,e){o();var n=$(".contributions-container"),a=$(".contributions-loading"),i=n.data(),r=t(i),s=parseInt(i.limit,10)||50,l=new URLSearchParams(window.location.search),u=xtBaseUrl+r+"/"+xtools.application.vars.offset,c=location.pathname.split("/")[1],d=u.split("/")[1];n.addClass("contributions-container--loading"),a.show(),l.set("limit",s.toString()),l.append("htmlonly","yes"),$.ajax({url:u+"?"+l.toString(),timeout:6e4}).always((function(){n.removeClass("contributions-container--loading"),a.hide()})).done((function(o){if(n.html(o).show(),xtools.application.setupContributionsNavListeners(t,e),xtools.application.vars.initialOffset||(xtools.application.vars.initialOffset=$(".contribs-row-date").first().data("value"),xtools.application.vars.initialLoad=!0),c!==d){var a=new RegExp("^/".concat(d,"/(.*)/"));u=u.replace(a,"/".concat(c,"/$1/"))}xtools.application.vars.initialLoad?xtools.application.vars.initialLoad=!1:(l.delete("htmlonly"),window.history.replaceState(null,document.title,u+"?"+l.toString()),n.parents(".panel")[0].scrollIntoView()),xtools.application.vars.offset"+i+"")).show()}))},xtools.application.setupContributionsNavListeners=function(t,e){o(),$(".contributions--prev").off("click").one("click",(function(n){n.preventDefault(),xtools.application.vars.offset=xtools.application.vars.prevOffsets.pop()||xtools.application.vars.initialOffset,xtools.application.loadContributions(t,e)})),$(".contributions--next").off("click").one("click",(function(n){n.preventDefault(),xtools.application.vars.offset&&xtools.application.vars.prevOffsets.push(xtools.application.vars.offset),xtools.application.vars.offset=$(".contribs-row-date").last().data("value"),xtools.application.loadContributions(t,e)})),$("#contributions_limit").on("change",(function(t){var e=parseInt(t.target.value,10);$(".contributions-container").data("limit",e),$(".contributions--prev-text").text($.i18n("pager-newer-n",e).capitalize()),$(".contributions--next-text").text($.i18n("pager-older-n",e).capitalize())}))}},9143:(t,e,n)=>{n(7136),n(173),n(17),n(5086),n(9693),n(5852),n(4913),String.prototype.descore=function(){return this.replace(/_/g," ")},String.prototype.score=function(){return this.replace(/ /g,"_")},String.prototype.escape=function(){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,(function(e){return t[e]}))},Array.prototype.unique=function(){return this.filter((function(t,e,n){return n.indexOf(t)===e}))},Object.defineProperty(String.prototype,"capitalize",{value:function(){return this.charAt(0).toUpperCase()+this.slice(1)},enumerable:!1})},9307:(t,e,n)=>{function o(t,e){var n=0,o=[];Object.keys(t).forEach((function(e){var a=parseInt(t[e],10);o.push(a),n+=a}));var i=Object.keys(t).length;$(".namespaces--namespaces").text(i.toLocaleString(i18nLang)+" "+$.i18n("num-namespaces",i)),$(".namespaces--count").text(n.toLocaleString(i18nLang)),o.forEach((function(t){var e=r(t,n);$(".namespaces-table .sort-entry--count[data-value="+t+"]").text(t.toLocaleString(i18nLang)+" ("+e+")")})),["year","month"].forEach((function(t){var n=window[t+"countsChart"],o=window.namespaces[e]||$.i18n("mainspace");if(n){var i=0;n.data.datasets.forEach((function(t,e){t.label===o&&(i=e)}));var r=n.getDatasetMeta(i);r.hidden=null===r.hidden?!n.data.datasets[i].hidden:null,r.hidden?xtools.editcounter.excludedNamespaces.push(o):xtools.editcounter.excludedNamespaces=xtools.editcounter.excludedNamespaces.filter((function(t){return t!==o})),window[t+"countsChart"].config.data.labels=a(t,n.data.datasets),n.update()}}))}function a(t,e){var n=i(t,e);return Object.keys(n).map((function(e){var o=n[e].toString().length,a=2*(xtools.editcounter.maxDigits[t]-o);return e+Array(a+5).join("\t")+n[e].toLocaleString(i18nLang,{useGrouping:!1})}))}function i(t,e){var n={};return e.forEach((function(e){-1===xtools.editcounter.excludedNamespaces.indexOf(e.label)&&e.data.forEach((function(e,o){n[xtools.editcounter.chartLabels[t][o]]||(n[xtools.editcounter.chartLabels[t][o]]=0),n[xtools.editcounter.chartLabels[t][o]]+=e}))})),n}function r(t,e){return(t/e).toLocaleString(i18nLang,{style:"percent"})}n(8476),n(5086),n(8379),n(7899),n(2231),n(17),n(9581),n(9389),n(6048),n(475),n(9693),n(7136),n(173),n(2982),n(1128),n(5843),n(533),n(8825),n(115),n(6088),xtools.editcounter={},xtools.editcounter.excludedNamespaces=[],xtools.editcounter.chartLabels={},xtools.editcounter.maxDigits={},$((function(){0!==$("body.editcounter").length&&(xtools.application.setupMultiSelectListeners(),$(".chart-wrapper").each((function(){var t=$(this).data("chart-type");if(void 0===t)return!1;var e=$(this).data("chart-data"),n=$(this).data("chart-labels"),o=$("canvas",$(this));new Chart(o,{type:t,data:{labels:n,datasets:[{data:e}]}})})),xtools.application.setupToggleTable(window.namespaceTotals,window.namespaceChart,null,o))})),xtools.editcounter.setupMonthYearChart=function(t,e,n,o,s){var l=e.map((function(t){return t.label}));xtools.editcounter.maxDigits[t]=o.toString().length,xtools.editcounter.chartLabels[t]=n,window[t+"countsChart"]=new Chart($("#"+t+"counts-canvas"),{type:"horizontalBar",data:{labels:a(t,e),datasets:e},options:{tooltips:{mode:"nearest",intersect:!0,callbacks:{label:function(n){var o=i(t,e),a=Object.keys(o).map((function(t){return o[t]})),s=a[n.index],l=r(n.xLabel,s);return n.xLabel.toLocaleString(i18nLang)+" ("+l+")"},title:function(t){return t[0].yLabel.replace(/\t.*/,"")+" - "+l[t[0].datasetIndex]}}},responsive:!0,maintainAspectRatio:!1,scales:{xAxes:[{stacked:!0,ticks:{beginAtZero:!0,reverse:i18nRTL,callback:function(t){if(Math.floor(t)===t)return t.toLocaleString(i18nLang)}},gridLines:{color:xtools.application.chartGridColor}}],yAxes:[{stacked:!0,position:i18nRTL?"right":"left",gridLines:{color:xtools.application.chartGridColor}}]},legend:{display:s}}})},xtools.editcounter.setupTimecard=function(t,e){var n=(new Date).getTimezoneOffset()/60;t=t.map((function(t){return t.backgroundColor=new Array(t.data.length).fill(t.backgroundColor),t})),window.chart=new Chart($("#timecard-bubble-chart"),{type:"bubble",data:{datasets:t},options:{responsive:!0,legend:{display:!1},layout:{padding:{right:0}},elements:{point:{radius:function(t){var e=t.dataIndex;return t.dataset.data[e].scale},hitRadius:8}},scales:{yAxes:[{ticks:{min:0,max:8,stepSize:1,padding:25,callback:function(t,n){return e[n]}},position:i18nRTL?"right":"left",gridLines:{color:xtools.application.chartGridColor}},{ticks:{min:0,max:8,stepSize:1,padding:25,callback:function(e,n){return 0===n||n>7?"":(window.chart?window.chart.data.datasets:t).map((function(t){return t.data})).flat().filter((function(t){return t.y==8-n})).reduce((function(t,e){return t+parseInt(e.value,10)}),0)}},position:i18nRTL?"left":"right"}],xAxes:[{ticks:{beginAtZero:!0,min:0,max:24,stepSize:1,reverse:i18nRTL,padding:0,callback:function(t){return t%2==0?t+":00":""}},gridLines:{color:xtools.application.chartGridColor}}]},tooltips:{displayColors:!1,callbacks:{title:function(t){return e[7-t[0].yLabel+1]+" "+parseInt(t[0].xLabel)+":"+String(t[0].xLabel%1*60).padStart(2,"0")},label:function(e){var n=[t[e.datasetIndex].data[e.index].value];return"".concat(n," ").concat($.i18n("num-edits",[n]))}}}}}),$((function(){$(".use-local-time").prop("checked",!1).on("click",(function(){var t=$(this).is(":checked")?n:-n,e=new Array(7);chart.data.datasets.forEach((function(t){return e[t.data[0].day_of_week-1]=t.backgroundColor[0]})),chart.data.datasets=chart.data.datasets.map((function(n){var o=[];return n.data=n.data.map((function(n){var a=parseFloat(n.hour)-t,i=parseInt(n.day_of_week,10);return a<0?(a=24+a,(i-=1)<1&&(i=7+i)):a>=24&&(a-=24,(i+=1)>7&&(i-=7)),n.hour=a.toString(),n.x=a.toString(),n.day_of_week=i.toString(),n.y=(8-i).toString(),o.push(e[i-1]),n})),n.backgroundColor=o,n})),$(this).is(":checked"),chart.update()}))}))}},6730:(t,e,n)=>{n(115),xtools.globalcontribs={},$((function(){0!==$("body.globalcontribs").length&&xtools.application.setupContributionsNavListeners((function(t){return"globalcontribs/".concat(t.username,"/").concat(t.namespace,"/").concat(t.start,"/").concat(t.end)}),"globalcontribs")}))},1680:(t,e,n)=>{n(7136),n(173),xtools.pageinfo={},$((function(){if($("body.pageinfo").length){var t=function(){xtools.application.setupToggleTable(window.textshares,window.textsharesChart,"percentage",$.noop)},e=$(".textshares-container");if(e[0]){var n=xtBaseUrl+"authorship/"+e.data("project")+"/"+e.data("page")+"/"+(xtools.pageinfo.endDate?xtools.pageinfo.endDate+"/":"");n="".concat(n.replace(/\/$/,""),"?htmlonly=yes"),$.ajax({url:n,timeout:3e4}).done((function(n){e.replaceWith(n),xtools.application.buildSectionOffsets(),xtools.application.setupTocListeners(),xtools.application.setupColumnSorting(),t()})).fail((function(t,n,o){e.replaceWith($.i18n("api-error","Authorship API: "+o+""))}))}else $(".textshares-table").length&&t()}}))},1595:(t,e,n)=>{n(8476),n(5086),n(8379),n(7899),n(4867),n(9389),n(6048),n(8636),xtools.pages={},$((function(){if($("body.pages").length){var t={};xtools.application.setupToggleTable(window.countsByNamespace,window.pieChart,"count",(function(t){var e={count:0,deleted:0,redirects:0};Object.keys(t).forEach((function(n){e.count+=t[n].count,e.deleted+=t[n].deleted,e.redirects+=t[n].redirects})),$(".namespaces--namespaces").text(Object.keys(t).length.toLocaleString()+" "+$.i18n("num-namespaces",Object.keys(t).length)),$(".namespaces--pages").text(e.count.toLocaleString()),$(".namespaces--deleted").text(e.deleted.toLocaleString()+" ("+(e.deleted/e.count*100).toFixed(1)+"%)"),$(".namespaces--redirects").text(e.redirects.toLocaleString()+" ("+(e.redirects/e.count*100).toFixed(1)+"%)")})),$(".deleted-page").on("mouseenter",(function(e){var n=$(this).data("page-title"),o=$(this).data("namespace"),a=$(this).data("datetime").toString(),i=$(this).data("username"),r=function(t){$(e.target).find(".tooltip-body").html(t)};if(void 0!==t[o+"/"+n])return r(t[o+"/"+n]);var s=function(){r(""+$.i18n("api-error","Deletion Summary API")+"")};$.ajax({url:xtBaseUrl+"pages/deletion_summary/"+wikiDomain+"/"+i+"/"+o+"/"+n+"/"+a}).done((function(e){if(null===e.summary)return s();r(e.summary),t[o+"/"+n]=e.summary})).fail(s)}))}}))},1223:()=>{xtools.topedits={},$((function(){$("body.topedits").length&&$("#namespace_select").on("change",(function(){$("#page_input").prop("disabled","all"===$(this).val())}))}))},7852:(t,e,n)=>{var o,a,i,s;function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}n(7136),n(6255),n(2231),n(4913),n(6088),n(9389),n(5086),n(6048),n(8665),n(4602),n(115),n(8476),n(9693),n(475),n(9581),n(2982),n(4009),n(17),n(2157),n(8763),n(9560),n(5852),n(8379),n(7899),n(533),n(4538),n(1145),n(6943),n(8772),n(5231),n(4867),n(4895),n(4189),n(557),n(8844),n(2006),n(3534),n(590),n(4216),n(9979),s=function(){return function t(e,n,o){function a(r,s){if(!n[r]){if(!e[r]){if(i)return i(r,!0);var l=new Error("Cannot find module '"+r+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[r]={exports:{}};e[r][0].call(u.exports,(function(t){return a(e[r][1][t]||t)}),u,u.exports,t,e,n,o)}return n[r].exports}for(var i=void 0,r=0;rn?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=this,o=t,a=void 0===e?.5:e,i=2*a-1,r=n.alpha()-o.alpha(),s=((i*r==-1?i:(i+r)/(1+i*r))+1)/2,l=1-s;return this.rgb(s*n.red()+l*o.red(),s*n.green()+l*o.green(),s*n.blue()+l*o.blue()).alpha(n.alpha()*a+o.alpha()*(1-a))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new i,o=this.values,a=n.values;for(var r in o)o.hasOwnProperty(r)&&(t=o[r],"[object Array]"===(e={}.toString.call(t))?a[r]=t.slice(0):"[object Number]"===e?a[r]=t:console.error("unexpected color value:",t));return n}},i.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},i.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},i.prototype.getValues=function(t){for(var e=this.values,n={},o=0;o.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92)),100*(.2126*e+.7152*n+.0722*o),100*(.0193*e+.1192*n+.9505*o)]}function c(t){var e=u(t),n=e[0],o=e[1],a=e[2];return o/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116)-16,500*(n-o),200*(o-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]}function d(t){var e,n,o,a,i,r=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return[i=255*l,i,i];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var u=0;u<3;u++)(o=r+1/3*-(u-1))<0&&o++,o>1&&o--,i=6*o<1?e+6*(n-e)*o:2*o<1?n:3*o<2?e+(n-e)*(2/3-o)*6:e,a[u]=255*i;return a}function h(t){var e=t[0]/60,n=t[1]/100,o=t[2]/100,a=Math.floor(e)%6,i=e-Math.floor(e),r=255*o*(1-n),s=255*o*(1-n*i),l=255*o*(1-n*(1-i));switch(o*=255,a){case 0:return[o,l,r];case 1:return[s,o,r];case 2:return[r,o,l];case 3:return[r,s,o];case 4:return[l,r,o];case 5:return[o,r,s]}}function f(t){var e,n,o,a,i=t[0]/360,s=t[1]/100,l=t[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),o=6*i-(e=Math.floor(6*i)),!!(1&e)&&(o=1-o),a=s+o*((n=1-l)-s),e){default:case 6:case 0:r=n,g=a,b=s;break;case 1:r=a,g=n,b=s;break;case 2:r=s,g=n,b=a;break;case 3:r=s,g=a,b=n;break;case 4:r=a,g=s,b=n;break;case 5:r=n,g=s,b=a}return[255*r,255*g,255*b]}function p(t){var e=t[0]/100,n=t[1]/100,o=t[2]/100,a=t[3]/100;return[255*(1-Math.min(1,e*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,o*(1-a)+a))]}function v(t){var e,n,o,a=t[0]/100,i=t[1]/100,r=t[2]/100;return n=-.9689*a+1.8758*i+.0415*r,o=.0557*a+-.204*i+1.057*r,e=(e=3.2406*a+-1.5372*i+-.4986*r)>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*=12.92,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(o=Math.min(Math.max(0,o),1))]}function m(t){var e=t[0],n=t[1],o=t[2];return n/=100,o/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]}function x(t){var e,n,o,a,i=t[0],r=t[1],s=t[2];return i<=8?a=(n=100*i/903.3)/100*7.787+16/116:(n=100*Math.pow((i+16)/116,3),a=Math.pow(n/100,1/3)),[e=e/95.047<=.008856?e=95.047*(r/500+a-16/116)/7.787:95.047*Math.pow(r/500+a,3),n,o=o/108.883<=.008859?o=108.883*(a-s/200-16/116)/7.787:108.883*Math.pow(a-s/200,3)]}function y(t){var e,n=t[0],o=t[1],a=t[2];return(e=360*Math.atan2(a,o)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(o*o+a*a),e]}function k(t){return v(x(t))}function w(t){var e,n=t[0],o=t[1];return e=t[2]/360*2*Math.PI,[n,o*Math.cos(e),o*Math.sin(e)]}function C(t){return S[t]}e.exports={rgb2hsl:o,rgb2hsv:a,rgb2hwb:i,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:u,rgb2lab:c,rgb2lch:function(t){return y(c(t))},hsl2rgb:d,hsl2hsv:function(t){var e=t[0],n=t[1]/100,o=t[2]/100;return 0===o?[0,0,0]:[e,2*(n*=(o*=2)<=1?o:2-o)/(o+n)*100,(o+n)/2*100]},hsl2hwb:function(t){return i(d(t))},hsl2cmyk:function(t){return s(d(t))},hsl2keyword:function(t){return l(d(t))},hsv2rgb:h,hsv2hsl:function(t){var e,n,o=t[0],a=t[1]/100,i=t[2]/100;return e=a*i,[o,100*(e=(e/=(n=(2-a)*i)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(t){return i(h(t))},hsv2cmyk:function(t){return s(h(t))},hsv2keyword:function(t){return l(h(t))},hwb2rgb:f,hwb2hsl:function(t){return o(f(t))},hwb2hsv:function(t){return a(f(t))},hwb2cmyk:function(t){return s(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:p,cmyk2hsl:function(t){return o(p(t))},cmyk2hsv:function(t){return a(p(t))},cmyk2hwb:function(t){return i(p(t))},cmyk2keyword:function(t){return l(p(t))},keyword2rgb:C,keyword2hsl:function(t){return o(C(t))},keyword2hsv:function(t){return a(C(t))},keyword2hwb:function(t){return i(C(t))},keyword2cmyk:function(t){return s(C(t))},keyword2lab:function(t){return c(C(t))},keyword2xyz:function(t){return u(C(t))},xyz2rgb:v,xyz2lab:m,xyz2lch:function(t){return y(m(t))},lab2xyz:x,lab2rgb:k,lab2lch:y,lch2lab:w,lch2xyz:function(t){return x(w(t))},lch2rgb:function(t){return k(w(t))}};var S={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]},M={};for(var _ in S)M[JSON.stringify(S[_])]=_},{}],5:[function(t,e,n){var o=t(4),a=function(){return new u};for(var i in o){a[i+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),o[t](e)}}(i);var r=/(\w+)2(\w+)/.exec(i),s=r[1],l=r[2];(a[s]=a[s]||{})[l]=a[i]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var n=o[t](e);if("string"==typeof n||void 0===n)return n;for(var a=0;a0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index=0&&a>0)&&(v+=a));return i=d.getPixelForValue(v),{size:s=((r=d.getPixelForValue(v+f))-i)/2,base:i,head:r,center:r+s/2}},calculateBarIndexPixels:function(t,e,n){var o,a,r,s,l,u=n.scale.options,c=this.getStackIndex(t),d=n.pixels,h=d[e],f=d.length,p=n.start,g=n.end;return 1===f?(o=h>p?h-p:g-h,a=h0&&(o=(h-d[e-1])/2,e===f-1&&(a=o)),e');var n=t.data,o=n.datasets,a=n.labels;if(o.length)for(var i=0;i'),a[i]&&e.push(a[i]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,o){var a=t.getDatasetMeta(0),r=e.datasets[0],s=a.data[o],l=s&&s.custom||{},u=i.valueAtIndexOrDefault,c=t.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(r.backgroundColor,o,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(r.borderColor,o,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(r.borderWidth,o,c.borderWidth),hidden:isNaN(r.data[o])||a.data[o].hidden,index:o}})):[]}},onClick:function(t,e){var n,o,a,i=e.index,r=this.chart;for(n=0,o=(r.data.datasets||[]).length;n=Math.PI?-1:p<-Math.PI?1:0))+f,v={x:Math.cos(p),y:Math.sin(p)},m={x:Math.cos(g),y:Math.sin(g)},b=p<=0&&g>=0||p<=2*Math.PI&&2*Math.PI<=g,x=p<=.5*Math.PI&&.5*Math.PI<=g||p<=2.5*Math.PI&&2.5*Math.PI<=g,y=p<=-Math.PI&&-Math.PI<=g||p<=Math.PI&&Math.PI<=g,k=p<=.5*-Math.PI&&.5*-Math.PI<=g||p<=1.5*Math.PI&&1.5*Math.PI<=g,w=h/100,C={x:y?-1:Math.min(v.x*(v.x<0?1:w),m.x*(m.x<0?1:w)),y:k?-1:Math.min(v.y*(v.y<0?1:w),m.y*(m.y<0?1:w))},S={x:b?1:Math.max(v.x*(v.x>0?1:w),m.x*(m.x>0?1:w)),y:x?1:Math.max(v.y*(v.y>0?1:w),m.y*(m.y>0?1:w))},M={width:.5*(S.x-C.x),height:.5*(S.y-C.y)};u=Math.min(s/M.width,l/M.height),c={x:-.5*(S.x+C.x),y:-.5*(S.y+C.y)}}n.borderWidth=e.getMaxBorderWidth(d.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(h?n.outerRadius/100*h:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=c.x*n.outerRadius,n.offsetY=c.y*n.outerRadius,d.total=e.calculateTotal(),e.outerRadius=n.outerRadius-n.radiusLength*e.getRingIndex(e.index),e.innerRadius=Math.max(e.outerRadius-n.radiusLength,0),i.each(d.data,(function(n,o){e.updateElement(n,o,t)}))},updateElement:function(t,e,n){var o=this,a=o.chart,r=a.chartArea,s=a.options,l=s.animation,u=(r.left+r.right)/2,c=(r.top+r.bottom)/2,d=s.rotation,h=s.rotation,f=o.getDataset(),p=n&&l.animateRotate||t.hidden?0:o.calculateCircumference(f.data[e])*(s.circumference/(2*Math.PI)),g=n&&l.animateScale?0:o.innerRadius,v=n&&l.animateScale?0:o.outerRadius,m=i.valueAtIndexOrDefault;i.extend(t,{_datasetIndex:o.index,_index:e,_model:{x:u+a.offsetX,y:c+a.offsetY,startAngle:d,endAngle:h,circumference:p,outerRadius:v,innerRadius:g,label:m(f.label,e,a.data.labels[e])}});var b=t._model;this.removeHoverStyle(t),n&&l.animateRotate||(b.startAngle=0===e?s.rotation:o.getMeta().data[e-1]._model.endAngle,b.endAngle=b.startAngle+b.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,e=this.getDataset(),n=this.getMeta(),o=0;return i.each(n.data,(function(n,a){t=e.data[a],isNaN(t)||n.hidden||(o+=Math.abs(t))})),o},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,n,o=0,a=this.index,i=t.length,r=0;r(o=e>o?e:o)?n:o;return o}})}},{25:25,40:40,45:45}],18:[function(t,e,n){"use strict";var o=t(25),a=t(40),i=t(45);o._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(t){function e(t,e){return i.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,update:function(t){var n,o,a,r=this,s=r.getMeta(),l=s.dataset,u=s.data||[],c=r.chart.options,d=c.elements.line,h=r.getScaleForId(s.yAxisID),f=r.getDataset(),p=e(f,c);for(p&&(a=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=h,l._datasetIndex=r.index,l._children=u,l._model={spanGaps:f.spanGaps?f.spanGaps:c.spanGaps,tension:a.tension?a.tension:i.valueOrDefault(f.lineTension,d.tension),backgroundColor:a.backgroundColor?a.backgroundColor:f.backgroundColor||d.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:f.borderWidth||d.borderWidth,borderColor:a.borderColor?a.borderColor:f.borderColor||d.borderColor,borderCapStyle:a.borderCapStyle?a.borderCapStyle:f.borderCapStyle||d.borderCapStyle,borderDash:a.borderDash?a.borderDash:f.borderDash||d.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:f.borderDashOffset||d.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:f.borderJoinStyle||d.borderJoinStyle,fill:a.fill?a.fill:void 0!==f.fill?f.fill:d.fill,steppedLine:a.steppedLine?a.steppedLine:i.valueOrDefault(f.steppedLine,d.stepped),cubicInterpolationMode:a.cubicInterpolationMode?a.cubicInterpolationMode:i.valueOrDefault(f.cubicInterpolationMode,d.cubicInterpolationMode)},l.pivot()),n=0,o=u.length;n');var n=t.data,o=n.datasets,a=n.labels;if(o.length)for(var i=0;i'),a[i]&&e.push(a[i]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,o){var a=t.getDatasetMeta(0),r=e.datasets[0],s=a.data[o].custom||{},l=i.valueAtIndexOrDefault,u=t.options.elements.arc;return{text:n,fillStyle:s.backgroundColor?s.backgroundColor:l(r.backgroundColor,o,u.backgroundColor),strokeStyle:s.borderColor?s.borderColor:l(r.borderColor,o,u.borderColor),lineWidth:s.borderWidth?s.borderWidth:l(r.borderWidth,o,u.borderWidth),hidden:isNaN(r.data[o])||a.data[o].hidden,index:o}})):[]}},onClick:function(t,e){var n,o,a,i=e.index,r=this.chart;for(n=0,o=(r.data.datasets||[]).length;n0&&!isNaN(t)?2*Math.PI/e:0}})}},{25:25,40:40,45:45}],20:[function(t,e,n){"use strict";var o=t(25),a=t(40),i=t(45);o._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,linkScales:i.noop,update:function(t){var e=this,n=e.getMeta(),o=n.dataset,a=n.data,r=o.custom||{},s=e.getDataset(),l=e.chart.options.elements.line,u=e.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),i.extend(n.dataset,{_datasetIndex:e.index,_scale:u,_children:a,_loop:!0,_model:{tension:r.tension?r.tension:i.valueOrDefault(s.lineTension,l.tension),backgroundColor:r.backgroundColor?r.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:s.borderWidth||l.borderWidth,borderColor:r.borderColor?r.borderColor:s.borderColor||l.borderColor,fill:r.fill?r.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:r.borderCapStyle?r.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:r.borderDash?r.borderDash:s.borderDash||l.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle}}),n.dataset.pivot(),i.each(a,(function(n,o){e.updateElement(n,o,t)}),e),e.updateBezierControlPoints()},updateElement:function(t,e,n){var o=this,a=t.custom||{},r=o.getDataset(),s=o.chart.scale,l=o.chart.options.elements.point,u=s.getPointPositionForValue(e,r.data[e]);void 0!==r.radius&&void 0===r.pointRadius&&(r.pointRadius=r.radius),void 0!==r.hitRadius&&void 0===r.pointHitRadius&&(r.pointHitRadius=r.hitRadius),i.extend(t,{_datasetIndex:o.index,_index:e,_scale:s,_model:{x:n?s.xCenter:u.x,y:n?s.yCenter:u.y,tension:a.tension?a.tension:i.valueOrDefault(r.lineTension,o.chart.options.elements.line.tension),radius:a.radius?a.radius:i.valueAtIndexOrDefault(r.pointRadius,e,l.radius),backgroundColor:a.backgroundColor?a.backgroundColor:i.valueAtIndexOrDefault(r.pointBackgroundColor,e,l.backgroundColor),borderColor:a.borderColor?a.borderColor:i.valueAtIndexOrDefault(r.pointBorderColor,e,l.borderColor),borderWidth:a.borderWidth?a.borderWidth:i.valueAtIndexOrDefault(r.pointBorderWidth,e,l.borderWidth),pointStyle:a.pointStyle?a.pointStyle:i.valueAtIndexOrDefault(r.pointStyle,e,l.pointStyle),hitRadius:a.hitRadius?a.hitRadius:i.valueAtIndexOrDefault(r.pointHitRadius,e,l.hitRadius)}}),t._model.skip=a.skip?a.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,e=this.getMeta();i.each(e.data,(function(n,o){var a=n._model,r=i.splineCurve(i.previousItem(e.data,o,!0)._model,a,i.nextItem(e.data,o,!0)._model,a.tension);a.controlPointPreviousX=Math.max(Math.min(r.previous.x,t.right),t.left),a.controlPointPreviousY=Math.max(Math.min(r.previous.y,t.bottom),t.top),a.controlPointNextX=Math.max(Math.min(r.next.x,t.right),t.left),a.controlPointNextY=Math.max(Math.min(r.next.y,t.bottom),t.top),n.pivot()}))},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},o=t._index,a=t._model;a.radius=n.hoverRadius?n.hoverRadius:i.valueAtIndexOrDefault(e.pointHoverRadius,o,this.chart.options.elements.point.hoverRadius),a.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:i.valueAtIndexOrDefault(e.pointHoverBackgroundColor,o,i.getHoverColor(a.backgroundColor)),a.borderColor=n.hoverBorderColor?n.hoverBorderColor:i.valueAtIndexOrDefault(e.pointHoverBorderColor,o,i.getHoverColor(a.borderColor)),a.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:i.valueAtIndexOrDefault(e.pointHoverBorderWidth,o,a.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},o=t._index,a=t._model,r=this.chart.options.elements.point;a.radius=n.radius?n.radius:i.valueAtIndexOrDefault(e.pointRadius,o,r.radius),a.backgroundColor=n.backgroundColor?n.backgroundColor:i.valueAtIndexOrDefault(e.pointBackgroundColor,o,r.backgroundColor),a.borderColor=n.borderColor?n.borderColor:i.valueAtIndexOrDefault(e.pointBorderColor,o,r.borderColor),a.borderWidth=n.borderWidth?n.borderWidth:i.valueAtIndexOrDefault(e.pointBorderWidth,o,r.borderWidth)}})}},{25:25,40:40,45:45}],21:[function(t,e,n){"use strict";t(25)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),e.exports=function(t){t.controllers.scatter=t.controllers.line}},{25:25}],22:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45);o._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:i.noop,onComplete:i.noop}}),e.exports=function(t){t.Animation=a.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,o){var a,i,r=this.animations;for(e.chart=t,o||(t.animating=!0),a=0,i=r.length;a1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);var o=Date.now();t.dropFrames+=(o-e)/t.frameDuration,t.animations.length>0&&t.requestAnimationFrame()},advance:function(t){for(var e,n,o=this.animations,a=0;a=e.numSteps?(i.callback(e.onAnimationComplete,[e],n),n.animating=!1,o.splice(a,1)):++a}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,n){"use strict";var o=t(25),a=t(45),i=t(28),r=t(48);e.exports=function(t){function e(t){var e=(t=t||{}).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=a.configMerge(o.global,o[t.type],t.options||{}),t}function n(t){return"top"===t||"bottom"===t}var s=t.plugins;t.types={},t.instances={},t.controllers={},a.extend(t.prototype,{construct:function(n,o){var i=this;o=e(o);var s=r.acquireContext(n,o),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;i.id=a.uid(),i.ctx=s,i.canvas=l,i.config=o,i.width=c,i.height=u,i.aspectRatio=u?c/u:null,i.options=o.options,i._bufferedRender=!1,i.chart=i,i.controller=i,t.instances[i.id]=i,Object.defineProperty(i,"data",{get:function(){return i.config.data},set:function(t){i.config.data=t}}),s&&l?(i.initialize(),i.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return s.notify(t,"beforeInit"),a.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),s.notify(t,"afterInit"),t},clear:function(){return a.canvas.clear(this),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,o=e.canvas,i=n.maintainAspectRatio&&e.aspectRatio||null,r=Math.max(0,Math.floor(a.getMaximumWidth(o))),l=Math.max(0,Math.floor(i?r/i:a.getMaximumHeight(o)));if((e.width!==r||e.height!==l)&&(o.width=e.width=r,o.height=e.height=l,o.style.width=r+"px",o.style.height=l+"px",a.retinaScale(e,n.devicePixelRatio),!t)){var u={width:r,height:l};s.notify(e,"resize",[u]),e.options.onResize&&e.options.onResize(e,u),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;a.each(e.xAxes,(function(t,e){t.id=t.id||"x-axis-"+e})),a.each(e.yAxes,(function(t,e){t.id=t.id||"y-axis-"+e})),n&&(n.id=n.id||"scale")},buildScales:function(){var e=this,o=e.options,i=e.scales={},r=[];o.scales&&(r=r.concat((o.scales.xAxes||[]).map((function(t){return{options:t,dtype:"category",dposition:"bottom"}})),(o.scales.yAxes||[]).map((function(t){return{options:t,dtype:"linear",dposition:"left"}})))),o.scale&&r.push({options:o.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),a.each(r,(function(o){var r=o.options,s=a.valueOrDefault(r.type,o.dtype),l=t.scaleService.getScaleConstructor(s);if(l){n(r.position)!==n(o.dposition)&&(r.position=o.dposition);var u=new l({id:r.id,options:r,ctx:e.ctx,chart:e});i[u.id]=u,u.mergeTicksOptions(),o.isDefault&&(e.scale=u)}})),t.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,n=[],o=[];return a.each(e.data.datasets,(function(a,i){var r=e.getDatasetMeta(i),s=a.type||e.config.type;if(r.type&&r.type!==s&&(e.destroyDatasetMeta(i),r=e.getDatasetMeta(i)),r.type=s,n.push(r.type),r.controller)r.controller.updateIndex(i);else{var l=t.controllers[r.type];if(void 0===l)throw new Error('"'+r.type+'" is not a chart type.');r.controller=new l(e,i),o.push(r.controller)}}),e),o},resetElements:function(){var t=this;a.each(t.data.datasets,(function(e,n){t.getDatasetMeta(n).controller.reset()}),t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e=this;if(t&&"object"==l(t)||(t={duration:t,lazy:arguments[1]}),function(t){var e=t.options;e.scale?t.scale.options=e.scale:e.scales&&e.scales.xAxes.concat(e.scales.yAxes).forEach((function(e){t.scales[e.id].options=e})),t.tooltip._options=e.tooltips}(e),!1!==s.notify(e,"beforeUpdate")){e.tooltip._data=e.data;var n=e.buildOrUpdateControllers();a.each(e.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.buildOrUpdateElements()}),e),e.updateLayout(),a.each(n,(function(t){t.reset()})),e.updateDatasets(),s.notify(e,"afterUpdate"),e._bufferedRender?e._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:e.render(t)}},updateLayout:function(){var e=this;!1!==s.notify(e,"beforeLayout")&&(t.layoutService.update(this,this.width,this.height),s.notify(e,"afterScaleUpdate"),s.notify(e,"afterLayout"))},updateDatasets:function(){var t=this;if(!1!==s.notify(t,"beforeDatasetsUpdate")){for(var e=0,n=t.data.datasets.length;e=0;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);s.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this,o=n.getDatasetMeta(t),a={meta:o,index:t,easingValue:e};!1!==s.notify(n,"beforeDatasetDraw",[a])&&(o.controller.draw(e),s.notify(n,"afterDatasetDraw",[a]))},getElementAtEvent:function(t){return i.modes.single(this,t)},getElementsAtEvent:function(t){return i.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return i.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var o=i.modes[e];return"function"==typeof o?o(this,t,n):[]},getDatasetAtEvent:function(t){return i.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,n=e.data.datasets[t];n._meta||(n._meta={});var o=n._meta[e.id];return o||(o=n._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),o},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e0||(a.forEach((function(e){delete t[e]})),delete t._chartjs)}}var a=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},o.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null===e.xAxisID&&(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,o=n.getMeta(),a=n.getDataset().data||[],i=o.data;for(t=0,e=a.length;to&&t.insertElements(o,a-o)},insertElements:function(t,e){for(var n=0;n=n[e].length&&n[e].push({}),!n[e][r].type||l.type&&l.type!==n[e][r].type?i.merge(n[e][r],[t.scaleService.getScaleDefaults(s),l]):i.merge(n[e][r],l)}else i._merger(e,n,o,a)}})},i.where=function(t,e){if(i.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return i.each(t,(function(t){e(t)&&n.push(t)})),n},i.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var o=0,a=t.length;o=0;o--){var a=t[o];if(e(a))return a}},i.inherits=function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},o=function(){this.constructor=n};return o.prototype=e.prototype,n.prototype=new o,n.extend=i.inherits,t&&i.extend(n.prototype,t),n.__super__=e.prototype,n},i.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},i.almostEquals=function(t,e,n){return Math.abs(t-e)t},i.max=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.max(t,e)}),Number.NEGATIVE_INFINITY)},i.min=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.min(t,e)}),Number.POSITIVE_INFINITY)},i.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},i.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},i.toRadians=function(t){return t*(Math.PI/180)},i.toDegrees=function(t){return t*(180/Math.PI)},i.getAngleFromPoint=function(t,e){var n=e.x-t.x,o=e.y-t.y,a=Math.sqrt(n*n+o*o),i=Math.atan2(o,n);return i<-.5*Math.PI&&(i+=2*Math.PI),{angle:i,distance:a}},i.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},i.aliasPixel=function(t){return t%2==0?0:.5},i.splineCurve=function(t,e,n,o){var a=t.skip?e:t,i=e,r=n.skip?e:n,s=Math.sqrt(Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2)),l=Math.sqrt(Math.pow(r.x-i.x,2)+Math.pow(r.y-i.y,2)),u=s/(s+l),c=l/(s+l),d=o*(u=isNaN(u)?0:u),h=o*(c=isNaN(c)?0:c);return{previous:{x:i.x-d*(r.x-a.x),y:i.y-d*(r.y-a.y)},next:{x:i.x+h*(r.x-a.x),y:i.y+h*(r.y-a.y)}}},i.EPSILON=Number.EPSILON||1e-14,i.splineCurveMonotone=function(t){var e,n,o,a,r,s,l,u,c,d=(t||[]).map((function(t){return{model:t._model,deltaK:0,mK:0}})),h=d.length;for(e=0;e0?d[e-1]:null,(a=e0?d[e-1]:null,a=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},i.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},i.niceNum=function(t,e){var n=Math.floor(i.log10(t)),o=t/Math.pow(10,n);return(e?o<1.5?1:o<3?2:o<7?5:10:o<=1?1:o<=2?2:o<=5?5:10)*Math.pow(10,n)},i.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},i.getRelativePosition=function(t,e){var n,o,a=t.originalEvent||t,r=t.currentTarget||t.srcElement,s=r.getBoundingClientRect(),l=a.touches;l&&l.length>0?(n=l[0].clientX,o=l[0].clientY):(n=a.clientX,o=a.clientY);var u=parseFloat(i.getStyle(r,"padding-left")),c=parseFloat(i.getStyle(r,"padding-top")),d=parseFloat(i.getStyle(r,"padding-right")),h=parseFloat(i.getStyle(r,"padding-bottom")),f=s.right-s.left-u-d,p=s.bottom-s.top-c-h;return{x:n=Math.round((n-s.left-u)/f*r.width/e.currentDevicePixelRatio),y:o=Math.round((o-s.top-c)/p*r.height/e.currentDevicePixelRatio)}},i.getConstraintWidth=function(t){return r(t,"max-width","clientWidth")},i.getConstraintHeight=function(t){return r(t,"max-height","clientHeight")},i.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var n=parseInt(i.getStyle(e,"padding-left"),10),o=parseInt(i.getStyle(e,"padding-right"),10),a=e.clientWidth-n-o,r=i.getConstraintWidth(t);return isNaN(r)?a:Math.min(a,r)},i.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var n=parseInt(i.getStyle(e,"padding-top"),10),o=parseInt(i.getStyle(e,"padding-bottom"),10),a=e.clientHeight-n-o,r=i.getConstraintHeight(t);return isNaN(r)?a:Math.min(a,r)},i.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},i.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;if(1!==n){var o=t.canvas,a=t.height,i=t.width;o.height=a*n,o.width=i*n,t.ctx.scale(n,n),o.style.height=a+"px",o.style.width=i+"px"}},i.fontString=function(t,e,n){return e+" "+t+"px "+n},i.longestText=function(t,e,n,o){var a=(o=o||{}).data=o.data||{},r=o.garbageCollect=o.garbageCollect||[];o.font!==e&&(a=o.data={},r=o.garbageCollect=[],o.font=e),t.font=e;var s=0;i.each(n,(function(e){null!=e&&!0!==i.isArray(e)?s=i.measureText(t,a,r,s,e):i.isArray(e)&&i.each(e,(function(e){null==e||i.isArray(e)||(s=i.measureText(t,a,r,s,e))}))}));var l=r.length/2;if(l>n.length){for(var u=0;uo&&(o=i),o},i.numberOfLabelLines=function(t){var e=1;return i.each(t,(function(t){i.isArray(t)&&t.length>e&&(e=t.length)})),e},i.color=o?function(t){return t instanceof CanvasGradient&&(t=a.global.defaultColor),o(t)}:function(t){return console.error("Color.js not found!"),t},i.getHoverColor=function(t){return t instanceof CanvasPattern?t:i.color(t).saturate(.5).darken(.1).rgbString()}}},{25:25,3:3,45:45}],28:[function(t,e,n){"use strict";function o(t,e){return t.native?{x:t.x,y:t.y}:u.getRelativePosition(t,e)}function a(t,e){var n,o,a,i,r;for(o=0,i=t.data.datasets.length;o0&&(u=t.getDatasetMeta(u[0]._datasetIndex).data),u},"x-axis":function(t,e){return l(t,e,{intersect:!0})},point:function(t,e){return i(t,o(e,t))},nearest:function(t,e,n){var a=o(e,t);n.axis=n.axis||"xy";var i=s(n.axis),l=r(t,a,n.intersect,i);return l.length>1&&l.sort((function(t,e){var n=t.getArea()-e.getArea();return 0===n&&(n=t._datasetIndex-e._datasetIndex),n})),l.slice(0,1)},x:function(t,e,n){var i=o(e,t),r=[],s=!1;return a(t,(function(t){t.inXRange(i.x)&&r.push(t),t.inRange(i.x,i.y)&&(s=!0)})),n.intersect&&!s&&(r=[]),r},y:function(t,e,n){var i=o(e,t),r=[],s=!1;return a(t,(function(t){t.inYRange(i.y)&&r.push(t),t.inRange(i.x,i.y)&&(s=!0)})),n.intersect&&!s&&(r=[]),r}}}},{45:45}],29:[function(t,e,n){"use strict";t(25)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.Chart=t,t}},{25:25}],30:[function(t,e,n){"use strict";var o=t(45);e.exports=function(t){function e(t,e){return o.where(t,(function(t){return t.position===e}))}function n(t,e){t.forEach((function(t,e){return t._tmpIndex_=e,t})),t.sort((function(t,n){var o=e?n:t,a=e?t:n;return o.weight===a.weight?o._tmpIndex_-a._tmpIndex_:o.weight-a.weight})),t.forEach((function(t){delete t._tmpIndex_}))}t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var o,a=["fullWidth","position","weight"],i=a.length,r=0;rh&&lt.maxHeight){l--;break}l++,d=u*c}t.labelRotation=l},afterCalculateTickRotation:function(){s.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){s.callback(this.options.beforeFit,[this])},fit:function(){var t=this,a=t.minSize={width:0,height:0},i=o(t._ticks),r=t.options,u=r.ticks,c=r.scaleLabel,d=r.gridLines,h=r.display,f=t.isHorizontal(),p=n(u),g=r.gridLines.tickMarkLength;if(a.width=f?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:h&&d.drawTicks?g:0,a.height=f?h&&d.drawTicks?g:0:t.maxHeight,c.display&&h){var v=l(c)+s.options.toPadding(c.padding).height;f?a.height+=v:a.width+=v}if(u.display&&h){var m=s.longestText(t.ctx,p.font,i,t.longestTextCache),b=s.numberOfLabelLines(i),x=.5*p.size,y=t.options.ticks.padding;if(f){t.longestLabelWidth=m;var k=s.toRadians(t.labelRotation),w=Math.cos(k),C=Math.sin(k)*m+p.size*b+x*(b-1)+x;a.height=Math.min(t.maxHeight,a.height+C+y),t.ctx.font=p.font;var S=e(t.ctx,i[0],p.font),M=e(t.ctx,i[i.length-1],p.font);0!==t.labelRotation?(t.paddingLeft="bottom"===r.position?w*S+3:w*x+3,t.paddingRight="bottom"===r.position?w*x+3:w*M+3):(t.paddingLeft=S/2+3,t.paddingRight=M/2+3)}else u.mirror?m=0:m+=y+x,a.width=Math.min(t.maxWidth,a.width+m),t.paddingTop=p.size/2,t.paddingBottom=p.size/2}t.handleMargins(),t.width=a.width,t.height=a.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){s.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(s.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:s.noop,getPixelForValue:s.noop,getValueForPixel:s.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var o=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(n?0:1),1),a=o*t+e.paddingLeft;return n&&(a+=o/2),e.left+Math.round(a)+(e.isFullWidth()?e.margins.left:0)}var i=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(i/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft;return e.left+Math.round(n)+(e.isFullWidth()?e.margins.left:0)}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,n=t.max;return t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0},_autoSkip:function(t){var e,n,o,a,i=this,r=i.isHorizontal(),l=i.options.ticks.minor,u=t.length,c=s.toRadians(i.labelRotation),d=Math.cos(c),h=i.longestLabelWidth*d,f=[];for(l.maxTicksLimit&&(a=l.maxTicksLimit),r&&(e=!1,(h+l.autoSkipPadding)*u>i.width-(i.paddingLeft+i.paddingRight)&&(e=1+Math.floor((h+l.autoSkipPadding)*u/(i.width-(i.paddingLeft+i.paddingRight)))),a&&u>a&&(e=Math.max(e,Math.floor(u/a)))),n=0;n1&&n%e>0||n%e==0&&n+e>=u)&&n!==u-1||s.isNullOrUndef(o.label))&&delete o.label,f.push(o);return f},draw:function(t){var e=this,o=e.options;if(o.display){var r=e.ctx,u=i.global,c=o.ticks.minor,d=o.ticks.major||c,h=o.gridLines,f=o.scaleLabel,p=0!==e.labelRotation,g=e.isHorizontal(),v=c.autoSkip?e._autoSkip(e.getTicks()):e.getTicks(),m=s.valueOrDefault(c.fontColor,u.defaultFontColor),b=n(c),x=s.valueOrDefault(d.fontColor,u.defaultFontColor),y=n(d),k=h.drawTicks?h.tickMarkLength:0,w=s.valueOrDefault(f.fontColor,u.defaultFontColor),C=n(f),S=s.options.toPadding(f.padding),M=s.toRadians(e.labelRotation),_=[],I="right"===o.position?e.left:e.right-k,D="right"===o.position?e.left+k:e.right,P="bottom"===o.position?e.top:e.bottom-k,A="bottom"===o.position?e.top+k:e.bottom;if(s.each(v,(function(n,i){if(void 0!==n.label){var r,l,d,f,m=n.label;i===e.zeroLineIndex&&o.offset===h.offsetGridLines?(r=h.zeroLineWidth,l=h.zeroLineColor,d=h.zeroLineBorderDash,f=h.zeroLineBorderDashOffset):(r=s.valueAtIndexOrDefault(h.lineWidth,i),l=s.valueAtIndexOrDefault(h.color,i),d=s.valueOrDefault(h.borderDash,u.borderDash),f=s.valueOrDefault(h.borderDashOffset,u.borderDashOffset));var b,x,y,w,C,S,T,F,L,$,O="middle",z="middle",R=c.padding;if(g){var j=k+R;"bottom"===o.position?(z=p?"middle":"top",O=p?"right":"center",$=e.top+j):(z=p?"middle":"bottom",O=p?"left":"center",$=e.bottom-j);var B=a(e,i,h.offsetGridLines&&v.length>1);B1);E0)n=t.stepSize;else{var i=o.niceNum(e.max-e.min,!1);n=o.niceNum(i/(t.maxTicks-1),!0)}var r=Math.floor(e.min/n)*n,s=Math.ceil(e.max/n)*n;t.min&&t.max&&t.stepSize&&o.almostWhole((t.max-t.min)/t.stepSize,n/1e3)&&(r=t.min,s=t.max);var l=(s-r)/n;l=o.almostEquals(l,Math.round(l),n/1e3)?Math.round(l):Math.ceil(l),a.push(void 0!==t.min?t.min:r);for(var u=1;u3?n[2]-n[1]:n[1]-n[0];Math.abs(a)>1&&t!==Math.floor(t)&&(a=t-Math.floor(t));var i=o.log10(Math.abs(a)),r="";if(0!==t){var s=-1*Math.floor(i);s=Math.max(Math.min(s,20),0),r=t.toFixed(s)}else r="0";return r},logarithmic:function(t,e,n){var a=t/Math.pow(10,Math.floor(o.log10(t)));return 0===t?"0":1===a||2===a||5===a||0===e||e===n.length-1?t.toExponential():""}}}},{45:45}],35:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45);o._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:i.noop,title:function(t,e){var n="",o=e.labels,a=o?o.length:0;if(t.length>0){var i=t[0];i.xLabel?n=i.xLabel:a>0&&i.indexo.height-e.height&&(r="bottom");var s,l,u,c,d,h=(a.left+a.right)/2,f=(a.top+a.bottom)/2;"center"===r?(s=function(t){return t<=h},l=function(t){return t>h}):(s=function(t){return t<=e.width/2},l=function(t){return t>=o.width-e.width/2}),u=function(t){return t+e.width>o.width},c=function(t){return t-e.width<0},d=function(t){return t<=f?"top":"bottom"},s(n.x)?(i="left",u(n.x)&&(i="center",r=d(n.y))):l(n.x)&&(i="right",c(n.x)&&(i="center",r=d(n.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:i,yAlign:p.yAlign?p.yAlign:r}}(this,g))}else c.opacity=0;return c.xAlign=f.xAlign,c.yAlign=f.yAlign,c.x=p.x,c.y=p.y,c.width=g.width,c.height=g.height,c.caretX=v.x,c.caretY=v.y,a._model=c,e&&l.custom&&l.custom.call(a,c),a},drawCaret:function(t,e){var n=this._chart.ctx,o=this._view,a=this.getCaretPosition(t,e,o);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)},getCaretPosition:function(t,e,n){var o,a,i,r,s,l,u=n.caretSize,c=n.cornerRadius,d=n.xAlign,h=n.yAlign,f=t.x,p=t.y,g=e.width,v=e.height;if("center"===h)s=p+v/2,"left"===d?(a=(o=f)-u,i=o,r=s+u,l=s-u):(a=(o=f+g)+u,i=o,r=s-u,l=s+u);else if("left"===d?(o=(a=f+c+u)-u,i=a+u):"right"===d?(o=(a=f+g-c-u)-u,i=a+u):(o=(a=f+g/2)-u,i=a+u),"top"===h)s=(r=p)-u,l=r;else{s=(r=p+v)+u,l=r;var m=i;i=o,o=m}return{x1:o,x2:a,x3:i,y1:r,y2:s,y3:l}},drawTitle:function(t,n,o,a){var r=n.title;if(r.length){o.textAlign=n._titleAlign,o.textBaseline="top";var s,l,u=n.titleFontSize,c=n.titleSpacing;for(o.fillStyle=e(n.titleFontColor,a),o.font=i.fontString(u,n._titleFontStyle,n._titleFontFamily),s=0,l=r.length;s0&&o.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},o={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity,i=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&i&&(this.drawBackground(o,e,t,n,a),o.x+=e.xPadding,o.y+=e.yPadding,this.drawTitle(o,e,t,a),this.drawBody(o,e,t,a),this.drawFooter(o,e,t,a))}},handleEvent:function(t){var e=this,n=e._options,o=!1;if(e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:e._active=e._chart.getElementsAtEventForMode(t,n.mode,n),!(o=!i.arrayEquals(e._active,e._lastActive)))return!1;if(e._lastActive=e._active,n.enabled||n.custom){e._eventPosition={x:t.x,y:t.y};var a=e._model;e.update(!0),e.pivot(),o|=a.x!==e._model.x||a.y!==e._model.y}return o}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,n,o=0,a=0,i=0;for(e=0,n=t.length;el;)a-=2*Math.PI;for(;a=s&&a<=l,c=r>=n.innerRadius&&r<=n.outerRadius;return u&&c}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,o=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,o),t.arc(e.x,e.y,e.innerRadius,o,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45),r=o.global;o._set("global",{elements:{line:{tension:.4,backgroundColor:r.defaultColor,borderWidth:3,borderColor:r.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var t,e,n,o,a=this,s=a._view,l=a._chart.ctx,u=s.spanGaps,c=a._children.slice(),d=r.elements.line,h=-1;for(a._loop&&c.length&&c.push(c[0]),l.save(),l.lineCap=s.borderCapStyle||d.borderCapStyle,l.setLineDash&&l.setLineDash(s.borderDash||d.borderDash),l.lineDashOffset=s.borderDashOffset||d.borderDashOffset,l.lineJoin=s.borderJoinStyle||d.borderJoinStyle,l.lineWidth=s.borderWidth||d.borderWidth,l.strokeStyle=s.borderColor||r.defaultColor,l.beginPath(),h=-1,t=0;te?1:-1,r=1,s=u.borderSkipped||"left"):(e=u.x-u.width/2,n=u.x+u.width/2,o=u.y,i=1,r=(a=u.base)>o?1:-1,s=u.borderSkipped||"bottom"),c){var d=Math.min(Math.abs(e-n),Math.abs(o-a)),h=(c=c>d?d:c)/2,f=e+("left"!==s?h*i:0),p=n+("right"!==s?-h*i:0),g=o+("top"!==s?h*r:0),v=a+("bottom"!==s?-h*r:0);f!==p&&(o=g,a=v),g!==v&&(e=f,n=p)}l.beginPath(),l.fillStyle=u.backgroundColor,l.strokeStyle=u.borderColor,l.lineWidth=c;var m=[[e,a],[e,o],[n,o],[n,a]],b=["bottom","left","top","right"].indexOf(s,0);-1===b&&(b=0);var x=t(0);l.moveTo(x[0],x[1]);for(var y=1;y<4;y++)x=t(y),l.lineTo(x[0],x[1]);l.fill(),c&&l.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n=!1;if(this._view){var o=a(this);n=t>=o.left&&t<=o.right&&e>=o.top&&e<=o.bottom}return n},inLabelRange:function(t,e){var n=this;if(!n._view)return!1;var i=a(n);return o(n)?t>=i.left&&t<=i.right:e>=i.top&&e<=i.bottom},inXRange:function(t){var e=a(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=a(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,n=this._view;return o(this)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,n){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,n){"use strict";var o=t(42);n=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,o,a,i){if(i){var r=Math.min(i,o/2),s=Math.min(i,a/2);t.moveTo(e+r,n),t.lineTo(e+o-r,n),t.quadraticCurveTo(e+o,n,e+o,n+s),t.lineTo(e+o,n+a-s),t.quadraticCurveTo(e+o,n+a,e+o-r,n+a),t.lineTo(e+r,n+a),t.quadraticCurveTo(e,n+a,e,n+a-s),t.lineTo(e,n+s),t.quadraticCurveTo(e,n,e+r,n)}else t.rect(e,n,o,a)},drawPoint:function(t,e,n,o,a){var i,r,s,u,c,d;if("object"!=l(e)||"[object HTMLImageElement]"!==(i=e.toString())&&"[object HTMLCanvasElement]"!==i){if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(o,a,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),c=(r=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(o-r/2,a+c/3),t.lineTo(o+r/2,a+c/3),t.lineTo(o,a-2*c/3),t.closePath(),t.fill();break;case"rect":d=1/Math.SQRT2*n,t.beginPath(),t.fillRect(o-d,a-d,2*d,2*d),t.strokeRect(o-d,a-d,2*d,2*d);break;case"rectRounded":var h=n/Math.SQRT2,f=o-h,p=a-h,g=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,f,p,g,g,n/2),t.closePath(),t.fill();break;case"rectRot":d=1/Math.SQRT2*n,t.beginPath(),t.moveTo(o-d,a),t.lineTo(o,a+d),t.lineTo(o+d,a),t.lineTo(o,a-d),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(o,a+n),t.lineTo(o,a-n),t.moveTo(o-n,a),t.lineTo(o+n,a),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,t.moveTo(o-s,a-u),t.lineTo(o+s,a+u),t.moveTo(o-s,a+u),t.lineTo(o+s,a-u),t.closePath();break;case"star":t.beginPath(),t.moveTo(o,a+n),t.lineTo(o,a-n),t.moveTo(o-n,a),t.lineTo(o+n,a),s=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,t.moveTo(o-s,a-u),t.lineTo(o+s,a+u),t.moveTo(o-s,a+u),t.lineTo(o+s,a-u),t.closePath();break;case"line":t.beginPath(),t.moveTo(o-n,a),t.lineTo(o+n,a),t.closePath();break;case"dash":t.beginPath(),t.moveTo(o,a),t.lineTo(o+n,a),t.closePath()}t.stroke()}}else t.drawImage(e,o-e.width/2,a-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,o){if(n.steppedLine)return"after"===n.steppedLine&&!o||"after"!==n.steppedLine&&o?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y);n.tension?t.bezierCurveTo(o?e.controlPointPreviousX:e.controlPointNextX,o?e.controlPointPreviousY:e.controlPointNextY,o?n.controlPointNextX:n.controlPointPreviousX,o?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}},o.clear=n.clear,o.drawRoundedRectangle=function(t){t.beginPath(),n.roundedRect.apply(n,arguments),t.closePath()}},{42:42}],42:[function(t,e,n){"use strict";var o={noop:function(){},uid:function(){var t=0;return function(){return t++}}(),isNullOrUndef:function(t){return null==t},isArray:Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return o.valueOrDefault(o.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,a){var i,r,s;if(o.isArray(t))if(r=t.length,a)for(i=r-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;i=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,o=1;return 0===t?0:1===t?1:(n||(n=.3),o<1?(o=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/o),-o*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,o=1;return 0===t?0:1===t?1:(n||(n=.3),o<1?(o=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/o),o*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,o=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),o<1?(o=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/o),t<1?o*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:o*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-a.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*a.easeInBounce(2*t):.5*a.easeOutBounce(2*t-1)+.5}};e.exports={effects:a},o.easingEffects=a},{42:42}],44:[function(t,e,n){"use strict";var o=t(42);e.exports={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,a,i;return o.isObject(t)?(e=+t.top||0,n=+t.right||0,a=+t.bottom||0,i=+t.left||0):e=n=a=i=+t||0,{top:e,right:n,bottom:a,left:i,height:e+a,width:i+n}},resolve:function(t,e,n){var a,i,r;for(a=0,i=t.length;a
    ';var i=e.childNodes[0],r=e.childNodes[1];e._reset=function(){i.scrollLeft=1e6,i.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6};var s=function(){e._reset(),t()};return a(i,"scroll",s.bind(i,"expand")),a(r,"scroll",s.bind(r,"shrink")),e}(function(t,e){var n=!1,o=[];return function(){o=Array.prototype.slice.call(arguments),e=e||this,n||(n=!0,u.requestAnimFrame.call(window,(function(){n=!1,t.apply(e,o)})))}}((function(){if(o.resizer)return e(r("resize",n))})));!function(t,e){var n=(t[c]||(t[c]={})).renderProxy=function(t){t.animationName===f&&e()};u.each(p,(function(e){a(t,e,n)})),t.classList.add(h)}(t,(function(){if(o.resizer){var e=t.parentNode;e&&e!==i.parentNode&&e.insertBefore(i,e.firstChild),i._reset()}}))}function l(t){var e=t[c]||{},n=e.resizer;delete e.resizer,function(t){var e=t[c]||{},n=e.renderProxy;n&&(u.each(p,(function(e){i(t,e,n)})),delete e.renderProxy),t.classList.remove(h)}(t),n&&n.parentNode&&n.parentNode.removeChild(n)}var u=t(45),c="$chartjs",d="chartjs-",h=d+"render-monitor",f=d+"render-animation",p=["animationstart","webkitAnimationStart"],g={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},v=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t="from{opacity:0.99}to{opacity:1}";!function(t,e){var n=t._style||document.createElement("style");t._style||(t._style=n,e="/* Chart.js */\n"+e,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(e))}(this,"@-webkit-keyframes "+f+"{"+t+"}@keyframes "+f+"{"+t+"}."+h+"{-webkit-animation:"+f+" 0.001s;animation:"+f+" 0.001s;}")},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){var n=t.style,a=t.getAttribute("height"),i=t.getAttribute("width");if(t[c]={initial:{height:a,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===i||""===i){var r=o(t,"width");void 0!==r&&(t.width=r)}if(null===a||""===a)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var s=o(t,"height");void 0!==r&&(t.height=s)}}(t,e),n):null},releaseContext:function(t){var e=t.canvas;if(e[c]){var n=e[c].initial;["height","width"].forEach((function(t){var o=n[t];u.isNullOrUndef(o)?e.removeAttribute(t):e.setAttribute(t,o)})),u.each(n.style||{},(function(t,n){e.style[n]=t})),e.width=e.width,delete e[c]}},addEventListener:function(t,e,n){var o=t.canvas;if("resize"!==e){var i=n[c]||(n[c]={});a(o,e,(i.proxies||(i.proxies={}))[t.id+"_"+e]=function(e){n(function(t,e){var n=g[t.type]||t.type,o=u.getRelativePosition(t,e);return r(n,e,o.x,o.y,t)}(e,t))})}else s(o,n,t)},removeEventListener:function(t,e,n){var o=t.canvas;if("resize"!==e){var a=((n[c]||{}).proxies||{})[t.id+"_"+e];a&&i(o,e,a)}else l(o)}},u.addEvent=a,u.removeEvent=i},{45:45}],48:[function(t,e,n){"use strict";var o=t(45),a=t(46),i=t(47),r=i._enabled?i:a;e.exports=o.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},r)},{45:45,46:46,47:47}],49:[function(t,e,n){"use strict";var o=t(25),a=t(40),i=t(45);o._set("global",{plugins:{filler:{propagate:!0}}}),e.exports=function(){function t(t,e,n){var o,a=t._model||{},i=a.fill;if(void 0===i&&(i=!!a.backgroundColor),!1===i||null===i)return!1;if(!0===i)return"origin";if(o=parseFloat(i,10),isFinite(o)&&Math.floor(o)===o)return"-"!==i[0]&&"+"!==i[0]||(o=e+o),!(o===e||o<0||o>=n)&&o;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}function e(t){var e,n=t.el._model||{},o=t.el._scale||{},a=t.fill,i=null;if(isFinite(a))return null;if("start"===a?i=void 0===n.scaleBottom?o.bottom:n.scaleBottom:"end"===a?i=void 0===n.scaleTop?o.top:n.scaleTop:void 0!==n.scaleZero?i=n.scaleZero:o.getBasePosition?i=o.getBasePosition():o.getBasePixel&&(i=o.getBasePixel()),null!=i){if(void 0!==i.x&&void 0!==i.y)return i;if("number"==typeof i&&isFinite(i))return{x:(e=o.isHorizontal())?i:null,y:e?null:i}}return null}function n(t,e,n){var o,a=t[e].fill,i=[e];if(!n)return a;for(;!1!==a&&-1===i.indexOf(a);){if(!isFinite(a))return a;if(!(o=t[a]))return!1;if(o.visible)return a;i.push(a),a=o.fill}return!1}function r(t){var e=t.fill,n="dataset";return!1===e?null:(isFinite(e)||(n="boundary"),c[n](t))}function s(t){return t&&!t.skip}function l(t,e,n,o,a){var r;if(o&&a){for(t.moveTo(e[0].x,e[0].y),r=1;r0;--r)i.canvas.lineTo(t,n[r],n[r-1],!0)}}function u(t,e,n,o,a,i){var r,u,c,d,h,f,p,g=e.length,v=o.spanGaps,m=[],b=[],x=0,y=0;for(t.beginPath(),r=0,u=g+!!i;r');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("");return e.push(""),e.join("")}}),e.exports=function(t){function e(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function n(e,n){var o=new t.Legend({ctx:e.ctx,options:n,chart:e});r.configure(e,o,n),r.addBox(e,o),e.legend=o}var r=t.layoutService,s=i.noop;return t.Legend=a.extend({initialize:function(t){i.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:s,update:function(t,e,n){var o=this;return o.beforeUpdate(),o.maxWidth=t,o.maxHeight=e,o.margins=n,o.beforeSetDimensions(),o.setDimensions(),o.afterSetDimensions(),o.beforeBuildLabels(),o.buildLabels(),o.afterBuildLabels(),o.beforeFit(),o.fit(),o.afterFit(),o.afterUpdate(),o.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function(){var t=this,e=t.options.labels||{},n=i.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter((function(n){return e.filter(n,t.chart.data)}))),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:s,beforeFit:s,fit:function(){var t=this,n=t.options,a=n.labels,r=n.display,s=t.ctx,l=o.global,u=i.valueOrDefault,c=u(a.fontSize,l.defaultFontSize),d=u(a.fontStyle,l.defaultFontStyle),h=u(a.fontFamily,l.defaultFontFamily),f=i.fontString(c,d,h),p=t.legendHitBoxes=[],g=t.minSize,v=t.isHorizontal();if(v?(g.width=t.maxWidth,g.height=r?10:0):(g.width=r?10:0,g.height=t.maxHeight),r)if(s.font=f,v){var m=t.lineWidths=[0],b=t.legendItems.length?c+a.padding:0;s.textAlign="left",s.textBaseline="top",i.each(t.legendItems,(function(n,o){var i=e(a,c)+c/2+s.measureText(n.text).width;m[m.length-1]+i+a.padding>=t.width&&(b+=c+a.padding,m[m.length]=t.left),p[o]={left:0,top:0,width:i,height:c},m[m.length-1]+=i+a.padding})),g.height+=b}else{var x=a.padding,y=t.columnWidths=[],k=a.padding,w=0,C=0,S=c+x;i.each(t.legendItems,(function(t,n){var o=e(a,c)+c/2+s.measureText(t.text).width;C+S>g.height&&(k+=w+a.padding,y.push(w),w=0,C=0),w=Math.max(w,o),C+=S,p[n]={left:0,top:0,width:o,height:c}})),k+=w,y.push(w),g.width+=k}t.width=g.width,t.height=g.height},afterFit:s,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,n=t.options,a=n.labels,r=o.global,s=r.elements.line,l=t.width,u=t.lineWidths;if(n.display){var c,d=t.ctx,h=i.valueOrDefault,f=h(a.fontColor,r.defaultFontColor),p=h(a.fontSize,r.defaultFontSize),g=h(a.fontStyle,r.defaultFontStyle),v=h(a.fontFamily,r.defaultFontFamily),m=i.fontString(p,g,v);d.textAlign="left",d.textBaseline="middle",d.lineWidth=.5,d.strokeStyle=f,d.fillStyle=f,d.font=m;var b=e(a,p),x=t.legendHitBoxes,y=function(t,e,o){if(!(isNaN(b)||b<=0)){d.save(),d.fillStyle=h(o.fillStyle,r.defaultColor),d.lineCap=h(o.lineCap,s.borderCapStyle),d.lineDashOffset=h(o.lineDashOffset,s.borderDashOffset),d.lineJoin=h(o.lineJoin,s.borderJoinStyle),d.lineWidth=h(o.lineWidth,s.borderWidth),d.strokeStyle=h(o.strokeStyle,r.defaultColor);var a=0===h(o.lineWidth,s.borderWidth);if(d.setLineDash&&d.setLineDash(h(o.lineDash,s.borderDash)),n.labels&&n.labels.usePointStyle){var l=p*Math.SQRT2/2,u=l/Math.SQRT2,c=t+u,f=e+u;i.canvas.drawPoint(d,o.pointStyle,l,c,f)}else a||d.strokeRect(t,e,b,p),d.fillRect(t,e,b,p);d.restore()}},k=t.isHorizontal();c=k?{x:t.left+(l-u[0])/2,y:t.top+a.padding,line:0}:{x:t.left+a.padding,y:t.top+a.padding,line:0};var w=p+a.padding;i.each(t.legendItems,(function(e,n){var o=d.measureText(e.text).width,i=b+p/2+o,r=c.x,s=c.y;k?r+i>=l&&(s=c.y+=w,c.line++,r=c.x=t.left+(l-u[c.line])/2):s+w>t.bottom&&(r=c.x=r+t.columnWidths[c.line]+a.padding,s=c.y=t.top+a.padding,c.line++),y(r,s,e),x[n].left=r,x[n].top=s,function(t,e,n,o){var a=p/2,i=b+a+t,r=e+a;d.fillText(n.text,i,r),n.hidden&&(d.beginPath(),d.lineWidth=2,d.moveTo(i,r),d.lineTo(i+o,r),d.stroke())}(r,s,e,o),k?c.x+=i+a.padding:c.y+=w}))}},handleEvent:function(t){var e=this,n=e.options,o="mouseup"===t.type?"click":t.type,a=!1;if("mousemove"===o){if(!n.onHover)return}else{if("click"!==o)return;if(!n.onClick)return}var i=t.x,r=t.y;if(i>=e.left&&i<=e.right&&r>=e.top&&r<=e.bottom)for(var s=e.legendHitBoxes,l=0;l=u.left&&i<=u.left+u.width&&r>=u.top&&r<=u.top+u.height){if("click"===o){n.onClick.call(e,t.native,e.legendItems[l]),a=!0;break}if("mousemove"===o){n.onHover.call(e,t.native,e.legendItems[l]),a=!0;break}}}return a}}),{id:"legend",beforeInit:function(t){var e=t.options.legend;e&&n(t,e)},beforeUpdate:function(t){var e=t.options.legend,a=t.legend;e?(i.mergeIf(e,o.global.legend),a?(r.configure(t,a,e),a.options=e):n(t,e)):a&&(r.removeBox(t,a),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}}}},{25:25,26:26,45:45}],51:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45);o._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),e.exports=function(t){function e(e,o){var a=new t.Title({ctx:e.ctx,options:o,chart:e});n.configure(e,a,o),n.addBox(e,a),e.titleBlock=a}var n=t.layoutService,r=i.noop;return t.Title=a.extend({initialize:function(t){i.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:r,update:function(t,e,n){var o=this;return o.beforeUpdate(),o.maxWidth=t,o.maxHeight=e,o.margins=n,o.beforeSetDimensions(),o.setDimensions(),o.afterSetDimensions(),o.beforeBuildLabels(),o.buildLabels(),o.afterBuildLabels(),o.beforeFit(),o.fit(),o.afterFit(),o.afterUpdate(),o.minSize},afterUpdate:r,beforeSetDimensions:r,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:r,beforeBuildLabels:r,buildLabels:r,afterBuildLabels:r,beforeFit:r,fit:function(){var t=this,e=i.valueOrDefault,n=t.options,a=n.display,r=e(n.fontSize,o.global.defaultFontSize),s=t.minSize,l=i.isArray(n.text)?n.text.length:1,u=i.options.toLineHeight(n.lineHeight,r),c=a?l*u+2*n.padding:0;t.isHorizontal()?(s.width=t.maxWidth,s.height=c):(s.width=c,s.height=t.maxHeight),t.width=s.width,t.height=s.height},afterFit:r,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=i.valueOrDefault,a=t.options,r=o.global;if(a.display){var s,l,u,c=n(a.fontSize,r.defaultFontSize),d=n(a.fontStyle,r.defaultFontStyle),h=n(a.fontFamily,r.defaultFontFamily),f=i.fontString(c,d,h),p=i.options.toLineHeight(a.lineHeight,c),g=p/2+a.padding,v=0,m=t.top,b=t.left,x=t.bottom,y=t.right;e.fillStyle=n(a.fontColor,r.defaultFontColor),e.font=f,t.isHorizontal()?(l=b+(y-b)/2,u=m+g,s=y-b):(l="left"===a.position?b+g:y-g,u=m+(x-m)/2,s=x-m,v=Math.PI*("left"===a.position?-.5:.5)),e.save(),e.translate(l,u),e.rotate(v),e.textAlign="center",e.textBaseline="middle";var k=a.text;if(i.isArray(k))for(var w=0,C=0;Ce.max)&&(e.max=o))}))}));e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this,n=e.options.ticks;if(e.isHorizontal())t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.width/50));else{var i=a.valueOrDefault(n.fontSize,o.global.defaultFontSize);t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.height/(2*i)))}return t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,n=this,o=n.start,a=+n.getRightValue(t),i=n.end-o;return n.isHorizontal()?(e=n.left+n.width/i*(a-o),Math.round(e)):(e=n.bottom-n.height/i*(a-o),Math.round(e))},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),o=n?e.width:e.height,a=(n?t-e.left:e.bottom-t)/o;return e.start+(e.end-e.start)*a},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,e)}},{25:25,34:34,45:45}],54:[function(t,e,n){"use strict";var o=t(45),a=t(34);e.exports=function(t){var e=o.noop;t.LinearScaleBase=t.Scale.extend({getRightValue:function(e){return"string"==typeof e?+e:t.Scale.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=o.sign(t.min),a=o.sign(t.max);n<0&&a<0?t.max=0:n>0&&a>0&&(t.min=0)}var i=void 0!==e.min||void 0!==e.suggestedMin,r=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),i!==r&&t.min>=t.max&&(i?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,stepSize:o.valueOrDefault(e.fixedStepSize,e.stepSize)},r=t.ticks=a.generators.linear(i,t);t.handleDirectionalChanges(),t.max=o.max(r),t.min=o.min(r),e.reverse?(r.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{34:34,45:45}],55:[function(t,e,n){"use strict";var o=t(45),a=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:a.formatters.logarithmic}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return l?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,a=n.ticks,i=e.chart,r=i.data.datasets,s=o.valueOrDefault,l=e.isHorizontal();e.min=null,e.max=null,e.minNotZero=null;var u=n.stacked;if(void 0===u&&o.each(r,(function(e,n){if(!u){var o=i.getDatasetMeta(n);i.isDatasetVisible(n)&&t(o)&&void 0!==o.stack&&(u=!0)}})),n.stacked||u){var c={};o.each(r,(function(a,r){var s=i.getDatasetMeta(r),l=[s.type,void 0===n.stacked&&void 0===s.stack?r:"",s.stack].join(".");i.isDatasetVisible(r)&&t(s)&&(void 0===c[l]&&(c[l]=[]),o.each(a.data,(function(t,o){var a=c[l],i=+e.getRightValue(t);isNaN(i)||s.data[o].hidden||(a[o]=a[o]||0,n.relativePoints?a[o]=100:a[o]+=i)})))})),o.each(c,(function(t){var n=o.min(t),a=o.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?a:Math.max(e.max,a)}))}else o.each(r,(function(n,a){var r=i.getDatasetMeta(a);i.isDatasetVisible(a)&&t(r)&&o.each(n.data,(function(t,n){var o=+e.getRightValue(t);isNaN(o)||r.data[n].hidden||((null===e.min||oe.max)&&(e.max=o),0!==o&&(null===e.minNotZero||oa?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function l(t){return 0===t||180===t?"center":t<180?"left":"right"}function u(t,e,n,o){if(a.isArray(e))for(var i=n.y,r=1.5*o,s=0;s270||t<90)&&(n.y-=e.h)}function d(t){var o=t.ctx,i=a.valueOrDefault,r=t.options,s=r.angleLines,d=r.pointLabels;o.lineWidth=s.lineWidth,o.strokeStyle=s.color;var h=t.getDistanceFromCenterForValue(r.ticks.reverse?t.min:t.max),f=n(t);o.textBaseline="top";for(var g=e(t)-1;g>=0;g--){if(s.display){var v=t.getPointPosition(g,h);o.beginPath(),o.moveTo(t.xCenter,t.yCenter),o.lineTo(v.x,v.y),o.stroke(),o.closePath()}if(d.display){var m=t.getPointPosition(g,h+5),b=i(d.fontColor,p.defaultFontColor);o.font=f.font,o.fillStyle=b;var x=t.getIndexAngle(g),y=a.toDegrees(x);o.textAlign=l(y),c(y,t._pointLabelSizes[g],m),u(o,t.pointLabels[g]||"",m,f.size)}}}function h(t,n,o,i){var r=t.ctx;if(r.strokeStyle=a.valueAtIndexOrDefault(n.color,i-1),r.lineWidth=a.valueAtIndexOrDefault(n.lineWidth,i-1),t.options.gridLines.circular)r.beginPath(),r.arc(t.xCenter,t.yCenter,o,0,2*Math.PI),r.closePath(),r.stroke();else{var s=e(t);if(0===s)return;r.beginPath();var l=t.getPointPosition(0,o);r.moveTo(l.x,l.y);for(var u=1;ud.r&&(d.r=v.end,h.r=p),m.startd.b&&(d.b=m.end,h.b=p)}t.setReductions(c,d,h)}(this):function(t){var e=Math.min(t.height/2,t.width/2);t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0)}(this)},setReductions:function(t,e,n){var o=this,a=e.l/Math.sin(n.l),i=Math.max(e.r-o.width,0)/Math.sin(n.r),r=-e.t/Math.cos(n.t),s=-Math.max(e.b-o.height,0)/Math.cos(n.b);a=f(a),i=f(i),r=f(r),s=f(s),o.drawingArea=Math.min(Math.round(t-(a+i)/2),Math.round(t-(r+s)/2)),o.setCenterPoint(a,i,r,s)},setCenterPoint:function(t,e,n,o){var a=this,i=a.width-e-a.drawingArea,r=t+a.drawingArea,s=n+a.drawingArea,l=a.height-o-a.drawingArea;a.xCenter=Math.round((r+i)/2+a.left),a.yCenter=Math.round((s+l)/2+a.top)},getIndexAngle:function(t){return t*(2*Math.PI/e(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var n=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*n:(t-e.min)*n},getPointPosition:function(t,e){var n=this,o=n.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(o)*e)+n.xCenter,y:Math.round(Math.sin(o)*e)+n.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this,e=t.min,n=t.max;return t.getPointPositionForValue(0,t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0)},draw:function(){var t=this,e=t.options,n=e.gridLines,o=e.ticks,i=a.valueOrDefault;if(e.display){var r=t.ctx,s=this.getIndexAngle(0),l=i(o.fontSize,p.defaultFontSize),u=i(o.fontStyle,p.defaultFontStyle),c=i(o.fontFamily,p.defaultFontFamily),f=a.fontString(l,u,c);a.each(t.ticks,(function(e,a){if(a>0||o.reverse){var u=t.getDistanceFromCenterForValue(t.ticksAsNumbers[a]);if(n.display&&0!==a&&h(t,n,u,a),o.display){var c=i(o.fontColor,p.defaultFontColor);if(r.font=f,r.save(),r.translate(t.xCenter,t.yCenter),r.rotate(s),o.showLabelBackdrop){var d=r.measureText(e).width;r.fillStyle=o.backdropColor,r.fillRect(-d/2-o.backdropPaddingX,-u-l/2-o.backdropPaddingY,d+2*o.backdropPaddingX,l+2*o.backdropPaddingY)}r.textAlign="center",r.textBaseline="middle",r.fillStyle=c,r.fillText(e,0,-u),r.restore()}}})),(e.angleLines.display||e.pointLabels.display)&&d(t)}}});t.scaleService.registerScaleType("radialLinear",v,g)}},{25:25,34:34,45:45}],57:[function(t,e,n){"use strict";function o(t,e){return t-e}function a(t){var e,n,o,a={},i=[];for(e=0,n=t.length;e=0&&r<=s;){if(a=t[(o=r+s>>1)-1]||null,i=t[o],!a)return{lo:null,hi:i};if(i[e]n))return{lo:a,hi:i};s=o-1}}return{lo:i,hi:null}}(t,e,n),i=a.lo?a.hi?a.lo:t[t.length-2]:t[0],r=a.lo?a.hi?a.hi:t[t.length-1]:t[1],s=r[e]-i[e],l=s?(n-i[e])/s:0,u=(r[o]-i[o])*l;return i[o]+u}function r(t,e){var n=e.parser,o=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof o?h(t,o):(t instanceof h||(t=h(t)),t.isValid()?t:"function"==typeof o?o(t):t)}function s(t,e){if(p.isNullOrUndef(t))return null;var n=e.options.time,o=r(e.getRightValue(t),n);return o.isValid()?(n.round&&o.startOf(n.round),o.valueOf()):null}function l(t,e,n,o){var a,i,r,s=b.length;for(a=b.indexOf(t);a1?e[1]:o,s=e[0],l=(i(t,"time",r,"pos")-i(t,"time",s,"pos"))/2),a.time.max||(r=e[e.length-1],s=e.length>1?e[e.length-2]:n,u=(i(t,"time",r,"pos")-i(t,"time",s,"pos"))/2)),{left:l,right:u}}function d(t,e){var n,o,a,i,r=[];for(n=0,o=t.length;n=a&&n<=i&&y.push(n);return o.min=a,o.max=i,o._unit=g,o._majorUnit=v,o._minorFormat=f[g],o._majorFormat=f[v],o._table=function(t,e,n,o){if("linear"===o||!t.length)return[{time:e,pos:0},{time:n,pos:1}];var a,i,r,s,l,u=[],c=[e];for(a=0,i=t.length;ae&&s=0&&t{function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}n(8636),n(5086),n(8329),n(8772),n(4913),n(9693),n(115),n(7136),n(173),n(9073),n(6048),n(9581),n(3534),n(590),n(4216),n(8665),n(9979),n(4602),function(t){"use strict";var e=function(e,n){t.fn.typeahead.defaults;n.scrollBar&&(n.items=100,n.menu='');var o=this;if(o.$element=t(e),o.options=t.extend({},t.fn.typeahead.defaults,n),o.$menu=t(o.options.menu).insertAfter(o.$element),o.eventSupported=o.options.eventSupported||o.eventSupported,o.grepper=o.options.grepper||o.grepper,o.highlighter=o.options.highlighter||o.highlighter,o.lookup=o.options.lookup||o.lookup,o.matcher=o.options.matcher||o.matcher,o.render=o.options.render||o.render,o.onSelect=o.options.onSelect||null,o.sorter=o.options.sorter||o.sorter,o.source=o.options.source||o.source,o.displayField=o.options.displayField||o.displayField,o.valueField=o.options.valueField||o.valueField,o.options.ajax){var a=o.options.ajax;"string"==typeof a?o.ajax=t.extend({},t.fn.typeahead.defaults.ajax,{url:a}):("string"==typeof a.displayField&&(o.displayField=o.options.displayField=a.displayField),"string"==typeof a.valueField&&(o.valueField=o.options.valueField=a.valueField),o.ajax=t.extend({},t.fn.typeahead.defaults.ajax,a)),o.ajax.url||(o.ajax=null),o.query=""}else o.source=o.options.source,o.ajax=null;o.shown=!1,o.listen()};e.prototype={constructor:e,eventSupported:function(t){var e=t in this.$element;return e||(this.$element.setAttribute(t,"return;"),e="function"==typeof this.$element[t]),e},select:function(){var t=this.$menu.find(".active").attr("data-value"),e=this.$menu.find(".active a").text();return this.options.onSelect&&this.options.onSelect({value:t,text:e}),this.$element.val(this.updater(e)).change(),this.hide()},updater:function(t){return t},show:function(){var e=t.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});if(this.$menu.css({top:e.top+e.height,left:e.left}),this.options.alignWidth){var n=t(this.$element[0]).outerWidth();this.$menu.css({width:n})}return this.$menu.show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},ajaxLookup:function(){var e=t.trim(this.$element.val());if(e===this.query)return this;if(this.query=e,this.ajax.timerId&&(clearTimeout(this.ajax.timerId),this.ajax.timerId=null),!e||e.length"+e+""}))},render:function(e){var n,a=this,i="string"==typeof a.options.displayField;return(e=t(e).map((function(e,r){return"object"===o(r)?(n=i?r[a.options.displayField]:a.options.displayField(r),e=t(a.options.item).attr("data-value",r[a.options.valueField])):(n=r,e=t(a.options.item).attr("data-value",r)),e.find("a").html(a.highlighter(n)),e[0]}))).first().addClass("active"),this.$menu.html(e),this},grepper:function(e){var n,o,a=this,i="string"==typeof a.options.displayField;if(!(i&&e&&e.length))return null;if(e[0].hasOwnProperty(a.options.displayField))n=t.grep(e,(function(t){return o=i?t[a.options.displayField]:a.options.displayField(t),a.matcher(o)}));else{if("string"!=typeof e[0])return null;n=t.grep(e,(function(t){return a.matcher(t)}))}return this.sorter(n)},next:function(e){var n=this.$menu.find(".active").removeClass("active").next();if(n.length||(n=t(this.$menu.find("li")[0])),this.options.scrollBar){var o=this.$menu.children("li").index(n);o%8==0&&this.$menu.scrollTop(26*o)}n.addClass("active")},prev:function(t){var e=this.$menu.find(".active").removeClass("active").prev();if(e.length||(e=this.$menu.find("li").last()),this.options.scrollBar){var n=this.$menu.children("li"),o=n.length-1,a=n.index(e);(o-a)%8==0&&this.$menu.scrollTop(26*(a-7))}e.addClass("active")},listen:function(){this.$element.on("focus",t.proxy(this.focus,this)).on("blur",t.proxy(this.blur,this)).on("keypress",t.proxy(this.keypress,this)).on("keyup",t.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",t.proxy(this.keydown,this)),this.$menu.on("click",t.proxy(this.click,this)).on("mouseenter","li",t.proxy(this.mouseenter,this)).on("mouseleave","li",t.proxy(this.mouseleave,this))},move:function(t){if(this.shown){switch(t.keyCode){case 9:case 13:case 27:t.preventDefault();break;case 38:t.preventDefault(),this.prev();break;case 40:t.preventDefault(),this.next()}t.stopPropagation()}},keydown:function(e){this.suppressKeyPressRepeat=~t.inArray(e.keyCode,[40,38,9,13,27]),this.move(e)},keypress:function(t){this.suppressKeyPressRepeat||this.move(t)},keyup:function(t){switch(t.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.ajax?this.ajaxLookup():this.lookup()}t.stopPropagation(),t.preventDefault()},focus:function(t){this.focused=!0},blur:function(t){this.focused=!1,!this.mousedover&&this.shown&&this.hide()},click:function(t){t.stopPropagation(),t.preventDefault(),this.select(),this.$element.focus()},mouseenter:function(e){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),t(e.currentTarget).addClass("active")},mouseleave:function(t){this.mousedover=!1,!this.focused&&this.shown&&this.hide()},destroy:function(){this.$element.off("focus",t.proxy(this.focus,this)).off("blur",t.proxy(this.blur,this)).off("keypress",t.proxy(this.keypress,this)).off("keyup",t.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.off("keydown",t.proxy(this.keydown,this)),this.$menu.off("click",t.proxy(this.click,this)).off("mouseenter","li",t.proxy(this.mouseenter,this)).off("mouseleave","li",t.proxy(this.mouseleave,this)),this.$element.removeData("typeahead")}},t.fn.typeahead=function(n){return this.each((function(){var a=t(this),i=a.data("typeahead"),r="object"===o(n)&&n;i||a.data("typeahead",i=new e(this,r)),"string"==typeof n&&i[n]()}))},t.fn.typeahead.defaults={source:[],items:10,scrollBar:!1,alignWidth:!0,menu:'',item:'
  • ',valueField:"id",displayField:"name",onSelect:function(){},ajax:{url:null,timeout:300,method:"get",triggerLength:1,loadingClass:null,preDispatch:null,preProcess:null}},t.fn.typeahead.Constructor=e,t((function(){t("body").on("focus.typeahead.data-api",'[data-provide="typeahead"]',(function(e){var n=t(this);n.data("typeahead")||(e.preventDefault(),n.typeahead(n.data()))}))}))}(window.jQuery)},2811:function(t,e,n){var o,a;function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}n(4913),n(475),n(115),n(9693),n(8636),n(5086),n(7136),n(173),n(2231),n(6255),n(9389),n(6048),n(9581),n(6088),n(9073),n(3534),n(590),n(4216),n(8665),n(9979),n(4602),function(t){"use strict";var e,n,o=Array.prototype.slice;(n=function(e){this.options=t.extend({},n.defaults,e),this.parser=this.options.parser,this.locale=this.options.locale,this.messageStore=this.options.messageStore,this.languages={},this.init()}).prototype={init:function(){var e=this;String.locale=e.locale,String.prototype.toLocaleString=function(){var n,o,a,i,r,s,l;for(a=this.valueOf(),i=e.locale,r=0;i;){o=(n=i.split("-")).length;do{if(s=n.slice(0,o).join("-"),l=e.messageStore.get(s,a))return l;o--}while(o);if("en"===i)break;i=t.i18n.fallbacks[e.locale]&&t.i18n.fallbacks[e.locale][r]||e.options.fallbackLocale,t.i18n.log("Trying fallback locale for "+e.locale+": "+i),r++}return""}},destroy:function(){t.removeData(document,"i18n")},load:function(e,n){var o,a,i,r={};if(e||n||(e="i18n/"+t.i18n().locale+".json",n=t.i18n().locale),"string"==typeof e&&"json"!==e.split(".").pop()){for(a in r[n]=e+"/"+n+".json",o=(t.i18n.fallbacks[n]||[]).concat(this.options.fallbackLocale))r[i=o[a]]=e+"/"+i+".json";return this.load(r)}return this.messageStore.load(e,n)},parse:function(e,n){var o=e.toLocaleString();return this.parser.language=t.i18n.languages[t.i18n().locale]||t.i18n.languages.default,""===o&&(o=e),this.parser.parse(o,n)}},t.i18n=function(e,a){var r,s=t.data(document,"i18n"),l="object"===i(e)&&e;return l&&l.locale&&s&&s.locale!==l.locale&&(String.locale=s.locale=l.locale),s||(s=new n(l),t.data(document,"i18n",s)),"string"==typeof e?(r=void 0!==a?o.call(arguments,1):[],s.parse(e,r)):s},t.fn.i18n=function(){var e=t.data(document,"i18n");return e||(e=new n,t.data(document,"i18n",e)),String.locale=e.locale,this.each((function(){var n,o,a,i,r=t(this),s=r.data("i18n");s?(n=s.indexOf("["),o=s.indexOf("]"),-1!==n&&-1!==o&&n1?["CONCAT"].concat(t):t[0]}function P(){var t=w([h,n,I]);return null===t?null:[t[0],t[2]]}function A(){var t=w([h,n,v]);return null===t?null:[t[0],t[2]]}function T(){var t=w([f,d,p]);return null===t?null:t[1]}if(e=S("|"),n=S(":"),o=S("\\"),a=M(/^./),i=S("$"),r=M(/^\d+/),s=M(/^[^{}\[\]$\\]/),l=M(/^[^{}\[\]$\\|]/),k([_,M(/^[^{}\[\]$\s]/)]),u=k([_,l]),c=k([_,s]),b=M(/^[ !"$&'()*,.\/0-9;=?@A-Z\^_`a-z~\x80-\xFF+\-]+/),x=function(t){return t.toString()},h=function(){var t=b();return null===t?null:x(t)},d=k([function(){var t=w([k([P,A]),C(0,D)]);return null===t?null:t[0].concat(t[1])},function(){var t=w([h,C(0,D)]);return null===t?null:[t[0]].concat(t[1])}]),f=S("{{"),p=S("}}"),g=k([T,I,function(){var t=C(1,c)();return null===t?null:t.join("")}]),v=k([T,I,function(){var t=C(1,u)();return null===t?null:t.join("")}]),null===(m=function(){var t=C(0,g)();return null===t?null:["CONCAT"].concat(t)}())||y!==t.length)throw new Error("Parse error at position "+y.toString()+" in input: "+t);return m}},t.extend(t.i18n.parser,new e)}(jQuery),function(t){"use strict";var e=function(){this.language=t.i18n.languages[String.locale]||t.i18n.languages.default};e.prototype={constructor:e,emit:function(e,n){var o,a,r,s=this;switch(i(e)){case"string":case"number":o=e;break;case"object":if(a=t.map(e.slice(1),(function(t){return s.emit(t,n)})),r=e[0].toLowerCase(),"function"!=typeof s[r])throw new Error('unknown operation "'+r+'"');o=s[r](a,n);break;case"undefined":o="";break;default:throw new Error("unexpected type in AST: "+i(e))}return o},concat:function(e){var n="";return t.each(e,(function(t,e){n+=e})),n},replace:function(t,e){var n=parseInt(t[0],10);return n=parseInt(t[0],10)&&e[0]{},1536:()=>{},2559:()=>{},2553:()=>{},5264:()=>{},6387:()=>{},5985:()=>{},63:()=>{},3888:()=>{},7278:()=>{},3704:()=>{}},t=>{var e=e=>t(t.s=e);t.O(0,[65],(()=>(e(2811),e(7852),e(6108),e(9143),e(5779),e(6618),e(3441),e(1680),e(9654),e(5611),e(3600),e(514),e(9307),e(6730),e(1595),e(1223),e(9662),e(63),e(1536),e(2559),e(2553),e(5264),e(6387),e(5985),e(3888),e(3704),e(7278))));t.O()}]); \ No newline at end of file diff --git a/public/build/app.f6e6f244.js.LICENSE.txt b/public/build/app.f6e6f244.js.LICENSE.txt new file mode 100644 index 000000000..f8a2a02bd --- /dev/null +++ b/public/build/app.f6e6f244.js.LICENSE.txt @@ -0,0 +1,67 @@ +/*! + * Chart.js + * http://chartjs.org/ + * Version: 2.7.0 + * + * Copyright 2017 Nick Downie + * Released under the MIT license + * https://github.com/chartjs/Chart.js/blob/master/LICENSE.md + */ + +/*! + * jQuery Internationalization library + * + * Copyright (C) 2011-2013 Santhosh Thottingal, Neil Kandalgaonkar + * + * jquery.i18n is dual licensed GPLv2 or later and MIT. You don't have to do + * anything special to choose one license or the other and you don't have to + * notify anyone which license you are using. You are free to use + * UniversalLanguageSelector in commercial projects as long as the copyright + * header is left intact. See files GPL-LICENSE and MIT-LICENSE for details. + * + * @licence GNU General Public Licence 2.0 or later + * @licence MIT License + */ + +/*! + * jQuery Internationalization library + * + * Copyright (C) 2012 Santhosh Thottingal + * + * jquery.i18n is dual licensed GPLv2 or later and MIT. You don't have to do + * anything special to choose one license or the other and you don't have to + * notify anyone which license you are using. You are free to use + * UniversalLanguageSelector in commercial projects as long as the copyright + * header is left intact. See files GPL-LICENSE and MIT-LICENSE for details. + * + * @licence GNU General Public Licence 2.0 or later + * @licence MIT License + */ + +/*! + * jQuery Internationalization library + * + * Copyright (C) 2012 Santhosh Thottingal + * + * jquery.i18n is dual licensed GPLv2 or later and MIT. You don't have to do anything special to + * choose one license or the other and you don't have to notify anyone which license you are using. + * You are free to use UniversalLanguageSelector in commercial projects as long as the copyright + * header is left intact. See files GPL-LICENSE and MIT-LICENSE for details. + * + * @licence GNU General Public Licence 2.0 or later + * @licence MIT License + */ + +/*! + * jQuery Internationalization library - Message Store + * + * Copyright (C) 2012 Santhosh Thottingal + * + * jquery.i18n is dual licensed GPLv2 or later and MIT. You don't have to do anything special to + * choose one license or the other and you don't have to notify anyone which license you are using. + * You are free to use UniversalLanguageSelector in commercial projects as long as the copyright + * header is left intact. See files GPL-LICENSE and MIT-LICENSE for details. + * + * @licence GNU General Public Licence 2.0 or later + * @licence MIT License + */ diff --git a/public/build/entrypoints.json b/public/build/entrypoints.json index 4f31b6163..beb060c82 100644 --- a/public/build/entrypoints.json +++ b/public/build/entrypoints.json @@ -3,8 +3,8 @@ "app": { "js": [ "/build/runtime.c217f8c4.js", - "/build/450.304e1a09.js", - "/build/app.48b6b1cc.js" + "/build/65.b1ddf728.js", + "/build/app.f6e6f244.js" ], "css": [ "/build/app.df7c9813.css" diff --git a/public/build/manifest.json b/public/build/manifest.json index 9e49694e8..2885b86c5 100644 --- a/public/build/manifest.json +++ b/public/build/manifest.json @@ -1,8 +1,8 @@ { "build/app.css": "/build/app.df7c9813.css", - "build/app.js": "/build/app.48b6b1cc.js", + "build/app.js": "/build/app.f6e6f244.js", "build/runtime.js": "/build/runtime.c217f8c4.js", - "build/450.304e1a09.js": "/build/450.304e1a09.js", + "build/65.b1ddf728.js": "/build/65.b1ddf728.js", "build/images/VPS-badge.svg": "/build/images/VPS-badge.svg", "build/images/error_mascot.svg": "/build/images/error_mascot.svg", "build/images/favicon.ico": "/build/images/favicon.ico", From 32b551c648b2068fc88808f7ad5801dc2f3c7b27 Mon Sep 17 00:00:00 2001 From: agoujot <145840578+agoujot@users.noreply.github.com> Date: Tue, 22 Apr 2025 22:45:46 +0200 Subject: [PATCH 7/9] delete old compiled asset --- public/build/app.48b6b1cc.js | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 public/build/app.48b6b1cc.js diff --git a/public/build/app.48b6b1cc.js b/public/build/app.48b6b1cc.js deleted file mode 100644 index 2733d4254..000000000 --- a/public/build/app.48b6b1cc.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see app.48b6b1cc.js.LICENSE.txt */ -(self.webpackChunkxtools=self.webpackChunkxtools||[]).push([[524],{3441:()=>{xtools.adminstats={},$((function(){var t=$("#project_input"),e=t.val();0!==$("body.adminstats, body.patrollerstats, body.stewardstats").length&&(xtools.application.setupMultiSelectListeners(),$(".group-selector").on("change",(function(){$(".action-selector").addClass("hidden"),$(".action-selector--"+$(this).val()).removeClass("hidden"),$(".xt-page-title--title").text($.i18n("tool-"+$(this).val()+"stats")),$(".xt-page-title--desc").text($.i18n("tool-"+$(this).val()+"stats-desc"));var n=$.i18n("tool-"+$(this).val()+"stats")+" - "+$.i18n("xtools-title");document.title=n,history.replaceState({},n,"/"+$(this).val()+"stats"),"steward"===$(this).val()?(e=t.val(),t.val("meta.wikimedia.org")):t.val(e),xtools.application.setupMultiSelectListeners()})))}))},9654:(t,e,n)=>{n(8636),n(5086),$((function(){if($("body.authorship").length){var t=$("#show_selector");t.on("change",(function(t){$(".show-option").addClass("hidden").find("input").prop("disabled",!0),$(".show-option--".concat(t.target.value)).removeClass("hidden").find("input").prop("disabled",!1)})),window.onload=function(){return t.trigger("change")}}}))},5611:(t,e,n)=>{n(8476),n(5086),n(8379),n(7899),n(2231),n(115),xtools.autoedits={},$((function(){if($("body.autoedits").length){var t=$(".contributions-container"),e=$("#tool_selector");if(e.length)return xtools.autoedits.fetchTools=function(t){e.prop("disabled",!0),$.get("/api/project/automated_tools/"+t).done((function(t){t.error||(delete t.project,delete t.elapsed_time,e.html('"),Object.keys(t).forEach((function(n){e.append('")}))),e.prop("disabled",!1)}))},$(document).ready((function(){$("#project_input").on("change.autoedits",(function(){xtools.autoedits.fetchTools($("#project_input").val())}))})),void xtools.autoedits.fetchTools($("#project_input").val());if(xtools.application.setupToggleTable(window.countsByTool,window.toolsChart,"count",(function(t){var e=0;Object.keys(t).forEach((function(n){e+=parseInt(t[n].count,10)}));var n=Object.keys(t).length;$(".tools--tools").text(n.toLocaleString(i18nLang)+" "+$.i18n("num-tools",n)),$(".tools--count").text(e.toLocaleString(i18nLang))})),t.length){var n=$(".contributions-table").length?"setupContributionsNavListeners":"loadContributions";xtools.application[n]((function(t){return"".concat(t.target,"-contributions/").concat(t.project,"/").concat(t.username)+"/".concat(t.namespace,"/").concat(t.start,"/").concat(t.end)}),t.data("target"))}}}))},3600:(t,e,n)=>{n(7136),n(173),n(9073),n(6048),n(8636),n(5086),xtools.blame={},$((function(){if($("body.blame").length){$(".diff-empty").length===$(".diff tr").length-1&&$(".diff-empty").eq(0).text("(".concat($.i18n("diff-empty").toLowerCase(),")")).addClass("text-muted text-center").prop("width","20%"),$(".diff-addedline").each((function(){var t=xtools.blame.query.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),e=function(e){var n=new RegExp("(".concat(t,")"),"gi");$(e).html($(e).html().replace(n,"$1"))};$(this).find(".diffchange-inline").length?$(".diffchange-inline").each((function(){e(this)})):e(this)}));var t=$("#show_selector");t.on("change",(function(t){$(".show-option").addClass("hidden").find("input").prop("disabled",!0),$(".show-option--".concat(t.target.value)).removeClass("hidden").find("input").prop("disabled",!1)})),window.onload=function(){return t.trigger("change")}}}))},514:(t,e,n)=>{function o(t,e){xtools.categoryedits.$select2Input.data("select2")&&(xtools.categoryedits.$select2Input.off("change"),xtools.categoryedits.$select2Input.select2("val",null),xtools.categoryedits.$select2Input.select2("data",null),xtools.categoryedits.$select2Input.select2("destroy"));var n=e||xtools.categoryedits.$select2Input.data("ns"),o={ajax:{url:t||xtools.categoryedits.$select2Input.data("api"),dataType:"jsonp",jsonpCallback:"categorySuggestionCallback",delay:200,data:function(t){return{action:"query",list:"prefixsearch",format:"json",pssearch:t.term||"",psnamespace:14,cirrusUseCompletionSuggester:"yes"}},processResults:function(t){var e=t?t.query:{},o=[];return e&&e.prefixsearch.length&&(o=e.prefixsearch.map((function(t){var e=t.title.replace(new RegExp("^"+n+":"),"");return{id:e.score(),text:e}}))),{results:o}}},placeholder:$.i18n("category-search"),maximumSelectionLength:10,minimumInputLength:1};xtools.categoryedits.$select2Input.select2(o)}n(475),n(8476),n(5086),n(8379),n(7899),n(2231),n(9581),n(7136),n(173),n(9073),n(6048),xtools.categoryedits={},$((function(){$("body.categoryedits").length&&$(document).ready((function(){var t;xtools.categoryedits.$select2Input=$("#category_selector"),o(),$("#project_input").on("xtools.projectLoaded",(function(t,e){$.get(xtBaseUrl+"api/project/namespaces/"+e.project).done((function(t){o(t.api,t.namespaces[14])}))})),$("form").on("submit",(function(){$("#category_input").val(xtools.categoryedits.$select2Input.val().join("|"))})),xtools.application.setupToggleTable(window.countsByCategory,window.categoryChart,"editCount",(function(t){var e=0,n=0;Object.keys(t).forEach((function(o){e+=parseInt(t[o].editCount,10),n+=parseInt(t[o].pageCount,10)}));var o=Object.keys(t).length;$(".category--category").text(o.toLocaleString(i18nLang)+" "+$.i18n("num-categories",o)),$(".category--count").text(e.toLocaleString(i18nLang)),$(".category--percent-of-edit-count").text(100*(e/xtools.categoryedits.userEditCount).toLocaleString(i18nLang)+"%"),$(".category--pages").text(n.toLocaleString(i18nLang))})),$(".contributions-container").length&&(t=$(".contributions-table").length?"setupContributionsNavListeners":"loadContributions",xtools.application[t]((function(t){return"categoryedits-contributions/"+t.project+"/"+t.username+"/"+t.categories+"/"+t.start+"/"+t.end}),"Category"))}))}))},5779:(t,e,n)=>{function o(t){$("#project_input").val(xtools.application.vars.lastProject),$(".site-notice").append("")}function a(){var t=$("#page_input"),e=$("#user_input"),n=$("#namespace_select");if(t[0]||e[0]||$("#project_input")[0]){t.data("typeahead")&&t.data("typeahead").destroy(),e.data("typeahead")&&e.data("typeahead").destroy(),xtools.application.vars.apiPath||(xtools.application.vars.apiPath=$("#page_input").data("api")||$("#user_input").data("api"));var o={url:xtools.application.vars.apiPath,timeout:200,triggerLength:1,method:"get",preDispatch:null,preProcess:null};t[0]&&t.typeahead({ajax:Object.assign(o,{preDispatch:function(t){n[0]&&"0"!==n.val()&&(t=n.find("option:selected").text().trim()+":"+t);return{action:"query",list:"prefixsearch",format:"json",pssearch:t}},preProcess:function(t){var e="";return n[0]&&"0"!==n.val()&&(e=n.find("option:selected").text().trim()),t.query.prefixsearch.map((function(t){return t.title.replace(new RegExp("^"+e+":"),"")}))}})}),e[0]&&e.typeahead({ajax:Object.assign(o,{preDispatch:function(t){return{action:"query",list:"prefixsearch",format:"json",pssearch:"User:"+t}},preProcess:function(t){return t.query.prefixsearch.map((function(t){return t.title.split("/")[0].substr(t.title.indexOf(":")+1)})).filter((function(t,e,n){return n.indexOf(t)===e}))}})})}}function i(t){t?($(".form-control").prop("readonly",!1),$(".form-submit").prop("disabled",!1),$(".form-submit").text($.i18n("submit")).prop("disabled",!1)):$("#content form").on("submit",(function(){document.activeElement.blur(),$(".form-control").prop("readonly",!0),$(".form-submit").prop("disabled",!0).html($.i18n("loading")+" ");var t=Date.now();setInterval((function(){var e=Math.round((Date.now()-t)/1e3),n=Math.floor(e/60),o=("00"+(e-60*n)).slice(-2);$("#submit_timer").text(n+":"+o)}),1e3)}))}n(8665),n(5086),n(9979),n(4602),n(789),n(933),n(9218),n(2231),n(8636),n(5231),n(6088),n(8476),n(8379),n(7899),n(4189),n(8329),n(9581),n(7136),n(173),n(9073),n(6048),n(9693),n(17),n(9560),n(9389),n(8772),n(4913),xtools={},xtools.application={},xtools.application.vars={sectionOffset:{}},xtools.application.chartGridColor="rgba(0, 0, 0, 0.1)",window.matchMedia("(prefers-color-scheme: dark)").matches&&(Chart.defaults.global.defaultFontColor="#AAA",xtools.application.chartGridColor="#333"),$.i18n({locale:i18nLang}).load(i18nPaths),$((function(){$(document).ready((function(){if($(".xt-hide").on("click",(function(){$(this).hide(),$(this).siblings(".xt-show").show(),$(this).parents(".panel-heading").length?$(this).parents(".panel-heading").siblings(".panel-body").hide():$(this).parents(".xt-show-hide--parent").next(".xt-show-hide--target").hide()})),$(".xt-show").on("click",(function(){$(this).hide(),$(this).siblings(".xt-hide").show(),$(this).parents(".panel-heading").length?$(this).parents(".panel-heading").siblings(".panel-body").show():$(this).parents(".xt-show-hide--parent").next(".xt-show-hide--target").show()})),function(){var t=$(window).width(),e=$(".tool-links").outerWidth(),n=$(".nav-buttons").outerWidth();if(t<768)return;e+n>t&&$(".tool-links--more").removeClass("hidden");var o=$(".tool-links--entry").length;for(;o>0&&e+n>t;){var a=$(".tool-links--nav > .tool-links--entry:not(.active)").last().remove();$(".tool-links--more .dropdown-menu").append(a),e=$(".tool-links").outerWidth(),o--}}(),xtools.application.setupColumnSorting(),function(){var t=$(".xt-toc");if(!t||!t[0])return;xtools.application.vars.tocHeight=t.height();var e=function(){$(".xt-toc").find("a").off("click").on("click",(function(t){document.activeElement.blur();var e=$("#"+$(t.target).data("section"));$(window).scrollTop(e.offset().top-xtools.application.vars.tocHeight),$(this).parents(".xt-toc").find("a").removeClass("bold"),n(),xtools.application.vars.$tocClone.addClass("bold")}))};xtools.application.setupTocListeners=e;var n=function(){xtools.application.vars.$tocClone||(xtools.application.vars.$tocClone=t.clone(),xtools.application.vars.$tocClone.addClass("fixed"),t.after(xtools.application.vars.$tocClone),e())};xtools.application.buildSectionOffsets=function(){$.each(t.find("a"),(function(t,e){var n=$(e).data("section");xtools.application.vars.sectionOffset[n]=$("#"+n).offset().top}))},$(".xt-show, .xt-hide").on("click",xtools.application.buildSectionOffsets),xtools.application.buildSectionOffsets(),e();var o=t.offset().top;$(window).on("scroll.toc",(function(t){var e,a=$(t.target).scrollTop(),i=a>o;i?(xtools.application.vars.$tocClone||n(),Object.keys(xtools.application.vars.sectionOffset).forEach((function(t){a>xtools.application.vars.sectionOffset[t]-xtools.application.vars.tocHeight-1&&(e=xtools.application.vars.$tocClone.find('a[data-section="'+t+'"]'))})),xtools.application.vars.$tocClone.find("a").removeClass("bold"),e&&e.addClass("bold")):!i&&xtools.application.vars.$tocClone&&(xtools.application.vars.$tocClone.remove(),xtools.application.vars.$tocClone=null)}))}(),function(){var t=$(".table-sticky-header");if(!t||!t[0])return;var e,n=t.find("thead tr").eq(0),o=function(){e||(e=n.clone(),n.addClass("sticky-heading"),n.before(e),n.find("th").each((function(t){$(this).css("width",e.find("th").eq(t).outerWidth())})),n.css("width",e.outerWidth()+1))},a=t.offset().top;$(window).on("scroll.stickyHeader",(function(i){var r=$(i.target).scrollTop()>a;r&&!e?o():!r&&e?(n.removeClass("sticky-heading"),e.remove(),e=null):e&&n.css("top",$(window).scrollTop()-t.offset().top)}))}(),function(){var t=$("#project_input");if(!t)return;t.length&&$("#namespace_select").length?(xtools.application.vars.lastProject=$("#project_input").val(),$("#project_input").off("change").on("change",(function(){$("#namespace_select").prop("disabled",!0);var t=this.value;$.get(xtBaseUrl+"api/project/namespaces/"+t).done((function(e){var n=$('#namespace_select option[value="all"]').eq(0).clone();for(var o in $("#namespace_select").html(n),xtools.application.vars.apiPath=e.api,e.namespaces)if(e.namespaces.hasOwnProperty(o)){var i=0===parseInt(o,10)?$.i18n("mainspace"):e.namespaces[o];$("#namespace_select").append("")}$("#namespace_select").val(0),xtools.application.vars.lastProject=t,a()})).fail(o.bind(this,t)).always((function(){$("#namespace_select").prop("disabled",!1)}))})),$("#namespace_select").on("change",a)):($("#user_input")[0]||$("#page_input")[0])&&(xtools.application.vars.lastProject=t.val(),t.on("change",(function(){var e=this.value;$.get(xtBaseUrl+"api/project/normalize/"+e).done((function(n){xtools.application.vars.apiPath=n.api,xtools.application.vars.lastProject=e,a(),t.trigger("xtools.projectLoaded",n)})).fail(o.bind(this,e))})))}(),a(),i(),"function"==typeof URL){var t=new URL(window.location.href).searchParams.get("focus");t&&$("[name=".concat(t,"]")).focus()}})),window.onpageshow=function(t){t.persisted&&i(!0)}})),xtools.application.setupToggleTable=function(t,e,n,o){var a;$(".toggle-table").on("click",".toggle-table--toggle",(function(){a||(a=Object.assign({},t));var i=$(this).data("index"),r=$(this).data("key");"true"===$(this).attr("data-disabled")?(a[r]=t[r],e.data.datasets[0].data[i]=parseInt(n?a[r][n]:a[r],10),$(this).attr("data-disabled","false")):(delete a[r],e.data.datasets[0].data[i]=null,$(this).attr("data-disabled","true")),$(this).parents("tr").toggleClass("excluded"),$(this).find(".glyphicon").toggleClass("glyphicon-remove").toggleClass("glyphicon-plus"),o(a,r,i),e.update()}))},xtools.application.setupColumnSorting=function(){var t,e;$(".sort-link").on("click",(function(){t=e===$(this).data("column")?-t:1,$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var n=1===t?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";$(this).find(".glyphicon").addClass(n).removeClass("glyphicon-sort"),e=$(this).data("column");var o=$(this).parents("table"),a=o.find(".sort-entry--"+e).parent();a.length&&(a.sort((function(n,o){var a=$(n).find(".sort-entry--"+e).data("value")||0,i=$(o).find(".sort-entry--"+e).data("value")||0;return isNaN(a)||(a=parseFloat(a)||0),isNaN(i)||(i=parseFloat(i)||0),ai?-t:0})),$(".sort-entry--rank").length>0&&$.each(a,(function(t,e){$(e).find(".sort-entry--rank").text(t+1)})),o.find("tbody").html(a))}))},xtools.application.setupMultiSelectListeners=function(){var t=$(".multi-select--body:not(.hidden) .multi-select--option");t.on("change",(function(){$(".multi-select--all").prop("checked",$(".multi-select--body:not(.hidden) .multi-select--option:checked").length===t.length)})),$(".multi-select--all").on("click",(function(){t.prop("checked",$(this).prop("checked"))}))}},6618:(t,e,n)=>{function o(){xtools.application.vars.offset||(xtools.application.vars.initialOffset=$(".contributions-container").data("offset"),xtools.application.vars.offset=xtools.application.vars.initialOffset)}n(9218),n(2231),n(8665),n(5086),n(9979),n(4602),n(933),n(7136),n(785),n(9389),n(6048),n(9073),n(173),Object.assign(xtools.application.vars,{initialOffset:"",offset:"",prevOffsets:[],initialLoad:!1}),xtools.application.loadContributions=function(t,e){o();var n=$(".contributions-container"),a=$(".contributions-loading"),i=n.data(),r=t(i),s=parseInt(i.limit,10)||50,l=new URLSearchParams(window.location.search),u=xtBaseUrl+r+"/"+xtools.application.vars.offset,c=location.pathname.split("/")[1],d=u.split("/")[1];n.addClass("contributions-container--loading"),a.show(),l.set("limit",s.toString()),l.append("htmlonly","yes"),$.ajax({url:u+"?"+l.toString(),timeout:6e4}).always((function(){n.removeClass("contributions-container--loading"),a.hide()})).done((function(o){if(n.html(o).show(),xtools.application.setupContributionsNavListeners(t,e),xtools.application.vars.initialOffset||(xtools.application.vars.initialOffset=$(".contribs-row-date").first().data("value"),xtools.application.vars.initialLoad=!0),c!==d){var a=new RegExp("^/".concat(d,"/(.*)/"));u=u.replace(a,"/".concat(c,"/$1/"))}xtools.application.vars.initialLoad?xtools.application.vars.initialLoad=!1:(l.delete("htmlonly"),window.history.replaceState(null,document.title,u+"?"+l.toString()),n.parents(".panel")[0].scrollIntoView()),xtools.application.vars.offset"+i+"")).show()}))},xtools.application.setupContributionsNavListeners=function(t,e){o(),$(".contributions--prev").off("click").one("click",(function(n){n.preventDefault(),xtools.application.vars.offset=xtools.application.vars.prevOffsets.pop()||xtools.application.vars.initialOffset,xtools.application.loadContributions(t,e)})),$(".contributions--next").off("click").one("click",(function(n){n.preventDefault(),xtools.application.vars.offset&&xtools.application.vars.prevOffsets.push(xtools.application.vars.offset),xtools.application.vars.offset=$(".contribs-row-date").last().data("value"),xtools.application.loadContributions(t,e)})),$("#contributions_limit").on("change",(function(t){var e=parseInt(t.target.value,10);$(".contributions-container").data("limit",e),$(".contributions--prev-text").text($.i18n("pager-newer-n",e).capitalize()),$(".contributions--next-text").text($.i18n("pager-older-n",e).capitalize())}))}},9143:(t,e,n)=>{n(7136),n(173),n(17),n(5086),n(9693),n(5852),n(4913),String.prototype.descore=function(){return this.replace(/_/g," ")},String.prototype.score=function(){return this.replace(/ /g,"_")},String.prototype.escape=function(){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,(function(e){return t[e]}))},Array.prototype.unique=function(){return this.filter((function(t,e,n){return n.indexOf(t)===e}))},Object.defineProperty(String.prototype,"capitalize",{value:function(){return this.charAt(0).toUpperCase()+this.slice(1)},enumerable:!1})},9307:(t,e,n)=>{function o(t,e){var n=0,o=[];Object.keys(t).forEach((function(e){var a=parseInt(t[e],10);o.push(a),n+=a}));var i=Object.keys(t).length;$(".namespaces--namespaces").text(i.toLocaleString(i18nLang)+" "+$.i18n("num-namespaces",i)),$(".namespaces--count").text(n.toLocaleString(i18nLang)),o.forEach((function(t){var e=r(t,n);$(".namespaces-table .sort-entry--count[data-value="+t+"]").text(t.toLocaleString(i18nLang)+" ("+e+")")})),["year","month"].forEach((function(t){var n=window[t+"countsChart"],o=window.namespaces[e]||$.i18n("mainspace");if(n){var i=0;n.data.datasets.forEach((function(t,e){t.label===o&&(i=e)}));var r=n.getDatasetMeta(i);r.hidden=null===r.hidden?!n.data.datasets[i].hidden:null,r.hidden?xtools.editcounter.excludedNamespaces.push(o):xtools.editcounter.excludedNamespaces=xtools.editcounter.excludedNamespaces.filter((function(t){return t!==o})),window[t+"countsChart"].config.data.labels=a(t,n.data.datasets),n.update()}}))}function a(t,e){var n=i(t,e);return Object.keys(n).map((function(e){var o=n[e].toString().length,a=2*(xtools.editcounter.maxDigits[t]-o);return e+Array(a+5).join("\t")+n[e].toLocaleString(i18nLang,{useGrouping:!1})}))}function i(t,e){var n={};return e.forEach((function(e){-1===xtools.editcounter.excludedNamespaces.indexOf(e.label)&&e.data.forEach((function(e,o){n[xtools.editcounter.chartLabels[t][o]]||(n[xtools.editcounter.chartLabels[t][o]]=0),n[xtools.editcounter.chartLabels[t][o]]+=e}))})),n}function r(t,e){return(t/e).toLocaleString(i18nLang,{style:"percent"})}n(8476),n(5086),n(8379),n(7899),n(2231),n(17),n(9581),n(9389),n(6048),n(475),n(9693),n(7136),n(173),n(2982),n(533),n(8825),n(115),n(6088),xtools.editcounter={},xtools.editcounter.excludedNamespaces=[],xtools.editcounter.chartLabels={},xtools.editcounter.maxDigits={},$((function(){0!==$("body.editcounter").length&&(xtools.application.setupMultiSelectListeners(),$(".chart-wrapper").each((function(){var t=$(this).data("chart-type");if(void 0===t)return!1;var e=$(this).data("chart-data"),n=$(this).data("chart-labels"),o=$("canvas",$(this));new Chart(o,{type:t,data:{labels:n,datasets:[{data:e}]}})})),xtools.application.setupToggleTable(window.namespaceTotals,window.namespaceChart,null,o))})),xtools.editcounter.setupMonthYearChart=function(t,e,n,o,s){var l=e.map((function(t){return t.label}));xtools.editcounter.maxDigits[t]=o.toString().length,xtools.editcounter.chartLabels[t]=n,window[t+"countsChart"]=new Chart($("#"+t+"counts-canvas"),{type:"horizontalBar",data:{labels:a(t,e),datasets:e},options:{tooltips:{mode:"nearest",intersect:!0,callbacks:{label:function(n){var o=i(t,e),a=Object.keys(o).map((function(t){return o[t]})),s=a[n.index],l=r(n.xLabel,s);return n.xLabel.toLocaleString(i18nLang)+" ("+l+")"},title:function(t){return t[0].yLabel.replace(/\t.*/,"")+" - "+l[t[0].datasetIndex]}}},responsive:!0,maintainAspectRatio:!1,scales:{xAxes:[{stacked:!0,ticks:{beginAtZero:!0,reverse:i18nRTL,callback:function(t){if(Math.floor(t)===t)return t.toLocaleString(i18nLang)}},gridLines:{color:xtools.application.chartGridColor}}],yAxes:[{stacked:!0,barThickness:18,position:i18nRTL?"right":"left",gridLines:{color:xtools.application.chartGridColor}}]},legend:{display:s}}})},xtools.editcounter.setupTimecard=function(t,e){var n=(new Date).getTimezoneOffset()/60;t=t.map((function(t){return t.backgroundColor=new Array(t.data.length).fill(t.backgroundColor),t})),window.chart=new Chart($("#timecard-bubble-chart"),{type:"bubble",data:{datasets:t},options:{responsive:!0,legend:{display:!1},layout:{padding:{right:0}},elements:{point:{radius:function(t){var e=t.dataIndex;return t.dataset.data[e].scale},hitRadius:8}},scales:{yAxes:[{ticks:{min:0,max:8,stepSize:1,padding:25,callback:function(t,n){return e[n]}},position:i18nRTL?"right":"left",gridLines:{color:xtools.application.chartGridColor}},{ticks:{min:0,max:8,stepSize:1,padding:25,callback:function(e,n){return 0===n||n>7?"":(window.chart?chart.data.datasets:t)[n-1].data.reduce((function(t,e){return t+parseInt(e.value,10)}),0)}},position:i18nRTL?"left":"right"}],xAxes:[{ticks:{beginAtZero:!0,min:0,max:24,stepSize:1,reverse:i18nRTL,padding:0,callback:function(t){return t%2==0?t+":00":""}},gridLines:{color:xtools.application.chartGridColor}}]},tooltips:{displayColors:!1,callbacks:{title:function(t){return e[7-t[0].yLabel+1]+" "+parseInt(t[0].xLabel)+":"+String(t[0].xLabel%1*60).padStart(2,"0")},label:function(e){var n=[t[e.datasetIndex].data[e.index].value];return"".concat(n," ").concat($.i18n("num-edits",[n]))}}}}}),$((function(){$(".use-local-time").prop("checked",!1).on("click",(function(){var t=$(this).is(":checked")?n:-n,e=new Array(7);chart.data.datasets.forEach((function(t){return e[t.data[0].day_of_week-1]=t.backgroundColor[0]})),chart.data.datasets=chart.data.datasets.map((function(n){var o=[];return n.data=n.data.map((function(n){var a=parseFloat(n.hour)-t,i=parseInt(n.day_of_week,10);return a<0?(a=24+a,(i-=1)<1&&(i=7+i)):a>=24&&(a-=24,(i+=1)>7&&(i-=7)),n.hour=a.toString(),n.x=a.toString(),n.day_of_week=i.toString(),n.y=(8-i).toString(),o.push(e[i-1]),n})),n.backgroundColor=o,n})),$(this).is(":checked"),chart.update()}))}))}},6730:(t,e,n)=>{n(115),xtools.globalcontribs={},$((function(){0!==$("body.globalcontribs").length&&xtools.application.setupContributionsNavListeners((function(t){return"globalcontribs/".concat(t.username,"/").concat(t.namespace,"/").concat(t.start,"/").concat(t.end)}),"globalcontribs")}))},1680:(t,e,n)=>{n(7136),n(173),xtools.pageinfo={},$((function(){if($("body.pageinfo").length){var t=function(){xtools.application.setupToggleTable(window.textshares,window.textsharesChart,"percentage",$.noop)},e=$(".textshares-container");if(e[0]){var n=xtBaseUrl+"authorship/"+e.data("project")+"/"+e.data("page")+"/"+(xtools.pageinfo.endDate?xtools.pageinfo.endDate+"/":"");n="".concat(n.replace(/\/$/,""),"?htmlonly=yes"),$.ajax({url:n,timeout:3e4}).done((function(n){e.replaceWith(n),xtools.application.buildSectionOffsets(),xtools.application.setupTocListeners(),xtools.application.setupColumnSorting(),t()})).fail((function(t,n,o){e.replaceWith($.i18n("api-error","Authorship API: "+o+""))}))}else $(".textshares-table").length&&t()}}))},1595:(t,e,n)=>{n(8476),n(5086),n(8379),n(7899),n(4867),n(9389),n(6048),n(8636),xtools.pages={},$((function(){if($("body.pages").length){var t={};xtools.application.setupToggleTable(window.countsByNamespace,window.pieChart,"count",(function(t){var e={count:0,deleted:0,redirects:0};Object.keys(t).forEach((function(n){e.count+=t[n].count,e.deleted+=t[n].deleted,e.redirects+=t[n].redirects})),$(".namespaces--namespaces").text(Object.keys(t).length.toLocaleString()+" "+$.i18n("num-namespaces",Object.keys(t).length)),$(".namespaces--pages").text(e.count.toLocaleString()),$(".namespaces--deleted").text(e.deleted.toLocaleString()+" ("+(e.deleted/e.count*100).toFixed(1)+"%)"),$(".namespaces--redirects").text(e.redirects.toLocaleString()+" ("+(e.redirects/e.count*100).toFixed(1)+"%)")})),$(".deleted-page").on("mouseenter",(function(e){var n=$(this).data("page-title"),o=$(this).data("namespace"),a=$(this).data("datetime").toString(),i=$(this).data("username"),r=function(t){$(e.target).find(".tooltip-body").html(t)};if(void 0!==t[o+"/"+n])return r(t[o+"/"+n]);var s=function(){r(""+$.i18n("api-error","Deletion Summary API")+"")};$.ajax({url:xtBaseUrl+"pages/deletion_summary/"+wikiDomain+"/"+i+"/"+o+"/"+n+"/"+a}).done((function(e){if(null===e.summary)return s();r(e.summary),t[o+"/"+n]=e.summary})).fail(s)}))}}))},1223:()=>{xtools.topedits={},$((function(){$("body.topedits").length&&$("#namespace_select").on("change",(function(){$("#page_input").prop("disabled","all"===$(this).val())}))}))},7852:(t,e,n)=>{var o,a,i,s;function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}n(7136),n(6255),n(2231),n(4913),n(6088),n(9389),n(5086),n(6048),n(8665),n(4602),n(115),n(8476),n(9693),n(475),n(9581),n(2982),n(4009),n(17),n(2157),n(8763),n(9560),n(5852),n(8379),n(7899),n(533),n(4538),n(1145),n(6943),n(8772),n(5231),n(4867),n(4895),n(4189),n(557),n(8844),n(2006),n(3534),n(590),n(4216),n(9979),s=function(){return function t(e,n,o){function a(r,s){if(!n[r]){if(!e[r]){if(i)return i(r,!0);var l=new Error("Cannot find module '"+r+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[r]={exports:{}};e[r][0].call(u.exports,(function(t){return a(e[r][1][t]||t)}),u,u.exports,t,e,n,o)}return n[r].exports}for(var i=void 0,r=0;rn?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=this,o=t,a=void 0===e?.5:e,i=2*a-1,r=n.alpha()-o.alpha(),s=((i*r==-1?i:(i+r)/(1+i*r))+1)/2,l=1-s;return this.rgb(s*n.red()+l*o.red(),s*n.green()+l*o.green(),s*n.blue()+l*o.blue()).alpha(n.alpha()*a+o.alpha()*(1-a))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new i,o=this.values,a=n.values;for(var r in o)o.hasOwnProperty(r)&&(t=o[r],"[object Array]"===(e={}.toString.call(t))?a[r]=t.slice(0):"[object Number]"===e?a[r]=t:console.error("unexpected color value:",t));return n}},i.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},i.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},i.prototype.getValues=function(t){for(var e=this.values,n={},o=0;o.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92)),100*(.2126*e+.7152*n+.0722*o),100*(.0193*e+.1192*n+.9505*o)]}function c(t){var e=u(t),n=e[0],o=e[1],a=e[2];return o/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116)-16,500*(n-o),200*(o-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]}function d(t){var e,n,o,a,i,r=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return[i=255*l,i,i];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var u=0;u<3;u++)(o=r+1/3*-(u-1))<0&&o++,o>1&&o--,i=6*o<1?e+6*(n-e)*o:2*o<1?n:3*o<2?e+(n-e)*(2/3-o)*6:e,a[u]=255*i;return a}function h(t){var e=t[0]/60,n=t[1]/100,o=t[2]/100,a=Math.floor(e)%6,i=e-Math.floor(e),r=255*o*(1-n),s=255*o*(1-n*i),l=255*o*(1-n*(1-i));switch(o*=255,a){case 0:return[o,l,r];case 1:return[s,o,r];case 2:return[r,o,l];case 3:return[r,s,o];case 4:return[l,r,o];case 5:return[o,r,s]}}function f(t){var e,n,o,a,i=t[0]/360,s=t[1]/100,l=t[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),o=6*i-(e=Math.floor(6*i)),!!(1&e)&&(o=1-o),a=s+o*((n=1-l)-s),e){default:case 6:case 0:r=n,g=a,b=s;break;case 1:r=a,g=n,b=s;break;case 2:r=s,g=n,b=a;break;case 3:r=s,g=a,b=n;break;case 4:r=a,g=s,b=n;break;case 5:r=n,g=s,b=a}return[255*r,255*g,255*b]}function p(t){var e=t[0]/100,n=t[1]/100,o=t[2]/100,a=t[3]/100;return[255*(1-Math.min(1,e*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,o*(1-a)+a))]}function v(t){var e,n,o,a=t[0]/100,i=t[1]/100,r=t[2]/100;return n=-.9689*a+1.8758*i+.0415*r,o=.0557*a+-.204*i+1.057*r,e=(e=3.2406*a+-1.5372*i+-.4986*r)>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*=12.92,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(o=Math.min(Math.max(0,o),1))]}function m(t){var e=t[0],n=t[1],o=t[2];return n/=100,o/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]}function x(t){var e,n,o,a,i=t[0],r=t[1],s=t[2];return i<=8?a=(n=100*i/903.3)/100*7.787+16/116:(n=100*Math.pow((i+16)/116,3),a=Math.pow(n/100,1/3)),[e=e/95.047<=.008856?e=95.047*(r/500+a-16/116)/7.787:95.047*Math.pow(r/500+a,3),n,o=o/108.883<=.008859?o=108.883*(a-s/200-16/116)/7.787:108.883*Math.pow(a-s/200,3)]}function y(t){var e,n=t[0],o=t[1],a=t[2];return(e=360*Math.atan2(a,o)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(o*o+a*a),e]}function k(t){return v(x(t))}function w(t){var e,n=t[0],o=t[1];return e=t[2]/360*2*Math.PI,[n,o*Math.cos(e),o*Math.sin(e)]}function C(t){return S[t]}e.exports={rgb2hsl:o,rgb2hsv:a,rgb2hwb:i,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:u,rgb2lab:c,rgb2lch:function(t){return y(c(t))},hsl2rgb:d,hsl2hsv:function(t){var e=t[0],n=t[1]/100,o=t[2]/100;return 0===o?[0,0,0]:[e,2*(n*=(o*=2)<=1?o:2-o)/(o+n)*100,(o+n)/2*100]},hsl2hwb:function(t){return i(d(t))},hsl2cmyk:function(t){return s(d(t))},hsl2keyword:function(t){return l(d(t))},hsv2rgb:h,hsv2hsl:function(t){var e,n,o=t[0],a=t[1]/100,i=t[2]/100;return e=a*i,[o,100*(e=(e/=(n=(2-a)*i)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(t){return i(h(t))},hsv2cmyk:function(t){return s(h(t))},hsv2keyword:function(t){return l(h(t))},hwb2rgb:f,hwb2hsl:function(t){return o(f(t))},hwb2hsv:function(t){return a(f(t))},hwb2cmyk:function(t){return s(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:p,cmyk2hsl:function(t){return o(p(t))},cmyk2hsv:function(t){return a(p(t))},cmyk2hwb:function(t){return i(p(t))},cmyk2keyword:function(t){return l(p(t))},keyword2rgb:C,keyword2hsl:function(t){return o(C(t))},keyword2hsv:function(t){return a(C(t))},keyword2hwb:function(t){return i(C(t))},keyword2cmyk:function(t){return s(C(t))},keyword2lab:function(t){return c(C(t))},keyword2xyz:function(t){return u(C(t))},xyz2rgb:v,xyz2lab:m,xyz2lch:function(t){return y(m(t))},lab2xyz:x,lab2rgb:k,lab2lch:y,lch2lab:w,lch2xyz:function(t){return x(w(t))},lch2rgb:function(t){return k(w(t))}};var S={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]},M={};for(var _ in S)M[JSON.stringify(S[_])]=_},{}],5:[function(t,e,n){var o=t(4),a=function(){return new u};for(var i in o){a[i+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),o[t](e)}}(i);var r=/(\w+)2(\w+)/.exec(i),s=r[1],l=r[2];(a[s]=a[s]||{})[l]=a[i]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var n=o[t](e);if("string"==typeof n||void 0===n)return n;for(var a=0;a0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index=0&&a>0)&&(v+=a));return i=d.getPixelForValue(v),{size:s=((r=d.getPixelForValue(v+f))-i)/2,base:i,head:r,center:r+s/2}},calculateBarIndexPixels:function(t,e,n){var o,a,r,s,l,u=n.scale.options,c=this.getStackIndex(t),d=n.pixels,h=d[e],f=d.length,p=n.start,g=n.end;return 1===f?(o=h>p?h-p:g-h,a=h0&&(o=(h-d[e-1])/2,e===f-1&&(a=o)),e');var n=t.data,o=n.datasets,a=n.labels;if(o.length)for(var i=0;i'),a[i]&&e.push(a[i]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,o){var a=t.getDatasetMeta(0),r=e.datasets[0],s=a.data[o],l=s&&s.custom||{},u=i.valueAtIndexOrDefault,c=t.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(r.backgroundColor,o,c.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(r.borderColor,o,c.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(r.borderWidth,o,c.borderWidth),hidden:isNaN(r.data[o])||a.data[o].hidden,index:o}})):[]}},onClick:function(t,e){var n,o,a,i=e.index,r=this.chart;for(n=0,o=(r.data.datasets||[]).length;n=Math.PI?-1:p<-Math.PI?1:0))+f,v={x:Math.cos(p),y:Math.sin(p)},m={x:Math.cos(g),y:Math.sin(g)},b=p<=0&&g>=0||p<=2*Math.PI&&2*Math.PI<=g,x=p<=.5*Math.PI&&.5*Math.PI<=g||p<=2.5*Math.PI&&2.5*Math.PI<=g,y=p<=-Math.PI&&-Math.PI<=g||p<=Math.PI&&Math.PI<=g,k=p<=.5*-Math.PI&&.5*-Math.PI<=g||p<=1.5*Math.PI&&1.5*Math.PI<=g,w=h/100,C={x:y?-1:Math.min(v.x*(v.x<0?1:w),m.x*(m.x<0?1:w)),y:k?-1:Math.min(v.y*(v.y<0?1:w),m.y*(m.y<0?1:w))},S={x:b?1:Math.max(v.x*(v.x>0?1:w),m.x*(m.x>0?1:w)),y:x?1:Math.max(v.y*(v.y>0?1:w),m.y*(m.y>0?1:w))},M={width:.5*(S.x-C.x),height:.5*(S.y-C.y)};u=Math.min(s/M.width,l/M.height),c={x:-.5*(S.x+C.x),y:-.5*(S.y+C.y)}}n.borderWidth=e.getMaxBorderWidth(d.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(h?n.outerRadius/100*h:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=c.x*n.outerRadius,n.offsetY=c.y*n.outerRadius,d.total=e.calculateTotal(),e.outerRadius=n.outerRadius-n.radiusLength*e.getRingIndex(e.index),e.innerRadius=Math.max(e.outerRadius-n.radiusLength,0),i.each(d.data,(function(n,o){e.updateElement(n,o,t)}))},updateElement:function(t,e,n){var o=this,a=o.chart,r=a.chartArea,s=a.options,l=s.animation,u=(r.left+r.right)/2,c=(r.top+r.bottom)/2,d=s.rotation,h=s.rotation,f=o.getDataset(),p=n&&l.animateRotate||t.hidden?0:o.calculateCircumference(f.data[e])*(s.circumference/(2*Math.PI)),g=n&&l.animateScale?0:o.innerRadius,v=n&&l.animateScale?0:o.outerRadius,m=i.valueAtIndexOrDefault;i.extend(t,{_datasetIndex:o.index,_index:e,_model:{x:u+a.offsetX,y:c+a.offsetY,startAngle:d,endAngle:h,circumference:p,outerRadius:v,innerRadius:g,label:m(f.label,e,a.data.labels[e])}});var b=t._model;this.removeHoverStyle(t),n&&l.animateRotate||(b.startAngle=0===e?s.rotation:o.getMeta().data[e-1]._model.endAngle,b.endAngle=b.startAngle+b.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,e=this.getDataset(),n=this.getMeta(),o=0;return i.each(n.data,(function(n,a){t=e.data[a],isNaN(t)||n.hidden||(o+=Math.abs(t))})),o},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,n,o=0,a=this.index,i=t.length,r=0;r(o=e>o?e:o)?n:o;return o}})}},{25:25,40:40,45:45}],18:[function(t,e,n){"use strict";var o=t(25),a=t(40),i=t(45);o._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(t){function e(t,e){return i.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,update:function(t){var n,o,a,r=this,s=r.getMeta(),l=s.dataset,u=s.data||[],c=r.chart.options,d=c.elements.line,h=r.getScaleForId(s.yAxisID),f=r.getDataset(),p=e(f,c);for(p&&(a=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=h,l._datasetIndex=r.index,l._children=u,l._model={spanGaps:f.spanGaps?f.spanGaps:c.spanGaps,tension:a.tension?a.tension:i.valueOrDefault(f.lineTension,d.tension),backgroundColor:a.backgroundColor?a.backgroundColor:f.backgroundColor||d.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:f.borderWidth||d.borderWidth,borderColor:a.borderColor?a.borderColor:f.borderColor||d.borderColor,borderCapStyle:a.borderCapStyle?a.borderCapStyle:f.borderCapStyle||d.borderCapStyle,borderDash:a.borderDash?a.borderDash:f.borderDash||d.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:f.borderDashOffset||d.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:f.borderJoinStyle||d.borderJoinStyle,fill:a.fill?a.fill:void 0!==f.fill?f.fill:d.fill,steppedLine:a.steppedLine?a.steppedLine:i.valueOrDefault(f.steppedLine,d.stepped),cubicInterpolationMode:a.cubicInterpolationMode?a.cubicInterpolationMode:i.valueOrDefault(f.cubicInterpolationMode,d.cubicInterpolationMode)},l.pivot()),n=0,o=u.length;n');var n=t.data,o=n.datasets,a=n.labels;if(o.length)for(var i=0;i'),a[i]&&e.push(a[i]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,o){var a=t.getDatasetMeta(0),r=e.datasets[0],s=a.data[o].custom||{},l=i.valueAtIndexOrDefault,u=t.options.elements.arc;return{text:n,fillStyle:s.backgroundColor?s.backgroundColor:l(r.backgroundColor,o,u.backgroundColor),strokeStyle:s.borderColor?s.borderColor:l(r.borderColor,o,u.borderColor),lineWidth:s.borderWidth?s.borderWidth:l(r.borderWidth,o,u.borderWidth),hidden:isNaN(r.data[o])||a.data[o].hidden,index:o}})):[]}},onClick:function(t,e){var n,o,a,i=e.index,r=this.chart;for(n=0,o=(r.data.datasets||[]).length;n0&&!isNaN(t)?2*Math.PI/e:0}})}},{25:25,40:40,45:45}],20:[function(t,e,n){"use strict";var o=t(25),a=t(40),i=t(45);o._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,linkScales:i.noop,update:function(t){var e=this,n=e.getMeta(),o=n.dataset,a=n.data,r=o.custom||{},s=e.getDataset(),l=e.chart.options.elements.line,u=e.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),i.extend(n.dataset,{_datasetIndex:e.index,_scale:u,_children:a,_loop:!0,_model:{tension:r.tension?r.tension:i.valueOrDefault(s.lineTension,l.tension),backgroundColor:r.backgroundColor?r.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:s.borderWidth||l.borderWidth,borderColor:r.borderColor?r.borderColor:s.borderColor||l.borderColor,fill:r.fill?r.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:r.borderCapStyle?r.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:r.borderDash?r.borderDash:s.borderDash||l.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle}}),n.dataset.pivot(),i.each(a,(function(n,o){e.updateElement(n,o,t)}),e),e.updateBezierControlPoints()},updateElement:function(t,e,n){var o=this,a=t.custom||{},r=o.getDataset(),s=o.chart.scale,l=o.chart.options.elements.point,u=s.getPointPositionForValue(e,r.data[e]);void 0!==r.radius&&void 0===r.pointRadius&&(r.pointRadius=r.radius),void 0!==r.hitRadius&&void 0===r.pointHitRadius&&(r.pointHitRadius=r.hitRadius),i.extend(t,{_datasetIndex:o.index,_index:e,_scale:s,_model:{x:n?s.xCenter:u.x,y:n?s.yCenter:u.y,tension:a.tension?a.tension:i.valueOrDefault(r.lineTension,o.chart.options.elements.line.tension),radius:a.radius?a.radius:i.valueAtIndexOrDefault(r.pointRadius,e,l.radius),backgroundColor:a.backgroundColor?a.backgroundColor:i.valueAtIndexOrDefault(r.pointBackgroundColor,e,l.backgroundColor),borderColor:a.borderColor?a.borderColor:i.valueAtIndexOrDefault(r.pointBorderColor,e,l.borderColor),borderWidth:a.borderWidth?a.borderWidth:i.valueAtIndexOrDefault(r.pointBorderWidth,e,l.borderWidth),pointStyle:a.pointStyle?a.pointStyle:i.valueAtIndexOrDefault(r.pointStyle,e,l.pointStyle),hitRadius:a.hitRadius?a.hitRadius:i.valueAtIndexOrDefault(r.pointHitRadius,e,l.hitRadius)}}),t._model.skip=a.skip?a.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,e=this.getMeta();i.each(e.data,(function(n,o){var a=n._model,r=i.splineCurve(i.previousItem(e.data,o,!0)._model,a,i.nextItem(e.data,o,!0)._model,a.tension);a.controlPointPreviousX=Math.max(Math.min(r.previous.x,t.right),t.left),a.controlPointPreviousY=Math.max(Math.min(r.previous.y,t.bottom),t.top),a.controlPointNextX=Math.max(Math.min(r.next.x,t.right),t.left),a.controlPointNextY=Math.max(Math.min(r.next.y,t.bottom),t.top),n.pivot()}))},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},o=t._index,a=t._model;a.radius=n.hoverRadius?n.hoverRadius:i.valueAtIndexOrDefault(e.pointHoverRadius,o,this.chart.options.elements.point.hoverRadius),a.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:i.valueAtIndexOrDefault(e.pointHoverBackgroundColor,o,i.getHoverColor(a.backgroundColor)),a.borderColor=n.hoverBorderColor?n.hoverBorderColor:i.valueAtIndexOrDefault(e.pointHoverBorderColor,o,i.getHoverColor(a.borderColor)),a.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:i.valueAtIndexOrDefault(e.pointHoverBorderWidth,o,a.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},o=t._index,a=t._model,r=this.chart.options.elements.point;a.radius=n.radius?n.radius:i.valueAtIndexOrDefault(e.pointRadius,o,r.radius),a.backgroundColor=n.backgroundColor?n.backgroundColor:i.valueAtIndexOrDefault(e.pointBackgroundColor,o,r.backgroundColor),a.borderColor=n.borderColor?n.borderColor:i.valueAtIndexOrDefault(e.pointBorderColor,o,r.borderColor),a.borderWidth=n.borderWidth?n.borderWidth:i.valueAtIndexOrDefault(e.pointBorderWidth,o,r.borderWidth)}})}},{25:25,40:40,45:45}],21:[function(t,e,n){"use strict";t(25)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),e.exports=function(t){t.controllers.scatter=t.controllers.line}},{25:25}],22:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45);o._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:i.noop,onComplete:i.noop}}),e.exports=function(t){t.Animation=a.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,o){var a,i,r=this.animations;for(e.chart=t,o||(t.animating=!0),a=0,i=r.length;a1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);var o=Date.now();t.dropFrames+=(o-e)/t.frameDuration,t.animations.length>0&&t.requestAnimationFrame()},advance:function(t){for(var e,n,o=this.animations,a=0;a=e.numSteps?(i.callback(e.onAnimationComplete,[e],n),n.animating=!1,o.splice(a,1)):++a}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,n){"use strict";var o=t(25),a=t(45),i=t(28),r=t(48);e.exports=function(t){function e(t){var e=(t=t||{}).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=a.configMerge(o.global,o[t.type],t.options||{}),t}function n(t){return"top"===t||"bottom"===t}var s=t.plugins;t.types={},t.instances={},t.controllers={},a.extend(t.prototype,{construct:function(n,o){var i=this;o=e(o);var s=r.acquireContext(n,o),l=s&&s.canvas,u=l&&l.height,c=l&&l.width;i.id=a.uid(),i.ctx=s,i.canvas=l,i.config=o,i.width=c,i.height=u,i.aspectRatio=u?c/u:null,i.options=o.options,i._bufferedRender=!1,i.chart=i,i.controller=i,t.instances[i.id]=i,Object.defineProperty(i,"data",{get:function(){return i.config.data},set:function(t){i.config.data=t}}),s&&l?(i.initialize(),i.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return s.notify(t,"beforeInit"),a.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),s.notify(t,"afterInit"),t},clear:function(){return a.canvas.clear(this),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,o=e.canvas,i=n.maintainAspectRatio&&e.aspectRatio||null,r=Math.max(0,Math.floor(a.getMaximumWidth(o))),l=Math.max(0,Math.floor(i?r/i:a.getMaximumHeight(o)));if((e.width!==r||e.height!==l)&&(o.width=e.width=r,o.height=e.height=l,o.style.width=r+"px",o.style.height=l+"px",a.retinaScale(e,n.devicePixelRatio),!t)){var u={width:r,height:l};s.notify(e,"resize",[u]),e.options.onResize&&e.options.onResize(e,u),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;a.each(e.xAxes,(function(t,e){t.id=t.id||"x-axis-"+e})),a.each(e.yAxes,(function(t,e){t.id=t.id||"y-axis-"+e})),n&&(n.id=n.id||"scale")},buildScales:function(){var e=this,o=e.options,i=e.scales={},r=[];o.scales&&(r=r.concat((o.scales.xAxes||[]).map((function(t){return{options:t,dtype:"category",dposition:"bottom"}})),(o.scales.yAxes||[]).map((function(t){return{options:t,dtype:"linear",dposition:"left"}})))),o.scale&&r.push({options:o.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),a.each(r,(function(o){var r=o.options,s=a.valueOrDefault(r.type,o.dtype),l=t.scaleService.getScaleConstructor(s);if(l){n(r.position)!==n(o.dposition)&&(r.position=o.dposition);var u=new l({id:r.id,options:r,ctx:e.ctx,chart:e});i[u.id]=u,u.mergeTicksOptions(),o.isDefault&&(e.scale=u)}})),t.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,n=[],o=[];return a.each(e.data.datasets,(function(a,i){var r=e.getDatasetMeta(i),s=a.type||e.config.type;if(r.type&&r.type!==s&&(e.destroyDatasetMeta(i),r=e.getDatasetMeta(i)),r.type=s,n.push(r.type),r.controller)r.controller.updateIndex(i);else{var l=t.controllers[r.type];if(void 0===l)throw new Error('"'+r.type+'" is not a chart type.');r.controller=new l(e,i),o.push(r.controller)}}),e),o},resetElements:function(){var t=this;a.each(t.data.datasets,(function(e,n){t.getDatasetMeta(n).controller.reset()}),t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e=this;if(t&&"object"==l(t)||(t={duration:t,lazy:arguments[1]}),function(t){var e=t.options;e.scale?t.scale.options=e.scale:e.scales&&e.scales.xAxes.concat(e.scales.yAxes).forEach((function(e){t.scales[e.id].options=e})),t.tooltip._options=e.tooltips}(e),!1!==s.notify(e,"beforeUpdate")){e.tooltip._data=e.data;var n=e.buildOrUpdateControllers();a.each(e.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.buildOrUpdateElements()}),e),e.updateLayout(),a.each(n,(function(t){t.reset()})),e.updateDatasets(),s.notify(e,"afterUpdate"),e._bufferedRender?e._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:e.render(t)}},updateLayout:function(){var e=this;!1!==s.notify(e,"beforeLayout")&&(t.layoutService.update(this,this.width,this.height),s.notify(e,"afterScaleUpdate"),s.notify(e,"afterLayout"))},updateDatasets:function(){var t=this;if(!1!==s.notify(t,"beforeDatasetsUpdate")){for(var e=0,n=t.data.datasets.length;e=0;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);s.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this,o=n.getDatasetMeta(t),a={meta:o,index:t,easingValue:e};!1!==s.notify(n,"beforeDatasetDraw",[a])&&(o.controller.draw(e),s.notify(n,"afterDatasetDraw",[a]))},getElementAtEvent:function(t){return i.modes.single(this,t)},getElementsAtEvent:function(t){return i.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return i.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var o=i.modes[e];return"function"==typeof o?o(this,t,n):[]},getDatasetAtEvent:function(t){return i.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,n=e.data.datasets[t];n._meta||(n._meta={});var o=n._meta[e.id];return o||(o=n._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),o},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e0||(a.forEach((function(e){delete t[e]})),delete t._chartjs)}}var a=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},o.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null===e.xAxisID&&(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,o=n.getMeta(),a=n.getDataset().data||[],i=o.data;for(t=0,e=a.length;to&&t.insertElements(o,a-o)},insertElements:function(t,e){for(var n=0;n=n[e].length&&n[e].push({}),!n[e][r].type||l.type&&l.type!==n[e][r].type?i.merge(n[e][r],[t.scaleService.getScaleDefaults(s),l]):i.merge(n[e][r],l)}else i._merger(e,n,o,a)}})},i.where=function(t,e){if(i.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return i.each(t,(function(t){e(t)&&n.push(t)})),n},i.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var o=0,a=t.length;o=0;o--){var a=t[o];if(e(a))return a}},i.inherits=function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},o=function(){this.constructor=n};return o.prototype=e.prototype,n.prototype=new o,n.extend=i.inherits,t&&i.extend(n.prototype,t),n.__super__=e.prototype,n},i.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},i.almostEquals=function(t,e,n){return Math.abs(t-e)t},i.max=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.max(t,e)}),Number.NEGATIVE_INFINITY)},i.min=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.min(t,e)}),Number.POSITIVE_INFINITY)},i.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},i.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},i.toRadians=function(t){return t*(Math.PI/180)},i.toDegrees=function(t){return t*(180/Math.PI)},i.getAngleFromPoint=function(t,e){var n=e.x-t.x,o=e.y-t.y,a=Math.sqrt(n*n+o*o),i=Math.atan2(o,n);return i<-.5*Math.PI&&(i+=2*Math.PI),{angle:i,distance:a}},i.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},i.aliasPixel=function(t){return t%2==0?0:.5},i.splineCurve=function(t,e,n,o){var a=t.skip?e:t,i=e,r=n.skip?e:n,s=Math.sqrt(Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2)),l=Math.sqrt(Math.pow(r.x-i.x,2)+Math.pow(r.y-i.y,2)),u=s/(s+l),c=l/(s+l),d=o*(u=isNaN(u)?0:u),h=o*(c=isNaN(c)?0:c);return{previous:{x:i.x-d*(r.x-a.x),y:i.y-d*(r.y-a.y)},next:{x:i.x+h*(r.x-a.x),y:i.y+h*(r.y-a.y)}}},i.EPSILON=Number.EPSILON||1e-14,i.splineCurveMonotone=function(t){var e,n,o,a,r,s,l,u,c,d=(t||[]).map((function(t){return{model:t._model,deltaK:0,mK:0}})),h=d.length;for(e=0;e0?d[e-1]:null,(a=e0?d[e-1]:null,a=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},i.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},i.niceNum=function(t,e){var n=Math.floor(i.log10(t)),o=t/Math.pow(10,n);return(e?o<1.5?1:o<3?2:o<7?5:10:o<=1?1:o<=2?2:o<=5?5:10)*Math.pow(10,n)},i.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},i.getRelativePosition=function(t,e){var n,o,a=t.originalEvent||t,r=t.currentTarget||t.srcElement,s=r.getBoundingClientRect(),l=a.touches;l&&l.length>0?(n=l[0].clientX,o=l[0].clientY):(n=a.clientX,o=a.clientY);var u=parseFloat(i.getStyle(r,"padding-left")),c=parseFloat(i.getStyle(r,"padding-top")),d=parseFloat(i.getStyle(r,"padding-right")),h=parseFloat(i.getStyle(r,"padding-bottom")),f=s.right-s.left-u-d,p=s.bottom-s.top-c-h;return{x:n=Math.round((n-s.left-u)/f*r.width/e.currentDevicePixelRatio),y:o=Math.round((o-s.top-c)/p*r.height/e.currentDevicePixelRatio)}},i.getConstraintWidth=function(t){return r(t,"max-width","clientWidth")},i.getConstraintHeight=function(t){return r(t,"max-height","clientHeight")},i.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var n=parseInt(i.getStyle(e,"padding-left"),10),o=parseInt(i.getStyle(e,"padding-right"),10),a=e.clientWidth-n-o,r=i.getConstraintWidth(t);return isNaN(r)?a:Math.min(a,r)},i.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var n=parseInt(i.getStyle(e,"padding-top"),10),o=parseInt(i.getStyle(e,"padding-bottom"),10),a=e.clientHeight-n-o,r=i.getConstraintHeight(t);return isNaN(r)?a:Math.min(a,r)},i.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},i.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;if(1!==n){var o=t.canvas,a=t.height,i=t.width;o.height=a*n,o.width=i*n,t.ctx.scale(n,n),o.style.height=a+"px",o.style.width=i+"px"}},i.fontString=function(t,e,n){return e+" "+t+"px "+n},i.longestText=function(t,e,n,o){var a=(o=o||{}).data=o.data||{},r=o.garbageCollect=o.garbageCollect||[];o.font!==e&&(a=o.data={},r=o.garbageCollect=[],o.font=e),t.font=e;var s=0;i.each(n,(function(e){null!=e&&!0!==i.isArray(e)?s=i.measureText(t,a,r,s,e):i.isArray(e)&&i.each(e,(function(e){null==e||i.isArray(e)||(s=i.measureText(t,a,r,s,e))}))}));var l=r.length/2;if(l>n.length){for(var u=0;uo&&(o=i),o},i.numberOfLabelLines=function(t){var e=1;return i.each(t,(function(t){i.isArray(t)&&t.length>e&&(e=t.length)})),e},i.color=o?function(t){return t instanceof CanvasGradient&&(t=a.global.defaultColor),o(t)}:function(t){return console.error("Color.js not found!"),t},i.getHoverColor=function(t){return t instanceof CanvasPattern?t:i.color(t).saturate(.5).darken(.1).rgbString()}}},{25:25,3:3,45:45}],28:[function(t,e,n){"use strict";function o(t,e){return t.native?{x:t.x,y:t.y}:u.getRelativePosition(t,e)}function a(t,e){var n,o,a,i,r;for(o=0,i=t.data.datasets.length;o0&&(u=t.getDatasetMeta(u[0]._datasetIndex).data),u},"x-axis":function(t,e){return l(t,e,{intersect:!0})},point:function(t,e){return i(t,o(e,t))},nearest:function(t,e,n){var a=o(e,t);n.axis=n.axis||"xy";var i=s(n.axis),l=r(t,a,n.intersect,i);return l.length>1&&l.sort((function(t,e){var n=t.getArea()-e.getArea();return 0===n&&(n=t._datasetIndex-e._datasetIndex),n})),l.slice(0,1)},x:function(t,e,n){var i=o(e,t),r=[],s=!1;return a(t,(function(t){t.inXRange(i.x)&&r.push(t),t.inRange(i.x,i.y)&&(s=!0)})),n.intersect&&!s&&(r=[]),r},y:function(t,e,n){var i=o(e,t),r=[],s=!1;return a(t,(function(t){t.inYRange(i.y)&&r.push(t),t.inRange(i.x,i.y)&&(s=!0)})),n.intersect&&!s&&(r=[]),r}}}},{45:45}],29:[function(t,e,n){"use strict";t(25)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.Chart=t,t}},{25:25}],30:[function(t,e,n){"use strict";var o=t(45);e.exports=function(t){function e(t,e){return o.where(t,(function(t){return t.position===e}))}function n(t,e){t.forEach((function(t,e){return t._tmpIndex_=e,t})),t.sort((function(t,n){var o=e?n:t,a=e?t:n;return o.weight===a.weight?o._tmpIndex_-a._tmpIndex_:o.weight-a.weight})),t.forEach((function(t){delete t._tmpIndex_}))}t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var o,a=["fullWidth","position","weight"],i=a.length,r=0;rh&&lt.maxHeight){l--;break}l++,d=u*c}t.labelRotation=l},afterCalculateTickRotation:function(){s.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){s.callback(this.options.beforeFit,[this])},fit:function(){var t=this,a=t.minSize={width:0,height:0},i=o(t._ticks),r=t.options,u=r.ticks,c=r.scaleLabel,d=r.gridLines,h=r.display,f=t.isHorizontal(),p=n(u),g=r.gridLines.tickMarkLength;if(a.width=f?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:h&&d.drawTicks?g:0,a.height=f?h&&d.drawTicks?g:0:t.maxHeight,c.display&&h){var v=l(c)+s.options.toPadding(c.padding).height;f?a.height+=v:a.width+=v}if(u.display&&h){var m=s.longestText(t.ctx,p.font,i,t.longestTextCache),b=s.numberOfLabelLines(i),x=.5*p.size,y=t.options.ticks.padding;if(f){t.longestLabelWidth=m;var k=s.toRadians(t.labelRotation),w=Math.cos(k),C=Math.sin(k)*m+p.size*b+x*(b-1)+x;a.height=Math.min(t.maxHeight,a.height+C+y),t.ctx.font=p.font;var S=e(t.ctx,i[0],p.font),M=e(t.ctx,i[i.length-1],p.font);0!==t.labelRotation?(t.paddingLeft="bottom"===r.position?w*S+3:w*x+3,t.paddingRight="bottom"===r.position?w*x+3:w*M+3):(t.paddingLeft=S/2+3,t.paddingRight=M/2+3)}else u.mirror?m=0:m+=y+x,a.width=Math.min(t.maxWidth,a.width+m),t.paddingTop=p.size/2,t.paddingBottom=p.size/2}t.handleMargins(),t.width=a.width,t.height=a.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){s.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(s.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:s.noop,getPixelForValue:s.noop,getValueForPixel:s.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var o=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(n?0:1),1),a=o*t+e.paddingLeft;return n&&(a+=o/2),e.left+Math.round(a)+(e.isFullWidth()?e.margins.left:0)}var i=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(i/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft;return e.left+Math.round(n)+(e.isFullWidth()?e.margins.left:0)}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,n=t.max;return t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0},_autoSkip:function(t){var e,n,o,a,i=this,r=i.isHorizontal(),l=i.options.ticks.minor,u=t.length,c=s.toRadians(i.labelRotation),d=Math.cos(c),h=i.longestLabelWidth*d,f=[];for(l.maxTicksLimit&&(a=l.maxTicksLimit),r&&(e=!1,(h+l.autoSkipPadding)*u>i.width-(i.paddingLeft+i.paddingRight)&&(e=1+Math.floor((h+l.autoSkipPadding)*u/(i.width-(i.paddingLeft+i.paddingRight)))),a&&u>a&&(e=Math.max(e,Math.floor(u/a)))),n=0;n1&&n%e>0||n%e==0&&n+e>=u)&&n!==u-1||s.isNullOrUndef(o.label))&&delete o.label,f.push(o);return f},draw:function(t){var e=this,o=e.options;if(o.display){var r=e.ctx,u=i.global,c=o.ticks.minor,d=o.ticks.major||c,h=o.gridLines,f=o.scaleLabel,p=0!==e.labelRotation,g=e.isHorizontal(),v=c.autoSkip?e._autoSkip(e.getTicks()):e.getTicks(),m=s.valueOrDefault(c.fontColor,u.defaultFontColor),b=n(c),x=s.valueOrDefault(d.fontColor,u.defaultFontColor),y=n(d),k=h.drawTicks?h.tickMarkLength:0,w=s.valueOrDefault(f.fontColor,u.defaultFontColor),C=n(f),S=s.options.toPadding(f.padding),M=s.toRadians(e.labelRotation),_=[],I="right"===o.position?e.left:e.right-k,D="right"===o.position?e.left+k:e.right,P="bottom"===o.position?e.top:e.bottom-k,A="bottom"===o.position?e.top+k:e.bottom;if(s.each(v,(function(n,i){if(void 0!==n.label){var r,l,d,f,m=n.label;i===e.zeroLineIndex&&o.offset===h.offsetGridLines?(r=h.zeroLineWidth,l=h.zeroLineColor,d=h.zeroLineBorderDash,f=h.zeroLineBorderDashOffset):(r=s.valueAtIndexOrDefault(h.lineWidth,i),l=s.valueAtIndexOrDefault(h.color,i),d=s.valueOrDefault(h.borderDash,u.borderDash),f=s.valueOrDefault(h.borderDashOffset,u.borderDashOffset));var b,x,y,w,C,S,T,F,L,$,O="middle",z="middle",R=c.padding;if(g){var j=k+R;"bottom"===o.position?(z=p?"middle":"top",O=p?"right":"center",$=e.top+j):(z=p?"middle":"bottom",O=p?"left":"center",$=e.bottom-j);var B=a(e,i,h.offsetGridLines&&v.length>1);B1);E0)n=t.stepSize;else{var i=o.niceNum(e.max-e.min,!1);n=o.niceNum(i/(t.maxTicks-1),!0)}var r=Math.floor(e.min/n)*n,s=Math.ceil(e.max/n)*n;t.min&&t.max&&t.stepSize&&o.almostWhole((t.max-t.min)/t.stepSize,n/1e3)&&(r=t.min,s=t.max);var l=(s-r)/n;l=o.almostEquals(l,Math.round(l),n/1e3)?Math.round(l):Math.ceil(l),a.push(void 0!==t.min?t.min:r);for(var u=1;u3?n[2]-n[1]:n[1]-n[0];Math.abs(a)>1&&t!==Math.floor(t)&&(a=t-Math.floor(t));var i=o.log10(Math.abs(a)),r="";if(0!==t){var s=-1*Math.floor(i);s=Math.max(Math.min(s,20),0),r=t.toFixed(s)}else r="0";return r},logarithmic:function(t,e,n){var a=t/Math.pow(10,Math.floor(o.log10(t)));return 0===t?"0":1===a||2===a||5===a||0===e||e===n.length-1?t.toExponential():""}}}},{45:45}],35:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45);o._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:i.noop,title:function(t,e){var n="",o=e.labels,a=o?o.length:0;if(t.length>0){var i=t[0];i.xLabel?n=i.xLabel:a>0&&i.indexo.height-e.height&&(r="bottom");var s,l,u,c,d,h=(a.left+a.right)/2,f=(a.top+a.bottom)/2;"center"===r?(s=function(t){return t<=h},l=function(t){return t>h}):(s=function(t){return t<=e.width/2},l=function(t){return t>=o.width-e.width/2}),u=function(t){return t+e.width>o.width},c=function(t){return t-e.width<0},d=function(t){return t<=f?"top":"bottom"},s(n.x)?(i="left",u(n.x)&&(i="center",r=d(n.y))):l(n.x)&&(i="right",c(n.x)&&(i="center",r=d(n.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:i,yAlign:p.yAlign?p.yAlign:r}}(this,g))}else c.opacity=0;return c.xAlign=f.xAlign,c.yAlign=f.yAlign,c.x=p.x,c.y=p.y,c.width=g.width,c.height=g.height,c.caretX=v.x,c.caretY=v.y,a._model=c,e&&l.custom&&l.custom.call(a,c),a},drawCaret:function(t,e){var n=this._chart.ctx,o=this._view,a=this.getCaretPosition(t,e,o);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)},getCaretPosition:function(t,e,n){var o,a,i,r,s,l,u=n.caretSize,c=n.cornerRadius,d=n.xAlign,h=n.yAlign,f=t.x,p=t.y,g=e.width,v=e.height;if("center"===h)s=p+v/2,"left"===d?(a=(o=f)-u,i=o,r=s+u,l=s-u):(a=(o=f+g)+u,i=o,r=s-u,l=s+u);else if("left"===d?(o=(a=f+c+u)-u,i=a+u):"right"===d?(o=(a=f+g-c-u)-u,i=a+u):(o=(a=f+g/2)-u,i=a+u),"top"===h)s=(r=p)-u,l=r;else{s=(r=p+v)+u,l=r;var m=i;i=o,o=m}return{x1:o,x2:a,x3:i,y1:r,y2:s,y3:l}},drawTitle:function(t,n,o,a){var r=n.title;if(r.length){o.textAlign=n._titleAlign,o.textBaseline="top";var s,l,u=n.titleFontSize,c=n.titleSpacing;for(o.fillStyle=e(n.titleFontColor,a),o.font=i.fontString(u,n._titleFontStyle,n._titleFontFamily),s=0,l=r.length;s0&&o.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},o={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity,i=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&i&&(this.drawBackground(o,e,t,n,a),o.x+=e.xPadding,o.y+=e.yPadding,this.drawTitle(o,e,t,a),this.drawBody(o,e,t,a),this.drawFooter(o,e,t,a))}},handleEvent:function(t){var e=this,n=e._options,o=!1;if(e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:e._active=e._chart.getElementsAtEventForMode(t,n.mode,n),!(o=!i.arrayEquals(e._active,e._lastActive)))return!1;if(e._lastActive=e._active,n.enabled||n.custom){e._eventPosition={x:t.x,y:t.y};var a=e._model;e.update(!0),e.pivot(),o|=a.x!==e._model.x||a.y!==e._model.y}return o}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,n,o=0,a=0,i=0;for(e=0,n=t.length;el;)a-=2*Math.PI;for(;a=s&&a<=l,c=r>=n.innerRadius&&r<=n.outerRadius;return u&&c}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,o=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,o),t.arc(e.x,e.y,e.innerRadius,o,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45),r=o.global;o._set("global",{elements:{line:{tension:.4,backgroundColor:r.defaultColor,borderWidth:3,borderColor:r.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var t,e,n,o,a=this,s=a._view,l=a._chart.ctx,u=s.spanGaps,c=a._children.slice(),d=r.elements.line,h=-1;for(a._loop&&c.length&&c.push(c[0]),l.save(),l.lineCap=s.borderCapStyle||d.borderCapStyle,l.setLineDash&&l.setLineDash(s.borderDash||d.borderDash),l.lineDashOffset=s.borderDashOffset||d.borderDashOffset,l.lineJoin=s.borderJoinStyle||d.borderJoinStyle,l.lineWidth=s.borderWidth||d.borderWidth,l.strokeStyle=s.borderColor||r.defaultColor,l.beginPath(),h=-1,t=0;te?1:-1,r=1,s=u.borderSkipped||"left"):(e=u.x-u.width/2,n=u.x+u.width/2,o=u.y,i=1,r=(a=u.base)>o?1:-1,s=u.borderSkipped||"bottom"),c){var d=Math.min(Math.abs(e-n),Math.abs(o-a)),h=(c=c>d?d:c)/2,f=e+("left"!==s?h*i:0),p=n+("right"!==s?-h*i:0),g=o+("top"!==s?h*r:0),v=a+("bottom"!==s?-h*r:0);f!==p&&(o=g,a=v),g!==v&&(e=f,n=p)}l.beginPath(),l.fillStyle=u.backgroundColor,l.strokeStyle=u.borderColor,l.lineWidth=c;var m=[[e,a],[e,o],[n,o],[n,a]],b=["bottom","left","top","right"].indexOf(s,0);-1===b&&(b=0);var x=t(0);l.moveTo(x[0],x[1]);for(var y=1;y<4;y++)x=t(y),l.lineTo(x[0],x[1]);l.fill(),c&&l.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n=!1;if(this._view){var o=a(this);n=t>=o.left&&t<=o.right&&e>=o.top&&e<=o.bottom}return n},inLabelRange:function(t,e){var n=this;if(!n._view)return!1;var i=a(n);return o(n)?t>=i.left&&t<=i.right:e>=i.top&&e<=i.bottom},inXRange:function(t){var e=a(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=a(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,n=this._view;return o(this)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,n){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,n){"use strict";var o=t(42);n=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,o,a,i){if(i){var r=Math.min(i,o/2),s=Math.min(i,a/2);t.moveTo(e+r,n),t.lineTo(e+o-r,n),t.quadraticCurveTo(e+o,n,e+o,n+s),t.lineTo(e+o,n+a-s),t.quadraticCurveTo(e+o,n+a,e+o-r,n+a),t.lineTo(e+r,n+a),t.quadraticCurveTo(e,n+a,e,n+a-s),t.lineTo(e,n+s),t.quadraticCurveTo(e,n,e+r,n)}else t.rect(e,n,o,a)},drawPoint:function(t,e,n,o,a){var i,r,s,u,c,d;if("object"!=l(e)||"[object HTMLImageElement]"!==(i=e.toString())&&"[object HTMLCanvasElement]"!==i){if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(o,a,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),c=(r=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(o-r/2,a+c/3),t.lineTo(o+r/2,a+c/3),t.lineTo(o,a-2*c/3),t.closePath(),t.fill();break;case"rect":d=1/Math.SQRT2*n,t.beginPath(),t.fillRect(o-d,a-d,2*d,2*d),t.strokeRect(o-d,a-d,2*d,2*d);break;case"rectRounded":var h=n/Math.SQRT2,f=o-h,p=a-h,g=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,f,p,g,g,n/2),t.closePath(),t.fill();break;case"rectRot":d=1/Math.SQRT2*n,t.beginPath(),t.moveTo(o-d,a),t.lineTo(o,a+d),t.lineTo(o+d,a),t.lineTo(o,a-d),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(o,a+n),t.lineTo(o,a-n),t.moveTo(o-n,a),t.lineTo(o+n,a),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,t.moveTo(o-s,a-u),t.lineTo(o+s,a+u),t.moveTo(o-s,a+u),t.lineTo(o+s,a-u),t.closePath();break;case"star":t.beginPath(),t.moveTo(o,a+n),t.lineTo(o,a-n),t.moveTo(o-n,a),t.lineTo(o+n,a),s=Math.cos(Math.PI/4)*n,u=Math.sin(Math.PI/4)*n,t.moveTo(o-s,a-u),t.lineTo(o+s,a+u),t.moveTo(o-s,a+u),t.lineTo(o+s,a-u),t.closePath();break;case"line":t.beginPath(),t.moveTo(o-n,a),t.lineTo(o+n,a),t.closePath();break;case"dash":t.beginPath(),t.moveTo(o,a),t.lineTo(o+n,a),t.closePath()}t.stroke()}}else t.drawImage(e,o-e.width/2,a-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,o){if(n.steppedLine)return"after"===n.steppedLine&&!o||"after"!==n.steppedLine&&o?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y);n.tension?t.bezierCurveTo(o?e.controlPointPreviousX:e.controlPointNextX,o?e.controlPointPreviousY:e.controlPointNextY,o?n.controlPointNextX:n.controlPointPreviousX,o?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}},o.clear=n.clear,o.drawRoundedRectangle=function(t){t.beginPath(),n.roundedRect.apply(n,arguments),t.closePath()}},{42:42}],42:[function(t,e,n){"use strict";var o={noop:function(){},uid:function(){var t=0;return function(){return t++}}(),isNullOrUndef:function(t){return null==t},isArray:Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return o.valueOrDefault(o.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,a){var i,r,s;if(o.isArray(t))if(r=t.length,a)for(i=r-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;i=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,o=1;return 0===t?0:1===t?1:(n||(n=.3),o<1?(o=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/o),-o*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,o=1;return 0===t?0:1===t?1:(n||(n=.3),o<1?(o=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/o),o*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,o=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),o<1?(o=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/o),t<1?o*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:o*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-a.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*a.easeInBounce(2*t):.5*a.easeOutBounce(2*t-1)+.5}};e.exports={effects:a},o.easingEffects=a},{42:42}],44:[function(t,e,n){"use strict";var o=t(42);e.exports={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,a,i;return o.isObject(t)?(e=+t.top||0,n=+t.right||0,a=+t.bottom||0,i=+t.left||0):e=n=a=i=+t||0,{top:e,right:n,bottom:a,left:i,height:e+a,width:i+n}},resolve:function(t,e,n){var a,i,r;for(a=0,i=t.length;a
    ';var i=e.childNodes[0],r=e.childNodes[1];e._reset=function(){i.scrollLeft=1e6,i.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6};var s=function(){e._reset(),t()};return a(i,"scroll",s.bind(i,"expand")),a(r,"scroll",s.bind(r,"shrink")),e}(function(t,e){var n=!1,o=[];return function(){o=Array.prototype.slice.call(arguments),e=e||this,n||(n=!0,u.requestAnimFrame.call(window,(function(){n=!1,t.apply(e,o)})))}}((function(){if(o.resizer)return e(r("resize",n))})));!function(t,e){var n=(t[c]||(t[c]={})).renderProxy=function(t){t.animationName===f&&e()};u.each(p,(function(e){a(t,e,n)})),t.classList.add(h)}(t,(function(){if(o.resizer){var e=t.parentNode;e&&e!==i.parentNode&&e.insertBefore(i,e.firstChild),i._reset()}}))}function l(t){var e=t[c]||{},n=e.resizer;delete e.resizer,function(t){var e=t[c]||{},n=e.renderProxy;n&&(u.each(p,(function(e){i(t,e,n)})),delete e.renderProxy),t.classList.remove(h)}(t),n&&n.parentNode&&n.parentNode.removeChild(n)}var u=t(45),c="$chartjs",d="chartjs-",h=d+"render-monitor",f=d+"render-animation",p=["animationstart","webkitAnimationStart"],g={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},v=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t="from{opacity:0.99}to{opacity:1}";!function(t,e){var n=t._style||document.createElement("style");t._style||(t._style=n,e="/* Chart.js */\n"+e,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(e))}(this,"@-webkit-keyframes "+f+"{"+t+"}@keyframes "+f+"{"+t+"}."+h+"{-webkit-animation:"+f+" 0.001s;animation:"+f+" 0.001s;}")},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){var n=t.style,a=t.getAttribute("height"),i=t.getAttribute("width");if(t[c]={initial:{height:a,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===i||""===i){var r=o(t,"width");void 0!==r&&(t.width=r)}if(null===a||""===a)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var s=o(t,"height");void 0!==r&&(t.height=s)}}(t,e),n):null},releaseContext:function(t){var e=t.canvas;if(e[c]){var n=e[c].initial;["height","width"].forEach((function(t){var o=n[t];u.isNullOrUndef(o)?e.removeAttribute(t):e.setAttribute(t,o)})),u.each(n.style||{},(function(t,n){e.style[n]=t})),e.width=e.width,delete e[c]}},addEventListener:function(t,e,n){var o=t.canvas;if("resize"!==e){var i=n[c]||(n[c]={});a(o,e,(i.proxies||(i.proxies={}))[t.id+"_"+e]=function(e){n(function(t,e){var n=g[t.type]||t.type,o=u.getRelativePosition(t,e);return r(n,e,o.x,o.y,t)}(e,t))})}else s(o,n,t)},removeEventListener:function(t,e,n){var o=t.canvas;if("resize"!==e){var a=((n[c]||{}).proxies||{})[t.id+"_"+e];a&&i(o,e,a)}else l(o)}},u.addEvent=a,u.removeEvent=i},{45:45}],48:[function(t,e,n){"use strict";var o=t(45),a=t(46),i=t(47),r=i._enabled?i:a;e.exports=o.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},r)},{45:45,46:46,47:47}],49:[function(t,e,n){"use strict";var o=t(25),a=t(40),i=t(45);o._set("global",{plugins:{filler:{propagate:!0}}}),e.exports=function(){function t(t,e,n){var o,a=t._model||{},i=a.fill;if(void 0===i&&(i=!!a.backgroundColor),!1===i||null===i)return!1;if(!0===i)return"origin";if(o=parseFloat(i,10),isFinite(o)&&Math.floor(o)===o)return"-"!==i[0]&&"+"!==i[0]||(o=e+o),!(o===e||o<0||o>=n)&&o;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}function e(t){var e,n=t.el._model||{},o=t.el._scale||{},a=t.fill,i=null;if(isFinite(a))return null;if("start"===a?i=void 0===n.scaleBottom?o.bottom:n.scaleBottom:"end"===a?i=void 0===n.scaleTop?o.top:n.scaleTop:void 0!==n.scaleZero?i=n.scaleZero:o.getBasePosition?i=o.getBasePosition():o.getBasePixel&&(i=o.getBasePixel()),null!=i){if(void 0!==i.x&&void 0!==i.y)return i;if("number"==typeof i&&isFinite(i))return{x:(e=o.isHorizontal())?i:null,y:e?null:i}}return null}function n(t,e,n){var o,a=t[e].fill,i=[e];if(!n)return a;for(;!1!==a&&-1===i.indexOf(a);){if(!isFinite(a))return a;if(!(o=t[a]))return!1;if(o.visible)return a;i.push(a),a=o.fill}return!1}function r(t){var e=t.fill,n="dataset";return!1===e?null:(isFinite(e)||(n="boundary"),c[n](t))}function s(t){return t&&!t.skip}function l(t,e,n,o,a){var r;if(o&&a){for(t.moveTo(e[0].x,e[0].y),r=1;r0;--r)i.canvas.lineTo(t,n[r],n[r-1],!0)}}function u(t,e,n,o,a,i){var r,u,c,d,h,f,p,g=e.length,v=o.spanGaps,m=[],b=[],x=0,y=0;for(t.beginPath(),r=0,u=g+!!i;r');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("");return e.push(""),e.join("")}}),e.exports=function(t){function e(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function n(e,n){var o=new t.Legend({ctx:e.ctx,options:n,chart:e});r.configure(e,o,n),r.addBox(e,o),e.legend=o}var r=t.layoutService,s=i.noop;return t.Legend=a.extend({initialize:function(t){i.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:s,update:function(t,e,n){var o=this;return o.beforeUpdate(),o.maxWidth=t,o.maxHeight=e,o.margins=n,o.beforeSetDimensions(),o.setDimensions(),o.afterSetDimensions(),o.beforeBuildLabels(),o.buildLabels(),o.afterBuildLabels(),o.beforeFit(),o.fit(),o.afterFit(),o.afterUpdate(),o.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function(){var t=this,e=t.options.labels||{},n=i.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter((function(n){return e.filter(n,t.chart.data)}))),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:s,beforeFit:s,fit:function(){var t=this,n=t.options,a=n.labels,r=n.display,s=t.ctx,l=o.global,u=i.valueOrDefault,c=u(a.fontSize,l.defaultFontSize),d=u(a.fontStyle,l.defaultFontStyle),h=u(a.fontFamily,l.defaultFontFamily),f=i.fontString(c,d,h),p=t.legendHitBoxes=[],g=t.minSize,v=t.isHorizontal();if(v?(g.width=t.maxWidth,g.height=r?10:0):(g.width=r?10:0,g.height=t.maxHeight),r)if(s.font=f,v){var m=t.lineWidths=[0],b=t.legendItems.length?c+a.padding:0;s.textAlign="left",s.textBaseline="top",i.each(t.legendItems,(function(n,o){var i=e(a,c)+c/2+s.measureText(n.text).width;m[m.length-1]+i+a.padding>=t.width&&(b+=c+a.padding,m[m.length]=t.left),p[o]={left:0,top:0,width:i,height:c},m[m.length-1]+=i+a.padding})),g.height+=b}else{var x=a.padding,y=t.columnWidths=[],k=a.padding,w=0,C=0,S=c+x;i.each(t.legendItems,(function(t,n){var o=e(a,c)+c/2+s.measureText(t.text).width;C+S>g.height&&(k+=w+a.padding,y.push(w),w=0,C=0),w=Math.max(w,o),C+=S,p[n]={left:0,top:0,width:o,height:c}})),k+=w,y.push(w),g.width+=k}t.width=g.width,t.height=g.height},afterFit:s,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,n=t.options,a=n.labels,r=o.global,s=r.elements.line,l=t.width,u=t.lineWidths;if(n.display){var c,d=t.ctx,h=i.valueOrDefault,f=h(a.fontColor,r.defaultFontColor),p=h(a.fontSize,r.defaultFontSize),g=h(a.fontStyle,r.defaultFontStyle),v=h(a.fontFamily,r.defaultFontFamily),m=i.fontString(p,g,v);d.textAlign="left",d.textBaseline="middle",d.lineWidth=.5,d.strokeStyle=f,d.fillStyle=f,d.font=m;var b=e(a,p),x=t.legendHitBoxes,y=function(t,e,o){if(!(isNaN(b)||b<=0)){d.save(),d.fillStyle=h(o.fillStyle,r.defaultColor),d.lineCap=h(o.lineCap,s.borderCapStyle),d.lineDashOffset=h(o.lineDashOffset,s.borderDashOffset),d.lineJoin=h(o.lineJoin,s.borderJoinStyle),d.lineWidth=h(o.lineWidth,s.borderWidth),d.strokeStyle=h(o.strokeStyle,r.defaultColor);var a=0===h(o.lineWidth,s.borderWidth);if(d.setLineDash&&d.setLineDash(h(o.lineDash,s.borderDash)),n.labels&&n.labels.usePointStyle){var l=p*Math.SQRT2/2,u=l/Math.SQRT2,c=t+u,f=e+u;i.canvas.drawPoint(d,o.pointStyle,l,c,f)}else a||d.strokeRect(t,e,b,p),d.fillRect(t,e,b,p);d.restore()}},k=t.isHorizontal();c=k?{x:t.left+(l-u[0])/2,y:t.top+a.padding,line:0}:{x:t.left+a.padding,y:t.top+a.padding,line:0};var w=p+a.padding;i.each(t.legendItems,(function(e,n){var o=d.measureText(e.text).width,i=b+p/2+o,r=c.x,s=c.y;k?r+i>=l&&(s=c.y+=w,c.line++,r=c.x=t.left+(l-u[c.line])/2):s+w>t.bottom&&(r=c.x=r+t.columnWidths[c.line]+a.padding,s=c.y=t.top+a.padding,c.line++),y(r,s,e),x[n].left=r,x[n].top=s,function(t,e,n,o){var a=p/2,i=b+a+t,r=e+a;d.fillText(n.text,i,r),n.hidden&&(d.beginPath(),d.lineWidth=2,d.moveTo(i,r),d.lineTo(i+o,r),d.stroke())}(r,s,e,o),k?c.x+=i+a.padding:c.y+=w}))}},handleEvent:function(t){var e=this,n=e.options,o="mouseup"===t.type?"click":t.type,a=!1;if("mousemove"===o){if(!n.onHover)return}else{if("click"!==o)return;if(!n.onClick)return}var i=t.x,r=t.y;if(i>=e.left&&i<=e.right&&r>=e.top&&r<=e.bottom)for(var s=e.legendHitBoxes,l=0;l=u.left&&i<=u.left+u.width&&r>=u.top&&r<=u.top+u.height){if("click"===o){n.onClick.call(e,t.native,e.legendItems[l]),a=!0;break}if("mousemove"===o){n.onHover.call(e,t.native,e.legendItems[l]),a=!0;break}}}return a}}),{id:"legend",beforeInit:function(t){var e=t.options.legend;e&&n(t,e)},beforeUpdate:function(t){var e=t.options.legend,a=t.legend;e?(i.mergeIf(e,o.global.legend),a?(r.configure(t,a,e),a.options=e):n(t,e)):a&&(r.removeBox(t,a),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}}}},{25:25,26:26,45:45}],51:[function(t,e,n){"use strict";var o=t(25),a=t(26),i=t(45);o._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),e.exports=function(t){function e(e,o){var a=new t.Title({ctx:e.ctx,options:o,chart:e});n.configure(e,a,o),n.addBox(e,a),e.titleBlock=a}var n=t.layoutService,r=i.noop;return t.Title=a.extend({initialize:function(t){i.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:r,update:function(t,e,n){var o=this;return o.beforeUpdate(),o.maxWidth=t,o.maxHeight=e,o.margins=n,o.beforeSetDimensions(),o.setDimensions(),o.afterSetDimensions(),o.beforeBuildLabels(),o.buildLabels(),o.afterBuildLabels(),o.beforeFit(),o.fit(),o.afterFit(),o.afterUpdate(),o.minSize},afterUpdate:r,beforeSetDimensions:r,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:r,beforeBuildLabels:r,buildLabels:r,afterBuildLabels:r,beforeFit:r,fit:function(){var t=this,e=i.valueOrDefault,n=t.options,a=n.display,r=e(n.fontSize,o.global.defaultFontSize),s=t.minSize,l=i.isArray(n.text)?n.text.length:1,u=i.options.toLineHeight(n.lineHeight,r),c=a?l*u+2*n.padding:0;t.isHorizontal()?(s.width=t.maxWidth,s.height=c):(s.width=c,s.height=t.maxHeight),t.width=s.width,t.height=s.height},afterFit:r,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=i.valueOrDefault,a=t.options,r=o.global;if(a.display){var s,l,u,c=n(a.fontSize,r.defaultFontSize),d=n(a.fontStyle,r.defaultFontStyle),h=n(a.fontFamily,r.defaultFontFamily),f=i.fontString(c,d,h),p=i.options.toLineHeight(a.lineHeight,c),g=p/2+a.padding,v=0,m=t.top,b=t.left,x=t.bottom,y=t.right;e.fillStyle=n(a.fontColor,r.defaultFontColor),e.font=f,t.isHorizontal()?(l=b+(y-b)/2,u=m+g,s=y-b):(l="left"===a.position?b+g:y-g,u=m+(x-m)/2,s=x-m,v=Math.PI*("left"===a.position?-.5:.5)),e.save(),e.translate(l,u),e.rotate(v),e.textAlign="center",e.textBaseline="middle";var k=a.text;if(i.isArray(k))for(var w=0,C=0;Ce.max)&&(e.max=o))}))}));e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this,n=e.options.ticks;if(e.isHorizontal())t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.width/50));else{var i=a.valueOrDefault(n.fontSize,o.global.defaultFontSize);t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.height/(2*i)))}return t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,n=this,o=n.start,a=+n.getRightValue(t),i=n.end-o;return n.isHorizontal()?(e=n.left+n.width/i*(a-o),Math.round(e)):(e=n.bottom-n.height/i*(a-o),Math.round(e))},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),o=n?e.width:e.height,a=(n?t-e.left:e.bottom-t)/o;return e.start+(e.end-e.start)*a},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,e)}},{25:25,34:34,45:45}],54:[function(t,e,n){"use strict";var o=t(45),a=t(34);e.exports=function(t){var e=o.noop;t.LinearScaleBase=t.Scale.extend({getRightValue:function(e){return"string"==typeof e?+e:t.Scale.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=o.sign(t.min),a=o.sign(t.max);n<0&&a<0?t.max=0:n>0&&a>0&&(t.min=0)}var i=void 0!==e.min||void 0!==e.suggestedMin,r=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),i!==r&&t.min>=t.max&&(i?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,stepSize:o.valueOrDefault(e.fixedStepSize,e.stepSize)},r=t.ticks=a.generators.linear(i,t);t.handleDirectionalChanges(),t.max=o.max(r),t.min=o.min(r),e.reverse?(r.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{34:34,45:45}],55:[function(t,e,n){"use strict";var o=t(45),a=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:a.formatters.logarithmic}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return l?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,a=n.ticks,i=e.chart,r=i.data.datasets,s=o.valueOrDefault,l=e.isHorizontal();e.min=null,e.max=null,e.minNotZero=null;var u=n.stacked;if(void 0===u&&o.each(r,(function(e,n){if(!u){var o=i.getDatasetMeta(n);i.isDatasetVisible(n)&&t(o)&&void 0!==o.stack&&(u=!0)}})),n.stacked||u){var c={};o.each(r,(function(a,r){var s=i.getDatasetMeta(r),l=[s.type,void 0===n.stacked&&void 0===s.stack?r:"",s.stack].join(".");i.isDatasetVisible(r)&&t(s)&&(void 0===c[l]&&(c[l]=[]),o.each(a.data,(function(t,o){var a=c[l],i=+e.getRightValue(t);isNaN(i)||s.data[o].hidden||(a[o]=a[o]||0,n.relativePoints?a[o]=100:a[o]+=i)})))})),o.each(c,(function(t){var n=o.min(t),a=o.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?a:Math.max(e.max,a)}))}else o.each(r,(function(n,a){var r=i.getDatasetMeta(a);i.isDatasetVisible(a)&&t(r)&&o.each(n.data,(function(t,n){var o=+e.getRightValue(t);isNaN(o)||r.data[n].hidden||((null===e.min||oe.max)&&(e.max=o),0!==o&&(null===e.minNotZero||oa?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function l(t){return 0===t||180===t?"center":t<180?"left":"right"}function u(t,e,n,o){if(a.isArray(e))for(var i=n.y,r=1.5*o,s=0;s270||t<90)&&(n.y-=e.h)}function d(t){var o=t.ctx,i=a.valueOrDefault,r=t.options,s=r.angleLines,d=r.pointLabels;o.lineWidth=s.lineWidth,o.strokeStyle=s.color;var h=t.getDistanceFromCenterForValue(r.ticks.reverse?t.min:t.max),f=n(t);o.textBaseline="top";for(var g=e(t)-1;g>=0;g--){if(s.display){var v=t.getPointPosition(g,h);o.beginPath(),o.moveTo(t.xCenter,t.yCenter),o.lineTo(v.x,v.y),o.stroke(),o.closePath()}if(d.display){var m=t.getPointPosition(g,h+5),b=i(d.fontColor,p.defaultFontColor);o.font=f.font,o.fillStyle=b;var x=t.getIndexAngle(g),y=a.toDegrees(x);o.textAlign=l(y),c(y,t._pointLabelSizes[g],m),u(o,t.pointLabels[g]||"",m,f.size)}}}function h(t,n,o,i){var r=t.ctx;if(r.strokeStyle=a.valueAtIndexOrDefault(n.color,i-1),r.lineWidth=a.valueAtIndexOrDefault(n.lineWidth,i-1),t.options.gridLines.circular)r.beginPath(),r.arc(t.xCenter,t.yCenter,o,0,2*Math.PI),r.closePath(),r.stroke();else{var s=e(t);if(0===s)return;r.beginPath();var l=t.getPointPosition(0,o);r.moveTo(l.x,l.y);for(var u=1;ud.r&&(d.r=v.end,h.r=p),m.startd.b&&(d.b=m.end,h.b=p)}t.setReductions(c,d,h)}(this):function(t){var e=Math.min(t.height/2,t.width/2);t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0)}(this)},setReductions:function(t,e,n){var o=this,a=e.l/Math.sin(n.l),i=Math.max(e.r-o.width,0)/Math.sin(n.r),r=-e.t/Math.cos(n.t),s=-Math.max(e.b-o.height,0)/Math.cos(n.b);a=f(a),i=f(i),r=f(r),s=f(s),o.drawingArea=Math.min(Math.round(t-(a+i)/2),Math.round(t-(r+s)/2)),o.setCenterPoint(a,i,r,s)},setCenterPoint:function(t,e,n,o){var a=this,i=a.width-e-a.drawingArea,r=t+a.drawingArea,s=n+a.drawingArea,l=a.height-o-a.drawingArea;a.xCenter=Math.round((r+i)/2+a.left),a.yCenter=Math.round((s+l)/2+a.top)},getIndexAngle:function(t){return t*(2*Math.PI/e(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var n=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*n:(t-e.min)*n},getPointPosition:function(t,e){var n=this,o=n.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(o)*e)+n.xCenter,y:Math.round(Math.sin(o)*e)+n.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this,e=t.min,n=t.max;return t.getPointPositionForValue(0,t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0)},draw:function(){var t=this,e=t.options,n=e.gridLines,o=e.ticks,i=a.valueOrDefault;if(e.display){var r=t.ctx,s=this.getIndexAngle(0),l=i(o.fontSize,p.defaultFontSize),u=i(o.fontStyle,p.defaultFontStyle),c=i(o.fontFamily,p.defaultFontFamily),f=a.fontString(l,u,c);a.each(t.ticks,(function(e,a){if(a>0||o.reverse){var u=t.getDistanceFromCenterForValue(t.ticksAsNumbers[a]);if(n.display&&0!==a&&h(t,n,u,a),o.display){var c=i(o.fontColor,p.defaultFontColor);if(r.font=f,r.save(),r.translate(t.xCenter,t.yCenter),r.rotate(s),o.showLabelBackdrop){var d=r.measureText(e).width;r.fillStyle=o.backdropColor,r.fillRect(-d/2-o.backdropPaddingX,-u-l/2-o.backdropPaddingY,d+2*o.backdropPaddingX,l+2*o.backdropPaddingY)}r.textAlign="center",r.textBaseline="middle",r.fillStyle=c,r.fillText(e,0,-u),r.restore()}}})),(e.angleLines.display||e.pointLabels.display)&&d(t)}}});t.scaleService.registerScaleType("radialLinear",v,g)}},{25:25,34:34,45:45}],57:[function(t,e,n){"use strict";function o(t,e){return t-e}function a(t){var e,n,o,a={},i=[];for(e=0,n=t.length;e=0&&r<=s;){if(a=t[(o=r+s>>1)-1]||null,i=t[o],!a)return{lo:null,hi:i};if(i[e]n))return{lo:a,hi:i};s=o-1}}return{lo:i,hi:null}}(t,e,n),i=a.lo?a.hi?a.lo:t[t.length-2]:t[0],r=a.lo?a.hi?a.hi:t[t.length-1]:t[1],s=r[e]-i[e],l=s?(n-i[e])/s:0,u=(r[o]-i[o])*l;return i[o]+u}function r(t,e){var n=e.parser,o=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof o?h(t,o):(t instanceof h||(t=h(t)),t.isValid()?t:"function"==typeof o?o(t):t)}function s(t,e){if(p.isNullOrUndef(t))return null;var n=e.options.time,o=r(e.getRightValue(t),n);return o.isValid()?(n.round&&o.startOf(n.round),o.valueOf()):null}function l(t,e,n,o){var a,i,r,s=b.length;for(a=b.indexOf(t);a1?e[1]:o,s=e[0],l=(i(t,"time",r,"pos")-i(t,"time",s,"pos"))/2),a.time.max||(r=e[e.length-1],s=e.length>1?e[e.length-2]:n,u=(i(t,"time",r,"pos")-i(t,"time",s,"pos"))/2)),{left:l,right:u}}function d(t,e){var n,o,a,i,r=[];for(n=0,o=t.length;n=a&&n<=i&&y.push(n);return o.min=a,o.max=i,o._unit=g,o._majorUnit=v,o._minorFormat=f[g],o._majorFormat=f[v],o._table=function(t,e,n,o){if("linear"===o||!t.length)return[{time:e,pos:0},{time:n,pos:1}];var a,i,r,s,l,u=[],c=[e];for(a=0,i=t.length;ae&&s=0&&t{function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}n(8636),n(5086),n(8329),n(8772),n(4913),n(9693),n(115),n(7136),n(173),n(9073),n(6048),n(9581),n(3534),n(590),n(4216),n(8665),n(9979),n(4602),function(t){"use strict";var e=function(e,n){t.fn.typeahead.defaults;n.scrollBar&&(n.items=100,n.menu='');var o=this;if(o.$element=t(e),o.options=t.extend({},t.fn.typeahead.defaults,n),o.$menu=t(o.options.menu).insertAfter(o.$element),o.eventSupported=o.options.eventSupported||o.eventSupported,o.grepper=o.options.grepper||o.grepper,o.highlighter=o.options.highlighter||o.highlighter,o.lookup=o.options.lookup||o.lookup,o.matcher=o.options.matcher||o.matcher,o.render=o.options.render||o.render,o.onSelect=o.options.onSelect||null,o.sorter=o.options.sorter||o.sorter,o.source=o.options.source||o.source,o.displayField=o.options.displayField||o.displayField,o.valueField=o.options.valueField||o.valueField,o.options.ajax){var a=o.options.ajax;"string"==typeof a?o.ajax=t.extend({},t.fn.typeahead.defaults.ajax,{url:a}):("string"==typeof a.displayField&&(o.displayField=o.options.displayField=a.displayField),"string"==typeof a.valueField&&(o.valueField=o.options.valueField=a.valueField),o.ajax=t.extend({},t.fn.typeahead.defaults.ajax,a)),o.ajax.url||(o.ajax=null),o.query=""}else o.source=o.options.source,o.ajax=null;o.shown=!1,o.listen()};e.prototype={constructor:e,eventSupported:function(t){var e=t in this.$element;return e||(this.$element.setAttribute(t,"return;"),e="function"==typeof this.$element[t]),e},select:function(){var t=this.$menu.find(".active").attr("data-value"),e=this.$menu.find(".active a").text();return this.options.onSelect&&this.options.onSelect({value:t,text:e}),this.$element.val(this.updater(e)).change(),this.hide()},updater:function(t){return t},show:function(){var e=t.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});if(this.$menu.css({top:e.top+e.height,left:e.left}),this.options.alignWidth){var n=t(this.$element[0]).outerWidth();this.$menu.css({width:n})}return this.$menu.show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},ajaxLookup:function(){var e=t.trim(this.$element.val());if(e===this.query)return this;if(this.query=e,this.ajax.timerId&&(clearTimeout(this.ajax.timerId),this.ajax.timerId=null),!e||e.length"+e+""}))},render:function(e){var n,a=this,i="string"==typeof a.options.displayField;return(e=t(e).map((function(e,r){return"object"===o(r)?(n=i?r[a.options.displayField]:a.options.displayField(r),e=t(a.options.item).attr("data-value",r[a.options.valueField])):(n=r,e=t(a.options.item).attr("data-value",r)),e.find("a").html(a.highlighter(n)),e[0]}))).first().addClass("active"),this.$menu.html(e),this},grepper:function(e){var n,o,a=this,i="string"==typeof a.options.displayField;if(!(i&&e&&e.length))return null;if(e[0].hasOwnProperty(a.options.displayField))n=t.grep(e,(function(t){return o=i?t[a.options.displayField]:a.options.displayField(t),a.matcher(o)}));else{if("string"!=typeof e[0])return null;n=t.grep(e,(function(t){return a.matcher(t)}))}return this.sorter(n)},next:function(e){var n=this.$menu.find(".active").removeClass("active").next();if(n.length||(n=t(this.$menu.find("li")[0])),this.options.scrollBar){var o=this.$menu.children("li").index(n);o%8==0&&this.$menu.scrollTop(26*o)}n.addClass("active")},prev:function(t){var e=this.$menu.find(".active").removeClass("active").prev();if(e.length||(e=this.$menu.find("li").last()),this.options.scrollBar){var n=this.$menu.children("li"),o=n.length-1,a=n.index(e);(o-a)%8==0&&this.$menu.scrollTop(26*(a-7))}e.addClass("active")},listen:function(){this.$element.on("focus",t.proxy(this.focus,this)).on("blur",t.proxy(this.blur,this)).on("keypress",t.proxy(this.keypress,this)).on("keyup",t.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",t.proxy(this.keydown,this)),this.$menu.on("click",t.proxy(this.click,this)).on("mouseenter","li",t.proxy(this.mouseenter,this)).on("mouseleave","li",t.proxy(this.mouseleave,this))},move:function(t){if(this.shown){switch(t.keyCode){case 9:case 13:case 27:t.preventDefault();break;case 38:t.preventDefault(),this.prev();break;case 40:t.preventDefault(),this.next()}t.stopPropagation()}},keydown:function(e){this.suppressKeyPressRepeat=~t.inArray(e.keyCode,[40,38,9,13,27]),this.move(e)},keypress:function(t){this.suppressKeyPressRepeat||this.move(t)},keyup:function(t){switch(t.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.ajax?this.ajaxLookup():this.lookup()}t.stopPropagation(),t.preventDefault()},focus:function(t){this.focused=!0},blur:function(t){this.focused=!1,!this.mousedover&&this.shown&&this.hide()},click:function(t){t.stopPropagation(),t.preventDefault(),this.select(),this.$element.focus()},mouseenter:function(e){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),t(e.currentTarget).addClass("active")},mouseleave:function(t){this.mousedover=!1,!this.focused&&this.shown&&this.hide()},destroy:function(){this.$element.off("focus",t.proxy(this.focus,this)).off("blur",t.proxy(this.blur,this)).off("keypress",t.proxy(this.keypress,this)).off("keyup",t.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.off("keydown",t.proxy(this.keydown,this)),this.$menu.off("click",t.proxy(this.click,this)).off("mouseenter","li",t.proxy(this.mouseenter,this)).off("mouseleave","li",t.proxy(this.mouseleave,this)),this.$element.removeData("typeahead")}},t.fn.typeahead=function(n){return this.each((function(){var a=t(this),i=a.data("typeahead"),r="object"===o(n)&&n;i||a.data("typeahead",i=new e(this,r)),"string"==typeof n&&i[n]()}))},t.fn.typeahead.defaults={source:[],items:10,scrollBar:!1,alignWidth:!0,menu:'',item:'
  • ',valueField:"id",displayField:"name",onSelect:function(){},ajax:{url:null,timeout:300,method:"get",triggerLength:1,loadingClass:null,preDispatch:null,preProcess:null}},t.fn.typeahead.Constructor=e,t((function(){t("body").on("focus.typeahead.data-api",'[data-provide="typeahead"]',(function(e){var n=t(this);n.data("typeahead")||(e.preventDefault(),n.typeahead(n.data()))}))}))}(window.jQuery)},2811:function(t,e,n){var o,a;function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}n(4913),n(475),n(115),n(9693),n(8636),n(5086),n(7136),n(173),n(2231),n(6255),n(9389),n(6048),n(9581),n(6088),n(9073),n(3534),n(590),n(4216),n(8665),n(9979),n(4602),function(t){"use strict";var e,n,o=Array.prototype.slice;(n=function(e){this.options=t.extend({},n.defaults,e),this.parser=this.options.parser,this.locale=this.options.locale,this.messageStore=this.options.messageStore,this.languages={},this.init()}).prototype={init:function(){var e=this;String.locale=e.locale,String.prototype.toLocaleString=function(){var n,o,a,i,r,s,l;for(a=this.valueOf(),i=e.locale,r=0;i;){o=(n=i.split("-")).length;do{if(s=n.slice(0,o).join("-"),l=e.messageStore.get(s,a))return l;o--}while(o);if("en"===i)break;i=t.i18n.fallbacks[e.locale]&&t.i18n.fallbacks[e.locale][r]||e.options.fallbackLocale,t.i18n.log("Trying fallback locale for "+e.locale+": "+i),r++}return""}},destroy:function(){t.removeData(document,"i18n")},load:function(e,n){var o,a,i,r={};if(e||n||(e="i18n/"+t.i18n().locale+".json",n=t.i18n().locale),"string"==typeof e&&"json"!==e.split(".").pop()){for(a in r[n]=e+"/"+n+".json",o=(t.i18n.fallbacks[n]||[]).concat(this.options.fallbackLocale))r[i=o[a]]=e+"/"+i+".json";return this.load(r)}return this.messageStore.load(e,n)},parse:function(e,n){var o=e.toLocaleString();return this.parser.language=t.i18n.languages[t.i18n().locale]||t.i18n.languages.default,""===o&&(o=e),this.parser.parse(o,n)}},t.i18n=function(e,a){var r,s=t.data(document,"i18n"),l="object"===i(e)&&e;return l&&l.locale&&s&&s.locale!==l.locale&&(String.locale=s.locale=l.locale),s||(s=new n(l),t.data(document,"i18n",s)),"string"==typeof e?(r=void 0!==a?o.call(arguments,1):[],s.parse(e,r)):s},t.fn.i18n=function(){var e=t.data(document,"i18n");return e||(e=new n,t.data(document,"i18n",e)),String.locale=e.locale,this.each((function(){var n,o,a,i,r=t(this),s=r.data("i18n");s?(n=s.indexOf("["),o=s.indexOf("]"),-1!==n&&-1!==o&&n1?["CONCAT"].concat(t):t[0]}function P(){var t=w([h,n,I]);return null===t?null:[t[0],t[2]]}function A(){var t=w([h,n,v]);return null===t?null:[t[0],t[2]]}function T(){var t=w([f,d,p]);return null===t?null:t[1]}if(e=S("|"),n=S(":"),o=S("\\"),a=M(/^./),i=S("$"),r=M(/^\d+/),s=M(/^[^{}\[\]$\\]/),l=M(/^[^{}\[\]$\\|]/),k([_,M(/^[^{}\[\]$\s]/)]),u=k([_,l]),c=k([_,s]),b=M(/^[ !"$&'()*,.\/0-9;=?@A-Z\^_`a-z~\x80-\xFF+\-]+/),x=function(t){return t.toString()},h=function(){var t=b();return null===t?null:x(t)},d=k([function(){var t=w([k([P,A]),C(0,D)]);return null===t?null:t[0].concat(t[1])},function(){var t=w([h,C(0,D)]);return null===t?null:[t[0]].concat(t[1])}]),f=S("{{"),p=S("}}"),g=k([T,I,function(){var t=C(1,c)();return null===t?null:t.join("")}]),v=k([T,I,function(){var t=C(1,u)();return null===t?null:t.join("")}]),null===(m=function(){var t=C(0,g)();return null===t?null:["CONCAT"].concat(t)}())||y!==t.length)throw new Error("Parse error at position "+y.toString()+" in input: "+t);return m}},t.extend(t.i18n.parser,new e)}(jQuery),function(t){"use strict";var e=function(){this.language=t.i18n.languages[String.locale]||t.i18n.languages.default};e.prototype={constructor:e,emit:function(e,n){var o,a,r,s=this;switch(i(e)){case"string":case"number":o=e;break;case"object":if(a=t.map(e.slice(1),(function(t){return s.emit(t,n)})),r=e[0].toLowerCase(),"function"!=typeof s[r])throw new Error('unknown operation "'+r+'"');o=s[r](a,n);break;case"undefined":o="";break;default:throw new Error("unexpected type in AST: "+i(e))}return o},concat:function(e){var n="";return t.each(e,(function(t,e){n+=e})),n},replace:function(t,e){var n=parseInt(t[0],10);return n=parseInt(t[0],10)&&e[0]{},1536:()=>{},2559:()=>{},2553:()=>{},5264:()=>{},6387:()=>{},5985:()=>{},63:()=>{},3888:()=>{},7278:()=>{},3704:()=>{}},t=>{var e=e=>t(t.s=e);t.O(0,[450],(()=>(e(2811),e(7852),e(6108),e(9143),e(5779),e(6618),e(3441),e(1680),e(9654),e(5611),e(3600),e(514),e(9307),e(6730),e(1595),e(1223),e(9662),e(63),e(1536),e(2559),e(2553),e(5264),e(6387),e(5985),e(3888),e(3704),e(7278))));t.O()}]); \ No newline at end of file From 17f75a74d1c6972a079d9850ee58dff7fbe1c0bb Mon Sep 17 00:00:00 2001 From: agoujot <145840578+agoujot@users.noreply.github.com> Date: Tue, 22 Apr 2025 22:46:01 +0200 Subject: [PATCH 8/9] delete old compiled asset --- public/build/app.48b6b1cc.js.LICENSE.txt | 67 ------------------------ 1 file changed, 67 deletions(-) delete mode 100644 public/build/app.48b6b1cc.js.LICENSE.txt diff --git a/public/build/app.48b6b1cc.js.LICENSE.txt b/public/build/app.48b6b1cc.js.LICENSE.txt deleted file mode 100644 index f8a2a02bd..000000000 --- a/public/build/app.48b6b1cc.js.LICENSE.txt +++ /dev/null @@ -1,67 +0,0 @@ -/*! - * Chart.js - * http://chartjs.org/ - * Version: 2.7.0 - * - * Copyright 2017 Nick Downie - * Released under the MIT license - * https://github.com/chartjs/Chart.js/blob/master/LICENSE.md - */ - -/*! - * jQuery Internationalization library - * - * Copyright (C) 2011-2013 Santhosh Thottingal, Neil Kandalgaonkar - * - * jquery.i18n is dual licensed GPLv2 or later and MIT. You don't have to do - * anything special to choose one license or the other and you don't have to - * notify anyone which license you are using. You are free to use - * UniversalLanguageSelector in commercial projects as long as the copyright - * header is left intact. See files GPL-LICENSE and MIT-LICENSE for details. - * - * @licence GNU General Public Licence 2.0 or later - * @licence MIT License - */ - -/*! - * jQuery Internationalization library - * - * Copyright (C) 2012 Santhosh Thottingal - * - * jquery.i18n is dual licensed GPLv2 or later and MIT. You don't have to do - * anything special to choose one license or the other and you don't have to - * notify anyone which license you are using. You are free to use - * UniversalLanguageSelector in commercial projects as long as the copyright - * header is left intact. See files GPL-LICENSE and MIT-LICENSE for details. - * - * @licence GNU General Public Licence 2.0 or later - * @licence MIT License - */ - -/*! - * jQuery Internationalization library - * - * Copyright (C) 2012 Santhosh Thottingal - * - * jquery.i18n is dual licensed GPLv2 or later and MIT. You don't have to do anything special to - * choose one license or the other and you don't have to notify anyone which license you are using. - * You are free to use UniversalLanguageSelector in commercial projects as long as the copyright - * header is left intact. See files GPL-LICENSE and MIT-LICENSE for details. - * - * @licence GNU General Public Licence 2.0 or later - * @licence MIT License - */ - -/*! - * jQuery Internationalization library - Message Store - * - * Copyright (C) 2012 Santhosh Thottingal - * - * jquery.i18n is dual licensed GPLv2 or later and MIT. You don't have to do anything special to - * choose one license or the other and you don't have to notify anyone which license you are using. - * You are free to use UniversalLanguageSelector in commercial projects as long as the copyright - * header is left intact. See files GPL-LICENSE and MIT-LICENSE for details. - * - * @licence GNU General Public Licence 2.0 or later - * @licence MIT License - */ From e29b273238ebf054faceb41e47c21e29af307d76 Mon Sep 17 00:00:00 2001 From: MusikAnimal Date: Tue, 22 Apr 2025 22:51:40 -0400 Subject: [PATCH 9/9] rm old asset --- public/build/450.304e1a09.js | 1 - 1 file changed, 1 deletion(-) delete mode 100644 public/build/450.304e1a09.js diff --git a/public/build/450.304e1a09.js b/public/build/450.304e1a09.js deleted file mode 100644 index 436cfd0fa..000000000 --- a/public/build/450.304e1a09.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkxtools=self.webpackChunkxtools||[]).push([[450],{4601:(t,r,e)=>{var n=e(8420),o=e(3838),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not a function")}},7473:(t,r,e)=>{var n=e(8420),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},298:(t,r,e)=>{var n=e(1602),o=e(3105),i=e(3610).f,a=n("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,{configurable:!0,value:o(null)}),t.exports=function(t){s[a][t]=!0}},7234:(t,r,e)=>{"use strict";var n=e(7804).charAt;t.exports=function(t,r,e){return r+(e?n(t,r).length:1)}},5190:(t,r,e)=>{var n=e(7658),o=TypeError;t.exports=function(t,r){if(n(r,t))return t;throw o("Incorrect invocation")}},3938:(t,r,e)=>{var n=e(5335),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not an object")}},7806:(t,r,e)=>{"use strict";var n=e(2612),o=e(6539),i=e(3493);t.exports=function(t){for(var r=n(this),e=i(r),a=arguments.length,s=o(a>1?arguments[1]:void 0,e),u=a>2?arguments[2]:void 0,c=void 0===u?e:o(u,e);c>s;)r[s++]=t;return r}},516:(t,r,e)=>{"use strict";var n=e(1344).forEach,o=e(2349)("forEach");t.exports=o?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},1027:(t,r,e)=>{"use strict";var n=e(6885),o=e(2368),i=e(2612),a=e(1332),s=e(9034),u=e(1466),c=e(3493),f=e(2057),l=e(9526),p=e(1898),h=Array;t.exports=function(t){var r=i(t),e=u(this),v=arguments.length,g=v>1?arguments[1]:void 0,d=void 0!==g;d&&(g=n(g,v>2?arguments[2]:void 0));var y,m,b,x,S,w,O=p(r),E=0;if(!O||this===h&&s(O))for(y=c(r),m=e?new this(y):h(y);y>E;E++)w=d?g(r[E],E):r[E],f(m,E,w);else for(S=(x=l(r,O)).next,m=e?new this:[];!(b=o(S,x)).done;E++)w=d?a(x,g,[b.value,E],!0):b.value,f(m,E,w);return m.length=E,m}},8186:(t,r,e)=>{var n=e(5476),o=e(6539),i=e(3493),a=function(t){return function(r,e,a){var s,u=n(r),c=i(u),f=o(a,c);if(t&&e!=e){for(;c>f;)if((s=u[f++])!=s)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},1344:(t,r,e)=>{var n=e(6885),o=e(281),i=e(8664),a=e(2612),s=e(3493),u=e(2998),c=o([].push),f=function(t){var r=1==t,e=2==t,o=3==t,f=4==t,l=6==t,p=7==t,h=5==t||l;return function(v,g,d,y){for(var m,b,x=a(v),S=i(x),w=n(g,d),O=s(S),E=0,P=y||u,I=r?P(v,O):e||p?P(v,0):void 0;O>E;E++)if((h||E in S)&&(b=w(m=S[E],E,x),t))if(r)I[E]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return E;case 2:c(I,m)}else switch(t){case 4:return!1;case 7:c(I,m)}return l?-1:o||f?f:I}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},5634:(t,r,e)=>{var n=e(2074),o=e(1602),i=e(6845),a=o("species");t.exports=function(t){return i>=51||!n((function(){var r=[];return(r.constructor={})[a]=function(){return{foo:1}},1!==r[t](Boolean).foo}))}},2349:(t,r,e)=>{"use strict";var n=e(2074);t.exports=function(t,r){var e=[][t];return!!e&&n((function(){e.call(null,r||function(){return 1},1)}))}},2237:(t,r,e)=>{var n=e(4601),o=e(2612),i=e(8664),a=e(3493),s=TypeError,u=function(t){return function(r,e,u,c){n(e);var f=o(r),l=i(f),p=a(f),h=t?p-1:0,v=t?-1:1;if(u<2)for(;;){if(h in l){c=l[h],h+=v;break}if(h+=v,t?h<0:p<=h)throw s("Reduce of empty array with no initial value")}for(;t?h>=0:p>h;h+=v)h in l&&(c=e(c,l[h],h,f));return c}};t.exports={left:u(!1),right:u(!0)}},6648:(t,r,e)=>{"use strict";var n=e(5077),o=e(8679),i=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,r){if(o(t)&&!a(t,"length").writable)throw i("Cannot set read only .length");return t.length=r}:function(t,r){return t.length=r}},6056:(t,r,e)=>{var n=e(6539),o=e(3493),i=e(2057),a=Array,s=Math.max;t.exports=function(t,r,e){for(var u=o(t),c=n(r,u),f=n(void 0===e?u:e,u),l=a(s(f-c,0)),p=0;c{var n=e(281);t.exports=n([].slice)},8039:(t,r,e)=>{var n=e(6056),o=Math.floor,i=function(t,r){var e=t.length,u=o(e/2);return e<8?a(t,r):s(t,i(n(t,0,u),r),i(n(t,u),r),r)},a=function(t,r){for(var e,n,o=t.length,i=1;i0;)t[n]=t[--n];n!==i++&&(t[n]=e)}return t},s=function(t,r,e,n){for(var o=r.length,i=e.length,a=0,s=0;a{var n=e(8679),o=e(1466),i=e(5335),a=e(1602)("species"),s=Array;t.exports=function(t){var r;return n(t)&&(r=t.constructor,(o(r)&&(r===s||n(r.prototype))||i(r)&&null===(r=r[a]))&&(r=void 0)),void 0===r?s:r}},2998:(t,r,e)=>{var n=e(3892);t.exports=function(t,r){return new(n(t))(0===r?0:r)}},1332:(t,r,e)=>{var n=e(3938),o=e(9868);t.exports=function(t,r,e,i){try{return i?r(n(e)[0],e[1]):r(e)}catch(r){o(t,"throw",r)}}},8569:(t,r,e)=>{var n=e(281),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},3062:(t,r,e)=>{var n=e(3129),o=e(8420),i=e(8569),a=e(1602)("toStringTag"),s=Object,u="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=s(t),a))?e:u?i(r):"Object"==(n=i(r))&&o(r.callee)?"Arguments":n}},4361:(t,r,e)=>{var n=e(6490),o=e(5816),i=e(7632),a=e(3610);t.exports=function(t,r,e){for(var s=o(r),u=a.f,c=i.f,f=0;f{var n=e(2074);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},8296:t=>{t.exports=function(t,r){return{value:t,done:r}}},7712:(t,r,e)=>{var n=e(5077),o=e(3610),i=e(6843);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},6843:t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},2057:(t,r,e)=>{"use strict";var n=e(6032),o=e(3610),i=e(6843);t.exports=function(t,r,e){var a=n(r);a in t?o.f(t,a,i(0,e)):t[a]=e}},6477:(t,r,e)=>{var n=e(8218),o=e(3610);t.exports=function(t,r,e){return e.get&&n(e.get,r,{getter:!0}),e.set&&n(e.set,r,{setter:!0}),o.f(t,r,e)}},7485:(t,r,e)=>{var n=e(8420),o=e(3610),i=e(8218),a=e(9430);t.exports=function(t,r,e,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:r;if(n(e)&&i(e,c,s),s.global)u?t[r]=e:a(r,e);else{try{s.unsafe?t[r]&&(u=!0):delete t[r]}catch(t){}u?t[r]=e:o.f(t,r,{value:e,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},2760:(t,r,e)=>{var n=e(7485);t.exports=function(t,r,e){for(var o in r)n(t,o,r[o],e);return t}},9430:(t,r,e)=>{var n=e(200),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},4881:(t,r,e)=>{"use strict";var n=e(3838),o=TypeError;t.exports=function(t,r){if(!delete t[r])throw o("Cannot delete property "+n(r)+" of "+n(t))}},5077:(t,r,e)=>{var n=e(2074);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6568:t=>{var r="object"==typeof document&&document.all,e=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:e}},3262:(t,r,e)=>{var n=e(200),o=e(5335),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},7242:t=>{var r=TypeError;t.exports=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}},5549:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},2975:(t,r,e)=>{var n=e(3262)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},3727:(t,r,e)=>{var n=e(7061).match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]},6874:t=>{t.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},7413:(t,r,e)=>{var n=e(7061);t.exports=/MSIE|Trident/.test(n)},5223:(t,r,e)=>{var n=e(8569);t.exports="undefined"!=typeof process&&"process"==n(process)},7061:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},6845:(t,r,e)=>{var n,o,i=e(200),a=e(7061),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,f=c&&c.v8;f&&(o=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},2346:(t,r,e)=>{var n=e(7061).match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]},290:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1605:(t,r,e)=>{var n=e(200),o=e(7632).f,i=e(7712),a=e(7485),s=e(9430),u=e(4361),c=e(4977);t.exports=function(t,r){var e,f,l,p,h,v=t.target,g=t.global,d=t.stat;if(e=g?n:d?n[v]||s(v,{}):(n[v]||{}).prototype)for(f in r){if(p=r[f],l=t.dontCallGetSet?(h=o(e,f))&&h.value:e[f],!c(g?f:v+(d?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;u(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),a(e,f,p,t)}}},2074:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},779:(t,r,e)=>{"use strict";e(7136);var n=e(3091),o=e(7485),i=e(54),a=e(2074),s=e(1602),u=e(7712),c=s("species"),f=RegExp.prototype;t.exports=function(t,r,e,l){var p=s(t),h=!a((function(){var r={};return r[p]=function(){return 7},7!=""[t](r)})),v=h&&!a((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[c]=function(){return e},e.flags="",e[p]=/./[p]),e.exec=function(){return r=!0,null},e[p](""),!r}));if(!h||!v||e){var g=n(/./[p]),d=r(p,""[t],(function(t,r,e,o,a){var s=n(t),u=r.exec;return u===i||u===f.exec?h&&!a?{done:!0,value:g(r,e,o)}:{done:!0,value:s(e,r,o)}:{done:!1}}));o(String.prototype,t,d[0]),o(f,p,d[1])}l&&u(f[p],"sham",!0)}},9070:(t,r,e)=>{var n=e(8823),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},6885:(t,r,e)=>{var n=e(3091),o=e(4601),i=e(8823),a=n(n.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?a(t,r):function(){return t.apply(r,arguments)}}},8823:(t,r,e)=>{var n=e(2074);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8891:(t,r,e)=>{"use strict";var n=e(281),o=e(4601),i=e(5335),a=e(6490),s=e(9609),u=e(8823),c=Function,f=n([].concat),l=n([].join),p={};t.exports=u?c.bind:function(t){var r=o(this),e=r.prototype,n=s(arguments,1),u=function(){var e=f(n,s(arguments));return this instanceof u?function(t,r,e){if(!a(p,r)){for(var n=[],o=0;o{var n=e(8823),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},2071:(t,r,e)=>{var n=e(5077),o=e(6490),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,c=s&&(!n||n&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},1385:(t,r,e)=>{var n=e(281),o=e(4601);t.exports=function(t,r,e){try{return n(o(Object.getOwnPropertyDescriptor(t,r)[e]))}catch(t){}}},3091:(t,r,e)=>{var n=e(8569),o=e(281);t.exports=function(t){if("Function"===n(t))return o(t)}},281:(t,r,e)=>{var n=e(8823),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);t.exports=n?a:function(t){return function(){return i.apply(t,arguments)}}},6492:(t,r,e)=>{var n=e(200),o=e(8420);t.exports=function(t,r){return arguments.length<2?(e=n[t],o(e)?e:void 0):n[t]&&n[t][r];var e}},1898:(t,r,e)=>{var n=e(3062),o=e(6457),i=e(8406),a=e(2228),s=e(1602)("iterator");t.exports=function(t){if(!i(t))return o(t,s)||o(t,"@@iterator")||a[n(t)]}},9526:(t,r,e)=>{var n=e(2368),o=e(4601),i=e(3938),a=e(3838),s=e(1898),u=TypeError;t.exports=function(t,r){var e=arguments.length<2?s(t):r;if(o(e))return i(n(e,t));throw u(a(t)+" is not iterable")}},1110:(t,r,e)=>{var n=e(281),o=e(8679),i=e(8420),a=e(8569),s=e(5362),u=n([].push);t.exports=function(t){if(i(t))return t;if(o(t)){for(var r=t.length,e=[],n=0;n{var n=e(4601),o=e(8406);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},4433:(t,r,e)=>{var n=e(281),o=e(2612),i=Math.floor,a=n("".charAt),s=n("".replace),u=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,r,e,n,l,p){var h=e+t.length,v=n.length,g=f;return void 0!==l&&(l=o(l),g=c),s(p,g,(function(o,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return u(r,0,e);case"'":return u(r,h);case"<":c=l[u(s,1,-1)];break;default:var f=+s;if(0===f)return o;if(f>v){var p=i(f/10);return 0===p?o:p<=v?void 0===n[p-1]?a(s,1):n[p-1]+a(s,1):o}c=n[f-1]}return void 0===c?"":c}))}},200:(t,r,e)=>{var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||function(){return this}()||Function("return this")()},6490:(t,r,e)=>{var n=e(281),o=e(2612),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},7708:t=>{t.exports={}},8890:(t,r,e)=>{var n=e(6492);t.exports=n("document","documentElement")},7694:(t,r,e)=>{var n=e(5077),o=e(2074),i=e(3262);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8664:(t,r,e)=>{var n=e(281),o=e(2074),i=e(8569),a=Object,s=n("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?s(t,""):a(t)}:a},3054:(t,r,e)=>{var n=e(8420),o=e(5335),i=e(9686);t.exports=function(t,r,e){var a,s;return i&&n(a=r.constructor)&&a!==e&&o(s=a.prototype)&&s!==e.prototype&&i(t,s),t}},9965:(t,r,e)=>{var n=e(281),o=e(8420),i=e(9310),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},9206:(t,r,e)=>{var n,o,i,a=e(8369),s=e(200),u=e(5335),c=e(7712),f=e(6490),l=e(9310),p=e(5904),h=e(7708),v="Object already initialized",g=s.TypeError,d=s.WeakMap;if(a||l.state){var y=l.state||(l.state=new d);y.get=y.get,y.has=y.has,y.set=y.set,n=function(t,r){if(y.has(t))throw g(v);return r.facade=t,y.set(t,r),r},o=function(t){return y.get(t)||{}},i=function(t){return y.has(t)}}else{var m=p("state");h[m]=!0,n=function(t,r){if(f(t,m))throw g(v);return r.facade=t,c(t,m,r),r},o=function(t){return f(t,m)?t[m]:{}},i=function(t){return f(t,m)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(r){var e;if(!u(r)||(e=o(r)).type!==t)throw g("Incompatible receiver, "+t+" required");return e}}}},9034:(t,r,e)=>{var n=e(1602),o=e(2228),i=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},8679:(t,r,e)=>{var n=e(8569);t.exports=Array.isArray||function(t){return"Array"==n(t)}},8420:(t,r,e)=>{var n=e(6568),o=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},1466:(t,r,e)=>{var n=e(281),o=e(2074),i=e(8420),a=e(3062),s=e(6492),u=e(9965),c=function(){},f=[],l=s("Reflect","construct"),p=/^\s*(?:class|function)\b/,h=n(p.exec),v=!p.exec(c),g=function(t){if(!i(t))return!1;try{return l(c,f,t),!0}catch(t){return!1}},d=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return v||!!h(p,u(t))}catch(t){return!0}};d.sham=!0,t.exports=!l||o((function(){var t;return g(g.call)||!g(Object)||!g((function(){t=!0}))||t}))?d:g},4977:(t,r,e)=>{var n=e(2074),o=e(8420),i=/#|\.prototype\./,a=function(t,r){var e=u[s(t)];return e==f||e!=c&&(o(r)?n(r):!!r)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",f=a.POLYFILL="P";t.exports=a},8406:t=>{t.exports=function(t){return null==t}},5335:(t,r,e)=>{var n=e(8420),o=e(6568),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===i}:function(t){return"object"==typeof t?null!==t:n(t)}},6926:t=>{t.exports=!1},2449:(t,r,e)=>{var n=e(5335),o=e(8569),i=e(1602)("match");t.exports=function(t){var r;return n(t)&&(void 0!==(r=t[i])?!!r:"RegExp"==o(t))}},2328:(t,r,e)=>{var n=e(6492),o=e(8420),i=e(7658),a=e(5225),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,s(t))}},9868:(t,r,e)=>{var n=e(2368),o=e(3938),i=e(6457);t.exports=function(t,r,e){var a,s;o(t);try{if(!(a=i(t,"return"))){if("throw"===r)throw e;return e}a=n(a,t)}catch(t){s=!0,a=t}if("throw"===r)throw e;if(s)throw a;return o(a),e}},8287:(t,r,e)=>{"use strict";var n=e(9306).IteratorPrototype,o=e(3105),i=e(6843),a=e(5282),s=e(2228),u=function(){return this};t.exports=function(t,r,e,c){var f=r+" Iterator";return t.prototype=o(n,{next:i(+!c,e)}),a(t,f,!1,!0),s[f]=u,t}},6409:(t,r,e)=>{"use strict";var n=e(1605),o=e(2368),i=e(6926),a=e(2071),s=e(8420),u=e(8287),c=e(7970),f=e(9686),l=e(5282),p=e(7712),h=e(7485),v=e(1602),g=e(2228),d=e(9306),y=a.PROPER,m=a.CONFIGURABLE,b=d.IteratorPrototype,x=d.BUGGY_SAFARI_ITERATORS,S=v("iterator"),w="keys",O="values",E="entries",P=function(){return this};t.exports=function(t,r,e,a,v,d,I){u(e,r,a);var R,A,j,k=function(t){if(t===v&&C)return C;if(!x&&t in U)return U[t];switch(t){case w:case O:case E:return function(){return new e(this,t)}}return function(){return new e(this)}},L=r+" Iterator",T=!1,U=t.prototype,F=U[S]||U["@@iterator"]||v&&U[v],C=!x&&F||k(v),M="Array"==r&&U.entries||F;if(M&&(R=c(M.call(new t)))!==Object.prototype&&R.next&&(i||c(R)===b||(f?f(R,b):s(R[S])||h(R,S,P)),l(R,L,!0,!0),i&&(g[L]=P)),y&&v==O&&F&&F.name!==O&&(!i&&m?p(U,"name",O):(T=!0,C=function(){return o(F,this)})),v)if(A={values:k(O),keys:d?C:k(w),entries:k(E)},I)for(j in A)(x||T||!(j in U))&&h(U,j,A[j]);else n({target:r,proto:!0,forced:x||T},A);return i&&!I||U[S]===C||h(U,S,C,{name:v}),g[r]=C,A}},9306:(t,r,e)=>{"use strict";var n,o,i,a=e(2074),s=e(8420),u=e(5335),c=e(3105),f=e(7970),l=e(7485),p=e(1602),h=e(6926),v=p("iterator"),g=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(n=o):g=!0),!u(n)||a((function(){var t={};return n[v].call(t)!==t}))?n={}:h&&(n=c(n)),s(n[v])||l(n,v,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},2228:t=>{t.exports={}},3493:(t,r,e)=>{var n=e(3747);t.exports=function(t){return n(t.length)}},8218:(t,r,e)=>{var n=e(281),o=e(2074),i=e(8420),a=e(6490),s=e(5077),u=e(2071).CONFIGURABLE,c=e(9965),f=e(9206),l=f.enforce,p=f.get,h=String,v=Object.defineProperty,g=n("".slice),d=n("".replace),y=n([].join),m=s&&!o((function(){return 8!==v((function(){}),"length",{value:8}).length})),b=String(String).split("String"),x=t.exports=function(t,r,e){"Symbol("===g(h(r),0,7)&&(r="["+d(h(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!a(t,"name")||u&&t.name!==r)&&(s?v(t,"name",{value:r,configurable:!0}):t.name=r),m&&e&&a(e,"arity")&&t.length!==e.arity&&v(t,"length",{value:e.arity});try{e&&a(e,"constructor")&&e.constructor?s&&v(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=l(t);return a(n,"source")||(n.source=y(b,"string"==typeof r?r:"")),t};Function.prototype.toString=x((function(){return i(this)&&p(this).source||c(this)}),"toString")},3103:t=>{var r=Math.log,e=Math.LOG10E;t.exports=Math.log10||function(t){return r(t)*e}},1211:t=>{t.exports=Math.sign||function(t){var r=+t;return 0==r||r!=r?r:r<0?-1:1}},9830:t=>{var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},5963:(t,r,e)=>{var n=e(200),o=e(2074),i=e(281),a=e(5362),s=e(9163).trim,u=e(5073),c=i("".charAt),f=n.parseFloat,l=n.Symbol,p=l&&l.iterator,h=1/f(u+"-0")!=-1/0||p&&!o((function(){f(Object(p))}));t.exports=h?function(t){var r=s(a(t)),e=f(r);return 0===e&&"-"==c(r,0)?-0:e}:f},7292:(t,r,e)=>{var n=e(200),o=e(2074),i=e(281),a=e(5362),s=e(9163).trim,u=e(5073),c=n.parseInt,f=n.Symbol,l=f&&f.iterator,p=/^[+-]?0x/i,h=i(p.exec),v=8!==c(u+"08")||22!==c(u+"0x16")||l&&!o((function(){c(Object(l))}));t.exports=v?function(t,r){var e=s(a(t));return c(e,r>>>0||(h(p,e)?16:10))}:c},1688:(t,r,e)=>{"use strict";var n=e(5077),o=e(281),i=e(2368),a=e(2074),s=e(1641),u=e(8916),c=e(9304),f=e(2612),l=e(8664),p=Object.assign,h=Object.defineProperty,v=o([].concat);t.exports=!p||a((function(){if(n&&1!==p({b:1},p(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},e=Symbol(),o="abcdefghijklmnopqrst";return t[e]=7,o.split("").forEach((function(t){r[t]=t})),7!=p({},t)[e]||s(p({},r)).join("")!=o}))?function(t,r){for(var e=f(t),o=arguments.length,a=1,p=u.f,h=c.f;o>a;)for(var g,d=l(arguments[a++]),y=p?v(s(d),p(d)):s(d),m=y.length,b=0;m>b;)g=y[b++],n&&!i(h,d,g)||(e[g]=d[g]);return e}:p},3105:(t,r,e)=>{var n,o=e(3938),i=e(5318),a=e(290),s=e(7708),u=e(8890),c=e(3262),f=e(5904),l="prototype",p="script",h=f("IE_PROTO"),v=function(){},g=function(t){return"<"+p+">"+t+""},d=function(t){t.write(g("")),t.close();var r=t.parentWindow.Object;return t=null,r},y=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;y="undefined"!=typeof document?document.domain&&n?d(n):(r=c("iframe"),e="java"+p+":",r.style.display="none",u.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(g("document.F=Object")),t.close(),t.F):d(n);for(var o=a.length;o--;)delete y[l][a[o]];return y()};s[h]=!0,t.exports=Object.create||function(t,r){var e;return null!==t?(v[l]=o(t),e=new v,v[l]=null,e[h]=t):e=y(),void 0===r?e:i.f(e,r)}},5318:(t,r,e)=>{var n=e(5077),o=e(4491),i=e(3610),a=e(3938),s=e(5476),u=e(1641);r.f=n&&!o?Object.defineProperties:function(t,r){a(t);for(var e,n=s(r),o=u(r),c=o.length,f=0;c>f;)i.f(t,e=o[f++],n[e]);return t}},3610:(t,r,e)=>{var n=e(5077),o=e(7694),i=e(4491),a=e(3938),s=e(6032),u=TypeError,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",h="writable";r.f=n?i?function(t,r,e){if(a(t),r=s(r),a(e),"function"==typeof t&&"prototype"===r&&"value"in e&&h in e&&!e[h]){var n=f(t,r);n&&n[h]&&(t[r]=e.value,e={configurable:p in e?e[p]:n[p],enumerable:l in e?e[l]:n[l],writable:!1})}return c(t,r,e)}:c:function(t,r,e){if(a(t),r=s(r),a(e),o)try{return c(t,r,e)}catch(t){}if("get"in e||"set"in e)throw u("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},7632:(t,r,e)=>{var n=e(5077),o=e(2368),i=e(9304),a=e(6843),s=e(5476),u=e(6032),c=e(6490),f=e(7694),l=Object.getOwnPropertyDescriptor;r.f=n?l:function(t,r){if(t=s(t),r=u(r),f)try{return l(t,r)}catch(t){}if(c(t,r))return a(!o(i.f,t,r),t[r])}},6509:(t,r,e)=>{var n=e(8569),o=e(5476),i=e(4789).f,a=e(6056),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==n(t)?function(t){try{return i(t)}catch(t){return a(s)}}(t):i(o(t))}},4789:(t,r,e)=>{var n=e(6347),o=e(290).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},8916:(t,r)=>{r.f=Object.getOwnPropertySymbols},7970:(t,r,e)=>{var n=e(6490),o=e(8420),i=e(2612),a=e(5904),s=e(7168),u=a("IE_PROTO"),c=Object,f=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var r=i(t);if(n(r,u))return r[u];var e=r.constructor;return o(e)&&r instanceof e?e.prototype:r instanceof c?f:null}},7658:(t,r,e)=>{var n=e(281);t.exports=n({}.isPrototypeOf)},6347:(t,r,e)=>{var n=e(281),o=e(6490),i=e(5476),a=e(8186).indexOf,s=e(7708),u=n([].push);t.exports=function(t,r){var e,n=i(t),c=0,f=[];for(e in n)!o(s,e)&&o(n,e)&&u(f,e);for(;r.length>c;)o(n,e=r[c++])&&(~a(f,e)||u(f,e));return f}},1641:(t,r,e)=>{var n=e(6347),o=e(290);t.exports=Object.keys||function(t){return n(t,o)}},9304:(t,r)=>{"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},9686:(t,r,e)=>{var n=e(1385),o=e(3938),i=e(7473);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=n(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return o(e),i(n),r?t(e,n):e.__proto__=n,e}}():void 0)},4972:(t,r,e)=>{"use strict";var n=e(3129),o=e(3062);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},9751:(t,r,e)=>{var n=e(2368),o=e(8420),i=e(5335),a=TypeError;t.exports=function(t,r){var e,s;if("string"===r&&o(e=t.toString)&&!i(s=n(e,t)))return s;if(o(e=t.valueOf)&&!i(s=n(e,t)))return s;if("string"!==r&&o(e=t.toString)&&!i(s=n(e,t)))return s;throw a("Can't convert object to primitive value")}},5816:(t,r,e)=>{var n=e(6492),o=e(281),i=e(4789),a=e(8916),s=e(3938),u=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var r=i.f(s(t)),e=a.f;return e?u(r,e(t)):r}},9720:(t,r,e)=>{var n=e(200);t.exports=n},6527:(t,r,e)=>{var n=e(3610).f;t.exports=function(t,r,e){e in t||n(t,e,{configurable:!0,get:function(){return r[e]},set:function(t){r[e]=t}})}},6793:(t,r,e)=>{var n=e(2368),o=e(3938),i=e(8420),a=e(8569),s=e(54),u=TypeError;t.exports=function(t,r){var e=t.exec;if(i(e)){var c=n(e,t,r);return null!==c&&o(c),c}if("RegExp"===a(t))return n(s,t,r);throw u("RegExp#exec called on incompatible receiver")}},54:(t,r,e)=>{"use strict";var n,o,i=e(2368),a=e(281),s=e(5362),u=e(6844),c=e(2192),f=e(2),l=e(3105),p=e(9206).get,h=e(1036),v=e(8121),g=f("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,y=d,m=a("".charAt),b=a("".indexOf),x=a("".replace),S=a("".slice),w=(o=/b*/g,i(d,n=/a/,"a"),i(d,o,"a"),0!==n.lastIndex||0!==o.lastIndex),O=c.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];(w||E||O||h||v)&&(y=function(t){var r,e,n,o,a,c,f,h=this,v=p(h),P=s(t),I=v.raw;if(I)return I.lastIndex=h.lastIndex,r=i(y,I,P),h.lastIndex=I.lastIndex,r;var R=v.groups,A=O&&h.sticky,j=i(u,h),k=h.source,L=0,T=P;if(A&&(j=x(j,"y",""),-1===b(j,"g")&&(j+="g"),T=S(P,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==m(P,h.lastIndex-1))&&(k="(?: "+k+")",T=" "+T,L++),e=new RegExp("^(?:"+k+")",j)),E&&(e=new RegExp("^"+k+"$(?!\\s)",j)),w&&(n=h.lastIndex),o=i(d,A?e:h,T),A?o?(o.input=S(o.input,L),o[0]=S(o[0],L),o.index=h.lastIndex,h.lastIndex+=o[0].length):h.lastIndex=0:w&&o&&(h.lastIndex=h.global?o.index+o[0].length:n),E&&o&&o.length>1&&i(g,o[0],e,(function(){for(a=1;a{"use strict";var n=e(3938);t.exports=function(){var t=n(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r}},353:(t,r,e)=>{var n=e(2368),o=e(6490),i=e(7658),a=e(6844),s=RegExp.prototype;t.exports=function(t){var r=t.flags;return void 0!==r||"flags"in s||o(t,"flags")||!i(s,t)?r:n(a,t)}},2192:(t,r,e)=>{var n=e(2074),o=e(200).RegExp,i=n((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),a=i||n((function(){return!o("a","y").sticky})),s=i||n((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},1036:(t,r,e)=>{var n=e(2074),o=e(200).RegExp;t.exports=n((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},8121:(t,r,e)=>{var n=e(2074),o=e(200).RegExp;t.exports=n((function(){var t=o("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},1229:(t,r,e)=>{var n=e(8406),o=TypeError;t.exports=function(t){if(n(t))throw o("Can't call method on "+t);return t}},4741:t=>{t.exports=Object.is||function(t,r){return t===r?0!==t||1/t==1/r:t!=t&&r!=r}},8827:(t,r,e)=>{"use strict";var n,o=e(200),i=e(9070),a=e(8420),s=e(6874),u=e(7061),c=e(9609),f=e(6589),l=o.Function,p=/MSIE .\./.test(u)||s&&((n=o.Bun.version.split(".")).length<3||0==n[0]&&(n[1]<3||3==n[1]&&0==n[2]));t.exports=function(t,r){var e=r?2:1;return p?function(n,o){var s=f(arguments.length,1)>e,u=a(n)?n:l(n),p=s?c(arguments,e):[],h=s?function(){i(u,this,p)}:u;return r?t(h,o):t(h)}:t}},3524:(t,r,e)=>{"use strict";var n=e(6492),o=e(6477),i=e(1602),a=e(5077),s=i("species");t.exports=function(t){var r=n(t);a&&r&&!r[s]&&o(r,s,{configurable:!0,get:function(){return this}})}},5282:(t,r,e)=>{var n=e(3610).f,o=e(6490),i=e(1602)("toStringTag");t.exports=function(t,r,e){t&&!e&&(t=t.prototype),t&&!o(t,i)&&n(t,i,{configurable:!0,value:r})}},5904:(t,r,e)=>{var n=e(2),o=e(665),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},9310:(t,r,e)=>{var n=e(200),o=e(9430),i="__core-js_shared__",a=n[i]||o(i,{});t.exports=a},2:(t,r,e)=>{var n=e(6926),o=e(9310);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.30.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7804:(t,r,e)=>{var n=e(281),o=e(9328),i=e(5362),a=e(1229),s=n("".charAt),u=n("".charCodeAt),c=n("".slice),f=function(t){return function(r,e){var n,f,l=i(a(r)),p=o(e),h=l.length;return p<0||p>=h?t?"":void 0:(n=u(l,p))<55296||n>56319||p+1===h||(f=u(l,p+1))<56320||f>57343?t?s(l,p):n:t?c(l,p,p+2):f-56320+(n-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},7046:(t,r,e)=>{var n=e(7061);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},5214:(t,r,e)=>{var n=e(281),o=e(3747),i=e(5362),a=e(140),s=e(1229),u=n(a),c=n("".slice),f=Math.ceil,l=function(t){return function(r,e,n){var a,l,p=i(s(r)),h=o(e),v=p.length,g=void 0===n?" ":i(n);return h<=v||""==g?p:((l=u(g,f((a=h-v)/g.length))).length>a&&(l=c(l,0,a)),t?p+l:l+p)}};t.exports={start:l(!1),end:l(!0)}},3150:(t,r,e)=>{var n=e(281),o=2147483647,i=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",u=RangeError,c=n(a.exec),f=Math.floor,l=String.fromCharCode,p=n("".charCodeAt),h=n([].join),v=n([].push),g=n("".replace),d=n("".split),y=n("".toLowerCase),m=function(t){return t+22+75*(t<26)},b=function(t,r,e){var n=0;for(t=e?f(t/700):t>>1,t+=f(t/r);t>455;)t=f(t/35),n+=36;return f(n+36*t/(t+38))},x=function(t){var r=[];t=function(t){for(var r=[],e=0,n=t.length;e=55296&&o<=56319&&e=a&&nf((o-c)/S))throw u(s);for(c+=(x-a)*S,a=x,e=0;eo)throw u(s);if(n==a){for(var w=c,O=36;;){var E=O<=g?1:O>=g+26?26:O-g;if(w{"use strict";var n=e(9328),o=e(5362),i=e(1229),a=RangeError;t.exports=function(t){var r=o(i(this)),e="",s=n(t);if(s<0||s==1/0)throw a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(r+=r))1&s&&(e+=r);return e}},9233:(t,r,e)=>{var n=e(2071).PROPER,o=e(2074),i=e(5073);t.exports=function(t){return o((function(){return!!i[t]()||"​…᠎"!=="​…᠎"[t]()||n&&i[t].name!==t}))}},9163:(t,r,e)=>{var n=e(281),o=e(1229),i=e(5362),a=e(5073),s=n("".replace),u=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),f=function(t){return function(r){var e=i(o(r));return 1&t&&(e=s(e,u,"")),2&t&&(e=s(e,c,"$1")),e}};t.exports={start:f(1),end:f(2),trim:f(3)}},2072:(t,r,e)=>{var n=e(6845),o=e(2074);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},8237:(t,r,e)=>{var n=e(2368),o=e(6492),i=e(1602),a=e(7485);t.exports=function(){var t=o("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,s=i("toPrimitive");r&&!r[s]&&a(r,s,(function(t){return n(e,this)}),{arity:1})}},4569:(t,r,e)=>{var n=e(2072);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},7809:(t,r,e)=>{var n=e(281);t.exports=n(1..valueOf)},6539:(t,r,e)=>{var n=e(9328),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return e<0?o(e+r,0):i(e,r)}},5476:(t,r,e)=>{var n=e(8664),o=e(1229);t.exports=function(t){return n(o(t))}},9328:(t,r,e)=>{var n=e(9830);t.exports=function(t){var r=+t;return r!=r||0===r?0:n(r)}},3747:(t,r,e)=>{var n=e(9328),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},2612:(t,r,e)=>{var n=e(1229),o=Object;t.exports=function(t){return o(n(t))}},874:(t,r,e)=>{var n=e(2368),o=e(5335),i=e(2328),a=e(6457),s=e(9751),u=e(1602),c=TypeError,f=u("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,u=a(t,f);if(u){if(void 0===r&&(r="default"),e=n(u,t,r),!o(e)||i(e))return e;throw c("Can't convert object to primitive value")}return void 0===r&&(r="number"),s(t,r)}},6032:(t,r,e)=>{var n=e(874),o=e(2328);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},3129:(t,r,e)=>{var n={};n[e(1602)("toStringTag")]="z",t.exports="[object z]"===String(n)},5362:(t,r,e)=>{var n=e(3062),o=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},3838:t=>{var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},665:(t,r,e)=>{var n=e(281),o=0,i=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},9557:(t,r,e)=>{var n=e(2074),o=e(1602),i=e(5077),a=e(6926),s=o("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),r=t.searchParams,e="";return t.pathname="c%20d",r.forEach((function(t,n){r.delete("b"),e+=n+t})),a&&!t.toJSON||!r.size&&(a||!i)||!r.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==r.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!r[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==e||"x"!==new URL("http://x",void 0).host}))},5225:(t,r,e)=>{var n=e(2072);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},4491:(t,r,e)=>{var n=e(5077),o=e(2074);t.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},6589:t=>{var r=TypeError;t.exports=function(t,e){if(t{var n=e(200),o=e(8420),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},6100:(t,r,e)=>{var n=e(9720),o=e(6490),i=e(802),a=e(3610).f;t.exports=function(t){var r=n.Symbol||(n.Symbol={});o(r,t)||a(r,t,{value:i.f(t)})}},802:(t,r,e)=>{var n=e(1602);r.f=n},1602:(t,r,e)=>{var n=e(200),o=e(2),i=e(6490),a=e(665),s=e(2072),u=e(5225),c=n.Symbol,f=o("wks"),l=u?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return i(f,t)||(f[t]=s&&i(c,t)?c[t]:l("Symbol."+t)),f[t]}},5073:t=>{t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},115:(t,r,e)=>{"use strict";var n=e(1605),o=e(2074),i=e(8679),a=e(5335),s=e(2612),u=e(3493),c=e(7242),f=e(2057),l=e(2998),p=e(5634),h=e(1602),v=e(6845),g=h("isConcatSpreadable"),d=v>=51||!o((function(){var t=[];return t[g]=!1,t.concat()[0]!==t})),y=function(t){if(!a(t))return!1;var r=t[g];return void 0!==r?!!r:i(t)};n({target:"Array",proto:!0,arity:1,forced:!d||!p("concat")},{concat:function(t){var r,e,n,o,i,a=s(this),p=l(a,0),h=0;for(r=-1,n=arguments.length;r{var n=e(1605),o=e(7806),i=e(298);n({target:"Array",proto:!0},{fill:o}),i("fill")},17:(t,r,e)=>{"use strict";var n=e(1605),o=e(1344).filter;n({target:"Array",proto:!0,forced:!e(5634)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},2157:(t,r,e)=>{"use strict";var n=e(1605),o=e(1344).findIndex,i=e(298),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},8636:(t,r,e)=>{"use strict";var n=e(1605),o=e(1344).find,i=e(298),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},8476:(t,r,e)=>{"use strict";var n=e(1605),o=e(516);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},9693:(t,r,e)=>{"use strict";var n=e(1605),o=e(3091),i=e(8186).indexOf,a=e(2349),s=o([].indexOf),u=!!s&&1/s([1],1,-0)<0;n({target:"Array",proto:!0,forced:u||!a("indexOf")},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return u?s(this,t,r)||0:i(this,t,r)}})},4895:(t,r,e)=>{e(1605)({target:"Array",stat:!0},{isArray:e(8679)})},8665:(t,r,e)=>{"use strict";var n=e(5476),o=e(298),i=e(2228),a=e(9206),s=e(3610).f,u=e(6409),c=e(8296),f=e(6926),l=e(5077),p="Array Iterator",h=a.set,v=a.getterFor(p);t.exports=u(Array,"Array",(function(t,r){h(this,{type:p,target:n(t),index:0,kind:r})}),(function(){var t=v(this),r=t.target,e=t.kind,n=t.index++;return!r||n>=r.length?(t.target=void 0,c(void 0,!0)):c("keys"==e?n:"values"==e?r[n]:[n,r[n]],!1)}),"values");var g=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!f&&l&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(t){}},475:(t,r,e)=>{"use strict";var n=e(1605),o=e(281),i=e(8664),a=e(5476),s=e(2349),u=o([].join);n({target:"Array",proto:!0,forced:i!=Object||!s("join",",")},{join:function(t){return u(a(this),void 0===t?",":t)}})},9581:(t,r,e)=>{"use strict";var n=e(1605),o=e(1344).map;n({target:"Array",proto:!0,forced:!e(5634)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},533:(t,r,e)=>{"use strict";var n=e(1605),o=e(2237).left,i=e(2349),a=e(6845);n({target:"Array",proto:!0,forced:!e(5223)&&a>79&&a<83||!i("reduce")},{reduce:function(t){var r=arguments.length;return o(this,t,r,r>1?arguments[1]:void 0)}})},557:(t,r,e)=>{"use strict";var n=e(1605),o=e(281),i=e(8679),a=o([].reverse),s=[1,2];n({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},4913:(t,r,e)=>{"use strict";var n=e(1605),o=e(8679),i=e(1466),a=e(5335),s=e(6539),u=e(3493),c=e(5476),f=e(2057),l=e(1602),p=e(5634),h=e(9609),v=p("slice"),g=l("species"),d=Array,y=Math.max;n({target:"Array",proto:!0,forced:!v},{slice:function(t,r){var e,n,l,p=c(this),v=u(p),m=s(t,v),b=s(void 0===r?v:r,v);if(o(p)&&(e=p.constructor,(i(e)&&(e===d||o(e.prototype))||a(e)&&null===(e=e[g]))&&(e=void 0),e===d||void 0===e))return h(p,m,b);for(n=new(void 0===e?d:e)(y(b-m,0)),l=0;m{"use strict";var n=e(1605),o=e(281),i=e(4601),a=e(2612),s=e(3493),u=e(4881),c=e(5362),f=e(2074),l=e(8039),p=e(2349),h=e(3727),v=e(7413),g=e(6845),d=e(2346),y=[],m=o(y.sort),b=o(y.push),x=f((function(){y.sort(void 0)})),S=f((function(){y.sort(null)})),w=p("sort"),O=!f((function(){if(g)return g<70;if(!(h&&h>3)){if(v)return!0;if(d)return d<603;var t,r,e,n,o="";for(t=65;t<76;t++){switch(r=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:e=3;break;case 68:case 71:e=4;break;default:e=2}for(n=0;n<47;n++)y.push({k:r+n,v:e})}for(y.sort((function(t,r){return r.v-t.v})),n=0;nc(e)?1:-1}}(t)),e=s(o),n=0;n{"use strict";var n=e(1605),o=e(2612),i=e(6539),a=e(9328),s=e(3493),u=e(6648),c=e(7242),f=e(2998),l=e(2057),p=e(4881),h=e(5634)("splice"),v=Math.max,g=Math.min;n({target:"Array",proto:!0,forced:!h},{splice:function(t,r){var e,n,h,d,y,m,b=o(this),x=s(b),S=i(t,x),w=arguments.length;for(0===w?e=n=0:1===w?(e=0,n=x-S):(e=w-2,n=g(v(a(r),0),x-S)),c(x+e-n),h=f(b,n),d=0;dx-n+e;d--)p(b,d-1)}else if(e>n)for(d=x-n;d>S;d--)m=d+e-1,(y=d+n-1)in b?b[m]=b[y]:p(b,m);for(d=0;d{var n=e(1605),o=e(281),i=Date,a=o(i.prototype.getTime);n({target:"Date",stat:!0},{now:function(){return a(new i)}})},9389:(t,r,e)=>{var n=e(281),o=e(7485),i=Date.prototype,a="Invalid Date",s="toString",u=n(i[s]),c=n(i.getTime);String(new Date(NaN))!=a&&o(i,s,(function(){var t=c(this);return t==t?u(this):a}))},4189:(t,r,e)=>{var n=e(1605),o=e(8891);n({target:"Function",proto:!0,forced:Function.bind!==o},{bind:o})},959:(t,r,e)=>{var n=e(1605),o=e(6492),i=e(9070),a=e(2368),s=e(281),u=e(2074),c=e(8420),f=e(2328),l=e(9609),p=e(1110),h=e(2072),v=String,g=o("JSON","stringify"),d=s(/./.exec),y=s("".charAt),m=s("".charCodeAt),b=s("".replace),x=s(1..toString),S=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,E=!h||u((function(){var t=o("Symbol")();return"[null]"!=g([t])||"{}"!=g({a:t})||"{}"!=g(Object(t))})),P=u((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),I=function(t,r){var e=l(arguments),n=p(r);if(c(n)||void 0!==t&&!f(t))return e[1]=function(t,r){if(c(n)&&(r=a(n,this,v(t),r)),!f(r))return r},i(g,null,e)},R=function(t,r,e){var n=y(e,r-1),o=y(e,r+1);return d(w,t)&&!d(O,o)||d(O,t)&&!d(w,n)?"\\u"+x(m(t,0),16):t};g&&n({target:"JSON",stat:!0,arity:3,forced:E||P},{stringify:function(t,r,e){var n=l(arguments),o=i(E?I:g,null,n);return P&&"string"==typeof o?b(o,S,R):o}})},1145:(t,r,e)=>{e(1605)({target:"Math",stat:!0},{log10:e(3103)})},4538:(t,r,e)=>{e(1605)({target:"Math",stat:!0},{sign:e(1211)})},4009:(t,r,e)=>{"use strict";var n=e(1605),o=e(6926),i=e(5077),a=e(200),s=e(9720),u=e(281),c=e(4977),f=e(6490),l=e(3054),p=e(7658),h=e(2328),v=e(874),g=e(2074),d=e(4789).f,y=e(7632).f,m=e(3610).f,b=e(7809),x=e(9163).trim,S="Number",w=a[S],O=s[S],E=w.prototype,P=a.TypeError,I=u("".slice),R=u("".charCodeAt),A=function(t){var r,e,n,o,i,a,s,u,c=v(t,"number");if(h(c))throw P("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=x(c),43===(r=R(c,0))||45===r){if(88===(e=R(c,2))||120===e)return NaN}else if(48===r){switch(R(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=I(c,2)).length,s=0;so)return NaN;return parseInt(i,n)}return+c},j=c(S,!w(" 0o1")||!w("0b1")||w("+0x1")),k=function(t){var r,e=arguments.length<1?0:w(function(t){var r=v(t,"number");return"bigint"==typeof r?r:A(r)}(t));return p(E,r=this)&&g((function(){b(r)}))?l(Object(e),this,k):e};k.prototype=E,j&&!o&&(E.constructor=k),n({global:!0,constructor:!0,wrap:!0,forced:j},{Number:k});var L=function(t,r){for(var e,n=i?d(r):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)f(r,e=n[o])&&!f(t,e)&&m(t,e,y(r,e))};o&&O&&L(s[S],O),(j||o)&&L(s[S],w)},6943:(t,r,e)=>{e(1605)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},2006:(t,r,e)=>{e(1605)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},8844:(t,r,e)=>{e(1605)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},4867:(t,r,e)=>{"use strict";var n=e(1605),o=e(281),i=e(9328),a=e(7809),s=e(140),u=e(2074),c=RangeError,f=String,l=Math.floor,p=o(s),h=o("".slice),v=o(1..toFixed),g=function(t,r,e){return 0===r?e:r%2==1?g(t,r-1,e*t):g(t*t,r/2,e)},d=function(t,r,e){for(var n=-1,o=e;++n<6;)o+=r*t[n],t[n]=o%1e7,o=l(o/1e7)},y=function(t,r){for(var e=6,n=0;--e>=0;)n+=t[e],t[e]=l(n/r),n=n%r*1e7},m=function(t){for(var r=6,e="";--r>=0;)if(""!==e||0===r||0!==t[r]){var n=f(t[r]);e=""===e?n:e+p("0",7-n.length)+n}return e};n({target:"Number",proto:!0,forced:u((function(){return"0.000"!==v(8e-5,3)||"1"!==v(.9,0)||"1.25"!==v(1.255,2)||"1000000000000000128"!==v(0xde0b6b3a7640080,0)}))||!u((function(){v({})}))},{toFixed:function(t){var r,e,n,o,s=a(this),u=i(t),l=[0,0,0,0,0,0],v="",b="0";if(u<0||u>20)throw c("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return f(s);if(s<0&&(v="-",s=-s),s>1e-21)if(e=(r=function(t){for(var r=0,e=t;e>=4096;)r+=12,e/=4096;for(;e>=2;)r+=1,e/=2;return r}(s*g(2,69,1))-69)<0?s*g(2,-r,1):s/g(2,r,1),e*=4503599627370496,(r=52-r)>0){for(d(l,0,e),n=u;n>=7;)d(l,1e7,0),n-=7;for(d(l,g(10,n,1),0),n=r-1;n>=23;)y(l,1<<23),n-=23;y(l,1<0?v+((o=b.length)<=u?"0."+p("0",u-o)+b:h(b,0,o-u)+"."+h(b,o-u)):v+b}})},9218:(t,r,e)=>{var n=e(1605),o=e(1688);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},5852:(t,r,e)=>{var n=e(1605),o=e(5077),i=e(3610).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},1074:(t,r,e)=>{var n=e(1605),o=e(2072),i=e(2074),a=e(8916),s=e(2612);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var r=a.f;return r?r(s(t)):[]}})},7899:(t,r,e)=>{var n=e(1605),o=e(2612),i=e(1641);n({target:"Object",stat:!0,forced:e(2074)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},5086:(t,r,e)=>{var n=e(3129),o=e(7485),i=e(4972);n||o(Object.prototype,"toString",i,{unsafe:!0})},6088:(t,r,e)=>{var n=e(1605),o=e(5963);n({global:!0,forced:parseFloat!=o},{parseFloat:o})},2231:(t,r,e)=>{var n=e(1605),o=e(7292);n({global:!0,forced:parseInt!=o},{parseInt:o})},9073:(t,r,e)=>{var n=e(5077),o=e(200),i=e(281),a=e(4977),s=e(3054),u=e(7712),c=e(4789).f,f=e(7658),l=e(2449),p=e(5362),h=e(353),v=e(2192),g=e(6527),d=e(7485),y=e(2074),m=e(6490),b=e(9206).enforce,x=e(3524),S=e(1602),w=e(1036),O=e(8121),E=S("match"),P=o.RegExp,I=P.prototype,R=o.SyntaxError,A=i(I.exec),j=i("".charAt),k=i("".replace),L=i("".indexOf),T=i("".slice),U=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,F=/a/g,C=/a/g,M=new P(F)!==F,N=v.MISSED_STICKY,_=v.UNSUPPORTED_Y,D=n&&(!M||N||w||O||y((function(){return C[E]=!1,P(F)!=F||P(C)==C||"/a/i"!=P(F,"i")})));if(a("RegExp",D)){for(var B=function(t,r){var e,n,o,i,a,c,v=f(I,this),g=l(t),d=void 0===r,y=[],x=t;if(!v&&g&&d&&t.constructor===B)return t;if((g||f(I,t))&&(t=t.source,d&&(r=h(x))),t=void 0===t?"":p(t),r=void 0===r?"":p(r),x=t,w&&"dotAll"in F&&(n=!!r&&L(r,"s")>-1)&&(r=k(r,/s/g,"")),e=r,N&&"sticky"in F&&(o=!!r&&L(r,"y")>-1)&&_&&(r=k(r,/y/g,"")),O&&(i=function(t){for(var r,e=t.length,n=0,o="",i=[],a={},s=!1,u=!1,c=0,f="";n<=e;n++){if("\\"===(r=j(t,n)))r+=j(t,++n);else if("]"===r)s=!1;else if(!s)switch(!0){case"["===r:s=!0;break;case"("===r:A(U,T(t,n+1))&&(n+=2,u=!0),o+=r,c++;continue;case">"===r&&u:if(""===f||m(a,f))throw new R("Invalid capture group name");a[f]=!0,i[i.length]=[f,c],u=!1,f="";continue}u?f+=r:o+=r}return[o,i]}(t),t=i[0],y=i[1]),a=s(P(t,r),v?this:I,B),(n||o||y.length)&&(c=b(a),n&&(c.dotAll=!0,c.raw=B(function(t){for(var r,e=t.length,n=0,o="",i=!1;n<=e;n++)"\\"!==(r=j(t,n))?i||"."!==r?("["===r?i=!0:"]"===r&&(i=!1),o+=r):o+="[\\s\\S]":o+=r+j(t,++n);return o}(t),e)),o&&(c.sticky=!0),y.length&&(c.groups=y)),t!==x)try{u(a,"source",""===x?"(?:)":x)}catch(t){}return a},H=c(P),q=0;H.length>q;)g(B,P,H[q++]);I.constructor=B,B.prototype=I,d(o,"RegExp",B,{constructor:!0})}x("RegExp")},7136:(t,r,e)=>{"use strict";var n=e(1605),o=e(54);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},6048:(t,r,e)=>{"use strict";var n=e(2071).PROPER,o=e(7485),i=e(3938),a=e(5362),s=e(2074),u=e(353),c="toString",f=RegExp.prototype[c],l=s((function(){return"/a/b"!=f.call({source:"a",flags:"b"})})),p=n&&f.name!=c;(l||p)&&o(RegExp.prototype,c,(function(){var t=i(this);return"/"+a(t.source)+"/"+a(u(t))}),{unsafe:!0})},9979:(t,r,e)=>{"use strict";var n=e(7804).charAt,o=e(5362),i=e(9206),a=e(6409),s=e(8296),u="String Iterator",c=i.set,f=i.getterFor(u);a(String,"String",(function(t){c(this,{type:u,string:o(t),index:0})}),(function(){var t,r=f(this),e=r.string,o=r.index;return o>=e.length?s(void 0,!0):(t=n(e,o),r.index+=t.length,s(t,!1))}))},6255:(t,r,e)=>{"use strict";var n=e(2368),o=e(779),i=e(3938),a=e(8406),s=e(3747),u=e(5362),c=e(1229),f=e(6457),l=e(7234),p=e(6793);o("match",(function(t,r,e){return[function(r){var e=c(this),o=a(r)?void 0:f(r,t);return o?n(o,r,e):new RegExp(r)[t](u(e))},function(t){var n=i(this),o=u(t),a=e(r,n,o);if(a.done)return a.value;if(!n.global)return p(n,o);var c=n.unicode;n.lastIndex=0;for(var f,h=[],v=0;null!==(f=p(n,o));){var g=u(f[0]);h[v]=g,""===g&&(n.lastIndex=l(o,s(n.lastIndex),c)),v++}return 0===v?null:h}]}))},8825:(t,r,e)=>{"use strict";var n=e(1605),o=e(5214).start;n({target:"String",proto:!0,forced:e(7046)},{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},173:(t,r,e)=>{"use strict";var n=e(9070),o=e(2368),i=e(281),a=e(779),s=e(2074),u=e(3938),c=e(8420),f=e(8406),l=e(9328),p=e(3747),h=e(5362),v=e(1229),g=e(7234),d=e(6457),y=e(4433),m=e(6793),b=e(1602)("replace"),x=Math.max,S=Math.min,w=i([].concat),O=i([].push),E=i("".indexOf),P=i("".slice),I="$0"==="a".replace(/./,"$0"),R=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(t,r,e){var i=R?"$":"$0";return[function(t,e){var n=v(this),i=f(t)?void 0:d(t,b);return i?o(i,t,n,e):o(r,h(n),t,e)},function(t,o){var a=u(this),s=h(t);if("string"==typeof o&&-1===E(o,i)&&-1===E(o,"$<")){var f=e(r,a,s,o);if(f.done)return f.value}var v=c(o);v||(o=h(o));var d=a.global;if(d){var b=a.unicode;a.lastIndex=0}for(var I=[];;){var R=m(a,s);if(null===R)break;if(O(I,R),!d)break;""===h(R[0])&&(a.lastIndex=g(s,p(a.lastIndex),b))}for(var A,j="",k=0,L=0;L=k&&(j+=P(s,k,U)+_,k=U+T.length)}return j+P(s,k)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}))||!I||R)},785:(t,r,e)=>{"use strict";var n=e(2368),o=e(779),i=e(3938),a=e(8406),s=e(1229),u=e(4741),c=e(5362),f=e(6457),l=e(6793);o("search",(function(t,r,e){return[function(r){var e=s(this),o=a(r)?void 0:f(r,t);return o?n(o,r,e):new RegExp(r)[t](c(e))},function(t){var n=i(this),o=c(t),a=e(r,n,o);if(a.done)return a.value;var s=n.lastIndex;u(s,0)||(n.lastIndex=0);var f=l(n,o);return u(n.lastIndex,s)||(n.lastIndex=s),null===f?-1:f.index}]}))},8329:(t,r,e)=>{"use strict";var n=e(1605),o=e(9163).trim;n({target:"String",proto:!0,forced:e(9233)("trim")},{trim:function(){return o(this)}})},7896:(t,r,e)=>{"use strict";var n=e(1605),o=e(200),i=e(2368),a=e(281),s=e(6926),u=e(5077),c=e(2072),f=e(2074),l=e(6490),p=e(7658),h=e(3938),v=e(5476),g=e(6032),d=e(5362),y=e(6843),m=e(3105),b=e(1641),x=e(4789),S=e(6509),w=e(8916),O=e(7632),E=e(3610),P=e(5318),I=e(9304),R=e(7485),A=e(6477),j=e(2),k=e(5904),L=e(7708),T=e(665),U=e(1602),F=e(802),C=e(6100),M=e(8237),N=e(5282),_=e(9206),D=e(1344).forEach,B=k("hidden"),H="Symbol",q="prototype",$=_.set,G=_.getterFor(H),z=Object[q],V=o.Symbol,W=V&&V[q],Y=o.TypeError,K=o.QObject,J=O.f,X=E.f,Q=S.f,Z=I.f,tt=a([].push),rt=j("symbols"),et=j("op-symbols"),nt=j("wks"),ot=!K||!K[q]||!K[q].findChild,it=u&&f((function(){return 7!=m(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=J(z,r);n&&delete z[r],X(t,r,e),n&&t!==z&&X(z,r,n)}:X,at=function(t,r){var e=rt[t]=m(W);return $(e,{type:H,tag:t,description:r}),u||(e.description=r),e},st=function(t,r,e){t===z&&st(et,r,e),h(t);var n=g(r);return h(e),l(rt,n)?(e.enumerable?(l(t,B)&&t[B][n]&&(t[B][n]=!1),e=m(e,{enumerable:y(0,!1)})):(l(t,B)||X(t,B,y(1,{})),t[B][n]=!0),it(t,n,e)):X(t,n,e)},ut=function(t,r){h(t);var e=v(r),n=b(e).concat(pt(e));return D(n,(function(r){u&&!i(ct,e,r)||st(t,r,e[r])})),t},ct=function(t){var r=g(t),e=i(Z,this,r);return!(this===z&&l(rt,r)&&!l(et,r))&&(!(e||!l(this,r)||!l(rt,r)||l(this,B)&&this[B][r])||e)},ft=function(t,r){var e=v(t),n=g(r);if(e!==z||!l(rt,n)||l(et,n)){var o=J(e,n);return!o||!l(rt,n)||l(e,B)&&e[B][n]||(o.enumerable=!0),o}},lt=function(t){var r=Q(v(t)),e=[];return D(r,(function(t){l(rt,t)||l(L,t)||tt(e,t)})),e},pt=function(t){var r=t===z,e=Q(r?et:v(t)),n=[];return D(e,(function(t){!l(rt,t)||r&&!l(z,t)||tt(n,rt[t])})),n};c||(R(W=(V=function(){if(p(W,this))throw Y("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?d(arguments[0]):void 0,r=T(t),e=function(t){this===z&&i(e,et,t),l(this,B)&&l(this[B],r)&&(this[B][r]=!1),it(this,r,y(1,t))};return u&&ot&&it(z,r,{configurable:!0,set:e}),at(r,t)})[q],"toString",(function(){return G(this).tag})),R(V,"withoutSetter",(function(t){return at(T(t),t)})),I.f=ct,E.f=st,P.f=ut,O.f=ft,x.f=S.f=lt,w.f=pt,F.f=function(t){return at(U(t),t)},u&&(A(W,"description",{configurable:!0,get:function(){return G(this).description}}),s||R(z,"propertyIsEnumerable",ct,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:V}),D(b(nt),(function(t){C(t)})),n({target:H,stat:!0,forced:!c},{useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,r){return void 0===r?m(t):ut(m(t),r)},defineProperty:st,defineProperties:ut,getOwnPropertyDescriptor:ft}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:lt}),M(),N(V,H),L[B]=!0},590:(t,r,e)=>{"use strict";var n=e(1605),o=e(5077),i=e(200),a=e(281),s=e(6490),u=e(8420),c=e(7658),f=e(5362),l=e(6477),p=e(4361),h=i.Symbol,v=h&&h.prototype;if(o&&u(h)&&(!("description"in v)||void 0!==h().description)){var g={},d=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),r=c(v,this)?new h(t):void 0===t?h():h(t);return""===t&&(g[r]=!0),r};p(d,h),d.prototype=v,v.constructor=d;var y="Symbol(test)"==String(h("test")),m=a(v.valueOf),b=a(v.toString),x=/^Symbol\((.*)\)[^)]+$/,S=a("".replace),w=a("".slice);l(v,"description",{configurable:!0,get:function(){var t=m(this);if(s(g,t))return"";var r=b(t),e=y?w(r,7,-1):S(r,x,"$1");return""===e?void 0:e}}),n({global:!0,constructor:!0,forced:!0},{Symbol:d})}},3883:(t,r,e)=>{var n=e(1605),o=e(6492),i=e(6490),a=e(5362),s=e(2),u=e(4569),c=s("string-to-symbol-registry"),f=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{for:function(t){var r=a(t);if(i(c,r))return c[r];var e=o("Symbol")(r);return c[r]=e,f[e]=r,e}})},4216:(t,r,e)=>{e(6100)("iterator")},3534:(t,r,e)=>{e(7896),e(3883),e(5245),e(959),e(1074)},5245:(t,r,e)=>{var n=e(1605),o=e(6490),i=e(2328),a=e(3838),s=e(2),u=e(4569),c=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!i(t))throw TypeError(a(t)+" is not a symbol");if(o(c,t))return c[t]}})},8379:(t,r,e)=>{var n=e(200),o=e(5549),i=e(2975),a=e(516),s=e(7712),u=function(t){if(t&&t.forEach!==a)try{s(t,"forEach",a)}catch(r){t.forEach=a}};for(var c in o)o[c]&&u(n[c]&&n[c].prototype);u(i)},4602:(t,r,e)=>{var n=e(200),o=e(5549),i=e(2975),a=e(8665),s=e(7712),u=e(1602),c=u("iterator"),f=u("toStringTag"),l=a.values,p=function(t,r){if(t){if(t[c]!==l)try{s(t,c,l)}catch(r){t[c]=l}if(t[f]||s(t,f,r),o[r])for(var e in a)if(t[e]!==a[e])try{s(t,e,a[e])}catch(r){t[e]=a[e]}}};for(var h in o)p(n[h]&&n[h].prototype,h);p(i,"DOMTokenList")},2776:(t,r,e)=>{var n=e(1605),o=e(200),i=e(8827)(o.setInterval,!0);n({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},538:(t,r,e)=>{var n=e(1605),o=e(200),i=e(8827)(o.setTimeout,!0);n({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},8772:(t,r,e)=>{e(2776),e(538)},7895:(t,r,e)=>{"use strict";e(8665);var n=e(1605),o=e(200),i=e(2368),a=e(281),s=e(5077),u=e(9557),c=e(7485),f=e(6477),l=e(2760),p=e(5282),h=e(8287),v=e(9206),g=e(5190),d=e(8420),y=e(6490),m=e(6885),b=e(3062),x=e(3938),S=e(5335),w=e(5362),O=e(3105),E=e(6843),P=e(9526),I=e(1898),R=e(6589),A=e(1602),j=e(8039),k=A("iterator"),L="URLSearchParams",T=L+"Iterator",U=v.set,F=v.getterFor(L),C=v.getterFor(T),M=Object.getOwnPropertyDescriptor,N=function(t){if(!s)return o[t];var r=M(o,t);return r&&r.value},_=N("fetch"),D=N("Request"),B=N("Headers"),H=D&&D.prototype,q=B&&B.prototype,$=o.RegExp,G=o.TypeError,z=o.decodeURIComponent,V=o.encodeURIComponent,W=a("".charAt),Y=a([].join),K=a([].push),J=a("".replace),X=a([].shift),Q=a([].splice),Z=a("".split),tt=a("".slice),rt=/\+/g,et=Array(4),nt=function(t){return et[t-1]||(et[t-1]=$("((?:%[\\da-f]{2}){"+t+"})","gi"))},ot=function(t){try{return z(t)}catch(r){return t}},it=function(t){var r=J(t,rt," "),e=4;try{return z(r)}catch(t){for(;e;)r=J(r,nt(e--),ot);return r}},at=/[!'()~]|%20/g,st={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ut=function(t){return st[t]},ct=function(t){return J(V(t),at,ut)},ft=h((function(t,r){U(this,{type:T,iterator:P(F(t).entries),kind:r})}),"Iterator",(function(){var t=C(this),r=t.kind,e=t.iterator.next(),n=e.value;return e.done||(e.value="keys"===r?n.key:"values"===r?n.value:[n.key,n.value]),e}),!0),lt=function(t){this.entries=[],this.url=null,void 0!==t&&(S(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===W(t,0)?tt(t,1):t:w(t)))};lt.prototype={type:L,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var r,e,n,o,a,s,u,c=I(t);if(c)for(e=(r=P(t,c)).next;!(n=i(e,r)).done;){if(a=(o=P(x(n.value))).next,(s=i(a,o)).done||(u=i(a,o)).done||!i(a,o).done)throw G("Expected sequence with length 2");K(this.entries,{key:w(s.value),value:w(u.value)})}else for(var f in t)y(t,f)&&K(this.entries,{key:f,value:w(t[f])})},parseQuery:function(t){if(t)for(var r,e,n=Z(t,"&"),o=0;o0?arguments[0]:void 0));s||(this.length=t.entries.length)},ht=pt.prototype;if(l(ht,{append:function(t,r){R(arguments.length,2);var e=F(this);K(e.entries,{key:w(t),value:w(r)}),s||this.length++,e.updateURL()},delete:function(t){R(arguments.length,1);for(var r=F(this),e=r.entries,n=w(t),o=0;or.key?1:-1})),t.updateURL()},forEach:function(t){for(var r,e=F(this).entries,n=m(t,arguments.length>1?arguments[1]:void 0),o=0;o1?dt(arguments[1]):{})}}),d(D)){var yt=function(t){return g(this,H),new D(t,arguments.length>1?dt(arguments[1]):{})};H.constructor=yt,yt.prototype=H,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:yt})}}t.exports={URLSearchParams:pt,getState:F}},933:(t,r,e)=>{e(7895)},5847:(t,r,e)=>{"use strict";e(9979);var n,o=e(1605),i=e(5077),a=e(9557),s=e(200),u=e(6885),c=e(281),f=e(7485),l=e(6477),p=e(5190),h=e(6490),v=e(1688),g=e(1027),d=e(6056),y=e(7804).codeAt,m=e(3150),b=e(5362),x=e(5282),S=e(6589),w=e(7895),O=e(9206),E=O.set,P=O.getterFor("URL"),I=w.URLSearchParams,R=w.getState,A=s.URL,j=s.TypeError,k=s.parseInt,L=Math.floor,T=Math.pow,U=c("".charAt),F=c(/./.exec),C=c([].join),M=c(1..toString),N=c([].pop),_=c([].push),D=c("".replace),B=c([].shift),H=c("".split),q=c("".slice),$=c("".toLowerCase),G=c([].unshift),z="Invalid scheme",V="Invalid host",W="Invalid port",Y=/[a-z]/i,K=/[\d+-.a-z]/i,J=/\d/,X=/^0x/i,Q=/^[0-7]+$/,Z=/^\d+$/,tt=/^[\da-f]+$/i,rt=/[\0\t\n\r #%/:<>?@[\\\]^|]/,et=/[\0\t\n\r #/:<>?@[\\\]^|]/,nt=/^[\u0000-\u0020]+/,ot=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,it=/[\t\n\r]/g,at=function(t){var r,e,n,o;if("number"==typeof t){for(r=[],e=0;e<4;e++)G(r,t%256),t=L(t/256);return C(r,".")}if("object"==typeof t){for(r="",n=function(t){for(var r=null,e=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>e&&(r=n,e=o),n=null,o=0):(null===n&&(n=i),++o);return o>e&&(r=n,e=o),r}(t),e=0;e<8;e++)o&&0===t[e]||(o&&(o=!1),n===e?(r+=e?":":"::",o=!0):(r+=M(t[e],16),e<7&&(r+=":")));return"["+r+"]"}return t},st={},ut=v({},st,{" ":1,'"':1,"<":1,">":1,"`":1}),ct=v({},ut,{"#":1,"?":1,"{":1,"}":1}),ft=v({},ct,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),lt=function(t,r){var e=y(t,0);return e>32&&e<127&&!h(r,t)?t:encodeURIComponent(t)},pt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ht=function(t,r){var e;return 2==t.length&&F(Y,U(t,0))&&(":"==(e=U(t,1))||!r&&"|"==e)},vt=function(t){var r;return t.length>1&&ht(q(t,0,2))&&(2==t.length||"/"===(r=U(t,2))||"\\"===r||"?"===r||"#"===r)},gt=function(t){return"."===t||"%2e"===$(t)},dt={},yt={},mt={},bt={},xt={},St={},wt={},Ot={},Et={},Pt={},It={},Rt={},At={},jt={},kt={},Lt={},Tt={},Ut={},Ft={},Ct={},Mt={},Nt=function(t,r,e){var n,o,i,a=b(t);if(r){if(o=this.parse(a))throw j(o);this.searchParams=null}else{if(void 0!==e&&(n=new Nt(e,!0)),o=this.parse(a,null,n))throw j(o);(i=R(new I)).bindURL(this),this.searchParams=i}};Nt.prototype={type:"URL",parse:function(t,r,e){var o,i,a,s,u,c=this,f=r||dt,l=0,p="",v=!1,y=!1,m=!1;for(t=b(t),r||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=D(t,nt,""),t=D(t,ot,"$1")),t=D(t,it,""),o=g(t);l<=o.length;){switch(i=o[l],f){case dt:if(!i||!F(Y,i)){if(r)return z;f=mt;continue}p+=$(i),f=yt;break;case yt:if(i&&(F(K,i)||"+"==i||"-"==i||"."==i))p+=$(i);else{if(":"!=i){if(r)return z;p="",f=mt,l=0;continue}if(r&&(c.isSpecial()!=h(pt,p)||"file"==p&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=p,r)return void(c.isSpecial()&&pt[c.scheme]==c.port&&(c.port=null));p="","file"==c.scheme?f=jt:c.isSpecial()&&e&&e.scheme==c.scheme?f=bt:c.isSpecial()?f=Ot:"/"==o[l+1]?(f=xt,l++):(c.cannotBeABaseURL=!0,_(c.path,""),f=Ft)}break;case mt:if(!e||e.cannotBeABaseURL&&"#"!=i)return z;if(e.cannotBeABaseURL&&"#"==i){c.scheme=e.scheme,c.path=d(e.path),c.query=e.query,c.fragment="",c.cannotBeABaseURL=!0,f=Mt;break}f="file"==e.scheme?jt:St;continue;case bt:if("/"!=i||"/"!=o[l+1]){f=St;continue}f=Et,l++;break;case xt:if("/"==i){f=Pt;break}f=Ut;continue;case St:if(c.scheme=e.scheme,i==n)c.username=e.username,c.password=e.password,c.host=e.host,c.port=e.port,c.path=d(e.path),c.query=e.query;else if("/"==i||"\\"==i&&c.isSpecial())f=wt;else if("?"==i)c.username=e.username,c.password=e.password,c.host=e.host,c.port=e.port,c.path=d(e.path),c.query="",f=Ct;else{if("#"!=i){c.username=e.username,c.password=e.password,c.host=e.host,c.port=e.port,c.path=d(e.path),c.path.length--,f=Ut;continue}c.username=e.username,c.password=e.password,c.host=e.host,c.port=e.port,c.path=d(e.path),c.query=e.query,c.fragment="",f=Mt}break;case wt:if(!c.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){c.username=e.username,c.password=e.password,c.host=e.host,c.port=e.port,f=Ut;continue}f=Pt}else f=Et;break;case Ot:if(f=Et,"/"!=i||"/"!=U(p,l+1))continue;l++;break;case Et:if("/"!=i&&"\\"!=i){f=Pt;continue}break;case Pt:if("@"==i){v&&(p="%40"+p),v=!0,a=g(p);for(var x=0;x65535)return W;c.port=c.isSpecial()&&O===pt[c.scheme]?null:O,p=""}if(r)return;f=Tt;continue}return W}p+=i;break;case jt:if(c.scheme="file","/"==i||"\\"==i)f=kt;else{if(!e||"file"!=e.scheme){f=Ut;continue}if(i==n)c.host=e.host,c.path=d(e.path),c.query=e.query;else if("?"==i)c.host=e.host,c.path=d(e.path),c.query="",f=Ct;else{if("#"!=i){vt(C(d(o,l),""))||(c.host=e.host,c.path=d(e.path),c.shortenPath()),f=Ut;continue}c.host=e.host,c.path=d(e.path),c.query=e.query,c.fragment="",f=Mt}}break;case kt:if("/"==i||"\\"==i){f=Lt;break}e&&"file"==e.scheme&&!vt(C(d(o,l),""))&&(ht(e.path[0],!0)?_(c.path,e.path[0]):c.host=e.host),f=Ut;continue;case Lt:if(i==n||"/"==i||"\\"==i||"?"==i||"#"==i){if(!r&&ht(p))f=Ut;else if(""==p){if(c.host="",r)return;f=Tt}else{if(s=c.parseHost(p))return s;if("localhost"==c.host&&(c.host=""),r)return;p="",f=Tt}continue}p+=i;break;case Tt:if(c.isSpecial()){if(f=Ut,"/"!=i&&"\\"!=i)continue}else if(r||"?"!=i)if(r||"#"!=i){if(i!=n&&(f=Ut,"/"!=i))continue}else c.fragment="",f=Mt;else c.query="",f=Ct;break;case Ut:if(i==n||"/"==i||"\\"==i&&c.isSpecial()||!r&&("?"==i||"#"==i)){if(".."===(u=$(u=p))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(c.shortenPath(),"/"==i||"\\"==i&&c.isSpecial()||_(c.path,"")):gt(p)?"/"==i||"\\"==i&&c.isSpecial()||_(c.path,""):("file"==c.scheme&&!c.path.length&&ht(p)&&(c.host&&(c.host=""),p=U(p,0)+":"),_(c.path,p)),p="","file"==c.scheme&&(i==n||"?"==i||"#"==i))for(;c.path.length>1&&""===c.path[0];)B(c.path);"?"==i?(c.query="",f=Ct):"#"==i&&(c.fragment="",f=Mt)}else p+=lt(i,ct);break;case Ft:"?"==i?(c.query="",f=Ct):"#"==i?(c.fragment="",f=Mt):i!=n&&(c.path[0]+=lt(i,st));break;case Ct:r||"#"!=i?i!=n&&("'"==i&&c.isSpecial()?c.query+="%27":c.query+="#"==i?"%23":lt(i,st)):(c.fragment="",f=Mt);break;case Mt:i!=n&&(c.fragment+=lt(i,ut))}l++}},parseHost:function(t){var r,e,n;if("["==U(t,0)){if("]"!=U(t,t.length-1))return V;if(r=function(t){var r,e,n,o,i,a,s,u=[0,0,0,0,0,0,0,0],c=0,f=null,l=0,p=function(){return U(t,l)};if(":"==p()){if(":"!=U(t,1))return;l+=2,f=++c}for(;p();){if(8==c)return;if(":"!=p()){for(r=e=0;e<4&&F(tt,p());)r=16*r+k(p(),16),l++,e++;if("."==p()){if(0==e)return;if(l-=e,c>6)return;for(n=0;p();){if(o=null,n>0){if(!("."==p()&&n<4))return;l++}if(!F(J,p()))return;for(;F(J,p());){if(i=k(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}u[c]=256*u[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==p()){if(l++,!p())return}else if(p())return;u[c++]=r}else{if(null!==f)return;l++,f=++c}}if(null!==f)for(a=c-f,c=7;0!=c&&a>0;)s=u[c],u[c--]=u[f+a-1],u[f+--a]=s;else if(8!=c)return;return u}(q(t,1,-1)),!r)return V;this.host=r}else if(this.isSpecial()){if(t=m(t),F(rt,t))return V;if(r=function(t){var r,e,n,o,i,a,s,u=H(t,".");if(u.length&&""==u[u.length-1]&&u.length--,(r=u.length)>4)return t;for(e=[],n=0;n1&&"0"==U(o,0)&&(i=F(X,o)?16:8,o=q(o,8==i?1:2)),""===o)a=0;else{if(!F(10==i?Z:8==i?Q:tt,o))return t;a=k(o,i)}_(e,a)}for(n=0;n=T(256,5-r))return null}else if(a>255)return null;for(s=N(e),n=0;n1?arguments[1]:void 0,n=E(r,new Nt(t,!1,e));i||(r.href=n.serialize(),r.origin=n.getOrigin(),r.protocol=n.getProtocol(),r.username=n.getUsername(),r.password=n.getPassword(),r.host=n.getHost(),r.hostname=n.getHostname(),r.port=n.getPort(),r.pathname=n.getPathname(),r.search=n.getSearch(),r.searchParams=n.getSearchParams(),r.hash=n.getHash())},Dt=_t.prototype,Bt=function(t,r){return{get:function(){return P(this)[t]()},set:r&&function(t){return P(this)[r](t)},configurable:!0,enumerable:!0}};if(i&&(l(Dt,"href",Bt("serialize","setHref")),l(Dt,"origin",Bt("getOrigin")),l(Dt,"protocol",Bt("getProtocol","setProtocol")),l(Dt,"username",Bt("getUsername","setUsername")),l(Dt,"password",Bt("getPassword","setPassword")),l(Dt,"host",Bt("getHost","setHost")),l(Dt,"hostname",Bt("getHostname","setHostname")),l(Dt,"port",Bt("getPort","setPort")),l(Dt,"pathname",Bt("getPathname","setPathname")),l(Dt,"search",Bt("getSearch","setSearch")),l(Dt,"searchParams",Bt("getSearchParams")),l(Dt,"hash",Bt("getHash","setHash"))),f(Dt,"toJSON",(function(){return P(this).serialize()}),{enumerable:!0}),f(Dt,"toString",(function(){return P(this).serialize()}),{enumerable:!0}),A){var Ht=A.createObjectURL,qt=A.revokeObjectURL;Ht&&f(_t,"createObjectURL",u(Ht,A)),qt&&f(_t,"revokeObjectURL",u(qt,A))}x(_t,"URL"),o({global:!0,constructor:!0,forced:!a,sham:!i},{URL:_t})},789:(t,r,e)=>{e(5847)}}]); \ No newline at end of file