diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..9d5ce39 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,5 @@ +{ + "printWidth": 120, + "singleQuote": true, + "trailingComma": "es5" +} diff --git a/dist/js/chart-js-integration.js b/dist/js/chart-js-integration.js index cba31c4..1aa1752 100644 --- a/dist/js/chart-js-integration.js +++ b/dist/js/chart-js-integration.js @@ -1,2 +1,2 @@ /*! For license information please see chart-js-integration.js.LICENSE.txt */ -(()=>{var __webpack_modules__={357:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _bar_chart__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(898),_Icons_IconRefresh__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(23),_Icons_IconExternalLink__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(271),_excluded=["linkTo"],_excluded2=["linkTo"];function _typeof(t){return _typeof="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},_typeof(t)}function _objectWithoutProperties(t,e){if(null==t)return{};var i,o,n=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o=1e9?(t/1e9).toFixed(1).replace(/\.0$/,"")+"G":t>=1e6?(t/1e6).toFixed(1).replace(/\.0$/,"")+"M":t>=1e3?(t/1e3).toFixed(1).replace(/\.0$/,"")+"K":t}})}),xAxes:_objectSpread(_objectSpread({},(null===(_this$card$options$sc4=this.card.options.scales)||void 0===_this$card$options$sc4?void 0:_this$card$options$sc4.xAxes)||{}),{},{ticks:_objectSpread(_objectSpread({},(null===(_this$card$options$sc5=this.card.options.scales)||void 0===_this$card$options$sc5||null===(_this$card$options$sc5=_this$card$options$sc5.xAxes)||void 0===_this$card$options$sc5?void 0:_this$card$options$sc5.ticks)||{}),{},{font:_objectSpread({lineHeight:.8,size:10},(null===(_this$card$options$sc6=this.card.options.scales)||void 0===_this$card$options$sc6||null===(_this$card$options$sc6=_this$card$options$sc6.xAxes)||void 0===_this$card$options$sc6||null===(_this$card$options$sc6=_this$card$options$sc6.ticks)||void 0===_this$card$options$sc6?void 0:_this$card$options$sc6.font)||{})})})},responsive:!0,maintainAspectRatio:!1,plugins:_objectSpread({legend:this.chartLegend},this.chartPlugins)}),void 0!==this.chartTooltips){this.options.plugins.tooltip=this.chartTooltips;for(var tooltiplist=["custom","itemSort","filter"],z=0;z0){var i=e[0].datasetLabel,o=e[0].label,n=this.data.datasets[e[0].datasetIndex].data[e[0].index],s=null!=sweetAlertWithLink.linkTo?sweetAlertWithLink.linkTo:"https://coroo.github.io/nova-chartjs/",a=(sweetAlertWithLink.linkTo,_objectWithoutProperties(sweetAlertWithLink,_excluded));__webpack_require__(465).fire(_objectSpread({title:null!=a.title?a.title:""+n+"",icon:null!=a.icon?a.icon:"info",html:null!=a.html?a.html:null==i?"You can see detail by click below button:":""+i+" in "+o+"
",showCloseButton:null==a.showCloseButton||a.showCloseButton,showCancelButton:null==a.showCancelButton||a.showCancelButton,focusConfirm:null!=a.focusConfirm&&a.focusConfirm,confirmButtonText:null!=a.confirmButtonText?a.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=a.confirmButtonAriaLabel?a.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=a.cancelButtonAriaLabel?a.cancelButtonAriaLabel:"Cancel",footer:null!=a.footer?a.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},a)).then((function(t){t.value&&(window.location=s)}))}})}else 1==this.showAdvanceFilter&&(this.card.options.advanceFilterSelected=null!=this.advanceFilterSelected&&this.advanceFilterSelected),this.loading=!0,Nova.request().get("/nova-vendor/coroowicaksono/check-data/endpoint",{params:{model:this.card.model,series:this.card.series,options:this.card.options,join:this.card.join,col_xaxis:this.card.col_xaxis,expires:0}}).then((function(t){var e=t.data;_this.datacollection={labels:e.dataset.xAxis,datasets:e.dataset.yAxis},_this.loading=!1;var i=_this.sweetAlert;null!=i&&(_this.options.onClick=function(t,e){if(e.length>0){var o=e[0].datasetLabel,n=e[0].label,s=this.data.datasets[e[0].datasetIndex].data[e[0].index],a=null!=i.linkTo?i.linkTo:"https://coroo.github.io/nova-chartjs/",r=(i.linkTo,_objectWithoutProperties(i,_excluded2));__webpack_require__(465).fire(_objectSpread({title:null!=r.title?r.title:""+s+"",icon:null!=r.icon?r.icon:"info",html:null!=r.html?r.html:null==o?"You can see detail by click below button:":""+o+" in "+n+"
",showCloseButton:null==r.showCloseButton||r.showCloseButton,showCancelButton:null==r.showCancelButton||r.showCancelButton,focusConfirm:null!=r.focusConfirm&&r.focusConfirm,confirmButtonText:null!=r.confirmButtonText?r.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=r.confirmButtonAriaLabel?r.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=r.cancelButtonAriaLabel?r.cancelButtonAriaLabel:"Cancel",footer:null!=r.footer?r.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},r)).then((function(t){t.value&&(window.location=a)}))}})})).catch((function(t){var e=t.response;_this.errors=e.data.errors,_this.loading=!1}))}}}},444:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _doughnut_chart_vue__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(306),_Icons_IconRefresh__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(23),_Icons_IconExternalLink__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(271),_excluded=["linkTo"],_excluded2=["linkTo"];function _typeof(t){return _typeof="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},_typeof(t)}function _objectWithoutProperties(t,e){if(null==t)return{};var i,o,n=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o0){e[0].datasetLabel;var i,o=e[0].label,n=this.data.datasets[e[0].datasetIndex].data[e[0].index],s=null!=sweetAlertWithLink.linkTo?sweetAlertWithLink.linkTo:"https://coroo.github.io/nova-chartjs/",a=(sweetAlertWithLink.linkTo,_objectWithoutProperties(sweetAlertWithLink,_excluded)),r=n/(i=this.data.datasets[0].data.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0))*100;__webpack_require__(465).fire(_objectSpread({title:null!=a.title?a.title:""+o+"",icon:null!=a.icon?a.icon:"info",html:null!=a.html?a.html:"Percentage: "+r.toFixed(2)+"%
"+n+" data from "+i+"
",showCloseButton:null==a.showCloseButton||a.showCloseButton,showCancelButton:null==a.showCancelButton||a.showCancelButton,focusConfirm:null!=a.focusConfirm&&a.focusConfirm,confirmButtonText:null!=a.confirmButtonText?a.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=a.confirmButtonAriaLabel?a.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=a.cancelButtonAriaLabel?a.cancelButtonAriaLabel:"Cancel",footer:null!=a.footer?a.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},a)).then((function(t){t.value&&(window.location=s)}))}}),null!=this.card.options.showPercentage&&1==this.card.options.showPercentage){var _this$options$plugins2,dataArr=this.card.series[0].data,sum=dataArr.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0);this.options.plugins.tooltip={callbacks:_objectSpread(_objectSpread({},(null===(_this$options$plugins2=this.options.plugins)||void 0===_this$options$plugins2||null===(_this$options$plugins2=_this$options$plugins2.tooltip)||void 0===_this$options$plugins2?void 0:_this$options$plugins2.callbacks)||{}),{},{label:function(t){return t.label+": "+t.raw+" ("+(100*t.raw/sum).toFixed(2)+"%)"}})}}}else 1==this.showAdvanceFilter&&(this.card.options.advanceFilterSelected=null!=this.advanceFilterSelected&&this.advanceFilterSelected),this.loading=!0,Nova.request().get("/nova-vendor/coroowicaksono/check-data/circle-endpoint",{params:{model:this.card.model,series:this.card.series,options:this.card.options,join:this.card.join,col_xaxis:this.card.col_xaxis,expires:0}}).then((function(t){var e=t.data;_this.datacollection={labels:e.dataset.xAxis,datasets:e.dataset.yAxis},_this.loading=!1;var i=_this.sweetAlert;if(null!=i&&(_this.options.onClick=function(t,e){if(e.length>0){e[0].datasetLabel;var o,n=e[0].label,s=this.data.datasets[e[0].datasetIndex].data[e[0].index],a=null!=i.linkTo?i.linkTo:"https://coroo.github.io/nova-chartjs/",r=(i.linkTo,_objectWithoutProperties(i,_excluded2)),l=s/(o=this.data.datasets[0].data.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0))*100;__webpack_require__(465).fire(_objectSpread({title:null!=r.title?r.title:""+n+"",icon:null!=r.icon?r.icon:"info",html:null!=r.html?r.html:"Percentage: "+l.toFixed(2)+"%
"+s+" data from "+o+"
",showCloseButton:null==r.showCloseButton||r.showCloseButton,showCancelButton:null==r.showCancelButton||r.showCancelButton,focusConfirm:null!=r.focusConfirm&&r.focusConfirm,confirmButtonText:null!=r.confirmButtonText?r.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=r.confirmButtonAriaLabel?r.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=r.cancelButtonAriaLabel?r.cancelButtonAriaLabel:"Cancel",footer:null!=r.footer?r.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},r)).then((function(t){t.value&&(window.location=a)}))}}),null!=_this.card.options.showPercentage&&1==_this.card.options.showPercentage){var o,n=e.dataset.yAxis[0].data.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0);_this.options.plugins.tooltip={callbacks:_objectSpread(_objectSpread({},(null===(o=_this.options.plugins)||void 0===o||null===(o=o.tooltip)||void 0===o?void 0:o.callbacks)||{}),{},{label:function(t){return t.label+": "+t.raw+" ("+(100*t.raw/n).toFixed(2)+"%)"}})}}})).catch((function(t){var e=t.response;_this.errors=e.data.errors,_this.loading=!1}))}}}},718:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _pie_chart_vue__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(816),_Icons_IconRefresh__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(23),_Icons_IconExternalLink__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(271),_excluded=["linkTo"],_excluded2=["linkTo"];function _typeof(t){return _typeof="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},_typeof(t)}function _objectWithoutProperties(t,e){if(null==t)return{};var i,o,n=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o0){e[0].datasetLabel;var i,o=e[0].label,n=this.data.datasets[e[0].datasetIndex].data[e[0].index],s=null!=sweetAlertWithLink.linkTo?sweetAlertWithLink.linkTo:"https://coroo.github.io/nova-chartjs/",a=(sweetAlertWithLink.linkTo,_objectWithoutProperties(sweetAlertWithLink,_excluded)),r=n/(i=this.data.datasets[0].data.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0))*100;__webpack_require__(465).fire(_objectSpread({title:null!=a.title?a.title:""+o+"",icon:null!=a.icon?a.icon:"info",html:null!=a.html?a.html:"Percentage: "+r.toFixed(2)+"%
"+n+" data from "+i+"
",showCloseButton:null==a.showCloseButton||a.showCloseButton,showCancelButton:null==a.showCancelButton||a.showCancelButton,focusConfirm:null!=a.focusConfirm&&a.focusConfirm,confirmButtonText:null!=a.confirmButtonText?a.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=a.confirmButtonAriaLabel?a.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=a.cancelButtonAriaLabel?a.cancelButtonAriaLabel:"Cancel",footer:null!=a.footer?a.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},a)).then((function(t){t.value&&(window.location=s)}))}}),null!=this.card.options.showPercentage&&1==this.card.options.showPercentage){var _this$options$plugins2,dataArr=this.card.series[0].data,sum=dataArr.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0);this.options.plugins.tooltip={callbacks:_objectSpread(_objectSpread({},(null===(_this$options$plugins2=this.options.plugins)||void 0===_this$options$plugins2||null===(_this$options$plugins2=_this$options$plugins2.tooltip)||void 0===_this$options$plugins2?void 0:_this$options$plugins2.callbacks)||{}),{},{label:function(t){return t.label+": "+t.raw+" ("+(100*t.raw/sum).toFixed(2)+"%)"}})}}}else 1==this.showAdvanceFilter&&(this.card.options.advanceFilterSelected=null!=this.advanceFilterSelected&&this.advanceFilterSelected),this.loading=!0,Nova.request().get("/nova-vendor/coroowicaksono/check-data/circle-endpoint",{params:{model:this.card.model,series:this.card.series,options:this.card.options,join:this.card.join,col_xaxis:this.card.col_xaxis,expires:0}}).then((function(t){var e=t.data;_this.datacollection={labels:e.dataset.xAxis,datasets:e.dataset.yAxis},_this.loading=!1;var i=_this.sweetAlert;if(null!=i&&(_this.options.onClick=function(t,e){if(e.length>0){e[0].datasetLabel;var o=e[0].label,n=this.data.datasets[e[0].datasetIndex].data[e[0].index],s=null!=i.linkTo?i.linkTo:"https://coroo.github.io/nova-chartjs/",a=(i.linkTo,_objectWithoutProperties(i,_excluded2)),r=this.data.datasets[0].data.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0),l=n/r*100;__webpack_require__(465).fire(_objectSpread({title:null!=a.title?a.title:""+o+"",icon:null!=a.icon?a.icon:"info",html:null!=a.html?a.html:"Percentage: "+l.toFixed(2)+"%
"+n+" data from "+r+"
",showCloseButton:null==a.showCloseButton||a.showCloseButton,showCancelButton:null==a.showCancelButton||a.showCancelButton,focusConfirm:null!=a.focusConfirm&&a.focusConfirm,confirmButtonText:null!=a.confirmButtonText?a.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=a.confirmButtonAriaLabel?a.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=a.cancelButtonAriaLabel?a.cancelButtonAriaLabel:"Cancel",footer:null!=a.footer?a.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},a)).then((function(t){t.value&&(window.location=s)}))}}),null!=_this.card.options.showPercentage&&1==_this.card.options.showPercentage){var o,n=e.dataset.yAxis[0].data.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0);_this.options.plugins.tooltip={callbacks:_objectSpread(_objectSpread({},(null===(o=_this.options.plugins)||void 0===o||null===(o=o.tooltip)||void 0===o?void 0:o.callbacks)||{}),{},{label:function(t){return t.label+": "+t.raw+" ("+(100*t.raw/n).toFixed(2)+"%)"}})}}})).catch((function(t){var e=t.response;_this.errors=e.data.errors,_this.loading=!1}))}}}},461:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _polar_area_chart_vue__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(379),_Icons_IconRefresh__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(23),_Icons_IconExternalLink__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(271),_excluded=["linkTo"],_excluded2=["linkTo"];function _typeof(t){return _typeof="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},_typeof(t)}function _objectWithoutProperties(t,e){if(null==t)return{};var i,o,n=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o0){e[0].datasetLabel;var i,o=e[0].label,n=this.data.datasets[e[0].datasetIndex].data[e[0].index],s=null!=sweetAlertWithLink.linkTo?sweetAlertWithLink.linkTo:"https://coroo.github.io/nova-chartjs/",a=(sweetAlertWithLink.linkTo,_objectWithoutProperties(sweetAlertWithLink,_excluded)),r=n/(i=this.data.datasets[0].data.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0))*100;__webpack_require__(465).fire(_objectSpread({title:null!=a.title?a.title:""+o+"",icon:null!=a.icon?a.icon:"info",html:null!=a.html?a.html:"Percentage: "+r.toFixed(2)+"%
"+n+" data from "+i+"
",showCloseButton:null==a.showCloseButton||a.showCloseButton,showCancelButton:null==a.showCancelButton||a.showCancelButton,focusConfirm:null!=a.focusConfirm&&a.focusConfirm,confirmButtonText:null!=a.confirmButtonText?a.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=a.confirmButtonAriaLabel?a.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=a.cancelButtonAriaLabel?a.cancelButtonAriaLabel:"Cancel",footer:null!=a.footer?a.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},a)).then((function(t){t.value&&(window.location=s)}))}}),null!=this.card.options.showPercentage&&1==this.card.options.showPercentage){var _this$options$plugins2,dataArr=this.card.series[0].data,sum=dataArr.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0);this.options.plugins.tooltip={callbacks:_objectSpread(_objectSpread({},(null===(_this$options$plugins2=this.options.plugins)||void 0===_this$options$plugins2||null===(_this$options$plugins2=_this$options$plugins2.tooltip)||void 0===_this$options$plugins2?void 0:_this$options$plugins2.callbacks)||{}),{},{label:function(t){return t.label+": "+t.raw+" ("+(100*t.raw/sum).toFixed(2)+"%)"}})}}}else 1==this.showAdvanceFilter&&(this.card.options.advanceFilterSelected=null!=this.advanceFilterSelected&&this.advanceFilterSelected),this.loading=!0,Nova.request().get("/nova-vendor/coroowicaksono/check-data/circle-endpoint",{params:{model:this.card.model,series:this.card.series,options:this.card.options,join:this.card.join,col_xaxis:this.card.col_xaxis,expires:0}}).then((function(t){var e=t.data;_this.datacollection={labels:e.dataset.xAxis,datasets:e.dataset.yAxis},_this.loading=!1;var i=_this.sweetAlert;if(null!=i&&(_this.options.onClick=function(t,e){if(e.length>0){e[0].datasetLabel;var o=e[0].label,n=this.data.datasets[e[0].datasetIndex].data[e[0].index],s=null!=i.linkTo?i.linkTo:"https://coroo.github.io/nova-chartjs/",a=(i.linkTo,_objectWithoutProperties(i,_excluded2)),r=this.data.datasets[0].data.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0),l=n/r*100;__webpack_require__(465).fire(_objectSpread({title:null!=a.title?a.title:""+o+"",icon:null!=a.icon?a.icon:"info",html:null!=a.html?a.html:"Percentage: "+l.toFixed(2)+"%
"+n+" data from "+r+"
",showCloseButton:null==a.showCloseButton||a.showCloseButton,showCancelButton:null==a.showCancelButton||a.showCancelButton,focusConfirm:null!=a.focusConfirm&&a.focusConfirm,confirmButtonText:null!=a.confirmButtonText?a.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=a.confirmButtonAriaLabel?a.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=a.cancelButtonAriaLabel?a.cancelButtonAriaLabel:"Cancel",footer:null!=a.footer?a.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},a)).then((function(t){t.value&&(window.location=s)}))}}),null!=_this.card.options.showPercentage&&1==_this.card.options.showPercentage){var o,n=e.dataset.yAxis[0].data.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0);_this.options.plugins.tooltip={callbacks:_objectSpread(_objectSpread({},(null===(o=_this.options.plugins)||void 0===o||null===(o=o.tooltip)||void 0===o?void 0:o.callbacks)||{}),{},{label:function(t){return t.label+": "+t.raw+" ("+(100*t.raw/n).toFixed(2)+"%)"}})}}})).catch((function(t){var e=t.response;_this.errors=e.data.errors,_this.loading=!1}))}}}},450:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _scatter_chart_vue__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(116),_Icons_IconRefresh__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(23),_Icons_IconExternalLink__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(271);function _typeof(t){return _typeof="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},_typeof(t)}function ownKeys(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function _objectSpread(t){for(var e=1;e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _bar_chart__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(898),_Icons_IconRefresh__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(23),_Icons_IconExternalLink__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(271),_excluded=["linkTo"],_excluded2=["linkTo"];function _typeof(t){return _typeof="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},_typeof(t)}function _objectWithoutProperties(t,e){if(null==t)return{};var i,o,n=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o=1e9?(t/1e9).toFixed(1).replace(/\.0$/,"")+"G":t>=1e6?(t/1e6).toFixed(1).replace(/\.0$/,"")+"M":t>=1e3?(t/1e3).toFixed(1).replace(/\.0$/,"")+"K":t}})}),xAxes:_objectSpread(_objectSpread({stacked:!0},(null===(_this$card$options$sc4=this.card.options.scales)||void 0===_this$card$options$sc4?void 0:_this$card$options$sc4.xAxes)||{}),{},{ticks:_objectSpread(_objectSpread({},(null===(_this$card$options$sc5=this.card.options.scales)||void 0===_this$card$options$sc5||null===(_this$card$options$sc5=_this$card$options$sc5.xAxes)||void 0===_this$card$options$sc5?void 0:_this$card$options$sc5.ticks)||{}),{},{font:_objectSpread({lineHeight:.8,size:10},(null===(_this$card$options$sc6=this.card.options.scales)||void 0===_this$card$options$sc6||null===(_this$card$options$sc6=_this$card$options$sc6.xAxes)||void 0===_this$card$options$sc6||null===(_this$card$options$sc6=_this$card$options$sc6.ticks)||void 0===_this$card$options$sc6?void 0:_this$card$options$sc6.font)||{})})})},responsive:!0,maintainAspectRatio:!1,plugins:_objectSpread({legend:this.chartLegend},this.chartPlugins)}),void 0!==this.chartTooltips){this.options.plugins.tooltip=this.chartTooltips;for(var tooltiplist=["custom","itemSort","filter"],z=0;z0){var i=e[0].datasetLabel,o=e[0].label,n=this.data.datasets[e[0].datasetIndex].data[e[0].index],s=null!=sweetAlertWithLink.linkTo?sweetAlertWithLink.linkTo:"https://coroo.github.io/nova-chartjs/",a=(sweetAlertWithLink.linkTo,_objectWithoutProperties(sweetAlertWithLink,_excluded));__webpack_require__(465).fire(_objectSpread({title:null!=a.title?a.title:""+n+"",icon:null!=a.icon?a.icon:"info",html:null!=a.html?a.html:null==i?"You can see detail by click below button:":""+i+" in "+o+"
",showCloseButton:null==a.showCloseButton||a.showCloseButton,showCancelButton:null==a.showCancelButton||a.showCancelButton,focusConfirm:null!=a.focusConfirm&&a.focusConfirm,confirmButtonText:null!=a.confirmButtonText?a.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=a.confirmButtonAriaLabel?a.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=a.cancelButtonAriaLabel?a.cancelButtonAriaLabel:"Cancel",footer:null!=a.footer?a.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},a)).then((function(t){t.value&&(window.location=s)}))}})}else 1==this.showAdvanceFilter&&(this.card.options.advanceFilterSelected=null!=this.advanceFilterSelected&&this.advanceFilterSelected),this.loading=!0,Nova.request().get("/nova-vendor/coroowicaksono/check-data/endpoint",{params:{model:this.card.model,series:this.card.series,options:this.card.options,join:this.card.join,col_xaxis:this.card.col_xaxis,expires:0}}).then((function(t){var e=t.data;_this.datacollection={labels:e.dataset.xAxis,datasets:e.dataset.yAxis},_this.loading=!1;var i=_this.sweetAlert;null!=i&&(_this.options.onClick=function(t,e){if(e.length>0){var o=e[0].datasetLabel,n=e[0].label,s=this.data.datasets[e[0].datasetIndex].data[e[0].index],a=null!=i.linkTo?i.linkTo:"https://coroo.github.io/nova-chartjs/",r=(i.linkTo,_objectWithoutProperties(i,_excluded2));__webpack_require__(465).fire(_objectSpread({title:null!=r.title?r.title:""+s+"",icon:null!=r.icon?r.icon:"info",html:null!=r.html?r.html:null==o?"You can see detail by click below button:":""+o+" in "+n+"
",showCloseButton:null==r.showCloseButton||r.showCloseButton,showCancelButton:null==r.showCancelButton||r.showCancelButton,focusConfirm:null!=r.focusConfirm&&r.focusConfirm,confirmButtonText:null!=r.confirmButtonText?r.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=r.confirmButtonAriaLabel?r.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=r.cancelButtonAriaLabel?r.cancelButtonAriaLabel:"Cancel",footer:null!=r.footer?r.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},r)).then((function(t){t.value&&(window.location=a)}))}})})).catch((function(t){var e=t.response;_this.loading=!1,_this.errors=e.data.errors}))}}}},3:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _stripe_chart_vue__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(938),_Icons_IconRefresh__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(23),_Icons_IconExternalLink__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(271),_excluded=["linkTo"],_excluded2=["linkTo"];function _typeof(t){return _typeof="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},_typeof(t)}function _objectWithoutProperties(t,e){if(null==t)return{};var i,o,n=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o=1e9?(t/1e9).toFixed(1).replace(/\.0$/,"")+"G":t>=1e6?(t/1e6).toFixed(1).replace(/\.0$/,"")+"M":t>=1e3?(t/1e3).toFixed(1).replace(/\.0$/,"")+"K":t}})}),xAxes:_objectSpread(_objectSpread({},(null===(_this$card$options$sc4=this.card.options.scales)||void 0===_this$card$options$sc4?void 0:_this$card$options$sc4.xAxes)||{}),{},{ticks:_objectSpread(_objectSpread({},(null===(_this$card$options$sc5=this.card.options.scales)||void 0===_this$card$options$sc5||null===(_this$card$options$sc5=_this$card$options$sc5.xAxes)||void 0===_this$card$options$sc5?void 0:_this$card$options$sc5.ticks)||{}),{},{font:_objectSpread({lineHeight:.8,size:10},(null===(_this$card$options$sc6=this.card.options.scales)||void 0===_this$card$options$sc6||null===(_this$card$options$sc6=_this$card$options$sc6.xAxes)||void 0===_this$card$options$sc6||null===(_this$card$options$sc6=_this$card$options$sc6.ticks)||void 0===_this$card$options$sc6?void 0:_this$card$options$sc6.font)||{})})})},responsive:!0,maintainAspectRatio:!1,plugins:_objectSpread({legend:this.chartLegend},this.chartPlugins)}),void 0!==this.chartTooltips){this.options.plugins.tooltip=this.chartTooltips;for(var tooltiplist=["custom","itemSort","filter"],z=0;z0){var i=e[0].datasetLabel,o=e[0].label,n=this.data.datasets[e[0].datasetIndex].data[e[0].index],s=null!=sweetAlertWithLink.linkTo?sweetAlertWithLink.linkTo:"https://coroo.github.io/nova-chartjs/",a=(sweetAlertWithLink.linkTo,_objectWithoutProperties(sweetAlertWithLink,_excluded));__webpack_require__(465).fire(_objectSpread({title:null!=a.title?a.title:""+n+"",icon:null!=a.icon?a.icon:"info",html:null!=a.html?a.html:null==i?"You can see detail by click below button:":""+i+" in "+o+"
",showCloseButton:null==a.showCloseButton||a.showCloseButton,showCancelButton:null==a.showCancelButton||a.showCancelButton,focusConfirm:null!=a.focusConfirm&&a.focusConfirm,confirmButtonText:null!=a.confirmButtonText?a.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=a.confirmButtonAriaLabel?a.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=a.cancelButtonAriaLabel?a.cancelButtonAriaLabel:"Cancel",footer:null!=a.footer?a.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},a)).then((function(t){t.value&&(window.location=s)}))}})}else 1==this.showAdvanceFilter&&(this.card.options.advanceFilterSelected=null!=this.advanceFilterSelected&&this.advanceFilterSelected),this.loading=!0,Nova.request().get("/nova-vendor/coroowicaksono/check-data/endpoint",{params:{type:"line",model:this.card.model,series:this.card.series,options:this.card.options,join:this.card.join,col_xaxis:this.card.col_xaxis,expires:0}}).then((function(t){var e=t.data;_this.datacollection={labels:e.dataset.xAxis,datasets:e.dataset.yAxis},_this.loading=!1;var i=_this.sweetAlert;null!=i&&(_this.options.onClick=function(t,e){if(e.length>0){var o=e[0].datasetLabel,n=e[0].label,s=this.data.datasets[e[0].datasetIndex].data[e[0].index],a=null!=i.linkTo?i.linkTo:"https://coroo.github.io/nova-chartjs/",r=(i.linkTo,_objectWithoutProperties(i,_excluded2));__webpack_require__(465).fire(_objectSpread({title:null!=r.title?r.title:""+s+"",icon:null!=r.icon?r.icon:"info",html:null!=r.html?r.html:null==o?"You can see detail by click below button:":""+o+" in "+n+"
",showCloseButton:null==r.showCloseButton||r.showCloseButton,showCancelButton:null==r.showCancelButton||r.showCancelButton,focusConfirm:null!=r.focusConfirm&&r.focusConfirm,confirmButtonText:null!=r.confirmButtonText?r.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=r.confirmButtonAriaLabel?r.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=r.cancelButtonAriaLabel?r.cancelButtonAriaLabel:"Cancel",footer:null!=r.footer?r.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},r)).then((function(t){t.value&&(window.location=a)}))}})})).catch((function(t){var e=t.response;_this.errors=e.data.errors,_this.loading=!1}))}}}},696:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var o=i(133);i(237);const n={props:{chartData:{type:Object,required:!0},options:{type:Object,required:!0}},data:function(){return{plugins:[]}},watch:{chartData:function(){void 0!==this.options.plugins&&void 0!==this.options.plugins.datalabels&&!1!==this.options.plugins.datalabels&&this.plugins.push(o.A)}}}},133:(t,e,i)=>{"use strict";i.d(e,{A:()=>T});var o=i(998),n=i(237),s=function(){if("undefined"!=typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t)return(t.deviceXDPI||1)/(t.logicalXDPI||1)}return 1}(),a=function(t){var e,i=[];for(t=[].concat(t);t.length;)"string"==typeof(e=t.pop())?i.unshift.apply(i,e.split("\n")):Array.isArray(e)?t.push.apply(t,e):(0,o.k)(t)||i.unshift(""+e);return i},r=function(t,e,i){var o,n=[].concat(e),s=n.length,a=t.font,r=0;for(t.font=i.string,o=0;oi.right&&(o|=2),ei.bottom&&(o|=4),o}function u(t,e){var i,o,n=e.anchor,s=t;return e.clamp&&(s=function(t,e){for(var i,o,n,s=t.x0,a=t.y0,r=t.x1,l=t.y1,c=d(s,a,e),h=d(r,l,e);c|h&&!(c&h);)8&(i=c||h)?(o=s+(r-s)*(e.top-a)/(l-a),n=e.top):4&i?(o=s+(r-s)*(e.bottom-a)/(l-a),n=e.bottom):2&i?(n=a+(l-a)*(e.right-s)/(r-s),o=e.right):1&i&&(n=a+(l-a)*(e.left-s)/(r-s),o=e.left),i===c?c=d(s=o,a=n,e):h=d(r=o,l=n,e);return{x0:s,x1:r,y0:a,y1:l}}(s,e.area)),"start"===n?(i=s.x0,o=s.y0):"end"===n?(i=s.x1,o=s.y1):(i=(s.x0+s.x1)/2,o=(s.y0+s.y1)/2),function(t,e,i,o,n){switch(n){case"center":i=o=0;break;case"bottom":i=0,o=1;break;case"right":i=1,o=0;break;case"left":i=-1,o=0;break;case"top":i=0,o=-1;break;case"start":i=-i,o=-o;break;case"end":break;default:n*=Math.PI/180,i=Math.cos(n),o=Math.sin(n)}return{x:t,y:e,vx:i,vy:o}}(i,o,t.vx,t.vy,e.align)}var p=function(t,e){var i=(t.startAngle+t.endAngle)/2,o=Math.cos(i),n=Math.sin(i),s=t.innerRadius,a=t.outerRadius;return u({x0:t.x+o*s,y0:t.y+n*s,x1:t.x+o*a,y1:t.y+n*a,vx:o,vy:n},e)},f=function(t,e){var i=h(t,e.origin),o=i.x*t.options.radius,n=i.y*t.options.radius;return u({x0:t.x-o,y0:t.y-n,x1:t.x+o,y1:t.y+n,vx:i.x,vy:i.y},e)},g=function(t,e){var i=h(t,e.origin),o=t.x,n=t.y,s=0,a=0;return t.horizontal?(o=Math.min(t.x,t.base),s=Math.abs(t.base-t.x)):(n=Math.min(t.y,t.base),a=Math.abs(t.base-t.y)),u({x0:o,y0:n+a,x1:o+s,y1:n,vx:i.x,vy:i.y},e)},m=function(t,e){var i=h(t,e.origin);return u({x0:t.x,y0:t.y,x1:t.x+(t.width||0),y1:t.y+(t.height||0),vx:i.x,vy:i.y},e)},b=function(t){return Math.round(t*s)/s};function _(t,e){var i=e.chart.getDatasetMeta(e.datasetIndex).vScale;if(!i)return null;if(void 0!==i.xCenter&&void 0!==i.yCenter)return{x:i.xCenter,y:i.yCenter};var o=i.getBasePixel();return t.horizontal?{x:o,y:null}:{x:null,y:o}}function x(t,e,i){var o=i.backgroundColor,n=i.borderColor,s=i.borderWidth;(o||n&&s)&&(t.beginPath(),function(t,e,i,o,n,s){var a=Math.PI/2;if(s){var r=Math.min(s,n/2,o/2),l=e+r,c=i+r,h=e+o-r,d=i+n-r;t.moveTo(e,c),li.x+i.w+2||t.y>i.y+i.h+2)},intersects:function(t){var e,i,o,n=this._points(),s=t._points(),a=[S(n[0],n[1]),S(n[0],n[3])];for(this._rotation!==t._rotation&&a.push(S(s[0],s[1]),S(s[0],s[3])),e=0;et.getProps([e],!0)[e]}),s=o.geometry(),a=M(r,o.model(),s),n._box.update(a,s,o.rotation()));(function(t,e){var i,o,n,s;for(i=t.length-1;i>=0;--i)for(n=t[i].$layout,o=i-1;o>=0&&n._visible;--o)(s=t[o].$layout)._visible&&n._box.intersects(s._box)&&e(n,s)})(t,(function(t,e){var i=t._hidable,o=e._hidable;i&&o||o?e._visible=!1:i&&(t._visible=!1)}))}(t)},lookup:function(t,e){var i,o;for(i=t.length-1;i>=0;--i)if((o=t[i].$layout)&&o._visible&&o._box.contains(e))return t[i];return null},draw:function(t,e){var i,o,n,s,a,r;for(i=0,o=e.length;i(e=parseInt(e.getAttribute("tabindex")))?1:t1&&void 0!==arguments[1]?arguments[1]:"flex";t.style.opacity="",t.style.display=e},vt=function(t){t.style.opacity="",t.style.display="none"},yt=function(t,e,i){e?wt(t,i):vt(t)},kt=function(t){return!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))},Ct=function(t){return!!(t.scrollHeight>t.clientHeight)},Pt=function(t){var e=window.getComputedStyle(t),i=parseFloat(e.getPropertyValue("animation-duration")||"0"),o=parseFloat(e.getPropertyValue("transition-duration")||"0");return i>0||o>0},St=function(t,e){if("function"==typeof t.contains)return t.contains(e)},At=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=tt();kt(i)&&(e&&(i.style.transition="none",i.style.width="100%"),setTimeout((function(){i.style.transition="width ".concat(t/1e3,"s linear"),i.style.width="0%"}),10))},Mt=function(){var t=tt(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";var i=parseInt(window.getComputedStyle(t).width),o=parseInt(e/i*100);t.style.removeProperty("transition"),t.style.width="".concat(o,"%")},$t=function(){return"undefined"==typeof window||"undefined"==typeof document},Dt='\n
\n
\n
    \n
    \n
    \n
    \n
    \n
    \n \n

    \n \n
    \n
    \n
    \n \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n').replace(/(^|\n)\s*/g,""),Ot=function(){var t=j();return!!t&&(t.parentNode.removeChild(t),bt([document.documentElement,document.body],[B["no-backdrop"],B["toast-shown"],B["has-column"]]),!0)},Lt=function(t){Bo.isVisible()&&pt!==t.target.value&&Bo.resetValidationMessage(),pt=t.target.value},Et=function(){var t=H(),e=_t(t,B.input),i=_t(t,B.file),o=t.querySelector(".".concat(B.range," input")),n=t.querySelector(".".concat(B.range," output")),s=_t(t,B.select),a=t.querySelector(".".concat(B.checkbox," input")),r=_t(t,B.textarea);e.oninput=Lt,i.onchange=Lt,s.onchange=Lt,a.onchange=Lt,r.oninput=Lt,o.oninput=function(t){Lt(t),n.value=o.value},o.onchange=function(t){Lt(t),o.nextSibling.value=o.value}},Tt=function(t){return"string"==typeof t?document.querySelector(t):t},Bt=function(t){var e=z();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},It=function(t){"rtl"===window.getComputedStyle(t).direction&&mt(j(),B.rtl)},jt=function(t){var e=Ot();if($t())v("SweetAlert2 requires document to initialize");else{var i=document.createElement("div");i.className=B.container,e&&mt(i,B["no-transition"]),lt(i,Dt);var o=Tt(t.target);o.appendChild(i),Bt(t),It(o),Et()}},Rt=function(e,i){e instanceof HTMLElement?i.appendChild(e):"object"===t(e)?Ft(e,i):e&<(i,e)},Ft=function(t,e){t.jquery?zt(e,t):lt(e,t.toString())},zt=function(t,e){if(t.textContent="",0 in e)for(var i=0;i in e;i++)t.appendChild(e[i].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},Nt=function(){if($t())return!1;var t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&void 0!==t.style[i])return e[i];return!1}(),Vt=function(){var t=document.createElement("div");t.className=B["scrollbar-measure"],document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},Wt=function(t,e){var i=J(),o=X(),n=Q();e.showConfirmButton||e.showCancelButton||vt(i),dt(i,e,"actions"),Ut(o,"confirm",e),Ut(n,"cancel",e),e.buttonsStyling?Ht(o,n,e):(bt([o,n],B.styled),o.style.backgroundColor=o.style.borderLeftColor=o.style.borderRightColor="",n.style.backgroundColor=n.style.borderLeftColor=n.style.borderRightColor=""),e.reverseButtons&&o.parentNode.insertBefore(n,o)};function Ht(t,e,i){if(mt([t,e],B.styled),i.confirmButtonColor&&(t.style.backgroundColor=i.confirmButtonColor),i.cancelButtonColor&&(e.style.backgroundColor=i.cancelButtonColor),!at()){var o=window.getComputedStyle(t).getPropertyValue("background-color");t.style.borderLeftColor=o,t.style.borderRightColor=o}}function Ut(t,e,i){yt(t,i["show".concat(b(e),"Button")],"inline-block"),lt(t,i["".concat(e,"ButtonText")]),t.setAttribute("aria-label",i["".concat(e,"ButtonAriaLabel")]),t.className=B[e],dt(t,i,"".concat(e,"Button")),mt(t,i["".concat(e,"ButtonClass")])}function Kt(t,e){"string"==typeof e?t.style.background=e:e||mt([document.documentElement,document.body],B["no-backdrop"])}function qt(t,e){e in B?mt(t,B[e]):(w('The "position" parameter is not valid, defaulting to "center"'),mt(t,B.center))}function Yt(t,e){if(e&&"string"==typeof e){var i="grow-".concat(e);i in B&&mt(t,B[i])}}var Xt=function(t,e){var i=j();if(i){Kt(i,e.backdrop),!e.backdrop&&e.allowOutsideClick&&w('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),qt(i,e.position),Yt(i,e.grow),dt(i,e,"container");var o=document.body.getAttribute("data-swal2-queue-step");o&&(i.setAttribute("data-queue-step",o),document.body.removeAttribute("data-swal2-queue-step"))}},Qt={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Jt=["input","file","range","select","radio","checkbox","textarea"],Zt=function(t,e){var i=H(),o=Qt.innerParams.get(t),n=!o||e.input!==o.input;Jt.forEach((function(t){var o=B[t],s=_t(i,o);ee(t,e.inputAttributes),s.className=o,n&&vt(s)})),e.input&&(n&&Gt(e),ie(e))},Gt=function(t){if(!se[t.input])return v('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));var e=ne(t.input),i=se[t.input](e,t);wt(i),setTimeout((function(){ft(i)}))},te=function(t){for(var e=0;ei?"".concat(e,"px"):null})).observe(t,{attributes:!0,attributeFilter:["style"]})}return t};var ae=function(t,e){var i=H().querySelector("#".concat(B.content));e.html?(Rt(e.html,i),wt(i,"block")):e.text?(i.textContent=e.text,wt(i,"block")):vt(i),Zt(t,e),dt(H(),e,"content")},re=function(t,e){var i=G();yt(i,e.footer),e.footer&&Rt(e.footer,i),dt(i,e,"footer")},le=function(t,e){var i=et();lt(i,e.closeButtonHtml),dt(i,e,"closeButton"),yt(i,e.showCloseButton),i.setAttribute("aria-label",e.closeButtonAriaLabel)},ce=function(t,e){var i=Qt.innerParams.get(t);if(i&&e.icon===i.icon&&V())dt(V(),e,"icon");else if(he(),e.icon)if(-1!==Object.keys(I).indexOf(e.icon)){var o=R(".".concat(B.icon,".").concat(I[e.icon]));wt(o),ue(o,e),de(),dt(o,e,"icon"),mt(o,e.showClass.icon)}else v('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.icon,'"'))},he=function(){for(var t=N(),e=0;e\n \n
    \n
    \n '):"error"===e.icon?lt(t,'\n \n \n \n \n '):lt(t,pe({question:"?",warning:"!",info:"i"}[e.icon]))},pe=function(t){return'
    ').concat(t,"
    ")},fe=function(t,e){var i=K();if(!e.imageUrl)return vt(i);wt(i,""),i.setAttribute("src",e.imageUrl),i.setAttribute("alt",e.imageAlt),xt(i,"width",e.imageWidth),xt(i,"height",e.imageHeight),i.className=B.image,dt(i,e,"image")},ge=[],me=function(t){var e=this;ge=t;var i=function(t,e){ge=[],t(e)},o=[];return new Promise((function(t){!function n(s,a){s=e.progressSteps.length&&w("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((function(t,n){var s=we(t);if(i.appendChild(s),n===o&&mt(s,B["active-progress-step"]),n!==e.progressSteps.length-1){var a=ve(e);i.appendChild(a)}}))},ke=function(t,e){var i=W();yt(i,e.title||e.titleText),e.title&&Rt(e.title,i),e.titleText&&(i.innerText=e.titleText),dt(i,e,"title")},Ce=function(t,e){var i=Z();dt(i,e,"header"),ye(t,e),ce(t,e),fe(t,e),ke(t,e),le(t,e)},Pe=function(t,e){var i=z();xt(i,"width",e.width),xt(i,"padding",e.padding),e.background&&(i.style.background=e.background),Se(i,e)},Se=function(t,e){t.className="".concat(B.popup," ").concat(kt(t)?e.showClass.popup:""),e.toast?(mt([document.documentElement,document.body],B["toast-shown"]),mt(t,B.toast)):mt(t,B.modal),dt(t,e,"popup"),"string"==typeof e.customClass&&mt(t,e.customClass),e.icon&&mt(t,B["icon-".concat(e.icon)])},Ae=function(t,e){Pe(t,e),Xt(t,e),Ce(t,e),ae(t,e),Wt(t,e),re(t,e),"function"==typeof e.onRender&&e.onRender(z())},Me=function(){return kt(z())},$e=function(){return X()&&X().click()},De=function(){return Q()&&Q().click()};function Oe(){for(var t=this,e=arguments.length,i=new Array(e),o=0;owindow.innerHeight&&(rt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(rt.previousBodyPadding+Vt(),"px"))},si=function(){null!==rt.previousBodyPadding&&(document.body.style.paddingRight="".concat(rt.previousBodyPadding,"px"),rt.previousBodyPadding=null)},ai=function(){if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!ct(document.body,B.iosfix)){var t=document.body.scrollTop;document.body.style.top="".concat(-1*t,"px"),mt(document.body,B.iosfix),li(),ri()}},ri=function(){if(!navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)){var t=44;z().scrollHeight>window.innerHeight-t&&(j().style.paddingBottom="".concat(t,"px"))}},li=function(){var t,e=j();e.ontouchstart=function(e){t=ci(e.target)},e.ontouchmove=function(e){t&&(e.preventDefault(),e.stopPropagation())}},ci=function(t){var e=j();return t===e||!(Ct(e)||"INPUT"===t.tagName||Ct(H())&&H().contains(t))},hi=function(){if(ct(document.body,B.iosfix)){var t=parseInt(document.body.style.top,10);bt(document.body,B.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}},di=function(){return!!window.MSInputMethodContext&&!!document.documentMode},ui=function(){var t=j(),e=z();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")},pi=function(){"undefined"!=typeof window&&di()&&(ui(),window.addEventListener("resize",ui))},fi=function(){"undefined"!=typeof window&&di()&&window.removeEventListener("resize",ui)},gi=function(){x(document.body.children).forEach((function(t){t===j()||St(t,j())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}))},mi=function(){x(document.body.children).forEach((function(t){t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")}))},bi={swalPromiseResolve:new WeakMap};function _i(t,e,i,o){i?ki(t,o):(je().then((function(){return ki(t,o)})),Be.keydownTarget.removeEventListener("keydown",Be.keydownHandler,{capture:Be.keydownListenerCapture}),Be.keydownHandlerAdded=!1),e.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&e.parentNode.removeChild(e),nt()&&(si(),hi(),fi(),mi()),xi()}function xi(){bt([document.documentElement,document.body],[B.shown,B["height-auto"],B["no-backdrop"],B["toast-shown"],B["toast-column"]])}function wi(t){var e=z();if(e){var i=Qt.innerParams.get(this);if(i&&!ct(e,i.hideClass.popup)){var o=bi.swalPromiseResolve.get(this);bt(e,i.showClass.popup),mt(e,i.hideClass.popup);var n=j();bt(n,i.showClass.backdrop),mt(n,i.hideClass.backdrop),vi(this,e,i),void 0!==t?(t.isDismissed=void 0!==t.dismiss,t.isConfirmed=void 0===t.dismiss):t={isDismissed:!0,isConfirmed:!1},o(t||{})}}}var vi=function(t,e,i){var o=j(),n=Nt&&Pt(e),s=i.onClose,a=i.onAfterClose;null!==s&&"function"==typeof s&&s(e),n?yi(t,e,o,a):_i(t,o,st(),a)},yi=function(t,e,i,o){Be.swalCloseEventFinishedCallback=_i.bind(null,t,i,st(),o),e.addEventListener(Nt,(function(t){t.target===e&&(Be.swalCloseEventFinishedCallback(),delete Be.swalCloseEventFinishedCallback)}))},ki=function(t,e){setTimeout((function(){"function"==typeof e&&e(),t._destroy()}))};function Ci(t,e,i){var o=Qt.domCache.get(t);e.forEach((function(t){o[t].disabled=i}))}function Pi(t,e){if(!t)return!1;if("radio"===t.type)for(var i=t.parentNode.parentNode.querySelectorAll("input"),o=0;o")),jt(t)}var Ri=function(t){var e=j(),i=z();"function"==typeof t.onBeforeOpen&&t.onBeforeOpen(i);var o=window.getComputedStyle(document.body).overflowY;Vi(e,i,t),zi(e,i),nt()&&(Ni(e,t.scrollbarPadding,o),gi()),st()||Be.previousActiveElement||(Be.previousActiveElement=document.activeElement),"function"==typeof t.onOpen&&setTimeout((function(){return t.onOpen(i)})),bt(e,B["no-transition"])};function Fi(t){var e=z();if(t.target===e){var i=j();e.removeEventListener(Nt,Fi),i.style.overflowY="auto"}}var zi=function(t,e){Nt&&Pt(e)?(t.style.overflowY="hidden",e.addEventListener(Nt,Fi)):t.style.overflowY="auto"},Ni=function(t,e,i){ai(),pi(),e&&"hidden"!==i&&ni(),setTimeout((function(){t.scrollTop=0}))},Vi=function(t,e,i){mt(t,i.showClass.backdrop),wt(e),mt(e,i.showClass.popup),mt([document.documentElement,document.body],B.shown),i.heightAuto&&i.backdrop&&!i.toast&&mt([document.documentElement,document.body],B["height-auto"])},Wi=function(t,e){"select"===e.input||"radio"===e.input?Yi(t,e):-1!==["text","email","number","tel","textarea"].indexOf(e.input)&&(S(e.inputValue)||M(e.inputValue))&&Xi(t,e)},Hi=function(t,e){var i=t.getInput();if(!i)return null;switch(e.input){case"checkbox":return Ui(i);case"radio":return Ki(i);case"file":return qi(i);default:return e.inputAutoTrim?i.value.trim():i.value}},Ui=function(t){return t.checked?1:0},Ki=function(t){return t.checked?t.value:null},qi=function(t){return t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null},Yi=function(e,i){var o=H(),n=function(t){return Qi[i.input](o,Ji(t),i)};S(i.inputOptions)||M(i.inputOptions)?(Ee(),A(i.inputOptions).then((function(t){e.hideLoading(),n(t)}))):"object"===t(i.inputOptions)?n(i.inputOptions):v("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(t(i.inputOptions)))},Xi=function(t,e){var i=t.getInput();vt(i),A(e.inputValue).then((function(o){i.value="number"===e.input?parseFloat(o)||0:"".concat(o),wt(i),i.focus(),t.hideLoading()})).catch((function(e){v("Error in inputValue promise: ".concat(e)),i.value="",wt(i),i.focus(),t.hideLoading()}))},Qi={select:function(t,e,i){var o=_t(t,B.select),n=function(t,e,o){var n=document.createElement("option");n.value=o,lt(n,e),i.inputValue.toString()===o.toString()&&(n.selected=!0),t.appendChild(n)};e.forEach((function(t){var e=t[0],i=t[1];if(Array.isArray(i)){var s=document.createElement("optgroup");s.label=e,s.disabled=!1,o.appendChild(s),i.forEach((function(t){return n(s,t[1],t[0])}))}else n(o,i,e)})),o.focus()},radio:function(t,e,i){var o=_t(t,B.radio);e.forEach((function(t){var e=t[0],n=t[1],s=document.createElement("input"),a=document.createElement("label");s.type="radio",s.name=B.radio,s.value=e,i.inputValue.toString()===e.toString()&&(s.checked=!0);var r=document.createElement("span");lt(r,n),r.className=B.label,a.appendChild(s),a.appendChild(r),o.appendChild(a)}));var n=o.querySelectorAll("input");n.length&&n[0].focus()}},Ji=function e(i){var o=[];return"undefined"!=typeof Map&&i instanceof Map?i.forEach((function(i,n){var s=i;"object"===t(s)&&(s=e(s)),o.push([n,s])})):Object.keys(i).forEach((function(n){var s=i[n];"object"===t(s)&&(s=e(s)),o.push([n,s])})),o},Zi=function(t,e){t.disableButtons(),e.input?to(t,e):io(t,e,!0)},Gi=function(t,e){t.disableButtons(),e($.cancel)},to=function(t,e){var i=Hi(t,e);e.inputValidator?(t.disableInput(),Promise.resolve().then((function(){return A(e.inputValidator(i,e.validationMessage))})).then((function(o){t.enableButtons(),t.enableInput(),o?t.showValidationMessage(o):io(t,e,i)}))):t.getInput().checkValidity()?io(t,e,i):(t.enableButtons(),t.showValidationMessage(e.validationMessage))},eo=function(t,e){t.closePopup({value:e})},io=function(t,e,i){e.showLoaderOnConfirm&&Ee(),e.preConfirm?(t.resetValidationMessage(),Promise.resolve().then((function(){return A(e.preConfirm(i,e.validationMessage))})).then((function(e){kt(Y())||!1===e?t.hideLoading():eo(t,void 0===e?i:e)}))):eo(t,i)},oo=function(t,e,i,o){e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1),i.toast||(e.keydownHandler=function(e){return ro(t,e,o)},e.keydownTarget=i.keydownListenerCapture?window:z(),e.keydownListenerCapture=i.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},no=function(t,e,i){for(var o=ot(),n=0;n3&&setTimeout((function(){document.body.style.pointerEvents="none";var t=document.createElement("audio");t.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",t.loop=!0,document.body.appendChild(t),setTimeout((function(){t.play().catch((function(){}))}),2500)}),500):localStorage.setItem("swal-initiation","".concat(Eo))}n(Lo.prototype,Oo),n(Lo,ei),Object.keys(Oo).forEach((function(t){Lo[t]=function(){var e;if(Mo)return(e=Mo)[t].apply(e,arguments)}})),Lo.DismissReason=$,Lo.version="9.17.2";var Bo=Lo;return Bo.default=Bo,Bo}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(t,e){var i=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(i),i.styleSheet)i.styleSheet.disabled||(i.styleSheet.cssText=e);else try{i.innerHTML=e}catch(t){i.innerText=e}}(document,'.swal2-popup.swal2-toast{flex-direction:row;align-items:center;width:auto;padding:.625em;overflow-y:hidden;background:#fff;box-shadow:0 0 .625em #d9d9d9}.swal2-popup.swal2-toast .swal2-header{flex-direction:row;padding:0}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:static;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;padding:0;font-size:1em}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{font-size:.25em}}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{flex-basis:auto!important;width:auto;height:auto;margin:0 .3125em}.swal2-popup.swal2-toast .swal2-styled{margin:0 .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(50,100,150,.4)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:flex;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-bottom-end>:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-no-transition{transition:none!important}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center;padding:0 1.8em}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-actions.swal2-loading .swal2-styled.swal2-confirm{box-sizing:border-box;width:2.5em;height:2.5em;margin:.46875em;padding:0;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:.25em solid transparent;border-radius:100%;border-color:transparent;background-color:transparent!important;color:transparent!important;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-actions.swal2-loading .swal2-styled.swal2-cancel{margin-right:30px;margin-left:30px}.swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after{content:"";display:inline-block;width:15px;height:15px;margin-left:5px;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:3px solid #999;border-radius:50%;border-right-color:transparent;box-shadow:1px 1px 1px #fff}.swal2-styled{margin:.3125em;padding:.625em 2em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#3085d6;color:#fff;font-size:1.0625em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#aaa;color:#fff;font-size:1.0625em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(50,100,150,.4)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;height:.25em;overflow:hidden;border-bottom-right-radius:.3125em;border-bottom-left-radius:.3125em}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;top:0;right:0;align-items:center;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:0;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close::-moz-focus-inner{border:0}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0 1.6em;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::-ms-input-placeholder,.swal2-input::-ms-input-placeholder,.swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{margin:0 .4em}.swal2-validation-message{display:none;align-items:center;justify-content:center;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{align-items:center;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;width:2em;height:2em;border-radius:2em;background:#3085d6;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#3085d6}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;width:2.5em;height:.4em;margin:0 -1px;background:#3085d6}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent!important}body.swal2-no-backdrop .swal2-container>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-container.swal2-top{top:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-top-left,body.swal2-no-backdrop .swal2-container.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-top-end,body.swal2-no-backdrop .swal2-container.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-container.swal2-center{top:50%;left:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-left,body.swal2-no-backdrop .swal2-container.swal2-center-start{top:50%;left:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-end,body.swal2-no-backdrop .swal2-container.swal2-center-right{top:50%;right:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom-left,body.swal2-no-backdrop .swal2-container.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-bottom-end,body.swal2-no-backdrop .swal2-container.swal2-bottom-right{right:0;bottom:0}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validation-message{font-size:1em}')},966:(t,e,i)=>{"use strict";i.d(e,{Fq:()=>p,N1:()=>u,O5:()=>f,Xl:()=>g,nu:()=>d,yP:()=>h});var o,n=i(237),s=i(61);function a(t,e,i,n){t(e,i),void 0!==n&&n.emit(o.ChartRendered)}function r(t,e){t.destroy(),void 0!==e&&e.emit(o.ChartDestroyed)}function l(t,e,i){const o=[];t.datasets=e.datasets.map((e=>{const n=t.datasets.find((t=>t[i]===e[i]));return n&&e.data&&!o.includes(n)?(o.push(n),Object.assign(n,e),n):{...e}}))}!function(t){t.ChartRendered="chart:rendered",t.ChartUpdated="chart:updated",t.ChartDestroyed="chart:destroyed",t.LabelsUpdated="labels:updated"}(o||(o={}));const c=(t,e,i)=>(0,s.defineComponent)({props:{chartData:{type:Object,required:!0},chartOptions:{type:Object,default:()=>{}},datasetIdKey:{type:String,default:"label"},chartId:{type:String,default:t},width:{type:Number,default:400},height:{type:Number,default:400},cssClasses:{type:String,default:""},styles:{type:Object,default:()=>{}},plugins:{type:Array,default:()=>[]}},setup(t,c){n.t1.register(i);const h=(0,s.shallowRef)(null),d=(0,s.ref)(null);function u(i,o){if(null!==h.value&&r((0,s.toRaw)(h.value),c),null===d.value)throw new Error("Please remove the tags from your chart component. See https://vue-chartjs.org/guide/#vue-single-file-components");{const a=function(t,e){const i={labels:void 0===t.labels?[]:[...t.labels],datasets:[]};return l(i,{...t},e),i}(i,t.datasetIdKey),r=d.value.getContext("2d");null!==r&&(h.value=new n.t1(r,{type:e,data:(0,s.isProxy)(i)?new Proxy(a,{}):a,options:o,plugins:t.plugins}))}}function p(e,i){const n=(0,s.isProxy)(e)?(0,s.toRaw)(e):{...e},d=(0,s.isProxy)(i)?(0,s.toRaw)(i):{...i};if(Object.keys(d).length>0){const e=(0,s.toRaw)(h.value),i=function(t,e){const i=t.datasets.map((t=>t.label)),o=e.datasets.map((t=>t.label));return e.datasets.length===t.datasets.length&&i.every(((t,e)=>t===o[e]))}(n,d);i&&null!==e?(l(null==e?void 0:e.data,n,t.datasetIdKey),void 0!==n.labels&&function(t,e,i){t.data.labels=e,void 0!==i&&i.emit(o.LabelsUpdated)}(e,n.labels,c),f()):(null!==e&&r(e,c),a(u,t.chartData,t.chartOptions,c))}else null!==h.value&&r((0,s.toRaw)(h.value),c),a(u,t.chartData,t.chartOptions,c)}function f(){const t=(0,s.toRaw)(h.value);null!==t?function(t,e){t.update(),void 0!==e&&e.emit(o.ChartUpdated)}(t,c):console.error("Update ERROR: chart instance not found")}return(0,s.watch)((()=>t.chartData),((t,e)=>p(t,e)),{deep:!0}),(0,s.watch)((()=>t.chartOptions),(e=>function(e){const i=(0,s.toRaw)(h.value);null!==i?(function(t,e){t.options={...e}}(i,e),f()):a(u,t.chartData,t.chartOptions,c)}(e)),{deep:!0}),(0,s.onMounted)((()=>{"datasets"in t.chartData&&t.chartData.datasets.length>0&&a(u,t.chartData,t.chartOptions,c)})),(0,s.onBeforeUnmount)((()=>{null!==h.value&&r((0,s.toRaw)(h.value),c)})),c.expose({chart:h,updateChart:f}),()=>(0,s.h)("div",{style:t.styles,class:t.cssClasses},[(0,s.h)("canvas",{id:t.chartId,width:t.width,height:t.height,ref:d})])}}),h=c("bar-chart","bar",n.A6),d=c("doughnut-chart","doughnut",n.ju),u=c("line-chart","line",n.ZT),p=c("pie-chart","pie",n.P$),f=c("polar-chart","polarArea",n.G5),g=c("scatter-chart","scatter",n.Pz)},262:(t,e)=>{"use strict";e.A=(t,e)=>{const i=t.__vccOpts||t;for(const[t,o]of e)i[t]=o;return i}},898:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var o=i(61);var n=i(966),s=i(696);const a={components:{Bar:n.yP},props:{height:{default:120,type:Number}},mixins:[s.A]};const r=(0,i(262).A)(a,[["render",function(t,e,i,n,s,a){var r=(0,o.resolveComponent)("Bar");return(0,o.openBlock)(),(0,o.createBlock)(r,{"chart-data":t.chartData,"chart-options":t.options,height:i.height,plugins:t.plugins},null,8,["chart-data","chart-options","height","plugins"])}]])},271:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var o=i(61),n={xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"};const s={name:"IconExternalLink"};const a=(0,i(262).A)(s,[["render",function(t,e,i,s,a,r){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",n,e[0]||(e[0]=[(0,o.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"},null,-1)]))}]])},23:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var o=i(61),n={xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"};const s={name:"IconRefresh"};const a=(0,i(262).A)(s,[["render",function(t,e,i,s,a,r){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",n,e[0]||(e[0]=[(0,o.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"},null,-1)]))}]])},306:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var o=i(61);var n=i(966),s=i(696);const a={components:{Doughnut:n.nu},props:{height:{default:110,type:Number}},mixins:[s.A]};const r=(0,i(262).A)(a,[["render",function(t,e,i,n,s,a){var r=(0,o.resolveComponent)("Doughnut");return(0,o.openBlock)(),(0,o.createBlock)(r,{"chart-data":t.chartData,"chart-options":t.options,height:i.height,plugins:t.plugins},null,8,["chart-data","chart-options","height","plugins"])}]])},816:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var o=i(61);var n=i(966),s=i(696);const a={components:{Pie:n.Fq},props:{height:{default:110,type:Number}},mixins:[s.A]};const r=(0,i(262).A)(a,[["render",function(t,e,i,n,s,a){var r=(0,o.resolveComponent)("Pie");return(0,o.openBlock)(),(0,o.createBlock)(r,{"chart-data":t.chartData,"chart-options":t.options,height:i.height,plugins:t.plugins},null,8,["chart-data","chart-options","height","plugins"])}]])},379:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var o=i(61);var n=i(966),s=i(696);const a={components:{PolarArea:n.O5},props:{height:{default:110,type:Number}},mixins:[s.A]};const r=(0,i(262).A)(a,[["render",function(t,e,i,n,s,a){var r=(0,o.resolveComponent)("PolarArea");return(0,o.openBlock)(),(0,o.createBlock)(r,{"chart-data":t.chartData,"chart-options":t.options,height:i.height,plugins:t.plugins},null,8,["chart-data","chart-options","height","plugins"])}]])},116:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var o=i(61);var n=i(966),s=i(696);const a={components:{Scatter:n.Xl},props:{height:{default:120,type:Number}},mixins:[s.A]};const r=(0,i(262).A)(a,[["render",function(t,e,i,n,s,a){var r=(0,o.resolveComponent)("Scatter");return(0,o.openBlock)(),(0,o.createBlock)(r,{"chart-data":t.chartData,"chart-options":t.options,height:i.height},null,8,["chart-data","chart-options","height"])}]])},938:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var o=i(61);var n=i(966),s=i(696);const a={components:{Line:n.N1},props:{height:{default:120,type:Number}},mixins:[s.A]};const r=(0,i(262).A)(a,[["render",function(t,e,i,n,s,a){var r=(0,o.resolveComponent)("Line");return(0,o.openBlock)(),(0,o.createBlock)(r,{"chart-data":t.chartData,"chart-options":t.options,height:i.height,plugins:t.plugins},null,8,["chart-data","chart-options","height","plugins"])}]])},61:t=>{"use strict";t.exports=Vue},237:(t,e,i)=>{"use strict";i.d(e,{$L:()=>Xi,A6:()=>D,Bs:()=>me,E8:()=>Te,FN:()=>Ae,G5:()=>T,NT:()=>o.d,P$:()=>B,Pz:()=>J,ZT:()=>E,ju:()=>L,t1:()=>le});var o=i(998);var n=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,o){const n=e.listeners[o],s=e.duration;n.forEach((o=>o({chart:t,initial:e.initial,numSteps:s,currentStep:Math.min(i-e.start,s)})))}_refresh(){this._request||(this._running=!0,this._request=o.r.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,o)=>{if(!i.running||!i.items.length)return;const n=i.items;let s,a=n.length-1,r=!1;for(;a>=0;--a)s=n[a],s._active?(s._total>i.duration&&(i.duration=s._total),s.tick(t),r=!0):(n[a]=n[n.length-1],n.pop());r&&(o.draw(),this._notify(o,i,t,"progress")),n.length||(i.running=!1,this._notify(o,i,t,"complete"),i.initial=!1),e+=n.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let o=i.length-1;for(;o>=0;--o)i[o].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const s="transparent",a={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const n=(0,o.c)(t||s),a=n.valid&&(0,o.c)(e||s);return a&&a.valid?a.mix(n,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class r{constructor(t,e,i,n){const s=e[i];n=(0,o.a)([t.to,n,s,t.from]);const r=(0,o.a)([t.from,s,n]);this._active=!0,this._fn=t.fn||a[t.type||typeof r],this._easing=o.e[t.easing]||o.e.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const n=this._target[this._prop],s=i-this._start,a=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=(0,o.a)([t.to,e,n,t.from]),this._from=(0,o.a)([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,o=this._prop,n=this._from,s=this._loop,a=this._to;let r;if(this._active=n!==a&&(s||e1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[o]=this._fn(n,a,r))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),o.d.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),o.d.describe("animations",{_fallback:"animation"}),o.d.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class c{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!(0,o.i)(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const n=t[i];if(!(0,o.i)(n))return;const s={};for(const t of l)s[t]=n[t];((0,o.b)(n.properties)&&n.properties||[i]).forEach((t=>{t!==i&&e.has(t)||e.set(t,s)}))}))}_animateOptions(t,e){const i=e.options,o=function(t,e){if(!e)return;let i=t.options;if(!i)return void(t.options=e);i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}}));return i}(t,i);if(!o)return[];const n=this._createAnimations(o,i);return i.$shared&&function(t,e){const i=[],o=Object.keys(e);for(let e=0;e{t.options=i}),(()=>{})),n}_createAnimations(t,e){const i=this._properties,o=[],n=t.$animations||(t.$animations={}),s=Object.keys(e),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if("$"===c.charAt(0))continue;if("options"===c){o.push(...this._animateOptions(t,e));continue}const h=e[c];let d=n[c];const u=i.get(c);if(d){if(u&&d.active()){d.update(u,h,a);continue}d.cancel()}u&&u.duration?(n[c]=d=new r(u,t,c,h),o.push(d)):t[c]=h}return o}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(n.add(this._chart,i),!0):void 0}}function h(t,e){const i=t&&t.options||{},o=i.reverse,n=void 0===i.min?e:0,s=void 0===i.max?e:0;return{start:o?s:n,end:o?n:s}}function d(t,e){const i=[],o=t._getSortedDatasetMetas(e);let n,s;for(n=0,s=o.length;n0||!i&&e<0)return n.index}return null}function m(t,e){const{chart:i,_cachedMeta:o}=t,n=i._stacks||(i._stacks={}),{iScale:s,vScale:a,index:r}=o,l=s.axis,c=a.axis,h=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(s,a,o),d=e.length;let u;for(let t=0;ti[t].axis===e)).shift()}function _(t,e){const i=t.controller.index,o=t.vScale&&t.vScale.axis;if(o){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[o]||void 0===e[o][i])return;delete e[o][i]}}}const x=t=>"reset"===t||"none"===t,w=(t,e)=>e?t:Object.assign({},t);class v{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=p(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&_(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),n=(t,e,i,o)=>"x"===t?e:"r"===t?o:i,s=e.xAxisID=(0,o.v)(i.xAxisID,b(t,"x")),a=e.yAxisID=(0,o.v)(i.yAxisID,b(t,"y")),r=e.rAxisID=(0,o.v)(i.rAxisID,b(t,"r")),l=e.indexAxis,c=e.iAxisID=n(l,s,a,r),h=e.vAxisID=n(l,a,s,r);e.xScale=this.getScaleForId(s),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(r),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&(0,o.u)(this._data,this),t._stacked&&_(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if((0,o.i)(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let o,n,s;for(o=0,n=e.length;o0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=n,i._sorted=!0,h=n;else{h=(0,o.b)(n[t])?this.parseArrayData(i,n,t,e):(0,o.i)(n[t])?this.parseObjectData(i,n,t,e):this.parsePrimitiveData(i,n,t,e);const s=()=>null===c[r]||u&&c[r]t&&!e.hidden&&e._stacked&&{keys:d(i,!0),values:null})(e,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:u}=function(t){const{min:e,max:i,minDefined:o,maxDefined:n}=t.getUserBounds();return{min:o?e:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}(r);let p,f;function g(){f=n[p];const e=f[r.axis];return!(0,o.g)(f[t.axis])||h>e||u=0;--p)if(!g()){this.updateRangeFromParsed(c,t,f,l);break}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let n,s,a;for(n=0,s=e.length;n=0&&tthis.getContext(i,n)),d);return f.$shared&&(f.$shared=l,s[a]=Object.freeze(w(f,l))),f}_resolveAnimations(t,e,i){const o=this.chart,n=this._cachedDataOpts,s=`animation-${e}`,a=n[s];if(a)return a;let r;if(!1!==o.options.animation){const o=this.chart.config,n=o.datasetAnimationScopeKeys(this._type,e),s=o.getOptionScopes(this.getDataset(),n);r=o.createResolver(s,this.getContext(t,i,e))}const l=new c(o,r&&r.animations);return r&&r._cacheable&&(n[s]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||x(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),o=this._sharedOptions,n=this.getSharedOptions(i),s=this.includeOptions(e,n)||n!==o;return this.updateSharedOptions(n,e,i),{sharedOptions:n,includeOptions:s}}updateElement(t,e,i,o){x(o)?Object.assign(t,i):this._resolveAnimations(e,o).update(t,i)}updateSharedOptions(t,e,i){t&&!x(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,o){t.active=o;const n=this.getStyle(e,o);this._resolveAnimations(e,i,o).update(t,{options:!o&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const o=i.length,n=e.length,s=Math.min(n,o);s&&this.parse(0,s),n>o?this._insertElements(o,n-o,t):n{for(t.length+=e,a=t.length-1;a>=s;a--)t[a]=t[a-e]};for(r(n),a=t;at-e)))}return t._cache.$bar}(e,t.type);let n,s,a,r,l=e._length;const c=()=>{32767!==a&&-32768!==a&&((0,o.j)(r)&&(l=Math.min(l,Math.abs(a-r)||l)),r=a)};for(n=0,s=i.length;nMath.abs(r)&&(l=r,c=a),e[i.axis]=c,e._custom={barStart:l,barEnd:c,start:n,end:s,min:a,max:r}}(t,e,i,n):e[i.axis]=i.parse(t,n),e}function C(t,e,i,o){const n=t.iScale,s=t.vScale,a=n.getLabels(),r=n===s,l=[];let c,h,d,u;for(c=i,h=i+o;ct.x,i="left",o="right"):(e=t.baset.controller.options.grouped)),s=i.options.stacked,a=[],r=t=>{const i=t.controller.getParsed(e),n=i&&i[t.vScale.axis];if((0,o.k)(n)||isNaN(n))return!0};for(const i of n)if((void 0===e||!r(i))&&((!1===s||-1===a.indexOf(i.stack)||void 0===s&&void 0===i.stack)&&a.push(i.stack),i.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const o=this._getStacks(t,i),n=void 0!==e?o.indexOf(e):-1;return-1===n?o.length-1:n}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,o=[];let n,s;for(n=0,s=e.data.length;n=i?1:-1)}(d,e,a)*s,u===a&&(m-=d/2);const t=e.getPixelForDecimal(0),i=e.getPixelForDecimal(1),n=Math.min(t,i),r=Math.max(t,i);m=Math.max(Math.min(m,r),n),h=m+d}if(m===e.getPixelForValue(a)){const t=(0,o.s)(d)*e.getLineWidthForValue(a)/2;m+=t,d-=t}return{size:d,base:m,head:h,center:h+d/2}}_calculateBarIndexPixels(t,e){const i=e.scale,n=this.options,s=n.skipNull,a=(0,o.v)(n.maxBarThickness,1/0);let r,l;if(e.grouped){const i=s?this._getStackCount(t):e.stackCount,c="flex"===n.barThickness?function(t,e,i,o){const n=e.pixels,s=n[t];let a=t>0?n[t-1]:null,r=t=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:o}=e,n=this.getParsed(t),s=i.getLabelForValue(n.x),a=o.getLabelForValue(n.y),r=n._custom;return{label:e.label,value:"("+s+", "+a+(r?", "+r:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,o){const n="reset"===o,{iScale:s,vScale:a}=this._cachedMeta,{sharedOptions:r,includeOptions:l}=this._getSharedOptions(e,o),c=s.axis,h=a.axis;for(let d=e;d""}}}};class L extends v{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=i;else{let s,a,r=t=>+i[t];if((0,o.i)(i[t])){const{key:t="value"}=this._parsing;r=e=>+(0,o.f)(i[e],t)}for(s=t,a=t+e;s(0,o.p)(t,l,c,!0)?1:Math.max(e,e*i,n,n*i),g=(t,e,n)=>(0,o.p)(t,l,c,!0)?-1:Math.min(e,e*i,n,n*i),m=f(0,h,u),b=f(o.H,d,p),_=g(o.P,h,u),x=g(o.P+o.H,d,p);n=(m-_)/2,s=(b-x)/2,a=-(m+_)/2,r=-(b+x)/2}return{ratioX:n,ratioY:s,offsetX:a,offsetY:r}}(d,h,l),m=(i.width-a)/u,b=(i.height-a)/p,_=Math.max(Math.min(m,b)/2,0),x=(0,o.n)(this.options.radius,_),w=(x-Math.max(x*l,0))/this._getVisibleDatasetWeightTotal();this.offsetX=f*x,this.offsetY=g*x,n.total=this.calculateTotal(),this.outerRadius=x-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){const i=this.options,n=this._cachedMeta,s=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===n._parsed[t]||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*s/o.T)}updateElements(t,e,i,o){const n="reset"===o,s=this.chart,a=s.chartArea,r=s.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,h=n&&r.animateScale,d=h?0:this.innerRadius,u=h?0:this.outerRadius,{sharedOptions:p,includeOptions:f}=this._getSharedOptions(e,o);let g,m=this._getRotation();for(g=0;g0&&!isNaN(t)?o.T*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=(0,o.o)(e._parsed[t],i.options.locale);return{label:n[t]||"",value:s}}getMaxBorderWidth(t){let e=0;const i=this.chart;let o,n,s,a,r;if(!t)for(o=0,n=i.data.datasets.length;o"spacing"!==t,_indexable:t=>"spacing"!==t},L.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,o)=>{const n=t.getDatasetMeta(0).controller.getStyle(o);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(o),index:o}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const i=": "+t.formattedValue;return(0,o.b)(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class E extends v{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:n=[],_dataset:s}=e,a=this.chart._animationsDisabled;let{start:r,count:l}=(0,o.q)(e,n,a);this._drawStart=r,this._drawCount=l,(0,o.w)(e)&&(r=0,l=n.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=n;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!a,options:c},t),this.updateElements(n,r,l,t)}updateElements(t,e,i,n){const s="reset"===n,{iScale:a,vScale:r,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:h,includeOptions:d}=this._getSharedOptions(e,n),u=a.axis,p=r.axis,{spanGaps:f,segment:g}=this.options,m=(0,o.x)(f)?f:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||s||"none"===n;let _=e>0&&this.getParsed(e-1);for(let f=e;f0&&Math.abs(i[u]-_[u])>m,g&&(x.parsed=i,x.raw=c.data[f]),d&&(x.options=h||this.resolveDataElementOptions(f,e.active?"active":n)),b||this.updateElement(e,f,x,n),_=i}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,o=t.data||[];if(!o.length)return i;const n=o[0].size(this.resolveDataElementOptions(0)),s=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(i,n,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}E.id="line",E.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},E.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class T extends v{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=(0,o.o)(e._parsed[t].r,i.options.locale);return{label:n[t]||"",value:s}}parseObjectData(t,e,i,n){return o.y.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,i)=>{const o=this.getParsed(i).r;!isNaN(o)&&this.chart.getDataVisibility(i)&&(oe.max&&(e.max=o))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,o=Math.min(e.right-e.left,e.bottom-e.top),n=Math.max(o/2,0),s=(n-Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=n-s*this.index,this.innerRadius=this.outerRadius-s}updateElements(t,e,i,n){const s="reset"===n,a=this.chart,r=a.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,h=l.yCenter,d=l.getIndexAngle(0)-.5*o.P;let u,p=d;const f=360/this.countVisibleElements();for(u=0;u{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++})),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?(0,o.t)(this.resolveDataElementOptions(t,e).angle||i):0}}T.id="polarArea",T.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},T.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,o)=>{const n=t.getDatasetMeta(0).controller.getStyle(o);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(o),index:o}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class B extends L{}B.id="pie",B.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class I extends v{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,n){return o.y.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta,i=e.dataset,o=e.data||[],n=e.iScale.getLabels();if(i.points=o,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const s={_loop:!0,_fullLoop:n.length===o.length,options:e};this.updateElement(i,void 0,s,t)}this.updateElements(o,0,o.length,t)}updateElements(t,e,i,o){const n=this._cachedMeta.rScale,s="reset"===o;for(let a=e;a{o[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),o}}j.defaults={},j.defaultRoutes=void 0;const R={values:t=>(0,o.b)(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const n=this.chart.options.locale;let s,a=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(s="scientific"),a=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t));return i}(t,i)}const r=(0,o.z)(Math.abs(a)),l=Math.max(Math.min(-1*Math.floor(r),20),0),c={notation:s,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),(0,o.o)(t,n,c)},logarithmic(t,e,i){if(0===t)return"0";const n=t/Math.pow(10,Math.floor((0,o.z)(t)));return 1===n||2===n||5===n?R.numeric.call(this,t,e,i):""}};var F={formatters:R};function z(t,e){const i=t.options.ticks,n=i.maxTicksLimit||function(t){const e=t.options.offset,i=t._tickSize(),o=t._length/i+(e?0:1),n=t._maxLength/i;return Math.floor(Math.min(o,n))}(t),s=i.major.enabled?function(t){const e=[];let i,o;for(i=0,o=t.length;in)return function(t,e,i,o){let n,s=0,a=i[0];for(o=Math.ceil(o),n=0;ns)return e}return Math.max(s,1)}(s,e,n);if(a>0){let t,i;const n=a>1?Math.round((l-r)/(a-1)):null;for(N(e,c,h,(0,o.k)(n)?0:r-n,r),t=0,i=a-1;te.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:F.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),o.d.route("scale.ticks","color","","color"),o.d.route("scale.grid","color","","borderColor"),o.d.route("scale.grid","borderColor","","borderColor"),o.d.route("scale.title","color","","color"),o.d.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),o.d.describe("scales",{_fallback:"scale"}),o.d.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const V=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function W(t,e){const i=[],o=t.length/e,n=t.length;let s=0;for(;sa+r)))return c}function U(t){return t.drawTicks?t.tickLength:0}function K(t,e){if(!t.display)return 0;const i=(0,o.O)(t.font,e),n=(0,o.K)(t.padding);return((0,o.b)(t.text)?t.text.length:1)*i.lineHeight+n.height}function q(t,e,i){let n=(0,o.R)(t);return(i&&"right"!==e||!i&&"right"===e)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class Y extends j{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:n}=this;return t=(0,o.B)(t,Number.POSITIVE_INFINITY),e=(0,o.B)(e,Number.NEGATIVE_INFINITY),i=(0,o.B)(i,Number.POSITIVE_INFINITY),n=(0,o.B)(n,Number.NEGATIVE_INFINITY),{min:(0,o.B)(t,i),max:(0,o.B)(e,n),minDefined:(0,o.g)(t),maxDefined:(0,o.g)(e)}}getMinMax(t){let e,{min:i,max:n,minDefined:s,maxDefined:a}=this.getUserBounds();if(s&&a)return{min:i,max:n};const r=this.getMatchingVisibleMetas();for(let o=0,l=r.length;on?n:i,n=s&&i>n?i:n,{min:(0,o.B)(i,(0,o.B)(n,i)),max:(0,o.B)(n,(0,o.B)(i,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){(0,o.C)(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:n,grace:s,ticks:a}=this.options,r=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=(0,o.D)(this,s,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=r=s||i<=1||!this.isHorizontal())return void(this.labelRotation=n);const h=this._getLabelSizes(),d=h.widest.width,u=h.highest.height,p=(0,o.E)(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/i:p/(i-1),d+6>a&&(a=p/(i-(t.offset?.5:1)),r=this.maxHeight-U(t.grid)-e.padding-K(t.title,this.chart.options.font),l=Math.sqrt(d*d+u*u),c=(0,o.F)(Math.min(Math.asin((0,o.E)((h.highest.height+6)/a,-1,1)),Math.asin((0,o.E)(r/l,-1,1))-Math.asin((0,o.E)(u/l,-1,1)))),c=Math.max(n,Math.min(s,c))),this.labelRotation=c}afterCalculateLabelRotation(){(0,o.C)(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){(0,o.C)(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:n,grid:s}}=this,a=this._isVisible(),r=this.isHorizontal();if(a){const a=K(n,e.options.font);if(r?(t.width=this.maxWidth,t.height=U(s)+a):(t.height=this.maxHeight,t.width=U(s)+a),i.display&&this.ticks.length){const{first:e,last:n,widest:s,highest:a}=this._getLabelSizes(),l=2*i.padding,c=(0,o.t)(this.labelRotation),h=Math.cos(c),d=Math.sin(c);if(r){const e=i.mirror?0:d*s.width+h*a.height;t.height=Math.min(this.maxHeight,t.height+e+l)}else{const e=i.mirror?0:h*s.width+d*a.height;t.width=Math.min(this.maxWidth,t.width+e+l)}this._calculatePadding(e,n,d,h)}}this._handleMargins(),r?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,o){const{ticks:{align:n,padding:s},position:a}=this.options,r=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,d=0;r?l?(h=o*t.width,d=i*e.height):(h=i*t.height,d=o*e.width):"start"===n?d=e.width:"end"===n?h=t.width:"inner"!==n&&(h=t.width/2,d=e.width/2),this.paddingLeft=Math.max((h-a+s)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-c+s)*this.width/(this.width-c),0)}else{let i=e.height/2,o=t.height/2;"start"===n?(i=0,o=t.height):"end"===n&&(i=e.height,o=0),this.paddingTop=i+s,this.paddingBottom=o+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){(0,o.C)(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e{const i=t.gc,o=i.length/2;let n;if(o>e){for(n=0;n({width:s[t]||0,height:a[t]||0});return{first:y(0),last:y(e-1),widest:y(w),highest:y(v),widths:s,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return(0,o.I)(this._alignToPixels?(0,o.J)(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&tr*n?r/i:l/n:l*n0}_computeGridLineItems(t){const e=this.axis,i=this.chart,n=this.options,{grid:s,position:a}=n,r=s.offset,l=this.isHorizontal(),c=this.ticks.length+(r?1:0),h=U(s),d=[],u=s.setContext(this.getContext()),p=u.drawBorder?u.borderWidth:0,f=p/2,g=function(t){return(0,o.J)(i,t,p)};let m,b,_,x,w,v,y,k,C,P,S,A;if("top"===a)m=g(this.bottom),v=this.bottom-h,k=m-f,P=g(t.top)+f,A=t.bottom;else if("bottom"===a)m=g(this.top),P=t.top,A=g(t.bottom)-f,v=m+f,k=this.top+h;else if("left"===a)m=g(this.right),w=this.right-h,y=m-f,C=g(t.left)+f,S=t.right;else if("right"===a)m=g(this.left),C=t.left,S=g(t.right)-f,w=m+f,y=this.left+h;else if("x"===e){if("center"===a)m=g((t.top+t.bottom)/2+.5);else if((0,o.i)(a)){const t=Object.keys(a)[0],e=a[t];m=g(this.chart.scales[t].getPixelForValue(e))}P=t.top,A=t.bottom,v=m+f,k=v+h}else if("y"===e){if("center"===a)m=g((t.left+t.right)/2);else if((0,o.i)(a)){const t=Object.keys(a)[0],e=a[t];m=g(this.chart.scales[t].getPixelForValue(e))}w=m-f,y=w-h,C=t.left,S=t.right}const M=(0,o.v)(n.ticks.maxTicksLimit,c),$=Math.max(1,Math.ceil(c/M));for(b=0;be.value===t));if(i>=0){return e.setContext(this.getContext(i)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,i=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let n,s;const a=(t,e,o)=>{o.width&&o.color&&(i.save(),i.lineWidth=o.width,i.strokeStyle=o.color,i.setLineDash(o.borderDash||[]),i.lineDashOffset=o.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(n=0,s=o.length;n{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",o=[];let n,s;for(n=0,s=e.length;n{const n=i.split("."),s=n.pop(),a=[t].concat(n).join("."),r=e[i].split("."),l=r.pop(),c=r.join(".");o.d.route(a,s,c,l)}))}(e,t.defaultRoutes);t.descriptors&&o.d.describe(e,t.descriptors)}(t,a,i),this.override&&o.d.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,n=this.scope;i in e&&delete e[i],n&&i in o.d[n]&&(delete o.d[n][i],this.override&&delete o.U[i])}}var Q=new class{constructor(){this.controllers=new X(v,"datasets",!0),this.elements=new X(j,"elements"),this.plugins=new X(Object,"plugins"),this.scales=new X(Y,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach((e=>{const n=i||this._getRegistryForType(e);i||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):(0,o.Q)(e,(e=>{const o=i||this._getRegistryForType(e);this._exec(t,o,e)}))}))}_exec(t,e,i){const n=(0,o.W)(t);(0,o.C)(i["before"+n],[],i),e[t](i),(0,o.C)(i["after"+n],[],i)}_getRegistryForType(t){for(let e=0;e0&&this.getParsed(e-1);for(let h=e;h0&&Math.abs(i[p]-x[p])>b,m&&(g.parsed=i,g.raw=c.data[h]),u&&(g.options=d||this.resolveDataElementOptions(h,e.active?"active":n)),_||this.updateElement(e,h,g,n),x=i}this.updateSharedOptions(d,n,h)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,o=i.options&&i.options.borderWidth||0;if(!e.length)return o;const n=e[0].size(this.resolveDataElementOptions(0)),s=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(o,n,s)/2}}J.id="scatter",J.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},J.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var Z=Object.freeze({__proto__:null,BarController:D,BubbleController:O,DoughnutController:L,LineController:E,PolarAreaController:T,PieController:B,RadarController:I,ScatterController:J});function G(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class tt{constructor(t){this.options=t||{}}init(t){}formats(){return G()}parse(t,e){return G()}format(t,e){return G()}add(t,e,i){return G()}diff(t,e,i){return G()}startOf(t,e,i){return G()}endOf(t,e){return G()}}tt.override=function(t){Object.assign(tt.prototype,t)};var et={_date:tt};function it(t,e,i,n){const{controller:s,data:a,_sorted:r}=t,l=s._cachedMeta.iScale;if(l&&e===l.axis&&"r"!==e&&r&&a.length){const t=l._reversePixels?o.Y:o.Z;if(!n)return t(a,e,i);if(s._sharedOptions){const o=a[0],n="function"==typeof o.getRange&&o.getRange(e);if(n){const o=t(a,e,i-n),s=t(a,e,i+n);return{lo:o.lo,hi:s.hi}}}}return{lo:0,hi:a.length-1}}function ot(t,e,i,o,n){const s=t.getSortedVisibleDatasetMetas(),a=i[e];for(let t=0,i=s.length;t{t[a](e[i],n)&&(s.push({element:t,datasetIndex:o,index:l}),r=r||t.inRange(e.x,e.y,n))})),o&&!r?[]:s}var lt={evaluateInteractionItems:ot,modes:{index(t,e,i,n){const s=(0,o.X)(e,t),a=i.axis||"x",r=i.includeInvisible||!1,l=i.intersect?nt(t,s,a,n,r):at(t,s,a,!1,n,r),c=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=l[0].index,i=t.data[e];i&&!i.skip&&c.push({element:i,datasetIndex:t.index,index:e})})),c):[]},dataset(t,e,i,n){const s=(0,o.X)(e,t),a=i.axis||"xy",r=i.includeInvisible||!1;let l=i.intersect?nt(t,s,a,n,r):at(t,s,a,!1,n,r);if(l.length>0){const e=l[0].datasetIndex,i=t.getDatasetMeta(e).data;l=[];for(let t=0;tnt(t,(0,o.X)(e,t),i.axis||"xy",n,i.includeInvisible||!1),nearest(t,e,i,n){const s=(0,o.X)(e,t),a=i.axis||"xy",r=i.includeInvisible||!1;return at(t,s,a,i.intersect,n,r)},x:(t,e,i,n)=>rt(t,(0,o.X)(e,t),"x",i.intersect,n),y:(t,e,i,n)=>rt(t,(0,o.X)(e,t),"y",i.intersect,n)}};const ct=["left","top","right","bottom"];function ht(t,e){return t.filter((t=>t.pos===e))}function dt(t,e){return t.filter((t=>-1===ct.indexOf(t.pos)&&t.box.axis===e))}function ut(t,e){return t.sort(((t,i)=>{const o=e?i:t,n=e?t:i;return o.weight===n.weight?o.index-n.index:o.weight-n.weight}))}function pt(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:o,stackWeight:n}=i;if(!t||!ct.includes(o))continue;const s=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=n}return e}(t),{vBoxMaxWidth:o,hBoxMaxHeight:n}=e;let s,a,r;for(s=0,a=t.length;s{o[t]=Math.max(e[t],i[t])})),o}return o(t?["left","right"]:["top","bottom"])}function _t(t,e,i,o){const n=[];let s,a,r,l,c,h;for(s=0,a=t.length,c=0;st.box.fullSize)),!0),o=ut(ht(e,"left"),!0),n=ut(ht(e,"right")),s=ut(ht(e,"top"),!0),a=ut(ht(e,"bottom")),r=dt(e,"x"),l=dt(e,"y");return{fullSize:i,leftAndTop:o.concat(s),rightAndBottom:n.concat(l).concat(a).concat(r),chartArea:ht(e,"chartArea"),vertical:o.concat(n).concat(l),horizontal:s.concat(a).concat(r)}}(t.boxes),c=l.vertical,h=l.horizontal;(0,o.Q)(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const d=c.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:s,availableWidth:a,availableHeight:r,vBoxMaxWidth:a/2/d,hBoxMaxHeight:r/2}),p=Object.assign({},s);gt(p,(0,o.K)(n));const f=Object.assign({maxPadding:p,w:a,h:r,x:s.left,y:s.top},s),g=pt(c.concat(h),u);_t(l.fullSize,f,u,g),_t(c,f,u,g),_t(h,f,u,g)&&_t(c,f,u,g),function(t){const e=t.maxPadding;function i(i){const o=Math.max(e[i]-t[i],0);return t[i]+=o,o}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(f),wt(l.leftAndTop,f,u,g),f.x+=f.w,f.y+=f.h,wt(l.rightAndBottom,f,u,g),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},(0,o.Q)(l.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class yt{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,o){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,o?Math.floor(e/o):i)}}isAttached(t){return!0}updateConfig(t){}}class kt extends yt{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ct="$chartjs",Pt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},St=t=>null===t||""===t;const At=!!o.a5&&{passive:!0};function Mt(t,e,i){t.canvas.removeEventListener(e,i,At)}function $t(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function Dt(t,e,i){const o=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||$t(i.addedNodes,o),e=e&&!$t(i.removedNodes,o);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}function Ot(t,e,i){const o=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||$t(i.removedNodes,o),e=e&&!$t(i.addedNodes,o);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}const Lt=new Map;let Et=0;function Tt(){const t=window.devicePixelRatio;t!==Et&&(Et=t,Lt.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function Bt(t,e,i){const n=t.canvas,s=n&&(0,o.a2)(n);if(!s)return;const a=(0,o.a4)(((t,e)=>{const o=s.clientWidth;i(t,e),o{const e=t[0],i=e.contentRect.width,o=e.contentRect.height;0===i&&0===o||a(i,o)}));return r.observe(s),function(t,e){Lt.size||window.addEventListener("resize",Tt),Lt.set(t,e)}(t,a),r}function It(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){Lt.delete(t),Lt.size||window.removeEventListener("resize",Tt)}(t)}function jt(t,e,i){const n=t.canvas,s=(0,o.a4)((e=>{null!==t.ctx&&i(function(t,e){const i=Pt[t.type]||t.type,{x:n,y:s}=(0,o.X)(t,e);return{type:i,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==s?s:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,i){t.addEventListener(e,i,At)}(n,e,s),s}class Rt extends yt{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,n=t.getAttribute("height"),s=t.getAttribute("width");if(t[Ct]={initial:{height:n,width:s,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",St(s)){const e=(0,o.a3)(t,"width");void 0!==e&&(t.width=e)}if(St(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=(0,o.a3)(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[Ct])return!1;const i=e[Ct].initial;["height","width"].forEach((t=>{const n=i[t];(0,o.k)(n)?e.removeAttribute(t):e.setAttribute(t,n)}));const n=i.style||{};return Object.keys(n).forEach((t=>{e.style[t]=n[t]})),e.width=e.width,delete e[Ct],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const o=t.$proxies||(t.$proxies={}),n={attach:Dt,detach:Ot,resize:Bt}[e]||jt;o[e]=n(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),o=i[e];if(!o)return;({attach:It,detach:It,resize:It}[e]||Mt)(t,e,o),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,n){return(0,o.a1)(t,e,i,n)}isAttached(t){const e=(0,o.a2)(t);return!(!e||!e.isConnected)}}class Ft{constructor(){this._init=[]}notify(t,e,i,o){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const n=o?this._descriptors(t).filter(o):this._descriptors(t),s=this._notify(n,t,e,i);return"afterDestroy"===e&&(this._notify(n,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,e,i,n){n=n||{};for(const s of t){const t=s.plugin,a=t[i],r=[e,n,s.options];if(!1===(0,o.C)(a,r,t)&&n.cancelable)return!1}return!0}invalidate(){(0,o.k)(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,n=(0,o.v)(i.options&&i.options.plugins,{}),s=function(t){const e={},i=[],o=Object.keys(Q.plugins.items);for(let t=0;tt.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(o(e,i),t,"stop"),this._notify(o(i,e),t,"start")}}function zt(t,e){return e||!1!==t?!0===t?{}:t:null}function Nt(t,{plugin:e,local:i},o,n){const s=t.pluginScopeKeys(e),a=t.getOptionScopes(o,s);return i&&e.defaults&&a.push(e.defaults),t.createResolver(a,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Vt(t,e){const i=o.d.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function Wt(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(i=e.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.charAt(0).toLowerCase();var i}function Ht(t){const e=t.options||(t.options={});e.plugins=(0,o.v)(e.plugins,{}),e.scales=function(t,e){const i=o.U[t.type]||{scales:{}},n=e.scales||{},s=Vt(t.type,e),a=Object.create(null),r=Object.create(null);return Object.keys(n).forEach((t=>{const e=n[t];if(!(0,o.i)(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const l=Wt(t,e),c=function(t,e){return t===e?"_index_":"_value_"}(l,s),h=i.scales||{};a[l]=a[l]||t,r[t]=(0,o.ac)(Object.create(null),[{axis:l},e,h[l],h[c]])})),t.data.datasets.forEach((i=>{const s=i.type||t.type,l=i.indexAxis||Vt(s,e),c=(o.U[s]||{}).scales||{};Object.keys(c).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,l),s=i[e+"AxisID"]||a[e]||e;r[s]=r[s]||Object.create(null),(0,o.ac)(r[s],[{axis:e},n[s],c[t]])}))})),Object.keys(r).forEach((t=>{const e=r[t];(0,o.ac)(e,[o.d.scales[e.type],o.d.scale])})),r}(t,e)}function Ut(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Kt=new Map,qt=new Set;function Yt(t,e){let i=Kt.get(t);return i||(i=e(),Kt.set(t,i),qt.add(i)),i}const Xt=(t,e,i)=>{const n=(0,o.f)(e,i);void 0!==n&&t.add(n)};class Qt{constructor(t){this._config=function(t){return(t=t||{}).data=Ut(t.data),Ht(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Ut(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Ht(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Yt(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Yt(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Yt(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Yt(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let o=i.get(t);return o&&!e||(o=new Map,i.set(t,o)),o}getOptionScopes(t,e,i){const{options:n,type:s}=this,a=this._cachedScopes(t,i),r=a.get(e);if(r)return r;const l=new Set;e.forEach((e=>{t&&(l.add(t),e.forEach((e=>Xt(l,t,e)))),e.forEach((t=>Xt(l,n,t))),e.forEach((t=>Xt(l,o.U[s]||{},t))),e.forEach((t=>Xt(l,o.d,t))),e.forEach((t=>Xt(l,o.a7,t)))}));const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),qt.has(e)&&a.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,o.U[e]||{},o.d.datasets[e]||{},{type:e},o.d,o.a7]}resolveNamedOptions(t,e,i,n=[""]){const s={$shared:!0},{resolver:a,subPrefixes:r}=Jt(this._resolverCache,t,n);let l=a;if(function(t,e){const{isScriptable:i,isIndexable:n}=(0,o.ab)(t);for(const s of e){const e=i(s),a=n(s),r=(a||e)&&t[s];if(e&&((0,o.a8)(r)||Zt(r))||a&&(0,o.b)(r))return!0}return!1}(a,e)){s.$shared=!1,i=(0,o.a8)(i)?i():i;const e=this.createResolver(t,i,r);l=(0,o.a9)(a,i,e)}for(const t of e)s[t]=l[t];return s}createResolver(t,e,i=[""],n){const{resolver:s}=Jt(this._resolverCache,t,i);return(0,o.i)(e)?(0,o.a9)(s,e,void 0,n):s}}function Jt(t,e,i){let n=t.get(e);n||(n=new Map,t.set(e,n));const s=i.join();let a=n.get(s);if(!a){a={resolver:(0,o.aa)(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},n.set(s,a)}return a}const Zt=t=>(0,o.i)(t)&&Object.getOwnPropertyNames(t).reduce(((e,i)=>e||(0,o.a8)(t[i])),!1);const Gt=["top","bottom","left","right","chartArea"];function te(t,e){return"top"===t||"bottom"===t||-1===Gt.indexOf(t)&&"x"===e}function ee(t,e){return function(i,o){return i[t]===o[t]?i[e]-o[e]:i[t]-o[t]}}function ie(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),(0,o.C)(i&&i.onComplete,[t],e)}function oe(t){const e=t.chart,i=e.options.animation;(0,o.C)(i&&i.onProgress,[t],e)}function ne(t){return(0,o.a6)()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const se={},ae=t=>{const e=ne(t);return Object.values(se).filter((t=>t.canvas===e)).pop()};function re(t,e,i){const o=Object.keys(t);for(const n of o){const o=+n;if(o>=e){const s=t[n];delete t[n],(i>0||o>e)&&(t[o+i]=s)}}}class le{constructor(t,e){const i=this.config=new Qt(e),s=ne(t),a=ae(s);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const r=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!(0,o.a6)()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?kt:Rt}(s)),this.platform.updateConfig(i);const l=this.platform.acquireContext(s,r.aspectRatio),c=l&&l.canvas,h=c&&c.height,d=c&&c.width;this.id=(0,o.ad)(),this.ctx=l,this.canvas=c,this.width=d,this.height=h,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Ft,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,o.ae)((t=>this.update(t)),r.resizeDelay||0),this._dataChanges=[],se[this.id]=this,l&&c?(n.listen(this,"complete",ie),n.listen(this,"progress",oe),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:n,_aspectRatio:s}=this;return(0,o.k)(t)?e&&s?s:n?i/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():(0,o.af)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return(0,o.ag)(this.canvas,this.ctx),this}stop(){return n.stop(this),this}resize(t,e){n.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,n=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(n,t,e,s),r=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,(0,o.af)(this,r,!0)&&(this.notifyPlugins("resize",{size:a}),(0,o.C)(i.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};(0,o.Q)(t,((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,n=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let s=[];e&&(s=s.concat(Object.keys(e).map((t=>{const i=e[t],o=Wt(t,i),n="r"===o,s="x"===o;return{options:i,dposition:n?"chartArea":s?"bottom":"left",dtype:n?"radialLinear":s?"category":"linear"}})))),(0,o.Q)(s,(e=>{const s=e.options,a=s.id,r=Wt(a,s),l=(0,o.v)(s.type,e.dtype);void 0!==s.position&&te(s.position,r)===te(e.dposition)||(s.position=e.dposition),n[a]=!0;let c=null;if(a in i&&i[a].type===l)c=i[a];else{c=new(Q.getScale(l))({id:a,type:l,ctx:this.ctx,chart:this}),i[c.id]=c}c.init(s,t)})),(0,o.Q)(n,((t,e)=>{t||delete i[e]})),(0,o.Q)(i,(t=>{vt.configure(this,t,t.options),vt.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;te.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,n;for(this._removeUnreferencedMetasets(),i=0,n=e.length;i{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let t=0,e=this.data.datasets.length;t{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ee("z","_idx"));const{_active:r,_lastEvent:l}=this;l?this._eventHandler(l,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){(0,o.Q)(this.scales,(t=>{vt.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);(0,o.ah)(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:o,count:n}of e){re(t,o,"_removeElements"===i?-n:n)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),n=i(0);for(let t=1;tt.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;vt.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],(0,o.Q)(this.boxes,(t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,n=!i.disabled,s=this.chartArea,a={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(n&&(0,o.L)(e,{left:!1===i.left?0:s.left-i.left,right:!1===i.right?this.width:s.right+i.right,top:!1===i.top?0:s.top-i.top,bottom:!1===i.bottom?this.height:s.bottom+i.bottom}),t.controller.draw(),n&&(0,o.N)(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return(0,o.$)(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,o){const n=lt.modes[e];return"function"==typeof n?n(this,t,i,o):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let o=i.filter((t=>t&&t._dataset===e)).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(o)),o}getContext(){return this.$context||(this.$context=(0,o.h)(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const n=i?"show":"hide",s=this.getDatasetMeta(t),a=s.controller._resolveAnimations(void 0,n);(0,o.j)(e)?(s.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),a.update(s,{visible:i}),this.update((e=>e.datasetIndex===t?n:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),n.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,i,o),t[i]=o},n=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};(0,o.Q)(this.options.events,(t=>i(t,n)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,o)=>{e.addEventListener(this,i,o),t[i]=o},o=(i,o)=>{t[i]&&(e.removeEventListener(this,i,o),delete t[i])},n=(t,e)=>{this.canvas&&this.resize(t,e)};let s;const a=()=>{o("attach",a),this.attached=!0,this.resize(),i("resize",n),i("detach",s)};s=()=>{this.attached=!1,o("resize",n),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():s()}unbindEvents(){(0,o.Q)(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},(0,o.Q)(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const o=i?"set":"remove";let n,s,a,r;for("dataset"===e&&(n=this.getDatasetMeta(t[0].datasetIndex),n.controller["_"+o+"DatasetHoverStyle"]()),a=0,r=t.length;a{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}));!(0,o.ai)(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const o=this.options.hover,n=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),s=n(e,t),a=i?t:n(t,e);s.length&&this.updateHoverStyle(s,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},o=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,o))return;const n=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,o),(n||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:n=[],options:s}=this,a=e,r=this._getActiveElements(t,n,i,a),l=(0,o.aj)(t),c=function(t,e,i,o){return i&&"mouseout"!==t.type?o?e:t:null}(t,this._lastEvent,i,l);i&&(this._lastEvent=null,(0,o.C)(s.onHover,[t,r,this],this),l&&(0,o.C)(s.onClick,[t,r,this],this));const h=!(0,o.ai)(r,n);return(h||e)&&(this._active=r,this._updateHoverStyles(r,n,e)),this._lastEvent=c,h}_getActiveElements(t,e,i,o){if("mouseout"===t.type)return[];if(!i)return e;const n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,o)}}const ce=()=>(0,o.Q)(le.instances,(t=>t._plugins.invalidate())),he=!0;function de(t,e,i){const{startAngle:n,pixelMargin:s,x:a,y:r,outerRadius:l,innerRadius:c}=e;let h=s/l;t.beginPath(),t.arc(a,r,l,n-h,i+h),c>s?(h=s/c,t.arc(a,r,c,i+h,n-h,!0)):t.arc(a,r,s,i+o.H,n-o.H),t.closePath(),t.clip()}function ue(t,e,i,n){const s=(a=t.options.borderRadius,(0,o.al)(a,["outerStart","outerEnd","innerStart","innerEnd"]));var a;const r=(i-e)/2,l=Math.min(r,n*e/2),c=t=>{const e=(i-Math.min(r,t))*n/2;return(0,o.E)(t,0,Math.min(r,e))};return{outerStart:c(s.outerStart),outerEnd:c(s.outerEnd),innerStart:(0,o.E)(s.innerStart,0,l),innerEnd:(0,o.E)(s.innerEnd,0,l)}}function pe(t,e,i,o){return{x:i+t*Math.cos(e),y:o+t*Math.sin(e)}}function fe(t,e,i,n,s,a){const{x:r,y:l,startAngle:c,pixelMargin:h,innerRadius:d}=e,u=Math.max(e.outerRadius+n+i-h,0),p=d>0?d+n+i+h:0;let f=0;const g=s-c;if(n){const t=((d>0?d-n:0)+(u>0?u-n:0))/2;f=(g-(0!==t?g*t/(t+n):g))/2}const m=(g-Math.max(.001,g*u-i/o.P)/u)/2,b=c+m+f,_=s-m-f,{outerStart:x,outerEnd:w,innerStart:v,innerEnd:y}=ue(e,p,u,_-b),k=u-x,C=u-w,P=b+x/k,S=_-w/C,A=p+v,M=p+y,$=b+v/A,D=_-y/M;if(t.beginPath(),a){if(t.arc(r,l,u,P,S),w>0){const e=pe(C,S,r,l);t.arc(e.x,e.y,w,S,_+o.H)}const e=pe(M,_,r,l);if(t.lineTo(e.x,e.y),y>0){const e=pe(M,D,r,l);t.arc(e.x,e.y,y,_+o.H,D+Math.PI)}if(t.arc(r,l,p,_-y/p,b+v/p,!0),v>0){const e=pe(A,$,r,l);t.arc(e.x,e.y,v,$+Math.PI,b-o.H)}const i=pe(k,b,r,l);if(t.lineTo(i.x,i.y),x>0){const e=pe(k,P,r,l);t.arc(e.x,e.y,x,b-o.H,P)}}else{t.moveTo(r,l);const e=Math.cos(P)*u+r,i=Math.sin(P)*u+l;t.lineTo(e,i);const o=Math.cos(S)*u+r,n=Math.sin(S)*u+l;t.lineTo(o,n)}t.closePath()}function ge(t,e,i,n,s,a){const{options:r}=e,{borderWidth:l,borderJoinStyle:c}=r,h="inner"===r.borderAlign;l&&(h?(t.lineWidth=2*l,t.lineJoin=c||"round"):(t.lineWidth=l,t.lineJoin=c||"bevel"),e.fullCircles&&function(t,e,i){const{x:n,y:s,startAngle:a,pixelMargin:r,fullCircles:l}=e,c=Math.max(e.outerRadius-r,0),h=e.innerRadius+r;let d;for(i&&de(t,e,a+o.T),t.beginPath(),t.arc(n,s,h,a+o.T,a,!0),d=0;d{Q.add(...t),ce()}},unregister:{enumerable:he,value:(...t)=>{Q.remove(...t),ce()}}});class me extends j{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.getProps(["x","y"],i),{angle:s,distance:a}=(0,o.a0)(n,{x:t,y:e}),{startAngle:r,endAngle:l,innerRadius:c,outerRadius:h,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=this.options.spacing/2,p=(0,o.v)(d,l-r)>=o.T||(0,o.p)(s,r,l),f=(0,o.ak)(a,c+u,h+u);return p&&f}getCenterPoint(t){const{x:e,y:i,startAngle:o,endAngle:n,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:r,spacing:l}=this.options,c=(o+n)/2,h=(s+a+l+r)/2;return{x:e+Math.cos(c)*h,y:i+Math.sin(c)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,n=(e.offset||0)/2,s=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>o.T?Math.floor(i/o.T):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let r=0;if(n){r=n/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*r,Math.sin(e)*r),this.circumference>=o.P&&(r=n)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const l=function(t,e,i,n,s){const{fullCircles:a,startAngle:r,circumference:l}=e;let c=e.endAngle;if(a){fe(t,e,i,n,r+o.T,s);for(let e=0;er&&s>r;return{count:o,start:l,loop:e.loop,ilen:c(a+(c?r-t:t))%s,x=()=>{p!==f&&(t.lineTo(m,f),t.lineTo(m,p),t.lineTo(m,g))};for(l&&(d=n[_(0)],t.moveTo(d.x,d.y)),h=0;h<=r;++h){if(d=n[_(h)],d.skip)continue;const e=d.x,i=d.y,o=0|e;o===u?(if&&(f=i),m=(b*m+e)/++b):(x(),t.lineTo(e,i),u=o,b=0,p=f=i),g=i}x()}function ye(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i)?ve:we}me.id="arc",me.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},me.defaultRoutes={backgroundColor:"backgroundColor"};const ke="function"==typeof Path2D;function Ce(t,e,i,o){ke&&!e.options.segment?function(t,e,i,o){let n=e._path;n||(n=e._path=new Path2D,e.path(n,i,o)&&n.closePath()),be(t,e.options),t.stroke(n)}(t,e,i,o):function(t,e,i,o){const{segments:n,options:s}=e,a=ye(e);for(const r of n)be(t,s,r.style),t.beginPath(),a(t,e,r,{start:i,end:i+o-1})&&t.closePath(),t.stroke()}(t,e,i,o)}class Pe extends j{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const n=i.spanGaps?this._loop:this._fullLoop;(0,o.am)(this._points,i,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=(0,o.an)(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,n=t[e],s=this.points,a=(0,o.ao)(this,{property:e,start:n,end:n});if(!a.length)return;const r=[],l=function(t){return t.stepped?o.ap:t.tension||"monotone"===t.cubicInterpolationMode?o.aq:o.ar}(i);let c,h;for(c=0,h=a.length;c"borderDash"!==t&&"fill"!==t};class Ae extends j{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const o=this.options,{x:n,y:s}=this.getProps(["x","y"],i);return Math.pow(t-n,2)+Math.pow(e-s,2){Ie(t)}))}var Re={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void je(t);const n=t.width;t.data.datasets.forEach(((e,s)=>{const{_data:a,indexAxis:r}=e,l=t.getDatasetMeta(s),c=a||e.data;if("y"===(0,o.a)([r,t.options.indexAxis]))return;if(!l.controller.supportsDecimation)return;const h=t.scales[l.xAxisID];if("linear"!==h.type&&"time"!==h.type)return;if(t.options.parsing)return;let{start:d,count:u}=function(t,e){const i=e.length;let n,s=0;const{iScale:a}=t,{min:r,max:l,minDefined:c,maxDefined:h}=a.getUserBounds();return c&&(s=(0,o.E)((0,o.Z)(e,a.axis,r).lo,0,i-1)),n=h?(0,o.E)((0,o.Z)(e,a.axis,l).hi+1,s,i)-s:i-s,{start:s,count:n}}(l,c);if(u<=(i.threshold||4*n))return void Ie(e);let p;switch((0,o.k)(a)&&(e._data=c,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":p=function(t,e,i,o,n){const s=n.samples||o;if(s>=i)return t.slice(e,e+i);const a=[],r=(i-2)/(s-2);let l=0;const c=e+i-1;let h,d,u,p,f,g=e;for(a[l++]=t[g],h=0;hu&&(u=p,d=t[o],f=o);a[l++]=d,g=f}return a[l++]=t[c],a}(c,d,u,n,i);break;case"min-max":p=function(t,e,i,n){let s,a,r,l,c,h,d,u,p,f,g=0,m=0;const b=[],_=e+i-1,x=t[e].x,w=t[_].x-x;for(s=e;sf&&(f=l,d=s),g=(m*g+a.x)/++m;else{const i=s-1;if(!(0,o.k)(h)&&!(0,o.k)(d)){const e=Math.min(h,d),o=Math.max(h,d);e!==u&&e!==i&&b.push({...t[e],x:g}),o!==u&&o!==i&&b.push({...t[o],x:g})}s>0&&i!==u&&b.push(t[i]),b.push(a),c=e,m=0,p=f=l,h=d=u=s}}return b}(c,d,u,n);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=p}))},destroy(t){je(t)}};function Fe(t,e,i,n){if(n)return;let s=e[t],a=i[t];return"angle"===t&&(s=(0,o.az)(s),a=(0,o.az)(a)),{property:t,start:s,end:a}}function ze(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function Ne(t,e,i,o){return t&&e?o(t[i],e[i]):t?t[i]:e?e[i]:0}function Ve(t,e){let i=[],n=!1;return(0,o.b)(t)?(n=!0,i=t):i=function(t,e){const{x:i=null,y:o=null}=t||{},n=e.points,s=[];return e.segments.forEach((({start:t,end:e})=>{e=ze(t,e,n);const a=n[t],r=n[e];null!==o?(s.push({x:a.x,y:o}),s.push({x:r.x,y:o})):null!==i&&(s.push({x:i,y:a.y}),s.push({x:i,y:r.y}))})),s}(t,e),i.length?new Pe({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function We(t){return t&&!1!==t.fill}function He(t,e,i){let n=t[e].fill;const s=[e];let a;if(!i)return n;for(;!1!==n&&-1===s.indexOf(n);){if(!(0,o.g)(n))return n;if(a=t[n],!a)return!1;if(a.visible)return n;s.push(n),n=a.fill}return!1}function Ue(t,e,i){const n=function(t){const e=t.options,i=e.fill;let n=(0,o.v)(i&&i.target,i);void 0===n&&(n=!!e.backgroundColor);if(!1===n||null===n)return!1;if(!0===n)return"origin";return n}(t);if((0,o.i)(n))return!isNaN(n.value)&&n;let s=parseFloat(n);return(0,o.g)(s)&&Math.floor(s)===s?function(t,e,i,o){"-"!==t&&"+"!==t||(i=e+i);if(i===e||i<0||i>=o)return!1;return i}(n[0],e,s,i):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function Ke(t,e,i){const o=[];for(let n=0;n=0;--e){const i=n[e].$filler;i&&(i.line.updateControlPoints(s,i.axis),o&&i.fill&&Qe(t.ctx,i,s))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const o=t.getSortedVisibleDatasetMetas();for(let e=o.length-1;e>=0;--e){const i=o[e].$filler;We(i)&&Qe(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const o=e.meta.$filler;We(o)&&"beforeDatasetDraw"===i.drawTime&&Qe(t.ctx,o,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ii=(t,e)=>{let{boxHeight:i=e,boxWidth:o=e}=t;return t.usePointStyle&&(i=Math.min(i,e),o=t.pointStyleWidth||Math.min(o,e)),{boxWidth:o,boxHeight:i,itemHeight:Math.max(e,i)}};class oi extends j{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=(0,o.C)(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,n=(0,o.O)(i.font),s=n.size,a=this._computeTitleHeight(),{boxWidth:r,itemHeight:l}=ii(i,s);let c,h;e.font=n.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(a,s,r,l)+10):(h=this.maxHeight,c=this._fitCols(a,s,r,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,o){const{ctx:n,maxWidth:s,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],l=this.lineWidths=[0],c=o+a;let h=t;n.textAlign="left",n.textBaseline="middle";let d=-1,u=-c;return this.legendItems.forEach(((t,p)=>{const f=i+e/2+n.measureText(t.text).width;(0===p||l[l.length-1]+f+2*a>s)&&(h+=c,l[l.length-(p>0?0:1)]=0,u+=c,d++),r[p]={left:0,top:u,row:d,width:f,height:o},l[l.length-1]+=f+a})),h}_fitCols(t,e,i,o){const{ctx:n,maxHeight:s,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],l=this.columnSizes=[],c=s-t;let h=a,d=0,u=0,p=0,f=0;return this.legendItems.forEach(((t,s)=>{const g=i+e/2+n.measureText(t.text).width;s>0&&u+o+2*a>c&&(h+=d+a,l.push({width:d,height:u}),p+=d+a,f++,d=u=0),r[s]={left:p,top:u,col:f,width:g,height:o},d=Math.max(d,g),u+=o+a})),h+=d,l.push({width:d,height:u}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:n},rtl:s}}=this,a=(0,o.aA)(s,this.left,this.width);if(this.isHorizontal()){let s=0,r=(0,o.S)(i,this.left+n,this.right-this.lineWidths[s]);for(const l of e)s!==l.row&&(s=l.row,r=(0,o.S)(i,this.left+n,this.right-this.lineWidths[s])),l.top+=this.top+t+n,l.left=a.leftForLtr(a.x(r),l.width),r+=l.width+n}else{let s=0,r=(0,o.S)(i,this.top+t+n,this.bottom-this.columnSizes[s].height);for(const l of e)l.col!==s&&(s=l.col,r=(0,o.S)(i,this.top+t+n,this.bottom-this.columnSizes[s].height)),l.top=r,l.left+=this.left+n,l.left=a.leftForLtr(a.x(l.left),l.width),r+=l.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;(0,o.L)(t,this),this._draw(),(0,o.N)(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:n}=this,{align:s,labels:a}=t,r=o.d.color,l=(0,o.aA)(t.rtl,this.left,this.width),c=(0,o.O)(a.font),{color:h,padding:d}=a,u=c.size,p=u/2;let f;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;const{boxWidth:g,boxHeight:m,itemHeight:b}=ii(a,u),_=this.isHorizontal(),x=this._computeTitleHeight();f=_?{x:(0,o.S)(s,this.left+d,this.right-i[0]),y:this.top+d+x,line:0}:{x:this.left+d,y:(0,o.S)(s,this.top+x+d,this.bottom-e[0].height),line:0},(0,o.aB)(this.ctx,t.textDirection);const w=b+d;this.legendItems.forEach(((v,y)=>{n.strokeStyle=v.fontColor||h,n.fillStyle=v.fontColor||h;const k=n.measureText(v.text).width,C=l.textAlign(v.textAlign||(v.textAlign=a.textAlign)),P=g+p+k;let S=f.x,A=f.y;l.setWidth(this.width),_?y>0&&S+P+d>this.right&&(A=f.y+=w,f.line++,S=f.x=(0,o.S)(s,this.left+d,this.right-i[f.line])):y>0&&A+w>this.bottom&&(S=f.x=S+e[f.line].width+d,f.line++,A=f.y=(0,o.S)(s,this.top+x+d,this.bottom-e[f.line].height));!function(t,e,i){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;n.save();const s=(0,o.v)(i.lineWidth,1);if(n.fillStyle=(0,o.v)(i.fillStyle,r),n.lineCap=(0,o.v)(i.lineCap,"butt"),n.lineDashOffset=(0,o.v)(i.lineDashOffset,0),n.lineJoin=(0,o.v)(i.lineJoin,"miter"),n.lineWidth=s,n.strokeStyle=(0,o.v)(i.strokeStyle,r),n.setLineDash((0,o.v)(i.lineDash,[])),a.usePointStyle){const r={radius:m*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:s},c=l.xPlus(t,g/2),h=e+p;(0,o.aE)(n,r,c,h,a.pointStyleWidth&&g)}else{const a=e+Math.max((u-m)/2,0),r=l.leftForLtr(t,g),c=(0,o.ax)(i.borderRadius);n.beginPath(),Object.values(c).some((t=>0!==t))?(0,o.av)(n,{x:r,y:a,w:g,h:m,radius:c}):n.rect(r,a,g,m),n.fill(),0!==s&&n.stroke()}n.restore()}(l.x(S),A,v),S=(0,o.aC)(C,S+g+p,_?S+P:this.right,t.rtl),function(t,e,i){(0,o.M)(n,i.text,t,e+b/2,c,{strikethrough:i.hidden,textAlign:l.textAlign(i.textAlign)})}(l.x(S),A,v),_?f.x+=P+d:f.y+=w})),(0,o.aD)(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=(0,o.O)(e.font),n=(0,o.K)(e.padding);if(!e.display)return;const s=(0,o.aA)(t.rtl,this.left,this.width),a=this.ctx,r=e.position,l=i.size/2,c=n.top+l;let h,d=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),h=this.top+c,d=(0,o.S)(t.align,d,this.right-u);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);h=c+(0,o.S)(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const p=(0,o.S)(r,d,d+u);a.textAlign=s.textAlign((0,o.R)(r)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=i.string,(0,o.M)(a,e.text,p,h,i)}_computeTitleHeight(){const t=this.options.title,e=(0,o.O)(t.font),i=(0,o.K)(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,n,s;if((0,o.ak)(t,this.left,this.right)&&(0,o.ak)(e,this.top,this.bottom))for(s=this.legendHitBoxes,i=0;it.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:n,textAlign:s,color:a}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const r=t.controller.getStyle(i?0:void 0),l=(0,o.K)(r.borderWidth);return{text:e[t.index].label,fillStyle:r.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:r.borderColor,pointStyle:n||r.pointStyle,rotation:r.rotation,textAlign:s||r.textAlign,borderRadius:0,datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class si extends j{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const n=(0,o.b)(i.text)?i.text.length:1;this._padding=(0,o.K)(i.padding);const s=n*(0,o.O)(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:n,right:s,options:a}=this,r=a.align;let l,c,h,d=0;return this.isHorizontal()?(c=(0,o.S)(r,i,s),h=e+t,l=s-i):("left"===a.position?(c=i+t,h=(0,o.S)(r,n,e),d=-.5*o.P):(c=s-t,h=(0,o.S)(r,e,n),d=.5*o.P),l=n-e),{titleX:c,titleY:h,maxWidth:l,rotation:d}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=(0,o.O)(e.font),n=i.lineHeight/2+this._padding.top,{titleX:s,titleY:a,maxWidth:r,rotation:l}=this._drawArgs(n);(0,o.M)(t,e.text,0,0,i,{color:e.color,maxWidth:r,rotation:l,textAlign:(0,o.R)(e.align),textBaseline:"middle",translation:[s,a]})}}var ai={id:"title",_element:si,start(t,e,i){!function(t,e){const i=new si({ctx:t.ctx,options:e,chart:t});vt.configure(t,i,e),vt.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;vt.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const o=t.titleBlock;vt.configure(t,o,i),o.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ri=new WeakMap;var li={id:"subtitle",start(t,e,i){const o=new si({ctx:t.ctx,options:i,chart:t});vt.configure(t,o,i),vt.addBox(t,o),ri.set(t,o)},stop(t){vt.removeBox(t,ri.get(t)),ri.delete(t)},beforeUpdate(t,e,i){const o=ri.get(t);vt.configure(t,o,i),o.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ci={average(t){if(!t.length)return!1;let e,i,o=0,n=0,s=0;for(e=0,i=t.length;e-1?t.split("\n"):t}function ui(t,e){const{element:i,datasetIndex:o,index:n}=e,s=t.getDatasetMeta(o).controller,{label:a,value:r}=s.getLabelAndValue(n);return{chart:t,label:a,parsed:s.getParsed(n),raw:t.data.datasets[o].data[n],formattedValue:r,dataset:s.getDataset(),dataIndex:n,datasetIndex:o,element:i}}function pi(t,e){const i=t.chart.ctx,{body:n,footer:s,title:a}=t,{boxWidth:r,boxHeight:l}=e,c=(0,o.O)(e.bodyFont),h=(0,o.O)(e.titleFont),d=(0,o.O)(e.footerFont),u=a.length,p=s.length,f=n.length,g=(0,o.K)(e.padding);let m=g.height,b=0,_=n.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(_+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*h.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),_){m+=f*(e.displayColors?Math.max(l,c.lineHeight):c.lineHeight)+(_-f)*c.lineHeight+(_-1)*e.bodySpacing}p&&(m+=e.footerMarginTop+p*d.lineHeight+(p-1)*e.footerSpacing);let x=0;const w=function(t){b=Math.max(b,i.measureText(t).width+x)};return i.save(),i.font=h.string,(0,o.Q)(t.title,w),i.font=c.string,(0,o.Q)(t.beforeBody.concat(t.afterBody),w),x=e.displayColors?r+2+e.boxPadding:0,(0,o.Q)(n,(t=>{(0,o.Q)(t.before,w),(0,o.Q)(t.lines,w),(0,o.Q)(t.after,w)})),x=0,i.font=d.string,(0,o.Q)(t.footer,w),i.restore(),b+=g.width,{width:b,height:m}}function fi(t,e,i,o){const{x:n,width:s}=i,{width:a,chartArea:{left:r,right:l}}=t;let c="center";return"center"===o?c=n<=(r+l)/2?"left":"right":n<=s/2?c="left":n>=a-s/2&&(c="right"),function(t,e,i,o){const{x:n,width:s}=o,a=i.caretSize+i.caretPadding;return"left"===t&&n+s+a>e.width||"right"===t&&n-s-a<0||void 0}(c,t,e,i)&&(c="center"),c}function gi(t,e,i){const o=i.yAlign||e.yAlign||function(t,e){const{y:i,height:o}=e;return it.height-o/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||fi(t,e,i,o),yAlign:o}}function mi(t,e,i,n){const{caretSize:s,caretPadding:a,cornerRadius:r}=t,{xAlign:l,yAlign:c}=i,h=s+a,{topLeft:d,topRight:u,bottomLeft:p,bottomRight:f}=(0,o.ax)(r);let g=function(t,e){let{x:i,width:o}=t;return"right"===e?i-=o:"center"===e&&(i-=o/2),i}(e,l);const m=function(t,e,i){let{y:o,height:n}=t;return"top"===e?o+=i:o-="bottom"===e?n+i:n/2,o}(e,c,h);return"center"===c?"left"===l?g+=h:"right"===l&&(g-=h):"left"===l?g-=Math.max(d,p)+s:"right"===l&&(g+=Math.max(u,f)+s),{x:(0,o.E)(g,0,n.width-e.width),y:(0,o.E)(m,0,n.height-e.height)}}function bi(t,e,i){const n=(0,o.K)(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function _i(t){return hi([],di(t))}function xi(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class wi extends j{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),o=i.enabled&&e.options.animation&&i.animations,n=new c(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,i=this._tooltipItems,(0,o.h)(t,{tooltip:e,tooltipItems:i,type:"tooltip"})));var t,e,i}getTitle(t,e){const{callbacks:i}=e,o=i.beforeTitle.apply(this,[t]),n=i.title.apply(this,[t]),s=i.afterTitle.apply(this,[t]);let a=[];return a=hi(a,di(o)),a=hi(a,di(n)),a=hi(a,di(s)),a}getBeforeBody(t,e){return _i(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,n=[];return(0,o.Q)(t,(t=>{const e={before:[],lines:[],after:[]},o=xi(i,t);hi(e.before,di(o.beforeLabel.call(this,t))),hi(e.lines,o.label.call(this,t)),hi(e.after,di(o.afterLabel.call(this,t))),n.push(e)})),n}getAfterBody(t,e){return _i(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,o=i.beforeFooter.apply(this,[t]),n=i.footer.apply(this,[t]),s=i.afterFooter.apply(this,[t]);let a=[];return a=hi(a,di(o)),a=hi(a,di(n)),a=hi(a,di(s)),a}_createItems(t){const e=this._active,i=this.chart.data,n=[],s=[],a=[];let r,l,c=[];for(r=0,l=e.length;rt.filter(e,o,n,i)))),t.itemSort&&(c=c.sort(((e,o)=>t.itemSort(e,o,i)))),(0,o.Q)(c,(e=>{const i=xi(t.callbacks,e);n.push(i.labelColor.call(this,e)),s.push(i.labelPointStyle.call(this,e)),a.push(i.labelTextColor.call(this,e))})),this.labelColors=n,this.labelPointStyles=s,this.labelTextColors=a,this.dataPoints=c,c}update(t,e){const i=this.options.setContext(this.getContext()),o=this._active;let n,s=[];if(o.length){const t=ci[i.position].call(this,o,this._eventPosition);s=this._createItems(i),this.title=this.getTitle(s,i),this.beforeBody=this.getBeforeBody(s,i),this.body=this.getBody(s,i),this.afterBody=this.getAfterBody(s,i),this.footer=this.getFooter(s,i);const e=this._size=pi(this,i),a=Object.assign({},t,e),r=gi(this.chart,i,a),l=mi(i,a,r,this.chart);this.xAlign=r.xAlign,this.yAlign=r.yAlign,n={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=s,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,o){const n=this.getCaretPosition(t,i,o);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){const{xAlign:n,yAlign:s}=this,{caretSize:a,cornerRadius:r}=i,{topLeft:l,topRight:c,bottomLeft:h,bottomRight:d}=(0,o.ax)(r),{x:u,y:p}=t,{width:f,height:g}=e;let m,b,_,x,w,v;return"center"===s?(w=p+g/2,"left"===n?(m=u,b=m-a,x=w+a,v=w-a):(m=u+f,b=m+a,x=w-a,v=w+a),_=m):(b="left"===n?u+Math.max(l,h)+a:"right"===n?u+f-Math.max(c,d)-a:this.caretX,"top"===s?(x=p,w=x-a,m=b-a,_=b+a):(x=p+g,w=x+a,m=b+a,_=b-a),v=x),{x1:m,x2:b,x3:_,y1:x,y2:w,y3:v}}drawTitle(t,e,i){const n=this.title,s=n.length;let a,r,l;if(s){const c=(0,o.aA)(i.rtl,this.x,this.width);for(t.x=bi(this,i.titleAlign,i),e.textAlign=c.textAlign(i.titleAlign),e.textBaseline="middle",a=(0,o.O)(i.titleFont),r=i.titleSpacing,e.fillStyle=i.titleColor,e.font=a.string,l=0;l0!==t))?(t.beginPath(),t.fillStyle=s.multiKeyBackground,(0,o.av)(t,{x:e,y:g,w:c,h:l,radius:r}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),(0,o.av)(t,{x:i,y:g+1,w:c-2,h:l-2,radius:r}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(e,g,c,l),t.strokeRect(e,g,c,l),t.fillStyle=a.backgroundColor,t.fillRect(i,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:n}=this,{bodySpacing:s,bodyAlign:a,displayColors:r,boxHeight:l,boxWidth:c,boxPadding:h}=i,d=(0,o.O)(i.bodyFont);let u=d.lineHeight,p=0;const f=(0,o.aA)(i.rtl,this.x,this.width),g=function(i){e.fillText(i,f.x(t.x+p),t.y+u/2),t.y+=u+s},m=f.textAlign(a);let b,_,x,w,v,y,k;for(e.textAlign=a,e.textBaseline="middle",e.font=d.string,t.x=bi(this,m,i),e.fillStyle=i.bodyColor,(0,o.Q)(this.beforeBody,g),p=r&&"right"!==m?"center"===a?c/2+h:c+2+h:0,w=0,y=n.length;w0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,o=i&&i.x,n=i&&i.y;if(o||n){const i=ci[t.position].call(this,this._active,this._eventPosition);if(!i)return;const s=this._size=pi(this,t),a=Object.assign({},i,this._size),r=gi(e,t,a),l=mi(t,a,r,e);o._to===l.x&&n._to===l.y||(this.xAlign=r.xAlign,this.yAlign=r.yAlign,this.width=s.width,this.height=s.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const a=(0,o.K)(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=i,this.drawBackground(s,t,n,e),(0,o.aB)(t,e.textDirection),s.y+=a.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),(0,o.aD)(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,n=t.map((({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}})),s=!(0,o.ai)(i,n),a=this._positionChanged(n,e);(s||a)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,s=this._active||[],a=this._getActiveElements(t,s,e,i),r=this._positionChanged(a,t),l=e||!(0,o.ai)(a,s)||r;return l&&(this._active=a,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,i,o){const n=this.options;if("mouseout"===t.type)return[];if(!o)return e;const s=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&s.reverse(),s}_positionChanged(t,e){const{caretX:i,caretY:o,options:n}=this,s=ci[n.position].call(this,t,e);return!1!==s&&(i!==s.x||o!==s.y)}}wi.positioners=ci;var vi={id:"tooltip",_element:wi,positioners:ci,afterInit(t,e,i){i&&(t.tooltip=new wi({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",i))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:o.aF,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,o=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(o>0&&e.dataIndex"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},yi=Object.freeze({__proto__:null,Decimation:Re,Filler:ei,Legend:ni,SubTitle:li,Title:ai,Tooltip:vi});function ki(t,e,i,o){const n=t.indexOf(e);if(-1===n)return((t,e,i,o)=>("string"==typeof e?(i=t.push(e)-1,o.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,o);return n!==t.lastIndexOf(e)?i:n}class Ci extends Y{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:o}of e)t[i]===o&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if((0,o.k)(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:(0,o.E)(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:ki(i,t,(0,o.v)(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:o}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(o=this.getLabels().length-1)),this.min=i,this.max=o}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,o=[];let n=this.getLabels();n=0===t&&e===n.length-1?n:n.slice(t,e+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)o.push({value:i});return o}getLabelForValue(t){const e=this.getLabels();return t>=0&&te.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Pi(t,e,{horizontal:i,minRotation:n}){const s=(0,o.t)(n),a=(i?Math.sin(s):Math.cos(s))||.001,r=.75*e*(""+t).length;return Math.min(e/a,r)}Ci.id="category",Ci.defaults={ticks:{callback:Ci.prototype.getLabelForValue}};class Si extends Y{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return(0,o.k)(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:n,max:s}=this;const a=t=>n=e?n:t,r=t=>s=i?s:t;if(t){const t=(0,o.s)(n),e=(0,o.s)(s);t<0&&e<0?r(0):t>0&&e>0&&a(0)}if(n===s){let e=1;(s>=Number.MAX_SAFE_INTEGER||n<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*s)),r(s+e),t||a(n-e)}this.min=n,this.max=s}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:o}=t;return o?(e=Math.ceil(this.max/o)-Math.floor(this.min/o)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${o} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const n=function(t,e){const i=[],{bounds:n,step:s,min:a,max:r,precision:l,count:c,maxTicks:h,maxDigits:d,includeBounds:u}=t,p=s||1,f=h-1,{min:g,max:m}=e,b=!(0,o.k)(a),_=!(0,o.k)(r),x=!(0,o.k)(c),w=(m-g)/(d+1);let v,y,k,C,P=(0,o.aI)((m-g)/f/p)*p;if(P<1e-14&&!b&&!_)return[{value:g},{value:m}];C=Math.ceil(m/P)-Math.floor(g/P),C>f&&(P=(0,o.aI)(C*P/f/p)*p),(0,o.k)(l)||(v=Math.pow(10,l),P=Math.ceil(P*v)/v),"ticks"===n?(y=Math.floor(g/P)*P,k=Math.ceil(m/P)*P):(y=g,k=m),b&&_&&s&&(0,o.aJ)((r-a)/s,P/1e3)?(C=Math.round(Math.min((r-a)/P,h)),P=(r-a)/C,y=a,k=r):x?(y=b?a:y,k=_?r:k,C=c-1,P=(k-y)/C):(C=(k-y)/P,C=(0,o.aK)(C,Math.round(C),P/1e3)?Math.round(C):Math.ceil(C));const S=Math.max((0,o.aL)(P),(0,o.aL)(y));v=Math.pow(10,(0,o.k)(l)?S:l),y=Math.round(y*v)/v,k=Math.round(k*v)/v;let A=0;for(b&&(u&&y!==a?(i.push({value:a}),y0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=(0,o.g)(t)?Math.max(0,t):null,this.max=(0,o.g)(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,n=this.max;const s=e=>i=t?i:e,a=t=>n=e?n:t,r=(t,e)=>Math.pow(10,Math.floor((0,o.z)(t))+e);i===n&&(i<=0?(s(1),a(10)):(s(r(i,-1)),a(r(n,1)))),i<=0&&s(r(n,-1)),n<=0&&a(r(i,1)),this._zero&&this.min!==this._suggestedMin&&i===r(this.min,0)&&s(r(i,-1)),this.min=i,this.max=n}buildTicks(){const t=this.options,e=function(t,e){const i=Math.floor((0,o.z)(e.max)),n=Math.ceil(e.max/Math.pow(10,i)),s=[];let a=(0,o.B)(t.min,Math.pow(10,Math.floor((0,o.z)(e.min)))),r=Math.floor((0,o.z)(a)),l=Math.floor(a/Math.pow(10,r)),c=r<0?Math.pow(10,Math.abs(r)):1;do{s.push({value:a,major:Mi(a)}),++l,10===l&&(l=1,++r,c=r>=0?1:c),a=Math.round(l*Math.pow(10,r)*c)/c}while(rn?{start:e-i,end:e}:{start:e,end:e+i}}function Li(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),n=[],s=[],a=t._pointLabels.length,r=t.options.pointLabels,l=r.centerPointLabels?o.P/a:0;for(let u=0;ue.r&&(r=(o.end-e.r)/s,t.r=Math.max(t.r,e.r+r)),n.starte.b&&(l=(n.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function Ti(t){return 0===t||180===t?"center":t<180?"left":"right"}function Bi(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function Ii(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}function ji(t,e,i,n){const{ctx:s}=t;if(i)s.arc(t.xCenter,t.yCenter,e,0,o.T);else{let i=t.getPointPosition(0,e);s.moveTo(i.x,i.y);for(let o=1;o{const i=(0,o.C)(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?Li(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,o){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-o)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,o))}getIndexAngle(t){const e=o.T/(this._pointLabels.length||1),i=this.options.startAngle||0;return(0,o.az)(t*e+(0,o.t)(i))}getDistanceFromCenterForValue(t){if((0,o.k)(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if((0,o.k)(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t=0;s--){const e=n.setContext(t.getPointLabelContext(s)),a=(0,o.O)(e.font),{x:r,y:l,textAlign:c,left:h,top:d,right:u,bottom:p}=t._pointLabelItems[s],{backdropColor:f}=e;if(!(0,o.k)(f)){const t=(0,o.ax)(e.borderRadius),n=(0,o.K)(e.backdropPadding);i.fillStyle=f;const s=h-n.left,a=d-n.top,r=u-h+n.width,l=p-d+n.height;Object.values(t).some((t=>0!==t))?(i.beginPath(),(0,o.av)(i,{x:s,y:a,w:r,h:l,radius:t}),i.fill()):i.fillRect(s,a,r,l)}(0,o.M)(i,t._pointLabels[s],r,l+a.lineHeight/2,a,{color:e.color,textAlign:c,textBaseline:"middle"})}}(this,s),n.display&&this.ticks.forEach(((t,e)=>{if(0!==e){r=this.getDistanceFromCenterForValue(t.value);!function(t,e,i,o){const n=t.ctx,s=e.circular,{color:a,lineWidth:r}=e;!s&&!o||!a||!r||i<0||(n.save(),n.strokeStyle=a,n.lineWidth=r,n.setLineDash(e.borderDash),n.lineDashOffset=e.borderDashOffset,n.beginPath(),ji(t,i,s,o),n.closePath(),n.stroke(),n.restore())}(this,n.setContext(this.getContext(e-1)),r,s)}})),i.display){for(t.save(),a=s-1;a>=0;a--){const o=i.setContext(this.getPointLabelContext(a)),{color:n,lineWidth:s}=o;s&&n&&(t.lineWidth=s,t.strokeStyle=n,t.setLineDash(o.borderDash),t.lineDashOffset=o.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(a,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const n=this.getIndexAngle(0);let s,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((n,r)=>{if(0===r&&!e.reverse)return;const l=i.setContext(this.getContext(r)),c=(0,o.O)(l.font);if(s=this.getDistanceFromCenterForValue(this.ticks[r].value),l.showLabelBackdrop){t.font=c.string,a=t.measureText(n.label).width,t.fillStyle=l.backdropColor;const e=(0,o.K)(l.backdropPadding);t.fillRect(-a/2-e.left,-s-c.size/2-e.top,a+e.width,c.size+e.height)}(0,o.M)(t,n.label,0,-s,c,{color:l.color})})),t.restore()}drawTitle(){}}Ri.id="radialLinear",Ri.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:F.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},Ri.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Ri.descriptors={angleLines:{_fallback:"grid"}};const Fi={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},zi=Object.keys(Fi);function Ni(t,e){return t-e}function Vi(t,e){if((0,o.k)(e))return null;const i=t._adapter,{parser:n,round:s,isoWeekday:a}=t._parseOpts;let r=e;return"function"==typeof n&&(r=n(r)),(0,o.g)(r)||(r="string"==typeof n?i.parse(r,n):i.parse(r)),null===r?null:(s&&(r="week"!==s||!(0,o.x)(a)&&!0!==a?i.startOf(r,s):i.startOf(r,"isoWeek",a)),+r)}function Wi(t,e,i,o){const n=zi.length;for(let s=zi.indexOf(t);s=e?i[n]:i[s]]=!0}}else t[e]=!0}function Ui(t,e,i){const o=[],n={},s=e.length;let a,r;for(a=0;a=0&&(e[l].major=!0);return e}(t,o,n,i):o}class Ki extends Y{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const i=t.time||(t.time={}),n=this._adapter=new et._date(t.adapters.date);n.init(e),(0,o.ac)(i.displayFormats,n.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Vi(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:n,max:s,minDefined:a,maxDefined:r}=this.getUserBounds();function l(t){a||isNaN(t.min)||(n=Math.min(n,t.min)),r||isNaN(t.max)||(s=Math.max(s,t.max))}a&&r||(l(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||l(this.getMinMax(!1))),n=(0,o.g)(n)&&!isNaN(n)?n:+e.startOf(Date.now(),i),s=(0,o.g)(s)&&!isNaN(s)?s:+e.endOf(Date.now(),i)+1,this.min=Math.min(n,s-1),this.max=Math.max(n+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,n="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const s=this.min,a=this.max,r=(0,o.aN)(n,s,a);return this._unit=e.unit||(i.autoSkip?Wi(e.minUnit,this.min,this.max,this._getLabelCapacity(s)):function(t,e,i,o,n){for(let s=zi.length-1;s>=zi.indexOf(i);s--){const i=zi[s];if(Fi[i].common&&t._adapter.diff(n,o,i)>=e-1)return i}return zi[i?zi.indexOf(i):0]}(this,r.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=zi.indexOf(t)+1,i=zi.length;e+t.value)))}initOffsets(t){let e,i,n=0,s=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),n=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),s=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=(0,o.E)(n,0,a),s=(0,o.E)(s,0,a),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const t=this._adapter,e=this.min,i=this.max,n=this.options,s=n.time,a=s.unit||Wi(s.minUnit,e,i,this._getLabelCapacity(e)),r=(0,o.v)(s.stepSize,1),l="week"===a&&s.isoWeekday,c=(0,o.x)(l)||!0===l,h={};let d,u,p=e;if(c&&(p=+t.startOf(p,"isoWeek",l)),p=+t.startOf(p,c?"day":a),t.diff(i,e,a)>1e5*r)throw new Error(e+" and "+i+" are too far apart with stepSize of "+r+" "+a);const f="data"===n.ticks.source&&this.getDataTimestamps();for(d=p,u=0;dt-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,n){const s=this.options,a=s.time.displayFormats,r=this._unit,l=this._majorUnit,c=r&&a[r],h=l&&a[l],d=i[e],u=l&&h&&d&&d.major,p=this._adapter.format(t,n||(u?h:c)),f=s.ticks.callback;return f?(0,o.C)(f,[p,e,i],this):p}generateTickLabels(t){let e,i,o;for(e=0,i=t.length;e0?a:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(t=0,e=o.length;t=t[l].pos&&e<=t[c].pos&&({lo:l,hi:c}=(0,o.Z)(t,"pos",e)),({pos:n,time:a}=t[l]),({pos:s,time:r}=t[c])):(e>=t[l].time&&e<=t[c].time&&({lo:l,hi:c}=(0,o.Z)(t,"time",e)),({time:n,pos:a}=t[l]),({time:s,pos:r}=t[c]));const h=s-n;return h?a+(r-a)*(e-n)/h:a}Ki.id="time",Ki.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Yi extends Ki{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=qi(e,this.min),this._tableRange=qi(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,o=[],n=[];let s,a,r,l,c;for(s=0,a=t.length;s=e&&l<=i&&o.push(l);if(o.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(s=0,a=o.length;s{"use strict";function o(){}i.d(e,{$:()=>me,A:()=>z,B:()=>c,C:()=>p,D:()=>Te,E:()=>G,F:()=>K,G:()=>he,H:()=>T,I:()=>tt,J:()=>ue,K:()=>Oe,L:()=>be,M:()=>ve,N:()=>_e,O:()=>Le,P:()=>$,Q:()=>f,R:()=>pt,S:()=>ft,T:()=>D,U:()=>se,V:()=>x,W:()=>C,X:()=>hi,Y:()=>nt,Z:()=>ot,_:()=>ct,a:()=>Ee,a0:()=>Y,a1:()=>ui,a2:()=>ni,a3:()=>gi,a4:()=>dt,a5:()=>fi,a6:()=>oi,a7:()=>ae,a8:()=>S,a9:()=>je,aA:()=>ki,aB:()=>Ci,aC:()=>gt,aD:()=>Pi,aE:()=>ge,aF:()=>o,aG:()=>X,aH:()=>H,aI:()=>F,aJ:()=>W,aK:()=>V,aL:()=>q,aM:()=>de,aN:()=>st,aO:()=>it,aa:()=>Ie,ab:()=>Re,ac:()=>w,ad:()=>n,ae:()=>ut,af:()=>pi,ag:()=>pe,ah:()=>A,ai:()=>g,aj:()=>M,ak:()=>et,al:()=>Me,am:()=>ii,an:()=>Di,ao:()=>$i,ap:()=>bi,aq:()=>_i,ar:()=>mi,as:()=>xe,at:()=>we,au:()=>fe,av:()=>ke,aw:()=>$e,ax:()=>De,ay:()=>Mi,az:()=>J,b:()=>a,c:()=>oe,d:()=>ce,e:()=>vt,f:()=>k,g:()=>l,h:()=>Be,i:()=>r,j:()=>P,k:()=>s,l:()=>rt,m:()=>d,n:()=>u,o:()=>wi,p:()=>Z,q:()=>mt,r:()=>ht,s:()=>R,t:()=>U,u:()=>lt,v:()=>h,w:()=>bt,x:()=>N,y:()=>Xe,z:()=>j});const n=function(){let t=0;return function(){return t++}}();function s(t){return null==t}function a(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function r(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const l=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function c(t,e){return l(t)?t:e}function h(t,e){return void 0===t?e:t}const d=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,u=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function p(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function f(t,e,i,o){let n,s,l;if(a(t))if(s=t.length,o)for(n=s-1;n>=0;n--)e.call(i,t[n],n);else for(n=0;nt,x:t=>t.x,y:t=>t.y};function k(t,e){const i=y[e]||(y[e]=function(t){const e=function(t){const e=t.split("."),i=[];let o="";for(const t of e)o+=t,o.endsWith("\\")?o=o.slice(0,-1)+".":(i.push(o),o="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function C(t){return t.charAt(0).toUpperCase()+t.slice(1)}const P=t=>void 0!==t,S=t=>"function"==typeof t,A=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};function M(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const $=Math.PI,D=2*$,O=D+$,L=Number.POSITIVE_INFINITY,E=$/180,T=$/2,B=$/4,I=2*$/3,j=Math.log10,R=Math.sign;function F(t){const e=Math.round(t);t=V(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(j(t))),o=t/i;return(o<=1?1:o<=2?2:o<=5?5:10)*i}function z(t){const e=[],i=Math.sqrt(t);let o;for(o=1;ot-e)).pop(),e}function N(t){return!isNaN(parseFloat(t))&&isFinite(t)}function V(t,e,i){return Math.abs(t-e)=t}function H(t,e,i){let o,n,s;for(o=0,n=t.length;ol&&c=Math.min(e,i)-o&&t<=Math.max(e,i)+o}function it(t,e,i){i=i||(i=>t[i]1;)o=s+n>>1,i(o)?s=o:n=o;return{lo:s,hi:n}}const ot=(t,e,i,o)=>it(t,i,o?o=>t[o][e]<=i:o=>t[o][e]it(t,i,(o=>t[o][e]>=i));function st(t,e,i){let o=0,n=t.length;for(;oo&&t[n-1]>i;)n--;return o>0||n{const i="_onData"+C(e),o=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const n=o.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"==typeof t[i]&&t[i](...e)})),n}})})))}function lt(t,e){const i=t._chartjs;if(!i)return;const o=i.listeners,n=o.indexOf(e);-1!==n&&o.splice(n,1),o.length>0||(at.forEach((e=>{delete t[e]})),delete t._chartjs)}function ct(t){const e=new Set;let i,o;for(i=0,o=t.length;iArray.prototype.slice.call(t));let n=!1,s=[];return function(...i){s=o(i),n||(n=!0,ht.call(window,(()=>{n=!1,t.apply(e,s)})))}}function ut(t,e){let i;return function(...o){return e?(clearTimeout(i),i=setTimeout(t,e,o)):t.apply(this,o),e}}const pt=t=>"start"===t?"left":"end"===t?"right":"center",ft=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2,gt=(t,e,i,o)=>t===(o?"left":"right")?i:"center"===t?(e+i)/2:e;function mt(t,e,i){const o=e.length;let n=0,s=o;if(t._sorted){const{iScale:a,_parsed:r}=t,l=a.axis,{min:c,max:h,minDefined:d,maxDefined:u}=a.getUserBounds();d&&(n=G(Math.min(ot(r,a.axis,c).lo,i?o:ot(e,l,a.getPixelForValue(c)).lo),0,o-1)),s=u?G(Math.max(ot(r,a.axis,h,!0).hi+1,i?0:ot(e,l,a.getPixelForValue(h),!0).hi+1),n,o)-n:o-n}return{start:n,count:s}}function bt(t){const{xScale:e,yScale:i,_scaleRanges:o}=t,n={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!o)return t._scaleRanges=n,!0;const s=o.xmin!==e.min||o.xmax!==e.max||o.ymin!==i.min||o.ymax!==i.max;return Object.assign(o,n),s}const _t=t=>0===t||1===t,xt=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*D/i),wt=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*D/i)+1,vt={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*T),easeOutSine:t=>Math.sin(t*T),easeInOutSine:t=>-.5*(Math.cos($*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>_t(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>_t(t)?t:xt(t,.075,.3),easeOutElastic:t=>_t(t)?t:wt(t,.075,.3),easeInOutElastic(t){const e=.1125;return _t(t)?t:t<.5?.5*xt(2*t,e,.45):.5+.5*wt(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-vt.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*vt.easeInBounce(2*t):.5*vt.easeOutBounce(2*t-1)+.5};function yt(t){return t+.5|0}const kt=(t,e,i)=>Math.max(Math.min(t,i),e);function Ct(t){return kt(yt(2.55*t),0,255)}function Pt(t){return kt(yt(255*t),0,255)}function St(t){return kt(yt(t/2.55)/100,0,1)}function At(t){return kt(yt(100*t),0,100)}const Mt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},$t=[..."0123456789ABCDEF"],Dt=t=>$t[15&t],Ot=t=>$t[(240&t)>>4]+$t[15&t],Lt=t=>(240&t)>>4==(15&t);function Et(t){var e=(t=>Lt(t.r)&&Lt(t.g)&&Lt(t.b)&&Lt(t.a))(t)?Dt:Ot;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const Tt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Bt(t,e,i){const o=e*Math.min(i,1-i),n=(e,n=(e+t/30)%12)=>i-o*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function It(t,e,i){const o=(o,n=(o+t/60)%6)=>i-i*e*Math.max(Math.min(n,4-n,1),0);return[o(5),o(3),o(1)]}function jt(t,e,i){const o=Bt(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)o[n]*=1-e-i,o[n]+=e;return o}function Rt(t){const e=t.r/255,i=t.g/255,o=t.b/255,n=Math.max(e,i,o),s=Math.min(e,i,o),a=(n+s)/2;let r,l,c;return n!==s&&(c=n-s,l=a>.5?c/(2-n-s):c/(n+s),r=function(t,e,i,o,n){return t===n?(e-i)/o+(e>16&255,s>>8&255,255&s]}return t}(),Ut.transparent=[0,0,0,0]);const e=Ut[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const qt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Yt=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Xt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Qt(t,e,i){if(t){let o=Rt(t);o[e]=Math.max(0,Math.min(o[e]+o[e]*i,0===e?360:1)),o=zt(o),t.r=o[0],t.g=o[1],t.b=o[2]}}function Jt(t,e){return t?Object.assign(e||{},t):t}function Zt(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Pt(t[3]))):(e=Jt(t,{r:0,g:0,b:0,a:1})).a=Pt(e.a),e}function Gt(t){return"r"===t.charAt(0)?function(t){const e=qt.exec(t);let i,o,n,s=255;if(e){if(e[7]!==i){const t=+e[7];s=e[8]?Ct(t):kt(255*t,0,255)}return i=+e[1],o=+e[3],n=+e[5],i=255&(e[2]?Ct(i):kt(i,0,255)),o=255&(e[4]?Ct(o):kt(o,0,255)),n=255&(e[6]?Ct(n):kt(n,0,255)),{r:i,g:o,b:n,a:s}}}(t):Vt(t)}class te{constructor(t){if(t instanceof te)return t;const e=typeof t;let i;var o,n,s;"object"===e?i=Zt(t):"string"===e&&(s=(o=t).length,"#"===o[0]&&(4===s||5===s?n={r:255&17*Mt[o[1]],g:255&17*Mt[o[2]],b:255&17*Mt[o[3]],a:5===s?17*Mt[o[4]]:255}:7!==s&&9!==s||(n={r:Mt[o[1]]<<4|Mt[o[2]],g:Mt[o[3]]<<4|Mt[o[4]],b:Mt[o[5]]<<4|Mt[o[6]],a:9===s?Mt[o[7]]<<4|Mt[o[8]]:255})),i=n||Kt(t)||Gt(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Jt(this._rgb);return t&&(t.a=St(t.a)),t}set rgb(t){this._rgb=Zt(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${St(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?Et(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Rt(t),i=e[0],o=At(e[1]),n=At(e[2]);return t.a<255?`hsla(${i}, ${o}%, ${n}%, ${St(t.a)})`:`hsl(${i}, ${o}%, ${n}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,o=t.rgb;let n;const s=e===n?.5:e,a=2*s-1,r=i.a-o.a,l=((a*r==-1?a:(a+r)/(1+a*r))+1)/2;n=1-l,i.r=255&l*i.r+n*o.r+.5,i.g=255&l*i.g+n*o.g+.5,i.b=255&l*i.b+n*o.b+.5,i.a=s*i.a+(1-s)*o.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const o=Xt(St(t.r)),n=Xt(St(t.g)),s=Xt(St(t.b));return{r:Pt(Yt(o+i*(Xt(St(e.r))-o))),g:Pt(Yt(n+i*(Xt(St(e.g))-n))),b:Pt(Yt(s+i*(Xt(St(e.b))-s))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new te(this.rgb)}alpha(t){return this._rgb.a=Pt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=yt(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Qt(this._rgb,2,t),this}darken(t){return Qt(this._rgb,2,-t),this}saturate(t){return Qt(this._rgb,1,t),this}desaturate(t){return Qt(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=Rt(t);i[0]=Nt(i[0]+e),i=zt(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function ee(t){return new te(t)}function ie(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function oe(t){return ie(t)?t:ee(t)}function ne(t){return ie(t)?t:ee(t).saturate(.5).darken(.1).hexString()}const se=Object.create(null),ae=Object.create(null);function re(t,e){if(!e)return t;const i=e.split(".");for(let e=0,o=i.length;et.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>ne(e.backgroundColor),this.hoverBorderColor=(t,e)=>ne(e.borderColor),this.hoverColor=(t,e)=>ne(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return le(this,t,e)}get(t){return re(this,t)}describe(t,e){return le(ae,t,e)}override(t,e){return le(se,t,e)}route(t,e,i,o){const n=re(this,t),s=re(this,i),a="_"+e;Object.defineProperties(n,{[a]:{value:n[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=s[o];return r(t)?Object.assign({},e,t):h(t,e)},set(t){this[a]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function he(t,e,i,o,n){let s=e[n];return s||(s=e[n]=t.measureText(n).width,i.push(n)),s>o&&(o=s),o}function de(t,e,i,o){let n=(o=o||{}).data=o.data||{},s=o.garbageCollect=o.garbageCollect||[];o.font!==e&&(n=o.data={},s=o.garbageCollect=[],o.font=e),t.save(),t.font=e;let r=0;const l=i.length;let c,h,d,u,p;for(c=0;ci.length){for(c=0;c0&&t.stroke()}}function me(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.xe.top-i&&t.y0&&""!==r.strokeColor;let h,d;for(t.save(),t.font=n.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);s(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,r),h=0;h+t||0;function Me(t,e){const i={},o=r(e),n=o?Object.keys(e):e,s=r(t)?o?i=>h(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of n)i[t]=Ae(s(t));return i}function $e(t){return Me(t,{top:"y",right:"x",bottom:"y",left:"x"})}function De(t){return Me(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Oe(t){const e=$e(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Le(t,e){t=t||{},e=e||ce.font;let i=h(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let o=h(t.style,e.style);o&&!(""+o).match(Pe)&&(console.warn('Invalid font style specified: "'+o+'"'),o="");const n={family:h(t.family,e.family),lineHeight:Se(h(t.lineHeight,e.lineHeight),i),size:i,style:o,weight:h(t.weight,e.weight),string:""};return n.string=function(t){return!t||s(t.size)||s(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(n),n}function Ee(t,e,i,o){let n,s,r,l=!0;for(n=0,s=t.length;ni&&0===t?0:t+e;return{min:a(o,-Math.abs(s)),max:a(n,s)}}function Be(t,e){return Object.assign(Object.create(t),e)}function Ie(t,e=[""],i=t,o,n=()=>t[0]){P(o)||(o=qe("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:o,_getTarget:n,override:n=>Ie([n,...t],e,i,o)};return new Proxy(s,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,o)=>Ne(i,o,(()=>function(t,e,i,o){let n;for(const s of e)if(n=qe(Fe(s,t),i),P(n))return ze(t,n)?Ue(i,o,t,n):n}(o,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ye(t).includes(e),ownKeys:t=>Ye(t),set(t,e,i){const o=t._storage||(t._storage=n());return t[e]=o[e]=i,delete t._keys,!0}})}function je(t,e,i,o){const n={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Re(t,o),setContext:e=>je(t,e,i,o),override:n=>je(t.override(n),e,i,o)};return new Proxy(n,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Ne(t,e,(()=>function(t,e,i){const{_proxy:o,_context:n,_subProxy:s,_descriptors:l}=t;let c=o[e];S(c)&&l.isScriptable(e)&&(c=function(t,e,i,o){const{_proxy:n,_context:s,_subProxy:a,_stack:r}=i;if(r.has(t))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+t);r.add(t),e=e(s,a||o),r.delete(t),ze(t,e)&&(e=Ue(n._scopes,n,t,e));return e}(e,c,t,i));a(c)&&c.length&&(c=function(t,e,i,o){const{_proxy:n,_context:s,_subProxy:a,_descriptors:l}=i;if(P(s.index)&&o(t))e=e[s.index%e.length];else if(r(e[0])){const i=e,o=n._scopes.filter((t=>t!==i));e=[];for(const r of i){const i=Ue(o,n,t,r);e.push(je(i,s,a&&a[t],l))}}return e}(e,c,t,l.isIndexable));ze(e,c)&&(c=je(c,n,s&&s[e],l));return c}(t,e,i))),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,o)=>(t[i]=o,delete e[i],!0)})}function Re(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:o=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:i,indexable:o,isScriptable:S(i)?i:()=>i,isIndexable:S(o)?o:()=>o}}const Fe=(t,e)=>t?t+C(e):e,ze=(t,e)=>r(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ne(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const o=i();return t[e]=o,o}function Ve(t,e,i){return S(t)?t(e,i):t}const We=(t,e)=>!0===t?e:"string"==typeof t?k(e,t):void 0;function He(t,e,i,o,n){for(const s of e){const e=We(i,s);if(e){t.add(e);const s=Ve(e._fallback,i,n);if(P(s)&&s!==i&&s!==o)return s}else if(!1===e&&P(o)&&i!==o)return null}return!1}function Ue(t,e,i,o){const n=e._rootScopes,s=Ve(e._fallback,i,o),l=[...t,...n],c=new Set;c.add(o);let h=Ke(c,l,i,s||i,o);return null!==h&&((!P(s)||s===i||(h=Ke(c,l,s,h,o),null!==h))&&Ie(Array.from(c),[""],n,s,(()=>function(t,e,i){const o=t._getTarget();e in o||(o[e]={});const n=o[e];if(a(n)&&r(i))return i;return n}(e,i,o))))}function Ke(t,e,i,o,n){for(;i;)i=He(t,e,i,o,n);return i}function qe(t,e){for(const i of e){if(!i)continue;const e=i[t];if(P(e))return e}}function Ye(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Xe(t,e,i,o){const{iScale:n}=t,{key:s="r"}=this._parsing,a=new Array(o);let r,l,c,h;for(r=0,l=o;re"x"===t?"y":"x";function Ge(t,e,i,o){const n=t.skip?e:t,s=e,a=i.skip?e:i,r=X(s,n),l=X(a,s);let c=r/(r+l),h=l/(r+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const d=o*c,u=o*h;return{previous:{x:s.x-d*(a.x-n.x),y:s.y-d*(a.y-n.y)},next:{x:s.x+u*(a.x-n.x),y:s.y+u*(a.y-n.y)}}}function ti(t,e="x"){const i=Ze(e),o=t.length,n=Array(o).fill(0),s=Array(o);let a,r,l,c=Je(t,0);for(a=0;a!t.skip))),"monotone"===e.cubicInterpolationMode)ti(t,n);else{let i=o?t[t.length-1]:t[0];for(s=0,a=t.length;swindow.getComputedStyle(t,null);const ri=["top","right","bottom","left"];function li(t,e,i){const o={};i=i?"-"+i:"";for(let n=0;n<4;n++){const s=ri[n];o[s]=parseFloat(t[e+"-"+s+i])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}const ci=(t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot);function hi(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:o}=e,n=ai(i),s="border-box"===n.boxSizing,a=li(n,"padding"),r=li(n,"border","width"),{x:l,y:c,box:h}=function(t,e){const i=t.touches,o=i&&i.length?i[0]:t,{offsetX:n,offsetY:s}=o;let a,r,l=!1;if(ci(n,s,t.target))a=n,r=s;else{const t=e.getBoundingClientRect();a=o.clientX-t.left,r=o.clientY-t.top,l=!0}return{x:a,y:r,box:l}}(t,i),d=a.left+(h&&r.left),u=a.top+(h&&r.top);let{width:p,height:f}=e;return s&&(p-=a.width+r.width,f-=a.height+r.height),{x:Math.round((l-d)/p*i.width/o),y:Math.round((c-u)/f*i.height/o)}}const di=t=>Math.round(10*t)/10;function ui(t,e,i,o){const n=ai(t),s=li(n,"margin"),a=si(n.maxWidth,t,"clientWidth")||L,r=si(n.maxHeight,t,"clientHeight")||L,l=function(t,e,i){let o,n;if(void 0===e||void 0===i){const s=ni(t);if(s){const t=s.getBoundingClientRect(),a=ai(s),r=li(a,"border","width"),l=li(a,"padding");e=t.width-l.width-r.width,i=t.height-l.height-r.height,o=si(a.maxWidth,s,"clientWidth"),n=si(a.maxHeight,s,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:o||L,maxHeight:n||L}}(t,e,i);let{width:c,height:h}=l;if("content-box"===n.boxSizing){const t=li(n,"border","width"),e=li(n,"padding");c-=e.width+t.width,h-=e.height+t.height}return c=Math.max(0,c-s.width),h=Math.max(0,o?Math.floor(c/o):h-s.height),c=di(Math.min(c,a,l.maxWidth)),h=di(Math.min(h,r,l.maxHeight)),c&&!h&&(h=di(c/2)),{width:c,height:h}}function pi(t,e,i){const o=e||1,n=Math.floor(t.height*o),s=Math.floor(t.width*o);t.height=n/o,t.width=s/o;const a=t.canvas;return a.style&&(i||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==o||a.height!==n||a.width!==s)&&(t.currentDevicePixelRatio=o,a.height=n,a.width=s,t.ctx.setTransform(o,0,0,o,0,0),!0)}const fi=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function gi(t,e){const i=function(t,e){return ai(t).getPropertyValue(e)}(t,e),o=i&&i.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function mi(t,e,i,o){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function bi(t,e,i,o){return{x:t.x+i*(e.x-t.x),y:"middle"===o?i<.5?t.y:e.y:"after"===o?i<1?t.y:e.y:i>0?e.y:t.y}}function _i(t,e,i,o){const n={x:t.cp2x,y:t.cp2y},s={x:e.cp1x,y:e.cp1y},a=mi(t,n,i),r=mi(n,s,i),l=mi(s,e,i),c=mi(a,r,i),h=mi(r,l,i);return mi(c,h,i)}const xi=new Map;function wi(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let o=xi.get(i);return o||(o=new Intl.NumberFormat(t,e),xi.set(i,o)),o}(e,i).format(t)}const vi=function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}},yi=function(){return{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}};function ki(t,e,i){return t?vi(e,i):yi()}function Ci(t,e){let i,o;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,o=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=o)}function Pi(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Si(t){return"angle"===t?{between:Z,compare:Q,normalize:J}:{between:et,compare:(t,e)=>t-e,normalize:t=>t}}function Ai({start:t,end:e,count:i,loop:o,style:n}){return{start:t%i,end:e%i,loop:o&&(e-t+1)%i==0,style:n}}function Mi(t,e,i){if(!i)return[t];const{property:o,start:n,end:s}=i,a=e.length,{compare:r,between:l,normalize:c}=Si(o),{start:h,end:d,loop:u,style:p}=function(t,e,i){const{property:o,start:n,end:s}=i,{between:a,normalize:r}=Si(o),l=e.length;let c,h,{start:d,end:u,loop:p}=t;if(p){for(d+=l,u+=l,c=0,h=l;c_||l(n,b,g)&&0!==r(n,b),v=()=>!_||0===r(s,g)||l(s,b,g);for(let t=h,i=h;t<=d;++t)m=e[t%a],m.skip||(g=c(m[o]),g!==b&&(_=l(g,n,s),null===x&&w()&&(x=0===r(g,n)?t:i),null!==x&&v()&&(f.push(Ai({start:x,end:t,loop:u,count:a,style:p})),x=null),i=t,b=g));return null!==x&&f.push(Ai({start:x,end:d,loop:u,count:a,style:p})),f}function $i(t,e){const i=[],o=t.segments;for(let n=0;nn&&t[s%e].skip;)s--;return s%=e,{start:n,end:s}}(i,n,s,o);if(!0===o)return Oi(t,[{start:a,end:r,loop:s}],i,e);return Oi(t,function(t,e,i,o){const n=t.length,s=[];let a,r=e,l=t[e];for(a=e+1;a<=i;++a){const i=t[a%n];i.skip||i.stop?l.skip||(o=!1,s.push({start:e%n,end:(a-1)%n,loop:o}),e=r=i.stop?a:null):(r=a,l.skip&&(e=a)),l=i}return null!==r&&s.push({start:e%n,end:r%n,loop:o}),s}(i,a,r{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var i in e)__webpack_require__.o(e,i)&&!__webpack_require__.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var __webpack_exports__={};(()=>{"use strict";var t=__webpack_require__(133),e=__webpack_require__(237),i=__webpack_require__(61),o={class:"h-6 mb-4 flex items-center"},n={class:"mr-3 leading-tight text-sm font-bold"},s={class:"flex relative ml-auto flex-shrink-0"},a=["value"];var r=__webpack_require__(241),l=__webpack_require__(262);const c=(0,l.A)(r.A,[["render",function(t,e,r,l,c,h){var d=(0,i.resolveComponent)("icon-refresh"),u=(0,i.resolveComponent)("default-button"),p=(0,i.resolveComponent)("icon-external-link"),f=(0,i.resolveComponent)("select-control"),g=(0,i.resolveComponent)("line-chart"),m=(0,i.resolveComponent)("loading-card");return(0,i.openBlock)(),(0,i.createBlock)(m,{loading:c.loading,class:"min-h-40 px-6 py-4"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",o,[(0,i.createElementVNode)("h4",n,(0,i.toDisplayString)(h.checkTitle),1),(0,i.createElementVNode)("div",s,[(0,i.withDirectives)((0,i.createVNode)(u,{size:"xs",class:"mr-2",onClick:e[0]||(e[0]=function(t){return h.fillData()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(d)]})),_:1},512),[[i.vShow,c.buttonRefresh]]),(0,i.withDirectives)((0,i.createVNode)(u,{size:"xs",class:"mr-2",onClick:e[1]||(e[1]=function(t){return h.reloadPage()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(d)]})),_:1},512),[[i.vShow,c.buttonReload]]),(0,i.withDirectives)((0,i.createVNode)(u,{size:"xs",class:"mr-2",component:"a",href:c.externalLink,target:c.externalLinkIn},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(p)]})),_:1},8,["href","target"]),[[i.vShow,c.btnExtLink]]),(0,i.withDirectives)((0,i.createVNode)(f,{size:"xxs",onChange:h.handleFilterChanged,selected:c.advanceFilterSelected},{default:(0,i.withCtx)((function(){return[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(c.advanceFilter,(function(t){return(0,i.openBlock)(),(0,i.createElementBlock)("option",{value:t.value,key:t.key},(0,i.toDisplayString)(t.text),9,a)})),128))]})),_:1},8,["onChange","selected"]),[[i.vShow,c.showAdvanceFilter]])])]),c.loading?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createBlock)(g,{key:0,"chart-data":c.datacollection,options:c.options},null,8,["chart-data","options"]))]})),_:1},8,["loading"])}]]);var h={class:"h-6 mb-4 flex items-center"},d={class:"mr-3 leading-tight text-sm font-bold"},u={class:"flex relative ml-auto flex-shrink-0"},p=["value"];var f=__webpack_require__(357);const g=(0,l.A)(f.A,[["render",function(t,e,o,n,s,a){var r=(0,i.resolveComponent)("icon-refresh"),l=(0,i.resolveComponent)("default-button"),c=(0,i.resolveComponent)("icon-external-link"),f=(0,i.resolveComponent)("select-control"),g=(0,i.resolveComponent)("line-chart"),m=(0,i.resolveComponent)("loading-card");return(0,i.openBlock)(),(0,i.createBlock)(m,{loading:s.loading,class:"min-h-40 px-6 py-4"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",h,[(0,i.createElementVNode)("h4",d,(0,i.toDisplayString)(a.checkTitle),1),(0,i.createElementVNode)("div",u,[(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[0]||(e[0]=function(t){return a.fillData()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonRefresh]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[1]||(e[1]=function(t){return a.reloadPage()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonReload]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",component:"a",href:s.externalLink,target:s.externalLinkIn},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(c)]})),_:1},8,["href","target"]),[[i.vShow,s.btnExtLink]]),(0,i.withDirectives)((0,i.createVNode)(f,{size:"xxs",onChange:a.handleFilterChanged,selected:s.advanceFilterSelected},{default:(0,i.withCtx)((function(){return[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(s.advanceFilter,(function(t){return(0,i.openBlock)(),(0,i.createElementBlock)("option",{value:t.value,key:t.key},(0,i.toDisplayString)(t.text),9,p)})),128))]})),_:1},8,["onChange","selected"]),[[i.vShow,s.showAdvanceFilter]])])]),s.loading?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createBlock)(g,{key:0,"chart-data":s.datacollection,options:s.options},null,8,["chart-data","options"]))]})),_:1},8,["loading"])}]]);var m={class:"h-6 mb-4 flex items-center"},b={class:"mr-3 leading-tight text-sm font-bold"},_={class:"flex relative ml-auto flex-shrink-0"},x=["value"];var w=__webpack_require__(3);const v=(0,l.A)(w.A,[["render",function(t,e,o,n,s,a){var r=(0,i.resolveComponent)("icon-refresh"),l=(0,i.resolveComponent)("default-button"),c=(0,i.resolveComponent)("icon-external-link"),h=(0,i.resolveComponent)("select-control"),d=(0,i.resolveComponent)("line-chart"),u=(0,i.resolveComponent)("loading-card");return(0,i.openBlock)(),(0,i.createBlock)(u,{loading:s.loading,class:"min-h-40 px-6 py-4"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",m,[(0,i.createElementVNode)("h4",b,(0,i.toDisplayString)(a.checkTitle),1),(0,i.createElementVNode)("div",_,[(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[0]||(e[0]=function(t){return a.fillData()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonRefresh]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[1]||(e[1]=function(t){return a.reloadPage()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonReload]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",component:"a",href:s.externalLink,target:s.externalLinkIn},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(c)]})),_:1},8,["href","target"]),[[i.vShow,s.btnExtLink]]),(0,i.withDirectives)((0,i.createVNode)(h,{size:"xxs",onChange:a.handleFilterChanged,selected:s.advanceFilterSelected},{default:(0,i.withCtx)((function(){return[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(s.advanceFilter,(function(t){return(0,i.openBlock)(),(0,i.createElementBlock)("option",{value:t.value,key:t.key},(0,i.toDisplayString)(t.text),9,x)})),128))]})),_:1},8,["onChange","selected"]),[[i.vShow,s.showAdvanceFilter]])])]),s.loading?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createBlock)(d,{key:0,"chart-data":s.datacollection,options:s.options},null,8,["chart-data","options"]))]})),_:1},8,["loading"])}]]);var y={class:"h-6 mb-4 flex items-center"},k={class:"mr-3 leading-tight text-sm font-bold"},C={class:"flex relative ml-auto flex-shrink-0"},P=["value"];var S=__webpack_require__(444);const A=(0,l.A)(S.A,[["render",function(t,e,o,n,s,a){var r=(0,i.resolveComponent)("icon-refresh"),l=(0,i.resolveComponent)("default-button"),c=(0,i.resolveComponent)("icon-external-link"),h=(0,i.resolveComponent)("select-control"),d=(0,i.resolveComponent)("line-chart"),u=(0,i.resolveComponent)("loading-card");return(0,i.openBlock)(),(0,i.createBlock)(u,{loading:s.loading,class:"min-h-40 px-6 py-4"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",y,[(0,i.createElementVNode)("h4",k,(0,i.toDisplayString)(a.checkTitle),1),(0,i.createElementVNode)("div",C,[(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[0]||(e[0]=function(t){return a.fillData()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonRefresh]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[1]||(e[1]=function(t){return a.reloadPage()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonReload]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",component:"a",href:s.externalLink,target:s.externalLinkIn},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(c)]})),_:1},8,["href","target"]),[[i.vShow,s.btnExtLink]]),(0,i.withDirectives)((0,i.createVNode)(h,{size:"xxs",onChange:a.handleFilterChanged,selected:s.advanceFilterSelected},{default:(0,i.withCtx)((function(){return[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(s.advanceFilter,(function(t){return(0,i.openBlock)(),(0,i.createElementBlock)("option",{value:t.value,key:t.key},(0,i.toDisplayString)(t.text),9,P)})),128))]})),_:1},8,["onChange","selected"]),[[i.vShow,s.showAdvanceFilter]])])]),s.loading?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createBlock)(d,{key:0,"chart-data":s.datacollection,options:s.options},null,8,["chart-data","options"]))]})),_:1},8,["loading"])}]]);var M={class:"h-6 mb-4 flex items-center"},$={class:"mr-3 leading-tight text-sm font-bold"},D={class:"flex relative ml-auto flex-shrink-0"},O=["value"];var L=__webpack_require__(718);const E=(0,l.A)(L.A,[["render",function(t,e,o,n,s,a){var r=(0,i.resolveComponent)("icon-refresh"),l=(0,i.resolveComponent)("default-button"),c=(0,i.resolveComponent)("icon-external-link"),h=(0,i.resolveComponent)("select-control"),d=(0,i.resolveComponent)("line-chart"),u=(0,i.resolveComponent)("loading-card");return(0,i.openBlock)(),(0,i.createBlock)(u,{loading:s.loading,class:"min-h-40 px-6 py-4"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",M,[(0,i.createElementVNode)("h4",$,(0,i.toDisplayString)(a.checkTitle),1),(0,i.createElementVNode)("div",D,[(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[0]||(e[0]=function(t){return a.fillData()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonRefresh]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[1]||(e[1]=function(t){return a.reloadPage()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonReload]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",component:"a",href:s.externalLink,target:s.externalLinkIn},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(c)]})),_:1},8,["href","target"]),[[i.vShow,s.btnExtLink]]),(0,i.withDirectives)((0,i.createVNode)(h,{size:"xxs",onChange:a.handleFilterChanged,selected:s.advanceFilterSelected},{default:(0,i.withCtx)((function(){return[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(s.advanceFilter,(function(t){return(0,i.openBlock)(),(0,i.createElementBlock)("option",{value:t.value,key:t.key},(0,i.toDisplayString)(t.text),9,O)})),128))]})),_:1},8,["onChange","selected"]),[[i.vShow,s.showAdvanceFilter]])])]),s.loading?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createBlock)(d,{key:0,"chart-data":s.datacollection,options:s.options},null,8,["chart-data","options"]))]})),_:1},8,["loading"])}]]);var T={class:"h-6 mb-4 flex items-center"},B={class:"mr-3 leading-tight text-sm font-bold"},I={class:"flex relative ml-auto flex-shrink-0"},j=["value"];var R=__webpack_require__(461);const F=(0,l.A)(R.A,[["render",function(t,e,o,n,s,a){var r=(0,i.resolveComponent)("icon-refresh"),l=(0,i.resolveComponent)("default-button"),c=(0,i.resolveComponent)("icon-external-link"),h=(0,i.resolveComponent)("select-control"),d=(0,i.resolveComponent)("line-chart"),u=(0,i.resolveComponent)("loading-card");return(0,i.openBlock)(),(0,i.createBlock)(u,{loading:s.loading,class:"min-h-40 px-6 py-4"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",T,[(0,i.createElementVNode)("h4",B,(0,i.toDisplayString)(a.checkTitle),1),(0,i.createElementVNode)("div",I,[(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[0]||(e[0]=function(t){return a.fillData()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonRefresh]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[1]||(e[1]=function(t){return a.reloadPage()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonReload]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",component:"a",href:s.externalLink,target:s.externalLinkIn},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(c)]})),_:1},8,["href","target"]),[[i.vShow,s.btnExtLink]]),(0,i.withDirectives)((0,i.createVNode)(h,{size:"xxs",onChange:a.handleFilterChanged,selected:s.advanceFilterSelected},{default:(0,i.withCtx)((function(){return[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(s.advanceFilter,(function(t){return(0,i.openBlock)(),(0,i.createElementBlock)("option",{value:t.value,key:t.key},(0,i.toDisplayString)(t.text),9,j)})),128))]})),_:1},8,["onChange","selected"]),[[i.vShow,s.showAdvanceFilter]])])]),s.loading?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createBlock)(d,{key:0,"chart-data":s.datacollection,options:s.options},null,8,["chart-data","options"]))]})),_:1},8,["loading"])}]]);var z={class:"h-6 mb-4 flex items-center pb-0"},N={class:"mr-3 leading-tight text-sm font-bold"},V={class:"flex relative ml-auto flex-shrink-0"};var W=__webpack_require__(450);const H=(0,l.A)(W.A,[["render",function(t,e,o,n,s,a){var r=(0,i.resolveComponent)("icon-refresh"),l=(0,i.resolveComponent)("default-button"),c=(0,i.resolveComponent)("icon-external-link"),h=(0,i.resolveComponent)("line-chart"),d=(0,i.resolveComponent)("loading-card");return(0,i.openBlock)(),(0,i.createBlock)(d,{loading:s.loading,class:"min-h-40 px-6 py-4"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",z,[(0,i.createElementVNode)("h4",N,(0,i.toDisplayString)(a.checkTitle),1),(0,i.createElementVNode)("div",V,[(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[0]||(e[0]=function(t){return a.fillData()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonRefresh]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[1]||(e[1]=function(t){return a.reloadPage()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonReload]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",component:"a",href:s.externalLink,target:s.externalLinkIn},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(c)]})),_:1},8,["href","target"]),[[i.vShow,s.btnExtLink]])])]),s.loading?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createBlock)(h,{key:0,"chart-data":s.datacollection,options:s.options},null,8,["chart-data","options"]))]})),_:1},8,["loading"])}]]);function U(t){return function(t){if(Array.isArray(t))return K(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return K(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?K(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,o=Array(e);i{var __webpack_modules__={357:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _bar_chart__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(898),_Icons_IconRefresh__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(23),_Icons_IconExternalLink__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(271),_excluded=["linkTo"],_excluded2=["linkTo"];function _typeof(t){return _typeof="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},_typeof(t)}function _objectWithoutProperties(t,e){if(null==t)return{};var i,o,n=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o=1e9?(t/1e9).toFixed(1).replace(/\.0$/,"")+"G":t>=1e6?(t/1e6).toFixed(1).replace(/\.0$/,"")+"M":t>=1e3?(t/1e3).toFixed(1).replace(/\.0$/,"")+"K":t}})}),xAxes:_objectSpread(_objectSpread({},(null===(_this$card$options$sc4=this.card.options.scales)||void 0===_this$card$options$sc4?void 0:_this$card$options$sc4.xAxes)||{}),{},{ticks:_objectSpread(_objectSpread({},(null===(_this$card$options$sc5=this.card.options.scales)||void 0===_this$card$options$sc5||null===(_this$card$options$sc5=_this$card$options$sc5.xAxes)||void 0===_this$card$options$sc5?void 0:_this$card$options$sc5.ticks)||{}),{},{font:_objectSpread({lineHeight:.8,size:10},(null===(_this$card$options$sc6=this.card.options.scales)||void 0===_this$card$options$sc6||null===(_this$card$options$sc6=_this$card$options$sc6.xAxes)||void 0===_this$card$options$sc6||null===(_this$card$options$sc6=_this$card$options$sc6.ticks)||void 0===_this$card$options$sc6?void 0:_this$card$options$sc6.font)||{})})})}),responsive:!0,maintainAspectRatio:!1,plugins:_objectSpread({legend:this.chartLegend},this.chartPlugins)}),void 0!==this.chartTooltips){this.options.plugins.tooltip=this.chartTooltips;for(var tooltiplist=["custom","itemSort","filter"],z=0;z0){var i=e[0].datasetLabel,o=e[0].label,n=this.data.datasets[e[0].datasetIndex].data[e[0].index],s=null!=sweetAlertWithLink.linkTo?sweetAlertWithLink.linkTo:"https://coroo.github.io/nova-chartjs/",a=(sweetAlertWithLink.linkTo,_objectWithoutProperties(sweetAlertWithLink,_excluded));__webpack_require__(465).fire(_objectSpread({title:null!=a.title?a.title:""+n+"",icon:null!=a.icon?a.icon:"info",html:null!=a.html?a.html:null==i?"You can see detail by click below button:":""+i+" in "+o+"
    ",showCloseButton:null==a.showCloseButton||a.showCloseButton,showCancelButton:null==a.showCancelButton||a.showCancelButton,focusConfirm:null!=a.focusConfirm&&a.focusConfirm,confirmButtonText:null!=a.confirmButtonText?a.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=a.confirmButtonAriaLabel?a.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=a.cancelButtonAriaLabel?a.cancelButtonAriaLabel:"Cancel",footer:null!=a.footer?a.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},a)).then((function(t){t.value&&(window.location=s)}))}})}else 1==this.showAdvanceFilter&&(this.card.options.advanceFilterSelected=null!=this.advanceFilterSelected&&this.advanceFilterSelected),this.loading=!0,Nova.request().get("/nova-vendor/coroowicaksono/check-data/endpoint",{params:{model:this.card.model,series:this.card.series,options:this.card.options,join:this.card.join,col_xaxis:this.card.col_xaxis,expires:0}}).then((function(t){var e=t.data;_this.datacollection={labels:e.dataset.xAxis,datasets:e.dataset.yAxis},_this.loading=!1;var i=_this.sweetAlert;null!=i&&(_this.options.onClick=function(t,e){if(e.length>0){var o=e[0].datasetLabel,n=e[0].label,s=this.data.datasets[e[0].datasetIndex].data[e[0].index],a=null!=i.linkTo?i.linkTo:"https://coroo.github.io/nova-chartjs/",r=(i.linkTo,_objectWithoutProperties(i,_excluded2));__webpack_require__(465).fire(_objectSpread({title:null!=r.title?r.title:""+s+"",icon:null!=r.icon?r.icon:"info",html:null!=r.html?r.html:null==o?"You can see detail by click below button:":""+o+" in "+n+"
    ",showCloseButton:null==r.showCloseButton||r.showCloseButton,showCancelButton:null==r.showCancelButton||r.showCancelButton,focusConfirm:null!=r.focusConfirm&&r.focusConfirm,confirmButtonText:null!=r.confirmButtonText?r.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=r.confirmButtonAriaLabel?r.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=r.cancelButtonAriaLabel?r.cancelButtonAriaLabel:"Cancel",footer:null!=r.footer?r.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},r)).then((function(t){t.value&&(window.location=a)}))}})})).catch((function(t){var e=t.response;_this.errors=e.data.errors,_this.loading=!1}))}}}},444:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _doughnut_chart_vue__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(306),_Icons_IconRefresh__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(23),_Icons_IconExternalLink__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(271),_excluded=["linkTo"],_excluded2=["linkTo"];function _typeof(t){return _typeof="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},_typeof(t)}function _objectWithoutProperties(t,e){if(null==t)return{};var i,o,n=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o0){e[0].datasetLabel;var i,o=e[0].label,n=this.data.datasets[e[0].datasetIndex].data[e[0].index],s=null!=sweetAlertWithLink.linkTo?sweetAlertWithLink.linkTo:"https://coroo.github.io/nova-chartjs/",a=(sweetAlertWithLink.linkTo,_objectWithoutProperties(sweetAlertWithLink,_excluded)),r=n/(i=this.data.datasets[0].data.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0))*100;__webpack_require__(465).fire(_objectSpread({title:null!=a.title?a.title:""+o+"",icon:null!=a.icon?a.icon:"info",html:null!=a.html?a.html:"Percentage: "+r.toFixed(2)+"%
    "+n+" data from "+i+"
    ",showCloseButton:null==a.showCloseButton||a.showCloseButton,showCancelButton:null==a.showCancelButton||a.showCancelButton,focusConfirm:null!=a.focusConfirm&&a.focusConfirm,confirmButtonText:null!=a.confirmButtonText?a.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=a.confirmButtonAriaLabel?a.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=a.cancelButtonAriaLabel?a.cancelButtonAriaLabel:"Cancel",footer:null!=a.footer?a.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},a)).then((function(t){t.value&&(window.location=s)}))}}),null!=this.card.options.showPercentage&&1==this.card.options.showPercentage){var _this$options$plugins2,dataArr=this.card.series[0].data,sum=dataArr.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0);this.options.plugins.tooltip={callbacks:_objectSpread(_objectSpread({},(null===(_this$options$plugins2=this.options.plugins)||void 0===_this$options$plugins2||null===(_this$options$plugins2=_this$options$plugins2.tooltip)||void 0===_this$options$plugins2?void 0:_this$options$plugins2.callbacks)||{}),{},{label:function(t){return t.label+": "+t.raw+" ("+(100*t.raw/sum).toFixed(2)+"%)"}})}}}else 1==this.showAdvanceFilter&&(this.card.options.advanceFilterSelected=null!=this.advanceFilterSelected&&this.advanceFilterSelected),this.loading=!0,Nova.request().get("/nova-vendor/coroowicaksono/check-data/circle-endpoint",{params:{model:this.card.model,series:this.card.series,options:this.card.options,join:this.card.join,col_xaxis:this.card.col_xaxis,expires:0}}).then((function(t){var e=t.data;_this.datacollection={labels:e.dataset.xAxis,datasets:e.dataset.yAxis},_this.loading=!1;var i=_this.sweetAlert;if(null!=i&&(_this.options.onClick=function(t,e){if(e.length>0){e[0].datasetLabel;var o,n=e[0].label,s=this.data.datasets[e[0].datasetIndex].data[e[0].index],a=null!=i.linkTo?i.linkTo:"https://coroo.github.io/nova-chartjs/",r=(i.linkTo,_objectWithoutProperties(i,_excluded2)),l=s/(o=this.data.datasets[0].data.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0))*100;__webpack_require__(465).fire(_objectSpread({title:null!=r.title?r.title:""+n+"",icon:null!=r.icon?r.icon:"info",html:null!=r.html?r.html:"Percentage: "+l.toFixed(2)+"%
    "+s+" data from "+o+"
    ",showCloseButton:null==r.showCloseButton||r.showCloseButton,showCancelButton:null==r.showCancelButton||r.showCancelButton,focusConfirm:null!=r.focusConfirm&&r.focusConfirm,confirmButtonText:null!=r.confirmButtonText?r.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=r.confirmButtonAriaLabel?r.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=r.cancelButtonAriaLabel?r.cancelButtonAriaLabel:"Cancel",footer:null!=r.footer?r.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},r)).then((function(t){t.value&&(window.location=a)}))}}),null!=_this.card.options.showPercentage&&1==_this.card.options.showPercentage){var o,n=e.dataset.yAxis[0].data.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0);_this.options.plugins.tooltip={callbacks:_objectSpread(_objectSpread({},(null===(o=_this.options.plugins)||void 0===o||null===(o=o.tooltip)||void 0===o?void 0:o.callbacks)||{}),{},{label:function(t){return t.label+": "+t.raw+" ("+(100*t.raw/n).toFixed(2)+"%)"}})}}})).catch((function(t){var e=t.response;_this.errors=e.data.errors,_this.loading=!1}))}}}},718:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _pie_chart_vue__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(816),_Icons_IconRefresh__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(23),_Icons_IconExternalLink__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(271),_excluded=["linkTo"],_excluded2=["linkTo"];function _typeof(t){return _typeof="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},_typeof(t)}function _objectWithoutProperties(t,e){if(null==t)return{};var i,o,n=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o0){e[0].datasetLabel;var i,o=e[0].label,n=this.data.datasets[e[0].datasetIndex].data[e[0].index],s=null!=sweetAlertWithLink.linkTo?sweetAlertWithLink.linkTo:"https://coroo.github.io/nova-chartjs/",a=(sweetAlertWithLink.linkTo,_objectWithoutProperties(sweetAlertWithLink,_excluded)),r=n/(i=this.data.datasets[0].data.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0))*100;__webpack_require__(465).fire(_objectSpread({title:null!=a.title?a.title:""+o+"",icon:null!=a.icon?a.icon:"info",html:null!=a.html?a.html:"Percentage: "+r.toFixed(2)+"%
    "+n+" data from "+i+"
    ",showCloseButton:null==a.showCloseButton||a.showCloseButton,showCancelButton:null==a.showCancelButton||a.showCancelButton,focusConfirm:null!=a.focusConfirm&&a.focusConfirm,confirmButtonText:null!=a.confirmButtonText?a.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=a.confirmButtonAriaLabel?a.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=a.cancelButtonAriaLabel?a.cancelButtonAriaLabel:"Cancel",footer:null!=a.footer?a.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},a)).then((function(t){t.value&&(window.location=s)}))}}),null!=this.card.options.showPercentage&&1==this.card.options.showPercentage){var _this$options$plugins2,dataArr=this.card.series[0].data,sum=dataArr.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0);this.options.plugins.tooltip={callbacks:_objectSpread(_objectSpread({},(null===(_this$options$plugins2=this.options.plugins)||void 0===_this$options$plugins2||null===(_this$options$plugins2=_this$options$plugins2.tooltip)||void 0===_this$options$plugins2?void 0:_this$options$plugins2.callbacks)||{}),{},{label:function(t){return t.label+": "+t.raw+" ("+(100*t.raw/sum).toFixed(2)+"%)"}})}}}else 1==this.showAdvanceFilter&&(this.card.options.advanceFilterSelected=null!=this.advanceFilterSelected&&this.advanceFilterSelected),this.loading=!0,Nova.request().get("/nova-vendor/coroowicaksono/check-data/circle-endpoint",{params:{model:this.card.model,series:this.card.series,options:this.card.options,join:this.card.join,col_xaxis:this.card.col_xaxis,expires:0}}).then((function(t){var e=t.data;_this.datacollection={labels:e.dataset.xAxis,datasets:e.dataset.yAxis},_this.loading=!1;var i=_this.sweetAlert;if(null!=i&&(_this.options.onClick=function(t,e){if(e.length>0){e[0].datasetLabel;var o=e[0].label,n=this.data.datasets[e[0].datasetIndex].data[e[0].index],s=null!=i.linkTo?i.linkTo:"https://coroo.github.io/nova-chartjs/",a=(i.linkTo,_objectWithoutProperties(i,_excluded2)),r=this.data.datasets[0].data.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0),l=n/r*100;__webpack_require__(465).fire(_objectSpread({title:null!=a.title?a.title:""+o+"",icon:null!=a.icon?a.icon:"info",html:null!=a.html?a.html:"Percentage: "+l.toFixed(2)+"%
    "+n+" data from "+r+"
    ",showCloseButton:null==a.showCloseButton||a.showCloseButton,showCancelButton:null==a.showCancelButton||a.showCancelButton,focusConfirm:null!=a.focusConfirm&&a.focusConfirm,confirmButtonText:null!=a.confirmButtonText?a.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=a.confirmButtonAriaLabel?a.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=a.cancelButtonAriaLabel?a.cancelButtonAriaLabel:"Cancel",footer:null!=a.footer?a.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},a)).then((function(t){t.value&&(window.location=s)}))}}),null!=_this.card.options.showPercentage&&1==_this.card.options.showPercentage){var o,n=e.dataset.yAxis[0].data.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0);_this.options.plugins.tooltip={callbacks:_objectSpread(_objectSpread({},(null===(o=_this.options.plugins)||void 0===o||null===(o=o.tooltip)||void 0===o?void 0:o.callbacks)||{}),{},{label:function(t){return t.label+": "+t.raw+" ("+(100*t.raw/n).toFixed(2)+"%)"}})}}})).catch((function(t){var e=t.response;_this.errors=e.data.errors,_this.loading=!1}))}}}},461:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _polar_area_chart_vue__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(379),_Icons_IconRefresh__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(23),_Icons_IconExternalLink__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(271),_excluded=["linkTo"],_excluded2=["linkTo"];function _typeof(t){return _typeof="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},_typeof(t)}function _objectWithoutProperties(t,e){if(null==t)return{};var i,o,n=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o0){e[0].datasetLabel;var i,o=e[0].label,n=this.data.datasets[e[0].datasetIndex].data[e[0].index],s=null!=sweetAlertWithLink.linkTo?sweetAlertWithLink.linkTo:"https://coroo.github.io/nova-chartjs/",a=(sweetAlertWithLink.linkTo,_objectWithoutProperties(sweetAlertWithLink,_excluded)),r=n/(i=this.data.datasets[0].data.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0))*100;__webpack_require__(465).fire(_objectSpread({title:null!=a.title?a.title:""+o+"",icon:null!=a.icon?a.icon:"info",html:null!=a.html?a.html:"Percentage: "+r.toFixed(2)+"%
    "+n+" data from "+i+"
    ",showCloseButton:null==a.showCloseButton||a.showCloseButton,showCancelButton:null==a.showCancelButton||a.showCancelButton,focusConfirm:null!=a.focusConfirm&&a.focusConfirm,confirmButtonText:null!=a.confirmButtonText?a.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=a.confirmButtonAriaLabel?a.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=a.cancelButtonAriaLabel?a.cancelButtonAriaLabel:"Cancel",footer:null!=a.footer?a.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},a)).then((function(t){t.value&&(window.location=s)}))}}),null!=this.card.options.showPercentage&&1==this.card.options.showPercentage){var _this$options$plugins2,dataArr=this.card.series[0].data,sum=dataArr.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0);this.options.plugins.tooltip={callbacks:_objectSpread(_objectSpread({},(null===(_this$options$plugins2=this.options.plugins)||void 0===_this$options$plugins2||null===(_this$options$plugins2=_this$options$plugins2.tooltip)||void 0===_this$options$plugins2?void 0:_this$options$plugins2.callbacks)||{}),{},{label:function(t){return t.label+": "+t.raw+" ("+(100*t.raw/sum).toFixed(2)+"%)"}})}}}else 1==this.showAdvanceFilter&&(this.card.options.advanceFilterSelected=null!=this.advanceFilterSelected&&this.advanceFilterSelected),this.loading=!0,Nova.request().get("/nova-vendor/coroowicaksono/check-data/circle-endpoint",{params:{model:this.card.model,series:this.card.series,options:this.card.options,join:this.card.join,col_xaxis:this.card.col_xaxis,expires:0}}).then((function(t){var e=t.data;_this.datacollection={labels:e.dataset.xAxis,datasets:e.dataset.yAxis},_this.loading=!1;var i=_this.sweetAlert;if(null!=i&&(_this.options.onClick=function(t,e){if(e.length>0){e[0].datasetLabel;var o=e[0].label,n=this.data.datasets[e[0].datasetIndex].data[e[0].index],s=null!=i.linkTo?i.linkTo:"https://coroo.github.io/nova-chartjs/",a=(i.linkTo,_objectWithoutProperties(i,_excluded2)),r=this.data.datasets[0].data.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0),l=n/r*100;__webpack_require__(465).fire(_objectSpread({title:null!=a.title?a.title:""+o+"",icon:null!=a.icon?a.icon:"info",html:null!=a.html?a.html:"Percentage: "+l.toFixed(2)+"%
    "+n+" data from "+r+"
    ",showCloseButton:null==a.showCloseButton||a.showCloseButton,showCancelButton:null==a.showCancelButton||a.showCancelButton,focusConfirm:null!=a.focusConfirm&&a.focusConfirm,confirmButtonText:null!=a.confirmButtonText?a.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=a.confirmButtonAriaLabel?a.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=a.cancelButtonAriaLabel?a.cancelButtonAriaLabel:"Cancel",footer:null!=a.footer?a.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},a)).then((function(t){t.value&&(window.location=s)}))}}),null!=_this.card.options.showPercentage&&1==_this.card.options.showPercentage){var o,n=e.dataset.yAxis[0].data.reduce((function(t,e){return parseInt(t)+parseInt(e)}),0);_this.options.plugins.tooltip={callbacks:_objectSpread(_objectSpread({},(null===(o=_this.options.plugins)||void 0===o||null===(o=o.tooltip)||void 0===o?void 0:o.callbacks)||{}),{},{label:function(t){return t.label+": "+t.raw+" ("+(100*t.raw/n).toFixed(2)+"%)"}})}}})).catch((function(t){var e=t.response;_this.errors=e.data.errors,_this.loading=!1}))}}}},450:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _scatter_chart_vue__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(116),_Icons_IconRefresh__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(23),_Icons_IconExternalLink__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(271);function _typeof(t){return _typeof="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},_typeof(t)}function ownKeys(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function _objectSpread(t){for(var e=1;e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _bar_chart__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(898),_Icons_IconRefresh__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(23),_Icons_IconExternalLink__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(271),_excluded=["linkTo"],_excluded2=["linkTo"];function _typeof(t){return _typeof="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},_typeof(t)}function _objectWithoutProperties(t,e){if(null==t)return{};var i,o,n=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o=1e9?(t/1e9).toFixed(1).replace(/\.0$/,"")+"G":t>=1e6?(t/1e6).toFixed(1).replace(/\.0$/,"")+"M":t>=1e3?(t/1e3).toFixed(1).replace(/\.0$/,"")+"K":t}})}),xAxes:_objectSpread(_objectSpread({stacked:!0},(null===(_this$card$options$sc4=this.card.options.scales)||void 0===_this$card$options$sc4?void 0:_this$card$options$sc4.xAxes)||{}),{},{ticks:_objectSpread(_objectSpread({},(null===(_this$card$options$sc5=this.card.options.scales)||void 0===_this$card$options$sc5||null===(_this$card$options$sc5=_this$card$options$sc5.xAxes)||void 0===_this$card$options$sc5?void 0:_this$card$options$sc5.ticks)||{}),{},{font:_objectSpread({lineHeight:.8,size:10},(null===(_this$card$options$sc6=this.card.options.scales)||void 0===_this$card$options$sc6||null===(_this$card$options$sc6=_this$card$options$sc6.xAxes)||void 0===_this$card$options$sc6||null===(_this$card$options$sc6=_this$card$options$sc6.ticks)||void 0===_this$card$options$sc6?void 0:_this$card$options$sc6.font)||{})})})}),responsive:!0,maintainAspectRatio:!1,plugins:_objectSpread({legend:this.chartLegend},this.chartPlugins)}),void 0!==this.chartTooltips){this.options.plugins.tooltip=this.chartTooltips;for(var tooltiplist=["custom","itemSort","filter"],z=0;z0){var i=e[0].datasetLabel,o=e[0].label,n=this.data.datasets[e[0].datasetIndex].data[e[0].index],s=null!=sweetAlertWithLink.linkTo?sweetAlertWithLink.linkTo:"https://coroo.github.io/nova-chartjs/",a=(sweetAlertWithLink.linkTo,_objectWithoutProperties(sweetAlertWithLink,_excluded));__webpack_require__(465).fire(_objectSpread({title:null!=a.title?a.title:""+n+"",icon:null!=a.icon?a.icon:"info",html:null!=a.html?a.html:null==i?"You can see detail by click below button:":""+i+" in "+o+"
    ",showCloseButton:null==a.showCloseButton||a.showCloseButton,showCancelButton:null==a.showCancelButton||a.showCancelButton,focusConfirm:null!=a.focusConfirm&&a.focusConfirm,confirmButtonText:null!=a.confirmButtonText?a.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=a.confirmButtonAriaLabel?a.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=a.cancelButtonAriaLabel?a.cancelButtonAriaLabel:"Cancel",footer:null!=a.footer?a.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},a)).then((function(t){t.value&&(window.location=s)}))}})}else 1==this.showAdvanceFilter&&(this.card.options.advanceFilterSelected=null!=this.advanceFilterSelected&&this.advanceFilterSelected),this.loading=!0,Nova.request().get("/nova-vendor/coroowicaksono/check-data/endpoint",{params:{model:this.card.model,series:this.card.series,options:this.card.options,join:this.card.join,col_xaxis:this.card.col_xaxis,expires:0}}).then((function(t){var e=t.data;_this.datacollection={labels:e.dataset.xAxis,datasets:e.dataset.yAxis},_this.loading=!1;var i=_this.sweetAlert;null!=i&&(_this.options.onClick=function(t,e){if(e.length>0){var o=e[0].datasetLabel,n=e[0].label,s=this.data.datasets[e[0].datasetIndex].data[e[0].index],a=null!=i.linkTo?i.linkTo:"https://coroo.github.io/nova-chartjs/",r=(i.linkTo,_objectWithoutProperties(i,_excluded2));__webpack_require__(465).fire(_objectSpread({title:null!=r.title?r.title:""+s+"",icon:null!=r.icon?r.icon:"info",html:null!=r.html?r.html:null==o?"You can see detail by click below button:":""+o+" in "+n+"
    ",showCloseButton:null==r.showCloseButton||r.showCloseButton,showCancelButton:null==r.showCancelButton||r.showCancelButton,focusConfirm:null!=r.focusConfirm&&r.focusConfirm,confirmButtonText:null!=r.confirmButtonText?r.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=r.confirmButtonAriaLabel?r.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=r.cancelButtonAriaLabel?r.cancelButtonAriaLabel:"Cancel",footer:null!=r.footer?r.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},r)).then((function(t){t.value&&(window.location=a)}))}})})).catch((function(t){var e=t.response;_this.loading=!1,_this.errors=e.data.errors}))}}}},3:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _stripe_chart_vue__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(938),_Icons_IconRefresh__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(23),_Icons_IconExternalLink__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(271),_excluded=["linkTo"],_excluded2=["linkTo"];function _typeof(t){return _typeof="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},_typeof(t)}function _objectWithoutProperties(t,e){if(null==t)return{};var i,o,n=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o=1e9?(t/1e9).toFixed(1).replace(/\.0$/,"")+"G":t>=1e6?(t/1e6).toFixed(1).replace(/\.0$/,"")+"M":t>=1e3?(t/1e3).toFixed(1).replace(/\.0$/,"")+"K":t}})}),xAxes:_objectSpread(_objectSpread({},(null===(_this$card$options$sc4=this.card.options.scales)||void 0===_this$card$options$sc4?void 0:_this$card$options$sc4.xAxes)||{}),{},{ticks:_objectSpread(_objectSpread({},(null===(_this$card$options$sc5=this.card.options.scales)||void 0===_this$card$options$sc5||null===(_this$card$options$sc5=_this$card$options$sc5.xAxes)||void 0===_this$card$options$sc5?void 0:_this$card$options$sc5.ticks)||{}),{},{font:_objectSpread({lineHeight:.8,size:10},(null===(_this$card$options$sc6=this.card.options.scales)||void 0===_this$card$options$sc6||null===(_this$card$options$sc6=_this$card$options$sc6.xAxes)||void 0===_this$card$options$sc6||null===(_this$card$options$sc6=_this$card$options$sc6.ticks)||void 0===_this$card$options$sc6?void 0:_this$card$options$sc6.font)||{})})})},responsive:!0,maintainAspectRatio:!1,plugins:_objectSpread({legend:this.chartLegend},this.chartPlugins)}),void 0!==this.chartTooltips){this.options.plugins.tooltip=this.chartTooltips;for(var tooltiplist=["custom","itemSort","filter"],z=0;z0){var i=e[0].datasetLabel,o=e[0].label,n=this.data.datasets[e[0].datasetIndex].data[e[0].index],s=null!=sweetAlertWithLink.linkTo?sweetAlertWithLink.linkTo:"https://coroo.github.io/nova-chartjs/",a=(sweetAlertWithLink.linkTo,_objectWithoutProperties(sweetAlertWithLink,_excluded));__webpack_require__(465).fire(_objectSpread({title:null!=a.title?a.title:""+n+"",icon:null!=a.icon?a.icon:"info",html:null!=a.html?a.html:null==i?"You can see detail by click below button:":""+i+" in "+o+"
    ",showCloseButton:null==a.showCloseButton||a.showCloseButton,showCancelButton:null==a.showCancelButton||a.showCancelButton,focusConfirm:null!=a.focusConfirm&&a.focusConfirm,confirmButtonText:null!=a.confirmButtonText?a.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=a.confirmButtonAriaLabel?a.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=a.cancelButtonAriaLabel?a.cancelButtonAriaLabel:"Cancel",footer:null!=a.footer?a.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},a)).then((function(t){t.value&&(window.location=s)}))}})}else 1==this.showAdvanceFilter&&(this.card.options.advanceFilterSelected=null!=this.advanceFilterSelected&&this.advanceFilterSelected),this.loading=!0,Nova.request().get("/nova-vendor/coroowicaksono/check-data/endpoint",{params:{type:"line",model:this.card.model,series:this.card.series,options:this.card.options,join:this.card.join,col_xaxis:this.card.col_xaxis,expires:0}}).then((function(t){var e=t.data;_this.datacollection={labels:e.dataset.xAxis,datasets:e.dataset.yAxis},_this.loading=!1;var i=_this.sweetAlert;null!=i&&(_this.options.onClick=function(t,e){if(e.length>0){var o=e[0].datasetLabel,n=e[0].label,s=this.data.datasets[e[0].datasetIndex].data[e[0].index],a=null!=i.linkTo?i.linkTo:"https://coroo.github.io/nova-chartjs/",r=(i.linkTo,_objectWithoutProperties(i,_excluded2));__webpack_require__(465).fire(_objectSpread({title:null!=r.title?r.title:""+s+"",icon:null!=r.icon?r.icon:"info",html:null!=r.html?r.html:null==o?"You can see detail by click below button:":""+o+" in "+n+"
    ",showCloseButton:null==r.showCloseButton||r.showCloseButton,showCancelButton:null==r.showCancelButton||r.showCancelButton,focusConfirm:null!=r.focusConfirm&&r.focusConfirm,confirmButtonText:null!=r.confirmButtonText?r.confirmButtonText:' See Detail',confirmButtonAriaLabel:null!=r.confirmButtonAriaLabel?r.confirmButtonAriaLabel:"See Detail",cancelButtonAriaLabel:null!=r.cancelButtonAriaLabel?r.cancelButtonAriaLabel:"Cancel",footer:null!=r.footer?r.footer:'Nova Chart JS © '+(new Date).getFullYear()+""},r)).then((function(t){t.value&&(window.location=a)}))}})})).catch((function(t){var e=t.response;_this.errors=e.data.errors,_this.loading=!1}))}}}},696:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var o=i(133);i(237);const n={props:{chartData:{type:Object,required:!0},options:{type:Object,required:!0}},data:function(){return{plugins:[]}},watch:{chartData:function(){void 0!==this.options.plugins&&void 0!==this.options.plugins.datalabels&&!1!==this.options.plugins.datalabels&&this.plugins.push(o.A)}}}},133:(t,e,i)=>{"use strict";i.d(e,{A:()=>T});var o=i(998),n=i(237),s=function(){if("undefined"!=typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t)return(t.deviceXDPI||1)/(t.logicalXDPI||1)}return 1}(),a=function(t){var e,i=[];for(t=[].concat(t);t.length;)"string"==typeof(e=t.pop())?i.unshift.apply(i,e.split("\n")):Array.isArray(e)?t.push.apply(t,e):(0,o.k)(t)||i.unshift(""+e);return i},r=function(t,e,i){var o,n=[].concat(e),s=n.length,a=t.font,r=0;for(t.font=i.string,o=0;oi.right&&(o|=2),ei.bottom&&(o|=4),o}function u(t,e){var i,o,n=e.anchor,s=t;return e.clamp&&(s=function(t,e){for(var i,o,n,s=t.x0,a=t.y0,r=t.x1,l=t.y1,c=d(s,a,e),h=d(r,l,e);c|h&&!(c&h);)8&(i=c||h)?(o=s+(r-s)*(e.top-a)/(l-a),n=e.top):4&i?(o=s+(r-s)*(e.bottom-a)/(l-a),n=e.bottom):2&i?(n=a+(l-a)*(e.right-s)/(r-s),o=e.right):1&i&&(n=a+(l-a)*(e.left-s)/(r-s),o=e.left),i===c?c=d(s=o,a=n,e):h=d(r=o,l=n,e);return{x0:s,x1:r,y0:a,y1:l}}(s,e.area)),"start"===n?(i=s.x0,o=s.y0):"end"===n?(i=s.x1,o=s.y1):(i=(s.x0+s.x1)/2,o=(s.y0+s.y1)/2),function(t,e,i,o,n){switch(n){case"center":i=o=0;break;case"bottom":i=0,o=1;break;case"right":i=1,o=0;break;case"left":i=-1,o=0;break;case"top":i=0,o=-1;break;case"start":i=-i,o=-o;break;case"end":break;default:n*=Math.PI/180,i=Math.cos(n),o=Math.sin(n)}return{x:t,y:e,vx:i,vy:o}}(i,o,t.vx,t.vy,e.align)}var p=function(t,e){var i=(t.startAngle+t.endAngle)/2,o=Math.cos(i),n=Math.sin(i),s=t.innerRadius,a=t.outerRadius;return u({x0:t.x+o*s,y0:t.y+n*s,x1:t.x+o*a,y1:t.y+n*a,vx:o,vy:n},e)},f=function(t,e){var i=h(t,e.origin),o=i.x*t.options.radius,n=i.y*t.options.radius;return u({x0:t.x-o,y0:t.y-n,x1:t.x+o,y1:t.y+n,vx:i.x,vy:i.y},e)},g=function(t,e){var i=h(t,e.origin),o=t.x,n=t.y,s=0,a=0;return t.horizontal?(o=Math.min(t.x,t.base),s=Math.abs(t.base-t.x)):(n=Math.min(t.y,t.base),a=Math.abs(t.base-t.y)),u({x0:o,y0:n+a,x1:o+s,y1:n,vx:i.x,vy:i.y},e)},m=function(t,e){var i=h(t,e.origin);return u({x0:t.x,y0:t.y,x1:t.x+(t.width||0),y1:t.y+(t.height||0),vx:i.x,vy:i.y},e)},b=function(t){return Math.round(t*s)/s};function _(t,e){var i=e.chart.getDatasetMeta(e.datasetIndex).vScale;if(!i)return null;if(void 0!==i.xCenter&&void 0!==i.yCenter)return{x:i.xCenter,y:i.yCenter};var o=i.getBasePixel();return t.horizontal?{x:o,y:null}:{x:null,y:o}}function x(t,e,i){var o=i.backgroundColor,n=i.borderColor,s=i.borderWidth;(o||n&&s)&&(t.beginPath(),function(t,e,i,o,n,s){var a=Math.PI/2;if(s){var r=Math.min(s,n/2,o/2),l=e+r,c=i+r,h=e+o-r,d=i+n-r;t.moveTo(e,c),li.x+i.w+2||t.y>i.y+i.h+2)},intersects:function(t){var e,i,o,n=this._points(),s=t._points(),a=[S(n[0],n[1]),S(n[0],n[3])];for(this._rotation!==t._rotation&&a.push(S(s[0],s[1]),S(s[0],s[3])),e=0;et.getProps([e],!0)[e]}),s=o.geometry(),a=M(r,o.model(),s),n._box.update(a,s,o.rotation()));(function(t,e){var i,o,n,s;for(i=t.length-1;i>=0;--i)for(n=t[i].$layout,o=i-1;o>=0&&n._visible;--o)(s=t[o].$layout)._visible&&n._box.intersects(s._box)&&e(n,s)})(t,(function(t,e){var i=t._hidable,o=e._hidable;i&&o||o?e._visible=!1:i&&(t._visible=!1)}))}(t)},lookup:function(t,e){var i,o;for(i=t.length-1;i>=0;--i)if((o=t[i].$layout)&&o._visible&&o._box.contains(e))return t[i];return null},draw:function(t,e){var i,o,n,s,a,r;for(i=0,o=e.length;i(e=parseInt(e.getAttribute("tabindex")))?1:t1&&void 0!==arguments[1]?arguments[1]:"flex";t.style.opacity="",t.style.display=e},vt=function(t){t.style.opacity="",t.style.display="none"},yt=function(t,e,i){e?wt(t,i):vt(t)},kt=function(t){return!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))},Ct=function(t){return!!(t.scrollHeight>t.clientHeight)},Pt=function(t){var e=window.getComputedStyle(t),i=parseFloat(e.getPropertyValue("animation-duration")||"0"),o=parseFloat(e.getPropertyValue("transition-duration")||"0");return i>0||o>0},St=function(t,e){if("function"==typeof t.contains)return t.contains(e)},At=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=tt();kt(i)&&(e&&(i.style.transition="none",i.style.width="100%"),setTimeout((function(){i.style.transition="width ".concat(t/1e3,"s linear"),i.style.width="0%"}),10))},Mt=function(){var t=tt(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";var i=parseInt(window.getComputedStyle(t).width),o=parseInt(e/i*100);t.style.removeProperty("transition"),t.style.width="".concat(o,"%")},$t=function(){return"undefined"==typeof window||"undefined"==typeof document},Dt='\n
    \n
    \n
      \n
      \n
      \n
      \n
      \n
      \n \n

      \n \n
      \n
      \n
      \n \n \n
      \n \n \n
      \n \n
      \n \n \n
      \n
      \n
      \n \n \n
      \n
      \n
      \n
      \n
      \n
      \n').replace(/(^|\n)\s*/g,""),Ot=function(){var t=j();return!!t&&(t.parentNode.removeChild(t),bt([document.documentElement,document.body],[B["no-backdrop"],B["toast-shown"],B["has-column"]]),!0)},Lt=function(t){Bo.isVisible()&&pt!==t.target.value&&Bo.resetValidationMessage(),pt=t.target.value},Et=function(){var t=H(),e=_t(t,B.input),i=_t(t,B.file),o=t.querySelector(".".concat(B.range," input")),n=t.querySelector(".".concat(B.range," output")),s=_t(t,B.select),a=t.querySelector(".".concat(B.checkbox," input")),r=_t(t,B.textarea);e.oninput=Lt,i.onchange=Lt,s.onchange=Lt,a.onchange=Lt,r.oninput=Lt,o.oninput=function(t){Lt(t),n.value=o.value},o.onchange=function(t){Lt(t),o.nextSibling.value=o.value}},Tt=function(t){return"string"==typeof t?document.querySelector(t):t},Bt=function(t){var e=z();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},It=function(t){"rtl"===window.getComputedStyle(t).direction&&mt(j(),B.rtl)},jt=function(t){var e=Ot();if($t())v("SweetAlert2 requires document to initialize");else{var i=document.createElement("div");i.className=B.container,e&&mt(i,B["no-transition"]),lt(i,Dt);var o=Tt(t.target);o.appendChild(i),Bt(t),It(o),Et()}},Rt=function(e,i){e instanceof HTMLElement?i.appendChild(e):"object"===t(e)?Ft(e,i):e&<(i,e)},Ft=function(t,e){t.jquery?zt(e,t):lt(e,t.toString())},zt=function(t,e){if(t.textContent="",0 in e)for(var i=0;i in e;i++)t.appendChild(e[i].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},Nt=function(){if($t())return!1;var t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&void 0!==t.style[i])return e[i];return!1}(),Vt=function(){var t=document.createElement("div");t.className=B["scrollbar-measure"],document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},Wt=function(t,e){var i=J(),o=X(),n=Q();e.showConfirmButton||e.showCancelButton||vt(i),dt(i,e,"actions"),Ut(o,"confirm",e),Ut(n,"cancel",e),e.buttonsStyling?Ht(o,n,e):(bt([o,n],B.styled),o.style.backgroundColor=o.style.borderLeftColor=o.style.borderRightColor="",n.style.backgroundColor=n.style.borderLeftColor=n.style.borderRightColor=""),e.reverseButtons&&o.parentNode.insertBefore(n,o)};function Ht(t,e,i){if(mt([t,e],B.styled),i.confirmButtonColor&&(t.style.backgroundColor=i.confirmButtonColor),i.cancelButtonColor&&(e.style.backgroundColor=i.cancelButtonColor),!at()){var o=window.getComputedStyle(t).getPropertyValue("background-color");t.style.borderLeftColor=o,t.style.borderRightColor=o}}function Ut(t,e,i){yt(t,i["show".concat(b(e),"Button")],"inline-block"),lt(t,i["".concat(e,"ButtonText")]),t.setAttribute("aria-label",i["".concat(e,"ButtonAriaLabel")]),t.className=B[e],dt(t,i,"".concat(e,"Button")),mt(t,i["".concat(e,"ButtonClass")])}function Kt(t,e){"string"==typeof e?t.style.background=e:e||mt([document.documentElement,document.body],B["no-backdrop"])}function qt(t,e){e in B?mt(t,B[e]):(w('The "position" parameter is not valid, defaulting to "center"'),mt(t,B.center))}function Yt(t,e){if(e&&"string"==typeof e){var i="grow-".concat(e);i in B&&mt(t,B[i])}}var Xt=function(t,e){var i=j();if(i){Kt(i,e.backdrop),!e.backdrop&&e.allowOutsideClick&&w('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),qt(i,e.position),Yt(i,e.grow),dt(i,e,"container");var o=document.body.getAttribute("data-swal2-queue-step");o&&(i.setAttribute("data-queue-step",o),document.body.removeAttribute("data-swal2-queue-step"))}},Qt={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Jt=["input","file","range","select","radio","checkbox","textarea"],Zt=function(t,e){var i=H(),o=Qt.innerParams.get(t),n=!o||e.input!==o.input;Jt.forEach((function(t){var o=B[t],s=_t(i,o);ee(t,e.inputAttributes),s.className=o,n&&vt(s)})),e.input&&(n&&Gt(e),ie(e))},Gt=function(t){if(!se[t.input])return v('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));var e=ne(t.input),i=se[t.input](e,t);wt(i),setTimeout((function(){ft(i)}))},te=function(t){for(var e=0;ei?"".concat(e,"px"):null})).observe(t,{attributes:!0,attributeFilter:["style"]})}return t};var ae=function(t,e){var i=H().querySelector("#".concat(B.content));e.html?(Rt(e.html,i),wt(i,"block")):e.text?(i.textContent=e.text,wt(i,"block")):vt(i),Zt(t,e),dt(H(),e,"content")},re=function(t,e){var i=G();yt(i,e.footer),e.footer&&Rt(e.footer,i),dt(i,e,"footer")},le=function(t,e){var i=et();lt(i,e.closeButtonHtml),dt(i,e,"closeButton"),yt(i,e.showCloseButton),i.setAttribute("aria-label",e.closeButtonAriaLabel)},ce=function(t,e){var i=Qt.innerParams.get(t);if(i&&e.icon===i.icon&&V())dt(V(),e,"icon");else if(he(),e.icon)if(-1!==Object.keys(I).indexOf(e.icon)){var o=R(".".concat(B.icon,".").concat(I[e.icon]));wt(o),ue(o,e),de(),dt(o,e,"icon"),mt(o,e.showClass.icon)}else v('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.icon,'"'))},he=function(){for(var t=N(),e=0;e\n \n
      \n
      \n '):"error"===e.icon?lt(t,'\n \n \n \n \n '):lt(t,pe({question:"?",warning:"!",info:"i"}[e.icon]))},pe=function(t){return'
      ').concat(t,"
      ")},fe=function(t,e){var i=K();if(!e.imageUrl)return vt(i);wt(i,""),i.setAttribute("src",e.imageUrl),i.setAttribute("alt",e.imageAlt),xt(i,"width",e.imageWidth),xt(i,"height",e.imageHeight),i.className=B.image,dt(i,e,"image")},ge=[],me=function(t){var e=this;ge=t;var i=function(t,e){ge=[],t(e)},o=[];return new Promise((function(t){!function n(s,a){s=e.progressSteps.length&&w("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((function(t,n){var s=we(t);if(i.appendChild(s),n===o&&mt(s,B["active-progress-step"]),n!==e.progressSteps.length-1){var a=ve(e);i.appendChild(a)}}))},ke=function(t,e){var i=W();yt(i,e.title||e.titleText),e.title&&Rt(e.title,i),e.titleText&&(i.innerText=e.titleText),dt(i,e,"title")},Ce=function(t,e){var i=Z();dt(i,e,"header"),ye(t,e),ce(t,e),fe(t,e),ke(t,e),le(t,e)},Pe=function(t,e){var i=z();xt(i,"width",e.width),xt(i,"padding",e.padding),e.background&&(i.style.background=e.background),Se(i,e)},Se=function(t,e){t.className="".concat(B.popup," ").concat(kt(t)?e.showClass.popup:""),e.toast?(mt([document.documentElement,document.body],B["toast-shown"]),mt(t,B.toast)):mt(t,B.modal),dt(t,e,"popup"),"string"==typeof e.customClass&&mt(t,e.customClass),e.icon&&mt(t,B["icon-".concat(e.icon)])},Ae=function(t,e){Pe(t,e),Xt(t,e),Ce(t,e),ae(t,e),Wt(t,e),re(t,e),"function"==typeof e.onRender&&e.onRender(z())},Me=function(){return kt(z())},$e=function(){return X()&&X().click()},De=function(){return Q()&&Q().click()};function Oe(){for(var t=this,e=arguments.length,i=new Array(e),o=0;owindow.innerHeight&&(rt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(rt.previousBodyPadding+Vt(),"px"))},si=function(){null!==rt.previousBodyPadding&&(document.body.style.paddingRight="".concat(rt.previousBodyPadding,"px"),rt.previousBodyPadding=null)},ai=function(){if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!ct(document.body,B.iosfix)){var t=document.body.scrollTop;document.body.style.top="".concat(-1*t,"px"),mt(document.body,B.iosfix),li(),ri()}},ri=function(){if(!navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)){var t=44;z().scrollHeight>window.innerHeight-t&&(j().style.paddingBottom="".concat(t,"px"))}},li=function(){var t,e=j();e.ontouchstart=function(e){t=ci(e.target)},e.ontouchmove=function(e){t&&(e.preventDefault(),e.stopPropagation())}},ci=function(t){var e=j();return t===e||!(Ct(e)||"INPUT"===t.tagName||Ct(H())&&H().contains(t))},hi=function(){if(ct(document.body,B.iosfix)){var t=parseInt(document.body.style.top,10);bt(document.body,B.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}},di=function(){return!!window.MSInputMethodContext&&!!document.documentMode},ui=function(){var t=j(),e=z();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")},pi=function(){"undefined"!=typeof window&&di()&&(ui(),window.addEventListener("resize",ui))},fi=function(){"undefined"!=typeof window&&di()&&window.removeEventListener("resize",ui)},gi=function(){x(document.body.children).forEach((function(t){t===j()||St(t,j())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}))},mi=function(){x(document.body.children).forEach((function(t){t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")}))},bi={swalPromiseResolve:new WeakMap};function _i(t,e,i,o){i?ki(t,o):(je().then((function(){return ki(t,o)})),Be.keydownTarget.removeEventListener("keydown",Be.keydownHandler,{capture:Be.keydownListenerCapture}),Be.keydownHandlerAdded=!1),e.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&e.parentNode.removeChild(e),nt()&&(si(),hi(),fi(),mi()),xi()}function xi(){bt([document.documentElement,document.body],[B.shown,B["height-auto"],B["no-backdrop"],B["toast-shown"],B["toast-column"]])}function wi(t){var e=z();if(e){var i=Qt.innerParams.get(this);if(i&&!ct(e,i.hideClass.popup)){var o=bi.swalPromiseResolve.get(this);bt(e,i.showClass.popup),mt(e,i.hideClass.popup);var n=j();bt(n,i.showClass.backdrop),mt(n,i.hideClass.backdrop),vi(this,e,i),void 0!==t?(t.isDismissed=void 0!==t.dismiss,t.isConfirmed=void 0===t.dismiss):t={isDismissed:!0,isConfirmed:!1},o(t||{})}}}var vi=function(t,e,i){var o=j(),n=Nt&&Pt(e),s=i.onClose,a=i.onAfterClose;null!==s&&"function"==typeof s&&s(e),n?yi(t,e,o,a):_i(t,o,st(),a)},yi=function(t,e,i,o){Be.swalCloseEventFinishedCallback=_i.bind(null,t,i,st(),o),e.addEventListener(Nt,(function(t){t.target===e&&(Be.swalCloseEventFinishedCallback(),delete Be.swalCloseEventFinishedCallback)}))},ki=function(t,e){setTimeout((function(){"function"==typeof e&&e(),t._destroy()}))};function Ci(t,e,i){var o=Qt.domCache.get(t);e.forEach((function(t){o[t].disabled=i}))}function Pi(t,e){if(!t)return!1;if("radio"===t.type)for(var i=t.parentNode.parentNode.querySelectorAll("input"),o=0;o")),jt(t)}var Ri=function(t){var e=j(),i=z();"function"==typeof t.onBeforeOpen&&t.onBeforeOpen(i);var o=window.getComputedStyle(document.body).overflowY;Vi(e,i,t),zi(e,i),nt()&&(Ni(e,t.scrollbarPadding,o),gi()),st()||Be.previousActiveElement||(Be.previousActiveElement=document.activeElement),"function"==typeof t.onOpen&&setTimeout((function(){return t.onOpen(i)})),bt(e,B["no-transition"])};function Fi(t){var e=z();if(t.target===e){var i=j();e.removeEventListener(Nt,Fi),i.style.overflowY="auto"}}var zi=function(t,e){Nt&&Pt(e)?(t.style.overflowY="hidden",e.addEventListener(Nt,Fi)):t.style.overflowY="auto"},Ni=function(t,e,i){ai(),pi(),e&&"hidden"!==i&&ni(),setTimeout((function(){t.scrollTop=0}))},Vi=function(t,e,i){mt(t,i.showClass.backdrop),wt(e),mt(e,i.showClass.popup),mt([document.documentElement,document.body],B.shown),i.heightAuto&&i.backdrop&&!i.toast&&mt([document.documentElement,document.body],B["height-auto"])},Wi=function(t,e){"select"===e.input||"radio"===e.input?Yi(t,e):-1!==["text","email","number","tel","textarea"].indexOf(e.input)&&(S(e.inputValue)||M(e.inputValue))&&Xi(t,e)},Hi=function(t,e){var i=t.getInput();if(!i)return null;switch(e.input){case"checkbox":return Ui(i);case"radio":return Ki(i);case"file":return qi(i);default:return e.inputAutoTrim?i.value.trim():i.value}},Ui=function(t){return t.checked?1:0},Ki=function(t){return t.checked?t.value:null},qi=function(t){return t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null},Yi=function(e,i){var o=H(),n=function(t){return Qi[i.input](o,Ji(t),i)};S(i.inputOptions)||M(i.inputOptions)?(Ee(),A(i.inputOptions).then((function(t){e.hideLoading(),n(t)}))):"object"===t(i.inputOptions)?n(i.inputOptions):v("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(t(i.inputOptions)))},Xi=function(t,e){var i=t.getInput();vt(i),A(e.inputValue).then((function(o){i.value="number"===e.input?parseFloat(o)||0:"".concat(o),wt(i),i.focus(),t.hideLoading()})).catch((function(e){v("Error in inputValue promise: ".concat(e)),i.value="",wt(i),i.focus(),t.hideLoading()}))},Qi={select:function(t,e,i){var o=_t(t,B.select),n=function(t,e,o){var n=document.createElement("option");n.value=o,lt(n,e),i.inputValue.toString()===o.toString()&&(n.selected=!0),t.appendChild(n)};e.forEach((function(t){var e=t[0],i=t[1];if(Array.isArray(i)){var s=document.createElement("optgroup");s.label=e,s.disabled=!1,o.appendChild(s),i.forEach((function(t){return n(s,t[1],t[0])}))}else n(o,i,e)})),o.focus()},radio:function(t,e,i){var o=_t(t,B.radio);e.forEach((function(t){var e=t[0],n=t[1],s=document.createElement("input"),a=document.createElement("label");s.type="radio",s.name=B.radio,s.value=e,i.inputValue.toString()===e.toString()&&(s.checked=!0);var r=document.createElement("span");lt(r,n),r.className=B.label,a.appendChild(s),a.appendChild(r),o.appendChild(a)}));var n=o.querySelectorAll("input");n.length&&n[0].focus()}},Ji=function e(i){var o=[];return"undefined"!=typeof Map&&i instanceof Map?i.forEach((function(i,n){var s=i;"object"===t(s)&&(s=e(s)),o.push([n,s])})):Object.keys(i).forEach((function(n){var s=i[n];"object"===t(s)&&(s=e(s)),o.push([n,s])})),o},Zi=function(t,e){t.disableButtons(),e.input?to(t,e):io(t,e,!0)},Gi=function(t,e){t.disableButtons(),e($.cancel)},to=function(t,e){var i=Hi(t,e);e.inputValidator?(t.disableInput(),Promise.resolve().then((function(){return A(e.inputValidator(i,e.validationMessage))})).then((function(o){t.enableButtons(),t.enableInput(),o?t.showValidationMessage(o):io(t,e,i)}))):t.getInput().checkValidity()?io(t,e,i):(t.enableButtons(),t.showValidationMessage(e.validationMessage))},eo=function(t,e){t.closePopup({value:e})},io=function(t,e,i){e.showLoaderOnConfirm&&Ee(),e.preConfirm?(t.resetValidationMessage(),Promise.resolve().then((function(){return A(e.preConfirm(i,e.validationMessage))})).then((function(e){kt(Y())||!1===e?t.hideLoading():eo(t,void 0===e?i:e)}))):eo(t,i)},oo=function(t,e,i,o){e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1),i.toast||(e.keydownHandler=function(e){return ro(t,e,o)},e.keydownTarget=i.keydownListenerCapture?window:z(),e.keydownListenerCapture=i.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},no=function(t,e,i){for(var o=ot(),n=0;n3&&setTimeout((function(){document.body.style.pointerEvents="none";var t=document.createElement("audio");t.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",t.loop=!0,document.body.appendChild(t),setTimeout((function(){t.play().catch((function(){}))}),2500)}),500):localStorage.setItem("swal-initiation","".concat(Eo))}n(Lo.prototype,Oo),n(Lo,ei),Object.keys(Oo).forEach((function(t){Lo[t]=function(){var e;if(Mo)return(e=Mo)[t].apply(e,arguments)}})),Lo.DismissReason=$,Lo.version="9.17.2";var Bo=Lo;return Bo.default=Bo,Bo}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(t,e){var i=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(i),i.styleSheet)i.styleSheet.disabled||(i.styleSheet.cssText=e);else try{i.innerHTML=e}catch(t){i.innerText=e}}(document,'.swal2-popup.swal2-toast{flex-direction:row;align-items:center;width:auto;padding:.625em;overflow-y:hidden;background:#fff;box-shadow:0 0 .625em #d9d9d9}.swal2-popup.swal2-toast .swal2-header{flex-direction:row;padding:0}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:static;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;padding:0;font-size:1em}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{font-size:.25em}}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{flex-basis:auto!important;width:auto;height:auto;margin:0 .3125em}.swal2-popup.swal2-toast .swal2-styled{margin:0 .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(50,100,150,.4)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:flex;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-bottom-end>:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-no-transition{transition:none!important}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center;padding:0 1.8em}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-actions.swal2-loading .swal2-styled.swal2-confirm{box-sizing:border-box;width:2.5em;height:2.5em;margin:.46875em;padding:0;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:.25em solid transparent;border-radius:100%;border-color:transparent;background-color:transparent!important;color:transparent!important;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-actions.swal2-loading .swal2-styled.swal2-cancel{margin-right:30px;margin-left:30px}.swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after{content:"";display:inline-block;width:15px;height:15px;margin-left:5px;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:3px solid #999;border-radius:50%;border-right-color:transparent;box-shadow:1px 1px 1px #fff}.swal2-styled{margin:.3125em;padding:.625em 2em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#3085d6;color:#fff;font-size:1.0625em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#aaa;color:#fff;font-size:1.0625em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(50,100,150,.4)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;height:.25em;overflow:hidden;border-bottom-right-radius:.3125em;border-bottom-left-radius:.3125em}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;top:0;right:0;align-items:center;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:0;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close::-moz-focus-inner{border:0}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0 1.6em;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::-ms-input-placeholder,.swal2-input::-ms-input-placeholder,.swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{margin:0 .4em}.swal2-validation-message{display:none;align-items:center;justify-content:center;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{align-items:center;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;width:2em;height:2em;border-radius:2em;background:#3085d6;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#3085d6}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;width:2.5em;height:.4em;margin:0 -1px;background:#3085d6}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent!important}body.swal2-no-backdrop .swal2-container>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-container.swal2-top{top:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-top-left,body.swal2-no-backdrop .swal2-container.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-top-end,body.swal2-no-backdrop .swal2-container.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-container.swal2-center{top:50%;left:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-left,body.swal2-no-backdrop .swal2-container.swal2-center-start{top:50%;left:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-end,body.swal2-no-backdrop .swal2-container.swal2-center-right{top:50%;right:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom-left,body.swal2-no-backdrop .swal2-container.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-bottom-end,body.swal2-no-backdrop .swal2-container.swal2-bottom-right{right:0;bottom:0}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validation-message{font-size:1em}')},966:(t,e,i)=>{"use strict";i.d(e,{Fq:()=>p,N1:()=>u,O5:()=>f,Xl:()=>g,nu:()=>d,yP:()=>h});var o,n=i(237),s=i(61);function a(t,e,i,n){t(e,i),void 0!==n&&n.emit(o.ChartRendered)}function r(t,e){t.destroy(),void 0!==e&&e.emit(o.ChartDestroyed)}function l(t,e,i){const o=[];t.datasets=e.datasets.map((e=>{const n=t.datasets.find((t=>t[i]===e[i]));return n&&e.data&&!o.includes(n)?(o.push(n),Object.assign(n,e),n):{...e}}))}!function(t){t.ChartRendered="chart:rendered",t.ChartUpdated="chart:updated",t.ChartDestroyed="chart:destroyed",t.LabelsUpdated="labels:updated"}(o||(o={}));const c=(t,e,i)=>(0,s.defineComponent)({props:{chartData:{type:Object,required:!0},chartOptions:{type:Object,default:()=>{}},datasetIdKey:{type:String,default:"label"},chartId:{type:String,default:t},width:{type:Number,default:400},height:{type:Number,default:400},cssClasses:{type:String,default:""},styles:{type:Object,default:()=>{}},plugins:{type:Array,default:()=>[]}},setup(t,c){n.t1.register(i);const h=(0,s.shallowRef)(null),d=(0,s.ref)(null);function u(i,o){if(null!==h.value&&r((0,s.toRaw)(h.value),c),null===d.value)throw new Error("Please remove the tags from your chart component. See https://vue-chartjs.org/guide/#vue-single-file-components");{const a=function(t,e){const i={labels:void 0===t.labels?[]:[...t.labels],datasets:[]};return l(i,{...t},e),i}(i,t.datasetIdKey),r=d.value.getContext("2d");null!==r&&(h.value=new n.t1(r,{type:e,data:(0,s.isProxy)(i)?new Proxy(a,{}):a,options:o,plugins:t.plugins}))}}function p(e,i){const n=(0,s.isProxy)(e)?(0,s.toRaw)(e):{...e},d=(0,s.isProxy)(i)?(0,s.toRaw)(i):{...i};if(Object.keys(d).length>0){const e=(0,s.toRaw)(h.value),i=function(t,e){const i=t.datasets.map((t=>t.label)),o=e.datasets.map((t=>t.label));return e.datasets.length===t.datasets.length&&i.every(((t,e)=>t===o[e]))}(n,d);i&&null!==e?(l(null==e?void 0:e.data,n,t.datasetIdKey),void 0!==n.labels&&function(t,e,i){t.data.labels=e,void 0!==i&&i.emit(o.LabelsUpdated)}(e,n.labels,c),f()):(null!==e&&r(e,c),a(u,t.chartData,t.chartOptions,c))}else null!==h.value&&r((0,s.toRaw)(h.value),c),a(u,t.chartData,t.chartOptions,c)}function f(){const t=(0,s.toRaw)(h.value);null!==t?function(t,e){t.update(),void 0!==e&&e.emit(o.ChartUpdated)}(t,c):console.error("Update ERROR: chart instance not found")}return(0,s.watch)((()=>t.chartData),((t,e)=>p(t,e)),{deep:!0}),(0,s.watch)((()=>t.chartOptions),(e=>function(e){const i=(0,s.toRaw)(h.value);null!==i?(function(t,e){t.options={...e}}(i,e),f()):a(u,t.chartData,t.chartOptions,c)}(e)),{deep:!0}),(0,s.onMounted)((()=>{"datasets"in t.chartData&&t.chartData.datasets.length>0&&a(u,t.chartData,t.chartOptions,c)})),(0,s.onBeforeUnmount)((()=>{null!==h.value&&r((0,s.toRaw)(h.value),c)})),c.expose({chart:h,updateChart:f}),()=>(0,s.h)("div",{style:t.styles,class:t.cssClasses},[(0,s.h)("canvas",{id:t.chartId,width:t.width,height:t.height,ref:d})])}}),h=c("bar-chart","bar",n.A6),d=c("doughnut-chart","doughnut",n.ju),u=c("line-chart","line",n.ZT),p=c("pie-chart","pie",n.P$),f=c("polar-chart","polarArea",n.G5),g=c("scatter-chart","scatter",n.Pz)},262:(t,e)=>{"use strict";e.A=(t,e)=>{const i=t.__vccOpts||t;for(const[t,o]of e)i[t]=o;return i}},898:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var o=i(61);var n=i(966),s=i(696);const a={components:{Bar:n.yP},props:{height:{default:120,type:Number}},mixins:[s.A]};const r=(0,i(262).A)(a,[["render",function(t,e,i,n,s,a){var r=(0,o.resolveComponent)("Bar");return(0,o.openBlock)(),(0,o.createBlock)(r,{"chart-data":t.chartData,"chart-options":t.options,height:i.height,plugins:t.plugins},null,8,["chart-data","chart-options","height","plugins"])}]])},271:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var o=i(61),n={xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"};const s={name:"IconExternalLink"};const a=(0,i(262).A)(s,[["render",function(t,e,i,s,a,r){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",n,e[0]||(e[0]=[(0,o.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"},null,-1)]))}]])},23:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var o=i(61),n={xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"};const s={name:"IconRefresh"};const a=(0,i(262).A)(s,[["render",function(t,e,i,s,a,r){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",n,e[0]||(e[0]=[(0,o.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"},null,-1)]))}]])},306:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var o=i(61);var n=i(966),s=i(696);const a={components:{Doughnut:n.nu},props:{height:{default:110,type:Number}},mixins:[s.A]};const r=(0,i(262).A)(a,[["render",function(t,e,i,n,s,a){var r=(0,o.resolveComponent)("Doughnut");return(0,o.openBlock)(),(0,o.createBlock)(r,{"chart-data":t.chartData,"chart-options":t.options,height:i.height,plugins:t.plugins},null,8,["chart-data","chart-options","height","plugins"])}]])},816:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var o=i(61);var n=i(966),s=i(696);const a={components:{Pie:n.Fq},props:{height:{default:110,type:Number}},mixins:[s.A]};const r=(0,i(262).A)(a,[["render",function(t,e,i,n,s,a){var r=(0,o.resolveComponent)("Pie");return(0,o.openBlock)(),(0,o.createBlock)(r,{"chart-data":t.chartData,"chart-options":t.options,height:i.height,plugins:t.plugins},null,8,["chart-data","chart-options","height","plugins"])}]])},379:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var o=i(61);var n=i(966),s=i(696);const a={components:{PolarArea:n.O5},props:{height:{default:110,type:Number}},mixins:[s.A]};const r=(0,i(262).A)(a,[["render",function(t,e,i,n,s,a){var r=(0,o.resolveComponent)("PolarArea");return(0,o.openBlock)(),(0,o.createBlock)(r,{"chart-data":t.chartData,"chart-options":t.options,height:i.height,plugins:t.plugins},null,8,["chart-data","chart-options","height","plugins"])}]])},116:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var o=i(61);var n=i(966),s=i(696);const a={components:{Scatter:n.Xl},props:{height:{default:120,type:Number}},mixins:[s.A]};const r=(0,i(262).A)(a,[["render",function(t,e,i,n,s,a){var r=(0,o.resolveComponent)("Scatter");return(0,o.openBlock)(),(0,o.createBlock)(r,{"chart-data":t.chartData,"chart-options":t.options,height:i.height},null,8,["chart-data","chart-options","height"])}]])},938:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var o=i(61);var n=i(966),s=i(696);const a={components:{Line:n.N1},props:{height:{default:120,type:Number}},mixins:[s.A]};const r=(0,i(262).A)(a,[["render",function(t,e,i,n,s,a){var r=(0,o.resolveComponent)("Line");return(0,o.openBlock)(),(0,o.createBlock)(r,{"chart-data":t.chartData,"chart-options":t.options,height:i.height,plugins:t.plugins},null,8,["chart-data","chart-options","height","plugins"])}]])},61:t=>{"use strict";t.exports=Vue},237:(t,e,i)=>{"use strict";i.d(e,{$L:()=>Xi,A6:()=>D,Bs:()=>me,E8:()=>Te,FN:()=>Ae,G5:()=>T,NT:()=>o.d,P$:()=>B,Pz:()=>J,ZT:()=>E,ju:()=>L,t1:()=>le});var o=i(998);var n=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,o){const n=e.listeners[o],s=e.duration;n.forEach((o=>o({chart:t,initial:e.initial,numSteps:s,currentStep:Math.min(i-e.start,s)})))}_refresh(){this._request||(this._running=!0,this._request=o.r.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,o)=>{if(!i.running||!i.items.length)return;const n=i.items;let s,a=n.length-1,r=!1;for(;a>=0;--a)s=n[a],s._active?(s._total>i.duration&&(i.duration=s._total),s.tick(t),r=!0):(n[a]=n[n.length-1],n.pop());r&&(o.draw(),this._notify(o,i,t,"progress")),n.length||(i.running=!1,this._notify(o,i,t,"complete"),i.initial=!1),e+=n.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let o=i.length-1;for(;o>=0;--o)i[o].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const s="transparent",a={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const n=(0,o.c)(t||s),a=n.valid&&(0,o.c)(e||s);return a&&a.valid?a.mix(n,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class r{constructor(t,e,i,n){const s=e[i];n=(0,o.a)([t.to,n,s,t.from]);const r=(0,o.a)([t.from,s,n]);this._active=!0,this._fn=t.fn||a[t.type||typeof r],this._easing=o.e[t.easing]||o.e.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=r,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const n=this._target[this._prop],s=i-this._start,a=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=(0,o.a)([t.to,e,n,t.from]),this._from=(0,o.a)([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,o=this._prop,n=this._from,s=this._loop,a=this._to;let r;if(this._active=n!==a&&(s||e1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[o]=this._fn(n,a,r))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),o.d.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),o.d.describe("animations",{_fallback:"animation"}),o.d.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class c{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!(0,o.i)(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const n=t[i];if(!(0,o.i)(n))return;const s={};for(const t of l)s[t]=n[t];((0,o.b)(n.properties)&&n.properties||[i]).forEach((t=>{t!==i&&e.has(t)||e.set(t,s)}))}))}_animateOptions(t,e){const i=e.options,o=function(t,e){if(!e)return;let i=t.options;if(!i)return void(t.options=e);i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}}));return i}(t,i);if(!o)return[];const n=this._createAnimations(o,i);return i.$shared&&function(t,e){const i=[],o=Object.keys(e);for(let e=0;e{t.options=i}),(()=>{})),n}_createAnimations(t,e){const i=this._properties,o=[],n=t.$animations||(t.$animations={}),s=Object.keys(e),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if("$"===c.charAt(0))continue;if("options"===c){o.push(...this._animateOptions(t,e));continue}const h=e[c];let d=n[c];const u=i.get(c);if(d){if(u&&d.active()){d.update(u,h,a);continue}d.cancel()}u&&u.duration?(n[c]=d=new r(u,t,c,h),o.push(d)):t[c]=h}return o}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(n.add(this._chart,i),!0):void 0}}function h(t,e){const i=t&&t.options||{},o=i.reverse,n=void 0===i.min?e:0,s=void 0===i.max?e:0;return{start:o?s:n,end:o?n:s}}function d(t,e){const i=[],o=t._getSortedDatasetMetas(e);let n,s;for(n=0,s=o.length;n0||!i&&e<0)return n.index}return null}function m(t,e){const{chart:i,_cachedMeta:o}=t,n=i._stacks||(i._stacks={}),{iScale:s,vScale:a,index:r}=o,l=s.axis,c=a.axis,h=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(s,a,o),d=e.length;let u;for(let t=0;ti[t].axis===e)).shift()}function _(t,e){const i=t.controller.index,o=t.vScale&&t.vScale.axis;if(o){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[o]||void 0===e[o][i])return;delete e[o][i]}}}const x=t=>"reset"===t||"none"===t,w=(t,e)=>e?t:Object.assign({},t);class v{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=p(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&_(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),n=(t,e,i,o)=>"x"===t?e:"r"===t?o:i,s=e.xAxisID=(0,o.v)(i.xAxisID,b(t,"x")),a=e.yAxisID=(0,o.v)(i.yAxisID,b(t,"y")),r=e.rAxisID=(0,o.v)(i.rAxisID,b(t,"r")),l=e.indexAxis,c=e.iAxisID=n(l,s,a,r),h=e.vAxisID=n(l,a,s,r);e.xScale=this.getScaleForId(s),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(r),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&(0,o.u)(this._data,this),t._stacked&&_(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if((0,o.i)(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let o,n,s;for(o=0,n=e.length;o0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=n,i._sorted=!0,h=n;else{h=(0,o.b)(n[t])?this.parseArrayData(i,n,t,e):(0,o.i)(n[t])?this.parseObjectData(i,n,t,e):this.parsePrimitiveData(i,n,t,e);const s=()=>null===c[r]||u&&c[r]t&&!e.hidden&&e._stacked&&{keys:d(i,!0),values:null})(e,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:u}=function(t){const{min:e,max:i,minDefined:o,maxDefined:n}=t.getUserBounds();return{min:o?e:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}(r);let p,f;function g(){f=n[p];const e=f[r.axis];return!(0,o.g)(f[t.axis])||h>e||u=0;--p)if(!g()){this.updateRangeFromParsed(c,t,f,l);break}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let n,s,a;for(n=0,s=e.length;n=0&&tthis.getContext(i,n)),d);return f.$shared&&(f.$shared=l,s[a]=Object.freeze(w(f,l))),f}_resolveAnimations(t,e,i){const o=this.chart,n=this._cachedDataOpts,s=`animation-${e}`,a=n[s];if(a)return a;let r;if(!1!==o.options.animation){const o=this.chart.config,n=o.datasetAnimationScopeKeys(this._type,e),s=o.getOptionScopes(this.getDataset(),n);r=o.createResolver(s,this.getContext(t,i,e))}const l=new c(o,r&&r.animations);return r&&r._cacheable&&(n[s]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||x(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),o=this._sharedOptions,n=this.getSharedOptions(i),s=this.includeOptions(e,n)||n!==o;return this.updateSharedOptions(n,e,i),{sharedOptions:n,includeOptions:s}}updateElement(t,e,i,o){x(o)?Object.assign(t,i):this._resolveAnimations(e,o).update(t,i)}updateSharedOptions(t,e,i){t&&!x(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,o){t.active=o;const n=this.getStyle(e,o);this._resolveAnimations(e,i,o).update(t,{options:!o&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const o=i.length,n=e.length,s=Math.min(n,o);s&&this.parse(0,s),n>o?this._insertElements(o,n-o,t):n{for(t.length+=e,a=t.length-1;a>=s;a--)t[a]=t[a-e]};for(r(n),a=t;at-e)))}return t._cache.$bar}(e,t.type);let n,s,a,r,l=e._length;const c=()=>{32767!==a&&-32768!==a&&((0,o.j)(r)&&(l=Math.min(l,Math.abs(a-r)||l)),r=a)};for(n=0,s=i.length;nMath.abs(r)&&(l=r,c=a),e[i.axis]=c,e._custom={barStart:l,barEnd:c,start:n,end:s,min:a,max:r}}(t,e,i,n):e[i.axis]=i.parse(t,n),e}function C(t,e,i,o){const n=t.iScale,s=t.vScale,a=n.getLabels(),r=n===s,l=[];let c,h,d,u;for(c=i,h=i+o;ct.x,i="left",o="right"):(e=t.baset.controller.options.grouped)),s=i.options.stacked,a=[],r=t=>{const i=t.controller.getParsed(e),n=i&&i[t.vScale.axis];if((0,o.k)(n)||isNaN(n))return!0};for(const i of n)if((void 0===e||!r(i))&&((!1===s||-1===a.indexOf(i.stack)||void 0===s&&void 0===i.stack)&&a.push(i.stack),i.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const o=this._getStacks(t,i),n=void 0!==e?o.indexOf(e):-1;return-1===n?o.length-1:n}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,o=[];let n,s;for(n=0,s=e.data.length;n=i?1:-1)}(d,e,a)*s,u===a&&(m-=d/2);const t=e.getPixelForDecimal(0),i=e.getPixelForDecimal(1),n=Math.min(t,i),r=Math.max(t,i);m=Math.max(Math.min(m,r),n),h=m+d}if(m===e.getPixelForValue(a)){const t=(0,o.s)(d)*e.getLineWidthForValue(a)/2;m+=t,d-=t}return{size:d,base:m,head:h,center:h+d/2}}_calculateBarIndexPixels(t,e){const i=e.scale,n=this.options,s=n.skipNull,a=(0,o.v)(n.maxBarThickness,1/0);let r,l;if(e.grouped){const i=s?this._getStackCount(t):e.stackCount,c="flex"===n.barThickness?function(t,e,i,o){const n=e.pixels,s=n[t];let a=t>0?n[t-1]:null,r=t=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:o}=e,n=this.getParsed(t),s=i.getLabelForValue(n.x),a=o.getLabelForValue(n.y),r=n._custom;return{label:e.label,value:"("+s+", "+a+(r?", "+r:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,o){const n="reset"===o,{iScale:s,vScale:a}=this._cachedMeta,{sharedOptions:r,includeOptions:l}=this._getSharedOptions(e,o),c=s.axis,h=a.axis;for(let d=e;d""}}}};class L extends v{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=i;else{let s,a,r=t=>+i[t];if((0,o.i)(i[t])){const{key:t="value"}=this._parsing;r=e=>+(0,o.f)(i[e],t)}for(s=t,a=t+e;s(0,o.p)(t,l,c,!0)?1:Math.max(e,e*i,n,n*i),g=(t,e,n)=>(0,o.p)(t,l,c,!0)?-1:Math.min(e,e*i,n,n*i),m=f(0,h,u),b=f(o.H,d,p),_=g(o.P,h,u),x=g(o.P+o.H,d,p);n=(m-_)/2,s=(b-x)/2,a=-(m+_)/2,r=-(b+x)/2}return{ratioX:n,ratioY:s,offsetX:a,offsetY:r}}(d,h,l),m=(i.width-a)/u,b=(i.height-a)/p,_=Math.max(Math.min(m,b)/2,0),x=(0,o.n)(this.options.radius,_),w=(x-Math.max(x*l,0))/this._getVisibleDatasetWeightTotal();this.offsetX=f*x,this.offsetY=g*x,n.total=this.calculateTotal(),this.outerRadius=x-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){const i=this.options,n=this._cachedMeta,s=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===n._parsed[t]||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*s/o.T)}updateElements(t,e,i,o){const n="reset"===o,s=this.chart,a=s.chartArea,r=s.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,h=n&&r.animateScale,d=h?0:this.innerRadius,u=h?0:this.outerRadius,{sharedOptions:p,includeOptions:f}=this._getSharedOptions(e,o);let g,m=this._getRotation();for(g=0;g0&&!isNaN(t)?o.T*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=(0,o.o)(e._parsed[t],i.options.locale);return{label:n[t]||"",value:s}}getMaxBorderWidth(t){let e=0;const i=this.chart;let o,n,s,a,r;if(!t)for(o=0,n=i.data.datasets.length;o"spacing"!==t,_indexable:t=>"spacing"!==t},L.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,o)=>{const n=t.getDatasetMeta(0).controller.getStyle(o);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(o),index:o}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const i=": "+t.formattedValue;return(0,o.b)(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class E extends v{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:n=[],_dataset:s}=e,a=this.chart._animationsDisabled;let{start:r,count:l}=(0,o.q)(e,n,a);this._drawStart=r,this._drawCount=l,(0,o.w)(e)&&(r=0,l=n.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=n;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!a,options:c},t),this.updateElements(n,r,l,t)}updateElements(t,e,i,n){const s="reset"===n,{iScale:a,vScale:r,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:h,includeOptions:d}=this._getSharedOptions(e,n),u=a.axis,p=r.axis,{spanGaps:f,segment:g}=this.options,m=(0,o.x)(f)?f:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||s||"none"===n;let _=e>0&&this.getParsed(e-1);for(let f=e;f0&&Math.abs(i[u]-_[u])>m,g&&(x.parsed=i,x.raw=c.data[f]),d&&(x.options=h||this.resolveDataElementOptions(f,e.active?"active":n)),b||this.updateElement(e,f,x,n),_=i}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,o=t.data||[];if(!o.length)return i;const n=o[0].size(this.resolveDataElementOptions(0)),s=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(i,n,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}E.id="line",E.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},E.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class T extends v{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=(0,o.o)(e._parsed[t].r,i.options.locale);return{label:n[t]||"",value:s}}parseObjectData(t,e,i,n){return o.y.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,i)=>{const o=this.getParsed(i).r;!isNaN(o)&&this.chart.getDataVisibility(i)&&(oe.max&&(e.max=o))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,o=Math.min(e.right-e.left,e.bottom-e.top),n=Math.max(o/2,0),s=(n-Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=n-s*this.index,this.innerRadius=this.outerRadius-s}updateElements(t,e,i,n){const s="reset"===n,a=this.chart,r=a.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,h=l.yCenter,d=l.getIndexAngle(0)-.5*o.P;let u,p=d;const f=360/this.countVisibleElements();for(u=0;u{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++})),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?(0,o.t)(this.resolveDataElementOptions(t,e).angle||i):0}}T.id="polarArea",T.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},T.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map(((e,o)=>{const n=t.getDatasetMeta(0).controller.getStyle(o);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(o),index:o}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class B extends L{}B.id="pie",B.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class I extends v{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,n){return o.y.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta,i=e.dataset,o=e.data||[],n=e.iScale.getLabels();if(i.points=o,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const s={_loop:!0,_fullLoop:n.length===o.length,options:e};this.updateElement(i,void 0,s,t)}this.updateElements(o,0,o.length,t)}updateElements(t,e,i,o){const n=this._cachedMeta.rScale,s="reset"===o;for(let a=e;a{o[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),o}}j.defaults={},j.defaultRoutes=void 0;const R={values:t=>(0,o.b)(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const n=this.chart.options.locale;let s,a=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(s="scientific"),a=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t));return i}(t,i)}const r=(0,o.z)(Math.abs(a)),l=Math.max(Math.min(-1*Math.floor(r),20),0),c={notation:s,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),(0,o.o)(t,n,c)},logarithmic(t,e,i){if(0===t)return"0";const n=t/Math.pow(10,Math.floor((0,o.z)(t)));return 1===n||2===n||5===n?R.numeric.call(this,t,e,i):""}};var F={formatters:R};function z(t,e){const i=t.options.ticks,n=i.maxTicksLimit||function(t){const e=t.options.offset,i=t._tickSize(),o=t._length/i+(e?0:1),n=t._maxLength/i;return Math.floor(Math.min(o,n))}(t),s=i.major.enabled?function(t){const e=[];let i,o;for(i=0,o=t.length;in)return function(t,e,i,o){let n,s=0,a=i[0];for(o=Math.ceil(o),n=0;ns)return e}return Math.max(s,1)}(s,e,n);if(a>0){let t,i;const n=a>1?Math.round((l-r)/(a-1)):null;for(N(e,c,h,(0,o.k)(n)?0:r-n,r),t=0,i=a-1;te.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:F.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),o.d.route("scale.ticks","color","","color"),o.d.route("scale.grid","color","","borderColor"),o.d.route("scale.grid","borderColor","","borderColor"),o.d.route("scale.title","color","","color"),o.d.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),o.d.describe("scales",{_fallback:"scale"}),o.d.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const V=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function W(t,e){const i=[],o=t.length/e,n=t.length;let s=0;for(;sa+r)))return c}function U(t){return t.drawTicks?t.tickLength:0}function K(t,e){if(!t.display)return 0;const i=(0,o.O)(t.font,e),n=(0,o.K)(t.padding);return((0,o.b)(t.text)?t.text.length:1)*i.lineHeight+n.height}function q(t,e,i){let n=(0,o.R)(t);return(i&&"right"!==e||!i&&"right"===e)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class Y extends j{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:n}=this;return t=(0,o.B)(t,Number.POSITIVE_INFINITY),e=(0,o.B)(e,Number.NEGATIVE_INFINITY),i=(0,o.B)(i,Number.POSITIVE_INFINITY),n=(0,o.B)(n,Number.NEGATIVE_INFINITY),{min:(0,o.B)(t,i),max:(0,o.B)(e,n),minDefined:(0,o.g)(t),maxDefined:(0,o.g)(e)}}getMinMax(t){let e,{min:i,max:n,minDefined:s,maxDefined:a}=this.getUserBounds();if(s&&a)return{min:i,max:n};const r=this.getMatchingVisibleMetas();for(let o=0,l=r.length;on?n:i,n=s&&i>n?i:n,{min:(0,o.B)(i,(0,o.B)(n,i)),max:(0,o.B)(n,(0,o.B)(i,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){(0,o.C)(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:n,grace:s,ticks:a}=this.options,r=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=(0,o.D)(this,s,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=r=s||i<=1||!this.isHorizontal())return void(this.labelRotation=n);const h=this._getLabelSizes(),d=h.widest.width,u=h.highest.height,p=(0,o.E)(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/i:p/(i-1),d+6>a&&(a=p/(i-(t.offset?.5:1)),r=this.maxHeight-U(t.grid)-e.padding-K(t.title,this.chart.options.font),l=Math.sqrt(d*d+u*u),c=(0,o.F)(Math.min(Math.asin((0,o.E)((h.highest.height+6)/a,-1,1)),Math.asin((0,o.E)(r/l,-1,1))-Math.asin((0,o.E)(u/l,-1,1)))),c=Math.max(n,Math.min(s,c))),this.labelRotation=c}afterCalculateLabelRotation(){(0,o.C)(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){(0,o.C)(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:n,grid:s}}=this,a=this._isVisible(),r=this.isHorizontal();if(a){const a=K(n,e.options.font);if(r?(t.width=this.maxWidth,t.height=U(s)+a):(t.height=this.maxHeight,t.width=U(s)+a),i.display&&this.ticks.length){const{first:e,last:n,widest:s,highest:a}=this._getLabelSizes(),l=2*i.padding,c=(0,o.t)(this.labelRotation),h=Math.cos(c),d=Math.sin(c);if(r){const e=i.mirror?0:d*s.width+h*a.height;t.height=Math.min(this.maxHeight,t.height+e+l)}else{const e=i.mirror?0:h*s.width+d*a.height;t.width=Math.min(this.maxWidth,t.width+e+l)}this._calculatePadding(e,n,d,h)}}this._handleMargins(),r?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,o){const{ticks:{align:n,padding:s},position:a}=this.options,r=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,d=0;r?l?(h=o*t.width,d=i*e.height):(h=i*t.height,d=o*e.width):"start"===n?d=e.width:"end"===n?h=t.width:"inner"!==n&&(h=t.width/2,d=e.width/2),this.paddingLeft=Math.max((h-a+s)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-c+s)*this.width/(this.width-c),0)}else{let i=e.height/2,o=t.height/2;"start"===n?(i=0,o=t.height):"end"===n&&(i=e.height,o=0),this.paddingTop=i+s,this.paddingBottom=o+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){(0,o.C)(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e{const i=t.gc,o=i.length/2;let n;if(o>e){for(n=0;n({width:s[t]||0,height:a[t]||0});return{first:y(0),last:y(e-1),widest:y(w),highest:y(v),widths:s,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return(0,o.I)(this._alignToPixels?(0,o.J)(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&tr*n?r/i:l/n:l*n0}_computeGridLineItems(t){const e=this.axis,i=this.chart,n=this.options,{grid:s,position:a}=n,r=s.offset,l=this.isHorizontal(),c=this.ticks.length+(r?1:0),h=U(s),d=[],u=s.setContext(this.getContext()),p=u.drawBorder?u.borderWidth:0,f=p/2,g=function(t){return(0,o.J)(i,t,p)};let m,b,_,x,w,v,y,k,C,P,S,A;if("top"===a)m=g(this.bottom),v=this.bottom-h,k=m-f,P=g(t.top)+f,A=t.bottom;else if("bottom"===a)m=g(this.top),P=t.top,A=g(t.bottom)-f,v=m+f,k=this.top+h;else if("left"===a)m=g(this.right),w=this.right-h,y=m-f,C=g(t.left)+f,S=t.right;else if("right"===a)m=g(this.left),C=t.left,S=g(t.right)-f,w=m+f,y=this.left+h;else if("x"===e){if("center"===a)m=g((t.top+t.bottom)/2+.5);else if((0,o.i)(a)){const t=Object.keys(a)[0],e=a[t];m=g(this.chart.scales[t].getPixelForValue(e))}P=t.top,A=t.bottom,v=m+f,k=v+h}else if("y"===e){if("center"===a)m=g((t.left+t.right)/2);else if((0,o.i)(a)){const t=Object.keys(a)[0],e=a[t];m=g(this.chart.scales[t].getPixelForValue(e))}w=m-f,y=w-h,C=t.left,S=t.right}const M=(0,o.v)(n.ticks.maxTicksLimit,c),$=Math.max(1,Math.ceil(c/M));for(b=0;be.value===t));if(i>=0){return e.setContext(this.getContext(i)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,i=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let n,s;const a=(t,e,o)=>{o.width&&o.color&&(i.save(),i.lineWidth=o.width,i.strokeStyle=o.color,i.setLineDash(o.borderDash||[]),i.lineDashOffset=o.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(n=0,s=o.length;n{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",o=[];let n,s;for(n=0,s=e.length;n{const n=i.split("."),s=n.pop(),a=[t].concat(n).join("."),r=e[i].split("."),l=r.pop(),c=r.join(".");o.d.route(a,s,c,l)}))}(e,t.defaultRoutes);t.descriptors&&o.d.describe(e,t.descriptors)}(t,a,i),this.override&&o.d.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,n=this.scope;i in e&&delete e[i],n&&i in o.d[n]&&(delete o.d[n][i],this.override&&delete o.U[i])}}var Q=new class{constructor(){this.controllers=new X(v,"datasets",!0),this.elements=new X(j,"elements"),this.plugins=new X(Object,"plugins"),this.scales=new X(Y,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach((e=>{const n=i||this._getRegistryForType(e);i||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):(0,o.Q)(e,(e=>{const o=i||this._getRegistryForType(e);this._exec(t,o,e)}))}))}_exec(t,e,i){const n=(0,o.W)(t);(0,o.C)(i["before"+n],[],i),e[t](i),(0,o.C)(i["after"+n],[],i)}_getRegistryForType(t){for(let e=0;e0&&this.getParsed(e-1);for(let h=e;h0&&Math.abs(i[p]-x[p])>b,m&&(g.parsed=i,g.raw=c.data[h]),u&&(g.options=d||this.resolveDataElementOptions(h,e.active?"active":n)),_||this.updateElement(e,h,g,n),x=i}this.updateSharedOptions(d,n,h)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,o=i.options&&i.options.borderWidth||0;if(!e.length)return o;const n=e[0].size(this.resolveDataElementOptions(0)),s=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(o,n,s)/2}}J.id="scatter",J.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},J.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var Z=Object.freeze({__proto__:null,BarController:D,BubbleController:O,DoughnutController:L,LineController:E,PolarAreaController:T,PieController:B,RadarController:I,ScatterController:J});function G(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class tt{constructor(t){this.options=t||{}}init(t){}formats(){return G()}parse(t,e){return G()}format(t,e){return G()}add(t,e,i){return G()}diff(t,e,i){return G()}startOf(t,e,i){return G()}endOf(t,e){return G()}}tt.override=function(t){Object.assign(tt.prototype,t)};var et={_date:tt};function it(t,e,i,n){const{controller:s,data:a,_sorted:r}=t,l=s._cachedMeta.iScale;if(l&&e===l.axis&&"r"!==e&&r&&a.length){const t=l._reversePixels?o.Y:o.Z;if(!n)return t(a,e,i);if(s._sharedOptions){const o=a[0],n="function"==typeof o.getRange&&o.getRange(e);if(n){const o=t(a,e,i-n),s=t(a,e,i+n);return{lo:o.lo,hi:s.hi}}}}return{lo:0,hi:a.length-1}}function ot(t,e,i,o,n){const s=t.getSortedVisibleDatasetMetas(),a=i[e];for(let t=0,i=s.length;t{t[a](e[i],n)&&(s.push({element:t,datasetIndex:o,index:l}),r=r||t.inRange(e.x,e.y,n))})),o&&!r?[]:s}var lt={evaluateInteractionItems:ot,modes:{index(t,e,i,n){const s=(0,o.X)(e,t),a=i.axis||"x",r=i.includeInvisible||!1,l=i.intersect?nt(t,s,a,n,r):at(t,s,a,!1,n,r),c=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=l[0].index,i=t.data[e];i&&!i.skip&&c.push({element:i,datasetIndex:t.index,index:e})})),c):[]},dataset(t,e,i,n){const s=(0,o.X)(e,t),a=i.axis||"xy",r=i.includeInvisible||!1;let l=i.intersect?nt(t,s,a,n,r):at(t,s,a,!1,n,r);if(l.length>0){const e=l[0].datasetIndex,i=t.getDatasetMeta(e).data;l=[];for(let t=0;tnt(t,(0,o.X)(e,t),i.axis||"xy",n,i.includeInvisible||!1),nearest(t,e,i,n){const s=(0,o.X)(e,t),a=i.axis||"xy",r=i.includeInvisible||!1;return at(t,s,a,i.intersect,n,r)},x:(t,e,i,n)=>rt(t,(0,o.X)(e,t),"x",i.intersect,n),y:(t,e,i,n)=>rt(t,(0,o.X)(e,t),"y",i.intersect,n)}};const ct=["left","top","right","bottom"];function ht(t,e){return t.filter((t=>t.pos===e))}function dt(t,e){return t.filter((t=>-1===ct.indexOf(t.pos)&&t.box.axis===e))}function ut(t,e){return t.sort(((t,i)=>{const o=e?i:t,n=e?t:i;return o.weight===n.weight?o.index-n.index:o.weight-n.weight}))}function pt(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:o,stackWeight:n}=i;if(!t||!ct.includes(o))continue;const s=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=n}return e}(t),{vBoxMaxWidth:o,hBoxMaxHeight:n}=e;let s,a,r;for(s=0,a=t.length;s{o[t]=Math.max(e[t],i[t])})),o}return o(t?["left","right"]:["top","bottom"])}function _t(t,e,i,o){const n=[];let s,a,r,l,c,h;for(s=0,a=t.length,c=0;st.box.fullSize)),!0),o=ut(ht(e,"left"),!0),n=ut(ht(e,"right")),s=ut(ht(e,"top"),!0),a=ut(ht(e,"bottom")),r=dt(e,"x"),l=dt(e,"y");return{fullSize:i,leftAndTop:o.concat(s),rightAndBottom:n.concat(l).concat(a).concat(r),chartArea:ht(e,"chartArea"),vertical:o.concat(n).concat(l),horizontal:s.concat(a).concat(r)}}(t.boxes),c=l.vertical,h=l.horizontal;(0,o.Q)(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const d=c.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:s,availableWidth:a,availableHeight:r,vBoxMaxWidth:a/2/d,hBoxMaxHeight:r/2}),p=Object.assign({},s);gt(p,(0,o.K)(n));const f=Object.assign({maxPadding:p,w:a,h:r,x:s.left,y:s.top},s),g=pt(c.concat(h),u);_t(l.fullSize,f,u,g),_t(c,f,u,g),_t(h,f,u,g)&&_t(c,f,u,g),function(t){const e=t.maxPadding;function i(i){const o=Math.max(e[i]-t[i],0);return t[i]+=o,o}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(f),wt(l.leftAndTop,f,u,g),f.x+=f.w,f.y+=f.h,wt(l.rightAndBottom,f,u,g),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},(0,o.Q)(l.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class yt{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,o){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,o?Math.floor(e/o):i)}}isAttached(t){return!0}updateConfig(t){}}class kt extends yt{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ct="$chartjs",Pt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},St=t=>null===t||""===t;const At=!!o.a5&&{passive:!0};function Mt(t,e,i){t.canvas.removeEventListener(e,i,At)}function $t(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function Dt(t,e,i){const o=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||$t(i.addedNodes,o),e=e&&!$t(i.removedNodes,o);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}function Ot(t,e,i){const o=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||$t(i.removedNodes,o),e=e&&!$t(i.addedNodes,o);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}const Lt=new Map;let Et=0;function Tt(){const t=window.devicePixelRatio;t!==Et&&(Et=t,Lt.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function Bt(t,e,i){const n=t.canvas,s=n&&(0,o.a2)(n);if(!s)return;const a=(0,o.a4)(((t,e)=>{const o=s.clientWidth;i(t,e),o{const e=t[0],i=e.contentRect.width,o=e.contentRect.height;0===i&&0===o||a(i,o)}));return r.observe(s),function(t,e){Lt.size||window.addEventListener("resize",Tt),Lt.set(t,e)}(t,a),r}function It(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){Lt.delete(t),Lt.size||window.removeEventListener("resize",Tt)}(t)}function jt(t,e,i){const n=t.canvas,s=(0,o.a4)((e=>{null!==t.ctx&&i(function(t,e){const i=Pt[t.type]||t.type,{x:n,y:s}=(0,o.X)(t,e);return{type:i,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==s?s:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,i){t.addEventListener(e,i,At)}(n,e,s),s}class Rt extends yt{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,n=t.getAttribute("height"),s=t.getAttribute("width");if(t[Ct]={initial:{height:n,width:s,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",St(s)){const e=(0,o.a3)(t,"width");void 0!==e&&(t.width=e)}if(St(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=(0,o.a3)(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[Ct])return!1;const i=e[Ct].initial;["height","width"].forEach((t=>{const n=i[t];(0,o.k)(n)?e.removeAttribute(t):e.setAttribute(t,n)}));const n=i.style||{};return Object.keys(n).forEach((t=>{e.style[t]=n[t]})),e.width=e.width,delete e[Ct],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const o=t.$proxies||(t.$proxies={}),n={attach:Dt,detach:Ot,resize:Bt}[e]||jt;o[e]=n(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),o=i[e];if(!o)return;({attach:It,detach:It,resize:It}[e]||Mt)(t,e,o),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,n){return(0,o.a1)(t,e,i,n)}isAttached(t){const e=(0,o.a2)(t);return!(!e||!e.isConnected)}}class Ft{constructor(){this._init=[]}notify(t,e,i,o){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const n=o?this._descriptors(t).filter(o):this._descriptors(t),s=this._notify(n,t,e,i);return"afterDestroy"===e&&(this._notify(n,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,e,i,n){n=n||{};for(const s of t){const t=s.plugin,a=t[i],r=[e,n,s.options];if(!1===(0,o.C)(a,r,t)&&n.cancelable)return!1}return!0}invalidate(){(0,o.k)(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,n=(0,o.v)(i.options&&i.options.plugins,{}),s=function(t){const e={},i=[],o=Object.keys(Q.plugins.items);for(let t=0;tt.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(o(e,i),t,"stop"),this._notify(o(i,e),t,"start")}}function zt(t,e){return e||!1!==t?!0===t?{}:t:null}function Nt(t,{plugin:e,local:i},o,n){const s=t.pluginScopeKeys(e),a=t.getOptionScopes(o,s);return i&&e.defaults&&a.push(e.defaults),t.createResolver(a,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Vt(t,e){const i=o.d.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function Wt(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(i=e.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.charAt(0).toLowerCase();var i}function Ht(t){const e=t.options||(t.options={});e.plugins=(0,o.v)(e.plugins,{}),e.scales=function(t,e){const i=o.U[t.type]||{scales:{}},n=e.scales||{},s=Vt(t.type,e),a=Object.create(null),r=Object.create(null);return Object.keys(n).forEach((t=>{const e=n[t];if(!(0,o.i)(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const l=Wt(t,e),c=function(t,e){return t===e?"_index_":"_value_"}(l,s),h=i.scales||{};a[l]=a[l]||t,r[t]=(0,o.ac)(Object.create(null),[{axis:l},e,h[l],h[c]])})),t.data.datasets.forEach((i=>{const s=i.type||t.type,l=i.indexAxis||Vt(s,e),c=(o.U[s]||{}).scales||{};Object.keys(c).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,l),s=i[e+"AxisID"]||a[e]||e;r[s]=r[s]||Object.create(null),(0,o.ac)(r[s],[{axis:e},n[s],c[t]])}))})),Object.keys(r).forEach((t=>{const e=r[t];(0,o.ac)(e,[o.d.scales[e.type],o.d.scale])})),r}(t,e)}function Ut(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Kt=new Map,qt=new Set;function Yt(t,e){let i=Kt.get(t);return i||(i=e(),Kt.set(t,i),qt.add(i)),i}const Xt=(t,e,i)=>{const n=(0,o.f)(e,i);void 0!==n&&t.add(n)};class Qt{constructor(t){this._config=function(t){return(t=t||{}).data=Ut(t.data),Ht(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Ut(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Ht(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Yt(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Yt(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Yt(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Yt(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let o=i.get(t);return o&&!e||(o=new Map,i.set(t,o)),o}getOptionScopes(t,e,i){const{options:n,type:s}=this,a=this._cachedScopes(t,i),r=a.get(e);if(r)return r;const l=new Set;e.forEach((e=>{t&&(l.add(t),e.forEach((e=>Xt(l,t,e)))),e.forEach((t=>Xt(l,n,t))),e.forEach((t=>Xt(l,o.U[s]||{},t))),e.forEach((t=>Xt(l,o.d,t))),e.forEach((t=>Xt(l,o.a7,t)))}));const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),qt.has(e)&&a.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,o.U[e]||{},o.d.datasets[e]||{},{type:e},o.d,o.a7]}resolveNamedOptions(t,e,i,n=[""]){const s={$shared:!0},{resolver:a,subPrefixes:r}=Jt(this._resolverCache,t,n);let l=a;if(function(t,e){const{isScriptable:i,isIndexable:n}=(0,o.ab)(t);for(const s of e){const e=i(s),a=n(s),r=(a||e)&&t[s];if(e&&((0,o.a8)(r)||Zt(r))||a&&(0,o.b)(r))return!0}return!1}(a,e)){s.$shared=!1,i=(0,o.a8)(i)?i():i;const e=this.createResolver(t,i,r);l=(0,o.a9)(a,i,e)}for(const t of e)s[t]=l[t];return s}createResolver(t,e,i=[""],n){const{resolver:s}=Jt(this._resolverCache,t,i);return(0,o.i)(e)?(0,o.a9)(s,e,void 0,n):s}}function Jt(t,e,i){let n=t.get(e);n||(n=new Map,t.set(e,n));const s=i.join();let a=n.get(s);if(!a){a={resolver:(0,o.aa)(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},n.set(s,a)}return a}const Zt=t=>(0,o.i)(t)&&Object.getOwnPropertyNames(t).reduce(((e,i)=>e||(0,o.a8)(t[i])),!1);const Gt=["top","bottom","left","right","chartArea"];function te(t,e){return"top"===t||"bottom"===t||-1===Gt.indexOf(t)&&"x"===e}function ee(t,e){return function(i,o){return i[t]===o[t]?i[e]-o[e]:i[t]-o[t]}}function ie(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),(0,o.C)(i&&i.onComplete,[t],e)}function oe(t){const e=t.chart,i=e.options.animation;(0,o.C)(i&&i.onProgress,[t],e)}function ne(t){return(0,o.a6)()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const se={},ae=t=>{const e=ne(t);return Object.values(se).filter((t=>t.canvas===e)).pop()};function re(t,e,i){const o=Object.keys(t);for(const n of o){const o=+n;if(o>=e){const s=t[n];delete t[n],(i>0||o>e)&&(t[o+i]=s)}}}class le{constructor(t,e){const i=this.config=new Qt(e),s=ne(t),a=ae(s);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const r=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!(0,o.a6)()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?kt:Rt}(s)),this.platform.updateConfig(i);const l=this.platform.acquireContext(s,r.aspectRatio),c=l&&l.canvas,h=c&&c.height,d=c&&c.width;this.id=(0,o.ad)(),this.ctx=l,this.canvas=c,this.width=d,this.height=h,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Ft,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,o.ae)((t=>this.update(t)),r.resizeDelay||0),this._dataChanges=[],se[this.id]=this,l&&c?(n.listen(this,"complete",ie),n.listen(this,"progress",oe),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:n,_aspectRatio:s}=this;return(0,o.k)(t)?e&&s?s:n?i/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():(0,o.af)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return(0,o.ag)(this.canvas,this.ctx),this}stop(){return n.stop(this),this}resize(t,e){n.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,n=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(n,t,e,s),r=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,(0,o.af)(this,r,!0)&&(this.notifyPlugins("resize",{size:a}),(0,o.C)(i.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};(0,o.Q)(t,((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,n=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let s=[];e&&(s=s.concat(Object.keys(e).map((t=>{const i=e[t],o=Wt(t,i),n="r"===o,s="x"===o;return{options:i,dposition:n?"chartArea":s?"bottom":"left",dtype:n?"radialLinear":s?"category":"linear"}})))),(0,o.Q)(s,(e=>{const s=e.options,a=s.id,r=Wt(a,s),l=(0,o.v)(s.type,e.dtype);void 0!==s.position&&te(s.position,r)===te(e.dposition)||(s.position=e.dposition),n[a]=!0;let c=null;if(a in i&&i[a].type===l)c=i[a];else{c=new(Q.getScale(l))({id:a,type:l,ctx:this.ctx,chart:this}),i[c.id]=c}c.init(s,t)})),(0,o.Q)(n,((t,e)=>{t||delete i[e]})),(0,o.Q)(i,(t=>{vt.configure(this,t,t.options),vt.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;te.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,n;for(this._removeUnreferencedMetasets(),i=0,n=e.length;i{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let t=0,e=this.data.datasets.length;t{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ee("z","_idx"));const{_active:r,_lastEvent:l}=this;l?this._eventHandler(l,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){(0,o.Q)(this.scales,(t=>{vt.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);(0,o.ah)(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:o,count:n}of e){re(t,o,"_removeElements"===i?-n:n)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),n=i(0);for(let t=1;tt.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;vt.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],(0,o.Q)(this.boxes,(t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,n=!i.disabled,s=this.chartArea,a={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(n&&(0,o.L)(e,{left:!1===i.left?0:s.left-i.left,right:!1===i.right?this.width:s.right+i.right,top:!1===i.top?0:s.top-i.top,bottom:!1===i.bottom?this.height:s.bottom+i.bottom}),t.controller.draw(),n&&(0,o.N)(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return(0,o.$)(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,o){const n=lt.modes[e];return"function"==typeof n?n(this,t,i,o):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let o=i.filter((t=>t&&t._dataset===e)).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(o)),o}getContext(){return this.$context||(this.$context=(0,o.h)(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const n=i?"show":"hide",s=this.getDatasetMeta(t),a=s.controller._resolveAnimations(void 0,n);(0,o.j)(e)?(s.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),a.update(s,{visible:i}),this.update((e=>e.datasetIndex===t?n:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),n.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,i,o),t[i]=o},n=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};(0,o.Q)(this.options.events,(t=>i(t,n)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,o)=>{e.addEventListener(this,i,o),t[i]=o},o=(i,o)=>{t[i]&&(e.removeEventListener(this,i,o),delete t[i])},n=(t,e)=>{this.canvas&&this.resize(t,e)};let s;const a=()=>{o("attach",a),this.attached=!0,this.resize(),i("resize",n),i("detach",s)};s=()=>{this.attached=!1,o("resize",n),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():s()}unbindEvents(){(0,o.Q)(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},(0,o.Q)(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const o=i?"set":"remove";let n,s,a,r;for("dataset"===e&&(n=this.getDatasetMeta(t[0].datasetIndex),n.controller["_"+o+"DatasetHoverStyle"]()),a=0,r=t.length;a{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}));!(0,o.ai)(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const o=this.options.hover,n=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),s=n(e,t),a=i?t:n(t,e);s.length&&this.updateHoverStyle(s,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},o=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,o))return;const n=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,o),(n||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:n=[],options:s}=this,a=e,r=this._getActiveElements(t,n,i,a),l=(0,o.aj)(t),c=function(t,e,i,o){return i&&"mouseout"!==t.type?o?e:t:null}(t,this._lastEvent,i,l);i&&(this._lastEvent=null,(0,o.C)(s.onHover,[t,r,this],this),l&&(0,o.C)(s.onClick,[t,r,this],this));const h=!(0,o.ai)(r,n);return(h||e)&&(this._active=r,this._updateHoverStyles(r,n,e)),this._lastEvent=c,h}_getActiveElements(t,e,i,o){if("mouseout"===t.type)return[];if(!i)return e;const n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,o)}}const ce=()=>(0,o.Q)(le.instances,(t=>t._plugins.invalidate())),he=!0;function de(t,e,i){const{startAngle:n,pixelMargin:s,x:a,y:r,outerRadius:l,innerRadius:c}=e;let h=s/l;t.beginPath(),t.arc(a,r,l,n-h,i+h),c>s?(h=s/c,t.arc(a,r,c,i+h,n-h,!0)):t.arc(a,r,s,i+o.H,n-o.H),t.closePath(),t.clip()}function ue(t,e,i,n){const s=(a=t.options.borderRadius,(0,o.al)(a,["outerStart","outerEnd","innerStart","innerEnd"]));var a;const r=(i-e)/2,l=Math.min(r,n*e/2),c=t=>{const e=(i-Math.min(r,t))*n/2;return(0,o.E)(t,0,Math.min(r,e))};return{outerStart:c(s.outerStart),outerEnd:c(s.outerEnd),innerStart:(0,o.E)(s.innerStart,0,l),innerEnd:(0,o.E)(s.innerEnd,0,l)}}function pe(t,e,i,o){return{x:i+t*Math.cos(e),y:o+t*Math.sin(e)}}function fe(t,e,i,n,s,a){const{x:r,y:l,startAngle:c,pixelMargin:h,innerRadius:d}=e,u=Math.max(e.outerRadius+n+i-h,0),p=d>0?d+n+i+h:0;let f=0;const g=s-c;if(n){const t=((d>0?d-n:0)+(u>0?u-n:0))/2;f=(g-(0!==t?g*t/(t+n):g))/2}const m=(g-Math.max(.001,g*u-i/o.P)/u)/2,b=c+m+f,_=s-m-f,{outerStart:x,outerEnd:w,innerStart:v,innerEnd:y}=ue(e,p,u,_-b),k=u-x,C=u-w,P=b+x/k,S=_-w/C,A=p+v,M=p+y,$=b+v/A,D=_-y/M;if(t.beginPath(),a){if(t.arc(r,l,u,P,S),w>0){const e=pe(C,S,r,l);t.arc(e.x,e.y,w,S,_+o.H)}const e=pe(M,_,r,l);if(t.lineTo(e.x,e.y),y>0){const e=pe(M,D,r,l);t.arc(e.x,e.y,y,_+o.H,D+Math.PI)}if(t.arc(r,l,p,_-y/p,b+v/p,!0),v>0){const e=pe(A,$,r,l);t.arc(e.x,e.y,v,$+Math.PI,b-o.H)}const i=pe(k,b,r,l);if(t.lineTo(i.x,i.y),x>0){const e=pe(k,P,r,l);t.arc(e.x,e.y,x,b-o.H,P)}}else{t.moveTo(r,l);const e=Math.cos(P)*u+r,i=Math.sin(P)*u+l;t.lineTo(e,i);const o=Math.cos(S)*u+r,n=Math.sin(S)*u+l;t.lineTo(o,n)}t.closePath()}function ge(t,e,i,n,s,a){const{options:r}=e,{borderWidth:l,borderJoinStyle:c}=r,h="inner"===r.borderAlign;l&&(h?(t.lineWidth=2*l,t.lineJoin=c||"round"):(t.lineWidth=l,t.lineJoin=c||"bevel"),e.fullCircles&&function(t,e,i){const{x:n,y:s,startAngle:a,pixelMargin:r,fullCircles:l}=e,c=Math.max(e.outerRadius-r,0),h=e.innerRadius+r;let d;for(i&&de(t,e,a+o.T),t.beginPath(),t.arc(n,s,h,a+o.T,a,!0),d=0;d{Q.add(...t),ce()}},unregister:{enumerable:he,value:(...t)=>{Q.remove(...t),ce()}}});class me extends j{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.getProps(["x","y"],i),{angle:s,distance:a}=(0,o.a0)(n,{x:t,y:e}),{startAngle:r,endAngle:l,innerRadius:c,outerRadius:h,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=this.options.spacing/2,p=(0,o.v)(d,l-r)>=o.T||(0,o.p)(s,r,l),f=(0,o.ak)(a,c+u,h+u);return p&&f}getCenterPoint(t){const{x:e,y:i,startAngle:o,endAngle:n,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:r,spacing:l}=this.options,c=(o+n)/2,h=(s+a+l+r)/2;return{x:e+Math.cos(c)*h,y:i+Math.sin(c)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,n=(e.offset||0)/2,s=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>o.T?Math.floor(i/o.T):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let r=0;if(n){r=n/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*r,Math.sin(e)*r),this.circumference>=o.P&&(r=n)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const l=function(t,e,i,n,s){const{fullCircles:a,startAngle:r,circumference:l}=e;let c=e.endAngle;if(a){fe(t,e,i,n,r+o.T,s);for(let e=0;er&&s>r;return{count:o,start:l,loop:e.loop,ilen:c(a+(c?r-t:t))%s,x=()=>{p!==f&&(t.lineTo(m,f),t.lineTo(m,p),t.lineTo(m,g))};for(l&&(d=n[_(0)],t.moveTo(d.x,d.y)),h=0;h<=r;++h){if(d=n[_(h)],d.skip)continue;const e=d.x,i=d.y,o=0|e;o===u?(if&&(f=i),m=(b*m+e)/++b):(x(),t.lineTo(e,i),u=o,b=0,p=f=i),g=i}x()}function ye(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i)?ve:we}me.id="arc",me.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},me.defaultRoutes={backgroundColor:"backgroundColor"};const ke="function"==typeof Path2D;function Ce(t,e,i,o){ke&&!e.options.segment?function(t,e,i,o){let n=e._path;n||(n=e._path=new Path2D,e.path(n,i,o)&&n.closePath()),be(t,e.options),t.stroke(n)}(t,e,i,o):function(t,e,i,o){const{segments:n,options:s}=e,a=ye(e);for(const r of n)be(t,s,r.style),t.beginPath(),a(t,e,r,{start:i,end:i+o-1})&&t.closePath(),t.stroke()}(t,e,i,o)}class Pe extends j{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const n=i.spanGaps?this._loop:this._fullLoop;(0,o.am)(this._points,i,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=(0,o.an)(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,n=t[e],s=this.points,a=(0,o.ao)(this,{property:e,start:n,end:n});if(!a.length)return;const r=[],l=function(t){return t.stepped?o.ap:t.tension||"monotone"===t.cubicInterpolationMode?o.aq:o.ar}(i);let c,h;for(c=0,h=a.length;c"borderDash"!==t&&"fill"!==t};class Ae extends j{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const o=this.options,{x:n,y:s}=this.getProps(["x","y"],i);return Math.pow(t-n,2)+Math.pow(e-s,2){Ie(t)}))}var Re={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void je(t);const n=t.width;t.data.datasets.forEach(((e,s)=>{const{_data:a,indexAxis:r}=e,l=t.getDatasetMeta(s),c=a||e.data;if("y"===(0,o.a)([r,t.options.indexAxis]))return;if(!l.controller.supportsDecimation)return;const h=t.scales[l.xAxisID];if("linear"!==h.type&&"time"!==h.type)return;if(t.options.parsing)return;let{start:d,count:u}=function(t,e){const i=e.length;let n,s=0;const{iScale:a}=t,{min:r,max:l,minDefined:c,maxDefined:h}=a.getUserBounds();return c&&(s=(0,o.E)((0,o.Z)(e,a.axis,r).lo,0,i-1)),n=h?(0,o.E)((0,o.Z)(e,a.axis,l).hi+1,s,i)-s:i-s,{start:s,count:n}}(l,c);if(u<=(i.threshold||4*n))return void Ie(e);let p;switch((0,o.k)(a)&&(e._data=c,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":p=function(t,e,i,o,n){const s=n.samples||o;if(s>=i)return t.slice(e,e+i);const a=[],r=(i-2)/(s-2);let l=0;const c=e+i-1;let h,d,u,p,f,g=e;for(a[l++]=t[g],h=0;hu&&(u=p,d=t[o],f=o);a[l++]=d,g=f}return a[l++]=t[c],a}(c,d,u,n,i);break;case"min-max":p=function(t,e,i,n){let s,a,r,l,c,h,d,u,p,f,g=0,m=0;const b=[],_=e+i-1,x=t[e].x,w=t[_].x-x;for(s=e;sf&&(f=l,d=s),g=(m*g+a.x)/++m;else{const i=s-1;if(!(0,o.k)(h)&&!(0,o.k)(d)){const e=Math.min(h,d),o=Math.max(h,d);e!==u&&e!==i&&b.push({...t[e],x:g}),o!==u&&o!==i&&b.push({...t[o],x:g})}s>0&&i!==u&&b.push(t[i]),b.push(a),c=e,m=0,p=f=l,h=d=u=s}}return b}(c,d,u,n);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=p}))},destroy(t){je(t)}};function Fe(t,e,i,n){if(n)return;let s=e[t],a=i[t];return"angle"===t&&(s=(0,o.az)(s),a=(0,o.az)(a)),{property:t,start:s,end:a}}function ze(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function Ne(t,e,i,o){return t&&e?o(t[i],e[i]):t?t[i]:e?e[i]:0}function Ve(t,e){let i=[],n=!1;return(0,o.b)(t)?(n=!0,i=t):i=function(t,e){const{x:i=null,y:o=null}=t||{},n=e.points,s=[];return e.segments.forEach((({start:t,end:e})=>{e=ze(t,e,n);const a=n[t],r=n[e];null!==o?(s.push({x:a.x,y:o}),s.push({x:r.x,y:o})):null!==i&&(s.push({x:i,y:a.y}),s.push({x:i,y:r.y}))})),s}(t,e),i.length?new Pe({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function We(t){return t&&!1!==t.fill}function He(t,e,i){let n=t[e].fill;const s=[e];let a;if(!i)return n;for(;!1!==n&&-1===s.indexOf(n);){if(!(0,o.g)(n))return n;if(a=t[n],!a)return!1;if(a.visible)return n;s.push(n),n=a.fill}return!1}function Ue(t,e,i){const n=function(t){const e=t.options,i=e.fill;let n=(0,o.v)(i&&i.target,i);void 0===n&&(n=!!e.backgroundColor);if(!1===n||null===n)return!1;if(!0===n)return"origin";return n}(t);if((0,o.i)(n))return!isNaN(n.value)&&n;let s=parseFloat(n);return(0,o.g)(s)&&Math.floor(s)===s?function(t,e,i,o){"-"!==t&&"+"!==t||(i=e+i);if(i===e||i<0||i>=o)return!1;return i}(n[0],e,s,i):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function Ke(t,e,i){const o=[];for(let n=0;n=0;--e){const i=n[e].$filler;i&&(i.line.updateControlPoints(s,i.axis),o&&i.fill&&Qe(t.ctx,i,s))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const o=t.getSortedVisibleDatasetMetas();for(let e=o.length-1;e>=0;--e){const i=o[e].$filler;We(i)&&Qe(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const o=e.meta.$filler;We(o)&&"beforeDatasetDraw"===i.drawTime&&Qe(t.ctx,o,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ii=(t,e)=>{let{boxHeight:i=e,boxWidth:o=e}=t;return t.usePointStyle&&(i=Math.min(i,e),o=t.pointStyleWidth||Math.min(o,e)),{boxWidth:o,boxHeight:i,itemHeight:Math.max(e,i)}};class oi extends j{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=(0,o.C)(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,n=(0,o.O)(i.font),s=n.size,a=this._computeTitleHeight(),{boxWidth:r,itemHeight:l}=ii(i,s);let c,h;e.font=n.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(a,s,r,l)+10):(h=this.maxHeight,c=this._fitCols(a,s,r,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,o){const{ctx:n,maxWidth:s,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],l=this.lineWidths=[0],c=o+a;let h=t;n.textAlign="left",n.textBaseline="middle";let d=-1,u=-c;return this.legendItems.forEach(((t,p)=>{const f=i+e/2+n.measureText(t.text).width;(0===p||l[l.length-1]+f+2*a>s)&&(h+=c,l[l.length-(p>0?0:1)]=0,u+=c,d++),r[p]={left:0,top:u,row:d,width:f,height:o},l[l.length-1]+=f+a})),h}_fitCols(t,e,i,o){const{ctx:n,maxHeight:s,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],l=this.columnSizes=[],c=s-t;let h=a,d=0,u=0,p=0,f=0;return this.legendItems.forEach(((t,s)=>{const g=i+e/2+n.measureText(t.text).width;s>0&&u+o+2*a>c&&(h+=d+a,l.push({width:d,height:u}),p+=d+a,f++,d=u=0),r[s]={left:p,top:u,col:f,width:g,height:o},d=Math.max(d,g),u+=o+a})),h+=d,l.push({width:d,height:u}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:n},rtl:s}}=this,a=(0,o.aA)(s,this.left,this.width);if(this.isHorizontal()){let s=0,r=(0,o.S)(i,this.left+n,this.right-this.lineWidths[s]);for(const l of e)s!==l.row&&(s=l.row,r=(0,o.S)(i,this.left+n,this.right-this.lineWidths[s])),l.top+=this.top+t+n,l.left=a.leftForLtr(a.x(r),l.width),r+=l.width+n}else{let s=0,r=(0,o.S)(i,this.top+t+n,this.bottom-this.columnSizes[s].height);for(const l of e)l.col!==s&&(s=l.col,r=(0,o.S)(i,this.top+t+n,this.bottom-this.columnSizes[s].height)),l.top=r,l.left+=this.left+n,l.left=a.leftForLtr(a.x(l.left),l.width),r+=l.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;(0,o.L)(t,this),this._draw(),(0,o.N)(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:n}=this,{align:s,labels:a}=t,r=o.d.color,l=(0,o.aA)(t.rtl,this.left,this.width),c=(0,o.O)(a.font),{color:h,padding:d}=a,u=c.size,p=u/2;let f;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;const{boxWidth:g,boxHeight:m,itemHeight:b}=ii(a,u),_=this.isHorizontal(),x=this._computeTitleHeight();f=_?{x:(0,o.S)(s,this.left+d,this.right-i[0]),y:this.top+d+x,line:0}:{x:this.left+d,y:(0,o.S)(s,this.top+x+d,this.bottom-e[0].height),line:0},(0,o.aB)(this.ctx,t.textDirection);const w=b+d;this.legendItems.forEach(((v,y)=>{n.strokeStyle=v.fontColor||h,n.fillStyle=v.fontColor||h;const k=n.measureText(v.text).width,C=l.textAlign(v.textAlign||(v.textAlign=a.textAlign)),P=g+p+k;let S=f.x,A=f.y;l.setWidth(this.width),_?y>0&&S+P+d>this.right&&(A=f.y+=w,f.line++,S=f.x=(0,o.S)(s,this.left+d,this.right-i[f.line])):y>0&&A+w>this.bottom&&(S=f.x=S+e[f.line].width+d,f.line++,A=f.y=(0,o.S)(s,this.top+x+d,this.bottom-e[f.line].height));!function(t,e,i){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;n.save();const s=(0,o.v)(i.lineWidth,1);if(n.fillStyle=(0,o.v)(i.fillStyle,r),n.lineCap=(0,o.v)(i.lineCap,"butt"),n.lineDashOffset=(0,o.v)(i.lineDashOffset,0),n.lineJoin=(0,o.v)(i.lineJoin,"miter"),n.lineWidth=s,n.strokeStyle=(0,o.v)(i.strokeStyle,r),n.setLineDash((0,o.v)(i.lineDash,[])),a.usePointStyle){const r={radius:m*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:s},c=l.xPlus(t,g/2),h=e+p;(0,o.aE)(n,r,c,h,a.pointStyleWidth&&g)}else{const a=e+Math.max((u-m)/2,0),r=l.leftForLtr(t,g),c=(0,o.ax)(i.borderRadius);n.beginPath(),Object.values(c).some((t=>0!==t))?(0,o.av)(n,{x:r,y:a,w:g,h:m,radius:c}):n.rect(r,a,g,m),n.fill(),0!==s&&n.stroke()}n.restore()}(l.x(S),A,v),S=(0,o.aC)(C,S+g+p,_?S+P:this.right,t.rtl),function(t,e,i){(0,o.M)(n,i.text,t,e+b/2,c,{strikethrough:i.hidden,textAlign:l.textAlign(i.textAlign)})}(l.x(S),A,v),_?f.x+=P+d:f.y+=w})),(0,o.aD)(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=(0,o.O)(e.font),n=(0,o.K)(e.padding);if(!e.display)return;const s=(0,o.aA)(t.rtl,this.left,this.width),a=this.ctx,r=e.position,l=i.size/2,c=n.top+l;let h,d=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),h=this.top+c,d=(0,o.S)(t.align,d,this.right-u);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);h=c+(0,o.S)(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const p=(0,o.S)(r,d,d+u);a.textAlign=s.textAlign((0,o.R)(r)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=i.string,(0,o.M)(a,e.text,p,h,i)}_computeTitleHeight(){const t=this.options.title,e=(0,o.O)(t.font),i=(0,o.K)(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,n,s;if((0,o.ak)(t,this.left,this.right)&&(0,o.ak)(e,this.top,this.bottom))for(s=this.legendHitBoxes,i=0;it.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:n,textAlign:s,color:a}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const r=t.controller.getStyle(i?0:void 0),l=(0,o.K)(r.borderWidth);return{text:e[t.index].label,fillStyle:r.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:r.borderColor,pointStyle:n||r.pointStyle,rotation:r.rotation,textAlign:s||r.textAlign,borderRadius:0,datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class si extends j{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const n=(0,o.b)(i.text)?i.text.length:1;this._padding=(0,o.K)(i.padding);const s=n*(0,o.O)(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:n,right:s,options:a}=this,r=a.align;let l,c,h,d=0;return this.isHorizontal()?(c=(0,o.S)(r,i,s),h=e+t,l=s-i):("left"===a.position?(c=i+t,h=(0,o.S)(r,n,e),d=-.5*o.P):(c=s-t,h=(0,o.S)(r,e,n),d=.5*o.P),l=n-e),{titleX:c,titleY:h,maxWidth:l,rotation:d}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=(0,o.O)(e.font),n=i.lineHeight/2+this._padding.top,{titleX:s,titleY:a,maxWidth:r,rotation:l}=this._drawArgs(n);(0,o.M)(t,e.text,0,0,i,{color:e.color,maxWidth:r,rotation:l,textAlign:(0,o.R)(e.align),textBaseline:"middle",translation:[s,a]})}}var ai={id:"title",_element:si,start(t,e,i){!function(t,e){const i=new si({ctx:t.ctx,options:e,chart:t});vt.configure(t,i,e),vt.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;vt.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const o=t.titleBlock;vt.configure(t,o,i),o.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ri=new WeakMap;var li={id:"subtitle",start(t,e,i){const o=new si({ctx:t.ctx,options:i,chart:t});vt.configure(t,o,i),vt.addBox(t,o),ri.set(t,o)},stop(t){vt.removeBox(t,ri.get(t)),ri.delete(t)},beforeUpdate(t,e,i){const o=ri.get(t);vt.configure(t,o,i),o.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ci={average(t){if(!t.length)return!1;let e,i,o=0,n=0,s=0;for(e=0,i=t.length;e-1?t.split("\n"):t}function ui(t,e){const{element:i,datasetIndex:o,index:n}=e,s=t.getDatasetMeta(o).controller,{label:a,value:r}=s.getLabelAndValue(n);return{chart:t,label:a,parsed:s.getParsed(n),raw:t.data.datasets[o].data[n],formattedValue:r,dataset:s.getDataset(),dataIndex:n,datasetIndex:o,element:i}}function pi(t,e){const i=t.chart.ctx,{body:n,footer:s,title:a}=t,{boxWidth:r,boxHeight:l}=e,c=(0,o.O)(e.bodyFont),h=(0,o.O)(e.titleFont),d=(0,o.O)(e.footerFont),u=a.length,p=s.length,f=n.length,g=(0,o.K)(e.padding);let m=g.height,b=0,_=n.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(_+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*h.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),_){m+=f*(e.displayColors?Math.max(l,c.lineHeight):c.lineHeight)+(_-f)*c.lineHeight+(_-1)*e.bodySpacing}p&&(m+=e.footerMarginTop+p*d.lineHeight+(p-1)*e.footerSpacing);let x=0;const w=function(t){b=Math.max(b,i.measureText(t).width+x)};return i.save(),i.font=h.string,(0,o.Q)(t.title,w),i.font=c.string,(0,o.Q)(t.beforeBody.concat(t.afterBody),w),x=e.displayColors?r+2+e.boxPadding:0,(0,o.Q)(n,(t=>{(0,o.Q)(t.before,w),(0,o.Q)(t.lines,w),(0,o.Q)(t.after,w)})),x=0,i.font=d.string,(0,o.Q)(t.footer,w),i.restore(),b+=g.width,{width:b,height:m}}function fi(t,e,i,o){const{x:n,width:s}=i,{width:a,chartArea:{left:r,right:l}}=t;let c="center";return"center"===o?c=n<=(r+l)/2?"left":"right":n<=s/2?c="left":n>=a-s/2&&(c="right"),function(t,e,i,o){const{x:n,width:s}=o,a=i.caretSize+i.caretPadding;return"left"===t&&n+s+a>e.width||"right"===t&&n-s-a<0||void 0}(c,t,e,i)&&(c="center"),c}function gi(t,e,i){const o=i.yAlign||e.yAlign||function(t,e){const{y:i,height:o}=e;return it.height-o/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||fi(t,e,i,o),yAlign:o}}function mi(t,e,i,n){const{caretSize:s,caretPadding:a,cornerRadius:r}=t,{xAlign:l,yAlign:c}=i,h=s+a,{topLeft:d,topRight:u,bottomLeft:p,bottomRight:f}=(0,o.ax)(r);let g=function(t,e){let{x:i,width:o}=t;return"right"===e?i-=o:"center"===e&&(i-=o/2),i}(e,l);const m=function(t,e,i){let{y:o,height:n}=t;return"top"===e?o+=i:o-="bottom"===e?n+i:n/2,o}(e,c,h);return"center"===c?"left"===l?g+=h:"right"===l&&(g-=h):"left"===l?g-=Math.max(d,p)+s:"right"===l&&(g+=Math.max(u,f)+s),{x:(0,o.E)(g,0,n.width-e.width),y:(0,o.E)(m,0,n.height-e.height)}}function bi(t,e,i){const n=(0,o.K)(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function _i(t){return hi([],di(t))}function xi(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class wi extends j{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),o=i.enabled&&e.options.animation&&i.animations,n=new c(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,i=this._tooltipItems,(0,o.h)(t,{tooltip:e,tooltipItems:i,type:"tooltip"})));var t,e,i}getTitle(t,e){const{callbacks:i}=e,o=i.beforeTitle.apply(this,[t]),n=i.title.apply(this,[t]),s=i.afterTitle.apply(this,[t]);let a=[];return a=hi(a,di(o)),a=hi(a,di(n)),a=hi(a,di(s)),a}getBeforeBody(t,e){return _i(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,n=[];return(0,o.Q)(t,(t=>{const e={before:[],lines:[],after:[]},o=xi(i,t);hi(e.before,di(o.beforeLabel.call(this,t))),hi(e.lines,o.label.call(this,t)),hi(e.after,di(o.afterLabel.call(this,t))),n.push(e)})),n}getAfterBody(t,e){return _i(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,o=i.beforeFooter.apply(this,[t]),n=i.footer.apply(this,[t]),s=i.afterFooter.apply(this,[t]);let a=[];return a=hi(a,di(o)),a=hi(a,di(n)),a=hi(a,di(s)),a}_createItems(t){const e=this._active,i=this.chart.data,n=[],s=[],a=[];let r,l,c=[];for(r=0,l=e.length;rt.filter(e,o,n,i)))),t.itemSort&&(c=c.sort(((e,o)=>t.itemSort(e,o,i)))),(0,o.Q)(c,(e=>{const i=xi(t.callbacks,e);n.push(i.labelColor.call(this,e)),s.push(i.labelPointStyle.call(this,e)),a.push(i.labelTextColor.call(this,e))})),this.labelColors=n,this.labelPointStyles=s,this.labelTextColors=a,this.dataPoints=c,c}update(t,e){const i=this.options.setContext(this.getContext()),o=this._active;let n,s=[];if(o.length){const t=ci[i.position].call(this,o,this._eventPosition);s=this._createItems(i),this.title=this.getTitle(s,i),this.beforeBody=this.getBeforeBody(s,i),this.body=this.getBody(s,i),this.afterBody=this.getAfterBody(s,i),this.footer=this.getFooter(s,i);const e=this._size=pi(this,i),a=Object.assign({},t,e),r=gi(this.chart,i,a),l=mi(i,a,r,this.chart);this.xAlign=r.xAlign,this.yAlign=r.yAlign,n={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=s,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,o){const n=this.getCaretPosition(t,i,o);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){const{xAlign:n,yAlign:s}=this,{caretSize:a,cornerRadius:r}=i,{topLeft:l,topRight:c,bottomLeft:h,bottomRight:d}=(0,o.ax)(r),{x:u,y:p}=t,{width:f,height:g}=e;let m,b,_,x,w,v;return"center"===s?(w=p+g/2,"left"===n?(m=u,b=m-a,x=w+a,v=w-a):(m=u+f,b=m+a,x=w-a,v=w+a),_=m):(b="left"===n?u+Math.max(l,h)+a:"right"===n?u+f-Math.max(c,d)-a:this.caretX,"top"===s?(x=p,w=x-a,m=b-a,_=b+a):(x=p+g,w=x+a,m=b+a,_=b-a),v=x),{x1:m,x2:b,x3:_,y1:x,y2:w,y3:v}}drawTitle(t,e,i){const n=this.title,s=n.length;let a,r,l;if(s){const c=(0,o.aA)(i.rtl,this.x,this.width);for(t.x=bi(this,i.titleAlign,i),e.textAlign=c.textAlign(i.titleAlign),e.textBaseline="middle",a=(0,o.O)(i.titleFont),r=i.titleSpacing,e.fillStyle=i.titleColor,e.font=a.string,l=0;l0!==t))?(t.beginPath(),t.fillStyle=s.multiKeyBackground,(0,o.av)(t,{x:e,y:g,w:c,h:l,radius:r}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),(0,o.av)(t,{x:i,y:g+1,w:c-2,h:l-2,radius:r}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(e,g,c,l),t.strokeRect(e,g,c,l),t.fillStyle=a.backgroundColor,t.fillRect(i,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:n}=this,{bodySpacing:s,bodyAlign:a,displayColors:r,boxHeight:l,boxWidth:c,boxPadding:h}=i,d=(0,o.O)(i.bodyFont);let u=d.lineHeight,p=0;const f=(0,o.aA)(i.rtl,this.x,this.width),g=function(i){e.fillText(i,f.x(t.x+p),t.y+u/2),t.y+=u+s},m=f.textAlign(a);let b,_,x,w,v,y,k;for(e.textAlign=a,e.textBaseline="middle",e.font=d.string,t.x=bi(this,m,i),e.fillStyle=i.bodyColor,(0,o.Q)(this.beforeBody,g),p=r&&"right"!==m?"center"===a?c/2+h:c+2+h:0,w=0,y=n.length;w0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,o=i&&i.x,n=i&&i.y;if(o||n){const i=ci[t.position].call(this,this._active,this._eventPosition);if(!i)return;const s=this._size=pi(this,t),a=Object.assign({},i,this._size),r=gi(e,t,a),l=mi(t,a,r,e);o._to===l.x&&n._to===l.y||(this.xAlign=r.xAlign,this.yAlign=r.yAlign,this.width=s.width,this.height=s.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const a=(0,o.K)(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=i,this.drawBackground(s,t,n,e),(0,o.aB)(t,e.textDirection),s.y+=a.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),(0,o.aD)(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,n=t.map((({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}})),s=!(0,o.ai)(i,n),a=this._positionChanged(n,e);(s||a)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,s=this._active||[],a=this._getActiveElements(t,s,e,i),r=this._positionChanged(a,t),l=e||!(0,o.ai)(a,s)||r;return l&&(this._active=a,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,i,o){const n=this.options;if("mouseout"===t.type)return[];if(!o)return e;const s=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&s.reverse(),s}_positionChanged(t,e){const{caretX:i,caretY:o,options:n}=this,s=ci[n.position].call(this,t,e);return!1!==s&&(i!==s.x||o!==s.y)}}wi.positioners=ci;var vi={id:"tooltip",_element:wi,positioners:ci,afterInit(t,e,i){i&&(t.tooltip=new wi({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",i))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:o.aF,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,o=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(o>0&&e.dataIndex"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},yi=Object.freeze({__proto__:null,Decimation:Re,Filler:ei,Legend:ni,SubTitle:li,Title:ai,Tooltip:vi});function ki(t,e,i,o){const n=t.indexOf(e);if(-1===n)return((t,e,i,o)=>("string"==typeof e?(i=t.push(e)-1,o.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,o);return n!==t.lastIndexOf(e)?i:n}class Ci extends Y{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:o}of e)t[i]===o&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if((0,o.k)(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:(0,o.E)(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:ki(i,t,(0,o.v)(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:o}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(o=this.getLabels().length-1)),this.min=i,this.max=o}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,o=[];let n=this.getLabels();n=0===t&&e===n.length-1?n:n.slice(t,e+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)o.push({value:i});return o}getLabelForValue(t){const e=this.getLabels();return t>=0&&te.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Pi(t,e,{horizontal:i,minRotation:n}){const s=(0,o.t)(n),a=(i?Math.sin(s):Math.cos(s))||.001,r=.75*e*(""+t).length;return Math.min(e/a,r)}Ci.id="category",Ci.defaults={ticks:{callback:Ci.prototype.getLabelForValue}};class Si extends Y{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return(0,o.k)(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:n,max:s}=this;const a=t=>n=e?n:t,r=t=>s=i?s:t;if(t){const t=(0,o.s)(n),e=(0,o.s)(s);t<0&&e<0?r(0):t>0&&e>0&&a(0)}if(n===s){let e=1;(s>=Number.MAX_SAFE_INTEGER||n<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*s)),r(s+e),t||a(n-e)}this.min=n,this.max=s}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:o}=t;return o?(e=Math.ceil(this.max/o)-Math.floor(this.min/o)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${o} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const n=function(t,e){const i=[],{bounds:n,step:s,min:a,max:r,precision:l,count:c,maxTicks:h,maxDigits:d,includeBounds:u}=t,p=s||1,f=h-1,{min:g,max:m}=e,b=!(0,o.k)(a),_=!(0,o.k)(r),x=!(0,o.k)(c),w=(m-g)/(d+1);let v,y,k,C,P=(0,o.aI)((m-g)/f/p)*p;if(P<1e-14&&!b&&!_)return[{value:g},{value:m}];C=Math.ceil(m/P)-Math.floor(g/P),C>f&&(P=(0,o.aI)(C*P/f/p)*p),(0,o.k)(l)||(v=Math.pow(10,l),P=Math.ceil(P*v)/v),"ticks"===n?(y=Math.floor(g/P)*P,k=Math.ceil(m/P)*P):(y=g,k=m),b&&_&&s&&(0,o.aJ)((r-a)/s,P/1e3)?(C=Math.round(Math.min((r-a)/P,h)),P=(r-a)/C,y=a,k=r):x?(y=b?a:y,k=_?r:k,C=c-1,P=(k-y)/C):(C=(k-y)/P,C=(0,o.aK)(C,Math.round(C),P/1e3)?Math.round(C):Math.ceil(C));const S=Math.max((0,o.aL)(P),(0,o.aL)(y));v=Math.pow(10,(0,o.k)(l)?S:l),y=Math.round(y*v)/v,k=Math.round(k*v)/v;let A=0;for(b&&(u&&y!==a?(i.push({value:a}),y0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=(0,o.g)(t)?Math.max(0,t):null,this.max=(0,o.g)(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,n=this.max;const s=e=>i=t?i:e,a=t=>n=e?n:t,r=(t,e)=>Math.pow(10,Math.floor((0,o.z)(t))+e);i===n&&(i<=0?(s(1),a(10)):(s(r(i,-1)),a(r(n,1)))),i<=0&&s(r(n,-1)),n<=0&&a(r(i,1)),this._zero&&this.min!==this._suggestedMin&&i===r(this.min,0)&&s(r(i,-1)),this.min=i,this.max=n}buildTicks(){const t=this.options,e=function(t,e){const i=Math.floor((0,o.z)(e.max)),n=Math.ceil(e.max/Math.pow(10,i)),s=[];let a=(0,o.B)(t.min,Math.pow(10,Math.floor((0,o.z)(e.min)))),r=Math.floor((0,o.z)(a)),l=Math.floor(a/Math.pow(10,r)),c=r<0?Math.pow(10,Math.abs(r)):1;do{s.push({value:a,major:Mi(a)}),++l,10===l&&(l=1,++r,c=r>=0?1:c),a=Math.round(l*Math.pow(10,r)*c)/c}while(rn?{start:e-i,end:e}:{start:e,end:e+i}}function Li(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),n=[],s=[],a=t._pointLabels.length,r=t.options.pointLabels,l=r.centerPointLabels?o.P/a:0;for(let u=0;ue.r&&(r=(o.end-e.r)/s,t.r=Math.max(t.r,e.r+r)),n.starte.b&&(l=(n.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function Ti(t){return 0===t||180===t?"center":t<180?"left":"right"}function Bi(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function Ii(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}function ji(t,e,i,n){const{ctx:s}=t;if(i)s.arc(t.xCenter,t.yCenter,e,0,o.T);else{let i=t.getPointPosition(0,e);s.moveTo(i.x,i.y);for(let o=1;o{const i=(0,o.C)(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?Li(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,o){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-o)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,o))}getIndexAngle(t){const e=o.T/(this._pointLabels.length||1),i=this.options.startAngle||0;return(0,o.az)(t*e+(0,o.t)(i))}getDistanceFromCenterForValue(t){if((0,o.k)(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if((0,o.k)(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t=0;s--){const e=n.setContext(t.getPointLabelContext(s)),a=(0,o.O)(e.font),{x:r,y:l,textAlign:c,left:h,top:d,right:u,bottom:p}=t._pointLabelItems[s],{backdropColor:f}=e;if(!(0,o.k)(f)){const t=(0,o.ax)(e.borderRadius),n=(0,o.K)(e.backdropPadding);i.fillStyle=f;const s=h-n.left,a=d-n.top,r=u-h+n.width,l=p-d+n.height;Object.values(t).some((t=>0!==t))?(i.beginPath(),(0,o.av)(i,{x:s,y:a,w:r,h:l,radius:t}),i.fill()):i.fillRect(s,a,r,l)}(0,o.M)(i,t._pointLabels[s],r,l+a.lineHeight/2,a,{color:e.color,textAlign:c,textBaseline:"middle"})}}(this,s),n.display&&this.ticks.forEach(((t,e)=>{if(0!==e){r=this.getDistanceFromCenterForValue(t.value);!function(t,e,i,o){const n=t.ctx,s=e.circular,{color:a,lineWidth:r}=e;!s&&!o||!a||!r||i<0||(n.save(),n.strokeStyle=a,n.lineWidth=r,n.setLineDash(e.borderDash),n.lineDashOffset=e.borderDashOffset,n.beginPath(),ji(t,i,s,o),n.closePath(),n.stroke(),n.restore())}(this,n.setContext(this.getContext(e-1)),r,s)}})),i.display){for(t.save(),a=s-1;a>=0;a--){const o=i.setContext(this.getPointLabelContext(a)),{color:n,lineWidth:s}=o;s&&n&&(t.lineWidth=s,t.strokeStyle=n,t.setLineDash(o.borderDash),t.lineDashOffset=o.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(a,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const n=this.getIndexAngle(0);let s,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((n,r)=>{if(0===r&&!e.reverse)return;const l=i.setContext(this.getContext(r)),c=(0,o.O)(l.font);if(s=this.getDistanceFromCenterForValue(this.ticks[r].value),l.showLabelBackdrop){t.font=c.string,a=t.measureText(n.label).width,t.fillStyle=l.backdropColor;const e=(0,o.K)(l.backdropPadding);t.fillRect(-a/2-e.left,-s-c.size/2-e.top,a+e.width,c.size+e.height)}(0,o.M)(t,n.label,0,-s,c,{color:l.color})})),t.restore()}drawTitle(){}}Ri.id="radialLinear",Ri.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:F.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},Ri.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Ri.descriptors={angleLines:{_fallback:"grid"}};const Fi={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},zi=Object.keys(Fi);function Ni(t,e){return t-e}function Vi(t,e){if((0,o.k)(e))return null;const i=t._adapter,{parser:n,round:s,isoWeekday:a}=t._parseOpts;let r=e;return"function"==typeof n&&(r=n(r)),(0,o.g)(r)||(r="string"==typeof n?i.parse(r,n):i.parse(r)),null===r?null:(s&&(r="week"!==s||!(0,o.x)(a)&&!0!==a?i.startOf(r,s):i.startOf(r,"isoWeek",a)),+r)}function Wi(t,e,i,o){const n=zi.length;for(let s=zi.indexOf(t);s=e?i[n]:i[s]]=!0}}else t[e]=!0}function Ui(t,e,i){const o=[],n={},s=e.length;let a,r;for(a=0;a=0&&(e[l].major=!0);return e}(t,o,n,i):o}class Ki extends Y{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const i=t.time||(t.time={}),n=this._adapter=new et._date(t.adapters.date);n.init(e),(0,o.ac)(i.displayFormats,n.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Vi(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:n,max:s,minDefined:a,maxDefined:r}=this.getUserBounds();function l(t){a||isNaN(t.min)||(n=Math.min(n,t.min)),r||isNaN(t.max)||(s=Math.max(s,t.max))}a&&r||(l(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||l(this.getMinMax(!1))),n=(0,o.g)(n)&&!isNaN(n)?n:+e.startOf(Date.now(),i),s=(0,o.g)(s)&&!isNaN(s)?s:+e.endOf(Date.now(),i)+1,this.min=Math.min(n,s-1),this.max=Math.max(n+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,n="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const s=this.min,a=this.max,r=(0,o.aN)(n,s,a);return this._unit=e.unit||(i.autoSkip?Wi(e.minUnit,this.min,this.max,this._getLabelCapacity(s)):function(t,e,i,o,n){for(let s=zi.length-1;s>=zi.indexOf(i);s--){const i=zi[s];if(Fi[i].common&&t._adapter.diff(n,o,i)>=e-1)return i}return zi[i?zi.indexOf(i):0]}(this,r.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=zi.indexOf(t)+1,i=zi.length;e+t.value)))}initOffsets(t){let e,i,n=0,s=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),n=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),s=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=(0,o.E)(n,0,a),s=(0,o.E)(s,0,a),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const t=this._adapter,e=this.min,i=this.max,n=this.options,s=n.time,a=s.unit||Wi(s.minUnit,e,i,this._getLabelCapacity(e)),r=(0,o.v)(s.stepSize,1),l="week"===a&&s.isoWeekday,c=(0,o.x)(l)||!0===l,h={};let d,u,p=e;if(c&&(p=+t.startOf(p,"isoWeek",l)),p=+t.startOf(p,c?"day":a),t.diff(i,e,a)>1e5*r)throw new Error(e+" and "+i+" are too far apart with stepSize of "+r+" "+a);const f="data"===n.ticks.source&&this.getDataTimestamps();for(d=p,u=0;dt-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,n){const s=this.options,a=s.time.displayFormats,r=this._unit,l=this._majorUnit,c=r&&a[r],h=l&&a[l],d=i[e],u=l&&h&&d&&d.major,p=this._adapter.format(t,n||(u?h:c)),f=s.ticks.callback;return f?(0,o.C)(f,[p,e,i],this):p}generateTickLabels(t){let e,i,o;for(e=0,i=t.length;e0?a:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(t=0,e=o.length;t=t[l].pos&&e<=t[c].pos&&({lo:l,hi:c}=(0,o.Z)(t,"pos",e)),({pos:n,time:a}=t[l]),({pos:s,time:r}=t[c])):(e>=t[l].time&&e<=t[c].time&&({lo:l,hi:c}=(0,o.Z)(t,"time",e)),({time:n,pos:a}=t[l]),({time:s,pos:r}=t[c]));const h=s-n;return h?a+(r-a)*(e-n)/h:a}Ki.id="time",Ki.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Yi extends Ki{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=qi(e,this.min),this._tableRange=qi(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,o=[],n=[];let s,a,r,l,c;for(s=0,a=t.length;s=e&&l<=i&&o.push(l);if(o.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(s=0,a=o.length;s{"use strict";function o(){}i.d(e,{$:()=>me,A:()=>z,B:()=>c,C:()=>p,D:()=>Te,E:()=>G,F:()=>K,G:()=>he,H:()=>T,I:()=>tt,J:()=>ue,K:()=>Oe,L:()=>be,M:()=>ve,N:()=>_e,O:()=>Le,P:()=>$,Q:()=>f,R:()=>pt,S:()=>ft,T:()=>D,U:()=>se,V:()=>x,W:()=>C,X:()=>hi,Y:()=>nt,Z:()=>ot,_:()=>ct,a:()=>Ee,a0:()=>Y,a1:()=>ui,a2:()=>ni,a3:()=>gi,a4:()=>dt,a5:()=>fi,a6:()=>oi,a7:()=>ae,a8:()=>S,a9:()=>je,aA:()=>ki,aB:()=>Ci,aC:()=>gt,aD:()=>Pi,aE:()=>ge,aF:()=>o,aG:()=>X,aH:()=>H,aI:()=>F,aJ:()=>W,aK:()=>V,aL:()=>q,aM:()=>de,aN:()=>st,aO:()=>it,aa:()=>Ie,ab:()=>Re,ac:()=>w,ad:()=>n,ae:()=>ut,af:()=>pi,ag:()=>pe,ah:()=>A,ai:()=>g,aj:()=>M,ak:()=>et,al:()=>Me,am:()=>ii,an:()=>Di,ao:()=>$i,ap:()=>bi,aq:()=>_i,ar:()=>mi,as:()=>xe,at:()=>we,au:()=>fe,av:()=>ke,aw:()=>$e,ax:()=>De,ay:()=>Mi,az:()=>J,b:()=>a,c:()=>oe,d:()=>ce,e:()=>vt,f:()=>k,g:()=>l,h:()=>Be,i:()=>r,j:()=>P,k:()=>s,l:()=>rt,m:()=>d,n:()=>u,o:()=>wi,p:()=>Z,q:()=>mt,r:()=>ht,s:()=>R,t:()=>U,u:()=>lt,v:()=>h,w:()=>bt,x:()=>N,y:()=>Xe,z:()=>j});const n=function(){let t=0;return function(){return t++}}();function s(t){return null==t}function a(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function r(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const l=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function c(t,e){return l(t)?t:e}function h(t,e){return void 0===t?e:t}const d=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,u=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function p(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function f(t,e,i,o){let n,s,l;if(a(t))if(s=t.length,o)for(n=s-1;n>=0;n--)e.call(i,t[n],n);else for(n=0;nt,x:t=>t.x,y:t=>t.y};function k(t,e){const i=y[e]||(y[e]=function(t){const e=function(t){const e=t.split("."),i=[];let o="";for(const t of e)o+=t,o.endsWith("\\")?o=o.slice(0,-1)+".":(i.push(o),o="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function C(t){return t.charAt(0).toUpperCase()+t.slice(1)}const P=t=>void 0!==t,S=t=>"function"==typeof t,A=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};function M(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const $=Math.PI,D=2*$,O=D+$,L=Number.POSITIVE_INFINITY,E=$/180,T=$/2,B=$/4,I=2*$/3,j=Math.log10,R=Math.sign;function F(t){const e=Math.round(t);t=V(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(j(t))),o=t/i;return(o<=1?1:o<=2?2:o<=5?5:10)*i}function z(t){const e=[],i=Math.sqrt(t);let o;for(o=1;ot-e)).pop(),e}function N(t){return!isNaN(parseFloat(t))&&isFinite(t)}function V(t,e,i){return Math.abs(t-e)=t}function H(t,e,i){let o,n,s;for(o=0,n=t.length;ol&&c=Math.min(e,i)-o&&t<=Math.max(e,i)+o}function it(t,e,i){i=i||(i=>t[i]1;)o=s+n>>1,i(o)?s=o:n=o;return{lo:s,hi:n}}const ot=(t,e,i,o)=>it(t,i,o?o=>t[o][e]<=i:o=>t[o][e]it(t,i,(o=>t[o][e]>=i));function st(t,e,i){let o=0,n=t.length;for(;oo&&t[n-1]>i;)n--;return o>0||n{const i="_onData"+C(e),o=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const n=o.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"==typeof t[i]&&t[i](...e)})),n}})})))}function lt(t,e){const i=t._chartjs;if(!i)return;const o=i.listeners,n=o.indexOf(e);-1!==n&&o.splice(n,1),o.length>0||(at.forEach((e=>{delete t[e]})),delete t._chartjs)}function ct(t){const e=new Set;let i,o;for(i=0,o=t.length;iArray.prototype.slice.call(t));let n=!1,s=[];return function(...i){s=o(i),n||(n=!0,ht.call(window,(()=>{n=!1,t.apply(e,s)})))}}function ut(t,e){let i;return function(...o){return e?(clearTimeout(i),i=setTimeout(t,e,o)):t.apply(this,o),e}}const pt=t=>"start"===t?"left":"end"===t?"right":"center",ft=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2,gt=(t,e,i,o)=>t===(o?"left":"right")?i:"center"===t?(e+i)/2:e;function mt(t,e,i){const o=e.length;let n=0,s=o;if(t._sorted){const{iScale:a,_parsed:r}=t,l=a.axis,{min:c,max:h,minDefined:d,maxDefined:u}=a.getUserBounds();d&&(n=G(Math.min(ot(r,a.axis,c).lo,i?o:ot(e,l,a.getPixelForValue(c)).lo),0,o-1)),s=u?G(Math.max(ot(r,a.axis,h,!0).hi+1,i?0:ot(e,l,a.getPixelForValue(h),!0).hi+1),n,o)-n:o-n}return{start:n,count:s}}function bt(t){const{xScale:e,yScale:i,_scaleRanges:o}=t,n={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!o)return t._scaleRanges=n,!0;const s=o.xmin!==e.min||o.xmax!==e.max||o.ymin!==i.min||o.ymax!==i.max;return Object.assign(o,n),s}const _t=t=>0===t||1===t,xt=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*D/i),wt=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*D/i)+1,vt={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*T),easeOutSine:t=>Math.sin(t*T),easeInOutSine:t=>-.5*(Math.cos($*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>_t(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>_t(t)?t:xt(t,.075,.3),easeOutElastic:t=>_t(t)?t:wt(t,.075,.3),easeInOutElastic(t){const e=.1125;return _t(t)?t:t<.5?.5*xt(2*t,e,.45):.5+.5*wt(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-vt.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*vt.easeInBounce(2*t):.5*vt.easeOutBounce(2*t-1)+.5};function yt(t){return t+.5|0}const kt=(t,e,i)=>Math.max(Math.min(t,i),e);function Ct(t){return kt(yt(2.55*t),0,255)}function Pt(t){return kt(yt(255*t),0,255)}function St(t){return kt(yt(t/2.55)/100,0,1)}function At(t){return kt(yt(100*t),0,100)}const Mt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},$t=[..."0123456789ABCDEF"],Dt=t=>$t[15&t],Ot=t=>$t[(240&t)>>4]+$t[15&t],Lt=t=>(240&t)>>4==(15&t);function Et(t){var e=(t=>Lt(t.r)&&Lt(t.g)&&Lt(t.b)&&Lt(t.a))(t)?Dt:Ot;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const Tt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Bt(t,e,i){const o=e*Math.min(i,1-i),n=(e,n=(e+t/30)%12)=>i-o*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function It(t,e,i){const o=(o,n=(o+t/60)%6)=>i-i*e*Math.max(Math.min(n,4-n,1),0);return[o(5),o(3),o(1)]}function jt(t,e,i){const o=Bt(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)o[n]*=1-e-i,o[n]+=e;return o}function Rt(t){const e=t.r/255,i=t.g/255,o=t.b/255,n=Math.max(e,i,o),s=Math.min(e,i,o),a=(n+s)/2;let r,l,c;return n!==s&&(c=n-s,l=a>.5?c/(2-n-s):c/(n+s),r=function(t,e,i,o,n){return t===n?(e-i)/o+(e>16&255,s>>8&255,255&s]}return t}(),Ut.transparent=[0,0,0,0]);const e=Ut[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const qt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Yt=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Xt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Qt(t,e,i){if(t){let o=Rt(t);o[e]=Math.max(0,Math.min(o[e]+o[e]*i,0===e?360:1)),o=zt(o),t.r=o[0],t.g=o[1],t.b=o[2]}}function Jt(t,e){return t?Object.assign(e||{},t):t}function Zt(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Pt(t[3]))):(e=Jt(t,{r:0,g:0,b:0,a:1})).a=Pt(e.a),e}function Gt(t){return"r"===t.charAt(0)?function(t){const e=qt.exec(t);let i,o,n,s=255;if(e){if(e[7]!==i){const t=+e[7];s=e[8]?Ct(t):kt(255*t,0,255)}return i=+e[1],o=+e[3],n=+e[5],i=255&(e[2]?Ct(i):kt(i,0,255)),o=255&(e[4]?Ct(o):kt(o,0,255)),n=255&(e[6]?Ct(n):kt(n,0,255)),{r:i,g:o,b:n,a:s}}}(t):Vt(t)}class te{constructor(t){if(t instanceof te)return t;const e=typeof t;let i;var o,n,s;"object"===e?i=Zt(t):"string"===e&&(s=(o=t).length,"#"===o[0]&&(4===s||5===s?n={r:255&17*Mt[o[1]],g:255&17*Mt[o[2]],b:255&17*Mt[o[3]],a:5===s?17*Mt[o[4]]:255}:7!==s&&9!==s||(n={r:Mt[o[1]]<<4|Mt[o[2]],g:Mt[o[3]]<<4|Mt[o[4]],b:Mt[o[5]]<<4|Mt[o[6]],a:9===s?Mt[o[7]]<<4|Mt[o[8]]:255})),i=n||Kt(t)||Gt(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Jt(this._rgb);return t&&(t.a=St(t.a)),t}set rgb(t){this._rgb=Zt(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${St(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?Et(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Rt(t),i=e[0],o=At(e[1]),n=At(e[2]);return t.a<255?`hsla(${i}, ${o}%, ${n}%, ${St(t.a)})`:`hsl(${i}, ${o}%, ${n}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,o=t.rgb;let n;const s=e===n?.5:e,a=2*s-1,r=i.a-o.a,l=((a*r==-1?a:(a+r)/(1+a*r))+1)/2;n=1-l,i.r=255&l*i.r+n*o.r+.5,i.g=255&l*i.g+n*o.g+.5,i.b=255&l*i.b+n*o.b+.5,i.a=s*i.a+(1-s)*o.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const o=Xt(St(t.r)),n=Xt(St(t.g)),s=Xt(St(t.b));return{r:Pt(Yt(o+i*(Xt(St(e.r))-o))),g:Pt(Yt(n+i*(Xt(St(e.g))-n))),b:Pt(Yt(s+i*(Xt(St(e.b))-s))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new te(this.rgb)}alpha(t){return this._rgb.a=Pt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=yt(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Qt(this._rgb,2,t),this}darken(t){return Qt(this._rgb,2,-t),this}saturate(t){return Qt(this._rgb,1,t),this}desaturate(t){return Qt(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=Rt(t);i[0]=Nt(i[0]+e),i=zt(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function ee(t){return new te(t)}function ie(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function oe(t){return ie(t)?t:ee(t)}function ne(t){return ie(t)?t:ee(t).saturate(.5).darken(.1).hexString()}const se=Object.create(null),ae=Object.create(null);function re(t,e){if(!e)return t;const i=e.split(".");for(let e=0,o=i.length;et.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>ne(e.backgroundColor),this.hoverBorderColor=(t,e)=>ne(e.borderColor),this.hoverColor=(t,e)=>ne(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return le(this,t,e)}get(t){return re(this,t)}describe(t,e){return le(ae,t,e)}override(t,e){return le(se,t,e)}route(t,e,i,o){const n=re(this,t),s=re(this,i),a="_"+e;Object.defineProperties(n,{[a]:{value:n[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=s[o];return r(t)?Object.assign({},e,t):h(t,e)},set(t){this[a]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function he(t,e,i,o,n){let s=e[n];return s||(s=e[n]=t.measureText(n).width,i.push(n)),s>o&&(o=s),o}function de(t,e,i,o){let n=(o=o||{}).data=o.data||{},s=o.garbageCollect=o.garbageCollect||[];o.font!==e&&(n=o.data={},s=o.garbageCollect=[],o.font=e),t.save(),t.font=e;let r=0;const l=i.length;let c,h,d,u,p;for(c=0;ci.length){for(c=0;c0&&t.stroke()}}function me(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.xe.top-i&&t.y0&&""!==r.strokeColor;let h,d;for(t.save(),t.font=n.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);s(e.rotation)||t.rotate(e.rotation);e.color&&(t.fillStyle=e.color);e.textAlign&&(t.textAlign=e.textAlign);e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,r),h=0;h+t||0;function Me(t,e){const i={},o=r(e),n=o?Object.keys(e):e,s=r(t)?o?i=>h(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of n)i[t]=Ae(s(t));return i}function $e(t){return Me(t,{top:"y",right:"x",bottom:"y",left:"x"})}function De(t){return Me(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Oe(t){const e=$e(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Le(t,e){t=t||{},e=e||ce.font;let i=h(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let o=h(t.style,e.style);o&&!(""+o).match(Pe)&&(console.warn('Invalid font style specified: "'+o+'"'),o="");const n={family:h(t.family,e.family),lineHeight:Se(h(t.lineHeight,e.lineHeight),i),size:i,style:o,weight:h(t.weight,e.weight),string:""};return n.string=function(t){return!t||s(t.size)||s(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(n),n}function Ee(t,e,i,o){let n,s,r,l=!0;for(n=0,s=t.length;ni&&0===t?0:t+e;return{min:a(o,-Math.abs(s)),max:a(n,s)}}function Be(t,e){return Object.assign(Object.create(t),e)}function Ie(t,e=[""],i=t,o,n=()=>t[0]){P(o)||(o=qe("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:o,_getTarget:n,override:n=>Ie([n,...t],e,i,o)};return new Proxy(s,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,o)=>Ne(i,o,(()=>function(t,e,i,o){let n;for(const s of e)if(n=qe(Fe(s,t),i),P(n))return ze(t,n)?Ue(i,o,t,n):n}(o,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ye(t).includes(e),ownKeys:t=>Ye(t),set(t,e,i){const o=t._storage||(t._storage=n());return t[e]=o[e]=i,delete t._keys,!0}})}function je(t,e,i,o){const n={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Re(t,o),setContext:e=>je(t,e,i,o),override:n=>je(t.override(n),e,i,o)};return new Proxy(n,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Ne(t,e,(()=>function(t,e,i){const{_proxy:o,_context:n,_subProxy:s,_descriptors:l}=t;let c=o[e];S(c)&&l.isScriptable(e)&&(c=function(t,e,i,o){const{_proxy:n,_context:s,_subProxy:a,_stack:r}=i;if(r.has(t))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+t);r.add(t),e=e(s,a||o),r.delete(t),ze(t,e)&&(e=Ue(n._scopes,n,t,e));return e}(e,c,t,i));a(c)&&c.length&&(c=function(t,e,i,o){const{_proxy:n,_context:s,_subProxy:a,_descriptors:l}=i;if(P(s.index)&&o(t))e=e[s.index%e.length];else if(r(e[0])){const i=e,o=n._scopes.filter((t=>t!==i));e=[];for(const r of i){const i=Ue(o,n,t,r);e.push(je(i,s,a&&a[t],l))}}return e}(e,c,t,l.isIndexable));ze(e,c)&&(c=je(c,n,s&&s[e],l));return c}(t,e,i))),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,o)=>(t[i]=o,delete e[i],!0)})}function Re(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:o=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:i,indexable:o,isScriptable:S(i)?i:()=>i,isIndexable:S(o)?o:()=>o}}const Fe=(t,e)=>t?t+C(e):e,ze=(t,e)=>r(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ne(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const o=i();return t[e]=o,o}function Ve(t,e,i){return S(t)?t(e,i):t}const We=(t,e)=>!0===t?e:"string"==typeof t?k(e,t):void 0;function He(t,e,i,o,n){for(const s of e){const e=We(i,s);if(e){t.add(e);const s=Ve(e._fallback,i,n);if(P(s)&&s!==i&&s!==o)return s}else if(!1===e&&P(o)&&i!==o)return null}return!1}function Ue(t,e,i,o){const n=e._rootScopes,s=Ve(e._fallback,i,o),l=[...t,...n],c=new Set;c.add(o);let h=Ke(c,l,i,s||i,o);return null!==h&&((!P(s)||s===i||(h=Ke(c,l,s,h,o),null!==h))&&Ie(Array.from(c),[""],n,s,(()=>function(t,e,i){const o=t._getTarget();e in o||(o[e]={});const n=o[e];if(a(n)&&r(i))return i;return n}(e,i,o))))}function Ke(t,e,i,o,n){for(;i;)i=He(t,e,i,o,n);return i}function qe(t,e){for(const i of e){if(!i)continue;const e=i[t];if(P(e))return e}}function Ye(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Xe(t,e,i,o){const{iScale:n}=t,{key:s="r"}=this._parsing,a=new Array(o);let r,l,c,h;for(r=0,l=o;re"x"===t?"y":"x";function Ge(t,e,i,o){const n=t.skip?e:t,s=e,a=i.skip?e:i,r=X(s,n),l=X(a,s);let c=r/(r+l),h=l/(r+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const d=o*c,u=o*h;return{previous:{x:s.x-d*(a.x-n.x),y:s.y-d*(a.y-n.y)},next:{x:s.x+u*(a.x-n.x),y:s.y+u*(a.y-n.y)}}}function ti(t,e="x"){const i=Ze(e),o=t.length,n=Array(o).fill(0),s=Array(o);let a,r,l,c=Je(t,0);for(a=0;a!t.skip))),"monotone"===e.cubicInterpolationMode)ti(t,n);else{let i=o?t[t.length-1]:t[0];for(s=0,a=t.length;swindow.getComputedStyle(t,null);const ri=["top","right","bottom","left"];function li(t,e,i){const o={};i=i?"-"+i:"";for(let n=0;n<4;n++){const s=ri[n];o[s]=parseFloat(t[e+"-"+s+i])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}const ci=(t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot);function hi(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:o}=e,n=ai(i),s="border-box"===n.boxSizing,a=li(n,"padding"),r=li(n,"border","width"),{x:l,y:c,box:h}=function(t,e){const i=t.touches,o=i&&i.length?i[0]:t,{offsetX:n,offsetY:s}=o;let a,r,l=!1;if(ci(n,s,t.target))a=n,r=s;else{const t=e.getBoundingClientRect();a=o.clientX-t.left,r=o.clientY-t.top,l=!0}return{x:a,y:r,box:l}}(t,i),d=a.left+(h&&r.left),u=a.top+(h&&r.top);let{width:p,height:f}=e;return s&&(p-=a.width+r.width,f-=a.height+r.height),{x:Math.round((l-d)/p*i.width/o),y:Math.round((c-u)/f*i.height/o)}}const di=t=>Math.round(10*t)/10;function ui(t,e,i,o){const n=ai(t),s=li(n,"margin"),a=si(n.maxWidth,t,"clientWidth")||L,r=si(n.maxHeight,t,"clientHeight")||L,l=function(t,e,i){let o,n;if(void 0===e||void 0===i){const s=ni(t);if(s){const t=s.getBoundingClientRect(),a=ai(s),r=li(a,"border","width"),l=li(a,"padding");e=t.width-l.width-r.width,i=t.height-l.height-r.height,o=si(a.maxWidth,s,"clientWidth"),n=si(a.maxHeight,s,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:o||L,maxHeight:n||L}}(t,e,i);let{width:c,height:h}=l;if("content-box"===n.boxSizing){const t=li(n,"border","width"),e=li(n,"padding");c-=e.width+t.width,h-=e.height+t.height}return c=Math.max(0,c-s.width),h=Math.max(0,o?Math.floor(c/o):h-s.height),c=di(Math.min(c,a,l.maxWidth)),h=di(Math.min(h,r,l.maxHeight)),c&&!h&&(h=di(c/2)),{width:c,height:h}}function pi(t,e,i){const o=e||1,n=Math.floor(t.height*o),s=Math.floor(t.width*o);t.height=n/o,t.width=s/o;const a=t.canvas;return a.style&&(i||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==o||a.height!==n||a.width!==s)&&(t.currentDevicePixelRatio=o,a.height=n,a.width=s,t.ctx.setTransform(o,0,0,o,0,0),!0)}const fi=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function gi(t,e){const i=function(t,e){return ai(t).getPropertyValue(e)}(t,e),o=i&&i.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function mi(t,e,i,o){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function bi(t,e,i,o){return{x:t.x+i*(e.x-t.x),y:"middle"===o?i<.5?t.y:e.y:"after"===o?i<1?t.y:e.y:i>0?e.y:t.y}}function _i(t,e,i,o){const n={x:t.cp2x,y:t.cp2y},s={x:e.cp1x,y:e.cp1y},a=mi(t,n,i),r=mi(n,s,i),l=mi(s,e,i),c=mi(a,r,i),h=mi(r,l,i);return mi(c,h,i)}const xi=new Map;function wi(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let o=xi.get(i);return o||(o=new Intl.NumberFormat(t,e),xi.set(i,o)),o}(e,i).format(t)}const vi=function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}},yi=function(){return{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}};function ki(t,e,i){return t?vi(e,i):yi()}function Ci(t,e){let i,o;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,o=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=o)}function Pi(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Si(t){return"angle"===t?{between:Z,compare:Q,normalize:J}:{between:et,compare:(t,e)=>t-e,normalize:t=>t}}function Ai({start:t,end:e,count:i,loop:o,style:n}){return{start:t%i,end:e%i,loop:o&&(e-t+1)%i==0,style:n}}function Mi(t,e,i){if(!i)return[t];const{property:o,start:n,end:s}=i,a=e.length,{compare:r,between:l,normalize:c}=Si(o),{start:h,end:d,loop:u,style:p}=function(t,e,i){const{property:o,start:n,end:s}=i,{between:a,normalize:r}=Si(o),l=e.length;let c,h,{start:d,end:u,loop:p}=t;if(p){for(d+=l,u+=l,c=0,h=l;c_||l(n,b,g)&&0!==r(n,b),v=()=>!_||0===r(s,g)||l(s,b,g);for(let t=h,i=h;t<=d;++t)m=e[t%a],m.skip||(g=c(m[o]),g!==b&&(_=l(g,n,s),null===x&&w()&&(x=0===r(g,n)?t:i),null!==x&&v()&&(f.push(Ai({start:x,end:t,loop:u,count:a,style:p})),x=null),i=t,b=g));return null!==x&&f.push(Ai({start:x,end:d,loop:u,count:a,style:p})),f}function $i(t,e){const i=[],o=t.segments;for(let n=0;nn&&t[s%e].skip;)s--;return s%=e,{start:n,end:s}}(i,n,s,o);if(!0===o)return Oi(t,[{start:a,end:r,loop:s}],i,e);return Oi(t,function(t,e,i,o){const n=t.length,s=[];let a,r=e,l=t[e];for(a=e+1;a<=i;++a){const i=t[a%n];i.skip||i.stop?l.skip||(o=!1,s.push({start:e%n,end:(a-1)%n,loop:o}),e=r=i.stop?a:null):(r=a,l.skip&&(e=a)),l=i}return null!==r&&s.push({start:e%n,end:r%n,loop:o}),s}(i,a,r{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var i in e)__webpack_require__.o(e,i)&&!__webpack_require__.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var __webpack_exports__={};(()=>{"use strict";var t=__webpack_require__(133),e=__webpack_require__(237),i=__webpack_require__(61),o={class:"h-6 mb-4 flex items-center"},n={class:"mr-3 leading-tight text-sm font-bold"},s={class:"flex relative ml-auto flex-shrink-0"},a=["value"];var r=__webpack_require__(241),l=__webpack_require__(262);const c=(0,l.A)(r.A,[["render",function(t,e,r,l,c,h){var d=(0,i.resolveComponent)("icon-refresh"),u=(0,i.resolveComponent)("default-button"),p=(0,i.resolveComponent)("icon-external-link"),f=(0,i.resolveComponent)("select-control"),g=(0,i.resolveComponent)("line-chart"),m=(0,i.resolveComponent)("loading-card");return(0,i.openBlock)(),(0,i.createBlock)(m,{loading:c.loading,class:"min-h-40 px-6 py-4"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",o,[(0,i.createElementVNode)("h4",n,(0,i.toDisplayString)(h.checkTitle),1),(0,i.createElementVNode)("div",s,[(0,i.withDirectives)((0,i.createVNode)(u,{size:"xs",class:"mr-2",onClick:e[0]||(e[0]=function(t){return h.fillData()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(d)]})),_:1},512),[[i.vShow,c.buttonRefresh]]),(0,i.withDirectives)((0,i.createVNode)(u,{size:"xs",class:"mr-2",onClick:e[1]||(e[1]=function(t){return h.reloadPage()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(d)]})),_:1},512),[[i.vShow,c.buttonReload]]),(0,i.withDirectives)((0,i.createVNode)(u,{size:"xs",class:"mr-2",component:"a",href:c.externalLink,target:c.externalLinkIn},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(p)]})),_:1},8,["href","target"]),[[i.vShow,c.btnExtLink]]),(0,i.withDirectives)((0,i.createVNode)(f,{size:"xxs",onChange:h.handleFilterChanged,selected:c.advanceFilterSelected},{default:(0,i.withCtx)((function(){return[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(c.advanceFilter,(function(t){return(0,i.openBlock)(),(0,i.createElementBlock)("option",{value:t.value,key:t.key},(0,i.toDisplayString)(t.text),9,a)})),128))]})),_:1},8,["onChange","selected"]),[[i.vShow,c.showAdvanceFilter]])])]),c.loading?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createBlock)(g,{key:0,"chart-data":c.datacollection,options:c.options},null,8,["chart-data","options"]))]})),_:1},8,["loading"])}]]);var h={class:"h-6 mb-4 flex items-center"},d={class:"mr-3 leading-tight text-sm font-bold"},u={class:"flex relative ml-auto flex-shrink-0"},p=["value"];var f=__webpack_require__(357);const g=(0,l.A)(f.A,[["render",function(t,e,o,n,s,a){var r=(0,i.resolveComponent)("icon-refresh"),l=(0,i.resolveComponent)("default-button"),c=(0,i.resolveComponent)("icon-external-link"),f=(0,i.resolveComponent)("select-control"),g=(0,i.resolveComponent)("line-chart"),m=(0,i.resolveComponent)("loading-card");return(0,i.openBlock)(),(0,i.createBlock)(m,{loading:s.loading,class:"min-h-40 px-6 py-4"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",h,[(0,i.createElementVNode)("h4",d,(0,i.toDisplayString)(a.checkTitle),1),(0,i.createElementVNode)("div",u,[(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[0]||(e[0]=function(t){return a.fillData()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonRefresh]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[1]||(e[1]=function(t){return a.reloadPage()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonReload]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",component:"a",href:s.externalLink,target:s.externalLinkIn},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(c)]})),_:1},8,["href","target"]),[[i.vShow,s.btnExtLink]]),(0,i.withDirectives)((0,i.createVNode)(f,{size:"xxs",onChange:a.handleFilterChanged,selected:s.advanceFilterSelected},{default:(0,i.withCtx)((function(){return[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(s.advanceFilter,(function(t){return(0,i.openBlock)(),(0,i.createElementBlock)("option",{value:t.value,key:t.key},(0,i.toDisplayString)(t.text),9,p)})),128))]})),_:1},8,["onChange","selected"]),[[i.vShow,s.showAdvanceFilter]])])]),s.loading?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createBlock)(g,{key:0,"chart-data":s.datacollection,options:s.options},null,8,["chart-data","options"]))]})),_:1},8,["loading"])}]]);var m={class:"h-6 mb-4 flex items-center"},b={class:"mr-3 leading-tight text-sm font-bold"},_={class:"flex relative ml-auto flex-shrink-0"},x=["value"];var w=__webpack_require__(3);const v=(0,l.A)(w.A,[["render",function(t,e,o,n,s,a){var r=(0,i.resolveComponent)("icon-refresh"),l=(0,i.resolveComponent)("default-button"),c=(0,i.resolveComponent)("icon-external-link"),h=(0,i.resolveComponent)("select-control"),d=(0,i.resolveComponent)("line-chart"),u=(0,i.resolveComponent)("loading-card");return(0,i.openBlock)(),(0,i.createBlock)(u,{loading:s.loading,class:"min-h-40 px-6 py-4"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",m,[(0,i.createElementVNode)("h4",b,(0,i.toDisplayString)(a.checkTitle),1),(0,i.createElementVNode)("div",_,[(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[0]||(e[0]=function(t){return a.fillData()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonRefresh]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[1]||(e[1]=function(t){return a.reloadPage()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonReload]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",component:"a",href:s.externalLink,target:s.externalLinkIn},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(c)]})),_:1},8,["href","target"]),[[i.vShow,s.btnExtLink]]),(0,i.withDirectives)((0,i.createVNode)(h,{size:"xxs",onChange:a.handleFilterChanged,selected:s.advanceFilterSelected},{default:(0,i.withCtx)((function(){return[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(s.advanceFilter,(function(t){return(0,i.openBlock)(),(0,i.createElementBlock)("option",{value:t.value,key:t.key},(0,i.toDisplayString)(t.text),9,x)})),128))]})),_:1},8,["onChange","selected"]),[[i.vShow,s.showAdvanceFilter]])])]),s.loading?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createBlock)(d,{key:0,"chart-data":s.datacollection,options:s.options},null,8,["chart-data","options"]))]})),_:1},8,["loading"])}]]);var y={class:"h-6 mb-4 flex items-center"},k={class:"mr-3 leading-tight text-sm font-bold"},C={class:"flex relative ml-auto flex-shrink-0"},P=["value"];var S=__webpack_require__(444);const A=(0,l.A)(S.A,[["render",function(t,e,o,n,s,a){var r=(0,i.resolveComponent)("icon-refresh"),l=(0,i.resolveComponent)("default-button"),c=(0,i.resolveComponent)("icon-external-link"),h=(0,i.resolveComponent)("select-control"),d=(0,i.resolveComponent)("line-chart"),u=(0,i.resolveComponent)("loading-card");return(0,i.openBlock)(),(0,i.createBlock)(u,{loading:s.loading,class:"min-h-40 px-6 py-4"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",y,[(0,i.createElementVNode)("h4",k,(0,i.toDisplayString)(a.checkTitle),1),(0,i.createElementVNode)("div",C,[(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[0]||(e[0]=function(t){return a.fillData()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonRefresh]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[1]||(e[1]=function(t){return a.reloadPage()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonReload]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",component:"a",href:s.externalLink,target:s.externalLinkIn},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(c)]})),_:1},8,["href","target"]),[[i.vShow,s.btnExtLink]]),(0,i.withDirectives)((0,i.createVNode)(h,{size:"xxs",onChange:a.handleFilterChanged,selected:s.advanceFilterSelected},{default:(0,i.withCtx)((function(){return[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(s.advanceFilter,(function(t){return(0,i.openBlock)(),(0,i.createElementBlock)("option",{value:t.value,key:t.key},(0,i.toDisplayString)(t.text),9,P)})),128))]})),_:1},8,["onChange","selected"]),[[i.vShow,s.showAdvanceFilter]])])]),s.loading?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createBlock)(d,{key:0,"chart-data":s.datacollection,options:s.options},null,8,["chart-data","options"]))]})),_:1},8,["loading"])}]]);var M={class:"h-6 mb-4 flex items-center"},$={class:"mr-3 leading-tight text-sm font-bold"},D={class:"flex relative ml-auto flex-shrink-0"},O=["value"];var L=__webpack_require__(718);const E=(0,l.A)(L.A,[["render",function(t,e,o,n,s,a){var r=(0,i.resolveComponent)("icon-refresh"),l=(0,i.resolveComponent)("default-button"),c=(0,i.resolveComponent)("icon-external-link"),h=(0,i.resolveComponent)("select-control"),d=(0,i.resolveComponent)("line-chart"),u=(0,i.resolveComponent)("loading-card");return(0,i.openBlock)(),(0,i.createBlock)(u,{loading:s.loading,class:"min-h-40 px-6 py-4"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",M,[(0,i.createElementVNode)("h4",$,(0,i.toDisplayString)(a.checkTitle),1),(0,i.createElementVNode)("div",D,[(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[0]||(e[0]=function(t){return a.fillData()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonRefresh]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[1]||(e[1]=function(t){return a.reloadPage()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonReload]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",component:"a",href:s.externalLink,target:s.externalLinkIn},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(c)]})),_:1},8,["href","target"]),[[i.vShow,s.btnExtLink]]),(0,i.withDirectives)((0,i.createVNode)(h,{size:"xxs",onChange:a.handleFilterChanged,selected:s.advanceFilterSelected},{default:(0,i.withCtx)((function(){return[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(s.advanceFilter,(function(t){return(0,i.openBlock)(),(0,i.createElementBlock)("option",{value:t.value,key:t.key},(0,i.toDisplayString)(t.text),9,O)})),128))]})),_:1},8,["onChange","selected"]),[[i.vShow,s.showAdvanceFilter]])])]),s.loading?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createBlock)(d,{key:0,"chart-data":s.datacollection,options:s.options},null,8,["chart-data","options"]))]})),_:1},8,["loading"])}]]);var T={class:"h-6 mb-4 flex items-center"},B={class:"mr-3 leading-tight text-sm font-bold"},I={class:"flex relative ml-auto flex-shrink-0"},j=["value"];var R=__webpack_require__(461);const F=(0,l.A)(R.A,[["render",function(t,e,o,n,s,a){var r=(0,i.resolveComponent)("icon-refresh"),l=(0,i.resolveComponent)("default-button"),c=(0,i.resolveComponent)("icon-external-link"),h=(0,i.resolveComponent)("select-control"),d=(0,i.resolveComponent)("line-chart"),u=(0,i.resolveComponent)("loading-card");return(0,i.openBlock)(),(0,i.createBlock)(u,{loading:s.loading,class:"min-h-40 px-6 py-4"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",T,[(0,i.createElementVNode)("h4",B,(0,i.toDisplayString)(a.checkTitle),1),(0,i.createElementVNode)("div",I,[(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[0]||(e[0]=function(t){return a.fillData()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonRefresh]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[1]||(e[1]=function(t){return a.reloadPage()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonReload]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",component:"a",href:s.externalLink,target:s.externalLinkIn},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(c)]})),_:1},8,["href","target"]),[[i.vShow,s.btnExtLink]]),(0,i.withDirectives)((0,i.createVNode)(h,{size:"xxs",onChange:a.handleFilterChanged,selected:s.advanceFilterSelected},{default:(0,i.withCtx)((function(){return[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(s.advanceFilter,(function(t){return(0,i.openBlock)(),(0,i.createElementBlock)("option",{value:t.value,key:t.key},(0,i.toDisplayString)(t.text),9,j)})),128))]})),_:1},8,["onChange","selected"]),[[i.vShow,s.showAdvanceFilter]])])]),s.loading?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createBlock)(d,{key:0,"chart-data":s.datacollection,options:s.options},null,8,["chart-data","options"]))]})),_:1},8,["loading"])}]]);var z={class:"h-6 mb-4 flex items-center pb-0"},N={class:"mr-3 leading-tight text-sm font-bold"},V={class:"flex relative ml-auto flex-shrink-0"};var W=__webpack_require__(450);const H=(0,l.A)(W.A,[["render",function(t,e,o,n,s,a){var r=(0,i.resolveComponent)("icon-refresh"),l=(0,i.resolveComponent)("default-button"),c=(0,i.resolveComponent)("icon-external-link"),h=(0,i.resolveComponent)("line-chart"),d=(0,i.resolveComponent)("loading-card");return(0,i.openBlock)(),(0,i.createBlock)(d,{loading:s.loading,class:"min-h-40 px-6 py-4"},{default:(0,i.withCtx)((function(){return[(0,i.createElementVNode)("div",z,[(0,i.createElementVNode)("h4",N,(0,i.toDisplayString)(a.checkTitle),1),(0,i.createElementVNode)("div",V,[(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[0]||(e[0]=function(t){return a.fillData()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonRefresh]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",onClick:e[1]||(e[1]=function(t){return a.reloadPage()})},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(r)]})),_:1},512),[[i.vShow,s.buttonReload]]),(0,i.withDirectives)((0,i.createVNode)(l,{size:"xs",class:"mr-2",component:"a",href:s.externalLink,target:s.externalLinkIn},{default:(0,i.withCtx)((function(){return[(0,i.createVNode)(c)]})),_:1},8,["href","target"]),[[i.vShow,s.btnExtLink]])])]),s.loading?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createBlock)(h,{key:0,"chart-data":s.datacollection,options:s.options},null,8,["chart-data","options"]))]})),_:1},8,["loading"])}]]);function U(t){return function(t){if(Array.isArray(t))return K(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return K(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?K(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,o=Array(e);i - + - + @@ -24,210 +36,264 @@ diff --git a/resources/js/components/StackedChart.vue b/resources/js/components/StackedChart.vue index 686056b..1b52d93 100644 --- a/resources/js/components/StackedChart.vue +++ b/resources/js/components/StackedChart.vue @@ -9,10 +9,22 @@ - + - + @@ -24,212 +36,265 @@